dynamic-mui 1.0.71 → 1.0.72

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.
@@ -1,4 +1,4 @@
1
- /*! For license information please see main.c9bfd94c.js.LICENSE.txt */
1
+ /*! For license information please see main.9e08a04c.js.LICENSE.txt */
2
2
  (()=>{var e={9037:(e,t,n)=>{"use strict";var r=n(6305).default;t.A=void 0;var o=r(n(5043));t.A=parseInt(o.version,10)},446:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",o="second",a="minute",i="hour",l="day",s="week",u="month",c="quarter",d="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),a=n-o<0,i=t.clone().add(r+(a?-1:1),u);return+(-(r+(n-o)/(a?o-i:i-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:s,d:l,D:p,h:i,m:a,s:o,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",x={};x[y]=g;var w="$isDayjsObject",C=function(e){return e instanceof R||!(!e||!e[w])},S=function e(t,n,r){var o;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();x[a]&&(o=a),n&&(x[a]=n,o=a);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var l=t.name;x[l]=t,o=l}return!r&&o&&(y=o),o||!r&&y},k=function(e,t){if(C(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new R(n)},M=b;M.l=S,M.i=C,M.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var R=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(M.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var o=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return M},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return M.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!M.u(t)||t,c=M.p(e),f=function(e,t){var o=M.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?o:o.endOf(l)},h=function(e,t){return M.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case d:return r?f(1,0):f(31,11);case u:return r?f(1,g):f(0,g+1);case s:var y=this.$locale().weekStart||0,x=(m<y?m+7:m)-y;return f(r?v-x:v+(6-x),g);case l:case p:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case a:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,s=M.p(e),c="set"+(this.$u?"UTC":""),f=(n={},n[l]=c+"Date",n[p]=c+"Date",n[u]=c+"Month",n[d]=c+"FullYear",n[i]=c+"Hours",n[a]=c+"Minutes",n[o]=c+"Seconds",n[r]=c+"Milliseconds",n)[s],h=s===l?this.$D+(t-this.$W):t;if(s===u||s===d){var m=this.clone().set(p,1);m.$d[f](h),m.init(),this.$d=m.set(p,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[M.p(e)]()},v.add=function(r,c){var p,f=this;r=Number(r);var h=M.p(c),m=function(e){var t=k(f);return M.w(t.date(t.date()+Math.round(e*r)),f)};if(h===u)return this.set(u,this.$M+r);if(h===d)return this.set(d,this.$y+r);if(h===l)return m(1);if(h===s)return m(7);var g=(p={},p[a]=t,p[i]=n,p[o]=e,p)[h]||1,v=this.$d.getTime()+r*g;return M.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=M.z(this),a=this.$H,i=this.$m,l=this.$M,s=n.weekdays,u=n.months,c=n.meridiem,d=function(e,n,o,a){return e&&(e[n]||e(t,r))||o[n].slice(0,a)},p=function(e){return M.s(a%12||12,e,"0")},h=c||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return M.s(t.$y,4,"0");case"M":return l+1;case"MM":return M.s(l+1,2,"0");case"MMM":return d(n.monthsShort,l,u,3);case"MMMM":return d(u,l);case"D":return t.$D;case"DD":return M.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(a);case"HH":return M.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return h(a,i,!0);case"A":return h(a,i,!1);case"m":return String(i);case"mm":return M.s(i,2,"0");case"s":return String(t.$s);case"ss":return M.s(t.$s,2,"0");case"SSS":return M.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,p,f){var h,m=this,g=M.p(p),v=k(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,x=function(){return M.m(m,v)};switch(g){case d:h=x()/12;break;case u:h=x();break;case c:h=x()/3;break;case s:h=(y-b)/6048e5;break;case l:h=(y-b)/864e5;break;case i:h=y/n;break;case a:h=y/t;break;case o:h=y/e;break;default:h=y}return f?h:M.a(h)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return x[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return M.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),P=R.prototype;return k.prototype=P,[["$ms",r],["$s",o],["$m",a],["$H",i],["$W",l],["$M",u],["$y",d],["$D",p]].forEach((function(e){P[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),k.extend=function(e,t){return e.$i||(e(t,R,k),e.$i=!0),k},k.locale=S,k.isDayjs=C,k.unix=function(e){return k(1e3*e)},k.en=x[y],k.Ls=x,k.p={},k}()},7076:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),a=(e||"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(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(a)}}}()},8988:function(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,o=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},l=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[r,s("day")],Do:[a,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[o,s("week")],ww:[r,s("week")],M:[o,s("month")],MM:[r,s("month")],MMM:[a,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[a,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=l(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function f(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||o[r]||e[r]||o[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),l=a.length,s=0;s<l;s+=1){var u=a[s],c=p[u],d=c&&c[0],f=c&&c[1];a[s]=f?{regex:d,parser:f}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<l;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,s=o.parser,u=e.slice(r),c=i.exec(u)[0];s.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var l=a[1];if("string"==typeof l){var s=!0===a[2],u=!0===a[3],c=s||u,d=a[2];u&&(d=a[2]),i=this.$locale(),!s&&d&&(i=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var o=f(t)(e),a=o.year,i=o.month,l=o.day,s=o.hours,u=o.minutes,c=o.seconds,d=o.milliseconds,p=o.zone,h=o.week,m=new Date,g=l||(a||i?1:m.getDate()),v=a||m.getFullYear(),b=0;a&&!i||(b=i>0?i-1:m.getMonth());var y,x=s||0,w=u||0,C=c||0,S=d||0;return p?new Date(Date.UTC(v,b,g,x,w,C,S+60*p.offset*1e3)):n?new Date(Date.UTC(v,b,g,x,w,C,S)):(y=new Date(v,b,g,x,w,C,S),h&&(y=r(y).week(h).toDate()),y)}catch(e){return new Date("")}}(t,l,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),c&&t!=this.format(l)&&(this.$d=new Date("")),i={}}else if(l instanceof Array)for(var p=l.length,h=1;h<=p;h+=1){a[1]=l[h-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},1525:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var a=n(e),i=n(t),l="("===(o=o||"()")[0],s=")"===o[1];return(l?this.isAfter(a,r):!this.isBefore(a,r))&&(s?this.isBefore(i,r):!this.isAfter(i,r))||(l?this.isBefore(a,r):!this.isAfter(a,r))&&(s?this.isAfter(i,r):!this.isBefore(i,r))}}}()},4443:function(e){e.exports=function(){"use strict";var e={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(t,n,r){var o=n.prototype,a=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var a=o&&o.toUpperCase();return r||n[o]||e[o]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return a.call(this,r)}}}()},6865:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,r,o){var a=r.prototype;a.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var a=o(this).startOf(t).add(1,t).date(r),i=o(this).endOf(e);if(a.isBefore(i))return 1}var l=o(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),s=this.diff(l,e,!0);return s<0?o(this).startOf("week").week():Math.ceil(s)},a.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},219:(e,t,n)=>{"use strict";var r=n(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var i=c(n);d&&(i=i.concat(d(n)));for(var l=s(t),m=s(n),g=0;g<i.length;++g){var v=i[g];if(!a[v]&&(!r||!r[v])&&(!m||!m[v])&&(!l||!l[v])){var b=p(n,v);try{u(t,v,b)}catch(y){}}}}return t}},4983:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case a:case l:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case p:case g:case m:case s:return e;default:return t}}case o:return t}}}function C(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===l||e===i||e===f||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3763:(e,t,n)=>{"use strict";e.exports=n(4983)},7685:(e,t,n)=>{var r=n(7937)(n(6552),"DataView");e.exports=r},5204:(e,t,n)=>{var r=n(7937)(n(6552),"Map");e.exports=r},5387:(e,t,n)=>{var r=n(7937)(n(6552),"Promise");e.exports=r},2070:(e,t,n)=>{var r=n(7937)(n(6552),"Set");e.exports=r},9812:(e,t,n)=>{var r=n(6552).Symbol;e.exports=r},6600:(e,t,n)=>{var r=n(7937)(n(6552),"WeakMap");e.exports=r},6913:(e,t,n)=>{var r=n(9812),o=n(4552),a=n(6095),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},5193:(e,t,n)=>{var r=n(6913),o=n(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},6954:(e,t,n)=>{var r=n(1629),o=n(7857),a=n(6686),i=n(6996),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,d=u.hasOwnProperty,p=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?p:l).test(i(e))}},5428:(e,t,n)=>{var r=n(6913),o=n(6173),a=n(2761),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},3713:(e,t,n)=>{var r=n(6140),o=n(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},3440:(e,t,n)=>{var r=n(6552)["__core-js_shared__"];e.exports=r},7105:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},7937:(e,t,n)=>{var r=n(6954),o=n(4657);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},4552:(e,t,n)=>{var r=n(9812),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(s){}var o=i.call(e);return r&&(t?e[l]=n:delete e[l]),o}},6924:(e,t,n)=>{var r=n(7685),o=n(5204),a=n(5387),i=n(2070),l=n(6600),s=n(6913),u=n(6996),c="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=u(r),g=u(o),v=u(a),b=u(i),y=u(l),x=s;(r&&x(new r(new ArrayBuffer(1)))!=h||o&&x(new o)!=c||a&&x(a.resolve())!=d||i&&x(new i)!=p||l&&x(new l)!=f)&&(x=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return c;case v:return d;case b:return p;case y:return f}return t}),e.exports=x},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7857:(e,t,n)=>{var r=n(3440),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},1143:(e,t,n)=>{var r=n(3028)(Object.keys,Object);e.exports=r},6832:(e,t,n)=>{e=n.nmd(e);var r=n(7105),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=l},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6552:(e,t,n)=>{var r=n(7105),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},2777:(e,t,n)=>{var r=n(5193),o=n(2761),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,n)=>{var r=n(1629),o=n(6173);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},4543:(e,t,n)=>{e=n.nmd(e);var r=n(6552),o=n(14),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},4320:(e,t,n)=>{var r=n(3713),o=n(6924),a=n(2777),i=n(4052),l=n(6571),s=n(4543),u=n(6140),c=n(1268),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},1629:(e,t,n)=>{var r=n(6913),o=n(6686);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1268:(e,t,n)=>{var r=n(5428),o=n(7574),a=n(6832),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},3536:function(e,t,n){var r;e=n.nmd(e),function(){var o,a="Expected a function",i="__lodash_hash_undefined__",l="__lodash_placeholder__",s=16,u=32,c=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",u],["partialRight",c],["rearg",p]],b="[object Arguments]",y="[object Array]",x="[object Boolean]",w="[object Date]",C="[object Error]",S="[object Function]",k="[object GeneratorFunction]",M="[object Map]",R="[object Number]",P="[object Object]",I="[object Promise]",A="[object RegExp]",T="[object Set]",$="[object String]",E="[object Symbol]",D="[object WeakMap]",O="[object ArrayBuffer]",_="[object DataView]",F="[object Float32Array]",L="[object Float64Array]",j="[object Int8Array]",N="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",H="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,q=RegExp(Y.source),X=RegExp(Z.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),ie=/^\s+/,le=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Me="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Re="\\u2700-\\u27bf",Pe="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$e="['\u2019]",Ee="["+ke+"]",De="["+Te+"]",Oe="["+Me+"]",_e="\\d+",Fe="["+Re+"]",Le="["+Pe+"]",je="[^"+ke+Te+_e+Re+Pe+Ie+"]",Ne="\\ud83c[\\udffb-\\udfff]",ze="[^"+ke+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ie+"]",We="\\u200d",Ue="(?:"+Le+"|"+je+")",Ge="(?:"+Ve+"|"+je+")",Ke="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ye="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Oe+"|"+Ne+")"+"?",qe="["+Ae+"]?",Xe=qe+Ze+("(?:"+We+"(?:"+[ze,Be,He].join("|")+")"+qe+Ze+")*"),Qe="(?:"+[Fe,Be,He].join("|")+")"+Xe,Je="(?:"+[ze+Oe+"?",Oe,Be,He,Ee].join("|")+")",et=RegExp($e,"g"),tt=RegExp(Oe,"g"),nt=RegExp(Ne+"(?="+Ne+")|"+Je+Xe,"g"),rt=RegExp([Ve+"?"+Le+"+"+Ke+"(?="+[De,Ve,"$"].join("|")+")",Ge+"+"+Ye+"(?="+[De,Ve+Ue,"$"].join("|")+")",Ve+"?"+Ue+"+"+Ke,Ve+"+"+Ye,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_e,Qe].join("|"),"g"),ot=RegExp("["+We+ke+Me+Ae+"]"),at=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lt=-1,st={};st[F]=st[L]=st[j]=st[N]=st[z]=st[B]=st[H]=st[V]=st[W]=!0,st[b]=st[y]=st[O]=st[x]=st[_]=st[w]=st[C]=st[S]=st[M]=st[R]=st[P]=st[A]=st[T]=st[$]=st[D]=!1;var ut={};ut[b]=ut[y]=ut[O]=ut[_]=ut[x]=ut[w]=ut[F]=ut[L]=ut[j]=ut[N]=ut[z]=ut[M]=ut[R]=ut[P]=ut[A]=ut[T]=ut[$]=ut[E]=ut[B]=ut[H]=ut[V]=ut[W]=!0,ut[C]=ut[S]=ut[D]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||ht||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,bt=vt&&vt.exports===gt,yt=bt&&ft.process,xt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,Ct=xt&&xt.isDate,St=xt&&xt.isMap,kt=xt&&xt.isRegExp,Mt=xt&&xt.isSet,Rt=xt&&xt.isTypedArray;function Pt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function $t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Et(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function Dt(e,t){return!!(null==e?0:e.length)&&Vt(e,t,0)>-1}function Ot(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function _t(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Kt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ht(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Vt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Ut,n)}function Wt(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function Ut(e){return e!==e}function Gt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:m}function Kt(e){return function(t){return null==t?o:t[e]}}function Yt(e){return function(t){return null==e?o:e[t]}}function Zt(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function qt(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);i!==o&&(n=n===o?i:n+i)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,gn(e)+1).replace(ie,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return _t(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Vt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var on=Yt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ln(e){return"\\"+ct[e]}function sn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n];i!==t&&i!==l||(e[n]=l,a[o++]=n)}return a}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return sn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function mn(e){return sn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var vn=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var bn=function e(t){var n=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,it))).Array,r=t.Date,le=t.Error,ke=t.Function,Me=t.Math,Re=t.Object,Pe=t.RegExp,Ie=t.String,Ae=t.TypeError,Te=n.prototype,$e=ke.prototype,Ee=Re.prototype,De=t["__core-js_shared__"],Oe=$e.toString,_e=Ee.hasOwnProperty,Fe=0,Le=function(){var e=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),je=Ee.toString,Ne=Oe.call(Re),ze=mt._,Be=Pe("^"+Oe.call(_e).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=bt?t.Buffer:o,Ve=t.Symbol,We=t.Uint8Array,Ue=He?He.allocUnsafe:o,Ge=cn(Re.getPrototypeOf,Re),Ke=Re.create,Ye=Ee.propertyIsEnumerable,Ze=Te.splice,qe=Ve?Ve.isConcatSpreadable:o,Xe=Ve?Ve.iterator:o,Qe=Ve?Ve.toStringTag:o,Je=function(){try{var e=pa(Re,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==mt.Date.now&&r.now,ct=t.setTimeout!==mt.setTimeout&&t.setTimeout,ft=Me.ceil,ht=Me.floor,gt=Re.getOwnPropertySymbols,vt=He?He.isBuffer:o,yt=t.isFinite,xt=Te.join,zt=cn(Re.keys,Re),Yt=Me.max,yn=Me.min,xn=r.now,wn=t.parseInt,Cn=Me.random,Sn=Te.reverse,kn=pa(t,"DataView"),Mn=pa(t,"Map"),Rn=pa(t,"Promise"),Pn=pa(t,"Set"),In=pa(t,"WeakMap"),An=pa(Re,"create"),Tn=In&&new In,$n={},En=ja(kn),Dn=ja(Mn),On=ja(Rn),_n=ja(Pn),Fn=ja(In),Ln=Ve?Ve.prototype:o,jn=Ln?Ln.valueOf:o,Nn=Ln?Ln.toString:o;function zn(e){if(tl(e)&&!Wi(e)&&!(e instanceof Wn)){if(e instanceof Vn)return e;if(_e.call(e,"__wrapped__"))return Na(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!el(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Hn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Gn(e);this.size=t.size}function qn(e,t){var n=Wi(e),r=!n&&Vi(e),o=!n&&!r&&Yi(e),a=!n&&!r&&!o&&ul(e),i=n||r||o||a,l=i?Xt(e.length,Ie):[],s=l.length;for(var u in e)!t&&!_e.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ya(u,s))||l.push(u);return l}function Xn(e){var t=e.length;return t?e[Yr(0,t-1)]:o}function Qn(e,t){return _a(To(e),lr(t,0,e.length))}function Jn(e){return _a(To(e))}function er(e,t,n){(n!==o&&!zi(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function tr(e,t,n){var r=e[t];_e.call(e,t)&&zi(r,n)&&(n!==o||t in e)||ar(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(zi(e[n][0],t))return n;return-1}function rr(e,t,n,r){return pr(e,(function(e,o,a){t(r,e,n(e),a)})),r}function or(e,t){return e&&$o(t,$l(t),e)}function ar(e,t,n){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var r=-1,a=t.length,i=n(a),l=null==e;++r<a;)i[r]=l?o:Rl(e,t[r]);return i}function lr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function sr(e,t,n,r,a,i){var l,s=1&t,u=2&t,c=4&t;if(n&&(l=a?n(e,r,a,i):n(e)),l!==o)return l;if(!el(e))return e;var d=Wi(e);if(d){if(l=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return To(e,l)}else{var p=ma(e),f=p==S||p==k;if(Yi(e))return ko(e,s);if(p==P||p==b||f&&!a){if(l=u||f?{}:va(e),!s)return u?function(e,t){return $o(e,ha(e),t)}(e,function(e,t){return e&&$o(t,El(t),e)}(l,e)):function(e,t){return $o(e,fa(e),t)}(e,or(l,e))}else{if(!ut[p])return a?e:{};l=function(e,t,n){var r=e.constructor;switch(t){case O:return Mo(e);case x:case w:return new r(+e);case _:return function(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case L:case j:case N:case z:case B:case H:case V:case W:return Ro(e,n);case M:return new r;case R:case $:return new r(e);case A:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case E:return o=e,jn?Re(jn.call(o)):{}}var o}(e,p,s)}}i||(i=new Zn);var h=i.get(e);if(h)return h;i.set(e,l),il(e)?e.forEach((function(r){l.add(sr(r,t,n,r,e,i))})):nl(e)&&e.forEach((function(r,o){l.set(o,sr(r,t,n,o,e,i))}));var m=d?o:(c?u?aa:oa:u?El:$l)(e);return At(m||e,(function(r,o){m&&(r=e[o=r]),tr(l,o,sr(r,t,n,o,e,i))})),l}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Re(e);r--;){var a=n[r],i=t[a],l=e[a];if(l===o&&!(a in e)||!i(l))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ae(a);return $a((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,a=Dt,i=!0,l=e.length,s=[],u=t.length;if(!l)return s;n&&(t=_t(t,Jt(n))),r?(a=Ot,i=!1):t.length>=200&&(a=tn,i=!1,t=new Yn(t));e:for(;++o<l;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,i&&d===d){for(var p=u;p--;)if(t[p]===d)continue e;s.push(c)}else a(t,d,r)||s.push(c)}return s}zn.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:zn}},zn.prototype=Hn.prototype,zn.prototype.constructor=zn,Vn.prototype=Bn(Hn.prototype),Vn.prototype.constructor=Vn,Wn.prototype=Bn(Hn.prototype),Wn.prototype.constructor=Wn,Un.prototype.clear=function(){this.__data__=An?An(null):{},this.size=0},Un.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Un.prototype.get=function(e){var t=this.__data__;if(An){var n=t[e];return n===i?o:n}return _e.call(t,e)?t[e]:o},Un.prototype.has=function(e){var t=this.__data__;return An?t[e]!==o:_e.call(t,e)},Un.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=An&&t===o?i:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return nr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Mn||Gn),string:new Un}},Kn.prototype.delete=function(e){var t=ca(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ca(this,e).get(e)},Kn.prototype.has=function(e){return ca(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ca(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,i),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var pr=Oo(xr),fr=Oo(wr,!0);function hr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(null!=l&&(s===o?l===l&&!sl(l):n(l,s)))var s=l,u=i}return u}function gr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=ba),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?vr(l,t-1,n,r,o):Ft(o,l):r||(o[o.length]=l)}return o}var br=_o(),yr=_o(!0);function xr(e,t){return e&&br(e,t,$l)}function wr(e,t){return e&&yr(e,t,$l)}function Cr(e,t){return Et(t,(function(t){return Xi(e[t])}))}function Sr(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[La(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return Wi(e)?r:Ft(r,n(e))}function Mr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Re(e)?function(e){var t=_e.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(i){}var a=je.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return a}(e):function(e){return je.call(e)}(e)}function Rr(e,t){return e>t}function Pr(e,t){return null!=e&&_e.call(e,t)}function Ir(e,t){return null!=e&&t in Re(e)}function Ar(e,t,r){for(var a=r?Ot:Dt,i=e[0].length,l=e.length,s=l,u=n(l),c=1/0,d=[];s--;){var p=e[s];s&&t&&(p=_t(p,Jt(t))),c=yn(p.length,c),u[s]=!r&&(t||i>=120&&p.length>=120)?new Yn(s&&p):o}p=e[0];var f=-1,h=u[0];e:for(;++f<i&&d.length<c;){var m=p[f],g=t?t(m):m;if(m=r||0!==m?m:0,!(h?tn(h,g):a(d,g,r))){for(s=l;--s;){var v=u[s];if(!(v?tn(v,g):a(e[s],g,r)))continue e}h&&h.push(g),d.push(m)}}return d}function Tr(e,t,n){var r=null==(e=Ia(e,t=xo(t,e)))?e:e[La(qa(t))];return null==r?o:Pt(r,e,n)}function $r(e){return tl(e)&&Mr(e)==b}function Er(e,t,n,r,a){return e===t||(null==e||null==t||!tl(e)&&!tl(t)?e!==e&&t!==t:function(e,t,n,r,a,i){var l=Wi(e),s=Wi(t),u=l?y:ma(e),c=s?y:ma(t),d=(u=u==b?P:u)==P,p=(c=c==b?P:c)==P,f=u==c;if(f&&Yi(e)){if(!Yi(t))return!1;l=!0,d=!1}if(f&&!d)return i||(i=new Zn),l||ul(e)?na(e,t,n,r,a,i):function(e,t,n,r,o,a,i){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new We(e),new We(t)));case x:case w:case R:return zi(+e,+t);case C:return e.name==t.name&&e.message==t.message;case A:case $:return e==t+"";case M:var l=un;case T:var s=1&r;if(l||(l=pn),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=2,i.set(e,t);var c=na(l(e),l(t),r,o,a,i);return i.delete(e),c;case E:if(jn)return jn.call(e)==jn.call(t)}return!1}(e,t,u,n,r,a,i);if(!(1&n)){var h=d&&_e.call(e,"__wrapped__"),m=p&&_e.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return i||(i=new Zn),a(g,v,n,r,i)}}if(!f)return!1;return i||(i=new Zn),function(e,t,n,r,a,i){var l=1&n,s=oa(e),u=s.length,c=oa(t),d=c.length;if(u!=d&&!l)return!1;var p=u;for(;p--;){var f=s[p];if(!(l?f in t:_e.call(t,f)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);var v=l;for(;++p<u;){var b=e[f=s[p]],y=t[f];if(r)var x=l?r(y,b,f,t,e,i):r(b,y,f,e,t,i);if(!(x===o?b===y||a(b,y,n,r,i):x)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(g=!1)}return i.delete(e),i.delete(t),g}(e,t,n,r,a,i)}(e,t,n,r,Er,a))}function Dr(e,t,n,r){var a=n.length,i=a,l=!r;if(null==e)return!i;for(e=Re(e);a--;){var s=n[a];if(l&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var u=(s=n[a])[0],c=e[u],d=s[1];if(l&&s[2]){if(c===o&&!(u in e))return!1}else{var p=new Zn;if(r)var f=r(c,d,u,e,t,p);if(!(f===o?Er(d,c,3,r,p):f))return!1}}return!0}function Or(e){return!(!el(e)||(t=e,Le&&Le in t))&&(Xi(e)?Be:be).test(ja(e));var t}function _r(e){return"function"==typeof e?e:null==e?rs:"object"==typeof e?Wi(e)?Br(e[0],e[1]):zr(e):ps(e)}function Fr(e){if(!ka(e))return zt(e);var t=[];for(var n in Re(e))_e.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!el(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=ka(e),n=[];for(var r in e)("constructor"!=r||!t&&_e.call(e,r))&&n.push(r);return n}function jr(e,t){return e<t}function Nr(e,t){var r=-1,o=Gi(e)?n(e.length):[];return pr(e,(function(e,n,a){o[++r]=t(e,n,a)})),o}function zr(e){var t=da(e);return 1==t.length&&t[0][2]?Ra(t[0][0],t[0][1]):function(n){return n===e||Dr(n,e,t)}}function Br(e,t){return wa(e)&&Ma(t)?Ra(La(e),t):function(n){var r=Rl(n,e);return r===o&&r===t?Pl(n,e):Er(t,r,3)}}function Hr(e,t,n,r,a){e!==t&&br(t,(function(i,l){if(a||(a=new Zn),el(i))!function(e,t,n,r,a,i,l){var s=Aa(e,n),u=Aa(t,n),c=l.get(u);if(c)return void er(e,n,c);var d=i?i(s,u,n+"",e,t,l):o,p=d===o;if(p){var f=Wi(u),h=!f&&Yi(u),m=!f&&!h&&ul(u);d=u,f||h||m?Wi(s)?d=s:Ki(s)?d=To(s):h?(p=!1,d=ko(u,!0)):m?(p=!1,d=Ro(u,!0)):d=[]:ol(u)||Vi(u)?(d=s,Vi(s)?d=vl(s):el(s)&&!Xi(s)||(d=va(u))):p=!1}p&&(l.set(u,d),a(d,u,r,i,l),l.delete(u));er(e,n,d)}(e,t,l,n,Hr,r,a);else{var s=r?r(Aa(e,l),i,l+"",e,t,a):o;s===o&&(s=i),er(e,l,s)}}),El)}function Vr(e,t){var n=e.length;if(n)return ya(t+=t<0?n:0,n)?e[t]:o}function Wr(e,t,n){t=t.length?_t(t,(function(e){return Wi(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[rs];var r=-1;t=_t(t,Jt(ua()));var o=Nr(e,(function(e,n,o){var a=_t(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,a=t.criteria,i=o.length,l=n.length;for(;++r<i;){var s=Po(o[r],a[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Ur(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=Sr(e,i);n(l,i)&&Jr(a,xo(i,e),l)}return a}function Gr(e,t,n,r){var o=r?Wt:Vt,a=-1,i=t.length,l=e;for(e===t&&(t=To(t)),n&&(l=_t(e,Jt(n)));++a<i;)for(var s=0,u=t[a],c=n?n(u):u;(s=o(l,c,s,r))>-1;)l!==e&&Ze.call(l,s,1),Ze.call(e,s,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;ya(o)?Ze.call(e,o,1):po(e,o)}}return e}function Yr(e,t){return e+ht(Cn()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function qr(e,t){return Ea(Pa(e,t,rs),e+"")}function Xr(e){return Xn(zl(e))}function Qr(e,t){var n=zl(e);return _a(n,lr(t,0,n.length))}function Jr(e,t,n,r){if(!el(e))return e;for(var a=-1,i=(t=xo(t,e)).length,l=i-1,s=e;null!=s&&++a<i;){var u=La(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(a!=l){var d=s[u];(c=r?r(d,u,s):o)===o&&(c=el(d)?d:ya(t[a+1])?[]:{})}tr(s,u,c),s=s[u]}return e}var eo=Tn?function(e,t){return Tn.set(e,t),e}:rs,to=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:es(t),writable:!0})}:rs;function no(e){return _a(zl(e))}function ro(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(r=r>a?a:r)<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=n(a);++o<a;)i[o]=e[o+t];return i}function oo(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!sl(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return io(e,t,rs,n)}function io(e,t,n,r){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=n(t))!==t,s=null===t,u=sl(t),c=t===o;a<i;){var d=ht((a+i)/2),p=n(e[d]),f=p!==o,h=null===p,m=p===p,g=sl(p);if(l)var v=r||m;else v=c?m&&(r||f):s?m&&f&&(r||!h):u?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?a=d+1:i=d}return yn(i,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!zi(l,s)){var s=l;a[o++]=0===i?0:i}}return a}function so(e){return"number"==typeof e?e:sl(e)?m:+e}function uo(e){if("string"==typeof e)return e;if(Wi(e))return _t(e,uo)+"";if(sl(e))return Nn?Nn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,n){var r=-1,o=Dt,a=e.length,i=!0,l=[],s=l;if(n)i=!1,o=Ot;else if(a>=200){var u=t?null:qo(e);if(u)return pn(u);i=!1,o=tn,s=new Yn}else s=t?[]:l;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,i&&d===d){for(var p=s.length;p--;)if(s[p]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}function po(e,t){return null==(e=Ia(e,t=xo(t,e)))||delete e[La(qa(t))]}function fo(e,t,n,r){return Jr(e,t,n(Sr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?ro(e,r?0:a,r?a+1:o):ro(e,r?a+1:0,r?o:a)}function mo(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))}),n)}function go(e,t,r){var o=e.length;if(o<2)return o?co(e[0]):[];for(var a=-1,i=n(o);++a<o;)for(var l=e[a],s=-1;++s<o;)s!=a&&(i[a]=dr(i[a]||l,e[s],t,r));return co(vr(i,1),t,r)}function vo(e,t,n){for(var r=-1,a=e.length,i=t.length,l={};++r<a;){var s=r<i?t[r]:o;n(l,e[r],s)}return l}function bo(e){return Ki(e)?e:[]}function yo(e){return"function"==typeof e?e:rs}function xo(e,t){return Wi(e)?e:wa(e,t)?[e]:Fa(bl(e))}var wo=qr;function Co(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ro(e,t,n)}var So=nt||function(e){return mt.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function Mo(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function Ro(e,t){var n=t?Mo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Po(e,t){if(e!==t){var n=e!==o,r=null===e,a=e===e,i=sl(e),l=t!==o,s=null===t,u=t===t,c=sl(t);if(!s&&!c&&!i&&e>t||i&&l&&u&&!s&&!c||r&&l&&u||!n&&u||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||s&&n&&a||!l&&a||!u)return-1}return 0}function Io(e,t,r,o){for(var a=-1,i=e.length,l=r.length,s=-1,u=t.length,c=Yt(i-l,0),d=n(u+c),p=!o;++s<u;)d[s]=t[s];for(;++a<l;)(p||a<i)&&(d[r[a]]=e[a]);for(;c--;)d[s++]=e[a++];return d}function Ao(e,t,r,o){for(var a=-1,i=e.length,l=-1,s=r.length,u=-1,c=t.length,d=Yt(i-s,0),p=n(d+c),f=!o;++a<d;)p[a]=e[a];for(var h=a;++u<c;)p[h+u]=t[u];for(;++l<s;)(f||a<i)&&(p[h+r[l]]=e[a++]);return p}function To(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function $o(e,t,n,r){var a=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var s=t[i],u=r?r(n[s],e[s],s,n,e):o;u===o&&(u=e[s]),a?ar(n,s,u):tr(n,s,u)}return n}function Eo(e,t){return function(n,r){var o=Wi(n)?It:rr,a=t?t():{};return o(n,e,ua(r,2),a)}}function Do(e){return qr((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:o,l=a>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(a--,i):o,l&&xa(n[0],n[1],l)&&(i=a<3?o:i,a=1),t=Re(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}function Oo(e,t){return function(n,r){if(null==n)return n;if(!Gi(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Re(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function _o(e){return function(t,n,r){for(var o=-1,a=Re(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}function Fo(e){return function(t){var n=sn(t=bl(t))?mn(t):o,r=n?n[0]:t.charAt(0),a=n?Co(n,1).join(""):t.slice(1);return r[e]()+a}}function Lo(e){return function(t){return Lt(Xl(Vl(t).replace(et,"")),e,"")}}function jo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return el(r)?r:n}}function No(e){return function(t,n,r){var a=Re(t);if(!Gi(t)){var i=ua(n,3);t=$l(t),n=function(e){return i(a[e],e,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:o}}function zo(e){return ra((function(t){var n=t.length,r=n,i=Vn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ae(a);if(i&&!s&&"wrapper"==la(l))var s=new Vn([],!0)}for(r=s?r:n;++r<n;){var u=la(l=t[r]),c="wrapper"==u?ia(l):o;s=c&&Ca(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[la(c[0])].apply(s,c[3]):1==l.length&&Ca(l)?s[u]():s.thru(l)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Wi(r))return s.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}function Bo(e,t,r,a,i,l,s,u,c,p){var f=t&d,h=1&t,m=2&t,g=24&t,v=512&t,b=m?o:jo(e);return function d(){for(var y=arguments.length,x=n(y),w=y;w--;)x[w]=arguments[w];if(g)var C=sa(d),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(x,C);if(a&&(x=Io(x,a,i,g)),l&&(x=Ao(x,l,s,g)),y-=S,g&&y<p){var k=dn(x,C);return Yo(e,t,Bo,d.placeholder,r,x,k,u,c,p-y)}var M=h?r:this,R=m?M[e]:e;return y=x.length,u?x=function(e,t){var n=e.length,r=yn(t.length,n),a=To(e);for(;r--;){var i=t[r];e[r]=ya(i,n)?a[i]:o}return e}(x,u):v&&y>1&&x.reverse(),f&&c<y&&(x.length=c),this&&this!==mt&&this instanceof d&&(R=b||jo(R)),R.apply(M,x)}}function Ho(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function Vo(e,t){return function(n,r){var a;if(n===o&&r===o)return t;if(n!==o&&(a=n),r!==o){if(a===o)return r;"string"==typeof n||"string"==typeof r?(n=uo(n),r=uo(r)):(n=so(n),r=so(r)),a=e(n,r)}return a}}function Wo(e){return ra((function(t){return t=_t(t,Jt(ua())),qr((function(n){var r=this;return e(t,(function(e){return Pt(e,r,n)}))}))}))}function Uo(e,t){var n=(t=t===o?" ":uo(t)).length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,ft(e/hn(t)));return sn(t)?Co(mn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,r,a){return a&&"number"!=typeof a&&xa(t,r,a)&&(r=a=o),t=fl(t),r===o?(r=t,t=0):r=fl(r),function(e,t,r,o){for(var a=-1,i=Yt(ft((t-e)/(r||1)),0),l=n(i);i--;)l[o?i:++a]=e,e+=r;return l}(t,r,a=a===o?t<r?1:-1:fl(a),e)}}function Ko(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gl(t),n=gl(n)),e(t,n)}}function Yo(e,t,n,r,a,i,l,s,d,p){var f=8&t;t|=f?u:c,4&(t&=~(f?c:u))||(t&=-4);var h=[e,t,a,f?i:o,f?l:o,f?o:i,f?o:l,s,d,p],m=n.apply(o,h);return Ca(e)&&Ta(m,h),m.placeholder=r,Da(m,e,t)}function Zo(e){var t=Me[e];return function(e,n){if(e=gl(e),(n=null==n?0:yn(hl(n),292))&&yt(e)){var r=(bl(e)+"e").split("e");return+((r=(bl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var qo=Pn&&1/pn(new Pn([,-0]))[1]==f?function(e){return new Pn(e)}:ss;function Xo(e){return function(t){var n=ma(t);return n==M?un(t):n==T?fn(t):function(e,t){return _t(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,r,i,f,h,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Ae(a);var b=i?i.length:0;if(b||(t&=-97,i=f=o),m=m===o?m:Yt(hl(m),0),g=g===o?g:hl(g),b-=f?f.length:0,t&c){var y=i,x=f;i=f=o}var w=v?o:ia(e),C=[e,t,r,i,f,y,x,h,m,g];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,i=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var u=e[3];e[3]=u?Io(u,s,t[4]):s,e[4]=u?dn(e[3],l):t[4]}(s=t[5])&&(u=e[5],e[5]=u?Ao(u,s,t[6]):s,e[6]=u?dn(e[5],l):t[6]);(s=t[7])&&(e[7]=s);r&d&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(C,w),e=C[0],t=C[1],r=C[2],i=C[3],f=C[4],!(g=C[9]=C[9]===o?v?0:e.length:Yt(C[9]-b,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==s?function(e,t,r){var a=jo(e);return function i(){for(var l=arguments.length,s=n(l),u=l,c=sa(i);u--;)s[u]=arguments[u];var d=l<3&&s[0]!==c&&s[l-1]!==c?[]:dn(s,c);return(l-=d.length)<r?Yo(e,t,Bo,i.placeholder,o,s,d,o,o,r-l):Pt(this&&this!==mt&&this instanceof i?a:e,this,s)}}(e,t,g):t!=u&&33!=t||f.length?Bo.apply(o,C):function(e,t,r,o){var a=1&t,i=jo(e);return function t(){for(var l=-1,s=arguments.length,u=-1,c=o.length,d=n(c+s),p=this&&this!==mt&&this instanceof t?i:e;++u<c;)d[u]=o[u];for(;s--;)d[u++]=arguments[++l];return Pt(p,a?r:this,d)}}(e,t,r,i);else var S=function(e,t,n){var r=1&t,o=jo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Da((w?eo:Ta)(S,C),e,t)}function Jo(e,t,n,r){return e===o||zi(e,Ee[n])&&!_e.call(r,n)?t:e}function ea(e,t,n,r,a,i){return el(e)&&el(t)&&(i.set(t,e),Hr(e,t,o,ea,i),i.delete(t)),e}function ta(e){return ol(e)?o:e}function na(e,t,n,r,a,i){var l=1&n,s=e.length,u=t.length;if(s!=u&&!(l&&u>s))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&n?new Yn:o;for(i.set(e,t),i.set(t,e);++p<s;){var m=e[p],g=t[p];if(r)var v=l?r(g,m,p,t,e,i):r(m,g,p,e,t,i);if(v!==o){if(v)continue;f=!1;break}if(h){if(!Nt(t,(function(e,t){if(!tn(h,t)&&(m===e||a(m,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!a(m,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function ra(e){return Ea(Pa(e,o,Ua),e+"")}function oa(e){return kr(e,$l,fa)}function aa(e){return kr(e,El,ha)}var ia=Tn?function(e){return Tn.get(e)}:ss;function la(e){for(var t=e.name+"",n=$n[t],r=_e.call($n,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function sa(e){return(_e.call(zn,"placeholder")?zn:e).placeholder}function ua(){var e=zn.iteratee||os;return e=e===os?_r:e,arguments.length?e(arguments[0],arguments[1]):e}function ca(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function da(e){for(var t=$l(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ma(o)]}return t}function pa(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Or(n)?n:o}var fa=gt?function(e){return null==e?[]:(e=Re(e),Et(gt(e),(function(t){return Ye.call(e,t)})))}:ms,ha=gt?function(e){for(var t=[];e;)Ft(t,fa(e)),e=Ge(e);return t}:ms,ma=Mr;function ga(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,a=!1;++r<o;){var i=La(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Ji(o)&&ya(i,o)&&(Wi(e)||Vi(e))}function va(e){return"function"!=typeof e.constructor||ka(e)?{}:Bn(Ge(e))}function ba(e){return Wi(e)||Vi(e)||!!(qe&&e&&e[qe])}function ya(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&xe.test(e))&&e>-1&&e%1==0&&e<t}function xa(e,t,n){if(!el(n))return!1;var r=typeof t;return!!("number"==r?Gi(n)&&ya(t,n.length):"string"==r&&t in n)&&zi(n[t],e)}function wa(e,t){if(Wi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Re(t))}function Ca(e){var t=la(e),n=zn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ia(n);return!!r&&e===r[0]}(kn&&ma(new kn(new ArrayBuffer(1)))!=_||Mn&&ma(new Mn)!=M||Rn&&ma(Rn.resolve())!=I||Pn&&ma(new Pn)!=T||In&&ma(new In)!=D)&&(ma=function(e){var t=Mr(e),n=t==P?e.constructor:o,r=n?ja(n):"";if(r)switch(r){case En:return _;case Dn:return M;case On:return I;case _n:return T;case Fn:return D}return t});var Sa=De?Xi:gs;function ka(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ee)}function Ma(e){return e===e&&!el(e)}function Ra(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Re(n)))}}function Pa(e,t,r){return t=Yt(t===o?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=Yt(o.length-t,0),l=n(i);++a<i;)l[a]=o[t+a];a=-1;for(var s=n(t+1);++a<t;)s[a]=o[a];return s[t]=r(l),Pt(e,this,s)}}function Ia(e,t){return t.length<2?e:Sr(e,ro(t,0,-1))}function Aa(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ta=Oa(eo),$a=ct||function(e,t){return mt.setTimeout(e,t)},Ea=Oa(to);function Da(e,t,n){var r=t+"";return Ea(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(v,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function Oa(e){var t=0,n=0;return function(){var r=xn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function _a(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n<t;){var i=Yr(n,a),l=e[i];e[i]=e[n],e[n]=l}return e.length=t,e}var Fa=function(e){var t=Oi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function La(e){if("string"==typeof e||sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return Oe.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Na(e){if(e instanceof Wn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=To(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var za=qr((function(e,t){return Ki(e)?dr(e,vr(t,1,Ki,!0)):[]})),Ba=qr((function(e,t){var n=qa(t);return Ki(n)&&(n=o),Ki(e)?dr(e,vr(t,1,Ki,!0),ua(n,2)):[]})),Ha=qr((function(e,t){var n=qa(t);return Ki(n)&&(n=o),Ki(e)?dr(e,vr(t,1,Ki,!0),o,n):[]}));function Va(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hl(n);return o<0&&(o=Yt(r+o,0)),Ht(e,ua(t,3),o)}function Wa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==o&&(a=hl(n),a=n<0?Yt(r+a,0):yn(a,r-1)),Ht(e,ua(t,3),a,!0)}function Ua(e){return(null==e?0:e.length)?vr(e,1):[]}function Ga(e){return e&&e.length?e[0]:o}var Ka=qr((function(e){var t=_t(e,bo);return t.length&&t[0]===e[0]?Ar(t):[]})),Ya=qr((function(e){var t=qa(e),n=_t(e,bo);return t===qa(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ar(n,ua(t,2)):[]})),Za=qr((function(e){var t=qa(e),n=_t(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ar(n,o,t):[]}));function qa(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xa=qr(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var Ja=ra((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Kr(e,_t(t,(function(e){return ya(e,n)?+e:e})).sort(Po)),r}));function ei(e){return null==e?e:Sn.call(e)}var ti=qr((function(e){return co(vr(e,1,Ki,!0))})),ni=qr((function(e){var t=qa(e);return Ki(t)&&(t=o),co(vr(e,1,Ki,!0),ua(t,2))})),ri=qr((function(e){var t=qa(e);return t="function"==typeof t?t:o,co(vr(e,1,Ki,!0),o,t)}));function oi(e){if(!e||!e.length)return[];var t=0;return e=Et(e,(function(e){if(Ki(e))return t=Yt(e.length,t),!0})),Xt(t,(function(t){return _t(e,Kt(t))}))}function ai(e,t){if(!e||!e.length)return[];var n=oi(e);return null==t?n:_t(n,(function(e){return Pt(t,o,e)}))}var ii=qr((function(e,t){return Ki(e)?dr(e,t):[]})),li=qr((function(e){return go(Et(e,Ki))})),si=qr((function(e){var t=qa(e);return Ki(t)&&(t=o),go(Et(e,Ki),ua(t,2))})),ui=qr((function(e){var t=qa(e);return t="function"==typeof t?t:o,go(Et(e,Ki),o,t)})),ci=qr(oi);var di=qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ai(e,n)}));function pi(e){var t=zn(e);return t.__chain__=!0,t}function fi(e,t){return t(e)}var hi=ra((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&ya(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fi,args:[a],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(a)}));var mi=Eo((function(e,t,n){_e.call(e,n)?++e[n]:ar(e,n,1)}));var gi=No(Va),vi=No(Wa);function bi(e,t){return(Wi(e)?At:pr)(e,ua(t,3))}function yi(e,t){return(Wi(e)?Tt:fr)(e,ua(t,3))}var xi=Eo((function(e,t,n){_e.call(e,n)?e[n].push(t):ar(e,n,[t])}));var wi=qr((function(e,t,r){var o=-1,a="function"==typeof t,i=Gi(e)?n(e.length):[];return pr(e,(function(e){i[++o]=a?Pt(t,e,r):Tr(e,t,r)})),i})),Ci=Eo((function(e,t,n){ar(e,n,t)}));function Si(e,t){return(Wi(e)?_t:Nr)(e,ua(t,3))}var ki=Eo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Mi=qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xa(e,t[0],t[1])?t=[]:n>2&&xa(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,vr(t,1),[])})),Ri=ot||function(){return mt.Date.now()};function Pi(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Ii(e,t){var n;if("function"!=typeof t)throw new Ae(a);return e=hl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ai=qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,sa(Ai));r|=u}return Qo(e,r,t,n,o)})),Ti=qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,sa(Ti));r|=u}return Qo(t,r,e,n,o)}));function $i(e,t,n){var r,i,l,s,u,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ae(a);function m(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n)}function g(e){var n=e-c;return c===o||n>=t||n<0||f&&e-d>=l}function v(){var e=Ri();if(g(e))return b(e);u=$a(v,function(e){var n=t-(e-c);return f?yn(n,l-(e-d)):n}(e))}function b(e){return u=o,h&&r?m(e):(r=i=o,s)}function y(){var e=Ri(),n=g(e);if(r=arguments,i=this,c=e,n){if(u===o)return function(e){return d=e,u=$a(v,t),p?m(e):s}(c);if(f)return So(u),u=$a(v,t),m(c)}return u===o&&(u=$a(v,t)),s}return t=gl(t)||0,el(n)&&(p=!!n.leading,l=(f="maxWait"in n)?Yt(gl(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),y.cancel=function(){u!==o&&So(u),d=0,r=c=i=u=o},y.flush=function(){return u===o?s:b(Ri())},y}var Ei=qr((function(e,t){return cr(e,1,t)})),Di=qr((function(e,t,n){return cr(e,gl(t)||0,n)}));function Oi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ae(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Oi.Cache||Kn),n}function _i(e){if("function"!=typeof e)throw new Ae(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Oi.Cache=Kn;var Fi=wo((function(e,t){var n=(t=1==t.length&&Wi(t[0])?_t(t[0],Jt(ua())):_t(vr(t,1),Jt(ua()))).length;return qr((function(r){for(var o=-1,a=yn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return Pt(e,this,r)}))})),Li=qr((function(e,t){var n=dn(t,sa(Li));return Qo(e,u,o,t,n)})),ji=qr((function(e,t){var n=dn(t,sa(ji));return Qo(e,c,o,t,n)})),Ni=ra((function(e,t){return Qo(e,p,o,o,o,t)}));function zi(e,t){return e===t||e!==e&&t!==t}var Bi=Ko(Rr),Hi=Ko((function(e,t){return e>=t})),Vi=$r(function(){return arguments}())?$r:function(e){return tl(e)&&_e.call(e,"callee")&&!Ye.call(e,"callee")},Wi=n.isArray,Ui=wt?Jt(wt):function(e){return tl(e)&&Mr(e)==O};function Gi(e){return null!=e&&Ji(e.length)&&!Xi(e)}function Ki(e){return tl(e)&&Gi(e)}var Yi=vt||gs,Zi=Ct?Jt(Ct):function(e){return tl(e)&&Mr(e)==w};function qi(e){if(!tl(e))return!1;var t=Mr(e);return t==C||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Xi(e){if(!el(e))return!1;var t=Mr(e);return t==S||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qi(e){return"number"==typeof e&&e==hl(e)}function Ji(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var nl=St?Jt(St):function(e){return tl(e)&&ma(e)==M};function rl(e){return"number"==typeof e||tl(e)&&Mr(e)==R}function ol(e){if(!tl(e)||Mr(e)!=P)return!1;var t=Ge(e);if(null===t)return!0;var n=_e.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oe.call(n)==Ne}var al=kt?Jt(kt):function(e){return tl(e)&&Mr(e)==A};var il=Mt?Jt(Mt):function(e){return tl(e)&&ma(e)==T};function ll(e){return"string"==typeof e||!Wi(e)&&tl(e)&&Mr(e)==$}function sl(e){return"symbol"==typeof e||tl(e)&&Mr(e)==E}var ul=Rt?Jt(Rt):function(e){return tl(e)&&Ji(e.length)&&!!st[Mr(e)]};var cl=Ko(jr),dl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Gi(e))return ll(e)?mn(e):To(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ma(e);return(t==M?un:t==T?pn:zl)(e)}function fl(e){return e?(e=gl(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hl(e){var t=fl(e),n=t%1;return t===t?n?t-n:t:0}function ml(e){return e?lr(hl(e),0,g):0}function gl(e){if("number"==typeof e)return e;if(sl(e))return m;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ve.test(e);return n||ye.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function vl(e){return $o(e,El(e))}function bl(e){return null==e?"":uo(e)}var yl=Do((function(e,t){if(ka(t)||Gi(t))$o(t,$l(t),e);else for(var n in t)_e.call(t,n)&&tr(e,n,t[n])})),xl=Do((function(e,t){$o(t,El(t),e)})),wl=Do((function(e,t,n,r){$o(t,El(t),e,r)})),Cl=Do((function(e,t,n,r){$o(t,$l(t),e,r)})),Sl=ra(ir);var kl=qr((function(e,t){e=Re(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&xa(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],l=El(i),s=-1,u=l.length;++s<u;){var c=l[s],d=e[c];(d===o||zi(d,Ee[c])&&!_e.call(e,c))&&(e[c]=i[c])}return e})),Ml=qr((function(e){return e.push(o,ea),Pt(Ol,o,e)}));function Rl(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Pl(e,t){return null!=e&&ga(e,t,Ir)}var Il=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),es(rs)),Al=Ho((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),_e.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Tl=qr(Tr);function $l(e){return Gi(e)?qn(e):Fr(e)}function El(e){return Gi(e)?qn(e,!0):Lr(e)}var Dl=Do((function(e,t,n){Hr(e,t,n)})),Ol=Do((function(e,t,n,r){Hr(e,t,n,r)})),_l=ra((function(e,t){var n={};if(null==e)return n;var r=!1;t=_t(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),$o(e,aa(e),n),r&&(n=sr(n,7,ta));for(var o=t.length;o--;)po(n,t[o]);return n}));var Fl=ra((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Pl(e,n)}))}(e,t)}));function Ll(e,t){if(null==e)return{};var n=_t(aa(e),(function(e){return[e]}));return t=ua(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var jl=Xo($l),Nl=Xo(El);function zl(e){return null==e?[]:en(e,$l(e))}var Bl=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return ql(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,on).replace(tt,"")}var Wl=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ul=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gl=Fo("toLowerCase");var Kl=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Yl=Lo((function(e,t,n){return e+(n?" ":"")+ql(t)}));var Zl=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),ql=Fo("toUpperCase");function Xl(e,t,n){return e=bl(e),(t=n?o:t)===o?function(e){return at.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Ql=qr((function(e,t){try{return Pt(e,o,t)}catch(n){return qi(n)?n:new le(n)}})),Jl=ra((function(e,t){return At(t,(function(t){t=La(t),ar(e,t,Ai(e[t],e))})),e}));function es(e){return function(){return e}}var ts=zo(),ns=zo(!0);function rs(e){return e}function os(e){return _r("function"==typeof e?e:sr(e,1))}var as=qr((function(e,t){return function(n){return Tr(n,e,t)}})),is=qr((function(e,t){return function(n){return Tr(e,n,t)}}));function ls(e,t,n){var r=$l(t),o=Cr(t,r);null!=n||el(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Cr(t,$l(t)));var a=!(el(n)&&"chain"in n)||!!n.chain,i=Xi(e);return At(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=To(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})})),e}function ss(){}var us=Wo(_t),cs=Wo($t),ds=Wo(Nt);function ps(e){return wa(e)?Kt(La(e)):function(e){return function(t){return Sr(t,e)}}(e)}var fs=Go(),hs=Go(!0);function ms(){return[]}function gs(){return!1}var vs=Vo((function(e,t){return e+t}),0),bs=Zo("ceil"),ys=Vo((function(e,t){return e/t}),1),xs=Zo("floor");var ws=Vo((function(e,t){return e*t}),1),Cs=Zo("round"),Ss=Vo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ae(a);return e=hl(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Pi,zn.assign=yl,zn.assignIn=xl,zn.assignInWith=wl,zn.assignWith=Cl,zn.at=Sl,zn.before=Ii,zn.bind=Ai,zn.bindAll=Jl,zn.bindKey=Ti,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wi(e)?e:[e]},zn.chain=pi,zn.chunk=function(e,t,r){t=(r?xa(e,t,r):t===o)?1:Yt(hl(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,l=0,s=n(ft(a/t));i<a;)s[l++]=ro(e,i,i+=t);return s},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ft(Wi(r)?To(r):[r],vr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?_t(e,(function(e){if("function"!=typeof e[1])throw new Ae(a);return[n(e[0]),e[1]]})):[],qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Pt(o[0],this,n))return Pt(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=$l(e);return function(n){return ur(n,e,t)}}(sr(e,1))},zn.constant=es,zn.countBy=mi,zn.create=function(e,t){var n=Bn(e);return null==t?n:or(n,t)},zn.curry=function e(t,n,r){var a=Qo(t,8,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},zn.curryRight=function e(t,n,r){var a=Qo(t,s,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},zn.debounce=$i,zn.defaults=kl,zn.defaultsDeep=Ml,zn.defer=Ei,zn.delay=Di,zn.difference=za,zn.differenceBy=Ba,zn.differenceWith=Ha,zn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=n||t===o?1:hl(t))<0?0:t,r):[]},zn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,0,(t=r-(t=n||t===o?1:hl(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!0):[]},zn.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&xa(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=hl(n))<0&&(n=-n>a?0:a+n),(r=r===o||r>a?a:hl(r))<0&&(r+=a),r=n>r?0:ml(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},zn.filter=function(e,t){return(Wi(e)?Et:gr)(e,ua(t,3))},zn.flatMap=function(e,t){return vr(Si(e,t),1)},zn.flatMapDeep=function(e,t){return vr(Si(e,t),f)},zn.flatMapDepth=function(e,t,n){return n=n===o?1:hl(n),vr(Si(e,t),n)},zn.flatten=Ua,zn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,f):[]},zn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===o?1:hl(t)):[]},zn.flip=function(e){return Qo(e,512)},zn.flow=ts,zn.flowRight=ns,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:Cr(e,$l(e))},zn.functionsIn=function(e){return null==e?[]:Cr(e,El(e))},zn.groupBy=xi,zn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},zn.intersection=Ka,zn.intersectionBy=Ya,zn.intersectionWith=Za,zn.invert=Il,zn.invertBy=Al,zn.invokeMap=wi,zn.iteratee=os,zn.keyBy=Ci,zn.keys=$l,zn.keysIn=El,zn.map=Si,zn.mapKeys=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=ua(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(sr(e,1))},zn.matchesProperty=function(e,t){return Br(e,sr(t,1))},zn.memoize=Oi,zn.merge=Dl,zn.mergeWith=Ol,zn.method=as,zn.methodOf=is,zn.mixin=ls,zn.negate=_i,zn.nthArg=function(e){return e=hl(e),qr((function(t){return Vr(t,e)}))},zn.omit=_l,zn.omitBy=function(e,t){return Ll(e,_i(ua(t)))},zn.once=function(e){return Ii(2,e)},zn.orderBy=function(e,t,n,r){return null==e?[]:(Wi(t)||(t=null==t?[]:[t]),Wi(n=r?o:n)||(n=null==n?[]:[n]),Wr(e,t,n))},zn.over=us,zn.overArgs=Fi,zn.overEvery=cs,zn.overSome=ds,zn.partial=Li,zn.partialRight=ji,zn.partition=ki,zn.pick=Fl,zn.pickBy=Ll,zn.property=ps,zn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},zn.pull=Xa,zn.pullAll=Qa,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ua(n,2)):e},zn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},zn.pullAt=Ja,zn.range=fs,zn.rangeRight=hs,zn.rearg=Ni,zn.reject=function(e,t){return(Wi(e)?Et:gr)(e,_i(ua(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=ua(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return Kr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new Ae(a);return qr(e,t=t===o?t:hl(t))},zn.reverse=ei,zn.sampleSize=function(e,t,n){return t=(n?xa(e,t,n):t===o)?1:hl(t),(Wi(e)?Qn:Qr)(e,t)},zn.set=function(e,t,n){return null==e?e:Jr(e,t,n)},zn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Jr(e,t,n,r)},zn.shuffle=function(e){return(Wi(e)?Jn:no)(e)},zn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xa(e,t,n)?(t=0,n=r):(t=null==t?0:hl(t),n=n===o?r:hl(n)),ro(e,t,n)):[]},zn.sortBy=Mi,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ua(t,2)):[]},zn.split=function(e,t,n){return n&&"number"!=typeof n&&xa(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=uo(t))&&sn(e)?Co(mn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ae(a);return t=null==t?0:Yt(hl(t),0),qr((function(n){var r=n[t],o=Co(n,0,t);return r&&Ft(o,r),Pt(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:hl(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:hl(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ua(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?ho(e,ua(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ae(a);return el(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$i(e,t,{leading:r,maxWait:t,trailing:o})},zn.thru=fi,zn.toArray=pl,zn.toPairs=jl,zn.toPairsIn=Nl,zn.toPath=function(e){return Wi(e)?_t(e,La):sl(e)?[e]:To(Fa(bl(e)))},zn.toPlainObject=vl,zn.transform=function(e,t,n){var r=Wi(e),o=r||Yi(e)||ul(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:el(e)&&Xi(a)?Bn(Ge(e)):{}}return(o?At:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Pi(e,1)},zn.union=ti,zn.unionBy=ni,zn.unionWith=ri,zn.uniq=function(e){return e&&e.length?co(e):[]},zn.uniqBy=function(e,t){return e&&e.length?co(e,ua(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},zn.unset=function(e,t){return null==e||po(e,t)},zn.unzip=oi,zn.unzipWith=ai,zn.update=function(e,t,n){return null==e?e:fo(e,t,yo(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:fo(e,t,yo(n),r)},zn.values=zl,zn.valuesIn=function(e){return null==e?[]:en(e,El(e))},zn.without=ii,zn.words=Xl,zn.wrap=function(e,t){return Li(yo(t),e)},zn.xor=li,zn.xorBy=si,zn.xorWith=ui,zn.zip=ci,zn.zipObject=function(e,t){return vo(e||[],t||[],tr)},zn.zipObjectDeep=function(e,t){return vo(e||[],t||[],Jr)},zn.zipWith=di,zn.entries=jl,zn.entriesIn=Nl,zn.extend=xl,zn.extendWith=wl,ls(zn,zn),zn.add=vs,zn.attempt=Ql,zn.camelCase=Bl,zn.capitalize=Hl,zn.ceil=bs,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gl(n))===n?n:0),t!==o&&(t=(t=gl(t))===t?t:0),lr(gl(e),t,n)},zn.clone=function(e){return sr(e,4)},zn.cloneDeep=function(e){return sr(e,5)},zn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||ur(e,t,$l(t))},zn.deburr=Vl,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=ys,zn.endsWith=function(e,t,n){e=bl(e),t=uo(t);var r=e.length,a=n=n===o?r:lr(hl(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},zn.eq=zi,zn.escape=function(e){return(e=bl(e))&&X.test(e)?e.replace(Z,an):e},zn.escapeRegExp=function(e){return(e=bl(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=Wi(e)?$t:hr;return n&&xa(e,t,n)&&(t=o),r(e,ua(t,3))},zn.find=gi,zn.findIndex=Va,zn.findKey=function(e,t){return Bt(e,ua(t,3),xr)},zn.findLast=vi,zn.findLastIndex=Wa,zn.findLastKey=function(e,t){return Bt(e,ua(t,3),wr)},zn.floor=xs,zn.forEach=bi,zn.forEachRight=yi,zn.forIn=function(e,t){return null==e?e:br(e,ua(t,3),El)},zn.forInRight=function(e,t){return null==e?e:yr(e,ua(t,3),El)},zn.forOwn=function(e,t){return e&&xr(e,ua(t,3))},zn.forOwnRight=function(e,t){return e&&wr(e,ua(t,3))},zn.get=Rl,zn.gt=Bi,zn.gte=Hi,zn.has=function(e,t){return null!=e&&ga(e,t,Pr)},zn.hasIn=Pl,zn.head=Ga,zn.identity=rs,zn.includes=function(e,t,n,r){e=Gi(e)?e:zl(e),n=n&&!r?hl(n):0;var o=e.length;return n<0&&(n=Yt(o+n,0)),ll(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Vt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hl(n);return o<0&&(o=Yt(r+o,0)),Vt(e,t,o)},zn.inRange=function(e,t,n){return t=fl(t),n===o?(n=t,t=0):n=fl(n),function(e,t,n){return e>=yn(t,n)&&e<Yt(t,n)}(e=gl(e),t,n)},zn.invoke=Tl,zn.isArguments=Vi,zn.isArray=Wi,zn.isArrayBuffer=Ui,zn.isArrayLike=Gi,zn.isArrayLikeObject=Ki,zn.isBoolean=function(e){return!0===e||!1===e||tl(e)&&Mr(e)==x},zn.isBuffer=Yi,zn.isDate=Zi,zn.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Gi(e)&&(Wi(e)||"string"==typeof e||"function"==typeof e.splice||Yi(e)||ul(e)||Vi(e)))return!e.length;var t=ma(e);if(t==M||t==T)return!e.size;if(ka(e))return!Fr(e).length;for(var n in e)if(_e.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Er(e,t)},zn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Er(e,t,o,n):!!r},zn.isError=qi,zn.isFinite=function(e){return"number"==typeof e&&yt(e)},zn.isFunction=Xi,zn.isInteger=Qi,zn.isLength=Ji,zn.isMap=nl,zn.isMatch=function(e,t){return e===t||Dr(e,t,da(t))},zn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Dr(e,t,da(t),n)},zn.isNaN=function(e){return rl(e)&&e!=+e},zn.isNative=function(e){if(Sa(e))throw new le("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Or(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=rl,zn.isObject=el,zn.isObjectLike=tl,zn.isPlainObject=ol,zn.isRegExp=al,zn.isSafeInteger=function(e){return Qi(e)&&e>=-9007199254740991&&e<=h},zn.isSet=il,zn.isString=ll,zn.isSymbol=sl,zn.isTypedArray=ul,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return tl(e)&&ma(e)==D},zn.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==Mr(e)},zn.join=function(e,t){return null==e?"":xt.call(e,t)},zn.kebabCase=Wl,zn.last=qa,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=hl(n))<0?Yt(r+a,0):yn(a,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ht(e,Ut,a,!0)},zn.lowerCase=Ul,zn.lowerFirst=Gl,zn.lt=cl,zn.lte=dl,zn.max=function(e){return e&&e.length?mr(e,rs,Rr):o},zn.maxBy=function(e,t){return e&&e.length?mr(e,ua(t,2),Rr):o},zn.mean=function(e){return Gt(e,rs)},zn.meanBy=function(e,t){return Gt(e,ua(t,2))},zn.min=function(e){return e&&e.length?mr(e,rs,jr):o},zn.minBy=function(e,t){return e&&e.length?mr(e,ua(t,2),jr):o},zn.stubArray=ms,zn.stubFalse=gs,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=ws,zn.nth=function(e,t){return e&&e.length?Vr(e,hl(t)):o},zn.noConflict=function(){return mt._===this&&(mt._=ze),this},zn.noop=ss,zn.now=Ri,zn.pad=function(e,t,n){e=bl(e);var r=(t=hl(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Uo(ht(o),n)+e+Uo(ft(o),n)},zn.padEnd=function(e,t,n){e=bl(e);var r=(t=hl(t))?hn(e):0;return t&&r<t?e+Uo(t-r,n):e},zn.padStart=function(e,t,n){e=bl(e);var r=(t=hl(t))?hn(e):0;return t&&r<t?Uo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bl(e).replace(ie,""),t||0)},zn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xa(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=fl(e),t===o?(t=e,e=0):t=fl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Cn();return yn(e+a*(t-e+dt("1e-"+((a+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Wi(e)?Lt:Zt,o=arguments.length<3;return r(e,ua(t,4),n,o,pr)},zn.reduceRight=function(e,t,n){var r=Wi(e)?jt:Zt,o=arguments.length<3;return r(e,ua(t,4),n,o,fr)},zn.repeat=function(e,t,n){return t=(n?xa(e,t,n):t===o)?1:hl(t),Zr(bl(e),t)},zn.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,a=(t=xo(t,e)).length;for(a||(a=1,e=o);++r<a;){var i=null==e?o:e[La(t[r])];i===o&&(r=a,i=n),e=Xi(i)?i.call(e):i}return e},zn.round=Cs,zn.runInContext=e,zn.sample=function(e){return(Wi(e)?Xn:Xr)(e)},zn.size=function(e){if(null==e)return 0;if(Gi(e))return ll(e)?hn(e):e.length;var t=ma(e);return t==M||t==T?e.size:Fr(e).length},zn.snakeCase=Kl,zn.some=function(e,t,n){var r=Wi(e)?Nt:oo;return n&&xa(e,t,n)&&(t=o),r(e,ua(t,3))},zn.sortedIndex=function(e,t){return ao(e,t)},zn.sortedIndexBy=function(e,t,n){return io(e,t,ua(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&zi(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return ao(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return io(e,t,ua(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(zi(e[n],t))return n}return-1},zn.startCase=Yl,zn.startsWith=function(e,t,n){return e=bl(e),n=null==n?0:lr(hl(n),0,e.length),t=uo(t),e.slice(n,n+t.length)==t},zn.subtract=Ss,zn.sum=function(e){return e&&e.length?qt(e,rs):0},zn.sumBy=function(e,t){return e&&e.length?qt(e,ua(t,2)):0},zn.template=function(e,t,n){var r=zn.templateSettings;n&&xa(e,t,n)&&(t=o),e=bl(e),t=wl({},t,r,Jo);var a,i,l=wl({},t.imports,r.imports,Jo),s=$l(l),u=en(l,s),c=0,d=t.interpolate||Ce,p="__p += '",f=Pe((t.escape||Ce).source+"|"+d.source+"|"+(d===ee?he:Ce).source+"|"+(t.evaluate||Ce).source+"|$","g"),h="//# sourceURL="+(_e.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(f,(function(t,n,r,o,l,s){return r||(r=o),p+=e.slice(c,s).replace(Se,ln),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),l&&(i=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),p+="';\n";var m=_e.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new le("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(U,""):p).replace(G,"$1").replace(K,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Ql((function(){return ke(s,h+"return "+p).apply(o,u)}));if(g.source=p,qi(g))throw g;return g},zn.times=function(e,t){if((e=hl(e))<1||e>h)return[];var n=g,r=yn(e,g);t=ua(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},zn.toFinite=fl,zn.toInteger=hl,zn.toLength=ml,zn.toLower=function(e){return bl(e).toLowerCase()},zn.toNumber=gl,zn.toSafeInteger=function(e){return e?lr(hl(e),-9007199254740991,h):0===e?e:0},zn.toString=bl,zn.toUpper=function(e){return bl(e).toUpperCase()},zn.trim=function(e,t,n){if((e=bl(e))&&(n||t===o))return Qt(e);if(!e||!(t=uo(t)))return e;var r=mn(e),a=mn(t);return Co(r,nn(r,a),rn(r,a)+1).join("")},zn.trimEnd=function(e,t,n){if((e=bl(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=uo(t)))return e;var r=mn(e);return Co(r,0,rn(r,mn(t))+1).join("")},zn.trimStart=function(e,t,n){if((e=bl(e))&&(n||t===o))return e.replace(ie,"");if(!e||!(t=uo(t)))return e;var r=mn(e);return Co(r,nn(r,mn(t))).join("")},zn.truncate=function(e,t){var n=30,r="...";if(el(t)){var a="separator"in t?t.separator:a;n="length"in t?hl(t.length):n,r="omission"in t?uo(t.omission):r}var i=(e=bl(e)).length;if(sn(e)){var l=mn(e);i=l.length}if(n>=i)return e;var s=n-hn(r);if(s<1)return r;var u=l?Co(l,0,s).join(""):e.slice(0,s);if(a===o)return u+r;if(l&&(s+=u.length-s),al(a)){if(e.slice(s).search(a)){var c,d=u;for(a.global||(a=Pe(a.source,bl(me.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var p=c.index;u=u.slice(0,p===o?s:p)}}else if(e.indexOf(uo(a),s)!=s){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+r},zn.unescape=function(e){return(e=bl(e))&&q.test(e)?e.replace(Y,vn):e},zn.uniqueId=function(e){var t=++Fe;return bl(e)+t},zn.upperCase=Zl,zn.upperFirst=ql,zn.each=bi,zn.eachRight=yi,zn.first=Ga,ls(zn,function(){var e={};return xr(zn,(function(t,n){_e.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),At(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:Yt(hl(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(rs)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Tr(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(_i(ua(e)))},Wn.prototype.slice=function(e,t){e=hl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(g)},xr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=zn[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(zn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,s=t instanceof Wn,u=l[0],c=s||Wi(t),d=function(e){var t=a.apply(zn,Ft([e],l));return r&&p?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=i&&!p,m=s&&!f;if(!i&&c){t=m?t:new Wn(this);var g=e.apply(t,l);return g.__actions__.push({func:fi,args:[d],thisArg:o}),new Vn(g,p)}return h&&m?e.apply(this,l):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Wi(o)?o:[],e)}return this[n]((function(n){return t.apply(Wi(n)?n:[],e)}))}})),xr(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";_e.call($n,r)||($n[r]=[]),$n[r].push({name:t,func:n})}})),$n[Bo(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=To(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=To(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=To(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Wi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=yn(t,e+i);break;case"takeRight":e=Yt(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,l=a.end,s=l-i,u=r?l:i-1,c=this.__iteratees__,d=c.length,p=0,f=yn(s,this.__takeCount__);if(!n||!r&&o==s&&f==s)return mo(e,this.__actions__);var h=[];e:for(;s--&&p<f;){for(var m=-1,g=e[u+=t];++m<d;){var v=c[m],b=v.iteratee,y=v.type,x=b(g);if(2==y)g=x;else if(!x){if(1==y)continue e;break e}}h[p++]=g}return h},zn.prototype.at=hi,zn.prototype.chain=function(){return pi(this)},zn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===o&&(this.__values__=pl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Na(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:fi,args:[ei],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(ei)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Xe&&(zn.prototype[Xe]=function(){return this}),zn}();mt._=bn,(r=function(){return bn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},14:e=>{e.exports=function(){return!1}},9328:function(e,t,n){var r,o;r=function(){var e,t,n="2.0.6",r={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},i={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function l(e,t){this._input=e,this._value=t}return(e=function(n){var o,a,s,u;if(e.isNumeral(n))o=n.value();else if(0===n||"undefined"===typeof n)o=0;else if(null===n||t.isNaN(n))o=null;else if("string"===typeof n)if(i.zeroFormat&&n===i.zeroFormat)o=0;else if(i.nullFormat&&n===i.nullFormat||!n.replace(/[^0-9]+/g,"").length)o=null;else{for(a in r)if((u="function"===typeof r[a].regexps.unformat?r[a].regexps.unformat():r[a].regexps.unformat)&&n.match(u)){s=r[a].unformat;break}o=(s=s||e._.stringToNumber)(n)}else o=Number(n)||null;return new l(n,o)}).version=n,e.isNumeral=function(e){return e instanceof l},e._=t={numberToFormat:function(t,n,r){var a,i,l,s,u,c,d,p=o[e.options.currentLocale],f=!1,h=!1,m=0,g="",v=1e12,b=1e9,y=1e6,x=1e3,w="",C=!1;if(t=t||0,i=Math.abs(t),e._.includes(n,"(")?(f=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),i>=v&&!a||"t"===a?(g+=p.abbreviations.trillion,t/=v):i<v&&i>=b&&!a||"b"===a?(g+=p.abbreviations.billion,t/=b):i<b&&i>=y&&!a||"m"===a?(g+=p.abbreviations.million,t/=y):(i<y&&i>=x&&!a||"k"===a)&&(g+=p.abbreviations.thousand,t/=x)),e._.includes(n,"[.]")&&(h=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],s=n.split(".")[1],c=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,s?(e._.includes(s,"[")?(s=(s=s.replace("]","")).split("["),w=e._.toFixed(t,s[0].length+s[1].length,r,s[1].length)):w=e._.toFixed(t,s.length,r),l=w.split(".")[0],w=e._.includes(w,".")?p.delimiters.decimal+w.split(".")[1]:"",h&&0===Number(w.slice(1))&&(w="")):l=e._.toFixed(t,0,r),g&&!a&&Number(l)>=1e3&&g!==p.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),C=!0),l.length<m)for(var S=m-l.length;S>0;S--)l="0"+l;return c>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(l=""),d=l+w+(g||""),f?d=(f&&C?"(":"")+d+(f&&C?")":""):u>=0?d=0===u?(C?"-":"+")+d:d+(C?"-":"+"):C&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,a=o[i.currentLocale],l=e,s={thousand:3,million:6,billion:9,trillion:12};if(i.zeroFormat&&e===i.zeroFormat)n=0;else if(i.nullFormat&&e===i.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==a.delimiters.decimal&&(e=e.replace(/\./g,"").replace(a.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+a.abbreviations[t]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),l.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"===typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),o=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<o&&!(a in r);)a++;if(a>=o)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<o;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var o,a,i,l,s=e.toString().split("."),u=t-(r||0);return o=2===s.length?Math.min(Math.max(s[1].length,u),t):u,i=Math.pow(10,o),l=(n(e+"e+"+o)/i).toFixed(o),r>t-o&&(a=new RegExp("\\.?0{1,"+(r-(t-o))+"}$"),l=l.replace(a,"")),l}},e.options=i,e.formats=r,e.locales=o,e.locale=function(e){return e&&(i.currentLocale=e.toLowerCase()),i.currentLocale},e.localeData=function(e){if(!e)return o[i.currentLocale];if(e=e.toLowerCase(),!o[e])throw new Error("Unknown locale : "+e);return o[e]},e.reset=function(){for(var e in a)i[e]=a[e]},e.zeroFormat=function(e){i.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){i.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){i.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,o,a,i,l,s,u,c;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{u=e.localeData(n)}catch(d){u=e.localeData(e.locale())}return a=u.currency.symbol,l=u.abbreviations,r=u.delimiters.decimal,o="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(c=t.match(/^[^\d]+/))||(t=t.substr(1),c[0]===a))&&(null===(c=t.match(/[^\d]+$/))||(t=t.slice(0,-1),c[0]===l.thousand||c[0]===l.million||c[0]===l.billion||c[0]===l.trillion))&&(s=new RegExp(o+"{2}"),!t.match(/[^\d.,]/g)&&!((i=t.split(r)).length>2)&&(i.length<2?!!i[0].match(/^\d+.*\d$/)&&!i[0].match(s):1===i[0].length?!!i[0].match(/^\d+$/)&&!i[0].match(s)&&!!i[1].match(/^\d+$/):!!i[0].match(/^\d+.*\d$/)&&!i[0].match(s)&&!!i[1].match(/^\d+$/)))},e.fn=l.prototype={clone:function(){return e(this)},format:function(t,n){var o,a,l,s=this._value,u=t||i.defaultFormat;if(n=n||Math.round,0===s&&null!==i.zeroFormat)a=i.zeroFormat;else if(null===s&&null!==i.nullFormat)a=i.nullFormat;else{for(o in r)if(u.match(r[o].regexps.format)){l=r[o].format;break}a=(l=l||e._.numberToFormat)(s,u,n)}return a},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,o){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,o){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,o){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var o,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,a+"BPS"),o=o.join("")):o=o+a+"BPS",o},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,o,a){var i,l,s,u=e._.includes(o,"ib")?n:t,c=e._.includes(o," b")||e._.includes(o," ib")?" ":"";for(o=o.replace(/\s?i?b/,""),i=0;i<=u.suffixes.length;i++)if(l=Math.pow(u.base,i),s=Math.pow(u.base,i+1),null===r||0===r||r>=l&&r<s){c+=u.suffixes[i],l>0&&(r/=l);break}return e._.numberToFormat(r,o,a)+c},unformat:function(r){var o,a,i=e._.stringToNumber(r);if(i){for(o=t.suffixes.length-1;o>=0;o--){if(e._.includes(r,t.suffixes[o])){a=Math.pow(t.base,o);break}if(e._.includes(r,n.suffixes[o])){a=Math.pow(n.base,o);break}}i*=a||1}return i}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var o,a,i=e.locales[e.options.currentLocale],l={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),o=e._.numberToFormat(t,n,r),t>=0?(l.before=l.before.replace(/[\-\(]/,""),l.after=l.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(l.before,"-")&&!e._.includes(l.before,"(")&&(l.before="-"+l.before),a=0;a<l.before.length;a++)switch(l.before[a]){case"$":o=e._.insert(o,i.currency.symbol,a);break;case" ":o=e._.insert(o," ",a+i.currency.symbol.length-1)}for(a=l.after.length-1;a>=0;a--)switch(l.after[a]){case"$":o=a===l.after.length-1?o+i.currency.symbol:e._.insert(o,i.currency.symbol,-(l.after.length-(1+a)));break;case" ":o=a===l.after.length-1?o+" ":e._.insert(o," ",-(l.after.length-(1+a)+i.currency.symbol.length-1))}return o}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var o=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(o[0]),n,r)+"e"+o[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),o=Number(n[1]);function a(t,n,r,o){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}return o=e._.includes(t,"e-")?o*=-1:o,e._.reduce([r,Math.pow(10,o)],a,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var o=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=o.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var o,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),o=e._.numberToFormat(t,n,r),e._.includes(o,")")?((o=o.split("")).splice(-1,0,a+"%"),o=o.join("")):o=o+a+"%",o},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),o=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*o);return r+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(o="function"===typeof r?r.call(t,n,t,e):r)||(e.exports=o)},1497:(e,t,n)=>{"use strict";var r=n(3218);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2730:(e,t,n)=>{"use strict";var r=n(5043),o=n(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function s(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},h={};function m(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function y(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(f,e)&&(p.test(e)?h[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),P=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),E=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var D=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function _(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var F,L=Object.assign;function j(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var N=!1;function z(e,t){if(!e||N)return"";N=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var o=u.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{N=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function B(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case C:return"Portal";case M:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case R:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case $:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case E:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function U(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=U(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=U(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function se(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ve=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Se=null,ke=null;function Me(e){if(e=xo(e)){if("function"!==typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Re(e){Se?ke?ke.push(e):ke=[e]:Se=e}function Pe(){if(Se){var e=Se,t=ke;if(ke=Se=null,Me(e),t)for(e=0;e<t.length;e++)Me(t[e])}}function Ie(e,t){return e(t)}function Ae(){}var Te=!1;function $e(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ie(e,t,n)}finally{Te=!1,(null!==Se||null!==ke)&&(Ae(),Pe())}}function Ee(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var De=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){De=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){De=!1}function _e(e,t,n,r,o,a,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,Le=null,je=!1,Ne=null,ze={onError:function(e){Fe=!0,Le=e}};function Be(e,t,n,r,o,a,i,l,s){Fe=!1,Le=null,_e.apply(ze,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(a(188))}function Ue(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return We(o),e;if(i===r)return We(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ye=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,qe=o.unstable_requestPaint,Xe=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-it(t)),r|=e[n],t&=~o;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Ct,St,kt,Mt,Rt=!1,Pt=[],It=null,At=null,Tt=null,$t=new Map,Et=new Map,Dt=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _t(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":$t.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function Ft(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Lt(e){var t=yo(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Mt(e.priority,(function(){St(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Nt(e,t,n){jt(e)&&n.delete(t)}function zt(){Rt=!1,null!==It&&jt(It)&&(It=null),null!==At&&jt(At)&&(At=null),null!==Tt&&jt(Tt)&&(Tt=null),$t.forEach(Nt),Et.forEach(Nt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Rt||(Rt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function Ht(e){function t(t){return Bt(t,e)}if(0<Pt.length){Bt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==It&&Bt(It,e),null!==At&&Bt(At,e),null!==Tt&&Bt(Tt,e),$t.forEach(t),Et.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Dt.shift()}var Vt=x.ReactCurrentBatchConfig,Wt=!0;function Ut(e,t,n,r){var o=yt,a=Vt.transition;Vt.transition=null;try{yt=1,Kt(e,t,n,r)}finally{yt=o,Vt.transition=a}}function Gt(e,t,n,r){var o=yt,a=Vt.transition;Vt.transition=null;try{yt=4,Kt(e,t,n,r)}finally{yt=o,Vt.transition=a}}function Kt(e,t,n,r){if(Wt){var o=Zt(e,t,n,r);if(null===o)Wr(e,t,r,Yt,n),_t(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return It=Ft(It,e,t,n,r,o),!0;case"dragenter":return At=Ft(At,e,t,n,r,o),!0;case"mouseover":return Tt=Ft(Tt,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return $t.set(a,Ft($t.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Et.set(a,Ft(Et.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(_t(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&wt(a),null===(a=Zt(e,t,n,r))&&Wr(e,t,r,Yt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Yt=null;function Zt(e,t,n,r){if(Yt=null,null!==(e=yo(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=L({},un,{view:0,detail:0}),pn=on(dn),fn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),mn=on(L({},fn,{dataTransfer:0})),gn=on(L({},dn,{relatedTarget:0})),vn=on(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(bn),xn=on(L({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Mn(){return kn}var Rn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(Rn),In=on(L({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=on(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),Tn=on(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),$n=L({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),En=on($n),Dn=[9,13,27,32],On=c&&"CompositionEvent"in window,_n=null;c&&"documentMode"in document&&(_n=document.documentMode);var Fn=c&&"TextEvent"in window&&!_n,Ln=c&&(!On||_n&&8<_n&&11>=_n),jn=String.fromCharCode(32),Nn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Un(e,t,n,r){Re(r),0<(t=Gr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Yn(e){jr(e,0)}function Zn(e){if(K(wo(e)))return e}function qn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Qn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Qn=Jn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Kn=Gn=null)}function nr(e){if("value"===e.propertyName&&Zn(Kn)){var t=[];Un(t,Kn,e,we(e)),$e(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Kn)}function ar(e,t){if("click"===e)return Zn(t)}function ir(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function sr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=cr(n,a);var i=cr(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,br=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Y(r)||("selectionStart"in(r=gr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Gr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Sr={},kr={};function Mr(e){if(Sr[e])return Sr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Sr[e]=n[t];return e}c&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Rr=Mr("animationend"),Pr=Mr("animationiteration"),Ir=Mr("animationstart"),Ar=Mr("transitionend"),Tr=new Map,$r="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(e,t){Tr.set(e,t),s(t,[e])}for(var Dr=0;Dr<$r.length;Dr++){var Or=$r[Dr];Er(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Er(Rr,"onAnimationEnd"),Er(Pr,"onAnimationIteration"),Er(Ir,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(Ar,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(_r));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Be.apply(this,arguments),Fe){if(!Fe)throw Error(a(198));var c=Le;Fe=!1,Le=null,je||(je=!0,Ne=c)}}(r,t,void 0,e),e.currentTarget=null}function jr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Lr(o,l,u),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,u=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Lr(o,l,u),a=s}}}if(je)throw e=Ne,je=!1,Ne=null,e}function Nr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Br]){e[Br]=!0,i.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,zr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(qt(t)){case 1:var o=Ut;break;case 4:o=Gt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=yo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}$e((function(){var r=a,o=we(n),i=[];e:{var l=Tr.get(e);if(void 0!==l){var s=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=An;break;case Rr:case Pr:case Ir:s=vn;break;case Ar:s=Tn;break;case"scroll":s=pn;break;case"wheel":s=En;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=In}var c=0!==(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Ee(h,p))&&c.push(Ur(h,m,f)))),d)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),i.push({event:l,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!yo(u)&&!u[mo])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?yo(u):null)&&(u!==(d=He(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=In,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:wo(s),f=null==u?l:wo(u),(l=new c(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,yo(o)===r&&((c=new c(p,h+"enter",u,n,o)).target=f,c.relatedTarget=d,m=c),d=m,s&&u)e:{for(p=u,h=0,f=c=s;f;f=Kr(f))h++;for(f=0,m=p;m;m=Kr(m))f++;for(;0<h-f;)c=Kr(c),h--;for(;0<f-h;)p=Kr(p),f--;for(;h--;){if(c===p||null!==p&&c===p.alternate)break e;c=Kr(c),p=Kr(p)}c=null}else c=null;null!==s&&Yr(i,l,s,c,!1),null!==u&&null!==d&&Yr(i,d,u,c,!0)}if("select"===(s=(l=r?wo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=qn;else if(Wn(l))if(Xn)g=ir;else{g=or;var v=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Un(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?wo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,br=null);break;case"focusout":br=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var b;if(On)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?zn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(b=en()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Hn=!0)),0<(v=Gr(r,y)).length&&(y=new xn(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Fn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Nn=!0,jn);case"textInput":return(e=t.data)===jn&&Nn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!On&&zn(e,t)?(e=en(),Jt=Qt=Xt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}jr(i,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ee(e,n))&&r.unshift(Ur(e,a,o)),null!=(a=Ee(e,t))&&r.push(Ur(e,a,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Ee(n,a))&&i.unshift(Ur(n,s,l)):o||null!=(s=Ee(n,a))&&i.push(Ur(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Zr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(qr,"")}function Qr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,vo="__reactListeners$"+po,bo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[fo])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Co(e){return e[ho]||null}var So=[],ko=-1;function Mo(e){return{current:e}}function Ro(e){0>ko||(e.current=So[ko],So[ko]=null,ko--)}function Po(e,t){ko++,So[ko]=e.current,e.current=t}var Io={},Ao=Mo(Io),To=Mo(!1),$o=Io;function Eo(e,t){var n=e.type.contextTypes;if(!n)return Io;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Do(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oo(){Ro(To),Ro(Ao)}function _o(e,t,n){if(Ao.current!==Io)throw Error(a(168));Po(Ao,t),Po(To,n)}function Fo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,V(e)||"Unknown",o));return L({},n,r)}function Lo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,$o=Ao.current,Po(Ao,e),Po(To,To.current),!0}function jo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Fo(e,t,$o),r.__reactInternalMemoizedMergedChildContext=e,Ro(To),Ro(Ao),Po(Ao,e)):Ro(To),Po(To,n)}var No=null,zo=!1,Bo=!1;function Ho(e){null===No?No=[e]:No.push(e)}function Vo(){if(!Bo&&null!==No){Bo=!0;var e=0,t=yt;try{var n=No;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}No=null,zo=!1}catch(o){throw null!==No&&(No=No.slice(e+1)),Ke(Je,Vo),o}finally{yt=t,Bo=!1}}return null}var Wo=[],Uo=0,Go=null,Ko=0,Yo=[],Zo=0,qo=null,Xo=1,Qo="";function Jo(e,t){Wo[Uo++]=Ko,Wo[Uo++]=Go,Go=e,Ko=t}function ea(e,t,n){Yo[Zo++]=Xo,Yo[Zo++]=Qo,Yo[Zo++]=qo,qo=e;var r=Xo;e=Qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Xo=1<<32-it(t)+o|n<<o|r,Qo=a+e}else Xo=1<<a|n<<o|r,Qo=e}function ta(e){null!==e.return&&(Jo(e,1),ea(e,1,0))}function na(e){for(;e===Go;)Go=Wo[--Uo],Wo[Uo]=null,Ko=Wo[--Uo],Wo[Uo]=null;for(;e===qo;)qo=Yo[--Zo],Yo[Zo]=null,Qo=Yo[--Zo],Yo[Zo]=null,Xo=Yo[--Zo],Yo[Zo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=$u(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,oa=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qo?{id:Xo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=$u(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ua(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(aa){var t=oa;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=uo(n.nextSibling);var r=ra;t&&sa(e,t)?la(r,n):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ua(e))throw fa(),Error(a(418));for(;t;)la(e,t),t=uo(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oa=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oa=null}}else oa=ra?uo(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=uo(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=x.ReactCurrentBatchConfig;function va(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Du(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===E&&ya(a)===t.type)?((r=o(t,n.props)).ref=va(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=va(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ju(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=_u(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=va(e,null,t),n.return=e,n;case C:return(t=ju(t,e.mode,n)).return=e,t;case E:return p(e,(0,t._init)(t._payload),n)}if(te(t)||_(t))return(t=_u(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case C:return n.key===o?c(e,t,n,r):null;case E:return f(e,t,(o=n._init)(n._payload),r)}if(te(n)||_(n))return null!==o?null:d(e,t,n,r,null);ba(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case E:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||_(r))return d(t,e=e.get(n)||null,r,o,null);ba(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(o,d,l[m],s);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===l.length)return n(o,d),aa&&Jo(o,m),u;if(null===d){for(;m<l.length;m++)null!==(d=p(o,l[m],s))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return aa&&Jo(o,m),u}for(d=r(o,d);m<l.length;m++)null!==(g=h(d,o,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Jo(o,m),u}function g(o,l,s,u){var c=_(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=c=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(o,m,b.value,u);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),l=i(y,l,g),null===d?c=y:d.sibling=y,d=y,m=v}if(b.done)return n(o,m),aa&&Jo(o,g),c;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=p(o,b.value,u))&&(l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return aa&&Jo(o,g),c}for(m=r(o,m);!b.done;g++,b=s.next())null!==(b=h(m,o,g,b.value,u))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=i(b,l,g),null===d?c=b:d.sibling=b,d=b);return e&&m.forEach((function(e){return t(o,e)})),aa&&Jo(o,g),c}return function e(r,a,i,s){if("object"===typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var u=i.key,c=a;null!==c;){if(c.key===u){if((u=i.type)===S){if(7===c.tag){n(r,c.sibling),(a=o(c,i.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===E&&ya(u)===c.type){n(r,c.sibling),(a=o(c,i.props)).ref=va(r,c,i),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}i.type===S?((a=_u(i.props.children,r.mode,s,i.key)).return=r,r=a):((s=Ou(i.type,i.key,i.props,null,r.mode,s)).ref=va(r,a,i),s.return=r,r=s)}return l(r);case C:e:{for(c=i.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){n(r,a.sibling),(a=o(a,i.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=ju(i,r.mode,s)).return=r,r=a}return l(r);case E:return e(r,a,(c=i._init)(i._payload),s)}if(te(i))return m(r,a,i,s);if(_(i))return g(r,a,i,s);ba(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,i)).return=r,r=a):(n(r,a),(a=Lu(i,r.mode,s)).return=r,r=a),l(r)):n(r,a)}}var wa=xa(!0),Ca=xa(!1),Sa=Mo(null),ka=null,Ma=null,Ra=null;function Pa(){Ra=Ma=ka=null}function Ia(e){var t=Sa.current;Ro(Sa),e._currentValue=t}function Aa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ta(e,t){ka=e,Ra=Ma=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(yl=!0),e.firstContext=null)}function $a(e){var t=e._currentValue;if(Ra!==e)if(e={context:e,memoizedValue:t,next:null},null===Ma){if(null===ka)throw Error(a(308));Ma=e,ka.dependencies={lanes:0,firstContext:e}}else Ma=Ma.next=e;return t}var Ea=null;function Da(e){null===Ea?Ea=[e]:Ea.push(e)}function Oa(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Da(t)):(n.next=o.next,o.next=n),t.interleaved=n,_a(e,r)}function _a(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Fa=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Na(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Is)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,_a(e,n)}return null===(o=r.interleaved)?(t.next=t,Da(r)):(t.next=o.next,o.next=t),r.interleaved=t,_a(e,n)}function Ba(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Va(e,t,n,r){var o=e.updateQueue;Fa=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===i?a=u:i.next=u,i=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==i&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,c=u=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(p="function"===typeof(h=m.payload)?h.call(f,d,p):h)||void 0===p)break e;d=L({},d,p);break e;case 2:Fa=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Fs|=i,e.lanes=i,e.memoizedState=d}}function Wa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var Ua={},Ga=Mo(Ua),Ka=Mo(Ua),Ya=Mo(Ua);function Za(e){if(e===Ua)throw Error(a(174));return e}function qa(e,t){switch(Po(Ya,t),Po(Ka,e),Po(Ga,Ua),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ro(Ga),Po(Ga,t)}function Xa(){Ro(Ga),Ro(Ka),Ro(Ya)}function Qa(e){Za(Ya.current);var t=Za(Ga.current),n=se(t,e.type);t!==n&&(Po(Ka,e),Po(Ga,n))}function Ja(e){Ka.current===e&&(Ro(Ga),Ro(Ka))}var ei=Mo(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=x.ReactCurrentDispatcher,ai=x.ReactCurrentBatchConfig,ii=0,li=null,si=null,ui=null,ci=!1,di=!1,pi=0,fi=0;function hi(){throw Error(a(321))}function mi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function gi(e,t,n,r,o,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Ji:el,e=n(r,o),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(a(301));i+=1,ui=si=null,t.updateQueue=null,oi.current=tl,e=n(r,o)}while(di)}if(oi.current=Qi,t=null!==si&&null!==si.next,ii=0,ui=si=li=null,ci=!1,t)throw Error(a(300));return e}function vi(){var e=0!==pi;return pi=0,e}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ui?li.memoizedState=ui=e:ui=ui.next=e,ui}function yi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ui?li.memoizedState:ui.next;if(null!==t)ui=t,si=e;else{if(null===e)throw Error(a(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ui?li.memoizedState=ui=e:ui=ui.next=e}return ui}function xi(e,t){return"function"===typeof t?t(e):t}function wi(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=si,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var s=l=null,u=null,c=i;do{var d=c.lane;if((ii&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(s=u=p,l=r):u=u.next=p,li.lanes|=d,Fs|=d}c=c.next}while(null!==c&&c!==i);null===u?l=r:u.next=s,lr(r,t.memoizedState)||(yl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,li.lanes|=i,Fs|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ci(e){var t=yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);lr(i,t.memoizedState)||(yl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Si(){}function ki(e,t){var n=li,r=yi(),o=t(),i=!lr(r.memoizedState,o);if(i&&(r.memoizedState=o,yl=!0),r=r.queue,Fi(Pi.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ui&&1&ui.memoizedState.tag){if(n.flags|=2048,$i(9,Ri.bind(null,n,r,o,t),void 0,null),null===As)throw Error(a(349));0!==(30&ii)||Mi(n,t,o)}return o}function Mi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ri(e,t,n,r){t.value=n,t.getSnapshot=r,Ii(t)&&Ai(e)}function Pi(e,t,n){return n((function(){Ii(t)&&Ai(e)}))}function Ii(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Ai(e){var t=_a(e,1);null!==t&&nu(t,e,1,-1)}function Ti(e){var t=bi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:e},t.queue=e,e=e.dispatch=Yi.bind(null,li,e),[t.memoizedState,e]}function $i(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ei(){return yi().memoizedState}function Di(e,t,n,r){var o=bi();li.flags|=e,o.memoizedState=$i(1|t,n,void 0,void 0===r?null:r)}function Oi(e,t,n,r){var o=yi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&mi(r,i.deps))return void(o.memoizedState=$i(t,n,a,r))}li.flags|=e,o.memoizedState=$i(1|t,n,a,r)}function _i(e,t){return Di(8390656,8,e,t)}function Fi(e,t){return Oi(2048,8,e,t)}function Li(e,t){return Oi(4,2,e,t)}function ji(e,t){return Oi(4,4,e,t)}function Ni(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oi(4,4,Ni.bind(null,t,e),n)}function Bi(){}function Hi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wi(e,t,n){return 0===(21&ii)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),li.lanes|=n,Fs|=n,e.baseState=!0),t)}function Ui(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{yt=n,ai.transition=r}}function Gi(){return yi().memoizedState}function Ki(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zi(e))qi(t,n);else if(null!==(n=Oa(e,t,n,r))){nu(n,e,r,eu()),Xi(n,t,r)}}function Yi(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zi(e))qi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Da(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=Oa(e,t,o,r))&&(nu(n,e,r,o=eu()),Xi(n,t,r))}}function Zi(e){var t=e.alternate;return e===li||null!==t&&t===li}function qi(e,t){di=ci=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xi(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Qi={readContext:$a,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useInsertionEffect:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useSyncExternalStore:hi,useId:hi,unstable_isNewReconciler:!1},Ji={readContext:$a,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:$a,useEffect:_i,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Di(4194308,4,Ni.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Di(4194308,4,e,t)},useInsertionEffect:function(e,t){return Di(4,2,e,t)},useMemo:function(e,t){var n=bi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ki.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:Ti,useDebugValue:Bi,useDeferredValue:function(e){return bi().memoizedState=e},useTransition:function(){var e=Ti(!1),t=e[0];return e=Ui.bind(null,e[1]),bi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=li,o=bi();if(aa){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===As)throw Error(a(349));0!==(30&ii)||Mi(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,_i(Pi.bind(null,r,i,e),[e]),r.flags|=2048,$i(9,Ri.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=bi(),t=As.identifierPrefix;if(aa){var n=Qo;t=":"+t+"R"+(n=(Xo&~(1<<32-it(Xo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:$a,useCallback:Hi,useContext:$a,useEffect:Fi,useImperativeHandle:zi,useInsertionEffect:Li,useLayoutEffect:ji,useMemo:Vi,useReducer:wi,useRef:Ei,useState:function(){return wi(xi)},useDebugValue:Bi,useDeferredValue:function(e){return Wi(yi(),si.memoizedState,e)},useTransition:function(){return[wi(xi)[0],yi().memoizedState]},useMutableSource:Si,useSyncExternalStore:ki,useId:Gi,unstable_isNewReconciler:!1},tl={readContext:$a,useCallback:Hi,useContext:$a,useEffect:Fi,useImperativeHandle:zi,useInsertionEffect:Li,useLayoutEffect:ji,useMemo:Vi,useReducer:Ci,useRef:Ei,useState:function(){return Ci(xi)},useDebugValue:Bi,useDeferredValue:function(e){var t=yi();return null===si?t.memoizedState=e:Wi(t,si.memoizedState,e)},useTransition:function(){return[Ci(xi)[0],yi().memoizedState]},useMutableSource:Si,useSyncExternalStore:ki,useId:Gi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Na(r,o);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=za(e,a,o))&&(nu(t,e,o,r),Ba(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),a=Na(r,o);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=za(e,a,o))&&(nu(t,e,o,r),Ba(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Na(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=za(e,o,r))&&(nu(t,e,r,n),Ba(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function il(e,t,n){var r=!1,o=Io,a=t.contextType;return"object"===typeof a&&null!==a?a=$a(a):(o=Do(t)?$o:Ao.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Eo(e,o):Io),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},La(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=$a(a):(a=Do(t)?$o:Ao.current,o.context=Eo(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(rl(e,t,a,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Va(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function ul(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var o=n}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pl="function"===typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=Na(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Us=r),dl(0,t)},n}function hl(e,t,n){(n=Na(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!==typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Mu.bind(null,e,t,n),t.then(e,e))}function gl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Na(-1,1)).tag=2,za(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var bl=x.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?Ca(t,null,n,r):wa(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var a=t.ref;return Ta(t,o),r=gi(e,t,n,r,a,o),n=vi(),null===e||yl?(aa&&n&&ta(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!==typeof a||Eu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Sl(e,t,a,r,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Du(a,r)).ref=t.ref,e.return=t,t.child=e}function Sl(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=a,0===(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);0!==(131072&e.flags)&&(yl=!0)}}return Rl(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ds,Es),Es|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ds,Es),Es|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Po(Ds,Es),Es|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Po(Ds,Es),Es|=r;return xl(e,t,o,n),t.child}function Ml(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rl(e,t,n,r,o){var a=Do(n)?$o:Ao.current;return a=Eo(t,a),Ta(t,o),n=gi(e,t,n,r,a,o),r=vi(),null===e||yl?(aa&&r&&ta(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Pl(e,t,n,r,o){if(Do(n)){var a=!0;Lo(t)}else a=!1;if(Ta(t,o),null===t.stateNode)Vl(e,t),il(t,n,r),sl(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"===typeof u&&null!==u?u=$a(u):u=Eo(t,u=Do(n)?$o:Ao.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||s!==u)&&ll(t,i,r,u),Fa=!1;var p=t.memoizedState;i.state=p,Va(t,r,i,o),s=t.memoizedState,l!==r||p!==s||To.current||Fa?("function"===typeof c&&(rl(t,n,c,r),s=t.memoizedState),(l=Fa||al(t,n,l,r,p,s,u))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ja(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nl(t.type,l),i.props=u,d=t.pendingProps,p=i.context,"object"===typeof(s=n.contextType)&&null!==s?s=$a(s):s=Eo(t,s=Do(n)?$o:Ao.current);var f=n.getDerivedStateFromProps;(c="function"===typeof f||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==d||p!==s)&&ll(t,i,r,s),Fa=!1,p=t.memoizedState,i.state=p,Va(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||To.current||Fa?("function"===typeof f&&(rl(t,n,f,r),h=t.memoizedState),(u=Fa||al(t,n,u,r,p,h,s)||!1)?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=u):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Il(e,t,n,r,a,o)}function Il(e,t,n,r,o,a){Ml(e,t);var i=0!==(128&t.flags);if(!r&&!i)return o&&jo(t,n,!1),Wl(e,t,a);r=t.stateNode,bl.current=t;var l=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,l,a)):xl(e,t,l,a),t.memoizedState=r.state,o&&jo(t,n,!0),t.child}function Al(e){var t=e.stateNode;t.pendingContext?_o(0,t.pendingContext,t.pendingContext!==t.context):t.context&&_o(0,t.context,!1),qa(e,t.containerInfo)}function Tl(e,t,n,r,o){return ha(),ma(o),t.flags|=256,xl(e,t,n,r),t.child}var $l,El,Dl,Ol,_l={dehydrated:null,treeContext:null,retryLane:0};function Fl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ll(e,t,n){var r,o=t.pendingProps,i=ei.current,l=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Po(ei,1&i),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Fu(s,o,0,null),e=_u(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Fl(n),t.memoizedState=_l,e):jl(t,s));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,l){if(n)return 256&t.flags?(t.flags&=-257,Nl(e,t,l,r=cl(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Fu({mode:"visible",children:r.children},o,0,null),(i=_u(i,o,l,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&wa(t,e.child,null,l),t.child.memoizedState=Fl(l),t.memoizedState=_l,i);if(0===(1&t.mode))return Nl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,Nl(e,t,l,r=cl(i=Error(a(419)),r,void 0))}if(s=0!==(l&e.childLanes),yl||s){if(null!==(r=As)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|l))?0:o)&&o!==i.retryLane&&(i.retryLane=o,_a(e,o),nu(r,e,o,-1))}return mu(),Nl(e,t,l,r=cl(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pu.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=uo(o.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Yo[Zo++]=Xo,Yo[Zo++]=Qo,Yo[Zo++]=qo,Xo=e.id,Qo=e.overflow,qo=t),t=jl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,i,n);if(l){l=o.fallback,s=t.mode,r=(i=e.child).sibling;var u={mode:"hidden",children:o.children};return 0===(1&s)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null):(o=Du(i,u)).subtreeFlags=14680064&i.subtreeFlags,null!==r?l=Du(r,l):(l=_u(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Fl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=_l,o}return e=(l=e.child).sibling,o=Du(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function jl(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Nl(e,t,n,r){return null!==r&&ma(r),wa(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Aa(e.return,t,n)}function Bl(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),0!==(2&(r=ei.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zl(e,n,t);else if(19===e.tag)zl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(ei,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,a);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Du(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Du(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ul(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kl(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gl(t),null;case 1:case 17:return Do(t.type)&&Oo(),Gl(t),null;case 3:return r=t.stateNode,Xa(),Ro(To),Ro(Ao),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(iu(ia),ia=null))),El(e,t),Gl(t),null;case 5:Ja(t);var o=Za(Ya.current);if(n=t.type,null!==e&&null!=t.stateNode)Dl(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gl(t),null}if(e=Za(Ga.current),pa(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[fo]=t,r[ho]=i,e=0!==(1&t.mode),n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(o=0;o<_r.length;o++)Nr(_r[o],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":q(r,i),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Nr("invalid",r);break;case"textarea":oe(r,i),Nr("invalid",r)}for(var s in be(n,i),o=null,i)if(i.hasOwnProperty(s)){var u=i[s];"children"===s?"string"===typeof u?r.textContent!==u&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(!0!==i.suppressHydrationWarning&&Qr(r.textContent,u,e),o=["children",""+u]):l.hasOwnProperty(s)&&null!=u&&"onScroll"===s&&Nr("scroll",r)}switch(n){case"input":G(r),J(r,i,!0);break;case"textarea":G(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{s=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fo]=t,e[ho]=r,$l(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),o=r;break;case"iframe":case"object":case"embed":Nr("load",e),o=r;break;case"video":case"audio":for(o=0;o<_r.length;o++)Nr(_r[o],e);o=r;break;case"source":Nr("error",e),o=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),o=r;break;case"details":Nr("toggle",e),o=r;break;case"input":q(e,r),o=Z(e,r),Nr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=L({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Nr("invalid",e)}for(i in be(n,o),u=o)if(u.hasOwnProperty(i)){var c=u[i];"style"===i?ge(e,c):"dangerouslySetInnerHTML"===i?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===i?"string"===typeof c?("textarea"!==n||""!==c)&&pe(e,c):"number"===typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(l.hasOwnProperty(i)?null!=c&&"onScroll"===i&&Nr("scroll",e):null!=c&&y(e,i,c,s))}switch(n){case"input":G(e),J(e,r,!1);break;case"textarea":G(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gl(t),null;case 6:if(e&&null!=t.stateNode)Ol(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=Za(Ya.current),Za(Ga.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(i=r.nodeValue!==n)&&null!==(e=ra))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return Gl(t),null;case 13:if(Ro(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))fa(),ha(),t.flags|=98560,i=!1;else if(i=pa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[fo]=t}else ha(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),i=!1}else null!==ia&&(iu(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ei.current)?0===Os&&(Os=3):mu())),null!==t.updateQueue&&(t.flags|=4),Gl(t),null);case 4:return Xa(),El(e,t),null===e&&Hr(t.stateNode.containerInfo),Gl(t),null;case 10:return Ia(t.type._context),Gl(t),null;case 19:if(Ro(ei),null===(i=t.memoizedState))return Gl(t),null;if(r=0!==(128&t.flags),null===(s=i.rendering))if(r)Ul(i,!1);else{if(0!==Os||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Ul(i,!1),null!==(r=s.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(s=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Xe()>Hs&&(t.flags|=128,r=!0,Ul(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ul(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!aa)return Gl(t),null}else 2*Xe()-i.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Ul(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=i.last)?n.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xe(),t.sibling=null,n=ei.current,Po(ei,r?1&n|2:1&n),t):(Gl(t),null);case 22:case 23:return du(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Es)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Yl(e,t){switch(na(t),t.tag){case 1:return Do(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),Ro(To),Ro(Ao),ri(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(Ro(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ro(ei),null;case 4:return Xa(),null;case 10:return Ia(t.type._context),null;case 22:case 23:return du(),null;default:return null}}$l=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},El=function(){},Dl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Za(Ga.current);var a,i=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),i=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),i=[];break;case"textarea":o=re(e,o),r=re(e,r),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(c in be(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var u=r[c];if(s=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(null!=u||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(i||(i=[]),i.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,s=s?s.__html:void 0,null!=u&&s!==u&&(i=i||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(i=i||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Nr("scroll",e),i||s===u||(i=[])):(i=i||[]).push(c,u))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Ol=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zl=!1,ql=!1,Xl="function"===typeof WeakSet?WeakSet:Set,Ql=null;function Jl(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){ku(e,t,r)}else n.current=null}function es(e,t,n){try{n()}catch(r){ku(e,t,r)}}var ts=!1;function ns(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[vo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ss(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var cs=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(l){}switch(n.tag){case 5:ql||Jl(n,t);case 6:var r=cs,o=ds;cs=null,ps(e,t,n),ds=o,null!==(cs=r)&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cs.removeChild(n.stateNode));break;case 18:null!==cs&&(ds?(e=cs,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Ht(e)):so(cs,n.stateNode));break;case 4:r=cs,o=ds,cs=n.stateNode.containerInfo,ds=!0,ps(e,t,n),cs=r,ds=o;break;case 0:case 11:case 14:case 15:if(!ql&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&es(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!ql&&(Jl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ku(n,t,l)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(ql=(r=ql)||null!==n.memoizedState,ps(e,t,n),ql=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:cs=s.stateNode,ds=!1;break e;case 3:case 4:cs=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===cs)throw Error(a(160));fs(i,l,o),cs=null,ds=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(c){ku(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),vs(e),4&r){try{ns(3,e,e.return),rs(3,e)}catch(g){ku(e,e.return,g)}try{ns(5,e,e.return)}catch(g){ku(e,e.return,g)}}break;case 1:ms(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return);break;case 5:if(ms(t,e),vs(e),512&r&&null!==n&&Jl(n,n.return),32&e.flags){var o=e.stateNode;try{pe(o,"")}catch(g){ku(e,e.return,g)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,l=null!==n?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===s&&"radio"===i.type&&null!=i.name&&X(o,i),ye(s,l);var c=ye(s,i);for(l=0;l<u.length;l+=2){var d=u[l],p=u[l+1];"style"===d?ge(o,p):"dangerouslySetInnerHTML"===d?de(o,p):"children"===d?pe(o,p):y(o,d,p,c)}switch(s){case"input":Q(o,i);break;case"textarea":ae(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ne(o,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(o,!!i.multiple,i.defaultValue,!0):ne(o,!!i.multiple,i.multiple?[]:"",!1))}o[ho]=i}catch(g){ku(e,e.return,g)}}break;case 6:if(ms(t,e),vs(e),4&r){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){ku(e,e.return,g)}}break;case 3:if(ms(t,e),vs(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){ku(e,e.return,g)}break;case 4:default:ms(t,e),vs(e);break;case 13:ms(t,e),vs(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Bs=Xe())),4&r&&hs(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(ql=(c=ql)||d,ms(t,e),ql=c):ms(t,e),vs(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&0!==(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(p=Ql=d;null!==Ql;){switch(h=(f=Ql).child,f.tag){case 0:case 11:case 14:case 15:ns(4,f,f.return);break;case 1:Jl(f,f.return);var m=f.stateNode;if("function"===typeof m.componentWillUnmount){r=f,n=f.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){ku(r,n,g)}}break;case 5:Jl(f,f.return);break;case 22:if(null!==f.memoizedState){ws(p);continue}}null!==h?(h.return=f,Ql=h):ws(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{o=p.stateNode,c?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=void 0!==(u=p.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,s.style.display=me("display",l))}catch(g){ku(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(g){ku(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),vs(e),4&r&&hs(e);case 21:}}function vs(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(is(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(pe(o,""),r.flags&=-33),us(e,ls(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(a(161))}}catch(l){ku(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bs(e,t,n){Ql=e,ys(e,t,n)}function ys(e,t,n){for(var r=0!==(1&e.mode);null!==Ql;){var o=Ql,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Zl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||ql;l=Zl;var u=ql;if(Zl=i,(ql=s)&&!u)for(Ql=o;null!==Ql;)s=(i=Ql).child,22===i.tag&&null!==i.memoizedState?Cs(o):null!==s?(s.return=i,Ql=s):Cs(o);for(;null!==a;)Ql=a,ys(a,t,n),a=a.sibling;Ql=o,Zl=l,ql=u}xs(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Ql=a):xs(e)}}function xs(e){for(;null!==Ql;){var t=Ql;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:ql||rs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!ql)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Wa(t,i,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wa(t,l,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(a(163))}ql||512&t.flags&&os(t)}catch(f){ku(t,t.return,f)}}if(t===e){Ql=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ql=n;break}Ql=t.return}}function ws(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function Cs(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(s){ku(t,n,s)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(s){ku(t,o,s)}}var a=t.return;try{os(t)}catch(s){ku(t,a,s)}break;case 5:var i=t.return;try{os(t)}catch(s){ku(t,i,s)}}}catch(s){ku(t,t.return,s)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Ss,ks=Math.ceil,Ms=x.ReactCurrentDispatcher,Rs=x.ReactCurrentOwner,Ps=x.ReactCurrentBatchConfig,Is=0,As=null,Ts=null,$s=0,Es=0,Ds=Mo(0),Os=0,_s=null,Fs=0,Ls=0,js=0,Ns=null,zs=null,Bs=0,Hs=1/0,Vs=null,Ws=!1,Us=null,Gs=null,Ks=!1,Ys=null,Zs=0,qs=0,Xs=null,Qs=-1,Js=0;function eu(){return 0!==(6&Is)?Xe():-1!==Qs?Qs:Qs=Xe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Is)&&0!==$s?$s&-$s:null!==ga.transition?(0===Js&&(Js=mt()),Js):0!==(e=yt)?e:e=void 0===(e=window.event)?16:qt(e.type)}function nu(e,t,n,r){if(50<qs)throw qs=0,Xs=null,Error(a(185));vt(e,n,r),0!==(2&Is)&&e===As||(e===As&&(0===(2&Is)&&(Ls|=n),4===Os&&lu(e,$s)),ru(e,r),1===n&&0===Is&&0===(1&t.mode)&&(Hs=Xe()+500,zo&&Vo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),l=1<<i,s=o[i];-1===s?0!==(l&n)&&0===(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===As?$s:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){zo=!0,Ho(e)}(su.bind(null,e)):Ho(su.bind(null,e)),io((function(){0===(6&Is)&&Vo()})),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Qs=-1,Js=0,0!==(6&Is))throw Error(a(327));var n=e.callbackNode;if(Cu()&&e.callbackNode!==n)return null;var r=pt(e,e===As?$s:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gu(e,r);else{t=r;var o=Is;Is|=2;var i=hu();for(As===e&&$s===t||(Vs=null,Hs=Xe()+500,pu(e,t));;)try{bu();break}catch(s){fu(e,s)}Pa(),Ms.current=i,Is=o,null!==Ts?t=0:(As=null,$s=0,t=Os)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(r=o,t=au(e,o))),1===t)throw n=_s,pu(e,0),lu(e,r),ru(e,Xe()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!lr(a(),o))return!1}catch(l){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gu(e,r))&&(0!==(i=ht(e))&&(r=i,t=au(e,i))),1===t))throw n=_s,pu(e,0),lu(e,r),ru(e,Xe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:wu(e,zs,Vs);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Bs+500-Xe())){if(0!==pt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){eu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(wu.bind(null,e,zs,Vs),t);break}wu(e,zs,Vs);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-it(r);i=1<<l,(l=t[l])>o&&(o=l),r&=~i}if(r=o,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ks(r/1960))-r)){e.timeoutHandle=ro(wu.bind(null,e,zs,Vs),r);break}wu(e,zs,Vs);break;default:throw Error(a(329))}}}return ru(e,Xe()),e.callbackNode===n?ou.bind(null,e):null}function au(e,t){var n=Ns;return e.current.memoizedState.isDehydrated&&(pu(e,t).flags|=256),2!==(e=gu(e,t))&&(t=zs,zs=n,null!==t&&iu(t)),e}function iu(e){null===zs?zs=e:zs.push.apply(zs,e)}function lu(e,t){for(t&=~js,t&=~Ls,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function su(e){if(0!==(6&Is))throw Error(a(327));Cu();var t=pt(e,0);if(0===(1&t))return ru(e,Xe()),null;var n=gu(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=_s,pu(e,0),lu(e,t),ru(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,zs,Vs),ru(e,Xe()),null}function uu(e,t){var n=Is;Is|=1;try{return e(t)}finally{0===(Is=n)&&(Hs=Xe()+500,zo&&Vo())}}function cu(e){null!==Ys&&0===Ys.tag&&0===(6&Is)&&Cu();var t=Is;Is|=1;var n=Ps.transition,r=yt;try{if(Ps.transition=null,yt=1,e)return e()}finally{yt=r,Ps.transition=n,0===(6&(Is=t))&&Vo()}}function du(){Es=Ds.current,Ro(Ds)}function pu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oo();break;case 3:Xa(),Ro(To),Ro(Ao),ri();break;case 5:Ja(r);break;case 4:Xa();break;case 13:case 19:Ro(ei);break;case 10:Ia(r.type._context);break;case 22:case 23:du()}n=n.return}if(As=e,Ts=e=Du(e.current,null),$s=Es=t,Os=0,_s=null,js=Ls=Fs=0,zs=Ns=null,null!==Ea){for(t=0;t<Ea.length;t++)if(null!==(r=(n=Ea[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Ea=null}return e}function fu(e,t){for(;;){var n=Ts;try{if(Pa(),oi.current=Qi,ci){for(var r=li.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ci=!1}if(ii=0,ui=si=li=null,di=!1,pi=0,Rs.current=null,null===n||null===n.return){Os=1,_s=t,Ts=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=$s,s.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,d=s,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,vl(h,l,s,0,t),1&h.mode&&ml(i,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(0===(1&t)){ml(i,c,t),mu();break e}u=Error(a(426))}else if(aa&&1&s.mode){var v=gl(l);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vl(v,l,s,0,t),ma(ul(u,s));break e}}i=u=ul(u,s),4!==Os&&(Os=2),null===Ns?Ns=[i]:Ns.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,fl(0,u,t));break e;case 1:s=u;var b=i.type,y=i.stateNode;if(0===(128&i.flags)&&("function"===typeof b.getDerivedStateFromError||null!==y&&"function"===typeof y.componentDidCatch&&(null===Gs||!Gs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ha(i,hl(i,s,t));break e}}i=i.return}while(null!==i)}xu(n)}catch(x){t=x,Ts===n&&null!==n&&(Ts=n=n.return);continue}break}}function hu(){var e=Ms.current;return Ms.current=Qi,null===e?Qi:e}function mu(){0!==Os&&3!==Os&&2!==Os||(Os=4),null===As||0===(268435455&Fs)&&0===(268435455&Ls)||lu(As,$s)}function gu(e,t){var n=Is;Is|=2;var r=hu();for(As===e&&$s===t||(Vs=null,pu(e,t));;)try{vu();break}catch(o){fu(e,o)}if(Pa(),Is=n,Ms.current=r,null!==Ts)throw Error(a(261));return As=null,$s=0,Os}function vu(){for(;null!==Ts;)yu(Ts)}function bu(){for(;null!==Ts&&!Ze();)yu(Ts)}function yu(e){var t=Ss(e.alternate,e,Es);e.memoizedProps=e.pendingProps,null===t?xu(e):Ts=t,Rs.current=null}function xu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Kl(n,t,Es)))return void(Ts=n)}else{if(null!==(n=Yl(n,t)))return n.flags&=32767,void(Ts=n);if(null===e)return Os=6,void(Ts=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ts=t);Ts=t=e}while(null!==t);0===Os&&(Os=5)}function wu(e,t,n){var r=yt,o=Ps.transition;try{Ps.transition=null,yt=1,function(e,t,n,r){do{Cu()}while(null!==Ys);if(0!==(6&Is))throw Error(a(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===As&&(Ts=As=null,$s=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ks||(Ks=!0,Au(tt,(function(){return Cu(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=Ps.transition,Ps.transition=null;var l=yt;yt=1;var s=Is;Is|=4,Rs.current=null,function(e,t){if(eo=Wt,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var l=0,s=-1,u=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==n||0!==o&&3!==p.nodeType||(s=l+o),p!==i||0!==r&&3!==p.nodeType||(u=l+r),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===n&&++c===o&&(s=l),f===i&&++d===r&&(u=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}n=-1===s||-1===u?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Wt=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(w){ku(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}m=ts,ts=!1}(e,n),gs(n,e),hr(to),Wt=!!eo,to=eo=null,e.current=n,bs(n,e,o),qe(),Is=s,yt=l,Ps.transition=i}else e.current=n;if(Ks&&(Ks=!1,Ys=e,Zs=o),i=e.pendingLanes,0===i&&(Gs=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ru(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ws)throw Ws=!1,e=Us,Us=null,e;0!==(1&Zs)&&0!==e.tag&&Cu(),i=e.pendingLanes,0!==(1&i)?e===Xs?qs++:(qs=0,Xs=e):qs=0,Vo()}(e,t,n,r)}finally{Ps.transition=o,yt=r}return null}function Cu(){if(null!==Ys){var e=xt(Zs),t=Ps.transition,n=yt;try{if(Ps.transition=null,yt=16>e?16:e,null===Ys)var r=!1;else{if(e=Ys,Ys=null,Zs=0,0!==(6&Is))throw Error(a(331));var o=Is;for(Is|=4,Ql=e.current;null!==Ql;){var i=Ql,l=i.child;if(0!==(16&Ql.flags)){var s=i.deletions;if(null!==s){for(var u=0;u<s.length;u++){var c=s[u];for(Ql=c;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:ns(8,d,i)}var p=d.child;if(null!==p)p.return=d,Ql=p;else for(;null!==Ql;){var f=(d=Ql).sibling,h=d.return;if(as(d),d===c){Ql=null;break}if(null!==f){f.return=h,Ql=f;break}Ql=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ql=i}}if(0!==(2064&i.subtreeFlags)&&null!==l)l.return=i,Ql=l;else e:for(;null!==Ql;){if(0!==(2048&(i=Ql).flags))switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Ql=b;break e}Ql=i.return}}var y=e.current;for(Ql=y;null!==Ql;){var x=(l=Ql).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=y;null!==Ql;){if(0!==(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(C){ku(s,s.return,C)}if(s===l){Ql=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Ql=w;break e}Ql=s.return}}if(Is=o,Vo(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{yt=n,Ps.transition=t}}return!1}function Su(e,t,n){e=za(e,t=fl(0,t=ul(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function ku(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){t=za(t,e=hl(t,e=ul(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Mu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,As===e&&($s&n)===n&&(4===Os||3===Os&&(130023424&$s)===$s&&500>Xe()-Bs?pu(e,0):js|=n),ru(e,t)}function Ru(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=_a(e,t))&&(vt(e,t,n),ru(e,n))}function Pu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ru(e,n)}function Iu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Ru(e,n)}function Au(e,t){return Ke(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $u(e,t,n,r){return new Tu(e,t,n,r)}function Eu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Du(e,t){var n=e.alternate;return null===n?((n=$u(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,n,r,o,i){var l=2;if(r=e,"function"===typeof e)Eu(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case S:return _u(n.children,o,i,t);case k:l=8,o|=8;break;case M:return(e=$u(12,n,t,2|o)).elementType=M,e.lanes=i,e;case A:return(e=$u(13,n,t,o)).elementType=A,e.lanes=i,e;case T:return(e=$u(19,n,t,o)).elementType=T,e.lanes=i,e;case D:return Fu(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case R:l=10;break e;case P:l=9;break e;case I:l=11;break e;case $:l=14;break e;case E:l=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=$u(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function _u(e,t,n,r){return(e=$u(7,e,r,t)).lanes=n,e}function Fu(e,t,n,r){return(e=$u(22,e,r,t)).elementType=D,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=$u(6,e,null,t)).lanes=n,e}function ju(e,t,n){return(t=$u(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nu(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,o,a,i,l,s){return e=new Nu(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=$u(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(a),e}function Bu(e){if(!e)return Io;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Do(n))return Fo(e,n,t)}return t}function Hu(e,t,n,r,o,a,i,l,s){return(e=zu(n,r,!0,e,0,a,0,l,s)).context=Bu(null),n=e.current,(a=Na(r=eu(),o=tu(n))).callback=void 0!==t&&null!==t?t:null,za(n,a,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Vu(e,t,n,r){var o=t.current,a=eu(),i=tu(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Na(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=za(o,t,i))&&(nu(e,o,i,a),Ba(e,o,i)),i}function Wu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Gu(e,t){Uu(e,t),(e=e.alternate)&&Uu(e,t)}Ss=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||To.current)yl=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Al(t),ha();break;case 5:Qa(t);break;case 1:Do(t.type)&&Lo(t);break;case 4:qa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(Sa,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(ei,1&ei.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ll(e,t,n):(Po(ei,1&ei.current),null!==(e=Wl(e,t,n))?e.sibling:null);Po(ei,1&ei.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Wl(e,t,n)}(e,t,n);yl=0!==(131072&e.flags)}else yl=!1,aa&&0!==(1048576&t.flags)&&ea(t,Ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vl(e,t),e=t.pendingProps;var o=Eo(t,Ao.current);Ta(t,n),o=gi(null,t,r,e,o,n);var i=vi();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(i=!0,Lo(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,La(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,sl(t,r,e,n),t=Il(null,t,r,!0,i,n)):(t.tag=0,aa&&i&&ta(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Eu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===I)return 11;if(e===$)return 14}return 2}(r),e=nl(r,e),o){case 0:t=Rl(null,t,r,e,n);break e;case 1:t=Pl(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=Cl(null,t,r,nl(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Rl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Pl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 3:e:{if(Al(t),null===e)throw Error(a(387));r=t.pendingProps,o=(i=t.memoizedState).element,ja(e,t),Va(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Tl(e,t,r,n,o=ul(Error(a(423)),t));break e}if(r!==o){t=Tl(e,t,r,n,o=ul(Error(a(424)),t));break e}for(oa=uo(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===o){t=Wl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return Qa(t),null===e&&ca(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,no(r,o)?l=null:null!==i&&no(r,i)&&(t.flags|=32),Ml(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Ll(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:nl(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Po(Sa,r._currentValue),r._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===o.children&&!To.current){t=Wl(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var u=s.firstContext;null!==u;){if(u.context===r){if(1===i.tag){(u=Na(-1,n&-n)).tag=2;var c=i.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Aa(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(a(341));l.lanes|=n,null!==(s=l.alternate)&&(s.lanes|=n),Aa(l,n,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ta(t,n),r=r(o=$a(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=nl(r=t.type,t.pendingProps),Cl(e,t,r,o=nl(r.type,o),n);case 15:return Sl(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nl(r,o),Vl(e,t),t.tag=1,Do(r)?(e=!0,Lo(t)):e=!1,Ta(t,n),il(t,r,o),sl(t,r,o,n),Il(null,t,r,!0,e,n);case 19:return Hl(e,t,n);case 22:return kl(e,t,n)}throw Error(a(156,t.tag))};var Ku="function"===typeof reportError?reportError:function(e){console.error(e)};function Yu(e){this._internalRoot=e}function Zu(e){this._internalRoot=e}function qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qu(){}function Ju(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"===typeof o){var l=o;o=function(){var e=Wu(i);l.call(e)}}Vu(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"===typeof r){var a=r;r=function(){var e=Wu(i);a.call(e)}}var i=Hu(t,r,e,0,null,!1,0,"",Qu);return e._reactRootContainer=i,e[mo]=i.current,Hr(8===e.nodeType?e.parentNode:e),cu(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var l=r;r=function(){var e=Wu(s);l.call(e)}}var s=zu(e,0,!1,null,0,!1,0,"",Qu);return e._reactRootContainer=s,e[mo]=s.current,Hr(8===e.nodeType?e.parentNode:e),cu((function(){Vu(t,s,n,r)})),s}(n,t,e,o,r);return Wu(i)}Zu.prototype.render=Yu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vu(e,t,null,null)},Zu.prototype.unmount=Yu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Vu(null,e,null,null)})),t[mo]=null}},Zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Xe()),0===(6&Is)&&(Hs=Xe()+500,Vo()))}break;case 13:cu((function(){var t=_a(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Gu(e,1)}},Ct=function(e){if(13===e.tag){var t=_a(e,134217728);if(null!==t)nu(t,e,134217728,eu());Gu(e,134217728)}},St=function(e){if(13===e.tag){var t=tu(e),n=_a(e,t);if(null!==n)nu(n,e,t,eu());Gu(e,t)}},kt=function(){return yt},Mt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Ce=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(a(90));K(r),Q(r,o)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=uu,Ae=cu;var ec={usingClientEntryPoint:!1,Events:[xo,wo,Co,Re,Pe,uu]},tc={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ue(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{ot=rc.inject(nc),at=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!qu(e))throw Error(a(299));var n=!1,r="",o=Ku;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zu(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Yu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=Ue(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(a(200));return Ju(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!qu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",l=Ku;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(l=n.onRecoverableError)),t=Hu(t,null,e,1,null!=n?n:null,o,0,i,l),e[mo]=t.current,Hr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zu(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(a(200));return Ju(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(a(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Ju(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},7950:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2730)},5082:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case a:case l:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},2086:(e,t,n)=>{"use strict";n(5082)},1153:(e,t,n)=>{"use strict";var r=n(5043),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)i.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:l.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},4202:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var x=y.prototype=new b;x.constructor=y,m(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,C=Object.prototype.hasOwnProperty,S={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,r){var o,a={},i=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)C.call(t,o)&&!k.hasOwnProperty(o)&&(a[o]=t[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:n,type:e,key:i,ref:l,props:a,_owner:S.current}}function R(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function I(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,o,a,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case n:case r:s=!0}}if(s)return i=i(s=e),e=""===a?"."+I(s,0):a,w(i)?(o="",null!=e&&(o=e.replace(P,"$&/")+"/"),A(i,t,o,"",(function(e){return e}))):null!=i&&(R(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(P,"$&/")+"/")+e)),t.push(i)),1;if(s=0,a=""===a?".":a+":",w(e))for(var u=0;u<e.length;u++){var c=a+I(l=e[u],u);s+=A(l,t,o,c,i)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=A(l=l.value,t,o,c=a+I(l,u++),i);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function T(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function $(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var E={current:null},D={transition:null},O={ReactCurrentDispatcher:E,ReactCurrentBatchConfig:D,ReactCurrentOwner:S};function _(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=i,t.PureComponent=y,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=_,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,l=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)C.call(t,u)&&!k.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==s?s[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}return{$$typeof:n,type:e.type,key:a,ref:i,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=M,t.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=R,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:$}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=_,t.useCallback=function(e,t){return E.current.useCallback(e,t)},t.useContext=function(e){return E.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return E.current.useDeferredValue(e)},t.useEffect=function(e,t){return E.current.useEffect(e,t)},t.useId=function(){return E.current.useId()},t.useImperativeHandle=function(e,t,n){return E.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return E.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return E.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return E.current.useMemo(e,t)},t.useReducer=function(e,t,n){return E.current.useReducer(e,t,n)},t.useRef=function(e){return E.current.useRef(e)},t.useState=function(e){return E.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return E.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return E.current.useTransition()},t.version="18.3.1"},5043:(e,t,n)=>{"use strict";e.exports=n(4202)},579:(e,t,n)=>{"use strict";e.exports=n(1153)},7234:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<a(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,i=o>>>1;r<i;){var l=2*(r+1)-1,s=e[l],u=l+1,c=e[u];if(0>a(s,n))u<o&&0>a(c,s)?(e[r]=c,e[u]=n,r=u):(e[r]=s,e[l]=n,r=l);else{if(!(u<o&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var u=[],c=[],d=1,p=null,f=3,h=!1,m=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,y="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,D(C);else{var t=r(c);null!==t&&O(w,t.startTime-e)}}function C(e,n){m=!1,g&&(g=!1,b(R),R=-1),h=!0;var a=f;try{for(x(n),p=r(u);null!==p&&(!(p.expirationTime>n)||e&&!A());){var i=p.callback;if("function"===typeof i){p.callback=null,f=p.priorityLevel;var l=i(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?p.callback=l:p===r(u)&&o(u),x(n)}else o(u);p=r(u)}if(null!==p)var s=!0;else{var d=r(c);null!==d&&O(w,d.startTime-n),s=!1}return s}finally{p=null,f=a,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,M=null,R=-1,P=5,I=-1;function A(){return!(t.unstable_now()-I<P)}function T(){if(null!==M){var e=t.unstable_now();I=e;var n=!0;try{n=M(!0,e)}finally{n?S():(k=!1,M=null)}}else k=!1}if("function"===typeof y)S=function(){y(T)};else if("undefined"!==typeof MessageChannel){var $=new MessageChannel,E=$.port2;$.port1.onmessage=T,S=function(){E.postMessage(null)}}else S=function(){v(T,0)};function D(e){M=e,k||(k=!0,S())}function O(e,n){R=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,D(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(g?(b(R),R=-1):g=!0,O(w,a-i))):(e.sortIndex=l,n(u,e),m||h||(m=!0,D(C))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(7234)},4650:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=Xe(n(7961)),a=Xe(n(295)),i=Xe(n(1640)),l=Xe(n(8461)),s=Xe(n(1557)),u=Xe(n(2057)),c=Xe(n(3851)),d=Xe(n(498)),p=Xe(n(9691)),f=Xe(n(2305)),h=Xe(n(6581)),m=Xe(n(3212)),g=Xe(n(7891)),v=Xe(n(756)),b=Xe(n(2605)),y=Xe(n(4450)),x=Xe(n(9678)),w=Xe(n(1468)),C=qe(n(8478)),S=qe(n(8167)),k=Xe(n(8729)),M=Xe(n(6875)),R=Xe(n(9355)),P=Xe(n(8411)),I=Xe(n(4162)),A=Xe(n(8540)),T=Xe(n(8221)),$=Xe(n(1621)),E=Xe(n(477)),D=Xe(n(5946)),O=Xe(n(697)),_=Xe(n(9148)),F=Xe(n(4764)),L=Xe(n(755)),j=qe(n(5972)),N=Xe(n(1949)),z=Xe(n(1961)),B=Xe(n(977)),H=Xe(n(6796)),V=Xe(n(8800)),W=Xe(n(4742)),U=Xe(n(6817)),G=Xe(n(6099)),K=qe(n(6760)),Y=Xe(n(692)),Z=Xe(n(7590)),q=Xe(n(1456)),X=Xe(n(6591)),Q=Xe(n(2738)),J=Xe(n(407)),ee=Xe(n(5664)),te=Xe(n(3298)),ne=Xe(n(8239)),re=Xe(n(7267)),oe=Xe(n(3192)),ae=Xe(n(6907)),ie=Xe(n(559)),le=Xe(n(9700)),se=Xe(n(2903)),ue=Xe(n(2972)),ce=Xe(n(5686)),de=Xe(n(4195)),pe=Xe(n(3496)),fe=Xe(n(3553)),he=Xe(n(9978)),me=qe(n(164)),ge=Xe(n(602)),ve=Xe(n(3583)),be=Xe(n(5749)),ye=n(2362),xe=Xe(n(2310)),we=Xe(n(5062)),Ce=Xe(n(1777)),Se=Xe(n(2626)),ke=Xe(n(1041)),Me=Xe(n(5477)),Re=Xe(n(3756)),Pe=Xe(n(88)),Ie=Xe(n(3835)),Ae=Xe(n(5184)),Te=Xe(n(7246)),$e=Xe(n(7894)),Ee=Xe(n(536)),De=Xe(n(2233)),Oe=qe(n(3710)),_e=Xe(n(1238)),Fe=Xe(n(1068)),Le=Xe(n(7244)),je=Xe(n(6119)),Ne=Xe(n(1808)),ze=Xe(n(28)),Be=Xe(n(8999)),He=Xe(n(6061)),Ve=Xe(n(5086)),We=Xe(n(8473)),Ue=Xe(n(4611)),Ge=Xe(n(8077)),Ke=Xe(n(3694)),Ye=Xe(n(842));function Ze(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Ze=function(e){return e?n:t})(e)}function qe(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=Ze(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}function Xe(e){return e&&e.__esModule?e:{default:e}}var Qe={version:"13.12.0",toDate:o.default,toFloat:a.default,toInt:i.default,toBoolean:l.default,equals:s.default,contains:u.default,matches:c.default,isEmail:d.default,isURL:p.default,isMACAddress:f.default,isIP:h.default,isIPRange:m.default,isFQDN:g.default,isBoolean:y.default,isIBAN:K.default,isBIC:Y.default,isAbaRouting:w.default,isAlpha:C.default,isAlphaLocales:C.locales,isAlphanumeric:S.default,isAlphanumericLocales:S.locales,isNumeric:k.default,isPassportNumber:M.default,isPort:R.default,isLowercase:P.default,isUppercase:I.default,isAscii:T.default,isFullWidth:$.default,isHalfWidth:E.default,isVariableWidth:D.default,isMultibyte:O.default,isSemVer:_.default,isSurrogatePair:F.default,isInt:L.default,isIMEI:A.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:N.default,isHexadecimal:z.default,isOctal:B.default,isDivisibleBy:H.default,isHexColor:V.default,isRgbColor:W.default,isHSL:U.default,isISRC:G.default,isMD5:Z.default,isHash:q.default,isJWT:X.default,isJSON:Q.default,isEmpty:J.default,isLength:ee.default,isLocale:x.default,isByteLength:te.default,isUUID:ne.default,isMongoId:re.default,isAfter:oe.default,isBefore:ae.default,isIn:ie.default,isLuhnNumber:le.default,isCreditCard:se.default,isIdentityCard:ue.default,isEAN:ce.default,isISIN:de.default,isISBN:pe.default,isISSN:fe.default,isMobilePhone:me.default,isMobilePhoneLocales:me.locales,isPostalCode:Oe.default,isPostalCodeLocales:Oe.locales,isEthereumAddress:ge.default,isCurrency:ve.default,isBtcAddress:be.default,isISO6346:ye.isISO6346,isFreightContainerID:ye.isFreightContainerID,isISO6391:xe.default,isISO8601:we.default,isRFC3339:Ce.default,isISO31661Alpha2:Se.default,isISO31661Alpha3:ke.default,isISO4217:Me.default,isBase32:Re.default,isBase58:Pe.default,isBase64:Ie.default,isDataURI:Ae.default,isMagnetURI:Te.default,isMailtoURI:$e.default,isMimeType:Ee.default,isLatLong:De.default,ltrim:_e.default,rtrim:Fe.default,trim:Le.default,escape:je.default,unescape:Ne.default,stripLow:ze.default,whitelist:Be.default,blacklist:He.default,isWhitelisted:Ve.default,normalizeEmail:We.default,toString:toString,isSlug:Ue.default,isStrongPassword:Ke.default,isTaxID:he.default,isDate:v.default,isTime:b.default,isLicensePlate:Ge.default,isVAT:Ye.default,ibanLocales:K.locales};t.default=Qe;e.exports=t.default,e.exports.default=t.default},7858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.farsiLocales=t.englishLocales=t.dotDecimal=t.decimal=t.commaDecimal=t.bengaliLocales=t.arabicLocales=t.alphanumeric=t.alpha=void 0;for(var n,r=t.alpha={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,"bg-BG":/^[\u0410-\u042f]+$/i,"cs-CZ":/^[A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,"da-DK":/^[A-Z\xc6\xd8\xc5]+$/i,"de-DE":/^[A-Z\xc4\xd6\xdc\xdf]+$/i,"el-GR":/^[\u0391-\u03ce]+$/i,"es-ES":/^[A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,"fa-IR":/^[\u0627\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u06cc]+$/i,"fi-FI":/^[A-Z\xc5\xc4\xd6]+$/i,"fr-FR":/^[A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,"it-IT":/^[A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,"ja-JP":/^[\u3041-\u3093\u30a1-\u30f6\uff66-\uff9f\u4e00-\u9fa0\u30fc\u30fb\u3002\u3001]+$/i,"nb-NO":/^[A-Z\xc6\xd8\xc5]+$/i,"nl-NL":/^[A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,"nn-NO":/^[A-Z\xc6\xd8\xc5]+$/i,"hu-HU":/^[A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,"pl-PL":/^[A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,"pt-PT":/^[A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,"ru-RU":/^[\u0410-\u042f\u0401]+$/i,"kk-KZ":/^[\u0410-\u042f\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,"sk-SK":/^[A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,"sr-RS@latin":/^[A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,"sr-RS":/^[\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,"sv-SE":/^[A-Z\xc5\xc4\xd6]+$/i,"th-TH":/^[\u0e01-\u0e50\s]+$/i,"tr-TR":/^[A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,"uk-UA":/^[\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,"vi-VN":/^[A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,"ko-KR":/^[\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]*$/,"ku-IQ":/^[\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,ar:/^[\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[\u05d0-\u05ea]+$/,fa:/^['\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098a\u098b\u098c\u098f\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099a\u099b\u099c\u099d\u099e\u099f\u09a0\u09a1\u09a2\u09a3\u09a4\u09a5\u09a6\u09a7\u09a8\u09aa\u09ab\u09ac\u09ad\u09ae\u09af\u09b0\u09b2\u09b6\u09b7\u09b8\u09b9\u09bc\u09bd\u09be\u09bf\u09c0\u09c1\u09c2\u09c3\u09c4\u09c7\u09c8\u09cb\u09cc\u09cd\u09ce\u09d7\u09dc\u09dd\u09df\u09e0\u09e1\u09e2\u09e3\u09f0\u09f1\u09f2\u09f3\u09f4\u09f5\u09f6\u09f7\u09f8\u09f9\u09fa\u09fb']+$/,eo:/^[ABC\u0108D-G\u011cH\u0124IJ\u0134K-PRS\u015cTU\u016cVZ]+$/i,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/},o=t.alphanumeric={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZ\xc7\u018f\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,"bg-BG":/^[0-9\u0410-\u042f]+$/i,"cs-CZ":/^[0-9A-Z\xc1\u010c\u010e\xc9\u011a\xcd\u0147\xd3\u0158\u0160\u0164\xda\u016e\xdd\u017d]+$/i,"da-DK":/^[0-9A-Z\xc6\xd8\xc5]+$/i,"de-DE":/^[0-9A-Z\xc4\xd6\xdc\xdf]+$/i,"el-GR":/^[0-9\u0391-\u03c9]+$/i,"es-ES":/^[0-9A-Z\xc1\xc9\xcd\xd1\xd3\xda\xdc]+$/i,"fi-FI":/^[0-9A-Z\xc5\xc4\xd6]+$/i,"fr-FR":/^[0-9A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/i,"it-IT":/^[0-9A-Z\xc0\xc9\xc8\xcc\xce\xd3\xd2\xd9]+$/i,"ja-JP":/^[0-9\uff10-\uff19\u3041-\u3093\u30a1-\u30f6\uff66-\uff9f\u4e00-\u9fa0\u30fc\u30fb\u3002\u3001]+$/i,"hu-HU":/^[0-9A-Z\xc1\xc9\xcd\xd3\xd6\u0150\xda\xdc\u0170]+$/i,"nb-NO":/^[0-9A-Z\xc6\xd8\xc5]+$/i,"nl-NL":/^[0-9A-Z\xc1\xc9\xcb\xcf\xd3\xd6\xdc\xda]+$/i,"nn-NO":/^[0-9A-Z\xc6\xd8\xc5]+$/i,"pl-PL":/^[0-9A-Z\u0104\u0106\u0118\u015a\u0141\u0143\xd3\u017b\u0179]+$/i,"pt-PT":/^[0-9A-Z\xc3\xc1\xc0\xc2\xc4\xc7\xc9\xca\xcb\xcd\xcf\xd5\xd3\xd4\xd6\xda\xdc]+$/i,"ru-RU":/^[0-9\u0410-\u042f\u0401]+$/i,"kk-KZ":/^[0-9\u0410-\u042f\u0401\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-Z\u010c\u0106\u0110\u0160\u017d]+$/i,"sk-SK":/^[0-9A-Z\xc1\u010c\u010e\xc9\xcd\u0147\xd3\u0160\u0164\xda\xdd\u017d\u0139\u0154\u013d\xc4\xd4]+$/i,"sr-RS@latin":/^[0-9A-Z\u010c\u0106\u017d\u0160\u0110]+$/i,"sr-RS":/^[0-9\u0410-\u042f\u0402\u0408\u0409\u040a\u040b\u040f]+$/i,"sv-SE":/^[0-9A-Z\xc5\xc4\xd6]+$/i,"th-TH":/^[\u0e01-\u0e59\s]+$/i,"tr-TR":/^[0-9A-Z\xc7\u011e\u0130\u0131\xd6\u015e\xdc]+$/i,"uk-UA":/^[0-9\u0410-\u0429\u042c\u042e\u042f\u0404I\u0407\u0490\u0456]+$/i,"ko-KR":/^[0-9\u3131-\u314e\u314f-\u3163\uac00-\ud7a3]*$/,"ku-IQ":/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0626\u0627\u0628\u067e\u062a\u062c\u0686\u062d\u062e\u062f\u0631\u0695\u0632\u0698\u0633\u0634\u0639\u063a\u0641\u06a4\u0642\u06a9\u06af\u0644\u06b5\u0645\u0646\u0648\u06c6\u06be\u06d5\u06cc\u06ce\u064a\u0637\u0624\u062b\u0622\u0625\u0623\u0643\u0636\u0635\u0629\u0638\u0630]+$/i,"vi-VN":/^[0-9A-Z\xc0\xc1\u1ea0\u1ea2\xc3\xc2\u1ea6\u1ea4\u1eac\u1ea8\u1eaa\u0102\u1eb0\u1eae\u1eb6\u1eb2\u1eb4\u0110\xc8\xc9\u1eb8\u1eba\u1ebc\xca\u1ec0\u1ebe\u1ec6\u1ec2\u1ec4\xcc\xcd\u1eca\u1ec8\u0128\xd2\xd3\u1ecc\u1ece\xd5\xd4\u1ed2\u1ed0\u1ed8\u1ed4\u1ed6\u01a0\u1edc\u1eda\u1ee2\u1ede\u1ee0\xd9\xda\u1ee4\u1ee6\u0168\u01af\u1eea\u1ee8\u1ef0\u1eec\u1eee\u1ef2\xdd\u1ef4\u1ef6\u1ef8]+$/i,ar:/^[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u06690-9\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062a\u062b\u062c\u062d\u062e\u062f\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064a\u064b\u064c\u064d\u064e\u064f\u0650\u0651\u0652\u0670]+$/,he:/^[0-9\u05d0-\u05ea]+$/,fa:/^['0-9\u0622\u0627\u0621\u0623\u0624\u0626\u0628\u067e\u062a\u062b\u062c\u0686\u062d\u062e\u062f\u0630\u0631\u0632\u0698\u0633\u0634\u0635\u0636\u0637\u0638\u0639\u063a\u0641\u0642\u06a9\u06af\u0644\u0645\u0646\u0648\u0647\u0629\u06cc\u06f1\u06f2\u06f3\u06f4\u06f5\u06f6\u06f7\u06f8\u06f9\u06f0']+$/i,bn:/^['\u0980\u0981\u0982\u0983\u0985\u0986\u0987\u0988\u0989\u098a\u098b\u098c\u098f\u0990\u0993\u0994\u0995\u0996\u0997\u0998\u0999\u099a\u099b\u099c\u099d\u099e\u099f\u09a0\u09a1\u09a2\u09a3\u09a4\u09a5\u09a6\u09a7\u09a8\u09aa\u09ab\u09ac\u09ad\u09ae\u09af\u09b0\u09b2\u09b6\u09b7\u09b8\u09b9\u09bc\u09bd\u09be\u09bf\u09c0\u09c1\u09c2\u09c3\u09c4\u09c7\u09c8\u09cb\u09cc\u09cd\u09ce\u09d7\u09dc\u09dd\u09df\u09e0\u09e1\u09e2\u09e3\u09e6\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09f0\u09f1\u09f2\u09f3\u09f4\u09f5\u09f6\u09f7\u09f8\u09f9\u09fa\u09fb']+$/,eo:/^[0-9ABC\u0108D-G\u011cH\u0124IJ\u0134K-PRS\u015cTU\u016cVZ]+$/i,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/},a=t.decimal={"en-US":".",ar:"\u066b"},i=t.englishLocales=["AU","GB","HK","IN","NZ","ZA","ZM"],l=0;l<i.length;l++)r[n="en-".concat(i[l])]=r["en-US"],o[n]=o["en-US"],a[n]=a["en-US"];for(var s,u=t.arabicLocales=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"],c=0;c<u.length;c++)r[s="ar-".concat(u[c])]=r.ar,o[s]=o.ar,a[s]=a.ar;for(var d,p=t.farsiLocales=["IR","AF"],f=0;f<p.length;f++)o[d="fa-".concat(p[f])]=o.fa,a[d]=a.ar;for(var h,m=t.bengaliLocales=["BD","IN"],g=0;g<m.length;g++)r[h="bn-".concat(m[g])]=r.bn,o[h]=o.bn,a[h]=a["en-US"];for(var v=t.dotDecimal=["ar-EG","ar-LB","ar-LY"],b=t.commaDecimal=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","eo","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"],y=0;y<v.length;y++)a[v[y]]=a["en-US"];for(var x=0;x<b.length;x++)a[b[x]]=",";r["fr-CA"]=r["fr-FR"],o["fr-CA"]=o["fr-FR"],r["pt-BR"]=r["pt-PT"],o["pt-BR"]=o["pt-PT"],a["pt-BR"]=a["pt-PT"],r["pl-Pl"]=r["pl-PL"],o["pl-Pl"]=o["pl-PL"],a["pl-Pl"]=a["pl-PL"],r["fa-AF"]=r.fa},6061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},2057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,r.default)(e),(n=(0,a.default)(n,l)).ignoreCase)return e.toLowerCase().split((0,o.default)(t).toLowerCase()).length>n.minOccurrences;return e.split((0,o.default)(t)).length>n.minOccurrences};var r=i(n(8804)),o=i(n(7023)),a=i(n(3975));function i(e){return e&&e.__esModule?e:{default:e}}var l={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},1557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},6119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},1468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!a.test(e))return!1;for(var t=0,n=0;n<e.length;n++)t+=n%3===0?3*e[n]:n%3===1?7*e[n]:1*e[n];return t%10===0};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;e.exports=t.default,e.exports.default=t.default},3192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null===t||void 0===t?void 0:t.comparisonDate)||t||Date().toString(),r=(0,o.default)(n),a=(0,o.default)(e);return!!(a&&r&&a>r)};var r,o=(r=n(7961))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},8478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!==typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in a.alpha)return a.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(7858);t.locales=Object.keys(a.alpha)},8167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,o.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!==typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in a.alphanumeric)return a.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(7858);t.locales=Object.keys(a.alphanumeric)},8221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.slice(4,6).toUpperCase();if(!a.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(2626);var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},3756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,s)).crockford)return l.test(e);if(e.length%8===0&&i.test(e))return!0;return!1};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,l=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default},88:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),a.test(e))return!0;return!1};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},3835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,o.default)(t,s);var n=e.length;if(t.urlSafe)return l.test(e);if(n%4!==0||i.test(e))return!1;var a=e.indexOf("=");return-1===a||a===n-1||a===n-2&&"="===e[n-1]};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,l=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},6907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,o.default)(t),a=(0,o.default)(e);return!!(a&&n&&a<n)};var r=a(n(8804)),o=a(n(7961));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},4450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;if((0,o.default)(e),t.loose)return l.includes(e.toLowerCase());return i.includes(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={loose:!1},i=["true","false","1","0"],l=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default},5749:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)||i.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},3298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===a(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&("undefined"===typeof r||i<=r)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}e.exports=t.default,e.exports.default=t.default},2903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=t.provider,a=e.replace(/[- ]+/g,"");if(n&&n.toLowerCase()in i){if(!i[n.toLowerCase()].test(a))return!1}else{if(n&&!(n.toLowerCase()in i))throw new Error("".concat(n," is not a valid credit card provider."));if(!l.some((function(e){return e.test(a)})))return!1}return(0,o.default)(e)};var r=a(n(8804)),o=a(n(9700));function a(e){return e&&e.__esModule?e:{default:e}}var i={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},l=function(){var e=[];for(var t in i)i.hasOwnProperty(t)&&e.push(i[t]);return e}();e.exports=t.default,e.exports.default=t.default},3583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),r="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),a="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),l=a+(e.allow_decimal||e.require_decimal?i:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?l+=r:e.negative_sign_before_digits&&(l=r+l));e.allow_negative_sign_placeholder?l="( (?!\\-))?".concat(l):e.allow_space_after_symbol?l=" ?".concat(l):e.allow_space_after_digits&&(l+="( (?!$))?");e.symbol_after_digits?l+=n:l=n+l;e.allow_negatives&&(e.parens_for_negatives?l="(\\(".concat(l,"\\)|").concat(l,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(l=r+l));return new RegExp("^(?!-? )(?=.*\\d)".concat(l,"$"))}(t=(0,r.default)(t,i)).test(e)};var r=a(n(3975)),o=a(n(8804));function a(e){return e&&e.__esModule?e:{default:e}}var i={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},5184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.slice(0,5))return!1;var s=r.slice(5);if(""!==s&&!a.test(s))return!1;for(var u=0;u<n.length;u++)if((u!==n.length-1||"base64"!==n[u].toLowerCase())&&!i.test(n[u]))return!1;for(var c=0;c<t.length;c++)if(!l.test(t[c]))return!1;return!0};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,l=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default},756:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"===typeof t?(0,o.default)({format:t},l):(0,o.default)(t,l);if("string"===typeof e&&(x=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(x))){var n,r=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),i=t.strictMode?r:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),s=function(e,t){for(var n=[],r=Math.min(e.length,t.length),o=0;o<r;o++)n.push([e[o],t[o]]);return n}(e.split(i),t.format.toLowerCase().split(r)),u={},c=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw i}}}}(s);try{for(c.s();!(n=c.n()).done;){var d=(b=n.value,y=2,function(e){if(Array.isArray(e))return e}(b)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(b,y)||a(b,y)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1];if(p.length!==f.length)return!1;u[f.charAt(0)]=p}}catch(w){c.e(w)}finally{c.f()}var h=u.y;if(h.startsWith("-"))return!1;if(2===u.y.length){var m=parseInt(u.y,10);if(isNaN(m))return!1;h=m<(new Date).getFullYear()%100?"20".concat(u.y):"19".concat(u.y)}var g=u.m;1===u.m.length&&(g="0".concat(u.m));var v=u.d;return 1===u.d.length&&(v="0".concat(u.d)),new Date("".concat(h,"-").concat(g,"-").concat(v,"T00:00:00.000Z")).getUTCDate()===+u.d}var b,y;var x;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var r,o=(r=n(3975))&&r.__esModule?r:{default:r};function a(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default},1949:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(t=(0,r.default)(t,s)).locale in i.decimal)return!(0,a.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=l(n(3975)),o=l(n(8804)),a=l(n(2970)),i=n(7858);function l(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default},6796:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,o.default)(e)%parseInt(t,10)===0};var r=a(n(8804)),o=a(n(295));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},5686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=Number(e.slice(-1));return l.test(e)&&t===function(e){var t=10-e.slice(0,-1).split("").map((function(t,n){return Number(t)*function(e,t){if(e===a||e===i)return t%2===0?3:1;return t%2===0?1:3}(e.length,n)})).reduce((function(e,t){return e+t}),0)%10;return t<10?t:0}(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=8,i=14,l=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,l.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(c);if(n){var s=n[1];if(e=e.replace(s,"").replace(/(^<|>$)/g,""),s.endsWith(" ")&&(s=s.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(s))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>g)return!1;var v=e.split("@"),b=v.pop(),y=b.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var x=v.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(x=x.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var C=w.split("."),S=0;S<C.length;S++)if(!p.test(C[S]))return!1}if(!1===t.ignore_max_length&&(!(0,o.default)(x,{max:64})||!(0,o.default)(b,{max:254})))return!1;if(!(0,a.default)(b,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,i.default)(b)){if(!b.startsWith("[")||!b.endsWith("]"))return!1;var k=b.slice(1,-1);if(0===k.length||!(0,i.default)(k))return!1}}if('"'===x[0])return x=x.slice(1,x.length-1),t.allow_utf8_local_part?m.test(x):f.test(x);for(var M=t.allow_utf8_local_part?h:d,R=x.split("."),P=0;P<R.length;P++)if(!M.test(R[P]))return!1;if(t.blacklisted_chars&&-1!==x.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(n(8804)),o=s(n(3298)),a=s(n(7891)),i=s(n(6581)),l=s(n(3975));function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,g=254;e.exports=t.default,e.exports.default=t.default},407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,o.default)(t,i)).ignore_whitespace?e.trim().length:e.length)};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}var i={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},7891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,i)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),a=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}var i={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},5972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?a.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||r<t.lt)&&(!t.hasOwnProperty("gt")||r>t.gt)},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(7858);t.locales=Object.keys(a.decimal)},1621:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)},t.fullWidth=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=t.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},6817:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return a.test(t);return i.test(t)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)},t.halfWidth=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=t.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/},1456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-fA-F0-9]{".concat(a[t],"}$")).test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},8800:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},1961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},6760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)(e),function(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=n.slice(0,2).toUpperCase(),o=r in a;if(t.whitelist){if(!function(e){if(e.filter((function(e){return!(e in a)})).length>0)return!1;return!0}(t.whitelist))return!1;if(!t.whitelist.includes(r))return!1}if(t.blacklist){if(t.blacklist.includes(r))return!1}return o&&a[r].test(n)}(e,t)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};t.locales=Object.keys(a)},8540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=a;(t=t||{}).allow_hyphens&&(n=i);if(!n.test(e))return!1;e=e.replace(/-/g,"");for(var r=0,l=2,s=0;s<14;s++){var u=e.substring(14-s-1,14-s),c=parseInt(u,10)*l;r+=c>=10?c%10+1:c,1===l?l+=1:l-=1}if((10-r%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},6581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return l.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(a,"[.]){3}").concat(a),l=new RegExp("^".concat(i,"$")),s="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(i,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(i,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(i,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(i,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(i,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(i,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(i,"|(?::").concat(s,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},3212:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,r.default)(e);var n=e.split("/");if(2!==n.length)return!1;if(!i.test(n[1]))return!1;if(n[1].length>1&&n[1].startsWith("0"))return!1;if(!(0,o.default)(n[0],t))return!1;var a=null;switch(String(t)){case"4":a=l;break;case"6":a=s;break;default:a=(0,o.default)(n[0],"6")?s:l}return n[1]<=a&&n[1]>=0};var r=a(n(8804)),o=a(n(6581));function a(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,l=32,s=128;e.exports=t.default,e.exports.default=t.default},3496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,o.default)(t);var r=String((null===n||void 0===n?void 0:n.version)||n);if(!(null!==n&&void 0!==n&&n.version||n))return e(t,{version:10})||e(t,{version:13});var s=t.replace(/[\s-]+/g,""),u=0;if("10"===r){if(!a.test(s))return!1;for(var c=0;c<r-1;c++)u+=(c+1)*s.charAt(c);if("X"===s.charAt(9)?u+=100:u+=10*s.charAt(9),u%11===0)return!0}else if("13"===r){if(!i.test(s))return!1;for(var d=0;d<12;d++)u+=l[d%2]*s.charAt(d);if(s.charAt(12)-(10-u%10)%10===0)return!0}return!1};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,l=[1,3];e.exports=t.default,e.exports.default=t.default},4195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!a.test(e))return!1;for(var t=!0,n=0,r=e.length-2;r>=0;r--)if(e[r]>="A"&&e[r]<="Z")for(var i=e[r].charCodeAt(0)-55,l=0,s=[i%10,Math.trunc(i/10)];l<s.length;l++){var u=s[l];n+=t?u>=5?1+2*(u-5):2*u:u,t=!t}else{var c=e[r].charCodeAt(0)-"0".charCodeAt(0);n+=t?c>=5?1+2*(c-5):2*c:c,t=!t}var d=10*Math.trunc((n+9)/10)-n;return+e[e.length-1]===d};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},2626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountryCodes=void 0,t.default=function(e){return(0,o.default)(e),a.has(e.toUpperCase())};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);t.CountryCodes=a},1041:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.has(e.toUpperCase())};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},5477:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrencyCodes=void 0,t.default=function(e){return(0,o.default)(e),a.has(e.toUpperCase())};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);t.CurrencyCodes=a},2362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFreightContainerID=void 0,t.isISO6346=l;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,i=/^[0-9]$/;function l(e){if((0,o.default)(e),e=e.toUpperCase(),!a.test(e))return!1;if(11===e.length){for(var t=0,n=0;n<e.length-1;n++)if(i.test(e[n]))t+=e[n]*Math.pow(2,n);else{var r=e.charCodeAt(n)-55;t+=(r<11?r:r>=11&&r<=20?12+r%11:r>=21&&r<=30?23+r%21:34+r%31)*Math.pow(2,n)}var l=t%11;return Number(e[e.length-1])===l}return!0}t.isFreightContainerID=l},2310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.has(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},5062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=t.strictSeparator?i.test(e):a.test(e);return n&&t.strict?l(e):n};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,l=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4===0&&n%100!==0||n%400===0?r<=366:r<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),a=o[1],i=o[2],l=o[3],s=i?"0".concat(i).slice(-2):i,u=l?"0".concat(l).slice(-2):l,c=new Date("".concat(a,"-").concat(s||"01","-").concat(u||"01"));return!i||!l||c.getUTCFullYear()===a&&c.getUTCMonth()+1===i&&c.getUTCDate()===l};e.exports=t.default,e.exports.default=t.default},6099:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},3553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=a;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),i=0,l=0;l<r.length;l++){var s=r[l];i+=("X"===s?10:+s)*(8-l)}return i%11===0};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default},2972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if(i.hasOwnProperty(n))if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=a(n(8804)),o=a(n(755));function a(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,r.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,o.default)(e,{allow_leading_zeroes:!0})){var n=e.split("").slice(0,-1).reduce((function(e,n,r){return e+Number(n)*t[r+1]}),0)%10,a=Number(e.charAt(e.length-1));if(0===n&&0===a||a===10-n)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){if((0,r.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var o=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,r){o=t[o][n[r%8][e]]})),0===o},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,o=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&o===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,o=0,a=0;a<r.length;a++)o+=(n=Number(r[a])*(a%2+1))>9?n-9:n;return o%10===0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"],a=function(e){return n.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),o=new Date(t,n-1,r);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===n-1&&o.getDate()===r)},l=function(e){return function(e){for(var t=e.substring(0,17),n=0,a=0;a<17;a++)n+=parseInt(t.charAt(a),10)*parseInt(r[a],10);return o[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=i(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r=e.substring(6,14);return!!(t=i(r))&&l(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++){n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var o=t[n];return o%10*9+Math.floor(o/10)}return 9===r?(10-e%10-Number(n))%10===0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default},559:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var a=[];for(n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=(0,o.default)(t[n]));return a.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"===typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=a(n(8804)),o=a(n(7023));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=!1===(t=t||{}).allow_leading_zeroes?a:i,r=!t.hasOwnProperty("min")||e>=t.min,l=!t.hasOwnProperty("max")||e<=t.max,s=!t.hasOwnProperty("lt")||e<t.lt,u=!t.hasOwnProperty("gt")||e>t.gt;return n.test(e)&&r&&l&&s&&u};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},2738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,o.default)(t,l);var n=[];t.allow_primitives&&(n=[null,!1,!0]);var a=JSON.parse(e);return n.includes(a)||!!a&&"object"===i(a)}catch(s){}return!1};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var l={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},6591:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(".");if(3!==t.length)return!1;return t.reduce((function(e,t){return e&&(0,o.default)(t,{urlSafe:!0})}),!0)};var r=a(n(8804)),o=a(n(3835));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},2233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,o.default)(t,c),!e.includes(","))return!1;var n=e.split(",");if(n[0].startsWith("(")&&!n[1].endsWith(")")||n[1].endsWith(")")&&!n[0].startsWith("("))return!1;if(t.checkDMS)return s.test(n[0])&&u.test(n[1]);return i.test(n[0])&&l.test(n[1])};var r=a(n(8804)),o=a(n(3975));function a(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,l=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},5664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===a(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],l=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-i.length-l.length;return s>=n&&("undefined"===typeof r||s<=r)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}e.exports=t.default,e.exports.default=t.default},8077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|A\xd6|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|B\xd6|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|F\xdc|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|G\xd6|GP|GR|GS|GT|G\xdc|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|L\xd6|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|M\xdc|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|N\xd6|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|T\xdc|\xdcB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|W\xdc|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|B\xdcD|BUL|B\xdcR|B\xdcS|B\xdcZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|D\xdcW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FL\xd6|FOR|FRG|FRI|FRW|FTL|F\xdcS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HM\xdc|HOG|HOH|HOL|HOM|HOR|H\xd6S|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|J\xdcL|KEH|KEL|KEM|KIB|KLE|KLZ|K\xd6N|K\xd6T|K\xd6Z|KRU|K\xdcN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|L\xd6B|LOS|LRO|LSZ|L\xdcN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|M\xdcB|M\xdcR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|\xd6HR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PL\xd6|PR\xdc|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|R\xdcD|R\xdcG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SL\xdc|SLZ|SM\xdc|SOB|SOG|SOK|S\xd6M|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|S\xdcW|SWA|SZB|TBB|TDO|TET|TIR|T\xd6L|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|W\xdcM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -\xb7]?([A-Z]{2}|[0-9]{2})[ -\xb7]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-Z\xc5\xc4\xd6 ]{2,7}$)/.test(e.trim())},"en-PK":function(e){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},9678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),d.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),i="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),l="(x(-[A-Za-z0-9]{1,8})+)",s="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),u="(-|_)",c="".concat(a,"(").concat(u).concat("([A-Za-z]{4})",")?(").concat(u).concat("([A-Za-z]{2}|\\d{3})",")?(").concat(u).concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat(u).concat(i,")*(").concat(u).concat(l,")?"),d=new RegExp("(^".concat(l,"$)|(^").concat(s,"$)|(^").concat(c,"$)"));e.exports=t.default,e.exports.default=t.default},8411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},9700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);for(var t,n,r,a=e.replace(/[- ]+/g,""),i=0,l=a.length-1;l>=0;l--)t=a.substring(l,l+1),n=parseInt(t,10),i+=r&&(n*=2)>=10?n%10+1:n,r=!r;return!(i%10!==0||!a)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},2305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,o.default)(t),null!==n&&void 0!==n&&n.eui&&(n.eui=String(n.eui));if(null!==n&&void 0!==n&&n.no_colons||null!==n&&void 0!==n&&n.no_separators)return"48"===n.eui?i.test(t):"64"===n.eui?u.test(t):i.test(t)||u.test(t);if("48"===(null===n||void 0===n?void 0:n.eui))return a.test(t)||l.test(t);if("64"===(null===n||void 0===n?void 0:n.eui))return s.test(t)||c.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,l=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,s=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,u=/^([0-9a-fA-F]){16}$/,c=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},7590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},7246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),0!==e.indexOf("magnet:?"))return!1;return a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},7894:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),0!==e.indexOf("mailto:"))return!1;var n=l(e.replace("mailto:","").split("?"),2),i=n[0],u=n[1],c=void 0===u?"":u;if(!i&&!c)return!0;var d=function(e){var t=new Set(["subject","body","cc","bcc"]),n={cc:"",bcc:""},r=!1,o=e.split("&");if(o.length>4)return!1;var a,i=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(o);try{for(i.s();!(a=i.n()).done;){var u=l(a.value.split("="),2),c=u[0],d=u[1];if(c&&!t.has(c)){r=!0;break}!d||"cc"!==c&&"bcc"!==c||(n[c]=d),c&&t.delete(c)}}catch(p){i.e(p)}finally{i.f()}return!r&&n}(c);if(!d)return!1;return"".concat(i,",").concat(d.cc,",").concat(d.bcc).split(",").every((function(e){return!(e=(0,r.default)(e," "))||(0,o.default)(e,t)}))};var r=i(n(7244)),o=i(n(498)),a=i(n(8804));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"===typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=t.default,e.exports.default=t.default},536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)||i.test(e)||l.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,l=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},164:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,o.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(a.hasOwnProperty(t)&&a[t].test(e))return!0;return!1}));if(t in a)return a[t].test(e);if(!t||"any"===t){for(var r in a){if(a.hasOwnProperty(r))if(a[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};a["en-CA"]=a["en-US"],a["fr-CA"]=a["en-CA"],a["fr-BE"]=a["nl-BE"],a["zh-HK"]=a["en-HK"],a["zh-MO"]=a["en-MO"],a["ga-IE"]=a["en-IE"],a["fr-CH"]=a["de-CH"],a["it-CH"]=a["fr-CH"];t.locales=Object.keys(a)},7267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,o.default)(e)&&24===e.length};var r=a(n(8804)),o=a(n(1961));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},8729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?a.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(7858);var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},6875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in a&&a[t].test(n)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/,ZA:/^[TAMD]\d{8}$/};e.exports=t.default,e.exports.default=t.default},9355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{allow_leading_zeroes:!1,min:0,max:65535})};var r,o=(r=n(755))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},3710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in u)return u[t].test(e);if("any"===t){for(var n in u){if(u.hasOwnProperty(n))if(u[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^\d{3}$/,i=/^\d{4}$/,l=/^\d{5}$/,s=/^\d{6}$/,u={AD:/^AD\d{3}$/,AT:i,AU:i,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:i,BG:i,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:i,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:l,DK:i,DO:l,DZ:l,EE:l,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:l,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:i,ID:l,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:a,IT:l,JP:/^\d{3}\-\d{4}$/,KE:l,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:i,LV:/^LV\-\d{4}$/,LK:l,MG:a,MX:l,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:l,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:i,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:i,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:s,RU:s,SA:l,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:s,SI:i,SK:/^\d{3}\s?\d{2}$/,TH:l,TN:i,TW:/^\d{3}(\d{2})?$/,UA:l,US:/^\d{5}(-\d{4})?$/,ZA:i,ZM:l};t.locales=Object.keys(u)},1777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),p.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,l=new RegExp("[-+]".concat(a.source,":").concat(i.source)),s=new RegExp("([zZ]|".concat(l.source,")")),u=new RegExp("".concat(a.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),c=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(u.source).concat(s.source)),p=new RegExp("^".concat(c.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},4742:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,o.default)(e),!t)return a.test(e)||i.test(e);return a.test(e)||i.test(e)||l.test(e)||s.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,l=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,s=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},9148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),a.test(e)};var r=o(n(8804));function o(e){return e&&e.__esModule?e:{default:e}}var a=(0,o(n(4277)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},4611:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},3694:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,o.default)(e);var n=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),n={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?n.uppercaseCount+=t[e]:l.test(e)?n.lowercaseCount+=t[e]:s.test(e)?n.numberCount+=t[e]:u.test(e)&&(n.symbolCount+=t[e])})),n}(e);if((t=(0,r.default)(t||{},c)).returnScore)return function(e,t){var n=0;n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower);e.uppercaseCount>0&&(n+=t.pointsForContainingUpper);e.numberCount>0&&(n+=t.pointsForContainingNumber);e.symbolCount>0&&(n+=t.pointsForContainingSymbol);return n}(n,t);return n.length>=t.minLength&&n.lowercaseCount>=t.minLowercase&&n.uppercaseCount>=t.minUppercase&&n.numberCount>=t.minNumbers&&n.symbolCount>=t.minSymbols};var r=a(n(3975)),o=a(n(8804));function a(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,l=/^[a-z]$/,s=/^[0-9]$/,u=/^[-#!$@\xa3%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},4764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},9978:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,o.default)(e);var n=e.slice(0);if(t in f)return t in g&&(n=n.replace(g[t],"")),!!f[t].test(n)&&(!(t in h)||h[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var o=s(n(8804)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}(n(5649)),i=s(n(756));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function p(e){for(var t=!1,n=!1,r=0;r<3;r++)if(!t&&/[AEIOU]/.test(e[r]))t=!0;else if(!n&&t&&"X"===e[r])n=!0;else if(r>0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var h={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),a=[2,4,8,5,10,9,7,3,6],l=0,s=0;s<a.length;s++)l+=o[s]*a[s];return(l=l%11===10?0:l%11)===o[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n=parseInt(e.slice(2,4),10);if(n>50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!==0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return a.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],r=0;r<t.length-1;r++){n.push("");for(var o=0;o<t.length-1;o++)t[r]===t[o]&&(n[r]+=o)}if(2!==(n=n.filter((function(e){return e.length>1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var i=n[0].split("").map((function(e){return parseInt(e,10)})),l=0,s=0;s<i.length-1;s++)i[s]+1===i[s+1]&&(l+=1);if(2===l)return!1}return a.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=4,l=0;l<9;l++)o+=r[l]*a,1===(a-=1)&&(a=7);return 1!==(o%=11)&&(0===o?0===r[9]:r[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,r=1;r<t.length;r+=2)n+=t[r];for(var o=0;o<t.length;o+=2)t[o]<2?n+=1-t[o]:(n+=2*(t[o]-2)+5,t[o]>4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10===0},"en-IE":function(e){var t=a.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-AR":function(e){for(var t=0,n=e.split(""),r=parseInt(n.pop(),10),o=0;o<n.length;o++)t+=n[9-o]*(2+o%6);var a=11-t%11;return 11===a?a=0:10===a&&(a=9),r===a},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=1,l=0;l<10;l++)o+=r[l]*a,10===(a+=1)&&(a=1);if(o%11===10){o=0,a=3;for(var s=0;s<10;s++)o+=r[s]*a,10===(a+=1)&&(a=1);if(o%11===10)return 0===r[10]}return o%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,i.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,i.default)(t,"YYYY/MM/DD")&&(!!a.luhnCheck(e.slice(0,12))&&a.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return a.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!p(t.slice(0,3)))return!1;if(!p(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,o=[6,7,9,10,12,13,14];r<o.length;r++){var a=o[r];t[a]in n&&t.splice(a,1,n[t[a]])}var l={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],s=parseInt(t[9]+t[10],10);s>40&&(s-=40),s<10&&(s="0".concat(s));var u="".concat(t[6]).concat(t[7],"/").concat(l,"/").concat(s);if(!(0,i.default)(u,"YY/MM/DD"))return!1;for(var c=0,d=1;d<t.length-1;d+=2){var f=parseInt(t[d],10);isNaN(f)&&(f=t[d].charCodeAt(0)-65),c+=f}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var g=0;if(t[m]in h)g=h[t[m]];else{var v=parseInt(t[m],10);g=2*v+1,v>4&&(g+=2)}c+=g}return String.fromCharCode(65+c%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(r,"YYYY/MM/DD"))return!1}for(var o=1101,a=[1,6,3,7,9,10,5,8,4,2],l=0;l<e.length-1;l++)o-=parseInt(e[l],10)*a[l];return parseInt(e[10],10)===o%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var n=parseInt(t.join("").slice(0,5),10);if(n>32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return a.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r<t.length;r++)n+=parseInt(e[r],10)*t[r];return 10!==(n%=11)&&n===parseInt(e[9],10)}var o=e.slice(0,2),a=parseInt(e.slice(2,4),10);a>80?(o="18".concat(o),a-=80):a>60?(o="22".concat(o),a-=60):a>40?(o="21".concat(o),a-=40):a>20?(o="20".concat(o),a-=20):o="19".concat(o),a<10&&(a="0".concat(a));var l="".concat(o,"/").concat(a,"/").concat(e.slice(4,6));if(!(0,i.default)(l,"YYYY/MM/DD"))return!1;for(var s=0,u=1,c=0;c<e.length-1;c++)s+=parseInt(e[c],10)*u%10,(u+=2)>10?u=1:5===u&&(u+=2);return(s=10-s%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var a=e.length-2,i=e.substring(0,a),l=e.substring(a),s=0,u=a-7,c=a;c>=1;c--)s+=i.charAt(a-c)*u,(u-=1)<2&&(u=9);var d=s%11<2?0:11-s%11;if(d!==parseInt(l.charAt(0),10))return!1;a+=1,i=e.substring(0,a),s=0,u=a-7;for(var p=a;p>=1;p--)s+=i.charAt(a-p)*u,(u-=1)<2&&(u=9);return(d=s%11<2?0:11-s%11)===parseInt(l.charAt(1),10)},"pt-PT":function(e){var t=11-a.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,i.default)(n,"YY/MM/DD"))return!1}else if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],a=0,l=0;l<o.length;l++)a+=r[l]*o[l];return a%11===10?1===r[12]:r[12]===a%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-a.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var l=(new Date).getFullYear().toString(),s=parseInt(l.slice(0,2),10);if(l=parseInt(l,10),"-"===e[6])n=parseInt("".concat(s).concat(n),10)>l?"".concat(s-1).concat(n):"".concat(s).concat(n);else if(n="".concat(s-1).concat(n),l-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var u="".concat(n,"/").concat(r,"/").concat(o);if(8===u.length){if(!(0,i.default)(u,"YY/MM/DD"))return!1}else if(!(0,i.default)(u,"YYYY/MM/DD"))return!1;return a.luhnCheck(e.replace(/\W/,""))},"uk-UA":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[-1,5,7,9,4,6,10,5,7],r=0,o=0;o<n.length;o++)r+=t[o]*n[o];return r%11===10?0===t[9]:t[9]===r%11}};h["lb-LU"]=h["fr-LU"],h["lt-LT"]=h["et-EE"],h["nl-BE"]=h["fr-BE"],h["fr-CA"]=h["en-CA"];var m=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,g={"de-AT":m,"de-DE":/[\/\\]/g,"fr-BE":m};g["nl-BE"]=g["fr-BE"],e.exports=t.default,e.exports.default=t.default},2605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,o.default)(t,a),"string"===typeof e&&i[t.hourFormat][t.mode].test(e)};var r,o=(r=n(3975))&&r.__esModule?r:{default:r};var a={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},9691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,i.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,l,p,f,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((l=g.shift()).indexOf(":")>=0&&l.split(":").length>2)return!1;var b=l.split(":"),y=(S=2,function(e){if(Array.isArray(e))return e}(C=b)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return l}}(C,S)||function(e,t){if(e){if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(C,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=y[0],w=y[1];if(""===x&&""===w)return!1}var C,S;f=g.join("@"),m=null,v=null;var k=f.match(c);k?(p="",v=k[1],m=k[2]||null):(p=(g=f.split(":")).shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!(0,a.default)(p)&&!(0,o.default)(p,t)&&(!v||!(0,a.default)(v,6)))return!1;if(p=p||v,t.host_blacklist&&d(p,t.host_blacklist))return!1;return!0};var r=l(n(8804)),o=l(n(7891)),a=l(n(6581)),i=l(n(3975));function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},8239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=a[[void 0,null].includes(t)?"all":t];return!!n&&n.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};var a={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},4162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},842:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(0,a.default)(t),t in s)return s[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var o,a=(o=n(8804))&&o.__esModule?o:{default:o},i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var s=a?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(o,i,s):o[i]=e[i]}return o.default=e,n&&n.set(e,o),o}(n(5649));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var s=t.vatMatchers={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-i.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){if(!e.match(/^(AU)?(\d{11})$/))return!1;var t=[10,1,3,5,7,9,11,13,15,17,19];e=e.replace(/^AU/,"");for(var n=(parseInt(e.slice(0,1),10)-1).toString()+e.slice(1),r=0,o=0;o<11;o++)r+=t[o]*n.charAt(o);return 0!==r&&r%89===0},BY:function(e){return/^(\u0423\u041d\u041f )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{12}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&function(e){var t=e.pop(),n=[5,4,3,2,7,6,5,4];return t===(11-e.reduce((function(e,t,r){return e+t*n[r]}),0)%11)%11}(e.match(/\d/g).map((function(e){return+e})))},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}}},5946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),a.fullWidth.test(e)&&i.halfWidth.test(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r},a=n(1621),i=n(477);e.exports=t.default,e.exports.default=t.default},5086:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},1238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},3851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},8473:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,a);var n=e.split("@"),r=n.pop(),d=[n.join("@"),r];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,c)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(i.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(l.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(s.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var p=d[0].split("-");d[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else u.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var r,o=(r=n(3975))&&r.__esModule?r:{default:r};var a={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],s=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],u=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function c(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},1068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var r=e.length-1;for(;/\s/.test(e.charAt(r));)r-=1;return e.slice(0,r+1)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},28:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,o.default)(e,n)};var r=a(n(8804)),o=a(n(6061));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},8461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},7961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)?parseFloat(e):NaN};var r,o=(r=n(5972))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},1640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},7244:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)((0,o.default)(e,t),t)};var r=a(n(1068)),o=a(n(1238));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},1808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},5649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,n=0;n<e.length-1;n++)t=(parseInt(e[n],10)+t)%10===0?9:(parseInt(e[n],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},t.luhnCheck=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){if(n){var o=2*parseInt(e[r],10);t+=o>9?o.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):o}else t+=parseInt(e[r],10);n=!n}return t%10===0},t.reverseMultiplyAndSum=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*(t-r);return n},t.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.split("").reverse().join(""),o=0,a=0;a<r.length;a++)o=t[o][n[a%8][parseInt(r[a],10)]];return 0===o}},8804:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"===typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},2970:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t){return e.some((function(e){return t===e}))};e.exports=t.default,e.exports.default=t.default},3975:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)"undefined"===typeof e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},4277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default},7023:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"===typeof e.toString?e.toString():"[object Object]":(null===e||"undefined"===typeof e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},8999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,o=(r=n(8804))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},6305:(e,t,n)=>{var r=n(3738).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&{}.hasOwnProperty.call(e,l)){var s=i?Object.getOwnPropertyDescriptor(e,l):null;s&&(s.get||s.set)?Object.defineProperty(a,l,s):a[l]=e[l]}return a.default=e,n&&n.set(e,a),a},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&r;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,n.d(a,i),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=n(5043),t=n.t(e,2);function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}const o=function(){for(var e,t,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o};const a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`},l={containerQueries:e=>({up:t=>{let n="number"===typeof t?t:a[t]||t;return"number"===typeof n&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function s(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((o,i)=>{if(function(e,t){return"@"===t||t.startsWith("@")&&(e.some((e=>t.startsWith(`@${e}`)))||!!t.match(/^@\d/))}(e.keys,i)){const e=function(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}(r.containerQueries?r:l,i);e&&(o[e]=n(t[i],i))}else if(Object.keys(e.values||a).includes(i)){o[e.up(i)]=n(t[i],i)}else{const e=i;o[e]=t[e]}return o}),{})}return n(t)}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.keys?.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return t||{}}function c(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function d(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),a=Object.keys(o);if(0===a.length)return t;let i;return a.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[i],i=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[i],i=n):e[n]=t,e)),{})}function p(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function f(t){if(e.isValidElement(t)||!p(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=f(t[e])})),n}function h(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const o=r.clone?{...t}:t;return p(t)&&p(n)&&Object.keys(n).forEach((a=>{e.isValidElement(n[a])?o[a]=n[a]:p(n[a])&&Object.prototype.hasOwnProperty.call(t,a)&&p(t[a])?o[a]=h(t[a],n[a],r):r.clone?o[a]=p(n[a])?f(n[a]):n[a]:o[a]=n[a]})),o}function m(e){const t=new URL(`https://mui.com/production-error/?code=${e}`);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${t} for the full message.`}function g(e){if("string"!==typeof e)throw new Error(m(7));return e.charAt(0).toUpperCase()+e.slice(1)}function v(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function b(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:v(e,n)||o,t&&(r=t(r,o,e)),r}const y=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=v(e.theme,r)||{};return s(e,a,(e=>{let r=b(i,o,e);return e===r&&"string"===typeof e&&(r=b(i,o,`${t}${"default"===e?"":g(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a};const x=function(e,t){return t?h(e,t,{clone:!1}):e};const w={m:"margin",p:"padding"},C={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},S={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},k=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!S[e])return[e];e=S[e]}const[t,n]=e.split(""),r=w[t],o=C[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),M=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],R=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],P=[...M,...R];function I(e,t,n,r){const o=v(e,t,!0)??n;return"number"===typeof o||"string"===typeof o?e=>"string"===typeof e?e:"string"===typeof o?`calc(${e} * ${o})`:o*e:Array.isArray(o)?e=>{if("string"===typeof e)return e;const t=Math.abs(e);const n=o[t];return e>=0?n:"number"===typeof n?-n:`-${n}`}:"function"===typeof o?o:()=>{}}function A(e){return I(e,"spacing",8)}function T(e,t){return"string"===typeof t||null==t?t:e(t)}function $(e,t,n,r){if(!t.includes(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=T(t,n),e)),{})}(k(n),r);return s(e,e[n],o)}function E(e,t){const n=A(e.theme);return Object.keys(e).map((r=>$(e,t,r,n))).reduce(x,{})}function D(e){return E(e,M)}function O(e){return E(e,R)}function _(e){return E(e,P)}D.propTypes={},D.filterProps=M,O.propTypes={},O.filterProps=R,_.propTypes={},_.filterProps=P;const F=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?x(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};function L(e){return"number"!==typeof e?e:`${e}px solid`}function j(e,t){return y({prop:e,themeKey:"borders",transform:t})}const N=j("border",L),z=j("borderTop",L),B=j("borderRight",L),H=j("borderBottom",L),V=j("borderLeft",L),W=j("borderColor"),U=j("borderTopColor"),G=j("borderRightColor"),K=j("borderBottomColor"),Y=j("borderLeftColor"),Z=j("outline",L),q=j("outlineColor"),X=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=I(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:T(t,e)});return s(e,e.borderRadius,n)}return null};X.propTypes={},X.filterProps=["borderRadius"];F(N,z,B,H,V,W,U,G,K,Y,X,Z,q);const Q=e=>{if(void 0!==e.gap&&null!==e.gap){const t=I(e.theme,"spacing",8),n=e=>({gap:T(t,e)});return s(e,e.gap,n)}return null};Q.propTypes={},Q.filterProps=["gap"];const J=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=I(e.theme,"spacing",8),n=e=>({columnGap:T(t,e)});return s(e,e.columnGap,n)}return null};J.propTypes={},J.filterProps=["columnGap"];const ee=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=I(e.theme,"spacing",8),n=e=>({rowGap:T(t,e)});return s(e,e.rowGap,n)}return null};ee.propTypes={},ee.filterProps=["rowGap"];F(Q,J,ee,y({prop:"gridColumn"}),y({prop:"gridRow"}),y({prop:"gridAutoFlow"}),y({prop:"gridAutoColumns"}),y({prop:"gridAutoRows"}),y({prop:"gridTemplateColumns"}),y({prop:"gridTemplateRows"}),y({prop:"gridTemplateAreas"}),y({prop:"gridArea"}));function te(e,t){return"grey"===t?t:e}F(y({prop:"color",themeKey:"palette",transform:te}),y({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:te}),y({prop:"backgroundColor",themeKey:"palette",transform:te}));function ne(e){return e<=1&&0!==e?100*e+"%":e}const re=y({prop:"width",transform:ne}),oe=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{const n=e.theme?.breakpoints?.values?.[t]||a[t];return n?"px"!==e.theme?.breakpoints?.unit?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:ne(t)}};return s(e,e.maxWidth,t)}return null};oe.filterProps=["maxWidth"];const ae=y({prop:"minWidth",transform:ne}),ie=y({prop:"height",transform:ne}),le=y({prop:"maxHeight",transform:ne}),se=y({prop:"minHeight",transform:ne}),ue=(y({prop:"size",cssProperty:"width",transform:ne}),y({prop:"size",cssProperty:"height",transform:ne}),F(re,oe,ae,ie,le,se,y({prop:"boxSizing"})),{border:{themeKey:"borders",transform:L},borderTop:{themeKey:"borders",transform:L},borderRight:{themeKey:"borders",transform:L},borderBottom:{themeKey:"borders",transform:L},borderLeft:{themeKey:"borders",transform:L},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:L},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:X},color:{themeKey:"palette",transform:te},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:te},backgroundColor:{themeKey:"palette",transform:te},p:{style:O},pt:{style:O},pr:{style:O},pb:{style:O},pl:{style:O},px:{style:O},py:{style:O},padding:{style:O},paddingTop:{style:O},paddingRight:{style:O},paddingBottom:{style:O},paddingLeft:{style:O},paddingX:{style:O},paddingY:{style:O},paddingInline:{style:O},paddingInlineStart:{style:O},paddingInlineEnd:{style:O},paddingBlock:{style:O},paddingBlockStart:{style:O},paddingBlockEnd:{style:O},m:{style:D},mt:{style:D},mr:{style:D},mb:{style:D},ml:{style:D},mx:{style:D},my:{style:D},margin:{style:D},marginTop:{style:D},marginRight:{style:D},marginBottom:{style:D},marginLeft:{style:D},marginX:{style:D},marginY:{style:D},marginInline:{style:D},marginInlineStart:{style:D},marginInlineEnd:{style:D},marginBlock:{style:D},marginBlockStart:{style:D},marginBlockEnd:{style:D},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:Q},rowGap:{style:ee},columnGap:{style:J},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ne},maxWidth:{style:oe},minWidth:{transform:ne},height:{transform:ne},maxHeight:{transform:ne},minHeight:{transform:ne},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"}}),ce=ue;function de(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ce;return Object.keys(e).forEach((r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]})),t})(n);let a;return a=Array.isArray(t)?[r,...t]:"function"===typeof t?function(){const e=t(...arguments);return p(e)?{...r,...e}:r}:{...r,...t},{...o,sx:a}}function pe(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===l?"":" ")+t(r),l=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}function fe(){return fe=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},fe.apply(null,arguments)}function he(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var me=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ge=he((function(e){return me.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var ve=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),be=Math.abs,ye=String.fromCharCode,xe=Object.assign;function we(e){return e.trim()}function Ce(e,t,n){return e.replace(t,n)}function Se(e,t){return e.indexOf(t)}function ke(e,t){return 0|e.charCodeAt(t)}function Me(e,t,n){return e.slice(t,n)}function Re(e){return e.length}function Pe(e){return e.length}function Ie(e,t){return t.push(e),e}var Ae=1,Te=1,$e=0,Ee=0,De=0,Oe="";function _e(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Ae,column:Te,length:i,return:""}}function Fe(e,t){return xe(_e("",null,null,"",null,null,0),e,{length:-e.length},t)}function Le(){return De=Ee>0?ke(Oe,--Ee):0,Te--,10===De&&(Te=1,Ae--),De}function je(){return De=Ee<$e?ke(Oe,Ee++):0,Te++,10===De&&(Te=1,Ae++),De}function Ne(){return ke(Oe,Ee)}function ze(){return Ee}function Be(e,t){return Me(Oe,e,t)}function He(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ve(e){return Ae=Te=1,$e=Re(Oe=e),Ee=0,[]}function We(e){return Oe="",e}function Ue(e){return we(Be(Ee-1,Ye(91===e?e+2:40===e?e+1:e)))}function Ge(e){for(;(De=Ne())&&De<33;)je();return He(e)>2||He(De)>3?"":" "}function Ke(e,t){for(;--t&&je()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return Be(e,ze()+(t<6&&32==Ne()&&32==je()))}function Ye(e){for(;je();)switch(De){case e:return Ee;case 34:case 39:34!==e&&39!==e&&Ye(De);break;case 40:41===e&&Ye(e);break;case 92:je()}return Ee}function Ze(e,t){for(;je()&&e+De!==57&&(e+De!==84||47!==Ne()););return"/*"+Be(t,Ee-1)+"*"+ye(47===e?e:je())}function qe(e){for(;!He(Ne());)je();return Be(e,Ee)}var Xe="-ms-",Qe="-moz-",Je="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes";function ot(e,t){for(var n="",r=Pe(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function at(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+ot(e.children,r)+"}";case tt:e.value=e.props.join(",")}return Re(n=ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function it(e){return We(lt("",null,null,null,[""],e=Ve(e),0,[0],e))}function lt(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,w=a,C=r,S=y;g;)switch(h=b,b=je()){case 40:if(108!=h&&58==ke(S,d-1)){-1!=Se(S+=Ce(Ue(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Ue(b);break;case 9:case 10:case 13:case 32:S+=Ge(h);break;case 92:S+=Ke(ze()-1,7);continue;case 47:switch(Ne()){case 42:case 47:Ie(ut(Ze(je(),ze()),t,n),s);break;default:S+="/"}break;case 123*m:l[u++]=Re(S)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(S=Ce(S,/\f/g,"")),f>0&&Re(S)-d&&Ie(f>32?ct(S+";",r,n,d-1):ct(Ce(S," ","")+";",r,n,d-2),s);break;case 59:S+=";";default:if(Ie(C=st(S,t,n,u,c,o,l,y,x=[],w=[],d),a),123===b)if(0===c)lt(S,t,C,C,x,a,d,l,w);else switch(99===p&&110===ke(S,3)?100:p){case 100:case 108:case 109:case 115:lt(e,C,C,r&&Ie(st(e,C,C,0,0,o,l,y,o,x=[],d),w),o,w,d,l,r?x:w);break;default:lt(S,C,C,C,[""],w,0,l,w)}}u=c=f=0,m=v=1,y=S="",d=i;break;case 58:d=1+Re(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Le())continue;switch(S+=ye(b),b*m){case 38:v=c>0?1:(S+="\f",-1);break;case 44:l[u++]=(Re(S)-1)*v,v=1;break;case 64:45===Ne()&&(S+=Ue(je())),p=Ne(),c=d=Re(y=S+=qe(ze())),b++;break;case 45:45===h&&2==Re(S)&&(m=0)}}return a}function st(e,t,n,r,o,a,i,l,s,u,c){for(var d=o-1,p=0===o?a:[""],f=Pe(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Me(e,d+1,d=be(m=i[h])),y=e;v<f;++v)(y=we(m>0?p[v]+" "+b:Ce(b,/&\f/g,p[v])))&&(s[g++]=y);return _e(e,t,n,0===o?tt:l,s,u,c)}function ut(e,t,n){return _e(e,t,n,et,ye(De),Me(e,2,-2),0)}function ct(e,t,n,r){return _e(e,t,n,nt,Me(e,0,r),Me(e,r+1,-1),r)}var dt=function(e,t,n){for(var r=0,o=0;r=o,o=Ne(),38===r&&12===o&&(t[n]=1),!He(o);)je();return Be(e,Ee)},pt=function(e,t){return We(function(e,t){var n=-1,r=44;do{switch(He(r)){case 0:38===r&&12===Ne()&&(t[n]=1),e[n]+=dt(Ee-1,t,n);break;case 2:e[n]+=Ue(r);break;case 4:if(44===r){e[++n]=58===Ne()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ye(r)}}while(r=je());return e}(Ve(e),t))},ft=new WeakMap,ht=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ft.get(n))&&!r){ft.set(e,!0);for(var o=[],a=pt(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},mt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gt(e,t){switch(function(e,t){return 45^ke(e,0)?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}(e,t)){case 5103:return Je+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Je+e+Qe+e+Xe+e+e;case 6828:case 4268:return Je+e+Xe+e+e;case 6165:return Je+e+Xe+"flex-"+e+e;case 5187:return Je+e+Ce(e,/(\w+).+(:[^]+)/,Je+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return Je+e+Xe+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return Je+e+Xe+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return Je+e+Xe+Ce(e,"shrink","negative")+e;case 5292:return Je+e+Xe+Ce(e,"basis","preferred-size")+e;case 6060:return Je+"box-"+Ce(e,"-grow","")+Je+e+Xe+Ce(e,"grow","positive")+e;case 4554:return Je+Ce(e,/([^-])(transform)/g,"$1"+Je+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,Je+"$1"),/(image-set)/,Je+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,Je+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,Je+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Je+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,Je+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Re(e)-1-t>6)switch(ke(e,t+1)){case 109:if(45!==ke(e,t+4))break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+Je+"$2-$3$1"+Qe+(108==ke(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?gt(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ke(e,t+1))break;case 6444:switch(ke(e,Re(e)-3-(~Se(e,"!important")&&10))){case 107:return Ce(e,":",":"+Je)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Je+(45===ke(e,14)?"inline-":"")+"box$3$1"+Je+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return Je+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Je+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Je+e+Xe+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Je+e+Xe+e+e}return e}var vt=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=gt(e.value,e.length);break;case rt:return ot([Fe(e,{value:Ce(e.value,"@","@"+Je)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ot([Fe(e,{props:[Ce(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ot([Fe(e,{props:[Ce(t,/:(plac\w+)/,":"+Je+"input-$1")]}),Fe(e,{props:[Ce(t,/:(plac\w+)/,":-moz-$1")]}),Fe(e,{props:[Ce(t,/:(plac\w+)/,Xe+"input-$1")]})],r)}return""}))}}],bt=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||vt,i={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)}));var s,u,c=[at,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=function(e){var t=Pe(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}([ht,mt].concat(a,c));o=function(e,t,n,r){s=n,function(e){ot(it(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ve({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(l),p};var yt={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},xt=/[A-Z]|^ms/g,wt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ct=function(e){return 45===e.charCodeAt(1)},St=function(e){return null!=e&&"boolean"!==typeof e},kt=he((function(e){return Ct(e)?e:e.replace(xt,"-$&").toLowerCase()})),Mt=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(wt,(function(e,t,n){return Pt={name:t,styles:n,next:Pt},t}))}return 1===yt[e]||Ct(e)||"number"!==typeof t||0===t?t:t+"px"};function Rt(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Pt={name:o.name,styles:o.styles,next:Pt},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Pt={name:i.name,styles:i.styles,next:Pt},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Rt(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!==typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":St(l)&&(r+=kt(a)+":"+Mt(a,l)+";")}else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Rt(e,t,i);switch(a){case"animation":case"animationName":r+=kt(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<i.length;u++)St(i[u])&&(r+=kt(a)+":"+Mt(a,i[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=Pt,s=n(e);return Pt=l,Rt(e,t,s)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var Pt,It=/label:\s*([^\s;{]+)\s*(;|$)/g;function At(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Pt=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Rt(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=Rt(n,t,e[i]),r)o+=a[i]}It.lastIndex=0;for(var l,s="";null!==(l=It.exec(o));)s+="-"+l[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:u,styles:o,next:Pt}}var Tt=!!t.useInsertionEffect&&t.useInsertionEffect,$t=Tt||function(e){return e()},Et=Tt||e.useLayoutEffect,Dt=e.createContext("undefined"!==typeof HTMLElement?bt({key:"css"}):null),Ot=(Dt.Provider,function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(Dt);return t(n,o,r)}))}),_t=e.createContext({});var Ft=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Lt=function(e,t,n){Ft(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},jt=ge,Nt=function(e){return"theme"!==e},zt=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?jt:Nt},Bt=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},Ht=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ft(t,n,r),$t((function(){return Lt(t,n,r)})),null},Vt=function t(n,r){var o,a,i=n.__emotion_real===n,l=i&&n.__emotion_base||n;void 0!==r&&(o=r.label,a=r.target);var s=Bt(n,r,i),u=s||zt(l),c=!u("as");return function(){var d=arguments,p=i&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&p.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)p.push.apply(p,d);else{p.push(d[0][0]);for(var f=d.length,h=1;h<f;h++)p.push(d[h],d[0][h])}var m=Ot((function(t,n,r){var o=c&&t.as||l,i="",d=[],f=t;if(null==t.theme){for(var h in f={},t)f[h]=t[h];f.theme=e.useContext(_t)}"string"===typeof t.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}(n.registered,d,t.className):null!=t.className&&(i=t.className+" ");var m=At(p.concat(d),n.registered,f);i+=n.key+"-"+m.name,void 0!==a&&(i+=" "+a);var g=c&&void 0===s?zt(o):u,v={};for(var b in t)c&&"as"===b||g(b)&&(v[b]=t[b]);return v.className=i,r&&(v.ref=r),e.createElement(e.Fragment,null,e.createElement(Ht,{cache:n,serialized:m,isStringTag:"string"===typeof o}),e.createElement(o,v))}));return m.displayName=void 0!==o?o:"Styled("+("string"===typeof l?l:l.displayName||l.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=l,m.__emotion_styles=p,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(e,n){return t(e,fe({},r,n,{shouldForwardProp:Bt(m,n,!0)})).apply(void 0,p)},m}}.bind();function Wt(e,t){return Vt(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Vt[e]=Vt(e)}));const Ut=[];function Gt(e){return Ut[0]=e,At(Ut)}function Kt(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>({...e,[t.key]:t.val})),{})})(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"===typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return{keys:i,values:a,up:l,down:s,between:u,only:function(e){return i.indexOf(e)+1<i.length?u(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):u(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n,...o}}const Yt={borderRadius:4};function Zt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A({spacing:e});if(e.mui)return e;const n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}const qt=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:u,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const d=v(n,l)||{};if(c)return c(o);return s(o,t,(t=>{let n=b(d,u,t);return t===n&&"string"===typeof t&&(n=b(d,u,`${e}${"default"===t?"":g(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??ce;function i(n){let r=n;if("function"===typeof n)r=n(o);else if("object"!==typeof n)return n;if(!r)return null;const i=u(o.breakpoints),l=Object.keys(i);let d=i;return Object.keys(r).forEach((n=>{const i=function(e,t){return"function"===typeof e?e(t):e}(r[n],o);if(null!==i&&void 0!==i)if("object"===typeof i)if(a[n])d=x(d,e(n,i,o,a));else{const e=s({theme:o},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?d=x(d,e):d[n]=t({sx:i,theme:o})}else d=x(d,e(n,i,o,a))})),function(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter((e=>e.startsWith("@container"))).sort(((e,t)=>{const n=/min-width:\s*([0-9.]+)/;return+(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)}));return n.length?n.reduce(((e,n)=>{const r=t[n];return delete e[n],e[n]=r,e}),{...t}):t}(o,c(l,d))}return Array.isArray(r)?r.map(i):i(r)}}();qt.filterProps=["sx"];const Xt=qt;function Qt(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||"function"!==typeof n.getColorSchemeSelector)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:{}}const Jt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:r,shape:o={},...a}=e;let i=h({breakpoints:Kt(t),direction:"ltr",components:{},palette:{mode:"light",...n},spacing:Zt(r),shape:{...Yt,...o}},a);i=function(e){const t=(e,t)=>e.replace("@media",t?`@container ${t}`:"@container");function n(n,r){n.up=function(){return t(e.breakpoints.up(...arguments),r)},n.down=function(){return t(e.breakpoints.down(...arguments),r)},n.between=function(){return t(e.breakpoints.between(...arguments),r)},n.only=function(){return t(e.breakpoints.only(...arguments),r)},n.not=function(){const n=t(e.breakpoints.not(...arguments),r);return n.includes("not all and")?n.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):n}}const r={},o=e=>(n(r,e),r);return n(o),{...e,containerQueries:o}}(i),i.applyStyles=Qt;for(var l=arguments.length,s=new Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];return i=s.reduce(((e,t)=>h(e,t)),i),i.unstable_sxConfig={...ce,...a?.unstable_sxConfig},i.unstable_sx=function(e){return Xt({sx:e,theme:this})},i};function en(e){const{variants:t,...n}=e,r={variants:t,style:Gt(n),isProcessed:!0};return r.style===n||t&&t.forEach((e=>{"function"!==typeof e.style&&(e.style=Gt(e.style))})),r}const tn=Jt();function nn(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function rn(e){return e?(t,n)=>n[e]:null}function on(e,t){const n="function"===typeof t?t(e):t;if(Array.isArray(n))return n.flatMap((t=>on(e,t)));if(Array.isArray(n?.variants)){let t;if(n.isProcessed)t=n.style;else{const{variants:e,...r}=n;t=r}return an(e,n.variants,[t])}return n?.isProcessed?n.style:n}function an(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e:for(let o=0;o<t.length;o+=1){const a=t[o];if("function"===typeof a.props){if(n??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(n))continue}else for(const t in a.props)if(e[t]!==a.props[t]&&e.ownerState?.[t]!==a.props[t])continue e;"function"===typeof a.style?(n??={...e,...e.ownerState,ownerState:e.ownerState},r.push(a.style(n))):r.push(a.style)}return r}function ln(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=tn,rootShouldForwardProp:r=nn,slotShouldForwardProp:o=nn}=e;function a(e){!function(e,t,n){e.theme=function(e){for(const t in e)return!1;return!0}(e.theme)?n:e.theme[t]||e.theme}(e,t,n)}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(e=>e.filter((e=>e!==Xt))));const{name:n,slot:i,skipVariantsResolver:l,skipSx:s,overridesResolver:u=rn(un(i)),...c}=t,d=void 0!==l?l:i&&"Root"!==i&&"root"!==i||!1,f=s||!1;let h=nn;"Root"===i||"root"===i?h=r:i?h=o:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=Wt(e,{shouldForwardProp:h,label:sn(n,i),...c}),g=e=>{if("function"===typeof e&&e.__emotion_real!==e)return function(t){return on(t,e)};if(p(e)){const t=en(e);return t.variants?function(e){return on(e,t)}:t.style}return e},v=function(){const t=[];for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const l=o.map(g),s=[];if(t.push(a),n&&u&&s.push((function(e){const t=e.theme,r=t.components?.[n]?.styleOverrides;if(!r)return null;const o={};for(const n in r)o[n]=on(e,r[n]);return u(e,o)})),n&&!d&&s.push((function(e){const t=e.theme,r=t?.components?.[n]?.variants;return r?an(e,r):null})),f||s.push(Xt),Array.isArray(l[0])){const e=l.shift(),n=new Array(t.length).fill(""),r=new Array(s.length).fill("");let o;o=[...n,...e,...r],o.raw=[...n,...e.raw,...r],t.unshift(o)}const c=[...t,...l,...s],p=m(...c);return e.muiName&&(p.muiName=e.muiName),p};return m.withConfig&&(v.withConfig=m.withConfig),v}}function sn(e,t){}function un(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}function cn(e){const t=new URL(`https://mui.com/production-error/?code=${e}`);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.searchParams.append("args[]",e))),`Minified MUI error #${e}; visit ${t} for the full message.`}function dn(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pn(t){if(e.isValidElement(t)||!dn(t))return t;const n={};return Object.keys(t).forEach((e=>{n[e]=pn(t[e])})),n}function fn(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const o=r.clone?{...t}:t;return dn(t)&&dn(n)&&Object.keys(n).forEach((a=>{e.isValidElement(n[a])?o[a]=n[a]:dn(n[a])&&Object.prototype.hasOwnProperty.call(t,a)&&dn(t[a])?o[a]=fn(t[a],n[a],r):r.clone?o[a]=dn(n[a])?pn(n[a]):n[a]:o[a]=n[a]})),o}const hn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))};function mn(e){return hn(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)}function gn(e){if(e.type)return e;if("#"===e.charAt(0))return gn(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(m(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(m(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const vn=(e,t)=>{try{return(e=>{const t=gn(e);return t.values.slice(0,3).map(((e,n)=>t.type.includes("hsl")&&0!==n?`${e}%`:e)).join(" ")})(e)}catch(n){return e}};function bn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function yn(e){e=gn(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-a*Math.max(Math.min(t-3,9-t,1),-1)};let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),bn({type:l,values:s})}function xn(e){let t="hsl"===(e=gn(e)).type||"hsla"===e.type?gn(yn(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function wn(e,t){return e=gn(e),t=mn(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bn(e)}function Cn(e,t,n){try{return wn(e,t)}catch(r){return e}}function Sn(e,t){if(e=gn(e),t=mn(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 bn(e)}function kn(e,t,n){try{return Sn(e,t)}catch(r){return e}}function Mn(e,t){if(e=gn(e),t=mn(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 bn(e)}function Rn(e,t,n){try{return Mn(e,t)}catch(r){return e}}function Pn(e,t,n){try{return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return xn(e)>.5?Sn(e,t):Mn(e,t)}(e,t)}catch(r){return e}}const In={black:"#000",white:"#fff"},An={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"},Tn={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},$n={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},En={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Dn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},On={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_n={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Fn(){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:In.white,default:In.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 Ln=Fn();function jn(){return{text:{primary:In.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:In.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 Nn=jn();function zn(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Mn(e.main,o):"dark"===t&&(e.dark=Sn(e.main,a)))}function Bn(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Dn[200],light:Dn[50],dark:Dn[400]}:{main:Dn[700],light:Dn[400],dark:Dn[800]}}(t),i=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:Tn[200],light:Tn[50],dark:Tn[400]}:{main:Tn[500],light:Tn[300],dark:Tn[700]}}(t),l=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:$n[500],light:$n[300],dark:$n[700]}:{main:$n[700],light:$n[400],dark:$n[800]}}(t),s=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:On[400],light:On[300],dark:On[700]}:{main:On[700],light:On[500],dark:On[900]}}(t),u=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:_n[400],light:_n[300],dark:_n[700]}:{main:_n[800],light:_n[500],dark:_n[900]}}(t),c=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:En[400],light:En[300],dark:En[700]}:{main:"#ed6c02",light:En[500],dark:En[900]}}(t);function d(e){const t=function(e,t){const n=xn(e),r=xn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Nn.text.primary)>=n?Nn.text.primary:Ln.text.primary;return t}const p=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:i=700}=e;if(t={...t},!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(cn(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error(cn(12,n?` (${n})`:"",JSON.stringify(t.main)));return zn(t,"light",a,r),zn(t,"dark",i,r),t.contrastText||(t.contrastText=d(t.main)),t};let f;"light"===t?f=Fn():"dark"===t&&(f=jn());return fn({common:{...In},mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:An,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...f},o)}function Hn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";function t(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.length)return"";const a=r[0];return"string"!==typeof a||a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${a}`:`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`}return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];return`var(--${e?`${e}-`:""}${n}${t(...o)})`}}function Vn(e){const t={};return Object.entries(e).forEach((e=>{const[n,r]=e;"object"===typeof r&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),t}const Wn=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=e;t.forEach(((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=n:o&&"object"===typeof o&&(o[e]=n):o&&"object"===typeof o&&(o[e]||(o[e]=r.includes(e)?[]:{}),o=o[e])}))};function Un(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};var l,s;return l=(e,t,l)=>{if(("string"===typeof t||"number"===typeof t)&&(!r||!r(e,t))){const r=`--${n?`${n}-`:""}${e.join("-")}`,s=((e,t)=>"number"===typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((t=>e.includes(t)))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t)(e,t);Object.assign(o,{[r]:s}),Wn(a,e,`var(${r})`,l),Wn(i,e,`var(${r}, ${s})`,l)}},s=e=>"vars"===e[0],function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Object.entries(t).forEach((t=>{let[o,a]=t;(!s||s&&!s([...n,o]))&&void 0!==a&&null!==a&&("object"===typeof a&&Object.keys(a).length>0?e(a,[...n,o],Array.isArray(a)?[...r,o]:r):l([...n,o],a,r))}))}(e),{css:o,vars:a,varsWithDefaults:i}}const Gn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getSelector:n=v,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...s}=e,{vars:u,css:c,varsWithDefaults:d}=Un(s,t);let p=d;const f={},{[l]:m,...g}=a;if(Object.entries(g||{}).forEach((e=>{let[n,r]=e;const{vars:o,css:a,varsWithDefaults:i}=Un(r,t);p=h(p,i),f[n]={css:a,vars:o}})),m){const{css:e,vars:n,varsWithDefaults:r}=Un(m,t);p=h(p,r),f[l]={css:e,vars:n}}function v(t,n){let r=o;if("class"===o&&(r=".%s"),"data"===o&&(r="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(r=`[${o}="%s"]`),t){if("media"===r){if(e.defaultColorScheme===t)return":root";const r=a[t]?.palette?.mode||t;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return e.defaultColorScheme===t?`:root, ${r.replace("%s",String(t))}`:r.replace("%s",String(t))}return":root"}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(f).forEach((t=>{let[,{vars:n}]=t;e=h(e,n)})),e},generateStyleSheets:()=>{const t=[],o=e.defaultColorScheme||"light";function i(e,n){Object.keys(n).length&&t.push("string"===typeof e?{[e]:{...n}}:e)}i(n(void 0,{...c}),c);const{[o]:l,...s}=f;if(l){const{css:e}=l,t=a[o]?.palette?.mode,s=!r&&t?{colorScheme:t,...e}:{...e};i(n(o,{...s}),s)}return Object.entries(s).forEach((e=>{let[t,{css:o}]=e;const l=a[t]?.palette?.mode,s=!r&&l?{colorScheme:l,...o}:{...o};i(n(t,{...s}),s)})),t}}};function Kn(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Yn(e){return Math.round(1e5*e)/1e5}const Zn={textTransform:"uppercase"},qn='"Roboto", "Helvetica", "Arial", sans-serif';function Xn(e,t){const{fontFamily:n=qn,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:s=16,allVariants:u,pxToRem:c,...d}="function"===typeof t?t(e):t;const p=r/14,f=c||(e=>e/s*p+"rem"),h=(e,t,r,o,a)=>({fontFamily:n,fontWeight:e,fontSize:f(t),lineHeight:r,...n===qn?{letterSpacing:`${Yn(o/t)}em`}:{},...a,...u}),m={h1:h(o,96,1.167,-1.5),h2:h(o,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(i,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(i,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(i,14,1.75,.4,Zn),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Zn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return fn({htmlFontSize:s,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...m},d,{clone:!1})}function Qn(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const Jn=["none",Qn(0,2,1,-1,0,1,1,0,0,1,3,0),Qn(0,3,1,-2,0,2,2,0,0,1,5,0),Qn(0,3,3,-2,0,3,4,0,0,1,8,0),Qn(0,2,4,-1,0,4,5,0,0,1,10,0),Qn(0,3,5,-1,0,5,8,0,0,1,14,0),Qn(0,3,5,-1,0,6,10,0,0,1,18,0),Qn(0,4,5,-2,0,7,10,1,0,2,16,1),Qn(0,5,5,-3,0,8,10,1,0,3,14,2),Qn(0,5,6,-3,0,9,12,1,0,3,16,2),Qn(0,6,6,-3,0,10,14,1,0,4,18,3),Qn(0,6,7,-4,0,11,15,1,0,4,20,3),Qn(0,7,8,-4,0,12,17,2,0,5,22,4),Qn(0,7,8,-4,0,13,19,2,0,5,24,4),Qn(0,7,9,-4,0,14,21,2,0,5,26,4),Qn(0,8,9,-5,0,15,22,2,0,6,28,5),Qn(0,8,10,-5,0,16,24,2,0,6,30,5),Qn(0,8,11,-5,0,17,26,2,0,6,32,5),Qn(0,9,11,-5,0,18,28,2,0,7,34,6),Qn(0,9,12,-6,0,19,29,2,0,7,36,6),Qn(0,10,13,-6,0,20,31,3,0,8,38,7),Qn(0,10,13,-6,0,21,33,3,0,8,40,7),Qn(0,10,14,-6,0,22,35,3,0,8,42,7),Qn(0,11,14,-7,0,23,36,3,0,9,44,8),Qn(0,11,15,-7,0,24,38,3,0,9,46,8)],er={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)"},tr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nr(e){return`${Math.round(e)}ms`}function rr(e){if(!e)return 0;const t=e/36;return Math.min(Math.round(10*(4+15*t**.25+t/5)),3e3)}function or(e){const t={...er,...e.easing},n={...tr,...e.duration};return{getAutoHeightDuration:rr,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0,...l}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof o?o:nr(o)} ${a} ${"string"===typeof i?i:nr(i)}`)).join(",")},...e,easing:t,duration:n}}const ar={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ir(){const e={...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return function e(t){const n=Object.entries(t);for(let o=0;o<n.length;o++){const[a,i]=n[o];!dn(r=i)&&"undefined"!==typeof r&&"string"!==typeof r&&"boolean"!==typeof r&&"number"!==typeof r&&!Array.isArray(r)||a.startsWith("unstable_")?delete t[a]:dn(i)&&(t[a]={...i},e(t[a]))}var r}(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(e,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function lr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t,mixins:n={},spacing:r,palette:o={},transitions:a={},typography:i={},shape:l,...s}=e;if(e.vars)throw new Error(cn(20));const u=Bn(o),c=Jt(e);let d=fn(c,{mixins:Kn(c.breakpoints,n),palette:u,shadows:Jn.slice(),typography:Xn(u,i),transitions:or(a),zIndex:{...ar}});d=fn(d,s);for(var p=arguments.length,f=new Array(p>1?p-1:0),h=1;h<p;h++)f[h-1]=arguments[h];return d=f.reduce(((e,t)=>fn(e,t)),d),d.unstable_sxConfig={...ce,...s?.unstable_sxConfig},d.unstable_sx=function(e){return Xt({sx:e,theme:this})},d.toRuntimeSource=ir,d}const sr=lr;function ur(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(10*t)/1e3}const cr=[...Array(25)].map(((e,t)=>{if(0===t)return"none";const n=ur(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function dr(e){return{inputPlaceholder:"dark"===e?.5:.42,inputUnderline:"dark"===e?.7:.42,switchTrackDisabled:"dark"===e?.2:.12,switchTrack:"dark"===e?.3:.38}}function pr(e){return"dark"===e?cr:[]}function fr(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const hr=e=>[...[...Array(25)].map(((t,n)=>`--${e?`${e}-`:""}overlays-${n}`)),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],mr=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let a=o;if("class"===o&&(a=".%s"),"data"===o&&(a="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(a=`[${o}="%s"]`),e.defaultColorScheme===t){if("dark"===t){const o={};return hr(e.cssVarPrefix).forEach((e=>{o[e]=n[e],delete n[e]})),"media"===a?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:o}}:a?{[a.replace("%s",t)]:o,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...o}}}if(a&&"media"!==a)return`${r}, ${a.replace("%s",String(t))}`}else if(t){if("media"===a)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function gr(e,t,n){!e[t]&&n&&(e[t]=n)}function vr(e){return e&&e.startsWith("hsl")?yn(e):e}function br(e,t){`${t}Channel`in e||(e[`${t}Channel`]=vn(vr(e[t])))}const yr=e=>{try{return e()}catch(t){}};function xr(e,t,n,r){if(!t)return;t=!0===t?{}:t;const o="dark"===r?"dark":"light";if(!n)return void(e[r]=function(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Bn(t);return{palette:a,opacity:{...dr(a.mode),...n},overlays:r||pr(a.mode),...o}}({...t,palette:{mode:o,...t?.palette}}));const{palette:a,...i}=sr({...n,palette:{mode:o,...t?.palette}});return e[r]={...t,palette:a,opacity:{...dr(o),...t?.opacity},overlays:t?.overlays||pr(o)},i}function wr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{colorSchemes:t={light:!0},defaultColorScheme:n,disableCssColorScheme:r=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=fr,colorSchemeSelector:i=(t.light&&t.dark?"media":void 0),rootSelector:l=":root",...s}=e,u=Object.keys(t)[0],c=n||(t.light&&"light"!==u?"light":u),d=function(){return Hn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui")}(o),{[c]:p,light:f,dark:h,...m}=t,g={...m};let v=p;if(("dark"===c&&!("dark"in t)||"light"===c&&!("light"in t))&&(v=!0),!v)throw new Error(cn(21,c));const b=xr(g,v,s,c);f&&!g.light&&xr(g,f,void 0,"light"),h&&!g.dark&&xr(g,h,void 0,"dark");let y={defaultColorScheme:c,...b,cssVarPrefix:o,colorSchemeSelector:i,rootSelector:l,getCssVar:d,colorSchemes:g,font:{...Vn(b.typography),...b.font},spacing:(x=s.spacing,"number"===typeof x?`${x}px`:"string"===typeof x||"function"===typeof x||Array.isArray(x)?x:"8px")};var x;Object.keys(y.colorSchemes).forEach((e=>{const t=y.colorSchemes[e].palette,n=e=>{const n=e.split("-"),r=n[1],o=n[2];return d(e,t[r][o])};var r;if("light"===t.mode&&(gr(t.common,"background","#fff"),gr(t.common,"onBackground","#000")),"dark"===t.mode&&(gr(t.common,"background","#000"),gr(t.common,"onBackground","#fff")),r=t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{r[e]||(r[e]={})})),"light"===t.mode){gr(t.Alert,"errorColor",kn(t.error.light,.6)),gr(t.Alert,"infoColor",kn(t.info.light,.6)),gr(t.Alert,"successColor",kn(t.success.light,.6)),gr(t.Alert,"warningColor",kn(t.warning.light,.6)),gr(t.Alert,"errorFilledBg",n("palette-error-main")),gr(t.Alert,"infoFilledBg",n("palette-info-main")),gr(t.Alert,"successFilledBg",n("palette-success-main")),gr(t.Alert,"warningFilledBg",n("palette-warning-main")),gr(t.Alert,"errorFilledColor",yr((()=>t.getContrastText(t.error.main)))),gr(t.Alert,"infoFilledColor",yr((()=>t.getContrastText(t.info.main)))),gr(t.Alert,"successFilledColor",yr((()=>t.getContrastText(t.success.main)))),gr(t.Alert,"warningFilledColor",yr((()=>t.getContrastText(t.warning.main)))),gr(t.Alert,"errorStandardBg",Rn(t.error.light,.9)),gr(t.Alert,"infoStandardBg",Rn(t.info.light,.9)),gr(t.Alert,"successStandardBg",Rn(t.success.light,.9)),gr(t.Alert,"warningStandardBg",Rn(t.warning.light,.9)),gr(t.Alert,"errorIconColor",n("palette-error-main")),gr(t.Alert,"infoIconColor",n("palette-info-main")),gr(t.Alert,"successIconColor",n("palette-success-main")),gr(t.Alert,"warningIconColor",n("palette-warning-main")),gr(t.AppBar,"defaultBg",n("palette-grey-100")),gr(t.Avatar,"defaultBg",n("palette-grey-400")),gr(t.Button,"inheritContainedBg",n("palette-grey-300")),gr(t.Button,"inheritContainedHoverBg",n("palette-grey-A100")),gr(t.Chip,"defaultBorder",n("palette-grey-400")),gr(t.Chip,"defaultAvatarColor",n("palette-grey-700")),gr(t.Chip,"defaultIconColor",n("palette-grey-700")),gr(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),gr(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),gr(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),gr(t.LinearProgress,"primaryBg",Rn(t.primary.main,.62)),gr(t.LinearProgress,"secondaryBg",Rn(t.secondary.main,.62)),gr(t.LinearProgress,"errorBg",Rn(t.error.main,.62)),gr(t.LinearProgress,"infoBg",Rn(t.info.main,.62)),gr(t.LinearProgress,"successBg",Rn(t.success.main,.62)),gr(t.LinearProgress,"warningBg",Rn(t.warning.main,.62)),gr(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),gr(t.Slider,"primaryTrack",Rn(t.primary.main,.62)),gr(t.Slider,"secondaryTrack",Rn(t.secondary.main,.62)),gr(t.Slider,"errorTrack",Rn(t.error.main,.62)),gr(t.Slider,"infoTrack",Rn(t.info.main,.62)),gr(t.Slider,"successTrack",Rn(t.success.main,.62)),gr(t.Slider,"warningTrack",Rn(t.warning.main,.62));const e=Pn(t.background.default,.8);gr(t.SnackbarContent,"bg",e),gr(t.SnackbarContent,"color",yr((()=>t.getContrastText(e)))),gr(t.SpeedDialAction,"fabHoverBg",Pn(t.background.paper,.15)),gr(t.StepConnector,"border",n("palette-grey-400")),gr(t.StepContent,"border",n("palette-grey-400")),gr(t.Switch,"defaultColor",n("palette-common-white")),gr(t.Switch,"defaultDisabledColor",n("palette-grey-100")),gr(t.Switch,"primaryDisabledColor",Rn(t.primary.main,.62)),gr(t.Switch,"secondaryDisabledColor",Rn(t.secondary.main,.62)),gr(t.Switch,"errorDisabledColor",Rn(t.error.main,.62)),gr(t.Switch,"infoDisabledColor",Rn(t.info.main,.62)),gr(t.Switch,"successDisabledColor",Rn(t.success.main,.62)),gr(t.Switch,"warningDisabledColor",Rn(t.warning.main,.62)),gr(t.TableCell,"border",Rn(Cn(t.divider,1),.88)),gr(t.Tooltip,"bg",Cn(t.grey[700],.92))}if("dark"===t.mode){gr(t.Alert,"errorColor",Rn(t.error.light,.6)),gr(t.Alert,"infoColor",Rn(t.info.light,.6)),gr(t.Alert,"successColor",Rn(t.success.light,.6)),gr(t.Alert,"warningColor",Rn(t.warning.light,.6)),gr(t.Alert,"errorFilledBg",n("palette-error-dark")),gr(t.Alert,"infoFilledBg",n("palette-info-dark")),gr(t.Alert,"successFilledBg",n("palette-success-dark")),gr(t.Alert,"warningFilledBg",n("palette-warning-dark")),gr(t.Alert,"errorFilledColor",yr((()=>t.getContrastText(t.error.dark)))),gr(t.Alert,"infoFilledColor",yr((()=>t.getContrastText(t.info.dark)))),gr(t.Alert,"successFilledColor",yr((()=>t.getContrastText(t.success.dark)))),gr(t.Alert,"warningFilledColor",yr((()=>t.getContrastText(t.warning.dark)))),gr(t.Alert,"errorStandardBg",kn(t.error.light,.9)),gr(t.Alert,"infoStandardBg",kn(t.info.light,.9)),gr(t.Alert,"successStandardBg",kn(t.success.light,.9)),gr(t.Alert,"warningStandardBg",kn(t.warning.light,.9)),gr(t.Alert,"errorIconColor",n("palette-error-main")),gr(t.Alert,"infoIconColor",n("palette-info-main")),gr(t.Alert,"successIconColor",n("palette-success-main")),gr(t.Alert,"warningIconColor",n("palette-warning-main")),gr(t.AppBar,"defaultBg",n("palette-grey-900")),gr(t.AppBar,"darkBg",n("palette-background-paper")),gr(t.AppBar,"darkColor",n("palette-text-primary")),gr(t.Avatar,"defaultBg",n("palette-grey-600")),gr(t.Button,"inheritContainedBg",n("palette-grey-800")),gr(t.Button,"inheritContainedHoverBg",n("palette-grey-700")),gr(t.Chip,"defaultBorder",n("palette-grey-700")),gr(t.Chip,"defaultAvatarColor",n("palette-grey-300")),gr(t.Chip,"defaultIconColor",n("palette-grey-300")),gr(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),gr(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),gr(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),gr(t.LinearProgress,"primaryBg",kn(t.primary.main,.5)),gr(t.LinearProgress,"secondaryBg",kn(t.secondary.main,.5)),gr(t.LinearProgress,"errorBg",kn(t.error.main,.5)),gr(t.LinearProgress,"infoBg",kn(t.info.main,.5)),gr(t.LinearProgress,"successBg",kn(t.success.main,.5)),gr(t.LinearProgress,"warningBg",kn(t.warning.main,.5)),gr(t.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),gr(t.Slider,"primaryTrack",kn(t.primary.main,.5)),gr(t.Slider,"secondaryTrack",kn(t.secondary.main,.5)),gr(t.Slider,"errorTrack",kn(t.error.main,.5)),gr(t.Slider,"infoTrack",kn(t.info.main,.5)),gr(t.Slider,"successTrack",kn(t.success.main,.5)),gr(t.Slider,"warningTrack",kn(t.warning.main,.5));const e=Pn(t.background.default,.98);gr(t.SnackbarContent,"bg",e),gr(t.SnackbarContent,"color",yr((()=>t.getContrastText(e)))),gr(t.SpeedDialAction,"fabHoverBg",Pn(t.background.paper,.15)),gr(t.StepConnector,"border",n("palette-grey-600")),gr(t.StepContent,"border",n("palette-grey-600")),gr(t.Switch,"defaultColor",n("palette-grey-300")),gr(t.Switch,"defaultDisabledColor",n("palette-grey-600")),gr(t.Switch,"primaryDisabledColor",kn(t.primary.main,.55)),gr(t.Switch,"secondaryDisabledColor",kn(t.secondary.main,.55)),gr(t.Switch,"errorDisabledColor",kn(t.error.main,.55)),gr(t.Switch,"infoDisabledColor",kn(t.info.main,.55)),gr(t.Switch,"successDisabledColor",kn(t.success.main,.55)),gr(t.Switch,"warningDisabledColor",kn(t.warning.main,.55)),gr(t.TableCell,"border",kn(Cn(t.divider,1),.68)),gr(t.Tooltip,"bg",Cn(t.grey[700],.92))}br(t.background,"default"),br(t.background,"paper"),br(t.common,"background"),br(t.common,"onBackground"),br(t,"divider"),Object.keys(t).forEach((e=>{const n=t[e];n&&"object"===typeof n&&(n.main&&gr(t[e],"mainChannel",vn(vr(n.main))),n.light&&gr(t[e],"lightChannel",vn(vr(n.light))),n.dark&&gr(t[e],"darkChannel",vn(vr(n.dark))),n.contrastText&&gr(t[e],"contrastTextChannel",vn(vr(n.contrastText))),"text"===e&&(br(t[e],"primary"),br(t[e],"secondary")),"action"===e&&(n.active&&br(t[e],"active"),n.selected&&br(t[e],"selected")))}))}));for(var w=arguments.length,C=new Array(w>1?w-1:0),S=1;S<w;S++)C[S-1]=arguments[S];y=C.reduce(((e,t)=>fn(e,t)),y);const k={prefix:o,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:mr(y)},{vars:M,generateThemeVars:R,generateStyleSheets:P}=Gn(y,k);return y.vars=M,Object.entries(y.colorSchemes[y.defaultColorScheme]).forEach((e=>{let[t,n]=e;y[t]=n})),y.generateThemeVars=R,y.generateStyleSheets=P,y.generateSpacing=function(){return Zt(s.spacing,A(this))},y.getColorSchemeSelector=function(e){return function(t){return"media"===e?`@media (prefers-color-scheme: ${t})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${t}"] &`:"class"===e?`.${t} &`:"data"===e?`[data-${t}] &`:`${e.replace("%s",t)} &`:"&"}}(i),y.spacing=y.generateSpacing(),y.shouldSkipGeneratingVar=a,y.unstable_sxConfig={...ce,...s?.unstable_sxConfig},y.unstable_sx=function(e){return Xt({sx:e,theme:this})},y.toRuntimeSource=ir,y}function Cr(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...!0!==n&&n,palette:Bn({...!0===n?{}:n.palette,mode:t})})}function Sr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{palette:t,cssVariables:n=!1,colorSchemes:r=(t?void 0:{light:!0}),defaultColorScheme:o=t?.mode,...a}=e,i=o||"light",l=r?.[i],s={...r,...t?{[i]:{..."boolean"!==typeof l&&l,palette:t}}:void 0};for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];if(!1===n){if(!("colorSchemes"in e))return sr(e,...c);let n=t;"palette"in e||s[i]&&(!0!==s[i]?n=s[i].palette:"dark"===i&&(n={mode:"dark"}));const r=sr({...e,palette:n},...c);return r.defaultColorScheme=i,r.colorSchemes=s,"light"===r.palette.mode&&(r.colorSchemes.light={...!0!==s.light&&s.light,palette:r.palette},Cr(r,"dark",s.dark)),"dark"===r.palette.mode&&(r.colorSchemes.dark={...!0!==s.dark&&s.dark,palette:r.palette},Cr(r,"light",s.light)),r}return t||"light"in s||"light"!==i||(s.light=!0),wr({...a,colorSchemes:s,defaultColorScheme:i,..."boolean"!==typeof n&&n},...c)}const kr=Sr(),Mr="$$material";const Rr=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},Pr=e=>Rr(e)&&"classes"!==e,Ir=ln({themeId:Mr,defaultTheme:kr,rootShouldForwardProp:Pr});function Ar(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],a=t[o];if(a)if(r){n[o]={...a};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=Ar(r[t],a[t])}}else n[o]=a;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}var Tr=n(579);const $r=e.createContext(void 0);function Er(t){let{props:n,name:r}=t;return function(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?Ar(o.defaultProps,r):o.styleOverrides||o.variants?r:Ar(o,r)}({props:n,name:r,theme:{components:e.useContext($r)}})}function Dr(e){return Er(e)}const Or=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const n=e.useContext(_t);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r},_r=Jt();const Fr=function(){return Or(arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r)};function Lr(){const e=Fr(kr);return e[Mr]||e}const jr=e.createContext(),Nr=e=>e,zr=(()=>{let e=Nr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Nr}}})(),Br={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 Hr(e,t){const n=Br[t];return n?`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui"}-${n}`:`${zr.generate(e)}-${t}`}function Vr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=Hr(e,t,n)})),r}function Wr(e){return Hr("MuiGrid",e)}const Ur=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Gr=Vr("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...Ur.map((e=>`grid-xs-${e}`)),...Ur.map((e=>`grid-sm-${e}`)),...Ur.map((e=>`grid-md-${e}`)),...Ur.map((e=>`grid-lg-${e}`)),...Ur.map((e=>`grid-xl-${e}`))]),Kr=Gr;function Yr(e){let{breakpoints:t,values:n}=e,r="";Object.keys(n).forEach((e=>{""===r&&0!==n[e]&&(r=e)}));const o=Object.keys(t).sort(((e,n)=>t[e]-t[n]));return o.slice(0,o.indexOf(r))}const Zr=Ir("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:u}=n;let c=[];r&&(c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,u,t));const d=[];return u.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...c,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((e=>{let{ownerState:t}=e;return{boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...t.item&&{margin:0},...t.zeroMinWidth&&{minWidth:0},..."wrap"!==t.wrap&&{flexWrap:t.wrap}}}),(function(e){let{theme:t,ownerState:n}=e;return s({theme:t},d({values:n.direction,breakpoints:t.breakpoints.values}),(e=>{const t={flexDirection:e};return e.startsWith("column")&&(t[`& > .${Kr.item}`]={maxWidth:"none"}),t}))}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,rowSpacing:o}=n;let a={};if(r&&0!==o){const e=d({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Yr({breakpoints:t.breakpoints.values,values:e})),a=s({theme:t},e,((e,r)=>{const o=t.spacing(e);return"0px"!==o?{marginTop:`-${o}`,[`& > .${Kr.item}`]:{paddingTop:o}}:n?.includes(r)?{}:{marginTop:0,[`& > .${Kr.item}`]:{paddingTop:0}}}))}return a}),(function(e){let{theme:t,ownerState:n}=e;const{container:r,columnSpacing:o}=n;let a={};if(r&&0!==o){const e=d({values:o,breakpoints:t.breakpoints.values});let n;"object"===typeof e&&(n=Yr({breakpoints:t.breakpoints.values,values:e})),a=s({theme:t},e,((e,r)=>{const o=t.spacing(e);if("0px"!==o){return{width:`calc(100% + ${o})`,marginLeft:`-${o}`,[`& > .${Kr.item}`]:{paddingLeft:o}}}return n?.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Kr.item}`]:{paddingLeft:0}}}))}return a}),(function(e){let t,{theme:n,ownerState:r}=e;return n.breakpoints.keys.reduce(((e,o)=>{let a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=d({values:r.columns,breakpoints:n.breakpoints.values}),l="object"===typeof i?i[o]:i;if(void 0===l||null===l)return e;const s=Math.round(t/l*1e8)/1e6+"%";let u={};if(r.container&&r.item&&0!==r.columnSpacing){const e=n.spacing(r.columnSpacing);if("0px"!==e){const t=`calc(${s} + ${e})`;u={flexBasis:t,maxWidth:t}}}a={flexBasis:s,flexGrow:0,maxWidth:s,...u}}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));const qr=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let u=[];n&&(u=function(e,t){if(!e||e<=0)return[];if("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const c=[];s.forEach((t=>{const n=e[t];n&&c.push(`grid-${t}-${String(n)}`)}));return pe({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...u,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...c]},Wr,t)},Xr=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiGrid"}),{breakpoints:a}=Lr(),i=de(r),{className:l,columns:s,columnSpacing:u,component:c="div",container:d=!1,direction:p="row",item:f=!1,rowSpacing:h,spacing:m=0,wrap:g="wrap",zeroMinWidth:v=!1,...b}=i,y=h||m,x=u||m,w=e.useContext(jr),C=d?s||12:w,S={},k={...b};a.keys.forEach((e=>{null!=b[e]&&(S[e]=b[e],delete k[e])}));const M={...i,columns:C,container:d,direction:p,item:f,rowSpacing:y,columnSpacing:x,wrap:g,zeroMinWidth:v,spacing:m,...S,breakpoints:a.keys},R=qr(M);return(0,Tr.jsx)(jr.Provider,{value:C,children:(0,Tr.jsx)(Zr,{ownerState:M,className:o(R.root,l),as:c,ref:n,...k})})}));const Qr=Xr;var Jr=n(4320),eo=n.n(Jr);const to={textfield:{type:"TextField",map:"TextField"},typography:{type:"Typography",map:"Typography"},datatable:{type:"Table",map:"Table"},datetime:{type:"DateTime",map:"DateTime"},daterangepicker:{type:"DateRangePicker",map:"DateRangePicker"},datetimepicker:{type:"DateTimePicker",map:"DateTimePicker"},timepicker:{type:"TimePicker",map:"TimePicker"},select:{type:"Select",map:"Select"},checkbox:{type:"CheckBox",map:"CheckBox"},switch:{type:"Switch",map:"Switch"},radio:{type:"Radio",map:"Radio"},stepper:{type:"Stepper",map:"Stepper"},bar:{type:"Bar",map:"Bar"},line:{type:"Line",map:"Line"},pie:{type:"Pie",map:"Pie"},mixchart:{type:"MixChart",map:"MixChart"}};n(219);var no=Ot((function(t,n){var r=At([t.styles],void 0,e.useContext(_t)),o=e.useRef();return Et((function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),t.hydrate([i])),o.current=[t,a],function(){t.flush()}}),[n]),Et((function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Lt(n,r.next,!0),t.tags.length){var a=t.tags[t.tags.length-1].nextElementSibling;t.before=a,t.flush()}n.insert("",r,t,!1)}}),[n,r.name]),null}));function ro(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return At(t)}var oo=function(){var e=ro.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function ao(e){const{styles:t,defaultTheme:n={}}=e,r="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,Tr.jsx)(no,{styles:r})}const io=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=Fr(r),a="function"===typeof t?t(n&&o[n]||o):t;return(0,Tr.jsx)(ao,{styles:a})};const lo=function(e){return(0,Tr.jsx)(io,{...e,defaultTheme:kr,themeId:Mr})};const so={theme:void 0};const uo=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(so.theme=r.theme,o=en(e(so)),t=o,n=r.theme),o}},co=uo;const po=function(e){if("string"!==typeof e)throw new Error(cn(7));return e.charAt(0).toUpperCase()+e.slice(1)};function fo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=>{let[,n]=t;return n&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!function(e){return"string"===typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!==typeof e[n])return!1;return!0}(n,e)}}function ho(e){return Hr("MuiTypography",e)}const mo=Vr("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),go={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},vo=de,bo=Ir("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${po(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(co((e=>{let{theme:t}=e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter((e=>{let[t,n]=e;return"inherit"!==t&&n&&"object"===typeof n})).map((e=>{let[t,n]=e;return{props:{variant:t},style:n}})),...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars||t).palette[n].main}}})),...Object.entries(t.palette?.text||{}).filter((e=>{let[,t]=e;return"string"===typeof t})).map((e=>{let[n]=e;return{props:{color:`text${po(n)}`},style:{color:(t.vars||t).palette.text[n]}}})),{props:e=>{let{ownerState:t}=e;return"inherit"!==t.align},style:{textAlign:"var(--Typography-textAlign)"}},{props:e=>{let{ownerState:t}=e;return t.noWrap},style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:e=>{let{ownerState:t}=e;return t.gutterBottom},style:{marginBottom:"0.35em"}},{props:e=>{let{ownerState:t}=e;return t.paragraph},style:{marginBottom:16}}]}}))),yo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xo=e.forwardRef((function(e,t){const{color:n,...r}=Dr({props:e,name:"MuiTypography"}),a=vo({...r,...!go[n]&&{color:n}}),{align:i="inherit",className:l,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:f=yo,...h}=a,m={...a,align:i,color:n,className:l,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:f},g=s||(d?"p":f[p]||yo[p])||"span",v=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return pe({root:["root",a,"inherit"!==e.align&&`align${po(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ho,i)})(m);return(0,Tr.jsx)(bo,{as:g,ref:t,className:o(v.root,l),...h,ownerState:m,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...h.style}})})),wo=xo;const Co=Vr("MuiBox",["root"]),So=Sr(),ko=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:n,defaultTheme:r,defaultClassName:a="MuiBox-root",generateClassName:i}=t,l=Wt("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xt);return e.forwardRef((function(e,t){const s=Fr(r),{className:u,component:c="div",...d}=de(e);return(0,Tr.jsx)(l,{as:c,ref:t,className:o(u,i?i(a):a),theme:n&&s[n]||s,...d})}))}({themeId:Mr,defaultTheme:So,defaultClassName:Co.root,generateClassName:zr.generate}),Mo=ko;function Ro(e){return Hr("MuiIcon",e)}Vr("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Po=Ir("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${po(n.color)}`],t[`fontSize${po(n.fontSize)}`]]}})(co((e=>{let{theme:t}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:t.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:t.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(t.vars||t).palette.action.active}},{props:{color:"disabled"},style:{color:(t.vars||t).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars||t).palette[n].main}}}))]}}))),Io=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:i="inherit",component:l="span",fontSize:s="medium",...u}=n,c={...n,baseClassName:r,color:i,component:l,fontSize:s},d=(e=>{const{color:t,fontSize:n,classes:r}=e;return pe({root:["root","inherit"!==t&&`color${po(t)}`,`fontSize${po(n)}`]},Ro,r)})(c);return(0,Tr.jsx)(Po,{as:l,className:o(r,"notranslate",d.root,a),ownerState:c,"aria-hidden":!0,ref:t,...u})}));Io&&(Io.muiName="Icon");const Ao=Io;function To(e){let{attributes:t}=e;const{MuiAttributes:n={},text:r="",MuiIcon:o={},value:a="",MuiBox:i={}}=t;return o&&o.icon?(0,Tr.jsxs)(Mo,{sx:{display:"flex",width:"100%"},...i,children:[(0,Tr.jsx)(Ao,{...o.MuiIconAttributes,children:o.icon},o.icon),(0,Tr.jsx)(wo,{...n,children:r||a})]}):(0,Tr.jsx)(wo,{...n,children:r||a})}To.defaultProps={attributes:{}};var $o=n(9328),Eo=n.n($o);let Do=0;const Oo={...t}.useId;function _o(t){if(void 0!==Oo){const e=Oo();return t??e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Do+=1,r(`mui-${Do}`))}),[n]),o}(t)}function Fo(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Lo(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>n.every((e=>null==e))?null:e=>{n.forEach((t=>{Fo(t,e)}))}),n)}function jo(e){return e&&e.ownerDocument||document}function No(e){return jo(e).defaultView||window}const zo="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;function Bo(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}function Ho(e){return parseInt(e,10)||0}const Vo={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const Wo=e.forwardRef((function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:l,...s}=t,{current:u}=e.useRef(null!=l),c=e.useRef(null),d=Lo(n,c),p=e.useRef(null),f=e.useRef(null),h=e.useCallback((()=>{const e=c.current,n=No(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const r=f.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const i=n.boxSizing,l=Ho(n.paddingBottom)+Ho(n.paddingTop),s=Ho(n.borderBottomWidth)+Ho(n.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let p=u;a&&(p=Math.max(Number(a)*d,p)),o&&(p=Math.min(Number(o)*d,p)),p=Math.max(p,d);return{outerHeightStyle:p+("border-box"===i?l+s:0),overflowing:Math.abs(p-u)<=1}}),[o,a,t.placeholder]),m=e.useCallback((()=>{const e=h();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=c.current;p.current!==n&&(p.current=n,r.style.height=`${n}px`),r.style.overflow=e.overflowing?"hidden":""}),[h]);zo((()=>{const e=()=>{m()};let t;const n=Bo(e),r=c.current,o=No(r);let a;return o.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(a=new ResizeObserver(e),a.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),a&&a.disconnect()}}),[h,m]),zo((()=>{m()}));return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("textarea",{value:l,onChange:e=>{u||m(),r&&r(e)},ref:d,rows:a,style:i,...s}),(0,Tr.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Vo,...i,paddingTop:0,paddingBottom:0}})]})})),Uo=Wo;const Go=function(e){return"string"===typeof e};function Ko(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const Yo=e.createContext(void 0);function Zo(){return e.useContext(Yo)}const qo=Lo,Xo=zo;function Qo(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Qo(e.value)&&""!==e.value||t&&Qo(e.defaultValue)&&""!==e.defaultValue)}function ea(e){return Hr("MuiInputBase",e)}const ta=Vr("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var na;const ra=(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,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${po(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},oa=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},aa=Ir("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ra})(co((e=>{let{theme:t}=e;return{...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ta.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"4px 0 5px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"100%"}}]}}))),ia=Ir("input",{name:"MuiInputBase",slot:"Input",overridesResolver:oa})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode,r={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},o={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ta.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ta.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInjectingGlobalStyles},style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}}))),la=function(e){return function(t){return(0,Tr.jsx)(lo,{styles:"function"===typeof e?n=>e({theme:n,...t}):e})}}({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),sa=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:i,autoFocus:l,className:s,color:u,components:c={},componentsProps:d={},defaultValue:p,disabled:f,disableInjectingGlobalStyles:h,endAdornment:m,error:g,fullWidth:v=!1,id:b,inputComponent:y="input",inputProps:x={},inputRef:w,margin:C,maxRows:S,minRows:k,multiline:M=!1,name:R,onBlur:P,onChange:I,onClick:A,onFocus:T,onKeyDown:$,onKeyUp:E,placeholder:D,readOnly:O,renderSuffix:_,rows:F,size:L,slotProps:j={},slots:N={},startAdornment:z,type:B="text",value:H,...V}=r,W=null!=x.value?x.value:H,{current:U}=e.useRef(null!=W),G=e.useRef(),K=e.useCallback((e=>{0}),[]),Y=qo(G,w,x.ref,K),[Z,q]=e.useState(!1),X=Zo();const Q=Ko({props:r,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:Z,e.useEffect((()=>{!X&&f&&Z&&(q(!1),P&&P())}),[X,f,Z,P]);const J=X&&X.onFilled,ee=X&&X.onEmpty,te=e.useCallback((e=>{Jo(e)?J&&J():ee&&ee()}),[J,ee]);Xo((()=>{U&&te({value:W})}),[W,te,U]);e.useEffect((()=>{te(G.current)}),[]);let ne=y,re=x;M&&"input"===ne&&(re=F?{type:void 0,minRows:F,maxRows:F,...re}:{type:void 0,maxRows:S,minRows:k,...re},ne=Uo);e.useEffect((()=>{X&&X.setAdornedStart(Boolean(z))}),[X,z]);const oe={...r,color:Q.color||"primary",disabled:Q.disabled,endAdornment:m,error:Q.error,focused:Q.focused,formControl:X,fullWidth:v,hiddenLabel:Q.hiddenLabel,multiline:M,size:Q.size,startAdornment:z,type:B},ae=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return pe({root:["root",`color${po(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${po(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},ea,t)})(oe),ie=N.root||c.Root||aa,le=j.root||d.root||{},se=N.input||c.Input||ia;return re={...re,...j.input??d.input},(0,Tr.jsxs)(e.Fragment,{children:[!h&&"function"===typeof la&&(na||(na=(0,Tr.jsx)(la,{}))),(0,Tr.jsxs)(ie,{...le,ref:n,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),A&&A(e)},...V,...!Go(ie)&&{ownerState:{...oe,...le.ownerState}},className:o(ae.root,le.className,s,O&&"MuiInputBase-readOnly"),children:[z,(0,Tr.jsx)(Yo.Provider,{value:null,children:(0,Tr.jsx)(se,{"aria-invalid":Q.error,"aria-describedby":a,autoComplete:i,autoFocus:l,defaultValue:p,disabled:Q.disabled,id:b,onAnimationStart:e=>{te("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:R,placeholder:D,readOnly:O,required:Q.required,rows:F,value:W,onKeyDown:$,onKeyUp:E,type:B,...re,...!Go(se)&&{as:ne,ownerState:{...oe,...re.ownerState}},ref:Y,className:o(ae.input,re.className,O&&"MuiInputBase-readOnly"),onBlur:e=>{P&&P(e),x.onBlur&&x.onBlur(e),X&&X.onBlur?X.onBlur(e):q(!1)},onChange:function(e){if(!U){const t=e.target||G.current;if(null==t)throw new Error(cn(1));te({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];x.onChange&&x.onChange(e,...n),I&&I(e,...n)},onFocus:e=>{T&&T(e),x.onFocus&&x.onFocus(e),X&&X.onFocus?X.onFocus(e):q(!0)}})}),m,_?_({...Q,startAdornment:z}):null]})]})})),ua=sa;function ca(e){return Hr("MuiInput",e)}const da={...ta,...Vr("MuiInput",["root","underline","input"])},pa=Ir(aa,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ra(e,t),!n.disableUnderline&&t.underline]}})(co((e=>{let{theme:t}=e;let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:e=>{let{ownerState:t}=e;return t.formControl},style:{"label + &":{marginTop:16}}},{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${da.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${da.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${da.disabled}, .${da.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${da.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n].main}`}}}}))]}}))),fa=Ir(ia,{name:"MuiInput",slot:"Input",overridesResolver:oa})({}),ha=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,inputComponent:l="input",multiline:s=!1,slotProps:u,slots:c={},type:d="text",...p}=n,f=(e=>{const{classes:t,disableUnderline:n}=e,r=pe({root:["root",!n&&"underline"],input:["input"]},ca,t);return{...t,...r}})(n),h={root:{ownerState:{disableUnderline:r}}},m=u??a?fn(u??a,h):h,g=c.root??o.Root??pa,v=c.input??o.Input??fa;return(0,Tr.jsx)(ua,{slots:{root:g,input:v},slotProps:m,fullWidth:i,inputComponent:l,multiline:s,ref:t,type:d,...p,classes:f})}));ha&&(ha.muiName="Input");const ma=ha;function ga(e){return Hr("MuiFilledInput",e)}const va={...ta,...Vr("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},ba=Ir(aa,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ra(e,t),!n.disableUnderline&&t.underline]}})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode,r=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o}},[`&.${va.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:o},[`&.${va.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:i},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableUnderline},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${va.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${va.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${va.disabled}, .${va.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${va.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{disableUnderline:!1,color:n},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[n]?.main}`}}}})),{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:12}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:12}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"25px 12px 8px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{paddingTop:21,paddingBottom:4}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.multiline&&t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}}]}}))),ya=Ir(ia,{name:"MuiFilledInput",slot:"Input",overridesResolver:oa})(co((e=>{let{theme:t}=e;return{paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.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:e=>{let{ownerState:t}=e;return t.hiddenLabel},style:{paddingTop:16,paddingBottom:17}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}},{props:e=>{let{ownerState:t}=e;return t.hiddenLabel&&"small"===t.size},style:{paddingTop:8,paddingBottom:9}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}}))),xa=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:o={},componentsProps:a,fullWidth:i=!1,hiddenLabel:l,inputComponent:s="input",multiline:u=!1,slotProps:c,slots:d={},type:p="text",...f}=n,h={...n,disableUnderline:r,fullWidth:i,inputComponent:s,multiline:u,type:p},m=(e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,s=pe({root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd","small"===a&&`size${po(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},ga,t);return{...t,...s}})(n),g={root:{ownerState:h},input:{ownerState:h}},v=c??a?fn(g,c??a):g,b=d.root??o.Root??ba,y=d.input??o.Input??ya;return(0,Tr.jsx)(ua,{slots:{root:b,input:y},componentsProps:v,fullWidth:i,inputComponent:s,multiline:u,ref:t,type:p,...f,classes:m})}));xa&&(xa.muiName="Input");const wa=xa;var Ca;const Sa=Ir("fieldset",{shouldForwardProp:Pr})({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%"}),ka=Ir("legend",{shouldForwardProp:Pr})(co((e=>{let{theme:t}=e;return{float:"unset",width:"auto",overflow:"hidden",variants:[{props:e=>{let{ownerState:t}=e;return!t.withLabel},style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:e=>{let{ownerState:t}=e;return t.withLabel},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:e=>{let{ownerState:t}=e;return t.withLabel&&t.notched},style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]}})));function Ma(e){return Hr("MuiOutlinedInput",e)}const Ra={...ta,...Vr("MuiOutlinedInput",["root","notchedOutline","input"])},Pa=Ir(aa,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ra})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Ra.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ra.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${Ra.focused} .${Ra.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}}})),{props:{},style:{[`&.${Ra.error} .${Ra.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Ra.disabled} .${Ra.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:14}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:14}},{props:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:"16.5px 14px"}},{props:e=>{let{ownerState:t,size:n}=e;return t.multiline&&"small"===n},style:{padding:"8.5px 14px"}}]}}))),Ia=Ir((function(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=null!=o&&""!==o,s={...e,notched:a,withLabel:l};return(0,Tr.jsx)(Sa,{"aria-hidden":!0,className:r,ownerState:s,...i,children:(0,Tr.jsx)(ka,{ownerState:s,children:l?(0,Tr.jsx)("span",{children:o}):Ca||(Ca=(0,Tr.jsx)("span",{className:"notranslate",children:"\u200b"}))})})}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}}))),Aa=Ir(ia,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:oa})(co((e=>{let{theme:t}=e;return{padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.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:e=>{let{ownerState:t}=e;return t.multiline},style:{padding:0}},{props:e=>{let{ownerState:t}=e;return t.startAdornment},style:{paddingLeft:0}},{props:e=>{let{ownerState:t}=e;return t.endAdornment},style:{paddingRight:0}}]}}))),Ta=e.forwardRef((function(t,n){var r;const o=Dr({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:s,multiline:u=!1,notched:c,slots:d={},type:p="text",...f}=o,h=(e=>{const{classes:t}=e,n=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ma,t);return{...t,...n}})(o),m=Zo(),g=Ko({props:o,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),v={...o,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:i,hiddenLabel:g.hiddenLabel,multiline:u,size:g.size,type:p},b=d.root??a.Root??Pa,y=d.input??a.Input??Aa;return(0,Tr.jsx)(ua,{slots:{root:b,input:y},renderSuffix:t=>(0,Tr.jsx)(Ia,{ownerState:v,className:h.notchedOutline,label:null!=s&&""!==s&&g.required?r||(r=(0,Tr.jsxs)(e.Fragment,{children:[s,"\u2009","*"]})):s,notched:"undefined"!==typeof c?c:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:i,inputComponent:l,multiline:u,ref:n,type:p,...f,classes:{...h,notchedOutline:null}})}));Ta&&(Ta.muiName="Input");const $a=Ta;function Ea(e){return Hr("MuiFormLabel",e)}const Da=Vr("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Oa=Ir("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return{...t.root,..."secondary"===n.color&&t.colorSecondary,...n.filled&&t.filled}}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${Da.focused}`]:{color:(t.vars||t).palette[n].main}}}})),{props:{},style:{[`&.${Da.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Da.error}`]:{color:(t.vars||t).palette.error.main}}}]}}))),_a=Ir("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(co((e=>{let{theme:t}=e;return{[`&.${Da.error}`]:{color:(t.vars||t).palette.error.main}}}))),Fa=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiFormLabel"}),{children:r,className:a,color:i,component:l="label",disabled:s,error:u,filled:c,focused:d,required:p,...f}=n,h=Ko({props:n,muiFormControl:Zo(),states:["color","required","focused","disabled","error","filled"]}),m={...n,color:h.color||"primary",component:l,disabled:h.disabled,error:h.error,filled:h.filled,focused:h.focused,required:h.required},g=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e;return pe({root:["root",`color${po(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]},Ea,t)})(m);return(0,Tr.jsxs)(Oa,{as:l,ownerState:m,className:o(g.root,a),ref:t,...f,children:[r,h.required&&(0,Tr.jsxs)(_a,{ownerState:m,"aria-hidden":!0,className:g.asterisk,children:["\u2009","*"]})]})})),La=Fa;function ja(e){return Hr("MuiInputLabel",e)}Vr("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=Ir(La,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Da.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(co((e=>{let{theme:t}=e;return{display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:e=>{let{ownerState:t}=e;return 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:e=>{let{ownerState:t}=e;return t.shrink},style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:e=>{let{ownerState:t}=e;return!t.disableAnimation},style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.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:e=>{let{variant:t,ownerState:n}=e;return"filled"===t&&n.shrink},style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:e=>{let{variant:t,ownerState:n,size:r}=e;return"filled"===t&&n.shrink&&"small"===r},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:e=>{let{variant:t,ownerState:n}=e;return"outlined"===t&&n.shrink},style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}}))),za=e.forwardRef((function(e,t){const n=Dr({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,margin:a,shrink:i,variant:l,className:s,...u}=n,c=Zo();let d=i;"undefined"===typeof d&&c&&(d=c.filled||c.focused||c.adornedStart);const p=Ko({props:n,muiFormControl:c,states:["size","variant","required","focused"]}),f={...n,disableAnimation:r,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},h=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,s=pe({root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&"normal"!==r&&`size${po(r)}`,i],asterisk:[l&&"asterisk"]},ja,t);return{...t,...s}})(f);return(0,Tr.jsx)(Na,{"data-shrink":d,ref:t,className:o(h.root,s),...u,ownerState:f,classes:h})})),Ba=za;const Ha=function(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName??t.type?._payload?.value?.muiName)};function Va(e){return Hr("MuiFormControl",e)}Vr("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Wa=Ir("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return{...t.root,...t[`margin${po(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%"}}]}),Ua=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiFormControl"}),{children:a,className:i,color:l="primary",component:s="div",disabled:u=!1,error:c=!1,focused:d,fullWidth:p=!1,hiddenLabel:f=!1,margin:h="none",required:m=!1,size:g="medium",variant:v="outlined",...b}=r,y={...r,color:l,component:s,disabled:u,error:c,fullWidth:p,hiddenLabel:f,margin:h,required:m,size:g,variant:v},x=(e=>{const{classes:t,margin:n,fullWidth:r}=e;return pe({root:["root","none"!==n&&`margin${po(n)}`,r&&"fullWidth"]},Va,t)})(y),[w,C]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{if(!Ha(e,["Input","Select"]))return;const n=Ha(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)})),t})),[S,k]=e.useState((()=>{let t=!1;return a&&e.Children.forEach(a,(e=>{Ha(e,["Input","Select"])&&(Jo(e.props,!0)||Jo(e.props.inputProps,!0))&&(t=!0)})),t})),[M,R]=e.useState(!1);u&&M&&R(!1);const P=void 0===d||u?M:d;let I;e.useRef(!1);const A=e.useMemo((()=>({adornedStart:w,setAdornedStart:C,color:l,disabled:u,error:c,filled:S,focused:P,fullWidth:p,hiddenLabel:f,size:g,onBlur:()=>{R(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{R(!0)},registerEffect:I,required:m,variant:v})),[w,l,u,c,S,P,p,f,I,m,g,v]);return(0,Tr.jsx)(Yo.Provider,{value:A,children:(0,Tr.jsx)(Wa,{as:s,ownerState:y,className:o(x.root,i),ref:n,...b,children:a})})})),Ga=Ua;function Ka(e){return Hr("MuiFormHelperText",e)}const Ya=Vr("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Za;const qa=Ir("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${po(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ya.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Ya.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:e=>{let{ownerState:t}=e;return t.contained},style:{marginLeft:14,marginRight:14}}]}}))),Xa=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiFormHelperText"}),{children:r,className:a,component:i="p",disabled:l,error:s,filled:u,focused:c,margin:d,required:p,variant:f,...h}=n,m=Ko({props:n,muiFormControl:Zo(),states:["variant","size","disabled","error","filled","focused","required"]}),g={...n,component:i,contained:"filled"===m.variant||"outlined"===m.variant,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete g.ownerState;const v=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:s}=e;return pe({root:["root",o&&"disabled",a&&"error",r&&`size${po(r)}`,n&&"contained",l&&"focused",i&&"filled",s&&"required"]},Ka,t)})(g);return(0,Tr.jsx)(qa,{as:i,className:o(v.root,a),ref:t,...h,ownerState:g,children:" "===r?Za||(Za=(0,Tr.jsx)("span",{className:"notranslate",children:"\u200b"})):r})})),Qa=Xa;function Ja(t){return parseInt(e.version,10)>=19?t?.props?.ref||null:t?.ref||null}n(2086);const ei=jo,ti=e.createContext();const ni=()=>e.useContext(ti)??!1;const ri=function(e){return"string"===typeof e};const oi=function(e,t,n){return void 0===e||ri(e)?t:{...t,ownerState:{...t.ownerState,...n}}};const ai=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const ii=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const li=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const e=o(n?.className,i,a?.className,r?.className),t={...n?.style,...a?.style,...r?.style},l={...n,...a,...r};return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=ai({...a,...r}),s=ii(r),u=ii(a),c=t(l),d=o(c?.className,n?.className,i,a?.className,r?.className),p={...c?.style,...n?.style,...a?.style,...r?.style},f={...c,...n,...u,...s};return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}};const si=function(e,t,n){return"function"===typeof e?e(t,n):e};const ui=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:si(n,r),{props:l,internalRef:s}=li({...a,externalSlotProps:i}),u=Lo(s,i?.ref,e.additionalProps?.ref);return oi(t,{...l,ref:u},r)};const ci=e.createContext({});function di(e){return Hr("MuiList",e)}Vr("MuiList",["root","padding","dense","subheader"]);const pi=Ir("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:e=>{let{ownerState:t}=e;return!t.disablePadding},style:{paddingTop:8,paddingBottom:8}},{props:e=>{let{ownerState:t}=e;return t.subheader},style:{paddingTop:0}}]}),fi=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiList"}),{children:a,className:i,component:l="ul",dense:s=!1,disablePadding:u=!1,subheader:c,...d}=r,p=e.useMemo((()=>({dense:s})),[s]),f={...r,component:l,dense:s,disablePadding:u},h=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return pe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},di,t)})(f);return(0,Tr.jsx)(ci.Provider,{value:p,children:(0,Tr.jsxs)(pi,{as:l,className:o(h.root,i),ref:n,ownerState:f,...d,children:[c,a]})})})),hi=fi;function mi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const gi=mi,vi=No;function bi(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function yi(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xi(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join("")))}function wi(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&xi(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Ci=e.forwardRef((function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xo((()=>{o&&f.current.focus()}),[o]),e.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const t=`${gi(vi(e))}px`;f.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,f.current.style.width=`calc(100% + ${t})`}return f.current}})),[]);const m=qo(f,n);let g=-1;e.Children.forEach(i,((t,n)=>{e.isValidElement(t)?(t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=i.length&&(g=-1))):g===n&&(g+=1,g>=i.length&&(g=-1))}));const v=e.Children.map(i,((t,n)=>{if(n===g){const n={};return a&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return(0,Tr.jsx)(hi,{role:"menu",ref:m,className:l,onKeyDown:e=>{const t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=ei(t).activeElement;if("ArrowDown"===n)e.preventDefault(),wi(t,r,u,s,bi);else if("ArrowUp"===n)e.preventDefault(),wi(t,r,u,s,yi);else if("Home"===n)e.preventDefault(),wi(t,null,u,s,bi);else if("End"===n)e.preventDefault(),wi(t,null,u,s,yi);else if(1===n.length){const o=h.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const l=r&&!o.repeating&&xi(r,o);o.previousKeyMatched&&(l||wi(t,r,!1,s,bi,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1,...p,children:v})})),Si=Bo,ki={};function Mi(t,n){const r=e.useRef(ki);return r.current===ki&&(r.current=t(n)),r}const Ri=[];class Pi{static create(){return new Pi}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Ii(){const t=Mi(Pi.create).current;var n;return n=t.disposeEffect,e.useEffect(n,Ri),t}function Ai(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ti(e,t)}function $i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ti(e,t)}var Ei=n(7950);const Di=!1,Oi=e.createContext(null);var _i=function(e){return e.scrollTop},Fi="unmounted",Li="exited",ji="entering",Ni="entered",zi="exiting",Bi=function(t){function n(e,n){var r;r=t.call(this,e,n)||this;var o,a=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=Li,r.appearStatus=ji):o=Ni:o=e.unmountOnExit||e.mountOnEnter?Fi:Li,r.state={status:o},r.nextCallback=null,r}$i(n,t),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Fi?{status:Li}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ji&&n!==Ni&&(t=ji):n!==ji&&n!==Ni||(t=zi)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===ji){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this);n&&_i(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Li&&this.setState({status:Fi})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ei.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Di?this.safeSetState({status:Ni},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:ji},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ni},(function(){t.props.onEntered(a,i)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ei.findDOMNode(this);t&&!Di?(this.props.onExit(r),this.safeSetState({status:zi},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Li},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Li},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ei.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var t=this.state.status;if(t===Fi)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,Ai(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.createElement(Oi.Provider,{value:null},"function"===typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},n}(e.Component);function Hi(){}Bi.contextType=Oi,Bi.propTypes={},Bi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hi,onEntering:Hi,onEntered:Hi,onExit:Hi,onExiting:Hi,onExited:Hi},Bi.UNMOUNTED=Fi,Bi.EXITED=Li,Bi.ENTERING=ji,Bi.ENTERED=Ni,Bi.EXITING=zi;const Vi=Bi,Wi=e=>e.scrollTop;function Ui(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"===typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"===typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Gi(e){return`scale(${e}, ${e**2})`}const Ki={entering:{opacity:1,transform:Gi(1)},entered:{opacity:1,transform:"none"}},Yi="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zi=e.forwardRef((function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Vi,...v}=t,b=Ii(),y=e.useRef(),x=Lr(),w=e.useRef(null),C=qo(w,Ja(a),n),S=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},k=S(c),M=S(((e,t)=>{Wi(e);const{duration:n,delay:r,easing:o}=Ui({style:h,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:r}),x.transitions.create("transform",{duration:Yi?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),R=S(u),P=S(f),I=S((e=>{const{duration:t,delay:n,easing:r}=Ui({style:h,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Yi?o:.666*o,delay:Yi?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Gi(.75),d&&d(e)})),A=S(p);return(0,Tr.jsx)(g,{appear:o,in:l,nodeRef:w,onEnter:M,onEntered:R,onEntering:k,onExit:I,onExited:A,onExiting:P,addEndListener:e=>{"auto"===m&&b.start(y.current||0,e),r&&r(w.current,e)},timeout:"auto"===m?null:m,...v,children:(t,n)=>e.cloneElement(a,{style:{opacity:0,transform:Gi(.75),visibility:"exited"!==t||l?void 0:"hidden",...Ki[t],...h,...a.props.style},ref:C,...n})})}));Zi&&(Zi.muiSupportAuto=!0);const qi=Zi,Xi=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Qi(e){const t=[],n=[];return Array.from(e.querySelectorAll(Xi)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Ji(){return!0}const el=function(t){const{children:n,disableAutoFocus:r=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:i=Qi,isEnabled:l=Ji,open:s}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=Lo(Ja(n),m),v=e.useRef(null);e.useEffect((()=>{s&&m.current&&(h.current=!r)}),[r,s]),e.useEffect((()=>{if(!s||!m.current)return;const e=jo(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{a||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!m.current)return;const e=jo(m.current),t=t=>{v.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(m.current)),n.length>0){const e=Boolean(v.current?.shiftKey&&"Tab"===v.current?.key),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[r,o,a,l,s,i]);const b=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),(0,Tr.jsx)("div",{tabIndex:s?0:-1,onFocus:b,ref:d,"data-testid":"sentinelEnd"})]})};const tl=e.forwardRef((function(t,n){const{children:r,container:o,disablePortal:a=!1}=t,[i,l]=e.useState(null),s=Lo(e.isValidElement(r)?Ja(r):null,n);if(zo((()=>{a||l(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,a]),zo((()=>{if(i&&!a)return Fo(n,i),()=>{Fo(n,null)}}),[n,i,a]),a){if(e.isValidElement(r)){const t={ref:s};return e.cloneElement(r,t)}return(0,Tr.jsx)(e.Fragment,{children:r})}return(0,Tr.jsx)(e.Fragment,{children:i?Ei.createPortal(r,i):i})}));function nl(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...p}=a,f=c[e]||r,h=si(d[e],o),{props:{component:m,...g},internalRef:v}=li({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),b=Lo(v,h?.ref,t.ref),y=i?i(g):{},x={...o,...y},w="root"===e?m||u:m,C=oi(f,{..."root"===e&&!u&&!c[e]&&l,..."root"!==e&&!c[e]&&l,...g,...w&&{as:w},ref:b},x);return Object.keys(y).forEach((e=>{delete C[e]})),[f,C]}const rl={entering:{opacity:1},entered:{opacity:1}},ol=e.forwardRef((function(t,n){const r=Lr(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=o,TransitionComponent:b=Vi,...y}=t,x=e.useRef(null),w=qo(x,Ja(l),n),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=C(p),k=C(((e,t)=>{Wi(e);const n=Ui({style:g,timeout:v,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)})),M=C(d),R=C(m),P=C((e=>{const t=Ui({style:g,timeout:v,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),f&&f(e)})),I=C(h);return(0,Tr.jsx)(b,{appear:i,in:u,nodeRef:x,onEnter:k,onEntered:M,onEntering:S,onExit:P,onExited:I,onExiting:R,addEndListener:e=>{a&&a(x.current,e)},timeout:v,...y,children:(t,n)=>e.cloneElement(l,{style:{opacity:0,visibility:"exited"!==t||u?void 0:"hidden",...rl[t],...g,...l.props.style},ref:w,...n})})})),al=ol;function il(e){return Hr("MuiBackdrop",e)}Vr("MuiBackdrop",["root","invisible"]);const ll=Ir("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"}}]}),sl=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiBackdrop"}),{children:r,className:a,component:i="div",invisible:l=!1,open:s,components:u={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:h,...m}=n,g={...n,component:i,invisible:l},v=(e=>{const{classes:t,invisible:n}=e;return pe({root:["root",n&&"invisible"]},il,t)})(g),b={slots:{transition:f,root:u.Root,...p},slotProps:{...c,...d}},[y,x]=nl("root",{elementType:ll,externalForwardedProps:b,className:o(v.root,a),ownerState:g}),[w,C]=nl("transition",{elementType:al,externalForwardedProps:b,ownerState:g}),S=(e=>{const{ownerState:t,...n}=e;return n})(C);return(0,Tr.jsx)(w,{in:s,timeout:h,...m,...S,children:(0,Tr.jsx)(y,{"aria-hidden":!0,...x,classes:v,ref:t,children:r})})})),ul=sl;const cl=function(t){const n=e.useRef(t);return zo((()=>{n.current=t})),e.useRef((function(){return(0,n.current)(...arguments)})).current};function dl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))}function pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fl(e){return parseInt(No(e).getComputedStyle(e).paddingRight,10)||0}function hl(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=!a.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&pl(e,o)}))}function ml(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function gl(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=jo(e);return t.body===e?No(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=mi(No(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${fl(r)+e}px`;const t=jo(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fl(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=jo(r).body;else{const t=r.parentElement,n=No(r);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const vl=new class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pl(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);hl(t,e.mount,e.modalRef,r,!0);const o=ml(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ml(this.containers,(t=>t.modals.includes(e))),r=this.containers[n];r.restore||(r.restore=gl(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=ml(this.containers,(t=>t.modals.includes(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&pl(e.modalRef,t),hl(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&pl(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const bl=function(t){const{container:n,disableEscapeKeyDown:r=!1,disableScrollLock:o=!1,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=t,p=e.useRef({}),f=e.useRef(null),h=e.useRef(null),m=Lo(h,d),[g,v]=e.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==t["aria-hidden"]&&!1!==t["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{vl.mount(x(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=cl((()=>{const e=function(e){return"function"===typeof e?e():e}(n)||jo(f.current).body;vl.add(x(),e),h.current&&w()})),S=()=>vl.isTopModal(x()),k=cl((e=>{f.current=e,e&&(c&&S()?w():h.current&&pl(h.current,y))})),M=e.useCallback((()=>{vl.remove(x(),y)}),[y]);e.useEffect((()=>()=>{M()}),[M]),e.useEffect((()=>{c?C():b&&a||M()}),[c,M,b,a,C]);const R=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&S()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=ai(t);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...e};return{role:"presentation",...r,onKeyDown:R(r),ref:m}},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":!0,...e,onClick:P(e),open:c}},getTransitionProps:()=>({onEnter:dl((()=>{v(!1),i&&i()}),s?.props.onEnter),onExited:dl((()=>{v(!0),l&&l(),a&&M()}),s?.props.onExited)}),rootRef:m,portalRef:k,isTopModal:S,exited:g,hasTransition:b}};function yl(e){return Hr("MuiModal",e)}Vr("MuiModal",["root","hidden","backdrop"]);const xl=Ir("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(co((e=>{let{theme:t}=e;return{position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:e=>{let{ownerState:t}=e;return!t.open&&t.exited},style:{visibility:"hidden"}}]}}))),wl=Ir(ul,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cl=e.forwardRef((function(t,n){const r=Dr({name:"MuiModal",props:t}),{BackdropComponent:a=wl,BackdropProps:i,classes:l,className:s,closeAfterTransition:u=!1,children:c,container:d,component:p,components:f={},componentsProps:h={},disableAutoFocus:m=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:v=!1,disablePortal:b=!1,disableRestoreFocus:y=!1,disableScrollLock:x=!1,hideBackdrop:w=!1,keepMounted:C=!1,onBackdropClick:S,onClose:k,onTransitionEnter:M,onTransitionExited:R,open:P,slotProps:I={},slots:A={},theme:T,...$}=r,E={...r,closeAfterTransition:u,disableAutoFocus:m,disableEnforceFocus:g,disableEscapeKeyDown:v,disablePortal:b,disableRestoreFocus:y,disableScrollLock:x,hideBackdrop:w,keepMounted:C},{getRootProps:D,getBackdropProps:O,getTransitionProps:_,portalRef:F,isTopModal:L,exited:j,hasTransition:N}=bl({...E,rootRef:n}),z={...E,exited:j},B=(e=>{const{open:t,exited:n,classes:r}=e;return pe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},yl,r)})(z),H={};if(void 0===c.props.tabIndex&&(H.tabIndex="-1"),N){const{onEnter:e,onExited:t}=_();H.onEnter=e,H.onExited=t}const V={...$,slots:{root:f.Root,backdrop:f.Backdrop,...A},slotProps:{...h,...I}},[W,U]=nl("root",{elementType:xl,externalForwardedProps:V,getSlotProps:D,additionalProps:{ref:n,as:p},ownerState:z,className:o(s,B?.root,!z.open&&z.exited&&B?.hidden)}),[G,K]=nl("backdrop",{elementType:a,externalForwardedProps:V,additionalProps:i,getSlotProps:e=>O({...e,onClick:t=>{S&&S(t),e?.onClick&&e.onClick(t)}}),className:o(i?.className,B?.backdrop),ownerState:z}),Y=qo(i?.ref,K.ref);return C||P||N&&!j?(0,Tr.jsx)(tl,{ref:F,container:d,disablePortal:b,children:(0,Tr.jsxs)(W,{...U,children:[!w&&a?(0,Tr.jsx)(G,{...K,ref:Y}):null,(0,Tr.jsx)(el,{disableEnforceFocus:g,disableAutoFocus:m,disableRestoreFocus:y,isEnabled:L,open:P,children:e.cloneElement(c,H)})]})}):null})),Sl=Cl;function kl(e){return Hr("MuiPaper",e)}Vr("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 Ml=Ir("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(co((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:e=>{let{ownerState:t}=e;return!t.square},style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}}))),Rl=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiPaper"}),r=Lr(),{className:a,component:i="div",elevation:l=1,square:s=!1,variant:u="elevation",...c}=n,d={...n,component:i,elevation:l,square:s,variant:u},p=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return pe({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},kl,o)})(d);return(0,Tr.jsx)(Ml,{as:i,ownerState:d,className:o(p.root,a),ref:t,...c,style:{..."elevation"===u&&{"--Paper-shadow":(r.vars||r).shadows[l],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[l]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${wn("#fff",ur(l))}, ${wn("#fff",ur(l))})`}},...c.style}})})),Pl=Rl;function Il(e){return Hr("MuiPopover",e)}Vr("MuiPopover",["root","paper"]);function Al(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Tl(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function $l(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?`${e}px`:e)).join(" ")}function El(e){return"function"===typeof e?e():e}const Dl=Ir(Sl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ol=Ir(Pl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_l=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiPopover"}),{action:a,anchorEl:i,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:u="anchorEl",children:c,className:d,container:p,elevation:f=8,marginThreshold:h=16,open:m,PaperProps:g={},slots:v={},slotProps:b={},transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:x=qi,transitionDuration:w="auto",TransitionProps:{onEntering:C,...S}={},disableScrollLock:k=!1,...M}=r,R=b?.paper??g,P=e.useRef(),I={...r,anchorOrigin:l,anchorReference:u,elevation:f,marginThreshold:h,externalPaperSlotProps:R,transformOrigin:y,TransitionComponent:x,transitionDuration:w,TransitionProps:S},A=(e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"]},Il,t)})(I),T=e.useCallback((()=>{if("anchorPosition"===u)return s;const e=El(i),t=(e&&1===e.nodeType?e:ei(P.current).body).getBoundingClientRect();return{top:t.top+Al(t,l.vertical),left:t.left+Tl(t,l.horizontal)}}),[i,l.horizontal,l.vertical,s,u]),$=e.useCallback((e=>({vertical:Al(e,y.vertical),horizontal:Tl(e,y.horizontal)})),[y.horizontal,y.vertical]),E=e.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=$(t);if("none"===u)return{top:null,left:null,transformOrigin:$l(n)};const r=T();let o=r.top-n.vertical,a=r.left-n.horizontal;const l=o+t.height,s=a+t.width,c=vi(El(i)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&l>d){const e=l-d;o-=e,n.vertical+=e}if(null!==h&&a<h){const e=a-h;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:$l(n)}}),[i,u,T,$,h]),[D,O]=e.useState(m),_=e.useCallback((()=>{const e=P.current;if(!e)return;const t=E(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)}),[E]);e.useEffect((()=>(k&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[i,k,_]);e.useEffect((()=>{m&&_()})),e.useImperativeHandle(a,(()=>m?{updatePosition:()=>{_()}}:null),[m,_]),e.useEffect((()=>{if(!m)return;const e=Si((()=>{_()})),t=vi(i);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[i,m,_]);let F=w;"auto"!==w||x.muiSupportAuto||(F=void 0);const L=p||(i?ei(El(i)).body:void 0),j={slots:v,slotProps:{...b,paper:R}},[N,z]=nl("paper",{elementType:Ol,externalForwardedProps:j,additionalProps:{elevation:f,className:o(A.paper,R?.className),style:D?R.style:{...R.style,opacity:0}},ownerState:I}),[B,{slotProps:H,...V}]=nl("root",{elementType:Dl,externalForwardedProps:j,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:L,open:m},ownerState:I,className:o(A.root,d)}),W=qo(P,z.ref);return(0,Tr.jsx)(B,{...V,...!Go(B)&&{slotProps:H,disableScrollLock:k},...M,ref:n,children:(0,Tr.jsx)(x,{appear:!0,in:m,onEntering:(e,t)=>{C&&C(e,t),_()},onExited:()=>{O(!1)},timeout:F,...S,children:(0,Tr.jsx)(N,{...z,ref:W,children:c})})})})),Fl=_l;function Ll(e){return Hr("MuiMenu",e)}Vr("MuiMenu",["root","paper","list"]);const jl={vertical:"top",horizontal:"right"},Nl={vertical:"top",horizontal:"left"},zl=Ir(Fl,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bl=Ir(Ol,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Hl=Ir(Ci,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Vl=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m,...g}={},variant:v="selectedMenu",slots:b={},slotProps:y={},...x}=r,w=ni(),C={...r,autoFocus:a,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:g,variant:v},S=(e=>{const{classes:t}=e;return pe({root:["root"],paper:["paper"],list:["list"]},Ll,t)})(C),k=a&&!s&&d,M=e.useRef(null);let R=-1;e.Children.map(i,((t,n)=>{e.isValidElement(t)&&(t.props.disabled||("selectedMenu"===v&&t.props.selected||-1===R)&&(R=n))}));const P=b.paper??Bl,I=y.paper??p,A=ui({elementType:b.root,externalSlotProps:y.root,ownerState:C,className:[S.root,l]}),T=ui({elementType:P,externalSlotProps:I,ownerState:C,className:S.paper});return(0,Tr.jsx)(zl,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?jl:Nl,slots:{paper:P,root:b.root},slotProps:{root:A,paper:T},open:d,ref:n,transitionDuration:h,TransitionProps:{onEntering:(e,t)=>{M.current&&M.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)},...g},ownerState:C,...x,classes:f,children:(0,Tr.jsx)(Hl,{onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:M,autoFocus:a&&(-1===R||s),autoFocusItem:k,variant:v,...u,className:o(S.list,u.className),children:i})})})),Wl=Vl;function Ul(e){return Hr("MuiNativeSelect",e)}const Gl=Vr("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Kl=Ir("select")((e=>{let{theme:t}=e;return{MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Gl.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:e=>{let{ownerState:t}=e;return"filled"!==t.variant&&"outlined"!==t.variant},style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]}})),Yl=Ir(Kl,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pr,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Gl.multiple}`]:t.multiple}]}})({}),Zl=Ir("svg")((e=>{let{theme:t}=e;return{position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gl.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:e=>{let{ownerState:t}=e;return t.open},style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]}})),ql=Ir(Zl,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${po(n.variant)}`],n.open&&t.iconOpen]}})({}),Xl=e.forwardRef((function(t,n){const{className:r,disabled:a,error:i,IconComponent:l,inputRef:s,variant:u="standard",...c}=t,d={...t,disabled:a,variant:u,error:i},p=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return pe({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${po(n)}`,a&&"iconOpen",r&&"disabled"]},Ul,t)})(d);return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(Yl,{ownerState:d,className:o(p.select,r),disabled:a,ref:s||n,...c}),t.multiple?null:(0,Tr.jsx)(ql,{as:l,ownerState:d,className:p.icon})]})})),Ql=Xl;function Jl(t){let{controlled:n,default:r,name:o,state:a="value"}=t;const{current:i}=e.useRef(void 0!==n),[l,s]=e.useState(r);return[i?n:l,e.useCallback((e=>{i||s(e)}),[])]}const es=Jl;function ts(e){return Hr("MuiSelect",e)}const ns=Vr("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rs;const os=Ir(Kl,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ns.select}`]:t.select},{[`&.${ns.select}`]:t[n.variant]},{[`&.${ns.error}`]:t.error},{[`&.${ns.multiple}`]:t.multiple}]}})({[`&.${ns.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),as=Ir(Zl,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${po(n.variant)}`],n.open&&t.iconOpen]}})({}),is=Ir("input",{shouldForwardProp:e=>Rr(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ls(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function ss(e){return null==e||"string"===typeof e&&!e.trim()}const us=e.forwardRef((function(t,n){const{"aria-describedby":r,"aria-label":a,autoFocus:i,autoWidth:l,children:s,className:u,defaultOpen:c,defaultValue:d,disabled:p,displayEmpty:f,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:b={},multiple:y,name:x,onBlur:w,onChange:C,onClose:S,onFocus:k,onOpen:M,open:R,readOnly:P,renderValue:I,SelectDisplayProps:A={},tabIndex:T,type:$,value:E,variant:D="standard",...O}=t,[_,F]=es({controlled:E,default:d,name:"Select"}),[L,j]=es({controlled:R,default:c,name:"Select"}),N=e.useRef(null),z=e.useRef(null),[B,H]=e.useState(null),{current:V}=e.useRef(null!=R),[W,U]=e.useState(),G=qo(n,g),K=e.useCallback((e=>{z.current=e,e&&H(e)}),[]),Y=B?.parentNode;e.useImperativeHandle(G,(()=>({focus:()=>{z.current.focus()},node:N.current,value:_})),[_]),e.useEffect((()=>{c&&L&&B&&!V&&(U(l?null:Y.clientWidth),z.current.focus())}),[B,l]),e.useEffect((()=>{i&&z.current.focus()}),[i]),e.useEffect((()=>{if(!v)return;const e=ei(z.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const Z=(e,t)=>{e?M&&M(t):S&&S(t),V||(U(l?null:Y.clientWidth),j(e))},q=e.Children.toArray(s),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(y){n=Array.isArray(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==n&&(F(n),C)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:x}}),C(o,e)}y||Z(!1,t)}},Q=null!==B&&L;let J,ee;delete O["aria-invalid"];const te=[];let ne=!1,re=!1;(Jo({value:_})||f)&&(I?J=I(_):ne=!0);const oe=q.map((t=>{if(!e.isValidElement(t))return null;let n;if(y){if(!Array.isArray(_))throw new Error(cn(2));n=_.some((e=>ls(e,t.props.value))),n&&ne&&te.push(t.props.children)}else n=ls(_,t.props.value),n&&ne&&(ee=t.props.children);return n&&(re=!0),e.cloneElement(t,{"aria-selected":n?"true":"false",onClick:X(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:n,value:void 0,"data-value":t.props.value})}));ne&&(J=y?0===te.length?null:te.reduce(((e,t,n)=>(e.push(t),n<te.length-1&&e.push(", "),e)),[]):ee);let ae,ie=W;!l&&V&&B&&(ie=Y.clientWidth),ae="undefined"!==typeof T?T:p?null:0;const le=A.id||(x?`mui-component-select-${x}`:void 0),se={...t,variant:D,value:_,open:Q,error:h},ue=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e;return pe({select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${po(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ts,t)})(se),ce={...b.PaperProps,...b.slotProps?.paper},de=_o();return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(os,{as:"div",ref:K,tabIndex:ae,role:"combobox","aria-controls":de,"aria-disabled":p?"true":void 0,"aria-expanded":Q?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[v,le].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!P){[" ","ArrowUp","ArrowDown","Enter"].includes(e.key)&&(e.preventDefault(),Z(!0,e))}},onMouseDown:p||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Z(!0,e))},onBlur:e=>{!Q&&w&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),w(e))},onFocus:k,...A,ownerState:se,className:o(A.className,ue.select,u),id:le,children:ss(J)?rs||(rs=(0,Tr.jsx)("span",{className:"notranslate",children:"\u200b"})):J}),(0,Tr.jsx)(is,{"aria-invalid":h,value:Array.isArray(_)?_.join(","):_,name:x,ref:N,"aria-hidden":!0,onChange:e=>{const t=q.find((t=>t.props.value===e.target.value));void 0!==t&&(F(t.props.value),C&&C(e,t))},tabIndex:-1,disabled:p,className:ue.nativeInput,autoFocus:i,...O,ownerState:se}),(0,Tr.jsx)(as,{as:m,className:ue.icon,ownerState:se}),(0,Tr.jsx)(Wl,{id:`menu-${x||""}`,anchorEl:Y,open:Q,onClose:e=>{Z(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...b,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":y?"true":void 0,disableListWrap:!0,id:de,...b.MenuListProps},slotProps:{...b.slotProps,paper:{...ce,style:{minWidth:ie,...null!=ce?ce.style:null}}},children:oe})]})})),cs=us;function ds(e){return Hr("MuiSvgIcon",e)}Vr("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ps=Ir("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${po(n.color)}`],t[`fontSize${po(n.fontSize)}`]]}})(co((e=>{let{theme:t}=e;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter((e=>{let[,t]=e;return t&&t.main})).map((e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars??t).palette?.[n]?.main}}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}}))),fs=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiSvgIcon"}),{children:a,className:i,color:l="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:p,viewBox:f="0 0 24 24",...h}=r,m=e.isValidElement(a)&&"svg"===a.type,g={...r,color:l,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m},v={};d||(v.viewBox=f);const b=(e=>{const{color:t,fontSize:n,classes:r}=e;return pe({root:["root","inherit"!==t&&`color${po(t)}`,`fontSize${po(n)}`]},ds,r)})(g);return(0,Tr.jsxs)(ps,{as:s,className:o(b.root,i),focusable:"false",color:c,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:n,...v,...h,...m&&a.props,ownerState:g,children:[m?a.props.children:a,p?(0,Tr.jsx)("title",{children:p}):null]})}));fs&&(fs.muiName="SvgIcon");const hs=fs;function ms(t,n){function r(e,r){return(0,Tr.jsx)(hs,{"data-testid":`${n}Icon`,ref:r,...e,children:t})}return r.muiName=hs.muiName,e.memo(e.forwardRef(r))}const gs=ms((0,Tr.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vs={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pr(e)&&"variant"!==e,slot:"Root"},bs=Ir(ma,vs)(""),ys=Ir($a,vs)(""),xs=Ir(wa,vs)(""),ws=e.forwardRef((function(t,n){const r=Dr({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:i,classes:l={},className:s,defaultOpen:u=!1,displayEmpty:c=!1,IconComponent:d=gs,id:p,input:f,inputProps:h,label:m,labelId:g,MenuProps:v,multiple:b=!1,native:y=!1,onClose:x,onOpen:w,open:C,renderValue:S,SelectDisplayProps:k,variant:M="outlined",...R}=r,P=y?Ql:cs,I=Ko({props:r,muiFormControl:Zo(),states:["variant","error"]}),A=I.variant||M,T={...r,variant:A,classes:l},$=(e=>{const{classes:t}=e;return t})(T),{root:E,...D}=$,O=f||{standard:(0,Tr.jsx)(bs,{ownerState:T}),outlined:(0,Tr.jsx)(ys,{label:m,ownerState:T}),filled:(0,Tr.jsx)(xs,{ownerState:T})}[A],_=qo(n,Ja(O));return(0,Tr.jsx)(e.Fragment,{children:e.cloneElement(O,{inputComponent:P,inputProps:{children:i,error:I.error,IconComponent:d,variant:A,type:void 0,multiple:b,...y?{id:p}:{autoWidth:a,defaultOpen:u,displayEmpty:c,labelId:g,MenuProps:v,onClose:x,onOpen:w,open:C,renderValue:S,SelectDisplayProps:{id:p,...k}},...h,classes:h?fn(D,h.classes):D,...f?f.props.inputProps:{}},...(b&&y||c)&&"outlined"===A?{notched:!0}:{},ref:_,className:o(O.props.className,s,$.root),...!f&&{variant:A},...R})})}));ws.muiName="Select";const Cs=ws;function Ss(e){return Hr("MuiTextField",e)}Vr("MuiTextField",["root"]);const ks={standard:ma,filled:wa,outlined:$a},Ms=Ir(Ga,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Rs=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:a=!1,children:i,className:l,color:s="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:f=!1,helperText:h,id:m,InputLabelProps:g,inputProps:v,InputProps:b,inputRef:y,label:x,maxRows:w,minRows:C,multiline:S=!1,name:k,onBlur:M,onChange:R,onFocus:P,placeholder:I,required:A=!1,rows:T,select:$=!1,SelectProps:E,slots:D={},slotProps:O={},type:_,value:F,variant:L="outlined",...j}=n,N={...n,autoFocus:a,color:s,disabled:c,error:d,fullWidth:f,multiline:S,required:A,select:$,variant:L},z=(e=>{const{classes:t}=e;return pe({root:["root"]},Ss,t)})(N);const B=_o(m),H=h&&B?`${B}-helper-text`:void 0,V=x&&B?`${B}-label`:void 0,W=ks[L],U={slots:D,slotProps:{input:b,inputLabel:g,htmlInput:v,formHelperText:p,select:E,...O}},G={},K=U.slotProps.inputLabel;"outlined"===L&&(K&&"undefined"!==typeof K.shrink&&(G.notched=K.shrink),G.label=x),$&&(E&&E.native||(G.id=void 0),G["aria-describedby"]=void 0);const[Y,Z]=nl("input",{elementType:W,externalForwardedProps:U,additionalProps:G,ownerState:N}),[q,X]=nl("inputLabel",{elementType:Ba,externalForwardedProps:U,ownerState:N}),[Q,J]=nl("htmlInput",{elementType:"input",externalForwardedProps:U,ownerState:N}),[ee,te]=nl("formHelperText",{elementType:Qa,externalForwardedProps:U,ownerState:N}),[ne,re]=nl("select",{elementType:Cs,externalForwardedProps:U,ownerState:N}),oe=(0,Tr.jsx)(Y,{"aria-describedby":H,autoComplete:r,autoFocus:a,defaultValue:u,fullWidth:f,multiline:S,name:k,rows:T,maxRows:w,minRows:C,type:_,value:F,id:B,inputRef:y,onBlur:M,onChange:R,onFocus:P,placeholder:I,inputProps:J,slots:{input:D.htmlInput?Q:void 0},...Z});return(0,Tr.jsxs)(Ms,{className:o(z.root,l),disabled:c,error:d,fullWidth:f,ref:t,required:A,color:s,variant:L,ownerState:N,...j,children:[null!=x&&""!==x&&(0,Tr.jsx)(q,{htmlFor:B,id:V,...X,children:x}),$?(0,Tr.jsx)(ne,{"aria-describedby":H,id:B,labelId:V,value:F,input:oe,...re,children:i}):oe,h&&(0,Tr.jsx)(ee,{id:H,...te,children:h})]})})),Ps=Rs;var Is=n(3536);function As(e){return Hr("MuiInputAdornment",e)}const Ts=Vr("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var $s;const Es=Ir("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${po(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(co((e=>{let{theme:t}=e;return{display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Ts.positionStart}&:not(.${Ts.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}}))),Ds=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiInputAdornment"}),{children:a,className:i,component:l="div",disablePointerEvents:s=!1,disableTypography:u=!1,position:c,variant:d,...p}=r,f=Zo()||{};let h=d;d&&f.variant,f&&!h&&(h=f.variant);const m={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:h},g=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return pe({root:["root",n&&"disablePointerEvents",o&&`position${po(o)}`,i,r&&"hiddenLabel",a&&`size${po(a)}`]},As,t)})(m);return(0,Tr.jsx)(Yo.Provider,{value:null,children:(0,Tr.jsx)(Es,{as:l,ownerState:m,className:o(g.root,i),ref:n,...p,children:"string"!==typeof a||u?(0,Tr.jsxs)(e.Fragment,{children:["start"===c?$s||($s=(0,Tr.jsx)("span",{className:"notranslate",children:"\u200b"})):null,a]}):(0,Tr.jsx)(wo,{color:"textSecondary",children:a})})})})),Os=Ds;var _s=n(5173),Fs=n.n(_s);const Ls=function(e,t,n){return"function"===typeof e?e(t,n):e},js=Fs().oneOfType([Fs().func,Fs().object]);function Ns(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>n.every((e=>null==e))?null:e=>{n.forEach((t=>{!function(e,t){"function"===typeof e?e(t):e&&(e.current=t)}(t,e)}))}),n)}const zs=function(e){return"string"===typeof e};const Bs=function(e,t,n){return void 0===e||zs(e)?t:{...t,ownerState:{...t.ownerState,...n}}};const Hs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const Vs=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const Ws=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:i}=e;if(!t){const e=o(n?.className,i,a?.className,r?.className),t={...n?.style,...a?.style,...r?.style},l={...n,...a,...r};return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=Hs({...a,...r}),s=Vs(r),u=Vs(a),c=t(l),d=o(c?.className,n?.className,i,a?.className,r?.className),p={...c?.style,...n?.style,...a?.style,...r?.style},f={...c,...n,...u,...s};return d.length>0&&(f.className=d),Object.keys(p).length>0&&(f.style=p),{props:f,internalRef:c.ref}};const Us=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:Ls(n,r),{props:l,internalRef:s}=Ws({...a,externalSlotProps:i}),u=Ns(s,i?.ref,e.additionalProps?.ref);return Bs(t,{...l,ref:u},r)};let Gs=0;const Ks={...t}.useId;function Ys(t){if(void 0!==Ks){const e=Ks();return t??e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Gs+=1,r(`mui-${Gs}`))}),[n]),o}(t)}function Zs(e){return Hr("MuiDialogContent",e)}Vr("MuiDialogContent",["root","dividers"]);const qs=Vr("MuiDialogTitle",["root"]),Xs=Ir("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(co((e=>{let{theme:t}=e;return{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:e=>{let{ownerState:t}=e;return t.dividers},style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:e=>{let{ownerState:t}=e;return!t.dividers},style:{[`.${qs.root} + &`]:{paddingTop:0}}}]}}))),Qs=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiDialogContent"}),{className:r,dividers:a=!1,...i}=n,l={...n,dividers:a},s=(e=>{const{classes:t,dividers:n}=e;return pe({root:["root",n&&"dividers"]},Zs,t)})(l);return(0,Tr.jsx)(Xs,{className:o(s.root,r),ownerState:l,ref:t,...i})})),Js=Qs;function eu(e){return Hr("MuiDialog",e)}const tu=Vr("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const nu=e.createContext({}),ru=Ir(ul,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ou=Ir(Sl,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),au=Ir("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${po(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"}}}]}),iu=Ir(Pl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${po(n.scroll)}`],t[`paperWidth${po(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(co((e=>{let{theme:t}=e;return{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:e=>{let{ownerState:t}=e;return!t.maxWidth},style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${tu.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter((e=>"xs"!==e)).map((e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${tu.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:e=>{let{ownerState:t}=e;return t.fullWidth},style:{width:"calc(100% - 64px)"}},{props:e=>{let{ownerState:t}=e;return t.fullScreen},style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${tu.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}}))),lu=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiDialog"}),a=Lr(),i={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":s,"aria-modal":u=!0,BackdropComponent:c,BackdropProps:d,children:p,className:f,disableEscapeKeyDown:h=!1,fullScreen:m=!1,fullWidth:g=!1,maxWidth:v="sm",onBackdropClick:b,onClick:y,onClose:x,open:w,PaperComponent:C=Pl,PaperProps:S={},scroll:k="paper",TransitionComponent:M=al,transitionDuration:R=i,TransitionProps:P,...I}=r,A={...r,disableEscapeKeyDown:h,fullScreen:m,fullWidth:g,maxWidth:v,scroll:k},T=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:a}=e;return pe({root:["root"],container:["container",`scroll${po(n)}`],paper:["paper",`paperScroll${po(n)}`,`paperWidth${po(String(r))}`,o&&"paperFullWidth",a&&"paperFullScreen"]},eu,t)})(A),$=e.useRef(),E=_o(s),D=e.useMemo((()=>({titleId:E})),[E]);return(0,Tr.jsx)(ou,{className:o(T.root,f),closeAfterTransition:!0,components:{Backdrop:ru},componentsProps:{backdrop:{transitionDuration:R,as:c,...d}},disableEscapeKeyDown:h,onClose:x,open:w,ref:n,onClick:e=>{y&&y(e),$.current&&($.current=null,b&&b(e),x&&x(e,"backdropClick"))},ownerState:A,...I,children:(0,Tr.jsx)(M,{appear:!0,in:w,timeout:R,role:"presentation",...P,children:(0,Tr.jsx)(au,{className:o(T.container),onMouseDown:e=>{$.current=e.target===e.currentTarget},ownerState:A,children:(0,Tr.jsx)(iu,{as:C,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":E,"aria-modal":u,...S,className:o(T.paper,S.className),ownerState:A,children:(0,Tr.jsx)(nu.Provider,{value:D,children:p})})})})})})),su=320,uu=336,cu=Ir(lu)({[`& .${tu.container}`]:{outline:0},[`& .${tu.paper}`]:{outline:0,minWidth:su}}),du=Ir(Js)({"&:first-of-type":{padding:0}});function pu(e){const{children:t,onDismiss:n,open:r,slots:o,slotProps:a}=e,i=o?.dialog??cu,l=o?.mobileTransition??al;return(0,Tr.jsx)(i,fe({open:r,onClose:n},a?.dialog,{TransitionComponent:l,TransitionProps:a?.mobileTransition,PaperComponent:o?.mobilePaper,PaperProps:a?.mobilePaper,children:(0,Tr.jsx)(du,{children:t})}))}const fu="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;const hu=function(t){const n=e.useRef(t);return fu((()=>{n.current=t})),e.useRef((function(){return(0,n.current)(...arguments)})).current};function mu(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Ar(t.components[n].defaultProps,r):r}function gu(e){let{props:t,name:n}=e;return function(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,a=Fr(r);return o&&(a=a[o]||a),mu({theme:a,name:n,props:t})}({props:t,name:n,defaultTheme:kr,themeId:Mr})}const vu=["localeText"],bu=e.createContext(null);const yu=function(t){const{localeText:n}=t,r=Ai(t,vu),{utils:o,localeText:a}=e.useContext(bu)??{utils:void 0,localeText:void 0},i=gu({props:r,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:s,dateFormats:u,dateLibInstance:c,adapterLocale:d,localeText:p}=i,f=e.useMemo((()=>fe({},p,a,n)),[p,a,n]),h=e.useMemo((()=>{if(!s)return o||null;const e=new s({locale:d,formats:u,instance:c});if(!e.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("\n"));return e}),[s,d,u,c,o]),m=e.useMemo((()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null),[h]),g=e.useMemo((()=>({utils:h,defaultDates:m,localeText:f})),[m,h,f]);return(0,Tr.jsx)(bu.Provider,{value:g,children:l})},xu=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:o}=e;return e=>{const a=null!==e&&t.isValid(e)?t.format(e,n):null;return(o??r)(e,t,a)}},wu={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"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||null!==t&&n.isValid(t)?`Selected time is ${r??n.format(t,"fullTime")}`:"No time selected"}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||null!==e&&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=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"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"},Cu=wu;fe({},wu);const Su=()=>{const t=e.useContext(bu);if(null===t)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("\n"));if(null===t.utils)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("\n"));const n=e.useMemo((()=>fe({},Cu,t.localeText)),[t.localeText]);return e.useMemo((()=>fe({},t,{localeText:n})),[t,n])},ku=()=>Su().utils,Mu=()=>Su().defaultDates,Ru=t=>{const n=ku(),r=e.useRef();return void 0===r.current&&(r.current=n.date(void 0,t)),r.current};function Pu(t){const{props:n,validator:r,value:o,timezone:a,onError:i}=t,l=Su(),s=e.useRef(r.valueManager.defaultErrorState),u=r({adapter:l,value:o,timezone:a,props:n}),c=r.valueManager.hasError(u);e.useEffect((()=>{i&&!r.valueManager.isSameError(u,s.current)&&i(u,o),s.current=u}),[r,i,u,o]);const d=hu((e=>r({adapter:l,value:e,timezone:a,props:n})));return{validationError:u,hasValidationError:c,getValidationErrorForNewValue:d}}function Iu(t){let{controlled:n,default:r,name:o,state:a="value"}=t;const{current:i}=e.useRef(void 0!==n),[l,s]=e.useState(r);return[i?n:l,e.useCallback((e=>{i||s(e)}),[])]}const Au=t=>{let{timezone:n,value:r,defaultValue:o,referenceDate:a,onChange:i,valueManager:l}=t;const s=ku(),u=e.useRef(o),c=r??u.current??l.emptyValue,d=e.useMemo((()=>l.getTimezone(s,c)),[s,l,c]),p=hu((e=>null==d?e:l.setTimezone(s,d,e)));let f;f=n||(d||(a?s.getTimezone(a):"default"));return{value:e.useMemo((()=>l.setTimezone(s,f,c)),[l,s,f,c]),handleValueChange:hu((function(e){const t=p(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];i?.(t,...r)})),timezone:f}},Tu=e=>{let{name:t,timezone:n,value:r,defaultValue:o,referenceDate:a,onChange:i,valueManager:l}=e;const[s,u]=Iu({name:t,state:"value",controlled:r,default:o??l.emptyValue}),c=hu((function(e){u(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i?.(e,...n)}));return Au({timezone:n,value:s,defaultValue:void 0,referenceDate:a,onChange:c,valueManager:l})},$u=t=>{let{props:n,valueManager:r,valueType:o,wrapperVariant:a,validator:i}=t;const{onAccept:l,onChange:s,value:u,defaultValue:c,closeOnSelect:d="desktop"===a,timezone:p,referenceDate:f}=n,{current:h}=e.useRef(c),{current:m}=e.useRef(void 0!==u),[g,v]=e.useState(p);const b=ku(),y=Su(),{isOpen:x,setIsOpen:w}=(t=>{let{open:n,onOpen:r,onClose:o}=t;const a=e.useRef("boolean"===typeof n).current,[i,l]=e.useState(!1);return e.useEffect((()=>{if(a){if("boolean"!==typeof n)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");l(n)}}),[a,n]),{isOpen:i,setIsOpen:e.useCallback((e=>{a||l(e),e&&r&&r(),!e&&o&&o()}),[a,r,o])}})(n),{timezone:C,value:S,handleValueChange:k}=Au({timezone:p,value:u,defaultValue:h,referenceDate:f,onChange:s,valueManager:r}),[M,R]=e.useState((()=>{let e;return e=void 0!==S?S:void 0!==h?h:r.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:u,hasBeenModifiedSinceMount:!1}})),P=r.getTimezone(b,M.draft);g!==p&&(v(p),p&&P&&p!==P&&R((e=>fe({},e,{draft:r.setTimezone(b,p,e.draft)}))));const{getValidationErrorForNewValue:I}=Pu({props:n,validator:i,timezone:C,value:M.draft,onError:n.onError}),A=hu((e=>{const t={action:e,dateState:M,hasChanged:t=>!r.areValuesEqual(b,e.value,t),isControlled:m,closeOnSelect:d},n=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,a=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!a||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!a||n(r.lastPublishedValue)))})(t),o=(e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:a}=e,i=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!i||!["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&a?!!i||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(t),a=(e=>{const{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(t);R((t=>fe({},t,{draft:e.value,lastPublishedValue:n?e.value:t.lastPublishedValue,lastCommittedValue:o?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0})));let i=null;const s=()=>{if(!i){const t="setValueFromField"===e.name?e.context.validationError:I(e.value);i={validationError:t},"setValueFromShortcut"===e.name&&(i.shortcut=e.shortcut)}return i};n&&k(e.value,s()),o&&l&&l(e.value,s()),a&&w(!1)}));if(M.lastControlledValue!==u){const e=r.areValuesEqual(b,M.draft,S);R((t=>fe({},t,{lastControlledValue:u},e?{}:{lastCommittedValue:S,lastPublishedValue:S,draft:S,hasBeenModifiedSinceMount:!0})))}const T=hu((()=>{A({value:r.emptyValue,name:"setValueFromAction",pickerAction:"clear"})})),$=hu((()=>{A({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})})),E=hu((()=>{A({value:M.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})})),D=hu((()=>{A({value:M.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})})),O=hu((()=>{A({value:r.getTodayValue(b,C,o),name:"setValueFromAction",pickerAction:"today"})})),_=hu((e=>{e.preventDefault(),w(!0)})),F=hu((e=>{e?.preventDefault(),w(!1)})),L=hu((function(e){return A({name:"setValueFromView",value:e,selectionState:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"partial"})})),j=hu(((e,t,n)=>A({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:n}))),N=hu(((e,t)=>A({name:"setValueFromField",value:e,context:t}))),z={onClear:T,onAccept:$,onDismiss:E,onCancel:D,onSetToday:O,onOpen:_,onClose:F},B={value:M.draft,onChange:N},H=e.useMemo((()=>r.cleanValue(b,M.draft)),[b,r,M.draft]),V={value:H,onChange:L,onClose:F,open:x},W=fe({},z,{value:H,onChange:L,onSelectShortcut:j,isValid:e=>{const t=i({adapter:y,value:e,timezone:C,props:n});return!r.hasError(t)}}),U=e.useMemo((()=>({onOpen:_,onClose:F,open:x})),[x,F,_]);return{open:x,fieldProps:B,viewProps:V,layoutProps:W,actions:z,contextValue:U}};function Eu(t){let{onChange:n,onViewChange:r,openTo:o,view:a,views:i,autoFocus:l,focusedView:s,onFocusedViewChange:u}=t;const c=e.useRef(o),d=e.useRef(i),p=e.useRef(i.includes(o)?o:i[0]),[f,h]=Iu({name:"useViews",state:"view",controlled:a,default:p.current}),m=e.useRef(l?f:null),[g,v]=Iu({name:"useViews",state:"focusedView",controlled:s,default:m.current});e.useEffect((()=>{(c.current&&c.current!==o||d.current&&d.current.some((e=>!i.includes(e))))&&(h(i.includes(o)?o:i[0]),d.current=i,c.current=o)}),[o,h,f,i]);const b=i.indexOf(f),y=i[b-1]??null,x=i[b+1]??null,w=hu(((e,t)=>{v(t?e:t=>e===t?null:t),u?.(e,t)})),C=hu((e=>{w(e,!0),e!==f&&(h(e),r&&r(e))})),S=hu((()=>{x&&C(x)})),k=hu(((e,t,r)=>{const o="finish"===t,a=r?i.indexOf(r)<i.length-1:Boolean(x);if(n(e,o&&a?"partial":t,r),r&&r!==f){const e=i[i.indexOf(r)+1];e&&C(e)}else o&&S()}));return{view:f,setView:C,focusedView:g,setFocusedView:w,nextView:x,previousView:y,defaultView:i.includes(o)?o:i[0],goToNextView:S,setValueAndGoToNextView:k}}const Du=(e,t)=>e.length===t.length&&t.every((t=>e.includes(t))),Ou=e=>{let{openTo:t,defaultOpenTo:n,views:r,defaultViews:o}=e;const a=r??o;let i;if(null!=t)i=t;else if(a.includes(n))i=n;else{if(!(a.length>0))throw new Error("MUI X: The `views` prop must contain at least one view.");i=a[0]}return{views:a,openTo:i}},_u=["hours","minutes","seconds"],Fu=e=>_u.includes(e),Lu=e=>_u.includes(e)||"meridiem"===e,ju=(e,t,n)=>{if(n){if((e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12}return e},Nu=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),zu=(e,t)=>(n,r)=>e?t.isAfter(n,r):Nu(n,t)>Nu(r,t),Bu=(e,t)=>{let{format:n,views:r,ampm:o}=t;if(null!=n)return n;const a=e.formats;return Du(r,["hours"])?o?`${a.hours12h} ${a.meridiem}`:a.hours24h:Du(r,["minutes"])?a.minutes:Du(r,["seconds"])?a.seconds:Du(r,["minutes","seconds"])?`${a.minutes}:${a.seconds}`:Du(r,["hours","minutes","seconds"])?o?`${a.hours12h}:${a.minutes}:${a.seconds} ${a.meridiem}`:`${a.hours24h}:${a.minutes}:${a.seconds}`:o?`${a.hours12h}:${a.minutes} ${a.meridiem}`:`${a.hours24h}:${a.minutes}`},Hu=["className","sx"];function Vu(e,t){return Array.isArray(t)?t.every((t=>-1!==e.indexOf(t))):-1!==e.indexOf(t)}const Wu=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).activeElement;return e?e.shadowRoot?Wu(e.shadowRoot):e:null},Uu=e=>Array.from(e.children).indexOf(Wu(document)),Gu="@media (pointer: fine)";function Ku(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const Yu=t=>{let{props:n,propsFromPickerValue:r,propsFromPickerViews:o,wrapperVariant:a}=t;const{orientation:i}=n,l=((t,n)=>{const[r,o]=e.useState(Ku);return fu((()=>{const e=()=>{o(Ku())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}}),[]),!Vu(t,["hours","minutes","seconds"])&&"landscape"===(n||r)})(o.views,i);return{layoutProps:fe({},o,r,{isLandscape:l,isRtl:ni(),wrapperVariant:a,disabled:n.disabled,readOnly:n.readOnly})}};const Zu=t=>{let{props:n,valueManager:r,valueType:o,wrapperVariant:a,additionalViewProps:i,validator:l,autoFocusView:s,rendererInterceptor:u,fieldRef:c}=t;const d=$u({props:n,valueManager:r,valueType:o,wrapperVariant:a,validator:l}),p=(t=>{let{props:n,propsFromPickerValue:r,additionalViewProps:o,autoFocusView:a,rendererInterceptor:i,fieldRef:l}=t;const{onChange:s,open:u,onClose:c}=r,{view:d,views:p,openTo:f,onViewChange:h,viewRenderers:m,timezone:g}=n,v=Ai(n,Hu),{view:b,setView:y,defaultView:x,focusedView:w,setFocusedView:C,setValueAndGoToNextView:S}=Eu({view:d,views:p,openTo:f,onChange:s,onViewChange:h,autoFocus:a}),{hasUIView:k,viewModeLookup:M}=e.useMemo((()=>p.reduce(((e,t)=>{let n;return n=null!=m[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e}),{hasUIView:!1,viewModeLookup:{}})),[m,p]),R=e.useMemo((()=>p.reduce(((e,t)=>null!=m[t]&&Fu(t)?e+1:e),0)),[m,p]),P=M[b],I=hu((()=>"UI"===P)),[A,T]=e.useState("UI"===P?b:null);return A!==b&&"UI"===M[b]&&T(b),fu((()=>{"field"===P&&u&&(c(),setTimeout((()=>{l?.current?.setSelectedSections(b),l?.current?.focusField(b)})))}),[b]),fu((()=>{if(!u)return;let e=b;"field"===P&&null!=A&&(e=A),e!==x&&"UI"===M[e]&&"UI"===M[x]&&(e=x),e!==b&&y(e),C(e,!0)}),[u]),{hasUIView:k,shouldRestoreFocus:I,layoutProps:{views:p,view:A,onViewChange:y},renderCurrentView:()=>{if(null==A)return null;const e=m[A];if(null==e)return null;const t=fe({},v,o,r,{views:p,timezone:g,onChange:S,view:A,onViewChange:y,focusedView:w,onFocusedViewChange:C,showViewSwitcher:R>1,timeViewsCount:R});return i?i(m,A,t):e(t)}}})({props:n,additionalViewProps:i,autoFocusView:s,fieldRef:c,propsFromPickerValue:d.viewProps,rendererInterceptor:u}),f=Yu({props:n,wrapperVariant:a,propsFromPickerValue:d.layoutProps,propsFromPickerViews:p.layoutProps}),h=function(t){const{props:n,pickerValueResponse:r}=t;return e.useMemo((()=>({value:r.viewProps.value,open:r.open,disabled:n.disabled??!1,readOnly:n.readOnly??!1})),[r.viewProps.value,r.open,n.disabled,n.readOnly])}({props:n,pickerValueResponse:d});return{open:d.open,actions:d.actions,fieldProps:d.fieldProps,renderCurrentView:p.renderCurrentView,hasUIView:p.hasUIView,shouldRestoreFocus:p.shouldRestoreFocus,layoutProps:f.layoutProps,contextValue:d.contextValue,ownerState:h}};function qu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let e=0;e<a.length;e+=1){const r=a[e];r&&(i+=(!0===l?"":" ")+t(r),l=!1,n&&n[r]&&(i+=" "+n[r]))}r[o]=i}return r}const Xu=e=>e,Qu=(()=>{let e=Xu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Xu}}})(),Ju={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 ec(e,t){const n=Ju[t];return n?`${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui"}-${n}`:`${Qu.generate(e)}-${t}`}function tc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const r={};return t.forEach((t=>{r[t]=ec(e,t,n)})),r}function nc(e){return ec("MuiPickersLayout",e)}const rc=tc("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function oc(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if("components"===o||"slots"===o)n[o]={...e[o],...n[o]};else if("componentsProps"===o||"slotProps"===o){const r=e[o],a=t[o];if(a)if(r){n[o]={...a};for(const e in r)if(Object.prototype.hasOwnProperty.call(r,e)){const t=e;n[o][t]=oc(r[t],a[t])}}else n[o]=a;else n[o]=r||{}}else void 0===n[o]&&(n[o]=e[o])}return n}function ac(e){try{return e.matches(":focus-visible")}catch(t){0}return!1}const ic=cl;class lc{static create(){return new lc}static use(){const t=Mi(lc.create).current,[n,r]=e.useState(!1);return t.shouldMount=n,t.setShouldMount=r,e.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=function(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n}(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&null!==this.ref.current&&(this.didMount=!0,this.mounted.resolve())};start(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then((()=>this.ref.current?.start(...t)))}stop(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then((()=>this.ref.current?.stop(...t)))}pulsate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.mount().then((()=>this.ref.current?.pulsate(...t)))}}function sc(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function uc(e,t,n){return null!=n[t]?n[t]:e.props[t]}function cc(t,n,r){var o=sc(t.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var u=o[s][r];l[o[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(n,o);return Object.keys(a).forEach((function(i){var l=a[i];if((0,e.isValidElement)(l)){var s=i in n,u=i in o,c=n[i],d=(0,e.isValidElement)(c)&&!c.props.in;!u||s&&!d?u||!s||d?u&&s&&(0,e.isValidElement)(c)&&(a[i]=(0,e.cloneElement)(l,{onExited:r.bind(null,l),in:c.props.in,exit:uc(l,"exit",t),enter:uc(l,"enter",t)})):a[i]=(0,e.cloneElement)(l,{in:!1}):a[i]=(0,e.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:uc(l,"exit",t),enter:uc(l,"enter",t)})}})),a}var dc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},pc=function(t){function n(e,n){var r,o=(r=t.call(this,e,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}$i(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,o,a=n.children,i=n.handleExited;return{children:n.firstRender?(r=t,o=i,sc(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:o.bind(null,t),in:!0,appear:uc(t,"appear",r),enter:uc(t,"enter",r),exit:uc(t,"exit",r)})}))):cc(t,a,i),firstRender:!1}},r.handleExited=function(e,t){var n=sc(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=fe({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,o=Ai(t,["component","childFactory"]),a=this.state.contextValue,i=dc(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?e.createElement(Oi.Provider,{value:a},i):e.createElement(Oi.Provider,{value:a},e.createElement(n,o,i))},n}(e.Component);pc.propTypes={},pc.defaultProps={component:"div",childFactory:function(e){return e}};const fc=pc;const hc=function(t){const{className:n,classes:r,pulsate:a=!1,rippleX:i,rippleY:l,rippleSize:s,in:u,onExited:c,timeout:d}=t,[p,f]=e.useState(!1),h=o(n,r.ripple,r.rippleVisible,a&&r.ripplePulsate),m={width:s,height:s,top:-s/2+l,left:-s/2+i},g=o(r.child,p&&r.childLeaving,a&&r.childPulsate);return u||p||f(!0),e.useEffect((()=>{if(!u&&null!=c){const e=setTimeout(c,d);return()=>{clearTimeout(e)}}}),[c,u,d]),(0,Tr.jsx)("span",{className:h,style:m,children:(0,Tr.jsx)("span",{className:g})})};const mc=Vr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gc=oo`
3
3
  0% {
4
4
  transform: scale(0);
@@ -181,5 +181,5 @@
181
181
  animation: ${IT} 1.4s linear infinite;
182
182
  `:null,$T="string"!==typeof AT?ro`
183
183
  animation: ${AT} 1.4s ease-in-out infinite;
184
- `:null,ET=Ir("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:TT||{animation:`${IT} 1.4s linear infinite`}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars||t).palette[n].main}}}))]}}))),DT=Ir("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OT=Ir("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${po(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(co((e=>{let{theme:t}=e;return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink},style:$T||{animation:`${AT} 1.4s ease-in-out infinite`}}]}}))),_T=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:i=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate",...p}=n,f={...n,color:a,disableShrink:i,size:l,thickness:u,value:c,variant:d},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return pe({root:["root",n,`color${po(r)}`],svg:["svg"],circle:["circle",`circle${po(n)}`,o&&"circleDisableShrink"]},RT,t)})(f),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((PT-u)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,Tr.jsx)(ET,{className:o(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...v,...p,children:(0,Tr.jsx)(DT,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:(0,Tr.jsx)(OT,{className:h.circle,style:m,ownerState:f,cx:PT,cy:PT,r:(PT-u)/2,fill:"none",strokeWidth:u})})})})),FT=_T,LT=["className"],jT=Yw("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),NT=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,LT),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["overlay"]},Dx,t)})(a);return(0,Tr.jsx)(jT,fe({ref:t,className:o(i.root,n),ownerState:a},r))})),zT=(e,t,n,r,o)=>{const a=o.hasScrollY?o.scrollbarSize:0;let i;switch(e){case Pw.LEFT:i=r[n];break;case Pw.RIGHT:i=o.columnsTotalWidth-r[n]-t+a;break;default:i=0}return i},BT=(e,t,n,r,o)=>{const a=t===n-1;return!(e!==Pw.LEFT||!a)||!!r&&(e===Pw.LEFT||(e===Pw.RIGHT?!a:!a||o))},HT=(e,t)=>e===Pw.RIGHT&&0===t,VT={root:Ox.scrollbarFiller,header:Ox["scrollbarFiller--header"],borderTop:Ox["scrollbarFiller--borderTop"],borderBottom:Ox["scrollbarFiller--borderBottom"],pinnedRight:Ox["scrollbarFiller--pinnedRight"]};function WT(e){let{header:t,borderTop:n=!0,borderBottom:r,pinnedRight:a}=e;return(0,Tr.jsx)("div",{role:"presentation",className:o(VT.root,t&&VT.header,n&&VT.borderTop,r&&VT.borderBottom,a&&VT.pinnedRight)})}const UT=Yw("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),GT=e=>parseInt(e.getAttribute("data-colindex"),10),KT=e.forwardRef((function(t,n){const r=rw(),{slots:a}=r,i=(e=>{const{classes:t}=e;return qu({root:["skeletonLoadingOverlay"]},Dx,t)})({classes:r.classes}),l=e.useRef(null),s=Ns(l,n),u=Uw(),c=Gx(u,Zx),d=c?.viewportInnerSize.height??0,p=Math.ceil(d/c.rowHeight),f=Gx(u,jw),h=Gx(u,Lw),m=e.useMemo((()=>h.filter((e=>e<=f)).length),[f,h]),g=Gx(u,Ow),v=e.useMemo((()=>g.slice(0,m)),[g,m]),b=Gx(u,Fw),y=e.useCallback(((e,t,n)=>{const r=zT(n,e,t,h,c);return{[n]:r}}),[c,h]),x=e.useCallback((e=>-1!==b.left.findIndex((t=>t.field===e))?Pw.LEFT:-1!==b.right.findIndex((t=>t.field===e))?Pw.RIGHT:void 0),[b.left,b.right]),w=e.useMemo((()=>{const e=[];for(let t=0;t<p;t+=1){const n=[];for(let e=0;e<v.length;e+=1){const i=v[e],l=x(i.field),s=l===Pw.LEFT,u=l===Pw.RIGHT,d=l?b[l].length:v.length-b.left.length-b.right.length,p=l?b[l].findIndex((e=>e.field===i.field)):e-b.left.length,f=l&&y(i.computedWidth,e,l),h=c.columnsTotalWidth<c.viewportOuterSize.width,m=BT(l,p,d,r.showCellVerticalBorder,h),g=HT(l,p),w=e===v.length-1,C=u&&0===p,S=C&&h,k=w&&!C&&h,M=c.viewportOuterSize.width-c.columnsTotalWidth,R=Math.max(0,M),P=(0,Tr.jsx)(a.skeletonCell,{width:R,empty:!0},`skeleton-filler-column-${t}`),I=c.hasScrollY?c.scrollbarSize:0,A=w&&0!==I;S&&n.push(P),n.push((0,Tr.jsx)(a.skeletonCell,{field:i.field,type:i.type,align:i.align,width:"var(--width)",height:c.rowHeight,"data-colindex":e,className:o(s&&Ox["cell--pinnedLeft"],u&&Ox["cell--pinnedRight"],m&&Ox["cell--withRightBorder"],g&&Ox["cell--withLeftBorder"]),style:fe({"--width":`${i.computedWidth}px`},f)},`skeleton-column-${t}-${i.field}`)),k&&n.push(P),A&&n.push((0,Tr.jsx)(WT,{pinnedRight:b.right.length>0},`skeleton-scrollbar-filler-${t}`))}e.push((0,Tr.jsx)("div",{className:o(Ox.row,Ox.rowSkeleton,0===t&&Ox["row--firstVisible"]),children:n},`skeleton-row-${t}`))}return e}),[a,v,b,p,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,x,y]);return tC(u,"columnResize",(e=>{const{colDef:t,width:n}=e,r=l.current?.querySelectorAll(`[data-field="${mI(t.field)}"]`);if(!r)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=v.findIndex((e=>e.field===t.field)),a=x(t.field),i=a===Pw.LEFT,s=a===Pw.RIGHT,u=getComputedStyle(r[0]).getPropertyValue("--width"),c=parseInt(u,10)-n;if(r&&r.forEach((e=>{e.style.setProperty("--width",`${n}px`)})),i){const e=l.current?.querySelectorAll(`.${Ox["cell--pinnedLeft"]}`);e?.forEach((e=>{GT(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-c+"px")}))}if(s){const e=l.current?.querySelectorAll(`.${Ox["cell--pinnedRight"]}`);e?.forEach((e=>{GT(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+c}px`)}))}})),(0,Tr.jsx)(UT,fe({className:i.root,ref:s},t,{children:w}))})),YT=["variant","noRowsVariant","style"],ZT={"circular-progress":{component:FT,style:{}},"linear-progress":{component:MT,style:{display:"block"}},skeleton:{component:KT,style:{display:"block"}}},qT=e.forwardRef((function(e,t){const{variant:n="circular-progress",noRowsVariant:r="circular-progress",style:o}=e,a=Ai(e,YT),i=Uw(),l=Gx(i,$S),s=ZT[0===l?r:n];return(0,Tr.jsx)(NT,fe({ref:t,style:fe({},s.style,o)},a,{children:(0,Tr.jsx)(s.component,{})}))})),XT=e.forwardRef((function(e,t){const n=Uw().current.getLocaleText("noRowsLabel");return(0,Tr.jsx)(NT,fe({ref:t},e,{children:n}))}));const QT=e.createContext();const JT=e.createContext();function e$(e){return Hr("MuiTableCell",e)}const t$=Vr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),n$=Ir("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${po(n.size)}`],"normal"!==n.padding&&t[`padding${po(n.padding)}`],"inherit"!==n.align&&t[`align${po(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(co((e=>{let{theme:t}=e;return{...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?Mn(wn(t.palette.divider,1),.88):Sn(wn(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${t$.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:e=>{let{ownerState:t}=e;return t.stickyHeader},style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}}))),r$=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTableCell"}),{align:a="inherit",className:i,component:l,padding:s,scope:u,size:c,sortDirection:d,variant:p,...f}=r,h=e.useContext(QT),m=e.useContext(JT),g=m&&"head"===m.variant;let v;v=l||(g?"th":"td");let b=u;"td"===v?b=void 0:!b&&g&&(b="col");const y=p||m&&m.variant,x={...r,align:a,component:v,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return pe({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${po(r)}`,"normal"!==o&&`padding${po(o)}`,`size${po(a)}`]},e$,t)})(x);let C=null;return d&&(C="asc"===d?"ascending":"descending"),(0,Tr.jsx)(n$,{as:v,ref:n,className:o(w.root,i),"aria-sort":C,scope:b,ownerState:x,...f})})),o$=r$;function a$(e){return Hr("MuiToolbar",e)}Vr("MuiToolbar",["root","gutters","regular","dense"]);const i$=Ir("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(co((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}}))),l$=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiToolbar"}),{className:r,component:a="div",disableGutters:i=!1,variant:l="regular",...s}=n,u={...n,component:a,disableGutters:i,variant:l},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return pe({root:["root",!n&&"gutters",r]},a$,t)})(u);return(0,Tr.jsx)(i$,{as:a,className:o(c.root,r),ref:t,ownerState:u,...s})})),s$=l$,u$=ms((0,Tr.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),c$=ms((0,Tr.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),d$=e.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,disabled:o=!1,getItemAriaLabel:a,nextIconButtonProps:i,onPageChange:l,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d,slots:p={},slotProps:f={},...h}=e,m=ni(),g=p.firstButton??Fp,v=p.lastButton??Fp,b=p.nextButton??Fp,y=p.previousButton??Fp,x=p.firstButtonIcon??c$,w=p.lastButtonIcon??u$,C=p.nextButtonIcon??jv,S=p.previousButtonIcon??Lv,k=m?v:g,M=m?b:y,R=m?y:b,P=m?g:v,I=m?f.lastButton:f.firstButton,A=m?f.nextButton:f.previousButton,T=m?f.previousButton:f.nextButton,$=m?f.firstButton:f.lastButton;return(0,Tr.jsxs)("div",{ref:t,...h,children:[c&&(0,Tr.jsx)(k,{onClick:e=>{l(e,0)},disabled:o||0===s,"aria-label":a("first",s),title:a("first",s),...I,children:m?(0,Tr.jsx)(w,{...f.lastButtonIcon}):(0,Tr.jsx)(x,{...f.firstButtonIcon})}),(0,Tr.jsx)(M,{onClick:e=>{l(e,s-1)},disabled:o||0===s,color:"inherit","aria-label":a("previous",s),title:a("previous",s),...A??n,children:m?(0,Tr.jsx)(C,{...f.nextButtonIcon}):(0,Tr.jsx)(S,{...f.previousButtonIcon})}),(0,Tr.jsx)(R,{onClick:e=>{l(e,s+1)},disabled:o||-1!==r&&s>=Math.ceil(r/u)-1,color:"inherit","aria-label":a("next",s),title:a("next",s),...T??i,children:m?(0,Tr.jsx)(S,{...f.previousButtonIcon}):(0,Tr.jsx)(C,{...f.nextButtonIcon})}),d&&(0,Tr.jsx)(P,{onClick:e=>{l(e,Math.max(0,Math.ceil(r/u)-1))},disabled:o||s>=Math.ceil(r/u)-1,"aria-label":a("last",s),title:a("last",s),...$,children:m?(0,Tr.jsx)(x,{...f.firstButtonIcon}):(0,Tr.jsx)(w,{...f.lastButtonIcon})})]})})),p$=_o;function f$(e){return Hr("MuiTablePagination",e)}const h$=Vr("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var m$;const g$=Ir(o$,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(co((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}}))),v$=Ir(s$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${h$.actions}`]:t.actions,...t.toolbar})})(co((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${h$.actions}`]:{flexShrink:0,marginLeft:20}}}))),b$=Ir("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),y$=Ir("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(co((e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}}))),x$=Ir(Cs,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${h$.selectIcon}`]:t.selectIcon,[`& .${h$.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${h$.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),w$=Ir(xy,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),C$=Ir("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(co((e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}})));function S$(e){let{from:t,to:n,count:r}=e;return`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`}function k$(e){return`Go to ${e} page`}const M$=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=d$,backIconButtonProps:i,className:l,colSpan:s,component:u=o$,count:c,disabled:d=!1,getItemAriaLabel:p=k$,labelDisplayedRows:f=S$,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:b,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:C=!1,showLastButton:S=!1,slotProps:k={},slots:M={},...R}=r,P=r,I=(e=>{const{classes:t}=e;return pe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},f$,t)})(P),A=k?.select??w,T=A.native?"option":w$;let $;u!==o$&&"td"!==u||($=s||1e3);const E=p$(A.id),D=p$(A.labelId);return(0,Tr.jsx)(g$,{colSpan:$,ref:n,as:u,ownerState:P,className:o(I.root,l),...R,children:(0,Tr.jsxs)(v$,{className:I.toolbar,children:[(0,Tr.jsx)(b$,{className:I.spacer}),x.length>1&&(0,Tr.jsx)(y$,{className:I.selectLabel,id:D,children:h}),x.length>1&&(0,Tr.jsx)(x$,{variant:"standard",...!A.variant&&{input:m$||(m$=(0,Tr.jsx)(ua,{}))},value:y,onChange:v,id:E,labelId:D,...A,classes:{...A.classes,root:o(I.input,I.selectRoot,(A.classes||{}).root),select:o(I.select,(A.classes||{}).select),icon:o(I.selectIcon,(A.classes||{}).icon)},disabled:d,children:x.map((t=>(0,e.createElement)(T,{...!Go(T)&&{ownerState:P},className:I.menuItem,key:t.label?t.label:t,value:t.value?t.value:t},t.label?t.label:t)))}),(0,Tr.jsx)(C$,{className:I.displayedRows,children:f({from:0===c?0:b*y+1,to:-1===c?(b+1)*y:-1===y?c:Math.min(c,(b+1)*y),count:-1===c?-1:c,page:b})}),(0,Tr.jsx)(a,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:g,page:b,rowsPerPage:y,showFirstButton:C,showLastButton:S,slotProps:k.actions,slots:M.actions,getItemAriaLabel:p,disabled:d})]})})})),R$=Ir(M$)((e=>{let{theme:t}=e;return{maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${h$.selectLabel}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"block"}},[`& .${h$.input}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"inline-flex"}}}})),P$=e=>{let{from:t,to:n,count:r,estimated:o}=e;return o?`${t}\u2013${n} of ${-1!==r?r:`more than ${o>n?o:n}`}`:`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`},I$=e.forwardRef((function(t,n){const r=Uw(),o=rw(),a=Gx(r,zM),i=Gx(r,BM),l=Gx(r,UM),{paginationMode:s,loading:u,estimatedRowCount:c}=o,d=e.useMemo((()=>-1===i&&"server"===s&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{}),[u,s,i]),p=e.useMemo((()=>Math.max(0,l-1)),[l]),f=e.useMemo((()=>-1===i||a.page<=p?a.page:p),[p,a.page,i]),h=e.useCallback((e=>{const t=Number(e.target.value);r.current.setPageSize(t)}),[r]),m=e.useCallback(((e,t)=>{r.current.setPage(t)}),[r]);const g=(e=>{for(let t=0;t<o.pageSizeOptions.length;t+=1){const n=o.pageSizeOptions[t];if("number"===typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1})(a.pageSize)?o.pageSizeOptions:[],v=r.current.getLocaleText("MuiTablePagination"),b=(y=v.labelDisplayedRows||P$,x=c,e=>{let{from:t,to:n,count:r,page:o}=e;return y({from:t,to:n,count:r,page:o,estimated:x})});var y,x;return(0,Tr.jsx)(R$,fe({ref:n,component:"div",count:i,page:f,rowsPerPageOptions:g,rowsPerPage:a.pageSize,onPageChange:m,onRowsPerPageChange:h},d,v,{labelDisplayedRows:b},t))})),A$=["className"],T$=Yw("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function $$(e){const{className:t}=e,n=Ai(e,A$),r=rw(),a=(e=>{const{classes:t}=e;return qu({root:["panelContent"]},Dx,t)})(r);return(0,Tr.jsx)(T$,fe({className:o(a.root,t),ownerState:r},n))}const E$=["className"],D$=Yw("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5),display:"flex",justifyContent:"space-between"}}));function O$(e){const{className:t}=e,n=Ai(e,E$),r=rw(),a=(e=>{const{classes:t}=e;return qu({root:["panelFooter"]},Dx,t)})(r);return(0,Tr.jsx)(D$,fe({className:o(a.root,t),ownerState:r},n))}const _$=["className","slotProps"],F$=Ir("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),L$=()=>!0,j$=e.forwardRef((function(e,t){const{className:n,slotProps:r={}}=e,a=Ai(e,_$),i=rw(),l=(e=>{const{classes:t}=e;return qu({root:["panelWrapper"]},Dx,t)})(i);return(0,Tr.jsx)(el,fe({open:!0,disableEnforceFocus:!0,isEnabled:L$},r.TrapFocus,{children:(0,Tr.jsx)(F$,fe({ref:t,tabIndex:-1,className:o(l.root,n),ownerState:i},a))}))})),N$=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],z$=["InputComponentProps"],B$=Ir("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing(1)}})),H$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((e=>{let{theme:t}=e;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),V$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),W$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),U$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),G$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),K$=e=>e.headerName||e.field,Y$=new Intl.Collator,Z$=e.forwardRef((function(t,n){const{item:r,hasMultipleFilters:a,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:s,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:c,focusElementRef:d,logicOperators:p=[XC.And,XC.Or],columnsSort:f,filterColumns:h,deleteIconProps:m={},logicOperatorInputProps:g={},operatorInputProps:v={},columnInputProps:b={},valueInputProps:y={},readOnly:x}=t,w=Ai(t,N$),C=Uw(),S=Gx(C,$w),k=Gx(C,Nw),M=Gx(C,kM),R=Ys(),P=Ys(),I=Ys(),A=Ys(),T=rw(),$=(e=>{const{classes:t}=e;return qu({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Dx,t)})(T),E=e.useRef(null),D=e.useRef(null),O=M.logicOperator??XC.And,_=a&&p.length>0,F=T.slotProps?.baseFormControl||{},L=(T.slotProps?.baseSelect||{}).native??!1,j=T.slotProps?.baseInputLabel||{},N=T.slotProps?.baseSelectOption||{},{InputComponentProps:z}=y,B=Ai(y,z$),{filteredColumns:H,selectedField:V}=e.useMemo((()=>{let e=r.field;const t=!1===S[r.field].filterable?S[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(void 0===h||"function"!==typeof h)return{filteredColumns:k,selectedField:e};const n=h({field:r.field,columns:k,currentFilters:M?.items||[]});return{filteredColumns:k.filter((t=>{const o=n.includes(t.field);return t.field!==r.field||o||(e=void 0),o})),selectedField:e}}),[h,M?.items,k,r.field,S]),W=e.useMemo((()=>{switch(f){case"asc":return H.sort(((e,t)=>Y$.compare(K$(e),K$(t))));case"desc":return H.sort(((e,t)=>-Y$.compare(K$(e),K$(t))));default:return H}}),[H,f]),U=r.field?C.current.getColumn(r.field):null,G=e.useMemo((()=>r.operator&&U?U.filterOperators?.find((e=>e.value===r.operator)):null),[r,U]),K=e.useCallback((e=>{const t=e.target.value,n=C.current.getColumn(t);if(n.field===U.field)return;const o=n.filterOperators.find((e=>e.value===r.operator))||n.filterOperators[0];let a=!o.InputComponent||o.InputComponent!==G?.InputComponent||n.type!==U.type?void 0:r.value;if("singleSelect"===n.type&&void 0!==a){const e=n,t=xk(e);Array.isArray(a)?a=a.filter((n=>void 0!==wk(n,t,e?.getOptionValue))):void 0===wk(r.value,t,e?.getOptionValue)&&(a=void 0)}l(fe({},r,{field:t,operator:o.value,value:a}))}),[C,l,r,U,G]),Y=e.useCallback((e=>{const t=e.target.value,n=U?.filterOperators.find((e=>e.value===t));l(fe({},r,{operator:t,value:!n?.InputComponent||n?.InputComponent!==G?.InputComponent?void 0:r.value}))}),[l,r,U,G]),Z=e.useCallback((e=>{const t=e.target.value===XC.And.toString()?XC.And:XC.Or;c(t)}),[c]);return e.useImperativeHandle(d,(()=>({focus:()=>{G?.InputComponent?E?.current?.focus():D.current.focus()}})),[G]),(0,Tr.jsxs)(B$,fe({ref:n,className:$.root,"data-id":r.id,ownerState:T},w,{children:[(0,Tr.jsx)(H$,fe({variant:"standard",as:T.slots.baseFormControl},F,m,{className:o($.deleteIcon,F.className,m.className),ownerState:T,children:(0,Tr.jsx)(T.slots.baseIconButton,fe({"aria-label":C.current.getLocaleText("filterPanelDeleteIconLabel"),title:C.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{i(r)},size:"small",disabled:x},T.slotProps?.baseIconButton,{children:(0,Tr.jsx)(T.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,Tr.jsx)(V$,fe({variant:"standard",as:T.slots.baseFormControl},F,g,{sx:[_?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},F.sx,g.sx],className:o($.logicOperatorInput,F.className,g.className),ownerState:T,children:(0,Tr.jsx)(T.slots.baseSelect,fe({inputProps:{"aria-label":C.current.getLocaleText("filterPanelLogicOperator")},value:O??"",onChange:Z,disabled:!!u||1===p.length,native:L},T.slotProps?.baseSelect,{children:p.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.toString(),value:t.toString()}),C.current.getLocaleText((e=>{switch(e){case XC.And:return"filterPanelOperatorAnd";case XC.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(t)))))}))})),(0,Tr.jsxs)(W$,fe({variant:"standard",as:T.slots.baseFormControl},F,b,{className:o($.columnInput,F.className,b.className),ownerState:T,children:[(0,Tr.jsx)(T.slots.baseInputLabel,fe({},j,{htmlFor:R,id:P,children:C.current.getLocaleText("filterPanelColumns")})),(0,Tr.jsx)(T.slots.baseSelect,fe({labelId:P,id:R,label:C.current.getLocaleText("filterPanelColumns"),value:V??"",onChange:K,native:L,disabled:x},T.slotProps?.baseSelect,{children:W.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.field,value:t.field}),K$(t))))}))]})),(0,Tr.jsxs)(U$,fe({variant:"standard",as:T.slots.baseFormControl},F,v,{className:o($.operatorInput,F.className,v.className),ownerState:T,children:[(0,Tr.jsx)(T.slots.baseInputLabel,fe({},j,{htmlFor:I,id:A,children:C.current.getLocaleText("filterPanelOperator")})),(0,Tr.jsx)(T.slots.baseSelect,fe({labelId:A,label:C.current.getLocaleText("filterPanelOperator"),id:I,value:r.operator,onChange:Y,native:L,inputRef:D,disabled:x},T.slotProps?.baseSelect,{children:U?.filterOperators?.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.value,value:t.value}),t.label||C.current.getLocaleText(`filterOperator${of(t.value)}`))))}))]})),(0,Tr.jsx)(G$,fe({variant:"standard",as:T.slots.baseFormControl},F,B,{className:o($.valueInput,F.className,B.className),ownerState:T,children:G?.InputComponent?(0,Tr.jsx)(G.InputComponent,fe({apiRef:C,item:r,applyValue:l,focusElementRef:E,disabled:x},G.InputComponentProps,z),r.field):null}))]}))})),q$=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],X$=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),Q$=e.forwardRef((function(t,n){const r=Uw(),o=rw(),a=Gx(r,kM),i=Gx(r,Nw),l=Gx(r,zw),s=e.useRef(null),u=e.useRef(null),{logicOperators:c=[XC.And,XC.Or],columnsSort:d,filterFormProps:p,getColumnForNewFilter:f,disableAddFilterButton:h=!1,disableRemoveAllButton:m=!1}=t,g=Ai(t,q$),v=r.current.upsertFilterItem,b=e.useCallback((e=>{r.current.setFilterLogicOperator(e)}),[r]),y=e.useCallback((()=>{let e;if(f&&"function"===typeof f){const t=f({currentFilters:a?.items||[],columns:i});if(null===t)return null;e=i.find((e=>{let{field:n}=e;return n===t}))}else e=i.find((e=>e.filterOperators?.length));return e?X$(e):null}),[a?.items,i,f]),x=e.useCallback((()=>{if(void 0===f||"function"!==typeof f)return y();const e=a.items.length?a.items:[y()].filter(Boolean),t=f({currentFilters:e,columns:i});if(null===t)return null;const n=i.find((e=>{let{field:n}=e;return n===t}));return n?X$(n):null}),[a.items,i,f,y]),w=e.useMemo((()=>a.items.length?a.items:(u.current||(u.current=y()),u.current?[u.current]:[])),[a.items,y]),C=w.length>1,{readOnlyFilters:S,validFilters:k}=e.useMemo((()=>w.reduce(((e,t)=>(l[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[w,l]),M=e.useCallback((()=>{const e=x();e&&r.current.upsertFilterItems([...w,e])}),[r,x,w]),R=e.useCallback((e=>{const t=1===k.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,k.length]),P=e.useCallback((()=>1===k.length&&void 0===k[0].value?(r.current.deleteFilterItem(k[0]),r.current.hideFilterPanel()):r.current.setFilterModel(fe({},a,{items:S}),"removeAllFilterItems")),[r,S,a,k]);return e.useEffect((()=>{c.length>0&&a.logicOperator&&!c.includes(a.logicOperator)&&b(c[0])}),[c,b,a.logicOperator]),e.useEffect((()=>{k.length>0&&s.current.focus()}),[k.length]),(0,Tr.jsxs)(j$,fe({ref:n},g,{children:[(0,Tr.jsxs)($$,{children:[S.map(((e,t)=>(0,Tr.jsx)(Z$,fe({item:e,applyFilterChanges:v,deleteFilter:R,hasMultipleFilters:C,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:b,focusElementRef:null,readOnly:!0,logicOperators:c,columnsSort:d},p),null==e.id?t:e.id))),k.map(((e,t)=>(0,Tr.jsx)(Z$,fe({item:e,applyFilterChanges:v,deleteFilter:R,hasMultipleFilters:C,showMultiFilterOperators:S.length+t>0,disableMultiFilterOperator:S.length+t!==1,applyMultiFilterOperatorChanges:b,focusElementRef:t===k.length-1?s:null,logicOperators:c,columnsSort:d},p),null==e.id?t+S.length:e.id)))]}),o.disableMultipleColumnsFiltering||h&&m?null:(0,Tr.jsxs)(O$,{children:[h?(0,Tr.jsx)("span",{}):(0,Tr.jsx)(o.slots.baseButton,fe({onClick:M,startIcon:(0,Tr.jsx)(o.slots.filterPanelAddIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&k.length>0?(0,Tr.jsx)(o.slots.baseButton,fe({onClick:P,startIcon:(0,Tr.jsx)(o.slots.filterPanelRemoveAllIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}));function J$(e){return Hr("MuiFormControlLabel",e)}const eE=Vr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tE=Ir("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eE.label}`]:t.label},t.root,t[`labelPlacement${po(n.labelPlacement)}`]]}})(co((e=>{let{theme:t}=e;return{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eE.disabled}`]:{cursor:"default"},[`& .${eE.label}`]:{[`&.${eE.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:e=>{let{labelPlacement:t}=e;return"start"===t||"top"===t||"bottom"===t},style:{marginLeft:16}}]}}))),nE=Ir("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(co((e=>{let{theme:t}=e;return{[`&.${eE.error}`]:{color:(t.vars||t).palette.error.main}}}))),rE=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:l={},control:s,disabled:u,disableTypography:c,inputRef:d,label:p,labelPlacement:f="end",name:h,onChange:m,required:g,slots:v={},slotProps:b={},value:y,...x}=r,w=Zo(),C=u??s.props.disabled??w?.disabled,S=g??s.props.required,k={disabled:C,required:S};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof s.props[e]&&"undefined"!==typeof r[e]&&(k[e]=r[e])}));const M=Ko({props:r,muiFormControl:w,states:["error"]}),R={...r,disabled:C,labelPlacement:f,required:S,error:M.error},P=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return pe({root:["root",n&&"disabled",`labelPlacement${po(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},J$,t)})(R),I={slots:v,slotProps:{...l,...b}},[A,T]=nl("typography",{elementType:wo,externalForwardedProps:I,ownerState:R});let $=p;return null==$||$.type===wo||c||($=(0,Tr.jsx)(A,{component:"span",...T,className:o(P.label,T?.className),children:$})),(0,Tr.jsxs)(tE,{className:o(P.root,i),ownerState:R,ref:n,...x,children:[e.cloneElement(s,k),S?(0,Tr.jsxs)("div",{children:[$,(0,Tr.jsxs)(nE,{ownerState:R,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):$]})})),oE=rE,aE=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,iE=new Intl.Collator;function lE(t){const n=Uw(),r=e.useRef(null),o=Gx(n,Ew),a=jx((()=>Dw(n))).current,i=Gx(n,Dw),l=rw(),[s,u]=e.useState(""),c=(e=>{const{classes:t}=e;return qu({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Dx,t)})(l),{sort:d,searchPredicate:p=aE,autoFocusSearchField:f=!0,disableShowHideToggle:h=!1,disableResetButton:m=!1,toggleAllMode:g="all",getTogglableColumns:v,searchInputProps:b}=t,y=e.useMemo((()=>((e,t)=>{const n=new Set(Object.keys(e).filter((t=>!1===e[t]))),r=new Set(Object.keys(t).filter((e=>!1===t[e])));if(n.size!==r.size)return!1;let o=!0;return n.forEach((e=>{r.has(e)||(o=!1)})),o})(i,a)),[i,a]),x=e.useMemo((()=>{switch(d){case"asc":return[...o].sort(((e,t)=>iE.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...o].sort(((e,t)=>-iE.compare(e.headerName||e.field,t.headerName||t.field)));default:return o}}),[o,d]),w=e=>{const{name:t}=e.target;n.current.setColumnVisibility(t,!1===i[t])},C=e.useMemo((()=>{const e=v?v(x):null,t=e?x.filter((t=>{let{field:n}=t;return e.includes(n)})):x;return s?t.filter((e=>p(e,s.toLowerCase()))):t}),[x,s,p,v]),S=e.useCallback((e=>{const t=fe({},Dw(n)),r=v?v(o):null;return("filteredOnly"===g?C:o).forEach((n=>{n.hideable&&(null==r||r.includes(n.field))&&(e?delete t[n.field]:t[n.field]=!1)})),n.current.setColumnVisibilityModel(t)}),[n,o,v,g,C]),k=e.useCallback((e=>{u(e.target.value)}),[]),M=e.useMemo((()=>C.filter((e=>e.hideable))),[C]),R=e.useMemo((()=>M.every((e=>null==i[e.field]||!1!==i[e.field]))),[i,M]),P=e.useMemo((()=>M.every((e=>!1===i[e.field]))),[i,M]),I=e.useRef(null);e.useEffect((()=>{f?r.current.focus():I.current&&"function"===typeof I.current.focus&&I.current.focus()}),[f]);let A=!1;const T=e=>!1===A&&!1!==e.hideable&&(A=!0,!0),$=e.useCallback((()=>{u(""),r.current.focus()}),[]);return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(uE,{className:c.header,ownerState:l,children:(0,Tr.jsx)(cE,fe({as:l.slots.baseTextField,ownerState:l,placeholder:n.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,className:c.searchInput,value:s,onChange:k,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:(0,Tr.jsx)(l.slots.baseInputAdornment,{position:"start",children:(0,Tr.jsx)(l.slots.quickFilterIcon,{})}),endAdornment:(0,Tr.jsx)(l.slots.baseIconButton,fe({"aria-label":n.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[s?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:$},l.slotProps?.baseIconButton,{children:(0,Tr.jsx)(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":n.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},l.slotProps?.baseTextField,b))}),(0,Tr.jsxs)(sE,{className:c.root,ownerState:l,children:[C.map((e=>(0,Tr.jsx)(oE,{className:c.row,control:(0,Tr.jsx)(l.slots.baseCheckbox,fe({disabled:!1===e.hideable,checked:!1!==i[e.field],onClick:w,name:e.field,sx:{p:.5},inputRef:T(e)?I:void 0},l.slotProps?.baseCheckbox)),label:e.headerName||e.field},e.field))),0===C.length&&(0,Tr.jsx)(pE,{ownerState:l,children:n.current.getLocaleText("columnsManagementNoColumns")})]}),h&&m||!(C.length>0)?null:(0,Tr.jsxs)(dE,{ownerState:l,className:c.footer,children:[h?(0,Tr.jsx)("span",{}):(0,Tr.jsx)(oE,{control:(0,Tr.jsx)(l.slots.baseCheckbox,fe({disabled:0===M.length,checked:R,indeterminate:!R&&!P,onClick:()=>S(!R),name:n.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},l.slotProps?.baseCheckbox)),label:n.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:(0,Tr.jsx)(l.slots.baseButton,fe({onClick:()=>n.current.setColumnVisibilityModel(a),disabled:y},l.slotProps?.baseButton,{children:n.current.getLocaleText("columnsManagementReset")}))]})]})}const sE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})((e=>{let{theme:t}=e;return{padding:t.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"}})),uE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})((e=>{let{theme:t}=e;return{padding:t.spacing(1.5,3)}})),cE=Ir(Ps,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})((e=>{let{theme:t}=e;return{[`& .${ta.root}`]:{padding:t.spacing(0,1.5,0,1.5)},[`& .${ta.input}::-webkit-search-decoration,\n & .${ta.input}::-webkit-search-cancel-button,\n & .${ta.input}::-webkit-search-results-button,\n & .${ta.input}::-webkit-search-results-decoration`]:{display:"none"}}})),dE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${t.palette.divider}`}})),pE=Ir("div")((e=>{let{theme:t}=e;return{padding:t.spacing(.5,0),color:t.palette.grey[500]}}));const fE=["children","className","classes"],hE=tc("MuiDataGrid",["panel","paper"]),mE=Ir(iv,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),gE=Ir(Pl,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${t.spacing(.5)})`,overflow:"auto"}})),vE=e.forwardRef(((t,n)=>{const{children:r,className:a}=t,i=Ai(t,fE),l=Uw(),s=rw(),u=hE,[c,d]=e.useState(!1),p=e.useCallback((()=>{l.current.hidePreferences()}),[l]),f=e.useCallback((e=>{"Escape"===e.key&&l.current.hidePreferences()}),[l]),h=e.useMemo((()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}]),[]),[m,g]=e.useState(null);return e.useEffect((()=>{const e=l.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&g(e)}),[l]),m?(0,Tr.jsx)(mE,fe({ref:n,placement:"bottom-start",className:o(u.panel,a),ownerState:s,anchorEl:m,modifiers:h},i,{children:(0,Tr.jsx)(Fk,{mouseEvent:"onMouseUp",onClickAway:p,children:(0,Tr.jsx)(gE,{className:u.paper,ownerState:s,elevation:8,onKeyDown:f,children:c&&r})})})):null}));let bE;const yE=["column","rowId","editCellState","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],xE=["changeReason","unstable_updateValueOnRender"];let wE=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const CE={[wE.LEFT]:Pw.LEFT,[wE.RIGHT]:Pw.RIGHT,[wE.NONE]:void 0,[wE.VIRTUAL]:void 0},SE={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:vk.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}};const kE=e.forwardRef((function(t,n){const{column:r,rowId:a,editCellState:i,align:l,colIndex:s,width:u,className:c,style:d,colSpan:p,disableDragEvents:f,isNotVisible:h,pinnedOffset:m,pinnedPosition:g,sectionIndex:v,sectionLength:b,gridHasFiller:y,onClick:x,onDoubleClick:w,onMouseDown:C,onMouseUp:S,onMouseOver:k,onKeyDown:M,onKeyUp:R,onDragEnter:P,onDragOver:I}=t,A=Ai(t,yE),T=Uw(),$=rw(),E=ni(),D=r.field,O=Gx(T,(()=>{if(!T.current.getRow(a))return SE;const e=T.current.getCellParams(a,D);return e.api=T.current,e}),Wx),_=Gx(T,(()=>T.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:a,field:D}))),F=Gx(T,pR),L=Gx(T,fR),{cellMode:j,hasFocus:N,isEditable:z=!1,value:B}=O,H="actions"===r.type&&r.getActions?.(T.current.getRowParams(a)).some((e=>!e.props.disabled)),V="view"!==j&&z||H?-1:O.tabIndex,{classes:W,getCellClassName:U}=$,G=[Gx(T,(()=>T.current.unstable_applyPipeProcessors("cellClassName",[],{id:a,field:D}).filter(Boolean).join(" ")))];r.cellClassName&&G.push("function"===typeof r.cellClassName?r.cellClassName(O):r.cellClassName),"flex"===r.display&&G.push(Ox["cell--flex"]),U&&G.push(U(O));const K=O.formattedValue??B,Y=e.useRef(null),Z=Ns(n,Y),q=e.useRef(null),X=$.cellSelection??!1,Q=CE[g],J=(e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:a,isSelected:i,isSelectionMode:l,classes:s}=e;return qu({root:["cell",`cell--text${of(t)}`,i&&"selected",a&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===wE.LEFT&&"cell--pinnedLeft",o===wE.RIGHT&&"cell--pinnedRight",l&&!a&&"cell--selectionMode"]},Dx,s)})({align:l,showLeftBorder:HT(Q,v),showRightBorder:BT(Q,v,b,$.showCellVerticalBorder,y),isEditable:z,classes:$.classes,pinnedPosition:g,isSelected:_,isSelectionMode:X}),ee=e.useCallback((e=>t=>{const n=T.current.getCellParams(a,D||"");T.current.publishEvent(e,n,t),S&&S(t)}),[T,D,S,a]),te=e.useCallback((e=>t=>{const n=T.current.getCellParams(a,D||"");T.current.publishEvent(e,n,t),C&&C(t)}),[T,D,C,a]),ne=e.useCallback(((e,t)=>n=>{if(!T.current.getRow(a))return;const r=T.current.getCellParams(a,D||"");T.current.publishEvent(e,r,n),t&&t(n)}),[T,D,a]),re=F[a]?.[D]??!1,oe=L[a]?.[D]??1,ae=e.useMemo((()=>{if(h)return{padding:0,opacity:0,width:0,height:0,border:0};const e=fe({"--width":`${u}px`},d),t=g===wE.LEFT,n=g===wE.RIGHT;if(t||n){let n=t?"left":"right";E&&(n=t?"right":"left"),e[n]=m}return oe>1&&(e.height=`calc(var(--height) * ${oe})`,e.zIndex=5,(t||n)&&(e.zIndex=6)),e}),[u,h,d,m,g,E,oe]);if(e.useEffect((()=>{if(!N||j===vk.Edit)return;const e=lv(T.current.rootElementRef.current);if(Y.current&&!Y.current.contains(e.activeElement)){const e=Y.current.querySelector('[tabindex="0"]'),t=q.current||e||Y.current;if(void 0===bE&&document.createElement("div").focus({get preventScroll(){return bE=!0,!1}}),bE)t.focus({preventScroll:!0});else{const e=T.current.getScrollPosition();t.focus(),T.current.scroll(e)}}}),[N,j,T]),re)return(0,Tr.jsx)("div",{"data-colindex":s,role:"presentation",style:fe({width:"var(--width)"},ae)});if(O===SE)return null;let ie,le,se=A.onFocus;if(null===i&&r.renderCell&&(ie=r.renderCell(O)),null!==i&&r.renderEditCell){const e=T.current.getRowWithUpdatedValues(a,r.field),t=Ai(i,xE),n=fe({},O,{row:e,formattedValue:r.valueFormatter?r.valueFormatter(i.value,e,r,T):O.formattedValue},t);ie=r.renderEditCell(n),G.push(Ox["cell--editing"]),G.push(W?.["cell--editing"])}if(void 0===ie){const e=K?.toString();ie=e,le=e}e.isValidElement(ie)&&H&&(ie=e.cloneElement(ie,{focusElementRef:q}));const ue=f?null:{onDragEnter:ne("cellDragEnter",P),onDragOver:ne("cellDragOver",I)};return(0,Tr.jsx)("div",fe({ref:Z,className:o(J.root,G,c),role:"gridcell","data-field":D,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":p,"aria-rowspan":oe,style:ae,title:le,tabIndex:V,onClick:ne("cellClick",x),onDoubleClick:ne("cellDoubleClick",w),onMouseOver:ne("cellMouseOver",k),onMouseDown:te("cellMouseDown"),onMouseUp:ee("cellMouseUp"),onKeyDown:ne("cellKeyDown",M),onKeyUp:ne("cellKeyUp",R)},ue,A,{onFocus:se,children:ie}))})),ME=Zw(kE),RE=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function PE(e){let{width:t}=e;return t?(0,Tr.jsx)("div",{role:"presentation",className:o(Ox.cell,Ox.cellEmpty),style:{"--width":`${t}px`}}):null}const IE=e.forwardRef((function(t,n){const{selected:r,rowId:a,row:i,index:l,style:s,rowHeight:u,className:c,visibleColumns:d,pinnedColumns:p,offsetLeft:f,dimensions:h,renderContext:m,focusedColumnIndex:g,isFirstVisible:v,isLastVisible:b,isNotVisible:y,showBottomBorder:x,onClick:w,onDoubleClick:C,onMouseEnter:S,onMouseLeave:k,onMouseOut:M,onMouseOver:R}=t,P=Ai(t,RE),I=Yx(),A=_R(),T=e.useRef(null),$=rw(),E=qM(I,$),D=Gx(I,wM),O=Gx(I,zS),_=Gx(I,Lw),F=Gx(I,AI),L=Ns(T,n),j=I.current.getRowNode(a),N=h.hasScrollY?h.scrollbarSize:0,z=h.columnsTotalWidth<h.viewportOuterSize.width,B=I.current.getRowMode(a)===bk.Edit,H=$.editMode===gk.Row,V=void 0!==g,W=V&&g>=p.left.length&&g<m.firstColumnIndex,U=V&&g<d.length-p.right.length&&g>=m.lastColumnIndex,G=function(e,t){return qu(t,Dx,e)}($.classes,{root:["row",r&&"selected",H&&"row--editable",B&&"row--editing",v&&"row--firstVisible",b&&"row--lastVisible",x&&"row--borderBottom","auto"===u&&"row--dynamicHeight"]}),K=A.hooks.useGridRowAriaAttributes();e.useLayoutEffect((()=>{if(E.range){const e=I.current.getRowIndexRelativeToVisibleRows(a);void 0!==e&&I.current.unstable_setLastMeasuredRowIndex(e)}if(T.current&&"auto"===u)return I.current.observeRowHeight(T.current,a)}),[I,E.range,u,a]);const Y=e.useCallback(((e,t)=>n=>{vI(n)||I.current.getRow(a)&&(I.current.publishEvent(e,I.current.getRowParams(a),n),t&&t(n))}),[I,a]),Z=e.useCallback((e=>{const t=hI(e.target,Ox.cell),n=t?.getAttribute("data-field");if(n){if(n===FP.field)return;if(n===rk)return;if("__reorder__"===n)return;if(I.current.getCellMode(a,n)===vk.Edit)return;const e=I.current.getColumn(n);if(e?.type===Vk)return}Y("rowClick",w)(e)}),[I,w,Y,a]),{slots:q,slotProps:X,disableColumnReorder:Q}=$,J=$.rowReordering,ee=Gx(I,(()=>fe({},I.current.getRowHeightEntry(a))),Wx),te=e.useMemo((()=>{if(y)return{opacity:0,width:0,height:0};const e=fe({},s,{maxHeight:"auto"===u?"none":u,minHeight:u,"--height":"number"===typeof u?`${u}px`:u});if(ee.spacingTop){e["border"===$.rowSpacingType?"borderTopWidth":"marginTop"]=ee.spacingTop}if(ee.spacingBottom){const t="border"===$.rowSpacingType?"borderBottomWidth":"marginBottom";let n=e[t];"number"!==typeof n&&(n=parseInt(n||"0",10)),n+=ee.spacingBottom,e[t]=n}return e}),[y,u,s,ee,$.rowSpacingType]),ne=I.current.unstable_applyPipeProcessors("rowClassName",[],a),re=j?K(j,l):void 0;if("function"===typeof $.getRowClassName){const e=l-(E.range?.firstRowIndex||0),t=fe({},I.current.getRowParams(a),{isFirstVisible:0===e,isLastVisible:e===E.rows.length-1,indexRelativeToCurrentPage:e});ne.push($.getRowClassName(t))}const oe=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wE.NONE;const i=I.current.unstable_getCellColSpanInfo(a,n);if(i?.spannedByColSpan)return null;const l=i?.cellProps.width??e.computedWidth,s=i?.cellProps.colSpan??1,c=zT(CE[o],e.computedWidth,n,_,h);if("skeletonRow"===j?.type)return(0,Tr.jsx)(q.skeletonCell,{type:e.type,width:l,height:u,field:e.field,align:e.align},e.field);const d=F[a]?.[e.field]??null,p="__reorder__"===e.field,f=Object.keys(F).length>0,m=!(Q||e.disableReorder),g=J&&!D.length&&O<=1&&!f,v=!(m||p&&g),b=o===wE.VIRTUAL;return(0,Tr.jsx)(q.cell,fe({column:e,width:l,rowId:a,align:e.align||"left",colIndex:n,colSpan:s,disableDragEvents:v,editCellState:d,isNotVisible:b,pinnedOffset:c,pinnedPosition:o,sectionIndex:t,sectionLength:r,gridHasFiller:z},X?.cell),e.field)};if(!j)return null;const ae=p.left.map(((e,t)=>oe(e,t,t,p.left.length,wE.LEFT))),ie=p.right.map(((e,t)=>{const n=d.length-p.right.length+t;return oe(e,t,n,p.right.length,wE.RIGHT)})),le=d.length-p.left.length-p.right.length,se=[];W&&se.push(oe(d[g],g-p.left.length,g,le,wE.VIRTUAL));for(let e=m.firstColumnIndex;e<m.lastColumnIndex;e+=1){const t=d[e],n=e-p.left.length;t&&se.push(oe(t,n,e,le))}U&&se.push(oe(d[g],g-p.left.length,g,le,wE.VIRTUAL));const ue=i?{onClick:Z,onDoubleClick:Y("rowDoubleClick",C),onMouseEnter:Y("rowMouseEnter",S),onMouseLeave:Y("rowMouseLeave",k),onMouseOut:Y("rowMouseOut",M),onMouseOver:Y("rowMouseOver",R)}:null,ce=h.viewportOuterSize.width-h.columnsTotalWidth-N,de=Math.max(0,ce);return(0,Tr.jsxs)("div",fe({ref:L,"data-id":a,"data-rowindex":l,role:"row",className:o(...ne,G.root,c),style:te},re,ue,P,{children:[ae,(0,Tr.jsx)("div",{role:"presentation",className:Ox.cellOffsetLeft,style:{width:f}}),se,de>0&&(0,Tr.jsx)(PE,{width:de}),ie.length>0&&(0,Tr.jsx)("div",{role:"presentation",className:Ox.filler}),ie,0!==N&&(0,Tr.jsx)(WT,{pinnedRight:p.right.length>0})]}))})),AE=Zw(IE),TE=e.memo((t=>{const{colDef:n,open:r,columnMenuId:o,columnMenuButtonId:a,iconButtonRef:i}=t,l=Uw(),s=rw(),u=(e=>{const{classes:t,open:n}=e;return qu({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Dx,t)})(fe({},t,{classes:s.classes})),c=e.useCallback((e=>{e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(n.field)}),[l,n.field]);return(0,Tr.jsx)("div",{className:u.root,children:(0,Tr.jsx)(s.slots.baseTooltip,fe({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:(0,Tr.jsx)(s.slots.baseIconButton,fe({ref:i,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:c,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?o:void 0,id:a},s.slotProps?.baseIconButton,{children:(0,Tr.jsx)(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));function $E(e){let{columnMenuId:t,columnMenuButtonId:n,ContentComponent:r,contentComponentProps:o,field:a,open:i,target:l,onExited:s}=e;const u=Uw(),c=u.current.getColumn(a),d=hu((e=>{e&&(e.stopPropagation(),l?.contains(e.target))||u.current.hideColumnMenu()}));return l&&c?(0,Tr.jsx)(zk,{placement:"bottom-"+("right"===c.align?"start":"end"),open:i,target:l,onClose:d,onExited:s,children:(0,Tr.jsx)(r,fe({colDef:c,hideMenu:d,open:i,id:t,labelledby:n},o))}):null}const EE=["className","aria-label"],DE=Yw("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),OE=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,EE),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["columnHeaderTitle"]},Dx,t)})(a);return(0,Tr.jsx)(DE,fe({ref:t,className:o(i.root,n),ownerState:a},r))}));function _E(t){const{label:n,description:r}=t,o=rw(),a=e.useRef(null),[i,l]=e.useState(""),s=e.useCallback((()=>{if(!r&&a?.current){const t=(e=a.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;l(t?n:"")}var e}),[r,n]);return(0,Tr.jsx)(o.slots.baseTooltip,fe({title:r||i},o.slotProps?.baseTooltip,{children:(0,Tr.jsx)(OE,{onMouseOver:s,ref:a,children:n})}))}const FE=["resizable","resizing","height","side"];var LE=function(e){return e.Left="left",e.Right="right",e}(LE||{});function jE(t){const{height:n,side:r=LE.Right}=t,o=Ai(t,FE),a=rw(),i=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e;return qu({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${of(o)}`],icon:["iconSeparator"]},Dx,r)})(fe({},t,{side:r,classes:a.classes})),l=e.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,Tr.jsx)("div",fe({className:i.root,style:{minHeight:n}},o,{onClick:l,children:(0,Tr.jsx)(a.slots.columnResizeIcon,{className:i.icon})}))}const NE=e.memo(jE),zE=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],BE=e.forwardRef((function(t,n){const{classes:r,colIndex:a,height:i,isResizing:l,sortDirection:s,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:p,headerComponent:f,description:h,width:m,columnMenuIconButton:g=null,columnMenu:v=null,columnTitleIconButtons:b=null,headerClassName:y,label:x,resizable:w,draggableContainerProps:C,columnHeaderSeparatorProps:S,style:k}=t,M=Ai(t,zE),R=Yx(),P=rw(),I=e.useRef(null),A=Ns(I,n);let T="none";return null!=s&&(T="asc"===s?"ascending":"descending"),e.useLayoutEffect((()=>{const e=R.current.state.columnMenu;if(u&&!e.open){const e=I.current.querySelector('[tabindex="0"]')||I.current;e?.focus(),R.current.columnHeadersContainerRef?.current&&(R.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[R,u]),(0,Tr.jsxs)("div",fe({ref:A,className:o(r.root,y),style:fe({},k,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":a+1,"aria-sort":T},M,{children:[(0,Tr.jsxs)("div",fe({className:r.draggableContainer,draggable:p,role:"presentation"},C,{children:[(0,Tr.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,Tr.jsx)("div",{className:r.titleContainerContent,children:void 0!==f?f:(0,Tr.jsx)(_E,{label:x,description:h,columnWidth:m})}),b]}),g]})),(0,Tr.jsx)(NE,fe({resizable:!P.disableColumnResize&&!!w,resizing:l,height:i,side:d},S)),v]}))}));const HE=Zw((function(t){const{colDef:n,columnMenuOpen:r,colIndex:a,headerHeight:i,isResizing:l,isLast:s,sortDirection:u,sortIndex:c,filterItemsCounter:d,hasFocus:p,tabIndex:f,disableReorder:h,separatorSide:m,style:g,pinnedPosition:v,indexInSection:b,sectionLength:y,gridHasFiller:x}=t,w=Yx(),C=rw(),S=e.useRef(null),k=Ys(),M=Ys(),R=e.useRef(null),[P,I]=e.useState(r),A=e.useMemo((()=>!C.disableColumnReorder&&!h&&!n.disableReorder),[C.disableColumnReorder,h,n.disableReorder]);let T;n.renderHeader&&(T=n.renderHeader(w.current.getColumnHeaderParams(n.field)));const $=HT(v,b),E=BT(v,b,y,C.showColumnVerticalBorder,x),D=(e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:a,showLeftBorder:i,filterItemsCounter:l,pinnedPosition:s,isLastUnpinned:u,isSiblingFocused:c}=e,d=null!=o,p=null!=l&&l>0,f="number"===t.type;return qu({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",p&&"columnHeader--filtered",f&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","left"===s&&"columnHeader--pinnedLeft","right"===s&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",c&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dx,n)})(fe({},t,{classes:C.classes,showRightBorder:E,showLeftBorder:$})),O=e.useCallback((e=>t=>{vI(t)||w.current.publishEvent(e,w.current.getColumnHeaderParams(n.field),t)}),[w,n.field]),_=e.useMemo((()=>({onClick:O("columnHeaderClick"),onContextMenu:O("columnHeaderContextMenu"),onDoubleClick:O("columnHeaderDoubleClick"),onMouseOver:O("columnHeaderOver"),onMouseOut:O("columnHeaderOut"),onMouseEnter:O("columnHeaderEnter"),onMouseLeave:O("columnHeaderLeave"),onKeyDown:O("columnHeaderKeyDown"),onFocus:O("columnHeaderFocus"),onBlur:O("columnHeaderBlur")})),[O]),F=e.useMemo((()=>A?{onDragStart:O("columnHeaderDragStart"),onDragEnter:O("columnHeaderDragEnter"),onDragOver:O("columnHeaderDragOver"),onDragEnd:O("columnHeaderDragEnd")}:{}),[A,O]),L=e.useMemo((()=>({onMouseDown:O("columnSeparatorMouseDown"),onDoubleClick:O("columnSeparatorDoubleClick")})),[O]);e.useEffect((()=>{P||I(r)}),[P,r]);const j=e.useCallback((()=>{I(!1)}),[]),N=!C.disableColumnMenu&&!n.disableColumnMenu&&(0,Tr.jsx)(TE,{colDef:n,columnMenuId:k,columnMenuButtonId:M,open:P,iconButtonRef:R}),z=(0,Tr.jsx)($E,{columnMenuId:k,columnMenuButtonId:M,field:n.field,open:r,target:R.current,ContentComponent:C.slots.columnMenu,contentComponentProps:C.slotProps?.columnMenu,onExited:j}),B=n.sortingOrder??C.sortingOrder,H=(n.sortable||null!=u)&&!n.hideSortIcons&&!C.disableColumnSorting,V=(0,Tr.jsxs)(e.Fragment,{children:[!C.disableColumnFilter&&(0,Tr.jsx)(C.slots.columnHeaderFilterIconButton,fe({field:n.field,counter:d},C.slotProps?.columnHeaderFilterIconButton)),H&&(0,Tr.jsx)(C.slots.columnHeaderSortIcon,fe({field:n.field,direction:u,index:c,sortingOrder:B,disabled:!n.sortable},C.slotProps?.columnHeaderSortIcon))]});e.useLayoutEffect((()=>{const e=w.current.state.columnMenu;if(p&&!e.open){const e=S.current.querySelector('[tabindex="0"]')||S.current;e?.focus(),w.current.columnHeadersContainerRef?.current&&(w.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[w,p]);const W="function"===typeof n.headerClassName?n.headerClassName({field:n.field,colDef:n}):n.headerClassName,U=n.headerName??n.field;return(0,Tr.jsx)(BE,fe({ref:S,classes:D,columnMenuOpen:r,colIndex:a,height:i,isResizing:l,sortDirection:u,hasFocus:p,tabIndex:f,separatorSide:m,isDraggable:A,headerComponent:T,description:n.description,elementId:n.field,width:n.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:V,headerClassName:o(W,s&&Ox["columnHeader--last"]),label:U,resizable:!C.disableColumnResize&&!!n.resizable,"data-field":n.field,columnMenu:z,draggableContainerProps:F,columnHeaderSeparatorProps:L,style:g},_))}));function VE(t){const{groupId:n,width:r,depth:o,maxDepth:a,fields:i,height:l,colIndex:s,hasFocus:u,tabIndex:c,isLastColumn:d,pinnedPosition:p,style:f,indexInSection:h,sectionLength:m,gridHasFiller:g}=t,v=rw(),b=e.useRef(null),y=Uw(),x=Gx(y,Xk),w=n?x[n]:{},{headerName:C=n??"",description:S="",headerAlign:k}=w;let M;const R=n&&x[n]?.renderHeaderGroup,P=e.useMemo((()=>({groupId:n,headerName:C,description:S,depth:o,maxDepth:a,fields:i,colIndex:s,isLastColumn:d})),[n,C,S,o,a,i,s,d]);n&&R&&(M=R(P));const I=HT(p,h),A=BT(p,h,m,v.showColumnVerticalBorder,g),T=fe({},t,{classes:v.classes,showLeftBorder:I,showRightBorder:A,headerAlign:k,depth:o,isDragging:!1}),$=C??n,E=Ys(),D=null===n?`empty-group-cell-${E}`:n,O=(e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:a,showRightBorder:i,groupId:l,pinnedPosition:s}=e;return qu({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder","withBorderColor",null===l?"columnHeader--emptyGroup":"columnHeader--filledGroup","left"===s&&"columnHeader--pinnedLeft","right"===s&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dx,t)})(T);e.useLayoutEffect((()=>{if(u){const e=b.current.querySelector('[tabindex="0"]')||b.current;e?.focus()}}),[y,u]);const _=e.useCallback((e=>t=>{vI(t)||y.current.publishEvent(e,P,t)}),[y,P]),F=e.useMemo((()=>({onKeyDown:_("columnGroupHeaderKeyDown"),onFocus:_("columnGroupHeaderFocus"),onBlur:_("columnGroupHeaderBlur")})),[_]),L="function"===typeof w.headerClassName?w.headerClassName(P):w.headerClassName;return(0,Tr.jsx)(BE,fe({ref:b,classes:O,columnMenuOpen:!1,colIndex:s,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:M,headerClassName:L,description:S,elementId:D,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:$,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},F))}const WE=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),UE=["className"],GE=Yw("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),KE=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,UE),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["columnHeaders"]},Dx,t)})(a);return(0,Tr.jsx)(GE,fe({ref:t,className:o(i.root,n),ownerState:a},r,{role:"presentation"}))})),YE=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ZE=e.forwardRef((function(t,n){const{visibleColumns:r,sortColumnLookup:a,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=t,g=Ai(t,YE),{getInnerProps:v,getColumnHeadersRow:b,getColumnGroupHeadersRows:y}=(t=>{const{visibleColumns:n,sortColumnLookup:r,filterColumnLookup:a,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:s,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:h}=t,[m,g]=e.useState(""),[v,b]=e.useState(""),y=Yx(),x=ni(),w=rw(),C=Gx(y,Zx),S=Gx(y,oR),k=Gx(y,qk),M=Gx(y,Lw),R=Gx(y,lR),P=Gx(y,Fw),I=Gx(y,$w),A=RR(M,R,P.left.length),T=C.columnsTotalWidth<C.viewportOuterSize.width;e.useEffect((()=>{y.current.columnHeadersContainerRef.current&&(y.current.columnHeadersContainerRef.current.scrollLeft=0)}),[y]);const $=e.useCallback((e=>b(e.field)),[]),E=e.useCallback((()=>b("")),[]),D=e.useCallback((e=>g(e.field)),[]),O=e.useCallback((()=>g("")),[]),_=e.useMemo((()=>P.left.length?{firstColumnIndex:0,lastColumnIndex:P.left.length}:null),[P.left.length]),F=e.useMemo((()=>P.right.length?{firstColumnIndex:n.length-P.right.length,lastColumnIndex:n.length}:null),[P.right.length,n.length]);tC(y,"columnResizeStart",$),tC(y,"columnResizeStop",E),tC(y,"columnHeaderDragStart",D),tC(y,"columnHeaderDragEnd",O);const L=e=>{const{renderContext:t=R,maxLastColumn:r=n.length}=e||{},o=t.firstColumnIndex,a=S?t.lastColumnIndex:r;return{renderedColumns:n.slice(o,a),firstColumnToRender:o,lastColumnToRender:a}},j=function(t,n,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t?.position===Pw.RIGHT,l=void 0===t?.position,s=P.right.length>0&&i||0===P.right.length&&l,u=A-r;return(0,Tr.jsxs)(e.Fragment,{children:[l&&(0,Tr.jsx)("div",{role:"presentation",style:{width:u}}),n,l&&(0,Tr.jsx)("div",{role:"presentation",className:o(Ox.filler,a&&Ox["filler--borderBottom"])}),s&&(0,Tr.jsx)(WT,{header:!0,pinnedRight:i,borderBottom:a,borderTop:!1})]})},N=e=>{let t,{pinnedPosition:n,columnIndex:r,computedWidth:o}=e;const a=n===Pw.LEFT,i=n===Pw.RIGHT;if(a||i){const e=zT(n,o,r,M,C);let i=a?"left":"right";x&&(i=a?"right":"left"),"left"===n&&(t={[i]:e}),"right"===n&&(t={[i]:e})}return t},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{renderedColumns:n,firstColumnToRender:o}=L(e),l=[];for(let u=0;u<n.length;u+=1){const c=n[u],p=o+u,f=0===p,g=null!==i&&i.field===c.field||f&&!h?0:-1,b=null!==s&&s.field===c.field,y=d.open&&d.field===c.field,x=e?.position,w=N({pinnedPosition:x,columnIndex:p,computedWidth:c.computedWidth}),S=x===Pw.RIGHT?n[u-1]:n[u+1],k=!!S&&null!==s&&s.field===S.field,R=p+1===M.length-P.right.length;l.push((0,Tr.jsx)(HE,fe({},r[c.field],{columnMenuOpen:y,filterItemsCounter:a[c.field]&&a[c.field].length,headerHeight:C.headerHeight,isDragging:c.field===m,colDef:c,colIndex:p,isResizing:v===c.field,isLast:p===M.length-1,hasFocus:b,tabIndex:g,pinnedPosition:x,style:w,indexInSection:u,sectionLength:n.length,gridHasFiller:T,isLastUnpinned:R,isSiblingFocused:k},t),c.field))}return j(e,l,0)},B=e=>{let{depth:t,params:r}=e;const o=L(r);if(0===o.renderedColumns.length)return null;const{firstColumnToRender:a,lastColumnToRender:i}=o,s=f[t],d=n[a].field,h=k[d]?.[t]??null,m=s.findIndex((e=>{let{groupId:t,columnFields:n}=e;return t===h&&n.includes(d)})),g=n[i-1].field,v=k[g]?.[t]??null,b=s.findIndex((e=>{let{groupId:t,columnFields:n}=e;return t===v&&n.includes(g)})),y=s.slice(m,b+1).map((e=>fe({},e,{columnFields:e.columnFields.filter((e=>!1!==p[e]))}))).filter((e=>e.columnFields.length>0)),x=y[0].columnFields.indexOf(d),w=y[0].columnFields.slice(0,x).reduce(((e,t)=>e+(I[t].computedWidth??0)),0);let S=a;const M=y.map(((e,n)=>{let{groupId:o,columnFields:a}=e;const i=null!==u&&u.depth===t&&a.includes(u.field),s=null!==l&&l.depth===t&&a.includes(l.field)?0:-1,d={groupId:o,width:a.reduce(((e,t)=>e+I[t].computedWidth),0),fields:a,colIndex:S,hasFocus:i,tabIndex:s},p=r.position,f=N({pinnedPosition:p,columnIndex:S,computedWidth:d.width});S+=a.length;let h=n;return"left"===p&&(h=S-1),(0,Tr.jsx)(VE,{groupId:o,width:d.width,fields:d.fields,colIndex:d.colIndex,depth:t,isLastColumn:n===y.length-1,maxDepth:c,height:C.groupHeaderHeight,hasFocus:i,tabIndex:s,pinnedPosition:p,style:f,indexInSection:h,sectionLength:y.length,gridHasFiller:T},n)}));return j(r,M,w)};return{renderContext:R,leftRenderContext:_,rightRenderContext:F,pinnedColumns:P,visibleColumns:n,getCellOffsetStyle:N,getFillers:j,getColumnHeadersRow:()=>(0,Tr.jsxs)(WE,{role:"row","aria-rowindex":c+1,ownerState:w,className:Ox["row--borderBottom"],children:[_&&z({position:Pw.LEFT,renderContext:_,maxLastColumn:_.lastColumnIndex},{disableReorder:!0}),z({renderContext:R,maxLastColumn:n.length-P.right.length}),F&&z({position:Pw.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex},{disableReorder:!0,separatorSide:LE.Left})]}),getColumnsToRender:L,getColumnGroupHeadersRows:()=>{if(0===c)return null;const e=[];for(let t=0;t<c;t+=1)e.push((0,Tr.jsxs)(WE,{role:"row","aria-rowindex":t+1,ownerState:w,children:[_&&B({depth:t,params:{position:Pw.LEFT,renderContext:_,maxLastColumn:_.lastColumnIndex}}),B({depth:t,params:{renderContext:R}}),F&&B({depth:t,params:{position:Pw.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex}})]},t));return e},isDragging:!!m,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:a,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m});return(0,Tr.jsxs)(KE,fe({ref:n},g,v(),{children:[y(),b()]}))})),qE=Zw(ZE),XE=["displayOrder"],QE=["hideMenu","colDef","id","labelledby","className","children","open"],JE=Ir(Ci)((()=>({minWidth:248}))),eD=e.forwardRef((function(t,n){const{hideMenu:r,id:a,labelledby:i,className:l,children:s,open:u}=t,c=Ai(t,QE),d=e.useCallback((e=>{var t;"Tab"===e.key&&e.preventDefault(),("Tab"===(t=e.key)||"Escape"===t)&&r(e)}),[r]);return(0,Tr.jsx)(JE,fe({id:a,ref:n,className:o(Ox.menuList,l),"aria-labelledby":i,onKeyDown:d,autoFocus:u},c,{children:s}))})),tD=Ir("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(co((e=>{let{theme:t}=e;return{minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}}))),nD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiListItemIcon"}),{className:a,...i}=r,l=e.useContext(ci),s={...r,alignItems:l.alignItems},u=(e=>{const{alignItems:t,classes:n}=e;return pe({root:["root","flex-start"===t&&"alignItemsFlexStart"]},py,n)})(s);return(0,Tr.jsx)(tD,{className:o(u.root,a),ownerState:s,ref:n,...i})})),rD=nD,oD=Ir("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${my.primary}`]:t.primary},{[`& .${my.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${mo.root}:where(& .${my.primary})`]:{display:"block"},[`.${mo.root}:where(& .${my.secondary})`]:{display:"block"},variants:[{props:e=>{let{ownerState:t}=e;return t.primary&&t.secondary},style:{marginTop:6,marginBottom:6}},{props:e=>{let{ownerState:t}=e;return t.inset},style:{paddingLeft:56}}]}),aD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiListItemText"}),{children:a,className:i,disableTypography:l=!1,inset:s=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p,...f}=r,{dense:h}=e.useContext(ci);let m=null!=u?u:a,g=d;const v={...r,disableTypography:l,inset:s,primary:!!m,secondary:!!g,dense:h},b=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return pe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hy,t)})(v);return null==m||m.type===wo||l||(m=(0,Tr.jsx)(wo,{variant:h?"body2":"body1",className:b.primary,component:c?.variant?void 0:"span",...c,children:m})),null==g||g.type===wo||l||(g=(0,Tr.jsx)(wo,{variant:"body2",className:b.secondary,color:"textSecondary",...p,children:g})),(0,Tr.jsxs)(oD,{className:o(b.root,i),ownerState:v,ref:n,...f,children:[m,g]})})),iD=aD;function lD(t){const{colDef:n,onClick:r}=t,o=Uw(),a=rw(),i=1===Ow(o).filter((e=>!0!==e.disableColumnMenu)).length,l=e.useCallback((e=>{i||(o.current.setColumnVisibility(n.field,!1),r(e))}),[o,n.field,r,i]);return a.disableColumnSelector||!1===n.hideable?null:(0,Tr.jsxs)(xy,{onClick:l,disabled:i,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(a.slots.columnMenuHideIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuHideColumn")})]})}function sD(t){const{onClick:n}=t,r=Uw(),o=rw(),a=e.useCallback((e=>{n(e),r.current.showPreferences(Vw.columns)}),[r,n]);return o.disableColumnSelector?null:(0,Tr.jsxs)(xy,{onClick:a,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(o.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:r.current.getLocaleText("columnMenuManageColumns")})]})}const uD=["defaultSlots","defaultSlotProps","slots","slotProps"],cD={columnMenuSortItem:function(t){const{colDef:n,onClick:r}=t,o=Uw(),a=Gx(o,wM),i=rw(),l=e.useMemo((()=>{if(!n)return null;const e=a.find((e=>e.field===n.field));return e?.sort}),[n,a]),s=n.sortingOrder??i.sortingOrder,u=e.useCallback((e=>{r(e);const t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n.field,t===l?null:t)}),[o,n,r,l]);if(i.disableColumnSorting||!n||!n.sortable||!s.some((e=>!!e)))return null;const c=e=>{const t=o.current.getLocaleText(e);return"function"===typeof t?t(n):t};return(0,Tr.jsxs)(e.Fragment,{children:[s.includes("asc")&&"asc"!==l?(0,Tr.jsxs)(xy,{onClick:u,"data-value":"asc",children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:c("columnMenuSortAsc")})]}):null,s.includes("desc")&&"desc"!==l?(0,Tr.jsxs)(xy,{onClick:u,"data-value":"desc",children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:c("columnMenuSortDesc")})]}):null,s.includes(null)&&null!=l?(0,Tr.jsxs)(xy,{onClick:u,children:[(0,Tr.jsx)(rD,{}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})},columnMenuFilterItem:function(t){const{colDef:n,onClick:r}=t,o=Uw(),a=rw(),i=e.useCallback((e=>{r(e),o.current.showFilterPanel(n.field)}),[o,n.field,r]);return a.disableColumnFilter||!n.filterable?null:(0,Tr.jsxs)(xy,{onClick:i,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(a.slots.columnMenuFilterIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuFilter")})]})},columnMenuColumnsItem:function(t){return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(lD,fe({},t)),(0,Tr.jsx)(sD,fe({},t))]})}},dD={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},pD=e.forwardRef((function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:a,slotProps:i}=t,l=Ai(t,uD),s=(t=>{const n=Yx(),r=rw(),{defaultSlots:o,defaultSlotProps:a,slots:i={},slotProps:l={},hideMenu:s,colDef:u,addDividers:c=!0}=t,d=e.useMemo((()=>fe({},o,i)),[o,i]),p=e.useMemo((()=>{if(!l||0===Object.keys(l).length)return a;const e=fe({},l);return Object.entries(a).forEach((t=>{let[n,r]=t;e[n]=fe({},r,l[n]||{})})),e}),[a,l]),f=n.current.unstable_applyPipeProcessors("columnMenu",[],t.colDef),h=e.useMemo((()=>{const e=Object.keys(o);return Object.keys(i).filter((t=>!e.includes(t)))}),[i,o]);return e.useMemo((()=>{const e=Array.from(new Set([...f,...h])).filter((e=>null!=d[e])).sort(((e,t)=>{const n=p[e],r=p[t];return(Number.isFinite(n?.displayOrder)?n.displayOrder:100)-(Number.isFinite(r?.displayOrder)?r.displayOrder:100)}));return e.reduce(((t,n,o)=>{let a={colDef:u,onClick:s};const i=p[n];return i&&(a=fe({},a,Ai(i,XE))),c&&o!==e.length-1?[...t,[d[n],a],[r.slots.baseDivider,{}]]:[...t,[d[n],a]]}),[])}),[c,u,f,s,d,p,h,r.slots.baseDivider])})(fe({},l,{defaultSlots:r,defaultSlotProps:o,slots:a,slotProps:i}));return(0,Tr.jsx)(eD,fe({ref:n},l,{children:s.map(((e,t)=>{let[n,r]=e;return(0,Tr.jsx)(n,fe({},r),t)}))}))})),fD=e.forwardRef((function(e,t){return(0,Tr.jsx)(pD,fe({},e,{ref:t,defaultSlots:cD,defaultSlotProps:dD}))}));const hD=e.forwardRef((function(e,t){const n=Uw().current.getLocaleText("noResultsOverlayLabel");return(0,Tr.jsx)(NT,fe({ref:t},e,{children:n}))}));const mD=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=yC({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}};function gD(e){return Hr("MuiBadge",e)}const vD=Vr("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),bD=Ir("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yD=Ir("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${po(n.anchorOrigin.vertical)}${po(n.anchorOrigin.horizontal)}${po(n.overlap)}`],"default"!==n.color&&t[`color${po(n.color)}`],n.invisible&&t.invisible]}})(co((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(fo(["contrastText"])).map((e=>{let[n]=e;return{props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText}}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}})));function xD(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const wD=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:a,classes:i,component:l,components:s={},componentsProps:u={},children:c,overlap:d="rectangular",color:p="default",invisible:f=!1,max:h=99,badgeContent:m,slots:g,slotProps:v,showZero:b=!1,variant:y="standard",...x}=n,{badgeContent:w,invisible:C,max:S,displayValue:k}=mD({max:h,invisible:f,badgeContent:m,showZero:b}),M=yC({anchorOrigin:xD(r),color:p,overlap:d,variant:y,badgeContent:m}),R=C||null==w&&"dot"!==y,{color:P=p,overlap:I=d,anchorOrigin:A,variant:T=y}=R?M:n,$=xD(A),E="dot"!==T?k:void 0,D={...n,badgeContent:w,invisible:R,max:S,displayValue:E,showZero:b,anchorOrigin:$,color:P,overlap:I,variant:T},O=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return pe({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${po(n.vertical)}${po(n.horizontal)}`,`anchorOrigin${po(n.vertical)}${po(n.horizontal)}${po(o)}`,`overlap${po(o)}`,"default"!==t&&`color${po(t)}`]},gD,i)})(D),_=g?.root??s.Root??bD,F=g?.badge??s.Badge??yD,L=v?.root??u.root,j=v?.badge??u.badge,N=ui({elementType:_,externalSlotProps:L,externalForwardedProps:x,additionalProps:{ref:t,as:l},ownerState:D,className:o(L?.className,O.root,a)}),z=ui({elementType:F,externalSlotProps:j,ownerState:D,className:o(O.badge,j?.className)});return(0,Tr.jsxs)(_,{...N,children:[c,(0,Tr.jsx)(F,{...z,children:E})]})})),CD=wD;function SD(e){return Hr("PrivateSwitchBase",e)}Vr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kD=Ir(Pc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:e=>{let{edge:t,ownerState:n}=e;return"start"===t&&"small"!==n.size},style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:e=>{let{edge:t,ownerState:n}=e;return"end"===t&&"small"!==n.size},style:{marginRight:-12}}]}),MD=Ir("input",{shouldForwardProp:Pr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RD=e.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,className:i,defaultChecked:l,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:f,inputRef:h,name:m,onBlur:g,onChange:v,onFocus:b,readOnly:y,required:x=!1,tabIndex:w,type:C,value:S,...k}=e,[M,R]=es({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),P=Zo();let I=s;P&&"undefined"===typeof I&&(I=P.disabled);const A="checkbox"===C||"radio"===C,T={...e,checked:M,disabled:I,disableFocusRipple:u,edge:c},$=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pe({root:["root",n&&"checked",r&&"disabled",o&&`edge${po(o)}`],input:["input"]},SD,t)})(T);return(0,Tr.jsxs)(kD,{component:"span",className:o($.root,i),centerRipple:!0,focusRipple:!u,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),P&&P.onFocus&&P.onFocus(e)},onBlur:e=>{g&&g(e),P&&P.onBlur&&P.onBlur(e)},ownerState:T,ref:t,...k,children:[(0,Tr.jsx)(MD,{autoFocus:n,checked:r,defaultChecked:l,className:$.input,disabled:I,id:A?p:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),v&&v(e,t)},readOnly:y,ref:h,required:x,ownerState:T,tabIndex:w,type:C,..."checkbox"===C&&void 0===S?{}:{value:S},...f}),M?a:d]})})),PD=RD,ID=ms((0,Tr.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),AD=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TD=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $D(e){return Hr("MuiCheckbox",e)}const ED=Vr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DD=Ir(PD,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${po(n.size)}`],"default"!==n.color&&t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${ED.checked}, &.${ED.indeterminate}`]:{color:(t.vars||t).palette[n].main},[`&.${ED.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}}))),OD=(0,Tr.jsx)(AD,{}),_D=(0,Tr.jsx)(ID,{}),FD=(0,Tr.jsx)(TD,{}),LD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiCheckbox"}),{checkedIcon:a=OD,color:i="primary",icon:l=_D,indeterminate:s=!1,indeterminateIcon:u=FD,inputProps:c,size:d="medium",disableRipple:p=!1,className:f,...h}=r,m=s?u:l,g=s?u:a,v={...r,disableRipple:p,color:i,indeterminate:s,size:d},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a=pe({root:["root",n&&"indeterminate",`color${po(r)}`,`size${po(o)}`]},$D,t);return{...t,...a}})(v);return(0,Tr.jsx)(DD,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:e.cloneElement(m,{fontSize:m.props.fontSize??d}),checkedIcon:e.cloneElement(g,{fontSize:g.props.fontSize??d}),ownerState:v,ref:n,className:o(b.root,f),disableRipple:p,...h,classes:b})})),jD=LD;function ND(e){return Hr("MuiTooltip",e)}const zD=Vr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function BD(e){return Math.round(1e5*e)/1e5}const HD=Ir(iv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(co((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInteractive},style:{pointerEvents:"auto"}},{props:e=>{let{open:t}=e;return!t},style:{pointerEvents:"none"}},{props:e=>{let{ownerState:t}=e;return t.arrow},style:{[`&[data-popper-placement*="bottom"] .${zD.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${zD.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${zD.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${zD.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{[`&[data-popper-placement*="right"] .${zD.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{[`&[data-popper-placement*="right"] .${zD.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{[`&[data-popper-placement*="left"] .${zD.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{[`&[data-popper-placement*="left"] .${zD.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}}))),VD=Ir("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${po(n.placement.split("-")[0])}`]]}})(co((e=>{let{theme:t}=e;return{backgroundColor:t.vars?t.vars.palette.Tooltip.bg:wn(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${zD.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${zD.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${zD.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:e=>{let{ownerState:t}=e;return t.arrow},style:{position:"relative",margin:0}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${BD(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:e=>{let{ownerState:t}=e;return!t.isRtl},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:e=>{let{ownerState:t}=e;return!t.isRtl&&t.touch},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl&&t.touch},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[`.${zD.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[`.${zD.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}}))),WD=Ir("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(co((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:wn(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})));let UD=!1;const GD=new Pi;let KD={x:0,y:0};function YD(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t&&t(n,...o),e(n,...o)}}const ZD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:i,classes:l,components:s={},componentsProps:u={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:b=!1,id:y,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:C,onOpen:S,open:k,placement:M="bottom",PopperComponent:R,PopperProps:P={},slotProps:I={},slots:A={},title:T,TransitionComponent:$,TransitionProps:E,...D}=r,O=e.isValidElement(i)?i:(0,Tr.jsx)("span",{children:i}),_=Lr(),F=ni(),[L,j]=e.useState(),[N,z]=e.useState(null),B=e.useRef(!1),H=f||b,V=Ii(),W=Ii(),U=Ii(),G=Ii(),[K,Y]=es({controlled:k,default:!1,name:"Tooltip",state:"open"});let Z=K;const q=p$(y),X=e.useRef(),Q=ic((()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),G.clear()}));e.useEffect((()=>Q),[Q]);const J=e=>{GD.clear(),UD=!0,Y(!0),S&&!Z&&S(e)},ee=ic((e=>{GD.start(800+x,(()=>{UD=!1})),Y(!1),C&&Z&&C(e),V.start(_.transitions.duration.shortest,(()=>{B.current=!1}))})),te=e=>{B.current&&"touchstart"!==e.type||(L&&L.removeAttribute("title"),W.clear(),U.clear(),m||UD&&g?W.start(UD?g:m,(()=>{J(e)})):J(e))},ne=e=>{W.clear(),U.start(x,(()=>{ee(e)}))},[,re]=e.useState(!1),oe=e=>{ac(e.target)||(re(!1),ne(e))},ae=e=>{L||j(e.currentTarget),ac(e.target)&&(re(!0),te(e))},ie=e=>{B.current=!0;const t=O.props;t.onTouchStart&&t.onTouchStart(e)},le=e=>{ie(e),U.clear(),V.clear(),Q(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(v,(()=>{document.body.style.WebkitUserSelect=X.current,te(e)}))},se=e=>{O.props.onTouchEnd&&O.props.onTouchEnd(e),Q(),U.start(w,(()=>{ee(e)}))};e.useEffect((()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}}),[ee,Z]);const ue=qo(Ja(O),j,n);T||0===T||(Z=!1);const ce=e.useRef(),de={},fe="string"===typeof T;c?(de.title=Z||!fe||p?null:T,de["aria-describedby"]=Z?q:null):(de["aria-label"]=fe?T:null,de["aria-labelledby"]=Z&&!fe?q:null);const he={...de,...D,...O.props,className:o(D.className,O.props.className),onTouchStart:ie,ref:ue,...b?{onMouseMove:e=>{const t=O.props;t.onMouseMove&&t.onMouseMove(e),KD={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}};const me={};h||(he.onTouchStart=le,he.onTouchEnd=se),p||(he.onMouseOver=YD(te,he.onMouseOver),he.onMouseLeave=YD(ne,he.onMouseLeave),H||(me.onMouseOver=te,me.onMouseLeave=ne)),d||(he.onFocus=YD(ae,he.onFocus),he.onBlur=YD(oe,he.onBlur),H||(me.onFocus=ae,me.onBlur=oe));const ge={...r,isRtl:F,arrow:a,disableInteractive:H,placement:M,PopperComponentProp:R,touch:B.current},ve="function"===typeof I.popper?I.popper(ge):I.popper,be=e.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(N),options:{element:N,padding:4}}];return P.popperOptions?.modifiers&&(e=e.concat(P.popperOptions.modifiers)),ve?.popperOptions?.modifiers&&(e=e.concat(ve.popperOptions.modifiers)),{...P.popperOptions,...ve?.popperOptions,modifiers:e}}),[N,P.popperOptions,ve?.popperOptions]),ye=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return pe({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${po(a.split("-")[0])}`],arrow:["arrow"]},ND,t)})(ge),xe="function"===typeof I.transition?I.transition(ge):I.transition,we={slots:{popper:s.Popper,transition:s.Transition??$,tooltip:s.Tooltip,arrow:s.Arrow,...A},slotProps:{arrow:I.arrow??u.arrow,popper:{...P,...ve??u.popper},tooltip:I.tooltip??u.tooltip,transition:{...E,...xe??u.transition}}},[Ce,Se]=nl("popper",{elementType:HD,externalForwardedProps:we,ownerState:ge,className:o(ye.popper,P?.className)}),[ke,Me]=nl("transition",{elementType:qi,externalForwardedProps:we,ownerState:ge}),[Re,Pe]=nl("tooltip",{elementType:VD,className:ye.tooltip,externalForwardedProps:we,ownerState:ge}),[Ie,Ae]=nl("arrow",{elementType:WD,className:ye.arrow,externalForwardedProps:we,ownerState:ge,ref:z});return(0,Tr.jsxs)(e.Fragment,{children:[e.cloneElement(O,he),(0,Tr.jsx)(Ce,{as:R??iv,placement:M,anchorEl:b?{getBoundingClientRect:()=>({top:KD.y,left:KD.x,right:KD.x,bottom:KD.y,width:0,height:0})}:L,popperRef:ce,open:!!L&&Z,id:q,transition:!0,...me,...Se,popperOptions:be,children:e=>{let{TransitionProps:t}=e;return(0,Tr.jsx)(ke,{timeout:_.transitions.duration.shorter,...t,...Me,children:(0,Tr.jsxs)(Re,{...Pe,children:[T,a?(0,Tr.jsx)(Ie,{...Ae}):null]})})}})]})})),qD=ZD,XD=["sortingOrder"],QD=e.memo((function(e){const{sortingOrder:t}=e,n=Ai(e,XD),r=rw(),[o]=t,a="asc"===o?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return a?(0,Tr.jsx)(a,fe({},n)):null})),JD=ms((0,Tr.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),eO=ms((0,Tr.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),tO=ms((0,Tr.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),nO=ms((0,Tr.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),rO=ms((0,Tr.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),oO=ms((0,Tr.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),aO=ms((0,Tr.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),iO=(ms((0,Tr.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),ms((0,Tr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),ms((0,Tr.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),lO=ms((0,Tr.jsx)("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),sO=ms((0,Tr.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),uO=ms((0,Tr.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),cO=ms((0,Tr.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),dO=ms((0,Tr.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),pO=ms((0,Tr.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fO=ms((0,Tr.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),hO=ms((0,Tr.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),mO=ms((0,Tr.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),gO=ms((0,Tr.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),vO=ms((0,Tr.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),bO=ms((0,Tr.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),yO=ms((0,Tr.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),xO=ms((0,Tr.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),wO=ms((0,Tr.jsx)("g",{children:(0,Tr.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),CO=ms((0,Tr.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"}),"Clear"),SO=(ms((0,Tr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),ms((0,Tr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")),kO=["native"];const MO=fe({},{booleanCellTrueIcon:bO,booleanCellFalseIcon:pO,columnMenuIcon:dO,openFilterButtonIcon:rO,filterPanelDeleteIcon:pO,columnFilteredIcon:oO,columnSelectorIcon:iO,columnUnsortedIcon:QD,columnSortedAscendingIcon:JD,columnSortedDescendingIcon:eO,columnResizeIcon:lO,densityCompactIcon:sO,densityStandardIcon:uO,densityComfortableIcon:cO,exportIcon:vO,moreActionsIcon:yO,treeDataCollapseIcon:nO,treeDataExpandIcon:tO,groupingCriteriaCollapseIcon:nO,groupingCriteriaExpandIcon:tO,detailPanelExpandIcon:fO,detailPanelCollapseIcon:hO,rowReorderIcon:gO,quickFilterIcon:aO,quickFilterClearIcon:pO,columnMenuHideIcon:xO,columnMenuSortAscendingIcon:JD,columnMenuSortDescendingIcon:eO,columnMenuFilterIcon:oO,columnMenuManageColumnsIcon:wO,columnMenuClearIcon:CO,loadIcon:mO,filterPanelAddIcon:fO,filterPanelRemoveAllIcon:SO,columnReorderIcon:gO},{baseBadge:CD,baseCheckbox:jD,baseDivider:kv,baseTextField:Ps,baseFormControl:Ga,baseSelect:Cs,baseButton:Lc,baseIconButton:Fp,baseInputAdornment:Os,baseTooltip:qD,basePopper:iv,baseInputLabel:Ba,baseSelectOption:function(e){let{native:t}=e,n=Ai(e,kO);return t?(0,Tr.jsx)("option",fe({},n)):(0,Tr.jsx)(xy,fe({},n))},baseChip:sd}),RO=fe({},MO,{cell:ME,skeletonCell:ZA,columnHeaderFilterIconButton:function(t){const{counter:n,field:r,onClick:o}=t,a=Uw(),i=rw(),l=(e=>{const{classes:t}=e;return qu({icon:["filterIcon"]},Dx,t)})(fe({},t,{classes:i.classes})),s=Gx(a,Hw),u=Ys(),c=Ys(),d=e.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=Hw(a.current.state);t&&n===Vw.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,c,u),o&&o(a.current.getColumnHeaderParams(r),e)}),[a,r,o,c,u]);if(!n)return null;const p=s.open&&s.labelId===u,f=(0,Tr.jsx)(i.slots.baseIconButton,fe({id:u,onClick:d,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?c:void 0},i.slotProps?.baseIconButton,{children:(0,Tr.jsx)(i.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return(0,Tr.jsx)(i.slots.baseTooltip,fe({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},i.slotProps?.baseTooltip,{children:(0,Tr.jsxs)(QA,{children:[n>1&&(0,Tr.jsx)(i.slots.baseBadge,{badgeContent:n,color:"default",children:f}),1===n&&f]})}))},columnHeaderSortIcon:tT,columnMenu:fD,columnHeaders:qE,detailPanels:function(e){return null},footer:sT,footerRowCount:dT,toolbar:null,pinnedRows:function(e){return null},loadingOverlay:qT,noResultsOverlay:hD,noRowsOverlay:XT,pagination:I$,filterPanel:Q$,columnsPanel:function(e){const t=rw();return(0,Tr.jsx)(j$,fe({},e,{children:(0,Tr.jsx)(lE,fe({},t.slotProps?.columnsManagement))}))},columnsManagement:lE,panel:vE,row:AE});function PO(t){return e.useMemo((()=>function(e){const t=Object.keys(e);if(!t.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const n={},r=e.forwardedProps??{};for(let o=0;o<t.length;o+=1){const a=t[o];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}(t)),[t])}const IO={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},AO=RO,TO=t=>{const n=PO(gu({props:t,name:"MuiDataGrid"})),r=e.useMemo((()=>fe({},DA,n.localeText)),[n.localeText]),o=e.useMemo((()=>function(e){let{defaultSlots:t,slots:n}=e;const r=n;if(!r||0===Object.keys(r).length)return t;const o=fe({},t);return Object.keys(r).forEach((e=>{const t=e;void 0!==r[t]&&(o[t]=r[t])})),o}({defaultSlots:AO,slots:n.slots})),[n.slots]),a=e.useMemo((()=>Object.keys(qI).reduce(((e,t)=>(e[t]=n[t]??qI[t],e)),{})),[n]);return e.useMemo((()=>fe({},n,a,{localeText:r,slots:o},IO)),[n,r,o,a])},$O={hooks:{useGridAriaAttributes:()=>{const e=Yx(),t=rw(),n=Gx(e,Ow),r=Gx(e,$M),o=Gx(e,Jk),a=Gx(e,VS);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+a+r,"aria-multiselectable":sP(t)}},useGridRowAriaAttributes:()=>{const t=Yx(),n=Gx(t,tR),r=Gx(t,Jk);return e.useCallback(((e,o)=>{const a={},i=o+r+2;return a["aria-rowindex"]=i,t.current.isRowSelectable(e.id)&&(a["aria-selected"]=void 0!==n[e.id]),a}),[t,n,r])}}};const EO=e.forwardRef((function(e,t){const n=TO(e),r=EA(n.apiRef,n);return(0,Tr.jsx)(dP,{privateApiRef:r,configuration:$O,props:n,children:(0,Tr.jsxs)(Rw,fe({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[(0,Tr.jsx)(Kw,{}),(0,Tr.jsx)(aP,{}),(0,Tr.jsx)(iP,{})]}))})})),DO=e.memo(EO);function OO(e){const{attributes:t}=e,{MuiAttributes:n={},container:r={}}=t;return(0,Tr.jsx)("div",{...r,children:(0,Tr.jsx)(DO,{...n})})}EO.propTypes={apiRef:Fs().shape({current:Fs().object.isRequired}),"aria-label":Fs().string,"aria-labelledby":Fs().string,autoHeight:Fs().bool,autoPageSize:Fs().bool,autosizeOnMount:Fs().bool,autosizeOptions:Fs().shape({columns:Fs().arrayOf(Fs().string),expand:Fs().bool,includeHeaders:Fs().bool,includeOutliers:Fs().bool,outliersFactor:Fs().number}),cellModesModel:Fs().object,checkboxSelection:Fs().bool,classes:Fs().object,clipboardCopyCellDelimiter:Fs().string,columnBufferPx:Fs().number,columnGroupHeaderHeight:Fs().number,columnGroupingModel:Fs().arrayOf(Fs().object),columnHeaderHeight:Fs().number,columns:Fs().arrayOf(Fs().object).isRequired,columnVisibilityModel:Fs().object,density:Fs().oneOf(["comfortable","compact","standard"]),disableAutosize:Fs().bool,disableColumnFilter:Fs().bool,disableColumnMenu:Fs().bool,disableColumnResize:Fs().bool,disableColumnSelector:Fs().bool,disableColumnSorting:Fs().bool,disableDensitySelector:Fs().bool,disableEval:Fs().bool,disableMultipleRowSelection:Fs().bool,disableRowSelectionOnClick:Fs().bool,disableVirtualization:Fs().bool,editMode:Fs().oneOf(["cell","row"]),estimatedRowCount:Fs().number,experimentalFeatures:Fs().shape({warnIfFocusStateIsNotSynced:Fs().bool}),filterDebounceMs:Fs().number,filterMode:Fs().oneOf(["client","server"]),filterModel:Fs().shape({items:Fs().arrayOf(Fs().shape({field:Fs().string.isRequired,id:Fs().oneOfType([Fs().number,Fs().string]),operator:Fs().string.isRequired,value:Fs().any})).isRequired,logicOperator:Fs().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Fs().bool,quickFilterLogicOperator:Fs().oneOf(["and","or"]),quickFilterValues:Fs().array}),forwardedProps:Fs().object,getCellClassName:Fs().func,getDetailPanelContent:Fs().func,getEstimatedRowHeight:Fs().func,getRowClassName:Fs().func,getRowHeight:Fs().func,getRowId:Fs().func,getRowSpacing:Fs().func,hideFooter:Fs().bool,hideFooterPagination:Fs().bool,hideFooterSelectedRowCount:Fs().bool,ignoreDiacritics:Fs().bool,ignoreValueFormatterDuringExport:Fs().oneOfType([Fs().shape({clipboardExport:Fs().bool,csvExport:Fs().bool}),Fs().bool]),indeterminateCheckboxAction:Fs().oneOf(["deselect","select"]),initialState:Fs().object,isCellEditable:Fs().func,isRowSelectable:Fs().func,keepNonExistentRowsSelected:Fs().bool,loading:Fs().bool,localeText:Fs().object,logger:Fs().shape({debug:Fs().func.isRequired,error:Fs().func.isRequired,info:Fs().func.isRequired,warn:Fs().func.isRequired}),logLevel:Fs().oneOf(["debug","error","info","warn",!1]),nonce:Fs().string,onCellClick:Fs().func,onCellDoubleClick:Fs().func,onCellEditStart:Fs().func,onCellEditStop:Fs().func,onCellKeyDown:Fs().func,onCellModesModelChange:Fs().func,onClipboardCopy:Fs().func,onColumnHeaderClick:Fs().func,onColumnHeaderContextMenu:Fs().func,onColumnHeaderDoubleClick:Fs().func,onColumnHeaderEnter:Fs().func,onColumnHeaderLeave:Fs().func,onColumnHeaderOut:Fs().func,onColumnHeaderOver:Fs().func,onColumnOrderChange:Fs().func,onColumnResize:Fs().func,onColumnVisibilityModelChange:Fs().func,onColumnWidthChange:Fs().func,onDensityChange:Fs().func,onFilterModelChange:Fs().func,onMenuClose:Fs().func,onMenuOpen:Fs().func,onPaginationMetaChange:Fs().func,onPaginationModelChange:Fs().func,onPreferencePanelClose:Fs().func,onPreferencePanelOpen:Fs().func,onProcessRowUpdateError:Fs().func,onResize:Fs().func,onRowClick:Fs().func,onRowCountChange:Fs().func,onRowDoubleClick:Fs().func,onRowEditStart:Fs().func,onRowEditStop:Fs().func,onRowModesModelChange:Fs().func,onRowSelectionModelChange:Fs().func,onSortModelChange:Fs().func,onStateChange:Fs().func,pageSizeOptions:Fs().arrayOf(Fs().oneOfType([Fs().number,Fs().shape({label:Fs().string.isRequired,value:Fs().number.isRequired})]).isRequired),pagination:Fs().oneOf([!0]),paginationMeta:Fs().shape({hasNextPage:Fs().bool}),paginationMode:Fs().oneOf(["client","server"]),paginationModel:Fs().shape({page:Fs().number.isRequired,pageSize:Fs().number.isRequired}),processRowUpdate:Fs().func,resizeThrottleMs:Fs().number,rowBufferPx:Fs().number,rowCount:Fs().number,rowHeight:Fs().number,rowModesModel:Fs().object,rowPositionsDebounceMs:Fs().number,rows:Fs().arrayOf(Fs().object),rowSelection:Fs().bool,rowSelectionModel:Fs().oneOfType([Fs().arrayOf(Fs().oneOfType([Fs().number,Fs().string]).isRequired),Fs().number,Fs().string]),rowSpacingType:Fs().oneOf(["border","margin"]),scrollbarSize:Fs().number,showCellVerticalBorder:Fs().bool,showColumnVerticalBorder:Fs().bool,slotProps:Fs().object,slots:Fs().object,sortingMode:Fs().oneOf(["client","server"]),sortingOrder:Fs().arrayOf(Fs().oneOf(["asc","desc"])),sortModel:Fs().arrayOf(Fs().shape({field:Fs().string.isRequired,sort:Fs().oneOf(["asc","desc"])})),sx:Fs().oneOfType([Fs().arrayOf(Fs().oneOfType([Fs().func,Fs().object,Fs().bool])),Fs().func,Fs().object]),unstable_rowSpanning:Fs().bool,virtualizeColumnsWithAutoRowHeight:Fs().bool},OO.defaultProps={attributes:{}};var _O=n(446),FO=n.n(_O),LO=n(6865),jO=n.n(LO),NO=n(8988),zO=n.n(NO),BO=n(4443),HO=n.n(BO),VO=n(1525),WO=n.n(VO),UO=n(7076),GO=n.n(UO);FO().extend(HO()),FO().extend(jO()),FO().extend(WO()),FO().extend(GO());const KO={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"},YO={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"},ZO=["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("\n"),qO=["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("\n");class XO{constructor(){var e=this;let{locale:t,formats:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=KO,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>"undefined"!==typeof FO().utc,this.hasTimezonePlugin=()=>"undefined"!==typeof FO().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return FO().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=FO().tz.guess();return"UTC"!==t?FO().tz(e,t):FO()(e)}return FO()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(ZO);return FO().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(ZO);if(!this.hasTimezonePlugin())throw new Error(qO);const n=void 0!==e&&!e.endsWith("Z");return FO()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=FO().Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e},this.date=function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return null===t?null:(n="UTC"===r?e.createUTCDate(t):"system"===r||"default"===r&&!e.hasTimezonePlugin()?e.createSystemDate(t):e.createTZDate(t,r),void 0===e.locale?n:n.locale(e.locale))},this.getInvalidDate=()=>FO()(new Date("Invalid date")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(ZO);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(qO)}return FO().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,t)=>{let[n,r]=t;return e>=n&&e<=r},this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,o=t;const a=[];for(;o<n;){const e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(o),o=this.addDays(o,1),r+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=e=>{let[t,n]=e;const r=this.startOfYear(t),o=this.endOfYear(n),a=[];let i=r;for(;this.isBefore(i,o);)a.push(i),i=this.addYears(i,1);return a},this.dayjs=((e,t)=>t?function(){return e(...arguments).locale(t)}:e)(FO(),t),this.locale=t,this.formats=fe({},YO,n),FO().extend(zO())}getDayOfWeek(e){return e.day()+1}}function QO(t,n){const r=function(){const t=(0,e.useRef)(!0);return t.current?(t.current=!1,!0):t.current}();(0,e.useEffect)((()=>{if(!r)return t()}),n)}function JO(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="DatePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}function e_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="DateTimePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}function t_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="TimePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}JO.defaultProps={attributes:{},onChange:null},e_.defaultProps={attributes:{},onChange:null},t_.defaultProps={attributes:{},onChange:null};const n_=ms((0,Tr.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),r_=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),o_=(0,Tr.jsx)(n_,{fontSize:"small"}),a_=(0,Tr.jsx)(r_,{fontSize:"small"});function i_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},options:a=[],MuiBoxAttributes:i={},id:l="",InputProps:s={}}=n,[u,c]=e.useState((null===n||void 0===n?void 0:n.value)&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){let n=",";null!==t&&void 0!==t&&t.includes(",")?n=",":null!==t&&void 0!==t&&t.includes(";")&&(n=";");const r=new Set(null===t||void 0===t?void 0:t.split(n));return null===e||void 0===e?void 0:e.filter((e=>{let{value:t}=e;return null===r||void 0===r?void 0:r.has(t)}))}return e.find((e=>{let{value:n}=e;return n===t}))}(a,null===n||void 0===n?void 0:n.value,o.multiple)),d=e=>(null===e||void 0===e?void 0:e.value)||(null===e||void 0===e?void 0:e.title)||(null===e||void 0===e?void 0:e.label),p=(0,e.useCallback)(((e,t)=>{if(c(t),t){const e=o.multiple?t.map(d):d(t);r({id:l,value:o.multiple?e.toString():e,option:t})}else r({id:l,value:"",option:t})}),[]);return(0,Tr.jsx)(KC,{...(o.multiple&&(o.renderOption=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selected:n}=arguments.length>2?arguments[2]:void 0;return(0,Tr.jsxs)("li",{...e,children:[(0,Tr.jsx)(jD,{icon:o_,checkedIcon:a_,style:{marginRight:8},checked:n,sx:Px(t.color||"")}),t.title||t.label||t.value]})}),o),disablePortal:!0,options:a,value:u,onChange:p,renderInput:e=>{const t=Sx(s),n={...e.InputProps,...t,startAdornment:(0,Tr.jsxs)(Tr.Fragment,{children:[null===t||void 0===t?void 0:t.startAdornment,e.InputProps.startAdornment," "]}),endAdornment:(0,Tr.jsxs)(Tr.Fragment,{children:[null===t||void 0===t?void 0:t.endAdornment,e.InputProps.endAdornment]})};return(0,Tr.jsx)(Ps,{...e,...i,slotProps:{input:{...n,autoComplete:"new-password"}}})}})}function l_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},id:i=""}=n,[l,s]=e.useState(o.defaultChecked||n.value||!1);QO((()=>{s(n.value)}),[n.value]);return(0,Tr.jsx)(oE,{...a,control:(0,Tr.jsx)(jD,{checked:l,onChange:e=>{s(e.target.checked),r({id:i,value:e.target.checked})},...o,inputProps:{"aria-label":"controlled"}})})}function s_(e){return Hr("MuiSwitch",e)}i_.defaultProps={attributes:{},onChange:null},l_.defaultProps={attributes:{},onChange:null};const u_=Vr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),c_=Ir("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${po(n.edge)}`],t[`size${po(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${u_.thumb}`]:{width:16,height:16},[`& .${u_.switchBase}`]:{padding:4,[`&.${u_.checked}`]:{transform:"translateX(16px)"}}}}]}),d_=Ir(PD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${u_.input}`]:t.input},"default"!==n.color&&t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${u_.checked}`]:{transform:"translateX(20px)"},[`&.${u_.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${u_.checked} + .${u_.track}`]:{opacity:.5},[`&.${u_.disabled} + .${u_.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${u_.input}`]:{left:"-100%",width:"300%"}}})),co((e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(fo(["light"])).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${u_.checked}`]:{color:(t.vars||t).palette[n].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u_.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n}DisabledColor`]:`${"light"===t.palette.mode?Mn(t.palette[n].main,.62):Sn(t.palette[n].main,.55)}`}},[`&.${u_.checked} + .${u_.track}`]:{backgroundColor:(t.vars||t).palette[n].main}}}}))]}}))),p_=Ir("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(co((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}}))),f_=Ir("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(co((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}))),h_=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiSwitch"}),{className:r,color:a="primary",edge:i=!1,size:l="medium",sx:s,...u}=n,c={...n,color:a,edge:i,size:l},d=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l=pe({root:["root",n&&`edge${po(n)}`,`size${po(r)}`],switchBase:["switchBase",`color${po(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s_,t);return{...t,...l}})(c),p=(0,Tr.jsx)(f_,{className:d.thumb,ownerState:c});return(0,Tr.jsxs)(c_,{className:o(d.root,r),sx:s,ownerState:c,children:[(0,Tr.jsx)(d_,{type:"checkbox",icon:p,checkedIcon:p,ref:t,ownerState:c,...u,classes:{...d,root:d.switchBase}}),(0,Tr.jsx)(p_,{className:d.track,ownerState:c})]})})),m_=h_,g_=Ir((e=>{let{color:t,...n}=e;return(0,Tr.jsx)(m_,{...n})}))((e=>{let{theme:t}=e;return{"& .MuiSwitch-switchBase.Mui-checked":{color:e=>e.color||"green","&:hover":{backgroundColor:e=>wn(e.color||"green",t.palette.action.hoverOpacity)}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:e=>e.color||"green"}}}));function v_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},color:i="",id:l=""}=n,[s,u]=e.useState(o.defaultValue||n.value||!1);QO((()=>{u(n.value)}),[n.value]);const c=i?g_:m_;return(0,Tr.jsx)(oE,{...a,control:(0,Tr.jsx)(c,{checked:s,onChange:e=>{u(e.target.checked),r({id:l,value:e.target.checked})},...o,inputProps:{"aria-label":"controlled"}})})}v_.defaultProps={attributes:{},onChange:null};const b_=ms((0,Tr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),y_=ms((0,Tr.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),x_=Ir("span",{shouldForwardProp:Pr})({position:"relative",display:"flex"}),w_=Ir(b_)({transform:"scale(1)"}),C_=Ir(y_)(co((e=>{let{theme:t}=e;return{left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]}})));const S_=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,Tr.jsxs)(x_,{className:n.root,ownerState:o,children:[(0,Tr.jsx)(w_,{fontSize:r,className:n.background,ownerState:o}),(0,Tr.jsx)(C_,{fontSize:r,className:n.dot,ownerState:o})]})},k_=dl;const M_=e.createContext(void 0);function R_(e){return Hr("MuiRadio",e)}const P_=Vr("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),I_=Ir(PD,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${po(n.size)}`],t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,[`&.${P_.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disabled:!1},style:{[`&.${P_.checked}`]:{color:(t.vars||t).palette[n].main}}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}})));const A_=(0,Tr.jsx)(S_,{checked:!0}),T_=(0,Tr.jsx)(S_,{}),$_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=A_,color:l="primary",icon:s=T_,name:u,onChange:c,size:d="medium",className:p,disabled:f,disableRipple:h=!1,...m}=r,g=Zo();let v=f;g&&"undefined"===typeof v&&(v=g.disabled),v??=!1;const b={...r,disabled:v,disableRipple:h,color:l,size:d},y=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${po(n)}`,"medium"!==r&&`size${po(r)}`]};return{...t,...pe(o,R_,t)}})(b),x=e.useContext(M_);let w=a;const C=k_(c,x&&x.onChange);let S=u;return x&&("undefined"===typeof w&&(w=function(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}(x.value,r.value)),"undefined"===typeof S&&(S=x.name)),(0,Tr.jsx)(I_,{type:"radio",icon:e.cloneElement(s,{fontSize:T_.props.fontSize??d}),checkedIcon:e.cloneElement(i,{fontSize:A_.props.fontSize??d}),disabled:v,ownerState:b,classes:y,name:S,checked:w,onChange:C,ref:n,className:o(y.root,p),...m})})),E_=$_;function D_(e){return Hr("MuiFormGroup",e)}Vr("MuiFormGroup",["root","row","error"]);const O_=Ir("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),__=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiFormGroup"}),{className:r,row:a=!1,...i}=n,l=Ko({props:n,muiFormControl:Zo(),states:["error"]}),s={...n,row:a,error:l.error},u=(e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},D_,t)})(s);return(0,Tr.jsx)(O_,{className:o(u.root,r),ownerState:s,ref:t,...i})})),F_=__;function L_(e){return Hr("MuiRadioGroup",e)}Vr("MuiRadioGroup",["root","row","error"]);const j_=e.forwardRef((function(t,n){const{actions:r,children:a,className:i,defaultValue:l,name:s,onChange:u,value:c,...d}=t,p=e.useRef(null),f=(e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},L_,t)})(t),[h,m]=es({controlled:c,default:l,name:"RadioGroup"});e.useImperativeHandle(r,(()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const g=qo(n,p),v=p$(s),b=e.useMemo((()=>({name:v,onChange(e){m(e.target.value),u&&u(e,e.target.value)},value:h})),[v,u,m,h]);return(0,Tr.jsx)(M_.Provider,{value:b,children:(0,Tr.jsx)(F_,{role:"radiogroup",ref:g,className:o(f.root,i),...d,children:a})})})),N_=j_;function z_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},MuiRGAttributes:i={},id:l="",MuiFLAttributes:s={},MuiFCLabels:u=[],MuiFLabel:c="",MuiFLabelIcon:d={}}=n,[p,f]=e.useState("");(0,e.useEffect)((()=>{(n.value||o.defaultValue)&&f(n.value||o.defaultValue)}),[]),QO((()=>{f(n.value)}),[n.value]);const h=(0,e.useMemo)((()=>d&&d.icon?(0,Tr.jsxs)(Mo,{sx:{display:"flex",width:"100%"},children:[d&&d.icon&&(0,Tr.jsx)(Ao,{...d.MuiFLabelIconAttributes,children:d.icon},d.icon),(0,Tr.jsx)(La,{...s,id:"radio-buttons-group-label",children:c})]}):(0,Tr.jsx)(La,{...s,id:"radio-buttons-group-label",children:c})),[]);return(0,Tr.jsxs)(Ga,{children:[c&&h,(0,Tr.jsx)(N_,{"aria-labelledby":"radio-buttons-group-label",name:"radio-buttons-group",...i,value:p,onChange:e=>{f(e.target.value),r({id:l,value:e.target.value})},children:u.map((e=>(0,Tr.jsx)(oE,{...a,value:e,control:(0,Tr.jsx)(E_,{...o}),label:e})))})]})}function B_(e){return Hr("MuiStepper",e)}z_.defaultProps={attributes:{},onChange:null};Vr("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const H_=e.createContext({});const V_=H_,W_=e.createContext({});const U_=W_;function G_(e){return Hr("MuiStepConnector",e)}Vr("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const K_=Ir("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),Y_=Ir("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${po(n.orientation)}`]]}})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return{display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}}))),Z_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepConnector"}),{className:a,...i}=r,{alternativeLabel:l,orientation:s="horizontal"}=e.useContext(V_),{active:u,disabled:c,completed:d}=e.useContext(U_),p={...r,alternativeLabel:l,orientation:s,active:u,completed:d,disabled:c},f=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e;return pe({root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${po(n)}`]},G_,t)})(p);return(0,Tr.jsx)(K_,{className:o(f.root,a),ref:n,ownerState:p,...i,children:(0,Tr.jsx)(Y_,{className:f.line,ownerState:p})})})),q_=Z_,X_=Ir("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),Q_=(0,Tr.jsx)(q_,{}),J_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:i=!1,children:l,className:s,component:u="div",connector:c=Q_,nonLinear:d=!1,orientation:p="horizontal",...f}=r,h={...r,nonLinear:d,alternativeLabel:i,orientation:p,component:u},m=(e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return pe({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},B_,o)})(h),g=e.Children.toArray(l).filter(Boolean),v=g.map(((t,n)=>e.cloneElement(t,{index:n,last:n+1===g.length,...t.props}))),b=e.useMemo((()=>({activeStep:a,alternativeLabel:i,connector:c,nonLinear:d,orientation:p})),[a,i,c,d,p]);return(0,Tr.jsx)(V_.Provider,{value:b,children:(0,Tr.jsx)(X_,{as:u,ownerState:h,className:o(m.root,s),ref:n,...f,children:v})})})),eF=J_;function tF(e){return Hr("MuiStep",e)}Vr("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const nF=Ir("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),rF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStep"}),{active:a,children:i,className:l,component:s="div",completed:u,disabled:c,expanded:d=!1,index:p,last:f,...h}=r,{activeStep:m,connector:g,alternativeLabel:v,orientation:b,nonLinear:y}=e.useContext(V_);let[x=!1,w=!1,C=!1]=[a,u,c];m===p?x=void 0===a||a:!y&&m>p?w=void 0===u||u:!y&&m<p&&(C=void 0===c||c);const S=e.useMemo((()=>({index:p,last:f,expanded:d,icon:p+1,active:x,completed:w,disabled:C})),[p,f,d,x,w,C]),k={...r,active:x,orientation:b,alternativeLabel:v,completed:w,disabled:C,expanded:d,component:s},M=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return pe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},tF,t)})(k),R=(0,Tr.jsxs)(nF,{as:s,className:o(M.root,l),ref:n,ownerState:k,...h,children:[g&&v&&0!==p?g:null,i]});return(0,Tr.jsx)(U_.Provider,{value:S,children:g&&!v&&0!==p?(0,Tr.jsxs)(e.Fragment,{children:[g,R]}):R})})),oF=rF,aF=ms((0,Tr.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),iF=ms((0,Tr.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function lF(e){return Hr("MuiStepIcon",e)}const sF=Vr("MuiStepIcon",["root","active","completed","error","text"]);var uF;const cF=Ir(hs,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(co((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${sF.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${sF.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${sF.error}`]:{color:(t.vars||t).palette.error.main}}}))),dF=Ir("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(co((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}}))),pF=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiStepIcon"}),{active:r=!1,className:a,completed:i=!1,error:l=!1,icon:s,...u}=n,c={...n,active:r,completed:i,error:l},d=(e=>{const{classes:t,active:n,completed:r,error:o}=e;return pe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},lF,t)})(c);if("number"===typeof s||"string"===typeof s){const e=o(a,d.root);return l?(0,Tr.jsx)(cF,{as:iF,className:e,ref:t,ownerState:c,...u}):i?(0,Tr.jsx)(cF,{as:aF,className:e,ref:t,ownerState:c,...u}):(0,Tr.jsxs)(cF,{className:e,ref:t,ownerState:c,...u,children:[uF||(uF=(0,Tr.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,Tr.jsx)(dF,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:s})]})}return s})),fF=pF;function hF(e){return Hr("MuiStepLabel",e)}const mF=Vr("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),gF=Ir("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${mF.alternativeLabel}`]:{flexDirection:"column"},[`&.${mF.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),vF=Ir("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(co((e=>{let{theme:t}=e;return{...t.typography.body2,display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${mF.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${mF.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${mF.alternativeLabel}`]:{marginTop:16},[`&.${mF.error}`]:{color:(t.vars||t).palette.error.main}}}))),bF=Ir("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${mF.alternativeLabel}`]:{paddingRight:0}}),yF=Ir("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(co((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${mF.alternativeLabel}`]:{textAlign:"center"}}}))),xF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:l={},error:s=!1,icon:u,optional:c,slots:d={},slotProps:p={},StepIconComponent:f,StepIconProps:h,...m}=r,{alternativeLabel:g,orientation:v}=e.useContext(V_),{active:b,disabled:y,completed:x,icon:w}=e.useContext(U_),C=u||w;let S=f;C&&!S&&(S=fF);const k={...r,active:b,alternativeLabel:g,completed:x,disabled:y,error:s,orientation:v},M=(e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return pe({root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},hF,t)})(k),R={slots:d,slotProps:{stepIcon:h,...l,...p}},[P,I]=nl("label",{elementType:vF,externalForwardedProps:R,ownerState:k}),[A,T]=nl("stepIcon",{elementType:S,externalForwardedProps:R,ownerState:k});return(0,Tr.jsxs)(gF,{className:o(M.root,i),ref:n,ownerState:k,...m,children:[C||A?(0,Tr.jsx)(bF,{className:M.iconContainer,ownerState:k,children:(0,Tr.jsx)(A,{completed:x,active:b,error:s,icon:C,...T})}):null,(0,Tr.jsxs)(yF,{className:M.labelContainer,ownerState:k,children:[a?(0,Tr.jsx)(P,{...I,className:o(M.label,I?.className),children:a}):null,c]})]})}));xF&&(xF.muiName="StepLabel");const wF=xF;function CF(e){return Hr("MuiCollapse",e)}Vr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SF=Ir("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(co((e=>{let{theme:t}=e;return{height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"exited"===t.state&&!t.in&&"0px"===t.collapsedSize},style:{visibility:"hidden"}}]}}))),kF=Ir("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),MF=Ir("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),RF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiCollapse"}),{addEndListener:a,children:i,className:l,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:v,orientation:b="vertical",style:y,timeout:x=tr.standard,TransitionComponent:w=Vi,...C}=r,S={...r,orientation:b,collapsedSize:s},k=(e=>{const{orientation:t,classes:n}=e;return pe({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},CF,n)})(S),M=Lr(),R=Ii(),P=e.useRef(null),I=e.useRef(),A="number"===typeof s?`${s}px`:s,T="horizontal"===b,$=T?"width":"height",E=e.useRef(null),D=qo(n,E),O=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},_=()=>P.current?P.current[T?"clientWidth":"clientHeight"]:0,F=O(((e,t)=>{P.current&&T&&(P.current.style.position="absolute"),e.style[$]=A,p&&p(e,t)})),L=O(((e,t)=>{const n=_();P.current&&T&&(P.current.style.position="");const{duration:r,easing:o}=Ui({style:y,timeout:x,easing:c},{mode:"enter"});if("auto"===x){const t=M.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,I.current=t}else e.style.transitionDuration="string"===typeof r?r:`${r}ms`;e.style[$]=`${n}px`,e.style.transitionTimingFunction=o,h&&h(e,t)})),j=O(((e,t)=>{e.style[$]="auto",f&&f(e,t)})),N=O((e=>{e.style[$]=`${_()}px`,m&&m(e)})),z=O(g),B=O((e=>{const t=_(),{duration:n,easing:r}=Ui({style:y,timeout:x,easing:c},{mode:"exit"});if("auto"===x){const n=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,I.current=n}else e.style.transitionDuration="string"===typeof n?n:`${n}ms`;e.style[$]=A,e.style.transitionTimingFunction=r,v&&v(e)}));return(0,Tr.jsx)(w,{in:d,onEnter:F,onEntered:j,onEntering:L,onExit:N,onExited:z,onExiting:B,addEndListener:e=>{"auto"===x&&R.start(I.current||0,e),a&&a(E.current,e)},nodeRef:E,timeout:"auto"===x?null:x,...C,children:(e,t)=>(0,Tr.jsx)(SF,{as:u,className:o(k.root,l,{entered:k.entered,exited:!d&&"0px"===A&&k.hidden}[e]),style:{[T?"minWidth":"minHeight"]:A,...y},ref:D,...t,ownerState:{...S,state:e},children:(0,Tr.jsx)(kF,{ownerState:{...S,state:e},className:k.wrapper,ref:P,children:(0,Tr.jsx)(MF,{ownerState:{...S,state:e},className:k.wrapperInner,children:i})})})})}));RF&&(RF.muiSupportAuto=!0);const PF=RF;function IF(e){return Hr("MuiStepContent",e)}Vr("MuiStepContent",["root","last","transition"]);const AF=Ir("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(co((e=>{let{theme:t}=e;return{marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}}))),TF=Ir(PF,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),$F=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepContent"}),{children:a,className:i,TransitionComponent:l=PF,transitionDuration:s="auto",TransitionProps:u,...c}=r,{orientation:d}=e.useContext(V_),{active:p,last:f,expanded:h}=e.useContext(U_),m={...r,last:f},g=(e=>{const{classes:t,last:n}=e;return pe({root:["root",n&&"last"],transition:["transition"]},IF,t)})(m);let v=s;return"auto"!==s||l.muiSupportAuto||(v=void 0),(0,Tr.jsx)(AF,{className:o(g.root,i),ref:n,ownerState:m,...c,children:(0,Tr.jsx)(TF,{as:l,in:p||h,className:g.transition,ownerState:m,timeout:v,unmountOnExit:!0,...u,children:a})})})),EF=$F;function DF(e){let{components:t,onUpdate:n}=e;return(0,Tr.jsx)(Tr.Fragment,{children:[...t].map(((e,t)=>{const r=PX[to[e.type].map];return(0,Tr.jsx)(r,{attributes:e.props,onChange:n},kx("dynamic-stepper-comp",t))}))})}DF.defaultProps={components:[],onUpdate:null};const OF={activeStep:0,stepperResponse:{},MuiSteps:[]},_F={},FF=(e,t)=>{switch(t.type){case"SET_STEPS":return{...e,MuiSteps:t.MuiSteps};case"SET_STEP":return{...e,activeStep:t.currentStep};case"NEXT_STEP":return{...e,activeStep:e.activeStep+1};case"PREVIOUS_STEP":return{...e,activeStep:e.activeStep-1};case"UPDATE_RESPONSE":return{...e,stepperResponse:{...e.stepperResponse,[t.id]:t.value}};default:return e}};function LF(t){let{attributes:n,onChange:r,onStepUpdate:o,currentStep:a,patch:i}=t;const[l,s]=(0,e.useReducer)(FF,OF,(e=>({...e,activeStep:a,stepperResponse:i,MuiSteps:[...n.MuiSteps]}))),{activeStep:u,stepperResponse:c,MuiSteps:d}=l;(0,e.useEffect)((()=>(_F[n.id]=i,()=>{_F[n.id]={}})),[i,n.id]),(0,e.useEffect)((()=>{s({type:"SET_STEP",currentStep:a})}),[a]);const p=(0,e.useCallback)(((e,t,a)=>{s({type:e});null===o||void 0===o||o(u+("NEXT_STEP"===e?1:-1),t&&"NEXT_STEP"===e,a),a&&(null===r||void 0===r||r({id:n.id,value:c}))}),[u,n.id,r,o,c]),f=(0,e.useCallback)((e=>{let{id:t,value:o}=e;_F[n.id][t]=o,s({type:"UPDATE_RESPONSE",id:t,value:o}),null===r||void 0===r||r({id:t,value:o})}),[r]),h=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(0,Tr.jsxs)(Mo,{sx:{mb:2},children:[(0,Tr.jsx)(Lc,{variant:"contained",onClick:()=>p("NEXT_STEP",t,e===d.length-1),disabled:r.some((e=>!i[e])),sx:{mt:1,mr:1},...n.MuiButtonAttributes.next,...e===d.length-1&&{...n.MuiButtonAttributes.final},children:e===d.length-1?"Finish":"Continue"}),(0,Tr.jsx)(Lc,{disabled:0===e,onClick:()=>p("PREVIOUS_STEP",t,!1),sx:{mt:1,mr:1},...n.MuiButtonAttributes.back,children:"Back"})]})};return(0,Tr.jsx)(Mo,{sx:{maxWidth:400},...n.MuiBoxAttributes,children:(0,Tr.jsx)(eF,{activeStep:u,orientation:"vertical",...n.MuiStepperAttributes,children:d.map(((e,t)=>(0,Tr.jsxs)(oF,{...n.MuiStepAttributes,children:[(0,Tr.jsx)(wF,{optional:t===d.length-1&&(0,Tr.jsx)(wo,{variant:"caption",children:"Last step"}),...n.MuiStepLabelAttributes,children:e.label}),(0,Tr.jsxs)(EF,{...n.MuiStepContentAttributes,children:[e.components?(0,Tr.jsx)(DF,{onUpdate:f,components:Mx(e.components,c,n.id,_F)}):(0,Tr.jsx)(wo,{children:e.description}),h(t,e.isScreenChange,e.mandatoryIds)]})]},e.label)))})})}LF.defaultProps={attributes:{},currentStep:0,patch:{},onChange:()=>{},onStepUpdate:()=>{}};var jF=eL(),NF=e=>qF(e,jF),zF=eL();NF.write=e=>qF(e,zF);var BF=eL();NF.onStart=e=>qF(e,BF);var HF=eL();NF.onFrame=e=>qF(e,HF);var VF=eL();NF.onFinish=e=>qF(e,VF);var WF=[];NF.setTimeout=(e,t)=>{const n=NF.now()+t,r=()=>{const e=WF.findIndex((e=>e.cancel==r));~e&&WF.splice(e,1),YF-=~e?1:0},o={time:n,handler:e,cancel:r};return WF.splice(UF(n),0,o),YF+=1,XF(),o};var UF=e=>~(~WF.findIndex((t=>t.time>e))||~WF.length);NF.cancel=e=>{BF.delete(e),HF.delete(e),VF.delete(e),jF.delete(e),zF.delete(e)},NF.sync=e=>{ZF=!0,NF.batchedUpdates(e),ZF=!1},NF.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=r,NF.onStart(n)}return r.handler=e,r.cancel=()=>{BF.delete(n),t=null},r};var GF="undefined"!=typeof window?window.requestAnimationFrame:()=>{};NF.use=e=>GF=e,NF.now="undefined"!=typeof performance?()=>performance.now():Date.now,NF.batchedUpdates=e=>e(),NF.catch=console.error,NF.frameLoop="always",NF.advance=()=>{"demand"!==NF.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):JF()};var KF=-1,YF=0,ZF=!1;function qF(e,t){ZF?(t.delete(e),e(0)):(t.add(e),XF())}function XF(){KF<0&&(KF=0,"demand"!==NF.frameLoop&&GF(QF))}function QF(){~KF&&(GF(QF),NF.batchedUpdates(JF))}function JF(){const e=KF;KF=NF.now();const t=UF(KF);t&&(tL(WF.splice(0,t),(e=>e.handler())),YF-=t),YF?(BF.flush(),jF.flush(e?Math.min(64,KF-e):16.667),HF.flush(),zF.flush(),VF.flush()):KF=-1}function eL(){let e=new Set,t=e;return{add(n){YF+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(YF-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,YF-=t.size,tL(t,(t=>t(n)&&e.add(t))),YF+=e.size,t=e)}}}function tL(e,t){e.forEach((e=>{try{t(e)}catch(n){NF.catch(n)}}))}var nL=Object.defineProperty,rL={};function oL(){}((e,t)=>{for(var n in t)nL(e,n,{get:t[n],enumerable:!0})})(rL,{assign:()=>bL,colors:()=>mL,createStringInterpolator:()=>dL,skipAnimation:()=>gL,to:()=>pL,willAdvance:()=>vL});var aL={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e};function iL(e,t){if(aL.arr(e)){if(!aL.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var lL=(e,t)=>e.forEach(t);function sL(e,t,n){if(aL.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var uL=e=>aL.und(e)?[]:aL.arr(e)?e:[e];function cL(e,t){if(e.size){const n=Array.from(e);e.clear(),lL(n,t)}}var dL,pL,fL=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return cL(e,(e=>e(...n)))},hL=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),mL=null,gL=!1,vL=oL,bL=e=>{e.to&&(pL=e.to),e.now&&(NF.now=e.now),void 0!==e.colors&&(mL=e.colors),null!=e.skipAnimation&&(gL=e.skipAnimation),e.createStringInterpolator&&(dL=e.createStringInterpolator),e.requestAnimationFrame&&NF.use(e.requestAnimationFrame),e.batchedUpdates&&(NF.batchedUpdates=e.batchedUpdates),e.willAdvance&&(vL=e.willAdvance),e.frameLoop&&(NF.frameLoop=e.frameLoop)},yL=new Set,xL=[],wL=[],CL=0,SL={get idle(){return!yL.size&&!xL.length},start(e){CL>e.priority?(yL.add(e),NF.onStart(kL)):(ML(e),NF(PL))},advance:PL,sort(e){if(CL)NF.onFrame((()=>SL.sort(e)));else{const t=xL.indexOf(e);~t&&(xL.splice(t,1),RL(e))}},clear(){xL=[],yL.clear()}};function kL(){yL.forEach(ML),yL.clear(),NF(PL)}function ML(e){xL.includes(e)||RL(e)}function RL(e){xL.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(xL,(t=>t.priority>e.priority)),0,e)}function PL(e){const t=wL;for(let n=0;n<xL.length;n++){const r=xL[n];CL=r.priority,r.idle||(vL(r),r.advance(e),r.idle||t.push(r))}return CL=0,(wL=xL).length=0,(xL=t).length>0}var IL="[-+]?\\d*\\.?\\d+",AL=IL+"%";function TL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var $L=new RegExp("rgb"+TL(IL,IL,IL)),EL=new RegExp("rgba"+TL(IL,IL,IL,IL)),DL=new RegExp("hsl"+TL(IL,AL,AL)),OL=new RegExp("hsla"+TL(IL,AL,AL,IL)),_L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,FL=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,LL=/^#([0-9a-fA-F]{6})$/,jL=/^#([0-9a-fA-F]{8})$/;function NL(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zL(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=NL(o,r,e+1/3),i=NL(o,r,e),l=NL(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*l)<<8}function BL(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function HL(e){return(parseFloat(e)%360+360)%360/360}function VL(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function WL(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function UL(e){let t=function(e){let t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=LL.exec(e))?parseInt(t[1]+"ff",16)>>>0:mL&&void 0!==mL[e]?mL[e]:(t=$L.exec(e))?(BL(t[1])<<24|BL(t[2])<<16|BL(t[3])<<8|255)>>>0:(t=EL.exec(e))?(BL(t[1])<<24|BL(t[2])<<16|BL(t[3])<<8|VL(t[4]))>>>0:(t=_L.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=jL.exec(e))?parseInt(t[1],16)>>>0:(t=FL.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=DL.exec(e))?(255|zL(HL(t[1]),WL(t[2]),WL(t[3])))>>>0:(t=OL.exec(e))?(zL(HL(t[1]),WL(t[2]),WL(t[3]))|VL(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var GL=(e,t,n)=>{if(aL.fun(e))return e;if(aL.arr(e))return GL({range:e,output:t,extrapolate:n});if(aL.str(e.output[0]))return dL(e);const r=e,o=r.output,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,l,s){let u=s?s(e):e;if(u<t){if("identity"===i)return u;"clamp"===i&&(u=t)}if(u>n){if("identity"===l)return u;"clamp"===l&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,i,l,r.map)}};var KL=1.70158,YL=1.525*KL,ZL=KL+1,qL=2*Math.PI/3,XL=2*Math.PI/4.5,QL=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},JL={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ZL*e*e*e-KL*e*e,easeOutBack:e=>1+ZL*Math.pow(e-1,3)+KL*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-YL)/2:(Math.pow(2*e-2,2)*((YL+1)*(2*e-2)+YL)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*qL),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*qL)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*XL)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*XL)/2+1,easeInBounce:e=>1-QL(1-e),easeOutBounce:QL,easeInOutBounce:e=>e<.5?(1-QL(1-2*e))/2:(1+QL(2*e-1))/2,steps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}}},ej=Symbol.for("FluidValue.get"),tj=Symbol.for("FluidValue.observers"),nj=e=>Boolean(e&&e[ej]),rj=e=>e&&e[ej]?e[ej]():e,oj=e=>e[tj]||null;function aj(e,t){const n=e[tj];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ij=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");lj(this,e)}},lj=(e,t)=>dj(e,ej,t);function sj(e,t){if(e[ej]){let n=e[tj];n||dj(e,tj,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function uj(e,t){const n=e[tj];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[tj]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var cj,dj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pj=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,fj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hj=new RegExp(`(${pj.source})(%|[a-z]+)`,"i"),mj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,vj=e=>{const[t,n]=bj(e);if(!t||hL())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&gj.test(n)?vj(n):n||e},bj=e=>{const t=gj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},yj=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,xj=e=>{cj||(cj=mL?new RegExp(`(${Object.keys(mL).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>rj(e).replace(gj,vj).replace(fj,UL).replace(cj,UL))),n=t.map((e=>e.match(pj).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>GL({...e,output:t})));return e=>{const n=!hj.test(t[0])&&t.find((e=>hj.test(e)))?.replace(pj,"");let r=0;return t[0].replace(pj,(()=>`${o[r++](e)}${n||""}`)).replace(mj,yj)}},wj="react-spring: ",Cj=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${wj}once requires a function parameter`);return function(){n||(t(...arguments),n=!0)}},Sj=Cj(console.warn);var kj=Cj(console.warn);function Mj(e){return aL.str(e)&&("#"==e[0]||/\d/.test(e)||!hL()&&gj.test(e)||e in(mL||{}))}var Rj=hL()?e.useEffect:e.useLayoutEffect;function Pj(){const t=(0,e.useState)()[1],n=(()=>{const t=(0,e.useRef)(!1);return Rj((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{n.current&&t(Math.random())}}var Ij=t=>(0,e.useEffect)(t,Aj),Aj=[];function Tj(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t})),n.current}var $j=Symbol.for("Animated:node"),Ej=e=>e&&e[$j],Dj=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,$j,t),Oj=e=>e&&e[$j]&&e[$j].getPayload(),_j=class{constructor(){Dj(this,this)}getPayload(){return this.payload||[]}},Fj=class extends _j{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,aL.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Fj(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return aL.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,aL.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Lj=class extends Fj{constructor(e){super(0),this._string=null,this._toString=GL({output:[e,e]})}static create(e){return new Lj(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(aL.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=GL({output:[this.getValue(),e]})),this._value=0,super.reset()}},jj={dependencies:null},Nj=class extends _j{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return sL(this.source,((n,r)=>{(e=>!!e&&e[$j]===e)(n)?t[r]=n.getValue(e):nj(n)?t[r]=rj(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&lL(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return sL(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){jj.dependencies&&nj(e)&&jj.dependencies.add(e);const t=Oj(e);t&&lL(t,(e=>this.add(e)))}},zj=class extends Nj{constructor(e){super(e)}static create(e){return new zj(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Bj)),!0)}};function Bj(e){return(Mj(e)?Lj:Fj).create(e)}function Hj(e){const t=Ej(e);return t?t.constructor:aL.arr(e)?zj:Mj(e)?Lj:Fj}var Vj=(t,n)=>{const r=!aL.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,e.forwardRef)(((o,a)=>{const i=(0,e.useRef)(null),l=r&&(0,e.useCallback)((e=>{i.current=function(e,t){e&&(aL.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[s,u]=function(e,t){const n=new Set;jj.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Nj(e),jj.dependencies=null,[e,n]}(o,n),c=Pj(),d=()=>{const e=i.current;if(r&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,s.getValue(!0)))&&c()},p=new Wj(d,u),f=(0,e.useRef)();Rj((()=>(f.current=p,lL(u,(e=>sj(e,p))),()=>{f.current&&(lL(f.current.deps,(e=>uj(e,f.current))),NF.cancel(f.current.update))}))),(0,e.useEffect)(d,[]),Ij((()=>()=>{const e=f.current;lL(e.deps,(t=>uj(t,e)))}));const h=n.getComponentProps(s.getValue());return e.createElement(t,{...h,ref:l})}))},Wj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&NF.write(this.update)}};var Uj=Symbol.for("AnimatedComponent"),Gj=e=>aL.str(e)?e:e&&aL.str(e.displayName)?e.displayName:aL.fun(e)&&e.name||null;function Kj(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return aL.fun(e)?e(...n):e}var Yj=(e,t)=>!0===e||!!(t&&e&&(aL.fun(e)?e(t):uL(e).includes(t))),Zj=(e,t)=>aL.obj(e)?t&&e[t]:e,qj=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Xj=e=>e,Qj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,n=Jj;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);aL.und(n)||(r[o]=n)}return r},Jj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eN={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tN(e){const t=function(e){const t={};let n=0;if(sL(e,((e,r)=>{eN[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return sL(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function nN(e){return e=rj(e),aL.arr(e)?e.map(nN):Mj(e)?rL.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rN(e){for(const t in e)return!0;return!1}function oN(e){return aL.fun(e)||aL.arr(e)&&aL.obj(e[0])}function aN(e,t){e.ref?.delete(e),t?.delete(e)}function iN(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var lN={tension:170,friction:26,mass:1,damping:1,easing:JL.linear,clamp:!1},sN=class{constructor(){this.velocity=0,Object.assign(this,lN)}};function uN(e,t){if(aL.und(t.decay)){const n=!aL.und(t.tension)||!aL.und(t.friction);!n&&aL.und(t.frequency)&&aL.und(t.damping)&&aL.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var cN=[],dN=class{constructor(){this.changed=!1,this.values=cN,this.toValues=null,this.fromValues=cN,this.config=new sN,this.immediate=!1}};function pN(e,t){let{key:n,props:r,defaultProps:o,state:a,actions:i}=t;return new Promise(((t,l)=>{let s,u,c=Yj(r.cancel??o?.cancel,n);if(c)f();else{aL.und(r.pause)||(a.paused=Yj(r.pause,n));let e=o?.pause;!0!==e&&(e=a.paused||Yj(e,n)),s=Kj(r.delay||0,n),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),s=u.time-NF.now()}function p(){s>0&&!rL.skipAnimation?(a.delayed=!0,u=NF.setTimeout(f,s),a.pauseQueue.add(d),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(c=!0);try{i.start({...r,callId:e,cancel:c},t)}catch(n){l(n)}}}))}var fN=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?gN(e.get()):t.every((e=>e.noop))?hN(e.get()):mN(e.get(),t.every((e=>e.finished))),hN=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),mN=function(e,t){return{value:e,finished:t,cancelled:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},gN=e=>({value:e,cancelled:!0,finished:!1});function vN(e,t,n,r){const{callId:o,parentId:a,onRest:i}=t,{asyncTo:l,promise:s}=n;return a||e!==l||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Qj(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const p=new Promise(((e,t)=>(c=e,d=t))),f=e=>{const t=o<=(n.cancelId||0)&&gN(r)||o!==n.asyncId&&mN(r,!1);if(t)throw e.result=t,d(e),e},h=(e,t)=>{const a=new yN,i=new xN;return(async()=>{if(rL.skipAnimation)throw bN(n),i.result=mN(r,!1),d(i),i;f(a);const l=aL.obj(e)?{...e}:{...t,to:e};l.parentId=o,sL(u,((e,t)=>{aL.und(l[t])&&(l[t]=e)}));const s=await r.start(l);return f(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let m;if(rL.skipAnimation)return bN(n),mN(r,!1);try{let t;t=aL.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(c),p]),m=mN(r.get(),!0,!1)}catch(g){if(g instanceof yN)m=g.result;else{if(!(g instanceof xN))throw g;m=g.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return aL.fun(i)&&NF.batchedUpdates((()=>{i(m,r,r.item)})),m})():s}function bN(e,t){cL(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yN=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xN=class extends Error{constructor(){super("SkipAnimationSignal")}},wN=e=>e instanceof SN,CN=1,SN=class extends ij{constructor(){super(...arguments),this.id=CN++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ej(this);return e&&e.getValue()}to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rL.to(this,t)}interpolate(){Sj(`${wj}The "interpolate" function is deprecated in v9 (use "to" instead)`);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rL.to(this,t)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e){aj(this,{type:"change",parent:this,value:e,idle:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})}_onPriorityChange(e){this.idle||SL.sort(this),aj(this,{type:"priority",parent:this,priority:e})}},kN=Symbol.for("SpringPhase"),MN=e=>(1&e[kN])>0,RN=e=>(2&e[kN])>0,PN=e=>(4&e[kN])>0,IN=(e,t)=>t?e[kN]|=3:e[kN]&=-3,AN=(e,t)=>t?e[kN]|=4:e[kN]&=-5,TN=class extends SN{constructor(e,t){if(super(),this.animation=new dN,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!aL.und(e)||!aL.und(t)){const n=aL.obj(e)?{...e}:{...t,from:e};aL.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(RN(this)||this._state.asyncTo)||PN(this)}get goal(){return rj(this.animation.to)}get velocity(){const e=Ej(this);return e instanceof Fj?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return MN(this)}get isAnimating(){return RN(this)}get isPaused(){return PN(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,i=Oj(r.to);!i&&nj(r.to)&&(o=uL(rj(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const u=l.constructor==Lj?1:i?i[s].lastPosition:o[s];let c=r.immediate,d=u;if(!c){if(d=l.lastPosition,a.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=aL.arr(a.velocity)?a.velocity[s]:a.velocity;let i;const p=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(aL.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=p,i=o*r}else{i=null==l.lastVelocity?o:l.lastVelocity;const t=a.restVelocity||p/10,r=a.clamp?0:a.bounce,s=!aL.und(r),f=n==u?l.v0>0:n<u;let h,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(h=Math.abs(i)>t,h||(c=Math.abs(u-d)<=p,!c));++e){s&&(m=d==u||d>u==f,m&&(i=-i*r,d=u));i+=(1e-6*-a.tension*(d-u)+.001*-a.friction*i)/a.mass*g,d+=i*g}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),d=n+a.easing(r)*(u-n),i=(d-l.lastPosition)/e,c=1==r}l.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}i&&!i[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)}));const l=Ej(this),s=l.getValue();if(t){const e=rj(r.to);s===e&&!n||a.decay?n&&a.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return NF.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(RN(this)){const{to:e,config:t}=this.animation;NF.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return aL.und(e)?(n=this.queue||[],this.queue=[]):n=[aL.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>fN(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),bN(this._state,e&&this._lastCallId),NF.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=aL.obj(n)?n[t]:n,(null==n||oN(n))&&(n=void 0),r=aL.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return MN(this)||(e.reverse&&([n,r]=[r,n]),r=rj(r),aL.und(r)?Ej(this)||this._set(n):this._set(r)),o}_update(e,t){let{...n}=e;const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,Qj(n,((e,t)=>/^on/.test(t)?Zj(e,r):e))),LN(this,n,"onProps"),jN(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return pN(++this._lastCallId,{key:r,props:n,defaultProps:o,state:i,actions:{pause:()=>{PN(this)||(AN(this,!0),fL(i.pauseQueue),jN(this,"onPause",mN(this,$N(this,this.animation.to)),this))},resume:()=>{PN(this)&&(AN(this,!1),RN(this)&&this._resume(),fL(i.resumeQueue),jN(this,"onResume",mN(this,$N(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=EN(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(gN(this));const r=!aL.und(e.to),o=!aL.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(gN(this));this._lastToId=t.callId}const{key:a,defaultProps:i,animation:l}=this,{to:s,from:u}=l;let{to:c=s,from:d=u}=e;!o||r||t.default&&!aL.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const p=!iL(d,u);p&&(l.from=d),d=rj(d);const f=!iL(c,s);f&&this._focus(c);const h=oN(t.to),{config:m}=l,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!h&&function(e,t,n){n&&(uN(n={...n},t),t={...n,...t}),uN(e,t),Object.assign(e,t);for(const i in lN)null==e[i]&&(e[i]=lN[i]);let{frequency:r,damping:o}=e;const{mass:a}=e;aL.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r)}(m,Kj(t.config,a),t.config!==i.config?Kj(i.config,a):void 0);let b=Ej(this);if(!b||aL.und(c))return n(mN(this,!0));const y=aL.und(t.reset)?o&&!t.default:!aL.und(d)&&Yj(t.reset,a),x=y?d:this.get(),w=nN(c),C=aL.num(w)||aL.arr(w)||Mj(w),S=!h&&(!C||Yj(i.immediate||t.immediate,a));if(f){const e=Hj(c);if(e!==b.constructor){if(!S)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(w)}}const k=b.constructor;let M=nj(c),R=!1;if(!M){const e=y||!MN(this)&&p;(f||e)&&(R=iL(nN(x),w),M=!R),(iL(l.immediate,S)||S)&&iL(m.decay,g)&&iL(m.velocity,v)||(M=!0)}if(R&&RN(this)&&(l.changed&&!y?M=!0:M||this._stop(s)),!h&&((M||nj(s))&&(l.values=b.getPayload(),l.toValues=nj(c)?null:k==Lj?[1]:uL(w)),l.immediate!=S&&(l.immediate=S,S||y||this._set(s)),M)){const{onRest:e}=l;lL(FN,(e=>LN(this,t,e)));const r=mN(this,$N(this,s));fL(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&NF.batchedUpdates((()=>{l.changed=!y,e?.(r,this),y?Kj(i.onRest,r):l.onStart?.(r,this)}))}y&&this._set(x),h?n(vN(t.to,t,this._state,this)):M?this._start():RN(this)&&!f?this._pendingCalls.add(n):n(hN(x))}_focus(e){const t=this.animation;e!==t.to&&(oj(this)&&this._detach(),t.to=e,oj(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;nj(t)&&(sj(t,this),wN(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;nj(e)&&uj(e,this)}_set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=rj(e);if(!aL.und(n)){const e=Ej(this);if(!e||!iL(n,e.getValue())){const r=Hj(n);e&&e.constructor==r?e.setValue(n):Dj(this,r.create(n)),e&&NF.batchedUpdates((()=>{this._onChange(n,t)}))}}return Ej(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,jN(this,"onStart",mN(this,$N(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Kj(this.animation.onChange,e,this)),Kj(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ej(this).reset(rj(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),RN(this)||(IN(this,!0),PN(this)||this._resume())}_resume(){rL.skipAnimation?this.finish():SL.start(this)}_stop(e,t){if(RN(this)){IN(this,!1);const n=this.animation;lL(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),aj(this,{type:"idle",parent:this});const r=t?gN(this.get()):mN(this.get(),$N(this,e??n.to));fL(this._pendingCalls,r),n.changed&&(n.changed=!1,jN(this,"onRest",r,this))}}};function $N(e,t){const n=nN(t);return iL(nN(e.get()),n)}function EN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to;const r=Kj(t);if(r){const o=!0!==r&&tN(r),a=(o||e).reverse,i=!o||o.reset;return DN({...e,loop:t,default:!1,pause:void 0,to:!a||oN(n)?n:void 0,from:i?e.from:void 0,reset:i,...o})}}function DN(e){const{to:t,from:n}=e=tN(e),r=new Set;return aL.obj(t)&&_N(t,r),aL.obj(n)&&_N(n,r),e.keys=r.size?Array.from(r):null,e}function ON(e){const t=DN(e);return aL.und(t.default)&&(t.default=Qj(t)),t}function _N(e,t){sL(e,((e,n)=>null!=e&&t.add(n)))}var FN=["onStart","onRest","onChange","onPause","onResume"];function LN(e,t,n){e.animation[n]=t[n]!==qj(t,n)?Zj(t[n],e.key):void 0}function jN(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var NN=["onStart","onChange","onRest"],zN=1,BN=class{constructor(e,t){this.id=zN++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];aL.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(DN(e)),this}start(e){let{queue:t}=this;return e?t=uL(e).map(DN):this.queue=[],this._flush?this._flush(this,t):(YN(this,t),HN(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;lL(uL(t),(t=>n[t].stop(!!e)))}else bN(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(aL.und(e))this.start({pause:!0});else{const t=this.springs;lL(uL(e),(e=>t[e].pause()))}return this}resume(e){if(aL.und(e))this.start({pause:!1});else{const t=this.springs;lL(uL(e),(e=>t[e].resume()))}return this}each(e){sL(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,cL(e,(e=>{let[t,n]=e;n.value=this.get(),t(n,this,this._item)})));const a=!r&&this._started,i=o||a&&n.size?this.get():null;o&&t.size&&cL(t,(e=>{let[t,n]=e;n.value=i,t(n,this,this._item)})),a&&(this._started=!1,cL(n,(e=>{let[t,n]=e;n.value=i,t(n,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}NF.onFrame(this._onFrame)}};function HN(e,t){return Promise.all(t.map((t=>VN(e,t)))).then((t=>fN(e,t)))}async function VN(e,t,n){const{keys:r,to:o,from:a,loop:i,onRest:l,onResolve:s}=t,u=aL.obj(t.default)&&t.default;i&&(t.loop=!1),!1===o&&(t.to=null),!1===a&&(t.from=null);const c=aL.arr(o)||aL.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):lL(NN,(n=>{const r=t[n];if(aL.fun(r)){const o=e._events[n];t[n]=e=>{let{finished:t,cancelled:n}=e;const a=o.get(r);a?(t||(a.finished=!1),n&&(a.cancelled=!0)):o.set(r,{value:null,finished:t||!1,cancelled:n||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,fL(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===qj(t,"cancel");(c||f&&d.asyncId)&&p.push(pN(++e._lastAsyncId,{props:t,state:d,actions:{pause:oL,resume:oL,start(t,n){f?(bN(d,e._lastAsyncId),n(gN(e))):(t.onRest=l,n(vN(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=fN(e,await Promise.all(p));if(i&&h.finished&&(!n||!h.noop)){const n=EN(t,i,o);if(n)return YN(e,[n]),VN(e,n,!0)}return s&&NF.batchedUpdates((()=>s(h,e,e.item))),h}function WN(e,t){const n={...e.springs};return t&&lL(uL(t),(e=>{aL.und(e.keys)&&(e=DN(e)),aL.obj(e.to)||(e={...e,to:void 0}),KN(n,e,(e=>GN(e)))})),UN(e,n),n}function UN(e,t){sL(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,sj(t,e))}))}function GN(e,t){const n=new TN;return n.key=e,t&&sj(n,t),n}function KN(e,t,n){t.keys&&lL(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function YN(e,t){lL(t,(t=>{KN(e.springs,t,(t=>GN(t,e)))}))}var ZN,qN,XN=t=>{let{children:n,...r}=t;const o=(0,e.useContext)(QN),a=r.pause||!!o.pause,i=r.immediate||!!o.immediate;r=function(t,n){const[r]=(0,e.useState)((()=>({inputs:n,result:t()}))),o=(0,e.useRef)(),a=o.current;let i=a;if(i){const e=Boolean(n&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.inputs));e||(i={inputs:n,result:t()})}else i=r;return(0,e.useEffect)((()=>{o.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:a,immediate:i})),[a,i]);const{Provider:l}=QN;return e.createElement(l,{value:r},n)},QN=(ZN=XN,qN={},Object.assign(ZN,e.createContext(qN)),ZN.Provider._context=ZN,ZN.Consumer._context=ZN,ZN);XN.Provider=QN.Provider,XN.Consumer=QN.Consumer;var JN=()=>{const e=[],t=function(t){kj(`${wj}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return lL(e,((e,o)=>{if(aL.und(t))r.push(e.start());else{const a=n(t,e,o);a&&r.push(e.start(a))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return lL(e,(e=>e.pause(...arguments))),this},t.resume=function(){return lL(e,(e=>e.resume(...arguments))),this},t.set=function(t){lL(e,((e,n)=>{const r=aL.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return lL(e,((e,r)=>{if(aL.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return lL(e,(e=>e.stop(...arguments))),this},t.update=function(t){return lL(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return aL.fun(e)?e(n,t):e};return t._getProps=n,t};function ez(t,n,r){const o=aL.fun(n)&&n;o&&!r&&(r=[]);const a=(0,e.useMemo)((()=>o||3==arguments.length?JN():void 0),[]),i=(0,e.useRef)(0),l=Pj(),s=(0,e.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=WN(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?HN(e,t):new Promise((r=>{UN(e,n),s.queue.push((()=>{r(HN(e,t))})),l()}))}})),[]),u=(0,e.useRef)([...s.ctrls]),c=[],d=Tj(t)||0;function p(e,t){for(let r=e;r<t;r++){const e=u.current[r]||(u.current[r]=new BN(null,s.flush)),t=o?o(r,e):n[r];t&&(c[r]=ON(t))}}(0,e.useMemo)((()=>{lL(u.current.slice(t,d),(e=>{aN(e,a),e.stop(!0)})),u.current.length=t,p(d,t)}),[t]),(0,e.useMemo)((()=>{p(0,Math.min(d,t))}),r);const f=u.current.map(((e,t)=>WN(e,c[t]))),h=(0,e.useContext)(XN),m=Tj(h),g=h!==m&&rN(h);Rj((()=>{i.current++,s.ctrls=u.current;const{queue:e}=s;e.length&&(s.queue=[],lL(e,(e=>e()))),lL(u.current,((e,t)=>{a?.add(e),g&&e.start({default:h});const n=c[t];n&&(iN(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Ij((()=>()=>{lL(s.ctrls,(e=>e.stop(!0)))}));const v=f.map((e=>({...e})));return a?[v,a]:v}function tz(e,t){const n=aL.fun(e),[[r],o]=ez(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}function nz(t,n,r){const o=aL.fun(n)&&n,{reset:a,sort:i,trail:l=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:d,config:p}=o?o():n,f=(0,e.useMemo)((()=>o||3==arguments.length?JN():void 0),[]),h=uL(t),m=[],g=(0,e.useRef)(null),v=a?null:g.current;Rj((()=>{g.current=m})),Ij((()=>(lL(m,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{lL(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),aN(e.ctrl,f),e.ctrl.stop(!0)}))})));const b=function(e,t,n){let{key:r,keys:o=r}=t;if(null===o){const t=new Set;return e.map((e=>{const r=n&&n.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return r?(t.add(r),r.key):rz++}))}return aL.und(o)?e:aL.fun(o)?e.map(o):uL(o)}(h,o?o():n,v),y=a&&g.current||[];Rj((()=>lL(y,(e=>{let{ctrl:t,item:n,key:r}=e;aN(t,f),Kj(c,n,r)}))));const x=[];if(v&&lL(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=b.indexOf(e.key))&&(m[t]=e)})),lL(h,((e,t)=>{m[t]||(m[t]={key:b[t],item:e,phase:"mount",ctrl:new BN},m[t].ctrl.item=e)})),x.length){let e=-1;const{leave:t}=o?o():n;lL(x,((n,r)=>{const o=v[r];~n?(e=m.indexOf(o),m[e]={...o,item:h[n]}):t&&m.splice(++e,0,o)}))}aL.fun(i)&&m.sort(((e,t)=>i(e.item,t.item)));let w=-l;const C=Pj(),S=Qj(n),k=new Map,M=(0,e.useRef)(new Map),R=(0,e.useRef)(!1);lL(m,((e,t)=>{const r=e.key,a=e.phase,i=o?o():n;let c,f;const h=Kj(i.delay||0,r);if("mount"==a)c=i.enter,f="enter";else{const e=b.indexOf(r)<0;if("leave"!=a)if(e)c=i.leave,f="leave";else{if(!(c=i.update))return;f="update"}else{if(e)return;c=i.enter,f="enter"}}if(c=Kj(c,e.item,t),c=aL.obj(c)?tN(c):{to:c},!c.config){const n=p||S.config;c.config=Kj(n,e.item,t,f)}w+=l;const m={...S,delay:h+w,ref:d,immediate:i.immediate,reset:!1,...c};if("enter"==f&&aL.und(m.from)){const r=o?o():n,a=aL.und(r.initial)||v?r.from:r.initial;m.from=Kj(a,e.item,t)}const{onResolve:y}=m;m.onResolve=e=>{Kj(y,e);const t=g.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=Kj(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(C,r)))}}e&&t.some((e=>e.expired))&&(M.current.delete(n),u&&(R.current=!0),C())}};const x=WN(e.ctrl,m);"leave"===f&&u?M.current.set(e,{phase:f,springs:x,payload:m}):k.set(e,{phase:f,springs:x,payload:m})}));const P=(0,e.useContext)(XN),I=Tj(P),A=P!==I&&rN(P);Rj((()=>{A&&lL(m,(e=>{e.ctrl.start({default:P})}))}),[P]),lL(k,((e,t)=>{if(M.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),Rj((()=>{lL(M.current.size?M.current:k,((e,t)=>{let{phase:n,payload:r}=e;const{ctrl:o}=t;t.phase=n,f?.add(o),A&&"enter"==n&&o.start({default:P}),r&&(iN(o,r.ref),!o.ref&&!f||R.current?(o.start(r),R.current&&(R.current=!1)):o.update(r))}))}),a?void 0:r);const T=t=>e.createElement(e.Fragment,null,m.map(((n,r)=>{const{springs:o}=k.get(n)||n.ctrl,a=t({...o},n.item,n,r);return a&&a.type?e.createElement(a.type,{...a.props,key:aL.str(n.key)||aL.num(n.key)?n.key:n.ctrl.id,ref:a.ref}):a})));return f?[T,f]:T}var rz=1;var oz=class extends SN{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=GL(...t);const n=this._get(),r=Hj(n);Dj(this,r.create(n))}advance(e){const t=this._get();iL(t,this.get())||(Ej(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&iz(this._active)&&lz(this)}_get(){const e=aL.arr(this.source)?this.source.map(rj):uL(rj(this.source));return this.calc(...e)}_start(){this.idle&&!iz(this._active)&&(this.idle=!1,lL(Oj(this),(e=>{e.done=!1})),rL.skipAnimation?(NF.batchedUpdates((()=>this.advance())),lz(this)):SL.start(this))}_attach(){let e=1;lL(uL(this.source),(t=>{nj(t)&&sj(t,this),wN(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){lL(uL(this.source),(e=>{nj(e)&&uj(e,this)})),this._active.clear(),lz(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=uL(this.source).reduce(((e,t)=>Math.max(e,(wN(t)?t.priority:0)+1)),0))}};function az(e){return!1!==e.idle}function iz(e){return!e.size||Array.from(e).every(az)}function lz(e){e.idle||(e.idle=!0,lL(Oj(e),(e=>{e.done=!0})),aj(e,{type:"idle",parent:e}))}var sz=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new oz(e,n)};rL.assign({createStringInterpolator:xj,to:(e,t)=>new oz(e,t)});SL.advance;var uz=/^--/;function cz(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||uz.test(e)||pz.hasOwnProperty(e)&&pz[e]?(""+t).trim():t+"px"}var dz={};var pz={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fz=["Webkit","Ms","Moz","O"];pz=Object.keys(pz).reduce(((e,t)=>(fz.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),pz);var hz=/^(matrix|translate|scale|rotate|skew)/,mz=/^(translate)/,gz=/^(rotate|skew)/,vz=(e,t)=>aL.num(e)&&0!==e?e+t:e,bz=(e,t)=>aL.arr(e)?e.every((e=>bz(e,t))):aL.num(e)?e===t:parseFloat(e)===t,yz=class extends Nj{constructor(e){let{x:t,y:n,z:r,...o}=e;const a=[],i=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),i.push((e=>[`translate3d(${e.map((e=>vz(e,"px"))).join(",")})`,bz(e,0)]))),sL(o,((e,t)=>{if("transform"===t)a.push([e||""]),i.push((e=>[e,""===e]));else if(hz.test(t)){if(delete o[t],aL.und(e))return;const n=mz.test(t)?"px":gz.test(t)?"deg":"";a.push(uL(e)),i.push("rotate3d"===t?e=>{let[t,r,o,a]=e;return[`rotate3d(${t},${r},${o},${vz(a,n)})`,bz(a,0)]}:e=>[`${t}(${e.map((e=>vz(e,n))).join(",")})`,bz(e,t.startsWith("scale")?1:0)])}})),a.length&&(o.transform=new xz(a,i)),super(o)}},xz=class extends ij{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return lL(this.inputs,((n,r)=>{const o=rj(n[0]),[a,i]=this.transforms[r](aL.arr(o)?o:n.map(rj));e+=" "+a,t=t&&i})),t?"none":e}observerAdded(e){1==e&&lL(this.inputs,(e=>lL(e,(e=>nj(e)&&sj(e,this)))))}observerRemoved(e){0==e&&lL(this.inputs,(e=>lL(e,(e=>nj(e)&&uj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),aj(this,e)}};rL.assign({batchedUpdates:Ei.unstable_batchedUpdates,createStringInterpolator:xj,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var wz=function(e){let{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Nj(e),getComponentProps:r=e=>e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=Gj(e)||"Anonymous";return(e=aL.str(e)?a[e]||(a[e]=Vj(e,o)):e[Uj]||(e[Uj]=Vj(e,o))).displayName=`Animated(${t})`,e};return sL(e,((t,n)=>{aL.arr(e)&&(n=Gj(t)),a[n]=a(t)})),{animated:a}}(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:o,children:a,scrollTop:i,scrollLeft:l,viewBox:s,...u}=t,c=Object.values(u),d=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:dz[t]||(dz[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==a&&(e.textContent=a);for(const p in o)if(o.hasOwnProperty(p)){const t=cz(p,o[p]);uz.test(p)?e.style.setProperty(p,t):e.style[p]=t}d.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==r&&(e.className=r),void 0!==i&&(e.scrollTop=i),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new yz(e),getComponentProps:e=>{let{scrollTop:t,scrollLeft:n,...r}=e;return r}}),Cz=wz.animated;const Sz=e.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});const kz=()=>{const{data:t}=e.useContext(Sz);return t};function Mz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pz(){}var Iz=.7,Az=1/Iz,Tz="\\s*([+-]?\\d+)\\s*",$z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ez="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dz=/^#([0-9a-f]{3,8})$/,Oz=new RegExp(`^rgb\\(${Tz},${Tz},${Tz}\\)$`),_z=new RegExp(`^rgb\\(${Ez},${Ez},${Ez}\\)$`),Fz=new RegExp(`^rgba\\(${Tz},${Tz},${Tz},${$z}\\)$`),Lz=new RegExp(`^rgba\\(${Ez},${Ez},${Ez},${$z}\\)$`),jz=new RegExp(`^hsl\\(${$z},${Ez},${Ez}\\)$`),Nz=new RegExp(`^hsla\\(${$z},${Ez},${Ez},${$z}\\)$`),zz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bz(){return this.rgb().formatHex()}function Hz(){return this.rgb().formatRgb()}function Vz(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Wz(t):3===n?new Kz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Uz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Uz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Oz.exec(e))?new Kz(t[1],t[2],t[3],1):(t=_z.exec(e))?new Kz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fz.exec(e))?Uz(t[1],t[2],t[3],t[4]):(t=Lz.exec(e))?Uz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jz.exec(e))?Jz(t[1],t[2]/100,t[3]/100,1):(t=Nz.exec(e))?Jz(t[1],t[2]/100,t[3]/100,t[4]):zz.hasOwnProperty(e)?Wz(zz[e]):"transparent"===e?new Kz(NaN,NaN,NaN,0):null}function Wz(e){return new Kz(e>>16&255,e>>8&255,255&e,1)}function Uz(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kz(e,t,n,r)}function Gz(e,t,n,r){return 1===arguments.length?((o=e)instanceof Pz||(o=Vz(o)),o?new Kz((o=o.rgb()).r,o.g,o.b,o.opacity):new Kz):new Kz(e,t,n,null==r?1:r);var o}function Kz(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yz(){return`#${Qz(this.r)}${Qz(this.g)}${Qz(this.b)}`}function Zz(){const e=qz(this.opacity);return`${1===e?"rgb(":"rgba("}${Xz(this.r)}, ${Xz(this.g)}, ${Xz(this.b)}${1===e?")":`, ${e})`}`}function qz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qz(e){return((e=Xz(e))<16?"0":"")+e.toString(16)}function Jz(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tB(e,t,n,r)}function eB(e){if(e instanceof tB)return new tB(e.h,e.s,e.l,e.opacity);if(e instanceof Pz||(e=Vz(e)),!e)return new tB;if(e instanceof tB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new tB(i,l,s,e.opacity)}function tB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nB(e){return(e=(e||0)%360)<0?e+360:e}function rB(e){return Math.max(0,Math.min(1,e||0))}function oB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Mz(Pz,Vz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bz,formatHex:Bz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eB(this).formatHsl()},formatRgb:Hz,toString:Hz}),Mz(Kz,Gz,Rz(Pz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new Kz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Iz:Math.pow(Iz,e),new Kz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kz(Xz(this.r),Xz(this.g),Xz(this.b),qz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yz,formatHex:Yz,formatHex8:function(){return`#${Qz(this.r)}${Qz(this.g)}${Qz(this.b)}${Qz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zz,toString:Zz})),Mz(tB,(function(e,t,n,r){return 1===arguments.length?eB(e):new tB(e,t,n,null==r?1:r)}),Rz(Pz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new tB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Iz:Math.pow(Iz,e),new tB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Kz(oB(e>=240?e-240:e+120,o,r),oB(e,o,r),oB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new tB(nB(this.h),rB(this.s),rB(this.l),qz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qz(this.opacity);return`${1===e?"hsl(":"hsla("}${nB(this.h)}, ${100*rB(this.s)}%, ${100*rB(this.l)}%${1===e?")":`, ${e})`}`}}));const aB=e.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null});const iB=(e,t)=>{switch(t.type){case"enterItem":return fe({},e,{item:t.data});case"exitChart":return null===e.item&&null===e.axis.x&&null===e.axis.y?e:fe({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return fe({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return null===e.item||Object.keys(t.data).some((n=>t.data[n]!==e.item[n]))?e:fe({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:fe({},e,{axis:t.data});default:return e}};function lB(t){const{children:n}=t,[r,o]=e.useReducer(iB,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),a=e.useMemo((()=>fe({},r,{dispatch:o})),[r]);return(0,Tr.jsx)(aB.Provider,{value:a,children:n})}const sB=e.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}});function uB(){const{isInitialized:t,data:n}=e.useContext(sB);if(!t)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}const cB=t=>{const{dispatch:n}=e.useContext(aB),{setHighlighted:r,clearHighlighted:o}=uB();if(t)return()=>({});return e=>({onPointerEnter:()=>{n({type:"enterItem",data:e}),r({seriesId:e.seriesId,dataIndex:e.dataIndex})},onPointerLeave:t=>{t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId),n({type:"leaveItem",data:e}),o()},onPointerDown:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}})};function dB(e){const t=uB();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e);return{isHighlighted:n,isFaded:!n&&t.isFaded(e)}}const pB=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function fB(e){return ec("MuiBarElement",e)}tc("MuiBarElement",["root"]);const hB=Ir(Cz.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{stroke:"none",fill:t.isHighlighted?Vz(t.color).brighter(.5).formatHex():t.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}}));function mB(e){const{id:t,dataIndex:n,classes:r,color:o,slots:a,slotProps:i,style:l,onClick:s}=e,u=Ai(e,pB),c=cB(),{isFaded:d,isHighlighted:p}=dB({seriesId:t,dataIndex:n}),f={id:t,dataIndex:n,classes:r,color:o,isFaded:d,isHighlighted:p},h=(e=>{const{classes:t,id:n}=e;return qu({root:["root",`series-${n}`]},fB,t)})(f),m=a?.bar??hB,g=Us({elementType:m,externalSlotProps:i?.bar,externalForwardedProps:u,additionalProps:fe({},c({type:"bar",seriesId:t,dataIndex:n}),{style:l,onClick:s,cursor:s?"pointer":"unset"}),className:h.root,ownerState:f});return(0,Tr.jsx)(m,fe({},g))}const gB=(e,t,n)=>{const r="vertical"===e.layout,o=r?t?.colorScale:n?.colorScale,a=r?n?.colorScale:t?.colorScale,i=r?t?.data:n?.data;return a?t=>{const n=e.data[t],r=null===n?e.color:a(n);return null===r?e.color:r}:o&&i?t=>{const n=i[t],r=null===n?e.color:o(n);return null===r?e.color:r}:()=>e.color},vB="DEFAULT_X_AXIS_KEY",bB="DEFAULT_Y_AXIS_KEY",yB={top:50,bottom:50,left:50,right:50},xB=(t,n,r)=>{const o=fe({},yB,r);return e.useMemo((()=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:Math.max(0,t-o.left-o.right),height:Math.max(0,n-o.top-o.bottom)})),[t,n,o.top,o.bottom,o.left,o.right])},wB=e.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1});const CB=e.createContext({isInitialized:!1,data:{current:null}});function SB(t){const{width:n,height:r,margin:o,svgRef:a,children:i}=t,l=xB(n,r,o),s=Ys(),u=e.useCallback(((e,t)=>{let{x:n,y:r}=e;if(t?.targetElement&&t?.targetElement.closest("[data-drawing-container]"))return!0;const o=n>=l.left-1&&n<=l.left+l.width,a=r>=l.top-1&&r<=l.top+l.height;return"x"===t?.direction?o:("y"===t?.direction||o)&&a}),[l]),c=e.useMemo((()=>fe({chartId:s??""},l,{isPointInside:u})),[s,l,u]),d=e.useMemo((()=>({isInitialized:!0,data:a})),[a]);return(0,Tr.jsx)(CB.Provider,{value:d,children:(0,Tr.jsx)(wB.Provider,{value:c,children:i})})}function kB(){const{chartId:t}=e.useContext(wB);return e.useMemo((()=>t),[t])}const MB=(e,t)=>{let{hasNegative:n,hasPositive:r,borderRadius:o,layout:a}=t;if(!o)return 0;const i="vertical"===a;return"top-left"===e&&(i&&r||!i&&n)||"top-right"===e&&(i&&r||!i&&r)||"bottom-right"===e&&(i&&n||!i&&r)||"bottom-left"===e&&(i&&n||!i&&n)?o:0},RB=["style","maskId"];function PB(e){const t=e.ownerState;return(0,Tr.jsx)(Cz.rect,{style:fe({},e.style,{clipPath:("vertical"===e.ownerState.layout?e.style?.height:e.style?.width).to((e=>{return`inset(0px round ${(n={topLeft:Math.min(e,MB("top-left",t)),topRight:Math.min(e,MB("top-right",t)),bottomRight:Math.min(e,MB("bottom-right",t)),bottomLeft:Math.min(e,MB("bottom-left",t))}).topLeft}px ${n.topRight}px ${n.bottomRight}px ${n.bottomLeft}px)`;var n}))})})}function IB(e){const{style:t,maskId:n}=e,r=Ai(e,RB);return!e.borderRadius||e.borderRadius<=0?null:(0,Tr.jsx)("clipPath",{id:n,children:(0,Tr.jsx)(PB,{ownerState:r,style:t})})}function AB(e){return ec("MuiBarLabel",e)}const TB=tc("MuiBarLabel",["root","highlighted","faded"]),$B=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],EB=Ir(Cz.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${TB.faded}`]:t.faded},{[`&.${TB.highlighted}`]:t.highlighted},t.root]})((e=>{let{theme:t}=e;return fe({},t?.typography?.body2,{stroke:"none",fill:(t.vars||t)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${TB.faded}`]:{opacity:.3}})}));function DB(e){const t=Ai(gu({props:e,name:"MuiBarLabel"}),$B);return(0,Tr.jsx)(EB,fe({},t))}const OB=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],_B=["ownerState"];function FB(e){const{seriesId:t,classes:n,color:r,style:o,dataIndex:a,barLabel:i,slots:l,slotProps:s,height:u,width:c,value:d}=e,p=Ai(e,OB),{isFaded:f,isHighlighted:h}=dB({seriesId:t,dataIndex:a}),m={seriesId:t,classes:n,color:r,isFaded:f,isHighlighted:h,dataIndex:a},g=(e=>{const{classes:t,seriesId:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},AB,t)})(m),v=l?.barLabel??DB,b=Us({elementType:v,externalSlotProps:s?.barLabel,additionalProps:fe({},p,{style:o,className:g.root}),ownerState:m}),{ownerState:y}=b,x=Ai(b,_B);if(!i)return null;const w=(e=>{const{barLabel:t,value:n,dataIndex:r,seriesId:o,height:a,width:i}=e;return"value"===t?n?n?.toString():null:t({seriesId:o,dataIndex:r,value:n},{bar:{height:a,width:i}})})({barLabel:i,value:d,dataIndex:a,seriesId:t,height:u,width:c});return w?(0,Tr.jsx)(v,fe({},x,y,{children:w})):null}const LB=["bars","skipAnimation"],jB=e=>{let{layout:t,yOrigin:n,x:r,width:o,y:a,xOrigin:i,height:l}=e;return fe({},"vertical"===t?{y:n,x:r+o/2,height:0,width:o}:{y:a+l/2,x:i,height:l,width:0})},NB=e=>{let{x:t,width:n,y:r,height:o}=e;return{x:t+n/2,y:r+o/2,height:o,width:n}};function zB(t){const{bars:n,skipAnimation:r}=t,o=Ai(t,LB),a=nz(n,{keys:e=>`${e.seriesId}-${e.dataIndex}`,from:jB,leave:null,enter:NB,update:NB,immediate:r});return(0,Tr.jsx)(e.Fragment,{children:a(((e,t)=>{let{seriesId:n,dataIndex:r,color:a,value:i,width:l,height:s}=t;return(0,Tr.jsx)(FB,fe({seriesId:n,dataIndex:r,value:i,color:a,width:l,height:s},o,{style:e}))}))})}function BB(e){return"band"===e.scaleType}function HB(e){return"point"===e.scaleType}const VB=(e,t)=>t===("x"===e?vB:bB)?`The first \`${`${e}Axis`}\``:`The ${`${e}-axis`} with id "${t}"`;const WB=e.createContext({isInitialized:!1,data:{}});function UB(){const{isInitialized:t,data:n}=e.useContext(WB);if(!t)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function GB(){const t=UB();return e.useMemo((()=>t.line),[t.line])}const KB=e.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function YB(t){const{isInitialized:n,data:r}=e.useContext(KB);if(!n)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t||r.skipAnimation}const ZB=["skipAnimation","onItemClick","borderRadius","barLabel"];const qB=()=>{const t=function(){const t=UB();return e.useMemo((()=>t.bar),[t.bar])}()??{series:{},stackingGroups:[],seriesOrder:[]},n=kz(),r=kB(),{series:o,stackingGroups:a}=t,{xAxis:i,yAxis:l,xAxisIds:s,yAxisIds:u}=n,c=s[0],d=u[0],p={},f=a.flatMap(((e,t)=>{let{ids:n}=e;return n.flatMap((e=>{const n=o[e].xAxisId??o[e].xAxisKey??c,s=o[e].yAxisId??o[e].yAxisKey??d,u=i[n],f=l[s],h="vertical"===o[e].layout;!function(e,t,n,r,o,a){const i=r[n],l=a[o],s=e?i:l,u=e?l:i,c=e?n:o,d=e?o:n,p=e?"x":"y",f=e?"y":"x";if(!BB(s))throw new Error(`MUI X: ${VB(p,c)} should be of type "band" to display the bar series of id "${t}".`);if(void 0===s.data)throw new Error(`MUI X: ${VB(p,c)} should have data property.`);if(BB(u)||HB(u))throw new Error(`MUI X: ${VB(f,d)} should be a continuous type to display the bar series of id "${t}".`)}(h,e,n,i,s,l);const m=h?u:f,g=u.scale,v=f.scale,b=gB(o[e],i[n],l[s]),y=m.scale.bandwidth(),{barWidth:x,offset:w}=function(e){let{bandWidth:t,numberOfGroups:n,gapRatio:r}=e;if(0===r)return{barWidth:t/n,offset:0};const o=t/(n+(n-1)*r);return{barWidth:o,offset:r*o}}({bandWidth:y,numberOfGroups:a.length,gapRatio:m.barGapRatio}),C=t*(x+w),{stackedData:S}=o[e];return S.map(((a,u)=>{const c=a.map((e=>h?v(e):g(e))),d=Math.round(Math.min(...c)),f=Math.round(Math.max(...c)),m=o[e].stack,y={seriesId:e,dataIndex:u,layout:o[e].layout,x:h?g(i[n].data?.[u])+C:d,y:h?d:v(l[s].data?.[u])+C,xOrigin:g(0),yOrigin:v(0),height:h?f-d:x,width:h?x:f-d,color:b(u),value:o[e].data[u],maskId:`${r}_${m||e}_${t}_${u}`};p[y.maskId]||(p[y.maskId]={id:y.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:y.layout,xOrigin:g(0),yOrigin:v(0),x:0,y:0});const w=p[y.maskId];return w.width="vertical"===y.layout?y.width:w.width+y.width,w.height="vertical"===y.layout?w.height+y.height:y.height,w.x=Math.min(0===w.x?1/0:w.x,y.x),w.y=Math.min(0===w.y?1/0:w.y,y.y),w.hasNegative=w.hasNegative||(y.value??0)<0,w.hasPositive=w.hasPositive||(y.value??0)>0,y}))}))}));return{completedData:f,masksData:Object.values(p)}},XB=e=>{let{layout:t,yOrigin:n,x:r,width:o,y:a,xOrigin:i,height:l}=e;return fe({},"vertical"===t?{y:n,x:r,height:0,width:o}:{y:a,x:i,height:l,width:0})},QB=e=>{let{x:t,width:n,y:r,height:o}=e;return{y:r,x:t,height:o,width:n}};function JB(t){const{completedData:n,masksData:r}=qB(),{skipAnimation:o,onItemClick:a,borderRadius:i,barLabel:l}=t,s=Ai(t,ZB),u=YB(o),c=!i||i<=0,d=nz(n,{keys:e=>`${e.seriesId}-${e.dataIndex}`,from:XB,leave:XB,enter:QB,update:QB,immediate:u}),p=nz(c?[]:r,{keys:e=>e.id,from:XB,leave:XB,enter:QB,update:QB,immediate:u});return(0,Tr.jsxs)(e.Fragment,{children:[!c&&p(((e,t)=>{let{id:n,hasPositive:r,hasNegative:o,layout:a}=t;return(0,Tr.jsx)(IB,{maskId:n,borderRadius:i,hasNegative:o,hasPositive:r,layout:a,style:e})})),d(((e,t)=>{let{seriesId:n,dataIndex:r,color:o,maskId:i}=t;const l=(0,Tr.jsx)(mB,fe({id:n,dataIndex:r,color:o},s,{onClick:a&&(e=>{a(e,{type:"bar",seriesId:n,dataIndex:r})}),style:e}));return c?l:(0,Tr.jsx)("g",{clipPath:`url(#${i})`,children:l})})),l&&(0,Tr.jsx)(zB,fe({bars:n,skipAnimation:u,barLabel:l},s))]})}const eH=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],tH=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],nH=e=>"dark"===e?tH:eH,rH=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];const oH=e=>{let{series:t,colors:n,seriesFormatters:r,dataset:o}=e;const a={};t.forEach(((e,t)=>{const{id:r=`auto-generated-id-${t}`,type:o}=e;if(void 0===a[o]&&(a[o]={series:{},seriesOrder:[]}),void 0!==a[o]?.series[r])throw new Error(`MUI X: series' id "${r}" is not unique.`);a[o].series[r]=fe({id:r},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rH;return"pie"===e.type?fe({},e,{data:e.data.map(((e,t)=>fe({color:n[t%n.length]},e)))}):fe({color:n[t%n.length]},e)}(e,t,n)),a[o].seriesOrder.push(r)}));const i={};return Object.keys(r).forEach((e=>{const t=a[e];void 0!==t&&(i[e]=r[e]?.(t,o)??a[e])})),i},aH=e.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});function iH(t){const{series:n,dataset:r,colors:o=nH,children:a}=t,i=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.seriesFormatters[t]:r.seriesFormatters}(),l=Lr(),s=e.useMemo((()=>({isInitialized:!0,data:oH({series:n,colors:"function"===typeof o?o(l.palette.mode):o,seriesFormatters:i,dataset:r})})),[n,o,l.palette.mode,i,r]);return(0,Tr.jsx)(WB.Provider,{value:s,children:a})}function lH(e){return void 0!==e.bandwidth}function sH(){const{isInitialized:t,data:n}=e.useContext(CB);if(!t)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function uH(){const{left:t,top:n,width:r,height:o,bottom:a,right:i,isPointInside:l}=e.useContext(wB);return e.useMemo((()=>({left:t,top:n,width:r,height:o,bottom:a,right:i,isPointInside:l})),[o,t,n,r,a,i,l])}function cH(e){return e instanceof Date?e.getTime():e}const dH=["children","width","height","viewBox","disableAxisListener","className","title","desc"],pH=Ir("svg",{name:"MuiChartsSurface",slot:"Root"})((()=>({touchAction:"none"}))),fH=e.forwardRef((function(t,n){const r=gu({props:t,name:"MuiChartsSurface"}),{children:o,width:a,height:i,viewBox:l,disableAxisListener:s=!1,className:u,title:c,desc:d}=r,p=Ai(r,dH),f=fe({width:a,height:i,x:0,y:0},l);return(t=>{const n=sH(),r=uH(),{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=kz(),{dispatch:s}=e.useContext(aB),u=i[0],c=l[0],d=e.useRef({isInChart:!1,x:-1,y:-1});e.useEffect((()=>{const e=n.current;if(null===e||t)return()=>{};function i(e,t){const{scale:n,data:r,reverse:o}=e;if(!lH(n)){const e=n.invert(t);if(void 0===r)return{value:e,index:-1};const o=cH(e),a=r?.findIndex(((t,n)=>{const a=cH(t);return a>o&&(0===n||Math.abs(o-a)<=Math.abs(o-cH(r[n-1])))||a<=o&&(n===r.length-1||Math.abs(cH(e)-a)<Math.abs(cH(e)-cH(r[n+1])))}));return{value:void 0!==a&&a>=0?r[a]:e,index:a}}const a=0===n.bandwidth()?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());if(a<0||a>=r.length)return null;if(o){const e=r.length-1-a;return{index:e,value:r[e]}}return{index:a,value:r[a]}}const l=()=>{d.current={isInChart:!1,x:-1,y:-1},s({type:"exitChart"})},p=t=>{const n="targetTouches"in t?t.targetTouches[0]:t,l=function(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}(e,n);if(d.current.x=l.x,d.current.y=l.y,!r.isPointInside(l,{targetElement:t.target}))return void(d.current.isInChart&&(s({type:"exitChart"}),d.current.isInChart=!1));d.current.isInChart=!0;const p=i(o[u],l.x),f=i(a[c],l.y);s({type:"updateAxis",data:{x:p,y:f}})},f=e=>{const t=e.currentTarget;t&&t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)};return e.addEventListener("pointerdown",f),e.addEventListener("pointermove",p),e.addEventListener("pointerout",l),e.addEventListener("pointercancel",l),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointerdown",f),e.removeEventListener("pointermove",p),e.removeEventListener("pointerout",l),e.removeEventListener("pointercancel",l),e.removeEventListener("pointerleave",l)}}),[n,s,c,a,u,o,t,r])})(s),(0,Tr.jsxs)(pH,fe({width:a,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:u},p,{children:[(0,Tr.jsx)("title",{children:c}),(0,Tr.jsx)("desc",{children:d}),o]}))}));function hH(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mH(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gH(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=hH,n=(t,n)=>hH(e(t),n),r=(t,n)=>e(t)-n):(t=e===hH||e===mH?e:vH,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=o(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function vH(){return 0}const bH=Math.sqrt(50),yH=Math.sqrt(10),xH=Math.sqrt(2);function wH(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=bH?10:a>=yH?5:a>=xH?2:1;let l,s,u;return o<0?(u=Math.pow(10,-o)/i,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,o)*i,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?wH(e,t,2*n):[l,s,u]}function CH(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,a,i]=r?wH(t,e,n):wH(e,t,n);if(!(a>=o))return[];const l=a-o+1,s=new Array(l);if(r)if(i<0)for(let u=0;u<l;++u)s[u]=(a-u)/-i;else for(let u=0;u<l;++u)s[u]=(a-u)*i;else if(i<0)for(let u=0;u<l;++u)s[u]=(o+u)/-i;else for(let u=0;u<l;++u)s[u]=(o+u)*i;return s}function SH(e,t,n){return wH(e=+e,t=+t,n=+n)[2]}function kH(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?SH(t,e,n):SH(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}const MH=1e3,RH=6e4,PH=36e5,IH=864e5,AH=6048e5,TH=2592e6,$H=31536e6,EH=new Date,DH=new Date;function OH(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{const i=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return i;let l;do{i.push(l=new Date(+n)),t(n,a),e(n)}while(l<n&&n<r);return i},o.filter=n=>OH((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(EH.setTime(+t),DH.setTime(+r),e(EH),e(DH),Math.floor(n(EH,DH))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const _H=OH((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));_H.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?OH((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):_H:null);_H.range;const FH=OH((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*MH)}),((e,t)=>(t-e)/MH),(e=>e.getUTCSeconds())),LH=(FH.range,OH((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*MH)}),((e,t)=>{e.setTime(+e+t*RH)}),((e,t)=>(t-e)/RH),(e=>e.getMinutes()))),jH=(LH.range,OH((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*RH)}),((e,t)=>(t-e)/RH),(e=>e.getUTCMinutes()))),NH=(jH.range,OH((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*MH-e.getMinutes()*RH)}),((e,t)=>{e.setTime(+e+t*PH)}),((e,t)=>(t-e)/PH),(e=>e.getHours()))),zH=(NH.range,OH((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*PH)}),((e,t)=>(t-e)/PH),(e=>e.getUTCHours()))),BH=(zH.range,OH((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RH)/IH),(e=>e.getDate()-1))),HH=(BH.range,OH((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/IH),(e=>e.getUTCDate()-1))),VH=(HH.range,OH((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/IH),(e=>Math.floor(e/IH))));VH.range;function WH(e){return OH((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RH)/AH))}const UH=WH(0),GH=WH(1),KH=WH(2),YH=WH(3),ZH=WH(4),qH=WH(5),XH=WH(6);UH.range,GH.range,KH.range,YH.range,ZH.range,qH.range,XH.range;function QH(e){return OH((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/AH))}const JH=QH(0),eV=QH(1),tV=QH(2),nV=QH(3),rV=QH(4),oV=QH(5),aV=QH(6),iV=(JH.range,eV.range,tV.range,nV.range,rV.range,oV.range,aV.range,OH((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),lV=(iV.range,OH((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),sV=(lV.range,OH((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));sV.every=e=>isFinite(e=Math.floor(e))&&e>0?OH((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;sV.range;const uV=OH((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));uV.every=e=>isFinite(e=Math.floor(e))&&e>0?OH((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;uV.range;function cV(e,t,n,r,o,a){const i=[[FH,1,MH],[FH,5,5e3],[FH,15,15e3],[FH,30,3e4],[a,1,RH],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,PH],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,IH],[r,2,1728e5],[n,1,AH],[t,1,TH],[t,3,7776e6],[e,1,$H]];function l(t,n,r){const o=Math.abs(n-t)/r,a=gH((e=>{let[,,t]=e;return t})).right(i,o);if(a===i.length)return e.every(kH(t/$H,n/$H,r));if(0===a)return _H.every(Math.max(kH(t,n,r),1));const[l,s]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"===typeof n.range?n:l(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},l]}const[dV,pV]=cV(uV,lV,JH,VH,zH,jH),[fV,hV]=cV(sV,iV,UH,BH,NH,LH);function mV(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gV(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vV(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var bV,yV,xV,wV={"-":"",_:" ",0:"0"},CV=/^\s*\d+/,SV=/^%/,kV=/[\\^$*+?|[\]().{}]/g;function MV(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function RV(e){return e.replace(kV,"\\$&")}function PV(e){return new RegExp("^(?:"+e.map(RV).join("|")+")","i")}function IV(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function AV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $V(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function EV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function DV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OV(e,t,n){var r=CV.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _V(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FV(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function LV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function jV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function NV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zV(e,t,n){var r=CV.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function HV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WV(e,t,n){var r=CV.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function UV(e,t,n){var r=CV.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function GV(e,t,n){var r=SV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function KV(e,t,n){var r=CV.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function YV(e,t,n){var r=CV.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ZV(e,t){return MV(e.getDate(),t,2)}function qV(e,t){return MV(e.getHours(),t,2)}function XV(e,t){return MV(e.getHours()%12||12,t,2)}function QV(e,t){return MV(1+BH.count(sV(e),e),t,3)}function JV(e,t){return MV(e.getMilliseconds(),t,3)}function eW(e,t){return JV(e,t)+"000"}function tW(e,t){return MV(e.getMonth()+1,t,2)}function nW(e,t){return MV(e.getMinutes(),t,2)}function rW(e,t){return MV(e.getSeconds(),t,2)}function oW(e){var t=e.getDay();return 0===t?7:t}function aW(e,t){return MV(UH.count(sV(e)-1,e),t,2)}function iW(e){var t=e.getDay();return t>=4||0===t?ZH(e):ZH.ceil(e)}function lW(e,t){return e=iW(e),MV(ZH.count(sV(e),e)+(4===sV(e).getDay()),t,2)}function sW(e){return e.getDay()}function uW(e,t){return MV(GH.count(sV(e)-1,e),t,2)}function cW(e,t){return MV(e.getFullYear()%100,t,2)}function dW(e,t){return MV((e=iW(e)).getFullYear()%100,t,2)}function pW(e,t){return MV(e.getFullYear()%1e4,t,4)}function fW(e,t){var n=e.getDay();return MV((e=n>=4||0===n?ZH(e):ZH.ceil(e)).getFullYear()%1e4,t,4)}function hW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+MV(t/60|0,"0",2)+MV(t%60,"0",2)}function mW(e,t){return MV(e.getUTCDate(),t,2)}function gW(e,t){return MV(e.getUTCHours(),t,2)}function vW(e,t){return MV(e.getUTCHours()%12||12,t,2)}function bW(e,t){return MV(1+HH.count(uV(e),e),t,3)}function yW(e,t){return MV(e.getUTCMilliseconds(),t,3)}function xW(e,t){return yW(e,t)+"000"}function wW(e,t){return MV(e.getUTCMonth()+1,t,2)}function CW(e,t){return MV(e.getUTCMinutes(),t,2)}function SW(e,t){return MV(e.getUTCSeconds(),t,2)}function kW(e){var t=e.getUTCDay();return 0===t?7:t}function MW(e,t){return MV(JH.count(uV(e)-1,e),t,2)}function RW(e){var t=e.getUTCDay();return t>=4||0===t?rV(e):rV.ceil(e)}function PW(e,t){return e=RW(e),MV(rV.count(uV(e),e)+(4===uV(e).getUTCDay()),t,2)}function IW(e){return e.getUTCDay()}function AW(e,t){return MV(eV.count(uV(e)-1,e),t,2)}function TW(e,t){return MV(e.getUTCFullYear()%100,t,2)}function $W(e,t){return MV((e=RW(e)).getUTCFullYear()%100,t,2)}function EW(e,t){return MV(e.getUTCFullYear()%1e4,t,4)}function DW(e,t){var n=e.getUTCDay();return MV((e=n>=4||0===n?rV(e):rV.ceil(e)).getUTCFullYear()%1e4,t,4)}function OW(){return"+0000"}function _W(){return"%"}function FW(e){return+e}function LW(e){return Math.floor(+e/1e3)}bV=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=PV(o),c=IV(o),d=PV(a),p=IV(a),f=PV(i),h=IV(i),m=PV(l),g=IV(l),v=PV(s),b=IV(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:ZV,e:ZV,f:eW,g:dW,G:fW,H:qV,I:XV,j:QV,L:JV,m:tW,M:nW,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:FW,s:LW,S:rW,u:oW,U:aW,V:lW,w:sW,W:uW,x:null,X:null,y:cW,Y:pW,Z:hW,"%":_W},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:mW,e:mW,f:xW,g:$W,G:DW,H:gW,I:vW,j:bW,L:yW,m:wW,M:CW,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:FW,s:LW,S:SW,u:kW,U:MW,V:PW,w:IW,W:AW,x:null,X:null,y:TW,Y:EW,Z:OW,"%":_W},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:NV,e:NV,f:UV,g:_V,G:OV,H:BV,I:BV,j:zV,L:WV,m:jV,M:HV,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:LV,Q:KV,s:YV,S:VV,u:TV,U:$V,V:EV,w:AV,W:DV,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:_V,Y:OV,Z:FV,"%":GV};function C(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(o=wV[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),s=l+1);return i.push(e.slice(s,l)),i.join("")}}function S(e,t){return function(n){var r,o,a=vV(1900,void 0,1);if(k(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=gV(vV(a.y,0,1))).getUTCDay(),r=o>4||0===o?eV.ceil(r):eV(r),r=HH.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=mV(vV(a.y,0,1))).getDay(),r=o>4||0===o?GH.ceil(r):GH(r),r=BH.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?gV(vV(a.y,0,1)).getUTCDay():mV(vV(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,gV(a)):mV(a)}}function k(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=w[o in wV?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),yV=bV.format,bV.parse,xV=bV.utcFormat,bV.utcParse;const jW=gH(hH),NW=jW.right,zW=(jW.left,gH((function(e){return null===e?NaN:+e})).center,NW);function BW(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}const HW=e=>()=>e;function VW(e,t){return function(n){return e+n*t}}function WW(e){return 1===(e=+e)?UW:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):HW(isNaN(t)?n:t)}}function UW(e,t){var n=t-e;return n?VW(e,n):HW(isNaN(e)?t:e)}const GW=function e(t){var n=WW(t);function r(e,t){var r=n((e=Gz(e)).r,(t=Gz(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=UW(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function KW(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=Gz(t[n]),a[n]=r.r||0,i[n]=r.g||0,l[n]=r.b||0;return a=e(a),i=e(i),l=e(l),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=l(e),r+""}}}KW((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=r<t-1?e[r+2]:2*a-o;return BW((n-r/t)*t,i,o,a,l)}})),KW((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],l=e[(r+2)%t];return BW((n-r/t)*t,o,a,i,l)}}));function YW(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=nU(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function ZW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function qW(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XW(e,t){var n,r={},o={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=nU(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var QW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,JW=new RegExp(QW.source,"g");function eU(e,t){var n,r,o,a=QW.lastIndex=JW.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(n=QW.exec(e))&&(r=JW.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),l[i]?l[i]+=o:l[++i]=o),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:qW(n,r)})),a=JW.lastIndex;return a<t.length&&(o=t.slice(a),l[i]?l[i]+=o:l[++i]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function tU(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function nU(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?HW(t):("number"===o?qW:"string"===o?(n=Vz(t))?(t=n,GW):eU:t instanceof Vz?GW:t instanceof Date?ZW:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?YW:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?XW:qW:tU))(e,t)}function rU(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function oU(e){return+e}var aU=[0,1];function iU(e){return e}function lU(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function sU(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=lU(o,r),a=n(i,a)):(r=lU(r,o),a=n(a,i)),function(e){return a(r(e))}}function uU(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=lU(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=zW(e,t,1,r)-1;return a[n](o[n](t))}}function cU(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dU(){var e,t,n,r,o,a,i=aU,l=aU,s=nU,u=iU;function c(){var e=Math.min(i.length,l.length);return u!==iU&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?uU:sU,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(u(t)))}return d.invert=function(n){return u(t((a||(a=r(l,i.map(e),qW)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,oU),c()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=rU,c()},d.clamp=function(e){return arguments.length?(u=!!e||iU,c()):u!==iU},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function pU(){return dU()(iU,iU)}function fU(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function hU(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}function mU(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function gU(e){return new Date(e)}function vU(e){return e instanceof Date?+e:+new Date(+e)}function bU(e,t,n,r,o,a,i,l,s,u){var c=pU(),d=c.invert,p=c.domain,f=u(".%L"),h=u(":%S"),m=u("%I:%M"),g=u("%I %p"),v=u("%a %d"),b=u("%b %d"),y=u("%B"),x=u("%Y");function w(e){return(s(e)<e?f:l(e)<e?h:i(e)<e?m:a(e)<e?g:r(e)<e?o(e)<e?v:b:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?p(Array.from(e,vU)):p().map(gU)},c.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?w:u(t)},c.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(mU(n,e)):c},c.copy=function(){return cU(c,bU(e,t,n,r,o,a,i,l,s,u))},c}function yU(){return fU.apply(bU(fV,hV,sV,iV,UH,BH,NH,LH,FH,yV).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}class xU extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kU;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(wU(this,e))}has(e){return super.has(wU(this,e))}set(e,t){return super.set(CU(this,e),t)}delete(e){return super.delete(SU(this,e))}}Set;function wU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)?n.get(o):t}function CU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}function SU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}function kU(e){return null!==e&&"object"===typeof e?e.valueOf():e}const MU=Symbol("implicit");function RU(){var e=new xU,t=[],n=[],r=MU;function o(o){let a=e.get(o);if(void 0===a){if(r!==MU)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new xU;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return RU(t,n).unknown(r)},fU.apply(o,arguments),o}function PU(){var e,t,n=RU().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,u=0,c=.5;function d(){var n=r().length,d=i<a,p=d?i:a,f=d?a:i;e=(f-p)/Math.max(1,n-s+2*u),l&&(e=Math.floor(e)),p+=(f-p-e*(n-s))*c,t=e*(1-s),l&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return PU(r(),[a,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},fU.apply(d(),arguments)}function IU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return IU(t())},e}function AU(){return IU(PU.apply(null,arguments).paddingInner(1))}function TU(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[zW(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return TU().domain(t).range(n).unknown(e)},fU.apply(o,arguments)}var $U,EU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DU(e){if(!(t=EU.exec(e)))throw new Error("invalid format: "+e);var t;return new OU({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function OU(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function _U(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function FU(e){return(e=_U(Math.abs(e)))?e[1]:NaN}function LU(e,t){var n=_U(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}DU.prototype=OU.prototype,OU.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const jU={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>LU(100*e,t),r:LU,s:function(e,t){var n=_U(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-($U=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+_U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function NU(e){return e}var zU,BU,HU,VU=Array.prototype.map,WU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function UU(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?NU:(t=VU.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?NU:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(VU.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=DU(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type;"n"===b?(m=!0,b="g"):jU[b]||(void 0===g&&(g=12),v=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var y="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?a:/[%p]/.test(b)?s:"",w=jU[b],C=/[defgprs%]/.test(b);function S(e){var o,a,s,p=y,S=x;if("c"===b)S=w(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==d&&(k=!1),p=(k?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===b?WU[8+$U/3]:"")+S+(k&&"("===d?")":""),C)for(o=-1,a=e.length;++o<a;)if(48>(s=e.charCodeAt(o))||s>57){S=(46===s?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var M=p.length+e.length+S.length,R=M<h?new Array(h-M+1).join(t):"";switch(m&&f&&(e=r(R+e,R.length?h-S.length:1/0),R=""),n){case"<":e=p+e+S+R;break;case"=":e=p+R+e+S;break;case"^":e=R.slice(0,M=R.length>>1)+p+e+S+R.slice(M);break;default:e=R+p+e+S}return l(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=DU(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(FU(t)/3))),o=Math.pow(10,-r),a=WU[8+r/3];return function(e){return n(o*e)+a}}}}function GU(e,t,n,r){var o,a=kH(e,t,n);switch((r=DU(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(FU(t)/3)))-FU(Math.abs(e)))}(a,i))||(r.precision=o),HU(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,FU(t)-FU(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-FU(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return BU(r)}function KU(e){var t=e.domain;return e.ticks=function(e){var n=t();return CH(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return GU(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],u=a[l],c=10;for(u<s&&(o=s,s=u,u=o,o=i,i=l,l=o);c-- >0;){if((o=SH(s,u,n))===r)return a[i]=s,a[l]=u,t(a);if(o>0)s=Math.floor(s/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function YU(){var e=pU();return e.copy=function(){return cU(e,YU())},fU.apply(e,arguments),KU(e)}function ZU(){var e,t,n,r,o,a=0,i=1,l=iU,s=!1;function u(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(o){return arguments.length?([a,i]=o,e=r(a=+a),t=r(i=+i),n=e===t?0:1/(t-e),u):[a,i]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(nU),u.rangeRound=c(rU),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(a),t=o(i),n=e===t?0:1/(t-e),u}}function qU(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function XU(){var e=KU(ZU()(iU));return e.copy=function(){return qU(e,XU())},hU.apply(e,arguments)}function QU(e){return"piecewise"===e.type?TU(e.thresholds,e.colors):XU([e.min??0,e.max??100],e.color)}function JU(e){return e.values?RU(e.values,e.colors).unknown(e.unknownColor??null):RU(e.colors.map(((e,t)=>t)),e.colors).unknown(e.unknownColor??null)}function eG(e){return"ordinal"===e.type?JU(e):QU(e)}function tG(e){return"number"===typeof e&&!Number.isFinite(e)}!function(e){zU=UU(e),BU=zU.format,HU=zU.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const nG={start:0,extremities:0,end:1,middle:.5};function rG(t){const{scale:n,tickNumber:r,valueFormatter:o,tickInterval:a,tickPlacement:i="extremities",tickLabelPlacement:l="middle"}=t;return e.useMemo((()=>{if(lH(n)){const e=n.domain();if(n.bandwidth()>0){return[...("function"===typeof a&&e.filter(a)||"object"===typeof a&&a||e).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??`${e}`,offset:n(e)-(n.step()-n.bandwidth())/2+nG[i]*n.step(),labelOffset:"tick"===l?0:n.step()*(nG[l]-nG[i])}))),..."extremities"===i?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]}return("function"===typeof a&&e.filter(a)||"object"===typeof a&&a||e).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??`${e}`,offset:n(e),labelOffset:0})))}if(n.domain().some(tG))return[];return("object"===typeof a?a:n.ticks(r)).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??n.tickFormat(r)(e),offset:n(e),labelOffset:0})))}),[n,a,r,o,i,l])}function oG(e){return Math.log(e)}function aG(e){return Math.exp(e)}function iG(e){return-Math.log(-e)}function lG(e){return-Math.exp(-e)}function sG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uG(e){return(t,n)=>-e(-t,n)}function cG(e){const t=e(oG,aG),n=t.domain;let r,o,a=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),o=function(e){return 10===e?sG:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(r=uG(r),o=uG(o),e(iG,lG)):e(oG,aG),t}return t.base=function(e){return arguments.length?(a=+e,i()):a},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],l=t[t.length-1];const s=l<i;s&&([i,l]=[l,i]);let u,c,d=r(i),p=r(l);const f=null==e?10:+e;let h=[];if(!(a%1)&&p-d<f){if(d=Math.floor(d),p=Math.ceil(p),i>0){for(;d<=p;++d)for(u=1;u<a;++u)if(c=d<0?u/o(-d):u*o(d),!(c<i)){if(c>l)break;h.push(c)}}else for(;d<=p;++d)for(u=a-1;u>=1;--u)if(c=d>0?u/o(-d):u*o(d),!(c<i)){if(c>l)break;h.push(c)}2*h.length<f&&(h=CH(i,l,f))}else h=CH(d,p,Math.min(p-d,f)).map(o);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!==typeof n&&(a%1||null!=(n=DU(n)).precision||(n.trim=!0),n=BU(n)),e===1/0)return n;const i=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*a<a-.5&&(t*=a),t<=i?n(e):""}},t.nice=()=>n(mU(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function dG(){const e=cG(dU()).domain([1,10]);return e.copy=()=>cU(e,dG()).base(e.base()),fU.apply(e,arguments),e}function pG(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hG(e){return e<0?-e*e:e*e}function mG(e){var t=e(iU,iU),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iU,iU):.5===n?e(fG,hG):e(pG(n),pG(1/n)):n},KU(t)}function gG(){var e=mG(dU());return e.copy=function(){return cU(e,gG()).exponent(e.exponent())},fU.apply(e,arguments),e}function vG(e,t,n){switch(e){case"log":return dG(t,n);case"pow":return gG(t,n);case"sqrt":return function(){return gG.apply(null,arguments).exponent(.5)}(t,n);case"time":return yU(t,n);case"utc":return function(){return fU.apply(bU(dV,pV,uV,lV,JH,HH,zH,jH,FH,xV).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(t,n);default:return YU(t,n)}}const bG=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]},yG=(e,t,n,r,o)=>{const a=Object.keys(t).reduce(((a,i)=>((e,t,n,r,o,a,i)=>{const l=r[t],s=a[t]?.series??{},[u,c]=l?.({series:s,axis:n,axisIndex:o,isDefaultAxis:0===o,getFilters:i})??[1/0,-1/0],[d,p]=e;return[Math.min(u,d),Math.max(c,p)]})(a,i,e,t,n,r,o)),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a};const xG=e=>e?.[0]instanceof Date;function wG(e,t){const n=yU(e.data,t);return(t,r)=>{let{location:o}=r;return"tick"===o?n.tickFormat(e.tickNumber)(t):`${t.toLocaleString()}`}}function CG(e){let{drawingArea:t,formattedSeries:n,axis:r,extremumGetters:o,axisDirection:a,zoomData:i,zoomOptions:l,getFilters:s}=e;const u={};return r.forEach(((e,r)=>{const c=e,d=l?.[c.id],p=i?.find((e=>{let{axisId:t}=e;return t===c.id})),f=p?[p.start,p.end]:[0,100],h=function(e,t,n){if("rotation"===t){const{startAngle:e=0,endAngle:t=e+360}=n;return n.reverse?[Math.PI*e/180,Math.PI*t/180]:[Math.PI*t/180,Math.PI*e/180]}if("radius"===t){const{minRadius:t=0,maxRadius:r=Math.min(e.width,e.height)/2}=n;return[t,r]}const r="x"===t?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}(t,a,c),[m,g]=yG(c,o,r,n,void 0!==p||d?void 0:s),v=c.data??[];if(BB(c)){const e=c.categoryGapRatio??.2,t=c.barGapRatio??.1,n="y"===a?[h[1],h[0]]:h,r=bG(n,f);if(u[c.id]=fe({categoryGapRatio:e,barGapRatio:t},c,{data:v,scale:PU(c.data,r).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?JU(fe({values:c.data},c.colorMap)):eG(c.colorMap))}),xG(c.data)){const e=wG(c,n);u[c.id].valueFormatter=c.valueFormatter??e}}if(HB(c)){const e="y"===a?[...h].reverse():h,t=bG(e,f);if(u[c.id]=fe({},c,{data:v,scale:AU(c.data,t),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?JU(fe({values:c.data},c.colorMap)):eG(c.colorMap))}),xG(c.data)){const t=wG(c,e);u[c.id].valueFormatter=c.valueFormatter??t}}if("band"===c.scaleType||"point"===c.scaleType)return;const b=c.scaleType??"linear",y=c.domainLimit??"nice",x=[c.min??m,c.max??g];if("function"===typeof y){const{min:e,max:t}=y(m,g);x[0]=e,x[1]=t}const w=function(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,i=void 0===n?999:Math.floor(Math.abs(a[1]-a[0])/n),l=void 0===t?2:Math.ceil(Math.abs(a[1]-a[0])/t),s=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(i,Math.max(l,s))}(fe({},c,{range:h,domain:x})),C=w/((f[1]-f[0])/100),S=vG(b,x,bG(h,f)),k="nice"===y?S.nice(w):S,[M,R]=k.domain(),P=[c.min??M,c.max??R];u[c.id]=fe({},c,{data:v,scaleType:b,scale:k.domain(P),tickNumber:C,colorScale:c.colorMap&&eG(c.colorMap)})})),{axis:u,axisIds:r.map((e=>{let{id:t}=e;return t}))}}function SG(t){const{xAxis:n,yAxis:r,children:o}=t,a=UB(),i=uH(),l=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.xExtremumGetters[t]:r.xExtremumGetters}(),s=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.yExtremumGetters[t]:r.yExtremumGetters}(),u=e.useMemo((()=>CG({drawingArea:i,formattedSeries:a,axis:n,extremumGetters:l,axisDirection:"x"})),[i,a,n,l]),c=e.useMemo((()=>CG({drawingArea:i,formattedSeries:a,axis:r,extremumGetters:s,axisDirection:"y"})),[i,a,r,s]),d=e.useMemo((()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:c.axis,xAxisIds:u.axisIds,yAxisIds:c.axisIds}})),[u,c]);return(0,Tr.jsx)(Sz.Provider,{value:d,children:o})}function kG(t){const{isReversed:n,gradientId:r,size:o,direction:a,scale:i,colorMap:l}=t;return(0,Tr.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${n?1:2}`]:`${o}px`,gradientUnits:"userSpaceOnUse",children:l.thresholds.map(((t,r)=>{const a=i(t);if(void 0===a)return null;const s=n?1-a/o:a/o;return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("stop",{offset:s,stopColor:l.colors[r],stopOpacity:1}),(0,Tr.jsx)("stop",{offset:s,stopColor:l.colors[r+1],stopOpacity:1})]},t.toString()+r)}))})}function MG(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:a,scale:i,colorScale:l,colorMap:s}=e,u=[s.min??0,s.max??100],c=u.map(i).filter((e=>void 0!==e));if(2!==c.length)return null;const d="number"===typeof u[0]?qW(u[0],u[1]):ZW(u[0],u[1]),p=Math.round((Math.max(...c)-Math.min(...c))/10),f=`${u[0]}-${u[1]}-`;return(0,Tr.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${n?1:2}`]:"objectBoundingBox"===t?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:p+1},((e,t)=>{const r=d(t/p);if(void 0===r)return null;const a=i(r);if(void 0===a)return null;const s=n?1-a/o:a/o,u=l(r);return null===u?null:(0,Tr.jsx)("stop",{offset:s,stopColor:u,stopOpacity:1},f+t)}))})}function RG(){const{chartId:t}=e.useContext(wB);return e.useCallback(((e,n)=>`${t}-gradient-${n}-${e}`),[t])}function PG(){const{top:e,height:t,bottom:n,left:r,width:o,right:a}=uH(),i=e+t+n,l=r+o+a,s=RG(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:p}=kz();return(0,Tr.jsxs)("defs",{children:[d.filter((e=>void 0!==p[e].colorMap)).map((e=>{const t=s(e,"y"),{colorMap:n,scale:r,colorScale:o,reverse:a}=p[e];return"piecewise"===n?.type?(0,Tr.jsx)(kG,{isReversed:!a,scale:r,colorMap:n,size:i,gradientId:t,direction:"y"},t):"continuous"===n?.type?(0,Tr.jsx)(MG,{isReversed:!a,scale:r,colorScale:o,colorMap:n,size:i,gradientId:t,direction:"y"},t):null})),u.filter((e=>void 0!==c[e].colorMap)).map((e=>{const t=s(e,"x"),{colorMap:n,scale:r,reverse:o,colorScale:a}=c[e];return"piecewise"===n?.type?(0,Tr.jsx)(kG,{isReversed:o,scale:r,colorMap:n,size:l,gradientId:t,direction:"x"},t):"continuous"===n?.type?(0,Tr.jsx)(MG,{isReversed:o,scale:r,colorScale:a,colorMap:n,size:l,gradientId:t,direction:"x"},t):null}))]})}const IG=e.createContext({zAxis:{},zAxisIds:[]});function AG(t){const{zAxis:n,dataset:r,children:o}=t,a=e.useMemo((()=>n?.map((e=>{const t=e.dataKey;if(void 0===t||void 0!==e.data)return e;if(void 0===r)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return fe({},e,{data:r.map((e=>e[t]))})}))),[n,r]),i=e.useMemo((()=>{const e=a?.map(((e,t)=>fe({id:`defaultized-z-axis-${t}`},e)))??[],t={};return e.forEach((e=>{t[e.id]=fe({},e,{colorScale:e.colorMap&&("ordinal"===e.colorMap.type&&e.data?JU(fe({values:e.data},e.colorMap)):eG("continuous"===e.colorMap.type?fe({min:e.min,max:e.max},e.colorMap):e.colorMap))})})),{zAxis:t,zAxisIds:e.map((e=>{let{id:t}=e;return t}))}}),[a]);return(0,Tr.jsx)(IG.Provider,{value:i,children:o})}const TG=(e,t)=>n=>!!e&&("series"===e.fade?n.seriesId===t?.seriesId&&n.dataIndex!==t?.dataIndex:"global"===e.fade&&(n.seriesId!==t?.seriesId||n.dataIndex!==t?.dataIndex)),$G=(e,t)=>n=>!!e&&("series"===e.highlight?n.seriesId===t?.seriesId:"item"===e.highlight&&(n.dataIndex===t?.dataIndex&&n.seriesId===t?.seriesId)),EG=["highlighted","faded"];function DG(t){let{children:n,highlightedItem:r,onHighlightChange:o}=t;const[a,i]=Iu({controlled:r,default:null,name:"HighlightedProvider",state:"highlightedItem"}),l=UB(),s=e.useMemo((()=>{const e=new Map;return Object.keys(l).forEach((t=>{const n=l[t];Object.keys(n?.series??{}).forEach((t=>{const r=n?.series[t];e.set(t,(e=>{const t=e??{},{highlighted:n,faded:r}=t;return fe({highlight:n,fade:r},Ai(t,EG))})(r?.highlightScope))}))})),e}),[l]),u=a&&a.seriesId?s.get(a.seriesId)??void 0:void 0,c=e.useMemo((()=>({isInitialized:!0,data:{highlightScope:u,highlightedItem:a,setHighlighted:e=>{i(e),o?.(e)},clearHighlighted:()=>{i(null),o?.(null)},isHighlighted:$G(u,a),isFaded:TG(u,a)}})),[a,u,i,o]);return(0,Tr.jsx)(sB.Provider,{value:c,children:n})}const OG=(e,t)=>"x"===t?{x:e,y:null}:{x:null,y:e},_G=e=>{const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n?.({currentAxisId:t.id,isDefaultAxis:r}),a=o?t.data?.filter(((e,t)=>o({x:null,y:null},t))):t.data;return[Math.min(...a??[]),Math.max(...a??[])]},FG=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:a}=t;return Object.keys(n).filter((e=>{const t=n[e].yAxisId??n[e].yAxisKey;return t===r.id||a&&void 0===t})).reduce(((t,i)=>{const{stackedData:l}=n[i],s=o?.({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:n[i].xAxisId??n[i].xAxisKey,seriesYAxisId:n[i].yAxisId??n[i].yAxisKey}),[u,c]=l?.reduce(((t,n,r)=>!s||s(OG(n[0],e),r)&&s(OG(n[1],e),r)?[Math.min(...n,t[0]),Math.max(...n,t[1])]:t),[1/0,-1/0])??[1/0,-1/0];return[Math.min(u,t[0]),Math.max(c,t[1])]}),[1/0,-1/0])};Array.prototype.slice;function LG(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function jG(e){return function(){return e}}function NG(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function zG(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function BG(e,t){return e[t]}function HG(e){const t=[];return t.key=e,t}function VG(){var e=jG([]),t=zG,n=NG,r=BG;function o(o){var a,i,l=Array.from(e.apply(this,arguments),HG),s=l.length,u=-1;for(const e of o)for(a=0,++u;a<s;++a)(l[a][u]=[0,+r(e,l[a].key,u,o)]).data=e;for(a=0,i=LG(t(l));a<s;++a)l[i[a]].index=a;return n(l,i),l}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:jG(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:jG(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?zG:"function"===typeof e?e:jG(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?NG:e,o):n},o}function WG(e){var t=e.map(UG);return zG(e).sort((function(e,n){return t[e]-t[n]}))}function UG(e){for(var t,n=-1,r=0,o=e.length,a=-1/0;++n<o;)(t=+e[n][1])>a&&(a=t,r=n);return r}function GG(e){var t=e.map(KG);return zG(e).sort((function(e,n){return t[e]-t[n]}))}function KG(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}const YG={appearance:WG,ascending:GG,descending:function(e){return GG(e).reverse()},insideOut:function(e){var t,n,r=e.length,o=e.map(KG),a=WG(e),i=0,l=0,s=[],u=[];for(t=0;t<r;++t)n=a[t],i<l?(i+=o[n],s.push(n)):(l+=o[n],u.push(n));return u.reverse().concat(s)},none:zG,reverse:function(e){return zG(e).reverse()}},ZG={expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}NG(e,t)}},diverging:function(e,t){if((l=e.length)>0)for(var n,r,o,a,i,l,s=0,u=e[t[0]].length;s<u;++s)for(a=i=0,n=0;n<l;++n)(o=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=a,r[1]=a+=o):o<0?(r[1]=i,r[0]=i+=o):(r[0]=0,r[1]=o)},none:NG,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r<a;++r){for(var i=0,l=0;i<n;++i)l+=e[i][r][1]||0;o[r][1]+=o[r][0]=-l/2}NG(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i<r;++i){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],d=c[i][1]||0,p=(d-(c[i-1][1]||0))/2,f=0;f<l;++f){var h=e[t[f]];p+=(h[i][1]||0)-(h[i-1][1]||0)}s+=d,u+=p*d}n[i-1][1]+=n[i-1][0]=a,s&&(a-=u/s)}n[i-1][1]+=n[i-1][0]=a,NG(e,t)}}},qG=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],a={};return n.forEach((e=>{const{stack:n,stackOrder:i,stackOffset:l}=t[e];void 0===n?o.push({ids:[e],stackingOrder:YG.none,stackingOffset:ZG.none}):void 0===a[n]?(a[n]=o.length,o.push({ids:[e],stackingOrder:YG[i??r?.stackOrder??"none"],stackingOffset:ZG[l??r?.stackOffset??"diverging"]})):(o[a[n]].ids.push(e),void 0!==i&&(o[a[n]].stackingOrder=YG[i]),void 0!==l&&(o[a[n]].stackingOffset=ZG[l]))})),o};function XG(e,t){const n={};return Object.keys(e).forEach((r=>{n[r]=fe({},e[r],{valueFormatter:e[r].valueFormatter??t})})),n}const QG=(e,t)=>{const{seriesOrder:n,series:r}=e,o=qG(e),a=t??[];n.forEach((e=>{const n=r[e].data;if(void 0!==n)n.forEach(((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t}));else if(void 0===t)throw new Error([`MUI X: bar series with id='${e}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))}));const i={};return o.forEach((e=>{const{ids:n,stackingOffset:o,stackingOrder:l}=e,s=VG().keys(n.map((e=>{const t=r[e].dataKey;return void 0===r[e].data&&void 0!==t?t:e}))).value(((e,t)=>e[t]??0)).order(l).offset(o)(a);n.forEach(((e,n)=>{const o=r[e].dataKey;i[e]=fe({layout:"vertical"},r[e],{data:o?t.map((e=>{const t=e[o];return"number"!==typeof t?0:t})):r[e].data,stackedData:s[n].map((e=>{let[t,n]=e;return[t,n]}))})}))})),{seriesOrder:n,stackingGroups:o,series:XG(i,(e=>null==e?"":e.toLocaleString()))}},JG={seriesType:"bar",seriesFormatter:QG,colorProcessor:gB,xExtremumGetter:e=>Object.keys(e.series).some((t=>"horizontal"===e.series[t].layout))?FG("x")(e):_G(e),yExtremumGetter:e=>Object.keys(e.series).some((t=>"horizontal"===e.series[t].layout))?_G(e):FG("y")(e)},eK=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],tK=(e,t,n,r)=>{const o=r?.colorScale,a=n?.colorScale,i=t?.colorScale;return o?t=>{if(void 0!==r?.data?.[t]){const e=o(r?.data?.[t]);if(null!==e)return e}const n=e.data[t],a=null===n?e.color:o(n.z);return null===a?e.color:a}:a?t=>{const n=e.data[t],r=null===n?e.color:a(n.y);return null===r?e.color:r}:i?t=>{const n=e.data[t],r=null===n?e.color:i(n.x);return null===r?e.color:r}:()=>e.color},nK={seriesType:"scatter",seriesFormatter:(e,t)=>{let{series:n,seriesOrder:r}=e;return{series:Object.fromEntries(Object.entries(n).map((e=>{let[n,r]=e;const o=r?.datasetKeys,a=["x","y","id"].filter((e=>"string"!==typeof o?.[e]));if(r?.datasetKeys&&a.length>0)throw new Error([`MUI X: scatter series with id='${n}' has incomplete datasetKeys.`,`Properties ${a.map((e=>`"${e}"`)).join(", ")} are missing.`].join("\n"));return[n,fe({},r,{data:o?t?.map((e=>({x:e[o.x],y:e[o.y],z:o.z&&e[o.z],id:e[o.id]})))??[]:r.data??[],valueFormatter:r.valueFormatter??(e=>`(${e.x}, ${e.y})`)})]}))),seriesOrder:r}},colorProcessor:tK,xExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].xAxisId??t[e].xAxisKey;return o===n.id||void 0===o&&r})).reduce(((e,a)=>{const i=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),l=t[a].data?.reduce(((e,t,n)=>i&&!i(t,n)?e:eK(e,[t.x,t.x])),[1/0,-1/0]);return eK(e,l??[1/0,-1/0])}),[1/0,-1/0])},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].yAxisId??t[e].yAxisKey;return o===n.id||void 0===o&&r})).reduce(((e,a)=>{const i=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),l=t[a].data?.reduce(((e,t,n)=>i&&!i(t,n)?e:eK(e,[t.y,t.y])),[1/0,-1/0]);return eK(e,l??[1/0,-1/0])}),[1/0,-1/0])}};const rK=(e,t)=>{const{seriesOrder:n,series:r}=e,o=qG(fe({},e,{defaultStrategy:{stackOffset:"none"}})),a=t??[];n.forEach((e=>{const t=r[e].data;void 0!==t&&t.forEach(((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t}))}));const i={};return o.forEach((e=>{const{ids:n,stackingOrder:o,stackingOffset:l}=e,s=VG().keys(n.map((e=>{const t=r[e].dataKey;return void 0===r[e].data&&void 0!==t?t:e}))).value(((e,t)=>e[t]??0)).order(o).offset(l)(a);n.forEach(((e,n)=>{const o=r[e].dataKey;i[e]=fe({},r[e],{data:o?t.map((e=>{const t=e[o];return"number"!==typeof t?null:t})):r[e].data,stackedData:s[n].map((e=>{let[t,n]=e;return[t,n]}))})}))})),{seriesOrder:n,stackingGroups:o,series:XG(i,(e=>null==e?"":e.toLocaleString()))}},oK=(e,t,n)=>{const r=n?.colorScale,o=t?.colorScale;return r?t=>{const n=e.data[t],o=null===n?e.color:r(n);return null===o?e.color:o}:o?n=>{const r=t.data?.[n],a=null===r?e.color:o(r);return null===a?e.color:a}:()=>e.color},aK={seriesType:"line",colorProcessor:oK,seriesFormatter:rK,xExtremumGetter:e=>{const{axis:t}=e;return[Math.min(...t.data??[]),Math.max(...t.data??[])]},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].yAxisId??t[e].yAxisKey;return o===n.id||r&&void 0===o})).reduce(((e,a)=>{const{area:i,stackedData:l}=t[a],s=void 0!==i,u=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),c=function(e,t,n){return t.reduce(((t,r,o)=>{const[a,i]=e(r);return!n||n({y:a,x:null},o)&&n({y:i,x:null},o)?[Math.min(a,i,t[0]),Math.max(a,i,t[1])]:t}),[1/0,-1/0])}(s&&"log"!==n.scaleType&&"string"!==typeof t[a].baseline?e=>e:e=>[e[1],e[1]],l,u),[d,p]=c;return[Math.min(d,e[0]),Math.max(p,e[1])]}),[1/0,-1/0])}};function iK(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function lK(e){return e}const sK=Math.abs,uK=Math.atan2,cK=Math.cos,dK=Math.max,pK=Math.min,fK=Math.sin,hK=Math.sqrt,mK=1e-12,gK=Math.PI,vK=gK/2,bK=2*gK;function yK(e){return e>=1?vK:e<=-1?-vK:Math.asin(e)}function xK(e,t){return"function"===typeof e?e(t):e}const wK=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach((e=>{const t=function(){var e=lK,t=iK,n=null,r=jG(0),o=jG(bK),a=jG(0);function i(i){var l,s,u,c,d,p=(i=LG(i)).length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),v=Math.min(bK,Math.max(-bK,o.apply(this,arguments)-g)),b=Math.min(Math.abs(v)/p,a.apply(this,arguments)),y=b*(v<0?-1:1);for(l=0;l<p;++l)(d=m[h[l]=l]=+e(i[l],l,i))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(i[e],i[t])})),l=0,u=f?(v-p*y)/f:0;l<p;++l,g=c)s=h[l],c=g+((d=m[s])>0?d*u:0)+y,m[s]={data:i[s],index:l,value:d,startAngle:g,endAngle:c,padAngle:b};return m}return i.value=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:jG(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:jG(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:jG(+e),i):a},i}().startAngle(2*Math.PI*(n[e].startAngle??0)/360).endAngle(2*Math.PI*(n[e].endAngle??360)/360).padAngle(2*Math.PI*(n[e].paddingAngle??0)/360).sortValues(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";if("function"===typeof e)return e;switch(e){case"none":default:return null;case"desc":return(e,t)=>t-e;case"asc":return(e,t)=>e-t}}(n[e].sortingValues??"none"))(n[e].data.map((e=>e.value)));r[e]=fe({valueFormatter:e=>e.value.toLocaleString()},n[e],{data:n[e].data.map(((n,r)=>fe({},n,{id:n.id??`auto-generated-pie-id-${e}-${r}`},t[r]))).map(((t,r)=>fe({},t,{formattedValue:n[e].valueFormatter?.(fe({},t,{label:xK(t.label,"arc")}),{dataIndex:r})??t.value.toLocaleString()})))})})),{seriesOrder:t,series:r}},CK=[JG,nK,aK,{seriesType:"pie",colorProcessor:e=>t=>e.data[t].color,seriesFormatter:wK}];function SK(e){const t=e??CK,n={},r={},o={},a={},i={},l={};for(let s=0;s<t.length;s+=1){const e=t[s],u=e.seriesType;n[u]=e.seriesFormatter,r[u]=e.colorProcessor,e.xExtremumGetter&&(o[u]=e.xExtremumGetter),e.yExtremumGetter&&(a[u]=e.yExtremumGetter),e.rotationExtremumGetter&&(i[u]=e.rotationExtremumGetter),e.radiusExtremumGetter&&(l[u]=e.radiusExtremumGetter)}return{seriesFormatters:n,colorProcessors:r,xExtremumGetters:o,yExtremumGetters:a,rotationExtremumGetters:i,radiusExtremumGetters:l}}function kK(t){const{children:n,plugins:r}=t,o=e.useMemo((()=>({isInitialized:!0,data:SK(r)})),[r]);return(0,Tr.jsx)(aH.Provider,{value:o,children:n})}const MK=(e,t,n)=>{const r="x"===n?vB:bB;return[...e?.map(((e,t)=>fe({id:`defaultized-${n}-axis-${t}`},e)))??[],...void 0===e||-1===e.findIndex((e=>{let{id:t}=e;return t===r}))?[{id:r,scaleType:"linear"}]:[]].map((e=>{const r=e.dataKey;if(void 0===r||void 0!==e.data)return e;if(void 0===t)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return fe({},e,{data:t.map((e=>e[r]))})}))},RK=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],PK=(t,n)=>{const{width:r,height:o,series:a,margin:i,xAxis:l,yAxis:s,zAxis:u,colors:c,dataset:d,sx:p,title:f,desc:h,disableAxisListener:m,highlightedItem:g,onHighlightChange:v,plugins:b,children:y,skipAnimation:x}=t,w=Ai(t,RK),C=e.useRef(null),S=Ns(n,C),[k,M]=((t,n,r)=>[e.useMemo((()=>MK(t,r,"x")),[t,r]),e.useMemo((()=>MK(n,r,"y")),[n,r])])(l,s,d),R={skipAnimation:x},P={plugins:b};return{children:y,drawingProviderProps:{width:r,height:o,margin:i,svgRef:C},seriesProviderProps:{series:a,colors:c,dataset:d},cartesianProviderProps:{xAxis:k,yAxis:M,dataset:d},zAxisContextProps:{zAxis:u,dataset:d},highlightedProviderProps:{highlightedItem:g,onHighlightChange:v},chartsSurfaceProps:fe({},w,{width:r,height:o,ref:S,sx:p,title:f,desc:h,disableAxisListener:m}),pluginProviderProps:P,animationProviderProps:R,xAxis:k,yAxis:M}};function IK(t){const{children:n,skipAnimation:r}=t,o="undefined"===typeof window||!window?.matchMedia,[a,i]=e.useState(o||void 0);Rj((()=>{if(o)return;const e=e=>{const t=e.matches||void 0;i(t),rL.assign({skipAnimation:t})},t=window.matchMedia("(prefers-reduced-motion)");return e(t),t?.addEventListener?.("change",e),()=>{t?.removeEventListener?.("change",e)}}),[]);const l=e.useMemo((()=>({isInitialized:!0,data:{skipAnimation:r||a}})),[a,r]);return(0,Tr.jsx)(KB.Provider,{value:l,children:n})}const AK=e.forwardRef((function(e,t){const{children:n,drawingProviderProps:r,seriesProviderProps:o,cartesianProviderProps:a,zAxisContextProps:i,highlightedProviderProps:l,chartsSurfaceProps:s,pluginProviderProps:u,animationProviderProps:c}=PK(e,t);return(0,Tr.jsx)(SB,fe({},r,{children:(0,Tr.jsx)(kK,fe({},u,{children:(0,Tr.jsx)(iH,fe({},o,{children:(0,Tr.jsx)(SG,fe({},a,{children:(0,Tr.jsx)(AG,fe({},i,{children:(0,Tr.jsx)(lB,{children:(0,Tr.jsx)(DG,fe({},l,{children:(0,Tr.jsxs)(fH,fe({},s,{children:[(0,Tr.jsx)(PG,{}),(0,Tr.jsx)(IK,fe({},c,{children:n}))]}))}))})}))}))}))}))}))})),TK=Ir("div",{name:"MuiResponsiveChart",slot:"Container"})((e=>{let{ownerState:t}=e;return{width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}})),$K=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],EK=(t,n)=>{const{width:r,height:o,resolveSizeBeforeRender:a,margin:i,children:l,series:s,colors:u,dataset:c,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:h,plugins:m,sx:g,title:v,viewBox:b,xAxis:y,yAxis:x,zAxis:w,skipAnimation:C}=t,S=Ai(t,$K),{containerRef:k,width:M,height:R}=((t,n,r)=>{const o=e.useRef({displayError:!1,initialCompute:!0,computeRun:0}),a=e.useRef(null),[i,l]=e.useState(0),[s,u]=e.useState(0),c=e.useCallback((()=>{const e=a?.current;if(!e)return{};const t=ZI(e).getComputedStyle(e),n=Math.floor(parseFloat(t.height))||0,r=Math.floor(parseFloat(t.width))||0;return l(r),u(n),{width:r,height:n}}),[]);return e.useEffect((()=>{o.current.displayError=!0}),[]),fu((()=>{if(!r||!o.current.initialCompute||o.current.computeRun>20)return;const e=c();e.width!==i||e.height!==s?o.current.computeRun+=1:o.current.initialCompute&&(o.current.initialCompute=!1)}),[i,s,c,r]),fu((()=>{if(void 0!==t&&void 0!==n)return()=>{};c();const e=a.current;if("undefined"===typeof ResizeObserver)return()=>{};let r;const o=new ResizeObserver((()=>{r=requestAnimationFrame((()=>{c()}))}));return e&&o.observe(e),()=>{r&&cancelAnimationFrame(r),e&&o.unobserve(e)}}),[c,n,t]),{containerRef:a,width:t??i,height:n??s}})(r,o,a);return{hasIntrinsicSize:M&&R,chartContainerProps:{margin:i,children:l,series:s,colors:u,dataset:c,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:h,plugins:m,sx:g,title:v,viewBox:b,xAxis:y,yAxis:x,zAxis:w,skipAnimation:C,width:M,height:R,ref:n},resizableChartContainerProps:fe({},S,{ownerState:{width:r,height:o},ref:k})}},DK=e.forwardRef((function(e,t){const{hasIntrinsicSize:n,chartContainerProps:r,resizableChartContainerProps:o}=EK(e,t);return(0,Tr.jsx)(TK,fe({},o,{children:n?(0,Tr.jsx)(AK,fe({},r)):null}))}));function OK(e){return ec("MuiChartsAxis",e)}const _K=tc("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),FK=Ir("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{[`& .${_K.tickLabel}`]:fe({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${_K.label}`]:fe({},t.typography.body1,{fill:(t.vars||t).palette.text.primary}),[`& .${_K.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${_K.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}}}));const LK={widthCache:{},cacheCount:0},jK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},NK=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],zK="mui_measurement_span";function BK(e,t){return NK.indexOf(e)>=0&&t===+t?`${t}px`:t}function HK(e){return e.split("").reduce(((e,t)=>t===t.toUpperCase()?[...e,"-",t.toLowerCase()]:[...e,t]),[]).join("")}let VK;const WK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||"undefined"===typeof window)return{width:0,height:0};const n=`${e}`,r=(e=>Object.keys(e).sort().reduce(((t,n)=>`${t}${HK(n)}:${BK(n,e[n])};`),""))(t),o=`${n}-${r}`;if(LK.widthCache[o])return LK.widthCache[o];try{let e=document.getElementById(zK);null===e&&(e=document.createElement("span"),e.setAttribute("id",zK),e.setAttribute("aria-hidden","true"),document.body.appendChild(e));const r=fe({},jK,t);Object.keys(r).map((t=>(e.style[HK(t)]=BK(t,r[t]),t))),e.textContent=n;const a=e.getBoundingClientRect(),i={width:a.width,height:a.height};return LK.widthCache[o]=i,LK.cacheCount+1>2e3?(LK.cacheCount=0,LK.widthCache={}):LK.cacheCount+=1,VK&&clearTimeout(VK),VK=setTimeout((()=>{e.textContent=""}),0),i}catch{return{width:0,height:0}}};function UK(e){let{style:t,needsComputation:n,text:r}=e;return r.split("\n").map((e=>fe({text:e},n?WK(e,t):{width:0,height:0})))}const GK=["x","y","style","text","ownerState"],KK=["angle","textAnchor","dominantBaseline"];function YK(t){const{x:n,y:r,style:o,text:a}=t,i=Ai(t,GK),l=o??{},{angle:s,textAnchor:u,dominantBaseline:c}=l,d=Ai(l,KK),p=e.useMemo((()=>UK({style:d,needsComputation:a.includes("\n"),text:a})),[d,a]);let f;switch(c){case"hanging":f=0;break;case"central":f=(p.length-1)/2*-p[0].height;break;default:f=(p.length-1)*-p[0].height}const h=[];return s&&h.push(`rotate(${s}, ${n}, ${r})`),(0,Tr.jsx)("text",fe({},i,{transform:h.length>0?h.join(" "):void 0,x:n,y:r,textAnchor:u,dominantBaseline:c,style:d,children:p.map(((e,t)=>(0,Tr.jsx)("tspan",{x:n,dy:`${0===t?f:p[0].height}px`,dominantBaseline:c,children:e.text},t)))}))}const ZK=["scale","tickNumber","reverse"];function qK(e,t){let{tickLabelStyle:n,tickLabelInterval:r,reverse:o,isMounted:a}=t;const i=e.map((e=>{if(!a||void 0===e.formattedValue)return fe({},e,{width:0,height:0});const t=UK({style:n,needsComputation:!0,text:e.formattedValue});return fe({},e,{width:Math.max(...t.map((e=>e.width))),height:Math.max(t.length*t[0].height)})}));if("function"===typeof r)return i.map(((e,t)=>fe({},e,{skipLabel:!r(e.value,t)})));let l=0,s=0;const u=o?-1:1;return i.map(((e,t)=>{const{width:r,offset:o,labelOffset:a,height:i}=e,c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<5)return e;if(r>85)return t;const o=r*Math.PI/180;return o<Math.atan2(t,e)?e/Math.cos(o):t/Math.sin(o)}(r,i,n?.angle),d=o+a;return l=d-u*(1.2*c)/2,t>0&&u*l<u*s?fe({},e,{skipLabel:!0}):(s=d+u*(1.2*c)/2,e)}))}const XK=Ir(FK,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QK={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function JK(t){const{xAxisIds:n,xAxis:r}=kz(),o=r[t.axisId??n[0]],{scale:a,tickNumber:i,reverse:l}=o,s=Ai(o,ZK),u=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[n,r]=e.useState(!1);return fu((()=>{t||r(!0)}),[t]),e.useEffect((()=>{t&&r(!0)}),[t]),n}(),c=gu({props:fe({},s,t),name:"MuiChartsXAxis"}),d=fe({},QK,c),{position:p,disableLine:f,disableTicks:h,tickLabelStyle:m,label:g,labelStyle:v,tickFontSize:b,labelFontSize:y,tickSize:x,valueFormatter:w,slots:C,slotProps:S,tickInterval:k,tickLabelInterval:M,tickPlacement:R,tickLabelPlacement:P,sx:I}=d,A=(e=>{const{classes:t,position:n}=e;return qu({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},OK,t)})(fe({},d,{theme:Lr()})),{left:T,top:$,width:E,height:D,isPointInside:O}=uH(),_=h?4:x,F="bottom"===p?1:-1,L=C?.axisLine??"line",j=C?.axisTick??"line",N=C?.axisTickLabel??YK,z=C?.axisLabel??YK,B=Us({elementType:N,externalSlotProps:S?.axisTickLabel,additionalProps:{style:fe({textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto",fontSize:b??12},m)},className:A.tickLabel,ownerState:{}}),H=qK(rG({scale:a,tickNumber:i,valueFormatter:w,tickInterval:k,tickPlacement:R,tickLabelPlacement:P}),{tickLabelStyle:B.style,tickLabelInterval:M,reverse:l,isMounted:u}),V={x:T+E/2,y:F*(_+22)},W=Us({elementType:z,externalSlotProps:S?.axisLabel,additionalProps:{style:fe({fontSize:y??14,textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto"},v)},ownerState:{}}),U=a.domain(),G=lH(a);return G&&0===U.length||!G&&U.some(tG)?null:(0,Tr.jsxs)(XK,{transform:`translate(0, ${"bottom"===p?$+D:$})`,className:A.root,sx:I,children:[!f&&(0,Tr.jsx)(L,fe({x1:T,x2:T+E,className:A.line},S?.axisLine)),H.map(((e,t)=>{let{formattedValue:n,offset:r,labelOffset:o,skipLabel:a}=e;const i=o??0,l=F*(_+3),s=O({x:r,y:-1},{direction:"x"}),u=O({x:r+i,y:-1},{direction:"x"});return(0,Tr.jsxs)("g",{transform:`translate(${r}, 0)`,className:A.tickContainer,children:[!h&&s&&(0,Tr.jsx)(j,fe({y2:F*_,className:A.tick},S?.axisTick)),void 0!==n&&!a&&u&&(0,Tr.jsx)(N,fe({x:i,y:l},B,{text:n.toString()}))]},t)})),g&&(0,Tr.jsx)("g",{className:A.label,children:(0,Tr.jsx)(z,fe({},V,W,{text:g}))})]})}const eY=["scale","tickNumber"],tY=Ir(FK,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nY={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function rY(e){const{yAxisIds:t,yAxis:n}=kz(),r=n[e.axisId??t[0]],{scale:o,tickNumber:a}=r,i=gu({props:fe({},Ai(r,eY),e),name:"MuiChartsYAxis"}),l=fe({},nY,i),{position:s,disableLine:u,disableTicks:c,tickFontSize:d,label:p,labelFontSize:f,labelStyle:h,tickLabelStyle:m,tickSize:g,valueFormatter:v,slots:b,slotProps:y,tickPlacement:x,tickLabelPlacement:w,tickInterval:C,tickLabelInterval:S,sx:k}=l,M=Lr(),R=ni(),P=(e=>{const{classes:t,position:n}=e;return qu({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},OK,t)})(fe({},l,{theme:M})),{left:I,top:A,width:T,height:$,isPointInside:E}=uH(),D=c?4:g,O=rG({scale:o,tickNumber:a,valueFormatter:v,tickPlacement:x,tickLabelPlacement:w,tickInterval:C}),_="right"===s?1:-1,F={x:_*(d+D+10),y:A+$/2},L=b?.axisLine??"line",j=b?.axisTick??"line",N=b?.axisTickLabel??YK,z=b?.axisLabel??YK,B=!R&&"right"===s||R&&"right"!==s,H=Us({elementType:N,externalSlotProps:y?.axisTickLabel,additionalProps:{style:fe({fontSize:d,textAnchor:B?"start":"end",dominantBaseline:"central"},m)},className:P.tickLabel,ownerState:{}}),V=Us({elementType:z,externalSlotProps:y?.axisLabel,additionalProps:{style:fe({fontSize:f,angle:90*_,textAnchor:"middle",dominantBaseline:"auto"},h)},ownerState:{}}),W=Us({elementType:L,externalSlotProps:y?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),U=o.domain(),G=lH(o);return G&&0===U.length||!G&&U.some(tG)?null:(0,Tr.jsxs)(tY,{transform:`translate(${"right"===s?I+T:I}, 0)`,className:P.root,sx:k,children:[!u&&(0,Tr.jsx)(L,fe({y1:A,y2:A+$,className:P.line},W)),O.map(((e,t)=>{let{formattedValue:n,offset:r,labelOffset:o,value:a}=e;const i=_*(D+2),l=o,s="function"===typeof S&&!S?.(a,t);return E({x:-1,y:r},{direction:"y"})?(0,Tr.jsxs)("g",{transform:`translate(0, ${r})`,className:P.tickContainer,children:[!c&&(0,Tr.jsx)(j,fe({x2:_*D,className:P.tick},y?.axisTick)),void 0!==n&&!s&&(0,Tr.jsx)(N,fe({x:i,y:l,text:n.toString()},H))]},t):null})),p&&(0,Tr.jsx)("g",{className:P.label,children:(0,Tr.jsx)(z,fe({},F,V,{text:p}))})]})}const oY=(e,t)=>null==e?null:"object"===typeof e?e.axisId??t??null:e,aY=(e,t,n)=>"object"===typeof e?fe({},e,{slots:fe({},t,e?.slots),slotProps:fe({},n,e?.slotProps)}):{slots:t,slotProps:n};function iY(t){const{topAxis:n,leftAxis:r,rightAxis:o,bottomAxis:a,slots:i,slotProps:l}=t,{xAxis:s,xAxisIds:u,yAxis:c,yAxisIds:d}=kz(),p=oY(void 0===r?d[0]:r,d[0]),f=oY(void 0===a?u[0]:a,u[0]),h=oY(n,u[0]),m=oY(o,d[0]);if(null!==h&&!s[h])throw new Error([`MUI X: id used for top axis "${h}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join("\n"));if(null!==p&&!c[p])throw new Error([`MUI X: id used for left axis "${p}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==m&&!c[m])throw new Error([`MUI X: id used for right axis "${m}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==f&&!s[f])throw new Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join("\n"));const g=aY(n,i,l),v=aY(a,i,l),b=aY(r,i,l),y=aY(o,i,l);return(0,Tr.jsxs)(e.Fragment,{children:[h&&(0,Tr.jsx)(JK,fe({},g,{position:"top",axisId:h})),f&&(0,Tr.jsx)(JK,fe({},v,{position:"bottom",axisId:f})),p&&(0,Tr.jsx)(rY,fe({},b,{position:"left",axisId:p})),m&&(0,Tr.jsx)(rY,fe({},y,{position:"right",axisId:m}))]})}const lY=function(t){const{children:n,defer:r=!1,fallback:o=null}=t,[a,i]=e.useState(!1);return zo((()=>{r||i(!0)}),[r]),e.useEffect((()=>{r&&i(!0)}),[r]),(0,Tr.jsx)(e.Fragment,{children:a?n:o})};function sY(e){if(null===e)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>fe({},r,{toJSON:()=>JSON.stringify(r)})}}function uY(e){return ec("MuiChartsTooltip",e)}const cY=tc("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),dY=Ir("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{boxShadow:t.shadows[1],backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),borderRadius:t.shape.borderRadius}})),pY=Ir("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})((e=>{let{theme:t}=e;return{borderSpacing:0,"& thead td":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`}}})),fY=Ir("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})((e=>{let{theme:t}=e;return{"tr:first-of-type& td":{paddingTop:t.spacing(1)},"tr:last-of-type& td":{paddingBottom:t.spacing(1)}}})),hY=Ir("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})((e=>{let{theme:t}=e;return{verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,[`&.${cY.labelCell}`]:{paddingLeft:t.spacing(1)},[`&.${cY.valueCell}`]:{paddingLeft:t.spacing(4),color:(t.vars||t).palette.text.primary},"td:first-of-type&":{paddingLeft:t.spacing(2)},"td:last-of-type&":{paddingRight:t.spacing(2)}}})),mY=Ir("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>nn(e)&&"color"!==e})((e=>{let{theme:t,color:n}=e;return{width:t.spacing(1),height:t.spacing(1),borderRadius:"50%",boxShadow:t.shadows[1],backgroundColor:n,borderColor:(t.vars||t).palette.background.paper,border:`solid ${(t.vars||t).palette.background.paper} ${t.spacing(.25)}`,boxSizing:"content-box"}}));function gY(e){const{series:t,itemData:n,sx:r,classes:a,getColor:i}=e;if(void 0===n.dataIndex||!t.data[n.dataIndex])return null;const{displayedLabel:l,color:s}="pie"===t.type?{color:i(n.dataIndex),displayedLabel:xK(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xK(t.label,"tooltip")},u="pie"===t.type?fe({},t.data[n.dataIndex],{label:xK(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],c=t.valueFormatter?.(u,{dataIndex:n.dataIndex});return(0,Tr.jsx)(dY,{sx:r,className:a.paper,children:(0,Tr.jsx)(pY,{className:a.table,children:(0,Tr.jsx)("tbody",{children:(0,Tr.jsxs)(fY,{className:a.row,children:[(0,Tr.jsx)(hY,{className:o(a.markCell,a.cell),children:(0,Tr.jsx)(mY,{color:s,className:a.mark})}),(0,Tr.jsx)(hY,{className:o(a.labelCell,a.cell),children:l}),(0,Tr.jsx)(hY,{className:o(a.valueCell,a.cell),children:c})]})})})})}function vY(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.colorProcessors[t]:r.colorProcessors}function bY(t){const{content:n,itemData:r,sx:o,classes:a,contentProps:i}=t,l=UB()[r.type].series[r.seriesId],{xAxis:s,yAxis:u,xAxisIds:c,yAxisIds:d}=kz(),{zAxis:p,zAxisIds:f}=e.useContext(IG),h=vY(),m=l.xAxisId??l.xAxisKey??c[0],g=l.yAxisId??l.yAxisKey??d[0],v=l.zAxisId??l.zAxisKey??f[0],b=h[l.type]?.(l,m&&s[m],g&&u[g],v&&p[v])??(()=>""),y=n??gY,x=Us({elementType:y,externalSlotProps:i,additionalProps:{itemData:r,series:l,sx:o,classes:a,getColor:b},ownerState:{}});return(0,Tr.jsx)(y,fe({},x))}let yY;const xY=new class{constructor(){if(this.types=new Set,yY)throw new Error("You can only create one instance!");yY=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};function wY(e){return xY.getTypes().has(e)}function CY(e){return wY(e.type)}function SY(e){const{series:t,axis:n,dataIndex:r,axisValue:a,sx:i,classes:l}=e;if(null==r)return null;const s=n.valueFormatter??(e=>"utc"===n.scaleType?function(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}(e):e.toLocaleString());return(0,Tr.jsx)(dY,{sx:i,className:l.paper,children:(0,Tr.jsxs)(pY,{className:l.table,children:[null!=a&&!n.hideTooltip&&(0,Tr.jsx)("thead",{children:(0,Tr.jsx)(fY,{children:(0,Tr.jsx)(hY,{colSpan:3,children:(0,Tr.jsx)(wo,{children:s(a,{location:"tooltip"})})})})}),(0,Tr.jsx)("tbody",{children:t.filter(CY).map((e=>{let{id:t,label:n,valueFormatter:a,data:i,getColor:s}=e;const u=a(i[r]??null,{dataIndex:r});if(null==u)return null;const c=xK(n,"tooltip"),d=s(r);return(0,Tr.jsxs)(fY,{className:l.row,children:[(0,Tr.jsx)(hY,{className:o(l.markCell,l.cell),children:d&&(0,Tr.jsx)(mY,{color:d,className:l.mark})}),(0,Tr.jsx)(hY,{className:o(l.labelCell,l.cell),children:c?(0,Tr.jsx)(wo,{children:c}):null}),(0,Tr.jsx)(hY,{className:o(l.valueCell,l.cell),children:(0,Tr.jsx)(wo,{children:u})})]},t)}))})]})})}function kY(t){const{content:n,contentProps:r,axisData:o,sx:a,classes:i}=t,l=o.x&&-1!==o.x.index,s=l?o.x&&o.x.index:o.y&&o.y.index,u=l?o.x&&o.x.value:o.y&&o.y.value,{xAxisIds:c,xAxis:d,yAxisIds:p,yAxis:f}=kz(),{zAxisIds:h,zAxis:m}=e.useContext(IG),g=UB(),v=vY(),b=l?c[0]:p[0],y=e.useMemo((()=>{const e=[];return Object.keys(g).filter(wY).forEach((t=>{g[t].seriesOrder.forEach((n=>{const r=g[t].series[n],o=r.xAxisId??r.xAxisKey,a=r.yAxisId??r.yAxisKey,i=l?o:a;if(void 0===i||i===b){const r=g[t].series[n],i=o??c[0],l=a??p[0],s=r.zAxisId??r.zAxisKey??h[0],u=v[t]?.(r,d[i],f[l],s&&m[s])??(()=>"");e.push(fe({},r,{getColor:u}))}}))})),e}),[b,v,l,g,d,c,f,p,m,h]),x=e.useMemo((()=>l?d[b]:f[b]),[b,l,d,f]),w=n??SY,C=Us({elementType:w,externalSlotProps:r,additionalProps:{axisData:o,series:y,axis:x,dataIndex:s,axisValue:u,sx:a,classes:i},ownerState:{}});return(0,Tr.jsx)(w,fe({},C))}xY.addType("bar"),xY.addType("line"),xY.addType("scatter");const MY=Ir(iv,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{pointerEvents:"none",zIndex:t.zIndex.modal}}));function RY(t){const n=gu({props:t,name:"MuiChartsTooltip"}),{trigger:r="axis",itemContent:o,axisContent:a,slots:i,slotProps:l}=n,s=function(){const t=sH(),[n,r]=e.useState(null);return e.useEffect((()=>{const e=t.current;if(null===e)return()=>{};const n=e=>{"mouse"!==e.pointerType&&r(null)},o=e=>{r({x:e.clientX,y:e.clientY,height:e.height,pointerType:e.pointerType})};return e.addEventListener("pointerdown",o),e.addEventListener("pointermove",o),e.addEventListener("pointerup",n),()=>{e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",n)}}),[t]),n}(),{item:u,axis:c}=e.useContext(aB),d="item"===r?u:c,p=function(e,t){if("item"===e)return null!==t;const n=null!==t.x,r=null!==t.y;return n||r}(r,d),f=null!==s&&p,h=(e=>{const{classes:t}=e;return qu({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},uY,t)})({classes:n.classes}),m=i?.popper??MY,g=Us({elementType:m,externalSlotProps:l?.popper,additionalProps:{open:f,placement:"mouse"===s?.pointerType?"right-start":"top",anchorEl:sY(s),modifiers:[{name:"offset",options:{offset:[0,"touch"===s?.pointerType?40-s.height:0]}}]},ownerState:{}});return"none"===r?null:(0,Tr.jsx)(lY,{children:f&&(0,Tr.jsx)(m,fe({},g,{className:h.root,children:"item"===r?(0,Tr.jsx)(bY,{itemData:d,content:i?.itemContent??o,contentProps:l?.itemContent,sx:{mx:2},classes:h}):(0,Tr.jsx)(kY,{axisData:d,content:i?.axisContent??a,contentProps:l?.axisContent,sx:{mx:2},classes:h})}))})}const PY={bar:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},scatter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},line:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},pie:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>(n[t].data.forEach((n=>{const r=xK(n.label,"legend");void 0!==r&&e.push({id:n.id,seriesId:t,color:n.color,label:r,itemId:n.id})})),e)),[])}};function IY(e){return ec("MuiChartsLegend",e)}tc("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const AY=["label"];function TY(e){const t=ni(),{id:n,positionY:r,label:a,positionX:i,innerHeight:l,innerWidth:s,legendWidth:u,color:c,gapX:d,gapY:p,itemMarkHeight:f,itemMarkWidth:h,markGap:m,labelStyle:g,classes:v,onClick:b}=e;return(0,Tr.jsxs)("g",{className:o(v?.series,`${v?.series}-${n}`),transform:`translate(${d+(t?u-i:i)} ${p+r})`,children:[(0,Tr.jsx)("rect",{x:t?-(s+2):-2,y:-f/2-2,width:s+4,height:l+4,fill:"transparent",className:v?.itemBackground,onClick:b,style:{pointerEvents:b?"all":"none",cursor:b?"pointer":"unset"}}),(0,Tr.jsx)("rect",{className:v?.mark,x:t?-h:0,y:-f/2,width:h,height:f,fill:c,style:{pointerEvents:"none"}}),(0,Tr.jsx)(YK,{style:fe({pointerEvents:"none"},g),text:a,x:(t?-1:1)*(h+m),y:0})]})}const $Y=["rotate","dominantBaseline"],EY=Ir("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({});function DY(t){const{position:n,direction:r,itemsToDisplay:o,classes:a,itemMarkWidth:i=20,itemMarkHeight:l=20,markGap:s=5,itemGap:u=10,padding:c=10,labelStyle:d,onItemClick:p}=t,f=Lr(),h=uH(),m=e.useMemo((()=>fe({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d)),[d,f]),g=e.useMemo((()=>(e=>"number"===typeof e?{left:e,right:e,top:e,bottom:e}:fe({left:0,right:0,top:0,bottom:0},e))(c)),[c]),v=e.useCallback((function(e){const t=UK({style:Ai(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$Y),needsComputation:!0,text:e}),n={innerWidth:i+s+Math.max(...t.map((e=>e.width))),innerHeight:Math.max(l,t.length*t[0].height)};return fe({},n,{outerWidth:n.innerWidth+u,outerHeight:n.innerHeight+u})}),[u,l,i,s]),b=h.left+h.width+h.right,y=h.top+h.height+h.bottom,x=b-g.left-g.right,w=y-g.top-g.bottom,[C,S,k]=e.useMemo((()=>function(e,t,n,r,o,a,i){let l=0,s=0,u=0,c=0,d=0;const p=[0];return[e.map((e=>{let{label:f}=e,h=Ai(e,AY);const m=t(f,n),g=fe({},h,{label:f,positionX:l,positionY:s,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return"row"===r&&(l+m.innerWidth>o&&(l=0,s+=p[d],d+=1,p.length<=d&&p.push(0),g.positionX=l,g.positionY=s,g.rowIndex=d),u=Math.max(u,l+m.outerWidth),c=Math.max(c,s+m.outerHeight),p[d]=Math.max(p[d],m.outerHeight),l+=m.outerWidth),"column"===r&&(s+m.innerHeight>a&&(l=u+i,s=0,d=0,g.positionX=l,g.positionY=s,g.rowIndex=d),p.length<=d&&p.push(0),u=Math.max(u,l+m.outerWidth),c=Math.max(c,s+m.outerHeight),d+=1,s+=m.outerHeight),g})).map((e=>fe({},e,{positionY:e.positionY+("row"===r?p[e.rowIndex]/2:e.outerHeight/2)}))),u,c]}(o,v,m,r,x,w,u)),[o,v,m,r,x,w,u]),M=e.useMemo((()=>{switch(n.horizontal){case"left":return g.left;case"right":return b-g.right-S;default:return(b-S)/2}}),[n.horizontal,g.left,g.right,b,S]),R=e.useMemo((()=>{switch(n.vertical){case"top":return g.top;case"bottom":return y-g.bottom-k;default:return(y-k)/2}}),[n.vertical,g.top,g.bottom,y,k]);return(0,Tr.jsx)(lY,{children:(0,Tr.jsx)(EY,{className:a?.root,children:C.map(((t,n)=>(0,e.createElement)(TY,fe({},t,{key:t.id,gapX:M,gapY:R,legendWidth:S,itemMarkHeight:l,itemMarkWidth:i,markGap:s,labelStyle:m,classes:a,onClick:p?e=>p(e,n):void 0}))))})})}const OY=["drawingArea","seriesToDisplay","hidden","onItemClick"];function _Y(e){const{seriesToDisplay:t,hidden:n,onItemClick:r}=e,o=Ai(e,OY);return n?null:(0,Tr.jsx)(DY,fe({},o,{itemsToDisplay:t,onItemClick:r?(e,n)=>{return r(e,{type:"series",color:(o=t[n]).color,label:o.label,seriesId:o.seriesId,itemId:o.itemId},n);var o}:void 0}))}const FY=["slots","slotProps"];function LY(e){const t=gu({props:e,name:"MuiChartsLegend"}),n=fe({direction:"row"},t,{position:fe({horizontal:"middle",vertical:"top"},t.position)}),{slots:r,slotProps:o}=n,a=Ai(n,FY),i=(e=>{const{classes:t,direction:n}=e;return qu({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},IY,t)})(fe({},n,{theme:Lr()})),l=uH(),s=UB(),u=function(e){return Object.keys(e).flatMap((t=>{const n=PY[t];return void 0===n?[]:n(e[t])}))}(s),c=r?.legend??_Y,d=Us({elementType:c,externalSlotProps:o?.legend,additionalProps:fe({},a,{classes:i,drawingArea:l,series:s,seriesToDisplay:u}),ownerState:{}});return(0,Tr.jsx)(c,fe({},d))}function jY(e){return lH(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function NY(e){return ec("MuiChartsAxisHighlight",e)}tc("MuiChartsAxisHighlight",["root"]);const zY=Ir("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:fe({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:fe({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}}));function BY(t){const{x:n,y:r}=t,{xAxisIds:o,xAxis:a,yAxisIds:i,yAxis:l}=kz(),s=qu({root:["root"]},NY),u=o[0],c=i[0],d=a[u].scale,p=l[c].scale,{axis:f}=e.useContext(aB),h=jY(d),m=jY(p),g=f.x,v=f.y,b="band"===n&&null!==g&&lH(d),y="band"===r&&null!==v&&lH(p);return(0,Tr.jsxs)(e.Fragment,{children:[b&&void 0!==d(g.value)&&(0,Tr.jsx)(zY,{d:`M ${d(g.value)-(d.step()-d.bandwidth())/2} ${p.range()[0]} l ${d.step()} 0 l 0 ${p.range()[1]-p.range()[0]} l ${-d.step()} 0 Z`,className:s.root,ownerState:{axisHighlight:"band"}}),y&&void 0!==p(v.value)&&(0,Tr.jsx)(zY,{d:`M ${d.range()[0]} ${p(v.value)-(p.step()-p.bandwidth())/2} l 0 ${p.step()} l ${d.range()[1]-d.range()[0]} 0 l 0 ${-p.step()} Z`,className:s.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==f.x&&(0,Tr.jsx)(zY,{d:`M ${h(f.x.value)} ${p.range()[0]} L ${h(f.x.value)} ${p.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),"line"===r&&null!==f.y&&(0,Tr.jsx)(zY,{d:`M ${d.range()[0]} ${m(f.y.value)} L ${d.range()[1]} ${m(f.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}function HY(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:i}=uH(),l=fe({top:0,right:0,bottom:0,left:0},n);return(0,Tr.jsx)("clipPath",{id:t,children:(0,Tr.jsx)("rect",{x:r-l.left,y:o-l.top,width:a+l.left+l.right,height:i+l.top+l.bottom})})}function VY(e){return ec("MuiChartsGrid",e)}const WY=tc("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),UY=Ir("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${WY.verticalLine}`]:t.verticalLine},{[`&.${WY.horizontalLine}`]:t.horizontalLine},t.root]})({}),GY=Ir("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})((e=>{let{theme:t}=e;return{stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}}));function KY(t){const{axis:n,drawingArea:r,classes:o}=t,{scale:a,tickNumber:i,tickInterval:l}=n,s=rG({scale:a,tickNumber:i,tickInterval:l});return(0,Tr.jsx)(e.Fragment,{children:s.map((e=>{let{formattedValue:t,offset:n}=e;return(0,Tr.jsx)(GY,{y1:r.top,y2:r.top+r.height,x1:n,x2:n,className:o.verticalLine},`vertical-${t}`)}))})}function YY(t){const{axis:n,drawingArea:r,classes:o}=t,{scale:a,tickNumber:i,tickInterval:l}=n,s=rG({scale:a,tickNumber:i,tickInterval:l});return(0,Tr.jsx)(e.Fragment,{children:s.map((e=>{let{formattedValue:t,offset:n}=e;return(0,Tr.jsx)(GY,{y1:n,y2:n,x1:r.left,x2:r.left+r.width,className:o.horizontalLine},`horizontal-${t}`)}))})}const ZY=["vertical","horizontal"];function qY(e){const t=gu({props:e,name:"MuiChartsGrid"}),n=uH(),{vertical:r,horizontal:o}=t,a=Ai(t,ZY),{xAxis:i,xAxisIds:l,yAxis:s,yAxisIds:u}=kz(),c=(e=>{let{classes:t}=e;return qu({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},VY,t)})(t),d=s[u[0]],p=i[l[0]];return(0,Tr.jsxs)(UY,fe({},a,{className:c.root,children:[r&&(0,Tr.jsx)(KY,{axis:p,drawingArea:n,classes:c}),o&&(0,Tr.jsx)(YY,{axis:d,drawingArea:n,classes:c})]}))}function XY(t){const{onAxisClick:n}=t,r=sH(),o=UB(),{axis:a}=e.useContext(aB),{xAxisIds:i,xAxis:l,yAxisIds:s,yAxis:u}=kz();return e.useEffect((()=>{const e=r.current;if(null===e||!n)return()=>{};const t=e=>{e.preventDefault();const t=a.x&&-1!==a.x.index,r=t?i[0]:s[0],c=t?a.x&&a.x.index:a.y&&a.y.index;if(null==c)return;const d={};Object.keys(o).filter((e=>["bar","line"].includes(e))).forEach((e=>{o[e]?.seriesOrder.forEach((n=>{const a=o[e].series[n],i=a.xAxisId??a.xAxisKey,l=a.yAxisId??a.yAxisKey,s=t?i:l;void 0!==s&&s!==r||(d[n]=a.data[c])}))}));const p=(t?l:u)[r].data?.[c];n(e,{dataIndex:c,axisValue:p,seriesValues:d})};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[a.x,a.y,n,o,r,l,i,u,s]),(0,Tr.jsx)(e.Fragment,{})}const QY=["message"],JY=Ir("text")((e=>{let{theme:t}=e;return fe({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"})}));function eZ(e){const{message:t}=e,n=Ai(e,QY),{top:r,left:o,height:a,width:i}=uH();return(0,Tr.jsx)(JY,fe({x:o+i/2,y:r+a/2},n,{children:t??"Loading data\u2026"}))}const tZ=["message"],nZ=Ir("text")((e=>{let{theme:t}=e;return fe({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"})}));function rZ(e){const{message:t}=e,n=Ai(e,tZ),{top:r,left:o,height:a,width:i}=uH();return(0,Tr.jsx)(nZ,fe({x:o+i/2,y:r+a/2},n,{children:t??"No data to display"}))}function oZ(e){const t=function(){const e=UB();return Object.values(e).every((e=>{if(!e)return!0;const{series:t,seriesOrder:n}=e;return n.every((e=>0===t[e].data.length))}))}();if(e.loading){const t=e.slots?.loadingOverlay??eZ;return(0,Tr.jsx)(t,fe({},e.slotProps?.loadingOverlay))}if(t){const t=e.slots?.noDataOverlay??rZ;return(0,Tr.jsx)(t,fe({},e.slotProps?.noDataOverlay))}return null}const aZ=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],iZ=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiBarChart"}),{chartContainerProps:r,barPlotProps:o,axisClickHandlerProps:a,gridProps:i,clipPathProps:l,clipPathGroupProps:s,overlayProps:u,chartsAxisProps:c,axisHighlightProps:d,legendProps:p,tooltipProps:f,children:h}=(e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:a,margin:i,colors:l,dataset:s,sx:u,tooltip:c,onAxisClick:d,axisHighlight:p,legend:f,grid:h,topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,children:y,slots:x,slotProps:w,skipAnimation:C,loading:S,layout:k,onItemClick:M,highlightedItem:R,onHighlightChange:P,borderRadius:I,barLabel:A,className:T}=e,$=Ai(e,aZ),E=`${Ys()}-clip-path`,D="horizontal"===k||void 0===k&&r.some((e=>"horizontal"===e.layout)),O={scaleType:"band",data:Array.from({length:Math.max(...r.map((e=>(e.data??s??[]).length)))},((e,t)=>t))},_=fe({},$,{series:r.map((e=>fe({type:"bar"},e,{layout:D?"horizontal":"vertical"}))),width:o,height:a,margin:i,colors:l,dataset:s,xAxis:t??(D?void 0:[fe({id:vB},O)]),yAxis:n??(D?[fe({id:bB},O)]:void 0),sx:u,highlightedItem:R,onHighlightChange:P,disableAxisListener:"axis"!==c?.trigger&&"none"===p?.x&&"none"===p?.y&&!d,className:T,skipAnimation:C});return{chartContainerProps:_,barPlotProps:{onItemClick:M,slots:x,slotProps:w,borderRadius:I,barLabel:A},axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:h?.vertical,horizontal:h?.horizontal},clipPathProps:{id:E},clipPathGroupProps:{clipPath:`url(#${E})`},overlayProps:{slots:x,slotProps:w,loading:S},chartsAxisProps:{topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,slots:x,slotProps:w},axisHighlightProps:fe({},D?{y:"band"}:{x:"band"},p),legendProps:fe({},f,{slots:x,slotProps:w}),tooltipProps:fe({},c,{slots:x,slotProps:w}),children:y}})(n);return(0,Tr.jsxs)(DK,fe({ref:t},r,{children:[n.onAxisClick&&(0,Tr.jsx)(XY,fe({},a)),(0,Tr.jsx)(qY,fe({},i)),(0,Tr.jsxs)("g",fe({},s,{children:[(0,Tr.jsx)(JB,fe({},o)),(0,Tr.jsx)(oZ,fe({},u)),(0,Tr.jsx)(BY,fe({},d))]})),(0,Tr.jsx)(iY,fe({},c)),(0,Tr.jsx)(LY,fe({},p)),!n.loading&&(0,Tr.jsx)(RY,fe({},f)),(0,Tr.jsx)(HY,fe({},l)),h]}))}));function lZ(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(iZ,{...n},r)}function sZ(e){this._context=e}function uZ(e){return new sZ(e)}lZ.defaultProps={attributes:{}},sZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};const cZ=Math.PI,dZ=2*cZ,pZ=1e-6,fZ=dZ-pZ;function hZ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class mZ{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?hZ:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hZ;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,l=n-e,s=r-t,u=a-e,c=i-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>pZ)if(Math.abs(c*l-s*u)>pZ&&o){let p=n-a,f=r-i,h=l*l+s*s,m=p*p+f*f,g=Math.sqrt(h),v=Math.sqrt(d),b=o*Math.tan((cZ-Math.acos((h+d-m)/(2*g*v)))/2),y=b/v,x=b/g;Math.abs(y-1)>pZ&&this._append`L${e+y*u},${t+y*c}`,this._append`A${o},${o},0,0,${+(c*p>u*f)},${this._x1=e+x*l},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,u=t+l,c=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>pZ||Math.abs(this._y1-u)>pZ)&&this._append`L${s},${u}`,n&&(d<0&&(d=d%dZ+dZ),d>fZ?this._append`A${n},${n},0,1,${c},${e-i},${t-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:d>pZ&&this._append`A${n},${n},0,${+(d>=cZ)},${c},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function gZ(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new mZ(t)}function vZ(e){return e[0]}function bZ(e){return e[1]}function yZ(e,t){var n=jG(!0),r=null,o=uZ,a=null,i=gZ(l);function l(l){var s,u,c,d=(l=LG(l)).length,p=!1;for(null==r&&(a=o(c=i())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(u,s,l),+t(u,s,l));if(c)return a=null,c+""||null}return e="function"===typeof e?e:void 0===e?vZ:jG(e),t="function"===typeof t?t:void 0===t?bZ:jG(t),l.x=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),l):e},l.y=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),l):t},l.defined=function(e){return arguments.length?(n="function"===typeof e?e:jG(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),l):r},l}const xZ=t=>{const n=function(t){const n=e.useRef({currentPath:t,previousPath:void 0});return n.current.currentPath!==t&&(n.current={currentPath:t,previousPath:n.current.currentPath}),n.current}(t);return e.useMemo((()=>n.previousPath?eU(n.previousPath,n.currentPath):()=>n.currentPath),[n.currentPath,n.previousPath])};function wZ(e){return e.replace(" ","_")}function CZ(t){const n=uH(),r=kB(),o=nz([n],{from:e=>({animatedWidth:e.left}),enter:e=>({animatedWidth:e.width+e.left+e.right}),leave:e=>({animatedWidth:e.width+e.left+e.right}),reset:!1,immediate:t.skipAnimation}),a=wZ(`${r}-${t.id}`);return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("clipPath",{id:a,children:o((e=>(0,Tr.jsx)(Cz.rect,{x:0,y:0,width:e.animatedWidth,height:n.top+n.height+n.bottom})))}),(0,Tr.jsx)("g",{clipPath:`url(#${a})`,children:t.children})]})}const SZ=["d","skipAnimation","ownerState"],kZ=Ir(Cz.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{stroke:"none",fill:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&Vz(t.color).brighter(1).formatHex()||Vz(t.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}}));function MZ(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=Ai(e,SZ),a=nz([xZ(t)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,Tr.jsx)(CZ,{skipAnimation:n,id:`${r.id}-area-clip`,children:a(((e,t)=>(0,Tr.jsx)(kZ,fe({},o,{ownerState:r,d:e.value.to(t)}))))})}const RZ=["id","classes","color","gradientId","slots","slotProps","onClick"];function PZ(e){return ec("MuiAreaElement",e)}tc("MuiAreaElement",["root","highlighted","faded"]);function IZ(e){const{id:t,classes:n,color:r,gradientId:o,slots:a,slotProps:i,onClick:l}=e,s=Ai(e,RZ),u=cB(),{isFaded:c,isHighlighted:d}=dB({seriesId:t}),p={id:t,classes:n,color:r,gradientId:o,isFaded:c,isHighlighted:d},f=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},PZ,t)})(p),h=a?.area??MZ,m=Us({elementType:h,externalSlotProps:i?.area,additionalProps:fe({},u({type:"line",seriesId:t}),{onClick:l,cursor:l?"pointer":"unset"}),className:f.root,ownerState:p});return(0,Tr.jsx)(h,fe({},s,m))}function AZ(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function TZ(e,t){this._context=e,this._k=(1-t)/6}TZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:AZ(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:AZ(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new TZ(e,t)}return n.tension=function(t){return e(+t)},n})(0);function $Z(e,t){this._context=e,this._alpha=t}$Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,a=e._x2,i=e._y2;if(e._l01_a>mK){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>mK){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,i=(i*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,a,i,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EZ=function e(t){function n(e){return t?new $Z(e,t):new TZ(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function DZ(e){return e<0?-1:1}function OZ(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),l=(a*o+i*r)/(r+o);return(DZ(a)+DZ(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(l))||0}function _Z(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function FZ(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,o+l*t,a-l,i-l*n,a,i)}function LZ(e){this._context=e}function jZ(e){this._context=new NZ(e)}function NZ(e){this._context=e}function zZ(e){return new LZ(e)}function BZ(e){return new jZ(e)}function HZ(e){this._context=e}function VZ(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function WZ(e){return new HZ(e)}function UZ(e,t){this._context=e,this._t=t}function GZ(e){return new UZ(e,.5)}function KZ(e){return new UZ(e,0)}function YZ(e){return new UZ(e,1)}function ZZ(e){switch(e){case"catmullRom":return EZ.alpha(.5);case"linear":return uZ;case"monotoneX":default:return zZ;case"monotoneY":return BZ;case"natural":return WZ;case"step":return GZ;case"stepBefore":return KZ;case"stepAfter":return YZ}}LZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:FZ(this,this._t0,_Z(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,FZ(this,_Z(this,n=OZ(this,e,t)),n);break;default:FZ(this,this._t0,n=OZ(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(jZ.prototype=Object.create(LZ.prototype)).point=function(e,t){LZ.prototype.point.call(this,t,e)},NZ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}},HZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=VZ(e),o=VZ(t),a=0,i=1;i<n;++a,++i)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},UZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const qZ=["slots","slotProps","onItemClick","skipAnimation"],XZ=()=>{const t=GB(),n=kz(),r=e.useMemo((()=>{if(void 0===t)return[];const{series:e,stackingGroups:r}=t,{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=n,s=i[0],u=l[0];return r.flatMap((t=>{let{ids:n}=t;return[...n].reverse().map((t=>{const{xAxisId:n,yAxisId:r,xAxisKey:i=s,yAxisKey:l=u,stackedData:c,data:d,connectNulls:p,baseline:f}=e[t],h=n??i,m=r??l,g=jY(o[h].scale),v=a[m].scale,b=o[h].data,y=a[m].colorScale&&[m,"y"]||o[h].colorScale&&[h,"x"]||void 0;const x=function(e,t,n){var r=null,o=jG(!0),a=null,i=uZ,l=null,s=gZ(u);function u(u){var c,d,p,f,h,m=(u=LG(u)).length,g=!1,v=new Array(m),b=new Array(m);for(null==a&&(l=i(h=s())),c=0;c<=m;++c){if(!(c<m&&o(f=u[c],c,u))===g)if(g=!g)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=c-1;p>=d;--p)l.point(v[p],b[p]);l.lineEnd(),l.areaEnd()}g&&(v[c]=+e(f,c,u),b[c]=+t(f,c,u),l.point(r?+r(f,c,u):v[c],n?+n(f,c,u):b[c]))}if(h)return l=null,h+""||null}function c(){return yZ().defined(o).curve(i).context(a)}return e="function"===typeof e?e:void 0===e?vZ:jG(+e),t="function"===typeof t?t:jG(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?bZ:jG(+n),u.x=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:jG(+e),u):r},u.y=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:jG(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"===typeof e?e:jG(!!e),u):o},u.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),u):i},u.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),u):a},u}().x((e=>g(e.x))).defined(((e,t)=>p||null!=d[t])).y0((e=>{if("number"===typeof f)return v(f);if("max"===f)return v.range()[1];if("min"===f)return v.range()[0];const t=e.y&&v(e.y[0]);return Number.isNaN(t)?v.range()[0]:t})).y1((e=>e.y&&v(e.y[1]))),w=ZZ(e[t].curve),C=b?.map(((e,t)=>({x:e,y:c[t]})))??[],S=p?C.filter(((e,t)=>null!=d[t])):C,k=x.curve(w)(S)||"";return fe({},e[t],{gradientUsed:y,d:k,seriesId:t})}))}))}),[t,n]);return r};function QZ(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,a=Ai(e,qZ),i=YB(o),l=RG(),s=XZ();return(0,Tr.jsx)("g",fe({},a,{children:s.map((e=>{let{d:o,seriesId:a,color:s,area:u,gradientUsed:c}=e;return!!u&&(0,Tr.jsx)(IZ,{id:a,d:o,color:s,gradientId:c&&l(...c),slots:t,slotProps:n,onClick:r&&(e=>r(e,{type:"line",seriesId:a})),skipAnimation:i},a)}))}))}const JZ=["d","skipAnimation","ownerState"],eq=Ir(Cz.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&Vz(t.color).brighter(.5).formatHex()||t.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:t.isFaded?.3:1}}));function tq(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=Ai(e,JZ),a=nz([xZ(t)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,Tr.jsx)(CZ,{skipAnimation:n,id:`${r.id}-line-clip`,children:a(((e,t)=>(0,Tr.jsx)(eq,fe({},o,{ownerState:r,d:e.value.to(t)}))))})}const nq=["id","classes","color","gradientId","slots","slotProps","onClick"];function rq(e){return ec("MuiLineElement",e)}tc("MuiLineElement",["root","highlighted","faded"]);function oq(e){const{id:t,classes:n,color:r,gradientId:o,slots:a,slotProps:i,onClick:l}=e,s=Ai(e,nq),u=cB(),{isFaded:c,isHighlighted:d}=dB({seriesId:t}),p={id:t,classes:n,color:r,gradientId:o,isFaded:c,isHighlighted:d},f=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},rq,t)})(p),h=a?.line??tq,m=Us({elementType:h,externalSlotProps:i?.line,additionalProps:fe({},u({type:"line",seriesId:t}),{onClick:l,cursor:l?"pointer":"unset"}),className:f.root,ownerState:p});return(0,Tr.jsx)(h,fe({},s,m))}const aq=["slots","slotProps","skipAnimation","onItemClick"];function iq(t){const{slots:n,slotProps:r,skipAnimation:o,onItemClick:a}=t,i=Ai(t,aq),l=YB(o),s=RG(),u=(()=>{const t=GB(),n=kz();return e.useMemo((()=>{if(void 0===t)return[];const{series:e,stackingGroups:r}=t,{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=n,s=i[0],u=l[0];return r.flatMap((t=>{let{ids:n}=t;return n.flatMap((t=>{const{xAxisId:n,yAxisId:r,xAxisKey:i=s,yAxisKey:l=u,stackedData:c,data:d,connectNulls:p}=e[t],f=n??i,h=r??l,m=jY(o[f].scale),g=a[h].scale,v=o[f].data,b=a[h].colorScale&&[h,"y"]||o[f].colorScale&&[f,"x"]||void 0,y=yZ().x((e=>m(e.x))).defined(((e,t)=>p||null!=d[t])).y((e=>g(e.y[1]))),x=v?.map(((e,t)=>({x:e,y:c[t]})))??[],w=p?x.filter(((e,t)=>null!=d[t])):x,C=y.curve(ZZ(e[t].curve))(w)||"";return fe({},e[t],{gradientUsed:b,d:C,seriesId:t})}))}))}),[t,n])})();return(0,Tr.jsx)("g",fe({},i,{children:u.map((e=>{let{d:t,seriesId:o,color:i,gradientUsed:u}=e;return(0,Tr.jsx)(oq,{id:o,d:t,color:i,gradientId:u&&s(...u),skipAnimation:l,slots:n,slotProps:r,onClick:a&&(e=>a(e,{type:"line",seriesId:o}))},o)}))}))}function lq(e){return ec("MuiMarkElement",e)}tc("MuiMarkElement",["root","highlighted","faded"]);const sq=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},lq,t)},uq=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function cq(t){const{x:n,y:r,id:o,classes:a,color:i,dataIndex:l,onClick:s,skipAnimation:u,shape:c}=t,d=Ai(t,uq);"circle"!==c&&[`MUI X: The mark element of your line chart have shape "${c}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join("\n");const p=Lr(),f=cB(),{isFaded:h,isHighlighted:m}=dB({seriesId:o}),{axis:g}=e.useContext(aB),v=tz({to:{x:n,y:r},immediate:u}),b={id:o,classes:a,isHighlighted:g.x?.index===l||m,isFaded:h,color:i},y=sq(b);return(0,Tr.jsx)(Cz.circle,fe({},d,{cx:v.x,cy:v.y,r:5,fill:(p.vars||p).palette.background.paper,stroke:i,strokeWidth:2,className:y.root,onClick:s,cursor:s?"pointer":"unset"},f({type:"line",seriesId:o,dataIndex:l})))}hK(3);const dq={draw(e,t){const n=hK(t/gK);e.moveTo(n,0),e.arc(0,0,n,0,bK)}},pq={draw(e,t){const n=hK(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},fq=hK(1/3),hq=2*fq,mq={draw(e,t){const n=hK(t/hq),r=n*fq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},gq={draw(e,t){const n=hK(t),r=-n/2;e.rect(r,r,n,n)}},vq=fK(gK/10)/fK(7*gK/10),bq=fK(bK/10)*vq,yq=-cK(bK/10)*vq,xq={draw(e,t){const n=hK(.8908130915292852*t),r=bq*n,o=yq*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const t=bK*a/5,i=cK(t),l=fK(t);e.lineTo(l*n,-i*n),e.lineTo(i*r-l*o,l*r+i*o)}e.closePath()}},wq=hK(3),Cq={draw(e,t){const n=-hK(t/(3*wq));e.moveTo(0,2*n),e.lineTo(-wq*n,-n),e.lineTo(wq*n,-n),e.closePath()}},Sq=(hK(3),-.5),kq=hK(3)/2,Mq=1/hK(12),Rq=3*(Mq/2+1),Pq={draw(e,t){const n=hK(t/Rq),r=n/2,o=n*Mq,a=r,i=n*Mq+n,l=-a,s=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(l,s),e.lineTo(Sq*r-kq*o,kq*r+Sq*o),e.lineTo(Sq*a-kq*i,kq*a+Sq*i),e.lineTo(Sq*l-kq*s,kq*l+Sq*s),e.lineTo(Sq*r+kq*o,Sq*o-kq*r),e.lineTo(Sq*a+kq*i,Sq*i-kq*a),e.lineTo(Sq*l+kq*s,Sq*s-kq*l),e.closePath()}},Iq=[dq,pq,mq,gq,xq,Cq,Pq];function Aq(e,t){let n=null,r=gZ(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"===typeof e?e:jG(e||dq),t="function"===typeof t?t:jG(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"===typeof t?t:jG(t),o):e},o.size=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}function Tq(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const $q=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],Eq=Ir(Cz.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t,theme:n}=e;return{fill:(n.vars||n).palette.background.paper,stroke:t.color,strokeWidth:2}}));function Dq(t){const{x:n,y:r,id:o,classes:a,color:i,shape:l,dataIndex:s,onClick:u,skipAnimation:c}=t,d=Ai(t,$q),p=cB(),{isFaded:f,isHighlighted:h}=dB({seriesId:o}),{axis:m}=e.useContext(aB),g=tz({to:{x:n,y:r},immediate:c}),v={id:o,classes:a,isHighlighted:m.x?.index===s||h,isFaded:f,color:i},b=sq(v);return(0,Tr.jsx)(Eq,fe({},d,{style:{transform:sz([g.x,g.y],((e,t)=>`translate(${e}px, ${t}px)`)),transformOrigin:sz([g.x,g.y],((e,t)=>`${e}px ${t}px`))},ownerState:v,className:b.root,d:Aq(Iq[Tq(l)])(),onClick:u,cursor:u?"pointer":"unset"},p({type:"line",seriesId:o,dataIndex:s})))}const Oq=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function _q(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o,experimentalRendering:a}=e,i=Ai(e,Oq),l=YB(r),s=GB(),u=kz(),c=kB(),d=uH(),p=t?.mark??(a?cq:Dq);if(void 0===s)return null;const{series:f,stackingGroups:h}=s,{xAxis:m,yAxis:g,xAxisIds:v,yAxisIds:b}=u,y=v[0],x=b[0];return(0,Tr.jsx)("g",fe({},i,{children:h.flatMap((e=>{let{ids:t}=e;return t.map((e=>{const{xAxisId:t,yAxisId:r,xAxisKey:a=y,yAxisKey:i=x,stackedData:s,data:u,showMark:h=!0}=f[e];if(!1===h)return null;const v=t??a,b=r??i,w=jY(m[v].scale),C=g[b].scale,S=m[v].data;if(void 0===S)throw new Error(`MUI X: ${v===vB?"The first `xAxis`":`The x-axis with id "${v}"`} should have data property to be able to display a line plot.`);const k=wZ(`${c}-${e}-line-clip`),M=oK(f[e],m[v],g[b]);return(0,Tr.jsx)("g",{clipPath:`url(#${k})`,children:S?.map(((e,t)=>{const n=null==u[t]?null:s[t][1];return{x:w(e),y:null===n?null:C(n),position:e,value:n,index:t}})).filter((e=>{let{x:t,y:n,index:r,position:o,value:a}=e;return null!==a&&null!==n&&(!!d.isPointInside({x:t,y:n})&&(!0===h||h({x:t,y:n,index:r,position:o,value:a})))})).map((t=>{let{x:r,y:a,index:i}=t;return(0,Tr.jsx)(p,fe({id:e,dataIndex:i,shape:"circle",color:M(i),x:r,y:a,skipAnimation:l,onClick:o&&(t=>o(t,{type:"line",seriesId:e,dataIndex:i}))},n?.mark),`${e}-${i}`)}))},e)}))}))}))}const Fq=["x","y","id","classes","color"];function Lq(e){return ec("MuiHighlightElement",e)}tc("MuiHighlightElement",["root"]);const jq=Ir("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{transform:`translate(${t.x}px, ${t.y}px)`,transformOrigin:`${t.x}px ${t.y}px`,fill:t.color}}));function Nq(e){const{x:t,y:n,id:r,classes:o,color:a}=e,i=Ai(e,Fq),l={id:r,classes:o,color:a,x:t,y:n},s=(e=>{const{classes:t,id:n}=e;return qu({root:["root",`series-${n}`]},Lq,t)})(l);return(0,Tr.jsx)(jq,fe({pointerEvents:"none",ownerState:l,className:s.root,cx:0,cy:0,r:void 0===i.r?5:i.r},i))}const zq=["slots","slotProps"];function Bq(t){const{slots:n,slotProps:r}=t,o=Ai(t,zq),a=GB(),i=kz(),l=uH(),{axis:s}=e.useContext(aB),u=s.x?.index;if(void 0===u)return null;if(void 0===a)return null;const{series:c,stackingGroups:d}=a,{xAxis:p,yAxis:f,xAxisIds:h,yAxisIds:m}=i,g=h[0],v=m[0],b=n?.lineHighlight??Nq;return(0,Tr.jsx)("g",fe({},o,{children:d.flatMap((e=>{let{ids:t}=e;return t.flatMap((e=>{const{xAxisId:t,yAxisId:n,xAxisKey:o=g,yAxisKey:a=v,stackedData:i,data:s,disableHighlight:d}=c[e],h=t??o,m=n??a;if(d||null==s[u])return null;const y=jY(p[h].scale),x=f[m].scale,w=p[h].data;if(void 0===w)throw new Error(`MUI X: ${h===vB?"The first `xAxis`":`The x-axis with id "${h}"`} should have data property to be able to display a line plot.`);const C=y(w[u]),S=x(i[u][1]);if(!l.isPointInside({x:C,y:S}))return null;const k=oK(c[e],p[h],f[m]);return(0,Tr.jsx)(b,fe({id:e,color:k(u),x:C,y:S},r?.lineHighlight),`${e}`)}))}))}))}const Hq=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Vq=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiLineChart"}),{chartContainerProps:r,axisClickHandlerProps:o,gridProps:a,clipPathProps:i,clipPathGroupProps:l,areaPlotProps:s,linePlotProps:u,markPlotProps:c,overlayProps:d,chartsAxisProps:p,axisHighlightProps:f,lineHighlightPlotProps:h,legendProps:m,tooltipProps:g,children:v}=(e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:a,margin:i,colors:l,dataset:s,sx:u,tooltip:c,onAxisClick:d,onAreaClick:p,onLineClick:f,onMarkClick:h,axisHighlight:m,disableLineItemHighlight:g,legend:v,grid:b,topAxis:y,leftAxis:x,rightAxis:w,bottomAxis:C,children:S,slots:k,slotProps:M,skipAnimation:R,loading:P,highlightedItem:I,onHighlightChange:A,className:T,experimentalMarkRendering:$}=e,E=Ai(e,Hq),D=`${Ys()}-clip-path`,O=fe({},E,{series:r.map((e=>fe({disableHighlight:!!g,type:"line"},e))),width:o,height:a,margin:i,colors:l,dataset:s,xAxis:t??[{id:vB,scaleType:"point",data:Array.from({length:Math.max(...r.map((e=>(e.data??s??[]).length)))},((e,t)=>t))}],yAxis:n,sx:u,highlightedItem:I,onHighlightChange:A,disableAxisListener:"axis"!==c?.trigger&&"none"===m?.x&&"none"===m?.y&&!d,className:T,skipAnimation:R});return{chartContainerProps:O,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:b?.vertical,horizontal:b?.horizontal},clipPathProps:{id:D},clipPathGroupProps:{clipPath:`url(#${D})`},areaPlotProps:{slots:k,slotProps:M,onItemClick:p},linePlotProps:{slots:k,slotProps:M,onItemClick:f},markPlotProps:{slots:k,slotProps:M,onItemClick:h,skipAnimation:R,experimentalRendering:$},overlayProps:{slots:k,slotProps:M,loading:P},chartsAxisProps:{topAxis:y,leftAxis:x,rightAxis:w,bottomAxis:C,slots:k,slotProps:M},axisHighlightProps:fe({x:"line"},m),lineHighlightPlotProps:{slots:k,slotProps:M},legendProps:fe({},v,{slots:k,slotProps:M}),tooltipProps:fe({},c,{slots:k,slotProps:M}),children:S}})(n);return(0,Tr.jsxs)(DK,fe({ref:t},r,{children:[n.onAxisClick&&(0,Tr.jsx)(XY,fe({},o)),(0,Tr.jsx)(qY,fe({},a)),(0,Tr.jsxs)("g",fe({},l,{children:[(0,Tr.jsx)(QZ,fe({},s)),(0,Tr.jsx)(iq,fe({},u)),(0,Tr.jsx)(oZ,fe({},d)),(0,Tr.jsx)(BY,fe({},f))]})),(0,Tr.jsx)(iY,fe({},p)),(0,Tr.jsx)("g",{"data-drawing-container":!0,children:(0,Tr.jsx)(_q,fe({},c))}),(0,Tr.jsx)(Bq,fe({},h)),(0,Tr.jsx)(LY,fe({},m)),!n.loading&&(0,Tr.jsx)(RY,fe({},g)),(0,Tr.jsx)(HY,fe({},i)),v]}))}));function Wq(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(Vq,{...n},r)}function Uq(e){return e.innerRadius}function Gq(e){return e.outerRadius}function Kq(e){return e.startAngle}function Yq(e){return e.endAngle}function Zq(e){return e&&e.padAngle}function qq(e,t,n,r,o,a,i){var l=e-n,s=t-r,u=(i?a:-a)/hK(l*l+s*s),c=u*s,d=-u*l,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,v=(f+m)/2,b=h-p,y=m-f,x=b*b+y*y,w=o-a,C=p*m-h*f,S=(y<0?-1:1)*hK(dK(0,w*w*x-C*C)),k=(C*y-b*S)/x,M=(-C*b-y*S)/x,R=(C*y+b*S)/x,P=(-C*b+y*S)/x,I=k-g,A=M-v,T=R-g,$=P-v;return I*I+A*A>T*T+$*$&&(k=R,M=P),{cx:k,cy:M,x01:-c,y01:-d,x11:k*(o/w-1),y11:M*(o/w-1)}}function Xq(){var e=Uq,t=Gq,n=jG(0),r=null,o=Kq,a=Yq,i=Zq,l=null,s=gZ(u);function u(){var u,c,d,p=+e.apply(this,arguments),f=+t.apply(this,arguments),h=o.apply(this,arguments)-vK,m=a.apply(this,arguments)-vK,g=sK(m-h),v=m>h;if(l||(l=u=s()),f<p&&(c=f,f=p,p=c),f>mK)if(g>bK-mK)l.moveTo(f*cK(h),f*fK(h)),l.arc(0,0,f,h,m,!v),p>mK&&(l.moveTo(p*cK(m),p*fK(m)),l.arc(0,0,p,m,h,v));else{var b,y,x=h,w=m,C=h,S=m,k=g,M=g,R=i.apply(this,arguments)/2,P=R>mK&&(r?+r.apply(this,arguments):hK(p*p+f*f)),I=pK(sK(f-p)/2,+n.apply(this,arguments)),A=I,T=I;if(P>mK){var $=yK(P/p*fK(R)),E=yK(P/f*fK(R));(k-=2*$)>mK?(C+=$*=v?1:-1,S-=$):(k=0,C=S=(h+m)/2),(M-=2*E)>mK?(x+=E*=v?1:-1,w-=E):(M=0,x=w=(h+m)/2)}var D=f*cK(x),O=f*fK(x),_=p*cK(S),F=p*fK(S);if(I>mK){var L,j=f*cK(w),N=f*fK(w),z=p*cK(C),B=p*fK(C);if(g<gK)if(L=function(e,t,n,r,o,a,i,l){var s=n-e,u=r-t,c=i-o,d=l-a,p=d*s-c*u;if(!(p*p<mK))return[e+(p=(c*(t-a)-d*(e-o))/p)*s,t+p*u]}(D,O,z,B,j,N,_,F)){var H=D-L[0],V=O-L[1],W=j-L[0],U=N-L[1],G=1/fK(((d=(H*W+V*U)/(hK(H*H+V*V)*hK(W*W+U*U)))>1?0:d<-1?gK:Math.acos(d))/2),K=hK(L[0]*L[0]+L[1]*L[1]);A=pK(I,(p-K)/(G-1)),T=pK(I,(f-K)/(G+1))}else A=T=0}M>mK?T>mK?(b=qq(z,B,D,O,f,T,v),y=qq(j,N,_,F,f,T,v),l.moveTo(b.cx+b.x01,b.cy+b.y01),T<I?l.arc(b.cx,b.cy,T,uK(b.y01,b.x01),uK(y.y01,y.x01),!v):(l.arc(b.cx,b.cy,T,uK(b.y01,b.x01),uK(b.y11,b.x11),!v),l.arc(0,0,f,uK(b.cy+b.y11,b.cx+b.x11),uK(y.cy+y.y11,y.cx+y.x11),!v),l.arc(y.cx,y.cy,T,uK(y.y11,y.x11),uK(y.y01,y.x01),!v))):(l.moveTo(D,O),l.arc(0,0,f,x,w,!v)):l.moveTo(D,O),p>mK&&k>mK?A>mK?(b=qq(_,F,j,N,p,-A,v),y=qq(D,O,z,B,p,-A,v),l.lineTo(b.cx+b.x01,b.cy+b.y01),A<I?l.arc(b.cx,b.cy,A,uK(b.y01,b.x01),uK(y.y01,y.x01),!v):(l.arc(b.cx,b.cy,A,uK(b.y01,b.x01),uK(b.y11,b.x11),!v),l.arc(0,0,p,uK(b.cy+b.y11,b.cx+b.x11),uK(y.cy+y.y11,y.cx+y.x11),v),l.arc(y.cx,y.cy,A,uK(y.y11,y.x11),uK(y.y01,y.x01),!v))):l.arc(0,0,p,S,C,v):l.lineTo(_,F)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-gK/2;return[cK(r)*n,fK(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:jG(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:jG(+e),u):r},u.startAngle=function(e){return arguments.length?(o="function"===typeof e?e:jG(+e),u):o},u.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:jG(+e),u):a},u.padAngle=function(e){return arguments.length?(i="function"===typeof e?e:jG(+e),u):i},u.context=function(e){return arguments.length?(l=null==e?null:e,u):l},u}Wq.defaultProps={attributes:{}};const Qq=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function Jq(e){return ec("MuiPieArc",e)}tc("MuiPieArc",["root","highlighted","faded"]);const eX=Ir(Cz.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})((e=>{let{theme:t}=e;return{stroke:(t.vars||t).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}}));function tX(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:a,id:i,innerRadius:l,isFaded:s,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:p,startAngle:f}=e,h=Ai(e,Qq),m={id:i,dataIndex:o,classes:t,color:n,isFaded:s,isHighlighted:u},g=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},Jq,t)})(m),v=cB();return(0,Tr.jsx)(eX,fe({d:sz([f,a,p,l,d,r],((e,t,n,r,o,a)=>Xq().cornerRadius(a)({padAngle:n,startAngle:e,endAngle:t,innerRadius:r,outerRadius:o}))),visibility:sz([f,a],((e,t)=>e===t?"hidden":"visible")),onClick:c,cursor:c?"pointer":"unset",ownerState:m,className:g.root},h,v({type:"pie",seriesId:i,dataIndex:o})))}const nX={keys:e=>e.id,from:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,color:l,isFaded:s}=e;return{innerRadius:t,outerRadius:(t+n)/2,cornerRadius:r,startAngle:(o+a)/2,endAngle:(o+a)/2,paddingAngle:i,fill:l,opacity:s?.3:1}},leave:e=>{let{innerRadius:t,startAngle:n,endAngle:r}=e;return{innerRadius:t,outerRadius:t,startAngle:(n+r)/2,endAngle:(n+r)/2}},enter:e=>{let{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o}=e;return{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o}},update:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,color:l,isFaded:s}=e;return{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,fill:l,opacity:s?.3:1}},config:{tension:120,friction:14,clamp:!0}},rX={keys:e=>e.id,from:e=>{let{innerRadius:t,outerRadius:n,arcLabelRadius:r,cornerRadius:o,startAngle:a,endAngle:i,paddingAngle:l}=e;return{innerRadius:t,outerRadius:(t+n)/2,cornerRadius:o,arcLabelRadius:r,startAngle:(a+i)/2,endAngle:(a+i)/2,paddingAngle:l,opacity:0}},leave:e=>{let{innerRadius:t,startAngle:n,endAngle:r}=e;return{innerRadius:t,outerRadius:t,arcLabelRadius:t,startAngle:(n+r)/2,endAngle:(n+r)/2,opacity:0}},enter:e=>{let{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o,arcLabelRadius:a}=e;return{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o,arcLabelRadius:a,opacity:1}},update:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l}=e;return{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l,opacity:1}},config:{tension:120,friction:14,clamp:!0}};function oX(t){const{id:n,data:r,faded:o,highlighted:a,paddingAngle:i=0,innerRadius:l=0,arcLabelRadius:s,outerRadius:u,cornerRadius:c=0}=t,{isFaded:d,isHighlighted:p}=uB();return e.useMemo((()=>r.map(((e,t)=>{const r={seriesId:n,dataIndex:t},f=p(r),h=!f&&d(r),m=fe({additionalRadius:0},h&&o||f&&a||{}),g=Math.max(0,Math.PI*(m.paddingAngle??i)/180),v=Math.max(0,m.innerRadius??l),b=Math.max(0,m.outerRadius??u+m.additionalRadius);return fe({},e,m,{isFaded:h,isHighlighted:f,paddingAngle:g,innerRadius:v,outerRadius:b,cornerRadius:m.cornerRadius??c,arcLabelRadius:m.arcLabelRadius??s??(v+b)/2})}))),[c,l,u,i,s,r,o,a,d,p,n])}const aX=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],iX=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function lX(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:a=0,paddingAngle:i=0,id:l,highlighted:s,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:p}=e,f=Ai(e,aX),h=nz(oX({innerRadius:r,outerRadius:o,cornerRadius:a,paddingAngle:i,id:l,highlighted:s,faded:u,data:c}),fe({},nX,{immediate:p})),{highlightScope:m}=uB();if(0===c.length)return null;const g=t?.pieArc??tX;return(0,Tr.jsx)("g",fe({},f,{children:h(((e,t,r,o)=>{let{startAngle:a,endAngle:i,paddingAngle:s,innerRadius:u,outerRadius:c,cornerRadius:p}=e,f=Ai(e,iX);return(0,Tr.jsx)(g,fe({startAngle:a,endAngle:i,paddingAngle:s,innerRadius:u,outerRadius:c,cornerRadius:p,style:f,id:l,color:t.color,dataIndex:o,highlightScope:m,isFaded:t.isFaded,isHighlighted:t.isHighlighted,onClick:d&&(e=>{d(e,{type:"pie",seriesId:l,dataIndex:o},t)})},n?.pieArc))}))}))}const sX=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function uX(e){return ec("MuiPieArcLabel",e)}tc("MuiPieArcLabel",["root","highlighted","faded"]);const cX=Ir(Cz.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"}})),dX=(e,t)=>(n,r,o,a,i)=>{if(!e)return 0;const[l,s]=Xq().cornerRadius(i).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:a,outerRadius:a});return"x"===t?l:s};function pX(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l,cornerRadius:s,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:p}=e,f=Ai(e,sX),h=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},uX,t)})({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return(0,Tr.jsx)(cX,fe({className:h.root},f,{style:fe({x:sz([o,a,i,l,s],dX(u,"x")),y:sz([o,a,i,l,s],dX(u,"y"))},p),children:u}))}const fX=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],hX=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],mX=180/Math.PI;function gX(e,t,n){if(!e)return null;if((n.endAngle-n.startAngle)*mX<t)return null;switch(e){case"label":return xK(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return e(fe({},n,{label:xK(n.label,"arc")}))}}function vX(e){const{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:r,cornerRadius:o=0,data:a,faded:i={additionalRadius:-5},highlighted:l,id:s,innerRadius:u,outerRadius:c,paddingAngle:d=0,skipAnimation:p,slotProps:f,slots:h}=e,m=Ai(e,fX),g=nz(oX({innerRadius:u,outerRadius:c,arcLabelRadius:r,cornerRadius:o,paddingAngle:d,id:s,highlighted:l,faded:i,data:a}),fe({},rX,{immediate:p}));if(0===a.length)return null;const v=h?.pieArcLabel??pX;return(0,Tr.jsx)("g",fe({},m,{children:g(((e,r)=>{let{startAngle:o,endAngle:a,paddingAngle:i,innerRadius:l,outerRadius:u,arcLabelRadius:c,cornerRadius:d}=e,p=Ai(e,hX);return(0,Tr.jsx)(v,fe({startAngle:o,endAngle:a,paddingAngle:i,innerRadius:l,outerRadius:u,arcLabelRadius:c,cornerRadius:d,style:p,id:s,color:r.color,isFaded:r.isFaded,isHighlighted:r.isHighlighted,formattedArcLabel:gX(t,n,r)},f?.pieArcLabel))}))}))}function bX(e,t){if("number"===typeof e)return e;if("100%"===e)return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function yX(e,t){const{height:n,width:r}=t,{cx:o,cy:a}=e,i=Math.min(r,n)/2;return{cx:bX(o??"50%",r),cy:bX(a??"50%",n),availableRadius:i}}function xX(t){const{skipAnimation:n,slots:r,slotProps:o,onItemClick:a}=t,i=function(){const t=UB();return e.useMemo((()=>t.pie),[t.pie])}(),{left:l,top:s,width:u,height:c}=e.useContext(wB),d=YB(n);if(void 0===i)return null;const{series:p,seriesOrder:f}=i;return(0,Tr.jsxs)("g",{children:[f.map((e=>{const{innerRadius:t,outerRadius:n,cornerRadius:i,paddingAngle:f,data:h,cx:m,cy:g,highlighted:v,faded:b}=p[e],{cx:y,cy:x,availableRadius:w}=yX({cx:m,cy:g},{width:u,height:c}),C=bX(n??w,w),S=bX(t??0,w);return(0,Tr.jsx)("g",{transform:`translate(${l+y}, ${s+x})`,children:(0,Tr.jsx)(lX,{innerRadius:S,outerRadius:C,cornerRadius:i,paddingAngle:f,id:e,data:h,skipAnimation:d,highlighted:v,faded:b,onItemClick:a,slots:r,slotProps:o})},e)})),f.map((e=>{const{innerRadius:t,outerRadius:n,arcLabelRadius:a,cornerRadius:i,paddingAngle:f,arcLabel:h,arcLabelMinAngle:m,data:g,cx:v,cy:b}=p[e],{cx:y,cy:x,availableRadius:w}=yX({cx:v,cy:b},{width:u,height:c}),C=bX(n??w,w),S=bX(t??0,w),k=void 0===a?(C+S)/2:bX(a,w);return(0,Tr.jsx)("g",{transform:`translate(${l+y}, ${s+x})`,children:(0,Tr.jsx)(vX,{innerRadius:S,outerRadius:C??w,arcLabelRadius:k,cornerRadius:i,paddingAngle:f,id:e,data:g,skipAnimation:d,arcLabel:h,arcLabelMinAngle:m,slots:r,slotProps:o})},e)}))]})}const wX=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],CX={top:5,bottom:5,left:5,right:100},SX={top:5,bottom:5,left:100,right:5},kX=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiPieChart"}),{xAxis:r,yAxis:o,series:a,width:i,height:l,margin:s,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:p={x:"none",y:"none"},skipAnimation:f,legend:h,topAxis:m=null,leftAxis:g=null,rightAxis:v=null,bottomAxis:b=null,children:y,slots:x,slotProps:w,onItemClick:C,loading:S,highlightedItem:k,onHighlightChange:M,className:R}=n,P=Ai(n,wX),I=ni(),A=fe({},I?SX:CX,s),T=fe({direction:"column",position:{vertical:"middle",horizontal:I?"left":"right"}},h);return(0,Tr.jsxs)(DK,fe({},P,{ref:t,series:a.map((e=>fe({type:"pie"},e))),width:i,height:l,margin:A,xAxis:r??[{id:vB,scaleType:"point",data:[...new Array(Math.max(...a.map((e=>e.data.length))))].map(((e,t)=>t))}],yAxis:o,colors:u,sx:c,disableAxisListener:"axis"!==d?.trigger&&"none"===p?.x&&"none"===p?.y,highlightedItem:k,onHighlightChange:M,className:R,skipAnimation:f,children:[(0,Tr.jsx)(iY,{topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,slots:x,slotProps:w}),(0,Tr.jsx)(xX,{slots:x,slotProps:w,onItemClick:C}),(0,Tr.jsx)(oZ,{loading:S,slots:x,slotProps:w}),(0,Tr.jsx)(LY,fe({},T,{slots:x,slotProps:w})),(0,Tr.jsx)(BY,fe({},p)),!S&&(0,Tr.jsx)(RY,fe({},d,{slots:x,slotProps:w})),y]}))}));function MX(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(kX,{...n},r)}function RX(e){let{attributes:t}=e;const{id:n,MuiBoxAttributes:r={},MuiChartContainerAttributes:o={},MuiChartXAxisAttributes:a={},MuiChartYAxisAttributes:i={},MuiChartSX:l={}}=t;return(0,Tr.jsx)(Mo,{sx:{width:"100%",maxWidth:600},...r,children:(0,Tr.jsxs)(DK,{sx:{[`.${_K.left} .${_K.label}`]:{transform:"translate(-25px, 0)"},[`.${_K.right} .${_K.label}`]:{transform:"translate(30px, 0)"},...l},...o,children:[(0,Tr.jsx)(JB,{}),(0,Tr.jsx)(iq,{}),(0,Tr.jsx)(JK,{...a}),(0,Tr.jsx)(rY,{...i})]})},n)}MX.defaultProps={attributes:{}},RX.defaultProps={attributes:{}};const PX={Typography:To,TextField:Ex,Table:OO,DateTime:JO,DateTimePicker:e_,TimePicker:t_,Select:i_,CheckBox:l_,Switch:v_,Radio:z_,Stepper:LF,Bar:lZ,Line:Wq,Pie:MX,MixChart:RX};function IX(e){const{map:t}=e;if(!t)return(0,Tr.jsx)("div",{});const n=PX[t];return(0,Tr.jsx)(n,{...e})}const AX={MUI:{map:to}},TX={};function $X(t){let{data:n=[],patch:r={},guid:o,formRef:a,onSubmit:i,onChange:l,onStepChange:s,MuiGridAttributes:u={spacing:2},activeStep:c=0}=t;const[d,p]=(0,e.useState)(r),f=AX.MUI,h=(0,e.useMemo)((()=>Cx(Mx(n,d,o,TX))),[d,n,o]);(0,e.useEffect)((()=>{eo()(TX[o])&&(TX[o]=r)}),[]),QO((()=>{p({...r})}),[r]);const m=(0,e.useCallback)((e=>{let{id:t,value:n,option:r}=e;TX[o][t]=n,"function"===typeof l&&l({id:t,value:n,option:r})}),[]),g=(0,e.useCallback)(((e,t,n)=>{if("function"===typeof e){const r=((e,t)=>{const n=(e=>null===e||void 0===e?void 0:e.filter((e=>{var t,n;return null===e||void 0===e||null===(t=e.rules)||void 0===t||null===(n=t.validation)||void 0===n?void 0:n.some((e=>"mandatory"===e.rule))})))(e);return null===n||void 0===n?void 0:n.reduce(((e,n)=>{var r,o;return null===n||void 0===n||null===(r=n.rules)||void 0===r||null===(o=r.validation)||void 0===o||o.forEach((r=>{var o,a;const i=null===(o=TX[t][(null===n||void 0===n?void 0:n.id)||(null===n||void 0===n||null===(a=n.props)||void 0===a?void 0:a.id)])||void 0===o?void 0:o.toString();i&&$x[r.rule](i,r.value)||e.push({...r,id:n.id})})),e}),[])})(t,n);e(TX,r,t,n)}}),[]),v=(e,t,n)=>{"function"===typeof s&&s(e,t,n)},b=(e,t)=>{const{type:n="",style:o={},className:a="",visible:i=!1,rules:l={}}=e,s=e.props||{},u=e.layout||{},d=f.map[n]||{},{options:p={}}=d;return(0,Tr.jsx)(Qr,{item:!0,style:o,...u,className:`${a} ${i?"show":"hidden"}`,children:(0,Tr.jsx)(IX,{map:d.map,option:p.type||"",control:e,attributes:s,rules:l,onChange:m,onStepUpdate:v,currentStep:c,patch:r},kx("dynamic-comp",t))},kx("layout-comp",t))};return(0,Tr.jsxs)(Tr.Fragment,{children:[(0,Tr.jsx)(Qr,{container:!0,...u,children:h.wrows.map(((t,n)=>(0,Tr.jsx)(e.Fragment,{children:t.map(b)},kx("row",n))))},kx("layout-grid")),h.worows.map(((e,t)=>(0,Tr.jsx)("div",{style:e.style||{},className:`${e.className||""} ${e.visible?"show":"hidden"}`,children:b(e,t)},kx("layout-comp",t)))),(0,Tr.jsx)("button",{"aria-label":"button",type:"button",ref:a,onClick:()=>g(i,n,o),style:{display:"none"}})]})}$X.defaultProps={patch:{},formRef:{},onSubmit:null,onChange:null,onStepChange:null,MuiGridAttributes:{spacing:2},activeStep:0}})()})();
185
- //# sourceMappingURL=main.c9bfd94c.js.map
184
+ `:null,ET=Ir("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:TT||{animation:`${IT} 1.4s linear infinite`}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{color:(t.vars||t).palette[n].main}}}))]}}))),DT=Ir("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OT=Ir("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${po(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(co((e=>{let{theme:t}=e;return{stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink},style:$T||{animation:`${AT} 1.4s ease-in-out infinite`}}]}}))),_T=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiCircularProgress"}),{className:r,color:a="primary",disableShrink:i=!1,size:l=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate",...p}=n,f={...n,color:a,disableShrink:i,size:l,thickness:u,value:c,variant:d},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return pe({root:["root",n,`color${po(r)}`],svg:["svg"],circle:["circle",`circle${po(n)}`,o&&"circleDisableShrink"]},RT,t)})(f),m={},g={},v={};if("determinate"===d){const e=2*Math.PI*((PT-u)/2);m.strokeDasharray=e.toFixed(3),v["aria-valuenow"]=Math.round(c),m.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return(0,Tr.jsx)(ET,{className:o(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...v,...p,children:(0,Tr.jsx)(DT,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:(0,Tr.jsx)(OT,{className:h.circle,style:m,ownerState:f,cx:PT,cy:PT,r:(PT-u)/2,fill:"none",strokeWidth:u})})})})),FT=_T,LT=["className"],jT=Yw("div",{name:"MuiDataGrid",slot:"Overlay",overridesResolver:(e,t)=>t.overlay})({width:"100%",height:"100%",display:"flex",alignSelf:"center",alignItems:"center",justifyContent:"center",backgroundColor:"var(--unstable_DataGrid-overlayBackground)"}),NT=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,LT),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["overlay"]},Dx,t)})(a);return(0,Tr.jsx)(jT,fe({ref:t,className:o(i.root,n),ownerState:a},r))})),zT=(e,t,n,r,o)=>{const a=o.hasScrollY?o.scrollbarSize:0;let i;switch(e){case Pw.LEFT:i=r[n];break;case Pw.RIGHT:i=o.columnsTotalWidth-r[n]-t+a;break;default:i=0}return i},BT=(e,t,n,r,o)=>{const a=t===n-1;return!(e!==Pw.LEFT||!a)||!!r&&(e===Pw.LEFT||(e===Pw.RIGHT?!a:!a||o))},HT=(e,t)=>e===Pw.RIGHT&&0===t,VT={root:Ox.scrollbarFiller,header:Ox["scrollbarFiller--header"],borderTop:Ox["scrollbarFiller--borderTop"],borderBottom:Ox["scrollbarFiller--borderBottom"],pinnedRight:Ox["scrollbarFiller--pinnedRight"]};function WT(e){let{header:t,borderTop:n=!0,borderBottom:r,pinnedRight:a}=e;return(0,Tr.jsx)("div",{role:"presentation",className:o(VT.root,t&&VT.header,n&&VT.borderTop,r&&VT.borderBottom,a&&VT.pinnedRight)})}const UT=Yw("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay",overridesResolver:(e,t)=>t.skeletonLoadingOverlay})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),GT=e=>parseInt(e.getAttribute("data-colindex"),10),KT=e.forwardRef((function(t,n){const r=rw(),{slots:a}=r,i=(e=>{const{classes:t}=e;return qu({root:["skeletonLoadingOverlay"]},Dx,t)})({classes:r.classes}),l=e.useRef(null),s=Ns(l,n),u=Uw(),c=Gx(u,Zx),d=c?.viewportInnerSize.height??0,p=Math.ceil(d/c.rowHeight),f=Gx(u,jw),h=Gx(u,Lw),m=e.useMemo((()=>h.filter((e=>e<=f)).length),[f,h]),g=Gx(u,Ow),v=e.useMemo((()=>g.slice(0,m)),[g,m]),b=Gx(u,Fw),y=e.useCallback(((e,t,n)=>{const r=zT(n,e,t,h,c);return{[n]:r}}),[c,h]),x=e.useCallback((e=>-1!==b.left.findIndex((t=>t.field===e))?Pw.LEFT:-1!==b.right.findIndex((t=>t.field===e))?Pw.RIGHT:void 0),[b.left,b.right]),w=e.useMemo((()=>{const e=[];for(let t=0;t<p;t+=1){const n=[];for(let e=0;e<v.length;e+=1){const i=v[e],l=x(i.field),s=l===Pw.LEFT,u=l===Pw.RIGHT,d=l?b[l].length:v.length-b.left.length-b.right.length,p=l?b[l].findIndex((e=>e.field===i.field)):e-b.left.length,f=l&&y(i.computedWidth,e,l),h=c.columnsTotalWidth<c.viewportOuterSize.width,m=BT(l,p,d,r.showCellVerticalBorder,h),g=HT(l,p),w=e===v.length-1,C=u&&0===p,S=C&&h,k=w&&!C&&h,M=c.viewportOuterSize.width-c.columnsTotalWidth,R=Math.max(0,M),P=(0,Tr.jsx)(a.skeletonCell,{width:R,empty:!0},`skeleton-filler-column-${t}`),I=c.hasScrollY?c.scrollbarSize:0,A=w&&0!==I;S&&n.push(P),n.push((0,Tr.jsx)(a.skeletonCell,{field:i.field,type:i.type,align:i.align,width:"var(--width)",height:c.rowHeight,"data-colindex":e,className:o(s&&Ox["cell--pinnedLeft"],u&&Ox["cell--pinnedRight"],m&&Ox["cell--withRightBorder"],g&&Ox["cell--withLeftBorder"]),style:fe({"--width":`${i.computedWidth}px`},f)},`skeleton-column-${t}-${i.field}`)),k&&n.push(P),A&&n.push((0,Tr.jsx)(WT,{pinnedRight:b.right.length>0},`skeleton-scrollbar-filler-${t}`))}e.push((0,Tr.jsx)("div",{className:o(Ox.row,Ox.rowSkeleton,0===t&&Ox["row--firstVisible"]),children:n},`skeleton-row-${t}`))}return e}),[a,v,b,p,r.showCellVerticalBorder,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,c.hasScrollY,c.scrollbarSize,x,y]);return tC(u,"columnResize",(e=>{const{colDef:t,width:n}=e,r=l.current?.querySelectorAll(`[data-field="${mI(t.field)}"]`);if(!r)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const o=v.findIndex((e=>e.field===t.field)),a=x(t.field),i=a===Pw.LEFT,s=a===Pw.RIGHT,u=getComputedStyle(r[0]).getPropertyValue("--width"),c=parseInt(u,10)-n;if(r&&r.forEach((e=>{e.style.setProperty("--width",`${n}px`)})),i){const e=l.current?.querySelectorAll(`.${Ox["cell--pinnedLeft"]}`);e?.forEach((e=>{GT(e)>o&&(e.style.left=parseInt(getComputedStyle(e).left,10)-c+"px")}))}if(s){const e=l.current?.querySelectorAll(`.${Ox["cell--pinnedRight"]}`);e?.forEach((e=>{GT(e)<o&&(e.style.right=`${parseInt(getComputedStyle(e).right,10)+c}px`)}))}})),(0,Tr.jsx)(UT,fe({className:i.root,ref:s},t,{children:w}))})),YT=["variant","noRowsVariant","style"],ZT={"circular-progress":{component:FT,style:{}},"linear-progress":{component:MT,style:{display:"block"}},skeleton:{component:KT,style:{display:"block"}}},qT=e.forwardRef((function(e,t){const{variant:n="circular-progress",noRowsVariant:r="circular-progress",style:o}=e,a=Ai(e,YT),i=Uw(),l=Gx(i,$S),s=ZT[0===l?r:n];return(0,Tr.jsx)(NT,fe({ref:t,style:fe({},s.style,o)},a,{children:(0,Tr.jsx)(s.component,{})}))})),XT=e.forwardRef((function(e,t){const n=Uw().current.getLocaleText("noRowsLabel");return(0,Tr.jsx)(NT,fe({ref:t},e,{children:n}))}));const QT=e.createContext();const JT=e.createContext();function e$(e){return Hr("MuiTableCell",e)}const t$=Vr("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),n$=Ir("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${po(n.size)}`],"normal"!==n.padding&&t[`padding${po(n.padding)}`],"inherit"!==n.align&&t[`align${po(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(co((e=>{let{theme:t}=e;return{...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid\n ${"light"===t.palette.mode?Mn(wn(t.palette.divider,1),.88):Sn(wn(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${t$.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:e=>{let{ownerState:t}=e;return t.stickyHeader},style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}}))),r$=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTableCell"}),{align:a="inherit",className:i,component:l,padding:s,scope:u,size:c,sortDirection:d,variant:p,...f}=r,h=e.useContext(QT),m=e.useContext(JT),g=m&&"head"===m.variant;let v;v=l||(g?"th":"td");let b=u;"td"===v?b=void 0:!b&&g&&(b="col");const y=p||m&&m.variant,x={...r,align:a,component:v,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:d,stickyHeader:"head"===y&&h&&h.stickyHeader,variant:y},w=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return pe({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${po(r)}`,"normal"!==o&&`padding${po(o)}`,`size${po(a)}`]},e$,t)})(x);let C=null;return d&&(C="asc"===d?"ascending":"descending"),(0,Tr.jsx)(n$,{as:v,ref:n,className:o(w.root,i),"aria-sort":C,scope:b,ownerState:x,...f})})),o$=r$;function a$(e){return Hr("MuiToolbar",e)}Vr("MuiToolbar",["root","gutters","regular","dense"]);const i$=Ir("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(co((e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}}))),l$=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiToolbar"}),{className:r,component:a="div",disableGutters:i=!1,variant:l="regular",...s}=n,u={...n,component:a,disableGutters:i,variant:l},c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return pe({root:["root",!n&&"gutters",r]},a$,t)})(u);return(0,Tr.jsx)(i$,{as:a,className:o(c.root,r),ref:t,ownerState:u,...s})})),s$=l$,u$=ms((0,Tr.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),c$=ms((0,Tr.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),d$=e.forwardRef((function(e,t){const{backIconButtonProps:n,count:r,disabled:o=!1,getItemAriaLabel:a,nextIconButtonProps:i,onPageChange:l,page:s,rowsPerPage:u,showFirstButton:c,showLastButton:d,slots:p={},slotProps:f={},...h}=e,m=ni(),g=p.firstButton??Fp,v=p.lastButton??Fp,b=p.nextButton??Fp,y=p.previousButton??Fp,x=p.firstButtonIcon??c$,w=p.lastButtonIcon??u$,C=p.nextButtonIcon??jv,S=p.previousButtonIcon??Lv,k=m?v:g,M=m?b:y,R=m?y:b,P=m?g:v,I=m?f.lastButton:f.firstButton,A=m?f.nextButton:f.previousButton,T=m?f.previousButton:f.nextButton,$=m?f.firstButton:f.lastButton;return(0,Tr.jsxs)("div",{ref:t,...h,children:[c&&(0,Tr.jsx)(k,{onClick:e=>{l(e,0)},disabled:o||0===s,"aria-label":a("first",s),title:a("first",s),...I,children:m?(0,Tr.jsx)(w,{...f.lastButtonIcon}):(0,Tr.jsx)(x,{...f.firstButtonIcon})}),(0,Tr.jsx)(M,{onClick:e=>{l(e,s-1)},disabled:o||0===s,color:"inherit","aria-label":a("previous",s),title:a("previous",s),...A??n,children:m?(0,Tr.jsx)(C,{...f.nextButtonIcon}):(0,Tr.jsx)(S,{...f.previousButtonIcon})}),(0,Tr.jsx)(R,{onClick:e=>{l(e,s+1)},disabled:o||-1!==r&&s>=Math.ceil(r/u)-1,color:"inherit","aria-label":a("next",s),title:a("next",s),...T??i,children:m?(0,Tr.jsx)(S,{...f.previousButtonIcon}):(0,Tr.jsx)(C,{...f.nextButtonIcon})}),d&&(0,Tr.jsx)(P,{onClick:e=>{l(e,Math.max(0,Math.ceil(r/u)-1))},disabled:o||s>=Math.ceil(r/u)-1,"aria-label":a("last",s),title:a("last",s),...$,children:m?(0,Tr.jsx)(x,{...f.firstButtonIcon}):(0,Tr.jsx)(w,{...f.lastButtonIcon})})]})})),p$=_o;function f$(e){return Hr("MuiTablePagination",e)}const h$=Vr("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var m$;const g$=Ir(o$,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(co((e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}}))),v$=Ir(s$,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${h$.actions}`]:t.actions,...t.toolbar})})(co((e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${h$.actions}`]:{flexShrink:0,marginLeft:20}}}))),b$=Ir("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),y$=Ir("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(co((e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}}))),x$=Ir(Cs,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${h$.selectIcon}`]:t.selectIcon,[`& .${h$.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${h$.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),w$=Ir(xy,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),C$=Ir("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(co((e=>{let{theme:t}=e;return{...t.typography.body2,flexShrink:0}})));function S$(e){let{from:t,to:n,count:r}=e;return`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`}function k$(e){return`Go to ${e} page`}const M$=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTablePagination"}),{ActionsComponent:a=d$,backIconButtonProps:i,className:l,colSpan:s,component:u=o$,count:c,disabled:d=!1,getItemAriaLabel:p=k$,labelDisplayedRows:f=S$,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:m,onPageChange:g,onRowsPerPageChange:v,page:b,rowsPerPage:y,rowsPerPageOptions:x=[10,25,50,100],SelectProps:w={},showFirstButton:C=!1,showLastButton:S=!1,slotProps:k={},slots:M={},...R}=r,P=r,I=(e=>{const{classes:t}=e;return pe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},f$,t)})(P),A=k?.select??w,T=A.native?"option":w$;let $;u!==o$&&"td"!==u||($=s||1e3);const E=p$(A.id),D=p$(A.labelId);return(0,Tr.jsx)(g$,{colSpan:$,ref:n,as:u,ownerState:P,className:o(I.root,l),...R,children:(0,Tr.jsxs)(v$,{className:I.toolbar,children:[(0,Tr.jsx)(b$,{className:I.spacer}),x.length>1&&(0,Tr.jsx)(y$,{className:I.selectLabel,id:D,children:h}),x.length>1&&(0,Tr.jsx)(x$,{variant:"standard",...!A.variant&&{input:m$||(m$=(0,Tr.jsx)(ua,{}))},value:y,onChange:v,id:E,labelId:D,...A,classes:{...A.classes,root:o(I.input,I.selectRoot,(A.classes||{}).root),select:o(I.select,(A.classes||{}).select),icon:o(I.selectIcon,(A.classes||{}).icon)},disabled:d,children:x.map((t=>(0,e.createElement)(T,{...!Go(T)&&{ownerState:P},className:I.menuItem,key:t.label?t.label:t,value:t.value?t.value:t},t.label?t.label:t)))}),(0,Tr.jsx)(C$,{className:I.displayedRows,children:f({from:0===c?0:b*y+1,to:-1===c?(b+1)*y:-1===y?c:Math.min(c,(b+1)*y),count:-1===c?-1:c,page:b})}),(0,Tr.jsx)(a,{className:I.actions,backIconButtonProps:i,count:c,nextIconButtonProps:m,onPageChange:g,page:b,rowsPerPage:y,showFirstButton:C,showLastButton:S,slotProps:k.actions,slots:M.actions,getItemAriaLabel:p,disabled:d})]})})})),R$=Ir(M$)((e=>{let{theme:t}=e;return{maxHeight:"calc(100% + 1px)",flexGrow:1,[`& .${h$.selectLabel}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"block"}},[`& .${h$.input}`]:{display:"none",[t.breakpoints.up("sm")]:{display:"inline-flex"}}}})),P$=e=>{let{from:t,to:n,count:r,estimated:o}=e;return o?`${t}\u2013${n} of ${-1!==r?r:`more than ${o>n?o:n}`}`:`${t}\u2013${n} of ${-1!==r?r:`more than ${n}`}`},I$=e.forwardRef((function(t,n){const r=Uw(),o=rw(),a=Gx(r,zM),i=Gx(r,BM),l=Gx(r,UM),{paginationMode:s,loading:u,estimatedRowCount:c}=o,d=e.useMemo((()=>-1===i&&"server"===s&&u?{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}:{}),[u,s,i]),p=e.useMemo((()=>Math.max(0,l-1)),[l]),f=e.useMemo((()=>-1===i||a.page<=p?a.page:p),[p,a.page,i]),h=e.useCallback((e=>{const t=Number(e.target.value);r.current.setPageSize(t)}),[r]),m=e.useCallback(((e,t)=>{r.current.setPage(t)}),[r]);const g=(e=>{for(let t=0;t<o.pageSizeOptions.length;t+=1){const n=o.pageSizeOptions[t];if("number"===typeof n){if(n===e)return!0}else if(n.value===e)return!0}return!1})(a.pageSize)?o.pageSizeOptions:[],v=r.current.getLocaleText("MuiTablePagination"),b=(y=v.labelDisplayedRows||P$,x=c,e=>{let{from:t,to:n,count:r,page:o}=e;return y({from:t,to:n,count:r,page:o,estimated:x})});var y,x;return(0,Tr.jsx)(R$,fe({ref:n,component:"div",count:i,page:f,rowsPerPageOptions:g,rowsPerPage:a.pageSize,onPageChange:m,onRowsPerPageChange:h},d,v,{labelDisplayedRows:b},t))})),A$=["className"],T$=Yw("div",{name:"MuiDataGrid",slot:"PanelContent",overridesResolver:(e,t)=>t.panelContent})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400});function $$(e){const{className:t}=e,n=Ai(e,A$),r=rw(),a=(e=>{const{classes:t}=e;return qu({root:["panelContent"]},Dx,t)})(r);return(0,Tr.jsx)(T$,fe({className:o(a.root,t),ownerState:r},n))}const E$=["className"],D$=Yw("div",{name:"MuiDataGrid",slot:"PanelFooter",overridesResolver:(e,t)=>t.panelFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5),display:"flex",justifyContent:"space-between"}}));function O$(e){const{className:t}=e,n=Ai(e,E$),r=rw(),a=(e=>{const{classes:t}=e;return qu({root:["panelFooter"]},Dx,t)})(r);return(0,Tr.jsx)(D$,fe({className:o(a.root,t),ownerState:r},n))}const _$=["className","slotProps"],F$=Ir("div",{name:"MuiDataGrid",slot:"PanelWrapper",overridesResolver:(e,t)=>t.panelWrapper})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),L$=()=>!0,j$=e.forwardRef((function(e,t){const{className:n,slotProps:r={}}=e,a=Ai(e,_$),i=rw(),l=(e=>{const{classes:t}=e;return qu({root:["panelWrapper"]},Dx,t)})(i);return(0,Tr.jsx)(el,fe({open:!0,disableEnforceFocus:!0,isEnabled:L$},r.TrapFocus,{children:(0,Tr.jsx)(F$,fe({ref:t,tabIndex:-1,className:o(l.root,n),ownerState:i},a))}))})),N$=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],z$=["InputComponentProps"],B$=Ir("div",{name:"MuiDataGrid",slot:"FilterForm",overridesResolver:(e,t)=>t.filterForm})((e=>{let{theme:t}=e;return{display:"flex",padding:t.spacing(1)}})),H$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon",overridesResolver:(e,t)=>t.filterFormDeleteIcon})((e=>{let{theme:t}=e;return{flexShrink:0,justifyContent:"flex-end",marginRight:t.spacing(.5),marginBottom:t.spacing(.2)}})),V$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput",overridesResolver:(e,t)=>t.filterFormLogicOperatorInput})({minWidth:55,marginRight:5,justifyContent:"end"}),W$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput",overridesResolver:(e,t)=>t.filterFormColumnInput})({width:150}),U$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput",overridesResolver:(e,t)=>t.filterFormOperatorInput})({width:150}),G$=Ir("div",{name:"MuiDataGrid",slot:"FilterFormValueInput",overridesResolver:(e,t)=>t.filterFormValueInput})({width:190}),K$=e=>e.headerName||e.field,Y$=new Intl.Collator,Z$=e.forwardRef((function(t,n){const{item:r,hasMultipleFilters:a,deleteFilter:i,applyFilterChanges:l,showMultiFilterOperators:s,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:c,focusElementRef:d,logicOperators:p=[XC.And,XC.Or],columnsSort:f,filterColumns:h,deleteIconProps:m={},logicOperatorInputProps:g={},operatorInputProps:v={},columnInputProps:b={},valueInputProps:y={},readOnly:x}=t,w=Ai(t,N$),C=Uw(),S=Gx(C,$w),k=Gx(C,Nw),M=Gx(C,kM),R=Ys(),P=Ys(),I=Ys(),A=Ys(),T=rw(),$=(e=>{const{classes:t}=e;return qu({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Dx,t)})(T),E=e.useRef(null),D=e.useRef(null),O=M.logicOperator??XC.And,_=a&&p.length>0,F=T.slotProps?.baseFormControl||{},L=(T.slotProps?.baseSelect||{}).native??!1,j=T.slotProps?.baseInputLabel||{},N=T.slotProps?.baseSelectOption||{},{InputComponentProps:z}=y,B=Ai(y,z$),{filteredColumns:H,selectedField:V}=e.useMemo((()=>{let e=r.field;const t=!1===S[r.field].filterable?S[r.field]:null;if(t)return{filteredColumns:[t],selectedField:e};if(void 0===h||"function"!==typeof h)return{filteredColumns:k,selectedField:e};const n=h({field:r.field,columns:k,currentFilters:M?.items||[]});return{filteredColumns:k.filter((t=>{const o=n.includes(t.field);return t.field!==r.field||o||(e=void 0),o})),selectedField:e}}),[h,M?.items,k,r.field,S]),W=e.useMemo((()=>{switch(f){case"asc":return H.sort(((e,t)=>Y$.compare(K$(e),K$(t))));case"desc":return H.sort(((e,t)=>-Y$.compare(K$(e),K$(t))));default:return H}}),[H,f]),U=r.field?C.current.getColumn(r.field):null,G=e.useMemo((()=>r.operator&&U?U.filterOperators?.find((e=>e.value===r.operator)):null),[r,U]),K=e.useCallback((e=>{const t=e.target.value,n=C.current.getColumn(t);if(n.field===U.field)return;const o=n.filterOperators.find((e=>e.value===r.operator))||n.filterOperators[0];let a=!o.InputComponent||o.InputComponent!==G?.InputComponent||n.type!==U.type?void 0:r.value;if("singleSelect"===n.type&&void 0!==a){const e=n,t=xk(e);Array.isArray(a)?a=a.filter((n=>void 0!==wk(n,t,e?.getOptionValue))):void 0===wk(r.value,t,e?.getOptionValue)&&(a=void 0)}l(fe({},r,{field:t,operator:o.value,value:a}))}),[C,l,r,U,G]),Y=e.useCallback((e=>{const t=e.target.value,n=U?.filterOperators.find((e=>e.value===t));l(fe({},r,{operator:t,value:!n?.InputComponent||n?.InputComponent!==G?.InputComponent?void 0:r.value}))}),[l,r,U,G]),Z=e.useCallback((e=>{const t=e.target.value===XC.And.toString()?XC.And:XC.Or;c(t)}),[c]);return e.useImperativeHandle(d,(()=>({focus:()=>{G?.InputComponent?E?.current?.focus():D.current.focus()}})),[G]),(0,Tr.jsxs)(B$,fe({ref:n,className:$.root,"data-id":r.id,ownerState:T},w,{children:[(0,Tr.jsx)(H$,fe({variant:"standard",as:T.slots.baseFormControl},F,m,{className:o($.deleteIcon,F.className,m.className),ownerState:T,children:(0,Tr.jsx)(T.slots.baseIconButton,fe({"aria-label":C.current.getLocaleText("filterPanelDeleteIconLabel"),title:C.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:()=>{i(r)},size:"small",disabled:x},T.slotProps?.baseIconButton,{children:(0,Tr.jsx)(T.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),(0,Tr.jsx)(V$,fe({variant:"standard",as:T.slots.baseFormControl},F,g,{sx:[_?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},F.sx,g.sx],className:o($.logicOperatorInput,F.className,g.className),ownerState:T,children:(0,Tr.jsx)(T.slots.baseSelect,fe({inputProps:{"aria-label":C.current.getLocaleText("filterPanelLogicOperator")},value:O??"",onChange:Z,disabled:!!u||1===p.length,native:L},T.slotProps?.baseSelect,{children:p.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.toString(),value:t.toString()}),C.current.getLocaleText((e=>{switch(e){case XC.And:return"filterPanelOperatorAnd";case XC.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}})(t)))))}))})),(0,Tr.jsxs)(W$,fe({variant:"standard",as:T.slots.baseFormControl},F,b,{className:o($.columnInput,F.className,b.className),ownerState:T,children:[(0,Tr.jsx)(T.slots.baseInputLabel,fe({},j,{htmlFor:R,id:P,children:C.current.getLocaleText("filterPanelColumns")})),(0,Tr.jsx)(T.slots.baseSelect,fe({labelId:P,id:R,label:C.current.getLocaleText("filterPanelColumns"),value:V??"",onChange:K,native:L,disabled:x},T.slotProps?.baseSelect,{children:W.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.field,value:t.field}),K$(t))))}))]})),(0,Tr.jsxs)(U$,fe({variant:"standard",as:T.slots.baseFormControl},F,v,{className:o($.operatorInput,F.className,v.className),ownerState:T,children:[(0,Tr.jsx)(T.slots.baseInputLabel,fe({},j,{htmlFor:I,id:A,children:C.current.getLocaleText("filterPanelOperator")})),(0,Tr.jsx)(T.slots.baseSelect,fe({labelId:A,label:C.current.getLocaleText("filterPanelOperator"),id:I,value:r.operator,onChange:Y,native:L,inputRef:D,disabled:x},T.slotProps?.baseSelect,{children:U?.filterOperators?.map((t=>(0,e.createElement)(T.slots.baseSelectOption,fe({},N,{native:L,key:t.value,value:t.value}),t.label||C.current.getLocaleText(`filterOperator${of(t.value)}`))))}))]})),(0,Tr.jsx)(G$,fe({variant:"standard",as:T.slots.baseFormControl},F,B,{className:o($.valueInput,F.className,B.className),ownerState:T,children:G?.InputComponent?(0,Tr.jsx)(G.InputComponent,fe({apiRef:C,item:r,applyValue:l,focusElementRef:E,disabled:x},G.InputComponentProps,z),r.field):null}))]}))})),q$=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],X$=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(1e5*Math.random())}),Q$=e.forwardRef((function(t,n){const r=Uw(),o=rw(),a=Gx(r,kM),i=Gx(r,Nw),l=Gx(r,zw),s=e.useRef(null),u=e.useRef(null),{logicOperators:c=[XC.And,XC.Or],columnsSort:d,filterFormProps:p,getColumnForNewFilter:f,disableAddFilterButton:h=!1,disableRemoveAllButton:m=!1}=t,g=Ai(t,q$),v=r.current.upsertFilterItem,b=e.useCallback((e=>{r.current.setFilterLogicOperator(e)}),[r]),y=e.useCallback((()=>{let e;if(f&&"function"===typeof f){const t=f({currentFilters:a?.items||[],columns:i});if(null===t)return null;e=i.find((e=>{let{field:n}=e;return n===t}))}else e=i.find((e=>e.filterOperators?.length));return e?X$(e):null}),[a?.items,i,f]),x=e.useCallback((()=>{if(void 0===f||"function"!==typeof f)return y();const e=a.items.length?a.items:[y()].filter(Boolean),t=f({currentFilters:e,columns:i});if(null===t)return null;const n=i.find((e=>{let{field:n}=e;return n===t}));return n?X$(n):null}),[a.items,i,f,y]),w=e.useMemo((()=>a.items.length?a.items:(u.current||(u.current=y()),u.current?[u.current]:[])),[a.items,y]),C=w.length>1,{readOnlyFilters:S,validFilters:k}=e.useMemo((()=>w.reduce(((e,t)=>(l[t.field]?e.validFilters.push(t):e.readOnlyFilters.push(t),e)),{readOnlyFilters:[],validFilters:[]})),[w,l]),M=e.useCallback((()=>{const e=x();e&&r.current.upsertFilterItems([...w,e])}),[r,x,w]),R=e.useCallback((e=>{const t=1===k.length;r.current.deleteFilterItem(e),t&&r.current.hideFilterPanel()}),[r,k.length]),P=e.useCallback((()=>1===k.length&&void 0===k[0].value?(r.current.deleteFilterItem(k[0]),r.current.hideFilterPanel()):r.current.setFilterModel(fe({},a,{items:S}),"removeAllFilterItems")),[r,S,a,k]);return e.useEffect((()=>{c.length>0&&a.logicOperator&&!c.includes(a.logicOperator)&&b(c[0])}),[c,b,a.logicOperator]),e.useEffect((()=>{k.length>0&&s.current.focus()}),[k.length]),(0,Tr.jsxs)(j$,fe({ref:n},g,{children:[(0,Tr.jsxs)($$,{children:[S.map(((e,t)=>(0,Tr.jsx)(Z$,fe({item:e,applyFilterChanges:v,deleteFilter:R,hasMultipleFilters:C,showMultiFilterOperators:t>0,disableMultiFilterOperator:1!==t,applyMultiFilterOperatorChanges:b,focusElementRef:null,readOnly:!0,logicOperators:c,columnsSort:d},p),null==e.id?t:e.id))),k.map(((e,t)=>(0,Tr.jsx)(Z$,fe({item:e,applyFilterChanges:v,deleteFilter:R,hasMultipleFilters:C,showMultiFilterOperators:S.length+t>0,disableMultiFilterOperator:S.length+t!==1,applyMultiFilterOperatorChanges:b,focusElementRef:t===k.length-1?s:null,logicOperators:c,columnsSort:d},p),null==e.id?t+S.length:e.id)))]}),o.disableMultipleColumnsFiltering||h&&m?null:(0,Tr.jsxs)(O$,{children:[h?(0,Tr.jsx)("span",{}):(0,Tr.jsx)(o.slots.baseButton,fe({onClick:M,startIcon:(0,Tr.jsx)(o.slots.filterPanelAddIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!m&&k.length>0?(0,Tr.jsx)(o.slots.baseButton,fe({onClick:P,startIcon:(0,Tr.jsx)(o.slots.filterPanelRemoveAllIcon,{})},o.slotProps?.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]})]}))}));function J$(e){return Hr("MuiFormControlLabel",e)}const eE=Vr("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),tE=Ir("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eE.label}`]:t.label},t.root,t[`labelPlacement${po(n.labelPlacement)}`]]}})(co((e=>{let{theme:t}=e;return{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eE.disabled}`]:{cursor:"default"},[`& .${eE.label}`]:{[`&.${eE.disabled}`]:{color:(t.vars||t).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:e=>{let{labelPlacement:t}=e;return"start"===t||"top"===t||"bottom"===t},style:{marginLeft:16}}]}}))),nE=Ir("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(co((e=>{let{theme:t}=e;return{[`&.${eE.error}`]:{color:(t.vars||t).palette.error.main}}}))),rE=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiFormControlLabel"}),{checked:a,className:i,componentsProps:l={},control:s,disabled:u,disableTypography:c,inputRef:d,label:p,labelPlacement:f="end",name:h,onChange:m,required:g,slots:v={},slotProps:b={},value:y,...x}=r,w=Zo(),C=u??s.props.disabled??w?.disabled,S=g??s.props.required,k={disabled:C,required:S};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof s.props[e]&&"undefined"!==typeof r[e]&&(k[e]=r[e])}));const M=Ko({props:r,muiFormControl:w,states:["error"]}),R={...r,disabled:C,labelPlacement:f,required:S,error:M.error},P=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return pe({root:["root",n&&"disabled",`labelPlacement${po(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},J$,t)})(R),I={slots:v,slotProps:{...l,...b}},[A,T]=nl("typography",{elementType:wo,externalForwardedProps:I,ownerState:R});let $=p;return null==$||$.type===wo||c||($=(0,Tr.jsx)(A,{component:"span",...T,className:o(P.label,T?.className),children:$})),(0,Tr.jsxs)(tE,{className:o(P.root,i),ownerState:R,ref:n,...x,children:[e.cloneElement(s,k),S?(0,Tr.jsxs)("div",{children:[$,(0,Tr.jsxs)(nE,{ownerState:R,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):$]})})),oE=rE,aE=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,iE=new Intl.Collator;function lE(t){const n=Uw(),r=e.useRef(null),o=Gx(n,Ew),a=jx((()=>Dw(n))).current,i=Gx(n,Dw),l=rw(),[s,u]=e.useState(""),c=(e=>{const{classes:t}=e;return qu({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Dx,t)})(l),{sort:d,searchPredicate:p=aE,autoFocusSearchField:f=!0,disableShowHideToggle:h=!1,disableResetButton:m=!1,toggleAllMode:g="all",getTogglableColumns:v,searchInputProps:b}=t,y=e.useMemo((()=>((e,t)=>{const n=new Set(Object.keys(e).filter((t=>!1===e[t]))),r=new Set(Object.keys(t).filter((e=>!1===t[e])));if(n.size!==r.size)return!1;let o=!0;return n.forEach((e=>{r.has(e)||(o=!1)})),o})(i,a)),[i,a]),x=e.useMemo((()=>{switch(d){case"asc":return[...o].sort(((e,t)=>iE.compare(e.headerName||e.field,t.headerName||t.field)));case"desc":return[...o].sort(((e,t)=>-iE.compare(e.headerName||e.field,t.headerName||t.field)));default:return o}}),[o,d]),w=e=>{const{name:t}=e.target;n.current.setColumnVisibility(t,!1===i[t])},C=e.useMemo((()=>{const e=v?v(x):null,t=e?x.filter((t=>{let{field:n}=t;return e.includes(n)})):x;return s?t.filter((e=>p(e,s.toLowerCase()))):t}),[x,s,p,v]),S=e.useCallback((e=>{const t=fe({},Dw(n)),r=v?v(o):null;return("filteredOnly"===g?C:o).forEach((n=>{n.hideable&&(null==r||r.includes(n.field))&&(e?delete t[n.field]:t[n.field]=!1)})),n.current.setColumnVisibilityModel(t)}),[n,o,v,g,C]),k=e.useCallback((e=>{u(e.target.value)}),[]),M=e.useMemo((()=>C.filter((e=>e.hideable))),[C]),R=e.useMemo((()=>M.every((e=>null==i[e.field]||!1!==i[e.field]))),[i,M]),P=e.useMemo((()=>M.every((e=>!1===i[e.field]))),[i,M]),I=e.useRef(null);e.useEffect((()=>{f?r.current.focus():I.current&&"function"===typeof I.current.focus&&I.current.focus()}),[f]);let A=!1;const T=e=>!1===A&&!1!==e.hideable&&(A=!0,!0),$=e.useCallback((()=>{u(""),r.current.focus()}),[]);return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(uE,{className:c.header,ownerState:l,children:(0,Tr.jsx)(cE,fe({as:l.slots.baseTextField,ownerState:l,placeholder:n.current.getLocaleText("columnsManagementSearchTitle"),inputRef:r,className:c.searchInput,value:s,onChange:k,variant:"outlined",size:"small",type:"search",InputProps:{startAdornment:(0,Tr.jsx)(l.slots.baseInputAdornment,{position:"start",children:(0,Tr.jsx)(l.slots.quickFilterIcon,{})}),endAdornment:(0,Tr.jsx)(l.slots.baseIconButton,fe({"aria-label":n.current.getLocaleText("columnsManagementDeleteIconLabel"),size:"small",sx:[s?{visibility:"visible"}:{visibility:"hidden"}],tabIndex:-1,onClick:$},l.slotProps?.baseIconButton,{children:(0,Tr.jsx)(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},inputProps:{"aria-label":n.current.getLocaleText("columnsManagementSearchTitle")},autoComplete:"off",fullWidth:!0},l.slotProps?.baseTextField,b))}),(0,Tr.jsxs)(sE,{className:c.root,ownerState:l,children:[C.map((e=>(0,Tr.jsx)(oE,{className:c.row,control:(0,Tr.jsx)(l.slots.baseCheckbox,fe({disabled:!1===e.hideable,checked:!1!==i[e.field],onClick:w,name:e.field,sx:{p:.5},inputRef:T(e)?I:void 0},l.slotProps?.baseCheckbox)),label:e.headerName||e.field},e.field))),0===C.length&&(0,Tr.jsx)(pE,{ownerState:l,children:n.current.getLocaleText("columnsManagementNoColumns")})]}),h&&m||!(C.length>0)?null:(0,Tr.jsxs)(dE,{ownerState:l,className:c.footer,children:[h?(0,Tr.jsx)("span",{}):(0,Tr.jsx)(oE,{control:(0,Tr.jsx)(l.slots.baseCheckbox,fe({disabled:0===M.length,checked:R,indeterminate:!R&&!P,onClick:()=>S(!R),name:n.current.getLocaleText("columnsManagementShowHideAllText"),sx:{p:.5}},l.slotProps?.baseCheckbox)),label:n.current.getLocaleText("columnsManagementShowHideAllText")}),m?null:(0,Tr.jsx)(l.slots.baseButton,fe({onClick:()=>n.current.setColumnVisibilityModel(a),disabled:y},l.slotProps?.baseButton,{children:n.current.getLocaleText("columnsManagementReset")}))]})]})}const sE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagement",overridesResolver:(e,t)=>t.columnsManagement})((e=>{let{theme:t}=e;return{padding:t.spacing(0,3,1.5),display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,alignItems:"flex-start"}})),uE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader",overridesResolver:(e,t)=>t.columnsManagementHeader})((e=>{let{theme:t}=e;return{padding:t.spacing(1.5,3)}})),cE=Ir(Ps,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput",overridesResolver:(e,t)=>t.columnsManagementSearchInput})((e=>{let{theme:t}=e;return{[`& .${ta.root}`]:{padding:t.spacing(0,1.5,0,1.5)},[`& .${ta.input}::-webkit-search-decoration,\n & .${ta.input}::-webkit-search-cancel-button,\n & .${ta.input}::-webkit-search-results-button,\n & .${ta.input}::-webkit-search-results-decoration`]:{display:"none"}}})),dE=Ir("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter",overridesResolver:(e,t)=>t.columnsManagementFooter})((e=>{let{theme:t}=e;return{padding:t.spacing(.5,1,.5,3),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${t.palette.divider}`}})),pE=Ir("div")((e=>{let{theme:t}=e;return{padding:t.spacing(.5,0),color:t.palette.grey[500]}}));const fE=["children","className","classes"],hE=tc("MuiDataGrid",["panel","paper"]),mE=Ir(iv,{name:"MuiDataGrid",slot:"Panel",overridesResolver:(e,t)=>t.panel})((e=>{let{theme:t}=e;return{zIndex:t.zIndex.modal}})),gE=Ir(Pl,{name:"MuiDataGrid",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,minWidth:300,maxHeight:450,display:"flex",maxWidth:`calc(100vw - ${t.spacing(.5)})`,overflow:"auto"}})),vE=e.forwardRef(((t,n)=>{const{children:r,className:a}=t,i=Ai(t,fE),l=Uw(),s=rw(),u=hE,[c,d]=e.useState(!1),p=e.useCallback((()=>{l.current.hidePreferences()}),[l]),f=e.useCallback((e=>{"Escape"===e.key&&l.current.hidePreferences()}),[l]),h=e.useMemo((()=>[{name:"flip",enabled:!0,options:{rootBoundary:"document"}},{name:"isPlaced",enabled:!0,phase:"main",fn:()=>{d(!0)},effect:()=>()=>{d(!1)}}]),[]),[m,g]=e.useState(null);return e.useEffect((()=>{const e=l.current.rootElementRef?.current?.querySelector('[data-id="gridPanelAnchor"]');e&&g(e)}),[l]),m?(0,Tr.jsx)(mE,fe({ref:n,placement:"bottom-start",className:o(u.panel,a),ownerState:s,anchorEl:m,modifiers:h},i,{children:(0,Tr.jsx)(Fk,{mouseEvent:"onMouseUp",onClickAway:p,children:(0,Tr.jsx)(gE,{className:u.paper,ownerState:s,elevation:8,onKeyDown:f,children:c&&r})})})):null}));let bE;const yE=["column","rowId","editCellState","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","sectionIndex","sectionLength","gridHasFiller","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],xE=["changeReason","unstable_updateValueOnRender"];let wE=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const CE={[wE.LEFT]:Pw.LEFT,[wE.RIGHT]:Pw.RIGHT,[wE.NONE]:void 0,[wE.VIRTUAL]:void 0},SE={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:vk.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}};const kE=e.forwardRef((function(t,n){const{column:r,rowId:a,editCellState:i,align:l,colIndex:s,width:u,className:c,style:d,colSpan:p,disableDragEvents:f,isNotVisible:h,pinnedOffset:m,pinnedPosition:g,sectionIndex:v,sectionLength:b,gridHasFiller:y,onClick:x,onDoubleClick:w,onMouseDown:C,onMouseUp:S,onMouseOver:k,onKeyDown:M,onKeyUp:R,onDragEnter:P,onDragOver:I}=t,A=Ai(t,yE),T=Uw(),$=rw(),E=ni(),D=r.field,O=Gx(T,(()=>{if(!T.current.getRow(a))return SE;const e=T.current.getCellParams(a,D);return e.api=T.current,e}),Wx),_=Gx(T,(()=>T.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:a,field:D}))),F=Gx(T,pR),L=Gx(T,fR),{cellMode:j,hasFocus:N,isEditable:z=!1,value:B}=O,H="actions"===r.type&&r.getActions?.(T.current.getRowParams(a)).some((e=>!e.props.disabled)),V="view"!==j&&z||H?-1:O.tabIndex,{classes:W,getCellClassName:U}=$,G=[Gx(T,(()=>T.current.unstable_applyPipeProcessors("cellClassName",[],{id:a,field:D}).filter(Boolean).join(" ")))];r.cellClassName&&G.push("function"===typeof r.cellClassName?r.cellClassName(O):r.cellClassName),"flex"===r.display&&G.push(Ox["cell--flex"]),U&&G.push(U(O));const K=O.formattedValue??B,Y=e.useRef(null),Z=Ns(n,Y),q=e.useRef(null),X=$.cellSelection??!1,Q=CE[g],J=(e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:a,isSelected:i,isSelectionMode:l,classes:s}=e;return qu({root:["cell",`cell--text${of(t)}`,i&&"selected",a&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===wE.LEFT&&"cell--pinnedLeft",o===wE.RIGHT&&"cell--pinnedRight",l&&!a&&"cell--selectionMode"]},Dx,s)})({align:l,showLeftBorder:HT(Q,v),showRightBorder:BT(Q,v,b,$.showCellVerticalBorder,y),isEditable:z,classes:$.classes,pinnedPosition:g,isSelected:_,isSelectionMode:X}),ee=e.useCallback((e=>t=>{const n=T.current.getCellParams(a,D||"");T.current.publishEvent(e,n,t),S&&S(t)}),[T,D,S,a]),te=e.useCallback((e=>t=>{const n=T.current.getCellParams(a,D||"");T.current.publishEvent(e,n,t),C&&C(t)}),[T,D,C,a]),ne=e.useCallback(((e,t)=>n=>{if(!T.current.getRow(a))return;const r=T.current.getCellParams(a,D||"");T.current.publishEvent(e,r,n),t&&t(n)}),[T,D,a]),re=F[a]?.[D]??!1,oe=L[a]?.[D]??1,ae=e.useMemo((()=>{if(h)return{padding:0,opacity:0,width:0,height:0,border:0};const e=fe({"--width":`${u}px`},d),t=g===wE.LEFT,n=g===wE.RIGHT;if(t||n){let n=t?"left":"right";E&&(n=t?"right":"left"),e[n]=m}return oe>1&&(e.height=`calc(var(--height) * ${oe})`,e.zIndex=5,(t||n)&&(e.zIndex=6)),e}),[u,h,d,m,g,E,oe]);if(e.useEffect((()=>{if(!N||j===vk.Edit)return;const e=lv(T.current.rootElementRef.current);if(Y.current&&!Y.current.contains(e.activeElement)){const e=Y.current.querySelector('[tabindex="0"]'),t=q.current||e||Y.current;if(void 0===bE&&document.createElement("div").focus({get preventScroll(){return bE=!0,!1}}),bE)t.focus({preventScroll:!0});else{const e=T.current.getScrollPosition();t.focus(),T.current.scroll(e)}}}),[N,j,T]),re)return(0,Tr.jsx)("div",{"data-colindex":s,role:"presentation",style:fe({width:"var(--width)"},ae)});if(O===SE)return null;let ie,le,se=A.onFocus;if(null===i&&r.renderCell&&(ie=r.renderCell(O)),null!==i&&r.renderEditCell){const e=T.current.getRowWithUpdatedValues(a,r.field),t=Ai(i,xE),n=fe({},O,{row:e,formattedValue:r.valueFormatter?r.valueFormatter(i.value,e,r,T):O.formattedValue},t);ie=r.renderEditCell(n),G.push(Ox["cell--editing"]),G.push(W?.["cell--editing"])}if(void 0===ie){const e=K?.toString();ie=e,le=e}e.isValidElement(ie)&&H&&(ie=e.cloneElement(ie,{focusElementRef:q}));const ue=f?null:{onDragEnter:ne("cellDragEnter",P),onDragOver:ne("cellDragOver",I)};return(0,Tr.jsx)("div",fe({ref:Z,className:o(J.root,G,c),role:"gridcell","data-field":D,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":p,"aria-rowspan":oe,style:ae,title:le,tabIndex:V,onClick:ne("cellClick",x),onDoubleClick:ne("cellDoubleClick",w),onMouseOver:ne("cellMouseOver",k),onMouseDown:te("cellMouseDown"),onMouseUp:ee("cellMouseUp"),onKeyDown:ne("cellKeyDown",M),onKeyUp:ne("cellKeyUp",R)},ue,A,{onFocus:se,children:ie}))})),ME=Zw(kE),RE=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetTop","offsetLeft","dimensions","renderContext","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","tabbableCell","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"];function PE(e){let{width:t}=e;return t?(0,Tr.jsx)("div",{role:"presentation",className:o(Ox.cell,Ox.cellEmpty),style:{"--width":`${t}px`}}):null}const IE=e.forwardRef((function(t,n){const{selected:r,rowId:a,row:i,index:l,style:s,rowHeight:u,className:c,visibleColumns:d,pinnedColumns:p,offsetLeft:f,dimensions:h,renderContext:m,focusedColumnIndex:g,isFirstVisible:v,isLastVisible:b,isNotVisible:y,showBottomBorder:x,onClick:w,onDoubleClick:C,onMouseEnter:S,onMouseLeave:k,onMouseOut:M,onMouseOver:R}=t,P=Ai(t,RE),I=Yx(),A=_R(),T=e.useRef(null),$=rw(),E=qM(I,$),D=Gx(I,wM),O=Gx(I,zS),_=Gx(I,Lw),F=Gx(I,AI),L=Ns(T,n),j=I.current.getRowNode(a),N=h.hasScrollY?h.scrollbarSize:0,z=h.columnsTotalWidth<h.viewportOuterSize.width,B=I.current.getRowMode(a)===bk.Edit,H=$.editMode===gk.Row,V=void 0!==g,W=V&&g>=p.left.length&&g<m.firstColumnIndex,U=V&&g<d.length-p.right.length&&g>=m.lastColumnIndex,G=function(e,t){return qu(t,Dx,e)}($.classes,{root:["row",r&&"selected",H&&"row--editable",B&&"row--editing",v&&"row--firstVisible",b&&"row--lastVisible",x&&"row--borderBottom","auto"===u&&"row--dynamicHeight"]}),K=A.hooks.useGridRowAriaAttributes();e.useLayoutEffect((()=>{if(E.range){const e=I.current.getRowIndexRelativeToVisibleRows(a);void 0!==e&&I.current.unstable_setLastMeasuredRowIndex(e)}if(T.current&&"auto"===u)return I.current.observeRowHeight(T.current,a)}),[I,E.range,u,a]);const Y=e.useCallback(((e,t)=>n=>{vI(n)||I.current.getRow(a)&&(I.current.publishEvent(e,I.current.getRowParams(a),n),t&&t(n))}),[I,a]),Z=e.useCallback((e=>{const t=hI(e.target,Ox.cell),n=t?.getAttribute("data-field");if(n){if(n===FP.field)return;if(n===rk)return;if("__reorder__"===n)return;if(I.current.getCellMode(a,n)===vk.Edit)return;const e=I.current.getColumn(n);if(e?.type===Vk)return}Y("rowClick",w)(e)}),[I,w,Y,a]),{slots:q,slotProps:X,disableColumnReorder:Q}=$,J=$.rowReordering,ee=Gx(I,(()=>fe({},I.current.getRowHeightEntry(a))),Wx),te=e.useMemo((()=>{if(y)return{opacity:0,width:0,height:0};const e=fe({},s,{maxHeight:"auto"===u?"none":u,minHeight:u,"--height":"number"===typeof u?`${u}px`:u});if(ee.spacingTop){e["border"===$.rowSpacingType?"borderTopWidth":"marginTop"]=ee.spacingTop}if(ee.spacingBottom){const t="border"===$.rowSpacingType?"borderBottomWidth":"marginBottom";let n=e[t];"number"!==typeof n&&(n=parseInt(n||"0",10)),n+=ee.spacingBottom,e[t]=n}return e}),[y,u,s,ee,$.rowSpacingType]),ne=I.current.unstable_applyPipeProcessors("rowClassName",[],a),re=j?K(j,l):void 0;if("function"===typeof $.getRowClassName){const e=l-(E.range?.firstRowIndex||0),t=fe({},I.current.getRowParams(a),{isFirstVisible:0===e,isLastVisible:e===E.rows.length-1,indexRelativeToCurrentPage:e});ne.push($.getRowClassName(t))}const oe=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:wE.NONE;const i=I.current.unstable_getCellColSpanInfo(a,n);if(i?.spannedByColSpan)return null;const l=i?.cellProps.width??e.computedWidth,s=i?.cellProps.colSpan??1,c=zT(CE[o],e.computedWidth,n,_,h);if("skeletonRow"===j?.type)return(0,Tr.jsx)(q.skeletonCell,{type:e.type,width:l,height:u,field:e.field,align:e.align},e.field);const d=F[a]?.[e.field]??null,p="__reorder__"===e.field,f=Object.keys(F).length>0,m=!(Q||e.disableReorder),g=J&&!D.length&&O<=1&&!f,v=!(m||p&&g),b=o===wE.VIRTUAL;return(0,Tr.jsx)(q.cell,fe({column:e,width:l,rowId:a,align:e.align||"left",colIndex:n,colSpan:s,disableDragEvents:v,editCellState:d,isNotVisible:b,pinnedOffset:c,pinnedPosition:o,sectionIndex:t,sectionLength:r,gridHasFiller:z},X?.cell),e.field)};if(!j)return null;const ae=p.left.map(((e,t)=>oe(e,t,t,p.left.length,wE.LEFT))),ie=p.right.map(((e,t)=>{const n=d.length-p.right.length+t;return oe(e,t,n,p.right.length,wE.RIGHT)})),le=d.length-p.left.length-p.right.length,se=[];W&&se.push(oe(d[g],g-p.left.length,g,le,wE.VIRTUAL));for(let e=m.firstColumnIndex;e<m.lastColumnIndex;e+=1){const t=d[e],n=e-p.left.length;t&&se.push(oe(t,n,e,le))}U&&se.push(oe(d[g],g-p.left.length,g,le,wE.VIRTUAL));const ue=i?{onClick:Z,onDoubleClick:Y("rowDoubleClick",C),onMouseEnter:Y("rowMouseEnter",S),onMouseLeave:Y("rowMouseLeave",k),onMouseOut:Y("rowMouseOut",M),onMouseOver:Y("rowMouseOver",R)}:null,ce=h.viewportOuterSize.width-h.columnsTotalWidth-N,de=Math.max(0,ce);return(0,Tr.jsxs)("div",fe({ref:L,"data-id":a,"data-rowindex":l,role:"row",className:o(...ne,G.root,c),style:te},re,ue,P,{children:[ae,(0,Tr.jsx)("div",{role:"presentation",className:Ox.cellOffsetLeft,style:{width:f}}),se,de>0&&(0,Tr.jsx)(PE,{width:de}),ie.length>0&&(0,Tr.jsx)("div",{role:"presentation",className:Ox.filler}),ie,0!==N&&(0,Tr.jsx)(WT,{pinnedRight:p.right.length>0})]}))})),AE=Zw(IE),TE=e.memo((t=>{const{colDef:n,open:r,columnMenuId:o,columnMenuButtonId:a,iconButtonRef:i}=t,l=Uw(),s=rw(),u=(e=>{const{classes:t,open:n}=e;return qu({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Dx,t)})(fe({},t,{classes:s.classes})),c=e.useCallback((e=>{e.preventDefault(),e.stopPropagation(),l.current.toggleColumnMenu(n.field)}),[l,n.field]);return(0,Tr.jsx)("div",{className:u.root,children:(0,Tr.jsx)(s.slots.baseTooltip,fe({title:l.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},s.slotProps?.baseTooltip,{children:(0,Tr.jsx)(s.slots.baseIconButton,fe({ref:i,tabIndex:-1,className:u.button,"aria-label":l.current.getLocaleText("columnMenuLabel"),size:"small",onClick:c,"aria-haspopup":"menu","aria-expanded":r,"aria-controls":r?o:void 0,id:a},s.slotProps?.baseIconButton,{children:(0,Tr.jsx)(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})}));function $E(e){let{columnMenuId:t,columnMenuButtonId:n,ContentComponent:r,contentComponentProps:o,field:a,open:i,target:l,onExited:s}=e;const u=Uw(),c=u.current.getColumn(a),d=hu((e=>{e&&(e.stopPropagation(),l?.contains(e.target))||u.current.hideColumnMenu()}));return l&&c?(0,Tr.jsx)(zk,{placement:"bottom-"+("right"===c.align?"start":"end"),open:i,target:l,onClose:d,onExited:s,children:(0,Tr.jsx)(r,fe({colDef:c,hideMenu:d,open:i,id:t,labelledby:n},o))}):null}const EE=["className","aria-label"],DE=Yw("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle",overridesResolver:(e,t)=>t.columnHeaderTitle})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),OE=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,EE),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["columnHeaderTitle"]},Dx,t)})(a);return(0,Tr.jsx)(DE,fe({ref:t,className:o(i.root,n),ownerState:a},r))}));function _E(t){const{label:n,description:r}=t,o=rw(),a=e.useRef(null),[i,l]=e.useState(""),s=e.useCallback((()=>{if(!r&&a?.current){const t=(e=a.current).scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth;l(t?n:"")}var e}),[r,n]);return(0,Tr.jsx)(o.slots.baseTooltip,fe({title:r||i},o.slotProps?.baseTooltip,{children:(0,Tr.jsx)(OE,{onMouseOver:s,ref:a,children:n})}))}const FE=["resizable","resizing","height","side"];var LE=function(e){return e.Left="left",e.Right="right",e}(LE||{});function jE(t){const{height:n,side:r=LE.Right}=t,o=Ai(t,FE),a=rw(),i=(e=>{const{resizable:t,resizing:n,classes:r,side:o}=e;return qu({root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${of(o)}`],icon:["iconSeparator"]},Dx,r)})(fe({},t,{side:r,classes:a.classes})),l=e.useCallback((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,Tr.jsx)("div",fe({className:i.root,style:{minHeight:n}},o,{onClick:l,children:(0,Tr.jsx)(a.slots.columnResizeIcon,{className:i.icon})}))}const NE=e.memo(jE),zE=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],BE=e.forwardRef((function(t,n){const{classes:r,colIndex:a,height:i,isResizing:l,sortDirection:s,hasFocus:u,tabIndex:c,separatorSide:d,isDraggable:p,headerComponent:f,description:h,width:m,columnMenuIconButton:g=null,columnMenu:v=null,columnTitleIconButtons:b=null,headerClassName:y,label:x,resizable:w,draggableContainerProps:C,columnHeaderSeparatorProps:S,style:k}=t,M=Ai(t,zE),R=Yx(),P=rw(),I=e.useRef(null),A=Ns(I,n);let T="none";return null!=s&&(T="asc"===s?"ascending":"descending"),e.useLayoutEffect((()=>{const e=R.current.state.columnMenu;if(u&&!e.open){const e=I.current.querySelector('[tabindex="0"]')||I.current;e?.focus(),R.current.columnHeadersContainerRef?.current&&(R.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[R,u]),(0,Tr.jsxs)("div",fe({ref:A,className:o(r.root,y),style:fe({},k,{height:i,width:m}),role:"columnheader",tabIndex:c,"aria-colindex":a+1,"aria-sort":T},M,{children:[(0,Tr.jsxs)("div",fe({className:r.draggableContainer,draggable:p,role:"presentation"},C,{children:[(0,Tr.jsxs)("div",{className:r.titleContainer,role:"presentation",children:[(0,Tr.jsx)("div",{className:r.titleContainerContent,children:void 0!==f?f:(0,Tr.jsx)(_E,{label:x,description:h,columnWidth:m})}),b]}),g]})),(0,Tr.jsx)(NE,fe({resizable:!P.disableColumnResize&&!!w,resizing:l,height:i,side:d},S)),v]}))}));const HE=Zw((function(t){const{colDef:n,columnMenuOpen:r,colIndex:a,headerHeight:i,isResizing:l,isLast:s,sortDirection:u,sortIndex:c,filterItemsCounter:d,hasFocus:p,tabIndex:f,disableReorder:h,separatorSide:m,style:g,pinnedPosition:v,indexInSection:b,sectionLength:y,gridHasFiller:x}=t,w=Yx(),C=rw(),S=e.useRef(null),k=Ys(),M=Ys(),R=e.useRef(null),[P,I]=e.useState(r),A=e.useMemo((()=>!C.disableColumnReorder&&!h&&!n.disableReorder),[C.disableColumnReorder,h,n.disableReorder]);let T;n.renderHeader&&(T=n.renderHeader(w.current.getColumnHeaderParams(n.field)));const $=HT(v,b),E=BT(v,b,y,C.showColumnVerticalBorder,x),D=(e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:a,showLeftBorder:i,filterItemsCounter:l,pinnedPosition:s,isLastUnpinned:u,isSiblingFocused:c}=e,d=null!=o,p=null!=l&&l>0,f="number"===t.type;return qu({root:["columnHeader","left"===t.headerAlign&&"columnHeader--alignLeft","center"===t.headerAlign&&"columnHeader--alignCenter","right"===t.headerAlign&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",d&&"columnHeader--sorted",p&&"columnHeader--filtered",f&&"columnHeader--numeric","withBorderColor",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","left"===s&&"columnHeader--pinnedLeft","right"===s&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",c&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dx,n)})(fe({},t,{classes:C.classes,showRightBorder:E,showLeftBorder:$})),O=e.useCallback((e=>t=>{vI(t)||w.current.publishEvent(e,w.current.getColumnHeaderParams(n.field),t)}),[w,n.field]),_=e.useMemo((()=>({onClick:O("columnHeaderClick"),onContextMenu:O("columnHeaderContextMenu"),onDoubleClick:O("columnHeaderDoubleClick"),onMouseOver:O("columnHeaderOver"),onMouseOut:O("columnHeaderOut"),onMouseEnter:O("columnHeaderEnter"),onMouseLeave:O("columnHeaderLeave"),onKeyDown:O("columnHeaderKeyDown"),onFocus:O("columnHeaderFocus"),onBlur:O("columnHeaderBlur")})),[O]),F=e.useMemo((()=>A?{onDragStart:O("columnHeaderDragStart"),onDragEnter:O("columnHeaderDragEnter"),onDragOver:O("columnHeaderDragOver"),onDragEnd:O("columnHeaderDragEnd")}:{}),[A,O]),L=e.useMemo((()=>({onMouseDown:O("columnSeparatorMouseDown"),onDoubleClick:O("columnSeparatorDoubleClick")})),[O]);e.useEffect((()=>{P||I(r)}),[P,r]);const j=e.useCallback((()=>{I(!1)}),[]),N=!C.disableColumnMenu&&!n.disableColumnMenu&&(0,Tr.jsx)(TE,{colDef:n,columnMenuId:k,columnMenuButtonId:M,open:P,iconButtonRef:R}),z=(0,Tr.jsx)($E,{columnMenuId:k,columnMenuButtonId:M,field:n.field,open:r,target:R.current,ContentComponent:C.slots.columnMenu,contentComponentProps:C.slotProps?.columnMenu,onExited:j}),B=n.sortingOrder??C.sortingOrder,H=(n.sortable||null!=u)&&!n.hideSortIcons&&!C.disableColumnSorting,V=(0,Tr.jsxs)(e.Fragment,{children:[!C.disableColumnFilter&&(0,Tr.jsx)(C.slots.columnHeaderFilterIconButton,fe({field:n.field,counter:d},C.slotProps?.columnHeaderFilterIconButton)),H&&(0,Tr.jsx)(C.slots.columnHeaderSortIcon,fe({field:n.field,direction:u,index:c,sortingOrder:B,disabled:!n.sortable},C.slotProps?.columnHeaderSortIcon))]});e.useLayoutEffect((()=>{const e=w.current.state.columnMenu;if(p&&!e.open){const e=S.current.querySelector('[tabindex="0"]')||S.current;e?.focus(),w.current.columnHeadersContainerRef?.current&&(w.current.columnHeadersContainerRef.current.scrollLeft=0)}}),[w,p]);const W="function"===typeof n.headerClassName?n.headerClassName({field:n.field,colDef:n}):n.headerClassName,U=n.headerName??n.field;return(0,Tr.jsx)(BE,fe({ref:S,classes:D,columnMenuOpen:r,colIndex:a,height:i,isResizing:l,sortDirection:u,hasFocus:p,tabIndex:f,separatorSide:m,isDraggable:A,headerComponent:T,description:n.description,elementId:n.field,width:n.computedWidth,columnMenuIconButton:N,columnTitleIconButtons:V,headerClassName:o(W,s&&Ox["columnHeader--last"]),label:U,resizable:!C.disableColumnResize&&!!n.resizable,"data-field":n.field,columnMenu:z,draggableContainerProps:F,columnHeaderSeparatorProps:L,style:g},_))}));function VE(t){const{groupId:n,width:r,depth:o,maxDepth:a,fields:i,height:l,colIndex:s,hasFocus:u,tabIndex:c,isLastColumn:d,pinnedPosition:p,style:f,indexInSection:h,sectionLength:m,gridHasFiller:g}=t,v=rw(),b=e.useRef(null),y=Uw(),x=Gx(y,Xk),w=n?x[n]:{},{headerName:C=n??"",description:S="",headerAlign:k}=w;let M;const R=n&&x[n]?.renderHeaderGroup,P=e.useMemo((()=>({groupId:n,headerName:C,description:S,depth:o,maxDepth:a,fields:i,colIndex:s,isLastColumn:d})),[n,C,S,o,a,i,s,d]);n&&R&&(M=R(P));const I=HT(p,h),A=BT(p,h,m,v.showColumnVerticalBorder,g),T=fe({},t,{classes:v.classes,showLeftBorder:I,showRightBorder:A,headerAlign:k,depth:o,isDragging:!1}),$=C??n,E=Ys(),D=null===n?`empty-group-cell-${E}`:n,O=(e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:a,showRightBorder:i,groupId:l,pinnedPosition:s}=e;return qu({root:["columnHeader","left"===n&&"columnHeader--alignLeft","center"===n&&"columnHeader--alignCenter","right"===n&&"columnHeader--alignRight",r&&"columnHeader--moving",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder","withBorderColor",null===l?"columnHeader--emptyGroup":"columnHeader--filledGroup","left"===s&&"columnHeader--pinnedLeft","right"===s&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]},Dx,t)})(T);e.useLayoutEffect((()=>{if(u){const e=b.current.querySelector('[tabindex="0"]')||b.current;e?.focus()}}),[y,u]);const _=e.useCallback((e=>t=>{vI(t)||y.current.publishEvent(e,P,t)}),[y,P]),F=e.useMemo((()=>({onKeyDown:_("columnGroupHeaderKeyDown"),onFocus:_("columnGroupHeaderFocus"),onBlur:_("columnGroupHeaderBlur")})),[_]),L="function"===typeof w.headerClassName?w.headerClassName(P):w.headerClassName;return(0,Tr.jsx)(BE,fe({ref:b,classes:O,columnMenuOpen:!1,colIndex:s,height:l,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:c,isDraggable:!1,headerComponent:M,headerClassName:L,description:S,elementId:D,width:r,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:$,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:f},F))}const WE=Ir("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow",overridesResolver:(e,t)=>t.columnHeaderRow})({display:"flex"}),UE=["className"],GE=Yw("div",{name:"MuiDataGrid",slot:"ColumnHeaders",overridesResolver:(e,t)=>t.columnHeaders})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),KE=e.forwardRef((function(e,t){const{className:n}=e,r=Ai(e,UE),a=rw(),i=(e=>{const{classes:t}=e;return qu({root:["columnHeaders"]},Dx,t)})(a);return(0,Tr.jsx)(GE,fe({ref:t,className:o(i.root,n),ownerState:a},r,{role:"presentation"}))})),YE=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ZE=e.forwardRef((function(t,n){const{visibleColumns:r,sortColumnLookup:a,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m}=t,g=Ai(t,YE),{getInnerProps:v,getColumnHeadersRow:b,getColumnGroupHeadersRows:y}=(t=>{const{visibleColumns:n,sortColumnLookup:r,filterColumnLookup:a,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:s,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:f,hasOtherElementInTabSequence:h}=t,[m,g]=e.useState(""),[v,b]=e.useState(""),y=Yx(),x=ni(),w=rw(),C=Gx(y,Zx),S=Gx(y,oR),k=Gx(y,qk),M=Gx(y,Lw),R=Gx(y,lR),P=Gx(y,Fw),I=Gx(y,$w),A=RR(M,R,P.left.length),T=C.columnsTotalWidth<C.viewportOuterSize.width;e.useEffect((()=>{y.current.columnHeadersContainerRef.current&&(y.current.columnHeadersContainerRef.current.scrollLeft=0)}),[y]);const $=e.useCallback((e=>b(e.field)),[]),E=e.useCallback((()=>b("")),[]),D=e.useCallback((e=>g(e.field)),[]),O=e.useCallback((()=>g("")),[]),_=e.useMemo((()=>P.left.length?{firstColumnIndex:0,lastColumnIndex:P.left.length}:null),[P.left.length]),F=e.useMemo((()=>P.right.length?{firstColumnIndex:n.length-P.right.length,lastColumnIndex:n.length}:null),[P.right.length,n.length]);tC(y,"columnResizeStart",$),tC(y,"columnResizeStop",E),tC(y,"columnHeaderDragStart",D),tC(y,"columnHeaderDragEnd",O);const L=e=>{const{renderContext:t=R,maxLastColumn:r=n.length}=e||{},o=t.firstColumnIndex,a=S?t.lastColumnIndex:r;return{renderedColumns:n.slice(o,a),firstColumnToRender:o,lastColumnToRender:a}},j=function(t,n,r){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=t?.position===Pw.RIGHT,l=void 0===t?.position,s=P.right.length>0&&i||0===P.right.length&&l,u=A-r;return(0,Tr.jsxs)(e.Fragment,{children:[l&&(0,Tr.jsx)("div",{role:"presentation",style:{width:u}}),n,l&&(0,Tr.jsx)("div",{role:"presentation",className:o(Ox.filler,a&&Ox["filler--borderBottom"])}),s&&(0,Tr.jsx)(WT,{header:!0,pinnedRight:i,borderBottom:a,borderTop:!1})]})},N=e=>{let t,{pinnedPosition:n,columnIndex:r,computedWidth:o}=e;const a=n===Pw.LEFT,i=n===Pw.RIGHT;if(a||i){const e=zT(n,o,r,M,C);let i=a?"left":"right";x&&(i=a?"right":"left"),"left"===n&&(t={[i]:e}),"right"===n&&(t={[i]:e})}return t},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{renderedColumns:n,firstColumnToRender:o}=L(e),l=[];for(let u=0;u<n.length;u+=1){const c=n[u],p=o+u,f=0===p,g=null!==i&&i.field===c.field||f&&!h?0:-1,b=null!==s&&s.field===c.field,y=d.open&&d.field===c.field,x=e?.position,w=N({pinnedPosition:x,columnIndex:p,computedWidth:c.computedWidth}),S=x===Pw.RIGHT?n[u-1]:n[u+1],k=!!S&&null!==s&&s.field===S.field,R=p+1===M.length-P.right.length;l.push((0,Tr.jsx)(HE,fe({},r[c.field],{columnMenuOpen:y,filterItemsCounter:a[c.field]&&a[c.field].length,headerHeight:C.headerHeight,isDragging:c.field===m,colDef:c,colIndex:p,isResizing:v===c.field,isLast:p===M.length-1,hasFocus:b,tabIndex:g,pinnedPosition:x,style:w,indexInSection:u,sectionLength:n.length,gridHasFiller:T,isLastUnpinned:R,isSiblingFocused:k},t),c.field))}return j(e,l,0)},B=e=>{let{depth:t,params:r}=e;const o=L(r);if(0===o.renderedColumns.length)return null;const{firstColumnToRender:a,lastColumnToRender:i}=o,s=f[t],d=n[a].field,h=k[d]?.[t]??null,m=s.findIndex((e=>{let{groupId:t,columnFields:n}=e;return t===h&&n.includes(d)})),g=n[i-1].field,v=k[g]?.[t]??null,b=s.findIndex((e=>{let{groupId:t,columnFields:n}=e;return t===v&&n.includes(g)})),y=s.slice(m,b+1).map((e=>fe({},e,{columnFields:e.columnFields.filter((e=>!1!==p[e]))}))).filter((e=>e.columnFields.length>0)),x=y[0].columnFields.indexOf(d),w=y[0].columnFields.slice(0,x).reduce(((e,t)=>e+(I[t].computedWidth??0)),0);let S=a;const M=y.map(((e,n)=>{let{groupId:o,columnFields:a}=e;const i=null!==u&&u.depth===t&&a.includes(u.field),s=null!==l&&l.depth===t&&a.includes(l.field)?0:-1,d={groupId:o,width:a.reduce(((e,t)=>e+I[t].computedWidth),0),fields:a,colIndex:S,hasFocus:i,tabIndex:s},p=r.position,f=N({pinnedPosition:p,columnIndex:S,computedWidth:d.width});S+=a.length;let h=n;return"left"===p&&(h=S-1),(0,Tr.jsx)(VE,{groupId:o,width:d.width,fields:d.fields,colIndex:d.colIndex,depth:t,isLastColumn:n===y.length-1,maxDepth:c,height:C.groupHeaderHeight,hasFocus:i,tabIndex:s,pinnedPosition:p,style:f,indexInSection:h,sectionLength:y.length,gridHasFiller:T},n)}));return j(r,M,w)};return{renderContext:R,leftRenderContext:_,rightRenderContext:F,pinnedColumns:P,visibleColumns:n,getCellOffsetStyle:N,getFillers:j,getColumnHeadersRow:()=>(0,Tr.jsxs)(WE,{role:"row","aria-rowindex":c+1,ownerState:w,className:Ox["row--borderBottom"],children:[_&&z({position:Pw.LEFT,renderContext:_,maxLastColumn:_.lastColumnIndex},{disableReorder:!0}),z({renderContext:R,maxLastColumn:n.length-P.right.length}),F&&z({position:Pw.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex},{disableReorder:!0,separatorSide:LE.Left})]}),getColumnsToRender:L,getColumnGroupHeadersRows:()=>{if(0===c)return null;const e=[];for(let t=0;t<c;t+=1)e.push((0,Tr.jsxs)(WE,{role:"row","aria-rowindex":t+1,ownerState:w,children:[_&&B({depth:t,params:{position:Pw.LEFT,renderContext:_,maxLastColumn:_.lastColumnIndex}}),B({depth:t,params:{renderContext:R}}),F&&B({depth:t,params:{position:Pw.RIGHT,renderContext:F,maxLastColumn:F.lastColumnIndex}})]},t));return e},isDragging:!!m,getInnerProps:()=>({role:"rowgroup"})}})({visibleColumns:r,sortColumnLookup:a,filterColumnLookup:i,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:u,columnGroupHeaderFocus:c,headerGroupingMaxDepth:d,columnMenuState:p,columnVisibility:f,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:m});return(0,Tr.jsxs)(KE,fe({ref:n},g,v(),{children:[y(),b()]}))})),qE=Zw(ZE),XE=["displayOrder"],QE=["hideMenu","colDef","id","labelledby","className","children","open"],JE=Ir(Ci)((()=>({minWidth:248}))),eD=e.forwardRef((function(t,n){const{hideMenu:r,id:a,labelledby:i,className:l,children:s,open:u}=t,c=Ai(t,QE),d=e.useCallback((e=>{var t;"Tab"===e.key&&e.preventDefault(),("Tab"===(t=e.key)||"Escape"===t)&&r(e)}),[r]);return(0,Tr.jsx)(JE,fe({id:a,ref:n,className:o(Ox.menuList,l),"aria-labelledby":i,onKeyDown:d,autoFocus:u},c,{children:s}))})),tD=Ir("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(co((e=>{let{theme:t}=e;return{minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}}))),nD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiListItemIcon"}),{className:a,...i}=r,l=e.useContext(ci),s={...r,alignItems:l.alignItems},u=(e=>{const{alignItems:t,classes:n}=e;return pe({root:["root","flex-start"===t&&"alignItemsFlexStart"]},py,n)})(s);return(0,Tr.jsx)(tD,{className:o(u.root,a),ownerState:s,ref:n,...i})})),rD=nD,oD=Ir("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${my.primary}`]:t.primary},{[`& .${my.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${mo.root}:where(& .${my.primary})`]:{display:"block"},[`.${mo.root}:where(& .${my.secondary})`]:{display:"block"},variants:[{props:e=>{let{ownerState:t}=e;return t.primary&&t.secondary},style:{marginTop:6,marginBottom:6}},{props:e=>{let{ownerState:t}=e;return t.inset},style:{paddingLeft:56}}]}),aD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiListItemText"}),{children:a,className:i,disableTypography:l=!1,inset:s=!1,primary:u,primaryTypographyProps:c,secondary:d,secondaryTypographyProps:p,...f}=r,{dense:h}=e.useContext(ci);let m=null!=u?u:a,g=d;const v={...r,disableTypography:l,inset:s,primary:!!m,secondary:!!g,dense:h},b=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return pe({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hy,t)})(v);return null==m||m.type===wo||l||(m=(0,Tr.jsx)(wo,{variant:h?"body2":"body1",className:b.primary,component:c?.variant?void 0:"span",...c,children:m})),null==g||g.type===wo||l||(g=(0,Tr.jsx)(wo,{variant:"body2",className:b.secondary,color:"textSecondary",...p,children:g})),(0,Tr.jsxs)(oD,{className:o(b.root,i),ownerState:v,ref:n,...f,children:[m,g]})})),iD=aD;function lD(t){const{colDef:n,onClick:r}=t,o=Uw(),a=rw(),i=1===Ow(o).filter((e=>!0!==e.disableColumnMenu)).length,l=e.useCallback((e=>{i||(o.current.setColumnVisibility(n.field,!1),r(e))}),[o,n.field,r,i]);return a.disableColumnSelector||!1===n.hideable?null:(0,Tr.jsxs)(xy,{onClick:l,disabled:i,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(a.slots.columnMenuHideIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuHideColumn")})]})}function sD(t){const{onClick:n}=t,r=Uw(),o=rw(),a=e.useCallback((e=>{n(e),r.current.showPreferences(Vw.columns)}),[r,n]);return o.disableColumnSelector?null:(0,Tr.jsxs)(xy,{onClick:a,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(o.slots.columnMenuManageColumnsIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:r.current.getLocaleText("columnMenuManageColumns")})]})}const uD=["defaultSlots","defaultSlotProps","slots","slotProps"],cD={columnMenuSortItem:function(t){const{colDef:n,onClick:r}=t,o=Uw(),a=Gx(o,wM),i=rw(),l=e.useMemo((()=>{if(!n)return null;const e=a.find((e=>e.field===n.field));return e?.sort}),[n,a]),s=n.sortingOrder??i.sortingOrder,u=e.useCallback((e=>{r(e);const t=e.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(n.field,t===l?null:t)}),[o,n,r,l]);if(i.disableColumnSorting||!n||!n.sortable||!s.some((e=>!!e)))return null;const c=e=>{const t=o.current.getLocaleText(e);return"function"===typeof t?t(n):t};return(0,Tr.jsxs)(e.Fragment,{children:[s.includes("asc")&&"asc"!==l?(0,Tr.jsxs)(xy,{onClick:u,"data-value":"asc",children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:c("columnMenuSortAsc")})]}):null,s.includes("desc")&&"desc"!==l?(0,Tr.jsxs)(xy,{onClick:u,"data-value":"desc",children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:c("columnMenuSortDesc")})]}):null,s.includes(null)&&null!=l?(0,Tr.jsxs)(xy,{onClick:u,children:[(0,Tr.jsx)(rD,{}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuUnsort")})]}):null]})},columnMenuFilterItem:function(t){const{colDef:n,onClick:r}=t,o=Uw(),a=rw(),i=e.useCallback((e=>{r(e),o.current.showFilterPanel(n.field)}),[o,n.field,r]);return a.disableColumnFilter||!n.filterable?null:(0,Tr.jsxs)(xy,{onClick:i,children:[(0,Tr.jsx)(rD,{children:(0,Tr.jsx)(a.slots.columnMenuFilterIcon,{fontSize:"small"})}),(0,Tr.jsx)(iD,{children:o.current.getLocaleText("columnMenuFilter")})]})},columnMenuColumnsItem:function(t){return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)(lD,fe({},t)),(0,Tr.jsx)(sD,fe({},t))]})}},dD={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},pD=e.forwardRef((function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:a,slotProps:i}=t,l=Ai(t,uD),s=(t=>{const n=Yx(),r=rw(),{defaultSlots:o,defaultSlotProps:a,slots:i={},slotProps:l={},hideMenu:s,colDef:u,addDividers:c=!0}=t,d=e.useMemo((()=>fe({},o,i)),[o,i]),p=e.useMemo((()=>{if(!l||0===Object.keys(l).length)return a;const e=fe({},l);return Object.entries(a).forEach((t=>{let[n,r]=t;e[n]=fe({},r,l[n]||{})})),e}),[a,l]),f=n.current.unstable_applyPipeProcessors("columnMenu",[],t.colDef),h=e.useMemo((()=>{const e=Object.keys(o);return Object.keys(i).filter((t=>!e.includes(t)))}),[i,o]);return e.useMemo((()=>{const e=Array.from(new Set([...f,...h])).filter((e=>null!=d[e])).sort(((e,t)=>{const n=p[e],r=p[t];return(Number.isFinite(n?.displayOrder)?n.displayOrder:100)-(Number.isFinite(r?.displayOrder)?r.displayOrder:100)}));return e.reduce(((t,n,o)=>{let a={colDef:u,onClick:s};const i=p[n];return i&&(a=fe({},a,Ai(i,XE))),c&&o!==e.length-1?[...t,[d[n],a],[r.slots.baseDivider,{}]]:[...t,[d[n],a]]}),[])}),[c,u,f,s,d,p,h,r.slots.baseDivider])})(fe({},l,{defaultSlots:r,defaultSlotProps:o,slots:a,slotProps:i}));return(0,Tr.jsx)(eD,fe({ref:n},l,{children:s.map(((e,t)=>{let[n,r]=e;return(0,Tr.jsx)(n,fe({},r),t)}))}))})),fD=e.forwardRef((function(e,t){return(0,Tr.jsx)(pD,fe({},e,{ref:t,defaultSlots:cD,defaultSlotProps:dD}))}));const hD=e.forwardRef((function(e,t){const n=Uw().current.getLocaleText("noResultsOverlayLabel");return(0,Tr.jsx)(NT,fe({ref:t},e,{children:n}))}));const mD=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=yC({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}};function gD(e){return Hr("MuiBadge",e)}const vD=Vr("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),bD=Ir("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),yD=Ir("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${po(n.anchorOrigin.vertical)}${po(n.anchorOrigin.horizontal)}${po(n.overlap)}`],"default"!==n.color&&t[`color${po(n.color)}`],n.invisible&&t.invisible]}})(co((e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(fo(["contrastText"])).map((e=>{let[n]=e;return{props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText}}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${vD.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}}]}})));function xD(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const wD=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:a,classes:i,component:l,components:s={},componentsProps:u={},children:c,overlap:d="rectangular",color:p="default",invisible:f=!1,max:h=99,badgeContent:m,slots:g,slotProps:v,showZero:b=!1,variant:y="standard",...x}=n,{badgeContent:w,invisible:C,max:S,displayValue:k}=mD({max:h,invisible:f,badgeContent:m,showZero:b}),M=yC({anchorOrigin:xD(r),color:p,overlap:d,variant:y,badgeContent:m}),R=C||null==w&&"dot"!==y,{color:P=p,overlap:I=d,anchorOrigin:A,variant:T=y}=R?M:n,$=xD(A),E="dot"!==T?k:void 0,D={...n,badgeContent:w,invisible:R,max:S,displayValue:E,showZero:b,anchorOrigin:$,color:P,overlap:I,variant:T},O=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return pe({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${po(n.vertical)}${po(n.horizontal)}`,`anchorOrigin${po(n.vertical)}${po(n.horizontal)}${po(o)}`,`overlap${po(o)}`,"default"!==t&&`color${po(t)}`]},gD,i)})(D),_=g?.root??s.Root??bD,F=g?.badge??s.Badge??yD,L=v?.root??u.root,j=v?.badge??u.badge,N=ui({elementType:_,externalSlotProps:L,externalForwardedProps:x,additionalProps:{ref:t,as:l},ownerState:D,className:o(L?.className,O.root,a)}),z=ui({elementType:F,externalSlotProps:j,ownerState:D,className:o(O.badge,j?.className)});return(0,Tr.jsxs)(_,{...N,children:[c,(0,Tr.jsx)(F,{...z,children:E})]})})),CD=wD;function SD(e){return Hr("PrivateSwitchBase",e)}Vr("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kD=Ir(Pc)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:e=>{let{edge:t,ownerState:n}=e;return"start"===t&&"small"!==n.size},style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:e=>{let{edge:t,ownerState:n}=e;return"end"===t&&"small"!==n.size},style:{marginRight:-12}}]}),MD=Ir("input",{shouldForwardProp:Pr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),RD=e.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:a,className:i,defaultChecked:l,disabled:s,disableFocusRipple:u=!1,edge:c=!1,icon:d,id:p,inputProps:f,inputRef:h,name:m,onBlur:g,onChange:v,onFocus:b,readOnly:y,required:x=!1,tabIndex:w,type:C,value:S,...k}=e,[M,R]=es({controlled:r,default:Boolean(l),name:"SwitchBase",state:"checked"}),P=Zo();let I=s;P&&"undefined"===typeof I&&(I=P.disabled);const A="checkbox"===C||"radio"===C,T={...e,checked:M,disabled:I,disableFocusRipple:u,edge:c},$=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return pe({root:["root",n&&"checked",r&&"disabled",o&&`edge${po(o)}`],input:["input"]},SD,t)})(T);return(0,Tr.jsxs)(kD,{component:"span",className:o($.root,i),centerRipple:!0,focusRipple:!u,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),P&&P.onFocus&&P.onFocus(e)},onBlur:e=>{g&&g(e),P&&P.onBlur&&P.onBlur(e)},ownerState:T,ref:t,...k,children:[(0,Tr.jsx)(MD,{autoFocus:n,checked:r,defaultChecked:l,className:$.input,disabled:I,id:A?p:void 0,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),v&&v(e,t)},readOnly:y,ref:h,required:x,ownerState:T,tabIndex:w,type:C,..."checkbox"===C&&void 0===S?{}:{value:S},...f}),M?a:d]})})),PD=RD,ID=ms((0,Tr.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),AD=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),TD=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function $D(e){return Hr("MuiCheckbox",e)}const ED=Vr("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),DD=Ir(PD,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${po(n.size)}`],"default"!==n.color&&t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${ED.checked}, &.${ED.indeterminate}`]:{color:(t.vars||t).palette[n].main},[`&.${ED.disabled}`]:{color:(t.vars||t).palette.action.disabled}}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}}))),OD=(0,Tr.jsx)(AD,{}),_D=(0,Tr.jsx)(ID,{}),FD=(0,Tr.jsx)(TD,{}),LD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiCheckbox"}),{checkedIcon:a=OD,color:i="primary",icon:l=_D,indeterminate:s=!1,indeterminateIcon:u=FD,inputProps:c,size:d="medium",disableRipple:p=!1,className:f,...h}=r,m=s?u:l,g=s?u:a,v={...r,disableRipple:p,color:i,indeterminate:s,size:d},b=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a=pe({root:["root",n&&"indeterminate",`color${po(r)}`,`size${po(o)}`]},$D,t);return{...t,...a}})(v);return(0,Tr.jsx)(DD,{type:"checkbox",inputProps:{"data-indeterminate":s,...c},icon:e.cloneElement(m,{fontSize:m.props.fontSize??d}),checkedIcon:e.cloneElement(g,{fontSize:g.props.fontSize??d}),ownerState:v,ref:n,className:o(b.root,f),disableRipple:p,...h,classes:b})})),jD=LD;function ND(e){return Hr("MuiTooltip",e)}const zD=Vr("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function BD(e){return Math.round(1e5*e)/1e5}const HD=Ir(iv,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(co((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:e=>{let{ownerState:t}=e;return!t.disableInteractive},style:{pointerEvents:"auto"}},{props:e=>{let{open:t}=e;return!t},style:{pointerEvents:"none"}},{props:e=>{let{ownerState:t}=e;return t.arrow},style:{[`&[data-popper-placement*="bottom"] .${zD.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${zD.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${zD.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${zD.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{[`&[data-popper-placement*="right"] .${zD.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{[`&[data-popper-placement*="right"] .${zD.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!t.isRtl},style:{[`&[data-popper-placement*="left"] .${zD.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:e=>{let{ownerState:t}=e;return t.arrow&&!!t.isRtl},style:{[`&[data-popper-placement*="left"] .${zD.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}}))),VD=Ir("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${po(n.placement.split("-")[0])}`]]}})(co((e=>{let{theme:t}=e;return{backgroundColor:t.vars?t.vars.palette.Tooltip.bg:wn(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${zD.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${zD.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${zD.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:e=>{let{ownerState:t}=e;return t.arrow},style:{position:"relative",margin:0}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${BD(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:e=>{let{ownerState:t}=e;return!t.isRtl},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:e=>{let{ownerState:t}=e;return!t.isRtl&&t.touch},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:e=>{let{ownerState:t}=e;return!!t.isRtl&&t.touch},style:{[`.${zD.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${zD.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[`.${zD.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:e=>{let{ownerState:t}=e;return t.touch},style:{[`.${zD.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}}))),WD=Ir("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(co((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:wn(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})));let UD=!1;const GD=new Pi;let KD={x:0,y:0};function YD(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t&&t(n,...o),e(n,...o)}}const ZD=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiTooltip"}),{arrow:a=!1,children:i,classes:l,components:s={},componentsProps:u={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:p=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:m=100,enterNextDelay:g=0,enterTouchDelay:v=700,followCursor:b=!1,id:y,leaveDelay:x=0,leaveTouchDelay:w=1500,onClose:C,onOpen:S,open:k,placement:M="bottom",PopperComponent:R,PopperProps:P={},slotProps:I={},slots:A={},title:T,TransitionComponent:$,TransitionProps:E,...D}=r,O=e.isValidElement(i)?i:(0,Tr.jsx)("span",{children:i}),_=Lr(),F=ni(),[L,j]=e.useState(),[N,z]=e.useState(null),B=e.useRef(!1),H=f||b,V=Ii(),W=Ii(),U=Ii(),G=Ii(),[K,Y]=es({controlled:k,default:!1,name:"Tooltip",state:"open"});let Z=K;const q=p$(y),X=e.useRef(),Q=ic((()=>{void 0!==X.current&&(document.body.style.WebkitUserSelect=X.current,X.current=void 0),G.clear()}));e.useEffect((()=>Q),[Q]);const J=e=>{GD.clear(),UD=!0,Y(!0),S&&!Z&&S(e)},ee=ic((e=>{GD.start(800+x,(()=>{UD=!1})),Y(!1),C&&Z&&C(e),V.start(_.transitions.duration.shortest,(()=>{B.current=!1}))})),te=e=>{B.current&&"touchstart"!==e.type||(L&&L.removeAttribute("title"),W.clear(),U.clear(),m||UD&&g?W.start(UD?g:m,(()=>{J(e)})):J(e))},ne=e=>{W.clear(),U.start(x,(()=>{ee(e)}))},[,re]=e.useState(!1),oe=e=>{ac(e.target)||(re(!1),ne(e))},ae=e=>{L||j(e.currentTarget),ac(e.target)&&(re(!0),te(e))},ie=e=>{B.current=!0;const t=O.props;t.onTouchStart&&t.onTouchStart(e)},le=e=>{ie(e),U.clear(),V.clear(),Q(),X.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",G.start(v,(()=>{document.body.style.WebkitUserSelect=X.current,te(e)}))},se=e=>{O.props.onTouchEnd&&O.props.onTouchEnd(e),Q(),U.start(w,(()=>{ee(e)}))};e.useEffect((()=>{if(Z)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&ee(e)}}),[ee,Z]);const ue=qo(Ja(O),j,n);T||0===T||(Z=!1);const ce=e.useRef(),de={},fe="string"===typeof T;c?(de.title=Z||!fe||p?null:T,de["aria-describedby"]=Z?q:null):(de["aria-label"]=fe?T:null,de["aria-labelledby"]=Z&&!fe?q:null);const he={...de,...D,...O.props,className:o(D.className,O.props.className),onTouchStart:ie,ref:ue,...b?{onMouseMove:e=>{const t=O.props;t.onMouseMove&&t.onMouseMove(e),KD={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}};const me={};h||(he.onTouchStart=le,he.onTouchEnd=se),p||(he.onMouseOver=YD(te,he.onMouseOver),he.onMouseLeave=YD(ne,he.onMouseLeave),H||(me.onMouseOver=te,me.onMouseLeave=ne)),d||(he.onFocus=YD(ae,he.onFocus),he.onBlur=YD(oe,he.onBlur),H||(me.onFocus=ae,me.onBlur=oe));const ge={...r,isRtl:F,arrow:a,disableInteractive:H,placement:M,PopperComponentProp:R,touch:B.current},ve="function"===typeof I.popper?I.popper(ge):I.popper,be=e.useMemo((()=>{let e=[{name:"arrow",enabled:Boolean(N),options:{element:N,padding:4}}];return P.popperOptions?.modifiers&&(e=e.concat(P.popperOptions.modifiers)),ve?.popperOptions?.modifiers&&(e=e.concat(ve.popperOptions.modifiers)),{...P.popperOptions,...ve?.popperOptions,modifiers:e}}),[N,P.popperOptions,ve?.popperOptions]),ye=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return pe({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${po(a.split("-")[0])}`],arrow:["arrow"]},ND,t)})(ge),xe="function"===typeof I.transition?I.transition(ge):I.transition,we={slots:{popper:s.Popper,transition:s.Transition??$,tooltip:s.Tooltip,arrow:s.Arrow,...A},slotProps:{arrow:I.arrow??u.arrow,popper:{...P,...ve??u.popper},tooltip:I.tooltip??u.tooltip,transition:{...E,...xe??u.transition}}},[Ce,Se]=nl("popper",{elementType:HD,externalForwardedProps:we,ownerState:ge,className:o(ye.popper,P?.className)}),[ke,Me]=nl("transition",{elementType:qi,externalForwardedProps:we,ownerState:ge}),[Re,Pe]=nl("tooltip",{elementType:VD,className:ye.tooltip,externalForwardedProps:we,ownerState:ge}),[Ie,Ae]=nl("arrow",{elementType:WD,className:ye.arrow,externalForwardedProps:we,ownerState:ge,ref:z});return(0,Tr.jsxs)(e.Fragment,{children:[e.cloneElement(O,he),(0,Tr.jsx)(Ce,{as:R??iv,placement:M,anchorEl:b?{getBoundingClientRect:()=>({top:KD.y,left:KD.x,right:KD.x,bottom:KD.y,width:0,height:0})}:L,popperRef:ce,open:!!L&&Z,id:q,transition:!0,...me,...Se,popperOptions:be,children:e=>{let{TransitionProps:t}=e;return(0,Tr.jsx)(ke,{timeout:_.transitions.duration.shorter,...t,...Me,children:(0,Tr.jsxs)(Re,{...Pe,children:[T,a?(0,Tr.jsx)(Ie,{...Ae}):null]})})}})]})})),qD=ZD,XD=["sortingOrder"],QD=e.memo((function(e){const{sortingOrder:t}=e,n=Ai(e,XD),r=rw(),[o]=t,a="asc"===o?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return a?(0,Tr.jsx)(a,fe({},n)):null})),JD=ms((0,Tr.jsx)("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),eO=ms((0,Tr.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),tO=ms((0,Tr.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight"),nO=ms((0,Tr.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),rO=ms((0,Tr.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),oO=ms((0,Tr.jsx)("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"}),"FilterAlt"),aO=ms((0,Tr.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search"),iO=(ms((0,Tr.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu"),ms((0,Tr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),ms((0,Tr.jsx)("path",{d:"M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-7 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1z"}),"ColumnIcon")),lO=ms((0,Tr.jsx)("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"}),"Separator"),sO=ms((0,Tr.jsx)("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"}),"ViewHeadline"),uO=ms((0,Tr.jsx)("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"}),"TableRows"),cO=ms((0,Tr.jsx)("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"}),"ViewStream"),dO=ms((0,Tr.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"TripleDotsVertical"),pO=ms((0,Tr.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),fO=ms((0,Tr.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),hO=ms((0,Tr.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove"),mO=ms((0,Tr.jsx)("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"}),"Load"),gO=ms((0,Tr.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"Drag"),vO=ms((0,Tr.jsx)("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt"),bO=ms((0,Tr.jsx)("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),yO=ms((0,Tr.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),xO=ms((0,Tr.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),wO=ms((0,Tr.jsx)("g",{children:(0,Tr.jsx)("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})}),"ViewColumn"),CO=ms((0,Tr.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"}),"Clear"),SO=(ms((0,Tr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),ms((0,Tr.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"}),"Delete")),kO=["native"];const MO=fe({},{booleanCellTrueIcon:bO,booleanCellFalseIcon:pO,columnMenuIcon:dO,openFilterButtonIcon:rO,filterPanelDeleteIcon:pO,columnFilteredIcon:oO,columnSelectorIcon:iO,columnUnsortedIcon:QD,columnSortedAscendingIcon:JD,columnSortedDescendingIcon:eO,columnResizeIcon:lO,densityCompactIcon:sO,densityStandardIcon:uO,densityComfortableIcon:cO,exportIcon:vO,moreActionsIcon:yO,treeDataCollapseIcon:nO,treeDataExpandIcon:tO,groupingCriteriaCollapseIcon:nO,groupingCriteriaExpandIcon:tO,detailPanelExpandIcon:fO,detailPanelCollapseIcon:hO,rowReorderIcon:gO,quickFilterIcon:aO,quickFilterClearIcon:pO,columnMenuHideIcon:xO,columnMenuSortAscendingIcon:JD,columnMenuSortDescendingIcon:eO,columnMenuFilterIcon:oO,columnMenuManageColumnsIcon:wO,columnMenuClearIcon:CO,loadIcon:mO,filterPanelAddIcon:fO,filterPanelRemoveAllIcon:SO,columnReorderIcon:gO},{baseBadge:CD,baseCheckbox:jD,baseDivider:kv,baseTextField:Ps,baseFormControl:Ga,baseSelect:Cs,baseButton:Lc,baseIconButton:Fp,baseInputAdornment:Os,baseTooltip:qD,basePopper:iv,baseInputLabel:Ba,baseSelectOption:function(e){let{native:t}=e,n=Ai(e,kO);return t?(0,Tr.jsx)("option",fe({},n)):(0,Tr.jsx)(xy,fe({},n))},baseChip:sd}),RO=fe({},MO,{cell:ME,skeletonCell:ZA,columnHeaderFilterIconButton:function(t){const{counter:n,field:r,onClick:o}=t,a=Uw(),i=rw(),l=(e=>{const{classes:t}=e;return qu({icon:["filterIcon"]},Dx,t)})(fe({},t,{classes:i.classes})),s=Gx(a,Hw),u=Ys(),c=Ys(),d=e.useCallback((e=>{e.preventDefault(),e.stopPropagation();const{open:t,openedPanelValue:n}=Hw(a.current.state);t&&n===Vw.filters?a.current.hideFilterPanel():a.current.showFilterPanel(void 0,c,u),o&&o(a.current.getColumnHeaderParams(r),e)}),[a,r,o,c,u]);if(!n)return null;const p=s.open&&s.labelId===u,f=(0,Tr.jsx)(i.slots.baseIconButton,fe({id:u,onClick:d,color:"default","aria-label":a.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?c:void 0},i.slotProps?.baseIconButton,{children:(0,Tr.jsx)(i.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return(0,Tr.jsx)(i.slots.baseTooltip,fe({title:a.current.getLocaleText("columnHeaderFiltersTooltipActive")(n),enterDelay:1e3},i.slotProps?.baseTooltip,{children:(0,Tr.jsxs)(QA,{children:[n>1&&(0,Tr.jsx)(i.slots.baseBadge,{badgeContent:n,color:"default",children:f}),1===n&&f]})}))},columnHeaderSortIcon:tT,columnMenu:fD,columnHeaders:qE,detailPanels:function(e){return null},footer:sT,footerRowCount:dT,toolbar:null,pinnedRows:function(e){return null},loadingOverlay:qT,noResultsOverlay:hD,noRowsOverlay:XT,pagination:I$,filterPanel:Q$,columnsPanel:function(e){const t=rw();return(0,Tr.jsx)(j$,fe({},e,{children:(0,Tr.jsx)(lE,fe({},t.slotProps?.columnsManagement))}))},columnsManagement:lE,panel:vE,row:AE});function PO(t){return e.useMemo((()=>function(e){const t=Object.keys(e);if(!t.some((e=>e.startsWith("aria-")||e.startsWith("data-"))))return e;const n={},r=e.forwardedProps??{};for(let o=0;o<t.length;o+=1){const a=t[o];a.startsWith("aria-")||a.startsWith("data-")?r[a]=e[a]:n[a]=e[a]}return n.forwardedProps=r,n}(t)),[t])}const IO={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",unstable_listView:!1},AO=RO,TO=t=>{const n=PO(gu({props:t,name:"MuiDataGrid"})),r=e.useMemo((()=>fe({},DA,n.localeText)),[n.localeText]),o=e.useMemo((()=>function(e){let{defaultSlots:t,slots:n}=e;const r=n;if(!r||0===Object.keys(r).length)return t;const o=fe({},t);return Object.keys(r).forEach((e=>{const t=e;void 0!==r[t]&&(o[t]=r[t])})),o}({defaultSlots:AO,slots:n.slots})),[n.slots]),a=e.useMemo((()=>Object.keys(qI).reduce(((e,t)=>(e[t]=n[t]??qI[t],e)),{})),[n]);return e.useMemo((()=>fe({},n,a,{localeText:r,slots:o},IO)),[n,r,o,a])},$O={hooks:{useGridAriaAttributes:()=>{const e=Yx(),t=rw(),n=Gx(e,Ow),r=Gx(e,$M),o=Gx(e,Jk),a=Gx(e,VS);return{role:"grid","aria-colcount":n.length,"aria-rowcount":o+1+a+r,"aria-multiselectable":sP(t)}},useGridRowAriaAttributes:()=>{const t=Yx(),n=Gx(t,tR),r=Gx(t,Jk);return e.useCallback(((e,o)=>{const a={},i=o+r+2;return a["aria-rowindex"]=i,t.current.isRowSelectable(e.id)&&(a["aria-selected"]=void 0!==n[e.id]),a}),[t,n,r])}}};const EO=e.forwardRef((function(e,t){const n=TO(e),r=EA(n.apiRef,n);return(0,Tr.jsx)(dP,{privateApiRef:r,configuration:$O,props:n,children:(0,Tr.jsxs)(Rw,fe({className:n.className,style:n.style,sx:n.sx,ref:t},n.forwardedProps,{children:[(0,Tr.jsx)(Kw,{}),(0,Tr.jsx)(aP,{}),(0,Tr.jsx)(iP,{})]}))})})),DO=e.memo(EO);function OO(e){const{attributes:t}=e,{MuiAttributes:n={},container:r={}}=t;return(0,Tr.jsx)("div",{...r,children:(0,Tr.jsx)(DO,{...n})})}EO.propTypes={apiRef:Fs().shape({current:Fs().object.isRequired}),"aria-label":Fs().string,"aria-labelledby":Fs().string,autoHeight:Fs().bool,autoPageSize:Fs().bool,autosizeOnMount:Fs().bool,autosizeOptions:Fs().shape({columns:Fs().arrayOf(Fs().string),expand:Fs().bool,includeHeaders:Fs().bool,includeOutliers:Fs().bool,outliersFactor:Fs().number}),cellModesModel:Fs().object,checkboxSelection:Fs().bool,classes:Fs().object,clipboardCopyCellDelimiter:Fs().string,columnBufferPx:Fs().number,columnGroupHeaderHeight:Fs().number,columnGroupingModel:Fs().arrayOf(Fs().object),columnHeaderHeight:Fs().number,columns:Fs().arrayOf(Fs().object).isRequired,columnVisibilityModel:Fs().object,density:Fs().oneOf(["comfortable","compact","standard"]),disableAutosize:Fs().bool,disableColumnFilter:Fs().bool,disableColumnMenu:Fs().bool,disableColumnResize:Fs().bool,disableColumnSelector:Fs().bool,disableColumnSorting:Fs().bool,disableDensitySelector:Fs().bool,disableEval:Fs().bool,disableMultipleRowSelection:Fs().bool,disableRowSelectionOnClick:Fs().bool,disableVirtualization:Fs().bool,editMode:Fs().oneOf(["cell","row"]),estimatedRowCount:Fs().number,experimentalFeatures:Fs().shape({warnIfFocusStateIsNotSynced:Fs().bool}),filterDebounceMs:Fs().number,filterMode:Fs().oneOf(["client","server"]),filterModel:Fs().shape({items:Fs().arrayOf(Fs().shape({field:Fs().string.isRequired,id:Fs().oneOfType([Fs().number,Fs().string]),operator:Fs().string.isRequired,value:Fs().any})).isRequired,logicOperator:Fs().oneOf(["and","or"]),quickFilterExcludeHiddenColumns:Fs().bool,quickFilterLogicOperator:Fs().oneOf(["and","or"]),quickFilterValues:Fs().array}),forwardedProps:Fs().object,getCellClassName:Fs().func,getDetailPanelContent:Fs().func,getEstimatedRowHeight:Fs().func,getRowClassName:Fs().func,getRowHeight:Fs().func,getRowId:Fs().func,getRowSpacing:Fs().func,hideFooter:Fs().bool,hideFooterPagination:Fs().bool,hideFooterSelectedRowCount:Fs().bool,ignoreDiacritics:Fs().bool,ignoreValueFormatterDuringExport:Fs().oneOfType([Fs().shape({clipboardExport:Fs().bool,csvExport:Fs().bool}),Fs().bool]),indeterminateCheckboxAction:Fs().oneOf(["deselect","select"]),initialState:Fs().object,isCellEditable:Fs().func,isRowSelectable:Fs().func,keepNonExistentRowsSelected:Fs().bool,loading:Fs().bool,localeText:Fs().object,logger:Fs().shape({debug:Fs().func.isRequired,error:Fs().func.isRequired,info:Fs().func.isRequired,warn:Fs().func.isRequired}),logLevel:Fs().oneOf(["debug","error","info","warn",!1]),nonce:Fs().string,onCellClick:Fs().func,onCellDoubleClick:Fs().func,onCellEditStart:Fs().func,onCellEditStop:Fs().func,onCellKeyDown:Fs().func,onCellModesModelChange:Fs().func,onClipboardCopy:Fs().func,onColumnHeaderClick:Fs().func,onColumnHeaderContextMenu:Fs().func,onColumnHeaderDoubleClick:Fs().func,onColumnHeaderEnter:Fs().func,onColumnHeaderLeave:Fs().func,onColumnHeaderOut:Fs().func,onColumnHeaderOver:Fs().func,onColumnOrderChange:Fs().func,onColumnResize:Fs().func,onColumnVisibilityModelChange:Fs().func,onColumnWidthChange:Fs().func,onDensityChange:Fs().func,onFilterModelChange:Fs().func,onMenuClose:Fs().func,onMenuOpen:Fs().func,onPaginationMetaChange:Fs().func,onPaginationModelChange:Fs().func,onPreferencePanelClose:Fs().func,onPreferencePanelOpen:Fs().func,onProcessRowUpdateError:Fs().func,onResize:Fs().func,onRowClick:Fs().func,onRowCountChange:Fs().func,onRowDoubleClick:Fs().func,onRowEditStart:Fs().func,onRowEditStop:Fs().func,onRowModesModelChange:Fs().func,onRowSelectionModelChange:Fs().func,onSortModelChange:Fs().func,onStateChange:Fs().func,pageSizeOptions:Fs().arrayOf(Fs().oneOfType([Fs().number,Fs().shape({label:Fs().string.isRequired,value:Fs().number.isRequired})]).isRequired),pagination:Fs().oneOf([!0]),paginationMeta:Fs().shape({hasNextPage:Fs().bool}),paginationMode:Fs().oneOf(["client","server"]),paginationModel:Fs().shape({page:Fs().number.isRequired,pageSize:Fs().number.isRequired}),processRowUpdate:Fs().func,resizeThrottleMs:Fs().number,rowBufferPx:Fs().number,rowCount:Fs().number,rowHeight:Fs().number,rowModesModel:Fs().object,rowPositionsDebounceMs:Fs().number,rows:Fs().arrayOf(Fs().object),rowSelection:Fs().bool,rowSelectionModel:Fs().oneOfType([Fs().arrayOf(Fs().oneOfType([Fs().number,Fs().string]).isRequired),Fs().number,Fs().string]),rowSpacingType:Fs().oneOf(["border","margin"]),scrollbarSize:Fs().number,showCellVerticalBorder:Fs().bool,showColumnVerticalBorder:Fs().bool,slotProps:Fs().object,slots:Fs().object,sortingMode:Fs().oneOf(["client","server"]),sortingOrder:Fs().arrayOf(Fs().oneOf(["asc","desc"])),sortModel:Fs().arrayOf(Fs().shape({field:Fs().string.isRequired,sort:Fs().oneOf(["asc","desc"])})),sx:Fs().oneOfType([Fs().arrayOf(Fs().oneOfType([Fs().func,Fs().object,Fs().bool])),Fs().func,Fs().object]),unstable_rowSpanning:Fs().bool,virtualizeColumnsWithAutoRowHeight:Fs().bool},OO.defaultProps={attributes:{}};var _O=n(446),FO=n.n(_O),LO=n(6865),jO=n.n(LO),NO=n(8988),zO=n.n(NO),BO=n(4443),HO=n.n(BO),VO=n(1525),WO=n.n(VO),UO=n(7076),GO=n.n(UO);FO().extend(HO()),FO().extend(jO()),FO().extend(WO()),FO().extend(GO());const KO={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"},YO={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"},ZO=["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("\n"),qO=["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("\n");class XO{constructor(){var e=this;let{locale:t,formats:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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=KO,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasUTCPlugin=()=>"undefined"!==typeof FO().utc,this.hasTimezonePlugin=()=>"undefined"!==typeof FO().tz,this.isSame=(e,t,n)=>{const r=this.setTimezone(t,this.getTimezone(e));return e.format(n)===r.format(n)},this.cleanTimezone=e=>{switch(e){case"default":return;case"system":return FO().tz.guess();default:return e}},this.createSystemDate=e=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const t=FO().tz.guess();return"UTC"!==t?FO().tz(e,t):FO()(e)}return FO()(e)},this.createUTCDate=e=>{if(!this.hasUTCPlugin())throw new Error(ZO);return FO().utc(e)},this.createTZDate=(e,t)=>{if(!this.hasUTCPlugin())throw new Error(ZO);if(!this.hasTimezonePlugin())throw new Error(qO);const n=void 0!==e&&!e.endsWith("Z");return FO()(e).tz(this.cleanTimezone(t),n)},this.getLocaleFormats=()=>{const e=FO().Ls;let t=e[this.locale||"en"];return void 0===t&&(t=e.en),t.formats},this.adjustOffset=e=>{if(!this.hasTimezonePlugin())return e;const t=this.getTimezone(e);if("UTC"!==t){const n=e.tz(this.cleanTimezone(t),!0);if(n.$offset===(e.$offset??0))return e;e.$offset=n.$offset}return e},this.date=function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return null===t?null:(n="UTC"===r?e.createUTCDate(t):"system"===r||"default"===r&&!e.hasTimezonePlugin()?e.createSystemDate(t):e.createTZDate(t,r),void 0===e.locale?n:n.locale(e.locale))},this.getInvalidDate=()=>FO()(new Date("Invalid date")),this.getTimezone=e=>{if(this.hasTimezonePlugin()){const t=e.$x?.$timezone;if(t)return t}return this.hasUTCPlugin()&&e.isUTC()?"UTC":"system"},this.setTimezone=(e,t)=>{if(this.getTimezone(e)===t)return e;if("UTC"===t){if(!this.hasUTCPlugin())throw new Error(ZO);return e.utc()}if("system"===t)return e.local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(qO)}return FO().tz(e,this.cleanTimezone(t))},this.toJsDate=e=>e.toDate(),this.parse=(e,t)=>""===e?null:this.dayjs(e,t,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=e=>{const t=this.getLocaleFormats();return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,((e,n,r)=>{const o=r&&r.toUpperCase();return n||t[r]||t[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,((e,t,n)=>t||n.slice(1)))}))},this.isValid=e=>null!=e&&e.isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>this.dayjs(e).format(t),this.formatNumber=e=>e,this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.toDate().getTime()===t.toDate().getTime(),this.isSameYear=(e,t)=>this.isSame(e,t,"YYYY"),this.isSameMonth=(e,t)=>this.isSame(e,t,"YYYY-MM"),this.isSameDay=(e,t)=>this.isSame(e,t,"YYYY-MM-DD"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e>t,this.isAfterYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()>t.utc():e.isAfter(t,"year"),this.isAfterDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()>t.utc():e.isAfter(t,"day"),this.isBefore=(e,t)=>e<t,this.isBeforeYear=(e,t)=>this.hasUTCPlugin()?!this.isSameYear(e,t)&&e.utc()<t.utc():e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>this.hasUTCPlugin()?!this.isSameDay(e,t)&&e.utc()<t.utc():e.isBefore(t,"day"),this.isWithinRange=(e,t)=>{let[n,r]=t;return e>=n&&e<=r},this.startOfYear=e=>this.adjustOffset(e.startOf("year")),this.startOfMonth=e=>this.adjustOffset(e.startOf("month")),this.startOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).startOf("week")),this.startOfDay=e=>this.adjustOffset(e.startOf("day")),this.endOfYear=e=>this.adjustOffset(e.endOf("year")),this.endOfMonth=e=>this.adjustOffset(e.endOf("month")),this.endOfWeek=e=>this.adjustOffset(this.setLocaleToValue(e).endOf("week")),this.endOfDay=e=>this.adjustOffset(e.endOf("day")),this.addYears=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"year"):e.add(t,"year")),this.addMonths=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"month"):e.add(t,"month")),this.addWeeks=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"week"):e.add(t,"week")),this.addDays=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"day"):e.add(t,"day")),this.addHours=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"hour"):e.add(t,"hour")),this.addMinutes=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"minute"):e.add(t,"minute")),this.addSeconds=(e,t)=>this.adjustOffset(t<0?e.subtract(Math.abs(t),"second"):e.add(t,"second")),this.getYear=e=>e.year(),this.getMonth=e=>e.month(),this.getDate=e=>e.date(),this.getHours=e=>e.hour(),this.getMinutes=e=>e.minute(),this.getSeconds=e=>e.second(),this.getMilliseconds=e=>e.millisecond(),this.setYear=(e,t)=>this.adjustOffset(e.set("year",t)),this.setMonth=(e,t)=>this.adjustOffset(e.set("month",t)),this.setDate=(e,t)=>this.adjustOffset(e.set("date",t)),this.setHours=(e,t)=>this.adjustOffset(e.set("hour",t)),this.setMinutes=(e,t)=>this.adjustOffset(e.set("minute",t)),this.setSeconds=(e,t)=>this.adjustOffset(e.set("second",t)),this.setMilliseconds=(e,t)=>this.adjustOffset(e.set("millisecond",t)),this.getDaysInMonth=e=>e.daysInMonth(),this.getWeekArray=e=>{const t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e));let r=0,o=t;const a=[];for(;o<n;){const e=Math.floor(r/7);a[e]=a[e]||[],a[e].push(o),o=this.addDays(o,1),r+=1}return a},this.getWeekNumber=e=>e.week(),this.getYearRange=e=>{let[t,n]=e;const r=this.startOfYear(t),o=this.endOfYear(n),a=[];let i=r;for(;this.isBefore(i,o);)a.push(i),i=this.addYears(i,1);return a},this.dayjs=((e,t)=>t?function(){return e(...arguments).locale(t)}:e)(FO(),t),this.locale=t,this.formats=fe({},YO,n),FO().extend(zO())}getDayOfWeek(e){return e.day()+1}}function QO(t,n){const r=function(){const t=(0,e.useRef)(!0);return t.current?(t.current=!1,!0):t.current}();(0,e.useEffect)((()=>{if(!r)return t()}),n)}function JO(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="DatePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}function e_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="DateTimePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}function t_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},name:a="TimePicker",id:i=""}=n,[l,s]=e.useState(null!==n&&void 0!==n&&n.value?FO()(null===n||void 0===n?void 0:n.value):null);QO((()=>{null!==n&&void 0!==n&&n.value&&s(FO()(null===n||void 0===n?void 0:n.value))}),[null===n||void 0===n?void 0:n.value]);const u=Rx(a);return(0,Tr.jsx)(yu,{dateAdapter:XO,children:(0,Tr.jsx)(u,{value:l,onChange:e=>{s(e),r({id:i,value:e})},...o})})}JO.defaultProps={attributes:{},onChange:null},e_.defaultProps={attributes:{},onChange:null},t_.defaultProps={attributes:{},onChange:null};const n_=ms((0,Tr.jsx)("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),r_=ms((0,Tr.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckBox"),o_=(0,Tr.jsx)(n_,{fontSize:"small"}),a_=(0,Tr.jsx)(r_,{fontSize:"small"});function i_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},options:a=[],MuiBoxAttributes:i={},id:l="",InputProps:s={}}=n,[u,c]=e.useState((null===n||void 0===n?void 0:n.value)&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]){let n=",";null!==t&&void 0!==t&&t.includes(",")?n=",":null!==t&&void 0!==t&&t.includes(";")&&(n=";");const r=new Set(null===t||void 0===t?void 0:t.split(n));return null===e||void 0===e?void 0:e.filter((e=>{let{value:t}=e;return null===r||void 0===r?void 0:r.has(t)}))}return e.find((e=>{let{value:n}=e;return n===t}))}(a,null===n||void 0===n?void 0:n.value,o.multiple)),d=e=>(null===e||void 0===e?void 0:e.value)||(null===e||void 0===e?void 0:e.title)||(null===e||void 0===e?void 0:e.label),p=(0,e.useCallback)(((e,t)=>{if(c(t),t){const e=o.multiple?t.map(d):d(t);r({id:l,value:o.multiple?e.toString():e,option:t})}else r({id:l,value:"",option:t})}),[]);return(0,Tr.jsx)(KC,{...(o.multiple&&(o.renderOption=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selected:n}=arguments.length>2?arguments[2]:void 0;return(0,Tr.jsxs)("li",{...e,children:[(0,Tr.jsx)(jD,{icon:o_,checkedIcon:a_,style:{marginRight:8},checked:n,sx:Px(t.color||"")}),t.title||t.label||t.value]})}),o),disablePortal:!0,options:a,value:u,onChange:p,renderInput:e=>{const t=Sx(s),n={...e.InputProps,...t,startAdornment:(0,Tr.jsxs)(Tr.Fragment,{children:[null===t||void 0===t?void 0:t.startAdornment,e.InputProps.startAdornment," "]}),endAdornment:(0,Tr.jsxs)(Tr.Fragment,{children:[null===t||void 0===t?void 0:t.endAdornment,e.InputProps.endAdornment]})};return(0,Tr.jsx)(Ps,{...e,...i,slotProps:{input:{...n,autoComplete:"new-password"}}})}})}function l_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},id:i=""}=n,[l,s]=e.useState(o.defaultChecked||n.value||!1);QO((()=>{s(n.value)}),[n.value]);return(0,Tr.jsx)(oE,{...a,control:(0,Tr.jsx)(jD,{checked:l,onChange:e=>{s(e.target.checked),r({id:i,value:e.target.checked})},...o,inputProps:{"aria-label":"controlled"}})})}function s_(e){return Hr("MuiSwitch",e)}i_.defaultProps={attributes:{},onChange:null},l_.defaultProps={attributes:{},onChange:null};const u_=Vr("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),c_=Ir("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${po(n.edge)}`],t[`size${po(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${u_.thumb}`]:{width:16,height:16},[`& .${u_.switchBase}`]:{padding:4,[`&.${u_.checked}`]:{transform:"translateX(16px)"}}}}]}),d_=Ir(PD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${u_.input}`]:t.input},"default"!==n.color&&t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${"light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${u_.checked}`]:{transform:"translateX(20px)"},[`&.${u_.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${"light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${u_.checked} + .${u_.track}`]:{opacity:.5},[`&.${u_.disabled} + .${u_.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},[`& .${u_.input}`]:{left:"-100%",width:"300%"}}})),co((e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(fo(["light"])).map((e=>{let[n]=e;return{props:{color:n},style:{[`&.${u_.checked}`]:{color:(t.vars||t).palette[n].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u_.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${n}DisabledColor`]:`${"light"===t.palette.mode?Mn(t.palette[n].main,.62):Sn(t.palette[n].main,.55)}`}},[`&.${u_.checked} + .${u_.track}`]:{backgroundColor:(t.vars||t).palette[n].main}}}}))]}}))),p_=Ir("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(co((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${"light"===t.palette.mode?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)}}))),f_=Ir("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(co((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}))),h_=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiSwitch"}),{className:r,color:a="primary",edge:i=!1,size:l="medium",sx:s,...u}=n,c={...n,color:a,edge:i,size:l},d=(e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l=pe({root:["root",n&&`edge${po(n)}`,`size${po(r)}`],switchBase:["switchBase",`color${po(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s_,t);return{...t,...l}})(c),p=(0,Tr.jsx)(f_,{className:d.thumb,ownerState:c});return(0,Tr.jsxs)(c_,{className:o(d.root,r),sx:s,ownerState:c,children:[(0,Tr.jsx)(d_,{type:"checkbox",icon:p,checkedIcon:p,ref:t,ownerState:c,...u,classes:{...d,root:d.switchBase}}),(0,Tr.jsx)(p_,{className:d.track,ownerState:c})]})})),m_=h_,g_=Ir((e=>{let{color:t,...n}=e;return(0,Tr.jsx)(m_,{...n})}))((e=>{let{theme:t}=e;return{"& .MuiSwitch-switchBase.Mui-checked":{color:e=>e.color||"green","&:hover":{backgroundColor:e=>wn(e.color||"green",t.palette.action.hoverOpacity)}},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:e=>e.color||"green"}}}));function v_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},color:i="",id:l=""}=n,[s,u]=e.useState(o.defaultValue||n.value||!1);QO((()=>{u(n.value)}),[n.value]);const c=i?g_:m_;return(0,Tr.jsx)(oE,{...a,control:(0,Tr.jsx)(c,{checked:s,onChange:e=>{u(e.target.checked),r({id:l,value:e.target.checked})},...o,inputProps:{"aria-label":"controlled"}})})}v_.defaultProps={attributes:{},onChange:null};const b_=ms((0,Tr.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),y_=ms((0,Tr.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),x_=Ir("span",{shouldForwardProp:Pr})({position:"relative",display:"flex"}),w_=Ir(b_)({transform:"scale(1)"}),C_=Ir(y_)(co((e=>{let{theme:t}=e;return{left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]}})));const S_=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return(0,Tr.jsxs)(x_,{className:n.root,ownerState:o,children:[(0,Tr.jsx)(w_,{fontSize:r,className:n.background,ownerState:o}),(0,Tr.jsx)(C_,{fontSize:r,className:n.dot,ownerState:o})]})},k_=dl;const M_=e.createContext(void 0);function R_(e){return Hr("MuiRadio",e)}const P_=Vr("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),I_=Ir(PD,{shouldForwardProp:e=>Pr(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${po(n.size)}`],t[`color${po(n.color)}`]]}})(co((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,[`&.${P_.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette.action.active,t.palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[n].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:wn(t.palette[n].main,t.palette.action.hoverOpacity)}}}})),...Object.entries(t.palette).filter(fo()).map((e=>{let[n]=e;return{props:{color:n,disabled:!1},style:{[`&.${P_.checked}`]:{color:(t.vars||t).palette[n].main}}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}})));const A_=(0,Tr.jsx)(S_,{checked:!0}),T_=(0,Tr.jsx)(S_,{}),$_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:i=A_,color:l="primary",icon:s=T_,name:u,onChange:c,size:d="medium",className:p,disabled:f,disableRipple:h=!1,...m}=r,g=Zo();let v=f;g&&"undefined"===typeof v&&(v=g.disabled),v??=!1;const b={...r,disabled:v,disableRipple:h,color:l,size:d},y=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${po(n)}`,"medium"!==r&&`size${po(r)}`]};return{...t,...pe(o,R_,t)}})(b),x=e.useContext(M_);let w=a;const C=k_(c,x&&x.onChange);let S=u;return x&&("undefined"===typeof w&&(w=function(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}(x.value,r.value)),"undefined"===typeof S&&(S=x.name)),(0,Tr.jsx)(I_,{type:"radio",icon:e.cloneElement(s,{fontSize:T_.props.fontSize??d}),checkedIcon:e.cloneElement(i,{fontSize:A_.props.fontSize??d}),disabled:v,ownerState:b,classes:y,name:S,checked:w,onChange:C,ref:n,className:o(y.root,p),...m})})),E_=$_;function D_(e){return Hr("MuiFormGroup",e)}Vr("MuiFormGroup",["root","row","error"]);const O_=Ir("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),__=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiFormGroup"}),{className:r,row:a=!1,...i}=n,l=Ko({props:n,muiFormControl:Zo(),states:["error"]}),s={...n,row:a,error:l.error},u=(e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},D_,t)})(s);return(0,Tr.jsx)(O_,{className:o(u.root,r),ownerState:s,ref:t,...i})})),F_=__;function L_(e){return Hr("MuiRadioGroup",e)}Vr("MuiRadioGroup",["root","row","error"]);const j_=e.forwardRef((function(t,n){const{actions:r,children:a,className:i,defaultValue:l,name:s,onChange:u,value:c,...d}=t,p=e.useRef(null),f=(e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},L_,t)})(t),[h,m]=es({controlled:c,default:l,name:"RadioGroup"});e.useImperativeHandle(r,(()=>({focus:()=>{let e=p.current.querySelector("input:not(:disabled):checked");e||(e=p.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const g=qo(n,p),v=p$(s),b=e.useMemo((()=>({name:v,onChange(e){m(e.target.value),u&&u(e,e.target.value)},value:h})),[v,u,m,h]);return(0,Tr.jsx)(M_.Provider,{value:b,children:(0,Tr.jsx)(F_,{role:"radiogroup",ref:g,className:o(f.root,i),...d,children:a})})})),N_=j_;function z_(t){let{attributes:n,onChange:r}=t;const{MuiAttributes:o={},MuiFCLAttributes:a={},MuiRGAttributes:i={},id:l="",MuiFLAttributes:s={},MuiFCLabels:u=[],MuiFLabel:c="",MuiFLabelIcon:d={}}=n,[p,f]=e.useState("");(0,e.useEffect)((()=>{(n.value||o.defaultValue)&&f(n.value||o.defaultValue)}),[]),QO((()=>{f(n.value)}),[n.value]);const h=(0,e.useMemo)((()=>d&&d.icon?(0,Tr.jsxs)(Mo,{sx:{display:"flex",width:"100%"},children:[d&&d.icon&&(0,Tr.jsx)(Ao,{...d.MuiFLabelIconAttributes,children:d.icon},d.icon),(0,Tr.jsx)(La,{...s,id:"radio-buttons-group-label",children:c})]}):(0,Tr.jsx)(La,{...s,id:"radio-buttons-group-label",children:c})),[]);return(0,Tr.jsxs)(Ga,{children:[c&&h,(0,Tr.jsx)(N_,{"aria-labelledby":"radio-buttons-group-label",name:"radio-buttons-group",...i,value:p,onChange:e=>{f(e.target.value),r({id:l,value:e.target.value})},children:u.map((e=>(0,Tr.jsx)(oE,{...a,value:e,control:(0,Tr.jsx)(E_,{...o}),label:e})))})]})}function B_(e){return Hr("MuiStepper",e)}z_.defaultProps={attributes:{},onChange:null};Vr("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const H_=e.createContext({});const V_=H_,W_=e.createContext({});const U_=W_;function G_(e){return Hr("MuiStepConnector",e)}Vr("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const K_=Ir("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),Y_=Ir("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${po(n.orientation)}`]]}})(co((e=>{let{theme:t}=e;const n="light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600];return{display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:n,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}}))),Z_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepConnector"}),{className:a,...i}=r,{alternativeLabel:l,orientation:s="horizontal"}=e.useContext(V_),{active:u,disabled:c,completed:d}=e.useContext(U_),p={...r,alternativeLabel:l,orientation:s,active:u,completed:d,disabled:c},f=(e=>{const{classes:t,orientation:n,alternativeLabel:r,active:o,completed:a,disabled:i}=e;return pe({root:["root",n,r&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line",`line${po(n)}`]},G_,t)})(p);return(0,Tr.jsx)(K_,{className:o(f.root,a),ref:n,ownerState:p,...i,children:(0,Tr.jsx)(Y_,{className:f.line,ownerState:p})})})),q_=Z_,X_=Ir("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),Q_=(0,Tr.jsx)(q_,{}),J_=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:i=!1,children:l,className:s,component:u="div",connector:c=Q_,nonLinear:d=!1,orientation:p="horizontal",...f}=r,h={...r,nonLinear:d,alternativeLabel:i,orientation:p,component:u},m=(e=>{const{orientation:t,nonLinear:n,alternativeLabel:r,classes:o}=e;return pe({root:["root",t,n&&"nonLinear",r&&"alternativeLabel"]},B_,o)})(h),g=e.Children.toArray(l).filter(Boolean),v=g.map(((t,n)=>e.cloneElement(t,{index:n,last:n+1===g.length,...t.props}))),b=e.useMemo((()=>({activeStep:a,alternativeLabel:i,connector:c,nonLinear:d,orientation:p})),[a,i,c,d,p]);return(0,Tr.jsx)(V_.Provider,{value:b,children:(0,Tr.jsx)(X_,{as:u,ownerState:h,className:o(m.root,s),ref:n,...f,children:v})})})),eF=J_;function tF(e){return Hr("MuiStep",e)}Vr("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const nF=Ir("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}]}),rF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStep"}),{active:a,children:i,className:l,component:s="div",completed:u,disabled:c,expanded:d=!1,index:p,last:f,...h}=r,{activeStep:m,connector:g,alternativeLabel:v,orientation:b,nonLinear:y}=e.useContext(V_);let[x=!1,w=!1,C=!1]=[a,u,c];m===p?x=void 0===a||a:!y&&m>p?w=void 0===u||u:!y&&m<p&&(C=void 0===c||c);const S=e.useMemo((()=>({index:p,last:f,expanded:d,icon:p+1,active:x,completed:w,disabled:C})),[p,f,d,x,w,C]),k={...r,active:x,orientation:b,alternativeLabel:v,completed:w,disabled:C,expanded:d,component:s},M=(e=>{const{classes:t,orientation:n,alternativeLabel:r,completed:o}=e;return pe({root:["root",n,r&&"alternativeLabel",o&&"completed"]},tF,t)})(k),R=(0,Tr.jsxs)(nF,{as:s,className:o(M.root,l),ref:n,ownerState:k,...h,children:[g&&v&&0!==p?g:null,i]});return(0,Tr.jsx)(U_.Provider,{value:S,children:g&&!v&&0!==p?(0,Tr.jsxs)(e.Fragment,{children:[g,R]}):R})})),oF=rF,aF=ms((0,Tr.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),iF=ms((0,Tr.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function lF(e){return Hr("MuiStepIcon",e)}const sF=Vr("MuiStepIcon",["root","active","completed","error","text"]);var uF;const cF=Ir(hs,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(co((e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${sF.completed}`]:{color:(t.vars||t).palette.primary.main},[`&.${sF.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${sF.error}`]:{color:(t.vars||t).palette.error.main}}}))),dF=Ir("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(co((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}}))),pF=e.forwardRef((function(e,t){const n=Dr({props:e,name:"MuiStepIcon"}),{active:r=!1,className:a,completed:i=!1,error:l=!1,icon:s,...u}=n,c={...n,active:r,completed:i,error:l},d=(e=>{const{classes:t,active:n,completed:r,error:o}=e;return pe({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},lF,t)})(c);if("number"===typeof s||"string"===typeof s){const e=o(a,d.root);return l?(0,Tr.jsx)(cF,{as:iF,className:e,ref:t,ownerState:c,...u}):i?(0,Tr.jsx)(cF,{as:aF,className:e,ref:t,ownerState:c,...u}):(0,Tr.jsxs)(cF,{className:e,ref:t,ownerState:c,...u,children:[uF||(uF=(0,Tr.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,Tr.jsx)(dF,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:c,children:s})]})}return s})),fF=pF;function hF(e){return Hr("MuiStepLabel",e)}const mF=Vr("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),gF=Ir("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${mF.alternativeLabel}`]:{flexDirection:"column"},[`&.${mF.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),vF=Ir("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(co((e=>{let{theme:t}=e;return{...t.typography.body2,display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${mF.active}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${mF.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${mF.alternativeLabel}`]:{marginTop:16},[`&.${mF.error}`]:{color:(t.vars||t).palette.error.main}}}))),bF=Ir("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({flexShrink:0,display:"flex",paddingRight:8,[`&.${mF.alternativeLabel}`]:{paddingRight:0}}),yF=Ir("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(co((e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${mF.alternativeLabel}`]:{textAlign:"center"}}}))),xF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepLabel"}),{children:a,className:i,componentsProps:l={},error:s=!1,icon:u,optional:c,slots:d={},slotProps:p={},StepIconComponent:f,StepIconProps:h,...m}=r,{alternativeLabel:g,orientation:v}=e.useContext(V_),{active:b,disabled:y,completed:x,icon:w}=e.useContext(U_),C=u||w;let S=f;C&&!S&&(S=fF);const k={...r,active:b,alternativeLabel:g,completed:x,disabled:y,error:s,orientation:v},M=(e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return pe({root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},hF,t)})(k),R={slots:d,slotProps:{stepIcon:h,...l,...p}},[P,I]=nl("label",{elementType:vF,externalForwardedProps:R,ownerState:k}),[A,T]=nl("stepIcon",{elementType:S,externalForwardedProps:R,ownerState:k});return(0,Tr.jsxs)(gF,{className:o(M.root,i),ref:n,ownerState:k,...m,children:[C||A?(0,Tr.jsx)(bF,{className:M.iconContainer,ownerState:k,children:(0,Tr.jsx)(A,{completed:x,active:b,error:s,icon:C,...T})}):null,(0,Tr.jsxs)(yF,{className:M.labelContainer,ownerState:k,children:[a?(0,Tr.jsx)(P,{...I,className:o(M.label,I?.className),children:a}):null,c]})]})}));xF&&(xF.muiName="StepLabel");const wF=xF;function CF(e){return Hr("MuiCollapse",e)}Vr("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const SF=Ir("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})(co((e=>{let{theme:t}=e;return{height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:e=>{let{ownerState:t}=e;return"exited"===t.state&&!t.in&&"0px"===t.collapsedSize},style:{visibility:"hidden"}}]}}))),kF=Ir("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),MF=Ir("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),RF=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiCollapse"}),{addEndListener:a,children:i,className:l,collapsedSize:s="0px",component:u,easing:c,in:d,onEnter:p,onEntered:f,onEntering:h,onExit:m,onExited:g,onExiting:v,orientation:b="vertical",style:y,timeout:x=tr.standard,TransitionComponent:w=Vi,...C}=r,S={...r,orientation:b,collapsedSize:s},k=(e=>{const{orientation:t,classes:n}=e;return pe({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},CF,n)})(S),M=Lr(),R=Ii(),P=e.useRef(null),I=e.useRef(),A="number"===typeof s?`${s}px`:s,T="horizontal"===b,$=T?"width":"height",E=e.useRef(null),D=qo(n,E),O=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},_=()=>P.current?P.current[T?"clientWidth":"clientHeight"]:0,F=O(((e,t)=>{P.current&&T&&(P.current.style.position="absolute"),e.style[$]=A,p&&p(e,t)})),L=O(((e,t)=>{const n=_();P.current&&T&&(P.current.style.position="");const{duration:r,easing:o}=Ui({style:y,timeout:x,easing:c},{mode:"enter"});if("auto"===x){const t=M.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,I.current=t}else e.style.transitionDuration="string"===typeof r?r:`${r}ms`;e.style[$]=`${n}px`,e.style.transitionTimingFunction=o,h&&h(e,t)})),j=O(((e,t)=>{e.style[$]="auto",f&&f(e,t)})),N=O((e=>{e.style[$]=`${_()}px`,m&&m(e)})),z=O(g),B=O((e=>{const t=_(),{duration:n,easing:r}=Ui({style:y,timeout:x,easing:c},{mode:"exit"});if("auto"===x){const n=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,I.current=n}else e.style.transitionDuration="string"===typeof n?n:`${n}ms`;e.style[$]=A,e.style.transitionTimingFunction=r,v&&v(e)}));return(0,Tr.jsx)(w,{in:d,onEnter:F,onEntered:j,onEntering:L,onExit:N,onExited:z,onExiting:B,addEndListener:e=>{"auto"===x&&R.start(I.current||0,e),a&&a(E.current,e)},nodeRef:E,timeout:"auto"===x?null:x,...C,children:(e,t)=>(0,Tr.jsx)(SF,{as:u,className:o(k.root,l,{entered:k.entered,exited:!d&&"0px"===A&&k.hidden}[e]),style:{[T?"minWidth":"minHeight"]:A,...y},ref:D,...t,ownerState:{...S,state:e},children:(0,Tr.jsx)(kF,{ownerState:{...S,state:e},className:k.wrapper,ref:P,children:(0,Tr.jsx)(MF,{ownerState:{...S,state:e},className:k.wrapperInner,children:i})})})})}));RF&&(RF.muiSupportAuto=!0);const PF=RF;function IF(e){return Hr("MuiStepContent",e)}Vr("MuiStepContent",["root","last","transition"]);const AF=Ir("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})(co((e=>{let{theme:t}=e;return{marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:t.vars?`1px solid ${t.vars.palette.StepContent.border}`:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`,variants:[{props:{last:!0},style:{borderLeft:"none"}}]}}))),TF=Ir(PF,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),$F=e.forwardRef((function(t,n){const r=Dr({props:t,name:"MuiStepContent"}),{children:a,className:i,TransitionComponent:l=PF,transitionDuration:s="auto",TransitionProps:u,...c}=r,{orientation:d}=e.useContext(V_),{active:p,last:f,expanded:h}=e.useContext(U_),m={...r,last:f},g=(e=>{const{classes:t,last:n}=e;return pe({root:["root",n&&"last"],transition:["transition"]},IF,t)})(m);let v=s;return"auto"!==s||l.muiSupportAuto||(v=void 0),(0,Tr.jsx)(AF,{className:o(g.root,i),ref:n,ownerState:m,...c,children:(0,Tr.jsx)(TF,{as:l,in:p||h,className:g.transition,ownerState:m,timeout:v,unmountOnExit:!0,...u,children:a})})})),EF=$F;function DF(e){let{components:t,onUpdate:n}=e;return(0,Tr.jsx)(Tr.Fragment,{children:[...t].map(((e,t)=>{const r=PX[to[e.type].map];return(0,Tr.jsx)(r,{attributes:e.props,onChange:n},kx("dynamic-stepper-comp",t))}))})}DF.defaultProps={components:[],onUpdate:null};const OF={activeStep:0,stepperResponse:{},MuiSteps:[]},_F=(e,t)=>{const{type:n,payload:r}=t;switch(n){case"SET_STEPS":return{...e,MuiSteps:r.MuiSteps};case"SET_STEP":return{...e,activeStep:r.currentStep};case"UPDATE_RESPONSE":return{...e,stepperResponse:{...e.stepperResponse,[r.id]:r.value}};case"CHANGE_STEP":return{...e,activeStep:e.activeStep+r.stepChange};default:return e}};function FF(t){let{attributes:n,onChange:r,onStepUpdate:o,currentStep:a,patch:i}=t;const[l,s]=(0,e.useReducer)(_F,OF,(()=>({activeStep:a,stepperResponse:i,MuiSteps:n.MuiSteps||[]}))),{activeStep:u,stepperResponse:c,MuiSteps:d}=l;(0,e.useEffect)((()=>{s({type:"SET_STEP",payload:{currentStep:a}})}),[a]);const p=(0,e.useCallback)(((e,t,a)=>{s({type:"CHANGE_STEP",payload:{stepChange:e}});null===o||void 0===o||o(u+e,t&&e>0,a),a&&(null===r||void 0===r||r({id:n.id,value:c}))}),[u,n.id,r,o,c]),f=(0,e.useCallback)((e=>{let{id:t,value:n}=e;s({type:"UPDATE_RESPONSE",payload:{id:t,value:n}}),null===r||void 0===r||r({id:t,value:n})}),[r]),h=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((e=>!c[e]))||e.some((e=>c[e.key]===e.value&&e.mandatoryIds.some((e=>!c[e]))))},m=(e,t,r,o)=>(0,Tr.jsxs)(Mo,{sx:{mb:2},children:[(0,Tr.jsx)(Lc,{variant:"contained",onClick:()=>p(1,t,e===d.length-1),disabled:h(r,o),sx:{mt:1,mr:1},...n.MuiButtonAttributes.next,...e===d.length-1&&{...n.MuiButtonAttributes.final},children:e===d.length-1?"Finish":"Continue"}),(0,Tr.jsx)(Lc,{disabled:0===e,onClick:()=>p(-1,t,!1),sx:{mt:1,mr:1},...n.MuiButtonAttributes.back,children:"Back"})]});return(0,Tr.jsx)(Mo,{sx:{maxWidth:400},...n.MuiBoxAttributes,children:(0,Tr.jsx)(eF,{activeStep:u,orientation:"vertical",...n.MuiStepperAttributes,children:d.map(((e,t)=>(0,Tr.jsxs)(oF,{...n.MuiStepAttributes,children:[(0,Tr.jsx)(wF,{optional:t===d.length-1&&(0,Tr.jsx)(wo,{variant:"caption",children:"Last step"}),...n.MuiStepLabelAttributes,children:e.label}),(0,Tr.jsxs)(EF,{...n.MuiStepContentAttributes,children:[e.components?(0,Tr.jsx)(DF,{onUpdate:f,components:Mx(e.components,c)}):(0,Tr.jsx)(wo,{children:e.description}),m(t,e.isScreenChange,e.mandatoryIds,e.optionalMandatoryIds)]})]},e.label)))})})}FF.defaultProps={attributes:{},onChange:()=>{},onStepUpdate:()=>{},currentStep:0,patch:{}};const LF=FF;var jF=eL(),NF=e=>qF(e,jF),zF=eL();NF.write=e=>qF(e,zF);var BF=eL();NF.onStart=e=>qF(e,BF);var HF=eL();NF.onFrame=e=>qF(e,HF);var VF=eL();NF.onFinish=e=>qF(e,VF);var WF=[];NF.setTimeout=(e,t)=>{const n=NF.now()+t,r=()=>{const e=WF.findIndex((e=>e.cancel==r));~e&&WF.splice(e,1),YF-=~e?1:0},o={time:n,handler:e,cancel:r};return WF.splice(UF(n),0,o),YF+=1,XF(),o};var UF=e=>~(~WF.findIndex((t=>t.time>e))||~WF.length);NF.cancel=e=>{BF.delete(e),HF.delete(e),VF.delete(e),jF.delete(e),zF.delete(e)},NF.sync=e=>{ZF=!0,NF.batchedUpdates(e),ZF=!1},NF.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=r,NF.onStart(n)}return r.handler=e,r.cancel=()=>{BF.delete(n),t=null},r};var GF="undefined"!=typeof window?window.requestAnimationFrame:()=>{};NF.use=e=>GF=e,NF.now="undefined"!=typeof performance?()=>performance.now():Date.now,NF.batchedUpdates=e=>e(),NF.catch=console.error,NF.frameLoop="always",NF.advance=()=>{"demand"!==NF.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):JF()};var KF=-1,YF=0,ZF=!1;function qF(e,t){ZF?(t.delete(e),e(0)):(t.add(e),XF())}function XF(){KF<0&&(KF=0,"demand"!==NF.frameLoop&&GF(QF))}function QF(){~KF&&(GF(QF),NF.batchedUpdates(JF))}function JF(){const e=KF;KF=NF.now();const t=UF(KF);t&&(tL(WF.splice(0,t),(e=>e.handler())),YF-=t),YF?(BF.flush(),jF.flush(e?Math.min(64,KF-e):16.667),HF.flush(),zF.flush(),VF.flush()):KF=-1}function eL(){let e=new Set,t=e;return{add(n){YF+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(YF-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,YF-=t.size,tL(t,(t=>t(n)&&e.add(t))),YF+=e.size,t=e)}}}function tL(e,t){e.forEach((e=>{try{t(e)}catch(n){NF.catch(n)}}))}var nL=Object.defineProperty,rL={};function oL(){}((e,t)=>{for(var n in t)nL(e,n,{get:t[n],enumerable:!0})})(rL,{assign:()=>bL,colors:()=>mL,createStringInterpolator:()=>dL,skipAnimation:()=>gL,to:()=>pL,willAdvance:()=>vL});var aL={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"===typeof e,str:e=>"string"===typeof e,num:e=>"number"===typeof e,und:e=>void 0===e};function iL(e,t){if(aL.arr(e)){if(!aL.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var lL=(e,t)=>e.forEach(t);function sL(e,t,n){if(aL.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var uL=e=>aL.und(e)?[]:aL.arr(e)?e:[e];function cL(e,t){if(e.size){const n=Array.from(e);e.clear(),lL(n,t)}}var dL,pL,fL=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return cL(e,(e=>e(...n)))},hL=()=>"undefined"===typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),mL=null,gL=!1,vL=oL,bL=e=>{e.to&&(pL=e.to),e.now&&(NF.now=e.now),void 0!==e.colors&&(mL=e.colors),null!=e.skipAnimation&&(gL=e.skipAnimation),e.createStringInterpolator&&(dL=e.createStringInterpolator),e.requestAnimationFrame&&NF.use(e.requestAnimationFrame),e.batchedUpdates&&(NF.batchedUpdates=e.batchedUpdates),e.willAdvance&&(vL=e.willAdvance),e.frameLoop&&(NF.frameLoop=e.frameLoop)},yL=new Set,xL=[],wL=[],CL=0,SL={get idle(){return!yL.size&&!xL.length},start(e){CL>e.priority?(yL.add(e),NF.onStart(kL)):(ML(e),NF(PL))},advance:PL,sort(e){if(CL)NF.onFrame((()=>SL.sort(e)));else{const t=xL.indexOf(e);~t&&(xL.splice(t,1),RL(e))}},clear(){xL=[],yL.clear()}};function kL(){yL.forEach(ML),yL.clear(),NF(PL)}function ML(e){xL.includes(e)||RL(e)}function RL(e){xL.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(xL,(t=>t.priority>e.priority)),0,e)}function PL(e){const t=wL;for(let n=0;n<xL.length;n++){const r=xL[n];CL=r.priority,r.idle||(vL(r),r.advance(e),r.idle||t.push(r))}return CL=0,(wL=xL).length=0,(xL=t).length>0}var IL="[-+]?\\d*\\.?\\d+",AL=IL+"%";function TL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var $L=new RegExp("rgb"+TL(IL,IL,IL)),EL=new RegExp("rgba"+TL(IL,IL,IL,IL)),DL=new RegExp("hsl"+TL(IL,AL,AL)),OL=new RegExp("hsla"+TL(IL,AL,AL,IL)),_L=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,FL=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,LL=/^#([0-9a-fA-F]{6})$/,jL=/^#([0-9a-fA-F]{8})$/;function NL(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zL(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=NL(o,r,e+1/3),i=NL(o,r,e),l=NL(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*l)<<8}function BL(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function HL(e){return(parseFloat(e)%360+360)%360/360}function VL(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function WL(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function UL(e){let t=function(e){let t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=LL.exec(e))?parseInt(t[1]+"ff",16)>>>0:mL&&void 0!==mL[e]?mL[e]:(t=$L.exec(e))?(BL(t[1])<<24|BL(t[2])<<16|BL(t[3])<<8|255)>>>0:(t=EL.exec(e))?(BL(t[1])<<24|BL(t[2])<<16|BL(t[3])<<8|VL(t[4]))>>>0:(t=_L.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=jL.exec(e))?parseInt(t[1],16)>>>0:(t=FL.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=DL.exec(e))?(255|zL(HL(t[1]),WL(t[2]),WL(t[3])))>>>0:(t=OL.exec(e))?(zL(HL(t[1]),WL(t[2]),WL(t[3]))|VL(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var GL=(e,t,n)=>{if(aL.fun(e))return e;if(aL.arr(e))return GL({range:e,output:t,extrapolate:n});if(aL.str(e.output[0]))return dL(e);const r=e,o=r.output,a=r.range||[0,1],i=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,l,s){let u=s?s(e):e;if(u<t){if("identity"===i)return u;"clamp"===i&&(u=t)}if(u>n){if("identity"===l)return u;"clamp"===l&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,i,l,r.map)}};var KL=1.70158,YL=1.525*KL,ZL=KL+1,qL=2*Math.PI/3,XL=2*Math.PI/4.5,QL=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},JL={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ZL*e*e*e-KL*e*e,easeOutBack:e=>1+ZL*Math.pow(e-1,3)+KL*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-YL)/2:(Math.pow(2*e-2,2)*((YL+1)*(2*e-2)+YL)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*qL),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*qL)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*XL)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*XL)/2+1,easeInBounce:e=>1-QL(1-e),easeOutBounce:QL,easeInOutBounce:e=>e<.5?(1-QL(1-2*e))/2:(1+QL(2*e-1))/2,steps:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(r):Math.ceil(r))/e)}}},ej=Symbol.for("FluidValue.get"),tj=Symbol.for("FluidValue.observers"),nj=e=>Boolean(e&&e[ej]),rj=e=>e&&e[ej]?e[ej]():e,oj=e=>e[tj]||null;function aj(e,t){const n=e[tj];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var ij=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");lj(this,e)}},lj=(e,t)=>dj(e,ej,t);function sj(e,t){if(e[ej]){let n=e[tj];n||dj(e,tj,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function uj(e,t){const n=e[tj];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[tj]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var cj,dj=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),pj=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,fj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,hj=new RegExp(`(${pj.source})(%|[a-z]+)`,"i"),mj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,gj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,vj=e=>{const[t,n]=bj(e);if(!t||hL())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&gj.test(n)?vj(n):n||e},bj=e=>{const t=gj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},yj=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,xj=e=>{cj||(cj=mL?new RegExp(`(${Object.keys(mL).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>rj(e).replace(gj,vj).replace(fj,UL).replace(cj,UL))),n=t.map((e=>e.match(pj).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),o=r.map((t=>GL({...e,output:t})));return e=>{const n=!hj.test(t[0])&&t.find((e=>hj.test(e)))?.replace(pj,"");let r=0;return t[0].replace(pj,(()=>`${o[r++](e)}${n||""}`)).replace(mj,yj)}},wj="react-spring: ",Cj=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${wj}once requires a function parameter`);return function(){n||(t(...arguments),n=!0)}},Sj=Cj(console.warn);var kj=Cj(console.warn);function Mj(e){return aL.str(e)&&("#"==e[0]||/\d/.test(e)||!hL()&&gj.test(e)||e in(mL||{}))}var Rj=hL()?e.useEffect:e.useLayoutEffect;function Pj(){const t=(0,e.useState)()[1],n=(()=>{const t=(0,e.useRef)(!1);return Rj((()=>(t.current=!0,()=>{t.current=!1})),[]),t})();return()=>{n.current&&t(Math.random())}}var Ij=t=>(0,e.useEffect)(t,Aj),Aj=[];function Tj(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t})),n.current}var $j=Symbol.for("Animated:node"),Ej=e=>e&&e[$j],Dj=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,$j,t),Oj=e=>e&&e[$j]&&e[$j].getPayload(),_j=class{constructor(){Dj(this,this)}getPayload(){return this.payload||[]}},Fj=class extends _j{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,aL.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Fj(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return aL.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,aL.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Lj=class extends Fj{constructor(e){super(0),this._string=null,this._toString=GL({output:[e,e]})}static create(e){return new Lj(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(aL.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=GL({output:[this.getValue(),e]})),this._value=0,super.reset()}},jj={dependencies:null},Nj=class extends _j{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return sL(this.source,((n,r)=>{(e=>!!e&&e[$j]===e)(n)?t[r]=n.getValue(e):nj(n)?t[r]=rj(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&lL(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return sL(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){jj.dependencies&&nj(e)&&jj.dependencies.add(e);const t=Oj(e);t&&lL(t,(e=>this.add(e)))}},zj=class extends Nj{constructor(e){super(e)}static create(e){return new zj(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Bj)),!0)}};function Bj(e){return(Mj(e)?Lj:Fj).create(e)}function Hj(e){const t=Ej(e);return t?t.constructor:aL.arr(e)?zj:Mj(e)?Lj:Fj}var Vj=(t,n)=>{const r=!aL.fun(t)||t.prototype&&t.prototype.isReactComponent;return(0,e.forwardRef)(((o,a)=>{const i=(0,e.useRef)(null),l=r&&(0,e.useCallback)((e=>{i.current=function(e,t){e&&(aL.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[s,u]=function(e,t){const n=new Set;jj.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Nj(e),jj.dependencies=null,[e,n]}(o,n),c=Pj(),d=()=>{const e=i.current;if(r&&!e)return;!1===(!!e&&n.applyAnimatedValues(e,s.getValue(!0)))&&c()},p=new Wj(d,u),f=(0,e.useRef)();Rj((()=>(f.current=p,lL(u,(e=>sj(e,p))),()=>{f.current&&(lL(f.current.deps,(e=>uj(e,f.current))),NF.cancel(f.current.update))}))),(0,e.useEffect)(d,[]),Ij((()=>()=>{const e=f.current;lL(e.deps,(t=>uj(t,e)))}));const h=n.getComponentProps(s.getValue());return e.createElement(t,{...h,ref:l})}))},Wj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&NF.write(this.update)}};var Uj=Symbol.for("AnimatedComponent"),Gj=e=>aL.str(e)?e:e&&aL.str(e.displayName)?e.displayName:aL.fun(e)&&e.name||null;function Kj(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return aL.fun(e)?e(...n):e}var Yj=(e,t)=>!0===e||!!(t&&e&&(aL.fun(e)?e(t):uL(e).includes(t))),Zj=(e,t)=>aL.obj(e)?t&&e[t]:e,qj=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Xj=e=>e,Qj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xj,n=Jj;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);aL.und(n)||(r[o]=n)}return r},Jj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],eN={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function tN(e){const t=function(e){const t={};let n=0;if(sL(e,((e,r)=>{eN[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return sL(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function nN(e){return e=rj(e),aL.arr(e)?e.map(nN):Mj(e)?rL.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rN(e){for(const t in e)return!0;return!1}function oN(e){return aL.fun(e)||aL.arr(e)&&aL.obj(e[0])}function aN(e,t){e.ref?.delete(e),t?.delete(e)}function iN(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var lN={tension:170,friction:26,mass:1,damping:1,easing:JL.linear,clamp:!1},sN=class{constructor(){this.velocity=0,Object.assign(this,lN)}};function uN(e,t){if(aL.und(t.decay)){const n=!aL.und(t.tension)||!aL.und(t.friction);!n&&aL.und(t.frequency)&&aL.und(t.damping)&&aL.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var cN=[],dN=class{constructor(){this.changed=!1,this.values=cN,this.toValues=null,this.fromValues=cN,this.config=new sN,this.immediate=!1}};function pN(e,t){let{key:n,props:r,defaultProps:o,state:a,actions:i}=t;return new Promise(((t,l)=>{let s,u,c=Yj(r.cancel??o?.cancel,n);if(c)f();else{aL.und(r.pause)||(a.paused=Yj(r.pause,n));let e=o?.pause;!0!==e&&(e=a.paused||Yj(e,n)),s=Kj(r.delay||0,n),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),s=u.time-NF.now()}function p(){s>0&&!rL.skipAnimation?(a.delayed=!0,u=NF.setTimeout(f,s),a.pauseQueue.add(d),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(d),a.timeouts.delete(u),e<=(a.cancelId||0)&&(c=!0);try{i.start({...r,callId:e,cancel:c},t)}catch(n){l(n)}}}))}var fN=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?gN(e.get()):t.every((e=>e.noop))?hN(e.get()):mN(e.get(),t.every((e=>e.finished))),hN=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),mN=function(e,t){return{value:e,finished:t,cancelled:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}},gN=e=>({value:e,cancelled:!0,finished:!1});function vN(e,t,n,r){const{callId:o,parentId:a,onRest:i}=t,{asyncTo:l,promise:s}=n;return a||e!==l||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const u=Qj(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const p=new Promise(((e,t)=>(c=e,d=t))),f=e=>{const t=o<=(n.cancelId||0)&&gN(r)||o!==n.asyncId&&mN(r,!1);if(t)throw e.result=t,d(e),e},h=(e,t)=>{const a=new yN,i=new xN;return(async()=>{if(rL.skipAnimation)throw bN(n),i.result=mN(r,!1),d(i),i;f(a);const l=aL.obj(e)?{...e}:{...t,to:e};l.parentId=o,sL(u,((e,t)=>{aL.und(l[t])&&(l[t]=e)}));const s=await r.start(l);return f(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let m;if(rL.skipAnimation)return bN(n),mN(r,!1);try{let t;t=aL.arr(e)?(async e=>{for(const t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(c),p]),m=mN(r.get(),!0,!1)}catch(g){if(g instanceof yN)m=g.result;else{if(!(g instanceof xN))throw g;m=g.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?l:void 0,n.promise=a?s:void 0)}return aL.fun(i)&&NF.batchedUpdates((()=>{i(m,r,r.item)})),m})():s}function bN(e,t){cL(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var yN=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},xN=class extends Error{constructor(){super("SkipAnimationSignal")}},wN=e=>e instanceof SN,CN=1,SN=class extends ij{constructor(){super(...arguments),this.id=CN++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Ej(this);return e&&e.getValue()}to(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rL.to(this,t)}interpolate(){Sj(`${wj}The "interpolate" function is deprecated in v9 (use "to" instead)`);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rL.to(this,t)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e){aj(this,{type:"change",parent:this,value:e,idle:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})}_onPriorityChange(e){this.idle||SL.sort(this),aj(this,{type:"priority",parent:this,priority:e})}},kN=Symbol.for("SpringPhase"),MN=e=>(1&e[kN])>0,RN=e=>(2&e[kN])>0,PN=e=>(4&e[kN])>0,IN=(e,t)=>t?e[kN]|=3:e[kN]&=-3,AN=(e,t)=>t?e[kN]|=4:e[kN]&=-5,TN=class extends SN{constructor(e,t){if(super(),this.animation=new dN,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!aL.und(e)||!aL.und(t)){const n=aL.obj(e)?{...e}:{...t,from:e};aL.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(RN(this)||this._state.asyncTo)||PN(this)}get goal(){return rj(this.animation.to)}get velocity(){const e=Ej(this);return e instanceof Fj?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return MN(this)}get isAnimating(){return RN(this)}get isPaused(){return PN(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:a}=r,i=Oj(r.to);!i&&nj(r.to)&&(o=uL(rj(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const u=l.constructor==Lj?1:i?i[s].lastPosition:o[s];let c=r.immediate,d=u;if(!c){if(d=l.lastPosition,a.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=aL.arr(a.velocity)?a.velocity[s]:a.velocity;let i;const p=a.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(aL.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(l.lastPosition-d)<=p,i=o*r}else{i=null==l.lastVelocity?o:l.lastVelocity;const t=a.restVelocity||p/10,r=a.clamp?0:a.bounce,s=!aL.und(r),f=n==u?l.v0>0:n<u;let h,m=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(h=Math.abs(i)>t,h||(c=Math.abs(u-d)<=p,!c));++e){s&&(m=d==u||d>u==f,m&&(i=-i*r,d=u));i+=(1e-6*-a.tension*(d-u)+.001*-a.friction*i)/a.mass*g,d+=i*g}}else{let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,l.durationProgress>0&&(l.elapsedTime=a.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),d=n+a.easing(r)*(u-n),i=(d-l.lastPosition)/e,c=1==r}l.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}i&&!i[s].done&&(c=!1),c?l.done=!0:t=!1,l.setValue(d,a.round)&&(n=!0)}));const l=Ej(this),s=l.getValue();if(t){const e=rj(r.to);s===e&&!n||a.decay?n&&a.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return NF.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(RN(this)){const{to:e,config:t}=this.animation;NF.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return aL.und(e)?(n=this.queue||[],this.queue=[]):n=[aL.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>fN(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),bN(this._state,e&&this._lastCallId),NF.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=aL.obj(n)?n[t]:n,(null==n||oN(n))&&(n=void 0),r=aL.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return MN(this)||(e.reverse&&([n,r]=[r,n]),r=rj(r),aL.und(r)?Ej(this)||this._set(n):this._set(r)),o}_update(e,t){let{...n}=e;const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,Qj(n,((e,t)=>/^on/.test(t)?Zj(e,r):e))),LN(this,n,"onProps"),jN(this,"onProps",n,this);const a=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return pN(++this._lastCallId,{key:r,props:n,defaultProps:o,state:i,actions:{pause:()=>{PN(this)||(AN(this,!0),fL(i.pauseQueue),jN(this,"onPause",mN(this,$N(this,this.animation.to)),this))},resume:()=>{PN(this)&&(AN(this,!1),RN(this)&&this._resume(),fL(i.resumeQueue),jN(this,"onResume",mN(this,$N(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=EN(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(gN(this));const r=!aL.und(e.to),o=!aL.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(gN(this));this._lastToId=t.callId}const{key:a,defaultProps:i,animation:l}=this,{to:s,from:u}=l;let{to:c=s,from:d=u}=e;!o||r||t.default&&!aL.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const p=!iL(d,u);p&&(l.from=d),d=rj(d);const f=!iL(c,s);f&&this._focus(c);const h=oN(t.to),{config:m}=l,{decay:g,velocity:v}=m;(r||o)&&(m.velocity=0),t.config&&!h&&function(e,t,n){n&&(uN(n={...n},t),t={...n,...t}),uN(e,t),Object.assign(e,t);for(const i in lN)null==e[i]&&(e[i]=lN[i]);let{frequency:r,damping:o}=e;const{mass:a}=e;aL.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*a,e.friction=4*Math.PI*o*a/r)}(m,Kj(t.config,a),t.config!==i.config?Kj(i.config,a):void 0);let b=Ej(this);if(!b||aL.und(c))return n(mN(this,!0));const y=aL.und(t.reset)?o&&!t.default:!aL.und(d)&&Yj(t.reset,a),x=y?d:this.get(),w=nN(c),C=aL.num(w)||aL.arr(w)||Mj(w),S=!h&&(!C||Yj(i.immediate||t.immediate,a));if(f){const e=Hj(c);if(e!==b.constructor){if(!S)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(w)}}const k=b.constructor;let M=nj(c),R=!1;if(!M){const e=y||!MN(this)&&p;(f||e)&&(R=iL(nN(x),w),M=!R),(iL(l.immediate,S)||S)&&iL(m.decay,g)&&iL(m.velocity,v)||(M=!0)}if(R&&RN(this)&&(l.changed&&!y?M=!0:M||this._stop(s)),!h&&((M||nj(s))&&(l.values=b.getPayload(),l.toValues=nj(c)?null:k==Lj?[1]:uL(w)),l.immediate!=S&&(l.immediate=S,S||y||this._set(s)),M)){const{onRest:e}=l;lL(FN,(e=>LN(this,t,e)));const r=mN(this,$N(this,s));fL(this._pendingCalls,r),this._pendingCalls.add(n),l.changed&&NF.batchedUpdates((()=>{l.changed=!y,e?.(r,this),y?Kj(i.onRest,r):l.onStart?.(r,this)}))}y&&this._set(x),h?n(vN(t.to,t,this._state,this)):M?this._start():RN(this)&&!f?this._pendingCalls.add(n):n(hN(x))}_focus(e){const t=this.animation;e!==t.to&&(oj(this)&&this._detach(),t.to=e,oj(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;nj(t)&&(sj(t,this),wN(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;nj(e)&&uj(e,this)}_set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=rj(e);if(!aL.und(n)){const e=Ej(this);if(!e||!iL(n,e.getValue())){const r=Hj(n);e&&e.constructor==r?e.setValue(n):Dj(this,r.create(n)),e&&NF.batchedUpdates((()=>{this._onChange(n,t)}))}}return Ej(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,jN(this,"onStart",mN(this,$N(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Kj(this.animation.onChange,e,this)),Kj(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ej(this).reset(rj(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),RN(this)||(IN(this,!0),PN(this)||this._resume())}_resume(){rL.skipAnimation?this.finish():SL.start(this)}_stop(e,t){if(RN(this)){IN(this,!1);const n=this.animation;lL(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),aj(this,{type:"idle",parent:this});const r=t?gN(this.get()):mN(this.get(),$N(this,e??n.to));fL(this._pendingCalls,r),n.changed&&(n.changed=!1,jN(this,"onRest",r,this))}}};function $N(e,t){const n=nN(t);return iL(nN(e.get()),n)}function EN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to;const r=Kj(t);if(r){const o=!0!==r&&tN(r),a=(o||e).reverse,i=!o||o.reset;return DN({...e,loop:t,default:!1,pause:void 0,to:!a||oN(n)?n:void 0,from:i?e.from:void 0,reset:i,...o})}}function DN(e){const{to:t,from:n}=e=tN(e),r=new Set;return aL.obj(t)&&_N(t,r),aL.obj(n)&&_N(n,r),e.keys=r.size?Array.from(r):null,e}function ON(e){const t=DN(e);return aL.und(t.default)&&(t.default=Qj(t)),t}function _N(e,t){sL(e,((e,n)=>null!=e&&t.add(n)))}var FN=["onStart","onRest","onChange","onPause","onResume"];function LN(e,t,n){e.animation[n]=t[n]!==qj(t,n)?Zj(t[n],e.key):void 0}function jN(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var NN=["onStart","onChange","onRest"],zN=1,BN=class{constructor(e,t){this.id=zN++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];aL.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(DN(e)),this}start(e){let{queue:t}=this;return e?t=uL(e).map(DN):this.queue=[],this._flush?this._flush(this,t):(YN(this,t),HN(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;lL(uL(t),(t=>n[t].stop(!!e)))}else bN(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(aL.und(e))this.start({pause:!0});else{const t=this.springs;lL(uL(e),(e=>t[e].pause()))}return this}resume(e){if(aL.und(e))this.start({pause:!1});else{const t=this.springs;lL(uL(e),(e=>t[e].resume()))}return this}each(e){sL(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,cL(e,(e=>{let[t,n]=e;n.value=this.get(),t(n,this,this._item)})));const a=!r&&this._started,i=o||a&&n.size?this.get():null;o&&t.size&&cL(t,(e=>{let[t,n]=e;n.value=i,t(n,this,this._item)})),a&&(this._started=!1,cL(n,(e=>{let[t,n]=e;n.value=i,t(n,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}NF.onFrame(this._onFrame)}};function HN(e,t){return Promise.all(t.map((t=>VN(e,t)))).then((t=>fN(e,t)))}async function VN(e,t,n){const{keys:r,to:o,from:a,loop:i,onRest:l,onResolve:s}=t,u=aL.obj(t.default)&&t.default;i&&(t.loop=!1),!1===o&&(t.to=null),!1===a&&(t.from=null);const c=aL.arr(o)||aL.fun(o)?o:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):lL(NN,(n=>{const r=t[n];if(aL.fun(r)){const o=e._events[n];t[n]=e=>{let{finished:t,cancelled:n}=e;const a=o.get(r);a?(t||(a.finished=!1),n&&(a.cancelled=!0)):o.set(r,{value:null,finished:t||!1,cancelled:n||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,fL(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),f=!0===t.cancel||!0===qj(t,"cancel");(c||f&&d.asyncId)&&p.push(pN(++e._lastAsyncId,{props:t,state:d,actions:{pause:oL,resume:oL,start(t,n){f?(bN(d,e._lastAsyncId),n(gN(e))):(t.onRest=l,n(vN(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=fN(e,await Promise.all(p));if(i&&h.finished&&(!n||!h.noop)){const n=EN(t,i,o);if(n)return YN(e,[n]),VN(e,n,!0)}return s&&NF.batchedUpdates((()=>s(h,e,e.item))),h}function WN(e,t){const n={...e.springs};return t&&lL(uL(t),(e=>{aL.und(e.keys)&&(e=DN(e)),aL.obj(e.to)||(e={...e,to:void 0}),KN(n,e,(e=>GN(e)))})),UN(e,n),n}function UN(e,t){sL(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,sj(t,e))}))}function GN(e,t){const n=new TN;return n.key=e,t&&sj(n,t),n}function KN(e,t,n){t.keys&&lL(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function YN(e,t){lL(t,(t=>{KN(e.springs,t,(t=>GN(t,e)))}))}var ZN,qN,XN=t=>{let{children:n,...r}=t;const o=(0,e.useContext)(QN),a=r.pause||!!o.pause,i=r.immediate||!!o.immediate;r=function(t,n){const[r]=(0,e.useState)((()=>({inputs:n,result:t()}))),o=(0,e.useRef)(),a=o.current;let i=a;if(i){const e=Boolean(n&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(n,i.inputs));e||(i={inputs:n,result:t()})}else i=r;return(0,e.useEffect)((()=>{o.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:a,immediate:i})),[a,i]);const{Provider:l}=QN;return e.createElement(l,{value:r},n)},QN=(ZN=XN,qN={},Object.assign(ZN,e.createContext(qN)),ZN.Provider._context=ZN,ZN.Consumer._context=ZN,ZN);XN.Provider=QN.Provider,XN.Consumer=QN.Consumer;var JN=()=>{const e=[],t=function(t){kj(`${wj}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return lL(e,((e,o)=>{if(aL.und(t))r.push(e.start());else{const a=n(t,e,o);a&&r.push(e.start(a))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return lL(e,(e=>e.pause(...arguments))),this},t.resume=function(){return lL(e,(e=>e.resume(...arguments))),this},t.set=function(t){lL(e,((e,n)=>{const r=aL.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return lL(e,((e,r)=>{if(aL.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return lL(e,(e=>e.stop(...arguments))),this},t.update=function(t){return lL(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return aL.fun(e)?e(n,t):e};return t._getProps=n,t};function ez(t,n,r){const o=aL.fun(n)&&n;o&&!r&&(r=[]);const a=(0,e.useMemo)((()=>o||3==arguments.length?JN():void 0),[]),i=(0,e.useRef)(0),l=Pj(),s=(0,e.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=WN(e,t);return i.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?HN(e,t):new Promise((r=>{UN(e,n),s.queue.push((()=>{r(HN(e,t))})),l()}))}})),[]),u=(0,e.useRef)([...s.ctrls]),c=[],d=Tj(t)||0;function p(e,t){for(let r=e;r<t;r++){const e=u.current[r]||(u.current[r]=new BN(null,s.flush)),t=o?o(r,e):n[r];t&&(c[r]=ON(t))}}(0,e.useMemo)((()=>{lL(u.current.slice(t,d),(e=>{aN(e,a),e.stop(!0)})),u.current.length=t,p(d,t)}),[t]),(0,e.useMemo)((()=>{p(0,Math.min(d,t))}),r);const f=u.current.map(((e,t)=>WN(e,c[t]))),h=(0,e.useContext)(XN),m=Tj(h),g=h!==m&&rN(h);Rj((()=>{i.current++,s.ctrls=u.current;const{queue:e}=s;e.length&&(s.queue=[],lL(e,(e=>e()))),lL(u.current,((e,t)=>{a?.add(e),g&&e.start({default:h});const n=c[t];n&&(iN(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Ij((()=>()=>{lL(s.ctrls,(e=>e.stop(!0)))}));const v=f.map((e=>({...e})));return a?[v,a]:v}function tz(e,t){const n=aL.fun(e),[[r],o]=ez(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}function nz(t,n,r){const o=aL.fun(n)&&n,{reset:a,sort:i,trail:l=0,expires:s=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:d,config:p}=o?o():n,f=(0,e.useMemo)((()=>o||3==arguments.length?JN():void 0),[]),h=uL(t),m=[],g=(0,e.useRef)(null),v=a?null:g.current;Rj((()=>{g.current=m})),Ij((()=>(lL(m,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{lL(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),aN(e.ctrl,f),e.ctrl.stop(!0)}))})));const b=function(e,t,n){let{key:r,keys:o=r}=t;if(null===o){const t=new Set;return e.map((e=>{const r=n&&n.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return r?(t.add(r),r.key):rz++}))}return aL.und(o)?e:aL.fun(o)?e.map(o):uL(o)}(h,o?o():n,v),y=a&&g.current||[];Rj((()=>lL(y,(e=>{let{ctrl:t,item:n,key:r}=e;aN(t,f),Kj(c,n,r)}))));const x=[];if(v&&lL(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=x[t]=b.indexOf(e.key))&&(m[t]=e)})),lL(h,((e,t)=>{m[t]||(m[t]={key:b[t],item:e,phase:"mount",ctrl:new BN},m[t].ctrl.item=e)})),x.length){let e=-1;const{leave:t}=o?o():n;lL(x,((n,r)=>{const o=v[r];~n?(e=m.indexOf(o),m[e]={...o,item:h[n]}):t&&m.splice(++e,0,o)}))}aL.fun(i)&&m.sort(((e,t)=>i(e.item,t.item)));let w=-l;const C=Pj(),S=Qj(n),k=new Map,M=(0,e.useRef)(new Map),R=(0,e.useRef)(!1);lL(m,((e,t)=>{const r=e.key,a=e.phase,i=o?o():n;let c,f;const h=Kj(i.delay||0,r);if("mount"==a)c=i.enter,f="enter";else{const e=b.indexOf(r)<0;if("leave"!=a)if(e)c=i.leave,f="leave";else{if(!(c=i.update))return;f="update"}else{if(e)return;c=i.enter,f="enter"}}if(c=Kj(c,e.item,t),c=aL.obj(c)?tN(c):{to:c},!c.config){const n=p||S.config;c.config=Kj(n,e.item,t,f)}w+=l;const m={...S,delay:h+w,ref:d,immediate:i.immediate,reset:!1,...c};if("enter"==f&&aL.und(m.from)){const r=o?o():n,a=aL.und(r.initial)||v?r.from:r.initial;m.from=Kj(a,e.item,t)}const{onResolve:y}=m;m.onResolve=e=>{Kj(y,e);const t=g.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=Kj(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(C,r)))}}e&&t.some((e=>e.expired))&&(M.current.delete(n),u&&(R.current=!0),C())}};const x=WN(e.ctrl,m);"leave"===f&&u?M.current.set(e,{phase:f,springs:x,payload:m}):k.set(e,{phase:f,springs:x,payload:m})}));const P=(0,e.useContext)(XN),I=Tj(P),A=P!==I&&rN(P);Rj((()=>{A&&lL(m,(e=>{e.ctrl.start({default:P})}))}),[P]),lL(k,((e,t)=>{if(M.current.size){const e=m.findIndex((e=>e.key===t.key));m.splice(e,1)}})),Rj((()=>{lL(M.current.size?M.current:k,((e,t)=>{let{phase:n,payload:r}=e;const{ctrl:o}=t;t.phase=n,f?.add(o),A&&"enter"==n&&o.start({default:P}),r&&(iN(o,r.ref),!o.ref&&!f||R.current?(o.start(r),R.current&&(R.current=!1)):o.update(r))}))}),a?void 0:r);const T=t=>e.createElement(e.Fragment,null,m.map(((n,r)=>{const{springs:o}=k.get(n)||n.ctrl,a=t({...o},n.item,n,r);return a&&a.type?e.createElement(a.type,{...a.props,key:aL.str(n.key)||aL.num(n.key)?n.key:n.ctrl.id,ref:a.ref}):a})));return f?[T,f]:T}var rz=1;var oz=class extends SN{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=GL(...t);const n=this._get(),r=Hj(n);Dj(this,r.create(n))}advance(e){const t=this._get();iL(t,this.get())||(Ej(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&iz(this._active)&&lz(this)}_get(){const e=aL.arr(this.source)?this.source.map(rj):uL(rj(this.source));return this.calc(...e)}_start(){this.idle&&!iz(this._active)&&(this.idle=!1,lL(Oj(this),(e=>{e.done=!1})),rL.skipAnimation?(NF.batchedUpdates((()=>this.advance())),lz(this)):SL.start(this))}_attach(){let e=1;lL(uL(this.source),(t=>{nj(t)&&sj(t,this),wN(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){lL(uL(this.source),(e=>{nj(e)&&uj(e,this)})),this._active.clear(),lz(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=uL(this.source).reduce(((e,t)=>Math.max(e,(wN(t)?t.priority:0)+1)),0))}};function az(e){return!1!==e.idle}function iz(e){return!e.size||Array.from(e).every(az)}function lz(e){e.idle||(e.idle=!0,lL(Oj(e),(e=>{e.done=!0})),aj(e,{type:"idle",parent:e}))}var sz=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new oz(e,n)};rL.assign({createStringInterpolator:xj,to:(e,t)=>new oz(e,t)});SL.advance;var uz=/^--/;function cz(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||uz.test(e)||pz.hasOwnProperty(e)&&pz[e]?(""+t).trim():t+"px"}var dz={};var pz={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fz=["Webkit","Ms","Moz","O"];pz=Object.keys(pz).reduce(((e,t)=>(fz.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),pz);var hz=/^(matrix|translate|scale|rotate|skew)/,mz=/^(translate)/,gz=/^(rotate|skew)/,vz=(e,t)=>aL.num(e)&&0!==e?e+t:e,bz=(e,t)=>aL.arr(e)?e.every((e=>bz(e,t))):aL.num(e)?e===t:parseFloat(e)===t,yz=class extends Nj{constructor(e){let{x:t,y:n,z:r,...o}=e;const a=[],i=[];(t||n||r)&&(a.push([t||0,n||0,r||0]),i.push((e=>[`translate3d(${e.map((e=>vz(e,"px"))).join(",")})`,bz(e,0)]))),sL(o,((e,t)=>{if("transform"===t)a.push([e||""]),i.push((e=>[e,""===e]));else if(hz.test(t)){if(delete o[t],aL.und(e))return;const n=mz.test(t)?"px":gz.test(t)?"deg":"";a.push(uL(e)),i.push("rotate3d"===t?e=>{let[t,r,o,a]=e;return[`rotate3d(${t},${r},${o},${vz(a,n)})`,bz(a,0)]}:e=>[`${t}(${e.map((e=>vz(e,n))).join(",")})`,bz(e,t.startsWith("scale")?1:0)])}})),a.length&&(o.transform=new xz(a,i)),super(o)}},xz=class extends ij{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return lL(this.inputs,((n,r)=>{const o=rj(n[0]),[a,i]=this.transforms[r](aL.arr(o)?o:n.map(rj));e+=" "+a,t=t&&i})),t?"none":e}observerAdded(e){1==e&&lL(this.inputs,(e=>lL(e,(e=>nj(e)&&sj(e,this)))))}observerRemoved(e){0==e&&lL(this.inputs,(e=>lL(e,(e=>nj(e)&&uj(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),aj(this,e)}};rL.assign({batchedUpdates:Ei.unstable_batchedUpdates,createStringInterpolator:xj,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var wz=function(e){let{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new Nj(e),getComponentProps:r=e=>e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{const t=Gj(e)||"Anonymous";return(e=aL.str(e)?a[e]||(a[e]=Vj(e,o)):e[Uj]||(e[Uj]=Vj(e,o))).displayName=`Animated(${t})`,e};return sL(e,((t,n)=>{aL.arr(e)&&(n=Gj(t)),a[n]=a(t)})),{animated:a}}(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:r,style:o,children:a,scrollTop:i,scrollLeft:l,viewBox:s,...u}=t,c=Object.values(u),d=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:dz[t]||(dz[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==a&&(e.textContent=a);for(const p in o)if(o.hasOwnProperty(p)){const t=cz(p,o[p]);uz.test(p)?e.style.setProperty(p,t):e.style[p]=t}d.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==r&&(e.className=r),void 0!==i&&(e.scrollTop=i),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new yz(e),getComponentProps:e=>{let{scrollTop:t,scrollLeft:n,...r}=e;return r}}),Cz=wz.animated;const Sz=e.createContext({isInitialized:!1,data:{xAxis:{},yAxis:{},xAxisIds:[],yAxisIds:[]}});const kz=()=>{const{data:t}=e.useContext(Sz);return t};function Mz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Rz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pz(){}var Iz=.7,Az=1/Iz,Tz="\\s*([+-]?\\d+)\\s*",$z="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ez="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dz=/^#([0-9a-f]{3,8})$/,Oz=new RegExp(`^rgb\\(${Tz},${Tz},${Tz}\\)$`),_z=new RegExp(`^rgb\\(${Ez},${Ez},${Ez}\\)$`),Fz=new RegExp(`^rgba\\(${Tz},${Tz},${Tz},${$z}\\)$`),Lz=new RegExp(`^rgba\\(${Ez},${Ez},${Ez},${$z}\\)$`),jz=new RegExp(`^hsl\\(${$z},${Ez},${Ez}\\)$`),Nz=new RegExp(`^hsla\\(${$z},${Ez},${Ez},${$z}\\)$`),zz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Bz(){return this.rgb().formatHex()}function Hz(){return this.rgb().formatRgb()}function Vz(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Wz(t):3===n?new Kz(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Uz(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Uz(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Oz.exec(e))?new Kz(t[1],t[2],t[3],1):(t=_z.exec(e))?new Kz(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Fz.exec(e))?Uz(t[1],t[2],t[3],t[4]):(t=Lz.exec(e))?Uz(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=jz.exec(e))?Jz(t[1],t[2]/100,t[3]/100,1):(t=Nz.exec(e))?Jz(t[1],t[2]/100,t[3]/100,t[4]):zz.hasOwnProperty(e)?Wz(zz[e]):"transparent"===e?new Kz(NaN,NaN,NaN,0):null}function Wz(e){return new Kz(e>>16&255,e>>8&255,255&e,1)}function Uz(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kz(e,t,n,r)}function Gz(e,t,n,r){return 1===arguments.length?((o=e)instanceof Pz||(o=Vz(o)),o?new Kz((o=o.rgb()).r,o.g,o.b,o.opacity):new Kz):new Kz(e,t,n,null==r?1:r);var o}function Kz(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yz(){return`#${Qz(this.r)}${Qz(this.g)}${Qz(this.b)}`}function Zz(){const e=qz(this.opacity);return`${1===e?"rgb(":"rgba("}${Xz(this.r)}, ${Xz(this.g)}, ${Xz(this.b)}${1===e?")":`, ${e})`}`}function qz(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Xz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qz(e){return((e=Xz(e))<16?"0":"")+e.toString(16)}function Jz(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new tB(e,t,n,r)}function eB(e){if(e instanceof tB)return new tB(e.h,e.s,e.l,e.opacity);if(e instanceof Pz||(e=Vz(e)),!e)return new tB;if(e instanceof tB)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new tB(i,l,s,e.opacity)}function tB(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function nB(e){return(e=(e||0)%360)<0?e+360:e}function rB(e){return Math.max(0,Math.min(1,e||0))}function oB(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Mz(Pz,Vz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bz,formatHex:Bz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eB(this).formatHsl()},formatRgb:Hz,toString:Hz}),Mz(Kz,Gz,Rz(Pz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new Kz(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Iz:Math.pow(Iz,e),new Kz(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kz(Xz(this.r),Xz(this.g),Xz(this.b),qz(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yz,formatHex:Yz,formatHex8:function(){return`#${Qz(this.r)}${Qz(this.g)}${Qz(this.b)}${Qz(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zz,toString:Zz})),Mz(tB,(function(e,t,n,r){return 1===arguments.length?eB(e):new tB(e,t,n,null==r?1:r)}),Rz(Pz,{brighter(e){return e=null==e?Az:Math.pow(Az,e),new tB(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Iz:Math.pow(Iz,e),new tB(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Kz(oB(e>=240?e-240:e+120,o,r),oB(e,o,r),oB(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new tB(nB(this.h),rB(this.s),rB(this.l),qz(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=qz(this.opacity);return`${1===e?"hsl(":"hsla("}${nB(this.h)}, ${100*rB(this.s)}%, ${100*rB(this.l)}%${1===e?")":`, ${e})`}`}}));const aB=e.createContext({item:null,axis:{x:null,y:null},useVoronoiInteraction:!1,dispatch:()=>null});const iB=(e,t)=>{switch(t.type){case"enterItem":return fe({},e,{item:t.data});case"exitChart":return null===e.item&&null===e.axis.x&&null===e.axis.y?e:fe({},e,{axis:{x:null,y:null},item:null});case"updateVoronoiUsage":return fe({},e,{useVoronoiInteraction:t.useVoronoiInteraction});case"leaveItem":return null===e.item||Object.keys(t.data).some((n=>t.data[n]!==e.item[n]))?e:fe({},e,{item:null});case"updateAxis":return t.data.x===e.axis.x&&t.data.y===e.axis.y?e:fe({},e,{axis:t.data});default:return e}};function lB(t){const{children:n}=t,[r,o]=e.useReducer(iB,{item:null,axis:{x:null,y:null},useVoronoiInteraction:!1}),a=e.useMemo((()=>fe({},r,{dispatch:o})),[r]);return(0,Tr.jsx)(aB.Provider,{value:a,children:n})}const sB=e.createContext({isInitialized:!1,data:{highlightedItem:null,setHighlighted:()=>{},clearHighlighted:()=>{},isHighlighted:()=>!1,isFaded:()=>!1}});function uB(){const{isInitialized:t,data:n}=e.useContext(sB);if(!t)throw new Error(["MUI X: Could not find the highlighted ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}const cB=t=>{const{dispatch:n}=e.useContext(aB),{setHighlighted:r,clearHighlighted:o}=uB();if(t)return()=>({});return e=>({onPointerEnter:()=>{n({type:"enterItem",data:e}),r({seriesId:e.seriesId,dataIndex:e.dataIndex})},onPointerLeave:t=>{t.currentTarget.hasPointerCapture(t.pointerId)&&t.currentTarget.releasePointerCapture(t.pointerId),n({type:"leaveItem",data:e}),o()},onPointerDown:e=>{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}})};function dB(e){const t=uB();if(!e)return{isHighlighted:!1,isFaded:!1};const n=t.isHighlighted(e);return{isHighlighted:n,isFaded:!n&&t.isFaded(e)}}const pB=["id","dataIndex","classes","color","slots","slotProps","style","onClick"];function fB(e){return ec("MuiBarElement",e)}tc("MuiBarElement",["root"]);const hB=Ir(Cz.rect,{name:"MuiBarElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{stroke:"none",fill:t.isHighlighted?Vz(t.color).brighter(.5).formatHex():t.color,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}}));function mB(e){const{id:t,dataIndex:n,classes:r,color:o,slots:a,slotProps:i,style:l,onClick:s}=e,u=Ai(e,pB),c=cB(),{isFaded:d,isHighlighted:p}=dB({seriesId:t,dataIndex:n}),f={id:t,dataIndex:n,classes:r,color:o,isFaded:d,isHighlighted:p},h=(e=>{const{classes:t,id:n}=e;return qu({root:["root",`series-${n}`]},fB,t)})(f),m=a?.bar??hB,g=Us({elementType:m,externalSlotProps:i?.bar,externalForwardedProps:u,additionalProps:fe({},c({type:"bar",seriesId:t,dataIndex:n}),{style:l,onClick:s,cursor:s?"pointer":"unset"}),className:h.root,ownerState:f});return(0,Tr.jsx)(m,fe({},g))}const gB=(e,t,n)=>{const r="vertical"===e.layout,o=r?t?.colorScale:n?.colorScale,a=r?n?.colorScale:t?.colorScale,i=r?t?.data:n?.data;return a?t=>{const n=e.data[t],r=null===n?e.color:a(n);return null===r?e.color:r}:o&&i?t=>{const n=i[t],r=null===n?e.color:o(n);return null===r?e.color:r}:()=>e.color},vB="DEFAULT_X_AXIS_KEY",bB="DEFAULT_Y_AXIS_KEY",yB={top:50,bottom:50,left:50,right:50},xB=(t,n,r)=>{const o=fe({},yB,r);return e.useMemo((()=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:Math.max(0,t-o.left-o.right),height:Math.max(0,n-o.top-o.bottom)})),[t,n,o.top,o.bottom,o.left,o.right])},wB=e.createContext({top:0,left:0,bottom:0,right:0,height:300,width:400,chartId:"",isPointInside:()=>!1});const CB=e.createContext({isInitialized:!1,data:{current:null}});function SB(t){const{width:n,height:r,margin:o,svgRef:a,children:i}=t,l=xB(n,r,o),s=Ys(),u=e.useCallback(((e,t)=>{let{x:n,y:r}=e;if(t?.targetElement&&t?.targetElement.closest("[data-drawing-container]"))return!0;const o=n>=l.left-1&&n<=l.left+l.width,a=r>=l.top-1&&r<=l.top+l.height;return"x"===t?.direction?o:("y"===t?.direction||o)&&a}),[l]),c=e.useMemo((()=>fe({chartId:s??""},l,{isPointInside:u})),[s,l,u]),d=e.useMemo((()=>({isInitialized:!0,data:a})),[a]);return(0,Tr.jsx)(CB.Provider,{value:d,children:(0,Tr.jsx)(wB.Provider,{value:c,children:i})})}function kB(){const{chartId:t}=e.useContext(wB);return e.useMemo((()=>t),[t])}const MB=(e,t)=>{let{hasNegative:n,hasPositive:r,borderRadius:o,layout:a}=t;if(!o)return 0;const i="vertical"===a;return"top-left"===e&&(i&&r||!i&&n)||"top-right"===e&&(i&&r||!i&&r)||"bottom-right"===e&&(i&&n||!i&&r)||"bottom-left"===e&&(i&&n||!i&&n)?o:0},RB=["style","maskId"];function PB(e){const t=e.ownerState;return(0,Tr.jsx)(Cz.rect,{style:fe({},e.style,{clipPath:("vertical"===e.ownerState.layout?e.style?.height:e.style?.width).to((e=>{return`inset(0px round ${(n={topLeft:Math.min(e,MB("top-left",t)),topRight:Math.min(e,MB("top-right",t)),bottomRight:Math.min(e,MB("bottom-right",t)),bottomLeft:Math.min(e,MB("bottom-left",t))}).topLeft}px ${n.topRight}px ${n.bottomRight}px ${n.bottomLeft}px)`;var n}))})})}function IB(e){const{style:t,maskId:n}=e,r=Ai(e,RB);return!e.borderRadius||e.borderRadius<=0?null:(0,Tr.jsx)("clipPath",{id:n,children:(0,Tr.jsx)(PB,{ownerState:r,style:t})})}function AB(e){return ec("MuiBarLabel",e)}const TB=tc("MuiBarLabel",["root","highlighted","faded"]),$B=["seriesId","dataIndex","color","isFaded","isHighlighted","classes"],EB=Ir(Cz.text,{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${TB.faded}`]:t.faded},{[`&.${TB.highlighted}`]:t.highlighted},t.root]})((e=>{let{theme:t}=e;return fe({},t?.typography?.body2,{stroke:"none",fill:(t.vars||t)?.palette?.text?.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${TB.faded}`]:{opacity:.3}})}));function DB(e){const t=Ai(gu({props:e,name:"MuiBarLabel"}),$B);return(0,Tr.jsx)(EB,fe({},t))}const OB=["seriesId","classes","color","style","dataIndex","barLabel","slots","slotProps","height","width","value"],_B=["ownerState"];function FB(e){const{seriesId:t,classes:n,color:r,style:o,dataIndex:a,barLabel:i,slots:l,slotProps:s,height:u,width:c,value:d}=e,p=Ai(e,OB),{isFaded:f,isHighlighted:h}=dB({seriesId:t,dataIndex:a}),m={seriesId:t,classes:n,color:r,isFaded:f,isHighlighted:h,dataIndex:a},g=(e=>{const{classes:t,seriesId:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},AB,t)})(m),v=l?.barLabel??DB,b=Us({elementType:v,externalSlotProps:s?.barLabel,additionalProps:fe({},p,{style:o,className:g.root}),ownerState:m}),{ownerState:y}=b,x=Ai(b,_B);if(!i)return null;const w=(e=>{const{barLabel:t,value:n,dataIndex:r,seriesId:o,height:a,width:i}=e;return"value"===t?n?n?.toString():null:t({seriesId:o,dataIndex:r,value:n},{bar:{height:a,width:i}})})({barLabel:i,value:d,dataIndex:a,seriesId:t,height:u,width:c});return w?(0,Tr.jsx)(v,fe({},x,y,{children:w})):null}const LB=["bars","skipAnimation"],jB=e=>{let{layout:t,yOrigin:n,x:r,width:o,y:a,xOrigin:i,height:l}=e;return fe({},"vertical"===t?{y:n,x:r+o/2,height:0,width:o}:{y:a+l/2,x:i,height:l,width:0})},NB=e=>{let{x:t,width:n,y:r,height:o}=e;return{x:t+n/2,y:r+o/2,height:o,width:n}};function zB(t){const{bars:n,skipAnimation:r}=t,o=Ai(t,LB),a=nz(n,{keys:e=>`${e.seriesId}-${e.dataIndex}`,from:jB,leave:null,enter:NB,update:NB,immediate:r});return(0,Tr.jsx)(e.Fragment,{children:a(((e,t)=>{let{seriesId:n,dataIndex:r,color:a,value:i,width:l,height:s}=t;return(0,Tr.jsx)(FB,fe({seriesId:n,dataIndex:r,value:i,color:a,width:l,height:s},o,{style:e}))}))})}function BB(e){return"band"===e.scaleType}function HB(e){return"point"===e.scaleType}const VB=(e,t)=>t===("x"===e?vB:bB)?`The first \`${`${e}Axis`}\``:`The ${`${e}-axis`} with id "${t}"`;const WB=e.createContext({isInitialized:!1,data:{}});function UB(){const{isInitialized:t,data:n}=e.useContext(WB);if(!t)throw new Error(["MUI X: Could not find the series ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function GB(){const t=UB();return e.useMemo((()=>t.line),[t.line])}const KB=e.createContext({isInitialized:!1,data:{skipAnimation:void 0}});function YB(t){const{isInitialized:n,data:r}=e.useContext(KB);if(!n)throw new Error(["MUI X: Could not find the animation ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t||r.skipAnimation}const ZB=["skipAnimation","onItemClick","borderRadius","barLabel"];const qB=()=>{const t=function(){const t=UB();return e.useMemo((()=>t.bar),[t.bar])}()??{series:{},stackingGroups:[],seriesOrder:[]},n=kz(),r=kB(),{series:o,stackingGroups:a}=t,{xAxis:i,yAxis:l,xAxisIds:s,yAxisIds:u}=n,c=s[0],d=u[0],p={},f=a.flatMap(((e,t)=>{let{ids:n}=e;return n.flatMap((e=>{const n=o[e].xAxisId??o[e].xAxisKey??c,s=o[e].yAxisId??o[e].yAxisKey??d,u=i[n],f=l[s],h="vertical"===o[e].layout;!function(e,t,n,r,o,a){const i=r[n],l=a[o],s=e?i:l,u=e?l:i,c=e?n:o,d=e?o:n,p=e?"x":"y",f=e?"y":"x";if(!BB(s))throw new Error(`MUI X: ${VB(p,c)} should be of type "band" to display the bar series of id "${t}".`);if(void 0===s.data)throw new Error(`MUI X: ${VB(p,c)} should have data property.`);if(BB(u)||HB(u))throw new Error(`MUI X: ${VB(f,d)} should be a continuous type to display the bar series of id "${t}".`)}(h,e,n,i,s,l);const m=h?u:f,g=u.scale,v=f.scale,b=gB(o[e],i[n],l[s]),y=m.scale.bandwidth(),{barWidth:x,offset:w}=function(e){let{bandWidth:t,numberOfGroups:n,gapRatio:r}=e;if(0===r)return{barWidth:t/n,offset:0};const o=t/(n+(n-1)*r);return{barWidth:o,offset:r*o}}({bandWidth:y,numberOfGroups:a.length,gapRatio:m.barGapRatio}),C=t*(x+w),{stackedData:S}=o[e];return S.map(((a,u)=>{const c=a.map((e=>h?v(e):g(e))),d=Math.round(Math.min(...c)),f=Math.round(Math.max(...c)),m=o[e].stack,y={seriesId:e,dataIndex:u,layout:o[e].layout,x:h?g(i[n].data?.[u])+C:d,y:h?d:v(l[s].data?.[u])+C,xOrigin:g(0),yOrigin:v(0),height:h?f-d:x,width:h?x:f-d,color:b(u),value:o[e].data[u],maskId:`${r}_${m||e}_${t}_${u}`};p[y.maskId]||(p[y.maskId]={id:y.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:y.layout,xOrigin:g(0),yOrigin:v(0),x:0,y:0});const w=p[y.maskId];return w.width="vertical"===y.layout?y.width:w.width+y.width,w.height="vertical"===y.layout?w.height+y.height:y.height,w.x=Math.min(0===w.x?1/0:w.x,y.x),w.y=Math.min(0===w.y?1/0:w.y,y.y),w.hasNegative=w.hasNegative||(y.value??0)<0,w.hasPositive=w.hasPositive||(y.value??0)>0,y}))}))}));return{completedData:f,masksData:Object.values(p)}},XB=e=>{let{layout:t,yOrigin:n,x:r,width:o,y:a,xOrigin:i,height:l}=e;return fe({},"vertical"===t?{y:n,x:r,height:0,width:o}:{y:a,x:i,height:l,width:0})},QB=e=>{let{x:t,width:n,y:r,height:o}=e;return{y:r,x:t,height:o,width:n}};function JB(t){const{completedData:n,masksData:r}=qB(),{skipAnimation:o,onItemClick:a,borderRadius:i,barLabel:l}=t,s=Ai(t,ZB),u=YB(o),c=!i||i<=0,d=nz(n,{keys:e=>`${e.seriesId}-${e.dataIndex}`,from:XB,leave:XB,enter:QB,update:QB,immediate:u}),p=nz(c?[]:r,{keys:e=>e.id,from:XB,leave:XB,enter:QB,update:QB,immediate:u});return(0,Tr.jsxs)(e.Fragment,{children:[!c&&p(((e,t)=>{let{id:n,hasPositive:r,hasNegative:o,layout:a}=t;return(0,Tr.jsx)(IB,{maskId:n,borderRadius:i,hasNegative:o,hasPositive:r,layout:a,style:e})})),d(((e,t)=>{let{seriesId:n,dataIndex:r,color:o,maskId:i}=t;const l=(0,Tr.jsx)(mB,fe({id:n,dataIndex:r,color:o},s,{onClick:a&&(e=>{a(e,{type:"bar",seriesId:n,dataIndex:r})}),style:e}));return c?l:(0,Tr.jsx)("g",{clipPath:`url(#${i})`,children:l})})),l&&(0,Tr.jsx)(zB,fe({bars:n,skipAnimation:u,barLabel:l},s))]})}const eH=["#02B2AF","#2E96FF","#B800D8","#60009B","#2731C8","#03008D"],tH=["#02B2AF","#72CCFF","#DA00FF","#9001CB","#2E96FF","#3B48E0"],nH=e=>"dark"===e?tH:eH,rH=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];const oH=e=>{let{series:t,colors:n,seriesFormatters:r,dataset:o}=e;const a={};t.forEach(((e,t)=>{const{id:r=`auto-generated-id-${t}`,type:o}=e;if(void 0===a[o]&&(a[o]={series:{},seriesOrder:[]}),void 0!==a[o]?.series[r])throw new Error(`MUI X: series' id "${r}" is not unique.`);a[o].series[r]=fe({id:r},function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rH;return"pie"===e.type?fe({},e,{data:e.data.map(((e,t)=>fe({color:n[t%n.length]},e)))}):fe({color:n[t%n.length]},e)}(e,t,n)),a[o].seriesOrder.push(r)}));const i={};return Object.keys(r).forEach((e=>{const t=a[e];void 0!==t&&(i[e]=r[e]?.(t,o)??a[e])})),i},aH=e.createContext({isInitialized:!1,data:{colorProcessors:{},seriesFormatters:{},xExtremumGetters:{},yExtremumGetters:{},rotationExtremumGetters:{},radiusExtremumGetters:{}}});function iH(t){const{series:n,dataset:r,colors:o=nH,children:a}=t,i=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.seriesFormatters[t]:r.seriesFormatters}(),l=Lr(),s=e.useMemo((()=>({isInitialized:!0,data:oH({series:n,colors:"function"===typeof o?o(l.palette.mode):o,seriesFormatters:i,dataset:r})})),[n,o,l.palette.mode,i,r]);return(0,Tr.jsx)(WB.Provider,{value:s,children:a})}function lH(e){return void 0!==e.bandwidth}function sH(){const{isInitialized:t,data:n}=e.useContext(CB);if(!t)throw new Error(["MUI X: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return n}function uH(){const{left:t,top:n,width:r,height:o,bottom:a,right:i,isPointInside:l}=e.useContext(wB);return e.useMemo((()=>({left:t,top:n,width:r,height:o,bottom:a,right:i,isPointInside:l})),[o,t,n,r,a,i,l])}function cH(e){return e instanceof Date?e.getTime():e}const dH=["children","width","height","viewBox","disableAxisListener","className","title","desc"],pH=Ir("svg",{name:"MuiChartsSurface",slot:"Root"})((()=>({touchAction:"none"}))),fH=e.forwardRef((function(t,n){const r=gu({props:t,name:"MuiChartsSurface"}),{children:o,width:a,height:i,viewBox:l,disableAxisListener:s=!1,className:u,title:c,desc:d}=r,p=Ai(r,dH),f=fe({width:a,height:i,x:0,y:0},l);return(t=>{const n=sH(),r=uH(),{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=kz(),{dispatch:s}=e.useContext(aB),u=i[0],c=l[0],d=e.useRef({isInChart:!1,x:-1,y:-1});e.useEffect((()=>{const e=n.current;if(null===e||t)return()=>{};function i(e,t){const{scale:n,data:r,reverse:o}=e;if(!lH(n)){const e=n.invert(t);if(void 0===r)return{value:e,index:-1};const o=cH(e),a=r?.findIndex(((t,n)=>{const a=cH(t);return a>o&&(0===n||Math.abs(o-a)<=Math.abs(o-cH(r[n-1])))||a<=o&&(n===r.length-1||Math.abs(cH(e)-a)<Math.abs(cH(e)-cH(r[n+1])))}));return{value:void 0!==a&&a>=0?r[a]:e,index:a}}const a=0===n.bandwidth()?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());if(a<0||a>=r.length)return null;if(o){const e=r.length-1-a;return{index:e,value:r[e]}}return{index:a,value:r[a]}}const l=()=>{d.current={isInChart:!1,x:-1,y:-1},s({type:"exitChart"})},p=t=>{const n="targetTouches"in t?t.targetTouches[0]:t,l=function(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}(e,n);if(d.current.x=l.x,d.current.y=l.y,!r.isPointInside(l,{targetElement:t.target}))return void(d.current.isInChart&&(s({type:"exitChart"}),d.current.isInChart=!1));d.current.isInChart=!0;const p=i(o[u],l.x),f=i(a[c],l.y);s({type:"updateAxis",data:{x:p,y:f}})},f=e=>{const t=e.currentTarget;t&&t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)};return e.addEventListener("pointerdown",f),e.addEventListener("pointermove",p),e.addEventListener("pointerout",l),e.addEventListener("pointercancel",l),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointerdown",f),e.removeEventListener("pointermove",p),e.removeEventListener("pointerout",l),e.removeEventListener("pointercancel",l),e.removeEventListener("pointerleave",l)}}),[n,s,c,a,u,o,t,r])})(s),(0,Tr.jsxs)(pH,fe({width:a,height:i,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:n,className:u},p,{children:[(0,Tr.jsx)("title",{children:c}),(0,Tr.jsx)("desc",{children:d}),o]}))}));function hH(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mH(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gH(e){let t,n,r;function o(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=hH,n=(t,n)=>hH(e(t),n),r=(t,n)=>e(t)-n):(t=e===hH||e===mH?e:vH,n=e,r=e),{left:o,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=o(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function vH(){return 0}const bH=Math.sqrt(50),yH=Math.sqrt(10),xH=Math.sqrt(2);function wH(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),a=r/Math.pow(10,o),i=a>=bH?10:a>=yH?5:a>=xH?2:1;let l,s,u;return o<0?(u=Math.pow(10,-o)/i,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,o)*i,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?wH(e,t,2*n):[l,s,u]}function CH(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,a,i]=r?wH(t,e,n):wH(e,t,n);if(!(a>=o))return[];const l=a-o+1,s=new Array(l);if(r)if(i<0)for(let u=0;u<l;++u)s[u]=(a-u)/-i;else for(let u=0;u<l;++u)s[u]=(a-u)*i;else if(i<0)for(let u=0;u<l;++u)s[u]=(o+u)/-i;else for(let u=0;u<l;++u)s[u]=(o+u)*i;return s}function SH(e,t,n){return wH(e=+e,t=+t,n=+n)[2]}function kH(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?SH(t,e,n):SH(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}const MH=1e3,RH=6e4,PH=36e5,IH=864e5,AH=6048e5,TH=2592e6,$H=31536e6,EH=new Date,DH=new Date;function OH(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,a)=>{const i=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return i;let l;do{i.push(l=new Date(+n)),t(n,a),e(n)}while(l<n&&n<r);return i},o.filter=n=>OH((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(EH.setTime(+t),DH.setTime(+r),e(EH),e(DH),Math.floor(n(EH,DH))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const _H=OH((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));_H.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?OH((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):_H:null);_H.range;const FH=OH((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*MH)}),((e,t)=>(t-e)/MH),(e=>e.getUTCSeconds())),LH=(FH.range,OH((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*MH)}),((e,t)=>{e.setTime(+e+t*RH)}),((e,t)=>(t-e)/RH),(e=>e.getMinutes()))),jH=(LH.range,OH((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*RH)}),((e,t)=>(t-e)/RH),(e=>e.getUTCMinutes()))),NH=(jH.range,OH((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*MH-e.getMinutes()*RH)}),((e,t)=>{e.setTime(+e+t*PH)}),((e,t)=>(t-e)/PH),(e=>e.getHours()))),zH=(NH.range,OH((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*PH)}),((e,t)=>(t-e)/PH),(e=>e.getUTCHours()))),BH=(zH.range,OH((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RH)/IH),(e=>e.getDate()-1))),HH=(BH.range,OH((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/IH),(e=>e.getUTCDate()-1))),VH=(HH.range,OH((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/IH),(e=>Math.floor(e/IH))));VH.range;function WH(e){return OH((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RH)/AH))}const UH=WH(0),GH=WH(1),KH=WH(2),YH=WH(3),ZH=WH(4),qH=WH(5),XH=WH(6);UH.range,GH.range,KH.range,YH.range,ZH.range,qH.range,XH.range;function QH(e){return OH((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/AH))}const JH=QH(0),eV=QH(1),tV=QH(2),nV=QH(3),rV=QH(4),oV=QH(5),aV=QH(6),iV=(JH.range,eV.range,tV.range,nV.range,rV.range,oV.range,aV.range,OH((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),lV=(iV.range,OH((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),sV=(lV.range,OH((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));sV.every=e=>isFinite(e=Math.floor(e))&&e>0?OH((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null;sV.range;const uV=OH((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));uV.every=e=>isFinite(e=Math.floor(e))&&e>0?OH((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null;uV.range;function cV(e,t,n,r,o,a){const i=[[FH,1,MH],[FH,5,5e3],[FH,15,15e3],[FH,30,3e4],[a,1,RH],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,PH],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,IH],[r,2,1728e5],[n,1,AH],[t,1,TH],[t,3,7776e6],[e,1,$H]];function l(t,n,r){const o=Math.abs(n-t)/r,a=gH((e=>{let[,,t]=e;return t})).right(i,o);if(a===i.length)return e.every(kH(t/$H,n/$H,r));if(0===a)return _H.every(Math.max(kH(t,n,r),1));const[l,s]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"===typeof n.range?n:l(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},l]}const[dV,pV]=cV(uV,lV,JH,VH,zH,jH),[fV,hV]=cV(sV,iV,UH,BH,NH,LH);function mV(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function gV(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function vV(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var bV,yV,xV,wV={"-":"",_:" ",0:"0"},CV=/^\s*\d+/,SV=/^%/,kV=/[\\^$*+?|[\]().{}]/g;function MV(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function RV(e){return e.replace(kV,"\\$&")}function PV(e){return new RegExp("^(?:"+e.map(RV).join("|")+")","i")}function IV(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function AV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function $V(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function EV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function DV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OV(e,t,n){var r=CV.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _V(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FV(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function LV(e,t,n){var r=CV.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function jV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function NV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zV(e,t,n){var r=CV.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function BV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function HV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VV(e,t,n){var r=CV.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WV(e,t,n){var r=CV.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function UV(e,t,n){var r=CV.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function GV(e,t,n){var r=SV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function KV(e,t,n){var r=CV.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function YV(e,t,n){var r=CV.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ZV(e,t){return MV(e.getDate(),t,2)}function qV(e,t){return MV(e.getHours(),t,2)}function XV(e,t){return MV(e.getHours()%12||12,t,2)}function QV(e,t){return MV(1+BH.count(sV(e),e),t,3)}function JV(e,t){return MV(e.getMilliseconds(),t,3)}function eW(e,t){return JV(e,t)+"000"}function tW(e,t){return MV(e.getMonth()+1,t,2)}function nW(e,t){return MV(e.getMinutes(),t,2)}function rW(e,t){return MV(e.getSeconds(),t,2)}function oW(e){var t=e.getDay();return 0===t?7:t}function aW(e,t){return MV(UH.count(sV(e)-1,e),t,2)}function iW(e){var t=e.getDay();return t>=4||0===t?ZH(e):ZH.ceil(e)}function lW(e,t){return e=iW(e),MV(ZH.count(sV(e),e)+(4===sV(e).getDay()),t,2)}function sW(e){return e.getDay()}function uW(e,t){return MV(GH.count(sV(e)-1,e),t,2)}function cW(e,t){return MV(e.getFullYear()%100,t,2)}function dW(e,t){return MV((e=iW(e)).getFullYear()%100,t,2)}function pW(e,t){return MV(e.getFullYear()%1e4,t,4)}function fW(e,t){var n=e.getDay();return MV((e=n>=4||0===n?ZH(e):ZH.ceil(e)).getFullYear()%1e4,t,4)}function hW(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+MV(t/60|0,"0",2)+MV(t%60,"0",2)}function mW(e,t){return MV(e.getUTCDate(),t,2)}function gW(e,t){return MV(e.getUTCHours(),t,2)}function vW(e,t){return MV(e.getUTCHours()%12||12,t,2)}function bW(e,t){return MV(1+HH.count(uV(e),e),t,3)}function yW(e,t){return MV(e.getUTCMilliseconds(),t,3)}function xW(e,t){return yW(e,t)+"000"}function wW(e,t){return MV(e.getUTCMonth()+1,t,2)}function CW(e,t){return MV(e.getUTCMinutes(),t,2)}function SW(e,t){return MV(e.getUTCSeconds(),t,2)}function kW(e){var t=e.getUTCDay();return 0===t?7:t}function MW(e,t){return MV(JH.count(uV(e)-1,e),t,2)}function RW(e){var t=e.getUTCDay();return t>=4||0===t?rV(e):rV.ceil(e)}function PW(e,t){return e=RW(e),MV(rV.count(uV(e),e)+(4===uV(e).getUTCDay()),t,2)}function IW(e){return e.getUTCDay()}function AW(e,t){return MV(eV.count(uV(e)-1,e),t,2)}function TW(e,t){return MV(e.getUTCFullYear()%100,t,2)}function $W(e,t){return MV((e=RW(e)).getUTCFullYear()%100,t,2)}function EW(e,t){return MV(e.getUTCFullYear()%1e4,t,4)}function DW(e,t){var n=e.getUTCDay();return MV((e=n>=4||0===n?rV(e):rV.ceil(e)).getUTCFullYear()%1e4,t,4)}function OW(){return"+0000"}function _W(){return"%"}function FW(e){return+e}function LW(e){return Math.floor(+e/1e3)}bV=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=PV(o),c=IV(o),d=PV(a),p=IV(a),f=PV(i),h=IV(i),m=PV(l),g=IV(l),v=PV(s),b=IV(s),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:ZV,e:ZV,f:eW,g:dW,G:fW,H:qV,I:XV,j:QV,L:JV,m:tW,M:nW,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:FW,s:LW,S:rW,u:oW,U:aW,V:lW,w:sW,W:uW,x:null,X:null,y:cW,Y:pW,Z:hW,"%":_W},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:mW,e:mW,f:xW,g:$W,G:DW,H:gW,I:vW,j:bW,L:yW,m:wW,M:CW,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:FW,s:LW,S:SW,u:kW,U:MW,V:PW,w:IW,W:AW,x:null,X:null,y:TW,Y:EW,Z:OW,"%":_W},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:NV,e:NV,f:UV,g:_V,G:OV,H:BV,I:BV,j:zV,L:WV,m:jV,M:HV,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:LV,Q:KV,s:YV,S:VV,u:TV,U:$V,V:EV,w:AV,W:DV,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:_V,Y:OV,Z:FV,"%":GV};function C(e,t){return function(n){var r,o,a,i=[],l=-1,s=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++l<u;)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(o=wV[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),s=l+1);return i.push(e.slice(s,l)),i.join("")}}function S(e,t){return function(n){var r,o,a=vV(1900,void 0,1);if(k(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=gV(vV(a.y,0,1))).getUTCDay(),r=o>4||0===o?eV.ceil(r):eV(r),r=HH.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=mV(vV(a.y,0,1))).getDay(),r=o>4||0===o?GH.ceil(r):GH(r),r=BH.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?gV(vV(a.y,0,1)).getUTCDay():mV(vV(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,gV(a)):mV(a)}}function k(e,t,n,r){for(var o,a,i=0,l=t.length,s=n.length;i<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=w[o in wV?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),yV=bV.format,bV.parse,xV=bV.utcFormat,bV.utcParse;const jW=gH(hH),NW=jW.right,zW=(jW.left,gH((function(e){return null===e?NaN:+e})).center,NW);function BW(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}const HW=e=>()=>e;function VW(e,t){return function(n){return e+n*t}}function WW(e){return 1===(e=+e)?UW:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):HW(isNaN(t)?n:t)}}function UW(e,t){var n=t-e;return n?VW(e,n):HW(isNaN(e)?t:e)}const GW=function e(t){var n=WW(t);function r(e,t){var r=n((e=Gz(e)).r,(t=Gz(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=UW(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function KW(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=Gz(t[n]),a[n]=r.r||0,i[n]=r.g||0,l[n]=r.b||0;return a=e(a),i=e(i),l=e(l),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=l(e),r+""}}}KW((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,l=r<t-1?e[r+2]:2*a-o;return BW((n-r/t)*t,i,o,a,l)}})),KW((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],l=e[(r+2)%t];return BW((n-r/t)*t,o,a,i,l)}}));function YW(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=nU(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function ZW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function qW(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XW(e,t){var n,r={},o={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=nU(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var QW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,JW=new RegExp(QW.source,"g");function eU(e,t){var n,r,o,a=QW.lastIndex=JW.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(n=QW.exec(e))&&(r=JW.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),l[i]?l[i]+=o:l[++i]=o),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:qW(n,r)})),a=JW.lastIndex;return a<t.length&&(o=t.slice(a),l[i]?l[i]+=o:l[++i]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function tU(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function nU(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?HW(t):("number"===o?qW:"string"===o?(n=Vz(t))?(t=n,GW):eU:t instanceof Vz?GW:t instanceof Date?ZW:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?YW:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?XW:qW:tU))(e,t)}function rU(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function oU(e){return+e}var aU=[0,1];function iU(e){return e}function lU(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function sU(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=lU(o,r),a=n(i,a)):(r=lU(r,o),a=n(a,i)),function(e){return a(r(e))}}function uU(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=lU(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=zW(e,t,1,r)-1;return a[n](o[n](t))}}function cU(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dU(){var e,t,n,r,o,a,i=aU,l=aU,s=nU,u=iU;function c(){var e=Math.min(i.length,l.length);return u!==iU&&(u=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(i[0],i[e-1])),r=e>2?uU:sU,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),l,s)))(e(u(t)))}return d.invert=function(n){return u(t((a||(a=r(l,i.map(e),qW)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,oU),c()):i.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=rU,c()},d.clamp=function(e){return arguments.length?(u=!!e||iU,c()):u!==iU},d.interpolate=function(e){return arguments.length?(s=e,c()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function pU(){return dU()(iU,iU)}function fU(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function hU(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}function mU(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}function gU(e){return new Date(e)}function vU(e){return e instanceof Date?+e:+new Date(+e)}function bU(e,t,n,r,o,a,i,l,s,u){var c=pU(),d=c.invert,p=c.domain,f=u(".%L"),h=u(":%S"),m=u("%I:%M"),g=u("%I %p"),v=u("%a %d"),b=u("%b %d"),y=u("%B"),x=u("%Y");function w(e){return(s(e)<e?f:l(e)<e?h:i(e)<e?m:a(e)<e?g:r(e)<e?o(e)<e?v:b:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?p(Array.from(e,vU)):p().map(gU)},c.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?w:u(t)},c.nice=function(e){var n=p();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(mU(n,e)):c},c.copy=function(){return cU(c,bU(e,t,n,r,o,a,i,l,s,u))},c}function yU(){return fU.apply(bU(fV,hV,sV,iV,UH,BH,NH,LH,FH,yV).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}class xU extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kU;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(wU(this,e))}has(e){return super.has(wU(this,e))}set(e,t){return super.set(CU(this,e),t)}delete(e){return super.delete(SU(this,e))}}Set;function wU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)?n.get(o):t}function CU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)?n.get(o):(n.set(o,t),t)}function SU(e,t){let{_intern:n,_key:r}=e;const o=r(t);return n.has(o)&&(t=n.get(o),n.delete(o)),t}function kU(e){return null!==e&&"object"===typeof e?e.valueOf():e}const MU=Symbol("implicit");function RU(){var e=new xU,t=[],n=[],r=MU;function o(o){let a=e.get(o);if(void 0===a){if(r!==MU)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new xU;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return RU(t,n).unknown(r)},fU.apply(o,arguments),o}function PU(){var e,t,n=RU().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,l=!1,s=0,u=0,c=.5;function d(){var n=r().length,d=i<a,p=d?i:a,f=d?a:i;e=(f-p)/Math.max(1,n-s+2*u),l&&(e=Math.floor(e)),p+=(f-p-e*(n-s))*c,t=e*(1-s),l&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return p+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,u=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return PU(r(),[a,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},fU.apply(d(),arguments)}function IU(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return IU(t())},e}function AU(){return IU(PU.apply(null,arguments).paddingInner(1))}function TU(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[zW(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return TU().domain(t).range(n).unknown(e)},fU.apply(o,arguments)}var $U,EU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function DU(e){if(!(t=EU.exec(e)))throw new Error("invalid format: "+e);var t;return new OU({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function OU(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function _U(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function FU(e){return(e=_U(Math.abs(e)))?e[1]:NaN}function LU(e,t){var n=_U(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}DU.prototype=OU.prototype,OU.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const jU={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>LU(100*e,t),r:LU,s:function(e,t){var n=_U(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-($U=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+_U(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function NU(e){return e}var zU,BU,HU,VU=Array.prototype.map,WU=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function UU(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?NU:(t=VU.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?NU:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(VU.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=DU(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,h=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type;"n"===b?(m=!0,b="g"):jU[b]||(void 0===g&&(g=12),v=!0,b="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var y="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?a:/[%p]/.test(b)?s:"",w=jU[b],C=/[defgprs%]/.test(b);function S(e){var o,a,s,p=y,S=x;if("c"===b)S=w(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==d&&(k=!1),p=(k?"("===d?d:u:"-"===d||"("===d?"":d)+p,S=("s"===b?WU[8+$U/3]:"")+S+(k&&"("===d?")":""),C)for(o=-1,a=e.length;++o<a;)if(48>(s=e.charCodeAt(o))||s>57){S=(46===s?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}m&&!f&&(e=r(e,1/0));var M=p.length+e.length+S.length,R=M<h?new Array(h-M+1).join(t):"";switch(m&&f&&(e=r(R+e,R.length?h-S.length:1/0),R=""),n){case"<":e=p+e+S+R;break;case"=":e=p+R+e+S;break;case"^":e=R.slice(0,M=R.length>>1)+p+e+S+R.slice(M);break;default:e=R+p+e+S}return l(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=DU(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(FU(t)/3))),o=Math.pow(10,-r),a=WU[8+r/3];return function(e){return n(o*e)+a}}}}function GU(e,t,n,r){var o,a=kH(e,t,n);switch((r=DU(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(FU(t)/3)))-FU(Math.abs(e)))}(a,i))||(r.precision=o),HU(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,FU(t)-FU(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-FU(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return BU(r)}function KU(e){var t=e.domain;return e.ticks=function(e){var n=t();return CH(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return GU(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,l=a.length-1,s=a[i],u=a[l],c=10;for(u<s&&(o=s,s=u,u=o,o=i,i=l,l=o);c-- >0;){if((o=SH(s,u,n))===r)return a[i]=s,a[l]=u,t(a);if(o>0)s=Math.floor(s/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function YU(){var e=pU();return e.copy=function(){return cU(e,YU())},fU.apply(e,arguments),KU(e)}function ZU(){var e,t,n,r,o,a=0,i=1,l=iU,s=!1;function u(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),u):[l(0),l(1)]}}return u.domain=function(o){return arguments.length?([a,i]=o,e=r(a=+a),t=r(i=+i),n=e===t?0:1/(t-e),u):[a,i]},u.clamp=function(e){return arguments.length?(s=!!e,u):s},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=c(nU),u.rangeRound=c(rU),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(a),t=o(i),n=e===t?0:1/(t-e),u}}function qU(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function XU(){var e=KU(ZU()(iU));return e.copy=function(){return qU(e,XU())},hU.apply(e,arguments)}function QU(e){return"piecewise"===e.type?TU(e.thresholds,e.colors):XU([e.min??0,e.max??100],e.color)}function JU(e){return e.values?RU(e.values,e.colors).unknown(e.unknownColor??null):RU(e.colors.map(((e,t)=>t)),e.colors).unknown(e.unknownColor??null)}function eG(e){return"ordinal"===e.type?JU(e):QU(e)}function tG(e){return"number"===typeof e&&!Number.isFinite(e)}!function(e){zU=UU(e),BU=zU.format,HU=zU.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const nG={start:0,extremities:0,end:1,middle:.5};function rG(t){const{scale:n,tickNumber:r,valueFormatter:o,tickInterval:a,tickPlacement:i="extremities",tickLabelPlacement:l="middle"}=t;return e.useMemo((()=>{if(lH(n)){const e=n.domain();if(n.bandwidth()>0){return[...("function"===typeof a&&e.filter(a)||"object"===typeof a&&a||e).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??`${e}`,offset:n(e)-(n.step()-n.bandwidth())/2+nG[i]*n.step(),labelOffset:"tick"===l?0:n.step()*(nG[l]-nG[i])}))),..."extremities"===i?[{formattedValue:void 0,offset:n.range()[1],labelOffset:0}]:[]]}return("function"===typeof a&&e.filter(a)||"object"===typeof a&&a||e).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??`${e}`,offset:n(e),labelOffset:0})))}if(n.domain().some(tG))return[];return("object"===typeof a?a:n.ticks(r)).map((e=>({value:e,formattedValue:o?.(e,{location:"tick"})??n.tickFormat(r)(e),offset:n(e),labelOffset:0})))}),[n,a,r,o,i,l])}function oG(e){return Math.log(e)}function aG(e){return Math.exp(e)}function iG(e){return-Math.log(-e)}function lG(e){return-Math.exp(-e)}function sG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function uG(e){return(t,n)=>-e(-t,n)}function cG(e){const t=e(oG,aG),n=t.domain;let r,o,a=10;function i(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),o=function(e){return 10===e?sG:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),n()[0]<0?(r=uG(r),o=uG(o),e(iG,lG)):e(oG,aG),t}return t.base=function(e){return arguments.length?(a=+e,i()):a},t.domain=function(e){return arguments.length?(n(e),i()):n()},t.ticks=e=>{const t=n();let i=t[0],l=t[t.length-1];const s=l<i;s&&([i,l]=[l,i]);let u,c,d=r(i),p=r(l);const f=null==e?10:+e;let h=[];if(!(a%1)&&p-d<f){if(d=Math.floor(d),p=Math.ceil(p),i>0){for(;d<=p;++d)for(u=1;u<a;++u)if(c=d<0?u/o(-d):u*o(d),!(c<i)){if(c>l)break;h.push(c)}}else for(;d<=p;++d)for(u=a-1;u>=1;--u)if(c=d>0?u/o(-d):u*o(d),!(c<i)){if(c>l)break;h.push(c)}2*h.length<f&&(h=CH(i,l,f))}else h=CH(d,p,Math.min(p-d,f)).map(o);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===a?"s":","),"function"!==typeof n&&(a%1||null!=(n=DU(n)).precision||(n.trim=!0),n=BU(n)),e===1/0)return n;const i=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*a<a-.5&&(t*=a),t<=i?n(e):""}},t.nice=()=>n(mU(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function dG(){const e=cG(dU()).domain([1,10]);return e.copy=()=>cU(e,dG()).base(e.base()),fU.apply(e,arguments),e}function pG(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hG(e){return e<0?-e*e:e*e}function mG(e){var t=e(iU,iU),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iU,iU):.5===n?e(fG,hG):e(pG(n),pG(1/n)):n},KU(t)}function gG(){var e=mG(dU());return e.copy=function(){return cU(e,gG()).exponent(e.exponent())},fU.apply(e,arguments),e}function vG(e,t,n){switch(e){case"log":return dG(t,n);case"pow":return gG(t,n);case"sqrt":return function(){return gG.apply(null,arguments).exponent(.5)}(t,n);case"time":return yU(t,n);case"utc":return function(){return fU.apply(bU(dV,pV,uV,lV,JH,HH,zH,jH,FH,xV).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}(t,n);default:return YU(t,n)}}const bG=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]},yG=(e,t,n,r,o)=>{const a=Object.keys(t).reduce(((a,i)=>((e,t,n,r,o,a,i)=>{const l=r[t],s=a[t]?.series??{},[u,c]=l?.({series:s,axis:n,axisIndex:o,isDefaultAxis:0===o,getFilters:i})??[1/0,-1/0],[d,p]=e;return[Math.min(u,d),Math.max(c,p)]})(a,i,e,t,n,r,o)),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a};const xG=e=>e?.[0]instanceof Date;function wG(e,t){const n=yU(e.data,t);return(t,r)=>{let{location:o}=r;return"tick"===o?n.tickFormat(e.tickNumber)(t):`${t.toLocaleString()}`}}function CG(e){let{drawingArea:t,formattedSeries:n,axis:r,extremumGetters:o,axisDirection:a,zoomData:i,zoomOptions:l,getFilters:s}=e;const u={};return r.forEach(((e,r)=>{const c=e,d=l?.[c.id],p=i?.find((e=>{let{axisId:t}=e;return t===c.id})),f=p?[p.start,p.end]:[0,100],h=function(e,t,n){if("rotation"===t){const{startAngle:e=0,endAngle:t=e+360}=n;return n.reverse?[Math.PI*e/180,Math.PI*t/180]:[Math.PI*t/180,Math.PI*e/180]}if("radius"===t){const{minRadius:t=0,maxRadius:r=Math.min(e.width,e.height)/2}=n;return[t,r]}const r="x"===t?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}(t,a,c),[m,g]=yG(c,o,r,n,void 0!==p||d?void 0:s),v=c.data??[];if(BB(c)){const e=c.categoryGapRatio??.2,t=c.barGapRatio??.1,n="y"===a?[h[1],h[0]]:h,r=bG(n,f);if(u[c.id]=fe({categoryGapRatio:e,barGapRatio:t},c,{data:v,scale:PU(c.data,r).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?JU(fe({values:c.data},c.colorMap)):eG(c.colorMap))}),xG(c.data)){const e=wG(c,n);u[c.id].valueFormatter=c.valueFormatter??e}}if(HB(c)){const e="y"===a?[...h].reverse():h,t=bG(e,f);if(u[c.id]=fe({},c,{data:v,scale:AU(c.data,t),tickNumber:c.data.length,colorScale:c.colorMap&&("ordinal"===c.colorMap.type?JU(fe({values:c.data},c.colorMap)):eG(c.colorMap))}),xG(c.data)){const t=wG(c,e);u[c.id].valueFormatter=c.valueFormatter??t}}if("band"===c.scaleType||"point"===c.scaleType)return;const b=c.scaleType??"linear",y=c.domainLimit??"nice",x=[c.min??m,c.max??g];if("function"===typeof y){const{min:e,max:t}=y(m,g);x[0]=e,x[1]=t}const w=function(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:a}=e,i=void 0===n?999:Math.floor(Math.abs(a[1]-a[0])/n),l=void 0===t?2:Math.ceil(Math.abs(a[1]-a[0])/t),s=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(i,Math.max(l,s))}(fe({},c,{range:h,domain:x})),C=w/((f[1]-f[0])/100),S=vG(b,x,bG(h,f)),k="nice"===y?S.nice(w):S,[M,R]=k.domain(),P=[c.min??M,c.max??R];u[c.id]=fe({},c,{data:v,scaleType:b,scale:k.domain(P),tickNumber:C,colorScale:c.colorMap&&eG(c.colorMap)})})),{axis:u,axisIds:r.map((e=>{let{id:t}=e;return t}))}}function SG(t){const{xAxis:n,yAxis:r,children:o}=t,a=UB(),i=uH(),l=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.xExtremumGetters[t]:r.xExtremumGetters}(),s=function(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.yExtremumGetters[t]:r.yExtremumGetters}(),u=e.useMemo((()=>CG({drawingArea:i,formattedSeries:a,axis:n,extremumGetters:l,axisDirection:"x"})),[i,a,n,l]),c=e.useMemo((()=>CG({drawingArea:i,formattedSeries:a,axis:r,extremumGetters:s,axisDirection:"y"})),[i,a,r,s]),d=e.useMemo((()=>({isInitialized:!0,data:{xAxis:u.axis,yAxis:c.axis,xAxisIds:u.axisIds,yAxisIds:c.axisIds}})),[u,c]);return(0,Tr.jsx)(Sz.Provider,{value:d,children:o})}function kG(t){const{isReversed:n,gradientId:r,size:o,direction:a,scale:i,colorMap:l}=t;return(0,Tr.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${n?1:2}`]:`${o}px`,gradientUnits:"userSpaceOnUse",children:l.thresholds.map(((t,r)=>{const a=i(t);if(void 0===a)return null;const s=n?1-a/o:a/o;return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("stop",{offset:s,stopColor:l.colors[r],stopOpacity:1}),(0,Tr.jsx)("stop",{offset:s,stopColor:l.colors[r+1],stopOpacity:1})]},t.toString()+r)}))})}function MG(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:a,scale:i,colorScale:l,colorMap:s}=e,u=[s.min??0,s.max??100],c=u.map(i).filter((e=>void 0!==e));if(2!==c.length)return null;const d="number"===typeof u[0]?qW(u[0],u[1]):ZW(u[0],u[1]),p=Math.round((Math.max(...c)-Math.min(...c))/10),f=`${u[0]}-${u[1]}-`;return(0,Tr.jsx)("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${a}${n?1:2}`]:"objectBoundingBox"===t?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:p+1},((e,t)=>{const r=d(t/p);if(void 0===r)return null;const a=i(r);if(void 0===a)return null;const s=n?1-a/o:a/o,u=l(r);return null===u?null:(0,Tr.jsx)("stop",{offset:s,stopColor:u,stopOpacity:1},f+t)}))})}function RG(){const{chartId:t}=e.useContext(wB);return e.useCallback(((e,n)=>`${t}-gradient-${n}-${e}`),[t])}function PG(){const{top:e,height:t,bottom:n,left:r,width:o,right:a}=uH(),i=e+t+n,l=r+o+a,s=RG(),{xAxisIds:u,xAxis:c,yAxisIds:d,yAxis:p}=kz();return(0,Tr.jsxs)("defs",{children:[d.filter((e=>void 0!==p[e].colorMap)).map((e=>{const t=s(e,"y"),{colorMap:n,scale:r,colorScale:o,reverse:a}=p[e];return"piecewise"===n?.type?(0,Tr.jsx)(kG,{isReversed:!a,scale:r,colorMap:n,size:i,gradientId:t,direction:"y"},t):"continuous"===n?.type?(0,Tr.jsx)(MG,{isReversed:!a,scale:r,colorScale:o,colorMap:n,size:i,gradientId:t,direction:"y"},t):null})),u.filter((e=>void 0!==c[e].colorMap)).map((e=>{const t=s(e,"x"),{colorMap:n,scale:r,reverse:o,colorScale:a}=c[e];return"piecewise"===n?.type?(0,Tr.jsx)(kG,{isReversed:o,scale:r,colorMap:n,size:l,gradientId:t,direction:"x"},t):"continuous"===n?.type?(0,Tr.jsx)(MG,{isReversed:o,scale:r,colorScale:a,colorMap:n,size:l,gradientId:t,direction:"x"},t):null}))]})}const IG=e.createContext({zAxis:{},zAxisIds:[]});function AG(t){const{zAxis:n,dataset:r,children:o}=t,a=e.useMemo((()=>n?.map((e=>{const t=e.dataKey;if(void 0===t||void 0!==e.data)return e;if(void 0===r)throw new Error("MUI X: z-axis uses `dataKey` but no `dataset` is provided.");return fe({},e,{data:r.map((e=>e[t]))})}))),[n,r]),i=e.useMemo((()=>{const e=a?.map(((e,t)=>fe({id:`defaultized-z-axis-${t}`},e)))??[],t={};return e.forEach((e=>{t[e.id]=fe({},e,{colorScale:e.colorMap&&("ordinal"===e.colorMap.type&&e.data?JU(fe({values:e.data},e.colorMap)):eG("continuous"===e.colorMap.type?fe({min:e.min,max:e.max},e.colorMap):e.colorMap))})})),{zAxis:t,zAxisIds:e.map((e=>{let{id:t}=e;return t}))}}),[a]);return(0,Tr.jsx)(IG.Provider,{value:i,children:o})}const TG=(e,t)=>n=>!!e&&("series"===e.fade?n.seriesId===t?.seriesId&&n.dataIndex!==t?.dataIndex:"global"===e.fade&&(n.seriesId!==t?.seriesId||n.dataIndex!==t?.dataIndex)),$G=(e,t)=>n=>!!e&&("series"===e.highlight?n.seriesId===t?.seriesId:"item"===e.highlight&&(n.dataIndex===t?.dataIndex&&n.seriesId===t?.seriesId)),EG=["highlighted","faded"];function DG(t){let{children:n,highlightedItem:r,onHighlightChange:o}=t;const[a,i]=Iu({controlled:r,default:null,name:"HighlightedProvider",state:"highlightedItem"}),l=UB(),s=e.useMemo((()=>{const e=new Map;return Object.keys(l).forEach((t=>{const n=l[t];Object.keys(n?.series??{}).forEach((t=>{const r=n?.series[t];e.set(t,(e=>{const t=e??{},{highlighted:n,faded:r}=t;return fe({highlight:n,fade:r},Ai(t,EG))})(r?.highlightScope))}))})),e}),[l]),u=a&&a.seriesId?s.get(a.seriesId)??void 0:void 0,c=e.useMemo((()=>({isInitialized:!0,data:{highlightScope:u,highlightedItem:a,setHighlighted:e=>{i(e),o?.(e)},clearHighlighted:()=>{i(null),o?.(null)},isHighlighted:$G(u,a),isFaded:TG(u,a)}})),[a,u,i,o]);return(0,Tr.jsx)(sB.Provider,{value:c,children:n})}const OG=(e,t)=>"x"===t?{x:e,y:null}:{x:null,y:e},_G=e=>{const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n?.({currentAxisId:t.id,isDefaultAxis:r}),a=o?t.data?.filter(((e,t)=>o({x:null,y:null},t))):t.data;return[Math.min(...a??[]),Math.max(...a??[])]},FG=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:a}=t;return Object.keys(n).filter((e=>{const t=n[e].yAxisId??n[e].yAxisKey;return t===r.id||a&&void 0===t})).reduce(((t,i)=>{const{stackedData:l}=n[i],s=o?.({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:n[i].xAxisId??n[i].xAxisKey,seriesYAxisId:n[i].yAxisId??n[i].yAxisKey}),[u,c]=l?.reduce(((t,n,r)=>!s||s(OG(n[0],e),r)&&s(OG(n[1],e),r)?[Math.min(...n,t[0]),Math.max(...n,t[1])]:t),[1/0,-1/0])??[1/0,-1/0];return[Math.min(u,t[0]),Math.max(c,t[1])]}),[1/0,-1/0])};Array.prototype.slice;function LG(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function jG(e){return function(){return e}}function NG(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],l=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function zG(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function BG(e,t){return e[t]}function HG(e){const t=[];return t.key=e,t}function VG(){var e=jG([]),t=zG,n=NG,r=BG;function o(o){var a,i,l=Array.from(e.apply(this,arguments),HG),s=l.length,u=-1;for(const e of o)for(a=0,++u;a<s;++a)(l[a][u]=[0,+r(e,l[a].key,u,o)]).data=e;for(a=0,i=LG(t(l));a<s;++a)l[i[a]].index=a;return n(l,i),l}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:jG(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:jG(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?zG:"function"===typeof e?e:jG(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?NG:e,o):n},o}function WG(e){var t=e.map(UG);return zG(e).sort((function(e,n){return t[e]-t[n]}))}function UG(e){for(var t,n=-1,r=0,o=e.length,a=-1/0;++n<o;)(t=+e[n][1])>a&&(a=t,r=n);return r}function GG(e){var t=e.map(KG);return zG(e).sort((function(e,n){return t[e]-t[n]}))}function KG(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}const YG={appearance:WG,ascending:GG,descending:function(e){return GG(e).reverse()},insideOut:function(e){var t,n,r=e.length,o=e.map(KG),a=WG(e),i=0,l=0,s=[],u=[];for(t=0;t<r;++t)n=a[t],i<l?(i+=o[n],s.push(n)):(l+=o[n],u.push(n));return u.reverse().concat(s)},none:zG,reverse:function(e){return zG(e).reverse()}},ZG={expand:function(e,t){if((r=e.length)>0){for(var n,r,o,a=0,i=e[0].length;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}NG(e,t)}},diverging:function(e,t){if((l=e.length)>0)for(var n,r,o,a,i,l,s=0,u=e[t[0]].length;s<u;++s)for(a=i=0,n=0;n<l;++n)(o=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=a,r[1]=a+=o):o<0?(r[1]=i,r[0]=i+=o):(r[0]=0,r[1]=o)},none:NG,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r<a;++r){for(var i=0,l=0;i<n;++i)l+=e[i][r][1]||0;o[r][1]+=o[r][0]=-l/2}NG(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i<r;++i){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],d=c[i][1]||0,p=(d-(c[i-1][1]||0))/2,f=0;f<l;++f){var h=e[t[f]];p+=(h[i][1]||0)-(h[i-1][1]||0)}s+=d,u+=p*d}n[i-1][1]+=n[i-1][0]=a,s&&(a-=u/s)}n[i-1][1]+=n[i-1][0]=a,NG(e,t)}}},qG=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],a={};return n.forEach((e=>{const{stack:n,stackOrder:i,stackOffset:l}=t[e];void 0===n?o.push({ids:[e],stackingOrder:YG.none,stackingOffset:ZG.none}):void 0===a[n]?(a[n]=o.length,o.push({ids:[e],stackingOrder:YG[i??r?.stackOrder??"none"],stackingOffset:ZG[l??r?.stackOffset??"diverging"]})):(o[a[n]].ids.push(e),void 0!==i&&(o[a[n]].stackingOrder=YG[i]),void 0!==l&&(o[a[n]].stackingOffset=ZG[l]))})),o};function XG(e,t){const n={};return Object.keys(e).forEach((r=>{n[r]=fe({},e[r],{valueFormatter:e[r].valueFormatter??t})})),n}const QG=(e,t)=>{const{seriesOrder:n,series:r}=e,o=qG(e),a=t??[];n.forEach((e=>{const n=r[e].data;if(void 0!==n)n.forEach(((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t}));else if(void 0===t)throw new Error([`MUI X: bar series with id='${e}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join("\n"))}));const i={};return o.forEach((e=>{const{ids:n,stackingOffset:o,stackingOrder:l}=e,s=VG().keys(n.map((e=>{const t=r[e].dataKey;return void 0===r[e].data&&void 0!==t?t:e}))).value(((e,t)=>e[t]??0)).order(l).offset(o)(a);n.forEach(((e,n)=>{const o=r[e].dataKey;i[e]=fe({layout:"vertical"},r[e],{data:o?t.map((e=>{const t=e[o];return"number"!==typeof t?0:t})):r[e].data,stackedData:s[n].map((e=>{let[t,n]=e;return[t,n]}))})}))})),{seriesOrder:n,stackingGroups:o,series:XG(i,(e=>null==e?"":e.toLocaleString()))}},JG={seriesType:"bar",seriesFormatter:QG,colorProcessor:gB,xExtremumGetter:e=>Object.keys(e.series).some((t=>"horizontal"===e.series[t].layout))?FG("x")(e):_G(e),yExtremumGetter:e=>Object.keys(e.series).some((t=>"horizontal"===e.series[t].layout))?_G(e):FG("y")(e)},eK=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],tK=(e,t,n,r)=>{const o=r?.colorScale,a=n?.colorScale,i=t?.colorScale;return o?t=>{if(void 0!==r?.data?.[t]){const e=o(r?.data?.[t]);if(null!==e)return e}const n=e.data[t],a=null===n?e.color:o(n.z);return null===a?e.color:a}:a?t=>{const n=e.data[t],r=null===n?e.color:a(n.y);return null===r?e.color:r}:i?t=>{const n=e.data[t],r=null===n?e.color:i(n.x);return null===r?e.color:r}:()=>e.color},nK={seriesType:"scatter",seriesFormatter:(e,t)=>{let{series:n,seriesOrder:r}=e;return{series:Object.fromEntries(Object.entries(n).map((e=>{let[n,r]=e;const o=r?.datasetKeys,a=["x","y","id"].filter((e=>"string"!==typeof o?.[e]));if(r?.datasetKeys&&a.length>0)throw new Error([`MUI X: scatter series with id='${n}' has incomplete datasetKeys.`,`Properties ${a.map((e=>`"${e}"`)).join(", ")} are missing.`].join("\n"));return[n,fe({},r,{data:o?t?.map((e=>({x:e[o.x],y:e[o.y],z:o.z&&e[o.z],id:e[o.id]})))??[]:r.data??[],valueFormatter:r.valueFormatter??(e=>`(${e.x}, ${e.y})`)})]}))),seriesOrder:r}},colorProcessor:tK,xExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].xAxisId??t[e].xAxisKey;return o===n.id||void 0===o&&r})).reduce(((e,a)=>{const i=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),l=t[a].data?.reduce(((e,t,n)=>i&&!i(t,n)?e:eK(e,[t.x,t.x])),[1/0,-1/0]);return eK(e,l??[1/0,-1/0])}),[1/0,-1/0])},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].yAxisId??t[e].yAxisKey;return o===n.id||void 0===o&&r})).reduce(((e,a)=>{const i=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),l=t[a].data?.reduce(((e,t,n)=>i&&!i(t,n)?e:eK(e,[t.y,t.y])),[1/0,-1/0]);return eK(e,l??[1/0,-1/0])}),[1/0,-1/0])}};const rK=(e,t)=>{const{seriesOrder:n,series:r}=e,o=qG(fe({},e,{defaultStrategy:{stackOffset:"none"}})),a=t??[];n.forEach((e=>{const t=r[e].data;void 0!==t&&t.forEach(((t,n)=>{a.length<=n?a.push({[e]:t}):a[n][e]=t}))}));const i={};return o.forEach((e=>{const{ids:n,stackingOrder:o,stackingOffset:l}=e,s=VG().keys(n.map((e=>{const t=r[e].dataKey;return void 0===r[e].data&&void 0!==t?t:e}))).value(((e,t)=>e[t]??0)).order(o).offset(l)(a);n.forEach(((e,n)=>{const o=r[e].dataKey;i[e]=fe({},r[e],{data:o?t.map((e=>{const t=e[o];return"number"!==typeof t?null:t})):r[e].data,stackedData:s[n].map((e=>{let[t,n]=e;return[t,n]}))})}))})),{seriesOrder:n,stackingGroups:o,series:XG(i,(e=>null==e?"":e.toLocaleString()))}},oK=(e,t,n)=>{const r=n?.colorScale,o=t?.colorScale;return r?t=>{const n=e.data[t],o=null===n?e.color:r(n);return null===o?e.color:o}:o?n=>{const r=t.data?.[n],a=null===r?e.color:o(r);return null===a?e.color:a}:()=>e.color},aK={seriesType:"line",colorProcessor:oK,seriesFormatter:rK,xExtremumGetter:e=>{const{axis:t}=e;return[Math.min(...t.data??[]),Math.max(...t.data??[])]},yExtremumGetter:e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter((e=>{const o=t[e].yAxisId??t[e].yAxisKey;return o===n.id||r&&void 0===o})).reduce(((e,a)=>{const{area:i,stackedData:l}=t[a],s=void 0!==i,u=o?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId??t[a].xAxisKey,seriesYAxisId:t[a].yAxisId??t[a].yAxisKey}),c=function(e,t,n){return t.reduce(((t,r,o)=>{const[a,i]=e(r);return!n||n({y:a,x:null},o)&&n({y:i,x:null},o)?[Math.min(a,i,t[0]),Math.max(a,i,t[1])]:t}),[1/0,-1/0])}(s&&"log"!==n.scaleType&&"string"!==typeof t[a].baseline?e=>e:e=>[e[1],e[1]],l,u),[d,p]=c;return[Math.min(d,e[0]),Math.max(p,e[1])]}),[1/0,-1/0])}};function iK(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function lK(e){return e}const sK=Math.abs,uK=Math.atan2,cK=Math.cos,dK=Math.max,pK=Math.min,fK=Math.sin,hK=Math.sqrt,mK=1e-12,gK=Math.PI,vK=gK/2,bK=2*gK;function yK(e){return e>=1?vK:e<=-1?-vK:Math.asin(e)}function xK(e,t){return"function"===typeof e?e(t):e}const wK=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach((e=>{const t=function(){var e=lK,t=iK,n=null,r=jG(0),o=jG(bK),a=jG(0);function i(i){var l,s,u,c,d,p=(i=LG(i)).length,f=0,h=new Array(p),m=new Array(p),g=+r.apply(this,arguments),v=Math.min(bK,Math.max(-bK,o.apply(this,arguments)-g)),b=Math.min(Math.abs(v)/p,a.apply(this,arguments)),y=b*(v<0?-1:1);for(l=0;l<p;++l)(d=m[h[l]=l]=+e(i[l],l,i))>0&&(f+=d);for(null!=t?h.sort((function(e,n){return t(m[e],m[n])})):null!=n&&h.sort((function(e,t){return n(i[e],i[t])})),l=0,u=f?(v-p*y)/f:0;l<p;++l,g=c)s=h[l],c=g+((d=m[s])>0?d*u:0)+y,m[s]={data:i[s],index:l,value:d,startAngle:g,endAngle:c,padAngle:b};return m}return i.value=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:jG(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:jG(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:jG(+e),i):a},i}().startAngle(2*Math.PI*(n[e].startAngle??0)/360).endAngle(2*Math.PI*(n[e].endAngle??360)/360).padAngle(2*Math.PI*(n[e].paddingAngle??0)/360).sortValues(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"none";if("function"===typeof e)return e;switch(e){case"none":default:return null;case"desc":return(e,t)=>t-e;case"asc":return(e,t)=>e-t}}(n[e].sortingValues??"none"))(n[e].data.map((e=>e.value)));r[e]=fe({valueFormatter:e=>e.value.toLocaleString()},n[e],{data:n[e].data.map(((n,r)=>fe({},n,{id:n.id??`auto-generated-pie-id-${e}-${r}`},t[r]))).map(((t,r)=>fe({},t,{formattedValue:n[e].valueFormatter?.(fe({},t,{label:xK(t.label,"arc")}),{dataIndex:r})??t.value.toLocaleString()})))})})),{seriesOrder:t,series:r}},CK=[JG,nK,aK,{seriesType:"pie",colorProcessor:e=>t=>e.data[t].color,seriesFormatter:wK}];function SK(e){const t=e??CK,n={},r={},o={},a={},i={},l={};for(let s=0;s<t.length;s+=1){const e=t[s],u=e.seriesType;n[u]=e.seriesFormatter,r[u]=e.colorProcessor,e.xExtremumGetter&&(o[u]=e.xExtremumGetter),e.yExtremumGetter&&(a[u]=e.yExtremumGetter),e.rotationExtremumGetter&&(i[u]=e.rotationExtremumGetter),e.radiusExtremumGetter&&(l[u]=e.radiusExtremumGetter)}return{seriesFormatters:n,colorProcessors:r,xExtremumGetters:o,yExtremumGetters:a,rotationExtremumGetters:i,radiusExtremumGetters:l}}function kK(t){const{children:n,plugins:r}=t,o=e.useMemo((()=>({isInitialized:!0,data:SK(r)})),[r]);return(0,Tr.jsx)(aH.Provider,{value:o,children:n})}const MK=(e,t,n)=>{const r="x"===n?vB:bB;return[...e?.map(((e,t)=>fe({id:`defaultized-${n}-axis-${t}`},e)))??[],...void 0===e||-1===e.findIndex((e=>{let{id:t}=e;return t===r}))?[{id:r,scaleType:"linear"}]:[]].map((e=>{const r=e.dataKey;if(void 0===r||void 0!==e.data)return e;if(void 0===t)throw new Error(`MUI X: ${n}-axis uses \`dataKey\` but no \`dataset\` is provided.`);return fe({},e,{data:t.map((e=>e[r]))})}))},RK=["width","height","series","margin","xAxis","yAxis","zAxis","colors","dataset","sx","title","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","children","skipAnimation"],PK=(t,n)=>{const{width:r,height:o,series:a,margin:i,xAxis:l,yAxis:s,zAxis:u,colors:c,dataset:d,sx:p,title:f,desc:h,disableAxisListener:m,highlightedItem:g,onHighlightChange:v,plugins:b,children:y,skipAnimation:x}=t,w=Ai(t,RK),C=e.useRef(null),S=Ns(n,C),[k,M]=((t,n,r)=>[e.useMemo((()=>MK(t,r,"x")),[t,r]),e.useMemo((()=>MK(n,r,"y")),[n,r])])(l,s,d),R={skipAnimation:x},P={plugins:b};return{children:y,drawingProviderProps:{width:r,height:o,margin:i,svgRef:C},seriesProviderProps:{series:a,colors:c,dataset:d},cartesianProviderProps:{xAxis:k,yAxis:M,dataset:d},zAxisContextProps:{zAxis:u,dataset:d},highlightedProviderProps:{highlightedItem:g,onHighlightChange:v},chartsSurfaceProps:fe({},w,{width:r,height:o,ref:S,sx:p,title:f,desc:h,disableAxisListener:m}),pluginProviderProps:P,animationProviderProps:R,xAxis:k,yAxis:M}};function IK(t){const{children:n,skipAnimation:r}=t,o="undefined"===typeof window||!window?.matchMedia,[a,i]=e.useState(o||void 0);Rj((()=>{if(o)return;const e=e=>{const t=e.matches||void 0;i(t),rL.assign({skipAnimation:t})},t=window.matchMedia("(prefers-reduced-motion)");return e(t),t?.addEventListener?.("change",e),()=>{t?.removeEventListener?.("change",e)}}),[]);const l=e.useMemo((()=>({isInitialized:!0,data:{skipAnimation:r||a}})),[a,r]);return(0,Tr.jsx)(KB.Provider,{value:l,children:n})}const AK=e.forwardRef((function(e,t){const{children:n,drawingProviderProps:r,seriesProviderProps:o,cartesianProviderProps:a,zAxisContextProps:i,highlightedProviderProps:l,chartsSurfaceProps:s,pluginProviderProps:u,animationProviderProps:c}=PK(e,t);return(0,Tr.jsx)(SB,fe({},r,{children:(0,Tr.jsx)(kK,fe({},u,{children:(0,Tr.jsx)(iH,fe({},o,{children:(0,Tr.jsx)(SG,fe({},a,{children:(0,Tr.jsx)(AG,fe({},i,{children:(0,Tr.jsx)(lB,{children:(0,Tr.jsx)(DG,fe({},l,{children:(0,Tr.jsxs)(fH,fe({},s,{children:[(0,Tr.jsx)(PG,{}),(0,Tr.jsx)(IK,fe({},c,{children:n}))]}))}))})}))}))}))}))}))})),TK=Ir("div",{name:"MuiResponsiveChart",slot:"Container"})((e=>{let{ownerState:t}=e;return{width:t.width??"100%",height:t.height??"100%",display:"flex",position:"relative",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden","&>svg":{width:"100%",height:"100%"}}})),$K=["width","height","resolveSizeBeforeRender","margin","children","series","colors","dataset","desc","disableAxisListener","highlightedItem","onHighlightChange","plugins","sx","title","viewBox","xAxis","yAxis","zAxis","skipAnimation"],EK=(t,n)=>{const{width:r,height:o,resolveSizeBeforeRender:a,margin:i,children:l,series:s,colors:u,dataset:c,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:h,plugins:m,sx:g,title:v,viewBox:b,xAxis:y,yAxis:x,zAxis:w,skipAnimation:C}=t,S=Ai(t,$K),{containerRef:k,width:M,height:R}=((t,n,r)=>{const o=e.useRef({displayError:!1,initialCompute:!0,computeRun:0}),a=e.useRef(null),[i,l]=e.useState(0),[s,u]=e.useState(0),c=e.useCallback((()=>{const e=a?.current;if(!e)return{};const t=ZI(e).getComputedStyle(e),n=Math.floor(parseFloat(t.height))||0,r=Math.floor(parseFloat(t.width))||0;return l(r),u(n),{width:r,height:n}}),[]);return e.useEffect((()=>{o.current.displayError=!0}),[]),fu((()=>{if(!r||!o.current.initialCompute||o.current.computeRun>20)return;const e=c();e.width!==i||e.height!==s?o.current.computeRun+=1:o.current.initialCompute&&(o.current.initialCompute=!1)}),[i,s,c,r]),fu((()=>{if(void 0!==t&&void 0!==n)return()=>{};c();const e=a.current;if("undefined"===typeof ResizeObserver)return()=>{};let r;const o=new ResizeObserver((()=>{r=requestAnimationFrame((()=>{c()}))}));return e&&o.observe(e),()=>{r&&cancelAnimationFrame(r),e&&o.unobserve(e)}}),[c,n,t]),{containerRef:a,width:t??i,height:n??s}})(r,o,a);return{hasIntrinsicSize:M&&R,chartContainerProps:{margin:i,children:l,series:s,colors:u,dataset:c,desc:d,disableAxisListener:p,highlightedItem:f,onHighlightChange:h,plugins:m,sx:g,title:v,viewBox:b,xAxis:y,yAxis:x,zAxis:w,skipAnimation:C,width:M,height:R,ref:n},resizableChartContainerProps:fe({},S,{ownerState:{width:r,height:o},ref:k})}},DK=e.forwardRef((function(e,t){const{hasIntrinsicSize:n,chartContainerProps:r,resizableChartContainerProps:o}=EK(e,t);return(0,Tr.jsx)(TK,fe({},o,{children:n?(0,Tr.jsx)(AK,fe({},r)):null}))}));function OK(e){return ec("MuiChartsAxis",e)}const _K=tc("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right"]),FK=Ir("g",{name:"MuiChartsAxis",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{[`& .${_K.tickLabel}`]:fe({},t.typography.caption,{fill:(t.vars||t).palette.text.primary}),[`& .${_K.label}`]:fe({},t.typography.body1,{fill:(t.vars||t).palette.text.primary}),[`& .${_K.line}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${_K.tick}`]:{stroke:(t.vars||t).palette.text.primary,shapeRendering:"crispEdges"}}}));const LK={widthCache:{},cacheCount:0},jK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},NK=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],zK="mui_measurement_span";function BK(e,t){return NK.indexOf(e)>=0&&t===+t?`${t}px`:t}function HK(e){return e.split("").reduce(((e,t)=>t===t.toUpperCase()?[...e,"-",t.toLowerCase()]:[...e,t]),[]).join("")}let VK;const WK=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||"undefined"===typeof window)return{width:0,height:0};const n=`${e}`,r=(e=>Object.keys(e).sort().reduce(((t,n)=>`${t}${HK(n)}:${BK(n,e[n])};`),""))(t),o=`${n}-${r}`;if(LK.widthCache[o])return LK.widthCache[o];try{let e=document.getElementById(zK);null===e&&(e=document.createElement("span"),e.setAttribute("id",zK),e.setAttribute("aria-hidden","true"),document.body.appendChild(e));const r=fe({},jK,t);Object.keys(r).map((t=>(e.style[HK(t)]=BK(t,r[t]),t))),e.textContent=n;const a=e.getBoundingClientRect(),i={width:a.width,height:a.height};return LK.widthCache[o]=i,LK.cacheCount+1>2e3?(LK.cacheCount=0,LK.widthCache={}):LK.cacheCount+=1,VK&&clearTimeout(VK),VK=setTimeout((()=>{e.textContent=""}),0),i}catch{return{width:0,height:0}}};function UK(e){let{style:t,needsComputation:n,text:r}=e;return r.split("\n").map((e=>fe({text:e},n?WK(e,t):{width:0,height:0})))}const GK=["x","y","style","text","ownerState"],KK=["angle","textAnchor","dominantBaseline"];function YK(t){const{x:n,y:r,style:o,text:a}=t,i=Ai(t,GK),l=o??{},{angle:s,textAnchor:u,dominantBaseline:c}=l,d=Ai(l,KK),p=e.useMemo((()=>UK({style:d,needsComputation:a.includes("\n"),text:a})),[d,a]);let f;switch(c){case"hanging":f=0;break;case"central":f=(p.length-1)/2*-p[0].height;break;default:f=(p.length-1)*-p[0].height}const h=[];return s&&h.push(`rotate(${s}, ${n}, ${r})`),(0,Tr.jsx)("text",fe({},i,{transform:h.length>0?h.join(" "):void 0,x:n,y:r,textAnchor:u,dominantBaseline:c,style:d,children:p.map(((e,t)=>(0,Tr.jsx)("tspan",{x:n,dy:`${0===t?f:p[0].height}px`,dominantBaseline:c,children:e.text},t)))}))}const ZK=["scale","tickNumber","reverse"];function qK(e,t){let{tickLabelStyle:n,tickLabelInterval:r,reverse:o,isMounted:a}=t;const i=e.map((e=>{if(!a||void 0===e.formattedValue)return fe({},e,{width:0,height:0});const t=UK({style:n,needsComputation:!0,text:e.formattedValue});return fe({},e,{width:Math.max(...t.map((e=>e.width))),height:Math.max(t.length*t[0].height)})}));if("function"===typeof r)return i.map(((e,t)=>fe({},e,{skipLabel:!r(e.value,t)})));let l=0,s=0;const u=o?-1:1;return i.map(((e,t)=>{const{width:r,offset:o,labelOffset:a,height:i}=e,c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<5)return e;if(r>85)return t;const o=r*Math.PI/180;return o<Math.atan2(t,e)?e/Math.cos(o):t/Math.sin(o)}(r,i,n?.angle),d=o+a;return l=d-u*(1.2*c)/2,t>0&&u*l<u*s?fe({},e,{skipLabel:!0}):(s=d+u*(1.2*c)/2,e)}))}const XK=Ir(FK,{name:"MuiChartsXAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QK={position:"bottom",disableLine:!1,disableTicks:!1,tickSize:6};function JK(t){const{xAxisIds:n,xAxis:r}=kz(),o=r[t.axisId??n[0]],{scale:a,tickNumber:i,reverse:l}=o,s=Ai(o,ZK),u=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[n,r]=e.useState(!1);return fu((()=>{t||r(!0)}),[t]),e.useEffect((()=>{t&&r(!0)}),[t]),n}(),c=gu({props:fe({},s,t),name:"MuiChartsXAxis"}),d=fe({},QK,c),{position:p,disableLine:f,disableTicks:h,tickLabelStyle:m,label:g,labelStyle:v,tickFontSize:b,labelFontSize:y,tickSize:x,valueFormatter:w,slots:C,slotProps:S,tickInterval:k,tickLabelInterval:M,tickPlacement:R,tickLabelPlacement:P,sx:I}=d,A=(e=>{const{classes:t,position:n}=e;return qu({root:["root","directionX",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},OK,t)})(fe({},d,{theme:Lr()})),{left:T,top:$,width:E,height:D,isPointInside:O}=uH(),_=h?4:x,F="bottom"===p?1:-1,L=C?.axisLine??"line",j=C?.axisTick??"line",N=C?.axisTickLabel??YK,z=C?.axisLabel??YK,B=Us({elementType:N,externalSlotProps:S?.axisTickLabel,additionalProps:{style:fe({textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto",fontSize:b??12},m)},className:A.tickLabel,ownerState:{}}),H=qK(rG({scale:a,tickNumber:i,valueFormatter:w,tickInterval:k,tickPlacement:R,tickLabelPlacement:P}),{tickLabelStyle:B.style,tickLabelInterval:M,reverse:l,isMounted:u}),V={x:T+E/2,y:F*(_+22)},W=Us({elementType:z,externalSlotProps:S?.axisLabel,additionalProps:{style:fe({fontSize:y??14,textAnchor:"middle",dominantBaseline:"bottom"===p?"hanging":"auto"},v)},ownerState:{}}),U=a.domain(),G=lH(a);return G&&0===U.length||!G&&U.some(tG)?null:(0,Tr.jsxs)(XK,{transform:`translate(0, ${"bottom"===p?$+D:$})`,className:A.root,sx:I,children:[!f&&(0,Tr.jsx)(L,fe({x1:T,x2:T+E,className:A.line},S?.axisLine)),H.map(((e,t)=>{let{formattedValue:n,offset:r,labelOffset:o,skipLabel:a}=e;const i=o??0,l=F*(_+3),s=O({x:r,y:-1},{direction:"x"}),u=O({x:r+i,y:-1},{direction:"x"});return(0,Tr.jsxs)("g",{transform:`translate(${r}, 0)`,className:A.tickContainer,children:[!h&&s&&(0,Tr.jsx)(j,fe({y2:F*_,className:A.tick},S?.axisTick)),void 0!==n&&!a&&u&&(0,Tr.jsx)(N,fe({x:i,y:l},B,{text:n.toString()}))]},t)})),g&&(0,Tr.jsx)("g",{className:A.label,children:(0,Tr.jsx)(z,fe({},V,W,{text:g}))})]})}const eY=["scale","tickNumber"],tY=Ir(FK,{name:"MuiChartsYAxis",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nY={position:"left",disableLine:!1,disableTicks:!1,tickFontSize:12,labelFontSize:14,tickSize:6};function rY(e){const{yAxisIds:t,yAxis:n}=kz(),r=n[e.axisId??t[0]],{scale:o,tickNumber:a}=r,i=gu({props:fe({},Ai(r,eY),e),name:"MuiChartsYAxis"}),l=fe({},nY,i),{position:s,disableLine:u,disableTicks:c,tickFontSize:d,label:p,labelFontSize:f,labelStyle:h,tickLabelStyle:m,tickSize:g,valueFormatter:v,slots:b,slotProps:y,tickPlacement:x,tickLabelPlacement:w,tickInterval:C,tickLabelInterval:S,sx:k}=l,M=Lr(),R=ni(),P=(e=>{const{classes:t,position:n}=e;return qu({root:["root","directionY",n],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]},OK,t)})(fe({},l,{theme:M})),{left:I,top:A,width:T,height:$,isPointInside:E}=uH(),D=c?4:g,O=rG({scale:o,tickNumber:a,valueFormatter:v,tickPlacement:x,tickLabelPlacement:w,tickInterval:C}),_="right"===s?1:-1,F={x:_*(d+D+10),y:A+$/2},L=b?.axisLine??"line",j=b?.axisTick??"line",N=b?.axisTickLabel??YK,z=b?.axisLabel??YK,B=!R&&"right"===s||R&&"right"!==s,H=Us({elementType:N,externalSlotProps:y?.axisTickLabel,additionalProps:{style:fe({fontSize:d,textAnchor:B?"start":"end",dominantBaseline:"central"},m)},className:P.tickLabel,ownerState:{}}),V=Us({elementType:z,externalSlotProps:y?.axisLabel,additionalProps:{style:fe({fontSize:f,angle:90*_,textAnchor:"middle",dominantBaseline:"auto"},h)},ownerState:{}}),W=Us({elementType:L,externalSlotProps:y?.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),U=o.domain(),G=lH(o);return G&&0===U.length||!G&&U.some(tG)?null:(0,Tr.jsxs)(tY,{transform:`translate(${"right"===s?I+T:I}, 0)`,className:P.root,sx:k,children:[!u&&(0,Tr.jsx)(L,fe({y1:A,y2:A+$,className:P.line},W)),O.map(((e,t)=>{let{formattedValue:n,offset:r,labelOffset:o,value:a}=e;const i=_*(D+2),l=o,s="function"===typeof S&&!S?.(a,t);return E({x:-1,y:r},{direction:"y"})?(0,Tr.jsxs)("g",{transform:`translate(0, ${r})`,className:P.tickContainer,children:[!c&&(0,Tr.jsx)(j,fe({x2:_*D,className:P.tick},y?.axisTick)),void 0!==n&&!s&&(0,Tr.jsx)(N,fe({x:i,y:l,text:n.toString()},H))]},t):null})),p&&(0,Tr.jsx)("g",{className:P.label,children:(0,Tr.jsx)(z,fe({},F,V,{text:p}))})]})}const oY=(e,t)=>null==e?null:"object"===typeof e?e.axisId??t??null:e,aY=(e,t,n)=>"object"===typeof e?fe({},e,{slots:fe({},t,e?.slots),slotProps:fe({},n,e?.slotProps)}):{slots:t,slotProps:n};function iY(t){const{topAxis:n,leftAxis:r,rightAxis:o,bottomAxis:a,slots:i,slotProps:l}=t,{xAxis:s,xAxisIds:u,yAxis:c,yAxisIds:d}=kz(),p=oY(void 0===r?d[0]:r,d[0]),f=oY(void 0===a?u[0]:a,u[0]),h=oY(n,u[0]),m=oY(o,d[0]);if(null!==h&&!s[h])throw new Error([`MUI X: id used for top axis "${h}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join("\n"));if(null!==p&&!c[p])throw new Error([`MUI X: id used for left axis "${p}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==m&&!c[m])throw new Error([`MUI X: id used for right axis "${m}" is not defined.`,`Available ids are: ${d.join(", ")}.`].join("\n"));if(null!==f&&!s[f])throw new Error([`MUI X: id used for bottom axis "${f}" is not defined.`,`Available ids are: ${u.join(", ")}.`].join("\n"));const g=aY(n,i,l),v=aY(a,i,l),b=aY(r,i,l),y=aY(o,i,l);return(0,Tr.jsxs)(e.Fragment,{children:[h&&(0,Tr.jsx)(JK,fe({},g,{position:"top",axisId:h})),f&&(0,Tr.jsx)(JK,fe({},v,{position:"bottom",axisId:f})),p&&(0,Tr.jsx)(rY,fe({},b,{position:"left",axisId:p})),m&&(0,Tr.jsx)(rY,fe({},y,{position:"right",axisId:m}))]})}const lY=function(t){const{children:n,defer:r=!1,fallback:o=null}=t,[a,i]=e.useState(!1);return zo((()=>{r||i(!0)}),[r]),e.useEffect((()=>{r&&i(!0)}),[r]),(0,Tr.jsx)(e.Fragment,{children:a?n:o})};function sY(e){if(null===e)return{getBoundingClientRect:()=>({width:0,height:0,x:0,y:0,top:0,right:0,bottom:0,left:0,toJSON:()=>""})};const{x:t,y:n}=e,r={width:0,height:0,x:t,y:n,top:n,right:t,bottom:n,left:t};return{getBoundingClientRect:()=>fe({},r,{toJSON:()=>JSON.stringify(r)})}}function uY(e){return ec("MuiChartsTooltip",e)}const cY=tc("MuiChartsTooltip",["root","paper","table","row","cell","mark","markCell","labelCell","valueCell"]),dY=Ir("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return{boxShadow:t.shadows[1],backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),borderRadius:t.shape.borderRadius}})),pY=Ir("table",{name:"MuiChartsTooltip",slot:"Table",overridesResolver:(e,t)=>t.table})((e=>{let{theme:t}=e;return{borderSpacing:0,"& thead td":{borderBottom:`solid ${(t.vars||t).palette.divider} 1px`}}})),fY=Ir("tr",{name:"MuiChartsTooltip",slot:"Row",overridesResolver:(e,t)=>t.row})((e=>{let{theme:t}=e;return{"tr:first-of-type& td":{paddingTop:t.spacing(1)},"tr:last-of-type& td":{paddingBottom:t.spacing(1)}}})),hY=Ir("td",{name:"MuiChartsTooltip",slot:"Cell",overridesResolver:(e,t)=>t.cell})((e=>{let{theme:t}=e;return{verticalAlign:"middle",color:(t.vars||t).palette.text.secondary,[`&.${cY.labelCell}`]:{paddingLeft:t.spacing(1)},[`&.${cY.valueCell}`]:{paddingLeft:t.spacing(4),color:(t.vars||t).palette.text.primary},"td:first-of-type&":{paddingLeft:t.spacing(2)},"td:last-of-type&":{paddingRight:t.spacing(2)}}})),mY=Ir("div",{name:"MuiChartsTooltip",slot:"Mark",overridesResolver:(e,t)=>t.mark,shouldForwardProp:e=>nn(e)&&"color"!==e})((e=>{let{theme:t,color:n}=e;return{width:t.spacing(1),height:t.spacing(1),borderRadius:"50%",boxShadow:t.shadows[1],backgroundColor:n,borderColor:(t.vars||t).palette.background.paper,border:`solid ${(t.vars||t).palette.background.paper} ${t.spacing(.25)}`,boxSizing:"content-box"}}));function gY(e){const{series:t,itemData:n,sx:r,classes:a,getColor:i}=e;if(void 0===n.dataIndex||!t.data[n.dataIndex])return null;const{displayedLabel:l,color:s}="pie"===t.type?{color:i(n.dataIndex),displayedLabel:xK(t.data[n.dataIndex].label,"tooltip")}:{color:i(n.dataIndex),displayedLabel:xK(t.label,"tooltip")},u="pie"===t.type?fe({},t.data[n.dataIndex],{label:xK(t.data[n.dataIndex].label,"tooltip")}):t.data[n.dataIndex],c=t.valueFormatter?.(u,{dataIndex:n.dataIndex});return(0,Tr.jsx)(dY,{sx:r,className:a.paper,children:(0,Tr.jsx)(pY,{className:a.table,children:(0,Tr.jsx)("tbody",{children:(0,Tr.jsxs)(fY,{className:a.row,children:[(0,Tr.jsx)(hY,{className:o(a.markCell,a.cell),children:(0,Tr.jsx)(mY,{color:s,className:a.mark})}),(0,Tr.jsx)(hY,{className:o(a.labelCell,a.cell),children:l}),(0,Tr.jsx)(hY,{className:o(a.valueCell,a.cell),children:c})]})})})})}function vY(t){const{isInitialized:n,data:r}=e.useContext(aH);if(!n)throw new Error(["MUI X: Could not find the plugin context.","It looks like you rendered your component outside of a ChartsContainer parent component."].join("\n"));return t?r.colorProcessors[t]:r.colorProcessors}function bY(t){const{content:n,itemData:r,sx:o,classes:a,contentProps:i}=t,l=UB()[r.type].series[r.seriesId],{xAxis:s,yAxis:u,xAxisIds:c,yAxisIds:d}=kz(),{zAxis:p,zAxisIds:f}=e.useContext(IG),h=vY(),m=l.xAxisId??l.xAxisKey??c[0],g=l.yAxisId??l.yAxisKey??d[0],v=l.zAxisId??l.zAxisKey??f[0],b=h[l.type]?.(l,m&&s[m],g&&u[g],v&&p[v])??(()=>""),y=n??gY,x=Us({elementType:y,externalSlotProps:i,additionalProps:{itemData:r,series:l,sx:o,classes:a,getColor:b},ownerState:{}});return(0,Tr.jsx)(y,fe({},x))}let yY;const xY=new class{constructor(){if(this.types=new Set,yY)throw new Error("You can only create one instance!");yY=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}};function wY(e){return xY.getTypes().has(e)}function CY(e){return wY(e.type)}function SY(e){const{series:t,axis:n,dataIndex:r,axisValue:a,sx:i,classes:l}=e;if(null==r)return null;const s=n.valueFormatter??(e=>"utc"===n.scaleType?function(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}(e):e.toLocaleString());return(0,Tr.jsx)(dY,{sx:i,className:l.paper,children:(0,Tr.jsxs)(pY,{className:l.table,children:[null!=a&&!n.hideTooltip&&(0,Tr.jsx)("thead",{children:(0,Tr.jsx)(fY,{children:(0,Tr.jsx)(hY,{colSpan:3,children:(0,Tr.jsx)(wo,{children:s(a,{location:"tooltip"})})})})}),(0,Tr.jsx)("tbody",{children:t.filter(CY).map((e=>{let{id:t,label:n,valueFormatter:a,data:i,getColor:s}=e;const u=a(i[r]??null,{dataIndex:r});if(null==u)return null;const c=xK(n,"tooltip"),d=s(r);return(0,Tr.jsxs)(fY,{className:l.row,children:[(0,Tr.jsx)(hY,{className:o(l.markCell,l.cell),children:d&&(0,Tr.jsx)(mY,{color:d,className:l.mark})}),(0,Tr.jsx)(hY,{className:o(l.labelCell,l.cell),children:c?(0,Tr.jsx)(wo,{children:c}):null}),(0,Tr.jsx)(hY,{className:o(l.valueCell,l.cell),children:(0,Tr.jsx)(wo,{children:u})})]},t)}))})]})})}function kY(t){const{content:n,contentProps:r,axisData:o,sx:a,classes:i}=t,l=o.x&&-1!==o.x.index,s=l?o.x&&o.x.index:o.y&&o.y.index,u=l?o.x&&o.x.value:o.y&&o.y.value,{xAxisIds:c,xAxis:d,yAxisIds:p,yAxis:f}=kz(),{zAxisIds:h,zAxis:m}=e.useContext(IG),g=UB(),v=vY(),b=l?c[0]:p[0],y=e.useMemo((()=>{const e=[];return Object.keys(g).filter(wY).forEach((t=>{g[t].seriesOrder.forEach((n=>{const r=g[t].series[n],o=r.xAxisId??r.xAxisKey,a=r.yAxisId??r.yAxisKey,i=l?o:a;if(void 0===i||i===b){const r=g[t].series[n],i=o??c[0],l=a??p[0],s=r.zAxisId??r.zAxisKey??h[0],u=v[t]?.(r,d[i],f[l],s&&m[s])??(()=>"");e.push(fe({},r,{getColor:u}))}}))})),e}),[b,v,l,g,d,c,f,p,m,h]),x=e.useMemo((()=>l?d[b]:f[b]),[b,l,d,f]),w=n??SY,C=Us({elementType:w,externalSlotProps:r,additionalProps:{axisData:o,series:y,axis:x,dataIndex:s,axisValue:u,sx:a,classes:i},ownerState:{}});return(0,Tr.jsx)(w,fe({},C))}xY.addType("bar"),xY.addType("line"),xY.addType("scatter");const MY=Ir(iv,{name:"MuiChartsTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{pointerEvents:"none",zIndex:t.zIndex.modal}}));function RY(t){const n=gu({props:t,name:"MuiChartsTooltip"}),{trigger:r="axis",itemContent:o,axisContent:a,slots:i,slotProps:l}=n,s=function(){const t=sH(),[n,r]=e.useState(null);return e.useEffect((()=>{const e=t.current;if(null===e)return()=>{};const n=e=>{"mouse"!==e.pointerType&&r(null)},o=e=>{r({x:e.clientX,y:e.clientY,height:e.height,pointerType:e.pointerType})};return e.addEventListener("pointerdown",o),e.addEventListener("pointermove",o),e.addEventListener("pointerup",n),()=>{e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",n)}}),[t]),n}(),{item:u,axis:c}=e.useContext(aB),d="item"===r?u:c,p=function(e,t){if("item"===e)return null!==t;const n=null!==t.x,r=null!==t.y;return n||r}(r,d),f=null!==s&&p,h=(e=>{const{classes:t}=e;return qu({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markCell:["markCell"],labelCell:["labelCell"],valueCell:["valueCell"]},uY,t)})({classes:n.classes}),m=i?.popper??MY,g=Us({elementType:m,externalSlotProps:l?.popper,additionalProps:{open:f,placement:"mouse"===s?.pointerType?"right-start":"top",anchorEl:sY(s),modifiers:[{name:"offset",options:{offset:[0,"touch"===s?.pointerType?40-s.height:0]}}]},ownerState:{}});return"none"===r?null:(0,Tr.jsx)(lY,{children:f&&(0,Tr.jsx)(m,fe({},g,{className:h.root,children:"item"===r?(0,Tr.jsx)(bY,{itemData:d,content:i?.itemContent??o,contentProps:l?.itemContent,sx:{mx:2},classes:h}):(0,Tr.jsx)(kY,{axisData:d,content:i?.axisContent??a,contentProps:l?.axisContent,sx:{mx:2},classes:h})}))})}const PY={bar:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},scatter:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},line:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>{const r=xK(n[t].label,"legend");return void 0===r||e.push({id:t,seriesId:t,color:n[t].color,label:r}),e}),[])},pie:e=>{const{seriesOrder:t,series:n}=e;return t.reduce(((e,t)=>(n[t].data.forEach((n=>{const r=xK(n.label,"legend");void 0!==r&&e.push({id:n.id,seriesId:t,color:n.color,label:r,itemId:n.id})})),e)),[])}};function IY(e){return ec("MuiChartsLegend",e)}tc("MuiChartsLegend",["root","series","itemBackground","mark","label","column","row"]);const AY=["label"];function TY(e){const t=ni(),{id:n,positionY:r,label:a,positionX:i,innerHeight:l,innerWidth:s,legendWidth:u,color:c,gapX:d,gapY:p,itemMarkHeight:f,itemMarkWidth:h,markGap:m,labelStyle:g,classes:v,onClick:b}=e;return(0,Tr.jsxs)("g",{className:o(v?.series,`${v?.series}-${n}`),transform:`translate(${d+(t?u-i:i)} ${p+r})`,children:[(0,Tr.jsx)("rect",{x:t?-(s+2):-2,y:-f/2-2,width:s+4,height:l+4,fill:"transparent",className:v?.itemBackground,onClick:b,style:{pointerEvents:b?"all":"none",cursor:b?"pointer":"unset"}}),(0,Tr.jsx)("rect",{className:v?.mark,x:t?-h:0,y:-f/2,width:h,height:f,fill:c,style:{pointerEvents:"none"}}),(0,Tr.jsx)(YK,{style:fe({pointerEvents:"none"},g),text:a,x:(t?-1:1)*(h+m),y:0})]})}const $Y=["rotate","dominantBaseline"],EY=Ir("g",{name:"MuiChartsLegend",slot:"Root",overridesResolver:(e,t)=>t.root})({});function DY(t){const{position:n,direction:r,itemsToDisplay:o,classes:a,itemMarkWidth:i=20,itemMarkHeight:l=20,markGap:s=5,itemGap:u=10,padding:c=10,labelStyle:d,onItemClick:p}=t,f=Lr(),h=uH(),m=e.useMemo((()=>fe({},f.typography.subtitle1,{color:"inherit",dominantBaseline:"central",textAnchor:"start",fill:(f.vars||f).palette.text.primary,lineHeight:1},d)),[d,f]),g=e.useMemo((()=>(e=>"number"===typeof e?{left:e,right:e,top:e,bottom:e}:fe({left:0,right:0,top:0,bottom:0},e))(c)),[c]),v=e.useCallback((function(e){const t=UK({style:Ai(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$Y),needsComputation:!0,text:e}),n={innerWidth:i+s+Math.max(...t.map((e=>e.width))),innerHeight:Math.max(l,t.length*t[0].height)};return fe({},n,{outerWidth:n.innerWidth+u,outerHeight:n.innerHeight+u})}),[u,l,i,s]),b=h.left+h.width+h.right,y=h.top+h.height+h.bottom,x=b-g.left-g.right,w=y-g.top-g.bottom,[C,S,k]=e.useMemo((()=>function(e,t,n,r,o,a,i){let l=0,s=0,u=0,c=0,d=0;const p=[0];return[e.map((e=>{let{label:f}=e,h=Ai(e,AY);const m=t(f,n),g=fe({},h,{label:f,positionX:l,positionY:s,innerHeight:m.innerHeight,innerWidth:m.innerWidth,outerHeight:m.outerHeight,outerWidth:m.outerWidth,rowIndex:d});return"row"===r&&(l+m.innerWidth>o&&(l=0,s+=p[d],d+=1,p.length<=d&&p.push(0),g.positionX=l,g.positionY=s,g.rowIndex=d),u=Math.max(u,l+m.outerWidth),c=Math.max(c,s+m.outerHeight),p[d]=Math.max(p[d],m.outerHeight),l+=m.outerWidth),"column"===r&&(s+m.innerHeight>a&&(l=u+i,s=0,d=0,g.positionX=l,g.positionY=s,g.rowIndex=d),p.length<=d&&p.push(0),u=Math.max(u,l+m.outerWidth),c=Math.max(c,s+m.outerHeight),d+=1,s+=m.outerHeight),g})).map((e=>fe({},e,{positionY:e.positionY+("row"===r?p[e.rowIndex]/2:e.outerHeight/2)}))),u,c]}(o,v,m,r,x,w,u)),[o,v,m,r,x,w,u]),M=e.useMemo((()=>{switch(n.horizontal){case"left":return g.left;case"right":return b-g.right-S;default:return(b-S)/2}}),[n.horizontal,g.left,g.right,b,S]),R=e.useMemo((()=>{switch(n.vertical){case"top":return g.top;case"bottom":return y-g.bottom-k;default:return(y-k)/2}}),[n.vertical,g.top,g.bottom,y,k]);return(0,Tr.jsx)(lY,{children:(0,Tr.jsx)(EY,{className:a?.root,children:C.map(((t,n)=>(0,e.createElement)(TY,fe({},t,{key:t.id,gapX:M,gapY:R,legendWidth:S,itemMarkHeight:l,itemMarkWidth:i,markGap:s,labelStyle:m,classes:a,onClick:p?e=>p(e,n):void 0}))))})})}const OY=["drawingArea","seriesToDisplay","hidden","onItemClick"];function _Y(e){const{seriesToDisplay:t,hidden:n,onItemClick:r}=e,o=Ai(e,OY);return n?null:(0,Tr.jsx)(DY,fe({},o,{itemsToDisplay:t,onItemClick:r?(e,n)=>{return r(e,{type:"series",color:(o=t[n]).color,label:o.label,seriesId:o.seriesId,itemId:o.itemId},n);var o}:void 0}))}const FY=["slots","slotProps"];function LY(e){const t=gu({props:e,name:"MuiChartsLegend"}),n=fe({direction:"row"},t,{position:fe({horizontal:"middle",vertical:"top"},t.position)}),{slots:r,slotProps:o}=n,a=Ai(n,FY),i=(e=>{const{classes:t,direction:n}=e;return qu({root:["root",n],mark:["mark"],label:["label"],series:["series"],itemBackground:["itemBackground"]},IY,t)})(fe({},n,{theme:Lr()})),l=uH(),s=UB(),u=function(e){return Object.keys(e).flatMap((t=>{const n=PY[t];return void 0===n?[]:n(e[t])}))}(s),c=r?.legend??_Y,d=Us({elementType:c,externalSlotProps:o?.legend,additionalProps:fe({},a,{classes:i,drawingArea:l,series:s,seriesToDisplay:u}),ownerState:{}});return(0,Tr.jsx)(c,fe({},d))}function jY(e){return lH(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function NY(e){return ec("MuiChartsAxisHighlight",e)}tc("MuiChartsAxisHighlight",["root"]);const zY=Ir("path",{name:"MuiChartsAxisHighlight",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:fe({fill:"white",fillOpacity:.1},t.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:fe({strokeDasharray:"5 2",stroke:"#ffffff"},t.applyStyles("light",{stroke:"#000000"}))}]}}));function BY(t){const{x:n,y:r}=t,{xAxisIds:o,xAxis:a,yAxisIds:i,yAxis:l}=kz(),s=qu({root:["root"]},NY),u=o[0],c=i[0],d=a[u].scale,p=l[c].scale,{axis:f}=e.useContext(aB),h=jY(d),m=jY(p),g=f.x,v=f.y,b="band"===n&&null!==g&&lH(d),y="band"===r&&null!==v&&lH(p);return(0,Tr.jsxs)(e.Fragment,{children:[b&&void 0!==d(g.value)&&(0,Tr.jsx)(zY,{d:`M ${d(g.value)-(d.step()-d.bandwidth())/2} ${p.range()[0]} l ${d.step()} 0 l 0 ${p.range()[1]-p.range()[0]} l ${-d.step()} 0 Z`,className:s.root,ownerState:{axisHighlight:"band"}}),y&&void 0!==p(v.value)&&(0,Tr.jsx)(zY,{d:`M ${d.range()[0]} ${p(v.value)-(p.step()-p.bandwidth())/2} l 0 ${p.step()} l ${d.range()[1]-d.range()[0]} 0 l 0 ${-p.step()} Z`,className:s.root,ownerState:{axisHighlight:"band"}}),"line"===n&&null!==f.x&&(0,Tr.jsx)(zY,{d:`M ${h(f.x.value)} ${p.range()[0]} L ${h(f.x.value)} ${p.range()[1]}`,className:s.root,ownerState:{axisHighlight:"line"}}),"line"===r&&null!==f.y&&(0,Tr.jsx)(zY,{d:`M ${d.range()[0]} ${m(f.y.value)} L ${d.range()[1]} ${m(f.y.value)}`,className:s.root,ownerState:{axisHighlight:"line"}})]})}function HY(e){const{id:t,offset:n}=e,{left:r,top:o,width:a,height:i}=uH(),l=fe({top:0,right:0,bottom:0,left:0},n);return(0,Tr.jsx)("clipPath",{id:t,children:(0,Tr.jsx)("rect",{x:r-l.left,y:o-l.top,width:a+l.left+l.right,height:i+l.top+l.bottom})})}function VY(e){return ec("MuiChartsGrid",e)}const WY=tc("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),UY=Ir("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${WY.verticalLine}`]:t.verticalLine},{[`&.${WY.horizontalLine}`]:t.horizontalLine},t.root]})({}),GY=Ir("line",{name:"MuiChartsGrid",slot:"Line",overridesResolver:(e,t)=>t.line})((e=>{let{theme:t}=e;return{stroke:(t.vars||t).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}}));function KY(t){const{axis:n,drawingArea:r,classes:o}=t,{scale:a,tickNumber:i,tickInterval:l}=n,s=rG({scale:a,tickNumber:i,tickInterval:l});return(0,Tr.jsx)(e.Fragment,{children:s.map((e=>{let{formattedValue:t,offset:n}=e;return(0,Tr.jsx)(GY,{y1:r.top,y2:r.top+r.height,x1:n,x2:n,className:o.verticalLine},`vertical-${t}`)}))})}function YY(t){const{axis:n,drawingArea:r,classes:o}=t,{scale:a,tickNumber:i,tickInterval:l}=n,s=rG({scale:a,tickNumber:i,tickInterval:l});return(0,Tr.jsx)(e.Fragment,{children:s.map((e=>{let{formattedValue:t,offset:n}=e;return(0,Tr.jsx)(GY,{y1:n,y2:n,x1:r.left,x2:r.left+r.width,className:o.horizontalLine},`horizontal-${t}`)}))})}const ZY=["vertical","horizontal"];function qY(e){const t=gu({props:e,name:"MuiChartsGrid"}),n=uH(),{vertical:r,horizontal:o}=t,a=Ai(t,ZY),{xAxis:i,xAxisIds:l,yAxis:s,yAxisIds:u}=kz(),c=(e=>{let{classes:t}=e;return qu({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},VY,t)})(t),d=s[u[0]],p=i[l[0]];return(0,Tr.jsxs)(UY,fe({},a,{className:c.root,children:[r&&(0,Tr.jsx)(KY,{axis:p,drawingArea:n,classes:c}),o&&(0,Tr.jsx)(YY,{axis:d,drawingArea:n,classes:c})]}))}function XY(t){const{onAxisClick:n}=t,r=sH(),o=UB(),{axis:a}=e.useContext(aB),{xAxisIds:i,xAxis:l,yAxisIds:s,yAxis:u}=kz();return e.useEffect((()=>{const e=r.current;if(null===e||!n)return()=>{};const t=e=>{e.preventDefault();const t=a.x&&-1!==a.x.index,r=t?i[0]:s[0],c=t?a.x&&a.x.index:a.y&&a.y.index;if(null==c)return;const d={};Object.keys(o).filter((e=>["bar","line"].includes(e))).forEach((e=>{o[e]?.seriesOrder.forEach((n=>{const a=o[e].series[n],i=a.xAxisId??a.xAxisKey,l=a.yAxisId??a.yAxisKey,s=t?i:l;void 0!==s&&s!==r||(d[n]=a.data[c])}))}));const p=(t?l:u)[r].data?.[c];n(e,{dataIndex:c,axisValue:p,seriesValues:d})};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[a.x,a.y,n,o,r,l,i,u,s]),(0,Tr.jsx)(e.Fragment,{})}const QY=["message"],JY=Ir("text")((e=>{let{theme:t}=e;return fe({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"})}));function eZ(e){const{message:t}=e,n=Ai(e,QY),{top:r,left:o,height:a,width:i}=uH();return(0,Tr.jsx)(JY,fe({x:o+i/2,y:r+a/2},n,{children:t??"Loading data\u2026"}))}const tZ=["message"],nZ=Ir("text")((e=>{let{theme:t}=e;return fe({},t.typography.body2,{stroke:"none",fill:t.palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"})}));function rZ(e){const{message:t}=e,n=Ai(e,tZ),{top:r,left:o,height:a,width:i}=uH();return(0,Tr.jsx)(nZ,fe({x:o+i/2,y:r+a/2},n,{children:t??"No data to display"}))}function oZ(e){const t=function(){const e=UB();return Object.values(e).every((e=>{if(!e)return!0;const{series:t,seriesOrder:n}=e;return n.every((e=>0===t[e].data.length))}))}();if(e.loading){const t=e.slots?.loadingOverlay??eZ;return(0,Tr.jsx)(t,fe({},e.slotProps?.loadingOverlay))}if(t){const t=e.slots?.noDataOverlay??rZ;return(0,Tr.jsx)(t,fe({},e.slotProps?.noDataOverlay))}return null}const aZ=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","axisHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className"],iZ=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiBarChart"}),{chartContainerProps:r,barPlotProps:o,axisClickHandlerProps:a,gridProps:i,clipPathProps:l,clipPathGroupProps:s,overlayProps:u,chartsAxisProps:c,axisHighlightProps:d,legendProps:p,tooltipProps:f,children:h}=(e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:a,margin:i,colors:l,dataset:s,sx:u,tooltip:c,onAxisClick:d,axisHighlight:p,legend:f,grid:h,topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,children:y,slots:x,slotProps:w,skipAnimation:C,loading:S,layout:k,onItemClick:M,highlightedItem:R,onHighlightChange:P,borderRadius:I,barLabel:A,className:T}=e,$=Ai(e,aZ),E=`${Ys()}-clip-path`,D="horizontal"===k||void 0===k&&r.some((e=>"horizontal"===e.layout)),O={scaleType:"band",data:Array.from({length:Math.max(...r.map((e=>(e.data??s??[]).length)))},((e,t)=>t))},_=fe({},$,{series:r.map((e=>fe({type:"bar"},e,{layout:D?"horizontal":"vertical"}))),width:o,height:a,margin:i,colors:l,dataset:s,xAxis:t??(D?void 0:[fe({id:vB},O)]),yAxis:n??(D?[fe({id:bB},O)]:void 0),sx:u,highlightedItem:R,onHighlightChange:P,disableAxisListener:"axis"!==c?.trigger&&"none"===p?.x&&"none"===p?.y&&!d,className:T,skipAnimation:C});return{chartContainerProps:_,barPlotProps:{onItemClick:M,slots:x,slotProps:w,borderRadius:I,barLabel:A},axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:h?.vertical,horizontal:h?.horizontal},clipPathProps:{id:E},clipPathGroupProps:{clipPath:`url(#${E})`},overlayProps:{slots:x,slotProps:w,loading:S},chartsAxisProps:{topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,slots:x,slotProps:w},axisHighlightProps:fe({},D?{y:"band"}:{x:"band"},p),legendProps:fe({},f,{slots:x,slotProps:w}),tooltipProps:fe({},c,{slots:x,slotProps:w}),children:y}})(n);return(0,Tr.jsxs)(DK,fe({ref:t},r,{children:[n.onAxisClick&&(0,Tr.jsx)(XY,fe({},a)),(0,Tr.jsx)(qY,fe({},i)),(0,Tr.jsxs)("g",fe({},s,{children:[(0,Tr.jsx)(JB,fe({},o)),(0,Tr.jsx)(oZ,fe({},u)),(0,Tr.jsx)(BY,fe({},d))]})),(0,Tr.jsx)(iY,fe({},c)),(0,Tr.jsx)(LY,fe({},p)),!n.loading&&(0,Tr.jsx)(RY,fe({},f)),(0,Tr.jsx)(HY,fe({},l)),h]}))}));function lZ(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(iZ,{...n},r)}function sZ(e){this._context=e}function uZ(e){return new sZ(e)}lZ.defaultProps={attributes:{}},sZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};const cZ=Math.PI,dZ=2*cZ,pZ=1e-6,fZ=dZ-pZ;function hZ(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class mZ{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?hZ:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hZ;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+a}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let a=this._x1,i=this._y1,l=n-e,s=r-t,u=a-e,c=i-t,d=u*u+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>pZ)if(Math.abs(c*l-s*u)>pZ&&o){let p=n-a,f=r-i,h=l*l+s*s,m=p*p+f*f,g=Math.sqrt(h),v=Math.sqrt(d),b=o*Math.tan((cZ-Math.acos((h+d-m)/(2*g*v)))/2),y=b/v,x=b/g;Math.abs(y-1)>pZ&&this._append`L${e+y*u},${t+y*c}`,this._append`A${o},${o},0,0,${+(c*p>u*f)},${this._x1=e+x*l},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,a){if(e=+e,t=+t,a=!!a,(n=+n)<0)throw new Error(`negative radius: ${n}`);let i=n*Math.cos(r),l=n*Math.sin(r),s=e+i,u=t+l,c=1^a,d=a?r-o:o-r;null===this._x1?this._append`M${s},${u}`:(Math.abs(this._x1-s)>pZ||Math.abs(this._y1-u)>pZ)&&this._append`L${s},${u}`,n&&(d<0&&(d=d%dZ+dZ),d>fZ?this._append`A${n},${n},0,1,${c},${e-i},${t-l}A${n},${n},0,1,${c},${this._x1=s},${this._y1=u}`:d>pZ&&this._append`A${n},${n},0,${+(d>=cZ)},${c},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function gZ(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new mZ(t)}function vZ(e){return e[0]}function bZ(e){return e[1]}function yZ(e,t){var n=jG(!0),r=null,o=uZ,a=null,i=gZ(l);function l(l){var s,u,c,d=(l=LG(l)).length,p=!1;for(null==r&&(a=o(c=i())),s=0;s<=d;++s)!(s<d&&n(u=l[s],s,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(u,s,l),+t(u,s,l));if(c)return a=null,c+""||null}return e="function"===typeof e?e:void 0===e?vZ:jG(e),t="function"===typeof t?t:void 0===t?bZ:jG(t),l.x=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),l):e},l.y=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),l):t},l.defined=function(e){return arguments.length?(n="function"===typeof e?e:jG(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),l):r},l}const xZ=t=>{const n=function(t){const n=e.useRef({currentPath:t,previousPath:void 0});return n.current.currentPath!==t&&(n.current={currentPath:t,previousPath:n.current.currentPath}),n.current}(t);return e.useMemo((()=>n.previousPath?eU(n.previousPath,n.currentPath):()=>n.currentPath),[n.currentPath,n.previousPath])};function wZ(e){return e.replace(" ","_")}function CZ(t){const n=uH(),r=kB(),o=nz([n],{from:e=>({animatedWidth:e.left}),enter:e=>({animatedWidth:e.width+e.left+e.right}),leave:e=>({animatedWidth:e.width+e.left+e.right}),reset:!1,immediate:t.skipAnimation}),a=wZ(`${r}-${t.id}`);return(0,Tr.jsxs)(e.Fragment,{children:[(0,Tr.jsx)("clipPath",{id:a,children:o((e=>(0,Tr.jsx)(Cz.rect,{x:0,y:0,width:e.animatedWidth,height:n.top+n.height+n.bottom})))}),(0,Tr.jsx)("g",{clipPath:`url(#${a})`,children:t.children})]})}const SZ=["d","skipAnimation","ownerState"],kZ=Ir(Cz.path,{name:"MuiAreaElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{stroke:"none",fill:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&Vz(t.color).brighter(1).formatHex()||Vz(t.color).brighter(.5).formatHex(),transition:"opacity 0.2s ease-in, fill 0.2s ease-in",opacity:t.isFaded?.3:1}}));function MZ(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=Ai(e,SZ),a=nz([xZ(t)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,Tr.jsx)(CZ,{skipAnimation:n,id:`${r.id}-area-clip`,children:a(((e,t)=>(0,Tr.jsx)(kZ,fe({},o,{ownerState:r,d:e.value.to(t)}))))})}const RZ=["id","classes","color","gradientId","slots","slotProps","onClick"];function PZ(e){return ec("MuiAreaElement",e)}tc("MuiAreaElement",["root","highlighted","faded"]);function IZ(e){const{id:t,classes:n,color:r,gradientId:o,slots:a,slotProps:i,onClick:l}=e,s=Ai(e,RZ),u=cB(),{isFaded:c,isHighlighted:d}=dB({seriesId:t}),p={id:t,classes:n,color:r,gradientId:o,isFaded:c,isHighlighted:d},f=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},PZ,t)})(p),h=a?.area??MZ,m=Us({elementType:h,externalSlotProps:i?.area,additionalProps:fe({},u({type:"line",seriesId:t}),{onClick:l,cursor:l?"pointer":"unset"}),className:f.root,ownerState:p});return(0,Tr.jsx)(h,fe({},s,m))}function AZ(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function TZ(e,t){this._context=e,this._k=(1-t)/6}TZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:AZ(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:AZ(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new TZ(e,t)}return n.tension=function(t){return e(+t)},n})(0);function $Z(e,t){this._context=e,this._alpha=t}$Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:!function(e,t,n){var r=e._x1,o=e._y1,a=e._x2,i=e._y2;if(e._l01_a>mK){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>mK){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,i=(i*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,a,i,e._x2,e._y2)}(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const EZ=function e(t){function n(e){return t?new $Z(e,t):new TZ(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function DZ(e){return e<0?-1:1}function OZ(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),l=(a*o+i*r)/(r+o);return(DZ(a)+DZ(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(l))||0}function _Z(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function FZ(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,o+l*t,a-l,i-l*n,a,i)}function LZ(e){this._context=e}function jZ(e){this._context=new NZ(e)}function NZ(e){this._context=e}function zZ(e){return new LZ(e)}function BZ(e){return new jZ(e)}function HZ(e){this._context=e}function VZ(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,a[t]=4,i[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,a[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/a[t-1],a[t]-=n,i[t]-=n*i[t-1];for(o[r-1]=i[r-1]/a[r-1],t=r-2;t>=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-o[t+1];return[o,a]}function WZ(e){return new HZ(e)}function UZ(e,t){this._context=e,this._t=t}function GZ(e){return new UZ(e,.5)}function KZ(e){return new UZ(e,0)}function YZ(e){return new UZ(e,1)}function ZZ(e){switch(e){case"catmullRom":return EZ.alpha(.5);case"linear":return uZ;case"monotoneX":default:return zZ;case"monotoneY":return BZ;case"natural":return WZ;case"step":return GZ;case"stepBefore":return KZ;case"stepAfter":return YZ}}LZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:FZ(this,this._t0,_Z(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,FZ(this,_Z(this,n=OZ(this,e,t)),n);break;default:FZ(this,this._t0,n=OZ(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(jZ.prototype=Object.create(LZ.prototype)).point=function(e,t){LZ.prototype.point.call(this,t,e)},NZ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}},HZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=VZ(e),o=VZ(t),a=0,i=1;i<n;++a,++i)this._context.bezierCurveTo(r[0][a],o[0][a],r[1][a],o[1][a],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},UZ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const qZ=["slots","slotProps","onItemClick","skipAnimation"],XZ=()=>{const t=GB(),n=kz(),r=e.useMemo((()=>{if(void 0===t)return[];const{series:e,stackingGroups:r}=t,{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=n,s=i[0],u=l[0];return r.flatMap((t=>{let{ids:n}=t;return[...n].reverse().map((t=>{const{xAxisId:n,yAxisId:r,xAxisKey:i=s,yAxisKey:l=u,stackedData:c,data:d,connectNulls:p,baseline:f}=e[t],h=n??i,m=r??l,g=jY(o[h].scale),v=a[m].scale,b=o[h].data,y=a[m].colorScale&&[m,"y"]||o[h].colorScale&&[h,"x"]||void 0;const x=function(e,t,n){var r=null,o=jG(!0),a=null,i=uZ,l=null,s=gZ(u);function u(u){var c,d,p,f,h,m=(u=LG(u)).length,g=!1,v=new Array(m),b=new Array(m);for(null==a&&(l=i(h=s())),c=0;c<=m;++c){if(!(c<m&&o(f=u[c],c,u))===g)if(g=!g)d=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=c-1;p>=d;--p)l.point(v[p],b[p]);l.lineEnd(),l.areaEnd()}g&&(v[c]=+e(f,c,u),b[c]=+t(f,c,u),l.point(r?+r(f,c,u):v[c],n?+n(f,c,u):b[c]))}if(h)return l=null,h+""||null}function c(){return yZ().defined(o).curve(i).context(a)}return e="function"===typeof e?e:void 0===e?vZ:jG(+e),t="function"===typeof t?t:jG(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?bZ:jG(+n),u.x=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:jG(+e),u):r},u.y=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:jG(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"===typeof e?e:jG(!!e),u):o},u.curve=function(e){return arguments.length?(i=e,null!=a&&(l=i(a)),u):i},u.context=function(e){return arguments.length?(null==e?a=l=null:l=i(a=e),u):a},u}().x((e=>g(e.x))).defined(((e,t)=>p||null!=d[t])).y0((e=>{if("number"===typeof f)return v(f);if("max"===f)return v.range()[1];if("min"===f)return v.range()[0];const t=e.y&&v(e.y[0]);return Number.isNaN(t)?v.range()[0]:t})).y1((e=>e.y&&v(e.y[1]))),w=ZZ(e[t].curve),C=b?.map(((e,t)=>({x:e,y:c[t]})))??[],S=p?C.filter(((e,t)=>null!=d[t])):C,k=x.curve(w)(S)||"";return fe({},e[t],{gradientUsed:y,d:k,seriesId:t})}))}))}),[t,n]);return r};function QZ(e){const{slots:t,slotProps:n,onItemClick:r,skipAnimation:o}=e,a=Ai(e,qZ),i=YB(o),l=RG(),s=XZ();return(0,Tr.jsx)("g",fe({},a,{children:s.map((e=>{let{d:o,seriesId:a,color:s,area:u,gradientUsed:c}=e;return!!u&&(0,Tr.jsx)(IZ,{id:a,d:o,color:s,gradientId:c&&l(...c),slots:t,slotProps:n,onClick:r&&(e=>r(e,{type:"line",seriesId:a})),skipAnimation:i},a)}))}))}const JZ=["d","skipAnimation","ownerState"],eq=Ir(Cz.path,{name:"MuiLineElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{strokeWidth:2,strokeLinejoin:"round",fill:"none",stroke:t.gradientId&&`url(#${t.gradientId})`||t.isHighlighted&&Vz(t.color).brighter(.5).formatHex()||t.color,transition:"opacity 0.2s ease-in, stroke 0.2s ease-in",opacity:t.isFaded?.3:1}}));function tq(e){const{d:t,skipAnimation:n,ownerState:r}=e,o=Ai(e,JZ),a=nz([xZ(t)],{from:{value:0},to:{value:1},enter:{value:1},reset:!1,immediate:n});return(0,Tr.jsx)(CZ,{skipAnimation:n,id:`${r.id}-line-clip`,children:a(((e,t)=>(0,Tr.jsx)(eq,fe({},o,{ownerState:r,d:e.value.to(t)}))))})}const nq=["id","classes","color","gradientId","slots","slotProps","onClick"];function rq(e){return ec("MuiLineElement",e)}tc("MuiLineElement",["root","highlighted","faded"]);function oq(e){const{id:t,classes:n,color:r,gradientId:o,slots:a,slotProps:i,onClick:l}=e,s=Ai(e,nq),u=cB(),{isFaded:c,isHighlighted:d}=dB({seriesId:t}),p={id:t,classes:n,color:r,gradientId:o,isFaded:c,isHighlighted:d},f=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},rq,t)})(p),h=a?.line??tq,m=Us({elementType:h,externalSlotProps:i?.line,additionalProps:fe({},u({type:"line",seriesId:t}),{onClick:l,cursor:l?"pointer":"unset"}),className:f.root,ownerState:p});return(0,Tr.jsx)(h,fe({},s,m))}const aq=["slots","slotProps","skipAnimation","onItemClick"];function iq(t){const{slots:n,slotProps:r,skipAnimation:o,onItemClick:a}=t,i=Ai(t,aq),l=YB(o),s=RG(),u=(()=>{const t=GB(),n=kz();return e.useMemo((()=>{if(void 0===t)return[];const{series:e,stackingGroups:r}=t,{xAxis:o,yAxis:a,xAxisIds:i,yAxisIds:l}=n,s=i[0],u=l[0];return r.flatMap((t=>{let{ids:n}=t;return n.flatMap((t=>{const{xAxisId:n,yAxisId:r,xAxisKey:i=s,yAxisKey:l=u,stackedData:c,data:d,connectNulls:p}=e[t],f=n??i,h=r??l,m=jY(o[f].scale),g=a[h].scale,v=o[f].data,b=a[h].colorScale&&[h,"y"]||o[f].colorScale&&[f,"x"]||void 0,y=yZ().x((e=>m(e.x))).defined(((e,t)=>p||null!=d[t])).y((e=>g(e.y[1]))),x=v?.map(((e,t)=>({x:e,y:c[t]})))??[],w=p?x.filter(((e,t)=>null!=d[t])):x,C=y.curve(ZZ(e[t].curve))(w)||"";return fe({},e[t],{gradientUsed:b,d:C,seriesId:t})}))}))}),[t,n])})();return(0,Tr.jsx)("g",fe({},i,{children:u.map((e=>{let{d:t,seriesId:o,color:i,gradientUsed:u}=e;return(0,Tr.jsx)(oq,{id:o,d:t,color:i,gradientId:u&&s(...u),skipAnimation:l,slots:n,slotProps:r,onClick:a&&(e=>a(e,{type:"line",seriesId:o}))},o)}))}))}function lq(e){return ec("MuiMarkElement",e)}tc("MuiMarkElement",["root","highlighted","faded"]);const sq=e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},lq,t)},uq=["x","y","id","classes","color","dataIndex","onClick","skipAnimation","shape"];function cq(t){const{x:n,y:r,id:o,classes:a,color:i,dataIndex:l,onClick:s,skipAnimation:u,shape:c}=t,d=Ai(t,uq);"circle"!==c&&[`MUI X: The mark element of your line chart have shape "${c}" which is not supported when using \`experimentalRendering=true\`.`,'Only "circle" are supported with `experimentalRendering`.'].join("\n");const p=Lr(),f=cB(),{isFaded:h,isHighlighted:m}=dB({seriesId:o}),{axis:g}=e.useContext(aB),v=tz({to:{x:n,y:r},immediate:u}),b={id:o,classes:a,isHighlighted:g.x?.index===l||m,isFaded:h,color:i},y=sq(b);return(0,Tr.jsx)(Cz.circle,fe({},d,{cx:v.x,cy:v.y,r:5,fill:(p.vars||p).palette.background.paper,stroke:i,strokeWidth:2,className:y.root,onClick:s,cursor:s?"pointer":"unset"},f({type:"line",seriesId:o,dataIndex:l})))}hK(3);const dq={draw(e,t){const n=hK(t/gK);e.moveTo(n,0),e.arc(0,0,n,0,bK)}},pq={draw(e,t){const n=hK(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},fq=hK(1/3),hq=2*fq,mq={draw(e,t){const n=hK(t/hq),r=n*fq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},gq={draw(e,t){const n=hK(t),r=-n/2;e.rect(r,r,n,n)}},vq=fK(gK/10)/fK(7*gK/10),bq=fK(bK/10)*vq,yq=-cK(bK/10)*vq,xq={draw(e,t){const n=hK(.8908130915292852*t),r=bq*n,o=yq*n;e.moveTo(0,-n),e.lineTo(r,o);for(let a=1;a<5;++a){const t=bK*a/5,i=cK(t),l=fK(t);e.lineTo(l*n,-i*n),e.lineTo(i*r-l*o,l*r+i*o)}e.closePath()}},wq=hK(3),Cq={draw(e,t){const n=-hK(t/(3*wq));e.moveTo(0,2*n),e.lineTo(-wq*n,-n),e.lineTo(wq*n,-n),e.closePath()}},Sq=(hK(3),-.5),kq=hK(3)/2,Mq=1/hK(12),Rq=3*(Mq/2+1),Pq={draw(e,t){const n=hK(t/Rq),r=n/2,o=n*Mq,a=r,i=n*Mq+n,l=-a,s=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(l,s),e.lineTo(Sq*r-kq*o,kq*r+Sq*o),e.lineTo(Sq*a-kq*i,kq*a+Sq*i),e.lineTo(Sq*l-kq*s,kq*l+Sq*s),e.lineTo(Sq*r+kq*o,Sq*o-kq*r),e.lineTo(Sq*a+kq*i,Sq*i-kq*a),e.lineTo(Sq*l+kq*s,Sq*s-kq*l),e.closePath()}},Iq=[dq,pq,mq,gq,xq,Cq,Pq];function Aq(e,t){let n=null,r=gZ(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"===typeof e?e:jG(e||dq),t="function"===typeof t?t:jG(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"===typeof t?t:jG(t),o):e},o.size=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}function Tq(e){return"circle cross diamond square star triangle wye".split(/ /).indexOf(e)||0}const $q=["x","y","id","classes","color","shape","dataIndex","onClick","skipAnimation"],Eq=Ir(Cz.path,{name:"MuiMarkElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t,theme:n}=e;return{fill:(n.vars||n).palette.background.paper,stroke:t.color,strokeWidth:2}}));function Dq(t){const{x:n,y:r,id:o,classes:a,color:i,shape:l,dataIndex:s,onClick:u,skipAnimation:c}=t,d=Ai(t,$q),p=cB(),{isFaded:f,isHighlighted:h}=dB({seriesId:o}),{axis:m}=e.useContext(aB),g=tz({to:{x:n,y:r},immediate:c}),v={id:o,classes:a,isHighlighted:m.x?.index===s||h,isFaded:f,color:i},b=sq(v);return(0,Tr.jsx)(Eq,fe({},d,{style:{transform:sz([g.x,g.y],((e,t)=>`translate(${e}px, ${t}px)`)),transformOrigin:sz([g.x,g.y],((e,t)=>`${e}px ${t}px`))},ownerState:v,className:b.root,d:Aq(Iq[Tq(l)])(),onClick:u,cursor:u?"pointer":"unset"},p({type:"line",seriesId:o,dataIndex:s})))}const Oq=["slots","slotProps","skipAnimation","onItemClick","experimentalRendering"];function _q(e){const{slots:t,slotProps:n,skipAnimation:r,onItemClick:o,experimentalRendering:a}=e,i=Ai(e,Oq),l=YB(r),s=GB(),u=kz(),c=kB(),d=uH(),p=t?.mark??(a?cq:Dq);if(void 0===s)return null;const{series:f,stackingGroups:h}=s,{xAxis:m,yAxis:g,xAxisIds:v,yAxisIds:b}=u,y=v[0],x=b[0];return(0,Tr.jsx)("g",fe({},i,{children:h.flatMap((e=>{let{ids:t}=e;return t.map((e=>{const{xAxisId:t,yAxisId:r,xAxisKey:a=y,yAxisKey:i=x,stackedData:s,data:u,showMark:h=!0}=f[e];if(!1===h)return null;const v=t??a,b=r??i,w=jY(m[v].scale),C=g[b].scale,S=m[v].data;if(void 0===S)throw new Error(`MUI X: ${v===vB?"The first `xAxis`":`The x-axis with id "${v}"`} should have data property to be able to display a line plot.`);const k=wZ(`${c}-${e}-line-clip`),M=oK(f[e],m[v],g[b]);return(0,Tr.jsx)("g",{clipPath:`url(#${k})`,children:S?.map(((e,t)=>{const n=null==u[t]?null:s[t][1];return{x:w(e),y:null===n?null:C(n),position:e,value:n,index:t}})).filter((e=>{let{x:t,y:n,index:r,position:o,value:a}=e;return null!==a&&null!==n&&(!!d.isPointInside({x:t,y:n})&&(!0===h||h({x:t,y:n,index:r,position:o,value:a})))})).map((t=>{let{x:r,y:a,index:i}=t;return(0,Tr.jsx)(p,fe({id:e,dataIndex:i,shape:"circle",color:M(i),x:r,y:a,skipAnimation:l,onClick:o&&(t=>o(t,{type:"line",seriesId:e,dataIndex:i}))},n?.mark),`${e}-${i}`)}))},e)}))}))}))}const Fq=["x","y","id","classes","color"];function Lq(e){return ec("MuiHighlightElement",e)}tc("MuiHighlightElement",["root"]);const jq=Ir("circle",{name:"MuiHighlightElement",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{ownerState:t}=e;return{transform:`translate(${t.x}px, ${t.y}px)`,transformOrigin:`${t.x}px ${t.y}px`,fill:t.color}}));function Nq(e){const{x:t,y:n,id:r,classes:o,color:a}=e,i=Ai(e,Fq),l={id:r,classes:o,color:a,x:t,y:n},s=(e=>{const{classes:t,id:n}=e;return qu({root:["root",`series-${n}`]},Lq,t)})(l);return(0,Tr.jsx)(jq,fe({pointerEvents:"none",ownerState:l,className:s.root,cx:0,cy:0,r:void 0===i.r?5:i.r},i))}const zq=["slots","slotProps"];function Bq(t){const{slots:n,slotProps:r}=t,o=Ai(t,zq),a=GB(),i=kz(),l=uH(),{axis:s}=e.useContext(aB),u=s.x?.index;if(void 0===u)return null;if(void 0===a)return null;const{series:c,stackingGroups:d}=a,{xAxis:p,yAxis:f,xAxisIds:h,yAxisIds:m}=i,g=h[0],v=m[0],b=n?.lineHighlight??Nq;return(0,Tr.jsx)("g",fe({},o,{children:d.flatMap((e=>{let{ids:t}=e;return t.flatMap((e=>{const{xAxisId:t,yAxisId:n,xAxisKey:o=g,yAxisKey:a=v,stackedData:i,data:s,disableHighlight:d}=c[e],h=t??o,m=n??a;if(d||null==s[u])return null;const y=jY(p[h].scale),x=f[m].scale,w=p[h].data;if(void 0===w)throw new Error(`MUI X: ${h===vB?"The first `xAxis`":`The x-axis with id "${h}"`} should have data property to be able to display a line plot.`);const C=y(w[u]),S=x(i[u][1]);if(!l.isPointInside({x:C,y:S}))return null;const k=oK(c[e],p[h],f[m]);return(0,Tr.jsx)(b,fe({id:e,color:k(u),x:C,y:S},r?.lineHighlight),`${e}`)}))}))}))}const Hq=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","tooltip","onAxisClick","onAreaClick","onLineClick","onMarkClick","axisHighlight","disableLineItemHighlight","legend","grid","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","skipAnimation","loading","highlightedItem","onHighlightChange","className","experimentalMarkRendering"],Vq=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiLineChart"}),{chartContainerProps:r,axisClickHandlerProps:o,gridProps:a,clipPathProps:i,clipPathGroupProps:l,areaPlotProps:s,linePlotProps:u,markPlotProps:c,overlayProps:d,chartsAxisProps:p,axisHighlightProps:f,lineHighlightPlotProps:h,legendProps:m,tooltipProps:g,children:v}=(e=>{const{xAxis:t,yAxis:n,series:r,width:o,height:a,margin:i,colors:l,dataset:s,sx:u,tooltip:c,onAxisClick:d,onAreaClick:p,onLineClick:f,onMarkClick:h,axisHighlight:m,disableLineItemHighlight:g,legend:v,grid:b,topAxis:y,leftAxis:x,rightAxis:w,bottomAxis:C,children:S,slots:k,slotProps:M,skipAnimation:R,loading:P,highlightedItem:I,onHighlightChange:A,className:T,experimentalMarkRendering:$}=e,E=Ai(e,Hq),D=`${Ys()}-clip-path`,O=fe({},E,{series:r.map((e=>fe({disableHighlight:!!g,type:"line"},e))),width:o,height:a,margin:i,colors:l,dataset:s,xAxis:t??[{id:vB,scaleType:"point",data:Array.from({length:Math.max(...r.map((e=>(e.data??s??[]).length)))},((e,t)=>t))}],yAxis:n,sx:u,highlightedItem:I,onHighlightChange:A,disableAxisListener:"axis"!==c?.trigger&&"none"===m?.x&&"none"===m?.y&&!d,className:T,skipAnimation:R});return{chartContainerProps:O,axisClickHandlerProps:{onAxisClick:d},gridProps:{vertical:b?.vertical,horizontal:b?.horizontal},clipPathProps:{id:D},clipPathGroupProps:{clipPath:`url(#${D})`},areaPlotProps:{slots:k,slotProps:M,onItemClick:p},linePlotProps:{slots:k,slotProps:M,onItemClick:f},markPlotProps:{slots:k,slotProps:M,onItemClick:h,skipAnimation:R,experimentalRendering:$},overlayProps:{slots:k,slotProps:M,loading:P},chartsAxisProps:{topAxis:y,leftAxis:x,rightAxis:w,bottomAxis:C,slots:k,slotProps:M},axisHighlightProps:fe({x:"line"},m),lineHighlightPlotProps:{slots:k,slotProps:M},legendProps:fe({},v,{slots:k,slotProps:M}),tooltipProps:fe({},c,{slots:k,slotProps:M}),children:S}})(n);return(0,Tr.jsxs)(DK,fe({ref:t},r,{children:[n.onAxisClick&&(0,Tr.jsx)(XY,fe({},o)),(0,Tr.jsx)(qY,fe({},a)),(0,Tr.jsxs)("g",fe({},l,{children:[(0,Tr.jsx)(QZ,fe({},s)),(0,Tr.jsx)(iq,fe({},u)),(0,Tr.jsx)(oZ,fe({},d)),(0,Tr.jsx)(BY,fe({},f))]})),(0,Tr.jsx)(iY,fe({},p)),(0,Tr.jsx)("g",{"data-drawing-container":!0,children:(0,Tr.jsx)(_q,fe({},c))}),(0,Tr.jsx)(Bq,fe({},h)),(0,Tr.jsx)(LY,fe({},m)),!n.loading&&(0,Tr.jsx)(RY,fe({},g)),(0,Tr.jsx)(HY,fe({},i)),v]}))}));function Wq(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(Vq,{...n},r)}function Uq(e){return e.innerRadius}function Gq(e){return e.outerRadius}function Kq(e){return e.startAngle}function Yq(e){return e.endAngle}function Zq(e){return e&&e.padAngle}function qq(e,t,n,r,o,a,i){var l=e-n,s=t-r,u=(i?a:-a)/hK(l*l+s*s),c=u*s,d=-u*l,p=e+c,f=t+d,h=n+c,m=r+d,g=(p+h)/2,v=(f+m)/2,b=h-p,y=m-f,x=b*b+y*y,w=o-a,C=p*m-h*f,S=(y<0?-1:1)*hK(dK(0,w*w*x-C*C)),k=(C*y-b*S)/x,M=(-C*b-y*S)/x,R=(C*y+b*S)/x,P=(-C*b+y*S)/x,I=k-g,A=M-v,T=R-g,$=P-v;return I*I+A*A>T*T+$*$&&(k=R,M=P),{cx:k,cy:M,x01:-c,y01:-d,x11:k*(o/w-1),y11:M*(o/w-1)}}function Xq(){var e=Uq,t=Gq,n=jG(0),r=null,o=Kq,a=Yq,i=Zq,l=null,s=gZ(u);function u(){var u,c,d,p=+e.apply(this,arguments),f=+t.apply(this,arguments),h=o.apply(this,arguments)-vK,m=a.apply(this,arguments)-vK,g=sK(m-h),v=m>h;if(l||(l=u=s()),f<p&&(c=f,f=p,p=c),f>mK)if(g>bK-mK)l.moveTo(f*cK(h),f*fK(h)),l.arc(0,0,f,h,m,!v),p>mK&&(l.moveTo(p*cK(m),p*fK(m)),l.arc(0,0,p,m,h,v));else{var b,y,x=h,w=m,C=h,S=m,k=g,M=g,R=i.apply(this,arguments)/2,P=R>mK&&(r?+r.apply(this,arguments):hK(p*p+f*f)),I=pK(sK(f-p)/2,+n.apply(this,arguments)),A=I,T=I;if(P>mK){var $=yK(P/p*fK(R)),E=yK(P/f*fK(R));(k-=2*$)>mK?(C+=$*=v?1:-1,S-=$):(k=0,C=S=(h+m)/2),(M-=2*E)>mK?(x+=E*=v?1:-1,w-=E):(M=0,x=w=(h+m)/2)}var D=f*cK(x),O=f*fK(x),_=p*cK(S),F=p*fK(S);if(I>mK){var L,j=f*cK(w),N=f*fK(w),z=p*cK(C),B=p*fK(C);if(g<gK)if(L=function(e,t,n,r,o,a,i,l){var s=n-e,u=r-t,c=i-o,d=l-a,p=d*s-c*u;if(!(p*p<mK))return[e+(p=(c*(t-a)-d*(e-o))/p)*s,t+p*u]}(D,O,z,B,j,N,_,F)){var H=D-L[0],V=O-L[1],W=j-L[0],U=N-L[1],G=1/fK(((d=(H*W+V*U)/(hK(H*H+V*V)*hK(W*W+U*U)))>1?0:d<-1?gK:Math.acos(d))/2),K=hK(L[0]*L[0]+L[1]*L[1]);A=pK(I,(p-K)/(G-1)),T=pK(I,(f-K)/(G+1))}else A=T=0}M>mK?T>mK?(b=qq(z,B,D,O,f,T,v),y=qq(j,N,_,F,f,T,v),l.moveTo(b.cx+b.x01,b.cy+b.y01),T<I?l.arc(b.cx,b.cy,T,uK(b.y01,b.x01),uK(y.y01,y.x01),!v):(l.arc(b.cx,b.cy,T,uK(b.y01,b.x01),uK(b.y11,b.x11),!v),l.arc(0,0,f,uK(b.cy+b.y11,b.cx+b.x11),uK(y.cy+y.y11,y.cx+y.x11),!v),l.arc(y.cx,y.cy,T,uK(y.y11,y.x11),uK(y.y01,y.x01),!v))):(l.moveTo(D,O),l.arc(0,0,f,x,w,!v)):l.moveTo(D,O),p>mK&&k>mK?A>mK?(b=qq(_,F,j,N,p,-A,v),y=qq(D,O,z,B,p,-A,v),l.lineTo(b.cx+b.x01,b.cy+b.y01),A<I?l.arc(b.cx,b.cy,A,uK(b.y01,b.x01),uK(y.y01,y.x01),!v):(l.arc(b.cx,b.cy,A,uK(b.y01,b.x01),uK(b.y11,b.x11),!v),l.arc(0,0,p,uK(b.cy+b.y11,b.cx+b.x11),uK(y.cy+y.y11,y.cx+y.x11),v),l.arc(y.cx,y.cy,A,uK(y.y11,y.x11),uK(y.y01,y.x01),!v))):l.arc(0,0,p,S,C,v):l.lineTo(_,F)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-gK/2;return[cK(r)*n,fK(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:jG(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:jG(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:jG(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:jG(+e),u):r},u.startAngle=function(e){return arguments.length?(o="function"===typeof e?e:jG(+e),u):o},u.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:jG(+e),u):a},u.padAngle=function(e){return arguments.length?(i="function"===typeof e?e:jG(+e),u):i},u.context=function(e){return arguments.length?(l=null==e?null:e,u):l},u}Wq.defaultProps={attributes:{}};const Qq=["classes","color","cornerRadius","dataIndex","endAngle","id","innerRadius","isFaded","isHighlighted","onClick","outerRadius","paddingAngle","startAngle","highlightScope"];function Jq(e){return ec("MuiPieArc",e)}tc("MuiPieArc",["root","highlighted","faded"]);const eX=Ir(Cz.path,{name:"MuiPieArc",slot:"Root",overridesResolver:(e,t)=>t.arc})((e=>{let{theme:t}=e;return{stroke:(t.vars||t).palette.background.paper,strokeWidth:1,strokeLinejoin:"round"}}));function tX(e){const{classes:t,color:n,cornerRadius:r,dataIndex:o,endAngle:a,id:i,innerRadius:l,isFaded:s,isHighlighted:u,onClick:c,outerRadius:d,paddingAngle:p,startAngle:f}=e,h=Ai(e,Qq),m={id:i,dataIndex:o,classes:t,color:n,isFaded:s,isHighlighted:u},g=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},Jq,t)})(m),v=cB();return(0,Tr.jsx)(eX,fe({d:sz([f,a,p,l,d,r],((e,t,n,r,o,a)=>Xq().cornerRadius(a)({padAngle:n,startAngle:e,endAngle:t,innerRadius:r,outerRadius:o}))),visibility:sz([f,a],((e,t)=>e===t?"hidden":"visible")),onClick:c,cursor:c?"pointer":"unset",ownerState:m,className:g.root},h,v({type:"pie",seriesId:i,dataIndex:o})))}const nX={keys:e=>e.id,from:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,color:l,isFaded:s}=e;return{innerRadius:t,outerRadius:(t+n)/2,cornerRadius:r,startAngle:(o+a)/2,endAngle:(o+a)/2,paddingAngle:i,fill:l,opacity:s?.3:1}},leave:e=>{let{innerRadius:t,startAngle:n,endAngle:r}=e;return{innerRadius:t,outerRadius:t,startAngle:(n+r)/2,endAngle:(n+r)/2}},enter:e=>{let{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o}=e;return{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o}},update:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,color:l,isFaded:s}=e;return{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,fill:l,opacity:s?.3:1}},config:{tension:120,friction:14,clamp:!0}},rX={keys:e=>e.id,from:e=>{let{innerRadius:t,outerRadius:n,arcLabelRadius:r,cornerRadius:o,startAngle:a,endAngle:i,paddingAngle:l}=e;return{innerRadius:t,outerRadius:(t+n)/2,cornerRadius:o,arcLabelRadius:r,startAngle:(a+i)/2,endAngle:(a+i)/2,paddingAngle:l,opacity:0}},leave:e=>{let{innerRadius:t,startAngle:n,endAngle:r}=e;return{innerRadius:t,outerRadius:t,arcLabelRadius:t,startAngle:(n+r)/2,endAngle:(n+r)/2,opacity:0}},enter:e=>{let{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o,arcLabelRadius:a}=e;return{innerRadius:t,outerRadius:n,startAngle:r,endAngle:o,arcLabelRadius:a,opacity:1}},update:e=>{let{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l}=e;return{innerRadius:t,outerRadius:n,cornerRadius:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l,opacity:1}},config:{tension:120,friction:14,clamp:!0}};function oX(t){const{id:n,data:r,faded:o,highlighted:a,paddingAngle:i=0,innerRadius:l=0,arcLabelRadius:s,outerRadius:u,cornerRadius:c=0}=t,{isFaded:d,isHighlighted:p}=uB();return e.useMemo((()=>r.map(((e,t)=>{const r={seriesId:n,dataIndex:t},f=p(r),h=!f&&d(r),m=fe({additionalRadius:0},h&&o||f&&a||{}),g=Math.max(0,Math.PI*(m.paddingAngle??i)/180),v=Math.max(0,m.innerRadius??l),b=Math.max(0,m.outerRadius??u+m.additionalRadius);return fe({},e,m,{isFaded:h,isHighlighted:f,paddingAngle:g,innerRadius:v,outerRadius:b,cornerRadius:m.cornerRadius??c,arcLabelRadius:m.arcLabelRadius??s??(v+b)/2})}))),[c,l,u,i,s,r,o,a,d,p,n])}const aX=["slots","slotProps","innerRadius","outerRadius","cornerRadius","paddingAngle","id","highlighted","faded","data","onItemClick","skipAnimation"],iX=["startAngle","endAngle","paddingAngle","innerRadius","arcLabelRadius","outerRadius","cornerRadius"];function lX(e){const{slots:t,slotProps:n,innerRadius:r=0,outerRadius:o,cornerRadius:a=0,paddingAngle:i=0,id:l,highlighted:s,faded:u={additionalRadius:-5},data:c,onItemClick:d,skipAnimation:p}=e,f=Ai(e,aX),h=nz(oX({innerRadius:r,outerRadius:o,cornerRadius:a,paddingAngle:i,id:l,highlighted:s,faded:u,data:c}),fe({},nX,{immediate:p})),{highlightScope:m}=uB();if(0===c.length)return null;const g=t?.pieArc??tX;return(0,Tr.jsx)("g",fe({},f,{children:h(((e,t,r,o)=>{let{startAngle:a,endAngle:i,paddingAngle:s,innerRadius:u,outerRadius:c,cornerRadius:p}=e,f=Ai(e,iX);return(0,Tr.jsx)(g,fe({startAngle:a,endAngle:i,paddingAngle:s,innerRadius:u,outerRadius:c,cornerRadius:p,style:f,id:l,color:t.color,dataIndex:o,highlightScope:m,isFaded:t.isFaded,isHighlighted:t.isHighlighted,onClick:d&&(e=>{d(e,{type:"pie",seriesId:l,dataIndex:o},t)})},n?.pieArc))}))}))}const sX=["id","classes","color","startAngle","endAngle","paddingAngle","arcLabelRadius","innerRadius","outerRadius","cornerRadius","formattedArcLabel","isHighlighted","isFaded","style"];function uX(e){return ec("MuiPieArcLabel",e)}tc("MuiPieArcLabel",["root","highlighted","faded"]);const cX=Ir(Cz.text,{name:"MuiPieArcLabel",slot:"Root",overridesResolver:(e,t)=>t.root})((e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.text.primary,textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none"}})),dX=(e,t)=>(n,r,o,a,i)=>{if(!e)return 0;const[l,s]=Xq().cornerRadius(i).centroid({padAngle:o,startAngle:n,endAngle:r,innerRadius:a,outerRadius:a});return"x"===t?l:s};function pX(e){const{id:t,classes:n,color:r,startAngle:o,endAngle:a,paddingAngle:i,arcLabelRadius:l,cornerRadius:s,formattedArcLabel:u,isHighlighted:c,isFaded:d,style:p}=e,f=Ai(e,sX),h=(e=>{const{classes:t,id:n,isFaded:r,isHighlighted:o}=e;return qu({root:["root",`series-${n}`,o&&"highlighted",r&&"faded"]},uX,t)})({id:t,classes:n,color:r,isFaded:d,isHighlighted:c});return(0,Tr.jsx)(cX,fe({className:h.root},f,{style:fe({x:sz([o,a,i,l,s],dX(u,"x")),y:sz([o,a,i,l,s],dX(u,"y"))},p),children:u}))}const fX=["arcLabel","arcLabelMinAngle","arcLabelRadius","cornerRadius","data","faded","highlighted","id","innerRadius","outerRadius","paddingAngle","skipAnimation","slotProps","slots"],hX=["startAngle","endAngle","paddingAngle","innerRadius","outerRadius","arcLabelRadius","cornerRadius"],mX=180/Math.PI;function gX(e,t,n){if(!e)return null;if((n.endAngle-n.startAngle)*mX<t)return null;switch(e){case"label":return xK(n.label,"arc");case"value":return n.value?.toString();case"formattedValue":return n.formattedValue;default:return e(fe({},n,{label:xK(n.label,"arc")}))}}function vX(e){const{arcLabel:t,arcLabelMinAngle:n=0,arcLabelRadius:r,cornerRadius:o=0,data:a,faded:i={additionalRadius:-5},highlighted:l,id:s,innerRadius:u,outerRadius:c,paddingAngle:d=0,skipAnimation:p,slotProps:f,slots:h}=e,m=Ai(e,fX),g=nz(oX({innerRadius:u,outerRadius:c,arcLabelRadius:r,cornerRadius:o,paddingAngle:d,id:s,highlighted:l,faded:i,data:a}),fe({},rX,{immediate:p}));if(0===a.length)return null;const v=h?.pieArcLabel??pX;return(0,Tr.jsx)("g",fe({},m,{children:g(((e,r)=>{let{startAngle:o,endAngle:a,paddingAngle:i,innerRadius:l,outerRadius:u,arcLabelRadius:c,cornerRadius:d}=e,p=Ai(e,hX);return(0,Tr.jsx)(v,fe({startAngle:o,endAngle:a,paddingAngle:i,innerRadius:l,outerRadius:u,arcLabelRadius:c,cornerRadius:d,style:p,id:s,color:r.color,isFaded:r.isFaded,isHighlighted:r.isHighlighted,formattedArcLabel:gX(t,n,r)},f?.pieArcLabel))}))}))}function bX(e,t){if("number"===typeof e)return e;if("100%"===e)return t;if(e.endsWith("%")){const n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith("px")){const t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw new Error(`MUI X: Received an unknown value "${e}". It should be a number, or a string with a percentage value.`)}function yX(e,t){const{height:n,width:r}=t,{cx:o,cy:a}=e,i=Math.min(r,n)/2;return{cx:bX(o??"50%",r),cy:bX(a??"50%",n),availableRadius:i}}function xX(t){const{skipAnimation:n,slots:r,slotProps:o,onItemClick:a}=t,i=function(){const t=UB();return e.useMemo((()=>t.pie),[t.pie])}(),{left:l,top:s,width:u,height:c}=e.useContext(wB),d=YB(n);if(void 0===i)return null;const{series:p,seriesOrder:f}=i;return(0,Tr.jsxs)("g",{children:[f.map((e=>{const{innerRadius:t,outerRadius:n,cornerRadius:i,paddingAngle:f,data:h,cx:m,cy:g,highlighted:v,faded:b}=p[e],{cx:y,cy:x,availableRadius:w}=yX({cx:m,cy:g},{width:u,height:c}),C=bX(n??w,w),S=bX(t??0,w);return(0,Tr.jsx)("g",{transform:`translate(${l+y}, ${s+x})`,children:(0,Tr.jsx)(lX,{innerRadius:S,outerRadius:C,cornerRadius:i,paddingAngle:f,id:e,data:h,skipAnimation:d,highlighted:v,faded:b,onItemClick:a,slots:r,slotProps:o})},e)})),f.map((e=>{const{innerRadius:t,outerRadius:n,arcLabelRadius:a,cornerRadius:i,paddingAngle:f,arcLabel:h,arcLabelMinAngle:m,data:g,cx:v,cy:b}=p[e],{cx:y,cy:x,availableRadius:w}=yX({cx:v,cy:b},{width:u,height:c}),C=bX(n??w,w),S=bX(t??0,w),k=void 0===a?(C+S)/2:bX(a,w);return(0,Tr.jsx)("g",{transform:`translate(${l+y}, ${s+x})`,children:(0,Tr.jsx)(vX,{innerRadius:S,outerRadius:C??w,arcLabelRadius:k,cornerRadius:i,paddingAngle:f,id:e,data:g,skipAnimation:d,arcLabel:h,arcLabelMinAngle:m,slots:r,slotProps:o})},e)}))]})}const wX=["xAxis","yAxis","series","width","height","margin","colors","sx","tooltip","axisHighlight","skipAnimation","legend","topAxis","leftAxis","rightAxis","bottomAxis","children","slots","slotProps","onItemClick","loading","highlightedItem","onHighlightChange","className"],CX={top:5,bottom:5,left:5,right:100},SX={top:5,bottom:5,left:100,right:5},kX=e.forwardRef((function(e,t){const n=gu({props:e,name:"MuiPieChart"}),{xAxis:r,yAxis:o,series:a,width:i,height:l,margin:s,colors:u,sx:c,tooltip:d={trigger:"item"},axisHighlight:p={x:"none",y:"none"},skipAnimation:f,legend:h,topAxis:m=null,leftAxis:g=null,rightAxis:v=null,bottomAxis:b=null,children:y,slots:x,slotProps:w,onItemClick:C,loading:S,highlightedItem:k,onHighlightChange:M,className:R}=n,P=Ai(n,wX),I=ni(),A=fe({},I?SX:CX,s),T=fe({direction:"column",position:{vertical:"middle",horizontal:I?"left":"right"}},h);return(0,Tr.jsxs)(DK,fe({},P,{ref:t,series:a.map((e=>fe({type:"pie"},e))),width:i,height:l,margin:A,xAxis:r??[{id:vB,scaleType:"point",data:[...new Array(Math.max(...a.map((e=>e.data.length))))].map(((e,t)=>t))}],yAxis:o,colors:u,sx:c,disableAxisListener:"axis"!==d?.trigger&&"none"===p?.x&&"none"===p?.y,highlightedItem:k,onHighlightChange:M,className:R,skipAnimation:f,children:[(0,Tr.jsx)(iY,{topAxis:m,leftAxis:g,rightAxis:v,bottomAxis:b,slots:x,slotProps:w}),(0,Tr.jsx)(xX,{slots:x,slotProps:w,onItemClick:C}),(0,Tr.jsx)(oZ,{loading:S,slots:x,slotProps:w}),(0,Tr.jsx)(LY,fe({},T,{slots:x,slotProps:w})),(0,Tr.jsx)(BY,fe({},p)),!S&&(0,Tr.jsx)(RY,fe({},d,{slots:x,slotProps:w})),y]}))}));function MX(e){let{attributes:t}=e;const{MuiChartAttributes:n={},id:r=""}=t;return(0,Tr.jsx)(kX,{...n},r)}function RX(e){let{attributes:t}=e;const{id:n,MuiBoxAttributes:r={},MuiChartContainerAttributes:o={},MuiChartXAxisAttributes:a={},MuiChartYAxisAttributes:i={},MuiChartSX:l={}}=t;return(0,Tr.jsx)(Mo,{sx:{width:"100%",maxWidth:600},...r,children:(0,Tr.jsxs)(DK,{sx:{[`.${_K.left} .${_K.label}`]:{transform:"translate(-25px, 0)"},[`.${_K.right} .${_K.label}`]:{transform:"translate(30px, 0)"},...l},...o,children:[(0,Tr.jsx)(JB,{}),(0,Tr.jsx)(iq,{}),(0,Tr.jsx)(JK,{...a}),(0,Tr.jsx)(rY,{...i})]})},n)}MX.defaultProps={attributes:{}},RX.defaultProps={attributes:{}};const PX={Typography:To,TextField:Ex,Table:OO,DateTime:JO,DateTimePicker:e_,TimePicker:t_,Select:i_,CheckBox:l_,Switch:v_,Radio:z_,Stepper:LF,Bar:lZ,Line:Wq,Pie:MX,MixChart:RX};function IX(e){const{map:t}=e;if(!t)return(0,Tr.jsx)("div",{});const n=PX[t];return(0,Tr.jsx)(n,{...e})}const AX={MUI:{map:to}},TX={};function $X(t){let{data:n=[],patch:r={},guid:o,formRef:a,onSubmit:i,onChange:l,onStepChange:s,MuiGridAttributes:u={spacing:2},activeStep:c=0}=t;const[d,p]=(0,e.useState)(r),f=AX.MUI,h=(0,e.useMemo)((()=>Cx(Mx(n,d,o,TX))),[d,n,o]);(0,e.useEffect)((()=>{eo()(TX[o])&&(TX[o]=r)}),[]),QO((()=>{p({...r})}),[r]);const m=(0,e.useCallback)((e=>{let{id:t,value:n,option:r}=e;TX[o][t]=n,"function"===typeof l&&l({id:t,value:n,option:r})}),[]),g=(0,e.useCallback)(((e,t,n)=>{if("function"===typeof e){const r=((e,t)=>{const n=(e=>null===e||void 0===e?void 0:e.filter((e=>{var t,n;return null===e||void 0===e||null===(t=e.rules)||void 0===t||null===(n=t.validation)||void 0===n?void 0:n.some((e=>"mandatory"===e.rule))})))(e);return null===n||void 0===n?void 0:n.reduce(((e,n)=>{var r,o;return null===n||void 0===n||null===(r=n.rules)||void 0===r||null===(o=r.validation)||void 0===o||o.forEach((r=>{var o,a;const i=null===(o=TX[t][(null===n||void 0===n?void 0:n.id)||(null===n||void 0===n||null===(a=n.props)||void 0===a?void 0:a.id)])||void 0===o?void 0:o.toString();i&&$x[r.rule](i,r.value)||e.push({...r,id:n.id})})),e}),[])})(t,n);e(TX,r,t,n)}}),[]),v=(e,t,n)=>{"function"===typeof s&&s(e,t,n)},b=(e,t)=>{const{type:n="",style:o={},className:a="",visible:i=!1,rules:l={}}=e,s=e.props||{},u=e.layout||{},d=f.map[n]||{},{options:p={}}=d;return(0,Tr.jsx)(Qr,{item:!0,style:o,...u,className:`${a} ${i?"show":"hidden"}`,children:(0,Tr.jsx)(IX,{map:d.map,option:p.type||"",control:e,attributes:s,rules:l,onChange:m,onStepUpdate:v,currentStep:c,patch:r},kx("dynamic-comp",t))},kx("layout-comp",t))};return(0,Tr.jsxs)(Tr.Fragment,{children:[(0,Tr.jsx)(Qr,{container:!0,...u,children:h.wrows.map(((t,n)=>(0,Tr.jsx)(e.Fragment,{children:t.map(b)},kx("row",n))))},kx("layout-grid")),h.worows.map(((e,t)=>(0,Tr.jsx)("div",{style:e.style||{},className:`${e.className||""} ${e.visible?"show":"hidden"}`,children:b(e,t)},kx("layout-comp",t)))),(0,Tr.jsx)("button",{"aria-label":"button",type:"button",ref:a,onClick:()=>g(i,n,o),style:{display:"none"}})]})}$X.defaultProps={patch:{},formRef:{},onSubmit:null,onChange:null,onStepChange:null,MuiGridAttributes:{spacing:2},activeStep:0}})()})();
185
+ //# sourceMappingURL=main.9e08a04c.js.map