asma-core-ui 2.19.69 → 2.19.71
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/asma-core-ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/asma-core-ui.es.js
CHANGED
|
@@ -42,7 +42,7 @@ import*as e from"react";import t,{Children as n,isValidElement as o,cloneElement
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
function(e,t){const n=de(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,Ie({shouldForwardProp:g,label:m},p)),v=(o,...r)=>{const l=r?r.map((e=>"function"==typeof e&&e.__emotion_real!==e?o=>e(Ie({},o,{theme:Eo(Ie({},o,{defaultTheme:n,themeId:t}))})):e)):[];let u=o;a&&d&&l.push((e=>{const o=Eo(Ie({},e,{defaultTheme:n,themeId:t})),r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,o);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"==typeof r?r(Ie({},e,{theme:o})):r})),d(e,t)}return null})),a&&!f&&l.push((e=>{const o=Eo(Ie({},e,{defaultTheme:n,themeId:t}));return((e,t,n,o)=>{var r,i;const{ownerState:l={}}=e,a=[],s=null==n||null==(r=n.components)||null==(i=r[o])?void 0:i.variants;return s&&s.forEach((n=>{let o=!0;Object.keys(n.props).forEach((t=>{l[t]!==n.props[t]&&e[t]!==n.props[t]&&(o=!1)})),o&&a.push(t[xo(n.props)])})),a})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const o={};return n.forEach((e=>{const t=xo(e.props);o[t]=e.style})),o})(a,o),o,a)})),h||l.push(i);const c=l.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");u=[...o,...e],u.raw=[...o.raw,...e]}else"function"==typeof o&&o.__emotion_real!==o&&(u=e=>o(Ie({},e,{theme:Eo(Ie({},e,{defaultTheme:n,themeId:t}))})));const p=b(u,...l);if("production"!==process.env.NODE_ENV){let t;a&&(t=`${a}${s||""}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yt(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bt.ForwardRef:return wt(e,e.render,"ForwardRef");case bt.Memo:return wt(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return b.withConfig&&(v.withConfig=b.withConfig),v}}const Ro=ko();function To({props:e,name:t,defaultTheme:n,themeId:o}){let r=fo(n);return o&&(r=r[o]||r),function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jt(t.components[n].defaultProps,o):o}({theme:r,name:t,props:e})}function No(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Po(e){if(e.type)return e;if("#"===e.charAt(0))return Po(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:dt(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:dt(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function Mo(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function _o(e){let t="hsl"===(e=Po(e)).type||"hsla"===e.type?Po(function(e){e=Po(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Mo({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jo(e,t){const n=_o(e),o=_o(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Io(e,t){return e=Po(e),t=No(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Mo(e)}function Do(e,t){if(e=Po(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Mo(e)}function Fo(e,t){if(e=Po(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Mo(e)}function Ao(e,t){return Ie({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lo={black:"#000",white:"#fff"},Vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ho={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wo=["mode","contrastThreshold","tonalOffset"],Go={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:Lo.white,default:Lo.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}},Ko={text:{primary:Lo.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:Lo.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}};function Yo(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fo(e.main,r):"dark"===t&&(e.dark=Do(e.main,i)))}function Zo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=De(e,Wo),i=e.primary||function(e="light"){return"dark"===e?{main:zo[200],light:zo[50],dark:zo[400]}:{main:zo[700],light:zo[400],dark:zo[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:qo[500],light:qo[300],dark:qo[700]}:{main:qo[700],light:qo[400],dark:qo[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:"#ed6c02",light:Ho[500],dark:Ho[900]}}(t);function d(e){const t=jo(e,Ko.text.primary)>=n?Ko.text.primary:Go.text.primary;if("production"!==process.env.NODE_ENV){const n=jo(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"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("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=Ie({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:dt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:dt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Yo(e,"light",r,o),Yo(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ko,light:Go};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),it(Ie({common:Ie({},Lo),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Vo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:o},f[t]),r)}const Xo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qo(e){return Math.round(1e5*e)/1e5}const Jo={textTransform:"uppercase"},er='"Roboto", "Helvetica", "Arial", sans-serif';function tr(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=er,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=De(n,Xo);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,r,i)=>Ie({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===er?{letterSpacing:`${Qo(r/t)}em`}:{},i,c),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(l,48,1.167,0),h4:m(l,34,1.235,.25),h5:m(l,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(l,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(l,16,1.5,.15),body2:m(l,14,1.43,.15),button:m(a,14,1.75,.4,Jo),caption:m(l,12,1.66,.4),overline:m(l,12,2.66,1,Jo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return it(Ie({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),p,{clone:!1})}function nr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const or=["none",nr(0,2,1,-1,0,1,1,0,0,1,3,0),nr(0,3,1,-2,0,2,2,0,0,1,5,0),nr(0,3,3,-2,0,3,4,0,0,1,8,0),nr(0,2,4,-1,0,4,5,0,0,1,10,0),nr(0,3,5,-1,0,5,8,0,0,1,14,0),nr(0,3,5,-1,0,6,10,0,0,1,18,0),nr(0,4,5,-2,0,7,10,1,0,2,16,1),nr(0,5,5,-3,0,8,10,1,0,3,14,2),nr(0,5,6,-3,0,9,12,1,0,3,16,2),nr(0,6,6,-3,0,10,14,1,0,4,18,3),nr(0,6,7,-4,0,11,15,1,0,4,20,3),nr(0,7,8,-4,0,12,17,2,0,5,22,4),nr(0,7,8,-4,0,13,19,2,0,5,24,4),nr(0,7,9,-4,0,14,21,2,0,5,26,4),nr(0,8,9,-5,0,15,22,2,0,6,28,5),nr(0,8,10,-5,0,16,24,2,0,6,30,5),nr(0,8,11,-5,0,17,26,2,0,6,32,5),nr(0,9,11,-5,0,18,28,2,0,7,34,6),nr(0,9,12,-6,0,19,29,2,0,7,36,6),nr(0,10,13,-6,0,20,31,3,0,8,38,7),nr(0,10,13,-6,0,21,33,3,0,8,40,7),nr(0,10,14,-6,0,22,35,3,0,8,42,7),nr(0,11,14,-7,0,23,36,3,0,9,44,8),nr(0,11,15,-7,0,24,38,3,0,9,46,8)],rr=["duration","easing","delay"],ir={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ar(e){return`${Math.round(e)}ms`}function sr(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ur(e){const t=Ie({},ir,e.easing),n=Ie({},lr,e.duration);return Ie({getAutoHeightDuration:sr,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0}=o,a=De(o,rr);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(l)&&!t(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(a).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:ar(r)} ${i} ${"string"==typeof l?l:ar(l)}`)).join(",")}},e,{easing:t,duration:n})}const cr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dr=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const pr=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,l=De(e,dr);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":dt(18));const a=Zo(o),s=uo(e);let u=it(s,{mixins:Ao(s.breakpoints,n),palette:a,shadows:or.slice(),typography:tr(a,i),transitions:ur(r),zIndex:Ie({},cr)});if(u=it(u,l),u=t.reduce(((e,t)=>it(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=ln("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=Ie({},io,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return ao({sx:e,theme:this})},u}(),fr=pr,hr="$$material";function mr(){const t=fo(fr);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t[hr]||t}const gr=e=>e.scrollTop;function br(e,t){var n,o;const{timeout:r,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=l.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}const vr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yr={entering:{opacity:1},entered:{opacity:1}},wr=e.forwardRef((function(t,n){const o=mr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=Ke}=t,y=De(t,vr),w=e.useRef(null),x=Ft(w,a.ref,n),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},O=C(p),S=C(((e,t)=>{gr(e);const n=br({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),E=C(d),k=C(m),R=C((e=>{const t=br({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),f&&f(e)})),T=C(h);return Me.jsx(v,Ie({appear:l,in:u,nodeRef:w,onEnter:S,onEntered:E,onEntering:O,onExit:R,onExited:T,onExiting:k,addEndListener:e=>{i&&i(w.current,e)},timeout:b},y,{children:(t,n)=>e.cloneElement(a,Ie({style:Ie({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},yr[t],g,a.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(wr.propTypes={addEndListener:oe.func,appear:oe.bool,children:st.isRequired,easing:oe.oneOfType([oe.shape({enter:oe.string,exit:oe.string}),oe.string]),in:oe.bool,onEnter:oe.func,onEntered:oe.func,onEntering:oe.func,onExit:oe.func,onExited:oe.func,onExiting:oe.func,style:oe.object,timeout:oe.oneOfType([oe.number,oe.shape({appear:oe.number,enter:oe.number,exit:oe.number})])});const xr=wr,Cr=e=>Me.jsx(w,{TransitionComponent:xr,TransitionProps:{timeout:300},arrow:!0,placement:"top",...e}),Or=/^[a-z0-9]+(-[a-z0-9]+)*$/,Sr=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!Er(i)?null:i}const i=r[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!Er(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!Er(e,n)?null:e}return null},Er=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(Or)||!(t&&""===e.prefix||e.prefix.match(Or))||!e.name.match(Or)),kr=Object.freeze({left:0,top:0,width:16,height:16}),Rr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Tr=Object.freeze({...kr,...Rr}),Nr=Object.freeze({...Tr,body:"",hidden:!1});function Pr(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Nr)o in Rr?o in e&&!(o in n)&&(n[o]=Rr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Mr(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(e){i=Pr(o[e]||r[e],i)}return l(t),n.forEach(l),Pr(e,i)}function _r(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,Mr(e,r,i)),n.push(r))}return n}const jr={provider:"",aliases:{},not_found:{},...kr};function Ir(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Dr(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Ir(e,jr))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(Or)||"string"!=typeof t.body||!Ir(t,Nr))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(Or)||"string"!=typeof r||!n[r]&&!o[r]||!Ir(t,Nr))return null}return t}const Fr=Object.create(null);function Ar(e,t){const n=Fr[e]||(Fr[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Lr(e,t){return Dr(t)?_r(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Vr=!1;function $r(e){return"boolean"==typeof e&&(Vr=e),Vr}function qr(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Vr&&!t&&!e.prefix){let t=!1;return Dr(e)&&(e.prefix="",_r(e,((e,n)=>{n&&function(e,t){const n=Sr(e,!0,Vr);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Ar(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!Er({provider:t,prefix:n,name:"a"}))return!1;return!!Lr(Ar(t,n),e)}const Hr=Object.freeze({width:null,height:null}),zr=Object.freeze({...Hr,...Rr}),Br=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ur=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Wr(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(Br);if(null===o||!o.length)return e;const r=[];let i=o.shift(),l=Ur.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");l=!l}}const Gr=/\sid="(\S+)"/g,Kr="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Yr=0;function Zr(e,t=Kr){const n=[];let o;for(;o=Gr.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Yr++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Xr=Object.create(null);function Qr(e){return Xr[e]||Xr[""]}function Jr(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const ei=Object.create(null),ti=["https://api.simplesvg.com","https://api.unisvg.com"],ni=[];for(;ti.length>0;)1===ti.length||Math.random()>.5?ni.push(ti.shift()):ni.push(ti.pop());function oi(e,t){const n=Jr(t);return null!==n&&(ei[e]=n,!0)}function ri(e){return ei[e]}ei[""]=Jr({resources:["https://api.iconify.design"].concat(ni)});let ii=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const li={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ri(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach(((n,s)=>{a+=n.length+1,a>=r&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)})),o.push(l),o},send:(e,t,n)=>{if(!ii)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=ri(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ii(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ai(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let si=0;var ui={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ci(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,u="pending",c=0,d=null,p=[],f=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===u&&(u="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function b(){u="failed",f.forEach((e=>{e(void 0,s)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function y(){if("pending"!==u)return;h();const o=l.shift();if(void 0===o)return p.length?void(d=setTimeout((()=>{h(),"pending"===u&&(v(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(p=p.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void b();if(r)return s=o,void(p.length||(l.length?y():b()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",f.forEach((e=>{e(o)}))}(r,t,n)}};p.push(r),c++,d=setTimeout(y,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&f.push(o),setTimeout(y),function(){return{startTime:a,payload:t,status:u,queriesSent:c,queriesPending:p.length,subscribe:g,abort:m}}}function di(e){const t={...ui,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const l=ci(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(l),l},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function pi(){}const fi=Object.create(null);function hi(e,t,n){let o,r;if("string"==typeof e){const t=Qr(e);if(!t)return n(void 0,424),pi;r=t.send;const i=function(e){if(!fi[e]){const t=ri(e);if(!t)return;const n={config:t,redundancy:di(t)};fi[e]=n}return fi[e]}(e);i&&(o=i.redundancy)}else{const t=Jr(e);if(t){o=di(t);const n=Qr(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),pi)}const mi="iconify2",gi="iconify",bi=gi+"-count",vi=gi+"-version",yi=36e5,wi=168;function xi(e,t){try{return e.getItem(t)}catch{}}function Ci(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oi(e,t){try{e.removeItem(t)}catch{}}function Si(e,t){return Ci(e,bi,t.toString())}function Ei(e){return parseInt(xi(e,bi))||0}const ki={local:!0,session:!0},Ri={local:new Set,session:new Set};let Ti=!1;let Ni=typeof window>"u"?{}:window;function Pi(e){const t=e+"Storage";try{if(Ni&&Ni[t]&&"number"==typeof Ni[t].length)return Ni[t]}catch{}ki[e]=!1}function Mi(e,t){const n=Pi(e);if(!n)return;const o=xi(n,vi);if(o!==mi){if(o){const e=Ei(n);for(let t=0;t<e;t++)Oi(n,gi+t.toString())}return Ci(n,vi,mi),void Si(n,0)}const r=Math.floor(Date.now()/yi)-wi,i=e=>{const o=gi+e.toString(),i=xi(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}Oi(n,o)}};let l=Ei(n);for(let t=l-1;t>=0;t--)i(t)||(t===l-1?(l--,Si(n,l)):Ri[e].add(t))}function _i(){if(!Ti){Ti=!0;for(const e in ki)Mi(e,(e=>{const t=e.data,n=Ar(e.provider,t.prefix);if(!Lr(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function ji(e,t){function n(n){let o;if(!ki[n]||!(o=Pi(n)))return;const r=Ri[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Ei(o),!Si(o,i+1))return;const l={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Ci(o,gi+i.toString(),JSON.stringify(l))}Ti||_i(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in ki)Mi(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Ii(){}function Di(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else{if(!e.missing.has(l))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:l})}return!1})),i.pending.length!==l&&(n||ai([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Fi=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?Sr(e,t,n):e;r&&o.push(r)})),o}(e,!0,$r()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,l=e.name,a=n[r]||(n[r]=Object.create(null)),s=a[i]||(a[i]=Ar(r,i));let u;u=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const c={provider:r,prefix:i,name:l};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Ii)})),()=>{e=!1}}const r=Object.create(null),i=[];let l,a;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===a&&t===l)return;l=t,a=n,i.push(Ar(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=Ar(t,n),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(o)||(l.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Qr(t))&&r.prepare(t,n,o).forEach((n=>{hi(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Lr(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ji(e,t)}catch(e){console.error(e)}Di(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=si++,r=ai.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):Ii};const Ai=/[\s,]+/;function Li(e,t){t.split(Ai).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Vi(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function $i(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let qi;function Hi(e){return void 0===qi&&function(){try{qi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{qi=null}}(),qi?qi.createHTML(e):e}const zi={...zr,inline:!1},Bi={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ui={display:"inline-block"},Wi={backgroundColor:"currentColor"},Gi={backgroundColor:"transparent"},Ki={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Yi={WebkitMask:Wi,mask:Wi,background:Gi};for(const e in Yi){const t=Yi[e];for(const n in Ki)t[e+n]=Ki[n]}const Zi={...zi,inline:!0};function Xi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Qi=(e,n,o,r)=>{const i=o?Zi:zi,l=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in Hr?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),a=n.mode||"svg",s={},u=n.style||{},c={..."svg"===a?Bi:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":l[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Li(l,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?l[e]=Vi(t):"number"==typeof t&&(l[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...Tr,...e},o={...zr,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(n?o?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=r.height/2+r.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=r.width,u=r.height;let c,d;null===l?(d=null===a?"1em":"auto"===a?u:a,c=Wr(d,s/u)):(c="auto"===l?s:l,d=null===a?Wr(c,u/s):"auto"===a?u:a);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",c),f("height",d),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:p,body:i}}(e,l),p=d.attributes;if(l.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...u},Object.assign(c,p);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:Hi(Zr(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:f,width:h,height:m}=e,g="mask"===a||"bg"!==a&&-1!==f.indexOf("currentColor"),b=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return c.style={...s,"--svg":$i(b),width:Xi(p.width),height:Xi(p.height),...Ui,...g?Wi:Gi,...u},t.createElement("span",c)};var Ji;if($r(!0),Ji=li,Xr[""]=Ji,typeof document<"u"&&typeof window<"u"){_i();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!qr(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;oi(e,o)||console.error(n)}catch{console.error(n)}}}}class el extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=Sr(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?Sr(e,!0,Vr):e;if(t){const e=Ar(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:Fi([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Qi({...Tr,...n.data},o,e._inline,e._ref)}}const tl=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(el,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(el,o)}));const nl="_icon_z9w7e_5",ol=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:l=!1})=>Me.jsx(tl,{onClick:r,icon:o,width:e,height:t,className:`${nl} ${n}`,color:i,vFlip:l}),rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Me.jsx(ol,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),Cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),Ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),Sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),El=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),Rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),Tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),Nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),Pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),Ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsxs("svg",{onClick:o,className:n,width:e,height:t,viewBox:"0 0 25 24",fill:r,xmlns:"http://www.w3.org/2000/svg",children:[Me.jsxs("g",{clipPath:"url(#clip0_2033_54069)",children:[Me.jsx("path",{d:"M19.02 19C20.4 19 21.52 17.88 21.52 16.5C21.52 15.12 20.4 14 19.02 14C17.64 14 16.52 15.12 16.52 16.5C16.52 17.88 17.64 19 19.02 19ZM19.02 20.25C17.35 20.25 14.02 21.09 14.02 22.75V23.38C14.02 23.72 14.3 24.01 14.65 24.01H23.4C23.74 24.01 24.03 23.73 24.03 23.38V22.75C24.03 21.09 20.7 20.25 19.03 20.25H19.02Z",fill:r}),Me.jsx("path",{d:"M5 5C6.38 5 7.5 3.88 7.5 2.5C7.5 1.12 6.38 0 5 0C3.62 0 2.5 1.12 2.5 2.5C2.5 3.88 3.62 5 5 5ZM5 6.25C3.33 6.25 0 7.09 0 8.75V9.38C0 9.72 0.28 10.01 0.63 10.01H9.38C9.72 10.01 10.01 9.73 10.01 9.38V8.75C10.01 7.09 6.68 6.25 5.01 6.25H5Z",fill:r}),Me.jsx("path",{d:"M12.55 20.66V20.46H7.05004C6.42004 20.46 5.90004 19.94 5.90004 19.31V15.83L7.62004 17.51L8.59004 16.52L5.03004 13.04L1.54004 16.61L2.53004 17.58L4.19004 15.88H4.21004V19.31C4.21004 20.88 5.49004 22.16 7.06004 22.16H12.56V21.96V20.66H12.55Z",fill:r}),Me.jsx("path",{d:"M11.4 3.19V3.39H16.9C17.53 3.39 18.05 3.91 18.05 4.54V8.02L16.33 6.34L15.36 7.33L18.92 10.81L22.41 7.24L21.42 6.27L19.76 7.97H19.74V4.54C19.74 2.97 18.46 1.69 16.89 1.69H11.39V1.89V3.19H11.4Z",fill:r})]}),Me.jsx("defs",{children:Me.jsx("clipPath",{id:"clip0_2033_54069",children:Me.jsx("rect",{width:e,height:t,fill:"transparent"})})})]}),_l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),Il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),Al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),ea=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),ta=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),na=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),oa=e=>Me.jsx(x,{...e}),ra=e.createContext(void 0);function ia(){const t=e.useContext(ra);if(void 0===t)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(ra.displayName="GridApiContext");const la=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(la.displayName="GridRootPropsContext");const aa=()=>{const t=e.useContext(la);if(!t)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return t},sa=e.createContext(void 0);function ua(){const t=e.useContext(sa);if(void 0===t)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(sa.displayName="GridPrivateApiContext");const ca={};const da=[];const pa=(e,t="warning")=>{let n=!1;const o=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(o):console.warn(o))}},fa=Object.is;function ha(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,o=0;for(const o in e)if(n+=1,!fa(e[o],t[o])||!(o in t))return!1;for(const e in t)o+=1;return n===o}const ma=pa(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function ga(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const ba=Object.is,va=ha,ya=()=>({state:null,equals:null,selector:null}),wa=(t,n,o=ba)=>{"production"!==process.env.NODE_ENV&&(t.current.state||ma());const r=function(t,n){const o=e.useRef(ca);return o.current===ca&&(o.current=t(n)),o}(ya),i=null!==r.current.selector,[l,a]=e.useState(i?null:ga(t,n));return r.current.state=l,r.current.equals=o,r.current.selector=n,function(t){e.useEffect(t,da)}((()=>t.current.store.subscribe((()=>{const e=ga(t,r.current.selector);r.current.equals(r.current.state,e)||(r.current.state=e,a(e))})))),l};function xa(e){return ln("MuiDataGrid",e)}const Ca=an("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Oa=Ro("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}))),Sa=e.forwardRef(((e,t)=>{const n=aa(),o=(e=>{const{classes:t}=e;return en({root:["main"]},xa,t)})(n);return Me.jsx(Oa,{ref:t,className:o.root,ownerState:n,children:e.children})}));var Ea="NOT_FOUND";var ka=function(e,t){return e===t};function Ra(e,t){var n="object"==typeof t?t:{equalityCheck:t},o=n.equalityCheck,r=void 0===o?ka:o,i=n.maxSize,l=void 0===i?1:i,a=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}}(r),u=1===l?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ea},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var r=n[o];return o>0&&(n.splice(o,1),n.unshift(r)),r.value}return Ea}return{get:o,put:function(t,r){o(t)===Ea&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,s);function c(){var t=u.get(arguments);if(t===Ea){if(t=e.apply(null,arguments),a){var n=u.getEntries().find((function(e){return a(e.value,t)}));n&&(t=n.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function Ta(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];var i,l=0,a={memoizeOptions:void 0},s=o.pop();if("object"==typeof s&&(a=s,s=o.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=a.memoizeOptions,c=void 0===u?n:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(o),f=e.apply(void 0,[function(){return l++,s.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:f,dependencies:p,lastResult:function(){return i},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),h}}var Na=Ta(Ra);const Pa={cache:new WeakMap},Ma=pa(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);function _a(e){return"current"in e&&"instanceId"in e.current}const ja={id:"default"},Ia=(e,t,n,o,r,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&o&&r&&i)a=(l,a)=>{const s=_a(l),u=a??(s?l.current.instanceId:ja),c=s?l.current.state:l,d=e(c,u),p=t(c,u),f=n(c,u),h=o(c,u),m=r(c,u);return i(d,p,f,h,m)};else if(e&&t&&n&&o&&r)a=(i,l)=>{const a=_a(i),s=l??(a?i.current.instanceId:ja),u=a?i.current.state:i,c=e(u,s),d=t(u,s),p=n(u,s),f=o(u,s);return r(c,d,p,f)};else if(e&&t&&n&&o)a=(r,i)=>{const l=_a(r),a=i??(l?r.current.instanceId:ja),s=l?r.current.state:r,u=e(s,a),c=t(s,a),d=n(s,a);return o(u,c,d)};else if(e&&t&&n)a=(o,r)=>{const i=_a(o),l=r??(i?o.current.instanceId:ja),a=i?o.current.state:o,s=e(a,l),u=t(a,l);return n(s,u)};else{if(!e||!t)throw new Error("Missing arguments");a=(n,o)=>{const r=_a(n),i=o??(r?n.current.instanceId:ja),l=r?n.current.state:n,a=e(l,i);return t(a)}}return a.acceptsApiRef=!0,a},Da=(...e)=>{const t=(...t)=>{var n,o;const[r,i]=t,l=_a(r),a=l?r.current.instanceId:i??ja,s=l?r.current.state:r;"production"!==process.env.NODE_ENV&&"default"===a.id&&Ma();const{cache:u}=Pa;var c;if(u.get(a)&&null!=(n=u.get(a))&&n.get(e))return null==(c=u.get(a))?void 0:c.get(e)(s,a);const d=Na(...e);return u.get(a)||u.set(a,new Map),null==(o=u.get(a))||o.set(e,d),d(s,a)};return t.acceptsApiRef=!0,t},Fa=e=>e.columns,Aa=Ia(Fa,(e=>e.orderedFields)),La=Ia(Fa,(e=>e.lookup)),Va=Da(Aa,La,((e,t)=>e.map((e=>t[e])))),$a=Ia(Fa,(e=>e.columnVisibilityModel)),qa=Da(Va,$a,((e,t)=>e.filter((e=>!1!==t[e.field])))),Ha=Da(qa,(e=>e.map((e=>e.field)))),za=Da(qa,(e=>{const t=[];let n=0;for(let o=0;o<e.length;o+=1)t.push(n),n+=e[o].computedWidth;return t})),Ba=Ia(qa,za,((e,t)=>{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),Ua=Da(Va,(e=>e.filter((e=>e.filterable)))),Wa=Da(Va,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),Ga=e=>e.rows,Ka=Ia(Ga,(e=>e.totalRowCount)),Ya=Ia(Ga,(e=>e.loading)),Za=Ia(Ga,(e=>e.totalTopLevelRowCount)),Xa=Ia(Ga,(e=>e.dataRowIdToModelLookup)),Qa=Ia(Ga,(e=>e.dataRowIdToIdLookup)),Ja=Ia(Ga,(e=>e.tree)),es=Ia(Ga,(e=>e.groupingName)),ts=Ia(Ga,(e=>e.treeDepths)),ns=Da(Ga,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]+1})),os=Ia(Ga,(e=>e.dataRowIds)),rs=Ia(Ga,(e=>null==e?void 0:e.additionalRowGroups)),is=Da(rs,(e=>{var t,n;const o=null==e?void 0:e.pinnedRows;return{bottom:null==o||null==(t=o.bottom)?void 0:t.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}})),top:null==o||null==(n=o.top)?void 0:n.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}}))}})),ls=Ia(is,(e=>{var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),as=e=>e.sorting,ss=Ia(as,(e=>e.sortedRows)),us=Da(ss,Xa,((e,t)=>e.map((e=>{var n;return{id:e,model:null!=(n=t[e])?n:{}}})))),cs=Ia(as,(e=>e.sortModel)),ds=Da(cs,(e=>e.reduce(((t,n,o)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?o+1:void 0},t)),{}))),ps=e=>e.filter,fs=Ia(ps,(e=>e.filterModel));Ia(fs,(e=>e.quickFilterValues));const hs=Ia(ps,(e=>e.filteredRowsLookup));Ia(ps,(e=>e.filteredDescendantCountLookup));const ms=Da((e=>e.visibleRowsLookup),us,((e,t)=>t.filter((t=>!1!==e[t.id])))),gs=Da(ms,(e=>e.map((e=>e.id)))),bs=Da(hs,us,((e,t)=>t.filter((t=>!1!==e[t.id])))),vs=Da(bs,(e=>e.map((e=>e.id)))),ys=Da(ms,Ja,ns,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),ws=Ia(ms,(e=>e.length)),xs=Ia(ys,(e=>e.length)),Cs=Da(fs,La,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,o;if(!e.field)return!1;const r=t[e.field];if(null==r||!r.filterOperators||0===(null==r||null==(n=r.filterOperators)?void 0:n.length))return!1;const i=r.filterOperators.find((t=>t.value===e.operator));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(o=e.value)?void 0:o.toString()))}))})),Os=Da(Cs,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{}))),Ss=e=>e.focus,Es=Ia(Ss,(e=>e.cell)),ks=Ia(Ss,(e=>e.columnHeader));Ia(Ss,(e=>e.columnHeaderFilter));const Rs=Ia(Ss,(e=>e.columnGroupHeader)),Ts=e=>e.tabIndex,Ns=Ia(Ts,(e=>e.cell)),Ps=Ia(Ts,(e=>e.columnHeader));Ia(Ts,(e=>e.columnHeaderFilter));const Ms=Ia(Ts,(e=>e.columnGroupHeader)),_s=e=>e.density,js=Ia(_s,(e=>e.value)),Is=Ia(_s,(e=>e.factor)),Ds=e=>e.columnGrouping,Fs=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.unwrappedGroupingModel)?t:{}})),As=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.lookup)?t:{}})),Ls=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.headerStructure)?t:[]})),Vs=Ia(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.maxDepth)?t:0})),$s=e=>e.columnMenu;function qs(t){const{VirtualScrollerComponent:n,ColumnHeadersProps:o,children:r}=t,i=ua(),l=aa(),a=e.useRef(null),s=wa(i,qa),u=wa(i,Os),c=wa(i,ds),d=wa(i,za),p=wa(i,Ps),f=wa(i,Ns),h=wa(i,Ms),m=wa(i,ks),g=wa(i,Rs),b=wa(i,Is),v=wa(i,Vs),y=wa(i,$s),w=wa(i,$a),x=wa(i,Ls),C=!(null===h&&null===p&&null===f),[O,S]=e.useState(l.disableVirtualization);Pt((()=>{i.current.computeSizeAndPublishResizeEvent();const e=a.current;if(typeof ResizeObserver>"u")return()=>{};let t;const n=new ResizeObserver((()=>{t=window.requestAnimationFrame((()=>{i.current.computeSizeAndPublishResizeEvent()}))}));return e&&n.observe(e),()=>{t&&window.cancelAnimationFrame(t),e&&n.unobserve(e)}}),[i]);const E=e.useCallback((()=>{S(!0)}),[]),k=e.useCallback((()=>{S(!1)}),[]);e.useEffect((()=>{S(l.disableVirtualization)}),[l.disableVirtualization]),i.current.unstable_disableVirtualization=E,i.current.unstable_enableVirtualization=k;const R=e.useRef(null),T=e.useRef(null),N=e.useRef(null);i.current.register("private",{columnHeadersContainerElementRef:T,columnHeadersElementRef:R,virtualScrollerRef:N,mainElementRef:a});const P=!!i.current.getRootDimensions();return Me.jsxs(Sa,{ref:a,children:[Me.jsx(l.slots.columnHeaders,Ie({ref:T,innerRef:R,visibleColumns:s,filterColumnLookup:u,sortColumnLookup:c,columnPositions:d,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:h,columnHeaderFocus:m,columnGroupHeaderFocus:g,densityFactor:b,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:w,columnGroupsHeaderStructure:x,hasOtherElementInTabSequence:C},o)),P&&Me.jsx(n,{ref:N,disableVirtualization:O}),r]})}function Hs(){var e;const t=aa();return t.hideFooter?null:Me.jsx(t.slots.footer,Ie({},null==(e=t.slotProps)?void 0:e.footer))}"production"!==process.env.NODE_ENV&&(qs.propTypes={children:oe.node,ColumnHeadersProps:oe.object,VirtualScrollerComponent:oe.elementType.isRequired});const zs="auto-generated-group-node-root",Bs=Symbol("mui-autogenerated-id");const Us=(e,t,n)=>{const o=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(o,e,n),o},Ws=({rows:e,getRowId:t,loading:n,rowCount:o})=>{const r={type:"full",rows:[]},i={},l={};for(let n=0;n<e.length;n+=1){const o=e[n],a=Us(o,t);i[a]=o,l[a]=a,r.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:o,updates:r,dataRowIdToIdLookup:l,dataRowIdToModelLookup:i}},Gs=({tree:e,rowCountProp:t=0})=>{const n=e[zs];return Math.max(t,n.children.length+(null==n.footerId?0:1))},Ks=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:o,previousTreeDepths:r})=>{const i=e.current.caches.rows,{tree:l,treeDepths:a,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:r,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Ie({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:Gs({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Ys=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,Zs=(e,t,n)=>{const o=e[t];if("group"!==o.type)return[];const r=[];for(let t=0;t<o.children.length;t+=1){const i=o.children[t];(!n||!Ys(e[i]))&&r.push(i),r.push(...Zs(e,i,n))}return!n&&null!=o.footerId&&r.push(o.footerId),r};function Xs(e){var t,n;const o=is(e);return{top:(null==o||null==(t=o.top)?void 0:t.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0,bottom:(null==o||null==(n=o.bottom)?void 0:n.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0}}function Qs(e,t){const n=Is(e);return 2*Math.floor(t*n)}const Js=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),eu=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),tu=e=>{const{classes:t}=e;return en({root:["overlayWrapper"],inner:["overlayWrapperInner"]},xa,t)};function nu(t){var n,o;const r=ia(),i=aa(),[l,a]=e.useState((()=>{var e,t;return null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=e.useCallback((()=>{var e,t;a(null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[r]);Pt((()=>r.current.subscribeEvent("viewportInnerSizeChange",s)),[r,s]);let u=null!=(n=null==l?void 0:l.height)?n:0;i.autoHeight&&0===u&&(u=Qs(r,i.rowHeight));const c=tu(Ie({},t,{classes:i.classes}));return l?Me.jsx(Js,{className:vo(c.root),children:Me.jsx(eu,Ie({className:vo(c.inner),style:{height:u,width:null!=(o=null==l?void 0:l.width)?o:0}},t))}):null}function ou(){const e=ia(),t=aa(),n=wa(e,Ka),o=wa(e,ws),r=wa(e,Ya),i=!r&&n>0&&0===o;let l=null;var a,s,u;r||0!==n||(l=Me.jsx(t.slots.noRowsOverlay,Ie({},null==(a=t.slotProps)?void 0:a.noRowsOverlay)));i&&(l=Me.jsx(t.slots.noResultsOverlay,Ie({},null==(s=t.slotProps)?void 0:s.noResultsOverlay)));r&&(l=Me.jsx(t.slots.loadingOverlay,Ie({},null==(u=t.slotProps)?void 0:u.loadingOverlay)));return null===l?null:Me.jsx(nu,{children:l})}function ru(t){return e.memo(t,ha)}let iu;function lu(){return void 0===iu&&document.createElement("div").focus({get preventScroll(){return iu=!0,!1}}),iu}var au=function(e){return e.Cell="cell",e.Row="row",e}(au||{}),su=function(e){return e.Edit="edit",e.View="view",e}(su||{}),uu=function(e){return e.Edit="edit",e.View="view",e}(uu||{}),cu=function(e){return e.And="and",e.Or="or",e}(cu||{}),du=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(du||{}),pu=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(pu||{}),fu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(fu||{}),hu=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(hu||{});function mu(e){return void 0!==e.field}function gu(e){return e.replace(/["\\]/g,"\\$&")}function bu(e){return`.${Ca.row}[data-id="${gu(String(e))}"]`}function vu(t,n,o){const r=e.useRef(n),[i]=e.useState(Object.keys(n)),l=e.useCallback((()=>{t.current&&i.forEach((e=>{t.current.hasOwnProperty(e)||t.current.register(o,{[e]:(...t)=>(0,r.current[e])(...t)})}))}),[i,t,o]);e.useEffect((()=>{r.current=n}),[n]),e.useEffect((()=>{l()}),[l]),l()}class yu extends Error{}function wu(t,n){const{getRowId:o}=n,r=e.useCallback((e=>({field:e,colDef:t.current.getColumn(e)})),[t]),i=e.useCallback((e=>{const n=t.current.getRow(e);if(!n)throw new yu(`No row with id #${e} found`);return{id:e,columns:t.current.getAllColumns(),row:n}}),[t]),l=e.useCallback(((e,n)=>{const o=t.current.getRow(e),r=t.current.getRowNode(e);if(!o||!r)throw new yu(`No row with id #${e} found`);const i=Es(t),l=Ns(t);return{id:e,field:n,row:o,rowNode:r,value:o[n],colDef:t.current.getColumn(n),cellMode:t.current.getCellMode(e,n),api:t.current,hasFocus:null!==i&&i.field===n&&i.id===e,tabIndex:l&&l.field===n&&l.id===e?0:-1}}),[t]),a=e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=t.current.getCellValue(e,n),i=t.current.getRow(e),l=t.current.getRowNode(e);if(!i||!l)throw new yu(`No row with id #${e} found`);const a=Es(t),s=Ns(t),u={id:e,field:n,row:i,rowNode:l,colDef:o,cellMode:t.current.getCellMode(e,n),hasFocus:null!==a&&a.field===n&&a.id===e,tabIndex:s&&s.field===n&&s.id===e?0:-1,value:r,formattedValue:r,isEditable:!1};return o&&o.valueFormatter&&(u.formattedValue=o.valueFormatter({id:e,field:u.field,value:u.value,api:t.current})),u.isEditable=o&&t.current.isCellEditable(u),u}),[t]),s=e.useCallback(((e,n)=>{const o=t.current.getColumn(n);if(!o||!o.valueGetter){const o=t.current.getRow(e);if(!o)throw new yu(`No row with id #${e} found`);return o[n]}return o.valueGetter(l(e,n))}),[t,l]),u=e.useCallback(((e,t)=>{var n;const r=Bs in e?e[Bs]:null!=(n=null==o?void 0:o(e))?n:e.id,i=t.field;return t&&t.valueGetter?t.valueGetter(l(r,i)):e[i]}),[l,o]),c=e.useCallback(((e,n)=>{var r;const i=u(e,n);if(!n||!n.valueFormatter)return i;const l=null!=(r=o?o(e):e.id)?r:e[Bs],a=n.field;return n.valueFormatter({id:l,field:a,value:i,api:t.current})}),[t,o,u]),d=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${gu(t)}"]`)}(t.current.rootElementRef.current,e):null),[t]),p=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(bu(t))}(t.current.rootElementRef.current,e):null),[t]),f=e.useCallback(((e,n)=>t.current.rootElementRef.current?function(e,{id:t,field:n}){const o=`${bu(t)} .${Ca.cell}[data-field="${gu(n)}"]`;return e.querySelector(o)}(t.current.rootElementRef.current,{id:e,field:n}):null),[t]);vu(t,{getCellValue:s,getCellParams:a,getCellElement:f,getRowValue:u,getRowFormattedValue:c,getRowParams:i,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:d},"public")}const xu=["changeReason","unstable_updateValueOnRender"],Cu=["align","children","editCellState","colIndex","column","cellMode","field","formattedValue","hasFocus","height","isEditable","isSelected","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Ou=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Su=["changeReason","unstable_updateValueOnRender"],Eu={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:su.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},ku=e=>{const{align:t,showRightBorder:n,isEditable:o,isSelected:r,classes:i}=e;return en({root:["cell",`cell--text${Ot(t)}`,o&&"cell--editable",r&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]},xa,i)};let Ru=!1;const Tu=e.forwardRef(((t,n)=>{const{column:o,rowId:r,editCellState:i}=t,l=ia(),a=aa(),s=o.field,u=wa(l,(()=>{try{const e=l.current.getCellParams(r,s);return e.api=l.current,e}catch(e){if(e instanceof yu)return Eu;throw e}}),va),c=wa(l,(()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s})));if(u===Eu)return null;const{cellMode:d,hasFocus:p,isEditable:f,value:h,formattedValue:m}=u,g="actions"===o.type,b="view"!==d&&f||g?-1:u.tabIndex,{classes:v,getCellClassName:y}=a,w=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});let x;if(o.cellClassName&&w.push("function"==typeof o.cellClassName?o.cellClassName(u):o.cellClassName),y&&w.push(y(u)),null==i&&o.renderCell&&(x=o.renderCell(u),w.push(Ca["cell--withRenderer"]),w.push(null==v?void 0:v["cell--withRenderer"])),null!=i&&o.renderEditCell){const e=Ie({},u,{row:l.current.getRowWithUpdatedValues(r,o.field)},De(i,xu));x=o.renderEditCell(e),w.push(Ca["cell--editing"]),w.push(null==v?void 0:v["cell--editing"])}const{slots:C}=a,O=C.cell,S=Ie({},t,{ref:n,field:s,formattedValue:m,hasFocus:p,isEditable:f,isSelected:c,value:h,cellMode:d,children:x,tabIndex:b,className:vo(w)});return e.createElement(O,S)})),Nu=e.forwardRef(((t,n)=>{var o;const{align:r,children:i,colIndex:l,column:a,cellMode:s,field:u,formattedValue:c,hasFocus:d,height:p,isEditable:f,isSelected:h,rowId:m,tabIndex:g,value:b,width:v,className:y,showRightBorder:w,colSpan:x,disableDragEvents:C,onClick:O,onDoubleClick:S,onMouseDown:E,onMouseUp:k,onMouseOver:R,onKeyDown:T,onKeyUp:N,onDragEnter:P,onDragOver:M}=t,_=De(t,Cu),j=c??b,I=e.useRef(null),D=Ft(n,I),F=e.useRef(null),A=ia(),L=aa(),V={align:r,showRightBorder:w,isEditable:f,classes:L.classes,isSelected:h},$=ku(V),q=e.useCallback((e=>t=>{const n=A.current.getCellParams(m,u||"");A.current.publishEvent(e,n,t),k&&k(t)}),[A,u,k,m]),H=e.useCallback((e=>t=>{const n=A.current.getCellParams(m,u||"");A.current.publishEvent(e,n,t),E&&E(t)}),[A,u,E,m]),z=e.useCallback(((e,t)=>n=>{if(!A.current.getRow(m))return;const o=A.current.getCellParams(m,u||"");A.current.publishEvent(e,o,n),t&&t(n)}),[A,u,m]),B={minWidth:v,maxWidth:v,minHeight:p,maxHeight:"auto"===p?"none":p};e.useEffect((()=>{if(!d||s===su.Edit)return;const e=Rt(A.current.rootElementRef.current);if(I.current&&!I.current.contains(e.activeElement)){const e=I.current.querySelector('[tabindex="0"]'),t=F.current||e||I.current;if(lu())t.focus({preventScroll:!0});else{const e=A.current.getScrollPosition();t.focus(),A.current.scroll(e)}}}),[d,s,A]);let U=_.onFocus;"test"===process.env.NODE_ENV&&null!=(o=L.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(U=e=>{const t=Es(A);(null==t?void 0:t.id)!==m||t.field!==u?Ru||(console.warn([`MUI: The cell with id=${m} and field=${u} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Ru=!0):"function"==typeof _.onFocus&&_.onFocus(e)});const W="actions"===a.type;let G=i;if(void 0===G){const e=null==j?void 0:j.toString();G=Me.jsx("div",{className:$.content,title:e,children:e})}e.isValidElement(G)&&W&&(G=e.cloneElement(G,{focusElementRef:F}));const K=C?null:{onDragEnter:z("cellDragEnter",P),onDragOver:z("cellDragOver",M)};return Me.jsx("div",Ie({ref:D,className:vo(y,$.root),role:"cell","data-field":u,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":x,style:B,tabIndex:g,onClick:z("cellClick",O),onDoubleClick:z("cellDoubleClick",S),onMouseOver:z("cellMouseOver",R),onMouseDown:H("cellMouseDown"),onMouseUp:q("cellMouseUp"),onKeyDown:z("cellKeyDown",T),onKeyUp:z("cellKeyUp",N)},K,_,{onFocus:U,children:G}))})),Pu=ru(Tu);"production"!==process.env.NODE_ENV&&(Tu.propTypes={align:oe.oneOf(["center","left","right"]),className:oe.string,colIndex:oe.number,colSpan:oe.number,column:oe.object,disableDragEvents:oe.bool,height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]),showRightBorder:oe.bool,width:oe.number}),"production"!==process.env.NODE_ENV&&(Nu.propTypes={align:oe.oneOf(["center","left","right"]),cellMode:oe.oneOf(["edit","view"]),children:oe.node,className:oe.string,colIndex:oe.number,colSpan:oe.number,column:oe.object,disableDragEvents:oe.bool,editCellState:oe.shape({changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:oe.bool,isValidating:oe.bool,value:oe.any}),height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]),showRightBorder:oe.bool,width:oe.number});const Mu=e.forwardRef(((t,n)=>{var o;const{column:r,rowId:i,editCellState:l,align:a,colIndex:s,height:u,width:c,className:d,showRightBorder:p,colSpan:f,disableDragEvents:h,onClick:m,onDoubleClick:g,onMouseDown:b,onMouseUp:v,onMouseOver:y,onKeyDown:w,onKeyUp:x,onDragEnter:C,onDragOver:O}=t,S=De(t,Ou),E=ia(),k=aa(),R=r.field,T=wa(E,(()=>{try{const e=E.current.getCellParams(i,R);return e.api=E.current,e}catch(e){if(e instanceof yu)return Eu;throw e}}),va),N=wa(E,(()=>E.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:R}))),{cellMode:P,hasFocus:M,isEditable:_,value:j,formattedValue:I}=T,D="actions"===r.type,F="view"!==P&&_||D?-1:T.tabIndex,{classes:A,getCellClassName:L}=k,V=E.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:R});r.cellClassName&&V.push("function"==typeof r.cellClassName?r.cellClassName(T):r.cellClassName),L&&V.push(L(T));const $=I??j,q=e.useRef(null),H=Ft(n,q),z=e.useRef(null),B={align:a,showRightBorder:p,isEditable:_,classes:k.classes,isSelected:N},U=ku(B),W=e.useCallback((e=>t=>{const n=E.current.getCellParams(i,R||"");E.current.publishEvent(e,n,t),v&&v(t)}),[E,R,v,i]),G=e.useCallback((e=>t=>{const n=E.current.getCellParams(i,R||"");E.current.publishEvent(e,n,t),b&&b(t)}),[E,R,b,i]),K=e.useCallback(((e,t)=>n=>{if(!E.current.getRow(i))return;const o=E.current.getCellParams(i,R||"");E.current.publishEvent(e,o,n),t&&t(n)}),[E,R,i]),Y={minWidth:c,maxWidth:c,minHeight:u,maxHeight:"auto"===u?"none":u};if(e.useEffect((()=>{if(!M||P===su.Edit)return;const e=Rt(E.current.rootElementRef.current);if(q.current&&!q.current.contains(e.activeElement)){const e=q.current.querySelector('[tabindex="0"]'),t=z.current||e||q.current;if(lu())t.focus({preventScroll:!0});else{const e=E.current.getScrollPosition();t.focus(),E.current.scroll(e)}}}),[M,P,E]),T===Eu)return null;let Z,X=S.onFocus;if("test"===process.env.NODE_ENV&&null!=(o=k.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(X=e=>{const t=Es(E);(null==t?void 0:t.id)!==i||t.field!==R?Ru||(console.warn([`MUI: The cell with id=${i} and field=${R} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Ru=!0):"function"==typeof S.onFocus&&S.onFocus(e)}),null==l&&r.renderCell&&(Z=r.renderCell(T),V.push(Ca["cell--withRenderer"]),V.push(null==A?void 0:A["cell--withRenderer"])),null!=l&&r.renderEditCell){const e=Ie({},T,{row:E.current.getRowWithUpdatedValues(i,r.field)},De(l,Su));Z=r.renderEditCell(e),V.push(Ca["cell--editing"]),V.push(null==A?void 0:A["cell--editing"])}if(void 0===Z){const e=null==$?void 0:$.toString();Z=Me.jsx("div",{className:U.content,title:e,children:e})}e.isValidElement(Z)&&D&&(Z=e.cloneElement(Z,{focusElementRef:z}));const Q=h?null:{onDragEnter:K("cellDragEnter",C),onDragOver:K("cellDragOver",O)};return Me.jsx("div",Ie({ref:H,className:vo(d,V,U.root),role:"cell","data-field":R,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":f,style:Y,tabIndex:F,onClick:K("cellClick",m),onDoubleClick:K("cellDoubleClick",g),onMouseOver:K("cellMouseOver",y),onMouseDown:G("cellMouseDown"),onMouseUp:W("cellMouseUp"),onKeyDown:K("cellKeyDown",w),onKeyUp:K("cellKeyUp",x)},Q,S,{onFocus:X,children:Z}))}));"production"!==process.env.NODE_ENV&&(Mu.propTypes={align:oe.oneOf(["center","left","right"]).isRequired,className:oe.string,colIndex:oe.number.isRequired,colSpan:oe.number,column:oe.object.isRequired,disableDragEvents:oe.bool,editCellState:oe.shape({changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:oe.bool,isValidating:oe.bool,value:oe.any}),height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]).isRequired,onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]).isRequired,showRightBorder:oe.bool,width:oe.number.isRequired});const _u=ru(Mu),ju=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"];function Iu(t){const{value:n}=t,o=De(t,ju),r=ia(),i=aa(),l=(e=>{const{classes:t}=e;return en({root:["booleanCell"]},xa,t)})({classes:i.classes}),a=e.useMemo((()=>n?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon),[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,n]);return Me.jsx(a,Ie({fontSize:"small",className:l.root,titleAccess:r.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!n},o))}"production"!==process.env.NODE_ENV&&(Iu.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,colDef:oe.object.isRequired,field:oe.string.isRequired,focusElementRef:oe.oneOfType([oe.func,oe.shape({current:oe.shape({focus:oe.func.isRequired})})]),formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Du=e.memo(Iu),Fu=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function Au(t){var n;const{id:o,value:r,field:i,className:l,hasFocus:a,onValueChange:s}=t,u=De(t,Fu),c=ia(),d=e.useRef(null),p=jt(),[f,h]=e.useState(r),m=aa(),g=(e=>{const{classes:t}=e;return en({root:["editBooleanCell"]},xa,t)})({classes:m.classes}),b=e.useCallback((async e=>{const t=e.target.checked;s&&await s(e,t),h(t),await c.current.setEditCellValue({id:o,field:i,value:t},e)}),[c,i,o,s]);return e.useEffect((()=>{h(r)}),[r]),Pt((()=>{a&&d.current.focus()}),[a]),Me.jsx("label",Ie({htmlFor:p,className:vo(g.root,l)},u,{children:Me.jsx(m.slots.baseCheckbox,Ie({id:p,inputRef:d,checked:!!f,onChange:b,size:"small"},null==(n=m.slotProps)?void 0:n.baseCheckbox))}))}"production"!==process.env.NODE_ENV&&(Au.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});function Lu(e){return"string"==typeof e}function Vu(e,t,n){return void 0===e||Lu(e)?t:Ie({},t,{ownerState:Ie({},t.ownerState,n)})}const $u={disableDefaultClasses:!1},qu=e.createContext($u);function Hu(t){const{disableDefaultClasses:n}=e.useContext(qu);return e=>n?"":t(e)}function zu(e,t,n){return"function"==typeof e?e(t,n):e}function Bu(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Uu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=vo(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=Ie({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),l=Ie({},n,r,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Ie({},r,o)),a=Bu(o),s=Bu(r),u=t(l),c=vo(null==u?void 0:u.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),d=Ie({},null==u?void 0:u.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),p=Ie({},u,n,s,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Wu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gu(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:i=!1}=e,l=De(e,Wu),a=i?{}:zu(o,r),{props:s,internalRef:u}=Uu(Ie({},l,{externalSlotProps:a}));return Vu(n,Ie({},s,{ref:Ft(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r)}function Ku(e){return e.substring(2).toLowerCase()}function Yu(t){const{children:n,disableReactTree:o=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=t,a=e.useRef(!1),s=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=Ft(n.ref,s),p=Dt((e=>{const t=c.current;c.current=!1;const n=Rt(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let r;r=e.composedPath?e.composedPath().indexOf(s.current)>-1:!n.documentElement.contains(e.target)||s.current.contains(e.target),!r&&(o||!t)&&i(e)})),f=e=>t=>{c.current=!0;const o=n.props[e];o&&o(t)},h={ref:d};return!1!==l&&(h[l]=f(l)),e.useEffect((()=>{if(!1!==l){const e=Ku(l),t=Rt(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,l]),!1!==r&&(h[r]=f(r)),e.useEffect((()=>{if(!1!==r){const e=Ku(r),t=Rt(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),Me.jsx(e.Fragment,{children:e.cloneElement(n,h)})}"production"!==process.env.NODE_ENV&&(Yu.propTypes={children:st.isRequired,disableReactTree:oe.bool,mouseEvent:oe.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:oe.func.isRequired,touchEvent:oe.oneOf(["onTouchEnd","onTouchStart",!1])}),"production"!==process.env.NODE_ENV&&(Yu.propTypes=ct(Yu.propTypes));const Zu=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Xu(e){const t=[],n=[];return Array.from(e.querySelectorAll(Zu)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===r||!function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)||(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Qu(){return!0}function Ju(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:l=Xu,isEnabled:a=Qu,open:s}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=Ft(n.ref,m),b=e.useRef(null);e.useEffect((()=>{!s||!m.current||(h.current=!o)}),[o,s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&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("\n")),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current),t=t=>{const{current:n}=m;if(null!==n){if(!e.hasFocus()||r||!a()||u.current)return void(u.current=!1);if(!n.contains(e.activeElement)){if(t&&f.current!==t.target||e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if((e.activeElement===c.current||e.activeElement===d.current)&&(r=l(m.current)),r.length>0){var o,i;const e=!(null==(o=b.current)||!o.shiftKey||"Tab"!==(null==(i=b.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}},n=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,i,a,s,l]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Me.jsxs(e.Fragment,{children:[Me.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),Me.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Ju.propTypes={children:st,disableAutoFocus:oe.bool,disableEnforceFocus:oe.bool,disableRestoreFocus:oe.bool,getTabbable:oe.func,isEnabled:oe.func,open:oe.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Ju.propTypes=ct(Ju.propTypes));var ec="top",tc="bottom",nc="right",oc="left",rc="auto",ic=[ec,tc,nc,oc],lc="start",ac="end",sc="clippingParents",uc="viewport",cc="popper",dc="reference",pc=ic.reduce((function(e,t){return e.concat([t+"-"+lc,t+"-"+ac])}),[]),fc=[].concat(ic,[rc]).reduce((function(e,t){return e.concat([t,t+"-"+lc,t+"-"+ac])}),[]),hc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mc(e){return e?(e.nodeName||"").toLowerCase():null}function gc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bc(e){return e instanceof gc(e).Element||e instanceof Element}function vc(e){return e instanceof gc(e).HTMLElement||e instanceof HTMLElement}function yc(e){return!(typeof ShadowRoot>"u")&&(e instanceof gc(e).ShadowRoot||e instanceof ShadowRoot)}const wc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];!vc(r)||!mc(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!vc(o)||!mc(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function xc(e){return e.split("-")[0]}var Cc=Math.max,Oc=Math.min,Sc=Math.round;function Ec(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kc(){return!/^((?!chrome|android).)*safari/i.test(Ec())}function Rc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&vc(e)&&(r=e.offsetWidth>0&&Sc(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Sc(o.height)/e.offsetHeight||1);var l=(bc(e)?gc(e):window).visualViewport,a=!kc()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,u=(o.top+(a&&l?l.offsetTop:0))/i,c=o.width/r,d=o.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Tc(e){var t=Rc(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 Nc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yc(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pc(e){return gc(e).getComputedStyle(e)}function Mc(e){return["table","td","th"].indexOf(mc(e))>=0}function _c(e){return((bc(e)?e.ownerDocument:e.document)||window.document).documentElement}function jc(e){return"html"===mc(e)?e:e.assignedSlot||e.parentNode||(yc(e)?e.host:null)||_c(e)}function Ic(e){return vc(e)&&"fixed"!==Pc(e).position?e.offsetParent:null}function Dc(e){for(var t=gc(e),n=Ic(e);n&&Mc(n)&&"static"===Pc(n).position;)n=Ic(n);return n&&("html"===mc(n)||"body"===mc(n)&&"static"===Pc(n).position)?t:n||function(e){var t=/firefox/i.test(Ec());if(/Trident/i.test(Ec())&&vc(e)&&"fixed"===Pc(e).position)return null;var n=jc(e);for(yc(n)&&(n=n.host);vc(n)&&["html","body"].indexOf(mc(n))<0;){var o=Pc(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Fc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ac(e,t,n){return Cc(e,Oc(t,n))}function Lc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const $c={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=xc(n.placement),s=Fc(a),u=[oc,nc].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return Lc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vc(e,ic))}(r.padding,n),d=Tc(i),p="y"===s?ec:oc,f="y"===s?tc:nc,h=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],m=l[s]-n.rects.reference[s],g=Dc(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=c[p],w=b-d[u]-c[f],x=b/2-d[u]/2+v,C=Ac(y,x,w),O=s;n.modifiersData[o]=((t={})[O]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||Nc(t.elements.popper,o)&&(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qc(e){return e.split("-")[1]}var Hc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zc(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=l.x,f=void 0===p?0:p,h=l.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=l.hasOwnProperty("x"),v=l.hasOwnProperty("y"),y=oc,w=ec,x=window;if(u){var C=Dc(n),O="clientHeight",S="clientWidth";if(C===gc(n)&&("static"!==Pc(C=_c(n)).position&&"absolute"===a&&(O="scrollHeight",S="scrollWidth")),r===ec||(r===oc||r===nc)&&i===ac)w=tc,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[O])-o.height,m*=s?1:-1;if(r===oc||(r===ec||r===tc)&&i===ac)y=nc,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[S])-o.width,f*=s?1:-1}var E,k=Object.assign({position:a},u&&Hc),R=!0===c?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Sc(n*r)/r||0,y:Sc(o*r)/r||0}}({x:f,y:m},gc(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},k,((E={})[w]=v?"0":"",E[y]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},k,((t={})[w]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}const Bc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,u={placement:xc(t.placement),variation:qc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Uc={passive:!0};const Wc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,l=o.resize,a=void 0===l||l,s=gc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Uc)})),a&&s.addEventListener("resize",n.update,Uc),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Uc)})),a&&s.removeEventListener("resize",n.update,Uc)}},data:{}};var Gc={left:"right",right:"left",bottom:"top",top:"bottom"};function Kc(e){return e.replace(/left|right|bottom|top/g,(function(e){return Gc[e]}))}var Yc={start:"end",end:"start"};function Zc(e){return e.replace(/start|end/g,(function(e){return Yc[e]}))}function Xc(e){var t=gc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qc(e){return Rc(_c(e)).left+Xc(e).scrollLeft}function Jc(e){var t=Pc(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ed(e){return["html","body","#document"].indexOf(mc(e))>=0?e.ownerDocument.body:vc(e)&&Jc(e)?e:ed(jc(e))}function td(e,t){var n;void 0===t&&(t=[]);var o=ed(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=gc(o),l=r?[i].concat(i.visualViewport||[],Jc(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(td(jc(l)))}function nd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function od(e,t,n){return t===uc?nd(function(e,t){var n=gc(e),o=_c(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var u=kc();(u||!u&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+Qc(e),y:s}}(e,n)):bc(t)?function(e,t){var n=Rc(e,!1,"fixed"===t);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}(t,n):nd(function(e){var t,n=_c(e),o=Xc(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Cc(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Cc(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Qc(e),s=-o.scrollTop;return"rtl"===Pc(r||n).direction&&(a+=Cc(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(_c(e)))}function rd(e,t,n,o){var r="clippingParents"===t?function(e){var t=td(jc(e)),n=["absolute","fixed"].indexOf(Pc(e).position)>=0&&vc(e)?Dc(e):e;return bc(n)?t.filter((function(e){return bc(e)&&Nc(e,n)&&"body"!==mc(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce((function(t,n){var r=od(e,n,o);return t.top=Cc(r.top,t.top),t.right=Oc(r.right,t.right),t.bottom=Oc(r.bottom,t.bottom),t.left=Cc(r.left,t.left),t}),od(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function id(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?xc(r):null,l=r?qc(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case ec:t={x:a,y:n.y-o.height};break;case tc:t={x:a,y:n.y+n.height};break;case nc:t={x:n.x+n.width,y:s};break;case oc:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Fc(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case lc:t[u]=t[u]-(n[c]/2-o[c]/2);break;case ac:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function ld(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?sc:a,u=n.rootBoundary,c=void 0===u?uc:u,d=n.elementContext,p=void 0===d?cc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Lc("number"!=typeof g?g:Vc(g,ic)),v=p===cc?dc:cc,y=e.rects.popper,w=e.elements[h?v:p],x=rd(bc(w)?w:w.contextElement||_c(e.elements.popper),s,c,l),C=Rc(e.elements.reference),O=id({reference:C,element:y,strategy:"absolute",placement:r}),S=nd(Object.assign({},y,O)),E=p===cc?S:C,k={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},R=e.modifiersData.offset;if(p===cc&&R){var T=R[r];Object.keys(k).forEach((function(e){var t=[nc,tc].indexOf(e)>=0?1:-1,n=[ec,tc].indexOf(e)>=0?"y":"x";k[e]+=T[n]*t}))}return k}const ad={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=xc(g),v=s||(b===g||!h?[Kc(g)]:function(e){if(xc(e)===rc)return[];var t=Kc(e);return[Zc(e),t,Zc(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(xc(n)===rc?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?fc:s,c=qc(o),d=c?a?pc:pc.filter((function(e){return qc(e)===c})):ic,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ld(e,{placement:n,boundary:r,rootBoundary:i,padding:l})[xc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,O=!0,S=y[0],E=0;E<y.length;E++){var k=y[E],R=xc(k),T=qc(k)===lc,N=[ec,tc].indexOf(R)>=0,P=N?"width":"height",M=ld(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),_=N?T?nc:oc:T?tc:ec;w[P]>x[P]&&(_=Kc(_));var j=Kc(_),I=[];if(i&&I.push(M[R]<=0),a&&I.push(M[_]<=0,M[j]<=0),I.every((function(e){return e}))){S=k,O=!1;break}C.set(k,I)}if(O)for(var D=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},F=h?3:1;F>0;F--){if("break"===D(F))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sd(e,t,n){return void 0===n&&(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 ud(e){return[ec,nc,tc,oc].some((function(t){return e[t]>=0}))}const cd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,l=ld(t,{elementContext:"reference"}),a=ld(t,{altBoundary:!0}),s=sd(l,o),u=sd(a,r,i),c=ud(s),d=ud(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};const dd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=fc.reduce((function(e,n){return e[n]=function(e,t,n){var o=xc(e),r=[oc,ec].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*r,[oc,nc].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}};const pd={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=id({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const fd={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=ld(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),b=xc(t.placement),v=qc(t.placement),y=!v,w=Fc(b),x=function(e){return"x"===e?"y":"x"}(w),C=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var N,P="y"===w?ec:oc,M="y"===w?tc:nc,_="y"===w?"height":"width",j=C[w],I=j+g[P],D=j-g[M],F=f?-S[_]/2:0,A=v===lc?O[_]:S[_],L=v===lc?-S[_]:-O[_],V=t.elements.arrow,$=f&&V?Tc(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=q[P],z=q[M],B=Ac(0,O[_],$[_]),U=y?O[_]/2-F-B-H-k.mainAxis:A-B-H-k.mainAxis,W=y?-O[_]/2+F+B+z+k.mainAxis:L+B+z+k.mainAxis,G=t.elements.arrow&&Dc(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(N=null==R?void 0:R[w])?N:0,Z=j+W-Y,X=Ac(f?Oc(I,j+U-Y-K):I,j,f?Cc(D,Z):D);C[w]=X,T[w]=X-j}if(a){var Q,J="x"===w?ec:oc,ee="x"===w?tc:nc,te=C[x],ne="y"===x?"height":"width",oe=te+g[J],re=te-g[ee],ie=-1!==[ec,oc].indexOf(b),le=null!=(Q=null==R?void 0:R[x])?Q:0,ae=ie?oe:te-O[ne]-S[ne]-le+k.altAxis,se=ie?te+O[ne]+S[ne]-le-k.altAxis:re,ue=f&&ie?function(e,t,n){var o=Ac(e,t,n);return o>n?n:o}(ae,te,se):Ac(f?ae:oe,te,f?se:re);C[x]=ue,T[x]=ue-te}t.modifiersData[o]=T}},requiresIfExists:["offset"]};function hd(e,t,n){void 0===n&&(n=!1);var o=vc(t),r=vc(t)&&function(e){var t=e.getBoundingClientRect(),n=Sc(t.width)/e.offsetWidth||1,o=Sc(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=_c(t),l=Rc(e,r,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==mc(t)||Jc(i))&&(a=function(e){return e!==gc(e)&&vc(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Xc(e)}(t)),vc(t)?((s=Rc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Qc(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function md(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function gd(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var bd={placement:"bottom",modifiers:[],strategy:"absolute"};function vd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?bd:r;return function(e,t,n){void 0===n&&(n=i);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},bd,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],a=!1,s={state:r,setOptions:function(n){var a="function"==typeof n?n(r.options):n;u(),r.options=Object.assign({},i,r.options,a),r.scrollParents={reference:bc(e)?td(e):e.contextElement?td(e.contextElement):[],popper:td(t)};var c=function(e){var t=md(e);return hc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,r.options.modifiers)));return r.orderedModifiers=c.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:r,name:t,instance:s,options:o}),u=function(){};l.push(a||u)}})),s.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,n=e.popper;if(vd(t,n)){r.rects={reference:hd(t,Dc(n),"fixed"===r.options.strategy),popper:Tc(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var i=r.orderedModifiers[o],l=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof l&&(r=l({state:r,options:c,name:d,instance:s})||r)}else r.reset=!1,o=-1}}},update:gd((function(){return new Promise((function(e){s.forceUpdate(),e(r)}))})),destroy:function(){u(),a=!0}};if(!vd(e,t))return s;function u(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var wd=yd({defaultModifiers:[Wc,pd,Bc,wc,dd,ad,fd,$c,cd]});const xd=e.forwardRef((function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[l,a]=e.useState(null),s=Ft(e.isValidElement(o)?o.ref:null,n);if(Pt((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),Pt((()=>{if(l&&!i)return Nt(n,l),()=>{Nt(n,null)}}),[n,l,i]),i){if(e.isValidElement(o)){const t={ref:s};return e.cloneElement(o,t)}return Me.jsx(e.Fragment,{children:o})}return Me.jsx(e.Fragment,{children:l&&se.createPortal(o,l)})}));"production"!==process.env.NODE_ENV&&(xd.propTypes={children:oe.node,container:oe.oneOfType([xt,oe.func]),disablePortal:oe.bool}),"production"!==process.env.NODE_ENV&&(xd.propTypes=ct(xd.propTypes));const Cd=xd;function Od(e){return ln("MuiPopper",e)}an("MuiPopper",["root"]);const Sd=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ed=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kd(e){return"function"==typeof e?e():e}function Rd(e){return void 0!==e.nodeType}const Td={},Nd=e.forwardRef((function(t,n){var o;const{anchorEl:r,children:i,direction:l,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m}=t,g=De(t,Sd),b=e.useRef(null),v=Ft(b,n),y=e.useRef(null),w=Ft(y,p),x=e.useRef(w);Pt((()=>{x.current=w}),[w]),e.useImperativeHandle(p,(()=>y.current),[]);const C=function(e,t){if("ltr"===t)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}}(c,l),[O,S]=e.useState(C),[E,k]=e.useState(kd(r));e.useEffect((()=>{y.current&&y.current.forceUpdate()})),e.useEffect((()=>{r&&k(kd(r))}),[r]),Pt((()=>{if(!E||!u)return;if("production"!==process.env.NODE_ENV&&E&&Rd(E)&&1===E.nodeType){const e=E.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{S(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=wd(E,b.current,Ie({placement:C},d,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[E,a,s,u,d,C]);const R={placement:O};null!==m&&(R.TransitionProps=m);const T=en({root:["root"]},Hu(Od)),N=null!=(o=h.root)?o:"div",P=Gu({elementType:N,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:T.root});return Me.jsx(N,Ie({},P,{children:"function"==typeof i?i(R):i}))})),Pd=e.forwardRef((function(t,n){const{anchorEl:o,children:r,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Td,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:b={}}=t,v=De(t,Ed),[y,w]=e.useState(!0);if(!s&&!c&&(!m||y))return null;let x;if(i)x=i;else if(o){const e=kd(o);x=e&&Rd(e)?Rt(e).body:Rt(null).body}const C=c||!s||m&&!y?void 0:"none",O=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return Me.jsx(Cd,{disablePortal:a,container:x,children:Me.jsx(Nd,Ie({anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:m?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:b},v,{style:Ie({position:"fixed",top:0,left:0,display:C},h),TransitionProps:O,children:r}))})}));"production"!==process.env.NODE_ENV&&(Pd.propTypes={anchorEl:nt(oe.oneOfType([xt,oe.object,oe.func]),(e=>{if(e.open){const t=kd(e.anchorEl);if(t&&Rd(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||function(e){return!Rd(e)}(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)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("\n"))}return null})),children:oe.oneOfType([oe.node,oe.func]),container:oe.oneOfType([xt,oe.func]),direction:oe.oneOf(["ltr","rtl"]),disablePortal:oe.bool,keepMounted:oe.bool,modifiers:oe.arrayOf(oe.shape({data:oe.object,effect:oe.func,enabled:oe.bool,fn:oe.func,name:oe.any,options:oe.object,phase:oe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:oe.arrayOf(oe.string),requiresIfExists:oe.arrayOf(oe.string)})),open:oe.bool.isRequired,placement:oe.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:oe.shape({modifiers:oe.array,onFirstUpdate:oe.func,placement:oe.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:oe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({root:oe.elementType}),transition:oe.bool});const Md=Pd;function _d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jd(e){return parseInt(Tt(e).getComputedStyle(e).paddingRight,10)||0}function Id(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&_d(e,r)}))}function Dd(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Fd(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=Rt(e);return t.body===e?Tt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Wt(Rt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${jd(o)+e}px`;const t=Rt(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${jd(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=Rt(o).body;else{const t=o.parentElement,n=Tt(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function Ad(e){return ln("MuiModal",e)}an("MuiModal",["root","hidden","backdrop"]);const Ld=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const Vd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_d(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Id(t,e.mount,e.modalRef,o,!0);const r=Dd(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=Dd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Fd(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=Dd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&_d(e.modalRef,t),Id(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&_d(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},$d=e.forwardRef((function(t,n){var o,r;const{children:i,closeAfterTransition:l=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:m=!1,manager:g=Vd,onBackdropClick:b,onClose:v,onKeyDown:y,open:w,onTransitionEnter:x,onTransitionExited:C,slotProps:O={},slots:S={}}=t,E=De(t,Ld),k=g,[R,T]=e.useState(!w),N=e.useRef({}),P=e.useRef(null),M=e.useRef(null),_=Ft(M,n),j=function(e){return!!e&&e.props.hasOwnProperty("in")}(i),I=null==(o=t["aria-hidden"])||o,D=()=>(N.current.modalRef=M.current,N.current.mountNode=P.current,N.current),F=()=>{k.mount(D(),{disableScrollLock:f}),M.current&&(M.current.scrollTop=0)},A=Dt((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Rt(P.current).body;k.add(D(),e),M.current&&F()})),L=e.useCallback((()=>k.isTopModal(D())),[k]),V=Dt((e=>{P.current=e,e&&M.current&&(w&&L()?F():_d(M.current,I))})),$=e.useCallback((()=>{k.remove(D(),I)}),[k,I]);e.useEffect((()=>()=>{$()}),[$]),e.useEffect((()=>{w?A():(!j||!l)&&$()}),[w,$,j,l,A]);const q=Ie({},t,{closeAfterTransition:l,disableAutoFocus:s,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,exited:R,hideBackdrop:h,keepMounted:m}),H=(e=>{const{open:t,exited:n}=e;return en({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Hu(Ad))})(q),z={};void 0===i.props.tabIndex&&(z.tabIndex="-1"),j&&(z.onEnter=St((()=>{T(!1),x&&x()}),i.props.onEnter),z.onExited=St((()=>{T(!0),C&&C(),l&&$()}),i.props.onExited));const B=null!=(r=S.root)?r:"div",U=Gu({elementType:B,externalSlotProps:O.root,externalForwardedProps:E,additionalProps:{ref:_,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&L()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:H.root,ownerState:q}),W=S.backdrop,G=Gu({elementType:W,externalSlotProps:O.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),v&&v(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:q});return m||w||j&&!R?Me.jsx(Cd,{ref:V,container:a,disablePortal:d,children:Me.jsxs(B,Ie({},U,{children:[!h&&W?Me.jsx(W,Ie({},G)):null,Me.jsx(Ju,{disableEnforceFocus:u,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:L,open:w,children:e.cloneElement(i,z)})]}))}):null}));"production"!==process.env.NODE_ENV&&($d.propTypes={children:st.isRequired,closeAfterTransition:oe.bool,container:oe.oneOfType([xt,oe.func]),disableAutoFocus:oe.bool,disableEnforceFocus:oe.bool,disableEscapeKeyDown:oe.bool,disablePortal:oe.bool,disableRestoreFocus:oe.bool,disableScrollLock:oe.bool,hideBackdrop:oe.bool,keepMounted:oe.bool,onBackdropClick:oe.func,onClose:oe.func,onTransitionEnter:oe.func,onTransitionExited:oe.func,open:oe.bool.isRequired,slotProps:oe.shape({backdrop:oe.oneOfType([oe.func,oe.object]),root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({backdrop:oe.elementType,root:oe.elementType})});const qd=$d,Hd=["onChange","maxRows","minRows","style","value"];function zd(e){return parseInt(e,10)||0}const Bd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ud(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Wd=e.forwardRef((function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:l,value:a}=t,s=De(t,Hd),{current:u}=e.useRef(null!=a),c=e.useRef(null),d=Ft(n,c),p=e.useRef(null),f=e.useRef(0),[h,m]=e.useState({outerHeightStyle:0}),g=e.useCallback((()=>{const e=c.current,n=Tt(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const o=p.current;o.style.width=n.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const l=n.boxSizing,a=zd(n.paddingBottom)+zd(n.paddingTop),s=zd(n.borderBottomWidth)+zd(n.borderTopWidth),u=o.scrollHeight;o.value="x";const d=o.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===l?a+s:0),overflow:Math.abs(f-u)<=1}}),[r,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(f.current+=1,{overflow:o,outerHeightStyle:n}):("production"!==process.env.NODE_ENV&&20===f.current&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n")),e)},v=e.useCallback((()=>{const e=g();Ud(e)||m((t=>b(t,e)))}),[g]);e.useEffect((()=>{const e=Et((()=>{f.current=0,c.current&&(()=>{const e=g();Ud(e)||se.flushSync((()=>{m((t=>b(t,e)))}))})()}));let t;const n=c.current,o=Tt(n);return o.addEventListener("resize",e),typeof ResizeObserver<"u"&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),o.removeEventListener("resize",e),t&&t.disconnect()}})),Pt((()=>{v()})),e.useEffect((()=>{f.current=0}),[a]);return Me.jsxs(e.Fragment,{children:[Me.jsx("textarea",Ie({value:a,onChange:e=>{f.current=0,u||v(),o&&o(e)},ref:d,rows:i,style:Ie({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},l)},s)),Me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:Ie({},Bd,l,{paddingTop:0,paddingBottom:0})})]})}));"production"!==process.env.NODE_ENV&&(Wd.propTypes={className:oe.string,maxRows:oe.oneOfType([oe.number,oe.string]),minRows:oe.oneOfType([oe.number,oe.string]),onChange:oe.func,placeholder:oe.string,style:oe.object,value:oe.oneOfType([oe.arrayOf(oe.string),oe.number,oe.string])});const Gd=Wd;function Kd(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Yd(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:r="any",stringify:i,trim:l=!1}=e;return(e,{inputValue:a,getOptionLabel:s})=>{let u=l?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=Kd(u));const c=u?e.filter((e=>{let o=(i||s)(e);return n&&(o=o.toLowerCase()),t&&(o=Kd(o)),"start"===r?0===o.indexOf(u):o.indexOf(u)>-1})):e;return"number"==typeof o?c.slice(0,o):c}}function Zd(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Xd=Yd(),Qd=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Jd(t){const{unstable_isActiveElementInListbox:n=Qd,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,clearOnBlur:s=!t.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=Xd,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:x=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:O=!t.freeSolo,id:S,includeInputInList:E=!1,inputValue:k,isOptionEqualToValue:R=((e,t)=>e===t),multiple:T=!1,onChange:N,onClose:P,onHighlightChange:M,onInputChange:_,onOpen:j,open:I,openOnFocus:D=!1,options:F,readOnly:A=!1,selectOnFocus:L=!t.freeSolo,value:V}=t,$=jt(S);let q=x;q=e=>{const t=x(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${c} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=e.useRef(!1),z=e.useRef(!0),B=e.useRef(null),U=e.useRef(null),[W,G]=e.useState(null),[K,Y]=e.useState(-1),Z=i?0:-1,X=e.useRef(Z),[Q,J]=It({controlled:V,default:d,name:c}),[ee,te]=It({controlled:k,default:"",name:c,state:"inputValue"}),[ne,oe]=e.useState(!1),re=e.useCallback(((e,t)=>{if(!(T?Q.length<t.length:null!==t)&&!s)return;let n;if(T)n="";else if(null==t)n="";else{const e=q(t);n="string"==typeof e?e:""}ee!==n&&(te(n),_&&_(e,n,"reset"))}),[q,ee,T,_,te,s,Q]),[ie,le]=It({controlled:I,default:!1,name:c,state:"open"}),[ae,se]=e.useState(!0),ue=!T&&null!=Q&&ee===q(Q),ce=ie&&!A,de=ce?b(F.filter((e=>!(v&&(T?Q:[Q]).some((t=>null!==t&&R(e,t)))))),{inputValue:ue&&ae?"":ee,getOptionLabel:q}):[],pe=Gt({filteredOptions:de,value:Q,inputValue:ee});e.useEffect((()=>{const e=Q!==pe.value;ne&&!e||y&&!e||re(null,Q)}),[Q,re,ne,pe.value,y]);const fe=ie&&de.length>0&&!A;if("production"!==process.env.NODE_ENV&&null!==Q&&!y&&F.length>0){const e=(T?Q:[Q]).filter((e=>!F.some((t=>R(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${c} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const he=Dt((e=>{-1===e?B.current.focus():W.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{T&&K>Q.length-1&&(Y(-1),he(-1))}),[Q,T,K,he]);const me=Dt((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?B.current.removeAttribute("aria-activedescendant"):B.current.setAttribute("aria-activedescendant",`${$}-option-${t}`),M&&M(e,-1===t?null:de[t],n),!U.current)return;const r=U.current.querySelector(`[role="option"].${o}-focused`);r&&(r.classList.remove(`${o}-focused`),r.classList.remove(`${o}-focusVisible`));let i=U.current;if("listbox"!==U.current.getAttribute("role")&&(i=U.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const l=U.current.querySelector(`[data-option-index="${t}"]`);if(l&&(l.classList.add(`${o}-focused`),"keyboard"===n&&l.classList.add(`${o}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n)){const e=l,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ge=Dt((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!ce)return;const i=function(e,t){if(!U.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===de.length||"previous"===t&&-1===n)return-1;const e=U.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}((()=>{const e=de.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=X.current+t;return n<0?-1===n&&E?-1:g&&-1!==X.current||Math.abs(t)>1?0:e:n>e?n===e+1&&E?-1:g||Math.abs(t)>1?e:0:n})(),n);if(me({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)B.current.value=ee;else{const e=q(de[i]);B.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&B.current.setSelectionRange(ee.length,e.length)}})),be=e.useCallback((()=>{if(!ce||(()=>{if(-1!==X.current&&pe.filteredOptions&&pe.filteredOptions.length!==de.length&&pe.inputValue===ee&&(T?Q.length===pe.value.length&&pe.value.every(((e,t)=>q(Q[t])===q(e))):(e=pe.value,t=Q,(e?q(e):"")===(t?q(t):"")))){const e=pe.filteredOptions[X.current];if(e&&de.some((t=>q(t)===q(e))))return!0}var e,t;return!1})())return;const e=T?Q[0]:Q;if(0!==de.length&&null!=e){if(U.current){if(null!=e){const t=de[X.current];if(T&&t&&-1!==Zd(Q,(e=>R(t,e))))return;const n=Zd(de,(t=>R(t,e)));return void(-1===n?ge({diff:"reset"}):me({index:n}))}if(X.current>=de.length-1)return void me({index:de.length-1});me({index:X.current})}}else ge({diff:"reset"})}),[de.length,!T&&Q,v,ge,me,ce,ee,T]),ve=Dt((e=>{Nt(U,e),e&&be()}));"production"!==process.env.NODE_ENV&&e.useEffect((()=>{(!B.current||"INPUT"!==B.current.nodeName)&&(B.current&&"TEXTAREA"===B.current.nodeName?console.warn([`A textarea element was provided to ${c} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (e.g. enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${B.current} while an HTMLInputElement was expected.`,`Instead, ${c} expects an input element.`,"","useAutocomplete"===c?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[c]),e.useEffect((()=>{be()}),[be]);const ye=e=>{ie||(le(!0),se(!0),j&&j(e))},we=(e,t)=>{ie&&(le(!1),P&&P(e,t))},xe=(e,t,n,o)=>{if(T){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;N&&N(e,t,n,o),J(t)},Ce=e.useRef(!1),Oe=(e,t,n="selectOption",o="options")=>{let r=n,i=t;if(T){if(i=Array.isArray(Q)?Q.slice():[],"production"!==process.env.NODE_ENV){const e=i.filter((e=>R(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${c} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=Zd(i,(e=>R(t,e)));-1===e?i.push(t):"freeSolo"!==o&&(i.splice(e,1),r="removeOption")}re(e,i),xe(e,i,r,{option:t}),!f&&(!e||!e.ctrlKey&&!e.metaKey)&&we(e,r),(!0===a||"touch"===a&&Ce.current||"mouse"===a&&!Ce.current)&&B.current.blur()};const Se=(e,t)=>{if(!T)return;""===ee&&we(e,"toggleInput");let n=K;-1===K?""===ee&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=W.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Y(n),he(n)},Ee=e=>{H.current=!0,te(""),_&&_(e,"","clear"),xe(e,T?[]:null,"clear")},ke=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),he(-1)),229!==t.which))switch(t.key){case"Home":ce&&O&&(t.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ce&&O&&(t.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ge({diff:-5,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"PageDown":t.preventDefault(),ge({diff:5,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowDown":t.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowUp":t.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"ArrowLeft":Se(t,"previous");break;case"ArrowRight":Se(t,"next");break;case"Enter":if(-1!==X.current&&ce){const e=de[X.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Oe(t,e,"selectOption"),r&&B.current.setSelectionRange(B.current.value.length,B.current.value.length)}else y&&""!==ee&&!1===ue&&(T&&t.preventDefault(),Oe(t,ee,"createOption","freeSolo"));break;case"Escape":ce?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):u&&(""!==ee||T&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(T&&!A&&""===ee&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(T&&!A&&""===ee&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}}},Re=e=>{oe(!0),D&&!H.current&&ye(e)},Te=e=>{n(U)?B.current.focus():(oe(!1),z.current=!0,H.current=!1,l&&-1!==X.current&&ce?Oe(e,de[X.current],"blur"):l&&y&&""!==ee?Oe(e,ee,"blur","freeSolo"):s&&re(e,Q),we(e,"blur"))},Ne=e=>{const t=e.target.value;ee!==t&&(te(t),se(!1),_&&_(e,t,"input")),""===t?!p&&!T&&xe(e,null,"clear"):ye(e)},Pe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));X.current!==t&&me({event:e,index:t,reason:"mouse"})},Me=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},_e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Oe(e,de[t],"selectOption"),Ce.current=!1},je=e=>t=>{const n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})},De=e=>{ie?we(e,"toggleInput"):ye(e)},Fe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},Ae=e=>{e.currentTarget.contains(e.target)&&(B.current.focus(),L&&z.current&&B.current.selectionEnd-B.current.selectionStart==0&&B.current.select(),z.current=!1)},Le=e=>{(""===ee||!ie)&&De(e)};let Ve=y&&ee.length>0;Ve=Ve||(T?Q.length>0:null!==Q);let $e=de;if(C){const e=new Map;let t=!1;$e=de.reduce(((n,o,r)=>{const i=C(o);return n.length>0&&n[n.length-1].group===i?n[n.length-1].options.push(o):("production"!==process.env.NODE_ENV&&(e.get(i)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${c} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(i,!0)),n.push({key:r,index:r,group:i,options:[o]})),n}),[])}return h&&ne&&Te(),{getRootProps:(e={})=>Ie({"aria-owns":fe?`${$}-listbox`:null},e,{onKeyDown:ke(e),onMouseDown:Fe,onClick:Ae}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ee,onBlur:Te,onFocus:Re,onChange:Ne,onMouseDown:Le,"aria-activedescendant":ce?"":null,"aria-autocomplete":r?"both":"list","aria-controls":fe?`${$}-listbox`:void 0,"aria-expanded":fe,autoComplete:"off",ref:B,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:De}),getTagProps:({index:e})=>Ie({key:e,"data-tag-index":e,tabIndex:-1},!A&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:ve,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?Q:[Q]).some((e=>null!=e&&R(t,e))),o=!!w&&w(t);return{key:q(t),tabIndex:-1,role:"option",id:`${$}-option-${e}`,onMouseMove:Pe,onClick:_e,onTouchStart:Me,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:$,inputValue:ee,value:Q,dirty:Ve,expanded:ce&&W,popupOpen:ce,focused:ne||-1!==K,anchorEl:W,setAnchorEl:G,focusedTag:K,groupedOptions:$e}}function ep({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&typeof e[o]>"u"&&(t[o]=n[o]),t)),{})}const tp=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(tp.displayName="FormControlContext");const np=tp;function op(){return e.useContext(np)}const rp=e=>Oo(e)&&"classes"!==e,ip=Oo,lp=ko({themeId:hr,defaultTheme:fr,rootShouldForwardProp:rp});function ap({props:e,name:t}){return To({props:e,name:t,defaultTheme:fr,themeId:hr})}function sp(e){return Me.jsx(ho,Ie({},e,{defaultTheme:fr,themeId:hr}))}function up(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function cp(e,t=!1){return e&&(up(e.value)&&""!==e.value||t&&up(e.defaultValue)&&""!==e.defaultValue)}function dp(e){return ln("MuiInputBase",e)}"production"!==process.env.NODE_ENV&&(sp.propTypes={styles:oe.oneOfType([oe.array,oe.func,oe.number,oe.object,oe.string,oe.bool])});const pp=an("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),fp=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],hp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ot(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mp=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},gp=lp("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hp})((({theme:e,ownerState:t})=>Ie({},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",[`&.${pp.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ie({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),bp=lp("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=Ie({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ie({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pp.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${pp.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),vp=Me.jsx(sp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),yp=e.forwardRef((function(t,n){var o;const r=ap({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:w,minRows:x,multiline:C=!1,name:O,onBlur:S,onChange:E,onClick:k,onFocus:R,onKeyDown:T,onKeyUp:N,placeholder:P,readOnly:M,renderSuffix:_,rows:j,slotProps:I={},slots:D={},startAdornment:F,type:A="text",value:L}=r,V=De(r,fp),$=null!=v.value?v.value:L,{current:q}=e.useRef(null!=$),H=e.useRef(),z=e.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.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("\n"))}),[]),B=Ft(H,y,v.ref,z),[U,W]=e.useState(!1),G=op();"production"!==process.env.NODE_ENV&&e.useEffect((()=>{if(G)return G.registerEffect()}),[G]);const K=ep({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,e.useEffect((()=>{!G&&p&&U&&(W(!1),S&&S())}),[G,p,U,S]);const Y=G&&G.onFilled,Z=G&&G.onEmpty,X=e.useCallback((e=>{cp(e)?Y&&Y():Z&&Z()}),[Y,Z]);Pt((()=>{q&&X({value:$})}),[$,X,q]);e.useEffect((()=>{X(H.current)}),[]);let Q=b,J=v;C&&"input"===Q&&(j?("production"!==process.env.NODE_ENV&&(x||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),J=Ie({type:void 0,minRows:j,maxRows:j},J)):J=Ie({type:void 0,maxRows:w,minRows:x},J),Q=Gd);e.useEffect((()=>{G&&G.setAdornedStart(!!F)}),[G,F]);const ee=Ie({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:C,size:K.size,startAdornment:F,type:A}),te=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return en({root:["root",`color${Ot(n)}`,o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},dp,t)})(ee),ne=D.root||u.Root||gp,oe=I.root||c.root||{},re=D.input||u.Input||bp;return J=Ie({},J,null!=(o=I.input)?o:c.input),Me.jsxs(e.Fragment,{children:[!f&&vp,Me.jsxs(ne,Ie({},oe,!Lu(ne)&&{ownerState:Ie({},ee,oe.ownerState)},{ref:n,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),k&&!K.disabled&&k(e)}},V,{className:vo(te.root,oe.className,s,M&&"MuiInputBase-readOnly"),children:[F,Me.jsx(np.Provider,{value:null,children:Me.jsx(re,Ie({ownerState:ee,"aria-invalid":K.error,"aria-describedby":i,autoComplete:l,autoFocus:a,defaultValue:d,disabled:K.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:O,placeholder:P,readOnly:M,required:K.required,rows:j,value:$,onKeyDown:T,onKeyUp:N,type:A},J,!Lu(re)&&{as:Q,ownerState:Ie({},ee,J.ownerState)},{ref:B,className:vo(te.input,J.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!q){const t=e.target||H.current;if(null==t)throw new Error("production"!==process.env.NODE_ENV?"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.":dt(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):W(!0))}}))}),h,_?_(Ie({},K,{startAdornment:F})):null]}))]})}));"production"!==process.env.NODE_ENV&&(yp.propTypes={"aria-describedby":oe.string,autoComplete:oe.string,autoFocus:oe.bool,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["primary","secondary","error","info","success","warning"]),oe.string]),components:oe.shape({Input:oe.elementType,Root:oe.elementType}),componentsProps:oe.shape({input:oe.object,root:oe.object}),defaultValue:oe.any,disabled:oe.bool,disableInjectingGlobalStyles:oe.bool,endAdornment:oe.node,error:oe.bool,fullWidth:oe.bool,id:oe.string,inputComponent:ut,inputProps:oe.object,inputRef:Ct,margin:oe.oneOf(["dense","none"]),maxRows:oe.oneOfType([oe.number,oe.string]),minRows:oe.oneOfType([oe.number,oe.string]),multiline:oe.bool,name:oe.string,onBlur:oe.func,onChange:oe.func,onClick:oe.func,onFocus:oe.func,onInvalid:oe.func,onKeyDown:oe.func,onKeyUp:oe.func,placeholder:oe.string,readOnly:oe.bool,renderSuffix:oe.func,required:oe.bool,rows:oe.oneOfType([oe.number,oe.string]),size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),slotProps:oe.shape({input:oe.object,root:oe.object}),slots:oe.shape({input:oe.elementType,root:oe.elementType}),startAdornment:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),type:oe.string,value:oe.any});const wp=yp;const xp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Cp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Op=lp(wp)({fontSize:"inherit"});function Sp(t){const{id:n,value:o,field:r,colDef:i,hasFocus:l,inputProps:a,onValueChange:s}=t,u=De(t,Cp),c="dateTime"===i.type,d=ia(),p=e.useRef(),f=e.useMemo((()=>{let e,t;return e=null==o?null:o instanceof Date?o:new Date((o??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,c?16:10),{parsed:e,formatted:t}}),[o,c]),[h,m]=e.useState(f),g=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},xa,t)})({classes:aa().classes}),b=e.useRef(!1),v=e.useCallback((e=>{if(""===e)return null;const[t,n]=e.split("T"),[o,r,i]=t.split("-"),l=new Date;if(l.setFullYear(Number(o),Number(r)-1,Number(i)),l.setHours(0,0,0,0),n){const[e,t]=n.split(":");l.setHours(Number(e),Number(t),0,0)}return l}),[]),y=e.useCallback((async e=>{const t=e.target.value,o=v(t);s&&await s(e,o),m({parsed:o,formatted:t}),d.current.setEditCellValue({id:n,field:r,value:o},e)}),[d,r,n,s,v]);e.useEffect((()=>{m((e=>{var t,n;return f.parsed!==e.parsed&&(null==(t=f.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?f:e}))}),[f]),Pt((()=>{l&&p.current.focus()}),[l]);const w=d.current.unstable_getEditCellMeta(n,r);return Me.jsx(Op,Ie({inputRef:e=>{if(p.current=e,null!=w&&w.unstable_updateValueOnRender&&!b.current){const e=p.current.value,t=v(e);m({parsed:t,formatted:e}),d.current.setEditCellValue({id:n,field:r,value:t}),b.current=!0}},fullWidth:!0,className:g.root,type:c?"datetime-local":"date",inputProps:Ie({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:h.formatted,onChange:y},u))}"production"!==process.env.NODE_ENV&&(Sp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Ep=e=>Me.jsx(Sp,Ie({},e)),kp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Rp=lp(wp,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>Ie({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),Tp=e.forwardRef(((t,n)=>{const o=aa(),{id:r,value:i,field:l,colDef:a,hasFocus:s,debounceMs:u=200,isProcessingProps:c,onValueChange:d}=t,p=De(t,kp),f=ia(),h=e.useRef(),[m,g]=e.useState(i),b=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},xa,t)})(o),v=e.useCallback((async e=>{const t=e.target.value;d&&await d(e,t);const n=f.current.getColumn(l);let o=t;n.valueParser&&(o=n.valueParser(t,f.current.getCellParams(r,l))),g(o),f.current.setEditCellValue({id:r,field:l,value:o,debounceMs:u,unstable_skipValueParser:!0},e)}),[f,u,l,r,d]),y=f.current.unstable_getEditCellMeta(r,l);return e.useEffect((()=>{"debouncedSetEditCellValue"!==(null==y?void 0:y.changeReason)&&g(i)}),[y,i]),Pt((()=>{s&&h.current.focus()}),[s]),Me.jsx(Rp,Ie({ref:n,inputRef:h,className:b.root,ownerState:o,fullWidth:!0,type:"number"===a.type?a.type:"text",value:m??"",onChange:v,endAdornment:c?Me.jsx(o.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}));"production"!==process.env.NODE_ENV&&(Tp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,debounceMs:oe.number,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Np=e=>"Escape"===e,Pp=e=>"Tab"===e,Mp=e=>" "===e;function _p(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const jp=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||Mp(e),Ip=e=>Pp(e)||Np(e);function Dp(e){return"singleSelect"===(null==e?void 0:e.type)}function Fp(e,t,n){if(void 0===t)return;const o=t.find((t=>{const o=n(t);return String(o)===String(e)}));return n(o)}const Ap=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Lp=["MenuProps"];function Vp(t){var n,o,r;const l=aa(),{id:a,value:s,field:u,row:c,colDef:d,hasFocus:p,error:f,onValueChange:h,initialOpen:m=l.editMode===au.Cell,getOptionLabel:g,getOptionValue:b}=t,v=De(t,Ap),y=ia(),w=e.useRef(),x=e.useRef(),[C,O]=e.useState(m),S=null!=(o=((null==(n=l.slotProps)?void 0:n.baseSelect)||{}).native)&&o,E=(null==(r=l.slotProps)?void 0:r.baseSelect)||{},{MenuProps:k}=E,R=De(E,Lp);if(Pt((()=>{var e;p&&(null==(e=x.current)||e.focus())}),[p]),!Dp(d))return null;let T;if(T="function"==typeof(null==d?void 0:d.valueOptions)?null==d?void 0:d.valueOptions({id:a,row:c,field:u}):null==d?void 0:d.valueOptions,!T)return null;const N=b||d.getOptionValue,P=g||d.getOptionLabel;return T&&d?Me.jsx(l.slots.baseSelect,Ie({ref:w,inputRef:x,value:s,onChange:async e=>{if(!Dp(d)||!T)return;O(!1);const t=Fp(e.target.value,T,N);h&&await h(e,t),await y.current.setEditCellValue({id:a,field:u,value:t},e)},open:C,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||O(!0)},MenuProps:Ie({onClose:(e,t)=>{if(l.editMode!==au.Row){if("backdropClick"===t||Np(e.key)){const t=y.current.getCellParams(a,u);y.current.publishEvent("cellEditStop",Ie({},t,{reason:Np(e.key)?pu.escapeKeyDown:pu.cellFocusOut}))}}else O(!1)}},k),error:f,native:S,fullWidth:!0},v,R,{children:T.map((e=>{var t;const n=N(e);return i(l.slots.baseSelectOption,Ie({},(null==(t=l.slotProps)?void 0:t.baseSelectOption)||{},{native:S,key:n,value:n}),P(e))}))})):null}"production"!==process.env.NODE_ENV&&(Vp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,getOptionLabel:oe.func,getOptionValue:oe.func,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,initialOpen:oe.bool,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const $p=e.createContext({});"production"!==process.env.NODE_ENV&&($p.displayName="ListContext");const qp=$p;function Hp(e){return ln("MuiList",e)}an("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Bp=lp("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]}})((({ownerState:e})=>Ie({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Up=e.forwardRef((function(t,n){const o=ap({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=o,c=De(o,zp),d=e.useMemo((()=>({dense:a})),[a]),p=Ie({},o,{component:l,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return en({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},Hp,t)})(p);return Me.jsx(qp.Provider,{value:d,children:Me.jsxs(Bp,Ie({as:l,className:vo(f.root,i),ref:n,ownerState:p},c,{children:[u,r]}))})}));"production"!==process.env.NODE_ENV&&(Up.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,dense:oe.bool,disablePadding:oe.bool,subheader:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const Wp=Up,Gp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Yp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Zp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Xp(e,t,n,o,r,i){let l=!1,a=r(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const t=!o&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Zp(a,i)&&!t)return a.focus(),!0;a=r(e,a,n)}return!1}const Qp=e.forwardRef((function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=De(t,Gp),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt((()=>{r&&f.current.focus()}),[r]),e.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Wt(Rt(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=Ft(f,n);let g=-1;e.Children.forEach(l,((t,n)=>{e.isValidElement(t)?("production"!==process.env.NODE_ENV&&bt.isFragment(t)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))):g===n&&(g+=1,g>=l.length&&(g=-1))}));const b=e.Children.map(l,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return Me.jsx(Wp,Ie({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key,o=Rt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Xp(t,o,u,s,Kp);else if("ArrowUp"===n)e.preventDefault(),Xp(t,o,u,s,Yp);else if("Home"===n)e.preventDefault(),Xp(t,null,u,s,Kp);else if("End"===n)e.preventDefault(),Xp(t,null,u,s,Yp);else if(1===n.length){const r=h.current,i=n.toLowerCase(),l=performance.now();r.keys.length>0&&(l-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=l,r.keys.push(i);const a=o&&!r.repeating&&Zp(o,r);r.previousKeyMatched&&(a||Xp(t,o,!1,s,Kp,r))?e.preventDefault():r.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:b}))}));"production"!==process.env.NODE_ENV&&(Qp.propTypes={autoFocus:oe.bool,autoFocusItem:oe.bool,children:oe.node,className:oe.string,disabledItemsFocusable:oe.bool,disableListWrap:oe.bool,onKeyDown:oe.func,variant:oe.oneOf(["menu","selectedMenu"])});const Jp=Qp,ef=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tf(e){return`scale(${e}, ${e**2})`}const nf={entering:{opacity:1,transform:tf(1)},entered:{opacity:1,transform:"none"}},of=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rf=e.forwardRef((function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:l,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Ke}=t,b=De(t,ef),v=e.useRef(),y=e.useRef(),w=mr(),x=e.useRef(null),C=Ft(x,i.ref,n),O=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=O(c),E=O(((e,t)=>{gr(e);const{duration:n,delay:o,easing:r}=br({style:h,timeout:m,easing:l},{mode:"enter"});let i;"auto"===m?(i=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:o}),w.transitions.create("transform",{duration:of?i:.666*i,delay:o,easing:r})].join(","),s&&s(e,t)})),k=O(u),R=O(f),T=O((e=>{const{duration:t,delay:n,easing:o}=br({style:h,timeout:m,easing:l},{mode:"exit"});let r;"auto"===m?(r=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=r):r=t,e.style.transition=[w.transitions.create("opacity",{duration:r,delay:n}),w.transitions.create("transform",{duration:of?r:.666*r,delay:of?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=tf(.75),d&&d(e)})),N=O(p);return e.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Me.jsx(g,Ie({appear:r,in:a,nodeRef:x,onEnter:E,onEntered:k,onEntering:S,onExit:T,onExited:N,onExiting:R,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),o&&o(x.current,e)},timeout:"auto"===m?null:m},b,{children:(t,n)=>e.cloneElement(i,Ie({style:Ie({opacity:0,transform:tf(.75),visibility:"exited"!==t||a?void 0:"hidden"},nf[t],h,i.props.style),ref:C},n))}))}));"production"!==process.env.NODE_ENV&&(rf.propTypes={addEndListener:oe.func,appear:oe.bool,children:st.isRequired,easing:oe.oneOfType([oe.shape({enter:oe.string,exit:oe.string}),oe.string]),in:oe.bool,onEnter:oe.func,onEntered:oe.func,onEntering:oe.func,onExit:oe.func,onExited:oe.func,onExiting:oe.func,style:oe.object,timeout:oe.oneOfType([oe.oneOf(["auto"]),oe.number,oe.shape({appear:oe.number,enter:oe.number,exit:oe.number})])}),rf.muiSupportAuto=!0;const lf=rf;function af(e){return ln("MuiPaper",e)}an("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const sf=["className","component","elevation","square","variant"],uf=lp("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ie({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ie({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Io("#fff",xp(t.elevation))}, ${Io("#fff",xp(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),cf=e.forwardRef((function(e,t){const n=ap({props:e,name:"MuiPaper"}),{className:o,component:r="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=De(n,sf),u=Ie({},n,{component:r,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:o,classes:r}=e;return en({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${n}`]},af,r)})(u);return"production"!==process.env.NODE_ENV&&void 0===mr().shadows[i]&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join("\n")),Me.jsx(uf,Ie({as:r,ownerState:u,className:vo(c.root,o),ref:t},s))}));"production"!==process.env.NODE_ENV&&(cf.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,elevation:nt(Qt,(e=>{const{elevation:t,variant:n}=e;return t>0&&"outlined"===n?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null})),square:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["elevation","outlined"]),oe.string])});const df=cf,pf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ff=lp(Md,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hf=e.forwardRef((function(e,t){var n;const o=co(),r=ap({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=r,w=De(r,pf),x=null!=(n=null==v?void 0:v.root)?n:null==a?void 0:a.Root,C=Ie({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},w);return Me.jsx(ff,Ie({as:l,direction:null==o?void 0:o.direction,slots:{root:x},slotProps:y??s},C,{ref:t}))}));"production"!==process.env.NODE_ENV&&(hf.propTypes={anchorEl:oe.oneOfType([xt,oe.object,oe.func]),children:oe.oneOfType([oe.node,oe.func]),component:oe.elementType,components:oe.shape({Root:oe.elementType}),componentsProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),container:oe.oneOfType([xt,oe.func]),disablePortal:oe.bool,keepMounted:oe.bool,modifiers:oe.arrayOf(oe.shape({data:oe.object,effect:oe.func,enabled:oe.bool,fn:oe.func,name:oe.any,options:oe.object,phase:oe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:oe.arrayOf(oe.string),requiresIfExists:oe.arrayOf(oe.string)})),open:oe.bool.isRequired,placement:oe.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:oe.shape({modifiers:oe.array,onFirstUpdate:oe.func,placement:oe.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:oe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({root:oe.elementType}),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),transition:oe.bool});const mf=hf,gf=["open","target","onClickAway","children","position","className","onExited"],bf=e=>{const{classes:t}=e;return en({root:["menu"]},xa,t)},vf=lp(mf,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Ca.menuList}`]:{outline:0}}))),yf={"bottom-start":"top left","bottom-end":"top right"};function wf(t){var n;const{open:o,target:r,onClickAway:i,children:l,position:a,className:s,onExited:u}=t,c=De(t,gf),d=ia(),p=aa(),f=bf(p);e.useEffect((()=>{const e=o?"menuOpen":"menuClose";d.current.publishEvent(e,{target:r})}),[d,o,r]);const h=e=>t=>{e&&e(),u&&u(t)};return Me.jsx(vf,Ie({as:p.slots.basePopper,className:vo(s,f.root),ownerState:p,open:o,anchorEl:r,transition:!0,placement:a},c,null==(n=p.slotProps)?void 0:n.basePopper,{children:({TransitionProps:e,placement:t})=>Me.jsx(Yu,{onClickAway:i,mouseEvent:"onMouseDown",children:Me.jsx(lf,Ie({},e,{style:{transformOrigin:yf[t]},onExited:h(null==e?void 0:e.onExited),children:Me.jsx(df,{children:l})}))})}))}"production"!==process.env.NODE_ENV&&(wf.propTypes={children:oe.node,onClickAway:oe.func.isRequired,onExited:oe.func,open:oe.bool.isRequired,position:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:xt});const xf=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function Cf(t){var n;const{colDef:o,id:r,hasFocus:i,tabIndex:l,position:a="bottom-end",focusElementRef:s}=t,u=De(t,xf),[c,d]=e.useState(-1),[p,f]=e.useState(!1),h=ia(),m=e.useRef(null),g=e.useRef(null),b=e.useRef(!1),v=e.useRef({}),y=mr(),w=jt(),x=jt(),C=aa();if(!(e=>"function"==typeof e.getActions)(o))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const O=o.getActions(h.current.getRowParams(r)),S=O.filter((e=>!e.props.showInMenu)),E=O.filter((e=>e.props.showInMenu)),k=S.length+(E.length?1:0);e.useLayoutEffect((()=>{i||Object.entries(v.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete v.current[e]}))}))}),[i]),e.useEffect((()=>{c<0||!m.current||c>=m.current.children.length||m.current.children[c].focus({preventScroll:!0})}),[c]),e.useEffect((()=>{i||(d(-1),b.current=!1)}),[i]),e.useImperativeHandle(s,(()=>({focus(){b.current||d(0)}})),[]),e.useEffect((()=>{c>=k&&d(k-1)}),[c,k]);const R=()=>{f(!1)},T=e=>t=>{v.current[e]=t},N=(e,t)=>n=>{d(e),b.current=!0,t&&t(n)};return Me.jsxs("div",Ie({role:"menu",ref:m,tabIndex:-1,className:Ca.actionsCell,onKeyDown:e=>{if(k<=1)return;let t=c;"ArrowRight"===e.key?"rtl"===y.direction?t-=1:t+=1:"ArrowLeft"===e.key&&("rtl"===y.direction?t+=1:t-=1),!(t<0||t>=k)&&t!==c&&(e.preventDefault(),e.stopPropagation(),d(t))}},u,{children:[S.map(((t,n)=>e.cloneElement(t,{key:n,touchRippleRef:T(n),onClick:N(n,t.props.onClick),tabIndex:c===n?l:-1}))),E.length>0&&x&&Me.jsx(C.slots.baseIconButton,Ie({ref:g,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?w:void 0,role:"menuitem",size:"small",onClick:()=>{f(!0),d(k-1),b.current=!0},touchRippleRef:T(x),tabIndex:c===S.length?l:-1},null==(n=C.slotProps)?void 0:n.baseIconButton,{children:Me.jsx(C.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&Me.jsx(wf,{onClickAway:R,onClick:R,open:p,target:g.current,position:a,children:Me.jsx(Jp,{id:w,className:Ca.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&R()},"aria-labelledby":x,variant:"menu",autoFocusItem:!0,children:E.map(((t,n)=>e.cloneElement(t,{key:n})))})})]}))}"production"!==process.env.NODE_ENV&&(Cf.propTypes={api:oe.object,cellMode:oe.oneOf(["edit","view"]).isRequired,colDef:oe.object.isRequired,field:oe.string.isRequired,focusElementRef:oe.oneOfType([oe.func,oe.shape({current:oe.shape({focus:oe.func.isRequired})})]),formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,position:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});function Of(t){const{className:n,classes:o,pulsate:r=!1,rippleX:i,rippleY:l,rippleSize:a,in:s,onExited:u,timeout:c}=t,[d,p]=e.useState(!1),f=vo(n,o.ripple,o.rippleVisible,r&&o.ripplePulsate),h={width:a,height:a,top:-a/2+l,left:-a/2+i},m=vo(o.child,d&&o.childLeaving,r&&o.childPulsate);return!s&&!d&&p(!0),e.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Me.jsx("span",{className:f,style:h,children:Me.jsx("span",{className:m})})}"production"!==process.env.NODE_ENV&&(Of.propTypes={classes:oe.object.isRequired,className:oe.string,in:oe.bool,onExited:oe.func,pulsate:oe.bool,rippleSize:oe.number,rippleX:oe.number,rippleY:oe.number,timeout:oe.number.isRequired});const Sf=an("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ef=["center","classes","className"];let kf,Rf,Tf,Nf,Pf=e=>e;const Mf=le(kf||(kf=Pf`
|
|
45
|
+
function(e,t){const n=de(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const o="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some((e=>void 0===e))&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...t)}:n}(e,Ie({shouldForwardProp:g,label:m},p)),v=(o,...r)=>{const l=r?r.map((e=>"function"==typeof e&&e.__emotion_real!==e?o=>e(Ie({},o,{theme:Eo(Ie({},o,{defaultTheme:n,themeId:t}))})):e)):[];let u=o;a&&d&&l.push((e=>{const o=Eo(Ie({},e,{defaultTheme:n,themeId:t})),r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,o);if(r){const t={};return Object.entries(r).forEach((([n,r])=>{t[n]="function"==typeof r?r(Ie({},e,{theme:o})):r})),d(e,t)}return null})),a&&!f&&l.push((e=>{const o=Eo(Ie({},e,{defaultTheme:n,themeId:t}));return((e,t,n,o)=>{var r,i;const{ownerState:l={}}=e,a=[],s=null==n||null==(r=n.components)||null==(i=r[o])?void 0:i.variants;return s&&s.forEach((n=>{let o=!0;Object.keys(n.props).forEach((t=>{l[t]!==n.props[t]&&e[t]!==n.props[t]&&(o=!1)})),o&&a.push(t[xo(n.props)])})),a})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const o={};return n.forEach((e=>{const t=xo(e.props);o[t]=e.style})),o})(a,o),o,a)})),h||l.push(i);const c=l.length-r.length;if(Array.isArray(o)&&c>0){const e=new Array(c).fill("");u=[...o,...e],u.raw=[...o.raw,...e]}else"function"==typeof o&&o.__emotion_real!==o&&(u=e=>o(Ie({},e,{theme:Eo(Ie({},e,{defaultTheme:n,themeId:t}))})));const p=b(u,...l);if("production"!==process.env.NODE_ENV){let t;a&&(t=`${a}${s||""}`),void 0===t&&(t=`Styled(${function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return yt(e,"Component");if("object"==typeof e)switch(e.$$typeof){case bt.ForwardRef:return wt(e,e.render,"ForwardRef");case bt.Memo:return wt(e,e.type,"memo");default:return}}}(e)})`),p.displayName=t}return e.muiName&&(p.muiName=e.muiName),p};return b.withConfig&&(v.withConfig=b.withConfig),v}}const Ro=ko();function To({props:e,name:t,defaultTheme:n,themeId:o}){let r=fo(n);return o&&(r=r[o]||r),function(e){const{theme:t,name:n,props:o}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Jt(t.components[n].defaultProps,o):o}({theme:r,name:t,props:e})}function No(e,t=0,n=1){return"production"!==process.env.NODE_ENV&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Po(e){if(e.type)return e;if("#"===e.charAt(0))return Po(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:dt(9,e));let o,r=e.substring(t+1,e.length-1);if("color"===n){if(r=r.split(" "),o=r.shift(),4===r.length&&"/"===r[3].charAt(0)&&(r[3]=r[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${o}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:dt(10,o))}else r=r.split(",");return r=r.map((e=>parseFloat(e))),{type:n,values:r,colorSpace:o}}function Mo(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return-1!==t.indexOf("rgb")?o=o.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),o=-1!==t.indexOf("color")?`${n} ${o.join(" ")}`:`${o.join(", ")}`,`${t}(${o})`}function _o(e){let t="hsl"===(e=Po(e)).type||"hsla"===e.type?Po(function(e){e=Po(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,i=o*Math.min(r,1-r),l=(e,t=(e+n/30)%12)=>r-i*Math.max(Math.min(t-3,9-t,1),-1);let a="rgb";const s=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(a+="a",s.push(t[3])),Mo({type:a,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function jo(e,t){const n=_o(e),o=_o(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Io(e,t){return e=Po(e),t=No(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Mo(e)}function Do(e,t){if(e=Po(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Mo(e)}function Fo(e,t){if(e=Po(e),t=No(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Mo(e)}function Ao(e,t){return Ie({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Lo={black:"#000",white:"#fff"},Vo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},qo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ho={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},zo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Bo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Uo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Wo=["mode","contrastThreshold","tonalOffset"],Go={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:Lo.white,default:Lo.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}},Ko={text:{primary:Lo.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:Lo.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}};function Yo(e,t,n,o){const r=o.light||o,i=o.dark||1.5*o;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fo(e.main,r):"dark"===t&&(e.dark=Do(e.main,i)))}function Zo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2}=e,r=De(e,Wo),i=e.primary||function(e="light"){return"dark"===e?{main:zo[200],light:zo[50],dark:zo[400]}:{main:zo[700],light:zo[400],dark:zo[800]}}(t),l=e.secondary||function(e="light"){return"dark"===e?{main:$o[200],light:$o[50],dark:$o[400]}:{main:$o[500],light:$o[300],dark:$o[700]}}(t),a=e.error||function(e="light"){return"dark"===e?{main:qo[500],light:qo[300],dark:qo[700]}:{main:qo[700],light:qo[400],dark:qo[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:Bo[700],light:Bo[500],dark:Bo[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Uo[400],light:Uo[300],dark:Uo[700]}:{main:Uo[800],light:Uo[500],dark:Uo[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Ho[400],light:Ho[300],dark:Ho[700]}:{main:"#ed6c02",light:Ho[500],dark:Ho[900]}}(t);function d(e){const t=jo(e,Ko.text.primary)>=n?Ko.text.primary:Go.text.primary;if("production"!==process.env.NODE_ENV){const n=jo(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,"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("\n"))}return t}const p=({color:e,name:t,mainShade:n=500,lightShade:r=300,darkShade:i=700})=>{if(!(e=Ie({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:dt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:dt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Yo(e,"light",r,o),Yo(e,"dark",i,o),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ko,light:Go};return"production"!==process.env.NODE_ENV&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),it(Ie({common:Ie({},Lo),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Vo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:o},f[t]),r)}const Xo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qo(e){return Math.round(1e5*e)/1e5}const Jo={textTransform:"uppercase"},er='"Roboto", "Helvetica", "Arial", sans-serif';function tr(e,t){const n="function"==typeof t?t(e):t,{fontFamily:o=er,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=De(n,Xo);"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof u&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=r/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,r,i)=>Ie({fontFamily:o,fontWeight:e,fontSize:h(t),lineHeight:n},o===er?{letterSpacing:`${Qo(r/t)}em`}:{},i,c),g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(l,48,1.167,0),h4:m(l,34,1.235,.25),h5:m(l,24,1.334,0),h6:m(a,20,1.6,.15),subtitle1:m(l,16,1.75,.15),subtitle2:m(a,14,1.57,.1),body1:m(l,16,1.5,.15),body2:m(l,14,1.43,.15),button:m(a,14,1.75,.4,Jo),caption:m(l,12,1.66,.4),overline:m(l,12,2.66,1,Jo),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return it(Ie({htmlFontSize:u,pxToRem:h,fontFamily:o,fontSize:r,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},g),p,{clone:!1})}function nr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const or=["none",nr(0,2,1,-1,0,1,1,0,0,1,3,0),nr(0,3,1,-2,0,2,2,0,0,1,5,0),nr(0,3,3,-2,0,3,4,0,0,1,8,0),nr(0,2,4,-1,0,4,5,0,0,1,10,0),nr(0,3,5,-1,0,5,8,0,0,1,14,0),nr(0,3,5,-1,0,6,10,0,0,1,18,0),nr(0,4,5,-2,0,7,10,1,0,2,16,1),nr(0,5,5,-3,0,8,10,1,0,3,14,2),nr(0,5,6,-3,0,9,12,1,0,3,16,2),nr(0,6,6,-3,0,10,14,1,0,4,18,3),nr(0,6,7,-4,0,11,15,1,0,4,20,3),nr(0,7,8,-4,0,12,17,2,0,5,22,4),nr(0,7,8,-4,0,13,19,2,0,5,24,4),nr(0,7,9,-4,0,14,21,2,0,5,26,4),nr(0,8,9,-5,0,15,22,2,0,6,28,5),nr(0,8,10,-5,0,16,24,2,0,6,30,5),nr(0,8,11,-5,0,17,26,2,0,6,32,5),nr(0,9,11,-5,0,18,28,2,0,7,34,6),nr(0,9,12,-6,0,19,29,2,0,7,36,6),nr(0,10,13,-6,0,20,31,3,0,8,38,7),nr(0,10,13,-6,0,21,33,3,0,8,40,7),nr(0,10,14,-6,0,22,35,3,0,8,42,7),nr(0,11,14,-7,0,23,36,3,0,9,44,8),nr(0,11,15,-7,0,24,38,3,0,9,46,8)],rr=["duration","easing","delay"],ir={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ar(e){return`${Math.round(e)}ms`}function sr(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ur(e){const t=Ie({},ir,e.easing),n=Ie({},lr,e.duration);return Ie({getAutoHeightDuration:sr,create:(e=["all"],o={})=>{const{duration:r=n.standard,easing:i=t.easeInOut,delay:l=0}=o,a=De(o,rr);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,n=e=>!isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error('MUI: Argument "props" must be a string or Array.'),!n(r)&&!t(r)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${r}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),!n(l)&&!t(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),0!==Object.keys(a).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(a).join(",")}].`)}return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof r?r:ar(r)} ${i} ${"string"==typeof l?l:ar(l)}`)).join(",")}},e,{easing:t,duration:n})}const cr={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dr=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const pr=function(e={},...t){const{mixins:n={},palette:o={},transitions:r={},typography:i={}}=e,l=De(e,dr);if(e.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":dt(18));const a=Zo(o),s=uo(e);let u=it(s,{mixins:Ao(s.breakpoints,n),palette:a,shadows:or.slice(),typography:tr(a,i),transitions:ur(r),zIndex:Ie({},cr)});if(u=it(u,l),u=t.reduce(((e,t)=>it(e,t)),u),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,n)=>{let o;for(o in t){const r=t[o];if(-1!==e.indexOf(o)&&Object.keys(r).length>0){if("production"!==process.env.NODE_ENV){const e=ln("",o);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${o}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:r}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[o]={}}}};Object.keys(u.components).forEach((e=>{const n=u.components[e].styleOverrides;n&&0===e.indexOf("Mui")&&t(n,e)}))}return u.unstable_sxConfig=Ie({},io,null==l?void 0:l.unstable_sxConfig),u.unstable_sx=function(e){return ao({sx:e,theme:this})},u}(),fr=pr,hr="$$material";function mr(){const t=fo(fr);return"production"!==process.env.NODE_ENV&&e.useDebugValue(t),t[hr]||t}const gr=e=>e.scrollTop;function br(e,t){var n,o;const{timeout:r,easing:i,style:l={}}=e;return{duration:null!=(n=l.transitionDuration)?n:"number"==typeof r?r:r[t.mode]||0,easing:null!=(o=l.transitionTimingFunction)?o:"object"==typeof i?i[t.mode]:i,delay:l.transitionDelay}}const vr=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yr={entering:{opacity:1},entered:{opacity:1}},wr=e.forwardRef((function(t,n){const o=mr(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:b=r,TransitionComponent:v=Ke}=t,y=De(t,vr),w=e.useRef(null),x=Ft(w,a.ref,n),C=e=>t=>{if(e){const n=w.current;void 0===t?e(n):e(n,t)}},O=C(p),S=C(((e,t)=>{gr(e);const n=br({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=o.transitions.create("opacity",n),e.style.transition=o.transitions.create("opacity",n),c&&c(e,t)})),E=C(d),k=C(m),R=C((e=>{const t=br({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=o.transitions.create("opacity",t),e.style.transition=o.transitions.create("opacity",t),f&&f(e)})),T=C(h);return Me.jsx(v,Ie({appear:l,in:u,nodeRef:w,onEnter:S,onEntered:E,onEntering:O,onExit:R,onExited:T,onExiting:k,addEndListener:e=>{i&&i(w.current,e)},timeout:b},y,{children:(t,n)=>e.cloneElement(a,Ie({style:Ie({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},yr[t],g,a.props.style),ref:x},n))}))}));"production"!==process.env.NODE_ENV&&(wr.propTypes={addEndListener:oe.func,appear:oe.bool,children:st.isRequired,easing:oe.oneOfType([oe.shape({enter:oe.string,exit:oe.string}),oe.string]),in:oe.bool,onEnter:oe.func,onEntered:oe.func,onEntering:oe.func,onExit:oe.func,onExited:oe.func,onExiting:oe.func,style:oe.object,timeout:oe.oneOfType([oe.number,oe.shape({appear:oe.number,enter:oe.number,exit:oe.number})])});const xr=wr,Cr=e=>Me.jsx(w,{TransitionComponent:xr,TransitionProps:{timeout:300},arrow:!0,placement:"top",componentsProps:{tooltip:{sx:{bgcolor:"var(--colors-gray-800)",borderRadius:"3px","& .MuiTooltip-arrow":{color:"var(--colors-gray-800)"}}}},...e}),Or=/^[a-z0-9]+(-[a-z0-9]+)*$/,Sr=(e,t,n,o="")=>{const r=e.split(":");if("@"===e.slice(0,1)){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const e=r.pop(),n=r.pop(),i={provider:r.length>0?r[0]:o,prefix:n,name:e};return t&&!Er(i)?null:i}const i=r[0],l=i.split("-");if(l.length>1){const e={provider:o,prefix:l.shift(),name:l.join("-")};return t&&!Er(e)?null:e}if(n&&""===o){const e={provider:o,prefix:"",name:i};return t&&!Er(e,n)?null:e}return null},Er=(e,t)=>!!e&&!(""!==e.provider&&!e.provider.match(Or)||!(t&&""===e.prefix||e.prefix.match(Or))||!e.name.match(Or)),kr=Object.freeze({left:0,top:0,width:16,height:16}),Rr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Tr=Object.freeze({...kr,...Rr}),Nr=Object.freeze({...Tr,body:"",hidden:!1});function Pr(e,t){const n=function(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const o=((e.rotate||0)+(t.rotate||0))%4;return o&&(n.rotate=o),n}(e,t);for(const o in Nr)o in Rr?o in e&&!(o in n)&&(n[o]=Rr[o]):o in t?n[o]=t[o]:o in e&&(n[o]=e[o]);return n}function Mr(e,t,n){const o=e.icons,r=e.aliases||Object.create(null);let i={};function l(e){i=Pr(o[e]||r[e],i)}return l(t),n.forEach(l),Pr(e,i)}function _r(e,t){const n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach((e=>{t(e,null),n.push(e)}));const o=function(e,t){const n=e.icons,o=e.aliases||Object.create(null),r=Object.create(null);return(t||Object.keys(n).concat(Object.keys(o))).forEach((function e(t){if(n[t])return r[t]=[];if(!(t in r)){r[t]=null;const n=o[t]&&o[t].parent,i=n&&e(n);i&&(r[t]=[n].concat(i))}return r[t]})),r}(e);for(const r in o){const i=o[r];i&&(t(r,Mr(e,r,i)),n.push(r))}return n}const jr={provider:"",aliases:{},not_found:{},...kr};function Ir(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Dr(e){if("object"!=typeof e||null===e)return null;const t=e;if("string"!=typeof t.prefix||!e.icons||"object"!=typeof e.icons||!Ir(e,jr))return null;const n=t.icons;for(const e in n){const t=n[e];if(!e.match(Or)||"string"!=typeof t.body||!Ir(t,Nr))return null}const o=t.aliases||Object.create(null);for(const e in o){const t=o[e],r=t.parent;if(!e.match(Or)||"string"!=typeof r||!n[r]&&!o[r]||!Ir(t,Nr))return null}return t}const Fr=Object.create(null);function Ar(e,t){const n=Fr[e]||(Fr[e]=Object.create(null));return n[t]||(n[t]=function(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}(e,t))}function Lr(e,t){return Dr(t)?_r(t,((t,n)=>{n?e.icons[t]=n:e.missing.add(t)})):[]}let Vr=!1;function $r(e){return"boolean"==typeof e&&(Vr=e),Vr}function qr(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),Vr&&!t&&!e.prefix){let t=!1;return Dr(e)&&(e.prefix="",_r(e,((e,n)=>{n&&function(e,t){const n=Sr(e,!0,Vr);return!!n&&function(e,t,n){try{if("string"==typeof n.body)return e.icons[t]={...n},!0}catch{}return!1}(Ar(n.provider,n.prefix),n.name,t)}(e,n)&&(t=!0)}))),t}const n=e.prefix;if(!Er({provider:t,prefix:n,name:"a"}))return!1;return!!Lr(Ar(t,n),e)}const Hr=Object.freeze({width:null,height:null}),zr=Object.freeze({...Hr,...Rr}),Br=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ur=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Wr(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;const o=e.split(Br);if(null===o||!o.length)return e;const r=[];let i=o.shift(),l=Ur.test(i);for(;;){if(l){const e=parseFloat(i);isNaN(e)?r.push(i):r.push(Math.ceil(e*t*n)/n)}else r.push(i);if(i=o.shift(),void 0===i)return r.join("");l=!l}}const Gr=/\sid="(\S+)"/g,Kr="IconifyId"+Date.now().toString(16)+(16777216*Math.random()|0).toString(16);let Yr=0;function Zr(e,t=Kr){const n=[];let o;for(;o=Gr.exec(e);)n.push(o[1]);if(!n.length)return e;const r="suffix"+(16777216*Math.random()|Date.now()).toString(16);return n.forEach((n=>{const o="function"==typeof t?t(n):t+(Yr++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")})),e=e.replace(new RegExp(r,"g"),"")}const Xr=Object.create(null);function Qr(e){return Xr[e]||Xr[""]}function Jr(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(t=e.resources,!(t instanceof Array&&t.length))return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}const ei=Object.create(null),ti=["https://api.simplesvg.com","https://api.unisvg.com"],ni=[];for(;ti.length>0;)1===ti.length||Math.random()>.5?ni.push(ti.shift()):ni.push(ti.pop());function oi(e,t){const n=Jr(t);return null!==n&&(ei[e]=n,!0)}function ri(e){return ei[e]}ei[""]=Jr({resources:["https://api.iconify.design"].concat(ni)});let ii=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch{}})();const li={prepare:(e,t,n)=>{const o=[],r=function(e,t){const n=ri(e);if(!n)return 0;let o;if(n.maxURL){let e=0;n.resources.forEach((t=>{e=Math.max(e,t.length)}));const r=t+".json?icons=";o=n.maxURL-e-n.path.length-r.length}else o=0;return o}(e,t),i="icons";let l={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach(((n,s)=>{a+=n.length+1,a>=r&&s>0&&(o.push(l),l={type:i,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)})),o.push(l),o},send:(e,t,n)=>{if(!ii)return void n("abort",424);let o=function(e){if("string"==typeof e){const t=ri(e);if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":{const e=t.prefix,n=t.icons.join(",");o+=e+".json?"+new URLSearchParams({icons:n}).toString();break}case"custom":{const e=t.uri;o+="/"===e.slice(0,1)?e.slice(1):e;break}default:return void n("abort",400)}let r=503;ii(e+o).then((e=>{const t=e.status;if(200===t)return r=501,e.json();setTimeout((()=>{n(function(e){return 404===e}(t)?"abort":"next",t)}))})).then((e=>{"object"==typeof e&&null!==e?setTimeout((()=>{n("success",e)})):setTimeout((()=>{404===e?n("abort",e):n("next",r)}))})).catch((()=>{n("next",r)}))}};function ai(e,t){e.forEach((e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter((e=>e.id!==t)))}))}let si=0;var ui={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ci(e,t,n,o){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let t=e.resources.slice(0);for(l=[];t.length>1;){const e=Math.floor(Math.random()*t.length);l.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}l=l.concat(t)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let s,u="pending",c=0,d=null,p=[],f=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===u&&(u="aborted"),h(),p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function g(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function b(){u="failed",f.forEach((e=>{e(void 0,s)}))}function v(){p.forEach((e=>{"pending"===e.status&&(e.status="aborted")})),p=[]}function y(){if("pending"!==u)return;h();const o=l.shift();if(void 0===o)return p.length?void(d=setTimeout((()=>{h(),"pending"===u&&(v(),b())}),e.timeout)):void b();const r={status:"pending",resource:o,callback:(t,n)=>{!function(t,n,o){const r="success"!==n;switch(p=p.filter((e=>e!==t)),u){case"pending":break;case"failed":if(r||!e.dataAfterTimeout)return;break;default:return}if("abort"===n)return s=o,void b();if(r)return s=o,void(p.length||(l.length?y():b()));if(h(),v(),!e.random){const n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",f.forEach((e=>{e(o)}))}(r,t,n)}};p.push(r),c++,d=setTimeout(y,e.rotate),n(o,t,r.callback)}return"function"==typeof o&&f.push(o),setTimeout(y),function(){return{startTime:a,payload:t,status:u,queriesSent:c,queriesPending:p.length,subscribe:g,abort:m}}}function di(e){const t={...ui,...e};let n=[];function o(){n=n.filter((e=>"pending"===e().status))}return{query:function(e,r,i){const l=ci(t,e,r,((e,t)=>{o(),i&&i(e,t)}));return n.push(l),l},find:function(e){return n.find((t=>e(t)))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:o}}function pi(){}const fi=Object.create(null);function hi(e,t,n){let o,r;if("string"==typeof e){const t=Qr(e);if(!t)return n(void 0,424),pi;r=t.send;const i=function(e){if(!fi[e]){const t=ri(e);if(!t)return;const n={config:t,redundancy:di(t)};fi[e]=n}return fi[e]}(e);i&&(o=i.redundancy)}else{const t=Jr(e);if(t){o=di(t);const n=Qr(e.resources?e.resources[0]:"");n&&(r=n.send)}}return o&&r?o.query(t,r,n)().abort:(n(void 0,424),pi)}const mi="iconify2",gi="iconify",bi=gi+"-count",vi=gi+"-version",yi=36e5,wi=168;function xi(e,t){try{return e.getItem(t)}catch{}}function Ci(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Oi(e,t){try{e.removeItem(t)}catch{}}function Si(e,t){return Ci(e,bi,t.toString())}function Ei(e){return parseInt(xi(e,bi))||0}const ki={local:!0,session:!0},Ri={local:new Set,session:new Set};let Ti=!1;let Ni=typeof window>"u"?{}:window;function Pi(e){const t=e+"Storage";try{if(Ni&&Ni[t]&&"number"==typeof Ni[t].length)return Ni[t]}catch{}ki[e]=!1}function Mi(e,t){const n=Pi(e);if(!n)return;const o=xi(n,vi);if(o!==mi){if(o){const e=Ei(n);for(let t=0;t<e;t++)Oi(n,gi+t.toString())}return Ci(n,vi,mi),void Si(n,0)}const r=Math.floor(Date.now()/yi)-wi,i=e=>{const o=gi+e.toString(),i=xi(n,o);if("string"==typeof i){try{const n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>r&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch{}Oi(n,o)}};let l=Ei(n);for(let t=l-1;t>=0;t--)i(t)||(t===l-1?(l--,Si(n,l)):Ri[e].add(t))}function _i(){if(!Ti){Ti=!0;for(const e in ki)Mi(e,(e=>{const t=e.data,n=Ar(e.provider,t.prefix);if(!Lr(n,t).length)return!1;const o=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,o):o,!0}))}}function ji(e,t){function n(n){let o;if(!ki[n]||!(o=Pi(n)))return;const r=Ri[n];let i;if(r.size)r.delete(i=Array.from(r).shift());else if(i=Ei(o),!Si(o,i+1))return;const l={cached:Math.floor(Date.now()/yi),provider:e.provider,data:t};return Ci(o,gi+i.toString(),JSON.stringify(l))}Ti||_i(),t.lastModified&&!function(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const n in ki)Mi(n,(n=>{const o=n.data;return n.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t}));return!0}(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&delete(t=Object.assign({},t)).not_found,n("local")||n("session"))}function Ii(){}function Di(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((()=>{e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const o=e.provider,r=e.prefix;t.forEach((t=>{const i=t.icons,l=i.pending.length;i.pending=i.pending.filter((t=>{if(t.prefix!==r)return!0;const l=t.name;if(e.icons[l])i.loaded.push({provider:o,prefix:r,name:l});else{if(!e.missing.has(l))return n=!0,!0;i.missing.push({provider:o,prefix:r,name:l})}return!1})),i.pending.length!==l&&(n||ai([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))}))})))}(e)})))}const Fi=(e,t)=>{const n=function(e,t=!0,n=!1){const o=[];return e.forEach((e=>{const r="string"==typeof e?Sr(e,t,n):e;r&&o.push(r)})),o}(e,!0,$r()),o=function(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort(((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)));let o={provider:"",prefix:"",name:""};return e.forEach((e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;const r=e.provider,i=e.prefix,l=e.name,a=n[r]||(n[r]=Object.create(null)),s=a[i]||(a[i]=Ar(r,i));let u;u=l in s.icons?t.loaded:""===i||s.missing.has(l)?t.missing:t.pending;const c={provider:r,prefix:i,name:l};u.push(c)})),t}(n);if(!o.pending.length){let e=!0;return t&&setTimeout((()=>{e&&t(o.loaded,o.missing,o.pending,Ii)})),()=>{e=!1}}const r=Object.create(null),i=[];let l,a;return o.pending.forEach((e=>{const{provider:t,prefix:n}=e;if(n===a&&t===l)return;l=t,a=n,i.push(Ar(t,n));const o=r[t]||(r[t]=Object.create(null));o[n]||(o[n]=[])})),o.pending.forEach((e=>{const{provider:t,prefix:n,name:o}=e,i=Ar(t,n),l=i.pendingIcons||(i.pendingIcons=new Set);l.has(o)||(l.add(o),r[t][n].push(o))})),i.forEach((e=>{const{provider:t,prefix:n}=e;r[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:n}=e,o=e.iconsToLoad;let r;delete e.iconsToLoad,o&&(r=Qr(t))&&r.prepare(t,n,o).forEach((n=>{hi(t,n,(t=>{if("object"!=typeof t)n.icons.forEach((t=>{e.missing.add(t)}));else try{const n=Lr(e,t);if(!n.length)return;const o=e.pendingIcons;o&&n.forEach((e=>{o.delete(e)})),ji(e,t)}catch(e){console.error(e)}Di(e)}))}))})))}(e,r[t][n])})),t?function(e,t,n){const o=si++,r=ai.bind(null,n,o);if(!t.pending.length)return r;const i={id:o,icons:t,callback:e,abort:r};return n.forEach((e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)})),r}(t,o,i):Ii};const Ai=/[\s,]+/;function Li(e,t){t.split(Ai).forEach((t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}}))}function Vi(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function o(e){for(;e<0;)e+=4;return e%4}if(""===n){const t=parseInt(e);return isNaN(t)?0:o(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r/=t,r%1==0?o(r):0)}}return t}function $i(e){return'url("'+function(e){return"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(e)}(e)+'")'}let qi;function Hi(e){return void 0===qi&&function(){try{qi=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{qi=null}}(),qi?qi.createHTML(e):e}const zi={...zr,inline:!1},Bi={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ui={display:"inline-block"},Wi={backgroundColor:"currentColor"},Gi={backgroundColor:"transparent"},Ki={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Yi={WebkitMask:Wi,mask:Wi,background:Gi};for(const e in Yi){const t=Yi[e];for(const n in Ki)t[e+n]=Ki[n]}const Zi={...zi,inline:!0};function Xi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Qi=(e,n,o,r)=>{const i=o?Zi:zi,l=function(e,t){const n={...e};for(const e in t){const o=t[e],r=typeof o;e in Hr?(null===o||o&&("string"===r||"number"===r))&&(n[e]=o):r===typeof n[e]&&(n[e]="rotate"===e?o%4:o)}return n}(i,n),a=n.mode||"svg",s={},u=n.style||{},c={..."svg"===a?Bi:{},ref:r};for(let e in n){const t=n[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":l[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&Li(l,t);break;case"color":s.color=t;break;case"rotate":"string"==typeof t?l[e]=Vi(t):"number"==typeof t&&(l[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=t)}}const d=function(e,t){const n={...Tr,...e},o={...zr,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,o].forEach((e=>{const t=[],n=e.hFlip,o=e.vFlip;let l,a=e.rotate;switch(n?o?a+=2:(t.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),t.push("scale(-1 1)"),r.top=r.left=0):o&&(t.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),t.push("scale(1 -1)"),r.top=r.left=0),a<0&&(a-=4*Math.floor(a/4)),a%=4,a){case 1:l=r.height/2+r.top,t.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:t.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,t.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")")}a%2==1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),t.length&&(i='<g transform="'+t.join(" ")+'">'+i+"</g>")}));const l=o.width,a=o.height,s=r.width,u=r.height;let c,d;null===l?(d=null===a?"1em":"auto"===a?u:a,c=Wr(d,s/u)):(c="auto"===l?s:l,d=null===a?Wr(c,u/s):"auto"===a?u:a);const p={},f=(e,t)=>{(e=>"unset"===e||"undefined"===e||"none"===e)(t)||(p[e]=t.toString())};return f("width",c),f("height",d),p.viewBox=r.left.toString()+" "+r.top.toString()+" "+s.toString()+" "+u.toString(),{attributes:p,body:i}}(e,l),p=d.attributes;if(l.inline&&(s.verticalAlign="-0.125em"),"svg"===a){c.style={...s,...u},Object.assign(c,p);let e=0,o=n.id;return"string"==typeof o&&(o=o.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:Hi(Zr(d.body,o?()=>o+"ID"+e++:"iconifyReact"))},t.createElement("svg",c)}const{body:f,width:h,height:m}=e,g="mask"===a||"bg"!==a&&-1!==f.indexOf("currentColor"),b=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(f,{...p,width:h+"",height:m+""});return c.style={...s,"--svg":$i(b),width:Xi(p.width),height:Xi(p.height),...Ui,...g?Wi:Gi,...u},t.createElement("span",c)};var Ji;if($r(!0),Ji=li,Xr[""]=Ji,typeof document<"u"&&typeof window<"u"){_i();const e=window;if(void 0!==e.IconifyPreload){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach((e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!qr(e))&&console.error(n)}catch{console.error(n)}}))}if(void 0!==e.IconifyProviders){const t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const o=t[e];if("object"!=typeof o||!o||void 0===o.resources)continue;oi(e,o)||console.error(n)}catch{console.error(n)}}}}class el extends t.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){const t=this.state,n=this.props.icon;if("object"==typeof n&&null!==n&&"string"==typeof n.body)return this._icon="",this._abortLoading(),void((e||null===t.icon)&&this._setData({data:n}));let o;if("string"!=typeof n||null===(o=Sr(n,!1,!0)))return this._abortLoading(),void this._setData(null);const r=function(e){const t="string"==typeof e?Sr(e,!0,Vr):e;if(t){const e=Ar(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(o);if(r){if(this._icon!==n||null===t.icon){this._abortLoading(),this._icon=n;const e=["iconify"];""!==o.prefix&&e.push("iconify--"+o.prefix),""!==o.provider&&e.push("iconify--"+o.provider),this._setData({data:r,classes:e}),this.props.onLoad&&this.props.onLoad(n)}}else(!this._loading||this._loading.name!==n)&&(this._abortLoading(),this._icon="",this._setData(null),null!==r&&(this._loading={name:n,abort:Fi([o],this._checkIcon.bind(this,!1))}))}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const e=this.props,n=this.state.icon;if(null===n)return e.children?e.children:t.createElement("span",{});let o=e;return n.classes&&(o={...e,className:("string"==typeof e.className?e.className+" ":"")+n.classes.join(" ")}),Qi({...Tr,...n.data},o,e._inline,e._ref)}}const tl=t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!1};return t.createElement(el,o)}));t.forwardRef((function(e,n){const o={...e,_ref:n,_inline:!0};return t.createElement(el,o)}));const nl="_icon_z9w7e_5",ol=({width:e=20,height:t=20,className:n="",icon:o,onClick:r,color:i,vFlip:l=!1})=>Me.jsx(tl,{onClick:r,icon:o,width:e,height:t,className:`${nl} ${n}`,color:i,vFlip:l}),rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:bell-outline",width:e,height:t,className:n,onClick:o,color:r}),il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:bell",width:e,height:t,className:n,onClick:o,color:r}),ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"charm:menu-hamburger",width:e,height:t,className:n,onClick:o,color:r}),al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-right",width:e,height:t,className:n,onClick:o,color:r}),sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-left",width:e,height:t,className:n,onClick:o,color:r}),ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-double-left",width:e,height:t,className:n,onClick:o,color:r}),cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-double-right",width:e,height:t,className:n,onClick:o,color:r}),dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"fluent:document-bullet-list-24-filled",width:e,height:t,className:n,onClick:o,color:r}),pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r=""})=>Me.jsx(ol,{icon:"fluent:document-pdf-20-filled",width:e,height:t,className:n,onClick:o,color:r}),fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:view-dashboard",width:e,height:t,className:n,onClick:o,color:r}),hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:view-dashboard-outline",width:e,height:t,className:n,onClick:o,color:r}),ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-people-alt",width:e,height:t,className:n,onClick:o,color:r}),gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:sharp-people",width:e,height:t,className:n,onClick:o,color:r}),bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-fact-check",width:e,height:t,className:n,onClick:o,color:r}),vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:fact-check",width:e,height:t,className:n,onClick:o,color:r}),yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:calendar-blank",width:e,height:t,className:n,onClick:o,color:r}),wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:calendar-range",width:e,height:t,className:n,onClick:o,color:r}),xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-assignment",width:e,height:t,className:n,onClick:o,color:r}),Cl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:assignment-outline",width:e,height:t,className:n,onClick:o,color:r}),Ol=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-format-list-numbered",width:e,height:t,className:n,onClick:o,color:r}),Sl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:message-processing",width:e,height:t,className:n,onClick:o,color:r}),El=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:message-processing-outline",width:e,height:t,className:n,onClick:o,color:r}),kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:report-box",width:e,height:t,className:n,onClick:o,color:r}),Rl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:report-box-outline",width:e,height:t,className:n,onClick:o,color:r}),Tl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:settings",width:e,height:t,className:n,onClick:o,color:r}),Nl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:settings-outline",width:e,height:t,className:n,onClick:o,color:r}),Pl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-sync",width:e,height:t,className:n,onClick:o,color:r,vFlip:!0}),Ml=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsxs("svg",{onClick:o,className:n,width:e,height:t,viewBox:"0 0 25 24",fill:r,xmlns:"http://www.w3.org/2000/svg",children:[Me.jsxs("g",{clipPath:"url(#clip0_2033_54069)",children:[Me.jsx("path",{d:"M19.02 19C20.4 19 21.52 17.88 21.52 16.5C21.52 15.12 20.4 14 19.02 14C17.64 14 16.52 15.12 16.52 16.5C16.52 17.88 17.64 19 19.02 19ZM19.02 20.25C17.35 20.25 14.02 21.09 14.02 22.75V23.38C14.02 23.72 14.3 24.01 14.65 24.01H23.4C23.74 24.01 24.03 23.73 24.03 23.38V22.75C24.03 21.09 20.7 20.25 19.03 20.25H19.02Z",fill:r}),Me.jsx("path",{d:"M5 5C6.38 5 7.5 3.88 7.5 2.5C7.5 1.12 6.38 0 5 0C3.62 0 2.5 1.12 2.5 2.5C2.5 3.88 3.62 5 5 5ZM5 6.25C3.33 6.25 0 7.09 0 8.75V9.38C0 9.72 0.28 10.01 0.63 10.01H9.38C9.72 10.01 10.01 9.73 10.01 9.38V8.75C10.01 7.09 6.68 6.25 5.01 6.25H5Z",fill:r}),Me.jsx("path",{d:"M12.55 20.66V20.46H7.05004C6.42004 20.46 5.90004 19.94 5.90004 19.31V15.83L7.62004 17.51L8.59004 16.52L5.03004 13.04L1.54004 16.61L2.53004 17.58L4.19004 15.88H4.21004V19.31C4.21004 20.88 5.49004 22.16 7.06004 22.16H12.56V21.96V20.66H12.55Z",fill:r}),Me.jsx("path",{d:"M11.4 3.19V3.39H16.9C17.53 3.39 18.05 3.91 18.05 4.54V8.02L16.33 6.34L15.36 7.33L18.92 10.81L22.41 7.24L21.42 6.27L19.76 7.97H19.74V4.54C19.74 2.97 18.46 1.69 16.89 1.69H11.39V1.89V3.19H11.4Z",fill:r})]}),Me.jsx("defs",{children:Me.jsx("clipPath",{id:"clip0_2033_54069",children:Me.jsx("rect",{width:e,height:t,fill:"transparent"})})})]}),_l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:round-person",width:e,height:t,className:n,onClick:o,color:r}),jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:round-person-outline",width:e,height:t,className:n,onClick:o,color:r}),Il=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:dots-vertical",width:e,height:t,className:n,onClick:o,color:r}),Dl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:outline-search",width:e,height:t,className:n,onClick:o,color:r}),Fl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"line-md:loading-twotone-loop",width:e,height:t,className:n,onClick:o,color:r}),Al=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-arrow-drop-up",width:e,height:t,className:n,onClick:o,color:r}),Ll=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-arrow-drop-down",width:e,height:t,className:n,onClick:o,color:r}),Vl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"eva:archive-fill",width:e,height:t,className:n,onClick:o,color:r}),$l=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-download",width:e,height:t,className:n,onClick:o,color:r}),ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:checkbox-marked-outline",width:e,height:t,className:n,onClick:o,color:r}),Hl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-down",width:e,height:t,className:n,onClick:o,color:r}),zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:chevron-up",width:e,height:t,className:n,onClick:o,color:r}),Bl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-close",width:e,height:t,className:n,onClick:o,color:r}),Ul=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:baseline-check",width:e,height:t,className:n,onClick:o,color:r}),Wl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:perm-media",width:e,height:t,className:n,onClick:o,color:r}),Gl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:perm-media-outline",width:e,height:t,className:n,onClick:o,color:r}),Kl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:inbox",width:e,height:t,className:n,onClick:o,color:r}),Yl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:inbox-outline",width:e,height:t,className:n,onClick:o,color:r}),Zl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"ic:sharp-topic",width:e,height:t,className:n,onClick:o,color:r}),Xl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:self-improvement",width:e,height:t,className:n,onClick:o,color:r}),Ql=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"akar-icons:drag-horizontal",width:e,height:t,className:n,onClick:o,color:r}),Jl=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"fa6-regular:file-pdf",width:e,height:t,className:n,onClick:o,color:r}),ea=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:delete-outline",width:e,height:t,className:n,onClick:o,color:r}),ta=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"mdi:filter-variant",width:e,height:t,className:n,onClick:o,color:r}),na=({width:e=20,height:t=20,className:n="",onClick:o,color:r})=>Me.jsx(ol,{icon:"material-symbols:lock-outline",width:e,height:t,className:n,onClick:o,color:r}),oa=e=>Me.jsx(x,{...e}),ra=e.createContext(void 0);function ia(){const t=e.useContext(ra);if(void 0===t)throw new Error(["MUI: Could not find the data grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(ra.displayName="GridApiContext");const la=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(la.displayName="GridRootPropsContext");const aa=()=>{const t=e.useContext(la);if(!t)throw new Error("MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return t},sa=e.createContext(void 0);function ua(){const t=e.useContext(sa);if(void 0===t)throw new Error(["MUI: Could not find the data grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the data grid."].join("\n"));return t}"production"!==process.env.NODE_ENV&&(sa.displayName="GridPrivateApiContext");const ca={};const da=[];const pa=(e,t="warning")=>{let n=!1;const o=Array.isArray(e)?e.join("\n"):e;return()=>{n||(n=!0,"error"===t?console.error(o):console.warn(o))}},fa=Object.is;function ha(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;let n=0,o=0;for(const o in e)if(n+=1,!fa(e[o],t[o])||!(o in t))return!1;for(const e in t)o+=1;return n===o}const ma=pa(["MUI: `useGridSelector` has been called before the initialization of the state.","This hook can only be used inside the context of the grid."]);function ga(e,t){return function(e){return e.acceptsApiRef}(t)?t(e):t(e.current.state)}const ba=Object.is,va=ha,ya=()=>({state:null,equals:null,selector:null}),wa=(t,n,o=ba)=>{"production"!==process.env.NODE_ENV&&(t.current.state||ma());const r=function(t,n){const o=e.useRef(ca);return o.current===ca&&(o.current=t(n)),o}(ya),i=null!==r.current.selector,[l,a]=e.useState(i?null:ga(t,n));return r.current.state=l,r.current.equals=o,r.current.selector=n,function(t){e.useEffect(t,da)}((()=>t.current.store.subscribe((()=>{const e=ga(t,r.current.selector);r.current.equals(r.current.state,e)||(r.current.state=e,a(e))})))),l};function xa(e){return ln("MuiDataGrid",e)}const Ca=an("MuiDataGrid",["actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","autoHeight","booleanCell","cell--editable","cell--editing","cell--textCenter","cell--textLeft","cell--textRight","cell--withRenderer","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell","cellContent","cellCheckbox","cellSkeleton","checkboxInput","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderDropZone","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnGroupHeader","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeader--showColumnBorder","columnHeaders","columnHeadersInner","columnHeadersInner--scrollable","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsPanel","columnsPanelRow","detailPanel","detailPanels","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","row","row--editable","row--editing","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","scrollArea--left","scrollArea--right","scrollArea","selectedRowCount","sortIcon","toolbarContainer","toolbarFilterList","virtualScroller","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","pinnedColumns","pinnedColumns--left","pinnedColumns--right","pinnedColumnHeaders","pinnedColumnHeaders--left","pinnedColumnHeaders--right","withBorderColor","cell--withRightBorder","columnHeader--withRightBorder","treeDataGroupingCell","treeDataGroupingCellToggle","groupingCriteriaCell","groupingCriteriaCellToggle","pinnedRows","pinnedRows--top","pinnedRows--bottom","pinnedRowsRenderZone"]),Oa=Ro("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>t.main})((()=>({position:"relative",flexGrow:1,display:"flex",flexDirection:"column",overflow:"hidden"}))),Sa=e.forwardRef(((e,t)=>{const n=aa(),o=(e=>{const{classes:t}=e;return en({root:["main"]},xa,t)})(n);return Me.jsx(Oa,{ref:t,className:o.root,ownerState:n,children:e.children})}));var Ea="NOT_FOUND";var ka=function(e,t){return e===t};function Ra(e,t){var n="object"==typeof t?t:{equalityCheck:t},o=n.equalityCheck,r=void 0===o?ka:o,i=n.maxSize,l=void 0===i?1:i,a=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}}(r),u=1===l?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Ea},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var r=n[o];return o>0&&(n.splice(o,1),n.unshift(r)),r.value}return Ea}return{get:o,put:function(t,r){o(t)===Ea&&(n.unshift({key:t,value:r}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,s);function c(){var t=u.get(arguments);if(t===Ea){if(t=e.apply(null,arguments),a){var n=u.getEntries().find((function(e){return a(e.value,t)}));n&&(t=n.value)}u.put(arguments,t)}return t}return c.clearCache=function(){return u.clear()},c}function Ta(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];var i,l=0,a={memoizeOptions:void 0},s=o.pop();if("object"==typeof s&&(a=s,s=o.pop()),"function"!=typeof s)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof s+"]");var u=a.memoizeOptions,c=void 0===u?n:u,d=Array.isArray(c)?c:[c],p=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(o),f=e.apply(void 0,[function(){return l++,s.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=p.length,n=0;n<t;n++)e.push(p[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(h,{resultFunc:s,memoizedResultFunc:f,dependencies:p,lastResult:function(){return i},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),h}}var Na=Ta(Ra);const Pa={cache:new WeakMap},Ma=pa(["MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.","To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`."]);function _a(e){return"current"in e&&"instanceId"in e.current}const ja={id:"default"},Ia=(e,t,n,o,r,i,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let a;if(e&&t&&n&&o&&r&&i)a=(l,a)=>{const s=_a(l),u=a??(s?l.current.instanceId:ja),c=s?l.current.state:l,d=e(c,u),p=t(c,u),f=n(c,u),h=o(c,u),m=r(c,u);return i(d,p,f,h,m)};else if(e&&t&&n&&o&&r)a=(i,l)=>{const a=_a(i),s=l??(a?i.current.instanceId:ja),u=a?i.current.state:i,c=e(u,s),d=t(u,s),p=n(u,s),f=o(u,s);return r(c,d,p,f)};else if(e&&t&&n&&o)a=(r,i)=>{const l=_a(r),a=i??(l?r.current.instanceId:ja),s=l?r.current.state:r,u=e(s,a),c=t(s,a),d=n(s,a);return o(u,c,d)};else if(e&&t&&n)a=(o,r)=>{const i=_a(o),l=r??(i?o.current.instanceId:ja),a=i?o.current.state:o,s=e(a,l),u=t(a,l);return n(s,u)};else{if(!e||!t)throw new Error("Missing arguments");a=(n,o)=>{const r=_a(n),i=o??(r?n.current.instanceId:ja),l=r?n.current.state:n,a=e(l,i);return t(a)}}return a.acceptsApiRef=!0,a},Da=(...e)=>{const t=(...t)=>{var n,o;const[r,i]=t,l=_a(r),a=l?r.current.instanceId:i??ja,s=l?r.current.state:r;"production"!==process.env.NODE_ENV&&"default"===a.id&&Ma();const{cache:u}=Pa;var c;if(u.get(a)&&null!=(n=u.get(a))&&n.get(e))return null==(c=u.get(a))?void 0:c.get(e)(s,a);const d=Na(...e);return u.get(a)||u.set(a,new Map),null==(o=u.get(a))||o.set(e,d),d(s,a)};return t.acceptsApiRef=!0,t},Fa=e=>e.columns,Aa=Ia(Fa,(e=>e.orderedFields)),La=Ia(Fa,(e=>e.lookup)),Va=Da(Aa,La,((e,t)=>e.map((e=>t[e])))),$a=Ia(Fa,(e=>e.columnVisibilityModel)),qa=Da(Va,$a,((e,t)=>e.filter((e=>!1!==t[e.field])))),Ha=Da(qa,(e=>e.map((e=>e.field)))),za=Da(qa,(e=>{const t=[];let n=0;for(let o=0;o<e.length;o+=1)t.push(n),n+=e[o].computedWidth;return t})),Ba=Ia(qa,za,((e,t)=>{const n=e.length;return 0===n?0:t[n-1]+e[n-1].computedWidth})),Ua=Da(Va,(e=>e.filter((e=>e.filterable)))),Wa=Da(Va,(e=>e.reduce(((e,t)=>(t.filterable&&(e[t.field]=t),e)),{}))),Ga=e=>e.rows,Ka=Ia(Ga,(e=>e.totalRowCount)),Ya=Ia(Ga,(e=>e.loading)),Za=Ia(Ga,(e=>e.totalTopLevelRowCount)),Xa=Ia(Ga,(e=>e.dataRowIdToModelLookup)),Qa=Ia(Ga,(e=>e.dataRowIdToIdLookup)),Ja=Ia(Ga,(e=>e.tree)),es=Ia(Ga,(e=>e.groupingName)),ts=Ia(Ga,(e=>e.treeDepths)),ns=Da(Ga,(e=>{const t=Object.entries(e.treeDepths);return 0===t.length?1:t.filter((([,e])=>e>0)).map((([e])=>Number(e))).sort(((e,t)=>t-e))[0]+1})),os=Ia(Ga,(e=>e.dataRowIds)),rs=Ia(Ga,(e=>null==e?void 0:e.additionalRowGroups)),is=Da(rs,(e=>{var t,n;const o=null==e?void 0:e.pinnedRows;return{bottom:null==o||null==(t=o.bottom)?void 0:t.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}})),top:null==o||null==(n=o.top)?void 0:n.map((e=>{var t;return{id:e.id,model:null!=(t=e.model)?t:{}}}))}})),ls=Ia(is,(e=>{var t,n;return((null==e||null==(t=e.top)?void 0:t.length)||0)+((null==e||null==(n=e.bottom)?void 0:n.length)||0)})),as=e=>e.sorting,ss=Ia(as,(e=>e.sortedRows)),us=Da(ss,Xa,((e,t)=>e.map((e=>{var n;return{id:e,model:null!=(n=t[e])?n:{}}})))),cs=Ia(as,(e=>e.sortModel)),ds=Da(cs,(e=>e.reduce(((t,n,o)=>(t[n.field]={sortDirection:n.sort,sortIndex:e.length>1?o+1:void 0},t)),{}))),ps=e=>e.filter,fs=Ia(ps,(e=>e.filterModel));Ia(fs,(e=>e.quickFilterValues));const hs=Ia(ps,(e=>e.filteredRowsLookup));Ia(ps,(e=>e.filteredDescendantCountLookup));const ms=Da((e=>e.visibleRowsLookup),us,((e,t)=>t.filter((t=>!1!==e[t.id])))),gs=Da(ms,(e=>e.map((e=>e.id)))),bs=Da(hs,us,((e,t)=>t.filter((t=>!1!==e[t.id])))),vs=Da(bs,(e=>e.map((e=>e.id)))),ys=Da(ms,Ja,ns,((e,t,n)=>n<2?e:e.filter((e=>{var n;return 0===(null==(n=t[e.id])?void 0:n.depth)})))),ws=Ia(ms,(e=>e.length)),xs=Ia(ys,(e=>e.length)),Cs=Da(fs,La,((e,t)=>{var n;return null==(n=e.items)?void 0:n.filter((e=>{var n,o;if(!e.field)return!1;const r=t[e.field];if(null==r||!r.filterOperators||0===(null==r||null==(n=r.filterOperators)?void 0:n.length))return!1;const i=r.filterOperators.find((t=>t.value===e.operator));return!!i&&(!i.InputComponent||null!=e.value&&""!==(null==(o=e.value)?void 0:o.toString()))}))})),Os=Da(Cs,(e=>e.reduce(((e,t)=>(e[t.field]?e[t.field].push(t):e[t.field]=[t],e)),{}))),Ss=e=>e.focus,Es=Ia(Ss,(e=>e.cell)),ks=Ia(Ss,(e=>e.columnHeader));Ia(Ss,(e=>e.columnHeaderFilter));const Rs=Ia(Ss,(e=>e.columnGroupHeader)),Ts=e=>e.tabIndex,Ns=Ia(Ts,(e=>e.cell)),Ps=Ia(Ts,(e=>e.columnHeader));Ia(Ts,(e=>e.columnHeaderFilter));const Ms=Ia(Ts,(e=>e.columnGroupHeader)),_s=e=>e.density,js=Ia(_s,(e=>e.value)),Is=Ia(_s,(e=>e.factor)),Ds=e=>e.columnGrouping,Fs=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.unwrappedGroupingModel)?t:{}})),As=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.lookup)?t:{}})),Ls=Da(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.headerStructure)?t:[]})),Vs=Ia(Ds,(e=>{var t;return null!=(t=null==e?void 0:e.maxDepth)?t:0})),$s=e=>e.columnMenu;function qs(t){const{VirtualScrollerComponent:n,ColumnHeadersProps:o,children:r}=t,i=ua(),l=aa(),a=e.useRef(null),s=wa(i,qa),u=wa(i,Os),c=wa(i,ds),d=wa(i,za),p=wa(i,Ps),f=wa(i,Ns),h=wa(i,Ms),m=wa(i,ks),g=wa(i,Rs),b=wa(i,Is),v=wa(i,Vs),y=wa(i,$s),w=wa(i,$a),x=wa(i,Ls),C=!(null===h&&null===p&&null===f),[O,S]=e.useState(l.disableVirtualization);Pt((()=>{i.current.computeSizeAndPublishResizeEvent();const e=a.current;if(typeof ResizeObserver>"u")return()=>{};let t;const n=new ResizeObserver((()=>{t=window.requestAnimationFrame((()=>{i.current.computeSizeAndPublishResizeEvent()}))}));return e&&n.observe(e),()=>{t&&window.cancelAnimationFrame(t),e&&n.unobserve(e)}}),[i]);const E=e.useCallback((()=>{S(!0)}),[]),k=e.useCallback((()=>{S(!1)}),[]);e.useEffect((()=>{S(l.disableVirtualization)}),[l.disableVirtualization]),i.current.unstable_disableVirtualization=E,i.current.unstable_enableVirtualization=k;const R=e.useRef(null),T=e.useRef(null),N=e.useRef(null);i.current.register("private",{columnHeadersContainerElementRef:T,columnHeadersElementRef:R,virtualScrollerRef:N,mainElementRef:a});const P=!!i.current.getRootDimensions();return Me.jsxs(Sa,{ref:a,children:[Me.jsx(l.slots.columnHeaders,Ie({ref:T,innerRef:R,visibleColumns:s,filterColumnLookup:u,sortColumnLookup:c,columnPositions:d,columnHeaderTabIndexState:p,columnGroupHeaderTabIndexState:h,columnHeaderFocus:m,columnGroupHeaderFocus:g,densityFactor:b,headerGroupingMaxDepth:v,columnMenuState:y,columnVisibility:w,columnGroupsHeaderStructure:x,hasOtherElementInTabSequence:C},o)),P&&Me.jsx(n,{ref:N,disableVirtualization:O}),r]})}function Hs(){var e;const t=aa();return t.hideFooter?null:Me.jsx(t.slots.footer,Ie({},null==(e=t.slotProps)?void 0:e.footer))}"production"!==process.env.NODE_ENV&&(qs.propTypes={children:oe.node,ColumnHeadersProps:oe.object,VirtualScrollerComponent:oe.elementType.isRequired});const zs="auto-generated-group-node-root",Bs=Symbol("mui-autogenerated-id");const Us=(e,t,n)=>{const o=t?t(e):e.id;return function(e,t,n="A row was provided without id in the rows prop:"){if(null==e)throw new Error(["MUI: The data grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join("\n"))}(o,e,n),o},Ws=({rows:e,getRowId:t,loading:n,rowCount:o})=>{const r={type:"full",rows:[]},i={},l={};for(let n=0;n<e.length;n+=1){const o=e[n],a=Us(o,t);i[a]=o,l[a]=a,r.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:o,updates:r,dataRowIdToIdLookup:l,dataRowIdToModelLookup:i}},Gs=({tree:e,rowCountProp:t=0})=>{const n=e[zs];return Math.max(t,n.children.length+(null==n.footerId?0:1))},Ks=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:o,previousTreeDepths:r})=>{const i=e.current.caches.rows,{tree:l,treeDepths:a,dataRowIds:s,groupingName:u}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:r,updates:i.updates,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIdToModelLookup:i.dataRowIdToModelLookup}),c=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:a,dataRowIdToIdLookup:i.dataRowIdToIdLookup,dataRowIds:s,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},Ie({},c,{totalRowCount:Math.max(t,c.dataRowIds.length),totalTopLevelRowCount:Gs({tree:c.tree,rowCountProp:t}),groupingName:u,loading:n})},Ys=e=>"skeletonRow"===e.type||"footer"===e.type||"group"===e.type&&e.isAutoGenerated||"pinnedRow"===e.type&&e.isAutoGenerated,Zs=(e,t,n)=>{const o=e[t];if("group"!==o.type)return[];const r=[];for(let t=0;t<o.children.length;t+=1){const i=o.children[t];(!n||!Ys(e[i]))&&r.push(i),r.push(...Zs(e,i,n))}return!n&&null!=o.footerId&&r.push(o.footerId),r};function Xs(e){var t,n;const o=is(e);return{top:(null==o||null==(t=o.top)?void 0:t.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0,bottom:(null==o||null==(n=o.bottom)?void 0:n.reduce(((t,n)=>t+=e.current.unstable_getRowHeight(n.id)),0))||0}}function Qs(e,t){const n=Is(e);return 2*Math.floor(t*n)}const Js=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapper",overridesResolver:(e,t)=>t.overlayWrapper})({position:"sticky",top:0,left:0,width:0,height:0,zIndex:4}),eu=Ro("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",overridesResolver:(e,t)=>t.overlayWrapperInner})({}),tu=e=>{const{classes:t}=e;return en({root:["overlayWrapper"],inner:["overlayWrapperInner"]},xa,t)};function nu(t){var n,o;const r=ia(),i=aa(),[l,a]=e.useState((()=>{var e,t;return null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null})),s=e.useCallback((()=>{var e,t;a(null!=(e=null==(t=r.current.getRootDimensions())?void 0:t.viewportInnerSize)?e:null)}),[r]);Pt((()=>r.current.subscribeEvent("viewportInnerSizeChange",s)),[r,s]);let u=null!=(n=null==l?void 0:l.height)?n:0;i.autoHeight&&0===u&&(u=Qs(r,i.rowHeight));const c=tu(Ie({},t,{classes:i.classes}));return l?Me.jsx(Js,{className:vo(c.root),children:Me.jsx(eu,Ie({className:vo(c.inner),style:{height:u,width:null!=(o=null==l?void 0:l.width)?o:0}},t))}):null}function ou(){const e=ia(),t=aa(),n=wa(e,Ka),o=wa(e,ws),r=wa(e,Ya),i=!r&&n>0&&0===o;let l=null;var a,s,u;r||0!==n||(l=Me.jsx(t.slots.noRowsOverlay,Ie({},null==(a=t.slotProps)?void 0:a.noRowsOverlay)));i&&(l=Me.jsx(t.slots.noResultsOverlay,Ie({},null==(s=t.slotProps)?void 0:s.noResultsOverlay)));r&&(l=Me.jsx(t.slots.loadingOverlay,Ie({},null==(u=t.slotProps)?void 0:u.loadingOverlay)));return null===l?null:Me.jsx(nu,{children:l})}function ru(t){return e.memo(t,ha)}let iu;function lu(){return void 0===iu&&document.createElement("div").focus({get preventScroll(){return iu=!0,!1}}),iu}var au=function(e){return e.Cell="cell",e.Row="row",e}(au||{}),su=function(e){return e.Edit="edit",e.View="view",e}(su||{}),uu=function(e){return e.Edit="edit",e.View="view",e}(uu||{}),cu=function(e){return e.And="and",e.Or="or",e}(cu||{}),du=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(du||{}),pu=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(pu||{}),fu=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(fu||{}),hu=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(hu||{});function mu(e){return void 0!==e.field}function gu(e){return e.replace(/["\\]/g,"\\$&")}function bu(e){return`.${Ca.row}[data-id="${gu(String(e))}"]`}function vu(t,n,o){const r=e.useRef(n),[i]=e.useState(Object.keys(n)),l=e.useCallback((()=>{t.current&&i.forEach((e=>{t.current.hasOwnProperty(e)||t.current.register(o,{[e]:(...t)=>(0,r.current[e])(...t)})}))}),[i,t,o]);e.useEffect((()=>{r.current=n}),[n]),e.useEffect((()=>{l()}),[l]),l()}class yu extends Error{}function wu(t,n){const{getRowId:o}=n,r=e.useCallback((e=>({field:e,colDef:t.current.getColumn(e)})),[t]),i=e.useCallback((e=>{const n=t.current.getRow(e);if(!n)throw new yu(`No row with id #${e} found`);return{id:e,columns:t.current.getAllColumns(),row:n}}),[t]),l=e.useCallback(((e,n)=>{const o=t.current.getRow(e),r=t.current.getRowNode(e);if(!o||!r)throw new yu(`No row with id #${e} found`);const i=Es(t),l=Ns(t);return{id:e,field:n,row:o,rowNode:r,value:o[n],colDef:t.current.getColumn(n),cellMode:t.current.getCellMode(e,n),api:t.current,hasFocus:null!==i&&i.field===n&&i.id===e,tabIndex:l&&l.field===n&&l.id===e?0:-1}}),[t]),a=e.useCallback(((e,n)=>{const o=t.current.getColumn(n),r=t.current.getCellValue(e,n),i=t.current.getRow(e),l=t.current.getRowNode(e);if(!i||!l)throw new yu(`No row with id #${e} found`);const a=Es(t),s=Ns(t),u={id:e,field:n,row:i,rowNode:l,colDef:o,cellMode:t.current.getCellMode(e,n),hasFocus:null!==a&&a.field===n&&a.id===e,tabIndex:s&&s.field===n&&s.id===e?0:-1,value:r,formattedValue:r,isEditable:!1};return o&&o.valueFormatter&&(u.formattedValue=o.valueFormatter({id:e,field:u.field,value:u.value,api:t.current})),u.isEditable=o&&t.current.isCellEditable(u),u}),[t]),s=e.useCallback(((e,n)=>{const o=t.current.getColumn(n);if(!o||!o.valueGetter){const o=t.current.getRow(e);if(!o)throw new yu(`No row with id #${e} found`);return o[n]}return o.valueGetter(l(e,n))}),[t,l]),u=e.useCallback(((e,t)=>{var n;const r=Bs in e?e[Bs]:null!=(n=null==o?void 0:o(e))?n:e.id,i=t.field;return t&&t.valueGetter?t.valueGetter(l(r,i)):e[i]}),[l,o]),c=e.useCallback(((e,n)=>{var r;const i=u(e,n);if(!n||!n.valueFormatter)return i;const l=null!=(r=o?o(e):e.id)?r:e[Bs],a=n.field;return n.valueFormatter({id:l,field:a,value:i,api:t.current})}),[t,o,u]),d=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(`[role="columnheader"][data-field="${gu(t)}"]`)}(t.current.rootElementRef.current,e):null),[t]),p=e.useCallback((e=>t.current.rootElementRef.current?function(e,t){return e.querySelector(bu(t))}(t.current.rootElementRef.current,e):null),[t]),f=e.useCallback(((e,n)=>t.current.rootElementRef.current?function(e,{id:t,field:n}){const o=`${bu(t)} .${Ca.cell}[data-field="${gu(n)}"]`;return e.querySelector(o)}(t.current.rootElementRef.current,{id:e,field:n}):null),[t]);vu(t,{getCellValue:s,getCellParams:a,getCellElement:f,getRowValue:u,getRowFormattedValue:c,getRowParams:i,getRowElement:p,getColumnHeaderParams:r,getColumnHeaderElement:d},"public")}const xu=["changeReason","unstable_updateValueOnRender"],Cu=["align","children","editCellState","colIndex","column","cellMode","field","formattedValue","hasFocus","height","isEditable","isSelected","rowId","tabIndex","value","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Ou=["column","rowId","editCellState","align","children","colIndex","height","width","className","showRightBorder","extendRowFullWidth","row","colSpan","disableDragEvents","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],Su=["changeReason","unstable_updateValueOnRender"],Eu={id:-1,field:"__unset__",row:{},rowNode:{id:-1,depth:0,type:"leaf",parent:-1,groupingKey:null},colDef:{type:"string",field:"__unset__",computedWidth:0},cellMode:su.View,hasFocus:!1,tabIndex:-1,value:null,formattedValue:"__unset__",isEditable:!1,api:{}},ku=e=>{const{align:t,showRightBorder:n,isEditable:o,isSelected:r,classes:i}=e;return en({root:["cell",`cell--text${Ot(t)}`,o&&"cell--editable",r&&"selected",n&&"cell--withRightBorder","withBorderColor"],content:["cellContent"]},xa,i)};let Ru=!1;const Tu=e.forwardRef(((t,n)=>{const{column:o,rowId:r,editCellState:i}=t,l=ia(),a=aa(),s=o.field,u=wa(l,(()=>{try{const e=l.current.getCellParams(r,s);return e.api=l.current,e}catch(e){if(e instanceof yu)return Eu;throw e}}),va),c=wa(l,(()=>l.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:r,field:s})));if(u===Eu)return null;const{cellMode:d,hasFocus:p,isEditable:f,value:h,formattedValue:m}=u,g="actions"===o.type,b="view"!==d&&f||g?-1:u.tabIndex,{classes:v,getCellClassName:y}=a,w=l.current.unstable_applyPipeProcessors("cellClassName",[],{id:r,field:s});let x;if(o.cellClassName&&w.push("function"==typeof o.cellClassName?o.cellClassName(u):o.cellClassName),y&&w.push(y(u)),null==i&&o.renderCell&&(x=o.renderCell(u),w.push(Ca["cell--withRenderer"]),w.push(null==v?void 0:v["cell--withRenderer"])),null!=i&&o.renderEditCell){const e=Ie({},u,{row:l.current.getRowWithUpdatedValues(r,o.field)},De(i,xu));x=o.renderEditCell(e),w.push(Ca["cell--editing"]),w.push(null==v?void 0:v["cell--editing"])}const{slots:C}=a,O=C.cell,S=Ie({},t,{ref:n,field:s,formattedValue:m,hasFocus:p,isEditable:f,isSelected:c,value:h,cellMode:d,children:x,tabIndex:b,className:vo(w)});return e.createElement(O,S)})),Nu=e.forwardRef(((t,n)=>{var o;const{align:r,children:i,colIndex:l,column:a,cellMode:s,field:u,formattedValue:c,hasFocus:d,height:p,isEditable:f,isSelected:h,rowId:m,tabIndex:g,value:b,width:v,className:y,showRightBorder:w,colSpan:x,disableDragEvents:C,onClick:O,onDoubleClick:S,onMouseDown:E,onMouseUp:k,onMouseOver:R,onKeyDown:T,onKeyUp:N,onDragEnter:P,onDragOver:M}=t,_=De(t,Cu),j=c??b,I=e.useRef(null),D=Ft(n,I),F=e.useRef(null),A=ia(),L=aa(),V={align:r,showRightBorder:w,isEditable:f,classes:L.classes,isSelected:h},$=ku(V),q=e.useCallback((e=>t=>{const n=A.current.getCellParams(m,u||"");A.current.publishEvent(e,n,t),k&&k(t)}),[A,u,k,m]),H=e.useCallback((e=>t=>{const n=A.current.getCellParams(m,u||"");A.current.publishEvent(e,n,t),E&&E(t)}),[A,u,E,m]),z=e.useCallback(((e,t)=>n=>{if(!A.current.getRow(m))return;const o=A.current.getCellParams(m,u||"");A.current.publishEvent(e,o,n),t&&t(n)}),[A,u,m]),B={minWidth:v,maxWidth:v,minHeight:p,maxHeight:"auto"===p?"none":p};e.useEffect((()=>{if(!d||s===su.Edit)return;const e=Rt(A.current.rootElementRef.current);if(I.current&&!I.current.contains(e.activeElement)){const e=I.current.querySelector('[tabindex="0"]'),t=F.current||e||I.current;if(lu())t.focus({preventScroll:!0});else{const e=A.current.getScrollPosition();t.focus(),A.current.scroll(e)}}}),[d,s,A]);let U=_.onFocus;"test"===process.env.NODE_ENV&&null!=(o=L.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(U=e=>{const t=Es(A);(null==t?void 0:t.id)!==m||t.field!==u?Ru||(console.warn([`MUI: The cell with id=${m} and field=${u} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Ru=!0):"function"==typeof _.onFocus&&_.onFocus(e)});const W="actions"===a.type;let G=i;if(void 0===G){const e=null==j?void 0:j.toString();G=Me.jsx("div",{className:$.content,title:e,children:e})}e.isValidElement(G)&&W&&(G=e.cloneElement(G,{focusElementRef:F}));const K=C?null:{onDragEnter:z("cellDragEnter",P),onDragOver:z("cellDragOver",M)};return Me.jsx("div",Ie({ref:D,className:vo(y,$.root),role:"cell","data-field":u,"data-colindex":l,"aria-colindex":l+1,"aria-colspan":x,style:B,tabIndex:g,onClick:z("cellClick",O),onDoubleClick:z("cellDoubleClick",S),onMouseOver:z("cellMouseOver",R),onMouseDown:H("cellMouseDown"),onMouseUp:q("cellMouseUp"),onKeyDown:z("cellKeyDown",T),onKeyUp:z("cellKeyUp",N)},K,_,{onFocus:U,children:G}))})),Pu=ru(Tu);"production"!==process.env.NODE_ENV&&(Tu.propTypes={align:oe.oneOf(["center","left","right"]),className:oe.string,colIndex:oe.number,colSpan:oe.number,column:oe.object,disableDragEvents:oe.bool,height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]),showRightBorder:oe.bool,width:oe.number}),"production"!==process.env.NODE_ENV&&(Nu.propTypes={align:oe.oneOf(["center","left","right"]),cellMode:oe.oneOf(["edit","view"]),children:oe.node,className:oe.string,colIndex:oe.number,colSpan:oe.number,column:oe.object,disableDragEvents:oe.bool,editCellState:oe.shape({changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:oe.bool,isValidating:oe.bool,value:oe.any}),height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]),onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]),showRightBorder:oe.bool,width:oe.number});const Mu=e.forwardRef(((t,n)=>{var o;const{column:r,rowId:i,editCellState:l,align:a,colIndex:s,height:u,width:c,className:d,showRightBorder:p,colSpan:f,disableDragEvents:h,onClick:m,onDoubleClick:g,onMouseDown:b,onMouseUp:v,onMouseOver:y,onKeyDown:w,onKeyUp:x,onDragEnter:C,onDragOver:O}=t,S=De(t,Ou),E=ia(),k=aa(),R=r.field,T=wa(E,(()=>{try{const e=E.current.getCellParams(i,R);return e.api=E.current,e}catch(e){if(e instanceof yu)return Eu;throw e}}),va),N=wa(E,(()=>E.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:R}))),{cellMode:P,hasFocus:M,isEditable:_,value:j,formattedValue:I}=T,D="actions"===r.type,F="view"!==P&&_||D?-1:T.tabIndex,{classes:A,getCellClassName:L}=k,V=E.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:R});r.cellClassName&&V.push("function"==typeof r.cellClassName?r.cellClassName(T):r.cellClassName),L&&V.push(L(T));const $=I??j,q=e.useRef(null),H=Ft(n,q),z=e.useRef(null),B={align:a,showRightBorder:p,isEditable:_,classes:k.classes,isSelected:N},U=ku(B),W=e.useCallback((e=>t=>{const n=E.current.getCellParams(i,R||"");E.current.publishEvent(e,n,t),v&&v(t)}),[E,R,v,i]),G=e.useCallback((e=>t=>{const n=E.current.getCellParams(i,R||"");E.current.publishEvent(e,n,t),b&&b(t)}),[E,R,b,i]),K=e.useCallback(((e,t)=>n=>{if(!E.current.getRow(i))return;const o=E.current.getCellParams(i,R||"");E.current.publishEvent(e,o,n),t&&t(n)}),[E,R,i]),Y={minWidth:c,maxWidth:c,minHeight:u,maxHeight:"auto"===u?"none":u};if(e.useEffect((()=>{if(!M||P===su.Edit)return;const e=Rt(E.current.rootElementRef.current);if(q.current&&!q.current.contains(e.activeElement)){const e=q.current.querySelector('[tabindex="0"]'),t=z.current||e||q.current;if(lu())t.focus({preventScroll:!0});else{const e=E.current.getScrollPosition();t.focus(),E.current.scroll(e)}}}),[M,P,E]),T===Eu)return null;let Z,X=S.onFocus;if("test"===process.env.NODE_ENV&&null!=(o=k.experimentalFeatures)&&o.warnIfFocusStateIsNotSynced&&(X=e=>{const t=Es(E);(null==t?void 0:t.id)!==i||t.field!==R?Ru||(console.warn([`MUI: The cell with id=${i} and field=${R} received focus.`,`According to the state, the focus should be at id=${null==t?void 0:t.id}, field=${null==t?void 0:t.field}.`,"Not syncing the state may cause unwanted behaviors since the `cellFocusIn` event won't be fired.","Call `fireEvent.mouseUp` before the `fireEvent.click` to sync the focus with the state."].join("\n")),Ru=!0):"function"==typeof S.onFocus&&S.onFocus(e)}),null==l&&r.renderCell&&(Z=r.renderCell(T),V.push(Ca["cell--withRenderer"]),V.push(null==A?void 0:A["cell--withRenderer"])),null!=l&&r.renderEditCell){const e=Ie({},T,{row:E.current.getRowWithUpdatedValues(i,r.field)},De(l,Su));Z=r.renderEditCell(e),V.push(Ca["cell--editing"]),V.push(null==A?void 0:A["cell--editing"])}if(void 0===Z){const e=null==$?void 0:$.toString();Z=Me.jsx("div",{className:U.content,title:e,children:e})}e.isValidElement(Z)&&D&&(Z=e.cloneElement(Z,{focusElementRef:z}));const Q=h?null:{onDragEnter:K("cellDragEnter",C),onDragOver:K("cellDragOver",O)};return Me.jsx("div",Ie({ref:H,className:vo(d,V,U.root),role:"cell","data-field":R,"data-colindex":s,"aria-colindex":s+1,"aria-colspan":f,style:Y,tabIndex:F,onClick:K("cellClick",m),onDoubleClick:K("cellDoubleClick",g),onMouseOver:K("cellMouseOver",y),onMouseDown:G("cellMouseDown"),onMouseUp:W("cellMouseUp"),onKeyDown:K("cellKeyDown",w),onKeyUp:K("cellKeyUp",x)},Q,S,{onFocus:X,children:Z}))}));"production"!==process.env.NODE_ENV&&(Mu.propTypes={align:oe.oneOf(["center","left","right"]).isRequired,className:oe.string,colIndex:oe.number.isRequired,colSpan:oe.number,column:oe.object.isRequired,disableDragEvents:oe.bool,editCellState:oe.shape({changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),isProcessingProps:oe.bool,isValidating:oe.bool,value:oe.any}),height:oe.oneOfType([oe.oneOf(["auto"]),oe.number]).isRequired,onClick:oe.func,onDoubleClick:oe.func,onDragEnter:oe.func,onDragOver:oe.func,onKeyDown:oe.func,onMouseDown:oe.func,onMouseUp:oe.func,rowId:oe.oneOfType([oe.number,oe.string]).isRequired,showRightBorder:oe.bool,width:oe.number.isRequired});const _u=ru(Mu),ju=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex"];function Iu(t){const{value:n}=t,o=De(t,ju),r=ia(),i=aa(),l=(e=>{const{classes:t}=e;return en({root:["booleanCell"]},xa,t)})({classes:i.classes}),a=e.useMemo((()=>n?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon),[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,n]);return Me.jsx(a,Ie({fontSize:"small",className:l.root,titleAccess:r.current.getLocaleText(n?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!n},o))}"production"!==process.env.NODE_ENV&&(Iu.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,colDef:oe.object.isRequired,field:oe.string.isRequired,focusElementRef:oe.oneOfType([oe.func,oe.shape({current:oe.shape({focus:oe.func.isRequired})})]),formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Du=e.memo(Iu),Fu=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"];function Au(t){var n;const{id:o,value:r,field:i,className:l,hasFocus:a,onValueChange:s}=t,u=De(t,Fu),c=ia(),d=e.useRef(null),p=jt(),[f,h]=e.useState(r),m=aa(),g=(e=>{const{classes:t}=e;return en({root:["editBooleanCell"]},xa,t)})({classes:m.classes}),b=e.useCallback((async e=>{const t=e.target.checked;s&&await s(e,t),h(t),await c.current.setEditCellValue({id:o,field:i,value:t},e)}),[c,i,o,s]);return e.useEffect((()=>{h(r)}),[r]),Pt((()=>{a&&d.current.focus()}),[a]),Me.jsx("label",Ie({htmlFor:p,className:vo(g.root,l)},u,{children:Me.jsx(m.slots.baseCheckbox,Ie({id:p,inputRef:d,checked:!!f,onChange:b,size:"small"},null==(n=m.slotProps)?void 0:n.baseCheckbox))}))}"production"!==process.env.NODE_ENV&&(Au.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});function Lu(e){return"string"==typeof e}function Vu(e,t,n){return void 0===e||Lu(e)?t:Ie({},t,{ownerState:Ie({},t.ownerState,n)})}const $u={disableDefaultClasses:!1},qu=e.createContext($u);function Hu(t){const{disableDefaultClasses:n}=e.useContext(qu);return e=>n?"":t(e)}function zu(e,t,n){return"function"==typeof e?e(t,n):e}function Bu(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}function Uu(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:i}=e;if(!t){const e=vo(null==r?void 0:r.className,null==o?void 0:o.className,i,null==n?void 0:n.className),t=Ie({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),l=Ie({},n,r,o);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}(Ie({},r,o)),a=Bu(o),s=Bu(r),u=t(l),c=vo(null==u?void 0:u.className,null==n?void 0:n.className,i,null==r?void 0:r.className,null==o?void 0:o.className),d=Ie({},null==u?void 0:u.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),p=Ie({},u,n,s,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const Wu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gu(e){var t;const{elementType:n,externalSlotProps:o,ownerState:r,skipResolvingSlotProps:i=!1}=e,l=De(e,Wu),a=i?{}:zu(o,r),{props:s,internalRef:u}=Uu(Ie({},l,{externalSlotProps:a}));return Vu(n,Ie({},s,{ref:Ft(u,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref)}),r)}function Ku(e){return e.substring(2).toLowerCase()}function Yu(t){const{children:n,disableReactTree:o=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:l="onTouchEnd"}=t,a=e.useRef(!1),s=e.useRef(null),u=e.useRef(!1),c=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{u.current=!0}),0),()=>{u.current=!1})),[]);const d=Ft(n.ref,s),p=Dt((e=>{const t=c.current;c.current=!1;const n=Rt(s.current);if(!u.current||!s.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n))return;if(a.current)return void(a.current=!1);let r;r=e.composedPath?e.composedPath().indexOf(s.current)>-1:!n.documentElement.contains(e.target)||s.current.contains(e.target),!r&&(o||!t)&&i(e)})),f=e=>t=>{c.current=!0;const o=n.props[e];o&&o(t)},h={ref:d};return!1!==l&&(h[l]=f(l)),e.useEffect((()=>{if(!1!==l){const e=Ku(l),t=Rt(s.current),n=()=>{a.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",n)}}}),[p,l]),!1!==r&&(h[r]=f(r)),e.useEffect((()=>{if(!1!==r){const e=Ku(r),t=Rt(s.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,r]),Me.jsx(e.Fragment,{children:e.cloneElement(n,h)})}"production"!==process.env.NODE_ENV&&(Yu.propTypes={children:st.isRequired,disableReactTree:oe.bool,mouseEvent:oe.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:oe.func.isRequired,touchEvent:oe.oneOf(["onTouchEnd","onTouchStart",!1])}),"production"!==process.env.NODE_ENV&&(Yu.propTypes=ct(Yu.propTypes));const Zu=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Xu(e){const t=[],n=[];return Array.from(e.querySelectorAll(Zu)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===r||!function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)||(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Qu(){return!0}function Ju(t){const{children:n,disableAutoFocus:o=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:l=Xu,isEnabled:a=Qu,open:s}=t,u=e.useRef(!1),c=e.useRef(null),d=e.useRef(null),p=e.useRef(null),f=e.useRef(null),h=e.useRef(!1),m=e.useRef(null),g=Ft(n.ref,m),b=e.useRef(null);e.useEffect((()=>{!s||!m.current||(h.current=!o)}),[o,s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||("production"!==process.env.NODE_ENV&&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("\n")),m.current.setAttribute("tabIndex","-1")),h.current&&m.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),e.useEffect((()=>{if(!s||!m.current)return;const e=Rt(m.current),t=t=>{const{current:n}=m;if(null!==n){if(!e.hasFocus()||r||!a()||u.current)return void(u.current=!1);if(!n.contains(e.activeElement)){if(t&&f.current!==t.target||e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!h.current)return;let r=[];if((e.activeElement===c.current||e.activeElement===d.current)&&(r=l(m.current)),r.length>0){var o,i;const e=!(null==(o=b.current)||!o.shiftKey||"Tab"!==(null==(i=b.current)?void 0:i.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else n.focus()}}},n=t=>{b.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}),[o,r,i,a,s,l]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0};return Me.jsxs(e.Fragment,{children:[Me.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),e.cloneElement(n,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),h.current=!0,f.current=e.target;const t=n.props.onFocus;t&&t(e)}}),Me.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}"production"!==process.env.NODE_ENV&&(Ju.propTypes={children:st,disableAutoFocus:oe.bool,disableEnforceFocus:oe.bool,disableRestoreFocus:oe.bool,getTabbable:oe.func,isEnabled:oe.func,open:oe.bool.isRequired}),"production"!==process.env.NODE_ENV&&(Ju.propTypes=ct(Ju.propTypes));var ec="top",tc="bottom",nc="right",oc="left",rc="auto",ic=[ec,tc,nc,oc],lc="start",ac="end",sc="clippingParents",uc="viewport",cc="popper",dc="reference",pc=ic.reduce((function(e,t){return e.concat([t+"-"+lc,t+"-"+ac])}),[]),fc=[].concat(ic,[rc]).reduce((function(e,t){return e.concat([t,t+"-"+lc,t+"-"+ac])}),[]),hc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mc(e){return e?(e.nodeName||"").toLowerCase():null}function gc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bc(e){return e instanceof gc(e).Element||e instanceof Element}function vc(e){return e instanceof gc(e).HTMLElement||e instanceof HTMLElement}function yc(e){return!(typeof ShadowRoot>"u")&&(e instanceof gc(e).ShadowRoot||e instanceof ShadowRoot)}const wc={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];!vc(r)||!mc(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(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(e){var o=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});!vc(o)||!mc(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function xc(e){return e.split("-")[0]}var Cc=Math.max,Oc=Math.min,Sc=Math.round;function Ec(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function kc(){return!/^((?!chrome|android).)*safari/i.test(Ec())}function Rc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&vc(e)&&(r=e.offsetWidth>0&&Sc(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Sc(o.height)/e.offsetHeight||1);var l=(bc(e)?gc(e):window).visualViewport,a=!kc()&&n,s=(o.left+(a&&l?l.offsetLeft:0))/r,u=(o.top+(a&&l?l.offsetTop:0))/i,c=o.width/r,d=o.height/i;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s,x:s,y:u}}function Tc(e){var t=Rc(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 Nc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yc(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pc(e){return gc(e).getComputedStyle(e)}function Mc(e){return["table","td","th"].indexOf(mc(e))>=0}function _c(e){return((bc(e)?e.ownerDocument:e.document)||window.document).documentElement}function jc(e){return"html"===mc(e)?e:e.assignedSlot||e.parentNode||(yc(e)?e.host:null)||_c(e)}function Ic(e){return vc(e)&&"fixed"!==Pc(e).position?e.offsetParent:null}function Dc(e){for(var t=gc(e),n=Ic(e);n&&Mc(n)&&"static"===Pc(n).position;)n=Ic(n);return n&&("html"===mc(n)||"body"===mc(n)&&"static"===Pc(n).position)?t:n||function(e){var t=/firefox/i.test(Ec());if(/Trident/i.test(Ec())&&vc(e)&&"fixed"===Pc(e).position)return null;var n=jc(e);for(yc(n)&&(n=n.host);vc(n)&&["html","body"].indexOf(mc(n))<0;){var o=Pc(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function Fc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ac(e,t,n){return Cc(e,Oc(t,n))}function Lc(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Vc(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const $c={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,a=xc(n.placement),s=Fc(a),u=[oc,nc].indexOf(a)>=0?"height":"width";if(i&&l){var c=function(e,t){return Lc("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Vc(e,ic))}(r.padding,n),d=Tc(i),p="y"===s?ec:oc,f="y"===s?tc:nc,h=n.rects.reference[u]+n.rects.reference[s]-l[s]-n.rects.popper[u],m=l[s]-n.rects.reference[s],g=Dc(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=c[p],w=b-d[u]-c[f],x=b/2-d[u]/2+v,C=Ac(y,x,w),O=s;n.modifiersData[o]=((t={})[O]=C,t.centerOffset=C-x,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||Nc(t.elements.popper,o)&&(t.elements.arrow=o))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qc(e){return e.split("-")[1]}var Hc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zc(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,l=e.offsets,a=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=l.x,f=void 0===p?0:p,h=l.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=l.hasOwnProperty("x"),v=l.hasOwnProperty("y"),y=oc,w=ec,x=window;if(u){var C=Dc(n),O="clientHeight",S="clientWidth";if(C===gc(n)&&("static"!==Pc(C=_c(n)).position&&"absolute"===a&&(O="scrollHeight",S="scrollWidth")),r===ec||(r===oc||r===nc)&&i===ac)w=tc,m-=(d&&C===x&&x.visualViewport?x.visualViewport.height:C[O])-o.height,m*=s?1:-1;if(r===oc||(r===ec||r===tc)&&i===ac)y=nc,f-=(d&&C===x&&x.visualViewport?x.visualViewport.width:C[S])-o.width,f*=s?1:-1}var E,k=Object.assign({position:a},u&&Hc),R=!0===c?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Sc(n*r)/r||0,y:Sc(o*r)/r||0}}({x:f,y:m},gc(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},k,((E={})[w]=v?"0":"",E[y]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},k,((t={})[w]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}const Bc={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,l=void 0===i||i,a=n.roundOffsets,s=void 0===a||a,u={placement:xc(t.placement),variation:qc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zc(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zc(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Uc={passive:!0};const Wc={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=void 0===r||r,l=o.resize,a=void 0===l||l,s=gc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Uc)})),a&&s.addEventListener("resize",n.update,Uc),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Uc)})),a&&s.removeEventListener("resize",n.update,Uc)}},data:{}};var Gc={left:"right",right:"left",bottom:"top",top:"bottom"};function Kc(e){return e.replace(/left|right|bottom|top/g,(function(e){return Gc[e]}))}var Yc={start:"end",end:"start"};function Zc(e){return e.replace(/start|end/g,(function(e){return Yc[e]}))}function Xc(e){var t=gc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qc(e){return Rc(_c(e)).left+Xc(e).scrollLeft}function Jc(e){var t=Pc(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function ed(e){return["html","body","#document"].indexOf(mc(e))>=0?e.ownerDocument.body:vc(e)&&Jc(e)?e:ed(jc(e))}function td(e,t){var n;void 0===t&&(t=[]);var o=ed(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=gc(o),l=r?[i].concat(i.visualViewport||[],Jc(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(td(jc(l)))}function nd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function od(e,t,n){return t===uc?nd(function(e,t){var n=gc(e),o=_c(e),r=n.visualViewport,i=o.clientWidth,l=o.clientHeight,a=0,s=0;if(r){i=r.width,l=r.height;var u=kc();(u||!u&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}return{width:i,height:l,x:a+Qc(e),y:s}}(e,n)):bc(t)?function(e,t){var n=Rc(e,!1,"fixed"===t);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}(t,n):nd(function(e){var t,n=_c(e),o=Xc(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Cc(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Cc(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+Qc(e),s=-o.scrollTop;return"rtl"===Pc(r||n).direction&&(a+=Cc(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:s}}(_c(e)))}function rd(e,t,n,o){var r="clippingParents"===t?function(e){var t=td(jc(e)),n=["absolute","fixed"].indexOf(Pc(e).position)>=0&&vc(e)?Dc(e):e;return bc(n)?t.filter((function(e){return bc(e)&&Nc(e,n)&&"body"!==mc(e)})):[]}(e):[].concat(t),i=[].concat(r,[n]),l=i[0],a=i.reduce((function(t,n){var r=od(e,n,o);return t.top=Cc(r.top,t.top),t.right=Oc(r.right,t.right),t.bottom=Oc(r.bottom,t.bottom),t.left=Cc(r.left,t.left),t}),od(e,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function id(e){var t,n=e.reference,o=e.element,r=e.placement,i=r?xc(r):null,l=r?qc(r):null,a=n.x+n.width/2-o.width/2,s=n.y+n.height/2-o.height/2;switch(i){case ec:t={x:a,y:n.y-o.height};break;case tc:t={x:a,y:n.y+n.height};break;case nc:t={x:n.x+n.width,y:s};break;case oc:t={x:n.x-o.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Fc(i):null;if(null!=u){var c="y"===u?"height":"width";switch(l){case lc:t[u]=t[u]-(n[c]/2-o[c]/2);break;case ac:t[u]=t[u]+(n[c]/2-o[c]/2)}}return t}function ld(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,i=n.strategy,l=void 0===i?e.strategy:i,a=n.boundary,s=void 0===a?sc:a,u=n.rootBoundary,c=void 0===u?uc:u,d=n.elementContext,p=void 0===d?cc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=Lc("number"!=typeof g?g:Vc(g,ic)),v=p===cc?dc:cc,y=e.rects.popper,w=e.elements[h?v:p],x=rd(bc(w)?w:w.contextElement||_c(e.elements.popper),s,c,l),C=Rc(e.elements.reference),O=id({reference:C,element:y,strategy:"absolute",placement:r}),S=nd(Object.assign({},y,O)),E=p===cc?S:C,k={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},R=e.modifiersData.offset;if(p===cc&&R){var T=R[r];Object.keys(k).forEach((function(e){var t=[nc,tc].indexOf(e)>=0?1:-1,n=[ec,tc].indexOf(e)>=0?"y":"x";k[e]+=T[n]*t}))}return k}const ad={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0===l||l,s=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=xc(g),v=s||(b===g||!h?[Kc(g)]:function(e){if(xc(e)===rc)return[];var t=Kc(e);return[Zc(e),t,Zc(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(xc(n)===rc?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,l=n.padding,a=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?fc:s,c=qc(o),d=c?a?pc:pc.filter((function(e){return qc(e)===c})):ic,p=d.filter((function(e){return u.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=ld(e,{placement:n,boundary:r,rootBoundary:i,padding:l})[xc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,C=new Map,O=!0,S=y[0],E=0;E<y.length;E++){var k=y[E],R=xc(k),T=qc(k)===lc,N=[ec,tc].indexOf(R)>=0,P=N?"width":"height",M=ld(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),_=N?T?nc:oc:T?tc:ec;w[P]>x[P]&&(_=Kc(_));var j=Kc(_),I=[];if(i&&I.push(M[R]<=0),a&&I.push(M[_]<=0,M[j]<=0),I.every((function(e){return e}))){S=k,O=!1;break}C.set(k,I)}if(O)for(var D=function(e){var t=y.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},F=h?3:1;F>0;F--){if("break"===D(F))break}t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function sd(e,t,n){return void 0===n&&(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 ud(e){return[ec,nc,tc,oc].some((function(t){return e[t]>=0}))}const cd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,l=ld(t,{elementContext:"reference"}),a=ld(t,{altBoundary:!0}),s=sd(l,o),u=sd(a,r,i),c=ud(s),d=ud(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};const dd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=void 0===r?[0,0]:r,l=fc.reduce((function(e,n){return e[n]=function(e,t,n){var o=xc(e),r=[oc,ec].indexOf(o)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=i[0],a=i[1];return l=l||0,a=(a||0)*r,[oc,nc].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}(n,t.rects,i),e}),{}),a=l[t.placement],s=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=l}};const pd={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=id({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const fd={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,i=void 0===r||r,l=n.altAxis,a=void 0!==l&&l,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=ld(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:c}),b=xc(t.placement),v=qc(t.placement),y=!v,w=Fc(b),x=function(e){return"x"===e?"y":"x"}(w),C=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(C){if(i){var N,P="y"===w?ec:oc,M="y"===w?tc:nc,_="y"===w?"height":"width",j=C[w],I=j+g[P],D=j-g[M],F=f?-S[_]/2:0,A=v===lc?O[_]:S[_],L=v===lc?-S[_]:-O[_],V=t.elements.arrow,$=f&&V?Tc(V):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=q[P],z=q[M],B=Ac(0,O[_],$[_]),U=y?O[_]/2-F-B-H-k.mainAxis:A-B-H-k.mainAxis,W=y?-O[_]/2+F+B+z+k.mainAxis:L+B+z+k.mainAxis,G=t.elements.arrow&&Dc(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,Y=null!=(N=null==R?void 0:R[w])?N:0,Z=j+W-Y,X=Ac(f?Oc(I,j+U-Y-K):I,j,f?Cc(D,Z):D);C[w]=X,T[w]=X-j}if(a){var Q,J="x"===w?ec:oc,ee="x"===w?tc:nc,te=C[x],ne="y"===x?"height":"width",oe=te+g[J],re=te-g[ee],ie=-1!==[ec,oc].indexOf(b),le=null!=(Q=null==R?void 0:R[x])?Q:0,ae=ie?oe:te-O[ne]-S[ne]-le+k.altAxis,se=ie?te+O[ne]+S[ne]-le-k.altAxis:re,ue=f&&ie?function(e,t,n){var o=Ac(e,t,n);return o>n?n:o}(ae,te,se):Ac(f?ae:oe,te,f?se:re);C[x]=ue,T[x]=ue-te}t.modifiersData[o]=T}},requiresIfExists:["offset"]};function hd(e,t,n){void 0===n&&(n=!1);var o=vc(t),r=vc(t)&&function(e){var t=e.getBoundingClientRect(),n=Sc(t.width)/e.offsetWidth||1,o=Sc(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),i=_c(t),l=Rc(e,r,n),a={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(o||!o&&!n)&&(("body"!==mc(t)||Jc(i))&&(a=function(e){return e!==gc(e)&&vc(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):Xc(e)}(t)),vc(t)?((s=Rc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Qc(i))),{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function md(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function gd(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var bd={placement:"bottom",modifiers:[],strategy:"absolute"};function vd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function yd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,i=void 0===r?bd:r;return function(e,t,n){void 0===n&&(n=i);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},bd,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],a=!1,s={state:r,setOptions:function(n){var a="function"==typeof n?n(r.options):n;u(),r.options=Object.assign({},i,r.options,a),r.scrollParents={reference:bc(e)?td(e):e.contextElement?td(e.contextElement):[],popper:td(t)};var c=function(e){var t=md(e);return hc.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(o,r.options.modifiers)));return r.orderedModifiers=c.filter((function(e){return e.enabled})),r.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:r,name:t,instance:s,options:o}),u=function(){};l.push(a||u)}})),s.update()},forceUpdate:function(){if(!a){var e=r.elements,t=e.reference,n=e.popper;if(vd(t,n)){r.rects={reference:hd(t,Dc(n),"fixed"===r.options.strategy),popper:Tc(n)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<r.orderedModifiers.length;o++)if(!0!==r.reset){var i=r.orderedModifiers[o],l=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof l&&(r=l({state:r,options:c,name:d,instance:s})||r)}else r.reset=!1,o=-1}}},update:gd((function(){return new Promise((function(e){s.forceUpdate(),e(r)}))})),destroy:function(){u(),a=!0}};if(!vd(e,t))return s;function u(){l.forEach((function(e){return e()})),l=[]}return s.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),s}}var wd=yd({defaultModifiers:[Wc,pd,Bc,wc,dd,ad,fd,$c,cd]});const xd=e.forwardRef((function(t,n){const{children:o,container:r,disablePortal:i=!1}=t,[l,a]=e.useState(null),s=Ft(e.isValidElement(o)?o.ref:null,n);if(Pt((()=>{i||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),Pt((()=>{if(l&&!i)return Nt(n,l),()=>{Nt(n,null)}}),[n,l,i]),i){if(e.isValidElement(o)){const t={ref:s};return e.cloneElement(o,t)}return Me.jsx(e.Fragment,{children:o})}return Me.jsx(e.Fragment,{children:l&&se.createPortal(o,l)})}));"production"!==process.env.NODE_ENV&&(xd.propTypes={children:oe.node,container:oe.oneOfType([xt,oe.func]),disablePortal:oe.bool}),"production"!==process.env.NODE_ENV&&(xd.propTypes=ct(xd.propTypes));const Cd=xd;function Od(e){return ln("MuiPopper",e)}an("MuiPopper",["root"]);const Sd=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Ed=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kd(e){return"function"==typeof e?e():e}function Rd(e){return void 0!==e.nodeType}const Td={},Nd=e.forwardRef((function(t,n){var o;const{anchorEl:r,children:i,direction:l,disablePortal:a,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:p,slotProps:f={},slots:h={},TransitionProps:m}=t,g=De(t,Sd),b=e.useRef(null),v=Ft(b,n),y=e.useRef(null),w=Ft(y,p),x=e.useRef(w);Pt((()=>{x.current=w}),[w]),e.useImperativeHandle(p,(()=>y.current),[]);const C=function(e,t){if("ltr"===t)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}}(c,l),[O,S]=e.useState(C),[E,k]=e.useState(kd(r));e.useEffect((()=>{y.current&&y.current.forceUpdate()})),e.useEffect((()=>{r&&k(kd(r))}),[r]),Pt((()=>{if(!E||!u)return;if("production"!==process.env.NODE_ENV&&E&&Rd(E)&&1===E.nodeType){const e=E.getBoundingClientRect();"test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom&&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("\n"))}let e=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{(e=>{S(e.placement)})(e)}}];null!=s&&(e=e.concat(s)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=wd(E,b.current,Ie({placement:C},d,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[E,a,s,u,d,C]);const R={placement:O};null!==m&&(R.TransitionProps=m);const T=en({root:["root"]},Hu(Od)),N=null!=(o=h.root)?o:"div",P=Gu({elementType:N,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:T.root});return Me.jsx(N,Ie({},P,{children:"function"==typeof i?i(R):i}))})),Pd=e.forwardRef((function(t,n){const{anchorEl:o,children:r,container:i,direction:l="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=Td,popperRef:f,style:h,transition:m=!1,slotProps:g={},slots:b={}}=t,v=De(t,Ed),[y,w]=e.useState(!0);if(!s&&!c&&(!m||y))return null;let x;if(i)x=i;else if(o){const e=kd(o);x=e&&Rd(e)?Rt(e).body:Rt(null).body}const C=c||!s||m&&!y?void 0:"none",O=m?{in:c,onEnter:()=>{w(!1)},onExited:()=>{w(!0)}}:void 0;return Me.jsx(Cd,{disablePortal:a,container:x,children:Me.jsx(Nd,Ie({anchorEl:o,direction:l,disablePortal:a,modifiers:u,ref:n,open:m?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:b},v,{style:Ie({position:"fixed",top:0,left:0,display:C},h),TransitionProps:O,children:r}))})}));"production"!==process.env.NODE_ENV&&(Pd.propTypes={anchorEl:nt(oe.oneOfType([xt,oe.object,oe.func]),(e=>{if(e.open){const t=kd(e.anchorEl);if(t&&Rd(t)&&1===t.nodeType){const e=t.getBoundingClientRect();if("test"!==process.env.NODE_ENV&&0===e.top&&0===e.left&&0===e.right&&0===e.bottom)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("\n"))}else if(!t||"function"!=typeof t.getBoundingClientRect||function(e){return!Rd(e)}(t)&&null!=t.contextElement&&1!==t.contextElement.nodeType)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("\n"))}return null})),children:oe.oneOfType([oe.node,oe.func]),container:oe.oneOfType([xt,oe.func]),direction:oe.oneOf(["ltr","rtl"]),disablePortal:oe.bool,keepMounted:oe.bool,modifiers:oe.arrayOf(oe.shape({data:oe.object,effect:oe.func,enabled:oe.bool,fn:oe.func,name:oe.any,options:oe.object,phase:oe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:oe.arrayOf(oe.string),requiresIfExists:oe.arrayOf(oe.string)})),open:oe.bool.isRequired,placement:oe.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:oe.shape({modifiers:oe.array,onFirstUpdate:oe.func,placement:oe.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:oe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({root:oe.elementType}),transition:oe.bool});const Md=Pd;function _d(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jd(e){return parseInt(Tt(e).getComputedStyle(e).paddingRight,10)||0}function Id(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&_d(e,r)}))}function Dd(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Fd(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=Rt(e);return t.body===e?Tt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=Wt(Rt(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${jd(o)+e}px`;const t=Rt(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${jd(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=Rt(o).body;else{const t=o.parentElement,n=Tt(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}function Ad(e){return ln("MuiModal",e)}an("MuiModal",["root","hidden","backdrop"]);const Ld=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"];const Vd=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&_d(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Id(t,e.mount,e.modalRef,o,!0);const r=Dd(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=Dd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Fd(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=Dd(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&_d(e.modalRef,t),Id(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&_d(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},$d=e.forwardRef((function(t,n){var o,r;const{children:i,closeAfterTransition:l=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:f=!1,hideBackdrop:h=!1,keepMounted:m=!1,manager:g=Vd,onBackdropClick:b,onClose:v,onKeyDown:y,open:w,onTransitionEnter:x,onTransitionExited:C,slotProps:O={},slots:S={}}=t,E=De(t,Ld),k=g,[R,T]=e.useState(!w),N=e.useRef({}),P=e.useRef(null),M=e.useRef(null),_=Ft(M,n),j=function(e){return!!e&&e.props.hasOwnProperty("in")}(i),I=null==(o=t["aria-hidden"])||o,D=()=>(N.current.modalRef=M.current,N.current.mountNode=P.current,N.current),F=()=>{k.mount(D(),{disableScrollLock:f}),M.current&&(M.current.scrollTop=0)},A=Dt((()=>{const e=function(e){return"function"==typeof e?e():e}(a)||Rt(P.current).body;k.add(D(),e),M.current&&F()})),L=e.useCallback((()=>k.isTopModal(D())),[k]),V=Dt((e=>{P.current=e,e&&M.current&&(w&&L()?F():_d(M.current,I))})),$=e.useCallback((()=>{k.remove(D(),I)}),[k,I]);e.useEffect((()=>()=>{$()}),[$]),e.useEffect((()=>{w?A():(!j||!l)&&$()}),[w,$,j,l,A]);const q=Ie({},t,{closeAfterTransition:l,disableAutoFocus:s,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:p,disableScrollLock:f,exited:R,hideBackdrop:h,keepMounted:m}),H=(e=>{const{open:t,exited:n}=e;return en({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Hu(Ad))})(q),z={};void 0===i.props.tabIndex&&(z.tabIndex="-1"),j&&(z.onEnter=St((()=>{T(!1),x&&x()}),i.props.onEnter),z.onExited=St((()=>{T(!0),C&&C(),l&&$()}),i.props.onExited));const B=null!=(r=S.root)?r:"div",U=Gu({elementType:B,externalSlotProps:O.root,externalForwardedProps:E,additionalProps:{ref:_,role:"presentation",onKeyDown:e=>{y&&y(e),"Escape"===e.key&&L()&&(c||(e.stopPropagation(),v&&v(e,"escapeKeyDown")))}},className:H.root,ownerState:q}),W=S.backdrop,G=Gu({elementType:W,externalSlotProps:O.backdrop,additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&(b&&b(e),v&&v(e,"backdropClick"))},open:w},className:H.backdrop,ownerState:q});return m||w||j&&!R?Me.jsx(Cd,{ref:V,container:a,disablePortal:d,children:Me.jsxs(B,Ie({},U,{children:[!h&&W?Me.jsx(W,Ie({},G)):null,Me.jsx(Ju,{disableEnforceFocus:u,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:L,open:w,children:e.cloneElement(i,z)})]}))}):null}));"production"!==process.env.NODE_ENV&&($d.propTypes={children:st.isRequired,closeAfterTransition:oe.bool,container:oe.oneOfType([xt,oe.func]),disableAutoFocus:oe.bool,disableEnforceFocus:oe.bool,disableEscapeKeyDown:oe.bool,disablePortal:oe.bool,disableRestoreFocus:oe.bool,disableScrollLock:oe.bool,hideBackdrop:oe.bool,keepMounted:oe.bool,onBackdropClick:oe.func,onClose:oe.func,onTransitionEnter:oe.func,onTransitionExited:oe.func,open:oe.bool.isRequired,slotProps:oe.shape({backdrop:oe.oneOfType([oe.func,oe.object]),root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({backdrop:oe.elementType,root:oe.elementType})});const qd=$d,Hd=["onChange","maxRows","minRows","style","value"];function zd(e){return parseInt(e,10)||0}const Bd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ud(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Wd=e.forwardRef((function(t,n){const{onChange:o,maxRows:r,minRows:i=1,style:l,value:a}=t,s=De(t,Hd),{current:u}=e.useRef(null!=a),c=e.useRef(null),d=Ft(n,c),p=e.useRef(null),f=e.useRef(0),[h,m]=e.useState({outerHeightStyle:0}),g=e.useCallback((()=>{const e=c.current,n=Tt(e).getComputedStyle(e);if("0px"===n.width)return{outerHeightStyle:0};const o=p.current;o.style.width=n.width,o.value=e.value||t.placeholder||"x","\n"===o.value.slice(-1)&&(o.value+=" ");const l=n.boxSizing,a=zd(n.paddingBottom)+zd(n.paddingTop),s=zd(n.borderBottomWidth)+zd(n.borderTopWidth),u=o.scrollHeight;o.value="x";const d=o.scrollHeight;let f=u;i&&(f=Math.max(Number(i)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===l?a+s:0),overflow:Math.abs(f-u)<=1}}),[r,i,t.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return f.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(f.current+=1,{overflow:o,outerHeightStyle:n}):("production"!==process.env.NODE_ENV&&20===f.current&&console.error(["MUI: Too many re-renders. The layout is unstable.","TextareaAutosize limits the number of renders to prevent an infinite loop."].join("\n")),e)},v=e.useCallback((()=>{const e=g();Ud(e)||m((t=>b(t,e)))}),[g]);e.useEffect((()=>{const e=Et((()=>{f.current=0,c.current&&(()=>{const e=g();Ud(e)||se.flushSync((()=>{m((t=>b(t,e)))}))})()}));let t;const n=c.current,o=Tt(n);return o.addEventListener("resize",e),typeof ResizeObserver<"u"&&(t=new ResizeObserver(e),t.observe(n)),()=>{e.clear(),o.removeEventListener("resize",e),t&&t.disconnect()}})),Pt((()=>{v()})),e.useEffect((()=>{f.current=0}),[a]);return Me.jsxs(e.Fragment,{children:[Me.jsx("textarea",Ie({value:a,onChange:e=>{f.current=0,u||v(),o&&o(e)},ref:d,rows:i,style:Ie({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},l)},s)),Me.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:Ie({},Bd,l,{paddingTop:0,paddingBottom:0})})]})}));"production"!==process.env.NODE_ENV&&(Wd.propTypes={className:oe.string,maxRows:oe.oneOfType([oe.number,oe.string]),minRows:oe.oneOfType([oe.number,oe.string]),onChange:oe.func,placeholder:oe.string,style:oe.object,value:oe.oneOfType([oe.arrayOf(oe.string),oe.number,oe.string])});const Gd=Wd;function Kd(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Yd(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:r="any",stringify:i,trim:l=!1}=e;return(e,{inputValue:a,getOptionLabel:s})=>{let u=l?a.trim():a;n&&(u=u.toLowerCase()),t&&(u=Kd(u));const c=u?e.filter((e=>{let o=(i||s)(e);return n&&(o=o.toLowerCase()),t&&(o=Kd(o)),"start"===r?0===o.indexOf(u):o.indexOf(u)>-1})):e;return"number"==typeof o?c.slice(0,o):c}}function Zd(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Xd=Yd(),Qd=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function Jd(t){const{unstable_isActiveElementInListbox:n=Qd,unstable_classNamePrefix:o="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:l=!1,blurOnSelect:a=!1,clearOnBlur:s=!t.freeSolo,clearOnEscape:u=!1,componentName:c="useAutocomplete",defaultValue:d=(t.multiple?[]:null),disableClearable:p=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:b=Xd,filterSelectedOptions:v=!1,freeSolo:y=!1,getOptionDisabled:w,getOptionLabel:x=(e=>{var t;return null!=(t=e.label)?t:e}),groupBy:C,handleHomeEndKeys:O=!t.freeSolo,id:S,includeInputInList:E=!1,inputValue:k,isOptionEqualToValue:R=((e,t)=>e===t),multiple:T=!1,onChange:N,onClose:P,onHighlightChange:M,onInputChange:_,onOpen:j,open:I,openOnFocus:D=!1,options:F,readOnly:A=!1,selectOnFocus:L=!t.freeSolo,value:V}=t,$=jt(S);let q=x;q=e=>{const t=x(e);if("string"!=typeof t){if("production"!==process.env.NODE_ENV){const n=void 0===t?"undefined":`${typeof t} (${t})`;console.error(`MUI: The \`getOptionLabel\` method of ${c} returned ${n} instead of a string for ${JSON.stringify(e)}.`)}return String(t)}return t};const H=e.useRef(!1),z=e.useRef(!0),B=e.useRef(null),U=e.useRef(null),[W,G]=e.useState(null),[K,Y]=e.useState(-1),Z=i?0:-1,X=e.useRef(Z),[Q,J]=It({controlled:V,default:d,name:c}),[ee,te]=It({controlled:k,default:"",name:c,state:"inputValue"}),[ne,oe]=e.useState(!1),re=e.useCallback(((e,t)=>{if(!(T?Q.length<t.length:null!==t)&&!s)return;let n;if(T)n="";else if(null==t)n="";else{const e=q(t);n="string"==typeof e?e:""}ee!==n&&(te(n),_&&_(e,n,"reset"))}),[q,ee,T,_,te,s,Q]),[ie,le]=It({controlled:I,default:!1,name:c,state:"open"}),[ae,se]=e.useState(!0),ue=!T&&null!=Q&&ee===q(Q),ce=ie&&!A,de=ce?b(F.filter((e=>!(v&&(T?Q:[Q]).some((t=>null!==t&&R(e,t)))))),{inputValue:ue&&ae?"":ee,getOptionLabel:q}):[],pe=Gt({filteredOptions:de,value:Q,inputValue:ee});e.useEffect((()=>{const e=Q!==pe.value;ne&&!e||y&&!e||re(null,Q)}),[Q,re,ne,pe.value,y]);const fe=ie&&de.length>0&&!A;if("production"!==process.env.NODE_ENV&&null!==Q&&!y&&F.length>0){const e=(T?Q:[Q]).filter((e=>!F.some((t=>R(t,e)))));e.length>0&&console.warn([`MUI: The value provided to ${c} is invalid.`,`None of the options match with \`${e.length>1?JSON.stringify(e):JSON.stringify(e[0])}\`.`,"You can use the `isOptionEqualToValue` prop to customize the equality test."].join("\n"))}const he=Dt((e=>{-1===e?B.current.focus():W.querySelector(`[data-tag-index="${e}"]`).focus()}));e.useEffect((()=>{T&&K>Q.length-1&&(Y(-1),he(-1))}),[Q,T,K,he]);const me=Dt((({event:e,index:t,reason:n="auto"})=>{if(X.current=t,-1===t?B.current.removeAttribute("aria-activedescendant"):B.current.setAttribute("aria-activedescendant",`${$}-option-${t}`),M&&M(e,-1===t?null:de[t],n),!U.current)return;const r=U.current.querySelector(`[role="option"].${o}-focused`);r&&(r.classList.remove(`${o}-focused`),r.classList.remove(`${o}-focusVisible`));let i=U.current;if("listbox"!==U.current.getAttribute("role")&&(i=U.current.parentElement.querySelector('[role="listbox"]')),!i)return;if(-1===t)return void(i.scrollTop=0);const l=U.current.querySelector(`[data-option-index="${t}"]`);if(l&&(l.classList.add(`${o}-focused`),"keyboard"===n&&l.classList.add(`${o}-focusVisible`),i.scrollHeight>i.clientHeight&&"mouse"!==n)){const e=l,t=i.clientHeight+i.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?i.scrollTop=n-i.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<i.scrollTop&&(i.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}})),ge=Dt((({event:e,diff:t,direction:n="next",reason:o="auto"})=>{if(!ce)return;const i=function(e,t){if(!U.current||-1===e)return-1;let n=e;for(;;){if("next"===t&&n===de.length||"previous"===t&&-1===n)return-1;const e=U.current.querySelector(`[data-option-index="${n}"]`),o=!m&&(!e||e.disabled||"true"===e.getAttribute("aria-disabled"));if(!(e&&!e.hasAttribute("tabindex")||o))return n;n+="next"===t?1:-1}}((()=>{const e=de.length-1;if("reset"===t)return Z;if("start"===t)return 0;if("end"===t)return e;const n=X.current+t;return n<0?-1===n&&E?-1:g&&-1!==X.current||Math.abs(t)>1?0:e:n>e?n===e+1&&E?-1:g||Math.abs(t)>1?e:0:n})(),n);if(me({index:i,reason:o,event:e}),r&&"reset"!==t)if(-1===i)B.current.value=ee;else{const e=q(de[i]);B.current.value=e,0===e.toLowerCase().indexOf(ee.toLowerCase())&&ee.length>0&&B.current.setSelectionRange(ee.length,e.length)}})),be=e.useCallback((()=>{if(!ce||(()=>{if(-1!==X.current&&pe.filteredOptions&&pe.filteredOptions.length!==de.length&&pe.inputValue===ee&&(T?Q.length===pe.value.length&&pe.value.every(((e,t)=>q(Q[t])===q(e))):(e=pe.value,t=Q,(e?q(e):"")===(t?q(t):"")))){const e=pe.filteredOptions[X.current];if(e&&de.some((t=>q(t)===q(e))))return!0}var e,t;return!1})())return;const e=T?Q[0]:Q;if(0!==de.length&&null!=e){if(U.current){if(null!=e){const t=de[X.current];if(T&&t&&-1!==Zd(Q,(e=>R(t,e))))return;const n=Zd(de,(t=>R(t,e)));return void(-1===n?ge({diff:"reset"}):me({index:n}))}if(X.current>=de.length-1)return void me({index:de.length-1});me({index:X.current})}}else ge({diff:"reset"})}),[de.length,!T&&Q,v,ge,me,ce,ee,T]),ve=Dt((e=>{Nt(U,e),e&&be()}));"production"!==process.env.NODE_ENV&&e.useEffect((()=>{(!B.current||"INPUT"!==B.current.nodeName)&&(B.current&&"TEXTAREA"===B.current.nodeName?console.warn([`A textarea element was provided to ${c} where input was expected.`,"This is not a supported scenario but it may work under certain conditions.","A textarea keyboard navigation may conflict with Autocomplete controls (e.g. enter and arrow keys).","Make sure to test keyboard navigation and add custom event handlers if necessary."].join("\n")):console.error([`MUI: Unable to find the input element. It was resolved to ${B.current} while an HTMLInputElement was expected.`,`Instead, ${c} expects an input element.`,"","useAutocomplete"===c?"Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.":"Make sure you have customized the input component correctly."].join("\n")))}),[c]),e.useEffect((()=>{be()}),[be]);const ye=e=>{ie||(le(!0),se(!0),j&&j(e))},we=(e,t)=>{ie&&(le(!1),P&&P(e,t))},xe=(e,t,n,o)=>{if(T){if(Q.length===t.length&&Q.every(((e,n)=>e===t[n])))return}else if(Q===t)return;N&&N(e,t,n,o),J(t)},Ce=e.useRef(!1),Oe=(e,t,n="selectOption",o="options")=>{let r=n,i=t;if(T){if(i=Array.isArray(Q)?Q.slice():[],"production"!==process.env.NODE_ENV){const e=i.filter((e=>R(t,e)));e.length>1&&console.error([`MUI: The \`isOptionEqualToValue\` method of ${c} does not handle the arguments correctly.`,`The component expects a single value to match a given option but found ${e.length} matches.`].join("\n"))}const e=Zd(i,(e=>R(t,e)));-1===e?i.push(t):"freeSolo"!==o&&(i.splice(e,1),r="removeOption")}re(e,i),xe(e,i,r,{option:t}),!f&&(!e||!e.ctrlKey&&!e.metaKey)&&we(e,r),(!0===a||"touch"===a&&Ce.current||"mouse"===a&&!Ce.current)&&B.current.blur()};const Se=(e,t)=>{if(!T)return;""===ee&&we(e,"toggleInput");let n=K;-1===K?""===ee&&"previous"===t&&(n=Q.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===Q.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===Q.length||"previous"===t&&-1===n)return-1;const e=W.querySelector(`[data-tag-index="${n}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Y(n),he(n)},Ee=e=>{H.current=!0,te(""),_&&_(e,"","clear"),xe(e,T?[]:null,"clear")},ke=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==K&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Y(-1),he(-1)),229!==t.which))switch(t.key){case"Home":ce&&O&&(t.preventDefault(),ge({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ce&&O&&(t.preventDefault(),ge({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ge({diff:-5,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"PageDown":t.preventDefault(),ge({diff:5,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowDown":t.preventDefault(),ge({diff:1,direction:"next",reason:"keyboard",event:t}),ye(t);break;case"ArrowUp":t.preventDefault(),ge({diff:-1,direction:"previous",reason:"keyboard",event:t}),ye(t);break;case"ArrowLeft":Se(t,"previous");break;case"ArrowRight":Se(t,"next");break;case"Enter":if(-1!==X.current&&ce){const e=de[X.current],n=!!w&&w(e);if(t.preventDefault(),n)return;Oe(t,e,"selectOption"),r&&B.current.setSelectionRange(B.current.value.length,B.current.value.length)}else y&&""!==ee&&!1===ue&&(T&&t.preventDefault(),Oe(t,ee,"createOption","freeSolo"));break;case"Escape":ce?(t.preventDefault(),t.stopPropagation(),we(t,"escape")):u&&(""!==ee||T&&Q.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(T&&!A&&""===ee&&Q.length>0){const e=-1===K?Q.length-1:K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}break;case"Delete":if(T&&!A&&""===ee&&Q.length>0&&-1!==K){const e=K,n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})}}},Re=e=>{oe(!0),D&&!H.current&&ye(e)},Te=e=>{n(U)?B.current.focus():(oe(!1),z.current=!0,H.current=!1,l&&-1!==X.current&&ce?Oe(e,de[X.current],"blur"):l&&y&&""!==ee?Oe(e,ee,"blur","freeSolo"):s&&re(e,Q),we(e,"blur"))},Ne=e=>{const t=e.target.value;ee!==t&&(te(t),se(!1),_&&_(e,t,"input")),""===t?!p&&!T&&xe(e,null,"clear"):ye(e)},Pe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));X.current!==t&&me({event:e,index:t,reason:"mouse"})},Me=e=>{me({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ce.current=!0},_e=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Oe(e,de[t],"selectOption"),Ce.current=!1},je=e=>t=>{const n=Q.slice();n.splice(e,1),xe(t,n,"removeOption",{option:Q[e]})},De=e=>{ie?we(e,"toggleInput"):ye(e)},Fe=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==$&&e.preventDefault()},Ae=e=>{e.currentTarget.contains(e.target)&&(B.current.focus(),L&&z.current&&B.current.selectionEnd-B.current.selectionStart==0&&B.current.select(),z.current=!1)},Le=e=>{(""===ee||!ie)&&De(e)};let Ve=y&&ee.length>0;Ve=Ve||(T?Q.length>0:null!==Q);let $e=de;if(C){const e=new Map;let t=!1;$e=de.reduce(((n,o,r)=>{const i=C(o);return n.length>0&&n[n.length-1].group===i?n[n.length-1].options.push(o):("production"!==process.env.NODE_ENV&&(e.get(i)&&!t&&(console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${c} returns duplicated headers.`,"You can solve the issue by sorting the options with the output of `groupBy`."),t=!0),e.set(i,!0)),n.push({key:r,index:r,group:i,options:[o]})),n}),[])}return h&&ne&&Te(),{getRootProps:(e={})=>Ie({"aria-owns":fe?`${$}-listbox`:null},e,{onKeyDown:ke(e),onMouseDown:Fe,onClick:Ae}),getInputLabelProps:()=>({id:`${$}-label`,htmlFor:$}),getInputProps:()=>({id:$,value:ee,onBlur:Te,onFocus:Re,onChange:Ne,onMouseDown:Le,"aria-activedescendant":ce?"":null,"aria-autocomplete":r?"both":"list","aria-controls":fe?`${$}-listbox`:void 0,"aria-expanded":fe,autoComplete:"off",ref:B,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:De}),getTagProps:({index:e})=>Ie({key:e,"data-tag-index":e,tabIndex:-1},!A&&{onDelete:je(e)}),getListboxProps:()=>({role:"listbox",id:`${$}-listbox`,"aria-labelledby":`${$}-label`,ref:ve,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{const n=(T?Q:[Q]).some((e=>null!=e&&R(t,e))),o=!!w&&w(t);return{key:q(t),tabIndex:-1,role:"option",id:`${$}-option-${e}`,onMouseMove:Pe,onClick:_e,onTouchStart:Me,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:$,inputValue:ee,value:Q,dirty:Ve,expanded:ce&&W,popupOpen:ce,focused:ne||-1!==K,anchorEl:W,setAnchorEl:G,focusedTag:K,groupedOptions:$e}}function ep({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&typeof e[o]>"u"&&(t[o]=n[o]),t)),{})}const tp=e.createContext(void 0);"production"!==process.env.NODE_ENV&&(tp.displayName="FormControlContext");const np=tp;function op(){return e.useContext(np)}const rp=e=>Oo(e)&&"classes"!==e,ip=Oo,lp=ko({themeId:hr,defaultTheme:fr,rootShouldForwardProp:rp});function ap({props:e,name:t}){return To({props:e,name:t,defaultTheme:fr,themeId:hr})}function sp(e){return Me.jsx(ho,Ie({},e,{defaultTheme:fr,themeId:hr}))}function up(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function cp(e,t=!1){return e&&(up(e.value)&&""!==e.value||t&&up(e.defaultValue)&&""!==e.defaultValue)}function dp(e){return ln("MuiInputBase",e)}"production"!==process.env.NODE_ENV&&(sp.propTypes={styles:oe.oneOfType([oe.array,oe.func,oe.number,oe.object,oe.string,oe.bool])});const pp=an("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),fp=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],hp=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ot(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},mp=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},gp=lp("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hp})((({theme:e,ownerState:t})=>Ie({},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",[`&.${pp.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ie({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),bp=lp("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mp})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=Ie({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Ie({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${pp.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${pp.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),vp=Me.jsx(sp,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),yp=e.forwardRef((function(t,n){var o;const r=ap({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:l,autoFocus:a,className:s,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:w,minRows:x,multiline:C=!1,name:O,onBlur:S,onChange:E,onClick:k,onFocus:R,onKeyDown:T,onKeyUp:N,placeholder:P,readOnly:M,renderSuffix:_,rows:j,slotProps:I={},slots:D={},startAdornment:F,type:A="text",value:L}=r,V=De(r,fp),$=null!=v.value?v.value:L,{current:q}=e.useRef(null!=$),H=e.useRef(),z=e.useCallback((e=>{"production"!==process.env.NODE_ENV&&e&&"INPUT"!==e.nodeName&&!e.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("\n"))}),[]),B=Ft(H,y,v.ref,z),[U,W]=e.useState(!1),G=op();"production"!==process.env.NODE_ENV&&e.useEffect((()=>{if(G)return G.registerEffect()}),[G]);const K=ep({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,e.useEffect((()=>{!G&&p&&U&&(W(!1),S&&S())}),[G,p,U,S]);const Y=G&&G.onFilled,Z=G&&G.onEmpty,X=e.useCallback((e=>{cp(e)?Y&&Y():Z&&Z()}),[Y,Z]);Pt((()=>{q&&X({value:$})}),[$,X,q]);e.useEffect((()=>{X(H.current)}),[]);let Q=b,J=v;C&&"input"===Q&&(j?("production"!==process.env.NODE_ENV&&(x||w)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),J=Ie({type:void 0,minRows:j,maxRows:j},J)):J=Ie({type:void 0,maxRows:w,minRows:x},J),Q=Gd);e.useEffect((()=>{G&&G.setAdornedStart(!!F)}),[G,F]);const ee=Ie({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:C,size:K.size,startAdornment:F,type:A}),te=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:l,formControl:a,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return en({root:["root",`color${Ot(n)}`,o&&"disabled",r&&"error",s&&"fullWidth",l&&"focused",a&&"formControl","small"===p&&"sizeSmall",c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},dp,t)})(ee),ne=D.root||u.Root||gp,oe=I.root||c.root||{},re=D.input||u.Input||bp;return J=Ie({},J,null!=(o=I.input)?o:c.input),Me.jsxs(e.Fragment,{children:[!f&&vp,Me.jsxs(ne,Ie({},oe,!Lu(ne)&&{ownerState:Ie({},ee,oe.ownerState)},{ref:n,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),k&&!K.disabled&&k(e)}},V,{className:vo(te.root,oe.className,s,M&&"MuiInputBase-readOnly"),children:[F,Me.jsx(np.Provider,{value:null,children:Me.jsx(re,Ie({ownerState:ee,"aria-invalid":K.error,"aria-describedby":i,autoComplete:l,autoFocus:a,defaultValue:d,disabled:K.disabled,id:g,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:O,placeholder:P,readOnly:M,required:K.required,rows:j,value:$,onKeyDown:T,onKeyUp:N,type:A},J,!Lu(re)&&{as:Q,ownerState:Ie({},ee,J.ownerState)},{ref:B,className:vo(te.input,J.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{S&&S(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!q){const t=e.target||H.current;if(null==t)throw new Error("production"!==process.env.NODE_ENV?"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.":dt(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),E&&E(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):W(!0))}}))}),h,_?_(Ie({},K,{startAdornment:F})):null]}))]})}));"production"!==process.env.NODE_ENV&&(yp.propTypes={"aria-describedby":oe.string,autoComplete:oe.string,autoFocus:oe.bool,classes:oe.object,className:oe.string,color:oe.oneOfType([oe.oneOf(["primary","secondary","error","info","success","warning"]),oe.string]),components:oe.shape({Input:oe.elementType,Root:oe.elementType}),componentsProps:oe.shape({input:oe.object,root:oe.object}),defaultValue:oe.any,disabled:oe.bool,disableInjectingGlobalStyles:oe.bool,endAdornment:oe.node,error:oe.bool,fullWidth:oe.bool,id:oe.string,inputComponent:ut,inputProps:oe.object,inputRef:Ct,margin:oe.oneOf(["dense","none"]),maxRows:oe.oneOfType([oe.number,oe.string]),minRows:oe.oneOfType([oe.number,oe.string]),multiline:oe.bool,name:oe.string,onBlur:oe.func,onChange:oe.func,onClick:oe.func,onFocus:oe.func,onInvalid:oe.func,onKeyDown:oe.func,onKeyUp:oe.func,placeholder:oe.string,readOnly:oe.bool,renderSuffix:oe.func,required:oe.bool,rows:oe.oneOfType([oe.number,oe.string]),size:oe.oneOfType([oe.oneOf(["medium","small"]),oe.string]),slotProps:oe.shape({input:oe.object,root:oe.object}),slots:oe.shape({input:oe.elementType,root:oe.elementType}),startAdornment:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),type:oe.string,value:oe.any});const wp=yp;const xp=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Cp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange"],Op=lp(wp)({fontSize:"inherit"});function Sp(t){const{id:n,value:o,field:r,colDef:i,hasFocus:l,inputProps:a,onValueChange:s}=t,u=De(t,Cp),c="dateTime"===i.type,d=ia(),p=e.useRef(),f=e.useMemo((()=>{let e,t;return e=null==o?null:o instanceof Date?o:new Date((o??"").toString()),t=null==e||Number.isNaN(e.getTime())?"":new Date(e.getTime()-60*e.getTimezoneOffset()*1e3).toISOString().substr(0,c?16:10),{parsed:e,formatted:t}}),[o,c]),[h,m]=e.useState(f),g=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},xa,t)})({classes:aa().classes}),b=e.useRef(!1),v=e.useCallback((e=>{if(""===e)return null;const[t,n]=e.split("T"),[o,r,i]=t.split("-"),l=new Date;if(l.setFullYear(Number(o),Number(r)-1,Number(i)),l.setHours(0,0,0,0),n){const[e,t]=n.split(":");l.setHours(Number(e),Number(t),0,0)}return l}),[]),y=e.useCallback((async e=>{const t=e.target.value,o=v(t);s&&await s(e,o),m({parsed:o,formatted:t}),d.current.setEditCellValue({id:n,field:r,value:o},e)}),[d,r,n,s,v]);e.useEffect((()=>{m((e=>{var t,n;return f.parsed!==e.parsed&&(null==(t=f.parsed)?void 0:t.getTime())!==(null==(n=e.parsed)?void 0:n.getTime())?f:e}))}),[f]),Pt((()=>{l&&p.current.focus()}),[l]);const w=d.current.unstable_getEditCellMeta(n,r);return Me.jsx(Op,Ie({inputRef:e=>{if(p.current=e,null!=w&&w.unstable_updateValueOnRender&&!b.current){const e=p.current.value,t=v(e);m({parsed:t,formatted:e}),d.current.setEditCellValue({id:n,field:r,value:t}),b.current=!0}},fullWidth:!0,className:g.root,type:c?"datetime-local":"date",inputProps:Ie({max:c?"9999-12-31T23:59":"9999-12-31"},a),value:h.formatted,onChange:y},u))}"production"!==process.env.NODE_ENV&&(Sp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Ep=e=>Me.jsx(Sp,Ie({},e)),kp=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange"],Rp=lp(wp,{name:"MuiDataGrid",slot:"EditInputCell",overridesResolver:(e,t)=>t.editInputCell})((({theme:e})=>Ie({},e.typography.body2,{padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}))),Tp=e.forwardRef(((t,n)=>{const o=aa(),{id:r,value:i,field:l,colDef:a,hasFocus:s,debounceMs:u=200,isProcessingProps:c,onValueChange:d}=t,p=De(t,kp),f=ia(),h=e.useRef(),[m,g]=e.useState(i),b=(e=>{const{classes:t}=e;return en({root:["editInputCell"]},xa,t)})(o),v=e.useCallback((async e=>{const t=e.target.value;d&&await d(e,t);const n=f.current.getColumn(l);let o=t;n.valueParser&&(o=n.valueParser(t,f.current.getCellParams(r,l))),g(o),f.current.setEditCellValue({id:r,field:l,value:o,debounceMs:u,unstable_skipValueParser:!0},e)}),[f,u,l,r,d]),y=f.current.unstable_getEditCellMeta(r,l);return e.useEffect((()=>{"debouncedSetEditCellValue"!==(null==y?void 0:y.changeReason)&&g(i)}),[y,i]),Pt((()=>{s&&h.current.focus()}),[s]),Me.jsx(Rp,Ie({ref:n,inputRef:h,className:b.root,ownerState:o,fullWidth:!0,type:"number"===a.type?a.type:"text",value:m??"",onChange:v,endAdornment:c?Me.jsx(o.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p))}));"production"!==process.env.NODE_ENV&&(Tp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,debounceMs:oe.number,field:oe.string.isRequired,formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const Np=e=>"Escape"===e,Pp=e=>"Tab"===e,Mp=e=>" "===e;function _p(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}const jp=e=>(e=>"Home"===e||"End"===e)(e)||(e=>0===e.indexOf("Arrow"))(e)||(e=>0===e.indexOf("Page"))(e)||Mp(e),Ip=e=>Pp(e)||Np(e);function Dp(e){return"singleSelect"===(null==e?void 0:e.type)}function Fp(e,t,n){if(void 0===t)return;const o=t.find((t=>{const o=n(t);return String(o)===String(e)}));return n(o)}const Ap=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","getOptionLabel","getOptionValue"],Lp=["MenuProps"];function Vp(t){var n,o,r;const l=aa(),{id:a,value:s,field:u,row:c,colDef:d,hasFocus:p,error:f,onValueChange:h,initialOpen:m=l.editMode===au.Cell,getOptionLabel:g,getOptionValue:b}=t,v=De(t,Ap),y=ia(),w=e.useRef(),x=e.useRef(),[C,O]=e.useState(m),S=null!=(o=((null==(n=l.slotProps)?void 0:n.baseSelect)||{}).native)&&o,E=(null==(r=l.slotProps)?void 0:r.baseSelect)||{},{MenuProps:k}=E,R=De(E,Lp);if(Pt((()=>{var e;p&&(null==(e=x.current)||e.focus())}),[p]),!Dp(d))return null;let T;if(T="function"==typeof(null==d?void 0:d.valueOptions)?null==d?void 0:d.valueOptions({id:a,row:c,field:u}):null==d?void 0:d.valueOptions,!T)return null;const N=b||d.getOptionValue,P=g||d.getOptionLabel;return T&&d?Me.jsx(l.slots.baseSelect,Ie({ref:w,inputRef:x,value:s,onChange:async e=>{if(!Dp(d)||!T)return;O(!1);const t=Fp(e.target.value,T,N);h&&await h(e,t),await y.current.setEditCellValue({id:a,field:u,value:t},e)},open:C,onOpen:e=>{(function(e){return!!e.key})(e)&&"Enter"===e.key||O(!0)},MenuProps:Ie({onClose:(e,t)=>{if(l.editMode!==au.Row){if("backdropClick"===t||Np(e.key)){const t=y.current.getCellParams(a,u);y.current.publishEvent("cellEditStop",Ie({},t,{reason:Np(e.key)?pu.escapeKeyDown:pu.cellFocusOut}))}}else O(!1)}},k),error:f,native:S,fullWidth:!0},v,R,{children:T.map((e=>{var t;const n=N(e);return i(l.slots.baseSelectOption,Ie({},(null==(t=l.slotProps)?void 0:t.baseSelectOption)||{},{native:S,key:n,value:n}),P(e))}))})):null}"production"!==process.env.NODE_ENV&&(Vp.propTypes={api:oe.object.isRequired,cellMode:oe.oneOf(["edit","view"]).isRequired,changeReason:oe.oneOf(["debouncedSetEditCellValue","setEditCellValue"]),colDef:oe.object.isRequired,field:oe.string.isRequired,formattedValue:oe.any,getOptionLabel:oe.func,getOptionValue:oe.func,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,initialOpen:oe.bool,isEditable:oe.bool,isProcessingProps:oe.bool,isValidating:oe.bool,onValueChange:oe.func,row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});const $p=e.createContext({});"production"!==process.env.NODE_ENV&&($p.displayName="ListContext");const qp=$p;function Hp(e){return ln("MuiList",e)}an("MuiList",["root","padding","dense","subheader"]);const zp=["children","className","component","dense","disablePadding","subheader"],Bp=lp("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]}})((({ownerState:e})=>Ie({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Up=e.forwardRef((function(t,n){const o=ap({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:s=!1,subheader:u}=o,c=De(o,zp),d=e.useMemo((()=>({dense:a})),[a]),p=Ie({},o,{component:l,dense:a,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return en({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},Hp,t)})(p);return Me.jsx(qp.Provider,{value:d,children:Me.jsxs(Bp,Ie({as:l,className:vo(f.root,i),ref:n,ownerState:p},c,{children:[u,r]}))})}));"production"!==process.env.NODE_ENV&&(Up.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,dense:oe.bool,disablePadding:oe.bool,subheader:oe.node,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object])});const Wp=Up,Gp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Kp(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Yp(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Zp(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Xp(e,t,n,o,r,i){let l=!1,a=r(e,t,!!t&&n);for(;a;){if(a===e.firstChild){if(l)return!1;l=!0}const t=!o&&(a.disabled||"true"===a.getAttribute("aria-disabled"));if(a.hasAttribute("tabindex")&&Zp(a,i)&&!t)return a.focus(),!0;a=r(e,a,n)}return!1}const Qp=e.forwardRef((function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:i=!1,children:l,className:a,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=t,p=De(t,Gp),f=e.useRef(null),h=e.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt((()=>{r&&f.current.focus()}),[r]),e.useImperativeHandle(o,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${Wt(Rt(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=Ft(f,n);let g=-1;e.Children.forEach(l,((t,n)=>{e.isValidElement(t)?("production"!==process.env.NODE_ENV&&bt.isFragment(t)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join("\n")),t.props.disabled||("selectedMenu"===d&&t.props.selected||-1===g)&&(g=n),g===n&&(t.props.disabled||t.props.muiSkipListHighlight||t.type.muiSkipListHighlight)&&(g+=1,g>=l.length&&(g=-1))):g===n&&(g+=1,g>=l.length&&(g=-1))}));const b=e.Children.map(l,((t,n)=>{if(n===g){const n={};return i&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===d&&(n.tabIndex=0),e.cloneElement(t,n)}return t}));return Me.jsx(Wp,Ie({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=f.current,n=e.key,o=Rt(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Xp(t,o,u,s,Kp);else if("ArrowUp"===n)e.preventDefault(),Xp(t,o,u,s,Yp);else if("Home"===n)e.preventDefault(),Xp(t,null,u,s,Kp);else if("End"===n)e.preventDefault(),Xp(t,null,u,s,Yp);else if(1===n.length){const r=h.current,i=n.toLowerCase(),l=performance.now();r.keys.length>0&&(l-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=l,r.keys.push(i);const a=o&&!r.repeating&&Zp(o,r);r.previousKeyMatched&&(a||Xp(t,o,!1,s,Kp,r))?e.preventDefault():r.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:b}))}));"production"!==process.env.NODE_ENV&&(Qp.propTypes={autoFocus:oe.bool,autoFocusItem:oe.bool,children:oe.node,className:oe.string,disabledItemsFocusable:oe.bool,disableListWrap:oe.bool,onKeyDown:oe.func,variant:oe.oneOf(["menu","selectedMenu"])});const Jp=Qp,ef=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function tf(e){return`scale(${e}, ${e**2})`}const nf={entering:{opacity:1,transform:tf(1)},entered:{opacity:1,transform:"none"}},of=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rf=e.forwardRef((function(t,n){const{addEndListener:o,appear:r=!0,children:i,easing:l,in:a,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Ke}=t,b=De(t,ef),v=e.useRef(),y=e.useRef(),w=mr(),x=e.useRef(null),C=Ft(x,i.ref,n),O=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},S=O(c),E=O(((e,t)=>{gr(e);const{duration:n,delay:o,easing:r}=br({style:h,timeout:m,easing:l},{mode:"enter"});let i;"auto"===m?(i=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[w.transitions.create("opacity",{duration:i,delay:o}),w.transitions.create("transform",{duration:of?i:.666*i,delay:o,easing:r})].join(","),s&&s(e,t)})),k=O(u),R=O(f),T=O((e=>{const{duration:t,delay:n,easing:o}=br({style:h,timeout:m,easing:l},{mode:"exit"});let r;"auto"===m?(r=w.transitions.getAutoHeightDuration(e.clientHeight),y.current=r):r=t,e.style.transition=[w.transitions.create("opacity",{duration:r,delay:n}),w.transitions.create("transform",{duration:of?r:.666*r,delay:of?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=tf(.75),d&&d(e)})),N=O(p);return e.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Me.jsx(g,Ie({appear:r,in:a,nodeRef:x,onEnter:E,onEntered:k,onEntering:S,onExit:T,onExited:N,onExiting:R,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,y.current||0)),o&&o(x.current,e)},timeout:"auto"===m?null:m},b,{children:(t,n)=>e.cloneElement(i,Ie({style:Ie({opacity:0,transform:tf(.75),visibility:"exited"!==t||a?void 0:"hidden"},nf[t],h,i.props.style),ref:C},n))}))}));"production"!==process.env.NODE_ENV&&(rf.propTypes={addEndListener:oe.func,appear:oe.bool,children:st.isRequired,easing:oe.oneOfType([oe.shape({enter:oe.string,exit:oe.string}),oe.string]),in:oe.bool,onEnter:oe.func,onEntered:oe.func,onEntering:oe.func,onExit:oe.func,onExited:oe.func,onExiting:oe.func,style:oe.object,timeout:oe.oneOfType([oe.oneOf(["auto"]),oe.number,oe.shape({appear:oe.number,enter:oe.number,exit:oe.number})])}),rf.muiSupportAuto=!0;const lf=rf;function af(e){return ln("MuiPaper",e)}an("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const sf=["className","component","elevation","square","variant"],uf=lp("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ie({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ie({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Io("#fff",xp(t.elevation))}, ${Io("#fff",xp(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),cf=e.forwardRef((function(e,t){const n=ap({props:e,name:"MuiPaper"}),{className:o,component:r="div",elevation:i=1,square:l=!1,variant:a="elevation"}=n,s=De(n,sf),u=Ie({},n,{component:r,elevation:i,square:l,variant:a}),c=(e=>{const{square:t,elevation:n,variant:o,classes:r}=e;return en({root:["root",o,!t&&"rounded","elevation"===o&&`elevation${n}`]},af,r)})(u);return"production"!==process.env.NODE_ENV&&void 0===mr().shadows[i]&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join("\n")),Me.jsx(uf,Ie({as:r,ownerState:u,className:vo(c.root,o),ref:t},s))}));"production"!==process.env.NODE_ENV&&(cf.propTypes={children:oe.node,classes:oe.object,className:oe.string,component:oe.elementType,elevation:nt(Qt,(e=>{const{elevation:t,variant:n}=e;return t>0&&"outlined"===n?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null})),square:oe.bool,sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),variant:oe.oneOfType([oe.oneOf(["elevation","outlined"]),oe.string])});const df=cf,pf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ff=lp(Md,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),hf=e.forwardRef((function(e,t){var n;const o=co(),r=ap({props:e,name:"MuiPopper"}),{anchorEl:i,component:l,components:a,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b,slots:v,slotProps:y}=r,w=De(r,pf),x=null!=(n=null==v?void 0:v.root)?n:null==a?void 0:a.Root,C=Ie({anchorEl:i,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},w);return Me.jsx(ff,Ie({as:l,direction:null==o?void 0:o.direction,slots:{root:x},slotProps:y??s},C,{ref:t}))}));"production"!==process.env.NODE_ENV&&(hf.propTypes={anchorEl:oe.oneOfType([xt,oe.object,oe.func]),children:oe.oneOfType([oe.node,oe.func]),component:oe.elementType,components:oe.shape({Root:oe.elementType}),componentsProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),container:oe.oneOfType([xt,oe.func]),disablePortal:oe.bool,keepMounted:oe.bool,modifiers:oe.arrayOf(oe.shape({data:oe.object,effect:oe.func,enabled:oe.bool,fn:oe.func,name:oe.any,options:oe.object,phase:oe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:oe.arrayOf(oe.string),requiresIfExists:oe.arrayOf(oe.string)})),open:oe.bool.isRequired,placement:oe.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:oe.shape({modifiers:oe.array,onFirstUpdate:oe.func,placement:oe.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:oe.oneOf(["absolute","fixed"])}),popperRef:Ct,slotProps:oe.shape({root:oe.oneOfType([oe.func,oe.object])}),slots:oe.shape({root:oe.elementType}),sx:oe.oneOfType([oe.arrayOf(oe.oneOfType([oe.func,oe.object,oe.bool])),oe.func,oe.object]),transition:oe.bool});const mf=hf,gf=["open","target","onClickAway","children","position","className","onExited"],bf=e=>{const{classes:t}=e;return en({root:["menu"]},xa,t)},vf=lp(mf,{name:"MuiDataGrid",slot:"Menu",overridesResolver:(e,t)=>t.menu})((({theme:e})=>({zIndex:e.zIndex.modal,[`& .${Ca.menuList}`]:{outline:0}}))),yf={"bottom-start":"top left","bottom-end":"top right"};function wf(t){var n;const{open:o,target:r,onClickAway:i,children:l,position:a,className:s,onExited:u}=t,c=De(t,gf),d=ia(),p=aa(),f=bf(p);e.useEffect((()=>{const e=o?"menuOpen":"menuClose";d.current.publishEvent(e,{target:r})}),[d,o,r]);const h=e=>t=>{e&&e(),u&&u(t)};return Me.jsx(vf,Ie({as:p.slots.basePopper,className:vo(s,f.root),ownerState:p,open:o,anchorEl:r,transition:!0,placement:a},c,null==(n=p.slotProps)?void 0:n.basePopper,{children:({TransitionProps:e,placement:t})=>Me.jsx(Yu,{onClickAway:i,mouseEvent:"onMouseDown",children:Me.jsx(lf,Ie({},e,{style:{transformOrigin:yf[t]},onExited:h(null==e?void 0:e.onExited),children:Me.jsx(df,{children:l})}))})}))}"production"!==process.env.NODE_ENV&&(wf.propTypes={children:oe.node,onClickAway:oe.func.isRequired,onExited:oe.func,open:oe.bool.isRequired,position:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),target:xt});const xf=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"];function Cf(t){var n;const{colDef:o,id:r,hasFocus:i,tabIndex:l,position:a="bottom-end",focusElementRef:s}=t,u=De(t,xf),[c,d]=e.useState(-1),[p,f]=e.useState(!1),h=ia(),m=e.useRef(null),g=e.useRef(null),b=e.useRef(!1),v=e.useRef({}),y=mr(),w=jt(),x=jt(),C=aa();if(!(e=>"function"==typeof e.getActions)(o))throw new Error("MUI: Missing the `getActions` property in the `GridColDef`.");const O=o.getActions(h.current.getRowParams(r)),S=O.filter((e=>!e.props.showInMenu)),E=O.filter((e=>e.props.showInMenu)),k=S.length+(E.length?1:0);e.useLayoutEffect((()=>{i||Object.entries(v.current).forEach((([e,t])=>{null==t||t.stop({},(()=>{delete v.current[e]}))}))}),[i]),e.useEffect((()=>{c<0||!m.current||c>=m.current.children.length||m.current.children[c].focus({preventScroll:!0})}),[c]),e.useEffect((()=>{i||(d(-1),b.current=!1)}),[i]),e.useImperativeHandle(s,(()=>({focus(){b.current||d(0)}})),[]),e.useEffect((()=>{c>=k&&d(k-1)}),[c,k]);const R=()=>{f(!1)},T=e=>t=>{v.current[e]=t},N=(e,t)=>n=>{d(e),b.current=!0,t&&t(n)};return Me.jsxs("div",Ie({role:"menu",ref:m,tabIndex:-1,className:Ca.actionsCell,onKeyDown:e=>{if(k<=1)return;let t=c;"ArrowRight"===e.key?"rtl"===y.direction?t-=1:t+=1:"ArrowLeft"===e.key&&("rtl"===y.direction?t+=1:t-=1),!(t<0||t>=k)&&t!==c&&(e.preventDefault(),e.stopPropagation(),d(t))}},u,{children:[S.map(((t,n)=>e.cloneElement(t,{key:n,touchRippleRef:T(n),onClick:N(n,t.props.onClick),tabIndex:c===n?l:-1}))),E.length>0&&x&&Me.jsx(C.slots.baseIconButton,Ie({ref:g,id:x,"aria-label":h.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?w:void 0,role:"menuitem",size:"small",onClick:()=>{f(!0),d(k-1),b.current=!0},touchRippleRef:T(x),tabIndex:c===S.length?l:-1},null==(n=C.slotProps)?void 0:n.baseIconButton,{children:Me.jsx(C.slots.moreActionsIcon,{fontSize:"small"})})),E.length>0&&Me.jsx(wf,{onClickAway:R,onClick:R,open:p,target:g.current,position:a,children:Me.jsx(Jp,{id:w,className:Ca.menuList,onKeyDown:e=>{"Tab"===e.key&&e.preventDefault(),["Tab","Enter","Escape"].includes(e.key)&&R()},"aria-labelledby":x,variant:"menu",autoFocusItem:!0,children:E.map(((t,n)=>e.cloneElement(t,{key:n})))})})]}))}"production"!==process.env.NODE_ENV&&(Cf.propTypes={api:oe.object,cellMode:oe.oneOf(["edit","view"]).isRequired,colDef:oe.object.isRequired,field:oe.string.isRequired,focusElementRef:oe.oneOfType([oe.func,oe.shape({current:oe.shape({focus:oe.func.isRequired})})]),formattedValue:oe.any,hasFocus:oe.bool.isRequired,id:oe.oneOfType([oe.number,oe.string]).isRequired,isEditable:oe.bool,position:oe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),row:oe.any.isRequired,rowNode:oe.object.isRequired,tabIndex:oe.oneOf([-1,0]).isRequired,value:oe.any});function Of(t){const{className:n,classes:o,pulsate:r=!1,rippleX:i,rippleY:l,rippleSize:a,in:s,onExited:u,timeout:c}=t,[d,p]=e.useState(!1),f=vo(n,o.ripple,o.rippleVisible,r&&o.ripplePulsate),h={width:a,height:a,top:-a/2+l,left:-a/2+i},m=vo(o.child,d&&o.childLeaving,r&&o.childPulsate);return!s&&!d&&p(!0),e.useEffect((()=>{if(!s&&null!=u){const e=setTimeout(u,c);return()=>{clearTimeout(e)}}}),[u,s,c]),Me.jsx("span",{className:f,style:h,children:Me.jsx("span",{className:m})})}"production"!==process.env.NODE_ENV&&(Of.propTypes={classes:oe.object.isRequired,className:oe.string,in:oe.bool,onExited:oe.func,pulsate:oe.bool,rippleSize:oe.number,rippleX:oe.number,rippleY:oe.number,timeout:oe.number.isRequired});const Sf=an("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ef=["center","classes","className"];let kf,Rf,Tf,Nf,Pf=e=>e;const Mf=le(kf||(kf=Pf`
|
|
46
46
|
0% {
|
|
47
47
|
transform: scale(0);
|
|
48
48
|
opacity: 0.1;
|