slick-table 1.1.31 → 1.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -84,14 +84,14 @@ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var W=he(J,le,se,j,ee+".
|
|
|
84
84
|
* This source code is licensed under the MIT license found in the
|
|
85
85
|
* LICENSE file in the root directory of this source tree.
|
|
86
86
|
*/var dp;function T_(){return dp||(dp=1,process.env.NODE_ENV!=="production"&&function(){function e(m){if(typeof m=="object"&&m!==null){var v=m.$$typeof;switch(v){case t:switch(m=m.type,m){case o:case i:case r:case u:case f:case w:return m;default:switch(m=m&&m.$$typeof,m){case l:case d:case y:case p:return m;case a:return m;default:return v}}case n:return v}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");kt.ContextConsumer=a,kt.ContextProvider=l,kt.Element=t,kt.ForwardRef=d,kt.Fragment=o,kt.Lazy=y,kt.Memo=p,kt.Portal=n,kt.Profiler=i,kt.StrictMode=r,kt.Suspense=u,kt.SuspenseList=f,kt.isContextConsumer=function(m){return e(m)===a},kt.isContextProvider=function(m){return e(m)===l},kt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},kt.isForwardRef=function(m){return e(m)===d},kt.isFragment=function(m){return e(m)===o},kt.isLazy=function(m){return e(m)===y},kt.isMemo=function(m){return e(m)===p},kt.isPortal=function(m){return e(m)===n},kt.isProfiler=function(m){return e(m)===i},kt.isStrictMode=function(m){return e(m)===r},kt.isSuspense=function(m){return e(m)===u},kt.isSuspenseList=function(m){return e(m)===f},kt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===o||m===i||m===r||m===u||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===y||m.$$typeof===p||m.$$typeof===l||m.$$typeof===a||m.$$typeof===d||m.$$typeof===b||m.getModuleId!==void 0)},kt.typeOf=e}()),kt}var up;function k_(){return up||(up=1,process.env.NODE_ENV==="production"?Wa.exports=R_():Wa.exports=T_()),Wa.exports}var bl=k_();function Ro(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Sg(e){if(T.isValidElement(e)||bl.isValidElementType(e)||!Ro(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Sg(e[n])}),t}function Cn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Ro(e)&&Ro(t)&&Object.keys(t).forEach(r=>{T.isValidElement(t[r])||bl.isValidElementType(t[r])?o[r]=t[r]:Ro(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Ro(e[r])?o[r]=Cn(e[r],t[r],n):n.clone?o[r]=Ro(t[r])?Sg(t[r]):t[r]:o[r]=t[r]}),o}const E_=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function P_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,i=E_(t),a=Object.keys(i);function l(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-o/100}${n})`}function u(y,w){const b=a.indexOf(w);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:w)-o/100}${n})`}function f(y){return a.indexOf(y)+1<a.length?u(y,a[a.indexOf(y)+1]):l(y)}function p(y){const w=a.indexOf(y);return w===0?l(a[1]):w===a.length-1?d(a[w]):u(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:d,between:u,only:f,not:p,unit:n,...r}}function D_(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{const i=/min-width:\s*([0-9.]+)/;return+(o.match(i)?.[1]||0)-+(r.match(i)?.[1]||0)});return n.length?n.reduce((o,r)=>{const i=t[r];return delete o[r],o[r]=i,o},{...t}):t}function O_(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function M_(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
87
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Do(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function I_(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const N_={borderRadius:4},wr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Ei(e,t){return t?Cn(e,t,{clone:!1}):e}const Hl={xs:0,sm:600,md:900,lg:1200,xl:1536},hp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hl[e]}px)`},A_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Hl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function
|
|
87
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Do(18,`(${t})`));return null}const[,o,r]=n,i=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(i)}function I_(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},r=i=>(n(o,i),o);return n(r),{...e,containerQueries:r}}const N_={borderRadius:4},wr=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Ei(e,t){return t?Cn(e,t,{clone:!1}):e}const Hl={xs:0,sm:600,md:900,lg:1200,xl:1536},hp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hl[e]}px)`},A_={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Hl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Jo(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const i=o.breakpoints||hp;return t.reduce((a,l,d)=>(a[i.up(i.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const i=o.breakpoints||hp;return Object.keys(t).reduce((a,l)=>{if(O_(i.keys,l)){const d=M_(o.containerQueries?o:A_,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(i.values||Hl).includes(l)){const d=i.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function F_(e={}){return e.keys?.reduce((n,o)=>{const r=e.up(o);return n[r]={},n},{})||{}}function L_(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function we(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Do(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,i)=>r&&r[i]?r[i]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function wl(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=zl(e,n)||o,t&&(r=t(r,o,e)),r}function tn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,i=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,u=zl(d,o)||{};return Jo(a,l,p=>{let y=wl(u,r,p);return p===y&&typeof p=="string"&&(y=wl(u,r,`${t}${p==="default"?"":we(p)}`,p)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:wr}:{},i.filterProps=[t],i}function $_(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const V_={m:"margin",p:"padding"},j_={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B_=$_(e=>{if(e.length>2)if(fp[e])e=fp[e];else return[e];const[t,n]=e.split(""),o=V_[t],r=j_[n]||"";return Array.isArray(r)?r.map(i=>o+i):[o+r]}),Yl=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ul=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],W_=[...Yl,...Ul];function aa(e,t,n,o){const r=zl(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${i}.`),typeof r=="string"?`calc(${i} * ${r})`:r*i):Array.isArray(r)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>r.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(r)}.`,`${a} > ${r.length-1}, you need to add the missing values.`].join(`
|
|
88
88
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
89
89
|
`)));const l=r[a];return i>=0?l:typeof l=="number"?-l:`-${l}`}:typeof r=="function"?r:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${r}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
90
|
-
`)),()=>{})}function Eu(e){return aa(e,"spacing",8,"spacing")}function la(e,t){return typeof t=="string"||t==null?t:e(t)}function H_(e,t){return n=>e.reduce((o,r)=>(o[r]=la(t,n),o),{})}function z_(e,t,n,o){if(!t.includes(n))return null;const r=B_(n),i=H_(r,o),a=e[n];return Qo(e,a,i)}function _g(e,t){const n=Eu(e.theme);return Object.keys(e).map(o=>z_(e,t,o,n)).reduce(Ei,{})}function Gt(e){return _g(e,Yl)}Gt.propTypes=process.env.NODE_ENV!=="production"?Yl.reduce((e,t)=>(e[t]=wr,e),{}):{};Gt.filterProps=Yl;function Kt(e){return _g(e,Ul)}Kt.propTypes=process.env.NODE_ENV!=="production"?Ul.reduce((e,t)=>(e[t]=wr,e),{}):{};Kt.filterProps=Ul;process.env.NODE_ENV!=="production"&&W_.reduce((e,t)=>(e[t]=wr,e),{});function xg(e=8,t=Eu({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ql(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?Ei(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Gn(e){return typeof e!="number"?e:`${e}px solid`}function eo(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const Y_=eo("border",Gn),U_=eo("borderTop",Gn),q_=eo("borderRight",Gn),G_=eo("borderBottom",Gn),K_=eo("borderLeft",Gn),X_=eo("borderColor"),Z_=eo("borderTopColor"),Q_=eo("borderRightColor"),J_=eo("borderBottomColor"),ex=eo("borderLeftColor"),tx=eo("outline",Gn),nx=eo("outlineColor"),Gl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=aa(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:la(t,o)});return Qo(e,e.borderRadius,n)}return null};Gl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wr}:{};Gl.filterProps=["borderRadius"];ql(Y_,U_,q_,G_,K_,X_,Z_,Q_,J_,ex,Gl,tx,nx);const Kl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=aa(e.theme,"spacing",8,"gap"),n=o=>({gap:la(t,o)});return Qo(e,e.gap,n)}return null};Kl.propTypes=process.env.NODE_ENV!=="production"?{gap:wr}:{};Kl.filterProps=["gap"];const Xl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=aa(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:la(t,o)});return Qo(e,e.columnGap,n)}return null};Xl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wr}:{};Xl.filterProps=["columnGap"];const Zl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=aa(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:la(t,o)});return Qo(e,e.rowGap,n)}return null};Zl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wr}:{};Zl.filterProps=["rowGap"];const ox=tn({prop:"gridColumn"}),rx=tn({prop:"gridRow"}),sx=tn({prop:"gridAutoFlow"}),ix=tn({prop:"gridAutoColumns"}),ax=tn({prop:"gridAutoRows"}),lx=tn({prop:"gridTemplateColumns"}),cx=tn({prop:"gridTemplateRows"}),dx=tn({prop:"gridTemplateAreas"}),ux=tn({prop:"gridArea"});ql(Kl,Xl,Zl,ox,rx,sx,ix,ax,lx,cx,dx,ux);function Rs(e,t){return t==="grey"?t:e}const hx=tn({prop:"color",themeKey:"palette",transform:Rs}),fx=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rs}),px=tn({prop:"backgroundColor",themeKey:"palette",transform:Rs});ql(hx,fx,px);function $n(e){return e<=1&&e!==0?`${e*100}%`:e}const mx=tn({prop:"width",transform:$n}),Pu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Hl[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$n(n)}};return Qo(e,e.maxWidth,t)}return null};Pu.filterProps=["maxWidth"];const gx=tn({prop:"minWidth",transform:$n}),yx=tn({prop:"height",transform:$n}),vx=tn({prop:"maxHeight",transform:$n}),bx=tn({prop:"minHeight",transform:$n});tn({prop:"size",cssProperty:"width",transform:$n});tn({prop:"size",cssProperty:"height",transform:$n});const wx=tn({prop:"boxSizing"});ql(mx,Pu,gx,yx,vx,bx,wx);const ca={border:{themeKey:"borders",transform:Gn},borderTop:{themeKey:"borders",transform:Gn},borderRight:{themeKey:"borders",transform:Gn},borderBottom:{themeKey:"borders",transform:Gn},borderLeft:{themeKey:"borders",transform:Gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gl},color:{themeKey:"palette",transform:Rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rs},backgroundColor:{themeKey:"palette",transform:Rs},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},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:Kl},rowGap:{style:Zl},columnGap:{style:Xl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$n},maxWidth:{style:Pu},minWidth:{transform:$n},height:{transform:$n},maxHeight:{transform:$n},minHeight:{transform:$n},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cx(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Sx(e,t){return typeof e=="function"?e(t):e}function _x(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=zl(r,u)||{};return p?p(a):Qo(a,o,b=>{let m=wl(y,f,b);return b===m&&typeof b=="string"&&(m=wl(y,f,`${n}${b==="default"?"":we(b)}`,b)),d===!1?m:{[d]:m}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??ca;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=F_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const w=Sx(d[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=Ei(p,e(y,w,r,i));else{const b=Qo({theme:r},w,m=>({[y]:m}));Cx(b,w)?p[y]=t({sx:w,theme:r}):p=Ei(p,b)}else p=Ei(p,e(y,w,r,i))}),D_(r,L_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Wr=_x();Wr.filterProps=["sx"];function xx(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Du(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=P_(n),d=xg(r);let u=Cn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...N_,...i}},a);return u=I_(u),u.applyStyles=xx,u=t.reduce((f,p)=>Cn(f,p),u),u.unstable_sxConfig={...ca,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Wr({sx:p,theme:this})},u}function Rx(e){return Object.keys(e).length===0}function Rg(e=null){const t=T.useContext(Wl);return!t||Rx(t)?e:t}const Tx=Du();function Ql(e=Tx){return Rg(e)}function Tg({styles:e,themeId:t,defaultTheme:n={}}){const o=Ql(n),r=typeof e=="function"?e(t&&o[t]||o):e;return E.jsx(wg,{styles:r})}process.env.NODE_ENV!=="production"&&(Tg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const kx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ca;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function kg(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Ro(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const pp=e=>e,Ex=()=>{let e=pp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pp}}},Eg=Ex();function Pg(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Pg(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Pg(e))&&(o&&(o+=" "),o+=t);return o}function Px(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=Cg("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Wr);return T.forwardRef(function(d,u){const f=Ql(n),{className:p,component:y="div",...w}=kg(d);return E.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const Dx={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 Me(e,t,n="Mui"){const o=Dx[t];return o?`${n}-${o}`:`${Eg.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Me(e,r,n)}),o}function Dg(e,t=""){return e.displayName||e.name||t}function mp(e,t,n){const o=Dg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Ox(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Dg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case bl.ForwardRef:return mp(e,e.render,"ForwardRef");case bl.Memo:return mp(e,e.type,"memo");default:return}}}function Og(e){const{variants:t,...n}=e,o={variants:t,style:lp(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=lp(r.style))}),o}const Mx=Du();function ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ix(e){return e?(t,n)=>n[e]:null}function Nx(e,t,n){e.theme=$x(e.theme)?n:e.theme[t]||e.theme}function cl(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>cl(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return Mg(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Mg(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function Ax(e={}){const{themeId:t,defaultTheme:n=Mx,rootShouldForwardProp:o=ll,slotShouldForwardProp:r=ll}=e;function i(l){Nx(l,t,n)}return(l,d={})=>{x_(l,C=>C.filter(O=>O!==Wr));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=Ix(Ig(f)),...b}=d,m=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let D=ll;f==="Root"||f==="root"?D=o:f?D=r:Vx(l)&&(D=void 0);const k=Cg(l,{shouldForwardProp:D,label:Lx(u,f),...b}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(I){return cl(I,C)};if(Ro(C)){const O=Og(C);return O.variants?function(F){return cl(F,O)}:O.style}return C},S=(...C)=>{const O=[],I=C.map(x),F=[];if(O.push(i),u&&w&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const H in q)Y[H]=cl(K,q[H]);return w(K,Y)}),u&&!m&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?Mg(K,q):null}),v||F.push(Wr),Array.isArray(I[0])){const $=I.shift(),K=new Array(O.length).fill(""),G=new Array(F.length).fill("");let q;q=[...K,...$,...G],q.raw=[...K,...$.raw,...G],O.unshift(q)}const z=[...O,...I,...F],R=k(...z);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Fx(u,f,l)),R};return k.withConfig&&(S.withConfig=k.withConfig),S}}function Fx(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${Ox(n)})`}function Lx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Ig(t||"Root")}`),n}function $x(e){for(const t in e)return!1;return!0}function Vx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ig(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Bi(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Bi(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Ng(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Bi(t.components[n].defaultProps,o)}function jx({props:e,name:t,defaultTheme:n,themeId:o}){let r=Ql(n);return r=r[o]||r,Ng({theme:r,name:t,props:e})}const ln=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Bx(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return ln(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const Wx={...T},Ag=Wx.useSyncExternalStore;function Hx(e,t,n,o,r){const i=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,e]);return Ag(d,l,a)}function zx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Rg();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=Ng({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
90
|
+
`)),()=>{})}function Eu(e){return aa(e,"spacing",8,"spacing")}function la(e,t){return typeof t=="string"||t==null?t:e(t)}function H_(e,t){return n=>e.reduce((o,r)=>(o[r]=la(t,n),o),{})}function z_(e,t,n,o){if(!t.includes(n))return null;const r=B_(n),i=H_(r,o),a=e[n];return Jo(e,a,i)}function _g(e,t){const n=Eu(e.theme);return Object.keys(e).map(o=>z_(e,t,o,n)).reduce(Ei,{})}function Gt(e){return _g(e,Yl)}Gt.propTypes=process.env.NODE_ENV!=="production"?Yl.reduce((e,t)=>(e[t]=wr,e),{}):{};Gt.filterProps=Yl;function Kt(e){return _g(e,Ul)}Kt.propTypes=process.env.NODE_ENV!=="production"?Ul.reduce((e,t)=>(e[t]=wr,e),{}):{};Kt.filterProps=Ul;process.env.NODE_ENV!=="production"&&W_.reduce((e,t)=>(e[t]=wr,e),{});function xg(e=8,t=Eu({spacing:e})){if(e.mui)return e;const n=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ql(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(i=>{o[i]=r}),o),{}),n=o=>Object.keys(o).reduce((r,i)=>t[i]?Ei(r,t[i](o)):r,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,r)=>Object.assign(o,r.propTypes),{}):{},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function Gn(e){return typeof e!="number"?e:`${e}px solid`}function eo(e,t){return tn({prop:e,themeKey:"borders",transform:t})}const Y_=eo("border",Gn),U_=eo("borderTop",Gn),q_=eo("borderRight",Gn),G_=eo("borderBottom",Gn),K_=eo("borderLeft",Gn),X_=eo("borderColor"),Z_=eo("borderTopColor"),Q_=eo("borderRightColor"),J_=eo("borderBottomColor"),ex=eo("borderLeftColor"),tx=eo("outline",Gn),nx=eo("outlineColor"),Gl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=aa(e.theme,"shape.borderRadius",4,"borderRadius"),n=o=>({borderRadius:la(t,o)});return Jo(e,e.borderRadius,n)}return null};Gl.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wr}:{};Gl.filterProps=["borderRadius"];ql(Y_,U_,q_,G_,K_,X_,Z_,Q_,J_,ex,Gl,tx,nx);const Kl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=aa(e.theme,"spacing",8,"gap"),n=o=>({gap:la(t,o)});return Jo(e,e.gap,n)}return null};Kl.propTypes=process.env.NODE_ENV!=="production"?{gap:wr}:{};Kl.filterProps=["gap"];const Xl=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=aa(e.theme,"spacing",8,"columnGap"),n=o=>({columnGap:la(t,o)});return Jo(e,e.columnGap,n)}return null};Xl.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wr}:{};Xl.filterProps=["columnGap"];const Zl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=aa(e.theme,"spacing",8,"rowGap"),n=o=>({rowGap:la(t,o)});return Jo(e,e.rowGap,n)}return null};Zl.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wr}:{};Zl.filterProps=["rowGap"];const ox=tn({prop:"gridColumn"}),rx=tn({prop:"gridRow"}),sx=tn({prop:"gridAutoFlow"}),ix=tn({prop:"gridAutoColumns"}),ax=tn({prop:"gridAutoRows"}),lx=tn({prop:"gridTemplateColumns"}),cx=tn({prop:"gridTemplateRows"}),dx=tn({prop:"gridTemplateAreas"}),ux=tn({prop:"gridArea"});ql(Kl,Xl,Zl,ox,rx,sx,ix,ax,lx,cx,dx,ux);function Rs(e,t){return t==="grey"?t:e}const hx=tn({prop:"color",themeKey:"palette",transform:Rs}),fx=tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Rs}),px=tn({prop:"backgroundColor",themeKey:"palette",transform:Rs});ql(hx,fx,px);function $n(e){return e<=1&&e!==0?`${e*100}%`:e}const mx=tn({prop:"width",transform:$n}),Pu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const o=e.theme?.breakpoints?.values?.[n]||Hl[n];return o?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:$n(n)}};return Jo(e,e.maxWidth,t)}return null};Pu.filterProps=["maxWidth"];const gx=tn({prop:"minWidth",transform:$n}),yx=tn({prop:"height",transform:$n}),vx=tn({prop:"maxHeight",transform:$n}),bx=tn({prop:"minHeight",transform:$n});tn({prop:"size",cssProperty:"width",transform:$n});tn({prop:"size",cssProperty:"height",transform:$n});const wx=tn({prop:"boxSizing"});ql(mx,Pu,gx,yx,vx,bx,wx);const ca={border:{themeKey:"borders",transform:Gn},borderTop:{themeKey:"borders",transform:Gn},borderRight:{themeKey:"borders",transform:Gn},borderBottom:{themeKey:"borders",transform:Gn},borderLeft:{themeKey:"borders",transform:Gn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gl},color:{themeKey:"palette",transform:Rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Rs},backgroundColor:{themeKey:"palette",transform:Rs},p:{style:Kt},pt:{style:Kt},pr:{style:Kt},pb:{style:Kt},pl:{style:Kt},px:{style:Kt},py:{style:Kt},padding:{style:Kt},paddingTop:{style:Kt},paddingRight:{style:Kt},paddingBottom:{style:Kt},paddingLeft:{style:Kt},paddingX:{style:Kt},paddingY:{style:Kt},paddingInline:{style:Kt},paddingInlineStart:{style:Kt},paddingInlineEnd:{style:Kt},paddingBlock:{style:Kt},paddingBlockStart:{style:Kt},paddingBlockEnd:{style:Kt},m:{style:Gt},mt:{style:Gt},mr:{style:Gt},mb:{style:Gt},ml:{style:Gt},mx:{style:Gt},my:{style:Gt},margin:{style:Gt},marginTop:{style:Gt},marginRight:{style:Gt},marginBottom:{style:Gt},marginLeft:{style:Gt},marginX:{style:Gt},marginY:{style:Gt},marginInline:{style:Gt},marginInlineStart:{style:Gt},marginInlineEnd:{style:Gt},marginBlock:{style:Gt},marginBlockStart:{style:Gt},marginBlockEnd:{style:Gt},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:Kl},rowGap:{style:Zl},columnGap:{style:Xl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$n},maxWidth:{style:Pu},minWidth:{transform:$n},height:{transform:$n},maxHeight:{transform:$n},minHeight:{transform:$n},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Cx(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function Sx(e,t){return typeof e=="function"?e(t):e}function _x(){function e(n,o,r,i){const a={[n]:o,theme:r},l=i[n];if(!l)return{[n]:o};const{cssProperty:d=n,themeKey:u,transform:f,style:p}=l;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const y=zl(r,u)||{};return p?p(a):Jo(a,o,b=>{let m=wl(y,f,b);return b===m&&typeof b=="string"&&(m=wl(y,f,`${n}${b==="default"?"":we(b)}`,b)),d===!1?m:{[d]:m}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const i=r.unstable_sxConfig??ca;function a(l){let d=l;if(typeof l=="function")d=l(r);else if(typeof l!="object")return l;if(!d)return null;const u=F_(r.breakpoints),f=Object.keys(u);let p=u;return Object.keys(d).forEach(y=>{const w=Sx(d[y],r);if(w!=null)if(typeof w=="object")if(i[y])p=Ei(p,e(y,w,r,i));else{const b=Jo({theme:r},w,m=>({[y]:m}));Cx(b,w)?p[y]=t({sx:w,theme:r}):p=Ei(p,b)}else p=Ei(p,e(y,w,r,i))}),D_(r,L_(f,p))}return Array.isArray(o)?o.map(a):a(o)}return t}const Wr=_x();Wr.filterProps=["sx"];function xx(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function Du(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:i={},...a}=e,l=P_(n),d=xg(r);let u=Cn({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...N_,...i}},a);return u=I_(u),u.applyStyles=xx,u=t.reduce((f,p)=>Cn(f,p),u),u.unstable_sxConfig={...ca,...a?.unstable_sxConfig},u.unstable_sx=function(p){return Wr({sx:p,theme:this})},u}function Rx(e){return Object.keys(e).length===0}function Rg(e=null){const t=T.useContext(Wl);return!t||Rx(t)?e:t}const Tx=Du();function Ql(e=Tx){return Rg(e)}function Tg({styles:e,themeId:t,defaultTheme:n={}}){const o=Ql(n),r=typeof e=="function"?e(t&&o[t]||o):e;return E.jsx(wg,{styles:r})}process.env.NODE_ENV!=="production"&&(Tg.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool]),themeId:s.string});const kx=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ca;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function kg(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=kx(n);let i;return Array.isArray(t)?i=[o,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Ro(l)?{...o,...l}:o}:i={...o,...t},{...r,sx:i}}const pp=e=>e,Ex=()=>{let e=pp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=pp}}},Eg=Ex();function Pg(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Pg(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Se(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Pg(e))&&(o&&(o+=" "),o+=t);return o}function Px(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=Cg("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Wr);return T.forwardRef(function(d,u){const f=Ql(n),{className:p,component:y="div",...w}=kg(d);return E.jsx(i,{as:y,ref:u,className:Se(p,r?r(o):o),theme:t&&f[t]||f,...w})})}const Dx={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 Me(e,t,n="Mui"){const o=Dx[t];return o?`${n}-${o}`:`${Eg.generate(e)}-${t}`}function Pe(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=Me(e,r,n)}),o}function Dg(e,t=""){return e.displayName||e.name||t}function mp(e,t,n){const o=Dg(t);return e.displayName||(o!==""?`${n}(${o})`:n)}function Ox(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Dg(e,"Component");if(typeof e=="object")switch(e.$$typeof){case bl.ForwardRef:return mp(e,e.render,"ForwardRef");case bl.Memo:return mp(e,e.type,"memo");default:return}}}function Og(e){const{variants:t,...n}=e,o={variants:t,style:lp(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=lp(r.style))}),o}const Mx=Du();function ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ix(e){return e?(t,n)=>n[e]:null}function Nx(e,t,n){e.theme=$x(e.theme)?n:e.theme[t]||e.theme}function cl(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>cl(e,o));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...i}=n;o=i}return Mg(e,n.variants,[o])}return n?.isProcessed?n.style:n}function Mg(e,t,n=[]){let o;e:for(let r=0;r<t.length;r+=1){const i=t[r];if(typeof i.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!i.props(o))continue}else for(const a in i.props)if(e[a]!==i.props[a]&&e.ownerState?.[a]!==i.props[a])continue e;typeof i.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(i.style(o))):n.push(i.style)}return n}function Ax(e={}){const{themeId:t,defaultTheme:n=Mx,rootShouldForwardProp:o=ll,slotShouldForwardProp:r=ll}=e;function i(l){Nx(l,t,n)}return(l,d={})=>{x_(l,C=>C.filter(O=>O!==Wr));const{name:u,slot:f,skipVariantsResolver:p,skipSx:y,overridesResolver:w=Ix(Ig(f)),...b}=d,m=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,v=y||!1;let D=ll;f==="Root"||f==="root"?D=o:f?D=r:Vx(l)&&(D=void 0);const k=Cg(l,{shouldForwardProp:D,label:Lx(u,f),...b}),x=C=>{if(C.__emotion_real===C)return C;if(typeof C=="function")return function(I){return cl(I,C)};if(Ro(C)){const O=Og(C);return O.variants?function(F){return cl(F,O)}:O.style}return C},S=(...C)=>{const O=[],I=C.map(x),F=[];if(O.push(i),u&&w&&F.push(function(K){const q=K.theme.components?.[u]?.styleOverrides;if(!q)return null;const Y={};for(const H in q)Y[H]=cl(K,q[H]);return w(K,Y)}),u&&!m&&F.push(function(K){const q=K.theme?.components?.[u]?.variants;return q?Mg(K,q):null}),v||F.push(Wr),Array.isArray(I[0])){const $=I.shift(),K=new Array(O.length).fill(""),G=new Array(F.length).fill("");let q;q=[...K,...$,...G],q.raw=[...K,...$.raw,...G],O.unshift(q)}const z=[...O,...I,...F],R=k(...z);return l.muiName&&(R.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=Fx(u,f,l)),R};return k.withConfig&&(S.withConfig=k.withConfig),S}}function Fx(e,t,n){return e?`${e}${we(t||"")}`:`Styled(${Ox(n)})`}function Lx(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Ig(t||"Root")}`),n}function $x(e){for(const t in e)return!1;return!0}function Vx(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ig(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Bi(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const i=e[r],a=t[r];if(!a)n[r]=i||{};else if(!i)n[r]=a;else{n[r]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const d=l;n[r][d]=Bi(i[d],a[d])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function Ng(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:Bi(t.components[n].defaultProps,o)}function jx({props:e,name:t,defaultTheme:n,themeId:o}){let r=Ql(n);return r=r[o]||r,Ng({theme:r,name:t,props:e})}const ln=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Bx(e,t,n,o,r){const[i,a]=T.useState(()=>r&&n?n(e).matches:o?o(e).matches:t);return ln(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),i}const Wx={...T},Ag=Wx.useSyncExternalStore;function Hx(e,t,n,o,r){const i=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(r&&n)return()=>n(e).matches;if(o!==null){const{matches:f}=o(e);return()=>f}return i},[i,e,o,r,n]),[l,d]=T.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,p=>(f.addEventListener("change",p),()=>{f.removeEventListener("change",p)})]},[i,n,e]);return Ag(d,l,a)}function zx(e={}){const{themeId:t}=e;return function(o,r={}){let i=Rg();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:f=!1}=Ng({name:"MuiUseMediaQuery",props:r,theme:i});process.env.NODE_ENV!=="production"&&typeof o=="function"&&i===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
91
91
|
`));let p=typeof o=="function"?o(i):o;p=p.replace(/^@media( ?)/m,""),p.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
92
92
|
`));const w=(Ag!==void 0?Hx:Bx)(p,l,d,u,f);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:p,match:w}),w}}const Fg=zx();function Yx(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ou(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Yx(e,t,n)}function Ux(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function vr(e){if(e.type)return e;if(e.charAt(0)==="#")return vr(Ux(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
93
93
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Do(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${r}\` color space.
|
|
94
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Do(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const qx=e=>{const t=vr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},xi=(e,t)=>{try{return qx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jl(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Lg(e){e=vr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Jl({type:l,values:d})}function Ud(e){e=vr(e);let t=e.type==="hsl"||e.type==="hsla"?vr(Lg(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gp(e,t){const n=Ud(e),o=Ud(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function tt(e,t){return e=vr(e),t=Ou(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jl(e)}function Ha(e,t,n){try{return tt(e,t)}catch{return e}}function Wi(e,t){if(e=vr(e),t=Ou(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 Jl(e)}function Pt(e,t,n){try{return Wi(e,t)}catch{return e}}function Hi(e,t){if(e=vr(e),t=Ou(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 Jl(e)}function Dt(e,t,n){try{return Hi(e,t)}catch{return e}}function Gx(e,t=.15){return Ud(e)>.5?Wi(e,t):Hi(e,t)}function za(e,t,n){try{return Gx(e,t)}catch{return e}}function Cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Kx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $g(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!Kx(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Hs=Cr(s.element,$g);Hs.isRequired=Cr(s.element.isRequired,$g);function Xx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Zx(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Xx(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ec=Cr(s.elementType,Zx),Qx="exact-prop: ";function Vg(e){return process.env.NODE_ENV==="production"?e:{...e,[Qx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function
|
|
94
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Do(10,r))}else o=o.split(",");return o=o.map(i=>parseFloat(i)),{type:n,values:o,colorSpace:r}}const qx=e=>{const t=vr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},xi=(e,t)=>{try{return qx(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jl(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,i)=>i<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function Lg(e){e=vr(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),a=(u,f=(u+n/30)%12)=>r-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),Jl({type:l,values:d})}function Ud(e){e=vr(e);let t=e.type==="hsl"||e.type==="hsla"?vr(Lg(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gp(e,t){const n=Ud(e),o=Ud(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function tt(e,t){return e=vr(e),t=Ou(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jl(e)}function Ha(e,t,n){try{return tt(e,t)}catch{return e}}function Wi(e,t){if(e=vr(e),t=Ou(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 Jl(e)}function Pt(e,t,n){try{return Wi(e,t)}catch{return e}}function Hi(e,t){if(e=vr(e),t=Ou(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 Jl(e)}function Dt(e,t,n){try{return Hi(e,t)}catch{return e}}function Gx(e,t=.15){return Ud(e)>.5?Wi(e,t):Hi(e,t)}function za(e,t,n){try{return Gx(e,t)}catch{return e}}function Cr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...o){return e(...o)||t(...o)}}function Kx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function $g(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;const d=i.type;return typeof d=="function"&&!Kx(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Hs=Cr(s.element,$g);Hs.isRequired=Cr(s.element.isRequired,$g);function Xx(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Zx(e,t,n,o,r){const i=e[t],a=r||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!Xx(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ec=Cr(s.elementType,Zx),Qx="exact-prop: ";function Vg(e){return process.env.NODE_ENV==="production"?e:{...e,[Qx]:t=>{const n=Object.keys(t).filter(o=>!e.hasOwnProperty(o));return n.length>0?new Error(`The following props are not supported: ${n.map(o=>`\`${o}\``).join(", ")}. Please remove them.`):null}}}function er(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=r||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${o} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const zt=s.oneOfType([s.func,s.object]);function yp(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function jg(e,t=166){let n;function o(...r){const i=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(i,t)}return o.clear=()=>{clearTimeout(n)},o}function Pi(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Sn(e){return e&&e.ownerDocument||document}function tr(e){return Sn(e).defaultView||window}function vp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let bp=0;function Jx(e){const[t,n]=T.useState(e),o=e||t;return T.useEffect(()=>{t==null&&(bp+=1,n(`mui-${bp}`))},[t]),o}const eR={...T},wp=eR.useId;function sr(e){if(wp!==void 0){const t=wp();return e??t}return Jx(e)}function tR(e,t,n,o,r){if(process.env.NODE_ENV==="production")return null;const i=r||t;return typeof e[t]<"u"?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null}function ho({controlled:e,default:t,name:n,state:o="value"}){const{current:r}=T.useRef(e!==void 0),[i,a]=T.useState(t),l=r?e:i;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{r!==(e!==void 0)&&console.error([`MUI: A component is changing the ${r?"":"un"}controlled ${o} state of ${n} to be ${r?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
95
95
|
`))},[o,n,e]);const{current:u}=T.useRef(t);T.useEffect(()=>{!r&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
96
96
|
`))},[JSON.stringify(t)])}const d=T.useCallback(u=>{r||a(u)},[]);return[l,d]}function Te(e){const t=T.useRef(e);return ln(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){const t=T.useRef(void 0),n=T.useCallback(o=>{const r=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(o);return typeof l=="function"?l:()=>{a(null)}}return i.current=o,()=>{i.current=null}});return()=>{r.forEach(i=>i?.())}},e);return T.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}const Cp={};function Bg(e,t){const n=T.useRef(Cp);return n.current===Cp&&(n.current=e(t)),n}const nR=[];function oR(e){T.useEffect(e,nR)}class tc{static create(){return new tc}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vs(){const e=Bg(tc.create).current;return oR(e.disposeEffect),e}function Cl(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
97
97
|
`))}return!1}function Wg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}const rR={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function sR(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function Hg(e,t,n,o){const r=e[t];if(r==null||!Number.isInteger(r)){const i=sR(r);return new RangeError(`Invalid ${o} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function zg(e,t,...n){return e[t]===void 0?null:Hg(e,t,...n)}function qd(){return null}zg.isRequired=Hg;qd.isRequired=qd;const Yg=process.env.NODE_ENV==="production"?qd:zg;function Ie(e,t,n=void 0){const o={};for(const r in e){const i=e[r];let a="",l=!0;for(let d=0;d<i.length;d+=1){const u=i[d];u&&(a+=(l===!0?"":" ")+t(u),l=!1,n&&n[u]&&(a+=" "+n[u]))}o[r]=a}return o}function iR(e){return typeof e=="string"}function bs(e,t,n){return e===void 0||iR(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ug(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function Sp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function qg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const w=Se(n?.className,i,r?.className,o?.className),b={...n?.style,...r?.style,...o?.style},m={...n,...r,...o};return w.length>0&&(m.className=w),Object.keys(b).length>0&&(m.style=b),{props:m,internalRef:void 0}}const a=Ug({...r,...o}),l=Sp(o),d=Sp(r),u=t(a),f=Se(u?.className,n?.className,i,r?.className,o?.className),p={...u?.style,...n?.style,...r?.style,...o?.style},y={...u,...n,...d,...l};return f.length>0&&(y.className=f),Object.keys(p).length>0&&(y.style=p),{props:y,internalRef:u.ref}}function nc(e,t,n){return typeof e=="function"?e(t,n):e}function pt(e){const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...i}=e,a=r?{}:nc(n,o),{props:l,internalRef:d}=qg({...i,externalSlotProps:a}),u=ct(d,a?.ref,e.additionalProps?.ref);return bs(t,{...l,ref:u},o)}function zs(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}const aR=T.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const to=()=>T.useContext(aR)??!1,lR=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function cR(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?Bi(r.defaultProps,o):!r.styleOverrides&&!r.variants?Bi(r,o):o}function dR({props:e,name:t}){const n=T.useContext(lR);return cR({props:e,name:t,theme:{components:n}})}const _p={theme:void 0};function uR(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(_p.theme=r.theme,i=Og(e(_p)),t=i,n=r.theme),i}}function hR(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const xp=(e,t,n,o=[])=>{let r=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(r)?r[Number(i)]=n:r&&typeof r=="object"&&(r[i]=n):r&&typeof r=="object"&&(r[i]||(r[i]=o.includes(i)?[]:{}),r=r[i])})},fR=(e,t,n)=>{function o(r,i=[],a=[]){Object.entries(r).forEach(([l,d])=>{(!n||n&&!n([...i,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...i,l],Array.isArray(d)?[...a,l]:a):t([...i,l],d,a))})}o(e)},pR=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function ud(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},i={},a={};return fR(e,(l,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(l,d))){const f=`--${n?`${n}-`:""}${l.join("-")}`,p=pR(l,d);Object.assign(r,{[f]:p}),xp(i,l,`var(${f})`,u),xp(a,l,`var(${f}, ${p})`,u)}},l=>l[0]==="vars"),{css:r,vars:i,varsWithDefaults:a}}function mR(e,t={}){const{getSelector:n=v,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...d}=e,{vars:u,css:f,varsWithDefaults:p}=ud(d,t);let y=p;const w={},{[l]:b,...m}=i;if(Object.entries(m||{}).forEach(([x,S])=>{const{vars:C,css:O,varsWithDefaults:I}=ud(S,t);y=Cn(y,I),w[x]={css:O,vars:C}}),b){const{css:x,vars:S,varsWithDefaults:C}=ud(b,t);y=Cn(y,C),w[l]={css:x,vars:S}}function v(x,S){let C=r;if(r==="class"&&(C=".%s"),r==="data"&&(C="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(C=`[${r}="%s"]`),x){if(C==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${i[x]?.palette?.mode||x})`]:{":root":S}};if(C)return e.defaultColorScheme===x?`:root, ${C.replace("%s",String(x))}`:C.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...u};return Object.entries(w).forEach(([,{vars:S}])=>{x=Cn(x,S)}),x},generateStyleSheets:()=>{const x=[],S=e.defaultColorScheme||"light";function C(F,z){Object.keys(z).length&&x.push(typeof F=="string"?{[F]:{...z}}:F)}C(n(void 0,{...f}),f);const{[S]:O,...I}=w;if(O){const{css:F}=O,z=i[S]?.palette?.mode,R=!o&&z?{colorScheme:z,...F}:{...F};C(n(S,{...R}),R)}return Object.entries(I).forEach(([F,{css:z}])=>{const R=i[F]?.palette?.mode,$=!o&&R?{colorScheme:R,...z}:{...z};C(n(F,{...$}),$)}),x}}}function gR(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function Gg(){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:Li.white,default:Li.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 yR=Gg();function Kg(){return{text:{primary:Li.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:Li.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 Rp=Kg();function Tp(e,t,n,o){const r=o.light||o,i=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hi(e.main,r):t==="dark"&&(e.dark=Wi(e.main,i)))}function vR(e="light"){return e==="dark"?{main:ls[200],light:ls[50],dark:ls[400]}:{main:ls[700],light:ls[400],dark:ls[800]}}function bR(e="light"){return e==="dark"?{main:as[200],light:as[50],dark:as[400]}:{main:as[500],light:as[300],dark:as[700]}}function wR(e="light"){return e==="dark"?{main:is[500],light:is[300],dark:is[700]}:{main:is[700],light:is[400],dark:is[800]}}function CR(e="light"){return e==="dark"?{main:cs[400],light:cs[300],dark:cs[700]}:{main:cs[700],light:cs[500],dark:cs[900]}}function SR(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[800],light:ds[500],dark:ds[900]}}function _R(e="light"){return e==="dark"?{main:ri[400],light:ri[300],dark:ri[700]}:{main:"#ed6c02",light:ri[500],dark:ri[900]}}function Mu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,i=e.primary||vR(t),a=e.secondary||bR(t),l=e.error||wR(t),d=e.info||CR(t),u=e.success||SR(t),f=e.warning||_R(t);function p(m){const v=gp(m,Rp.text.primary)>=n?Rp.text.primary:yR.text.primary;if(process.env.NODE_ENV!=="production"){const D=gp(m,v);D<3&&console.error([`MUI: The contrast ratio of ${D}:1 for ${v} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
@@ -118,8 +118,8 @@ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
|
118
118
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
119
119
|
|
|
120
120
|
export default theme;`}function Gd(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:i={},transitions:a={},typography:l={},shape:d,...u}=e;if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Do(20));const f=Mu(i),p=Du(e);let y=Cn(p,{mixins:RR(p.breakpoints,o),palette:f,shadows:OR.slice(),typography:kR(f,l),transitions:AR(a),zIndex:{...FR}});if(y=Cn(y,u),y=t.reduce((w,b)=>Cn(w,b),y),process.env.NODE_ENV!=="production"){const w=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(m,v)=>{let D;for(D in m){const k=m[D];if(w.includes(D)&&Object.keys(k).length>0){if(process.env.NODE_ENV!=="production"){const x=Me("",D);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${D}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:k}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
121
|
-
`))}m[D]={}}}};Object.keys(y.components).forEach(m=>{const v=y.components[m].styleOverrides;v&&m.startsWith("Mui")&&b(v,m)})}return y.unstable_sxConfig={...ca,...u?.unstable_sxConfig},y.unstable_sx=function(b){return Wr({sx:b,theme:this})},y.toRuntimeSource=Xg,y}function Kd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const $R=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Kd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Zg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Qg(e){return e==="dark"?$R:[]}function VR(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=Mu(t);return{palette:i,opacity:{...Zg(i.mode),...n},overlays:o||Qg(i.mode),...r}}function jR(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const BR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WR=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return BR(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function HR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function Ri(e){return!e||!e.startsWith("hsl")?e:Lg(e)}function
|
|
122
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function zR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const vo=e=>{try{return e()}catch{}},YR=(e="mui")=>hR(e);function hd(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=VR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Gd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Zg(r),...t?.opacity},overlays:t?.overlays||Qg(r)},a}function UR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=jR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=YR(i),{[p]:w,light:b,dark:m,...v}=n,D={...v};let k=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Do(21,p));const x=hd(D,k,u,p);b&&!D.light&&hd(D,b,void 0,"light"),m&&!D.dark&&hd(D,m,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:D,font:{...xR(x.typography),...x.font},spacing:zR(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const G=K.split("-"),q=G[1],Y=G[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),HR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",vo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",vo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",vo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",vo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Dt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Dt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Dt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Dt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Dt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Dt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Dt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Dt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Dt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Dt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Dt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Dt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Dt(R.error.main,.62)),ue(R.Slider,"infoTrack",Dt(R.info.main,.62)),ue(R.Slider,"successTrack",Dt(R.success.main,.62)),ue(R.Slider,"warningTrack",Dt(R.warning.main,.62));const K=za(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",vo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",za(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Dt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Dt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Dt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Dt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Dt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Dt(R.warning.main,.62)),ue(R.TableCell,"border",Dt(Ha(R.divider,1),.88)),ue(R.Tooltip,"bg",Ha(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Dt(R.error.light,.6)),ue(R.Alert,"infoColor",Dt(R.info.light,.6)),ue(R.Alert,"successColor",Dt(R.success.light,.6)),ue(R.Alert,"warningColor",Dt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",vo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",vo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",vo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",vo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.5)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Pt(R.error.main,.5)),ue(R.Slider,"infoTrack",Pt(R.info.main,.5)),ue(R.Slider,"successTrack",Pt(R.success.main,.5)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.5));const K=za(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",vo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",za(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.55)),ue(R.TableCell,"border",Pt(Ha(R.divider,1),.68)),ue(R.Tooltip,"bg",Ha(R.grey[700],.92))}Wo(R.background,"default"),Wo(R.background,"paper"),Wo(R.common,"background"),Wo(R.common,"onBackground"),Wo(R,"divider"),Object.keys(R).forEach(K=>{const G=R[K];G&&typeof G=="object"&&(G.main&&ue(R[K],"mainChannel",xi(Ri(G.main))),G.light&&ue(R[K],"lightChannel",xi(Ri(G.light))),G.dark&&ue(R[K],"darkChannel",xi(Ri(G.dark))),G.contrastText&&ue(R[K],"contrastTextChannel",xi(Ri(G.contrastText))),K==="text"&&(Wo(R[K],"primary"),Wo(R[K],"secondary")),K==="action"&&(G.active&&Wo(R[K],"active"),G.selected&&Wo(R[K],"selected")))})}),S=t.reduce((z,R)=>Cn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:WR(S)},{vars:O,generateThemeVars:I,generateStyleSheets:F}=mR(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=I,S.generateStyleSheets=F,S.generateSpacing=function(){return xg(u.spacing,Eu(this))},S.getColorSchemeSelector=gR(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ca,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Wr({sx:R,theme:this})},S.toRuntimeSource=Xg,S}function Dp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Mu({...n===!0?{}:n.palette,mode:t})})}function Jg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Gd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Gd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Dp(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Dp(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),UR({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function qR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function GR(e){return parseFloat(e)}const oc=Jg();function qr(){const e=Ql(oc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[ra]||e}function Nt({props:e,name:t}){return jx({props:e,name:t,defaultTheme:oc,themeId:ra})}function ey(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>ey(e)&&e!=="classes",ie=Ax({themeId:ra,defaultTheme:oc,rootShouldForwardProp:Tn});function ty(e){return E.jsx(Tg,{...e,defaultTheme:oc,themeId:ra})}process.env.NODE_ENV!=="production"&&(ty.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function KR(e){return function(n){return E.jsx(ty,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function XR(){return kg}const ot=uR;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ge(e){return dR(e)}function ZR(e){return Me("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Ie(r,ZR,o)},JR=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(ot(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),zi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",m={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const D=QR(m);return E.jsxs(JR,{as:l,className:Se(D.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:m,children:[b?r.props.children:r,p?E.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(zi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});zi&&(zi.muiName="SvgIcon");function fn(e,t){function n(o,r){return E.jsx(zi,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=zi.muiName,T.memo(T.forwardRef(n))}var Ya={exports:{}},xt={};/**
|
|
121
|
+
`))}m[D]={}}}};Object.keys(y.components).forEach(m=>{const v=y.components[m].styleOverrides;v&&m.startsWith("Mui")&&b(v,m)})}return y.unstable_sxConfig={...ca,...u?.unstable_sxConfig},y.unstable_sx=function(b){return Wr({sx:b,theme:this})},y.toRuntimeSource=Xg,y}function Kd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const $R=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Kd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Zg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Qg(e){return e==="dark"?$R:[]}function VR(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,i=Mu(t);return{palette:i,opacity:{...Zg(i.mode),...n},overlays:o||Qg(i.mode),...r}}function jR(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const BR=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],WR=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let i=r;if(r==="class"&&(i=".%s"),r==="data"&&(i="[data-%s]"),r?.startsWith("data-")&&!r.includes("%s")&&(i=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return BR(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:a}}:i?{[i.replace("%s",t)]:a,[`${o}, ${i.replace("%s",t)}`]:n}:{[o]:{...n,...a}}}if(i&&i!=="media")return`${o}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(i)return i.replace("%s",String(t))}return o};function HR(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ue(e,t,n){!e[t]&&n&&(e[t]=n)}function Ri(e){return!e||!e.startsWith("hsl")?e:Lg(e)}function Ho(e,t){`${t}Channel`in e||(e[`${t}Channel`]=xi(Ri(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
122
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function zR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const vo=e=>{try{return e()}catch{}},YR=(e="mui")=>hR(e);function hd(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=VR({...t,palette:{mode:r,...t?.palette}});return}const{palette:i,...a}=Gd({...n,palette:{mode:r,...t?.palette}});return e[o]={...t,palette:i,opacity:{...Zg(r),...t?.opacity},overlays:t?.overlays||Qg(r)},a}function UR(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=jR,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...u}=e,f=Object.keys(n)[0],p=o||(n.light&&f!=="light"?"light":f),y=YR(i),{[p]:w,light:b,dark:m,...v}=n,D={...v};let k=w;if((p==="dark"&&!("dark"in n)||p==="light"&&!("light"in n))&&(k=!0),!k)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${p}\` option is either missing or invalid.`:Do(21,p));const x=hd(D,k,u,p);b&&!D.light&&hd(D,b,void 0,"light"),m&&!D.dark&&hd(D,m,void 0,"dark");let S={defaultColorScheme:p,...x,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:d,getCssVar:y,colorSchemes:D,font:{...xR(x.typography),...x.font},spacing:zR(u.spacing)};Object.keys(S.colorSchemes).forEach(z=>{const R=S.colorSchemes[z].palette,$=K=>{const G=K.split("-"),q=G[1],Y=G[2];return y(K,R[q][Y])};if(R.mode==="light"&&(ue(R.common,"background","#fff"),ue(R.common,"onBackground","#000")),R.mode==="dark"&&(ue(R.common,"background","#000"),ue(R.common,"onBackground","#fff")),HR(R,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),R.mode==="light"){ue(R.Alert,"errorColor",Pt(R.error.light,.6)),ue(R.Alert,"infoColor",Pt(R.info.light,.6)),ue(R.Alert,"successColor",Pt(R.success.light,.6)),ue(R.Alert,"warningColor",Pt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-main")),ue(R.Alert,"infoFilledBg",$("palette-info-main")),ue(R.Alert,"successFilledBg",$("palette-success-main")),ue(R.Alert,"warningFilledBg",$("palette-warning-main")),ue(R.Alert,"errorFilledColor",vo(()=>R.getContrastText(R.error.main))),ue(R.Alert,"infoFilledColor",vo(()=>R.getContrastText(R.info.main))),ue(R.Alert,"successFilledColor",vo(()=>R.getContrastText(R.success.main))),ue(R.Alert,"warningFilledColor",vo(()=>R.getContrastText(R.warning.main))),ue(R.Alert,"errorStandardBg",Dt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Dt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Dt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Dt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-100")),ue(R.Avatar,"defaultBg",$("palette-grey-400")),ue(R.Button,"inheritContainedBg",$("palette-grey-300")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-A100")),ue(R.Chip,"defaultBorder",$("palette-grey-400")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-700")),ue(R.Chip,"defaultIconColor",$("palette-grey-700")),ue(R.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ue(R.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ue(R.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ue(R.LinearProgress,"primaryBg",Dt(R.primary.main,.62)),ue(R.LinearProgress,"secondaryBg",Dt(R.secondary.main,.62)),ue(R.LinearProgress,"errorBg",Dt(R.error.main,.62)),ue(R.LinearProgress,"infoBg",Dt(R.info.main,.62)),ue(R.LinearProgress,"successBg",Dt(R.success.main,.62)),ue(R.LinearProgress,"warningBg",Dt(R.warning.main,.62)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),ue(R.Slider,"primaryTrack",Dt(R.primary.main,.62)),ue(R.Slider,"secondaryTrack",Dt(R.secondary.main,.62)),ue(R.Slider,"errorTrack",Dt(R.error.main,.62)),ue(R.Slider,"infoTrack",Dt(R.info.main,.62)),ue(R.Slider,"successTrack",Dt(R.success.main,.62)),ue(R.Slider,"warningTrack",Dt(R.warning.main,.62));const K=za(R.background.default,.8);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",vo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",za(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-400")),ue(R.StepContent,"border",$("palette-grey-400")),ue(R.Switch,"defaultColor",$("palette-common-white")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-100")),ue(R.Switch,"primaryDisabledColor",Dt(R.primary.main,.62)),ue(R.Switch,"secondaryDisabledColor",Dt(R.secondary.main,.62)),ue(R.Switch,"errorDisabledColor",Dt(R.error.main,.62)),ue(R.Switch,"infoDisabledColor",Dt(R.info.main,.62)),ue(R.Switch,"successDisabledColor",Dt(R.success.main,.62)),ue(R.Switch,"warningDisabledColor",Dt(R.warning.main,.62)),ue(R.TableCell,"border",Dt(Ha(R.divider,1),.88)),ue(R.Tooltip,"bg",Ha(R.grey[700],.92))}if(R.mode==="dark"){ue(R.Alert,"errorColor",Dt(R.error.light,.6)),ue(R.Alert,"infoColor",Dt(R.info.light,.6)),ue(R.Alert,"successColor",Dt(R.success.light,.6)),ue(R.Alert,"warningColor",Dt(R.warning.light,.6)),ue(R.Alert,"errorFilledBg",$("palette-error-dark")),ue(R.Alert,"infoFilledBg",$("palette-info-dark")),ue(R.Alert,"successFilledBg",$("palette-success-dark")),ue(R.Alert,"warningFilledBg",$("palette-warning-dark")),ue(R.Alert,"errorFilledColor",vo(()=>R.getContrastText(R.error.dark))),ue(R.Alert,"infoFilledColor",vo(()=>R.getContrastText(R.info.dark))),ue(R.Alert,"successFilledColor",vo(()=>R.getContrastText(R.success.dark))),ue(R.Alert,"warningFilledColor",vo(()=>R.getContrastText(R.warning.dark))),ue(R.Alert,"errorStandardBg",Pt(R.error.light,.9)),ue(R.Alert,"infoStandardBg",Pt(R.info.light,.9)),ue(R.Alert,"successStandardBg",Pt(R.success.light,.9)),ue(R.Alert,"warningStandardBg",Pt(R.warning.light,.9)),ue(R.Alert,"errorIconColor",$("palette-error-main")),ue(R.Alert,"infoIconColor",$("palette-info-main")),ue(R.Alert,"successIconColor",$("palette-success-main")),ue(R.Alert,"warningIconColor",$("palette-warning-main")),ue(R.AppBar,"defaultBg",$("palette-grey-900")),ue(R.AppBar,"darkBg",$("palette-background-paper")),ue(R.AppBar,"darkColor",$("palette-text-primary")),ue(R.Avatar,"defaultBg",$("palette-grey-600")),ue(R.Button,"inheritContainedBg",$("palette-grey-800")),ue(R.Button,"inheritContainedHoverBg",$("palette-grey-700")),ue(R.Chip,"defaultBorder",$("palette-grey-700")),ue(R.Chip,"defaultAvatarColor",$("palette-grey-300")),ue(R.Chip,"defaultIconColor",$("palette-grey-300")),ue(R.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ue(R.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ue(R.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ue(R.LinearProgress,"primaryBg",Pt(R.primary.main,.5)),ue(R.LinearProgress,"secondaryBg",Pt(R.secondary.main,.5)),ue(R.LinearProgress,"errorBg",Pt(R.error.main,.5)),ue(R.LinearProgress,"infoBg",Pt(R.info.main,.5)),ue(R.LinearProgress,"successBg",Pt(R.success.main,.5)),ue(R.LinearProgress,"warningBg",Pt(R.warning.main,.5)),ue(R.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),ue(R.Slider,"primaryTrack",Pt(R.primary.main,.5)),ue(R.Slider,"secondaryTrack",Pt(R.secondary.main,.5)),ue(R.Slider,"errorTrack",Pt(R.error.main,.5)),ue(R.Slider,"infoTrack",Pt(R.info.main,.5)),ue(R.Slider,"successTrack",Pt(R.success.main,.5)),ue(R.Slider,"warningTrack",Pt(R.warning.main,.5));const K=za(R.background.default,.98);ue(R.SnackbarContent,"bg",K),ue(R.SnackbarContent,"color",vo(()=>R.getContrastText(K))),ue(R.SpeedDialAction,"fabHoverBg",za(R.background.paper,.15)),ue(R.StepConnector,"border",$("palette-grey-600")),ue(R.StepContent,"border",$("palette-grey-600")),ue(R.Switch,"defaultColor",$("palette-grey-300")),ue(R.Switch,"defaultDisabledColor",$("palette-grey-600")),ue(R.Switch,"primaryDisabledColor",Pt(R.primary.main,.55)),ue(R.Switch,"secondaryDisabledColor",Pt(R.secondary.main,.55)),ue(R.Switch,"errorDisabledColor",Pt(R.error.main,.55)),ue(R.Switch,"infoDisabledColor",Pt(R.info.main,.55)),ue(R.Switch,"successDisabledColor",Pt(R.success.main,.55)),ue(R.Switch,"warningDisabledColor",Pt(R.warning.main,.55)),ue(R.TableCell,"border",Pt(Ha(R.divider,1),.68)),ue(R.Tooltip,"bg",Ha(R.grey[700],.92))}Ho(R.background,"default"),Ho(R.background,"paper"),Ho(R.common,"background"),Ho(R.common,"onBackground"),Ho(R,"divider"),Object.keys(R).forEach(K=>{const G=R[K];G&&typeof G=="object"&&(G.main&&ue(R[K],"mainChannel",xi(Ri(G.main))),G.light&&ue(R[K],"lightChannel",xi(Ri(G.light))),G.dark&&ue(R[K],"darkChannel",xi(Ri(G.dark))),G.contrastText&&ue(R[K],"contrastTextChannel",xi(Ri(G.contrastText))),K==="text"&&(Ho(R[K],"primary"),Ho(R[K],"secondary")),K==="action"&&(G.active&&Ho(R[K],"active"),G.selected&&Ho(R[K],"selected")))})}),S=t.reduce((z,R)=>Cn(z,R),S);const C={prefix:i,disableCssColorScheme:r,shouldSkipGeneratingVar:a,getSelector:WR(S)},{vars:O,generateThemeVars:I,generateStyleSheets:F}=mR(S,C);return S.vars=O,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([z,R])=>{S[z]=R}),S.generateThemeVars=I,S.generateStyleSheets=F,S.generateSpacing=function(){return xg(u.spacing,Eu(this))},S.getColorSchemeSelector=gR(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=a,S.unstable_sxConfig={...ca,...u?.unstable_sxConfig},S.unstable_sx=function(R){return Wr({sx:R,theme:this})},S.toRuntimeSource=Xg,S}function Dp(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Mu({...n===!0?{}:n.palette,mode:t})})}function Jg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:i=n?.mode,...a}=e,l=i||"light",d=r?.[l],u={...r,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Gd(e,...t);let f=n;"palette"in e||u[l]&&(u[l]!==!0?f=u[l].palette:l==="dark"&&(f={mode:"dark"}));const p=Gd({...e,palette:f},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Dp(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Dp(p,"light",u.light)),p}return!n&&!("light"in u)&&l==="light"&&(u.light=!0),UR({...a,colorSchemes:u,defaultColorScheme:l,...typeof o!="boolean"&&o},...t)}function qR(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function GR(e){return parseFloat(e)}const oc=Jg();function qr(){const e=Ql(oc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[ra]||e}function Nt({props:e,name:t}){return jx({props:e,name:t,defaultTheme:oc,themeId:ra})}function ey(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tn=e=>ey(e)&&e!=="classes",ie=Ax({themeId:ra,defaultTheme:oc,rootShouldForwardProp:Tn});function ty(e){return E.jsx(Tg,{...e,defaultTheme:oc,themeId:ra})}process.env.NODE_ENV!=="production"&&(ty.propTypes={styles:s.oneOfType([s.array,s.func,s.number,s.object,s.string,s.bool])});function KR(e){return function(n){return E.jsx(ty,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function XR(){return kg}const ot=uR;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Ge(e){return dR(e)}function ZR(e){return Me("MuiSvgIcon",e)}Pe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QR=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${we(t)}`,`fontSize${we(n)}`]};return Ie(r,ZR,o)},JR=ie("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${we(n.color)}`],t[`fontSize${we(n.fontSize)}`]]}})(ot(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),zi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiSvgIcon"}),{children:r,className:i,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:p,viewBox:y="0 0 24 24",...w}=o,b=T.isValidElement(r)&&r.type==="svg",m={...o,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:y,hasSvgAsChild:b},v={};f||(v.viewBox=y);const D=QR(m);return E.jsxs(JR,{as:l,className:Se(D.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n,...v,...w,...b&&r.props,ownerState:m,children:[b?r.props.children:r,p?E.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(zi.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,fontSize:s.oneOfType([s.oneOf(["inherit","large","medium","small"]),s.string]),htmlColor:s.string,inheritViewBox:s.bool,shapeRendering:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleAccess:s.string,viewBox:s.string});zi&&(zi.muiName="SvgIcon");function fn(e,t){function n(o,r){return E.jsx(zi,{"data-testid":`${t}Icon`,ref:r,...o,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=zi.muiName,T.memo(T.forwardRef(n))}var Ya={exports:{}},xt={};/**
|
|
123
123
|
* @license React
|
|
124
124
|
* react-is.production.min.js
|
|
125
125
|
*
|
|
@@ -210,20 +210,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
210
210
|
animation-delay: 200ms;
|
|
211
211
|
}
|
|
212
212
|
`,sy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:a,...l}=o,[d,u]=T.useState([]),f=T.useRef(0),p=T.useRef(null);T.useEffect(()=>{p.current&&(p.current(),p.current=null)},[d]);const y=T.useRef(!1),w=vs(),b=T.useRef(null),m=T.useRef(null),v=T.useCallback(S=>{const{pulsate:C,rippleX:O,rippleY:I,rippleSize:F,cb:z}=S;u(R=>[...R,E.jsx(RT,{classes:{ripple:Se(i.ripple,qn.ripple),rippleVisible:Se(i.rippleVisible,qn.rippleVisible),ripplePulsate:Se(i.ripplePulsate,qn.ripplePulsate),child:Se(i.child,qn.child),childLeaving:Se(i.childLeaving,qn.childLeaving),childPulsate:Se(i.childPulsate,qn.childPulsate)},timeout:Qd,pulsate:C,rippleX:O,rippleY:I,rippleSize:F},f.current)]),f.current+=1,p.current=z},[i]),D=T.useCallback((S={},C={},O=()=>{})=>{const{pulsate:I=!1,center:F=r||C.pulsate,fakeElement:z=!1}=C;if(S?.type==="mousedown"&&y.current){y.current=!1;return}S?.type==="touchstart"&&(y.current=!0);const R=z?null:m.current,$=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,G,q;if(F||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)K=Math.round($.width/2),G=Math.round($.height/2);else{const{clientX:Y,clientY:H}=S.touches&&S.touches.length>0?S.touches[0]:S;K=Math.round(Y-$.left),G=Math.round(H-$.top)}if(F)q=Math.sqrt((2*$.width**2+$.height**2)/3),q%2===0&&(q+=1);else{const Y=Math.max(Math.abs((R?R.clientWidth:0)-K),K)*2+2,H=Math.max(Math.abs((R?R.clientHeight:0)-G),G)*2+2;q=Math.sqrt(Y**2+H**2)}S?.touches?b.current===null&&(b.current=()=>{v({pulsate:I,rippleX:K,rippleY:G,rippleSize:q,cb:O})},w.start(wT,()=>{b.current&&(b.current(),b.current=null)})):v({pulsate:I,rippleX:K,rippleY:G,rippleSize:q,cb:O})},[r,v,w]),k=T.useCallback(()=>{D({},{pulsate:!0})},[D]),x=T.useCallback((S,C)=>{if(w.clear(),S?.type==="touchend"&&b.current){b.current(),b.current=null,w.start(0,()=>{x(S,C)});return}b.current=null,u(O=>O.length>0?O.slice(1):O),p.current=C},[w]);return T.useImperativeHandle(n,()=>({pulsate:k,start:D,stop:x}),[k,D,x]),E.jsx(xT,{className:Se(qn.root,i.root,a),ref:m,...l,children:E.jsx(da,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(sy.propTypes={center:s.bool,classes:s.object,className:s.string});function TT(e){return Me("MuiButtonBase",e)}const kT=Pe("MuiButtonBase",["root","disabled","focusVisible"]),ET=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,a=Ie({root:["root",t&&"disabled",n&&"focusVisible"]},TT,r);return n&&o&&(a.root+=` ${o}`),a},PT=ie("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kT.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),br=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:a,className:l,component:d="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:y=!1,focusVisibleClassName:w,LinkComponent:b="a",onBlur:m,onClick:v,onContextMenu:D,onDragLeave:k,onFocus:x,onFocusVisible:S,onKeyDown:C,onKeyUp:O,onMouseDown:I,onMouseLeave:F,onMouseUp:z,onTouchEnd:R,onTouchMove:$,onTouchStart:K,tabIndex:G=0,TouchRippleProps:q,touchRippleRef:Y,type:H,...ae}=o,A=T.useRef(null),M=vT(),L=ct(M.ref,Y),[B,ne]=T.useState(!1);u&&B&&ne(!1),T.useImperativeHandle(r,()=>({focusVisible:()=>{ne(!0),A.current.focus()}}),[]);const oe=M.shouldMount&&!f&&!u;T.useEffect(()=>{B&&y&&!f&&M.pulsate()},[f,y,B,M]);function se(ke,ut,Yt=p){return Te(rt=>(ut&&ut(rt),Yt||M[ke](rt),!0))}const j=se("start",I),ee=se("stop",D),J=se("stop",k),te=se("stop",z),ce=se("stop",ke=>{B&&ke.preventDefault(),F&&F(ke)}),le=se("start",K),he=se("stop",R),W=se("stop",$),re=se("stop",ke=>{Cl(ke.target)||ne(!1),m&&m(ke)},!1),Z=Te(ke=>{A.current||(A.current=ke.currentTarget),Cl(ke.target)&&(ne(!0),S&&S(ke)),x&&x(ke)}),fe=()=>{const ke=A.current;return d&&d!=="button"&&!(ke.tagName==="A"&&ke.href)},pe=Te(ke=>{y&&!ke.repeat&&B&&ke.key===" "&&M.stop(ke,()=>{M.start(ke)}),ke.target===ke.currentTarget&&fe()&&ke.key===" "&&ke.preventDefault(),C&&C(ke),ke.target===ke.currentTarget&&fe()&&ke.key==="Enter"&&!u&&(ke.preventDefault(),v&&v(ke))}),be=Te(ke=>{y&&ke.key===" "&&B&&!ke.defaultPrevented&&M.stop(ke,()=>{M.pulsate(ke)}),O&&O(ke),v&&ke.target===ke.currentTarget&&fe()&&ke.key===" "&&!ke.defaultPrevented&&v(ke)});let ge=d;ge==="button"&&(ae.href||ae.to)&&(ge=b);const Re={};ge==="button"?(Re.type=H===void 0?"button":H,Re.disabled=u):(!ae.href&&!ae.to&&(Re.role="button"),u&&(Re["aria-disabled"]=u));const Ve=ct(n,A),Ne={...o,centerRipple:i,component:d,disabled:u,disableRipple:f,disableTouchRipple:p,focusRipple:y,tabIndex:G,focusVisible:B},Je=ET(Ne);return E.jsxs(PT,{as:ge,className:Se(Je.root,l),ownerState:Ne,onBlur:re,onClick:v,onContextMenu:ee,onFocus:Z,onKeyDown:pe,onKeyUp:be,onMouseDown:j,onMouseLeave:ce,onMouseUp:te,onDragLeave:J,onTouchEnd:he,onTouchMove:W,onTouchStart:le,ref:Ve,tabIndex:u?-1:G,type:H,...Re,...ae,children:[a,oe?E.jsx(sy,{ref:L,center:i,...q}):null]})});process.env.NODE_ENV!=="production"&&(br.propTypes={action:zt,centerRipple:s.bool,children:s.node,classes:s.object,className:s.string,component:ec,disabled:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,href:s.any,LinkComponent:s.elementType,onBlur:s.func,onClick:s.func,onContextMenu:s.func,onDragLeave:s.func,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onKeyUp:s.func,onMouseDown:s.func,onMouseLeave:s.func,onMouseUp:s.func,onTouchEnd:s.func,onTouchMove:s.func,onTouchStart:s.func,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string])});function DT(e){return typeof e.main=="string"}function OT(e,t=[]){if(!DT(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function gn(e=[]){return([,t])=>t&&OT(t,e)}function MT(e){return Me("MuiAlert",e)}const Fp=Pe("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function IT(e){return Me("MuiIconButton",e)}const NT=Pe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),AT=e=>{const{classes:t,disabled:n,color:o,edge:r,size:i}=e,a={root:["root",n&&"disabled",o!=="default"&&`color${we(o)}`,r&&`edge${we(r)}`,`size${we(i)}`]};return Ie(a,IT,t)},FT=ie(br,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${we(n.color)}`],n.edge&&t[`edge${we(n.edge)}`],t[`size${we(n.size)}`]]}})(ot(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ot(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${NT.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),Us=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiIconButton"}),{edge:r=!1,children:i,className:a,color:l="default",disabled:d=!1,disableFocusRipple:u=!1,size:f="medium",...p}=o,y={...o,edge:r,color:l,disabled:d,disableFocusRipple:u,size:f},w=AT(y);return E.jsx(FT,{className:Se(w.root,a),centerRipple:!0,focusRipple:!u,disabled:d,ref:n,...p,ownerState:y,children:i})});process.env.NODE_ENV!=="production"&&(Us.propTypes={children:Cr(s.node,e=>T.Children.toArray(e.children).some(n=>T.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
213
|
-
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const LT=fn(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),$T=fn(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),VT=fn(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),jT=fn(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),BT=fn(E.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"),WT=e=>{const{variant:t,color:n,severity:o,classes:r}=e,i={root:["root",`color${we(n||o)}`,`${t}${we(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,MT,r)},HT=ie(Ys,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color||n.severity)}`]]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?Wi:Hi,n=e.palette.mode==="light"?Hi:Wi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Fp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gn(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Fp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gn(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),zT=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),YT=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Lp=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),$p={success:E.jsx(LT,{fontSize:"inherit"}),warning:E.jsx($T,{fontSize:"inherit"}),error:E.jsx(VT,{fontSize:"inherit"}),info:E.jsx(jT,{fontSize:"inherit"})},iy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:l="Close",color:d,components:u={},componentsProps:f={},icon:p,iconMapping:y=$p,onClose:w,role:b="alert",severity:m="success",slotProps:v={},slots:D={},variant:k="standard",...x}=o,S={...o,color:d,severity:m,variant:k,colorSeverity:d||m},C=WT(S),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...D},slotProps:{...f,...v}},[I,F]=Dn("closeButton",{elementType:Us,externalForwardedProps:O,ownerState:S}),[z,R]=Dn("closeIcon",{elementType:BT,externalForwardedProps:O,ownerState:S});return E.jsxs(HT,{role:b,elevation:0,ownerState:S,className:Se(C.root,a),ref:n,...x,children:[p!==!1?E.jsx(zT,{ownerState:S,className:C.icon,children:p||y[m]||$p[m]}):null,E.jsx(YT,{ownerState:S,className:C.message,children:i}),r!=null?E.jsx(Lp,{ownerState:S,className:C.action,children:r}):null,r==null&&w?E.jsx(Lp,{ownerState:S,className:C.action,children:E.jsx(I,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...F,children:E.jsx(z,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(iy.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),slotProps:s.shape({closeButton:s.oneOfType([s.func,s.object]),closeIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({closeButton:s.elementType,closeIcon:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function UT(e){return Me("MuiTypography",e)}const Vp=Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),qT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GT=XR(),KT=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${we(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ie(l,UT,a)},XT=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${we(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ot(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${we(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),jp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bn=T.forwardRef(function(t,n){const{color:o,...r}=Ge({props:t,name:"MuiTypography"}),i=!qT[o],a=GT({...r,...i&&{color:o}}),{align:l="inherit",className:d,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:w="body1",variantMapping:b=jp,...m}=a,v={...a,align:l,color:o,className:d,component:u,gutterBottom:f,noWrap:p,paragraph:y,variant:w,variantMapping:b},D=u||(y?"p":b[w]||jp[w])||"span",k=KT(v);return E.jsx(XT,{as:D,ref:n,className:Se(k.root,d),...m,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(bn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var On="top",Zn="bottom",Qn="right",Mn="left",Lu="auto",ua=[On,Zn,Qn,Mn],Is="start",Yi="end",ZT="clippingParents",ay="viewport",ii="popper",QT="reference",Bp=ua.reduce(function(e,t){return e.concat([t+"-"+Is,t+"-"+Yi])},[]),ly=[].concat(ua,[Lu]).reduce(function(e,t){return e.concat([t,t+"-"+Is,t+"-"+Yi])},[]),JT="beforeRead",ek="read",tk="afterRead",nk="beforeMain",ok="main",rk="afterMain",sk="beforeWrite",ik="write",ak="afterWrite",lk=[JT,ek,tk,nk,ok,rk,sk,ik,ak];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $u(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ck(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Xn(i)||!Oo(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function dk(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(d,u){return d[u]="",d},{});!Xn(r)||!Oo(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const uk={name:"applyStyles",enabled:!0,phase:"write",fn:ck,effect:dk,requires:["computeStyles"]};function Po(e){return e.split("-")[0]}var Vr=Math.max,Rl=Math.min,Ns=Math.round;function Jd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cy(){return!/^((?!chrome|android).)*safari/i.test(Jd())}function As(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Xn(e)&&(r=e.offsetWidth>0&&Ns(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ns(o.height)/e.offsetHeight||1);var a=Hr(e)?jn(e):window,l=a.visualViewport,d=!cy()&&n,u=(o.left+(d&&l?l.offsetLeft:0))/r,f=(o.top+(d&&l?l.offsetTop:0))/i,p=o.width/r,y=o.height/i;return{width:p,height:y,top:f,right:u+p,bottom:f+y,left:u,x:u,y:f}}function Vu(e){var t=As(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function dy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function tr(e){return jn(e).getComputedStyle(e)}function hk(e){return["table","td","th"].indexOf(Oo(e))>=0}function Sr(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||($u(e)?e.host:null)||Sr(e)}function Wp(e){return!Xn(e)||tr(e).position==="fixed"?null:e.offsetParent}function fk(e){var t=/firefox/i.test(Jd()),n=/Trident/i.test(Jd());if(n&&Xn(e)){var o=tr(e);if(o.position==="fixed")return null}var r=rc(e);for($u(r)&&(r=r.host);Xn(r)&&["html","body"].indexOf(Oo(r))<0;){var i=tr(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ha(e){for(var t=jn(e),n=Wp(e);n&&hk(n)&&tr(n).position==="static";)n=Wp(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&tr(n).position==="static")?t:n||fk(e)||t}function ju(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Di(e,t,n){return Vr(e,Rl(t,n))}function pk(e,t,n){var o=Di(e,t,n);return o>n?n:o}function uy(){return{top:0,right:0,bottom:0,left:0}}function hy(e){return Object.assign({},uy(),e)}function fy(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var mk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hy(typeof t!="number"?t:fy(t,ua))};function gk(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Po(n.placement),d=ju(l),u=[Mn,Qn].indexOf(l)>=0,f=u?"height":"width";if(!(!i||!a)){var p=mk(r.padding,n),y=Vu(i),w=d==="y"?On:Mn,b=d==="y"?Zn:Qn,m=n.rects.reference[f]+n.rects.reference[d]-a[d]-n.rects.popper[f],v=a[d]-n.rects.reference[d],D=ha(i),k=D?d==="y"?D.clientHeight||0:D.clientWidth||0:0,x=m/2-v/2,S=p[w],C=k-y[f]-p[b],O=k/2-y[f]/2+x,I=Di(S,O,C),F=d;n.modifiersData[o]=(t={},t[F]=I,t.centerOffset=I-O,t)}}function yk(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||dy(t.elements.popper,r)&&(t.elements.arrow=r))}const vk={name:"arrow",enabled:!0,phase:"main",fn:gk,effect:yk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fs(e){return e.split("-")[1]}var bk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wk(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Ns(n*r)/r||0,y:Ns(o*r)/r||0}}function Hp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,w=y===void 0?0:y,b=a.y,m=b===void 0?0:b,v=typeof f=="function"?f({x:w,y:m}):{x:w,y:m};w=v.x,m=v.y;var D=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),x=Mn,S=On,C=window;if(u){var O=ha(n),I="clientHeight",F="clientWidth";if(O===jn(n)&&(O=Sr(n),tr(O).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),O=O,r===On||(r===Mn||r===Qn)&&i===Yi){S=Zn;var z=p&&O===C&&C.visualViewport?C.visualViewport.height:O[I];m-=z-o.height,m*=d?1:-1}if(r===Mn||(r===On||r===Zn)&&i===Yi){x=Qn;var R=p&&O===C&&C.visualViewport?C.visualViewport.width:O[F];w-=R-o.width,w*=d?1:-1}}var $=Object.assign({position:l},u&&bk),K=f===!0?wk({x:w,y:m},jn(n)):{x:w,y:m};if(w=K.x,m=K.y,d){var G;return Object.assign({},$,(G={},G[S]=k?"0":"",G[x]=D?"0":"",G.transform=(C.devicePixelRatio||1)<=1?"translate("+w+"px, "+m+"px)":"translate3d("+w+"px, "+m+"px, 0)",G))}return Object.assign({},$,(t={},t[S]=k?m+"px":"",t[x]=D?w+"px":"",t.transform="",t))}function Ck(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:Po(t.placement),variation:Fs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Sk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ck,data:{}};var Ua={passive:!0};function _k(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,d=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,Ua)}),l&&d.addEventListener("resize",n.update,Ua),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Ua)}),l&&d.removeEventListener("resize",n.update,Ua)}}const xk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_k,data:{}};var Rk={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return Rk[t]})}var Tk={start:"end",end:"start"};function zp(e){return e.replace(/start|end/g,function(t){return Tk[t]})}function Bu(e){var t=jn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Wu(e){return As(Sr(e)).left+Bu(e).scrollLeft}function kk(e,t){var n=jn(e),o=Sr(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,d=0;if(r){i=r.width,a=r.height;var u=cy();(u||!u&&t==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:a,x:l+Wu(e),y:d}}function Ek(e){var t,n=Sr(e),o=Bu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Vr(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vr(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Wu(e),d=-o.scrollTop;return tr(r||n).direction==="rtl"&&(l+=Vr(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function Hu(e){var t=tr(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function py(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:Xn(e)&&Hu(e)?e:py(rc(e))}function Oi(e,t){var n;t===void 0&&(t=[]);var o=py(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=jn(o),a=r?[i].concat(i.visualViewport||[],Hu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(Oi(rc(a)))}function eu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pk(e,t){var n=As(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Yp(e,t,n){return t===ay?eu(kk(e,n)):Hr(t)?Pk(t,n):eu(Ek(Sr(e)))}function Dk(e){var t=Oi(rc(e)),n=["absolute","fixed"].indexOf(tr(e).position)>=0,o=n&&Xn(e)?ha(e):e;return Hr(o)?t.filter(function(r){return Hr(r)&&dy(r,o)&&Oo(r)!=="body"}):[]}function Ok(e,t,n,o){var r=t==="clippingParents"?Dk(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(d,u){var f=Yp(e,u,o);return d.top=Vr(f.top,d.top),d.right=Rl(f.right,d.right),d.bottom=Rl(f.bottom,d.bottom),d.left=Vr(f.left,d.left),d},Yp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function my(e){var t=e.reference,n=e.element,o=e.placement,r=o?Po(o):null,i=o?Fs(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(r){case On:d={x:a,y:t.y-n.height};break;case Zn:d={x:a,y:t.y+t.height};break;case Qn:d={x:t.x+t.width,y:l};break;case Mn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=r?ju(r):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Is:d[u]=d[u]-(t[f]/2-n[f]/2);break;case Yi:d[u]=d[u]+(t[f]/2-n[f]/2);break}}return d}function Ui(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,d=l===void 0?ZT:l,u=n.rootBoundary,f=u===void 0?ay:u,p=n.elementContext,y=p===void 0?ii:p,w=n.altBoundary,b=w===void 0?!1:w,m=n.padding,v=m===void 0?0:m,D=hy(typeof v!="number"?v:fy(v,ua)),k=y===ii?QT:ii,x=e.rects.popper,S=e.elements[b?k:y],C=Ok(Hr(S)?S:S.contextElement||Sr(e.elements.popper),d,f,a),O=As(e.elements.reference),I=my({reference:O,element:x,placement:r}),F=eu(Object.assign({},x,I)),z=y===ii?F:O,R={top:C.top-z.top+D.top,bottom:z.bottom-C.bottom+D.bottom,left:C.left-z.left+D.left,right:z.right-C.right+D.right},$=e.modifiersData.offset;if(y===ii&&$){var K=$[r];Object.keys(R).forEach(function(G){var q=[Qn,Zn].indexOf(G)>=0?1:-1,Y=[On,Zn].indexOf(G)>=0?"y":"x";R[G]+=K[Y]*q})}return R}function Mk(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?ly:d,f=Fs(o),p=f?l?Bp:Bp.filter(function(b){return Fs(b)===f}):ua,y=p.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=p);var w=y.reduce(function(b,m){return b[m]=Ui(e,{placement:m,boundary:r,rootBoundary:i,padding:a})[Po(m)],b},{});return Object.keys(w).sort(function(b,m){return w[b]-w[m]})}function Ik(e){if(Po(e)===Lu)return[];var t=dl(e);return[zp(e),t,zp(t)]}function Nk(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,b=w===void 0?!0:w,m=n.allowedAutoPlacements,v=t.options.placement,D=Po(v),k=D===v,x=d||(k||!b?[dl(v)]:Ik(v)),S=[v].concat(x).reduce(function(se,j){return se.concat(Po(j)===Lu?Mk(t,{placement:j,boundary:f,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:m}):j)},[]),C=t.rects.reference,O=t.rects.popper,I=new Map,F=!0,z=S[0],R=0;R<S.length;R++){var $=S[R],K=Po($),G=Fs($)===Is,q=[On,Zn].indexOf(K)>=0,Y=q?"width":"height",H=Ui(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:u}),ae=q?G?Qn:Mn:G?Zn:On;C[Y]>O[Y]&&(ae=dl(ae));var A=dl(ae),M=[];if(i&&M.push(H[K]<=0),l&&M.push(H[ae]<=0,H[A]<=0),M.every(function(se){return se})){z=$,F=!1;break}I.set($,M)}if(F)for(var L=b?3:1,B=function(j){var ee=S.find(function(J){var te=I.get(J);if(te)return te.slice(0,j).every(function(ce){return ce})});if(ee)return z=ee,"break"},ne=L;ne>0;ne--){var oe=B(ne);if(oe==="break")break}t.placement!==z&&(t.modifiersData[o]._skip=!0,t.placement=z,t.reset=!0)}}const Ak={name:"flip",enabled:!0,phase:"main",fn:Nk,requiresIfExists:["offset"],data:{_skip:!1}};function Up(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qp(e){return[On,Qn,Zn,Mn].some(function(t){return e[t]>=0})}function Fk(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ui(t,{elementContext:"reference"}),l=Ui(t,{altBoundary:!0}),d=Up(a,o),u=Up(l,r,i),f=qp(d),p=qp(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const Lk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fk};function $k(e,t,n){var o=Po(e),r=[Mn,On].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[Mn,Qn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Vk(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ly.reduce(function(f,p){return f[p]=$k(p,t.rects,i),f},{}),l=a[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const jk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vk};function Bk(e){var t=e.state,n=e.name;t.modifiersData[n]=my({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wk={name:"popperOffsets",enabled:!0,phase:"read",fn:Bk,data:{}};function Hk(e){return e==="x"?"y":"x"}function zk(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,y=n.tether,w=y===void 0?!0:y,b=n.tetherOffset,m=b===void 0?0:b,v=Ui(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),D=Po(t.placement),k=Fs(t.placement),x=!k,S=ju(D),C=Hk(S),O=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,z=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(O){if(i){var G,q=S==="y"?On:Mn,Y=S==="y"?Zn:Qn,H=S==="y"?"height":"width",ae=O[S],A=ae+v[q],M=ae-v[Y],L=w?-F[H]/2:0,B=k===Is?I[H]:F[H],ne=k===Is?-F[H]:-I[H],oe=t.elements.arrow,se=w&&oe?Vu(oe):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uy(),ee=j[q],J=j[Y],te=Di(0,I[H],se[H]),ce=x?I[H]/2-L-te-ee-R.mainAxis:B-te-ee-R.mainAxis,le=x?-I[H]/2+L+te+J+R.mainAxis:ne+te+J+R.mainAxis,he=t.elements.arrow&&ha(t.elements.arrow),W=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,re=(G=$?.[S])!=null?G:0,Z=ae+ce-re-W,fe=ae+le-re,pe=Di(w?Rl(A,Z):A,ae,w?Vr(M,fe):M);O[S]=pe,K[S]=pe-ae}if(l){var be,ge=S==="x"?On:Mn,Re=S==="x"?Zn:Qn,Ve=O[C],Ne=C==="y"?"height":"width",Je=Ve+v[ge],ke=Ve-v[Re],ut=[On,Mn].indexOf(D)!==-1,Yt=(be=$?.[C])!=null?be:0,rt=ut?Je:Ve-I[Ne]-F[Ne]-Yt+R.altAxis,Ot=ut?Ve+I[Ne]+F[Ne]-Yt-R.altAxis:ke,Ut=w&&ut?pk(rt,Ve,Ot):Di(w?rt:Je,Ve,w?Ot:ke);O[C]=Ut,K[C]=Ut-Ve}t.modifiersData[o]=K}}const Yk={name:"preventOverflow",enabled:!0,phase:"main",fn:zk,requiresIfExists:["offset"]};function Uk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qk(e){return e===jn(e)||!Xn(e)?Bu(e):Uk(e)}function Gk(e){var t=e.getBoundingClientRect(),n=Ns(t.width)/e.offsetWidth||1,o=Ns(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Kk(e,t,n){n===void 0&&(n=!1);var o=Xn(t),r=Xn(t)&&Gk(t),i=Sr(t),a=As(e,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Oo(t)!=="body"||Hu(i))&&(l=qk(t)),Xn(t)?(d=As(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=Wu(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function Xk(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&r(d)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Zk(e){var t=Xk(e);return lk.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Qk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jk(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function eE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Gp:r;return function(l,d,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gp,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},p=[],y=!1,w={state:f,setOptions:function(D){var k=typeof D=="function"?D(f.options):D;m(),f.options=Object.assign({},i,f.options,k),f.scrollParents={reference:Hr(l)?Oi(l):l.contextElement?Oi(l.contextElement):[],popper:Oi(d)};var x=Zk(Jk([].concat(o,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),b(),w.update()},forceUpdate:function(){if(!y){var D=f.elements,k=D.reference,x=D.popper;if(Kp(k,x)){f.rects={reference:Kk(k,ha(x),f.options.strategy==="fixed"),popper:Vu(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var C=f.orderedModifiers[S],O=C.fn,I=C.options,F=I===void 0?{}:I,z=C.name;typeof O=="function"&&(f=O({state:f,options:F,name:z,instance:w})||f)}}}},update:Qk(function(){return new Promise(function(v){w.forceUpdate(),v(f)})}),destroy:function(){m(),y=!0}};if(!Kp(l,d))return w;w.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var D=v.name,k=v.options,x=k===void 0?{}:k,S=v.effect;if(typeof S=="function"){var C=S({state:f,name:D,instance:w,options:x}),O=function(){};p.push(C||O)}})}function m(){p.forEach(function(v){return v()}),p=[]}return w}}var tE=[xk,Wk,Sk,uk,jk,Ak,Yk,vk,Lk],nE=eE({defaultModifiers:tE});function oE(e){return typeof e=="function"?e():e}const qi=T.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=T.useState(null),d=ct(T.isValidElement(o)?zs(o):null,n);if(ln(()=>{i||l(oE(r)||document.body)},[r,i]),ln(()=>{if(a&&!i)return vp(n,a),()=>{vp(n,null)}},[n,a,i]),i){if(T.isValidElement(o)){const u={ref:d};return T.cloneElement(o,u)}return E.jsx(T.Fragment,{children:o})}return E.jsx(T.Fragment,{children:a&&d0.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:s.node,container:s.oneOfType([Jo,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(qi.propTypes=Vg(qi.propTypes));function rE(e){return Me("MuiPopper",e)}Pe("MuiPopper",["root"]);function sE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Tl(e){return typeof e=="function"?e():e}function sc(e){return e.nodeType!==void 0}function iE(e){return!sc(e)}const aE=e=>{const{classes:t}=e;return Ie({root:["root"]},rE,t)},lE={},cE=T.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:d,placement:u,popperOptions:f,popperRef:p,slotProps:y={},slots:w={},TransitionProps:b,ownerState:m,...v}=t,D=T.useRef(null),k=ct(D,n),x=T.useRef(null),S=ct(x,p),C=T.useRef(S);ln(()=>{C.current=S},[S]),T.useImperativeHandle(p,()=>x.current,[]);const O=sE(u,i),[I,F]=T.useState(O),[z,R]=T.useState(Tl(o));T.useEffect(()=>{x.current&&x.current.forceUpdate()}),T.useEffect(()=>{o&&R(Tl(o))},[o]),ln(()=>{if(!z||!d)return;const Y=A=>{F(A.placement)};if(process.env.NODE_ENV!=="production"&&z&&sc(z)&&z.nodeType===1){const A=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&A.top===0&&A.left===0&&A.right===0&&A.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
214
|
-
`))}let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{Y(A)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const ae=nE(z,D.current,{placement:O,...f,modifiers:H});return C.current(ae),()=>{ae.destroy(),C.current(null)}},[z,a,l,d,f,O]);const $={placement:I};b!==null&&($.TransitionProps=b);const K=aE(t),G=w.root??"div",q=pt({elementType:G,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:K.root});return E.jsx(G,{...q,children:typeof r=="function"?r($):r})}),gy=T.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:y=lE,popperRef:w,style:b,transition:m=!1,slotProps:v={},slots:D={},...k}=t,[x,S]=T.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!d&&!f&&(!m||x))return null;let I;if(i)I=i;else if(o){const R=Tl(o);I=R&&sc(R)?Sn(R).body:Sn(null).body}const F=!f&&d&&(!m||x)?"none":void 0,z=m?{in:f,onEnter:C,onExited:O}:void 0;return E.jsx(qi,{disablePortal:l,container:I,children:E.jsx(cE,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!x:f,placement:p,popperOptions:y,popperRef:w,slotProps:v,slots:D,...k,style:{position:"fixed",top:0,left:0,display:F,...b},TransitionProps:z,children:r})})});process.env.NODE_ENV!=="production"&&(gy.propTypes={anchorEl:Cr(s.oneOfType([
|
|
213
|
+
`)):null),classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),s.string]),disabled:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,edge:s.oneOf(["end","start",!1]),size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const LT=fn(E.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),$T=fn(E.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),VT=fn(E.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),jT=fn(E.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),BT=fn(E.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"),WT=e=>{const{variant:t,color:n,severity:o,classes:r}=e,i={root:["root",`color${we(n||o)}`,`${t}${we(n||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ie(i,MT,r)},HT=ie(Ys,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color||n.severity)}`]]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?Wi:Hi,n=e.palette.mode==="light"?Hi:Wi;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(gn(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:n(e.palette[o].light,.9),[`& .${Fp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gn(["light"])).map(([o])=>({props:{colorSeverity:o,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${o}Color`]:t(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${Fp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}}})),...Object.entries(e.palette).filter(gn(["dark"])).map(([o])=>({props:{colorSeverity:o,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}}}))]}})),zT=ie("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),YT=ie("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Lp=ie("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),$p={success:E.jsx(LT,{fontSize:"inherit"}),warning:E.jsx($T,{fontSize:"inherit"}),error:E.jsx(VT,{fontSize:"inherit"}),info:E.jsx(jT,{fontSize:"inherit"})},iy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiAlert"}),{action:r,children:i,className:a,closeText:l="Close",color:d,components:u={},componentsProps:f={},icon:p,iconMapping:y=$p,onClose:w,role:b="alert",severity:m="success",slotProps:v={},slots:D={},variant:k="standard",...x}=o,S={...o,color:d,severity:m,variant:k,colorSeverity:d||m},C=WT(S),O={slots:{closeButton:u.CloseButton,closeIcon:u.CloseIcon,...D},slotProps:{...f,...v}},[I,F]=Dn("closeButton",{elementType:Us,externalForwardedProps:O,ownerState:S}),[z,R]=Dn("closeIcon",{elementType:BT,externalForwardedProps:O,ownerState:S});return E.jsxs(HT,{role:b,elevation:0,ownerState:S,className:Se(C.root,a),ref:n,...x,children:[p!==!1?E.jsx(zT,{ownerState:S,className:C.icon,children:p||y[m]||$p[m]}):null,E.jsx(YT,{ownerState:S,className:C.message,children:i}),r!=null?E.jsx(Lp,{ownerState:S,className:C.action,children:r}):null,r==null&&w?E.jsx(Lp,{ownerState:S,className:C.action,children:E.jsx(I,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...F,children:E.jsx(z,{fontSize:"small",...R})})}):null]})});process.env.NODE_ENV!=="production"&&(iy.propTypes={action:s.node,children:s.node,classes:s.object,className:s.string,closeText:s.string,color:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),components:s.shape({CloseButton:s.elementType,CloseIcon:s.elementType}),componentsProps:s.shape({closeButton:s.object,closeIcon:s.object}),icon:s.node,iconMapping:s.shape({error:s.node,info:s.node,success:s.node,warning:s.node}),onClose:s.func,role:s.string,severity:s.oneOfType([s.oneOf(["error","info","success","warning"]),s.string]),slotProps:s.shape({closeButton:s.oneOfType([s.func,s.object]),closeIcon:s.oneOfType([s.func,s.object])}),slots:s.shape({closeButton:s.elementType,closeIcon:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function UT(e){return Me("MuiTypography",e)}const Vp=Pe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),qT={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GT=XR(),KT=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${we(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return Ie(l,UT,a)},XT=ie("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${we(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ot(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${we(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),jp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bn=T.forwardRef(function(t,n){const{color:o,...r}=Ge({props:t,name:"MuiTypography"}),i=!qT[o],a=GT({...r,...i&&{color:o}}),{align:l="inherit",className:d,component:u,gutterBottom:f=!1,noWrap:p=!1,paragraph:y=!1,variant:w="body1",variantMapping:b=jp,...m}=a,v={...a,align:l,color:o,className:d,component:u,gutterBottom:f,noWrap:p,paragraph:y,variant:w,variantMapping:b},D=u||(y?"p":b[w]||jp[w])||"span",k=KT(v);return E.jsx(XT,{as:D,ref:n,className:Se(k.root,d),...m,ownerState:v,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...m.style}})});process.env.NODE_ENV!=="production"&&(bn.propTypes={align:s.oneOf(["center","inherit","justify","left","right"]),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),s.string]),component:s.elementType,gutterBottom:s.bool,noWrap:s.bool,paragraph:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),s.string]),variantMapping:s.object});var On="top",Zn="bottom",Qn="right",Mn="left",Lu="auto",ua=[On,Zn,Qn,Mn],Is="start",Yi="end",ZT="clippingParents",ay="viewport",ii="popper",QT="reference",Bp=ua.reduce(function(e,t){return e.concat([t+"-"+Is,t+"-"+Yi])},[]),ly=[].concat(ua,[Lu]).reduce(function(e,t){return e.concat([t,t+"-"+Is,t+"-"+Yi])},[]),JT="beforeRead",ek="read",tk="afterRead",nk="beforeMain",ok="main",rk="afterMain",sk="beforeWrite",ik="write",ak="afterWrite",lk=[JT,ek,tk,nk,ok,rk,sk,ik,ak];function Oo(e){return e?(e.nodeName||"").toLowerCase():null}function jn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Hr(e){var t=jn(e).Element;return e instanceof t||e instanceof Element}function Xn(e){var t=jn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $u(e){if(typeof ShadowRoot>"u")return!1;var t=jn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ck(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!Xn(i)||!Oo(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(a){var l=r[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function dk(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},a=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=a.reduce(function(d,u){return d[u]="",d},{});!Xn(r)||!Oo(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const uk={name:"applyStyles",enabled:!0,phase:"write",fn:ck,effect:dk,requires:["computeStyles"]};function Po(e){return e.split("-")[0]}var Vr=Math.max,Rl=Math.min,Ns=Math.round;function Jd(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cy(){return!/^((?!chrome|android).)*safari/i.test(Jd())}function As(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&Xn(e)&&(r=e.offsetWidth>0&&Ns(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ns(o.height)/e.offsetHeight||1);var a=Hr(e)?jn(e):window,l=a.visualViewport,d=!cy()&&n,u=(o.left+(d&&l?l.offsetLeft:0))/r,f=(o.top+(d&&l?l.offsetTop:0))/i,p=o.width/r,y=o.height/i;return{width:p,height:y,top:f,right:u+p,bottom:f+y,left:u,x:u,y:f}}function Vu(e){var t=As(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function dy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$u(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function nr(e){return jn(e).getComputedStyle(e)}function hk(e){return["table","td","th"].indexOf(Oo(e))>=0}function Sr(e){return((Hr(e)?e.ownerDocument:e.document)||window.document).documentElement}function rc(e){return Oo(e)==="html"?e:e.assignedSlot||e.parentNode||($u(e)?e.host:null)||Sr(e)}function Wp(e){return!Xn(e)||nr(e).position==="fixed"?null:e.offsetParent}function fk(e){var t=/firefox/i.test(Jd()),n=/Trident/i.test(Jd());if(n&&Xn(e)){var o=nr(e);if(o.position==="fixed")return null}var r=rc(e);for($u(r)&&(r=r.host);Xn(r)&&["html","body"].indexOf(Oo(r))<0;){var i=nr(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function ha(e){for(var t=jn(e),n=Wp(e);n&&hk(n)&&nr(n).position==="static";)n=Wp(n);return n&&(Oo(n)==="html"||Oo(n)==="body"&&nr(n).position==="static")?t:n||fk(e)||t}function ju(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Di(e,t,n){return Vr(e,Rl(t,n))}function pk(e,t,n){var o=Di(e,t,n);return o>n?n:o}function uy(){return{top:0,right:0,bottom:0,left:0}}function hy(e){return Object.assign({},uy(),e)}function fy(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var mk=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,hy(typeof t!="number"?t:fy(t,ua))};function gk(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Po(n.placement),d=ju(l),u=[Mn,Qn].indexOf(l)>=0,f=u?"height":"width";if(!(!i||!a)){var p=mk(r.padding,n),y=Vu(i),w=d==="y"?On:Mn,b=d==="y"?Zn:Qn,m=n.rects.reference[f]+n.rects.reference[d]-a[d]-n.rects.popper[f],v=a[d]-n.rects.reference[d],D=ha(i),k=D?d==="y"?D.clientHeight||0:D.clientWidth||0:0,x=m/2-v/2,S=p[w],C=k-y[f]-p[b],O=k/2-y[f]/2+x,I=Di(S,O,C),F=d;n.modifiersData[o]=(t={},t[F]=I,t.centerOffset=I-O,t)}}function yk(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||dy(t.elements.popper,r)&&(t.elements.arrow=r))}const vk={name:"arrow",enabled:!0,phase:"main",fn:gk,effect:yk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fs(e){return e.split("-")[1]}var bk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wk(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Ns(n*r)/r||0,y:Ns(o*r)/r||0}}function Hp(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,p=e.isFixed,y=a.x,w=y===void 0?0:y,b=a.y,m=b===void 0?0:b,v=typeof f=="function"?f({x:w,y:m}):{x:w,y:m};w=v.x,m=v.y;var D=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),x=Mn,S=On,C=window;if(u){var O=ha(n),I="clientHeight",F="clientWidth";if(O===jn(n)&&(O=Sr(n),nr(O).position!=="static"&&l==="absolute"&&(I="scrollHeight",F="scrollWidth")),O=O,r===On||(r===Mn||r===Qn)&&i===Yi){S=Zn;var z=p&&O===C&&C.visualViewport?C.visualViewport.height:O[I];m-=z-o.height,m*=d?1:-1}if(r===Mn||(r===On||r===Zn)&&i===Yi){x=Qn;var R=p&&O===C&&C.visualViewport?C.visualViewport.width:O[F];w-=R-o.width,w*=d?1:-1}}var $=Object.assign({position:l},u&&bk),K=f===!0?wk({x:w,y:m},jn(n)):{x:w,y:m};if(w=K.x,m=K.y,d){var G;return Object.assign({},$,(G={},G[S]=k?"0":"",G[x]=D?"0":"",G.transform=(C.devicePixelRatio||1)<=1?"translate("+w+"px, "+m+"px)":"translate3d("+w+"px, "+m+"px, 0)",G))}return Object.assign({},$,(t={},t[S]=k?m+"px":"",t[x]=D?w+"px":"",t.transform="",t))}function Ck(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l,u={placement:Po(t.placement),variation:Fs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Hp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Hp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Sk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ck,data:{}};var Ua={passive:!0};function _k(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,a=o.resize,l=a===void 0?!0:a,d=jn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",n.update,Ua)}),l&&d.addEventListener("resize",n.update,Ua),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",n.update,Ua)}),l&&d.removeEventListener("resize",n.update,Ua)}}const xk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_k,data:{}};var Rk={left:"right",right:"left",bottom:"top",top:"bottom"};function dl(e){return e.replace(/left|right|bottom|top/g,function(t){return Rk[t]})}var Tk={start:"end",end:"start"};function zp(e){return e.replace(/start|end/g,function(t){return Tk[t]})}function Bu(e){var t=jn(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Wu(e){return As(Sr(e)).left+Bu(e).scrollLeft}function kk(e,t){var n=jn(e),o=Sr(e),r=n.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,d=0;if(r){i=r.width,a=r.height;var u=cy();(u||!u&&t==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:a,x:l+Wu(e),y:d}}function Ek(e){var t,n=Sr(e),o=Bu(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=Vr(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vr(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-o.scrollLeft+Wu(e),d=-o.scrollTop;return nr(r||n).direction==="rtl"&&(l+=Vr(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:l,y:d}}function Hu(e){var t=nr(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function py(e){return["html","body","#document"].indexOf(Oo(e))>=0?e.ownerDocument.body:Xn(e)&&Hu(e)?e:py(rc(e))}function Oi(e,t){var n;t===void 0&&(t=[]);var o=py(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=jn(o),a=r?[i].concat(i.visualViewport||[],Hu(o)?o:[]):o,l=t.concat(a);return r?l:l.concat(Oi(rc(a)))}function eu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pk(e,t){var n=As(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Yp(e,t,n){return t===ay?eu(kk(e,n)):Hr(t)?Pk(t,n):eu(Ek(Sr(e)))}function Dk(e){var t=Oi(rc(e)),n=["absolute","fixed"].indexOf(nr(e).position)>=0,o=n&&Xn(e)?ha(e):e;return Hr(o)?t.filter(function(r){return Hr(r)&&dy(r,o)&&Oo(r)!=="body"}):[]}function Ok(e,t,n,o){var r=t==="clippingParents"?Dk(e):[].concat(t),i=[].concat(r,[n]),a=i[0],l=i.reduce(function(d,u){var f=Yp(e,u,o);return d.top=Vr(f.top,d.top),d.right=Rl(f.right,d.right),d.bottom=Rl(f.bottom,d.bottom),d.left=Vr(f.left,d.left),d},Yp(e,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function my(e){var t=e.reference,n=e.element,o=e.placement,r=o?Po(o):null,i=o?Fs(o):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(r){case On:d={x:a,y:t.y-n.height};break;case Zn:d={x:a,y:t.y+t.height};break;case Qn:d={x:t.x+t.width,y:l};break;case Mn:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var u=r?ju(r):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Is:d[u]=d[u]-(t[f]/2-n[f]/2);break;case Yi:d[u]=d[u]+(t[f]/2-n[f]/2);break}}return d}function Ui(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,d=l===void 0?ZT:l,u=n.rootBoundary,f=u===void 0?ay:u,p=n.elementContext,y=p===void 0?ii:p,w=n.altBoundary,b=w===void 0?!1:w,m=n.padding,v=m===void 0?0:m,D=hy(typeof v!="number"?v:fy(v,ua)),k=y===ii?QT:ii,x=e.rects.popper,S=e.elements[b?k:y],C=Ok(Hr(S)?S:S.contextElement||Sr(e.elements.popper),d,f,a),O=As(e.elements.reference),I=my({reference:O,element:x,placement:r}),F=eu(Object.assign({},x,I)),z=y===ii?F:O,R={top:C.top-z.top+D.top,bottom:z.bottom-C.bottom+D.bottom,left:C.left-z.left+D.left,right:z.right-C.right+D.right},$=e.modifiersData.offset;if(y===ii&&$){var K=$[r];Object.keys(R).forEach(function(G){var q=[Qn,Zn].indexOf(G)>=0?1:-1,Y=[On,Zn].indexOf(G)>=0?"y":"x";R[G]+=K[Y]*q})}return R}function Mk(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?ly:d,f=Fs(o),p=f?l?Bp:Bp.filter(function(b){return Fs(b)===f}):ua,y=p.filter(function(b){return u.indexOf(b)>=0});y.length===0&&(y=p);var w=y.reduce(function(b,m){return b[m]=Ui(e,{placement:m,boundary:r,rootBoundary:i,padding:a})[Po(m)],b},{});return Object.keys(w).sort(function(b,m){return w[b]-w[m]})}function Ik(e){if(Po(e)===Lu)return[];var t=dl(e);return[zp(e),t,zp(t)]}function Nk(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!0:a,d=n.fallbackPlacements,u=n.padding,f=n.boundary,p=n.rootBoundary,y=n.altBoundary,w=n.flipVariations,b=w===void 0?!0:w,m=n.allowedAutoPlacements,v=t.options.placement,D=Po(v),k=D===v,x=d||(k||!b?[dl(v)]:Ik(v)),S=[v].concat(x).reduce(function(se,j){return se.concat(Po(j)===Lu?Mk(t,{placement:j,boundary:f,rootBoundary:p,padding:u,flipVariations:b,allowedAutoPlacements:m}):j)},[]),C=t.rects.reference,O=t.rects.popper,I=new Map,F=!0,z=S[0],R=0;R<S.length;R++){var $=S[R],K=Po($),G=Fs($)===Is,q=[On,Zn].indexOf(K)>=0,Y=q?"width":"height",H=Ui(t,{placement:$,boundary:f,rootBoundary:p,altBoundary:y,padding:u}),ae=q?G?Qn:Mn:G?Zn:On;C[Y]>O[Y]&&(ae=dl(ae));var A=dl(ae),M=[];if(i&&M.push(H[K]<=0),l&&M.push(H[ae]<=0,H[A]<=0),M.every(function(se){return se})){z=$,F=!1;break}I.set($,M)}if(F)for(var L=b?3:1,B=function(j){var ee=S.find(function(J){var te=I.get(J);if(te)return te.slice(0,j).every(function(ce){return ce})});if(ee)return z=ee,"break"},ne=L;ne>0;ne--){var oe=B(ne);if(oe==="break")break}t.placement!==z&&(t.modifiersData[o]._skip=!0,t.placement=z,t.reset=!0)}}const Ak={name:"flip",enabled:!0,phase:"main",fn:Nk,requiresIfExists:["offset"],data:{_skip:!1}};function Up(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qp(e){return[On,Qn,Zn,Mn].some(function(t){return e[t]>=0})}function Fk(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ui(t,{elementContext:"reference"}),l=Ui(t,{altBoundary:!0}),d=Up(a,o),u=Up(l,r,i),f=qp(d),p=qp(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const Lk={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Fk};function $k(e,t,n){var o=Po(e),r=[Mn,On].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*r,[Mn,Qn].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Vk(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=ly.reduce(function(f,p){return f[p]=$k(p,t.rects,i),f},{}),l=a[t.placement],d=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=a}const jk={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vk};function Bk(e){var t=e.state,n=e.name;t.modifiersData[n]=my({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Wk={name:"popperOffsets",enabled:!0,phase:"read",fn:Bk,data:{}};function Hk(e){return e==="x"?"y":"x"}function zk(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,u=n.rootBoundary,f=n.altBoundary,p=n.padding,y=n.tether,w=y===void 0?!0:y,b=n.tetherOffset,m=b===void 0?0:b,v=Ui(t,{boundary:d,rootBoundary:u,padding:p,altBoundary:f}),D=Po(t.placement),k=Fs(t.placement),x=!k,S=ju(D),C=Hk(S),O=t.modifiersData.popperOffsets,I=t.rects.reference,F=t.rects.popper,z=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,K={x:0,y:0};if(O){if(i){var G,q=S==="y"?On:Mn,Y=S==="y"?Zn:Qn,H=S==="y"?"height":"width",ae=O[S],A=ae+v[q],M=ae-v[Y],L=w?-F[H]/2:0,B=k===Is?I[H]:F[H],ne=k===Is?-F[H]:-I[H],oe=t.elements.arrow,se=w&&oe?Vu(oe):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uy(),ee=j[q],J=j[Y],te=Di(0,I[H],se[H]),ce=x?I[H]/2-L-te-ee-R.mainAxis:B-te-ee-R.mainAxis,le=x?-I[H]/2+L+te+J+R.mainAxis:ne+te+J+R.mainAxis,he=t.elements.arrow&&ha(t.elements.arrow),W=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,re=(G=$?.[S])!=null?G:0,Z=ae+ce-re-W,fe=ae+le-re,pe=Di(w?Rl(A,Z):A,ae,w?Vr(M,fe):M);O[S]=pe,K[S]=pe-ae}if(l){var be,ge=S==="x"?On:Mn,Re=S==="x"?Zn:Qn,Ve=O[C],Ne=C==="y"?"height":"width",Je=Ve+v[ge],ke=Ve-v[Re],ut=[On,Mn].indexOf(D)!==-1,Yt=(be=$?.[C])!=null?be:0,rt=ut?Je:Ve-I[Ne]-F[Ne]-Yt+R.altAxis,Ot=ut?Ve+I[Ne]+F[Ne]-Yt-R.altAxis:ke,Ut=w&&ut?pk(rt,Ve,Ot):Di(w?rt:Je,Ve,w?Ot:ke);O[C]=Ut,K[C]=Ut-Ve}t.modifiersData[o]=K}}const Yk={name:"preventOverflow",enabled:!0,phase:"main",fn:zk,requiresIfExists:["offset"]};function Uk(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function qk(e){return e===jn(e)||!Xn(e)?Bu(e):Uk(e)}function Gk(e){var t=e.getBoundingClientRect(),n=Ns(t.width)/e.offsetWidth||1,o=Ns(t.height)/e.offsetHeight||1;return n!==1||o!==1}function Kk(e,t,n){n===void 0&&(n=!1);var o=Xn(t),r=Xn(t)&&Gk(t),i=Sr(t),a=As(e,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&((Oo(t)!=="body"||Hu(i))&&(l=qk(t)),Xn(t)?(d=As(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):i&&(d.x=Wu(i))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function Xk(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&r(d)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Zk(e){var t=Xk(e);return lk.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Qk(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jk(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function eE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?Gp:r;return function(l,d,u){u===void 0&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gp,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},p=[],y=!1,w={state:f,setOptions:function(D){var k=typeof D=="function"?D(f.options):D;m(),f.options=Object.assign({},i,f.options,k),f.scrollParents={reference:Hr(l)?Oi(l):l.contextElement?Oi(l.contextElement):[],popper:Oi(d)};var x=Zk(Jk([].concat(o,f.options.modifiers)));return f.orderedModifiers=x.filter(function(S){return S.enabled}),b(),w.update()},forceUpdate:function(){if(!y){var D=f.elements,k=D.reference,x=D.popper;if(Kp(k,x)){f.rects={reference:Kk(k,ha(x),f.options.strategy==="fixed"),popper:Vu(x)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(R){return f.modifiersData[R.name]=Object.assign({},R.data)});for(var S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var C=f.orderedModifiers[S],O=C.fn,I=C.options,F=I===void 0?{}:I,z=C.name;typeof O=="function"&&(f=O({state:f,options:F,name:z,instance:w})||f)}}}},update:Qk(function(){return new Promise(function(v){w.forceUpdate(),v(f)})}),destroy:function(){m(),y=!0}};if(!Kp(l,d))return w;w.setOptions(u).then(function(v){!y&&u.onFirstUpdate&&u.onFirstUpdate(v)});function b(){f.orderedModifiers.forEach(function(v){var D=v.name,k=v.options,x=k===void 0?{}:k,S=v.effect;if(typeof S=="function"){var C=S({state:f,name:D,instance:w,options:x}),O=function(){};p.push(C||O)}})}function m(){p.forEach(function(v){return v()}),p=[]}return w}}var tE=[xk,Wk,Sk,uk,jk,Ak,Yk,vk,Lk],nE=eE({defaultModifiers:tE});function oE(e){return typeof e=="function"?e():e}const qi=T.forwardRef(function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[a,l]=T.useState(null),d=ct(T.isValidElement(o)?zs(o):null,n);if(ln(()=>{i||l(oE(r)||document.body)},[r,i]),ln(()=>{if(a&&!i)return vp(n,a),()=>{vp(n,null)}},[n,a,i]),i){if(T.isValidElement(o)){const u={ref:d};return T.cloneElement(o,u)}return E.jsx(T.Fragment,{children:o})}return E.jsx(T.Fragment,{children:a&&d0.createPortal(o,a)})});process.env.NODE_ENV!=="production"&&(qi.propTypes={children:s.node,container:s.oneOfType([er,s.func]),disablePortal:s.bool});process.env.NODE_ENV!=="production"&&(qi.propTypes=Vg(qi.propTypes));function rE(e){return Me("MuiPopper",e)}Pe("MuiPopper",["root"]);function sE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Tl(e){return typeof e=="function"?e():e}function sc(e){return e.nodeType!==void 0}function iE(e){return!sc(e)}const aE=e=>{const{classes:t}=e;return Ie({root:["root"]},rE,t)},lE={},cE=T.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:i,disablePortal:a,modifiers:l,open:d,placement:u,popperOptions:f,popperRef:p,slotProps:y={},slots:w={},TransitionProps:b,ownerState:m,...v}=t,D=T.useRef(null),k=ct(D,n),x=T.useRef(null),S=ct(x,p),C=T.useRef(S);ln(()=>{C.current=S},[S]),T.useImperativeHandle(p,()=>x.current,[]);const O=sE(u,i),[I,F]=T.useState(O),[z,R]=T.useState(Tl(o));T.useEffect(()=>{x.current&&x.current.forceUpdate()}),T.useEffect(()=>{o&&R(Tl(o))},[o]),ln(()=>{if(!z||!d)return;const Y=A=>{F(A.placement)};if(process.env.NODE_ENV!=="production"&&z&&sc(z)&&z.nodeType===1){const A=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&A.top===0&&A.left===0&&A.right===0&&A.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
214
|
+
`))}let H=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:A})=>{Y(A)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const ae=nE(z,D.current,{placement:O,...f,modifiers:H});return C.current(ae),()=>{ae.destroy(),C.current(null)}},[z,a,l,d,f,O]);const $={placement:I};b!==null&&($.TransitionProps=b);const K=aE(t),G=w.root??"div",q=pt({elementType:G,externalSlotProps:y.root,externalForwardedProps:v,additionalProps:{role:"tooltip",ref:k},ownerState:t,className:K.root});return E.jsx(G,{...q,children:typeof r=="function"?r($):r})}),gy=T.forwardRef(function(t,n){const{anchorEl:o,children:r,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:u,open:f,placement:p="bottom",popperOptions:y=lE,popperRef:w,style:b,transition:m=!1,slotProps:v={},slots:D={},...k}=t,[x,S]=T.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!d&&!f&&(!m||x))return null;let I;if(i)I=i;else if(o){const R=Tl(o);I=R&&sc(R)?Sn(R).body:Sn(null).body}const F=!f&&d&&(!m||x)?"none":void 0,z=m?{in:f,onEnter:C,onExited:O}:void 0;return E.jsx(qi,{disablePortal:l,container:I,children:E.jsx(cE,{anchorEl:o,direction:a,disablePortal:l,modifiers:u,ref:n,open:m?!x:f,placement:p,popperOptions:y,popperRef:w,slotProps:v,slots:D,...k,style:{position:"fixed",top:0,left:0,display:F,...b},TransitionProps:z,children:r})})});process.env.NODE_ENV!=="production"&&(gy.propTypes={anchorEl:Cr(s.oneOfType([er,s.object,s.func]),e=>{if(e.open){const t=Tl(e.anchorEl);if(t&&sc(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
215
215
|
`))}else if(!t||typeof t.getBoundingClientRect!="function"||iE(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
216
|
-
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([Jo,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const dE=ie(gy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ic=T.forwardRef(function(t,n){const o=to(),r=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:d,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:D,slots:k,slotProps:x,...S}=r,C=k?.root??l?.Root,O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:D,...S};return E.jsx(dE,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:x??d,...O,ref:n})});process.env.NODE_ENV!=="production"&&(ic.propTypes={anchorEl:s.oneOfType([Jo,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Jo,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const uE=fn(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function hE(e){return Me("MuiChip",e)}const Qe=Pe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fE=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:d}=e,u={root:["root",d,n&&"disabled",`size${we(o)}`,`color${we(r)}`,l&&"clickable",l&&`clickableColor${we(r)}`,a&&"deletable",a&&`deletableColor${we(r)}`,`${d}${we(r)}`],label:["label",`label${we(o)}`],avatar:["avatar",`avatar${we(o)}`,`avatarColor${we(r)}`],icon:["icon",`icon${we(o)}`,`iconColor${we(i)}`],deleteIcon:["deleteIcon",`deleteIcon${we(o)}`,`deleteIconColor${we(r)}`,`deleteIcon${we(d)}Color${we(r)}`]};return Ie(u,hE,t)},pE=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:d}=n;return[{[`& .${Qe.avatar}`]:t.avatar},{[`& .${Qe.avatar}`]:t[`avatar${we(l)}`]},{[`& .${Qe.avatar}`]:t[`avatarColor${we(o)}`]},{[`& .${Qe.icon}`]:t.icon},{[`& .${Qe.icon}`]:t[`icon${we(l)}`]},{[`& .${Qe.icon}`]:t[`iconColor${we(r)}`]},{[`& .${Qe.deleteIcon}`]:t.deleteIcon},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(l)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIconColor${we(o)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(d)}Color${we(o)}`]},t.root,t[`size${we(l)}`],t[`color${we(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${we(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${we(o)}`],t[d],t[`${d}${we(o)}`]]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Qe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Qe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:tt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Qe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Qe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(gn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:tt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Qe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Qe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Qe.avatar}`]:{marginLeft:4},[`& .${Qe.avatarSmall}`]:{marginLeft:2},[`& .${Qe.icon}`]:{marginLeft:4},[`& .${Qe.iconSmall}`]:{marginLeft:2},[`& .${Qe.deleteIcon}`]:{marginRight:5},[`& .${Qe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:tt(e.palette[n].main,.7)}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:tt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),mE=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${we(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Xp(e){return e.key==="Backspace"||e.key==="Delete"}const yy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:d,deleteIcon:u,disabled:f=!1,icon:p,label:y,onClick:w,onDelete:b,onKeyDown:m,onKeyUp:v,size:D="medium",variant:k="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,...C}=o,O=T.useRef(null),I=ct(O,n),F=M=>{M.stopPropagation(),b&&b(M)},z=M=>{M.currentTarget===M.target&&Xp(M)&&M.preventDefault(),m&&m(M)},R=M=>{M.currentTarget===M.target&&b&&Xp(M)&&b(M),v&&v(M)},$=a!==!1&&w?!0:a,K=$||b?br:d||"div",G={...o,component:K,disabled:f,size:D,color:l,iconColor:T.isValidElement(p)&&p.props.color||l,onDelete:!!b,clickable:$,variant:k},q=fE(G),Y=K===br?{component:d||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let H=null;b&&(H=u&&T.isValidElement(u)?T.cloneElement(u,{className:Se(u.props.className,q.deleteIcon),onClick:F}):E.jsx(uE,{className:Se(q.deleteIcon),onClick:F}));let ae=null;r&&T.isValidElement(r)&&(ae=T.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let A=null;return p&&T.isValidElement(p)&&(A=T.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&A&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),E.jsxs(pE,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:w,onKeyDown:z,onKeyUp:R,ref:I,tabIndex:S&&f?-1:x,ownerState:G,...Y,...C,children:[ae||A,E.jsx(mE,{className:Se(q.label),ownerState:G,children:y}),H]})});process.env.NODE_ENV!=="production"&&(yy.propTypes={avatar:s.element,children:tR,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});function qa(e){return parseInt(e,10)||0}const gE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const vy=T.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...d}=t,{current:u}=T.useRef(l!=null),f=T.useRef(null),p=ct(n,f),y=T.useRef(null),w=T.useRef(null),b=T.useCallback(()=>{const D=f.current,x=er(D).getComputedStyle(D);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=w.current;S.style.width=x.width,S.value=D.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
217
|
-
`&&(S.value+=" ");const C=x.boxSizing,O=qa(x.paddingBottom)+qa(x.paddingTop),I=qa(x.borderBottomWidth)+qa(x.borderTopWidth),F=S.scrollHeight;S.value="x";const z=S.scrollHeight;let R=F;i&&(R=Math.max(Number(i)*z,R)),r&&(R=Math.min(Number(r)*z,R)),R=Math.max(R,z);const $=R+(C==="border-box"?O+I:0),K=Math.abs(R-F)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),m=T.useCallback(()=>{const D=b();if(yE(D))return;const k=D.outerHeightStyle,x=f.current;y.current!==k&&(y.current=k,x.style.height=`${k}px`),x.style.overflow=D.overflowing?"hidden":""},[b]);ln(()=>{const D=()=>{m()};let k;const x=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{D()})},S=jg(D),C=f.current,O=
|
|
218
|
-
`))},[]),he=ct(ce,S,x.ref,le),[W,re]=T.useState(!1),Z=Nn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(Z)return Z.registerEffect()},[Z]);const fe=_r({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Z?Z.focused:W,T.useEffect(()=>{!Z&&y&&W&&(re(!1),R&&R())},[Z,y,W,R]);const pe=Z&&Z.onFilled,be=Z&&Z.onEmpty,ge=T.useCallback(Be=>{kl(Be)?pe&&pe():be&&be()},[pe,be]);ln(()=>{te&&ge({value:J})},[J,ge,te]);const Re=Be=>{G&&G(Be),x.onFocus&&x.onFocus(Be),Z&&Z.onFocus?Z.onFocus(Be):re(!0)},Ve=Be=>{R&&R(Be),x.onBlur&&x.onBlur(Be),Z&&Z.onBlur?Z.onBlur(Be):re(!1)},Ne=(Be,...rn)=>{if(!te){const dn=Be.target||ce.current;if(dn==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Do(1));ge({value:dn.value})}x.onChange&&x.onChange(Be,...rn),$&&$(Be,...rn)};T.useEffect(()=>{ge(ce.current)},[]);const Je=Be=>{ce.current&&Be.currentTarget===Be.target&&ce.current.focus(),K&&K(Be)};let ke=k,ut=x;F&&ke==="input"&&(M?(process.env.NODE_ENV!=="production"&&(I||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ut={type:void 0,minRows:M,maxRows:M,...ut}):ut={type:void 0,maxRows:O,minRows:I,...ut},ke=vy);const Yt=Be=>{ge(Be.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Z&&Z.setAdornedStart(!!oe)},[Z,oe]);const rt={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Z,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Ot=wE(rt),Ut=ne.root||u.Root||cc,Lt=B.root||f.root||{},Ue=ne.input||u.Input||dc;return ut={...ut,...B.input??f.input},E.jsxs(T.Fragment,{children:[!w&&typeof Jp=="function"&&(Qp||(Qp=E.jsx(Jp,{}))),E.jsxs(Ut,{...Lt,ref:n,onClick:Je,...ee,...!Gi(Ut)&&{ownerState:{...rt,...Lt.ownerState}},className:Se(Ot.root,Lt.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,E.jsx(fa.Provider,{value:null,children:E.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:D,onAnimationStart:Yt,name:z,placeholder:H,readOnly:ae,required:fe.required,rows:M,value:J,onKeyDown:q,onKeyUp:Y,type:se,...ut,...!Gi(Ue)&&{as:ke,ownerState:{...rt,...ut.ownerState}},ref:he,className:Se(Ot.input,ut.className,ae&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Re})}),b,A?A({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(uc.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:ec,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function CE(e){return Me("MuiInput",e)}const ai={...Ls,...Pe("MuiInput",["root","underline","input"])};function SE(e){return Me("MuiOutlinedInput",e)}const bo={...Ls,...Pe("MuiOutlinedInput",["root","notchedOutline","input"])};function _E(e){return Me("MuiFilledInput",e)}const kr={...Ls,...Pe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},xE=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),RE={entering:{opacity:1},entered:{opacity:1}},Gr=T.forwardRef(function(t,n){const o=qr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:m,style:v,timeout:D=r,TransitionComponent:k=no,...x}=t,S=T.useRef(null),C=ct(S,zs(l),n),O=q=>Y=>{if(q){const H=S.current;Y===void 0?q(H):q(H,Y)}},I=O(y),F=O((q,Y)=>{oy(q);const H=_l({style:v,timeout:D,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",H),q.style.transition=o.transitions.create("opacity",H),f&&f(q,Y)}),z=O(p),R=O(m),$=O(q=>{const Y=_l({style:v,timeout:D,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=O(b),G=q=>{i&&i(S.current,q)};return E.jsx(k,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:z,onEntering:I,onExit:$,onExited:K,onExiting:R,addEndListener:G,timeout:D,...x,children:(q,Y)=>T.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...RE[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={addEndListener:s.func,appear:s.bool,children:Hs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function TE(e){return Me("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const kE=e=>{const{ownerState:t,...n}=e;return n},EE=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},TE,t)},PE=ie("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"}}]}),zu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...m}=o,v={...o,component:a,invisible:l},D=EE(v),k={transition:w,root:u.Root,...y},x={...f,...p},S={slots:k,slotProps:x},[C,O]=Dn("root",{elementType:PE,externalForwardedProps:S,className:Se(D.root,i),ownerState:v}),[I,F]=Dn("transition",{elementType:Gr,externalForwardedProps:S,ownerState:v}),z=kE(F);return E.jsx(I,{in:d,timeout:b,...m,...z,children:E.jsx(C,{"aria-hidden":!0,...O,classes:D,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(zu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const DE=Pe("MuiBox",["root"]),OE=Jg(),oo=Px({themeId:ra,defaultTheme:OE,defaultClassName:DE.root,generateClassName:Eg.generate});process.env.NODE_ENV!=="production"&&(oo.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ME(e){return Me("MuiButton",e)}const hs=Pe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),by=T.createContext({});process.env.NODE_ENV!=="production"&&(by.displayName="ButtonGroupContext");const wy=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(wy.displayName="ButtonGroupButtonContext");const IE=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={root:["root",i,`${i}${we(t)}`,`size${we(r)}`,`${i}Size${we(r)}`,`color${we(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${we(r)}`],endIcon:["icon","endIcon",`iconSize${we(r)}`]},d=Ie(l,ME,a);return{...a,...d}},Cy=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],NE=ie(br,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${hs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${hs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${hs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${hs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(gn()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:tt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),AE=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Cy]}),FE=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Cy]}),ko=T.forwardRef(function(t,n){const o=T.useContext(by),r=T.useContext(wy),i=Bi(o,t),a=Ge({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:m,fullWidth:v=!1,size:D="medium",startIcon:k,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:D,type:x,variant:S},I=IE(O),F=k&&E.jsx(AE,{className:I.startIcon,ownerState:O,children:k}),z=b&&E.jsx(FE,{className:I.endIcon,ownerState:O,children:b}),R=r||"";return E.jsxs(NE,{ownerState:O,className:Se(o.className,I.root,f,R),component:u,disabled:p,focusRipple:!w,focusVisibleClassName:Se(I.focusVisible,m),ref:n,type:x,...C,classes:I,children:[F,l,z]})});process.env.NODE_ENV!=="production"&&(ko.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function LE(e){return Me("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $E=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${we(r)}`],input:["input"]};return Ie(i,LE,t)},VE=ie(br)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),jE=ie("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sy=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:m,onBlur:v,onChange:D,onFocus:k,readOnly:x,required:S=!1,tabIndex:C,type:O,value:I,...F}=t,[z,R]=ho({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=Nn(),K=M=>{k&&k(M),$&&$.onFocus&&$.onFocus(M)},G=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const L=M.target.checked;R(L),D&&D(M,L)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const H=O==="checkbox"||O==="radio",ae={...t,checked:z,disabled:Y,disableFocusRipple:u,edge:f},A=$E(ae);return E.jsxs(VE,{component:"span",className:Se(A.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:G,ownerState:ae,ref:n,...F,children:[E.jsx(jE,{autoFocus:o,checked:r,defaultChecked:l,className:A.input,disabled:Y,id:H?y:void 0,name:m,onChange:q,readOnly:x,ref:b,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&I===void 0?{}:{value:I},...w}),z?i:p]})});process.env.NODE_ENV!=="production"&&(Sy.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:zt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const BE=fn(E.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"),WE=fn(E.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"),HE=fn(E.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 zE(e){return Me("MuiCheckbox",e)}const pd=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),YE=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${we(o)}`,`size${we(r)}`]},a=Ie(i,zE,t);return{...t,...a}},UE=ie(Sy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${pd.checked}, &.${pd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),qE=E.jsx(WE,{}),GE=E.jsx(BE,{}),KE=E.jsx(HE,{}),hc=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:r=qE,color:i="primary",icon:a=GE,indeterminate:l=!1,indeterminateIcon:d=KE,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=l?d:a,m=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},D=YE(v);return E.jsx(UE,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(m,{fontSize:m.props.fontSize??f}),ownerState:v,ref:n,className:Se(D.root,y),disableRipple:p,...w,classes:D})});process.env.NODE_ENV!=="production"&&(hc.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,inputRef:zt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function XE(e){const t=Sn(e);return t.body===e?er(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function em(e){return parseInt(er(e).getComputedStyle(e).paddingRight,10)||0}function ZE(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function tm(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!ZE(a);l&&d&&Mi(a,r)})}function md(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function QE(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(XE(o)){const a=Wg(er(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${em(o)+a}px`;const l=Sn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${em(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Sn(o).body;else{const a=o.parentElement,l=er(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function JE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class eP{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Mi(t.modalRef,!1);const r=JE(n);tm(n,t.mount,t.modalRef,r,!0);const i=md(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=md(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=QE(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=md(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Mi(t.modalRef,n),tm(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Mi(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const tP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function oP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function rP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||oP(e))}function sP(e){const t=[],n=[];return Array.from(e.querySelectorAll(tP)).forEach((o,r)=>{const i=nP(o);i===-1||!rP(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function iP(){return!0}function Ki(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=sP,isEnabled:a=iP,open:l}=e,d=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),m=ct(zs(t),b),v=T.useRef(null);T.useEffect(()=>{!l||!b.current||(w.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!b.current)return;const x=Sn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
219
|
-
`)),b.current.setAttribute("tabIndex","-1")),w.current&&b.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),T.useEffect(()=>{if(!l||!b.current)return;const x=Sn(b.current),S=I=>{v.current=I,!(o||!a()||I.key!=="Tab")&&x.activeElement===b.current&&I.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const I=b.current;if(I===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(I.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!w.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(b.current)),F.length>0){const z=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=F[0],$=F[F.length-1];typeof R!="string"&&typeof $!="string"&&(z?$.focus():R.focus())}else I.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const D=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},k=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0};return E.jsxs(T.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:D}),E.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:Hs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ki.propTypes=Vg(Ki.propTypes));function aP(e){return typeof e=="function"?e():e}function lP(e){return e?e.props.hasOwnProperty("in"):!1}const Ga=new eP;function cP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=T.useRef({}),y=T.useRef(null),w=T.useRef(null),b=ct(w,f),[m,v]=T.useState(!u),D=lP(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const x=()=>Sn(y.current),S=()=>(p.current.modalRef=w.current,p.current.mount=y.current,p.current),C=()=>{Ga.mount(S(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},O=Te(()=>{const Y=aP(t)||x().body;Ga.add(S(),Y),w.current&&C()}),I=()=>Ga.isTopModal(S()),F=Te(Y=>{y.current=Y,Y&&(u&&I()?C():w.current&&Mi(w.current,k))}),z=T.useCallback(()=>{Ga.remove(S(),k)},[k]);T.useEffect(()=>()=>{z()},[z]),T.useEffect(()=>{u?O():(!D||!r)&&z()},[u,z,D,r,O]);const R=Y=>H=>{Y.onKeyDown?.(H),!(H.key!=="Escape"||H.which===229||!I())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},$=Y=>H=>{Y.onClick?.(H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(Y={})=>{const H=Ug(e);delete H.onTransitionEnter,delete H.onTransitionExited;const ae={...H,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:b}},getBackdropProps:(Y={})=>{const H=Y;return{"aria-hidden":!0,...H,onClick:$(H),open:u}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},H=()=>{v(!0),a&&a(),r&&z()};return{onEnter:yp(Y,l?.props.onEnter),onExited:yp(H,l?.props.onExited)}},rootRef:b,portalRef:F,isTopModal:I,exited:m,hasTransition:D}}function dP(e){return Me("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const uP=e=>{const{open:t,exited:n,classes:o}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dP,o)},hP=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ot(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),fP=ie(zu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Yu=T.forwardRef(function(t,n){const o=Ge({name:"MuiModal",props:t}),{BackdropComponent:r=fP,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:D=!1,disableRestoreFocus:k=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:O,onClose:I,onTransitionEnter:F,onTransitionExited:z,open:R,slotProps:$={},slots:K={},theme:G,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:D,disableRestoreFocus:k,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:H,getBackdropProps:ae,getTransitionProps:A,portalRef:M,isTopModal:L,exited:B,hasTransition:ne}=cP({...Y,rootRef:n}),oe={...Y,exited:B},se=uP(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:W,onExited:re}=A();j.onEnter=W,j.onExited=re}const ee={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...w,...$}},[J,te]=Dn("root",{elementType:hP,externalForwardedProps:ee,getSlotProps:H,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(l,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,le]=Dn("backdrop",{elementType:r,externalForwardedProps:ee,additionalProps:i,getSlotProps:W=>ae({...W,onClick:re=>{O&&O(re),W?.onClick&&W.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=ct(i?.ref,le.ref);return!C&&!R&&(!ne||B)?null:E.jsx(qi,{ref:M,container:f,disablePortal:D,children:E.jsxs(J,{...te,children:[!S&&r?E.jsx(ce,{...le,ref:he}):null,E.jsx(Ki,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:L,open:R,children:T.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(Yu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Hs.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([Jo,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function pP(e){return Me("MuiDialog",e)}const Ii=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Uu=T.createContext({});process.env.NODE_ENV!=="production"&&(Uu.displayName="DialogContext");const mP=ie(zu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gP=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${we(n)}`],paper:["paper",`paperScroll${we(n)}`,`paperWidth${we(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(a,pP,t)},yP=ie(Yu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vP=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${we(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"}}}]}),bP=ie(Ys,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${we(n.scroll)}`],t[`paperWidth${we(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ot(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ii.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Ii.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ii.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),qu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialog"}),r=qr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:w=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:D,onClick:k,onClose:x,open:S,PaperComponent:C=Ys,PaperProps:O={},scroll:I="paper",TransitionComponent:F=Gr,transitionDuration:z=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:w,fullScreen:b,fullWidth:m,maxWidth:v,scroll:I},G=gP(K),q=T.useRef(),Y=M=>{q.current=M.target===M.currentTarget},H=M=>{k&&k(M),q.current&&(q.current=null,D&&D(M),x&&x(M,"backdropClick"))},ae=sr(l),A=T.useMemo(()=>({titleId:ae}),[ae]);return E.jsx(yP,{className:Se(G.root,y),closeAfterTransition:!0,components:{Backdrop:mP},componentsProps:{backdrop:{transitionDuration:z,as:u,...f}},disableEscapeKeyDown:w,onClose:x,open:S,ref:n,onClick:H,ownerState:K,...$,children:E.jsx(F,{appear:!0,in:S,timeout:z,role:"presentation",...R,children:E.jsx(vP,{className:Se(G.container),onMouseDown:Y,ownerState:K,children:E.jsx(bP,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...O,className:Se(G.paper,O.className),ownerState:K,children:E.jsx(Uu.Provider,{value:A,children:p})})})})})});process.env.NODE_ENV!=="production"&&(qu.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function wP(e){return Me("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const CP=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},wP,t)},SP=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Gu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=CP(l);return E.jsx(SP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function _P(e){return Me("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);function xP(e){return Me("MuiDialogTitle",e)}const RP=Pe("MuiDialogTitle",["root"]),TP=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},_P,t)},kP=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ot(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${RP.root} + &`]:{paddingTop:0}}}]}))),Ku=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=TP(l);return E.jsx(kP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ku.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function EP(e){return Me("MuiDialogContentText",e)}Pe("MuiDialogContentText",["root"]);const PP=e=>{const{classes:t}=e,o=Ie({root:["root"]},EP,t);return{...t,...o}},DP=ie(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_y=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogContentText"}),{children:r,className:i,...a}=o,l=PP(a);return E.jsx(DP,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:Se(l.root,i),...o,classes:l})});process.env.NODE_ENV!=="production"&&(_y.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const OP=e=>{const{classes:t}=e;return Ie({root:["root"]},xP,t)},MP=ie(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),xy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogTitle"}),{className:r,id:i,...a}=o,l=o,d=OP(l),{titleId:u=i}=T.useContext(Uu);return E.jsx(MP,{component:"h2",className:Se(d.root,r),ownerState:l,ref:n,variant:"h6",id:i??u,...a})});process.env.NODE_ENV!=="production"&&(xy.propTypes={children:s.node,classes:s.object,className:s.string,id:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function IP(e){return Me("MuiDivider",e)}const nm=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),NP=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Ie({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},IP,o)},AP=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ot(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:tt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),FP=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ot(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),El=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:w="fullWidth",...b}=o,m={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:w},v=NP(m);return E.jsx(AP,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...b,children:i?E.jsx(FP,{className:v.wrapper,ownerState:m,children:i}):null})});El&&(El.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(El.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const LP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${we(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Ie(d,_E,t);return{...t,...u}},$P=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ac(e,t),!n.disableUnderline&&t.underline]}})(ot(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${kr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${kr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kr.disabled}, .${kr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),VP=ie(dc,{name:"MuiFilledInput",slot:"Input",overridesResolver:lc})(ot(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Xi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:w="text",...b}=o,m={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:w},v=LP(o),D={root:{ownerState:m},input:{ownerState:m}},k=p??a?Cn(D,p??a):D,x=y.root??i.Root??$P,S=y.input??i.Input??VP;return E.jsx(uc,{slots:{root:x,input:S},componentsProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:w,...b,classes:v})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Xi&&(Xi.muiName="Input");function jP(e){return Me("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const BP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${we(n)}`,o&&"fullWidth"]};return Ie(r,jP,t)},WP=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${we(e.margin)}`],...e.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%"}}]}),pa=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:w="none",required:b=!1,size:m="medium",variant:v="outlined",...D}=o,k={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:w,required:b,size:m,variant:v},x=BP(k),[S,C]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{if(!Pi(Y,["Input","Select"]))return;const H=Pi(Y,["Select"])?Y.props.input:Y;H&&vE(H.props)&&(q=!0)}),q}),[O,I]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{Pi(Y,["Input","Select"])&&(kl(Y.props,!0)||kl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,z]=T.useState(!1);d&&F&&z(!1);const R=f!==void 0&&!d?f:F;let $;const K=T.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(K.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
220
|
-
`)),K.current=!0,()=>{K.current=!1}));const G=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:d,error:u,filled:O,focused:R,fullWidth:p,hiddenLabel:y,size:m,onBlur:()=>{z(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{z(!0)},registerEffect:$,required:b,variant:v}),[S,a,d,u,O,R,p,y,$,b,m,v]);return E.jsx(fa.Provider,{value:G,children:E.jsx(WP,{as:l,ownerState:k,className:Se(x.root,i),ref:n,...D,children:r})})});process.env.NODE_ENV!=="production"&&(pa.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function HP(e){return Me("MuiFormControlLabel",e)}const ki=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),zP=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${we(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Ie(a,HP,t)},YP=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ki.label}`]:t.label},t.root,t[`labelPlacement${we(n.labelPlacement)}`]]}})(ot(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ki.disabled}`]:{cursor:"default"},[`& .${ki.label}`]:{[`&.${ki.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),UP=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${ki.error}`]:{color:(e.vars||e).palette.error.main}}))),ul=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:l,disabled:d,disableTypography:u,inputRef:f,label:p,labelPlacement:y="end",name:w,onChange:b,required:m,slots:v={},slotProps:D={},value:k,...x}=o,S=Nn(),C=d??l.props.disabled??S?.disabled,O=m??l.props.required,I={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof o[Y]<"u"&&(I[Y]=o[Y])});const F=_r({props:o,muiFormControl:S,states:["error"]}),z={...o,disabled:C,labelPlacement:y,required:O,error:F.error},R=zP(z),$={slots:v,slotProps:{...a,...D}},[K,G]=Dn("typography",{elementType:bn,externalForwardedProps:$,ownerState:z});let q=p;return q!=null&&q.type!==bn&&!u&&(q=E.jsx(K,{component:"span",...G,className:Se(R.label,G?.className),children:q})),E.jsxs(YP,{className:Se(R.root,i),ownerState:z,ref:n,...x,children:[T.cloneElement(l,I),O?E.jsxs("div",{children:[q,E.jsxs(UP,{ownerState:z,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(ul.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:zt,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function qP(e){return Me("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const GP=e=>{const{classes:t,row:n,error:o}=e;return Ie({root:["root",n&&"row",o&&"error"]},qP,t)},KP=ie("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"}}]}),Ry=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormGroup"}),{className:r,row:i=!1,...a}=o,l=Nn(),d=_r({props:o,muiFormControl:l,states:["error"]}),u={...o,row:i,error:d.error},f=GP(u);return E.jsx(KP,{className:Se(f.root,r),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ry.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function XP(e){return Me("MuiFormHelperText",e)}const om=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rm;const ZP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:d}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${we(o)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return Ie(u,XP,t)},QP=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${we(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${om.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${om.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Xu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:d,filled:u,focused:f,margin:p,required:y,variant:w,...b}=o,m=Nn(),v=_r({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),D={...o,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete D.ownerState;const k=ZP(D);return E.jsx(QP,{as:a,className:Se(k.root,i),ref:n,...b,ownerState:D,children:r===" "?rm||(rm=E.jsx("span",{className:"notranslate",children:""})):r})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function JP(e){return Me("MuiFormLabel",e)}const Ni=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),e1=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,d={root:["root",`color${we(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(d,JP,t)},t1=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${Ni.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ni.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),n1=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}))),Ty=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:d,error:u,filled:f,focused:p,required:y,...w}=o,b=Nn(),m=_r({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},D=e1(v);return E.jsxs(t1,{as:l,ownerState:v,className:Se(D.root,i),ref:n,...w,children:[r,m.required&&E.jsxs(n1,{ownerState:v,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Ty.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function tu(e){return`scale(${e}, ${e**2})`}const o1={entering:{opacity:1,transform:tu(1)},entered:{opacity:1,transform:"none"}},gd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zr=T.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:m="auto",TransitionComponent:v=no,...D}=t,k=vs(),x=T.useRef(),S=qr(),C=T.useRef(null),O=ct(C,zs(i),n),I=Y=>H=>{if(Y){const ae=C.current;H===void 0?Y(ae):Y(ae,H)}},F=I(f),z=I((Y,H)=>{oy(Y);const{duration:ae,delay:A,easing:M}=_l({style:b,timeout:m,easing:a},{mode:"enter"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=L):L=ae,Y.style.transition=[S.transitions.create("opacity",{duration:L,delay:A}),S.transitions.create("transform",{duration:gd?L:L*.666,delay:A,easing:M})].join(","),d&&d(Y,H)}),R=I(u),$=I(w),K=I(Y=>{const{duration:H,delay:ae,easing:A}=_l({style:b,timeout:m,easing:a},{mode:"exit"});let M;m==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=H,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:gd?M:M*.666,delay:gd?ae:ae||M*.333,easing:A})].join(","),Y.style.opacity=0,Y.style.transform=tu(.75),p&&p(Y)}),G=I(y),q=Y=>{m==="auto"&&k.start(x.current||0,Y),o&&o(C.current,Y)};return E.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:G,onExiting:$,addEndListener:q,timeout:m==="auto"?null:m,...D,children:(Y,H)=>T.cloneElement(i,{style:{opacity:0,transform:tu(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...o1[Y],...b,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(zr.propTypes={addEndListener:s.func,appear:s.bool,children:Hs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});zr&&(zr.muiSupportAuto=!0);const r1=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},CE,t);return{...t,...r}},s1=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ac(e,t),!n.disableUnderline&&t.underline]}})(ot(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ai.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ai.disabled}, .${ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),i1=ie(dc,{name:"MuiInput",slot:"Input",overridesResolver:lc})({}),Zi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:y="text",...w}=o,b=r1(o),v={root:{ownerState:{disableUnderline:r}}},D=f??a?Cn(f??a,v):v,k=p.root??i.Root??s1,x=p.input??i.Input??i1;return E.jsx(uc,{slots:{root:k,input:x},slotProps:D,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:y,...w,classes:b})});process.env.NODE_ENV!=="production"&&(Zi.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Zi&&(Zi.muiName="Input");function a1(e){return Me("MuiInputAdornment",e)}const sm=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var im;const l1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},c1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${we(r)}`,a,o&&"hiddenLabel",i&&`size${we(i)}`]};return Ie(l,a1,t)},d1=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:l1})(ot(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${sm.positionStart}&:not(.${sm.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Zu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:d=!1,position:u,variant:f,...p}=o,y=Nn()||{};let w=f;f&&y.variant&&process.env.NODE_ENV!=="production"&&f===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!w&&(w=y.variant);const b={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:w},m=c1(b);return E.jsx(fa.Provider,{value:null,children:E.jsx(d1,{as:a,ownerState:b,className:Se(m.root,i),ref:n,...p,children:typeof r=="string"&&!d?E.jsx(bn,{color:"textSecondary",children:r}):E.jsxs(T.Fragment,{children:[u==="start"?im||(im=E.jsx("span",{className:"notranslate",children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function u1(e){return Me("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const h1=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,d={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="normal"&&`size${we(o)}`,a],asterisk:[l&&"asterisk"]},u=Ie(d,u1,t);return{...t,...u}},f1=ie(Ty,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ni.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ot(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ma=T.forwardRef(function(t,n){const o=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:d,...u}=o,f=Nn();let p=a;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const y=_r({props:o,muiFormControl:f,states:["size","variant","required","focused"]}),w={...o,disableAnimation:r,formControl:f,shrink:p,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=h1(w);return E.jsx(f1,{"data-shrink":p,ref:n,className:Se(b.root,d),...u,ownerState:w,classes:b})});process.env.NODE_ENV!=="production"&&(ma.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["normal","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Ko=T.createContext({});process.env.NODE_ENV!=="production"&&(Ko.displayName="ListContext");function p1(e){return Me("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const m1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},p1,t)},g1=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fc=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:u,...f}=o,p=T.useMemo(()=>({dense:l}),[l]),y={...o,component:a,dense:l,disablePadding:d},w=m1(y);return E.jsx(Ko.Provider,{value:p,children:E.jsxs(g1,{as:a,className:Se(w.root,i),ref:n,ownerState:y,...f,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(fc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function y1(e){return Me("MuiListItem",e)}Pe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const v1=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function b1(e){return Me("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const w1=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},b1,n)},C1=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Qu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=T.useContext(Ko),l={...o,disableGutters:a.disableGutters},d=w1(l);return E.jsx(C1,{className:Se(d.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Qu.muiName="ListItemSecondaryAction";const S1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},_1=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ie({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},y1,n)},x1=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:S1})(ot(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${v1.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),R1=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ky=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:d={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:w=!1,disableGutters:b=!1,disablePadding:m=!1,divider:v=!1,secondaryAction:D,slotProps:k={},slots:x={},...S}=o,C=T.useContext(Ko),O=T.useMemo(()=>({dense:w||C.dense||!1,alignItems:r,disableGutters:b}),[r,C.dense,w,b]),I=T.useRef(null),F=T.Children.toArray(i),z=F.length&&Pi(F[F.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:O.dense,disableGutters:b,disablePadding:m,divider:v,hasSecondaryAction:z},$=_1(R),K=ct(I,n),G=x.root||d.Root||x1,q=k.root||u.root||{},Y={className:Se($.root,q.className,a),...S};let H=l||"li";return z?(H=!Y.component&&!l?"div":H,f==="li"&&(H==="li"?H="div":Y.component==="li"&&(Y.component="div")),E.jsx(Ko.Provider,{value:O,children:E.jsxs(R1,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[E.jsx(G,{...q,...!Gi(G)&&{as:H,ownerState:{...R,...q.ownerState}},...Y,children:F}),F.pop()]})})):E.jsx(Ko.Provider,{value:O,children:E.jsxs(G,{...q,as:H,ref:K,...!Gi(G)&&{ownerState:{...R,...q.ownerState}},...Y,children:[F,D&&E.jsx(Qu,{children:D})]})})});process.env.NODE_ENV!=="production"&&(ky.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Cr(s.node,e=>{const t=T.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(Pi(r,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:ec,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const am=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]);function T1(e){return Me("MuiListItemText",e)}const ws=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),k1=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},T1,t)},E1=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ws.primary}`]:t.primary},{[`& .${ws.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,[`.${Vp.root}:where(& .${ws.primary})`]:{display:"block"},[`.${Vp.root}:where(& .${ws.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),nu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:w}=T.useContext(Ko);let b=d??r,m=f;const v={...o,disableTypography:a,inset:l,primary:!!b,secondary:!!m,dense:w},D=k1(v);return b!=null&&b.type!==bn&&!a&&(b=E.jsx(bn,{variant:w?"body2":"body1",className:D.primary,component:u?.variant?void 0:"span",...u,children:b})),m!=null&&m.type!==bn&&!a&&(m=E.jsx(bn,{variant:"body2",className:D.secondary,color:"textSecondary",...p,children:m})),E.jsxs(E1,{className:Se(D.root,i),ownerState:v,ref:n,...y,children:[b,m]})});process.env.NODE_ENV!=="production"&&(nu.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function yd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ey(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function li(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ey(l,i)||d)l=r(e,l,n);else return l.focus(),!0}return!1}const Py=T.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,w=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ln(()=>{r&&w.current.focus()},[r]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!w.current.style.width;if(x.clientHeight<w.current.clientHeight&&C){const O=`${Wg(er(x))}px`;w.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const m=x=>{const S=w.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){f&&f(x);return}const I=Sn(S).activeElement;if(C==="ArrowDown")x.preventDefault(),li(S,I,u,d,yd);else if(C==="ArrowUp")x.preventDefault(),li(S,I,u,d,lm);else if(C==="Home")x.preventDefault(),li(S,null,u,d,yd);else if(C==="End")x.preventDefault(),li(S,null,u,d,lm);else if(C.length===1){const F=b.current,z=C.toLowerCase(),R=performance.now();F.keys.length>0&&(R-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&z!==F.keys[0]&&(F.repeating=!1)),F.lastTime=R,F.keys.push(z);const $=I&&!F.repeating&&Ey(I,F);F.previousKeyMatched&&($||li(S,I,!1,d,yd,F))?x.preventDefault():F.previousKeyMatched=!1}f&&f(x)},v=ct(w,n);let D=-1;T.Children.forEach(a,(x,S)=>{if(!T.isValidElement(x)){D===S&&(D+=1,D>=a.length&&(D=-1));return}process.env.NODE_ENV!=="production"&&Iu.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
216
|
+
`))}return null}),children:s.oneOfType([s.node,s.func]),container:s.oneOfType([er,s.func]),direction:s.oneOf(["ltr","rtl"]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),transition:s.bool});const dE=ie(gy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ic=T.forwardRef(function(t,n){const o=to(),r=Ge({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:d,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:D,slots:k,slotProps:x,...S}=r,C=k?.root??l?.Root,O={anchorEl:i,container:u,disablePortal:f,keepMounted:p,modifiers:y,open:w,placement:b,popperOptions:m,popperRef:v,transition:D,...S};return E.jsx(dE,{as:a,direction:o?"rtl":"ltr",slots:{root:C},slotProps:x??d,...O,ref:n})});process.env.NODE_ENV!=="production"&&(ic.propTypes={anchorEl:s.oneOfType([er,s.object,s.func]),children:s.oneOfType([s.node,s.func]),component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([er,s.func]),disablePortal:s.bool,keepMounted:s.bool,modifiers:s.arrayOf(s.shape({data:s.object,effect:s.func,enabled:s.bool,fn:s.func,name:s.any,options:s.object,phase:s.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:s.arrayOf(s.string),requiresIfExists:s.arrayOf(s.string)})),open:s.bool.isRequired,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:s.shape({modifiers:s.array,onFirstUpdate:s.func,placement:s.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:s.oneOf(["absolute","fixed"])}),popperRef:zt,slotProps:s.shape({root:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transition:s.bool});const uE=fn(E.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function hE(e){return Me("MuiChip",e)}const Qe=Pe("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),fE=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:i,onDelete:a,clickable:l,variant:d}=e,u={root:["root",d,n&&"disabled",`size${we(o)}`,`color${we(r)}`,l&&"clickable",l&&`clickableColor${we(r)}`,a&&"deletable",a&&`deletableColor${we(r)}`,`${d}${we(r)}`],label:["label",`label${we(o)}`],avatar:["avatar",`avatar${we(o)}`,`avatarColor${we(r)}`],icon:["icon",`icon${we(o)}`,`iconColor${we(i)}`],deleteIcon:["deleteIcon",`deleteIcon${we(o)}`,`deleteIconColor${we(r)}`,`deleteIcon${we(d)}Color${we(r)}`]};return Ie(u,hE,t)},pE=ie("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:i,onDelete:a,size:l,variant:d}=n;return[{[`& .${Qe.avatar}`]:t.avatar},{[`& .${Qe.avatar}`]:t[`avatar${we(l)}`]},{[`& .${Qe.avatar}`]:t[`avatarColor${we(o)}`]},{[`& .${Qe.icon}`]:t.icon},{[`& .${Qe.icon}`]:t[`icon${we(l)}`]},{[`& .${Qe.icon}`]:t[`iconColor${we(r)}`]},{[`& .${Qe.deleteIcon}`]:t.deleteIcon},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(l)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIconColor${we(o)}`]},{[`& .${Qe.deleteIcon}`]:t[`deleteIcon${we(d)}Color${we(o)}`]},t.root,t[`size${we(l)}`],t[`color${we(o)}`],i&&t.clickable,i&&o!=="default"&&t[`clickableColor${we(o)})`],a&&t.deletable,a&&o!=="default"&&t[`deletableColor${we(o)}`],t[d],t[`${d}${we(o)}`]]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Qe.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Qe.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Qe.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Qe.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Qe.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Qe.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Qe.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:tt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:tt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Qe.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Qe.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(gn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:tt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Qe.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Qe.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Qe.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(gn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qe.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Qe.avatar}`]:{marginLeft:4},[`& .${Qe.avatarSmall}`]:{marginLeft:2},[`& .${Qe.icon}`]:{marginLeft:4},[`& .${Qe.iconSmall}`]:{marginLeft:2},[`& .${Qe.deleteIcon}`]:{marginRight:5},[`& .${Qe.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:tt(e.palette[n].main,.7)}`,[`&.${Qe.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Qe.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Qe.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:tt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),mE=ie("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${we(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Xp(e){return e.key==="Backspace"||e.key==="Delete"}const yy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiChip"}),{avatar:r,className:i,clickable:a,color:l="default",component:d,deleteIcon:u,disabled:f=!1,icon:p,label:y,onClick:w,onDelete:b,onKeyDown:m,onKeyUp:v,size:D="medium",variant:k="filled",tabIndex:x,skipFocusWhenDisabled:S=!1,...C}=o,O=T.useRef(null),I=ct(O,n),F=M=>{M.stopPropagation(),b&&b(M)},z=M=>{M.currentTarget===M.target&&Xp(M)&&M.preventDefault(),m&&m(M)},R=M=>{M.currentTarget===M.target&&b&&Xp(M)&&b(M),v&&v(M)},$=a!==!1&&w?!0:a,K=$||b?br:d||"div",G={...o,component:K,disabled:f,size:D,color:l,iconColor:T.isValidElement(p)&&p.props.color||l,onDelete:!!b,clickable:$,variant:k},q=fE(G),Y=K===br?{component:d||"div",focusVisibleClassName:q.focusVisible,...b&&{disableRipple:!0}}:{};let H=null;b&&(H=u&&T.isValidElement(u)?T.cloneElement(u,{className:Se(u.props.className,q.deleteIcon),onClick:F}):E.jsx(uE,{className:Se(q.deleteIcon),onClick:F}));let ae=null;r&&T.isValidElement(r)&&(ae=T.cloneElement(r,{className:Se(q.avatar,r.props.className)}));let A=null;return p&&T.isValidElement(p)&&(A=T.cloneElement(p,{className:Se(q.icon,p.props.className)})),process.env.NODE_ENV!=="production"&&ae&&A&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one."),E.jsxs(pE,{as:K,className:Se(q.root,i),disabled:$&&f?!0:void 0,onClick:w,onKeyDown:z,onKeyUp:R,ref:I,tabIndex:S&&f?-1:x,ownerState:G,...Y,...C,children:[ae||A,E.jsx(mE,{className:Se(q.label),ownerState:G,children:y}),H]})});process.env.NODE_ENV!=="production"&&(yy.propTypes={avatar:s.element,children:tR,classes:s.object,className:s.string,clickable:s.bool,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,deleteIcon:s.element,disabled:s.bool,icon:s.element,label:s.node,onClick:s.func,onDelete:s.func,onKeyDown:s.func,onKeyUp:s.func,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),skipFocusWhenDisabled:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,variant:s.oneOfType([s.oneOf(["filled","outlined"]),s.string])});function qa(e){return parseInt(e,10)||0}const gE={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function yE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const vy=T.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:a,value:l,...d}=t,{current:u}=T.useRef(l!=null),f=T.useRef(null),p=ct(n,f),y=T.useRef(null),w=T.useRef(null),b=T.useCallback(()=>{const D=f.current,x=tr(D).getComputedStyle(D);if(x.width==="0px")return{outerHeightStyle:0,overflowing:!1};const S=w.current;S.style.width=x.width,S.value=D.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
217
|
+
`&&(S.value+=" ");const C=x.boxSizing,O=qa(x.paddingBottom)+qa(x.paddingTop),I=qa(x.borderBottomWidth)+qa(x.borderTopWidth),F=S.scrollHeight;S.value="x";const z=S.scrollHeight;let R=F;i&&(R=Math.max(Number(i)*z,R)),r&&(R=Math.min(Number(r)*z,R)),R=Math.max(R,z);const $=R+(C==="border-box"?O+I:0),K=Math.abs(R-F)<=1;return{outerHeightStyle:$,overflowing:K}},[r,i,t.placeholder]),m=T.useCallback(()=>{const D=b();if(yE(D))return;const k=D.outerHeightStyle,x=f.current;y.current!==k&&(y.current=k,x.style.height=`${k}px`),x.style.overflow=D.overflowing?"hidden":""},[b]);ln(()=>{const D=()=>{m()};let k;const x=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{D()})},S=jg(D),C=f.current,O=tr(C);O.addEventListener("resize",S);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(process.env.NODE_ENV==="test"?x:D),I.observe(C)),()=>{S.clear(),cancelAnimationFrame(k),O.removeEventListener("resize",S),I&&I.disconnect()}},[b,m]),ln(()=>{m()});const v=D=>{u||m(),o&&o(D)};return E.jsxs(T.Fragment,{children:[E.jsx("textarea",{value:l,onChange:v,ref:p,rows:i,style:a,...d}),E.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...gE.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(vy.propTypes={className:s.string,maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),onChange:s.func,placeholder:s.string,style:s.object,value:s.oneOfType([s.arrayOf(s.string),s.number,s.string])});function Gi(e){return typeof e=="string"}function _r({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const fa=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(fa.displayName="FormControlContext");function Nn(){return T.useContext(fa)}function Zp(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function kl(e,t=!1){return e&&(Zp(e.value)&&e.value!==""||t&&Zp(e.defaultValue)&&e.defaultValue!=="")}function vE(e){return e.startAdornment}function bE(e){return Me("MuiInputBase",e)}const Ls=Pe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Qp;const ac=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${we(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},lc=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},wE=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:d,hiddenLabel:u,multiline:f,readOnly:p,size:y,startAdornment:w,type:b}=e,m={root:["root",`color${we(n)}`,o&&"disabled",r&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",y&&y!=="medium"&&`size${we(y)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",o&&"disabled",b==="search"&&"inputTypeSearch",f&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Ie(m,bE,t)},cc=ie("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ac})(ot(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ls.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),dc=ie("input",{name:"MuiInputBase",slot:"Input",overridesResolver:lc})(ot(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ls.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Ls.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Jp=KR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),uc=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,color:d,components:u={},componentsProps:f={},defaultValue:p,disabled:y,disableInjectingGlobalStyles:w,endAdornment:b,error:m,fullWidth:v=!1,id:D,inputComponent:k="input",inputProps:x={},inputRef:S,margin:C,maxRows:O,minRows:I,multiline:F=!1,name:z,onBlur:R,onChange:$,onClick:K,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:H,readOnly:ae,renderSuffix:A,rows:M,size:L,slotProps:B={},slots:ne={},startAdornment:oe,type:se="text",value:j,...ee}=o,J=x.value!=null?x.value:j,{current:te}=T.useRef(J!=null),ce=T.useRef(),le=T.useCallback(Be=>{process.env.NODE_ENV!=="production"&&Be&&Be.nodeName!=="INPUT"&&!Be.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
218
|
+
`))},[]),he=ct(ce,S,x.ref,le),[W,re]=T.useState(!1),Z=Nn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(Z)return Z.registerEffect()},[Z]);const fe=_r({props:o,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});fe.focused=Z?Z.focused:W,T.useEffect(()=>{!Z&&y&&W&&(re(!1),R&&R())},[Z,y,W,R]);const pe=Z&&Z.onFilled,be=Z&&Z.onEmpty,ge=T.useCallback(Be=>{kl(Be)?pe&&pe():be&&be()},[pe,be]);ln(()=>{te&&ge({value:J})},[J,ge,te]);const Re=Be=>{G&&G(Be),x.onFocus&&x.onFocus(Be),Z&&Z.onFocus?Z.onFocus(Be):re(!0)},Ve=Be=>{R&&R(Be),x.onBlur&&x.onBlur(Be),Z&&Z.onBlur?Z.onBlur(Be):re(!1)},Ne=(Be,...rn)=>{if(!te){const dn=Be.target||ce.current;if(dn==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Do(1));ge({value:dn.value})}x.onChange&&x.onChange(Be,...rn),$&&$(Be,...rn)};T.useEffect(()=>{ge(ce.current)},[]);const Je=Be=>{ce.current&&Be.currentTarget===Be.target&&ce.current.focus(),K&&K(Be)};let ke=k,ut=x;F&&ke==="input"&&(M?(process.env.NODE_ENV!=="production"&&(I||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),ut={type:void 0,minRows:M,maxRows:M,...ut}):ut={type:void 0,maxRows:O,minRows:I,...ut},ke=vy);const Yt=Be=>{ge(Be.animationName==="mui-auto-fill-cancel"?ce.current:{value:"x"})};T.useEffect(()=>{Z&&Z.setAdornedStart(!!oe)},[Z,oe]);const rt={...o,color:fe.color||"primary",disabled:fe.disabled,endAdornment:b,error:fe.error,focused:fe.focused,formControl:Z,fullWidth:v,hiddenLabel:fe.hiddenLabel,multiline:F,size:fe.size,startAdornment:oe,type:se},Ot=wE(rt),Ut=ne.root||u.Root||cc,Lt=B.root||f.root||{},Ue=ne.input||u.Input||dc;return ut={...ut,...B.input??f.input},E.jsxs(T.Fragment,{children:[!w&&typeof Jp=="function"&&(Qp||(Qp=E.jsx(Jp,{}))),E.jsxs(Ut,{...Lt,ref:n,onClick:Je,...ee,...!Gi(Ut)&&{ownerState:{...rt,...Lt.ownerState}},className:Se(Ot.root,Lt.className,l,ae&&"MuiInputBase-readOnly"),children:[oe,E.jsx(fa.Provider,{value:null,children:E.jsx(Ue,{"aria-invalid":fe.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:p,disabled:fe.disabled,id:D,onAnimationStart:Yt,name:z,placeholder:H,readOnly:ae,required:fe.required,rows:M,value:J,onKeyDown:q,onKeyUp:Y,type:se,...ut,...!Gi(Ue)&&{as:ke,ownerState:{...rt,...ut.ownerState}},ref:he,className:Se(Ot.input,ut.className,ae&&"MuiInputBase-readOnly"),onBlur:Ve,onChange:Ne,onFocus:Re})}),b,A?A({...fe,startAdornment:oe}):null]})]})});process.env.NODE_ENV!=="production"&&(uc.propTypes={"aria-describedby":s.string,autoComplete:s.string,autoFocus:s.bool,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableInjectingGlobalStyles:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:ec,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClick:s.func,onFocus:s.func,onInvalid:s.func,onKeyDown:s.func,onKeyUp:s.func,placeholder:s.string,readOnly:s.bool,renderSuffix:s.func,required:s.bool,rows:s.oneOfType([s.number,s.string]),size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});function CE(e){return Me("MuiInput",e)}const ai={...Ls,...Pe("MuiInput",["root","underline","input"])};function SE(e){return Me("MuiOutlinedInput",e)}const bo={...Ls,...Pe("MuiOutlinedInput",["root","notchedOutline","input"])};function _E(e){return Me("MuiFilledInput",e)}const kr={...Ls,...Pe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},xE=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),RE={entering:{opacity:1},entered:{opacity:1}},Gr=T.forwardRef(function(t,n){const o=qr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:d,in:u,onEnter:f,onEntered:p,onEntering:y,onExit:w,onExited:b,onExiting:m,style:v,timeout:D=r,TransitionComponent:k=no,...x}=t,S=T.useRef(null),C=ct(S,zs(l),n),O=q=>Y=>{if(q){const H=S.current;Y===void 0?q(H):q(H,Y)}},I=O(y),F=O((q,Y)=>{oy(q);const H=_l({style:v,timeout:D,easing:d},{mode:"enter"});q.style.webkitTransition=o.transitions.create("opacity",H),q.style.transition=o.transitions.create("opacity",H),f&&f(q,Y)}),z=O(p),R=O(m),$=O(q=>{const Y=_l({style:v,timeout:D,easing:d},{mode:"exit"});q.style.webkitTransition=o.transitions.create("opacity",Y),q.style.transition=o.transitions.create("opacity",Y),w&&w(q)}),K=O(b),G=q=>{i&&i(S.current,q)};return E.jsx(k,{appear:a,in:u,nodeRef:S,onEnter:F,onEntered:z,onEntering:I,onExit:$,onExited:K,onExiting:R,addEndListener:G,timeout:D,...x,children:(q,Y)=>T.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!u?"hidden":void 0,...RE[q],...v,...l.props.style},ref:C,...Y})})});process.env.NODE_ENV!=="production"&&(Gr.propTypes={addEndListener:s.func,appear:s.bool,children:Hs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});function TE(e){return Me("MuiBackdrop",e)}Pe("MuiBackdrop",["root","invisible"]);const kE=e=>{const{ownerState:t,...n}=e;return n},EE=e=>{const{classes:t,invisible:n}=e;return Ie({root:["root",n&&"invisible"]},TE,t)},PE=ie("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"}}]}),zu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiBackdrop"}),{children:r,className:i,component:a="div",invisible:l=!1,open:d,components:u={},componentsProps:f={},slotProps:p={},slots:y={},TransitionComponent:w,transitionDuration:b,...m}=o,v={...o,component:a,invisible:l},D=EE(v),k={transition:w,root:u.Root,...y},x={...f,...p},S={slots:k,slotProps:x},[C,O]=Dn("root",{elementType:PE,externalForwardedProps:S,className:Se(D.root,i),ownerState:v}),[I,F]=Dn("transition",{elementType:Gr,externalForwardedProps:S,ownerState:v}),z=kE(F);return E.jsx(I,{in:d,timeout:b,...m,...z,children:E.jsx(C,{"aria-hidden":!0,...O,classes:D,ref:n,children:r})})});process.env.NODE_ENV!=="production"&&(zu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),invisible:s.bool,open:s.bool.isRequired,slotProps:s.shape({root:s.oneOfType([s.func,s.object]),transition:s.oneOfType([s.func,s.object])}),slots:s.shape({root:s.elementType,transition:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});const DE=Pe("MuiBox",["root"]),OE=Jg(),oo=Px({themeId:ra,defaultTheme:OE,defaultClassName:DE.root,generateClassName:Eg.generate});process.env.NODE_ENV!=="production"&&(oo.propTypes={children:s.node,component:s.elementType,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function ME(e){return Me("MuiButton",e)}const hs=Pe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),by=T.createContext({});process.env.NODE_ENV!=="production"&&(by.displayName="ButtonGroupContext");const wy=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(wy.displayName="ButtonGroupButtonContext");const IE=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e,l={root:["root",i,`${i}${we(t)}`,`size${we(r)}`,`${i}Size${we(r)}`,`color${we(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${we(r)}`],endIcon:["icon","endIcon",`iconSize${we(r)}`]},d=Ie(l,ME,a);return{...a,...d}},Cy=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],NE=ie(br,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${we(n.color)}`],t[`size${we(n.size)}`],t[`${n.variant}Size${we(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(ot(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${hs.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${hs.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${hs.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${hs.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(gn()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:tt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${hs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hs.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),AE=ie("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Cy]}),FE=ie("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${we(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Cy]}),ko=T.forwardRef(function(t,n){const o=T.useContext(by),r=T.useContext(wy),i=Bi(o,t),a=Ge({props:i,name:"MuiButton"}),{children:l,color:d="primary",component:u="button",className:f,disabled:p=!1,disableElevation:y=!1,disableFocusRipple:w=!1,endIcon:b,focusVisibleClassName:m,fullWidth:v=!1,size:D="medium",startIcon:k,type:x,variant:S="text",...C}=a,O={...a,color:d,component:u,disabled:p,disableElevation:y,disableFocusRipple:w,fullWidth:v,size:D,type:x,variant:S},I=IE(O),F=k&&E.jsx(AE,{className:I.startIcon,ownerState:O,children:k}),z=b&&E.jsx(FE,{className:I.endIcon,ownerState:O,children:b}),R=r||"";return E.jsxs(NE,{ownerState:O,className:Se(o.className,I.root,f,R),component:u,disabled:p,focusRipple:!w,focusVisibleClassName:Se(I.focusVisible,m),ref:n,type:x,...C,classes:I,children:[F,l,z]})});process.env.NODE_ENV!=="production"&&(ko.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["inherit","primary","secondary","success","error","info","warning"]),s.string]),component:s.elementType,disabled:s.bool,disableElevation:s.bool,disableFocusRipple:s.bool,disableRipple:s.bool,endIcon:s.node,focusVisibleClassName:s.string,fullWidth:s.bool,href:s.string,size:s.oneOfType([s.oneOf(["small","medium","large"]),s.string]),startIcon:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.oneOfType([s.oneOf(["button","reset","submit"]),s.string]),variant:s.oneOfType([s.oneOf(["contained","outlined","text"]),s.string])});function LE(e){return Me("PrivateSwitchBase",e)}Pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $E=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,i={root:["root",n&&"checked",o&&"disabled",r&&`edge${we(r)}`],input:["input"]};return Ie(i,LE,t)},VE=ie(br)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),jE=ie("input",{shouldForwardProp:Tn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Sy=T.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:i,className:a,defaultChecked:l,disabled:d,disableFocusRipple:u=!1,edge:f=!1,icon:p,id:y,inputProps:w,inputRef:b,name:m,onBlur:v,onChange:D,onFocus:k,readOnly:x,required:S=!1,tabIndex:C,type:O,value:I,...F}=t,[z,R]=ho({controlled:r,default:!!l,name:"SwitchBase",state:"checked"}),$=Nn(),K=M=>{k&&k(M),$&&$.onFocus&&$.onFocus(M)},G=M=>{v&&v(M),$&&$.onBlur&&$.onBlur(M)},q=M=>{if(M.nativeEvent.defaultPrevented)return;const L=M.target.checked;R(L),D&&D(M,L)};let Y=d;$&&typeof Y>"u"&&(Y=$.disabled);const H=O==="checkbox"||O==="radio",ae={...t,checked:z,disabled:Y,disableFocusRipple:u,edge:f},A=$E(ae);return E.jsxs(VE,{component:"span",className:Se(A.root,a),centerRipple:!0,focusRipple:!u,disabled:Y,tabIndex:null,role:void 0,onFocus:K,onBlur:G,ownerState:ae,ref:n,...F,children:[E.jsx(jE,{autoFocus:o,checked:r,defaultChecked:l,className:A.input,disabled:Y,id:H?y:void 0,name:m,onChange:q,readOnly:x,ref:b,required:S,ownerState:ae,tabIndex:C,type:O,...O==="checkbox"&&I===void 0?{}:{value:I},...w}),z?i:p]})});process.env.NODE_ENV!=="production"&&(Sy.propTypes={autoFocus:s.bool,checked:s.bool,checkedIcon:s.node.isRequired,classes:s.object,className:s.string,defaultChecked:s.bool,disabled:s.bool,disableFocusRipple:s.bool,edge:s.oneOf(["end","start",!1]),icon:s.node.isRequired,id:s.string,inputProps:s.object,inputRef:zt,name:s.string,onBlur:s.func,onChange:s.func,onFocus:s.func,readOnly:s.bool,required:s.bool,sx:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.string.isRequired,value:s.any});const BE=fn(E.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"),WE=fn(E.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"),HE=fn(E.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 zE(e){return Me("MuiCheckbox",e)}const pd=Pe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),YE=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,i={root:["root",n&&"indeterminate",`color${we(o)}`,`size${we(r)}`]},a=Ie(i,zE,t);return{...t,...a}},UE=ie(Sy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${we(n.size)}`],n.color!=="default"&&t[`color${we(n.color)}`]]}})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${pd.checked}, &.${pd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),qE=E.jsx(WE,{}),GE=E.jsx(BE,{}),KE=E.jsx(HE,{}),hc=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiCheckbox"}),{checkedIcon:r=qE,color:i="primary",icon:a=GE,indeterminate:l=!1,indeterminateIcon:d=KE,inputProps:u,size:f="medium",disableRipple:p=!1,className:y,...w}=o,b=l?d:a,m=l?d:r,v={...o,disableRipple:p,color:i,indeterminate:l,size:f},D=YE(v);return E.jsx(UE,{type:"checkbox",inputProps:{"data-indeterminate":l,...u},icon:T.cloneElement(b,{fontSize:b.props.fontSize??f}),checkedIcon:T.cloneElement(m,{fontSize:m.props.fontSize??f}),ownerState:v,ref:n,className:Se(D.root,y),disableRipple:p,...w,classes:D})});process.env.NODE_ENV!=="production"&&(hc.propTypes={checked:s.bool,checkedIcon:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["default","primary","secondary","error","info","success","warning"]),s.string]),defaultChecked:s.bool,disabled:s.bool,disableRipple:s.bool,icon:s.node,id:s.string,indeterminate:s.bool,indeterminateIcon:s.node,inputProps:s.object,inputRef:zt,onChange:s.func,required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function XE(e){const t=Sn(e);return t.body===e?tr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Mi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function em(e){return parseInt(tr(e).getComputedStyle(e).paddingRight,10)||0}function ZE(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function tm(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,a=>{const l=!i.includes(a),d=!ZE(a);l&&d&&Mi(a,r)})}function md(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function QE(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(XE(o)){const a=Wg(tr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${em(o)+a}px`;const l=Sn(o).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${em(d)+a}px`})}let i;if(o.parentNode instanceof DocumentFragment)i=Sn(o).body;else{const a=o.parentElement,l=tr(o);i=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:o}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function JE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class eP{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Mi(t.modalRef,!1);const r=JE(n);tm(n,t.mount,t.modalRef,r,!0);const i=md(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=md(this.containers,i=>i.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=QE(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=md(this.containers,a=>a.modals.includes(t)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(o,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Mi(t.modalRef,n),tm(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Mi(a.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const tP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function nP(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function oP(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function rP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||oP(e))}function sP(e){const t=[],n=[];return Array.from(e.querySelectorAll(tP)).forEach((o,r)=>{const i=nP(o);i===-1||!rP(o)||(i===0?t.push(o):n.push({documentOrder:r,tabIndex:i,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function iP(){return!0}function Ki(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=sP,isEnabled:a=iP,open:l}=e,d=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),p=T.useRef(null),y=T.useRef(null),w=T.useRef(!1),b=T.useRef(null),m=ct(zs(t),b),v=T.useRef(null);T.useEffect(()=>{!l||!b.current||(w.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!b.current)return;const x=Sn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
219
|
+
`)),b.current.setAttribute("tabIndex","-1")),w.current&&b.current.focus()),()=>{r||(p.current&&p.current.focus&&(d.current=!0,p.current.focus()),p.current=null)}},[l]),T.useEffect(()=>{if(!l||!b.current)return;const x=Sn(b.current),S=I=>{v.current=I,!(o||!a()||I.key!=="Tab")&&x.activeElement===b.current&&I.shiftKey&&(d.current=!0,f.current&&f.current.focus())},C=()=>{const I=b.current;if(I===null)return;if(!x.hasFocus()||!a()||d.current){d.current=!1;return}if(I.contains(x.activeElement)||o&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==y.current)y.current=null;else if(y.current!==null)return;if(!w.current)return;let F=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(F=i(b.current)),F.length>0){const z=!!(v.current?.shiftKey&&v.current?.key==="Tab"),R=F[0],$=F[F.length-1];typeof R!="string"&&typeof $!="string"&&(z?$.focus():R.focus())}else I.focus()};x.addEventListener("focusin",C),x.addEventListener("keydown",S,!0);const O=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&C()},50);return()=>{clearInterval(O),x.removeEventListener("focusin",C),x.removeEventListener("keydown",S,!0)}},[n,o,r,a,l,i]);const D=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0,y.current=x.target;const S=t.props.onFocus;S&&S(x)},k=x=>{p.current===null&&(p.current=x.relatedTarget),w.current=!0};return E.jsxs(T.Fragment,{children:[E.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:m,onFocus:D}),E.jsx("div",{tabIndex:l?0:-1,onFocus:k,ref:f,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Ki.propTypes={children:Hs,disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableRestoreFocus:s.bool,getTabbable:s.func,isEnabled:s.func,open:s.bool.isRequired});process.env.NODE_ENV!=="production"&&(Ki.propTypes=Vg(Ki.propTypes));function aP(e){return typeof e=="function"?e():e}function lP(e){return e?e.props.hasOwnProperty("in"):!1}const Ga=new eP;function cP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:d,open:u,rootRef:f}=e,p=T.useRef({}),y=T.useRef(null),w=T.useRef(null),b=ct(w,f),[m,v]=T.useState(!u),D=lP(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const x=()=>Sn(y.current),S=()=>(p.current.modalRef=w.current,p.current.mount=y.current,p.current),C=()=>{Ga.mount(S(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},O=Te(()=>{const Y=aP(t)||x().body;Ga.add(S(),Y),w.current&&C()}),I=()=>Ga.isTopModal(S()),F=Te(Y=>{y.current=Y,Y&&(u&&I()?C():w.current&&Mi(w.current,k))}),z=T.useCallback(()=>{Ga.remove(S(),k)},[k]);T.useEffect(()=>()=>{z()},[z]),T.useEffect(()=>{u?O():(!D||!r)&&z()},[u,z,D,r,O]);const R=Y=>H=>{Y.onKeyDown?.(H),!(H.key!=="Escape"||H.which===229||!I())&&(n||(H.stopPropagation(),d&&d(H,"escapeKeyDown")))},$=Y=>H=>{Y.onClick?.(H),H.target===H.currentTarget&&d&&d(H,"backdropClick")};return{getRootProps:(Y={})=>{const H=Ug(e);delete H.onTransitionEnter,delete H.onTransitionExited;const ae={...H,...Y};return{role:"presentation",...ae,onKeyDown:R(ae),ref:b}},getBackdropProps:(Y={})=>{const H=Y;return{"aria-hidden":!0,...H,onClick:$(H),open:u}},getTransitionProps:()=>{const Y=()=>{v(!1),i&&i()},H=()=>{v(!0),a&&a(),r&&z()};return{onEnter:yp(Y,l?.props.onEnter),onExited:yp(H,l?.props.onExited)}},rootRef:b,portalRef:F,isTopModal:I,exited:m,hasTransition:D}}function dP(e){return Me("MuiModal",e)}Pe("MuiModal",["root","hidden","backdrop"]);const uP=e=>{const{open:t,exited:n,classes:o}=e;return Ie({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},dP,o)},hP=ie("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ot(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),fP=ie(zu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Yu=T.forwardRef(function(t,n){const o=Ge({name:"MuiModal",props:t}),{BackdropComponent:r=fP,BackdropProps:i,classes:a,className:l,closeAfterTransition:d=!1,children:u,container:f,component:p,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:v=!1,disablePortal:D=!1,disableRestoreFocus:k=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onBackdropClick:O,onClose:I,onTransitionEnter:F,onTransitionExited:z,open:R,slotProps:$={},slots:K={},theme:G,...q}=o,Y={...o,closeAfterTransition:d,disableAutoFocus:b,disableEnforceFocus:m,disableEscapeKeyDown:v,disablePortal:D,disableRestoreFocus:k,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:H,getBackdropProps:ae,getTransitionProps:A,portalRef:M,isTopModal:L,exited:B,hasTransition:ne}=cP({...Y,rootRef:n}),oe={...Y,exited:B},se=uP(oe),j={};if(u.props.tabIndex===void 0&&(j.tabIndex="-1"),ne){const{onEnter:W,onExited:re}=A();j.onEnter=W,j.onExited=re}const ee={...q,slots:{root:y.Root,backdrop:y.Backdrop,...K},slotProps:{...w,...$}},[J,te]=Dn("root",{elementType:hP,externalForwardedProps:ee,getSlotProps:H,additionalProps:{ref:n,as:p},ownerState:oe,className:Se(l,se?.root,!oe.open&&oe.exited&&se?.hidden)}),[ce,le]=Dn("backdrop",{elementType:r,externalForwardedProps:ee,additionalProps:i,getSlotProps:W=>ae({...W,onClick:re=>{O&&O(re),W?.onClick&&W.onClick(re)}}),className:Se(i?.className,se?.backdrop),ownerState:oe}),he=ct(i?.ref,le.ref);return!C&&!R&&(!ne||B)?null:E.jsx(qi,{ref:M,container:f,disablePortal:D,children:E.jsxs(J,{...te,children:[!S&&r?E.jsx(ce,{...le,ref:he}):null,E.jsx(Ki,{disableEnforceFocus:m,disableAutoFocus:b,disableRestoreFocus:k,isEnabled:L,open:R,children:T.cloneElement(u,j)})]})})});process.env.NODE_ENV!=="production"&&(Yu.propTypes={BackdropComponent:s.elementType,BackdropProps:s.object,children:Hs.isRequired,classes:s.object,className:s.string,closeAfterTransition:s.bool,component:s.elementType,components:s.shape({Backdrop:s.elementType,Root:s.elementType}),componentsProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),container:s.oneOfType([er,s.func]),disableAutoFocus:s.bool,disableEnforceFocus:s.bool,disableEscapeKeyDown:s.bool,disablePortal:s.bool,disableRestoreFocus:s.bool,disableScrollLock:s.bool,hideBackdrop:s.bool,keepMounted:s.bool,onBackdropClick:s.func,onClose:s.func,onTransitionEnter:s.func,onTransitionExited:s.func,open:s.bool.isRequired,slotProps:s.shape({backdrop:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({backdrop:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function pP(e){return Me("MuiDialog",e)}const Ii=Pe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Uu=T.createContext({});process.env.NODE_ENV!=="production"&&(Uu.displayName="DialogContext");const mP=ie(zu,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gP=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${we(n)}`],paper:["paper",`paperScroll${we(n)}`,`paperWidth${we(String(o))}`,r&&"paperFullWidth",i&&"paperFullScreen"]};return Ie(a,pP,t)},yP=ie(Yu,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),vP=ie("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${we(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"}}}]}),bP=ie(Ys,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${we(n.scroll)}`],t[`paperWidth${we(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ot(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Ii.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Ii.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Ii.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),qu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialog"}),r=qr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:f,children:p,className:y,disableEscapeKeyDown:w=!1,fullScreen:b=!1,fullWidth:m=!1,maxWidth:v="sm",onBackdropClick:D,onClick:k,onClose:x,open:S,PaperComponent:C=Ys,PaperProps:O={},scroll:I="paper",TransitionComponent:F=Gr,transitionDuration:z=i,TransitionProps:R,...$}=o,K={...o,disableEscapeKeyDown:w,fullScreen:b,fullWidth:m,maxWidth:v,scroll:I},G=gP(K),q=T.useRef(),Y=M=>{q.current=M.target===M.currentTarget},H=M=>{k&&k(M),q.current&&(q.current=null,D&&D(M),x&&x(M,"backdropClick"))},ae=sr(l),A=T.useMemo(()=>({titleId:ae}),[ae]);return E.jsx(yP,{className:Se(G.root,y),closeAfterTransition:!0,components:{Backdrop:mP},componentsProps:{backdrop:{transitionDuration:z,as:u,...f}},disableEscapeKeyDown:w,onClose:x,open:S,ref:n,onClick:H,ownerState:K,...$,children:E.jsx(F,{appear:!0,in:S,timeout:z,role:"presentation",...R,children:E.jsx(vP,{className:Se(G.container),onMouseDown:Y,ownerState:K,children:E.jsx(bP,{as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":ae,"aria-modal":d,...O,className:Se(G.paper,O.className),ownerState:K,children:E.jsx(Uu.Provider,{value:A,children:p})})})})})});process.env.NODE_ENV!=="production"&&(qu.propTypes={"aria-describedby":s.string,"aria-labelledby":s.string,"aria-modal":s.oneOfType([s.oneOf(["false","true"]),s.bool]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,disableEscapeKeyDown:s.bool,fullScreen:s.bool,fullWidth:s.bool,maxWidth:s.oneOfType([s.oneOf(["xs","sm","md","lg","xl",!1]),s.string]),onBackdropClick:s.func,onClick:s.func,onClose:s.func,open:s.bool.isRequired,PaperComponent:s.elementType,PaperProps:s.object,scroll:s.oneOf(["body","paper"]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function wP(e){return Me("MuiDialogActions",e)}Pe("MuiDialogActions",["root","spacing"]);const CP=e=>{const{classes:t,disableSpacing:n}=e;return Ie({root:["root",!n&&"spacing"]},wP,t)},SP=ie("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Gu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:i=!1,...a}=o,l={...o,disableSpacing:i},d=CP(l);return E.jsx(SP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Gu.propTypes={children:s.node,classes:s.object,className:s.string,disableSpacing:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function _P(e){return Me("MuiDialogContent",e)}Pe("MuiDialogContent",["root","dividers"]);function xP(e){return Me("MuiDialogTitle",e)}const RP=Pe("MuiDialogTitle",["root"]),TP=e=>{const{classes:t,dividers:n}=e;return Ie({root:["root",n&&"dividers"]},_P,t)},kP=ie("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ot(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${RP.root} + &`]:{paddingTop:0}}}]}))),Ku=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogContent"}),{className:r,dividers:i=!1,...a}=o,l={...o,dividers:i},d=TP(l);return E.jsx(kP,{className:Se(d.root,r),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ku.propTypes={children:s.node,classes:s.object,className:s.string,dividers:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function EP(e){return Me("MuiDialogContentText",e)}Pe("MuiDialogContentText",["root"]);const PP=e=>{const{classes:t}=e,o=Ie({root:["root"]},EP,t);return{...t,...o}},DP=ie(bn,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_y=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogContentText"}),{children:r,className:i,...a}=o,l=PP(a);return E.jsx(DP,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:a,className:Se(l.root,i),...o,classes:l})});process.env.NODE_ENV!=="production"&&(_y.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const OP=e=>{const{classes:t}=e;return Ie({root:["root"]},xP,t)},MP=ie(bn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),xy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDialogTitle"}),{className:r,id:i,...a}=o,l=o,d=OP(l),{titleId:u=i}=T.useContext(Uu);return E.jsx(MP,{component:"h2",className:Se(d.root,r),ownerState:l,ref:n,variant:"h6",id:i??u,...a})});process.env.NODE_ENV!=="production"&&(xy.propTypes={children:s.node,classes:s.object,className:s.string,id:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function IP(e){return Me("MuiDivider",e)}const nm=Pe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),NP=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:d}=e;return Ie({root:["root",t&&"absolute",d,i&&"light",a==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},IP,o)},AP=ie("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ot(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:tt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),FP=ie("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ot(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),El=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiDivider"}),{absolute:r=!1,children:i,className:a,orientation:l="horizontal",component:d=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:f=!1,role:p=d!=="hr"?"separator":void 0,textAlign:y="center",variant:w="fullWidth",...b}=o,m={...o,absolute:r,component:d,flexItem:u,light:f,orientation:l,role:p,textAlign:y,variant:w},v=NP(m);return E.jsx(AP,{as:d,className:Se(v.root,a),role:p,ref:n,ownerState:m,"aria-orientation":p==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...b,children:i?E.jsx(FP,{className:v.wrapper,ownerState:m,children:i}):null})});El&&(El.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(El.propTypes={absolute:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,flexItem:s.bool,light:s.bool,orientation:s.oneOf(["horizontal","vertical"]),role:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),textAlign:s.oneOf(["center","left","right"]),variant:s.oneOfType([s.oneOf(["fullWidth","inset","middle"]),s.string])});const LP=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:i,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",i==="small"&&`size${we(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},u=Ie(d,_E,t);return{...t,...u}},$P=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ac(e,t),!n.disableUnderline&&t.underline]}})(ot(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${kr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${kr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${kr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${kr.disabled}, .${kr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${kr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),VP=ie(dc,{name:"MuiFilledInput",slot:"Input",overridesResolver:lc})(ot(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Xi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:u="input",multiline:f=!1,slotProps:p,slots:y={},type:w="text",...b}=o,m={...o,disableUnderline:r,fullWidth:l,inputComponent:u,multiline:f,type:w},v=LP(o),D={root:{ownerState:m},input:{ownerState:m}},k=p??a?Cn(D,p??a):D,x=y.root??i.Root??$P,S=y.input??i.Input??VP;return E.jsx(uc,{slots:{root:x,input:S},componentsProps:k,fullWidth:l,inputComponent:u,multiline:f,ref:n,type:w,...b,classes:v})});process.env.NODE_ENV!=="production"&&(Xi.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Xi&&(Xi.muiName="Input");function jP(e){return Me("MuiFormControl",e)}Pe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const BP=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${we(n)}`,o&&"fullWidth"]};return Ie(r,jP,t)},WP=ie("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${we(e.margin)}`],...e.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%"}}]}),pa=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormControl"}),{children:r,className:i,color:a="primary",component:l="div",disabled:d=!1,error:u=!1,focused:f,fullWidth:p=!1,hiddenLabel:y=!1,margin:w="none",required:b=!1,size:m="medium",variant:v="outlined",...D}=o,k={...o,color:a,component:l,disabled:d,error:u,fullWidth:p,hiddenLabel:y,margin:w,required:b,size:m,variant:v},x=BP(k),[S,C]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{if(!Pi(Y,["Input","Select"]))return;const H=Pi(Y,["Select"])?Y.props.input:Y;H&&vE(H.props)&&(q=!0)}),q}),[O,I]=T.useState(()=>{let q=!1;return r&&T.Children.forEach(r,Y=>{Pi(Y,["Input","Select"])&&(kl(Y.props,!0)||kl(Y.props.inputProps,!0))&&(q=!0)}),q}),[F,z]=T.useState(!1);d&&F&&z(!1);const R=f!==void 0&&!d?f:F;let $;const K=T.useRef(!1);process.env.NODE_ENV!=="production"&&($=()=>(K.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
220
|
+
`)),K.current=!0,()=>{K.current=!1}));const G=T.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:d,error:u,filled:O,focused:R,fullWidth:p,hiddenLabel:y,size:m,onBlur:()=>{z(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{z(!0)},registerEffect:$,required:b,variant:v}),[S,a,d,u,O,R,p,y,$,b,m,v]);return E.jsx(fa.Provider,{value:G,children:E.jsx(WP,{as:l,ownerState:k,className:Se(x.root,i),ref:n,...D,children:r})})});process.env.NODE_ENV!=="production"&&(pa.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,focused:s.bool,fullWidth:s.bool,hiddenLabel:s.bool,margin:s.oneOf(["dense","none","normal"]),required:s.bool,size:s.oneOfType([s.oneOf(["medium","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function HP(e){return Me("MuiFormControlLabel",e)}const ki=Pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),zP=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${we(o)}`,r&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return Ie(a,HP,t)},YP=ie("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ki.label}`]:t.label},t.root,t[`labelPlacement${we(n.labelPlacement)}`]]}})(ot(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ki.disabled}`]:{cursor:"default"},[`& .${ki.label}`]:{[`&.${ki.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),UP=ie("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${ki.error}`]:{color:(e.vars||e).palette.error.main}}))),ul=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormControlLabel"}),{checked:r,className:i,componentsProps:a={},control:l,disabled:d,disableTypography:u,inputRef:f,label:p,labelPlacement:y="end",name:w,onChange:b,required:m,slots:v={},slotProps:D={},value:k,...x}=o,S=Nn(),C=d??l.props.disabled??S?.disabled,O=m??l.props.required,I={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(Y=>{typeof l.props[Y]>"u"&&typeof o[Y]<"u"&&(I[Y]=o[Y])});const F=_r({props:o,muiFormControl:S,states:["error"]}),z={...o,disabled:C,labelPlacement:y,required:O,error:F.error},R=zP(z),$={slots:v,slotProps:{...a,...D}},[K,G]=Dn("typography",{elementType:bn,externalForwardedProps:$,ownerState:z});let q=p;return q!=null&&q.type!==bn&&!u&&(q=E.jsx(K,{component:"span",...G,className:Se(R.label,G?.className),children:q})),E.jsxs(YP,{className:Se(R.root,i),ownerState:z,ref:n,...x,children:[T.cloneElement(l,I),O?E.jsxs("div",{children:[q,E.jsxs(UP,{ownerState:z,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):q]})});process.env.NODE_ENV!=="production"&&(ul.propTypes={checked:s.bool,classes:s.object,className:s.string,componentsProps:s.shape({typography:s.object}),control:s.element.isRequired,disabled:s.bool,disableTypography:s.bool,inputRef:zt,label:s.node,labelPlacement:s.oneOf(["bottom","end","start","top"]),name:s.string,onChange:s.func,required:s.bool,slotProps:s.shape({typography:s.oneOfType([s.func,s.object])}),slots:s.shape({typography:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any});function qP(e){return Me("MuiFormGroup",e)}Pe("MuiFormGroup",["root","row","error"]);const GP=e=>{const{classes:t,row:n,error:o}=e;return Ie({root:["root",n&&"row",o&&"error"]},qP,t)},KP=ie("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"}}]}),Ry=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormGroup"}),{className:r,row:i=!1,...a}=o,l=Nn(),d=_r({props:o,muiFormControl:l,states:["error"]}),u={...o,row:i,error:d.error},f=GP(u);return E.jsx(KP,{className:Se(f.root,r),ownerState:u,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ry.propTypes={children:s.node,classes:s.object,className:s.string,row:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function XP(e){return Me("MuiFormHelperText",e)}const om=Pe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var rm;const ZP=e=>{const{classes:t,contained:n,size:o,disabled:r,error:i,filled:a,focused:l,required:d}=e,u={root:["root",r&&"disabled",i&&"error",o&&`size${we(o)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return Ie(u,XP,t)},QP=ie("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${we(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${om.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${om.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Xu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormHelperText"}),{children:r,className:i,component:a="p",disabled:l,error:d,filled:u,focused:f,margin:p,required:y,variant:w,...b}=o,m=Nn(),v=_r({props:o,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),D={...o,component:a,contained:v.variant==="filled"||v.variant==="outlined",variant:v.variant,size:v.size,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required};delete D.ownerState;const k=ZP(D);return E.jsx(QP,{as:a,className:Se(k.root,i),ref:n,...b,ownerState:D,children:r===" "?rm||(rm=E.jsx("span",{className:"notranslate",children:""})):r})});process.env.NODE_ENV!=="production"&&(Xu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOfType([s.oneOf(["filled","outlined","standard"]),s.string])});function JP(e){return Me("MuiFormLabel",e)}const Ni=Pe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),e1=e=>{const{classes:t,color:n,focused:o,disabled:r,error:i,filled:a,required:l}=e,d={root:["root",`color${we(n)}`,r&&"disabled",i&&"error",a&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return Ie(d,JP,t)},t1=ie("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(ot(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(gn()).map(([t])=>({props:{color:t},style:{[`&.${Ni.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ni.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),n1=ie("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ot(({theme:e})=>({[`&.${Ni.error}`]:{color:(e.vars||e).palette.error.main}}))),Ty=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiFormLabel"}),{children:r,className:i,color:a,component:l="label",disabled:d,error:u,filled:f,focused:p,required:y,...w}=o,b=Nn(),m=_r({props:o,muiFormControl:b,states:["color","required","focused","disabled","error","filled"]}),v={...o,color:m.color||"primary",component:l,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},D=e1(v);return E.jsxs(t1,{as:l,ownerState:v,className:Se(D.root,i),ref:n,...w,children:[r,m.required&&E.jsxs(n1,{ownerState:v,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Ty.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),component:s.elementType,disabled:s.bool,error:s.bool,filled:s.bool,focused:s.bool,required:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function tu(e){return`scale(${e}, ${e**2})`}const o1={entering:{opacity:1,transform:tu(1)},entered:{opacity:1,transform:"none"}},gd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),zr=T.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:a,in:l,onEnter:d,onEntered:u,onEntering:f,onExit:p,onExited:y,onExiting:w,style:b,timeout:m="auto",TransitionComponent:v=no,...D}=t,k=vs(),x=T.useRef(),S=qr(),C=T.useRef(null),O=ct(C,zs(i),n),I=Y=>H=>{if(Y){const ae=C.current;H===void 0?Y(ae):Y(ae,H)}},F=I(f),z=I((Y,H)=>{oy(Y);const{duration:ae,delay:A,easing:M}=_l({style:b,timeout:m,easing:a},{mode:"enter"});let L;m==="auto"?(L=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=L):L=ae,Y.style.transition=[S.transitions.create("opacity",{duration:L,delay:A}),S.transitions.create("transform",{duration:gd?L:L*.666,delay:A,easing:M})].join(","),d&&d(Y,H)}),R=I(u),$=I(w),K=I(Y=>{const{duration:H,delay:ae,easing:A}=_l({style:b,timeout:m,easing:a},{mode:"exit"});let M;m==="auto"?(M=S.transitions.getAutoHeightDuration(Y.clientHeight),x.current=M):M=H,Y.style.transition=[S.transitions.create("opacity",{duration:M,delay:ae}),S.transitions.create("transform",{duration:gd?M:M*.666,delay:gd?ae:ae||M*.333,easing:A})].join(","),Y.style.opacity=0,Y.style.transform=tu(.75),p&&p(Y)}),G=I(y),q=Y=>{m==="auto"&&k.start(x.current||0,Y),o&&o(C.current,Y)};return E.jsx(v,{appear:r,in:l,nodeRef:C,onEnter:z,onEntered:R,onEntering:F,onExit:K,onExited:G,onExiting:$,addEndListener:q,timeout:m==="auto"?null:m,...D,children:(Y,H)=>T.cloneElement(i,{style:{opacity:0,transform:tu(.75),visibility:Y==="exited"&&!l?"hidden":void 0,...o1[Y],...b,...i.props.style},ref:O,...H})})});process.env.NODE_ENV!=="production"&&(zr.propTypes={addEndListener:s.func,appear:s.bool,children:Hs.isRequired,easing:s.oneOfType([s.shape({enter:s.string,exit:s.string}),s.string]),in:s.bool,onEnter:s.func,onEntered:s.func,onEntering:s.func,onExit:s.func,onExited:s.func,onExiting:s.func,style:s.object,timeout:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})])});zr&&(zr.muiSupportAuto=!0);const r1=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},CE,t);return{...t,...r}},s1=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ac(e,t),!n.disableUnderline&&t.underline]}})(ot(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ai.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ai.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ai.disabled}, .${ai.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ai.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(gn()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),i1=ie(dc,{name:"MuiInput",slot:"Input",overridesResolver:lc})({}),Zi=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:u=!1,slotProps:f,slots:p={},type:y="text",...w}=o,b=r1(o),v={root:{ownerState:{disableUnderline:r}}},D=f??a?Cn(f??a,v):v,k=p.root??i.Root??s1,x=p.input??i.Input??i1;return E.jsx(uc,{slots:{root:k,input:x},slotProps:D,fullWidth:l,inputComponent:d,multiline:u,ref:n,type:y,...w,classes:b})});process.env.NODE_ENV!=="production"&&(Zi.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),componentsProps:s.shape({input:s.object,root:s.object}),defaultValue:s.any,disabled:s.bool,disableUnderline:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slotProps:s.shape({input:s.object,root:s.object}),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});Zi&&(Zi.muiName="Input");function a1(e){return Me("MuiInputAdornment",e)}const sm=Pe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var im;const l1=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${we(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},c1=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",r&&`position${we(r)}`,a,o&&"hiddenLabel",i&&`size${we(i)}`]};return Ie(l,a1,t)},d1=ie("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:l1})(ot(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${sm.positionStart}&:not(.${sm.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Zu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiInputAdornment"}),{children:r,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:d=!1,position:u,variant:f,...p}=o,y=Nn()||{};let w=f;f&&y.variant&&process.env.NODE_ENV!=="production"&&f===y.variant&&console.error("MUI: The `InputAdornment` variant infers the variant prop you do not have to provide one."),y&&!w&&(w=y.variant);const b={...o,hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:l,position:u,variant:w},m=c1(b);return E.jsx(fa.Provider,{value:null,children:E.jsx(d1,{as:a,ownerState:b,className:Se(m.root,i),ref:n,...p,children:typeof r=="string"&&!d?E.jsx(bn,{color:"textSecondary",children:r}):E.jsxs(T.Fragment,{children:[u==="start"?im||(im=E.jsx("span",{className:"notranslate",children:""})):null,r]})})})});process.env.NODE_ENV!=="production"&&(Zu.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,disablePointerEvents:s.bool,disableTypography:s.bool,position:s.oneOf(["end","start"]).isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});function u1(e){return Me("MuiInputLabel",e)}Pe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const h1=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:i,variant:a,required:l}=e,d={root:["root",n&&"formControl",!i&&"animated",r&&"shrink",o&&o!=="normal"&&`size${we(o)}`,a],asterisk:[l&&"asterisk"]},u=Ie(d,u1,t);return{...t,...u}},f1=ie(Ty,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ni.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ot(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ma=T.forwardRef(function(t,n){const o=Ge({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:i,shrink:a,variant:l,className:d,...u}=o,f=Nn();let p=a;typeof p>"u"&&f&&(p=f.filled||f.focused||f.adornedStart);const y=_r({props:o,muiFormControl:f,states:["size","variant","required","focused"]}),w={...o,disableAnimation:r,formControl:f,shrink:p,size:y.size,variant:y.variant,required:y.required,focused:y.focused},b=h1(w);return E.jsx(f1,{"data-shrink":p,ref:n,className:Se(b.root,d),...u,ownerState:w,classes:b})});process.env.NODE_ENV!=="production"&&(ma.propTypes={children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["error","info","primary","secondary","success","warning"]),s.string]),disableAnimation:s.bool,disabled:s.bool,error:s.bool,focused:s.bool,margin:s.oneOf(["dense"]),required:s.bool,shrink:s.bool,size:s.oneOfType([s.oneOf(["normal","small"]),s.string]),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),variant:s.oneOf(["filled","outlined","standard"])});const Xo=T.createContext({});process.env.NODE_ENV!=="production"&&(Xo.displayName="ListContext");function p1(e){return Me("MuiList",e)}Pe("MuiList",["root","padding","dense","subheader"]);const m1=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Ie({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},p1,t)},g1=ie("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),fc=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiList"}),{children:r,className:i,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:u,...f}=o,p=T.useMemo(()=>({dense:l}),[l]),y={...o,component:a,dense:l,disablePadding:d},w=m1(y);return E.jsx(Xo.Provider,{value:p,children:E.jsxs(g1,{as:a,className:Se(w.root,i),ref:n,ownerState:y,...f,children:[u,r]})})});process.env.NODE_ENV!=="production"&&(fc.propTypes={children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function y1(e){return Me("MuiListItem",e)}Pe("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const v1=Pe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function b1(e){return Me("MuiListItemSecondaryAction",e)}Pe("MuiListItemSecondaryAction",["root","disableGutters"]);const w1=e=>{const{disableGutters:t,classes:n}=e;return Ie({root:["root",t&&"disableGutters"]},b1,n)},C1=ie("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Qu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItemSecondaryAction"}),{className:r,...i}=o,a=T.useContext(Xo),l={...o,disableGutters:a.disableGutters},d=w1(l);return E.jsx(C1,{className:Se(d.root,r),ownerState:l,ref:n,...i})});process.env.NODE_ENV!=="production"&&(Qu.propTypes={children:s.node,classes:s.object,className:s.string,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});Qu.muiName="ListItemSecondaryAction";const S1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},_1=e=>{const{alignItems:t,classes:n,dense:o,disableGutters:r,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Ie({root:["root",o&&"dense",!r&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},y1,n)},x1=ie("div",{name:"MuiListItem",slot:"Root",overridesResolver:S1})(ot(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${v1.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),R1=ie("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ky=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItem"}),{alignItems:r="center",children:i,className:a,component:l,components:d={},componentsProps:u={},ContainerComponent:f="li",ContainerProps:{className:p,...y}={},dense:w=!1,disableGutters:b=!1,disablePadding:m=!1,divider:v=!1,secondaryAction:D,slotProps:k={},slots:x={},...S}=o,C=T.useContext(Xo),O=T.useMemo(()=>({dense:w||C.dense||!1,alignItems:r,disableGutters:b}),[r,C.dense,w,b]),I=T.useRef(null),F=T.Children.toArray(i),z=F.length&&Pi(F[F.length-1],["ListItemSecondaryAction"]),R={...o,alignItems:r,dense:O.dense,disableGutters:b,disablePadding:m,divider:v,hasSecondaryAction:z},$=_1(R),K=ct(I,n),G=x.root||d.Root||x1,q=k.root||u.root||{},Y={className:Se($.root,q.className,a),...S};let H=l||"li";return z?(H=!Y.component&&!l?"div":H,f==="li"&&(H==="li"?H="div":Y.component==="li"&&(Y.component="div")),E.jsx(Xo.Provider,{value:O,children:E.jsxs(R1,{as:f,className:Se($.container,p),ref:K,ownerState:R,...y,children:[E.jsx(G,{...q,...!Gi(G)&&{as:H,ownerState:{...R,...q.ownerState}},...Y,children:F}),F.pop()]})})):E.jsx(Xo.Provider,{value:O,children:E.jsxs(G,{...q,as:H,ref:K,...!Gi(G)&&{ownerState:{...R,...q.ownerState}},...Y,children:[F,D&&E.jsx(Qu,{children:D})]})})});process.env.NODE_ENV!=="production"&&(ky.propTypes={alignItems:s.oneOf(["center","flex-start"]),children:Cr(s.node,e=>{const t=T.Children.toArray(e.children);let n=-1;for(let o=t.length-1;o>=0;o-=1){const r=t[o];if(Pi(r,["ListItemSecondaryAction"])){n=o;break}}return n!==-1&&n!==t.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:s.object,className:s.string,component:s.elementType,components:s.shape({Root:s.elementType}),componentsProps:s.shape({root:s.object}),ContainerComponent:ec,ContainerProps:s.object,dense:s.bool,disableGutters:s.bool,disablePadding:s.bool,divider:s.bool,secondaryAction:s.node,slotProps:s.shape({root:s.object}),slots:s.shape({root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const am=Pe("MuiListItemIcon",["root","alignItemsFlexStart"]);function T1(e){return Me("MuiListItemText",e)}const ws=Pe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),k1=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:i}=e;return Ie({root:["root",n&&"inset",i&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},T1,t)},E1=ie("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ws.primary}`]:t.primary},{[`& .${ws.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,[`.${Vp.root}:where(& .${ws.primary})`]:{display:"block"},[`.${Vp.root}:where(& .${ws.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),nu=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiListItemText"}),{children:r,className:i,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:p,...y}=o,{dense:w}=T.useContext(Xo);let b=d??r,m=f;const v={...o,disableTypography:a,inset:l,primary:!!b,secondary:!!m,dense:w},D=k1(v);return b!=null&&b.type!==bn&&!a&&(b=E.jsx(bn,{variant:w?"body2":"body1",className:D.primary,component:u?.variant?void 0:"span",...u,children:b})),m!=null&&m.type!==bn&&!a&&(m=E.jsx(bn,{variant:"body2",className:D.secondary,color:"textSecondary",...p,children:m})),E.jsxs(E1,{className:Se(D.root,i),ownerState:v,ref:n,...y,children:[b,m]})});process.env.NODE_ENV!=="production"&&(nu.propTypes={children:s.node,classes:s.object,className:s.string,disableTypography:s.bool,inset:s.bool,primary:s.node,primaryTypographyProps:s.object,secondary:s.node,secondaryTypographyProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function yd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Ey(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function li(e,t,n,o,r,i){let a=!1,l=r(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ey(l,i)||d)l=r(e,l,n);else return l.focus(),!0}return!1}const Py=T.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:f,variant:p="selectedMenu",...y}=t,w=T.useRef(null),b=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ln(()=>{r&&w.current.focus()},[r]),T.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!w.current.style.width;if(x.clientHeight<w.current.clientHeight&&C){const O=`${Wg(tr(x))}px`;w.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const m=x=>{const S=w.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){f&&f(x);return}const I=Sn(S).activeElement;if(C==="ArrowDown")x.preventDefault(),li(S,I,u,d,yd);else if(C==="ArrowUp")x.preventDefault(),li(S,I,u,d,lm);else if(C==="Home")x.preventDefault(),li(S,null,u,d,yd);else if(C==="End")x.preventDefault(),li(S,null,u,d,lm);else if(C.length===1){const F=b.current,z=C.toLowerCase(),R=performance.now();F.keys.length>0&&(R-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&z!==F.keys[0]&&(F.repeating=!1)),F.lastTime=R,F.keys.push(z);const $=I&&!F.repeating&&Ey(I,F);F.previousKeyMatched&&($||li(S,I,!1,d,yd,F))?x.preventDefault():F.previousKeyMatched=!1}f&&f(x)},v=ct(w,n);let D=-1;T.Children.forEach(a,(x,S)=>{if(!T.isValidElement(x)){D===S&&(D+=1,D>=a.length&&(D=-1));return}process.env.NODE_ENV!=="production"&&Iu.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
221
221
|
`)),x.props.disabled||(p==="selectedMenu"&&x.props.selected||D===-1)&&(D=S),D===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(D+=1,D>=a.length&&(D=-1))});const k=T.Children.map(a,(x,S)=>{if(S===D){const C={};return i&&(C.autoFocus=!0),x.props.tabIndex===void 0&&p==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(x,C)}return x});return E.jsx(fc,{role:"menu",ref:v,className:l,onKeyDown:m,tabIndex:r?0:-1,...y,children:k})});process.env.NODE_ENV!=="production"&&(Py.propTypes={autoFocus:s.bool,autoFocusItem:s.bool,children:s.node,className:s.string,disabledItemsFocusable:s.bool,disableListWrap:s.bool,onKeyDown:s.func,variant:s.oneOf(["menu","selectedMenu"])});function P1(e){return Me("MuiPopover",e)}Pe("MuiPopover",["root","paper"]);function cm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function dm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function um(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function hl(e){return typeof e=="function"?e():e}const D1=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},P1,t)},O1=ie(Yu,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Dy=ie(Ys,{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}),Oy=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiPopover"}),{action:r,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:u,className:f,container:p,elevation:y=8,marginThreshold:w=16,open:b,PaperProps:m={},slots:v={},slotProps:D={},transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:x=zr,transitionDuration:S="auto",TransitionProps:{onEntering:C,...O}={},disableScrollLock:I=!1,...F}=o,z=D?.paper??m,R=T.useRef(),$={...o,anchorOrigin:a,anchorReference:d,elevation:y,marginThreshold:w,externalPaperSlotProps:z,transformOrigin:k,TransitionComponent:x,transitionDuration:S,TransitionProps:O},K=D1($),G=T.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const le=hl(i),he=le&&le.nodeType===1?le:Sn(R.current).body,W=he.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const re=he.getBoundingClientRect();process.env.NODE_ENV!=="test"&&re.top===0&&re.left===0&&re.right===0&&re.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
222
|
-
`))}return{top:W.top+cm(W,a.vertical),left:W.left+dm(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,d]),q=T.useCallback(le=>({vertical:cm(le,k.vertical),horizontal:dm(le,k.horizontal)}),[k.horizontal,k.vertical]),Y=T.useCallback(le=>{const he={width:le.offsetWidth,height:le.offsetHeight},W=q(he);if(d==="none")return{top:null,left:null,transformOrigin:um(W)};const re=G();let Z=re.top-W.vertical,fe=re.left-W.horizontal;const pe=Z+he.height,be=fe+he.width,ge=
|
|
223
|
-
`)),w!==null&&fe<w){const Ne=fe-w;fe-=Ne,W.horizontal+=Ne}else if(be>Ve){const Ne=be-Ve;fe-=Ne,W.horizontal+=Ne}return{top:`${Math.round(Z)}px`,left:`${Math.round(fe)}px`,transformOrigin:um(W)}},[i,d,G,q,w]),[H,ae]=T.useState(b),A=T.useCallback(()=>{const le=R.current;if(!le)return;const he=Y(le);he.top!==null&&le.style.setProperty("top",he.top),he.left!==null&&(le.style.left=he.left),le.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);T.useEffect(()=>(I&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[i,I,A]);const M=(le,he)=>{C&&C(le,he),A()},L=()=>{ae(!1)};T.useEffect(()=>{b&&A()}),T.useImperativeHandle(r,()=>b?{updatePosition:()=>{A()}}:null,[b,A]),T.useEffect(()=>{if(!b)return;const le=jg(()=>{A()}),he=
|
|
222
|
+
`))}return{top:W.top+cm(W,a.vertical),left:W.left+dm(W,a.horizontal)}},[i,a.horizontal,a.vertical,l,d]),q=T.useCallback(le=>({vertical:cm(le,k.vertical),horizontal:dm(le,k.horizontal)}),[k.horizontal,k.vertical]),Y=T.useCallback(le=>{const he={width:le.offsetWidth,height:le.offsetHeight},W=q(he);if(d==="none")return{top:null,left:null,transformOrigin:um(W)};const re=G();let Z=re.top-W.vertical,fe=re.left-W.horizontal;const pe=Z+he.height,be=fe+he.width,ge=tr(hl(i)),Re=ge.innerHeight-w,Ve=ge.innerWidth-w;if(w!==null&&Z<w){const Ne=Z-w;Z-=Ne,W.vertical+=Ne}else if(w!==null&&pe>Re){const Ne=pe-Re;Z-=Ne,W.vertical+=Ne}if(process.env.NODE_ENV!=="production"&&he.height>Re&&he.height&&Re&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${he.height-Re}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
223
|
+
`)),w!==null&&fe<w){const Ne=fe-w;fe-=Ne,W.horizontal+=Ne}else if(be>Ve){const Ne=be-Ve;fe-=Ne,W.horizontal+=Ne}return{top:`${Math.round(Z)}px`,left:`${Math.round(fe)}px`,transformOrigin:um(W)}},[i,d,G,q,w]),[H,ae]=T.useState(b),A=T.useCallback(()=>{const le=R.current;if(!le)return;const he=Y(le);he.top!==null&&le.style.setProperty("top",he.top),he.left!==null&&(le.style.left=he.left),le.style.transformOrigin=he.transformOrigin,ae(!0)},[Y]);T.useEffect(()=>(I&&window.addEventListener("scroll",A),()=>window.removeEventListener("scroll",A)),[i,I,A]);const M=(le,he)=>{C&&C(le,he),A()},L=()=>{ae(!1)};T.useEffect(()=>{b&&A()}),T.useImperativeHandle(r,()=>b?{updatePosition:()=>{A()}}:null,[b,A]),T.useEffect(()=>{if(!b)return;const le=jg(()=>{A()}),he=tr(i);return he.addEventListener("resize",le),()=>{le.clear(),he.removeEventListener("resize",le)}},[i,b,A]);let B=S;S==="auto"&&!x.muiSupportAuto&&(B=void 0);const ne=p||(i?Sn(hl(i)).body:void 0),oe={slots:v,slotProps:{...D,paper:z}},[se,j]=Dn("paper",{elementType:Dy,externalForwardedProps:oe,additionalProps:{elevation:y,className:Se(K.paper,z?.className),style:H?z.style:{...z.style,opacity:0}},ownerState:$}),[ee,{slotProps:J,...te}]=Dn("root",{elementType:O1,externalForwardedProps:oe,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:ne,open:b},ownerState:$,className:Se(K.root,f)}),ce=ct(R,j.ref);return E.jsx(ee,{...te,...!Gi(ee)&&{slotProps:J,disableScrollLock:I},...F,ref:n,children:E.jsx(x,{appear:!0,in:b,onEntering:M,onExited:L,timeout:B,...O,children:E.jsx(se,{...j,ref:ce,children:u})})})});process.env.NODE_ENV!=="production"&&(Oy.propTypes={action:zt,anchorEl:Cr(s.oneOfType([er,s.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=hl(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
224
224
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
225
|
-
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([
|
|
226
|
-
`)),H.props.disabled||(v==="selectedMenu"&&H.props.selected||$===-1)&&($=ae))});const K=D.paper??L1,G=k.paper??p,q=pt({elementType:D.root,externalSlotProps:k.root,ownerState:C,className:[O.root,a]}),Y=pt({elementType:K,externalSlotProps:G,ownerState:C,className:O.paper});return E.jsx(F1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?I1:N1,slots:{paper:K,root:D.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:z,...m},ownerState:C,...x,classes:y,children:E.jsx($1,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:I,variant:v,...d,className:Se(O.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(My.propTypes={anchorEl:s.oneOfType([Jo,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function V1(e){return Me("MuiMenuItem",e)}const ci=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),j1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},B1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},V1,a);return{...a,...d}},W1=ie(br,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:j1})(ot(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ci.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ci.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ci.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nm.inset}`]:{marginLeft:52},[`& .${ws.root}`]:{marginTop:0,marginBottom:0},[`& .${ws.inset}`]:{paddingLeft:36},[`& .${am.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${am.root} svg`]:{fontSize:"1.25rem"}}}]}))),Pl=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext(Ko),m=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=T.useRef(null);ln(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const D={...o,dense:m.dense,divider:l,disableGutters:d},k=B1(o),x=ct(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),E.jsx(Ko.Provider,{value:m,children:E.jsx(W1,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(k.focusVisible,u),className:Se(k.root,y),...w,ownerState:D,classes:k})})});process.env.NODE_ENV!=="production"&&(Pl.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function H1(e){return Me("MuiNativeSelect",e)}const Ju=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),z1=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,H1,t)},Iy=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ju.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Y1=ie(Iy,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ju.multiple}`]:t.multiple}]}})({}),Ny=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ju.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),U1=ie(Ny,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Ay=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=z1(f);return E.jsxs(T.Fragment,{children:[E.jsx(Y1,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:E.jsx(U1,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Ay.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var hm;const q1=ie("fieldset",{shouldForwardProp:Tn})({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%"}),G1=ie("legend",{shouldForwardProp:Tn})(ot(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Fy(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return E.jsx(q1,{"aria-hidden":!0,className:o,ownerState:d,...a,children:E.jsx(G1,{ownerState:d,children:l?E.jsx("span",{children:r}):hm||(hm=E.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const K1=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},SE,t);return{...t,...o}},X1=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ac})(ot(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),Z1=ie(Fy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ot(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Q1=ie(dc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:lc})(ot(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),$s=T.forwardRef(function(t,n){var o;const r=Ge({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=K1(r),m=Nn(),v=_r({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},k=p.root??i.Root??X1,x=p.input??i.Input??Q1;return E.jsx(uc,{slots:{root:k,input:x},renderSuffix:S=>E.jsx(Z1,{ownerState:D,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=E.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&($s.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});$s&&($s.muiName="Input");function J1(e){return Me("MuiSelect",e)}const di=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fm;const eD=ie(Iy,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${di.select}`]:t.select},{[`&.${di.select}`]:t[n.variant]},{[`&.${di.error}`]:t.error},{[`&.${di.multiple}`]:t.multiple}]}})({[`&.${di.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tD=ie(Ny,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),nD=ie("input",{shouldForwardProp:e=>ey(e)&&e!=="classes",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 pm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function oD(e){return e==null||typeof e=="string"&&!e.trim()}const rD=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,J1,t)},Ly=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:m,labelId:v,MenuProps:D={},multiple:k,name:x,onBlur:S,onChange:C,onClose:O,onFocus:I,onOpen:F,open:z,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:G,type:q,value:Y,variant:H="standard",...ae}=t,[A,M]=ho({controlled:Y,default:f,name:"Select"}),[L,B]=ho({controlled:z,default:u,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,j]=T.useState(null),{current:ee}=T.useRef(z!=null),[J,te]=T.useState(),ce=ct(n,m),le=T.useCallback(Oe=>{oe.current=Oe,Oe&&j(Oe)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:A}),[A]),T.useEffect(()=>{u&&L&&se&&!ee&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Oe=Sn(oe.current).getElementById(v);if(Oe){const We=()=>{getSelection().isCollapsed&&oe.current.focus()};return Oe.addEventListener("click",We),()=>{Oe.removeEventListener("click",We)}}},[v]);const W=(Oe,We)=>{Oe?F&&F(We):O&&O(We),ee||(te(a?null:he.clientWidth),B(Oe))},re=Oe=>{Oe.button===0&&(Oe.preventDefault(),oe.current.focus(),W(!0,Oe))},Z=Oe=>{W(!1,Oe)},fe=T.Children.toArray(l),pe=Oe=>{const We=fe.find(ht=>ht.props.value===Oe.target.value);We!==void 0&&(M(We.props.value),C&&C(Oe,We))},be=Oe=>We=>{let ht;if(We.currentTarget.hasAttribute("tabindex")){if(k){ht=Array.isArray(A)?A.slice():[];const nn=A.indexOf(Oe.props.value);nn===-1?ht.push(Oe.props.value):ht.splice(nn,1)}else ht=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(We),A!==ht&&(M(ht),C)){const nn=We.nativeEvent||We,An=new nn.constructor(nn.type,nn);Object.defineProperty(An,"target",{writable:!0,value:{value:ht,name:x}}),C(An,Oe)}k||W(!1,We)}},ge=Oe=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),W(!0,Oe))},Re=se!==null&&L,Ve=Oe=>{!Re&&S&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:A,name:x}}),S(Oe))};delete ae["aria-invalid"];let Ne,Je;const ke=[];let ut=!1,Yt=!1;(kl({value:A})||y)&&($?Ne=$(A):ut=!0);const rt=fe.map(Oe=>{if(!T.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&Iu.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
225
|
+
`))}return null}),anchorOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),anchorPosition:s.shape({left:s.number.isRequired,top:s.number.isRequired}),anchorReference:s.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:s.elementType,BackdropProps:s.object,children:s.node,classes:s.object,className:s.string,container:s.oneOfType([er,s.func]),disableScrollLock:s.bool,elevation:Yg,marginThreshold:s.number,onClose:s.func,open:s.bool.isRequired,PaperProps:s.shape({component:ec}),slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transformOrigin:s.shape({horizontal:s.oneOfType([s.oneOf(["center","left","right"]),s.number]).isRequired,vertical:s.oneOfType([s.oneOf(["bottom","center","top"]),s.number]).isRequired}),TransitionComponent:s.elementType,transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object});function M1(e){return Me("MuiMenu",e)}Pe("MuiMenu",["root","paper","list"]);const I1={vertical:"top",horizontal:"right"},N1={vertical:"top",horizontal:"left"},A1=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"],list:["list"]},M1,t)},F1=ie(Oy,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L1=ie(Dy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$1=ie(Py,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),My=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:u,open:f,PaperProps:p={},PopoverClasses:y,transitionDuration:w="auto",TransitionProps:{onEntering:b,...m}={},variant:v="selectedMenu",slots:D={},slotProps:k={},...x}=o,S=to(),C={...o,autoFocus:r,disableAutoFocusItem:l,MenuListProps:d,onEntering:b,PaperProps:p,transitionDuration:w,TransitionProps:m,variant:v},O=A1(C),I=r&&!l&&f,F=T.useRef(null),z=(H,ae)=>{F.current&&F.current.adjustStyleForScrollbar(H,{direction:S?"rtl":"ltr"}),b&&b(H,ae)},R=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let $=-1;T.Children.map(i,(H,ae)=>{T.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Iu.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
226
|
+
`)),H.props.disabled||(v==="selectedMenu"&&H.props.selected||$===-1)&&($=ae))});const K=D.paper??L1,G=k.paper??p,q=pt({elementType:D.root,externalSlotProps:k.root,ownerState:C,className:[O.root,a]}),Y=pt({elementType:K,externalSlotProps:G,ownerState:C,className:O.paper});return E.jsx(F1,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?I1:N1,slots:{paper:K,root:D.root},slotProps:{root:q,paper:Y},open:f,ref:n,transitionDuration:w,TransitionProps:{onEntering:z,...m},ownerState:C,...x,classes:y,children:E.jsx($1,{onKeyDown:R,actions:F,autoFocus:r&&($===-1||l),autoFocusItem:I,variant:v,...d,className:Se(O.list,d.className),children:i})})});process.env.NODE_ENV!=="production"&&(My.propTypes={anchorEl:s.oneOfType([er,s.func]),autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,disableAutoFocusItem:s.bool,MenuListProps:s.object,onClose:s.func,open:s.bool.isRequired,PaperProps:s.object,PopoverClasses:s.object,slotProps:s.shape({paper:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object])}),slots:s.shape({paper:s.elementType,root:s.elementType}),sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),transitionDuration:s.oneOfType([s.oneOf(["auto"]),s.number,s.shape({appear:s.number,enter:s.number,exit:s.number})]),TransitionProps:s.object,variant:s.oneOf(["menu","selectedMenu"])});function V1(e){return Me("MuiMenuItem",e)}const ci=Pe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),j1=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},B1=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e,d=Ie({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},V1,a);return{...a,...d}},W1=ie(br,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:j1})(ot(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ci.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ci.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ci.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ci.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ci.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${nm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${nm.inset}`]:{marginLeft:52},[`& .${ws.root}`]:{marginTop:0,marginBottom:0},[`& .${ws.inset}`]:{paddingLeft:36},[`& .${am.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${am.root} svg`]:{fontSize:"1.25rem"}}}]}))),Pl=T.forwardRef(function(t,n){const o=Ge({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:p,className:y,...w}=o,b=T.useContext(Xo),m=T.useMemo(()=>({dense:a||b.dense||!1,disableGutters:d}),[b.dense,a,d]),v=T.useRef(null);ln(()=>{r&&(v.current?v.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const D={...o,dense:m.dense,divider:l,disableGutters:d},k=B1(o),x=ct(v,n);let S;return o.disabled||(S=p!==void 0?p:-1),E.jsx(Xo.Provider,{value:m,children:E.jsx(W1,{ref:x,role:f,tabIndex:S,component:i,focusVisibleClassName:Se(k.focusVisible,u),className:Se(k.root,y),...w,ownerState:D,classes:k})})});process.env.NODE_ENV!=="production"&&(Pl.propTypes={autoFocus:s.bool,children:s.node,classes:s.object,className:s.string,component:s.elementType,dense:s.bool,disabled:s.bool,disableGutters:s.bool,divider:s.bool,focusVisibleClassName:s.string,role:s.string,selected:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number});function H1(e){return Me("MuiNativeSelect",e)}const Ju=Pe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),z1=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"]};return Ie(l,H1,t)},Iy=ie("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ju.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Y1=ie(Iy,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ju.multiple}`]:t.multiple}]}})({}),Ny=ie("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ju.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),U1=ie(Ny,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),Ay=T.forwardRef(function(t,n){const{className:o,disabled:r,error:i,IconComponent:a,inputRef:l,variant:d="standard",...u}=t,f={...t,disabled:r,variant:d,error:i},p=z1(f);return E.jsxs(T.Fragment,{children:[E.jsx(Y1,{ownerState:f,className:Se(p.select,o),disabled:r,ref:l||n,...u}),t.multiple?null:E.jsx(U1,{as:a,ownerState:f,className:p.icon})]})});process.env.NODE_ENV!=="production"&&(Ay.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,multiple:s.bool,name:s.string,onChange:s.func,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});var hm;const q1=ie("fieldset",{shouldForwardProp:Tn})({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%"}),G1=ie("legend",{shouldForwardProp:Tn})(ot(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Fy(e){const{children:t,classes:n,className:o,label:r,notched:i,...a}=e,l=r!=null&&r!=="",d={...e,notched:i,withLabel:l};return E.jsx(q1,{"aria-hidden":!0,className:o,ownerState:d,...a,children:E.jsx(G1,{ownerState:d,children:l?E.jsx("span",{children:r}):hm||(hm=E.jsx("span",{className:"notranslate",children:""}))})})}process.env.NODE_ENV!=="production"&&(Fy.propTypes={children:s.node,classes:s.object,className:s.string,label:s.node,notched:s.bool.isRequired,style:s.object});const K1=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},SE,t);return{...t,...o}},X1=ie(cc,{shouldForwardProp:e=>Tn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ac})(ot(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(gn()).map(([n])=>({props:{color:n},style:{[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),Z1=ie(Fy,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(ot(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Q1=ie(dc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:lc})(ot(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),$s=T.forwardRef(function(t,n){var o;const r=Ge({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:l="input",label:d,multiline:u=!1,notched:f,slots:p={},type:y="text",...w}=r,b=K1(r),m=Nn(),v=_r({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D={...r,color:v.color||"primary",disabled:v.disabled,error:v.error,focused:v.focused,formControl:m,fullWidth:a,hiddenLabel:v.hiddenLabel,multiline:u,size:v.size,type:y},k=p.root??i.Root??X1,x=p.input??i.Input??Q1;return E.jsx(uc,{slots:{root:k,input:x},renderSuffix:S=>E.jsx(Z1,{ownerState:D,className:b.notchedOutline,label:d!=null&&d!==""&&v.required?o||(o=E.jsxs(T.Fragment,{children:[d," ","*"]})):d,notched:typeof f<"u"?f:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:a,inputComponent:l,multiline:u,ref:n,type:y,...w,classes:{...b,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&($s.propTypes={autoComplete:s.string,autoFocus:s.bool,classes:s.object,color:s.oneOfType([s.oneOf(["primary","secondary"]),s.string]),components:s.shape({Input:s.elementType,Root:s.elementType}),defaultValue:s.any,disabled:s.bool,endAdornment:s.node,error:s.bool,fullWidth:s.bool,id:s.string,inputComponent:s.elementType,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none"]),maxRows:s.oneOfType([s.number,s.string]),minRows:s.oneOfType([s.number,s.string]),multiline:s.bool,name:s.string,notched:s.bool,onChange:s.func,placeholder:s.string,readOnly:s.bool,required:s.bool,rows:s.oneOfType([s.number,s.string]),slots:s.shape({input:s.elementType,root:s.elementType}),startAdornment:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),type:s.string,value:s.any});$s&&($s.muiName="Input");function J1(e){return Me("MuiSelect",e)}const di=Pe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var fm;const eD=ie(Iy,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${di.select}`]:t.select},{[`&.${di.select}`]:t[n.variant]},{[`&.${di.error}`]:t.error},{[`&.${di.multiple}`]:t.multiple}]}})({[`&.${di.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),tD=ie(Ny,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${we(n.variant)}`],n.open&&t.iconOpen]}})({}),nD=ie("input",{shouldForwardProp:e=>ey(e)&&e!=="classes",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 pm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function oD(e){return e==null||typeof e=="string"&&!e.trim()}const rD=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:i,error:a}=e,l={select:["select",n,o&&"disabled",r&&"multiple",a&&"error"],icon:["icon",`icon${we(n)}`,i&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return Ie(l,J1,t)},Ly=T.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":r,autoFocus:i,autoWidth:a,children:l,className:d,defaultOpen:u,defaultValue:f,disabled:p,displayEmpty:y,error:w=!1,IconComponent:b,inputRef:m,labelId:v,MenuProps:D={},multiple:k,name:x,onBlur:S,onChange:C,onClose:O,onFocus:I,onOpen:F,open:z,readOnly:R,renderValue:$,SelectDisplayProps:K={},tabIndex:G,type:q,value:Y,variant:H="standard",...ae}=t,[A,M]=ho({controlled:Y,default:f,name:"Select"}),[L,B]=ho({controlled:z,default:u,name:"Select"}),ne=T.useRef(null),oe=T.useRef(null),[se,j]=T.useState(null),{current:ee}=T.useRef(z!=null),[J,te]=T.useState(),ce=ct(n,m),le=T.useCallback(Oe=>{oe.current=Oe,Oe&&j(Oe)},[]),he=se?.parentNode;T.useImperativeHandle(ce,()=>({focus:()=>{oe.current.focus()},node:ne.current,value:A}),[A]),T.useEffect(()=>{u&&L&&se&&!ee&&(te(a?null:he.clientWidth),oe.current.focus())},[se,a]),T.useEffect(()=>{i&&oe.current.focus()},[i]),T.useEffect(()=>{if(!v)return;const Oe=Sn(oe.current).getElementById(v);if(Oe){const We=()=>{getSelection().isCollapsed&&oe.current.focus()};return Oe.addEventListener("click",We),()=>{Oe.removeEventListener("click",We)}}},[v]);const W=(Oe,We)=>{Oe?F&&F(We):O&&O(We),ee||(te(a?null:he.clientWidth),B(Oe))},re=Oe=>{Oe.button===0&&(Oe.preventDefault(),oe.current.focus(),W(!0,Oe))},Z=Oe=>{W(!1,Oe)},fe=T.Children.toArray(l),pe=Oe=>{const We=fe.find(ht=>ht.props.value===Oe.target.value);We!==void 0&&(M(We.props.value),C&&C(Oe,We))},be=Oe=>We=>{let ht;if(We.currentTarget.hasAttribute("tabindex")){if(k){ht=Array.isArray(A)?A.slice():[];const nn=A.indexOf(Oe.props.value);nn===-1?ht.push(Oe.props.value):ht.splice(nn,1)}else ht=Oe.props.value;if(Oe.props.onClick&&Oe.props.onClick(We),A!==ht&&(M(ht),C)){const nn=We.nativeEvent||We,An=new nn.constructor(nn.type,nn);Object.defineProperty(An,"target",{writable:!0,value:{value:ht,name:x}}),C(An,Oe)}k||W(!1,We)}},ge=Oe=>{R||[" ","ArrowUp","ArrowDown","Enter"].includes(Oe.key)&&(Oe.preventDefault(),W(!0,Oe))},Re=se!==null&&L,Ve=Oe=>{!Re&&S&&(Object.defineProperty(Oe,"target",{writable:!0,value:{value:A,name:x}}),S(Oe))};delete ae["aria-invalid"];let Ne,Je;const ke=[];let ut=!1,Yt=!1;(kl({value:A})||y)&&($?Ne=$(A):ut=!0);const rt=fe.map(Oe=>{if(!T.isValidElement(Oe))return null;process.env.NODE_ENV!=="production"&&Iu.isFragment(Oe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
227
227
|
`));let We;if(k){if(!Array.isArray(A))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Do(2));We=A.some(ht=>pm(ht,Oe.props.value)),We&&ut&&ke.push(Oe.props.children)}else We=pm(A,Oe.props.value),We&&ut&&(Je=Oe.props.children);return We&&(Yt=!0),T.cloneElement(Oe,{"aria-selected":We?"true":"false",onClick:be(Oe),onKeyUp:ht=>{ht.key===" "&&ht.preventDefault(),Oe.props.onKeyUp&&Oe.props.onKeyUp(ht)},role:"option",selected:We,value:void 0,"data-value":Oe.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Yt&&!k&&A!==""){const Oe=fe.map(We=>We.props.value);console.warn([`MUI: You have provided an out-of-range value \`${A}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Oe.filter(We=>We!=null).map(We=>`\`${We}\``).join(", ")||'""'}.`].join(`
|
|
228
228
|
`))}},[Yt,fe,k,x,A]),ut&&(k?ke.length===0?Ne=null:Ne=ke.reduce((Oe,We,ht)=>(Oe.push(We),ht<ke.length-1&&Oe.push(", "),Oe),[]):Ne=Je);let Ot=J;!a&&ee&&se&&(Ot=he.clientWidth);let Ut;typeof G<"u"?Ut=G:Ut=p?null:0;const Lt=K.id||(x?`mui-component-select-${x}`:void 0),Ue={...t,variant:H,value:A,open:Re,error:w},Be=rD(Ue),rn={...D.PaperProps,...D.slotProps?.paper},dn=sr();return E.jsxs(T.Fragment,{children:[E.jsx(eD,{as:"div",ref:le,tabIndex:Ut,role:"combobox","aria-controls":dn,"aria-disabled":p?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[v,Lt].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ge,onMouseDown:p||R?null:re,onBlur:Ve,onFocus:I,...K,ownerState:Ue,className:Se(K.className,Be.select,d),id:Lt,children:oD(Ne)?fm||(fm=E.jsx("span",{className:"notranslate",children:""})):Ne}),E.jsx(nD,{"aria-invalid":w,value:Array.isArray(A)?A.join(","):A,name:x,ref:ne,"aria-hidden":!0,onChange:pe,tabIndex:-1,disabled:p,className:Be.nativeInput,autoFocus:i,...ae,ownerState:Ue}),E.jsx(tD,{as:b,className:Be.icon,ownerState:Ue}),E.jsx(My,{id:`menu-${x||""}`,anchorEl:he,open:Re,onClose:Z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...D,MenuListProps:{"aria-labelledby":v,role:"listbox","aria-multiselectable":k?"true":void 0,disableListWrap:!0,id:dn,...D.MenuListProps},slotProps:{...D.slotProps,paper:{...rn,style:{minWidth:Ot,...rn!=null?rn.style:null}}},children:rt})]})});process.env.NODE_ENV!=="production"&&(Ly.propTypes={"aria-describedby":s.string,"aria-label":s.string,autoFocus:s.bool,autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,disabled:s.bool,displayEmpty:s.bool,error:s.bool,IconComponent:s.elementType.isRequired,inputRef:zt,labelId:s.string,MenuProps:s.object,multiple:s.bool,name:s.string,onBlur:s.func,onChange:s.func,onClose:s.func,onFocus:s.func,onOpen:s.func,open:s.bool,readOnly:s.bool,renderValue:s.func,SelectDisplayProps:s.object,tabIndex:s.oneOfType([s.number,s.string]),type:s.any,value:s.any,variant:s.oneOf(["standard","outlined","filled"])});const sD=e=>{const{classes:t}=e;return t},eh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Tn(e)&&e!=="variant",slot:"Root"},iD=ie(Zi,eh)(""),aD=ie($s,eh)(""),lD=ie(Xi,eh)(""),ga=T.forwardRef(function(t,n){const o=Ge({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:i,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:f=xE,id:p,input:y,inputProps:w,label:b,labelId:m,MenuProps:v,multiple:D=!1,native:k=!1,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:I,variant:F="outlined",...z}=o,R=k?Ay:Ly,$=Nn(),K=_r({props:o,muiFormControl:$,states:["variant","error"]}),G=K.variant||F,q={...o,variant:G,classes:a},Y=sD(q),{root:H,...ae}=Y,A=y||{standard:E.jsx(iD,{ownerState:q}),outlined:E.jsx(aD,{label:b,ownerState:q}),filled:E.jsx(lD,{ownerState:q})}[G],M=ct(n,zs(A));return E.jsx(T.Fragment,{children:T.cloneElement(A,{inputComponent:R,inputProps:{children:i,error:K.error,IconComponent:f,variant:G,type:void 0,multiple:D,...k?{id:p}:{autoWidth:r,defaultOpen:d,displayEmpty:u,labelId:m,MenuProps:v,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:{id:p,...I}},...w,classes:w?Cn(ae,w.classes):ae,...y?y.props.inputProps:{}},...(D&&k||u)&&G==="outlined"?{notched:!0}:{},ref:M,className:Se(A.props.className,l,Y.root),...!y&&{variant:G},...z})})});process.env.NODE_ENV!=="production"&&(ga.propTypes={autoWidth:s.bool,children:s.node,classes:s.object,className:s.string,defaultOpen:s.bool,defaultValue:s.any,displayEmpty:s.bool,IconComponent:s.elementType,id:s.string,input:s.element,inputProps:s.object,label:s.node,labelId:s.string,MenuProps:s.object,multiple:s.bool,native:s.bool,onChange:s.func,onClose:s.func,onOpen:s.func,open:s.bool,renderValue:s.func,SelectDisplayProps:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.oneOfType([s.oneOf([""]),s.any]),variant:s.oneOf(["filled","outlined","standard"])});ga.muiName="Select";function cD(e){return Me("MuiSkeleton",e)}Pe("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const dD=e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:i,height:a}=e;return Ie({root:["root",n,o,r&&"withChildren",r&&!i&&"fitContent",r&&!a&&"heightAuto"]},cD,t)},ou=Ws`
|
|
229
229
|
0% {
|
|
@@ -270,11 +270,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
270
270
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
271
271
|
//! license : MIT
|
|
272
272
|
//! momentjs.com
|
|
273
|
-
var Wy;function xe(){return Wy.apply(null,arguments)}function $D(e){Wy=e}function fo(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function jr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function th(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mt(e,t))return!1;return!0}function Pn(e){return e===void 0}function
|
|
273
|
+
var Wy;function xe(){return Wy.apply(null,arguments)}function $D(e){Wy=e}function fo(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function jr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function th(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mt(e,t))return!1;return!0}function Pn(e){return e===void 0}function or(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ya(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Hy(e,t){var n=[],o,r=e.length;for(o=0;o<r;++o)n.push(t(e[o],o));return n}function mr(e,t){for(var n in t)mt(t,n)&&(e[n]=t[n]);return mt(t,"toString")&&(e.toString=t.toString),mt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Ao(e,t,n,o){return hv(e,t,n,o,!0).utc()}function VD(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function qe(e){return e._pf==null&&(e._pf=VD()),e._pf}var iu;Array.prototype.some?iu=Array.prototype.some:iu=function(e){var t=Object(this),n=t.length>>>0,o;for(o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};function nh(e){var t=null,n=!1,o=e._d&&!isNaN(e._d.getTime());if(o&&(t=qe(e),n=iu.call(t.parsedDateParts,function(r){return r!=null}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(o=o&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=o;else return o;return e._isValid}function mc(e){var t=Ao(NaN);return e!=null?mr(qe(t),e):qe(t).userInvalidated=!0,t}var ym=xe.momentProperties=[],wd=!1;function oh(e,t){var n,o,r,i=ym.length;if(Pn(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Pn(t._i)||(e._i=t._i),Pn(t._f)||(e._f=t._f),Pn(t._l)||(e._l=t._l),Pn(t._strict)||(e._strict=t._strict),Pn(t._tzm)||(e._tzm=t._tzm),Pn(t._isUTC)||(e._isUTC=t._isUTC),Pn(t._offset)||(e._offset=t._offset),Pn(t._pf)||(e._pf=qe(t)),Pn(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)o=ym[n],r=t[o],Pn(r)||(e[o]=r);return e}function va(e){oh(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),wd===!1&&(wd=!0,xe.updateOffset(this),wd=!1)}function po(e){return e instanceof va||e!=null&&e._isAMomentObject!=null}function zy(e){xe.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ro(e,t){var n=!0;return mr(function(){if(xe.deprecationHandler!=null&&xe.deprecationHandler(null,e),n){var o=[],r,i,a,l=arguments.length;for(i=0;i<l;i++){if(r="",typeof arguments[i]=="object"){r+=`
|
|
274
274
|
[`+i+"] ";for(a in arguments[0])mt(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[i];o.push(r)}zy(e+`
|
|
275
275
|
Arguments: `+Array.prototype.slice.call(o).join("")+`
|
|
276
|
-
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var vm={};function Yy(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),vm[e]||(zy(t),vm[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Ao(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jD(e){var t,n;for(n in e)mt(e,n)&&(t=e[n],Ao(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function au(e,t){var n=mr({},e),o;for(o in t)mt(t,o)&&(jr(e[o])&&jr(t[o])?(n[o]={},mr(n[o],e[o]),mr(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)mt(e,o)&&!mt(t,o)&&jr(e[o])&&(n[o]=mr({},n[o]));return n}function rh(e){e!=null&&this.set(e)}var lu;Object.keys?lu=Object.keys:lu=function(e){var t,n=[];for(t in e)mt(e,t)&&n.push(t);return n};var BD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function WD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Ao(o)?o.call(t,n):o}function Mo(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var sh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Za=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Cd={},Ts={};function $e(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(Ts[e]=r),t&&(Ts[t[0]]=function(){return Mo(r.apply(this,arguments),t[1],t[2])}),n&&(Ts[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function HD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zD(e){var t=e.match(sh),n,o;for(n=0,o=t.length;n<o;n++)Ts[t[n]]?t[n]=Ts[t[n]]:t[n]=HD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Ao(t[a])?t[a].call(r,e):t[a];return i}}function fl(e,t){return e.isValid()?(t=Uy(t,e.localeData()),Cd[t]=Cd[t]||zD(t),Cd[t](e)):e.localeData().invalidDate()}function Uy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(Za.lastIndex=0;n>=0&&Za.test(e);)e=e.replace(Za,o),Za.lastIndex=0,n-=1;return e}var YD={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"};function UD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sh).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var qD="Invalid date";function GD(){return this._invalidDate}var KD="%d",XD=/\d{1,2}/;function ZD(e){return this._ordinal.replace("%d",e)}var QD={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function JD(e,t,n,o){var r=this._relativeTime[n];return Ao(r)?r(e,t,n,o):r.replace(/%d/i,e)}function eO(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ao(n)?n(t):n.replace(/%s/i,t)}var bm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function so(e){return typeof e=="string"?bm[e]||bm[e.toLowerCase()]:void 0}function ih(e){var t={},n,o;for(o in e)mt(e,o)&&(n=so(o),n&&(t[n]=e[o]));return t}var tO={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nO(e){var t=[],n;for(n in e)mt(e,n)&&t.push({unit:n,priority:tO[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var qy=/\d/,Bn=/\d\d/,Gy=/\d{3}/,ah=/\d{4}/,gc=/[+-]?\d{6}/,At=/\d\d?/,Ky=/\d\d\d\d?/,Xy=/\d\d\d\d\d\d?/,yc=/\d{1,3}/,lh=/\d{1,4}/,vc=/[+-]?\d{1,6}/,qs=/\d+/,bc=/[+-]?\d+/,oO=/Z|[+-]\d\d:?\d\d/gi,wc=/Z|[+-]\d\d(?::?\d\d)?/gi,rO=/[+-]?\d+(\.\d{1,3})?/,ba=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gs=/^[1-9]\d?/,ch=/^([1-9]\d|\d)/,Dl;Dl={};function De(e,t,n){Dl[e]=Ao(t)?t:function(o,r){return o&&n?n:t}}function sO(e,t){return mt(Dl,e)?Dl[e](t._strict,t._locale):new RegExp(iO(e))}function iO(e){return Xo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function Xo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Kn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Kn(t)),n}var cu={};function Et(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),nr(t)&&(o=function(i,a){a[t]=nt(i)}),r=e.length,n=0;n<r;n++)cu[e[n]]=o}function wa(e,t){Et(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function aO(e,t,n){t!=null&&mt(cu,e)&&cu[e](t,n._a,n,e)}function Cc(e){return e%4===0&&e%100!==0||e%400===0}var _n=0,qo=1,To=2,an=3,co=4,Go=5,Lr=6,lO=7,cO=8;$e("Y",0,0,function(){var e=this.year();return e<=9999?Mo(e,4):"+"+e});$e(0,["YY",2],0,function(){return this.year()%100});$e(0,["YYYY",4],0,"year");$e(0,["YYYYY",5],0,"year");$e(0,["YYYYYY",6,!0],0,"year");De("Y",bc);De("YY",At,Bn);De("YYYY",lh,ah);De("YYYYY",vc,gc);De("YYYYYY",vc,gc);Et(["YYYYY","YYYYYY"],_n);Et("YYYY",function(e,t){t[_n]=e.length===2?xe.parseTwoDigitYear(e):nt(e)});Et("YY",function(e,t){t[_n]=xe.parseTwoDigitYear(e)});Et("Y",function(e,t){t[_n]=parseInt(e,10)});function Ai(e){return Cc(e)?366:365}xe.parseTwoDigitYear=function(e){return nt(e)+(nt(e)>68?1900:2e3)};var Zy=Ks("FullYear",!0);function dO(){return Cc(this.year())}function Ks(e,t){return function(n){return n!=null?(Qy(this,e,n),xe.updateOffset(this,t),this):Qi(this,e)}}function Qi(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Cc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function uO(e){return e=so(e),Ao(this[e])?this[e]():this}function hO(e,t){if(typeof e=="object"){e=ih(e);var n=nO(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=so(e),Ao(this[e]))return this[e](t);return this}function fO(e,t){return(e%t+t)%t}var en;Array.prototype.indexOf?en=Array.prototype.indexOf:en=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=fO(t,12);return e+=(t-n)/12,n===1?Cc(e)?29:28:31-n%7%2}$e("M",["MM",2],"Mo",function(){return this.month()+1});$e("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});$e("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",At,Gs);De("MM",At,Bn);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});Et(["M","MM"],function(e,t){t[qo]=nt(e)-1});Et(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[qo]=r:qe(n).invalidMonth=e});var pO="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ev=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mO=ba,gO=ba;function yO(e,t){return e?fo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ev).test(t)?"format":"standalone"][e.month()]:fo(this._months)?this._months:this._months.standalone}function vO(e,t){return e?fo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ev.test(t)?"format":"standalone"][e.month()]:fo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=No([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:null):(r=en.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:(r=en.call(this._longMonthsParse,a),r!==-1?r:null)):(r=en.call(this._longMonthsParse,a),r!==-1?r:(r=en.call(this._shortMonthsParse,a),r!==-1?r:null))}function wO(e,t,n){var o,r,i;if(this._monthsParseExact)return bO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=No([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function tv(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nt(t);else if(t=e.localeData().monthsParse(t),!nr(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,dh(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function nv(e){return e!=null?(tv(this,e),xe.updateOffset(this,!0),this):Qi(this,"Month")}function CO(){return dh(this.year(),this.month())}function SO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mt(this,"_monthsShortRegex")||(this._monthsShortRegex=mO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _O(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mt(this,"_monthsRegex")||(this._monthsRegex=gO),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ov(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=No([2e3,r]),a=Xo(this.monthsShort(i,"")),l=Xo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xO(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function Ji(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ol(e,t,n){var o=7+t-n,r=(7+Ji(e,0,o).getUTCDay()-t)%7;return-r+o-1}function rv(e,t,n,o,r){var i=(7+n-o)%7,a=Ol(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=Ai(d)+l):l>Ai(e)?(d=e+1,u=l-Ai(e)):(d=e,u=l),{year:d,dayOfYear:u}}function ea(e,t,n){var o=Ol(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+Zo(a,t,n)):r>Zo(e.year(),t,n)?(i=r-Zo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Zo(e,t,n){var o=Ol(e,t,n),r=Ol(e+1,t,n);return(Ai(e)-o+r)/7}$e("w",["ww",2],"wo","week");$e("W",["WW",2],"Wo","isoWeek");De("w",At,Gs);De("ww",At,Bn);De("W",At,Gs);De("WW",At,Bn);wa(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=nt(e)});function RO(e){return ea(e,this._week.dow,this._week.doy).week}var TO={dow:0,doy:6};function kO(){return this._week.dow}function EO(){return this._week.doy}function PO(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function DO(e){var t=ea(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$e("d",0,"do","day");$e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});$e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});$e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});$e("e",0,0,"weekday");$e("E",0,0,"isoWeekday");De("d",At);De("e",At);De("E",At);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});wa(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:qe(n).invalidWeekday=e});wa(["d","e","E"],function(e,t,n,o){t[o]=nt(e)});function OO(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function MO(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function uh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var IO="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),NO="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),AO=ba,FO=ba,LO=ba;function $O(e,t){var n=fo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?uh(n,this._week.dow):e?n[e.day()]:n}function VO(e){return e===!0?uh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jO(e){return e===!0?uh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function BO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=No([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1||(r=en.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=en.call(this._minWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function WO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return BO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=No([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function HO(e){if(!this.isValid())return e!=null?this:NaN;var t=Qi(this,"Day");return e!=null?(e=OO(e,this.localeData()),this.add(e-t,"d")):t}function zO(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function YO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=MO(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function UO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mt(this,"_weekdaysRegex")||(this._weekdaysRegex=AO),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function GO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=LO),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hh(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=No([2e3,1]).day(i),l=Xo(this.weekdaysMin(a,"")),d=Xo(this.weekdaysShort(a,"")),u=Xo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fh(){return this.hours()%12||12}function KO(){return this.hours()||24}$e("H",["HH",2],0,"hour");$e("h",["hh",2],0,fh);$e("k",["kk",2],0,KO);$e("hmm",0,0,function(){return""+fh.apply(this)+Mo(this.minutes(),2)});$e("hmmss",0,0,function(){return""+fh.apply(this)+Mo(this.minutes(),2)+Mo(this.seconds(),2)});$e("Hmm",0,0,function(){return""+this.hours()+Mo(this.minutes(),2)});$e("Hmmss",0,0,function(){return""+this.hours()+Mo(this.minutes(),2)+Mo(this.seconds(),2)});function iv(e,t){$e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}iv("a",!0);iv("A",!1);function av(e,t){return t._meridiemParse}De("a",av);De("A",av);De("H",At,ch);De("h",At,Gs);De("k",At,Gs);De("HH",At,Bn);De("hh",At,Bn);De("kk",At,Bn);De("hmm",Ky);De("hmmss",Xy);De("Hmm",Ky);De("Hmmss",Xy);Et(["H","HH"],an);Et(["k","kk"],function(e,t,n){var o=nt(e);t[an]=o===24?0:o});Et(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Et(["h","hh"],function(e,t,n){t[an]=nt(e),qe(n).bigHour=!0});Et("hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o)),qe(n).bigHour=!0});Et("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o,2)),t[Go]=nt(e.substr(r)),qe(n).bigHour=!0});Et("Hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o))});Et("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o,2)),t[Go]=nt(e.substr(r))});function XO(e){return(e+"").toLowerCase().charAt(0)==="p"}var ZO=/[ap]\.?m?\.?/i,QO=Ks("Hours",!0);function JO(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var lv={calendar:BD,longDateFormat:YD,invalidDate:qD,ordinal:KD,dayOfMonthOrdinalParse:XD,relativeTime:QD,months:pO,monthsShort:Jy,week:TO,weekdays:IO,weekdaysMin:NO,weekdaysShort:sv,meridiemParse:ZO},Bt={},hi={},ta;function eM(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function wm(e){return e&&e.toLowerCase().replace("_","-")}function tM(e){for(var t=0,n,o,r,i;t<e.length;){for(i=wm(e[t]).split("-"),n=i.length,o=wm(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Sc(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&eM(i,o)>=n-1)break;n--}t++}return ta}function nM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(Bt[e]===void 0&&typeof module<"u"&&module&&module.exports&&nM(e))try{t=ta._abbr,n=require,n("./locale/"+e),yr(t)}catch{Bt[e]=null}return Bt[e]}function yr(e,t){var n;return e&&(Pn(t)?n=ir(e):n=ph(e,t),n?ta=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ta._abbr}function ph(e,t){if(t!==null){var n,o=lv;if(t.abbr=e,Bt[e]!=null)Yy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Bt[e]._config;else if(t.parentLocale!=null)if(Bt[t.parentLocale]!=null)o=Bt[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)o=n._config;else return hi[t.parentLocale]||(hi[t.parentLocale]=[]),hi[t.parentLocale].push({name:e,config:t}),null;return Bt[e]=new rh(au(o,t)),hi[e]&&hi[e].forEach(function(r){ph(r.name,r.config)}),yr(e),Bt[e]}else return delete Bt[e],null}function oM(e,t){if(t!=null){var n,o,r=lv;Bt[e]!=null&&Bt[e].parentLocale!=null?Bt[e].set(au(Bt[e]._config,t)):(o=Sc(e),o!=null&&(r=o._config),t=au(r,t),o==null&&(t.abbr=e),n=new rh(t),n.parentLocale=Bt[e],Bt[e]=n),yr(e)}else Bt[e]!=null&&(Bt[e].parentLocale!=null?(Bt[e]=Bt[e].parentLocale,e===yr()&&yr(e)):Bt[e]!=null&&delete Bt[e]);return Bt[e]}function ir(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ta;if(!fo(e)){if(t=Sc(e),t)return t;e=[e]}return tM(e)}function rM(){return lu(Bt)}function mh(e){var t,n=e._a;return n&&qe(e).overflow===-2&&(t=n[qo]<0||n[qo]>11?qo:n[To]<1||n[To]>dh(n[_n],n[qo])?To:n[an]<0||n[an]>24||n[an]===24&&(n[co]!==0||n[Go]!==0||n[Lr]!==0)?an:n[co]<0||n[co]>59?co:n[Go]<0||n[Go]>59?Go:n[Lr]<0||n[Lr]>999?Lr:-1,qe(e)._overflowDayOfYear&&(t<_n||t>To)&&(t=To),qe(e)._overflowWeeks&&t===-1&&(t=lO),qe(e)._overflowWeekday&&t===-1&&(t=cO),qe(e).overflow=t),e}var sM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aM=/Z|[+-]\d\d(?::?\d\d)?/,Qa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cv(e){var t,n,o=e._i,r=sM.exec(o)||iM.exec(o),i,a,l,d,u=Qa.length,f=Sd.length;if(r){for(qe(e).iso=!0,t=0,n=u;t<n;t++)if(Qa[t][1].exec(r[1])){a=Qa[t][0],i=Qa[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Sd[t][1].exec(r[3])){l=(r[2]||" ")+Sd[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(aM.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),yh(e)}else e._isValid=!1}function uM(e,t,n,o,r,i){var a=[hM(e),Jy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function hM(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function fM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pM(e,t,n){if(e){var o=sv.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return qe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mM(e,t,n){if(e)return dM[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function dv(e){var t=cM.exec(fM(e._i)),n;if(t){if(n=uM(t[4],t[3],t[2],t[5],t[6],t[7]),!pM(t[1],n,e))return;e._a=n,e._tzm=mM(t[8],t[9],t[10]),e._d=Ji.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qe(e).rfc2822=!0}else e._isValid=!1}function gM(e){var t=lM.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cv(e),e._isValid===!1)delete e._isValid;else return;if(dv(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=ro("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ys(e,t,n){return e??t??n}function yM(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gh(e){var t,n,o=[],r,i,a;if(!e._d){for(r=yM(e),e._w&&e._a[To]==null&&e._a[qo]==null&&vM(e),e._dayOfYear!=null&&(a=ys(e._a[_n],r[_n]),(e._dayOfYear>Ai(a)||e._dayOfYear===0)&&(qe(e)._overflowDayOfYear=!0),n=Ji(a,0,e._dayOfYear),e._a[qo]=n.getUTCMonth(),e._a[To]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[an]===24&&e._a[co]===0&&e._a[Go]===0&&e._a[Lr]===0&&(e._nextDay=!0,e._a[an]=0),e._d=(e._useUTC?Ji:xO).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[an]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(qe(e).weekdayMismatch=!0)}}function vM(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=ys(t.GG,e._a[_n],ea(It(),1,4).year),o=ys(t.W,1),r=ys(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=ea(It(),i,a),n=ys(t.gg,e._a[_n],u.year),o=ys(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>Zo(n,i,a)?qe(e)._overflowWeeks=!0:d!=null?qe(e)._overflowWeekday=!0:(l=rv(n,o,r,i,a),e._a[_n]=l.year,e._dayOfYear=l.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function yh(e){if(e._f===xe.ISO_8601){cv(e);return}if(e._f===xe.RFC_2822){dv(e);return}e._a=[],qe(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=Uy(e._f,e._locale).match(sh)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(sO(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&qe(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),Ts[i]?(o?qe(e).empty=!1:qe(e).unusedTokens.push(i),aO(i,o,e)):e._strict&&!o&&qe(e).unusedTokens.push(i);qe(e).charsLeftOver=l-d,t.length>0&&qe(e).unusedInput.push(t),e._a[an]<=12&&qe(e).bigHour===!0&&e._a[an]>0&&(qe(e).bigHour=void 0),qe(e).parsedDateParts=e._a.slice(0),qe(e).meridiem=e._meridiem,e._a[an]=bM(e._locale,e._a[an],e._meridiem),u=qe(e).era,u!==null&&(e._a[_n]=e._locale.erasConvertYear(u,e._a[_n])),gh(e),mh(e)}function bM(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function wM(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){qe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=oh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],yh(t),nh(t)&&(a=!0),i+=qe(t).charsLeftOver,i+=qe(t).unusedTokens.length*10,qe(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));mr(e,n||t)}function CM(e){if(!e._d){var t=ih(e._i),n=t.day===void 0?t.date:t.day;e._a=Hy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),gh(e)}}function SM(e){var t=new va(mh(uv(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function uv(e){var t=e._i,n=e._f;return e._locale=e._locale||ir(e._l),t===null||n===void 0&&t===""?mc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),po(t)?new va(mh(t)):(ya(t)?e._d=t:fo(n)?wM(e):n?yh(e):_M(e),nh(e)||(e._d=null),e))}function _M(e){var t=e._i;Pn(t)?e._d=new Date(xe.now()):ya(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gM(e):fo(t)?(e._a=Hy(t.slice(0),function(n){return parseInt(n,10)}),gh(e)):jr(t)?CM(e):nr(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function hv(e,t,n,o,r){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(jr(e)&&th(e)||fo(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,SM(i)}function It(e,t,n,o){return hv(e,t,n,o,!1)}var xM=ro("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:mc()}),RM=ro("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:mc()});function fv(e,t){var n,o;if(t.length===1&&fo(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function TM(){var e=[].slice.call(arguments,0);return fv("isBefore",e)}function kM(){var e=[].slice.call(arguments,0);return fv("isAfter",e)}var EM=function(){return Date.now?Date.now():+new Date},fi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function PM(e){var t,n=!1,o,r=fi.length;for(t in e)if(mt(e,t)&&!(en.call(fi,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[fi[o]]){if(n)return!1;parseFloat(e[fi[o]])!==nt(e[fi[o]])&&(n=!0)}return!0}function DM(){return this._isValid}function OM(){return mo(NaN)}function _c(e){var t=ih(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=PM(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=ir(),this._bubble()}function pl(e){return e instanceof _c}function du(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MM(e,t,n){var o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<o;a++)nt(e[a])!==nt(t[a])&&i++;return i+r}function pv(e,t){$e(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Mo(~~(n/60),2)+t+Mo(~~n%60,2)})}pv("Z",":");pv("ZZ","");De("Z",wc);De("ZZ",wc);Et(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vh(wc,e)});var IM=/([\+\-]|\d\d)/gi;function vh(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(IM)||["-",0,0],i=+(r[1]*60)+nt(r[2]),i===0?0:r[0]==="+"?i:-i)}function bh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(po(e)||ya(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):It(e).local()}function uu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function NM(e,t,n){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vh(wc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=uu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?yv(this,mo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:uu(this)}function AM(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FM(e){return this.utcOffset(0,e)}function LM(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(uu(this),"m")),this}function $M(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vh(oO,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function VM(e){return this.isValid()?(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function jM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function BM(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oh(e,this),e=uv(e),e._a?(t=e._isUTC?No(e._a):It(e._a),this._isDSTShifted=this.isValid()&&MM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function WM(){return this.isValid()?!this._isUTC:!1}function HM(){return this.isValid()?this._isUTC:!1}function mv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mo(e,t){var n=e,o=null,r,i,a;return pl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:nr(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=zM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:nt(o[To])*r,h:nt(o[an])*r,m:nt(o[co])*r,s:nt(o[Go])*r,ms:nt(du(o[Lr]*1e3))*r}):(o=YM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Er(o[2],r),M:Er(o[3],r),w:Er(o[4],r),d:Er(o[5],r),h:Er(o[6],r),m:Er(o[7],r),s:Er(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=UM(It(n.from),It(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new _c(n),pl(e)&&mt(e,"_locale")&&(i._locale=e._locale),pl(e)&&mt(e,"_isValid")&&(i._isValid=e._isValid),i}mo.fn=_c.prototype;mo.invalid=OM;function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function UM(e,t){var n;return e.isValid()&&t.isValid()?(t=bh(t,e),e.isBefore(t)?n=Cm(e,t):(n=Cm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function gv(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(Yy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),r=mo(n,o),yv(this,r,e),this}}function yv(e,t,n,o){var r=t._milliseconds,i=du(t._days),a=du(t._months);e.isValid()&&(o=o??!0,a&&tv(e,Qi(e,"Month")+a*n),i&&Qy(e,"Date",Qi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var qM=gv(1,"add"),GM=gv(-1,"subtract");function vv(e){return typeof e=="string"||e instanceof String}function KM(e){return po(e)||ya(e)||vv(e)||nr(e)||ZM(e)||XM(e)||e===null||e===void 0}function XM(e){var t=jr(e)&&!th(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=o.length;for(r=0;r<a;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function ZM(e){var t=fo(e),n=!1;return t&&(n=e.filter(function(o){return!nr(o)&&vv(e)}).length===0),t&&n}function QM(e){var t=jr(e)&&!th(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<o.length;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function JM(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function eI(e,t){arguments.length===1&&(arguments[0]?KM(arguments[0])?(e=arguments[0],t=void 0):QM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=bh(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(Ao(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,It(n)))}function tI(){return new va(this)}function nI(e,t){var n=po(e)?e:It(e);return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function oI(e,t){var n=po(e)?e:It(e);return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function rI(e,t,n,o){var r=po(e)?e:It(e),i=po(t)?t:It(t);return this.isValid()&&r.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(o[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function sI(e,t){var n=po(e)?e:It(e),o;return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function iI(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function aI(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function lI(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=bh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=so(t),t){case"year":i=ml(this,o)/12;break;case"month":i=ml(this,o);break;case"quarter":i=ml(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:Kn(i)}function ml(e,t){if(e.date()<t.date())return-ml(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),r,i;return t-o<0?(r=e.clone().add(n-1,"months"),i=(t-o)/(o-r)):(r=e.clone().add(n+1,"months"),i=(t-o)/(r-o)),-(n+i)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dI(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ao(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fl(n,"Z")):fl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function uI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+o+r+i)}function hI(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=fl(this,e);return this.localeData().postformat(t)}function fI(e,t){return this.isValid()&&(po(e)&&e.isValid()||It(e).isValid())?mo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pI(e){return this.from(It(),e)}function mI(e,t){return this.isValid()&&(po(e)&&e.isValid()||It(e).isValid())?mo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gI(e){return this.to(It(),e)}function bv(e){var t;return e===void 0?this._locale._abbr:(t=ir(e),t!=null&&(this._locale=t),this)}var wv=ro("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Cv(){return this._locale}var Ml=1e3,ks=60*Ml,Il=60*ks,Sv=(365*400+97)*24*Il;function Es(e,t){return(e%t+t)%t}function _v(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Sv:new Date(e,t,n).valueOf()}function xv(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Sv:Date.UTC(e,t,n)}function yI(e){var t,n;if(e=so(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Es(t+(this._isUTC?0:this.utcOffset()*ks),Il);break;case"minute":t=this._d.valueOf(),t-=Es(t,ks);break;case"second":t=this._d.valueOf(),t-=Es(t,Ml);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function vI(e){var t,n;if(e=so(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Il-Es(t+(this._isUTC?0:this.utcOffset()*ks),Il)-1;break;case"minute":t=this._d.valueOf(),t+=ks-Es(t,ks)-1;break;case"second":t=this._d.valueOf(),t+=Ml-Es(t,Ml)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function bI(){return this._d.valueOf()-(this._offset||0)*6e4}function wI(){return Math.floor(this.valueOf()/1e3)}function CI(){return new Date(this.valueOf())}function SI(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _I(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xI(){return this.isValid()?this.toISOString():null}function RI(){return nh(this)}function TI(){return mr({},qe(this))}function kI(){return qe(this).overflow}function EI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$e("N",0,0,"eraAbbr");$e("NN",0,0,"eraAbbr");$e("NNN",0,0,"eraAbbr");$e("NNNN",0,0,"eraName");$e("NNNNN",0,0,"eraNarrow");$e("y",["y",1],"yo","eraYear");$e("y",["yy",2],0,"eraYear");$e("y",["yyy",3],0,"eraYear");$e("y",["yyyy",4],0,"eraYear");De("N",wh);De("NN",wh);De("NNN",wh);De("NNNN",VI);De("NNNNN",jI);Et(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qe(n).era=r:qe(n).invalidEra=e});De("y",qs);De("yy",qs);De("yyy",qs);De("yyyy",qs);De("yo",BI);Et(["y","yy","yyy","yyyy"],_n);Et(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_n]=n._locale.eraYearOrdinalParse(e,r):t[_n]=parseInt(e,10)});function PI(e,t){var n,o,r,i=this._eras||ir("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=xe(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=xe(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function DI(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function OI(e,t){var n=e.since<=e.until?1:-1;return t===void 0?xe(e.since).year():xe(e.since).year()+(t-e.offset)*n}function MI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function II(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function NI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function AI(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-xe(r[e].since).year())*n+r[e].offset;return this.year()}function FI(e){return mt(this,"_erasNameRegex")||Ch.call(this),e?this._erasNameRegex:this._erasRegex}function LI(e){return mt(this,"_erasAbbrRegex")||Ch.call(this),e?this._erasAbbrRegex:this._erasRegex}function $I(e){return mt(this,"_erasNarrowRegex")||Ch.call(this),e?this._erasNarrowRegex:this._erasRegex}function wh(e,t){return t.erasAbbrRegex(e)}function VI(e,t){return t.erasNameRegex(e)}function jI(e,t){return t.erasNarrowRegex(e)}function BI(e,t){return t._eraYearOrdinalRegex||qs}function Ch(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=Xo(u[r].name),l=Xo(u[r].abbr),d=Xo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$e(0,["gg",2],0,function(){return this.weekYear()%100});$e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xc(e,t){$e(0,[e,e.length],0,t)}xc("gggg","weekYear");xc("ggggg","weekYear");xc("GGGG","isoWeekYear");xc("GGGGG","isoWeekYear");De("G",bc);De("g",bc);De("GG",At,Bn);De("gg",At,Bn);De("GGGG",lh,ah);De("gggg",lh,ah);De("GGGGG",vc,gc);De("ggggg",vc,gc);wa(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=nt(e)});wa(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function WI(e){return Rv.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function HI(e){return Rv.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zI(){return Zo(this.year(),1,4)}function YI(){return Zo(this.isoWeekYear(),1,4)}function UI(){var e=this.localeData()._week;return Zo(this.year(),e.dow,e.doy)}function qI(){var e=this.localeData()._week;return Zo(this.weekYear(),e.dow,e.doy)}function Rv(e,t,n,o,r){var i;return e==null?ea(this,o,r).year:(i=Zo(e,o,r),t>i&&(t=i),GI.call(this,e,t,n,o,r))}function GI(e,t,n,o,r){var i=rv(e,t,n,o,r),a=Ji(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}$e("Q",0,"Qo","quarter");De("Q",qy);Et("Q",function(e,t){t[qo]=(nt(e)-1)*3});function KI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$e("D",["DD",2],"Do","date");De("D",At,Gs);De("DD",At,Bn);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Et(["D","DD"],To);Et("Do",function(e,t){t[To]=nt(e.match(At)[0])});var Tv=Ks("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",yc);De("DDDD",Gy);Et(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nt(e)});function XI(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$e("m",["mm",2],0,"minute");De("m",At,ch);De("mm",At,Bn);Et(["m","mm"],co);var ZI=Ks("Minutes",!1);$e("s",["ss",2],0,"second");De("s",At,ch);De("ss",At,Bn);Et(["s","ss"],Go);var QI=Ks("Seconds",!1);$e("S",0,0,function(){return~~(this.millisecond()/100)});$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)});$e(0,["SSS",3],0,"millisecond");$e(0,["SSSS",4],0,function(){return this.millisecond()*10});$e(0,["SSSSS",5],0,function(){return this.millisecond()*100});$e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});$e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});$e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});$e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",yc,qy);De("SS",yc,Bn);De("SSS",yc,Gy);var gr,kv;for(gr="SSSS";gr.length<=9;gr+="S")De(gr,qs);function JI(e,t){t[Lr]=nt(("0."+e)*1e3)}for(gr="S";gr.length<=9;gr+="S")Et(gr,JI);kv=Ks("Milliseconds",!1);$e("z",0,0,"zoneAbbr");$e("zz",0,0,"zoneName");function eN(){return this._isUTC?"UTC":""}function tN(){return this._isUTC?"Coordinated Universal Time":""}var ve=va.prototype;ve.add=qM;ve.calendar=eI;ve.clone=tI;ve.diff=lI;ve.endOf=vI;ve.format=hI;ve.from=fI;ve.fromNow=pI;ve.to=mI;ve.toNow=gI;ve.get=uO;ve.invalidAt=kI;ve.isAfter=nI;ve.isBefore=oI;ve.isBetween=rI;ve.isSame=sI;ve.isSameOrAfter=iI;ve.isSameOrBefore=aI;ve.isValid=RI;ve.lang=wv;ve.locale=bv;ve.localeData=Cv;ve.max=RM;ve.min=xM;ve.parsingFlags=TI;ve.set=hO;ve.startOf=yI;ve.subtract=GM;ve.toArray=SI;ve.toObject=_I;ve.toDate=CI;ve.toISOString=dI;ve.inspect=uI;typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ve.toJSON=xI;ve.toString=cI;ve.unix=wI;ve.valueOf=bI;ve.creationData=EI;ve.eraName=MI;ve.eraNarrow=II;ve.eraAbbr=NI;ve.eraYear=AI;ve.year=Zy;ve.isLeapYear=dO;ve.weekYear=WI;ve.isoWeekYear=HI;ve.quarter=ve.quarters=KI;ve.month=nv;ve.daysInMonth=CO;ve.week=ve.weeks=PO;ve.isoWeek=ve.isoWeeks=DO;ve.weeksInYear=UI;ve.weeksInWeekYear=qI;ve.isoWeeksInYear=zI;ve.isoWeeksInISOWeekYear=YI;ve.date=Tv;ve.day=ve.days=HO;ve.weekday=zO;ve.isoWeekday=YO;ve.dayOfYear=XI;ve.hour=ve.hours=QO;ve.minute=ve.minutes=ZI;ve.second=ve.seconds=QI;ve.millisecond=ve.milliseconds=kv;ve.utcOffset=NM;ve.utc=FM;ve.local=LM;ve.parseZone=$M;ve.hasAlignedHourOffset=VM;ve.isDST=jM;ve.isLocal=WM;ve.isUtcOffset=HM;ve.isUtc=mv;ve.isUTC=mv;ve.zoneAbbr=eN;ve.zoneName=tN;ve.dates=ro("dates accessor is deprecated. Use date instead.",Tv);ve.months=ro("months accessor is deprecated. Use month instead",nv);ve.years=ro("years accessor is deprecated. Use year instead",Zy);ve.zone=ro("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",AM);ve.isDSTShifted=ro("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",BM);function nN(e){return It(e*1e3)}function oN(){return It.apply(null,arguments).parseZone()}function Ev(e){return e}var gt=rh.prototype;gt.calendar=WD;gt.longDateFormat=UD;gt.invalidDate=GD;gt.ordinal=ZD;gt.preparse=Ev;gt.postformat=Ev;gt.relativeTime=JD;gt.pastFuture=eO;gt.set=jD;gt.eras=PI;gt.erasParse=DI;gt.erasConvertYear=OI;gt.erasAbbrRegex=LI;gt.erasNameRegex=FI;gt.erasNarrowRegex=$I;gt.months=yO;gt.monthsShort=vO;gt.monthsParse=wO;gt.monthsRegex=_O;gt.monthsShortRegex=SO;gt.week=RO;gt.firstDayOfYear=EO;gt.firstDayOfWeek=kO;gt.weekdays=$O;gt.weekdaysMin=jO;gt.weekdaysShort=VO;gt.weekdaysParse=WO;gt.weekdaysRegex=UO;gt.weekdaysShortRegex=qO;gt.weekdaysMinRegex=GO;gt.isPM=XO;gt.meridiem=JO;function Nl(e,t,n,o){var r=ir(),i=No().set(o,t);return r[n](i,e)}function Pv(e,t,n){if(nr(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nl(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Nl(e,o,n,"month");return r}function Sh(e,t,n,o){typeof e=="boolean"?(nr(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,nr(t)&&(n=t,t=void 0),t=t||"");var r=ir(),i=e?r._week.dow:0,a,l=[];if(n!=null)return Nl(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=Nl(t,(a+i)%7,o,"day");return l}function rN(e,t){return Pv(e,t,"months")}function sN(e,t){return Pv(e,t,"monthsShort")}function iN(e,t,n){return Sh(e,t,n,"weekdays")}function aN(e,t,n){return Sh(e,t,n,"weekdaysShort")}function lN(e,t,n){return Sh(e,t,n,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=ro("moment.lang is deprecated. Use moment.locale instead.",yr);xe.langData=ro("moment.langData is deprecated. Use moment.localeData instead.",ir);var Ho=Math.abs;function cN(){var e=this._data;return this._milliseconds=Ho(this._milliseconds),this._days=Ho(this._days),this._months=Ho(this._months),e.milliseconds=Ho(e.milliseconds),e.seconds=Ho(e.seconds),e.minutes=Ho(e.minutes),e.hours=Ho(e.hours),e.months=Ho(e.months),e.years=Ho(e.years),this}function Dv(e,t,n,o){var r=mo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function dN(e,t){return Dv(this,e,t,1)}function uN(e,t){return Dv(this,e,t,-1)}function Sm(e){return e<0?Math.floor(e):Math.ceil(e)}function hN(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Sm(hu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Kn(e/1e3),o.seconds=r%60,i=Kn(r/60),o.minutes=i%60,a=Kn(i/60),o.hours=a%24,t+=Kn(a/24),d=Kn(Ov(t)),n+=d,t-=Sm(hu(d)),l=Kn(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Ov(e){return e*4800/146097}function hu(e){return e*146097/4800}function fN(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=so(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Ov(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(hu(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function ar(e){return function(){return this.as(e)}}var Mv=ar("ms"),pN=ar("s"),mN=ar("m"),gN=ar("h"),yN=ar("d"),vN=ar("w"),bN=ar("M"),wN=ar("Q"),CN=ar("y"),SN=Mv;function _N(){return mo(this)}function xN(e){return e=so(e),this.isValid()?this[e+"s"]():NaN}function Xr(e){return function(){return this.isValid()?this._data[e]:NaN}}var RN=Xr("milliseconds"),TN=Xr("seconds"),kN=Xr("minutes"),EN=Xr("hours"),PN=Xr("days"),DN=Xr("months"),ON=Xr("years");function MN(){return Kn(this.days()/7)}var Yo=Math.round,Cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function IN(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function NN(e,t,n,o){var r=mo(e).abs(),i=Yo(r.as("s")),a=Yo(r.as("m")),l=Yo(r.as("h")),d=Yo(r.as("d")),u=Yo(r.as("M")),f=Yo(r.as("w")),p=Yo(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,IN.apply(null,y)}function AN(e){return e===void 0?Yo:typeof e=="function"?(Yo=e,!0):!1}function FN(e,t){return Cs[e]===void 0?!1:t===void 0?Cs[e]:(Cs[e]=t,e==="s"&&(Cs.ss=t-1),!0)}function LN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Cs,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Cs,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=NN(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var _d=Math.abs;function fs(e){return(e>0)-(e<0)||+e}function Rc(){if(!this.isValid())return this.localeData().invalidDate();var e=_d(this._milliseconds)/1e3,t=_d(this._days),n=_d(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Kn(e/60),r=Kn(o/60),e%=60,o%=60,i=Kn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=fs(this._months)!==fs(l)?"-":"",f=fs(this._days)!==fs(l)?"-":"",p=fs(this._milliseconds)!==fs(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var dt=_c.prototype;dt.isValid=DM;dt.abs=cN;dt.add=dN;dt.subtract=uN;dt.as=fN;dt.asMilliseconds=Mv;dt.asSeconds=pN;dt.asMinutes=mN;dt.asHours=gN;dt.asDays=yN;dt.asWeeks=vN;dt.asMonths=bN;dt.asQuarters=wN;dt.asYears=CN;dt.valueOf=SN;dt._bubble=hN;dt.clone=_N;dt.get=xN;dt.milliseconds=RN;dt.seconds=TN;dt.minutes=kN;dt.hours=EN;dt.days=PN;dt.weeks=MN;dt.months=DN;dt.years=ON;dt.humanize=LN;dt.toISOString=Rc;dt.toString=Rc;dt.toJSON=Rc;dt.locale=bv;dt.localeData=Cv;dt.toIsoString=ro("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rc);dt.lang=wv;$e("X",0,0,"unix");$e("x",0,0,"valueOf");De("x",bc);De("X",rO);Et("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Et("x",function(e,t,n){n._d=new Date(nt(e))});//! moment.js
|
|
277
|
-
xe.version="2.30.1";$D(It);xe.fn=ve;xe.min=TM;xe.max=kM;xe.now=EM;xe.utc=No;xe.unix=nN;xe.months=rN;xe.isDate=ya;xe.locale=yr;xe.invalid=mc;xe.duration=mo;xe.isMoment=po;xe.weekdays=iN;xe.parseZone=oN;xe.localeData=ir;xe.isDuration=pl;xe.monthsShort=sN;xe.weekdaysMin=lN;xe.defineLocale=ph;xe.updateLocale=oM;xe.locales=rM;xe.weekdaysShort=aN;xe.normalizeUnits=so;xe.relativeTimeRounding=AN;xe.relativeTimeThreshold=FN;xe.calendarFormat=JM;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const $N=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),VN=[xe.ISO_8601,Yr.ui,Yr.db],fu="Invalid date";ie(iy)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class jN extends pc{handleKeyboardEvent(t,n){if(n.isActive)if(dF(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),Uo.table=n,Uo.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Iv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class BN extends Iv{getFilterFn(){return t=>!t?.isDeleted}}class WN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function Ss(e){return new Date(e).getTime()}class Nv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function HN(e){return{tooltip:"Apply column filter",command:e}}class Ca{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class zN extends Ca{constructor(){super(...arguments),this.columnId="",this.group=hn.Text,this.target=null,this.x=0,this.y=0}}const Rn=new zN;class YN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const or=new YN;function Av(e){return or.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),Rn.columnId=n.column.id||"",Rn.group=n.command,Rn.table=e,Rn.target=t.target,Rn.x=t.x||0,Rn.y=t.y||0,Rn.notify()}}var UN=Object.defineProperty,qN=(e,t,n)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>qN(e,typeof t!="symbol"?t+"":t,n),na=class{constructor(e,t){this.event=e,this.args=t,P(this,"_isPropagationStopped",!1),P(this,"_isImmediatePropagationStopped",!1),P(this,"_isDefaultPrevented",!1),P(this,"returnValues",[]),P(this,"returnValue"),P(this,"_eventTarget"),P(this,"nativeEvent"),P(this,"arguments_"),P(this,"altKey"),P(this,"ctrlKey"),P(this,"metaKey"),P(this,"shiftKey"),P(this,"key"),P(this,"keyCode"),P(this,"clientX"),P(this,"clientY"),P(this,"offsetX"),P(this,"offsetY"),P(this,"pageX"),P(this,"pageY"),P(this,"bubbles"),P(this,"target"),P(this,"type"),P(this,"which"),P(this,"x"),P(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Zr=class{constructor(e,t){this.eventName=e,this.pubSub=t,P(this,"_handlers",[]),P(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof na?t:new na(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},Sa=class{constructor(){P(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},_h=class{constructor(e,t,n,o){P(this,"fromRow"),P(this,"fromCell"),P(this,"toCell"),P(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},Fv=class{constructor(){P(this,"__nonDataRow",!0)}},Lv=class extends Fv{constructor(){super(),P(this,"__group",!0),P(this,"level",0),P(this,"count",0),P(this,"value",null),P(this,"title",null),P(this,"collapsed",!1),P(this,"selectChecked",!1),P(this,"totals",null),P(this,"rows",[]),P(this,"groups",null),P(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},GN=class extends Fv{constructor(){super(),P(this,"__groupTotals",!0),P(this,"group",null),P(this,"initialized",!1)}},KN=class{constructor(){P(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},Tc=class{constructor(){P(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Un=class Ht{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||Ht.toString.call(t)!=="[object Object]")return!1;let n=Ht.getProto(t);if(!n)return!0;let o=Ht.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&Ht.fnToString.call(o)===Ht.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=Ht.windowScrollPosition(),u=d.top,f=d.left,p=Ht.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!Ht.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(Ht.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(Ht.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!Ht.isPlainObject(r)?l={}:l=r,a=!1,d[o]=Ht.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(Ht.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;Ht.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;Ht.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!Ht.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?Ht.isHidden(t)&&o.push(t):r?Ht.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return Ht.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return Ht.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?Ht.hide(t):Ht.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Zr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};P(Un,"getProto",Object.getPrototypeOf),P(Un,"class2type",{}),P(Un,"toString",Un.class2type.toString),P(Un,"hasOwn",Un.class2type.hasOwnProperty),P(Un,"fnToString",Un.hasOwn.toString),P(Un,"ObjectFunctionString",Un.fnToString.call(Object)),P(Un,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var go=Un,$v=new KN,XN={Event:Zr,EventHandler:Sa,GlobalEditorLock:$v,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:ZN,EventHandler:QN,GlobalEditorLock:JN,keyCode:Br,preClickClassName:eA,GridAutosizeColsMode:Vv,ColAutosizeMode:tA,RowSelectionMode:nA,ValueFilterMode:oA,WidthEvalMode:rA}=XN,sA=go,jv=class{constructor(e,t){this.grid=e,P(this,"pluginName","CellRangeDecorator"),P(this,"_options"),P(this,"_elem"),P(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=sA.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},iA=go;function xh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",k),t.addEventListener("touchstart",k))}function m(C,O,I){if(typeof C=="function")return C(O,I)}function v(){t&&(t.removeEventListener("mousedown",k),t.removeEventListener("touchstart",k))}function D(C){let O=!1;return a&&a.forEach(I=>{C[I]&&(O=!0)}),O}function k(C){if(!D(C)){l=C.target;let O=C?.touches?.[0]??C,{target:I}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=iA.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!D(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:I}=O;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;w=Object.assign(w,{target:O}),m(i,C,w),y=!1}}return b(),{destroy:v}}function aA(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function lA(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var xd=Zr,cA=Sa,Rd=_h,dA=xh,uA=jv,pi=go,hA=class{constructor(e){P(this,"pluginName","CellRangeSelector"),P(this,"onBeforeCellRangeSelected",new xd("onBeforeCellRangeSelected")),P(this,"onCellRangeSelected",new xd("onCellRangeSelected")),P(this,"onCellRangeSelecting",new xd("onCellRangeSelecting")),P(this,"_grid"),P(this,"_currentlySelectedRange",null),P(this,"_canvas",null),P(this,"_decorator"),P(this,"_gridOptions"),P(this,"_activeCanvas"),P(this,"_dragging",!1),P(this,"_handler",new cA),P(this,"_options"),P(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),P(this,"_rowOffset",0),P(this,"_columnOffset",0),P(this,"_isRightCanvas",!1),P(this,"_isBottomCanvas",!1),P(this,"_activeViewport"),P(this,"_autoScrollTimerId"),P(this,"_draggingMouseOffset"),P(this,"_moveDistanceForOneCell"),P(this,"_xDelayForNextCell",0),P(this,"_yDelayForNextCell",0),P(this,"_viewportHeight",0),P(this,"_viewportWidth",0),P(this,"_isRowMoveRegistered",!1),P(this,"_scrollLeft",0),P(this,"_scrollTop",0),this._options=pi.extend(!0,{},this._defaults,e)}init(e){if(dA===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new uA(e,this._options),this._grid=e,pi.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=pi.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new Rd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=pi.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=pi.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new Rd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new Rd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},fA=Tc,pA=Sa,fr=go,mA=class{constructor(e){P(this,"pluginName","CheckboxSelectColumn"),P(this,"_dataView"),P(this,"_grid"),P(this,"_isUsingDataView",!1),P(this,"_selectableOverride",null),P(this,"_headerRowNode"),P(this,"_selectAll_UID"),P(this,"_handler",new pA),P(this,"_selectedRowsLookup",{}),P(this,"_checkboxColumnCellIndex",null),P(this,"_options"),P(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),P(this,"_isSelectAllChecked",!1),P(this,"_bindingEventService"),this._bindingEventService=new fA,this._options=fr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=fr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(fr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(fr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){fr.emptyElement(n.node);let o=fr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(fr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(fr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},gA=Tc,yA=Zr,vA=QN,Td=go,bA=class{constructor(e){P(this,"pluginName","HeaderButtons"),P(this,"onCommand",new yA("onCommand")),P(this,"_grid"),P(this,"_handler",new vA),P(this,"_bindingEventService",new gA),P(this,"_defaults",{buttonCssClass:"slick-header-button"}),P(this,"_options"),this._options=Td.extend(!0,{},this._defaults,e)}init(e){this._grid=e,Td.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...Td.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},wA=Tc,kd=ZN,CA=Sa,Fn=go,SA=class{constructor(e){P(this,"pluginName","HeaderMenu"),P(this,"onAfterMenuShow",new kd("onAfterMenuShow")),P(this,"onBeforeMenuShow",new kd("onBeforeMenuShow")),P(this,"onCommand",new kd("onCommand")),P(this,"_grid"),P(this,"_gridUid",""),P(this,"_handler",new CA),P(this,"_bindingEventService",new wA),P(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),P(this,"_options"),P(this,"_activeHeaderColumnElm"),P(this,"_menuElm"),P(this,"_subMenuParentId",""),this._options=Fn.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",Fn.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=Fn.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...Fn.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...Fn.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),m=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!m);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...Fn.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let D=document.createElement("div");D.className="slick-header-menuicon",v.appendChild(D),w.iconCssClass&&D.classList.add(...Fn.classNameToList(w.iconCssClass)),w.iconImage&&(D.style.backgroundImage="url("+w.iconImage+")");let k=document.createElement("span");if(k.className="slick-header-menucontent",k.textContent=w.title||"",v.appendChild(k),w.textCssClass&&k.classList.add(...Fn.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...Fn.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(Fn.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=Fn.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=Fn.offset(this._menuElm),u=Fn.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},_A=xh,Ed=Br,xA=jv,RA=hA,TA=Zr,kA=na,EA=Sa,Pd=_h,Ja=go,PA=class{constructor(e){P(this,"pluginName","RowSelectionModel"),P(this,"onSelectedRangesChanged",new TA("onSelectedRangesChanged")),P(this,"_grid"),P(this,"_ranges",[]),P(this,"_eventHandler",new EA),P(this,"_inHandler",!1),P(this,"_selector"),P(this,"_isRowMoveManagerHandler"),P(this,"_options"),P(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=Ja.extend(!0,{},this._defaults,e)}init(e){if(_A===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,Ja.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!xA)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new RA({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new Pd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new kA(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&Ja.isDefined(t.row)&&this.setSelectedRanges([new Pd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===Ed.UP||e.which===Ed.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===Ed.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:Ja.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new Pd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},DA=Br,Dd=Lv,mi=go,Bv=class{constructor(e){P(this,"pluginName","GroupItemMetadataProvider"),P(this,"_grid"),P(this,"_options"),P(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=mi.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){mi.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(mi.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(mi.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=mi.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof Dd&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof Dd&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===DA.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof Dd&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},zo=Zr,Od=na,_m=Lv,OA=GN,zn=go,MA=Bv,IA=class{constructor(e,t){this.externalPubSub=t,P(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),P(this,"idProperty","id"),P(this,"items",[]),P(this,"rows",[]),P(this,"idxById",new Map),P(this,"rowsById"),P(this,"filter",null),P(this,"filterCSPSafe",null),P(this,"updated",null),P(this,"suspend",!1),P(this,"isBulkSuspend",!1),P(this,"bulkDeleteIds",new Map),P(this,"sortAsc",!0),P(this,"fastSortField"),P(this,"sortComparer"),P(this,"refreshHints",{}),P(this,"prevRefreshHints",{}),P(this,"filterArgs"),P(this,"filteredItems",[]),P(this,"compiledFilter"),P(this,"compiledFilterCSPSafe"),P(this,"compiledFilterWithCaching"),P(this,"compiledFilterWithCachingCSPSafe"),P(this,"filterCache",[]),P(this,"_grid"),P(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),P(this,"groupingInfos",[]),P(this,"groups",[]),P(this,"toggledGroupsByLevel",[]),P(this,"groupingDelimiter",":|:"),P(this,"selectedRowIds",[]),P(this,"preSelectedRowIdsChangeFn"),P(this,"pagesize",0),P(this,"pagenum",0),P(this,"totalRows",0),P(this,"_options"),P(this,"_container"),P(this,"onBeforePagingInfoChanged"),P(this,"onGroupExpanded"),P(this,"onGroupCollapsed"),P(this,"onPagingInfoChanged"),P(this,"onRowCountChanged"),P(this,"onRowsChanged"),P(this,"onRowsOrCountChanged"),P(this,"onSelectedRowIdsChanged"),P(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new zo("onBeforePagingInfoChanged",t),this.onGroupExpanded=new zo("onGroupExpanded",t),this.onGroupCollapsed=new zo("onGroupCollapsed",t),this.onPagingInfoChanged=new zo("onPagingInfoChanged",t),this.onRowCountChanged=new zo("onRowCountChanged",t),this.onRowsChanged=new zo("onRowsChanged",t),this.onRowsOrCountChanged=new zo("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new zo("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new zo("onSetItemsCalled",t),this._options=zn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(zn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),zn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new MA),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=zn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];zn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];zn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!zn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(zn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new _m,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new _m,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new OA;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=zn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=zn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=zn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];zn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},Al=Br,Md=go,pu=class mu{constructor(t){this.args=t,P(this,"input"),P(this,"defaultValue"),P(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Md.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Rm:Tm),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?Rm:Tm),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Md.isDefined(t)||(t=mu.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);mu.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!Md.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};P(pu,"DefaultDecimalPlaces"),P(pu,"AllowEmptyValue",!1);var xm=pu;function Rm(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===Al.LEFT&&t>0||e.keyCode===Al.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Tm(e){(e.keyCode===Al.LEFT||e.keyCode===Al.RIGHT)&&e.stopImmediatePropagation()}var NA=Tc,pr=tA,Le=Zr,gi=na,AA=JN,En=Vv,wo=Br,FA=eA,LA=_h,ps=nA,Pr=oA,V=go,Id=rA,km=xh,Em=aA,Pm=lA,$A=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,P(this,"slickGridVersion","5.15.5"),P(this,"cid",""),P(this,"onActiveCellChanged"),P(this,"onActiveCellPositionChanged"),P(this,"onAddNewRow"),P(this,"onAfterSetColumns"),P(this,"onAutosizeColumns"),P(this,"onBeforeAppendCell"),P(this,"onBeforeCellEditorDestroy"),P(this,"onBeforeColumnsResize"),P(this,"onBeforeDestroy"),P(this,"onBeforeEditCell"),P(this,"onBeforeFooterRowCellDestroy"),P(this,"onBeforeHeaderCellDestroy"),P(this,"onBeforeHeaderRowCellDestroy"),P(this,"onBeforeRemoveCachedRow"),P(this,"onBeforeSetColumns"),P(this,"onBeforeSort"),P(this,"onBeforeUpdateColumns"),P(this,"onCellChange"),P(this,"onCellCssStylesChanged"),P(this,"onClick"),P(this,"onColumnsReordered"),P(this,"onColumnsDrag"),P(this,"onColumnsResized"),P(this,"onColumnsResizeDblClick"),P(this,"onCompositeEditorChange"),P(this,"onContextMenu"),P(this,"onDrag"),P(this,"onDblClick"),P(this,"onDragInit"),P(this,"onDragStart"),P(this,"onDragEnd"),P(this,"onFooterClick"),P(this,"onFooterContextMenu"),P(this,"onFooterRowCellRendered"),P(this,"onHeaderCellRendered"),P(this,"onHeaderClick"),P(this,"onHeaderContextMenu"),P(this,"onHeaderMouseEnter"),P(this,"onHeaderMouseLeave"),P(this,"onHeaderRowCellRendered"),P(this,"onHeaderRowMouseEnter"),P(this,"onHeaderRowMouseLeave"),P(this,"onPreHeaderContextMenu"),P(this,"onPreHeaderClick"),P(this,"onKeyDown"),P(this,"onMouseEnter"),P(this,"onMouseLeave"),P(this,"onRendered"),P(this,"onScroll"),P(this,"onSelectedRowsChanged"),P(this,"onSetOptions"),P(this,"onActivateChangedOptions"),P(this,"onSort"),P(this,"onValidationError"),P(this,"onViewportChanged"),P(this,"scrollbarDimensions"),P(this,"maxSupportedCssHeight"),P(this,"canvas",null),P(this,"canvas_context",null),P(this,"_options"),P(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:AA,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:En.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),P(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),P(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:pr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:ps.FirstNRows,rowSelectionCount:100,valueFilterMode:Pr.None,widthEvalMode:Id.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),P(this,"_columnResizeTimer"),P(this,"_executionBlockTimer"),P(this,"_flashCellTimer"),P(this,"_highlightRowTimer"),P(this,"th"),P(this,"h"),P(this,"ph"),P(this,"n"),P(this,"cj"),P(this,"page",0),P(this,"offset",0),P(this,"vScrollDir",1),P(this,"_bindingEventService",new NA),P(this,"initialized",!1),P(this,"_container"),P(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),P(this,"_focusSink"),P(this,"_focusSink2"),P(this,"_groupHeaders",[]),P(this,"_headerScroller",[]),P(this,"_headers",[]),P(this,"_headerRows"),P(this,"_headerRowScroller"),P(this,"_headerRowSpacerL"),P(this,"_headerRowSpacerR"),P(this,"_footerRow"),P(this,"_footerRowScroller"),P(this,"_footerRowSpacerL"),P(this,"_footerRowSpacerR"),P(this,"_preHeaderPanel"),P(this,"_preHeaderPanelScroller"),P(this,"_preHeaderPanelSpacer"),P(this,"_preHeaderPanelR"),P(this,"_preHeaderPanelScrollerR"),P(this,"_preHeaderPanelSpacerR"),P(this,"_topHeaderPanel"),P(this,"_topHeaderPanelScroller"),P(this,"_topHeaderPanelSpacer"),P(this,"_topPanelScrollers"),P(this,"_topPanels"),P(this,"_viewport"),P(this,"_canvas"),P(this,"_style"),P(this,"_boundAncestors",[]),P(this,"stylesheet"),P(this,"columnCssRulesL"),P(this,"columnCssRulesR"),P(this,"viewportH",0),P(this,"viewportW",0),P(this,"canvasWidth",0),P(this,"canvasWidthL",0),P(this,"canvasWidthR",0),P(this,"headersWidth",0),P(this,"headersWidthL",0),P(this,"headersWidthR",0),P(this,"viewportHasHScroll",!1),P(this,"viewportHasVScroll",!1),P(this,"headerColumnWidthDiff",0),P(this,"headerColumnHeightDiff",0),P(this,"cellWidthDiff",0),P(this,"cellHeightDiff",0),P(this,"absoluteColumnMinWidth"),P(this,"hasFrozenRows",!1),P(this,"frozenRowsHeight",0),P(this,"actualFrozenRow",-1),P(this,"paneTopH",0),P(this,"paneBottomH",0),P(this,"viewportTopH",0),P(this,"viewportBottomH",0),P(this,"topPanelH",0),P(this,"headerRowH",0),P(this,"footerRowH",0),P(this,"tabbingDirection",1),P(this,"_activeCanvasNode"),P(this,"_activeViewportNode"),P(this,"activePosX"),P(this,"activePosY"),P(this,"activeRow"),P(this,"activeCell"),P(this,"activeCellNode",null),P(this,"currentEditor",null),P(this,"serializedEditorValue"),P(this,"editController"),P(this,"_prevDataLength",0),P(this,"_prevInvalidatedRowsCount",0),P(this,"_rowSpanIsCached",!1),P(this,"_colsWithRowSpanCache",{}),P(this,"rowsCache",{}),P(this,"renderedRows",0),P(this,"numVisibleRows",0),P(this,"prevScrollTop",0),P(this,"scrollHeight",0),P(this,"scrollTop",0),P(this,"lastRenderedScrollTop",0),P(this,"lastRenderedScrollLeft",0),P(this,"prevScrollLeft",0),P(this,"scrollLeft",0),P(this,"selectionModel"),P(this,"selectedRows",[]),P(this,"plugins",[]),P(this,"cellCssClasses",{}),P(this,"columnsById",{}),P(this,"sortColumns",[]),P(this,"columnPosLeft",[]),P(this,"columnPosRight",[]),P(this,"pagingActive",!1),P(this,"pagingIsLastPage",!1),P(this,"scrollThrottle"),P(this,"h_editorLoader"),P(this,"h_postrender"),P(this,"h_postrenderCleanup"),P(this,"postProcessedRows",{}),P(this,"postProcessToRow",null),P(this,"postProcessFromRow",null),P(this,"postProcessedCleanupQueue",[]),P(this,"postProcessgroupId",0),P(this,"counter_rows_rendered",0),P(this,"counter_rows_removed",0),P(this,"_paneHeaderL"),P(this,"_paneHeaderR"),P(this,"_paneTopL"),P(this,"_paneTopR"),P(this,"_paneBottomL"),P(this,"_paneBottomR"),P(this,"_headerScrollerL"),P(this,"_headerScrollerR"),P(this,"_headerL"),P(this,"_headerR"),P(this,"_groupHeadersL"),P(this,"_groupHeadersR"),P(this,"_headerRowScrollerL"),P(this,"_headerRowScrollerR"),P(this,"_footerRowScrollerL"),P(this,"_footerRowScrollerR"),P(this,"_headerRowL"),P(this,"_headerRowR"),P(this,"_footerRowL"),P(this,"_footerRowR"),P(this,"_topPanelScrollerL"),P(this,"_topPanelScrollerR"),P(this,"_topPanelL"),P(this,"_topPanelR"),P(this,"_viewportTopL"),P(this,"_viewportTopR"),P(this,"_viewportBottomL"),P(this,"_viewportBottomR"),P(this,"_canvasTopL"),P(this,"_canvasTopR"),P(this,"_canvasBottomL"),P(this,"_canvasBottomR"),P(this,"_viewportScrollContainerX"),P(this,"_viewportScrollContainerY"),P(this,"_headerScrollContainer"),P(this,"_headerRowScrollContainer"),P(this,"_footerRowScrollContainer"),P(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),P(this,"_hiddenParents",[]),P(this,"oldProps",[]),P(this,"enforceFrozenRowHeightRecalc",!1),P(this,"columnResizeDragging",!1),P(this,"slickDraggableInstance",null),P(this,"slickMouseWheelInstances",[]),P(this,"slickResizableInstances",[]),P(this,"sortableSideLeftInstance"),P(this,"sortableSideRightInstance"),P(this,"logMessageCount",0),P(this,"logMessageMaxCount",30),P(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Le("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Le("onActiveCellPositionChanged",r),this.onAddNewRow=new Le("onAddNewRow",r),this.onAfterSetColumns=new Le("onAfterSetColumns",r),this.onAutosizeColumns=new Le("onAutosizeColumns",r),this.onBeforeAppendCell=new Le("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Le("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Le("onBeforeColumnsResize",r),this.onBeforeDestroy=new Le("onBeforeDestroy",r),this.onBeforeEditCell=new Le("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Le("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Le("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Le("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Le("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Le("onBeforeSetColumns",r),this.onBeforeSort=new Le("onBeforeSort",r),this.onBeforeUpdateColumns=new Le("onBeforeUpdateColumns",r),this.onCellChange=new Le("onCellChange",r),this.onCellCssStylesChanged=new Le("onCellCssStylesChanged",r),this.onClick=new Le("onClick",r),this.onColumnsReordered=new Le("onColumnsReordered",r),this.onColumnsDrag=new Le("onColumnsDrag",r),this.onColumnsResized=new Le("onColumnsResized",r),this.onColumnsResizeDblClick=new Le("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Le("onCompositeEditorChange",r),this.onContextMenu=new Le("onContextMenu",r),this.onDrag=new Le("onDrag",r),this.onDblClick=new Le("onDblClick",r),this.onDragInit=new Le("onDragInit",r),this.onDragStart=new Le("onDragStart",r),this.onDragEnd=new Le("onDragEnd",r),this.onFooterClick=new Le("onFooterClick",r),this.onFooterContextMenu=new Le("onFooterContextMenu",r),this.onFooterRowCellRendered=new Le("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Le("onHeaderCellRendered",r),this.onHeaderClick=new Le("onHeaderClick",r),this.onHeaderContextMenu=new Le("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Le("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Le("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Le("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Le("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Le("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Le("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Le("onPreHeaderContextMenu",r),this.onKeyDown=new Le("onKeyDown",r),this.onMouseEnter=new Le("onMouseEnter",r),this.onMouseLeave=new Le("onMouseLeave",r),this.onRendered=new Le("onRendered",r),this.onScroll=new Le("onScroll",r),this.onSelectedRowsChanged=new Le("onSelectedRowsChanged",r),this.onSetOptions=new Le("onSetOptions",r),this.onActivateChangedOptions=new Le("onActivateChangedOptions",r),this.onSort=new Le("onSort",r),this.onValidationError=new Le("onValidationError",r),this.onViewportChanged=new Le("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),V.applyDefaults(this._options,this._defaults)):this._options=V.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},V.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=V.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=V.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=V.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||V.hide(this._topHeaderPanelScroller)),this._paneHeaderL=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=V.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=V.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(V.hide(this._preHeaderPanelScroller),V.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{V.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{V.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{V.hide(o)}),this._viewportTopL=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...V.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&V.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&V.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{V.width(o,this.getHeadersWidth())}),V.width(this._headerRowSpacerL,n),V.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),V.width(this._footerRowSpacerL,n),this._footerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),V.width(this._footerRowSpacerR,n),this._footerRowL=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{V.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(Em({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),km&&(this.slickDraggableInstance=km({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=V.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),V.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;V.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=V.extend(!0,{},this._options);this._options=V.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(Em({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=En.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!V.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=V.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._footerRowL),V.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),V.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=V.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._headerL),V.emptyElement(this._headerR),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),V.emptyElement(this._headerRowL),V.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=V.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=V.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),V.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...V.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),V.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),V.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&V.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),V.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);V.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||V.offset(i.item).left>V.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<V.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof Pm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=V.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Pm({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,m.resizeableElement.classList.add("slick-header-column-active");let D=null,k=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(D=0,k=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(k!==null&&(n.maxWidth?k+=n.maxWidth-(n.previousWidth||0):k=null),D+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));D===null&&(D=1e5),x===null&&(x=1e5),k===null&&(k=1e5),S===null&&(S=1e5),i=o+Math.min(D,S),r=o-Math.min(x,k)},onResize:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let D,k=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(k<0){for(x=k,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(D=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<D?(x+=(n.previousWidth||0)-D,n.width=D):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=k,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let I=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(I>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=I),n.width=F+this._options.frozenRightViewportMinWidth>O?d:I):n.width=I,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(D=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<D?(x+=(n.previousWidth||0)-D,n.width=D):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(V.width(this._headerL,S+1e3),V.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:m.resizeableElement,resizeHandle:m.resizeableHandleElement})},onResizeEnd:(b,m)=>{m.resizeableElement.classList.remove("slick-header-column-active");let v=m.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let D;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(D=u[e].offsetWidth,n.previousWidth!==D&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===En.LegacyForceFit||e===En.LegacyOff){this.legacyAutosizeColumns();return}if(e===En.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===pr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===pr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===En.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=En.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=En.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=En.FitColsToViewport),V.width(this._container,b)}if(e===En.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=En.IgnoreViewport;else{let b=u-y,m=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==pr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=m/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,m-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===En.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===pr.Locked||i.autosizeMode===pr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===pr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Pr.GetGreatestAndSub,i.rowSelectionMode=ps.AllRows),f==="string"&&(i.valueFilterMode=Pr.GetLongestText,i.rowSelectionMode=ps.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===pr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===ps.FirstRow&&(p.endIndex=0),y===ps.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===ps.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Pr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Pr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Pr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Pr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=V.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=V.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===Id.TextOnly;if(e.autoSize?.widthEvalMode===Id.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=V.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=V.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...V.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;V.width(r)!==i&&V.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{V.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(V.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(V.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),V.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=V.extend({},this._columnDefaults,t),t.autoSize=V.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){V.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,V.isDefined(this.activeCellNode)){let i=V.offset(this.activeCellNode),a=Math.floor(V.offset(V.parents(this.activeCellNode,".grid-canvas")[0]).top),l=V.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!V.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&V.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),V.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new gi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===wo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===wo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===wo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===wo.LEFT?t=this.navigateLeft():e.which===wo.RIGHT?t=this.navigateRight():e.which===wo.UP?t=this.navigateUp():e.which===wo.DOWN?t=this.navigateDown():e.which===wo.TAB?t=this.navigateNext():e.which===wo.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===wo.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof gi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===FA,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof gi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=V.offset(V.parents(o,".grid-canvas")[0]);V.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!V.isDefined(r)||!V.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&V.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!V.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof gi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof gi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&V.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(V.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=V.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");V.width(this._canvasTopR,this.canvasWidthR),V.width(this._paneHeaderL,this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),V.width(this._paneTopL,this.canvasWidthL),V.setStyleSize(this._paneTopR,"left",this.canvasWidthL),V.width(this._paneTopR,this.viewportW-this.canvasWidthL),V.width(this._headerRowScrollerL,this.canvasWidthL),V.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._headerRowL,this.canvasWidthL),V.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,this.canvasWidthL),V.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._footerRowL,this.canvasWidthL),V.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,this.canvasWidthL),V.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(V.width(this._paneBottomL,this.canvasWidthL),V.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),V.width(this._viewportBottomL,this.canvasWidthL),V.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),V.width(this._canvasBottomL,this.canvasWidthL),V.width(this._canvasBottomR,this.canvasWidthR))}else V.width(this._paneHeaderL,"100%"),V.width(this._paneTopL,"100%"),V.width(this._headerRowScrollerL,"100%"),V.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,"100%"),V.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(V.width(this._viewportBottomL,"100%"),V.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),V.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(V.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(V.show(this._paneHeaderR),V.show(this._paneTopR),this.hasFrozenRows?(V.show(this._paneBottomL),V.show(this._paneBottomR)):(V.hide(this._paneBottomR),V.hide(this._paneBottomL))):(V.hide(this._paneHeaderR),V.hide(this._paneTopR),V.hide(this._paneBottomR),this.hasFrozenRows?V.show(this._paneBottomL):(V.hide(this._paneBottomR),V.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=V.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){V.slideDown(t,this.resizeCanvas.bind(this));return}V.show(t),this.resizeCanvas()}else{if(r){V.slideUp(t,this.resizeCanvas.bind(this));return}V.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=V.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,m,v,D,k=!0;for(let x=0,S=w;x<S;x++){if(k=!0,D=this.columns[x],!D||D.hidden)continue;m=1,v=1,b=null,d?.columns&&(b=d.columns[D.id]||d.columns[x],m=b?.colspan||1,v=b?.rowspan||1,m==="*"&&(m=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=m;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!D.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(k=!1),k){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,b,i)}}else(D.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=V.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=V.createDomElement("div",{className:V.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let m=this.getCellHeight(t,r);if(r>1&&m!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${m||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&V.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):V.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?V.toFloat(V.height(this._headerScroller[0])):0;this.viewportH=V.toFloat(e.height)-V.toFloat(e.paddingTop)-V.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(V.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),V.height(this._container,n)}this._paneTopL.style.position="relative"}let e=V.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),V.setStyleSize(this._paneTopL,"top",e||e),V.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||V.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=V.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),V.setStyleSize(this._paneTopR,"top",n),V.height(this._paneTopR,this.paneTopH),V.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(V.setStyleSize(this._paneBottomL,"top",t),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomR,"top",t),V.height(this._paneBottomR,this.paneBottomH),V.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(V.width(this._paneBottomL,"100%"),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(V.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(V.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.frozenRowsHeight)):(V.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasTopR,this.frozenRowsHeight))):V.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===En.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?V.height(this._canvasBottomL):V.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=V.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(V.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.h)):(V.height(this._canvasTopL,this.h),V.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===En.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;V.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,m=l;b<m;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(V.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=m-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(m-1,b+v-1)]>e.leftPx){let D=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,D,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;V.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;V.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=V.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-V.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+V.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=V.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!V.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!V.isDefined(this.activeCell)||!V.isDefined(this.activeRow);if(this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!V.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...V.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...V.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...V.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...V.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=V.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=V.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=V.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;V.height(n,o);let r=V.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=V.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=V.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=V.toFloat(r[a]))),o.remove();let i=V.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=V.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=V.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return V.isDefined(n)?(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new LA(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
|
|
276
|
+
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var vm={};function Yy(e,t){xe.deprecationHandler!=null&&xe.deprecationHandler(e,t),vm[e]||(zy(t),vm[e]=!0)}xe.suppressDeprecationWarnings=!1;xe.deprecationHandler=null;function Fo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function jD(e){var t,n;for(n in e)mt(e,n)&&(t=e[n],Fo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function au(e,t){var n=mr({},e),o;for(o in t)mt(t,o)&&(jr(e[o])&&jr(t[o])?(n[o]={},mr(n[o],e[o]),mr(n[o],t[o])):t[o]!=null?n[o]=t[o]:delete n[o]);for(o in e)mt(e,o)&&!mt(t,o)&&jr(e[o])&&(n[o]=mr({},n[o]));return n}function rh(e){e!=null&&this.set(e)}var lu;Object.keys?lu=Object.keys:lu=function(e){var t,n=[];for(t in e)mt(e,t)&&n.push(t);return n};var BD={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function WD(e,t,n){var o=this._calendar[e]||this._calendar.sameElse;return Fo(o)?o.call(t,n):o}function Mo(e,t,n){var o=""+Math.abs(e),r=t-o.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+o}var sh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Za=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Cd={},Ts={};function $e(e,t,n,o){var r=o;typeof o=="string"&&(r=function(){return this[o]()}),e&&(Ts[e]=r),t&&(Ts[t[0]]=function(){return Mo(r.apply(this,arguments),t[1],t[2])}),n&&(Ts[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function HD(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zD(e){var t=e.match(sh),n,o;for(n=0,o=t.length;n<o;n++)Ts[t[n]]?t[n]=Ts[t[n]]:t[n]=HD(t[n]);return function(r){var i="",a;for(a=0;a<o;a++)i+=Fo(t[a])?t[a].call(r,e):t[a];return i}}function fl(e,t){return e.isValid()?(t=Uy(t,e.localeData()),Cd[t]=Cd[t]||zD(t),Cd[t](e)):e.localeData().invalidDate()}function Uy(e,t){var n=5;function o(r){return t.longDateFormat(r)||r}for(Za.lastIndex=0;n>=0&&Za.test(e);)e=e.replace(Za,o),Za.lastIndex=0,n-=1;return e}var YD={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"};function UD(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(sh).map(function(o){return o==="MMMM"||o==="MM"||o==="DD"||o==="dddd"?o.slice(1):o}).join(""),this._longDateFormat[e])}var qD="Invalid date";function GD(){return this._invalidDate}var KD="%d",XD=/\d{1,2}/;function ZD(e){return this._ordinal.replace("%d",e)}var QD={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function JD(e,t,n,o){var r=this._relativeTime[n];return Fo(r)?r(e,t,n,o):r.replace(/%d/i,e)}function eO(e,t){var n=this._relativeTime[e>0?"future":"past"];return Fo(n)?n(t):n.replace(/%s/i,t)}var bm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function so(e){return typeof e=="string"?bm[e]||bm[e.toLowerCase()]:void 0}function ih(e){var t={},n,o;for(o in e)mt(e,o)&&(n=so(o),n&&(t[n]=e[o]));return t}var tO={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function nO(e){var t=[],n;for(n in e)mt(e,n)&&t.push({unit:n,priority:tO[n]});return t.sort(function(o,r){return o.priority-r.priority}),t}var qy=/\d/,Bn=/\d\d/,Gy=/\d{3}/,ah=/\d{4}/,gc=/[+-]?\d{6}/,At=/\d\d?/,Ky=/\d\d\d\d?/,Xy=/\d\d\d\d\d\d?/,yc=/\d{1,3}/,lh=/\d{1,4}/,vc=/[+-]?\d{1,6}/,qs=/\d+/,bc=/[+-]?\d+/,oO=/Z|[+-]\d\d:?\d\d/gi,wc=/Z|[+-]\d\d(?::?\d\d)?/gi,rO=/[+-]?\d+(\.\d{1,3})?/,ba=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Gs=/^[1-9]\d?/,ch=/^([1-9]\d|\d)/,Dl;Dl={};function De(e,t,n){Dl[e]=Fo(t)?t:function(o,r){return o&&n?n:t}}function sO(e,t){return mt(Dl,e)?Dl[e](t._strict,t._locale):new RegExp(iO(e))}function iO(e){return Zo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,o,r,i){return n||o||r||i}))}function Zo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Kn(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function nt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Kn(t)),n}var cu={};function Et(e,t){var n,o=t,r;for(typeof e=="string"&&(e=[e]),or(t)&&(o=function(i,a){a[t]=nt(i)}),r=e.length,n=0;n<r;n++)cu[e[n]]=o}function wa(e,t){Et(e,function(n,o,r,i){r._w=r._w||{},t(n,r._w,r,i)})}function aO(e,t,n){t!=null&&mt(cu,e)&&cu[e](t,n._a,n,e)}function Cc(e){return e%4===0&&e%100!==0||e%400===0}var _n=0,Go=1,To=2,an=3,co=4,Ko=5,Lr=6,lO=7,cO=8;$e("Y",0,0,function(){var e=this.year();return e<=9999?Mo(e,4):"+"+e});$e(0,["YY",2],0,function(){return this.year()%100});$e(0,["YYYY",4],0,"year");$e(0,["YYYYY",5],0,"year");$e(0,["YYYYYY",6,!0],0,"year");De("Y",bc);De("YY",At,Bn);De("YYYY",lh,ah);De("YYYYY",vc,gc);De("YYYYYY",vc,gc);Et(["YYYYY","YYYYYY"],_n);Et("YYYY",function(e,t){t[_n]=e.length===2?xe.parseTwoDigitYear(e):nt(e)});Et("YY",function(e,t){t[_n]=xe.parseTwoDigitYear(e)});Et("Y",function(e,t){t[_n]=parseInt(e,10)});function Ai(e){return Cc(e)?366:365}xe.parseTwoDigitYear=function(e){return nt(e)+(nt(e)>68?1900:2e3)};var Zy=Ks("FullYear",!0);function dO(){return Cc(this.year())}function Ks(e,t){return function(n){return n!=null?(Qy(this,e,n),xe.updateOffset(this,t),this):Qi(this,e)}}function Qi(e,t){if(!e.isValid())return NaN;var n=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return o?n.getUTCSeconds():n.getSeconds();case"Minutes":return o?n.getUTCMinutes():n.getMinutes();case"Hours":return o?n.getUTCHours():n.getHours();case"Date":return o?n.getUTCDate():n.getDate();case"Day":return o?n.getUTCDay():n.getDay();case"Month":return o?n.getUTCMonth():n.getMonth();case"FullYear":return o?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qy(e,t,n){var o,r,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(o=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?o.setUTCMilliseconds(n):o.setMilliseconds(n));case"Seconds":return void(r?o.setUTCSeconds(n):o.setSeconds(n));case"Minutes":return void(r?o.setUTCMinutes(n):o.setMinutes(n));case"Hours":return void(r?o.setUTCHours(n):o.setHours(n));case"Date":return void(r?o.setUTCDate(n):o.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Cc(i)?28:l,r?o.setUTCFullYear(i,a,l):o.setFullYear(i,a,l)}}function uO(e){return e=so(e),Fo(this[e])?this[e]():this}function hO(e,t){if(typeof e=="object"){e=ih(e);var n=nO(e),o,r=n.length;for(o=0;o<r;o++)this[n[o].unit](e[n[o].unit])}else if(e=so(e),Fo(this[e]))return this[e](t);return this}function fO(e,t){return(e%t+t)%t}var en;Array.prototype.indexOf?en=Array.prototype.indexOf:en=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function dh(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=fO(t,12);return e+=(t-n)/12,n===1?Cc(e)?29:28:31-n%7%2}$e("M",["MM",2],"Mo",function(){return this.month()+1});$e("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});$e("MMMM",0,0,function(e){return this.localeData().months(this,e)});De("M",At,Gs);De("MM",At,Bn);De("MMM",function(e,t){return t.monthsShortRegex(e)});De("MMMM",function(e,t){return t.monthsRegex(e)});Et(["M","MM"],function(e,t){t[Go]=nt(e)-1});Et(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);r!=null?t[Go]=r:qe(n).invalidMonth=e});var pO="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jy="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ev=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mO=ba,gO=ba;function yO(e,t){return e?fo(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ev).test(t)?"format":"standalone"][e.month()]:fo(this._months)?this._months:this._months.standalone}function vO(e,t){return e?fo(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ev.test(t)?"format":"standalone"][e.month()]:fo(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function bO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)i=Ao([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:null):(r=en.call(this._longMonthsParse,a),r!==-1?r:null):t==="MMM"?(r=en.call(this._shortMonthsParse,a),r!==-1?r:(r=en.call(this._longMonthsParse,a),r!==-1?r:null)):(r=en.call(this._longMonthsParse,a),r!==-1?r:(r=en.call(this._shortMonthsParse,a),r!==-1?r:null))}function wO(e,t,n){var o,r,i;if(this._monthsParseExact)return bO.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(r=Ao([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),!n&&!this._monthsParse[o]&&(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[o].test(e))return o;if(n&&t==="MMM"&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function tv(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=nt(t);else if(t=e.localeData().monthsParse(t),!or(t))return e}var n=t,o=e.date();return o=o<29?o:Math.min(o,dh(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,o):e._d.setMonth(n,o),e}function nv(e){return e!=null?(tv(this,e),xe.updateOffset(this,!0),this):Qi(this,"Month")}function CO(){return dh(this.year(),this.month())}function SO(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mt(this,"_monthsShortRegex")||(this._monthsShortRegex=mO),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _O(e){return this._monthsParseExact?(mt(this,"_monthsRegex")||ov.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mt(this,"_monthsRegex")||(this._monthsRegex=gO),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ov(){function e(d,u){return u.length-d.length}var t=[],n=[],o=[],r,i,a,l;for(r=0;r<12;r++)i=Ao([2e3,r]),a=Zo(this.monthsShort(i,"")),l=Zo(this.months(i,"")),t.push(a),n.push(l),o.push(l),o.push(a);t.sort(e),n.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xO(e,t,n,o,r,i,a){var l;return e<100&&e>=0?(l=new Date(e+400,t,n,o,r,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,o,r,i,a),l}function Ji(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ol(e,t,n){var o=7+t-n,r=(7+Ji(e,0,o).getUTCDay()-t)%7;return-r+o-1}function rv(e,t,n,o,r){var i=(7+n-o)%7,a=Ol(e,o,r),l=1+7*(t-1)+i+a,d,u;return l<=0?(d=e-1,u=Ai(d)+l):l>Ai(e)?(d=e+1,u=l-Ai(e)):(d=e,u=l),{year:d,dayOfYear:u}}function ea(e,t,n){var o=Ol(e.year(),t,n),r=Math.floor((e.dayOfYear()-o-1)/7)+1,i,a;return r<1?(a=e.year()-1,i=r+Qo(a,t,n)):r>Qo(e.year(),t,n)?(i=r-Qo(e.year(),t,n),a=e.year()+1):(a=e.year(),i=r),{week:i,year:a}}function Qo(e,t,n){var o=Ol(e,t,n),r=Ol(e+1,t,n);return(Ai(e)-o+r)/7}$e("w",["ww",2],"wo","week");$e("W",["WW",2],"Wo","isoWeek");De("w",At,Gs);De("ww",At,Bn);De("W",At,Gs);De("WW",At,Bn);wa(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=nt(e)});function RO(e){return ea(e,this._week.dow,this._week.doy).week}var TO={dow:0,doy:6};function kO(){return this._week.dow}function EO(){return this._week.doy}function PO(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function DO(e){var t=ea(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}$e("d",0,"do","day");$e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});$e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});$e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});$e("e",0,0,"weekday");$e("E",0,0,"isoWeekday");De("d",At);De("e",At);De("E",At);De("dd",function(e,t){return t.weekdaysMinRegex(e)});De("ddd",function(e,t){return t.weekdaysShortRegex(e)});De("dddd",function(e,t){return t.weekdaysRegex(e)});wa(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);r!=null?t.d=r:qe(n).invalidWeekday=e});wa(["d","e","E"],function(e,t,n,o){t[o]=nt(e)});function OO(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function MO(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function uh(e,t){return e.slice(t,7).concat(e.slice(0,t))}var IO="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),NO="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),AO=ba,FO=ba,LO=ba;function $O(e,t){var n=fo(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?uh(n,this._week.dow):e?n[e.day()]:n}function VO(e){return e===!0?uh(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jO(e){return e===!0?uh(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function BO(e,t,n){var o,r,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)i=Ao([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1?r:null):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null):t==="dddd"?(r=en.call(this._weekdaysParse,a),r!==-1||(r=en.call(this._shortWeekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):t==="ddd"?(r=en.call(this._shortWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._minWeekdaysParse,a),r!==-1?r:null)):(r=en.call(this._minWeekdaysParse,a),r!==-1||(r=en.call(this._weekdaysParse,a),r!==-1)?r:(r=en.call(this._shortWeekdaysParse,a),r!==-1?r:null))}function WO(e,t,n){var o,r,i;if(this._weekdaysParseExact)return BO.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(r=Ao([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[o].test(e))return o;if(n&&t==="ddd"&&this._shortWeekdaysParse[o].test(e))return o;if(n&&t==="dd"&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function HO(e){if(!this.isValid())return e!=null?this:NaN;var t=Qi(this,"Day");return e!=null?(e=OO(e,this.localeData()),this.add(e-t,"d")):t}function zO(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function YO(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=MO(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function UO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mt(this,"_weekdaysRegex")||(this._weekdaysRegex=AO),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FO),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function GO(e){return this._weekdaysParseExact?(mt(this,"_weekdaysRegex")||hh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=LO),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function hh(){function e(f,p){return p.length-f.length}var t=[],n=[],o=[],r=[],i,a,l,d,u;for(i=0;i<7;i++)a=Ao([2e3,1]).day(i),l=Zo(this.weekdaysMin(a,"")),d=Zo(this.weekdaysShort(a,"")),u=Zo(this.weekdays(a,"")),t.push(l),n.push(d),o.push(u),r.push(l),r.push(d),r.push(u);t.sort(e),n.sort(e),o.sort(e),r.sort(e),this._weekdaysRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function fh(){return this.hours()%12||12}function KO(){return this.hours()||24}$e("H",["HH",2],0,"hour");$e("h",["hh",2],0,fh);$e("k",["kk",2],0,KO);$e("hmm",0,0,function(){return""+fh.apply(this)+Mo(this.minutes(),2)});$e("hmmss",0,0,function(){return""+fh.apply(this)+Mo(this.minutes(),2)+Mo(this.seconds(),2)});$e("Hmm",0,0,function(){return""+this.hours()+Mo(this.minutes(),2)});$e("Hmmss",0,0,function(){return""+this.hours()+Mo(this.minutes(),2)+Mo(this.seconds(),2)});function iv(e,t){$e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}iv("a",!0);iv("A",!1);function av(e,t){return t._meridiemParse}De("a",av);De("A",av);De("H",At,ch);De("h",At,Gs);De("k",At,Gs);De("HH",At,Bn);De("hh",At,Bn);De("kk",At,Bn);De("hmm",Ky);De("hmmss",Xy);De("Hmm",Ky);De("Hmmss",Xy);Et(["H","HH"],an);Et(["k","kk"],function(e,t,n){var o=nt(e);t[an]=o===24?0:o});Et(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Et(["h","hh"],function(e,t,n){t[an]=nt(e),qe(n).bigHour=!0});Et("hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o)),qe(n).bigHour=!0});Et("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o,2)),t[Ko]=nt(e.substr(r)),qe(n).bigHour=!0});Et("Hmm",function(e,t,n){var o=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o))});Et("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[an]=nt(e.substr(0,o)),t[co]=nt(e.substr(o,2)),t[Ko]=nt(e.substr(r))});function XO(e){return(e+"").toLowerCase().charAt(0)==="p"}var ZO=/[ap]\.?m?\.?/i,QO=Ks("Hours",!0);function JO(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var lv={calendar:BD,longDateFormat:YD,invalidDate:qD,ordinal:KD,dayOfMonthOrdinalParse:XD,relativeTime:QD,months:pO,monthsShort:Jy,week:TO,weekdays:IO,weekdaysMin:NO,weekdaysShort:sv,meridiemParse:ZO},Bt={},hi={},ta;function eM(e,t){var n,o=Math.min(e.length,t.length);for(n=0;n<o;n+=1)if(e[n]!==t[n])return n;return o}function wm(e){return e&&e.toLowerCase().replace("_","-")}function tM(e){for(var t=0,n,o,r,i;t<e.length;){for(i=wm(e[t]).split("-"),n=i.length,o=wm(e[t+1]),o=o?o.split("-"):null;n>0;){if(r=Sc(i.slice(0,n).join("-")),r)return r;if(o&&o.length>=n&&eM(i,o)>=n-1)break;n--}t++}return ta}function nM(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Sc(e){var t=null,n;if(Bt[e]===void 0&&typeof module<"u"&&module&&module.exports&&nM(e))try{t=ta._abbr,n=require,n("./locale/"+e),yr(t)}catch{Bt[e]=null}return Bt[e]}function yr(e,t){var n;return e&&(Pn(t)?n=ir(e):n=ph(e,t),n?ta=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ta._abbr}function ph(e,t){if(t!==null){var n,o=lv;if(t.abbr=e,Bt[e]!=null)Yy("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=Bt[e]._config;else if(t.parentLocale!=null)if(Bt[t.parentLocale]!=null)o=Bt[t.parentLocale]._config;else if(n=Sc(t.parentLocale),n!=null)o=n._config;else return hi[t.parentLocale]||(hi[t.parentLocale]=[]),hi[t.parentLocale].push({name:e,config:t}),null;return Bt[e]=new rh(au(o,t)),hi[e]&&hi[e].forEach(function(r){ph(r.name,r.config)}),yr(e),Bt[e]}else return delete Bt[e],null}function oM(e,t){if(t!=null){var n,o,r=lv;Bt[e]!=null&&Bt[e].parentLocale!=null?Bt[e].set(au(Bt[e]._config,t)):(o=Sc(e),o!=null&&(r=o._config),t=au(r,t),o==null&&(t.abbr=e),n=new rh(t),n.parentLocale=Bt[e],Bt[e]=n),yr(e)}else Bt[e]!=null&&(Bt[e].parentLocale!=null?(Bt[e]=Bt[e].parentLocale,e===yr()&&yr(e)):Bt[e]!=null&&delete Bt[e]);return Bt[e]}function ir(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ta;if(!fo(e)){if(t=Sc(e),t)return t;e=[e]}return tM(e)}function rM(){return lu(Bt)}function mh(e){var t,n=e._a;return n&&qe(e).overflow===-2&&(t=n[Go]<0||n[Go]>11?Go:n[To]<1||n[To]>dh(n[_n],n[Go])?To:n[an]<0||n[an]>24||n[an]===24&&(n[co]!==0||n[Ko]!==0||n[Lr]!==0)?an:n[co]<0||n[co]>59?co:n[Ko]<0||n[Ko]>59?Ko:n[Lr]<0||n[Lr]>999?Lr:-1,qe(e)._overflowDayOfYear&&(t<_n||t>To)&&(t=To),qe(e)._overflowWeeks&&t===-1&&(t=lO),qe(e)._overflowWeekday&&t===-1&&(t=cO),qe(e).overflow=t),e}var sM=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,iM=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,aM=/Z|[+-]\d\d(?::?\d\d)?/,Qa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Sd=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],lM=/^\/?Date\((-?\d+)/i,cM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,dM={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cv(e){var t,n,o=e._i,r=sM.exec(o)||iM.exec(o),i,a,l,d,u=Qa.length,f=Sd.length;if(r){for(qe(e).iso=!0,t=0,n=u;t<n;t++)if(Qa[t][1].exec(r[1])){a=Qa[t][0],i=Qa[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(r[3]){for(t=0,n=f;t<n;t++)if(Sd[t][1].exec(r[3])){l=(r[2]||" ")+Sd[t][0];break}if(l==null){e._isValid=!1;return}}if(!i&&l!=null){e._isValid=!1;return}if(r[4])if(aM.exec(r[4]))d="Z";else{e._isValid=!1;return}e._f=a+(l||"")+(d||""),yh(e)}else e._isValid=!1}function uM(e,t,n,o,r,i){var a=[hM(e),Jy.indexOf(t),parseInt(n,10),parseInt(o,10),parseInt(r,10)];return i&&a.push(parseInt(i,10)),a}function hM(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function fM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function pM(e,t,n){if(e){var o=sv.indexOf(e),r=new Date(t[0],t[1],t[2]).getDay();if(o!==r)return qe(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function mM(e,t,n){if(e)return dM[e];if(t)return 0;var o=parseInt(n,10),r=o%100,i=(o-r)/100;return i*60+r}function dv(e){var t=cM.exec(fM(e._i)),n;if(t){if(n=uM(t[4],t[3],t[2],t[5],t[6],t[7]),!pM(t[1],n,e))return;e._a=n,e._tzm=mM(t[8],t[9],t[10]),e._d=Ji.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),qe(e).rfc2822=!0}else e._isValid=!1}function gM(e){var t=lM.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(cv(e),e._isValid===!1)delete e._isValid;else return;if(dv(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:xe.createFromInputFallback(e)}xe.createFromInputFallback=ro("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ys(e,t,n){return e??t??n}function yM(e){var t=new Date(xe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function gh(e){var t,n,o=[],r,i,a;if(!e._d){for(r=yM(e),e._w&&e._a[To]==null&&e._a[Go]==null&&vM(e),e._dayOfYear!=null&&(a=ys(e._a[_n],r[_n]),(e._dayOfYear>Ai(a)||e._dayOfYear===0)&&(qe(e)._overflowDayOfYear=!0),n=Ji(a,0,e._dayOfYear),e._a[Go]=n.getUTCMonth(),e._a[To]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[an]===24&&e._a[co]===0&&e._a[Ko]===0&&e._a[Lr]===0&&(e._nextDay=!0,e._a[an]=0),e._d=(e._useUTC?Ji:xO).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[an]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(qe(e).weekdayMismatch=!0)}}function vM(e){var t,n,o,r,i,a,l,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=ys(t.GG,e._a[_n],ea(It(),1,4).year),o=ys(t.W,1),r=ys(t.E,1),(r<1||r>7)&&(d=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=ea(It(),i,a),n=ys(t.gg,e._a[_n],u.year),o=ys(t.w,u.week),t.d!=null?(r=t.d,(r<0||r>6)&&(d=!0)):t.e!=null?(r=t.e+i,(t.e<0||t.e>6)&&(d=!0)):r=i),o<1||o>Qo(n,i,a)?qe(e)._overflowWeeks=!0:d!=null?qe(e)._overflowWeekday=!0:(l=rv(n,o,r,i,a),e._a[_n]=l.year,e._dayOfYear=l.dayOfYear)}xe.ISO_8601=function(){};xe.RFC_2822=function(){};function yh(e){if(e._f===xe.ISO_8601){cv(e);return}if(e._f===xe.RFC_2822){dv(e);return}e._a=[],qe(e).empty=!0;var t=""+e._i,n,o,r,i,a,l=t.length,d=0,u,f;for(r=Uy(e._f,e._locale).match(sh)||[],f=r.length,n=0;n<f;n++)i=r[n],o=(t.match(sO(i,e))||[])[0],o&&(a=t.substr(0,t.indexOf(o)),a.length>0&&qe(e).unusedInput.push(a),t=t.slice(t.indexOf(o)+o.length),d+=o.length),Ts[i]?(o?qe(e).empty=!1:qe(e).unusedTokens.push(i),aO(i,o,e)):e._strict&&!o&&qe(e).unusedTokens.push(i);qe(e).charsLeftOver=l-d,t.length>0&&qe(e).unusedInput.push(t),e._a[an]<=12&&qe(e).bigHour===!0&&e._a[an]>0&&(qe(e).bigHour=void 0),qe(e).parsedDateParts=e._a.slice(0),qe(e).meridiem=e._meridiem,e._a[an]=bM(e._locale,e._a[an],e._meridiem),u=qe(e).era,u!==null&&(e._a[_n]=e._locale.erasConvertYear(u,e._a[_n])),gh(e),mh(e)}function bM(e,t,n){var o;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(o=e.isPM(n),o&&t<12&&(t+=12),!o&&t===12&&(t=0)),t)}function wM(e){var t,n,o,r,i,a,l=!1,d=e._f.length;if(d===0){qe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(r=0;r<d;r++)i=0,a=!1,t=oh({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[r],yh(t),nh(t)&&(a=!0),i+=qe(t).charsLeftOver,i+=qe(t).unusedTokens.length*10,qe(t).score=i,l?i<o&&(o=i,n=t):(o==null||i<o||a)&&(o=i,n=t,a&&(l=!0));mr(e,n||t)}function CM(e){if(!e._d){var t=ih(e._i),n=t.day===void 0?t.date:t.day;e._a=Hy([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(o){return o&&parseInt(o,10)}),gh(e)}}function SM(e){var t=new va(mh(uv(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function uv(e){var t=e._i,n=e._f;return e._locale=e._locale||ir(e._l),t===null||n===void 0&&t===""?mc({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),po(t)?new va(mh(t)):(ya(t)?e._d=t:fo(n)?wM(e):n?yh(e):_M(e),nh(e)||(e._d=null),e))}function _M(e){var t=e._i;Pn(t)?e._d=new Date(xe.now()):ya(t)?e._d=new Date(t.valueOf()):typeof t=="string"?gM(e):fo(t)?(e._a=Hy(t.slice(0),function(n){return parseInt(n,10)}),gh(e)):jr(t)?CM(e):or(t)?e._d=new Date(t):xe.createFromInputFallback(e)}function hv(e,t,n,o,r){var i={};return(t===!0||t===!1)&&(o=t,t=void 0),(n===!0||n===!1)&&(o=n,n=void 0),(jr(e)&&th(e)||fo(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,SM(i)}function It(e,t,n,o){return hv(e,t,n,o,!1)}var xM=ro("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:mc()}),RM=ro("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:mc()});function fv(e,t){var n,o;if(t.length===1&&fo(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],o=1;o<t.length;++o)(!t[o].isValid()||t[o][e](n))&&(n=t[o]);return n}function TM(){var e=[].slice.call(arguments,0);return fv("isBefore",e)}function kM(){var e=[].slice.call(arguments,0);return fv("isAfter",e)}var EM=function(){return Date.now?Date.now():+new Date},fi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function PM(e){var t,n=!1,o,r=fi.length;for(t in e)if(mt(e,t)&&!(en.call(fi,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(o=0;o<r;++o)if(e[fi[o]]){if(n)return!1;parseFloat(e[fi[o]])!==nt(e[fi[o]])&&(n=!0)}return!0}function DM(){return this._isValid}function OM(){return mo(NaN)}function _c(e){var t=ih(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,l=t.hour||0,d=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=PM(t),this._milliseconds=+f+u*1e3+d*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+r+o*3+n*12,this._data={},this._locale=ir(),this._bubble()}function pl(e){return e instanceof _c}function du(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function MM(e,t,n){var o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),i=0,a;for(a=0;a<o;a++)nt(e[a])!==nt(t[a])&&i++;return i+r}function pv(e,t){$e(e,0,0,function(){var n=this.utcOffset(),o="+";return n<0&&(n=-n,o="-"),o+Mo(~~(n/60),2)+t+Mo(~~n%60,2)})}pv("Z",":");pv("ZZ","");De("Z",wc);De("ZZ",wc);Et(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vh(wc,e)});var IM=/([\+\-]|\d\d)/gi;function vh(e,t){var n=(t||"").match(e),o,r,i;return n===null?null:(o=n[n.length-1]||[],r=(o+"").match(IM)||["-",0,0],i=+(r[1]*60)+nt(r[2]),i===0?0:r[0]==="+"?i:-i)}function bh(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(po(e)||ya(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),xe.updateOffset(n,!1),n):It(e).local()}function uu(e){return-Math.round(e._d.getTimezoneOffset())}xe.updateOffset=function(){};function NM(e,t,n){var o=this._offset||0,r;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vh(wc,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(r=uu(this)),this._offset=e,this._isUTC=!0,r!=null&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?yv(this,mo(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,xe.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?o:uu(this)}function AM(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function FM(e){return this.utcOffset(0,e)}function LM(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(uu(this),"m")),this}function $M(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vh(oO,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function VM(e){return this.isValid()?(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function jM(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function BM(){if(!Pn(this._isDSTShifted))return this._isDSTShifted;var e={},t;return oh(e,this),e=uv(e),e._a?(t=e._isUTC?Ao(e._a):It(e._a),this._isDSTShifted=this.isValid()&&MM(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function WM(){return this.isValid()?!this._isUTC:!1}function HM(){return this.isValid()?this._isUTC:!1}function mv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zM=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YM=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mo(e,t){var n=e,o=null,r,i,a;return pl(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:or(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(o=zM.exec(e))?(r=o[1]==="-"?-1:1,n={y:0,d:nt(o[To])*r,h:nt(o[an])*r,m:nt(o[co])*r,s:nt(o[Ko])*r,ms:nt(du(o[Lr]*1e3))*r}):(o=YM.exec(e))?(r=o[1]==="-"?-1:1,n={y:Er(o[2],r),M:Er(o[3],r),w:Er(o[4],r),d:Er(o[5],r),h:Er(o[6],r),m:Er(o[7],r),s:Er(o[8],r)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=UM(It(n.from),It(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new _c(n),pl(e)&&mt(e,"_locale")&&(i._locale=e._locale),pl(e)&&mt(e,"_isValid")&&(i._isValid=e._isValid),i}mo.fn=_c.prototype;mo.invalid=OM;function Er(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cm(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function UM(e,t){var n;return e.isValid()&&t.isValid()?(t=bh(t,e),e.isBefore(t)?n=Cm(e,t):(n=Cm(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function gv(e,t){return function(n,o){var r,i;return o!==null&&!isNaN(+o)&&(Yy(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=o,o=i),r=mo(n,o),yv(this,r,e),this}}function yv(e,t,n,o){var r=t._milliseconds,i=du(t._days),a=du(t._months);e.isValid()&&(o=o??!0,a&&tv(e,Qi(e,"Month")+a*n),i&&Qy(e,"Date",Qi(e,"Date")+i*n),r&&e._d.setTime(e._d.valueOf()+r*n),o&&xe.updateOffset(e,i||a))}var qM=gv(1,"add"),GM=gv(-1,"subtract");function vv(e){return typeof e=="string"||e instanceof String}function KM(e){return po(e)||ya(e)||vv(e)||or(e)||ZM(e)||XM(e)||e===null||e===void 0}function XM(e){var t=jr(e)&&!th(e),n=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],r,i,a=o.length;for(r=0;r<a;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function ZM(e){var t=fo(e),n=!1;return t&&(n=e.filter(function(o){return!or(o)&&vv(e)}).length===0),t&&n}function QM(e){var t=jr(e)&&!th(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],r,i;for(r=0;r<o.length;r+=1)i=o[r],n=n||mt(e,i);return t&&n}function JM(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function eI(e,t){arguments.length===1&&(arguments[0]?KM(arguments[0])?(e=arguments[0],t=void 0):QM(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||It(),o=bh(n,this).startOf("day"),r=xe.calendarFormat(this,o)||"sameElse",i=t&&(Fo(t[r])?t[r].call(this,n):t[r]);return this.format(i||this.localeData().calendar(r,this,It(n)))}function tI(){return new va(this)}function nI(e,t){var n=po(e)?e:It(e);return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function oI(e,t){var n=po(e)?e:It(e);return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function rI(e,t,n,o){var r=po(e)?e:It(e),i=po(t)?t:It(t);return this.isValid()&&r.isValid()&&i.isValid()?(o=o||"()",(o[0]==="("?this.isAfter(r,n):!this.isBefore(r,n))&&(o[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function sI(e,t){var n=po(e)?e:It(e),o;return this.isValid()&&n.isValid()?(t=so(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(o=n.valueOf(),this.clone().startOf(t).valueOf()<=o&&o<=this.clone().endOf(t).valueOf())):!1}function iI(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function aI(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function lI(e,t,n){var o,r,i;if(!this.isValid())return NaN;if(o=bh(e,this),!o.isValid())return NaN;switch(r=(o.utcOffset()-this.utcOffset())*6e4,t=so(t),t){case"year":i=ml(this,o)/12;break;case"month":i=ml(this,o);break;case"quarter":i=ml(this,o)/3;break;case"second":i=(this-o)/1e3;break;case"minute":i=(this-o)/6e4;break;case"hour":i=(this-o)/36e5;break;case"day":i=(this-o-r)/864e5;break;case"week":i=(this-o-r)/6048e5;break;default:i=this-o}return n?i:Kn(i)}function ml(e,t){if(e.date()<t.date())return-ml(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),o=e.clone().add(n,"months"),r,i;return t-o<0?(r=e.clone().add(n-1,"months"),i=(t-o)/(o-r)):(r=e.clone().add(n+1,"months"),i=(t-o)/(r-o)),-(n+i)||0}xe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";xe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cI(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dI(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?fl(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Fo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",fl(n,"Z")):fl(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function uI(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,o,r,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',o=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+o+r+i)}function hI(e){e||(e=this.isUtc()?xe.defaultFormatUtc:xe.defaultFormat);var t=fl(this,e);return this.localeData().postformat(t)}function fI(e,t){return this.isValid()&&(po(e)&&e.isValid()||It(e).isValid())?mo({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pI(e){return this.from(It(),e)}function mI(e,t){return this.isValid()&&(po(e)&&e.isValid()||It(e).isValid())?mo({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gI(e){return this.to(It(),e)}function bv(e){var t;return e===void 0?this._locale._abbr:(t=ir(e),t!=null&&(this._locale=t),this)}var wv=ro("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Cv(){return this._locale}var Ml=1e3,ks=60*Ml,Il=60*ks,Sv=(365*400+97)*24*Il;function Es(e,t){return(e%t+t)%t}function _v(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Sv:new Date(e,t,n).valueOf()}function xv(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Sv:Date.UTC(e,t,n)}function yI(e){var t,n;if(e=so(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Es(t+(this._isUTC?0:this.utcOffset()*ks),Il);break;case"minute":t=this._d.valueOf(),t-=Es(t,ks);break;case"second":t=this._d.valueOf(),t-=Es(t,Ml);break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function vI(e){var t,n;if(e=so(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?xv:_v,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Il-Es(t+(this._isUTC?0:this.utcOffset()*ks),Il)-1;break;case"minute":t=this._d.valueOf(),t+=ks-Es(t,ks)-1;break;case"second":t=this._d.valueOf(),t+=Ml-Es(t,Ml)-1;break}return this._d.setTime(t),xe.updateOffset(this,!0),this}function bI(){return this._d.valueOf()-(this._offset||0)*6e4}function wI(){return Math.floor(this.valueOf()/1e3)}function CI(){return new Date(this.valueOf())}function SI(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _I(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xI(){return this.isValid()?this.toISOString():null}function RI(){return nh(this)}function TI(){return mr({},qe(this))}function kI(){return qe(this).overflow}function EI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$e("N",0,0,"eraAbbr");$e("NN",0,0,"eraAbbr");$e("NNN",0,0,"eraAbbr");$e("NNNN",0,0,"eraName");$e("NNNNN",0,0,"eraNarrow");$e("y",["y",1],"yo","eraYear");$e("y",["yy",2],0,"eraYear");$e("y",["yyy",3],0,"eraYear");$e("y",["yyyy",4],0,"eraYear");De("N",wh);De("NN",wh);De("NNN",wh);De("NNNN",VI);De("NNNNN",jI);Et(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,o){var r=n._locale.erasParse(e,o,n._strict);r?qe(n).era=r:qe(n).invalidEra=e});De("y",qs);De("yy",qs);De("yyy",qs);De("yyyy",qs);De("yo",BI);Et(["y","yy","yyy","yyyy"],_n);Et(["yo"],function(e,t,n,o){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[_n]=n._locale.eraYearOrdinalParse(e,r):t[_n]=parseInt(e,10)});function PI(e,t){var n,o,r,i=this._eras||ir("en")._eras;for(n=0,o=i.length;n<o;++n){switch(typeof i[n].since){case"string":r=xe(i[n].since).startOf("day"),i[n].since=r.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":r=xe(i[n].until).startOf("day").valueOf(),i[n].until=r.valueOf();break}}return i}function DI(e,t,n){var o,r,i=this.eras(),a,l,d;for(e=e.toUpperCase(),o=0,r=i.length;o<r;++o)if(a=i[o].name.toUpperCase(),l=i[o].abbr.toUpperCase(),d=i[o].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return i[o];break;case"NNNN":if(a===e)return i[o];break;case"NNNNN":if(d===e)return i[o];break}else if([a,l,d].indexOf(e)>=0)return i[o]}function OI(e,t){var n=e.since<=e.until?1:-1;return t===void 0?xe(e.since).year():xe(e.since).year()+(t-e.offset)*n}function MI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].name;return""}function II(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].narrow;return""}function NI(){var e,t,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return o[e].abbr;return""}function AI(){var e,t,n,o,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,o=this.clone().startOf("day").valueOf(),r[e].since<=o&&o<=r[e].until||r[e].until<=o&&o<=r[e].since)return(this.year()-xe(r[e].since).year())*n+r[e].offset;return this.year()}function FI(e){return mt(this,"_erasNameRegex")||Ch.call(this),e?this._erasNameRegex:this._erasRegex}function LI(e){return mt(this,"_erasAbbrRegex")||Ch.call(this),e?this._erasAbbrRegex:this._erasRegex}function $I(e){return mt(this,"_erasNarrowRegex")||Ch.call(this),e?this._erasNarrowRegex:this._erasRegex}function wh(e,t){return t.erasAbbrRegex(e)}function VI(e,t){return t.erasNameRegex(e)}function jI(e,t){return t.erasNarrowRegex(e)}function BI(e,t){return t._eraYearOrdinalRegex||qs}function Ch(){var e=[],t=[],n=[],o=[],r,i,a,l,d,u=this.eras();for(r=0,i=u.length;r<i;++r)a=Zo(u[r].name),l=Zo(u[r].abbr),d=Zo(u[r].narrow),t.push(a),e.push(l),n.push(d),o.push(a),o.push(l),o.push(d);this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}$e(0,["gg",2],0,function(){return this.weekYear()%100});$e(0,["GG",2],0,function(){return this.isoWeekYear()%100});function xc(e,t){$e(0,[e,e.length],0,t)}xc("gggg","weekYear");xc("ggggg","weekYear");xc("GGGG","isoWeekYear");xc("GGGGG","isoWeekYear");De("G",bc);De("g",bc);De("GG",At,Bn);De("gg",At,Bn);De("GGGG",lh,ah);De("gggg",lh,ah);De("GGGGG",vc,gc);De("ggggg",vc,gc);wa(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=nt(e)});wa(["gg","GG"],function(e,t,n,o){t[o]=xe.parseTwoDigitYear(e)});function WI(e){return Rv.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function HI(e){return Rv.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zI(){return Qo(this.year(),1,4)}function YI(){return Qo(this.isoWeekYear(),1,4)}function UI(){var e=this.localeData()._week;return Qo(this.year(),e.dow,e.doy)}function qI(){var e=this.localeData()._week;return Qo(this.weekYear(),e.dow,e.doy)}function Rv(e,t,n,o,r){var i;return e==null?ea(this,o,r).year:(i=Qo(e,o,r),t>i&&(t=i),GI.call(this,e,t,n,o,r))}function GI(e,t,n,o,r){var i=rv(e,t,n,o,r),a=Ji(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}$e("Q",0,"Qo","quarter");De("Q",qy);Et("Q",function(e,t){t[Go]=(nt(e)-1)*3});function KI(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}$e("D",["DD",2],"Do","date");De("D",At,Gs);De("DD",At,Bn);De("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Et(["D","DD"],To);Et("Do",function(e,t){t[To]=nt(e.match(At)[0])});var Tv=Ks("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear");De("DDD",yc);De("DDDD",Gy);Et(["DDD","DDDD"],function(e,t,n){n._dayOfYear=nt(e)});function XI(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}$e("m",["mm",2],0,"minute");De("m",At,ch);De("mm",At,Bn);Et(["m","mm"],co);var ZI=Ks("Minutes",!1);$e("s",["ss",2],0,"second");De("s",At,ch);De("ss",At,Bn);Et(["s","ss"],Ko);var QI=Ks("Seconds",!1);$e("S",0,0,function(){return~~(this.millisecond()/100)});$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)});$e(0,["SSS",3],0,"millisecond");$e(0,["SSSS",4],0,function(){return this.millisecond()*10});$e(0,["SSSSS",5],0,function(){return this.millisecond()*100});$e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});$e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});$e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});$e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});De("S",yc,qy);De("SS",yc,Bn);De("SSS",yc,Gy);var gr,kv;for(gr="SSSS";gr.length<=9;gr+="S")De(gr,qs);function JI(e,t){t[Lr]=nt(("0."+e)*1e3)}for(gr="S";gr.length<=9;gr+="S")Et(gr,JI);kv=Ks("Milliseconds",!1);$e("z",0,0,"zoneAbbr");$e("zz",0,0,"zoneName");function eN(){return this._isUTC?"UTC":""}function tN(){return this._isUTC?"Coordinated Universal Time":""}var ve=va.prototype;ve.add=qM;ve.calendar=eI;ve.clone=tI;ve.diff=lI;ve.endOf=vI;ve.format=hI;ve.from=fI;ve.fromNow=pI;ve.to=mI;ve.toNow=gI;ve.get=uO;ve.invalidAt=kI;ve.isAfter=nI;ve.isBefore=oI;ve.isBetween=rI;ve.isSame=sI;ve.isSameOrAfter=iI;ve.isSameOrBefore=aI;ve.isValid=RI;ve.lang=wv;ve.locale=bv;ve.localeData=Cv;ve.max=RM;ve.min=xM;ve.parsingFlags=TI;ve.set=hO;ve.startOf=yI;ve.subtract=GM;ve.toArray=SI;ve.toObject=_I;ve.toDate=CI;ve.toISOString=dI;ve.inspect=uI;typeof Symbol<"u"&&Symbol.for!=null&&(ve[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ve.toJSON=xI;ve.toString=cI;ve.unix=wI;ve.valueOf=bI;ve.creationData=EI;ve.eraName=MI;ve.eraNarrow=II;ve.eraAbbr=NI;ve.eraYear=AI;ve.year=Zy;ve.isLeapYear=dO;ve.weekYear=WI;ve.isoWeekYear=HI;ve.quarter=ve.quarters=KI;ve.month=nv;ve.daysInMonth=CO;ve.week=ve.weeks=PO;ve.isoWeek=ve.isoWeeks=DO;ve.weeksInYear=UI;ve.weeksInWeekYear=qI;ve.isoWeeksInYear=zI;ve.isoWeeksInISOWeekYear=YI;ve.date=Tv;ve.day=ve.days=HO;ve.weekday=zO;ve.isoWeekday=YO;ve.dayOfYear=XI;ve.hour=ve.hours=QO;ve.minute=ve.minutes=ZI;ve.second=ve.seconds=QI;ve.millisecond=ve.milliseconds=kv;ve.utcOffset=NM;ve.utc=FM;ve.local=LM;ve.parseZone=$M;ve.hasAlignedHourOffset=VM;ve.isDST=jM;ve.isLocal=WM;ve.isUtcOffset=HM;ve.isUtc=mv;ve.isUTC=mv;ve.zoneAbbr=eN;ve.zoneName=tN;ve.dates=ro("dates accessor is deprecated. Use date instead.",Tv);ve.months=ro("months accessor is deprecated. Use month instead",nv);ve.years=ro("years accessor is deprecated. Use year instead",Zy);ve.zone=ro("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",AM);ve.isDSTShifted=ro("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",BM);function nN(e){return It(e*1e3)}function oN(){return It.apply(null,arguments).parseZone()}function Ev(e){return e}var gt=rh.prototype;gt.calendar=WD;gt.longDateFormat=UD;gt.invalidDate=GD;gt.ordinal=ZD;gt.preparse=Ev;gt.postformat=Ev;gt.relativeTime=JD;gt.pastFuture=eO;gt.set=jD;gt.eras=PI;gt.erasParse=DI;gt.erasConvertYear=OI;gt.erasAbbrRegex=LI;gt.erasNameRegex=FI;gt.erasNarrowRegex=$I;gt.months=yO;gt.monthsShort=vO;gt.monthsParse=wO;gt.monthsRegex=_O;gt.monthsShortRegex=SO;gt.week=RO;gt.firstDayOfYear=EO;gt.firstDayOfWeek=kO;gt.weekdays=$O;gt.weekdaysMin=jO;gt.weekdaysShort=VO;gt.weekdaysParse=WO;gt.weekdaysRegex=UO;gt.weekdaysShortRegex=qO;gt.weekdaysMinRegex=GO;gt.isPM=XO;gt.meridiem=JO;function Nl(e,t,n,o){var r=ir(),i=Ao().set(o,t);return r[n](i,e)}function Pv(e,t,n){if(or(e)&&(t=e,e=void 0),e=e||"",t!=null)return Nl(e,t,n,"month");var o,r=[];for(o=0;o<12;o++)r[o]=Nl(e,o,n,"month");return r}function Sh(e,t,n,o){typeof e=="boolean"?(or(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,or(t)&&(n=t,t=void 0),t=t||"");var r=ir(),i=e?r._week.dow:0,a,l=[];if(n!=null)return Nl(t,(n+i)%7,o,"day");for(a=0;a<7;a++)l[a]=Nl(t,(a+i)%7,o,"day");return l}function rN(e,t){return Pv(e,t,"months")}function sN(e,t){return Pv(e,t,"monthsShort")}function iN(e,t,n){return Sh(e,t,n,"weekdays")}function aN(e,t,n){return Sh(e,t,n,"weekdaysShort")}function lN(e,t,n){return Sh(e,t,n,"weekdaysMin")}yr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=nt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});xe.lang=ro("moment.lang is deprecated. Use moment.locale instead.",yr);xe.langData=ro("moment.langData is deprecated. Use moment.localeData instead.",ir);var zo=Math.abs;function cN(){var e=this._data;return this._milliseconds=zo(this._milliseconds),this._days=zo(this._days),this._months=zo(this._months),e.milliseconds=zo(e.milliseconds),e.seconds=zo(e.seconds),e.minutes=zo(e.minutes),e.hours=zo(e.hours),e.months=zo(e.months),e.years=zo(e.years),this}function Dv(e,t,n,o){var r=mo(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function dN(e,t){return Dv(this,e,t,1)}function uN(e,t){return Dv(this,e,t,-1)}function Sm(e){return e<0?Math.floor(e):Math.ceil(e)}function hN(){var e=this._milliseconds,t=this._days,n=this._months,o=this._data,r,i,a,l,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Sm(hu(n)+t)*864e5,t=0,n=0),o.milliseconds=e%1e3,r=Kn(e/1e3),o.seconds=r%60,i=Kn(r/60),o.minutes=i%60,a=Kn(i/60),o.hours=a%24,t+=Kn(a/24),d=Kn(Ov(t)),n+=d,t-=Sm(hu(d)),l=Kn(n/12),n%=12,o.days=t,o.months=n,o.years=l,this}function Ov(e){return e*4800/146097}function hu(e){return e*146097/4800}function fN(e){if(!this.isValid())return NaN;var t,n,o=this._milliseconds;if(e=so(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+o/864e5,n=this._months+Ov(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(hu(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return t*24+o/36e5;case"minute":return t*1440+o/6e4;case"second":return t*86400+o/1e3;case"millisecond":return Math.floor(t*864e5)+o;default:throw new Error("Unknown unit "+e)}}function ar(e){return function(){return this.as(e)}}var Mv=ar("ms"),pN=ar("s"),mN=ar("m"),gN=ar("h"),yN=ar("d"),vN=ar("w"),bN=ar("M"),wN=ar("Q"),CN=ar("y"),SN=Mv;function _N(){return mo(this)}function xN(e){return e=so(e),this.isValid()?this[e+"s"]():NaN}function Xr(e){return function(){return this.isValid()?this._data[e]:NaN}}var RN=Xr("milliseconds"),TN=Xr("seconds"),kN=Xr("minutes"),EN=Xr("hours"),PN=Xr("days"),DN=Xr("months"),ON=Xr("years");function MN(){return Kn(this.days()/7)}var Uo=Math.round,Cs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function IN(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function NN(e,t,n,o){var r=mo(e).abs(),i=Uo(r.as("s")),a=Uo(r.as("m")),l=Uo(r.as("h")),d=Uo(r.as("d")),u=Uo(r.as("M")),f=Uo(r.as("w")),p=Uo(r.as("y")),y=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||d<=1&&["d"]||d<n.d&&["dd",d];return n.w!=null&&(y=y||f<=1&&["w"]||f<n.w&&["ww",f]),y=y||u<=1&&["M"]||u<n.M&&["MM",u]||p<=1&&["y"]||["yy",p],y[2]=t,y[3]=+e>0,y[4]=o,IN.apply(null,y)}function AN(e){return e===void 0?Uo:typeof e=="function"?(Uo=e,!0):!1}function FN(e,t){return Cs[e]===void 0?!1:t===void 0?Cs[e]:(Cs[e]=t,e==="s"&&(Cs.ss=t-1),!0)}function LN(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,o=Cs,r,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(o=Object.assign({},Cs,t),t.s!=null&&t.ss==null&&(o.ss=t.s-1)),r=this.localeData(),i=NN(this,!n,o,r),n&&(i=r.pastFuture(+this,i)),r.postformat(i)}var _d=Math.abs;function fs(e){return(e>0)-(e<0)||+e}function Rc(){if(!this.isValid())return this.localeData().invalidDate();var e=_d(this._milliseconds)/1e3,t=_d(this._days),n=_d(this._months),o,r,i,a,l=this.asSeconds(),d,u,f,p;return l?(o=Kn(e/60),r=Kn(o/60),e%=60,o%=60,i=Kn(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=l<0?"-":"",u=fs(this._months)!==fs(l)?"-":"",f=fs(this._days)!==fs(l)?"-":"",p=fs(this._milliseconds)!==fs(l)?"-":"",d+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?f+t+"D":"")+(r||o||e?"T":"")+(r?p+r+"H":"")+(o?p+o+"M":"")+(e?p+a+"S":"")):"P0D"}var dt=_c.prototype;dt.isValid=DM;dt.abs=cN;dt.add=dN;dt.subtract=uN;dt.as=fN;dt.asMilliseconds=Mv;dt.asSeconds=pN;dt.asMinutes=mN;dt.asHours=gN;dt.asDays=yN;dt.asWeeks=vN;dt.asMonths=bN;dt.asQuarters=wN;dt.asYears=CN;dt.valueOf=SN;dt._bubble=hN;dt.clone=_N;dt.get=xN;dt.milliseconds=RN;dt.seconds=TN;dt.minutes=kN;dt.hours=EN;dt.days=PN;dt.weeks=MN;dt.months=DN;dt.years=ON;dt.humanize=LN;dt.toISOString=Rc;dt.toString=Rc;dt.toJSON=Rc;dt.locale=bv;dt.localeData=Cv;dt.toIsoString=ro("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rc);dt.lang=wv;$e("X",0,0,"unix");$e("x",0,0,"valueOf");De("x",bc);De("X",rO);Et("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Et("x",function(e,t,n){n._d=new Date(nt(e))});//! moment.js
|
|
277
|
+
xe.version="2.30.1";$D(It);xe.fn=ve;xe.min=TM;xe.max=kM;xe.now=EM;xe.utc=Ao;xe.unix=nN;xe.months=rN;xe.isDate=ya;xe.locale=yr;xe.invalid=mc;xe.duration=mo;xe.isMoment=po;xe.weekdays=iN;xe.parseZone=oN;xe.localeData=ir;xe.isDuration=pl;xe.monthsShort=sN;xe.weekdaysMin=lN;xe.defineLocale=ph;xe.updateLocale=oM;xe.locales=rM;xe.weekdaysShort=aN;xe.normalizeUnits=so;xe.relativeTimeRounding=AN;xe.relativeTimeThreshold=FN;xe.calendarFormat=JM;xe.prototype=ve;xe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const $N=Object.freeze(Object.defineProperty({__proto__:null,default:xe},Symbol.toStringTag,{value:"Module"})),VN=[xe.ISO_8601,Yr.ui,Yr.db],fu="Invalid date";ie(iy)({width:"100%","& .MuiAlert-message":{fontSize:"0.8rem"}," [data-testid=CloseIcon]":{fill:"white"}});class jN extends pc{handleKeyboardEvent(t,n){if(n.isActive)if(dF(t)){if(!n.summaryColumnIds.length)return;const o=n.grid;if(!o||o.getSelectedRows().length<2)return;t.preventDefault(),t.stopImmediatePropagation(),qo.table=n,qo.open=!0}else super.handleKeyboardEvent.call(this,t,n)}}let Iv=class{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){if(!this.grid)return;this.args={};const t=this.grid.getData();t.setFilterArgs(this.args),t.refresh()}print(){return[]}set grid(t){this._grid=t}get grid(){return this._grid}set args(t){if(this._args=t,!this.grid)return;const n=this.grid.getData();n.setFilterArgs(t),n.refresh()}get args(){return this._args}set tableId(t){this._tableId=t}get tableId(){return this._tableId}};class BN extends Iv{getFilterFn(){return t=>!t?.isDeleted}}class WN{constructor(){this._args={},this._grid=null,this._tableId=""}getFilterFn(){return()=>!0}register(){}print(){return[]}reset(){}get args(){return this._args}get grid(){return this._grid}get tableId(){return this._tableId}set args(t){}set grid(t){}set tableId(t){}}function Ss(e){return new Date(e).getTime()}class Nv{constructor(t){this.filter=t}getFilterFn(){const t=this.filter.getFilterFn();return(n,o)=>this.filterFn(n,o)&&t(n,o)}register(t,n){this.tableId=n,this.grid=t;const o=t.getData();o.setFilter(this.getFilterFn()),o.setFilterArgs(this.args),o.refresh()}reset(){this.filter.reset()}print(t){return this.filter.print(t)}set args(t){this.filter.args=t}set grid(t){this.filter.grid=t}set tableId(t){this.filter.tableId=t}get args(){return this.filter.args}get grid(){return this.filter.grid}get tableId(){return this.filter.tableId}}function HN(e){return{tooltip:"Apply column filter",command:e}}class Ca{constructor(){this.observers=[]}subscribe(t){~this.observers.indexOf(t)||this.observers.push(t)}unsubscribe(t){const n=this.observers.indexOf(t);~this.observers.indexOf(t)&&this.observers.splice(n,1)}notify(){for(const t of this.observers)t()}}class zN extends Ca{constructor(){super(...arguments),this.columnId="",this.group=hn.Text,this.target=null,this.x=0,this.y=0}}const Rn=new zN;class YN{highlightAllColumns(t,n){const o=document.getElementById(n);if(!o)return;const r=Object.keys(t.columnFilters||{});if(r.length)for(const i of r){const a=o.querySelector(`[data-id="${i}"]`);a&&(t.columnFilters[i].value[1]||t.columnFilters[i].value[2]?a.classList.add("filter-active"):a.classList.remove("filter-active"))}else{const i=o.querySelectorAll(".slick-header-column");for(const a of i)a.classList.remove("filter-active")}}highlightColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.add("filter-active")}resetColumn(t,n){const o=document.getElementById(t.id);if(!o)return;const r=o.querySelector(`[data-id="${n}"]`);r&&r.classList.remove("filter-active")}}const Io=new YN;function Av(e){return Io.highlightAllColumns(e.filter.args,e.id),function(t,n){t.preventDefault(),Rn.columnId=n.column.id||"",Rn.group=n.command,Rn.table=e,Rn.target=t.target,Rn.x=t.x||0,Rn.y=t.y||0,Rn.notify()}}var UN=Object.defineProperty,qN=(e,t,n)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>qN(e,typeof t!="symbol"?t+"":t,n),na=class{constructor(e,t){this.event=e,this.args=t,P(this,"_isPropagationStopped",!1),P(this,"_isImmediatePropagationStopped",!1),P(this,"_isDefaultPrevented",!1),P(this,"returnValues",[]),P(this,"returnValue"),P(this,"_eventTarget"),P(this,"nativeEvent"),P(this,"arguments_"),P(this,"altKey"),P(this,"ctrlKey"),P(this,"metaKey"),P(this,"shiftKey"),P(this,"key"),P(this,"keyCode"),P(this,"clientX"),P(this,"clientY"),P(this,"offsetX"),P(this,"offsetY"),P(this,"pageX"),P(this,"pageY"),P(this,"bubbles"),P(this,"target"),P(this,"type"),P(this,"which"),P(this,"x"),P(this,"y"),this.nativeEvent=e,this.arguments_=t,e&&["altKey","ctrlKey","metaKey","shiftKey","key","keyCode","clientX","clientY","offsetX","offsetY","pageX","pageY","bubbles","target","type","which","x","y"].forEach(n=>this[n]=e[n]),this._eventTarget=this.nativeEvent?this.nativeEvent.target:void 0}get defaultPrevented(){return this._isDefaultPrevented}stopPropagation(){this._isPropagationStopped=!0,this.nativeEvent?.stopPropagation()}isPropagationStopped(){return this._isPropagationStopped}stopImmediatePropagation(){this._isImmediatePropagationStopped=!0,this.nativeEvent&&this.nativeEvent.stopImmediatePropagation()}isImmediatePropagationStopped(){return this._isImmediatePropagationStopped}getNativeEvent(){return this.nativeEvent}preventDefault(){this.nativeEvent&&this.nativeEvent.preventDefault(),this._isDefaultPrevented=!0}isDefaultPrevented(){return this.nativeEvent?this.nativeEvent.defaultPrevented:this._isDefaultPrevented}addReturnValue(e){this.returnValues.push(e),this.returnValue===void 0&&e!==void 0&&(this.returnValue=e)}getReturnValue(){return this.returnValue}getArguments(){return this.arguments_}},Zr=class{constructor(e,t){this.eventName=e,this.pubSub=t,P(this,"_handlers",[]),P(this,"_pubSubService"),this._pubSubService=t}get subscriberCount(){return this._handlers.length}subscribe(e){this._handlers.push(e)}unsubscribe(e){for(let t=this._handlers.length-1;t>=0;t--)this._handlers[t]===e&&this._handlers.splice(t,1)}notify(e,t,n){let o=t instanceof na?t:new na(t,e);n=n||this;for(let r=0;r<this._handlers.length&&!(o.isPropagationStopped()||o.isImmediatePropagationStopped());r++){let i=this._handlers[r].call(n,o,e);o.addReturnValue(i)}if(typeof this._pubSubService?.publish=="function"&&this.eventName){let r=this._pubSubService.publish(this.eventName,{args:e,eventData:o});o.addReturnValue(r)}return o}setPubSubService(e){this._pubSubService=e}},Sa=class{constructor(){P(this,"handlers",[])}subscribe(e,t){return this.handlers.push({event:e,handler:t}),e.subscribe(t),this}unsubscribe(e,t){let n=this.handlers.length;for(;n--;)if(this.handlers[n].event===e&&this.handlers[n].handler===t){this.handlers.splice(n,1),e.unsubscribe(t);return}return this}unsubscribeAll(){let e=this.handlers.length;for(;e--;)this.handlers[e].event.unsubscribe(this.handlers[e].handler);return this.handlers=[],this}},_h=class{constructor(e,t,n,o){P(this,"fromRow"),P(this,"fromCell"),P(this,"toCell"),P(this,"toRow"),n===void 0&&o===void 0&&(n=e,o=t),this.fromRow=Math.min(e,n),this.fromCell=Math.min(t,o),this.toCell=Math.max(t,o),this.toRow=Math.max(e,n)}isSingleRow(){return this.fromRow===this.toRow}isSingleCell(){return this.fromRow===this.toRow&&this.fromCell===this.toCell}contains(e,t){return e>=this.fromRow&&e<=this.toRow&&t>=this.fromCell&&t<=this.toCell}toString(){return this.isSingleCell()?`(${this.fromRow}:${this.fromCell})`:`(${this.fromRow}:${this.fromCell} - ${this.toRow}:${this.toCell})`}},Fv=class{constructor(){P(this,"__nonDataRow",!0)}},Lv=class extends Fv{constructor(){super(),P(this,"__group",!0),P(this,"level",0),P(this,"count",0),P(this,"value",null),P(this,"title",null),P(this,"collapsed",!1),P(this,"selectChecked",!1),P(this,"totals",null),P(this,"rows",[]),P(this,"groups",null),P(this,"groupingKey",null)}equals(e){return this.value===e.value&&this.count===e.count&&this.collapsed===e.collapsed&&this.title===e.title}},GN=class extends Fv{constructor(){super(),P(this,"__groupTotals",!0),P(this,"group",null),P(this,"initialized",!1)}},KN=class{constructor(){P(this,"activeEditController",null)}isActive(e){return e?this.activeEditController===e:this.activeEditController!==null}activate(e){if(e!==this.activeEditController){if(this.activeEditController!==null)throw new Error("Slick.EditorLock.activate: an editController is still active, can't activate another editController");if(!e.commitCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .commitCurrentEdit()");if(!e.cancelCurrentEdit)throw new Error("Slick.EditorLock.activate: editController must implement .cancelCurrentEdit()");this.activeEditController=e}}deactivate(e){if(this.activeEditController){if(this.activeEditController!==e)throw new Error("Slick.EditorLock.deactivate: specified editController is not the currently active one");this.activeEditController=null}}commitCurrentEdit(){return this.activeEditController?this.activeEditController.commitCurrentEdit():!0}cancelCurrentEdit(){return this.activeEditController?this.activeEditController.cancelCurrentEdit():!0}},Tc=class{constructor(){P(this,"_boundedEvents",[])}getBoundedEvents(){return this._boundedEvents}destroy(){this.unbindAll()}bind(e,t,n,o,r=""){e&&(e.addEventListener(t,n,o),this._boundedEvents.push({element:e,eventName:t,listener:n,groupName:r}))}unbind(e,t,n){e?.removeEventListener&&e.removeEventListener(t,n)}unbindByEventName(e,t){let n=this._boundedEvents.find(o=>o.element===e&&o.eventName===t);n&&this.unbind(n.element,n.eventName,n.listener)}unbindAll(e){if(e){let t=Array.isArray(e)?e:[e];for(let n=this._boundedEvents.length-1;n>=0;--n){let o=this._boundedEvents[n];if(t.some(r=>r===o.groupName)){let{element:r,eventName:i,listener:a}=o;this.unbind(r,i,a),this._boundedEvents.splice(n,1)}}}else for(;this._boundedEvents.length>0;){let t=this._boundedEvents.pop(),{element:n,eventName:o,listener:r}=t;this.unbind(n,o,r)}}},Un=class Ht{static isFunction(t){return typeof t=="function"&&typeof t.nodeType!="number"&&typeof t.item!="function"}static isPlainObject(t){if(!t||Ht.toString.call(t)!=="[object Object]")return!1;let n=Ht.getProto(t);if(!n)return!0;let o=Ht.hasOwn.call(n,"constructor")&&n.constructor;return typeof o=="function"&&Ht.fnToString.call(o)===Ht.ObjectFunctionString}static calculateAvailableSpace(t){let n=0,o=0,r=0,i=0,a=window.innerHeight||0,l=window.innerWidth||0,d=Ht.windowScrollPosition(),u=d.top,f=d.left,p=Ht.offset(t);if(p){let y=p.top||0,w=p.left||0;o=y-u,n=a-(y-u),r=w-f,i=l-(w-f)}return{top:o,bottom:n,left:r,right:i}}static extend(...t){let n,o,r,i,a,l,d=t[0],u=1,f=!1,p=t.length;for(typeof d=="boolean"?(f=d,d=t[u]||{},u++):d=d||{},typeof d!="object"&&!Ht.isFunction(d)&&(d={}),u===p&&(d=this,u--);u<p;u++)if(Ht.isDefined(n=t[u]))for(o in n)i=n[o],!(o==="__proto__"||d===i)&&(f&&i&&(Ht.isPlainObject(i)||(a=Array.isArray(i)))?(r=d[o],a&&!Array.isArray(r)?l=[]:!a&&!Ht.isPlainObject(r)?l={}:l=r,a=!1,d[o]=Ht.extend(f,l,i)):i!==void 0&&(d[o]=i));return d}static createDomElement(t,n,o){let r=document.createElement(t);return n&&Object.keys(n).forEach(i=>{i==="innerHTML"&&console.warn(`[SlickGrid] For better CSP (Content Security Policy) support, do not use "innerHTML" directly in "createDomElement('${t}', { innerHTML: 'some html'})", it is better as separate assignment: "const elm = createDomElement('span'); elm.innerHTML = 'some html';"`);let a=n[i];typeof a=="object"?Object.assign(r[i],a):r[i]=n[i]}),o?.appendChild&&o.appendChild(r),r}static getHtmlStringOutput(t,n="innerHTML"){return t instanceof DocumentFragment?[].map.call(t.childNodes,o=>o[n]).join("")||t.textContent||"":t instanceof HTMLElement?t[n]:String(t)}static emptyElement(t){for(;t?.firstChild;)t.removeChild(t.firstChild);return t}static classNameToList(t=""){return t.split(" ").filter(n=>n)}static innerSize(t,n){let o=0;if(t){let r=n==="height"?"clientHeight":"clientWidth",i=n==="height"?["top","bottom"]:["left","right"];o=t[r];for(let a of i){let l=parseFloat(Ht.getElementProp(t,`padding-${a}`)||"")||0;o-=l}}return o}static isDefined(t){return t!=null&&t!==""}static getElementProp(t,n){return t?.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(n):null}static getFunctionDetails(t,n=!0){let o=!1,r=i=>{let a=i.toString();if(o=a.includes("async "),a.replaceAll(" ","").includes("=>({")){let u=a.match(/(({.*}))/g)||[];return u.length>=1?`return ${u[0].trimStart()}`:a}let l=!a.includes("{")&&a.includes("=>"),d=a.substring(a.indexOf("{")+1||a.indexOf("=>")+2,a.includes("}")?a.lastIndexOf("}"):a.length);return n&&l&&!d.startsWith("return")?"return "+d.trimStart():d};return{params:(i=>{let a=/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,)]*))/mg,l=/([^\s,]+)/g,d=i.toString().replace(a,"");return d.slice(d.indexOf("(")+1,d.indexOf(")")).match(l)??[]})(t),body:r(t),isAsync:o}}static insertAfterElement(t,n){t.parentNode?.insertBefore(n,t.nextSibling)}static isEmptyObject(t){return t==null?!0:Object.entries(t).length===0}static noop(){}static offset(t){if(!t||!t.getBoundingClientRect)return;let n=t.getBoundingClientRect(),o=document.documentElement;return{top:n.top+window.pageYOffset-o.clientTop,left:n.left+window.pageXOffset-o.clientLeft}}static windowScrollPosition(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}static width(t,n){if(!(!t||!t.getBoundingClientRect)){if(n===void 0)return t.getBoundingClientRect().width;Ht.setStyleSize(t,"width",n)}}static height(t,n){if(t){if(n===void 0)return t.getBoundingClientRect().height;Ht.setStyleSize(t,"height",n)}}static setStyleSize(t,n,o){typeof o=="function"?o=o():typeof o=="string"?t.style[n]=o:t.style[n]=o+"px"}static contains(t,n){return!t||!n?!1:!Ht.parents(n).every(o=>t!==o)}static isHidden(t){return t.offsetWidth===0&&t.offsetHeight===0}static parents(t,n){let o=[],r=n===":visible",i=n===":hidden";for(;(t=t.parentNode)&&t!==document&&!(!t||!t.parentNode);)i?Ht.isHidden(t)&&o.push(t):r?Ht.isHidden(t)||o.push(t):(!n||t.matches(n))&&o.push(t);return o}static toFloat(t){let n=parseFloat(t);return isNaN(n)?0:n}static show(t,n=""){Array.isArray(t)?t.forEach(o=>o.style.display=n):t.style.display=n}static hide(t){Array.isArray(t)?t.forEach(n=>n.style.display="none"):t.style.display="none"}static slideUp(t,n){return Ht.slideAnimation(t,"slideUp",n)}static slideDown(t,n){return Ht.slideAnimation(t,"slideDown",n)}static slideAnimation(t,n,o){if(window.jQuery!==void 0){window.jQuery(t)[n]("fast",o);return}n==="slideUp"?Ht.hide(t):Ht.show(t),o()}static applyDefaults(t,n){typeof n=="object"&&Object.keys(n).forEach(o=>{n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n[o])})}static addSlickEventPubSubWhenDefined(t,n){if(t)for(let o in n)n[o]instanceof Zr&&typeof n[o].setPubSubService=="function"&&n[o].setPubSubService(t)}};P(Un,"getProto",Object.getPrototypeOf),P(Un,"class2type",{}),P(Un,"toString",Un.class2type.toString),P(Un,"hasOwn",Un.class2type.hasOwnProperty),P(Un,"fnToString",Un.hasOwn.toString),P(Un,"ObjectFunctionString",Un.fnToString.call(Object)),P(Un,"storage",{_storage:new WeakMap,put:function(e,t,n){this._storage.has(e)||this._storage.set(e,new Map),this._storage.get(e).set(t,n)},get:function(e,t){let n=this._storage.get(e);return n?n.get(t):null},remove:function(e,t){let n=this._storage.get(e).delete(t);return this._storage.get(e).size!==0&&this._storage.delete(e),n}});var go=Un,$v=new KN,XN={Event:Zr,EventHandler:Sa,GlobalEditorLock:$v,keyCode:{SPACE:8,DOWN:40,ENTER:13,ESCAPE:27,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,TAB:9,UP:38},preClickClassName:"slick-edit-preclick",GridAutosizeColsMode:{None:"NOA",LegacyOff:"LOF",LegacyForceFit:"LFF",IgnoreViewport:"IGV",FitColsToViewport:"FCV",FitViewportToCols:"FVC"},ColAutosizeMode:{Locked:"LCK",Guide:"GUI",ContentExpandOnly:"CXO",ContentIntelligent:"CTI"},RowSelectionMode:{FirstRow:"FS1",FirstNRows:"FSN",AllRows:"ALL",LastRow:"LS1"},ValueFilterMode:{None:"NONE",DeDuplicate:"DEDP",GetGreatestAndSub:"GR8T",GetLongestTextAndSub:"LNSB",GetLongestText:"LNSC"},WidthEvalMode:{Auto:"AUTO",TextOnly:"CANV"}},{Event:ZN,EventHandler:QN,GlobalEditorLock:JN,keyCode:Br,preClickClassName:eA,GridAutosizeColsMode:Vv,ColAutosizeMode:tA,RowSelectionMode:nA,ValueFilterMode:oA,WidthEvalMode:rA}=XN,sA=go,jv=class{constructor(e,t){this.grid=e,P(this,"pluginName","CellRangeDecorator"),P(this,"_options"),P(this,"_elem"),P(this,"_defaults",{selectionCssClass:"slick-range-decorator",selectionCss:{zIndex:"9999",border:"2px dashed red"},offset:{top:-1,left:-1,height:-2,width:-2}}),this._options=sA.extend(!0,{},this._defaults,t)}destroy(){this.hide()}init(){}hide(){this._elem?.remove(),this._elem=null}show(e){if(!this._elem){this._elem=document.createElement("div"),this._elem.className=this._options.selectionCssClass,Object.keys(this._options.selectionCss).forEach(r=>{this._elem.style[r]=this._options.selectionCss[r]}),this._elem.style.position="absolute";let o=this.grid.getActiveCanvasNode();o&&o.appendChild(this._elem)}let t=this.grid.getCellNodeBox(e.fromRow,e.fromCell),n=this.grid.getCellNodeBox(e.toRow,e.toCell);return t&&n&&this._options?.offset&&(this._elem.style.top=`${t.top+this._options.offset.top}px`,this._elem.style.left=`${t.left+this._options.offset.left}px`,this._elem.style.height=`${n.bottom-t.top+this._options.offset.height}px`,this._elem.style.width=`${n.right-t.left+this._options.offset.width}px`),this._elem}},iA=go;function xh(e){let{containerElement:t}=e,{onDragInit:n,onDragStart:o,onDrag:r,onDragEnd:i,preventDragFromKeys:a}=e,l,d,u,f,p,y;t||(t=document.body);let w={dragSource:t,dragHandle:null};function b(){t&&(t.addEventListener("mousedown",k),t.addEventListener("touchstart",k))}function m(C,O,I){if(typeof C=="function")return C(O,I)}function v(){t&&(t.removeEventListener("mousedown",k),t.removeEventListener("touchstart",k))}function D(C){let O=!1;return a&&a.forEach(I=>{C[I]&&(O=!0)}),O}function k(C){if(!D(C)){l=C.target;let O=C?.touches?.[0]??C,{target:I}=O;if(!e.allowDragFrom||e.allowDragFrom&&l.matches(e.allowDragFrom)||e.allowDragFromClosest&&l.closest(e.allowDragFromClosest)){w.dragHandle=l;let F=iA.windowScrollPosition();d=F.left+O.clientX,u=F.top+O.clientY,f=O.clientX-O.clientX,p=O.clientY-O.clientY,w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(n,C,w)!==!1&&(document.body.addEventListener("mousemove",x),document.body.addEventListener("touchmove",x),document.body.addEventListener("mouseup",S),document.body.addEventListener("touchend",S),document.body.addEventListener("touchcancel",S))}}}function x(C){if(!D(C)){let O=C?.touches?.[0]??C;f=O.clientX-d,p=O.clientY-u;let{target:I}=O;y||(w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(o,C,w),y=!0),w=Object.assign(w,{deltaX:f,deltaY:p,startX:d,startY:u,target:I}),m(r,C,w)}}function S(C){if(document.body.removeEventListener("mousemove",x),document.body.removeEventListener("touchmove",x),document.body.removeEventListener("mouseup",S),document.body.removeEventListener("touchend",S),document.body.removeEventListener("touchcancel",S),y){let{target:O}=C;w=Object.assign(w,{target:O}),m(i,C,w),y=!1}}return b(),{destroy:v}}function aA(e){let{element:t,onMouseWheel:n}=e;function o(){t.removeEventListener("wheel",i),t.removeEventListener("mousewheel",i)}function r(){t.addEventListener("wheel",i),t.addEventListener("mousewheel",i)}function i(a){let l=a||window.event,d=0,u=0,f=0;l.wheelDelta&&(d=l.wheelDelta/120),l.detail&&(d=-l.detail/3),f=d,l.axis!==void 0&&l.axis===l.HORIZONTAL_AXIS&&(f=0,u=-1*d),l.wheelDeltaY!==void 0&&(f=l.wheelDeltaY/120),l.wheelDeltaX!==void 0&&(u=-1*l.wheelDeltaX/120),typeof n=="function"&&n(a,d,u,f)}return r(),{destroy:o}}function lA(e){let{resizeableElement:t,resizeableHandleElement:n,onResizeStart:o,onResize:r,onResizeEnd:i}=e;if(!n||typeof n.addEventListener!="function")throw new Error("[Slick.Resizable] You did not provide a valid html element that will be used for the handle to resize.");function a(){n.addEventListener("mousedown",u),n.addEventListener("touchstart",u)}function l(){typeof n?.removeEventListener=="function"&&(n.removeEventListener("mousedown",u),n.removeEventListener("touchstart",u))}function d(y,w){if(typeof y=="function")return y(w,{resizeableElement:t,resizeableHandleElement:n})}function u(y){y.preventDefault();let w=y.touches?y.changedTouches[0]:y;d(o,w)!==!1&&(document.body.addEventListener("mousemove",f),document.body.addEventListener("mouseup",p),document.body.addEventListener("touchmove",f),document.body.addEventListener("touchend",p))}function f(y){y.preventDefault&&y.type!=="touchmove"&&y.preventDefault();let w=y.touches?y.changedTouches[0]:y;typeof r=="function"&&r(w,{resizeableElement:t,resizeableHandleElement:n})}function p(y){let w=y.touches?y.changedTouches[0]:y;d(i,w),document.body.removeEventListener("mousemove",f),document.body.removeEventListener("mouseup",p),document.body.removeEventListener("touchmove",f),document.body.removeEventListener("touchend",p)}return a(),{destroy:l}}var xd=Zr,cA=Sa,Rd=_h,dA=xh,uA=jv,pi=go,hA=class{constructor(e){P(this,"pluginName","CellRangeSelector"),P(this,"onBeforeCellRangeSelected",new xd("onBeforeCellRangeSelected")),P(this,"onCellRangeSelected",new xd("onCellRangeSelected")),P(this,"onCellRangeSelecting",new xd("onCellRangeSelecting")),P(this,"_grid"),P(this,"_currentlySelectedRange",null),P(this,"_canvas",null),P(this,"_decorator"),P(this,"_gridOptions"),P(this,"_activeCanvas"),P(this,"_dragging",!1),P(this,"_handler",new cA),P(this,"_options"),P(this,"_defaults",{autoScroll:!0,minIntervalToShowNextCell:30,maxIntervalToShowNextCell:600,accelerateInterval:5,selectionCss:{border:"2px dashed blue"}}),P(this,"_rowOffset",0),P(this,"_columnOffset",0),P(this,"_isRightCanvas",!1),P(this,"_isBottomCanvas",!1),P(this,"_activeViewport"),P(this,"_autoScrollTimerId"),P(this,"_draggingMouseOffset"),P(this,"_moveDistanceForOneCell"),P(this,"_xDelayForNextCell",0),P(this,"_yDelayForNextCell",0),P(this,"_viewportHeight",0),P(this,"_viewportWidth",0),P(this,"_isRowMoveRegistered",!1),P(this,"_scrollLeft",0),P(this,"_scrollTop",0),this._options=pi.extend(!0,{},this._defaults,e)}init(e){if(dA===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');this._decorator=this._options.cellDecorator||new uA(e,this._options),this._grid=e,pi.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._canvas=this._grid.getCanvasNode(),this._gridOptions=this._grid.getOptions(),this._handler.subscribe(this._grid.onScroll,this.handleScroll.bind(this)).subscribe(this._grid.onDragInit,this.handleDragInit.bind(this)).subscribe(this._grid.onDragStart,this.handleDragStart.bind(this)).subscribe(this._grid.onDrag,this.handleDrag.bind(this)).subscribe(this._grid.onDragEnd,this.handleDragEnd.bind(this))}destroy(){this._handler.unsubscribeAll(),this._activeCanvas=null,this._activeViewport=null,this._canvas=null,this._decorator?.destroy()}getCellDecorator(){return this._decorator}handleScroll(e,t){this._scrollTop=t.scrollTop,this._scrollLeft=t.scrollLeft}handleDragInit(e){this._activeCanvas=this._grid.getActiveCanvasNode(e),this._activeViewport=this._grid.getActiveViewportNode(e);let t=this._grid.getDisplayedScrollbarDimensions();if(this._viewportWidth=this._activeViewport.offsetWidth-t.width,this._viewportHeight=this._activeViewport.offsetHeight-t.height,this._moveDistanceForOneCell={x:this._grid.getAbsoluteColumnMinWidth()/2,y:this._grid.getOptions().rowHeight/2},this._isRowMoveRegistered=this.hasRowMoveManager(),this._rowOffset=0,this._columnOffset=0,this._isBottomCanvas=this._activeCanvas.classList.contains("grid-canvas-bottom"),this._gridOptions.frozenRow>-1&&this._isBottomCanvas){let n=`.${this._grid.getUID()} .grid-canvas-${this._gridOptions.frozenBottom?"bottom":"top"}`,o=document.querySelector(n);o&&(this._rowOffset=o.clientHeight||0)}if(this._isRightCanvas=this._activeCanvas.classList.contains("grid-canvas-right"),this._gridOptions.frozenColumn>-1&&this._isRightCanvas){let n=document.querySelector(`.${this._grid.getUID()} .grid-canvas-left`);n&&(this._columnOffset=n.clientWidth||0)}e.stopImmediatePropagation(),e.preventDefault()}handleDragStart(e,t){let n=this._grid.getCellFromEvent(e);if(n&&this.onBeforeCellRangeSelected.notify(n).getReturnValue()!==!1&&this._grid.canCellBeSelected(n.row,n.cell)&&(this._dragging=!0,e.stopImmediatePropagation()),!this._dragging)return;this._grid.focus();let o=pi.offset(this._canvas),r=t.startX-(o?.left??0);this._gridOptions.frozenColumn>=0&&this._isRightCanvas&&(r+=this._scrollLeft);let i=t.startY-(o?.top??0);this._gridOptions.frozenRow>=0&&this._isBottomCanvas&&(i+=this._scrollTop);let a=this._grid.getCellFromPoint(r,i);return t.range={start:a,end:{}},this._currentlySelectedRange=t.range,this._decorator.show(new Rd(a.row,a.cell))}handleDrag(e,t){if(!this._dragging&&!this._isRowMoveRegistered)return;this._isRowMoveRegistered||e.stopImmediatePropagation();let n=e.getNativeEvent();if(this._options.autoScroll&&(this._draggingMouseOffset=this.getMouseOffsetViewport(n,t),this._draggingMouseOffset.isOutsideViewport))return this.handleDragOutsideViewport();this.stopIntervalTimer(),this.handleDragTo(n,t)}getMouseOffsetViewport(e,t){let n=e?.touches?.[0]??e,o=this._activeViewport.scrollLeft,r=this._activeViewport.scrollTop,i=o+this._viewportWidth,a=r+this._viewportHeight,l=pi.offset(this._activeViewport),d=l?.left??0,u=l?.top??0,f=d+this._viewportWidth,p=u+this._viewportHeight,y={e,dd:t,viewport:{left:o,top:r,right:i,bottom:a,offset:{left:d,top:u,right:f,bottom:p}},offset:{x:0,y:0},isOutsideViewport:!1};return n.pageX<d?y.offset.x=n.pageX-d:n.pageX>f&&(y.offset.x=n.pageX-f),n.pageY<u?y.offset.y=u-n.pageY:n.pageY>p&&(y.offset.y=p-n.pageY),y.isOutsideViewport=!!y.offset.x||!!y.offset.y,y}handleDragOutsideViewport(){if(this._xDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.x)*this._options.accelerateInterval,this._yDelayForNextCell=this._options.maxIntervalToShowNextCell-Math.abs(this._draggingMouseOffset.offset.y)*this._options.accelerateInterval,!this._autoScrollTimerId){let e=0,t=0;this._autoScrollTimerId=window.setInterval(()=>{let n=!1,o=!1;this._draggingMouseOffset.offset.x?(e+=this._options.minIntervalToShowNextCell,n=e>=this._xDelayForNextCell):e=0,this._draggingMouseOffset.offset.y?(t+=this._options.minIntervalToShowNextCell,o=t>=this._yDelayForNextCell):t=0,(n||o)&&(n&&(e=0),o&&(t=0),this.handleDragToNewPosition(n,o))},this._options.minIntervalToShowNextCell)}}handleDragToNewPosition(e,t){let n=this._draggingMouseOffset.e.pageX,o=this._draggingMouseOffset.e.pageY,r=this._draggingMouseOffset.offset.x,i=this._draggingMouseOffset.offset.y,a=this._draggingMouseOffset.viewport.offset;e&&r&&(r>0?n=a.right+this._moveDistanceForOneCell.x:n=a.left-this._moveDistanceForOneCell.x),t&&i&&(i>0?o=a.top-this._moveDistanceForOneCell.y:o=a.bottom+this._moveDistanceForOneCell.y),this.handleDragTo({pageX:n,pageY:o},this._draggingMouseOffset.dd)}stopIntervalTimer(){this._autoScrollTimerId&&(window.clearInterval(this._autoScrollTimerId),this._autoScrollTimerId=void 0)}handleDragTo(e,t){let n=e?.touches?.[0]??e,o=pi.offset(this._activeCanvas),r=this._grid.getCellFromPoint(n.pageX-(o?.left??0)+this._columnOffset,n.pageY-(o?.top??0)+this._rowOffset);if(!(this._gridOptions.frozenColumn>=0&&!this._isRightCanvas&&r.cell>this._gridOptions.frozenColumn||this._isRightCanvas&&r.cell<=this._gridOptions.frozenColumn)&&!(this._gridOptions.frozenRow>=0&&!this._isBottomCanvas&&r.row>=this._gridOptions.frozenRow||this._isBottomCanvas&&r.row<this._gridOptions.frozenRow)){if(this._options.autoScroll&&this._draggingMouseOffset){let i=this._grid.getCellNodeBox(r.row,r.cell);if(!i)return;let a=this._draggingMouseOffset.viewport;(i.left<a.left||i.right>a.right||i.top<a.top||i.bottom>a.bottom)&&this._grid.scrollCellIntoView(r.row,r.cell)}if(this._grid.canCellBeSelected(r.row,r.cell)&&t?.range){t.range.end=r;let i=new Rd(t.range.start.row??0,t.range.start.cell??0,r.row,r.cell);this._decorator.show(i),this.onCellRangeSelecting.notify({range:i})}}}hasRowMoveManager(){return!!(this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager"))}handleDragEnd(e,t){this._decorator.hide(),this._dragging&&(this._dragging=!1,e.stopImmediatePropagation(),this.stopIntervalTimer(),this.onCellRangeSelected.notify({range:new Rd(t.range.start.row??0,t.range.start.cell??0,t.range.end.row,t.range.end.cell)}))}getCurrentRange(){return this._currentlySelectedRange}},fA=Tc,pA=Sa,fr=go,mA=class{constructor(e){P(this,"pluginName","CheckboxSelectColumn"),P(this,"_dataView"),P(this,"_grid"),P(this,"_isUsingDataView",!1),P(this,"_selectableOverride",null),P(this,"_headerRowNode"),P(this,"_selectAll_UID"),P(this,"_handler",new pA),P(this,"_selectedRowsLookup",{}),P(this,"_checkboxColumnCellIndex",null),P(this,"_options"),P(this,"_defaults",{columnId:"_checkbox_selector",cssClass:void 0,hideSelectAllCheckbox:!1,name:"",toolTip:"Select/Deselect All",width:30,reorderable:!1,applySelectOnAllPages:!1,hideInColumnTitleRow:!1,hideInFilterHeaderRow:!0}),P(this,"_isSelectAllChecked",!1),P(this,"_bindingEventService"),this._bindingEventService=new fA,this._options=fr.extend(!0,{},this._defaults,e),this._selectAll_UID=this.createUID(),typeof this._options.selectableOverride=="function"&&this.selectableOverride(this._options.selectableOverride)}init(e){this._grid=e,this._isUsingDataView=!Array.isArray(e.getData()),this._isUsingDataView&&(this._dataView=e.getData()),this._handler.subscribe(this._grid.onSelectedRowsChanged,this.handleSelectedRowsChanged.bind(this)).subscribe(this._grid.onClick,this.handleClick.bind(this)).subscribe(this._grid.onKeyDown,this.handleKeyDown.bind(this)).subscribe(this._grid.onAfterSetColumns,()=>this.renderSelectAllCheckbox(this._isSelectAllChecked)),this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages&&this._handler.subscribe(this._dataView.onSelectedRowIdsChanged,this.handleDataViewSelectedIdsChanged.bind(this)).subscribe(this._dataView.onPagingInfoChanged,this.handleDataViewSelectedIdsChanged.bind(this)),this._options.hideInFilterHeaderRow||this.addCheckboxToFilterHeaderRow(e),this._options.hideInColumnTitleRow||this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}getOptions(){return this._options}setOptions(e){if(this._options=fr.extend(!0,{},this._options,e),this._options.hideSelectAllCheckbox)this.hideSelectAllFromColumnHeaderTitleRow(),this.hideSelectAllFromColumnHeaderFilterRow();else if(this._options.hideInColumnTitleRow?(this.hideSelectAllFromColumnHeaderTitleRow(),this._options.name&&this._grid.updateColumnHeader(this._options.columnId||"",this._options.name,"")):(this.renderSelectAllCheckbox(this._isSelectAllChecked),this._handler.subscribe(this._grid.onHeaderClick,this.handleHeaderClick.bind(this))),this._options.hideInFilterHeaderRow)this.hideSelectAllFromColumnHeaderFilterRow();else{let t=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");if(t){t.style.display="flex";let n=t.querySelector('input[type="checkbox"]');n&&(n.checked=this._isSelectAllChecked)}}}hideSelectAllFromColumnHeaderTitleRow(){this._grid.updateColumnHeader(this._options.columnId||"",this._options.name||"","")}hideSelectAllFromColumnHeaderFilterRow(){let e=this._headerRowNode?.querySelector("#filter-checkbox-selectall-container");e&&(e.style.display="none")}handleSelectedRowsChanged(){let e=this._grid.getSelectedRows(),t={},n=0,o=0,r=0,i=0;if(typeof this._selectableOverride=="function")for(r=0;r<this._grid.getDataLength();r++){let l=this._grid.getDataItem(r);this.checkSelectableOverride(o,l,this._grid)||i++}let a=[];for(o=0;o<e.length;o++){n=e[o];let l=this._grid.getDataItem(n);this.checkSelectableOverride(o,l,this._grid)?(t[n]=!0,t[n]!==this._selectedRowsLookup[n]&&(this._grid.invalidateRow(n),delete this._selectedRowsLookup[n])):a.push(n)}if(typeof this._selectedRowsLookup=="object"&&Object.keys(this._selectedRowsLookup).forEach(l=>{l!==void 0&&this._grid.invalidateRow(+l)}),this._selectedRowsLookup=t,this._grid.render(),this._isSelectAllChecked=(e?.length??0)+i>=this._grid.getDataLength(),(!this._isUsingDataView||!this._options.applySelectOnAllPages)&&(!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow)){let l=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);l&&(l.checked=this._isSelectAllChecked)}if(a.length>0){for(o=0;o<a.length;o++){let l=e.indexOf(a[o]);e.splice(l,1)}this._grid.setSelectedRows(e,"click.cleanup")}}handleDataViewSelectedIdsChanged(){let e=this._dataView.getAllSelectedFilteredIds(),t=this._dataView.getFilteredItems(),n=0;if(typeof this._selectableOverride=="function"&&e.length>0)for(let o=0;o<this._dataView.getItemCount();o++){let r=this._dataView.getItemByIdx(o),i=this._dataView.getIdPropertyName(),a=r[i];t.findIndex(function(l){return l[i]===a})>=0&&!this.checkSelectableOverride(o,r,this._grid)&&n++}if(this._isSelectAllChecked=(e&&e.length)+n>=t.length,!this._options.hideInColumnTitleRow&&!this._options.hideSelectAllCheckbox&&this.renderSelectAllCheckbox(this._isSelectAllChecked),!this._options.hideInFilterHeaderRow){let o=this._headerRowNode?.querySelector(`#header-filter-selector${this._selectAll_UID}`);o&&(o.checked=this._isSelectAllChecked)}}handleKeyDown(e,t){e.which===32&&this._grid.getColumns()[t.cell].id===this._options.columnId&&((!this._grid.getEditorLock().isActive()||this._grid.getEditorLock().commitCurrentEdit())&&this.toggleRowSelection(t.row),e.preventDefault(),e.stopImmediatePropagation())}handleClick(e,t){if(this._grid.getColumns()[t.cell].id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}this.toggleRowSelection(t.row),e.stopPropagation(),e.stopImmediatePropagation()}}toggleRowSelection(e){let t=this._grid.getDataItem(e);if(this.checkSelectableOverride(e,t,this._grid)){if(this._selectedRowsLookup[e]){let n=this._grid.getSelectedRows().filter(o=>o!==e);this._grid.setSelectedRows(n,"click.toggle")}else this._grid.setSelectedRows(this._grid.getSelectedRows().concat(e),"click.toggle");this._grid.setActiveCell(e,this.getCheckboxColumnCellIndex())}}selectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]||(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().concat(t),"SlickCheckboxSelectColumn.selectRows")}deSelectRows(e){let t=[];for(let n=0,o=e.length;n<o;n++)this._selectedRowsLookup[e[n]]&&(t[t.length]=e[n]);this._grid.setSelectedRows(this._grid.getSelectedRows().filter(n=>t.indexOf(n)<0),"SlickCheckboxSelectColumn.deSelectRows")}handleHeaderClick(e,t){if(t.column.id===this._options.columnId&&e.target.type==="checkbox"){if(this._grid.getEditorLock().isActive()&&!this._grid.getEditorLock().commitCurrentEdit()){e.preventDefault(),e.stopImmediatePropagation();return}let n=e.target.checked,o=n?"click.selectAll":"click.unselectAll",r=[];if(n){for(let i=0;i<this._grid.getDataLength();i++){let a=this._grid.getDataItem(i);!a.__group&&!a.__groupTotals&&this.checkSelectableOverride(i,a,this._grid)&&r.push(i)}n=!0}if(this._isUsingDataView&&this._dataView&&this._options.applySelectOnAllPages){let i=[],a=this._dataView.getFilteredItems();for(let l=0;l<a.length;l++){let d=a[l];this.checkSelectableOverride(l,d,this._grid)&&i.push(d[this._dataView.getIdPropertyName()])}this._dataView.setSelectedIds(i,{isRowBeingAdded:n})}this._grid.setSelectedRows(r,o),e.stopPropagation(),e.stopImmediatePropagation()}}getCheckboxColumnCellIndex(){if(this._checkboxColumnCellIndex===null){this._checkboxColumnCellIndex=0;let e=this._grid.getColumns();for(let t=0;t<e.length;t++)e[t].id===this._options.columnId&&(this._checkboxColumnCellIndex=t)}return this._checkboxColumnCellIndex}createCheckboxElement(e,t=!1){let n=new DocumentFragment;return n.appendChild(fr.createDomElement("input",{id:e,type:"checkbox",checked:t,ariaChecked:String(t)})),n.appendChild(fr.createDomElement("label",{htmlFor:e})),n}getColumnDefinition(){return{id:this._options.columnId,reorderable:this._options.reorderable,name:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?this._options.name||"":this.createCheckboxElement(`header-selector${this._selectAll_UID}`),toolTip:this._options.hideSelectAllCheckbox||this._options.hideInColumnTitleRow?"":this._options.toolTip,field:"sel",width:this._options.width,resizable:!1,sortable:!1,cssClass:this._options.cssClass,hideSelectAllCheckbox:this._options.hideSelectAllCheckbox,formatter:this.checkboxSelectionFormatter.bind(this),excludeFromColumnPicker:this._options.excludeFromColumnPicker??!0,excludeFromGridMenu:this._options.excludeFromGridMenu??!0,excludeFromHeaderMenu:this._options.excludeFromHeaderMenu??!0}}addCheckboxToFilterHeaderRow(e){this._handler.subscribe(e.onHeaderRowCellRendered,(t,n)=>{if(n.column.field==="sel"){fr.emptyElement(n.node);let o=fr.createDomElement("span",{id:"filter-checkbox-selectall-container",ariaChecked:"false"});o.appendChild(fr.createDomElement("input",{type:"checkbox",id:`header-filter-selector${this._selectAll_UID}`})),o.appendChild(fr.createDomElement("label",{htmlFor:`header-filter-selector${this._selectAll_UID}`})),n.node.appendChild(o),this._headerRowNode=n.node,this._bindingEventService.bind(o,"click",r=>this.handleHeaderClick(r,n))}})}createUID(){return Math.round(1e7*Math.random())}checkboxSelectionFormatter(e,t,n,o,r,i){if(r&&this.checkSelectableOverride(e,r,i)){let a=this.createUID()+e;return this.createCheckboxElement(`selector${a}`,!!this._selectedRowsLookup[e])}return null}checkSelectableOverride(e,t,n){return typeof this._selectableOverride=="function"?this._selectableOverride(e,t,n):!0}renderSelectAllCheckbox(e){this._grid.updateColumnHeader(this._options.columnId||"",this.createCheckboxElement(`header-selector${this._selectAll_UID}`,!!e),this._options.toolTip)}selectableOverride(e){this._selectableOverride=e}},gA=Tc,yA=Zr,vA=QN,Td=go,bA=class{constructor(e){P(this,"pluginName","HeaderButtons"),P(this,"onCommand",new yA("onCommand")),P(this,"_grid"),P(this,"_handler",new vA),P(this,"_bindingEventService",new gA),P(this,"_defaults",{buttonCssClass:"slick-header-button"}),P(this,"_options"),this._options=Td.extend(!0,{},this._defaults,e)}init(e){this._grid=e,Td.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns())}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll()}handleHeaderCellRendered(e,t){let n=t.column;if(n.header?.buttons){let o=n.header.buttons.length;for(;o--;){let r=n.header.buttons[o],i=this.runOverrideFunctionWhenExists(r.itemVisibilityOverride,t),a=this.runOverrideFunctionWhenExists(r.itemUsabilityOverride,t);if(!i)continue;Object.prototype.hasOwnProperty.call(r,"itemUsabilityOverride")&&(r.disabled=!a);let l=document.createElement("div");l.className=this._options.buttonCssClass||"",l.ariaLabel="Header Button",l.role="button",r.disabled&&l.classList.add("slick-header-button-disabled"),r.showOnHover&&l.classList.add("slick-header-button-hidden"),r.image&&(l.style.backgroundImage=`url(${r.image})`),r.cssClass&&l.classList.add(...Td.classNameToList(r.cssClass)),r.tooltip&&(l.title=r.tooltip),r.handler&&!r.disabled&&this._bindingEventService.bind(l,"click",r.handler),this._bindingEventService.bind(l,"click",this.handleButtonClick.bind(this,r,t.column)),t.node.appendChild(l)}}}handleBeforeHeaderCellDestroy(e,t){if(t.column.header?.buttons){let n=(this._options.buttonCssClass||"").replace(/(\s+)/g,".");n&&t.node.querySelectorAll(`.${n}`).forEach(o=>o.remove())}}handleButtonClick(e,t,n){let o=e.command||"",r={grid:this._grid,column:t,button:e};o&&(r.command=o),typeof e.action=="function"&&e.action.call(this,n,r),o&&!e.disabled&&(this.onCommand.notify(r,n,this),this._grid.updateColumnHeader(t.id)),n.preventDefault(),n.stopPropagation()}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},wA=Tc,kd=ZN,CA=Sa,Fn=go,SA=class{constructor(e){P(this,"pluginName","HeaderMenu"),P(this,"onAfterMenuShow",new kd("onAfterMenuShow")),P(this,"onBeforeMenuShow",new kd("onBeforeMenuShow")),P(this,"onCommand",new kd("onCommand")),P(this,"_grid"),P(this,"_gridUid",""),P(this,"_handler",new CA),P(this,"_bindingEventService",new wA),P(this,"_defaults",{buttonCssClass:void 0,buttonImage:void 0,minWidth:100,autoAlign:!0,autoAlignOffset:0,subMenuOpenByEvent:"mouseover"}),P(this,"_options"),P(this,"_activeHeaderColumnElm"),P(this,"_menuElm"),P(this,"_subMenuParentId",""),this._options=Fn.extend(!0,{},e,this._defaults)}init(e){this._grid=e,this._gridUid=e?.getUID()||"",Fn.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),this._handler.subscribe(this._grid.onHeaderCellRendered,this.handleHeaderCellRendered.bind(this)).subscribe(this._grid.onBeforeHeaderCellDestroy,this.handleBeforeHeaderCellDestroy.bind(this)),this._grid.setColumns(this._grid.getColumns()),this._bindingEventService.bind(document.body,"click",this.handleBodyMouseDown.bind(this))}setOptions(e){this._options=Fn.extend(!0,{},this._options,e)}getGridUidSelector(){let e=this._grid.getUID()||"";return e?`.${e}`:""}destroy(){this._handler.unsubscribeAll(),this._bindingEventService.unbindAll(),this._menuElm=this._menuElm||document.body.querySelector(`.slick-header-menu${this.getGridUidSelector()}`),this._menuElm?.remove(),this._activeHeaderColumnElm=void 0}destroyAllMenus(){this.destroySubMenus(),this._bindingEventService.unbindAll("parent-menu"),document.querySelectorAll(`.slick-header-menu${this.getGridUidSelector()}`).forEach(e=>e.remove())}destroySubMenus(){this._bindingEventService.unbindAll("sub-menu"),document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(e=>e.remove())}handleBodyMouseDown(e){let t=!1;this._menuElm?.contains(e.target)&&(t=!0),t||document.querySelectorAll(`.slick-header-menu.slick-submenu${this.getGridUidSelector()}`).forEach(n=>{n.contains(e.target)&&(t=!0)}),(this._menuElm!==e.target&&!t&&!e.defaultPrevented||e.target.className==="close")&&this.hideMenu()}hideMenu(){this._menuElm&&(this._menuElm.remove(),this._menuElm=void 0),this._activeHeaderColumnElm?.classList.remove("slick-header-column-active"),this.destroySubMenus()}handleHeaderCellRendered(e,t){let n=t.column?.header?.menu;if(n?.items&&console.warn('[SlickGrid] Header Menu "items" property was deprecated in favor of "commandItems" to align with all other Menu plugins.'),n){if(!this.runOverrideFunctionWhenExists(this._options.menuUsabilityOverride,t))return;let o=document.createElement("div");if(o.className="slick-header-menubutton",o.ariaLabel="Header Menu",o.role="button",!this._options.buttonCssClass&&!this._options.buttonImage&&(this._options.buttonCssClass="caret"),this._options.buttonCssClass){let r=document.createElement("span");r.classList.add(...Fn.classNameToList(this._options.buttonCssClass)),o.appendChild(r)}this._options.buttonImage&&(o.style.backgroundImage=`url(${this._options.buttonImage})`),this._options.tooltip&&(o.title=this._options.tooltip),this._bindingEventService.bind(o,"click",r=>{this.destroyAllMenus(),this.createParentMenu(r,n,t.column)}),t.node.appendChild(o)}}handleBeforeHeaderCellDestroy(e,t){t.column.header?.menu&&t.node.querySelectorAll(".slick-header-menubutton").forEach(n=>n.remove())}addSubMenuTitleWhenExists(e,t){if(e!=="divider"&&e?.subMenuTitle){let n=document.createElement("div");n.className="slick-menu-title",n.textContent=e.subMenuTitle;let o=e.subMenuTitleCssClass;o&&n.classList.add(...Fn.classNameToList(o)),t.appendChild(n)}}createParentMenu(e,t,n){let o={grid:this._grid,column:n,menu:t};if(this.onBeforeMenuShow.notify(o,e,this).getReturnValue()===!1)return;this._menuElm=this.createMenu(t.commandItems||t.items,n);let r=this._grid.getContainerNode();r&&r.appendChild(this._menuElm),this.repositionMenu(e,this._menuElm),this.onAfterMenuShow.notify(o,e,this).getReturnValue()!==!1&&(e.preventDefault(),e.stopPropagation())}createMenu(e,t,n=0,o){let r=n>0,i=o?.command,a=n===1&&i?i.replaceAll(" ",""):"";a&&(this._subMenuParentId=a),r&&(a=this._subMenuParentId);let l=`slick-header-menu slick-menu-level-${n} ${this._gridUid}`,d=document.body.querySelector(`.slick-header-menu.slick-menu-level-${n}${this.getGridUidSelector()}`);if(d){if(d.dataset.subMenuParent===a)return d;this.destroySubMenus()}let u=document.createElement("div");u.className=l,n>0&&(u.classList.add("slick-submenu"),a&&(u.dataset.subMenuParent=a)),u.classList.add(this._gridUid),u.role="menu",u.ariaLabel=n>1?"SubMenu":"Header Menu",u.style.minWidth=`${this._options.minWidth}px`,u.setAttribute("aria-expanded","true");let f={grid:this._grid,column:t,menu:{items:e}};o&&n>0&&this.addSubMenuTitleWhenExists(o,u);for(let p=0;p<e.length;p++){let y=!0,w=e[p],b=this.runOverrideFunctionWhenExists(w.itemVisibilityOverride,f),m=this.runOverrideFunctionWhenExists(w.itemUsabilityOverride,f);if(!b)continue;Object.prototype.hasOwnProperty.call(w,"itemUsabilityOverride")&&(w.disabled=!m);let v=document.createElement("div");v.className="slick-header-menuitem",v.role="menuitem",(w.divider||w==="divider")&&(v.classList.add("slick-header-menuitem-divider"),y=!1),w.disabled&&v.classList.add("slick-header-menuitem-disabled"),w.hidden&&v.classList.add("slick-header-menuitem-hidden"),w.cssClass&&v.classList.add(...Fn.classNameToList(w.cssClass)),w.tooltip&&(v.title=w.tooltip||"");let D=document.createElement("div");D.className="slick-header-menuicon",v.appendChild(D),w.iconCssClass&&D.classList.add(...Fn.classNameToList(w.iconCssClass)),w.iconImage&&(D.style.backgroundImage="url("+w.iconImage+")");let k=document.createElement("span");if(k.className="slick-header-menucontent",k.textContent=w.title||"",v.appendChild(k),w.textCssClass&&k.classList.add(...Fn.classNameToList(w.textCssClass)),u.appendChild(v),y){let x=r?"sub-menu":"parent-menu";this._bindingEventService.bind(v,"click",this.handleMenuItemClick.bind(this,w,t,n),void 0,x)}if(this._options.subMenuOpenByEvent==="mouseover"&&this._bindingEventService.bind(v,"mouseover",x=>{w.commandItems||w.items?this.repositionSubMenu(w,t,n,x):r||this.destroySubMenus()}),w.commandItems||w.items){let x=document.createElement("div");x.className="sub-item-chevron",this._options.subItemChevronClass?x.classList.add(...Fn.classNameToList(this._options.subItemChevronClass)):x.textContent="⮞",v.classList.add("slick-submenu-item"),v.appendChild(x)}}return u}handleMenuItemClick(e,t,n=0,o){if(e!=="divider"&&!e.disabled&&!e.divider){let r=e.command||"";if(Fn.isDefined(r)&&!e.commandItems&&!e.items){let i={grid:this._grid,column:t,command:r,item:e};this.onCommand.notify(i,o,this),typeof e.action=="function"&&e.action.call(this,o,i),o.defaultPrevented||this.hideMenu()}else e.commandItems||e.items?this.repositionSubMenu(e,t,n,o):this.destroySubMenus()}}repositionSubMenu(e,t,n,o){o.target.classList.contains("slick-header-menubutton")&&this.destroySubMenus();let r=this.createMenu(e.commandItems||e.items||[],t,n+1,e);document.body.appendChild(r),this.repositionMenu(o,r)}repositionMenu(e,t){let n=e.target,o=t.classList.contains("slick-submenu"),r=o?e.target.closest(".slick-header-menuitem"):n,i=Fn.offset(n),a=this._grid.getGridPosition(),l=t.offsetWidth,d=Fn.offset(this._menuElm),u=Fn.offset(r),f=o?u?.top??0:n.clientHeight??i?.top??0+(this._options?.menuOffsetTop??0),p=o?u?.left??0:i?.left??0;if(o&&r){let y=p+Number(l);o&&(y+=r.clientWidth);let w=document.documentElement.clientWidth;(y>=a.width||y>=w?"left":"right")=="left"?(t.classList.remove("dropright"),t.classList.add("dropleft"),p-=l):(t.classList.remove("dropleft"),t.classList.add("dropright"),o&&(p+=r.offsetWidth))}else p+t.offsetWidth>=a.width&&(p=p+n.clientWidth-t.clientWidth+(this._options.autoAlignOffset||0)),p-=d?.left??0;t.style.top=`${f}px`,t.style.left=`${p}px`,this._activeHeaderColumnElm=t.closest(".slick-header-column"),this._activeHeaderColumnElm&&this._activeHeaderColumnElm.classList.add("slick-header-column-active")}runOverrideFunctionWhenExists(e,t){return typeof e=="function"?e.call(this,t):!0}},_A=xh,Ed=Br,xA=jv,RA=hA,TA=Zr,kA=na,EA=Sa,Pd=_h,Ja=go,PA=class{constructor(e){P(this,"pluginName","RowSelectionModel"),P(this,"onSelectedRangesChanged",new TA("onSelectedRangesChanged")),P(this,"_grid"),P(this,"_ranges",[]),P(this,"_eventHandler",new EA),P(this,"_inHandler",!1),P(this,"_selector"),P(this,"_isRowMoveManagerHandler"),P(this,"_options"),P(this,"_defaults",{selectActiveRow:!0,dragToSelect:!1,autoScrollWhenDrag:!0,cellRangeSelector:void 0}),this._options=Ja.extend(!0,{},this._defaults,e)}init(e){if(_A===void 0)throw new Error('Slick.Draggable is undefined, make sure to import "slick.interactions.js"');if(this._selector=this._options.cellRangeSelector,this._grid=e,Ja.addSlickEventPubSubWhenDefined(e.getPubSubService(),this),!this._selector&&this._options.dragToSelect){if(!xA)throw new Error("Slick.CellRangeDecorator is required when option dragToSelect set to true");this._selector=new RA({selectionCss:{border:"none"},autoScroll:this._options.autoScrollWhenDrag})}this._eventHandler.subscribe(this._grid.onActiveCellChanged,this.wrapHandler(this.handleActiveCellChange).bind(this)),this._eventHandler.subscribe(this._grid.onKeyDown,this.wrapHandler(this.handleKeyDown).bind(this)),this._eventHandler.subscribe(this._grid.onClick,this.wrapHandler(this.handleClick).bind(this)),this._selector&&(e.registerPlugin(this._selector),this._selector.onCellRangeSelecting.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.subscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.subscribe(this.handleBeforeCellRangeSelected.bind(this)))}destroy(){this._eventHandler.unsubscribeAll(),this._selector&&(this._selector.onCellRangeSelecting.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onCellRangeSelected.unsubscribe(this.handleCellRangeSelected.bind(this)),this._selector.onBeforeCellRangeSelected.unsubscribe(this.handleBeforeCellRangeSelected.bind(this)),this._grid.unregisterPlugin(this._selector),this._selector.destroy&&this._selector.destroy())}wrapHandler(e){return(...t)=>{this._inHandler||(this._inHandler=!0,e.apply(this,t),this._inHandler=!1)}}rangesToRows(e){let t=[];for(let n=0;n<e.length;n++)for(let o=e[n].fromRow;o<=e[n].toRow;o++)t.push(o);return t}rowsToRanges(e){let t=[],n=this._grid.getColumns().length-1;return e.forEach(o=>t.push(new Pd(o,0,o,n))),t}getRowsRange(e,t){let n,o=[];for(n=e;n<=t;n++)o.push(n);for(n=t;n<e;n++)o.push(n);return o}getSelectedRows(){return this.rangesToRows(this._ranges)}setSelectedRows(e){this.setSelectedRanges(this.rowsToRanges(e),"SlickRowSelectionModel.setSelectedRows")}setSelectedRanges(e,t="SlickRowSelectionModel.setSelectedRanges"){if((!this._ranges||this._ranges.length===0)&&(!e||e.length===0))return;this._ranges=e;let n=new kA(new CustomEvent("click",{detail:{caller:t}}),this._ranges);this.onSelectedRangesChanged.notify(this._ranges,n)}getSelectedRanges(){return this._ranges}refreshSelections(){this.setSelectedRows(this.getSelectedRows())}handleActiveCellChange(e,t){this._options.selectActiveRow&&Ja.isDefined(t.row)&&this.setSelectedRanges([new Pd(t.row,0,t.row,this._grid.getColumns().length-1)])}handleKeyDown(e){let t=this._grid.getActiveCell();if(this._grid.getOptions().multiSelect&&t&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.which===Ed.UP||e.which===Ed.DOWN)){let n=this.getSelectedRows();n.sort(function(a,l){return a-l}),n.length||(n=[t.row]);let o=n[0],r=n[n.length-1],i;if(e.which===Ed.DOWN?i=t.row<r||o===r?++r:++o:i=t.row<r?--r:--o,i>=0&&i<this._grid.getDataLength()){this._grid.scrollRowIntoView(i);let a=this.rowsToRanges(this.getRowsRange(o,r));this.setSelectedRanges(a)}e.preventDefault(),e.stopPropagation()}}handleClick(e){let t=this._grid.getCellFromEvent(e);if(!t||!this._grid.canCellBeActive(t.row,t.cell)||!this._grid.getOptions().multiSelect||!e.ctrlKey&&!e.shiftKey&&!e.metaKey)return!1;let n=this.rangesToRows(this._ranges),o=n.indexOf(t.row);if(o===-1&&(e.ctrlKey||e.metaKey))n.push(t.row),this._grid.setActiveCell(t.row,t.cell);else if(o!==-1&&(e.ctrlKey||e.metaKey))n=n.filter(i=>i!==t.row),this._grid.setActiveCell(t.row,t.cell);else if(n.length&&e.shiftKey){let i=n.pop(),a=Math.min(t.row,i),l=Math.max(t.row,i);n=[];for(let d=a;d<=l;d++)d!==i&&n.push(d);n.push(i),this._grid.setActiveCell(t.row,t.cell)}let r=this.rowsToRanges(n);return this.setSelectedRanges(r),e.stopImmediatePropagation(),!0}handleBeforeCellRangeSelected(e,t){if(!this._isRowMoveManagerHandler){let n=this._grid.getPluginByName("RowMoveManager")||this._grid.getPluginByName("CrossGridRowMoveManager");this._isRowMoveManagerHandler=n?n.isHandlerColumn:Ja.noop}if(this._grid.getEditorLock().isActive()||this._isRowMoveManagerHandler(t.cell))return e.stopPropagation(),!1;this._grid.setActiveCell(t.row,t.cell)}handleCellRangeSelected(e,t){if(!this._grid.getOptions().multiSelect||!this._options.selectActiveRow)return!1;this.setSelectedRanges([new Pd(t.range.fromRow,0,t.range.toRow,this._grid.getColumns().length-1)])}},DA=Br,Dd=Lv,mi=go,Bv=class{constructor(e){P(this,"pluginName","GroupItemMetadataProvider"),P(this,"_grid"),P(this,"_options"),P(this,"_defaults",{checkboxSelect:!1,checkboxSelectCssClass:"slick-group-select-checkbox",checkboxSelectPlugin:null,groupCssClass:"slick-group",groupTitleCssClass:"slick-group-title",totalsCssClass:"slick-group-totals",groupFocusable:!0,totalsFocusable:!1,toggleCssClass:"slick-group-toggle",toggleExpandedCssClass:"expanded",toggleCollapsedCssClass:"collapsed",enableExpandCollapse:!0,groupFormatter:this.defaultGroupCellFormatter.bind(this),totalsFormatter:this.defaultTotalsCellFormatter.bind(this),includeHeaderTotals:!1}),this._options=mi.extend(!0,{},this._defaults,e)}get dataView(){return this._grid?.getData?.()??{}}getOptions(){return this._options}setOptions(e){mi.extend(!0,this._options,e)}defaultGroupCellFormatter(e,t,n,o,r){if(!this._options.enableExpandCollapse)return r.title;let i=`${r.level*15}px`,a=r.collapsed?this._options.toggleCollapsedCssClass:this._options.toggleExpandedCssClass,l=document.createDocumentFragment();this._options.checkboxSelect&&l.appendChild(mi.createDomElement("span",{className:`${this._options.checkboxSelectCssClass} ${r.selectChecked?"checked":"unchecked"}`})),l.appendChild(mi.createDomElement("span",{className:`${this._options.toggleCssClass} ${a}`,ariaExpanded:String(!r.collapsed),style:{marginLeft:i}}));let d=mi.createDomElement("span",{className:this._options.groupTitleCssClass||""});return d.setAttribute("level",r.level),r.title instanceof HTMLElement?d.appendChild(r.title):this._grid.applyHtmlCode(d,r.title??""),l.appendChild(d),l}defaultTotalsCellFormatter(e,t,n,o,r,i){return o?.groupTotalsFormatter?.(r,o,i)??""}init(e){this._grid=e,this._grid.onClick.subscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.subscribe(this.handleGridKeyDown.bind(this))}destroy(){this._grid&&(this._grid.onClick.unsubscribe(this.handleGridClick.bind(this)),this._grid.onKeyDown.unsubscribe(this.handleGridKeyDown.bind(this)))}handleGridClick(e,t){let n=e.target,o=this._grid.getDataItem(t.row);if(o&&o instanceof Dd&&n.classList.contains(this._options.toggleCssClass||"")&&(this.handleDataViewExpandOrCollapse(o),e.stopImmediatePropagation(),e.preventDefault()),o&&o instanceof Dd&&n.classList.contains(this._options.checkboxSelectCssClass||"")){o.selectChecked=!o.selectChecked,n.classList.remove(o.selectChecked?"unchecked":"checked"),n.classList.add(o.selectChecked?"checked":"unchecked");let r=this.dataView.mapItemsToRows(o.rows);o.selectChecked?this._options.checkboxSelectPlugin.selectRows(r):this._options.checkboxSelectPlugin.deSelectRows(r)}}handleGridKeyDown(e){if(this._options.enableExpandCollapse&&e.which===DA.SPACE){let t=this._grid.getActiveCell();if(t){let n=this._grid.getDataItem(t.row);n&&n instanceof Dd&&(this.handleDataViewExpandOrCollapse(n),e.stopImmediatePropagation(),e.preventDefault())}}}handleDataViewExpandOrCollapse(e){let t=this._grid.getRenderedRange();this.dataView.setRefreshHints({ignoreDiffsBefore:t.top,ignoreDiffsAfter:t.bottom+1}),e.collapsed?this.dataView.expandGroup(e.groupingKey):this.dataView.collapseGroup(e.groupingKey)}getGroupRowMetadata(e,t,n){let o=e?.level;return{selectable:!1,focusable:this._options.groupFocusable,cssClasses:`${this._options.groupCssClass} slick-group-level-${o}`,formatter:this._options.includeHeaderTotals&&this._options.totalsFormatter||void 0,columns:{0:{colspan:this._options.includeHeaderTotals?"1":"*",formatter:this._options.groupFormatter,editor:null}}}}getTotalsRowMetadata(e,t,n){let o=e?.group?.level;return{selectable:!1,focusable:this._options.totalsFocusable,cssClasses:`${this._options.totalsCssClass} slick-group-level-${o}`,formatter:this._options.totalsFormatter,editor:null}}},Yo=Zr,Od=na,_m=Lv,OA=GN,zn=go,MA=Bv,IA=class{constructor(e,t){this.externalPubSub=t,P(this,"defaults",{globalItemMetadataProvider:null,groupItemMetadataProvider:null,inlineFilters:!1,useCSPSafeFilter:!1}),P(this,"idProperty","id"),P(this,"items",[]),P(this,"rows",[]),P(this,"idxById",new Map),P(this,"rowsById"),P(this,"filter",null),P(this,"filterCSPSafe",null),P(this,"updated",null),P(this,"suspend",!1),P(this,"isBulkSuspend",!1),P(this,"bulkDeleteIds",new Map),P(this,"sortAsc",!0),P(this,"fastSortField"),P(this,"sortComparer"),P(this,"refreshHints",{}),P(this,"prevRefreshHints",{}),P(this,"filterArgs"),P(this,"filteredItems",[]),P(this,"compiledFilter"),P(this,"compiledFilterCSPSafe"),P(this,"compiledFilterWithCaching"),P(this,"compiledFilterWithCachingCSPSafe"),P(this,"filterCache",[]),P(this,"_grid"),P(this,"groupingInfoDefaults",{getter:void 0,formatter:void 0,comparer:(n,o)=>n.value===o.value?0:n.value>o.value?1:-1,predefinedValues:[],aggregators:[],aggregateEmpty:!1,aggregateCollapsed:!1,aggregateChildGroups:!1,collapsed:!1,displayTotalsRow:!0,lazyTotalsCalculation:!1}),P(this,"groupingInfos",[]),P(this,"groups",[]),P(this,"toggledGroupsByLevel",[]),P(this,"groupingDelimiter",":|:"),P(this,"selectedRowIds",[]),P(this,"preSelectedRowIdsChangeFn"),P(this,"pagesize",0),P(this,"pagenum",0),P(this,"totalRows",0),P(this,"_options"),P(this,"_container"),P(this,"onBeforePagingInfoChanged"),P(this,"onGroupExpanded"),P(this,"onGroupCollapsed"),P(this,"onPagingInfoChanged"),P(this,"onRowCountChanged"),P(this,"onRowsChanged"),P(this,"onRowsOrCountChanged"),P(this,"onSelectedRowIdsChanged"),P(this,"onSetItemsCalled"),this.onBeforePagingInfoChanged=new Yo("onBeforePagingInfoChanged",t),this.onGroupExpanded=new Yo("onGroupExpanded",t),this.onGroupCollapsed=new Yo("onGroupCollapsed",t),this.onPagingInfoChanged=new Yo("onPagingInfoChanged",t),this.onRowCountChanged=new Yo("onRowCountChanged",t),this.onRowsChanged=new Yo("onRowsChanged",t),this.onRowsOrCountChanged=new Yo("onRowsOrCountChanged",t),this.onSelectedRowIdsChanged=new Yo("onSelectedRowIdsChanged",t),this.onSetItemsCalled=new Yo("onSetItemsCalled",t),this._options=zn.extend(!0,{},this.defaults,e)}beginUpdate(e){this.suspend=!0,this.isBulkSuspend=e===!0}endUpdate(){let e=this.isBulkSuspend;this.isBulkSuspend=!1,this.suspend=!1,e&&(this.processBulkDelete(),this.ensureIdUniqueness()),this.refresh()}destroy(){this.items=[],this.idxById=null,this.rowsById=null,this.filter=null,this.filterCSPSafe=null,this.updated=null,this.sortComparer=null,this.filterCache=[],this.filteredItems=[],this.compiledFilter=null,this.compiledFilterCSPSafe=null,this.compiledFilterWithCaching=null,this.compiledFilterWithCachingCSPSafe=null,this._grid&&this._grid.onSelectedRowsChanged&&this._grid.onCellCssStylesChanged&&(this._grid.onSelectedRowsChanged.unsubscribe(),this._grid.onCellCssStylesChanged.unsubscribe()),this.onRowsOrCountChanged&&this.onRowsOrCountChanged.unsubscribe()}setRefreshHints(e){this.refreshHints=e}getFilterArgs(){return this.filterArgs}setFilterArgs(e){this.filterArgs=e}processBulkDelete(){if(!this.idxById)return;let e,t,n=0;for(let o=0,r=this.items.length;o<r;o++){if(t=this.items[o],e=t[this.idProperty],e===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.bulkDeleteIds.has(e)?this.idxById.delete(e):(this.items[n]=t,this.idxById.set(e,n),++n)}this.items.length=n,this.bulkDeleteIds=new Map}updateIdxById(e){if(this.isBulkSuspend||!this.idxById)return;e=e||0;let t;for(let n=e,o=this.items.length;n<o;n++){if(t=this.items[n][this.idProperty],t===void 0)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property");this.idxById.set(t,n)}}ensureIdUniqueness(){if(this.isBulkSuspend||!this.idxById)return;let e;for(let t=0,n=this.items.length;t<n;t++)if(e=this.items[t][this.idProperty],e===void 0||this.idxById.get(e)!==t)throw new Error("[SlickGrid DataView] Each data element must implement a unique 'id' property")}getItems(){return this.items}getIdPropertyName(){return this.idProperty}setItems(e,t){t!==void 0&&(this.idProperty=t),this.items=this.filteredItems=e,this.onSetItemsCalled.notify({idProperty:this.idProperty,itemCount:this.items.length},null,this),this.idxById=new Map,this.updateIdxById(),this.ensureIdUniqueness(),this.refresh()}setPagingOptions(e){this.onBeforePagingInfoChanged.notify(this.getPagingInfo(),null,this).getReturnValue()!==!1&&(zn.isDefined(e.pageSize)&&(this.pagesize=e.pageSize,this.pagenum=this.pagesize?Math.min(this.pagenum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1)):0),zn.isDefined(e.pageNum)&&(this.pagenum=Math.min(e.pageNum,Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1))),this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),this.refresh())}getPagingInfo(){let e=this.pagesize?Math.max(1,Math.ceil(this.totalRows/this.pagesize)):1;return{pageSize:this.pagesize,pageNum:this.pagenum,totalRows:this.totalRows,totalPages:e,dataView:this}}sort(e,t){this.sortAsc=t,this.sortComparer=e,this.fastSortField=null,t===!1&&this.items.reverse(),this.items.sort(e),t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}fastSort(e,t){this.sortAsc=t,this.fastSortField=e,this.sortComparer=null;let n=Object.prototype.toString;Object.prototype.toString=typeof e=="function"?e:function(){return this[e]},t===!1&&this.items.reverse(),this.items.sort(),Object.prototype.toString=n,t===!1&&this.items.reverse(),this.idxById=new Map,this.updateIdxById(),this.refresh()}reSort(){this.sortComparer?this.sort(this.sortComparer,this.sortAsc):this.fastSortField&&this.fastSort(this.fastSortField,this.sortAsc)}getFilteredItems(){return this.filteredItems}getFilteredItemCount(){return this.filteredItems.length}getFilter(){return this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter}setFilter(e){this.filterCSPSafe=e,this.filter=e,this._options.inlineFilters&&(this.compiledFilterCSPSafe=this.compileFilterCSPSafe,this.compiledFilterWithCachingCSPSafe=this.compileFilterWithCachingCSPSafe,this.compiledFilter=this.compileFilter(this._options.useCSPSafeFilter),this.compiledFilterWithCaching=this.compileFilterWithCaching(this._options.useCSPSafeFilter)),this.refresh()}getGrouping(){return this.groupingInfos}setGrouping(e){this._options.groupItemMetadataProvider||(this._options.groupItemMetadataProvider=new MA),this.groups=[],this.toggledGroupsByLevel=[],e=e||[],this.groupingInfos=e instanceof Array?e:[e];for(let t=0;t<this.groupingInfos.length;t++){let n=this.groupingInfos[t]=zn.extend(!0,{},this.groupingInfoDefaults,this.groupingInfos[t]);n.getterIsAFn=typeof n.getter=="function",n.compiledAccumulators=[];let o=n.aggregators.length;for(;o--;)n.compiledAccumulators[o]=this.compileAccumulatorLoopCSPSafe(n.aggregators[o]);this.toggledGroupsByLevel[t]={}}this.refresh()}getItemByIdx(e){return this.items[e]}getIdxById(e){return this.idxById?.get(e)}ensureRowsByIdCache(){if(!this.rowsById){this.rowsById={};for(let e=0,t=this.rows.length;e<t;e++)this.rowsById[this.rows[e][this.idProperty]]=e}}getRowByItem(e){return this.ensureRowsByIdCache(),this.rowsById?.[e[this.idProperty]]}getRowById(e){return this.ensureRowsByIdCache(),this.rowsById?.[e]}getItemById(e){return this.items[this.idxById.get(e)]}mapItemsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n][this.idProperty]];zn.isDefined(r)&&(t[t.length]=r)}return t}mapIdsToRows(e){let t=[];this.ensureRowsByIdCache();for(let n=0,o=e.length;n<o;n++){let r=this.rowsById?.[e[n]];zn.isDefined(r)&&(t[t.length]=r)}return t}mapRowsToIds(e){let t=[];for(let n=0,o=e.length;n<o;n++)if(e[n]<this.rows.length){let r=this.rows[e[n]];t[t.length]=r[this.idProperty]}return t}updateSingleItem(e,t){if(this.idxById){if(!this.idxById.has(e))throw new Error("[SlickGrid DataView] Invalid id");if(e!==t[this.idProperty]){let n=t[this.idProperty];if(!zn.isDefined(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a null id");if(this.idxById.has(n))throw new Error("[SlickGrid DataView] Cannot update item to associate with a non-unique id");this.idxById.set(n,this.idxById.get(e)),this.idxById.delete(e),this.updated?.[e]&&delete this.updated[e],e=n}this.items[this.idxById.get(e)]=t,this.updated||(this.updated={}),this.updated[e]=!0}}updateItem(e,t){this.updateSingleItem(e,t),this.refresh()}updateItems(e,t){if(e.length!==t.length)throw new Error("[SlickGrid DataView] Mismatch on the length of ids and items provided to update");for(let n=0,o=t.length;n<o;n++)this.updateSingleItem(e[n],t[n]);this.refresh()}insertItem(e,t){this.items.splice(e,0,t),this.updateIdxById(e),this.refresh()}insertItems(e,t){Array.prototype.splice.apply(this.items,[e,0].concat(t)),this.updateIdxById(e),this.refresh()}addItem(e){this.items.push(e),this.updateIdxById(this.items.length-1),this.refresh()}addItems(e){this.items=this.items.concat(e),this.updateIdxById(this.items.length-e.length),this.refresh()}deleteItem(e){if(this.idxById)if(this.isBulkSuspend)this.bulkDeleteIds.set(e,!0);else{let t=this.idxById.get(e);if(t===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(e),this.items.splice(t,1),this.updateIdxById(t),this.refresh()}}deleteItems(e){if(!(e.length===0||!this.idxById))if(this.isBulkSuspend)for(let t=0,n=e.length;t<n;t++){let o=e[t];if(this.idxById.get(o)===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.bulkDeleteIds.set(o,!0)}else{let t=[];for(let n=0,o=e.length;n<o;n++){let r=e[n],i=this.idxById.get(r);if(i===void 0)throw new Error("[SlickGrid DataView] Invalid id");this.idxById.delete(r),t.push(i)}t.sort();for(let n=t.length-1;n>=0;--n)this.items.splice(t[n],1);this.updateIdxById(t[0]),this.refresh()}}sortedAddItem(e){if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedAddItem() requires a sort comparer, use sort()");this.insertItem(this.sortedIndex(e),e)}sortedUpdateItem(e,t){if(!this.idxById)return;if(!this.idxById.has(e)||e!==t[this.idProperty])throw new Error("[SlickGrid DataView] Invalid or non-matching id "+this.idxById.get(e));if(!this.sortComparer)throw new Error("[SlickGrid DataView] sortedUpdateItem() requires a sort comparer, use sort()");let n=this.getItemById(e);this.sortComparer(n,t)!==0?(this.deleteItem(e),this.sortedAddItem(t)):this.updateItem(e,t)}sortedIndex(e){let t=0,n=this.items.length;for(;t<n;){let o=t+n>>>1;this.sortComparer(this.items[o],e)===-1?t=o+1:n=o}return t}getItemCount(){return this.items.length}getLength(){return this.rows.length}getItem(e){let t=this.rows[e];if(t?.__group&&t.totals&&!t.totals?.initialized){let n=this.groupingInfos[t.level];n.displayTotalsRow||(this.calculateTotals(t.totals),t.title=n.formatter?n.formatter(t):t.value)}else t?.__groupTotals&&!t.initialized&&this.calculateTotals(t);return t}getItemMetadata(e){let t=this.rows[e];return t===void 0?null:this._options.globalItemMetadataProvider?.getRowMetadata?this._options.globalItemMetadataProvider.getRowMetadata(t,e):t.__group&&this._options.groupItemMetadataProvider?.getGroupRowMetadata?this._options.groupItemMetadataProvider.getGroupRowMetadata(t,e):t.__groupTotals&&this._options.groupItemMetadataProvider?.getTotalsRowMetadata?this._options.groupItemMetadataProvider.getTotalsRowMetadata(t,e):null}expandCollapseAllGroups(e,t){if(zn.isDefined(e))this.toggledGroupsByLevel[e]={},this.groupingInfos[e].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:e,groupingKey:null}):this.onGroupExpanded.notify({level:e,groupingKey:null});else for(let n=0;n<this.groupingInfos.length;n++)this.toggledGroupsByLevel[n]={},this.groupingInfos[n].collapsed=t,t===!0?this.onGroupCollapsed.notify({level:n,groupingKey:null}):this.onGroupExpanded.notify({level:n,groupingKey:null});this.refresh()}collapseAllGroups(e){this.expandCollapseAllGroups(e,!0)}expandAllGroups(e){this.expandCollapseAllGroups(e,!1)}expandCollapseGroup(e,t,n){this.toggledGroupsByLevel[e][t]=this.groupingInfos[e].collapsed^n,this.refresh()}collapseGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(n=t,o=t.split(this.groupingDelimiter).length-1):(n=e.join(this.groupingDelimiter),o=e.length-1),this.expandCollapseGroup(o,n,!0),this.onGroupCollapsed.notify({level:o,groupingKey:n})}expandGroup(...e){let t=Array.prototype.slice.call(e)[0],n,o;e.length===1&&t.indexOf(this.groupingDelimiter)!==-1?(o=t.split(this.groupingDelimiter).length-1,n=t):(o=e.length-1,n=e.join(this.groupingDelimiter)),this.expandCollapseGroup(o,n,!1),this.onGroupExpanded.notify({level:o,groupingKey:n})}getGroups(){return this.groups}extractGroups(e,t){let n,o,r=[],i={},a,l=t?t.level+1:0,d=this.groupingInfos[l];for(let u=0,f=d.predefinedValues?.length??0;u<f;u++)o=d.predefinedValues?.[u],n=i[o],n||(n=new _m,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n);for(let u=0,f=e.length;u<f;u++)a=e[u],o=d.getterIsAFn?d.getter(a):a[d.getter],n=i[o],n||(n=new _m,n.value=o,n.level=l,n.groupingKey=(t?t.groupingKey+this.groupingDelimiter:"")+o,r[r.length]=n,i[o]=n),n.rows[n.count++]=a;if(l<this.groupingInfos.length-1)for(let u=0;u<r.length;u++)n=r[u],n.groups=this.extractGroups(n.rows,n);return r.length&&this.addTotals(r,l),r.sort(this.groupingInfos[l].comparer),r}calculateTotals(e){let t=e.group,n=this.groupingInfos[t.level??0],o=t.level===this.groupingInfos.length,r,i=n.aggregators.length;if(!o&&n.aggregateChildGroups){let a=t.groups?.length??0;for(;a--;)t.groups[a].totals.initialized||this.calculateTotals(t.groups[a].totals)}for(;i--;)r=n.aggregators[i],r.init(),!o&&n.aggregateChildGroups?n.compiledAccumulators[i].call(r,t.groups):n.compiledAccumulators[i].call(r,t.rows),r.storeResult(e);e.initialized=!0}addGroupTotals(e){let t=this.groupingInfos[e.level],n=new OA;n.group=e,e.totals=n,t.lazyTotalsCalculation||this.calculateTotals(n)}addTotals(e,t){t=t||0;let n=this.groupingInfos[t],o=n.collapsed,r=this.toggledGroupsByLevel[t],i=e.length,a;for(;i--;)a=e[i],!(a.collapsed&&!n.aggregateCollapsed)&&(a.groups&&this.addTotals(a.groups,t+1),n.aggregators?.length&&(n.aggregateEmpty||a.rows.length||a.groups?.length)&&this.addGroupTotals(a),a.collapsed=o^r[a.groupingKey],a.title=n.formatter?n.formatter(a):a.value)}flattenGroupedRows(e,t){t=t||0;let n=this.groupingInfos[t],o=[],r,i=0,a;for(let l=0,d=e.length;l<d;l++){if(a=e[l],o[i++]=a,!a.collapsed){r=a.groups?this.flattenGroupedRows(a.groups,t+1):a.rows;for(let u=0,f=r.length;u<f;u++)o[i++]=r[u]}a.totals&&n.displayTotalsRow&&(!a.collapsed||n.aggregateCollapsed)&&(o[i++]=a.totals)}return o}compileAccumulatorLoopCSPSafe(e){return e.accumulate?function(t){let n;for(let o=0;o<t.length;o++){let r=t[o];n=e.accumulate.call(e,r)}return n}:function(){}}compileFilterCSPSafe(e,t){if(typeof this.filterCSPSafe!="function")return[];let n=[],o=e.length;for(let r=0;r<o;r++)this.filterCSPSafe(e[r],t)&&n.push(e[r]);return n}compileFilter(e=!1){if(e)return null;let t=zn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ($1) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args",i),l="compiledFilter";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCaching(e=!1){if(e)return null;let t=zn.getFunctionDetails(this.filter),n="{ continue _coreloop; }$1",o="{ _cache[_i] = true;_retval[_idx++] = $item$; continue _coreloop; }$1",r=t.body.replace(/return false\s*([;}]|\}|$)/gi,n).replace(/return!1([;}]|\}|$)/gi,n).replace(/return true\s*([;}]|\}|$)/gi,o).replace(/return!0([;}]|\}|$)/gi,o).replace(/return ([^;}]+?)\s*([;}]|$)/gi,"{ if ((_cache[_i] = $1)) { _retval[_idx++] = $item$; }; continue _coreloop; }$2"),i=["var _retval = [], _idx = 0; ","var $item$, $args$ = _args; ","_coreloop: ","for (var _i = 0, _il = _items.length; _i < _il; _i++) { ","$item$ = _items[_i]; ","if (_cache[_i]) { ","_retval[_idx++] = $item$; ","continue _coreloop; ","} ","$filter$; ","} ","return _retval; "].join("");i=i.replace(/\$filter\$/gi,r),i=i.replace(/\$item\$/gi,t.params[0]),i=i.replace(/\$args\$/gi,t.params[1]);let a=new Function("_items,_args,_cache",i),l="compiledFilterWithCaching";return a.displayName=l,a.name=this.setFunctionName(a,l),a}compileFilterWithCachingCSPSafe(e,t,n){if(typeof this.filterCSPSafe!="function")return[];let o=[],r=e.length;for(let i=0;i<r;i++)(n[i]||this.filterCSPSafe(e[i],t))&&o.push(e[i]);return o}setFunctionName(e,t){try{Object.defineProperty(e,"name",{writable:!0,value:t})}catch{e.name=t}}uncompiledFilter(e,t){let n=[],o=0;for(let r=0,i=e.length;r<i;r++)this.filter?.(e[r],t)&&(n[o++]=e[r]);return n}uncompiledFilterWithCaching(e,t,n){let o=[],r=0,i;for(let a=0,l=e.length;a<l;a++)i=e[a],n[a]?o[r++]=i:this.filter?.(i,t)&&(o[r++]=i,n[a]=!0);return o}getFilteredAndPagedItems(e){if(this._options.useCSPSafeFilter?this.filterCSPSafe:this.filter){let n,o;this._options.useCSPSafeFilter?(n=this._options.inlineFilters?this.compiledFilterCSPSafe:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCachingCSPSafe:this.uncompiledFilterWithCaching):(n=this._options.inlineFilters?this.compiledFilter:this.uncompiledFilter,o=this._options.inlineFilters?this.compiledFilterWithCaching:this.uncompiledFilterWithCaching),this.refreshHints.isFilterNarrowing?this.filteredItems=n.call(this,this.filteredItems,this.filterArgs):this.refreshHints.isFilterExpanding?this.filteredItems=o.call(this,e,this.filterArgs,this.filterCache):this.refreshHints.isFilterUnchanged||(this.filteredItems=n.call(this,e,this.filterArgs))}else this.filteredItems=this.pagesize?e:e.concat();let t;return this.pagesize?(this.filteredItems.length<=this.pagenum*this.pagesize&&(this.filteredItems.length===0?this.pagenum=0:this.pagenum=Math.floor((this.filteredItems.length-1)/this.pagesize)),t=this.filteredItems.slice(this.pagesize*this.pagenum,this.pagesize*this.pagenum+this.pagesize)):t=this.filteredItems,{totalRows:this.filteredItems.length,rows:t}}getRowDiffs(e,t){let n,o,r,i=[],a=0,l=Math.max(t.length,e.length);this.refreshHints?.ignoreDiffsBefore&&(a=Math.max(0,Math.min(t.length,this.refreshHints.ignoreDiffsBefore))),this.refreshHints?.ignoreDiffsAfter&&(l=Math.min(t.length,Math.max(0,this.refreshHints.ignoreDiffsAfter)));for(let d=a,u=e.length;d<l;d++)d>=u?i[i.length]=d:(n=t[d],o=e[d],(!n||this.groupingInfos.length&&(r=n.__nonDataRow||o.__nonDataRow)&&n.__group!==o.__group||n.__group&&!n.equals(o)||r&&(n.__groupTotals||o.__groupTotals)||n[this.idProperty]!==o[this.idProperty]||this.updated?.[n[this.idProperty]])&&(i[i.length]=d));return i}recalc(e){this.rowsById=void 0,(this.refreshHints.isFilterNarrowing!==this.prevRefreshHints.isFilterNarrowing||this.refreshHints.isFilterExpanding!==this.prevRefreshHints.isFilterExpanding)&&(this.filterCache=[]);let t=this.getFilteredAndPagedItems(e);this.totalRows=t.totalRows;let n=t.rows;this.groups=[],this.groupingInfos.length&&(this.groups=this.extractGroups(n),this.groups.length&&(n=this.flattenGroupedRows(this.groups)));let o=this.getRowDiffs(this.rows,n);return this.rows=n,o}refresh(){if(this.suspend)return;let e=zn.extend(!0,{},this.getPagingInfo()),t=this.rows.length,n=this.totalRows,o=this.recalc(this.items);this.pagesize&&this.totalRows<this.pagenum*this.pagesize&&(this.pagenum=Math.max(0,Math.ceil(this.totalRows/this.pagesize)-1),o=this.recalc(this.items)),this.updated=null,this.prevRefreshHints=this.refreshHints,this.refreshHints={},n!==this.totalRows&&this.onBeforePagingInfoChanged.notify(e,null,this).getReturnValue()!==!1&&this.onPagingInfoChanged.notify(this.getPagingInfo(),null,this),t!==this.rows.length&&this.onRowCountChanged.notify({previous:t,current:this.rows.length,itemCount:this.items.length,dataView:this,callingOnRowsChanged:o.length>0},null,this),o.length>0&&this.onRowsChanged.notify({rows:o,itemCount:this.items.length,dataView:this,calledOnRowCountChanged:t!==this.rows.length},null,this),(t!==this.rows.length||o.length>0)&&this.onRowsOrCountChanged.notify({rowsDiff:o,previousRowCount:t,currentRowCount:this.rows.length,itemCount:this.items.length,rowCountChanged:t!==this.rows.length,rowsChanged:o.length>0,dataView:this},null,this)}syncGridSelection(e,t,n){this._grid=e;let o;this.selectedRowIds=this.mapRowsToIds(e.getSelectedRows());let r=a=>{a===!1?this.selectedRowIds=[]:this.selectedRowIds.sort().join(",")!==a.sort().join(",")&&(this.selectedRowIds=a)},i=()=>{if((this.selectedRowIds||[]).length>0&&!o){o=!0;let a=this.mapIdsToRows(this.selectedRowIds||[]);if(!t){let l={grid:this._grid,ids:this.mapRowsToIds(a),rows:a,dataView:this};this.preSelectedRowIdsChangeFn(l),this.onSelectedRowIdsChanged.notify(Object.assign(l,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this)}e.setSelectedRows(a),o=!1}};return e.onSelectedRowsChanged.subscribe((a,l)=>{if(!o){let d=this.mapRowsToIds(l.rows),u={grid:this._grid,ids:d,rows:l.rows,added:!0,dataView:this};this.preSelectedRowIdsChangeFn(u),this.onSelectedRowIdsChanged.notify(Object.assign(u,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this)}}),this.preSelectedRowIdsChangeFn=a=>{if(!o){if(o=!0,typeof a.added>"u")r(a.ids);else{let l;if(a.added)n&&e.getOptions().multiSelect?l=(this.selectedRowIds?.filter(d=>this.getRowById(d)===void 0)).concat(a.ids):l=a.ids;else if(n&&e.getOptions().multiSelect){let d=new Set(a.ids);l=this.selectedRowIds?.filter(u=>!d.has(u))}else l=[];r(l)}o=!1}},this.onRowsOrCountChanged.subscribe(i.bind(this)),this.onSelectedRowIdsChanged}getAllSelectedIds(){return this.selectedRowIds}getAllSelectedFilteredIds(){return this.getAllSelectedFilteredItems().map(e=>e[this.idProperty])}setSelectedIds(e,t){let n=t?.isRowBeingAdded,o=t?.shouldTriggerEvent,r=t?.applyRowSelectionToGrid;n!==!1&&(n=!0);let i=this.mapIdsToRows(e),a={grid:this._grid,ids:e,rows:i,added:n,dataView:this};this.preSelectedRowIdsChangeFn?.(a),o!==!1&&this.onSelectedRowIdsChanged.notify(Object.assign(a,{selectedRowIds:this.selectedRowIds,filteredIds:this.getAllSelectedFilteredIds()}),new Od,this),r!==!1&&this._grid&&this._grid.setSelectedRows(i)}getAllSelectedItems(){let e=[];return this.getAllSelectedIds().forEach(t=>{e.push(this.getItemById(t))}),e}getAllSelectedFilteredItems(){if(!Array.isArray(this.selectedRowIds))return[];let e=new Set(this.selectedRowIds);return this.filteredItems.filter(t=>e.has(t[this.idProperty]))||[]}syncGridCellCssStyles(e,t){let n,o,r=a=>{n={},typeof a=="object"&&Object.keys(a).forEach(l=>{if(a){let d=this.rows[l][this.idProperty];n[d]=a[l]}})};r(e.getCellCssStyles(t));let i=()=>{if(typeof n=="object"){o=!0,this.ensureRowsByIdCache();let a={};Object.keys(n).forEach(l=>{let d=this.rowsById?.[l];zn.isDefined(d)&&(a[d]=n[l])}),e.setCellCssStyles(t,a),o=!1}};e.onCellCssStylesChanged.subscribe((a,l)=>{o||t===l.key&&(l.hash?r(l.hash):(e.onCellCssStylesChanged.unsubscribe(),this.onRowsOrCountChanged.unsubscribe(i)))}),this.onRowsOrCountChanged.subscribe(i.bind(this))}},Al=Br,Md=go,pu=class mu{constructor(t){this.args=t,P(this,"input"),P(this,"defaultValue"),P(this,"navOnLR"),this.init()}init(){this.navOnLR=this.args.grid.getOptions().editorCellNavOnLRKeys,this.input=Md.createDomElement("input",{type:"text",className:"editor-text"},this.args.container),this.input.addEventListener("keydown",this.navOnLR?Rm:Tm),this.input.focus(),this.input.select(),this.args.compositeEditorOptions&&this.input.addEventListener("change",this.onChange.bind(this))}onChange(){let t=this.args.grid.getActiveCell();this.validate().valid&&this.applyValue(this.args.item,this.serializeValue()),this.applyValue(this.args.compositeEditorOptions.formValues,this.serializeValue()),this.args.grid.onCompositeEditorChange.notify({row:t?.row??0,cell:t?.cell??0,item:this.args.item,column:this.args.column,formValues:this.args.compositeEditorOptions.formValues,grid:this.args.grid,editors:this.args.compositeEditorOptions.editors})}destroy(){this.input.removeEventListener("keydown",this.navOnLR?Rm:Tm),this.input.removeEventListener("change",this.onChange.bind(this)),this.input.remove()}focus(){this.input.focus()}getDecimalPlaces(){let t=this.args.column.editorFixedDecimalPlaces;return Md.isDefined(t)||(t=mu.DefaultDecimalPlaces),!t&&t!==0?null:t}loadValue(t){this.defaultValue=t[this.args.column.field];let n=this.getDecimalPlaces();n!==null&&(this.defaultValue||this.defaultValue===0)&&this.defaultValue?.toFixed&&(this.defaultValue=this.defaultValue.toFixed(n)),this.input.value=String(this.defaultValue??""),this.input.defaultValue=String(this.defaultValue??""),this.input.select()}serializeValue(){let t=parseFloat(this.input.value);mu.AllowEmptyValue?!t&&t!==0&&(t=void 0):t=t||0;let n=this.getDecimalPlaces();return n!==null&&(t||t===0)&&t.toFixed&&(t=parseFloat(t.toFixed(n))),t}applyValue(t,n){t[this.args.column.field]=n}isValueChanged(){return!(this.input.value===""&&!Md.isDefined(this.defaultValue))&&this.input.value!==this.defaultValue}validate(){if(isNaN(this.input.value))return{valid:!1,msg:"Please enter a valid number"};if(this.args.column.validator){let t=this.args.column.validator(this.input.value,this.args);if(!t.valid)return t}return{valid:!0,msg:null}}};P(pu,"DefaultDecimalPlaces"),P(pu,"AllowEmptyValue",!1);var xm=pu;function Rm(e){let t=e.selectionStart,n=e.target.value.length;(e.keyCode===Al.LEFT&&t>0||e.keyCode===Al.RIGHT&&t<n-1)&&e.stopImmediatePropagation()}function Tm(e){(e.keyCode===Al.LEFT||e.keyCode===Al.RIGHT)&&e.stopImmediatePropagation()}var NA=Tc,pr=tA,Le=Zr,gi=na,AA=JN,En=Vv,wo=Br,FA=eA,LA=_h,ps=nA,Pr=oA,V=go,Id=rA,km=xh,Em=aA,Pm=lA,$A=class{constructor(e,t,n,o,r){if(this.container=e,this.data=t,this.columns=n,this.externalPubSub=r,P(this,"slickGridVersion","5.15.5"),P(this,"cid",""),P(this,"onActiveCellChanged"),P(this,"onActiveCellPositionChanged"),P(this,"onAddNewRow"),P(this,"onAfterSetColumns"),P(this,"onAutosizeColumns"),P(this,"onBeforeAppendCell"),P(this,"onBeforeCellEditorDestroy"),P(this,"onBeforeColumnsResize"),P(this,"onBeforeDestroy"),P(this,"onBeforeEditCell"),P(this,"onBeforeFooterRowCellDestroy"),P(this,"onBeforeHeaderCellDestroy"),P(this,"onBeforeHeaderRowCellDestroy"),P(this,"onBeforeRemoveCachedRow"),P(this,"onBeforeSetColumns"),P(this,"onBeforeSort"),P(this,"onBeforeUpdateColumns"),P(this,"onCellChange"),P(this,"onCellCssStylesChanged"),P(this,"onClick"),P(this,"onColumnsReordered"),P(this,"onColumnsDrag"),P(this,"onColumnsResized"),P(this,"onColumnsResizeDblClick"),P(this,"onCompositeEditorChange"),P(this,"onContextMenu"),P(this,"onDrag"),P(this,"onDblClick"),P(this,"onDragInit"),P(this,"onDragStart"),P(this,"onDragEnd"),P(this,"onFooterClick"),P(this,"onFooterContextMenu"),P(this,"onFooterRowCellRendered"),P(this,"onHeaderCellRendered"),P(this,"onHeaderClick"),P(this,"onHeaderContextMenu"),P(this,"onHeaderMouseEnter"),P(this,"onHeaderMouseLeave"),P(this,"onHeaderRowCellRendered"),P(this,"onHeaderRowMouseEnter"),P(this,"onHeaderRowMouseLeave"),P(this,"onPreHeaderContextMenu"),P(this,"onPreHeaderClick"),P(this,"onKeyDown"),P(this,"onMouseEnter"),P(this,"onMouseLeave"),P(this,"onRendered"),P(this,"onScroll"),P(this,"onSelectedRowsChanged"),P(this,"onSetOptions"),P(this,"onActivateChangedOptions"),P(this,"onSort"),P(this,"onValidationError"),P(this,"onViewportChanged"),P(this,"scrollbarDimensions"),P(this,"maxSupportedCssHeight"),P(this,"canvas",null),P(this,"canvas_context",null),P(this,"_options"),P(this,"_defaults",{alwaysShowVerticalScroll:!1,alwaysAllowHorizontalScroll:!1,explicitInitialization:!1,rowHeight:25,defaultColumnWidth:80,enableHtmlRendering:!0,enableAddRow:!1,leaveSpaceForNewRows:!1,editable:!1,autoEdit:!0,autoEditNewRow:!0,autoCommitEdit:!1,suppressActiveCellChangeOnEdit:!1,enableCellNavigation:!0,enableColumnReorder:!0,unorderableColumnCssClass:"unorderable",asyncEditorLoading:!1,asyncEditorLoadDelay:100,forceFitColumns:!1,enableAsyncPostRender:!1,asyncPostRenderDelay:50,enableAsyncPostRenderCleanup:!1,asyncPostRenderCleanupDelay:40,auto:!1,nonce:"",editorLock:AA,showColumnHeader:!0,showHeaderRow:!1,headerRowHeight:25,createFooterRow:!1,showFooterRow:!1,footerRowHeight:25,createPreHeaderPanel:!1,createTopHeaderPanel:!1,showPreHeaderPanel:!1,showTopHeaderPanel:!1,preHeaderPanelHeight:25,showTopPanel:!1,topPanelHeight:25,preHeaderPanelWidth:"auto",topHeaderPanelHeight:25,topHeaderPanelWidth:"auto",formatterFactory:null,editorFactory:null,cellFlashingCssClass:"flashing",rowHighlightCssClass:"highlight-animate",rowHighlightDuration:400,selectedCellCssClass:"selected",multiSelect:!0,enableCellRowSpan:!1,enableTextSelectionOnCells:!1,dataItemColumnValueExtractor:null,frozenBottom:!1,frozenColumn:-1,frozenRow:-1,frozenRightViewportMinWidth:100,throwWhenFrozenNotAllViewable:!1,fullWidthRows:!1,multiColumnSort:!1,numberedMultiColumnSort:!1,tristateMultiColumnSort:!1,sortColNumberInSeparateSpan:!1,defaultFormatter:this.defaultFormatter,forceSyncScrolling:!1,addNewRowCssClass:"new-row",preserveCopiedSelectionOnPaste:!1,preventDragFromKeys:["ctrlKey","metaKey"],showCellSelection:!0,viewportClass:void 0,minRowBuffer:3,emulatePagingWhenScrolling:!0,editorCellNavOnLRKeys:!1,enableMouseWheelScrollHandler:!0,doPaging:!0,autosizeColsMode:En.LegacyOff,autosizeColPaddingPx:4,rowTopOffsetRenderType:"top",scrollRenderThrottling:10,autosizeTextAvgToMWidthRatio:.75,viewportSwitchToScrollModeWidthPercent:void 0,viewportMinWidthPx:void 0,viewportMaxWidthPx:void 0,suppressCssChangesOnHiddenInit:!1,ffMaxSupportedCssHeight:6e6,maxSupportedCssHeight:1e9,maxPartialRowSpanRemap:5e3,sanitizer:void 0,logSanitizedHtml:!1,mixinDefaults:!0,shadowRoot:void 0}),P(this,"_columnDefaults",{name:"",headerCssClass:null,defaultSortAsc:!0,focusable:!0,hidden:!1,minWidth:30,maxWidth:void 0,rerenderOnResize:!1,reorderable:!0,resizable:!0,sortable:!1,selectable:!0}),P(this,"_columnAutosizeDefaults",{ignoreHeaderText:!1,colValueArray:void 0,allowAddlPercent:void 0,formatterOverride:void 0,autosizeMode:pr.ContentIntelligent,rowSelectionModeOnInit:void 0,rowSelectionMode:ps.FirstNRows,rowSelectionCount:100,valueFilterMode:Pr.None,widthEvalMode:Id.Auto,sizeToRemaining:void 0,widthPx:void 0,contentSizePx:0,headerWidthPx:0,colDataTypeOf:void 0}),P(this,"_columnResizeTimer"),P(this,"_executionBlockTimer"),P(this,"_flashCellTimer"),P(this,"_highlightRowTimer"),P(this,"th"),P(this,"h"),P(this,"ph"),P(this,"n"),P(this,"cj"),P(this,"page",0),P(this,"offset",0),P(this,"vScrollDir",1),P(this,"_bindingEventService",new NA),P(this,"initialized",!1),P(this,"_container"),P(this,"uid",`slickgrid_${Math.round(1e6*Math.random())}`),P(this,"_focusSink"),P(this,"_focusSink2"),P(this,"_groupHeaders",[]),P(this,"_headerScroller",[]),P(this,"_headers",[]),P(this,"_headerRows"),P(this,"_headerRowScroller"),P(this,"_headerRowSpacerL"),P(this,"_headerRowSpacerR"),P(this,"_footerRow"),P(this,"_footerRowScroller"),P(this,"_footerRowSpacerL"),P(this,"_footerRowSpacerR"),P(this,"_preHeaderPanel"),P(this,"_preHeaderPanelScroller"),P(this,"_preHeaderPanelSpacer"),P(this,"_preHeaderPanelR"),P(this,"_preHeaderPanelScrollerR"),P(this,"_preHeaderPanelSpacerR"),P(this,"_topHeaderPanel"),P(this,"_topHeaderPanelScroller"),P(this,"_topHeaderPanelSpacer"),P(this,"_topPanelScrollers"),P(this,"_topPanels"),P(this,"_viewport"),P(this,"_canvas"),P(this,"_style"),P(this,"_boundAncestors",[]),P(this,"stylesheet"),P(this,"columnCssRulesL"),P(this,"columnCssRulesR"),P(this,"viewportH",0),P(this,"viewportW",0),P(this,"canvasWidth",0),P(this,"canvasWidthL",0),P(this,"canvasWidthR",0),P(this,"headersWidth",0),P(this,"headersWidthL",0),P(this,"headersWidthR",0),P(this,"viewportHasHScroll",!1),P(this,"viewportHasVScroll",!1),P(this,"headerColumnWidthDiff",0),P(this,"headerColumnHeightDiff",0),P(this,"cellWidthDiff",0),P(this,"cellHeightDiff",0),P(this,"absoluteColumnMinWidth"),P(this,"hasFrozenRows",!1),P(this,"frozenRowsHeight",0),P(this,"actualFrozenRow",-1),P(this,"paneTopH",0),P(this,"paneBottomH",0),P(this,"viewportTopH",0),P(this,"viewportBottomH",0),P(this,"topPanelH",0),P(this,"headerRowH",0),P(this,"footerRowH",0),P(this,"tabbingDirection",1),P(this,"_activeCanvasNode"),P(this,"_activeViewportNode"),P(this,"activePosX"),P(this,"activePosY"),P(this,"activeRow"),P(this,"activeCell"),P(this,"activeCellNode",null),P(this,"currentEditor",null),P(this,"serializedEditorValue"),P(this,"editController"),P(this,"_prevDataLength",0),P(this,"_prevInvalidatedRowsCount",0),P(this,"_rowSpanIsCached",!1),P(this,"_colsWithRowSpanCache",{}),P(this,"rowsCache",{}),P(this,"renderedRows",0),P(this,"numVisibleRows",0),P(this,"prevScrollTop",0),P(this,"scrollHeight",0),P(this,"scrollTop",0),P(this,"lastRenderedScrollTop",0),P(this,"lastRenderedScrollLeft",0),P(this,"prevScrollLeft",0),P(this,"scrollLeft",0),P(this,"selectionModel"),P(this,"selectedRows",[]),P(this,"plugins",[]),P(this,"cellCssClasses",{}),P(this,"columnsById",{}),P(this,"sortColumns",[]),P(this,"columnPosLeft",[]),P(this,"columnPosRight",[]),P(this,"pagingActive",!1),P(this,"pagingIsLastPage",!1),P(this,"scrollThrottle"),P(this,"h_editorLoader"),P(this,"h_postrender"),P(this,"h_postrenderCleanup"),P(this,"postProcessedRows",{}),P(this,"postProcessToRow",null),P(this,"postProcessFromRow",null),P(this,"postProcessedCleanupQueue",[]),P(this,"postProcessgroupId",0),P(this,"counter_rows_rendered",0),P(this,"counter_rows_removed",0),P(this,"_paneHeaderL"),P(this,"_paneHeaderR"),P(this,"_paneTopL"),P(this,"_paneTopR"),P(this,"_paneBottomL"),P(this,"_paneBottomR"),P(this,"_headerScrollerL"),P(this,"_headerScrollerR"),P(this,"_headerL"),P(this,"_headerR"),P(this,"_groupHeadersL"),P(this,"_groupHeadersR"),P(this,"_headerRowScrollerL"),P(this,"_headerRowScrollerR"),P(this,"_footerRowScrollerL"),P(this,"_footerRowScrollerR"),P(this,"_headerRowL"),P(this,"_headerRowR"),P(this,"_footerRowL"),P(this,"_footerRowR"),P(this,"_topPanelScrollerL"),P(this,"_topPanelScrollerR"),P(this,"_topPanelL"),P(this,"_topPanelR"),P(this,"_viewportTopL"),P(this,"_viewportTopR"),P(this,"_viewportBottomL"),P(this,"_viewportBottomR"),P(this,"_canvasTopL"),P(this,"_canvasTopR"),P(this,"_canvasBottomL"),P(this,"_canvasBottomR"),P(this,"_viewportScrollContainerX"),P(this,"_viewportScrollContainerY"),P(this,"_headerScrollContainer"),P(this,"_headerRowScrollContainer"),P(this,"_footerRowScrollContainer"),P(this,"cssShow",{position:"absolute",visibility:"hidden",display:"block"}),P(this,"_hiddenParents",[]),P(this,"oldProps",[]),P(this,"enforceFrozenRowHeightRecalc",!1),P(this,"columnResizeDragging",!1),P(this,"slickDraggableInstance",null),P(this,"slickMouseWheelInstances",[]),P(this,"slickResizableInstances",[]),P(this,"sortableSideLeftInstance"),P(this,"sortableSideRightInstance"),P(this,"logMessageCount",0),P(this,"logMessageMaxCount",30),P(this,"_pubSubService"),this._container=typeof this.container=="string"?document.querySelector(this.container):this.container,!this._container)throw new Error(`SlickGrid requires a valid container, ${this.container} does not exist in the DOM.`);this._pubSubService=r,this.onActiveCellChanged=new Le("onActiveCellChanged",r),this.onActiveCellPositionChanged=new Le("onActiveCellPositionChanged",r),this.onAddNewRow=new Le("onAddNewRow",r),this.onAfterSetColumns=new Le("onAfterSetColumns",r),this.onAutosizeColumns=new Le("onAutosizeColumns",r),this.onBeforeAppendCell=new Le("onBeforeAppendCell",r),this.onBeforeCellEditorDestroy=new Le("onBeforeCellEditorDestroy",r),this.onBeforeColumnsResize=new Le("onBeforeColumnsResize",r),this.onBeforeDestroy=new Le("onBeforeDestroy",r),this.onBeforeEditCell=new Le("onBeforeEditCell",r),this.onBeforeFooterRowCellDestroy=new Le("onBeforeFooterRowCellDestroy",r),this.onBeforeHeaderCellDestroy=new Le("onBeforeHeaderCellDestroy",r),this.onBeforeHeaderRowCellDestroy=new Le("onBeforeHeaderRowCellDestroy",r),this.onBeforeRemoveCachedRow=new Le("onRowRemovedFromCache",r),this.onBeforeSetColumns=new Le("onBeforeSetColumns",r),this.onBeforeSort=new Le("onBeforeSort",r),this.onBeforeUpdateColumns=new Le("onBeforeUpdateColumns",r),this.onCellChange=new Le("onCellChange",r),this.onCellCssStylesChanged=new Le("onCellCssStylesChanged",r),this.onClick=new Le("onClick",r),this.onColumnsReordered=new Le("onColumnsReordered",r),this.onColumnsDrag=new Le("onColumnsDrag",r),this.onColumnsResized=new Le("onColumnsResized",r),this.onColumnsResizeDblClick=new Le("onColumnsResizeDblClick",r),this.onCompositeEditorChange=new Le("onCompositeEditorChange",r),this.onContextMenu=new Le("onContextMenu",r),this.onDrag=new Le("onDrag",r),this.onDblClick=new Le("onDblClick",r),this.onDragInit=new Le("onDragInit",r),this.onDragStart=new Le("onDragStart",r),this.onDragEnd=new Le("onDragEnd",r),this.onFooterClick=new Le("onFooterClick",r),this.onFooterContextMenu=new Le("onFooterContextMenu",r),this.onFooterRowCellRendered=new Le("onFooterRowCellRendered",r),this.onHeaderCellRendered=new Le("onHeaderCellRendered",r),this.onHeaderClick=new Le("onHeaderClick",r),this.onHeaderContextMenu=new Le("onHeaderContextMenu",r),this.onHeaderMouseEnter=new Le("onHeaderMouseEnter",r),this.onHeaderMouseLeave=new Le("onHeaderMouseLeave",r),this.onHeaderRowCellRendered=new Le("onHeaderRowCellRendered",r),this.onHeaderRowMouseEnter=new Le("onHeaderRowMouseEnter",r),this.onHeaderRowMouseLeave=new Le("onHeaderRowMouseLeave",r),this.onPreHeaderClick=new Le("onPreHeaderClick",r),this.onPreHeaderContextMenu=new Le("onPreHeaderContextMenu",r),this.onKeyDown=new Le("onKeyDown",r),this.onMouseEnter=new Le("onMouseEnter",r),this.onMouseLeave=new Le("onMouseLeave",r),this.onRendered=new Le("onRendered",r),this.onScroll=new Le("onScroll",r),this.onSelectedRowsChanged=new Le("onSelectedRowsChanged",r),this.onSetOptions=new Le("onSetOptions",r),this.onActivateChangedOptions=new Le("onActivateChangedOptions",r),this.onSort=new Le("onSort",r),this.onValidationError=new Le("onValidationError",r),this.onViewportChanged=new Le("onViewportChanged",r),this.initialize(o)}init(){this.finishInitialization()}initialize(e){if(e?.mixinDefaults?(this._options||(this._options=e),V.applyDefaults(this._options,this._defaults)):this._options=V.extend(!0,{},this._defaults,e),this.scrollThrottle=this.actionThrottle(this.render.bind(this),this._options.scrollRenderThrottling),this.maxSupportedCssHeight=this.maxSupportedCssHeight||this.getMaxSupportedCssHeight(),this.validateAndEnforceOptions(),this._columnDefaults.width=this._options.defaultColumnWidth,this._options.suppressCssChangesOnHiddenInit||this.cacheCssForHiddenInit(),this.updateColumnProps(),this._options.enableColumnReorder&&(!Sortable||!Sortable.create))throw new Error("SlickGrid requires Sortable.js module to be loaded");this.editController={commitCurrentEdit:this.commitCurrentEdit.bind(this),cancelCurrentEdit:this.cancelCurrentEdit.bind(this)},V.emptyElement(this._container),this._container.style.outline=String(0),this._container.classList.add(this.uid),this._container.classList.add("ui-widget"),this._container.setAttribute("role","grid");let t=window.getComputedStyle(this._container);/relative|absolute|fixed/.test(t.position)||(this._container.style.position="relative"),this._focusSink=V.createDomElement("div",{tabIndex:0,style:{position:"fixed",width:"0px",height:"0px",top:"0px",left:"0px",outline:"0px"}},this._container),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller=V.createDomElement("div",{className:"slick-topheader-panel slick-state-default",style:{overflow:"hidden",position:"relative"}},this._container),this._topHeaderPanelScroller.appendChild(document.createElement("div")),this._topHeaderPanel=V.createDomElement("div",null,this._topHeaderPanelScroller),this._topHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._topHeaderPanelScroller),this._options.showTopHeaderPanel||V.hide(this._topHeaderPanelScroller)),this._paneHeaderL=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-left",tabIndex:0},this._container),this._paneHeaderR=V.createDomElement("div",{className:"slick-pane slick-pane-header slick-pane-right",tabIndex:0},this._container),this._paneTopL=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-left",tabIndex:0},this._container),this._paneTopR=V.createDomElement("div",{className:"slick-pane slick-pane-top slick-pane-right",tabIndex:0},this._container),this._paneBottomL=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-left",tabIndex:0},this._container),this._paneBottomR=V.createDomElement("div",{className:"slick-pane slick-pane-bottom slick-pane-right",tabIndex:0},this._container),this._options.createPreHeaderPanel&&(this._preHeaderPanelScroller=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderL),this._preHeaderPanelScroller.appendChild(document.createElement("div")),this._preHeaderPanel=V.createDomElement("div",null,this._preHeaderPanelScroller),this._preHeaderPanelSpacer=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScroller),this._preHeaderPanelScrollerR=V.createDomElement("div",{className:"slick-preheader-panel ui-state-default slick-state-default",style:{overflow:"hidden",position:"relative"}},this._paneHeaderR),this._preHeaderPanelR=V.createDomElement("div",null,this._preHeaderPanelScrollerR),this._preHeaderPanelSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._preHeaderPanelScrollerR),this._options.showPreHeaderPanel||(V.hide(this._preHeaderPanelScroller),V.hide(this._preHeaderPanelScrollerR))),this._headerScrollerL=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-left"},this._paneHeaderL),this._headerScrollerR=V.createDomElement("div",{className:"slick-header ui-state-default slick-state-default slick-header-right"},this._paneHeaderR),this._headerScroller.push(this._headerScrollerL),this._headerScroller.push(this._headerScrollerR),this._headerL=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-left",role:"row",style:{left:"-1000px"}},this._headerScrollerL),this._headerR=V.createDomElement("div",{className:"slick-header-columns slick-header-columns-right",role:"row",style:{left:"-1000px"}},this._headerScrollerR),this._headers=[this._headerL,this._headerR],this._headerRowScrollerL=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopL),this._headerRowScrollerR=V.createDomElement("div",{className:"slick-headerrow ui-state-default slick-state-default"},this._paneTopR),this._headerRowScroller=[this._headerRowScrollerL,this._headerRowScrollerR],this._headerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerL),this._headerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._headerRowScrollerR),this._headerRowL=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-left"},this._headerRowScrollerL),this._headerRowR=V.createDomElement("div",{className:"slick-headerrow-columns slick-headerrow-columns-right"},this._headerRowScrollerR),this._headerRows=[this._headerRowL,this._headerRowR],this._topPanelScrollerL=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopL),this._topPanelScrollerR=V.createDomElement("div",{className:"slick-top-panel-scroller ui-state-default slick-state-default"},this._paneTopR),this._topPanelScrollers=[this._topPanelScrollerL,this._topPanelScrollerR],this._topPanelL=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerL),this._topPanelR=V.createDomElement("div",{className:"slick-top-panel",style:{width:"10000px"}},this._topPanelScrollerR),this._topPanels=[this._topPanelL,this._topPanelR],this._options.showColumnHeader||this._headerScroller.forEach(o=>{V.hide(o)}),this._options.showTopPanel||this._topPanelScrollers.forEach(o=>{V.hide(o)}),this._options.showHeaderRow||this._headerRowScroller.forEach(o=>{V.hide(o)}),this._viewportTopL=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-left",tabIndex:0},this._paneTopL),this._viewportTopR=V.createDomElement("div",{className:"slick-viewport slick-viewport-top slick-viewport-right",tabIndex:0},this._paneTopR),this._viewportBottomL=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-left",tabIndex:0},this._paneBottomL),this._viewportBottomR=V.createDomElement("div",{className:"slick-viewport slick-viewport-bottom slick-viewport-right",tabIndex:0},this._paneBottomR),this._viewport=[this._viewportTopL,this._viewportTopR,this._viewportBottomL,this._viewportBottomR],this._options.viewportClass&&this._viewport.forEach(o=>{o.classList.add(...V.classNameToList(this._options.viewportClass))}),this._activeViewportNode=this._viewportTopL,this._canvasTopL=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-left",tabIndex:0},this._viewportTopL),this._canvasTopR=V.createDomElement("div",{className:"grid-canvas grid-canvas-top grid-canvas-right",tabIndex:0},this._viewportTopR),this._canvasBottomL=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-left",tabIndex:0},this._viewportBottomL),this._canvasBottomR=V.createDomElement("div",{className:"grid-canvas grid-canvas-bottom grid-canvas-right",tabIndex:0},this._viewportBottomR),this._canvas=[this._canvasTopL,this._canvasTopR,this._canvasBottomL,this._canvasBottomR],this.scrollbarDimensions=this.scrollbarDimensions||this.measureScrollbar();let n=this.getCanvasWidth()+this.scrollbarDimensions.width;this._activeCanvasNode=this._canvasTopL,this._topHeaderPanelSpacer&&V.width(this._topHeaderPanelSpacer,n),this._preHeaderPanelSpacer&&V.width(this._preHeaderPanelSpacer,n),this._headers.forEach(o=>{V.width(o,this.getHeadersWidth())}),V.width(this._headerRowSpacerL,n),V.width(this._headerRowSpacerR,n),this._options.createFooterRow&&(this._footerRowScrollerR=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopR),this._footerRowScrollerL=V.createDomElement("div",{className:"slick-footerrow ui-state-default slick-state-default"},this._paneTopL),this._footerRowScroller=[this._footerRowScrollerL,this._footerRowScrollerR],this._footerRowSpacerL=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerL),V.width(this._footerRowSpacerL,n),this._footerRowSpacerR=V.createDomElement("div",{style:{display:"block",height:"1px",position:"absolute",top:"0px",left:"0px"}},this._footerRowScrollerR),V.width(this._footerRowSpacerR,n),this._footerRowL=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-left"},this._footerRowScrollerL),this._footerRowR=V.createDomElement("div",{className:"slick-footerrow-columns slick-footerrow-columns-right"},this._footerRowScrollerR),this._footerRow=[this._footerRowL,this._footerRowR],this._options.showFooterRow||this._footerRowScroller.forEach(o=>{V.hide(o)})),this._focusSink2=this._focusSink.cloneNode(!0),this._container.appendChild(this._focusSink2),this._options.explicitInitialization||this.finishInitialization()}finishInitialization(){this.initialized||(this.initialized=!0,this.getViewportWidth(),this.getViewportHeight(),this.measureCellPaddingAndBorder(),this.disableSelection(this._headers),this._options.enableTextSelectionOnCells||this._viewport.forEach(e=>{this._bindingEventService.bind(e,"selectstart",t=>{t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement})}),this.setFrozenOptions(),this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setScroller(),this.setOverflow(),this.updateColumnCaches(),this.createColumnHeaders(),this.createColumnFooter(),this.setupColumnSort(),this.createCssRules(),this.resizeCanvas(),this.bindAncestorScrollEvents(),this._bindingEventService.bind(this._container,"resize",this.resizeCanvas.bind(this)),this._viewport.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleScroll.bind(this))}),this._options.enableMouseWheelScrollHandler&&this._viewport.forEach(e=>{this.slickMouseWheelInstances.push(Em({element:e,onMouseWheel:this.handleMouseWheel.bind(this)}))}),this._headerScroller.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleHeaderContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleHeaderClick.bind(this))}),this._headerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleHeaderRowScroll.bind(this))}),this._options.createFooterRow&&(this._footerRow.forEach(e=>{this._bindingEventService.bind(e,"contextmenu",this.handleFooterContextMenu.bind(this)),this._bindingEventService.bind(e,"click",this.handleFooterClick.bind(this))}),this._footerRowScroller.forEach(e=>{this._bindingEventService.bind(e,"scroll",this.handleFooterRowScroll.bind(this))})),this._options.createTopHeaderPanel&&this._bindingEventService.bind(this._topHeaderPanelScroller,"scroll",this.handleTopHeaderPanelScroll.bind(this)),this._options.createPreHeaderPanel&&(this._bindingEventService.bind(this._preHeaderPanelScroller,"scroll",this.handlePreHeaderPanelScroll.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"contextmenu",this.handlePreHeaderContextMenu.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScroller,"click",this.handlePreHeaderClick.bind(this)),this._bindingEventService.bind(this._preHeaderPanelScrollerR,"click",this.handlePreHeaderClick.bind(this))),this._bindingEventService.bind(this._focusSink,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(this._focusSink2,"keydown",this.handleKeyDown.bind(this)),this._canvas.forEach(e=>{this._bindingEventService.bind(e,"keydown",this.handleKeyDown.bind(this)),this._bindingEventService.bind(e,"click",this.handleClick.bind(this)),this._bindingEventService.bind(e,"dblclick",this.handleDblClick.bind(this)),this._bindingEventService.bind(e,"contextmenu",this.handleContextMenu.bind(this)),this._bindingEventService.bind(e,"mouseover",this.handleCellMouseOver.bind(this)),this._bindingEventService.bind(e,"mouseout",this.handleCellMouseOut.bind(this))}),km&&(this.slickDraggableInstance=km({containerElement:this._container,allowDragFrom:"div.slick-cell",allowDragFromClosest:"div.slick-cell.dnd, div.slick-cell.cell-reorder",preventDragFromKeys:this._options.preventDragFromKeys,onDragInit:this.handleDragInit.bind(this),onDragStart:this.handleDragStart.bind(this),onDrag:this.handleDrag.bind(this),onDragEnd:this.handleDragEnd.bind(this)})),this._options.suppressCssChangesOnHiddenInit||this.restoreCssFromHiddenInit())}cacheCssForHiddenInit(){this._hiddenParents=V.parents(this._container,":hidden"),this.oldProps=[],this._hiddenParents.forEach(e=>{let t={};Object.keys(this.cssShow).forEach(n=>{this.cssShow&&(t[n]=e.style[n],e.style[n]=this.cssShow[n])}),this.oldProps.push(t)})}restoreCssFromHiddenInit(){let e=0;this._hiddenParents&&(this._hiddenParents.forEach(t=>{let n=this.oldProps[e++];Object.keys(this.cssShow).forEach(o=>{this.cssShow&&(t.style[o]=n[o])})}),this._hiddenParents=[])}registerPlugin(e){this.plugins.unshift(e),e.init(this)}unregisterPlugin(e){for(let t=this.plugins.length;t>=0;t--)if(this.plugins[t]===e){this.plugins[t]?.destroy(),this.plugins.splice(t,1);break}}destroy(e){this._bindingEventService.unbindAll(),this.slickDraggableInstance=this.destroyAllInstances(this.slickDraggableInstance),this.slickMouseWheelInstances=this.destroyAllInstances(this.slickMouseWheelInstances),this.slickResizableInstances=this.destroyAllInstances(this.slickResizableInstances),this.getEditorLock()?.cancelCurrentEdit(),this.trigger(this.onBeforeDestroy,{});let t=this.plugins.length;for(;t--;)this.unregisterPlugin(this.plugins[t]);this._options.enableColumnReorder&&typeof this.sortableSideLeftInstance?.destroy=="function"&&(this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy()),this.unbindAncestorScrollEvents(),this._bindingEventService.unbindByEventName(this._container,"resize"),this.removeCssRules(),this._canvas.forEach(r=>{this._bindingEventService.unbindByEventName(r,"keydown"),this._bindingEventService.unbindByEventName(r,"click"),this._bindingEventService.unbindByEventName(r,"dblclick"),this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"mouseover"),this._bindingEventService.unbindByEventName(r,"mouseout")}),this._viewport.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._headerScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._headerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._footerRow&&this._footerRow.forEach(r=>{this._bindingEventService.unbindByEventName(r,"contextmenu"),this._bindingEventService.unbindByEventName(r,"click")}),this._footerRowScroller&&this._footerRowScroller.forEach(r=>{this._bindingEventService.unbindByEventName(r,"scroll")}),this._preHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._preHeaderPanelScroller,"scroll"),this._topHeaderPanelScroller&&this._bindingEventService.unbindByEventName(this._topHeaderPanelScroller,"scroll"),this._bindingEventService.unbindByEventName(this._focusSink,"keydown"),this._bindingEventService.unbindByEventName(this._focusSink2,"keydown");let n=this._container.querySelectorAll(".slick-resizable-handle");[].forEach.call(n,r=>{this._bindingEventService.unbindByEventName(r,"dblclick")});let o=this._container.querySelectorAll(".slick-header-column");[].forEach.call(o,r=>{this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave"),this._bindingEventService.unbindByEventName(r,"mouseenter"),this._bindingEventService.unbindByEventName(r,"mouseleave")}),V.emptyElement(this._container),this._container.classList.remove(this.uid),this.clearAllTimers(),e&&this.destroyAllElements()}destroyAllInstances(e){if(e){let t=Array.isArray(e)?e:[e],n;for(;V.isDefined(n=t.pop());)n&&typeof n.destroy=="function"&&n.destroy()}return e=Array.isArray(e)?[]:null,e}destroyAllElements(){this._activeCanvasNode=null,this._activeViewportNode=null,this._boundAncestors=null,this._canvas=null,this._canvasTopL=null,this._canvasTopR=null,this._canvasBottomL=null,this._canvasBottomR=null,this._container=null,this._focusSink=null,this._focusSink2=null,this._groupHeaders=null,this._groupHeadersL=null,this._groupHeadersR=null,this._headerL=null,this._headerR=null,this._headers=null,this._headerRows=null,this._headerRowL=null,this._headerRowR=null,this._headerRowSpacerL=null,this._headerRowSpacerR=null,this._headerRowScrollContainer=null,this._headerRowScroller=null,this._headerRowScrollerL=null,this._headerRowScrollerR=null,this._headerScrollContainer=null,this._headerScroller=null,this._headerScrollerL=null,this._headerScrollerR=null,this._hiddenParents=null,this._footerRow=null,this._footerRowL=null,this._footerRowR=null,this._footerRowSpacerL=null,this._footerRowSpacerR=null,this._footerRowScroller=null,this._footerRowScrollerL=null,this._footerRowScrollerR=null,this._footerRowScrollContainer=null,this._preHeaderPanel=null,this._preHeaderPanelR=null,this._preHeaderPanelScroller=null,this._preHeaderPanelScrollerR=null,this._preHeaderPanelSpacer=null,this._preHeaderPanelSpacerR=null,this._topPanels=null,this._topPanelScrollers=null,this._style=null,this._topPanelScrollerL=null,this._topPanelScrollerR=null,this._topPanelL=null,this._topPanelR=null,this._paneHeaderL=null,this._paneHeaderR=null,this._paneTopL=null,this._paneTopR=null,this._paneBottomL=null,this._paneBottomR=null,this._viewport=null,this._viewportTopL=null,this._viewportTopR=null,this._viewportBottomL=null,this._viewportBottomR=null,this._viewportScrollContainerX=null,this._viewportScrollContainerY=null}getOptions(){return this._options}setOptions(e,t,n,o){this.prepareForOptionsChange(),this._options.enableAddRow!==e.enableAddRow&&this.invalidateRow(this.getDataLength()),e.frozenColumn!==void 0&&e.frozenColumn>=0&&(this.getViewports().forEach(i=>i.scrollLeft=0),this.handleScroll());let r=V.extend(!0,{},this._options);this._options=V.extend(this._options,e),this.trigger(this.onSetOptions,{optionsBefore:r,optionsAfter:this._options}),this.internal_setOptions(t,n,o)}activateChangedOptions(e,t,n){this.prepareForOptionsChange(),this.invalidateRow(this.getDataLength()),this.trigger(this.onActivateChangedOptions,{options:this._options}),this.internal_setOptions(e,t,n)}prepareForOptionsChange(){this.getEditorLock().commitCurrentEdit()&&this.makeActiveCellNormal()}internal_setOptions(e,t,n){this._options.showColumnHeader!==void 0&&this.setColumnHeaderVisibility(this._options.showColumnHeader),this.validateAndEnforceOptions(),this.setFrozenOptions(),this._options.frozenBottom!==void 0&&(this.enforceFrozenRowHeightRecalc=!0),this._viewport.forEach(o=>{o.style.overflowY=this._options.autoHeight?"hidden":"auto"}),e||this.render(),this.setScroller(),n||this.setOverflow(),t||this.setColumns(this.columns),this._options.enableMouseWheelScrollHandler&&this._viewport&&(!this.slickMouseWheelInstances||this.slickMouseWheelInstances.length===0)?this._viewport.forEach(o=>{this.slickMouseWheelInstances.push(Em({element:o,onMouseWheel:this.handleMouseWheel.bind(this)}))}):this._options.enableMouseWheelScrollHandler===!1&&this.destroyAllInstances(this.slickMouseWheelInstances)}validateAndEnforceOptions(){this._options.autoHeight&&(this._options.leaveSpaceForNewRows=!1),this._options.forceFitColumns&&(this._options.autosizeColsMode=En.LegacyForceFit)}setSelectionModel(e){this.selectionModel&&(this.selectionModel.onSelectedRangesChanged.unsubscribe(this.handleSelectedRangesChanged.bind(this)),this.selectionModel.destroy&&this.selectionModel.destroy()),this.selectionModel=e,this.selectionModel&&(this.selectionModel.init(this),this.selectionModel.onSelectedRangesChanged.subscribe(this.handleSelectedRangesChanged.bind(this)))}getSelectionModel(){return this.selectionModel}setPaneFrozenClasses(){let e=this.hasFrozenColumns()?"add":"remove";for(let t of[this._paneHeaderL,this._paneTopL,this._paneBottomL])t.classList[e]("frozen")}hasFrozenColumns(){return this._options.frozenColumn>-1}updateColumnHeader(e,t,n){if(this.initialized){let o=this.getColumnIndex(e);if(!V.isDefined(o))return;let r=this.columns[o],i=this.getColumnByIndex(o);i&&(t!==void 0&&(this.columns[o].name=t),n!==void 0&&(this.columns[o].toolTip=n),this.trigger(this.onBeforeHeaderCellDestroy,{node:i,column:r,grid:this}),i.setAttribute("title",n||""),t!==void 0&&this.applyHtmlCode(i.children[0],t),this.trigger(this.onHeaderCellRendered,{node:i,column:r,grid:this}))}}getHeader(e){if(!e)return this.hasFrozenColumns()?this._headers:this._headerL;let t=this.getColumnIndex(e.id);return this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL}getHeaderColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n=this.hasFrozenColumns()?t<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?t<=this._options.frozenColumn?t:t-this._options.frozenColumn-1:t;return n.children[o]}getHeaderRow(){return this.hasFrozenColumns()?this._headerRows:this._headerRows[0]}getFooterRow(){return this.hasFrozenColumns()?this._footerRow:this._footerRow[0]}getHeaderRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._headerRowL:(n=this._headerRowR,t-=this._options.frozenColumn+1):n=this._headerRowL,n.children[t]}getFooterRowColumn(e){let t=typeof e=="number"?e:this.getColumnIndex(e),n;return this.hasFrozenColumns()?t<=this._options.frozenColumn?n=this._footerRowL:(n=this._footerRowR,t-=this._options.frozenColumn+1):n=this._footerRowL,n.children[t]}createColumnFooter(){if(this._options.createFooterRow){this._footerRow.forEach(e=>{e.querySelectorAll(".slick-footerrow-column").forEach(t=>{let n=V.storage.get(t,"column");this.trigger(this.onBeforeFooterRowCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._footerRowL),V.emptyElement(this._footerRowR);for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(!t||t.hidden)continue;let n=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},this.hasFrozenColumns()&&e>this._options.frozenColumn?this._footerRowR:this._footerRowL),o=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;o&&n.classList.add(o),V.storage.put(n,"column",t),this.trigger(this.onFooterRowCellRendered,{node:n,column:t,grid:this})}}}setupColumnSort(){this._headers.forEach(e=>{this._bindingEventService.bind(e,"click",t=>{if(this.columnResizeDragging||t.target.classList.contains("slick-resizable-handle"))return;let n=t.target.closest(".slick-header-column");if(!n)return;let o=V.storage.get(n,"column");if(o.sortable){if(!this.getEditorLock()?.commitCurrentEdit())return;let r=this.sortColumns.slice(),i=null,a=0;for(;a<this.sortColumns.length;a++)if(this.sortColumns[a].columnId===o.id){i=this.sortColumns[a],i.sortAsc=!i.sortAsc;break}let l=!!i;this._options.tristateMultiColumnSort?(i||(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o}),l&&i.sortAsc&&(this.sortColumns.splice(a,1),i=null),this._options.multiColumnSort||(this.sortColumns=[]),i&&(!l||!this._options.multiColumnSort)&&this.sortColumns.push(i)):t.metaKey&&this._options.multiColumnSort?i&&this.sortColumns.splice(a,1):((!t.shiftKey&&!t.metaKey||!this._options.multiColumnSort)&&(this.sortColumns=[]),i?this.sortColumns.length===0&&this.sortColumns.push(i):(i={columnId:o.id,sortAsc:o.defaultSortAsc,sortCol:o},this.sortColumns.push(i)));let d;this._options.multiColumnSort?d={multiColumnSort:!0,previousSortColumns:r,sortCols:this.sortColumns.map(u=>{let f=this.columns[this.getColumnIndex(u.columnId)];return!f||f.hidden?null:{columnId:f.id,sortCol:f,sortAsc:u.sortAsc}}).filter(u=>u)}:d={multiColumnSort:!1,previousSortColumns:r,columnId:this.sortColumns.length>0?o.id:null,sortCol:this.sortColumns.length>0?o:null,sortAsc:this.sortColumns.length>0?this.sortColumns[0].sortAsc:!0},this.trigger(this.onBeforeSort,d,t).getReturnValue()!==!1&&(this.setSortColumns(this.sortColumns),this.trigger(this.onSort,d,t))}})})}createColumnHeaders(){this._headers.forEach(e=>{e.querySelectorAll(".slick-header-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderCellDestroy,{node:t,column:n,grid:this})})}),V.emptyElement(this._headerL),V.emptyElement(this._headerR),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this._headerRows.forEach(e=>{e.querySelectorAll(".slick-headerrow-column").forEach(t=>{let n=V.storage.get(t,"column");n&&this.trigger(this.onBeforeHeaderRowCellDestroy,{node:this,column:n,grid:this})})}),V.emptyElement(this._headerRowL),V.emptyElement(this._headerRowR),this._options.createFooterRow&&(this._footerRowL.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowL),this.hasFrozenColumns()&&(this._footerRowR.querySelectorAll(".slick-footerrow-column").forEach(e=>{let t=V.storage.get(e,"column");t&&this.trigger(this.onBeforeFooterRowCellDestroy,{node:this,column:t,grid:this})}),V.emptyElement(this._footerRowR)));for(let e=0;e<this.columns.length;e++){let t=this.columns[e];if(t.hidden)continue;let n=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerL:this._headerR:this._headerL,o=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._headerRowL:this._headerRowR:this._headerRowL,r=V.createDomElement("div",{id:`${this.uid+t.id}`,dataset:{id:String(t.id)},role:"columnheader",className:"ui-state-default slick-state-default slick-header-column"},n);t.toolTip&&(r.title=t.toolTip),t.reorderable||r.classList.add(this._options.unorderableColumnCssClass);let i=V.createDomElement("span",{className:"slick-column-name"},r);this.applyHtmlCode(i,t.name),V.width(r,t.width-this.headerColumnWidthDiff);let a=t.headerCssClass||null;if(a&&r.classList.add(...V.classNameToList(a)),a=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null,a&&r.classList.add(a),this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseEnter.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseLeave.bind(this)),V.storage.put(r,"column",t),(this._options.enableColumnReorder||t.sortable)&&(this._bindingEventService.bind(r,"mouseenter",this.handleHeaderMouseHoverOn.bind(this)),this._bindingEventService.bind(r,"mouseleave",this.handleHeaderMouseHoverOff.bind(this))),t.hasOwnProperty("headerCellAttrs")&&t.headerCellAttrs instanceof Object&&Object.keys(t.headerCellAttrs).forEach(l=>{t.headerCellAttrs.hasOwnProperty(l)&&r.setAttribute(l,t.headerCellAttrs[l])}),t.sortable&&(r.classList.add("slick-header-sortable"),V.createDomElement("div",{className:`slick-sort-indicator ${this._options.numberedMultiColumnSort&&!this._options.sortColNumberInSeparateSpan?" slick-sort-indicator-numbered":""}`},r),this._options.numberedMultiColumnSort&&this._options.sortColNumberInSeparateSpan&&V.createDomElement("div",{className:"slick-sort-indicator-numbered"},r)),this.trigger(this.onHeaderCellRendered,{node:r,column:t,grid:this}),this._options.showHeaderRow){let l=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-headerrow-column l${e} r${e}`},o),d=this.hasFrozenColumns()&&e<=this._options.frozenColumn?"frozen":null;d&&l.classList.add(d),this._bindingEventService.bind(l,"mouseenter",this.handleHeaderRowMouseEnter.bind(this)),this._bindingEventService.bind(l,"mouseleave",this.handleHeaderRowMouseLeave.bind(this)),V.storage.put(l,"column",t),this.trigger(this.onHeaderRowCellRendered,{node:l,column:t,grid:this})}if(this._options.createFooterRow&&this._options.showFooterRow){let l=this.hasFrozenColumns()?e<=this._options.frozenColumn?this._footerRow[0]:this._footerRow[1]:this._footerRow[0],d=V.createDomElement("div",{className:`ui-state-default slick-state-default slick-footerrow-column l${e} r${e}`},l);V.storage.put(d,"column",t),this.trigger(this.onFooterRowCellRendered,{node:d,column:t,grid:this})}}this.setSortColumns(this.sortColumns),this.setupColumnResize(),this._options.enableColumnReorder&&(typeof this._options.enableColumnReorder=="function"?this._options.enableColumnReorder(this,this._headers,this.headerColumnWidthDiff,this.setColumns,this.setupColumnResize,this.columns,this.getColumnIndex,this.uid,this.trigger):this.setupColumnReorder())}setupColumnReorder(){this.sortableSideLeftInstance?.destroy(),this.sortableSideRightInstance?.destroy();let e=null,t=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft+10,n=()=>this._viewportScrollContainerX.scrollLeft=this._viewportScrollContainerX.scrollLeft-10,o=!1,r={animation:50,direction:"horizontal",chosenClass:"slick-header-column-active",ghostClass:"slick-sortable-placeholder",draggable:".slick-header-column",dragoverBubble:!1,revertClone:!0,scroll:!this.hasFrozenColumns(),filter:`.${this._options.unorderableColumnCssClass}`,onMove:i=>!i.related.classList.contains(this._options.unorderableColumnCssClass),onStart:i=>{i.item.classList.add("slick-header-column-active"),o=!this.hasFrozenColumns()||V.offset(i.item).left>V.offset(this._viewportScrollContainerX).left,o&&i.originalEvent.pageX>this._container.clientWidth?e||(e=window.setInterval(t,100)):o&&i.originalEvent.pageX<V.offset(this._viewportScrollContainerX).left?e||(e=window.setInterval(n,100)):(window.clearInterval(e),e=null)},onEnd:i=>{if(i.item.classList.remove("slick-header-column-active"),window.clearInterval(e),e=null,!this.getEditorLock()?.commitCurrentEdit())return;let a=this.sortableSideLeftInstance?.toArray()??[];a=a.concat(this.sortableSideRightInstance?.toArray()??[]);let l=[];for(let d=0;d<a.length;d++)l.push(this.columns[this.getColumnIndex(a[d])]);this.setColumns(l),this.trigger(this.onColumnsReordered,{impactedColumns:this.columns}),i.stopPropagation(),this.setupColumnResize(),this.activeCellNode&&this.setFocus()}};this.sortableSideLeftInstance=Sortable.create(this._headerL,r),this.sortableSideRightInstance=Sortable.create(this._headerR,r)}getHeaderChildren(){let e=Array.from(this._headers[0].children),t=Array.from(this._headers[1].children);return e.concat(t)}handleResizeableDoubleClick(e){let t=e.target.parentElement.id.replace(this.uid,"");this.trigger(this.onColumnsResizeDblClick,{triggeredByColumn:t})}setupColumnResize(){if(typeof Pm>"u")throw new Error('Slick.Resizable is undefined, make sure to import "slick.interactions.js"');let e,t,n,o,r,i,a,l=-1,d=0,u=this.getHeaderChildren(),f=this.getVisibleColumns();for(let p=0;p<u.length;p++)u[p].querySelectorAll(".slick-resizable-handle").forEach(y=>y.remove()),!(p>=f.length||!f[p])&&f[p].resizable&&(a===void 0&&(a=p),l=p);if(a!==void 0)for(let p=0;p<u.length;p++){let y=u[p];if(p>=f.length||!f[p]||p<a||this._options.forceFitColumns&&p>=l)continue;let w=V.createDomElement("div",{className:"slick-resizable-handle",role:"separator",ariaOrientation:"horizontal"},y);this._bindingEventService.bind(w,"dblclick",this.handleResizeableDoubleClick.bind(this)),this.slickResizableInstances.push(Pm({resizeableElement:y,resizeableHandleElement:w,onResizeStart:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;if(!this.getEditorLock()?.commitCurrentEdit())return!1;o=v.pageX,d=0,m.resizeableElement.classList.add("slick-header-column-active");let D=null,k=null;for(let C=0;C<u.length;C++)C>=f.length||!f[C]||(f[C].previousWidth=u[C].offsetWidth);if(this._options.forceFitColumns)for(D=0,k=0,e=p+1;e<f.length;e++)n=f[e],n?.resizable&&(k!==null&&(n.maxWidth?k+=n.maxWidth-(n.previousWidth||0):k=null),D+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));let x=0,S=0;for(e=0;e<=p;e++)n=f[e],n?.resizable&&(S!==null&&(n.maxWidth?S+=n.maxWidth-(n.previousWidth||0):S=null),x+=(n.previousWidth||0)-Math.max(n.minWidth||0,this.absoluteColumnMinWidth));D===null&&(D=1e5),x===null&&(x=1e5),k===null&&(k=1e5),S===null&&(S=1e5),i=o+Math.min(D,S),r=o-Math.min(x,k)},onResize:(b,m)=>{let v=b.touches?b.changedTouches[0]:b;this.columnResizeDragging=!0;let D,k=Math.min(i,Math.max(r,v.pageX))-o,x,S=0,C=0,O=this.getViewportInnerWidth();if(k<0){for(x=k,e=p;e>=0;e--)n=f[e],n?.resizable&&!n.hidden&&(D=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<D?(x+=(n.previousWidth||0)-D,n.width=D):(n.width=(n.previousWidth||0)+x,x=0));for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x?(x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth):(n.width=(n.previousWidth||0)+x,x=0))}else{for(x=k,S=0,C=0,e=p;e>=0;e--)if(n=f[e],!(!n||n.hidden)&&n.resizable)if(x&&n.maxWidth&&n.maxWidth-(n.previousWidth||0)<x)x-=n.maxWidth-(n.previousWidth||0),n.width=n.maxWidth;else{let I=(n.previousWidth||0)+x,F=this.canvasWidthL+x;this.hasFrozenColumns()&&e<=this._options.frozenColumn?(I>d&&F<O-this._options.frozenRightViewportMinWidth&&(d=I),n.width=F+this._options.frozenRightViewportMinWidth>O?d:I):n.width=I,x=0}for(t=0;t<=p;t++)n=f[t],!(!n||n.hidden)&&(this.hasFrozenColumns()&&t>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);if(this._options.forceFitColumns)for(x=-k,e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&n.resizable&&(D=Math.max(n.minWidth||0,this.absoluteColumnMinWidth),x&&(n.previousWidth||0)+x<D?(x+=(n.previousWidth||0)-D,n.width=D):(n.width=(n.previousWidth||0)+x,x=0),this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0);else for(e=p+1;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(this.hasFrozenColumns()&&e>this._options.frozenColumn?C+=n.width||0:S+=n.width||0)}this.hasFrozenColumns()&&S!==this.canvasWidthL&&(V.width(this._headerL,S+1e3),V.setStyleSize(this._paneHeaderR,"left",S)),this.applyColumnHeaderWidths(),this._options.syncColumnCellResize&&this.applyColumnWidths(),this.trigger(this.onColumnsDrag,{triggeredByColumn:m.resizeableElement,resizeHandle:m.resizeableHandleElement})},onResizeEnd:(b,m)=>{m.resizeableElement.classList.remove("slick-header-column-active");let v=m.resizeableElement.id.replace(this.uid,"");this.trigger(this.onBeforeColumnsResize,{triggeredByColumn:v}).getReturnValue()===!0&&this.applyColumnHeaderWidths();let D;for(e=0;e<f.length;e++)n=f[e],!(!n||n.hidden)&&(D=u[e].offsetWidth,n.previousWidth!==D&&n.rerenderOnResize&&this.invalidateAllRows());this.updateCanvasWidth(!0),this.render(),this.trigger(this.onColumnsResized,{triggeredByColumn:v}),window.clearTimeout(this._columnResizeTimer),this._columnResizeTimer=window.setTimeout(()=>{this.columnResizeDragging=!1},300)}}))}}setFrozenOptions(){if(this._options.frozenColumn=this._options.frozenColumn>=0&&this._options.frozenColumn<this.columns.length?parseInt(this._options.frozenColumn,10):-1,this._options.frozenRow>-1){this.hasFrozenRows=!0,this.frozenRowsHeight=this._options.frozenRow*this._options.rowHeight;let e=this.getDataLength();this.actualFrozenRow=this._options.frozenBottom?e-this._options.frozenRow:this._options.frozenRow}else this.hasFrozenRows=!1}autosizeColumn(e,t){let n=null,o=-1;if(typeof e=="number")n=this.columns[e],o=e;else if(typeof e=="string")for(let i=0;i<this.columns.length;i++)this.columns[i].id===e&&(n=this.columns[i],o=i);if(!n)return;let r=this.getCanvasNode(0,0);this.getColAutosizeWidth(n,o,r,t||!1,o)}treatAsLocked(e={}){return!e.ignoreHeaderText&&!e.sizeToRemaining&&e.contentSizePx===e.headerWidthPx&&(e.widthPx??0)<100}autosizeColumns(e,t){let n=!this._hiddenParents?.length;n&&this.cacheCssForHiddenInit(),this.internalAutosizeColumns(e,t),n&&this.restoreCssFromHiddenInit()}internalAutosizeColumns(e,t){if(e=e||this._options.autosizeColsMode,e===En.LegacyForceFit||e===En.LegacyOff){this.legacyAutosizeColumns();return}if(e===En.None)return;this.canvas=document.createElement("canvas"),this.canvas?.getContext&&(this.canvas_context=this.canvas.getContext("2d"));let n=this.getCanvasNode(0,0),o=this.getViewportInnerWidth(),r,i,a,l=!1,d=0,u=0,f=0,p=0,y=0;for(r=0;r<this.columns.length;r++)i=this.columns[r],this.getColAutosizeWidth(i,r,n,t||!1,r),y+=i.autoSize?.autosizeMode===pr.Locked?i.width||0:this.treatAsLocked(i.autoSize)&&i.autoSize?.widthPx||0,p+=i.autoSize?.autosizeMode===pr.Locked?i.width||0:this.treatAsLocked(i.autoSize)?i.autoSize?.widthPx||0:i.minWidth||0,d+=i.autoSize?.widthPx||0,u+=i.autoSize?.sizeToRemaining?0:i.autoSize?.widthPx||0,f+=i.autoSize?.sizeToRemaining&&i.minWidth||0;let w=d-u;if(e===En.FitViewportToCols){let b=d+(this.scrollbarDimensions?.width??0);e=En.IgnoreViewport,this._options.viewportMaxWidthPx&&b>this._options.viewportMaxWidthPx?(b=this._options.viewportMaxWidthPx,e=En.FitColsToViewport):this._options.viewportMinWidthPx&&b<this._options.viewportMinWidthPx&&(b=this._options.viewportMinWidthPx,e=En.FitColsToViewport),V.width(this._container,b)}if(e===En.FitColsToViewport)if(w>0&&u<o-f)for(r=0;r<this.columns.length;r++){if(i=this.columns[r],!i||i.hidden)continue;let b=o-u;i.autoSize?.sizeToRemaining?a=b*(i.autoSize?.widthPx||0)/w:a=i.autoSize?.widthPx||0,i.rerenderOnResize&&(i.width||0)!==a&&(l=!0),i.width=a}else if(this._options.viewportSwitchToScrollModeWidthPercent&&u+f>o*this._options.viewportSwitchToScrollModeWidthPercent/100||p>o)e=En.IgnoreViewport;else{let b=u-y,m=o-y-f;for(r=0;r<this.columns.length;r++)i=this.columns[r],!(!i||i.hidden)&&(a=i.width||0,i.autoSize?.autosizeMode!==pr.Locked&&!this.treatAsLocked(i.autoSize)&&(i.autoSize?.sizeToRemaining?a=i.minWidth||0:(a=m/b*(i.autoSize?.widthPx||0)-1,a<(i.minWidth||0)&&(a=i.minWidth||0),b-=i.autoSize?.widthPx||0,m-=a)),this.treatAsLocked(i.autoSize)&&(a=i.autoSize?.widthPx||0,a<(i.minWidth||0)&&(a=i.minWidth||0)),i.rerenderOnResize&&i.width!==a&&(l=!0),i.width=a)}if(e===En.IgnoreViewport)for(r=0;r<this.columns.length;r++)!this.columns[r]||this.columns[r].hidden||(a=this.columns[r].autoSize?.widthPx||0,this.columns[r].rerenderOnResize&&this.columns[r].width!==a&&(l=!0),this.columns[r].width=a);this.reRenderColumns(l)}getColAutosizeWidth(e,t,n,o,r){let i=e.autoSize;if(i.widthPx=e.width,i.autosizeMode===pr.Locked||i.autosizeMode===pr.Guide)return;let a=this.getDataLength(),l=new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z/);if(i.autosizeMode===pr.ContentIntelligent){let f=i.colDataTypeOf,p;if(a>0){let y=this.getDataItem(0);y&&(p=y[e.field],l.test(p)&&(p=Date.parse(p)),f=typeof p,f==="object"&&(p instanceof Date&&(f="date"),typeof moment<"u"&&p instanceof moment&&(f="moment")))}f==="boolean"&&(i.colValueArray=[!0,!1]),f==="number"&&(i.valueFilterMode=Pr.GetGreatestAndSub,i.rowSelectionMode=ps.AllRows),f==="string"&&(i.valueFilterMode=Pr.GetLongestText,i.rowSelectionMode=ps.AllRows,i.allowAddlPercent=5),f==="date"&&(i.colValueArray=[new Date(2009,8,30,12,20,20)]),f==="moment"&&typeof moment<"u"&&(i.colValueArray=[moment([2009,8,30,12,20,20])])}let d=i.contentSizePx=this.getColContentSize(e,t,n,o,r);d===0&&(d=i.widthPx||0);let u=i.allowAddlPercent?1+i.allowAddlPercent/100:1;d=d*u+(this._options.autosizeColPaddingPx||0),e.minWidth&&d<e.minWidth&&(d=e.minWidth),e.maxWidth&&d>e.maxWidth&&(d=e.maxWidth),(i.autosizeMode===pr.ContentExpandOnly||e?.editor?.ControlFillsColumn)&&d<(e.width||0)&&(d=e.width||0),i.widthPx=d}getColContentSize(e,t,n,o,r){let i=e.autoSize,a=1,l,d,u=0,f=0;if(i.headerWidthPx=0,i.ignoreHeaderText||(i.headerWidthPx=this.getColHeaderWidth(e)),i.headerWidthPx===0&&(i.headerWidthPx=e.width?e.width:e.maxWidth?e.maxWidth:e.minWidth?e.minWidth:20),i.colValueArray)return f=this.getColWidth(e,n,i.colValueArray),Math.max(i.headerWidthPx,f);let p={};p.colIndex=t,p.rowCount=this.getDataLength(),p.startIndex=0,p.endIndex=p.rowCount-1,p.valueArr=null,p.getRowVal=w=>this.getDataItem(w)[e.field];let y=(o?i.rowSelectionModeOnInit:void 0)||i.rowSelectionMode;if(y===ps.FirstRow&&(p.endIndex=0),y===ps.LastRow&&(p.endIndex=p.startIndex=p.rowCount-1),y===ps.FirstNRows&&(p.endIndex=Math.min(i.rowSelectionCount||0,p.rowCount)-1),i.valueFilterMode===Pr.DeDuplicate){let w={};for(l=p.startIndex;l<=p.endIndex;l++)w[p.getRowVal(l)]=!0;if(Object.keys)p.valueArr=Object.keys(w);else{p.valueArr=[];for(let b in w)w&&p.valueArr.push(b)}p.startIndex=0,p.endIndex=p.length-1}if(i.valueFilterMode===Pr.GetGreatestAndSub){let w,b=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),Math.abs(d)>b&&(w=d,b=Math.abs(d));w=""+w,w=Array(w.length+1).join("9"),w=+w,p.valueArr=[w],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Pr.GetLongestTextAndSub){for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length);d=Array(u+1).join("m"),a=this._options.autosizeTextAvgToMWidthRatio||0,p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}if(i.valueFilterMode===Pr.GetLongestText){u=0;let w=0;for(l=p.startIndex;l<=p.endIndex;l++)d=p.getRowVal(l),(d||"").length>u&&(u=d.length,w=l);d=p.getRowVal(w),p.maxLen=u,p.valueArr=[d],p.startIndex=p.endIndex=0}return p.maxLen&&p.maxLen>30&&r>1&&(i.sizeToRemaining=!0),f=this.getColWidth(e,n,p)*a,Math.max(i.headerWidthPx,f)}getColWidth(e,t,n){let o=V.createDomElement("div",{className:"slick-row ui-widget-content"},t),r=V.createDomElement("div",{className:"slick-cell"},o);r.style.position="absolute",r.style.visibility="hidden",r.style.textOverflow="initial",r.style.whiteSpace="nowrap";let i,a,l=0,d="",u,f,p=e.autoSize.widthEvalMode===Id.TextOnly;if(e.autoSize?.widthEvalMode===Id.Auto){let y=!e.formatterOverride&&!e.formatter,w=e?.formatterOverride?.ReturnsTextOnly||!e.formatterOverride&&e.formatter?.ReturnsTextOnly;p=y||w}if(this.canvas_context&&p){let y=getComputedStyle(r);for(this.canvas_context.font=y.fontSize+" "+y.fontFamily,i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,a=u?this.canvas_context.measureText(u).width:0,a>l&&(l=a,d=u);return r.textContent=d,a=r.offsetWidth,o.remove(),a}for(i=n.startIndex;i<=n.endIndex;i++)f=n.valueArr?n.valueArr[i]:n.getRowVal(i),e.formatterOverride?u=e.formatterOverride(i,n.colIndex,f,e,this.getDataItem(i),this):e.formatter?u=e.formatter(i,n.colIndex,f,e,this.getDataItem(i),this):u=""+f,this.applyFormatResultToCellNode(u,r),a=r.offsetWidth,a>l&&(l=a);return o.remove(),l}getColHeaderWidth(e){let t=0,n=this.getUID()+e.id,o=document.getElementById(n),r=`${n}_`,i=o.cloneNode(!0);if(o)i.id=r,i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",o.parentNode.insertBefore(i,o),t=i.offsetWidth,i.parentNode.removeChild(i);else{let a=this.getHeader(e);o=V.createDomElement("div",{id:r,className:"ui-state-default slick-state-default slick-header-column"},a);let l=V.createDomElement("span",{className:"slick-column-name"},o);this.applyHtmlCode(l,e.name),i.style.cssText="position: absolute; visibility: hidden;right: auto;text-overflow: initial;white-space: nowrap;",e.headerCssClass&&o.classList.add(...V.classNameToList(e.headerCssClass)),t=o.offsetWidth,a.removeChild(o)}return t}legacyAutosizeColumns(){let e,t,n=0,o=0,r=0,i=[],a=this.getViewportInnerWidth();for(e=0;e<this.columns.length;e++){if(t=this.columns[e],!t||t.hidden){i.push(0);continue}i.push(t.width||0),o+=t.width||0,t.resizable&&(n+=(t.width||0)-Math.max(t.minWidth||0,this.absoluteColumnMinWidth))}for(r=o;o>a&&n;){let d=(o-a)/n;for(e=0;e<this.columns.length&&o>a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e];if(!t.resizable||u<=t.minWidth||u<=this.absoluteColumnMinWidth)continue;let f=Math.max(t.minWidth,this.absoluteColumnMinWidth),p=Math.floor(d*(u-f))||1;p=Math.min(p,u-f),o-=p,n-=p,i[e]-=p}if(r<=o)break;r=o}for(r=o;o<a;){let d=a/o;for(e=0;e<this.columns.length&&o<a;e++){if(t=this.columns[e],!t||t.hidden)continue;let u=i[e],f;!t.resizable||t.maxWidth<=u?f=0:f=Math.min(Math.floor(d*u)-u,t.maxWidth-u||1e6)||1,o+=f,i[e]+=o<=a?f:0}if(r>=o)break;r=o}let l=!1;for(e=0;e<this.columns.length;e++)!t||t.hidden||(this.columns[e].rerenderOnResize&&this.columns[e].width!==i[e]&&(l=!0),this.columns[e].width=i[e]);this.reRenderColumns(l)}reRenderColumns(e){this.applyColumnHeaderWidths(),this.updateCanvasWidth(!0),this.trigger(this.onAutosizeColumns,{columns:this.columns}),e&&(this.invalidateAllRows(),this.render())}getVisibleColumns(){return this.columns.filter(e=>!e.hidden)}getColumnIndex(e){return this.columnsById[e]}applyColumnHeaderWidths(){if(!this.initialized)return;let e=0,t=this.getVisibleColumns();this._headers.forEach(n=>{for(let o=0;o<n.children.length;o++,e++){let r=n.children[o],i=((t[e]||{}).width||0)-this.headerColumnWidthDiff;V.width(r)!==i&&V.width(r,i)}}),this.updateColumnCaches()}applyColumnWidths(){let e=0,t=0,n;for(let o=0;o<this.columns.length;o++)this.columns[o]?.hidden||(t=this.columns[o].width||0,n=this.getColumnCssRules(o),n.left.style.left=`${e}px`,n.right.style.right=(this._options.frozenColumn!==-1&&o>this._options.frozenColumn?this.canvasWidthR:this.canvasWidthL)-e-t+"px",this._options.frozenColumn!==o&&(e+=this.columns[o].width)),this._options.frozenColumn===o&&(e=0)}setSortColumn(e,t){this.setSortColumns([{columnId:e,sortAsc:t}])}getColumnByIndex(e){let t;return this._headers.every(n=>{let o=n.children.length;return e<o?(t=n.children[e],!1):(e-=o,!0)}),t}setSortColumns(e){this.sortColumns=e;let t=this._options.numberedMultiColumnSort&&this.sortColumns.length>1;this._headers.forEach(o=>{let r=o.querySelectorAll(".slick-header-column-sorted");r.forEach(i=>{i.classList.remove("slick-header-column-sorted")}),r=o.querySelectorAll(".slick-sort-indicator"),r.forEach(i=>{i.classList.remove("slick-sort-indicator-asc"),i.classList.remove("slick-sort-indicator-desc")}),r=o.querySelectorAll(".slick-sort-indicator-numbered"),r.forEach(i=>{i.textContent=""})});let n=1;this.sortColumns.forEach(o=>{V.isDefined(o.sortAsc)||(o.sortAsc=!0);let r=this.getColumnIndex(o.columnId);if(V.isDefined(r)){let i=this.getColumnByIndex(r);if(i){i.classList.add("slick-header-column-sorted");let a=i.querySelector(".slick-sort-indicator");a?.classList.add(o.sortAsc?"slick-sort-indicator-asc":"slick-sort-indicator-desc"),t&&(a=i.querySelector(".slick-sort-indicator-numbered"),a&&(a.textContent=String(n)))}}n++})}getColumns(){return this.columns}getSortColumns(){return this.sortColumns}updateColumnCaches(){this.columnPosLeft=[],this.columnPosRight=[];let e=0;for(let t=0,n=this.columns.length;t<n;t++)!this.columns[t]||this.columns[t].hidden||(this.columnPosLeft[t]=e,this.columnPosRight[t]=e+(this.columns[t].width||0),this._options.frozenColumn===t?e=0:e+=this.columns[t].width||0)}updateColumnProps(){this.columnsById={};for(let e=0;e<this.columns.length;e++){let t=this.columns[e];t.width&&(t.widthRequest=t.width),this._options.mixinDefaults?(V.applyDefaults(t,this._columnDefaults),t.autoSize||(t.autoSize={}),V.applyDefaults(t.autoSize,this._columnAutosizeDefaults)):(t=this.columns[e]=V.extend({},this._columnDefaults,t),t.autoSize=V.extend({},this._columnAutosizeDefaults,t.autoSize)),this.columnsById[t.id]=e,t.minWidth&&(t.width||0)<t.minWidth&&(t.width=t.minWidth),t.maxWidth&&(t.width||0)>t.maxWidth&&(t.width=t.maxWidth)}}setColumns(e){this.trigger(this.onBeforeSetColumns,{previousColumns:this.columns,newColumns:e,grid:this}),this.columns=e,this.updateColumnsInternal(),this.trigger(this.onAfterSetColumns,{newColumns:e,grid:this})}updateColumns(){this.trigger(this.onBeforeUpdateColumns,{columns:this.columns,grid:this}),this.updateColumnsInternal()}updateColumnsInternal(){this.updateColumnProps(),this.updateColumnCaches(),this.initialized&&(this.setPaneFrozenClasses(),this.setPaneVisibility(),this.setOverflow(),this.invalidateAllRows(),this.createColumnHeaders(),this.createColumnFooter(),this.removeCssRules(),this.createCssRules(),this.resizeCanvas(),this.updateCanvasWidth(),this.applyColumnHeaderWidths(),this.applyColumnWidths(),this.handleScroll(),this.getSelectionModel()?.refreshSelections())}getEditorLock(){return this._options.editorLock}getEditController(){return this.editController}setData(e,t){this.data=e,this.invalidateAllRows(),this.updateRowCount(),t&&this.scrollTo(0)}getData(){return this.data}getDataLength(){return this.data.getLength?this.data.getLength():this.data?.length??0}getDataLengthIncludingAddNew(){return this.getDataLength()+(this._options.enableAddRow&&(!this.pagingActive||this.pagingIsLastPage)?1:0)}getDataItem(e){return this.data.getItem?this.data.getItem(e):this.data[e]}hasDataView(){return!Array.isArray(this.data)}getItemMetadaWhenExists(e){return"getItemMetadata"in this.data?this.data.getItemMetadata(e):null}getFormatter(e,t){let n=this.data?.getItemMetadata?.(e);return(n?.columns&&(n.columns[t.id]||n.columns[this.getColumnIndex(t.id)]))?.formatter||n?.formatter||t.formatter||this._options.formatterFactory?.getFormatter(t)||this._options.defaultFormatter}getEditor(e,t){let n=this.columns[t],o=this.getItemMetadaWhenExists(e)?.columns;return o?.[n.id]?.editor!==void 0?o[n.id].editor:o?.[t]?.editor!==void 0?o[t].editor:n.editor||this._options?.editorFactory?.getEditor(n)}getDataItemValueForColumn(e,t){return this._options.dataItemColumnValueExtractor?this._options.dataItemColumnValueExtractor(e,t):e[t.field]}resetActiveCell(){this.setActiveCellInternal(null,!1)}unsetActiveCell(){V.isDefined(this.activeCellNode)&&(this.makeActiveCellNormal(),this.activeCellNode.classList.remove("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(e=>e.classList.remove("active")))}focus(){this.setFocus()}setFocus(){this.tabbingDirection===-1?this._focusSink.focus():this._focusSink2.focus()}setActiveCellInternal(e,t,n,o,r){if(this.unsetActiveCell(),this.activeCellNode=e,V.isDefined(this.activeCellNode)){let i=V.offset(this.activeCellNode),a=Math.floor(V.offset(V.parents(this.activeCellNode,".grid-canvas")[0]).top),l=V.parents(this.activeCellNode,".grid-canvas-bottom").length;this.hasFrozenRows&&l&&(a-=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight);let d=this.getCellFromPoint(i.left,Math.ceil(i.top)-a);this.activeRow=d.row,this.activePosY=d.row,this.activeCell=this.activePosX=this.getCellFromNode(this.activeCellNode),!V.isDefined(t)&&this._options.autoEditNewRow&&(t=this.activeRow===this.getDataLength()||this._options.autoEdit),this._options.showCellSelection&&(document.querySelectorAll(".slick-cell.active").forEach(u=>u.classList.remove("active")),this.activeCellNode.classList.add("active"),this.rowsCache[this.activeRow]?.rowNode?.forEach(u=>u.classList.add("active"))),this._options.editable&&t&&this.isCellPotentiallyEditable(this.activeRow,this.activeCell)&&(this._options.asyncEditorLoading?(window.clearTimeout(this.h_editorLoader),this.h_editorLoader=window.setTimeout(()=>{this.makeActiveCellEditable(void 0,n,r)},this._options.asyncEditorLoadDelay)):this.makeActiveCellEditable(void 0,n,r))}else this.activeRow=this.activeCell=null;o||this.trigger(this.onActiveCellChanged,this.getActiveCell())}isCellPotentiallyEditable(e,t){let n=this.getDataLength();return!(e<n&&!this.getDataItem(e)||this.columns[t].cannotTriggerInsert&&e>=n||!this.columns[t]||this.columns[t].hidden||!this.getEditor(e,t))}makeActiveCellNormal(e=!1){if(this.currentEditor){if(this.trigger(this.onBeforeCellEditorDestroy,{editor:this.currentEditor}),this.currentEditor.destroy(),this.currentEditor=null,this.activeCellNode){let t=this.getDataItem(this.activeRow);if(this.activeCellNode.classList.remove("editable"),this.activeCellNode.classList.remove("invalid"),t){let n=this.columns[this.activeCell],o=this.getFormatter(this.activeRow,n)(this.activeRow,this.activeCell,this.getDataItemValueForColumn(t,n),n,t,this);this.applyFormatResultToCellNode(o,this.activeCellNode),this.invalidatePostProcessingResults(this.activeRow)}e&&this.setFocus()}navigator.userAgent.toLowerCase().match(/msie/)&&this.clearTextSelection(),this.getEditorLock()?.deactivate(this.editController)}}editActiveCell(e,t,n){this.makeActiveCellEditable(e,t,n)}makeActiveCellEditable(e,t,n){if(!this.activeCellNode)return;if(!this._options.editable)throw new Error("SlickGrid makeActiveCellEditable : should never get called when this._options.editable is false");if(window.clearTimeout(this.h_editorLoader),!this.isCellPotentiallyEditable(this.activeRow,this.activeCell))return;let o=this.columns[this.activeCell],r=this.getDataItem(this.activeRow);if(this.trigger(this.onBeforeEditCell,{row:this.activeRow,cell:this.activeCell,item:r,column:o,target:"grid"}).getReturnValue()===!1){this.setFocus();return}this.getEditorLock()?.activate(this.editController),this.activeCellNode.classList.add("editable");let i=e||this.getEditor(this.activeRow,this.activeCell);if(!i||typeof i!="function")return;!e&&!i.suppressClearOnEdit&&V.emptyElement(this.activeCellNode);let a=this.getItemMetadaWhenExists(this.activeRow);a=a?.columns;let l=a&&(a[o.id]||a[this.activeCell]),d={grid:this,gridPosition:this.absBox(this._container),position:this.absBox(this.activeCellNode),container:this.activeCellNode,column:o,columnMetaData:l,item:r||{},event:n,commitChanges:this.commitEditAndSetFocus.bind(this),cancelChanges:this.cancelEditAndSetFocus.bind(this)};this.currentEditor=new i(d),r&&this.currentEditor&&(this.currentEditor.loadValue(r),t&&this.currentEditor?.preClick&&this.currentEditor.preClick()),this.serializedEditorValue=this.currentEditor?.serializeValue(),this.currentEditor?.position&&this.handleActiveCellPositionChange()}commitEditAndSetFocus(){this.getEditorLock()?.commitCurrentEdit()&&(this.setFocus(),this._options.autoEdit&&!this._options.autoCommitEdit&&this.navigateDown())}cancelEditAndSetFocus(){this.getEditorLock()?.cancelCurrentEdit()&&this.setFocus()}commitCurrentEdit(){let e=this,t=e.getDataItem(e.activeRow),n=e.columns[e.activeCell];if(e.currentEditor){if(e.currentEditor.isValueChanged()){let o=e.currentEditor.validate();if(o.valid){let r=e.activeRow,i=e.activeCell,a=e.currentEditor,l=e.currentEditor.serializeValue(),d=e.serializedEditorValue;if(e.activeRow<e.getDataLength()){let u={row:r,cell:i,editor:a,serializedValue:l,prevSerializedValue:d,execute:()=>{a.applyValue(t,l),e.updateRow(r),e.trigger(e.onCellChange,{command:"execute",row:r,cell:i,item:t,column:n})},undo:()=>{a.applyValue(t,d),e.updateRow(r),e.trigger(e.onCellChange,{command:"undo",row:r,cell:i,item:t,column:n})}};e._options.editCommandHandler?(e.makeActiveCellNormal(!0),e._options.editCommandHandler(t,n,u)):(u.execute(),e.makeActiveCellNormal(!0))}else{let u={};e.currentEditor.applyValue(u,e.currentEditor.serializeValue()),e.makeActiveCellNormal(!0),e.trigger(e.onAddNewRow,{item:u,column:n})}return!e.getEditorLock()?.isActive()}else return e.activeCellNode&&(e.activeCellNode.classList.remove("invalid"),V.width(e.activeCellNode),e.activeCellNode.classList.add("invalid")),e.trigger(e.onValidationError,{editor:e.currentEditor,cellNode:e.activeCellNode,validationResults:o,row:e.activeRow,cell:e.activeCell,column:n}),e.currentEditor.focus(),!1}e.makeActiveCellNormal(!0)}return!0}cancelCurrentEdit(){return this.makeActiveCellNormal(),!0}getSelectedRows(){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");return this.selectedRows.slice(0)}setSelectedRows(e,t){if(!this.selectionModel)throw new Error("SlickGrid Selection model is not set");this&&this.getEditorLock&&!this.getEditorLock()?.isActive()&&this.selectionModel.setSelectedRanges(this.rowsToRanges(e),t||"SlickGrid.setSelectedRows")}trigger(e,t,n){let o=n||new gi(n,t),r=t||{};return r.grid=this,e.notify(r,o,this)}handleCellMouseOut(e){this.trigger(this.onMouseLeave,{},e)}handleHeaderMouseHoverOn(e){e?.target.classList.add("ui-state-hover","slick-state-hover")}handleHeaderMouseHoverOff(e){e?.target.classList.remove("ui-state-hover","slick-state-hover")}handleSelectedRangesChanged(e,t){let n=e.getNativeEvent(),o=this.selectedRows.slice(0);this.selectedRows=[];let r={};for(let i=0;i<t.length;i++)for(let a=t[i].fromRow;a<=t[i].toRow;a++){r[a]||(this.selectedRows.push(a),r[a]={});for(let l=t[i].fromCell;l<=t[i].toCell;l++)this.canCellBeSelected(a,l)&&(r[a][this.columns[l].id]=this._options.selectedCellCssClass)}if(this.setCellCssStyles(this._options.selectedCellCssClass||"",r),this.simpleArrayEquals(o,this.selectedRows)){let i=n?.detail?.caller??"click",a=new Set(this.getSelectedRows()),l=new Set(o),d=Array.from(a).filter(f=>!l.has(f)),u=Array.from(l).filter(f=>!a.has(f));this.trigger(this.onSelectedRowsChanged,{rows:this.getSelectedRows(),previousSelectedRows:o,caller:i,changedSelectedRows:d,changedUnselectedRows:u},e)}}handleMouseWheel(e,t,n,o){this.scrollHeight=this._viewportScrollContainerY.scrollHeight,e.shiftKey?this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10:(this.scrollTop=Math.max(0,this._viewportScrollContainerY.scrollTop-o*this._options.rowHeight),this.scrollLeft=this._viewportScrollContainerX.scrollLeft+n*10),this._handleScroll("mousewheel")&&e.stopPropagation()}handleDragInit(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragInit,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDragStart(e,t){let n=this.getCellFromEvent(e);if(!n||!this.cellExists(n.row,n.cell))return!1;let o=this.trigger(this.onDragStart,t,e);return o.isImmediatePropagationStopped()?o.getReturnValue():!1}handleDrag(e,t){return this.trigger(this.onDrag,t,e).getReturnValue()}handleDragEnd(e,t){this.trigger(this.onDragEnd,t,e)}handleKeyDown(e){let t=this.trigger(this.onKeyDown,{row:this.activeRow,cell:this.activeCell},e).isImmediatePropagationStopped();if(!t&&!e.shiftKey&&!e.altKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;e.ctrlKey&&e.key==="Home"?this.navigateTopStart():e.ctrlKey&&e.key==="End"?this.navigateBottomEnd():e.ctrlKey&&e.key==="ArrowUp"?this.navigateTop():e.ctrlKey&&e.key==="ArrowDown"?this.navigateBottom():e.ctrlKey&&e.key==="ArrowLeft"||!e.ctrlKey&&e.key==="Home"?this.navigateRowStart():(e.ctrlKey&&e.key==="ArrowRight"||!e.ctrlKey&&e.key==="End")&&this.navigateRowEnd()}if(!t)if(!e.shiftKey&&!e.altKey&&!e.ctrlKey){if(this._options.editable&&this.currentEditor?.keyCaptureList&&this.currentEditor.keyCaptureList.indexOf(e.which)>-1)return;if(e.which===wo.ESCAPE){if(!this.getEditorLock()?.isActive())return;this.cancelEditAndSetFocus()}else e.which===wo.PAGE_DOWN?(this.navigatePageDown(),t=!0):e.which===wo.PAGE_UP?(this.navigatePageUp(),t=!0):e.which===wo.LEFT?t=this.navigateLeft():e.which===wo.RIGHT?t=this.navigateRight():e.which===wo.UP?t=this.navigateUp():e.which===wo.DOWN?t=this.navigateDown():e.which===wo.TAB?t=this.navigateNext():e.which===wo.ENTER&&(this._options.editable&&(this.currentEditor?this.activeRow===this.getDataLength()?this.navigateDown():this.commitEditAndSetFocus():this.getEditorLock()?.commitCurrentEdit()&&this.makeActiveCellEditable(void 0,void 0,e)),t=!0)}else e.which===wo.TAB&&e.shiftKey&&!e.ctrlKey&&!e.altKey&&(t=this.navigatePrev());if(t){e.stopPropagation(),e.preventDefault();try{e.originalEvent.keyCode=0}catch{}}}handleClick(e){let t=e instanceof gi?e.getNativeEvent():e;if(!this.currentEditor&&(t.target!==document.activeElement||t.target.classList.contains("slick-cell"))){let o=this.getTextSelection();this.setFocus(),this.setTextSelection(o)}let n=this.getCellFromEvent(t);if(!(!n||this.currentEditor!==null&&this.activeRow===n.row&&this.activeCell===n.cell)&&(e=this.trigger(this.onClick,{row:n.row,cell:n.cell},e||t),!e.isImmediatePropagationStopped()&&this.canCellBeActive(n.row,n.cell)&&(!this.getEditorLock()?.isActive()||this.getEditorLock()?.commitCurrentEdit()))){this.scrollRowIntoView(n.row,!1);let o=t.target?.className===FA,r=this.columns[n.cell],i=!!(this._options.editable&&r?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(this.getCellNode(n.row,n.cell),null,o,i,t)}}handleContextMenu(e){let t=e.target.closest(".slick-cell");t&&(this.activeCellNode===t&&this.currentEditor!==null||this.trigger(this.onContextMenu,{},e))}handleDblClick(e){let t=this.getCellFromEvent(e);!t||this.currentEditor!==null&&this.activeRow===t.row&&this.activeCell===t.cell||(this.trigger(this.onDblClick,{row:t.row,cell:t.cell},e),!e.defaultPrevented&&this._options.editable&&this.gotoCell(t.row,t.cell,!0,e))}handleHeaderMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseEnter,{column:t,grid:this},e)}handleHeaderMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-header-column"),"column");t&&this.trigger(this.onHeaderMouseLeave,{column:t,grid:this},e)}handleHeaderRowMouseEnter(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseEnter,{column:t,grid:this},e)}handleHeaderRowMouseLeave(e){let t=V.storage.get(e.target.closest(".slick-headerrow-column"),"column");t&&this.trigger(this.onHeaderRowMouseLeave,{column:t,grid:this},e)}handleHeaderContextMenu(e){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onHeaderContextMenu,{column:n},e)}handleHeaderClick(e){if(!this.columnResizeDragging){let t=e.target.closest(".slick-header-column"),n=t&&V.storage.get(t,"column");n&&this.trigger(this.onHeaderClick,{column:n},e)}}handlePreHeaderContextMenu(e){this.trigger(this.onPreHeaderContextMenu,{node:e.target},e)}handlePreHeaderClick(e){this.columnResizeDragging||this.trigger(this.onPreHeaderClick,{node:e.target},e)}handleFooterContextMenu(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterContextMenu,{column:n},e)}handleFooterClick(e){let t=e.target.closest(".slick-footerrow-column"),n=t&&V.storage.get(t,"column");this.trigger(this.onFooterClick,{column:n},e)}handleCellMouseOver(e){this.trigger(this.onMouseEnter,{},e)}handleActiveCellPositionChange(){if(this.activeCellNode&&(this.trigger(this.onActiveCellPositionChanged,{}),this.currentEditor)){let e=this.getActiveCellPosition();this.currentEditor.show&&this.currentEditor.hide&&(e.visible?this.currentEditor.show():this.currentEditor.hide()),this.currentEditor.position&&this.currentEditor.position(e)}}actionThrottle(e,t){let n=!1,o=!1,r=()=>{n?o=!0:a()},i=()=>{o=!1},a=()=>{n=!0,window.clearTimeout(this._executionBlockTimer),this._executionBlockTimer=window.setTimeout(l,t),e.call(this)},l=()=>{o?(i(),a()):n=!1};return{enqueue:r.bind(this),dequeue:i.bind(this)}}getCellFromEvent(e){let t=e instanceof gi?e.getNativeEvent():e,n=t.touches?t.touches[0]:t,o=t.target.closest(".slick-cell");if(!o)return null;let r=this.getRowFromNode(o.parentNode);if(this.hasFrozenRows){let a=0,l=V.offset(V.parents(o,".grid-canvas")[0]);V.parents(o,".grid-canvas-bottom").length&&(a=this._options.frozenBottom?V.height(this._canvasTopL):this.frozenRowsHeight),r=this.getCellFromPoint(n.clientX-l.left,n.clientY-l.top+a+document.documentElement.scrollTop).row}let i=this.getCellFromNode(o);return!V.isDefined(r)||!V.isDefined(i)?null:{row:r,cell:i}}applyHtmlCode(e,t,n){if(e)if(t instanceof HTMLElement||t instanceof DocumentFragment)n?.emptyTarget!==!1&&V.emptyElement(e),e.appendChild(t);else{if(n?.skipEmptyReassignment!==!1&&!V.isDefined(t)&&!e.innerHTML)return;let o=t;typeof o=="number"||typeof o=="boolean"?e.textContent=o:(o=this.sanitizeHtmlString(t),this._options.enableHtmlRendering&&o?e.innerHTML=o:e.textContent=o)}}getCanvasNode(e,t){return this._getContainerElement(this.getCanvases(),e,t)}getActiveCanvasNode(e){return e===void 0?this._activeCanvasNode:(e instanceof gi&&(e=e.getNativeEvent()),this._activeCanvasNode=e?.target.closest(".grid-canvas"),this._activeCanvasNode)}getCanvases(){return this._canvas}getViewportNode(e,t){return this._getContainerElement(this.getViewports(),e,t)}getViewports(){return this._viewport}getActiveViewportNode(e){return this.setActiveViewportNode(e),this._activeViewportNode}setActiveViewportNode(e){return e instanceof gi&&(e=e.getNativeEvent()),this._activeViewportNode=e?.target.closest(".slick-viewport"),this._activeViewportNode}getHeadersWidth(){this.headersWidth=this.headersWidthL=this.headersWidthR=0;let e=!this._options.autoHeight,t=0,n=this.columns.length;for(t=0;t<n;t++){if(!this.columns[t]||this.columns[t].hidden)continue;let o=this.columns[t].width;this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=o||0:this.headersWidthL+=o||0}return e&&(this._options.frozenColumn>-1&&t>this._options.frozenColumn?this.headersWidthR+=this.scrollbarDimensions?.width??0:this.headersWidthL+=this.scrollbarDimensions?.width??0),this.hasFrozenColumns()?(this.headersWidthL=this.headersWidthL+1e3,this.headersWidthR=Math.max(this.headersWidthR,this.viewportW)+this.headersWidthL,this.headersWidthR+=this.scrollbarDimensions?.width??0):(this.headersWidthL+=this.scrollbarDimensions?.width??0,this.headersWidthL=Math.max(this.headersWidthL,this.viewportW)+1e3),this.headersWidth=this.headersWidthL+this.headersWidthR,Math.max(this.headersWidth,this.viewportW)+1e3}getCanvasWidth(){let e=this.getViewportInnerWidth(),t=this.columns.length;for(this.canvasWidthL=this.canvasWidthR=0;t--;)!this.columns[t]||this.columns[t].hidden||(this.hasFrozenColumns()&&t>this._options.frozenColumn?this.canvasWidthR+=this.columns[t].width||0:this.canvasWidthL+=this.columns[t].width||0);let n=this.canvasWidthL+this.canvasWidthR;if(this._options.fullWidthRows){let o=Math.max(n,e)-n;o>0&&(n+=o,this.hasFrozenColumns()?this.canvasWidthR+=o:this.canvasWidthL+=o)}return n}updateCanvasWidth(e){let t=this.canvasWidth,n=this.canvasWidthL,o=this.canvasWidthR;this.canvasWidth=this.getCanvasWidth(),this._options.createTopHeaderPanel&&V.width(this._topHeaderPanel,this._options.topHeaderPanelWidth??this.canvasWidth);let r=this.canvasWidth!==t||this.canvasWidthL!==n||this.canvasWidthR!==o;if(r||this.hasFrozenColumns()||this.hasFrozenRows)if(V.width(this._canvasTopL,this.canvasWidthL),this.getHeadersWidth(),V.width(this._headerL,this.headersWidthL),V.width(this._headerR,this.headersWidthR),this.hasFrozenColumns()){let i=V.width(this._container)||0;if(i>0&&this.canvasWidthL>i&&this._options.throwWhenFrozenNotAllViewable)throw new Error("[SlickGrid] Frozen columns cannot be wider than the actual grid container width. Make sure to have less columns freezed or make your grid container wider");V.width(this._canvasTopR,this.canvasWidthR),V.width(this._paneHeaderL,this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"left",this.canvasWidthL),V.setStyleSize(this._paneHeaderR,"width",this.viewportW-this.canvasWidthL),V.width(this._paneTopL,this.canvasWidthL),V.setStyleSize(this._paneTopR,"left",this.canvasWidthL),V.width(this._paneTopR,this.viewportW-this.canvasWidthL),V.width(this._headerRowScrollerL,this.canvasWidthL),V.width(this._headerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._headerRowL,this.canvasWidthL),V.width(this._headerRowR,this.canvasWidthR),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,this.canvasWidthL),V.width(this._footerRowScrollerR,this.viewportW-this.canvasWidthL),V.width(this._footerRowL,this.canvasWidthL),V.width(this._footerRowR,this.canvasWidthR)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,this.canvasWidthL),V.width(this._viewportTopR,this.viewportW-this.canvasWidthL),this.hasFrozenRows&&(V.width(this._paneBottomL,this.canvasWidthL),V.setStyleSize(this._paneBottomR,"left",this.canvasWidthL),V.width(this._viewportBottomL,this.canvasWidthL),V.width(this._viewportBottomR,this.viewportW-this.canvasWidthL),V.width(this._canvasBottomL,this.canvasWidthL),V.width(this._canvasBottomR,this.canvasWidthR))}else V.width(this._paneHeaderL,"100%"),V.width(this._paneTopL,"100%"),V.width(this._headerRowScrollerL,"100%"),V.width(this._headerRowL,this.canvasWidth),this._options.createFooterRow&&(V.width(this._footerRowScrollerL,"100%"),V.width(this._footerRowL,this.canvasWidth)),this._options.createPreHeaderPanel&&V.width(this._preHeaderPanel,this._options.preHeaderPanelWidth??this.canvasWidth),V.width(this._viewportTopL,"100%"),this.hasFrozenRows&&(V.width(this._viewportBottomL,"100%"),V.width(this._canvasBottomL,this.canvasWidthL));this.viewportHasHScroll=this.canvasWidth>=this.viewportW-(this.scrollbarDimensions?.width??0),V.width(this._headerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._headerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),this._options.createFooterRow&&(V.width(this._footerRowSpacerL,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0)),V.width(this._footerRowSpacerR,this.canvasWidth+(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0))),(r||e)&&this.applyColumnWidths()}getPreHeaderPanel(){return this._preHeaderPanel}getPreHeaderPanelLeft(){return this._preHeaderPanel}getPreHeaderPanelRight(){return this._preHeaderPanelR}getTopHeaderPanel(){return this._topHeaderPanel}setPaneVisibility(){this.hasFrozenColumns()?(V.show(this._paneHeaderR),V.show(this._paneTopR),this.hasFrozenRows?(V.show(this._paneBottomL),V.show(this._paneBottomR)):(V.hide(this._paneBottomR),V.hide(this._paneBottomL))):(V.hide(this._paneHeaderR),V.hide(this._paneTopR),V.hide(this._paneBottomR),this.hasFrozenRows?V.show(this._paneBottomL):(V.hide(this._paneBottomR),V.hide(this._paneBottomL)))}setOverflow(){if(this._viewportTopL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportTopR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"scroll":this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"hidden":"auto",this._viewportTopR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?this.hasFrozenRows?"scroll":"auto":this.hasFrozenRows?"scroll":"auto",this._viewportBottomL.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomL.style.overflowY=!this.hasFrozenColumns()&&this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"hidden"):this.hasFrozenRows?"scroll":"auto",this._viewportBottomR.style.overflowX=this.hasFrozenColumns()?this.hasFrozenRows&&!this._options.alwaysAllowHorizontalScroll?"scroll":"auto":(this.hasFrozenRows&&this._options.alwaysAllowHorizontalScroll,"auto"),this._viewportBottomR.style.overflowY=this._options.alwaysShowVerticalScroll?"scroll":this.hasFrozenColumns()?(this.hasFrozenRows,"auto"):(this.hasFrozenRows,"auto"),this._options.viewportClass){let e=V.classNameToList(this._options.viewportClass);this._viewportTopL.classList.add(...e),this._viewportTopR.classList.add(...e),this._viewportBottomL.classList.add(...e),this._viewportBottomR.classList.add(...e)}}createCssRules(){this._style=document.createElement("style"),this._style.nonce=this._options.nonce||"",(this._options.shadowRoot||document.head).appendChild(this._style);let e=this._options.rowHeight-this.cellHeightDiff,t=[`.${this.uid} .slick-group-header-column { left: 1000px; }`,`.${this.uid} .slick-header-column { left: 1000px; }`,`.${this.uid} .slick-top-panel { height: ${this._options.topPanelHeight}px; }`,`.${this.uid} .slick-preheader-panel { height: ${this._options.preHeaderPanelHeight}px; }`,`.${this.uid} .slick-topheader-panel { height: ${this._options.topHeaderPanelHeight}px; }`,`.${this.uid} .slick-headerrow-columns { height: ${this._options.headerRowHeight}px; }`,`.${this.uid} .slick-footerrow-columns { height: ${this._options.footerRowHeight}px; }`,`.${this.uid} .slick-cell { height: ${e}px; }`,`.${this.uid} .slick-row { height: ${this._options.rowHeight}px; }`],n=this._style.sheet;if(n){t.forEach(o=>{n.insertRule(o)});for(let o=0;o<this.columns.length;o++)!this.columns[o]||this.columns[o].hidden||(n.insertRule(`.${this.uid} .l${o} { }`),n.insertRule(`.${this.uid} .r${o} { }`))}else this.createCssRulesAlternative(t)}createCssRulesAlternative(e){let t=document.createElement("template");t.innerHTML='<style type="text/css" rel="stylesheet" />',this._style=t.content.firstChild,(this._options.shadowRoot||document.head).appendChild(this._style);for(let n=0;n<this.columns.length;n++)!this.columns[n]||this.columns[n].hidden||(e.push(`.${this.uid} .l${n} { }`),e.push(`.${this.uid} .r${n} { }`));this._style.styleSheet?this._style.styleSheet.cssText=e.join(" "):this._style.appendChild(document.createTextNode(e.join(" ")))}getColumnCssRules(e){let t;if(!this.stylesheet){let n=(this._options.shadowRoot||document).styleSheets;for(this._options.devMode&&typeof this._options.devMode?.ownerNodeIndex=="number"&&this._options.devMode.ownerNodeIndex>=0&&(n[this._options.devMode.ownerNodeIndex].ownerNode=this._style),t=0;t<n.length;t++)if((n[t].ownerNode||n[t].owningElement)===this._style){this.stylesheet=n[t];break}if(!this.stylesheet)throw new Error("SlickGrid Cannot find stylesheet.");this.columnCssRulesL=[],this.columnCssRulesR=[];let o=this.stylesheet.cssRules||this.stylesheet.rules,r,i;for(t=0;t<o.length;t++){let a=o[t].selectorText;(r=/\.l\d+/.exec(a))?(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesL[i]=o[t]):(r=/\.r\d+/.exec(a))&&(i=parseInt(r[0].substr(2,r[0].length-2),10),this.columnCssRulesR[i]=o[t])}}return{left:this.columnCssRulesL[e],right:this.columnCssRulesR[e]}}removeCssRules(){this._style?.remove(),this.stylesheet=null}getTopPanel(){return this._topPanels[0]}getTopPanels(){return this._topPanels}togglePanelVisibility(e,t,n,o){let r=o!==!1;if(this._options[e]!==n)if(this._options[e]=n,n){if(r){V.slideDown(t,this.resizeCanvas.bind(this));return}V.show(t),this.resizeCanvas()}else{if(r){V.slideUp(t,this.resizeCanvas.bind(this));return}V.hide(t),this.resizeCanvas()}}setTopPanelVisibility(e,t){this.togglePanelVisibility("showTopPanel",this._topPanelScrollers,e,t)}setHeaderRowVisibility(e,t){this.togglePanelVisibility("showHeaderRow",this._headerRowScroller,e,t)}setColumnHeaderVisibility(e,t){this.togglePanelVisibility("showColumnHeader",this._headerScroller,e,t)}setFooterRowVisibility(e,t){this.togglePanelVisibility("showFooterRow",this._footerRowScroller,e,t)}setPreHeaderPanelVisibility(e,t){this.togglePanelVisibility("showPreHeaderPanel",[this._preHeaderPanelScroller,this._preHeaderPanelScrollerR],e,t)}setTopHeaderPanelVisibility(e){this.togglePanelVisibility("showTopHeaderPanel",this._topHeaderPanelScroller,e)}getRowHeight(){return this._options.rowHeight}getRowTop(e){return Math.round(this._options.rowHeight*e-this.offset)}getRowBottom(e){return this.getRowTop(e)+this._options.rowHeight}getRowFromPosition(e){return Math.floor((e+this.offset)/this._options.rowHeight)}appendRowHtml(e,t,n,o,r){let i=this.getDataItem(n),a=n<r&&!i,l="slick-row"+(this.hasFrozenRows&&n<=this._options.frozenRow?" frozen":"")+(a?" loading":"")+(n===this.activeRow&&this._options.showCellSelection?" active":"")+(n%2===1?" odd":" even");i||(l+=` ${this._options.addNewRowCssClass}`);let d=this.getItemMetadaWhenExists(n);d?.cssClasses&&(l+=` ${d.cssClasses}`);let u=V.createDomElement("div",{className:`ui-widget-content ${l}`,role:"row",dataset:{row:`${n}`}}),f=this.getFrozenRowOffset(n),p=this.getRowTop(n)-f;this._options.rowTopOffsetRenderType==="transform"?u.style.transform=`translateY(${p}px)`:u.style.top=`${p}px`;let y;e.push(u),this.hasFrozenColumns()&&(y=u.cloneNode(!0),t.push(y));let w=this.columns.length,b,m,v,D,k=!0;for(let x=0,S=w;x<S;x++){if(k=!0,D=this.columns[x],!D||D.hidden)continue;m=1,v=1,b=null,d?.columns&&(b=d.columns[D.id]||d.columns[x],m=b?.colspan||1,v=b?.rowspan||1,m==="*"&&(m=S-x),v>r-n&&(v=r-n)),!this._options.enableCellRowSpan&&v>1&&console.warn('[SlickGrid] Cell "rowspan" is an opt-in grid option because of its small perf hit, you must enable it via the "enableCellRowSpan" grid option.');let C=m;if(!this.getParentRowSpanByCell(n,x)){if(this.columnPosRight[Math.min(S-1,x+C-1)]>o.leftPx){if(!D.alwaysRenderColumn&&this.columnPosLeft[x]>o.rightPx&&(k=!1),k){let O=this.hasFrozenColumns()&&x>this._options.frozenColumn?y:u;this.appendCellHtml(O,n,x,C,v,b,i)}}else(D.alwaysRenderColumn||this.hasFrozenColumns()&&x<=this._options.frozenColumn)&&this.appendCellHtml(u,n,x,C,v,b,i);C>1&&(x+=C-1)}}}appendCellHtml(e,t,n,o,r,i,a){let l=this.columns[n],d=`slick-cell l${n} r${Math.min(this.columns.length-1,n+o-1)}`+(l.cssClass?` ${l.cssClass}`:"")+(r>1?" rowspan":"")+(i?.cssClass?` ${i.cssClass}`:"");this.hasFrozenColumns()&&n<=this._options.frozenColumn&&(d+=" frozen"),t===this.activeRow&&n===this.activeCell&&this._options.showCellSelection&&(d+=" active"),Object.keys(this.cellCssClasses).forEach(v=>{this.cellCssClasses[v][t]?.[l.id]&&(d+=` ${this.cellCssClasses[v][t][l.id]}`)});let u=null,f="";a&&(u=this.getDataItemValueForColumn(a,l),f=this.getFormatter(t,l)(t,n,u,l,a,this),f==null&&(f=""));let p=this.trigger(this.onBeforeAppendCell,{row:t,cell:n,value:u,dataContext:a}).getReturnValue(),y=typeof p=="string"?p:"";f?.addClasses&&(y+=V.classNameToList((y?" ":"")+f.addClasses).join(" "));let w=f?.toolTip?`${f.toolTip}`:"",b=V.createDomElement("div",{className:V.classNameToList(`${d} ${y||""}`).join(" "),role:"gridcell",tabIndex:-1});b.setAttribute("aria-describedby",this.uid+l.id),w&&b.setAttribute("title",w);let m=this.getCellHeight(t,r);if(r>1&&m!==this._options.rowHeight-this.cellHeightDiff&&(b.style.height=`${m||0}px`),l.hasOwnProperty("cellAttrs")&&l.cellAttrs instanceof Object&&Object.keys(l.cellAttrs).forEach(v=>{l.cellAttrs.hasOwnProperty(v)&&b.setAttribute(v,l.cellAttrs[v])}),a){let v=Object.prototype.toString.call(f)!=="[object Object]"?f:f.html||f.text;this.applyHtmlCode(b,v)}e.appendChild(b),f.insertElementAfterTarget&&V.insertAfterElement(b,f.insertElementAfterTarget),this.rowsCache[t].cellRenderQueue.push(n),this.rowsCache[t].cellColSpans[n]=o}cleanupRows(e){let t=new Set;if(this._options.enableCellRowSpan)for(let n=e.top,o=e.bottom;n<=o;n++){let r=this.getRowSpanIntersect(n);r!==null&&t.add(r)}Object.keys(this.rowsCache).forEach(n=>{if(this.rowsCache){let o=+n,r=!0;this.hasFrozenRows&&(this._options.frozenBottom&&o>=this.actualFrozenRow||!this._options.frozenBottom&&o<=this.actualFrozenRow)&&(r=!1),(o=parseInt(n,10))!==this.activeRow&&(o<e.top||o>e.bottom)&&r&&!t.has(o)&&this.removeRowFromCache(o)}}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidate(){this.updateRowCount(),this.invalidateAllRows(),this.render()}invalidateAllRows(){this.currentEditor&&this.makeActiveCellNormal(),typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(e=>{this.rowsCache&&this.removeRowFromCache(+e)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup()}invalidateRows(e){if(!e||!e.length)return;let t;this.vScrollDir=0;let n=e.length,o=new Set,r=new Set,i=e.length>this._options.maxPartialRowSpanRemap||e.length===this.getDataLength()||this._prevInvalidatedRowsCount+e.length===this.getDataLength();for(let a=0;a<n;a++)if(t=e[a],this.currentEditor&&this.activeRow===t&&this.makeActiveCellNormal(),this.rowsCache[t]&&this.removeRowFromCache(t),this._options.enableCellRowSpan&&!i){o.add(t);let l=this.getRowSpanIntersect(t);l!==null&&o.add(l)}if(this._options.enableCellRowSpan&&!i){for(let a of Array.from(o)){let l=this.getRowSpanColumnIntersects(a);for(let d of l){let u=this.getParentRowSpanByCell(a,d);u&&this._colsWithRowSpanCache[d]&&(this._colsWithRowSpanCache[d].delete(u.range),r.add(u.range.split(":").map(Number)[0]))}}for(let a of Array.from(r))this.remapRowSpanMetadataByRow(a)}this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this._prevInvalidatedRowsCount=e.length}invalidateRow(e){if(e>=0){let t=[e];if(this._options.enableCellRowSpan){let n=this.getRowSpanIntersect(e);n!==null&&t.push(n)}this.invalidateRows(t)}}removeRowFromCache(e){let t=this.rowsCache[e];t?.rowNode&&(this.trigger(this.onBeforeRemoveCachedRow,{row:e}),this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[e]?this.queuePostProcessedRowForCleanup(t,this.postProcessedRows[e],e):t.rowNode?.forEach(n=>n.parentElement?.removeChild(n)),delete this.rowsCache[e],delete this.postProcessedRows[e],this.renderedRows--,this.counter_rows_removed++)}updateCell(e,t){let n=this.getCellNode(e,t);if(!n)return;let o=this.columns[t],r=this.getDataItem(e);if(this.currentEditor&&this.activeRow===e&&this.activeCell===t)this.currentEditor.loadValue(r);else{let i=r?this.getFormatter(e,o)(e,t,this.getDataItemValueForColumn(r,o),o,r,this):"";this.applyFormatResultToCellNode(i,n),this.invalidatePostProcessingResults(e)}}updateRow(e){let t=this.rowsCache[e];if(!t)return;this.ensureCellNodesInRowsCache(e);let n,o=this.getDataItem(e);Object.keys(t.cellNodesByColumnIdx).forEach(r=>{if(!t.cellNodesByColumnIdx.hasOwnProperty(r))return;let i=+r,a=this.columns[i],l=t.cellNodesByColumnIdx[i];e===this.activeRow&&i===this.activeCell&&this.currentEditor?this.currentEditor.loadValue(o):o?(n=this.getFormatter(e,a)(e,i,this.getDataItemValueForColumn(o,a),a,o,this),this.applyFormatResultToCellNode(n,l)):V.emptyElement(l)}),this.invalidatePostProcessingResults(e)}getViewportRowCount(){let e=this.getViewportHeight(),t=this.getScrollbarDimensions()?.height??0;return Math.floor((e-t)/this._options.rowHeight)}getViewportHeight(){if((!this._options.autoHeight||this._options.frozenColumn!==-1)&&(this.topPanelH=this._options.showTopPanel?this._options.topPanelHeight+this.getVBoxDelta(this._topPanelScrollers[0]):0,this.headerRowH=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,this.footerRowH=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0),this._options.autoHeight){let e=this._paneHeaderL.offsetHeight;e+=this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,e+=this._options.showHeaderRow?this._options.headerRowHeight+this.getVBoxDelta(this._headerRowScroller[0]):0,e+=this._options.showFooterRow?this._options.footerRowHeight+this.getVBoxDelta(this._footerRowScroller[0]):0,e+=this.getCanvasWidth()>this.viewportW?this.scrollbarDimensions?.height??0:0,this.viewportH=this._options.rowHeight*this.getDataLengthIncludingAddNew()+(this._options.frozenColumn===-1?e:0)}else{let e=getComputedStyle(this._container),t=e.boxSizing!=="content-box"?this.getVBoxDelta(this._container):0,n=this._options.createTopHeaderPanel&&this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight+this.getVBoxDelta(this._topHeaderPanelScroller):0,o=this._options.createPreHeaderPanel&&this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight+this.getVBoxDelta(this._preHeaderPanelScroller):0,r=this._options.showColumnHeader?V.toFloat(V.height(this._headerScroller[0])):0;this.viewportH=V.toFloat(e.height)-V.toFloat(e.paddingTop)-V.toFloat(e.paddingBottom)-this.topPanelH-n-o-this.headerRowH-r-this.footerRowH-t}return this.numVisibleRows=Math.ceil(this.viewportH/this._options.rowHeight),this.viewportH}getViewportInnerWidth(){return this.viewportHasVScroll?this.viewportW-(this.scrollbarDimensions?.width||0):this.viewportW}getViewportWidth(){return this.viewportW=parseFloat(V.innerSize(this._container,"width"))||this._options.devMode&&this._options.devMode.containerClientWidth||0,this.viewportW}resizeCanvas(){if(!this.initialized)return;if(this.paneTopH=0,this.paneBottomH=0,this.viewportTopH=0,this.viewportBottomH=0,this.getViewportWidth(),this.getViewportHeight(),this.hasFrozenRows?this._options.frozenBottom?(this.paneTopH=this.viewportH-this.frozenRowsHeight-(this.scrollbarDimensions?.height??0),this.paneBottomH=this.frozenRowsHeight+(this.scrollbarDimensions?.height??0)):(this.paneTopH=this.frozenRowsHeight,this.paneBottomH=this.viewportH-this.frozenRowsHeight):this.paneTopH=this.viewportH,this.paneTopH+=this.topPanelH+this.headerRowH+this.footerRowH,this.hasFrozenColumns()&&this._options.autoHeight&&(this.paneTopH+=this.scrollbarDimensions?.height??0),this.viewportTopH=this.paneTopH-this.topPanelH-this.headerRowH-this.footerRowH,this._options.autoHeight){if(this.hasFrozenColumns()){let n=this.paneTopH+this._headerScrollerL.offsetHeight;n+=this.getVBoxDelta(this._container),this._options.showPreHeaderPanel&&(n+=this._options.preHeaderPanelHeight),V.height(this._container,n)}this._paneTopL.style.position="relative"}let e=V.height(this._paneHeaderL);e?e+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0:e=(this._options.showHeaderRow?this._options.headerRowHeight:0)+(this._options.showPreHeaderPanel?this._options.preHeaderPanelHeight:0),V.setStyleSize(this._paneTopL,"top",e||e),V.height(this._paneTopL,this.paneTopH);let t=this._paneTopL.offsetTop+this.paneTopH;if(this._options.autoHeight||V.height(this._viewportTopL,this.viewportTopH),this.hasFrozenColumns()){let n=V.height(this._paneHeaderL);n&&(n+=this._options.showTopHeaderPanel?this._options.topHeaderPanelHeight:0),V.setStyleSize(this._paneTopR,"top",n),V.height(this._paneTopR,this.paneTopH),V.height(this._viewportTopR,this.viewportTopH),this.hasFrozenRows&&(V.setStyleSize(this._paneBottomL,"top",t),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomR,"top",t),V.height(this._paneBottomR,this.paneBottomH),V.height(this._viewportBottomR,this.paneBottomH))}else this.hasFrozenRows&&(V.width(this._paneBottomL,"100%"),V.height(this._paneBottomL,this.paneBottomH),V.setStyleSize(this._paneBottomL,"top",t));this.hasFrozenRows?(V.height(this._viewportBottomL,this.paneBottomH),this._options.frozenBottom?(V.height(this._canvasBottomL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.frozenRowsHeight)):(V.height(this._canvasTopL,this.frozenRowsHeight),this.hasFrozenColumns()&&V.height(this._canvasTopR,this.frozenRowsHeight))):V.height(this._viewportTopR,this.viewportTopH),(!this.scrollbarDimensions||!this.scrollbarDimensions.width)&&(this.scrollbarDimensions=this.measureScrollbar()),this._options.autosizeColsMode===En.LegacyForceFit&&this.autosizeColumns(),this.updateRowCount(),this.handleScroll(),this.lastRenderedScrollLeft=-1,this.render()}updateRowCount(){if(!this.initialized)return;let e=this.getDataLength();e>0&&e!==this._prevDataLength&&(this._rowSpanIsCached=!1),this._options.enableCellRowSpan&&!this._rowSpanIsCached&&this.remapAllColumnsRowSpan(),this._prevDataLength=e;let t=this.getDataLengthIncludingAddNew(),n=0,o=this.hasFrozenRows&&!this._options.frozenBottom?V.height(this._canvasBottomL):V.height(this._canvasTopL);this.hasFrozenRows?n=this.getDataLength()-this._options.frozenRow:n=t+(this._options.leaveSpaceForNewRows?this.numVisibleRows-1:0);let r=V.height(this._viewportScrollContainerY),i=this.viewportHasVScroll;this.viewportHasVScroll=this._options.alwaysShowVerticalScroll||!this._options.autoHeight&&n*this._options.rowHeight>r,this.makeActiveCellNormal();let a=e-1;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(d=>{let u=+d;u>a&&this.removeRowFromCache(u)}),this._options.enableAsyncPostRenderCleanup&&this.startPostProcessingCleanup(),this.activeCellNode&&this.activeRow>a&&this.resetActiveCell(),o=this.h,this._options.autoHeight?this.h=this._options.rowHeight*n:(this.th=Math.max(this._options.rowHeight*n,r-(this.scrollbarDimensions?.height??0)),this.th<this.maxSupportedCssHeight?(this.h=this.ph=this.th,this.n=1,this.cj=0):(this.h=this.maxSupportedCssHeight,this.ph=this.h/100,this.n=Math.floor(this.th/this.ph),this.cj=(this.th-this.h)/(this.n-1))),(this.h!==o||this.enforceFrozenRowHeightRecalc)&&(this.hasFrozenRows&&!this._options.frozenBottom?(V.height(this._canvasBottomL,this.h),this.hasFrozenColumns()&&V.height(this._canvasBottomR,this.h)):(V.height(this._canvasTopL,this.h),V.height(this._canvasTopR,this.h)),this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.enforceFrozenRowHeightRecalc=!1);let l=this.scrollTop+this.offset<=this.th-r;this.th===0||this.scrollTop===0?this.page=this.offset=0:l?this.scrollTo(this.scrollTop+this.offset):this.scrollTo(this.th-r+(this.scrollbarDimensions?.height??0)),this.h!==o&&this._options.autoHeight&&this.resizeCanvas(),this._options.autosizeColsMode===En.LegacyForceFit&&i!==this.viewportHasVScroll&&this.autosizeColumns(),this.updateCanvasWidth(!1)}getViewport(e,t){return this.getVisibleRange(e,t)}getVisibleRange(e,t){return e??(e=this.scrollTop),t??(t=this.scrollLeft),{top:this.getRowFromPosition(e),bottom:this.getRowFromPosition(e+this.viewportH)+1,leftPx:t,rightPx:t+this.viewportW}}getRenderedRange(e,t){let n=this.getVisibleRange(e,t),o=Math.round(this.viewportH/this._options.rowHeight),r=this._options.minRowBuffer;return this.vScrollDir===-1?(n.top-=o,n.bottom+=r):this.vScrollDir===1?(n.top-=r,n.bottom+=o):(n.top-=r,n.bottom+=r),n.top=Math.max(0,n.top),n.bottom=Math.min(this.getDataLengthIncludingAddNew()-1,n.bottom),n.leftPx-=this.viewportW,n.rightPx+=this.viewportW,n.leftPx=Math.max(0,n.leftPx),n.rightPx=Math.min(this.canvasWidth,n.rightPx),n}getRowCache(){return this.rowsCache}ensureCellNodesInRowsCache(e){let t=this.rowsCache[e];if(t?.cellRenderQueue.length&&t.rowNode?.length){let n=t.rowNode,o=Array.from(n[0].children);n.length>1&&(o=o.concat(Array.from(n[1].children)));let r=o.length-1;for(;t.cellRenderQueue.length;){let i=t.cellRenderQueue.pop();t.cellNodesByColumnIdx[i]=o[r--]}}}cleanUpCells(e,t){if(this.hasFrozenRows&&(this._options.frozenBottom&&t>this.actualFrozenRow||t<=this.actualFrozenRow))return;let n=this.rowsCache[t],o=[];Object.keys(n.cellNodesByColumnIdx).forEach(a=>{if(!n.cellNodesByColumnIdx.hasOwnProperty(a))return;let l=+a;if(l<=this._options.frozenColumn||Array.isArray(this.columns)&&this.columns[l]?.alwaysRenderColumn)return;let d=n.cellColSpans[l];(this.columnPosLeft[l]>e.rightPx||this.columnPosRight[Math.min(this.columns.length-1,(l||0)+d-1)]<e.leftPx)&&(t===this.activeRow&&Number(l)===this.activeCell||o.push(l))});let r,i;for(;V.isDefined(r=o.pop());)i=n.cellNodesByColumnIdx[r],this._options.enableAsyncPostRenderCleanup&&this.postProcessedRows[t]?.[r]?this.queuePostProcessedCellForCleanup(i,r,t):i.parentElement?.removeChild(i),delete n.cellColSpans[r],delete n.cellNodesByColumnIdx[r],this.postProcessedRows[t]&&delete this.postProcessedRows[t][r]}cleanUpAndRenderCells(e){let t,n=document.createElement("div"),o=[],r,i,a,l=this.columns.length;for(let f=e.top,p=e.bottom;f<=p;f++){if(t=this.rowsCache[f],!t)continue;this.ensureCellNodesInRowsCache(f),(!this._options.enableCellRowSpan||this.getRowSpanIntersect(f)===null)&&this.cleanUpCells(e,f),r=0;let y=this.getItemMetadaWhenExists(f);y=y?.columns;let w=this.getDataItem(f);for(let b=0,m=l;b<m;b++){if(!this.columns[b]||this.columns[b].hidden)continue;if(this.columnPosLeft[b]>e.rightPx)break;if(V.isDefined(i=t.cellColSpans[b])){b+=i>1?i-1:0;continue}i=1,a=null,y&&(a=y[this.columns[b].id]||y[b],i=a?.colspan??1,i==="*"&&(i=m-b));let v=i;if(!this.getParentRowSpanByCell(f,b)){if(this.columnPosRight[Math.min(m-1,b+v-1)]>e.leftPx){let D=this.getRowspan(f,b);this.appendCellHtml(n,f,b,v,D,a,w),r++}b+=v>1?v-1:0}}r&&o.push(f)}if(!n.children.length)return;let d,u;for(;V.isDefined(d=o.pop());){t=this.rowsCache[d];let f;for(;V.isDefined(f=t.cellRenderQueue.pop());)u=n.lastChild,u&&(this.hasFrozenColumns()&&f>this._options.frozenColumn?t.rowNode[1].appendChild(u):t.rowNode[0].appendChild(u),t.cellNodesByColumnIdx[f]=u)}}renderRows(e){let t=[],n=[],o=[],r=!1,i=this.getDataLength(),a=new Set,l=new Set;for(let u=e.top,f=e.bottom;u<=f;u++)if(!(this.rowsCache[u]||this.hasFrozenRows&&this._options.frozenBottom&&u===this.getDataLength())){if(this.renderedRows++,o.push(u),l.add(u),this.rowsCache[u]=this.createEmptyCachingRow(),this._options.enableCellRowSpan){let p=this.getRowSpanIntersect(u);p!==null&&l.add(p)}this.appendRowHtml(t,n,u,e,i),a.add(u),this.activeCellNode&&this.activeRow===u&&(r=!0),this.counter_rows_rendered++}let d=this.setDifference(l,a);if(d.size>0&&d.forEach(u=>{this.removeRowFromCache(u),o.push(u),this.rowsCache[u]=this.createEmptyCachingRow(),this.appendRowHtml(t,n,u,e,i)}),o.length){let u=document.createElement("div"),f=document.createElement("div");t.forEach(p=>u.appendChild(p)),n.forEach(p=>f.appendChild(p));for(let p=0,y=o.length;p<y;p++)this.hasFrozenRows&&o[p]>=this.actualFrozenRow?this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasBottomL.appendChild(u.firstChild),this._canvasBottomR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasBottomL.appendChild(u.firstChild)):this.hasFrozenColumns()?this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&f.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild,f.firstChild],this._canvasTopL.appendChild(u.firstChild),this._canvasTopR.appendChild(f.firstChild)):this.rowsCache?.hasOwnProperty(o[p])&&u.firstChild&&(this.rowsCache[o[p]].rowNode=[u.firstChild],this._canvasTopL.appendChild(u.firstChild));r&&(this.activeCellNode=this.getCellNode(this.activeRow,this.activeCell))}}updateRowPositions(){for(let e in this.rowsCache)if(this.rowsCache){let t=e?parseInt(e,10):0,n=this.rowsCache[t].rowNode[0];this._options.rowTopOffsetRenderType==="transform"?n.style.transform=`translateY(${this.getRowTop(t)}px)`:n.style.top=`${this.getRowTop(t)}px`}}render(){if(!this.initialized)return;this.scrollThrottle.dequeue();let e=this.getVisibleRange(),t=this.getRenderedRange();if(this.cleanupRows(t),this.lastRenderedScrollLeft!==this.scrollLeft){if(this.hasFrozenRows){let n=V.extend(!0,{},t);this._options.frozenBottom?(n.top=this.actualFrozenRow,n.bottom=this.getDataLength()):(n.top=0,n.bottom=this._options.frozenRow),this.cleanUpAndRenderCells(n)}this.cleanUpAndRenderCells(t)}this.renderRows(t),this.hasFrozenRows&&(this._options.frozenBottom?this.renderRows({top:this.actualFrozenRow,bottom:this.getDataLength()-1,leftPx:t.leftPx,rightPx:t.rightPx}):this.renderRows({top:0,bottom:this._options.frozenRow-1,leftPx:t.leftPx,rightPx:t.rightPx})),this.postProcessFromRow=e.top,this.postProcessToRow=Math.min(this.getDataLengthIncludingAddNew()-1,e.bottom),this.startPostProcessing(),this.lastRenderedScrollTop=this.scrollTop,this.lastRenderedScrollLeft=this.scrollLeft,this.trigger(this.onRendered,{startRow:e.top,endRow:e.bottom,grid:this})}getFrozenRowOffset(e){let t=0;return this.hasFrozenRows?this._options.frozenBottom?e>=this.actualFrozenRow?this.h<this.viewportTopH?t=this.actualFrozenRow*this._options.rowHeight:t=this.h:t=0:e>=this.actualFrozenRow?t=this.frozenRowsHeight:t=0:t=0,t}bindAncestorScrollEvents(){let e=this.hasFrozenRows&&!this._options.frozenBottom?this._canvasBottomL:this._canvasTopL;for(;(e=e.parentNode)!==document.body&&e;)(e===this._viewportTopL||e.scrollWidth!==e.clientWidth||e.scrollHeight!==e.clientHeight)&&(this._boundAncestors.push(e),this._bindingEventService.bind(e,"scroll",this.handleActiveCellPositionChange.bind(this)))}unbindAncestorScrollEvents(){this._boundAncestors.forEach(e=>{this._bindingEventService.unbindByEventName(e,"scroll")}),this._boundAncestors=[]}setScroller(){this.hasFrozenColumns()?(this._headerScrollContainer=this._headerScrollerR,this._headerRowScrollContainer=this._headerRowScrollerR,this._footerRowScrollContainer=this._footerRowScrollerR,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomR,this._viewportScrollContainerY=this._viewportTopR):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomR:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopR):(this._headerScrollContainer=this._headerScrollerL,this._headerRowScrollContainer=this._headerRowScrollerL,this._footerRowScrollContainer=this._footerRowScrollerL,this.hasFrozenRows?this._options.frozenBottom?(this._viewportScrollContainerX=this._viewportBottomL,this._viewportScrollContainerY=this._viewportTopL):this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportBottomL:this._viewportScrollContainerX=this._viewportScrollContainerY=this._viewportTopL)}scrollTo(e){e=Math.max(e,0),e=Math.min(e,(this.th||0)-V.height(this._viewportScrollContainerY)+(this.viewportHasHScroll||this.hasFrozenColumns()?this.scrollbarDimensions?.height??0:0));let t=this.offset;this.offset=Math.round(this.page*(this.cj||0)),this.page=Math.min((this.n||0)-1,Math.floor(e/(this.ph||0)));let n=e-this.offset;if(this.offset!==t){let o=this.getVisibleRange(n);this.cleanupRows(o),this.updateRowPositions()}this.prevScrollTop!==n&&(this.vScrollDir=this.prevScrollTop+t<n+this.offset?1:-1,this.lastRenderedScrollTop=this.scrollTop=this.prevScrollTop=n,this.hasFrozenColumns()&&(this._viewportTopL.scrollTop=n),this.hasFrozenRows&&(this._viewportBottomL.scrollTop=this._viewportBottomR.scrollTop=n),this._viewportScrollContainerY&&(this._viewportScrollContainerY.scrollTop=n),this.trigger(this.onViewportChanged,{}))}handleHeaderRowScroll(){let e=this._headerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handleFooterRowScroll(){let e=this._footerRowScrollContainer.scrollLeft;e!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=e)}handlePreHeaderPanelScroll(){this.handleElementScroll(this._preHeaderPanelScroller)}handleTopHeaderPanelScroll(){this.handleElementScroll(this._topHeaderPanelScroller)}handleElementScroll(e){let t=e.scrollLeft;t!==this._viewportScrollContainerX.scrollLeft&&(this._viewportScrollContainerX.scrollLeft=t)}handleScroll(e){return this.scrollHeight=this._viewportScrollContainerY.scrollHeight,this.scrollTop=this._viewportScrollContainerY.scrollTop,this.scrollLeft=this._viewportScrollContainerX.scrollLeft,this._handleScroll(e?"scroll":"system")}_handleScroll(e="system"){let t=this._viewportScrollContainerY.scrollHeight-this._viewportScrollContainerY.clientHeight,n=this._viewportScrollContainerY.scrollWidth-this._viewportScrollContainerY.clientWidth;t=Math.max(0,t),n=Math.max(0,n),this.scrollTop>t&&(this.scrollTop=t,this.scrollHeight=t),this.scrollLeft>n&&(this.scrollLeft=n);let o=Math.abs(this.scrollTop-this.prevScrollTop),r=Math.abs(this.scrollLeft-this.prevScrollLeft);if(r&&(this.prevScrollLeft=this.scrollLeft,this._viewportScrollContainerX.scrollLeft=this.scrollLeft,this._headerScrollContainer.scrollLeft=this.scrollLeft,this._topPanelScrollers[0].scrollLeft=this.scrollLeft,this._options.createFooterRow&&(this._footerRowScrollContainer.scrollLeft=this.scrollLeft),this._options.createPreHeaderPanel&&(this.hasFrozenColumns()?this._preHeaderPanelScrollerR.scrollLeft=this.scrollLeft:this._preHeaderPanelScroller.scrollLeft=this.scrollLeft),this._options.createTopHeaderPanel&&(this._topHeaderPanelScroller.scrollLeft=this.scrollLeft),this.hasFrozenColumns()?(this.hasFrozenRows&&(this._viewportTopR.scrollLeft=this.scrollLeft),this._headerRowScrollerR.scrollLeft=this.scrollLeft):(this.hasFrozenRows&&(this._viewportTopL.scrollLeft=this.scrollLeft),this._headerRowScrollerL.scrollLeft=this.scrollLeft)),o&&!this._options.autoHeight)if(this.vScrollDir=this.prevScrollTop<this.scrollTop?1:-1,this.prevScrollTop=this.scrollTop,e==="mousewheel"&&(this._viewportScrollContainerY.scrollTop=this.scrollTop),this.hasFrozenColumns()&&(this.hasFrozenRows&&!this._options.frozenBottom?this._viewportBottomL.scrollTop=this.scrollTop:this._viewportTopL.scrollTop=this.scrollTop),o<this.viewportH)this.scrollTo(this.scrollTop+this.offset);else{let i=this.offset;this.h===this.viewportH?this.page=0:this.page=Math.min(this.n-1,Math.floor(this.scrollTop*((this.th-this.viewportH)/(this.h-this.viewportH))*(1/this.ph))),this.offset=Math.round(this.page*this.cj),i!==this.offset&&this.invalidateAllRows()}if(r||o){let i=Math.abs(this.lastRenderedScrollLeft-this.scrollLeft),a=Math.abs(this.lastRenderedScrollTop-this.scrollTop);(i>20||a>20)&&(this._options.forceSyncScrolling||a<this.viewportH&&i<this.viewportW?this.render():this.scrollThrottle.enqueue(),this.trigger(this.onViewportChanged,{}))}return this.trigger(this.onScroll,{triggeredBy:e,scrollHeight:this.scrollHeight,scrollLeft:this.scrollLeft,scrollTop:this.scrollTop}),!!(r||o)}scrollCellIntoView(e,t,n){if(this.scrollRowIntoView(e,n),t<=this._options.frozenColumn)return;let o=this.getColspan(e,t);this.internalScrollColumnIntoView(this.columnPosLeft[t],this.columnPosRight[t+(o>1?o-1:0)])}internalScrollColumnIntoView(e,t){let n=this.scrollLeft+V.width(this._viewportScrollContainerX)-(this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0);e<this.scrollLeft?(this._viewportScrollContainerX.scrollLeft=e,this.handleScroll(),this.render()):t>n&&(this._viewportScrollContainerX.scrollLeft=Math.min(e,t-this._viewportScrollContainerX.clientWidth),this.handleScroll(),this.render())}scrollColumnIntoView(e){this.internalScrollColumnIntoView(this.columnPosLeft[e],this.columnPosRight[e])}updatePagingStatusFromView(e){this.pagingActive=e.pageSize!==0,this.pagingIsLastPage=e.pageNum===e.totalPages-1}getRowSpanColumnIntersects(e){return this.getRowSpanIntersection(e,"columns")}getRowSpanIntersect(e){return this.getRowSpanIntersection(e)}getRowSpanIntersection(e,t){let n=[],o=null;for(let r=0,i=this.columns.length;r<i;r++){let a=this._colsWithRowSpanCache[r];if(a)for(let l of Array.from(a)){let[d,u]=l.split(":").map(Number);if(e>=d&&e<=u)if(t==="columns")n.push(r);else{o=d;break}}}return t==="columns"?n:o}getParentRowSpanByCell(e,t,n=!0){let o=null,r=this._colsWithRowSpanCache[t]||new Set;for(let i of Array.from(r)){let[a,l]=i.split(":").map(Number);if((n?e>a:e>=a)&&e<=l){o={start:a,end:l,range:i};break}}return o}remapAllColumnsRowSpan(){let e=this.getDataLength();if(e>0){this._colsWithRowSpanCache={};for(let t=0;t<e;t++)this.remapRowSpanMetadataByRow(t);this._rowSpanIsCached=!0}}remapRowSpanMetadataByRow(e){let t=this.getItemMetadaWhenExists(e);t?.columns&&Object.keys(t.columns).forEach(n=>{let o=+n,r=t.columns[o],i=+(r?.colspan||1),a=+(r?.rowspan||1);this.remapRowSpanMetadata(e,o,i,a)})}remapRowSpanMetadata(e,t,n,o){var r,i,a;if(o>1){let l=`${e}:${e+o-1}`;if((r=this._colsWithRowSpanCache)[t]??(r[t]=new Set),this._colsWithRowSpanCache[t].add(l),n>1)for(let d=1;d<n;d++)(i=this._colsWithRowSpanCache)[a=t+d]??(i[a]=new Set),this._colsWithRowSpanCache[t+d].add(l)}}createEmptyCachingRow(){return{rowNode:null,cellColSpans:[],cellNodesByColumnIdx:[],cellRenderQueue:[]}}scrollRowIntoView(e,t){if(!this.hasFrozenRows||!this._options.frozenBottom&&e>this.actualFrozenRow-1||this._options.frozenBottom&&e<this.actualFrozenRow-1){let n=V.height(this._viewportScrollContainerY),o=this.hasFrozenRows&&!this._options.frozenBottom?e-this._options.frozenRow:e,r=o*this._options.rowHeight,i=(o+1)*this._options.rowHeight-n+(this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0);(o+1)*this._options.rowHeight>this.scrollTop+n+this.offset?(this.scrollTo(t?r:i),this.render()):o*this._options.rowHeight<this.scrollTop+this.offset&&(this.scrollTo(t?i:r),this.render())}}scrollRowToTop(e){this.scrollTo(e*this._options.rowHeight),this.render()}scrollPage(e){let t=e*this.numVisibleRows,n=this.scrollTop+this._options.rowHeight-1;if(this.scrollTo((this.getRowFromPosition(n)+t)*this._options.rowHeight),this.render(),this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=this.activeRow+t,r=this.getDataLengthIncludingAddNew();o>=r&&(o=r-1),o<0&&(o=0);let i=e===1?this.gotoDown(o-1||0,this.activeCell,this.activePosY,this.activePosX):this.gotoUp(o+1,this.activeCell,this.activePosY,this.activePosX);this.navigateToPos(i)}}navigatePageDown(){this.scrollPage(1)}navigatePageUp(){this.scrollPage(-1)}navigateTop(){this.unsetActiveCell(),this.navigateToRow(0)}navigateBottom(){let e=this.getDataLength()-1,t=this.getParentRowSpanByCell(e,this.activeCell)?.start??e;do if(this._options.enableCellRowSpan&&this.setActiveRow(t),this.navigateToRow(t)&&this.activeCell===this.activePosX||!V.isDefined(this.activeCell))break;while(--t>0)}navigateToRow(e){let t=this.getDataLength();if(!t)return!1;e<0?e=0:e>=t&&(e=t-1),this.scrollCellIntoView(e,0,!0);let n=!V.isDefined(this.activeCell)||!V.isDefined(this.activeRow);if(this._options.enableCellNavigation&&V.isDefined(this.activeRow)){let o=0,r=null,i=this.activePosX;for(;o<=this.activePosX;)this.canCellBeActive(e,o)&&(r=o,(!V.isDefined(this.activeCell)||o===this.activeCell)&&(n=!0)),o+=this.getColspan(e,o);r!==null?(this.setActiveCellInternal(this.getCellNode(e,r)),this.activePosX=i):this.resetActiveCell()}return n}getColspan(e,t){let n=this.getItemMetadaWhenExists(e);if(!n||!n.columns)return 1;t>=this.columns.length&&(t=this.columns.length-1);let o=(n.columns[this.columns[t].id]||n.columns[t])?.colspan;return o==="*"?o=this.columns.length-t:o=o||1,o}queuePostProcessedRowForCleanup(e,t,n){this.postProcessgroupId++,typeof t=="object"&&Object.keys(t).forEach(o=>{t.hasOwnProperty(o)&&this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e.cellNodesByColumnIdx[+o],columnIdx:+o,rowIdx:n})}),e.rowNode||(e.rowNode=[]),this.postProcessedCleanupQueue.push({actionType:"R",groupId:this.postProcessgroupId,node:e.rowNode}),e.rowNode?.forEach(o=>o.remove())}queuePostProcessedCellForCleanup(e,t,n){this.postProcessedCleanupQueue.push({actionType:"C",groupId:this.postProcessgroupId,node:e,columnIdx:t,rowIdx:n}),e.remove()}applyFormatResultToCellNode(e,t,n){if(e==null&&(e=""),Object.prototype.toString.call(e)!=="[object Object]"){this.applyHtmlCode(t,e);return}let o=e.html||e.text;this.applyHtmlCode(t,o),e.removeClasses&&!n&&t.classList.remove(...V.classNameToList(e.removeClasses)),e.addClasses&&t.classList.add(...V.classNameToList(e.addClasses)),e.toolTip&&t.setAttribute("title",e.toolTip)}startPostProcessing(){this._options.enableAsyncPostRender&&(window.clearTimeout(this.h_postrender),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay))}startPostProcessingCleanup(){this._options.enableAsyncPostRenderCleanup&&(window.clearTimeout(this.h_postrenderCleanup),this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay))}invalidatePostProcessingResults(e){typeof this.postProcessedRows[e]=="object"&&Object.keys(this.postProcessedRows[e]).forEach(t=>{this.postProcessedRows[e].hasOwnProperty(t)&&(this.postProcessedRows[e][t]="C")}),this.postProcessFromRow=Math.min(this.postProcessFromRow,e),this.postProcessToRow=Math.max(this.postProcessToRow,e),this.startPostProcessing()}asyncPostProcessRows(){let e=this.getDataLength();for(;this.postProcessFromRow<=this.postProcessToRow;){let t=this.vScrollDir>=0?this.postProcessFromRow++:this.postProcessToRow--,n=this.rowsCache[t];if(!(!n||t>=e)){this.postProcessedRows[t]||(this.postProcessedRows[t]={}),this.ensureCellNodesInRowsCache(t),Object.keys(n.cellNodesByColumnIdx).forEach(o=>{if(n.cellNodesByColumnIdx.hasOwnProperty(o)){let r=+o,i=this.columns[r],a=this.postProcessedRows[t][r];if(i.asyncPostRender&&a!=="R"){let l=n.cellNodesByColumnIdx[r];l&&i.asyncPostRender(l,t,this.getDataItem(t),i,a==="C"),this.postProcessedRows[t][r]="R"}}}),this.h_postrender=window.setTimeout(this.asyncPostProcessRows.bind(this),this._options.asyncPostRenderDelay);return}}}asyncPostProcessCleanupRows(){if(this.postProcessedCleanupQueue.length>0){let e=this.postProcessedCleanupQueue[0].groupId;for(;this.postProcessedCleanupQueue.length>0&&this.postProcessedCleanupQueue[0].groupId===e;){let t=this.postProcessedCleanupQueue.shift();if(t?.actionType==="R"&&t.node.forEach(n=>{n.remove()}),t?.actionType==="C"){let n=this.columns[t.columnIdx];n.asyncPostRenderCleanup&&t.node&&n.asyncPostRenderCleanup(t.node,t.rowIdx,n)}}this.h_postrenderCleanup=window.setTimeout(this.asyncPostProcessCleanupRows.bind(this),this._options.asyncPostRenderCleanupDelay)}}updateCellCssStylesOnRenderedRows(e,t){let n,o,r;typeof this.rowsCache=="object"&&Object.keys(this.rowsCache).forEach(i=>{this.rowsCache&&(r=t?.[i],o=e?.[i],r&&Object.keys(r).forEach(a=>{(!o||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.remove(r[a]))}),o&&Object.keys(o).forEach(a=>{(!r||r[a]!==o[a])&&(n=this.getCellNode(+i,this.getColumnIndex(a)),n&&n.classList.add(o[a]))}))})}addCellCssStyles(e,t){if(this.cellCssClasses[e])throw new Error(`SlickGrid addCellCssStyles: cell CSS hash with key "${e}" already exists.`);this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,null),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}removeCellCssStyles(e){this.cellCssClasses[e]&&(this.updateCellCssStylesOnRenderedRows(null,this.cellCssClasses[e]),delete this.cellCssClasses[e],this.trigger(this.onCellCssStylesChanged,{key:e,hash:null,grid:this}))}setCellCssStyles(e,t){let n=this.cellCssClasses[e];this.cellCssClasses[e]=t,this.updateCellCssStylesOnRenderedRows(t,n),this.trigger(this.onCellCssStylesChanged,{key:e,hash:t,grid:this})}getCellCssStyles(e){return this.cellCssClasses[e]}flashCell(e,t,n=250){let o=(r,i)=>{i<1||(window.clearTimeout(this._flashCellTimer),this._flashCellTimer=window.setTimeout(()=>{i%2===0?r.classList.add(this._options.cellFlashingCssClass||""):r.classList.remove(this._options.cellFlashingCssClass||""),o(r,i-1)},n))};if(this.rowsCache[e]){let r=this.getCellNode(e,t);r&&o(r,5)}}highlightRow(e,t){let n=this.rowsCache[e];t||(t=this._options.rowHighlightDuration),Array.isArray(n?.rowNode)&&this._options.rowHighlightCssClass&&(n.rowNode.forEach(o=>o.classList.add(...V.classNameToList(this._options.rowHighlightCssClass))),window.clearTimeout(this._highlightRowTimer),this._highlightRowTimer=window.setTimeout(()=>{n.rowNode?.forEach(o=>o.classList.remove(...V.classNameToList(this._options.rowHighlightCssClass)))},t))}_getContainerElement(e,t,n){if(!e)return;t||(t=0),n||(n=0);let o=typeof t=="number"?t:this.getColumnIndex(t),r=this.hasFrozenRows&&n>=this.actualFrozenRow+(this._options.frozenBottom?0:1),i=this.hasFrozenColumns()&&o>this._options.frozenColumn;return e[(r?2:0)+(i?1:0)]}measureScrollbar(){let e="";this._viewport.forEach(r=>e+=r.className);let t=V.createDomElement("div",{className:e,style:{position:"absolute",top:"-10000px",left:"-10000px",overflow:"auto",width:"100px",height:"100px"}},document.body),n=V.createDomElement("div",{style:{width:"200px",height:"200px",overflow:"auto"}},t),o={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return n.remove(),t.remove(),o}getMaxSupportedCssHeight(){let e=1e6,t=navigator.userAgent.toLowerCase().match(/firefox/)?this._options.ffMaxSupportedCssHeight:this._options.maxSupportedCssHeight,n=V.createDomElement("div",{style:{display:"hidden"}},document.body);for(;;){let o=e*2;V.height(n,o);let r=V.height(n);if(o>t||r!==o)break;e=o}return n.remove(),e}getUID(){return this.uid}getHeaderColumnWidthDiff(){return this.headerColumnWidthDiff}getScrollbarDimensions(){return this.scrollbarDimensions}getDisplayedScrollbarDimensions(){return{width:this.viewportHasVScroll?this.scrollbarDimensions?.width??0:0,height:this.viewportHasHScroll?this.scrollbarDimensions?.height??0:0}}getAbsoluteColumnMinWidth(){return this.absoluteColumnMinWidth}getVBoxDelta(e){let t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=getComputedStyle(e),o=0;return t.forEach(r=>o+=V.toFloat(n[r])),o}measureCellPaddingAndBorder(){let e=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],t=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],n=this._headers[0];this.headerColumnWidthDiff=this.headerColumnHeightDiff=0,this.cellWidthDiff=this.cellHeightDiff=0;let o=V.createDomElement("div",{className:"ui-state-default slick-state-default slick-header-column",style:{visibility:"hidden"},textContent:"-"},n),r=getComputedStyle(o);r.boxSizing!=="border-box"&&(e.forEach(a=>this.headerColumnWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.headerColumnHeightDiff+=V.toFloat(r[a]))),o.remove();let i=V.createDomElement("div",{className:"slick-row"},this._canvas[0]);o=V.createDomElement("div",{className:"slick-cell",id:"",style:{visibility:"hidden"},textContent:"-"},i),r=getComputedStyle(o),r.boxSizing!=="border-box"&&(e.forEach(a=>this.cellWidthDiff+=V.toFloat(r[a])),t.forEach(a=>this.cellHeightDiff+=V.toFloat(r[a]))),i.remove(),this.absoluteColumnMinWidth=Math.max(this.headerColumnWidthDiff,this.cellWidthDiff)}clearAllTimers(){window.clearTimeout(this._columnResizeTimer),window.clearTimeout(this._executionBlockTimer),window.clearTimeout(this._flashCellTimer),window.clearTimeout(this._highlightRowTimer),window.clearTimeout(this.h_editorLoader)}LogColWidths(){let e="Col Widths:";for(let t=0;t<this.columns.length;t++)e+=" "+(this.columns[t].hidden?"H":this.columns[t].width);console.log(e)}simpleArrayEquals(e,t){return Array.isArray(e)&&Array.isArray(t)&&t.sort().toString()!==e.sort().toString()}defaultFormatter(e,t,n){return V.isDefined(n)?(n+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""}cellExists(e,t){return!(e<0||e>=this.getDataLength()||t<0||t>=this.columns.length)}getCellFromNode(e){let t=/l\d+/.exec(e.className);if(!t)throw new Error(`SlickGrid getCellFromNode: cannot get cell - ${e.className}`);return parseInt(t[0].substr(1,t[0].length-1),10)}getRowFromNode(e){for(let t in this.rowsCache)if(this.rowsCache){for(let n in this.rowsCache[t].rowNode)if(this.rowsCache[t].rowNode?.[+n]===e)return t?parseInt(t,10):0}return null}clearTextSelection(){if(document.selection?.empty)try{document.selection.empty()}catch{}else if(window.getSelection){let e=window.getSelection();e?.removeAllRanges&&e.removeAllRanges()}}disableSelection(e){e.forEach(t=>{t.setAttribute("unselectable","on"),t.style.mozUserSelect="none",this._bindingEventService.bind(t,"selectstart",()=>!1)})}getPubSubService(){return this._pubSubService}getCellFromPoint(e,t){let n=this.getRowFromPosition(t),o=0,r=0;for(let i=0;i<this.columns.length&&r<=e;i++)this.columns[i]&&(r+=this.columns[i].width,o++);return o-=1,n<-1&&(n=-1),{row:n,cell:o}}getPluginByName(e){for(let t=this.plugins.length-1;t>=0;t--)if(this.plugins[t]?.pluginName===e)return this.plugins[t]}getContainerNode(){return this._container}getCellHeight(e,t){let n=this._options.rowHeight||0;if(t>1){let o=e+t-1;n=this.getRowBottom(o)-this.getRowTop(e)}else{let o=this.getRowHeight();o!==n-this.cellHeightDiff&&(n=o)}return n-=this.cellHeightDiff,Math.ceil(n)}setDifference(e,t){return new Set(Array.from(e).filter(n=>!t.has(n)))}getCellNodeBox(e,t){if(!this.cellExists(e,t))return null;let n=this.getFrozenRowOffset(e),o=this.getRowTop(e)-n,r=o+this._options.rowHeight-1,i=0;for(let l=0;l<t;l++)!this.columns[l]||this.columns[l].hidden||(i+=this.columns[l].width||0,this._options.frozenColumn===l&&(i=0));let a=i+(this.columns[t]?.width||0);return{top:o,left:i,bottom:r,right:a}}absBox(e){let t={top:e.offsetTop,left:e.offsetLeft,bottom:0,right:0,width:e.offsetWidth,height:e.offsetWidth,visible:!0};t.bottom=t.top+t.height,t.right=t.left+t.width;let n=e.offsetParent;for(;(e=e.parentNode)!==document.body&&!(!e||!e.parentNode);){let o=getComputedStyle(e);t.visible&&e.scrollHeight!==e.offsetHeight&&o.overflowY!=="visible"&&(t.visible=t.bottom>e.scrollTop&&t.top<e.scrollTop+e.clientHeight),t.visible&&e.scrollWidth!==e.offsetWidth&&o.overflowX!=="visible"&&(t.visible=t.right>e.scrollLeft&&t.left<e.scrollLeft+e.clientWidth),t.left-=e.scrollLeft,t.top-=e.scrollTop,e===n&&(t.left+=e.offsetLeft,t.top+=e.offsetTop,n=e.offsetParent),t.bottom=t.top+t.height,t.right=t.left+t.width}return t}getActiveCellPosition(){return this.absBox(this.activeCellNode)}getGridPosition(){return this.absBox(this._container)}getCellEditor(){return this.currentEditor}getActiveCell(){return this.activeCellNode?{row:this.activeRow,cell:this.activeCell}:null}getActiveCellNode(){return this.activeCellNode}getTextSelection(){let e=null;if(window.getSelection){let t=window.getSelection();(t?.rangeCount??0)>0&&(e=t.getRangeAt(0))}return e}setTextSelection(e){if(window.getSelection&&e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}}sanitizeHtmlString(e,t){if(!this._options.sanitizer||typeof e!="string")return e;let n=this._options.sanitizer(e);return!t&&this._options.logSanitizedHtml&&this.logMessageCount<=this.logMessageMaxCount&&n!==e&&(console.log(`sanitizer altered html: ${e} --> ${n}`),this.logMessageCount===this.logMessageMaxCount&&console.log(`sanitizer: silencing messages after first ${this.logMessageMaxCount}`),this.logMessageCount++),n}getRowspan(e,t){let n=1,o=this.getItemMetadaWhenExists(e);return o?.columns&&Object.keys(o.columns).forEach(r=>{let i=Number(r);if(i===t){let a=o.columns[i];n=Number(a?.rowspan||1)}}),n}findFocusableRow(e,t,n){let o=e,r=this._colsWithRowSpanCache[t]||new Set,i=!1;return Array.from(r).forEach(a=>{let[l,d]=a.split(":").map(Number);!i&&e>=l&&e<=d&&(o=n==="up"?l:d,this.canCellBeActive(o,t)&&(i=!0))}),o<0&&(o=0),o}findFirstFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);if(n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)){o=t;break}t+=this.getColspan(n,t)}return{cell:o,row:n}}findLastFocusableCell(e){let t=0,n=e,o=-1;for(;t<this.columns.length;){let r=this.getParentRowSpanByCell(e,t);n=r!==null&&r.start!==e?r.start:e,this.canCellBeActive(n,t)&&(o=t),t+=this.getColspan(n,t)}return{cell:o,row:n}}rowsToRanges(e){let t=[],n=this.columns.length-1;for(let o=0;o<e.length;o++)t.push(new LA(e[o],0,e[o],n));return t}findSpanStartingCell(e,t){let n=this.getParentRowSpanByCell(e,t),o=n!==null&&n.start!==e?n.start:e,r=0,i=0;for(;r<this.columns.length;){if(r+=this.getColspan(o,r),r>t)return r=i,{cell:r,row:o};i=r}return{cell:r,row:o}}gotoRight(e,t,n,o){if(t>=this.columns.length)return null;let r=t+1,i=n;do{let a=this.findSpanStartingCell(n,r);if(i=a.row,r=a.cell,this.canCellBeActive(i,r)&&r>t)break;r+=this.getColspan(i,a.cell)}while(r<this.columns.length);return r<this.columns.length?{row:i,cell:r,posX:r,posY:n}:null}gotoLeft(e,t,n,o){if(t<=0)return null;let r=this.findFirstFocusableCell(e);if(r.cell===null||r.cell>=t)return null;let i,a={row:e,cell:r.cell,posX:r.cell,posY:n};for(;;){if(i=this.gotoRight(a.row,a.cell,a.posY,a.posX),!i)return null;if(i.cell>=t){let l=this.findFocusableRow(n,a.cell,"up");return l!==a.row&&(a.row=l),a}a=i}}gotoDown(e,t,n,o){let r,i=this.getDataLengthIncludingAddNew();do for(e+=this.getRowspan(e,o),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e<=i&&!this.canCellBeActive(e,r));return e<=i?{row:e,cell:r,posX:o,posY:e}:null}gotoUp(e,t,n,o){let r;if(e<=0)return null;do for(e=this.findFocusableRow(e-1,o,"up"),r=t=0;t<=o;)r=t,t+=this.getColspan(e,t);while(e>=0&&!this.canCellBeActive(e,r));return t<=this.columns.length?{row:e,cell:r,posX:o,posY:e}:null}gotoNext(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=t=n=o=0,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoRight(e,t,n,o);if(!r){let i;for(;!r&&++n<this.getDataLength()+(this._options.enableAddRow?1:0);)i=this.findFirstFocusableCell(n),i.cell!==null&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoPrev(e,t,n,o){if(!V.isDefined(e)&&!V.isDefined(t)&&(e=n=this.getDataLengthIncludingAddNew()-1,t=o=this.columns.length-1,this.canCellBeActive(e,t)))return{row:e,cell:t,posX:t,posY:n};let r=this.gotoLeft(e,t,n,o);if(!r){let i;for(;!r&&--n>=0;)i=this.findLastFocusableCell(n),i.cell>-1&&(e=this.getParentRowSpanByCell(n,i.cell)?.start??n,r={row:e,cell:i.cell,posX:i.cell,posY:n})}return r}gotoRowStart(e,t,n,o){let r=this.findFirstFocusableCell(e);return r.cell===null?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}gotoRowEnd(e,t,n,o){let r=this.findLastFocusableCell(e);return r.cell===-1?null:{row:r.row,cell:r.cell,posX:r.cell,posY:e}}navigateRight(){return this.navigate("right")}navigateLeft(){return this.navigate("left")}navigateDown(){return this.navigate("down")}navigateUp(){return this.navigate("up")}navigateNext(){return this.navigate("next")}navigatePrev(){return this.navigate("prev")}navigateRowStart(){return this.navigate("home")}navigateRowEnd(){return this.navigate("end")}navigateTopStart(){return this.navigateToRow(0),this.navigate("home")}navigateBottomEnd(){return this.navigateBottom(),this.navigate("end")}navigate(e){if(!this._options.enableCellNavigation||!this.activeCellNode&&e!=="prev"&&e!=="next")return!1;if(!this.getEditorLock()?.commitCurrentEdit())return!0;this.setFocus(),this.unsetActiveCell();let t={up:-1,down:1,left:-1,right:1,prev:-1,next:1,home:-1,end:1};this.tabbingDirection=t[e];let n={up:this.gotoUp,down:this.gotoDown,left:this.gotoLeft,right:this.gotoRight,prev:this.gotoPrev,next:this.gotoNext,home:this.gotoRowStart,end:this.gotoRowEnd}[e].call(this,this.activeRow,this.activeCell,this.activePosY,this.activePosX);return this.navigateToPos(n)}navigateToPos(e){if(e){if(this.hasFrozenRows&&this._options.frozenBottom&&e.row===this.getDataLength())return;let t=e.row===this.getDataLength();return(!this._options.frozenBottom&&e.row>=this.actualFrozenRow||this._options.frozenBottom&&e.row<this.actualFrozenRow)&&this.scrollCellIntoView(e.row,e.cell,!t&&this._options.emulatePagingWhenScrolling),this.setActiveCellInternal(this.getCellNode(e.row,e.cell)),this.activePosX=e.posX,this.activePosY=e.posY,!0}else return this.setActiveCellInternal(this.getCellNode(this.activeRow,this.activeCell)),!1}getCellNode(e,t){if(this.rowsCache[e]){this.ensureCellNodesInRowsCache(e);try{return this.rowsCache[e].cellNodesByColumnIdx.length>t?this.rowsCache[e].cellNodesByColumnIdx[t]:null}catch{return this.rowsCache[e].cellNodesByColumnIdx[t]}}return null}setActiveCell(e,t,n,o,r){this.initialized&&(e>this.getDataLength()||e<0||t>=this.columns.length||t<0||this._options.enableCellNavigation&&(this.scrollCellIntoView(e,t,!1),this.setActiveCellInternal(this.getCellNode(e,t),n,o,r)))}setActiveRow(e,t,n){this.initialized&&(e>this.getDataLength()||e<0||(t??0)>=this.columns.length||(t??0)<0||(this.activeRow=e,n||this.scrollCellIntoView(e,t||0,!1)))}canCellBeActive(e,t){if(!this._options.enableCellNavigation||e>=this.getDataLengthIncludingAddNew()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden||(this.getParentRowSpanByCell(e,t)?.start??e)!==e)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.focusable!==void 0)return!!n.focusable;let o=n?.columns;return o?.[this.columns[t].id]?.focusable!==void 0?!!o[this.columns[t].id].focusable:o?.[t]?.focusable!==void 0?!!o[t].focusable:!!this.columns[t].focusable}canCellBeSelected(e,t){if(e>=this.getDataLength()||e<0||t>=this.columns.length||t<0||!this.columns[t]||this.columns[t].hidden)return!1;let n=this.getItemMetadaWhenExists(e);if(n?.selectable!==void 0)return!!n.selectable;let o=n?.columns&&(n.columns[this.columns[t].id]||n.columns[t]);return o?.selectable!==void 0?!!o.selectable:!!this.columns[t].selectable}gotoCell(e,t,n,o){if(!this.initialized||!this.canCellBeActive(e,t)||!this.getEditorLock()?.commitCurrentEdit())return;this.scrollCellIntoView(e,t,!1);let r=this.getCellNode(e,t),i=this.columns[t],a=!!(this._options.editable&&i?.editor&&this._options.suppressActiveCellChangeOnEdit);this.setActiveCellInternal(r,n||e===this.getDataLength()||this._options.autoEdit,null,a,o),this.currentEditor||this.setFocus()}};/**
|
|
278
278
|
* @license
|
|
279
279
|
* (c) 2009-present Michael Leibman
|
|
280
280
|
* michael{dot}leibman{at}gmail{dot}com
|
|
@@ -290,15 +290,15 @@ xe.version="2.30.1";$D(It);xe.fn=ve;xe.min=TM;xe.max=kM;xe.now=EM;xe.utc=No;xe.u
|
|
|
290
290
|
* This increases the speed dramatically, but can only be done safely because there are no event handlers
|
|
291
291
|
* or data associated with any cell/row DOM nodes. Cell editors must make sure they implement .destroy()
|
|
292
292
|
* and do proper cleanup.
|
|
293
|
-
*/const VA={asyncEditorLoading:!1,autosizeColsMode:Vv.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function jA({SlickDataView:e=IA,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=AF,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m=PD,onSelectedRowsChanged:v,options:D={},table:k}){Fe.useEffect(()=>{const x=new Bv,S=new bA({}),C=new SA({}),O=new e({groupItemMetadataProvider:a?x:void 0}),I=k.createGrid(O,[],D);I.setSelectionModel(new PA({selectActiveRow:!1})),I.registerPlugin(S),I.registerPlugin(x),i&&(O.getItemMetadata=i(O)),O.setItems(n?d.map((z,R)=>({...z,[l]:++R})):d.map(z=>({...z})),l),I.invalidate(),O.onRowCountChanged.subscribe(m(k)),O.onRowsChanged.subscribe(ED(I)),I.onAddNewRow.subscribe(u),I.onCellChange.subscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.subscribe(f),y&&I.onClick.subscribe(y),w&&I.onDblClick.subscribe(w),I.onSort.subscribe(o.getSortFunction(k.id)),I.onContextMenu.subscribe(Yv(k)),k.columnPicker&&I.onHeaderContextMenu.subscribe(pF(k));const F=Av(k);return S.onCommand.subscribe(F),b&&(C.onCommand.subscribe(b),I.registerPlugin(C)),a&&(k.grouping={groups:a,isGrouped:k.grouping.isGrouped??!0}),t?.(I),k.hotKeysBehavior.pushToCommandQueue(I),()=>{S.onCommand.unsubscribe(F),b&&C.onCommand.unsubscribe(b),I.onAddNewRow.unsubscribe(u),I.onCellChange.unsubscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.unsubscribe(f),y&&I.onClick.unsubscribe(y),w&&I.onDblClick.unsubscribe(w),k.reset()}},[d]),Fe.useEffect(()=>{const x=k.grid;!x||!D||setTimeout(()=>{x.setOptions({...VA,...D}),x.render(),k.totalCalculator?.calculate(x),k.notifyObservers()},0)},[D,d]),Fe.useEffect(()=>{const x=k.grid;if(x&&r.length){if(r[0].id===su){const S=new mA;x.setColumns([{...S.getColumnDefinition(),focusable:!1},...r.slice(1)]),x.registerPlugin(S)}else x.setColumns(r);k.columnPicker&&(k.columnPicker.initialColumns=x.getColumns(),k.columnPicker.visibleColumnIds.length||(k.columnPicker.visibleColumnIds=x.getColumns().map(({id:S})=>S)),x.setColumns(x.getColumns().filter(({id:S})=>!k.columnPicker||!k.columnPicker.visibleColumnIds.length?!0:k.columnPicker.visibleColumnIds.includes(S)))),
|
|
293
|
+
*/const VA={asyncEditorLoading:!1,autosizeColsMode:Vv.LegacyForceFit,enableAutoSizeColumns:!0,enableColumnReorder:!1};function jA({SlickDataView:e=IA,applyCellCssStyles:t,assignIds:n=!1,columnSorter:o=AF,columns:r,getItemMetadata:i,groups:a,idPropertyName:l="id",items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m=PD,onSelectedRowsChanged:v,options:D={},table:k}){Fe.useEffect(()=>{const x=new Bv,S=new bA({}),C=new SA({}),O=new e({groupItemMetadataProvider:a?x:void 0}),I=k.createGrid(O,[],D);I.setSelectionModel(new PA({selectActiveRow:!1})),I.registerPlugin(S),I.registerPlugin(x),i&&(O.getItemMetadata=i(O)),O.setItems(n?d.map((z,R)=>({...z,[l]:++R})):d.map(z=>({...z})),l),I.invalidate(),O.onRowCountChanged.subscribe(m(k)),O.onRowsChanged.subscribe(ED(I)),I.onAddNewRow.subscribe(u),I.onCellChange.subscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.subscribe(f),y&&I.onClick.subscribe(y),w&&I.onDblClick.subscribe(w),I.onSort.subscribe(o.getSortFunction(k.id)),I.onContextMenu.subscribe(Yv(k)),k.columnPicker&&I.onHeaderContextMenu.subscribe(pF(k));const F=Av(k);return S.onCommand.subscribe(F),b&&(C.onCommand.subscribe(b),I.registerPlugin(C)),a&&(k.grouping={groups:a,isGrouped:k.grouping.isGrouped??!0}),t?.(I),k.hotKeysBehavior.pushToCommandQueue(I),()=>{S.onCommand.unsubscribe(F),b&&C.onCommand.unsubscribe(b),I.onAddNewRow.unsubscribe(u),I.onCellChange.unsubscribe(p),v&&I.onSelectedRowsChanged.subscribe(v),f&&I.onBeforeEditCell.unsubscribe(f),y&&I.onClick.unsubscribe(y),w&&I.onDblClick.unsubscribe(w),k.reset()}},[d]),Fe.useEffect(()=>{const x=k.grid;!x||!D||setTimeout(()=>{x.setOptions({...VA,...D}),x.render(),Io.highlightAllColumns(k.filter.args,k.id),k.totalCalculator?.calculate(x),k.notifyObservers()},0)},[D,d]),Fe.useEffect(()=>{const x=k.grid;if(x&&r.length){if(r[0].id===su){const S=new mA;x.setColumns([{...S.getColumnDefinition(),focusable:!1},...r.slice(1)]),x.registerPlugin(S)}else x.setColumns(r);k.columnPicker&&(k.columnPicker.initialColumns=x.getColumns(),k.columnPicker.visibleColumnIds.length||(k.columnPicker.visibleColumnIds=x.getColumns().map(({id:S})=>S)),x.setColumns(x.getColumns().filter(({id:S})=>!k.columnPicker||!k.columnPicker.visibleColumnIds.length?!0:k.columnPicker.visibleColumnIds.includes(S)))),Io.highlightAllColumns(k.filter.args,k.id),k.filter.register(x,k.id),x.invalidate(),k.totalCalculator?.calculate(x),k.notifyObservers(),o.restoreSorting(k)}},[r,d])}const BA=e=>(t,{grid:n,item:o})=>{WA(n,o),n.updateRowCount(),n.invalidate(),e.isEdited=!0,e.hotKeysBehavior.pushToCommandQueue(n)},WA=(e,t)=>{const n=e.getData(),o=n.getIdPropertyName(),i={...cF(n),...t,[o]:Rh(e),isEdited:!0,isNew:!0};n.addItem(i)};ie(oo)(({theme:e})=>({"& .slick-container":{color:e.palette.text.primary,borderColor:e.palette.background.paper,"& .slick-viewport":{backgroundColor:e.palette.background.paper,"& .grid-canvas":{"& .ui-widget-content.slick-row":{"&.even":{backgroundColor:e.palette.background.default},"& .slick-cell":{"&.active":{borderColor:"#007bff","& input":{color:e.palette.text.primary}},"&.selected":{color:e.palette.text.primary},"& select":{color:e.palette.text.primary,backgroundColor:e.palette.background.default},"& #autocomplete":{backgroundColor:e.palette.background.default}}}}},"& .slick-footerrow":{backgroundColor:e.palette.background.default}}}));const Dm=Ws`
|
|
294
294
|
50% {
|
|
295
295
|
background-color: #ffb1b1;
|
|
296
296
|
}
|
|
297
|
-
`,Nd="0.75rem",HA="24px",zA=ie(oo)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header-column":{"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"&.slick-state-hover":{"&.filter-active .slick-header-button::after":{border:"2px solid #e8e8e8"},"& .slick-header-button":{"&::before":{backgroundColor:"#e8e8e8"}}},"& .slick-column-name":{fontSize:Nd},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"#f8f8f8"}}},"& .slick-viewport":{overflowX:"hidden !important",backgroundColor:"transparent","& .slick-cell":{display:"flex",fontSize:Nd,"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Dm} infinite 0.5s linear`,"& input":{animation:`${Dm} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Nd,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:HA,"& div":{"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),YA={Container:zA},UA=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k})=>(jA({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||BA(k),onBeforeEditCell:f,onCellChange:p||kD(k),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k}),gF(k),wF(k),bF(k),E.jsx(YA.Container,{id:k.id,className:"slick-container"})),qA={id:su,field:su};function GA(e,t,n){return n?"<span>✎</span>":""}const KA={id:"isEdited",name:"✎",field:"isEdited",formatter:GA,focusable:!1,sortable:!0,sortAs:Co.NUMBER,cssClass:"text-center",maxWidth:30};class XA{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case je.Boolean:return this.boolean(t,n);case je.DateBetween:return this.dateBetween(t,n);case je.DateEqual:return this.dateEqual(t,n[1]);case je.DateFrom:return this.dateFrom(t,n[1]);case je.DateTo:return this.dateTo(t,n[1]);case je.MultipleSelect:return this.multipleSelect(t,n[1]);case je.NumberBetween:return this.numberBetween(t,n);case je.NumberEqual:return this.numberEqual(t,n[1]);case je.NumberFrom:return this.numberFrom(t,n[1]);case je.NumberTo:return this.numberTo(t,n[1]);case je.TextContain:return this.textContain(t,n[1]);case je.TextEqual:return this.textEqual(t,n[1]);case je.TextNotContain:return!this.textContain(t,n[1]);case je.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return Ss(t)>=Ss(n)}dateTo(t,n){return Ss(t)<=Ss(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const ZA=new XA,QA=[hn.Date,hn.Boolean,hn.Number];class JA extends Nv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)];if(!d)continue;const{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!QA.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!ZA.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&
|
|
297
|
+
`,Nd="0.75rem",HA="24px",zA=ie(oo)({backgroundColor:"transparent",fontFamily:"inherit",height:"100%",maxHeight:"100%",maxWidth:"100%",userSelect:"none","& .slick-header-column":{"&.filter-active .slick-header-button::after":{width:"7px",height:"7px",content:"''",backgroundColor:"#2196f3",position:"absolute",borderRadius:"50%",border:"2px solid #f8f8f8",top:"3px",right:"3px"},"&:not([data-id=_checkbox_selector]):not([data-id=isEdited])":{"& .slick-column-name":{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"calc(100% - 16px)"}},"&.slick-state-hover":{"&.filter-active .slick-header-button::after":{border:"2px solid #e8e8e8"},"& .slick-header-button":{"&::before":{backgroundColor:"#e8e8e8"}}},"& .slick-column-name":{fontSize:Nd},"& .slick-header-button":{width:"19px",height:"12px","&::before":{position:"absolute",content:"''",width:"19px",height:"12px",top:"6px",right:"5px",backgroundImage:"repeating-linear-gradient(0deg, #808080, #808080 2px, transparent 2px, transparent 4px)",clipPath:"polygon(0% 0%, 100% 0%, 50% 110%)",backgroundColor:"#f8f8f8"}}},"& .slick-viewport":{overflowX:"hidden !important",backgroundColor:"transparent","& .slick-cell":{display:"flex",fontSize:Nd,"&.text-center":{justifyContent:"center",textAlign:"center"},"&.text-right":{justifyContent:"end",textAlign:"right"},"&.bold":{fontWeight:"bold"},"&.wink":{animation:`${Dm} infinite 0.5s linear`,"& input":{animation:`${Dm} infinite 0.5s linear`}},"& input.editor-text":{textAlign:"inherit"},"& #autocomplete":{boxShadow:"0 0 5px 1px gray",fontSize:Nd,margin:0,maxHeight:"300px",minWidth:"100%",overflow:"auto",padding:0,position:"absolute",top:HA,"& div":{"&:hover":{cursor:"pointer"},"& strong":{color:"#007bff"}}}}},"& .slick-footerrow":{borderTop:"1px solid silver","& .slick-footerrow-column":{height:"100%",display:"flex",justifyContent:"flex-end",alignItems:"center",paddingRight:"5px",borderBottom:"none",fontWeight:"bold","&:last-child":{borderRight:"none"}}}}),YA={Container:zA},UA=({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u,onBeforeEditCell:f,onCellChange:p,onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k})=>(jA({SlickDataView:e,applyCellCssStyles:t,assignIds:n,columnSorter:o,columns:r,getItemMetadata:i,groups:a,idPropertyName:l,items:d,onAddNewRow:u||BA(k),onBeforeEditCell:f,onCellChange:p||kD(k),onClick:y,onDblClick:w,onHeaderMenuCommand:b,onRowCountChanged:m,onSelectedRowsChanged:v,options:D,table:k}),gF(k),wF(k),bF(k),E.jsx(YA.Container,{id:k.id,className:"slick-container"})),qA={id:su,field:su};function GA(e,t,n){return n?"<span>✎</span>":""}const KA={id:"isEdited",name:"✎",field:"isEdited",formatter:GA,focusable:!1,sortable:!0,sortAs:Co.NUMBER,cssClass:"text-center",maxWidth:30};class XA{passed(t,n,o){if(!n[1]&&!n[2])return!0;switch(o){case je.Boolean:return this.boolean(t,n);case je.DateBetween:return this.dateBetween(t,n);case je.DateEqual:return this.dateEqual(t,n[1]);case je.DateFrom:return this.dateFrom(t,n[1]);case je.DateTo:return this.dateTo(t,n[1]);case je.MultipleSelect:return this.multipleSelect(t,n[1]);case je.NumberBetween:return this.numberBetween(t,n);case je.NumberEqual:return this.numberEqual(t,n[1]);case je.NumberFrom:return this.numberFrom(t,n[1]);case je.NumberTo:return this.numberTo(t,n[1]);case je.TextContain:return this.textContain(t,n[1]);case je.TextEqual:return this.textEqual(t,n[1]);case je.TextNotContain:return!this.textContain(t,n[1]);case je.TextNotEqual:return!this.textEqual(t,n[1])}}boolean(t,n){return n[1]?!!t:n[2]?!t:!0}dateBetween(t,n){const o=n[1],r=n[2];return o?r?this.dateFrom(t,o)&&this.dateTo(t,r):this.dateFrom(t,o):this.dateTo(t,r)}dateEqual(t,n){return n===t}dateFrom(t,n){return Ss(t)>=Ss(n)}dateTo(t,n){return Ss(t)<=Ss(n)}multipleSelect(t,n){const o=JSON.parse(n);return o.includes("All")?!0:o.includes(t)}numberBetween(t,n){const o=n[1]||0,r=n[2]||0;return o?r?this.numberFrom(t,o)&&this.numberTo(t,r):Number(t)>=Number(o):Number(t)<=Number(r)}numberEqual(t,n){return Number(n)===Number(t)}numberFrom(t,n){return Number(t)>=Number(n)}numberTo(t,n){return Number(t)<=Number(n)}textEqual(t,n){return(t||"").toLowerCase()===n.toLowerCase()}textContain(t,n){return(t||"").toLowerCase().match(n.toLowerCase())}}const ZA=new XA,QA=[hn.Date,hn.Boolean,hn.Number];class JA extends Nv{filterFn(t,n){if(!n.columnFilters)return!0;const o=this.grid;if(!o)return!0;const r=o.getColumns(),i=Object.keys(n.columnFilters);for(let a=0;a<i.length;a++){const l=i[a],d=r[o.getColumnIndex(l)];if(!d)continue;const{filterId:u,group:f,value:p}=n.columnFilters[l];let y=t[d?.field];if(!QA.includes(f)){const w=d?.formatter;w&&(y=w(0,0,y,d,t,o))}if(!ZA.passed(y,p,u))return!1}return!0}reset(){this.filter.reset(),this.tableId&&Io.highlightAllColumns(this.args,this.tableId)}}function eF(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gl={exports:{}},tF=gl.exports,Om;function nF(){return Om||(Om=1,function(e,t){(function(n,o){e.exports=o()})(tF,function(){var n;function o(){return n.apply(null,arguments)}function r(c){n=c}function i(c){return c instanceof Array||Object.prototype.toString.call(c)==="[object Array]"}function a(c){return c!=null&&Object.prototype.toString.call(c)==="[object Object]"}function l(c,h){return Object.prototype.hasOwnProperty.call(c,h)}function d(c){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(c).length===0;var h;for(h in c)if(l(c,h))return!1;return!0}function u(c){return c===void 0}function f(c){return typeof c=="number"||Object.prototype.toString.call(c)==="[object Number]"}function p(c){return c instanceof Date||Object.prototype.toString.call(c)==="[object Date]"}function y(c,h){var g=[],_,N=c.length;for(_=0;_<N;++_)g.push(h(c[_],_));return g}function w(c,h){for(var g in h)l(h,g)&&(c[g]=h[g]);return l(h,"toString")&&(c.toString=h.toString),l(h,"valueOf")&&(c.valueOf=h.valueOf),c}function b(c,h,g,_){return uf(c,h,g,_,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(c){return c._pf==null&&(c._pf=m()),c._pf}var D;Array.prototype.some?D=Array.prototype.some:D=function(c){var h=Object(this),g=h.length>>>0,_;for(_=0;_<g;_++)if(_ in h&&c.call(this,h[_],_,h))return!0;return!1};function k(c){var h=null,g=!1,_=c._d&&!isNaN(c._d.getTime());if(_&&(h=v(c),g=D.call(h.parsedDateParts,function(N){return N!=null}),_=h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&g),c._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(c))c._isValid=_;else return _;return c._isValid}function x(c){var h=b(NaN);return c!=null?w(v(h),c):v(h).userInvalidated=!0,h}var S=o.momentProperties=[],C=!1;function O(c,h){var g,_,N,X=S.length;if(u(h._isAMomentObject)||(c._isAMomentObject=h._isAMomentObject),u(h._i)||(c._i=h._i),u(h._f)||(c._f=h._f),u(h._l)||(c._l=h._l),u(h._strict)||(c._strict=h._strict),u(h._tzm)||(c._tzm=h._tzm),u(h._isUTC)||(c._isUTC=h._isUTC),u(h._offset)||(c._offset=h._offset),u(h._pf)||(c._pf=v(h)),u(h._locale)||(c._locale=h._locale),X>0)for(g=0;g<X;g++)_=S[g],N=h[_],u(N)||(c[_]=N);return c}function I(c){O(this,c),this._d=new Date(c._d!=null?c._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),C===!1&&(C=!0,o.updateOffset(this),C=!1)}function F(c){return c instanceof I||c!=null&&c._isAMomentObject!=null}function z(c){o.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+c)}function R(c,h){var g=!0;return w(function(){if(o.deprecationHandler!=null&&o.deprecationHandler(null,c),g){var _=[],N,X,de,Ee=arguments.length;for(X=0;X<Ee;X++){if(N="",typeof arguments[X]=="object"){N+=`
|
|
298
298
|
[`+X+"] ";for(de in arguments[0])l(arguments[0],de)&&(N+=de+": "+arguments[0][de]+", ");N=N.slice(0,-2)}else N=arguments[X];_.push(N)}z(c+`
|
|
299
299
|
Arguments: `+Array.prototype.slice.call(_).join("")+`
|
|
300
|
-
`+new Error().stack),g=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,g;for(g in c)l(c,g)&&(h=c[g],G(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return G(_)?_.call(h,g):_}function L(c,h,g){var _=""+Math.abs(c),N=h-_.length,X=c>=0;return(X?g?"+":"":"-")+Math.pow(10,Math.max(0,N)).toString().substr(1)+_}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var N=_;typeof _=="string"&&(N=function(){return this[_]()}),c&&(se[c]=N),h&&(se[h[0]]=function(){return L(N.apply(this,arguments),h[1],h[2])}),g&&(se[g]=function(){return this.localeData().ordinal(N.apply(this,arguments),c)})}function ee(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function J(c){var h=c.match(B),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=ee(h[g]);return function(N){var X="",de;for(de=0;de<_;de++)X+=G(h[de])?h[de].call(N,c):h[de];return X}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||J(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var g=5;function _(N){return h.longDateFormat(N)||N}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var le={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"};function he(c){var h=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(B).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var W="Invalid date";function re(){return this._invalidDate}var Z="%d",fe=/\d{1,2}/;function pe(c){return this._ordinal.replace("%d",c)}var be={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(c,h,g,_){var N=this._relativeTime[g];return G(N)?N(c,h,g,_):N.replace(/%d/i,c)}function Re(c,h){var g=this._relativeTime[c>0?"future":"past"];return G(g)?g(h):g.replace(/%s/i,h)}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ne(c){return typeof c=="string"?Ve[c]||Ve[c.toLowerCase()]:void 0}function Je(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ne(_),g&&(h[g]=c[_]));return h}var ke={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ut(c){var h=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:ke[g]});return h.sort(function(_,N){return _.priority-N.priority}),h}var Yt=/\d/,rt=/\d\d/,Ot=/\d{3}/,Ut=/\d{4}/,Lt=/[+-]?\d{6}/,Ue=/\d\d?/,Be=/\d\d\d\d?/,rn=/\d\d\d\d\d\d?/,dn=/\d{1,3}/,Oe=/\d{1,4}/,We=/[+-]?\d{1,6}/,ht=/\d+/,nn=/[+-]?\d+/,An=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,Zt=/[+-]?\d+(\.\d{1,3})?/,pn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qt=/^[1-9]\d?/,cr=/^([1-9]\d|\d)/,He;He={};function _e(c,h,g){He[c]=G(h)?h:function(_,N){return _&&g?g:h}}function Fc(c,h){return l(He,c)?He[c](h._strict,h._locale):new RegExp(Ra(c))}function Ra(c){return Wn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,N,X){return g||_||N||X}))}function Wn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function Xe(c){var h=+c,g=0;return h!==0&&isFinite(h)&&(g=kn(h)),g}var Jr={};function yt(c,h){var g,_=h,N;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(X,de){de[h]=Xe(X)}),N=c.length,g=0;g<N;g++)Jr[c[g]]=_}function xr(c,h){yt(c,function(g,_,N,X){N._w=N._w||{},h(g,N._w,N,X)})}function Lc(c,h,g){h!=null&&l(Jr,c)&&Jr[c](h,g._a,g,c)}function es(c){return c%4===0&&c%100!==0||c%400===0}var un=0,U=1,me=2,Ce=3,Ae=4,Ke=5,st=6,et=7,Ze=8;j("Y",0,0,function(){var c=this.year();return c<=9999?L(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),_e("Y",nn),_e("YY",Ue,rt),_e("YYYY",Oe,Ut),_e("YYYYY",We,Lt),_e("YYYYYY",We,Lt),yt(["YYYYY","YYYYYY"],un),yt("YYYY",function(c,h){h[un]=c.length===2?o.parseTwoDigitYear(c):Xe(c)}),yt("YY",function(c,h){h[un]=o.parseTwoDigitYear(c)}),yt("Y",function(c,h){h[un]=parseInt(c,10)});function Jt(c){return es(c)?366:365}o.parseTwoDigitYear=function(c){return Xe(c)+(Xe(c)>68?1900:2e3)};var $t=sn("FullYear",!0);function qt(){return es(this.year())}function sn(c,h){return function(g){return g!=null?(yo(this,c,g),o.updateOffset(this,h),this):Hn(this,c)}}function Hn(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function yo(c,h,g){var _,N,X,de,Ee;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,N=c._isUTC,h){case"Milliseconds":return void(N?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(N?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(N?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(N?_.setUTCHours(g):_.setHours(g));case"Date":return void(N?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}X=g,de=c.month(),Ee=c.date(),Ee=Ee===29&&de===1&&!es(X)?28:Ee,N?_.setUTCFullYear(X,de,Ee):_.setFullYear(X,de,Ee)}}function yn(c){return c=Ne(c),G(this[c])?this[c]():this}function Xs(c,h){if(typeof c=="object"){c=Je(c);var g=ut(c),_,N=g.length;for(_=0;_<N;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ne(c),G(this[c]))return this[c](h);return this}function $c(c,h){return(c%h+h)%h}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function Vc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=$c(h,12);return c+=(h-g)/12,g===1?es(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),_e("M",Ue,Qt),_e("MM",Ue,rt),_e("MMM",function(c,h){return h.monthsShortRegex(c)}),_e("MMMM",function(c,h){return h.monthsRegex(c)}),yt(["M","MM"],function(c,h){h[U]=Xe(c)-1}),yt(["MMM","MMMM"],function(c,h,g,_){var N=g._locale.monthsParse(c,_,g._strict);N!=null?h[U]=N:v(g).invalidMonth=c});var jb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bb=pn,Wb=pn;function Hb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Zh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function zb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Zh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Yb(c,h,g){var _,N,X,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)X=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(X,"").toLocaleLowerCase();return g?h==="MMM"?(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:null):(N=Wt.call(this._longMonthsParse,de),N!==-1?N:null):h==="MMM"?(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:(N=Wt.call(this._longMonthsParse,de),N!==-1?N:null)):(N=Wt.call(this._longMonthsParse,de),N!==-1?N:(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:null))}function Ub(c,h,g){var _,N,X;if(this._monthsParseExact)return Yb.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(N=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(N,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(N,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(X="^"+this.months(N,"")+"|^"+this.monthsShort(N,""),this._monthsParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Qh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=Xe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var g=h,_=c.date();return _=_<29?_:Math.min(_,Vc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function Jh(c){return c!=null?(Qh(this,c),o.updateOffset(this,!0),this):Hn(this,"Month")}function qb(){return Vc(this.year(),this.month())}function Gb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||ef.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Bb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Kb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||ef.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Wb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function ef(){function c(ze,it){return it.length-ze.length}var h=[],g=[],_=[],N,X,de,Ee;for(N=0;N<12;N++)X=b([2e3,N]),de=Wn(this.monthsShort(X,"")),Ee=Wn(this.months(X,"")),h.push(de),g.push(Ee),_.push(Ee),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Xb(c,h,g,_,N,X,de){var Ee;return c<100&&c>=0?(Ee=new Date(c+400,h,g,_,N,X,de),isFinite(Ee.getFullYear())&&Ee.setFullYear(c)):Ee=new Date(c,h,g,_,N,X,de),Ee}function Zs(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function Ta(c,h,g){var _=7+h-g,N=(7+Zs(c,0,_).getUTCDay()-h)%7;return-N+_-1}function tf(c,h,g,_,N){var X=(7+g-_)%7,de=Ta(c,_,N),Ee=1+7*(h-1)+X+de,ze,it;return Ee<=0?(ze=c-1,it=Jt(ze)+Ee):Ee>Jt(c)?(ze=c+1,it=Ee-Jt(c)):(ze=c,it=Ee),{year:ze,dayOfYear:it}}function Qs(c,h,g){var _=Ta(c.year(),h,g),N=Math.floor((c.dayOfYear()-_-1)/7)+1,X,de;return N<1?(de=c.year()-1,X=N+Fo(de,h,g)):N>Fo(c.year(),h,g)?(X=N-Fo(c.year(),h,g),de=c.year()+1):(de=c.year(),X=N),{week:X,year:de}}function Fo(c,h,g){var _=Ta(c,h,g),N=Ta(c+1,h,g);return(Jt(c)-_+N)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),_e("w",Ue,Qt),_e("ww",Ue,rt),_e("W",Ue,Qt),_e("WW",Ue,rt),xr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=Xe(c)});function Zb(c){return Qs(c,this._week.dow,this._week.doy).week}var Qb={dow:0,doy:6};function Jb(){return this._week.dow}function ew(){return this._week.doy}function tw(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function nw(c){var h=Qs(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),_e("d",Ue),_e("e",Ue),_e("E",Ue),_e("dd",function(c,h){return h.weekdaysMinRegex(c)}),_e("ddd",function(c,h){return h.weekdaysShortRegex(c)}),_e("dddd",function(c,h){return h.weekdaysRegex(c)}),xr(["dd","ddd","dddd"],function(c,h,g,_){var N=g._locale.weekdaysParse(c,_,g._strict);N!=null?h.d=N:v(g).invalidWeekday=c}),xr(["d","e","E"],function(c,h,g,_){h[_]=Xe(c)});function ow(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function rw(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function jc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var sw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),nf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),aw=pn,lw=pn,cw=pn;function dw(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?jc(g,this._week.dow):c?g[c.day()]:g}function uw(c){return c===!0?jc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function hw(c){return c===!0?jc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function fw(c,h,g){var _,N,X,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)X=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(X,"").toLocaleLowerCase();return g?h==="dddd"?(N=Wt.call(this._weekdaysParse,de),N!==-1?N:null):h==="ddd"?(N=Wt.call(this._shortWeekdaysParse,de),N!==-1?N:null):(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null):h==="dddd"?(N=Wt.call(this._weekdaysParse,de),N!==-1||(N=Wt.call(this._shortWeekdaysParse,de),N!==-1)?N:(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null)):h==="ddd"?(N=Wt.call(this._shortWeekdaysParse,de),N!==-1||(N=Wt.call(this._weekdaysParse,de),N!==-1)?N:(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null)):(N=Wt.call(this._minWeekdaysParse,de),N!==-1||(N=Wt.call(this._weekdaysParse,de),N!==-1)?N:(N=Wt.call(this._shortWeekdaysParse,de),N!==-1?N:null))}function pw(c,h,g){var _,N,X;if(this._weekdaysParseExact)return fw.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(N=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(N,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(N,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(N,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(X="^"+this.weekdays(N,"")+"|^"+this.weekdaysShort(N,"")+"|^"+this.weekdaysMin(N,""),this._weekdaysParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function mw(c){if(!this.isValid())return c!=null?this:NaN;var h=Hn(this,"Day");return c!=null?(c=ow(c,this.localeData()),this.add(c-h,"d")):h}function gw(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function yw(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=rw(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function vw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=aw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function bw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=lw),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ww(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cw),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bc(){function c(xn,Bo){return Bo.length-xn.length}var h=[],g=[],_=[],N=[],X,de,Ee,ze,it;for(X=0;X<7;X++)de=b([2e3,1]).day(X),Ee=Wn(this.weekdaysMin(de,"")),ze=Wn(this.weekdaysShort(de,"")),it=Wn(this.weekdays(de,"")),h.push(Ee),g.push(ze),_.push(it),N.push(Ee),N.push(ze),N.push(it);h.sort(c),g.sort(c),_.sort(c),N.sort(c),this._weekdaysRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Wc(){return this.hours()%12||12}function Cw(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Wc),j("k",["kk",2],0,Cw),j("hmm",0,0,function(){return""+Wc.apply(this)+L(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Wc.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)});function of(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}of("a",!0),of("A",!1);function rf(c,h){return h._meridiemParse}_e("a",rf),_e("A",rf),_e("H",Ue,cr),_e("h",Ue,Qt),_e("k",Ue,Qt),_e("HH",Ue,rt),_e("hh",Ue,rt),_e("kk",Ue,rt),_e("hmm",Be),_e("hmmss",rn),_e("Hmm",Be),_e("Hmmss",rn),yt(["H","HH"],Ce),yt(["k","kk"],function(c,h,g){var _=Xe(c);h[Ce]=_===24?0:_}),yt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),yt(["h","hh"],function(c,h,g){h[Ce]=Xe(c),v(g).bigHour=!0}),yt("hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_)),v(g).bigHour=!0}),yt("hmmss",function(c,h,g){var _=c.length-4,N=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ke]=Xe(c.substr(N)),v(g).bigHour=!0}),yt("Hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_))}),yt("Hmmss",function(c,h,g){var _=c.length-4,N=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ke]=Xe(c.substr(N))});function Sw(c){return(c+"").toLowerCase().charAt(0)==="p"}var _w=/[ap]\.?m?\.?/i,xw=sn("Hours",!0);function Rw(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var sf={calendar:A,longDateFormat:le,invalidDate:W,ordinal:Z,dayOfMonthOrdinalParse:fe,relativeTime:be,months:jb,monthsShort:Xh,week:Qb,weekdays:sw,weekdaysMin:iw,weekdaysShort:nf,meridiemParse:_w},Vt={},Js={},ei;function Tw(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function af(c){return c&&c.toLowerCase().replace("_","-")}function kw(c){for(var h=0,g,_,N,X;h<c.length;){for(X=af(c[h]).split("-"),g=X.length,_=af(c[h+1]),_=_?_.split("-"):null;g>0;){if(N=ka(X.slice(0,g).join("-")),N)return N;if(_&&_.length>=g&&Tw(X,_)>=g-1)break;g--}h++}return ei}function Ew(c){return!!(c&&c.match("^[^/\\\\]*$"))}function ka(c){var h=null,g;if(Vt[c]===void 0&&e&&e.exports&&Ew(c))try{h=ei._abbr,g=eF,g("./locale/"+c),dr(h)}catch{Vt[c]=null}return Vt[c]}function dr(c,h){var g;return c&&(u(h)?g=Lo(c):g=Hc(c,h),g?ei=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ei._abbr}function Hc(c,h){if(h!==null){var g,_=sf;if(h.abbr=c,Vt[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Vt[c]._config;else if(h.parentLocale!=null)if(Vt[h.parentLocale]!=null)_=Vt[h.parentLocale]._config;else if(g=ka(h.parentLocale),g!=null)_=g._config;else return Js[h.parentLocale]||(Js[h.parentLocale]=[]),Js[h.parentLocale].push({name:c,config:h}),null;return Vt[c]=new H(Y(_,h)),Js[c]&&Js[c].forEach(function(N){Hc(N.name,N.config)}),dr(c),Vt[c]}else return delete Vt[c],null}function Pw(c,h){if(h!=null){var g,_,N=sf;Vt[c]!=null&&Vt[c].parentLocale!=null?Vt[c].set(Y(Vt[c]._config,h)):(_=ka(c),_!=null&&(N=_._config),h=Y(N,h),_==null&&(h.abbr=c),g=new H(h),g.parentLocale=Vt[c],Vt[c]=g),dr(c)}else Vt[c]!=null&&(Vt[c].parentLocale!=null?(Vt[c]=Vt[c].parentLocale,c===dr()&&dr(c)):Vt[c]!=null&&delete Vt[c]);return Vt[c]}function Lo(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ei;if(!i(c)){if(h=ka(c),h)return h;c=[c]}return kw(c)}function Dw(){return ae(Vt)}function zc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[me]<1||g[me]>Vc(g[un],g[U])?me:g[Ce]<0||g[Ce]>24||g[Ce]===24&&(g[Ae]!==0||g[Ke]!==0||g[st]!==0)?Ce:g[Ae]<0||g[Ae]>59?Ae:g[Ke]<0||g[Ke]>59?Ke:g[st]<0||g[st]>999?st:-1,v(c)._overflowDayOfYear&&(h<un||h>me)&&(h=me),v(c)._overflowWeeks&&h===-1&&(h=et),v(c)._overflowWeekday&&h===-1&&(h=Ze),v(c).overflow=h),c}var Ow=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Iw=/Z|[+-]\d\d(?::?\d\d)?/,Ea=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Yc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nw=/^\/?Date\((-?\d+)/i,Aw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lf(c){var h,g,_=c._i,N=Ow.exec(_)||Mw.exec(_),X,de,Ee,ze,it=Ea.length,xn=Yc.length;if(N){for(v(c).iso=!0,h=0,g=it;h<g;h++)if(Ea[h][1].exec(N[1])){de=Ea[h][0],X=Ea[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(N[3]){for(h=0,g=xn;h<g;h++)if(Yc[h][1].exec(N[3])){Ee=(N[2]||" ")+Yc[h][0];break}if(Ee==null){c._isValid=!1;return}}if(!X&&Ee!=null){c._isValid=!1;return}if(N[4])if(Iw.exec(N[4]))ze="Z";else{c._isValid=!1;return}c._f=de+(Ee||"")+(ze||""),qc(c)}else c._isValid=!1}function Lw(c,h,g,_,N,X){var de=[$w(c),Xh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(N,10)];return X&&de.push(parseInt(X,10)),de}function $w(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function Vw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jw(c,h,g){if(c){var _=nf.indexOf(c),N=new Date(h[0],h[1],h[2]).getDay();if(_!==N)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Bw(c,h,g){if(c)return Fw[c];if(h)return 0;var _=parseInt(g,10),N=_%100,X=(_-N)/100;return X*60+N}function cf(c){var h=Aw.exec(Vw(c._i)),g;if(h){if(g=Lw(h[4],h[3],h[2],h[5],h[6],h[7]),!jw(h[1],g,c))return;c._a=g,c._tzm=Bw(h[8],h[9],h[10]),c._d=Zs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function Ww(c){var h=Nw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(lf(c),c._isValid===!1)delete c._isValid;else return;if(cf(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function ts(c,h,g){return c??h??g}function Hw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Uc(c){var h,g,_=[],N,X,de;if(!c._d){for(N=Hw(c),c._w&&c._a[me]==null&&c._a[U]==null&&zw(c),c._dayOfYear!=null&&(de=ts(c._a[un],N[un]),(c._dayOfYear>Jt(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=Zs(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[me]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=N[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[Ce]===24&&c._a[Ae]===0&&c._a[Ke]===0&&c._a[st]===0&&(c._nextDay=!0,c._a[Ce]=0),c._d=(c._useUTC?Zs:Xb).apply(null,_),X=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ce]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==X&&(v(c).weekdayMismatch=!0)}}function zw(c){var h,g,_,N,X,de,Ee,ze,it;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(X=1,de=4,g=ts(h.GG,c._a[un],Qs(Mt(),1,4).year),_=ts(h.W,1),N=ts(h.E,1),(N<1||N>7)&&(ze=!0)):(X=c._locale._week.dow,de=c._locale._week.doy,it=Qs(Mt(),X,de),g=ts(h.gg,c._a[un],it.year),_=ts(h.w,it.week),h.d!=null?(N=h.d,(N<0||N>6)&&(ze=!0)):h.e!=null?(N=h.e+X,(h.e<0||h.e>6)&&(ze=!0)):N=X),_<1||_>Fo(g,X,de)?v(c)._overflowWeeks=!0:ze!=null?v(c)._overflowWeekday=!0:(Ee=tf(g,_,N,X,de),c._a[un]=Ee.year,c._dayOfYear=Ee.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function qc(c){if(c._f===o.ISO_8601){lf(c);return}if(c._f===o.RFC_2822){cf(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,N,X,de,Ee=h.length,ze=0,it,xn;for(N=ce(c._f,c._locale).match(B)||[],xn=N.length,g=0;g<xn;g++)X=N[g],_=(h.match(Fc(X,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),ze+=_.length),se[X]?(_?v(c).empty=!1:v(c).unusedTokens.push(X),Lc(X,_,c)):c._strict&&!_&&v(c).unusedTokens.push(X);v(c).charsLeftOver=Ee-ze,h.length>0&&v(c).unusedInput.push(h),c._a[Ce]<=12&&v(c).bigHour===!0&&c._a[Ce]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[Ce]=Yw(c._locale,c._a[Ce],c._meridiem),it=v(c).era,it!==null&&(c._a[un]=c._locale.erasConvertYear(it,c._a[un])),Uc(c),zc(c)}function Yw(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function Uw(c){var h,g,_,N,X,de,Ee=!1,ze=c._f.length;if(ze===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(N=0;N<ze;N++)X=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[N],qc(h),k(h)&&(de=!0),X+=v(h).charsLeftOver,X+=v(h).unusedTokens.length*10,v(h).score=X,Ee?X<_&&(_=X,g=h):(_==null||X<_||de)&&(_=X,g=h,de&&(Ee=!0));w(c,g||h)}function qw(c){if(!c._d){var h=Je(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Uc(c)}}function Gw(c){var h=new I(zc(df(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function df(c){var h=c._i,g=c._f;return c._locale=c._locale||Lo(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new I(zc(h)):(p(h)?c._d=h:i(g)?Uw(c):g?qc(c):Kw(c),k(c)||(c._d=null),c))}function Kw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?Ww(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),Uc(c)):a(h)?qw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function uf(c,h,g,_,N){var X={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=N,X._l=g,X._i=c,X._f=h,X._strict=_,Gw(X)}function Mt(c,h,g,_){return uf(c,h,g,_,!1)}var Xw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Zw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function hf(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Mt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function Qw(){var c=[].slice.call(arguments,0);return hf("isBefore",c)}function Jw(){var c=[].slice.call(arguments,0);return hf("isAfter",c)}var eC=function(){return Date.now?Date.now():+new Date},ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tC(c){var h,g=!1,_,N=ti.length;for(h in c)if(l(c,h)&&!(Wt.call(ti,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<N;++_)if(c[ti[_]]){if(g)return!1;parseFloat(c[ti[_]])!==Xe(c[ti[_]])&&(g=!0)}return!0}function nC(){return this._isValid}function oC(){return io(NaN)}function Pa(c){var h=Je(c),g=h.year||0,_=h.quarter||0,N=h.month||0,X=h.week||h.isoWeek||0,de=h.day||0,Ee=h.hour||0,ze=h.minute||0,it=h.second||0,xn=h.millisecond||0;this._isValid=tC(h),this._milliseconds=+xn+it*1e3+ze*6e4+Ee*1e3*60*60,this._days=+de+X*7,this._months=+N+_*3+g*12,this._data={},this._locale=Lo(),this._bubble()}function Da(c){return c instanceof Pa}function Gc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function rC(c,h,g){var _=Math.min(c.length,h.length),N=Math.abs(c.length-h.length),X=0,de;for(de=0;de<_;de++)Xe(c[de])!==Xe(h[de])&&X++;return X+N}function ff(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+L(~~(g/60),2)+h+L(~~g%60,2)})}ff("Z",":"),ff("ZZ",""),_e("Z",at),_e("ZZ",at),yt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=Kc(at,c)});var sC=/([\+\-]|\d\d)/gi;function Kc(c,h){var g=(h||"").match(c),_,N,X;return g===null?null:(_=g[g.length-1]||[],N=(_+"").match(sC)||["-",0,0],X=+(N[1]*60)+Xe(N[2]),X===0?0:N[0]==="+"?X:-X)}function Xc(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Mt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Mt(c).local()}function Zc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function iC(c,h,g){var _=this._offset||0,N;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Kc(at,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(N=Zc(this)),this._offset=c,this._isUTC=!0,N!=null&&this.add(N,"m"),_!==c&&(!h||this._changeInProgress?yf(this,io(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Zc(this)}function aC(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function lC(c){return this.utcOffset(0,c)}function cC(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Zc(this),"m")),this}function dC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Kc(An,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function uC(c){return this.isValid()?(c=c?Mt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function hC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fC(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=df(c),c._a?(h=c._isUTC?b(c._a):Mt(c._a),this._isDSTShifted=this.isValid()&&rC(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pC(){return this.isValid()?!this._isUTC:!1}function mC(){return this.isValid()?this._isUTC:!1}function pf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var gC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function io(c,h){var g=c,_=null,N,X,de;return Da(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=gC.exec(c))?(N=_[1]==="-"?-1:1,g={y:0,d:Xe(_[me])*N,h:Xe(_[Ce])*N,m:Xe(_[Ae])*N,s:Xe(_[Ke])*N,ms:Xe(Gc(_[st]*1e3))*N}):(_=yC.exec(c))?(N=_[1]==="-"?-1:1,g={y:Rr(_[2],N),M:Rr(_[3],N),w:Rr(_[4],N),d:Rr(_[5],N),h:Rr(_[6],N),m:Rr(_[7],N),s:Rr(_[8],N)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=vC(Mt(g.from),Mt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),X=new Pa(g),Da(c)&&l(c,"_locale")&&(X._locale=c._locale),Da(c)&&l(c,"_isValid")&&(X._isValid=c._isValid),X}io.fn=Pa.prototype,io.invalid=oC;function Rr(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function mf(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function vC(c,h){var g;return c.isValid()&&h.isValid()?(h=Xc(h,c),c.isBefore(h)?g=mf(c,h):(g=mf(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function gf(c,h){return function(g,_){var N,X;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=g,g=_,_=X),N=io(g,_),yf(this,N,c),this}}function yf(c,h,g,_){var N=h._milliseconds,X=Gc(h._days),de=Gc(h._months);c.isValid()&&(_=_??!0,de&&Qh(c,Hn(c,"Month")+de*g),X&&yo(c,"Date",Hn(c,"Date")+X*g),N&&c._d.setTime(c._d.valueOf()+N*g),_&&o.updateOffset(c,X||de))}var bC=gf(1,"add"),wC=gf(-1,"subtract");function vf(c){return typeof c=="string"||c instanceof String}function CC(c){return F(c)||p(c)||vf(c)||f(c)||_C(c)||SC(c)||c===null||c===void 0}function SC(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],N,X,de=_.length;for(N=0;N<de;N+=1)X=_[N],g=g||l(c,X);return h&&g}function _C(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&vf(c)}).length===0),h&&g}function xC(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],N,X;for(N=0;N<_.length;N+=1)X=_[N],g=g||l(c,X);return h&&g}function RC(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function TC(c,h){arguments.length===1&&(arguments[0]?CC(arguments[0])?(c=arguments[0],h=void 0):xC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Mt(),_=Xc(g,this).startOf("day"),N=o.calendarFormat(this,_)||"sameElse",X=h&&(G(h[N])?h[N].call(this,g):h[N]);return this.format(X||this.localeData().calendar(N,this,Mt(g)))}function kC(){return new I(this)}function EC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function PC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function DC(c,h,g,_){var N=F(c)?c:Mt(c),X=F(h)?h:Mt(h);return this.isValid()&&N.isValid()&&X.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(N,g):!this.isBefore(N,g))&&(_[1]===")"?this.isBefore(X,g):!this.isAfter(X,g))):!1}function OC(c,h){var g=F(c)?c:Mt(c),_;return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function MC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function IC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function NC(c,h,g){var _,N,X;if(!this.isValid())return NaN;if(_=Xc(c,this),!_.isValid())return NaN;switch(N=(_.utcOffset()-this.utcOffset())*6e4,h=Ne(h),h){case"year":X=Oa(this,_)/12;break;case"month":X=Oa(this,_);break;case"quarter":X=Oa(this,_)/3;break;case"second":X=(this-_)/1e3;break;case"minute":X=(this-_)/6e4;break;case"hour":X=(this-_)/36e5;break;case"day":X=(this-_-N)/864e5;break;case"week":X=(this-_-N)/6048e5;break;default:X=this-_}return g?X:kn(X)}function Oa(c,h){if(c.date()<h.date())return-Oa(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),N,X;return h-_<0?(N=c.clone().add(g-1,"months"),X=(h-_)/(_-N)):(N=c.clone().add(g+1,"months"),X=(h-_)/(N-_)),-(g+X)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function AC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function FC(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function LC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,N,X;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",N="-MM-DD[T]HH:mm:ss.SSS",X=h+'[")]',this.format(g+_+N+X)}function $C(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function VC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?io({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function jC(c){return this.from(Mt(),c)}function BC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?io({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function WC(c){return this.to(Mt(),c)}function bf(c){var h;return c===void 0?this._locale._abbr:(h=Lo(c),h!=null&&(this._locale=h),this)}var wf=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Cf(){return this._locale}var Ma=1e3,ns=60*Ma,Ia=60*ns,Sf=(365*400+97)*24*Ia;function os(c,h){return(c%h+h)%h}function _f(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-Sf:new Date(c,h,g).valueOf()}function xf(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-Sf:Date.UTC(c,h,g)}function HC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?xf:_f,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=os(h+(this._isUTC?0:this.utcOffset()*ns),Ia);break;case"minute":h=this._d.valueOf(),h-=os(h,ns);break;case"second":h=this._d.valueOf(),h-=os(h,Ma);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function zC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?xf:_f,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Ia-os(h+(this._isUTC?0:this.utcOffset()*ns),Ia)-1;break;case"minute":h=this._d.valueOf(),h+=ns-os(h,ns)-1;break;case"second":h=this._d.valueOf(),h+=Ma-os(h,Ma)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function YC(){return this._d.valueOf()-(this._offset||0)*6e4}function UC(){return Math.floor(this.valueOf()/1e3)}function qC(){return new Date(this.valueOf())}function GC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function KC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function XC(){return this.isValid()?this.toISOString():null}function ZC(){return k(this)}function QC(){return w({},v(this))}function JC(){return v(this).overflow}function eS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),_e("N",Qc),_e("NN",Qc),_e("NNN",Qc),_e("NNNN",uS),_e("NNNNN",hS),yt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var N=g._locale.erasParse(c,_,g._strict);N?v(g).era=N:v(g).invalidEra=c}),_e("y",ht),_e("yy",ht),_e("yyy",ht),_e("yyyy",ht),_e("yo",fS),yt(["y","yy","yyy","yyyy"],un),yt(["yo"],function(c,h,g,_){var N;g._locale._eraYearOrdinalRegex&&(N=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[un]=g._locale.eraYearOrdinalParse(c,N):h[un]=parseInt(c,10)});function tS(c,h){var g,_,N,X=this._eras||Lo("en")._eras;for(g=0,_=X.length;g<_;++g){switch(typeof X[g].since){case"string":N=o(X[g].since).startOf("day"),X[g].since=N.valueOf();break}switch(typeof X[g].until){case"undefined":X[g].until=1/0;break;case"string":N=o(X[g].until).startOf("day").valueOf(),X[g].until=N.valueOf();break}}return X}function nS(c,h,g){var _,N,X=this.eras(),de,Ee,ze;for(c=c.toUpperCase(),_=0,N=X.length;_<N;++_)if(de=X[_].name.toUpperCase(),Ee=X[_].abbr.toUpperCase(),ze=X[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(Ee===c)return X[_];break;case"NNNN":if(de===c)return X[_];break;case"NNNNN":if(ze===c)return X[_];break}else if([de,Ee,ze].indexOf(c)>=0)return X[_]}function oS(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function rS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function sS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function iS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function aS(){var c,h,g,_,N=this.localeData().eras();for(c=0,h=N.length;c<h;++c)if(g=N[c].since<=N[c].until?1:-1,_=this.clone().startOf("day").valueOf(),N[c].since<=_&&_<=N[c].until||N[c].until<=_&&_<=N[c].since)return(this.year()-o(N[c].since).year())*g+N[c].offset;return this.year()}function lS(c){return l(this,"_erasNameRegex")||Jc.call(this),c?this._erasNameRegex:this._erasRegex}function cS(c){return l(this,"_erasAbbrRegex")||Jc.call(this),c?this._erasAbbrRegex:this._erasRegex}function dS(c){return l(this,"_erasNarrowRegex")||Jc.call(this),c?this._erasNarrowRegex:this._erasRegex}function Qc(c,h){return h.erasAbbrRegex(c)}function uS(c,h){return h.erasNameRegex(c)}function hS(c,h){return h.erasNarrowRegex(c)}function fS(c,h){return h._eraYearOrdinalRegex||ht}function Jc(){var c=[],h=[],g=[],_=[],N,X,de,Ee,ze,it=this.eras();for(N=0,X=it.length;N<X;++N)de=Wn(it[N].name),Ee=Wn(it[N].abbr),ze=Wn(it[N].narrow),h.push(de),c.push(Ee),g.push(ze),_.push(de),_.push(Ee),_.push(ze);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Na(c,h){j(0,[c,c.length],0,h)}Na("gggg","weekYear"),Na("ggggg","weekYear"),Na("GGGG","isoWeekYear"),Na("GGGGG","isoWeekYear"),_e("G",nn),_e("g",nn),_e("GG",Ue,rt),_e("gg",Ue,rt),_e("GGGG",Oe,Ut),_e("gggg",Oe,Ut),_e("GGGGG",We,Lt),_e("ggggg",We,Lt),xr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=Xe(c)}),xr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function pS(c){return Rf.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function mS(c){return Rf.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function gS(){return Fo(this.year(),1,4)}function yS(){return Fo(this.isoWeekYear(),1,4)}function vS(){var c=this.localeData()._week;return Fo(this.year(),c.dow,c.doy)}function bS(){var c=this.localeData()._week;return Fo(this.weekYear(),c.dow,c.doy)}function Rf(c,h,g,_,N){var X;return c==null?Qs(this,_,N).year:(X=Fo(c,_,N),h>X&&(h=X),wS.call(this,c,h,g,_,N))}function wS(c,h,g,_,N){var X=tf(c,h,g,_,N),de=Zs(X.year,0,X.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),_e("Q",Yt),yt("Q",function(c,h){h[U]=(Xe(c)-1)*3});function CS(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),_e("D",Ue,Qt),_e("DD",Ue,rt),_e("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],me),yt("Do",function(c,h){h[me]=Xe(c.match(Ue)[0])});var Tf=sn("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),_e("DDD",dn),_e("DDDD",Ot),yt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=Xe(c)});function SS(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),_e("m",Ue,cr),_e("mm",Ue,rt),yt(["m","mm"],Ae);var _S=sn("Minutes",!1);j("s",["ss",2],0,"second"),_e("s",Ue,cr),_e("ss",Ue,rt),yt(["s","ss"],Ke);var xS=sn("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_e("S",dn,Yt),_e("SS",dn,rt),_e("SSS",dn,Ot);var ur,kf;for(ur="SSSS";ur.length<=9;ur+="S")_e(ur,ht);function RS(c,h){h[st]=Xe(("0."+c)*1e3)}for(ur="S";ur.length<=9;ur+="S")yt(ur,RS);kf=sn("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function TS(){return this._isUTC?"UTC":""}function kS(){return this._isUTC?"Coordinated Universal Time":""}var ye=I.prototype;ye.add=bC,ye.calendar=TC,ye.clone=kC,ye.diff=NC,ye.endOf=zC,ye.format=$C,ye.from=VC,ye.fromNow=jC,ye.to=BC,ye.toNow=WC,ye.get=yn,ye.invalidAt=JC,ye.isAfter=EC,ye.isBefore=PC,ye.isBetween=DC,ye.isSame=OC,ye.isSameOrAfter=MC,ye.isSameOrBefore=IC,ye.isValid=ZC,ye.lang=wf,ye.locale=bf,ye.localeData=Cf,ye.max=Zw,ye.min=Xw,ye.parsingFlags=QC,ye.set=Xs,ye.startOf=HC,ye.subtract=wC,ye.toArray=GC,ye.toObject=KC,ye.toDate=qC,ye.toISOString=FC,ye.inspect=LC,typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ye.toJSON=XC,ye.toString=AC,ye.unix=UC,ye.valueOf=YC,ye.creationData=eS,ye.eraName=rS,ye.eraNarrow=sS,ye.eraAbbr=iS,ye.eraYear=aS,ye.year=$t,ye.isLeapYear=qt,ye.weekYear=pS,ye.isoWeekYear=mS,ye.quarter=ye.quarters=CS,ye.month=Jh,ye.daysInMonth=qb,ye.week=ye.weeks=tw,ye.isoWeek=ye.isoWeeks=nw,ye.weeksInYear=vS,ye.weeksInWeekYear=bS,ye.isoWeeksInYear=gS,ye.isoWeeksInISOWeekYear=yS,ye.date=Tf,ye.day=ye.days=mw,ye.weekday=gw,ye.isoWeekday=yw,ye.dayOfYear=SS,ye.hour=ye.hours=xw,ye.minute=ye.minutes=_S,ye.second=ye.seconds=xS,ye.millisecond=ye.milliseconds=kf,ye.utcOffset=iC,ye.utc=lC,ye.local=cC,ye.parseZone=dC,ye.hasAlignedHourOffset=uC,ye.isDST=hC,ye.isLocal=pC,ye.isUtcOffset=mC,ye.isUtc=pf,ye.isUTC=pf,ye.zoneAbbr=TS,ye.zoneName=kS,ye.dates=R("dates accessor is deprecated. Use date instead.",Tf),ye.months=R("months accessor is deprecated. Use month instead",Jh),ye.years=R("years accessor is deprecated. Use year instead",$t),ye.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",aC),ye.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fC);function ES(c){return Mt(c*1e3)}function PS(){return Mt.apply(null,arguments).parseZone()}function Ef(c){return c}var ft=H.prototype;ft.calendar=M,ft.longDateFormat=he,ft.invalidDate=re,ft.ordinal=pe,ft.preparse=Ef,ft.postformat=Ef,ft.relativeTime=ge,ft.pastFuture=Re,ft.set=q,ft.eras=tS,ft.erasParse=nS,ft.erasConvertYear=oS,ft.erasAbbrRegex=cS,ft.erasNameRegex=lS,ft.erasNarrowRegex=dS,ft.months=Hb,ft.monthsShort=zb,ft.monthsParse=Ub,ft.monthsRegex=Kb,ft.monthsShortRegex=Gb,ft.week=Zb,ft.firstDayOfYear=ew,ft.firstDayOfWeek=Jb,ft.weekdays=dw,ft.weekdaysMin=hw,ft.weekdaysShort=uw,ft.weekdaysParse=pw,ft.weekdaysRegex=vw,ft.weekdaysShortRegex=bw,ft.weekdaysMinRegex=ww,ft.isPM=Sw,ft.meridiem=Rw;function Aa(c,h,g,_){var N=Lo(),X=b().set(_,h);return N[g](X,c)}function Pf(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return Aa(c,h,g,"month");var _,N=[];for(_=0;_<12;_++)N[_]=Aa(c,_,g,"month");return N}function ed(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var N=Lo(),X=c?N._week.dow:0,de,Ee=[];if(g!=null)return Aa(h,(g+X)%7,_,"day");for(de=0;de<7;de++)Ee[de]=Aa(h,(de+X)%7,_,"day");return Ee}function DS(c,h){return Pf(c,h,"months")}function OS(c,h){return Pf(c,h,"monthsShort")}function MS(c,h,g){return ed(c,h,g,"weekdays")}function IS(c,h,g){return ed(c,h,g,"weekdaysShort")}function NS(c,h,g){return ed(c,h,g,"weekdaysMin")}dr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=Xe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",dr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",Lo);var $o=Math.abs;function AS(){var c=this._data;return this._milliseconds=$o(this._milliseconds),this._days=$o(this._days),this._months=$o(this._months),c.milliseconds=$o(c.milliseconds),c.seconds=$o(c.seconds),c.minutes=$o(c.minutes),c.hours=$o(c.hours),c.months=$o(c.months),c.years=$o(c.years),this}function Df(c,h,g,_){var N=io(h,g);return c._milliseconds+=_*N._milliseconds,c._days+=_*N._days,c._months+=_*N._months,c._bubble()}function FS(c,h){return Df(this,c,h,1)}function LS(c,h){return Df(this,c,h,-1)}function Of(c){return c<0?Math.floor(c):Math.ceil(c)}function $S(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,N,X,de,Ee,ze;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=Of(td(g)+h)*864e5,h=0,g=0),_.milliseconds=c%1e3,N=kn(c/1e3),_.seconds=N%60,X=kn(N/60),_.minutes=X%60,de=kn(X/60),_.hours=de%24,h+=kn(de/24),ze=kn(Mf(h)),g+=ze,h-=Of(td(ze)),Ee=kn(g/12),g%=12,_.days=h,_.months=g,_.years=Ee,this}function Mf(c){return c*4800/146097}function td(c){return c*146097/4800}function VS(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ne(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+Mf(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(td(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function Vo(c){return function(){return this.as(c)}}var If=Vo("ms"),jS=Vo("s"),BS=Vo("m"),WS=Vo("h"),HS=Vo("d"),zS=Vo("w"),YS=Vo("M"),US=Vo("Q"),qS=Vo("y"),GS=If;function KS(){return io(this)}function XS(c){return c=Ne(c),this.isValid()?this[c+"s"]():NaN}function Tr(c){return function(){return this.isValid()?this._data[c]:NaN}}var ZS=Tr("milliseconds"),QS=Tr("seconds"),JS=Tr("minutes"),e0=Tr("hours"),t0=Tr("days"),n0=Tr("months"),o0=Tr("years");function r0(){return kn(this.days()/7)}var jo=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function s0(c,h,g,_,N){return N.relativeTime(h||1,!!g,c,_)}function i0(c,h,g,_){var N=io(c).abs(),X=jo(N.as("s")),de=jo(N.as("m")),Ee=jo(N.as("h")),ze=jo(N.as("d")),it=jo(N.as("M")),xn=jo(N.as("w")),Bo=jo(N.as("y")),hr=X<=g.ss&&["s",X]||X<g.s&&["ss",X]||de<=1&&["m"]||de<g.m&&["mm",de]||Ee<=1&&["h"]||Ee<g.h&&["hh",Ee]||ze<=1&&["d"]||ze<g.d&&["dd",ze];return g.w!=null&&(hr=hr||xn<=1&&["w"]||xn<g.w&&["ww",xn]),hr=hr||it<=1&&["M"]||it<g.M&&["MM",it]||Bo<=1&&["y"]||["yy",Bo],hr[2]=h,hr[3]=+c>0,hr[4]=_,s0.apply(null,hr)}function a0(c){return c===void 0?jo:typeof c=="function"?(jo=c,!0):!1}function l0(c,h){return rs[c]===void 0?!1:h===void 0?rs[c]:(rs[c]=h,c==="s"&&(rs.ss=h-1),!0)}function c0(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=rs,N,X;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},rs,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),N=this.localeData(),X=i0(this,!g,_,N),g&&(X=N.pastFuture(+this,X)),N.postformat(X)}var nd=Math.abs;function ss(c){return(c>0)-(c<0)||+c}function Fa(){if(!this.isValid())return this.localeData().invalidDate();var c=nd(this._milliseconds)/1e3,h=nd(this._days),g=nd(this._months),_,N,X,de,Ee=this.asSeconds(),ze,it,xn,Bo;return Ee?(_=kn(c/60),N=kn(_/60),c%=60,_%=60,X=kn(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",ze=Ee<0?"-":"",it=ss(this._months)!==ss(Ee)?"-":"",xn=ss(this._days)!==ss(Ee)?"-":"",Bo=ss(this._milliseconds)!==ss(Ee)?"-":"",ze+"P"+(X?it+X+"Y":"")+(g?it+g+"M":"")+(h?xn+h+"D":"")+(N||_||c?"T":"")+(N?Bo+N+"H":"")+(_?Bo+_+"M":"")+(c?Bo+de+"S":"")):"P0D"}var lt=Pa.prototype;lt.isValid=nC,lt.abs=AS,lt.add=FS,lt.subtract=LS,lt.as=VS,lt.asMilliseconds=If,lt.asSeconds=jS,lt.asMinutes=BS,lt.asHours=WS,lt.asDays=HS,lt.asWeeks=zS,lt.asMonths=YS,lt.asQuarters=US,lt.asYears=qS,lt.valueOf=GS,lt._bubble=$S,lt.clone=KS,lt.get=XS,lt.milliseconds=ZS,lt.seconds=QS,lt.minutes=JS,lt.hours=e0,lt.days=t0,lt.weeks=r0,lt.months=n0,lt.years=o0,lt.humanize=c0,lt.toISOString=Fa,lt.toString=Fa,lt.toJSON=Fa,lt.locale=bf,lt.localeData=Cf,lt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fa),lt.lang=wf,j("X",0,0,"unix"),j("x",0,0,"valueOf"),_e("x",nn),_e("X",Zt),yt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),yt("x",function(c,h,g){g._d=new Date(Xe(c))});//! moment.js
|
|
301
|
-
return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Qw,o.max=Jw,o.now=eC,o.utc=b,o.unix=ES,o.months=DS,o.isDate=p,o.locale=dr,o.invalid=x,o.duration=io,o.isMoment=F,o.weekdays=MS,o.parseZone=PS,o.localeData
|
|
300
|
+
`+new Error().stack),g=!1}return h.apply(this,arguments)},h)}var $={};function K(c,h){o.deprecationHandler!=null&&o.deprecationHandler(c,h),$[c]||(z(h),$[c]=!0)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null;function G(c){return typeof Function<"u"&&c instanceof Function||Object.prototype.toString.call(c)==="[object Function]"}function q(c){var h,g;for(g in c)l(c,g)&&(h=c[g],G(h)?this[g]=h:this["_"+g]=h);this._config=c,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Y(c,h){var g=w({},c),_;for(_ in h)l(h,_)&&(a(c[_])&&a(h[_])?(g[_]={},w(g[_],c[_]),w(g[_],h[_])):h[_]!=null?g[_]=h[_]:delete g[_]);for(_ in c)l(c,_)&&!l(h,_)&&a(c[_])&&(g[_]=w({},g[_]));return g}function H(c){c!=null&&this.set(c)}var ae;Object.keys?ae=Object.keys:ae=function(c){var h,g=[];for(h in c)l(c,h)&&g.push(h);return g};var A={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function M(c,h,g){var _=this._calendar[c]||this._calendar.sameElse;return G(_)?_.call(h,g):_}function L(c,h,g){var _=""+Math.abs(c),N=h-_.length,X=c>=0;return(X?g?"+":"":"-")+Math.pow(10,Math.max(0,N)).toString().substr(1)+_}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oe={},se={};function j(c,h,g,_){var N=_;typeof _=="string"&&(N=function(){return this[_]()}),c&&(se[c]=N),h&&(se[h[0]]=function(){return L(N.apply(this,arguments),h[1],h[2])}),g&&(se[g]=function(){return this.localeData().ordinal(N.apply(this,arguments),c)})}function ee(c){return c.match(/\[[\s\S]/)?c.replace(/^\[|\]$/g,""):c.replace(/\\/g,"")}function J(c){var h=c.match(B),g,_;for(g=0,_=h.length;g<_;g++)se[h[g]]?h[g]=se[h[g]]:h[g]=ee(h[g]);return function(N){var X="",de;for(de=0;de<_;de++)X+=G(h[de])?h[de].call(N,c):h[de];return X}}function te(c,h){return c.isValid()?(h=ce(h,c.localeData()),oe[h]=oe[h]||J(h),oe[h](c)):c.localeData().invalidDate()}function ce(c,h){var g=5;function _(N){return h.longDateFormat(N)||N}for(ne.lastIndex=0;g>=0&&ne.test(c);)c=c.replace(ne,_),ne.lastIndex=0,g-=1;return c}var le={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"};function he(c){var h=this._longDateFormat[c],g=this._longDateFormat[c.toUpperCase()];return h||!g?h:(this._longDateFormat[c]=g.match(B).map(function(_){return _==="MMMM"||_==="MM"||_==="DD"||_==="dddd"?_.slice(1):_}).join(""),this._longDateFormat[c])}var W="Invalid date";function re(){return this._invalidDate}var Z="%d",fe=/\d{1,2}/;function pe(c){return this._ordinal.replace("%d",c)}var be={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ge(c,h,g,_){var N=this._relativeTime[g];return G(N)?N(c,h,g,_):N.replace(/%d/i,c)}function Re(c,h){var g=this._relativeTime[c>0?"future":"past"];return G(g)?g(h):g.replace(/%s/i,h)}var Ve={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ne(c){return typeof c=="string"?Ve[c]||Ve[c.toLowerCase()]:void 0}function Je(c){var h={},g,_;for(_ in c)l(c,_)&&(g=Ne(_),g&&(h[g]=c[_]));return h}var ke={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ut(c){var h=[],g;for(g in c)l(c,g)&&h.push({unit:g,priority:ke[g]});return h.sort(function(_,N){return _.priority-N.priority}),h}var Yt=/\d/,rt=/\d\d/,Ot=/\d{3}/,Ut=/\d{4}/,Lt=/[+-]?\d{6}/,Ue=/\d\d?/,Be=/\d\d\d\d?/,rn=/\d\d\d\d\d\d?/,dn=/\d{1,3}/,Oe=/\d{1,4}/,We=/[+-]?\d{1,6}/,ht=/\d+/,nn=/[+-]?\d+/,An=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,Zt=/[+-]?\d+(\.\d{1,3})?/,pn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qt=/^[1-9]\d?/,cr=/^([1-9]\d|\d)/,He;He={};function _e(c,h,g){He[c]=G(h)?h:function(_,N){return _&&g?g:h}}function Fc(c,h){return l(He,c)?He[c](h._strict,h._locale):new RegExp(Ra(c))}function Ra(c){return Wn(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(h,g,_,N,X){return g||_||N||X}))}function Wn(c){return c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function kn(c){return c<0?Math.ceil(c)||0:Math.floor(c)}function Xe(c){var h=+c,g=0;return h!==0&&isFinite(h)&&(g=kn(h)),g}var Jr={};function yt(c,h){var g,_=h,N;for(typeof c=="string"&&(c=[c]),f(h)&&(_=function(X,de){de[h]=Xe(X)}),N=c.length,g=0;g<N;g++)Jr[c[g]]=_}function xr(c,h){yt(c,function(g,_,N,X){N._w=N._w||{},h(g,N._w,N,X)})}function Lc(c,h,g){h!=null&&l(Jr,c)&&Jr[c](h,g._a,g,c)}function es(c){return c%4===0&&c%100!==0||c%400===0}var un=0,U=1,me=2,Ce=3,Ae=4,Ke=5,st=6,et=7,Ze=8;j("Y",0,0,function(){var c=this.year();return c<=9999?L(c,4):"+"+c}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),_e("Y",nn),_e("YY",Ue,rt),_e("YYYY",Oe,Ut),_e("YYYYY",We,Lt),_e("YYYYYY",We,Lt),yt(["YYYYY","YYYYYY"],un),yt("YYYY",function(c,h){h[un]=c.length===2?o.parseTwoDigitYear(c):Xe(c)}),yt("YY",function(c,h){h[un]=o.parseTwoDigitYear(c)}),yt("Y",function(c,h){h[un]=parseInt(c,10)});function Jt(c){return es(c)?366:365}o.parseTwoDigitYear=function(c){return Xe(c)+(Xe(c)>68?1900:2e3)};var $t=sn("FullYear",!0);function qt(){return es(this.year())}function sn(c,h){return function(g){return g!=null?(yo(this,c,g),o.updateOffset(this,h),this):Hn(this,c)}}function Hn(c,h){if(!c.isValid())return NaN;var g=c._d,_=c._isUTC;switch(h){case"Milliseconds":return _?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return _?g.getUTCSeconds():g.getSeconds();case"Minutes":return _?g.getUTCMinutes():g.getMinutes();case"Hours":return _?g.getUTCHours():g.getHours();case"Date":return _?g.getUTCDate():g.getDate();case"Day":return _?g.getUTCDay():g.getDay();case"Month":return _?g.getUTCMonth():g.getMonth();case"FullYear":return _?g.getUTCFullYear():g.getFullYear();default:return NaN}}function yo(c,h,g){var _,N,X,de,Ee;if(!(!c.isValid()||isNaN(g))){switch(_=c._d,N=c._isUTC,h){case"Milliseconds":return void(N?_.setUTCMilliseconds(g):_.setMilliseconds(g));case"Seconds":return void(N?_.setUTCSeconds(g):_.setSeconds(g));case"Minutes":return void(N?_.setUTCMinutes(g):_.setMinutes(g));case"Hours":return void(N?_.setUTCHours(g):_.setHours(g));case"Date":return void(N?_.setUTCDate(g):_.setDate(g));case"FullYear":break;default:return}X=g,de=c.month(),Ee=c.date(),Ee=Ee===29&&de===1&&!es(X)?28:Ee,N?_.setUTCFullYear(X,de,Ee):_.setFullYear(X,de,Ee)}}function yn(c){return c=Ne(c),G(this[c])?this[c]():this}function Xs(c,h){if(typeof c=="object"){c=Je(c);var g=ut(c),_,N=g.length;for(_=0;_<N;_++)this[g[_].unit](c[g[_].unit])}else if(c=Ne(c),G(this[c]))return this[c](h);return this}function $c(c,h){return(c%h+h)%h}var Wt;Array.prototype.indexOf?Wt=Array.prototype.indexOf:Wt=function(c){var h;for(h=0;h<this.length;++h)if(this[h]===c)return h;return-1};function Vc(c,h){if(isNaN(c)||isNaN(h))return NaN;var g=$c(h,12);return c+=(h-g)/12,g===1?es(c)?29:28:31-g%7%2}j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(c){return this.localeData().monthsShort(this,c)}),j("MMMM",0,0,function(c){return this.localeData().months(this,c)}),_e("M",Ue,Qt),_e("MM",Ue,rt),_e("MMM",function(c,h){return h.monthsShortRegex(c)}),_e("MMMM",function(c,h){return h.monthsRegex(c)}),yt(["M","MM"],function(c,h){h[U]=Xe(c)-1}),yt(["MMM","MMMM"],function(c,h,g,_){var N=g._locale.monthsParse(c,_,g._strict);N!=null?h[U]=N:v(g).invalidMonth=c});var jb="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xh="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Zh=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Bb=pn,Wb=pn;function Hb(c,h){return c?i(this._months)?this._months[c.month()]:this._months[(this._months.isFormat||Zh).test(h)?"format":"standalone"][c.month()]:i(this._months)?this._months:this._months.standalone}function zb(c,h){return c?i(this._monthsShort)?this._monthsShort[c.month()]:this._monthsShort[Zh.test(h)?"format":"standalone"][c.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Yb(c,h,g){var _,N,X,de=c.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],_=0;_<12;++_)X=b([2e3,_]),this._shortMonthsParse[_]=this.monthsShort(X,"").toLocaleLowerCase(),this._longMonthsParse[_]=this.months(X,"").toLocaleLowerCase();return g?h==="MMM"?(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:null):(N=Wt.call(this._longMonthsParse,de),N!==-1?N:null):h==="MMM"?(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:(N=Wt.call(this._longMonthsParse,de),N!==-1?N:null)):(N=Wt.call(this._longMonthsParse,de),N!==-1?N:(N=Wt.call(this._shortMonthsParse,de),N!==-1?N:null))}function Ub(c,h,g){var _,N,X;if(this._monthsParseExact)return Yb.call(this,c,h,g);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),_=0;_<12;_++){if(N=b([2e3,_]),g&&!this._longMonthsParse[_]&&(this._longMonthsParse[_]=new RegExp("^"+this.months(N,"").replace(".","")+"$","i"),this._shortMonthsParse[_]=new RegExp("^"+this.monthsShort(N,"").replace(".","")+"$","i")),!g&&!this._monthsParse[_]&&(X="^"+this.months(N,"")+"|^"+this.monthsShort(N,""),this._monthsParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="MMMM"&&this._longMonthsParse[_].test(c))return _;if(g&&h==="MMM"&&this._shortMonthsParse[_].test(c))return _;if(!g&&this._monthsParse[_].test(c))return _}}function Qh(c,h){if(!c.isValid())return c;if(typeof h=="string"){if(/^\d+$/.test(h))h=Xe(h);else if(h=c.localeData().monthsParse(h),!f(h))return c}var g=h,_=c.date();return _=_<29?_:Math.min(_,Vc(c.year(),g)),c._isUTC?c._d.setUTCMonth(g,_):c._d.setMonth(g,_),c}function Jh(c){return c!=null?(Qh(this,c),o.updateOffset(this,!0),this):Hn(this,"Month")}function qb(){return Vc(this.year(),this.month())}function Gb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||ef.call(this),c?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Bb),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}function Kb(c){return this._monthsParseExact?(l(this,"_monthsRegex")||ef.call(this),c?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Wb),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}function ef(){function c(ze,it){return it.length-ze.length}var h=[],g=[],_=[],N,X,de,Ee;for(N=0;N<12;N++)X=b([2e3,N]),de=Wn(this.monthsShort(X,"")),Ee=Wn(this.months(X,"")),h.push(de),g.push(Ee),_.push(Ee),_.push(de);h.sort(c),g.sort(c),_.sort(c),this._monthsRegex=new RegExp("^("+_.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Xb(c,h,g,_,N,X,de){var Ee;return c<100&&c>=0?(Ee=new Date(c+400,h,g,_,N,X,de),isFinite(Ee.getFullYear())&&Ee.setFullYear(c)):Ee=new Date(c,h,g,_,N,X,de),Ee}function Zs(c){var h,g;return c<100&&c>=0?(g=Array.prototype.slice.call(arguments),g[0]=c+400,h=new Date(Date.UTC.apply(null,g)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(c)):h=new Date(Date.UTC.apply(null,arguments)),h}function Ta(c,h,g){var _=7+h-g,N=(7+Zs(c,0,_).getUTCDay()-h)%7;return-N+_-1}function tf(c,h,g,_,N){var X=(7+g-_)%7,de=Ta(c,_,N),Ee=1+7*(h-1)+X+de,ze,it;return Ee<=0?(ze=c-1,it=Jt(ze)+Ee):Ee>Jt(c)?(ze=c+1,it=Ee-Jt(c)):(ze=c,it=Ee),{year:ze,dayOfYear:it}}function Qs(c,h,g){var _=Ta(c.year(),h,g),N=Math.floor((c.dayOfYear()-_-1)/7)+1,X,de;return N<1?(de=c.year()-1,X=N+Lo(de,h,g)):N>Lo(c.year(),h,g)?(X=N-Lo(c.year(),h,g),de=c.year()+1):(de=c.year(),X=N),{week:X,year:de}}function Lo(c,h,g){var _=Ta(c,h,g),N=Ta(c+1,h,g);return(Jt(c)-_+N)/7}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),_e("w",Ue,Qt),_e("ww",Ue,rt),_e("W",Ue,Qt),_e("WW",Ue,rt),xr(["w","ww","W","WW"],function(c,h,g,_){h[_.substr(0,1)]=Xe(c)});function Zb(c){return Qs(c,this._week.dow,this._week.doy).week}var Qb={dow:0,doy:6};function Jb(){return this._week.dow}function ew(){return this._week.doy}function tw(c){var h=this.localeData().week(this);return c==null?h:this.add((c-h)*7,"d")}function nw(c){var h=Qs(this,1,4).week;return c==null?h:this.add((c-h)*7,"d")}j("d",0,"do","day"),j("dd",0,0,function(c){return this.localeData().weekdaysMin(this,c)}),j("ddd",0,0,function(c){return this.localeData().weekdaysShort(this,c)}),j("dddd",0,0,function(c){return this.localeData().weekdays(this,c)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),_e("d",Ue),_e("e",Ue),_e("E",Ue),_e("dd",function(c,h){return h.weekdaysMinRegex(c)}),_e("ddd",function(c,h){return h.weekdaysShortRegex(c)}),_e("dddd",function(c,h){return h.weekdaysRegex(c)}),xr(["dd","ddd","dddd"],function(c,h,g,_){var N=g._locale.weekdaysParse(c,_,g._strict);N!=null?h.d=N:v(g).invalidWeekday=c}),xr(["d","e","E"],function(c,h,g,_){h[_]=Xe(c)});function ow(c,h){return typeof c!="string"?c:isNaN(c)?(c=h.weekdaysParse(c),typeof c=="number"?c:null):parseInt(c,10)}function rw(c,h){return typeof c=="string"?h.weekdaysParse(c)%7||7:isNaN(c)?null:c}function jc(c,h){return c.slice(h,7).concat(c.slice(0,h))}var sw="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),nf="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),iw="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),aw=pn,lw=pn,cw=pn;function dw(c,h){var g=i(this._weekdays)?this._weekdays:this._weekdays[c&&c!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"];return c===!0?jc(g,this._week.dow):c?g[c.day()]:g}function uw(c){return c===!0?jc(this._weekdaysShort,this._week.dow):c?this._weekdaysShort[c.day()]:this._weekdaysShort}function hw(c){return c===!0?jc(this._weekdaysMin,this._week.dow):c?this._weekdaysMin[c.day()]:this._weekdaysMin}function fw(c,h,g){var _,N,X,de=c.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],_=0;_<7;++_)X=b([2e3,1]).day(_),this._minWeekdaysParse[_]=this.weekdaysMin(X,"").toLocaleLowerCase(),this._shortWeekdaysParse[_]=this.weekdaysShort(X,"").toLocaleLowerCase(),this._weekdaysParse[_]=this.weekdays(X,"").toLocaleLowerCase();return g?h==="dddd"?(N=Wt.call(this._weekdaysParse,de),N!==-1?N:null):h==="ddd"?(N=Wt.call(this._shortWeekdaysParse,de),N!==-1?N:null):(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null):h==="dddd"?(N=Wt.call(this._weekdaysParse,de),N!==-1||(N=Wt.call(this._shortWeekdaysParse,de),N!==-1)?N:(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null)):h==="ddd"?(N=Wt.call(this._shortWeekdaysParse,de),N!==-1||(N=Wt.call(this._weekdaysParse,de),N!==-1)?N:(N=Wt.call(this._minWeekdaysParse,de),N!==-1?N:null)):(N=Wt.call(this._minWeekdaysParse,de),N!==-1||(N=Wt.call(this._weekdaysParse,de),N!==-1)?N:(N=Wt.call(this._shortWeekdaysParse,de),N!==-1?N:null))}function pw(c,h,g){var _,N,X;if(this._weekdaysParseExact)return fw.call(this,c,h,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),_=0;_<7;_++){if(N=b([2e3,1]).day(_),g&&!this._fullWeekdaysParse[_]&&(this._fullWeekdaysParse[_]=new RegExp("^"+this.weekdays(N,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[_]=new RegExp("^"+this.weekdaysShort(N,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[_]=new RegExp("^"+this.weekdaysMin(N,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[_]||(X="^"+this.weekdays(N,"")+"|^"+this.weekdaysShort(N,"")+"|^"+this.weekdaysMin(N,""),this._weekdaysParse[_]=new RegExp(X.replace(".",""),"i")),g&&h==="dddd"&&this._fullWeekdaysParse[_].test(c))return _;if(g&&h==="ddd"&&this._shortWeekdaysParse[_].test(c))return _;if(g&&h==="dd"&&this._minWeekdaysParse[_].test(c))return _;if(!g&&this._weekdaysParse[_].test(c))return _}}function mw(c){if(!this.isValid())return c!=null?this:NaN;var h=Hn(this,"Day");return c!=null?(c=ow(c,this.localeData()),this.add(c-h,"d")):h}function gw(c){if(!this.isValid())return c!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return c==null?h:this.add(c-h,"d")}function yw(c){if(!this.isValid())return c!=null?this:NaN;if(c!=null){var h=rw(c,this.localeData());return this.day(this.day()%7?h:h-7)}else return this.day()||7}function vw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=aw),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}function bw(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=lw),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ww(c){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Bc.call(this),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cw),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Bc(){function c(xn,Wo){return Wo.length-xn.length}var h=[],g=[],_=[],N=[],X,de,Ee,ze,it;for(X=0;X<7;X++)de=b([2e3,1]).day(X),Ee=Wn(this.weekdaysMin(de,"")),ze=Wn(this.weekdaysShort(de,"")),it=Wn(this.weekdays(de,"")),h.push(Ee),g.push(ze),_.push(it),N.push(Ee),N.push(ze),N.push(it);h.sort(c),g.sort(c),_.sort(c),N.sort(c),this._weekdaysRegex=new RegExp("^("+N.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+h.join("|")+")","i")}function Wc(){return this.hours()%12||12}function Cw(){return this.hours()||24}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Wc),j("k",["kk",2],0,Cw),j("hmm",0,0,function(){return""+Wc.apply(this)+L(this.minutes(),2)}),j("hmmss",0,0,function(){return""+Wc.apply(this)+L(this.minutes(),2)+L(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+L(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+L(this.minutes(),2)+L(this.seconds(),2)});function of(c,h){j(c,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}of("a",!0),of("A",!1);function rf(c,h){return h._meridiemParse}_e("a",rf),_e("A",rf),_e("H",Ue,cr),_e("h",Ue,Qt),_e("k",Ue,Qt),_e("HH",Ue,rt),_e("hh",Ue,rt),_e("kk",Ue,rt),_e("hmm",Be),_e("hmmss",rn),_e("Hmm",Be),_e("Hmmss",rn),yt(["H","HH"],Ce),yt(["k","kk"],function(c,h,g){var _=Xe(c);h[Ce]=_===24?0:_}),yt(["a","A"],function(c,h,g){g._isPm=g._locale.isPM(c),g._meridiem=c}),yt(["h","hh"],function(c,h,g){h[Ce]=Xe(c),v(g).bigHour=!0}),yt("hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_)),v(g).bigHour=!0}),yt("hmmss",function(c,h,g){var _=c.length-4,N=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ke]=Xe(c.substr(N)),v(g).bigHour=!0}),yt("Hmm",function(c,h,g){var _=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_))}),yt("Hmmss",function(c,h,g){var _=c.length-4,N=c.length-2;h[Ce]=Xe(c.substr(0,_)),h[Ae]=Xe(c.substr(_,2)),h[Ke]=Xe(c.substr(N))});function Sw(c){return(c+"").toLowerCase().charAt(0)==="p"}var _w=/[ap]\.?m?\.?/i,xw=sn("Hours",!0);function Rw(c,h,g){return c>11?g?"pm":"PM":g?"am":"AM"}var sf={calendar:A,longDateFormat:le,invalidDate:W,ordinal:Z,dayOfMonthOrdinalParse:fe,relativeTime:be,months:jb,monthsShort:Xh,week:Qb,weekdays:sw,weekdaysMin:iw,weekdaysShort:nf,meridiemParse:_w},Vt={},Js={},ei;function Tw(c,h){var g,_=Math.min(c.length,h.length);for(g=0;g<_;g+=1)if(c[g]!==h[g])return g;return _}function af(c){return c&&c.toLowerCase().replace("_","-")}function kw(c){for(var h=0,g,_,N,X;h<c.length;){for(X=af(c[h]).split("-"),g=X.length,_=af(c[h+1]),_=_?_.split("-"):null;g>0;){if(N=ka(X.slice(0,g).join("-")),N)return N;if(_&&_.length>=g&&Tw(X,_)>=g-1)break;g--}h++}return ei}function Ew(c){return!!(c&&c.match("^[^/\\\\]*$"))}function ka(c){var h=null,g;if(Vt[c]===void 0&&e&&e.exports&&Ew(c))try{h=ei._abbr,g=eF,g("./locale/"+c),dr(h)}catch{Vt[c]=null}return Vt[c]}function dr(c,h){var g;return c&&(u(h)?g=$o(c):g=Hc(c,h),g?ei=g:typeof console<"u"&&console.warn&&console.warn("Locale "+c+" not found. Did you forget to load it?")),ei._abbr}function Hc(c,h){if(h!==null){var g,_=sf;if(h.abbr=c,Vt[c]!=null)K("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),_=Vt[c]._config;else if(h.parentLocale!=null)if(Vt[h.parentLocale]!=null)_=Vt[h.parentLocale]._config;else if(g=ka(h.parentLocale),g!=null)_=g._config;else return Js[h.parentLocale]||(Js[h.parentLocale]=[]),Js[h.parentLocale].push({name:c,config:h}),null;return Vt[c]=new H(Y(_,h)),Js[c]&&Js[c].forEach(function(N){Hc(N.name,N.config)}),dr(c),Vt[c]}else return delete Vt[c],null}function Pw(c,h){if(h!=null){var g,_,N=sf;Vt[c]!=null&&Vt[c].parentLocale!=null?Vt[c].set(Y(Vt[c]._config,h)):(_=ka(c),_!=null&&(N=_._config),h=Y(N,h),_==null&&(h.abbr=c),g=new H(h),g.parentLocale=Vt[c],Vt[c]=g),dr(c)}else Vt[c]!=null&&(Vt[c].parentLocale!=null?(Vt[c]=Vt[c].parentLocale,c===dr()&&dr(c)):Vt[c]!=null&&delete Vt[c]);return Vt[c]}function $o(c){var h;if(c&&c._locale&&c._locale._abbr&&(c=c._locale._abbr),!c)return ei;if(!i(c)){if(h=ka(c),h)return h;c=[c]}return kw(c)}function Dw(){return ae(Vt)}function zc(c){var h,g=c._a;return g&&v(c).overflow===-2&&(h=g[U]<0||g[U]>11?U:g[me]<1||g[me]>Vc(g[un],g[U])?me:g[Ce]<0||g[Ce]>24||g[Ce]===24&&(g[Ae]!==0||g[Ke]!==0||g[st]!==0)?Ce:g[Ae]<0||g[Ae]>59?Ae:g[Ke]<0||g[Ke]>59?Ke:g[st]<0||g[st]>999?st:-1,v(c)._overflowDayOfYear&&(h<un||h>me)&&(h=me),v(c)._overflowWeeks&&h===-1&&(h=et),v(c)._overflowWeekday&&h===-1&&(h=Ze),v(c).overflow=h),c}var Ow=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Mw=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Iw=/Z|[+-]\d\d(?::?\d\d)?/,Ea=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Yc=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Nw=/^\/?Date\((-?\d+)/i,Aw=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Fw={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function lf(c){var h,g,_=c._i,N=Ow.exec(_)||Mw.exec(_),X,de,Ee,ze,it=Ea.length,xn=Yc.length;if(N){for(v(c).iso=!0,h=0,g=it;h<g;h++)if(Ea[h][1].exec(N[1])){de=Ea[h][0],X=Ea[h][2]!==!1;break}if(de==null){c._isValid=!1;return}if(N[3]){for(h=0,g=xn;h<g;h++)if(Yc[h][1].exec(N[3])){Ee=(N[2]||" ")+Yc[h][0];break}if(Ee==null){c._isValid=!1;return}}if(!X&&Ee!=null){c._isValid=!1;return}if(N[4])if(Iw.exec(N[4]))ze="Z";else{c._isValid=!1;return}c._f=de+(Ee||"")+(ze||""),qc(c)}else c._isValid=!1}function Lw(c,h,g,_,N,X){var de=[$w(c),Xh.indexOf(h),parseInt(g,10),parseInt(_,10),parseInt(N,10)];return X&&de.push(parseInt(X,10)),de}function $w(c){var h=parseInt(c,10);return h<=49?2e3+h:h<=999?1900+h:h}function Vw(c){return c.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jw(c,h,g){if(c){var _=nf.indexOf(c),N=new Date(h[0],h[1],h[2]).getDay();if(_!==N)return v(g).weekdayMismatch=!0,g._isValid=!1,!1}return!0}function Bw(c,h,g){if(c)return Fw[c];if(h)return 0;var _=parseInt(g,10),N=_%100,X=(_-N)/100;return X*60+N}function cf(c){var h=Aw.exec(Vw(c._i)),g;if(h){if(g=Lw(h[4],h[3],h[2],h[5],h[6],h[7]),!jw(h[1],g,c))return;c._a=g,c._tzm=Bw(h[8],h[9],h[10]),c._d=Zs.apply(null,c._a),c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),v(c).rfc2822=!0}else c._isValid=!1}function Ww(c){var h=Nw.exec(c._i);if(h!==null){c._d=new Date(+h[1]);return}if(lf(c),c._isValid===!1)delete c._isValid;else return;if(cf(c),c._isValid===!1)delete c._isValid;else return;c._strict?c._isValid=!1:o.createFromInputFallback(c)}o.createFromInputFallback=R("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(c){c._d=new Date(c._i+(c._useUTC?" UTC":""))});function ts(c,h,g){return c??h??g}function Hw(c){var h=new Date(o.now());return c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()]}function Uc(c){var h,g,_=[],N,X,de;if(!c._d){for(N=Hw(c),c._w&&c._a[me]==null&&c._a[U]==null&&zw(c),c._dayOfYear!=null&&(de=ts(c._a[un],N[un]),(c._dayOfYear>Jt(de)||c._dayOfYear===0)&&(v(c)._overflowDayOfYear=!0),g=Zs(de,0,c._dayOfYear),c._a[U]=g.getUTCMonth(),c._a[me]=g.getUTCDate()),h=0;h<3&&c._a[h]==null;++h)c._a[h]=_[h]=N[h];for(;h<7;h++)c._a[h]=_[h]=c._a[h]==null?h===2?1:0:c._a[h];c._a[Ce]===24&&c._a[Ae]===0&&c._a[Ke]===0&&c._a[st]===0&&(c._nextDay=!0,c._a[Ce]=0),c._d=(c._useUTC?Zs:Xb).apply(null,_),X=c._useUTC?c._d.getUTCDay():c._d.getDay(),c._tzm!=null&&c._d.setUTCMinutes(c._d.getUTCMinutes()-c._tzm),c._nextDay&&(c._a[Ce]=24),c._w&&typeof c._w.d<"u"&&c._w.d!==X&&(v(c).weekdayMismatch=!0)}}function zw(c){var h,g,_,N,X,de,Ee,ze,it;h=c._w,h.GG!=null||h.W!=null||h.E!=null?(X=1,de=4,g=ts(h.GG,c._a[un],Qs(Mt(),1,4).year),_=ts(h.W,1),N=ts(h.E,1),(N<1||N>7)&&(ze=!0)):(X=c._locale._week.dow,de=c._locale._week.doy,it=Qs(Mt(),X,de),g=ts(h.gg,c._a[un],it.year),_=ts(h.w,it.week),h.d!=null?(N=h.d,(N<0||N>6)&&(ze=!0)):h.e!=null?(N=h.e+X,(h.e<0||h.e>6)&&(ze=!0)):N=X),_<1||_>Lo(g,X,de)?v(c)._overflowWeeks=!0:ze!=null?v(c)._overflowWeekday=!0:(Ee=tf(g,_,N,X,de),c._a[un]=Ee.year,c._dayOfYear=Ee.dayOfYear)}o.ISO_8601=function(){},o.RFC_2822=function(){};function qc(c){if(c._f===o.ISO_8601){lf(c);return}if(c._f===o.RFC_2822){cf(c);return}c._a=[],v(c).empty=!0;var h=""+c._i,g,_,N,X,de,Ee=h.length,ze=0,it,xn;for(N=ce(c._f,c._locale).match(B)||[],xn=N.length,g=0;g<xn;g++)X=N[g],_=(h.match(Fc(X,c))||[])[0],_&&(de=h.substr(0,h.indexOf(_)),de.length>0&&v(c).unusedInput.push(de),h=h.slice(h.indexOf(_)+_.length),ze+=_.length),se[X]?(_?v(c).empty=!1:v(c).unusedTokens.push(X),Lc(X,_,c)):c._strict&&!_&&v(c).unusedTokens.push(X);v(c).charsLeftOver=Ee-ze,h.length>0&&v(c).unusedInput.push(h),c._a[Ce]<=12&&v(c).bigHour===!0&&c._a[Ce]>0&&(v(c).bigHour=void 0),v(c).parsedDateParts=c._a.slice(0),v(c).meridiem=c._meridiem,c._a[Ce]=Yw(c._locale,c._a[Ce],c._meridiem),it=v(c).era,it!==null&&(c._a[un]=c._locale.erasConvertYear(it,c._a[un])),Uc(c),zc(c)}function Yw(c,h,g){var _;return g==null?h:c.meridiemHour!=null?c.meridiemHour(h,g):(c.isPM!=null&&(_=c.isPM(g),_&&h<12&&(h+=12),!_&&h===12&&(h=0)),h)}function Uw(c){var h,g,_,N,X,de,Ee=!1,ze=c._f.length;if(ze===0){v(c).invalidFormat=!0,c._d=new Date(NaN);return}for(N=0;N<ze;N++)X=0,de=!1,h=O({},c),c._useUTC!=null&&(h._useUTC=c._useUTC),h._f=c._f[N],qc(h),k(h)&&(de=!0),X+=v(h).charsLeftOver,X+=v(h).unusedTokens.length*10,v(h).score=X,Ee?X<_&&(_=X,g=h):(_==null||X<_||de)&&(_=X,g=h,de&&(Ee=!0));w(c,g||h)}function qw(c){if(!c._d){var h=Je(c._i),g=h.day===void 0?h.date:h.day;c._a=y([h.year,h.month,g,h.hour,h.minute,h.second,h.millisecond],function(_){return _&&parseInt(_,10)}),Uc(c)}}function Gw(c){var h=new I(zc(df(c)));return h._nextDay&&(h.add(1,"d"),h._nextDay=void 0),h}function df(c){var h=c._i,g=c._f;return c._locale=c._locale||$o(c._l),h===null||g===void 0&&h===""?x({nullInput:!0}):(typeof h=="string"&&(c._i=h=c._locale.preparse(h)),F(h)?new I(zc(h)):(p(h)?c._d=h:i(g)?Uw(c):g?qc(c):Kw(c),k(c)||(c._d=null),c))}function Kw(c){var h=c._i;u(h)?c._d=new Date(o.now()):p(h)?c._d=new Date(h.valueOf()):typeof h=="string"?Ww(c):i(h)?(c._a=y(h.slice(0),function(g){return parseInt(g,10)}),Uc(c)):a(h)?qw(c):f(h)?c._d=new Date(h):o.createFromInputFallback(c)}function uf(c,h,g,_,N){var X={};return(h===!0||h===!1)&&(_=h,h=void 0),(g===!0||g===!1)&&(_=g,g=void 0),(a(c)&&d(c)||i(c)&&c.length===0)&&(c=void 0),X._isAMomentObject=!0,X._useUTC=X._isUTC=N,X._l=g,X._i=c,X._f=h,X._strict=_,Gw(X)}function Mt(c,h,g,_){return uf(c,h,g,_,!1)}var Xw=R("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c<this?this:c:x()}),Zw=R("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var c=Mt.apply(null,arguments);return this.isValid()&&c.isValid()?c>this?this:c:x()});function hf(c,h){var g,_;if(h.length===1&&i(h[0])&&(h=h[0]),!h.length)return Mt();for(g=h[0],_=1;_<h.length;++_)(!h[_].isValid()||h[_][c](g))&&(g=h[_]);return g}function Qw(){var c=[].slice.call(arguments,0);return hf("isBefore",c)}function Jw(){var c=[].slice.call(arguments,0);return hf("isAfter",c)}var eC=function(){return Date.now?Date.now():+new Date},ti=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tC(c){var h,g=!1,_,N=ti.length;for(h in c)if(l(c,h)&&!(Wt.call(ti,h)!==-1&&(c[h]==null||!isNaN(c[h]))))return!1;for(_=0;_<N;++_)if(c[ti[_]]){if(g)return!1;parseFloat(c[ti[_]])!==Xe(c[ti[_]])&&(g=!0)}return!0}function nC(){return this._isValid}function oC(){return io(NaN)}function Pa(c){var h=Je(c),g=h.year||0,_=h.quarter||0,N=h.month||0,X=h.week||h.isoWeek||0,de=h.day||0,Ee=h.hour||0,ze=h.minute||0,it=h.second||0,xn=h.millisecond||0;this._isValid=tC(h),this._milliseconds=+xn+it*1e3+ze*6e4+Ee*1e3*60*60,this._days=+de+X*7,this._months=+N+_*3+g*12,this._data={},this._locale=$o(),this._bubble()}function Da(c){return c instanceof Pa}function Gc(c){return c<0?Math.round(-1*c)*-1:Math.round(c)}function rC(c,h,g){var _=Math.min(c.length,h.length),N=Math.abs(c.length-h.length),X=0,de;for(de=0;de<_;de++)Xe(c[de])!==Xe(h[de])&&X++;return X+N}function ff(c,h){j(c,0,0,function(){var g=this.utcOffset(),_="+";return g<0&&(g=-g,_="-"),_+L(~~(g/60),2)+h+L(~~g%60,2)})}ff("Z",":"),ff("ZZ",""),_e("Z",at),_e("ZZ",at),yt(["Z","ZZ"],function(c,h,g){g._useUTC=!0,g._tzm=Kc(at,c)});var sC=/([\+\-]|\d\d)/gi;function Kc(c,h){var g=(h||"").match(c),_,N,X;return g===null?null:(_=g[g.length-1]||[],N=(_+"").match(sC)||["-",0,0],X=+(N[1]*60)+Xe(N[2]),X===0?0:N[0]==="+"?X:-X)}function Xc(c,h){var g,_;return h._isUTC?(g=h.clone(),_=(F(c)||p(c)?c.valueOf():Mt(c).valueOf())-g.valueOf(),g._d.setTime(g._d.valueOf()+_),o.updateOffset(g,!1),g):Mt(c).local()}function Zc(c){return-Math.round(c._d.getTimezoneOffset())}o.updateOffset=function(){};function iC(c,h,g){var _=this._offset||0,N;if(!this.isValid())return c!=null?this:NaN;if(c!=null){if(typeof c=="string"){if(c=Kc(at,c),c===null)return this}else Math.abs(c)<16&&!g&&(c=c*60);return!this._isUTC&&h&&(N=Zc(this)),this._offset=c,this._isUTC=!0,N!=null&&this.add(N,"m"),_!==c&&(!h||this._changeInProgress?yf(this,io(c-_,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?_:Zc(this)}function aC(c,h){return c!=null?(typeof c!="string"&&(c=-c),this.utcOffset(c,h),this):-this.utcOffset()}function lC(c){return this.utcOffset(0,c)}function cC(c){return this._isUTC&&(this.utcOffset(0,c),this._isUTC=!1,c&&this.subtract(Zc(this),"m")),this}function dC(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var c=Kc(An,this._i);c!=null?this.utcOffset(c):this.utcOffset(0,!0)}return this}function uC(c){return this.isValid()?(c=c?Mt(c).utcOffset():0,(this.utcOffset()-c)%60===0):!1}function hC(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function fC(){if(!u(this._isDSTShifted))return this._isDSTShifted;var c={},h;return O(c,this),c=df(c),c._a?(h=c._isUTC?b(c._a):Mt(c._a),this._isDSTShifted=this.isValid()&&rC(c._a,h.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pC(){return this.isValid()?!this._isUTC:!1}function mC(){return this.isValid()?this._isUTC:!1}function pf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var gC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,yC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function io(c,h){var g=c,_=null,N,X,de;return Da(c)?g={ms:c._milliseconds,d:c._days,M:c._months}:f(c)||!isNaN(+c)?(g={},h?g[h]=+c:g.milliseconds=+c):(_=gC.exec(c))?(N=_[1]==="-"?-1:1,g={y:0,d:Xe(_[me])*N,h:Xe(_[Ce])*N,m:Xe(_[Ae])*N,s:Xe(_[Ke])*N,ms:Xe(Gc(_[st]*1e3))*N}):(_=yC.exec(c))?(N=_[1]==="-"?-1:1,g={y:Rr(_[2],N),M:Rr(_[3],N),w:Rr(_[4],N),d:Rr(_[5],N),h:Rr(_[6],N),m:Rr(_[7],N),s:Rr(_[8],N)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(de=vC(Mt(g.from),Mt(g.to)),g={},g.ms=de.milliseconds,g.M=de.months),X=new Pa(g),Da(c)&&l(c,"_locale")&&(X._locale=c._locale),Da(c)&&l(c,"_isValid")&&(X._isValid=c._isValid),X}io.fn=Pa.prototype,io.invalid=oC;function Rr(c,h){var g=c&&parseFloat(c.replace(",","."));return(isNaN(g)?0:g)*h}function mf(c,h){var g={};return g.months=h.month()-c.month()+(h.year()-c.year())*12,c.clone().add(g.months,"M").isAfter(h)&&--g.months,g.milliseconds=+h-+c.clone().add(g.months,"M"),g}function vC(c,h){var g;return c.isValid()&&h.isValid()?(h=Xc(h,c),c.isBefore(h)?g=mf(c,h):(g=mf(h,c),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function gf(c,h){return function(g,_){var N,X;return _!==null&&!isNaN(+_)&&(K(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),X=g,g=_,_=X),N=io(g,_),yf(this,N,c),this}}function yf(c,h,g,_){var N=h._milliseconds,X=Gc(h._days),de=Gc(h._months);c.isValid()&&(_=_??!0,de&&Qh(c,Hn(c,"Month")+de*g),X&&yo(c,"Date",Hn(c,"Date")+X*g),N&&c._d.setTime(c._d.valueOf()+N*g),_&&o.updateOffset(c,X||de))}var bC=gf(1,"add"),wC=gf(-1,"subtract");function vf(c){return typeof c=="string"||c instanceof String}function CC(c){return F(c)||p(c)||vf(c)||f(c)||_C(c)||SC(c)||c===null||c===void 0}function SC(c){var h=a(c)&&!d(c),g=!1,_=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],N,X,de=_.length;for(N=0;N<de;N+=1)X=_[N],g=g||l(c,X);return h&&g}function _C(c){var h=i(c),g=!1;return h&&(g=c.filter(function(_){return!f(_)&&vf(c)}).length===0),h&&g}function xC(c){var h=a(c)&&!d(c),g=!1,_=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],N,X;for(N=0;N<_.length;N+=1)X=_[N],g=g||l(c,X);return h&&g}function RC(c,h){var g=c.diff(h,"days",!0);return g<-6?"sameElse":g<-1?"lastWeek":g<0?"lastDay":g<1?"sameDay":g<2?"nextDay":g<7?"nextWeek":"sameElse"}function TC(c,h){arguments.length===1&&(arguments[0]?CC(arguments[0])?(c=arguments[0],h=void 0):xC(arguments[0])&&(h=arguments[0],c=void 0):(c=void 0,h=void 0));var g=c||Mt(),_=Xc(g,this).startOf("day"),N=o.calendarFormat(this,_)||"sameElse",X=h&&(G(h[N])?h[N].call(this,g):h[N]);return this.format(X||this.localeData().calendar(N,this,Mt(g)))}function kC(){return new I(this)}function EC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()>g.valueOf():g.valueOf()<this.clone().startOf(h).valueOf()):!1}function PC(c,h){var g=F(c)?c:Mt(c);return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()<g.valueOf():this.clone().endOf(h).valueOf()<g.valueOf()):!1}function DC(c,h,g,_){var N=F(c)?c:Mt(c),X=F(h)?h:Mt(h);return this.isValid()&&N.isValid()&&X.isValid()?(_=_||"()",(_[0]==="("?this.isAfter(N,g):!this.isBefore(N,g))&&(_[1]===")"?this.isBefore(X,g):!this.isAfter(X,g))):!1}function OC(c,h){var g=F(c)?c:Mt(c),_;return this.isValid()&&g.isValid()?(h=Ne(h)||"millisecond",h==="millisecond"?this.valueOf()===g.valueOf():(_=g.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf())):!1}function MC(c,h){return this.isSame(c,h)||this.isAfter(c,h)}function IC(c,h){return this.isSame(c,h)||this.isBefore(c,h)}function NC(c,h,g){var _,N,X;if(!this.isValid())return NaN;if(_=Xc(c,this),!_.isValid())return NaN;switch(N=(_.utcOffset()-this.utcOffset())*6e4,h=Ne(h),h){case"year":X=Oa(this,_)/12;break;case"month":X=Oa(this,_);break;case"quarter":X=Oa(this,_)/3;break;case"second":X=(this-_)/1e3;break;case"minute":X=(this-_)/6e4;break;case"hour":X=(this-_)/36e5;break;case"day":X=(this-_-N)/864e5;break;case"week":X=(this-_-N)/6048e5;break;default:X=this-_}return g?X:kn(X)}function Oa(c,h){if(c.date()<h.date())return-Oa(h,c);var g=(h.year()-c.year())*12+(h.month()-c.month()),_=c.clone().add(g,"months"),N,X;return h-_<0?(N=c.clone().add(g-1,"months"),X=(h-_)/(_-N)):(N=c.clone().add(g+1,"months"),X=(h-_)/(N-_)),-(g+X)||0}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function AC(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function FC(c){if(!this.isValid())return null;var h=c!==!0,g=h?this.clone().utc():this;return g.year()<0||g.year()>9999?te(g,h?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?h?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",te(g,"Z")):te(g,h?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function LC(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var c="moment",h="",g,_,N,X;return this.isLocal()||(c=this.utcOffset()===0?"moment.utc":"moment.parseZone",h="Z"),g="["+c+'("]',_=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",N="-MM-DD[T]HH:mm:ss.SSS",X=h+'[")]',this.format(g+_+N+X)}function $C(c){c||(c=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var h=te(this,c);return this.localeData().postformat(h)}function VC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?io({to:this,from:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function jC(c){return this.from(Mt(),c)}function BC(c,h){return this.isValid()&&(F(c)&&c.isValid()||Mt(c).isValid())?io({from:this,to:c}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()}function WC(c){return this.to(Mt(),c)}function bf(c){var h;return c===void 0?this._locale._abbr:(h=$o(c),h!=null&&(this._locale=h),this)}var wf=R("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(c){return c===void 0?this.localeData():this.locale(c)});function Cf(){return this._locale}var Ma=1e3,ns=60*Ma,Ia=60*ns,Sf=(365*400+97)*24*Ia;function os(c,h){return(c%h+h)%h}function _f(c,h,g){return c<100&&c>=0?new Date(c+400,h,g)-Sf:new Date(c,h,g).valueOf()}function xf(c,h,g){return c<100&&c>=0?Date.UTC(c+400,h,g)-Sf:Date.UTC(c,h,g)}function HC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?xf:_f,c){case"year":h=g(this.year(),0,1);break;case"quarter":h=g(this.year(),this.month()-this.month()%3,1);break;case"month":h=g(this.year(),this.month(),1);break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=g(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=os(h+(this._isUTC?0:this.utcOffset()*ns),Ia);break;case"minute":h=this._d.valueOf(),h-=os(h,ns);break;case"second":h=this._d.valueOf(),h-=os(h,Ma);break}return this._d.setTime(h),o.updateOffset(this,!0),this}function zC(c){var h,g;if(c=Ne(c),c===void 0||c==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?xf:_f,c){case"year":h=g(this.year()+1,0,1)-1;break;case"quarter":h=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=g(this.year(),this.month()+1,1)-1;break;case"week":h=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=Ia-os(h+(this._isUTC?0:this.utcOffset()*ns),Ia)-1;break;case"minute":h=this._d.valueOf(),h+=ns-os(h,ns)-1;break;case"second":h=this._d.valueOf(),h+=Ma-os(h,Ma)-1;break}return this._d.setTime(h),o.updateOffset(this,!0),this}function YC(){return this._d.valueOf()-(this._offset||0)*6e4}function UC(){return Math.floor(this.valueOf()/1e3)}function qC(){return new Date(this.valueOf())}function GC(){var c=this;return[c.year(),c.month(),c.date(),c.hour(),c.minute(),c.second(),c.millisecond()]}function KC(){var c=this;return{years:c.year(),months:c.month(),date:c.date(),hours:c.hours(),minutes:c.minutes(),seconds:c.seconds(),milliseconds:c.milliseconds()}}function XC(){return this.isValid()?this.toISOString():null}function ZC(){return k(this)}function QC(){return w({},v(this))}function JC(){return v(this).overflow}function eS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),_e("N",Qc),_e("NN",Qc),_e("NNN",Qc),_e("NNNN",uS),_e("NNNNN",hS),yt(["N","NN","NNN","NNNN","NNNNN"],function(c,h,g,_){var N=g._locale.erasParse(c,_,g._strict);N?v(g).era=N:v(g).invalidEra=c}),_e("y",ht),_e("yy",ht),_e("yyy",ht),_e("yyyy",ht),_e("yo",fS),yt(["y","yy","yyy","yyyy"],un),yt(["yo"],function(c,h,g,_){var N;g._locale._eraYearOrdinalRegex&&(N=c.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?h[un]=g._locale.eraYearOrdinalParse(c,N):h[un]=parseInt(c,10)});function tS(c,h){var g,_,N,X=this._eras||$o("en")._eras;for(g=0,_=X.length;g<_;++g){switch(typeof X[g].since){case"string":N=o(X[g].since).startOf("day"),X[g].since=N.valueOf();break}switch(typeof X[g].until){case"undefined":X[g].until=1/0;break;case"string":N=o(X[g].until).startOf("day").valueOf(),X[g].until=N.valueOf();break}}return X}function nS(c,h,g){var _,N,X=this.eras(),de,Ee,ze;for(c=c.toUpperCase(),_=0,N=X.length;_<N;++_)if(de=X[_].name.toUpperCase(),Ee=X[_].abbr.toUpperCase(),ze=X[_].narrow.toUpperCase(),g)switch(h){case"N":case"NN":case"NNN":if(Ee===c)return X[_];break;case"NNNN":if(de===c)return X[_];break;case"NNNNN":if(ze===c)return X[_];break}else if([de,Ee,ze].indexOf(c)>=0)return X[_]}function oS(c,h){var g=c.since<=c.until?1:-1;return h===void 0?o(c.since).year():o(c.since).year()+(h-c.offset)*g}function rS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].name;return""}function sS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].narrow;return""}function iS(){var c,h,g,_=this.localeData().eras();for(c=0,h=_.length;c<h;++c)if(g=this.clone().startOf("day").valueOf(),_[c].since<=g&&g<=_[c].until||_[c].until<=g&&g<=_[c].since)return _[c].abbr;return""}function aS(){var c,h,g,_,N=this.localeData().eras();for(c=0,h=N.length;c<h;++c)if(g=N[c].since<=N[c].until?1:-1,_=this.clone().startOf("day").valueOf(),N[c].since<=_&&_<=N[c].until||N[c].until<=_&&_<=N[c].since)return(this.year()-o(N[c].since).year())*g+N[c].offset;return this.year()}function lS(c){return l(this,"_erasNameRegex")||Jc.call(this),c?this._erasNameRegex:this._erasRegex}function cS(c){return l(this,"_erasAbbrRegex")||Jc.call(this),c?this._erasAbbrRegex:this._erasRegex}function dS(c){return l(this,"_erasNarrowRegex")||Jc.call(this),c?this._erasNarrowRegex:this._erasRegex}function Qc(c,h){return h.erasAbbrRegex(c)}function uS(c,h){return h.erasNameRegex(c)}function hS(c,h){return h.erasNarrowRegex(c)}function fS(c,h){return h._eraYearOrdinalRegex||ht}function Jc(){var c=[],h=[],g=[],_=[],N,X,de,Ee,ze,it=this.eras();for(N=0,X=it.length;N<X;++N)de=Wn(it[N].name),Ee=Wn(it[N].abbr),ze=Wn(it[N].narrow),h.push(de),c.push(Ee),g.push(ze),_.push(de),_.push(Ee),_.push(ze);this._erasRegex=new RegExp("^("+_.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+g.join("|")+")","i")}j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Na(c,h){j(0,[c,c.length],0,h)}Na("gggg","weekYear"),Na("ggggg","weekYear"),Na("GGGG","isoWeekYear"),Na("GGGGG","isoWeekYear"),_e("G",nn),_e("g",nn),_e("GG",Ue,rt),_e("gg",Ue,rt),_e("GGGG",Oe,Ut),_e("gggg",Oe,Ut),_e("GGGGG",We,Lt),_e("ggggg",We,Lt),xr(["gggg","ggggg","GGGG","GGGGG"],function(c,h,g,_){h[_.substr(0,2)]=Xe(c)}),xr(["gg","GG"],function(c,h,g,_){h[_]=o.parseTwoDigitYear(c)});function pS(c){return Rf.call(this,c,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function mS(c){return Rf.call(this,c,this.isoWeek(),this.isoWeekday(),1,4)}function gS(){return Lo(this.year(),1,4)}function yS(){return Lo(this.isoWeekYear(),1,4)}function vS(){var c=this.localeData()._week;return Lo(this.year(),c.dow,c.doy)}function bS(){var c=this.localeData()._week;return Lo(this.weekYear(),c.dow,c.doy)}function Rf(c,h,g,_,N){var X;return c==null?Qs(this,_,N).year:(X=Lo(c,_,N),h>X&&(h=X),wS.call(this,c,h,g,_,N))}function wS(c,h,g,_,N){var X=tf(c,h,g,_,N),de=Zs(X.year,0,X.dayOfYear);return this.year(de.getUTCFullYear()),this.month(de.getUTCMonth()),this.date(de.getUTCDate()),this}j("Q",0,"Qo","quarter"),_e("Q",Yt),yt("Q",function(c,h){h[U]=(Xe(c)-1)*3});function CS(c){return c==null?Math.ceil((this.month()+1)/3):this.month((c-1)*3+this.month()%3)}j("D",["DD",2],"Do","date"),_e("D",Ue,Qt),_e("DD",Ue,rt),_e("Do",function(c,h){return c?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),yt(["D","DD"],me),yt("Do",function(c,h){h[me]=Xe(c.match(Ue)[0])});var Tf=sn("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),_e("DDD",dn),_e("DDDD",Ot),yt(["DDD","DDDD"],function(c,h,g){g._dayOfYear=Xe(c)});function SS(c){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return c==null?h:this.add(c-h,"d")}j("m",["mm",2],0,"minute"),_e("m",Ue,cr),_e("mm",Ue,rt),yt(["m","mm"],Ae);var _S=sn("Minutes",!1);j("s",["ss",2],0,"second"),_e("s",Ue,cr),_e("ss",Ue,rt),yt(["s","ss"],Ke);var xS=sn("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return this.millisecond()*10}),j(0,["SSSSS",5],0,function(){return this.millisecond()*100}),j(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),j(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),j(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),j(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),_e("S",dn,Yt),_e("SS",dn,rt),_e("SSS",dn,Ot);var ur,kf;for(ur="SSSS";ur.length<=9;ur+="S")_e(ur,ht);function RS(c,h){h[st]=Xe(("0."+c)*1e3)}for(ur="S";ur.length<=9;ur+="S")yt(ur,RS);kf=sn("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");function TS(){return this._isUTC?"UTC":""}function kS(){return this._isUTC?"Coordinated Universal Time":""}var ye=I.prototype;ye.add=bC,ye.calendar=TC,ye.clone=kC,ye.diff=NC,ye.endOf=zC,ye.format=$C,ye.from=VC,ye.fromNow=jC,ye.to=BC,ye.toNow=WC,ye.get=yn,ye.invalidAt=JC,ye.isAfter=EC,ye.isBefore=PC,ye.isBetween=DC,ye.isSame=OC,ye.isSameOrAfter=MC,ye.isSameOrBefore=IC,ye.isValid=ZC,ye.lang=wf,ye.locale=bf,ye.localeData=Cf,ye.max=Zw,ye.min=Xw,ye.parsingFlags=QC,ye.set=Xs,ye.startOf=HC,ye.subtract=wC,ye.toArray=GC,ye.toObject=KC,ye.toDate=qC,ye.toISOString=FC,ye.inspect=LC,typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ye.toJSON=XC,ye.toString=AC,ye.unix=UC,ye.valueOf=YC,ye.creationData=eS,ye.eraName=rS,ye.eraNarrow=sS,ye.eraAbbr=iS,ye.eraYear=aS,ye.year=$t,ye.isLeapYear=qt,ye.weekYear=pS,ye.isoWeekYear=mS,ye.quarter=ye.quarters=CS,ye.month=Jh,ye.daysInMonth=qb,ye.week=ye.weeks=tw,ye.isoWeek=ye.isoWeeks=nw,ye.weeksInYear=vS,ye.weeksInWeekYear=bS,ye.isoWeeksInYear=gS,ye.isoWeeksInISOWeekYear=yS,ye.date=Tf,ye.day=ye.days=mw,ye.weekday=gw,ye.isoWeekday=yw,ye.dayOfYear=SS,ye.hour=ye.hours=xw,ye.minute=ye.minutes=_S,ye.second=ye.seconds=xS,ye.millisecond=ye.milliseconds=kf,ye.utcOffset=iC,ye.utc=lC,ye.local=cC,ye.parseZone=dC,ye.hasAlignedHourOffset=uC,ye.isDST=hC,ye.isLocal=pC,ye.isUtcOffset=mC,ye.isUtc=pf,ye.isUTC=pf,ye.zoneAbbr=TS,ye.zoneName=kS,ye.dates=R("dates accessor is deprecated. Use date instead.",Tf),ye.months=R("months accessor is deprecated. Use month instead",Jh),ye.years=R("years accessor is deprecated. Use year instead",$t),ye.zone=R("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",aC),ye.isDSTShifted=R("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",fC);function ES(c){return Mt(c*1e3)}function PS(){return Mt.apply(null,arguments).parseZone()}function Ef(c){return c}var ft=H.prototype;ft.calendar=M,ft.longDateFormat=he,ft.invalidDate=re,ft.ordinal=pe,ft.preparse=Ef,ft.postformat=Ef,ft.relativeTime=ge,ft.pastFuture=Re,ft.set=q,ft.eras=tS,ft.erasParse=nS,ft.erasConvertYear=oS,ft.erasAbbrRegex=cS,ft.erasNameRegex=lS,ft.erasNarrowRegex=dS,ft.months=Hb,ft.monthsShort=zb,ft.monthsParse=Ub,ft.monthsRegex=Kb,ft.monthsShortRegex=Gb,ft.week=Zb,ft.firstDayOfYear=ew,ft.firstDayOfWeek=Jb,ft.weekdays=dw,ft.weekdaysMin=hw,ft.weekdaysShort=uw,ft.weekdaysParse=pw,ft.weekdaysRegex=vw,ft.weekdaysShortRegex=bw,ft.weekdaysMinRegex=ww,ft.isPM=Sw,ft.meridiem=Rw;function Aa(c,h,g,_){var N=$o(),X=b().set(_,h);return N[g](X,c)}function Pf(c,h,g){if(f(c)&&(h=c,c=void 0),c=c||"",h!=null)return Aa(c,h,g,"month");var _,N=[];for(_=0;_<12;_++)N[_]=Aa(c,_,g,"month");return N}function ed(c,h,g,_){typeof c=="boolean"?(f(h)&&(g=h,h=void 0),h=h||""):(h=c,g=h,c=!1,f(h)&&(g=h,h=void 0),h=h||"");var N=$o(),X=c?N._week.dow:0,de,Ee=[];if(g!=null)return Aa(h,(g+X)%7,_,"day");for(de=0;de<7;de++)Ee[de]=Aa(h,(de+X)%7,_,"day");return Ee}function DS(c,h){return Pf(c,h,"months")}function OS(c,h){return Pf(c,h,"monthsShort")}function MS(c,h,g){return ed(c,h,g,"weekdays")}function IS(c,h,g){return ed(c,h,g,"weekdaysShort")}function NS(c,h,g){return ed(c,h,g,"weekdaysMin")}dr("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(c){var h=c%10,g=Xe(c%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th";return c+g}}),o.lang=R("moment.lang is deprecated. Use moment.locale instead.",dr),o.langData=R("moment.langData is deprecated. Use moment.localeData instead.",$o);var Vo=Math.abs;function AS(){var c=this._data;return this._milliseconds=Vo(this._milliseconds),this._days=Vo(this._days),this._months=Vo(this._months),c.milliseconds=Vo(c.milliseconds),c.seconds=Vo(c.seconds),c.minutes=Vo(c.minutes),c.hours=Vo(c.hours),c.months=Vo(c.months),c.years=Vo(c.years),this}function Df(c,h,g,_){var N=io(h,g);return c._milliseconds+=_*N._milliseconds,c._days+=_*N._days,c._months+=_*N._months,c._bubble()}function FS(c,h){return Df(this,c,h,1)}function LS(c,h){return Df(this,c,h,-1)}function Of(c){return c<0?Math.floor(c):Math.ceil(c)}function $S(){var c=this._milliseconds,h=this._days,g=this._months,_=this._data,N,X,de,Ee,ze;return c>=0&&h>=0&&g>=0||c<=0&&h<=0&&g<=0||(c+=Of(td(g)+h)*864e5,h=0,g=0),_.milliseconds=c%1e3,N=kn(c/1e3),_.seconds=N%60,X=kn(N/60),_.minutes=X%60,de=kn(X/60),_.hours=de%24,h+=kn(de/24),ze=kn(Mf(h)),g+=ze,h-=Of(td(ze)),Ee=kn(g/12),g%=12,_.days=h,_.months=g,_.years=Ee,this}function Mf(c){return c*4800/146097}function td(c){return c*146097/4800}function VS(c){if(!this.isValid())return NaN;var h,g,_=this._milliseconds;if(c=Ne(c),c==="month"||c==="quarter"||c==="year")switch(h=this._days+_/864e5,g=this._months+Mf(h),c){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(h=this._days+Math.round(td(this._months)),c){case"week":return h/7+_/6048e5;case"day":return h+_/864e5;case"hour":return h*24+_/36e5;case"minute":return h*1440+_/6e4;case"second":return h*86400+_/1e3;case"millisecond":return Math.floor(h*864e5)+_;default:throw new Error("Unknown unit "+c)}}function jo(c){return function(){return this.as(c)}}var If=jo("ms"),jS=jo("s"),BS=jo("m"),WS=jo("h"),HS=jo("d"),zS=jo("w"),YS=jo("M"),US=jo("Q"),qS=jo("y"),GS=If;function KS(){return io(this)}function XS(c){return c=Ne(c),this.isValid()?this[c+"s"]():NaN}function Tr(c){return function(){return this.isValid()?this._data[c]:NaN}}var ZS=Tr("milliseconds"),QS=Tr("seconds"),JS=Tr("minutes"),e0=Tr("hours"),t0=Tr("days"),n0=Tr("months"),o0=Tr("years");function r0(){return kn(this.days()/7)}var Bo=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function s0(c,h,g,_,N){return N.relativeTime(h||1,!!g,c,_)}function i0(c,h,g,_){var N=io(c).abs(),X=Bo(N.as("s")),de=Bo(N.as("m")),Ee=Bo(N.as("h")),ze=Bo(N.as("d")),it=Bo(N.as("M")),xn=Bo(N.as("w")),Wo=Bo(N.as("y")),hr=X<=g.ss&&["s",X]||X<g.s&&["ss",X]||de<=1&&["m"]||de<g.m&&["mm",de]||Ee<=1&&["h"]||Ee<g.h&&["hh",Ee]||ze<=1&&["d"]||ze<g.d&&["dd",ze];return g.w!=null&&(hr=hr||xn<=1&&["w"]||xn<g.w&&["ww",xn]),hr=hr||it<=1&&["M"]||it<g.M&&["MM",it]||Wo<=1&&["y"]||["yy",Wo],hr[2]=h,hr[3]=+c>0,hr[4]=_,s0.apply(null,hr)}function a0(c){return c===void 0?Bo:typeof c=="function"?(Bo=c,!0):!1}function l0(c,h){return rs[c]===void 0?!1:h===void 0?rs[c]:(rs[c]=h,c==="s"&&(rs.ss=h-1),!0)}function c0(c,h){if(!this.isValid())return this.localeData().invalidDate();var g=!1,_=rs,N,X;return typeof c=="object"&&(h=c,c=!1),typeof c=="boolean"&&(g=c),typeof h=="object"&&(_=Object.assign({},rs,h),h.s!=null&&h.ss==null&&(_.ss=h.s-1)),N=this.localeData(),X=i0(this,!g,_,N),g&&(X=N.pastFuture(+this,X)),N.postformat(X)}var nd=Math.abs;function ss(c){return(c>0)-(c<0)||+c}function Fa(){if(!this.isValid())return this.localeData().invalidDate();var c=nd(this._milliseconds)/1e3,h=nd(this._days),g=nd(this._months),_,N,X,de,Ee=this.asSeconds(),ze,it,xn,Wo;return Ee?(_=kn(c/60),N=kn(_/60),c%=60,_%=60,X=kn(g/12),g%=12,de=c?c.toFixed(3).replace(/\.?0+$/,""):"",ze=Ee<0?"-":"",it=ss(this._months)!==ss(Ee)?"-":"",xn=ss(this._days)!==ss(Ee)?"-":"",Wo=ss(this._milliseconds)!==ss(Ee)?"-":"",ze+"P"+(X?it+X+"Y":"")+(g?it+g+"M":"")+(h?xn+h+"D":"")+(N||_||c?"T":"")+(N?Wo+N+"H":"")+(_?Wo+_+"M":"")+(c?Wo+de+"S":"")):"P0D"}var lt=Pa.prototype;lt.isValid=nC,lt.abs=AS,lt.add=FS,lt.subtract=LS,lt.as=VS,lt.asMilliseconds=If,lt.asSeconds=jS,lt.asMinutes=BS,lt.asHours=WS,lt.asDays=HS,lt.asWeeks=zS,lt.asMonths=YS,lt.asQuarters=US,lt.asYears=qS,lt.valueOf=GS,lt._bubble=$S,lt.clone=KS,lt.get=XS,lt.milliseconds=ZS,lt.seconds=QS,lt.minutes=JS,lt.hours=e0,lt.days=t0,lt.weeks=r0,lt.months=n0,lt.years=o0,lt.humanize=c0,lt.toISOString=Fa,lt.toString=Fa,lt.toJSON=Fa,lt.locale=bf,lt.localeData=Cf,lt.toIsoString=R("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fa),lt.lang=wf,j("X",0,0,"unix"),j("x",0,0,"valueOf"),_e("x",nn),_e("X",Zt),yt("X",function(c,h,g){g._d=new Date(parseFloat(c)*1e3)}),yt("x",function(c,h,g){g._d=new Date(Xe(c))});//! moment.js
|
|
301
|
+
return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Qw,o.max=Jw,o.now=eC,o.utc=b,o.unix=ES,o.months=DS,o.isDate=p,o.locale=dr,o.invalid=x,o.duration=io,o.isMoment=F,o.weekdays=MS,o.parseZone=PS,o.localeData=$o,o.isDuration=Da,o.monthsShort=OS,o.weekdaysMin=NS,o.defineLocale=Hc,o.updateLocale=Pw,o.locales=Dw,o.weekdaysShort=IS,o.normalizeUnits=Ne,o.relativeTimeRounding=a0,o.relativeTimeThreshold=l0,o.calendarFormat=RC,o.prototype=ye,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o})}(gl)),gl.exports}nF();const oF=`
|
|
302
302
|
html body {
|
|
303
303
|
font-family: "Courier", "sans-serif";
|
|
304
304
|
font-size: 12px;
|
|
@@ -343,7 +343,7 @@ return o.version="2.30.1",r(Mt),o.fn=ye,o.min=Qw,o.max=Jw,o.now=eC,o.utc=b,o.uni
|
|
|
343
343
|
.align_left {
|
|
344
344
|
text-align: left;
|
|
345
345
|
}
|
|
346
|
-
`;class Wv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=oF}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return kc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=jy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function rF(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class sF{constructor(t){this.columnPicker=null,this.downloadManager=new MD,this.filter=new WN,this.hotKeysBehavior=new By,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Wv;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new $A(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(gm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){rF(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(gm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class iF extends Ca{constructor(){super(...arguments),this.x=0,this.y=0}}const wn=new iF;class aF extends Ca{constructor(){super(...arguments),this.x=0,this.y=0}}const uo=new aF;class lF extends Ca{constructor(){super(...arguments),this._open=!1}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const Uo=new lF,cF=e=>{const t=e.getLength()-1;return e.getItem(t)},Rh=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Th=()=>{$v.commitCurrentEdit()};function kh(e){return e.ctrlKey||e.metaKey}function Eh(e){return kh(e)&&e.keyCode===Kr.KeyB}function Hv(e){return e.shiftKey&&e.keyCode===Kr.KeyDel}function dF(e){return e.altKey&&e.keyCode===Kr.KeyS}function Ph(e){return kh(e)&&e.keyCode===Kr.KeyY}function Dh(e){return kh(e)&&e.keyCode===Kr.KeyZ}function uF(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function hF(e){const t=fF(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const kc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},zv=e=>{const t=e.getSelectedRows(),n=e.getData(),o=kc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Rh(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(hF(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},fF=e=>{const t=e.getData(),n=kc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function Yv(e){return function(t){t.preventDefault(),Th(),wn.table=e,wn.x=t.pageX||0,wn.y=t.pageY||0,wn.notify()}}function pF(e){return function(t){t.preventDefault(),Th(),uo.table=e,uo.x=t.pageX||0,uo.y=t.pageY||0,uo.notify()}}class mF extends Ca{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const yi=new mF,gF=e=>{function t(){if(e.id!==yi.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,yi.activeTable=e,yi.notify()}Fe.useEffect(()=>{yi.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{yi.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},yF=e=>{const[t,n]=Fe.useState(vF(e));return Fe.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function vF(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function Uv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function bF(e){Fe.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Uv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const wF=e=>{Fe.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},CF=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},$r=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,I,F,z,R){const $=z.length-1;switch(F){case 1:return z[$-1];case 2:this.$=z[$-2]+z[$];break;case 3:this.$=z[$-2]-z[$];break;case 4:this.$=z[$-2]*z[$];break;case 5:this.$=z[$-2]/z[$];break;case 6:this.$=Math.pow(z[$-2],z[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(z[$-1]);break;case 8:this.$=z[$-1]/100;break;case 9:this.$=-z[$];break;case 10:this.$=z[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],I=[null],F=[];const z=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),H=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);H.setInput(S,ae.yy),ae.yy.lexer=H,ae.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});let A=H.yylloc;F.push(A);const M=H.options&&H.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=H.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let B,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=L()),oe=z[ne]&&z[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in z[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");H.showPosition?le="Parse error on line "+($+1)+`:
|
|
346
|
+
`;class Wv{constructor(){this.clientId=0,this.clientName="",this.cssStyles=oF}getClientName(){const t=document.createElement("tr"),n=document.createElement("th");return n.classList.add("align_left"),n.setAttribute("colspan","100%"),n.innerText=`${this.clientName} [${this.clientId}]`,t.append(n),t}columnNames(t){const n=document.createElement("tr");return(t.grid?.getColumns()||[]).filter(a=>a.forPrint).forEach(({name:a})=>{const l=document.createElement("th");l.classList.add("column_name"),typeof a=="string"?l.innerText=a:l.innerText=" ",n.append(l)}),n}tableNameAndTime(t){const n=document.createElement("tr");n.classList.add("heading");const o=document.createElement("th");o.setAttribute("colspan","2"),o.classList.add("table_name"),o.innerText=t.name||t.id,n.append(o);const r=document.createElement("th");return r.setAttribute("colspan","100%"),r.classList.add("date_stamp"),r.innerText=xe().format("MM/DD/YYYY h:mm A"),n.append(r),n}createStyleElement(){const t=document.createElement("style");return t.innerHTML=this.cssStyles,t}createTableElement(t){const n=document.createElement("table");return n.append(this.createThead(t)),n.append(this.createTbody(t)),n}createTbody(t){const n=document.createElement("tbody"),o=t.grid;if(!o)return n;const i=o.getColumns().filter(d=>d.forPrint),a=o.getData();return kc(a).forEach((d,u)=>{const f=this.createTr(i,u,o);n.append(f)}),n.append(...this.totals(t)),n}filters(t){const n=[];if(t.filter){const o=t.filter.print(t);if(o.length){const r=document.createElement("tr"),i=document.createElement("th");i.setAttribute("colspan","100%"),i.classList.add("align_left"),i.innerText="Applied filters",r.append(i),n.push(r)}o.forEach(r=>{n.push(r)})}return n}totals(t){return[]}createThead(t){const n=document.createElement("thead");return n.append(this.getClientName()),n.append(this.tableNameAndTime(t)),n.append(...this.filters(t)),n.append(this.columnNames(t)),n}createTr(t,n,o){const r=document.createElement("tr"),i=o.getData(),a=i.getItem(n),l=a.__group,d=a.__groupTotals;if(l){const u=document.createElement("td");u.setAttribute("colspan","100%"),u.innerText=jy(a.title),r.append(u)}else t.forEach(u=>{const f=document.createElement("td");u.cssClass&&f.classList.add(u.cssClass);const p=u.field,w=i.getItemMetadata(n)?.columns?.[p]?.formatter,b=u.printer||w||u.formatter;let m=a[p];if(d){const v=u.groupTotalsFormatter;m=v?v(a,u,o):""}else b&&(m=b(0,0,m,u,a,o));f.innerText=m||"",r.append(f)});return r}print(t,n,o){this.clientId=n,this.clientName=o;const r=window.open(),i=document.createElement("title");i.innerText=t.name||t.id;const a=r.document.querySelector("head");a.append(i),a.append(this.createStyleElement()),r.document.querySelector("body").append(this.createTableElement(t)),r.print()}}function rF(e){const t=document.querySelector(e);if(!t)return!0;const{scrollHeight:n,scrollWidth:o}=document.documentElement,{bottom:r,left:i,right:a,top:l}=t.getBoundingClientRect();return r<=0||i>=o||a<=0||l>=n}class sF{constructor(t){this.columnPicker=null,this.downloadManager=new MD,this.filter=new WN,this.hotKeysBehavior=new By,this.summaryColumnIds=[],this._grid=null,this._grouping={},this._isActive=!1,this._isEdited=!1,this._lastActiveCell={row:0,cell:0},this._observers=[],this._printer=new Wv;const{columnPicker:n,downloadManager:o,filter:r,hotKeys:i,id:a,name:l,printer:d,summaryColumnIds:u,totalCalculator:f}=t;this.id=a,this.name=l||"",n&&(this.columnPicker=n),o&&(this.downloadManager=o),r&&(this.filter=r),i&&(this.hotKeysBehavior=i),d&&(this.printer=d),u&&(this.summaryColumnIds=u),f&&(this.totalCalculator=f)}createGrid(t,n,o){this.reset();const r=new $A(`#${this.id}`,t,n,o);return this.grid=r,r.onKeyDown.subscribe(gm(r)),this.filter.register(r,this.id),this.grid}handleKeyboardEvent(t){rF(`#${this.id}`)||this.hotKeysBehavior.handleKeyboardEvent(t,this)}get grid(){return this._grid}get grouping(){return this._grouping}get isEdited(){return this._isEdited}set grid(t){this._grid=t}set grouping(t){if(this._grouping={...this._grouping,...t},!this.grid)return;const n=this.grid.getData();this.grouping.isGrouped?n.setGrouping(this.grouping.groups||[]):n.setGrouping([])}set isEdited(t){this._isEdited=t,this.notifyObservers()}set printer(t){this._printer=t}get printer(){return this._printer}get isActive(){return this._isActive}set isActive(t){this._isActive=t}get lastActiveSell(){return this._lastActiveCell}set lastActiveSell(t){this._lastActiveCell=t}resizeCanvas(){console.log(""),this.grid?.resizeCanvas()}registerObservers(t){~this._observers.indexOf(t)||this._observers.push(t)}notifyObservers(){for(const t of this._observers)t(this)}deleteObserver(t){const n=this._observers.indexOf(t);this._observers.splice(n,1)}reset(){this.grid?.onKeyDown.unsubscribe(gm(this.grid)),this.grid?.getSelectionModel()&&this.grid.setSelectedRows([]),this.hotKeysBehavior.resetQueue(),this.isEdited=!1,this.isActive=!1,this.grid=null}}class iF extends Ca{constructor(){super(...arguments),this.x=0,this.y=0}}const wn=new iF;class aF extends Ca{constructor(){super(...arguments),this.x=0,this.y=0}}const uo=new aF;class lF extends Ca{constructor(){super(...arguments),this._open=!1}get open(){return this._open}set open(t){this._open=t,this.notify()}get table(){return this._table}set table(t){this._table=t}}const qo=new lF,cF=e=>{const t=e.getLength()-1;return e.getItem(t)},Rh=e=>{const t=e.getData(),n=t.getIdPropertyName(),o=t.getItems();let r=0;return o.forEach(i=>{i[n]>r&&(r=i[n])}),r+1},Th=()=>{$v.commitCurrentEdit()};function kh(e){return e.ctrlKey||e.metaKey}function Eh(e){return kh(e)&&e.keyCode===Kr.KeyB}function Hv(e){return e.shiftKey&&e.keyCode===Kr.KeyDel}function dF(e){return e.altKey&&e.keyCode===Kr.KeyS}function Ph(e){return kh(e)&&e.keyCode===Kr.KeyY}function Dh(e){return kh(e)&&e.keyCode===Kr.KeyZ}function uF(e){const t=e.getActiveCell();return!e.getSelectedRows().length&&!t}function hF(e){const t=fF(e),o=e.getData().getItems(),r=o.findIndex(a=>a.id===t)+1,i=o.length;return r||i}const kc=e=>{const t=[];for(let n=0;n<e.getLength();n++)t.push(e.getItem(n));return t},zv=e=>{const t=e.getSelectedRows(),n=e.getData(),o=kc(n),r=n.getItems(),i=[],a=n.getIdPropertyName();let l=Rh(e);t.length?t.forEach(d=>{i.push({...o[d],[a]:l++,isEdited:!0,isNew:!0})}):i.push({[a]:l,isEdited:!0,isNew:!0}),r.splice(hF(e),0,...i),n.setItems(r),e.setSelectedRows([]),e.invalidate()},fF=e=>{const t=e.getData(),n=kc(t),o=e.getActiveCell()?.row;return o!==void 0?(n[o]||n[n.length-1])?.id:0};function Yv(e){return function(t){t.preventDefault(),Th(),wn.table=e,wn.x=t.pageX||0,wn.y=t.pageY||0,wn.notify()}}function pF(e){return function(t){t.preventDefault(),Th(),uo.table=e,uo.x=t.pageX||0,uo.y=t.pageY||0,uo.notify()}}class mF extends Ca{constructor(){super(...arguments),this._activeTable=null}get activeTable(){return this._activeTable}set activeTable(t){this._activeTable=t}}const yi=new mF,gF=e=>{function t(){if(e.id!==yi.activeTable?.id){e.isActive=!1;const o=e.grid;o?.resetActiveCell(),o?.setSelectedRows([])}}function n(){e.isActive=!0,yi.activeTable=e,yi.notify()}Fe.useEffect(()=>{yi.subscribe(t),document.addEventListener("keydown",e.handleKeyboardEvent.bind(e));const o=document.getElementById(e.id);if(o)return o.addEventListener("click",n,!0),()=>{yi.unsubscribe(t),document.removeEventListener("keydown",e.handleKeyboardEvent.bind(e)),o.removeEventListener("click",n,!0)}},[])},yF=e=>{const[t,n]=Fe.useState(vF(e));return Fe.useEffect(()=>{const o=r=>{n(i=>({...i,[r.id]:r.isEdited}))};return e.forEach(r=>{r.registerObservers(o)}),()=>{e.forEach(r=>{r.deleteObserver(o)})}},[]),Object.values(t).some(o=>o)};function vF(e){const t={};for(const n of e)t[n.id]=n.isEdited;return t}function Uv(e,t=300){let n;return function(...o){const r=()=>e.apply(this,o);clearTimeout(n),n=setTimeout(r,t)}}function bF(e){Fe.useEffect(()=>{function t(){e.grid?.resizeCanvas()}const n=Uv(t);return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[])}const wF=e=>{Fe.useEffect(()=>{function t(n){const o=n.grid;o&&n.totalCalculator?.calculate(o)}return e.registerObservers(t),()=>{e.deleteObserver(t)}},[])},CF=e=>{if(!e)return 0;if(typeof e=="number")return e;const t=e.replace(/\$|,|\s/g,""),n=t.replace(/\(|\)/g,"");return isNaN(Number(n))?0:t.startsWith("(")&&t.endsWith(")")?0-Number(n):Number(t)},$r=function(){const e=function(x,S,C,O){for(C=C||{},O=x.length;O--;C[x[O]]=S);return C},t=[1,3],n=[1,4],o=[1,5],r=[1,6],i=[1,7],a=[1,9],l=[1,10],d=[1,11],u=[1,12],f=[1,13],p=[1,14],y=[1,15],w=[5,6,7,8,9,10,11,12,14],b=[5,6,7,14],m=[5,6,7,8,9,14],v={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"^":10,"!":11,"%":12,"(":13,")":14,NUMBER:15,E:16,PI:17,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"^",11:"!",12:"%",13:"(",14:")",15:"NUMBER",16:"E",17:"PI"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,2],[4,3],[4,1],[4,1],[4,1]],performAction:function(S,C,O,I,F,z,R){const $=z.length-1;switch(F){case 1:return z[$-1];case 2:this.$=z[$-2]+z[$];break;case 3:this.$=z[$-2]-z[$];break;case 4:this.$=z[$-2]*z[$];break;case 5:this.$=z[$-2]/z[$];break;case 6:this.$=Math.pow(z[$-2],z[$]);break;case 7:this.$=function K(G){return G==0?1:K(G-1)*G}(z[$-1]);break;case 8:this.$=z[$-1]/100;break;case 9:this.$=-z[$];break;case 10:this.$=z[$-1];break;case 11:this.$=Number(S);break;case 12:this.$=Math.E;break;case 13:this.$=Math.PI;break}},table:[{3:1,4:2,7:t,13:n,15:o,16:r,17:i},{1:[3]},{5:[1,8],6:a,7:l,8:d,9:u,10:f,11:p,12:y},{4:16,7:t,13:n,15:o,16:r,17:i},{4:17,7:t,13:n,15:o,16:r,17:i},e(w,[2,11]),e(w,[2,12]),e(w,[2,13]),{1:[2,1]},{4:18,7:t,13:n,15:o,16:r,17:i},{4:19,7:t,13:n,15:o,16:r,17:i},{4:20,7:t,13:n,15:o,16:r,17:i},{4:21,7:t,13:n,15:o,16:r,17:i},{4:22,7:t,13:n,15:o,16:r,17:i},e(w,[2,7]),e(w,[2,8]),e(w,[2,9]),{6:a,7:l,8:d,9:u,10:f,11:p,12:y,14:[1,23]},e(b,[2,2],{8:d,9:u,10:f,11:p,12:y}),e(b,[2,3],{8:d,9:u,10:f,11:p,12:y}),e(m,[2,4],{10:f,11:p,12:y}),e(m,[2,5],{10:f,11:p,12:y}),e([5,6,7,8,9,10,14],[2,6],{11:p,12:y}),e(w,[2,10])],defaultActions:{8:[2,1]},parseError:function(S,C){if(C.recoverable)this.trace(S);else{const O=new Error(S);throw O.hash=C,O}},parse:function(S){const C=this;let O=[0],I=[null],F=[];const z=this.table;let R="",$=0,K=0;const G=2,q=1,Y=F.slice.call(arguments,1),H=Object.create(this.lexer),ae={yy:{}};for(let le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,le)&&(ae.yy[le]=this.yy[le]);H.setInput(S,ae.yy),ae.yy.lexer=H,ae.yy.parser=this,typeof H.yylloc>"u"&&(H.yylloc={});let A=H.yylloc;F.push(A);const M=H.options&&H.options.ranges;typeof ae.yy.parseError=="function"?this.parseError=ae.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;var L=function(){let le;return le=H.lex()||q,typeof le!="number"&&(le=C.symbols_[le]||le),le};let B,ne,oe,se;const j={};let ee,J,te,ce;for(;;){if(ne=O[O.length-1],this.defaultActions[ne]?oe=this.defaultActions[ne]:((B===null||typeof B>"u")&&(B=L()),oe=z[ne]&&z[ne][B]),typeof oe>"u"||!oe.length||!oe[0]){let le="";ce=[];for(ee in z[ne])this.terminals_[ee]&&ee>G&&ce.push("'"+this.terminals_[ee]+"'");H.showPosition?le="Parse error on line "+($+1)+`:
|
|
347
347
|
`+H.showPosition()+`
|
|
348
348
|
Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error on line "+($+1)+": Unexpected "+(B==q?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(le,{text:H.match,token:this.terminals_[B]||B,line:H.yylineno,loc:A,expected:ce})}if(oe[0]instanceof Array&&oe.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ne+", token: "+B);switch(oe[0]){case 1:O.push(B),I.push(H.yytext),F.push(H.yylloc),O.push(oe[1]),B=null,K=H.yyleng,R=H.yytext,$=H.yylineno,A=H.yylloc;break;case 2:if(J=this.productions_[oe[1]][1],j.$=I[I.length-J],j._$={first_line:F[F.length-(J||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(J||1)].first_column,last_column:F[F.length-1].last_column},M&&(j._$.range=[F[F.length-(J||1)].range[0],F[F.length-1].range[1]]),se=this.performAction.apply(j,[R,K,$,ae.yy,oe[1],I,F].concat(Y)),typeof se<"u")return se;J&&(O=O.slice(0,-1*J*2),I=I.slice(0,-1*J),F=F.slice(0,-1*J)),O.push(this.productions_[oe[1]][0]),I.push(j.$),F.push(j._$),te=z[O[O.length-2]][O[O.length-1]],O.push(te);break;case 3:return!0}}return!0}},D=function(){return{EOF:1,parseError:function(C,O){if(this.yy.parser)this.yy.parser.parseError(C,O);else throw new Error(C)},setInput:function(S,C){return this.yy=C||this.yy||{},this._input=S,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){const S=this._input[0];return this.yytext+=S,this.yyleng++,this.offset++,this.match+=S,this.matched+=S,S.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),S},unput:function(S){const C=S.length,O=S.split(/(?:\r\n?|\n)/g);this._input=S+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;const I=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),O.length-1&&(this.yylineno-=O.length-1);const F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:O?(O.length===I.length?this.yylloc.first_column:0)+I[I.length-O.length].length-O[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
349
349
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(S){this.unput(this.match.slice(S))},pastInput:function(){const S=this.matched.substr(0,this.matched.length-this.match.length);return(S.length>20?"...":"")+S.substr(-20).replace(/\n/g,"")},upcomingInput:function(){let S=this.match;return S.length<20&&(S+=this._input.substr(0,20-S.length)),(S.substr(0,20)+(S.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){const S=this.pastInput(),C=new Array(S.length+1).join("-");return S+this.upcomingInput()+`
|
|
@@ -352,15 +352,15 @@ Expecting `+ce.join(", ")+", got '"+(this.terminals_[B]||B)+"'":le="Parse error
|
|
|
352
352
|
* Pikaday
|
|
353
353
|
*
|
|
354
354
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
355
|
-
*/var RF=yl.exports,Mm;function TF(){return Mm||(Mm=1,function(e,t){(function(n,o){var r;{try{r=xF}catch{}e.exports=o(r)}})(RF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},f=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){f(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},D=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},x=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=D(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=D(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}TF();function kF(e){return`(${EF(e)})`}function EF(e){return e.replace("-","")}function Oh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),D=`${n}${v}`,k=p?`-${D}`:D,x=p&&a?kF(k):k;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function Gv(e){return function(n,o,r){return Oh(r,e)}}const PF=Gv().name,DF=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Oh(n)}`:""};function OF(e){if(!e.getSelectionModel())return Im(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Im(e)),t}function Im(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Ec=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Ec||{});function Ad(){return JSON.parse(localStorage.getItem(Ec.slickTable)||"{}")}function Fd(e){return e[Ec.sorting]||{}}function Nm(e,t){localStorage.setItem(Ec.slickTable,JSON.stringify({...e,sorting:t}))}class MF{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Nm(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Nm(r,i)}}const Ld=new MF;class IF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const NF=new IF;class Kv{constructor(){this.sort=NF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),D=v.find(({getter:k})=>k===f.id);if(D){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),x=k.findIndex(({getter:S})=>S===f.id);k[x].comparer=r[x],b.refresh();return}D.comparer=(k,x)=>{let S=k.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(k,x)||this.compare(S,C,m,y)}}else{const k=b.getItems(),x=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),I=w(0,0,I,f,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const AF=new Kv;class FF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function LF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Xv=ie(_y)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),$F=ie("span")({display:"flex",alignItems:"center"}),VF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:VF,Total:$F},jF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Xv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx(Vy,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},BF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),WF=ie(xy)({color:"#1E456F"}),HF=ie(fc)({padding:0}),zF=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:zF,Dialog:BF,DialogTitle:WF,List:HF},YF=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){Uo.open=!1}return Fe.useEffect(()=>{function l(){const d=Uo.open;if(d){const u=Uo.table,f=u?.grid;t(f?.getSelectedRows().length||0),i(LF(u))}o(d)}return Uo.subscribe(l),()=>{Uo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Xv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:f}])=>E.jsx(oo,{children:E.jsx(jF,{label:d,total:u,totalFormatted:f})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Mh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const UF=ie(oo)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),qF={Wrapper:UF},Ih=({setIsOpened:e})=>E.jsx(qF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),GF=ie(oo)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),KF={Wrapper:GF},Nh=({children:e,id:t})=>E.jsx(KF.Wrapper,{id:t,children:e});function XF(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?or.highlightColumn(n,t):or.resetColumn(n,t))}const rr=Uv(XF),js={1:"",2:""},Zv="column_filters",lo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function ZF(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function QF(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Zv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const f=a.filter.args;Mh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||ZF(i),b=y||js;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function JF(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,VN):null}}const eL=ie(ko)({width:"5em",alignSelf:"flex-end"}),tL={Button:eL},nL=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,or.resetColumn(i,r),t(js),e(!1)}return E.jsx(tL.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},oL=ie(hc)({padding:0}),rL=ie(Ry)({margin:"0.5em 0 0 1em"}),tl={Checkbox:oL,FormGroup:rL},sL=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},iL={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},aL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Am=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
355
|
+
*/var RF=yl.exports,Mm;function TF(){return Mm||(Mm=1,function(e,t){(function(n,o){var r;{try{r=xF}catch{}e.exports=o(r)}})(RF,function(n){var o=typeof n=="function",r=!!window.addEventListener,i=window.document,a=window.setTimeout,l=function(A,M,L,B){r?A.addEventListener(M,L,!!B):A.attachEvent("on"+M,L)},d=function(A,M,L,B){r?A.removeEventListener(M,L,!!B):A.detachEvent("on"+M,L)},u=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")},f=function(A,M){return(" "+A.className+" ").indexOf(" "+M+" ")!==-1},p=function(A,M){f(A,M)||(A.className=A.className===""?M:A.className+" "+M)},y=function(A,M){A.className=u((" "+A.className+" ").replace(" "+M+" "," "))},w=function(A){return/Array/.test(Object.prototype.toString.call(A))},b=function(A){return/Date/.test(Object.prototype.toString.call(A))&&!isNaN(A.getTime())},m=function(A){var M=A.getDay();return M===0||M===6},v=function(A){return A%4===0&&A%100!==0||A%400===0},D=function(A,M){return[31,v(A)?29:28,31,30,31,30,31,31,30,31,30,31][M]},k=function(A){b(A)&&A.setHours(0,0,0,0)},x=function(A,M){return A.getTime()===M.getTime()},S=function(A,M,L){var B,ne;for(B in M)ne=A[B]!==void 0,ne&&typeof M[B]=="object"&&M[B]!==null&&M[B].nodeName===void 0?b(M[B])?L&&(A[B]=new Date(M[B].getTime())):w(M[B])?L&&(A[B]=M[B].slice(0)):A[B]=S({},M[B],L):(L||!ne)&&(A[B]=M[B]);return A},C=function(A,M,L){var B;i.createEvent?(B=i.createEvent("HTMLEvents"),B.initEvent(M,!0,!1),B=S(B,L),A.dispatchEvent(B)):i.createEventObject&&(B=i.createEventObject(),B=S(B,L),A.fireEvent("on"+M,B))},O=function(A){return A.month<0&&(A.year-=Math.ceil(Math.abs(A.month)/12),A.month+=12),A.month>11&&(A.year+=Math.floor(Math.abs(A.month)/12),A.month-=12),A},I={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},F=function(A,M,L){for(M+=A.firstDay;M>=7;)M-=7;return L?A.i18n.weekdaysShort[M]:A.i18n.weekdays[M]},z=function(A){var M=[],L="false";if(A.isEmpty)if(A.showDaysInNextAndPreviousMonths)M.push("is-outside-current-month"),A.enableSelectionDaysInNextAndPreviousMonths||M.push("is-selection-disabled");else return'<td class="is-empty"></td>';return A.isDisabled&&M.push("is-disabled"),A.isToday&&M.push("is-today"),A.isSelected&&(M.push("is-selected"),L="true"),A.hasEvent&&M.push("has-event"),A.isInRange&&M.push("is-inrange"),A.isStartRange&&M.push("is-startrange"),A.isEndRange&&M.push("is-endrange"),'<td data-day="'+A.day+'" class="'+M.join(" ")+'" aria-selected="'+L+'"><button class="pika-button pika-day" type="button" data-pika-year="'+A.year+'" data-pika-month="'+A.month+'" data-pika-day="'+A.day+'">'+A.day+"</button></td>"},R=function(A,M){A.setHours(0,0,0,0);var L=A.getDate(),B=A.getDay(),ne=M,oe=ne-1,se=7,j=function(le){return(le+se-1)%se};A.setDate(L+oe-j(B));var ee=new Date(A.getFullYear(),0,ne),J=24*60*60*1e3,te=(A.getTime()-ee.getTime())/J,ce=1+Math.round((te-oe+j(ee.getDay()))/se);return ce},$=function(A,M,L,B){var ne=new Date(L,M,A),oe=o?n(ne).isoWeek():R(ne,B);return'<td class="pika-week">'+oe+"</td>"},K=function(A,M,L,B){return'<tr class="pika-row'+(L?" pick-whole-week":"")+(B?" is-selected":"")+'">'+(M?A.reverse():A).join("")+"</tr>"},G=function(A){return"<tbody>"+A.join("")+"</tbody>"},q=function(A){var M,L=[];for(A.showWeekNumber&&L.push("<th></th>"),M=0;M<7;M++)L.push('<th scope="col"><abbr title="'+F(A,M)+'">'+F(A,M,!0)+"</abbr></th>");return"<thead><tr>"+(A.isRTL?L.reverse():L).join("")+"</tr></thead>"},Y=function(A,M,L,B,ne,oe){var se,j,ee,J=A._o,te=L===J.minYear,ce=L===J.maxYear,le='<div id="'+oe+'" class="pika-title" role="heading" aria-live="assertive">',he,W,re=!0,Z=!0;for(ee=[],se=0;se<12;se++)ee.push('<option value="'+(L===ne?se-M:12+se-M)+'"'+(se===B?' selected="selected"':"")+(te&&se<J.minMonth||ce&&se>J.maxMonth?' disabled="disabled"':"")+">"+J.i18n.months[se]+"</option>");for(he='<div class="pika-label">'+J.i18n.months[B]+'<select class="pika-select pika-select-month" tabindex="-1">'+ee.join("")+"</select></div>",w(J.yearRange)?(se=J.yearRange[0],j=J.yearRange[1]+1):(se=L-J.yearRange,j=1+L+J.yearRange),ee=[];se<j&&se<=J.maxYear;se++)se>=J.minYear&&ee.push('<option value="'+se+'"'+(se===L?' selected="selected"':"")+">"+se+"</option>");return W='<div class="pika-label">'+L+J.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+ee.join("")+"</select></div>",J.showMonthAfterYear?le+=W+he:le+=he+W,te&&(B===0||J.minMonth>=B)&&(re=!1),ce&&(B===11||J.maxMonth<=B)&&(Z=!1),M===0&&(le+='<button class="pika-prev'+(re?"":" is-disabled")+'" type="button">'+J.i18n.previousMonth+"</button>"),M===A._o.numberOfMonths-1&&(le+='<button class="pika-next'+(Z?"":" is-disabled")+'" type="button">'+J.i18n.nextMonth+"</button>"),le+="</div>"},H=function(A,M,L){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+L+'">'+q(A)+G(M)+"</table>"},ae=function(A){var M=this,L=M.config(A);M._onMouseDown=function(ne){if(M._v){ne=ne||window.event;var oe=ne.target||ne.srcElement;if(oe)if(f(oe,"is-disabled")||(f(oe,"pika-button")&&!f(oe,"is-empty")&&!f(oe.parentNode,"is-disabled")?(M.setDate(new Date(oe.getAttribute("data-pika-year"),oe.getAttribute("data-pika-month"),oe.getAttribute("data-pika-day"))),L.bound&&a(function(){M.hide(),L.blurFieldOnSelect&&L.field&&L.field.blur()},100)):f(oe,"pika-prev")?M.prevMonth():f(oe,"pika-next")&&M.nextMonth()),f(oe,"pika-select"))M._c=!0;else if(ne.preventDefault)ne.preventDefault();else return ne.returnValue=!1,!1}},M._onChange=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement;oe&&(f(oe,"pika-select-month")?M.gotoMonth(oe.value):f(oe,"pika-select-year")&&M.gotoYear(oe.value))},M._onKeyChange=function(ne){if(ne=ne||window.event,M.isVisible())switch(ne.keyCode){case 13:case 27:L.field&&L.field.blur();break;case 37:M.adjustDate("subtract",1);break;case 38:M.adjustDate("subtract",7);break;case 39:M.adjustDate("add",1);break;case 40:M.adjustDate("add",7);break;case 8:case 46:M.setDate(null);break}},M._parseFieldValue=function(){if(L.parse)return L.parse(L.field.value,L.format);if(o){var ne=n(L.field.value,L.format,L.formatStrict);return ne&&ne.isValid()?ne.toDate():null}else return new Date(Date.parse(L.field.value))},M._onInputChange=function(ne){var oe;ne.firedBy!==M&&(oe=M._parseFieldValue(),b(oe)&&M.setDate(oe),M._v||M.show())},M._onInputFocus=function(){M.show()},M._onInputClick=function(){M.show()},M._onInputBlur=function(){var ne=i.activeElement;do if(f(ne,"pika-single"))return;while(ne=ne.parentNode);M._c||(M._b=a(function(){M.hide()},50)),M._c=!1},M._onClick=function(ne){ne=ne||window.event;var oe=ne.target||ne.srcElement,se=oe;if(oe){!r&&f(oe,"pika-select")&&(oe.onchange||(oe.setAttribute("onchange","return;"),l(oe,"change",M._onChange)));do if(f(se,"pika-single")||se===L.trigger)return;while(se=se.parentNode);M._v&&oe!==L.trigger&&se!==L.trigger&&M.hide()}},M.el=i.createElement("div"),M.el.className="pika-single"+(L.isRTL?" is-rtl":"")+(L.theme?" "+L.theme:""),l(M.el,"mousedown",M._onMouseDown,!0),l(M.el,"touchend",M._onMouseDown,!0),l(M.el,"change",M._onChange),L.keyboardInput&&l(i,"keydown",M._onKeyChange),L.field&&(L.container?L.container.appendChild(M.el):L.bound?i.body.appendChild(M.el):L.field.parentNode.insertBefore(M.el,L.field.nextSibling),l(L.field,"change",M._onInputChange),L.defaultDate||(L.defaultDate=M._parseFieldValue(),L.setDefaultDate=!0));var B=L.defaultDate;b(B)?L.setDefaultDate?M.setDate(B,!0):M.gotoDate(B):M.gotoDate(new Date),L.bound?(this.hide(),M.el.className+=" is-bound",l(L.trigger,"click",M._onInputClick),l(L.trigger,"focus",M._onInputFocus),l(L.trigger,"blur",M._onInputBlur)):this.show()};return ae.prototype={config:function(A){this._o||(this._o=S({},I,!0));var M=S(this._o,A,!0);M.isRTL=!!M.isRTL,M.field=M.field&&M.field.nodeName?M.field:null,M.theme=typeof M.theme=="string"&&M.theme?M.theme:null,M.bound=!!(M.bound!==void 0?M.field&&M.bound:M.field),M.trigger=M.trigger&&M.trigger.nodeName?M.trigger:M.field,M.disableWeekends=!!M.disableWeekends,M.disableDayFn=typeof M.disableDayFn=="function"?M.disableDayFn:null;var L=parseInt(M.numberOfMonths,10)||1;if(M.numberOfMonths=L>4?4:L,b(M.minDate)||(M.minDate=!1),b(M.maxDate)||(M.maxDate=!1),M.minDate&&M.maxDate&&M.maxDate<M.minDate&&(M.maxDate=M.minDate=!1),M.minDate&&this.setMinDate(M.minDate),M.maxDate&&this.setMaxDate(M.maxDate),w(M.yearRange)){var B=new Date().getFullYear()-10;M.yearRange[0]=parseInt(M.yearRange[0],10)||B,M.yearRange[1]=parseInt(M.yearRange[1],10)||B}else M.yearRange=Math.abs(parseInt(M.yearRange,10))||I.yearRange,M.yearRange>100&&(M.yearRange=100);return M},toString:function(A){return A=A||this._o.format,b(this._d)?this._o.toString?this._o.toString(this._d,A):o?n(this._d).format(A):this._d.toDateString():""},getMoment:function(){return o?n(this._d):null},setMoment:function(A,M){o&&n.isMoment(A)&&this.setDate(A.toDate(),M)},getDate:function(){return b(this._d)?new Date(this._d.getTime()):null},setDate:function(A,M){if(!A)return this._d=null,this._o.field&&(this._o.field.value="",C(this._o.field,"change",{firedBy:this})),this.draw();if(typeof A=="string"&&(A=new Date(Date.parse(A))),!!b(A)){var L=this._o.minDate,B=this._o.maxDate;b(L)&&A<L?A=L:b(B)&&A>B&&(A=B),this._d=new Date(A.getTime()),k(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),C(this._o.field,"change",{firedBy:this})),!M&&typeof this._o.onSelect=="function"&&this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(A){var M=!0;if(b(A)){if(this.calendars){var L=new Date(this.calendars[0].year,this.calendars[0].month,1),B=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),ne=A.getTime();B.setMonth(B.getMonth()+1),B.setDate(B.getDate()-1),M=ne<L.getTime()||B.getTime()<ne}M&&(this.calendars=[{month:A.getMonth(),year:A.getFullYear()}],this._o.mainCalendar==="right"&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(A,M){var L=this.getDate()||new Date,B=parseInt(M)*24*60*60*1e3,ne;A==="add"?ne=new Date(L.valueOf()+B):A==="subtract"&&(ne=new Date(L.valueOf()-B)),this.setDate(ne)},adjustCalendars:function(){this.calendars[0]=O(this.calendars[0]);for(var A=1;A<this._o.numberOfMonths;A++)this.calendars[A]=O({month:this.calendars[0].month+A,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(A){isNaN(A)||(this.calendars[0].month=parseInt(A,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(A){isNaN(A)||(this.calendars[0].year=parseInt(A,10),this.adjustCalendars())},setMinDate:function(A){A instanceof Date?(k(A),this._o.minDate=A,this._o.minYear=A.getFullYear(),this._o.minMonth=A.getMonth()):(this._o.minDate=I.minDate,this._o.minYear=I.minYear,this._o.minMonth=I.minMonth,this._o.startRange=I.startRange),this.draw()},setMaxDate:function(A){A instanceof Date?(k(A),this._o.maxDate=A,this._o.maxYear=A.getFullYear(),this._o.maxMonth=A.getMonth()):(this._o.maxDate=I.maxDate,this._o.maxYear=I.maxYear,this._o.maxMonth=I.maxMonth,this._o.endRange=I.endRange),this.draw()},setStartRange:function(A){this._o.startRange=A},setEndRange:function(A){this._o.endRange=A},draw:function(A){if(!(!this._v&&!A)){var M=this._o,L=M.minYear,B=M.maxYear,ne=M.minMonth,oe=M.maxMonth,se="",j;this._y<=L&&(this._y=L,!isNaN(ne)&&this._m<ne&&(this._m=ne)),this._y>=B&&(this._y=B,!isNaN(oe)&&this._m>oe&&(this._m=oe));for(var ee=0;ee<M.numberOfMonths;ee++)j="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),se+='<div class="pika-lendar">'+Y(this,ee,this.calendars[ee].year,this.calendars[ee].month,this.calendars[0].year,j)+this.render(this.calendars[ee].year,this.calendars[ee].month,j)+"</div>";this.el.innerHTML=se,M.bound&&M.field.type!=="hidden"&&a(function(){M.trigger.focus()},1),typeof this._o.onDraw=="function"&&this._o.onDraw(this),M.bound&&M.field.setAttribute("aria-label",M.ariaLabel)}},adjustPosition:function(){var A,M,L,B,ne,oe,se,j,ee,J,te,ce;if(!this._o.container){if(this.el.style.position="absolute",A=this._o.trigger,M=A,L=this.el.offsetWidth,B=this.el.offsetHeight,ne=window.innerWidth||i.documentElement.clientWidth,oe=window.innerHeight||i.documentElement.clientHeight,se=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,te=!0,ce=!0,typeof A.getBoundingClientRect=="function")J=A.getBoundingClientRect(),j=J.left+window.pageXOffset,ee=J.bottom+window.pageYOffset;else for(j=M.offsetLeft,ee=M.offsetTop+M.offsetHeight;M=M.offsetParent;)j+=M.offsetLeft,ee+=M.offsetTop;(this._o.reposition&&j+L>ne||this._o.position.indexOf("right")>-1&&j-L+A.offsetWidth>0)&&(j=j-L+A.offsetWidth,te=!1),(this._o.reposition&&ee+B>oe+se||this._o.position.indexOf("top")>-1&&ee-B-A.offsetHeight>0)&&(ee=ee-B-A.offsetHeight,ce=!1),this.el.style.left=j+"px",this.el.style.top=ee+"px",p(this.el,te?"left-aligned":"right-aligned"),p(this.el,ce?"bottom-aligned":"top-aligned"),y(this.el,te?"right-aligned":"left-aligned"),y(this.el,ce?"top-aligned":"bottom-aligned")}},render:function(A,M,L){var B=this._o,ne=new Date,oe=D(A,M),se=new Date(A,M,1).getDay(),j=[],ee=[];k(ne),B.firstDay>0&&(se-=B.firstDay,se<0&&(se+=7));for(var J=M===0?11:M-1,te=M===11?0:M+1,ce=M===0?A-1:A,le=M===11?A+1:A,he=D(ce,J),W=oe+se,re=W;re>7;)re-=7;W+=7-re;for(var Z=!1,fe=0,pe=0;fe<W;fe++){var be=new Date(A,M,1+(fe-se)),ge=b(this._d)?x(be,this._d):!1,Re=x(be,ne),Ve=B.events.indexOf(be.toDateString())!==-1,Ne=fe<se||fe>=oe+se,Je=1+(fe-se),ke=M,ut=A,Yt=B.startRange&&x(B.startRange,be),rt=B.endRange&&x(B.endRange,be),Ot=B.startRange&&B.endRange&&B.startRange<be&&be<B.endRange,Ut=B.minDate&&be<B.minDate||B.maxDate&&be>B.maxDate||B.disableWeekends&&m(be)||B.disableDayFn&&B.disableDayFn(be);Ne&&(fe<se?(Je=he+Je,ke=J,ut=ce):(Je=Je-oe,ke=te,ut=le));var Lt={day:Je,month:ke,year:ut,hasEvent:Ve,isSelected:ge,isToday:Re,isDisabled:Ut,isEmpty:Ne,isStartRange:Yt,isEndRange:rt,isInRange:Ot,showDaysInNextAndPreviousMonths:B.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:B.enableSelectionDaysInNextAndPreviousMonths};B.pickWholeWeek&&ge&&(Z=!0),ee.push(z(Lt)),++pe===7&&(B.showWeekNumber&&ee.unshift($(fe-se,M,A,B.firstWeekOfYearMinDays)),j.push(K(ee,B.isRTL,B.pickWholeWeek,Z)),ee=[],pe=0,Z=!1)}return H(B,j,L)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),y(this.el,"is-hidden"),this._o.bound&&(l(i,"click",this._onClick),this.adjustPosition()),typeof this._o.onOpen=="function"&&this._o.onOpen.call(this))},hide:function(){var A=this._v;A!==!1&&(this._o.bound&&d(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),p(this.el,"is-hidden"),this._v=!1,A!==void 0&&typeof this._o.onClose=="function"&&this._o.onClose.call(this))},destroy:function(){var A=this._o;this.hide(),d(this.el,"mousedown",this._onMouseDown,!0),d(this.el,"touchend",this._onMouseDown,!0),d(this.el,"change",this._onChange),A.keyboardInput&&d(i,"keydown",this._onKeyChange),A.field&&(d(A.field,"change",this._onInputChange),A.bound&&(d(A.trigger,"click",this._onInputClick),d(A.trigger,"focus",this._onInputFocus),d(A.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ae})}(yl)),yl.exports}TF();function kF(e){return`(${EF(e)})`}function EF(e){return e.replace("-","")}function Oh(e,t={}){const{currencySymbol:n="",decimalPlaces:o=2,decimalSeparator:r=".",negativeClass:i,negativeInParentheses:a=!0,noHTML:l=!1,positiveClass:d,thousandsSeparator:u=",",zeroAsBlank:f=!1}=t;if(e==null||e==="")return"";if(!Number(e)&&f)return"";const p=(Number(e)||0)<0,y=Math.abs(Number(e)||0).toFixed(o),w=parseInt(y).toString(),b=w.length>3?w.length%3:0,v=(b?w.slice(0,b)+u:"")+w.slice(b).replace(/(\d{3})(?=\d)/g,`$1${u}`)+(o?r+y.slice(-o):""),D=`${n}${v}`,k=p?`-${D}`:D,x=p&&a?kF(k):k;return l?x:p?i?`<span class="${i}">${x}</span>`:x:d?`<span class="${d}">${x}</span>`:x}function Gv(e){return function(n,o,r){return Oh(r,e)}}const PF=Gv().name,DF=(e,t)=>{const n=e.sum&&e.sum[t.field];return n!==null?`${e.group.level?"total":"TOTAL"}: ${Oh(n)}`:""};function OF(e){if(!e.getSelectionModel())return Im(e);let t=e.getSelectedRows();return t.sort((n,o)=>n-o),t.length===0&&(t=Im(e)),t}function Im(e){const t=e.getData();return Array.from({length:t.getLength()},(n,o)=>o)}var Ec=(e=>(e.slickTable="slick-table",e.sorting="sorting",e))(Ec||{});function Ad(){return JSON.parse(localStorage.getItem(Ec.slickTable)||"{}")}function Fd(e){return e[Ec.sorting]||{}}function Nm(e,t){localStorage.setItem(Ec.slickTable,JSON.stringify({...e,sorting:t}))}class MF{getTableSorting(t){const n=Ad();return Fd(n)[t]}resetTableSorting(t){const n=Ad(),o=Fd(n);delete o[t],Nm(n,o)}setTableSorting(t,n,o){const r=Ad(),i=Fd(r);i[t]={columnId:n,isAscending:o},Nm(r,i)}}const Ld=new MF;class IF{constructor(){this.emptyValue="1/1/1970"}dates(t,n){const o=Ss(t||this.emptyValue),r=Ss(n||this.emptyValue);return o-r}numbers(t,n){return Number(t||0)-Number(n||0)}stringsNumeric(t,n){return!t&&!n?0:t?n?t.localeCompare(n,void 0,{numeric:!0}):1:-1}strings(t,n){return(t||"").toLowerCase()>(n||"").toLowerCase()?1:(t||"").toLowerCase()<(n||"").toLowerCase()?-1:0}numbersWithSymbols(t,n){const o=Number((t||"0").match(/^\d+/g)?.[0]||0);return Number((n||"0").match(/^\d+/g)?.[0]||0)-o}}const NF=new IF;class Kv{constructor(){this.sort=NF,this.withFormatter=[Co.TEXT,Co.NUMBER_FORMATTED]}getSortFunction(t){let n="",o=!1,r;return(i,a)=>{const{grid:l,sortAsc:d,columnId:u}=a,f=a.sortCol;if(!l||!f)return;const p=f.field;if(!p)return;const y=f.sortAs;if(!y)return;const{formatter:w}=f,b=l.getData();d&&n===f?.id?(o=!0,Ld.resetTableSorting(t),l.setSortColumns([]),n=""):(o=!1,n=u,Ld.setTableSorting(t,u,d));const m=d?-1:1,v=b.getGrouping(),D=v.find(({getter:k})=>k===f.id);if(D){if(r||(r=v.map(({comparer:k})=>k)),o){const k=b.getGrouping(),x=k.findIndex(({getter:S})=>S===f.id);k[x].comparer=r[x],b.refresh();return}D.comparer=(k,x)=>{let S=k.value,C=x.value;return w&&this.withFormatter.includes(y)&&(S=w(0,0,S,f,null,l),C=w(0,0,C,f,null,l)),this.priority(k,x)||this.compare(S,C,m,y)}}else{const k=b.getItems(),x=b.getIdPropertyName();k.sort((S,C)=>{if(o)return S[x]-C[x];let O=S[p],I=C[p];return w&&this.withFormatter.includes(y)&&(O=w(0,0,O,f,S,l),I=w(0,0,I,f,C,l)),this.priority(S,C)||this.compare(O,I,m,y)})}b.refresh()}}priority(t,n){return 0}restoreSorting(t){const n=t.grid;if(!n)return;const o=Ld.getTableSorting(t.id);if(o){const{columnId:r,isAscending:i}=o,a=this.getSortFunction(t.id),l=n.getColumns().find(({id:d})=>d===r);l&&(a(null,{grid:n,columnId:r,sortAsc:i,sortCol:l,sortCols:[]}),document.querySelector(`#${t.id} [data-id="${r}"] .slick-sort-indicator`)?.classList.add(`slick-sort-indicator-${i?"asc":"desc"}`),n.invalidate())}}compare(t,n,o,r){switch(r){case Co.DATE:return this.sort.dates(t,n)*o;case Co.NUMBER:case Co.NUMBER_FORMATTED:return this.sort.numbers(t,n)*o;case Co.TEXT_NUMERIC:return this.sort.stringsNumeric(t,n)*o;case Co.TEXT:return this.sort.strings(t,n)*o;default:return 0}}}const AF=new Kv;class FF{constructor(t,n){this.columnsWithTitle=t,this.columnsWithValue=n}calculate(t){let n=t.getColumns().length;for(;n--;)this.calculateColumn(n,t)}calculateColumn(t,n){const r=n.getColumns()[t].field;this.columnsWithTitle.includes(r)?this.addTitle(n,t):this.columnsWithValue.includes(r)&&this.addTotal(n,t)}addTitle(t,n){const r=t.getColumns()[n].id,i=t.getFooterRowColumn(r);i.textContent="TOTAL:"}addTotal(t,n){const o=t.getColumns()[n],r=o.field,i=t.getData(),a=this.displayedRows(i),l=this.totalAmountOf(a,r),d=t.getFooterRowColumn(r),u=o.formatter;d.textContent=`${u?u(0,0,l,o,null,t):l}`}displayedRows(t){const n=[],o=t.getLength();if(!o)return n;for(let r=0;r<o;r++)n.push(t.getItem(r));return n}totalAmountOf(t,n){return t.reduce((o,r)=>(r.isDeleted||(o+=Number(r[n])||0),o),0)}}function LF(e){const t={};if(!e)return t;const n=e.summaryColumnIds,o=e.grid;if(!o)return t;const r=o.getSelectedRows();o.getColumns().forEach((l,d)=>{const{formatter:u,id:f,name:p}=l;n.includes(f)&&(t[f]={cell:d,column:l,formatter:u,label:p,total:0,totalFormatted:u?u(0,0,0,l,{},o):"0"})});const a=o.getData();return r.forEach(l=>{const d=a.getItem(l);Object.keys(t).forEach(u=>{t[u].total+=d[u],t[u].totalFormatted=t[u].formatter?t[u].formatter(l,t[u].cell,t[u].total,t[u].column,d,o):`${t[u].total}`})}),t}const Xv=ie(_y)({alignItems:"center",color:"#1E456F",display:"flex",justifyContent:"space-between"}),$F=ie("span")({display:"flex",alignItems:"center"}),VF=ie("span")({marginLeft:"0.5em",width:"20px",cursor:"pointer",backgroundColor:"#1E456F","&:hover":{scale:"1.3"}}),$d={Icon:VF,Total:$F},jF=({label:e,total:t,totalFormatted:n})=>{const[o,r]=Fe.useState(!1);function i(){navigator.clipboard.writeText(`${t}`),r(!0),setTimeout(()=>{r(!1)},1e3)}return E.jsxs(Xv,{children:[E.jsx("span",{children:`Total ${e}:`}),E.jsxs($d.Total,{children:[E.jsx("span",{children:`${n}`}),o?E.jsx($d.Icon,{className:"sgi sgi-check"}):E.jsx(Vy,{title:"Copy to clipboard",children:E.jsx($d.Icon,{className:"sgi sgi-content-copy",onClick:i})})]})]})},BF=ie(qu)({"& .MuiPaper-root":{minWidth:"25em"}}),WF=ie(xy)({color:"#1E456F"}),HF=ie(fc)({padding:0}),zF=ie(ko)({borderColor:"#1E9577",color:"#1E9577",textTransform:"none"}),el={Button:zF,Dialog:BF,DialogTitle:WF,List:HF},YF=()=>{const[e,t]=Fe.useState(0),[n,o]=Fe.useState(!1),[r,i]=Fe.useState({});function a(){qo.open=!1}return Fe.useEffect(()=>{function l(){const d=qo.open;if(d){const u=qo.table,f=u?.grid;t(f?.getSelectedRows().length||0),i(LF(u))}o(d)}return qo.subscribe(l),()=>{qo.unsubscribe(l)}},[]),n?E.jsxs(el.Dialog,{open:n,onClose:a,children:[E.jsx(el.DialogTitle,{children:"Selected rows summary"}),E.jsx(Ku,{children:E.jsxs(el.List,{children:[E.jsx(Xv,{children:`Number of selected rows: ${e}`}),Object.entries(r).map(([l,{label:d,total:u,totalFormatted:f}])=>E.jsx(oo,{children:E.jsx(jF,{label:d,total:u,totalFormatted:f})},l))]})}),E.jsx(Gu,{children:E.jsx(el.Button,{variant:"outlined",onClick:a,children:"Close"})})]}):null};function Mh(e,t,n){const{scrollWidth:o}=document.documentElement,{left:r,right:i}=e.getBoundingClientRect(),a=i-r,l=t+i>=o;e.style.left=`${l?t-a:t}px`,e.style.top=`${n}px`,e.style.visibility="visible"}const UF=ie(oo)({position:"fixed",top:"0",left:"0",right:"0",bottom:"0",zIndex:"2"}),qF={Wrapper:UF},Ih=({setIsOpened:e})=>E.jsx(qF.Wrapper,{onClick:()=>e(!1),onContextMenu:t=>{t.preventDefault(),e(!1)},"data-testid":"overlay"}),GF=ie(oo)({visibility:"hidden",borderRadius:"5px",backgroundColor:"#FFFFFF",boxShadow:"1px 1px 1px 1px gray",padding:"0.5em",position:"absolute",zIndex:10,userSelect:"none",fontSize:"inherit",top:0,left:0}),KF={Wrapper:GF},Nh=({children:e,id:t})=>E.jsx(KF.Wrapper,{id:t,children:e});function XF(e){const{columnId:t,table:n}=Rn;if(!t||!n)return;const o=n.filter.args;o.columnFilters&&(n.filter.args={...o,columnFilters:{...o.columnFilters,[t]:{...o.columnFilters[t],value:e}}},e[1]||e[2]?Io.highlightColumn(n,t):Io.resetColumn(n,t))}const rr=Uv(XF),js={1:"",2:""},Zv="column_filters",lo={filter:"🔎︎ Filter...",from:"🔎︎ From...",to:"🔎︎ To..."};function ZF(e){switch(e){case hn.Boolean:return je.Boolean;case hn.Date:return je.DateEqual;case hn.MultipleSelect:return je.MultipleSelect;case hn.Number:case hn.NumberFormatted:return je.NumberEqual;case hn.Text:return je.TextContain}}function QF(e,t,n){Fe.useEffect(()=>{if(!e)return;const o=document.getElementById(Zv);if(!o)return;const{columnId:r,group:i,table:a,x:l,y:d}=Rn;if(!a?.grid)return;const f=a.filter.args;Mh(o,l,d);const{filterId:p,value:y}=f.columnFilters?.[r]||{},w=p||ZF(i),b=y||js;a.filter.args={...f,columnFilters:{...f.columnFilters,[r]:{filterId:w,group:i,value:b}}},t(w),n(b)},[e])}function JF(e){Fe.useEffect(()=>{function t(){e(!0)}return Rn.subscribe(t),()=>{Rn.unsubscribe(t)}},[])}function gu(e){return{format:Yr.ui,value:e?xe(e,VN):null}}const eL=ie(ko)({width:"5em",alignSelf:"flex-end"}),tL={Button:eL},nL=({setIsOpened:e,setValue:t,value:n})=>{function o(){const{columnId:r,table:i}=Rn;if(!i||!i.grid)return;const l=i.filter.args;delete l.columnFilters?.[r],i.filter.args=l,Io.resetColumn(i,r),t(js),e(!1)}return E.jsx(tL.Button,{disabled:!n[1]&&!n[2],onClick:o,variant:"outlined",size:"small",children:"Reset"})},oL=ie(hc)({padding:0}),rL=ie(Ry)({margin:"0.5em 0 0 1em"}),tl={Checkbox:oL,FormGroup:rL},sL=({setValue:e,value:t})=>{function n(o){e(o),rr(o)}return E.jsxs(tl.FormGroup,{children:[E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!t[1]&&!t[2],onClick:()=>n({1:"",2:""}),size:"small"}),label:"All"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[1],onClick:()=>n({1:"true",2:""}),size:"small"}),label:"Yes"}),E.jsx(ul,{control:E.jsx(tl.Checkbox,{checked:!!t[2],onClick:()=>n({1:"",2:"true"}),size:"small"}),label:"No"})]})},iL={Y:"year",YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},aL={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Am=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join(`
|
|
356
356
|
`);class Qv{constructor({locale:t,formats:n,instance:o}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=iL,this.setLocaleToValue=r=>{const i=this.getCurrentLocaleCode();return i===r.locale()?r:r.locale(i)},this.hasTimezonePlugin=()=>typeof this.moment.tz<"u",this.createSystemDate=r=>{const i=this.moment(r).local();return this.locale===void 0?i:i.locale(this.locale)},this.createUTCDate=r=>{const i=this.moment.utc(r);return this.locale===void 0?i:i.locale(this.locale)},this.createTZDate=(r,i)=>{if(!this.hasTimezonePlugin())throw new Error(Am);const a=i==="default"?this.moment(r):this.moment.tz(r,i);return this.locale===void 0?a:a.locale(this.locale)},this.date=(r,i="default")=>r===null?null:i==="UTC"?this.createUTCDate(r):i==="system"||i==="default"&&!this.hasTimezonePlugin()?this.createSystemDate(r):this.createTZDate(r,i),this.getInvalidDate=()=>this.moment(new Date("Invalid Date")),this.getTimezone=r=>{const i=r._z?.name,a=r.isUTC()?"UTC":"system";return i??this.moment.defaultZone?.name??a},this.setTimezone=(r,i)=>{if(this.getTimezone(r)===i)return r;if(i==="UTC")return r.clone().utc();if(i==="system")return r.clone().local();if(!this.hasTimezonePlugin()){if(i!=="default")throw new Error(Am);return r}const a=i==="default"?this.moment.defaultZone?.name??"system":i;if(a==="system")return r.clone().local();const l=r.clone();return l.tz(a),l},this.toJsDate=r=>r.toDate(),this.parse=(r,i)=>r===""?null:this.locale?this.moment(r,i,this.locale,!0):this.moment(r,i,!0),this.getCurrentLocaleCode=()=>this.locale||xe.locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(xe.localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=r=>{const i=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return r.match(i).map(a=>{const l=a[0];return l==="L"||l===";"?xe.localeData(this.getCurrentLocaleCode()).longDateFormat(a):a}).join("")},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,i)=>this.formatByString(r,this.formats[i]),this.formatByString=(r,i)=>{const a=r.clone();return a.locale(this.getCurrentLocaleCode()),a.format(i)},this.formatNumber=r=>r,this.isEqual=(r,i)=>r===null&&i===null?!0:r===null||i===null?!1:r.isSame(i),this.isSameYear=(r,i)=>r.isSame(i,"year"),this.isSameMonth=(r,i)=>r.isSame(i,"month"),this.isSameDay=(r,i)=>r.isSame(i,"day"),this.isSameHour=(r,i)=>r.isSame(i,"hour"),this.isAfter=(r,i)=>r.isAfter(i),this.isAfterYear=(r,i)=>r.isAfter(i,"year"),this.isAfterDay=(r,i)=>r.isAfter(i,"day"),this.isBefore=(r,i)=>r.isBefore(i),this.isBeforeYear=(r,i)=>r.isBefore(i,"year"),this.isBeforeDay=(r,i)=>r.isBefore(i,"day"),this.isWithinRange=(r,[i,a])=>r.isBetween(i,a,null,"[]"),this.startOfYear=r=>r.clone().startOf("year"),this.startOfMonth=r=>r.clone().startOf("month"),this.startOfWeek=r=>this.setLocaleToValue(r.clone()).startOf("week"),this.startOfDay=r=>r.clone().startOf("day"),this.endOfYear=r=>r.clone().endOf("year"),this.endOfMonth=r=>r.clone().endOf("month"),this.endOfWeek=r=>this.setLocaleToValue(r.clone()).endOf("week"),this.endOfDay=r=>r.clone().endOf("day"),this.addYears=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"years"):r.clone().add(i,"years"),this.addMonths=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"months"):r.clone().add(i,"months"),this.addWeeks=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"weeks"):r.clone().add(i,"weeks"),this.addDays=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"days"):r.clone().add(i,"days"),this.addHours=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"hours"):r.clone().add(i,"hours"),this.addMinutes=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"minutes"):r.clone().add(i,"minutes"),this.addSeconds=(r,i)=>i<0?r.clone().subtract(Math.abs(i),"seconds"):r.clone().add(i,"seconds"),this.getYear=r=>r.get("year"),this.getMonth=r=>r.get("month"),this.getDate=r=>r.get("date"),this.getHours=r=>r.get("hours"),this.getMinutes=r=>r.get("minutes"),this.getSeconds=r=>r.get("seconds"),this.getMilliseconds=r=>r.get("milliseconds"),this.setYear=(r,i)=>r.clone().year(i),this.setMonth=(r,i)=>r.clone().month(i),this.setDate=(r,i)=>r.clone().date(i),this.setHours=(r,i)=>r.clone().hours(i),this.setMinutes=(r,i)=>r.clone().minutes(i),this.setSeconds=(r,i)=>r.clone().seconds(i),this.setMilliseconds=(r,i)=>r.clone().milliseconds(i),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const i=this.startOfWeek(this.startOfMonth(r)),a=this.endOfWeek(this.endOfMonth(r));let l=0,d=i;const u=[];for(;d.isBefore(a);){const f=Math.floor(l/7);u[f]=u[f]||[],u[f].push(d),d=this.addDays(d,1),l+=1}return u},this.getWeekNumber=r=>r.week(),this.getDayOfWeek=r=>r.day()+1,this.moment=o||xe,this.locale=t,this.formats=Q({},aL,n)}getYearRange([t,n]){const o=this.startOfYear(t),r=this.endOfYear(n),i=[];let a=o;for(;this.isBefore(a,r);)i.push(a),a=this.addYears(a,1);return i}}const vi=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),lL=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let i;if(e!=null)i=e;else if(r.includes(t))i=t;else if(r.length>0)i=r[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:r,openTo:i}},Fl=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o=e.setMilliseconds(o,e.getMilliseconds(n)),o},Fi=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:i,utils:a,timezone:l})=>{const d=Fl(a,a.date(void 0,l),e);n&&a.isBefore(r,d)&&(r=d),t&&a.isAfter(o,d)&&(o=d);let u=e,f=e;for(a.isBefore(e,r)&&(u=r,f=null),a.isAfter(e,o)&&(f&&(f=o),u=null);u||f;){if(u&&a.isAfter(u,o)&&(u=null),f&&a.isBefore(f,r)&&(f=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(f){if(!i(f))return f;f=a.addDays(f,-1)}}return null},cL=(e,t)=>t==null||!e.isValid(t)?null:t,Jn=(e,t,n)=>t==null||!e.isValid(t)?n:t,dL=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ah=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},Jv=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),uL=["year","month","day"],Fm=e=>uL.includes(e),Fh=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return vi(n,["year"])?r.year:vi(n,["month"])?r.month:vi(n,["day"])?r.dayOfMonth:vi(n,["month","year"])?`${r.month} ${r.year}`:vi(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},hL=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},fL=["hours","minutes","seconds"],pL=e=>fL.includes(e),Lm=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),mL=(e,t)=>(n,o)=>e?t.isAfter(n,o):Lm(n,t)>Lm(o,t),xo={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},gL=e=>Math.max(...e.map(t=>xo[t.type]??1)),bi=(e,t,n)=>{if(t===xo.year)return e.startOfYear(n);if(t===xo.month)return e.startOfMonth(n);if(t===xo.day)return e.startOfDay(n);let o=n;return t<xo.minutes&&(o=e.setMinutes(o,0)),t<xo.seconds&&(o=e.setSeconds(o,0)),t<xo.milliseconds&&(o=e.setMilliseconds(o,0)),o},yL=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{let i=r?r():bi(t,n,Jv(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,i)&&(i=bi(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,i)&&(i=bi(t,n,e.maxDate));const a=mL(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&a(e.minTime,i)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Fl(t,i,e.minTime))),e.maxTime!=null&&a(i,e.maxTime)&&(i=bi(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Fl(t,i,e.maxTime))),i},Lh=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
357
357
|
`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},vL=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Pc=(e,t)=>{const n=[],o=e.date(void 0,"default"),r=e.startOfWeek(o),i=e.endOfWeek(o);let a=r;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(l=>e.formatByString(l,t))},eb=(e,t,n,o)=>{switch(n){case"month":return Ah(e,e.date(void 0,t)).map(r=>e.formatByString(r,o));case"weekDay":return Pc(e,o);case"meridiem":{const r=e.date(void 0,t);return[e.startOfDay(r),e.endOfDay(r)].map(i=>e.formatByString(i,o))}default:return[]}},$m="s",bL=["0","1","2","3","4","5","6","7","8","9"],wL=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),$m)==="0"?bL:Array.from({length:10}).map((o,r)=>e.formatByString(e.setSeconds(t,r),$m))},Ur=(e,t)=>{if(t[0]==="0")return e;const n=[];let o="";for(let r=0;r<e.length;r+=1){o+=e[r];const i=t.indexOf(o);i>-1&&(n.push(i.toString()),o="")}return n.join("")},$h=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),Vm=(e,t)=>{const n=Ur(e,t);return n!==" "&&!Number.isNaN(Number(n))},tb=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},nb=(e,t,n,o,r)=>{if(process.env.NODE_ENV!=="production"&&r.type!=="day"&&r.contentType==="digit-with-letter")throw new Error([`MUI X: The token "${r.format}" is a digit format with letter in it.'
|
|
358
358
|
This type of format is only supported for 'day' sections`].join(`
|
|
359
|
-
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=tb(i,r.maxLength)),$h(i,o)},CL=(e,t,n,o,r,i,a,l)=>{const d=vL(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=x=>nb(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let k=parseInt(Ur(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?k=b.minimum:k=b.maximum}return k%v!==0&&((d<0||u)&&(k+=v-(v+k)%v),(d>0||f)&&(k-=k%v)),k>b.maximum?m(b.minimum+(k-b.maximum-1)%(b.maximum-b.minimum+1)):k<b.minimum?m(b.maximum-(b.minimum-k-1)%(b.maximum-b.minimum+1)):m(k)},w=()=>{const b=eb(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const D=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[D]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},Vh=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Ur(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},jm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Lh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},ob=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,rb=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return ob(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},SL=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(Vh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},_L=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),xL=(e,t,n)=>{const r=e.map(i=>{const a=Vh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},RL=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Ah(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:ob(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=Pc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return Ur(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Ur(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Bm=!1;const Wm=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Bm){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Bm=!0)}},TL=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=Pc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Hm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},zm=(e,t,n,o,r)=>[...n].sort((i,a)=>Hm[i.type]-Hm[a.type]).reduce((i,a)=>!r||a.modified?TL(e,a,t,i):i,o),kL=()=>navigator.userAgent.toLowerCase().includes("android"),EL=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},yu=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,PL=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},DL=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},OL=["value","referenceDate"],
|
|
359
|
+
`));if(r.type==="day"&&r.contentType==="digit-with-letter"){const a=e.setDate(n.longestMonth,t);return e.formatByString(a,r.format)}let i=t.toString();return r.hasLeadingZerosInInput&&(i=tb(i,r.maxLength)),$h(i,o)},CL=(e,t,n,o,r,i,a,l)=>{const d=vL(o),u=o==="Home",f=o==="End",p=n.value===""||u||f,y=()=>{const b=r[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),m=x=>nb(e,x,b,i,n),v=n.type==="minutes"&&l?.minutesStep?l.minutesStep:1;let k=parseInt(Ur(n.value,i),10)+d*v;if(p){if(n.type==="year"&&!f&&!u)return e.formatByString(e.date(void 0,t),n.format);d>0||u?k=b.minimum:k=b.maximum}return k%v!==0&&((d<0||u)&&(k+=v-(v+k)%v),(d>0||f)&&(k-=k%v)),k>b.maximum?m(b.minimum+(k-b.maximum-1)%(b.maximum-b.minimum+1)):k<b.minimum?m(b.maximum-(b.minimum-k-1)%(b.maximum-b.minimum+1)):m(k)},w=()=>{const b=eb(e,t,n.type,n.format);if(b.length===0)return n.value;if(p)return d>0||u?b[0]:b[b.length-1];const D=((b.indexOf(n.value)+d)%b.length+b.length)%b.length;return b[D]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?y():w()},Vh=(e,t,n)=>{let o=e.value||e.placeholder;const r=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(o=Number(Ur(o,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!r&&o.length===1&&(o=`${o}`),t==="input-rtl"&&(o=`${o}`),o},jm=(e,t,n,o)=>{if(process.env.NODE_ENV!=="production"&&Lh(e,n).type==="weekDay")throw new Error("changeSectionValueFormat doesn't support week day formats");return e.formatByString(e.parse(t,n),o)},ob=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,rb=(e,t,n,o)=>{if(t!=="digit")return!1;const r=e.date(void 0,"default");switch(n){case"year":return ob(e,o)?e.formatByString(e.setYear(r,1),o)==="0001":e.formatByString(e.setYear(r,2001),o)==="01";case"month":return e.formatByString(e.startOfYear(r),o).length>1;case"day":return e.formatByString(e.startOfMonth(r),o).length>1;case"weekDay":return e.formatByString(e.startOfWeek(r),o).length>1;case"hours":return e.formatByString(e.setHours(r,1),o).length>1;case"minutes":return e.formatByString(e.setMinutes(r,1),o).length>1;case"seconds":return e.formatByString(e.setSeconds(r,1),o).length>1;default:throw new Error("Invalid section type")}},SL=(e,t,n)=>{const o=t.some(d=>d.type==="day"),r=[],i=[];for(let d=0;d<t.length;d+=1){const u=t[d];o&&u.type==="weekDay"||(r.push(u.format),i.push(Vh(u,"non-input",n)))}const a=r.join(" "),l=i.join(" ");return e.parse(l,a)},_L=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),xL=(e,t,n)=>{const r=e.map(i=>{const a=Vh(i,n?"input-rtl":"input-ltr",t);return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return n?`${r}`:r},RL=(e,t,n)=>{const o=e.date(void 0,n),r=e.endOfYear(o),i=e.endOfDay(o),{maxDaysInMonth:a,longestMonth:l}=Ah(e,o).reduce((d,u)=>{const f=e.getDaysInMonth(u);return f>d.maxDaysInMonth?{maxDaysInMonth:f,longestMonth:u}:d},{maxDaysInMonth:0,longestMonth:null});return{year:({format:d})=>({minimum:0,maximum:ob(e,d)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:d})=>({minimum:1,maximum:d!=null&&e.isValid(d)?e.getDaysInMonth(d):a,longestMonth:l}),weekDay:({format:d,contentType:u})=>{if(u==="digit"){const f=Pc(e,d).map(Number);return{minimum:Math.min(...f),maximum:Math.max(...f)}}return{minimum:1,maximum:7}},hours:({format:d})=>{const u=e.getHours(i);return Ur(e.formatByString(e.endOfDay(o),d),t)!==u.toString()?{minimum:1,maximum:Number(Ur(e.formatByString(e.startOfDay(o),d),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}};let Bm=!1;const Wm=(e,t)=>{if(process.env.NODE_ENV!=="production"&&!Bm){const n=["empty"];["date","date-time"].includes(t)&&n.push("weekDay","day","month","year"),["time","date-time"].includes(t)&&n.push("hours","minutes","seconds","meridiem");const o=e.find(r=>!n.includes(r.type));o&&(console.warn(`MUI X: The field component you are using is not compatible with the "${o.type}" date section.`,`The supported date sections are ["${n.join('", "')}"]\`.`),Bm=!0)}},TL=(e,t,n,o)=>{switch(t.type){case"year":return e.setYear(o,e.getYear(n));case"month":return e.setMonth(o,e.getMonth(n));case"weekDay":{const r=Pc(e,t.format),i=e.formatByString(n,t.format),a=r.indexOf(i),d=r.indexOf(t.value)-a;return e.addDays(n,d)}case"day":return e.setDate(o,e.getDate(n));case"meridiem":{const r=e.getHours(n)<12,i=e.getHours(o);return r&&i>=12?e.addHours(o,-12):!r&&i<12?e.addHours(o,12):o}case"hours":return e.setHours(o,e.getHours(n));case"minutes":return e.setMinutes(o,e.getMinutes(n));case"seconds":return e.setSeconds(o,e.getSeconds(n));default:return o}},Hm={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},zm=(e,t,n,o,r)=>[...n].sort((i,a)=>Hm[i.type]-Hm[a.type]).reduce((i,a)=>!r||a.modified?TL(e,a,t,i):i,o),kL=()=>navigator.userAgent.toLowerCase().includes("android"),EL=(e,t)=>{const n={};if(!t)return e.forEach((d,u)=>{const f=u===0?null:u-1,p=u===e.length-1?null:u+1;n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const o={},r={};let i=0,a=0,l=e.length-1;for(;l>=0;){a=e.findIndex((d,u)=>u>=i&&d.endSeparator?.includes(" ")&&d.endSeparator!==" / "),a===-1&&(a=e.length-1);for(let d=a;d>=i;d-=1)r[d]=l,o[l]=d,l-=1;i=a+1}return e.forEach((d,u)=>{const f=r[u],p=f===0?null:o[f-1],y=f===e.length-1?null:o[f+1];n[u]={leftIndex:p,rightIndex:y}}),{neighbors:n,startIndex:o[0],endIndex:o[e.length-1]}},yu=(e,t)=>e==null?null:e==="all"?"all":typeof e=="string"?t.findIndex(n=>n.type===e):e,PL=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},DL=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},OL=["value","referenceDate"],No={emptyValue:null,getTodayValue:Jv,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,o=Ye(e,OL);return t!=null&&o.utils.isValid(t)?t:n??yL(o)},cleanValue:cL,areValuesEqual:dL,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null,getTimezone:(e,t)=>t==null||!e.isValid(t)?null:e.getTimezone(t),setTimezone:(e,t,n)=>n==null?null:e.setTimezone(n,t)},ML={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,o)=>!e.isValid(t)&&!!n?n:o(t),getV7HiddenInputValueFromSections:_L,getV6InputValueFromSections:xL,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},IL=["localeText"],Ll=T.createContext(null);process.env.NODE_ENV!=="production"&&(Ll.displayName="MuiPickersAdapterContext");const Dc=function(t){const{localeText:n}=t,o=Ye(t,IL),{utils:r,localeText:i}=T.useContext(Ll)??{utils:void 0,localeText:void 0},a=Nt({props:o,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:d,dateFormats:u,dateLibInstance:f,adapterLocale:p,localeText:y}=a,w=T.useMemo(()=>Q({},y,i,n),[y,i,n]),b=T.useMemo(()=>{if(!d)return r||null;const D=new d({locale:p,formats:u,instance:f});if(!D.isMUIAdapter)throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
360
360
|
`));return D},[d,p,u,f,r]),m=T.useMemo(()=>b?{minDate:b.date("1900-01-01T00:00:00.000"),maxDate:b.date("2099-12-31T00:00:00.000")}:null,[b]),v=T.useMemo(()=>({utils:b,defaultDates:m,localeText:w}),[m,b,w]);return E.jsx(Ll.Provider,{value:v,children:l})};process.env.NODE_ENV!=="production"&&(Dc.propTypes={adapterLocale:s.any,children:s.node,dateAdapter:s.func,dateFormats:s.shape({dayOfMonth:s.string,dayOfMonthFull:s.string,fullDate:s.string,fullTime:s.string,fullTime12h:s.string,fullTime24h:s.string,hours12h:s.string,hours24h:s.string,keyboardDate:s.string,keyboardDateTime:s.string,keyboardDateTime12h:s.string,keyboardDateTime24h:s.string,meridiem:s.string,minutes:s.string,month:s.string,monthShort:s.string,normalDate:s.string,normalDateWithWeekday:s.string,seconds:s.string,shortDate:s.string,weekday:s.string,weekdayShort:s.string,year:s.string}),dateLibInstance:s.any,localeText:s.object});const NL=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Q({},e)}}}}),sb=e=>{const{utils:t,formatKey:n,contextTranslation:o,propsTranslation:r}=e;return i=>{const a=i!==null&&t.isValid(i)?t.format(i,n):null;return(r??o)(i,t,a)}},ib={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,o)=>`Select ${e}. ${!o&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${o??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},AL=ib;NL(ib);const Qr=()=>{const e=T.useContext(Ll);if(e===null)throw new Error(["MUI X: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
361
361
|
`));if(e.utils===null)throw new Error(["MUI X: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
362
|
-
`));const t=T.useMemo(()=>Q({},AL,e.localeText),[e.localeText]);return T.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Ft=()=>Qr().utils,_a=()=>Qr().defaultDates,Oc=e=>{const t=Ft(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function FL(e){return Me("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const LL=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],$L=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},FL,t)},VL=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),jL=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),BL=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=Ye(o,LL),f=o,p=$L(f);return l?null:E.jsxs(VL,Q({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[E.jsx(bn,{color:"text.secondary",variant:"overline",id:d,children:a}),E.jsx(jL,{className:p.content,ownerState:f,children:r})]}))}),lr=()=>Qr().localeText;function WL(e){return Me("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const HL=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],zL=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},WL,t)},YL=ie(BL,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UL=ie(bn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ab=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=Ye(o,HL),p=Ft(),y=lr(),w=zL(o),b=T.useMemo(()=>{if(!r)return l;const v=Fh(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),m=o;return E.jsx(YL,Q({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:E.jsx(UL,{variant:"h4",align:i?"left":"center",ownerState:m,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(ab.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function lb(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Q({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Q({},r,{localeText:i},lL({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate),slots:Q({toolbar:ab},r.slots)})}const xa=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=Jn(o.utils,e.minDate,o.defaultDates.minDate),p=Jn(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};xa.valueManager=
|
|
362
|
+
`));const t=T.useMemo(()=>Q({},AL,e.localeText),[e.localeText]);return T.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Ft=()=>Qr().utils,_a=()=>Qr().defaultDates,Oc=e=>{const t=Ft(),n=T.useRef();return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function FL(e){return Me("MuiPickersToolbar",e)}Pe("MuiPickersToolbar",["root","content"]);const LL=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],$L=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},FL,t)},VL=ie("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),jL=ie("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),BL=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersToolbar"}),{children:r,className:i,toolbarTitle:a,hidden:l,titleId:d}=o,u=Ye(o,LL),f=o,p=$L(f);return l?null:E.jsxs(VL,Q({ref:n,className:Se(p.root,i),ownerState:f},u,{children:[E.jsx(bn,{color:"text.secondary",variant:"overline",id:d,children:a}),E.jsx(jL,{className:p.content,ownerState:f,children:r})]}))}),lr=()=>Qr().localeText;function WL(e){return Me("MuiDatePickerToolbar",e)}Pe("MuiDatePickerToolbar",["root","title"]);const HL=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],zL=e=>{const{classes:t}=e;return Ie({root:["root"],title:["title"]},WL,t)},YL=ie(BL,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),UL=ie(bn,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),ab=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePickerToolbar"}),{value:r,isLandscape:i,toolbarFormat:a,toolbarPlaceholder:l="––",views:d,className:u}=o,f=Ye(o,HL),p=Ft(),y=lr(),w=zL(o),b=T.useMemo(()=>{if(!r)return l;const v=Fh(p,{format:a,views:d},!0);return p.formatByString(r,v)},[r,a,l,p,d]),m=o;return E.jsx(YL,Q({ref:n,toolbarTitle:y.datePickerToolbarTitle,isLandscape:i,className:Se(w.root,u)},f,{children:E.jsx(UL,{variant:"h4",align:i?"left":"center",ownerState:m,className:w.title,children:b})}))});process.env.NODE_ENV!=="production"&&(ab.propTypes={classes:s.object,className:s.string,disabled:s.bool,hidden:s.bool,isLandscape:s.bool.isRequired,onChange:s.func.isRequired,onViewChange:s.func.isRequired,readOnly:s.bool,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),titleId:s.string,toolbarFormat:s.string,toolbarPlaceholder:s.node,value:s.object,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});function lb(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t}),i=T.useMemo(()=>r.localeText?.toolbarTitle==null?r.localeText:Q({},r.localeText,{datePickerToolbarTitle:r.localeText.toolbarTitle}),[r.localeText]);return Q({},r,{localeText:i},lL({views:r.views,openTo:r.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:r.disableFuture??!1,disablePast:r.disablePast??!1,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate),slots:Q({toolbar:ab},r.slots)})}const xa=({props:e,value:t,timezone:n,adapter:o})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:l,disableFuture:d}=e,u=o.utils.date(void 0,n),f=Jn(o.utils,e.minDate,o.defaultDates.minDate),p=Jn(o.utils,e.maxDate,o.defaultDates.maxDate);switch(!0){case!o.utils.isValid(t):return"invalidDate";case!!(r&&r(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(d&&o.utils.isAfterDay(t,u)):return"disableFuture";case!!(l&&o.utils.isBeforeDay(t,u)):return"disablePast";case!!(f&&o.utils.isBeforeDay(t,f)):return"minDate";case!!(p&&o.utils.isAfterDay(t,p)):return"maxDate";default:return null}};xa.valueManager=No;const cb=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],qL=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],GL=["minDateTime","maxDateTime"],KL=[...cb,...qL,...GL],db=e=>KL.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function ub(e){const{props:t,validator:n,value:o,timezone:r,onError:i}=e,a=Qr(),l=T.useRef(n.valueManager.defaultErrorState),d=n({adapter:a,value:o,timezone:r,props:t}),u=n.valueManager.hasError(d);T.useEffect(()=>{i&&!n.valueManager.isSameError(d,l.current)&&i(d,o),l.current=d},[n,i,d,o]);const f=Te(p=>n({adapter:a,value:p,timezone:r,props:t}));return{validationError:d,hasValidationError:u,getValidationErrorForNewValue:f}}function XL(e){return Me("MuiPickersPopper",e)}Pe("MuiPickersPopper",["root","paper"]);function ZL(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const QL=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},Ln=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?Ln(t.shadowRoot):t:null},JL="@media (pointer: fine)",e$="@media (prefers-reduced-motion: reduce)",Ps=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Ym=Ps&&Ps[1]?parseInt(Ps[1],10):null,Um=Ps&&Ps[2]?parseInt(Ps[2],10):null,t$=Ym&&Ym<10||Um&&Um<13||!1,hb=()=>Fg(e$,{defaultMatches:!1})||t$,n$=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],o$=e=>{const{classes:t}=e;return Ie({root:["root"],paper:["paper"]},XL,t)},r$=ie(ic,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),s$=ie(Ys,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function i$(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function a$(e,t){const n=T.useRef(!1),o=T.useRef(!1),r=T.useRef(null),i=T.useRef(!1);T.useEffect(()=>{if(!e)return;function d(){i.current=!0}return document.addEventListener("mousedown",d,!0),document.addEventListener("touchstart",d,!0),()=>{document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),i.current=!1}},[e]);const a=Te(d=>{if(!i.current)return;const u=o.current;o.current=!1;const f=Sn(r.current);if(!r.current||"clientX"in d&&i$(d,f))return;if(n.current){n.current=!1;return}let p;d.composedPath?p=d.composedPath().indexOf(r.current)>-1:p=!f.documentElement.contains(d.target)||r.current.contains(d.target),!p&&!u&&t(d)}),l=()=>{o.current=!0};return T.useEffect(()=>{if(e){const d=Sn(r.current),u=()=>{n.current=!0};return d.addEventListener("touchstart",a),d.addEventListener("touchmove",u),()=>{d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",u)}}},[e,a]),T.useEffect(()=>{if(e){const d=Sn(r.current);return d.addEventListener("click",a),()=>{d.removeEventListener("click",a),o.current=!1}}},[e,a]),[r,l,l]}const l$=T.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:o,ownerState:r,children:i,paperSlotProps:a,paperClasses:l,onPaperClick:d,onPaperTouchStart:u}=e,f=Ye(e,n$),p=Q({},r,{placement:o}),y=pt({elementType:n,externalSlotProps:a,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:l,ownerState:p});return E.jsx(n,Q({},f,y,{onClick:w=>{d(w),y.onClick?.(w)},onTouchStart:w=>{u(w),y.onTouchStart?.(w)},ownerState:p,children:i}))});function c$(e){const t=Nt({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:o,containerRef:r=null,shouldRestoreFocus:i,onBlur:a,onDismiss:l,open:d,role:u,placement:f,slots:p,slotProps:y,reduceAnimations:w}=t;T.useEffect(()=>{function Y(H){d&&H.key==="Escape"&&l()}return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[l,d]);const b=T.useRef(null);T.useEffect(()=>{u==="tooltip"||i&&!i()||(d?b.current=Ln(document):b.current&&b.current instanceof HTMLElement&&setTimeout(()=>{b.current instanceof HTMLElement&&b.current.focus()}))},[d,u,i]);const[m,v,D]=a$(d,a??l),k=T.useRef(null),x=ct(k,r),S=ct(x,m),C=t,O=o$(C),I=hb(),F=w??I,z=Y=>{Y.key==="Escape"&&(Y.stopPropagation(),l())},R=p?.desktopTransition??F?Gr:zr,$=p?.desktopTrapFocus??Ki,K=p?.desktopPaper??s$,G=p?.popper??r$,q=pt({elementType:G,externalSlotProps:y?.popper,additionalProps:{transition:!0,role:u,open:d,anchorEl:n,placement:f,onKeyDown:z},className:O.root,ownerState:t});return E.jsx(G,Q({},q,{children:({TransitionProps:Y,placement:H})=>E.jsx($,Q({open:d,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},y?.desktopTrapFocus,{children:E.jsx(R,Q({},Y,y?.desktopTransition,{children:E.jsx(l$,{PaperComponent:K,ownerState:C,popperPlacement:H,ref:S,onPaperClick:v,onPaperTouchStart:D,paperClasses:O.paper,paperSlotProps:y?.desktopPaper,children:o})}))}))}))}const qm=new Set;function d$(e,t="warning"){if(process.env.NODE_ENV==="production")return;const n=Array.isArray(e)?e.join(`
|
|
363
363
|
`):e;qm.has(n)||(qm.add(n),t==="error"?console.error(n):console.warn(n))}const u$=({open:e,onOpen:t,onClose:n})=>{const o=T.useRef(typeof e=="boolean").current,[r,i]=T.useState(!1);T.useEffect(()=>{if(o){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[o,e]);const a=T.useCallback(l=>{o||i(l),l&&t&&t(),!l&&n&&n()},[o,t,n]);return{isOpen:r,setIsOpen:a}},jh=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{const i=Ft(),a=T.useRef(n),l=t??a.current??r.emptyValue,d=T.useMemo(()=>r.getTimezone(i,l),[i,r,l]),u=Te(w=>d==null?w:r.setTimezone(i,d,w)),f=e??d??"default",p=T.useMemo(()=>r.setTimezone(i,f,l),[r,i,f,l]),y=Te((w,...b)=>{const m=u(w);o?.(m,...b)});return{value:p,handleValueChange:y,timezone:f}},Bh=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:i})=>{const[a,l]=ho({name:e,state:"value",controlled:n,default:o??i.emptyValue}),d=Te((u,...f)=>{l(u),r?.(u,...f)});return jh({timezone:t,value:a,defaultValue:void 0,onChange:d,valueManager:i})},h$=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r}=e,i=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?i?!0:n(o.lastPublishedValue):!1},f$=e=>{const{action:t,hasChanged:n,dateState:o,isControlled:r,closeOnSelect:i}=e,a=!r&&!o.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(o.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(o.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(o.lastCommittedValue):!1},p$=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:t.name==="setValueFromShortcut"?t.changeImportance==="accept":!1},m$=({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:r})=>{const{onAccept:i,onChange:a,value:l,defaultValue:d,closeOnSelect:u=o==="desktop",timezone:f}=e,{current:p}=T.useRef(d),{current:y}=T.useRef(l!==void 0);process.env.NODE_ENV!=="production"&&(T.useEffect(()=>{y!==(l!==void 0)&&console.error([`MUI X: A component is changing the ${y?"":"un"}controlled value of a picker to be ${y?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
364
364
|
`))},[l]),T.useEffect(()=>{!y&&p!==d&&console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join(`
|
|
365
365
|
`))},[JSON.stringify(p)]));const w=Ft(),b=Qr(),{isOpen:m,setIsOpen:v}=u$(e),{timezone:D,value:k,handleValueChange:x}=jh({timezone:f,value:l,defaultValue:p,onChange:a,valueManager:t}),[S,C]=T.useState(()=>{let j;return k!==void 0?j=k:p!==void 0?j=p:j=t.emptyValue,{draft:j,lastPublishedValue:j,lastCommittedValue:j,lastControlledValue:k,hasBeenModifiedSinceMount:!1}}),{getValidationErrorForNewValue:O}=ub({props:e,validator:r,timezone:D,value:S.draft,onError:e.onError}),I=Te(j=>{const ee={action:j,dateState:S,hasChanged:W=>!t.areValuesEqual(w,j.value,W),isControlled:y,closeOnSelect:u},J=h$(ee),te=f$(ee),ce=p$(ee);C(W=>Q({},W,{draft:j.value,lastPublishedValue:J?j.value:W.lastPublishedValue,lastCommittedValue:te?j.value:W.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let le=null;const he=()=>(le||(le={validationError:j.name==="setValueFromField"?j.context.validationError:O(j.value)},j.name==="setValueFromShortcut"&&(le.shortcut=j.shortcut)),le);J&&x(j.value,he()),te&&i&&i(j.value,he()),ce&&v(!1)});if(k!==void 0&&(S.lastControlledValue===void 0||!t.areValuesEqual(w,S.lastControlledValue,k))){const j=t.areValuesEqual(w,S.draft,k);C(ee=>Q({},ee,{lastControlledValue:k},j?{}:{lastCommittedValue:k,lastPublishedValue:k,draft:k,hasBeenModifiedSinceMount:!0}))}const F=Te(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),z=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),R=Te(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),$=Te(()=>{I({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),K=Te(()=>{I({value:t.getTodayValue(w,D,n),name:"setValueFromAction",pickerAction:"today"})}),G=Te(j=>{j.preventDefault(),v(!0)}),q=Te(j=>{j?.preventDefault(),v(!1)}),Y=Te((j,ee="partial")=>I({name:"setValueFromView",value:j,selectionState:ee})),H=Te((j,ee,J)=>I({name:"setValueFromShortcut",value:j,changeImportance:ee,shortcut:J})),ae=Te((j,ee)=>I({name:"setValueFromField",value:j,context:ee})),A={onClear:F,onAccept:z,onDismiss:R,onCancel:$,onSetToday:K,onOpen:G,onClose:q},M={value:S.draft,onChange:ae},L=T.useMemo(()=>t.cleanValue(w,S.draft),[w,t,S.draft]),B={value:L,onChange:Y,onClose:q,open:m},oe=Q({},A,{value:L,onChange:Y,onSelectShortcut:H,isValid:j=>{const ee=r({adapter:b,value:j,timezone:D,props:e});return!t.hasError(ee)}}),se=T.useMemo(()=>({onOpen:G,onClose:q,open:m}),[m,q,G]);return{open:m,fieldProps:M,viewProps:B,layoutProps:oe,actions:A,contextValue:se}};let Vd=!1;function fb({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:i,focusedView:a,onFocusedViewChange:l}){process.env.NODE_ENV!=="production"&&(Vd||(o!=null&&!r.includes(o)&&(console.warn(`MUI X: \`view="${o}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0),o==null&&n!=null&&!r.includes(n)&&(console.warn(`MUI X: \`openTo="${n}"\` is not a valid prop.`,`It must be an element of \`views=["${r.join('", "')}"]\`.`),Vd=!0)));const d=T.useRef(n),u=T.useRef(r),f=T.useRef(r.includes(n)?n:r[0]),[p,y]=ho({name:"useViews",state:"view",controlled:o,default:f.current}),w=T.useRef(i?p:null),[b,m]=ho({name:"useViews",state:"focusedView",controlled:a,default:w.current});T.useEffect(()=>{(d.current&&d.current!==n||u.current&&u.current.some(I=>!r.includes(I)))&&(y(r.includes(n)?n:r[0]),u.current=r,d.current=n)},[n,y,p,r]);const v=r.indexOf(p),D=r[v-1]??null,k=r[v+1]??null,x=Te((I,F)=>{m(F?I:z=>I===z?null:z),l?.(I,F)}),S=Te(I=>{x(I,!0),I!==p&&(y(I),t&&t(I))}),C=Te(()=>{k&&S(k)}),O=Te((I,F,z)=>{const R=F==="finish",$=z?r.indexOf(z)<r.length-1:!!k;if(e(I,R&&$?"partial":F,z),z&&z!==p){const G=r[r.indexOf(z)+1];G&&S(G)}else R&&C()});return{view:p,setView:S,focusedView:b,setFocusedView:x,nextView:k,previousView:D,defaultView:r.includes(n)?n:r[0],goToNextView:C,setValueAndGoToNextView:O}}const g$=["className","sx"],y$=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:o,rendererInterceptor:r,fieldRef:i})=>{const{onChange:a,open:l,onClose:d}=t,{view:u,views:f,openTo:p,onViewChange:y,viewRenderers:w,timezone:b}=e,m=Ye(e,g$),{view:v,setView:D,defaultView:k,focusedView:x,setFocusedView:S,setValueAndGoToNextView:C}=fb({view:u,views:f,openTo:p,onChange:a,onViewChange:y,autoFocus:o}),{hasUIView:O,viewModeLookup:I}=T.useMemo(()=>f.reduce((q,Y)=>{let H;return w[Y]!=null?H="UI":H="field",q.viewModeLookup[Y]=H,H==="UI"&&(q.hasUIView=!0),q},{hasUIView:!1,viewModeLookup:{}}),[w,f]),F=T.useMemo(()=>f.reduce((q,Y)=>w[Y]!=null&&pL(Y)?q+1:q,0),[w,f]),z=I[v],R=Te(()=>z==="UI"),[$,K]=T.useState(z==="UI"?v:null);return $!==v&&I[v]==="UI"&&K(v),ln(()=>{z==="field"&&l&&(d(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),ln(()=>{if(!l)return;let q=v;z==="field"&&$!=null&&(q=$),q!==k&&I[q]==="UI"&&I[k]==="UI"&&(q=k),q!==v&&D(q),S(q,!0)},[l]),{hasUIView:O,shouldRestoreFocus:R,layoutProps:{views:f,view:$,onViewChange:D},renderCurrentView:()=>{if($==null)return null;const q=w[$];if(q==null)return null;const Y=Q({},m,n,t,{views:f,timezone:b,onChange:C,view:$,onViewChange:D,focusedView:x,onFocusedViewChange:S,showViewSwitcher:F>1,timeViewsCount:F});return r?r(w,$,Y):q(Y)}}};function Gm(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const v$=(e,t)=>{const[n,o]=T.useState(Gm);return ln(()=>{const i=()=>{o(Gm())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),ZL(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},b$=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:o})=>{const{orientation:r}=e,i=v$(n.views,r),a=to();return{layoutProps:Q({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:o,disabled:e.disabled,readOnly:e.readOnly})}};function w$(e){const{props:t,pickerValueResponse:n}=e;return T.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const pb=({props:e,valueManager:t,valueType:n,wrapperVariant:o,additionalViewProps:r,validator:i,autoFocusView:a,rendererInterceptor:l,fieldRef:d})=>{process.env.NODE_ENV!=="production"&&e.renderInput!=null&&d$(["MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const u=m$({props:e,valueManager:t,valueType:n,wrapperVariant:o,validator:i}),f=y$({props:e,additionalViewProps:r,autoFocusView:a,fieldRef:d,propsFromPickerValue:u.viewProps,rendererInterceptor:l}),p=b$({props:e,wrapperVariant:o,propsFromPickerValue:u.layoutProps,propsFromPickerViews:f.layoutProps}),y=w$({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:f.renderCurrentView,hasUIView:f.hasUIView,shouldRestoreFocus:f.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:y}};function mb(e){return Me("MuiPickersLayout",e)}const Dr=Pe("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),C$=["onAccept","onClear","onCancel","onSetToday","actions"];function gb(e){const{onAccept:t,onClear:n,onCancel:o,onSetToday:r,actions:i}=e,a=Ye(e,C$),l=lr();if(i==null||i.length===0)return null;const d=i?.map(u=>{switch(u){case"clear":return E.jsx(ko,{onClick:n,children:l.clearButtonLabel},u);case"cancel":return E.jsx(ko,{onClick:o,children:l.cancelButtonLabel},u);case"accept":return E.jsx(ko,{onClick:t,children:l.okButtonLabel},u);case"today":return E.jsx(ko,{onClick:r,children:l.todayButtonLabel},u);default:return null}});return E.jsx(Gu,Q({},a,{children:d}))}process.env.NODE_ENV!=="production"&&(gb.propTypes={actions:s.arrayOf(s.oneOf(["accept","cancel","clear","today"]).isRequired),disableSpacing:s.bool,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onClear:s.func.isRequired,onSetToday:s.func.isRequired,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});const oa=36,Mc=2,Ic=320,S$=280,Wh=336,_$=["items","changeImportance","isLandscape","onChange","isValid"],x$=["getValue"];function yb(e){const{items:t,changeImportance:n="accept",onChange:o,isValid:r}=e,i=Ye(e,_$);if(t==null||t.length===0)return null;const a=t.map(l=>{let{getValue:d}=l,u=Ye(l,x$);const f=d({isValid:r});return Q({},u,{label:u.label,onClick:()=>{o(f,n,u)},disabled:!r(f)})});return E.jsx(fc,Q({dense:!0,sx:[{maxHeight:Wh,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(l=>E.jsx(ky,{children:E.jsx(yy,Q({},l))},l.id??l.label))}))}process.env.NODE_ENV!=="production"&&(yb.propTypes={changeImportance:s.oneOf(["accept","set"]),className:s.string,component:s.elementType,dense:s.bool,disablePadding:s.bool,isLandscape:s.bool.isRequired,isValid:s.func.isRequired,items:s.arrayOf(s.shape({getValue:s.func.isRequired,id:s.string,label:s.string.isRequired})),onChange:s.func.isRequired,style:s.object,subheader:s.node,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object])});function R$(e){return e.view!==null}const T$=e=>{const{classes:t,isLandscape:n}=e;return Ie({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},mb,t)},k$=e=>{const{wrapperVariant:t,onAccept:n,onClear:o,onCancel:r,onSetToday:i,view:a,views:l,onViewChange:d,value:u,onChange:f,onSelectShortcut:p,isValid:y,isLandscape:w,disabled:b,readOnly:m,children:v,slots:D,slotProps:k}=e,x=T$(e),S=D?.actionBar??gb,C=pt({elementType:S,externalSlotProps:k?.actionBar,additionalProps:{onAccept:n,onClear:o,onCancel:r,onSetToday:i,actions:t==="desktop"?[]:["cancel","accept"]},className:x.actionBar,ownerState:Q({},e,{wrapperVariant:t})}),O=E.jsx(S,Q({},C)),I=D?.toolbar,F=pt({elementType:I,externalSlotProps:k?.toolbar,additionalProps:{isLandscape:w,onChange:f,value:u,view:a,onViewChange:d,views:l,disabled:b,readOnly:m},className:x.toolbar,ownerState:Q({},e,{wrapperVariant:t})}),z=R$(F)&&I?E.jsx(I,Q({},F)):null,R=v,$=D?.tabs,K=a&&$?E.jsx($,Q({view:a,onViewChange:d,className:x.tabs},k?.tabs)):null,G=D?.shortcuts??yb,q=pt({elementType:G,externalSlotProps:k?.shortcuts,additionalProps:{isValid:y,isLandscape:w,onChange:p},className:x.shortcuts,ownerState:{isValid:y,isLandscape:w,onChange:p,wrapperVariant:t}}),Y=a&&G?E.jsx(G,Q({},q)):null;return{toolbar:z,content:R,tabs:K,actionBar:O,shortcuts:Y}},E$=e=>{const{isLandscape:t,classes:n}=e;return Ie({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},mb,n)},P$=ie("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${Dr.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${Dr.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${Dr.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${Dr.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${Dr.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${Dr.shortcuts}`]:{gridColumn:3}}}]}),D$=ie("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Hh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:l,shortcuts:d}=k$(o),{sx:u,className:f,isLandscape:p,wrapperVariant:y}=o,w=E$(o);return E.jsxs(P$,{ref:n,sx:u,className:Se(w.root,f),ownerState:o,children:[p?d:r,p?r:d,E.jsx(D$,{className:w.contentWrapper,children:y==="desktop"?E.jsxs(T.Fragment,{children:[i,a]}):E.jsxs(T.Fragment,{children:[a,i]})}),l]})});process.env.NODE_ENV!=="production"&&(Hh.propTypes={children:s.node,classes:s.object,className:s.string,disabled:s.bool,isLandscape:s.bool.isRequired,isRtl:s.bool.isRequired,isValid:s.func.isRequired,onAccept:s.func.isRequired,onCancel:s.func.isRequired,onChange:s.func.isRequired,onClear:s.func.isRequired,onClose:s.func.isRequired,onDismiss:s.func.isRequired,onOpen:s.func.isRequired,onSelectShortcut:s.func.isRequired,onSetToday:s.func.isRequired,onViewChange:s.func.isRequired,orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.any,view:s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),views:s.arrayOf(s.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]).isRequired).isRequired,wrapperVariant:s.oneOf(["desktop","mobile"])});const O$=T.createContext(null);function vb(e){const{contextValue:t,localeText:n,children:o}=e;return E.jsx(O$.Provider,{value:t,children:E.jsx(Dc,{localeText:n,children:o})})}const M$=["props","getOpenDialogAriaText"],I$=["ownerState"],N$=["ownerState"],A$=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,M$);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,autoFocus:x,localeText:S,reduceAnimations:C}=t,O=T.useRef(null),I=T.useRef(null),F=sr(),z=i?.toolbar?.hidden??!1,{open:R,actions:$,hasUIView:K,layoutProps:G,renderCurrentView:q,shouldRestoreFocus:Y,fieldProps:H,contextValue:ae,ownerState:A}=pb(Q({},o,{props:t,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),M=r.inputAdornment??Zu,L=pt({elementType:M,externalSlotProps:i?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),B=Ye(L,I$),ne=r.openPickerButton??Us,oe=pt({elementType:ne,externalSlotProps:i?.openPickerButton,additionalProps:{disabled:k||D,onClick:R?$.onClose:$.onOpen,"aria-label":n(H.value),edge:B.position},ownerState:t}),se=Ye(oe,N$),j=r.openPickerIcon,ee=pt({elementType:j,externalSlotProps:i?.openPickerIcon,ownerState:A}),J=r.field,te=pt({elementType:J,externalSlotProps:i?.field,additionalProps:Q({},H,z&&{id:F},{readOnly:D,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b,autoFocus:x&&!t.open,focused:R?!0:void 0},v?{inputRef:v}:{}),ownerState:t});K&&(te.InputProps=Q({},te.InputProps,{ref:O},!t.disableOpenPicker&&{[`${B.position}Adornment`]:E.jsx(M,Q({},B,{children:E.jsx(ne,Q({},se,{children:E.jsx(j,Q({},ee))}))}))}));const ce=Q({textField:r.textField,clearIcon:r.clearIcon,clearButton:r.clearButton},te.slots),le=r.layout??Hh;let he=F;z&&(m?he=`${F}-label`:he=void 0);const W=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:F}),popper:Q({"aria-labelledby":he},i?.popper)}),re=ct(I,te.unstableFieldRef);return{renderPicker:()=>E.jsxs(vb,{contextValue:ae,localeText:S,children:[E.jsx(J,Q({},te,{slots:ce,slotProps:W,unstableFieldRef:re})),E.jsx(c$,Q({role:"dialog",placement:"bottom-start",anchorEl:O.current},$,{open:R,slots:r,slotProps:W,shouldRestoreFocus:Y,reduceAnimations:C,children:E.jsx(le,Q({},G,W?.layout,{slots:r,slotProps:W,children:q()}))}))]})}},F$=fn(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),L$=fn(E.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),$$=fn(E.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),V$=fn(E.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");fn(E.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");fn(E.jsxs(T.Fragment,{children:[E.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),E.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const j$=fn(E.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),B$=({utils:e,format:t})=>{let n=10,o=t,r=e.expandFormat(t);for(;r!==o;)if(o=r,r=e.expandFormat(o),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return r},W$=({utils:e,expandedFormat:t})=>{const n=[],{start:o,end:r}=e.escapedCharacters,i=new RegExp(`(\\${o}[^\\${r}]*\\${r})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},H$=(e,t,n,o)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),o).length,format:o});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:o});case"day":return t.fieldDayPlaceholder({format:o});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:o});case"hours":return t.fieldHoursPlaceholder({format:o});case"minutes":return t.fieldMinutesPlaceholder({format:o});case"seconds":return t.fieldSecondsPlaceholder({format:o});case"meridiem":return t.fieldMeridiemPlaceholder({format:o});default:return o}},z$=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:o,localizedDigits:r,now:i,token:a,startSeparator:l})=>{if(a==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const d=Lh(e,a),u=rb(e,d.contentType,d.type,a),f=n?u:d.contentType==="digit",p=t!=null&&e.isValid(t);let y=p?e.formatByString(t,a):"",w=null;if(f)if(u)w=y===""?e.formatByString(i,a).length:y.length;else{if(d.maxLength==null)throw new Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);w=d.maxLength,p&&(y=$h(tb(Ur(y,r),w),r))}return Q({},d,{format:a,maxLength:w,value:y,placeholder:H$(e,o,d,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:f,startSeparator:l,endSeparator:"",modified:!1})},Y$=e=>{const{utils:t,expandedFormat:n,escapedParts:o}=e,r=t.date(void 0),i=[];let a="";const l=Object.keys(t.formatTokenMap).sort((w,b)=>b.length-w.length),d=/^([a-zA-Z]+)/,u=new RegExp(`^(${l.join("|")})*$`),f=new RegExp(`^(${l.join("|")})`),p=w=>o.find(b=>b.start<=w&&b.end>=w);let y=0;for(;y<n.length;){const w=p(y),b=w!=null,m=d.exec(n.slice(y))?.[1];if(!b&&m!=null&&u.test(m)){let v=m;for(;v.length>0;){const D=f.exec(v)[1];v=v.slice(D.length),i.push(z$(Q({},e,{now:r,token:D,startSeparator:a}))),a=""}y+=m.length}else{const v=n[y];b&&w?.start===y||w?.end===y||(i.length===0?a+=v:i[i.length-1].endSeparator+=v),y+=1}}return i.length===0&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i},U$=({isRtl:e,formatDensity:t,sections:n})=>n.map(o=>{const r=i=>{let a=i;return e&&a!==null&&a.includes(" ")&&(a=`${a}`),t==="spacious"&&["/",".","-"].includes(a)&&(a=` ${a} `),a};return o.startSeparator=r(o.startSeparator),o.endSeparator=r(o.endSeparator),o}),Km=e=>{let t=B$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=W$(Q({},e,{expandedFormat:t})),o=Y$(Q({},e,{expandedFormat:t,escapedParts:n}));return U$(Q({},e,{sections:o}))},q$=e=>{const t=Ft(),n=lr(),o=Qr(),r=to(),{valueManager:i,fieldValueManager:a,valueType:l,validator:d,internalProps:u,internalProps:{value:f,defaultValue:p,referenceDate:y,onChange:w,format:b,formatDensity:m="dense",selectedSections:v,onSelectedSectionsChange:D,shouldRespectLeadingZeros:k=!1,timezone:x,enableAccessibleFieldDOMStructure:S=!1}}=e,{timezone:C,value:O,handleValueChange:I}=jh({timezone:x,value:f,defaultValue:p,onChange:w,valueManager:i}),F=T.useMemo(()=>wL(t),[t]),z=T.useMemo(()=>RL(t,F,C),[t,F,C]),R=T.useCallback((j,ee=null)=>a.getSectionsFromValue(t,j,ee,J=>Km({utils:t,localeText:n,localizedDigits:F,format:b,date:J,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r})),[a,b,n,F,r,k,t,m,S]),[$,K]=T.useState(()=>{const j=R(O);Wm(j,l);const ee={sections:j,value:O,referenceValue:i.emptyValue,tempValueStrAndroid:null},J=gL(j),te=i.getInitialReferenceValue({referenceDate:y,value:O,utils:t,props:u,granularity:J,timezone:C});return Q({},ee,{referenceValue:te})}),[G,q]=ho({controlled:v,default:null,name:"useField",state:"selectedSections"}),Y=j=>{q(j),D?.(j)},H=T.useMemo(()=>yu(G,$.sections),[G,$.sections]),ae=H==="all"?0:H,A=({value:j,referenceValue:ee,sections:J})=>{if(K(ce=>Q({},ce,{sections:J,value:j,referenceValue:ee,tempValueStrAndroid:null})),i.areValuesEqual(t,$.value,j))return;const te={validationError:d({adapter:o,value:j,timezone:C,props:u})};I(j,te)},M=(j,ee)=>{const J=[...$.sections];return J[j]=Q({},J[j],{value:ee,modified:!0}),J},L=()=>{A({value:i.emptyValue,referenceValue:$.referenceValue,sections:R(i.emptyValue)})},B=()=>{if(ae==null)return;const j=$.sections[ae],ee=a.getActiveDateManager(t,$,j),te=ee.getSections($.sections).filter(W=>W.value!=="").length===(j.value===""?0:1),ce=M(ae,""),le=te?null:t.getInvalidDate(),he=ee.getNewValuesFromNewActiveDate(le);A(Q({},he,{sections:ce}))},ne=j=>{const ee=(ce,le)=>{const he=t.parse(ce,b);if(he==null||!t.isValid(he))return null;const W=Km({utils:t,localeText:n,localizedDigits:F,format:b,date:he,formatDensity:m,shouldRespectLeadingZeros:k,enableAccessibleFieldDOMStructure:S,isRtl:r});return zm(t,he,W,le,!1)},J=a.parseValueStr(j,$.referenceValue,ee),te=a.updateReferenceValue(t,J,$.referenceValue);A({value:J,referenceValue:te,sections:R(J,$.sections)})},oe=({activeSection:j,newSectionValue:ee,shouldGoToNextSection:J})=>{J&&ae<$.sections.length-1&&Y(ae+1);const te=a.getActiveDateManager(t,$,j),ce=M(ae,ee),le=te.getSections(ce),he=SL(t,le,F);let W,re;if(he!=null&&t.isValid(he)){const Z=zm(t,he,le,te.referenceDate,!0);W=te.getNewValuesFromNewActiveDate(Z),re=!0}else W=te.getNewValuesFromNewActiveDate(he),re=(he!=null&&!t.isValid(he))!=(te.date!=null&&!t.isValid(te.date));return re?A(Q({},W,{sections:ce})):K(Z=>Q({},Z,W,{sections:ce,tempValueStrAndroid:null}))},se=j=>K(ee=>Q({},ee,{tempValueStrAndroid:j}));return T.useEffect(()=>{const j=R($.value);Wm(j,l),K(ee=>Q({},ee,{sections:j}))},[b,t.locale,r]),T.useEffect(()=>{let j;i.areValuesEqual(t,$.value,O)?j=i.getTimezone(t,$.value)!==i.getTimezone(t,O):j=!0,j&&K(ee=>Q({},ee,{value:O,referenceValue:a.updateReferenceValue(t,O,ee.referenceValue),sections:R(O)}))},[O]),{state:$,activeSectionIndex:ae,parsedSelectedSections:H,setSelectedSections:Y,clearValue:L,clearActiveSection:B,updateSectionValue:oe,updateValueFromValueStr:ne,setTempAndroidValueStr:se,getSectionsFromValue:R,sectionsValueBoundaries:z,localizedDigits:F,timezone:C}},G$=5e3,ms=e=>e.saveQuery!=null,K$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:o,setTempAndroidValueStr:r,timezone:i})=>{const a=Ft(),[l,d]=T.useState(null),u=Te(()=>d(null));T.useEffect(()=>{l!=null&&e[l.sectionIndex]?.type!==l.sectionType&&u()},[e,l,u]),T.useEffect(()=>{if(l!=null){const b=setTimeout(()=>u(),G$);return()=>{clearTimeout(b)}}return()=>{}},[l,u]);const f=({keyPressed:b,sectionIndex:m},v,D)=>{const k=b.toLowerCase(),x=e[m];if(l!=null&&(!D||D(l.value))&&l.sectionIndex===m){const C=`${l.value}${k}`,O=v(C,x);if(!ms(O))return d({sectionIndex:m,value:C,sectionType:x.type}),O}const S=v(k,x);return ms(S)&&!S.saveQuery?(u(),null):(d({sectionIndex:m,value:k,sectionType:x.type}),ms(S)?null:S)},p=b=>{const m=(k,x,S)=>{const C=x.filter(O=>O.toLowerCase().startsWith(S));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},v=(k,x,S,C)=>{const O=I=>eb(a,i,x.type,I);if(x.contentType==="letter")return m(x.format,O(x.format),k);if(S&&C!=null&&Lh(a,S).contentType==="letter"){const I=O(S),F=m(S,I,k);return ms(F)?{saveQuery:!1}:Q({},F,{sectionValue:C(F.sectionValue,I)})}return{saveQuery:!1}};return f(b,(k,x)=>{switch(x.type){case"month":{const S=C=>jm(a,C,a.formats.month,x.format);return v(k,x,a.formats.month,S)}case"weekDay":{const S=(C,O)=>O.indexOf(C).toString();return v(k,x,a.formats.weekday,S)}case"meridiem":return v(k,x);default:return{saveQuery:!1}}})},y=b=>{const m=(D,k)=>{const x=Ur(D,o),S=Number(x),C=n[k.type]({currentDate:null,format:k.format,contentType:k.contentType});if(S>C.maximum)return{saveQuery:!1};if(S<C.minimum)return{saveQuery:!0};const O=S*10>C.maximum||x.length===C.maximum.toString().length;return{sectionValue:nb(a,S,C,o,k),shouldGoToNextSection:O}};return f(b,(D,k)=>{if(k.contentType==="digit"||k.contentType==="digit-with-letter")return m(D,k);if(k.type==="month"){rb(a,"digit","month","MM");const x=m(D,{type:k.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ms(x))return x;const S=jm(a,x.sectionValue,"MM",k.format);return Q({},x,{sectionValue:S})}if(k.type==="weekDay"){const x=m(D,k);if(ms(x))return x;const S=Pc(a,k.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:S})}return{saveQuery:!1}},D=>Vm(D,o))};return{applyCharacterEditing:Te(b=>{const m=e[b.sectionIndex],D=Vm(b.keyPressed,o)?y(Q({},b,{keyPressed:$h(b.keyPressed,o)})):p(b);if(D==null){r(null);return}t({activeSection:m,newSectionValue:D.sectionValue,shouldGoToNextSection:D.shouldGoToNextSection})}),resetCharacterQuery:u}},X$=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:o,onBlur:r,onClick:i,onFocus:a,onInput:l,onPaste:d,focused:u,autoFocus:f=!1},fieldValueManager:p,applyCharacterEditing:y,resetCharacterQuery:w,setSelectedSections:b,parsedSelectedSections:m,state:v,clearActiveSection:D,clearValue:k,updateSectionValue:x,updateValueFromValueStr:S,sectionOrder:C,areAllSectionsEmpty:O,sectionsValueBoundaries:I}=e,F=T.useRef(null),z=ct(o,F),R=lr(),$=Ft(),K=sr(),[G,q]=T.useState(!1),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!F.current)return;const re=document.getSelection();if(!re)return;if(m==null){re.rangeCount>0&&F.current.getRoot().contains(re.getRangeAt(0).startContainer)&&re.removeAllRanges(),G&&F.current.getRoot().blur();return}if(!F.current.getRoot().contains(Ln(document)))return;const Z=new window.Range;let fe;m==="all"?fe=F.current.getRoot():v.sections[m].type==="empty"?fe=F.current.getSectionContainer(m):fe=F.current.getSectionContent(m),Z.selectNodeContents(fe),fe.focus(),re.removeAllRanges(),re.addRange(Z)},getActiveSectionIndexFromDOM:()=>{const re=Ln(document);return!re||!F.current||!F.current.getRoot().contains(re)?null:F.current.getSectionIndexFromDOMElement(re)},focusField:(re=0)=>{if(!F.current)return;const Z=yu(re,v.sections);q(!0),F.current.getSectionContent(Z).focus()},setSelectedSections:re=>{if(!F.current)return;const Z=yu(re,v.sections);q((Z==="all"?0:Z)!==null),b(re)},isFieldFocused:()=>{const re=Ln(document);return!!F.current&&F.current.getRoot().contains(re)}}),[m,b,v.sections,G]),H=Te(re=>{if(!F.current)return;const Z=v.sections[re];F.current.getSectionContent(re).innerHTML=Z.value||Z.placeholder,Y.syncSelectionToDOM()}),ae=Te((re,...Z)=>{re.isDefaultPrevented()||!F.current||(q(!0),i?.(re,...Z),m==="all"?setTimeout(()=>{const fe=document.getSelection().getRangeAt(0).startOffset;if(fe===0){b(C.startIndex);return}let pe=0,be=0;for(;be<fe&&pe<v.sections.length;){const ge=v.sections[pe];pe+=1,be+=`${ge.startSeparator}${ge.value||ge.placeholder}${ge.endSeparator}`.length}b(pe-1)}):G?F.current.getRoot().contains(re.target)||b(C.startIndex):(q(!0),b(C.startIndex)))}),A=Te(re=>{if(l?.(re),!F.current||m!=="all")return;const fe=re.target.textContent??"";F.current.getRoot().innerHTML=v.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),Y.syncSelectionToDOM(),fe.length===0||fe.charCodeAt(0)===10?(w(),k(),b("all")):fe.length>1?S(fe):y({keyPressed:fe,sectionIndex:0})}),M=Te(re=>{if(d?.(re),n||m!=="all"){re.preventDefault();return}const Z=re.clipboardData.getData("text");re.preventDefault(),w(),S(Z)}),L=Te((...re)=>{if(a?.(...re),G||!F.current)return;q(!0),F.current.getSectionIndexFromDOMElement(Ln(document))!=null||b(C.startIndex)}),B=Te((...re)=>{r?.(...re),setTimeout(()=>{if(!F.current)return;const Z=Ln(document);!F.current.getRoot().contains(Z)&&(q(!1),b(null))})}),ne=Te(re=>Z=>{Z.isDefaultPrevented()||b(re)}),oe=Te(re=>{re.preventDefault()}),se=Te(re=>()=>{b(re)}),j=Te(re=>{if(re.preventDefault(),n||t||typeof m!="number")return;const Z=v.sections[m],fe=re.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(fe),be=/^[0-9]+$/.test(fe),ge=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(fe);Z.contentType==="letter"&&pe||Z.contentType==="digit"&&be||Z.contentType==="digit-with-letter"&&ge?(w(),x({activeSection:Z,newSectionValue:fe,shouldGoToNextSection:!0})):!pe&&!be&&(w(),S(fe))}),ee=Te(re=>{re.preventDefault(),re.dataTransfer.dropEffect="none"}),J=Te(re=>{if(!F.current)return;const Z=re.target,fe=Z.textContent??"",pe=F.current.getSectionIndexFromDOMElement(Z),be=v.sections[pe];if(n||!F.current){H(pe);return}if(fe.length===0){if(be.value===""){H(pe);return}const ge=re.nativeEvent.inputType;if(ge==="insertParagraph"||ge==="insertLineBreak"){H(pe);return}w(),D();return}y({keyPressed:fe,sectionIndex:pe}),H(pe)});ln(()=>{if(!(!G||!F.current)){if(m==="all")F.current.getRoot().focus();else if(typeof m=="number"){const re=F.current.getSectionContent(m);re&&re.focus()}}},[m,G]);const te=T.useMemo(()=>v.sections.reduce((re,Z)=>(re[Z.type]=I[Z.type]({currentDate:null,contentType:Z.contentType,format:Z.format}),re),{}),[I,v.sections]),ce=m==="all",le=T.useMemo(()=>v.sections.map((re,Z)=>{const fe=!ce&&!t&&!n;return{container:{"data-sectionindex":Z,onClick:ne(Z)},content:{tabIndex:ce||Z>0?-1:0,contentEditable:!ce&&!t&&!n,role:"spinbutton",id:`${K}-${re.type}`,"aria-labelledby":`${K}-${re.type}`,"aria-readonly":n,"aria-valuenow":DL(re,$),"aria-valuemin":te[re.type].minimum,"aria-valuemax":te[re.type].maximum,"aria-valuetext":re.value?PL(re,$):R.empty,"aria-label":R[re.type],"aria-disabled":t,spellCheck:fe?!1:void 0,autoCapitalize:fe?"off":void 0,autoCorrect:fe?"off":void 0,[parseInt(T.version,10)>=17?"enterKeyHint":"enterkeyhint"]:fe?"next":void 0,children:re.value||re.placeholder,onInput:J,onPaste:j,onFocus:se(Z),onDragOver:ee,onMouseUp:oe,inputMode:re.contentType==="letter"?"text":"numeric"},before:{children:re.startSeparator},after:{children:re.endSeparator}}}),[v.sections,se,j,ee,J,ne,oe,t,n,ce,R,$,te,K]),he=Te(re=>{S(re.target.value)}),W=T.useMemo(()=>O?"":p.getV7HiddenInputValueFromSections(v.sections),[O,v.sections,p]);return T.useEffect(()=>{if(F.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
|
|
366
|
-
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:z,onBlur:B,onClick:ae,onFocus:L,onInput:A,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},_s=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Z$=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=Vh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=_s(u).length,p=u.length,y=_s(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},Q$=e=>{const t=to(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:D,resetCharacterQuery:k,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:I,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>Z$(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Ln(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===Ln(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Ln(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===Ln(document)}),[K,y,q,F]),H=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),A=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),H())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){k(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}k(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),B=Te(J=>{if(f)return;const te=J.target.value;if(te===""){k(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,W=_s(he);if(w==null||le){S(le?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Z=_s(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==W[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==W[W.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=W.length-Z.length+be.end-_s(be.endSeparator||"").length;re=W.slice(be.start+_s(be.startSeparator||"").length,Re)}if(re.length===0){kL()&&I(he),k(),C();return}D({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,m,z,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===Ln(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===Ln(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:A,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:B}}},J$=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=to(),v=q$(e),{state:D,activeSectionIndex:k,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:I,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=K$({sections:D.sections,updateSectionValue:I,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,D.value,w.emptyValue),Y=i?X$:Q$,H=T.useMemo(()=>EL(D.sections,m&&!i),[D.sections,m,i]),{returnedValue:ae,interactions:A}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const ee=H.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const ee=H.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||k==null)break;const ee=D.sections[k],J=y.getActiveDateManager(t,D,ee),te=CL(t,$,ee,j.key,z,R,J.date,{minutesStep:r});I({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});ln(()=>{A.syncSelectionToDOM()});const{hasValidationError:L}=ub({props:n,validator:b,timezone:$,value:D.value,onError:n.onError}),B=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!B&&k==null&&G()},[D.referenceValue,k,B]),T.useEffect(()=>{D.tempValueStrAndroid!=null&&k!=null&&(G(),O())},[D.sections]),T.useImperativeHandle(o,()=>({getSections:()=>D.sections,getActiveSectionIndex:A.getActiveSectionIndexFromDOM,setSelectedSections:A.setSelectedSections,focusField:A.focusField,isFieldFocused:A.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),A.isFieldFocused()?S(H.startIndex):A.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},eV=["clearable","onClear","InputProps","sx","slots","slotProps"],tV=["ownerState"],nV=e=>{const t=lr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,eV),u=a?.clearButton??Us,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,tV),y=a?.clearIcon??j$,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Zu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},oV=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],rV=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return oV.forEach(r),cb.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),sV=e=>{const t=Ft(),n=_a();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Jn(t,e.minDate,n.minDate),maxDate:Jn(t,e.maxDate,n.maxDate)})},iV=e=>{const t=sV(e),{forwardedProps:n,internalProps:o}=rV(t,"date");return J$({forwardedProps:n,internalProps:o,valueManager:Io,fieldValueManager:ML,validator:xa,valueType:"date"})};function aV(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function lV(e){return Me("MuiPickersInputBase",e)}const Ds=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function cV(e){return Me("MuiPickersSectionList",e)}const wi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),dV=["slots","slotProps","elements","sectionListRef"],bb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),wb=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Cb=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Sb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),uV=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},cV,t)};function _b(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??wb,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??Sb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Cb,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(_b.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const xb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,dV),u=uV(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${wi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${wi.section}[data-sectionindex="${m}"] .${wi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let D=null;return m.classList.contains(wi.section)?D=m:m.classList.contains(wi.sectionContent)&&(D=m.parentElement),D==null?null:Number(D.dataset.sectionindex)}}));const w=r?.root??bb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:D})=>`${v.children}${m.children}${D.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(_b,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(xb.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const hV=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],fV=e=>Math.round(e*1e5)/1e5,Nc=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${fV(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),zh=ie(bb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),pV=ie(wb,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),mV=ie(Sb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),gV=ie(Cb,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),yV=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},rR)),vV=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,lV,r)},Ac=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:D,onKeyDown:k,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:I}=o,F=Ye(o,hV),z=T.useRef(null),R=ct(n,z),$=ct(C?.ref,O),K=to(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),H=vV(Y),ae=y?.root||Nc,A=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||zh;return E.jsxs(ae,Q({},A,{children:[f,E.jsx(xb,{sectionListRef:I,elements:r,contentEditable:b,tabIndex:m,className:H.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:D,onKeyDown:k,slots:{root:M,section:pV,sectionContent:mV,sectionSeparator:gV},slotProps:{root:{ownerState:Y},sectionContent:{className:Ds.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ds.sectionBefore:Ds.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(yV,Q({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(Ac.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function bV(e){return Me("MuiPickersOutlinedInput",e)}const ao=Q({},Ds,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),wV=["children","className","label","notched","shrink"],CV=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Xm=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),SV=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function _V(e){const{className:t,label:n}=e,o=Ye(e,wV),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(CV,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx(SV,{ownerState:i,children:r?E.jsx(Xm,{children:n}):E.jsx(Xm,{className:"notranslate",children:""})})}))}const xV=["label","autoFocus","ownerState","notched"],RV=ie(Nc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ao.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ao.focused} .${ao.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ao.disabled}`]:{[`& .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ao.error} .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${ao.focused}:not(.${ao.error}) .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),TV=ie(zh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),kV=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bV,t);return Q({},t,o)},Yh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,xV),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=kV(u);return E.jsx(Ac,Q({slots:{root:RV,input:TV},renderSuffix:p=>E.jsx(_V,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Yh.muiName="Input";function EV(e){return Me("MuiPickersFilledInput",e)}const Or=Q({},Ds,Pe("MuiPickersFilledInput",["root","underline","input"])),PV=["label","autoFocus","disableUnderline","ownerState"],DV=ie(Nc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),OV=ie(zh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),MV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},EV,t);return Q({},t,r)},Uh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,PV),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=MV(u);return E.jsx(Ac,Q({slots:{root:DV,input:OV},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Uh.muiName="Input";function IV(e){return Me("MuiPickersFilledInput",e)}const Ci=Q({},Ds,Pe("MuiPickersInput",["root","input"])),NV=["label","autoFocus","disableUnderline","ownerState"],AV=ie(Nc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ci.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ci.disabled}, .${Ci.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ci.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),FV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},IV,t);return Q({},t,r)},qh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,NV),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=FV(u);return E.jsx(Ac,Q({slots:{root:AV}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(qh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});qh.muiName="Input";const LV=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],$V={standard:qh,filled:Uh,outlined:Yh},VV=ie(pa,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jV=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},aV,o)},Rb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:A,label:M,InputLabelProps:L}=o,B=Ye(o,LV),ne=T.useRef(null),oe=ct(n,ne),se=sr(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=jV(J),ce=$V[f];return E.jsxs(VV,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},B,{children:[E.jsx(ma,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:H,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Xu,Q({id:j},A,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(Rb.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const BV=["enableAccessibleFieldDOMStructure"],WV=["InputProps","readOnly"],HV=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],zV=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,BV);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,WV);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,HV);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},YV=["slots","slotProps","InputProps","inputProps"],Gh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,YV),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?Rb:Vs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=iV(p),w=zV(y),b=nV(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(Gh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const Tb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>xa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},UV=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qV=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(UV(!!u,i,y)).current,b=T.useMemo(()=>Io.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:xo.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const D=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),k=T.useCallback(O=>{const I=O;y.isSameMonth(I,m.currentMonth)||D({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,D,y]),x=Tb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,I)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:I})});return{referenceDate:b,calendarState:m,changeMonth:k,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:D}},GV=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const KV=e=>{const{classes:t}=e;return Ie({root:["root"]},GV,t)},XV=ie(da,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function kb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=KV(t),l=qr();return r?n:E.jsx(XV,{className:Se(a.root,o),children:E.jsx(Gr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function ZV(e){return Me("MuiPickersDay",e)}const Mr=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),QV=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],JV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ZV,d)},Eb=({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Mr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.disabled}:not(.${Mr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mr.disabled}&.${Mr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Mc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Mr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Pb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},ej=ie(br,{name:"MuiPickersDay",slot:"Root",overridesResolver:Pb})(Eb),tj=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Pb})(({theme:e})=>Q({},Eb({theme:e}),{opacity:0,pointerEvents:"none"})),Si=()=>{},Db=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Si,onBlur:b=Si,onKeyDown:m=Si,onMouseDown:v=Si,onMouseEnter:D=Si,outsideCurrentMonth:k,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,I=Ye(o,QV),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=JV(F),R=Ft(),$=T.useRef(null),K=ct($,n);ln(()=>{r&&!l&&!f&&!k&&$.current.focus()},[r,l,f,k]);const G=Y=>{v(Y),k&&Y.preventDefault()},q=Y=>{l||y(a),k&&Y.currentTarget.focus(),p&&p(Y)};return k&&!S?E.jsx(tj,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:I.role}):E.jsx(ej,Q({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>D(Y,a),onClick:q,onMouseDown:G},I,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const nj=T.memo(Db),oj=e=>Me("MuiPickersSlideTransition",e),Yn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),rj=["children","className","reduceAnimations","slideDirection","transKey","classes"],sj=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,oj,t)},ij=ie(da,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function aj(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,rj),l=sj(t),d=qr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(ij,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Au,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const lj=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const cj=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],dj=["ownerState"],uj=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},lj,t)},Ob=(oa+Mc*2)*6,hj=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fj=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),pj=ie(bn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),mj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),gj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,padding:0,margin:`0 ${Mc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),yj=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ob}),vj=ie(aj,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ob}),bj=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),wj=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Mc}px 0`,display:"flex",justifyContent:"center"});function Cj(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,cj);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),D=Oc(m),k=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,D),C=w?.day??nj,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),I=Ye(O,dj),F=T.useMemo(()=>u||i(n),[u,i,n]),z=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},I,{day:n,disabled:F,autoFocus:l&&k,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:k?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function Sj(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:D,minDate:k,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:I=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Oc(q),H=uj(t),ae=to(),A=Tb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:k,maxDate:x,disablePast:v,disableFuture:D,timezone:q}),M=lr(),[L,B]=ho({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{A(pe)||(o(pe),oe(pe),z?.(!0),B(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Fi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Fi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&z?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),W=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[W]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return A(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Fi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:D,isDateDisabled:A,timezone:q}):ne},[i,D,v,ne,A,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(hj,{role:"grid","aria-labelledby":R,className:H.root,children:[E.jsxs(fj,{role:"row",className:H.header,children:[$&&E.jsx(mj,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),hL(n,Y).map((pe,be)=>E.jsx(pj,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:H.weekDayLabel,children:I(pe)},be.toString()))]}),d?E.jsx(yj,{className:H.loadingContainer,children:w()}):E.jsx(vj,Q({transKey:W,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},m,{nodeRef:re,children:E.jsx(bj,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((pe,be)=>E.jsxs(wj,{role:"row",className:H.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(gj,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(Cj,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:A,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function _j(e){return Me("MuiPickersMonth",e)}const nl=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),xj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Rj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_j,o)},Tj=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),kj=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nl.disabled}`]:t.disabled},{[`&.${nl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ej=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:D}=n,k=Ye(n,xj),x=T.useRef(null),S=Rj(n);ln(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??kj,O=pt({elementType:C,externalSlotProps:D?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:I=>f(I,d),onKeyDown:I=>p(I,d),onFocus:I=>y(I,d),onBlur:I=>w(I,d)},ownerState:n,className:S.monthButton});return E.jsx(Tj,Q({className:Se(S.root,r),ownerState:n},k,{children:E.jsx(C,Q({},O))}))});function Pj(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const Dj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Oj=e=>{const{classes:t}=e;return Ie({root:["root"]},Pj,t)};function Mj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const Ij=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Ic,boxSizing:"border-box"}),Mb=T.forwardRef(function(t,n){const o=Mj(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:D,hasFocus:k,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:I,slotProps:F}=o,z=Ye(o,Dj),{value:R,handleValueChange:$,timezone:K}=Bh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:Io}),G=Oc(K),q=to(),Y=Ft(),H=T.useMemo(()=>Io.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:xo.month}),[]),ae=o,A=Oj(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=T.useState(()=>L||Y.getMonth(H)),[oe,se]=ho({name:"MonthCalendar",state:"hasFocus",controlled:k,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),ee=T.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((W,re)=>{if(m)return;const Z=Y.setMonth(R??H,re);$(Z)}),te=Te(W=>{ee(Y.setMonth(R??H,W))||(ne(W),j(!0),D&&D(W))});T.useEffect(()=>{ne(W=>L!==null&&W!==L?L:W)},[L]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),le=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return E.jsx(Ij,Q({ref:n,className:Se(A.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:Ah(Y,R??H).map(W=>{const re=Y.getMonth(W),Z=Y.format(W,"monthShort"),fe=Y.format(W,"month"),pe=re===L,be=d||ee(W);return E.jsx(Ej,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===B,disabled:be,tabIndex:re===B&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:I,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function Nj(e){return Me("MuiPickersYear",e)}const ol=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Aj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Fj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Nj,o)},Lj=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),$j=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Vj=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,D=Ye(n,Aj),k=T.useRef(null),x=Fj(n);ln(()=>{o&&k.current?.focus()},[o]);const S=m?.yearButton??$j,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(Lj,Q({className:Se(x.root,r),ownerState:n},D,{children:E.jsx(S,Q({},C))}))});function jj(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const Bj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Wj=e=>{const{classes:t}=e;return Ie({root:["root"]},jj,t)};function Hj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const zj=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Ic,maxHeight:S$,boxSizing:"border-box",position:"relative"}),Ib=T.forwardRef(function(t,n){const o=Hj(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:D,hasFocus:k,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:I,slots:F,slotProps:z}=o,R=Ye(o,Bj),{value:$,handleValueChange:K,timezone:G}=Bh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:Io}),q=Oc(G),Y=to(),H=Ft(),ae=T.useMemo(()=>Io.getInitialReferenceValue({value:$,utils:H,props:o,timezone:G,referenceDate:d,granularity:xo.year}),[]),A=o,M=Wj(A),L=T.useMemo(()=>H.getYear(q),[H,q]),B=T.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=T.useState(()=>B||H.getYear(ae)),[se,j]=ho({name:"YearCalendar",state:"hasFocus",controlled:k,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&H.isBeforeYear(ge,q)||f&&H.isAfterYear(ge,q)||w&&H.isBeforeYear(ge,w)||y&&H.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=H.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,H]),te=Te((ge,Re)=>{if(m)return;const Ve=H.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(H.setYear($??ae,ge))||(oe(ge),ee(!0),D?.(ge))});T.useEffect(()=>{oe(ge=>B!==null&&ge!==B?B:ge)},[B]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,ke=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=ke-Ne/2-Re/2)},[r]);const be=H.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx(zj,Q({ref:pe,className:Se(M.root,i),ownerState:A,role:"radiogroup","aria-labelledby":I},R,{children:be.map(ge=>{const Re=H.getYear(ge),Ve=Re===B,Ne=u||J(ge);return E.jsx(Vj,{selected:Ve,value:Re,onClick:te,onKeyDown:W,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ge,"year")},H.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(Ib.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Yj=e=>Me("MuiPickersCalendarHeader",e),Uj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function qj(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Gj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Kj=["ownerState"],Xj=["ownerState"],Zj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Qj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Zm=ie(Us,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Jj=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qj,t)},eB=T.forwardRef(function(t,n){const o=to(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:D}=r,k=Ye(r,Gj),x=r,S=Jj(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},I=l?.previousIconButton??Zm,F=pt({elementType:I,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??Zm,R=pt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??L$,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,Kj),q=l?.rightArrowIcon??$$,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=Ye(Y,Xj);return E.jsxs(Zj,Q({ref:n,className:Se(S.root,a),ownerState:x},k,{children:[E.jsx(I,Q({},F,{children:o?E.jsx(q,Q({},H)):E.jsx($,Q({},G))})),i?E.jsx(bn,{variant:"subtitle1",component:"span",id:D,children:i}):E.jsx(Qj,{className:S.spacer,ownerState:x}),E.jsx(z,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},H))}))]}))});function tB(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function nB(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const oB=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],rB=["ownerState"],sB=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Yj,t)},iB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),aB=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),lB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),cB=ie(Us,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Uj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),dB=ie(F$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Nb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:D,views:k,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,I=Ye(i,oB),F=i,z=sB(i),R=a?.switchViewButton??cB,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??dB,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=Ye(G,rB),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=tB(d,{disableFuture:f,maxDate:y,timezone:C}),A=nB(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(k.length===1||!m||u))if(k.length===2)m(k.find(B=>B!==v)||k[0]);else{const B=k.indexOf(v)!==0?0:1;m(k[B])}};if(k.length===1&&k[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(iB,Q({},I,{ownerState:F,className:Se(z.root,S),ref:n,children:[E.jsxs(aB,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[E.jsx(kb,{reduceAnimations:D,transKey:L,children:E.jsx(lB,{id:x,ownerState:F,className:z.label,children:L})}),k.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Gr,{in:v==="day",children:E.jsx(eB,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:A,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Nb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const uB=ie("div")({overflow:"hidden",width:Ic,maxHeight:Wh,display:"flex",flexDirection:"column",margin:"0 auto"}),hB=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const fB=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],pB=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},hB,t)};function mB(e,t){const n=Ft(),o=_a(),r=hb(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:Jn(n,i.minDate,o.minDate),maxDate:Jn(n,i.maxDate,o.maxDate)})}const gB=ie(uB,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Wh}),yB=ie(kb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ab=T.forwardRef(function(t,n){const o=Ft(),r=sr(),i=mB(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,view:S,views:C,openTo:O,className:I,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:A,slotProps:M,loading:L,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,fB),{value:te,handleValueChange:ce,timezone:le}=Bh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:Io}),{view:he,setView:W,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=fb({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:ke}=qV({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:D,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=A?.calendarHeader??Nb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:W,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),pn=o.endOfMonth(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),pn=o.endOfYear(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Fl(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const dn=i,Oe=pB(dn),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:z,disabled:F,timezone:le,gridLabelId:rt,slots:A,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const An=T.useMemo(()=>[te],[te]);return E.jsxs(gB,Q({ref:n,className:Se(Oe.root,I),ownerState:dn},J,{children:[E.jsx(Ut,Q({},Lt,{slots:A,slotProps:M})),E.jsx(yB,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:dn,children:E.jsxs("div",{children:[he==="year"&&E.jsx(Ib,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(Mb,Q({},We,ht,{hasFocus:Ot,className:I,value:te,onChange:Ue,shouldDisableMonth:k,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx(Sj,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:ke,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:An,onSelectedDaysChange:rn,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Ab.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Os=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B})=>E.jsx(Ab,{view:e,onViewChange:t,views:n.filter(Fm),focusedView:o&&Fm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B}),Fb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=lb(t,"MuiDesktopDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Fh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:V$,field:Gh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},nc(i.slotProps?.field,u),db(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=A$({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:sb({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Fb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const vB=ie(qu)({[`& .${Ii.container}`]:{outline:0},[`& .${Ii.paper}`]:{outline:0,minWidth:Ic}}),bB=ie(Ku)({"&:first-of-type":{padding:0}});function wB(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??vB,l=r?.mobileTransition??Gr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(bB,{children:t})}))}const CB=["props","getOpenDialogAriaText"],SB=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,CB);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,localeText:x}=t,S=T.useRef(null),C=sr(),O=i?.toolbar?.hidden??!1,{open:I,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=pb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(k||D)&&{onClick:F.onOpen,onKeyDown:QL(F.onOpen)},{readOnly:D??!0,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),H=r.layout??Hh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const A=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(vb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:A,unstableFieldRef:M})),E.jsx(wB,Q({},F,{open:I,slots:r,slotProps:A,children:E.jsx(H,Q({},z,A?.layout,{slots:r,slotProps:A,children:R()}))}))]})}},Lb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=lb(t,"MuiMobileDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Fh(r,i,!1),slots:Q({field:Gh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},nc(i.slotProps?.field,u),db(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=SB({props:l,valueManager:Io,valueType:"date",getOpenDialogAriaText:sb({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Lb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const _B=["desktopModeMediaQuery"],$l=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=JL}=o,i=Ye(o,_B);return Fg(r,{defaultMatches:!0})?E.jsx(Fb,Q({ref:n},i)):E.jsx(Lb,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&($l.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(oo)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),xB=({setValue:e,value:t})=>{function n(r){const i=r?.format(Yr.db)||"",a={...t,1:i===fu?js[1]:i};e(a),rr(a)}function o(r){const i=r?.format(Yr.db)||"",a={...t,2:i===fu?js[2]:i};e(a),rr(a)}return E.jsxs(Dc,{dateAdapter:Qv,children:[E.jsx(vu,{children:E.jsx($l,{label:lo.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx($l,{label:lo.to,onChange:o,...gu(t[2])})})]})},jd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Yr.db)||"",a={...n,1:i===fu?js[1]:i};t(a),rr(a)}return E.jsx(Dc,{dateAdapter:Qv,children:E.jsx(vu,{children:E.jsx($l,{label:e,onChange:o,...gu(n[1])})})})},Qm={label:"",options:[]};function RB(){const{columnId:e,table:t}=Rn,n=t?.grid;if(!n)return Qm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Qm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function TB(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const kB=ie(hc)({padding:0}),Jm={Checkbox:kB},EB=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=RB(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),rr(d)};return E.jsxs(pa,{size:"small",children:[E.jsx(ma,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ga,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx($s,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Pl,{value:"All",children:[E.jsx(Jm.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(nu,{primary:"All"})]},0),r.sort(TB).map(a=>E.jsxs(Pl,{value:a,children:[E.jsx(Jm.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(nu,{primary:a})]},a))]})]})},PB=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),rr(i)}function o(r){const i={...t,2:r.target.value};e(i),rr(i)}return E.jsxs(Fe.Fragment,{children:[E.jsx(Vs,{label:lo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Vs,{label:lo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Bd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),rr(i)}return E.jsx(Vs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},rl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),rr(r)}return E.jsx(Vs,{label:lo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},DB=({filterId:e,setValue:t,value:n})=>E.jsxs(Fe.Fragment,{children:[e===je.Boolean&&E.jsx(sL,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(rl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(EB,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Bd,{label:lo.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Bd,{label:lo.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Bd,{label:lo.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(PB,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(jd,{label:lo.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(jd,{label:lo.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(jd,{label:lo.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(xB,{setValue:t,value:n})]}),OB=ie(Pl)({fontSize:"12px"}),eg={MenuItem:OB},MB=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>E.jsxs(pa,{variant:"outlined",size:"small",children:[E.jsx(ma,{id:"reportType",children:e}),E.jsxs(ga,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&E.jsx(eg.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>E.jsx(eg.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),IB={id:je.DateBetween,name:"Between"},NB={id:je.DateEqual,name:"Equal"},AB={id:je.DateFrom,name:"From"},FB={id:je.DateTo,name:"To"},LB={id:je.NumberBetween,name:"Between"},$B={id:je.NumberEqual,name:"Equal"},VB={id:je.NumberFrom,name:"From"},jB={id:je.NumberTo,name:"To"},BB={id:je.TextContain,name:"Contains"},WB={id:je.TextEqual,name:"Equal"},HB={id:je.TextNotContain,name:"Does not contain"},zB={id:je.TextNotEqual,name:"Not equal"},tg=[$B,VB,jB,LB],YB={[hn.Boolean]:[],[hn.Date]:[NB,AB,FB,IB],[hn.MultipleSelect]:[],[hn.Number]:tg,[hn.NumberFormatted]:tg,[hn.Text]:[BB,HB,WB,zB]},UB=({filterId:e,setFilterId:t})=>{const n=YB[Rn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=Rn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?E.jsx(MB,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},qB=ie(oo)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),GB={Wrapper:qB},KB=()=>{const[e,t]=Fe.useState(js),[n,o]=Fe.useState(je.TextContain),[r,i]=Fe.useState(!1);return JF(i),QF(r,o,t),r?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:i}),E.jsx(Nh,{id:Zv,children:E.jsxs(GB.Wrapper,{children:[E.jsx(UB,{filterId:n,setFilterId:o}),E.jsx(DB,{filterId:n,setValue:t,value:e}),E.jsx(nL,{setIsOpened:i,setValue:t,value:e})]})})]}):null},$b="context_menu";function XB(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById($b);if(!n)return;const{x:o,y:r}=wn;Mh(n,o,r)},0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}const ZB=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),QB=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),JB=ie("span")({backgroundColor:"#1E456F"}),cn={Ul:ZB,Li:QB,Icon:JB},eW=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=wn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},tW=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link"}),"Group"]})};function nW(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const oW=({setIsOpened:e})=>{const t=wn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,or.highlightAllColumns(o,t.id),e(!1)}return nW(t)?E.jsxs(Fe.Fragment,{children:[E.jsx(El,{}),E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},rW=({setIsOpened:e})=>{const t=wn.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),Uo.table=t,Uo.open=!0)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(cn.Li,{onClick:r,children:[E.jsx(cn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},sW=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},iW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},aW=({setIsOpened:e})=>{function t(){const n=wn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(cn.Li,{onClick:t,children:[E.jsx(cn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},lW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},cW=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=wn.table;r?.printer.print(r,e,t),n(!1)}return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-printer"}),"Print"]})},dW=({clientId:e,clientName:t})=>{const[n,o]=Fe.useState(!1);return XB(o),n?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:o}),E.jsx(Nh,{id:$b,children:E.jsxs(cn.Ul,{children:[E.jsx(cW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(aW,{setIsOpened:o}),E.jsx(eW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(oW,{setIsOpened:o}),E.jsx(sW,{setIsOpened:o}),E.jsx(tW,{setIsOpened:o}),E.jsx(lW,{setIsOpened:o}),E.jsx(iW,{setIsOpened:o}),E.jsx(rW,{setIsOpened:o})]})})]}):null},Vb="header-context-menu";function uW(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Vb);if(!n)return;const{x:o,y:r}=uo;Mh(n,o,r)},0)}return uo.subscribe(t),()=>{uo.unsubscribe(t)}},[])}function Kh(e){const t=uo.table;if(!t?.columnPicker)return;t.columnPicker.visibleColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.initialColumns.filter(({id:r})=>e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),or.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}const hW=({setChecked:e})=>{function t(){const n=uo.table;if(!n?.columnPicker)return;const o=n.columnPicker.initialColumns.map(({id:r})=>r);e(o),Kh(o)}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},fW=({checked:e,setChecked:t})=>{function n(){const o=e.filter(r=>r==="_checkbox_selector"||r==="isEdited");t(o),Kh(o)}return E.jsx(ko,{onClick:n,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},pW=ie(ko)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),mW=ie(hc)({padding:0}),ng={Checkbox:mW,Button:pW},gW=({checked:e,columnId:t,columnName:n,setChecked:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),Kh(a)}return E.jsxs(ng.Button,{onClick:r,children:[E.jsx(ng.Checkbox,{checked:e.includes(t),size:"small"}),E.jsx(oo,{children:n})]})},yW=ie(oo)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),vW={Wrapper:yW},bW=()=>E.jsx(vW.Wrapper,{className:"header-context-menu-header",children:"Columns"}),wW=ie(oo)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),CW=ie(oo)({maxHeight:"35em",overflowY:"auto"}),og={ButtonsGroup:wW,ItemsGroup:CW},SW=()=>{const[e,t]=Fe.useState([]),[n,o]=Fe.useState(!1);if(uW(o),Fe.useEffect(()=>{if(!n)return;const i=uo.table;i?.columnPicker&&t([...i.columnPicker.visibleColumnIds])},[n]),!n)return null;const r=uo.table;return r?.columnPicker?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:o}),E.jsxs(Nh,{id:Vb,children:[E.jsx(bW,{}),E.jsx(og.ItemsGroup,{children:r.columnPicker.initialColumns.filter(({id:i})=>i!=="_checkbox_selector"&&i!=="isEdited").map(({id:i,name:a})=>E.jsx(Fe.Fragment,{children:E.jsx(gW,{checked:e,columnId:i,columnName:a,setChecked:t})},i))}),E.jsxs(og.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(hW,{setChecked:t}),E.jsx(fW,{checked:e,setChecked:t})]})]})]}):null};exports.Autocomplete=_F;exports.BOLD=LD;exports.ColumnFilters=KB;exports.ColumnPicker=DD;exports.ColumnSorter=Kv;exports.ContextMenu=dW;exports.DecoratorColumnFilter=JA;exports.DecoratorFilter=Nv;exports.DefaultHotKeys=ID;exports.DefaultPrinter=Wv;exports.DeletedRowsFilter=BN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=hn;exports.ESortType=Co;exports.FORMATTER_NUMBER=PF;exports.Filter=Iv;exports.HeaderContextMenu=SW;exports.HotKeysDecorator=pc;exports.PopupSummary=YF;exports.PreventCopying=ND;exports.RedoUndoOnly=AD;exports.Skeleton=TD;exports.SlickTable=sF;exports.SlickgridTable=UA;exports.TotalCalculator=FF;exports.WINK=FD;exports.WithSummary=jN;exports.WithoutHotKeys=By;exports.columnCheckboxSelector=qA;exports.columnIsEdited=KA;exports.commitCurrentEdit=Th;exports.copySelectedRows=zv;exports.formatNumber=Oh;exports.formatterGroupTotals=DF;exports.getDisplayedRows=kc;exports.getFormatterNumber=Gv;exports.getNextId=Rh;exports.handleHeaderButtons=Av;exports.headerButtons=or;exports.hotKeysCopy=Eh;exports.hotKeysDelete=Hv;exports.hotKeysRedo=Ph;exports.hotKeysUndo=Dh;exports.openColumnFilter=HN;exports.openContextMenu=Yv;exports.useListenIfTablesWereEdited=yF;
|
|
366
|
+
`));f&&F.current&&F.current.getSectionContent(C.startIndex).focus()},[]),{interactions:Y,returnedValue:{autoFocus:f,readOnly:n,focused:u??G,sectionListRef:z,onBlur:B,onClick:ae,onFocus:L,onInput:A,onPaste:M,enableAccessibleFieldDOMStructure:!0,elements:le,tabIndex:m===0?-1:0,contentEditable:ce,value:W,onChange:he,areAllSectionsEmpty:O}}},_s=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Z$=(e,t,n)=>{let o=0,r=n?1:0;const i=[];for(let a=0;a<e.length;a+=1){const l=e[a],d=Vh(l,n?"input-rtl":"input-ltr",t),u=`${l.startSeparator}${d}${l.endSeparator}`,f=_s(u).length,p=u.length,y=_s(d),w=r+(y===""?0:d.indexOf(y[0]))+l.startSeparator.length,b=w+y.length;i.push(Q({},l,{start:o,end:o+f,startInInput:w,endInInput:b})),o+=f,r+=p}return i},Q$=e=>{const t=to(),n=T.useRef(),o=T.useRef(),{forwardedProps:{onFocus:r,onClick:i,onPaste:a,onBlur:l,inputRef:d,placeholder:u},internalProps:{readOnly:f=!1,disabled:p=!1},parsedSelectedSections:y,activeSectionIndex:w,state:b,fieldValueManager:m,valueManager:v,applyCharacterEditing:D,resetCharacterQuery:k,updateSectionValue:x,updateValueFromValueStr:S,clearActiveSection:C,clearValue:O,setTempAndroidValueStr:I,setSelectedSections:F,getSectionsFromValue:z,areAllSectionsEmpty:R,localizedDigits:$}=e,K=T.useRef(null),G=ct(d,K),q=T.useMemo(()=>Z$(b.sections,$,t),[b.sections,$,t]),Y=T.useMemo(()=>({syncSelectionToDOM:()=>{if(!K.current)return;if(y==null){K.current.scrollLeft&&(K.current.scrollLeft=0);return}if(K.current!==Ln(document))return;const J=K.current.scrollTop;if(y==="all")K.current.select();else{const te=q[y],ce=te.type==="empty"?te.startInInput-te.startSeparator.length:te.startInInput,le=te.type==="empty"?te.endInInput+te.endSeparator.length:te.endInInput;(ce!==K.current.selectionStart||le!==K.current.selectionEnd)&&K.current===Ln(document)&&K.current.setSelectionRange(ce,le),clearTimeout(o.current),o.current=setTimeout(()=>{K.current&&K.current===Ln(document)&&K.current.selectionStart===K.current.selectionEnd&&(K.current.selectionStart!==ce||K.current.selectionEnd!==le)&&Y.syncSelectionToDOM()})}K.current.scrollTop=J},getActiveSectionIndexFromDOM:()=>{const J=K.current.selectionStart??0,te=K.current.selectionEnd??0;if(J===0&&te===0)return null;const ce=J<=q[0].startInInput?1:q.findIndex(le=>le.startInInput-le.startSeparator.length>J);return ce===-1?q.length-1:ce-1},focusField:(J=0)=>{K.current?.focus(),F(J)},setSelectedSections:J=>F(J),isFieldFocused:()=>K.current===Ln(document)}),[K,y,q,F]),H=()=>{const J=K.current.selectionStart??0;let te;J<=q[0].startInInput||J>=q[q.length-1].endInInput?te=1:te=q.findIndex(le=>le.startInInput-le.startSeparator.length>J);const ce=te===-1?q.length-1:te-1;F(ce)},ae=Te((...J)=>{r?.(...J);const te=K.current;clearTimeout(n.current),n.current=setTimeout(()=>{!te||te!==K.current||w==null&&(te.value.length&&Number(te.selectionEnd)-Number(te.selectionStart)===te.value.length?F("all"):H())})}),A=Te((J,...te)=>{J.isDefaultPrevented()||(i?.(J,...te),H())}),M=Te(J=>{if(a?.(J),J.preventDefault(),f||p)return;const te=J.clipboardData.getData("text");if(typeof y=="number"){const ce=b.sections[y],le=/^[a-zA-Z]+$/.test(te),he=/^[0-9]+$/.test(te),W=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(te);if(ce.contentType==="letter"&&le||ce.contentType==="digit"&&he||ce.contentType==="digit-with-letter"&&W){k(),x({activeSection:ce,newSectionValue:te,shouldGoToNextSection:!0});return}if(le||he)return}k(),S(te)}),L=Te((...J)=>{l?.(...J),F(null)}),B=Te(J=>{if(f)return;const te=J.target.value;if(te===""){k(),O();return}const ce=J.nativeEvent.data,le=ce&&ce.length>1,he=le?ce:te,W=_s(he);if(w==null||le){S(le?ce:W);return}let re;if(y==="all"&&W.length===1)re=W;else{const Z=_s(m.getV6InputValueFromSections(q,$,t));let fe=-1,pe=-1;for(let Ve=0;Ve<Z.length;Ve+=1)fe===-1&&Z[Ve]!==W[Ve]&&(fe=Ve),pe===-1&&Z[Z.length-Ve-1]!==W[W.length-Ve-1]&&(pe=Ve);const be=q[w];if(fe<be.start||Z.length-pe-1>be.end)return;const Re=W.length-Z.length+be.end-_s(be.endSeparator||"").length;re=W.slice(be.start+_s(be.startSeparator||"").length,Re)}if(re.length===0){kL()&&I(he),k(),C();return}D({keyPressed:re,sectionIndex:w})}),ne=T.useMemo(()=>u!==void 0?u:m.getV6InputValueFromSections(z(v.emptyValue),$,t),[u,m,z,v.emptyValue,$,t]),oe=T.useMemo(()=>b.tempValueStrAndroid??m.getV6InputValueFromSections(b.sections,$,t),[b.sections,m,b.tempValueStrAndroid,$,t]);T.useEffect(()=>(K.current&&K.current===Ln(document)&&F("all"),()=>{clearTimeout(n.current),clearTimeout(o.current)}),[]);const se=T.useMemo(()=>w==null||b.sections[w].contentType==="letter"?"text":"numeric",[w,b.sections]),ee=!(K.current&&K.current===Ln(document))&&R;return{interactions:Y,returnedValue:{readOnly:f,onBlur:L,onClick:A,onFocus:ae,onPaste:M,inputRef:G,enableAccessibleFieldDOMStructure:!1,placeholder:ne,inputMode:se,autoComplete:"off",value:ee?"":oe,onChange:B}}},J$=e=>{const t=Ft(),{internalProps:n,internalProps:{unstableFieldRef:o,minutesStep:r,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:l=!1},forwardedProps:{onKeyDown:d,error:u,clearable:f,onClear:p},fieldValueManager:y,valueManager:w,validator:b}=e,m=to(),v=q$(e),{state:D,activeSectionIndex:k,parsedSelectedSections:x,setSelectedSections:S,clearValue:C,clearActiveSection:O,updateSectionValue:I,setTempAndroidValueStr:F,sectionsValueBoundaries:z,localizedDigits:R,timezone:$}=v,K=K$({sections:D.sections,updateSectionValue:I,sectionsValueBoundaries:z,localizedDigits:R,setTempAndroidValueStr:F,timezone:$}),{resetCharacterQuery:G}=K,q=w.areValuesEqual(t,D.value,w.emptyValue),Y=i?X$:Q$,H=T.useMemo(()=>EL(D.sections,m&&!i),[D.sections,m,i]),{returnedValue:ae,interactions:A}=Y(Q({},e,v,K,{areAllSectionsEmpty:q,sectionOrder:H})),M=Te(j=>{if(d?.(j),!a)switch(!0){case((j.ctrlKey||j.metaKey)&&String.fromCharCode(j.keyCode)==="A"&&!j.shiftKey&&!j.altKey):{j.preventDefault(),S("all");break}case j.key==="ArrowRight":{if(j.preventDefault(),x==null)S(H.startIndex);else if(x==="all")S(H.endIndex);else{const ee=H.neighbors[x].rightIndex;ee!==null&&S(ee)}break}case j.key==="ArrowLeft":{if(j.preventDefault(),x==null)S(H.endIndex);else if(x==="all")S(H.startIndex);else{const ee=H.neighbors[x].leftIndex;ee!==null&&S(ee)}break}case j.key==="Delete":{if(j.preventDefault(),l)break;x==null||x==="all"?C():O(),G();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(j.key):{if(j.preventDefault(),l||k==null)break;const ee=D.sections[k],J=y.getActiveDateManager(t,D,ee),te=CL(t,$,ee,j.key,z,R,J.date,{minutesStep:r});I({activeSection:ee,newSectionValue:te,shouldGoToNextSection:!1});break}}});ln(()=>{A.syncSelectionToDOM()});const{hasValidationError:L}=ub({props:n,validator:b,timezone:$,value:D.value,onError:n.onError}),B=T.useMemo(()=>u!==void 0?u:L,[L,u]);T.useEffect(()=>{!B&&k==null&&G()},[D.referenceValue,k,B]),T.useEffect(()=>{D.tempValueStrAndroid!=null&&k!=null&&(G(),O())},[D.sections]),T.useImperativeHandle(o,()=>({getSections:()=>D.sections,getActiveSectionIndex:A.getActiveSectionIndexFromDOM,setSelectedSections:A.setSelectedSections,focusField:A.focusField,isFieldFocused:A.isFieldFocused}));const ne=Te((j,...ee)=>{j.preventDefault(),p?.(j,...ee),C(),A.isFieldFocused()?S(H.startIndex):A.focusField(0)}),oe={onKeyDown:M,onClear:ne,error:B,clearable:!!(f&&!q&&!l&&!a)},se={disabled:a,readOnly:l};return Q({},e.forwardedProps,oe,se,ae)},eV=["clearable","onClear","InputProps","sx","slots","slotProps"],tV=["ownerState"],nV=e=>{const t=lr(),{clearable:n,onClear:o,InputProps:r,sx:i,slots:a,slotProps:l}=e,d=Ye(e,eV),u=a?.clearButton??Us,f=pt({elementType:u,externalSlotProps:l?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),p=Ye(f,tV),y=a?.clearIcon??j$,w=pt({elementType:y,externalSlotProps:l?.clearIcon,ownerState:{}});return Q({},d,{InputProps:Q({},r,{endAdornment:E.jsxs(T.Fragment,{children:[n&&E.jsx(Zu,{position:"end",sx:{marginRight:r?.endAdornment?-1:-1.5},children:E.jsx(u,Q({},p,{onClick:o,children:E.jsx(y,Q({fontSize:"small"},w))}))}),r?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})},oV=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],rV=(e,t)=>T.useMemo(()=>{const n=Q({},e),o={},r=i=>{n.hasOwnProperty(i)&&(o[i]=n[i],delete n[i])};return oV.forEach(r),cb.forEach(r),{forwardedProps:n,internalProps:o}},[e,t]),sV=e=>{const t=Ft(),n=_a();return Q({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Jn(t,e.minDate,n.minDate),maxDate:Jn(t,e.maxDate,n.maxDate)})},iV=e=>{const t=sV(e),{forwardedProps:n,internalProps:o}=rV(t,"date");return J$({forwardedProps:n,internalProps:o,valueManager:No,fieldValueManager:ML,validator:xa,valueType:"date"})};function aV(e){return Me("MuiPickersTextField",e)}Pe("MuiPickersTextField",["root","focused","disabled","error","required"]);function lV(e){return Me("MuiPickersInputBase",e)}const Ds=Pe("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function cV(e){return Me("MuiPickersSectionList",e)}const wi=Pe("MuiPickersSectionList",["root","section","sectionContent"]),dV=["slots","slotProps","elements","sectionListRef"],bb=ie("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),wb=ie("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Cb=ie("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Sb=ie("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),uV=e=>{const{classes:t}=e;return Ie({root:["root"],section:["section"],sectionContent:["sectionContent"]},cV,t)};function _b(e){const{slots:t,slotProps:n,element:o,classes:r}=e,i=t?.section??wb,a=pt({elementType:i,externalSlotProps:n?.section,externalForwardedProps:o.container,className:r.section,ownerState:{}}),l=t?.sectionContent??Sb,d=pt({elementType:l,externalSlotProps:n?.sectionContent,externalForwardedProps:o.content,additionalProps:{suppressContentEditableWarning:!0},className:r.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Cb,f=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.before,ownerState:{position:"before"}}),p=pt({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:o.after,ownerState:{position:"after"}});return E.jsxs(i,Q({},a,{children:[E.jsx(u,Q({},f)),E.jsx(l,Q({},d)),E.jsx(u,Q({},p))]}))}process.env.NODE_ENV!=="production"&&(_b.propTypes={classes:s.object.isRequired,element:s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired}).isRequired,slotProps:s.object,slots:s.object});const xb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersSectionList"}),{slots:r,slotProps:i,elements:a,sectionListRef:l}=o,d=Ye(o,dV),u=uV(o),f=T.useRef(null),p=ct(n,f),y=m=>{if(!f.current)throw new Error(`MUI X: Cannot call sectionListRef.${m} before the mount of the component.`);return f.current};T.useImperativeHandle(l,()=>({getRoot(){return y("getRoot")},getSectionContainer(m){return y("getSectionContainer").querySelector(`.${wi.section}[data-sectionindex="${m}"]`)},getSectionContent(m){return y("getSectionContent").querySelector(`.${wi.section}[data-sectionindex="${m}"] .${wi.sectionContent}`)},getSectionIndexFromDOMElement(m){const v=y("getSectionIndexFromDOMElement");if(m==null||!v.contains(m))return null;let D=null;return m.classList.contains(wi.section)?D=m:m.classList.contains(wi.sectionContent)&&(D=m.parentElement),D==null?null:Number(D.dataset.sectionindex)}}));const w=r?.root??bb,b=pt({elementType:w,externalSlotProps:i?.root,externalForwardedProps:d,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return E.jsx(w,Q({},b,{children:b.contentEditable?a.map(({content:m,before:v,after:D})=>`${v.children}${m.children}${D.children}`).join(""):E.jsx(T.Fragment,{children:a.map((m,v)=>E.jsx(_b,{slots:r,slotProps:i,element:m,classes:u},v))})}))});process.env.NODE_ENV!=="production"&&(xb.propTypes={classes:s.object,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object});const hV=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],fV=e=>Math.round(e*1e5)/1e5,Nc=ie("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${fV(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),zh=ie(bb,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:o,label:r})=>!t&&!n&&!o&&r==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),pV=ie(wb,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"flex"})),mV=ie(Sb,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),gV=ie(Cb,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),yV=ie("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(Q({},rR)),vV=e=>{const{focused:t,disabled:n,error:o,classes:r,fullWidth:i,readOnly:a,color:l,size:d,endAdornment:u,startAdornment:f}=e,p={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",o&&"error",i&&"fullWidth",`color${we(l)}`,d==="small"&&"inputSizeSmall",!!f&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Ie(p,lV,r)},Ac=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:i,value:a,onChange:l,id:d,endAdornment:u,startAdornment:f,renderSuffix:p,slots:y,slotProps:w,contentEditable:b,tabIndex:m,onInput:v,onPaste:D,onKeyDown:k,name:x,readOnly:S,inputProps:C,inputRef:O,sectionListRef:I}=o,F=Ye(o,hV),z=T.useRef(null),R=ct(n,z),$=ct(C?.ref,O),K=to(),G=Nn();if(!G)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const q=L=>{if(G.disabled){L.stopPropagation();return}G.onFocus?.(L)};T.useEffect(()=>{G&&G.setAdornedStart(!!f)},[G,f]),T.useEffect(()=>{G&&(i?G.onEmpty():G.onFilled())},[G,i]);const Y=Q({},o,G,{isRtl:K}),H=vV(Y),ae=y?.root||Nc,A=pt({elementType:ae,externalSlotProps:w?.root,externalForwardedProps:F,additionalProps:{"aria-invalid":G.error,ref:R},className:H.root,ownerState:Y}),M=y?.input||zh;return E.jsxs(ae,Q({},A,{children:[f,E.jsx(xb,{sectionListRef:I,elements:r,contentEditable:b,tabIndex:m,className:H.sectionsContainer,onFocus:q,onBlur:G.onBlur,onInput:v,onPaste:D,onKeyDown:k,slots:{root:M,section:pV,sectionContent:mV,sectionSeparator:gV},slotProps:{root:{ownerState:Y},sectionContent:{className:Ds.sectionContent},sectionSeparator:({position:L})=>({className:L==="before"?Ds.sectionBefore:Ds.sectionAfter})}}),u,p?p(Q({},G)):null,E.jsx(yV,Q({name:x,className:H.input,value:a,onChange:l,id:d,"aria-hidden":"true",tabIndex:-1,readOnly:S,required:G.required,disabled:G.disabled},C,{ref:$}))]}))});process.env.NODE_ENV!=="production"&&(Ac.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});function bV(e){return Me("MuiPickersOutlinedInput",e)}const ao=Q({},Ds,Pe("MuiPickersOutlinedInput",["root","notchedOutline","input"])),wV=["children","className","label","notched","shrink"],CV=ie("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),Xm=ie("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),SV=ie("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function _V(e){const{className:t,label:n}=e,o=Ye(e,wV),r=n!=null&&n!=="",i=Q({},e,{withLabel:r});return E.jsx(CV,Q({"aria-hidden":!0,className:t},o,{ownerState:i,children:E.jsx(SV,{ownerState:i,children:r?E.jsx(Xm,{children:n}):E.jsx(Xm,{className:"notranslate",children:""})})}))}const xV=["label","autoFocus","ownerState","notched"],RV=ie(Nc,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ao.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ao.focused} .${ao.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${ao.disabled}`]:{[`& .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${ao.error} .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${ao.focused}:not(.${ao.error}) .${ao.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),TV=ie(zh,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),kV=e=>{const{classes:t}=e,o=Ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bV,t);return Q({},t,o)},Yh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:i,notched:a}=o,l=Ye(o,xV),d=Nn(),u=Q({},o,i,d,{color:d?.color||"primary"}),f=kV(u);return E.jsx(Ac,Q({slots:{root:RV,input:TV},renderSuffix:p=>E.jsx(_V,{shrink:!!(a||p.adornedStart||p.focused||p.filled),notched:!!(a||p.adornedStart||p.focused||p.filled),className:f.notchedOutline,label:r!=null&&r!==""&&d?.required?E.jsxs(T.Fragment,{children:[r," ","*"]}):r,ownerState:u})},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Yh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,notched:s.bool,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Yh.muiName="Input";function EV(e){return Me("MuiPickersFilledInput",e)}const Or=Q({},Ds,Pe("MuiPickersFilledInput",["root","underline","input"])),PV=["label","autoFocus","disableUnderline","ownerState"],DV=ie(Nc,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ll(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[...Object.keys((e.vars??e).palette).filter(a=>(e.vars??e).palette[a].main).map(a=>({props:{color:a,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:a})=>!!a,style:{paddingLeft:12}},{props:({endAdornment:a})=>!!a,style:{paddingRight:12}}]}}),OV=ie(zh,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),MV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},EV,t);return Q({},t,r)},Uh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,PV),d=Nn(),u=Q({},o,a,d,{color:d?.color||"primary"}),f=MV(u);return E.jsx(Ac,Q({slots:{root:DV,input:OV},slotProps:{root:{disableUnderline:i}}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(Uh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,hiddenLabel:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});Uh.muiName="Input";function IV(e){return Me("MuiPickersFilledInput",e)}const Ci=Q({},Ds,Pe("MuiPickersInput",["root","input"])),NV=["label","autoFocus","disableUnderline","ownerState"],AV=ie(Nc,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(o=>(e.vars??e).palette[o].main).map(o=>({props:{color:o},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ci.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ci.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ci.disabled}, .${Ci.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ci.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),FV=e=>{const{classes:t,disableUnderline:n}=e,r=Ie({root:["root",!n&&"underline"],input:["input"]},IV,t);return Q({},t,r)},qh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersInput"}),{label:r,disableUnderline:i=!1,ownerState:a}=o,l=Ye(o,NV),d=Nn(),u=Q({},o,a,d,{disableUnderline:i,color:d?.color||"primary"}),f=FV(u);return E.jsx(Ac,Q({slots:{root:AV}},l,{label:r,classes:f,ref:n}))});process.env.NODE_ENV!=="production"&&(qh.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,component:s.elementType,contentEditable:s.bool.isRequired,disableUnderline:s.bool,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,fullWidth:s.bool,id:s.string,inputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onChange:s.func.isRequired,onClick:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,ownerState:s.any,readOnly:s.bool,renderSuffix:s.func,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),slotProps:s.object,slots:s.object,startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired});qh.muiName="Input";const LV=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],$V={standard:qh,filled:Uh,outlined:Yh},VV=ie(pa,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jV=e=>{const{focused:t,disabled:n,classes:o,required:r}=e;return Ie({root:["root",t&&!n&&"focused",n&&"disabled",r&&"required"]},aV,o)},Rb=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersTextField"}),{onFocus:r,onBlur:i,className:a,color:l="primary",disabled:d=!1,error:u=!1,variant:f="outlined",required:p=!1,InputProps:y,inputProps:w,inputRef:b,sectionListRef:m,elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onPaste:C,onInput:O,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,focused:$,value:K,onChange:G,fullWidth:q,id:Y,name:H,helperText:ae,FormHelperTextProps:A,label:M,InputLabelProps:L}=o,B=Ye(o,LV),ne=T.useRef(null),oe=ct(n,ne),se=sr(Y),j=ae&&se?`${se}-helper-text`:void 0,ee=M&&se?`${se}-label`:void 0,J=Q({},o,{color:l,disabled:d,error:u,focused:$,required:p,variant:f}),te=jV(J),ce=$V[f];return E.jsxs(VV,Q({className:Se(te.root,a),ref:oe,focused:$,onFocus:r,onBlur:i,disabled:d,variant:f,error:u,color:l,fullWidth:q,required:p,ownerState:J},B,{children:[E.jsx(ma,Q({htmlFor:se,id:ee},L,{children:M})),E.jsx(ce,Q({elements:v,areAllSectionsEmpty:D,onClick:k,onKeyDown:x,onKeyUp:S,onInput:O,onPaste:C,endAdornment:I,startAdornment:F,tabIndex:z,contentEditable:R,value:K,onChange:G,id:se,fullWidth:q,inputProps:w,inputRef:b,sectionListRef:m,label:M,name:H,role:"group","aria-labelledby":ee},y)),ae&&E.jsx(Xu,Q({id:j},A,{children:ae}))]}))});process.env.NODE_ENV!=="production"&&(Rb.propTypes={areAllSectionsEmpty:s.bool.isRequired,className:s.string,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,contentEditable:s.bool.isRequired,disabled:s.bool.isRequired,elements:s.arrayOf(s.shape({after:s.object.isRequired,before:s.object.isRequired,container:s.object.isRequired,content:s.object.isRequired})).isRequired,endAdornment:s.node,error:s.bool.isRequired,focused:s.bool,FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),name:s.string,onBlur:s.func.isRequired,onChange:s.func.isRequired,onClick:s.func.isRequired,onFocus:s.func.isRequired,onInput:s.func.isRequired,onKeyDown:s.func.isRequired,onPaste:s.func.isRequired,readOnly:s.bool,required:s.bool,sectionListRef:s.oneOfType([s.func,s.shape({current:s.shape({getRoot:s.func.isRequired,getSectionContainer:s.func.isRequired,getSectionContent:s.func.isRequired,getSectionIndexFromDOMElement:s.func.isRequired})})]),size:s.oneOf(["medium","small"]),startAdornment:s.node,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),value:s.string.isRequired,variant:s.oneOf(["filled","outlined","standard"])});const BV=["enableAccessibleFieldDOMStructure"],WV=["InputProps","readOnly"],HV=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],zV=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=Ye(e,BV);if(t){const{InputProps:p,readOnly:y}=n,w=Ye(n,WV);return Q({},w,{InputProps:Q({},p??{},{readOnly:y})})}const{onPaste:o,onKeyDown:r,inputMode:i,readOnly:a,InputProps:l,inputProps:d,inputRef:u}=n,f=Ye(n,HV);return Q({},f,{InputProps:Q({},l??{},{readOnly:a}),inputProps:Q({},d??{},{inputMode:i,onPaste:o,onKeyDown:r,ref:u})})},YV=["slots","slotProps","InputProps","inputProps"],Gh=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDateField"}),{slots:r,slotProps:i,InputProps:a,inputProps:l}=o,d=Ye(o,YV),u=o,f=r?.textField??(t.enableAccessibleFieldDOMStructure?Rb:Vs),p=pt({elementType:f,externalSlotProps:i?.textField,externalForwardedProps:d,additionalProps:{ref:n},ownerState:u});p.inputProps=Q({},l,p.inputProps),p.InputProps=Q({},a,p.InputProps);const y=iV(p),w=zV(y),b=nV(Q({},w,{slots:r,slotProps:i}));return E.jsx(f,Q({},b))});process.env.NODE_ENV!=="production"&&(Gh.propTypes={autoFocus:s.bool,className:s.string,clearable:s.bool,color:s.oneOf(["error","info","primary","secondary","success","warning"]),component:s.elementType,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,enableAccessibleFieldDOMStructure:s.bool,focused:s.bool,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),FormHelperTextProps:s.object,fullWidth:s.bool,helperText:s.node,hiddenLabel:s.bool,id:s.string,InputLabelProps:s.object,inputProps:s.object,InputProps:s.object,inputRef:zt,label:s.node,margin:s.oneOf(["dense","none","normal"]),maxDate:s.object,minDate:s.object,name:s.string,onBlur:s.func,onChange:s.func,onClear:s.func,onError:s.func,onFocus:s.func,onSelectedSectionsChange:s.func,readOnly:s.bool,referenceDate:s.object,required:s.bool,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,shouldRespectLeadingZeros:s.bool,size:s.oneOf(["medium","small"]),slotProps:s.object,slots:s.object,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,unstableFieldRef:s.oneOfType([s.func,s.object]),value:s.object,variant:s.oneOf(["filled","outlined","standard"])});const Tb=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a,timezone:l})=>{const d=Qr();return T.useCallback(u=>xa({adapter:d,value:u,timezone:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:o,maxDate:r,disableFuture:i,disablePast:a}})!==null,[d,e,t,n,o,r,i,a,l])},UV=(e,t,n)=>(o,r)=>{switch(r.type){case"changeMonth":return Q({},o,{slideDirection:r.direction,currentMonth:r.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const i=r.newTimezone;if(n.getTimezone(o.currentMonth)===i)return o;let a=n.setTimezone(o.currentMonth,i);return n.getMonth(a)!==n.getMonth(o.currentMonth)&&(a=n.setMonth(a,n.getMonth(o.currentMonth))),Q({},o,{currentMonth:a})}case"finishMonthSwitchingAnimation":return Q({},o,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(o.focusedDay!=null&&r.focusedDay!=null&&n.isSameDay(r.focusedDay,o.focusedDay))return o;const i=r.focusedDay!=null&&!t&&!n.isSameMonth(o.currentMonth,r.focusedDay);return Q({},o,{focusedDay:r.focusedDay,isMonthSwitchingAnimating:i&&!e&&!r.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(r.focusedDay):o.currentMonth,slideDirection:r.focusedDay!=null&&n.isAfterDay(r.focusedDay,o.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},qV=e=>{const{value:t,referenceDate:n,disableFuture:o,disablePast:r,disableSwitchToMonthOnDayFocus:i=!1,maxDate:a,minDate:l,onMonthChange:d,reduceAnimations:u,shouldDisableDate:f,timezone:p}=e,y=Ft(),w=T.useRef(UV(!!u,i,y)).current,b=T.useMemo(()=>No.getInitialReferenceValue({value:t,utils:y,timezone:p,props:e,referenceDate:n,granularity:xo.day}),[n,p]),[m,v]=T.useReducer(w,{isMonthSwitchingAnimating:!1,focusedDay:b,currentMonth:y.startOfMonth(b),slideDirection:"left"});T.useEffect(()=>{v({type:"changeMonthTimezone",newTimezone:y.getTimezone(b)})},[b,y]);const D=T.useCallback(O=>{v(Q({type:"changeMonth"},O)),d&&d(O.newMonth)},[d]),k=T.useCallback(O=>{const I=O;y.isSameMonth(I,m.currentMonth)||D({newMonth:y.startOfMonth(I),direction:y.isAfterDay(I,m.currentMonth)?"left":"right"})},[m.currentMonth,D,y]),x=Tb({shouldDisableDate:f,minDate:l,maxDate:a,disableFuture:o,disablePast:r,timezone:p}),S=T.useCallback(()=>{v({type:"finishMonthSwitchingAnimation"})},[]),C=Te((O,I)=>{x(O)||v({type:"changeFocusedDay",focusedDay:O,withoutMonthSwitchingAnimation:I})});return{referenceDate:b,calendarState:m,changeMonth:k,changeFocusedDay:C,isDateDisabled:x,onMonthSwitchingAnimationEnd:S,handleChangeMonth:D}},GV=e=>Me("MuiPickersFadeTransitionGroup",e);Pe("MuiPickersFadeTransitionGroup",["root"]);const KV=e=>{const{classes:t}=e;return Ie({root:["root"]},GV,t)},XV=ie(da,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function kb(e){const t=Nt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=KV(t),l=qr();return r?n:E.jsx(XV,{className:Se(a.root,o),children:E.jsx(Gr,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:l.transitions.duration.enteringScreen,enter:l.transitions.duration.enteringScreen,exit:0},children:n},i)})}function ZV(e){return Me("MuiPickersDay",e)}const Mr=Pe("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),QV=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],JV=e=>{const{selected:t,disableMargin:n,disableHighlightToday:o,today:r,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:l,classes:d}=e,u=a&&!l;return Ie({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!o&&r&&"today",a&&l&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},ZV,d)},Eb=({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${Mr.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${Mr.disabled}:not(.${Mr.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mr.disabled}&.${Mr.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Mc}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${Mr.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Pb=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},ej=ie(br,{name:"MuiPickersDay",slot:"Root",overridesResolver:Pb})(Eb),tj=ie("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Pb})(({theme:e})=>Q({},Eb({theme:e}),{opacity:0,pointerEvents:"none"})),Si=()=>{},Db=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiPickersDay"}),{autoFocus:r=!1,className:i,day:a,disabled:l=!1,disableHighlightToday:d=!1,disableMargin:u=!1,isAnimating:f,onClick:p,onDaySelect:y,onFocus:w=Si,onBlur:b=Si,onKeyDown:m=Si,onMouseDown:v=Si,onMouseEnter:D=Si,outsideCurrentMonth:k,selected:x=!1,showDaysOutsideCurrentMonth:S=!1,children:C,today:O=!1}=o,I=Ye(o,QV),F=Q({},o,{autoFocus:r,disabled:l,disableHighlightToday:d,disableMargin:u,selected:x,showDaysOutsideCurrentMonth:S,today:O}),z=JV(F),R=Ft(),$=T.useRef(null),K=ct($,n);ln(()=>{r&&!l&&!f&&!k&&$.current.focus()},[r,l,f,k]);const G=Y=>{v(Y),k&&Y.preventDefault()},q=Y=>{l||y(a),k&&Y.currentTarget.focus(),p&&p(Y)};return k&&!S?E.jsx(tj,{className:Se(z.root,z.hiddenDaySpacingFiller,i),ownerState:F,role:I.role}):E.jsx(ej,Q({className:Se(z.root,i),ref:K,centerRipple:!0,disabled:l,tabIndex:x?0:-1,onKeyDown:Y=>m(Y,a),onFocus:Y=>w(Y,a),onBlur:Y=>b(Y,a),onMouseEnter:Y=>D(Y,a),onClick:q,onMouseDown:G},I,{ownerState:F,children:C||R.format(a,"dayOfMonth")}))});process.env.NODE_ENV!=="production"&&(Db.propTypes={action:s.oneOfType([s.func,s.shape({current:s.shape({focusVisible:s.func.isRequired})})]),centerRipple:s.bool,classes:s.object,className:s.string,component:s.elementType,day:s.object.isRequired,disabled:s.bool,disableHighlightToday:s.bool,disableMargin:s.bool,disableRipple:s.bool,disableTouchRipple:s.bool,focusRipple:s.bool,focusVisibleClassName:s.string,isAnimating:s.bool,isFirstVisibleCell:s.bool.isRequired,isLastVisibleCell:s.bool.isRequired,onBlur:s.func,onDaySelect:s.func.isRequired,onFocus:s.func,onFocusVisible:s.func,onKeyDown:s.func,onMouseEnter:s.func,outsideCurrentMonth:s.bool.isRequired,selected:s.bool,showDaysOutsideCurrentMonth:s.bool,style:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,today:s.bool,TouchRippleProps:s.object,touchRippleRef:s.oneOfType([s.func,s.shape({current:s.shape({pulsate:s.func.isRequired,start:s.func.isRequired,stop:s.func.isRequired})})])});const nj=T.memo(Db),oj=e=>Me("MuiPickersSlideTransition",e),Yn=Pe("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),rj=["children","className","reduceAnimations","slideDirection","transKey","classes"],sj=e=>{const{classes:t,slideDirection:n}=e,o={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ie(o,oj,t)},ij=ie(da,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Yn["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Yn["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Yn.slideEnterActive}`]:t.slideEnterActive},{[`.${Yn.slideExit}`]:t.slideExit},{[`.${Yn["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Yn["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${Yn["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Yn["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Yn.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Yn.slideExit}`]:{transform:"translate(0%)"},[`& .${Yn["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Yn["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function aj(e){const t=Nt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:o,reduceAnimations:r,transKey:i}=t,a=Ye(t,rj),l=sj(t),d=qr();if(r)return E.jsx("div",{className:Se(l.root,o),children:n});const u={exit:l.exit,enterActive:l.enterActive,enter:l.enter,exitActive:l.exitActive};return E.jsx(ij,{className:Se(l.root,o),childFactory:f=>T.cloneElement(f,{classNames:u}),role:"presentation",children:E.jsx(Au,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:d.transitions.duration.complex,classNames:u},a,{children:n}),i)})}const lj=e=>Me("MuiDayCalendar",e);Pe("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const cj=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],dj=["ownerState"],uj=e=>{const{classes:t}=e;return Ie({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},lj,t)},Ob=(oa+Mc*2)*6,hj=ie("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fj=ie("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),pj=ie(bn,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),mj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),gj=ie(bn,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:oa,height:oa,padding:0,margin:`0 ${Mc}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),yj=ie("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Ob}),vj=ie(aj,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Ob}),bj=ie("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),wj=ie("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Mc}px 0`,display:"flex",justifyContent:"center"});function Cj(e){let{parentProps:t,day:n,focusableDay:o,selectedDays:r,isDateDisabled:i,currentMonthNumber:a,isViewFocused:l}=e,d=Ye(e,cj);const{disabled:u,disableHighlightToday:f,isMonthSwitchingAnimating:p,showDaysOutsideCurrentMonth:y,slots:w,slotProps:b,timezone:m}=t,v=Ft(),D=Oc(m),k=o!==null&&v.isSameDay(n,o),x=r.some(K=>v.isSameDay(K,n)),S=v.isSameDay(n,D),C=w?.day??nj,O=pt({elementType:C,externalSlotProps:b?.day,additionalProps:Q({disableHighlightToday:f,showDaysOutsideCurrentMonth:y,role:"gridcell",isAnimating:p,"data-timestamp":v.toJsDate(n).valueOf()},d),ownerState:Q({},t,{day:n,selected:x})}),I=Ye(O,dj),F=T.useMemo(()=>u||i(n),[u,i,n]),z=T.useMemo(()=>v.getMonth(n)!==a,[v,n,a]),R=T.useMemo(()=>{const K=v.startOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.startOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]),$=T.useMemo(()=>{const K=v.endOfMonth(v.setMonth(n,a));return y?v.isSameDay(n,v.endOfWeek(K)):v.isSameDay(n,K)},[a,n,y,v]);return E.jsx(C,Q({},I,{day:n,disabled:F,autoFocus:l&&k,today:S,outsideCurrentMonth:z,isFirstVisibleCell:R,isLastVisibleCell:$,selected:x,tabIndex:k?0:-1,"aria-selected":x,"aria-current":S?"date":void 0}))}function Sj(e){const t=Nt({props:e,name:"MuiDayCalendar"}),n=Ft(),{onFocusedDayChange:o,className:r,currentMonth:i,selectedDays:a,focusedDay:l,loading:d,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:f,readOnly:p,reduceAnimations:y,renderLoading:w=()=>E.jsx("span",{children:"..."}),slideDirection:b,TransitionProps:m,disablePast:v,disableFuture:D,minDate:k,maxDate:x,shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,dayOfWeekFormatter:I=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:F,onFocusedViewChange:z,gridLabelId:R,displayWeekNumber:$,fixedWeekNumber:K,autoFocus:G,timezone:q}=t,Y=Oc(q),H=uj(t),ae=to(),A=Tb({shouldDisableDate:S,shouldDisableMonth:C,shouldDisableYear:O,minDate:k,maxDate:x,disablePast:v,disableFuture:D,timezone:q}),M=lr(),[L,B]=ho({name:"DayCalendar",state:"hasFocus",controlled:F,default:G??!1}),[ne,oe]=T.useState(()=>l||Y),se=Te(pe=>{p||u(pe)}),j=pe=>{A(pe)||(o(pe),oe(pe),z?.(!0),B(!0))},ee=Te((pe,be)=>{switch(pe.key){case"ArrowUp":j(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":j(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const ge=n.addDays(be,ae?1:-1),Re=n.addMonths(be,ae?1:-1),Ve=Fi({utils:n,date:ge,minDate:ae?ge:n.startOfMonth(Re),maxDate:ae?n.endOfMonth(Re):ge,isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"ArrowRight":{const ge=n.addDays(be,ae?-1:1),Re=n.addMonths(be,ae?-1:1),Ve=Fi({utils:n,date:ge,minDate:ae?n.startOfMonth(Re):ge,maxDate:ae?ge:n.endOfMonth(Re),isDateDisabled:A,timezone:q});j(Ve||ge),pe.preventDefault();break}case"Home":j(n.startOfWeek(be)),pe.preventDefault();break;case"End":j(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":j(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":j(n.addMonths(be,-1)),pe.preventDefault();break}}),J=Te((pe,be)=>j(be)),te=Te((pe,be)=>{L&&n.isSameDay(ne,be)&&z?.(!1)}),ce=n.getMonth(i),le=n.getYear(i),he=T.useMemo(()=>a.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,a]),W=`${le}-${ce}`,re=T.useMemo(()=>T.createRef(),[W]),Z=T.useMemo(()=>{const pe=n.startOfMonth(i),be=n.endOfMonth(i);return A(ne)||n.isAfterDay(ne,be)||n.isBeforeDay(ne,pe)?Fi({utils:n,date:ne,minDate:pe,maxDate:be,disablePast:v,disableFuture:D,isDateDisabled:A,timezone:q}):ne},[i,D,v,ne,A,n,q]),fe=T.useMemo(()=>{const pe=n.getWeekArray(i);let be=n.addMonths(i,1);for(;K&&pe.length<K;){const ge=n.getWeekArray(be),Re=n.isSameDay(pe[pe.length-1][0],ge[0][0]);ge.slice(Re?1:0).forEach(Ve=>{pe.length<K&&pe.push(Ve)}),be=n.addMonths(be,1)}return pe},[i,K,n]);return E.jsxs(hj,{role:"grid","aria-labelledby":R,className:H.root,children:[E.jsxs(fj,{role:"row",className:H.header,children:[$&&E.jsx(mj,{variant:"caption",role:"columnheader","aria-label":M.calendarWeekNumberHeaderLabel,className:H.weekNumberLabel,children:M.calendarWeekNumberHeaderText}),hL(n,Y).map((pe,be)=>E.jsx(pj,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:H.weekDayLabel,children:I(pe)},be.toString()))]}),d?E.jsx(yj,{className:H.loadingContainer,children:w()}):E.jsx(vj,Q({transKey:W,onExited:f,reduceAnimations:y,slideDirection:b,className:Se(r,H.slideTransition)},m,{nodeRef:re,children:E.jsx(bj,{ref:re,role:"rowgroup",className:H.monthContainer,children:fe.map((pe,be)=>E.jsxs(wj,{role:"row",className:H.weekContainer,"aria-rowindex":be+1,children:[$&&E.jsx(gj,{className:H.weekNumber,role:"rowheader","aria-label":M.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:M.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((ge,Re)=>E.jsx(Cj,{parentProps:t,day:ge,selectedDays:he,focusableDay:Z,onKeyDown:ee,onFocus:J,onBlur:te,onDaySelect:se,isDateDisabled:A,currentMonthNumber:ce,isViewFocused:L,"aria-colindex":Re+1},ge.toString()))]},`week-${pe[0]}`))})}))]})}function _j(e){return Me("MuiPickersMonth",e)}const nl=Pe("MuiPickersMonth",["root","monthButton","disabled","selected"]),xj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],Rj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},_j,o)},Tj=ie("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),kj=ie("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${nl.disabled}`]:t.disabled},{[`&.${nl.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${nl.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${nl.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Ej=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersMonth"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,"aria-label":m,slots:v,slotProps:D}=n,k=Ye(n,xj),x=T.useRef(null),S=Rj(n);ln(()=>{o&&x.current?.focus()},[o]);const C=v?.monthButton??kj,O=pt({elementType:C,externalSlotProps:D?.monthButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:x,type:"button",role:"radio","aria-current":b,"aria-checked":l,"aria-label":m,onClick:I=>f(I,d),onKeyDown:I=>p(I,d),onFocus:I=>y(I,d),onBlur:I=>w(I,d)},ownerState:n,className:S.monthButton});return E.jsx(Tj,Q({className:Se(S.root,r),ownerState:n},k,{children:E.jsx(C,Q({},O))}))});function Pj(e){return Me("MuiMonthCalendar",e)}Pe("MuiMonthCalendar",["root"]);const Dj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],Oj=e=>{const{classes:t}=e;return Ie({root:["root"]},Pj,t)};function Mj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},r,{minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const Ij=ie("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Ic,boxSizing:"border-box"}),Mb=T.forwardRef(function(t,n){const o=Mj(t,"MuiMonthCalendar"),{className:r,value:i,defaultValue:a,referenceDate:l,disabled:d,disableFuture:u,disablePast:f,maxDate:p,minDate:y,onChange:w,shouldDisableMonth:b,readOnly:m,autoFocus:v=!1,onMonthFocus:D,hasFocus:k,onFocusedViewChange:x,monthsPerRow:S=3,timezone:C,gridLabelId:O,slots:I,slotProps:F}=o,z=Ye(o,Dj),{value:R,handleValueChange:$,timezone:K}=Bh({name:"MonthCalendar",timezone:C,value:i,defaultValue:a,onChange:w,valueManager:No}),G=Oc(K),q=to(),Y=Ft(),H=T.useMemo(()=>No.getInitialReferenceValue({value:R,utils:Y,props:o,timezone:K,referenceDate:l,granularity:xo.month}),[]),ae=o,A=Oj(ae),M=T.useMemo(()=>Y.getMonth(G),[Y,G]),L=T.useMemo(()=>R!=null?Y.getMonth(R):null,[R,Y]),[B,ne]=T.useState(()=>L||Y.getMonth(H)),[oe,se]=ho({name:"MonthCalendar",state:"hasFocus",controlled:k,default:v??!1}),j=Te(W=>{se(W),x&&x(W)}),ee=T.useCallback(W=>{const re=Y.startOfMonth(f&&Y.isAfter(G,y)?G:y),Z=Y.startOfMonth(u&&Y.isBefore(G,p)?G:p),fe=Y.startOfMonth(W);return Y.isBefore(fe,re)||Y.isAfter(fe,Z)?!0:b?b(fe):!1},[u,f,p,y,G,b,Y]),J=Te((W,re)=>{if(m)return;const Z=Y.setMonth(R??H,re);$(Z)}),te=Te(W=>{ee(Y.setMonth(R??H,W))||(ne(W),j(!0),D&&D(W))});T.useEffect(()=>{ne(W=>L!==null&&W!==L?L:W)},[L]);const ce=Te((W,re)=>{switch(W.key){case"ArrowUp":te((12+re-3)%12),W.preventDefault();break;case"ArrowDown":te((12+re+3)%12),W.preventDefault();break;case"ArrowLeft":te((12+re+(q?1:-1))%12),W.preventDefault();break;case"ArrowRight":te((12+re+(q?-1:1))%12),W.preventDefault();break}}),le=Te((W,re)=>{te(re)}),he=Te((W,re)=>{B===re&&j(!1)});return E.jsx(Ij,Q({ref:n,className:Se(A.root,r),ownerState:ae,role:"radiogroup","aria-labelledby":O},z,{children:Ah(Y,R??H).map(W=>{const re=Y.getMonth(W),Z=Y.format(W,"monthShort"),fe=Y.format(W,"month"),pe=re===L,be=d||ee(W);return E.jsx(Ej,{selected:pe,value:re,onClick:J,onKeyDown:ce,autoFocus:oe&&re===B,disabled:be,tabIndex:re===B&&!be?0:-1,onFocus:le,onBlur:he,"aria-current":M===re?"date":void 0,"aria-label":fe,monthsPerRow:S,slots:I,slotProps:F,children:Z},Z)})}))});process.env.NODE_ENV!=="production"&&(Mb.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableMonth:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object});function Nj(e){return Me("MuiPickersYear",e)}const ol=Pe("MuiPickersYear",["root","yearButton","selected","disabled"]),Aj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Fj=e=>{const{disabled:t,selected:n,classes:o}=e;return Ie({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Nj,o)},Lj=ie("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),$j=ie("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${ol.disabled}`]:t.disabled},{[`&.${ol.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:tt(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:tt(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${ol.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Vj=T.memo(function(t){const n=Nt({props:t,name:"MuiPickersYear"}),{autoFocus:o,className:r,children:i,disabled:a,selected:l,value:d,tabIndex:u,onClick:f,onKeyDown:p,onFocus:y,onBlur:w,"aria-current":b,slots:m,slotProps:v}=n,D=Ye(n,Aj),k=T.useRef(null),x=Fj(n);ln(()=>{o&&k.current?.focus()},[o]);const S=m?.yearButton??$j,C=pt({elementType:S,externalSlotProps:v?.yearButton,additionalProps:{children:i,disabled:a,tabIndex:u,ref:k,type:"button",role:"radio","aria-current":b,"aria-checked":l,onClick:O=>f(O,d),onKeyDown:O=>p(O,d),onFocus:O=>y(O,d),onBlur:O=>w(O,d)},ownerState:n,className:x.yearButton});return E.jsx(Lj,Q({className:Se(x.root,r),ownerState:n},D,{children:E.jsx(S,Q({},C))}))});function jj(e){return Me("MuiYearCalendar",e)}Pe("MuiYearCalendar",["root"]);const Bj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],Wj=e=>{const{classes:t}=e;return Ie({root:["root"]},jj,t)};function Hj(e,t){const n=Ft(),o=_a(),r=Nt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},r,{yearsPerRow:r.yearsPerRow??3,minDate:Jn(n,r.minDate,o.minDate),maxDate:Jn(n,r.maxDate,o.maxDate)})}const zj=ie("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Ic,maxHeight:S$,boxSizing:"border-box",position:"relative"}),Ib=T.forwardRef(function(t,n){const o=Hj(t,"MuiYearCalendar"),{autoFocus:r,className:i,value:a,defaultValue:l,referenceDate:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onChange:b,readOnly:m,shouldDisableYear:v,onYearFocus:D,hasFocus:k,onFocusedViewChange:x,yearsOrder:S="asc",yearsPerRow:C,timezone:O,gridLabelId:I,slots:F,slotProps:z}=o,R=Ye(o,Bj),{value:$,handleValueChange:K,timezone:G}=Bh({name:"YearCalendar",timezone:O,value:a,defaultValue:l,onChange:b,valueManager:No}),q=Oc(G),Y=to(),H=Ft(),ae=T.useMemo(()=>No.getInitialReferenceValue({value:$,utils:H,props:o,timezone:G,referenceDate:d,granularity:xo.year}),[]),A=o,M=Wj(A),L=T.useMemo(()=>H.getYear(q),[H,q]),B=T.useMemo(()=>$!=null?H.getYear($):null,[$,H]),[ne,oe]=T.useState(()=>B||H.getYear(ae)),[se,j]=ho({name:"YearCalendar",state:"hasFocus",controlled:k,default:r??!1}),ee=Te(ge=>{j(ge),x&&x(ge)}),J=T.useCallback(ge=>{if(p&&H.isBeforeYear(ge,q)||f&&H.isAfterYear(ge,q)||w&&H.isBeforeYear(ge,w)||y&&H.isAfterYear(ge,y))return!0;if(!v)return!1;const Re=H.startOfYear(ge);return v(Re)},[f,p,y,w,q,v,H]),te=Te((ge,Re)=>{if(m)return;const Ve=H.setYear($??ae,Re);K(Ve)}),ce=Te(ge=>{J(H.setYear($??ae,ge))||(oe(ge),ee(!0),D?.(ge))});T.useEffect(()=>{oe(ge=>B!==null&&ge!==B?B:ge)},[B]);const le=S!=="desc"?C*1:C*-1,he=Y&&S==="asc"||!Y&&S==="desc"?-1:1,W=Te((ge,Re)=>{switch(ge.key){case"ArrowUp":ce(Re-le),ge.preventDefault();break;case"ArrowDown":ce(Re+le),ge.preventDefault();break;case"ArrowLeft":ce(Re-he),ge.preventDefault();break;case"ArrowRight":ce(Re+he),ge.preventDefault();break}}),re=Te((ge,Re)=>{ce(Re)}),Z=Te((ge,Re)=>{ne===Re&&ee(!1)}),fe=T.useRef(null),pe=ct(n,fe);T.useEffect(()=>{if(r||fe.current===null)return;const ge=fe.current.querySelector('[tabindex="0"]');if(!ge)return;const Re=ge.offsetHeight,Ve=ge.offsetTop,Ne=fe.current.clientHeight,Je=fe.current.scrollTop,ke=Ve+Re;Re>Ne||Ve<Je||(fe.current.scrollTop=ke-Ne/2-Re/2)},[r]);const be=H.getYearRange([w,y]);return S==="desc"&&be.reverse(),E.jsx(zj,Q({ref:pe,className:Se(M.root,i),ownerState:A,role:"radiogroup","aria-labelledby":I},R,{children:be.map(ge=>{const Re=H.getYear(ge),Ve=Re===B,Ne=u||J(ge);return E.jsx(Vj,{selected:Ve,value:Re,onClick:te,onKeyDown:W,autoFocus:se&&Re===ne,disabled:Ne,tabIndex:Re===ne&&!Ne?0:-1,onFocus:re,onBlur:Z,"aria-current":L===Re?"date":void 0,yearsPerRow:C,slots:F,slotProps:z,children:H.format(ge,"year")},H.format(ge,"year"))})}))});process.env.NODE_ENV!=="production"&&(Ib.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,gridLabelId:s.string,hasFocus:s.bool,maxDate:s.object,minDate:s.object,onChange:s.func,onFocusedViewChange:s.func,onYearFocus:s.func,readOnly:s.bool,referenceDate:s.object,shouldDisableYear:s.func,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Yj=e=>Me("MuiPickersCalendarHeader",e),Uj=Pe("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function qj(e){return Me("MuiPickersArrowSwitcher",e)}Pe("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Gj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Kj=["ownerState"],Xj=["ownerState"],Zj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Qj=ie("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Zm=ie(Us,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Jj=e=>{const{classes:t}=e;return Ie({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},qj,t)},eB=T.forwardRef(function(t,n){const o=to(),r=Nt({props:t,name:"MuiPickersArrowSwitcher"}),{children:i,className:a,slots:l,slotProps:d,isNextDisabled:u,isNextHidden:f,onGoToNext:p,nextLabel:y,isPreviousDisabled:w,isPreviousHidden:b,onGoToPrevious:m,previousLabel:v,labelId:D}=r,k=Ye(r,Gj),x=r,S=Jj(x),C={isDisabled:u,isHidden:f,goTo:p,label:y},O={isDisabled:w,isHidden:b,goTo:m,label:v},I=l?.previousIconButton??Zm,F=pt({elementType:I,externalSlotProps:d?.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},x,{hidden:O.isHidden}),className:Se(S.button,S.previousIconButton)}),z=l?.nextIconButton??Zm,R=pt({elementType:z,externalSlotProps:d?.nextIconButton,additionalProps:{size:"medium",title:C.label,"aria-label":C.label,disabled:C.isDisabled,edge:"start",onClick:C.goTo},ownerState:Q({},x,{hidden:C.isHidden}),className:Se(S.button,S.nextIconButton)}),$=l?.leftArrowIcon??L$,K=pt({elementType:$,externalSlotProps:d?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.leftArrowIcon}),G=Ye(K,Kj),q=l?.rightArrowIcon??$$,Y=pt({elementType:q,externalSlotProps:d?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:x,className:S.rightArrowIcon}),H=Ye(Y,Xj);return E.jsxs(Zj,Q({ref:n,className:Se(S.root,a),ownerState:x},k,{children:[E.jsx(I,Q({},F,{children:o?E.jsx(q,Q({},H)):E.jsx($,Q({},G))})),i?E.jsx(bn,{variant:"subtitle1",component:"span",id:D,children:i}):E.jsx(Qj,{className:S.spacer,ownerState:x}),E.jsx(z,Q({},R,{children:o?E.jsx($,Q({},G)):E.jsx(q,Q({},H))}))]}))});function tB(e,{disableFuture:t,maxDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isBefore(i,n)?i:n);return!r.isAfter(a,e)},[t,n,e,r,o])}function nB(e,{disablePast:t,minDate:n,timezone:o}){const r=Ft();return T.useMemo(()=>{const i=r.date(void 0,o),a=r.startOfMonth(t&&r.isAfter(i,n)?i:n);return!r.isBefore(a,e)},[t,n,e,r,o])}const oB=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],rB=["ownerState"],sB=e=>{const{classes:t}=e;return Ie({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Yj,t)},iB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),aB=ie("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),lB=ie("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),cB=ie(Us,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Uj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),dB=ie(F$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Nb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=Nt({props:t,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:l,currentMonth:d,disabled:u,disableFuture:f,disablePast:p,maxDate:y,minDate:w,onMonthChange:b,onViewChange:m,view:v,reduceAnimations:D,views:k,labelId:x,className:S,timezone:C,format:O=`${r.formats.month} ${r.formats.year}`}=i,I=Ye(i,oB),F=i,z=sB(i),R=a?.switchViewButton??cB,$=pt({elementType:R,externalSlotProps:l?.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(v)},ownerState:F,className:z.switchViewButton}),K=a?.switchViewIcon??dB,G=pt({elementType:K,externalSlotProps:l?.switchViewIcon,ownerState:F,className:z.switchViewIcon}),q=Ye(G,rB),Y=()=>b(r.addMonths(d,1),"left"),H=()=>b(r.addMonths(d,-1),"right"),ae=tB(d,{disableFuture:f,maxDate:y,timezone:C}),A=nB(d,{disablePast:p,minDate:w,timezone:C}),M=()=>{if(!(k.length===1||!m||u))if(k.length===2)m(k.find(B=>B!==v)||k[0]);else{const B=k.indexOf(v)!==0?0:1;m(k[B])}};if(k.length===1&&k[0]==="year")return null;const L=r.formatByString(d,O);return E.jsxs(iB,Q({},I,{ownerState:F,className:Se(z.root,S),ref:n,children:[E.jsxs(aB,{role:"presentation",onClick:M,ownerState:F,"aria-live":"polite",className:z.labelContainer,children:[E.jsx(kb,{reduceAnimations:D,transKey:L,children:E.jsx(lB,{id:x,ownerState:F,className:z.label,children:L})}),k.length>1&&!u&&E.jsx(R,Q({},$,{children:E.jsx(K,Q({},q))}))]}),E.jsx(Gr,{in:v==="day",children:E.jsx(eB,{slots:a,slotProps:l,onGoToPrevious:H,isPreviousDisabled:A,previousLabel:o.previousMonth,onGoToNext:Y,isNextDisabled:ae,nextLabel:o.nextMonth})})]}))});process.env.NODE_ENV!=="production"&&(Nb.propTypes={classes:s.object,className:s.string,currentMonth:s.object.isRequired,disabled:s.bool,disableFuture:s.bool,disablePast:s.bool,format:s.string,labelId:s.string,maxDate:s.object.isRequired,minDate:s.object.isRequired,onMonthChange:s.func.isRequired,onViewChange:s.func,reduceAnimations:s.bool.isRequired,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string.isRequired,view:s.oneOf(["day","month","year"]).isRequired,views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired).isRequired});const uB=ie("div")({overflow:"hidden",width:Ic,maxHeight:Wh,display:"flex",flexDirection:"column",margin:"0 auto"}),hB=e=>Me("MuiDateCalendar",e);Pe("MuiDateCalendar",["root","viewTransitionContainer"]);const fB=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],pB=e=>{const{classes:t}=e;return Ie({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},hB,t)};function mB(e,t){const n=Ft(),o=_a(),r=hb(),i=Nt({props:e,name:t});return Q({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??r,renderLoading:i.renderLoading??(()=>E.jsx("span",{children:"..."})),minDate:Jn(n,i.minDate,o.minDate),maxDate:Jn(n,i.maxDate,o.maxDate)})}const gB=ie(uB,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:Wh}),yB=ie(kb,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),Ab=T.forwardRef(function(t,n){const o=Ft(),r=sr(),i=mB(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:l,value:d,defaultValue:u,referenceDate:f,disableFuture:p,disablePast:y,onChange:w,onYearChange:b,onMonthChange:m,reduceAnimations:v,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,view:S,views:C,openTo:O,className:I,disabled:F,readOnly:z,minDate:R,maxDate:$,disableHighlightToday:K,focusedView:G,onFocusedViewChange:q,showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,slots:A,slotProps:M,loading:L,renderLoading:B,displayWeekNumber:ne,yearsOrder:oe,yearsPerRow:se,monthsPerRow:j,timezone:ee}=i,J=Ye(i,fB),{value:te,handleValueChange:ce,timezone:le}=Bh({name:"DateCalendar",timezone:ee,value:d,defaultValue:u,onChange:w,valueManager:No}),{view:he,setView:W,focusedView:re,setFocusedView:Z,goToNextView:fe,setValueAndGoToNextView:pe}=fb({view:S,views:C,openTo:O,onChange:ce,onViewChange:l,autoFocus:a,focusedView:G,onFocusedViewChange:q}),{referenceDate:be,calendarState:ge,changeFocusedDay:Re,changeMonth:Ve,handleChangeMonth:Ne,isDateDisabled:Je,onMonthSwitchingAnimationEnd:ke}=qV({value:te,referenceDate:f,reduceAnimations:v,onMonthChange:m,minDate:R,maxDate:$,shouldDisableDate:D,disablePast:y,disableFuture:p,timezone:le}),ut=F&&te||R,Yt=F&&te||$,rt=`${r}-grid-label`,Ot=re!==null,Ut=A?.calendarHeader??Nb,Lt=pt({elementType:Ut,externalSlotProps:M?.calendarHeader,additionalProps:{views:C,view:he,currentMonth:ge.currentMonth,onViewChange:W,onMonthChange:(at,Zt)=>Ne({newMonth:at,direction:Zt}),minDate:ut,maxDate:Yt,disabled:F,disablePast:y,disableFuture:p,reduceAnimations:v,timezone:le,labelId:rt},ownerState:i}),Ue=Te(at=>{const Zt=o.startOfMonth(at),pn=o.endOfMonth(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),m?.(Zt)):(fe(),Ve(Zt)),Re(Qt,!0)}),Be=Te(at=>{const Zt=o.startOfYear(at),pn=o.endOfYear(at),Qt=Je(at)?Fi({utils:o,date:at,minDate:o.isBefore(R,Zt)?Zt:R,maxDate:o.isAfter($,pn)?pn:$,disablePast:y,disableFuture:p,isDateDisabled:Je,timezone:le}):at;Qt?(pe(Qt,"finish"),b?.(Qt)):(fe(),Ve(Zt)),Re(Qt,!0)}),rn=Te(at=>ce(at&&Fl(o,at,te??be),"finish",he));T.useEffect(()=>{te!=null&&o.isValid(te)&&Ve(te)},[te]);const dn=i,Oe=pB(dn),We={disablePast:y,disableFuture:p,maxDate:$,minDate:R},ht={disableHighlightToday:K,readOnly:z,disabled:F,timezone:le,gridLabelId:rt,slots:A,slotProps:M},nn=T.useRef(he);T.useEffect(()=>{nn.current!==he&&(re===nn.current&&Z(he,!0),nn.current=he)},[re,Z,he]);const An=T.useMemo(()=>[te],[te]);return E.jsxs(gB,Q({ref:n,className:Se(Oe.root,I),ownerState:dn},J,{children:[E.jsx(Ut,Q({},Lt,{slots:A,slotProps:M})),E.jsx(yB,{reduceAnimations:v,className:Oe.viewTransitionContainer,transKey:he,ownerState:dn,children:E.jsxs("div",{children:[he==="year"&&E.jsx(Ib,Q({},We,ht,{value:te,onChange:Be,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("year",at),yearsOrder:oe,yearsPerRow:se,referenceDate:be})),he==="month"&&E.jsx(Mb,Q({},We,ht,{hasFocus:Ot,className:I,value:te,onChange:Ue,shouldDisableMonth:k,onFocusedViewChange:at=>Z("month",at),monthsPerRow:j,referenceDate:be})),he==="day"&&E.jsx(Sj,Q({},ge,We,ht,{onMonthSwitchingAnimationEnd:ke,onFocusedDayChange:Re,reduceAnimations:v,selectedDays:An,onSelectedDaysChange:rn,shouldDisableDate:D,shouldDisableMonth:k,shouldDisableYear:x,hasFocus:Ot,onFocusedViewChange:at=>Z("day",at),showDaysOutsideCurrentMonth:Y,fixedWeekNumber:H,dayOfWeekFormatter:ae,displayWeekNumber:ne,loading:L,renderLoading:B}))]})})]}))});process.env.NODE_ENV!=="production"&&(Ab.propTypes={autoFocus:s.bool,classes:s.object,className:s.string,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,fixedWeekNumber:s.number,focusedView:s.oneOf(["day","month","year"]),loading:s.bool,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),onChange:s.func,onFocusedViewChange:s.func,onMonthChange:s.func,onViewChange:s.func,onYearChange:s.func,openTo:s.oneOf(["day","month","year"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const Os=({view:e,onViewChange:t,views:n,focusedView:o,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B})=>E.jsx(Ab,{view:e,onViewChange:t,views:n.filter(Fm),focusedView:o&&Fm(o)?o:null,onFocusedViewChange:r,value:i,defaultValue:a,referenceDate:l,onChange:d,className:u,classes:f,disableFuture:p,disablePast:y,minDate:w,maxDate:b,shouldDisableDate:m,shouldDisableMonth:v,shouldDisableYear:D,reduceAnimations:k,onMonthChange:x,monthsPerRow:S,onYearChange:C,yearsOrder:O,yearsPerRow:I,slots:F,slotProps:z,loading:R,renderLoading:$,disableHighlightToday:K,readOnly:G,disabled:q,showDaysOutsideCurrentMonth:Y,dayOfWeekFormatter:H,sx:ae,autoFocus:A,fixedWeekNumber:M,displayWeekNumber:L,timezone:B}),Fb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=lb(t,"MuiDesktopDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Fh(r,i,!1),yearsPerRow:i.yearsPerRow??4,slots:Q({openPickerIcon:V$,field:Gh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},nc(i.slotProps?.field,u),db(i),{ref:n}),toolbar:Q({hidden:!0},i.slotProps?.toolbar)})}),{renderPicker:d}=A$({props:l,valueManager:No,valueType:"date",getOpenDialogAriaText:sb({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Fb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const vB=ie(qu)({[`& .${Ii.container}`]:{outline:0},[`& .${Ii.paper}`]:{outline:0,minWidth:Ic}}),bB=ie(Ku)({"&:first-of-type":{padding:0}});function wB(e){const{children:t,onDismiss:n,open:o,slots:r,slotProps:i}=e,a=r?.dialog??vB,l=r?.mobileTransition??Gr;return E.jsx(a,Q({open:o,onClose:n},i?.dialog,{TransitionComponent:l,TransitionProps:i?.mobileTransition,PaperComponent:r?.mobilePaper,PaperProps:i?.mobilePaper,children:E.jsx(bB,{children:t})}))}const CB=["props","getOpenDialogAriaText"],SB=e=>{let{props:t,getOpenDialogAriaText:n}=e,o=Ye(e,CB);const{slots:r,slotProps:i,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,name:b,label:m,inputRef:v,readOnly:D,disabled:k,localeText:x}=t,S=T.useRef(null),C=sr(),O=i?.toolbar?.hidden??!1,{open:I,actions:F,layoutProps:z,renderCurrentView:R,fieldProps:$,contextValue:K}=pb(Q({},o,{props:t,fieldRef:S,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),G=r.field,q=pt({elementType:G,externalSlotProps:i?.field,additionalProps:Q({},$,O&&{id:C},!(k||D)&&{onClick:F.onOpen,onKeyDown:QL(F.onOpen)},{readOnly:D??!0,disabled:k,className:a,sx:l,format:d,formatDensity:u,enableAccessibleFieldDOMStructure:f,selectedSections:p,onSelectedSectionsChange:y,timezone:w,label:m,name:b},v?{inputRef:v}:{}),ownerState:t});q.inputProps=Q({},q.inputProps,{"aria-label":n($.value)});const Y=Q({textField:r.textField},q.slots),H=r.layout??Hh;let ae=C;O&&(m?ae=`${C}-label`:ae=void 0);const A=Q({},i,{toolbar:Q({},i?.toolbar,{titleId:C}),mobilePaper:Q({"aria-labelledby":ae},i?.mobilePaper)}),M=ct(S,q.unstableFieldRef);return{renderPicker:()=>E.jsxs(vb,{contextValue:K,localeText:x,children:[E.jsx(G,Q({},q,{slots:Y,slotProps:A,unstableFieldRef:M})),E.jsx(wB,Q({},F,{open:I,slots:r,slotProps:A,children:E.jsx(H,Q({},z,A?.layout,{slots:r,slotProps:A,children:R()}))}))]})}},Lb=T.forwardRef(function(t,n){const o=lr(),r=Ft(),i=lb(t,"MuiMobileDatePicker"),a=Q({day:Os,month:Os,year:Os},i.viewRenderers),l=Q({},i,{viewRenderers:a,format:Fh(r,i,!1),slots:Q({field:Gh},i.slots),slotProps:Q({},i.slotProps,{field:u=>Q({},nc(i.slotProps?.field,u),db(i),{ref:n}),toolbar:Q({hidden:!1},i.slotProps?.toolbar)})}),{renderPicker:d}=SB({props:l,valueManager:No,valueType:"date",getOpenDialogAriaText:sb({utils:r,formatKey:"fullDate",contextTranslation:o.openDatePickerDialogue,propsTranslation:l.localeText?.openDatePickerDialogue}),validator:xa});return d()});Lb.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])};const _B=["desktopModeMediaQuery"],$l=T.forwardRef(function(t,n){const o=Nt({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:r=JL}=o,i=Ye(o,_B);return Fg(r,{defaultMatches:!0})?E.jsx(Fb,Q({ref:n},i)):E.jsx(Lb,Q({ref:n},i))});process.env.NODE_ENV!=="production"&&($l.propTypes={autoFocus:s.bool,className:s.string,closeOnSelect:s.bool,dayOfWeekFormatter:s.func,defaultValue:s.object,desktopModeMediaQuery:s.string,disabled:s.bool,disableFuture:s.bool,disableHighlightToday:s.bool,disableOpenPicker:s.bool,disablePast:s.bool,displayWeekNumber:s.bool,enableAccessibleFieldDOMStructure:s.any,fixedWeekNumber:s.number,format:s.string,formatDensity:s.oneOf(["dense","spacious"]),inputRef:zt,label:s.node,loading:s.bool,localeText:s.object,maxDate:s.object,minDate:s.object,monthsPerRow:s.oneOf([3,4]),name:s.string,onAccept:s.func,onChange:s.func,onClose:s.func,onError:s.func,onMonthChange:s.func,onOpen:s.func,onSelectedSectionsChange:s.func,onViewChange:s.func,onYearChange:s.func,open:s.bool,openTo:s.oneOf(["day","month","year"]),orientation:s.oneOf(["landscape","portrait"]),readOnly:s.bool,reduceAnimations:s.bool,referenceDate:s.object,renderLoading:s.func,selectedSections:s.oneOfType([s.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),s.number]),shouldDisableDate:s.func,shouldDisableMonth:s.func,shouldDisableYear:s.func,showDaysOutsideCurrentMonth:s.bool,slotProps:s.object,slots:s.object,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),timezone:s.string,value:s.object,view:s.oneOf(["day","month","year"]),viewRenderers:s.shape({day:s.func,month:s.func,year:s.func}),views:s.arrayOf(s.oneOf(["day","month","year"]).isRequired),yearsOrder:s.oneOf(["asc","desc"]),yearsPerRow:s.oneOf([3,4])});const vu=ie(oo)({"& label[data-shrink=false]":{top:"-5px",fontSize:"14px"},"& .MuiOutlinedInput-root":{height:"40px"}}),xB=({setValue:e,value:t})=>{function n(r){const i=r?.format(Yr.db)||"",a={...t,1:i===fu?js[1]:i};e(a),rr(a)}function o(r){const i=r?.format(Yr.db)||"",a={...t,2:i===fu?js[2]:i};e(a),rr(a)}return E.jsxs(Dc,{dateAdapter:Qv,children:[E.jsx(vu,{children:E.jsx($l,{label:lo.from,onChange:n,...gu(t[1])})}),E.jsx(vu,{children:E.jsx($l,{label:lo.to,onChange:o,...gu(t[2])})})]})},jd=({label:e,setValue:t,value:n})=>{function o(r){const i=r?.format(Yr.db)||"",a={...n,1:i===fu?js[1]:i};t(a),rr(a)}return E.jsx(Dc,{dateAdapter:Qv,children:E.jsx(vu,{children:E.jsx($l,{label:e,onChange:o,...gu(n[1])})})})},Qm={label:"",options:[]};function RB(){const{columnId:e,table:t}=Rn,n=t?.grid;if(!n)return Qm;const o=n?.getColumns().find(({id:p})=>p===e);if(!o)return Qm;const r=o.name,i=[],{formatter:a,id:l}=o,d=n.getData(),u=new Set;d.getItems().forEach(p=>{u.add(a?a(0,0,p[l],o,null,n):p[l])});for(const p of u)i.push(p);return{label:r,options:i}}function TB(e,t){return typeof e=="string"&&typeof t=="string"?e.localeCompare(t):typeof e=="number"&&typeof t=="number"?e-t:0}const kB=ie(hc)({padding:0}),Jm={Checkbox:kB},EB=({setValue:e,value:t})=>{const n=JSON.parse(t[1]||'["All"]'),{label:o,options:r}=RB(),i=a=>{const l=a.target.value;let d;l[l.length-1]==="All"||!l.length?d={1:"",2:""}:(l.length>1&&l[0]==="All"&&l.shift(),d={...t,1:JSON.stringify(l)}),e(d),rr(d)};return E.jsxs(pa,{size:"small",children:[E.jsx(ma,{id:"column-filter-multiple-select-label",children:o}),E.jsxs(ga,{labelId:"column-filter-multiple-select-label",id:"column-filter-multiple-select",multiple:!0,value:n,onChange:i,input:E.jsx($s,{label:o}),renderValue:a=>a.join(", "),children:[E.jsxs(Pl,{value:"All",children:[E.jsx(Jm.Checkbox,{checked:n.indexOf("All")>-1}),E.jsx(nu,{primary:"All"})]},0),r.sort(TB).map(a=>E.jsxs(Pl,{value:a,children:[E.jsx(Jm.Checkbox,{checked:n.indexOf(a)>-1}),E.jsx(nu,{primary:a})]},a))]})]})},PB=({setValue:e,value:t})=>{function n(r){const i={...t,1:r.target.value};e(i),rr(i)}function o(r){const i={...t,2:r.target.value};e(i),rr(i)}return E.jsxs(Fe.Fragment,{children:[E.jsx(Vs,{label:lo.from,value:t[1],type:"number",onChange:n,size:"small",autoComplete:"off"}),E.jsx(Vs,{label:lo.to,value:t[2],type:"number",onChange:o,size:"small",autoComplete:"off"})]})},Bd=({label:e,setValue:t,value:n})=>{function o(r){const i={...n,1:r.target.value};t(i),rr(i)}return E.jsx(Vs,{label:e,value:n[1],type:"number",onChange:o,size:"small",autoComplete:"off"})},rl=({setValue:e,value:t})=>{function n(o){const r={...t,1:o.target.value};e(r),rr(r)}return E.jsx(Vs,{label:lo.filter,value:t[1],onChange:n,size:"small",autoComplete:"off"})},DB=({filterId:e,setValue:t,value:n})=>E.jsxs(Fe.Fragment,{children:[e===je.Boolean&&E.jsx(sL,{setValue:t,value:n}),e===je.TextEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotEqual&&E.jsx(rl,{setValue:t,value:n}),e===je.TextContain&&E.jsx(rl,{setValue:t,value:n}),e===je.TextNotContain&&E.jsx(rl,{setValue:t,value:n}),e===je.MultipleSelect&&E.jsx(EB,{setValue:t,value:n}),e===je.NumberEqual&&E.jsx(Bd,{label:lo.filter,setValue:t,value:n}),e===je.NumberFrom&&E.jsx(Bd,{label:lo.from,setValue:t,value:n}),e===je.NumberTo&&E.jsx(Bd,{label:lo.to,setValue:t,value:n}),e===je.NumberBetween&&E.jsx(PB,{setValue:t,value:n}),e===je.DateEqual&&E.jsx(jd,{label:lo.filter,setValue:t,value:n}),e===je.DateFrom&&E.jsx(jd,{label:lo.from,setValue:t,value:n}),e===je.DateTo&&E.jsx(jd,{label:lo.to,setValue:t,value:n}),e===je.DateBetween&&E.jsx(xB,{setValue:t,value:n})]}),OB=ie(Pl)({fontSize:"12px"}),eg={MenuItem:OB},MB=({name:e,list:t,onChange:n,defaultValue:o,value:r,showSelect:i=!0,dataTestId:a,width:l="12.8em",height:d,disabled:u=!1})=>E.jsxs(pa,{variant:"outlined",size:"small",children:[E.jsx(ma,{id:"reportType",children:e}),E.jsxs(ga,{labelId:"reportType",id:e,label:e,autoWidth:!0,value:`${r??(o||0)}`,defaultValue:`${o||0}`,onChange:n,disabled:u,"data-testid":a,MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},disableScrollLock:!0},sx:{height:d,width:l},children:[i&&E.jsx(eg.MenuItem,{value:0,id:"Select",children:"Select"}),t.map((f,p)=>E.jsx(eg.MenuItem,{value:f.id,id:"selectedReport",disabled:f.isDisabled,children:f.labelForSelect||f.name},p))]})]}),IB={id:je.DateBetween,name:"Between"},NB={id:je.DateEqual,name:"Equal"},AB={id:je.DateFrom,name:"From"},FB={id:je.DateTo,name:"To"},LB={id:je.NumberBetween,name:"Between"},$B={id:je.NumberEqual,name:"Equal"},VB={id:je.NumberFrom,name:"From"},jB={id:je.NumberTo,name:"To"},BB={id:je.TextContain,name:"Contains"},WB={id:je.TextEqual,name:"Equal"},HB={id:je.TextNotContain,name:"Does not contain"},zB={id:je.TextNotEqual,name:"Not equal"},tg=[$B,VB,jB,LB],YB={[hn.Boolean]:[],[hn.Date]:[NB,AB,FB,IB],[hn.MultipleSelect]:[],[hn.Number]:tg,[hn.NumberFormatted]:tg,[hn.Text]:[BB,HB,WB,zB]},UB=({filterId:e,setFilterId:t})=>{const n=YB[Rn.group],o=n.some(({id:i})=>i===e)?e:n[0]?.id;function r(i){const{columnId:a,table:l}=Rn;if(!a||!l)return;const d=l.filter.args,u=i.target.value;d.columnFilters&&(l.filter.args={...d,columnFilters:{...d.columnFilters,[a]:{...d.columnFilters[a],filterId:u}}},t(u))}return o?E.jsx(MB,{name:"",list:n,onChange:r,width:"100%",showSelect:!1,value:o}):null},qB=ie(oo)({display:"flex",flexDirection:"column",rowGap:"0.5em",width:"12em"}),GB={Wrapper:qB},KB=()=>{const[e,t]=Fe.useState(js),[n,o]=Fe.useState(je.TextContain),[r,i]=Fe.useState(!1);return JF(i),QF(r,o,t),r?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:i}),E.jsx(Nh,{id:Zv,children:E.jsxs(GB.Wrapper,{children:[E.jsx(UB,{filterId:n,setFilterId:o}),E.jsx(DB,{filterId:n,setValue:t,value:e}),E.jsx(nL,{setIsOpened:i,setValue:t,value:e})]})})]}):null},$b="context_menu";function XB(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById($b);if(!n)return;const{x:o,y:r}=wn;Mh(n,o,r)},0)}return wn.subscribe(t),()=>{wn.unsubscribe(t)}},[])}const ZB=ie("ul")({display:"flex",flexDirection:"column",rowGap:"0.5em",margin:"0",paddingLeft:"0.5em"}),QB=ie("li")({display:"flex",alignItems:"center",columnGap:"0.5em",cursor:"pointer","&:hover":{scale:"1.05"}}),JB=ie("span")({backgroundColor:"#1E456F"}),cn={Ul:ZB,Li:QB,Icon:JB},eW=({clientId:e,clientName:t,setIsOpened:n})=>{const o=()=>{const r=wn.table,i=r?.grid;if(!r||!i){n(!1);return}r.downloadManager.download(r,e,t),n(!1)};return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-download"}),"Download as CSV"]})},tW=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!0},e(!1))}return t?.grouping.isGrouped!==!1?null:E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link"}),"Group"]})};function nW(e){return e?Object.values(e.filter.args.columnFilters||{}).some(({value:t})=>t[1]||t[2]):!1}const oW=({setIsOpened:e})=>{const t=wn.table;function n(){if(!t){e(!1);return}const o=t.filter.args;delete o.columnFilters,t.filter.args=o,Io.highlightAllColumns(o,t.id),e(!1)}return nW(t)?E.jsxs(Fe.Fragment,{children:[E.jsx(El,{}),E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-notification-clear-all"}),"Reset column filters"]})]}):null},rW=({setIsOpened:e})=>{const t=wn.table,o=t?.grid?.getSelectedRows();function r(){t&&(e(!1),qo.table=t,qo.open=!0)}return!t?.summaryColumnIds.length||Number(o?.length)<2?null:E.jsxs(cn.Li,{onClick:r,children:[E.jsx(cn.Icon,{className:"sgi sgi-checkbox-multiple-outline"}),"Summary"]})},sW=({setIsOpened:e})=>{const t=wn.table;function n(){t&&(t.grouping={isGrouped:!1},e(!1))}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-link-off"}),"Ungroup"]}):null},iW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().collapseAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-collapse-all-outline"}),"Collapse all groups"]}):null},aW=({setIsOpened:e})=>{function t(){const n=wn.table,o=n?.grid;if(!o||!n){e(!1);return}window.navigator.clipboard.writeText(n.downloadManager.createCSV(n)).then(()=>{}).catch(()=>{}),o.getSelectionModel()&&o.setSelectedRows([]),e(!1)}return E.jsxs(cn.Li,{onClick:t,children:[E.jsx(cn.Icon,{className:"sgi sgi-content-copy"}),"Copy to clipboard"]})},lW=({setIsOpened:e})=>{const t=wn.table;function n(){const o=t?.grid;if(!o)return;o.getData().expandAllGroups(),e(!1)}return t?.grouping.isGrouped?E.jsxs(cn.Li,{onClick:n,children:[E.jsx(cn.Icon,{className:"sgi sgi-expand-all-outline"}),"Expand all groups"]}):null},cW=({clientId:e,clientName:t,setIsOpened:n})=>{function o(){const r=wn.table;r?.printer.print(r,e,t),n(!1)}return E.jsxs(cn.Li,{onClick:o,children:[E.jsx(cn.Icon,{className:"sgi sgi-printer"}),"Print"]})},dW=({clientId:e,clientName:t})=>{const[n,o]=Fe.useState(!1);return XB(o),n?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:o}),E.jsx(Nh,{id:$b,children:E.jsxs(cn.Ul,{children:[E.jsx(cW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(aW,{setIsOpened:o}),E.jsx(eW,{clientId:e,clientName:t,setIsOpened:o}),E.jsx(oW,{setIsOpened:o}),E.jsx(sW,{setIsOpened:o}),E.jsx(tW,{setIsOpened:o}),E.jsx(lW,{setIsOpened:o}),E.jsx(iW,{setIsOpened:o}),E.jsx(rW,{setIsOpened:o})]})})]}):null},Vb="header-context-menu";function uW(e){Fe.useEffect(()=>{function t(){e(!0),setTimeout(()=>{const n=document.getElementById(Vb);if(!n)return;const{x:o,y:r}=uo;Mh(n,o,r)},0)}return uo.subscribe(t),()=>{uo.unsubscribe(t)}},[])}function Kh(e){const t=uo.table;if(!t?.columnPicker)return;t.columnPicker.visibleColumnIds=[...e];const n=t.grid;if(!n)return;n.setColumns(t.columnPicker.initialColumns.filter(({id:r})=>e.includes(r)));const o=t.filter.args;t.filter.register(n,t.id),Io.highlightAllColumns(o,t.id),t.totalCalculator?.calculate(n)}const hW=({setChecked:e})=>{function t(){const n=uo.table;if(!n?.columnPicker)return;const o=n.columnPicker.initialColumns.map(({id:r})=>r);e(o),Kh(o)}return E.jsx(ko,{onClick:t,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Check all"})},fW=({checked:e,setChecked:t})=>{function n(){const o=e.filter(r=>r==="_checkbox_selector"||r==="isEdited");t(o),Kh(o)}return E.jsx(ko,{onClick:n,size:"small",sx:{textTransform:"none"},variant:"contained",children:"Uncheck all"})},pW=ie(ko)({display:"flex",alignItems:"center",justifyContent:"flex-start",columnGap:"0.5em",textTransform:"none",color:"#1E456F",padding:"0"}),mW=ie(hc)({padding:0}),ng={Checkbox:mW,Button:pW},gW=({checked:e,columnId:t,columnName:n,setChecked:o})=>{function r(){const i=e.indexOf(t),a=[...e];~i?a.splice(i,1):a.push(t),o(a),Kh(a)}return E.jsxs(ng.Button,{onClick:r,children:[E.jsx(ng.Checkbox,{checked:e.includes(t),size:"small"}),E.jsx(oo,{children:n})]})},yW=ie(oo)({color:"#1e456f",marginBottom:"0.6em",fontSize:"1rem"}),vW={Wrapper:yW},bW=()=>E.jsx(vW.Wrapper,{className:"header-context-menu-header",children:"Columns"}),wW=ie(oo)({columnGap:"0.5em",display:"flex",justifyContent:"flex-end",marginTop:"0.5em"}),CW=ie(oo)({maxHeight:"35em",overflowY:"auto"}),og={ButtonsGroup:wW,ItemsGroup:CW},SW=()=>{const[e,t]=Fe.useState([]),[n,o]=Fe.useState(!1);if(uW(o),Fe.useEffect(()=>{if(!n)return;const i=uo.table;i?.columnPicker&&t([...i.columnPicker.visibleColumnIds])},[n]),!n)return null;const r=uo.table;return r?.columnPicker?E.jsxs(Fe.Fragment,{children:[E.jsx(Ih,{setIsOpened:o}),E.jsxs(Nh,{id:Vb,children:[E.jsx(bW,{}),E.jsx(og.ItemsGroup,{children:r.columnPicker.initialColumns.filter(({id:i})=>i!=="_checkbox_selector"&&i!=="isEdited").map(({id:i,name:a})=>E.jsx(Fe.Fragment,{children:E.jsx(gW,{checked:e,columnId:i,columnName:a,setChecked:t})},i))}),E.jsxs(og.ButtonsGroup,{className:"header-context-menu-footer",children:[E.jsx(hW,{setChecked:t}),E.jsx(fW,{checked:e,setChecked:t})]})]})]}):null};exports.Autocomplete=_F;exports.BOLD=LD;exports.ColumnFilters=KB;exports.ColumnPicker=DD;exports.ColumnSorter=Kv;exports.ContextMenu=dW;exports.DecoratorColumnFilter=JA;exports.DecoratorFilter=Nv;exports.DefaultHotKeys=ID;exports.DefaultPrinter=Wv;exports.DeletedRowsFilter=BN;exports.EColumnFilter=je;exports.EColumnFiltersGroup=hn;exports.ESortType=Co;exports.FORMATTER_NUMBER=PF;exports.Filter=Iv;exports.HeaderContextMenu=SW;exports.HotKeysDecorator=pc;exports.PopupSummary=YF;exports.PreventCopying=ND;exports.RedoUndoOnly=AD;exports.Skeleton=TD;exports.SlickTable=sF;exports.SlickgridTable=UA;exports.TotalCalculator=FF;exports.WINK=FD;exports.WithSummary=jN;exports.WithoutHotKeys=By;exports.columnCheckboxSelector=qA;exports.columnIsEdited=KA;exports.commitCurrentEdit=Th;exports.copySelectedRows=zv;exports.formatNumber=Oh;exports.formatterGroupTotals=DF;exports.getDisplayedRows=kc;exports.getFormatterNumber=Gv;exports.getNextId=Rh;exports.handleHeaderButtons=Av;exports.headerButtons=Io;exports.hotKeysCopy=Eh;exports.hotKeysDelete=Hv;exports.hotKeysRedo=Ph;exports.hotKeysUndo=Dh;exports.openColumnFilter=HN;exports.openContextMenu=Yv;exports.useListenIfTablesWereEdited=yF;
|