diff --git a/ui/dist/apps/dropdown/index.html b/ui/dist/apps/dropdown/index.html index 0191c329..3992e60a 100644 --- a/ui/dist/apps/dropdown/index.html +++ b/ui/dist/apps/dropdown/index.html @@ -149,7 +149,7 @@ if (colorScheme) { ${l} } -} catch(e){}})();`}},`mui-color-scheme-init`)}function Rw(){}var zw=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Rw;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Bw(){}function Vw(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Hw(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Uw(e){return Hw(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Ww(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Pw,colorSchemeStorageKey:o=Fw,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=zw,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=b.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=b.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=b.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=b.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Vw(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=b.useState(l||!d);b.useEffect(()=>{v(!0)},[]);let y=Uw(h),x=b.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Vw(r)}})},[f,t]),S=b.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Hw(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=b.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=b.useRef(C);return w.current=C,b.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),b.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&x(e||t)})||Bw,n=p?.subscribe(e=>{(!e||u.match(e))&&S({light:e})})||Bw,r=m?.subscribe(e=>{(!e||u.match(e))&&S({dark:e})})||Bw;return()=>{e(),n(),r()}}},[S,x,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:x,setColorScheme:S}}var Gw=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Kw(e){let{themeId:t,theme:n={},modeStorageKey:r=Pw,colorSchemeStorageKey:i=Fw,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=b.createContext(void 0),u=()=>b.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=b.useRef(!1),D=pw(),O=b.useContext(l),ee=!!O&&!x,te=b.useMemo(()=>u||(typeof n==`function`?n():n),[u]),ne=te[t],k=ne||te,{colorSchemes:re=d,components:ie=f,cssVarPrefix:ae}=k,A=Object.keys(re).filter(e=>!!re[e]).join(`,`),j=b.useMemo(()=>A.split(`,`),[A]),M=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:se,setMode:ce,systemMode:le,lightColorScheme:N,darkColorScheme:P,colorScheme:ue,setColorScheme:de}=Ww({supportedColorSchemes:j,defaultLightColorScheme:M,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:re[M]&&re[oe]?C:re[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),fe=se,pe=ue;ee&&(fe=O.mode,pe=O.colorScheme);let me=pe||k.defaultColorScheme;k.vars&&!w&&(me=k.defaultColorScheme);let he=b.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ie,colorSchemes:re,cssVarPrefix:ae,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=re[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,me,ie,re,ae]),ge=k.colorSchemeSelector;qC(()=>{if(pe&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...j.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,pe));else{let e=t.replace(`%s`,pe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||j.forEach(e=>{y.removeAttribute(t.replace(pe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,pe)}}},[pe,ge,y,j]),b.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Gw)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[pe,h,v]),b.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let _e=b.useMemo(()=>({allColorSchemes:j,colorScheme:pe,darkColorScheme:P,lightColorScheme:N,mode:fe,setColorScheme:de,setMode:ce,systemMode:le}),[j,pe,P,N,fe,de,ce,le,he.colorSchemeSelector]),ve=!0;(S||k.cssVariables===!1||ee&&D?.cssVarPrefix===ae)&&(ve=!1);let ye=(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(jw,{themeId:ne?t:void 0,theme:he,children:c}),ve&&(0,Z.jsx)(Mx,{styles:he.generateStyleSheets?.()||[]})]});return ee?ye:(0,Z.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Lw({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function qw(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Jw=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Yw=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Xw=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Zw(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Yw(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Xw(e,t);Object.assign(i,{[r]:c}),Jw(a,e,`var(${r})`,s),Jw(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Qw(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Zw(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Zw(n,t);p=Vx(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Zw(h,t);p=Vx(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Vx(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function $w(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function eT(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e=n?aT.text.primary:rT.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Cy(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Cy(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(sT(i,e,`light`,a,r),sT(i,e,`dark`,o,r)):(oT(e,`light`,a,r),oT(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=nT():t===`dark`&&(m=iT()),Vx({common:{...hy},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Sy,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function gT(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function _T(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function vT(e){return Math.round(e*1e5)/1e5}var yT={textTransform:`uppercase`},bT=`"Roboto", "Helvetica", "Arial", sans-serif`;function xT(e,t){let{fontFamily:n=bT,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===bT?{letterSpacing:`${vT(i/t)}em`}:{},...a,...l});return Vx({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,yT),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,yT),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ST=.2,CT=.14,wT=.12;function TT(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ST})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${CT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wT})`].join(`,`)}var ET=[`none`,TT(0,2,1,-1,0,1,1,0,0,1,3,0),TT(0,3,1,-2,0,2,2,0,0,1,5,0),TT(0,3,3,-2,0,3,4,0,0,1,8,0),TT(0,2,4,-1,0,4,5,0,0,1,10,0),TT(0,3,5,-1,0,5,8,0,0,1,14,0),TT(0,3,5,-1,0,6,10,0,0,1,18,0),TT(0,4,5,-2,0,7,10,1,0,2,16,1),TT(0,5,5,-3,0,8,10,1,0,3,14,2),TT(0,5,6,-3,0,9,12,1,0,3,16,2),TT(0,6,6,-3,0,10,14,1,0,4,18,3),TT(0,6,7,-4,0,11,15,1,0,4,20,3),TT(0,7,8,-4,0,12,17,2,0,5,22,4),TT(0,7,8,-4,0,13,19,2,0,5,24,4),TT(0,7,9,-4,0,14,21,2,0,5,26,4),TT(0,8,9,-5,0,15,22,2,0,6,28,5),TT(0,8,10,-5,0,16,24,2,0,6,30,5),TT(0,8,11,-5,0,17,26,2,0,6,32,5),TT(0,9,11,-5,0,18,28,2,0,7,34,6),TT(0,9,12,-6,0,19,29,2,0,7,36,6),TT(0,10,13,-6,0,20,31,3,0,8,38,7),TT(0,10,13,-6,0,21,33,3,0,8,40,7),TT(0,10,14,-6,0,22,35,3,0,8,42,7),TT(0,11,14,-7,0,23,36,3,0,9,44,8),TT(0,11,15,-7,0,24,38,3,0,9,46,8)],DT=[`all`],OT={},kT={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)`},AT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jT(e){return`${Math.round(e)}ms`}function MT(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function NT(e){let t={...e};delete t.reducedMotion;let n={...kT,...t.easing},r={...AT,...t.duration};return{getAutoHeightDuration:MT,create:t.create??((e=DT,t=OT)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:jT(i)} ${a} ${typeof o==`string`?o:jT(o)}`).join(`,`)}),...t,easing:n,duration:r}}var PT={};function FT(e=PT){return{reducedMotion:`never`,...e}}var IT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function LT(e){return zx(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function RT(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Rw;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Bw(){}function Vw(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Hw(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Uw(e){return Hw(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Ww(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Pw,colorSchemeStorageKey:o=Fw,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=zw,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=b.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=b.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=b.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=b.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Vw(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=b.useState(l||!d);b.useEffect(()=>{v(!0)},[]);let y=Uw(h),x=b.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Vw(r)}})},[f,t]),S=b.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Hw(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=b.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=b.useRef(C);return w.current=C,b.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),b.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&x(e||t)})||Bw,n=p?.subscribe(e=>{(!e||u.match(e))&&S({light:e})})||Bw,r=m?.subscribe(e=>{(!e||u.match(e))&&S({dark:e})})||Bw;return()=>{e(),n(),r()}}},[S,x,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:x,setColorScheme:S}}var Gw=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Kw(e){let{themeId:t,theme:n={},modeStorageKey:r=Pw,colorSchemeStorageKey:i=Fw,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=b.createContext(void 0),u=()=>b.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=b.useRef(!1),D=pw(),O=b.useContext(l),ee=!!O&&!x,te=b.useMemo(()=>u||(typeof n==`function`?n():n),[u]),ne=te[t],k=ne||te,{colorSchemes:re=d,components:ie=f,cssVarPrefix:ae}=k,A=Object.keys(re).filter(e=>!!re[e]).join(`,`),j=b.useMemo(()=>A.split(`,`),[A]),M=typeof o==`string`?o:o.light,oe=typeof o==`string`?o:o.dark,{mode:se,setMode:ce,systemMode:le,lightColorScheme:N,darkColorScheme:P,colorScheme:ue,setColorScheme:de}=Ww({supportedColorSchemes:j,defaultLightColorScheme:M,defaultDarkColorScheme:oe,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:re[M]&&re[oe]?C:re[k.defaultColorScheme]?.palette?.mode||k.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),fe=se,pe=ue;ee&&(fe=O.mode,pe=O.colorScheme);let me=pe||k.defaultColorScheme;k.vars&&!w&&(me=k.defaultColorScheme);let he=b.useMemo(()=>{let e=k.generateThemeVars?.()||k.vars,t={...k,components:ie,colorSchemes:re,cssVarPrefix:ae,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=re[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[k,me,ie,re,ae]),ge=k.colorSchemeSelector;qC(()=>{if(pe&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...j.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,pe));else{let e=t.replace(`%s`,pe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||j.forEach(e=>{y.removeAttribute(t.replace(pe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,pe)}}},[pe,ge,y,j]),b.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Gw)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[pe,h,v]),b.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let _e=b.useMemo(()=>({allColorSchemes:j,colorScheme:pe,darkColorScheme:P,lightColorScheme:N,mode:fe,setColorScheme:de,setMode:ce,systemMode:le}),[j,pe,P,N,fe,de,ce,le,he.colorSchemeSelector]),ve=!0;(S||k.cssVariables===!1||ee&&D?.cssVarPrefix===ae)&&(ve=!1);let ye=(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(jw,{themeId:ne?t:void 0,theme:he,children:c}),ve&&(0,Z.jsx)(Mx,{styles:he.generateStyleSheets?.()||[]})]});return ee?ye:(0,Z.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Lw({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function qw(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Jw=new Set([`__proto__`,`constructor`,`prototype`]),Yw=(e,t,n,r=[])=>{let i=e;for(let e=0;e{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Zw=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Qw(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Xw(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Zw(e,t);Object.assign(i,{[r]:c}),Yw(a,e,`var(${r})`,s),Yw(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function $w(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Qw(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Qw(n,t);p=Vx(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Qw(h,t);p=Vx(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Vx(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function eT(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function tT(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e=n?oT.text.primary:iT.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Cy(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Cy(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(cT(i,e,`light`,a,r),cT(i,e,`dark`,o,r)):(sT(e,`light`,a,r),sT(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=rT():t===`dark`&&(m=aT()),Vx({common:{...hy},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Sy,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function _T(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function vT(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function yT(e){return Math.round(e*1e5)/1e5}var bT={textTransform:`uppercase`},xT=`"Roboto", "Helvetica", "Arial", sans-serif`;function ST(e,t){let{fontFamily:n=xT,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===xT?{letterSpacing:`${yT(i/t)}em`}:{},...a,...l});return Vx({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,bT),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,bT),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var CT=.2,wT=.14,TT=.12;function ET(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TT})`].join(`,`)}var DT=[`none`,ET(0,2,1,-1,0,1,1,0,0,1,3,0),ET(0,3,1,-2,0,2,2,0,0,1,5,0),ET(0,3,3,-2,0,3,4,0,0,1,8,0),ET(0,2,4,-1,0,4,5,0,0,1,10,0),ET(0,3,5,-1,0,5,8,0,0,1,14,0),ET(0,3,5,-1,0,6,10,0,0,1,18,0),ET(0,4,5,-2,0,7,10,1,0,2,16,1),ET(0,5,5,-3,0,8,10,1,0,3,14,2),ET(0,5,6,-3,0,9,12,1,0,3,16,2),ET(0,6,6,-3,0,10,14,1,0,4,18,3),ET(0,6,7,-4,0,11,15,1,0,4,20,3),ET(0,7,8,-4,0,12,17,2,0,5,22,4),ET(0,7,8,-4,0,13,19,2,0,5,24,4),ET(0,7,9,-4,0,14,21,2,0,5,26,4),ET(0,8,9,-5,0,15,22,2,0,6,28,5),ET(0,8,10,-5,0,16,24,2,0,6,30,5),ET(0,8,11,-5,0,17,26,2,0,6,32,5),ET(0,9,11,-5,0,18,28,2,0,7,34,6),ET(0,9,12,-6,0,19,29,2,0,7,36,6),ET(0,10,13,-6,0,20,31,3,0,8,38,7),ET(0,10,13,-6,0,21,33,3,0,8,40,7),ET(0,10,14,-6,0,22,35,3,0,8,42,7),ET(0,11,14,-7,0,23,36,3,0,9,44,8),ET(0,11,15,-7,0,24,38,3,0,9,46,8)],OT=[`all`],kT={},AT={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)`},jT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MT(e){return`${Math.round(e)}ms`}function NT(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function PT(e){let t={...e};delete t.reducedMotion;let n={...AT,...t.easing},r={...jT,...t.duration};return{getAutoHeightDuration:NT,create:t.create??((e=OT,t=kT)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:MT(i)} ${a} ${typeof o==`string`?o:MT(o)}`).join(`,`)}),...t,easing:n,duration:r}}var FT={};function IT(e=FT){return{reducedMotion:`never`,...e}}var LT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function RT(e){return zx(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function zT(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;eVx(e,t),m),delete m.transitions.reducedMotion,m.unstable_sxConfig={...pC,...d?.unstable_sxConfig},m.unstable_sx=function(e){return gC({sx:e,theme:this})},m.toRuntimeSource=RT,VT(m),m}function UT(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var WT=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=UT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function GT(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function KT(e){return e===`dark`?WT:[]}function qT(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=hT({...t,colorSpace:i});return{palette:o,opacity:{...GT(o.mode),...n},overlays:r||KT(o.mode),...a}}function JT(e){return e[0]===`motion`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var YT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],XT=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return YT(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function ZT(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function QT(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:tw(e)}function $T(e,t){`${t}Channel`in e||(e[`${t}Channel`]=$C(QT(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function eE(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var tE=e=>{try{return e()}catch{}},nE=(e=`mui`)=>qw(e);function rE(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=qT({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=HT({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...GT(a),...n?.opacity},overlays:n?.overlays||KT(a)},s}function iE(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=JT,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=nE(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Cy(21,f));let b;o&&(b=`oklch`);let x=rE(b,v,y,u,f);h&&!v.light&&rE(b,v,h,void 0,`light`),g&&!v.dark&&rE(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...gT(x.typography),...x.font},spacing:eE(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(Q(t.common,`background`,`#fff`),Q(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Q(t.common,`background`,`#000`),Q(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===aw&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===sw&&(r=`#000 ${(n*100).toFixed(0)}%`),e===lw&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(ZT(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Q(t.Alert,`errorColor`,r(sw,o?p(`palette-error-light`):t.error.light,.6)),Q(t.Alert,`infoColor`,r(sw,o?p(`palette-info-light`):t.info.light,.6)),Q(t.Alert,`successColor`,r(sw,o?p(`palette-success-light`):t.success.light,.6)),Q(t.Alert,`warningColor`,r(sw,o?p(`palette-warning-light`):t.warning.light,.6)),Q(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Q(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Q(t.Alert,`successFilledBg`,n(`palette-success-main`)),Q(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Q(t.Alert,`errorFilledColor`,tE(()=>t.getContrastText(t.error.main))),Q(t.Alert,`infoFilledColor`,tE(()=>t.getContrastText(t.info.main))),Q(t.Alert,`successFilledColor`,tE(()=>t.getContrastText(t.success.main))),Q(t.Alert,`warningFilledColor`,tE(()=>t.getContrastText(t.warning.main))),Q(t.Alert,`errorStandardBg`,r(lw,o?p(`palette-error-light`):t.error.light,.9)),Q(t.Alert,`infoStandardBg`,r(lw,o?p(`palette-info-light`):t.info.light,.9)),Q(t.Alert,`successStandardBg`,r(lw,o?p(`palette-success-light`):t.success.light,.9)),Q(t.Alert,`warningStandardBg`,r(lw,o?p(`palette-warning-light`):t.warning.light,.9)),Q(t.Alert,`errorIconColor`,n(`palette-error-main`)),Q(t.Alert,`infoIconColor`,n(`palette-info-main`)),Q(t.Alert,`successIconColor`,n(`palette-success-main`)),Q(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Q(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Q(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Q(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Q(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Q(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Q(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Q(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Q(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Q(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Q(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Q(t.LinearProgress,`primaryBg`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.LinearProgress,`secondaryBg`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.LinearProgress,`errorBg`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.LinearProgress,`infoBg`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.LinearProgress,`successBg`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.LinearProgress,`warningBg`,r(lw,o?p(`palette-warning-light`):t.warning.main,.62)),Q(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Q(t.Slider,`primaryTrack`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.Slider,`secondaryTrack`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.Slider,`errorTrack`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.Slider,`infoTrack`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.Slider,`successTrack`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.Slider,`warningTrack`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(sw,o?p(`palette-background-default`):t.background.default,.6825):dw(t.background.default,.8);Q(t.SnackbarContent,`bg`,e),Q(t.SnackbarContent,`color`,tE(()=>b?aT.text.primary:t.getContrastText(e))),Q(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),Q(t.StepConnector,`border`,n(`palette-grey-400`)),Q(t.StepContent,`border`,n(`palette-grey-400`)),Q(t.Switch,`defaultColor`,n(`palette-common-white`)),Q(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Q(t.Switch,`primaryDisabledColor`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.Switch,`secondaryDisabledColor`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.Switch,`errorDisabledColor`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.Switch,`infoDisabledColor`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.Switch,`successDisabledColor`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.Switch,`warningDisabledColor`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62)),Q(t.TableCell,`border`,r(lw,aw(o?p(`palette-divider`):t.divider,1),.88)),Q(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Q(t.Alert,`errorColor`,r(lw,o?p(`palette-error-light`):t.error.light,.6)),Q(t.Alert,`infoColor`,r(lw,o?p(`palette-info-light`):t.info.light,.6)),Q(t.Alert,`successColor`,r(lw,o?p(`palette-success-light`):t.success.light,.6)),Q(t.Alert,`warningColor`,r(lw,o?p(`palette-warning-light`):t.warning.light,.6)),Q(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Q(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Q(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Q(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Q(t.Alert,`errorFilledColor`,tE(()=>t.getContrastText(t.error.dark))),Q(t.Alert,`infoFilledColor`,tE(()=>t.getContrastText(t.info.dark))),Q(t.Alert,`successFilledColor`,tE(()=>t.getContrastText(t.success.dark))),Q(t.Alert,`warningFilledColor`,tE(()=>t.getContrastText(t.warning.dark))),Q(t.Alert,`errorStandardBg`,r(sw,o?p(`palette-error-light`):t.error.light,.9)),Q(t.Alert,`infoStandardBg`,r(sw,o?p(`palette-info-light`):t.info.light,.9)),Q(t.Alert,`successStandardBg`,r(sw,o?p(`palette-success-light`):t.success.light,.9)),Q(t.Alert,`warningStandardBg`,r(sw,o?p(`palette-warning-light`):t.warning.light,.9)),Q(t.Alert,`errorIconColor`,n(`palette-error-main`)),Q(t.Alert,`infoIconColor`,n(`palette-info-main`)),Q(t.Alert,`successIconColor`,n(`palette-success-main`)),Q(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Q(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Q(t.AppBar,`darkBg`,n(`palette-background-paper`)),Q(t.AppBar,`darkColor`,n(`palette-text-primary`)),Q(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Q(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Q(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Q(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Q(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Q(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Q(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Q(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Q(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Q(t.LinearProgress,`primaryBg`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),Q(t.LinearProgress,`secondaryBg`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),Q(t.LinearProgress,`errorBg`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),Q(t.LinearProgress,`infoBg`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),Q(t.LinearProgress,`successBg`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),Q(t.LinearProgress,`warningBg`,r(sw,o?p(`palette-warning-main`):t.warning.main,.5)),Q(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Q(t.Slider,`primaryTrack`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),Q(t.Slider,`secondaryTrack`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),Q(t.Slider,`errorTrack`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),Q(t.Slider,`infoTrack`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),Q(t.Slider,`successTrack`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),Q(t.Slider,`warningTrack`,r(sw,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(lw,o?p(`palette-background-default`):t.background.default,.985):dw(t.background.default,.98);Q(t.SnackbarContent,`bg`,e),Q(t.SnackbarContent,`color`,tE(()=>b?rT.text.primary:t.getContrastText(e))),Q(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),Q(t.StepConnector,`border`,n(`palette-grey-600`)),Q(t.StepContent,`border`,n(`palette-grey-600`)),Q(t.Switch,`defaultColor`,n(`palette-grey-300`)),Q(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Q(t.Switch,`primaryDisabledColor`,r(sw,o?p(`palette-primary-main`):t.primary.main,.55)),Q(t.Switch,`secondaryDisabledColor`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.55)),Q(t.Switch,`errorDisabledColor`,r(sw,o?p(`palette-error-main`):t.error.main,.55)),Q(t.Switch,`infoDisabledColor`,r(sw,o?p(`palette-info-main`):t.info.main,.55)),Q(t.Switch,`successDisabledColor`,r(sw,o?p(`palette-success-main`):t.success.main,.55)),Q(t.Switch,`warningDisabledColor`,r(sw,o?p(`palette-warning-light`):t.warning.main,.55)),Q(t.TableCell,`border`,r(sw,aw(o?p(`palette-divider`):t.divider,1),.68)),Q(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}o||($T(t.background,`default`),$T(t.background,`paper`),$T(t.common,`background`),$T(t.common,`onBackground`),$T(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Q(t[e],`mainChannel`,$C(QT(n.main))),n.light&&Q(t[e],`lightChannel`,$C(QT(n.light))),n.dark&&Q(t[e],`darkChannel`,$C(QT(n.dark))),n.contrastText&&Q(t[e],`contrastTextChannel`,$C(QT(n.contrastText))),e===`text`&&($T(t[e],`primary`),$T(t[e],`secondary`)),e===`action`&&(n.active&&$T(t[e],`active`),n.selected&&$T(t[e],`selected`)))})}),S=t.reduce((e,t)=>Vx(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:XT(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Qw(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return RS(u.spacing,AS(this))},S.getColorSchemeSelector=$w(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...pC,...u?.unstable_sxConfig},S.unstable_sx=function(e){return gC({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=RT,S}function aE(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:hT({...n===!0?{}:n.palette,mode:t})})}function oE(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return HT(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=HT({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},aE(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},aE(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),iE({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function sE(e){return typeof e==`string`}function cE(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function lE(...e){let t=b.useRef(void 0),n=b.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return b.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function uE(e){let t=b.useRef(e);return qC(()=>{t.current=e}),b.useRef((...e)=>(0,t.current)(...e)).current}function dE(e){return e&&e.ownerDocument||document}function fE(e){return dE(e).defaultView||window}function pE(e){return parseInt(e,10)||0}var mE={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function hE(e){for(let t in e)return!1;return!0}function gE(e){return hE(e)||e.outerHeightStyle===0&&!e.overflowing}var _E=b.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=b.useRef(o!=null),l=b.useRef(null),u=lE(t,l),d=b.useRef(null),f=b.useRef(null),p=b.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=fE(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===` -`&&(n.value+=` `);let o=a.boxSizing,s=pE(a.paddingBottom)+pE(a.paddingTop),c=pE(a.borderBottomWidth)+pE(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=uE(()=>{let e=l.current,t=p();if(!e||!t||gE(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=b.useCallback(()=>{let e=l.current,t=p();if(!e||!t||gE(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=b.useRef(-1);return qC(()=>{let e=cE(h),t=l?.current;if(!t)return;let n=fE(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),qC(()=>{h()}),(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(` -`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,Z.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...mE.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),vE=b.createContext(void 0);function yE({props:e,states:t}){let n=b.useContext(vE),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var bE=oE();function xE(){let e=wC(bE);return e.$$material||e}function SE(e){return(0,Z.jsx)(EC,{...e,defaultTheme:bE,themeId:wy})}function CE(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var wE=e=>CE(e)&&e!==`classes`,$=UC({themeId:wy,defaultTheme:bE,rootShouldForwardProp:wE});function TE(e){return function(t){return(0,Z.jsx)(SE,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var EE=Nw;function DE(e){return Cw(e)}var OE=_S,kE=lE,AE=qC,jE=dE;function ME(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var NE=ME;function PE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function FE(e,t=!1){return e&&(PE(e.value)&&e.value!==``||t&&PE(e.defaultValue)&&e.defaultValue!==``)}function IE(e){return e.startAdornment}function LE(e){return NC(`MuiInputBase`,e)}var RE=PC(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),zE={transition:`none`};function BE(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var VE=e=>e.scrollTop,HE={},UE=[`all`],WE={};function GE(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function KE(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function qE(e,t){let{timeout:n,easing:r,style:i=HE}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function JE(e,t){let n=t??zE;return BE(e.motion?.reducedMotion,n)}function YE(e,t=UE,n=WE){let r=e.transitions?.create?.(t,n),i=JE(e);if(r===void 0)return i??HE;let a={transition:r};return i?{...a,...i}:a}var XE,ZE=`mui-auto-fill`,QE=`mui-auto-fill-cancel`,$E=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${OE(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eD=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},tD=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return eT({root:[`root`,`color${OE(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${OE(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},LE,t)},nD=$(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:$E})(EE(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${RE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),rD=$(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:eD})(EE(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...YE(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${RE.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${RE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:QE,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:ZE}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),iD=TE({[`@keyframes ${ZE}`]:{from:{animationName:ZE}},[`@keyframes ${QE}`]:{from:{animationName:QE}}}),aD=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:ee,onKeyUp:te,placeholder:ne,readOnly:k,renderSuffix:re,rows:ie,size:ae,slotProps:A={},slots:j={},startAdornment:M,type:oe=`text`,value:se,...ce}=n,le=_.value==null?se:_.value,{current:N}=b.useRef(le!=null),P=b.useRef(),ue=b.useCallback(e=>{},[]),de=kE(P,v,_.ref,ue),[fe,pe]=b.useState(!1),[me,he]=yE({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});me.focused=he?he.focused:fe,b.useEffect(()=>{!he&&u&&fe&&(pe(!1),T&&T())},[he,u,fe,T]);let ge=he&&he.onFilled,_e=he&&he.onEmpty,ve=b.useCallback(e=>{FE(e)?ge&&ge():_e&&_e()},[ge,_e]);AE(()=>{N&&ve({value:le})},[le,ve,N]),AE(()=>{if(!o)return;let e=P.current;if(!e)return;let t=jE(e),n=NE(t),r=n==null||n===t.body||n===t.documentElement;e===n?he&&he.onFocus?he.onFocus():pe(!0):r&&e.focus()},[o]);let ye=e=>{O&&O(e),_.onFocus&&_.onFocus(e),he&&he.onFocus?he.onFocus(e):pe(!0)},be=e=>{T&&T(e),_.onBlur&&_.onBlur(e),he&&he.onBlur?he.onBlur(e):pe(!1)},xe=(e,...t)=>{if(!N){let t=e.target||P.current;if(t==null)throw Error(Cy(1));ve({value:t.value})}_.onChange&&_.onChange(e,...t),E&&E(e,...t)};b.useEffect(()=>{ve(P.current)},[]);let Se=e=>{P.current&&e.currentTarget===e.target&&P.current.focus(),D&&D(e)},Ce=g,we=_;C&&Ce===`input`&&(we=ie?{type:void 0,minRows:ie,maxRows:ie,...we}:{type:void 0,maxRows:x,minRows:S,...we},Ce=_E);let F=e=>{ve(e.animationName===QE?P.current:{value:`x`})};b.useEffect(()=>{he&&he.setAdornedStart(!!M)},[he,M]);let Te={...n,color:me.color||`primary`,disabled:me.disabled,endAdornment:f,error:me.error,focused:me.focused,formControl:he,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:C,size:me.size,startAdornment:M,type:oe},I=tD(Te),Ee=j.root||nD,De=A.root||{},Oe=j.input||rD;return we={...we,...A.input},(0,Z.jsxs)(b.Fragment,{children:[!d&&typeof iD==`function`&&(XE||=(0,Z.jsx)(iD,{})),(0,Z.jsxs)(Ee,{...De,ref:t,onClick:Se,...ce,...!sE(Ee)&&{ownerState:{...Te,...De.ownerState}},className:AC(I.root,De.className,s,k&&`MuiInputBase-readOnly`),children:[M,(0,Z.jsx)(vE.Provider,{value:null,children:(0,Z.jsx)(Oe,{"aria-invalid":me.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:me.disabled,id:h,onAnimationStart:F,name:w,placeholder:ne,readOnly:k,required:me.required,rows:ie,value:le,onKeyDown:ee,onKeyUp:te,type:oe,...we,...!sE(Oe)&&{as:Ce,ownerState:{...Te,...we.ownerState}},ref:de,className:AC(I.input,we.className,k&&`MuiInputBase-readOnly`),onBlur:be,onChange:xe,onFocus:ye})}),f,re?re({...me,startAdornment:M}):null]})]})});function oD(e){return NC(`MuiFilledInput`,e)}var sD={...RE,...PC(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function cD(e){return NC(`MuiFormLabel`,e)}var lD=PC(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function uD(e){return NC(`MuiInput`,e)}var dD={...RE,...PC(`MuiInput`,[`root`,`underline`,`input`])};function fD(e){return NC(`MuiMenuItem`,e)}var pD=PC(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function mD(e){return NC(`MuiNativeSelect`,e)}var hD=PC(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function gD(e){return NC(`MuiOutlinedInput`,e)}var _D={...RE,...PC(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function vD({theme:e,...t}){let n=`$$material`in e?e[wy]:void 0;return(0,Z.jsx)(jw,{...t,themeId:n?wy:void 0,theme:n||e})}var yD={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:bD,useColorScheme:xD,getInitColorSchemeScript:SD}=Kw({themeId:wy,theme:()=>oE({cssVariables:!0}),colorSchemeStorageKey:yD.colorSchemeStorageKey,modeStorageKey:yD.modeStorageKey,defaultColorScheme:{light:yD.defaultLightColorScheme,dark:yD.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:xT(e.palette,e.typography)};return t.unstable_sx=function(e){return gC({sx:e,theme:this})},t}}),CD=bD;function wD({theme:e,...t}){let n=b.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[wy]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,Z.jsx)(vD,{theme:n,...t}):(0,Z.jsx)(CD,{theme:e,...t})}function TD(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ED(e){return NC(`MuiSvgIcon`,e)}PC(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var DD=e=>{let{color:t,fontSize:n,classes:r}=e;return eT({root:[`root`,t!==`inherit`&&`color${OE(t)}`,`fontSize${OE(n)}`]},ED,r)},OD=$(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${OE(n.color)}`],t[`fontSize${OE(n.fontSize)}`]]}})(EE(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...YE(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),kD=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=b.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=DD(m);return(0,Z.jsxs)(OD,{as:o,className:AC(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,Z.jsx)(`title`,{children:u}):null]})});kD.muiName=`SvgIcon`;function AD(e,t){function n(t,n){return(0,Z.jsx)(kD,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=kD.muiName,b.memo(b.forwardRef(n))}var jD=cE,MD=tT,ND=fE;function PD(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var FD=Dw;function ID(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=b.useRef(t!==void 0),[o,s]=b.useState(n);return[a?t:o,b.useCallback(e=>{a||s(e)},[])]}var LD=ID,RD=uE;function zD(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function BD(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{zD(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=AC(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=AC(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var VD={};function HD(e,t){let n=b.useRef(VD);return n.current===VD&&(n.current=e(t)),n}function UD(e){let t=HD(()=>WD(e)).current;return t.next=e,qC(t.effect),t}function WD(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var GD=b.createContext(null);function KD(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function qD(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=KD(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function JD(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,x=b.useContext(GD),S=x&&!x.isMounting?r:n,[C,w]=b.useState(()=>t?S?`exited`:`entered`:a||o?`unmounted`:`exited`),T=b.useRef(C);T.current=C,t&&C===`unmounted`&&(T.current=`exited`,w(`exited`));let E=b.useRef(t&&S),D=b.useRef(!1),O=b.useRef(null),ee=b.useRef(C),te=b.useRef(!1),ne=b.useRef(l),k=UD({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:x}),re=b.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),ie=b.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),ae=b.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=ie(()=>{r(),T.current=e,w(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=k.current.nodeRef.current,s=k.current.addEndListener,c=k.current.getAutoTimeout!==void 0,l=k.current.getAutoTimeout?.(),u=qD({currentStatus:t,isAppearing:te.current,timeout:k.current.timeout,autoTimeout:l}),d=ne.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[ie,k]),A=b.useCallback(e=>{let t=k.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(te.current=n,!e&&!t.enter){T.current=`entered`,w(`entered`);return}ne.current=t.reduceMotion,t.onEnter?.(n),T.current=`entering`,w(`entering`)},[k]),j=b.useCallback(()=>{let e=k.current;if(!e.exit){T.current=`exited`,w(`exited`);return}ne.current=e.reduceMotion,e.onExit?.(),T.current=`exiting`,w(`exiting`)},[k]),M=b.useCallback((e,t)=>{if(re(),t===`entering`){let t=k.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&VE(e)}A(e)}else j()},[re,A,j,k]);return qC(()=>(D.current=!0,E.current&&(E.current=!1,M(!0,`entering`)),()=>{D.current=!1,re()}),[re,M]),qC(()=>{if(!D.current)return;let e=T.current;t?e!==`entering`&&e!==`entered`&&M(!1,`entering`):e===`entering`||e===`entered`?M(!1,`exiting`):e===`exited`&&o&&(T.current=`unmounted`,w(`unmounted`))},[t,C,o,M]),qC(()=>{if(C===`unmounted`||ee.current===`unmounted`){ee.current=C;return}if(ee.current===C)return;ee.current=C;let e=k.current;C===`entering`?(e.onEntering?.(te.current),ae(`entered`,`entering`)):C===`exiting`?(e.onExiting?.(),ae(`exited`,`exiting`)):C===`entered`?e.onEntered?.(te.current):C===`exited`&&e.onExited?.()},[k,ae,C]),C===`unmounted`?null:(0,Z.jsx)(GD.Provider,{value:null,children:v(C,y)})}var YD=`(prefers-reduced-motion: reduce)`,XD=0,ZD=`0ms`,QD=()=>{},$D=()=>!1,eO=()=>!0,tO=()=>QD;function nO(e){let[t,n]=b.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),qC(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(YD),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var rO={...b}.useSyncExternalStore;function iO(e){let t=e?eO:$D,[n,r]=b.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[$D,tO];let t=window.matchMedia(YD);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return rO(r,n,t)}var aO=rO===void 0?nO:iO;function oO(e,t){let n=aO(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return b.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:XD,delay:ZD}:e}}),[r])}function sO(e,t,n){return e===void 0||sE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function cO(e,t,n){return typeof e==`function`?e(t,n):e}function lO(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))zD(n,e[n])&&(t[n]=e[n]);return t}function uO(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function dO(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=AC(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=lO({...i,...r}),s=uO(r),c=uO(i),l=t(o),u=AC(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function fO(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=cO(d[e],i),{props:{component:h,...g},internalRef:_}=dO({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=lE(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,sO(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function pO(e){return NC(`MuiPaper`,e)}PC(`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`.split(`.`));var mO=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return eT({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},pO,i)},hO=$(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(EE(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...YE(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),gO=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiPaper`}),r=xE(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=mO(u);return(0,Z.jsx)(hO,{as:a,ownerState:u,className:AC(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${iw(`#fff`,UT(o))}, ${iw(`#fff`,UT(o))})`}},...l.style}})});function _O(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function vO(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return b.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var yO={};function bO(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=b.useRef(null),m=l===!0,h=vO({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=b.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=b.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:b.useCallback((e=yO)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var xO=class e{static create(){return new e}static use(){let t=HD(e.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=CO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function SO(){return xO.use()}function CO(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var wO=[];function TO(e){b.useEffect(e,wO)}var EO=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function DO(){let e=HD(EO.create).current;return TO(e.disposeEffect),e}function OO(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=b.useState(!1),f=DO(),p=b.useRef(!1),m=b.useRef(c);m.current=c;let h=c!=null,g=AC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=AC(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,Z.jsx)(`span`,{className:g,style:_,children:(0,Z.jsx)(`span`,{className:v})})}var kO=PC(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),AO=550,jO={},MO=[],NO=()=>{};function PO(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function FO({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var IO=bx` +export default theme;`}function BT(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var VT=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;eVx(e,t),m),delete m.transitions.reducedMotion,m.unstable_sxConfig={...pC,...d?.unstable_sxConfig},m.unstable_sx=function(e){return gC({sx:e,theme:this})},m.toRuntimeSource=zT,HT(m),m}function WT(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var GT=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=WT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function KT(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function qT(e){return e===`dark`?GT:[]}function JT(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=gT({...t,colorSpace:i});return{palette:o,opacity:{...KT(o.mode),...n},overlays:r||qT(o.mode),...a}}function YT(e){return e[0]===`motion`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var XT=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],ZT=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return XT(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function QT(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Q(e,t,n){!e[t]&&n&&(e[t]=n)}function $T(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:tw(e)}function eE(e,t){`${t}Channel`in e||(e[`${t}Channel`]=$C($T(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function tE(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var nE=e=>{try{return e()}catch{}},rE=(e=`mui`)=>qw(e);function iE(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=JT({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=UT({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...KT(a),...n?.opacity},overlays:n?.overlays||qT(a)},s}function aE(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=YT,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=rE(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Cy(21,f));let b;o&&(b=`oklch`);let x=iE(b,v,y,u,f);h&&!v.light&&iE(b,v,h,void 0,`light`),g&&!v.dark&&iE(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{..._T(x.typography),...x.font},spacing:tE(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(Q(t.common,`background`,`#fff`),Q(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Q(t.common,`background`,`#000`),Q(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===aw&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===sw&&(r=`#000 ${(n*100).toFixed(0)}%`),e===lw&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(QT(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Q(t.Alert,`errorColor`,r(sw,o?p(`palette-error-light`):t.error.light,.6)),Q(t.Alert,`infoColor`,r(sw,o?p(`palette-info-light`):t.info.light,.6)),Q(t.Alert,`successColor`,r(sw,o?p(`palette-success-light`):t.success.light,.6)),Q(t.Alert,`warningColor`,r(sw,o?p(`palette-warning-light`):t.warning.light,.6)),Q(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Q(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Q(t.Alert,`successFilledBg`,n(`palette-success-main`)),Q(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Q(t.Alert,`errorFilledColor`,nE(()=>t.getContrastText(t.error.main))),Q(t.Alert,`infoFilledColor`,nE(()=>t.getContrastText(t.info.main))),Q(t.Alert,`successFilledColor`,nE(()=>t.getContrastText(t.success.main))),Q(t.Alert,`warningFilledColor`,nE(()=>t.getContrastText(t.warning.main))),Q(t.Alert,`errorStandardBg`,r(lw,o?p(`palette-error-light`):t.error.light,.9)),Q(t.Alert,`infoStandardBg`,r(lw,o?p(`palette-info-light`):t.info.light,.9)),Q(t.Alert,`successStandardBg`,r(lw,o?p(`palette-success-light`):t.success.light,.9)),Q(t.Alert,`warningStandardBg`,r(lw,o?p(`palette-warning-light`):t.warning.light,.9)),Q(t.Alert,`errorIconColor`,n(`palette-error-main`)),Q(t.Alert,`infoIconColor`,n(`palette-info-main`)),Q(t.Alert,`successIconColor`,n(`palette-success-main`)),Q(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Q(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Q(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Q(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Q(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Q(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Q(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Q(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Q(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Q(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Q(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Q(t.LinearProgress,`primaryBg`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.LinearProgress,`secondaryBg`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.LinearProgress,`errorBg`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.LinearProgress,`infoBg`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.LinearProgress,`successBg`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.LinearProgress,`warningBg`,r(lw,o?p(`palette-warning-light`):t.warning.main,.62)),Q(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Q(t.Slider,`primaryTrack`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.Slider,`secondaryTrack`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.Slider,`errorTrack`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.Slider,`infoTrack`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.Slider,`successTrack`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.Slider,`warningTrack`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(sw,o?p(`palette-background-default`):t.background.default,.6825):dw(t.background.default,.8);Q(t.SnackbarContent,`bg`,e),Q(t.SnackbarContent,`color`,nE(()=>b?oT.text.primary:t.getContrastText(e))),Q(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),Q(t.StepConnector,`border`,n(`palette-grey-400`)),Q(t.StepContent,`border`,n(`palette-grey-400`)),Q(t.Switch,`defaultColor`,n(`palette-common-white`)),Q(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Q(t.Switch,`primaryDisabledColor`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),Q(t.Switch,`secondaryDisabledColor`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),Q(t.Switch,`errorDisabledColor`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),Q(t.Switch,`infoDisabledColor`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),Q(t.Switch,`successDisabledColor`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),Q(t.Switch,`warningDisabledColor`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62)),Q(t.TableCell,`border`,r(lw,aw(o?p(`palette-divider`):t.divider,1),.88)),Q(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Q(t.Alert,`errorColor`,r(lw,o?p(`palette-error-light`):t.error.light,.6)),Q(t.Alert,`infoColor`,r(lw,o?p(`palette-info-light`):t.info.light,.6)),Q(t.Alert,`successColor`,r(lw,o?p(`palette-success-light`):t.success.light,.6)),Q(t.Alert,`warningColor`,r(lw,o?p(`palette-warning-light`):t.warning.light,.6)),Q(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Q(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Q(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Q(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Q(t.Alert,`errorFilledColor`,nE(()=>t.getContrastText(t.error.dark))),Q(t.Alert,`infoFilledColor`,nE(()=>t.getContrastText(t.info.dark))),Q(t.Alert,`successFilledColor`,nE(()=>t.getContrastText(t.success.dark))),Q(t.Alert,`warningFilledColor`,nE(()=>t.getContrastText(t.warning.dark))),Q(t.Alert,`errorStandardBg`,r(sw,o?p(`palette-error-light`):t.error.light,.9)),Q(t.Alert,`infoStandardBg`,r(sw,o?p(`palette-info-light`):t.info.light,.9)),Q(t.Alert,`successStandardBg`,r(sw,o?p(`palette-success-light`):t.success.light,.9)),Q(t.Alert,`warningStandardBg`,r(sw,o?p(`palette-warning-light`):t.warning.light,.9)),Q(t.Alert,`errorIconColor`,n(`palette-error-main`)),Q(t.Alert,`infoIconColor`,n(`palette-info-main`)),Q(t.Alert,`successIconColor`,n(`palette-success-main`)),Q(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Q(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Q(t.AppBar,`darkBg`,n(`palette-background-paper`)),Q(t.AppBar,`darkColor`,n(`palette-text-primary`)),Q(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Q(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Q(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Q(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Q(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Q(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Q(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Q(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Q(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Q(t.LinearProgress,`primaryBg`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),Q(t.LinearProgress,`secondaryBg`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),Q(t.LinearProgress,`errorBg`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),Q(t.LinearProgress,`infoBg`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),Q(t.LinearProgress,`successBg`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),Q(t.LinearProgress,`warningBg`,r(sw,o?p(`palette-warning-main`):t.warning.main,.5)),Q(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Q(t.Slider,`primaryTrack`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),Q(t.Slider,`secondaryTrack`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),Q(t.Slider,`errorTrack`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),Q(t.Slider,`infoTrack`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),Q(t.Slider,`successTrack`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),Q(t.Slider,`warningTrack`,r(sw,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(lw,o?p(`palette-background-default`):t.background.default,.985):dw(t.background.default,.98);Q(t.SnackbarContent,`bg`,e),Q(t.SnackbarContent,`color`,nE(()=>b?iT.text.primary:t.getContrastText(e))),Q(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),Q(t.StepConnector,`border`,n(`palette-grey-600`)),Q(t.StepContent,`border`,n(`palette-grey-600`)),Q(t.Switch,`defaultColor`,n(`palette-grey-300`)),Q(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Q(t.Switch,`primaryDisabledColor`,r(sw,o?p(`palette-primary-main`):t.primary.main,.55)),Q(t.Switch,`secondaryDisabledColor`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.55)),Q(t.Switch,`errorDisabledColor`,r(sw,o?p(`palette-error-main`):t.error.main,.55)),Q(t.Switch,`infoDisabledColor`,r(sw,o?p(`palette-info-main`):t.info.main,.55)),Q(t.Switch,`successDisabledColor`,r(sw,o?p(`palette-success-main`):t.success.main,.55)),Q(t.Switch,`warningDisabledColor`,r(sw,o?p(`palette-warning-light`):t.warning.main,.55)),Q(t.TableCell,`border`,r(sw,aw(o?p(`palette-divider`):t.divider,1),.68)),Q(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}o||(eE(t.background,`default`),eE(t.background,`paper`),eE(t.common,`background`),eE(t.common,`onBackground`),eE(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Q(t[e],`mainChannel`,$C($T(n.main))),n.light&&Q(t[e],`lightChannel`,$C($T(n.light))),n.dark&&Q(t[e],`darkChannel`,$C($T(n.dark))),n.contrastText&&Q(t[e],`contrastTextChannel`,$C($T(n.contrastText))),e===`text`&&(eE(t[e],`primary`),eE(t[e],`secondary`)),e===`action`&&(n.active&&eE(t[e],`active`),n.selected&&eE(t[e],`selected`)))})}),S=t.reduce((e,t)=>Vx(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:ZT(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=$w(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return RS(u.spacing,AS(this))},S.getColorSchemeSelector=eT(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...pC,...u?.unstable_sxConfig},S.unstable_sx=function(e){return gC({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=zT,S}function oE(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gT({...n===!0?{}:n.palette,mode:t})})}function sE(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return UT(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=UT({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},oE(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},oE(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),aE({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function cE(e){return typeof e==`string`}function lE(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function uE(...e){let t=b.useRef(void 0),n=b.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return b.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function dE(e){let t=b.useRef(e);return qC(()=>{t.current=e}),b.useRef((...e)=>(0,t.current)(...e)).current}function fE(e){return e&&e.ownerDocument||document}function pE(e){return fE(e).defaultView||window}function mE(e){return parseInt(e,10)||0}var hE={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function gE(e){for(let t in e)return!1;return!0}function _E(e){return gE(e)||e.outerHeightStyle===0&&!e.overflowing}var vE=b.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=b.useRef(o!=null),l=b.useRef(null),u=uE(t,l),d=b.useRef(null),f=b.useRef(null),p=b.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=pE(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===` +`&&(n.value+=` `);let o=a.boxSizing,s=mE(a.paddingBottom)+mE(a.paddingTop),c=mE(a.borderBottomWidth)+mE(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=dE(()=>{let e=l.current,t=p();if(!e||!t||_E(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=b.useCallback(()=>{let e=l.current,t=p();if(!e||!t||_E(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=b.useRef(-1);return qC(()=>{let e=lE(h),t=l?.current;if(!t)return;let n=pE(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),qC(()=>{h()}),(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(` +`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,Z.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...hE.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),yE=b.createContext(void 0);function bE({props:e,states:t}){let n=b.useContext(yE),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var xE=sE();function SE(){let e=wC(xE);return e.$$material||e}function CE(e){return(0,Z.jsx)(EC,{...e,defaultTheme:xE,themeId:wy})}function wE(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var TE=e=>wE(e)&&e!==`classes`,$=UC({themeId:wy,defaultTheme:xE,rootShouldForwardProp:TE});function EE(e){return function(t){return(0,Z.jsx)(CE,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var DE=Nw;function OE(e){return Cw(e)}var kE=_S,AE=uE,jE=qC,ME=fE;function NE(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var PE=NE;function FE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function IE(e,t=!1){return e&&(FE(e.value)&&e.value!==``||t&&FE(e.defaultValue)&&e.defaultValue!==``)}function LE(e){return e.startAdornment}function RE(e){return NC(`MuiInputBase`,e)}var zE=PC(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),BE={transition:`none`};function VE(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var HE=e=>e.scrollTop,UE={},WE=[`all`],GE={};function KE(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function qE(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function JE(e,t){let{timeout:n,easing:r,style:i=UE}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function YE(e,t){let n=t??BE;return VE(e.motion?.reducedMotion,n)}function XE(e,t=WE,n=GE){let r=e.transitions?.create?.(t,n),i=YE(e);if(r===void 0)return i??UE;let a={transition:r};return i?{...a,...i}:a}var ZE,QE=`mui-auto-fill`,$E=`mui-auto-fill-cancel`,eD=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${kE(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},tD=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},nD=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return tT({root:[`root`,`color${kE(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${kE(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},RE,t)},rD=$(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:eD})(DE(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${zE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),iD=$(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:tD})(DE(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...XE(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${zE.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${zE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:$E,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:QE}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),aD=EE({[`@keyframes ${QE}`]:{from:{animationName:QE}},[`@keyframes ${$E}`]:{from:{animationName:$E}}}),oD=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:x,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:E,onClick:D,onFocus:O,onKeyDown:ee,onKeyUp:te,placeholder:ne,readOnly:k,renderSuffix:re,rows:ie,size:ae,slotProps:A={},slots:j={},startAdornment:M,type:oe=`text`,value:se,...ce}=n,le=_.value==null?se:_.value,{current:N}=b.useRef(le!=null),P=b.useRef(),ue=b.useCallback(e=>{},[]),de=AE(P,v,_.ref,ue),[fe,pe]=b.useState(!1),[me,he]=bE({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});me.focused=he?he.focused:fe,b.useEffect(()=>{!he&&u&&fe&&(pe(!1),T&&T())},[he,u,fe,T]);let ge=he&&he.onFilled,_e=he&&he.onEmpty,ve=b.useCallback(e=>{IE(e)?ge&&ge():_e&&_e()},[ge,_e]);jE(()=>{N&&ve({value:le})},[le,ve,N]),jE(()=>{if(!o)return;let e=P.current;if(!e)return;let t=ME(e),n=PE(t),r=n==null||n===t.body||n===t.documentElement;e===n?he&&he.onFocus?he.onFocus():pe(!0):r&&e.focus()},[o]);let ye=e=>{O&&O(e),_.onFocus&&_.onFocus(e),he&&he.onFocus?he.onFocus(e):pe(!0)},be=e=>{T&&T(e),_.onBlur&&_.onBlur(e),he&&he.onBlur?he.onBlur(e):pe(!1)},xe=(e,...t)=>{if(!N){let t=e.target||P.current;if(t==null)throw Error(Cy(1));ve({value:t.value})}_.onChange&&_.onChange(e,...t),E&&E(e,...t)};b.useEffect(()=>{ve(P.current)},[]);let Se=e=>{P.current&&e.currentTarget===e.target&&P.current.focus(),D&&D(e)},Ce=g,we=_;C&&Ce===`input`&&(we=ie?{type:void 0,minRows:ie,maxRows:ie,...we}:{type:void 0,maxRows:x,minRows:S,...we},Ce=vE);let F=e=>{ve(e.animationName===$E?P.current:{value:`x`})};b.useEffect(()=>{he&&he.setAdornedStart(!!M)},[he,M]);let Te={...n,color:me.color||`primary`,disabled:me.disabled,endAdornment:f,error:me.error,focused:me.focused,formControl:he,fullWidth:m,hiddenLabel:me.hiddenLabel,multiline:C,size:me.size,startAdornment:M,type:oe},I=nD(Te),Ee=j.root||rD,De=A.root||{},Oe=j.input||iD;return we={...we,...A.input},(0,Z.jsxs)(b.Fragment,{children:[!d&&typeof aD==`function`&&(ZE||=(0,Z.jsx)(aD,{})),(0,Z.jsxs)(Ee,{...De,ref:t,onClick:Se,...ce,...!cE(Ee)&&{ownerState:{...Te,...De.ownerState}},className:AC(I.root,De.className,s,k&&`MuiInputBase-readOnly`),children:[M,(0,Z.jsx)(yE.Provider,{value:null,children:(0,Z.jsx)(Oe,{"aria-invalid":me.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:me.disabled,id:h,onAnimationStart:F,name:w,placeholder:ne,readOnly:k,required:me.required,rows:ie,value:le,onKeyDown:ee,onKeyUp:te,type:oe,...we,...!cE(Oe)&&{as:Ce,ownerState:{...Te,...we.ownerState}},ref:de,className:AC(I.input,we.className,k&&`MuiInputBase-readOnly`),onBlur:be,onChange:xe,onFocus:ye})}),f,re?re({...me,startAdornment:M}):null]})]})});function sD(e){return NC(`MuiFilledInput`,e)}var cD={...zE,...PC(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function lD(e){return NC(`MuiFormLabel`,e)}var uD=PC(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function dD(e){return NC(`MuiInput`,e)}var fD={...zE,...PC(`MuiInput`,[`root`,`underline`,`input`])};function pD(e){return NC(`MuiMenuItem`,e)}var mD=PC(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function hD(e){return NC(`MuiNativeSelect`,e)}var gD=PC(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function _D(e){return NC(`MuiOutlinedInput`,e)}var vD={...zE,...PC(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function yD({theme:e,...t}){let n=`$$material`in e?e[wy]:void 0;return(0,Z.jsx)(jw,{...t,themeId:n?wy:void 0,theme:n||e})}var bD={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:xD,useColorScheme:SD,getInitColorSchemeScript:CD}=Kw({themeId:wy,theme:()=>sE({cssVariables:!0}),colorSchemeStorageKey:bD.colorSchemeStorageKey,modeStorageKey:bD.modeStorageKey,defaultColorScheme:{light:bD.defaultLightColorScheme,dark:bD.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:ST(e.palette,e.typography)};return t.unstable_sx=function(e){return gC({sx:e,theme:this})},t}}),wD=xD;function TD({theme:e,...t}){let n=b.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[wy]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,Z.jsx)(yD,{theme:n,...t}):(0,Z.jsx)(wD,{theme:e,...t})}function ED(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function DD(e){return NC(`MuiSvgIcon`,e)}PC(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var OD=e=>{let{color:t,fontSize:n,classes:r}=e;return tT({root:[`root`,t!==`inherit`&&`color${kE(t)}`,`fontSize${kE(n)}`]},DD,r)},kD=$(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${kE(n.color)}`],t[`fontSize${kE(n.fontSize)}`]]}})(DE(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...XE(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),AD=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=b.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=OD(m);return(0,Z.jsxs)(kD,{as:o,className:AC(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,Z.jsx)(`title`,{children:u}):null]})});AD.muiName=`SvgIcon`;function jD(e,t){function n(t,n){return(0,Z.jsx)(AD,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=AD.muiName,b.memo(b.forwardRef(n))}var MD=lE,ND=nT,PD=pE;function FD(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var ID=Dw;function LD(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=b.useRef(t!==void 0),[o,s]=b.useState(n);return[a?t:o,b.useCallback(e=>{a||s(e)},[])]}var RD=LD,zD=dE;function BD(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function VD(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{BD(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=AC(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=AC(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var HD={};function UD(e,t){let n=b.useRef(HD);return n.current===HD&&(n.current=e(t)),n}function WD(e){let t=UD(()=>GD(e)).current;return t.next=e,qC(t.effect),t}function GD(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var KD=b.createContext(null);function qD(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function JD(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=qD(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function YD(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,x=b.useContext(KD),S=x&&!x.isMounting?r:n,[C,w]=b.useState(()=>t?S?`exited`:`entered`:a||o?`unmounted`:`exited`),T=b.useRef(C);T.current=C,t&&C===`unmounted`&&(T.current=`exited`,w(`exited`));let E=b.useRef(t&&S),D=b.useRef(!1),O=b.useRef(null),ee=b.useRef(C),te=b.useRef(!1),ne=b.useRef(l),k=WD({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:x}),re=b.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),ie=b.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),ae=b.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=ie(()=>{r(),T.current=e,w(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=k.current.nodeRef.current,s=k.current.addEndListener,c=k.current.getAutoTimeout!==void 0,l=k.current.getAutoTimeout?.(),u=JD({currentStatus:t,isAppearing:te.current,timeout:k.current.timeout,autoTimeout:l}),d=ne.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};if(!o){p(0);return}if(s){f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i);return}p(d?0:u??0)},[ie,k]),A=b.useCallback(e=>{let t=k.current,n=t.parentGroup?t.parentGroup.isMounting:e;if(te.current=n,!e&&!t.enter){T.current=`entered`,w(`entered`);return}ne.current=t.reduceMotion,t.onEnter?.(n),T.current=`entering`,w(`entering`)},[k]),j=b.useCallback(()=>{let e=k.current;if(!e.exit){T.current=`exited`,w(`exited`);return}ne.current=e.reduceMotion,e.onExit?.(),T.current=`exiting`,w(`exiting`)},[k]),M=b.useCallback((e,t)=>{if(re(),t===`entering`){let t=k.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&HE(e)}A(e)}else j()},[re,A,j,k]);return qC(()=>(D.current=!0,E.current&&(E.current=!1,M(!0,`entering`)),()=>{D.current=!1,re()}),[re,M]),qC(()=>{if(!D.current)return;let e=T.current;t?e!==`entering`&&e!==`entered`&&M(!1,`entering`):e===`entering`||e===`entered`?M(!1,`exiting`):e===`exited`&&o&&(T.current=`unmounted`,w(`unmounted`))},[t,C,o,M]),qC(()=>{if(C===`unmounted`||ee.current===`unmounted`){ee.current=C;return}let e=ee.current!==C;e&&(ee.current=C);let t=k.current;C===`entering`?(e&&t.onEntering?.(te.current),O.current===null&&T.current===C&&ae(`entered`,`entering`)):C===`exiting`?(e&&t.onExiting?.(),O.current===null&&T.current===C&&ae(`exited`,`exiting`)):C===`entered`&&e?t.onEntered?.(te.current):C===`exited`&&e&&t.onExited?.()},[k,ae,C]),C===`unmounted`?null:(0,Z.jsx)(KD.Provider,{value:null,children:v(C,y)})}var XD=`(prefers-reduced-motion: reduce)`,ZD=0,QD=`0ms`,$D=()=>{},eO=()=>!1,tO=()=>!0,nO=()=>$D;function rO(e){let[t,n]=b.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),qC(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(XD),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var iO={...b}.useSyncExternalStore;function aO(e){let t=e?tO:eO,[n,r]=b.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[eO,nO];let t=window.matchMedia(XD);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return iO(r,n,t)}var oO=iO===void 0?rO:aO;function sO(e,t){let n=oO(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return b.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:ZD,delay:QD}:e}}),[r])}function cO(e,t,n){return e===void 0||cE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function lO(e,t,n){return typeof e==`function`?e(t,n):e}function uO(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))BD(n,e[n])&&(t[n]=e[n]);return t}function dO(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function fO(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=AC(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=uO({...i,...r}),s=dO(r),c=dO(i),l=t(o),u=AC(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function pO(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=lO(d[e],i),{props:{component:h,...g},internalRef:_}=fO({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=uE(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,cO(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function mO(e){return NC(`MuiPaper`,e)}PC(`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`.split(`.`));var hO=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return tT({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},mO,i)},gO=$(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(DE(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...XE(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),_O=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiPaper`}),r=SE(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=hO(u);return(0,Z.jsx)(gO,{as:a,ownerState:u,className:AC(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${iw(`#fff`,WT(o))}, ${iw(`#fff`,WT(o))})`}},...l.style}})});function vO(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function yO(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return b.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var bO={};function xO(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=b.useRef(null),m=l===!0,h=yO({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=b.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=b.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:b.useCallback((e=bO)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var SO=class e{static create(){return new e}static use(){let t=UD(e.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=wO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function CO(){return SO.use()}function wO(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var TO=[];function EO(e){b.useEffect(e,TO)}var DO=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function OO(){let e=UD(DO.create).current;return EO(e.disposeEffect),e}function kO(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=b.useState(!1),f=OO(),p=b.useRef(!1),m=b.useRef(c);m.current=c;let h=c!=null,g=AC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=AC(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,Z.jsx)(`span`,{className:g,style:_,children:(0,Z.jsx)(`span`,{className:v})})}var AO=PC(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),jO=550,MO={},NO=[],PO=()=>{};function FO(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function IO({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var LO=bx` 0% { transform: scale(0); opacity: 0.1; @@ -170,7 +170,7 @@ transform: scale(1); opacity: 0.3; } -`,LO=bx` +`,RO=bx` 0% { opacity: 1; } @@ -178,7 +178,7 @@ 100% { opacity: 0; } -`,RO=bx` +`,zO=bx` 0% { transform: scale(1); } @@ -190,25 +190,25 @@ 100% { transform: scale(1); } -`;function zO(e){if(e.motion.reducedMotion===`always`)return null;let t=yx` - &.${kO.rippleVisible} { - animation-name: ${IO}; - animation-duration: ${AO}ms; +`;function BO(e){if(e.motion.reducedMotion===`always`)return null;let t=yx` + &.${AO.rippleVisible} { + animation-name: ${LO}; + animation-duration: ${jO}ms; animation-timing-function: ${e.transitions.easing.easeInOut}; } - &.${kO.ripplePulsate} { + &.${AO.ripplePulsate} { animation-duration: ${e.transitions.duration.shorter}ms; } - & .${kO.childLeaving} { - animation-name: ${LO}; - animation-duration: ${AO}ms; + & .${AO.childLeaving} { + animation-name: ${RO}; + animation-duration: ${jO}ms; animation-timing-function: ${e.transitions.easing.easeInOut}; } - & .${kO.childPulsate} { - animation-name: ${RO}; + & .${AO.childPulsate} { + animation-name: ${zO}; animation-duration: 2500ms; animation-timing-function: ${e.transitions.easing.easeInOut}; animation-iteration-count: infinite; @@ -218,11 +218,11 @@ @media (prefers-reduced-motion: no-preference) { ${t} } - `:t}var BO=$(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),VO=$(OO,{name:`MuiTouchRipple`,slot:`Ripple`})` + `:t}var VO=$(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),HO=$(kO,{name:`MuiTouchRipple`,slot:`Ripple`})` opacity: 0; position: absolute; - &.${kO.rippleVisible} { + &.${AO.rippleVisible} { opacity: 0.3; transform: scale(1); } @@ -235,7 +235,7 @@ * it relies on this static 'opacity: 0' to disappear on blur instead of * lingering until removal. */ - & .${kO.child} { + & .${AO.child} { opacity: 1; display: block; width: 100%; @@ -244,19 +244,19 @@ background-color: currentColor; } - & .${kO.childLeaving} { + & .${AO.childLeaving} { opacity: 0; } - & .${kO.childPulsate} { + & .${AO.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; } - ${({theme:e})=>zO(e)} -`,HO=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiTouchRipple`}),r=oO(xE().motion.reducedMotion,!1),{center:i=!1,classes:a=jO,className:o,...s}=n,[c,l]=b.useState({items:MO,order:MO}),u=c.items,d=b.useRef(0),f=b.useRef(null),p=b.useRef(!1);TO(()=>(p.current=!0,()=>{p.current=!1})),b.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=b.useRef(!1),h=DO(),g=b.useRef(null),_=b.useRef(null),v=RD(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:PO(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=RD(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:PO(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),x=RD((e=jO,t=jO,n=NO)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=FO({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),S=RD(()=>{x(jO,{pulsate:!0})}),C=RD((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{C(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:PO(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});b.useImperativeHandle(t,()=>({pulsate:S,start:x,stop:C}),[S,x,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,Z.jsx)(BO,{className:AC(kO.root,a.root,o),ref:_,...s,children:T.map(e=>(0,Z.jsx)(VO,{classes:{ripple:AC(a.ripple,kO.ripple),rippleVisible:AC(a.rippleVisible,kO.rippleVisible),ripplePulsate:AC(a.ripplePulsate,kO.ripplePulsate),child:AC(a.child,kO.child),childLeaving:AC(a.childLeaving,kO.childLeaving),childPulsate:AC(a.childPulsate,kO.childPulsate)},timeout:r.shouldReduceMotion?0:AO,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function UO(e){return NC(`MuiButtonBase`,e)}var WO=PC(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),GO=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=eT({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},UO,a);return n&&!i&&r&&(o.root+=` ${r}`),o},KO=$(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${WO.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),qO=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,LinkComponent:g=`a`,nativeButton:_,onBlur:v,onClick:y,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:ee,onTouchEnd:te,onTouchMove:ne,onTouchStart:k,tabIndex:re=0,TouchRippleProps:ie,touchRippleRef:ae,type:A,...j}=n,M=!!(j.href||j.to),oe=!!j.formAction,se=s;se===`button`&&M&&(se=g);let ce=typeof se==`string`?se===`button`:h??!1,le=_??ce,N=SO(),P=kE(N.ref,ae),[ue,de]=b.useState(!1);(c||m)&&ue&&de(!1);let fe=RD(e=>{d&&!e.repeat&&ue&&e.key===` `&&N.stop(e,()=>{N.start(e)})}),pe=RD(e=>{d&&e.key===` `&&ue&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)})}),{getButtonProps:me,rootRef:he}=bO({nativeButton:le,nativeButtonProp:_,internalNativeButton:ce,allowInferredHostMismatch:M||typeof se==`string`,disabled:c,type:A,hasFormAction:oe,tabIndex:re,onBeforeKeyDown:fe,onBeforeKeyUp:pe}),{onClick:ge,onKeyDown:_e,onKeyUp:ve,...ye}=me({onClick:y,onKeyDown:T,onKeyUp:E});b.useImperativeHandle(r,()=>({focusVisible:()=>{de(!0),he.current.focus()}}),[he]);let be=N.shouldMount&&!l&&!c;b.useEffect(()=>{ue&&d&&!l&&N.pulsate()},[l,d,ue,N]);let xe=JO(N,`start`,D,u),Se=JO(N,`stop`,x,u),Ce=JO(N,`stop`,S,u),we=JO(N,`stop`,ee,u),F=JO(N,`stop`,e=>{ue&&e.preventDefault(),O&&O(e)},u),Te=JO(N,`start`,k,u),I=JO(N,`stop`,te,u),Ee=JO(N,`stop`,ne,u),De=JO(N,`stop`,e=>{_O(e.target)||de(!1),v&&v(e)},!1),Oe=RD(e=>{he.current||=e.currentTarget,!m&&_O(e.target)&&(de(!0),w&&w(e)),C&&C(e)}),ke={};M&&(ke.tabIndex=c?-1:re,c&&(ke[`aria-disabled`]=c),ke.type=A);let Ae=kE(t,he),je={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:re,focusVisible:ue},Me=GO(je);return(0,Z.jsxs)(KO,{as:se,className:AC(Me.root,o),ownerState:je,onBlur:De,onClick:ge,onContextMenu:Se,onFocus:Oe,onKeyDown:_e,onKeyUp:ve,onMouseDown:xe,onMouseLeave:F,onMouseUp:we,onDragLeave:Ce,onTouchEnd:I,onTouchMove:Ee,onTouchStart:Te,ref:Ae,...M?ke:ye,...j,children:[a,be?(0,Z.jsx)(HO,{ref:P,center:i,...ie}):null]})});function JO(e,t,n,r=!1){return RD(i=>(n&&n(i),r||e[t](i),!0))}function YO(e){return typeof e.main==`string`}function XO(e,t=[]){if(!YO(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function ZO(e=[]){return([,t])=>t&&XO(t,e)}function QO(e){return NC(`MuiAlert`,e)}var $O=PC(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]);function ek(e){return NC(`MuiCircularProgress`,e)}PC(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var tk=44,nk=bx` + ${({theme:e})=>BO(e)} +`,UO=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiTouchRipple`}),r=sO(SE().motion.reducedMotion,!1),{center:i=!1,classes:a=MO,className:o,...s}=n,[c,l]=b.useState({items:NO,order:NO}),u=c.items,d=b.useRef(0),f=b.useRef(null),p=b.useRef(!1);EO(()=>(p.current=!0,()=>{p.current=!1})),b.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=b.useRef(!1),h=OO(),g=b.useRef(null),_=b.useRef(null),v=zD(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:FO(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=zD(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:FO(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),x=zD((e=MO,t=MO,n=PO)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=IO({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),S=zD(()=>{x(MO,{pulsate:!0})}),C=zD((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{C(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:FO(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});b.useImperativeHandle(t,()=>({pulsate:S,start:x,stop:C}),[S,x,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,Z.jsx)(VO,{className:AC(AO.root,a.root,o),ref:_,...s,children:T.map(e=>(0,Z.jsx)(HO,{classes:{ripple:AC(a.ripple,AO.ripple),rippleVisible:AC(a.rippleVisible,AO.rippleVisible),ripplePulsate:AC(a.ripplePulsate,AO.ripplePulsate),child:AC(a.child,AO.child),childLeaving:AC(a.childLeaving,AO.childLeaving),childPulsate:AC(a.childPulsate,AO.childPulsate)},timeout:r.shouldReduceMotion?0:jO,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function WO(e){return NC(`MuiButtonBase`,e)}var GO=PC(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),KO=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=tT({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},WO,a);return n&&!i&&r&&(o.root+=` ${r}`),o},qO=$(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${GO.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),JO=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,LinkComponent:g=`a`,nativeButton:_,onBlur:v,onClick:y,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:ee,onTouchEnd:te,onTouchMove:ne,onTouchStart:k,tabIndex:re=0,TouchRippleProps:ie,touchRippleRef:ae,type:A,...j}=n,M=!!(j.href||j.to),oe=!!j.formAction,se=s;se===`button`&&M&&(se=g);let ce=typeof se==`string`?se===`button`:h??!1,le=_??ce,N=CO(),P=AE(N.ref,ae),[ue,de]=b.useState(!1);(c||m)&&ue&&de(!1);let fe=zD(e=>{d&&!e.repeat&&ue&&e.key===` `&&N.stop(e,()=>{N.start(e)})}),pe=zD(e=>{d&&e.key===` `&&ue&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)})}),{getButtonProps:me,rootRef:he}=xO({nativeButton:le,nativeButtonProp:_,internalNativeButton:ce,allowInferredHostMismatch:M||typeof se==`string`,disabled:c,type:A,hasFormAction:oe,tabIndex:re,onBeforeKeyDown:fe,onBeforeKeyUp:pe}),{onClick:ge,onKeyDown:_e,onKeyUp:ve,...ye}=me({onClick:y,onKeyDown:T,onKeyUp:E});b.useImperativeHandle(r,()=>({focusVisible:()=>{de(!0),he.current.focus()}}),[he]);let be=N.shouldMount&&!l&&!c;b.useEffect(()=>{ue&&d&&!l&&N.pulsate()},[l,d,ue,N]);let xe=YO(N,`start`,D,u),Se=YO(N,`stop`,x,u),Ce=YO(N,`stop`,S,u),we=YO(N,`stop`,ee,u),F=YO(N,`stop`,e=>{ue&&e.preventDefault(),O&&O(e)},u),Te=YO(N,`start`,k,u),I=YO(N,`stop`,te,u),Ee=YO(N,`stop`,ne,u),De=YO(N,`stop`,e=>{vO(e.target)||de(!1),v&&v(e)},!1),Oe=zD(e=>{he.current||=e.currentTarget,!m&&vO(e.target)&&(de(!0),w&&w(e)),C&&C(e)}),ke={};M&&(ke.tabIndex=c?-1:re,c&&(ke[`aria-disabled`]=c),ke.type=A);let Ae=AE(t,he),je={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:re,focusVisible:ue},Me=KO(je);return(0,Z.jsxs)(qO,{as:se,className:AC(Me.root,o),ownerState:je,onBlur:De,onClick:ge,onContextMenu:Se,onFocus:Oe,onKeyDown:_e,onKeyUp:ve,onMouseDown:xe,onMouseLeave:F,onMouseUp:we,onDragLeave:Ce,onTouchEnd:I,onTouchMove:Ee,onTouchStart:Te,ref:Ae,...M?ke:ye,...j,children:[a,be?(0,Z.jsx)(UO,{ref:P,center:i,...ie}):null]})});function YO(e,t,n,r=!1){return zD(i=>(n&&n(i),r||e[t](i),!0))}function XO(e){return typeof e.main==`string`}function ZO(e,t=[]){if(!XO(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function QO(e=[]){return([,t])=>t&&ZO(t,e)}function $O(e){return NC(`MuiAlert`,e)}var ek=PC(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]);function tk(e){return NC(`MuiCircularProgress`,e)}PC(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var nk=44,rk=bx` 0% { transform: rotate(0deg); } @@ -264,7 +264,7 @@ 100% { transform: rotate(360deg); } -`,rk=bx` +`,ik=bx` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -279,11 +279,11 @@ stroke-dasharray: 1px, 200px; stroke-dashoffset: -126px; } -`,ik=typeof nk==`string`?null:yx` - animation: ${nk} 1.4s linear infinite; - `,ak=typeof rk==`string`?null:yx` - animation: ${rk} 1.4s ease-in-out infinite; - `,ok=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return eT({root:[`root`,n,`color${OE(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},ek,t)},sk=$(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${OE(n.color)}`]]}})(EE(({theme:e})=>{let t=JE(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...YE(e,`transform`)}},{props:{variant:`indeterminate`},style:ik||{animation:`${nk} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),ck=$(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),lk=$(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(EE(({theme:e})=>{let t=JE(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...YE(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:ak||{animation:`${rk} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),uk=$(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(EE(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),dk=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=ok(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((tk-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,Z.jsx)(sk,{className:AC(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,Z.jsxs)(ck,{className:v.svg,ownerState:_,viewBox:`${tk/2} ${tk/2} ${tk} ${tk}`,children:[o?(0,Z.jsx)(uk,{className:v.track,ownerState:_,cx:tk,cy:tk,r:(tk-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,Z.jsx)(lk,{className:v.circle,style:y,ownerState:_,cx:tk,cy:tk,r:(tk-d)/2,fill:`none`,strokeWidth:d})]})})});function fk(e){return NC(`MuiIconButton`,e)}var pk=PC(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),mk=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return eT({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${OE(r)}`,i&&`edge${OE(i)}`,`size${OE(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},fk,t)},hk=$(qO,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${OE(n.color)}`],n.edge&&t[`edge${OE(n.edge)}`],t[`size${OE(n.size)}`]]}})(EE(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...YE(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),EE(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${pk.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${pk.loading}`]:{color:`transparent`}}))),gk=$(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),_k=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=FD(u),h=f??(0,Z.jsx)(dk,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=mk(g);return(0,Z.jsxs)(hk,{id:d?m:u,className:AC(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,Z.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,Z.jsx)(gk,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),vk=AD((0,Z.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),yk=AD((0,Z.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),bk=AD((0,Z.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),xk=AD((0,Z.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),Sk=AD((0,Z.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),Ck=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return eT({root:[`root`,`color${OE(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},QO,i)},wk=$(gO,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(EE(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(ZO([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${$O.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(ZO([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${$O.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(ZO([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Tk=$(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Ek=$(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Dk=$(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Ok={success:(0,Z.jsx)(vk,{fontSize:`inherit`}),warning:(0,Z.jsx)(yk,{fontSize:`inherit`}),error:(0,Z.jsx)(bk,{fontSize:`inherit`}),info:(0,Z.jsx)(xk,{fontSize:`inherit`})},kk=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=Ok,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=Ck(_),y={slots:m,slotProps:p},[b,x]=fO(`root`,{ref:t,shouldForwardComponentProp:!0,className:AC(v.root,a),elementType:wk,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=fO(`icon`,{className:v.icon,elementType:Tk,externalForwardedProps:y,ownerState:_}),[w,T]=fO(`message`,{className:v.message,elementType:Ek,externalForwardedProps:y,ownerState:_}),[E,D]=fO(`action`,{className:v.action,elementType:Dk,externalForwardedProps:y,ownerState:_}),[O,ee]=fO(`closeButton`,{elementType:_k,externalForwardedProps:y,ownerState:_}),[te,ne]=fO(`closeIcon`,{elementType:Sk,externalForwardedProps:y,ownerState:_});return(0,Z.jsxs)(b,{...x,children:[c===!1?null:(0,Z.jsx)(S,{...C,children:c||l[f]||Ok[f]}),(0,Z.jsx)(w,{...T,children:i}),r==null?null:(0,Z.jsx)(E,{...D,children:r}),r==null&&u?(0,Z.jsx)(E,{...D,children:(0,Z.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...ee,children:(0,Z.jsx)(te,{fontSize:`small`,...ne})})}):null]})});function Ak(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function jk(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:cO(n,r),{props:s,internalRef:c}=dO({...a,externalSlotProps:o}),l=lE(c,o?.ref,e.additionalProps?.ref);return sO(t,{...s,ref:l},r)}function Mk(e){return e?.props?.ref||null}var Nk=u(_(),1);function Pk(e){return typeof e==`function`?e():e}var Fk=b.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=b.useState(null),s=lE(b.isValidElement(n)?Mk(n):null,t);if(qC(()=>{i||o(Pk(r)||document.body)},[r,i]),qC(()=>{if(a&&!i)return PD(t,a),()=>{PD(t,null)}},[t,a,i]),i){if(b.isValidElement(n)){let e={ref:s};return b.cloneElement(n,e)}return n}return a&&Nk.createPortal(n,a)}),Ik=AD((0,Z.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),Lk={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Rk={opacity:0,visibility:`hidden`},zk=b.forwardRef(function(e,t){let n=xE(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=oO(n.motion.reducedMotion,s),x=b.useRef(null),S=kE(x,Mk(o),t),C=GE(x,f),w=GE(x,(e,t)=>{y.shouldReduceMotion||VE(e);let r=qE({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),T=GE(x,d),E=GE(x,h),D=GE(x,e=>{let t=qE({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),O=GE(x,e=>{e.style.transition=``,m&&m(e)});return(0,Z.jsx)(JD,{appear:a,in:l,nodeRef:x,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:i?e=>{i(x.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=KE(e,l,Lk,Rk,g,o.props.style);return b.cloneElement(o,{style:r,ref:S,...n})}})});function Bk(e){return NC(`MuiBackdrop`,e)}PC(`MuiBackdrop`,[`root`,`invisible`]);var Vk=e=>{let{classes:t,invisible:n}=e;return eT({root:[`root`,n&&`invisible`]},Bk,t)},Hk=$(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Uk=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=Vk(f),m={component:a,slots:l,slotProps:c},[h,g]=fO(`root`,{elementType:Hk,externalForwardedProps:m,className:AC(p.root,i),ownerState:f}),[_,v]=fO(`transition`,{elementType:zk,externalForwardedProps:m,ownerState:f});return(0,Z.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,Z.jsx)(h,{...g,ref:t,children:r})})}),Wk=PC(`MuiBox`,[`root`]),Gk=jC({themeId:wy,defaultTheme:oE(),defaultClassName:Wk.root,generateClassName:OC.generate});function Kk(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function qk(e){let t=dE(e);return t.body===e?fE(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Jk(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Yk(e){return parseFloat(fE(e).getComputedStyle(e).paddingRight)||0}function Xk(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Zk(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Xk(e);t&&n&&Jk(e,i)})}function Qk(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function $k(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(qk(r)){let e=Kk(fE(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${Yk(r)+e}px`;let t=dE(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${Yk(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=dE(r).body;else{let t=r.parentElement,n=fE(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function eA(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var tA=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Jk(e.modalRef,!1);let r=eA(t);Zk(t,e.mount,e.modalRef,r,!0);let i=Qk(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=Qk(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=$k(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=Qk(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Jk(e.modalRef,t),Zk(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Jk(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},nA=Ak,rA=`data-mui-focusable`;function iA(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${rA}]`):null}var aA=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function oA(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function sA(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function cA(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||sA(e))}function lA(e){let t=[],n=[];return Array.from(e.querySelectorAll(aA)).forEach((e,r)=>{let i=oA(e);i===-1||!cA(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,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 uA(){return!0}function dA(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=lA,isEnabled:o=uA,open:s}=e,c=b.useRef(!1),l=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),m=b.useRef(null),h=lE(Mk(t),m),g=b.useRef(null);b.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),b.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=NE(dE(m.current)),t=iA(m.current)??m.current;return nA(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),b.useEffect(()=>{if(!s||!m.current)return;let e=dE(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=NE(e);if(n===null)return;let s=iA(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(nA(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>oA(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=NE(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(nA(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=NE(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),b.cloneElement(t,{ref:h,onFocus:_}),(0,Z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function fA(e){return typeof e==`function`?e():e}function pA(e){return e?e.props.hasOwnProperty(`in`):!1}var mA=()=>{},hA=new tA;function gA(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=b.useRef({}),d=b.useRef(null),f=b.useRef(null),p=lE(f,l),[m,h]=b.useState(!c),g=pA(o),_=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(_=!1);let v=()=>dE(d.current),y=()=>(u.current.modalRef=f.current,u.current.mount=d.current,u.current),x=()=>{hA.mount(y(),{disableScrollLock:n}),f.current&&(f.current.scrollTop=0)},S=uE(()=>{let e=fA(t)||v().body;hA.add(y(),e),f.current&&x()}),C=()=>hA.isTopModal(y()),w=uE(e=>{d.current=e,e&&(c&&C()?x():f.current&&Jk(f.current,_))}),T=b.useCallback(()=>{hA.remove(y(),_)},[_]);b.useEffect(()=>()=>{T()},[T]),b.useEffect(()=>{c?S():(!g||!r)&&T()},[c,T,g,r,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=lO(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:p}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:c}},getTransitionProps:()=>({onEnter:TD(()=>{h(!1),i&&i()},o?.props.onEnter??mA),onExited:TD(()=>{h(!0),a&&a(),r&&T()},o?.props.onExited??mA)}),rootRef:p,portalRef:w,isTopModal:C,exited:m,hasTransition:g}}function _A(e){return NC(`MuiModal`,e)}PC(`MuiModal`,[`root`,`hidden`,`backdrop`]);var vA=e=>{let{open:t,exited:n,classes:r}=e;return eT({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},_A,r)},yA=$(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(EE(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),bA=$(Uk,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),xA=b.forwardRef(function(e,t){let n=DE({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:x={},slots:S={},theme:C,...w}=n,T={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:E,getBackdropProps:D,getTransitionProps:O,portalRef:ee,isTopModal:te,exited:ne,hasTransition:k}=gA({...T,rootRef:t}),re={...T,exited:ne},ie=vA(re),ae={};if(o.props.tabIndex===void 0&&(ae.tabIndex=`-1`),k){let{onEnter:e,onExited:t}=O();ae.onEnter=e,ae.onExited=t}let A={slots:S,slotProps:x},[j,M]=fO(`root`,{ref:t,elementType:yA,externalForwardedProps:{...A,...w,component:c},getSlotProps:E,ownerState:re,className:AC(i,ie?.root,!re.open&&re.exited&&ie?.hidden)}),[oe,se]=fO(`backdrop`,{elementType:bA,externalForwardedProps:A,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ie?.backdrop,ownerState:re});return!h&&!y&&(!k||ne)?null:(0,Z.jsx)(Fk,{ref:ee,container:s,disablePortal:d,children:(0,Z.jsxs)(j,{...M,children:[m?null:(0,Z.jsx)(oe,{...se}),(0,Z.jsx)(dA,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:te,open:y,children:b.cloneElement(o,ae)})]})})}),SA=PC(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),CA=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=eT({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${OE(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},oD,t);return{...t,...c}},wA=$(nD,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...$E(e,t),!n.disableUnderline&&t.underline]}})(EE(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...YE(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${sD.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${sD.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...YE(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${sD.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${sD.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...YE(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${sD.disabled}, .${sD.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${sD.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:12}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),TA=$(rD,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:eD})(EE(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),EA=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=CA(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?Vx(h,l):h,_=u.root??wA,v=u.input??TA;return(0,Z.jsx)(aD,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});EA.muiName=`Input`;function DA(e){return NC(`MuiFormControl`,e)}PC(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var OA=e=>{let{classes:t,margin:n,fullWidth:r}=e;return eT({root:[`root`,n!==`none`&&`margin${OE(n)}`,r&&`fullWidth`]},DA,t)},kA=$(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${OE(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),AA=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=OA(_),[y,x]=b.useState(()=>{let e=!1;return r&&b.Children.forEach(r,t=>{if(!MD(t,[`Input`,`Select`]))return;let n=MD(t,[`Select`])?t.props.input:t;n&&IE(n.props)&&(e=!0)}),e}),[S,C]=b.useState(()=>{let e=!1;return r&&b.Children.forEach(r,t=>{MD(t,[`Input`,`Select`])&&(FE(t.props,!0)||FE(t.props.inputProps,!0))&&(e=!0)}),e}),[w,T]=b.useState(!1);s&&w&&T(!1);let E=l!==void 0&&!s?l:w,D;b.useRef(!1);let O=b.useCallback(()=>{C(!0)},[]),ee=b.useCallback(()=>{C(!1)},[]),te=b.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:a,disabled:s,error:c,filled:S,focused:E,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:ee,onFilled:O,registerEffect:D,required:p,variant:h}),[y,a,s,c,S,E,u,d,D,ee,O,p,m,h]);return(0,Z.jsx)(vE.Provider,{value:te,children:(0,Z.jsx)(kA,{as:o,ownerState:_,className:AC(v.root,i),ref:t,...g,children:r})})}),jA=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return eT({root:[`root`,`color${OE(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},cD,t)},MA=$(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(EE(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{color:t},style:{[`&.${lD.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lD.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),NA=$(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(EE(({theme:e})=>({[`&.${lD.error}`]:{color:(e.vars||e).palette.error.main}}))),PA=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=yE({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=jA(m);return(0,Z.jsxs)(MA,{as:o,ownerState:m,className:AC(h.root,i),ref:t,...f,children:[r,p.required&&(0,Z.jsxs)(NA,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function FA(e){return`scale(${e}, ${e**2})`}var IA={entering:{opacity:1,transform:FA(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:FA(.75)},exited:{opacity:0,transform:FA(.75)}},LA={opacity:0,transform:FA(.75),visibility:`hidden`},RA=b.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=b.useRef(null),v=xE(),y=oO(v.motion.reducedMotion,a),x=b.useRef(null),S=kE(x,Mk(i),t),C=GE(x,u),w=GE(x,(e,t)=>{y.shouldReduceMotion||VE(e);let{duration:n,delay:r,easing:i}=qE({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),T=GE(x,l),E=GE(x,p),D=GE(x,e=>{let{duration:t,delay:n,easing:r}=qE({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=FA(.75),d&&d(e)}),O=GE(x,e=>{e.style.transition=``,f&&f(e)});return(0,Z.jsx)(JD,{appear:r,in:s,nodeRef:x,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:n?e=>{n(x.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=KE(e,s,IA,LA,m,i.props.style);return b.cloneElement(i,{style:r,ref:S,...n})}})});RA&&(RA.muiSupportAuto=!0);function zA(e){return NC(`MuiInputLabel`,e)}var BA=PC(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),VA=e=>{let{classes:t,disableUnderline:n}=e,r=eT({root:[`root`,!n&&`underline`],input:[`input`]},uD,t);return{...t,...r}},HA=$(nD,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...$E(e,t),!n.disableUnderline&&t.underline]}})(EE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${BA.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...YE(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${dD.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${dD.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...YE(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${dD.disabled}, .${dD.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${dD.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),UA=$(rD,{name:`MuiInput`,slot:`Input`,overridesResolver:eD})({}),WA=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=VA(n),p={root:{ownerState:{disableUnderline:r}}},m=c?Vx(c,p):p,h=l.root??HA,g=l.input??UA;return(0,Z.jsx)(aD,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});WA.muiName=`Input`;var GA=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=eT({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${OE(r)}`,o],asterisk:[s&&`asterisk`]},zA,t);return{...t,...c}},KA=$(PA,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${lD.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(EE(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{...YE(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),qA=b.forwardRef(function(e,t){let n=DE({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=yE({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=GA(f);return(0,Z.jsx)(KA,{"data-shrink":d,ref:t,className:AC(p.root,s),...c,ownerState:f,classes:p})}),JA=b.createContext({});function YA(e){return NC(`MuiList`,e)}PC(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var XA=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return eT({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},YA,t)},ZA=$(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),QA=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=b.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=XA(d);return(0,Z.jsx)(JA.Provider,{value:u,children:(0,Z.jsxs)(ZA,{as:a,className:AC(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),$A=PC(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),ej=PC(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),tj=b.createContext(void 0);function nj(){let e=b.useContext(tj);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var rj=Object.is;function ij(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!rj(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var aj=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function oj(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=bj,wrap:o=!0}=e,[s,c]=b.useState(t),[l,u]=b.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=b.useRef(null),p=b.useRef(new Map),[m,h]=b.useState(0),g=b.useMemo(()=>_j(p.current),[m]),_=cj(d,g,a,n),v=b.useRef(_);v.current=_;let y=b.useCallback(()=>{let e=_j(p.current);return mj(e,cj(v.current,e,a,n))},[n,a]),x=b.useCallback(()=>p.current,[]),S=uE(e=>{ij(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),C=uE(e=>{p.current.delete(e)&&h(e=>e+1)}),w=uE(e=>{c(e)}),T=b.useCallback(e=>v.current===e,[]),E=b.useCallback((e,t,n,r)=>{let i=fj(vj(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=b.useCallback(e=>({onFocus:e=>{let t=vj(p.current),n=gj(t,e.target);n!==-1&&c(t[n].id)},onKeyDown:e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!aj.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,n=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,n=`ArrowLeft`);let a=vj(p.current),s=ME(dE(f.current)),c=s===f.current,l=dj(a,s,v.current),u=`next`;switch(e.key){case t:u=`previous`,e.preventDefault(),c&&(l=a.length);break;case n:e.preventDefault(),c&&(l=-1);break;case`Home`:e.preventDefault(),l=-1;break;case`End`:e.preventDefault(),u=`previous`,l=a.length;break;default:return}E(l,u,o)},ref:Cj(e,e=>{f.current=e})}),[E,i,r,o]),O=b.useCallback(e=>{let t=vj(p.current),n=ME(dE(f.current)),r=n===f.current?-1:dj(t,n,v.current);return E(r,`next`,!0,e)?.id??null},[E]);return b.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:x,isItemActive:T,registerItem:S,setActiveItemId:w,unregisterItem:C}),[_,O,y,D,x,T,S,w,C])}function sj(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=nj(),i=b.useRef(null),a=b.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=b.useRef(a);o.current=a;let s=b.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=lE(e.ref,s);return qC(()=>{i.current&&n({...a,element:i.current})},[a,n]),qC(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function cj(e,t,n,r){return e==null?uj(t,n,r):lj(e,t,n)}function lj(e,t,n){let r=hj(t,e);return r===-1?pj(t,n):n(t[r])?t[r].id:fj(t,r,`next`,!1,n)?.id??null}function uj(e,t,n){let r=n?.(e);if(r!=null){let n=mj(e,r);if(n&&t(n))return n.id}return pj(e,t)}function dj(e,t,n){if(t){let n=gj(e,t);if(n!==-1)return n}return hj(e,n)}function fj(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=yj(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=yj(s,a,n,r);else return t}return null}function pj(e,t){return e.find(e=>t(e))?.id??null}function mj(e,t){return t==null?null:e.find(e=>e.id===t)??null}function hj(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function gj(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function _j(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(xj).sort((e,t)=>Sj(e.element,t.element)),r=t.filter(e=>!xj(e));return[...n,...r]}function vj(e){return _j(e).filter(xj)}function yj(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function bj(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function xj(e){return e.element!=null&&e.element.isConnected}function Sj(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Cj(...e){return t=>{e.forEach(e=>{PD(e??null,t)})}}var wj=Kk;function Tj(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function Ej(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function Dj(e){return e==null||typeof e==`string`&&!e.trim()}function Oj(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var kj=b.createContext(null);function Aj(){return b.useContext(kj)}var jj=kj.Provider,Mj=b.createContext(void 0);function Nj(){let e=b.useContext(Mj);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function Pj(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function Fj(e,t){if(t===void 0)return!0;let n=Pj(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function Ij(e,t){return Fj(e,t)?bj(e):!1}function Lj(e,t){Tj(e,t)}var Rj=b.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=b.useRef(null),p=b.useRef(!1),[m,h]=b.useState(!1),g=Aj(),_=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=oj({activeItemId:void 0,getDefaultActiveItemId:b.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&bj(e))?.id??e.find(e=>bj(e))?.id??null:e.find(e=>bj(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:x,getActiveItem:S,getContainerProps:C,getItemMap:w}=v,T=RD((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=S();if(e?.element){let t=Array.from(w().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),Lj(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});AE(()=>{if(!r&&!i){p.current=!1,h(!1);return}T()},[y,i,r,T]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight{if(!f.current)return null;let e=NE(jE(f.current));return e&&nA(f.current,e)?e:T(!0)}}),[T]);let E=C(),D=kE(f,E.ref,t),O=b.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),ee=RD(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(E.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=NE(jE(f.current)),a=i&&!t.repeating&&Fj(i,t);t.previousKeyMatched&&(a||x(e=>Ij(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)});return(0,Z.jsx)(QA,{role:`menu`,ref:D,className:o,onKeyDown:ee,onFocus:E.onFocus,tabIndex:-1,...d,children:(0,Z.jsx)(Mj.Provider,{value:O,children:(0,Z.jsx)(tj.Provider,{value:v,children:a})})})});function zj(e){return NC(`MuiPopover`,e)}PC(`MuiPopover`,[`root`,`paper`]);function Bj(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Vj(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Hj(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Uj(e){return typeof e==`function`?e():e}var Wj=e=>{let{classes:t}=e;return eT({root:[`root`],paper:[`paper`]},zj,t)},Gj=$(xA,{name:`MuiPopover`,slot:`Root`})({}),Kj=$(gO,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),qj=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...x}=n,S=b.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},w=Wj(C),T=b.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Uj(i),t=(e&&e.nodeType===1?e:jE(S.current).body).getBoundingClientRect();return{top:t.top+Bj(t,a.vertical),left:t.left+Vj(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),E=b.useCallback(e=>({vertical:Bj(e,_.vertical),horizontal:Vj(e,_.horizontal)}),[_.horizontal,_.vertical]),D=b.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if(s===`none`)return{top:null,left:null,transformOrigin:Hj(n)};let r=T(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=ND(Uj(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&ad){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&of){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:Hj(n)}},[i,s,T,E,p]),[O,ee]=b.useState(m),te=b.useCallback(()=>{let e=S.current;if(!e)return;let t=D(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ee(!0)},[D]);b.useEffect(()=>(y&&window.addEventListener(`scroll`,te),()=>window.removeEventListener(`scroll`,te)),[i,y,te]);let ne=()=>{te()},k=()=>{ee(!1)};b.useEffect(()=>{m&&te()}),b.useImperativeHandle(r,()=>m?{updatePosition:()=>{te()}}:null,[m,te]),b.useEffect(()=>{if(!m)return;let e=jD(()=>{te()}),t=ND(Uj(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,te]);let re=v,ie={slots:h,slotProps:g},[ae,A]=fO(`transition`,{elementType:RA,externalForwardedProps:ie,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),ne()},onExited:t=>{e.onExited?.(t),k()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!ae.muiSupportAuto&&(re=void 0);let j=u||(i?jE(Uj(i)).body:void 0),[M,{slots:oe,slotProps:se,...ce}]=fO(`root`,{ref:t,elementType:Gj,externalForwardedProps:{...ie,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:BD(typeof g.backdrop==`function`?g.backdrop(C):g.backdrop,{invisible:!0})},container:j,open:m},ownerState:C,className:AC(w.root,l)}),[le,N]=fO(`paper`,{ref:S,className:w.paper,elementType:Kj,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:C});return(0,Z.jsx)(M,{...ce,...!sE(M)&&{slots:oe,slotProps:se,disableAutoFocus:d,disableScrollLock:y},children:(0,Z.jsx)(ae,{...A,timeout:re,children:(0,Z.jsx)(le,{...N,children:c})})})});function Jj(e){return NC(`MuiMenu`,e)}PC(`MuiMenu`,[`root`,`paper`,`list`]);var Yj={vertical:`top`,horizontal:`right`},Xj={vertical:`top`,horizontal:`left`},Zj=e=>{let{classes:t}=e;return eT({root:[`root`],paper:[`paper`],list:[`list`]},Jj,t)},Qj=$(qj,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),$j=$(Kj,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),eM=$(Rj,{name:`MuiMenu`,slot:`List`})({outline:0}),tM=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=yw(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=Zj(g),v=r&&c,y=v&&!o,x=b.useRef(null),S=(e,t)=>{x.current&&(x.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&x.current.focusInitialTarget?.())},C=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},w={slots:f,slotProps:p},T=jk({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[E,D]=fO(`paper`,{className:_.paper,elementType:$j,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[O,ee]=fO(`list`,{className:_.list,elementType:eM,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{C(t),e.onKeyDown?.(t)}}),ownerState:g}),te=typeof p.transition==`function`?p.transition(g):p.transition;return(0,Z.jsx)(Qj,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?Yj:Xj,slots:{root:f.root,paper:E,backdrop:f.backdrop,transition:f.transition},slotProps:{root:T,paper:D,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...te,onEntering:(...e)=>{S(...e),te?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,Z.jsx)(O,{actions:x,autoFocus:v,autoFocusItem:y,variant:d,...ee,children:i})})}),nM=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rM=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=eT({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},fD,o);return{...o,...s}},iM=$(qO,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:nM})(EE(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${pD.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${pD.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${pD.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${pD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${SA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${SA.inset}`]:{marginLeft:52},[`& .${ej.root}`]:{marginTop:0,marginBottom:0},[`& .${ej.inset}`]:{paddingLeft:36},[`& .${$A.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${$A.root} svg`]:{fontSize:`1.25rem`}}}]}))),aM=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=Aj(),m=b.useContext(JA),h=b.useMemo(()=>({dense:a||m.dense||!1,disableGutters:s}),[m.dense,a,s]),g=Nj(),_=FD(),v=g.suppressInitialFocusVisible,y=g.itemsFocusableWhenDisabled,x=b.useRef(null);AE(()=>{r&&x.current&&Tj(x.current,p)},[r]);let S={...n,dense:h.dense,divider:o,disableGutters:s},C=rM(n),{root:w,...T}=C,E=sj({id:_,ref:t,disabled:n.disabled,focusableWhenDisabled:y,selected:n.selected}),D=kE(x,E.ref),O;return u===void 0?g.variant===`selectedMenu`?O=E.tabIndex:(!n.disabled||y)&&(O=-1):O=u,(0,Z.jsx)(JA.Provider,{value:h,children:(0,Z.jsx)(iM,{ref:D,role:l,tabIndex:O,component:i,internalNativeButton:!1,focusableWhenDisabled:y,suppressFocusVisible:v,focusVisibleClassName:AC(C.focusVisible,c),className:AC(C.root,d),...f,ownerState:S,classes:T})})}),oM=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return eT({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${OE(n)}`,a&&`iconOpen`,r&&`disabled`]},mD,t)},sM=$(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${hD.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:`filled`},style:{"&&&":{paddingRight:32}}},{props:{variant:`outlined`},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),cM=$(sM,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:wE,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hD.multiple}`]:t.multiple}]}})({}),lM=$(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${hD.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),uM=$(lM,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${OE(n.variant)}`],n.open&&t.iconOpen]}})({}),dM=b.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=oM(l);return(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(cM,{ownerState:l,className:AC(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,Z.jsx)(uM,{as:a,ownerState:l,className:u.icon})]})}),fM,pM=$(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:wE})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),mM=$(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:wE})(EE(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,...YE(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,...YE(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,...YE(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function hM(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,Z.jsx)(pM,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,Z.jsx)(mM,{ownerState:c,children:s?(0,Z.jsx)(`span`,{children:i}):fM||=(0,Z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}var gM=e=>{let{classes:t}=e,n=eT({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},gD,t);return{...t,...n}},_M=$(nD,{shouldForwardProp:e=>wE(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:$E})(EE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${_D.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${_D.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${_D.focused} .${_D.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ZO()).map(([t])=>({props:{color:t},style:{[`&.${_D.focused} .${_D.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_D.error} .${_D.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${_D.disabled} .${_D.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),vM=$(hM,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(EE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),yM=$(rD,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:eD})(EE(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),bM=b.forwardRef(function(e,t){let n=DE({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=gM(n),[p,m]=yE({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??_M,_=c.input??yM,[v,y]=fO(`notchedOutline`,{elementType:vM,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,Z.jsxs)(b.Fragment,{children:[a,` `,`*`]}):a}});return(0,Z.jsx)(aD,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,Z.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});bM.muiName=`Input`;function xM(e){return NC(`MuiSelect`,e)}var SM=PC(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]);function CM(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function wM(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return b.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):b.isValidElement(e)&&(t+=wM(e.props.children))}),t}function TM(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;ne.label[0]===t&&e.label[1]===t)}function DM(e,t){let n=[],r=-1;for(let i=0;i=n.left-kM&&e.clientX<=n.right+kM&&e.clientY>=n.top-kM&&e.clientY<=n.bottom+kM}var RM=$(sM,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${SM.select}`]:t.select},{[`&.${SM.select}`]:t[n.variant]},{[`&.${SM.error}`]:t.error},{[`&.${SM.multiple}`]:t.multiple}]}})({[`&.${SM.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),zM=$(lM,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),BM=$(`input`,{shouldForwardProp:e=>CE(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),VM=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return eT({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},xM,t)},HM=b.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:x,onClose:S,onFocus:C,onKeyDown:w,onMouseDown:T,onOpen:E,open:D,readOnly:O,renderValue:ee,required:te,SelectDisplayProps:ne={},tabIndex:k,type:re,value:ie,variant:ae=`standard`,...A}=e,[j,M]=LD({controlled:ie,default:l,name:`Select`}),[oe,se]=LD({controlled:D,default:c,name:`Select`}),ce=b.useRef(null),le=b.useRef(null),N=b.useRef(null),P=b.useRef(!1),ue=b.useRef(!1),de=b.useRef(null),fe=b.useRef(!1),pe=b.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),me=b.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),he=DO(),ge=DO(),_e=DO(),[ve,ye]=b.useState(null),{current:be}=b.useRef(D!=null),[xe,Se]=b.useState(),[Ce,we]=b.useState(null),F=kE(t,m),Te=b.useCallback(e=>{le.current=e,e&&ye(e)},[]),I=ve?.parentNode;b.useImperativeHandle(F,()=>({focus:()=>{le.current.focus()},node:ce.current,value:j}),[j]);let Ee=ve!==null&&oe,De=b.useCallback(()=>{_e.clear(),me.current.buffer=``,me.current.previousSearchIndex=null,me.current.matchedIndex=null},[_e]);AE(()=>{P.current=Ee,Ee&&De()},[Ee,De]);let Oe=b.useCallback(()=>{he.clear(),ge.clear()},[he,ge]),ke=b.useCallback(()=>{Oe(),fe.current=!1,pe.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Oe]),Ae=b.useCallback(()=>{de.current&&=(de.current(),null)},[]);b.useEffect(()=>{Ee||(ke(),Ae())},[Ee,ke,Ae]),b.useEffect(()=>()=>{ke(),Ae(),De()},[ke,Ae,De]),b.useEffect(()=>{if(!Ee||!I||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{Se(I.clientWidth)});return e.observe(I),()=>{e.disconnect()}},[Ee,I,a]),b.useEffect(()=>{c&&oe&&ve&&!be&&(Se(a?null:I.clientWidth),le.current.focus())},[ve,a]),b.useEffect(()=>{i&&le.current.focus()},[i]),b.useEffect(()=>{if(!h)return;let e=jE(le.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&le.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let je=RD((e,t)=>{e||(ke(),Ae()),e?(De(),we(Ej(t)),E&&E(t)):(we(null),S&&S(t)),be||(P.current=e,Se(a?null:I.clientWidth),se(e))}),Me=()=>{ke(),ue.current?ge.start(jM,()=>{pe.current.allowUnselectedMouseUp=!0,he.start(jM,()=>{pe.current.allowSelectedMouseUp=!0})}):he.start(AM,()=>{pe.current.allowSelectedMouseUp=!0,pe.current.allowUnselectedMouseUp=!0})},Ne=e=>{if(T?.(e),e.button!==0||(e.preventDefault(),!le.current))return;le.current.focus();let t=jE(e.currentTarget);Me(),Ae();let n=e=>{de.current=null,le.current&&(LM(e,le.current)||LM(e,N.current)||!P.current&&be||je(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),de.current=()=>{t.removeEventListener(`mouseup`,n,!0)},je(!0,e)},Pe=e=>{je(!1,e)},Fe=b.Children.toArray(o),Ie=e=>{let t=Fe.find(t=>t.props.value===e.target.value);t!==void 0&&(M(t.props.value),x&&x(e,t))},Le=(e,t,n)=>{if(M(n),x){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),x(i,t)}},Re=e=>t=>{fe.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(j)?j.slice():[];let t=j.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),j!==n&&Le(t,e,n),_||je(!1,t)}},ze=(e,t)=>n=>{if(e.props.onMouseUp?.(n),fe.current){fe.current=!1;return}let r=!pe.current.allowSelectedMouseUp&&t,i=!pe.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Be=e=>{let t=me.current,n=t.buffer!==``;if(Ee||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===NM&&!n)return!1;e.key===NM&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=DM(Fe,j);if(i.length===0)return e.key!==NM&&De(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&EM(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,_e.start(MM,De);let s=TM(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,Oj(j,n.value)||Le(e,n.child,n.value),!0}return e.key!==NM&&De(),!0},L=e=>{if(!O){let t=Be(e),n=e.key===NM||e.key===PM||e.key===FM||e.key===IM;!t&&n&&(e.preventDefault(),je(!0,e)),w?.(e)}},Ve=e=>{De(),!Ee&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:j,name:v}}),y(e))},He=e=>t=>{e?.props?.onKeyDown?.(t),t.key===NM&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete A[`aria-invalid`];let Ue,We,Ge=[],Ke=!1,qe=!1;(FE({value:j})||d)&&(ee?Ue=ee(j):Ke=!0);let Je=Fe.map(e=>{if(!b.isValidElement(e))return null;let t;if(_){if(!Array.isArray(j))throw Error(Cy(2));t=j.some(t=>Oj(t,e.props.value)),t&&Ke&&Ge.push(e.props.children)}else t=Oj(j,e.props.value),t&&Ke&&(We=e.props.children);return t&&(qe=!0),b.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{fe.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{fe.current=!0,e.props.onPointerDown?.(t)},onClick:Re(e),onMouseUp:ze(e,t),onKeyUp:t=>{t.key===NM&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:He(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});AE(()=>{ue.current=qe,!Ee&&!_&&!qe&&De()},[qe,_,Ee,De]),Ke&&(Ue=_?Ge.length===0?null:Ge.reduce((e,t,n)=>(e.push(t),n{let{classes:t}=e,n=eT({root:[`root`]},xM,t);return{...t,...n}},WM={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>wE(e)&&e!==`variant`},GM=$(WA,WM)(``),KM=$(bM,WM)(``),qM=$(EA,WM)(``),JM=b.forwardRef(function(e,t){let n=DE({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Ik,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w=`outlined`,...T}=n,E=_?dM:HM,[D]=yE({props:n,states:[`variant`,`error`]}),O=D.variant||w,ee={...n,variant:O,classes:a},te=UM(ee),{root:ne,...k}=te,re=d||{standard:(0,Z.jsx)(GM,{ownerState:ee}),outlined:(0,Z.jsx)(KM,{label:p,ownerState:ee}),filled:(0,Z.jsx)(qM,{ownerState:ee})}[O],ie=kE(t,Mk(re));return(0,Z.jsx)(b.Fragment,{children:b.cloneElement(re,{inputComponent:E,inputProps:{children:i,error:D.error,IconComponent:l,variant:O,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:{id:u,...C}},...f,classes:f?Vx(k,f.classes):k,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:ie,className:AC(re.props.className,o,te.root),...!d&&{variant:O},...T})})});JM.muiName=`Select`,dh();var YM={name:`dropdown-app`,version:`1.0.0`},XM=q({options:K(W()).min(1),title:W().optional()}),ZM=150;function QM(){let[e,t]=(0,b.useState)([]),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(`Select a value`),[c,l]=(0,b.useState)(``),{app:u}=uy({appInfo:YM,capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{let n=XM.safeParse(e.arguments);n.success?(l(``),t(n.data.options),n.data.title&&s(n.data.title)):l(`Invalid tool input: ${n.error.message}`)}}});my(u,u?.getHostContext());let d=dy(),f=(0,b.useMemo)(()=>oE({palette:{mode:d},typography:{fontFamily:`var(--font-sans)`}}),[d]),p=(0,b.useCallback)(async e=>{let t=e.target.value;r(t),a(!0);try{await u?.sendMessage({role:`user`,content:[{type:`text`,text:t}]}),await u?.close()}catch(e){l(e instanceof Error?e.message:String(e)),a(!1)}},[u]);return(0,Z.jsx)(wD,{theme:f,children:(0,Z.jsxs)(Gk,{sx:{display:`flex`,flexDirection:`column`,padding:`24px`,minHeight:210},children:[(0,Z.jsxs)(AA,{fullWidth:!0,children:[(0,Z.jsx)(qA,{id:`resource-dropdown-label`,children:o}),(0,Z.jsx)(JM,{labelId:`resource-dropdown-label`,id:`resource-dropdown`,value:n,label:o,onChange:p,disabled:i,MenuProps:{slotProps:{paper:{style:{maxHeight:ZM}}}},children:e.map(e=>(0,Z.jsx)(aM,{value:e,children:e},e))})]}),c&&(0,Z.jsx)(kk,{severity:`error`,sx:{mt:2},children:c})]})})}x.createRoot(document.getElementById(`root`)).render((0,Z.jsx)(b.StrictMode,{children:(0,Z.jsx)(QM,{})})); +`,ak=typeof rk==`string`?null:yx` + animation: ${rk} 1.4s linear infinite; + `,ok=typeof ik==`string`?null:yx` + animation: ${ik} 1.4s ease-in-out infinite; + `,sk=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return tT({root:[`root`,n,`color${kE(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},tk,t)},ck=$(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${kE(n.color)}`]]}})(DE(({theme:e})=>{let t=YE(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...XE(e,`transform`)}},{props:{variant:`indeterminate`},style:ak||{animation:`${rk} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),lk=$(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),uk=$(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(DE(({theme:e})=>{let t=YE(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...XE(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:ok||{animation:`${ik} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),dk=$(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(DE(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),fk=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=sk(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((nk-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,Z.jsx)(ck,{className:AC(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,Z.jsxs)(lk,{className:v.svg,ownerState:_,viewBox:`${nk/2} ${nk/2} ${nk} ${nk}`,children:[o?(0,Z.jsx)(dk,{className:v.track,ownerState:_,cx:nk,cy:nk,r:(nk-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,Z.jsx)(uk,{className:v.circle,style:y,ownerState:_,cx:nk,cy:nk,r:(nk-d)/2,fill:`none`,strokeWidth:d})]})})});function pk(e){return NC(`MuiIconButton`,e)}var mk=PC(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),hk=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return tT({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${kE(r)}`,i&&`edge${kE(i)}`,`size${kE(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},pk,t)},gk=$(JO,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${kE(n.color)}`],n.edge&&t[`edge${kE(n.edge)}`],t[`size${kE(n.size)}`]]}})(DE(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...XE(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),DE(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${mk.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${mk.loading}`]:{color:`transparent`}}))),_k=$(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),vk=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=ID(u),h=f??(0,Z.jsx)(fk,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=hk(g);return(0,Z.jsxs)(gk,{id:d?m:u,className:AC(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,Z.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,Z.jsx)(_k,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),yk=jD((0,Z.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),bk=jD((0,Z.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),xk=jD((0,Z.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),Sk=jD((0,Z.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),Ck=jD((0,Z.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),wk=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return tT({root:[`root`,`color${kE(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},$O,i)},Tk=$(_O,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(DE(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(QO([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${ek.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(QO([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${ek.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(QO([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Ek=$(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Dk=$(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Ok=$(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),kk={success:(0,Z.jsx)(yk,{fontSize:`inherit`}),warning:(0,Z.jsx)(bk,{fontSize:`inherit`}),error:(0,Z.jsx)(xk,{fontSize:`inherit`}),info:(0,Z.jsx)(Sk,{fontSize:`inherit`})},Ak=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=kk,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=wk(_),y={slots:m,slotProps:p},[b,x]=pO(`root`,{ref:t,shouldForwardComponentProp:!0,className:AC(v.root,a),elementType:Tk,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=pO(`icon`,{className:v.icon,elementType:Ek,externalForwardedProps:y,ownerState:_}),[w,T]=pO(`message`,{className:v.message,elementType:Dk,externalForwardedProps:y,ownerState:_}),[E,D]=pO(`action`,{className:v.action,elementType:Ok,externalForwardedProps:y,ownerState:_}),[O,ee]=pO(`closeButton`,{elementType:vk,externalForwardedProps:y,ownerState:_}),[te,ne]=pO(`closeIcon`,{elementType:Ck,externalForwardedProps:y,ownerState:_});return(0,Z.jsxs)(b,{...x,children:[c===!1?null:(0,Z.jsx)(S,{...C,children:c||l[f]||kk[f]}),(0,Z.jsx)(w,{...T,children:i}),r==null?null:(0,Z.jsx)(E,{...D,children:r}),r==null&&u?(0,Z.jsx)(E,{...D,children:(0,Z.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...ee,children:(0,Z.jsx)(te,{fontSize:`small`,...ne})})}):null]})});function jk(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function Mk(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:lO(n,r),{props:s,internalRef:c}=fO({...a,externalSlotProps:o}),l=uE(c,o?.ref,e.additionalProps?.ref);return cO(t,{...s,ref:l},r)}function Nk(e){return e?.props?.ref||null}var Pk=u(_(),1);function Fk(e){return typeof e==`function`?e():e}var Ik=b.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=b.useState(null),s=uE(b.isValidElement(n)?Nk(n):null,t);if(qC(()=>{i||o(Fk(r)||document.body)},[r,i]),qC(()=>{if(a&&!i)return FD(t,a),()=>{FD(t,null)}},[t,a,i]),i){if(b.isValidElement(n)){let e={ref:s};return b.cloneElement(n,e)}return n}return a&&Pk.createPortal(n,a)}),Lk=jD((0,Z.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),Rk={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},zk={opacity:0,visibility:`hidden`},Bk=b.forwardRef(function(e,t){let n=SE(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=sO(n.motion.reducedMotion,s),x=b.useRef(null),S=AE(x,Nk(o),t),C=KE(x,f),w=KE(x,(e,t)=>{y.shouldReduceMotion||HE(e);let r=JE({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),T=KE(x,d),E=KE(x,h),D=KE(x,e=>{let t=JE({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),O=KE(x,e=>{e.style.transition=``,m&&m(e)});return(0,Z.jsx)(YD,{appear:a,in:l,nodeRef:x,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:i?e=>{i(x.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=qE(e,l,Rk,zk,g,o.props.style);return b.cloneElement(o,{style:r,ref:S,...n})}})});function Vk(e){return NC(`MuiBackdrop`,e)}PC(`MuiBackdrop`,[`root`,`invisible`]);var Hk=e=>{let{classes:t,invisible:n}=e;return tT({root:[`root`,n&&`invisible`]},Vk,t)},Uk=$(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Wk=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=Hk(f),m={component:a,slots:l,slotProps:c},[h,g]=pO(`root`,{elementType:Uk,externalForwardedProps:m,className:AC(p.root,i),ownerState:f}),[_,v]=pO(`transition`,{elementType:Bk,externalForwardedProps:m,ownerState:f});return(0,Z.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,Z.jsx)(h,{...g,ref:t,children:r})})}),Gk=PC(`MuiBox`,[`root`]),Kk=jC({themeId:wy,defaultTheme:sE(),defaultClassName:Gk.root,generateClassName:OC.generate});function qk(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Jk(e){let t=fE(e);return e===t.body||e===t.documentElement?pE(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Yk(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function Xk(e){return parseFloat(pE(e).getComputedStyle(e).paddingRight)||0}function Zk(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function Qk(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Zk(e);t&&n&&Yk(e,i)})}function $k(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=fE(r).body;else{let t=r.parentElement,n=pE(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(Jk(e)){let t=qk(pE(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${Xk(e)+t}px`;let i=fE(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${Xk(e)+t}px`})}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 eA(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var tA=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Yk(e.modalRef,!1);let r=eA(t);Qk(t,e.mount,e.modalRef,r,!0);let i=this.containers.findIndex(e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=$k(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Yk(e.modalRef,t),Qk(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Yk(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},nA=jk,rA=`data-mui-focusable`;function iA(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${rA}]`):null}var aA=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function oA(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function sA(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function cA(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||sA(e))}function lA(e){let t=[],n=[];return Array.from(e.querySelectorAll(aA)).forEach((e,r)=>{let i=oA(e);i===-1||!cA(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,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 uA(){return!0}function dA(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=lA,isEnabled:o=uA,open:s}=e,c=b.useRef(!1),l=b.useRef(null),u=b.useRef(null),d=b.useRef(null),f=b.useRef(null),p=b.useRef(!1),m=b.useRef(null),h=uE(Nk(t),m),g=b.useRef(null);b.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),b.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=PE(fE(m.current)),t=iA(m.current)??m.current;return nA(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),b.useEffect(()=>{if(!s||!m.current)return;let e=fE(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=PE(e);if(n===null)return;let s=iA(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus();return}if(nA(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>oA(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=PE(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(nA(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=PE(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),b.cloneElement(t,{ref:h,onFocus:_}),(0,Z.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function fA(e){return typeof e==`function`?e():e}function pA(e){return e?e.props.hasOwnProperty(`in`):!1}var mA=()=>{},hA=new tA;function gA(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=b.useRef({}),d=b.useRef(null),f=b.useRef(null),p=b.useRef(null),m=uE(p,l),[h,g]=b.useState(!c),_=pA(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>fE(d.current),x=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),S=()=>{hA.mount(x(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},C=dE(()=>{let e=fA(t)||y().body;hA.add(x(),e),p.current&&S()}),w=()=>hA.isTopModal(x()),T=dE(e=>{d.current=e,e&&(f.current=e,c&&w()?S():p.current&&Yk(p.current,v))}),E=b.useCallback(()=>{hA.remove(x(),v)},[v]);b.useEffect(()=>()=>{E()},[E]),b.useEffect(()=>{c?C():(!_||!r)&&E()},[c,E,_,r,C]);let D=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!w())&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=uO(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:D(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:c}},getTransitionProps:()=>({onEnter:ED(()=>{g(!1),i&&i()},o?.props.onEnter??mA),onExited:ED(()=>{g(!0),a&&a(),r&&E()},o?.props.onExited??mA)}),rootRef:m,portalRef:T,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:w,exited:h,hasTransition:_}}function _A(e){return NC(`MuiModal`,e)}PC(`MuiModal`,[`root`,`hidden`,`backdrop`]);var vA=e=>{let{open:t,exited:n,classes:r}=e;return tT({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},_A,r)},yA=$(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(DE(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),bA=$(Wk,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),xA=b.forwardRef(function(e,t){let n=OE({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:x={},slots:S={},theme:C,...w}=n,T={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:E,getBackdropProps:D,getTransitionProps:O,portalRef:ee,portalContainer:te,isTopModal:ne,exited:k,hasTransition:re}=gA({...T,rootRef:t}),ie={...T,exited:k},ae=vA(ie),A={};if(o.props.tabIndex===void 0&&(A.tabIndex=`-1`),re){let{onEnter:e,onExited:t}=O();A.onEnter=e,A.onExited=t}let j={slots:S,slotProps:x},[M,oe]=pO(`root`,{ref:t,elementType:yA,externalForwardedProps:{...j,...w,component:c},getSlotProps:E,ownerState:ie,className:AC(i,ae?.root,!ie.open&&ie.exited&&ae?.hidden)}),[se,ce]=pO(`backdrop`,{elementType:bA,externalForwardedProps:j,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:ae?.backdrop,ownerState:ie});return!h&&!y&&(!re||k)?null:(0,Z.jsx)(Ik,{ref:ee,container:te,disablePortal:d,children:(0,Z.jsxs)(M,{...oe,children:[m?null:(0,Z.jsx)(se,{...ce}),(0,Z.jsx)(dA,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:ne,open:y,children:b.cloneElement(o,A)})]})})}),SA=PC(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]);function CA(e){return NC(`MuiSelect`,e)}var wA=PC(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),TA=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=tT({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${kE(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},sD,t);return{...t,...c}},EA=$(rD,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...eD(e,t),!n.disableUnderline&&t.underline]}})(DE(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...XE(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${cD.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${cD.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...XE(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${cD.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${cD.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...XE(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${cD.disabled}, .${cD.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cD.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${wA.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),DA=$(iD,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:tD})(DE(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),OA=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=TA(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?Vx(h,l):h,_=u.root??EA,v=u.input??DA;return(0,Z.jsx)(oD,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});OA.muiName=`Input`;function kA(e){return NC(`MuiFormControl`,e)}PC(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var AA=e=>{let{classes:t,margin:n,fullWidth:r}=e;return tT({root:[`root`,n!==`none`&&`margin${kE(n)}`,r&&`fullWidth`]},kA,t)},jA=$(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${kE(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),MA=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=AA(_),[y,x]=b.useState(()=>{let e=!1;return r&&b.Children.forEach(r,t=>{if(!ND(t,[`Input`,`Select`]))return;let n=ND(t,[`Select`])?t.props.input:t;n&&LE(n.props)&&(e=!0)}),e}),[S,C]=b.useState(()=>{let e=!1;return r&&b.Children.forEach(r,t=>{ND(t,[`Input`,`Select`])&&(IE(t.props,!0)||IE(t.props.inputProps,!0))&&(e=!0)}),e}),[w,T]=b.useState(!1);s&&w&&T(!1);let E=l!==void 0&&!s?l:w,D;b.useRef(!1);let O=b.useCallback(()=>{C(!0)},[]),ee=b.useCallback(()=>{C(!1)},[]),te=b.useMemo(()=>({adornedStart:y,setAdornedStart:x,color:a,disabled:s,error:c,filled:S,focused:E,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{T(!1)},onFocus:()=>{T(!0)},onEmpty:ee,onFilled:O,registerEffect:D,required:p,variant:h}),[y,a,s,c,S,E,u,d,D,ee,O,p,m,h]);return(0,Z.jsx)(yE.Provider,{value:te,children:(0,Z.jsx)(jA,{as:o,ownerState:_,className:AC(v.root,i),ref:t,...g,children:r})})}),NA=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return tT({root:[`root`,`color${kE(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},lD,t)},PA=$(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(DE(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{color:t},style:{[`&.${uD.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${uD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uD.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),FA=$(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(DE(({theme:e})=>({[`&.${uD.error}`]:{color:(e.vars||e).palette.error.main}}))),IA=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=bE({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=NA(m);return(0,Z.jsxs)(PA,{as:o,ownerState:m,className:AC(h.root,i),ref:t,...f,children:[r,p.required&&(0,Z.jsxs)(FA,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function LA(e){return`scale(${e}, ${e**2})`}var RA={entering:{opacity:1,transform:LA(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:LA(.75)},exited:{opacity:0,transform:LA(.75)}},zA={opacity:0,transform:LA(.75),visibility:`hidden`},BA=b.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=b.useRef(null),v=SE(),y=sO(v.motion.reducedMotion,a),x=b.useRef(null),S=AE(x,Nk(i),t),C=KE(x,u),w=KE(x,(e,t)=>{y.shouldReduceMotion||HE(e);let{duration:n,delay:r,easing:i}=JE({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),T=KE(x,l),E=KE(x,p),D=KE(x,e=>{let{duration:t,delay:n,easing:r}=JE({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=LA(.75),d&&d(e)}),O=KE(x,e=>{e.style.transition=``,f&&f(e)});return(0,Z.jsx)(YD,{appear:r,in:s,nodeRef:x,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:n?e=>{n(x.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=qE(e,s,RA,zA,m,i.props.style);return b.cloneElement(i,{style:r,ref:S,...n})}})});BA&&(BA.muiSupportAuto=!0);function VA(e){return NC(`MuiInputLabel`,e)}var HA=PC(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),UA=e=>{let{classes:t,disableUnderline:n}=e,r=tT({root:[`root`,!n&&`underline`],input:[`input`]},dD,t);return{...t,...r}},WA=$(rD,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...eD(e,t),!n.disableUnderline&&t.underline]}})(DE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${HA.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...XE(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${fD.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${fD.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...XE(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${fD.disabled}, .${fD.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${fD.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),GA=$(iD,{name:`MuiInput`,slot:`Input`,overridesResolver:tD})({}),KA=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=UA(n),p={root:{ownerState:{disableUnderline:r}}},m=c?Vx(c,p):p,h=l.root??WA,g=l.input??GA;return(0,Z.jsx)(oD,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});KA.muiName=`Input`;var qA=PC(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),JA=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=tT({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${kE(r)}`,o],asterisk:[s&&`asterisk`]},VA,t);return{...t,...c}},YA=$(IA,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${uD.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(DE(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{...XE(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),XA=b.forwardRef(function(e,t){let n=OE({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=bE({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=JA(f);return(0,Z.jsx)(YA,{"data-shrink":d,ref:t,className:AC(p.root,s),...c,ownerState:f,classes:p})}),ZA=b.createContext({});function QA(e){return NC(`MuiList`,e)}PC(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var $A=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return tT({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},QA,t)},ej=$(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),tj=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=b.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=$A(d);return(0,Z.jsx)(ZA.Provider,{value:u,children:(0,Z.jsxs)(ej,{as:a,className:AC(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),nj=PC(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),rj=PC(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),ij=b.createContext(void 0);function aj(){let e=b.useContext(ij);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var oj=Object.is;function sj(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!oj(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var cj=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function lj(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=Cj,wrap:o=!0}=e,[s,c]=b.useState(t),[l,u]=b.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=b.useRef(null),p=b.useRef(new Map),[m,h]=b.useState(0),g=b.useMemo(()=>bj(p.current),[m]),_=dj(d,g,a,n),v=b.useRef(_);v.current=_;let y=b.useCallback(()=>{let e=bj(p.current);return _j(e,dj(v.current,e,a,n))},[n,a]),x=b.useCallback(()=>p.current,[]),S=dE(e=>{sj(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),C=dE(e=>{p.current.delete(e)&&h(e=>e+1)}),w=dE(e=>{c(e)}),T=b.useCallback(e=>v.current===e,[]),E=b.useCallback((e,t,n,r)=>{let i=hj(xj(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=b.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=xj(p.current),r=yj(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!cj.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=xj(p.current),c=NE(fE(f.current)),l=c===f.current,u=mj(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}E(u,d,o)},ref:Ej(e,e=>{f.current=e})}),[E,i,r,o]),O=b.useCallback(e=>{let t=xj(p.current),n=NE(fE(f.current)),r=n===f.current?-1:mj(t,n,v.current);return E(r,`next`,!0,e)?.id??null},[E]);return b.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:x,isItemActive:T,registerItem:S,setActiveItemId:w,unregisterItem:C}),[_,O,y,D,x,T,S,w,C])}function uj(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=aj(),i=b.useRef(null),a=b.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=b.useRef(a);o.current=a;let s=b.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=uE(e.ref,s);return qC(()=>{i.current&&n({...a,element:i.current})},[a,n]),qC(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function dj(e,t,n,r){return e==null?pj(t,n,r):fj(e,t,n)}function fj(e,t,n){let r=vj(t,e);return r===-1?gj(t,n):n(t[r])?t[r].id:hj(t,r,`next`,!1,n)?.id??null}function pj(e,t,n){let r=n?.(e);if(r!=null){let n=_j(e,r);if(n&&t(n))return n.id}return gj(e,t)}function mj(e,t,n){if(t){let n=yj(e,t);if(n!==-1)return n}return vj(e,n)}function hj(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=Sj(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=Sj(s,a,n,r);else return t}return null}function gj(e,t){return e.find(e=>t(e))?.id??null}function _j(e,t){return t==null?null:e.find(e=>e.id===t)??null}function vj(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function yj(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function bj(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(wj).sort((e,t)=>Tj(e.element,t.element)),r=t.filter(e=>!wj(e));return[...n,...r]}function xj(e){return bj(e).filter(wj)}function Sj(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function Cj(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function wj(e){return e.element!=null&&e.element.isConnected}function Tj(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Ej(...e){return t=>{e.forEach(e=>{FD(e??null,t)})}}var Dj=qk;function Oj(e,t){if(t==null){e.focus();return}try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function kj(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function Aj(e){return e==null||typeof e==`string`&&!e.trim()}function jj(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Mj=b.createContext(null);function Nj(){return b.useContext(Mj)}var Pj=Mj.Provider,Fj=b.createContext(void 0);function Ij(){let e=b.useContext(Fj);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function Lj(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function Rj(e,t){if(t===void 0)return!0;let n=Lj(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function zj(e,t){return Rj(e,t)?Cj(e):!1}function Bj(e,t){Oj(e,t)}var Vj=b.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=b.useRef(null),p=b.useRef(!1),[m,h]=b.useState(!1),g=Nj(),_=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=lj({activeItemId:void 0,getDefaultActiveItemId:b.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&Cj(e))?.id??e.find(e=>Cj(e))?.id??null:e.find(e=>Cj(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:x,getActiveItem:S,getContainerProps:C,getItemMap:w}=v,T=zD((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=S();if(e?.element){let t=Array.from(w().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),Bj(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});jE(()=>{if(!r&&!i){p.current=!1,h(!1);return}T()},[y,i,r,T]),b.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight{if(!f.current)return null;let e=PE(ME(f.current));return e&&nA(f.current,e)?e:T(!0)}}),[T]);let E=C(void 0,d.onFocus),D=AE(f,E.ref,t),O=b.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),ee=zD(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l){l(e);return}if(E.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=PE(ME(f.current)),a=i&&!t.repeating&&Rj(i,t);t.previousKeyMatched&&(a||x(e=>zj(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)});return(0,Z.jsx)(tj,{role:`menu`,ref:D,className:o,onKeyDown:ee,tabIndex:-1,...d,onFocus:E.onFocus,children:(0,Z.jsx)(Fj.Provider,{value:O,children:(0,Z.jsx)(ij.Provider,{value:v,children:a})})})});function Hj(e){return NC(`MuiPopover`,e)}PC(`MuiPopover`,[`root`,`paper`]);function Uj(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Wj(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Gj(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function Kj(e){return typeof e==`function`?e():e}var qj=e=>{let{classes:t}=e;return tT({root:[`root`],paper:[`paper`]},Hj,t)},Jj=$(xA,{name:`MuiPopover`,slot:`Root`})({}),Yj=$(_O,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Xj=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...x}=n,S=b.useRef(),C={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},w=qj(C),T=b.useCallback(()=>{if(s===`anchorPosition`)return o;let e=Kj(i),t=(e&&e.nodeType===1?e:ME(S.current).body).getBoundingClientRect();return{top:t.top+Uj(t,a.vertical),left:t.left+Wj(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),E=b.useCallback(e=>({vertical:Uj(e,_.vertical),horizontal:Wj(e,_.horizontal)}),[_.horizontal,_.vertical]),D=b.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=E(t);if(s===`none`)return{top:null,left:null,transformOrigin:Gj(n)};let r=T(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=PD(Kj(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&ad){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&of){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:Gj(n)}},[i,s,T,E,p]),[O,ee]=b.useState(m),te=b.useCallback(()=>{let e=S.current;if(!e)return;let t=D(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ee(!0)},[D]);b.useEffect(()=>(y&&window.addEventListener(`scroll`,te),()=>window.removeEventListener(`scroll`,te)),[i,y,te]);let ne=()=>{te()},k=()=>{ee(!1)};b.useEffect(()=>{m&&te()}),b.useImperativeHandle(r,()=>m?{updatePosition:()=>{te()}}:null,[m,te]),b.useEffect(()=>{if(!m)return;let e=MD(()=>{te()}),t=PD(Kj(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,te]);let re=v,ie={slots:h,slotProps:g},[ae,A]=pO(`transition`,{elementType:BA,externalForwardedProps:ie,ownerState:C,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),ne()},onExited:t=>{e.onExited?.(t),k()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!ae.muiSupportAuto&&(re=void 0);let j=u||(i?ME(Kj(i)).body:void 0),[M,{slots:oe,slotProps:se,...ce}]=pO(`root`,{ref:t,elementType:Jj,externalForwardedProps:{...ie,...x},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:VD(typeof g.backdrop==`function`?g.backdrop(C):g.backdrop,{invisible:!0})},container:j,open:m},ownerState:C,className:AC(w.root,l)}),[le,N]=pO(`paper`,{ref:S,className:w.paper,elementType:Yj,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:C});return(0,Z.jsx)(M,{...ce,...!cE(M)&&{slots:oe,slotProps:se,disableAutoFocus:d,disableScrollLock:y},children:(0,Z.jsx)(ae,{...A,timeout:re,children:(0,Z.jsx)(le,{...N,children:c})})})});function Zj(e){return NC(`MuiMenu`,e)}PC(`MuiMenu`,[`root`,`paper`,`list`]);var Qj={vertical:`top`,horizontal:`right`},$j={vertical:`top`,horizontal:`left`},eM=e=>{let{classes:t}=e;return tT({root:[`root`],paper:[`paper`],list:[`list`]},Zj,t)},tM=$(Xj,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),nM=$(Yj,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),rM=$(Vj,{name:`MuiMenu`,slot:`List`})({outline:0}),iM=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=yw(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=eM(g),v=r&&c,y=v&&!o,x=b.useRef(null),S=(e,t)=>{x.current&&(x.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&x.current.focusInitialTarget?.())},C=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},w={slots:f,slotProps:p},T=Mk({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[E,D]=pO(`paper`,{className:_.paper,elementType:nM,externalForwardedProps:w,shouldForwardComponentProp:!0,ownerState:g}),[O,ee]=pO(`list`,{className:_.list,elementType:rM,shouldForwardComponentProp:!0,externalForwardedProps:w,getSlotProps:e=>({...e,onKeyDown:t=>{C(t),e.onKeyDown?.(t)}}),ownerState:g}),te=typeof p.transition==`function`?p.transition(g):p.transition;return(0,Z.jsx)(tM,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?Qj:$j,slots:{root:f.root,paper:E,backdrop:f.backdrop,transition:f.transition},slotProps:{root:T,paper:D,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...te,onEntering:(...e)=>{S(...e),te?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,Z.jsx)(O,{actions:x,autoFocus:v,autoFocusItem:y,variant:d,...ee,children:i})})}),aM=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},oM=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=tT({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},pD,o);return{...o,...s}},sM=$(JO,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:aM})(DE(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${mD.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${mD.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${mD.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${mD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${SA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${SA.inset}`]:{marginLeft:52},[`& .${rj.root}`]:{marginTop:0,marginBottom:0},[`& .${rj.inset}`]:{paddingLeft:36},[`& .${nj.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${nj.root} svg`]:{fontSize:`1.25rem`}}}]}))),cM=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=Nj(),h=b.useContext(ZA),g=b.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=Ij(),v=ID(),y=_.suppressInitialFocusVisible,x=_.itemsFocusableWhenDisabled,S=b.useRef(null);jE(()=>{r&&S.current&&Oj(S.current,m)},[r]);let C={...n,dense:g.dense,divider:o,disableGutters:s},w=oM(n),{root:T,...E}=w,D=uj({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:x,selected:n.selected}),O=AE(S,D.ref),ee;return u===void 0?_.variant===`selectedMenu`?ee=D.tabIndex:(!n.disabled||x)&&(ee=-1):ee=u,(0,Z.jsx)(ZA.Provider,{value:g,children:(0,Z.jsx)(sM,{ref:O,role:l,"aria-checked":p,tabIndex:ee,component:i,internalNativeButton:!1,focusableWhenDisabled:x,suppressFocusVisible:y,focusVisibleClassName:AC(w.focusVisible,c),className:AC(w.root,d),...f,ownerState:C,classes:E})})}),lM=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return tT({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${kE(n)}`,a&&`iconOpen`,r&&`disabled`]},hD,t)},uM=$(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${gD.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${qA.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${zE.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${zE.root}:has(> &)`]:{"--_caret":`24px`},[`.${zE.root}:has(> & ~ .${qA.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${zE.root}:has(> &)`]:{"--_caret":`32px`},[`.${zE.root}:has(> & ~ .${qA.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${zE.root}:has(> &)`]:{"--_caret":`32px`},[`.${zE.root}:has(> & ~ .${qA.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),dM=$(uM,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:TE,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${gD.multiple}`]:t.multiple}]}})({}),fM=$(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${gD.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),pM=$(fM,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${kE(n.variant)}`],n.open&&t.iconOpen]}})({}),mM=b.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=lM(l);return(0,Z.jsxs)(b.Fragment,{children:[(0,Z.jsx)(dM,{ownerState:l,className:AC(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,Z.jsx)(pM,{as:a,ownerState:l,className:u.icon})]})}),hM,gM=$(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:TE})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),_M=$(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:TE})(DE(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,...XE(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,...XE(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,...XE(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function vM(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,Z.jsx)(gM,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,Z.jsx)(_M,{ownerState:c,children:s?(0,Z.jsx)(`span`,{children:i}):hM||=(0,Z.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`})})})}var yM=e=>{let{classes:t}=e,n=tT({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},_D,t);return{...t,...n}},bM=$(rD,{shouldForwardProp:e=>TE(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:eD})(DE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vD.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vD.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${vD.focused} .${vD.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(QO()).map(([t])=>({props:{color:t},style:{[`&.${vD.focused} .${vD.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${vD.error} .${vD.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vD.disabled} .${vD.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${wA.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),xM=$(vM,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(DE(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),SM=$(iD,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:tD})(DE(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),CM=b.forwardRef(function(e,t){let n=OE({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=yM(n),[p,m]=bE({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??bM,_=c.input??SM,[v,y]=pO(`notchedOutline`,{elementType:xM,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,Z.jsxs)(b.Fragment,{children:[a,` `,`*`]}):a}});return(0,Z.jsx)(oD,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,Z.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});CM.muiName=`Input`;function wM(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function TM(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return b.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):b.isValidElement(e)&&(t+=TM(e.props.children))}),t}function EM(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;ne.label[0]===t&&e.label[1]===t)}function OM(e,t){let n=[],r=-1;for(let i=0;i=n.left-AM&&e.clientX<=n.right+AM&&e.clientY>=n.top-AM&&e.clientY<=n.bottom+AM}var zM=$(uM,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${wA.select}`]:t.select},{[`&.${wA.select}`]:t[n.variant]},{[`&.${wA.error}`]:t.error},{[`&.${wA.multiple}`]:t.multiple}]}})({[`&.${wA.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),BM=$(fM,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),VM=$(`input`,{shouldForwardProp:e=>wE(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),HM=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return tT({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},CA,t)},UM=b.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:x,onClose:S,onFocus:C,onKeyDown:w,onMouseDown:T,onOpen:E,open:D,readOnly:O,renderValue:ee,required:te,SelectDisplayProps:ne={},tabIndex:k,type:re,value:ie,variant:ae=`standard`,...A}=e,[j,M]=RD({controlled:ie,default:l,name:`Select`}),[oe,se]=RD({controlled:D,default:c,name:`Select`}),ce=b.useRef(null),le=b.useRef(null),N=b.useRef(null),P=b.useRef(!1),ue=b.useRef(!1),de=b.useRef(null),fe=b.useRef(!1),pe=b.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),me=b.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),he=OO(),ge=OO(),_e=OO(),[ve,ye]=b.useState(null),{current:be}=b.useRef(D!=null),[xe,Se]=b.useState(),[Ce,we]=b.useState(null),F=AE(t,m),Te=b.useCallback(e=>{le.current=e,e&&ye(e)},[]),I=ve?.parentNode;b.useImperativeHandle(F,()=>({focus:()=>{le.current.focus()},node:ce.current,value:j}),[j]);let Ee=ve!==null&&oe,De=b.useCallback(()=>{_e.clear(),me.current.buffer=``,me.current.previousSearchIndex=null,me.current.matchedIndex=null},[_e]);jE(()=>{P.current=Ee,Ee&&De()},[Ee,De]);let Oe=b.useCallback(()=>{he.clear(),ge.clear()},[he,ge]),ke=b.useCallback(()=>{Oe(),fe.current=!1,pe.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Oe]),Ae=b.useCallback(()=>{de.current&&=(de.current(),null)},[]);b.useEffect(()=>{Ee||(ke(),Ae())},[Ee,ke,Ae]),b.useEffect(()=>()=>{ke(),Ae(),De()},[ke,Ae,De]),b.useEffect(()=>{if(!Ee||!I||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{Se(I.clientWidth)});return e.observe(I),()=>{e.disconnect()}},[Ee,I,a]),b.useEffect(()=>{c&&oe&&ve&&!be&&(Se(a?null:I.clientWidth),le.current.focus())},[ve,a]),b.useEffect(()=>{i&&le.current.focus()},[i]),b.useEffect(()=>{if(!h)return;let e=ME(le.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&le.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let je=zD((e,t)=>{e||(ke(),Ae()),e?(De(),we(kj(t)),E&&E(t)):(we(null),S&&S(t)),be||(P.current=e,Se(a?null:I.clientWidth),se(e))}),Me=()=>{ke(),ue.current?ge.start(MM,()=>{pe.current.allowUnselectedMouseUp=!0,he.start(MM,()=>{pe.current.allowSelectedMouseUp=!0})}):he.start(jM,()=>{pe.current.allowSelectedMouseUp=!0,pe.current.allowUnselectedMouseUp=!0})},Ne=e=>{if(T?.(e),e.button!==0||(e.preventDefault(),!le.current))return;le.current.focus();let t=ME(e.currentTarget);Me(),Ae();let n=e=>{de.current=null,le.current&&(RM(e,le.current)||RM(e,N.current)||!P.current&&be||je(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),de.current=()=>{t.removeEventListener(`mouseup`,n,!0)},je(!0,e)},Pe=e=>{je(!1,e)},Fe=b.Children.toArray(o),Ie=e=>{let t=Fe.find(t=>t.props.value===e.target.value);t!==void 0&&(M(t.props.value),x&&x(e,t))},Le=(e,t,n)=>{if(M(n),x){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),x(i,t)}},Re=e=>t=>{fe.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(j)?j.slice():[];let t=j.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),j!==n&&Le(t,e,n),_||je(!1,t)}},ze=(e,t)=>n=>{if(e.props.onMouseUp?.(n),fe.current){fe.current=!1;return}let r=!pe.current.allowSelectedMouseUp&&t,i=!pe.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Be=e=>{let t=me.current,n=t.buffer!==``;if(Ee||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===PM&&!n)return!1;e.key===PM&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=OM(Fe,j);if(i.length===0)return e.key!==PM&&De(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&DM(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,_e.start(NM,De);let s=EM(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,jj(j,n.value)||Le(e,n.child,n.value),!0}return e.key!==PM&&De(),!0},L=e=>{if(!O){let t=Be(e),n=e.key===PM||e.key===FM||e.key===IM||e.key===LM;!t&&n&&(e.preventDefault(),je(!0,e)),w?.(e)}},Ve=e=>{De(),!Ee&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:j,name:v}}),y(e))},He=e=>t=>{e?.props?.onKeyDown?.(t),t.key===PM&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete A[`aria-invalid`];let Ue,We,Ge=[],Ke=!1,qe=!1;(IE({value:j})||d)&&(ee?Ue=ee(j):Ke=!0);let Je=Fe.map(e=>{if(!b.isValidElement(e))return null;let t;if(_){if(!Array.isArray(j))throw Error(Cy(2));t=j.some(t=>jj(t,e.props.value)),t&&Ke&&Ge.push(e.props.children)}else t=jj(j,e.props.value),t&&Ke&&(We=e.props.children);return t&&(qe=!0),b.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{fe.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{fe.current=!0,e.props.onPointerDown?.(t)},onClick:Re(e),onMouseUp:ze(e,t),onKeyUp:t=>{t.key===PM&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:He(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});jE(()=>{ue.current=qe,!Ee&&!_&&!qe&&De()},[qe,_,Ee,De]),Ke&&(Ue=_?Ge.length===0?null:Ge.reduce((e,t,n)=>(e.push(t),n{let{classes:t}=e,n=tT({root:[`root`]},CA,t);return{...t,...n}},GM={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>TE(e)&&e!==`variant`},KM=$(KA,GM)(``),qM=$(CM,GM)(``),JM=$(OA,GM)(``),YM=b.forwardRef(function(e,t){let n=OE({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Lk,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:C,variant:w=`outlined`,...T}=n,E=_?mM:UM,[D]=bE({props:n,states:[`variant`,`error`]}),O=D.variant||w,ee={...n,variant:O,classes:a},te=WM(ee),{root:ne,...k}=te,re=d||{standard:(0,Z.jsx)(KM,{ownerState:ee}),outlined:(0,Z.jsx)(qM,{label:p,ownerState:ee}),filled:(0,Z.jsx)(JM,{ownerState:ee})}[O],ie=AE(t,Nk(re));return(0,Z.jsx)(b.Fragment,{children:b.cloneElement(re,{inputComponent:E,inputProps:{children:i,error:D.error,IconComponent:l,variant:O,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:{id:u,...C}},...f,classes:f?Vx(k,f.classes):k,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:ie,className:AC(re.props.className,o,te.root),...!d&&{variant:O},...T})})});YM.muiName=`Select`,dh();var XM={name:`dropdown-app`,version:`1.0.0`},ZM=q({options:K(W()).min(1),title:W().optional()}),QM=150;function $M(){let[e,t]=(0,b.useState)([]),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!1),[o,s]=(0,b.useState)(`Select a value`),[c,l]=(0,b.useState)(``),{app:u}=uy({appInfo:XM,capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{let n=ZM.safeParse(e.arguments);n.success?(l(``),t(n.data.options),n.data.title&&s(n.data.title)):l(`Invalid tool input: ${n.error.message}`)}}});my(u,u?.getHostContext());let d=dy(),f=(0,b.useMemo)(()=>sE({palette:{mode:d},typography:{fontFamily:`var(--font-sans)`}}),[d]),p=(0,b.useCallback)(async e=>{let t=e.target.value;r(t),a(!0);try{await u?.sendMessage({role:`user`,content:[{type:`text`,text:t}]}),await u?.close()}catch(e){l(e instanceof Error?e.message:String(e)),a(!1)}},[u]);return(0,Z.jsx)(TD,{theme:f,children:(0,Z.jsxs)(Kk,{sx:{display:`flex`,flexDirection:`column`,padding:`24px`,minHeight:210},children:[(0,Z.jsxs)(MA,{fullWidth:!0,children:[(0,Z.jsx)(XA,{id:`resource-dropdown-label`,children:o}),(0,Z.jsx)(YM,{labelId:`resource-dropdown-label`,id:`resource-dropdown`,value:n,label:o,onChange:p,disabled:i,MenuProps:{slotProps:{paper:{style:{maxHeight:QM}}}},children:e.map(e=>(0,Z.jsx)(cM,{value:e,children:e},e))})]}),c&&(0,Z.jsx)(Ak,{severity:`error`,sx:{mt:2},children:c})]})})}x.createRoot(document.getElementById(`root`)).render((0,Z.jsx)(b.StrictMode,{children:(0,Z.jsx)($M,{})})); diff --git a/ui/dist/apps/timeserieschart/index.html b/ui/dist/apps/timeserieschart/index.html index 15133f04..00d0c831 100644 --- a/ui/dist/apps/timeserieschart/index.html +++ b/ui/dist/apps/timeserieschart/index.html @@ -76,7 +76,7 @@ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ve,s=!k.jitless,c=s&&Xe.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?jr([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Ri=S(`$ZodUnion`,(e,t)=>{B.init(e,t),F(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),F(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),F(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),F(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ce(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Mr(t,r,e,i)):Mr(o,r,e,i)}}),zi=S(`$ZodXor`,(e,t)=>{Ri.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Nr(t,r,e,i)):Nr(o,r,e,i)}}),Bi=S(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ri.init(e,t);let n=e._zod.parse;F(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=oe(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ve(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Vi=S(`$ZodIntersection`,(e,t)=>{B.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Fr(e,t,n)):Fr(e,i,a)}}),Hi=S(`$ZodTuple`,(e,t)=>{B.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Ir(n,`optin`),c=Ir(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Lr(t,r,e))):Lr(a,r,e)}}return o.length?Promise.all(o).then(()=>Rr(l,r,n,a,c)):Rr(l,r,n,a,c)}}),Ui=S(`$ZodRecord`,(e,t)=>{B.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ye(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Le(e,r,C())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Fe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Fe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Dn.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Le(e,r,C())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Fe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Fe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Wi=S(`$ZodMap`,(e,t)=>{B.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{zr(t,a,n,o,i,e,r)})):zr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Gi=S(`$ZodSet`,(e,t)=>{B.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>Br(e,n))):Br(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Ki=S(`$ZodEnum`,(e,t)=>{B.init(e,t);let n=M(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Qe.has(typeof e)).map(e=>typeof e==`string`?Se(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),qi=S(`$ZodLiteral`,(e,t)=>{if(B.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Se(e):e?Se(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Ji=S(`$ZodFile`,(e,t)=>{B.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Yi=S(`$ZodTransform`,(e,t)=>{B.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new O(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new D;return n.value=i,n.fallback=!0,n}}),Xi=S(`$ZodOptional`,(e,t)=>{B.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Vr(e,r)):Vr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Zi=S(`$ZodExactOptional`,(e,t)=>{Xi.init(e,t),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Qi=S(`$ZodNullable`,(e,t)=>{B.init(e,t),F(e._zod,`optin`,()=>t.innerType._zod.optin),F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ce(e.source)}|null)$`):void 0}),F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),$i=S(`$ZodDefault`,(e,t)=>{B.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Hr(e,t)):Hr(r,t)}}),ea=S(`$ZodPrefault`,(e,t)=>{B.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ta=S(`$ZodNonOptional`,(e,t)=>{B.init(e,t),F(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ur(t,e)):Ur(i,e)}}),na=S(`$ZodSuccess`,(e,t)=>{B.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new O(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),ra=S(`$ZodCatch`,(e,t)=>{B.init(e,t),e._zod.optin=`optional`,F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,C()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Le(e,n,C()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ia=S(`$ZodNaN`,(e,t)=>{B.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),aa=S(`$ZodPipe`,(e,t)=>{B.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.in,n)):Wr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Wr(e,t.out,n)):Wr(r,t.out,n)}}),oa=S(`$ZodCodec`,(e,t)=>{B.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Gr(e,t,n)):Gr(r,t,n)}}}),sa=S(`$ZodPreprocess`,(e,t)=>{aa.init(e,t)}),ca=S(`$ZodReadonly`,(e,t)=>{B.init(e,t),F(e._zod,`propValues`,()=>t.innerType._zod.propValues),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`optin`,()=>t.innerType?._zod?.optin),F(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(qr):qr(r)}}),la=S(`$ZodTemplateLiteral`,(e,t)=>{B.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||$e.has(typeof e))n.push(Se(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),ua=S(`$ZodFunction`,(e,t)=>(B.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?pt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?pt(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await ht(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ht(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Hi({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),da=S(`$ZodPromise`,(e,t)=>{B.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),fa=S(`$ZodLazy`,(e,t)=>{B.init(e,t),F(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),F(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),F(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),F(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),F(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),pa=S(`$ZodCustom`,(e,t)=>{Zn.init(e,t),B.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Jr(t,n,r,e));Jr(i,n,r,e)}})}));function ha(){return{localeError:ga()}}var ga,_a=o((()=>{z(),ga=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${L(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${N(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function va(){return{localeError:ya()}}var ya,ba=o((()=>{z(),ya=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${L(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function xa(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function Sa(){return{localeError:Ca()}}var Ca,wa=o((()=>{z(),Ca=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${L(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=xa(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=xa(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function Ta(){return{localeError:Ea()}}var Ea,Da=o((()=>{z(),Ea=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${L(e.values[0])}`:`Невалидна опция: очаквано едно от ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function Oa(){return{localeError:ka()}}var ka,Aa=o((()=>{z(),ka=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${L(e.values[0])}`:`Opció invàlida: s'esperava una de ${N(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function ja(){return{localeError:Ma()}}var Ma,Na=o((()=>{z(),Ma=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${L(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${N(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function Pa(){return{localeError:Fa()}}var Fa,Ia=o((()=>{z(),Fa=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${L(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function La(){return{localeError:Ra()}}var Ra,za=o((()=>{z(),Ra=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${L(e.values[0])}`:`Ungültige Option: erwartet eine von ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function Ba(){return{localeError:Va()}}var Va,Ha=o((()=>{z(),Va=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${L(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Ua(){return{localeError:Wa()}}var Wa,Ga=o((()=>{z(),Wa=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Invalid option: expected one of ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Ka(){return{localeError:qa()}}var qa,Ja=o((()=>{z(),qa=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${L(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function Ya(){return{localeError:Xa()}}var Xa,Za=o((()=>{z(),Xa=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${L(e.values[0])}`:`Opción inválida: se esperaba una de ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Qa(){return{localeError:$a()}}var $a,eo=o((()=>{z(),$a=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${L(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${N(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${N(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function to(){return{localeError:no()}}var no,ro=o((()=>{z(),no=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${L(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function io(){return{localeError:ao()}}var ao,oo=o((()=>{z(),ao=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${L(e.values[0])} attendu`:`Option invalide : une valeur parmi ${N(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${N(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function so(){return{localeError:co()}}var co,lo=o((()=>{z(),co=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${L(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${N(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function uo(){return{localeError:fo()}}var fo,po=o((()=>{z(),fo=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=R(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${L(t.values[0])}`;let e=t.values.map(e=>L(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${N(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function mo(){return{localeError:ho()}}var ho,go=o((()=>{z(),ho=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${L(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function _o(){return{localeError:vo()}}var vo,yo=o((()=>{z(),vo=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${L(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function bo(e,t,n){return Math.abs(e)===1?t:n}function xo(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function So(){return{localeError:Co()}}var Co,wo=o((()=>{z(),Co=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${L(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=bo(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${xo(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${xo(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=bo(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${xo(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${xo(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${N(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${xo(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${xo(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function To(){return{localeError:Eo()}}var Eo,Do=o((()=>{z(),Eo=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${L(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function Oo(){return{localeError:ko()}}var ko,Ao=o((()=>{z(),ko=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${L(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function jo(){return{localeError:Mo()}}var Mo,No=o((()=>{z(),Mo=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${L(e.values[0])}`:`Opzione non valida: atteso uno tra ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function Po(){return{localeError:Fo()}}var Fo,Io=o((()=>{z(),Fo=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${L(e.values[0])}が期待されました`:`無効な選択: ${N(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${N(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Lo(){return{localeError:Ro()}}var Ro,zo=o((()=>{z(),Ro=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${L(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${N(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function Bo(){return{localeError:Vo()}}var Vo,Ho=o((()=>{z(),Vo=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${L(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${N(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Uo(){return Bo()}var Wo=o((()=>{Ho()}));function Go(){return{localeError:Ko()}}var Ko,qo=o((()=>{z(),Ko=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${L(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${N(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${N(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Jo(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function Yo(){return{localeError:Zo()}}var Xo,Zo,Qo=o((()=>{z(),Xo=e=>e.charAt(0).toUpperCase()+e.slice(1),Zo=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${L(e.values[0])}`:`Privalo būti vienas iš ${N(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Jo(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Xo(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Xo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Jo(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Xo(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Xo(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${Xo(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function $o(){return{localeError:es()}}var es,ts=o((()=>{z(),es=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Грешана опција: се очекува една ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function ns(){return{localeError:rs()}}var rs,is=o((()=>{z(),rs=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${L(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${N(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function as(){return{localeError:os()}}var os,ss=o((()=>{z(),os=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${L(e.values[0])}`:`Ongeldige optie: verwacht één van ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function cs(){return{localeError:ls()}}var ls,us=o((()=>{z(),ls=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${L(e.values[0])}`:`Ugyldig valg: forventet en av ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function ds(){return{localeError:fs()}}var fs,ps=o((()=>{z(),fs=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${L(e.values[0])}`:`Fâsit tercih: mûteberler ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function ms(){return{localeError:hs()}}var hs,gs=o((()=>{z(),hs=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${L(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${N(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function _s(){return{localeError:vs()}}var vs,ys=o((()=>{z(),vs=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${L(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function bs(){return{localeError:xs()}}var xs,Ss=o((()=>{z(),xs=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${L(e.values[0])}`:`Opção inválida: esperada uma das ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function Cs(){return{localeError:ws()}}var ws,Ts=o((()=>{z(),ws=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${L(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${N(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function Es(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function Ds(){return{localeError:Os()}}var Os,ks=o((()=>{z(),Os=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${L(e.values[0])}`:`Неверный вариант: ожидалось одно из ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=Es(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=Es(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function As(){return{localeError:js()}}var js,Ms=o((()=>{z(),js=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${L(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function Ns(){return{localeError:Ps()}}var Ps,Fs=o((()=>{z(),Ps=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${L(e.values[0])}`:`Ogiltigt val: förväntade en av ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Is(){return{localeError:Ls()}}var Ls,Rs=o((()=>{z(),Ls=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${L(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${N(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function zs(){return{localeError:Bs()}}var Bs,Vs=o((()=>{z(),Bs=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${L(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${N(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Hs(){return{localeError:Us()}}var Us,Ws=o((()=>{z(),Us=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${L(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Gs(){return{localeError:Ks()}}var Ks,qs=o((()=>{z(),Ks=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${L(e.values[0])}`:`Неправильна опція: очікується одне з ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Js(){return Gs()}var Ys=o((()=>{qs()}));function Xs(){return{localeError:Zs()}}var Zs,Qs=o((()=>{z(),Zs=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${L(e.values[0])} متوقع تھا`:`غلط آپشن: ${N(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${N(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function $s(){return{localeError:ec()}}var ec,tc=o((()=>{z(),ec=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${L(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function nc(){return{localeError:rc()}}var rc,ic=o((()=>{z(),rc=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${L(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${N(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function ac(){return{localeError:oc()}}var oc,sc=o((()=>{z(),oc=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${L(e.values[0])}`:`无效选项:期望以下之一 ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${N(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function cc(){return{localeError:lc()}}var lc,uc=o((()=>{z(),lc=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${L(e.values[0])}`:`無效的選項:預期為以下其中之一 ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${N(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function dc(){return{localeError:fc()}}var fc,pc=o((()=>{z(),fc=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${L(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${N(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${N(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),mc=c({ar:()=>ha,az:()=>va,be:()=>Sa,bg:()=>Ta,ca:()=>Oa,cs:()=>ja,da:()=>Pa,de:()=>La,el:()=>Ba,en:()=>Ua,eo:()=>Ka,es:()=>Ya,fa:()=>Qa,fi:()=>to,fr:()=>io,frCA:()=>so,he:()=>uo,hr:()=>mo,hu:()=>_o,hy:()=>So,id:()=>To,is:()=>Oo,it:()=>jo,ja:()=>Po,ka:()=>Lo,kh:()=>Uo,km:()=>Bo,ko:()=>Go,lt:()=>Yo,mk:()=>$o,ms:()=>ns,nl:()=>as,no:()=>cs,ota:()=>ds,pl:()=>_s,ps:()=>ms,pt:()=>bs,ro:()=>Cs,ru:()=>Ds,sl:()=>As,sv:()=>Ns,ta:()=>Is,th:()=>zs,tr:()=>Hs,ua:()=>Js,uk:()=>Gs,ur:()=>Xs,uz:()=>$s,vi:()=>nc,yo:()=>dc,zhCN:()=>ac,zhTW:()=>cc}),hc=o((()=>{_a(),ba(),wa(),Da(),Aa(),Na(),Ia(),za(),Ha(),Ga(),Ja(),Za(),eo(),ro(),oo(),lo(),po(),go(),yo(),wo(),Do(),Ao(),No(),Io(),zo(),Wo(),Ho(),qo(),Qo(),ts(),is(),ss(),us(),ps(),gs(),ys(),Ss(),Ts(),ks(),Ms(),Fs(),Rs(),Vs(),Ws(),Ys(),qs(),Qs(),tc(),ic(),sc(),uc(),pc()}));function gc(){return new bc}var _c,vc,yc,bc,xc,Sc=o((()=>{vc=Symbol(`ZodOutput`),yc=Symbol(`ZodInput`),bc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(_c=globalThis).__zod_globalRegistry??(_c.__zod_globalRegistry=gc()),xc=globalThis.__zod_globalRegistry}));function Cc(e,t){return new e({type:`string`,...I(t)})}function wc(e,t){return new e({type:`string`,coerce:!0,...I(t)})}function Tc(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...I(t)})}function Ec(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...I(t)})}function Dc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...I(t)})}function Oc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...I(t)})}function kc(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...I(t)})}function Ac(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...I(t)})}function jc(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...I(t)})}function Mc(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...I(t)})}function Nc(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...I(t)})}function Pc(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...I(t)})}function Fc(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...I(t)})}function Ic(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...I(t)})}function Lc(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...I(t)})}function Rc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...I(t)})}function zc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...I(t)})}function Bc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...I(t)})}function Vc(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...I(t)})}function Hc(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...I(t)})}function Uc(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...I(t)})}function Wc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...I(t)})}function Gc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...I(t)})}function Kc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...I(t)})}function qc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...I(t)})}function Jc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...I(t)})}function Yc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...I(t)})}function Xc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...I(t)})}function Zc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...I(t)})}function Qc(e,t){return new e({type:`number`,checks:[],...I(t)})}function $c(e,t){return new e({type:`number`,coerce:!0,checks:[],...I(t)})}function el(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...I(t)})}function tl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...I(t)})}function nl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...I(t)})}function rl(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...I(t)})}function il(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...I(t)})}function al(e,t){return new e({type:`boolean`,...I(t)})}function ol(e,t){return new e({type:`boolean`,coerce:!0,...I(t)})}function sl(e,t){return new e({type:`bigint`,...I(t)})}function cl(e,t){return new e({type:`bigint`,coerce:!0,...I(t)})}function ll(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...I(t)})}function ul(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...I(t)})}function dl(e,t){return new e({type:`symbol`,...I(t)})}function fl(e,t){return new e({type:`undefined`,...I(t)})}function pl(e,t){return new e({type:`null`,...I(t)})}function ml(e){return new e({type:`any`})}function hl(e){return new e({type:`unknown`})}function gl(e,t){return new e({type:`never`,...I(t)})}function _l(e,t){return new e({type:`void`,...I(t)})}function vl(e,t){return new e({type:`date`,...I(t)})}function yl(e,t){return new e({type:`date`,coerce:!0,...I(t)})}function bl(e,t){return new e({type:`nan`,...I(t)})}function xl(e,t){return new $n({check:`less_than`,...I(t),value:e,inclusive:!1})}function Sl(e,t){return new $n({check:`less_than`,...I(t),value:e,inclusive:!0})}function Cl(e,t){return new er({check:`greater_than`,...I(t),value:e,inclusive:!1})}function wl(e,t){return new er({check:`greater_than`,...I(t),value:e,inclusive:!0})}function Tl(e){return Cl(0,e)}function El(e){return xl(0,e)}function Dl(e){return Sl(0,e)}function Ol(e){return wl(0,e)}function kl(e,t){return new tr({check:`multiple_of`,...I(t),value:e})}function Al(e,t){return new ir({check:`max_size`,...I(t),maximum:e})}function jl(e,t){return new ar({check:`min_size`,...I(t),minimum:e})}function Ml(e,t){return new or({check:`size_equals`,...I(t),size:e})}function Nl(e,t){return new sr({check:`max_length`,...I(t),maximum:e})}function Pl(e,t){return new cr({check:`min_length`,...I(t),minimum:e})}function Fl(e,t){return new lr({check:`length_equals`,...I(t),length:e})}function Il(e,t){return new dr({check:`string_format`,format:`regex`,...I(t),pattern:e})}function Ll(e){return new fr({check:`string_format`,format:`lowercase`,...I(e)})}function Rl(e){return new pr({check:`string_format`,format:`uppercase`,...I(e)})}function zl(e,t){return new mr({check:`string_format`,format:`includes`,...I(t),includes:e})}function Bl(e,t){return new hr({check:`string_format`,format:`starts_with`,...I(t),prefix:e})}function Vl(e,t){return new gr({check:`string_format`,format:`ends_with`,...I(t),suffix:e})}function Hl(e,t,n){return new _r({check:`property`,property:e,schema:t,...I(n)})}function Ul(e,t){return new vr({check:`mime_type`,mime:e,...I(t)})}function Wl(e){return new yr({check:`overwrite`,tx:e})}function Gl(e){return Wl(t=>t.normalize(e))}function Kl(){return Wl(e=>e.trim())}function ql(){return Wl(e=>e.toLowerCase())}function Jl(){return Wl(e=>e.toUpperCase())}function Yl(){return Wl(e=>_e(e))}function Xl(e,t,n){return new e({type:`array`,element:t,...I(n)})}function Zl(e,t,n){return new e({type:`union`,options:t,...I(n)})}function Ql(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...I(n)})}function $l(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...I(r)})}function eu(e,t,n){return new e({type:`intersection`,left:t,right:n})}function tu(e,t,n,r){let i=n instanceof B;return new e({type:`tuple`,items:t,rest:i?n:null,...I(i?r:n)})}function nu(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...I(r)})}function ru(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...I(r)})}function iu(e,t,n){return new e({type:`set`,valueType:t,...I(n)})}function au(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...I(n)})}function ou(e,t,n){return new e({type:`enum`,entries:t,...I(n)})}function su(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...I(n)})}function cu(e,t){return new e({type:`file`,...I(t)})}function lu(e,t){return new e({type:`transform`,transform:t})}function uu(e,t){return new e({type:`optional`,innerType:t})}function du(e,t){return new e({type:`nullable`,innerType:t})}function fu(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():be(n)}})}function pu(e,t,n){return new e({type:`nonoptional`,innerType:t,...I(n)})}function mu(e,t){return new e({type:`success`,innerType:t})}function hu(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function gu(e,t,n){return new e({type:`pipe`,in:t,out:n})}function _u(e,t){return new e({type:`readonly`,innerType:t})}function vu(e,t,n){return new e({type:`template_literal`,parts:t,...I(n)})}function yu(e,t){return new e({type:`lazy`,getter:t})}function bu(e,t){return new e({type:`promise`,innerType:t})}function xu(e,t,n){let r=I(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Su(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...I(n)})}function Cu(e,t){let n=wu(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Be(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Be(r))}},e(t.value,t)),t);return n}function wu(e,t){let n=new Zn({check:`custom`,...I(t)});return n._zod.check=e,n}function Tu(e){let t=new Zn({check:`describe`});return t._zod.onattach=[t=>{let n=xc.get(t)??{};xc.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function Eu(e){let t=new Zn({check:`meta`});return t._zod.onattach=[t=>{let n=xc.get(t)??{};xc.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Du(e,t){let n=I(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??oa,c=e.Boolean??wi,l=new s({type:`pipe`,in:new(e.String??Yr)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function Ou(e,t,n,r={}){let i=I(r),a={...I(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var ku,Au=o((()=>{br(),Sc(),ma(),z(),ku={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function ju(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??xc,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Mu(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Mu(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Fu(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Nu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Pu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Lu(t,`input`,e.processors),output:Lu(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Fu(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Fu(r.element,n);if(r.type===`set`)return Fu(r.valueType,n);if(r.type===`lazy`)return Fu(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Fu(r.innerType,n);if(r.type===`intersection`)return Fu(r.left,n)||Fu(r.right,n);if(r.type===`record`||r.type===`map`)return Fu(r.keyType,n)||Fu(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Fu(r.in,n)||Fu(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Fu(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Fu(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Fu(e,n))return!0;return!!(r.rest&&Fu(r.rest,n))}return!1}var Iu,Lu,Ru=o((()=>{Sc(),Iu=(e,t={})=>n=>{let r=ju({...n,processors:t});return Mu(e,r),Nu(r,e),Pu(r,e)},Lu=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ju({...i??{},target:a,io:t,processors:n});return Mu(e,o),Nu(o,e),Pu(o,e)}}));function zu(e,t){if(`_idmap`in e){let n=e,r=ju({...t,processors:Ed}),i={};for(let e of n._idmap.entries()){let[t,n]=e;Mu(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Nu(r,n),a[t]=Pu(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=ju({...t,processors:Ed});return Mu(e,n),Nu(n,e),Pu(n,e)}var Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd=o((()=>{Ru(),z(),Bu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Vu=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Bu[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Hu=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Uu=(e,t,n,r)=>{n.type=`boolean`},Wu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Ju=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Yu=(e,t,n,r)=>{n.not={}},Xu=(e,t,n,r)=>{},Zu=(e,t,n,r)=>{},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{let i=e._zod.def,a=M(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ed=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},td=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},nd=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},rd=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},id=(e,t,n,r)=>{n.type=`boolean`},ad=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},od=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},sd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},cd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},ld=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},ud=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Mu(a.element,t,{...r,path:[...r.path,`items`]})},dd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Mu(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Mu(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},fd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Mu(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},pd=(e,t,n,r)=>{let i=e._zod.def,a=Mu(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Mu(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},md=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>Mu(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?Mu(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},hd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Mu(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Mu(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Mu(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},gd=(e,t,n,r)=>{let i=e._zod.def,a=Mu(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},_d=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},vd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},yd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},bd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},xd=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Mu(o,t,r);let s=t.seen.get(e);s.ref=o},Sd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Cd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Td=(e,t,n,r)=>{let i=e._zod.innerType;Mu(i,t,r);let a=t.seen.get(e);a.ref=i},Ed={string:Vu,number:Hu,boolean:Uu,bigint:Wu,symbol:Gu,null:Ku,undefined:qu,void:Ju,never:Yu,any:Xu,unknown:Zu,date:Qu,enum:$u,literal:ed,nan:td,template_literal:nd,file:rd,success:id,custom:ad,function:od,transform:sd,map:cd,set:ld,array:ud,object:dd,union:fd,intersection:pd,tuple:md,record:hd,nullable:gd,nonoptional:_d,default:vd,prefault:yd,catch:bd,pipe:xd,readonly:Sd,promise:Cd,optional:wd,lazy:Td}})),Od,kd=o((()=>{Dd(),Ru(),Od=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=ju({processors:Ed,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Mu(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Nu(this.ctx,e);let{"~standard":n,...r}=Pu(this.ctx,e);return r}}})),Ad=c({}),jd=o((()=>{})),Md=c({$ZodAny:()=>Ai,$ZodArray:()=>Fi,$ZodAsyncError:()=>D,$ZodBase64:()=>_i,$ZodBase64URL:()=>vi,$ZodBigInt:()=>Ti,$ZodBigIntFormat:()=>Ei,$ZodBoolean:()=>wi,$ZodCIDRv4:()=>hi,$ZodCIDRv6:()=>gi,$ZodCUID:()=>ri,$ZodCUID2:()=>ii,$ZodCatch:()=>ra,$ZodCheck:()=>Zn,$ZodCheckBigIntFormat:()=>rr,$ZodCheckEndsWith:()=>gr,$ZodCheckGreaterThan:()=>er,$ZodCheckIncludes:()=>mr,$ZodCheckLengthEquals:()=>lr,$ZodCheckLessThan:()=>$n,$ZodCheckLowerCase:()=>fr,$ZodCheckMaxLength:()=>sr,$ZodCheckMaxSize:()=>ir,$ZodCheckMimeType:()=>vr,$ZodCheckMinLength:()=>cr,$ZodCheckMinSize:()=>ar,$ZodCheckMultipleOf:()=>tr,$ZodCheckNumberFormat:()=>nr,$ZodCheckOverwrite:()=>yr,$ZodCheckProperty:()=>_r,$ZodCheckRegex:()=>dr,$ZodCheckSizeEquals:()=>or,$ZodCheckStartsWith:()=>hr,$ZodCheckStringFormat:()=>ur,$ZodCheckUpperCase:()=>pr,$ZodCodec:()=>oa,$ZodCustom:()=>pa,$ZodCustomStringFormat:()=>xi,$ZodDate:()=>Pi,$ZodDefault:()=>$i,$ZodDiscriminatedUnion:()=>Bi,$ZodE164:()=>yi,$ZodEmail:()=>$r,$ZodEmoji:()=>ti,$ZodEncodeError:()=>O,$ZodEnum:()=>Ki,$ZodError:()=>lt,$ZodExactOptional:()=>Zi,$ZodFile:()=>Ji,$ZodFunction:()=>ua,$ZodGUID:()=>Zr,$ZodIPv4:()=>fi,$ZodIPv6:()=>pi,$ZodISODate:()=>li,$ZodISODateTime:()=>ci,$ZodISODuration:()=>di,$ZodISOTime:()=>ui,$ZodIntersection:()=>Vi,$ZodJWT:()=>bi,$ZodKSUID:()=>si,$ZodLazy:()=>fa,$ZodLiteral:()=>qi,$ZodMAC:()=>mi,$ZodMap:()=>Wi,$ZodNaN:()=>ia,$ZodNanoID:()=>ni,$ZodNever:()=>Mi,$ZodNonOptional:()=>ta,$ZodNull:()=>ki,$ZodNullable:()=>Qi,$ZodNumber:()=>Si,$ZodNumberFormat:()=>Ci,$ZodObject:()=>Ii,$ZodObjectJIT:()=>Li,$ZodOptional:()=>Xi,$ZodPipe:()=>aa,$ZodPrefault:()=>ea,$ZodPreprocess:()=>sa,$ZodPromise:()=>da,$ZodReadonly:()=>ca,$ZodRealError:()=>ut,$ZodRecord:()=>Ui,$ZodRegistry:()=>bc,$ZodSet:()=>Gi,$ZodString:()=>Yr,$ZodStringFormat:()=>Xr,$ZodSuccess:()=>na,$ZodSymbol:()=>Di,$ZodTemplateLiteral:()=>la,$ZodTransform:()=>Yi,$ZodTuple:()=>Hi,$ZodType:()=>B,$ZodULID:()=>ai,$ZodURL:()=>ei,$ZodUUID:()=>Qr,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ri,$ZodUnknown:()=>ji,$ZodVoid:()=>Ni,$ZodXID:()=>oi,$ZodXor:()=>zi,$brand:()=>E,$constructor:()=>S,$input:()=>yc,$output:()=>vc,Doc:()=>xr,JSONSchema:()=>Ad,JSONSchemaGenerator:()=>Od,NEVER:()=>T,TimePrecision:()=>ku,_any:()=>ml,_array:()=>Xl,_base64:()=>Wc,_base64url:()=>Gc,_bigint:()=>sl,_boolean:()=>al,_catch:()=>hu,_check:()=>wu,_cidrv4:()=>Hc,_cidrv6:()=>Uc,_coercedBigint:()=>cl,_coercedBoolean:()=>ol,_coercedDate:()=>yl,_coercedNumber:()=>$c,_coercedString:()=>wc,_cuid:()=>Pc,_cuid2:()=>Fc,_custom:()=>xu,_date:()=>vl,_decode:()=>St,_decodeAsync:()=>Et,_default:()=>fu,_discriminatedUnion:()=>$l,_e164:()=>Kc,_email:()=>Tc,_emoji:()=>Mc,_encode:()=>bt,_encodeAsync:()=>wt,_endsWith:()=>Vl,_enum:()=>au,_file:()=>cu,_float32:()=>tl,_float64:()=>nl,_gt:()=>Cl,_gte:()=>wl,_guid:()=>Ec,_includes:()=>zl,_int:()=>el,_int32:()=>rl,_int64:()=>ll,_intersection:()=>eu,_ipv4:()=>zc,_ipv6:()=>Bc,_isoDate:()=>Yc,_isoDateTime:()=>Jc,_isoDuration:()=>Zc,_isoTime:()=>Xc,_jwt:()=>qc,_ksuid:()=>Rc,_lazy:()=>yu,_length:()=>Fl,_literal:()=>su,_lowercase:()=>Ll,_lt:()=>xl,_lte:()=>Sl,_mac:()=>Vc,_map:()=>ru,_max:()=>Sl,_maxLength:()=>Nl,_maxSize:()=>Al,_mime:()=>Ul,_min:()=>wl,_minLength:()=>Pl,_minSize:()=>jl,_multipleOf:()=>kl,_nan:()=>bl,_nanoid:()=>Nc,_nativeEnum:()=>ou,_negative:()=>El,_never:()=>gl,_nonnegative:()=>Ol,_nonoptional:()=>pu,_nonpositive:()=>Dl,_normalize:()=>Gl,_null:()=>pl,_nullable:()=>du,_number:()=>Qc,_optional:()=>uu,_overwrite:()=>Wl,_parse:()=>ft,_parseAsync:()=>mt,_pipe:()=>gu,_positive:()=>Tl,_promise:()=>bu,_property:()=>Hl,_readonly:()=>_u,_record:()=>nu,_refine:()=>Su,_regex:()=>Il,_safeDecode:()=>At,_safeDecodeAsync:()=>Pt,_safeEncode:()=>Ot,_safeEncodeAsync:()=>Mt,_safeParse:()=>gt,_safeParseAsync:()=>vt,_set:()=>iu,_size:()=>Ml,_slugify:()=>Yl,_startsWith:()=>Bl,_string:()=>Cc,_stringFormat:()=>Ou,_stringbool:()=>Du,_success:()=>mu,_superRefine:()=>Cu,_symbol:()=>dl,_templateLiteral:()=>vu,_toLowerCase:()=>ql,_toUpperCase:()=>Jl,_transform:()=>lu,_trim:()=>Kl,_tuple:()=>tu,_uint32:()=>il,_uint64:()=>ul,_ulid:()=>Ic,_undefined:()=>fl,_union:()=>Zl,_unknown:()=>hl,_uppercase:()=>Rl,_url:()=>jc,_uuid:()=>Dc,_uuidv4:()=>Oc,_uuidv6:()=>kc,_uuidv7:()=>Ac,_void:()=>_l,_xid:()=>Lc,_xor:()=>Ql,clone:()=>Ce,config:()=>C,createStandardJSONSchemaMethod:()=>Lu,createToJSONSchemaMethod:()=>Iu,decode:()=>Ct,decodeAsync:()=>Dt,describe:()=>Tu,encode:()=>xt,encodeAsync:()=>Tt,extractDefs:()=>Nu,finalize:()=>Pu,flattenError:()=>rt,formatError:()=>it,globalConfig:()=>k,globalRegistry:()=>xc,initializeContext:()=>ju,isValidBase64:()=>Tr,isValidBase64URL:()=>Er,isValidJWT:()=>Dr,locales:()=>mc,meta:()=>Eu,parse:()=>pt,parseAsync:()=>ht,prettifyError:()=>st,process:()=>Mu,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>jt,safeDecodeAsync:()=>Ft,safeEncode:()=>kt,safeEncodeAsync:()=>Nt,safeParse:()=>_t,safeParseAsync:()=>yt,toDotPath:()=>ot,toJSONSchema:()=>zu,treeifyError:()=>at,util:()=>te,version:()=>Cr}),Nd=o((()=>{ee(),It(),dt(),ma(),br(),wr(),z(),Yn(),hc(),Sc(),Sr(),Au(),Ru(),Dd(),kd(),jd()}));It();function Pd(e){return!!e._zod}function Fd(e,t){return Pd(e)?_t(e,t):e.safeParse(t)}function Id(e){if(!e)return;let t;if(t=Pd(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Ld(e){if(Pd(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Rd=c({endsWith:()=>Vl,gt:()=>Cl,gte:()=>wl,includes:()=>zl,length:()=>Fl,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,maxLength:()=>Nl,maxSize:()=>Al,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,negative:()=>El,nonnegative:()=>Ol,nonpositive:()=>Dl,normalize:()=>Gl,overwrite:()=>Wl,positive:()=>Tl,property:()=>Hl,regex:()=>Il,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,toLowerCase:()=>ql,toUpperCase:()=>Jl,trim:()=>Kl,uppercase:()=>Rl}),zd=o((()=>{Nd()})),Bd=c({ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,date:()=>Hd,datetime:()=>Vd,duration:()=>Wd,time:()=>Ud});function Vd(e){return Jc(Gd,e)}function Hd(e){return Yc(Kd,e)}function Ud(e){return Xc(qd,e)}function Wd(e){return Zc(Jd,e)}var Gd,Kd,qd,Jd,Yd=o((()=>{Nd(),mh(),Gd=S(`ZodISODateTime`,(e,t)=>{ci.init(e,t),Qp.init(e,t)}),Kd=S(`ZodISODate`,(e,t)=>{li.init(e,t),Qp.init(e,t)}),qd=S(`ZodISOTime`,(e,t)=>{ui.init(e,t),Qp.init(e,t)}),Jd=S(`ZodISODuration`,(e,t)=>{di.init(e,t),Qp.init(e,t)})})),Xd,Zd,Qd,$d=o((()=>{Nd(),z(),Xd=(e,t)=>{lt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>it(e,t)},flatten:{value:t=>rt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ae,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ae,2)}},isEmpty:{get(){return e.issues.length===0}}})},Zd=S(`ZodError`,Xd),Qd=S(`ZodError`,Xd,{Parent:Error})})),ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf=o((()=>{Nd(),$d(),ef=ft(Qd),tf=mt(Qd),nf=gt(Qd),rf=vt(Qd),af=bt(Qd),of=St(Qd),sf=wt(Qd),cf=Et(Qd),lf=Ot(Qd),uf=At(Qd),df=Mt(Qd),ff=Pt(Qd)})),mf=c({ZodAny:()=>Om,ZodArray:()=>Nm,ZodBase64:()=>hm,ZodBase64URL:()=>gm,ZodBigInt:()=>Cm,ZodBigIntFormat:()=>wm,ZodBoolean:()=>Sm,ZodCIDRv4:()=>pm,ZodCIDRv6:()=>mm,ZodCUID:()=>am,ZodCUID2:()=>om,ZodCatch:()=>eh,ZodCodec:()=>rh,ZodCustom:()=>uh,ZodCustomStringFormat:()=>ym,ZodDate:()=>Mm,ZodDefault:()=>Xm,ZodDiscriminatedUnion:()=>Lm,ZodE164:()=>_m,ZodEmail:()=>$p,ZodEmoji:()=>rm,ZodEnum:()=>Um,ZodExactOptional:()=>Jm,ZodFile:()=>Gm,ZodFunction:()=>lh,ZodGUID:()=>em,ZodIPv4:()=>um,ZodIPv6:()=>fm,ZodIntersection:()=>Rm,ZodJWT:()=>vm,ZodKSUID:()=>lm,ZodLazy:()=>sh,ZodLiteral:()=>Wm,ZodMAC:()=>dm,ZodMap:()=>Vm,ZodNaN:()=>th,ZodNanoID:()=>im,ZodNever:()=>Am,ZodNonOptional:()=>Qm,ZodNull:()=>Dm,ZodNullable:()=>Ym,ZodNumber:()=>bm,ZodNumberFormat:()=>xm,ZodObject:()=>Pm,ZodOptional:()=>qm,ZodPipe:()=>nh,ZodPrefault:()=>Zm,ZodPreprocess:()=>ih,ZodPromise:()=>ch,ZodReadonly:()=>ah,ZodRecord:()=>Bm,ZodSet:()=>Hm,ZodString:()=>Zp,ZodStringFormat:()=>Qp,ZodSuccess:()=>$m,ZodSymbol:()=>Tm,ZodTemplateLiteral:()=>oh,ZodTransform:()=>Km,ZodTuple:()=>zm,ZodType:()=>K,ZodULID:()=>sm,ZodURL:()=>nm,ZodUUID:()=>tm,ZodUndefined:()=>Em,ZodUnion:()=>Fm,ZodUnknown:()=>km,ZodVoid:()=>jm,ZodXID:()=>cm,ZodXor:()=>Im,_ZodString:()=>Xp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,codec:()=>Fp,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,describe:()=>dh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,float32:()=>Gf,float64:()=>Kf,function:()=>Vp,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,literal:()=>G,looseObject:()=>lp,looseRecord:()=>_p,mac:()=>Mf,map:()=>vp,meta:()=>fh,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,never:()=>ip,nonoptional:()=>Ap,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,partialRecord:()=>gp,pipe:()=>Pp,prefault:()=>kp,preprocess:()=>Jp,promise:()=>Bp,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,set:()=>yp,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>ph,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,transform:()=>Cp,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,url:()=>Sf,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp});function hf(e,t,n){let r=Object.getPrototypeOf(e),i=Yp.get(r);if(i||(i=new Set,Yp.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function V(e){return Cc(Zp,e)}function gf(e){return Tc($p,e)}function _f(e){return Ec(em,e)}function vf(e){return Dc(tm,e)}function yf(e){return Oc(tm,e)}function bf(e){return kc(tm,e)}function xf(e){return Ac(tm,e)}function Sf(e){return jc(nm,e)}function Cf(e){return jc(nm,{protocol:bn,hostname:yn,...I(e)})}function wf(e){return Mc(rm,e)}function Tf(e){return Nc(im,e)}function Ef(e){return Pc(am,e)}function Df(e){return Fc(om,e)}function Of(e){return Ic(sm,e)}function kf(e){return Lc(cm,e)}function Af(e){return Rc(lm,e)}function jf(e){return zc(um,e)}function Mf(e){return Vc(dm,e)}function Nf(e){return Bc(fm,e)}function Pf(e){return Hc(pm,e)}function Ff(e){return Uc(mm,e)}function If(e){return Wc(hm,e)}function Lf(e){return Gc(gm,e)}function Rf(e){return Kc(_m,e)}function zf(e){return qc(vm,e)}function Bf(e,t,n={}){return Ou(ym,e,t,n)}function Vf(e){return Ou(ym,`hostname`,vn,e)}function Hf(e){return Ou(ym,`hex`,Nn,e)}function Uf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Lt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Ou(ym,n,r,t)}function H(e){return Qc(bm,e)}function Wf(e){return el(xm,e)}function Gf(e){return tl(xm,e)}function Kf(e){return nl(xm,e)}function qf(e){return rl(xm,e)}function Jf(e){return il(xm,e)}function Yf(e){return al(Sm,e)}function Xf(e){return sl(Cm,e)}function Zf(e){return ll(wm,e)}function Qf(e){return ul(wm,e)}function $f(e){return dl(Tm,e)}function ep(e){return fl(Em,e)}function tp(e){return pl(Dm,e)}function np(){return ml(Om)}function rp(){return hl(km)}function ip(e){return gl(Am,e)}function ap(e){return _l(jm,e)}function op(e){return vl(Mm,e)}function U(e,t){return Xl(Nm,e,t)}function sp(e){let t=e._zod.def.shape;return bp(Object.keys(t))}function W(e,t){let n={type:`object`,shape:e??{},...I(t)};return new Pm(n)}function cp(e,t){return new Pm({type:`object`,shape:e,catchall:ip(),...I(t)})}function lp(e,t){return new Pm({type:`object`,shape:e,catchall:rp(),...I(t)})}function up(e,t){return new Fm({type:`union`,options:e,...I(t)})}function dp(e,t){return new Im({type:`union`,options:e,inclusive:!1,...I(t)})}function fp(e,t,n){return new Lm({type:`union`,options:t,discriminator:e,...I(n)})}function pp(e,t){return new Rm({type:`intersection`,left:e,right:t})}function mp(e,t,n){let r=t instanceof B;return new zm({type:`tuple`,items:e,rest:r?t:null,...I(r?n:t)})}function hp(e,t,n){return!t||!t._zod?new Bm({type:`record`,keyType:V(),valueType:e,...I(t)}):new Bm({type:`record`,keyType:e,valueType:t,...I(n)})}function gp(e,t,n){let r=Ce(e);return r._zod.values=void 0,new Bm({type:`record`,keyType:r,valueType:t,...I(n)})}function _p(e,t,n){return new Bm({type:`record`,keyType:e,valueType:t,mode:`loose`,...I(n)})}function vp(e,t,n){return new Vm({type:`map`,keyType:e,valueType:t,...I(n)})}function yp(e,t){return new Hm({type:`set`,valueType:e,...I(t)})}function bp(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Um({type:`enum`,entries:n,...I(t)})}function xp(e,t){return new Um({type:`enum`,entries:e,...I(t)})}function G(e,t){return new Wm({type:`literal`,values:Array.isArray(e)?e:[e],...I(t)})}function Sp(e){return cu(Gm,e)}function Cp(e){return new Km({type:`transform`,transform:e})}function wp(e){return new qm({type:`optional`,innerType:e})}function Tp(e){return new Jm({type:`optional`,innerType:e})}function Ep(e){return new Ym({type:`nullable`,innerType:e})}function Dp(e){return wp(Ep(e))}function Op(e,t){return new Xm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function kp(e,t){return new Zm({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function Ap(e,t){return new Qm({type:`nonoptional`,innerType:e,...I(t)})}function jp(e){return new $m({type:`success`,innerType:e})}function Mp(e,t){return new eh({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Np(e){return bl(th,e)}function Pp(e,t){return new nh({type:`pipe`,in:e,out:t})}function Fp(e,t,n){return new rh({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Ip(e){let t=e._zod.def;return new rh({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Lp(e){return new ah({type:`readonly`,innerType:e})}function Rp(e,t){return new oh({type:`template_literal`,parts:e,...I(t)})}function zp(e){return new sh({type:`lazy`,getter:e})}function Bp(e){return new ch({type:`promise`,innerType:e})}function Vp(e){return new lh({type:`function`,input:Array.isArray(e?.input)?mp(e?.input):e?.input??U(rp()),output:e?.output??rp()})}function Hp(e){let t=new Zn({check:`custom`});return t._zod.check=e,t}function Up(e,t){return xu(uh,e??(()=>!0),t)}function Wp(e,t={}){return Su(uh,e,t)}function Gp(e,t){return Cu(e,t)}function Kp(e,t={}){let n=new uh({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...I(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function qp(e){let t=zp(()=>up([V(e),H(),Yf(),tp(),U(t),hp(V(),t)]));return t}function Jp(e,t){return new ih({type:`pipe`,in:Cp(e),out:t})}var Yp,K,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh=o((()=>{Nd(),Dd(),Ru(),zd(),Yd(),pf(),Yp=new WeakMap,K=S(`ZodType`,(e,t)=>(B.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Lu(e,`input`),output:Lu(e,`output`)}}),e.toJSONSchema=Iu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ef(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>nf(e,t,n),e.parseAsync=async(t,n)=>tf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>rf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>af(e,t,n),e.decode=(t,n)=>of(e,t,n),e.encodeAsync=async(t,n)=>sf(e,t,n),e.decodeAsync=async(t,n)=>cf(e,t,n),e.safeEncode=(t,n)=>lf(e,t,n),e.safeDecode=(t,n)=>uf(e,t,n),e.safeEncodeAsync=async(t,n)=>df(e,t,n),e.safeDecodeAsync=async(t,n)=>ff(e,t,n),hf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(de(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Wp(e,t))},superRefine(e,t){return this.check(Gp(e,t))},overwrite(e){return this.check(Wl(e))},optional(){return wp(this)},exactOptional(){return Tp(this)},nullable(){return Ep(this)},nullish(){return wp(Ep(this))},nonoptional(e){return Ap(this,e)},array(){return U(this)},or(e){return up([this,e])},and(e){return pp(this,e)},transform(e){return Pp(this,Cp(e))},default(e){return Op(this,e)},prefault(e){return kp(this,e)},catch(e){return Mp(this,e)},pipe(e){return Pp(this,e)},readonly(){return Lp(this)},describe(e){let t=this.clone();return xc.add(t,{description:e}),t},meta(...e){if(e.length===0)return xc.get(this);let t=this.clone();return xc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return xc.get(e)?.description},configurable:!0}),e)),Xp=S(`_ZodString`,(e,t)=>{Yr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,hf(e,`_ZodString`,{regex(...e){return this.check(Il(...e))},includes(...e){return this.check(zl(...e))},startsWith(...e){return this.check(Bl(...e))},endsWith(...e){return this.check(Vl(...e))},min(...e){return this.check(Pl(...e))},max(...e){return this.check(Nl(...e))},length(...e){return this.check(Fl(...e))},nonempty(...e){return this.check(Pl(1,...e))},lowercase(e){return this.check(Ll(e))},uppercase(e){return this.check(Rl(e))},trim(){return this.check(Kl())},normalize(...e){return this.check(Gl(...e))},toLowerCase(){return this.check(ql())},toUpperCase(){return this.check(Jl())},slugify(){return this.check(Yl())}})}),Zp=S(`ZodString`,(e,t)=>{Yr.init(e,t),Xp.init(e,t),e.email=t=>e.check(Tc($p,t)),e.url=t=>e.check(jc(nm,t)),e.jwt=t=>e.check(qc(vm,t)),e.emoji=t=>e.check(Mc(rm,t)),e.guid=t=>e.check(Ec(em,t)),e.uuid=t=>e.check(Dc(tm,t)),e.uuidv4=t=>e.check(Oc(tm,t)),e.uuidv6=t=>e.check(kc(tm,t)),e.uuidv7=t=>e.check(Ac(tm,t)),e.nanoid=t=>e.check(Nc(im,t)),e.guid=t=>e.check(Ec(em,t)),e.cuid=t=>e.check(Pc(am,t)),e.cuid2=t=>e.check(Fc(om,t)),e.ulid=t=>e.check(Ic(sm,t)),e.base64=t=>e.check(Wc(hm,t)),e.base64url=t=>e.check(Gc(gm,t)),e.xid=t=>e.check(Lc(cm,t)),e.ksuid=t=>e.check(Rc(lm,t)),e.ipv4=t=>e.check(zc(um,t)),e.ipv6=t=>e.check(Bc(fm,t)),e.cidrv4=t=>e.check(Hc(pm,t)),e.cidrv6=t=>e.check(Uc(mm,t)),e.e164=t=>e.check(Kc(_m,t)),e.datetime=t=>e.check(Vd(t)),e.date=t=>e.check(Hd(t)),e.time=t=>e.check(Ud(t)),e.duration=t=>e.check(Wd(t))}),Qp=S(`ZodStringFormat`,(e,t)=>{Xr.init(e,t),Xp.init(e,t)}),$p=S(`ZodEmail`,(e,t)=>{$r.init(e,t),Qp.init(e,t)}),em=S(`ZodGUID`,(e,t)=>{Zr.init(e,t),Qp.init(e,t)}),tm=S(`ZodUUID`,(e,t)=>{Qr.init(e,t),Qp.init(e,t)}),nm=S(`ZodURL`,(e,t)=>{ei.init(e,t),Qp.init(e,t)}),rm=S(`ZodEmoji`,(e,t)=>{ti.init(e,t),Qp.init(e,t)}),im=S(`ZodNanoID`,(e,t)=>{ni.init(e,t),Qp.init(e,t)}),am=S(`ZodCUID`,(e,t)=>{ri.init(e,t),Qp.init(e,t)}),om=S(`ZodCUID2`,(e,t)=>{ii.init(e,t),Qp.init(e,t)}),sm=S(`ZodULID`,(e,t)=>{ai.init(e,t),Qp.init(e,t)}),cm=S(`ZodXID`,(e,t)=>{oi.init(e,t),Qp.init(e,t)}),lm=S(`ZodKSUID`,(e,t)=>{si.init(e,t),Qp.init(e,t)}),um=S(`ZodIPv4`,(e,t)=>{fi.init(e,t),Qp.init(e,t)}),dm=S(`ZodMAC`,(e,t)=>{mi.init(e,t),Qp.init(e,t)}),fm=S(`ZodIPv6`,(e,t)=>{pi.init(e,t),Qp.init(e,t)}),pm=S(`ZodCIDRv4`,(e,t)=>{hi.init(e,t),Qp.init(e,t)}),mm=S(`ZodCIDRv6`,(e,t)=>{gi.init(e,t),Qp.init(e,t)}),hm=S(`ZodBase64`,(e,t)=>{_i.init(e,t),Qp.init(e,t)}),gm=S(`ZodBase64URL`,(e,t)=>{vi.init(e,t),Qp.init(e,t)}),_m=S(`ZodE164`,(e,t)=>{yi.init(e,t),Qp.init(e,t)}),vm=S(`ZodJWT`,(e,t)=>{bi.init(e,t),Qp.init(e,t)}),ym=S(`ZodCustomStringFormat`,(e,t)=>{xi.init(e,t),Qp.init(e,t)}),bm=S(`ZodNumber`,(e,t)=>{Si.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r),hf(e,`ZodNumber`,{gt(e,t){return this.check(Cl(e,t))},gte(e,t){return this.check(wl(e,t))},min(e,t){return this.check(wl(e,t))},lt(e,t){return this.check(xl(e,t))},lte(e,t){return this.check(Sl(e,t))},max(e,t){return this.check(Sl(e,t))},int(e){return this.check(Wf(e))},safe(e){return this.check(Wf(e))},positive(e){return this.check(Cl(0,e))},nonnegative(e){return this.check(wl(0,e))},negative(e){return this.check(xl(0,e))},nonpositive(e){return this.check(Sl(0,e))},multipleOf(e,t){return this.check(kl(e,t))},step(e,t){return this.check(kl(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),xm=S(`ZodNumberFormat`,(e,t)=>{Ci.init(e,t),bm.init(e,t)}),Sm=S(`ZodBoolean`,(e,t)=>{wi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),Cm=S(`ZodBigInt`,(e,t)=>{Ti.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r),e.gte=(t,n)=>e.check(wl(t,n)),e.min=(t,n)=>e.check(wl(t,n)),e.gt=(t,n)=>e.check(Cl(t,n)),e.gte=(t,n)=>e.check(wl(t,n)),e.min=(t,n)=>e.check(wl(t,n)),e.lt=(t,n)=>e.check(xl(t,n)),e.lte=(t,n)=>e.check(Sl(t,n)),e.max=(t,n)=>e.check(Sl(t,n)),e.positive=t=>e.check(Cl(BigInt(0),t)),e.negative=t=>e.check(xl(BigInt(0),t)),e.nonpositive=t=>e.check(Sl(BigInt(0),t)),e.nonnegative=t=>e.check(wl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(kl(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),wm=S(`ZodBigIntFormat`,(e,t)=>{Ei.init(e,t),Cm.init(e,t)}),Tm=S(`ZodSymbol`,(e,t)=>{Di.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r)}),Em=S(`ZodUndefined`,(e,t)=>{Oi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r)}),Dm=S(`ZodNull`,(e,t)=>{ki.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r)}),Om=S(`ZodAny`,(e,t)=>{Ai.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r)}),km=S(`ZodUnknown`,(e,t)=>{ji.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r)}),Am=S(`ZodNever`,(e,t)=>{Mi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),jm=S(`ZodVoid`,(e,t)=>{Ni.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),Mm=S(`ZodDate`,(e,t)=>{Pi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r),e.min=(t,n)=>e.check(wl(t,n)),e.max=(t,n)=>e.check(Sl(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),Nm=S(`ZodArray`,(e,t)=>{Fi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.element=t.element,hf(e,`ZodArray`,{min(e,t){return this.check(Pl(e,t))},nonempty(e){return this.check(Pl(1,e))},max(e,t){return this.check(Nl(e,t))},length(e,t){return this.check(Fl(e,t))},unwrap(){return this.element}})}),Pm=S(`ZodObject`,(e,t)=>{Li.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),F(e,`shape`,()=>t.shape),hf(e,`ZodObject`,{keyof(){return bp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rp()})},loose(){return this.clone({...this._zod.def,catchall:rp()})},strict(){return this.clone({...this._zod.def,catchall:ip()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Oe(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return Ee(this,e)},omit(e){return De(this,e)},partial(...e){return je(qm,this,e[0])},required(...e){return Me(Qm,this,e[0])}})}),Fm=S(`ZodUnion`,(e,t)=>{Ri.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.options=t.options}),Im=S(`ZodXor`,(e,t)=>{Fm.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.options=t.options}),Lm=S(`ZodDiscriminatedUnion`,(e,t)=>{Fm.init(e,t),Bi.init(e,t)}),Rm=S(`ZodIntersection`,(e,t)=>{Vi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r)}),zm=S(`ZodTuple`,(e,t)=>{Hi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Bm=S(`ZodRecord`,(e,t)=>{Ui.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Vm=S(`ZodMap`,(e,t)=>{Wi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(jl(...t)),e.nonempty=t=>e.check(jl(1,t)),e.max=(...t)=>e.check(Al(...t)),e.size=(...t)=>e.check(Ml(...t))}),Hm=S(`ZodSet`,(e,t)=>{Gi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.min=(...t)=>e.check(jl(...t)),e.nonempty=t=>e.check(jl(1,t)),e.max=(...t)=>e.check(Al(...t)),e.size=(...t)=>e.check(Ml(...t))}),Um=S(`ZodEnum`,(e,t)=>{Ki.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Um({...t,checks:[],...I(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Um({...t,checks:[],...I(r),entries:i})}}),Wm=S(`ZodLiteral`,(e,t)=>{qi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),Gm=S(`ZodFile`,(e,t)=>{Ji.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r),e.min=(t,n)=>e.check(jl(t,n)),e.max=(t,n)=>e.check(Al(t,n)),e.mime=(t,n)=>e.check(Ul(Array.isArray(t)?t:[t],n))}),Km=S(`ZodTransform`,(e,t)=>{Yi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new O(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),qm=S(`ZodOptional`,(e,t)=>{Xi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Jm=S(`ZodExactOptional`,(e,t)=>{Zi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ym=S(`ZodNullable`,(e,t)=>{Qi.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Xm=S(`ZodDefault`,(e,t)=>{$i.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Zm=S(`ZodPrefault`,(e,t)=>{ea.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Qm=S(`ZodNonOptional`,(e,t)=>{ta.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$m=S(`ZodSuccess`,(e,t)=>{na.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),eh=S(`ZodCatch`,(e,t)=>{ra.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),th=S(`ZodNaN`,(e,t)=>{ia.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r)}),nh=S(`ZodPipe`,(e,t)=>{aa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xd(e,t,n,r),e.in=t.in,e.out=t.out}),rh=S(`ZodCodec`,(e,t)=>{nh.init(e,t),oa.init(e,t)}),ih=S(`ZodPreprocess`,(e,t)=>{nh.init(e,t),sa.init(e,t)}),ah=S(`ZodReadonly`,(e,t)=>{ca.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),oh=S(`ZodTemplateLiteral`,(e,t)=>{la.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r)}),sh=S(`ZodLazy`,(e,t)=>{fa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Td(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),ch=S(`ZodPromise`,(e,t)=>{da.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),lh=S(`ZodFunction`,(e,t)=>{ua.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r)}),uh=S(`ZodCustom`,(e,t)=>{pa.init(e,t),K.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r)}),dh=Tu,fh=Eu,ph=(...e)=>Du({Codec:rh,Boolean:Sm,String:Zp},...e)}));function hh(e){C({customError:e})}function gh(){return C().customError}var _h,vh,yh=o((()=>{Nd(),_h={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},vh||={}}));function bh(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function xh(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Sh(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return q.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return q.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=Ch(xh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return q.null();if(n.length===0)return q.never();if(n.length===1)return q.literal(n[0]);if(n.every(e=>typeof e==`string`))return q.enum(n);let r=n.map(e=>q.literal(e));return r.length<2?r[0]:q.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return q.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Sh({...e,type:n},t));return r.length===0?q.never():r.length===1?r[0]:q.union(r)}if(!n)return q.any();let r;switch(n){case`string`:{let t=q.string();if(e.format){let n=e.format;n===`email`?t=t.check(q.email()):n===`uri`||n===`uri-reference`?t=t.check(q.url()):n===`uuid`||n===`guid`?t=t.check(q.uuid()):n===`date-time`?t=t.check(q.iso.datetime()):n===`date`?t=t.check(q.iso.date()):n===`time`?t=t.check(q.iso.time()):n===`duration`?t=t.check(q.iso.duration()):n===`ipv4`?t=t.check(q.ipv4()):n===`ipv6`?t=t.check(q.ipv6()):n===`mac`?t=t.check(q.mac()):n===`cidr`?t=t.check(q.cidrv4()):n===`cidr-v6`?t=t.check(q.cidrv6()):n===`base64`?t=t.check(q.base64()):n===`base64url`?t=t.check(q.base64url()):n===`e164`?t=t.check(q.e164()):n===`jwt`?t=t.check(q.jwt()):n===`emoji`?t=t.check(q.emoji()):n===`nanoid`?t=t.check(q.nanoid()):n===`cuid`?t=t.check(q.cuid()):n===`cuid2`?t=t.check(q.cuid2()):n===`ulid`?t=t.check(q.ulid()):n===`xid`?t=t.check(q.xid()):n===`ksuid`&&(t=t.check(q.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?q.number().int():q.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=q.boolean();break;case`null`:r=q.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=Ch(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=Ch(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?Ch(e.additionalProperties,t):q.any();if(Object.keys(n).length===0){r=q.record(i,a);break}let o=q.object(n).passthrough(),s=q.looseRecord(i,a);r=q.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=Ch(i[e],t),r=q.string().regex(new RegExp(e));o.push(q.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(q.object(n).passthrough()),s.push(...o),s.length===0)r=q.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=q.intersection(s[0],s[1]);for(let t=2;tCh(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?Ch(i,t):void 0;r=o?q.tuple(a).rest(o):q.tuple(a),typeof e.minItems==`number`&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(q.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>Ch(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?Ch(e.additionalItems,t):void 0;r=a?q.tuple(n).rest(a):q.tuple(n),typeof e.minItems==`number`&&(r=r.check(q.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(q.maxLength(e.maxItems)))}else if(i!==void 0){let n=Ch(i,t),a=q.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=q.array(q.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function Ch(e,t){if(typeof e==`boolean`)return e?q.any():q.never();let n=Sh(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>Ch(e,t)),a=q.union(i);n=r?q.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>Ch(e,t)),a=q.xor(i);n=r?q.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:q.any();else{let i=r?n:Ch(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function wh(e,t){if(typeof e==`boolean`)return e?q.any():q.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:bh(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??xc};return Ch(n,r)}var q,Th,Eh=o((()=>{Sc(),zd(),Yd(),mh(),q={...mf,...Rd,iso:Bd},Th=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),Dh=c({bigint:()=>jh,boolean:()=>Ah,date:()=>Mh,number:()=>kh,string:()=>Oh});function Oh(e){return wc(Zp,e)}function kh(e){return $c(bm,e)}function Ah(e){return ol(Sm,e)}function jh(e){return cl(Cm,e)}function Mh(e){return yl(Mm,e)}var Nh=o((()=>{Nd(),mh()})),Ph=c({$brand:()=>E,$input:()=>yc,$output:()=>vc,NEVER:()=>T,TimePrecision:()=>ku,ZodAny:()=>Om,ZodArray:()=>Nm,ZodBase64:()=>hm,ZodBase64URL:()=>gm,ZodBigInt:()=>Cm,ZodBigIntFormat:()=>wm,ZodBoolean:()=>Sm,ZodCIDRv4:()=>pm,ZodCIDRv6:()=>mm,ZodCUID:()=>am,ZodCUID2:()=>om,ZodCatch:()=>eh,ZodCodec:()=>rh,ZodCustom:()=>uh,ZodCustomStringFormat:()=>ym,ZodDate:()=>Mm,ZodDefault:()=>Xm,ZodDiscriminatedUnion:()=>Lm,ZodE164:()=>_m,ZodEmail:()=>$p,ZodEmoji:()=>rm,ZodEnum:()=>Um,ZodError:()=>Zd,ZodExactOptional:()=>Jm,ZodFile:()=>Gm,ZodFirstPartyTypeKind:()=>vh,ZodFunction:()=>lh,ZodGUID:()=>em,ZodIPv4:()=>um,ZodIPv6:()=>fm,ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,ZodIntersection:()=>Rm,ZodIssueCode:()=>_h,ZodJWT:()=>vm,ZodKSUID:()=>lm,ZodLazy:()=>sh,ZodLiteral:()=>Wm,ZodMAC:()=>dm,ZodMap:()=>Vm,ZodNaN:()=>th,ZodNanoID:()=>im,ZodNever:()=>Am,ZodNonOptional:()=>Qm,ZodNull:()=>Dm,ZodNullable:()=>Ym,ZodNumber:()=>bm,ZodNumberFormat:()=>xm,ZodObject:()=>Pm,ZodOptional:()=>qm,ZodPipe:()=>nh,ZodPrefault:()=>Zm,ZodPreprocess:()=>ih,ZodPromise:()=>ch,ZodReadonly:()=>ah,ZodRealError:()=>Qd,ZodRecord:()=>Bm,ZodSet:()=>Hm,ZodString:()=>Zp,ZodStringFormat:()=>Qp,ZodSuccess:()=>$m,ZodSymbol:()=>Tm,ZodTemplateLiteral:()=>oh,ZodTransform:()=>Km,ZodTuple:()=>zm,ZodType:()=>K,ZodULID:()=>sm,ZodURL:()=>nm,ZodUUID:()=>tm,ZodUndefined:()=>Em,ZodUnion:()=>Fm,ZodUnknown:()=>km,ZodVoid:()=>jm,ZodXID:()=>cm,ZodXor:()=>Im,_ZodString:()=>Xp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,clone:()=>Ce,codec:()=>Fp,coerce:()=>Dh,config:()=>C,core:()=>Md,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,decode:()=>of,decodeAsync:()=>cf,describe:()=>dh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,encode:()=>af,encodeAsync:()=>sf,endsWith:()=>Vl,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,flattenError:()=>rt,float32:()=>Gf,float64:()=>Kf,formatError:()=>it,fromJSONSchema:()=>wh,function:()=>Vp,getErrorMap:()=>gh,globalRegistry:()=>xc,gt:()=>Cl,gte:()=>wl,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,includes:()=>zl,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,iso:()=>Bd,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,length:()=>Fl,literal:()=>G,locales:()=>mc,looseObject:()=>lp,looseRecord:()=>_p,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,mac:()=>Mf,map:()=>vp,maxLength:()=>Nl,maxSize:()=>Al,meta:()=>fh,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,negative:()=>El,never:()=>ip,nonnegative:()=>Ol,nonoptional:()=>Ap,nonpositive:()=>Dl,normalize:()=>Gl,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,overwrite:()=>Wl,parse:()=>ef,parseAsync:()=>tf,partialRecord:()=>gp,pipe:()=>Pp,positive:()=>Tl,prefault:()=>kp,preprocess:()=>Jp,prettifyError:()=>st,promise:()=>Bp,property:()=>Hl,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,regex:()=>Il,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>uf,safeDecodeAsync:()=>ff,safeEncode:()=>lf,safeEncodeAsync:()=>df,safeParse:()=>nf,safeParseAsync:()=>rf,set:()=>yp,setErrorMap:()=>hh,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>ph,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,toJSONSchema:()=>zu,toLowerCase:()=>ql,toUpperCase:()=>Jl,transform:()=>Cp,treeifyError:()=>at,trim:()=>Kl,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,uppercase:()=>Rl,url:()=>Sf,util:()=>te,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp}),Fh=o((()=>{Nd(),mh(),zd(),$d(),pf(),yh(),Ga(),Dd(),Eh(),hc(),Yd(),Nh(),C(Ua())})),Ih,Lh=o((()=>{Fh(),Fh(),Ih=Ph})),Rh=c({$brand:()=>E,$input:()=>yc,$output:()=>vc,NEVER:()=>T,TimePrecision:()=>ku,ZodAny:()=>Om,ZodArray:()=>Nm,ZodBase64:()=>hm,ZodBase64URL:()=>gm,ZodBigInt:()=>Cm,ZodBigIntFormat:()=>wm,ZodBoolean:()=>Sm,ZodCIDRv4:()=>pm,ZodCIDRv6:()=>mm,ZodCUID:()=>am,ZodCUID2:()=>om,ZodCatch:()=>eh,ZodCodec:()=>rh,ZodCustom:()=>uh,ZodCustomStringFormat:()=>ym,ZodDate:()=>Mm,ZodDefault:()=>Xm,ZodDiscriminatedUnion:()=>Lm,ZodE164:()=>_m,ZodEmail:()=>$p,ZodEmoji:()=>rm,ZodEnum:()=>Um,ZodError:()=>Zd,ZodExactOptional:()=>Jm,ZodFile:()=>Gm,ZodFirstPartyTypeKind:()=>vh,ZodFunction:()=>lh,ZodGUID:()=>em,ZodIPv4:()=>um,ZodIPv6:()=>fm,ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,ZodIntersection:()=>Rm,ZodIssueCode:()=>_h,ZodJWT:()=>vm,ZodKSUID:()=>lm,ZodLazy:()=>sh,ZodLiteral:()=>Wm,ZodMAC:()=>dm,ZodMap:()=>Vm,ZodNaN:()=>th,ZodNanoID:()=>im,ZodNever:()=>Am,ZodNonOptional:()=>Qm,ZodNull:()=>Dm,ZodNullable:()=>Ym,ZodNumber:()=>bm,ZodNumberFormat:()=>xm,ZodObject:()=>Pm,ZodOptional:()=>qm,ZodPipe:()=>nh,ZodPrefault:()=>Zm,ZodPreprocess:()=>ih,ZodPromise:()=>ch,ZodReadonly:()=>ah,ZodRealError:()=>Qd,ZodRecord:()=>Bm,ZodSet:()=>Hm,ZodString:()=>Zp,ZodStringFormat:()=>Qp,ZodSuccess:()=>$m,ZodSymbol:()=>Tm,ZodTemplateLiteral:()=>oh,ZodTransform:()=>Km,ZodTuple:()=>zm,ZodType:()=>K,ZodULID:()=>sm,ZodURL:()=>nm,ZodUUID:()=>tm,ZodUndefined:()=>Em,ZodUnion:()=>Fm,ZodUnknown:()=>km,ZodVoid:()=>jm,ZodXID:()=>cm,ZodXor:()=>Im,_ZodString:()=>Xp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,clone:()=>Ce,codec:()=>Fp,coerce:()=>Dh,config:()=>C,core:()=>Md,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,decode:()=>of,decodeAsync:()=>cf,default:()=>zh,describe:()=>dh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,encode:()=>af,encodeAsync:()=>sf,endsWith:()=>Vl,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,flattenError:()=>rt,float32:()=>Gf,float64:()=>Kf,formatError:()=>it,fromJSONSchema:()=>wh,function:()=>Vp,getErrorMap:()=>gh,globalRegistry:()=>xc,gt:()=>Cl,gte:()=>wl,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,includes:()=>zl,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,iso:()=>Bd,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,length:()=>Fl,literal:()=>G,locales:()=>mc,looseObject:()=>lp,looseRecord:()=>_p,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,mac:()=>Mf,map:()=>vp,maxLength:()=>Nl,maxSize:()=>Al,meta:()=>fh,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,negative:()=>El,never:()=>ip,nonnegative:()=>Ol,nonoptional:()=>Ap,nonpositive:()=>Dl,normalize:()=>Gl,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,overwrite:()=>Wl,parse:()=>ef,parseAsync:()=>tf,partialRecord:()=>gp,pipe:()=>Pp,positive:()=>Tl,prefault:()=>kp,preprocess:()=>Jp,prettifyError:()=>st,promise:()=>Bp,property:()=>Hl,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,regex:()=>Il,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>uf,safeDecodeAsync:()=>ff,safeEncode:()=>lf,safeEncodeAsync:()=>df,safeParse:()=>nf,safeParseAsync:()=>rf,set:()=>yp,setErrorMap:()=>hh,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>ph,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,toJSONSchema:()=>zu,toLowerCase:()=>ql,toUpperCase:()=>Jl,transform:()=>Cp,treeifyError:()=>at,trim:()=>Kl,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,uppercase:()=>Rl,url:()=>Sf,util:()=>te,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp,z:()=>Ph}),zh,Bh=o((()=>{Lh(),Lh(),zh=Ih}));Bh();var Vh=`io.modelcontextprotocol/related-task`,Hh=Up(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Uh=up([V(),H().int()]),Wh=V();lp({ttl:H().optional(),pollInterval:H().optional()});var Gh=W({ttl:H().optional()}),Kh=W({taskId:V()}),qh=lp({progressToken:Uh.optional(),[Vh]:Kh.optional()}),Jh=W({_meta:qh.optional()}),Yh=Jh.extend({task:Gh.optional()}),Xh=e=>Yh.safeParse(e).success,Zh=W({method:V(),params:Jh.loose().optional()}),Qh=W({_meta:qh.optional()}),$h=W({method:V(),params:Qh.loose().optional()}),eg=lp({_meta:qh.optional()}),tg=up([V(),H().int()]),ng=W({jsonrpc:G(`2.0`),id:tg,...Zh.shape}).strict(),rg=e=>ng.safeParse(e).success,ig=W({jsonrpc:G(`2.0`),...$h.shape}).strict(),ag=e=>ig.safeParse(e).success,og=W({jsonrpc:G(`2.0`),id:tg,result:eg}).strict(),sg=e=>og.safeParse(e).success,cg;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(cg||={});var lg=W({jsonrpc:G(`2.0`),id:tg.optional(),error:W({code:H().int(),message:V(),data:rp().optional()})}).strict(),ug=e=>lg.safeParse(e).success,dg=up([ng,ig,og,lg]);up([og,lg]);var fg=eg.strict(),pg=Qh.extend({requestId:tg.optional(),reason:V().optional()}),mg=$h.extend({method:G(`notifications/cancelled`),params:pg}),hg=W({icons:U(W({src:V(),mimeType:V().optional(),sizes:U(V()).optional(),theme:bp([`light`,`dark`]).optional()})).optional()}),gg=W({name:V(),title:V().optional()}),_g=gg.extend({...gg.shape,...hg.shape,version:V(),websiteUrl:V().optional(),description:V().optional()}),vg=Jp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,pp(W({form:pp(W({applyDefaults:Yf().optional()}),hp(V(),rp())).optional(),url:Hh.optional()}),hp(V(),rp()).optional())),yg=lp({list:Hh.optional(),cancel:Hh.optional(),requests:lp({sampling:lp({createMessage:Hh.optional()}).optional(),elicitation:lp({create:Hh.optional()}).optional()}).optional()}),bg=lp({list:Hh.optional(),cancel:Hh.optional(),requests:lp({tools:lp({call:Hh.optional()}).optional()}).optional()}),xg=W({experimental:hp(V(),Hh).optional(),sampling:W({context:Hh.optional(),tools:Hh.optional()}).optional(),elicitation:vg.optional(),roots:W({listChanged:Yf().optional()}).optional(),tasks:yg.optional(),extensions:hp(V(),Hh).optional()}),Sg=Jh.extend({protocolVersion:V(),capabilities:xg,clientInfo:_g}),Cg=Zh.extend({method:G(`initialize`),params:Sg}),wg=W({experimental:hp(V(),Hh).optional(),logging:Hh.optional(),completions:Hh.optional(),prompts:W({listChanged:Yf().optional()}).optional(),resources:W({subscribe:Yf().optional(),listChanged:Yf().optional()}).optional(),tools:W({listChanged:Yf().optional()}).optional(),tasks:bg.optional(),extensions:hp(V(),Hh).optional()}),Tg=eg.extend({protocolVersion:V(),capabilities:wg,serverInfo:_g,instructions:V().optional()}),Eg=$h.extend({method:G(`notifications/initialized`),params:Qh.optional()}),Dg=Zh.extend({method:G(`ping`),params:Jh.optional()}),Og=W({progress:H(),total:wp(H()),message:wp(V())}),kg=W({...Qh.shape,...Og.shape,progressToken:Uh}),Ag=$h.extend({method:G(`notifications/progress`),params:kg}),jg=Jh.extend({cursor:Wh.optional()}),Mg=Zh.extend({params:jg.optional()}),Ng=eg.extend({nextCursor:Wh.optional()}),Pg=bp([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Fg=W({taskId:V(),status:Pg,ttl:up([H(),tp()]),createdAt:V(),lastUpdatedAt:V(),pollInterval:wp(H()),statusMessage:wp(V())}),Ig=eg.extend({task:Fg}),Lg=Qh.merge(Fg),Rg=$h.extend({method:G(`notifications/tasks/status`),params:Lg}),zg=Zh.extend({method:G(`tasks/get`),params:Jh.extend({taskId:V()})}),Bg=eg.merge(Fg),Vg=Zh.extend({method:G(`tasks/result`),params:Jh.extend({taskId:V()})});eg.loose();var Hg=Mg.extend({method:G(`tasks/list`)}),Ug=Ng.extend({tasks:U(Fg)}),Wg=Zh.extend({method:G(`tasks/cancel`),params:Jh.extend({taskId:V()})}),Gg=eg.merge(Fg),Kg=W({uri:V(),mimeType:wp(V()),_meta:hp(V(),rp()).optional()}),qg=Kg.extend({text:V()}),Jg=V().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Yg=Kg.extend({blob:Jg}),Xg=bp([`user`,`assistant`]),Zg=W({audience:U(Xg).optional(),priority:H().min(0).max(1).optional(),lastModified:Vd({offset:!0}).optional()}),Qg=W({...gg.shape,...hg.shape,uri:V(),description:wp(V()),mimeType:wp(V()),size:wp(H()),annotations:Zg.optional(),_meta:wp(lp({}))}),$g=W({...gg.shape,...hg.shape,uriTemplate:V(),description:wp(V()),mimeType:wp(V()),annotations:Zg.optional(),_meta:wp(lp({}))}),e_=Mg.extend({method:G(`resources/list`)}),t_=Ng.extend({resources:U(Qg)}),n_=Mg.extend({method:G(`resources/templates/list`)}),r_=Ng.extend({resourceTemplates:U($g)}),i_=Jh.extend({uri:V()}),a_=i_,o_=Zh.extend({method:G(`resources/read`),params:a_}),s_=eg.extend({contents:U(up([qg,Yg]))}),c_=$h.extend({method:G(`notifications/resources/list_changed`),params:Qh.optional()}),l_=i_,u_=Zh.extend({method:G(`resources/subscribe`),params:l_}),d_=i_,f_=Zh.extend({method:G(`resources/unsubscribe`),params:d_}),p_=Qh.extend({uri:V()}),m_=$h.extend({method:G(`notifications/resources/updated`),params:p_}),h_=W({name:V(),description:wp(V()),required:wp(Yf())}),g_=W({...gg.shape,...hg.shape,description:wp(V()),arguments:wp(U(h_)),_meta:wp(lp({}))}),__=Mg.extend({method:G(`prompts/list`)}),v_=Ng.extend({prompts:U(g_)}),y_=Jh.extend({name:V(),arguments:hp(V(),V()).optional()}),b_=Zh.extend({method:G(`prompts/get`),params:y_}),x_=W({type:G(`text`),text:V(),annotations:Zg.optional(),_meta:hp(V(),rp()).optional()}),S_=W({type:G(`image`),data:Jg,mimeType:V(),annotations:Zg.optional(),_meta:hp(V(),rp()).optional()}),C_=W({type:G(`audio`),data:Jg,mimeType:V(),annotations:Zg.optional(),_meta:hp(V(),rp()).optional()}),w_=W({type:G(`tool_use`),name:V(),id:V(),input:hp(V(),rp()),_meta:hp(V(),rp()).optional()}),T_=W({type:G(`resource`),resource:up([qg,Yg]),annotations:Zg.optional(),_meta:hp(V(),rp()).optional()}),E_=Qg.extend({type:G(`resource_link`)}),D_=up([x_,S_,C_,E_,T_]),O_=W({role:Xg,content:D_}),k_=eg.extend({description:V().optional(),messages:U(O_)}),A_=$h.extend({method:G(`notifications/prompts/list_changed`),params:Qh.optional()}),j_=W({title:V().optional(),readOnlyHint:Yf().optional(),destructiveHint:Yf().optional(),idempotentHint:Yf().optional(),openWorldHint:Yf().optional()}),M_=W({taskSupport:bp([`required`,`optional`,`forbidden`]).optional()}),N_=W({...gg.shape,...hg.shape,description:V().optional(),inputSchema:W({type:G(`object`),properties:hp(V(),Hh).optional(),required:U(V()).optional()}).catchall(rp()),outputSchema:W({type:G(`object`),properties:hp(V(),Hh).optional(),required:U(V()).optional()}).catchall(rp()).optional(),annotations:j_.optional(),execution:M_.optional(),_meta:hp(V(),rp()).optional()}),P_=Mg.extend({method:G(`tools/list`)}),F_=Ng.extend({tools:U(N_)}),I_=eg.extend({content:U(D_).default([]),structuredContent:hp(V(),rp()).optional(),isError:Yf().optional()});I_.or(eg.extend({toolResult:rp()}));var L_=Yh.extend({name:V(),arguments:hp(V(),rp()).optional()}),R_=Zh.extend({method:G(`tools/call`),params:L_}),z_=$h.extend({method:G(`notifications/tools/list_changed`),params:Qh.optional()});W({autoRefresh:Yf().default(!0),debounceMs:H().int().nonnegative().default(300)});var B_=bp([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),V_=Jh.extend({level:B_}),H_=Zh.extend({method:G(`logging/setLevel`),params:V_}),U_=Qh.extend({level:B_,logger:V().optional(),data:rp()}),W_=$h.extend({method:G(`notifications/message`),params:U_}),G_=W({hints:U(W({name:V().optional()})).optional(),costPriority:H().min(0).max(1).optional(),speedPriority:H().min(0).max(1).optional(),intelligencePriority:H().min(0).max(1).optional()}),K_=W({mode:bp([`auto`,`required`,`none`]).optional()}),q_=W({type:G(`tool_result`),toolUseId:V().describe(`The unique identifier for the corresponding tool call.`),content:U(D_).default([]),structuredContent:W({}).loose().optional(),isError:Yf().optional(),_meta:hp(V(),rp()).optional()}),J_=fp(`type`,[x_,S_,C_]),Y_=fp(`type`,[x_,S_,C_,w_,q_]),X_=W({role:Xg,content:up([Y_,U(Y_)]),_meta:hp(V(),rp()).optional()}),Z_=Yh.extend({messages:U(X_),modelPreferences:G_.optional(),systemPrompt:V().optional(),includeContext:bp([`none`,`thisServer`,`allServers`]).optional(),temperature:H().optional(),maxTokens:H().int(),stopSequences:U(V()).optional(),metadata:Hh.optional(),tools:U(N_).optional(),toolChoice:K_.optional()}),Q_=Zh.extend({method:G(`sampling/createMessage`),params:Z_}),$_=eg.extend({model:V(),stopReason:wp(bp([`endTurn`,`stopSequence`,`maxTokens`]).or(V())),role:Xg,content:J_}),ev=eg.extend({model:V(),stopReason:wp(bp([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(V())),role:Xg,content:up([Y_,U(Y_)])}),tv=W({type:G(`boolean`),title:V().optional(),description:V().optional(),default:Yf().optional()}),nv=W({type:G(`string`),title:V().optional(),description:V().optional(),minLength:H().optional(),maxLength:H().optional(),format:bp([`email`,`uri`,`date`,`date-time`]).optional(),default:V().optional()}),rv=W({type:bp([`number`,`integer`]),title:V().optional(),description:V().optional(),minimum:H().optional(),maximum:H().optional(),default:H().optional()}),iv=W({type:G(`string`),title:V().optional(),description:V().optional(),enum:U(V()),default:V().optional()}),av=W({type:G(`string`),title:V().optional(),description:V().optional(),oneOf:U(W({const:V(),title:V()})),default:V().optional()}),ov=up([up([W({type:G(`string`),title:V().optional(),description:V().optional(),enum:U(V()),enumNames:U(V()).optional(),default:V().optional()}),up([iv,av]),up([W({type:G(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:W({type:G(`string`),enum:U(V())}),default:U(V()).optional()}),W({type:G(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:W({anyOf:U(W({const:V(),title:V()}))}),default:U(V()).optional()})])]),tv,nv,rv]),sv=up([Yh.extend({mode:G(`form`).optional(),message:V(),requestedSchema:W({type:G(`object`),properties:hp(V(),ov),required:U(V()).optional()})}),Yh.extend({mode:G(`url`),message:V(),elicitationId:V(),url:V().url()})]),cv=Zh.extend({method:G(`elicitation/create`),params:sv}),lv=Qh.extend({elicitationId:V()}),uv=$h.extend({method:G(`notifications/elicitation/complete`),params:lv}),dv=eg.extend({action:bp([`accept`,`decline`,`cancel`]),content:Jp(e=>e===null?void 0:e,hp(V(),up([V(),H(),Yf(),U(V())])).optional())}),fv=W({type:G(`ref/resource`),uri:V()}),pv=W({type:G(`ref/prompt`),name:V()}),mv=Jh.extend({ref:up([pv,fv]),argument:W({name:V(),value:V()}),context:W({arguments:hp(V(),V()).optional()}).optional()}),hv=Zh.extend({method:G(`completion/complete`),params:mv}),gv=eg.extend({completion:lp({values:U(V()).max(100),total:wp(H().int()),hasMore:wp(Yf())})}),_v=W({uri:V().startsWith(`file://`),name:V().optional(),_meta:hp(V(),rp()).optional()}),vv=Zh.extend({method:G(`roots/list`),params:Jh.optional()}),yv=eg.extend({roots:U(_v)}),bv=$h.extend({method:G(`notifications/roots/list_changed`),params:Qh.optional()});up([Dg,Cg,hv,H_,b_,__,e_,n_,o_,u_,f_,R_,P_,zg,Vg,Hg,Wg]),up([mg,Ag,Eg,bv,Rg]),up([fg,$_,ev,dv,yv,Bg,Ug,Ig]),up([Dg,Q_,cv,vv,zg,Vg,Hg,Wg]),up([mg,Ag,W_,m_,c_,z_,A_,Rg,uv]),up([fg,Tg,gv,k_,v_,t_,r_,s_,I_,F_,Bg,Ug,Ig]);var xv=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===cg.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new Sv(e.elicitations,n)}return new e(t,n,r)}},Sv=class extends xv{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(cg.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Cv(e){return e===`completed`||e===`failed`||e===`cancelled`}function wv(e){let t=Id(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Ld(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function Tv(e,t){let n=Fd(e,t);if(!n.success)throw n.error;return n.data}var Ev=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(mg,e=>{this._oncancel(e)}),this.setNotificationHandler(Ag,e=>{this._onprogress(e)}),this.setRequestHandler(Dg,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(zg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new xv(cg.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Vg,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new xv(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new xv(cg.InvalidParams,`Task not found: ${r}`);if(!Cv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(Cv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Vh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Hg,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new xv(cg.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Wg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new xv(cg.InvalidParams,`Task not found: ${e.params.taskId}`);if(Cv(n.status))throw new xv(cg.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new xv(cg.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof xv?e:new xv(cg.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),xv.fromError(cg.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),sg(e)||ug(e)?this._onresponse(e):rg(e)?this._onrequest(e,t):ag(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=xv.fromError(cg.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Vh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:cg.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Xh(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new xv(cg.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:cg.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),sg(e)?n(e):n(new xv(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(sg(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),sg(e)?r(e):r(xv.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof xv?e:new xv(cg.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Ig,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new xv(cg.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},Cv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new xv(cg.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new xv(cg.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof xv?e:new xv(cg.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Vh]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof xv?e:new xv(cg.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Fd(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(xv.fromError(cg.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Bg,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Ug,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Gg,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Vh]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Vh]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Vh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=wv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=Tv(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=wv(e);this._notificationHandlers.set(n,n=>{let r=Tv(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&rg(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new xv(cg.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new xv(cg.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new xv(cg.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new xv(cg.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Rg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),Cv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new xv(cg.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(Cv(a.status))throw new xv(cg.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Rg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),Cv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function Dv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ov(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=Dv(a)&&Dv(i)?{...a,...i}:i}return n}var kv=`modulepreload`,Av=function(e,t){return new URL(e,t).href},jv={},Mv=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Av(t,n),t=s(t),t in jv)return;jv[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:kv,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};Bh(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var Nv=class extends Ev{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},Pv=`2026-01-26`,Fv=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=dg.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},Iv=up([G(`light`),G(`dark`)]).describe(`Color theme preference for the host environment.`),Lv=up([G(`inline`),G(`fullscreen`),G(`pip`)]).describe(`Display mode for UI presentation.`),Rv=hp(up([G(`--color-background-primary`),G(`--color-background-secondary`),G(`--color-background-tertiary`),G(`--color-background-inverse`),G(`--color-background-ghost`),G(`--color-background-info`),G(`--color-background-danger`),G(`--color-background-success`),G(`--color-background-warning`),G(`--color-background-disabled`),G(`--color-text-primary`),G(`--color-text-secondary`),G(`--color-text-tertiary`),G(`--color-text-inverse`),G(`--color-text-ghost`),G(`--color-text-info`),G(`--color-text-danger`),G(`--color-text-success`),G(`--color-text-warning`),G(`--color-text-disabled`),G(`--color-border-primary`),G(`--color-border-secondary`),G(`--color-border-tertiary`),G(`--color-border-inverse`),G(`--color-border-ghost`),G(`--color-border-info`),G(`--color-border-danger`),G(`--color-border-success`),G(`--color-border-warning`),G(`--color-border-disabled`),G(`--color-ring-primary`),G(`--color-ring-secondary`),G(`--color-ring-inverse`),G(`--color-ring-info`),G(`--color-ring-danger`),G(`--color-ring-success`),G(`--color-ring-warning`),G(`--font-sans`),G(`--font-mono`),G(`--font-weight-normal`),G(`--font-weight-medium`),G(`--font-weight-semibold`),G(`--font-weight-bold`),G(`--font-text-xs-size`),G(`--font-text-sm-size`),G(`--font-text-md-size`),G(`--font-text-lg-size`),G(`--font-heading-xs-size`),G(`--font-heading-sm-size`),G(`--font-heading-md-size`),G(`--font-heading-lg-size`),G(`--font-heading-xl-size`),G(`--font-heading-2xl-size`),G(`--font-heading-3xl-size`),G(`--font-text-xs-line-height`),G(`--font-text-sm-line-height`),G(`--font-text-md-line-height`),G(`--font-text-lg-line-height`),G(`--font-heading-xs-line-height`),G(`--font-heading-sm-line-height`),G(`--font-heading-md-line-height`),G(`--font-heading-lg-line-height`),G(`--font-heading-xl-line-height`),G(`--font-heading-2xl-line-height`),G(`--font-heading-3xl-line-height`),G(`--border-radius-xs`),G(`--border-radius-sm`),G(`--border-radius-md`),G(`--border-radius-lg`),G(`--border-radius-xl`),G(`--border-radius-full`),G(`--border-width-regular`),G(`--shadow-hairline`),G(`--shadow-sm`),G(`--shadow-md`),G(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Pu(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Lu(t,`input`,e.processors),output:Lu(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Fu(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Fu(r.element,n);if(r.type===`set`)return Fu(r.valueType,n);if(r.type===`lazy`)return Fu(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Fu(r.innerType,n);if(r.type===`intersection`)return Fu(r.left,n)||Fu(r.right,n);if(r.type===`record`||r.type===`map`)return Fu(r.keyType,n)||Fu(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Fu(r.in,n)||Fu(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Fu(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Fu(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Fu(e,n))return!0;return!!(r.rest&&Fu(r.rest,n))}return!1}var Iu,Lu,Ru=o((()=>{Sc(),Iu=(e,t={})=>n=>{let r=ju({...n,processors:t});return Mu(e,r),Nu(r,e),Pu(r,e)},Lu=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ju({...i??{},target:a,io:t,processors:n});return Mu(e,o),Nu(o,e),Pu(o,e)}}));function zu(e,t){if(`_idmap`in e){let n=e,r=ju({...t,processors:Ed}),i={};for(let e of n._idmap.entries()){let[t,n]=e;Mu(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;Nu(r,n),a[t]=Pu(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=ju({...t,processors:Ed});return Mu(e,n),Nu(n,e),Pu(n,e)}var Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd=o((()=>{Ru(),z(),Bu={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Vu=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Bu[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Hu=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Uu=(e,t,n,r)=>{n.type=`boolean`},Wu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Gu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Ku=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Ju=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Yu=(e,t,n,r)=>{n.not={}},Xu=(e,t,n,r)=>{},Zu=(e,t,n,r)=>{},Qu=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},$u=(e,t,n,r)=>{let i=e._zod.def,a=M(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},ed=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},td=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},nd=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},rd=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},id=(e,t,n,r)=>{n.type=`boolean`},ad=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},od=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},sd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},cd=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},ld=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},ud=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Mu(a.element,t,{...r,path:[...r.path,`items`]})},dd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Mu(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Mu(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},fd=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Mu(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},pd=(e,t,n,r)=>{let i=e._zod.def,a=Mu(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Mu(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},md=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>Mu(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?Mu(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},hd=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Mu(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Mu(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Mu(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},gd=(e,t,n,r)=>{let i=e._zod.def,a=Mu(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},_d=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},vd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},yd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},bd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},xd=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Mu(o,t,r);let s=t.seen.get(e);s.ref=o},Sd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Cd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},wd=(e,t,n,r)=>{let i=e._zod.def;Mu(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Td=(e,t,n,r)=>{let i=e._zod.innerType;Mu(i,t,r);let a=t.seen.get(e);a.ref=i},Ed={string:Vu,number:Hu,boolean:Uu,bigint:Wu,symbol:Gu,null:Ku,undefined:qu,void:Ju,never:Yu,any:Xu,unknown:Zu,date:Qu,enum:$u,literal:ed,nan:td,template_literal:nd,file:rd,success:id,custom:ad,function:od,transform:sd,map:cd,set:ld,array:ud,object:dd,union:fd,intersection:pd,tuple:md,record:hd,nullable:gd,nonoptional:_d,default:vd,prefault:yd,catch:bd,pipe:xd,readonly:Sd,promise:Cd,optional:wd,lazy:Td}})),Od,kd=o((()=>{Dd(),Ru(),Od=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=ju({processors:Ed,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Mu(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Nu(this.ctx,e);let{"~standard":n,...r}=Pu(this.ctx,e);return r}}})),Ad=c({}),jd=o((()=>{})),Md=c({$ZodAny:()=>Ai,$ZodArray:()=>Fi,$ZodAsyncError:()=>D,$ZodBase64:()=>_i,$ZodBase64URL:()=>vi,$ZodBigInt:()=>Ti,$ZodBigIntFormat:()=>Ei,$ZodBoolean:()=>wi,$ZodCIDRv4:()=>hi,$ZodCIDRv6:()=>gi,$ZodCUID:()=>ri,$ZodCUID2:()=>ii,$ZodCatch:()=>ra,$ZodCheck:()=>Zn,$ZodCheckBigIntFormat:()=>rr,$ZodCheckEndsWith:()=>gr,$ZodCheckGreaterThan:()=>er,$ZodCheckIncludes:()=>mr,$ZodCheckLengthEquals:()=>lr,$ZodCheckLessThan:()=>$n,$ZodCheckLowerCase:()=>fr,$ZodCheckMaxLength:()=>sr,$ZodCheckMaxSize:()=>ir,$ZodCheckMimeType:()=>vr,$ZodCheckMinLength:()=>cr,$ZodCheckMinSize:()=>ar,$ZodCheckMultipleOf:()=>tr,$ZodCheckNumberFormat:()=>nr,$ZodCheckOverwrite:()=>yr,$ZodCheckProperty:()=>_r,$ZodCheckRegex:()=>dr,$ZodCheckSizeEquals:()=>or,$ZodCheckStartsWith:()=>hr,$ZodCheckStringFormat:()=>ur,$ZodCheckUpperCase:()=>pr,$ZodCodec:()=>oa,$ZodCustom:()=>pa,$ZodCustomStringFormat:()=>xi,$ZodDate:()=>Pi,$ZodDefault:()=>$i,$ZodDiscriminatedUnion:()=>Bi,$ZodE164:()=>yi,$ZodEmail:()=>$r,$ZodEmoji:()=>ti,$ZodEncodeError:()=>O,$ZodEnum:()=>Ki,$ZodError:()=>lt,$ZodExactOptional:()=>Zi,$ZodFile:()=>Ji,$ZodFunction:()=>ua,$ZodGUID:()=>Zr,$ZodIPv4:()=>fi,$ZodIPv6:()=>pi,$ZodISODate:()=>li,$ZodISODateTime:()=>ci,$ZodISODuration:()=>di,$ZodISOTime:()=>ui,$ZodIntersection:()=>Vi,$ZodJWT:()=>bi,$ZodKSUID:()=>si,$ZodLazy:()=>fa,$ZodLiteral:()=>qi,$ZodMAC:()=>mi,$ZodMap:()=>Wi,$ZodNaN:()=>ia,$ZodNanoID:()=>ni,$ZodNever:()=>Mi,$ZodNonOptional:()=>ta,$ZodNull:()=>ki,$ZodNullable:()=>Qi,$ZodNumber:()=>Si,$ZodNumberFormat:()=>Ci,$ZodObject:()=>Ii,$ZodObjectJIT:()=>Li,$ZodOptional:()=>Xi,$ZodPipe:()=>aa,$ZodPrefault:()=>ea,$ZodPreprocess:()=>sa,$ZodPromise:()=>da,$ZodReadonly:()=>ca,$ZodRealError:()=>ut,$ZodRecord:()=>Ui,$ZodRegistry:()=>bc,$ZodSet:()=>Gi,$ZodString:()=>Yr,$ZodStringFormat:()=>Xr,$ZodSuccess:()=>na,$ZodSymbol:()=>Di,$ZodTemplateLiteral:()=>la,$ZodTransform:()=>Yi,$ZodTuple:()=>Hi,$ZodType:()=>B,$ZodULID:()=>ai,$ZodURL:()=>ei,$ZodUUID:()=>Qr,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ri,$ZodUnknown:()=>ji,$ZodVoid:()=>Ni,$ZodXID:()=>oi,$ZodXor:()=>zi,$brand:()=>E,$constructor:()=>S,$input:()=>yc,$output:()=>vc,Doc:()=>xr,JSONSchema:()=>Ad,JSONSchemaGenerator:()=>Od,NEVER:()=>T,TimePrecision:()=>ku,_any:()=>ml,_array:()=>Xl,_base64:()=>Wc,_base64url:()=>Gc,_bigint:()=>sl,_boolean:()=>al,_catch:()=>hu,_check:()=>wu,_cidrv4:()=>Hc,_cidrv6:()=>Uc,_coercedBigint:()=>cl,_coercedBoolean:()=>ol,_coercedDate:()=>yl,_coercedNumber:()=>$c,_coercedString:()=>wc,_cuid:()=>Pc,_cuid2:()=>Fc,_custom:()=>xu,_date:()=>vl,_decode:()=>St,_decodeAsync:()=>Et,_default:()=>fu,_discriminatedUnion:()=>$l,_e164:()=>Kc,_email:()=>Tc,_emoji:()=>Mc,_encode:()=>bt,_encodeAsync:()=>wt,_endsWith:()=>Vl,_enum:()=>au,_file:()=>cu,_float32:()=>tl,_float64:()=>nl,_gt:()=>Cl,_gte:()=>wl,_guid:()=>Ec,_includes:()=>zl,_int:()=>el,_int32:()=>rl,_int64:()=>ll,_intersection:()=>eu,_ipv4:()=>zc,_ipv6:()=>Bc,_isoDate:()=>Yc,_isoDateTime:()=>Jc,_isoDuration:()=>Zc,_isoTime:()=>Xc,_jwt:()=>qc,_ksuid:()=>Rc,_lazy:()=>yu,_length:()=>Fl,_literal:()=>su,_lowercase:()=>Ll,_lt:()=>xl,_lte:()=>Sl,_mac:()=>Vc,_map:()=>ru,_max:()=>Sl,_maxLength:()=>Nl,_maxSize:()=>Al,_mime:()=>Ul,_min:()=>wl,_minLength:()=>Pl,_minSize:()=>jl,_multipleOf:()=>kl,_nan:()=>bl,_nanoid:()=>Nc,_nativeEnum:()=>ou,_negative:()=>El,_never:()=>gl,_nonnegative:()=>Ol,_nonoptional:()=>pu,_nonpositive:()=>Dl,_normalize:()=>Gl,_null:()=>pl,_nullable:()=>du,_number:()=>Qc,_optional:()=>uu,_overwrite:()=>Wl,_parse:()=>ft,_parseAsync:()=>mt,_pipe:()=>gu,_positive:()=>Tl,_promise:()=>bu,_property:()=>Hl,_readonly:()=>_u,_record:()=>nu,_refine:()=>Su,_regex:()=>Il,_safeDecode:()=>At,_safeDecodeAsync:()=>Pt,_safeEncode:()=>Ot,_safeEncodeAsync:()=>Mt,_safeParse:()=>gt,_safeParseAsync:()=>vt,_set:()=>iu,_size:()=>Ml,_slugify:()=>Yl,_startsWith:()=>Bl,_string:()=>Cc,_stringFormat:()=>Ou,_stringbool:()=>Du,_success:()=>mu,_superRefine:()=>Cu,_symbol:()=>dl,_templateLiteral:()=>vu,_toLowerCase:()=>ql,_toUpperCase:()=>Jl,_transform:()=>lu,_trim:()=>Kl,_tuple:()=>tu,_uint32:()=>il,_uint64:()=>ul,_ulid:()=>Ic,_undefined:()=>fl,_union:()=>Zl,_unknown:()=>hl,_uppercase:()=>Rl,_url:()=>jc,_uuid:()=>Dc,_uuidv4:()=>Oc,_uuidv6:()=>kc,_uuidv7:()=>Ac,_void:()=>_l,_xid:()=>Lc,_xor:()=>Ql,clone:()=>Ce,config:()=>C,createStandardJSONSchemaMethod:()=>Lu,createToJSONSchemaMethod:()=>Iu,decode:()=>Ct,decodeAsync:()=>Dt,describe:()=>Tu,encode:()=>xt,encodeAsync:()=>Tt,extractDefs:()=>Nu,finalize:()=>Pu,flattenError:()=>rt,formatError:()=>it,globalConfig:()=>k,globalRegistry:()=>xc,initializeContext:()=>ju,isValidBase64:()=>Tr,isValidBase64URL:()=>Er,isValidJWT:()=>Dr,locales:()=>mc,meta:()=>Eu,parse:()=>pt,parseAsync:()=>ht,prettifyError:()=>st,process:()=>Mu,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>jt,safeDecodeAsync:()=>Ft,safeEncode:()=>kt,safeEncodeAsync:()=>Nt,safeParse:()=>_t,safeParseAsync:()=>yt,toDotPath:()=>ot,toJSONSchema:()=>zu,treeifyError:()=>at,util:()=>te,version:()=>Cr}),Nd=o((()=>{ee(),It(),dt(),ma(),br(),wr(),z(),Yn(),hc(),Sc(),Sr(),Au(),Ru(),Dd(),kd(),jd()}));It();function Pd(e){return!!e._zod}function Fd(e,t){return Pd(e)?_t(e,t):e.safeParse(t)}function Id(e){if(!e)return;let t;if(t=Pd(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Ld(e){if(Pd(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Rd=c({endsWith:()=>Vl,gt:()=>Cl,gte:()=>wl,includes:()=>zl,length:()=>Fl,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,maxLength:()=>Nl,maxSize:()=>Al,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,negative:()=>El,nonnegative:()=>Ol,nonpositive:()=>Dl,normalize:()=>Gl,overwrite:()=>Wl,positive:()=>Tl,property:()=>Hl,regex:()=>Il,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,toLowerCase:()=>ql,toUpperCase:()=>Jl,trim:()=>Kl,uppercase:()=>Rl}),zd=o((()=>{Nd()})),Bd=c({ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,date:()=>Hd,datetime:()=>Vd,duration:()=>Wd,time:()=>Ud});function Vd(e){return Jc(Gd,e)}function Hd(e){return Yc(Kd,e)}function Ud(e){return Xc(qd,e)}function Wd(e){return Zc(Jd,e)}var Gd,Kd,qd,Jd,Yd=o((()=>{Nd(),hh(),Gd=S(`ZodISODateTime`,(e,t)=>{ci.init(e,t),$p.init(e,t)}),Kd=S(`ZodISODate`,(e,t)=>{li.init(e,t),$p.init(e,t)}),qd=S(`ZodISOTime`,(e,t)=>{ui.init(e,t),$p.init(e,t)}),Jd=S(`ZodISODuration`,(e,t)=>{di.init(e,t),$p.init(e,t)})})),Xd,Zd,Qd,$d=o((()=>{Nd(),z(),Xd=(e,t)=>{lt.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>it(e,t)},flatten:{value:t=>rt(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,ae,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,ae,2)}},isEmpty:{get(){return e.issues.length===0}}})},Zd=S(`ZodError`,Xd),Qd=S(`ZodError`,Xd,{Parent:Error})})),ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf=o((()=>{Nd(),$d(),ef=ft(Qd),tf=mt(Qd),nf=gt(Qd),rf=vt(Qd),af=bt(Qd),of=St(Qd),sf=wt(Qd),cf=Et(Qd),lf=Ot(Qd),uf=At(Qd),df=Mt(Qd),ff=Pt(Qd)})),mf=c({ZodAny:()=>km,ZodArray:()=>Pm,ZodBase64:()=>gm,ZodBase64URL:()=>_m,ZodBigInt:()=>wm,ZodBigIntFormat:()=>Tm,ZodBoolean:()=>Cm,ZodCIDRv4:()=>mm,ZodCIDRv6:()=>hm,ZodCUID:()=>om,ZodCUID2:()=>sm,ZodCatch:()=>th,ZodCodec:()=>ih,ZodCustom:()=>dh,ZodCustomStringFormat:()=>bm,ZodDate:()=>Nm,ZodDefault:()=>Zm,ZodDiscriminatedUnion:()=>Rm,ZodE164:()=>vm,ZodEmail:()=>em,ZodEmoji:()=>im,ZodEnum:()=>Wm,ZodExactOptional:()=>Ym,ZodFile:()=>Km,ZodFunction:()=>uh,ZodGUID:()=>tm,ZodIPv4:()=>dm,ZodIPv6:()=>pm,ZodIntersection:()=>zm,ZodJWT:()=>ym,ZodKSUID:()=>um,ZodLazy:()=>ch,ZodLiteral:()=>Gm,ZodMAC:()=>fm,ZodMap:()=>Hm,ZodNaN:()=>nh,ZodNanoID:()=>am,ZodNever:()=>jm,ZodNonOptional:()=>$m,ZodNull:()=>Om,ZodNullable:()=>Xm,ZodNumber:()=>xm,ZodNumberFormat:()=>Sm,ZodObject:()=>Fm,ZodOptional:()=>Jm,ZodPipe:()=>rh,ZodPrefault:()=>Qm,ZodPreprocess:()=>ah,ZodPromise:()=>lh,ZodReadonly:()=>oh,ZodRecord:()=>Vm,ZodSet:()=>Um,ZodString:()=>Qp,ZodStringFormat:()=>$p,ZodSuccess:()=>eh,ZodSymbol:()=>Em,ZodTemplateLiteral:()=>sh,ZodTransform:()=>qm,ZodTuple:()=>Bm,ZodType:()=>Xp,ZodULID:()=>cm,ZodURL:()=>rm,ZodUUID:()=>nm,ZodUndefined:()=>Dm,ZodUnion:()=>Im,ZodUnknown:()=>Am,ZodVoid:()=>Mm,ZodXID:()=>lm,ZodXor:()=>Lm,_ZodString:()=>Zp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,codec:()=>Fp,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,describe:()=>fh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,float32:()=>Gf,float64:()=>Kf,function:()=>Vp,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,literal:()=>G,looseObject:()=>lp,looseRecord:()=>_p,mac:()=>Mf,map:()=>vp,meta:()=>ph,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,never:()=>ip,nonoptional:()=>Ap,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,partialRecord:()=>gp,pipe:()=>Pp,prefault:()=>kp,preprocess:()=>Jp,promise:()=>Bp,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,set:()=>yp,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>mh,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,transform:()=>Cp,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,url:()=>Sf,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp});function hf(e,t,n){let r=Object.getPrototypeOf(e),i=Yp.get(r);if(i||(i=new Set,Yp.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function V(e){return Cc(Qp,e)}function gf(e){return Tc(em,e)}function _f(e){return Ec(tm,e)}function vf(e){return Dc(nm,e)}function yf(e){return Oc(nm,e)}function bf(e){return kc(nm,e)}function xf(e){return Ac(nm,e)}function Sf(e){return jc(rm,e)}function Cf(e){return jc(rm,{protocol:bn,hostname:yn,...I(e)})}function wf(e){return Mc(im,e)}function Tf(e){return Nc(am,e)}function Ef(e){return Pc(om,e)}function Df(e){return Fc(sm,e)}function Of(e){return Ic(cm,e)}function kf(e){return Lc(lm,e)}function Af(e){return Rc(um,e)}function jf(e){return zc(dm,e)}function Mf(e){return Vc(fm,e)}function Nf(e){return Bc(pm,e)}function Pf(e){return Hc(mm,e)}function Ff(e){return Uc(hm,e)}function If(e){return Wc(gm,e)}function Lf(e){return Gc(_m,e)}function Rf(e){return Kc(vm,e)}function zf(e){return qc(ym,e)}function Bf(e,t,n={}){return Ou(bm,e,t,n)}function Vf(e){return Ou(bm,`hostname`,vn,e)}function Hf(e){return Ou(bm,`hex`,Nn,e)}function Uf(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Lt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Ou(bm,n,r,t)}function H(e){return Qc(xm,e)}function Wf(e){return el(Sm,e)}function Gf(e){return tl(Sm,e)}function Kf(e){return nl(Sm,e)}function qf(e){return rl(Sm,e)}function Jf(e){return il(Sm,e)}function Yf(e){return al(Cm,e)}function Xf(e){return sl(wm,e)}function Zf(e){return ll(Tm,e)}function Qf(e){return ul(Tm,e)}function $f(e){return dl(Em,e)}function ep(e){return fl(Dm,e)}function tp(e){return pl(Om,e)}function np(){return ml(km)}function rp(){return hl(Am)}function ip(e){return gl(jm,e)}function ap(e){return _l(Mm,e)}function op(e){return vl(Nm,e)}function U(e,t){return Xl(Pm,e,t)}function sp(e){let t=e._zod.def.shape;return bp(Object.keys(t))}function W(e,t){let n={type:`object`,shape:e??{},...I(t)};return new Fm(n)}function cp(e,t){return new Fm({type:`object`,shape:e,catchall:ip(),...I(t)})}function lp(e,t){return new Fm({type:`object`,shape:e,catchall:rp(),...I(t)})}function up(e,t){return new Im({type:`union`,options:e,...I(t)})}function dp(e,t){return new Lm({type:`union`,options:e,inclusive:!1,...I(t)})}function fp(e,t,n){return new Rm({type:`union`,options:t,discriminator:e,...I(n)})}function pp(e,t){return new zm({type:`intersection`,left:e,right:t})}function mp(e,t,n){let r=t instanceof B;return new Bm({type:`tuple`,items:e,rest:r?t:null,...I(r?n:t)})}function hp(e,t,n){return!t||!t._zod?new Vm({type:`record`,keyType:V(),valueType:e,...I(t)}):new Vm({type:`record`,keyType:e,valueType:t,...I(n)})}function gp(e,t,n){let r=Ce(e);return r._zod.values=void 0,new Vm({type:`record`,keyType:r,valueType:t,...I(n)})}function _p(e,t,n){return new Vm({type:`record`,keyType:e,valueType:t,mode:`loose`,...I(n)})}function vp(e,t,n){return new Hm({type:`map`,keyType:e,valueType:t,...I(n)})}function yp(e,t){return new Um({type:`set`,valueType:e,...I(t)})}function bp(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Wm({type:`enum`,entries:n,...I(t)})}function xp(e,t){return new Wm({type:`enum`,entries:e,...I(t)})}function G(e,t){return new Gm({type:`literal`,values:Array.isArray(e)?e:[e],...I(t)})}function Sp(e){return cu(Km,e)}function Cp(e){return new qm({type:`transform`,transform:e})}function wp(e){return new Jm({type:`optional`,innerType:e})}function Tp(e){return new Ym({type:`optional`,innerType:e})}function Ep(e){return new Xm({type:`nullable`,innerType:e})}function Dp(e){return wp(Ep(e))}function Op(e,t){return new Zm({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function kp(e,t){return new Qm({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():be(t)}})}function Ap(e,t){return new $m({type:`nonoptional`,innerType:e,...I(t)})}function jp(e){return new eh({type:`success`,innerType:e})}function Mp(e,t){return new th({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Np(e){return bl(nh,e)}function Pp(e,t){return new rh({type:`pipe`,in:e,out:t})}function Fp(e,t,n){return new ih({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Ip(e){let t=e._zod.def;return new ih({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Lp(e){return new oh({type:`readonly`,innerType:e})}function Rp(e,t){return new sh({type:`template_literal`,parts:e,...I(t)})}function zp(e){return new ch({type:`lazy`,getter:e})}function Bp(e){return new lh({type:`promise`,innerType:e})}function Vp(e){return new uh({type:`function`,input:Array.isArray(e?.input)?mp(e?.input):e?.input??U(rp()),output:e?.output??rp()})}function Hp(e){let t=new Zn({check:`custom`});return t._zod.check=e,t}function Up(e,t){return xu(dh,e??(()=>!0),t)}function Wp(e,t={}){return Su(dh,e,t)}function Gp(e,t){return Cu(e,t)}function Kp(e,t={}){let n=new dh({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...I(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function qp(e){let t=zp(()=>up([V(e),H(),Yf(),tp(),U(t),hp(V(),t)]));return t}function Jp(e,t){return new ah({type:`pipe`,in:Cp(e),out:t})}var Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm,Om,km,Am,jm,Mm,Nm,Pm,Fm,Im,Lm,Rm,zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh=o((()=>{Nd(),Dd(),Ru(),zd(),Yd(),pf(),Yp=new WeakMap,Xp=S(`ZodType`,(e,t)=>(B.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Lu(e,`input`),output:Lu(e,`output`)}}),e.toJSONSchema=Iu(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ef(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>nf(e,t,n),e.parseAsync=async(t,n)=>tf(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>rf(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>af(e,t,n),e.decode=(t,n)=>of(e,t,n),e.encodeAsync=async(t,n)=>sf(e,t,n),e.decodeAsync=async(t,n)=>cf(e,t,n),e.safeEncode=(t,n)=>lf(e,t,n),e.safeDecode=(t,n)=>uf(e,t,n),e.safeEncodeAsync=async(t,n)=>df(e,t,n),e.safeDecodeAsync=async(t,n)=>ff(e,t,n),hf(e,`ZodType`,{check(...e){let t=this.def;return this.clone(de(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ce(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Wp(e,t))},superRefine(e,t){return this.check(Gp(e,t))},overwrite(e){return this.check(Wl(e))},optional(){return wp(this)},exactOptional(){return Tp(this)},nullable(){return Ep(this)},nullish(){return wp(Ep(this))},nonoptional(e){return Ap(this,e)},array(){return U(this)},or(e){return up([this,e])},and(e){return pp(this,e)},transform(e){return Pp(this,Cp(e))},default(e){return Op(this,e)},prefault(e){return kp(this,e)},catch(e){return Mp(this,e)},pipe(e){return Pp(this,e)},readonly(){return Lp(this)},describe(e){let t=this.clone();return xc.add(t,{description:e}),t},meta(...e){if(e.length===0)return xc.get(this);let t=this.clone();return xc.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return xc.get(e)?.description},configurable:!0}),e)),Zp=S(`_ZodString`,(e,t)=>{Yr.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vu(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,hf(e,`_ZodString`,{regex(...e){return this.check(Il(...e))},includes(...e){return this.check(zl(...e))},startsWith(...e){return this.check(Bl(...e))},endsWith(...e){return this.check(Vl(...e))},min(...e){return this.check(Pl(...e))},max(...e){return this.check(Nl(...e))},length(...e){return this.check(Fl(...e))},nonempty(...e){return this.check(Pl(1,...e))},lowercase(e){return this.check(Ll(e))},uppercase(e){return this.check(Rl(e))},trim(){return this.check(Kl())},normalize(...e){return this.check(Gl(...e))},toLowerCase(){return this.check(ql())},toUpperCase(){return this.check(Jl())},slugify(){return this.check(Yl())}})}),Qp=S(`ZodString`,(e,t)=>{Yr.init(e,t),Zp.init(e,t),e.email=t=>e.check(Tc(em,t)),e.url=t=>e.check(jc(rm,t)),e.jwt=t=>e.check(qc(ym,t)),e.emoji=t=>e.check(Mc(im,t)),e.guid=t=>e.check(Ec(tm,t)),e.uuid=t=>e.check(Dc(nm,t)),e.uuidv4=t=>e.check(Oc(nm,t)),e.uuidv6=t=>e.check(kc(nm,t)),e.uuidv7=t=>e.check(Ac(nm,t)),e.nanoid=t=>e.check(Nc(am,t)),e.guid=t=>e.check(Ec(tm,t)),e.cuid=t=>e.check(Pc(om,t)),e.cuid2=t=>e.check(Fc(sm,t)),e.ulid=t=>e.check(Ic(cm,t)),e.base64=t=>e.check(Wc(gm,t)),e.base64url=t=>e.check(Gc(_m,t)),e.xid=t=>e.check(Lc(lm,t)),e.ksuid=t=>e.check(Rc(um,t)),e.ipv4=t=>e.check(zc(dm,t)),e.ipv6=t=>e.check(Bc(pm,t)),e.cidrv4=t=>e.check(Hc(mm,t)),e.cidrv6=t=>e.check(Uc(hm,t)),e.e164=t=>e.check(Kc(vm,t)),e.datetime=t=>e.check(Vd(t)),e.date=t=>e.check(Hd(t)),e.time=t=>e.check(Ud(t)),e.duration=t=>e.check(Wd(t))}),$p=S(`ZodStringFormat`,(e,t)=>{Xr.init(e,t),Zp.init(e,t)}),em=S(`ZodEmail`,(e,t)=>{$r.init(e,t),$p.init(e,t)}),tm=S(`ZodGUID`,(e,t)=>{Zr.init(e,t),$p.init(e,t)}),nm=S(`ZodUUID`,(e,t)=>{Qr.init(e,t),$p.init(e,t)}),rm=S(`ZodURL`,(e,t)=>{ei.init(e,t),$p.init(e,t)}),im=S(`ZodEmoji`,(e,t)=>{ti.init(e,t),$p.init(e,t)}),am=S(`ZodNanoID`,(e,t)=>{ni.init(e,t),$p.init(e,t)}),om=S(`ZodCUID`,(e,t)=>{ri.init(e,t),$p.init(e,t)}),sm=S(`ZodCUID2`,(e,t)=>{ii.init(e,t),$p.init(e,t)}),cm=S(`ZodULID`,(e,t)=>{ai.init(e,t),$p.init(e,t)}),lm=S(`ZodXID`,(e,t)=>{oi.init(e,t),$p.init(e,t)}),um=S(`ZodKSUID`,(e,t)=>{si.init(e,t),$p.init(e,t)}),dm=S(`ZodIPv4`,(e,t)=>{fi.init(e,t),$p.init(e,t)}),fm=S(`ZodMAC`,(e,t)=>{mi.init(e,t),$p.init(e,t)}),pm=S(`ZodIPv6`,(e,t)=>{pi.init(e,t),$p.init(e,t)}),mm=S(`ZodCIDRv4`,(e,t)=>{hi.init(e,t),$p.init(e,t)}),hm=S(`ZodCIDRv6`,(e,t)=>{gi.init(e,t),$p.init(e,t)}),gm=S(`ZodBase64`,(e,t)=>{_i.init(e,t),$p.init(e,t)}),_m=S(`ZodBase64URL`,(e,t)=>{vi.init(e,t),$p.init(e,t)}),vm=S(`ZodE164`,(e,t)=>{yi.init(e,t),$p.init(e,t)}),ym=S(`ZodJWT`,(e,t)=>{bi.init(e,t),$p.init(e,t)}),bm=S(`ZodCustomStringFormat`,(e,t)=>{xi.init(e,t),$p.init(e,t)}),xm=S(`ZodNumber`,(e,t)=>{Si.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hu(e,t,n,r),hf(e,`ZodNumber`,{gt(e,t){return this.check(Cl(e,t))},gte(e,t){return this.check(wl(e,t))},min(e,t){return this.check(wl(e,t))},lt(e,t){return this.check(xl(e,t))},lte(e,t){return this.check(Sl(e,t))},max(e,t){return this.check(Sl(e,t))},int(e){return this.check(Wf(e))},safe(e){return this.check(Wf(e))},positive(e){return this.check(Cl(0,e))},nonnegative(e){return this.check(wl(0,e))},negative(e){return this.check(xl(0,e))},nonpositive(e){return this.check(Sl(0,e))},multipleOf(e,t){return this.check(kl(e,t))},step(e,t){return this.check(kl(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Sm=S(`ZodNumberFormat`,(e,t)=>{Ci.init(e,t),xm.init(e,t)}),Cm=S(`ZodBoolean`,(e,t)=>{wi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uu(e,t,n,r)}),wm=S(`ZodBigInt`,(e,t)=>{Ti.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wu(e,t,n,r),e.gte=(t,n)=>e.check(wl(t,n)),e.min=(t,n)=>e.check(wl(t,n)),e.gt=(t,n)=>e.check(Cl(t,n)),e.gte=(t,n)=>e.check(wl(t,n)),e.min=(t,n)=>e.check(wl(t,n)),e.lt=(t,n)=>e.check(xl(t,n)),e.lte=(t,n)=>e.check(Sl(t,n)),e.max=(t,n)=>e.check(Sl(t,n)),e.positive=t=>e.check(Cl(BigInt(0),t)),e.negative=t=>e.check(xl(BigInt(0),t)),e.nonpositive=t=>e.check(Sl(BigInt(0),t)),e.nonnegative=t=>e.check(wl(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(kl(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),Tm=S(`ZodBigIntFormat`,(e,t)=>{Ei.init(e,t),wm.init(e,t)}),Em=S(`ZodSymbol`,(e,t)=>{Di.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gu(e,t,n,r)}),Dm=S(`ZodUndefined`,(e,t)=>{Oi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qu(e,t,n,r)}),Om=S(`ZodNull`,(e,t)=>{ki.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ku(e,t,n,r)}),km=S(`ZodAny`,(e,t)=>{Ai.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xu(e,t,n,r)}),Am=S(`ZodUnknown`,(e,t)=>{ji.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zu(e,t,n,r)}),jm=S(`ZodNever`,(e,t)=>{Mi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yu(e,t,n,r)}),Mm=S(`ZodVoid`,(e,t)=>{Ni.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ju(e,t,n,r)}),Nm=S(`ZodDate`,(e,t)=>{Pi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qu(e,t,n,r),e.min=(t,n)=>e.check(wl(t,n)),e.max=(t,n)=>e.check(Sl(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),Pm=S(`ZodArray`,(e,t)=>{Fi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ud(e,t,n,r),e.element=t.element,hf(e,`ZodArray`,{min(e,t){return this.check(Pl(e,t))},nonempty(e){return this.check(Pl(1,e))},max(e,t){return this.check(Nl(e,t))},length(e,t){return this.check(Fl(e,t))},unwrap(){return this.element}})}),Fm=S(`ZodObject`,(e,t)=>{Li.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dd(e,t,n,r),F(e,`shape`,()=>t.shape),hf(e,`ZodObject`,{keyof(){return bp(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rp()})},loose(){return this.clone({...this._zod.def,catchall:rp()})},strict(){return this.clone({...this._zod.def,catchall:ip()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Oe(this,e)},safeExtend(e){return ke(this,e)},merge(e){return Ae(this,e)},pick(e){return Ee(this,e)},omit(e){return De(this,e)},partial(...e){return je(Jm,this,e[0])},required(...e){return Me($m,this,e[0])}})}),Im=S(`ZodUnion`,(e,t)=>{Ri.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.options=t.options}),Lm=S(`ZodXor`,(e,t)=>{Im.init(e,t),zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fd(e,t,n,r),e.options=t.options}),Rm=S(`ZodDiscriminatedUnion`,(e,t)=>{Im.init(e,t),Bi.init(e,t)}),zm=S(`ZodIntersection`,(e,t)=>{Vi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pd(e,t,n,r)}),Bm=S(`ZodTuple`,(e,t)=>{Hi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>md(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Vm=S(`ZodRecord`,(e,t)=>{Ui.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Hm=S(`ZodMap`,(e,t)=>{Wi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cd(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(jl(...t)),e.nonempty=t=>e.check(jl(1,t)),e.max=(...t)=>e.check(Al(...t)),e.size=(...t)=>e.check(Ml(...t))}),Um=S(`ZodSet`,(e,t)=>{Gi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ld(e,t,n,r),e.min=(...t)=>e.check(jl(...t)),e.nonempty=t=>e.check(jl(1,t)),e.max=(...t)=>e.check(Al(...t)),e.size=(...t)=>e.check(Ml(...t))}),Wm=S(`ZodEnum`,(e,t)=>{Ki.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$u(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Wm({...t,checks:[],...I(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Wm({...t,checks:[],...I(r),entries:i})}}),Gm=S(`ZodLiteral`,(e,t)=>{qi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ed(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),Km=S(`ZodFile`,(e,t)=>{Ji.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rd(e,t,n,r),e.min=(t,n)=>e.check(jl(t,n)),e.max=(t,n)=>e.check(Al(t,n)),e.mime=(t,n)=>e.check(Ul(Array.isArray(t)?t:[t],n))}),qm=S(`ZodTransform`,(e,t)=>{Yi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sd(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new O(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Jm=S(`ZodOptional`,(e,t)=>{Xi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ym=S(`ZodExactOptional`,(e,t)=>{Zi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Xm=S(`ZodNullable`,(e,t)=>{Qi.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Zm=S(`ZodDefault`,(e,t)=>{$i.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Qm=S(`ZodPrefault`,(e,t)=>{ea.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),$m=S(`ZodNonOptional`,(e,t)=>{ta.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_d(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),eh=S(`ZodSuccess`,(e,t)=>{na.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>id(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),th=S(`ZodCatch`,(e,t)=>{ra.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nh=S(`ZodNaN`,(e,t)=>{ia.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>td(e,t,n,r)}),rh=S(`ZodPipe`,(e,t)=>{aa.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xd(e,t,n,r),e.in=t.in,e.out=t.out}),ih=S(`ZodCodec`,(e,t)=>{rh.init(e,t),oa.init(e,t)}),ah=S(`ZodPreprocess`,(e,t)=>{rh.init(e,t),sa.init(e,t)}),oh=S(`ZodReadonly`,(e,t)=>{ca.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Sd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),sh=S(`ZodTemplateLiteral`,(e,t)=>{la.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nd(e,t,n,r)}),ch=S(`ZodLazy`,(e,t)=>{fa.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Td(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),lh=S(`ZodPromise`,(e,t)=>{da.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Cd(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),uh=S(`ZodFunction`,(e,t)=>{ua.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>od(e,t,n,r)}),dh=S(`ZodCustom`,(e,t)=>{pa.init(e,t),Xp.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ad(e,t,n,r)}),fh=Tu,ph=Eu,mh=(...e)=>Du({Codec:ih,Boolean:Cm,String:Qp},...e)}));function gh(e){C({customError:e})}function _h(){return C().customError}var vh,yh,bh=o((()=>{Nd(),vh={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},yh||={}}));function xh(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function Sh(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Ch(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return K.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return K.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=wh(Sh(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return K.null();if(n.length===0)return K.never();if(n.length===1)return K.literal(n[0]);if(n.every(e=>typeof e==`string`))return K.enum(n);let r=n.map(e=>K.literal(e));return r.length<2?r[0]:K.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return K.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Ch({...e,type:n},t));return r.length===0?K.never():r.length===1?r[0]:K.union(r)}if(!n)return K.any();let r;switch(n){case`string`:{let t=K.string();if(e.format){let n=e.format;n===`email`?t=t.check(K.email()):n===`uri`||n===`uri-reference`?t=t.check(K.url()):n===`uuid`||n===`guid`?t=t.check(K.uuid()):n===`date-time`?t=t.check(K.iso.datetime()):n===`date`?t=t.check(K.iso.date()):n===`time`?t=t.check(K.iso.time()):n===`duration`?t=t.check(K.iso.duration()):n===`ipv4`?t=t.check(K.ipv4()):n===`ipv6`?t=t.check(K.ipv6()):n===`mac`?t=t.check(K.mac()):n===`cidr`?t=t.check(K.cidrv4()):n===`cidr-v6`?t=t.check(K.cidrv6()):n===`base64`?t=t.check(K.base64()):n===`base64url`?t=t.check(K.base64url()):n===`e164`?t=t.check(K.e164()):n===`jwt`?t=t.check(K.jwt()):n===`emoji`?t=t.check(K.emoji()):n===`nanoid`?t=t.check(K.nanoid()):n===`cuid`?t=t.check(K.cuid()):n===`cuid2`?t=t.check(K.cuid2()):n===`ulid`?t=t.check(K.ulid()):n===`xid`?t=t.check(K.xid()):n===`ksuid`&&(t=t.check(K.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?K.number().int():K.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=K.boolean();break;case`null`:r=K.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=wh(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=wh(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?wh(e.additionalProperties,t):K.any();if(Object.keys(n).length===0){r=K.record(i,a);break}let o=K.object(n).passthrough(),s=K.looseRecord(i,a);r=K.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=wh(i[e],t),r=K.string().regex(new RegExp(e));o.push(K.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(K.object(n).passthrough()),s.push(...o),s.length===0)r=K.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=K.intersection(s[0],s[1]);for(let t=2;twh(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?wh(i,t):void 0;r=o?K.tuple(a).rest(o):K.tuple(a),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>wh(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?wh(e.additionalItems,t):void 0;r=a?K.tuple(n).rest(a):K.tuple(n),typeof e.minItems==`number`&&(r=r.check(K.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(K.maxLength(e.maxItems)))}else if(i!==void 0){let n=wh(i,t),a=K.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=K.array(K.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function wh(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n=Ch(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>wh(e,t)),a=K.union(i);n=r?K.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>wh(e,t)),a=K.xor(i);n=r?K.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:K.any();else{let i=r?n:wh(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Th(e,t){if(typeof e==`boolean`)return e?K.any():K.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:xh(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??xc};return wh(n,r)}var K,Eh,Dh=o((()=>{Sc(),zd(),Yd(),hh(),K={...mf,...Rd,iso:Bd},Eh=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),Oh=c({bigint:()=>Mh,boolean:()=>jh,date:()=>Nh,number:()=>Ah,string:()=>kh});function kh(e){return wc(Qp,e)}function Ah(e){return $c(xm,e)}function jh(e){return ol(Cm,e)}function Mh(e){return cl(wm,e)}function Nh(e){return yl(Nm,e)}var Ph=o((()=>{Nd(),hh()})),Fh=c({$brand:()=>E,$input:()=>yc,$output:()=>vc,NEVER:()=>T,TimePrecision:()=>ku,ZodAny:()=>km,ZodArray:()=>Pm,ZodBase64:()=>gm,ZodBase64URL:()=>_m,ZodBigInt:()=>wm,ZodBigIntFormat:()=>Tm,ZodBoolean:()=>Cm,ZodCIDRv4:()=>mm,ZodCIDRv6:()=>hm,ZodCUID:()=>om,ZodCUID2:()=>sm,ZodCatch:()=>th,ZodCodec:()=>ih,ZodCustom:()=>dh,ZodCustomStringFormat:()=>bm,ZodDate:()=>Nm,ZodDefault:()=>Zm,ZodDiscriminatedUnion:()=>Rm,ZodE164:()=>vm,ZodEmail:()=>em,ZodEmoji:()=>im,ZodEnum:()=>Wm,ZodError:()=>Zd,ZodExactOptional:()=>Ym,ZodFile:()=>Km,ZodFirstPartyTypeKind:()=>yh,ZodFunction:()=>uh,ZodGUID:()=>tm,ZodIPv4:()=>dm,ZodIPv6:()=>pm,ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,ZodIntersection:()=>zm,ZodIssueCode:()=>vh,ZodJWT:()=>ym,ZodKSUID:()=>um,ZodLazy:()=>ch,ZodLiteral:()=>Gm,ZodMAC:()=>fm,ZodMap:()=>Hm,ZodNaN:()=>nh,ZodNanoID:()=>am,ZodNever:()=>jm,ZodNonOptional:()=>$m,ZodNull:()=>Om,ZodNullable:()=>Xm,ZodNumber:()=>xm,ZodNumberFormat:()=>Sm,ZodObject:()=>Fm,ZodOptional:()=>Jm,ZodPipe:()=>rh,ZodPrefault:()=>Qm,ZodPreprocess:()=>ah,ZodPromise:()=>lh,ZodReadonly:()=>oh,ZodRealError:()=>Qd,ZodRecord:()=>Vm,ZodSet:()=>Um,ZodString:()=>Qp,ZodStringFormat:()=>$p,ZodSuccess:()=>eh,ZodSymbol:()=>Em,ZodTemplateLiteral:()=>sh,ZodTransform:()=>qm,ZodTuple:()=>Bm,ZodType:()=>Xp,ZodULID:()=>cm,ZodURL:()=>rm,ZodUUID:()=>nm,ZodUndefined:()=>Dm,ZodUnion:()=>Im,ZodUnknown:()=>Am,ZodVoid:()=>Mm,ZodXID:()=>lm,ZodXor:()=>Lm,_ZodString:()=>Zp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,clone:()=>Ce,codec:()=>Fp,coerce:()=>Oh,config:()=>C,core:()=>Md,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,decode:()=>of,decodeAsync:()=>cf,describe:()=>fh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,encode:()=>af,encodeAsync:()=>sf,endsWith:()=>Vl,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,flattenError:()=>rt,float32:()=>Gf,float64:()=>Kf,formatError:()=>it,fromJSONSchema:()=>Th,function:()=>Vp,getErrorMap:()=>_h,globalRegistry:()=>xc,gt:()=>Cl,gte:()=>wl,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,includes:()=>zl,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,iso:()=>Bd,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,length:()=>Fl,literal:()=>G,locales:()=>mc,looseObject:()=>lp,looseRecord:()=>_p,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,mac:()=>Mf,map:()=>vp,maxLength:()=>Nl,maxSize:()=>Al,meta:()=>ph,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,negative:()=>El,never:()=>ip,nonnegative:()=>Ol,nonoptional:()=>Ap,nonpositive:()=>Dl,normalize:()=>Gl,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,overwrite:()=>Wl,parse:()=>ef,parseAsync:()=>tf,partialRecord:()=>gp,pipe:()=>Pp,positive:()=>Tl,prefault:()=>kp,preprocess:()=>Jp,prettifyError:()=>st,promise:()=>Bp,property:()=>Hl,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,regex:()=>Il,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>uf,safeDecodeAsync:()=>ff,safeEncode:()=>lf,safeEncodeAsync:()=>df,safeParse:()=>nf,safeParseAsync:()=>rf,set:()=>yp,setErrorMap:()=>gh,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>mh,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,toJSONSchema:()=>zu,toLowerCase:()=>ql,toUpperCase:()=>Jl,transform:()=>Cp,treeifyError:()=>at,trim:()=>Kl,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,uppercase:()=>Rl,url:()=>Sf,util:()=>te,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp}),Ih=o((()=>{Nd(),hh(),zd(),$d(),pf(),bh(),Ga(),Dd(),Dh(),hc(),Yd(),Ph(),C(Ua())})),Lh,Rh=o((()=>{Ih(),Ih(),Lh=Fh})),zh=c({$brand:()=>E,$input:()=>yc,$output:()=>vc,NEVER:()=>T,TimePrecision:()=>ku,ZodAny:()=>km,ZodArray:()=>Pm,ZodBase64:()=>gm,ZodBase64URL:()=>_m,ZodBigInt:()=>wm,ZodBigIntFormat:()=>Tm,ZodBoolean:()=>Cm,ZodCIDRv4:()=>mm,ZodCIDRv6:()=>hm,ZodCUID:()=>om,ZodCUID2:()=>sm,ZodCatch:()=>th,ZodCodec:()=>ih,ZodCustom:()=>dh,ZodCustomStringFormat:()=>bm,ZodDate:()=>Nm,ZodDefault:()=>Zm,ZodDiscriminatedUnion:()=>Rm,ZodE164:()=>vm,ZodEmail:()=>em,ZodEmoji:()=>im,ZodEnum:()=>Wm,ZodError:()=>Zd,ZodExactOptional:()=>Ym,ZodFile:()=>Km,ZodFirstPartyTypeKind:()=>yh,ZodFunction:()=>uh,ZodGUID:()=>tm,ZodIPv4:()=>dm,ZodIPv6:()=>pm,ZodISODate:()=>Kd,ZodISODateTime:()=>Gd,ZodISODuration:()=>Jd,ZodISOTime:()=>qd,ZodIntersection:()=>zm,ZodIssueCode:()=>vh,ZodJWT:()=>ym,ZodKSUID:()=>um,ZodLazy:()=>ch,ZodLiteral:()=>Gm,ZodMAC:()=>fm,ZodMap:()=>Hm,ZodNaN:()=>nh,ZodNanoID:()=>am,ZodNever:()=>jm,ZodNonOptional:()=>$m,ZodNull:()=>Om,ZodNullable:()=>Xm,ZodNumber:()=>xm,ZodNumberFormat:()=>Sm,ZodObject:()=>Fm,ZodOptional:()=>Jm,ZodPipe:()=>rh,ZodPrefault:()=>Qm,ZodPreprocess:()=>ah,ZodPromise:()=>lh,ZodReadonly:()=>oh,ZodRealError:()=>Qd,ZodRecord:()=>Vm,ZodSet:()=>Um,ZodString:()=>Qp,ZodStringFormat:()=>$p,ZodSuccess:()=>eh,ZodSymbol:()=>Em,ZodTemplateLiteral:()=>sh,ZodTransform:()=>qm,ZodTuple:()=>Bm,ZodType:()=>Xp,ZodULID:()=>cm,ZodURL:()=>rm,ZodUUID:()=>nm,ZodUndefined:()=>Dm,ZodUnion:()=>Im,ZodUnknown:()=>Am,ZodVoid:()=>Mm,ZodXID:()=>lm,ZodXor:()=>Lm,_ZodString:()=>Zp,_default:()=>Op,_function:()=>Vp,any:()=>np,array:()=>U,base64:()=>If,base64url:()=>Lf,bigint:()=>Xf,boolean:()=>Yf,catch:()=>Mp,check:()=>Hp,cidrv4:()=>Pf,cidrv6:()=>Ff,clone:()=>Ce,codec:()=>Fp,coerce:()=>Oh,config:()=>C,core:()=>Md,cuid:()=>Ef,cuid2:()=>Df,custom:()=>Up,date:()=>op,decode:()=>of,decodeAsync:()=>cf,default:()=>Bh,describe:()=>fh,discriminatedUnion:()=>fp,e164:()=>Rf,email:()=>gf,emoji:()=>wf,encode:()=>af,encodeAsync:()=>sf,endsWith:()=>Vl,enum:()=>bp,exactOptional:()=>Tp,file:()=>Sp,flattenError:()=>rt,float32:()=>Gf,float64:()=>Kf,formatError:()=>it,fromJSONSchema:()=>Th,function:()=>Vp,getErrorMap:()=>_h,globalRegistry:()=>xc,gt:()=>Cl,gte:()=>wl,guid:()=>_f,hash:()=>Uf,hex:()=>Hf,hostname:()=>Vf,httpUrl:()=>Cf,includes:()=>zl,instanceof:()=>Kp,int:()=>Wf,int32:()=>qf,int64:()=>Zf,intersection:()=>pp,invertCodec:()=>Ip,ipv4:()=>jf,ipv6:()=>Nf,iso:()=>Bd,json:()=>qp,jwt:()=>zf,keyof:()=>sp,ksuid:()=>Af,lazy:()=>zp,length:()=>Fl,literal:()=>G,locales:()=>mc,looseObject:()=>lp,looseRecord:()=>_p,lowercase:()=>Ll,lt:()=>xl,lte:()=>Sl,mac:()=>Mf,map:()=>vp,maxLength:()=>Nl,maxSize:()=>Al,meta:()=>ph,mime:()=>Ul,minLength:()=>Pl,minSize:()=>jl,multipleOf:()=>kl,nan:()=>Np,nanoid:()=>Tf,nativeEnum:()=>xp,negative:()=>El,never:()=>ip,nonnegative:()=>Ol,nonoptional:()=>Ap,nonpositive:()=>Dl,normalize:()=>Gl,null:()=>tp,nullable:()=>Ep,nullish:()=>Dp,number:()=>H,object:()=>W,optional:()=>wp,overwrite:()=>Wl,parse:()=>ef,parseAsync:()=>tf,partialRecord:()=>gp,pipe:()=>Pp,positive:()=>Tl,prefault:()=>kp,preprocess:()=>Jp,prettifyError:()=>st,promise:()=>Bp,property:()=>Hl,readonly:()=>Lp,record:()=>hp,refine:()=>Wp,regex:()=>Il,regexes:()=>Lt,registry:()=>gc,safeDecode:()=>uf,safeDecodeAsync:()=>ff,safeEncode:()=>lf,safeEncodeAsync:()=>df,safeParse:()=>nf,safeParseAsync:()=>rf,set:()=>yp,setErrorMap:()=>gh,size:()=>Ml,slugify:()=>Yl,startsWith:()=>Bl,strictObject:()=>cp,string:()=>V,stringFormat:()=>Bf,stringbool:()=>mh,success:()=>jp,superRefine:()=>Gp,symbol:()=>$f,templateLiteral:()=>Rp,toJSONSchema:()=>zu,toLowerCase:()=>ql,toUpperCase:()=>Jl,transform:()=>Cp,treeifyError:()=>at,trim:()=>Kl,tuple:()=>mp,uint32:()=>Jf,uint64:()=>Qf,ulid:()=>Of,undefined:()=>ep,union:()=>up,unknown:()=>rp,uppercase:()=>Rl,url:()=>Sf,util:()=>te,uuid:()=>vf,uuidv4:()=>yf,uuidv6:()=>bf,uuidv7:()=>xf,void:()=>ap,xid:()=>kf,xor:()=>dp,z:()=>Fh}),Bh,Vh=o((()=>{Rh(),Rh(),Bh=Lh}));Vh();var Hh=`io.modelcontextprotocol/related-task`,Uh=Up(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Wh=up([V(),H().int()]),Gh=V();lp({ttl:H().optional(),pollInterval:H().optional()});var Kh=W({ttl:H().optional()}),qh=W({taskId:V()}),Jh=lp({progressToken:Wh.optional(),[Hh]:qh.optional()}),Yh=W({_meta:Jh.optional()}),Xh=Yh.extend({task:Kh.optional()}),Zh=e=>Xh.safeParse(e).success,Qh=W({method:V(),params:Yh.loose().optional()}),$h=W({_meta:Jh.optional()}),eg=W({method:V(),params:$h.loose().optional()}),tg=lp({_meta:Jh.optional()}),ng=up([V(),H().int()]),rg=W({jsonrpc:G(`2.0`),id:ng,...Qh.shape}).strict(),ig=e=>rg.safeParse(e).success,ag=W({jsonrpc:G(`2.0`),...eg.shape}).strict(),og=e=>ag.safeParse(e).success,sg=W({jsonrpc:G(`2.0`),id:ng,result:tg}).strict(),cg=e=>sg.safeParse(e).success,lg;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(lg||={});var ug=W({jsonrpc:G(`2.0`),id:ng.optional(),error:W({code:H().int(),message:V(),data:rp().optional()})}).strict(),dg=e=>ug.safeParse(e).success,fg=up([rg,ag,sg,ug]);up([sg,ug]);var pg=tg.strict(),mg=$h.extend({requestId:ng.optional(),reason:V().optional()}),hg=eg.extend({method:G(`notifications/cancelled`),params:mg}),gg=W({icons:U(W({src:V(),mimeType:V().optional(),sizes:U(V()).optional(),theme:bp([`light`,`dark`]).optional()})).optional()}),_g=W({name:V(),title:V().optional()}),vg=_g.extend({..._g.shape,...gg.shape,version:V(),websiteUrl:V().optional(),description:V().optional()}),yg=Jp(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,pp(W({form:pp(W({applyDefaults:Yf().optional()}),hp(V(),rp())).optional(),url:Uh.optional()}),hp(V(),rp()).optional())),bg=lp({list:Uh.optional(),cancel:Uh.optional(),requests:lp({sampling:lp({createMessage:Uh.optional()}).optional(),elicitation:lp({create:Uh.optional()}).optional()}).optional()}),xg=lp({list:Uh.optional(),cancel:Uh.optional(),requests:lp({tools:lp({call:Uh.optional()}).optional()}).optional()}),Sg=W({experimental:hp(V(),Uh).optional(),sampling:W({context:Uh.optional(),tools:Uh.optional()}).optional(),elicitation:yg.optional(),roots:W({listChanged:Yf().optional()}).optional(),tasks:bg.optional(),extensions:hp(V(),Uh).optional()}),Cg=Yh.extend({protocolVersion:V(),capabilities:Sg,clientInfo:vg}),wg=Qh.extend({method:G(`initialize`),params:Cg}),Tg=W({experimental:hp(V(),Uh).optional(),logging:Uh.optional(),completions:Uh.optional(),prompts:W({listChanged:Yf().optional()}).optional(),resources:W({subscribe:Yf().optional(),listChanged:Yf().optional()}).optional(),tools:W({listChanged:Yf().optional()}).optional(),tasks:xg.optional(),extensions:hp(V(),Uh).optional()}),Eg=tg.extend({protocolVersion:V(),capabilities:Tg,serverInfo:vg,instructions:V().optional()}),Dg=eg.extend({method:G(`notifications/initialized`),params:$h.optional()}),Og=Qh.extend({method:G(`ping`),params:Yh.optional()}),kg=W({progress:H(),total:wp(H()),message:wp(V())}),Ag=W({...$h.shape,...kg.shape,progressToken:Wh}),jg=eg.extend({method:G(`notifications/progress`),params:Ag}),Mg=Yh.extend({cursor:Gh.optional()}),Ng=Qh.extend({params:Mg.optional()}),Pg=tg.extend({nextCursor:Gh.optional()}),Fg=bp([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Ig=W({taskId:V(),status:Fg,ttl:up([H(),tp()]),createdAt:V(),lastUpdatedAt:V(),pollInterval:wp(H()),statusMessage:wp(V())}),Lg=tg.extend({task:Ig}),Rg=$h.merge(Ig),zg=eg.extend({method:G(`notifications/tasks/status`),params:Rg}),Bg=Qh.extend({method:G(`tasks/get`),params:Yh.extend({taskId:V()})}),Vg=tg.merge(Ig),Hg=Qh.extend({method:G(`tasks/result`),params:Yh.extend({taskId:V()})});tg.loose();var Ug=Ng.extend({method:G(`tasks/list`)}),Wg=Pg.extend({tasks:U(Ig)}),Gg=Qh.extend({method:G(`tasks/cancel`),params:Yh.extend({taskId:V()})}),Kg=tg.merge(Ig),qg=W({uri:V(),mimeType:wp(V()),_meta:hp(V(),rp()).optional()}),Jg=qg.extend({text:V()}),Yg=V().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Xg=qg.extend({blob:Yg}),Zg=bp([`user`,`assistant`]),Qg=W({audience:U(Zg).optional(),priority:H().min(0).max(1).optional(),lastModified:Vd({offset:!0}).optional()}),$g=W({..._g.shape,...gg.shape,uri:V(),description:wp(V()),mimeType:wp(V()),size:wp(H()),annotations:Qg.optional(),_meta:wp(lp({}))}),e_=W({..._g.shape,...gg.shape,uriTemplate:V(),description:wp(V()),mimeType:wp(V()),annotations:Qg.optional(),_meta:wp(lp({}))}),t_=Ng.extend({method:G(`resources/list`)}),n_=Pg.extend({resources:U($g)}),r_=Ng.extend({method:G(`resources/templates/list`)}),i_=Pg.extend({resourceTemplates:U(e_)}),a_=Yh.extend({uri:V()}),o_=a_,s_=Qh.extend({method:G(`resources/read`),params:o_}),c_=tg.extend({contents:U(up([Jg,Xg]))}),l_=eg.extend({method:G(`notifications/resources/list_changed`),params:$h.optional()}),u_=a_,d_=Qh.extend({method:G(`resources/subscribe`),params:u_}),f_=a_,p_=Qh.extend({method:G(`resources/unsubscribe`),params:f_}),m_=$h.extend({uri:V()}),h_=eg.extend({method:G(`notifications/resources/updated`),params:m_}),g_=W({name:V(),description:wp(V()),required:wp(Yf())}),__=W({..._g.shape,...gg.shape,description:wp(V()),arguments:wp(U(g_)),_meta:wp(lp({}))}),v_=Ng.extend({method:G(`prompts/list`)}),y_=Pg.extend({prompts:U(__)}),b_=Yh.extend({name:V(),arguments:hp(V(),V()).optional()}),x_=Qh.extend({method:G(`prompts/get`),params:b_}),S_=W({type:G(`text`),text:V(),annotations:Qg.optional(),_meta:hp(V(),rp()).optional()}),C_=W({type:G(`image`),data:Yg,mimeType:V(),annotations:Qg.optional(),_meta:hp(V(),rp()).optional()}),w_=W({type:G(`audio`),data:Yg,mimeType:V(),annotations:Qg.optional(),_meta:hp(V(),rp()).optional()}),T_=W({type:G(`tool_use`),name:V(),id:V(),input:hp(V(),rp()),_meta:hp(V(),rp()).optional()}),E_=W({type:G(`resource`),resource:up([Jg,Xg]),annotations:Qg.optional(),_meta:hp(V(),rp()).optional()}),D_=$g.extend({type:G(`resource_link`)}),O_=up([S_,C_,w_,D_,E_]),k_=W({role:Zg,content:O_}),A_=tg.extend({description:V().optional(),messages:U(k_)}),j_=eg.extend({method:G(`notifications/prompts/list_changed`),params:$h.optional()}),M_=W({title:V().optional(),readOnlyHint:Yf().optional(),destructiveHint:Yf().optional(),idempotentHint:Yf().optional(),openWorldHint:Yf().optional()}),N_=W({taskSupport:bp([`required`,`optional`,`forbidden`]).optional()}),P_=W({..._g.shape,...gg.shape,description:V().optional(),inputSchema:W({type:G(`object`),properties:hp(V(),Uh).optional(),required:U(V()).optional()}).catchall(rp()),outputSchema:W({type:G(`object`),properties:hp(V(),Uh).optional(),required:U(V()).optional()}).catchall(rp()).optional(),annotations:M_.optional(),execution:N_.optional(),_meta:hp(V(),rp()).optional()}),F_=Ng.extend({method:G(`tools/list`)}),I_=Pg.extend({tools:U(P_)}),L_=tg.extend({content:U(O_).default([]),structuredContent:hp(V(),rp()).optional(),isError:Yf().optional()});L_.or(tg.extend({toolResult:rp()}));var R_=Xh.extend({name:V(),arguments:hp(V(),rp()).optional()}),z_=Qh.extend({method:G(`tools/call`),params:R_}),B_=eg.extend({method:G(`notifications/tools/list_changed`),params:$h.optional()});W({autoRefresh:Yf().default(!0),debounceMs:H().int().nonnegative().default(300)});var V_=bp([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),H_=Yh.extend({level:V_}),U_=Qh.extend({method:G(`logging/setLevel`),params:H_}),W_=$h.extend({level:V_,logger:V().optional(),data:rp()}),G_=eg.extend({method:G(`notifications/message`),params:W_}),K_=W({hints:U(W({name:V().optional()})).optional(),costPriority:H().min(0).max(1).optional(),speedPriority:H().min(0).max(1).optional(),intelligencePriority:H().min(0).max(1).optional()}),q_=W({mode:bp([`auto`,`required`,`none`]).optional()}),J_=W({type:G(`tool_result`),toolUseId:V().describe(`The unique identifier for the corresponding tool call.`),content:U(O_).default([]),structuredContent:W({}).loose().optional(),isError:Yf().optional(),_meta:hp(V(),rp()).optional()}),Y_=fp(`type`,[S_,C_,w_]),X_=fp(`type`,[S_,C_,w_,T_,J_]),Z_=W({role:Zg,content:up([X_,U(X_)]),_meta:hp(V(),rp()).optional()}),Q_=Xh.extend({messages:U(Z_),modelPreferences:K_.optional(),systemPrompt:V().optional(),includeContext:bp([`none`,`thisServer`,`allServers`]).optional(),temperature:H().optional(),maxTokens:H().int(),stopSequences:U(V()).optional(),metadata:Uh.optional(),tools:U(P_).optional(),toolChoice:q_.optional()}),$_=Qh.extend({method:G(`sampling/createMessage`),params:Q_}),ev=tg.extend({model:V(),stopReason:wp(bp([`endTurn`,`stopSequence`,`maxTokens`]).or(V())),role:Zg,content:Y_}),tv=tg.extend({model:V(),stopReason:wp(bp([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(V())),role:Zg,content:up([X_,U(X_)])}),nv=W({type:G(`boolean`),title:V().optional(),description:V().optional(),default:Yf().optional()}),rv=W({type:G(`string`),title:V().optional(),description:V().optional(),minLength:H().optional(),maxLength:H().optional(),format:bp([`email`,`uri`,`date`,`date-time`]).optional(),default:V().optional()}),iv=W({type:bp([`number`,`integer`]),title:V().optional(),description:V().optional(),minimum:H().optional(),maximum:H().optional(),default:H().optional()}),av=W({type:G(`string`),title:V().optional(),description:V().optional(),enum:U(V()),default:V().optional()}),ov=W({type:G(`string`),title:V().optional(),description:V().optional(),oneOf:U(W({const:V(),title:V()})),default:V().optional()}),sv=up([up([W({type:G(`string`),title:V().optional(),description:V().optional(),enum:U(V()),enumNames:U(V()).optional(),default:V().optional()}),up([av,ov]),up([W({type:G(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:W({type:G(`string`),enum:U(V())}),default:U(V()).optional()}),W({type:G(`array`),title:V().optional(),description:V().optional(),minItems:H().optional(),maxItems:H().optional(),items:W({anyOf:U(W({const:V(),title:V()}))}),default:U(V()).optional()})])]),nv,rv,iv]),cv=up([Xh.extend({mode:G(`form`).optional(),message:V(),requestedSchema:W({type:G(`object`),properties:hp(V(),sv),required:U(V()).optional()})}),Xh.extend({mode:G(`url`),message:V(),elicitationId:V(),url:V().url()})]),lv=Qh.extend({method:G(`elicitation/create`),params:cv}),uv=$h.extend({elicitationId:V()}),dv=eg.extend({method:G(`notifications/elicitation/complete`),params:uv}),fv=tg.extend({action:bp([`accept`,`decline`,`cancel`]),content:Jp(e=>e===null?void 0:e,hp(V(),up([V(),H(),Yf(),U(V())])).optional())}),pv=W({type:G(`ref/resource`),uri:V()}),mv=W({type:G(`ref/prompt`),name:V()}),hv=Yh.extend({ref:up([mv,pv]),argument:W({name:V(),value:V()}),context:W({arguments:hp(V(),V()).optional()}).optional()}),gv=Qh.extend({method:G(`completion/complete`),params:hv}),_v=tg.extend({completion:lp({values:U(V()).max(100),total:wp(H().int()),hasMore:wp(Yf())})}),vv=W({uri:V().startsWith(`file://`),name:V().optional(),_meta:hp(V(),rp()).optional()}),yv=Qh.extend({method:G(`roots/list`),params:Yh.optional()}),bv=tg.extend({roots:U(vv)}),xv=eg.extend({method:G(`notifications/roots/list_changed`),params:$h.optional()});up([Og,wg,gv,U_,x_,v_,t_,r_,s_,d_,p_,z_,F_,Bg,Hg,Ug,Gg]),up([hg,jg,Dg,xv,zg]),up([pg,ev,tv,fv,bv,Vg,Wg,Lg]),up([Og,$_,lv,yv,Bg,Hg,Ug,Gg]),up([hg,jg,G_,h_,l_,B_,j_,zg,dv]),up([pg,Eg,_v,A_,y_,n_,i_,c_,L_,I_,Vg,Wg,Lg]);var Sv=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===lg.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new Cv(e.elicitations,n)}return new e(t,n,r)}},Cv=class extends Sv{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(lg.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function wv(e){return e===`completed`||e===`failed`||e===`cancelled`}function Tv(e){let t=Id(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Ld(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function Ev(e,t){let n=Fd(e,t);if(!n.success)throw n.error;return n.data}var Dv=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(hg,e=>{this._oncancel(e)}),this.setNotificationHandler(jg,e=>{this._onprogress(e)}),this.setRequestHandler(Og,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Bg,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Sv(lg.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Hg,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Sv(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Sv(lg.InvalidParams,`Task not found: ${r}`);if(!wv(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(wv(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Hh]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Ug,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Sv(lg.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Gg,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Sv(lg.InvalidParams,`Task not found: ${e.params.taskId}`);if(wv(n.status))throw new Sv(lg.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Sv(lg.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Sv?e:new Sv(lg.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Sv.fromError(lg.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),cg(e)||dg(e)?this._onresponse(e):ig(e)?this._onrequest(e,t):og(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=Sv.fromError(lg.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Hh]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:lg.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Zh(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new Sv(lg.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:lg.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),cg(e)?n(e):n(new Sv(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(cg(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),cg(e)?r(e):r(Sv.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Sv?e:new Sv(lg.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Lg,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Sv(lg.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},wv(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Sv(lg.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Sv(lg.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Sv?e:new Sv(lg.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Hh]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Sv?e:new Sv(lg.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Fd(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(Sv.fromError(lg.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Vg,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Wg,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Kg,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Hh]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Hh]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Hh]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=Tv(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=Ev(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=Tv(e);this._notificationHandlers.set(n,n=>{let r=Ev(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&ig(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Sv(lg.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Sv(lg.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Sv(lg.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Sv(lg.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=zg.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),wv(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Sv(lg.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(wv(a.status))throw new Sv(lg.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=zg.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),wv(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function Ov(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function kv(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=Ov(a)&&Ov(i)?{...a,...i}:i}return n}var Av=`modulepreload`,jv=function(e,t){return new URL(e,t).href},Mv={},Nv=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=jv(t,n),t=s(t),t in Mv)return;Mv[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Av,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};Vh(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var Pv=class extends Dv{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},Fv=`2026-01-26`,Iv=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=fg.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},Lv=up([G(`light`),G(`dark`)]).describe(`Color theme preference for the host environment.`),Rv=up([G(`inline`),G(`fullscreen`),G(`pip`)]).describe(`Display mode for UI presentation.`),zv=hp(up([G(`--color-background-primary`),G(`--color-background-secondary`),G(`--color-background-tertiary`),G(`--color-background-inverse`),G(`--color-background-ghost`),G(`--color-background-info`),G(`--color-background-danger`),G(`--color-background-success`),G(`--color-background-warning`),G(`--color-background-disabled`),G(`--color-text-primary`),G(`--color-text-secondary`),G(`--color-text-tertiary`),G(`--color-text-inverse`),G(`--color-text-ghost`),G(`--color-text-info`),G(`--color-text-danger`),G(`--color-text-success`),G(`--color-text-warning`),G(`--color-text-disabled`),G(`--color-border-primary`),G(`--color-border-secondary`),G(`--color-border-tertiary`),G(`--color-border-inverse`),G(`--color-border-ghost`),G(`--color-border-info`),G(`--color-border-danger`),G(`--color-border-success`),G(`--color-border-warning`),G(`--color-border-disabled`),G(`--color-ring-primary`),G(`--color-ring-secondary`),G(`--color-ring-inverse`),G(`--color-ring-info`),G(`--color-ring-danger`),G(`--color-ring-success`),G(`--color-ring-warning`),G(`--font-sans`),G(`--font-mono`),G(`--font-weight-normal`),G(`--font-weight-medium`),G(`--font-weight-semibold`),G(`--font-weight-bold`),G(`--font-text-xs-size`),G(`--font-text-sm-size`),G(`--font-text-md-size`),G(`--font-text-lg-size`),G(`--font-heading-xs-size`),G(`--font-heading-sm-size`),G(`--font-heading-md-size`),G(`--font-heading-lg-size`),G(`--font-heading-xl-size`),G(`--font-heading-2xl-size`),G(`--font-heading-3xl-size`),G(`--font-text-xs-line-height`),G(`--font-text-sm-line-height`),G(`--font-text-md-line-height`),G(`--font-text-lg-line-height`),G(`--font-heading-xs-line-height`),G(`--font-heading-sm-line-height`),G(`--font-heading-md-line-height`),G(`--font-heading-lg-line-height`),G(`--font-heading-xl-line-height`),G(`--font-heading-2xl-line-height`),G(`--font-heading-3xl-line-height`),G(`--border-radius-xs`),G(`--border-radius-sm`),G(`--border-radius-md`),G(`--border-radius-lg`),G(`--border-radius-xl`),G(`--border-radius-full`),G(`--border-width-regular`),G(`--shadow-hairline`),G(`--shadow-sm`),G(`--shadow-md`),G(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). @@ -94,10 +94,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);W({method:G(`ui/open-link`),params:W({url:V().describe(`URL to open in the host's browser`)})});var zv=W({isError:Yf().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Bv=W({isError:Yf().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Vv=W({isError:Yf().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();W({method:G(`ui/notifications/sandbox-proxy-ready`),params:W({})});var Hv=W({connectDomains:U(V()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);W({method:G(`ui/open-link`),params:W({url:V().describe(`URL to open in the host's browser`)})});var Bv=W({isError:Yf().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Vv=W({isError:Yf().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Hv=W({isError:Yf().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();W({method:G(`ui/notifications/sandbox-proxy-ready`),params:W({})});var Uv=W({connectDomains:U(V()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:U(V()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:U(V()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:U(V()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Uv=W({camera:W({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:U(V()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:U(V()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:U(V()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Wv=W({camera:W({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:W({}).optional().describe(`Request microphone access. @@ -105,7 +105,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:W({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});W({method:G(`ui/notifications/size-changed`),params:W({width:H().optional().describe(`New width in pixels.`),height:H().optional().describe(`New height in pixels.`)})});var Wv=W({method:G(`ui/notifications/tool-input`),params:W({arguments:hp(V(),rp().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Gv=W({method:G(`ui/notifications/tool-input-partial`),params:W({arguments:hp(V(),rp().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Kv=W({method:G(`ui/notifications/tool-cancelled`),params:W({reason:V().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),qv=W({fonts:V().optional()}),Jv=W({variables:Rv.optional().describe(`CSS variables for theming the app.`),css:qv.optional().describe(`CSS blocks that apps can inject.`)}),Yv=W({method:G(`ui/resource-teardown`),params:W({})});hp(V(),rp());var Xv=W({text:W({}).optional().describe(`Host supports text content blocks.`),image:W({}).optional().describe(`Host supports image content blocks.`),audio:W({}).optional().describe(`Host supports audio content blocks.`),resource:W({}).optional().describe(`Host supports resource content blocks.`),resourceLink:W({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:W({}).optional().describe(`Host supports structured content.`)});W({method:G(`ui/notifications/request-teardown`),params:W({}).optional()});var Zv=W({experimental:hp(V(),hp(V(),np()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:W({}).optional().describe(`Host supports opening external URLs.`),downloadFile:W({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:W({listChanged:Yf().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:W({listChanged:Yf().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:W({}).optional().describe(`Host accepts log messages.`),sandbox:W({permissions:Uv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Hv.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Xv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Xv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:W({tools:W({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Qv=W({experimental:hp(V(),hp(V(),np()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:W({listChanged:Yf().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:U(Lv).optional().describe(`Display modes the app supports.`)});W({method:G(`ui/notifications/initialized`),params:W({}).optional()}),W({csp:Hv.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Uv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:V().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});W({method:G(`ui/notifications/size-changed`),params:W({width:H().optional().describe(`New width in pixels.`),height:H().optional().describe(`New height in pixels.`)})});var Gv=W({method:G(`ui/notifications/tool-input`),params:W({arguments:hp(V(),rp().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Kv=W({method:G(`ui/notifications/tool-input-partial`),params:W({arguments:hp(V(),rp().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),qv=W({method:G(`ui/notifications/tool-cancelled`),params:W({reason:V().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),Jv=W({fonts:V().optional()}),Yv=W({variables:zv.optional().describe(`CSS variables for theming the app.`),css:Jv.optional().describe(`CSS blocks that apps can inject.`)}),Xv=W({method:G(`ui/resource-teardown`),params:W({})});hp(V(),rp());var Zv=W({text:W({}).optional().describe(`Host supports text content blocks.`),image:W({}).optional().describe(`Host supports image content blocks.`),audio:W({}).optional().describe(`Host supports audio content blocks.`),resource:W({}).optional().describe(`Host supports resource content blocks.`),resourceLink:W({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:W({}).optional().describe(`Host supports structured content.`)});W({method:G(`ui/notifications/request-teardown`),params:W({}).optional()});var Qv=W({experimental:hp(V(),hp(V(),np()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:W({}).optional().describe(`Host supports opening external URLs.`),downloadFile:W({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:W({listChanged:Yf().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:W({listChanged:Yf().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:W({}).optional().describe(`Host accepts log messages.`),sandbox:W({permissions:Wv.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Uv.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Zv.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Zv.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:W({tools:W({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),$v=W({experimental:hp(V(),hp(V(),np()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:W({listChanged:Yf().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:U(Rv).optional().describe(`Display modes the app supports.`)});W({method:G(`ui/notifications/initialized`),params:W({}).optional()}),W({csp:Uv.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Wv.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:V().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -119,14 +119,14 @@ - \`true\`: request visible border + background - \`false\`: request no visible border + background -- omitted: host decides border`)}),W({method:G(`ui/request-display-mode`),params:W({mode:Lv.describe(`The display mode being requested.`)})});var $v=W({mode:Lv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),ey=up([G(`model`),G(`app`)]).describe(`Tool visibility scope - who can access the tool.`);W({resourceUri:V().optional(),visibility:U(ey).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),W({method:G(`ui/request-display-mode`),params:W({mode:Rv.describe(`The display mode being requested.`)})});var ey=W({mode:Rv.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),ty=up([G(`model`),G(`app`)]).describe(`Tool visibility scope - who can access the tool.`);W({resourceUri:V().optional(),visibility:U(ty).optional().describe(`Who can access this tool. Default: ["model", "app"] - "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:ip().optional(),permissions:ip().optional()}),W({mimeTypes:U(V()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),W({method:G(`ui/download-file`),params:W({contents:U(up([T_,E_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),W({method:G(`ui/message`),params:W({role:G(`user`).describe(`Message role, currently only "user" is supported.`),content:U(D_).describe(`Message content blocks (text, image, etc.).`)})}),W({method:G(`ui/notifications/sandbox-resource-ready`),params:W({html:V().describe(`HTML content to load into the inner iframe.`),sandbox:V().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Hv.optional().describe(`CSP configuration from resource metadata.`),permissions:Uv.optional().describe(`Sandbox permissions from resource metadata.`)})});var ty=W({method:G(`ui/notifications/tool-result`),params:I_.describe(`Standard MCP tool execution result.`)}),ny=W({toolInfo:W({id:tg.optional().describe(`JSON-RPC id of the tools/call request.`),tool:N_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Iv.optional().describe(`Current color theme preference.`),styles:Jv.optional().describe(`Style configuration for theming the app.`),displayMode:Lv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:U(Lv).optional().describe(`Display modes the host supports.`),containerDimensions:up([W({height:H().describe(`Fixed container height in pixels.`)}),W({maxHeight:up([H(),ep()]).optional().describe(`Maximum container height in pixels.`)})]).and(up([W({width:H().describe(`Fixed container width in pixels.`)}),W({maxWidth:up([H(),ep()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:up([G(`web`),G(`desktop`),G(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:W({touch:Yf().optional().describe(`Whether the device supports touch input.`),hover:Yf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:W({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),ry=W({method:G(`ui/notifications/host-context-changed`),params:ny.describe(`Partial context update containing only changed fields.`)});W({method:G(`ui/update-model-context`),params:W({content:U(D_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:hp(V(),rp().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),W({method:G(`ui/initialize`),params:W({appInfo:_g.describe(`App identification (name and version).`),appCapabilities:Qv.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var iy=W({protocolVersion:V().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:_g.describe(`Host application identification and version.`),hostCapabilities:Zv.describe(`Features and capabilities provided by the host.`),hostContext:ny.describe(`Rich context about the host environment.`)}).passthrough(),ay={target:`draft-2020-12`};async function oy(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](ay);if(n.vendor===`zod`){let{z:n}=await Mv(async()=>{let{z:e}=await Promise.resolve().then(()=>(Bh(),Rh));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function sy(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function cy(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function ly(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function uy(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function dy(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var fy=class e extends Nv{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Wv,toolinputpartial:Gv,toolresult:ty,toolcancelled:Kv,hostcontextchanged:ry};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||C({jitless:!0}),this.setRequestHandler(Dg,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=Ov(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await sy(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await sy(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await oy(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await oy(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Yv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(R_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(P_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},I_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},s_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},t_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?ev:$_;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Vv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},fg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},zv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Bv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},$v,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Fv(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Pv}},iy,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function py({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(!1),[l,u]=(0,b.useState)(null);return(0,b.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new Fv(window.parent,window.parent);if(s=new fy(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function my(){let[e,t]=(0,b.useState)(cy);return(0,b.useEffect)(()=>{let e=new MutationObserver(()=>{t(cy())});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`],characterData:!1,childList:!1,subtree:!1}),()=>e.disconnect()},[]),e}function hy(e,t){let n=(0,b.useRef)(!1);(0,b.useEffect)(()=>{n.current||(t?.theme&&ly(t.theme),t?.styles?.variables&&uy(t.styles.variables),(t?.theme||t?.styles?.variables)&&(n.current=!0))},[t]),(0,b.useEffect)(()=>{if(!e)return;let t=e=>{e.theme&&ly(e.theme),e.styles?.variables&&uy(e.styles.variables)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function gy(e,t){let n=(0,b.useRef)(!1);(0,b.useEffect)(()=>{n.current||t?.styles?.css?.fonts&&(dy(t.styles.css.fonts),n.current=!0)},[t]),(0,b.useEffect)(()=>{if(!e)return;let t=e=>{e.styles?.css?.fonts&&dy(e.styles.css.fonts)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function _y(e,t){hy(e,t),gy(e,t)}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var yy=`$$material`;function by(e){if(e.sheet)return e.sheet;for(var t=0;t0?By(Zy,--Yy):0,qy--,Xy===10&&(qy=1,Ky--),Xy}function nb(){return Xy=Yy2||ob(Xy)>3?``:` `}function db(e,t){for(;--t&&nb()&&!(Xy<48||Xy>102||Xy>57&&Xy<65||Xy>70&&Xy<97););return ab(e,ib()+(t<6&&rb()==32&&nb()==32))}function fb(e){for(;nb();)switch(Xy){case e:return Yy;case 34:case 39:e!==34&&e!==39&&fb(Xy);break;case 40:e===41&&fb(e);break;case 92:nb();break}return Yy}function pb(e,t){for(;nb()&&e+Xy!==57&&(e+Xy!==84||rb()!==47););return`/*`+ab(t,Yy-1)+`*`+Ny(e===47?e:nb())}function mb(e){for(;!ob(rb());)nb();return ab(e,Yy)}function hb(e){return cb(gb(``,null,null,null,[``],e=sb(e),0,[0],e))}function gb(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=nb()){case 40:if(m!=108&&By(C,d-1)==58){zy(C+=Ry(lb(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=lb(v);break;case 9:case 10:case 13:case 32:C+=ub(m);break;case 92:C+=db(ib()-1,7);continue;case 47:switch(rb()){case 42:case 47:Wy(vb(pb(nb(),ib()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Hy(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Ry(C,/\f/g,``)),p>0&&Hy(C)-d&&Wy(p>32?yb(C+`;`,r,n,d-1):yb(Ry(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Wy(S=_b(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)gb(C,t,S,S,b,a,d,s,x);else switch(f===99&&By(C,3)===110?100:f){case 100:case 108:case 109:case 115:gb(e,S,S,r&&Wy(_b(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:gb(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Hy(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&tb()==125)continue}switch(C+=Ny(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Hy(C)-1)*_,_=1;break;case 64:rb()===45&&(C+=lb(nb())),f=rb(),u=d=Hy(y=C+=mb(ib())),v++;break;case 45:m===45&&Hy(C)==2&&(h=0)}}return a}function _b(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Uy(f),m=0,h=0,g=0;m0?f[_]+` `+v:Ry(v,/&\f/g,f[_])))&&(c[g++]=y);return Qy(e,t,n,i===0?Dy:s,c,l,u)}function vb(e,t,n){return Qy(e,t,n,Ey,Ny(eb()),Vy(e,2,-2),0)}function yb(e,t,n,r){return Qy(e,t,n,Oy,Vy(e,0,r),Vy(e,r+1,-1),r)}function bb(e,t){for(var n=``,r=Uy(e),i=0;i6)switch(By(e,t+1)){case 109:if(By(e,t+4)!==45)break;case 102:return Ry(e,/(.+:)(.+)-([^]+)/,`$1`+Ty+`$2-$3$1`+wy+(By(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~zy(e,`stretch`)?jb(Ry(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(By(e,t+1)!==115)break;case 6444:switch(By(e,Hy(e)-3-(~zy(e,`!important`)&&10))){case 107:return Ry(e,`:`,`:`+Ty)+e;case 101:return Ry(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Ty+(By(e,14)===45?`inline-`:``)+`box$3$1`+Ty+`$2$3$1`+Cy+`$2box$3`)+e}break;case 5936:switch(By(e,t+11)){case 114:return Ty+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Ty+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Ty+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Ty+e+Cy+e+e}return e}var Mb=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oy:e.return=jb(e.value,e.length);break;case Ay:return bb([$y(e,{value:Ry(e.value,`@`,`@`+Ty)})],r);case Dy:if(e.length)return Gy(e.props,function(t){switch(Ly(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return bb([$y(e,{props:[Ry(t,/:(read-\w+)/,`:`+wy+`$1`)]})],r);case`::placeholder`:return bb([$y(e,{props:[Ry(t,/:(plac\w+)/,`:`+Ty+`input-$1`)]}),$y(e,{props:[Ry(t,/:(plac\w+)/,`:`+wy+`$1`)]}),$y(e,{props:[Ry(t,/:(plac\w+)/,Cy+`input-$1`)]})],r)}return``})}}],Nb=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Mb,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Fb=s(((e,t)=>{t.exports=Pb()})),Ib=s(((e,t)=>{var n=Fb(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hb=/[A-Z]|^ms/g,Ub=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wb=function(e){return e.charCodeAt(1)===45},Gb=function(e){return e!=null&&typeof e!=`boolean`},Kb=wb(function(e){return Wb(e)?e:e.replace(Hb,`-$&`).toLowerCase()}),qb=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Ub,function(e,t,n){return Zb={name:t,styles:n,next:Zb},t})}return Vb[e]!==1&&!Wb(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Jb(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Zb={name:i.name,styles:i.styles,next:Zb},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zb={name:o.name,styles:o.styles,next:Zb},o=o.next;return a.styles+`;`}return Yb(e,t,n);case`function`:if(e!==void 0){var s=Zb,c=n(e);return Zb=s,Jb(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Yb(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i96?gx:_x},yx=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},bx=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Rb(t,n,r),tx(function(){return zb(t,n,r)}),null},xx=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=yx(t,n,r),c=s||vx(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),Y=s(((e,t)=>{t.exports=wx()}))();function Tx(e){return e==null||Object.keys(e).length===0}function Ex(e){let{styles:t,defaultTheme:n={}}=e;return(0,Y.jsx)(fx,{styles:typeof t==`function`?e=>t(Tx(e)?n:e):t})}function Dx(e,t){return Cx(e,t)}function Ox(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var kx=[];function Ax(e){return kx[0]=e,Qb(kx)}var jx=s((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Mx=s(((e,t)=>{t.exports=jx()}))();function Nx(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Px(e){if(b.isValidElement(e)||(0,Mx.isValidElementType)(e)||!Nx(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Px(e[n])}),t}function Fx(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Nx(e)&&Nx(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])||(0,Mx.isValidElementType)(t[i])?r[i]=t[i]:Nx(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Nx(e[i])?r[i]=Fx(e[i],t[i],n):n.clone?r[i]=Nx(t[i])?Px(t[i]):t[i]:r[i]=t[i]}),r}var Ix=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Lx(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Ix(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1(e.match(Rx)?.[1]||0)-+(t.match(Rx)?.[1]||0));let r=t;for(let e=0;et.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Hx(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Ux(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Wx={borderRadius:4};function Gx(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Kx(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Zx(t)?t:Qx(e)?$x(t):n&&r?Yx(e,t):n===r?eS(e,t):$x(t)}function qx(e){let t=0,n=e.length,r=Array(n);for(t=0;t({up:t=>{let n=typeof t==`number`?t:nS[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function aS(e,t,n){let r={};return oS(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Kx(r,a)})}function oS(e,t,n,r){if(t??=tS,Array.isArray(n)){let i=t.breakpoints??rS;for(let t=0;t{if(e[t]==null)return null;let a=e[t],o=e.theme,s=pS(o,r)||{};return aS(e,a,e=>{let r=fS(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var gS={internal_cache:{}},_S={m:`margin`,p:`padding`},vS={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},yS={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},bS={};for(let e in _S)bS[e]=[_S[e]];for(let e in _S)for(let t in vS){let n=_S[e],r=vS[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];bS[e+t]=i}for(let e in yS)bS[e]=bS[yS[e]];var xS=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),SS=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...xS,...SS];function CS(e,t,n,r){let i=pS(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function wS(e){return CS(e,`spacing`,8,`spacing`)}function TS(e,t){return typeof t==`string`||t==null?t:e(t)}var ES=[``];function DS(e,t){let n=e.theme??gS,r=n?.internal_cache?.unarySpacing??wS(n),i={};for(let n in e){if(!t.has(n))continue;let a=bS[n]??(ES[0]=n,ES),o=e[n];oS(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function NS(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Kx(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function PS(e){return typeof e==`number`?`${e}px solid`:e}function FS(e,t){return hS({prop:e,themeKey:`borders`,transform:t})}var IS=FS(`border`,PS),LS=FS(`borderTop`,PS),RS=FS(`borderRight`,PS),zS=FS(`borderBottom`,PS),BS=FS(`borderLeft`,PS),VS=FS(`borderColor`),HS=FS(`borderTopColor`),US=FS(`borderRightColor`),WS=FS(`borderBottomColor`),GS=FS(`borderLeftColor`),KS=FS(`outline`,PS),qS=FS(`outlineColor`),JS=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=CS(e.theme,`shape.borderRadius`,4,`borderRadius`);return aS(e,e.borderRadius,e=>({borderRadius:TS(t,e)}))}return null};JS.propTypes={},JS.filterProps=[`borderRadius`],NS(IS,LS,RS,zS,BS,VS,HS,US,WS,GS,JS,KS,qS);var YS=e=>{if(e.gap!==void 0&&e.gap!==null){let t=CS(e.theme,`spacing`,8,`gap`);return aS(e,e.gap,e=>({gap:TS(t,e)}))}return null};YS.propTypes={},YS.filterProps=[`gap`];var XS=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=CS(e.theme,`spacing`,8,`columnGap`);return aS(e,e.columnGap,e=>({columnGap:TS(t,e)}))}return null};XS.propTypes={},XS.filterProps=[`columnGap`];var ZS=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=CS(e.theme,`spacing`,8,`rowGap`);return aS(e,e.rowGap,e=>({rowGap:TS(t,e)}))}return null};ZS.propTypes={},ZS.filterProps=[`rowGap`],NS(YS,XS,ZS,hS({prop:`gridColumn`}),hS({prop:`gridRow`}),hS({prop:`gridAutoFlow`}),hS({prop:`gridAutoColumns`}),hS({prop:`gridAutoRows`}),hS({prop:`gridTemplateColumns`}),hS({prop:`gridTemplateRows`}),hS({prop:`gridTemplateAreas`}),hS({prop:`gridArea`}));function QS(e,t){return t===`grey`?t:e}NS(hS({prop:`color`,themeKey:`palette`,transform:QS}),hS({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:QS}),hS({prop:`backgroundColor`,themeKey:`palette`,transform:QS}));var $S=nS;function eC(e){return e<=1&&e!==0?`${e*100}%`:e}var tC=hS({prop:`width`,transform:eC}),nC=e=>e.maxWidth!==void 0&&e.maxWidth!==null?aS(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||$S[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:eC(t)}}):null;nC.filterProps=[`maxWidth`];var rC=hS({prop:`minWidth`,transform:eC}),iC=hS({prop:`height`,transform:eC}),aC=hS({prop:`maxHeight`,transform:eC}),oC=hS({prop:`minHeight`,transform:eC});hS({prop:`size`,cssProperty:`width`,transform:eC}),hS({prop:`size`,cssProperty:`height`,transform:eC}),NS(tC,nC,rC,iC,aC,oC,hS({prop:`boxSizing`}));var sC={border:{themeKey:`borders`,transform:PS},borderTop:{themeKey:`borders`,transform:PS},borderRight:{themeKey:`borders`,transform:PS},borderBottom:{themeKey:`borders`,transform:PS},borderLeft:{themeKey:`borders`,transform:PS},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:PS},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:JS},color:{themeKey:`palette`,transform:QS},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:QS},backgroundColor:{themeKey:`palette`,transform:QS},p:{style:jS},pt:{style:jS},pr:{style:jS},pb:{style:jS},pl:{style:jS},px:{style:jS},py:{style:jS},padding:{style:jS},paddingTop:{style:jS},paddingRight:{style:jS},paddingBottom:{style:jS},paddingLeft:{style:jS},paddingX:{style:jS},paddingY:{style:jS},paddingInline:{style:jS},paddingInlineStart:{style:jS},paddingInlineEnd:{style:jS},paddingBlock:{style:jS},paddingBlockStart:{style:jS},paddingBlockEnd:{style:jS},m:{style:kS},mt:{style:kS},mr:{style:kS},mb:{style:kS},ml:{style:kS},mx:{style:kS},my:{style:kS},margin:{style:kS},marginTop:{style:kS},marginRight:{style:kS},marginBottom:{style:kS},marginLeft:{style:kS},marginX:{style:kS},marginY:{style:kS},marginInline:{style:kS},marginInlineStart:{style:kS},marginInlineEnd:{style:kS},marginBlock:{style:kS},marginBlockStart:{style:kS},marginBlockEnd:{style:kS},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:YS},rowGap:{style:ZS},columnGap:{style:XS},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:eC},maxWidth:{style:nC},minWidth:{transform:eC},height:{transform:eC},maxHeight:{transform:eC},minHeight:{transform:eC},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},cC={};function lC(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=cC,nested:i}=t,a=r.unstable_sxConfig??sC,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??rS,l=cS(c);for(let n in s){let i=fC(s[n],r);if(i!=null){if(typeof i!=`object`){dC(l,n,i,r,a);continue}if(a[n]){dC(l,n,i,r,a);continue}uS(c,i)?oS(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":zx(r,lS(c,l))}:zx(r,lS(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var uC=lC();function dC(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Kx(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=pS(r,o);oS(e,r,n,(n,r)=>{let i=fS(u,l,r,t);c===!1?Kx(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function fC(e,t){return typeof e==`function`?e(t):e}function pC(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function mC(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Lx(n),c=MS(i),l=Fx({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Wx,...a}},o);return l=Ux(l),l.applyStyles=pC,l=t.reduce((e,t)=>Fx(e,t),l),l.unstable_sxConfig={...sC,...o?.unstable_sxConfig},l.unstable_sx=function(e){return uC({sx:e,theme:this})},l.internal_cache={},l}function hC(e){return Object.keys(e).length===0}function gC(e=null){let t=b.useContext(ax);return!t||hC(t)?e:t}var _C=mC();function vC(e=_C){return gC(e)}function yC(e){let t=Ax(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function bC({styles:e,themeId:t,defaultTheme:n={}}){let r=vC(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>yC(typeof e==`function`?e(i):e)):yC(a)),(0,Y.jsx)(Ex,{styles:a})}var xC=e=>e,SC=(()=>{let e=xC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xC}}})();function CC(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;te!==`theme`&&e!==`sx`&&e!==`as`})(uC);return b.forwardRef(function(e,o){let s=vC(n),{className:c,component:l=`div`,...u}=e;return(0,Y.jsx)(a,{as:l,ref:o,className:wC(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var EC={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function DC(e,t,n=`Mui`){let r=EC[t];return r?`${n}-${r}`:`${SC.generate(e)}-${t}`}function OC(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=DC(e,t,n)}),r}function kC(e){let{variants:t,...n}=e,r={variants:t,style:Ax(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Ax(e.style))}),r}var AC=mC();function jC(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function MC(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function NC(e){return e?(t,n)=>n[e]:null}function PC(e,t,n){e.theme=Gx(e.theme)?n:e.theme[t]||e.theme}function FC(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>FC(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?MC(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?MC(Ax(i),n):i}return IC(e,r.variants,[t],n)}return r?.isProcessed?n?MC(Ax(r.style),n):r.style:n?MC(Ax(r),n):r}function IC(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a{Ox(e,e=>e.filter(e=>e!==uC));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=NC(zC(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=jC;o===`Root`||o===`root`?m=r:o?m=i:RC(e)&&(m=void 0);let h=Dx(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return FC(t,e,t.theme.modularCssLayers?d:void 0)};if(Nx(e)){let t=kC(e);return function(e){return t.variants?FC(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?MC(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=FC(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?IC(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(uC),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function RC(e){return typeof e==`string`&&e.charCodeAt(0)>96}function zC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function BC(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=BC(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=wC(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function VC(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:BC(t.components[n].defaultProps,r)}function HC(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=vC(r);return i&&(a=a[i]||a),VC({theme:a,name:n,props:t})}var UC=typeof window<`u`?b.useLayoutEffect:b.useEffect;function WC(e,t,n,r,i){let[a,o]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return UC(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var GC={...b}.useSyncExternalStore;function KC(e,t,n,r,i){let a=b.useCallback(()=>t,[t]),o=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=b.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return GC(c,s,o)}function qC(e={}){let{themeId:t}=e;return function(e,n={}){let r=gC();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=VC({name:`MuiUseMediaQuery`,props:n,theme:r}),l=b.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` -`)),(GC===void 0?WC:KC)(u,a,l,s,c)}}qC();function JC(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function YC(e,t=0,n=1){return JC(e,t,n)}function XC(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function ZC(e){if(e.type)return e;if(e.charAt(0)===`#`)return ZC(XC(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(vy(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(vy(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var QC=e=>{let t=ZC(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},$C=(e,t)=>{try{return QC(e)}catch{return e}};function ew(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function tw(e){e=ZC(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),ew({type:s,values:c})}function nw(e){e=ZC(e);let t=e.type===`hsl`||e.type===`hsla`?ZC(tw(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(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 rw(e,t){let n=nw(e),r=nw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function iw(e,t){return e=ZC(e),t=YC(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ew(e)}function aw(e,t,n){try{return iw(e,t)}catch{return e}}function ow(e,t){if(e=ZC(e),t=YC(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ew(e)}function sw(e,t,n){try{return ow(e,t)}catch{return e}}function cw(e,t){if(e=ZC(e),t=YC(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ew(e)}function lw(e,t,n){try{return cw(e,t)}catch{return e}}function uw(e,t=.15){return nw(e)>.5?ow(e,t):cw(e,t)}function dw(e,t,n){try{return uw(e,t)}catch{return e}}var fw=b.createContext(null);function pw(){return b.useContext(fw)}var mw=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function hw(e,t){return typeof t==`function`?t(e):{...e,...t}}function gw(e){let{children:t,theme:n}=e,r=pw(),i=b.useMemo(()=>{let e=r===null?{...n}:hw(r,n);return e!=null&&(e[mw]=r!==null),e},[n,r]);return(0,Y.jsx)(fw.Provider,{value:i,children:t})}var _w=b.createContext();function vw({value:e,...t}){return(0,Y.jsx)(_w.Provider,{value:e??!0,...t})}var yw=()=>b.useContext(_w)??!1,bw=b.createContext(void 0);function xw({value:e,children:t}){return(0,Y.jsx)(bw.Provider,{value:e,children:t})}function Sw(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?BC(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?BC(i,r,t.components.mergeClassNameAndStyle):r}function Cw({props:e,name:t}){return Sw({props:e,name:t,theme:{components:b.useContext(bw)}})}var ww=0;function Tw(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(ww+=1,n(`mui-${ww}`))},[t]),r}var Ew={...b}.useId;function Dw(e){if(Ew!==void 0){let t=Ew();return e??t}return Tw(e)}function Ow(e){let t=gC(),n=Dw()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,UC(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,Y.jsx)(bC,{styles:i}):null}var kw={};function Aw(e,t,n,r=!1){return b.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function jw(e){let{children:t,theme:n,themeId:r}=e,i=gC(kw),a=pw()||kw,o=Aw(r,i,n),s=Aw(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Ow(o);return(0,Y.jsx)(gw,{theme:s,children:(0,Y.jsx)(ax.Provider,{value:o,children:(0,Y.jsx)(vw,{value:c,children:(0,Y.jsxs)(xw,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Mw={theme:void 0};function Nw(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Mw.theme=r.theme,i=kC(e(Mw)),t=i,n=r.theme),i}}var Pw=`mode`,Fw=`color-scheme`,Iw=`data-color-scheme`;({...b}).useSyncExternalStore;function Lw(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Pw,colorSchemeStorageKey:a=Fw,attribute:o=Iw,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark)); +- "app": Tool callable by the app from this server only`),csp:ip().optional(),permissions:ip().optional()}),W({mimeTypes:U(V()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),W({method:G(`ui/download-file`),params:W({contents:U(up([E_,D_])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),W({method:G(`ui/message`),params:W({role:G(`user`).describe(`Message role, currently only "user" is supported.`),content:U(O_).describe(`Message content blocks (text, image, etc.).`)})}),W({method:G(`ui/notifications/sandbox-resource-ready`),params:W({html:V().describe(`HTML content to load into the inner iframe.`),sandbox:V().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Uv.optional().describe(`CSP configuration from resource metadata.`),permissions:Wv.optional().describe(`Sandbox permissions from resource metadata.`)})});var ny=W({method:G(`ui/notifications/tool-result`),params:L_.describe(`Standard MCP tool execution result.`)}),ry=W({toolInfo:W({id:ng.optional().describe(`JSON-RPC id of the tools/call request.`),tool:P_.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Lv.optional().describe(`Current color theme preference.`),styles:Yv.optional().describe(`Style configuration for theming the app.`),displayMode:Rv.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:U(Rv).optional().describe(`Display modes the host supports.`),containerDimensions:up([W({height:H().describe(`Fixed container height in pixels.`)}),W({maxHeight:up([H(),ep()]).optional().describe(`Maximum container height in pixels.`)})]).and(up([W({width:H().describe(`Fixed container width in pixels.`)}),W({maxWidth:up([H(),ep()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other +container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:V().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:V().optional().describe(`User's timezone in IANA format.`),userAgent:V().optional().describe(`Host application identifier.`),platform:up([G(`web`),G(`desktop`),G(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:W({touch:Yf().optional().describe(`Whether the device supports touch input.`),hover:Yf().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:W({top:H().describe(`Top safe area inset in pixels.`),right:H().describe(`Right safe area inset in pixels.`),bottom:H().describe(`Bottom safe area inset in pixels.`),left:H().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),iy=W({method:G(`ui/notifications/host-context-changed`),params:ry.describe(`Partial context update containing only changed fields.`)});W({method:G(`ui/update-model-context`),params:W({content:U(O_).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:hp(V(),rp().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),W({method:G(`ui/initialize`),params:W({appInfo:vg.describe(`App identification (name and version).`),appCapabilities:$v.describe(`Features and capabilities this app provides.`),protocolVersion:V().describe(`Protocol version this app supports.`)})});var ay=W({protocolVersion:V().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:vg.describe(`Host application identification and version.`),hostCapabilities:Qv.describe(`Features and capabilities provided by the host.`),hostContext:ry.describe(`Rich context about the host environment.`)}).passthrough(),oy={target:`draft-2020-12`};async function sy(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](oy);if(n.vendor===`zod`){let{z:n}=await Nv(async()=>{let{z:e}=await Promise.resolve().then(()=>(Vh(),zh));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function cy(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}function ly(){let e=document.documentElement.getAttribute(`data-theme`);return e===`dark`||e===`light`?e:document.documentElement.classList.contains(`dark`)?`dark`:`light`}function uy(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function dy(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function fy(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var py=class e extends Pv{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:Gv,toolinputpartial:Kv,toolresult:ny,toolcancelled:qv,hostcontextchanged:iy};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||C({jitless:!0}),this.setRequestHandler(Og,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=kv(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await cy(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await cy(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await sy(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await sy(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(Xv,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(z_,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(F_,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},L_,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},c_,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},n_,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?tv:ev;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},Hv,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},pg,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},Bv,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},Vv,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},ey,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Iv(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Fv}},ay,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function my({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,b.useState)(null),[s,c]=(0,b.useState)(!1),[l,u]=(0,b.useState)(null);return(0,b.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new Iv(window.parent,window.parent);if(s=new py(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function hy(){let[e,t]=(0,b.useState)(ly);return(0,b.useEffect)(()=>{let e=new MutationObserver(()=>{t(ly())});return e.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`,`class`],characterData:!1,childList:!1,subtree:!1}),()=>e.disconnect()},[]),e}function gy(e,t){let n=(0,b.useRef)(!1);(0,b.useEffect)(()=>{n.current||(t?.theme&&uy(t.theme),t?.styles?.variables&&dy(t.styles.variables),(t?.theme||t?.styles?.variables)&&(n.current=!0))},[t]),(0,b.useEffect)(()=>{if(!e)return;let t=e=>{e.theme&&uy(e.theme),e.styles?.variables&&dy(e.styles.variables)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function _y(e,t){let n=(0,b.useRef)(!1);(0,b.useEffect)(()=>{n.current||t?.styles?.css?.fonts&&(fy(t.styles.css.fonts),n.current=!0)},[t]),(0,b.useEffect)(()=>{if(!e)return;let t=e=>{e.styles?.css?.fonts&&fy(e.styles.css.fonts)};return e.addEventListener(`hostcontextchanged`,t),()=>e.removeEventListener(`hostcontextchanged`,t)},[e])}function vy(e,t){gy(e,t),_y(e,t)}function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;tn.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var by=`$$material`;function xy(e){if(e.sheet)return e.sheet;for(var t=0;t0?Vy(Qy,--Xy):0,Jy--,Zy===10&&(Jy=1,qy--),Zy}function rb(){return Zy=Xy2||sb(Zy)>3?``:` `}function fb(e,t){for(;--t&&rb()&&!(Zy<48||Zy>102||Zy>57&&Zy<65||Zy>70&&Zy<97););return ob(e,ab()+(t<6&&ib()==32&&rb()==32))}function pb(e){for(;rb();)switch(Zy){case e:return Xy;case 34:case 39:e!==34&&e!==39&&pb(Zy);break;case 40:e===41&&pb(e);break;case 92:rb();break}return Xy}function mb(e,t){for(;rb()&&e+Zy!==57&&(e+Zy!==84||ib()!==47););return`/*`+ob(t,Xy-1)+`*`+Py(e===47?e:rb())}function hb(e){for(;!sb(ib());)rb();return ob(e,Xy)}function gb(e){return lb(_b(``,null,null,null,[``],e=cb(e),0,[0],e))}function _b(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=rb()){case 40:if(m!=108&&Vy(C,d-1)==58){By(C+=zy(ub(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ub(v);break;case 9:case 10:case 13:case 32:C+=db(m);break;case 92:C+=fb(ab()-1,7);continue;case 47:switch(ib()){case 42:case 47:Gy(yb(mb(rb(),ab()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Uy(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=zy(C,/\f/g,``)),p>0&&Uy(C)-d&&Gy(p>32?bb(C+`;`,r,n,d-1):bb(zy(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Gy(S=vb(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)_b(C,t,S,S,b,a,d,s,x);else switch(f===99&&Vy(C,3)===110?100:f){case 100:case 108:case 109:case 115:_b(e,S,S,r&&Gy(vb(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:_b(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Uy(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&nb()==125)continue}switch(C+=Py(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Uy(C)-1)*_,_=1;break;case 64:ib()===45&&(C+=ub(rb())),f=ib(),u=d=Uy(y=C+=hb(ab())),v++;break;case 45:m===45&&Uy(C)==2&&(h=0)}}return a}function vb(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=Wy(f),m=0,h=0,g=0;m0?f[_]+` `+v:zy(v,/&\f/g,f[_])))&&(c[g++]=y);return $y(e,t,n,i===0?Oy:s,c,l,u)}function yb(e,t,n){return $y(e,t,n,Dy,Py(tb()),Hy(e,2,-2),0)}function bb(e,t,n,r){return $y(e,t,n,ky,Hy(e,0,r),Hy(e,r+1,-1),r)}function xb(e,t){for(var n=``,r=Wy(e),i=0;i6)switch(Vy(e,t+1)){case 109:if(Vy(e,t+4)!==45)break;case 102:return zy(e,/(.+:)(.+)-([^]+)/,`$1`+Ey+`$2-$3$1`+Ty+(Vy(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~By(e,`stretch`)?Mb(zy(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(Vy(e,t+1)!==115)break;case 6444:switch(Vy(e,Uy(e)-3-(~By(e,`!important`)&&10))){case 107:return zy(e,`:`,`:`+Ey)+e;case 101:return zy(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Ey+(Vy(e,14)===45?`inline-`:``)+`box$3$1`+Ey+`$2$3$1`+wy+`$2box$3`)+e}break;case 5936:switch(Vy(e,t+11)){case 114:return Ey+e+wy+zy(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Ey+e+wy+zy(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Ey+e+wy+zy(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Ey+e+wy+e+e}return e}var Nb=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ky:e.return=Mb(e.value,e.length);break;case jy:return xb([eb(e,{value:zy(e.value,`@`,`@`+Ey)})],r);case Oy:if(e.length)return Ky(e.props,function(t){switch(Ry(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return xb([eb(e,{props:[zy(t,/:(read-\w+)/,`:`+Ty+`$1`)]})],r);case`::placeholder`:return xb([eb(e,{props:[zy(t,/:(plac\w+)/,`:`+Ey+`input-$1`)]}),eb(e,{props:[zy(t,/:(plac\w+)/,`:`+Ty+`$1`)]}),eb(e,{props:[zy(t,/:(plac\w+)/,wy+`input-$1`)]})],r)}return``})}}],Pb=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Nb,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Ib=s(((e,t)=>{t.exports=Fb()})),Lb=s(((e,t)=>{var n=Ib(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Hb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ub=/[A-Z]|^ms/g,Wb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Gb=function(e){return e.charCodeAt(1)===45},Kb=function(e){return e!=null&&typeof e!=`boolean`},qb=Tb(function(e){return Gb(e)?e:e.replace(Ub,`-$&`).toLowerCase()}),Jb=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Wb,function(e,t,n){return Qb={name:t,styles:n,next:Qb},t})}return Hb[e]!==1&&!Gb(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Yb(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Qb={name:i.name,styles:i.styles,next:Qb},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Qb={name:o.name,styles:o.styles,next:Qb},o=o.next;return a.styles+`;`}return Xb(e,t,n);case`function`:if(e!==void 0){var s=Qb,c=n(e);return Qb=s,Yb(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Xb(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i96?_x:vx},bx=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},xx=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return zb(t,n,r),nx(function(){return Bb(t,n,r)}),null},Sx=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=bx(t,n,r),c=s||yx(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n,e.jsxs=n})),J=s(((e,t)=>{t.exports=Tx()}))();function Ex(e){return e==null||Object.keys(e).length===0}function Dx(e){let{styles:t,defaultTheme:n={}}=e;return(0,J.jsx)(px,{styles:typeof t==`function`?e=>t(Ex(e)?n:e):t})}function Ox(e,t){return wx(e,t)}function kx(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Ax=[];function jx(e){return Ax[0]=e,$b(Ax)}var Mx=s((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Nx=s(((e,t)=>{t.exports=Mx()}))();function Px(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Fx(e){if(b.isValidElement(e)||(0,Nx.isValidElementType)(e)||!Px(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Fx(e[n])}),t}function Ix(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Px(e)&&Px(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])||(0,Nx.isValidElementType)(t[i])?r[i]=t[i]:Px(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Px(e[i])?r[i]=Ix(e[i],t[i],n):n.clone?r[i]=Px(t[i])?Fx(t[i]):t[i]:r[i]=t[i]}),r}var Lx=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Rx(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Lx(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1(e.match(zx)?.[1]||0)-+(t.match(zx)?.[1]||0));let r=t;for(let e=0;et.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Ux(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Wx(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Gx={borderRadius:4};function Kx(e){if(e==null)return!0;for(let t in e)return!1;return!0}function qx(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Qx(t)?t:$x(e)?eS(t):n&&r?Xx(e,t):n===r?tS(e,t):eS(t)}function Jx(e){let t=0,n=e.length,r=Array(n);for(t=0;t({up:t=>{let n=typeof t==`number`?t:rS[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function oS(e,t,n){let r={};return sS(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:qx(r,a)})}function sS(e,t,n,r){if(t??=nS,Array.isArray(n)){let i=t.breakpoints??iS;for(let t=0;t{if(e[t]==null)return null;let a=e[t],o=e.theme,s=mS(o,r)||{};return oS(e,a,e=>{let r=pS(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var _S={internal_cache:{}},vS={m:`margin`,p:`padding`},yS={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},bS={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},xS={};for(let e in vS)xS[e]=[vS[e]];for(let e in vS)for(let t in yS){let n=vS[e],r=yS[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];xS[e+t]=i}for(let e in bS)xS[e]=xS[bS[e]];var SS=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),CS=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...SS,...CS];function wS(e,t,n,r){let i=mS(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function TS(e){return wS(e,`spacing`,8,`spacing`)}function ES(e,t){return typeof t==`string`||t==null?t:e(t)}var DS=[``];function OS(e,t){let n=e.theme??_S,r=n?.internal_cache?.unarySpacing??TS(n),i={};for(let n in e){if(!t.has(n))continue;let a=xS[n]??(DS[0]=n,DS),o=e[n];sS(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function PS(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&qx(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function FS(e){return typeof e==`number`?`${e}px solid`:e}function IS(e,t){return gS({prop:e,themeKey:`borders`,transform:t})}var LS=IS(`border`,FS),RS=IS(`borderTop`,FS),zS=IS(`borderRight`,FS),BS=IS(`borderBottom`,FS),VS=IS(`borderLeft`,FS),HS=IS(`borderColor`),US=IS(`borderTopColor`),WS=IS(`borderRightColor`),GS=IS(`borderBottomColor`),KS=IS(`borderLeftColor`),qS=IS(`outline`,FS),JS=IS(`outlineColor`),YS=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=wS(e.theme,`shape.borderRadius`,4,`borderRadius`);return oS(e,e.borderRadius,e=>({borderRadius:ES(t,e)}))}return null};YS.propTypes={},YS.filterProps=[`borderRadius`],PS(LS,RS,zS,BS,VS,HS,US,WS,GS,KS,YS,qS,JS);var XS=e=>{if(e.gap!==void 0&&e.gap!==null){let t=wS(e.theme,`spacing`,8,`gap`);return oS(e,e.gap,e=>({gap:ES(t,e)}))}return null};XS.propTypes={},XS.filterProps=[`gap`];var ZS=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=wS(e.theme,`spacing`,8,`columnGap`);return oS(e,e.columnGap,e=>({columnGap:ES(t,e)}))}return null};ZS.propTypes={},ZS.filterProps=[`columnGap`];var QS=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=wS(e.theme,`spacing`,8,`rowGap`);return oS(e,e.rowGap,e=>({rowGap:ES(t,e)}))}return null};QS.propTypes={},QS.filterProps=[`rowGap`],PS(XS,ZS,QS,gS({prop:`gridColumn`}),gS({prop:`gridRow`}),gS({prop:`gridAutoFlow`}),gS({prop:`gridAutoColumns`}),gS({prop:`gridAutoRows`}),gS({prop:`gridTemplateColumns`}),gS({prop:`gridTemplateRows`}),gS({prop:`gridTemplateAreas`}),gS({prop:`gridArea`}));function $S(e,t){return t===`grey`?t:e}PS(gS({prop:`color`,themeKey:`palette`,transform:$S}),gS({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:$S}),gS({prop:`backgroundColor`,themeKey:`palette`,transform:$S}));var eC=rS;function tC(e){return e<=1&&e!==0?`${e*100}%`:e}var nC=gS({prop:`width`,transform:tC}),rC=e=>e.maxWidth!==void 0&&e.maxWidth!==null?oS(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||eC[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:tC(t)}}):null;rC.filterProps=[`maxWidth`];var iC=gS({prop:`minWidth`,transform:tC}),aC=gS({prop:`height`,transform:tC}),oC=gS({prop:`maxHeight`,transform:tC}),sC=gS({prop:`minHeight`,transform:tC});gS({prop:`size`,cssProperty:`width`,transform:tC}),gS({prop:`size`,cssProperty:`height`,transform:tC}),PS(nC,rC,iC,aC,oC,sC,gS({prop:`boxSizing`}));var cC={border:{themeKey:`borders`,transform:FS},borderTop:{themeKey:`borders`,transform:FS},borderRight:{themeKey:`borders`,transform:FS},borderBottom:{themeKey:`borders`,transform:FS},borderLeft:{themeKey:`borders`,transform:FS},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:FS},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:YS},color:{themeKey:`palette`,transform:$S},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:$S},backgroundColor:{themeKey:`palette`,transform:$S},p:{style:MS},pt:{style:MS},pr:{style:MS},pb:{style:MS},pl:{style:MS},px:{style:MS},py:{style:MS},padding:{style:MS},paddingTop:{style:MS},paddingRight:{style:MS},paddingBottom:{style:MS},paddingLeft:{style:MS},paddingX:{style:MS},paddingY:{style:MS},paddingInline:{style:MS},paddingInlineStart:{style:MS},paddingInlineEnd:{style:MS},paddingBlock:{style:MS},paddingBlockStart:{style:MS},paddingBlockEnd:{style:MS},m:{style:AS},mt:{style:AS},mr:{style:AS},mb:{style:AS},ml:{style:AS},mx:{style:AS},my:{style:AS},margin:{style:AS},marginTop:{style:AS},marginRight:{style:AS},marginBottom:{style:AS},marginLeft:{style:AS},marginX:{style:AS},marginY:{style:AS},marginInline:{style:AS},marginInlineStart:{style:AS},marginInlineEnd:{style:AS},marginBlock:{style:AS},marginBlockStart:{style:AS},marginBlockEnd:{style:AS},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:XS},rowGap:{style:QS},columnGap:{style:ZS},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:tC},maxWidth:{style:rC},minWidth:{transform:tC},height:{transform:tC},maxHeight:{transform:tC},minHeight:{transform:tC},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},lC={};function uC(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=lC,nested:i}=t,a=r.unstable_sxConfig??cC,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??iS,l=lS(c);for(let n in s){let i=pC(s[n],r);if(i!=null){if(typeof i!=`object`){fC(l,n,i,r,a);continue}if(a[n]){fC(l,n,i,r,a);continue}dS(c,i)?sS(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":Bx(r,uS(c,l))}:Bx(r,uS(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var dC=uC();function fC(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){qx(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=mS(r,o);sS(e,r,n,(n,r)=>{let i=pS(u,l,r,t);c===!1?qx(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function pC(e,t){return typeof e==`function`?e(t):e}function mC(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function hC(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Rx(n),c=NS(i),l=Ix({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Gx,...a}},o);return l=Wx(l),l.applyStyles=mC,l=t.reduce((e,t)=>Ix(e,t),l),l.unstable_sxConfig={...cC,...o?.unstable_sxConfig},l.unstable_sx=function(e){return dC({sx:e,theme:this})},l.internal_cache={},l}function gC(e){return Object.keys(e).length===0}function _C(e=null){let t=b.useContext(ox);return!t||gC(t)?e:t}var vC=hC();function yC(e=vC){return _C(e)}function bC(e){let t=jx(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function xC({styles:e,themeId:t,defaultTheme:n={}}){let r=yC(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>bC(typeof e==`function`?e(i):e)):bC(a)),(0,J.jsx)(Dx,{styles:a})}var SC=e=>e,CC=(()=>{let e=SC;return{configure(t){e=t},generate(t){return e(t)},reset(){e=SC}}})();function wC(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;te!==`theme`&&e!==`sx`&&e!==`as`})(dC);return b.forwardRef(function(e,o){let s=yC(n),{className:c,component:l=`div`,...u}=e;return(0,J.jsx)(a,{as:l,ref:o,className:Y(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var EC={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function DC(e,t,n=`Mui`){let r=EC[t];return r?`${n}-${r}`:`${CC.generate(e)}-${t}`}function OC(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=DC(e,t,n)}),r}function kC(e){let{variants:t,...n}=e,r={variants:t,style:jx(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=jx(e.style))}),r}var AC=hC();function jC(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function MC(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function NC(e){return e?(t,n)=>n[e]:null}function PC(e,t,n){e.theme=Kx(e.theme)?n:e.theme[t]||e.theme}function FC(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>FC(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?MC(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?MC(jx(i),n):i}return IC(e,r.variants,[t],n)}return r?.isProcessed?n?MC(jx(r.style),n):r.style:n?MC(jx(r),n):r}function IC(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a{kx(e,e=>e.filter(e=>e!==dC));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=NC(zC(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=jC;o===`Root`||o===`root`?m=r:o?m=i:RC(e)&&(m=void 0);let h=Ox(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return FC(t,e,t.theme.modularCssLayers?d:void 0)};if(Px(e)){let t=kC(e);return function(e){return t.variants?FC(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?MC(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=FC(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?IC(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(dC),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function RC(e){return typeof e==`string`&&e.charCodeAt(0)>96}function zC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function BC(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=BC(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=Y(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function VC(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:BC(t.components[n].defaultProps,r)}function HC(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=yC(r);return i&&(a=a[i]||a),VC({theme:a,name:n,props:t})}var UC=typeof window<`u`?b.useLayoutEffect:b.useEffect;function WC(e,t,n,r,i){let[a,o]=b.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return UC(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var GC={...b}.useSyncExternalStore;function KC(e,t,n,r,i){let a=b.useCallback(()=>t,[t]),o=b.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=b.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return GC(c,s,o)}function qC(e={}){let{themeId:t}=e;return function(e,n={}){let r=_C();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=VC({name:`MuiUseMediaQuery`,props:n,theme:r}),l=b.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` +`)),(GC===void 0?WC:KC)(u,a,l,s,c)}}qC();function JC(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function YC(e,t=0,n=1){return JC(e,t,n)}function XC(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function ZC(e){if(e.type)return e;if(e.charAt(0)===`#`)return ZC(XC(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(yy(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(yy(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var QC=e=>{let t=ZC(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},$C=(e,t)=>{try{return QC(e)}catch{return e}};function ew(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function tw(e){e=ZC(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),ew({type:s,values:c})}function nw(e){e=ZC(e);let t=e.type===`hsl`||e.type===`hsla`?ZC(tw(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(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 rw(e,t){let n=nw(e),r=nw(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function iw(e,t){return e=ZC(e),t=YC(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,ew(e)}function aw(e,t,n){try{return iw(e,t)}catch{return e}}function ow(e,t){if(e=ZC(e),t=YC(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ew(e)}function sw(e,t,n){try{return ow(e,t)}catch{return e}}function cw(e,t){if(e=ZC(e),t=YC(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ew(e)}function lw(e,t,n){try{return cw(e,t)}catch{return e}}function uw(e,t=.15){return nw(e)>.5?ow(e,t):cw(e,t)}function dw(e,t,n){try{return uw(e,t)}catch{return e}}var fw=b.createContext(null);function pw(){return b.useContext(fw)}var mw=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function hw(e,t){return typeof t==`function`?t(e):{...e,...t}}function gw(e){let{children:t,theme:n}=e,r=pw(),i=b.useMemo(()=>{let e=r===null?{...n}:hw(r,n);return e!=null&&(e[mw]=r!==null),e},[n,r]);return(0,J.jsx)(fw.Provider,{value:i,children:t})}var _w=b.createContext();function vw({value:e,...t}){return(0,J.jsx)(_w.Provider,{value:e??!0,...t})}var yw=()=>b.useContext(_w)??!1,bw=b.createContext(void 0);function xw({value:e,children:t}){return(0,J.jsx)(bw.Provider,{value:e,children:t})}function Sw(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?BC(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?BC(i,r,t.components.mergeClassNameAndStyle):r}function Cw({props:e,name:t}){return Sw({props:e,name:t,theme:{components:b.useContext(bw)}})}var ww=0;function Tw(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(ww+=1,n(`mui-${ww}`))},[t]),r}var Ew={...b}.useId;function Dw(e){if(Ew!==void 0){let t=Ew();return e??t}return Tw(e)}function Ow(e){let t=_C(),n=Dw()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,UC(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,J.jsx)(xC,{styles:i}):null}var kw={};function Aw(e,t,n,r=!1){return b.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function jw(e){let{children:t,theme:n,themeId:r}=e,i=_C(kw),a=pw()||kw,o=Aw(r,i,n),s=Aw(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Ow(o);return(0,J.jsx)(gw,{theme:s,children:(0,J.jsx)(ox.Provider,{value:o,children:(0,J.jsx)(vw,{value:c,children:(0,J.jsxs)(xw,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Mw={theme:void 0};function Nw(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Mw.theme=r.theme,i=kC(e(Mw)),t=i,n=r.theme),i}}var Pw=`mode`,Fw=`color-scheme`,Iw=`data-color-scheme`;({...b}).useSyncExternalStore;function Lw(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Pw,colorSchemeStorageKey:a=Fw,attribute:o=Iw,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark)); ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light)); ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=` - ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,Y.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() { + ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,J.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() { try { let colorScheme = ''; const mode = localStorage.getItem('${i}') || '${t}'; @@ -150,7 +150,7 @@ if (colorScheme) { ${l} } -} catch(e){}})();`}},`mui-color-scheme-init`)}function Rw(){}var zw=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Rw;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Bw(){}function Vw(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Hw(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Uw(e){return Hw(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Ww(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Pw,colorSchemeStorageKey:o=Fw,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=zw,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=b.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=b.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=b.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=b.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Vw(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=b.useState(l||!d);b.useEffect(()=>{v(!0)},[]);let y=Uw(h),x=b.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Vw(r)}})},[f,t]),S=b.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Hw(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=b.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=b.useRef(C);return w.current=C,b.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),b.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&x(e||t)})||Bw,n=p?.subscribe(e=>{(!e||u.match(e))&&S({light:e})})||Bw,r=m?.subscribe(e=>{(!e||u.match(e))&&S({dark:e})})||Bw;return()=>{e(),n(),r()}}},[S,x,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:x,setColorScheme:S}}var Gw=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Kw(e){let{themeId:t,theme:n={},modeStorageKey:r=Pw,colorSchemeStorageKey:i=Fw,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=b.createContext(void 0),u=()=>b.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=b.useRef(!1),D=pw(),O=b.useContext(l),k=!!O&&!x,ee=b.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],A=te||ee,{colorSchemes:ne=d,components:re=f,cssVarPrefix:ie}=A,j=Object.keys(ne).filter(e=>!!ne[e]).join(`,`),M=b.useMemo(()=>j.split(`,`),[j]),N=typeof o==`string`?o:o.light,ae=typeof o==`string`?o:o.dark,{mode:oe,setMode:se,systemMode:ce,lightColorScheme:P,darkColorScheme:F,colorScheme:le,setColorScheme:ue}=Ww({supportedColorSchemes:M,defaultLightColorScheme:N,defaultDarkColorScheme:ae,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:ne[N]&&ne[ae]?C:ne[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),de=oe,fe=le;k&&(de=O.mode,fe=O.colorScheme);let pe=fe||A.defaultColorScheme;A.vars&&!w&&(pe=A.defaultColorScheme);let me=b.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:re,colorSchemes:ne,cssVarPrefix:ie,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),pe){let e=ne[pe];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[A,pe,re,ne,ie]),he=A.colorSchemeSelector;UC(()=>{if(fe&&y&&he&&he!==`media`){let e=he,t=he;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...M.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,fe));else{let e=t.replace(`%s`,fe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||M.forEach(e=>{y.removeAttribute(t.replace(fe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,fe)}}},[fe,he,y,M]),b.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Gw)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[fe,h,v]),b.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let ge=b.useMemo(()=>({allColorSchemes:M,colorScheme:fe,darkColorScheme:F,lightColorScheme:P,mode:de,setColorScheme:ue,setMode:se,systemMode:ce}),[M,fe,F,P,de,ue,se,ce,me.colorSchemeSelector]),_e=!0;(S||A.cssVariables===!1||k&&D?.cssVarPrefix===ie)&&(_e=!1);let ve=(0,Y.jsxs)(b.Fragment,{children:[(0,Y.jsx)(jw,{themeId:te?t:void 0,theme:me,children:c}),_e&&(0,Y.jsx)(Ex,{styles:me.generateStyleSheets?.()||[]})]});return k?ve:(0,Y.jsx)(l.Provider,{value:ge,children:ve})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Lw({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function qw(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Jw=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Yw=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Xw=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Zw(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Yw(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Xw(e,t);Object.assign(i,{[r]:c}),Jw(a,e,`var(${r})`,s),Jw(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Qw(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Zw(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Zw(n,t);p=Fx(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Zw(h,t);p=Fx(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Fx(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function $w(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function eT(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e=n?fT.text.primary:uT.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(vy(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(vy(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(mT(i,e,`light`,a,r),mT(i,e,`dark`,o,r)):(pT(e,`light`,a,r),pT(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=lT():t===`dark`&&(m=dT()),Fx({common:{...tT},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:nT,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function CT(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function wT(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function TT(e){return Math.round(e*1e5)/1e5}var ET={textTransform:`uppercase`},DT=`"Roboto", "Helvetica", "Arial", sans-serif`;function OT(e,t){let{fontFamily:n=DT,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===DT?{letterSpacing:`${TT(i/t)}em`}:{},...a,...l});return Fx({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,ET),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ET),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var kT=.2,AT=.14,jT=.12;function MT(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${AT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${jT})`].join(`,`)}var NT=[`none`,MT(0,2,1,-1,0,1,1,0,0,1,3,0),MT(0,3,1,-2,0,2,2,0,0,1,5,0),MT(0,3,3,-2,0,3,4,0,0,1,8,0),MT(0,2,4,-1,0,4,5,0,0,1,10,0),MT(0,3,5,-1,0,5,8,0,0,1,14,0),MT(0,3,5,-1,0,6,10,0,0,1,18,0),MT(0,4,5,-2,0,7,10,1,0,2,16,1),MT(0,5,5,-3,0,8,10,1,0,3,14,2),MT(0,5,6,-3,0,9,12,1,0,3,16,2),MT(0,6,6,-3,0,10,14,1,0,4,18,3),MT(0,6,7,-4,0,11,15,1,0,4,20,3),MT(0,7,8,-4,0,12,17,2,0,5,22,4),MT(0,7,8,-4,0,13,19,2,0,5,24,4),MT(0,7,9,-4,0,14,21,2,0,5,26,4),MT(0,8,9,-5,0,15,22,2,0,6,28,5),MT(0,8,10,-5,0,16,24,2,0,6,30,5),MT(0,8,11,-5,0,17,26,2,0,6,32,5),MT(0,9,11,-5,0,18,28,2,0,7,34,6),MT(0,9,12,-6,0,19,29,2,0,7,36,6),MT(0,10,13,-6,0,20,31,3,0,8,38,7),MT(0,10,13,-6,0,21,33,3,0,8,40,7),MT(0,10,14,-6,0,22,35,3,0,8,42,7),MT(0,11,14,-7,0,23,36,3,0,9,44,8),MT(0,11,15,-7,0,24,38,3,0,9,46,8)],PT=[`all`],FT={},IT={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)`},LT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function RT(e){return`${Math.round(e)}ms`}function zT(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function BT(e){let t={...e};delete t.reducedMotion;let n={...IT,...t.easing},r={...LT,...t.duration};return{getAutoHeightDuration:zT,create:t.create??((e=PT,t=FT)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:RT(i)} ${a} ${typeof o==`string`?o:RT(o)}`).join(`,`)}),...t,easing:n,duration:r}}var VT={};function HT(e=VT){return{reducedMotion:`never`,...e}}var UT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function WT(e){return Nx(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function GT(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Rw;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Bw(){}function Vw(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Hw(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Uw(e){return Hw(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Ww(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Pw,colorSchemeStorageKey:o=Fw,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=zw,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=b.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=b.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=b.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=b.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Vw(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=b.useState(l||!d);b.useEffect(()=>{v(!0)},[]);let y=Uw(h),x=b.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Vw(r)}})},[f,t]),S=b.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Hw(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),C=b.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),w=b.useRef(C);return w.current=C,b.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>w.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),b.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&x(e||t)})||Bw,n=p?.subscribe(e=>{(!e||u.match(e))&&S({light:e})})||Bw,r=m?.subscribe(e=>{(!e||u.match(e))&&S({dark:e})})||Bw;return()=>{e(),n(),r()}}},[S,x,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:x,setColorScheme:S}}var Gw=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Kw(e){let{themeId:t,theme:n={},modeStorageKey:r=Pw,colorSchemeStorageKey:i=Fw,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=b.createContext(void 0),u=()=>b.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:x=!1,disableStyleSheetGeneration:S=!1,defaultMode:C=`system`,forceThemeRerender:w=!1,noSsr:T}=e,E=b.useRef(!1),D=pw(),O=b.useContext(l),k=!!O&&!x,ee=b.useMemo(()=>u||(typeof n==`function`?n():n),[u]),te=ee[t],A=te||ee,{colorSchemes:ne=d,components:re=f,cssVarPrefix:ie}=A,j=Object.keys(ne).filter(e=>!!ne[e]).join(`,`),M=b.useMemo(()=>j.split(`,`),[j]),N=typeof o==`string`?o:o.light,ae=typeof o==`string`?o:o.dark,{mode:oe,setMode:se,systemMode:ce,lightColorScheme:P,darkColorScheme:F,colorScheme:le,setColorScheme:ue}=Ww({supportedColorSchemes:M,defaultLightColorScheme:N,defaultDarkColorScheme:ae,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:ne[N]&&ne[ae]?C:ne[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:T}),de=oe,fe=le;k&&(de=O.mode,fe=O.colorScheme);let pe=fe||A.defaultColorScheme;A.vars&&!w&&(pe=A.defaultColorScheme);let me=b.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:re,colorSchemes:ne,cssVarPrefix:ie,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),pe){let e=ne[pe];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[A,pe,re,ne,ie]),he=A.colorSchemeSelector;UC(()=>{if(fe&&y&&he&&he!==`media`){let e=he,t=he;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...M.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,fe));else{let e=t.replace(`%s`,fe).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||M.forEach(e=>{y.removeAttribute(t.replace(fe,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,fe)}}},[fe,he,y,M]),b.useEffect(()=>{let e;if(h&&E.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Gw)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[fe,h,v]),b.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let ge=b.useMemo(()=>({allColorSchemes:M,colorScheme:fe,darkColorScheme:F,lightColorScheme:P,mode:de,setColorScheme:ue,setMode:se,systemMode:ce}),[M,fe,F,P,de,ue,se,ce,me.colorSchemeSelector]),_e=!0;(S||A.cssVariables===!1||k&&D?.cssVarPrefix===ie)&&(_e=!1);let ve=(0,J.jsxs)(b.Fragment,{children:[(0,J.jsx)(jw,{themeId:te?t:void 0,theme:me,children:c}),_e&&(0,J.jsx)(Dx,{styles:me.generateStyleSheets?.()||[]})]});return k?ve:(0,J.jsx)(l.Provider,{value:ge,children:ve})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Lw({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function qw(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Jw=new Set([`__proto__`,`constructor`,`prototype`]),Yw=(e,t,n,r=[])=>{let i=e;for(let e=0;e{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Zw=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Qw(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Xw(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Zw(e,t);Object.assign(i,{[r]:c}),Yw(a,e,`var(${r})`,s),Yw(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function $w(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Qw(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Qw(n,t);p=Ix(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Qw(h,t);p=Ix(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=Ix(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function eT(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function tT(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e=n?pT.text.primary:dT.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(yy(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(yy(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(hT(i,e,`light`,a,r),hT(i,e,`dark`,o,r)):(mT(e,`light`,a,r),mT(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=uT():t===`dark`&&(m=fT()),Ix({common:{...nT},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:rT,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function wT(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function TT(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function ET(e){return Math.round(e*1e5)/1e5}var DT={textTransform:`uppercase`},OT=`"Roboto", "Helvetica", "Arial", sans-serif`;function kT(e,t){let{fontFamily:n=OT,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===OT?{letterSpacing:`${ET(i/t)}em`}:{},...a,...l});return Ix({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,DT),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,DT),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var AT=.2,jT=.14,MT=.12;function NT(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${AT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${jT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${MT})`].join(`,`)}var PT=[`none`,NT(0,2,1,-1,0,1,1,0,0,1,3,0),NT(0,3,1,-2,0,2,2,0,0,1,5,0),NT(0,3,3,-2,0,3,4,0,0,1,8,0),NT(0,2,4,-1,0,4,5,0,0,1,10,0),NT(0,3,5,-1,0,5,8,0,0,1,14,0),NT(0,3,5,-1,0,6,10,0,0,1,18,0),NT(0,4,5,-2,0,7,10,1,0,2,16,1),NT(0,5,5,-3,0,8,10,1,0,3,14,2),NT(0,5,6,-3,0,9,12,1,0,3,16,2),NT(0,6,6,-3,0,10,14,1,0,4,18,3),NT(0,6,7,-4,0,11,15,1,0,4,20,3),NT(0,7,8,-4,0,12,17,2,0,5,22,4),NT(0,7,8,-4,0,13,19,2,0,5,24,4),NT(0,7,9,-4,0,14,21,2,0,5,26,4),NT(0,8,9,-5,0,15,22,2,0,6,28,5),NT(0,8,10,-5,0,16,24,2,0,6,30,5),NT(0,8,11,-5,0,17,26,2,0,6,32,5),NT(0,9,11,-5,0,18,28,2,0,7,34,6),NT(0,9,12,-6,0,19,29,2,0,7,36,6),NT(0,10,13,-6,0,20,31,3,0,8,38,7),NT(0,10,13,-6,0,21,33,3,0,8,40,7),NT(0,10,14,-6,0,22,35,3,0,8,42,7),NT(0,11,14,-7,0,23,36,3,0,9,44,8),NT(0,11,15,-7,0,24,38,3,0,9,46,8)],FT=[`all`],IT={},LT={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)`},RT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zT(e){return`${Math.round(e)}ms`}function BT(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function VT(e){let t={...e};delete t.reducedMotion;let n={...LT,...t.easing},r={...RT,...t.duration};return{getAutoHeightDuration:BT,create:t.create??((e=FT,t=IT)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:zT(i)} ${a} ${typeof o==`string`?o:zT(o)}`).join(`,`)}),...t,easing:n,duration:r}}var HT={};function UT(e=HT){return{reducedMotion:`never`,...e}}var WT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function GT(e){return Px(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function KT(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;eFx(e,t),m),delete m.transitions.reducedMotion,m.unstable_sxConfig={...sC,...d?.unstable_sxConfig},m.unstable_sx=function(e){return uC({sx:e,theme:this})},m.toRuntimeSource=GT,JT(m),m}function XT(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var ZT=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=XT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function QT(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function $T(e){return e===`dark`?ZT:[]}function eE(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=ST({...t,colorSpace:i});return{palette:o,opacity:{...QT(o.mode),...n},overlays:r||$T(o.mode),...a}}function tE(e){return e[0]===`motion`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var nE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],rE=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return nE(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function iE(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function aE(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:tw(e)}function oE(e,t){`${t}Channel`in e||(e[`${t}Channel`]=$C(aE(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function sE(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var cE=e=>{try{return e()}catch{}},lE=(e=`mui`)=>qw(e);function uE(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=eE({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=YT({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...QT(a),...n?.opacity},overlays:n?.overlays||$T(a)},s}function dE(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=tE,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=lE(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(vy(21,f));let b;o&&(b=`oklch`);let x=uE(b,v,y,u,f);h&&!v.light&&uE(b,v,h,void 0,`light`),g&&!v.dark&&uE(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...CT(x.typography),...x.font},spacing:sE(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(X(t.common,`background`,`#fff`),X(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(X(t.common,`background`,`#000`),X(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===aw&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===sw&&(r=`#000 ${(n*100).toFixed(0)}%`),e===lw&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(iE(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){X(t.Alert,`errorColor`,r(sw,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(sw,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(sw,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(sw,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-main`)),X(t.Alert,`infoFilledBg`,n(`palette-info-main`)),X(t.Alert,`successFilledBg`,n(`palette-success-main`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),X(t.Alert,`errorFilledColor`,cE(()=>t.getContrastText(t.error.main))),X(t.Alert,`infoFilledColor`,cE(()=>t.getContrastText(t.info.main))),X(t.Alert,`successFilledColor`,cE(()=>t.getContrastText(t.success.main))),X(t.Alert,`warningFilledColor`,cE(()=>t.getContrastText(t.warning.main))),X(t.Alert,`errorStandardBg`,r(lw,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(lw,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(lw,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(lw,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-100`)),X(t.Avatar,`defaultBg`,n(`palette-grey-400`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),X(t.Chip,`defaultBorder`,n(`palette-grey-400`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),X(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),X(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),X(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),X(t.LinearProgress,`primaryBg`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.LinearProgress,`secondaryBg`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.LinearProgress,`errorBg`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.LinearProgress,`infoBg`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.LinearProgress,`successBg`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.LinearProgress,`warningBg`,r(lw,o?p(`palette-warning-light`):t.warning.main,.62)),X(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),X(t.Slider,`primaryTrack`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Slider,`secondaryTrack`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Slider,`errorTrack`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.Slider,`infoTrack`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.Slider,`successTrack`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.Slider,`warningTrack`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(sw,o?p(`palette-background-default`):t.background.default,.6825):dw(t.background.default,.8);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,cE(()=>b?fT.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-400`)),X(t.StepContent,`border`,n(`palette-grey-400`)),X(t.Switch,`defaultColor`,n(`palette-common-white`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),X(t.Switch,`primaryDisabledColor`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Switch,`secondaryDisabledColor`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Switch,`errorDisabledColor`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.Switch,`infoDisabledColor`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.Switch,`successDisabledColor`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.Switch,`warningDisabledColor`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62)),X(t.TableCell,`border`,r(lw,aw(o?p(`palette-divider`):t.divider,1),.88)),X(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){X(t.Alert,`errorColor`,r(lw,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(lw,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(lw,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(lw,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),X(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),X(t.Alert,`successFilledBg`,n(`palette-success-dark`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),X(t.Alert,`errorFilledColor`,cE(()=>t.getContrastText(t.error.dark))),X(t.Alert,`infoFilledColor`,cE(()=>t.getContrastText(t.info.dark))),X(t.Alert,`successFilledColor`,cE(()=>t.getContrastText(t.success.dark))),X(t.Alert,`warningFilledColor`,cE(()=>t.getContrastText(t.warning.dark))),X(t.Alert,`errorStandardBg`,r(sw,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(sw,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(sw,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(sw,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-900`)),X(t.AppBar,`darkBg`,n(`palette-background-paper`)),X(t.AppBar,`darkColor`,n(`palette-text-primary`)),X(t.Avatar,`defaultBg`,n(`palette-grey-600`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),X(t.Chip,`defaultBorder`,n(`palette-grey-700`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),X(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),X(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),X(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),X(t.LinearProgress,`primaryBg`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.LinearProgress,`secondaryBg`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.LinearProgress,`errorBg`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),X(t.LinearProgress,`infoBg`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),X(t.LinearProgress,`successBg`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),X(t.LinearProgress,`warningBg`,r(sw,o?p(`palette-warning-main`):t.warning.main,.5)),X(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),X(t.Slider,`primaryTrack`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.Slider,`secondaryTrack`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.Slider,`errorTrack`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),X(t.Slider,`infoTrack`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),X(t.Slider,`successTrack`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),X(t.Slider,`warningTrack`,r(sw,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(lw,o?p(`palette-background-default`):t.background.default,.985):dw(t.background.default,.98);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,cE(()=>b?uT.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-600`)),X(t.StepContent,`border`,n(`palette-grey-600`)),X(t.Switch,`defaultColor`,n(`palette-grey-300`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),X(t.Switch,`primaryDisabledColor`,r(sw,o?p(`palette-primary-main`):t.primary.main,.55)),X(t.Switch,`secondaryDisabledColor`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.55)),X(t.Switch,`errorDisabledColor`,r(sw,o?p(`palette-error-main`):t.error.main,.55)),X(t.Switch,`infoDisabledColor`,r(sw,o?p(`palette-info-main`):t.info.main,.55)),X(t.Switch,`successDisabledColor`,r(sw,o?p(`palette-success-main`):t.success.main,.55)),X(t.Switch,`warningDisabledColor`,r(sw,o?p(`palette-warning-light`):t.warning.main,.55)),X(t.TableCell,`border`,r(sw,aw(o?p(`palette-divider`):t.divider,1),.68)),X(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}o||(oE(t.background,`default`),oE(t.background,`paper`),oE(t.common,`background`),oE(t.common,`onBackground`),oE(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&X(t[e],`mainChannel`,$C(aE(n.main))),n.light&&X(t[e],`lightChannel`,$C(aE(n.light))),n.dark&&X(t[e],`darkChannel`,$C(aE(n.dark))),n.contrastText&&X(t[e],`contrastTextChannel`,$C(aE(n.contrastText))),e===`text`&&(oE(t[e],`primary`),oE(t[e],`secondary`)),e===`action`&&(n.active&&oE(t[e],`active`),n.selected&&oE(t[e],`selected`)))})}),S=t.reduce((e,t)=>Fx(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:rE(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=Qw(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return MS(u.spacing,wS(this))},S.getColorSchemeSelector=$w(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...sC,...u?.unstable_sxConfig},S.unstable_sx=function(e){return uC({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=GT,S}function fE(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ST({...n===!0?{}:n.palette,mode:t})})}function pE(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return YT(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=YT({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},fE(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},fE(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),dE({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function mE(e){return typeof e==`string`}function hE(...e){let t=b.useRef(void 0),n=b.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return b.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function gE(e){let t=b.useRef(e);return UC(()=>{t.current=e}),b.useRef((...e)=>(0,t.current)(...e)).current}function _E(e){return e&&e.ownerDocument||document}function vE(e){return _E(e).defaultView||window}var yE=pE();function bE(){let e=vC(yE);return e.$$material||e}function xE(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var SE=e=>xE(e)&&e!==`classes`,Z=LC({themeId:yy,defaultTheme:yE,rootShouldForwardProp:SE}),CE=Nw;function wE(e){return Cw(e)}var TE=dS,EE=hE,DE={transition:`none`};function OE(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var kE={},AE=[`all`],jE={};function ME(e,t){let n=t??DE;return OE(e.motion?.reducedMotion,n)}function NE(e,t=AE,n=jE){let r=e.transitions?.create?.(t,n),i=ME(e);if(r===void 0)return i??kE;let a={transition:r};return i?{...a,...i}:a}function PE(e){return DC(`MuiToggleButton`,e)}var FE=OC(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function IE({props:e,name:t}){return HC({props:e,name:t,defaultTheme:yE,themeId:yy})}function LE({theme:e,...t}){let n=`$$material`in e?e[yy]:void 0;return(0,Y.jsx)(jw,{...t,themeId:n?yy:void 0,theme:n||e})}var RE={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:zE,useColorScheme:BE,getInitColorSchemeScript:VE}=Kw({themeId:yy,theme:()=>pE({cssVariables:!0}),colorSchemeStorageKey:RE.colorSchemeStorageKey,modeStorageKey:RE.modeStorageKey,defaultColorScheme:{light:RE.defaultLightColorScheme,dark:RE.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:OT(e.palette,e.typography)};return t.unstable_sx=function(e){return uC({sx:e,theme:this})},t}}),HE=zE;function UE({theme:e,...t}){let n=b.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[yy]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,Y.jsx)(LE,{theme:n,...t}):(0,Y.jsx)(HE,{theme:e,...t})}function WE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GE(e,t,n){return e===void 0||mE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function KE(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function qE(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))KE(n,e[n])&&(t[n]=e[n]);return t}function JE(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function YE(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=wC(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=qE({...i,...r}),s=JE(r),c=JE(i),l=t(o),u=wC(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function XE(e,t,n){return typeof e==`function`?e(t,n):e}function ZE(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:XE(n,r),{props:s,internalRef:c}=YE({...a,externalSlotProps:o}),l=hE(c,o?.ref,e.additionalProps?.ref);return GE(t,{...s,ref:l},r)}function QE(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var $E=Symbol(`NOT_FOUND`);function eD(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function tD(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var nD=e=>Array.isArray(e)?e:[e];function rD(e){let t=Array.isArray(e[0])?e[0]:e;return tD(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function iD(e,t){let n=[],{length:r}=e;for(let i=0;it(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return $E}function i(t,i){r(t)===$E&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var sD=(e,t)=>e===t;function cD(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;ii(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var uD=class{constructor(e){this.value=e}deref(){return this.value}},dD=typeof WeakRef>`u`?uD:WeakRef,fD=0,pD=1;function mD(){return{s:fD,v:void 0,o:null,p:null}}function hD(e){return e instanceof dD?e.deref():e}function gD(e,t={}){let n=mD(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e{n=mD(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function _D(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),eD(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=gD,argsMemoizeOptions:u=[]}={...n,...a},d=nD(c),f=nD(u),p=rD(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=iD(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var vD=_D({memoize:lD,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Q=(e,t,n,r,i,a,o,s,...c)=>{if(c.length>0)throw Error(QE(179));let l;if(e&&t&&n&&r&&i&&a&&o&&s)l=(c,l,u,d)=>s(e(c,l,u,d),t(c,l,u,d),n(c,l,u,d),r(c,l,u,d),i(c,l,u,d),a(c,l,u,d),o(c,l,u,d),l,u,d);else if(e&&t&&n&&r&&i&&a&&o)l=(s,c,l,u)=>o(e(s,c,l,u),t(s,c,l,u),n(s,c,l,u),r(s,c,l,u),i(s,c,l,u),a(s,c,l,u),c,l,u);else if(e&&t&&n&&r&&i&&a)l=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)l=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)l=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)l=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)l=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)l=e;else throw Error(QE(180));return l},yD=e=>(...t)=>{let n=new WeakMap,r=1,i=t[t.length-1],a=t.length-1||1,o=Math.max(i.length-a,0);if(o>3)throw Error(QE(181));return(a,s,c,l)=>{let u=a.__cacheKey__;u||(u={id:r},a.__cacheKey__=u,r+=1);let d=n.get(u);if(!d){let r=t.length===1?[e=>e,i]:t,a=t,s=[void 0,void 0,void 0];switch(o){case 0:break;case 1:a=[...r.slice(0,-1),()=>s[0],i];break;case 2:a=[...r.slice(0,-1),()=>s[0],()=>s[1],i];break;case 3:a=[...r.slice(0,-1),()=>s[0],()=>s[1],()=>s[2],i];break;default:throw Error(QE(182))}e&&(a=[...a,e]),d=vD(...a),d.selectorArgs=s,n.set(u,d)}switch(o){case 3:d.selectorArgs[2]=l;case 2:d.selectorArgs[1]=c;case 1:d.selectorArgs[0]=s}switch(o){case 0:return d(a);case 1:return d(a,s);case 2:return d(a,s,c);case 3:return d(a,s,c,l);default:throw Error(`unreachable`)}}},$=yD(),bD=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),xD=s(((e,t)=>{t.exports=bD()})),SD=s((e=>{var t=p(),n=xD();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),CD=s(((e,t)=>{t.exports=SD()})),wD=19,TD=xD(),ED=CD(),DD=wD>=19?kD:AD;function OD(e,t,n,r,i){return DD(e,t,n,r,i)}function kD(e,t,n,r,i){let a=b.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,TD.useSyncExternalStore)(e.subscribe,a,a)}function AD(e,t,n,r,i){return(0,ED.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var jD={};function MD(e,t){let n=b.useRef(jD);return n.current===jD&&(n.current=e(t)),n}var ND=[];function PD(e){b.useEffect(e,ND)}var FD=()=>{};function ID(e,t,n){let r=MD(LD,{store:e,selector:t}).current;r.effect=n,PD(r.onMount)}function LD(e){let{store:t,selector:n}=e,r=n(t.state),i={effect:FD,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(e=>{let t=n(e);if(!Object.is(r,t)){let e=r;r=t,i.effect(e,t)}})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}var RD=class e{static create(t){return new e(t)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;let t=this.updateTick,n=this.listeners.values(),r;for(;r=n.next(),!r.done;){if(t!==this.updateTick)return;let n=r.value;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState(J({},this.state,e));return}}set(e,t){Object.is(this.state[e],t)||this.setState(J({},this.state,{[e]:t}))}use=(e,t,n,r)=>OD(this,e,t,n,r)},zD=({params:e,store:t})=>{b.useEffect(()=>{t.set(`animation`,J({},t.state.animation,{skip:e.skipAnimation}))},[t,e.skipAnimation]);let n=b.useCallback(()=>{let e=!1;return t.set(`animation`,J({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests+1})),()=>{e||(e=!0,t.set(`animation`,J({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests-1})))}},[t]);return UC(()=>{if(typeof window>`u`||!window?.matchMedia)return;let e,t=t=>{t.matches?e=n():e?.()},r=window.matchMedia(`(prefers-reduced-motion)`);return t(r),r.addEventListener(`change`,t),()=>{r.removeEventListener(`change`,t)}},[n,t]),{instance:{disableAnimation:n}}};zD.params={skipAnimation:!0},zD.getDefaultizedParams=({params:e})=>J({},e,{skipAnimation:e.skipAnimation??!1}),zD.getInitialState=({skipAnimation:e})=>(typeof window>`u`||window?.matchMedia,{animation:{skip:e,skipAnimationRequests:0}});var BD=Q(e=>e.animation,e=>e.skip||e.skipAnimationRequests>0);function VD(e,t){let n=b.useRef(!0);b.useEffect(()=>{if(n.current){n.current=!1;return}return e()},t)}var HD=`DEFAULT_X_AXIS_KEY`,UD=`DEFAULT_Y_AXIS_KEY`,WD={top:20,bottom:20,left:20,right:20},GD=e=>e.cartesianAxis?.x,KD=e=>e.cartesianAxis?.y,qD=e=>e.cartesianAxis?.axesGap??0;function JD(){return typeof window>`u`}var YD=new Map,XD=2e3,ZD=new Set([`minWidth`,`maxWidth`,`width`,`minHeight`,`maxHeight`,`height`,`top`,`left`,`fontSize`,`padding`,`margin`,`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`]);function QD(e,t){return ZD.has(e)&&t===+t?`${t}px`:t}var $D=/([A-Z])/g;function eO(e){return String(e).replace($D,e=>`-${e.toLowerCase()}`)}function tO(e){let t=``;for(let n in e)if(Object.hasOwn(e,n)){let r=n,i=e[r];if(i===void 0)continue;t+=`${eO(r)}:${QD(r,i)};`}return t}var nO=(e,t={})=>{if(e==null||JD())return{width:0,height:0};let n=String(e),r=`${n}-${tO(t)}`,i=YD.get(r);if(i)return i;try{let e=oO(),i=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);Object.keys(t).map(e=>(i.style[eO(e)]=QD(e,t[e]),e)),i.textContent=n,e.replaceChildren(i);let a=iO(i);return YD.set(r,a),YD.size+1>XD&&YD.clear(),a}catch{return{width:0,height:0}}};function rO(e,t={}){if(JD())return new Map(Array.from(e).map(e=>[e,{width:0,height:0}]));let n=new Map,r=[],i=tO(t);for(let t of e){let e=`${t}-${i}`,a=YD.get(e);a?n.set(t,a):r.push(t)}let a=oO(),o=J({},t);Object.keys(o).map(e=>(a.style[eO(e)]=QD(e,o[e]),e));let s=[];for(let e of r){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);t.textContent=`${e}`,s.push(t)}a.replaceChildren(...s);for(let e=0;eXD&&YD.clear(),n}function iO(e){try{let t=e.getBBox();return{width:t.width,height:t.height}}catch{let t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}var aO=null;function oO(){return aO===null&&(aO=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),aO.setAttribute(`aria-hidden`,`true`),aO.style.position=`absolute`,aO.style.top=`-20000px`,aO.style.left=`0`,aO.style.padding=`0`,aO.style.margin=`0`,aO.style.border=`none`,aO.style.pointerEvents=`none`,aO.style.visibility=`hidden`,aO.style.contain=`strict`,document.body.appendChild(aO)),aO}var sO=(e,t)=>e===void 0?t:Math.PI*e/180,cO=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function lO(e){return e.length}function uO(e){let t=cO.segment(e),n=0;for(let e of t)n+=1;return n}var dO=cO?uO:lO;function fO(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function pO(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function mO(e){let t,n,r;e.length===2?(t=e===fO||e===pO?e:hO,n=e,r=e):(t=fO,n=(t,n)=>fO(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function hO(){return 0}function gO(e){return e===null?NaN:+e}var _O=mO(fO),vO=_O.right;_O.left,mO(gO).center;var yO=class extends Map{constructor(e,t=CO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(bO(this,e))}has(e){return super.has(bO(this,e))}set(e,t){return super.set(xO(this,e),t)}delete(e){return super.delete(SO(this,e))}};function bO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function xO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function SO({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function CO(e){return typeof e==`object`&&e?e.valueOf():e}var wO=Math.sqrt(50),TO=Math.sqrt(10),EO=Math.sqrt(2);function DO(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=wO?10:a>=TO?5:a>=EO?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/lt&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*lt&&--c),c0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=WO.exec(e))?new ok(t[1],t[2],t[3],1):(t=GO.exec(e))?new ok(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=KO.exec(e))?rk(t[1],t[2],t[3],t[4]):(t=qO.exec(e))?rk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JO.exec(e))?pk(t[1],t[2]/100,t[3]/100,1):(t=YO.exec(e))?pk(t[1],t[2]/100,t[3]/100,t[4]):XO.hasOwnProperty(e)?nk(XO[e]):e===`transparent`?new ok(NaN,NaN,NaN,0):null}function nk(e){return new ok(e>>16&255,e>>8&255,e&255,1)}function rk(e,t,n,r){return r<=0&&(e=t=n=NaN),new ok(e,t,n,r)}function ik(e){return e instanceof LO||(e=tk(e)),e?(e=e.rgb(),new ok(e.r,e.g,e.b,e.opacity)):new ok}function ak(e,t,n,r){return arguments.length===1?ik(e):new ok(e,t,n,r??1)}function ok(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}FO(ok,ak,IO(LO,{brighter(e){return e=e==null?zO:zO**+e,new ok(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?RO:RO**+e,new ok(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ok(dk(this.r),dk(this.g),dk(this.b),uk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sk,formatHex:sk,formatHex8:ck,formatRgb:lk,toString:lk}));function sk(){return`#${fk(this.r)}${fk(this.g)}${fk(this.b)}`}function ck(){return`#${fk(this.r)}${fk(this.g)}${fk(this.b)}${fk((isNaN(this.opacity)?1:this.opacity)*255)}`}function lk(){let e=uk(this.opacity);return`${e===1?`rgb(`:`rgba(`}${dk(this.r)}, ${dk(this.g)}, ${dk(this.b)}${e===1?`)`:`, ${e})`}`}function uk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fk(e){return e=dk(e),(e<16?`0`:``)+e.toString(16)}function pk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gk(e,t,n,r)}function mk(e){if(e instanceof gk)return new gk(e.h,e.s,e.l,e.opacity);if(e instanceof LO||(e=tk(e)),!e)return new gk;if(e instanceof gk)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new gk(o,s,c,e.opacity)}function hk(e,t,n,r){return arguments.length===1?mk(e):new gk(e,t,n,r??1)}function gk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}FO(gk,hk,IO(LO,{brighter(e){return e=e==null?zO:zO**+e,new gk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?RO:RO**+e,new gk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ok(yk(e>=240?e-240:e+120,i,r),yk(e,i,r),yk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new gk(_k(this.h),vk(this.s),vk(this.l),uk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=uk(this.opacity);return`${e===1?`hsl(`:`hsla(`}${_k(this.h)}, ${vk(this.s)*100}%, ${vk(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function _k(e){return e=(e||0)%360,e<0?e+360:e}function vk(e){return Math.max(0,Math.min(1,e||0))}function yk(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var bk=e=>()=>e;function xk(e,t){return function(n){return e+n*t}}function Sk(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Ck(e){return(e=+e)==1?wk:function(t,n){return n-t?Sk(t,n,e):bk(isNaN(t)?n:t)}}function wk(e,t){var n=t-e;return n?xk(e,n):bk(isNaN(e)?t:e)}var Tk=(function e(t){var n=Ck(t);function r(e,t){var r=n((e=ak(e)).r,(t=ak(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=wk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Ek(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Ak(r,i)})),n=Nk.lastIndex;return nt&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Gk(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Kk:Gk,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),Ak))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Bk),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Rk,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Hk,u()):o!==Hk},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Yk(){return Jk()(Hk,Hk)}function Xk(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Zk(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Qk(e){return e=Zk(Math.abs(e)),e?e[1]:NaN}function $k(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function eA(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var tA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nA(e){if(!(t=tA.exec(e)))throw Error(`invalid format: `+e);var t;return new rA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}nA.prototype=rA.prototype;function rA(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}rA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function iA(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var aA;function oA(e,t){var n=Zk(e,t);if(!n)return aA=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(aA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Zk(e,Math.max(0,t+a-1))[0]}function sA(e,t){var n=Zk(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var cA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Xk,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sA(e*100,t),r:sA,s:oA,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function lA(e){return e}var uA=Array.prototype.map,dA=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function fA(e){var t=e.grouping===void 0||e.thousands===void 0?lA:$k(uA.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?lA:eA(uA.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=nA(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):cA[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=cA[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=iA(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&aA!==void 0?dA[8+aA/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++op||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Qk(t)/3)))*3,r=10**-n,i=l((e=nA(e),e.type=`f`,e),{suffix:dA[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var pA,mA,hA;gA({thousands:`,`,grouping:[3],currency:[`$`,``]});function gA(e){return pA=fA(e),mA=pA.format,hA=pA.formatPrefix,pA}function _A(e){return Math.max(0,-Qk(Math.abs(e)))}function vA(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qk(t)/3)))*3-Qk(Math.abs(e)))}function yA(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qk(t)-Qk(e))+1}function bA(e,t,n,r){var i=AO(e,t,n),a;switch(r=nA(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=vA(i,o))&&(r.precision=a),hA(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=yA(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=_A(i))&&(r.precision=a-(r.type===`%`)*2)}return mA(r)}function xA(e){var t=e.domain;return e.ticks=function(e){var n=t();return OO(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return bA(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s0;){if(l=kO(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function SA(){var e=Yk();return e.copy=function(){return qk(e,SA())},jO.apply(e,arguments),xA(e)}function CA(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return ae**+t}function AA(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function jA(e){return(t,n)=>-e(-t,n)}function MA(e){let t=e(wA,TA),n=t.domain,r=10,i,a;function o(){return i=AA(r),a=kA(r),n()[0]<0?(i=jA(i),a=jA(a),e(EA,DA)):e(wA,TA),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s0){for(;l<=u;++l)for(d=1;ds)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(fs)break;m.push(f)}m.length*2{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=nA(n)).precision==null&&(n.trim=!0),n=mA(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*rn(CA(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function NA(){let e=MA(Jk()).domain([1,10]);return e.copy=()=>qk(e,NA()).base(e.base()),jO.apply(e,arguments),e}function PA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function FA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function IA(e){var t=1,n=e(PA(t),FA(t));return n.constant=function(n){return arguments.length?e(PA(t=+n),FA(t)):t},xA(n)}function LA(){var e=IA(Jk());return e.copy=function(){return qk(e,LA()).constant(e.constant())},jO.apply(e,arguments)}function RA(e){return function(t){return t<0?-((-t)**+e):t**+e}}function zA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function BA(e){return e<0?-e*e:e*e}function VA(e){var t=e(Hk,Hk),n=1;function r(){return n===1?e(Hk,Hk):n===.5?e(zA,BA):e(RA(n),RA(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},xA(t)}function HA(){var e=VA(Jk());return e.copy=function(){return qk(e,HA()).exponent(e.exponent())},jO.apply(e,arguments),e}function UA(){return HA.apply(null,arguments).exponent(.5)}function WA(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[vO(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return WA().domain(e).range(t).unknown(n)},jO.apply(i,arguments)}var GA=new Date,KA=new Date;function qA(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sqA(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(GA.setTime(+t),KA.setTime(+r),e(GA),e(KA),Math.floor(n(GA,KA))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var JA=qA(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);JA.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qA(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):JA),JA.range;var YA=1e3,XA=YA*60,ZA=XA*60,QA=ZA*24,$A=QA*7,ej=QA*30,tj=QA*365,nj=qA(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*YA)},(e,t)=>(t-e)/YA,e=>e.getUTCSeconds());nj.range;var rj=qA(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*YA)},(e,t)=>{e.setTime(+e+t*XA)},(e,t)=>(t-e)/XA,e=>e.getMinutes());rj.range;var ij=qA(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*XA)},(e,t)=>(t-e)/XA,e=>e.getUTCMinutes());ij.range;var aj=qA(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*YA-e.getMinutes()*XA)},(e,t)=>{e.setTime(+e+t*ZA)},(e,t)=>(t-e)/ZA,e=>e.getHours());aj.range;var oj=qA(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ZA)},(e,t)=>(t-e)/ZA,e=>e.getUTCHours());oj.range;var sj=qA(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*XA)/QA,e=>e.getDate()-1);sj.range;var cj=qA(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/QA,e=>e.getUTCDate()-1);cj.range;var lj=qA(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/QA,e=>Math.floor(e/QA));lj.range;function uj(e){return qA(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*XA)/$A)}var dj=uj(0),fj=uj(1),pj=uj(2),mj=uj(3),hj=uj(4),gj=uj(5),_j=uj(6);dj.range,fj.range,pj.range,mj.range,hj.range,gj.range,_j.range;function vj(e){return qA(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/$A)}var yj=vj(0),bj=vj(1),xj=vj(2),Sj=vj(3),Cj=vj(4),wj=vj(5),Tj=vj(6);yj.range,bj.range,xj.range,Sj.range,Cj.range,wj.range,Tj.range;var Ej=qA(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ej.range;var Dj=qA(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Dj.range;var Oj=qA(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Oj.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qA(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Oj.range;var kj=qA(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());kj.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qA(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),kj.range;function Aj(e,t,n,r,i,a){let o=[[nj,1,YA],[nj,5,5*YA],[nj,15,15*YA],[nj,30,30*YA],[a,1,XA],[a,5,5*XA],[a,15,15*XA],[a,30,30*XA],[i,1,ZA],[i,3,3*ZA],[i,6,6*ZA],[i,12,12*ZA],[r,1,QA],[r,2,2*QA],[n,1,$A],[t,1,ej],[t,3,3*ej],[e,1,tj]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(AO(t/tj,n/tj,r));if(a===0)return JA.every(Math.max(AO(t,n,r),1));let[s,c]=o[i/o[a-1][2]53)return null;`w`in r||(r.w=1),`Z`in r?(a=Ij(Lj(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?bj.ceil(a):bj(a),a=cj.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Fj(Lj(r.y,0,1)),o=a.getDay(),a=o>4||o===0?fj.ceil(a):fj(a),a=sj.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Ij(Lj(r.y,0,1)).getUTCDay():Fj(Lj(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Ij(r)):Fj(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in zj?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function te(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function ne(e){return o[e.getDay()]}function re(e){return a[e.getDay()]}function ie(e){return c[e.getMonth()]}function j(e){return s[e.getMonth()]}function M(e){return i[+(e.getHours()>=12)]}function N(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function P(e){return i[+(e.getUTCHours()>=12)]}function F(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var zj={"-":``,_:` `,0:`0`},Bj=/^\s*\d+/,Vj=/^%/,Hj=/[\\^$*+?|[\]().{}]/g;function Uj(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function qj(e,t,n){var r=Bj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Jj(e,t,n){var r=Bj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Yj(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Xj(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zj(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Qj(e,t,n){var r=Bj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $j(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function eM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function tM(e,t,n){var r=Bj.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nM(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rM(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function iM(e,t,n){var r=Bj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aM(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function oM(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sM(e,t,n){var r=Bj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cM(e,t,n){var r=Bj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lM(e,t,n){var r=Bj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uM(e,t,n){var r=Vj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dM(e,t,n){var r=Bj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fM(e,t,n){var r=Bj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function pM(e,t){return Uj(e.getDate(),t,2)}function mM(e,t){return Uj(e.getHours(),t,2)}function hM(e,t){return Uj(e.getHours()%12||12,t,2)}function gM(e,t){return Uj(1+sj.count(Oj(e),e),t,3)}function _M(e,t){return Uj(e.getMilliseconds(),t,3)}function vM(e,t){return _M(e,t)+`000`}function yM(e,t){return Uj(e.getMonth()+1,t,2)}function bM(e,t){return Uj(e.getMinutes(),t,2)}function xM(e,t){return Uj(e.getSeconds(),t,2)}function SM(e){var t=e.getDay();return t===0?7:t}function CM(e,t){return Uj(dj.count(Oj(e)-1,e),t,2)}function wM(e){var t=e.getDay();return t>=4||t===0?hj(e):hj.ceil(e)}function TM(e,t){return e=wM(e),Uj(hj.count(Oj(e),e)+(Oj(e).getDay()===4),t,2)}function EM(e){return e.getDay()}function DM(e,t){return Uj(fj.count(Oj(e)-1,e),t,2)}function OM(e,t){return Uj(e.getFullYear()%100,t,2)}function kM(e,t){return e=wM(e),Uj(e.getFullYear()%100,t,2)}function AM(e,t){return Uj(e.getFullYear()%1e4,t,4)}function jM(e,t){var n=e.getDay();return e=n>=4||n===0?hj(e):hj.ceil(e),Uj(e.getFullYear()%1e4,t,4)}function MM(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Uj(t/60|0,`0`,2)+Uj(t%60,`0`,2)}function NM(e,t){return Uj(e.getUTCDate(),t,2)}function PM(e,t){return Uj(e.getUTCHours(),t,2)}function FM(e,t){return Uj(e.getUTCHours()%12||12,t,2)}function IM(e,t){return Uj(1+cj.count(kj(e),e),t,3)}function LM(e,t){return Uj(e.getUTCMilliseconds(),t,3)}function RM(e,t){return LM(e,t)+`000`}function zM(e,t){return Uj(e.getUTCMonth()+1,t,2)}function BM(e,t){return Uj(e.getUTCMinutes(),t,2)}function VM(e,t){return Uj(e.getUTCSeconds(),t,2)}function HM(e){var t=e.getUTCDay();return t===0?7:t}function UM(e,t){return Uj(yj.count(kj(e)-1,e),t,2)}function WM(e){var t=e.getUTCDay();return t>=4||t===0?Cj(e):Cj.ceil(e)}function GM(e,t){return e=WM(e),Uj(Cj.count(kj(e),e)+(kj(e).getUTCDay()===4),t,2)}function KM(e){return e.getUTCDay()}function qM(e,t){return Uj(bj.count(kj(e)-1,e),t,2)}function JM(e,t){return Uj(e.getUTCFullYear()%100,t,2)}function YM(e,t){return e=WM(e),Uj(e.getUTCFullYear()%100,t,2)}function XM(e,t){return Uj(e.getUTCFullYear()%1e4,t,4)}function ZM(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Cj(e):Cj.ceil(e),Uj(e.getUTCFullYear()%1e4,t,4)}function QM(){return`+0000`}function $M(){return`%`}function eN(e){return+e}function tN(e){return Math.floor(e/1e3)}var nN,rN,iN;aN({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function aN(e){return nN=Rj(e),rN=nN.format,nN.parse,iN=nN.utcFormat,nN.utcParse,nN}function oN(e){return new Date(e)}function sN(e){return e instanceof Date?+e:+new Date(+e)}function cN(e,t,n,r,i,a,o,s,c,l){var u=Yk(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e){let r=t.get(e);if(r===void 0)return;let i=n.length;if(i===0)return;let a=d?i-1-r%i:r%i;return f+l*a},m=()=>{let e=n.length;d=ivN({index:t,domain:n,r0:r,r1:i,isRound:a,paddingInner:o,paddingOuter:s,align:c}),m(),p}function yN(...e){let t=vN(),[n,r]=e;return e.length>1?(t.domain(n),t.range(r)):n&&t.range(n),t}function bN(...e){let t=yN(...e).paddingInner(1),n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=()=>{let e=n();return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=t.copy,e},t}function xN(...e){let t=LA(...e),n=t.ticks,{negativeScale:r,linearScale:i,positiveScale:a}=SN(t);return t.ticks=e=>{let o=n(e),s=t.constant(),c=0,l=0,u=0;o.forEach(e=>{e>-s&&e=s&&(u+=1)});let d=[];if(c>0&&d.push(...r.ticks(c)),l>0){let e=i.ticks(l);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}if(u>0){let e=a.ticks(u);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}return d},t.tickFormat=(e=10,n)=>{let o=t.constant(),[s,c]=t.domain(),l=c-s,u=r.domain(),d=u[1]-u[0],f=(l===0?0:d/l)*e,p=i.domain(),m=p[1]-p[0],h=(l===0?0:m/l)*e,g=a.domain(),_=g[1]-g[0],v=(l===0?0:_/l)*e,y=r.tickFormat(f,n),b=i.tickFormat(h,n),x=a.tickFormat(v,n);return e=>(e.valueOf()<=-o?y:e.valueOf()>=o?x:b)(e)},t.copy=()=>xN(t.domain(),t.range()).constant(t.constant()),t}function SN(e){let t=e.constant(),n=e.domain();return{negativeScale:NA([n[0],Math.min(n[1],-t)],e.range()),linearScale:SA([Math.max(n[0],-t),Math.min(n[1],t)],e.range()),positiveScale:NA([Math.max(n[0],t),n[1]],e.range())}}function CN(e,t,n){switch(e){case`log`:return NA(t,n);case`pow`:return HA(t,n);case`sqrt`:return UA(t,n);case`time`:return lN(t,n);case`utc`:return uN(t,n);case`symlog`:return xN(t,n);default:return SA(t,n)}}function wN(e){return`groups`in e&&Array.isArray(e.groups)&&e.groups.length>0}function TN(e,t){let n=new Set;for(let r=0;rdO(e)))}function ON(e){if(e.length<=EN)return e;let t=[],n=1,r=null;for(let i of e){let e=i.split(` -`).length;e>n&&(n=e,r=i);let a=DN(i);if(t.lengtht[0].length){let e=t.findIndex(e=>e.length>a);t.splice(e===-1?t.length:e,0,{label:i,length:a}),t.length>EN&&t.shift()}}return r!==null&&t.find(e=>e.label===r)===void 0&&t.push({label:r,length:DN(r)}),t.map(e=>e.label)}function kN(e,t){let{valueFormatter:n,scaleType:r,data:i}=e;if(r===`band`||r===`point`){if(!i||i.length===0)return[];let e=r===`band`?yN(i,[0,1]):bN(i,[0,1]);return ON(i.map(t=>n?n(t,{location:`tick`,scale:e,defaultTickLabel:`${t}`}):`${t}`))}let a=t?t.domain[0]:0,o=t?t.domain[1]:100,s=t?.tickNumber??2,c=CN(r??`linear`,[a,o],[0,1]),l=a===o?[a]:[a,o],u=c.tickFormat(s);return l.map(e=>{let t=u(e);return n?n(e,{location:`tick`,scale:c,defaultTickLabel:t}):t})}function AN(e,t){if(e.length===0)return{maxWidth:0,maxHeight:0};let n=new Set;for(let t of e){let e=t.split(` -`);for(let t of e)n.add(t)}let r=rO(n,t),i=0,a=0;for(let t of e){let e=t.split(` -`),n=0,o=0;for(let t of e){let e=r.get(t)??{width:0,height:0};n=Math.max(n,e.width),o+=e.height}i=Math.max(i,n),a=Math.max(a,o)}return{maxWidth:i,maxHeight:a}}function jN(e,t,n,r){if(!n||n%180==0)return r===`x`?t:e;if(n%90==0)return r===`x`?e:t;let i=sO(Math.abs(n)),a=Math.cos(i),o=Math.sin(i);return r===`x`?Math.abs(e*o)+Math.abs(t*a):Math.abs(e*a)+Math.abs(t*o)}function MN(e,t){let{groups:n,data:r,tickSize:i,tickLabelStyle:a}=e,o=!!e.label;if(!r||r.length===0)return{size:20};let s=[],c=[],l=i??6;for(let e=0;e{let i={},a=new Map;return e.forEach((e,o)=>{let s=r[e.type].getSeriesWithDefaultValues(e,o,t,n),c=s.id;if(i[e.type]===void 0&&(i[e.type]={series:{},seriesOrder:[]}),i[e.type]?.series[c]!==void 0)throw Error(QE(34,c));if(i[e.type].series[c]=s,i[e.type].seriesOrder.push(c),a.has(c))throw Error(QE(35,c));a.set(c,e.type)}),{defaultizedSeries:i,idToType:a}},FN=(e,t,n,r)=>{let i={};return Object.keys(t).forEach(a=>{let o=e[a];o!==void 0&&(i[a]=t[a]?.seriesProcessor?.(o,n,r)??o)}),i},IN=(e,t,n)=>{let r=!1,i={};return Object.keys(e).forEach(a=>{let o=t[a]?.seriesLayout,s=e[a];if(o!==void 0&&s!==void 0){let t=o(s,n);t&&t!==e[a]&&(r=!0,i[a]=t)}}),r?i:{}},LN=(e,t)=>{let n=e[t.type]?.identifierSerializer;if(!n)throw Error(QE(43,t.type));return n(t)},RN=(e,t)=>{let n=e[t.type]?.identifierCleaner;if(!n)throw Error(QE(42,t.type));return n(t)},zN=({store:e})=>({instance:{serializeIdentifier:gE(t=>LN(e.state.seriesConfig.config,t)),cleanIdentifier:gE(function(t){return RN(e.state.seriesConfig.config,t)})}});zN.params={seriesConfig:!0},zN.getDefaultizedParams=({params:e})=>J({},e,{seriesConfig:e.seriesConfig??{}}),zN.getInitialState=({seriesConfig:e})=>({seriesConfig:{config:e}});var BN=Q(e=>e.seriesConfig,e=>e.config),VN=e=>e.visibilityManager,HN=new Map,UN=$(Q(VN,e=>e?.visibilityMap??HN),BN,(e,t)=>n=>{let r=LN(t,n);return!e.has(r)}),WN=(e,t)=>{let n=new Map;return e&&e.forEach(e=>{let r=LN(t,e);n.set(r,e)}),n},GN=[`#4254FB`,`#FFB422`,`#FA4F58`,`#0DBEFF`,`#22BF75`,`#FA83B4`,`#FF7511`],KN=[`#495AFB`,`#FFC758`,`#F35865`,`#30C8FF`,`#44CE8D`,`#F286B3`,`#FF8C39`],qN=e=>e===`dark`?KN:GN;function JN(e){function t(t){if(t.type!==void 0)return t;let n=e.series.idToType.get(t.seriesId);if(n===void 0)throw Error(QE(36,t.seriesId));return J({},t,{type:n})}return t}var YN=({params:e,store:t})=>{let{series:n,dataset:r,theme:i,colors:a}=e;return VD(()=>{let{defaultizedSeries:e,idToType:o}=PN({series:n,colors:typeof a==`function`?a(i):a,theme:i,seriesConfig:t.state.seriesConfig.config});t.set(`series`,J({},t.state.series,{defaultizedSeries:e,idToType:o,dataset:r}))},[a,r,n,i,t]),{instance:{identifierWithType:JN(t.state)}}};YN.params={dataset:!0,series:!0,colors:!0,theme:!0};var XN=[];YN.getDefaultizedParams=({params:e})=>J({},e,{series:e.series?.length?e.series:XN,colors:e.colors??qN,theme:e.theme??`light`}),YN.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},i)=>{let a=i.seriesConfig.config,{defaultizedSeries:o,idToType:s}=PN({series:e,colors:typeof t==`function`?t(n):t,theme:n,seriesConfig:a});return{series:{defaultizedSeries:o,idToType:s,dataset:r}}};var ZN=({store:e,params:t,instance:n})=>{VD(()=>{t.hiddenItems!==void 0&&e.set(`visibilityManager`,J({},e.state.visibilityManager,{visibilityMap:WN(t.hiddenItems.map(e=>n.identifierWithType(e,`visibility`)),e.state.seriesConfig.config)}))},[e,n,t.hiddenItems]);let r=gE(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(i.has(o))return;let s=new Map(i);s.set(o,a),e.set(`visibilityManager`,J({},e.state.visibilityManager,{visibilityMap:s}));let c=Array.from(s.values());t.onHiddenItemsChange?.(c)}),i=gE(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(!i.has(o))return;let s=new Map(i);s.delete(o),e.set(`visibilityManager`,J({},e.state.visibilityManager,{visibilityMap:s})),t.onHiddenItemsChange?.(Array.from(s.values()))});return{instance:{hideItem:r,showItem:i,toggleItemVisibility:gE(t=>{let a=e.state.visibilityManager.visibilityMap,o=n.identifierWithType(t,`visibility`),s=n.serializeIdentifier(o);a.has(s)?i(o):r(o)})}}};ZN.getInitialState=(e,t)=>{let n=t.seriesConfig.config,r=e.hiddenItems??e.initialHiddenItems;return{visibilityManager:{visibilityMap:r?WN(r.map(e=>JN(t)(e)),n):HN,isControlled:e.hiddenItems!==void 0}}},ZN.params={onHiddenItemsChange:!0,hiddenItems:!0,initialHiddenItems:!0};var QN=e=>e.series,$N=Q(QN,e=>e.defaultizedSeries),eP=$($N,BN,Q(QN,e=>e.dataset),UN,function(e,t,n,r){return FN(e,t,n,r)}),tP=$(BN,eP,(e,t)=>function(n){for(let r in t){if(!Object.hasOwn(t,r))continue;let i=t[r];if(i?.series&&i.series[n])return e[r]}return null});function nP(e){return e.scaleType===`band`}function rP(e){return e.scaleType===`point`}function iP(e){return e.scaleType!==`point`&&e.scaleType!==`band`}function aP(e){return e.scaleType===`symlog`}var oP,sP,cP=class{types=new Set;constructor(){if(oP)throw Error(QE(24));oP=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},lP=class{types=new Set;constructor(){if(sP)throw Error(QE(25));sP=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},uP=new cP;uP.addType(`bar`),uP.addType(`line`),uP.addType(`scatter`);var dP=new lP;dP.addType(`radar`);function fP(e){return uP.getTypes().has(e)}function pP(e){return fP(e.type)}var mP=(e,t,n,r,i,a,o)=>{let s=n===`x`?r[e].xExtremumGetter:r[e].yExtremumGetter,c=a[e]?.series??{};return s?.({series:c,axis:t,axisIndex:i,isDefaultAxis:i===0,getFilters:o})??[1/0,-1/0]};function hP(e,t,n,r,i,a){let o=Object.keys(n).filter(fP),s=[1/0,-1/0];for(let c of o){let[o,l]=mP(c,e,t,n,r,i,a);s=[Math.min(s[0],o),Math.max(s[1],l)]}return Number.isNaN(s[0])||Number.isNaN(s[1])?[1/0,-1/0]:s}var gP={},_P=$(GD,eP,BN,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!nP(e)&&!rP(e)&&(r[e.id]=hP(e,`x`,n,a,t),i=!0)}),i?r:gP}),vP=$(KD,eP,BN,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!nP(e)&&!rP(e)&&(r[e.id]=hP(e,`y`,n,a,t),i=!0)}),i?r:gP}),yP=(e,t,n,r)=>{if(e.domainLimit!==void 0)return e.domainLimit;if(t===`x`)for(let t of r.line?.seriesOrder??[]){let i=r.line.series[t];if(i.xAxisId===e.id||i.xAxisId===void 0&&n===0)return`strict`}return`nice`};function bP(e,t,n){let{tickMaxStep:r,tickMinStep:i,tickNumber:a}=e,o=i===void 0?999:Math.floor(Math.abs(t[1]-t[0])/i),s=r===void 0?2:Math.ceil(Math.abs(t[1]-t[0])/r);return Math.min(o,Math.max(s,a??n))}function xP(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function SP(e){return Math.floor(Math.abs(e)/50)}function CP(e,t,n){return CN(e??`linear`,t,[0,1]).nice(n).domain()}function wP(e,t,n,r,[i,a],o){let s=yP(e,t,n,r),c=EP(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}let l=bP(e,c,o);return s===`nice`&&(c=CP(e.scaleType,c,l)),c=[`min`in e?e.min??c[0]:c[0],`max`in e?e.max??c[1]:c[1]],{domain:c,tickNumber:l}}function TP(e,t,n,r,[i,a],o){let s=yP(e,t,n,r),c=EP(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}return s===`nice`&&(c=CP(e.scaleType,c,o)),[e.min??c[0],e.max??c[1]]}function EP(e,t,n){let r=t,i=n;return`max`in e&&e.max!=null&&e.maxn&&(i=e.min),!(`min`in e)&&!(`max`in e)?[r,i]:[e.min??r,e.max??i]}function DP(e,t,n,r,i){let a={};return e?.forEach((e,o)=>{let s=e;if(nP(s)||rP(s)){a[s.id]={domain:s.data},s.ordinalTimeTicks!==void 0&&(a[s.id].tickNumber=bP(s,[s.data?.find(e=>e!==null),s.data?.findLast(e=>e!==null)],n));return}let c=r[s.id];c&&(a[s.id]=wP(s,i,o,t,c,n))}),a}var OP=8,kP={},AP=$(GD,eP,_P,function(e,t,n){let r=DP(e,t,OP,n,`x`);return Object.keys(r).length>0?r:kP}),jP=$(KD,eP,vP,function(e,t,n){let r=DP(e,t,OP,n,`y`);return Object.keys(r).length>0?r:kP}),MP=e=>e.dimensions.width&&e.dimensions.height,NP={},PP={},FP=$(GD,MP,AP,function(e,t,n){if(!e?.some(e=>e.height===`auto`)||!t)return PP;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.height===`auto`){let e=NN({axis:i,direction:`x`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),IP=$(FP,function(e){if(e===PP)return NP;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t}),LP=$(KD,MP,jP,function(e,t,n){if(!e?.some(e=>e.width===`auto`)||!t)return PP;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.width===`auto`){let e=NN({axis:i,direction:`y`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),RP=$(LP,function(e){if(e===PP)return NP;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t});function zP(e){return 25+(e.label?20:0)}function BP(e){return 45+(e.label?20:0)}function VP(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.height===`auto`?r[t.id]??zP(t):t.height??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}function HP(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.width===`auto`?r[t.id]??BP(t):t.width??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}var UP=$(Q(KD,qD,RP,function(e,t,n){return HP(e,t,`left`,n)}),Q(KD,qD,RP,function(e,t,n){return HP(e,t,`right`,n)}),Q(GD,qD,IP,function(e,t,n){return VP(e,t,`top`,n)}),Q(GD,qD,IP,function(e,t,n){return VP(e,t,`bottom`,n)}),function(e,t,n,r){return{left:e,right:t,top:n,bottom:r}}),WP=e=>e.dimensions,GP=$(WP,e=>e.dimensions.margin,UP,function({width:e,height:t},{top:n,right:r,bottom:i,left:a},{left:o,right:s,top:c,bottom:l}){return{width:e-a-r-o-s,left:a+o,right:r+s,height:t-n-i-c-l,top:n+c,bottom:i+l}}),KP=Q(WP,e=>e.width),qP=Q(WP,e=>e.height),JP=Q(WP,e=>e.propsWidth),YP=Q(WP,e=>e.propsHeight);function XP(e,t){return typeof e==`number`?{top:e,bottom:e,left:e,right:e}:t?J({},t,e):e}var ZP=10,QP=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,i=e.width!==void 0&&e.height!==void 0,a=b.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[o,s]=b.useState(0),[c,l]=b.useState(0),u=b.useCallback(()=>{let n=r?.current;if(!n)return{};let i=vE(n).getComputedStyle(n),a=Math.floor(parseFloat(i.height))||0,o=Math.floor(parseFloat(i.width))||0;return(t.state.dimensions.width!==o||t.state.dimensions.height!==a)&&t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??o,height:e.height??a,propsWidth:e.width,propsHeight:e.height}),{height:a,width:o}},[t,r,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);VD(()=>{let n=e.width??t.state.dimensions.width,r=e.height??t.state.dimensions.height;t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:n,height:r,propsHeight:e.height,propsWidth:e.width})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),b.useEffect(()=>{a.current.displayError=!0},[]),UC(()=>{if(i||!a.current.initialCompute||a.current.computeRun>ZP)return;let e=u();e.width!==o||e.height!==c?(a.current.computeRun+=1,e.width!==void 0&&s(e.width),e.height!==void 0&&l(e.height)):a.current.initialCompute&&(a.current.initialCompute=!1)},[c,o,u,i]),UC(()=>{if(i)return()=>{};u();let e=r.current;if(typeof ResizeObserver>`u`)return()=>{};let t,n=new ResizeObserver(()=>{t=requestAnimationFrame(()=>{u()})});return e&&n.observe(e),()=>{t&&cancelAnimationFrame(t),e&&n.unobserve(e)}},[u,i,r]);let d=t.use(GP),f=b.useCallback(e=>e>=d.left-1&&e<=d.left+d.width,[d.left,d.width]),p=b.useCallback(e=>e>=d.top-1&&e<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:b.useCallback((e,t,n)=>n&&`closest`in n&&n.closest(`[data-drawing-container]`)?!0:f(e)&&p(t),[f,p]),isXInside:f,isYInside:p}}};QP.params={width:!0,height:!0,margin:!0},QP.getDefaultizedParams=({params:e})=>J({},e,{margin:XP(e.margin,WD)}),QP.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});var $P=()=>({instance:{chartsLayerContainerRef:b.useRef(null),chartRootRef:b.useRef(null)}});$P.params={};var eF=({params:e,store:t})=>(UC(()=>{t.set(`experimentalFeatures`,e.experimentalFeatures)},[t,e.experimentalFeatures]),{});eF.params={experimentalFeatures:!0},eF.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});var tF=(e,t)=>e.experimentalFeatures?.[t],nF=0,rF=()=>(nF+=1,`mui-chart-${nF}`),iF=({params:e,store:t})=>(b.useEffect(()=>{e.id===void 0||e.id===t.state.id.providedChartId&&t.state.id.chartId!==void 0||t.set(`id`,J({},t.state.id,{chartId:e.id??rF()}))},[t,e.id]),{});iF.params={id:!0},iF.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});var aF=Q(e=>e.id,e=>e.chartId),oF=$(eP,BN,GP,function(e,t,n){return IN(e,t,n)});function sF(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var cF={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,command:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0},lF=class{customData={};constructor(e){if(!e||!e.name)throw Error(sF(164));if(e.name in cF)throw Error(sF(165,e.name));this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,t,n,r){this.element=e,this.pointerManager=t,this.gesturesRegistry=n,this.keyboardManager=r;let i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange);let a=`${this.name}ChangeState`;this.element.addEventListener(a,this.handleStateChange)}handleOptionsChange=e=>{e&&e.detail&&this.updateOptions(e.detail)};updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(e,t){if(e!==`mouse`&&e!==`touch`&&e!==`pen`)return t;let n=this.pointerOptions[e];return n?J({},t,n):t}handleStateChange=e=>{e&&e.detail&&this.updateState(e.detail)};updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||`contains`in this.element&&this.element.contains(e.target)||`getRootNode`in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(this.preventIf.length===0)return!1;let r=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(e=>r[e])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0||this.pointerMode.includes(e)}destroy(){let e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange);let t=`${this.name}ChangeState`;this.element.removeEventListener(t,this.handleStateChange)}},uF=class{activeGestures=new Map;registerActiveGesture(e,t){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);let n=this.activeGestures.get(e),r={gesture:t,element:e};n.add(r)}unregisterActiveGesture(e,t){let n=this.activeGestures.get(e);n&&(n.forEach(e=>{e.gesture===t&&n.delete(e)}),n.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){let t=this.activeGestures.get(e);return t?Array.from(t).reduce((e,t)=>(e[t.gesture.name]=!0,e),{}):{}}isGestureActive(e,t){let n=this.activeGestures.get(e);return n?Array.from(n).some(e=>e.gesture===t):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}};function dF(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:fF,platform:pF,maxTouchPoints:mF}=dF(),hF=fF.toLowerCase(),gF=pF.toLowerCase(),_F=/^i(os$|p)/.test(gF)||gF===`macintel`&&mF>1,vF=`android`,yF=gF===vF||hF.includes(vF),bF=!_F&&gF.startsWith(`mac`);gF.startsWith(`win`),!yF&&/^(linux|chrome os)/.test(gF);var xF=bF||_F,SF=class{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>`u`||(window.addEventListener(`keydown`,this.handleKeyDown),window.addEventListener(`keyup`,this.handleKeyUp),window.addEventListener(`blur`,this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||e.length===0||e.every(e=>e===`ControlOrMeta`?xF?this.pressedKeys.has(`Meta`):this.pressedKeys.has(`Control`):this.pressedKeys.has(e))}destroy(){typeof window<`u`&&(window.removeEventListener(`keydown`,this.handleKeyDown),window.removeEventListener(`keyup`,this.handleKeyUp),window.removeEventListener(`blur`,this.clearKeys)),this.clearKeys()}},CF=class{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||`auto`,this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return this.pointers}setupEventListeners(){this.touchAction!==`auto`&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener(`pointerdown`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointermove`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointerup`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointercancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`forceCancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`blur`,this.handleInterruptEvents),this.root.addEventListener(`contextmenu`,this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&`pointerType`in e&&e.pointerType===`touch`){e.preventDefault();return}let t=new PointerEvent(`forceCancel`,{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(t,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(let[e,t]of this.pointers.entries()){let n=J({},t,{type:`forceCancel`});this.pointers.set(e,n)}}this.notifyHandlers(t),this.pointers.clear()};handlePointerEvent=e=>{let{type:t,pointerId:n}=e;if(t===`pointerdown`||t===`pointermove`)this.pointers.set(n,this.createPointerData(e));else if(t===`pointerup`||t===`pointercancel`||t===`forceCancel`){this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(n);return}this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(t=>t(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener(`pointerdown`,this.handlePointerEvent),this.root.removeEventListener(`pointermove`,this.handlePointerEvent),this.root.removeEventListener(`pointerup`,this.handlePointerEvent),this.root.removeEventListener(`pointercancel`,this.handlePointerEvent),this.root.removeEventListener(`forceCancel`,this.handlePointerEvent),this.root.removeEventListener(`blur`,this.handleInterruptEvents),this.root.removeEventListener(`contextmenu`,this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}},wF=class{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new uF;keyboardManager=new SF;constructor(e){this.pointerManager=new CF({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(e=>{this.addGestureTemplate(e)})}addGestureTemplate(e){this.gestureTemplates.set(e.name,e)}addGestures(e){e.forEach(e=>{this.addGestureTemplate(e)})}removeGestures(e){e.forEach(e=>{this.elementGestureMap.forEach((t,n)=>{this.unregisterElement(e,n)}),this.gestureTemplates.delete(e)})}setGestureOptions(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}setGestureState(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}registerElement(e,t,n){return Array.isArray(e)||(e=[e]),e.forEach(e=>{let r=n?.[e];this.registerSingleGesture(e,t,r)}),t}registerSingleGesture(e,t,n){let r=this.gestureTemplates.get(e);if(!r)return!1;this.elementGestureMap.has(t)||this.elementGestureMap.set(t,new Map);let i=this.elementGestureMap.get(t);i.has(e)&&this.unregisterElement(e,t);let a=r.clone(n);return a.init(t,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,a),!0}unregisterElement(e,t){let n=this.elementGestureMap.get(t);return!n||!n.has(e)?!1:(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(t),n.size===0&&this.elementGestureMap.delete(t),!0)}unregisterAllGestures(e){let t=this.elementGestureMap.get(e);if(t){for(let[,n]of t)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(let[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}},TF=class extends lF{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,t,n,r){super.init(e,t,n,r),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());return e.length>=n.minPointers&&e.length<=n.maxPointers}getRelevantPointers(e,t){return e.filter(e=>{if(!this.isPointerTypeAllowed(e.pointerType))return!1;let n=t===e.target||e.target===this.originalTarget||t===this.originalTarget||`contains`in t&&t.contains(e.target),r=`getRootNode`in t&&t.getRootNode()instanceof ShadowRoot&&e.srcEvent.composedPath().includes(t);return n||r})}destroy(){this.unregisterHandler&&=(this.unregisterHandler(),null),super.destroy()}};function EF(e){if(e.length===0)return{x:0,y:0};let t=e.reduce((e,t)=>(e.x+=t.clientX,e.y+=t.clientY,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}function DF(e,t){return`${e}${t===`ongoing`?``:t.charAt(0).toUpperCase()+t.slice(1)}`}var OF=1e-5,kF=.15;function AF(e,t){let n=t.x-e.x,r=t.y-e.y,i={vertical:null,horizontal:null,mainAxis:null},a=jF(t,e),o=Math.abs(n)>Math.abs(r)?`horizontal`:`vertical`,s=a||o===`horizontal`?OF:kF,c=a?OF:o===`horizontal`?kF:OF;return Math.abs(n)>s&&(i.horizontal=n>0?`right`:`left`),Math.abs(r)>c&&(i.vertical=r>0?`down`:`up`),i.mainAxis=a?`diagonal`:o,i}function jF(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n)*180/Math.PI;return i>=-44.99999&&i<=-22.49999||i>=22.50001&&i<=45.00001||i>=135.00001&&i<=157.50001||i>=-157.49999&&i<=-134.99999}function MF(e,t){if(!e.vertical&&!e.horizontal)return!1;if(t.length===0)return!0;let n=e.vertical===null||t.includes(e.vertical),r=e.horizontal===null||t.includes(e.horizontal);return n&&r}var NF=class e extends TF{state={lastPosition:null};constructor(e){super(e),this.threshold=e.threshold||0}clone(t){return new e(J({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(e,t,n,r){super.init(e,t,n,r),this.element.addEventListener(`pointerenter`,this.handleElementEnter),this.element.addEventListener(`pointerleave`,this.handleElementLeave)}destroy(){this.element.removeEventListener(`pointerenter`,this.handleElementEnter),this.element.removeEventListener(`pointerleave`,this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());if(this.isWithinPointerCount(n,e.pointerType)){this.isActive=!0;let t={x:e.clientX,y:e.clientY};this.state.lastPosition=t,this.emitMoveEvent(this.element,`start`,n,e),this.emitMoveEvent(this.element,`ongoing`,n,e)}};handleElementLeave=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`||!this.isActive)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());this.emitMoveEvent(this.element,`end`,n,e),this.resetState()};handlePointerEvent=(e,t)=>{if(t.type!==`pointermove`||t.pointerType!==`mouse`&&t.pointerType!==`pen`)return;this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation();let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r||!this.isWithinPointerCount(n,t.pointerType))return;if(this.shouldPreventGesture(r,t.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(r,`end`,n,t);return}let i={x:t.clientX,y:t.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(r,`start`,n,t)),this.emitMoveEvent(r,`ongoing`,n,t)};emitMoveEvent(e,t,n,r){let i=this.state.lastPosition||EF(n),a=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,activeGestures:a,customData:this.customData},s=DF(this.name,t),c=new CustomEvent(s,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(c)}},PF=class e extends TF{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(e){super(e),this.direction=e.direction||[`up`,`down`,`left`,`right`],this.threshold=e.threshold||0}clone(t){return new e(J({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction,this.threshold=e.threshold??this.threshold}resetState(){this.isActive=!1,this.state=J({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancel(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.cancel(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.cancel(r,i,t);return}switch(t.type){case`pointerdown`:if(!this.isActive&&!this.state.startCentroid)i.forEach(e=>{this.state.startPointers.set(e.pointerId,e)}),this.originalTarget=r,this.state.startCentroid=EF(i),this.state.lastCentroid=J({},this.state.startCentroid);else if(this.state.startCentroid&&this.state.lastCentroid){let e=this.state.lastCentroid,t=EF(i),n=t.x-e.x,r=t.y-e.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t,i.forEach(e=>{this.state.startPointers.has(e.pointerId)||this.state.startPointers.set(e.pointerId,e)})}break;case`pointermove`:if(this.state.startCentroid&&this.isWithinPointerCount(n,t.pointerType)){let e=EF(i),n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y,o=Math.sqrt(n*n+a*a),s=AF(this.state.lastCentroid??this.state.startCentroid,e),c=this.state.lastCentroid?e.x-this.state.lastCentroid.x:0,l=this.state.lastCentroid?e.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&o>=this.threshold&&MF(s,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`start`,i,t,e),this.emitPanEvent(r,`ongoing`,i,t,e)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`ongoing`,i,t,e)),this.state.lastCentroid=e,this.state.lastDirection=s}break;case`pointerup`:case`pointercancel`:case`forceCancel`:if(this.isActive&&this.state.movementThresholdReached){let e=i.filter(e=>e.type!==`pointerup`&&e.type!==`pointercancel`);if(!this.isWithinPointerCount(e,t.pointerType)){let e=this.state.lastCentroid||this.state.startCentroid;t.type===`pointercancel`&&this.emitPanEvent(r,`cancel`,i,t,e),this.emitPanEvent(r,`end`,i,t,e),this.resetState()}else if(e.length>=1&&this.state.lastCentroid){let t=EF(e),n=t.x-this.state.lastCentroid.x,r=t.y-this.state.lastCentroid.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t;let a=i.find(e=>e.type===`pointerup`||e.type===`pointercancel`)?.pointerId;a!==void 0&&this.state.startPointers.delete(a)}}else this.resetState()}};emitPanEvent(e,t,n,r,i){if(!this.state.startCentroid)return;let a=this.state.lastDeltas?.x??0,o=this.state.lastDeltas?.y??0,s=this.state.startPointers.values().next().value,c=s?(r.timeStamp-s.timeStamp)/1e3:0,l=c>0?a/c:0,u=c>0?o/c:0,d=Math.sqrt(l*l+u*u),f=this.gesturesRegistry.getActiveGestures(e),p={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,deltaX:a,deltaY:o,direction:this.state.lastDirection,velocityX:l,velocityY:u,velocity:d,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:f,customData:this.customData},m=DF(this.name,t),h=new CustomEvent(m,{bubbles:!0,cancelable:!0,composed:!0,detail:p});e.dispatchEvent(h),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancel(e,t,n){if(this.isActive){let r=e??this.element;this.emitPanEvent(r,`cancel`,t,n,this.state.lastCentroid),this.emitPanEvent(r,`end`,t,n,this.state.lastCentroid)}this.resetState()}},FF=class e extends TF{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(t){return new e(J({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=J({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancelPress(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.isActive&&this.cancelPress(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelPress(r,i,t);return}switch(t.type){case`pointerdown`:!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=EF(i),this.state.lastPosition=J({},this.state.startCentroid),this.state.startTime=t.timeStamp,this.isActive=!0,this.originalTarget=r,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;let e=this.state.lastPosition;this.emitPressEvent(r,`start`,i,t,e),this.emitPressEvent(r,`ongoing`,i,t,e)}},this.duration));break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=EF(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelPress(r,i,t)}break;case`pointerup`:if(this.isActive){if(this.state.pressThresholdReached){let e=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(r,`end`,i,t,e)}this.resetState()}break;case`pointercancel`:case`forceCancel`:this.cancelPress(r,i,t)}};emitPressEvent(e,t,n,r,i){let a=this.gesturesRegistry.getActiveGestures(e),o=r.timeStamp-this.state.startTime,s={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,x:i.x,y:i.y,duration:o,activeGestures:a,customData:this.customData},c=DF(this.name,t),l=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:s});e.dispatchEvent(l),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancelPress(e,t,n){if(this.isActive&&this.state.pressThresholdReached){let r=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,`cancel`,t,n,r),this.emitPressEvent(e??this.element,`end`,t,n,r)}this.resetState()}},IF=class e extends TF{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(t){return new e(J({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null}}handlePointerEvent=(e,t)=>{let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r)return;let i=this.getRelevantPointers(n,r);if(this.shouldPreventGesture(r,t.pointerType)||!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelTap(r,i,t);return}switch(t.type){case`pointerdown`:this.isActive||(this.state.startCentroid=EF(i),this.state.lastPosition=J({},this.state.startCentroid),this.isActive=!0,this.originalTarget=r);break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=EF(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelTap(r,i,t)}break;case`pointerup`:if(this.isActive){this.state.currentTapCount+=1;let e=this.state.lastPosition||this.state.startCentroid;if(!e){this.cancelTap(r,i,t);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(r,i,t,e),this.resetState()):(this.state.lastTapTime=t.timeStamp,this.isActive=!1,this.state.startCentroid=null,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state.multiTapResetTimeoutId=setTimeout(()=>{this.state.multiTapResetTimeoutId=null,this.state.currentTapCount>0&&this.state.currentTapCounte.preventDefault(),RF=({instance:e})=>{let{chartsLayerContainerRef:t}=e,n=b.useRef(null);b.useEffect(()=>{let e=t.current;n.current||=new wF({gestures:[new PF({name:`pan`,threshold:0,maxPointers:1}),new NF({name:`move`,preventIf:[`pan`,`zoomPinch`,`zoomPan`]}),new IF({name:`tap`,preventIf:[`pan`,`zoomPinch`,`zoomPan`]}),new FF({name:`quickPress`,duration:50}),new PF({name:`brush`,threshold:0,maxPointers:1})]});let r=n.current;if(!(!e||!r))return r.registerElement([`pan`,`move`,`tap`,`quickPress`,`brush`],e),()=>{r.unregisterAllGestures(e)}},[t,n]);let r=b.useCallback((e,n,r)=>{let i=t.current;return i?.addEventListener(e,n,r),{cleanup:()=>i?.removeEventListener(e,n,r)}},[t]),i=b.useCallback((e,r)=>{let i=t.current,a=n.current;!a||!i||a.setGestureOptions(e,i,r??{})},[t,n]);return b.useEffect(()=>{let e=t.current;return e?.addEventListener(`gesturestart`,LF),e?.addEventListener(`gesturechange`,LF),e?.addEventListener(`gestureend`,LF),()=>{e?.removeEventListener(`gesturestart`,LF),e?.removeEventListener(`gesturechange`,LF),e?.removeEventListener(`gestureend`,LF)}},[t]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:i,registerGestures:b.useCallback(e=>{let r=t.current,i=n.current;if(!i||!r)return()=>{};let a=e.map(e=>e.name);return i.addGestures(e),i.registerElement(a,r),()=>{i.removeGestures(a)}},[t,n])}}};RF.params={},RF.getInitialState=()=>({});var zF=[$P,iF,zN,eF,QP,YN,RF,zD],BF=[`apiRef`],VF=e=>{let{plugins:t}=e,n=WE(e.props,BF),r={};t.forEach(e=>{Object.assign(r,e.params)});let i={};return Object.keys(n).forEach(e=>{let t=n[e];r[e]&&(i[e]=t)}),t.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e}):e,i)},HF=0;function UF(e,t){let n=Dw(),r=b.useMemo(()=>[...zF,...e],[e]),i=VF({plugins:r,props:t});i.id=i.id??n;let a=b.useRef({}).current,o=GF(t.apiRef),s=b.useRef(null);if(s.current==null){HF+=1;let e={cacheKey:{id:HF}};r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(i,e))}),s.current=new RD(e)}return r.forEach(e=>{let t=e({instance:a,params:i,plugins:r,store:s.current});t.publicAPI&&Object.assign(o.current,t.publicAPI),t.instance&&Object.assign(a,t.instance)}),{contextValue:b.useMemo(()=>({store:s.current,publicAPI:o.current,instance:a}),[a,o])}}function WF(e){return e.current??={},e}function GF(e){let t=b.useRef({});return e?WF(e):t}var KF=b.createContext(null),qF=`hover`,JF=(e,t,n)=>{let r=n??!1;return e===`y`&&(t===`band`||t===`point`)?!r:r},YF={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:`keep`,reverse:!1,slider:{enabled:!1,preview:!1,size:28,showTooltip:qF}},XF=(e,t,n,r)=>{if(e)return e===!0?J({axisId:t,axisDirection:n},YF,{reverse:r??!1}):J({axisId:t,axisDirection:n},YF,{reverse:r??!1},e,{slider:J({},YF.slider,{size:e.slider?.preview??YF.slider.preview?48:28},e.slider)})};function ZF(e,t,n){let r={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:HD,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`bottom`:`none`,s=e.position??o,c=25+(e.label?20:0),l=e.id??`defaultized-x-axis-${i}`,u=e.height??c,d=J({offset:r[s]},e,{id:l,position:s,height:u,zoom:XF(e.zoom,l,`x`,JF(`x`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(QE(37));return J({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function QF(e,t,n){let r={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:UD,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`left`:`none`,s=e.position??o,c=45+(e.label?20:0),l=e.id??`defaultized-y-axis-${i}`,u=e.width??c,d=J({offset:r[s]},e,{id:l,position:s,width:u,zoom:XF(e.zoom,l,`y`,JF(`y`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(QE(38));return J({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function $F(e,t){return function(n,r){if(r.location===`tick`){let t=r.scale.domain();return t[0]===t[1]?r.scale.tickFormat(1)(n):r.scale.tickFormat(e)(n)}return r.location===`zoom-slider-tooltip`?t.tickFormat(2)(n):`${n}`}}function eI(e){return e.type===`piecewise`?WA(e.thresholds,e.colors).unknown(e.unknownColor??null):pN([e.min??0,e.max??100],e.color).unknown(e.unknownColor??null)}function tI(e){return e.values?PO(e.values,e.colors).unknown(e.unknownColor??null):PO(e.colors.map((e,t)=>t),e.colors).unknown(e.unknownColor??null)}function nI(e){return e.type===`ordinal`?tI(e):eI(e)}var rI=e=>e?.[0]instanceof Date;function iI(e,t,n){let r=lN(e,t);return(e,{location:t})=>t===`tick`?r.tickFormat(n)(e):`${e.toLocaleString()}`}var aI=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(fP).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function oI(e){return e.bandwidth!==void 0}function sI(e){return oI(e)&&e.paddingOuter!==void 0}function cI(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?[r[1],r[0]]:r}function lI(e,t){return e.step()*t<.1}function uI(e,t,n){let r=n===`x`?e.height:e.width;if(r===`auto`){let r=t?.[e.id];return r===void 0?(n===`x`?25:45)+(e.label?20:0):r}return r??0}var dI=.2,fI=.1;function pI(e,t,n,r){let i={},a={};for(let o of e){let e=o.position;if(e&&(i[e]??=0,a[o.id]=i[e],e!==`none`)){let a=uI(o,t,n);i[e]+=a+r;let s=o.zoom;s?.slider.enabled&&(i[e]+=s.slider.size)}}return a}function mI({scales:e,drawingArea:t,formattedSeries:n,axis:r,seriesConfig:i,axisDirection:a,zoomMap:o,domains:s,autoSizes:c,axesGap:l=0}){if(r===void 0)return{axis:{},axisIds:[]};let u=aI(a,i,n,r[0].id),d=pI(r,c,a,l),f={};return r.forEach(n=>{let r=n,i=e[r.id],l=o?.get(r.id),p=l?[l.start,l.end]:[0,100],m=cI(t,a,r.reverse??!1),h=s[r.id].tickNumber,g=!r.ignoreTooltip&&u.has(r.id),_=xP(h,p),v=uI(r,c,a),y=r.data??[],b=d[r.id]??r.offset??0;if(oI(i)){let e=a===`y`?[m[1],m[0]]:m;if(sI(i)&&nP(r)){let e=r.categoryGapRatio??dI,t=lI(i,e),n=t?0:e,o=t?0:r.barGapRatio??fI;f[r.id]=J({categoryGapRatio:n,barGapRatio:o,triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:t?i.copy().padding(0):i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?tI(J({values:r.data},r.colorMap)):nI(r.colorMap))})}if(rP(r)&&(f[r.id]=J({triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?tI(J({values:r.data},r.colorMap)):nI(r.colorMap))})),rI(r.data)){let t=iI(r.data,e,r.tickNumber);f[r.id].valueFormatter=r.valueFormatter??t}return}if(r.scaleType===`band`||r.scaleType===`point`)return;let x=r,S=x.scaleType??`linear`;f[r.id]=J({triggerTooltip:g},x,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scaleType:S,scale:i,tickNumber:_,colorScale:x.colorMap&&eI(x.colorMap),valueFormatter:r.valueFormatter??$F(_,CN(S,m.map(e=>i.invert(e)),m))})}),{axis:f,axisIds:r.map(({id:e})=>e)}}function hI(e){return e!=null}function gI(e,t,n,r){let i=e?.length??0,a=Math.floor(t*i/100),o=Math.ceil(n*i/100);return function(t,n){return(t[r]??e?.[n])==null||n>=a&&n=s&&n<=c}}var vI=e=>({currentAxisId:t,seriesXAxisId:n,seriesYAxisId:r,isDefaultAxis:i})=>(a,o)=>!(t===n?r:n)||i?Object.values(e??{})[0]?.(a,o)??!0:[r,n].filter(e=>e!==t).map(t=>e[t??``]).filter(hI).every(e=>e(a,o)),yI=e=>(t=[])=>t.reduce((t,n)=>{let{zoom:r,id:i,reverse:a,scaleType:o}=n,s=XF(r,i,e,JF(e,o,a));return s&&(t[i]=s),t},{}),bI=.2;function xI(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}var SI=new WeakMap;function CI(e,t,n){let r=SI.get(e);r||(r=new Map,SI.set(e,r));let i=r.get(t);return i||(i=n(),r.set(t,i)),i}function wI(e,t){let n=[0,1];if(nP(e)){let r=e.categoryGapRatio??bI;return CI(t,`band:${r}`,()=>yN(t,n).paddingInner(r).paddingOuter(r/2))}if(rP(e))return CI(t,`point`,()=>bN(t,n));let r=CN(e.scaleType??`linear`,t,n);return aP(e)&&e.constant!=null&&r.constant(e.constant),r}var TI=(e,t)=>{let n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]},EI=class{constructor(e=1/0,t=Float64Array,n=Uint32Array){let r=e!==1/0;this.ids=r?new n(e):[],this.values=r?new t(e):[],this.capacity=e,this.length=0}clear(){this.length=0}push(e,t){if(this.length===this.capacity)throw RangeError(`Queue is at capacity.`);let n=this.length++;for(;n>0;){let e=n-1>>1,r=this.values[e];if(t>=r)break;this.ids[n]=this.ids[e],this.values[n]=r,n=e}this.ids[n]=e,this.values[n]=t}pop(){if(this.length===0)return;let e=this.ids,t=this.values,n=e[0],r=--this.length;if(r>0){let n=e[r],i=t[r],a=0,o=r>>1;for(;a=i)break;e[a]=e[s],t[a]=t[s],a=s}e[a]=n,t[a]=i}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){Array.isArray(this.ids)&&(this.ids.length=this.length),Array.isArray(this.values)&&(this.values.length=this.length)}},DI=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],OI=3,kI=class e{static from(t,n=0){if(n%8!=0)throw Error(QE(13));if(!t||t.byteLength===void 0||t.buffer)throw Error(QE(14));let[r,i]=new Uint8Array(t,n+0,2);if(r!==251)throw Error(QE(15));let a=i>>4;if(a!==OI)throw Error(QE(16,a,OI));let o=DI[i&15];if(!o)throw Error(QE(17));let[s]=new Uint16Array(t,n+2,1),[c]=new Uint32Array(t,n+4,1);return new e(c,s,o,void 0,t,n)}constructor(e,t=16,n=Float64Array,r=ArrayBuffer,i,a=0){if(e===void 0)throw Error(QE(18));if(isNaN(e)||e<=0)throw Error(QE(19,e));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.byteOffset=a;let o=e,s=o;this._levelBounds=[o*4];do o=Math.ceil(o/this.nodeSize),s+=o,this._levelBounds.push(s*4);while(o!==1);this.ArrayType=n,this.IndexArrayType=s<16384?Uint16Array:Uint32Array;let c=DI.indexOf(n),l=s*4*n.BYTES_PER_ELEMENT;if(c<0)throw Error(QE(20,n));if(i)this.data=i,this._boxes=new n(i,a+8,s*4),this._indices=new this.IndexArrayType(i,a+8+l,s),this._pos=s*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{let i=this.data=new r(8+l+s*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(i,8,s*4),this._indices=new this.IndexArrayType(i,8+l,s),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(i,0,2).set([251,48+c]),new Uint16Array(i,2,1)[0]=t,new Uint32Array(i,4,1)[0]=e}this._queue=new EI}add(e,t,n=e,r=t){let i=this._pos>>2,a=this._boxes;return this._indices[i]=i,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=n,a[this._pos++]=r,ethis.maxX&&(this.maxX=n),r>this.maxY&&(this.maxY=r),i}finish(){if(this._pos>>2!==this.numItems)throw Error(QE(21,this._pos>>2,this.numItems));let e=this._boxes;if(this.numItems<=this.nodeSize){e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,e[this._pos++]=this.maxY;return}let t=this.maxX-this.minX||1,n=this.maxY-this.minY||1,r=new Uint32Array(this.numItems),i=65535;for(let a=0,o=0;a>2]=t,e[this._pos++]=i,e[this._pos++]=a,e[this._pos++]=o,e[this._pos++]=s}}}search(e,t,n,r,i){if(this._pos!==this._boxes.length)throw Error(QE(22));let a=this._boxes.length-4,o=[],s=[];for(;a!==void 0;){let c=Math.min(a+this.nodeSize*4,jI(a,this._levelBounds));for(let l=a;lthis._boxes[l+2]||t>this._boxes[l+3])continue;let c=this._indices[l>>2]|0;a>=this.numItems*4?o.push(c):(i===void 0||i(c))&&(s.push(c),s.push(this._boxes[l]),s.push(this._boxes[l+1]))}a=o.pop()}return s}neighbors(e,t,n=1/0,r=1/0,i,a=AI){if(this._pos!==this._boxes.length)throw Error(QE(23));let o=this._boxes.length-4,s=this._queue,c=[];outer:for(;o!==void 0;){let l=Math.min(o+this.nodeSize*4,jI(o,this._levelBounds));for(let n=o;n>2]|0,l=this._boxes[n],u=this._boxes[n+1],d=this._boxes[n+2],f=this._boxes[n+3],p=a(ed?e-d:0,tf?t-f:0);p>r||(o>=this.numItems*4?s.push(c<<1,p):(i===void 0||i(c))&&s.push((c<<1)+1,p))}for(;s.length&&s.peek()&1;)if(s.peekValue()>r||(c.push(s.pop()>>1),c.length===n))break outer;o=s.length?s.pop()>>1:void 0}return s.clear(),c}};function AI(e,t){return e*e+t*t}function jI(e,t){let n=0,r=t.length-1;for(;n>1;t[i]>e?r=i:n=i+1}return t[n]}function MI(e,t,n,r,i,a){if(Math.floor(r/a)>=Math.floor(i/a))return;let o=e[r],s=e[r+i>>1],c=e[i],l=c,u=Math.max(o,s);c>u?l=u:u===o?l=Math.max(s,c):u===s&&(l=Math.max(o,c));let d=r-1,f=i+1;for(;;){do d++;while(e[d]l);if(d>=f)break;NI(e,t,n,d,f)}MI(e,t,n,r,f,a),MI(e,t,n,f+1,i,a)}function NI(e,t,n,r,i){let a=e[r];e[r]=e[i],e[i]=a;let o=4*r,s=4*i,c=t[o],l=t[o+1],u=t[o+2],d=t[o+3];t[o]=t[s],t[o+1]=t[s+1],t[o+2]=t[s+2],t[o+3]=t[s+3],t[s]=c,t[s+1]=l,t[s+2]=u,t[s+3]=d;let f=n[r];n[r]=n[i],n[i]=f}function PI(e,t){let n=e^t,r=65535^n,i=65535^(e|t),a=e&(t^65535),o=n|r>>1,s=n>>1^n,c=i>>1^r&a>>1^i,l=n&i>>1^a>>1^a;n=o,r=s,i=c,a=l,o=n&n>>2^r&r>>2,s=n&r>>2^r&(n^r)>>2,c^=n&i>>2^r&a>>2,l^=r&i>>2^(n^r)&a>>2,n=o,r=s,i=c,a=l,o=n&n>>4^r&r>>4,s=n&r>>4^r&(n^r)>>4,c^=n&i>>4^r&a>>4,l^=r&i>>4^(n^r)&a>>4,n=o,r=s,i=c,a=l,c^=n&i>>8^r&a>>8,l^=r&i>>8^(n^r)&a>>8,n=c^c>>1,r=l^l>>1;let u=e^t,d=r|65535^(u|n);return u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,(d<<1|u)>>>0}var FI=e=>typeof e.size==`function`;function II(e){let[t,n]=e;return e=>t+Math.max(Math.min(e,1),0)*(n-t)}function LI(e){if(e.type===`piecewise`)return WA(e.thresholds,e.sizes);if(FI(e))return pN([e.min??0,e.max??100],e.size);switch(e.interpolator??`sqrt`){case`log`:return mN([e.min??0,e.max??100],II(e.size));case`linear`:return pN([e.min??0,e.max??100],II(e.size));default:return gN([e.min??0,e.max??100],II(e.size))}}function RI(e){return e.values?PO(e.values,e.sizes).unknown(e.unknownSize??null):PO(e.sizes.map((e,t)=>t),e.sizes).unknown(e.unknownSize??null)}function zI(e){return e.type===`ordinal`?RI(e):LI(e)}function BI(e,t){return e.id===void 0?J({id:t},e):e}function VI(e){return e.colorMap?J({},e,{colorScale:e.colorMap.type===`ordinal`&&e.data?tI(J({values:e.data},e.colorMap)):nI(e.colorMap.type===`continuous`?J({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function HI(e){return e.sizeMap?J({},e,{sizeScale:e.sizeMap.type===`ordinal`?RI(J({values:e.data},e.sizeMap)):zI(e.sizeMap.type===`continuous`?J({min:e.min,max:e.max},e.sizeMap):e.sizeMap)}):e}function UI(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};let n={},r=[];return e.forEach((e,i)=>{let a=e.dataKey,o=e.id??`defaultized-z-axis-${i}`;if(e.data!==void 0||a===void 0&&!e.valueGetter){n[o]=HI(VI(BI(e,o))),r.push(o);return}if(t===void 0)throw Error(QE(41));n[o]=HI(VI(BI(J({},e,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])}),o))),r.push(o)}),{axis:n,axisIds:r}}var WI=({params:e,store:t})=>{let{zAxis:n,dataset:r}=e,i=b.useRef(!0);return b.useEffect(()=>{if(i.current){i.current=!1;return}t.set(`zAxis`,UI(n,r))},[n,r,t]),{}};WI.params={zAxis:!0,dataset:!0},WI.getInitialState=e=>({zAxis:UI(e.zAxis,e.dataset)});var GI=Q(e=>e,e=>e.zAxis),KI=(e,t)=>{let n=t?.sizeScale;return n?r=>{if(t?.data?.[r]!==void 0){let e=n(t.data[r]);if(e!=null&&!Number.isNaN(e))return e}let i=e.data[r];if(i!=null){let e=n(i.sizeValue);if(e!=null&&!Number.isNaN(e))return e}return e.markerSize}:()=>e.markerSize},qI=e=>{let t=new Map;return e.forEach(e=>{t.set(e.axisId,e)}),t},JI=e=>e.zoom,YI=Q(JI,e=>e?.isInteracting),XI=$(JI,function(e){return e?.zoomData&&qI(e?.zoomData)}),ZI=Q(XI,(e,t)=>e?.get(t)),QI=$(GD,KD,function(e,t){return J({},yI(`x`)(e),yI(`y`)(t))});Q(QI,(e,t)=>e[t]);var $I=Q(GP,function(e){return SP(e.width)}),eL=Q(GP,function(e){return SP(e.height)}),tL=$(GD,eP,$I,_P,function(e,t,n,r){return{axes:e,domains:DP(e,t,n,r,`x`)}}),nL=$(KD,eP,eL,vP,function(e,t,n,r){return{axes:e,domains:DP(e,t,n,r,`y`)}}),rL=$(XI,QI,tL,nL,function(e,t,{axes:n,domains:r},{axes:i,domains:a}){if(!e||!t)return;let o=!1,s={},c=[...n??[],...i??[]];for(let i=0;i=100)continue;let d=i<(n?.length??0)?`x`:`y`;if(l.scaleType===`band`||l.scaleType===`point`)s[l.id]=gI(l.data,u.start,u.end,d);else{let{domain:e}=d===`x`?r[l.id]:a[l.id];s[l.id]=_I(e,u.start,u.end,d,l.data)}o=!0}if(o)return vI(s)}),iL=$(eP,BN,XI,QI,rL,tL,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(nP(a)||rP(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=hP(a,`x`,t,c,e,f);s[a.id]=TP(a,`x`,c,e,m,p)}),s}),aL=$(eP,BN,XI,QI,rL,nL,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(nP(a)||rP(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=hP(a,`y`,t,c,e,f);s[a.id]=TP(a,`y`,c,e,m,p)}),s}),oL=$(GD,iL,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=wI(r,i)}),n}),sL=$(KD,aL,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=wI(r,i)}),n}),cL=$(GD,oL,GP,XI,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=xI(n,`x`,a),l=t[a.id].copy(),u=TI(c,s);l.range(u),i[a.id]=l}),i}),lL=$(KD,sL,GP,XI,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=xI(n,`y`,a),l=t[a.id].copy(),u=TI(oI(l)?c.reverse():c,s);l.range(u),i[a.id]=l}),i}),uL=$(GP,eP,BN,XI,tL,cL,IP,qD,function(e,t,n,r,{axes:i,domains:a},o,s,c){return mI({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`x`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})}),dL=$(GP,eP,BN,XI,nL,lL,RP,qD,function(e,t,n,r,{axes:i,domains:a},o,s,c){return mI({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`y`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})});Q(uL,dL,(e,t,n)=>e?.axis[n]??t?.axis[n]),Q(GD,KD,(e,t,n)=>{let r=e?.find(e=>e.id===n)??t?.find(e=>e.id===n)??null;if(r)return r});var fL=Q(GD,e=>e[0].id),pL=Q(KD,e=>e[0].id),mL=new Map,hL=()=>mL,gL=$(eP,oL,sL,fL,pL,GI,function(e,t,n,r,i,a){let o=e.scatter,s=new Map;if(!o)return s;let c=a?.axis??{},l=a?.axisIds??[];return o.seriesOrder.forEach(e=>{let a=o.series[e],{data:u,xAxisId:d=r,yAxisId:f=i}=a;if(u.length===0)return;let p=new kI(u.length),m=c[a.sizeAxisId??l[0]],h=!m||!m.sizeScale,g=h?a.markerSize??0:KI(a,m),_=h?g:0,v=t[d],y=n[f];for(let e=0;e{let i=_L(n);return i>t&&(r===0||Math.abs(t-i)<=Math.abs(t-_L(e[r-1])))||i<=t&&(r===e.length-1||Math.abs(t-i)=r.length?-1:i?r.length-1-a:a}function bL(e,t,n,r){if(!oI(e)){if(r===null){let t=e.invert(n);return Number.isNaN(t)?null:t}return t[r]}return r===null||r<0||r>=t.length?null:t[r]}function xL(e,t){let n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top;if(typeof DOMMatrix>`u`)return{x:r,y:i,z:0,w:1,matrixTransform:()=>({x:r,y:i,z:0,w:1})};let a=getComputedStyle(e),o=new DOMMatrix(a.transform);return new DOMPoint(r,i).matrixTransform(o.inverse())}var SL=({store:e})=>({instance:{cleanInteraction:gE(function(){e.update({interaction:J({},e.state.interaction,{pointer:null})})}),setLastUpdateSource:gE(function(t){e.state.interaction.lastUpdate!==t&&e.set(`interaction`,J({},e.state.interaction,{lastUpdate:t}))}),setPointerCoordinate:gE(function(t){e.set(`interaction`,J({},e.state.interaction,{pointer:t,lastUpdate:t===null?e.state.interaction.lastUpdate:`pointer`}))}),handlePointerEnter:gE(function(t){e.set(`interaction`,J({},e.state.interaction,{pointerType:t.pointerType}))}),handlePointerLeave:gE(function(){e.set(`interaction`,J({},e.state.interaction,{pointerType:null}))})}});SL.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:`pointer`,pointerType:null}}),SL.params={};var CL=e=>e.interaction,wL=Q(CL,e=>e!==void 0),TL=Q(CL,e=>e?.pointer??null),EL=Q(TL,e=>e&&e.x),DL=Q(TL,e=>e&&e.y),OL=Q(CL,e=>e?.lastUpdate),kL=Q(CL,e=>e?.pointerType??null);function AL(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(n=>yL(t.axis[n],e)):yL(t.axis[n],e)}var jL=(e,t,n)=>{if(e===null)return null;let r=AL(e,t,n);return r===-1?null:r},ML=Q(EL,uL,jL),NL=Q(DL,dL,jL),PL=Q(EL,DL,uL,dL,(e,t,n,r)=>[...e===null?[]:n.axisIds.map(t=>({axisId:t,dataIndex:AL(e,n,t)})),...t===null?[]:r.axisIds.map(e=>({axisId:e,dataIndex:AL(t,r,e)}))].filter(e=>e.dataIndex!==null&&e.dataIndex>=0));function FL(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((r,i)=>{let a=t.axis[r];return bL(a.scale,a.data,e,n[i])}):bL(t.axis[r].scale,t.axis[r].data,e,n)}var IL=Q(EL,uL,ML,(e,t,n,r)=>e===null||t.axisIds.length===0?null:FL(e,t,n,r)),LL=Q(DL,dL,NL,(e,t,n,r)=>e===null||t.axisIds.length===0?null:FL(e,t,n,r));function RL(e){return e.setPointerCoordinate!==void 0}var zL=new Set([`bar`,`rangeBar`,`line`]),BL=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,{xAxis:i,yAxis:a,dataset:o,onHighlightedAxisChange:s,onTooltipAxisChange:c,axesGap:l}=e,u=t.use(eP),d=t.use(wL),{axis:f,axisIds:p}=t.use(uL),{axis:m,axisIds:h}=t.use(dL);e.highlightedAxis,e.tooltipAxis,UC(()=>{e.highlightedAxis!==void 0&&t.set(`controlledCartesianAxisHighlight`,e.highlightedAxis)},[t,e.highlightedAxis]),UC(()=>{e.tooltipAxis!==void 0&&t.set(`controlledCartesianAxisTooltip`,e.tooltipAxis)},[t,e.tooltipAxis]);let g=b.useRef(!0);b.useEffect(()=>{if(g.current){g.current=!1;return}t.set(`cartesianAxis`,{axesGap:l,x:ZF(i,o,l),y:QF(a,o,l)})},[i,a,o,l,t]);let _=p[0],v=h[0];ID(t,PL,(e,t)=>{if(!(!s&&!c)&&!Object.is(e,t)){if(e.length!==t.length){s?.(t),c?.(t);return}e?.some(({axisId:e,dataIndex:n},r)=>t[r].axisId!==e||t[r].dataIndex!==n)&&(s?.(t),c?.(t))}});let y=RL(n);return b.useEffect(()=>{let t=r.current;if(!d||!y||!t||e.disableAxisListener)return()=>{};let i=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||n.cleanInteraction()}),a=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||n.cleanInteraction()}),o=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&n.cleanInteraction()}),s=e=>{let r=e.detail.srcEvent,i=e.detail.target,a=xL(t,r);if(e.detail.srcEvent.buttons>=1&&i?.hasPointerCapture(e.detail.srcEvent.pointerId)&&!i?.closest(`[data-charts-zoom-slider]`)&&i?.releasePointerCapture(e.detail.srcEvent.pointerId),!n.isPointInside(a.x,a.y,i)){n.cleanInteraction?.();return}n.setPointerCoordinate(a)},c=n.addInteractionListener(`move`,s),l=n.addInteractionListener(`pan`,s),u=n.addInteractionListener(`quickPress`,s);return()=>{c.cleanup(),i.cleanup(),l.cleanup(),a.cleanup(),u.cleanup(),o.cleanup()}},[r,t,f,_,m,v,n,e.disableAxisListener,d,y]),b.useEffect(()=>{let t=r.current,i=e.onAxisClick;if(t===null||!i)return()=>{};let a=n.addInteractionListener(`tap`,e=>{let n=null,r=!1,a=xL(t,e.detail.srcEvent),o=yL(f[_],a.x);r=o!==-1,n=r?o:yL(m[v],a.y);let s=r?p[0]:h[0];if(n==null||n===-1)return;let c=(r?f:m)[s].data[n],l={};Object.keys(u).filter(e=>zL.has(e)).forEach(e=>{let t=u[e];t?.seriesOrder.forEach(e=>{let i=t.series[e],a=i.xAxisId,o=i.yAxisId,c=r?a:o;(c===void 0||c===s)&&(l[e]=i.data[n])})}),i(e.detail.srcEvent,{dataIndex:n,axisValue:c,seriesValues:l})});return()=>{a.cleanup()}},[e.onAxisClick,u,r,f,p,m,h,_,v,n]),{}};BL.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0,onTooltipAxisChange:!0,tooltipAxis:!0,axesGap:!0},BL.getDefaultizedParams=({params:e})=>J({},e,{axesGap:e.axesGap??0,colors:e.colors??qN,theme:e.theme??`light`,defaultizedXAxis:ZF(e.xAxis,e.dataset,e.axesGap??0),defaultizedYAxis:QF(e.yAxis,e.dataset,e.axesGap??0)}),BL.getInitialState=e=>J({cartesianAxis:{axesGap:e.axesGap,x:e.defaultizedXAxis,y:e.defaultizedYAxis}},e.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});var VL=Object.is;function HL(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!VL(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var UL=e=>e.keyboardNavigation;Q(UL,(e,t)=>e?.isFocused===!0&&e?.item!=null&&HL(e.item,t));var WL=Q(UL,e=>e?.isFocused===!0&&e?.item!=null),GL=Q(UL,e=>e?.isFocused===!0?e?.item??null:null),KL=Q(UL,e=>e?.item??null),qL=Q(UL,e=>!!e?.enabled),JL=e=>(t,n,r)=>{if(t==null||!(`dataIndex`in t)||t.dataIndex===void 0)return;let i=r[t.type]?.series[t.seriesId];if(!i)return;let a=e===`x`?`xAxisId`in i&&i.xAxisId:`yAxisId`in i&&i.yAxisId;return(a===void 0||a===!1)&&(a=n.axisIds[0]),{axisId:a,dataIndex:t.dataIndex}},YL=Q(GL,uL,eP,JL(`x`)),XL=Q(GL,dL,eP,JL(`y`)),ZL=$(UL,function(e){if(e?.isFocused!==!0||e?.item==null)return null;let{type:t,seriesId:n}=e.item;return t===void 0||n===void 0?null:e.item}),QL=e=>e.brush;Q(QL,e=>e?.start),Q(QL,e=>e?.current),$(Q(QL,e=>e?.start?.x??null),Q(QL,e=>e?.start?.y??null),Q(QL,e=>e?.current?.x??null),Q(QL,e=>e?.current?.y??null),(e,t,n,r)=>e===null||t===null||n===null||r===null?null:{start:{x:e,y:t},current:{x:n,y:r}}),Q(Q(eP,e=>{let t=!1,n=!1;return e&&Object.entries(e).forEach(([e,r])=>{Object.values(r.series).some(e=>e.layout===`horizontal`)&&(t=!0),e===`scatter`&&r.seriesOrder.length>0&&(n=!0)}),n?`xy`:t?`y`:`x`}),Q(QI,function(e){let t=!1,n=!1;return Object.values(e).forEach(e=>{e.axisDirection===`y`&&(n=!0),e.axisDirection===`x`&&(t=!0)}),t&&n?`xy`:n?`y`:t?`x`:null}),(e,t)=>t??e);var $L=Q(QL,e=>e?.enabled||e?.isZoomBrushEnabled),eR=Q($L,QL,(e,t)=>e&&t?.start!==null&&t?.current!==null),tR=Q(QL,eR,(e,t)=>t&&e?.preventHighlight),nR=Q(QL,eR,(e,t)=>t&&e?.preventTooltip),rR=({store:e,instance:t,params:n})=>{let{chartsLayerContainerRef:r}=t,i=e.use($L);UC(()=>{e.set(`brush`,J({},e.state.brush,{enabled:n.brushConfig.enabled,preventTooltip:n.brushConfig.preventTooltip,preventHighlight:n.brushConfig.preventHighlight}))},[e,n.brushConfig.enabled,n.brushConfig.preventTooltip,n.brushConfig.preventHighlight]);let a=gE(function(t){e.set(`brush`,J({},e.state.brush,{start:e.state.brush.start??t,current:t}))}),o=gE(function(){e.set(`brush`,J({},e.state.brush,{start:null,current:null}))}),s=gE(function(t){e.state.brush.isZoomBrushEnabled!==t&&e.set(`brush`,J({},e.state.brush,{isZoomBrushEnabled:t}))});return b.useEffect(()=>{let e=r.current;if(e===null||!i)return()=>{};let n=t=>{if(t.detail.target?.closest(`[data-charts-zoom-slider]`))return;let n=xL(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y});a(n)},s=t=>{let n=xL(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y});a(n)},c=t.addInteractionListener(`brushStart`,n),l=t.addInteractionListener(`brush`,s),u=t.addInteractionListener(`brushCancel`,o),d=t.addInteractionListener(`brushEnd`,o);return()=>{c.cleanup(),l.cleanup(),d.cleanup(),u.cleanup()}},[r,t,e,o,a,i]),{instance:{setBrushCoordinates:a,clearBrush:o,setZoomBrushEnabled:s}}};rR.params={brushConfig:!0},rR.getDefaultizedParams=({params:e})=>J({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}}),rR.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});function iR(e,t,n){if(e===`pointer`){if(t)return[t];if(n)return[n]}if(e===`keyboard`){if(n)return[n];if(t)return[t]}return[]}var aR=e=>e.controlledCartesianAxisHighlight,oR=(e,t,n,r,i,a)=>a?[]:n===void 0?iR(i,e!==null&&{axisId:t.axisIds[0],dataIndex:e},r!=null&&r):n.filter(e=>t.axis[e.axisId]!==void 0).map(e=>e),sR=$(ML,uL,aR,YL,OL,tR,oR);$(NL,dL,aR,XL,OL,tR,oR);var cR=(e,t,n,r,i,a,o)=>{if(o)return[];if(r!==void 0)return r.map(e=>J({},e,{value:n.axis[e.axisId]?.data?.[e.dataIndex]})).filter(({value:e})=>e!==void 0);let s=t!=null&&{axisId:n.axisIds[0],value:t};s&&e!=null&&(s.dataIndex=e);let c=i!=null&&n.axis[i.axisId]?.data?.[i.dataIndex];return iR(a,s,i!=null&&c!=null&&J({},i,{value:c}))},lR=$(ML,IL,uL,aR,YL,OL,tR,cR),uR=$(NL,LL,dL,aR,XL,OL,tR,cR),dR=(e,t)=>e===void 0?[t.axis[t.axisIds[0]]]:e.map(e=>t.axis[e.axisId]??null).filter(e=>e!==null);Q(aR,uL,dR),Q(aR,dL,dR);function fR(e,t,n){if(n===0)return{barWidth:e/t,offset:0};let r=e/(t+(t-1)*n);return{barWidth:r,offset:n*r}}function pR(e,t){return e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())}function mR(e,t,n){if(!sI(e.scale))return-1;let r=pR(e.scale,n),{barWidth:i,offset:a}=fR(e.scale.bandwidth(),t.groupNumber,e.barGapRatio),o=t.groupIndex*(i+a),s=e.data?.[r];if(s==null)return-1;let c=e.scale(s);if(c==null)return-1;let l=c+o,u=l+i;return n>=Math.min(l,u)&&n<=Math.max(l,u)?r:-1}var hR=Q(uL,dL,eP,function({axis:e,axisIds:t},{axis:n,axisIds:r},i,a){let{series:o,stackingGroups:s=[]}=i?.bar??{},c=t[0],l=r[0],u;for(let t=0;t=Math.min(x,S)&&v<=Math.max(x,S)&&(u={seriesId:i,dataIndex:y})}}if(u)return{type:`bar`,seriesId:u.seriesId,dataIndex:u.dataIndex}});function gR(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r(e(t)??0)+e.bandwidth()/2;let t=e.domain();return t[0]===t[1]?n=>n===t[0]?e(n):NaN:t=>e(t)}var vR=e=>e.controlledCartesianAxisTooltip,yR=[];function bR(e,t){return e===void 0||!t.axis[e.axisId]?.triggerTooltip?yR:[e]}var xR=yD({memoizeOptions:{resultEqualityCheck:gR}})(vR,EL,uL,OL,YL,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return yR;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?bR(i,n):t===null?yR:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:yL(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),SR=yD({memoizeOptions:{resultEqualityCheck:gR}})(vR,DL,dL,OL,XL,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return yR;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?bR(i,n):t===null?yR:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:yL(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),CR=Q(xR,SR,(e,t)=>e.length>0||t.length>0);function wR(e,t){let n=t.axis[e.axisId];if(!n)return null;let r=n.data?.[e.dataIndex];if(r==null)return null;let i=_R(n.scale)(r);return i===void 0?null:i}var TR=$(xR,SR,uL,dL,GP,function(e,t,n,r,i,a){if(e.length===0&&t.length===0)return null;if(e.length>0){let t=wR(e[0],n);if(t===null)return null;switch(a){case`left`:case`right`:return{x:t,y:i.top+i.height/2};case`bottom`:return{x:t,y:i.top+i.height};default:return{x:t,y:i.top}}}if(t.length>0){let e=wR(t[0],r);if(e===null)return null;switch(a){case`right`:return{x:i.left+i.width/2,y:e};case`bottom`:case`top`:return{x:i.left+i.width/2,y:e};default:return{x:i.left+i.width/2,y:e}}}return null}),ER={},DR=new Map;function OR(e){return{axisId:e,start:0,end:100}}var kR=e=>e.sampling,AR=$(kR,eP,BN,function(e,t,n){if(!e?.enabled)return ER;let r;return Object.keys(t).forEach(i=>{let a=e.methods[i];if(!a||a===`none`)return;let o=n[i]?.sampler,s=t[i];if(!(!o||!s))for(let e of s.seriesOrder){let t=o.build(s.series[e]);t&&(r??={},r[e]=t)}}),r??ER}),jR=$(kR,XI,uL,dL,GP,QI,BN,function(e,t,n,r,i,a,o){if(!e?.enabled)return DR;let s=o.bar?.sampler?.bucketSizeAt??o.line?.sampler?.bucketSizeAt;if(!s)return DR;let c=new Map;return[[n,i.width],[r,i.height]].forEach(([e,n])=>{e.axisIds.forEach(r=>{let i=e.axis[r].data,o=t?.get(r)??OR(r),l=a[r]?.minSpan??0;i&&c.set(r,s(o.end-o.start,{dataLength:i.length,availableSize:n,minSpan:l}))})}),c}),MR=({store:e,params:t,instance:n})=>{t.tooltipItem,UC(()=>{if(e.state.tooltip.item!==t.tooltipItem){let r=t.tooltipItem?n.identifierWithType(t.tooltipItem,`seriesItem`):null;(e.state.tooltip.item===null||r===null?r!==e.state.tooltip.item:n.serializeIdentifier(e.state.tooltip.item)!==n.serializeIdentifier(r))&&e.set(`tooltip`,J({},e.state.tooltip,{item:r}))}},[e,n,t.tooltipItem]);let r=gE(function(r){let i=e.state.tooltip.item;if(i!==null&&(!r||n.serializeIdentifier(i)===n.serializeIdentifier(n.identifierWithType(r,`seriesItem`)))){t.onTooltipItemChange?.(null),e.state.tooltip.itemIsControlled||e.set(`tooltip`,J({},e.state.tooltip,{item:null}));return}});return{instance:{setTooltipItem:gE(function(n){HL(e.state.tooltip.item,n)||(t.onTooltipItemChange?.(n),e.state.tooltip.itemIsControlled||e.set(`tooltip`,J({},e.state.tooltip,{item:n})))}),removeTooltipItem:r}}};MR.getInitialState=(e,t)=>({tooltip:{itemIsControlled:e.tooltipItem!==void 0,item:e.tooltipItem==null?null:JN(t)(e.tooltipItem)}}),MR.params={tooltipItem:!0,onTooltipItemChange:!0};var NR=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n;return b.useEffect(()=>{let n=r.current;if(!n||e.disableKeyboardNavigation)return;function i(e){let n=e.currentTarget,r=e.relatedTarget;n&&r instanceof Node&&!n.contains(r)&&t.state.keyboardNavigation.isFocused&&t.set(`keyboardNavigation`,J({},t.state.keyboardNavigation,{isFocused:!1}))}function a(){t.state.keyboardNavigation.isFocused||t.update(J({},t.state.highlight&&{highlight:J({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:J({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:J({},t.state.keyboardNavigation,{isFocused:!0})}))}function o(e){let n=t.state.keyboardNavigation.item,r=BN(t.state),i=n?.type;if(!i&&(i=Object.keys($N(t.state)).find(e=>r[e]!==void 0),i===void 0))return;let a=r[i]?.keyboardFocusHandler?.(e);a&&(n=a(n,t.state),n!==t.state.keyboardNavigation.item&&(e.preventDefault(),t.update(J({},t.state.highlight&&{highlight:J({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:J({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:J({},t.state.keyboardNavigation,{item:n})}))))}return n.addEventListener(`keydown`,o),n.addEventListener(`focusout`,i),n.addEventListener(`focusin`,a),()=>{n.removeEventListener(`keydown`,o),n.removeEventListener(`focusout`,i),n.removeEventListener(`focusin`,a)}},[r,e.disableKeyboardNavigation,t]),UC(()=>{t.set(`keyboardNavigation`,J({},t.state.keyboardNavigation,{enabled:!e.disableKeyboardNavigation}))},[t,e.disableKeyboardNavigation]),{}};NR.getInitialState=e=>({keyboardNavigation:{item:null,isFocused:!1,enabled:!e.disableKeyboardNavigation}}),NR.params={disableKeyboardNavigation:!0};var PR=Q(e=>e.tooltip,e=>e?.item??null),FR=Q(PR,e=>e!==null),IR=Q(OL,PR,ZL,(e,t,n)=>e===`keyboard`?n:t??null),LR=Q(OL,FR,WL,(e,t,n)=>e===`keyboard`?n:t),RR=({store:e,params:t,instance:n})=>(t.highlightedItem,UC(()=>{if(t.highlightedItem!==void 0&&e.state.highlight.item!==t.highlightedItem){if(t.highlightedItem===null){e.set(`highlight`,J({},e.state.highlight,{item:null}));return}let r=n.identifierWithType(t.highlightedItem,`highlightItem`),i=n.cleanIdentifier(r,`highlightItem`);e.set(`highlight`,J({},e.state.highlight,{item:i}))}},[e,t.highlightedItem,n]),{instance:{clearHighlight:gE(()=>{t.onHighlightChange?.(null);let n=e.state.highlight;n.item===null||n.isControlled||e.set(`highlight`,{item:null,lastUpdate:`pointer`,isControlled:!1})}),setHighlight:gE(r=>{let i=e.state.highlight,a=n.identifierWithType(r,`highlightItem`),o=n.cleanIdentifier(a,`highlightItem`);HL(i.item,o)||(t.onHighlightChange?.(o),!i.isControlled&&e.set(`highlight`,{item:o,lastUpdate:`pointer`,isControlled:!1}))})}});RR.getInitialState=(e,t)=>({highlight:{item:e.highlightedItem==null?e.highlightedItem:RN(t.seriesConfig.config,JN(t)(e.highlightedItem)),lastUpdate:`pointer`,isControlled:e.highlightedItem!==void 0}}),RR.params={highlightedItem:!0,onHighlightChange:!0};var zR=[WI,MR,SL,BL,RR];function BR(e){let{children:t,plugins:n=zR,pluginParams:r={}}=e,{contextValue:i}=UF(n,r);return(0,Y.jsx)(KF.Provider,{value:i,children:t})}var VR=()=>{let e=b.useContext(KF);if(e==null)throw Error(QE(30));return e};function HR(e){`hasPointerCapture`in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}var UR=e=>{let{instance:t}=VR(),n=b.useRef(!1),r=gE(()=>{n.current=!0,t.setLastUpdateSource(`pointer`),t.setTooltipItem(e),t.setHighlight(e)}),i=gE(()=>{n.current=!1,t.removeTooltipItem(e),t.clearHighlight()});return b.useEffect(()=>()=>{n.current&&i()},[i]),b.useMemo(()=>({onPointerEnter:r,onPointerLeave:i,onPointerDown:HR}),[r,i])};function WR(){let e=VR();if(!e)throw Error(QE(32));return e.store}function GR(e,t,n){return e?.highlight===`series`&&t?.seriesId===n}function KR(e,t,n){return GR(e,t,n)?!1:e?.fade===`global`&&t!=null||e?.fade===`series`&&t?.seriesId===n}function qR(e,t,n){return e?.highlight===`item`&&t?.seriesId===n?t.dataIndex:null}function JR(e,t,n){return GR(e,t,n)||qR(e,t,n)===t?.dataIndex?null:(e?.fade===`series`||e?.fade===`global`)&&t?.seriesId===n?t.dataIndex:null}var YR=e=>e.highlight,XR=$(eP,e=>{let t={};return Object.keys(e).forEach(n=>{t[n]=new Map;let r=e[n];r?.seriesOrder?.forEach(e=>{let i=r?.series[e];i?.highlightScope!==void 0&&t[n]?.set(e,i.highlightScope)})}),t}),ZR=$(YR,ZL,function(e,t){return e.isControlled||e.lastUpdate===`pointer`?e.item:t}),QR=Q(XR,ZR,function(e,t){if(!t)return null;let n=e[t.type]?.get(t.seriesId);return n===void 0?null:n}),$R=()=>`none`,ez=$(QR,ZR,BN,function(e,t,n){if(t===null||e===null)return $R;let r=n[t.type],i=r.isHighlightedCreator(e,t),a=r.isFadedCreator(e,t);return e=>i(e)?`highlighted`:a(e)?`faded`:`none`});function tz(e){return ez(e)}var nz=$(tz,function(e,t){return e(t)});function rz(e,t){return nz(e,t)}Q(QR,ZR,function(e,t,n){return GR(e,t,n)}),Q(QR,ZR,function(e,t,n){return KR(e,t,n)}),Q(QR,ZR,function(e,t,n){return JR(e,t,n)}),Q(QR,ZR,function(e,t,n){return qR(e,t,n)});function iz(){return!1}function az(e,t){return!e||!t?iz:function(n){return n?(e.highlight===`series`||e.highlight===`item`&&n.dataIndex===t.dataIndex)&&n.seriesId===t.seriesId:!1}}function oz(){return!1}function sz(e,t){return!e||!t?oz:function(n){return n?e.fade===`series`?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:e.fade===`global`?n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex:!1:!1}}function cz(e){return WR().use(rz,e)}function lz(e){return e}var{cbrt:uz,sqrt:dz,PI:fz}=Math,pz=(e,t,n,r,i)=>{let a=t+n*e,o=a**2+r;if(o>0){let e=dz(o);return uz(a+e)+uz(a-e)-i}let s=uz(dz(a*a-o)),c=a?Math.atan(dz(-o)/a):-fz/2,l;return l=n<0?(a>0?2*fz:fz)-c:i<0?(a>0?2*fz:-3*fz)+c:(a>0?0:fz)+c,2*s*Math.cos(l/3)-i},mz=(e,t,n,r)=>((t*e+3*n)*e+r)*e;function hz(e,t,n,r){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw Error(`bezier x values must be in [0, 1] range`);if(e===t&&n===r)return lz;let i=6*(3*e-3*n+1),a=6*(n-2*e),o=3*e,s=i*i,c=a*a,l=a/i,u=3*a*o/s-c*a/(s*i),d=2*o/i-c/s,f=d*d*d,p=3/i,m=3*t-3*r+1,h=r-2*t,g=3*t,_=i?pz:lz;return function(e){return e===0||e===1?e:mz(_(e,u,p,f,l),m,h,g)}}var gz=`cubic-bezier(0.66, 0, 0.34, 1)`,_z=hz(.66,0,.34,1),vz=0,yz=0,bz=0,xz=1e3,Sz,Cz,wz=0,Tz=0,Ez=0,Dz=typeof performance==`object`&&performance.now?performance:Date,Oz=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function kz(){return Tz||=(Oz(Az),Dz.now()+Ez)}function Az(){Tz=0}function jz(){this._call=this._time=this._next=null}jz.prototype=Mz.prototype={constructor:jz,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?kz():+n)+(t==null?0:+t),!this._next&&Cz!==this&&(Cz?Cz._next=this:Sz=this,Cz=this),this._call=e,this._time=n,Lz()},stop:function(){this._call&&(this._call=null,this._time=1/0,Lz())}};function Mz(e,t,n){var r=new jz;return r.restart(e,t,n),r}function Nz(){kz(),++vz;for(var e=Sz,t;e;)(t=Tz-e._time)>=0&&e._call.call(void 0,t),e=e._next;--vz}function Pz(){Tz=(wz=Dz.now())+Ez,vz=yz=0;try{Nz()}finally{vz=0,Iz(),Tz=0}}function Fz(){var e=Dz.now(),t=e-wz;t>xz&&(Ez-=t,wz=e)}function Iz(){for(var e,t=Sz,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Sz=n);Cz=e,Lz(r)}function Lz(e){vz||(yz&&=clearTimeout(yz),e-Tz>24?(e<1/0&&(yz=setTimeout(Pz,e-Dz.now()-Ez)),bz&&=clearInterval(bz)):(bz||=(wz=Dz.now(),setInterval(Fz,xz)),vz=1,Oz(Pz)))}function Rz(e,t,n){var r=new jz;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var zz=class{elapsed=0;transitionTimer=null;constructor(e,t,n){this.duration=e,this.easingFn=t,this.onTickCallback=n,this.resume()}get running(){return this.transitionTimer!==null}timerCallback(e){this.elapsed=Math.min(e,this.duration);let t=this.duration===0?1:this.elapsed/this.duration,n=this.easingFn(t);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;let e=kz()-this.elapsed;return this.transitionTimer=Mz(e=>this.timerCallback(e),0,e),this}stop(){return this.running&&(this.transitionTimer&&=(this.transitionTimer.stop(),null)),this}finish(){return this.stop(),Rz(()=>this.timerCallback(this.duration)),this}};function Bz(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{c.current=e},[e]),UC(()=>{r&&(o.current?.finish(),o.current=null,s.current=null,a.current=e)},[e,r]);let l=b.useCallback(r=>{let i=a.current,s=t(i,e);o.current=new zz(300,_z,e=>{let t=s(e);a.current=t,n(r,t)})},[n,t,e]);return[b.useCallback(t=>{if(t===null){o.current?.stop();return}let n=s.current;if(n===t){if(Bz(c.current,e)){o.current?.resume();return}o.current?.stop()}n&&o.current?.stop(),s.current=t,(o.current||!r)&&l(t)},[l,e,r]),a.current]}function Hz(e,{createInterpolator:t,transformProps:n,applyProps:r,skip:i,initialProps:a=e,ref:o}){let s=n??(e=>e),[c,l]=Vz(e,{initialProps:a,createInterpolator:t,applyProps:(e,t)=>r(e,s(t)),skip:i}),u=n(i?e:l);return J({},u,{ref:hE(c,o)})}function Uz(e){return Hz({d:e.d},{createInterpolator:(e,t)=>{let n=Ik(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute(`d`,t),transformProps:e=>e,skip:e.skipAnimation,ref:e.ref})}function Wz(e){return e.replace(` `,`_`)}function Gz(){return WR().use(GP)}function Kz(){return WR().use(aF)}function qz(e){return dP.getTypes().has(e)}function Jz(e){return qz(e.type)}var Yz=(e,t,n,r,i,a,o)=>{let s=r===`rotation`?i[t].rotationExtremumGetter:i[t].radiusExtremumGetter,c=o[t]?.series??{},[l,u]=s?.({series:c,axis:n,axisIndex:a,isDefaultAxis:a===0})??[1/0,-1/0],[d,f]=e;return[Math.min(l,d),Math.max(u,f)]},Xz=(e,t,n,r,i)=>{let a=Object.keys(n).filter(qz).reduce((a,o)=>Yz(a,o,e,t,n,r,i),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},Zz=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(qz).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function Qz(e,t){if(typeof e==`number`)return e;if(e===`100%`)return t;if(e.endsWith(`%`)){let n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith(`px`)){let t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw Error(QE(26,e))}var $z=.001;function eB(e,t,n){if(t===`rotation`){let e=[sO(n.startAngle,0),sO(n.endAngle,2*Math.PI)],t=e[1]-e[0],r=t>=Math.PI*2-$z;return n.scaleType===`point`&&r&&(e[1]-=t/n.data.length),{range:e,isFullCircle:r}}let r=Math.min(e.height,e.width)/2,{minRadius:i,maxRadius:a}=n;return{range:[i===void 0?0:Qz(i,r),a===void 0?r:Qz(a,r)],isFullCircle:!1}}var tB=.2,nB=.1;function rB({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:i}){if(n===void 0)return{axis:{},axisIds:[]};let a=Zz(i,r,t,n[0].id),o={};return n.forEach((n,s)=>{let c=n,{range:l,isFullCircle:u}=eB(e,i,c),[d,f]=Xz(c,i,r,s,t),p=!c.ignoreTooltip&&a.has(c.id),m=c.data??[];if(nP(c)){let e=c.categoryGapRatio??tB,t=c.barGapRatio??nB;if(o[c.id]=J({offset:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:p},c,{data:m,scale:yN(c.data,l).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?tI(J({values:c.data},c.colorMap)):nI(c.colorMap)),isFullCircle:u}),rI(c.data)){let e=iI(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}}if(rP(c)&&(o[c.id]=J({offset:0,triggerTooltip:p},c,{data:m,scale:bN(c.data,l),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?tI(J({values:c.data},c.colorMap)):nI(c.colorMap)),isFullCircle:u}),rI(c.data))){let e=iI(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}if(!iP(c))return;let h=c.scaleType??`linear`,g=c.domainLimit??`nice`,_=[c.min??d,c.max??f];if(typeof g==`function`){let{min:e,max:t}=g(d,f);_[0]=e,_[1]=t}let v=i===`rotation`?180/3:1,y=c.tickNumber??bP(c,_,SP(v*Math.abs(l[1]-l[0]))),b=CN(h,_,l),x=g===`nice`?b.nice(y):b,[S,C]=x.domain(),w=[c.min??S,c.max??C];o[c.id]=J({offset:0,triggerTooltip:p},c,{data:m,scaleType:h,scale:x.domain(w),tickNumber:y,colorScale:c.colorMap&&nI(c.colorMap),isFullCircle:u})}),{axis:o,axisIds:n.map(({id:e})=>e)}}var iB=e=>e.polarAxis,aB=Q(iB,e=>e?.rotation),oB=Q(iB,e=>e?.radius),sB=$(aB,GP,eP,BN,(e,t,n,r)=>rB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`rotation`})),cB=$(oB,GP,eP,BN,(e,t,n,r)=>rB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`radius`}));function lB(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}var uB=$(GP,lB),dB=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function fB(e){return(e%360+360)%360}var pB=2*Math.PI;function mB(e){return(e%pB+pB)%pB}function hB(e,t){let{scale:n,data:r,reverse:i,isFullCircle:a}=e,[o,s]=n.range(),c=mB(t-o),l=mB(s-o);if(!a&&c>l)return-1;if(!oI(n)){if(r===void 0)return-1;let e=o+mB(t-o);return vL(r,_L(n.invert(e)))}if(!r)return-1;let u;return n.bandwidth()===0?(u=Math.floor((c+n.step()/2)/n.step()),a&&(u%=r.length)):u=Math.floor(c/n.step()),u<0||u>=r.length?-1:i?r.length-1-u:u}function gB(e,t){let{scale:n,data:r,reverse:i}=e;if(!oI(n))return r===void 0?-1:vL(r,_L(n.invert(t)));if(!r)return-1;let a,o=t-Math.min(...n.range());return a=n.bandwidth()===0?Math.floor((o+n.step()/2)/n.step()):Math.floor(o/n.step()),a<0||a>=r.length?-1:i?r.length-1-a:a}var _B=(e,t)=>t,vB=(e,t)=>t;function yB(e,t,n,r){if(r===`rotation`){let r=t;return Array.isArray(n)?n.map(t=>hB(r.axis[t],e)):hB(r.axis[n],e)}let i=t;return Array.isArray(n)?n.map(t=>gB(i.axis[t],e)):gB(i.axis[n],e)}var bB=Q(EL,DL,uB,(e,t,n)=>e===null||t===null?null:dB(n)(e,t)),xB=Q(bB,sB,_B,(e,t,n)=>e===null?null:yB(e,t,n??t.axisIds[0],`rotation`)),SB=Q(bB,sB,vB,(e,t,n)=>e===null?null:yB(e,t,n??t.axisIds,`rotation`));Q(sB,xB,_B,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Q(sB,SB,vB,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var CB=yD({memoizeOptions:{resultEqualityCheck:gR}})(SB,sB,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),wB=Q(EL,DL,uB,(e,t,n)=>e===null||t===null?null:Math.sqrt((e-n.cx)**2+(t-n.cy)**2)),TB=Q(wB,cB,_B,(e,t,n)=>e===null?null:yB(e,t,n??t.axisIds[0],`radius`)),EB=Q(wB,cB,vB,(e,t,n)=>e===null?null:yB(e,t,n??t.axisIds,`radius`));Q(cB,TB,_B,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Q(cB,EB,vB,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var DB=yD({memoizeOptions:{resultEqualityCheck:gR}})(EB,cB,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),OB=Q(CB,DB,(e,t)=>e.length>0||t.length>0);function kB(){let{axis:e,axisIds:t}=WR().use(uL);return{xAxis:e,xAxisIds:t}}function AB(){let{axis:e,axisIds:t}=WR().use(dL);return{yAxis:e,yAxisIds:t}}function jB(e){let{axis:t,axisIds:n}=WR().use(uL);return t[e??n[0]]}function MB(e){let{axis:t,axisIds:n}=WR().use(dL);return t[e??n[0]]}function NB(){let{axis:e,axisIds:t}=WR().use(sB);return{rotationAxis:e,rotationAxisIds:t}}function PB(){let{axis:e,axisIds:t}=WR().use(cB);return{radiusAxis:e,radiusAxisIds:t}}function FB(e){let{axis:t,axisIds:n}=WR().use(sB);return t[e??n[0]]}function IB(e){let{axis:t,axisIds:n}=WR().use(cB);return t[e??n[0]]}function LB(){let{axis:e,axisIds:t}=WR().use(GI)??{axis:{},axisIds:[]};return{zAxis:e,zAxisIds:t}}function RB(){let{instance:e}=VR();return e.chartsLayerContainerRef}function zB(){return WR().use(eP)}var BB=Q(eP,(e,t)=>e[t]);$(eP,(e,t,n)=>{if(n===void 0)return e[t]?.seriesOrder?.map(n=>e[t]?.series[n])??[];if(!Array.isArray(n))return e[t]?.series?.[n];let r=[],i=[];for(let a of n){let n=e[t]?.series?.[a];n?r.push(n):i.push(a)}return r});var VB=e=>WR().use(BB,e);function HB(){return VB(`line`)}function UB(){return WR().use(tz)}function WB(e,t){return Object.keys(e).flatMap(n=>{let r=t[n].legendGetter;return r===void 0?[]:r(e[n])})}function GB(){return{items:WB(zB(),WR().use(BN))}}function KB(){let e=Kz();return b.useCallback(t=>`${e}-gradient-${t}`,[e])}function qB(){let e=Kz();return b.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function JB(e){return Hz({d:e.d},{createInterpolator:(e,t)=>{let n=Ik(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute(`d`,t),skip:e.skipAnimation,transformProps:e=>e,ref:e.ref})}function YB(e){return function(){return e}}var XB=Math.cos,ZB=Math.sin,QB=Math.sqrt,$B=Math.PI;$B/2;var eV=2*$B,tV=Math.PI,nV=2*tV,rV=1e-6,iV=nV-rV;function aV(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return aV;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;trV)if(!(Math.abs(u*s-c*l)>rV)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((tV-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>rV&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>rV||Math.abs(this._y1-l)>rV)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%nV+nV),d>iV?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>rV&&this._append`A${n},${n},0,${+(d>=tV)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};sV.prototype;function cV(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new sV(t)}Array.prototype.slice;function lV(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function uV(e){this._context=e}uV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function dV(e){return new uV(e)}function fV(e){return e[0]}function pV(e){return e[1]}function mV(e,t){var n=YB(!0),r=null,i=dV,a=null,o=cV(s);e=typeof e==`function`?e:e===void 0?fV:YB(e),t=typeof t==`function`?t:t===void 0?pV:YB(t);function s(s){var c,l=(s=lV(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return mV().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:YB(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:YB(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:YB(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:YB(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:YB(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:YB(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:YB(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}function gV(e,t){return te?1:t>=e?0:NaN}function _V(e){return e}function vV(){var e=_V,t=gV,n=null,r=YB(0),i=YB(eV),a=YB(0);function o(o){var s,c=(o=lV(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(eV,Math.max(-eV,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:YB(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:YB(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:YB(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:YB(+e),o):a},o}var yV=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function bV(e){return new yV(e,!0)}function xV(e){return new yV(e,!1)}var SV={draw(e,t){let n=QB(t/$B);e.moveTo(n,0),e.arc(0,0,n,0,eV)}},CV={draw(e,t){let n=QB(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},wV=QB(1/3),TV=wV*2,EV={draw(e,t){let n=QB(t/TV),r=n*wV;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},DV={draw(e,t){let n=QB(t),r=-n/2;e.rect(r,r,n,n)}},OV=.8908130915292852,kV=ZB($B/10)/ZB(7*$B/10),AV=ZB(eV/10)*kV,jV=-XB(eV/10)*kV,MV={draw(e,t){let n=QB(t*OV),r=AV*n,i=jV*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=eV*t/5,o=XB(a),s=ZB(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},NV=QB(3),PV={draw(e,t){let n=-QB(t/(NV*3));e.moveTo(0,n*2),e.lineTo(-NV*n,-n),e.lineTo(NV*n,-n),e.closePath()}},FV=-.5,IV=QB(3)/2,LV=1/QB(12),RV=(LV/2+1)*3,zV=[SV,CV,EV,DV,MV,PV,{draw(e,t){let n=QB(t/RV),r=n/2,i=n*LV,a=r,o=n*LV+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(FV*r-IV*i,IV*r+FV*i),e.lineTo(FV*a-IV*o,IV*a+FV*o),e.lineTo(FV*s-IV*c,IV*s+FV*c),e.lineTo(FV*r+IV*i,FV*i-IV*r),e.lineTo(FV*a+IV*o,FV*o-IV*a),e.lineTo(FV*s+IV*c,FV*c-IV*s),e.closePath()}}];function BV(e,t){let n=null,r=cV(i);e=typeof e==`function`?e:YB(e||SV),t=typeof t==`function`?t:YB(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:YB(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:YB(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function VV(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function HV(e,t){this._context=e,this._k=(1-t)/6}HV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:VV(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:VV(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new HV(e,t)}return n.tension=function(t){return e(+t)},n})(0);function UV(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function WV(e,t){this._context=e,this._alpha=t}WV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:UV(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var GV=(function e(t){function n(e){return t?new WV(e,t):new HV(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function KV(e){return e<0?-1:1}function qV(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(KV(a)+KV(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function JV(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function YV(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function XV(e){this._context=e}XV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:YV(this,this._t0,JV(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,YV(this,JV(this,n=qV(this,e,t)),n);break;default:YV(this,this._t0,n=qV(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function ZV(e){this._context=new QV(e)}(ZV.prototype=Object.create(XV.prototype)).point=function(e,t){XV.prototype.point.call(this,t,e)};function QV(e){this._context=e}QV.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function $V(e){return new XV(e)}function eH(e){return new ZV(e)}function tH(e){this._context=e}tH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=nH(e),i=nH(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function aH(e){return new iH(e,.5)}function oH(e){return new iH(e,0)}function sH(e){return new iH(e,1)}function cH(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function uH(e,t){return e[t]}function dH(e){let t=[];return t.key=e,t}function fH(){var e=YB([]),t=lH,n=cH,r=uH;function i(i){var a=Array.from(e.apply(this,arguments),dH),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;ra&&(a=i,n=t);return n}function vH(e){var t=e.map(yH);return lH(e).sort(function(e,n){return t[e]-t[n]})}function yH(e){for(var t=0,n=-1,r=e.length,i;++n({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:J({},e)}}}}),EH={loading:`Loading data…`,noData:`No data to display`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,toolbarExport:`Export`,toolbarExportPrint:`Print`,toolbarExportImage:e=>`Export as ${wH[e]??e}`,chartTypeBar:`Bar`,chartTypeColumn:`Column`,chartTypeLine:`Line`,chartTypeArea:`Area`,chartTypePie:`Pie`,chartPaletteLabel:`Color palette`,chartPaletteNameRainbowSurge:`Rainbow Surge`,chartPaletteNameBlueberryTwilight:`Blueberry Twilight`,chartPaletteNameMangoFusion:`Mango Fusion`,chartPaletteNameCheerfulFiesta:`Cheerful Fiesta`,chartPaletteNameStrawberrySky:`Strawberry Sky`,chartPaletteNameBlue:`Blue`,chartPaletteNameGreen:`Green`,chartPaletteNamePurple:`Purple`,chartPaletteNameRed:`Red`,chartPaletteNameOrange:`Orange`,chartPaletteNameYellow:`Yellow`,chartPaletteNameCyan:`Cyan`,chartPaletteNamePink:`Pink`,chartConfigurationSectionChart:`Chart`,chartConfigurationSectionColumns:`Columns`,chartConfigurationSectionBars:`Bars`,chartConfigurationSectionAxes:`Axes`,chartConfigurationGrid:`Grid`,chartConfigurationBorderRadius:`Border radius`,chartConfigurationCategoryGapRatio:`Category gap ratio`,chartConfigurationBarGapRatio:`Series gap ratio`,chartConfigurationStacked:`Stacked`,chartConfigurationShowToolbar:`Show toolbar`,chartConfigurationSkipAnimation:`Skip animation`,chartConfigurationInnerRadius:`Inner radius`,chartConfigurationOuterRadius:`Outer radius`,chartConfigurationColors:`Colors`,chartConfigurationHideLegend:`Hide legend`,chartConfigurationShowMark:`Show mark`,chartConfigurationHeight:`Height`,chartConfigurationWidth:`Width`,chartConfigurationSeriesGap:`Series gap`,chartConfigurationTickPlacement:`Tick placement`,chartConfigurationTickLabelPlacement:`Tick label placement`,chartConfigurationCategoriesAxisLabel:`Categories axis label`,chartConfigurationSeriesAxisLabel:`Series axis label`,chartConfigurationXAxisPosition:`X-axis position`,chartConfigurationYAxisPosition:`Y-axis position`,chartConfigurationSeriesAxisReverse:`Reverse series axis`,chartConfigurationTooltipPlacement:`Placement`,chartConfigurationTooltipTrigger:`Trigger`,chartConfigurationLegendPosition:`Position`,chartConfigurationLegendDirection:`Direction`,chartConfigurationBarLabels:`Bar labels`,chartConfigurationColumnLabels:`Column labels`,chartConfigurationInterpolation:`Interpolation`,chartConfigurationSectionTooltip:`Tooltip`,chartConfigurationSectionLegend:`Legend`,chartConfigurationSectionLines:`Lines`,chartConfigurationSectionAreas:`Areas`,chartConfigurationSectionArcs:`Arcs`,chartConfigurationPaddingAngle:`Padding angle`,chartConfigurationCornerRadius:`Corner radius`,chartConfigurationArcLabels:`Arc labels`,chartConfigurationStartAngle:`Start angle`,chartConfigurationEndAngle:`End angle`,chartConfigurationPieTooltipTrigger:`Trigger`,chartConfigurationPieLegendPosition:`Position`,chartConfigurationPieLegendDirection:`Direction`,chartConfigurationOptionNone:`None`,chartConfigurationOptionValue:`Value`,chartConfigurationOptionAuto:`Auto`,chartConfigurationOptionTop:`Top`,chartConfigurationOptionTopLeft:`Top Left`,chartConfigurationOptionTopRight:`Top Right`,chartConfigurationOptionBottom:`Bottom`,chartConfigurationOptionBottomLeft:`Bottom Left`,chartConfigurationOptionBottomRight:`Bottom Right`,chartConfigurationOptionLeft:`Left`,chartConfigurationOptionRight:`Right`,chartConfigurationOptionAxis:`Axis`,chartConfigurationOptionItem:`Item`,chartConfigurationOptionHorizontal:`Horizontal`,chartConfigurationOptionVertical:`Vertical`,chartConfigurationOptionBoth:`Both`,chartConfigurationOptionStart:`Start`,chartConfigurationOptionMiddle:`Middle`,chartConfigurationOptionEnd:`End`,chartConfigurationOptionExtremities:`Extremities`,chartConfigurationOptionTick:`Tick`,chartConfigurationOptionMonotoneX:`Monotone X`,chartConfigurationOptionMonotoneY:`Monotone Y`,chartConfigurationOptionCatmullRom:`Catmull-Rom`,chartConfigurationOptionLinear:`Linear`,chartConfigurationOptionNatural:`Natural`,chartConfigurationOptionStep:`Step`,chartConfigurationOptionStepBefore:`Step Before`,chartConfigurationOptionStepAfter:`Step After`,chartConfigurationOptionBumpX:`Bump X`,chartConfigurationOptionBumpY:`Bump Y`,open:`Open`,high:`High`,low:`Low`,close:`Close`,a11yNoValue:`no value`,a11yConnector:`; `,barDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},lineDescription:function({y:e,formattedXValue:t,formattedYValue:n,seriesLabel:r}){return[t,r,e===null?this.a11yNoValue:n].filter(Boolean).join(this.a11yConnector)},scatterDescription:function({formattedXValue:e,formattedYValue:t,seriesLabel:n}){return[n,e,t].filter(Boolean).join(this.a11yConnector)},pieDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},radarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},funnelDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},heatmapDescription:function({value:e,formattedValue:t,formattedXValue:n,formattedYValue:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},sankeyNodeDescription:function({formattedValue:e,nodeLabel:t}){return[t,e].filter(Boolean).join(this.a11yConnector)},sankeyLinkDescription:function({formattedValue:e,sourceLabel:t,targetLabel:n}){return[t&&n?`${t} to ${n}`:t??n,e].filter(Boolean).join(this.a11yConnector)},rangeBarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},ohlcDescription:function({open:e,high:t,low:n,close:r,formattedOpen:i,formattedHigh:a,formattedLow:o,formattedClose:s,formattedDate:c,seriesLabel:l}){return[c,l,e!==null&&t!==null&&n!==null&&r!==null?`Open: ${i??e}, High: ${a??t}, Low: ${o??n}, Close: ${s??r}`:this.a11yNoValue].filter(Boolean).join(this.a11yConnector)}},DH=EH;TH(EH);var OH=[`localeText`],kH=b.createContext(null);function AH(e){let{localeText:t}=e,n=WE(e,OH),{localeText:r}=b.useContext(kH)??{localeText:void 0},{children:i,localeText:a}=IE({props:n,name:`MuiChartsLocalizationProvider`}),o=b.useMemo(()=>J({},DH,a,r,t),[a,r,t]),s=b.useMemo(()=>({localeText:o}),[o]);return(0,Y.jsx)(kH.Provider,{value:s,children:i})}var jH=()=>{let e=b.useContext(kH);if(e===null)throw Error(QE(12));return e};function MH(){return WR().use(GL)}function NH(e){return DC(`MuiChartsAxis`,e)}var PH=OC(`MuiChartsAxis`,[`root`,`line`,`tickContainer`,`tick`,`tickLabel`,`label`,`directionX`,`directionY`,`top`,`bottom`,`left`,`right`]),FH=e=>{let{classes:t,position:n}=e;return eT({root:[`root`,`directionX`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},NH,t)},IH={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function LH(e){return typeof e==`number`&&!Number.isFinite(e)}function RH(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function zH(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function BH(e,t){return Math.abs(t.getTime()-e.getTime())/864e5}function VH(e,t){return Math.abs(t.getTime()-e.getTime())/36e5}var HH={years:{getTickNumber:RH,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(zH(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3==0,format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},months:{getTickNumber:zH,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},biweekly:{getTickNumber:(e,t)=>BH(e,t)/14,isTick:(e,t)=>(t.getDay()7)&&Math.floor(t.getDate()/7)%2==1,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},weeks:{getTickNumber:(e,t)=>BH(e,t)/7,isTick:(e,t)=>t.getDay()=7,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},days:{getTickNumber:BH,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},hours:{getTickNumber:VH,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat(`default`,{hour:`2-digit`,minute:`2-digit`}).format}},UH={start:0,extremities:0,end:1,middle:.5};function WH(e,t,n){return e(t)-(e.step()-e.bandwidth())/2+UH[n]*e.step()}function GH(e,t,n){let r=Math.abs(t[1]-t[0]),i=Math.ceil(e.length/(r/n));return Number.isNaN(i)||i<=1?e:e.filter((e,t)=>t%i===0)}function KH(e,t,n,r,i){if(n.length===0)return[];let a=r.range()[0]>r.range()[1],o=e.findIndex(e=>i(WH(r,e,a?`start`:`end`))),s=e.findLastIndex(e=>i(WH(r,e,a?`end`:`start`))),c=e[0],l=e[e.length-1];if(!(c instanceof Date)||!(l instanceof Date))return[];let u=0;for(let e=0;et||t/rtypeof e==`string`?HH[e]:e),t,c).map(({index:n,formatter:r})=>{let i=e[n];return{value:i,formattedValue:r(i),offset:WH(t,i,`middle`),labelOffset:0}})}let u=a??`extremities`;if(oI(t)){let e=t.domain(),a=o??`middle`,l=e;if(typeof i==`object`&&i?l=i:(typeof i==`function`&&(l=l.filter(i)),s!==void 0&&s>0&&(l=GH(l,t.range(),s))),l.length===0)return[];if(t.bandwidth()>0){let i=t.range()[0]>t.range()[1],o=l.findIndex(e=>c(WH(t,e,i?`start`:`end`))),s=l.findLastIndex(e=>c(WH(t,e,i?`end`:`start`)));return[...l.slice(o,s+1).map(e=>{let i=`${e}`;return{value:e,formattedValue:r?.(e,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:WH(t,e,u),labelOffset:a===`tick`?0:t.step()*(UH[a]-UH[u])}}),...u===`extremities`&&s===e.length-1&&c(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return l.map(e=>{let i=`${e}`;return{value:e,formattedValue:r?.(e,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:t(e),labelOffset:0}})}if(t.domain().some(LH))return[];let d=o,f=typeof i==`object`?i:JH(t,n),p=[];for(let e=0;e!0,XH=e=>t=>Math.abs(e.range()[0]-t)e>=1;case`x`:return n.isXInside;case`y`:return n.isYInside;default:return YH}}function QH(e){let{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i,tickPlacement:a=`extremities`,tickLabelPlacement:o,tickSpacing:s,direction:c,ordinalTimeTicks:l}=e,{instance:u}=VR();return b.useMemo(()=>qH({scale:t,tickNumber:n,tickPlacement:a,tickInterval:i,tickLabelPlacement:o,tickSpacing:s,valueFormatter:r,isInside:ZH(t,c,u),ordinalTimeTicks:l}),[t,n,a,i,o,s,r,c,u,l])}var $H=OC(`MuiAppearingMask`,[`animate`]),eU=Z(`rect`,{slot:`internal`,shouldForwardProp:void 0})({animationName:`animate-width`,animationTimingFunction:gz,animationDuration:`0s`,[`&.${$H.animate}`]:{animationDuration:`300ms`},"@keyframes animate-width":{from:{width:0}}});function tU(e){let t=Gz(),n=Wz(`${Kz()}-${e.seriesId}`);return(0,Y.jsxs)(b.Fragment,{children:[(0,Y.jsx)(`clipPath`,{id:n,children:(0,Y.jsx)(eU,{className:e.skipAnimation?``:$H.animate,x:0,y:0,width:t.left+t.width+t.right,height:t.top+t.height+t.bottom})}),(0,Y.jsx)(`g`,{clipPath:`url(#${n})`,children:e.children})]})}var nU=[`skipAnimation`,`ownerState`];function rU(e){let{skipAnimation:t,ownerState:n}=e,r=WE(e,nU),i=Uz(e);return(0,Y.jsx)(tU,{skipAnimation:t,seriesId:`${n.seriesId}-area-clip`,children:(0,Y.jsx)(`path`,J({fill:n.gradientId?`url(#${n.gradientId})`:n.color,filter:n.isHighlighted?`brightness(140%)`:n.gradientId?void 0:`brightness(120%)`,opacity:n.isFaded?.3:1,stroke:`none`,"data-series":n.seriesId,"data-highlighted":n.isHighlighted||void 0,"data-faded":n.isFaded||void 0},r,i))})}function iU(e){return DC(`MuiLineChart`,e)}var aU=OC(`MuiLineChart`,[`area`,`line`,`mark`,`markAnimate`,`highlight`,`areaPlot`,`linePlot`,`markPlot`]),oU=e=>{let{skipAnimation:t,classes:n}=e??{};return eT({area:[`area`],line:[`line`],mark:[`mark`,!t&&`markAnimate`],highlight:[`highlight`],areaPlot:[`areaPlot`],linePlot:[`linePlot`],markPlot:[`markPlot`]},iU,n)},sU=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`];function cU(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s}=e,c=WE(e,sU),l=WR().use(tF,`enablePositionBasedPointerInteraction`),u=b.useMemo(()=>({type:`line`,seriesId:t}),[t]),d=UR(u),f=cz(u),p=f===`highlighted`,m=f===`faded`,h={seriesId:t,classes:n,color:r,gradientId:i,isFaded:m,isHighlighted:p},g=oU(h),_=a?.area??rU,v=ZE({elementType:_,externalSlotProps:o?.area,additionalProps:J({},l?{}:d,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":p||void 0,"data-faded":m||void 0,"data-series-id":t,"data-series":t}),className:g.area,ownerState:h});return(0,Y.jsx)(_,J({},c,v))}function lU(e){let t=WR().use(BD);return e||t}function uU(){return WR().use(YI)}function dU(e){switch(e){case`catmullRom`:return GV.alpha(.5);case`linear`:return dV;case`monotoneX`:return $V;case`monotoneY`:return eH;case`natural`:return rH;case`step`:return aH;case`stepBefore`:return oH;case`stepAfter`:return sH;case`bumpY`:return xV;case`bumpX`:return bV;default:return $V}}function fU(e,t){let n=HB(),r=kB().xAxisIds[0],i=AB().yAxisIds[0],a=KB();return b.useMemo(()=>{if(n===void 0)return[];let{series:o,stackingGroups:s}=n,c=[];for(let n of s){let s=n.ids;for(let n=s.length-1;n>=0;--n){let l=s[n],{xAxisId:u=r,yAxisId:d=i,visibleStackedData:f,stackedData:p,data:m,connectNulls:h,baseline:g,curve:_,strictStepCurve:v,area:y}=o[l];if(!y||!(u in e)||!(d in t))continue;let b=e[u].scale,x=_R(b),S=t[d].scale,C=e[u].data,w=t[d].colorScale&&a(d)||e[u].colorScale&&a(u)||void 0,T=_?.includes(`step`)&&!v&&oI(b),E=C?.flatMap((e,t)=>{let n=m[t]==null;if(T){let r=[{x:e,y:f[t],nullData:n,isExtension:!1}];return!n&&(t===0||m[t-1]==null)&&r.unshift({x:(b(e)??0)-(b.step()-b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),!n&&(t===m.length-1||m[t+1]==null)&&r.push({x:(b(e)??0)+(b.step()+b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),r}return{x:e,y:f[t],nullData:n}})??[],D=h?E.filter(e=>!e.nullData):E,O=hV().x(e=>e.isExtension?e.x:x(e.x)).defined(e=>h||!e.nullData||!!e.isExtension).y0(e=>{if(typeof g==`number`)return S(g);if(g===`max`)return S.range()[1];if(g===`min`)return S.range()[0];let t=e.y&&S(e.y[0]);return Number.isNaN(t)?S.range()[0]:t}).y1(e=>e.y&&S(e.y[1])).curve(dU(_))(D)||``;c.push({area:o[l].area,color:o[l].color,gradientId:w,d:O,seriesId:l})}}return c},[n,r,i,e,t,a])}function pU(e){let t=RB(),{xAxis:n,xAxisIds:r}=kB(),i=HB(),a=r[0];return b.useMemo(()=>{if(e)return(r,o)=>{let s=t.current,c=i?.series[o]?.xAxisId??a,l=c===void 0?void 0:n[c];if(s===null||l===void 0)return;let u=yL(l,xL(s,r).x);u!==-1&&e(r,{type:`line`,seriesId:o,dataIndex:u})}},[e,t,i,a,n])}var mU=[`slots`,`slotProps`,`onItemClick`,`skipAnimation`,`className`],hU=Z(`g`,{name:`MuiAreaPlot`,slot:`Root`})({[`& .${aU.area}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:gz}}),gU=()=>{let{xAxis:e}=kB(),{yAxis:t}=AB();return fU(e,t)};function _U(e){let{slots:t,slotProps:n,onItemClick:r,skipAnimation:i,className:a}=e,o=WE(e,mU),s=lU(uU()||i),c=gU(),l=oU(),u=pU(r);return(0,Y.jsx)(hU,J({className:wC(l.areaPlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,area:a,gradientId:o})=>!!a&&(0,Y.jsx)(cU,{seriesId:r,d:e,color:i,gradientId:o,slots:t,slotProps:n,onClick:u&&(e=>u(e,r)),skipAnimation:s},r))}))}var vU=[`skipAnimation`,`ownerState`],yU=b.forwardRef(function(e,t){let{skipAnimation:n,ownerState:r}=e,i=WE(e,vU),a=JB({d:e.d,skipAnimation:n,ref:t}),o=r.isFaded?.3:1;return(0,Y.jsx)(tU,{skipAnimation:n,seriesId:`${r.seriesId}-line-clip`,children:(0,Y.jsx)(`path`,J({stroke:r.gradientId?`url(#${r.gradientId})`:r.color,strokeWidth:2,strokeLinejoin:`round`,fill:`none`,filter:r.isHighlighted?`brightness(120%)`:void 0,opacity:r.hidden?0:o,"data-series":r.seriesId,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},i,a))})}),bU=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`,`hidden`];function xU(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s,hidden:c}=e,l=WE(e,bU),u=WR().use(tF,`enablePositionBasedPointerInteraction`),d=b.useMemo(()=>({type:`line`,seriesId:t}),[t]),f=UR(d),p=cz(d),m=p===`highlighted`,h=p===`faded`,g={seriesId:t,classes:n,color:r,gradientId:i,isFaded:h,isHighlighted:m,hidden:c},_=oU(),v=a?.line??yU,y=ZE({elementType:v,externalSlotProps:o?.line,additionalProps:J({},u?{}:f,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":m||void 0,"data-faded":h||void 0,"data-series-id":t,"data-series":t}),className:_.line,ownerState:g});return(0,Y.jsx)(v,J({},l,y))}function SU(e,t,n){let r=HB(),i=kB().xAxisIds[0],a=AB().yAxisIds[0],o=KB(),s=Gz(),c=WR(),l=c.use(kR),u=c.use(AR),d=c.use(XI),f=c.use(QI),p=c.use(BN).line?.sampler,m=n?.zoomMap??d,h=n?.availableSize??s.width,g=l?.methods.line,_=g!=null&&g!==`none`,v=b.useRef(_),y=_||v.current;return b.useEffect(()=>{v.current=_},[_]),b.useMemo(()=>{if(r===void 0)return[];let{series:n,stackingGroups:s}=r,c=[];for(let r of s){let s=r.ids;for(let r of s){let{xAxisId:s=i,yAxisId:l=a,stackedData:d,visibleStackedData:v,data:b,connectNulls:x,curve:S,strictStepCurve:C}=n[r];if(!(s in e)||!(l in t))continue;let w=e[s].scale,T=_R(w),E=t[l].scale,D=e[s].data,O=t[l].colorScale&&o(l)||e[s].colorScale&&o(s)||void 0,k=S?.includes(`step`)&&!C&&oI(w),ee=u[r],te=m?.get(s)??(ee?OR(s):void 0),A=null;_&&ee&&te&&!k&&D&&(A=p?.sample?.({built:ee,zoom:te,availableSize:h,minSpan:f[s]?.minSpan??0,algorithm:g,getValues:()=>Float64Array.from(v,e=>e[1])})??null);let ne;ne=A?A.flatMap(e=>Array.from(e.indices,e=>({x:D[e],y:v[e],nullData:b[e]==null}))):D?.flatMap((e,t)=>{let n=b[t]==null;if(k){let r=[{x:e,y:v[t],nullData:n,isExtension:!1}];return!n&&(t===0||b[t-1]==null)&&r.unshift({x:(w(e)??0)-(w.step()-w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),!n&&(t===b.length-1||b[t+1]==null)&&r.push({x:(w(e)??0)+(w.step()+w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),r}return{x:e,y:v[t],nullData:n}})??[];let re=x?ne.filter(e=>!e.nullData):ne,ie=n[r].hidden,j=mV().x(e=>e.isExtension?e.x:T(e.x)).defined(e=>x||!e.nullData||!!e.isExtension).y(e=>E(ie?e.y[0]:e.y[1])).curve(dU(S))(re)||``;c.push({color:n[r].color,gradientId:O,d:j,seriesId:r,hidden:n[r].hidden,isSampled:y})}}return c},[r,i,a,e,t,o,_,g,u,m,h,f,p,y])}var CU=[`slots`,`slotProps`,`skipAnimation`,`onItemClick`,`className`],wU=Z(`g`,{name:`MuiLinePlot`,slot:`Root`})({[`& .${aU.line}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:gz}}),TU=()=>{let{xAxis:e}=kB(),{yAxis:t}=AB();return SU(e,t)};function EU(e){let{slots:t,slotProps:n,skipAnimation:r,onItemClick:i,className:a}=e,o=WE(e,CU),s=lU(uU()||r),c=TU(),l=oU(),u=pU(i);return(0,Y.jsx)(wU,J({className:wC(l.linePlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,gradientId:a,hidden:o,isSampled:c})=>(0,Y.jsx)(xU,{seriesId:r,d:e,color:i,gradientId:a,hidden:o,skipAnimation:s||c,slots:t,slotProps:n,onClick:u&&(e=>u(e,r))},r))}))}var DU=[`x`,`y`,`seriesId`,`classes`,`color`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`shape`,`hidden`],OU=Z(`circle`,{slot:`internal`,shouldForwardProp:void 0})({[`&.${aU.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`cx, cy, opacity`,transitionTimingFunction:gz}});function kU(e){let{x:t,y:n,seriesId:r,classes:i,color:a,dataIndex:o,onClick:s,skipAnimation:c,isFaded:l=!1,isHighlighted:u=!1,hidden:d}=e,f=WE(e,DU),p=WR().use(tF,`enablePositionBasedPointerInteraction`),m=UR({type:`line`,seriesId:r,dataIndex:o}),h=bE(),g=oU({skipAnimation:c,classes:i});return(0,Y.jsx)(OU,J({},f,p?{}:m,{cx:t,cy:n,r:5,fill:(h.vars||h).palette.background.paper,stroke:a,strokeWidth:2,className:g.mark,onClick:s,cursor:s?`pointer`:`unset`,pointerEvents:d?`none`:void 0,"data-highlighted":u||void 0,"data-faded":l||void 0,"data-series-id":r,"data-series":r,"data-index":o,opacity:+!d}))}function AU(e){switch(e){case`circle`:return 0;case`cross`:return 1;case`diamond`:return 2;case`square`:return 3;case`star`:return 4;case`triangle`:return 5;case`wye`:return 6;default:return 0}}var jU=[`x`,`y`,`seriesId`,`classes`,`color`,`shape`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`hidden`,`style`],MU=Z(`path`,{name:`MuiMarkElement`,slot:`Root`})(({theme:e})=>({fill:(e.vars||e).palette.background.paper,[`&.${aU.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`transform, transform-origin, opacity`,transitionTimingFunction:gz}}));function NU(e){let{x:t,y:n,seriesId:r,classes:i,color:a,shape:o,dataIndex:s,onClick:c,skipAnimation:l,isFaded:u=!1,isHighlighted:d=!1,hidden:f,style:p}=e,m=WE(e,jU),h=WR().use(tF,`enablePositionBasedPointerInteraction`),g=UR({type:`line`,seriesId:r,dataIndex:s}),_={seriesId:r,classes:i,isHighlighted:d,isFaded:u,skipAnimation:l},v=oU({skipAnimation:l,classes:i});return(0,Y.jsx)(MU,J({},m,h?{}:g,{style:J({},p,{transform:`translate(${t}px, ${n}px)`,transformOrigin:`${t}px ${n}px`}),ownerState:_,className:v.mark,d:BV(zV[AU(o)])(),onClick:c,cursor:c?`pointer`:`unset`,pointerEvents:f?`none`:void 0,"data-highlighted":d||void 0,"data-faded":u||void 0,"data-series-id":r,"data-series":r,"data-index":s,opacity:+!f,strokeWidth:2,stroke:a}))}function PU(e){return e.colorGetter?e.colorGetter:()=>e.color}function FU(e){let{series:t,valueColorScale:n,categoryColorScale:r,categoryValues:i}=e,a=PU(t);return n?e=>{if(e===void 0)return t.color;let r=t.data[e],i=n(r);return typeof i==`string`?i:a({value:r,dataIndex:e})}:r&&i?e=>{if(e===void 0)return t.color;let n=i[e],o={value:t.data[e],dataIndex:e},s=r(n);return typeof s==`string`?s:a(o)}:e=>{if(e===void 0)return t.color;let n=t.data[e];return a({value:n,dataIndex:e})}}var IU=(e,t,n)=>FU({series:e,valueColorScale:n?.colorScale,categoryColorScale:t?.colorScale,categoryValues:t?.data});function LU(e,t){let n=HB(),r=kB().xAxisIds[0],i=AB().yAxisIds[0],a=Kz(),{instance:o}=VR();return b.useMemo(()=>{if(n===void 0)return[];let{series:s,stackingGroups:c}=n,l=[];for(let n of c){let c=n.ids;for(let n of c){let{xAxisId:c=r,yAxisId:u=i,visibleStackedData:d,data:f,showMark:p,shape:m=`circle`,hidden:h}=s[n];if(!p||p===`start`||p===`end`||!(c in e)||!(u in t))continue;let g=_R(e[c].scale),_=t[u].scale,v=e[c].data,y=Wz(`${a}-${n}-line-clip`),b=IU(s[n],e[c],t[u]),x=[];if(v)for(let e=0;e{let e={};for(let{dataIndex:t,axisId:n}of f)e[n]===void 0?e[n]=new Set([t]):e[n].add(t);return e},[f]),m=LU(c,l),h=oU();return(0,Y.jsx)(zU,J({className:wC(h.markPlot,a)},o,{children:m.map(({seriesId:e,clipId:r,shape:a,xAxisId:o,marks:c,hidden:l})=>{let u=t?.mark??(a===`circle`?kU:NU),f=d({type:`line`,seriesId:e}),m=f===`highlighted`,h=f===`faded`;return(0,Y.jsx)(`g`,{clipPath:`url(#${r})`,"data-series":e,children:c.map(({x:t,y:r,index:c,color:d})=>(0,Y.jsx)(u,J({seriesId:e,dataIndex:c,shape:a,color:d,x:t,y:r,skipAnimation:s,onClick:i&&(t=>i(t,{type:`line`,seriesId:e,dataIndex:c})),isHighlighted:p[o]?.has(c)||m,isFaded:h,hidden:l},n?.mark),`${e}-${c}`))},e)})}))}var VU=()=>()=>{},HU=()=>!0,UU=()=>!1;function WU(){return b.useSyncExternalStore(VU,HU,UU)}function GU(e=!1){let[t,n]=b.useState(!1);return UC(()=>{e||n(!0)},[e]),b.useEffect(()=>{e&&n(!0)},[e]),t}function KU(e){return Math.PI/180*e}var qU=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function JU(e,t){return e.slice(0,t)}function YU(e,t){let n=qU.segment(e),r=``,i=0;for(let e of n)if(r+=e.segment,i+=1,i>=t)break;return r}var XU=qU?YU:JU,ZU=`…`;function QU(e,t){let{width:n,height:r,measureText:i}=t,a=KU(t.angle),o=i(e),s=Math.abs(o.width*Math.cos(a))+Math.abs(o.height*Math.sin(a)),c=Math.abs(o.width*Math.sin(a))+Math.abs(o.height*Math.cos(a));return s<=n&&c<=r}function $U(e,t){if(t(e))return e;let n=e,r=1,i=1/2,a=dO(e),o=a,s=a,c=null;do{if(s=o,o=Math.floor(a*i),o===0)break;n=XU(e,o).trim();let l=t(n+ZU);r+=1,l?(c=n,i+=1/2**r):i-=1/2**r}while(Math.abs(o-s)!==1);return c?c+ZU:``}function eW(e,t,n,r,i){let a=new Map,o=fB(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>90&&o<270&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.left+t.width+t.right-r.offset-r.labelOffset)*c);a.set(r,$U(r.formattedValue.toString(),t=>QU(t,{width:e,height:n,angle:o,measureText:e=>nO(e,i)})))}return a}var tW=5;function nW(e,t,n=0){let r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r85)return t;let i=sO(r);return in(e.value,t)));let s=0,c=i?-1:1,l=e.filter(e=>{let{offset:t,labelOffset:n,formattedValue:r}=e;return r!==``&&o(t+n)}),u=aW(l,t);return new Set(l.filter((e,n)=>{let{offset:i,labelOffset:o}=e,l=i+o;if(n>0&&c*l0&&c*mn.add(e));return rO(n,t)}function oW({style:e,needsComputation:t,text:n}){return n.split(` -`).map(n=>J({text:n},t?nO(n,e):{width:0,height:0}))}var sW=[`x`,`y`,`style`,`text`,`ownerState`],cW=[`angle`,`textAnchor`,`dominantBaseline`];function lW(e){let{x:t,y:n,style:r,text:i}=e,a=WE(e,sW),o=r??{},{angle:s,textAnchor:c,dominantBaseline:l}=o,u=WE(o,cW),d=WU(),f=b.useMemo(()=>oW({style:u,needsComputation:d&&i.includes(` -`),text:i}),[u,i,d]),p;switch(l){case`hanging`:case`text-before-edge`:p=0;break;case`central`:p=(f.length-1)/2*-f[0].height;break;default:p=(f.length-1)*-f[0].height}return(0,Y.jsx)(`text`,J({},a,{transform:s?`rotate(${s}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:c,dominantBaseline:l,style:u,children:f.map((e,n)=>(0,Y.jsx)(`tspan`,{x:t,dy:`${n===0?p:f[0].height}px`,dominantBaseline:l,children:e.text},n))}))}function uW(e){let t=fB(e);return t<=30||t>=330||t<=210&&t>=150?`middle`:t<=180?`end`:`start`}function dW(e){let t=fB(e);return t<=30||t>=330?`hanging`:t<=210&&t>=150?`auto`:`central`}function fW(e){switch(e){case`start`:return`end`;case`end`:return`start`;default:return e}}var pW=[`scale`,`tickNumber`,`reverse`];function mW(e){let{xAxis:t,xAxisIds:n}=kB(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a,reverse:o}=r,s=WE(r,pW),c=IE({props:J({},s,e),name:`MuiChartsXAxis`}),l=J({},IH,c),{position:u,tickLabelStyle:d,slots:f,slotProps:p}=l,m=bE(),h=yw(),g=FH(l),_=u===`bottom`?1:-1,v=f?.axisTick??`line`,y=f?.axisTickLabel??lW,b=uW((u===`bottom`?0:180)-(d?.angle??0)),x=dW((u===`bottom`?0:180)-(d?.angle??0));return{xScale:i,defaultizedProps:l,tickNumber:a,positionSign:_,classes:g,Tick:v,TickLabel:y,axisTickLabelProps:ZE({elementType:y,externalSlotProps:p?.axisTickLabel,additionalProps:{style:J({},m.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:h?fW(b):b,dominantBaseline:x},d)},className:g.tickLabel,ownerState:{}}),reverse:o}}function hW(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{xScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u,reverse:d}=mW(e),f=yw(),p=GU(),{disableTicks:m,tickSize:h,valueFormatter:g,slotProps:_,tickInterval:v,tickLabelInterval:y,tickPlacement:x,tickLabelPlacement:S,tickLabelMinGap:C,tickSpacing:w,height:T}=i,E=Gz(),{instance:D}=VR(),O=WU(),k=m?4:h,ee=QH({scale:r,tickNumber:a,valueFormatter:g,tickInterval:v,tickPlacement:x,tickLabelPlacement:S,tickSpacing:w,direction:`x`,ordinalTimeTicks:n}),te=rW(ee,{tickLabelStyle:u.style,tickLabelInterval:y,tickLabelMinGap:C,reverse:d,isMounted:p,isXInside:D.isXInside}),A=Math.max(0,T-(t>0?t+4:0)-k-3),ne=O?eW(te,E,A,f,u.style):new Map(Array.from(te).map(e=>[e,e.formattedValue]));return(0,Y.jsx)(b.Fragment,{children:ee.map((e,t)=>{let{offset:n,labelOffset:r}=e,i=r??0,a=o*(k+3),d=D.isXInside(n),f=ne.get(e),p=te.has(e);return(0,Y.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:s.tickContainer,children:[!m&&d&&(0,Y.jsx)(c,J({y2:o*k,className:s.tick},_?.axisTick)),f!==void 0&&p&&(0,Y.jsx)(l,J({x:i,y:a},u,{text:f}))]},t)})})}var gW={start:0,extremities:0,end:1,middle:.5,tick:0};function _W(e){let{scale:t,tickInterval:n,tickLabelPlacement:r=`middle`,tickPlacement:i=`extremities`,groups:a}=e;return b.useMemo(()=>{let e=t.domain(),o=typeof n==`function`&&e.filter(n)||typeof n==`object`&&n||e;if(t.bandwidth()>0){let e=vW(o,a,i,r,t);return e[0]&&(e[0].ignoreTick=!0),[{formattedValue:void 0,offset:t.range()[0],labelOffset:0,groupIndex:a.length-1},...e,{formattedValue:void 0,offset:t.range()[1],labelOffset:0,groupIndex:a.length-1}]}return vW(o,a,i,r,t)},[t,n,a,i,r])}function vW(e,t,n,r,i){let a=[],o=new Map,s=0;for(let c=0;c{let i=e[t]??{},a=n??yW.tickSize,o=a*t*2+a;return J({},yW,i,{tickSize:r?.[t]??i.tickSize??o})};function xW(e){let{xScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=mW(e);if(!oI(t))throw Error(QE(8));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=VR(),y=WR().use(FP),x=(_?y[_]:void 0)?.groupTickSizes,S=_W({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`x`,groups:g});return(0,Y.jsx)(b.Fragment,{children:S.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isXInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=bW(g,_,u,x),b=i*y.tickSize,S=i*(y.tickSize+3);return(0,Y.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,Y.jsx)(o,J({y2:b,className:a.tick},f?.axisTick)),m!==void 0&&(0,Y.jsx)(s,J({x:d,y:S},c,{style:J({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var SW=Z(`g`,{name:`MuiChartsAxis`,slot:`Root`})(({theme:e})=>({[`& .${PH.tickLabel}`]:J({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${PH.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${PH.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,strokeWidth:1},[`& .${PH.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`}})),CW=[`axis`],wW=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],TW=Z(SW,{name:`MuiChartsXAxis`,slot:`Root`})({});function EW(e){let{axis:t}=e,n=WE(e,CW),{scale:r,ordinalTimeTicks:i}=t,a=WE(t,wW),o=IE({props:J({},a,n),name:`MuiChartsXAxis`}),s=J({},IH,o),{position:c,className:l,labelStyle:u,offset:d,slots:f,slotProps:p,sx:m,disableLine:h,label:g,height:_}=s,v=bE(),y=FH(s),{left:b,top:x,width:S,height:C}=Gz(),w=c===`bottom`?1:-1,T=f?.axisLine??`line`,E=f?.axisLabel??lW,D=ZE({elementType:E,externalSlotProps:p?.axisLabel,additionalProps:{style:J({},v.typography.body1,{lineHeight:1,fontSize:14,textAnchor:`middle`,dominantBaseline:c===`bottom`?`text-after-edge`:`text-before-edge`},u)},ownerState:{}});if(c===`none`)return null;let O=g?nO(g,D.style).height:0,k=r.domain(),ee=oI(r)?k.length===0:k.some(LH),te=null;ee||(te=`groups`in t&&Array.isArray(t.groups)?(0,Y.jsx)(xW,J({},n)):(0,Y.jsx)(hW,J({},n,{axisLabelHeight:O,ordinalTimeTicks:i})));let A={x:b+S/2,y:w*_};return(0,Y.jsxs)(TW,{transform:`translate(0, ${c===`bottom`?x+C+d:x-d})`,className:wC(y.root,l),"data-axis-id":s.id,sx:m,children:[!h&&(0,Y.jsx)(T,J({x1:b,x2:b+S,className:y.line},p?.axisLine)),te,g&&(0,Y.jsx)(`g`,{className:y.label,children:(0,Y.jsx)(E,J({},A,D,{text:g}))})]})}function DW(e){let{xAxis:t,xAxisIds:n}=kB(),r=t[e.axisId??n[0]];return r?(0,Y.jsx)(EW,J({},e,{axis:r})):null}function OW(e,t,n,r,i){let a=new Map,o=fB(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>180&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.top+t.height+t.bottom-r.offset-r.labelOffset)*c);a.set(r,$U(r.formattedValue.toString(),t=>QU(t,{width:n,height:e,angle:o,measureText:e=>nO(e,i)})))}return a}var kW=e=>{let{classes:t,position:n}=e;return eT({root:[`root`,`directionY`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},NH,t)},AW={disableLine:!1,disableTicks:!1,tickSize:6},jW=[`scale`,`tickNumber`,`reverse`];function MW(e){let{yAxis:t,yAxisIds:n}=AB(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a}=r,o=WE(r,jW),s=IE({props:J({},o,e),name:`MuiChartsYAxis`}),c=J({},AW,s),{position:l,tickLabelStyle:u,slots:d,slotProps:f}=c,p=bE(),m=yw(),h=kW(c),g=l===`right`?1:-1,_=typeof u?.fontSize==`number`?u.fontSize:12,v=d?.axisTick??`line`,y=d?.axisTickLabel??lW,b=uW((l===`right`?-90:90)-(u?.angle??0)),x=dW((l===`right`?-90:90)-(u?.angle??0));return{yScale:i,defaultizedProps:c,tickNumber:a,positionSign:g,classes:h,Tick:v,TickLabel:y,axisTickLabelProps:ZE({elementType:y,externalSlotProps:f?.axisTickLabel,additionalProps:{style:J({},p.typography.caption,{fontSize:_,textAnchor:m?fW(b):b,dominantBaseline:x},u)},className:h.tickLabel,ownerState:{}})}}function NW(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{yScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u}=MW(e),d=yw(),{disableTicks:f,tickSize:p,valueFormatter:m,slotProps:h,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickLabelInterval:y,tickSpacing:x,width:S}=i,C=Gz(),{instance:w}=VR(),T=WU(),E=f?4:p,D=QH({scale:r,tickNumber:a,valueFormatter:m,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickSpacing:x,direction:`y`,ordinalTimeTicks:n}),O=Math.max(0,S-(t>0?t+2:0)-E-2),k=T?OW(D,C,O,d,u.style):new Map(Array.from(D).map(e=>[e,e.formattedValue]));return(0,Y.jsx)(b.Fragment,{children:D.map((e,t)=>{let{offset:n,labelOffset:r,value:i}=e,a=o*(E+2),d=r,p=typeof y==`function`&&!y?.(i,t),m=w.isYInside(n),g=k.get(e);return m?(0,Y.jsxs)(`g`,{transform:`translate(0, ${n})`,className:s.tickContainer,children:[!f&&(0,Y.jsx)(c,J({x2:o*E,className:s.tick},h?.axisTick)),g!==void 0&&!p&&(0,Y.jsx)(l,J({x:a,y:d,text:g},u))]},t):null})})}function PW(e){let{yScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=MW(e);if(!oI(t))throw Error(QE(9));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=VR(),y=WR().use(LP),x=(_?y[_]:void 0)?.groupTickSizes,S=_W({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`y`,groups:g});return(0,Y.jsx)(b.Fragment,{children:S.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isYInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=bW(g,_,u,x),b=i*y.tickSize,S=i*(y.tickSize+2);return(0,Y.jsxs)(`g`,{transform:`translate(0, ${n})`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,Y.jsx)(o,J({x2:b,className:a.tick},f?.axisTick)),m!==void 0&&(0,Y.jsx)(s,J({x:S,y:d},c,{style:J({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var FW=[`axis`],IW=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],LW=Z(SW,{name:`MuiChartsYAxis`,slot:`Root`})({});function RW(e){let{axis:t}=e,n=WE(e,FW),{scale:r,ordinalTimeTicks:i}=t,a=WE(t,IW),o=WU(),s=IE({props:J({},a,n),name:`MuiChartsYAxis`}),c=J({},AW,s),{position:l,className:u,disableLine:d,label:f,labelStyle:p,offset:m,width:h,sx:g,slots:_,slotProps:v}=c,y=bE(),b=kW(c),{left:x,top:S,width:C,height:w}=Gz(),T=l===`right`?1:-1,E=_?.axisLine??`line`,D=_?.axisLabel??lW,O=ZE({elementType:E,externalSlotProps:v?.axisLine,additionalProps:{strokeLinecap:`square`},ownerState:{}}),k=ZE({elementType:D,externalSlotProps:v?.axisLabel,additionalProps:{style:J({},y.typography.body1,{lineHeight:1,fontSize:14,angle:T*90,textAnchor:`middle`,dominantBaseline:`text-before-edge`},p)},ownerState:{}});if(l===`none`)return null;let ee={x:T*h,y:S+w/2},te=f==null?0:nO(f,k.style).height,A=r.domain(),ne=oI(r)?A.length===0:A.some(LH),re=null;return ne||(re=`groups`in t&&Array.isArray(t.groups)?(0,Y.jsx)(PW,J({},n)):(0,Y.jsx)(NW,J({},n,{axisLabelHeight:te,ordinalTimeTicks:i}))),(0,Y.jsxs)(LW,{transform:`translate(${l===`right`?x+C+m:x-m}, 0)`,className:wC(b.root,u),"data-axis-id":c.id,sx:g,children:[!d&&(0,Y.jsx)(E,J({y1:S,y2:S+w,className:b.line},O)),re,f&&o&&(0,Y.jsx)(`g`,{className:b.label,children:(0,Y.jsx)(D,J({},ee,k,{text:f}))})]})}function zW(e){let{yAxis:t,yAxisIds:n}=AB(),r=t[e.axisId??n[0]];return r?(0,Y.jsx)(RW,J({},e,{axis:r})):null}function BW(e){let{slots:t,slotProps:n}=e,{xAxisIds:r,xAxis:i}=kB(),{yAxisIds:a,yAxis:o}=AB(),s=t?.xAxis??DW,c=t?.yAxis??zW;return(0,Y.jsxs)(b.Fragment,{children:[r.map(e=>!i[e].position||i[e].position===`none`?null:(0,Y.jsx)(s,{slots:t,slotProps:n,axisId:e},e)),a.map(e=>!o[e].position||o[e].position===`none`?null:(0,Y.jsx)(c,{slots:t,slotProps:n,axisId:e},e))]})}function VW(e){return typeof e.main==`string`}function HW(e,t=[]){if(!VW(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function UW(e=[]){return([,t])=>t&&HW(t,e)}function WW(e){return DC(`MuiTypography`,e)}OC(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]);var GW=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return eT({root:[`root`,i,e.align!==`inherit`&&`align${TE(t)}`,n&&`gutterBottom`,r&&`noWrap`]},WW,a)},KW=Z(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${TE(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(CE(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(UW()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${TE(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),qW={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},JW=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=qW,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||qW[l]||`span`,m=GW(f);return(0,Y.jsx)(KW,{as:p,ref:t,className:wC(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function YW(e){return DC(`MuiChartsTooltip`,e)}var XW=OC(`MuiChartsTooltip`,[`root`,`paper`,`table`,`row`,`cell`,`mark`,`markContainer`,`labelCell`,`valueCell`,`axisValueCell`]),ZW=e=>eT({root:[`root`],paper:[`paper`],table:[`table`],row:[`row`],cell:[`cell`],mark:[`mark`],markContainer:[`markContainer`],labelCell:[`labelCell`],valueCell:[`valueCell`],axisValueCell:[`axisValueCell`]},YW,e);function QW(){let e=WR(),t=e.use(IR),n=e.use(BN),r=zB(),{xAxis:i,xAxisIds:a}=kB(),{yAxis:o,yAxisIds:s}=AB(),{zAxis:c,zAxisIds:l}=LB(),{rotationAxis:u,rotationAxisIds:d}=NB(),{radiusAxis:f,radiusAxisIds:p}=PB();if(!t)return null;let m=r[t.type]?.series[t.seriesId];if(!m)return null;let h=pP(m)?m.xAxisId??a[0]:void 0,g=pP(m)?m.yAxisId??s[0]:void 0,_=Jz(m)?(`radiusAxisId`in m?m.radiusAxisId:void 0)??p[0]:void 0,v=Jz(m)?(`rotationAxisId`in m?m.rotationAxisId:void 0)??d[0]:void 0,y=(`colorAxisId`in m?m.colorAxisId:void 0)??(`zAxisId`in m?m.zAxisId:void 0)??l[0],b=v===void 0?h===void 0?void 0:i[h]:u[v],x=_===void 0?g===void 0?void 0:o[g]:f[_],S=n[m.type].colorProcessor(m,b,x,y===void 0?void 0:c[y]),C={};return h!==void 0&&(C.x=i[h]),g!==void 0&&(C.y=o[g]),v!==void 0&&(C.rotation=u[v]),_!==void 0&&(C.radius=f[_]),n[m.type].tooltipGetter({series:m,axesConfig:C,getColor:S,identifier:t})}var $W=Z(`div`,{name:`MuiChartsTooltip`,slot:`Container`,overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(e.vars||e).shape?.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`})),eG=Z(`table`,{name:`MuiChartsTooltip`,slot:`Table`})(({theme:e})=>({borderSpacing:0,[`& .${XW.markContainer}`]:{display:`inline-block`,width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:`middle`},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:`start`,whiteSpace:`nowrap`,"& span":{marginRight:e.spacing(1.5)}}})),tG=Z(`tr`,{name:`MuiChartsTooltip`,slot:`Row`})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),nG=Z(JW,{name:`MuiChartsTooltip`,slot:`Cell`})(({theme:e})=>({verticalAlign:`middle`,color:(e.vars||e).palette.text.secondary,textAlign:`start`,[`&.${XW.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${XW.labelCell}`]:{whiteSpace:`nowrap`,fontWeight:e.typography.fontWeightRegular},[`&.${XW.valueCell}, &.${XW.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${XW.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function rG(e){return DC(`MuiChartsLabelMark`,e)}var iG=OC(`MuiChartsLabelMark`,[`root`,`line`,`lineAndMark`,`square`,`circle`,`fill`]),aG=e=>{let{type:t}=e;return eT({root:typeof t==`function`?[`root`]:[`root`,t===`line+mark`?`lineAndMark`:t],fill:[`fill`]},rG,e.classes)},oG=(e,t,n)=>b.forwardRef(function(r,i){let a=IE({props:r,name:e}),o=BC(typeof t.defaultProps==`function`?t.defaultProps(a):t.defaultProps??{},a),s=bE(),c=t.classesResolver?.(o,s);return(0,Y.jsx)(b.forwardRef(n),J({},o,{classes:c,ref:i}))}),sG=[`type`,`markShape`,`color`,`className`,`classes`],cG=Z(`div`,{name:`MuiChartsLabelMark`,slot:`Root`})(()=>({display:`flex`,width:14,height:14,"& > *":{width:`100%`,height:`100%`},[`&.${iG.line}`]:{width:16,height:8,alignItems:`center`},[`&.${iG.lineAndMark}`]:{alignItems:`center`},[`&.${iG.square}`]:{height:13,width:13,borderRadius:2,overflow:`hidden`},[`&.${iG.circle}`]:{height:15,width:15},svg:{display:`block`}})),lG=oG(`MuiChartsLabelMark`,{defaultProps:{type:`square`},classesResolver:aG},function(e,t){let{type:n,markShape:r,color:i,className:a,classes:o}=e,s=WE(e,sG),c=n,l=bE();return(0,Y.jsx)(cG,J({className:wC(o?.root,a),ownerState:e,"aria-hidden":`true`,ref:t},s,{children:typeof c==`function`?(0,Y.jsx)(c,{className:o?.fill,color:i}):(0,Y.jsxs)(b.Fragment,{children:[n===`circle`&&(0,Y.jsx)(`svg`,{viewBox:`0 0 15 15`,children:(0,Y.jsx)(`circle`,{className:o?.fill,r:`7.5`,cx:`7.5`,cy:`7.5`,fill:i})}),n===`line`&&(0,Y.jsx)(`svg`,{viewBox:`0 0 16 8`,preserveAspectRatio:`none`,children:(0,Y.jsx)(`path`,{className:o?.fill,d:`M 2 4 L 14 4`,stroke:i,strokeWidth:`4`,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`})}),n===`line+mark`&&(0,Y.jsxs)(`svg`,{viewBox:`0 0 16 16`,preserveAspectRatio:`none`,children:[(0,Y.jsx)(`path`,{className:o?.fill,d:`M 1 8 L 15 8`,stroke:i,strokeWidth:2,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`}),r&&(0,Y.jsx)(`path`,{d:BV(zV[AU(r)],32)(),transform:`translate(8, 8) `,stroke:i,strokeWidth:2,fill:(l.vars||l).palette.background.paper})]}),n!==`line`&&n!==`circle`&&n!==`line+mark`&&(0,Y.jsx)(`svg`,{viewBox:`0 0 13 13`,children:(0,Y.jsx)(`rect`,{className:o?.fill,width:`13`,height:`13`,fill:i})})]})}))});function uG(e){let{classes:t,sx:n}=e,r=QW(),i=WR().use(BN),a=ZW(t);if(!r)return null;let o=i[r.identifier.type],s=o&&`ItemTooltipContent`in o?o.ItemTooltipContent:null;if(`values`in r){let{label:e,color:i,markType:o,markShape:c}=r,l=s??dG;return(0,Y.jsx)($W,{sx:n,className:a.paper,children:(0,Y.jsxs)(eG,{className:a.table,children:[(0,Y.jsxs)(JW,{component:`caption`,children:[(0,Y.jsx)(`div`,{className:a.markContainer,children:(0,Y.jsx)(lG,{type:o,markShape:c,color:i,className:a.mark})}),e]}),(0,Y.jsx)(`tbody`,{children:(0,Y.jsx)(l,{classes:t,item:r})})]})})}let c=s??fG;return(0,Y.jsx)($W,{sx:n,className:a.paper,children:(0,Y.jsx)(eG,{className:a.table,children:(0,Y.jsx)(`tbody`,{children:(0,Y.jsx)(c,{classes:t,item:r})})})})}function dG({classes:e,item:t}){let n=ZW(e);return(0,Y.jsx)(b.Fragment,{children:t.values.map(e=>(0,Y.jsxs)(tG,{className:n.row,"data-series":t.identifier.seriesId,"data-index":t.identifier.dataIndex,children:[(0,Y.jsx)(nG,{className:wC(n.labelCell,n.cell),component:`th`,children:e.label}),(0,Y.jsx)(nG,{className:wC(n.valueCell,n.cell),component:`td`,children:e.formattedValue})]},e.label))})}function fG({classes:e,item:t}){let{color:n,label:r,formattedValue:i,markType:a,markShape:o}=t,s=ZW(e);return i==null||typeof i!=`string`?null:(0,Y.jsxs)(tG,{className:s.row,"data-series":t.identifier.seriesId,"data-index":`dataIndex`in t.identifier?t.identifier.dataIndex:void 0,children:[(0,Y.jsxs)(nG,{className:wC(s.labelCell,s.cell),component:`th`,children:[(0,Y.jsx)(`div`,{className:s.markContainer,children:(0,Y.jsx)(lG,{type:a,markShape:o,color:n,className:s.mark})}),r]}),(0,Y.jsx)(nG,{className:wC(s.valueCell,s.cell),component:`td`,children:i})]})}function pG(e){let t=WR().use(BN),n=b.useMemo(()=>{let e={};return Object.keys(t).forEach(n=>{e[n]=t[n].colorProcessor}),e},[t]);return e?n[e]:n}function mG(e,t){return typeof e==`function`?e(t):e}var hG=qC({themeId:yy});function gG(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}var _G=`@media (pointer: fine)`,vG=()=>hG(_G,{defaultMatches:!0}),yG=new Set([`bar`,`line`,`scatter`,`rangeBar`,`ohlc`]);function bG(e,t,n){let r=e.data?.[t]??null,i=(e.valueFormatter??(t=>e.scaleType===`utc`?gG(t):t.toLocaleString()))(r,{location:`tooltip`,scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function xG(e){if(!(!(`showMark`in e)||!e.showMark))return`shape`in e&&e.shape?e.shape:`circle`}function SG(e){let{directions:t}=e??{},n=jB(),r=MB(),i=FB(),a=IB(),o=WR(),s=o.use(xR),c=o.use(SR),l=o.use(CB),u=o.use(DB),d=zB(),{xAxis:f}=kB(),{yAxis:p}=AB(),{zAxis:m,zAxisIds:h}=LB(),{rotationAxis:g}=NB(),{radiusAxis:_}=PB(),v=pG(),y=o.use(UN);if(s.length===0&&c.length===0&&l.length===0&&u.length===0)return null;let b=[];return(t===void 0||t.includes(`x`))&&s.forEach(({axisId:e,dataIndex:t})=>{b.push(bG(f[e],t,`x`))}),(t===void 0||t.includes(`y`))&&c.forEach(({axisId:e,dataIndex:t})=>{b.push(bG(p[e],t,`y`))}),(t===void 0||t.includes(`rotation`))&&l.forEach(({axisId:e,dataIndex:t})=>{b.push(bG(g[e],t,`rotation`))}),(t===void 0||t.includes(`radius`))&&u.forEach(({axisId:e,dataIndex:t})=>{b.push(bG(_[e],t,`radius`))}),Object.keys(d).filter(e=>yG.has(e)).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(i=>{let a=t.series[i];if(y&&!y({type:e,seriesId:i}))return;let o=a.xAxisId??n.id,s=a.yAxisId??r.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`x`&&t===o||e===`y`&&t===s);if(c>=0){let t=`colorAxisId`in a&&a.colorAxisId||`zAxisId`in a&&a.zAxisId||h[0],{dataIndex:n}=b[c],r=v[e]?.(a,f[o],p[s],t?m[t]:void 0)(n)??``,l=a.data[n]??null,u=mG(a.label,`tooltip`)??null,d,g;if(e===`ohlc`&&Array.isArray(l)){let[e,t,r,i]=l,o=a.valueFormatter;d={open:e,high:t,low:r,close:i},g={open:o(e,{dataIndex:n,field:`open`}),high:o(t,{dataIndex:n,field:`high`}),low:o(r,{dataIndex:n,field:`low`}),close:o(i,{dataIndex:n,field:`close`})}}else d=l,g=a.valueFormatter(l,{dataIndex:n});b[c].seriesItems.push({seriesId:i,color:r,value:d,formattedValue:g,formattedLabel:u,markType:a.labelMarkType,markShape:xG(a)})}}):[]}),Object.keys(d).filter(qz).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(n=>{let r=t.series[n];if(y&&!y({type:e,seriesId:n}))return;let o=(`rotationAxisId`in r?r.rotationAxisId:void 0)??i?.id,s=(`radiusAxisId`in r?r.radiusAxisId:void 0)??a?.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`rotation`&&t===o||e===`radius`&&t===s);if(c>=0){let{dataIndex:t}=b[c],i=v[e]?.(r,o===void 0?void 0:g[o],s===void 0?void 0:_[s])(t)??``,a=r.data[t]??null,l=r.valueFormatter(a,{dataIndex:t}),u=mG(r.label,`tooltip`)??null;b[c].seriesItems.push({seriesId:n,color:i,value:a,formattedValue:l,formattedLabel:u,markType:r.labelMarkType,markShape:xG(r)})}}):[]}),b}function CG(e){let{sort:t}=e,n=ZW(e.classes),r=WR().use(tP),i=SG();return i===null?null:(0,Y.jsx)($W,{sx:e.sx,className:n.paper,children:i.map(({axisId:i,mainAxis:a,axisValue:o,axisFormattedValue:s,seriesItems:c})=>{let l=t&&t!==`none`?[...c].sort((e,n)=>{let r=e.value?.valueOf(),i=n.value?.valueOf();return typeof r==`number`?typeof i==`number`?t===`asc`?r-i:i-r:-1:1}):c;return(0,Y.jsxs)(eG,{className:n.table,children:[o!=null&&!a.hideTooltip&&(0,Y.jsx)(JW,{component:`caption`,children:s}),(0,Y.jsx)(`tbody`,{children:l.map(t=>{let n=r(t.seriesId),i=n&&`AxisTooltipContent`in n?n.AxisTooltipContent??wG:wG;return(0,Y.jsx)(i,{classes:e.classes,item:t},t.seriesId)})})]},i)})})}function wG(e){let t=ZW(e.classes),{item:n}=e;return n.formattedValue==null||typeof n.formattedValue!=`string`?null:(0,Y.jsxs)(tG,{className:t.row,"data-series":n.seriesId,"data-index":`dataIndex`in n?n.dataIndex:void 0,children:[(0,Y.jsxs)(nG,{className:wC(t.labelCell,t.cell),component:`th`,children:[(0,Y.jsx)(`div`,{className:t.markContainer,children:(0,Y.jsx)(lG,{type:n.markType,markShape:n.markShape,color:n.color,className:t.mark})}),n.formattedLabel||null]}),(0,Y.jsx)(nG,{className:wC(t.valueCell,t.cell),component:`td`,children:n.formattedValue})]})}var TG=`bottom`,EG=`right`,DG=`left`,OG=`auto`,kG=[`top`,TG,EG,DG],AG=`start`,jG=`clippingParents`,MG=`viewport`,NG=`popper`,PG=`reference`,FG=kG.reduce(function(e,t){return e.concat([t+`-`+AG,t+`-end`])},[]),IG=[].concat(kG,[OG]).reduce(function(e,t){return e.concat([t,t+`-`+AG,t+`-end`])},[]),LG=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function RG(e){return e?(e.nodeName||``).toLowerCase():null}function zG(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function BG(e){return e instanceof zG(e).Element||e instanceof Element}function VG(e){return e instanceof zG(e).HTMLElement||e instanceof HTMLElement}function HG(e){return typeof ShadowRoot>`u`?!1:e instanceof zG(e).ShadowRoot||e instanceof ShadowRoot}function UG(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!VG(i)||!RG(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function WG(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 r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!VG(r)||!RG(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var GG={name:`applyStyles`,enabled:!0,phase:`write`,fn:UG,effect:WG,requires:[`computeStyles`]};function KG(e){return e.split(`-`)[0]}var qG=Math.max,JG=Math.min,YG=Math.round;function XG(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function ZG(){return!/^((?!chrome|android).)*safari/i.test(XG())}function QG(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&VG(e)&&(i=e.offsetWidth>0&&YG(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&YG(r.height)/e.offsetHeight||1);var o=(BG(e)?zG(e):window).visualViewport,s=!ZG()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function $G(e){var t=QG(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function eK(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HG(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tK(e){return zG(e).getComputedStyle(e)}function nK(e){return[`table`,`td`,`th`].indexOf(RG(e))>=0}function rK(e){return((BG(e)?e.ownerDocument:e.document)||window.document).documentElement}function iK(e){return RG(e)===`html`?e:e.assignedSlot||e.parentNode||(HG(e)?e.host:null)||rK(e)}function aK(e){return!VG(e)||tK(e).position===`fixed`?null:e.offsetParent}function oK(e){var t=/firefox/i.test(XG());if(/Trident/i.test(XG())&&VG(e)&&tK(e).position===`fixed`)return null;var n=iK(e);for(HG(n)&&(n=n.host);VG(n)&&[`html`,`body`].indexOf(RG(n))<0;){var r=tK(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function sK(e){for(var t=zG(e),n=aK(e);n&&nK(n)&&tK(n).position===`static`;)n=aK(n);return n&&(RG(n)===`html`||RG(n)===`body`&&tK(n).position===`static`)?t:n||oK(e)||t}function cK(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function lK(e,t,n){return qG(e,JG(t,n))}function uK(e,t,n){var r=lK(e,t,n);return r>n?n:r}function dK(){return{top:0,right:0,bottom:0,left:0}}function fK(e){return Object.assign({},dK(),e)}function pK(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var mK=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,fK(typeof e==`number`?pK(e,kG):e)};function hK(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=KG(n.placement),c=cK(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=mK(i.padding,n),d=$G(a),f=c===`y`?`top`:DG,p=c===`y`?TG:EG,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=sK(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=lK(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function gK(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||eK(t.elements.popper,r)&&(t.elements.arrow=r))}var _K={name:`arrow`,enabled:!0,phase:`main`,fn:hK,effect:gK,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function vK(e){return e.split(`-`)[1]}var yK={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function bK(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:YG(n*i)/i||0,y:YG(r*i)/i||0}}function xK(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=DG,b=`top`,x=window;if(l){var S=sK(n),C=`clientHeight`,w=`clientWidth`;if(S===zG(n)&&(S=rK(n),tK(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=TG;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=EG;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&yK),O=u===!0?bK({x:p,y:h},zG(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function SK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:KG(t.placement),variation:vK(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,xK(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xK(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var CK={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:SK,data:{}},wK={passive:!0};function TK(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=zG(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,wK)}),s&&c.addEventListener(`resize`,n.update,wK),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,wK)}),s&&c.removeEventListener(`resize`,n.update,wK)}}var EK={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:TK,data:{}},DK={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function OK(e){return e.replace(/left|right|bottom|top/g,function(e){return DK[e]})}var kK={start:`end`,end:`start`};function AK(e){return e.replace(/start|end/g,function(e){return kK[e]})}function jK(e){var t=zG(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function MK(e){return QG(rK(e)).left+jK(e).scrollLeft}function NK(e,t){var n=zG(e),r=rK(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=ZG();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+MK(e),y:c}}function PK(e){var t=rK(e),n=jK(e),r=e.ownerDocument?.body,i=qG(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=qG(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+MK(e),s=-n.scrollTop;return tK(r||t).direction===`rtl`&&(o+=qG(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function FK(e){var t=tK(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function IK(e){return[`html`,`body`,`#document`].indexOf(RG(e))>=0?e.ownerDocument.body:VG(e)&&FK(e)?e:IK(iK(e))}function LK(e,t){t===void 0&&(t=[]);var n=IK(e),r=n===e.ownerDocument?.body,i=zG(n),a=r?[i].concat(i.visualViewport||[],FK(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(LK(iK(a)))}function RK(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zK(e,t){var n=QG(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function BK(e,t,n){return t===`viewport`?RK(NK(e,n)):BG(t)?zK(t,n):RK(PK(rK(e)))}function VK(e){var t=LK(iK(e)),n=[`absolute`,`fixed`].indexOf(tK(e).position)>=0&&VG(e)?sK(e):e;return BG(n)?t.filter(function(e){return BG(e)&&eK(e,n)&&RG(e)!==`body`}):[]}function HK(e,t,n,r){var i=t===`clippingParents`?VK(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=BK(e,n,r);return t.top=qG(i.top,t.top),t.right=JG(i.right,t.right),t.bottom=JG(i.bottom,t.bottom),t.left=qG(i.left,t.left),t},BK(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function UK(e){var t=e.reference,n=e.element,r=e.placement,i=r?KG(r):null,a=r?vK(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case TG:c={x:o,y:t.y+t.height};break;case EG:c={x:t.x+t.width,y:s};break;case DG:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?cK(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case AG:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function WK(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?jG:s,l=n.rootBoundary,u=l===void 0?MG:l,d=n.elementContext,f=d===void 0?NG:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=fK(typeof g==`number`?pK(g,kG):g),v=f===`popper`?PG:NG,y=e.rects.popper,b=e.elements[m?v:f],x=HK(BG(b)?b:b.contextElement||rK(e.elements.popper),c,u,o),S=QG(e.elements.reference),C=UK({reference:S,element:y,strategy:`absolute`,placement:i}),w=RK(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function GK(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?IG:c,u=vK(r),d=u?s?FG:FG.filter(function(e){return vK(e)===u}):kG,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=WK(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[KG(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function KK(e){if(KG(e)===`auto`)return[];var t=OK(e);return[AK(e),t,AK(t)]}function qK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=KG(g)===g,v=c||(_||!m?[OK(g)]:KK(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(KG(n)===`auto`?GK(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T=0,ee=k?`width`:`height`,te=WK(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=k?O?EG:DG:O?TG:`top`;b[ee]>x[ee]&&(A=OK(A));var ne=OK(A),re=[];if(a&&re.push(te[D]<=0),s&&re.push(te[A]<=0,te[ne]<=0),re.every(function(e){return e})){w=E,C=!1;break}S.set(E,re)}if(C)for(var ie=m?3:1,j=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},M=ie;M>0&&j(M)!==`break`;M--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var JK={name:`flip`,enabled:!0,phase:`main`,fn:qK,requiresIfExists:[`offset`],data:{_skip:!1}};function YK(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function XK(e){return[`top`,EG,TG,DG].some(function(t){return e[t]>=0})}function ZK(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=WK(t,{elementContext:`reference`}),s=WK(t,{altBoundary:!0}),c=YK(o,r),l=YK(s,i,a),u=XK(c),d=XK(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var QK={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:ZK};function $K(e,t,n){var r=KG(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function eq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=IG.reduce(function(e,n){return e[n]=$K(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var tq={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:eq};function nq(e){var t=e.state,n=e.name;t.modifiersData[n]=UK({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var rq={name:`popperOffsets`,enabled:!0,phase:`read`,fn:nq,data:{}};function iq(e){return e===`x`?`y`:`x`}function aq(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=WK(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=KG(t.placement),v=vK(t.placement),y=!v,b=cK(_),x=iq(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:DG,ee=b===`y`?TG:EG,te=b===`y`?`height`:`width`,A=S[b],ne=A+g[k],re=A-g[ee],ie=p?-w[te]/2:0,j=v===`start`?C[te]:w[te],M=v===`start`?-w[te]:-C[te],N=t.elements.arrow,ae=p&&N?$G(N):{width:0,height:0},oe=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:dK(),se=oe[k],ce=oe[ee],P=lK(0,C[te],ae[te]),F=y?C[te]/2-ie-P-se-E.mainAxis:j-P-se-E.mainAxis,le=y?-C[te]/2+ie+P+ce+E.mainAxis:M+P+ce+E.mainAxis,ue=t.elements.arrow&&sK(t.elements.arrow),de=ue?b===`y`?ue.clientTop||0:ue.clientLeft||0:0,fe=D?.[b]??0,pe=A+F-fe-de,me=A+le-fe,he=lK(p?JG(ne,pe):ne,A,p?qG(re,me):re);S[b]=he,O[b]=he-A}if(s){var ge=b===`x`?`top`:DG,_e=b===`x`?TG:EG,ve=S[x],ye=x===`y`?`height`:`width`,be=ve+g[ge],xe=ve-g[_e],Se=[`top`,DG].indexOf(_)!==-1,Ce=D?.[x]??0,I=Se?be:ve-C[ye]-w[ye]-Ce+E.altAxis,we=Se?ve+C[ye]+w[ye]-Ce-E.altAxis:xe,L=p&&Se?uK(I,ve,we):lK(p?I:be,ve,p?we:xe);S[x]=L,O[x]=L-ve}t.modifiersData[r]=O}}var oq={name:`preventOverflow`,enabled:!0,phase:`main`,fn:aq,requiresIfExists:[`offset`]};function sq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cq(e){return e===zG(e)||!VG(e)?jK(e):sq(e)}function lq(e){var t=e.getBoundingClientRect(),n=YG(t.width)/e.offsetWidth||1,r=YG(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uq(e,t,n){n===void 0&&(n=!1);var r=VG(t),i=VG(t)&&lq(t),a=rK(t),o=QG(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((RG(t)!==`body`||FK(a))&&(s=cq(t)),VG(t)?(c=QG(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=MK(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function dq(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function fq(e){var t=dq(e);return LG.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function pq(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function mq(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]})}var hq={placement:`bottom`,modifiers:[],strategy:`absolute`};function gq(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function _q(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?hq:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},hq,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:BG(e)?LK(e):e.contextElement?LK(e.contextElement):[],popper:LK(t)};var s=fq(mq([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(gq(t,n)){i.rects={reference:uq(t,sK(n),i.options.strategy===`fixed`),popper:$G(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r{i||o(Sq(r)||document.body)},[r,i]),UC(()=>{if(a&&!i)return yq(t,a),()=>{yq(t,null)}},[t,a,i]),i){if(b.isValidElement(n)){let e={ref:s};return b.cloneElement(n,e)}return n}return a&&xq.createPortal(n,a)});function wq(e){return DC(`MuiPopper`,e)}OC(`MuiPopper`,[`root`]);function Tq(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Eq(e){return typeof e==`function`?e():e}function Dq(e){return e.nodeType!==void 0}var Oq=e=>{let{classes:t}=e;return eT({root:[`root`]},wq,t)},kq={},Aq=b.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=b.useRef(null),_=hE(g,t),v=b.useRef(null),y=hE(v,u),x=b.useRef(y);UC(()=>{x.current=y},[y]),b.useImperativeHandle(u,()=>v.current,[]);let S=Tq(c,i),[C,w]=b.useState(S),T=b.useMemo(()=>Eq(n),[n]);b.useEffect(()=>{v.current&&v.current.forceUpdate()}),UC(()=>{if(!T||!s)return;let e=e=>{w(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=vq(T,g.current,{placement:S,...l,modifiers:t});x.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();x.current(null)}},[T,a,o,s,l,S]);let E={placement:C};p!==null&&(E.TransitionProps=p);let D=Oq(e),O=f.root??`div`,k=ZE({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root});return(0,Y.jsx)(O,{...k,children:typeof r==`function`?r(E):r})}),jq=Z(b.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=kq,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=b.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let C;if(i)C=i;else if(n){let e=Eq(n);C=e&&Dq(e)?_E(e).body:_E(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:x,onExited:S}:void 0;return(0,Y.jsx)(Cq,{disablePortal:o,container:C,children:(0,Y.jsx)(Aq,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:w,...p},TransitionProps:T,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Mq=b.forwardRef(function(e,t){let n=yw(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=wE({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,Y.jsx)(jq,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function Nq(e){let{children:t,defer:n=!1,fallback:r=null}=e,[i,a]=b.useState(!1);return UC(()=>{n||a(!0)},[n]),b.useEffect(()=>{n&&a(!0)},[n]),i?t:r}function Pq(e){let t,n,r=()=>{n=null,e(...t)};function i(...e){t=e,n||=requestAnimationFrame(r)}return i.clear=()=>{n&&=(cancelAnimationFrame(n),null)},i}function Fq(){let e=WR(),t=e.use(aB),n=e.use(GD);return t===void 0?n===void 0?`none`:`cartesian`:`polar`}var Iq=[`trigger`,`position`,`anchor`,`classes`,`children`],Lq=()=>!1,Rq=()=>null;function zq(e,t,n){return n?Lq:e===`item`?LR:t===`polar`?OB:t===`cartesian`?CR:Lq}var Bq={item:`node`,axis:`chart`,none:`pointer`},Vq=(e,t)=>{switch(e){case`node`:return t;case`chart`:return TR;default:return Rq}},Hq=Z(Mq,{name:`MuiChartsTooltip`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,zIndex:e.zIndex.modal}));function Uq(e){let t=IE({props:e,name:`MuiChartsTooltipContainer`}),{trigger:n=`axis`,position:r,anchor:i=`pointer`,classes:a,children:o}=t,s=WE(t,Iq),c=WR(),l=RB(),[u,d]=b.useState(null),f=ZW(a),p=c.use(kL),m=vG(),h=b.useRef(null),g=MD(()=>({x:0,y:0})),_=Fq(),v=c.use(nR),y=c.use(zq(n,_,v)),x=c.use(OL)===`keyboard`||p===null?Bq[n]:i,S=c.use(IR),C=c.use(BN),w=S&&C[S.type]?.selectorTooltipItemPosition||Rq,T=c.use(Vq(x,w),t.position),E=T!==null;b.useEffect(()=>{let e=l.current;if(e===null)return()=>{};if(E)return;let t=Pq((e,t)=>{g.current={x:e,y:t},h.current?.update()}),n=e=>{t(e.clientX,e.clientY)};return e.addEventListener(`pointermove`,n),e.addEventListener(`pointerenter`,n),()=>{e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerenter`,n),t.clear()}},[l,g,E]),UC(()=>{E&&h.current?.update()},[E,T?.x,T?.y]);let D=b.useMemo(()=>({getBoundingClientRect:()=>({x:g.current.x,y:g.current.y,top:g.current.y,left:g.current.x,right:g.current.x,bottom:g.current.y,width:0,height:0,toJSON:()=>``})}),[g]),O=p===`mouse`||m,k=p===`touch`||!m,ee=b.useMemo(()=>[{name:`offset`,options:{offset:()=>k&&!E?[0,64]:[0,8]}},...O?[]:[{name:`flip`,options:{fallbackPlacements:[`top-end`,`top-start`,`bottom-end`,`bottom`]}}],{name:`preventOverflow`,options:{altAxis:!0}}],[O,E,k]);return n===`none`?null:(0,Y.jsxs)(b.Fragment,{children:[l.current&&xq.createPortal((0,Y.jsx)(`div`,{ref:d,style:{position:`absolute`,display:`hidden`,left:T?.x??0,top:T?.y??0,pointerEvents:`none`,opacity:0,width:1,height:1}}),l.current),(0,Y.jsx)(Nq,{children:y&&(0,b.createElement)(Hq,J({},s,{key:T?`charts-anchored`:`charts-pointer`,className:f?.root,open:y,placement:s.placement??r??(!E&&O?`right-start`:`top`),popperRef:h,anchorEl:T?u:D,modifiers:ee,container:s.container??l.current,popperOptions:J({},s.popperOptions,{strategy:`fixed`})}),o)})]})}var Wq=[`classes`,`trigger`,`sort`];function Gq(e){let{classes:t,trigger:n=`axis`,sort:r}=e,i=WE(e,Wq),a=ZW(t);return(0,Y.jsx)(Uq,J({},i,{trigger:n,classes:t,children:n===`axis`?(0,Y.jsx)(CG,{classes:a,sort:r}):(0,Y.jsx)(uG,{classes:a})}))}var Kq=e=>({type:`series`,color:e.color,label:e.label,seriesId:e.seriesId,dataIndex:e.dataIndex});function qq(e){return DC(`MuiChartsLegend`,e)}var Jq=e=>{let{classes:t,direction:n}=e;return eT({root:[`root`,n],item:[`item`],mark:[`mark`],label:[`label`],series:[`series`],hidden:[`hidden`]},qq,t)},Yq=OC(`MuiChartsLegend`,[`root`,`item`,`series`,`mark`,`label`,`vertical`,`horizontal`,`hidden`]),Xq=[`slots`,`slotProps`],Zq=[`ownerState`],Qq=(e,t,n,r)=>{function i(i,a){let o=IE({props:i,name:e}),s=BC(typeof n.defaultProps==`function`?n.defaultProps(o):n.defaultProps??{},o),c=s,{slots:l,slotProps:u}=c,d=WE(c,Xq),f=bE(),p=n.classesResolver?.(s,f),m=l?.[t]??r,h=n.propagateSlots&&!l?.[t],g=WE(ZE({elementType:m,externalSlotProps:u?.[t],additionalProps:J({},d,{classes:p},h&&{slots:l,slotProps:u}),ownerState:{}}),Zq),_=J({},g);for(let e of n.omitProps??[])delete _[e];return(0,Y.jsx)(m,J({},_,{ref:a}))}return b.forwardRef(i)};function $q(e){return DC(`MuiChartsLabel`,e)}OC(`MuiChartsLabel`,[`root`]);var eJ=e=>eT({root:[`root`]},$q,e.classes),tJ=[`children`,`className`,`classes`],nJ=oG(`MuiChartsLabel`,{classesResolver:eJ},function(e,t){let{children:n,className:r,classes:i}=e,a=WE(e,tJ);return(0,Y.jsx)(`span`,J({className:wC(i?.root,r),ref:t},a,{children:n}))}),rJ=[`direction`,`onItemClick`,`className`,`classes`,`toggleVisibilityOnClick`],iJ=Z(`ul`,{name:`MuiChartsLegend`,slot:`Root`})(({ownerState:e,theme:t})=>J({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:`100%`,display:`flex`,flexDirection:e.direction===`vertical`?`column`:`row`,alignItems:e.direction===`vertical`?void 0:`center`,flexShrink:0,gap:t.spacing(2),listStyleType:`none`,paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:`wrap`,li:{display:e.direction===`horizontal`?`inline-flex`:void 0},[`button.${Yq.series}`]:{background:`none`,border:`none`,padding:0,fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,letterSpacing:`inherit`,color:`inherit`},[`& .${Yq.series}`]:{display:e.direction===`vertical`?`flex`:`inline-flex`,alignItems:`center`,gap:t.spacing(1),cursor:e.onItemClick||e.toggleVisibilityOnClick?`pointer`:`default`,[`&.${Yq.hidden}`]:{opacity:.5}},gridArea:`legend`})),aJ=Qq(`MuiChartsLegend`,`legend`,{defaultProps:{direction:`horizontal`},omitProps:[`position`],classesResolver:Jq},b.forwardRef(function(e,t){let n=GB(),{instance:r}=VR(),i=WR().use(UN),{onItemClick:a,className:o,classes:s,toggleVisibilityOnClick:c}=e,l=WE(e,rJ),u=!!(a||c),d=gE((e,t)=>n=>{a&&e&&a(n,Kq(e),t),c&&r.toggleItemVisibility({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex})});return n.items.length===0?null:(0,Y.jsx)(iJ,J({className:wC(s?.root,o),ref:t},l,{ownerState:e,children:n.items.map((e,t)=>{let n=i({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex});return(0,Y.jsx)(`li`,{className:s?.item,"data-series":e.seriesId,"data-index":e.dataIndex,children:u?(0,Y.jsxs)(`button`,{className:wC(s?.series,!n&&s?.hidden),onClick:d(e,t),type:`button`,children:[(0,Y.jsx)(lG,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,Y.jsx)(nJ,{className:s?.label,children:e.label})]}):(0,Y.jsxs)(`div`,{className:wC(s?.series,!n&&s?.hidden),children:[(0,Y.jsx)(lG,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,Y.jsx)(nJ,{className:s?.label,children:e.label})]})},`${e.seriesId}-${e.dataIndex}`)})}))}));function oJ(e){return DC(`MuiChartsAxisHighlight`,e)}OC(`MuiChartsAxisHighlight`,[`root`]);var sJ=Z(`path`,{name:`MuiChartsAxisHighlight`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,variants:[{props:{axisHighlight:`band`},style:J({fill:`white`,fillOpacity:.1},e.applyStyles(`light`,{fill:`gray`}))},{props:{axisHighlight:`line`},style:J({strokeDasharray:`5 2`,stroke:`#ffffff`},e.applyStyles(`light`,{stroke:`#000000`}))}]}));function cJ(e,t,n,r){let i=e.step(),a=(i-e.bandwidth())/2,o=e(t[n]),s=e(t[r]);return{regionStart:Math.min(o,s)-a,regionSize:(r-n+1)*i}}function lJ(e,t){if(t instanceof Date){let n=t.getTime();return e.findIndex(e=>e instanceof Date&&e.getTime()===n)}return e.indexOf(t)}function uJ({scale:e,value:t,dataIndex:n,data:r,bucketSize:i}){let a=e.step(),o=(a-e.bandwidth())/2,s=e(t)-o,c=a;if(i>1&&r){let a=n??lJ(r,t);if(a>=0){let t=Math.floor(a/i)*i,{regionStart:n,regionSize:o}=cJ(e,r,t,Math.min(t+i-1,r.length-1));s=n,c=o}}return{bandStart:s,bandSize:c}}function dJ(e){let{type:t,classes:n}=e,{left:r,width:i}=Gz(),a=WR(),o=a.use(uR),s=a.use(dL),c=a.use(jR);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=_R(u),f=t===`band`&&o!==null&&oI(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=uJ({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,Y.jsxs)(b.Fragment,{children:[f&&u(o)!==void 0&&(0,Y.jsx)(sJ,{d:`M ${r} ${p} l 0 ${m} l ${i} 0 l 0 ${-m} Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,Y.jsx)(sJ,{d:`M ${r} ${d(o)} L ${r+i} ${d(o)}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}function fJ(e){let{type:t,classes:n}=e,{top:r,height:i}=Gz(),a=WR(),o=a.use(lR),s=a.use(uL),c=a.use(jR);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=_R(u),f=t===`band`&&o!==null&&oI(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=uJ({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,Y.jsxs)(b.Fragment,{children:[f&&u(o)!==void 0&&(0,Y.jsx)(sJ,{d:`M ${p} ${r} l ${m} 0 l 0 ${i} l ${-m} 0 Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,Y.jsx)(sJ,{d:`M ${d(o)} ${r} L ${d(o)} ${r+i}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}var pJ=()=>eT({root:[`root`]},oJ);function mJ(e){let{x:t,y:n}=e,r=pJ();return(0,Y.jsxs)(b.Fragment,{children:[t&&t!==`none`&&(0,Y.jsx)(fJ,{type:t,classes:r}),n&&n!==`none`&&(0,Y.jsx)(dJ,{type:n,classes:r})]})}function hJ(e){let{id:t,offset:n}=e,{left:r,top:i,width:a,height:o}=Gz(),s=J({top:0,right:0,bottom:0,left:0},n);return(0,Y.jsx)(`clipPath`,{id:t,children:(0,Y.jsx)(`rect`,{x:r-s.left,y:i-s.top,width:a+s.left+s.right,height:o+s.top+s.bottom})})}var gJ=[`x`,`y`,`seriesId`,`color`,`shape`];function _J(e){let{x:t,y:n,color:r,shape:i}=e,a=WE(e,gJ),o=oU(),s=i===`circle`?`circle`:`path`,c=i===`circle`?{cx:0,cy:0,r:a.r===void 0?5:a.r}:{d:BV(zV[AU(i)])()},l=wD>18?{transformOrigin:`${t} ${n}`}:{"transform-origin":`${t} ${n}`};return(0,Y.jsx)(s,J({pointerEvents:`none`,className:o.highlight,transform:`translate(${t} ${n})`,fill:r},l,c,a))}var vJ=[`slots`,`slotProps`];function yJ(e){let{slots:t,slotProps:n}=e,r=WE(e,vJ),i=HB(),{xAxis:a,xAxisIds:o}=kB(),{yAxis:s,yAxisIds:c}=AB(),{instance:l}=VR(),u=WR().use(sR);if(i===void 0)return null;let{series:d,stackingGroups:f}=i,p=o[0],m=c[0],h=f.some(({ids:e})=>e.some(e=>d[e].showMark===`start`||d[e].showMark===`end`));if(u.length===0&&!h)return null;let g=new Map;u.forEach(({axisId:e,dataIndex:t})=>{g.set(e,t)});let _=t?.lineHighlight??_J;return(0,Y.jsx)(`g`,J({},r,{children:f.flatMap(({ids:e})=>e.flatMap(e=>{let{xAxisId:t=p,yAxisId:r=m,visibleStackedData:i,data:o,disableHighlight:c,showMark:u,shape:f=`circle`,hidden:h}=d[e];if(h)return null;let v=c?void 0:g.get(t),y=u===`start`||u===`end`?bJ(o,u):void 0,b=v??y;if(b===void 0||o[b]==null)return null;let x=_R(a[t].scale),S=s[r].scale,C=a[t].data;if(C===void 0)throw Error(QE(10,t===`DEFAULT_X_AXIS_KEY`?"The first `xAxis`":`The x-axis with id "${t}"`));let w=x(C[b]),T=S(i[b][1]);if(!l.isPointInside(w,T))return null;let E=IU(d[e],a[t],s[r]);return(0,Y.jsx)(_,J({seriesId:e,color:E(b),x:w,y:T,shape:f},n?.lineHighlight),`${e}`)}))}))}function bJ(e,t){if(t===`start`){let t=e.findIndex(e=>e!=null);return t<0?void 0:t}let n=e.findLastIndex(e=>e!=null);return n<0?void 0:n}function xJ(e){return DC(`MuiChartsGrid`,e)}var SJ=OC(`MuiChartsGrid`,[`root`,`line`,`horizontalLine`,`verticalLine`]),CJ=Z(`g`,{name:`MuiChartsGrid`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${SJ.verticalLine}`]:t.verticalLine},{[`& .${SJ.horizontalLine}`]:t.horizontalLine},t.root]})({}),wJ=Z(`line`,{name:`MuiChartsGrid`,slot:`Line`})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:`crispEdges`,strokeWidth:1}));function TJ(e){let{instance:t}=VR(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=QH({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`x`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,Y.jsx)(b.Fragment,{children:u.map(({value:e,offset:n})=>t.isXInside(n)?(0,Y.jsx)(wJ,{y1:r,y2:i,x1:n,x2:n,className:a.verticalLine},`vertical-${e?.getTime?.()??e}`):null)})}function EJ(e){let{instance:t}=VR(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=QH({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`y`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,Y.jsx)(b.Fragment,{children:u.map(({value:e,offset:n})=>t.isYInside(n)?(0,Y.jsx)(wJ,{y1:n,y2:n,x1:r,x2:i,className:a.horizontalLine},`horizontal-${e?.getTime?.()??e}`):null)})}var DJ=[`className`,`vertical`,`horizontal`],OJ=({classes:e})=>eT({root:[`root`],verticalLine:[`line`,`verticalLine`],horizontalLine:[`line`,`horizontalLine`]},xJ,e);function kJ(e){let t=IE({props:e,name:`MuiChartsGrid`}),n=Gz(),{className:r,vertical:i,horizontal:a}=t,o=WE(t,DJ),{xAxis:s,xAxisIds:c}=kB(),{yAxis:l,yAxisIds:u}=AB(),d=OJ(t),f=l[u[0]],p=s[c[0]];return(0,Y.jsxs)(CJ,J({},o,{className:wC(d.root,r),children:[i&&(0,Y.jsx)(TJ,{axis:p,start:n.top,end:n.height+n.top,classes:d}),a&&(0,Y.jsx)(EJ,{axis:f,start:n.left,end:n.width+n.left,classes:d})]}))}var AJ=Z(`text`,{slot:`internal`,shouldForwardProp:void 0})(({theme:e})=>J({},e.typography.body2,{stroke:`none`,fill:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,textAnchor:`middle`,dominantBaseline:`middle`}));function jJ(e){let{top:t,left:n,height:r,width:i}=Gz(),{localeText:a}=jH();return(0,Y.jsx)(AJ,J({x:n+i/2,y:t+r/2},e,{children:a.loading}))}function MJ(e){let{top:t,left:n,height:r,width:i}=Gz(),{localeText:a}=jH();return(0,Y.jsx)(AJ,J({x:n+i/2,y:t+r/2},e,{children:a.noData}))}function NJ(){let e=zB();return Object.values(e).every(e=>{if(!e)return!0;let{series:t,seriesOrder:n}=e;return n.every(e=>{let n=t[e];return n.type===`sankey`?n.data.links.length===0:n.data.length===0})})}function PJ(e){let t=NJ();if(e.loading){let t=e.slots?.loadingOverlay??jJ;return(0,Y.jsx)(t,J({},e.slotProps?.loadingOverlay))}if(t){let t=e.slots?.noDataOverlay??MJ;return(0,Y.jsx)(t,J({},e.slotProps?.noDataOverlay))}return null}var FJ=[WI,rR,MR,SL,BL,RR,ZN,NR],IJ=`xAxis.yAxis.series.width.height.margin.colors.dataset.sx.onAreaClick.onLineClick.onMarkClick.axisHighlight.disableLineItemHighlight.hideLegend.grid.children.slots.slotProps.skipAnimation.loading.highlightedItem.onHighlightChange.className.showToolbar.brushConfig`.split(`.`),LJ=e=>{let{xAxis:t,yAxis:n,series:r,width:i,height:a,margin:o,colors:s,dataset:c,sx:l,onAreaClick:u,onLineClick:d,onMarkClick:f,axisHighlight:p,disableLineItemHighlight:m,grid:h,children:g,slots:_,slotProps:v,skipAnimation:y,loading:x,highlightedItem:S,onHighlightChange:C,className:w,brushConfig:T}=e,E=WE(e,IJ),D=`${Dw()}-clip-path`,O=b.useMemo(()=>r.map(e=>J({disableHighlight:!!m,type:`line`},e)),[m,r]),k=J({},E,{series:O,width:i,height:a,margin:o,colors:s,dataset:c,xAxis:t??[{id:`DEFAULT_X_AXIS_KEY`,scaleType:`point`,data:Array.from({length:Math.max(...r.map(e=>(e.data??c??[]).length))},(e,t)=>t)}],yAxis:n,highlightedItem:S,onHighlightChange:C,disableAxisListener:v?.tooltip?.trigger!==`axis`&&p?.x===`none`&&p?.y===`none`,skipAnimation:y,brushConfig:T,plugins:FJ}),ee={vertical:h?.vertical,horizontal:h?.horizontal},te={clipPath:`url(#${D})`},A={id:D},ne={slots:_,slotProps:v,onItemClick:u},re={slots:_,slotProps:v,onItemClick:d},ie={slots:_,slotProps:v,onItemClick:f,skipAnimation:y},j={slots:_,slotProps:v,loading:x},M={slots:_,slotProps:v},N=J({x:`line`},p),ae={slots:_,slotProps:v},oe={slots:_,slotProps:v};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1,className:w},chartsContainerProps:k,gridProps:ee,clipPathProps:A,clipPathGroupProps:te,areaPlotProps:ne,linePlotProps:re,markPlotProps:ie,overlayProps:j,chartsAxisProps:M,axisHighlightProps:N,lineHighlightPlotProps:ae,legendProps:oe,children:g}},RJ=50;function zJ(e,t,n,r,i,a,o,s,c,l,u=1/0,d=1,f=0){let p=n.copy(),m=r.copy();p.range([0,1]),m.range([0,1]);let h=function(e){let n=p(t[e].x),r=m(t[e].y);return n>=i&&n<=a&&r>=o&&r<=s},g=n.range()[1]-n.range()[0],_=r.range()[1]-r.range()[0],v=g*g,y=_*_;function b(e,t){return v*e*e+y*t*t}let x=p(BJ(n,c,e=>t[e]?.x)),S=m(BJ(r,l,e=>t[e]?.y));if(x===void 0||S===void 0)return[];let C=typeof f==`number`,w=Number.isFinite(u)?u*u:1/0,T=e.neighbors(x,S,C?d:RJ,w,h,b);if(C)return T;let E=[];for(let e of T){let n=p(t[e].x),r=m(t[e].y),i=b(n-x,r-S);if(i>w)continue;let a=Math.sqrt(i)-f(e);E.push({index:e,edge:a,centerDistSq:i})}E.sort((e,t)=>e.edge-t.edge);let D=E.findLastIndex(e=>e.edge<0);return D!==-1&&(E=[...E.slice(0,D+1).sort((e,t)=>e.centerDistSq-t.centerDistSq),...E.slice(D+1)]),E.slice(0,Math.min(E.length,d)).map(e=>e.index)}function BJ(e,t,n){return oI(e)?n(e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())):e.invert(t)}function VJ(e,t){return t===void 0?!0:e.edgeDistance<=0?t.edgeDistance>0||e.edgeDistance+e.radius{let{chartsLayerContainerRef:r}=n,{disableHitArea:i,hitAreaRadius:a,onItemClick:o}=e,s=i,c=a,{axis:l,axisIds:u}=t.use(uL),{axis:d,axisIds:f}=t.use(dL),p=t.use(YI),{series:m,seriesOrder:h}=t.use(eP)?.scatter??{},g=t.use(p?hL:gL),_=u[0],v=f[0];return UC(()=>{t.set(`voronoi`,{isVoronoiEnabled:!s})},[t,s]),b.useEffect(()=>{if(r.current===null||s)return;let e=r.current;function i(r){let i=xL(e,r);if(!n.isPointInside(i.x,i.y))return`outside-chart`;let a;for(let e of h??[]){let n=(m??{})[e],r=g.get(e);if(!r||n.hidden)continue;let{flatbush:o,getItemRadius:s,maxItemRadius:u}=r,f=n.xAxisId??_,p=n.yAxisId??v,h=ZI(t.state,f),y=ZI(t.state,p),b=c===`item`?u:c,x=(h?.start??0)/100,S=(h?.end??100)/100,C=(y?.start??0)/100,w=(y?.end??100)/100,T=l[f].scale,E=d[p].scale,D=zJ(o,n.data,T,E,x,S,C,w,i.x,i.y,b,1,s)[0];if(D===void 0)continue;let O=n.data[D],k=T(O.x),ee=E(O.y),te=Math.hypot(k-i.x,ee-i.y),A=typeof s==`number`?s:s(D),ne=te-A;if(c===`item`&&ne>0)continue;let re={dataIndex:D,seriesId:e,edgeDistance:ne,radius:A};VJ(re,a)&&(a=re)}return a===void 0?`no-point-found`:{seriesId:a.seriesId,dataIndex:a.dataIndex}}let a=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),u=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),f=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),p=e=>{let t=i(e.detail.srcEvent);if(t===`outside-chart`){n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}if(t===`outside-voronoi-max-radius`||t===`no-point-found`){n.removeTooltipItem?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}let{seriesId:r,dataIndex:a}=t;n.setTooltipItem?.({type:`scatter`,seriesId:r,dataIndex:a}),n.setLastUpdateSource?.(`pointer`),n.setHighlight?.({type:`scatter`,seriesId:r,dataIndex:a})},y=n.addInteractionListener(`tap`,e=>{let t=i(e.detail.srcEvent);if(typeof t!=`string`&&o){let{seriesId:n,dataIndex:r}=t;o(e.detail.srcEvent,{type:`scatter`,seriesId:n,dataIndex:r})}}),b=n.addInteractionListener(`move`,p),x=n.addInteractionListener(`pan`,p),S=n.addInteractionListener(`quickPress`,p);return()=>{y.cleanup(),b.cleanup(),a.cleanup(),x.cleanup(),u.cleanup(),S.cleanup(),f.cleanup()}},[r,d,l,c,o,s,n,h,m,g,_,v,t]),{instance:{enableVoronoi:gE(()=>{t.set(`voronoi`,{isVoronoiEnabled:!0})}),disableVoronoi:gE(()=>{t.set(`voronoi`,{isVoronoiEnabled:!1})})}}};HJ.getDefaultizedParams=({params:e})=>J({},e,{disableHitArea:e.disableHitArea??!e.series.some(e=>e.type===`scatter`)}),HJ.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableHitArea}}),HJ.params={disableHitArea:!0,hitAreaRadius:!0,onItemClick:!0};var UJ=2e4,WJ=5,GJ=1e3,KJ=1e4,qJ=(e,t)=>{let n=Math.max(1,e),r=Math.min(KJ,Math.max(GJ,Math.ceil(Math.max(1,t)/WJ)));return Math.max(1,Math.floor(r/n))},JJ=e=>e.progressiveRendering,YJ=Q(JJ,e=>e?.plans),XJ=Q(JJ,e=>e?.revealedRounds??0);function ZJ(e,t){for(let n in e){if(!Object.hasOwn(e,n))continue;let r=e[n]?.series[t];if(r)return Array.isArray(r.data)?r.data.length:0}return 0}var QJ=$(YJ,eP,function(e,t){let n=new Map;if(!e||e.size===0)return{nBatchesBySeries:n,totalRounds:0,batchSize:GJ};let r=0,i=0,a=new Map;e.forEach(e=>{e.forEach(e=>{let n=ZJ(t,e);a.set(e,n),r+=1,i+=n})});let o=qJ(r,i),s=0;return a.forEach((e,t)=>{let r=Math.max(1,Math.ceil(e/o));n.set(t,r),r>s&&(s=r)}),{nBatchesBySeries:n,totalRounds:s,batchSize:o}});Q(QJ,e=>e.batchSize);var $J=Q(QJ,e=>e.totalRounds);function eY(e,t,n){return Math.min(n?1:t,e)}Q(QJ,XJ,YI,function(e,t,n,r){return eY(e.nBatchesBySeries.get(r)??0,t,n)});var tY=Q(eP,e=>tF(e,`progressiveRendering`),(e,t,n,r)=>{if(r===`svg-single`||r===`svg-batch`)return!1;if(r===`svg-progressive`)return!0;if(!t)return!1;let i=0;for(let t of n)i+=ZJ(e,t);return i>UJ});function nY(e,t){if(!e||e.length!==t.length)return!1;for(let n=0;n{let t=gE((t,n,r)=>{if(tY(e.state,n,r)){if(!nY(e.state.progressiveRendering.plans.get(t),n)){let r=new Map(e.state.progressiveRendering.plans);r.set(t,n),e.set(`progressiveRendering`,{plans:r,revealedRounds:0})}return()=>{if(!e.state.progressiveRendering.plans.has(t))return;let n=new Map(e.state.progressiveRendering.plans);n.delete(t),e.set(`progressiveRendering`,J({},e.state.progressiveRendering,{plans:n}))}}}),n=e.use(YJ)??rY,r=e.use(YI);return b.useEffect(()=>{let t=$J(e.state);if(t===0)return;if(r){let n=Math.min(oY,t);XJ(e.state)!==n&&e.set(`progressiveRendering`,J({},e.state.progressiveRendering,{revealedRounds:n}));return}if(typeof requestAnimationFrame!=`function`){e.set(`progressiveRendering`,J({},e.state.progressiveRendering,{revealedRounds:t}));return}let n=0,i,a=!1,o=XJ(e.state);function s(){let e=aY,t=()=>{if(!a){if(e>0){--e,n=requestAnimationFrame(t);return}c()}};n=requestAnimationFrame(t)}function c(){if(a)return;let t=$J(e.state);o=Math.min(t,o+iY),e.set(`progressiveRendering`,J({},e.state.progressiveRendering,{revealedRounds:o})),o=t))return o>0?i=setTimeout(()=>{n=requestAnimationFrame(c)},sY):n=requestAnimationFrame(c),()=>{a=!0,cancelAnimationFrame(n),i!==void 0&&clearTimeout(i)}},[n,r,e]),{instance:{registerProgressivePlan:t}}};cY.params={},cY.getInitialState=()=>({progressiveRendering:{plans:rY,revealedRounds:0}});var lY=[WI,rR,MR,SL,BL,RR,ZN,HJ,NR,cY],uY=`width.height.margin.children.series.colors.dataset.desc.onAxisClick.highlightedAxis.onHighlightedAxisChange.tooltipAxis.onTooltipAxisChange.tooltipItem.onTooltipItemChange.disableHitArea.hitAreaRadius.onItemClick.disableAxisListener.highlightedItem.onHighlightChange.sx.title.axesGap.xAxis.yAxis.zAxis.rotationAxis.radiusAxis.skipAnimation.seriesConfig.experimentalFeatures.plugins.localeText.slots.slotProps.disableKeyboardNavigation.brushConfig.onHiddenItemsChange.hiddenItems.initialHiddenItems`.split(`.`),dY=e=>{let t=e,{width:n,height:r,margin:i,children:a,series:o,colors:s,dataset:c,desc:l,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,sx:C,title:w,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:ee,skipAnimation:te,seriesConfig:A,experimentalFeatures:ne,plugins:re,localeText:ie,slots:j,slotProps:M,disableKeyboardNavigation:N,brushConfig:ae,onHiddenItemsChange:oe,hiddenItems:se,initialHiddenItems:ce}=t,P=WE(t,uY),F=J({title:w,desc:l,sx:C},P);return{chartsDataProviderProps:{margin:i,series:o,colors:s,dataset:c,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:ee,skipAnimation:te,width:n,height:r,localeText:ie,seriesConfig:A,experimentalFeatures:ne,disableKeyboardNavigation:N,brushConfig:ae,onHiddenItemsChange:oe,hiddenItems:se,initialHiddenItems:ce,plugins:re??lY,slots:j,slotProps:M},chartsSurfaceProps:F,children:a}};function fY(e){return DC(`MuiSvgIcon`,e)}OC(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var pY=e=>{let{color:t,fontSize:n,classes:r}=e;return eT({root:[`root`,t!==`inherit`&&`color${TE(t)}`,`fontSize${TE(n)}`]},fY,r)},mY=Z(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${TE(n.color)}`],t[`fontSize${TE(n.fontSize)}`]]}})(CE(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...NE(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),hY=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=b.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=pY(m);return(0,Y.jsxs)(mY,{as:o,className:wC(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,Y.jsx)(`title`,{children:u}):null]})});hY.muiName=`SvgIcon`;function gY(e,t){function n(t,n){return(0,Y.jsx)(hY,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=hY.muiName,b.memo(b.forwardRef(n))}var _Y=Dw,vY=gE;function yY(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function bY(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return b.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var xY={};function SY(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=b.useRef(null),m=l===!0,h=bY({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=b.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=b.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:b.useCallback((e=xY)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var CY=class e{static create(){return new e}static use(){let t=MD(e.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=TY(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function wY(){return CY.use()}function TY(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var EY=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function DY(){let e=MD(EY.create).current;return PD(e.disposeEffect),e}function OY(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=b.useState(!1),f=DY(),p=b.useRef(!1),m=b.useRef(c);m.current=c;let h=c!=null,g=wC(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=wC(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,Y.jsx)(`span`,{className:g,style:_,children:(0,Y.jsx)(`span`,{className:v})})}var kY=OC(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),AY=`(prefers-reduced-motion: reduce)`,jY=0,MY=`0ms`,NY=()=>{},PY=()=>!1,FY=()=>!0,IY=()=>NY;function LY(e){let[t,n]=b.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),UC(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(AY),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var RY={...b}.useSyncExternalStore;function zY(e){let t=e?FY:PY,[n,r]=b.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[PY,IY];let t=window.matchMedia(AY);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return RY(r,n,t)}var BY=RY===void 0?LY:zY;function VY(e,t){let n=BY(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return b.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:jY,delay:MY}:e}}),[r])}var HY=550,UY={},WY=[],GY=()=>{};function KY(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function qY({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var JY=mx` +export default theme;`}function qT(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var JT=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;eIx(e,t),m),delete m.transitions.reducedMotion,m.unstable_sxConfig={...cC,...d?.unstable_sxConfig},m.unstable_sx=function(e){return dC({sx:e,theme:this})},m.toRuntimeSource=KT,YT(m),m}function ZT(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var QT=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ZT(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function $T(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function eE(e){return e===`dark`?QT:[]}function tE(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=CT({...t,colorSpace:i});return{palette:o,opacity:{...$T(o.mode),...n},overlays:r||eE(o.mode),...a}}function nE(e){return e[0]===`motion`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var rE=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],iE=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return rE(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function aE(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function X(e,t,n){!e[t]&&n&&(e[t]=n)}function oE(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:tw(e)}function sE(e,t){`${t}Channel`in e||(e[`${t}Channel`]=$C(oE(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function cE(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var lE=e=>{try{return e()}catch{}},uE=(e=`mui`)=>qw(e);function dE(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=tE({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=XT({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...$T(a),...n?.opacity},overlays:n?.overlays||eE(a)},s}function fE(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=nE,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=uE(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(yy(21,f));let b;o&&(b=`oklch`);let x=dE(b,v,y,u,f);h&&!v.light&&dE(b,v,h,void 0,`light`),g&&!v.dark&&dE(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...wT(x.typography),...x.font},spacing:cE(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(X(t.common,`background`,`#fff`),X(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(X(t.common,`background`,`#000`),X(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===aw&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===sw&&(r=`#000 ${(n*100).toFixed(0)}%`),e===lw&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(aE(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){X(t.Alert,`errorColor`,r(sw,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(sw,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(sw,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(sw,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-main`)),X(t.Alert,`infoFilledBg`,n(`palette-info-main`)),X(t.Alert,`successFilledBg`,n(`palette-success-main`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),X(t.Alert,`errorFilledColor`,lE(()=>t.getContrastText(t.error.main))),X(t.Alert,`infoFilledColor`,lE(()=>t.getContrastText(t.info.main))),X(t.Alert,`successFilledColor`,lE(()=>t.getContrastText(t.success.main))),X(t.Alert,`warningFilledColor`,lE(()=>t.getContrastText(t.warning.main))),X(t.Alert,`errorStandardBg`,r(lw,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(lw,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(lw,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(lw,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-100`)),X(t.Avatar,`defaultBg`,n(`palette-grey-400`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),X(t.Chip,`defaultBorder`,n(`palette-grey-400`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),X(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),X(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),X(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),X(t.LinearProgress,`primaryBg`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.LinearProgress,`secondaryBg`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.LinearProgress,`errorBg`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.LinearProgress,`infoBg`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.LinearProgress,`successBg`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.LinearProgress,`warningBg`,r(lw,o?p(`palette-warning-light`):t.warning.main,.62)),X(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),X(t.Slider,`primaryTrack`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Slider,`secondaryTrack`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Slider,`errorTrack`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.Slider,`infoTrack`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.Slider,`successTrack`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.Slider,`warningTrack`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(sw,o?p(`palette-background-default`):t.background.default,.6825):dw(t.background.default,.8);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,lE(()=>b?pT.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-400`)),X(t.StepContent,`border`,n(`palette-grey-400`)),X(t.Switch,`defaultColor`,n(`palette-common-white`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),X(t.Switch,`primaryDisabledColor`,r(lw,o?p(`palette-primary-main`):t.primary.main,.62)),X(t.Switch,`secondaryDisabledColor`,r(lw,o?p(`palette-secondary-main`):t.secondary.main,.62)),X(t.Switch,`errorDisabledColor`,r(lw,o?p(`palette-error-main`):t.error.main,.62)),X(t.Switch,`infoDisabledColor`,r(lw,o?p(`palette-info-main`):t.info.main,.62)),X(t.Switch,`successDisabledColor`,r(lw,o?p(`palette-success-main`):t.success.main,.62)),X(t.Switch,`warningDisabledColor`,r(lw,o?p(`palette-warning-main`):t.warning.main,.62)),X(t.TableCell,`border`,r(lw,aw(o?p(`palette-divider`):t.divider,1),.88)),X(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){X(t.Alert,`errorColor`,r(lw,o?p(`palette-error-light`):t.error.light,.6)),X(t.Alert,`infoColor`,r(lw,o?p(`palette-info-light`):t.info.light,.6)),X(t.Alert,`successColor`,r(lw,o?p(`palette-success-light`):t.success.light,.6)),X(t.Alert,`warningColor`,r(lw,o?p(`palette-warning-light`):t.warning.light,.6)),X(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),X(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),X(t.Alert,`successFilledBg`,n(`palette-success-dark`)),X(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),X(t.Alert,`errorFilledColor`,lE(()=>t.getContrastText(t.error.dark))),X(t.Alert,`infoFilledColor`,lE(()=>t.getContrastText(t.info.dark))),X(t.Alert,`successFilledColor`,lE(()=>t.getContrastText(t.success.dark))),X(t.Alert,`warningFilledColor`,lE(()=>t.getContrastText(t.warning.dark))),X(t.Alert,`errorStandardBg`,r(sw,o?p(`palette-error-light`):t.error.light,.9)),X(t.Alert,`infoStandardBg`,r(sw,o?p(`palette-info-light`):t.info.light,.9)),X(t.Alert,`successStandardBg`,r(sw,o?p(`palette-success-light`):t.success.light,.9)),X(t.Alert,`warningStandardBg`,r(sw,o?p(`palette-warning-light`):t.warning.light,.9)),X(t.Alert,`errorIconColor`,n(`palette-error-main`)),X(t.Alert,`infoIconColor`,n(`palette-info-main`)),X(t.Alert,`successIconColor`,n(`palette-success-main`)),X(t.Alert,`warningIconColor`,n(`palette-warning-main`)),X(t.AppBar,`defaultBg`,n(`palette-grey-900`)),X(t.AppBar,`darkBg`,n(`palette-background-paper`)),X(t.AppBar,`darkColor`,n(`palette-text-primary`)),X(t.Avatar,`defaultBg`,n(`palette-grey-600`)),X(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),X(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),X(t.Chip,`defaultBorder`,n(`palette-grey-700`)),X(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),X(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),X(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),X(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),X(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),X(t.LinearProgress,`primaryBg`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.LinearProgress,`secondaryBg`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.LinearProgress,`errorBg`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),X(t.LinearProgress,`infoBg`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),X(t.LinearProgress,`successBg`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),X(t.LinearProgress,`warningBg`,r(sw,o?p(`palette-warning-main`):t.warning.main,.5)),X(t.Skeleton,`bg`,b?r(aw,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),X(t.Slider,`primaryTrack`,r(sw,o?p(`palette-primary-main`):t.primary.main,.5)),X(t.Slider,`secondaryTrack`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.5)),X(t.Slider,`errorTrack`,r(sw,o?p(`palette-error-main`):t.error.main,.5)),X(t.Slider,`infoTrack`,r(sw,o?p(`palette-info-main`):t.info.main,.5)),X(t.Slider,`successTrack`,r(sw,o?p(`palette-success-main`):t.success.main,.5)),X(t.Slider,`warningTrack`,r(sw,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(lw,o?p(`palette-background-default`):t.background.default,.985):dw(t.background.default,.98);X(t.SnackbarContent,`bg`,e),X(t.SnackbarContent,`color`,lE(()=>b?dT.text.primary:t.getContrastText(e))),X(t.SpeedDialAction,`fabHoverBg`,dw(t.background.paper,.15)),X(t.StepConnector,`border`,n(`palette-grey-600`)),X(t.StepContent,`border`,n(`palette-grey-600`)),X(t.Switch,`defaultColor`,n(`palette-grey-300`)),X(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),X(t.Switch,`primaryDisabledColor`,r(sw,o?p(`palette-primary-main`):t.primary.main,.55)),X(t.Switch,`secondaryDisabledColor`,r(sw,o?p(`palette-secondary-main`):t.secondary.main,.55)),X(t.Switch,`errorDisabledColor`,r(sw,o?p(`palette-error-main`):t.error.main,.55)),X(t.Switch,`infoDisabledColor`,r(sw,o?p(`palette-info-main`):t.info.main,.55)),X(t.Switch,`successDisabledColor`,r(sw,o?p(`palette-success-main`):t.success.main,.55)),X(t.Switch,`warningDisabledColor`,r(sw,o?p(`palette-warning-light`):t.warning.main,.55)),X(t.TableCell,`border`,r(sw,aw(o?p(`palette-divider`):t.divider,1),.68)),X(t.Tooltip,`bg`,r(aw,o?p(`palette-grey-700`):t.grey[700],.92))}o||(sE(t.background,`default`),sE(t.background,`paper`),sE(t.common,`background`),sE(t.common,`onBackground`),sE(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&X(t[e],`mainChannel`,$C(oE(n.main))),n.light&&X(t[e],`lightChannel`,$C(oE(n.light))),n.dark&&X(t[e],`darkChannel`,$C(oE(n.dark))),n.contrastText&&X(t[e],`contrastTextChannel`,$C(oE(n.contrastText))),e===`text`&&(sE(t[e],`primary`),sE(t[e],`secondary`)),e===`action`&&(n.active&&sE(t[e],`active`),n.selected&&sE(t[e],`selected`)))})}),S=t.reduce((e,t)=>Ix(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:iE(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=$w(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return NS(u.spacing,TS(this))},S.getColorSchemeSelector=eT(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...cC,...u?.unstable_sxConfig},S.unstable_sx=function(e){return dC({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=KT,S}function pE(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:CT({...n===!0?{}:n.palette,mode:t})})}function mE(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return XT(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=XT({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},pE(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},pE(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),fE({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function hE(e){return typeof e==`string`}function gE(...e){let t=b.useRef(void 0),n=b.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return b.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function _E(e){let t=b.useRef(e);return UC(()=>{t.current=e}),b.useRef((...e)=>(0,t.current)(...e)).current}function vE(e){return e&&e.ownerDocument||document}function yE(e){return vE(e).defaultView||window}var bE=mE();function xE(){let e=yC(bE);return e.$$material||e}function SE(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var CE=e=>SE(e)&&e!==`classes`,Z=LC({themeId:by,defaultTheme:bE,rootShouldForwardProp:CE}),wE=Nw;function TE(e){return Cw(e)}var EE=fS,DE=gE;function OE(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var kE={transition:`none`};function AE(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var jE={},ME=[`all`],NE={};function PE(e,t){let n=t??kE;return AE(e.motion?.reducedMotion,n)}function FE(e,t=ME,n=NE){let r=e.transitions?.create?.(t,n),i=PE(e);if(r===void 0)return i??jE;let a={transition:r};return i?{...a,...i}:a}function IE(e){return DC(`MuiToggleButton`,e)}var LE=OC(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function RE({props:e,name:t}){return HC({props:e,name:t,defaultTheme:bE,themeId:by})}function zE({theme:e,...t}){let n=`$$material`in e?e[by]:void 0;return(0,J.jsx)(jw,{...t,themeId:n?by:void 0,theme:n||e})}var BE={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:VE,useColorScheme:HE,getInitColorSchemeScript:UE}=Kw({themeId:by,theme:()=>mE({cssVariables:!0}),colorSchemeStorageKey:BE.colorSchemeStorageKey,modeStorageKey:BE.modeStorageKey,defaultColorScheme:{light:BE.defaultLightColorScheme,dark:BE.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:kT(e.palette,e.typography)};return t.unstable_sx=function(e){return dC({sx:e,theme:this})},t}}),WE=VE;function GE({theme:e,...t}){let n=b.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[by]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,J.jsx)(zE,{theme:n,...t}):(0,J.jsx)(WE,{theme:e,...t})}function KE(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qE(e,t,n){return e===void 0||hE(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function JE(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function YE(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))JE(n,e[n])&&(t[n]=e[n]);return t}function XE(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function ZE(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=Y(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=YE({...i,...r}),s=XE(r),c=XE(i),l=t(o),u=Y(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function QE(e,t,n){return typeof e==`function`?e(t,n):e}function $E(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:QE(n,r),{props:s,internalRef:c}=ZE({...a,externalSlotProps:o}),l=gE(c,o?.ref,e.additionalProps?.ref);return qE(t,{...s,ref:l},r)}function eD(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var tD=Symbol(`NOT_FOUND`);function nD(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function rD(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var iD=e=>Array.isArray(e)?e:[e];function aD(e){let t=Array.isArray(e[0])?e[0]:e;return rD(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function oD(e,t){let n=[],{length:r}=e;for(let i=0;it(e,n.key));if(r>-1){let e=n[r];return r>0&&(n.splice(r,1),n.unshift(e)),e.value}return tD}function i(t,i){r(t)===tD&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var lD=(e,t)=>e===t;function uD(e){return function(t,n){if(t===null||n===null||t.length!==n.length)return!1;let{length:r}=t;for(let i=0;ii(e.value,t));e&&(t=e.value,o!==0&&o--)}s.put(arguments,t)}return t}return c.clearCache=()=>{s.clear(),c.resetResultsCount()},c.resultsCount=()=>o,c.resetResultsCount=()=>{o=0},c}var fD=class{constructor(e){this.value=e}deref(){return this.value}},pD=typeof WeakRef>`u`?fD:WeakRef,mD=0,hD=1;function gD(){return{s:mD,v:void 0,o:null,p:null}}function _D(e){return e instanceof pD?e.deref():e}function vD(e,t={}){let n=gD(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e{n=gD(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function yD(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),nD(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=vD,argsMemoizeOptions:u=[]}={...n,...a},d=iD(c),f=iD(u),p=aD(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=oD(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var bD=yD({memoize:dD,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Q=(e,t,n,r,i,a,o,s,...c)=>{if(c.length>0)throw Error(eD(179));let l;if(e&&t&&n&&r&&i&&a&&o&&s)l=(c,l,u,d)=>s(e(c,l,u,d),t(c,l,u,d),n(c,l,u,d),r(c,l,u,d),i(c,l,u,d),a(c,l,u,d),o(c,l,u,d),l,u,d);else if(e&&t&&n&&r&&i&&a&&o)l=(s,c,l,u)=>o(e(s,c,l,u),t(s,c,l,u),n(s,c,l,u),r(s,c,l,u),i(s,c,l,u),a(s,c,l,u),c,l,u);else if(e&&t&&n&&r&&i&&a)l=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)l=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)l=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)l=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)l=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)l=e;else throw Error(eD(180));return l},xD=e=>(...t)=>{let n=new WeakMap,r=1,i=t[t.length-1],a=t.length-1||1,o=Math.max(i.length-a,0);if(o>3)throw Error(eD(181));return(a,s,c,l)=>{let u=a.__cacheKey__;u||(u={id:r},a.__cacheKey__=u,r+=1);let d=n.get(u);if(!d){let r=t.length===1?[e=>e,i]:t,a=t,s=[void 0,void 0,void 0];switch(o){case 0:break;case 1:a=[...r.slice(0,-1),()=>s[0],i];break;case 2:a=[...r.slice(0,-1),()=>s[0],()=>s[1],i];break;case 3:a=[...r.slice(0,-1),()=>s[0],()=>s[1],()=>s[2],i];break;default:throw Error(eD(182))}e&&(a=[...a,e]),d=bD(...a),d.selectorArgs=s,n.set(u,d)}switch(o){case 3:d.selectorArgs[2]=l;case 2:d.selectorArgs[1]=c;case 1:d.selectorArgs[0]=s}switch(o){case 0:return d(a);case 1:return d(a,s);case 2:return d(a,s,c);case 3:return d(a,s,c,l);default:throw Error(`unreachable`)}}},$=xD(),SD=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),CD=s(((e,t)=>{t.exports=SD()})),wD=s((e=>{var t=p(),n=CD();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),TD=s(((e,t)=>{t.exports=wD()})),ED=19,DD=CD(),OD=TD(),kD=ED>=19?jD:MD;function AD(e,t,n,r,i){return kD(e,t,n,r,i)}function jD(e,t,n,r,i){let a=b.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,DD.useSyncExternalStore)(e.subscribe,a,a)}function MD(e,t,n,r,i){return(0,OD.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var ND={};function PD(e,t){let n=b.useRef(ND);return n.current===ND&&(n.current=e(t)),n}var FD=[];function ID(e){b.useEffect(e,FD)}var LD=()=>{};function RD(e,t,n){let r=PD(zD,{store:e,selector:t}).current;r.effect=n,ID(r.onMount)}function zD(e){let{store:t,selector:n}=e,r=n(t.state),i={effect:LD,dispose:null,subscribe:()=>{i.dispose??=t.subscribe(e=>{let t=n(e);if(!Object.is(r,t)){let e=r;r=t,i.effect(e,t)}})},onMount:()=>(i.subscribe(),()=>{i.dispose?.(),i.dispose=null})};return i.subscribe(),i}var BD=class e{static create(t){return new e(t)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){this.state=e,this.updateTick+=1;let t=this.updateTick,n=this.listeners.values(),r;for(;r=n.next(),!r.done;){if(t!==this.updateTick)return;let n=r.value;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState(q({},this.state,e));return}}set(e,t){Object.is(this.state[e],t)||this.setState(q({},this.state,{[e]:t}))}use=(e,t,n,r)=>AD(this,e,t,n,r)},VD=({params:e,store:t})=>{b.useEffect(()=>{t.set(`animation`,q({},t.state.animation,{skip:e.skipAnimation}))},[t,e.skipAnimation]);let n=b.useCallback(()=>{let e=!1;return t.set(`animation`,q({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests+1})),()=>{e||(e=!0,t.set(`animation`,q({},t.state.animation,{skipAnimationRequests:t.state.animation.skipAnimationRequests-1})))}},[t]);return UC(()=>{if(typeof window>`u`||!window?.matchMedia)return;let e,t=t=>{t.matches?e=n():e?.()},r=window.matchMedia(`(prefers-reduced-motion)`);return t(r),r.addEventListener(`change`,t),()=>{r.removeEventListener(`change`,t)}},[n,t]),{instance:{disableAnimation:n}}};VD.params={skipAnimation:!0},VD.getDefaultizedParams=({params:e})=>q({},e,{skipAnimation:e.skipAnimation??!1}),VD.getInitialState=({skipAnimation:e})=>(typeof window>`u`||window?.matchMedia,{animation:{skip:e,skipAnimationRequests:0}});var HD=Q(e=>e.animation,e=>e.skip||e.skipAnimationRequests>0);function UD(e,t){let n=b.useRef(!0);b.useEffect(()=>{if(n.current){n.current=!1;return}return e()},t)}var WD=`DEFAULT_X_AXIS_KEY`,GD=`DEFAULT_Y_AXIS_KEY`,KD={top:20,bottom:20,left:20,right:20},qD=e=>e.cartesianAxis?.x,JD=e=>e.cartesianAxis?.y,YD=e=>e.cartesianAxis?.axesGap??0;function XD(){return typeof window>`u`}var ZD=new Map,QD=2e3,$D=new Set([`minWidth`,`maxWidth`,`width`,`minHeight`,`maxHeight`,`height`,`top`,`left`,`fontSize`,`padding`,`margin`,`paddingLeft`,`paddingRight`,`paddingTop`,`paddingBottom`,`marginLeft`,`marginRight`,`marginTop`,`marginBottom`]);function eO(e,t){return $D.has(e)&&t===+t?`${t}px`:t}var tO=/([A-Z])/g;function nO(e){return String(e).replace(tO,e=>`-${e.toLowerCase()}`)}function rO(e){let t=``;for(let n in e)if(Object.hasOwn(e,n)){let r=n,i=e[r];if(i===void 0)continue;t+=`${nO(r)}:${eO(r,i)};`}return t}var iO=(e,t={})=>{if(e==null||XD())return{width:0,height:0};let n=String(e),r=`${n}-${rO(t)}`,i=ZD.get(r);if(i)return i;try{let e=cO(),i=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);Object.keys(t).map(e=>(i.style[nO(e)]=eO(e,t[e]),e)),i.textContent=n,e.replaceChildren(i);let a=oO(i);return ZD.set(r,a),ZD.size+1>QD&&ZD.clear(),a}catch{return{width:0,height:0}}};function aO(e,t={}){if(XD())return new Map(Array.from(e).map(e=>[e,{width:0,height:0}]));let n=new Map,r=[],i=rO(t);for(let t of e){let e=`${t}-${i}`,a=ZD.get(e);a?n.set(t,a):r.push(t)}let a=cO(),o=q({},t);Object.keys(o).map(e=>(a.style[nO(e)]=eO(e,o[e]),e));let s=[];for(let e of r){let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);t.textContent=`${e}`,s.push(t)}a.replaceChildren(...s);for(let e=0;eQD&&ZD.clear(),n}function oO(e){try{let t=e.getBBox();return{width:t.width,height:t.height}}catch{let t=e.getBoundingClientRect();return{width:t.width,height:t.height}}}var sO=null;function cO(){return sO===null&&(sO=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`),sO.setAttribute(`aria-hidden`,`true`),sO.style.position=`absolute`,sO.style.top=`-20000px`,sO.style.left=`0`,sO.style.padding=`0`,sO.style.margin=`0`,sO.style.border=`none`,sO.style.pointerEvents=`none`,sO.style.visibility=`hidden`,sO.style.contain=`strict`,document.body.appendChild(sO)),sO}var lO=(e,t)=>e===void 0?t:Math.PI*e/180,uO=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function dO(e){return e.length}function fO(e){let t=uO.segment(e),n=0;for(let e of t)n+=1;return n}var pO=uO?fO:dO;function mO(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function hO(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function gO(e){let t,n,r;e.length===2?(t=e===mO||e===hO?e:_O,n=e,r=e):(t=mO,n=(t,n)=>mO(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i>>1;n(e[t],r)<0?i=t+1:a=t}while(i>>1;n(e[t],r)<=0?i=t+1:a=t}while(in&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function _O(){return 0}function vO(e){return e===null?NaN:+e}var yO=gO(mO),bO=yO.right;yO.left,gO(vO).center;var xO=class extends Map{constructor(e,t=TO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(SO(this,e))}has(e){return super.has(SO(this,e))}set(e,t){return super.set(CO(this,e),t)}delete(e){return super.delete(wO(this,e))}};function SO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function CO({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function wO({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TO(e){return typeof e==`object`&&e?e.valueOf():e}var EO=Math.sqrt(50),DO=Math.sqrt(10),OO=Math.sqrt(2);function kO(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=EO?10:a>=DO?5:a>=OO?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/lt&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*lt&&--c),c0))return[];if(e===t)return[e];let r=t=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ak(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ak(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=KO.exec(e))?new ck(t[1],t[2],t[3],1):(t=qO.exec(e))?new ck(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=JO.exec(e))?ak(t[1],t[2],t[3],t[4]):(t=YO.exec(e))?ak(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=XO.exec(e))?hk(t[1],t[2]/100,t[3]/100,1):(t=ZO.exec(e))?hk(t[1],t[2]/100,t[3]/100,t[4]):QO.hasOwnProperty(e)?ik(QO[e]):e===`transparent`?new ck(NaN,NaN,NaN,0):null}function ik(e){return new ck(e>>16&255,e>>8&255,e&255,1)}function ak(e,t,n,r){return r<=0&&(e=t=n=NaN),new ck(e,t,n,r)}function ok(e){return e instanceof zO||(e=rk(e)),e?(e=e.rgb(),new ck(e.r,e.g,e.b,e.opacity)):new ck}function sk(e,t,n,r){return arguments.length===1?ok(e):new ck(e,t,n,r??1)}function ck(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}LO(ck,sk,RO(zO,{brighter(e){return e=e==null?VO:VO**+e,new ck(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?BO:BO**+e,new ck(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ck(pk(this.r),pk(this.g),pk(this.b),fk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lk,formatHex:lk,formatHex8:uk,formatRgb:dk,toString:dk}));function lk(){return`#${mk(this.r)}${mk(this.g)}${mk(this.b)}`}function uk(){return`#${mk(this.r)}${mk(this.g)}${mk(this.b)}${mk((isNaN(this.opacity)?1:this.opacity)*255)}`}function dk(){let e=fk(this.opacity);return`${e===1?`rgb(`:`rgba(`}${pk(this.r)}, ${pk(this.g)}, ${pk(this.b)}${e===1?`)`:`, ${e})`}`}function fk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mk(e){return e=pk(e),(e<16?`0`:``)+e.toString(16)}function hk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vk(e,t,n,r)}function gk(e){if(e instanceof vk)return new vk(e.h,e.s,e.l,e.opacity);if(e instanceof zO||(e=rk(e)),!e)return new vk;if(e instanceof vk)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n0&&c<1?0:o,new vk(o,s,c,e.opacity)}function _k(e,t,n,r){return arguments.length===1?gk(e):new vk(e,t,n,r??1)}function vk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}LO(vk,_k,RO(zO,{brighter(e){return e=e==null?VO:VO**+e,new vk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?BO:BO**+e,new vk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ck(xk(e>=240?e-240:e+120,i,r),xk(e,i,r),xk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new vk(yk(this.h),bk(this.s),bk(this.l),fk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=fk(this.opacity);return`${e===1?`hsl(`:`hsla(`}${yk(this.h)}, ${bk(this.s)*100}%, ${bk(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function yk(e){return e=(e||0)%360,e<0?e+360:e}function bk(e){return Math.max(0,Math.min(1,e||0))}function xk(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Sk=e=>()=>e;function Ck(e,t){return function(n){return e+n*t}}function wk(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Tk(e){return(e=+e)==1?Ek:function(t,n){return n-t?wk(t,n,e):Sk(isNaN(t)?n:t)}}function Ek(e,t){var n=t-e;return n?Ck(e,n):Sk(isNaN(e)?t:e)}var Dk=(function e(t){var n=Tk(t);function r(e,t){var r=n((e=sk(e)).r,(t=sk(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Ek(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Ok(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;in&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Mk(r,i)})),n=Fk.lastIndex;return nt&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function qk(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i2?Jk:qk,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),Mk))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Hk),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Bk,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Wk,u()):o!==Wk},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Zk(){return Xk()(Wk,Wk)}function Qk(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function $k(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function eA(e){return e=$k(Math.abs(e)),e?e[1]:NaN}function tA(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function nA(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var rA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iA(e){if(!(t=rA.exec(e)))throw Error(`invalid format: `+e);var t;return new aA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}iA.prototype=aA.prototype;function aA(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}aA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function oA(e){out:for(var t=e.length,n=1,r=-1,i;n0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var sA;function cA(e,t){var n=$k(e,t);if(!n)return sA=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(sA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+$k(e,Math.max(0,t+a-1))[0]}function lA(e,t){var n=$k(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var uA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Qk,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>lA(e*100,t),r:lA,s:cA,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dA(e){return e}var fA=Array.prototype.map,pA=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function mA(e){var t=e.grouping===void 0||e.thousands===void 0?dA:tA(fA.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?dA:nA(fA.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=iA(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):uA[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=uA[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=oA(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&sA!==void 0?pA[8+sA/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++op||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(eA(t)/3)))*3,r=10**-n,i=l((e=iA(e),e.type=`f`,e),{suffix:pA[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var hA,gA,_A;vA({thousands:`,`,grouping:[3],currency:[`$`,``]});function vA(e){return hA=mA(e),gA=hA.format,_A=hA.formatPrefix,hA}function yA(e){return Math.max(0,-eA(Math.abs(e)))}function bA(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(eA(t)/3)))*3-eA(Math.abs(e)))}function xA(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,eA(t)-eA(e))+1}function SA(e,t,n,r){var i=MO(e,t,n),a;switch(r=iA(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=bA(i,o))&&(r.precision=a),_A(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=xA(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=yA(i))&&(r.precision=a-(r.type===`%`)*2)}return gA(r)}function CA(e){var t=e.domain;return e.ticks=function(e){var n=t();return AO(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return SA(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s0;){if(l=jO(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function wA(){var e=Zk();return e.copy=function(){return Yk(e,wA())},NO.apply(e,arguments),CA(e)}function TA(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return ae**+t}function MA(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function NA(e){return(t,n)=>-e(-t,n)}function PA(e){let t=e(EA,DA),n=t.domain,r=10,i,a;function o(){return i=MA(r),a=jA(r),n()[0]<0?(i=NA(i),a=NA(a),e(OA,kA)):e(EA,DA),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s0){for(;l<=u;++l)for(d=1;ds)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(fs)break;m.push(f)}m.length*2{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=iA(n)).precision==null&&(n.trim=!0),n=gA(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*rn(TA(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function FA(){let e=PA(Xk()).domain([1,10]);return e.copy=()=>Yk(e,FA()).base(e.base()),NO.apply(e,arguments),e}function IA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function LA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function RA(e){var t=1,n=e(IA(t),LA(t));return n.constant=function(n){return arguments.length?e(IA(t=+n),LA(t)):t},CA(n)}function zA(){var e=RA(Xk());return e.copy=function(){return Yk(e,zA()).constant(e.constant())},NO.apply(e,arguments)}function BA(e){return function(t){return t<0?-((-t)**+e):t**+e}}function VA(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function HA(e){return e<0?-e*e:e*e}function UA(e){var t=e(Wk,Wk),n=1;function r(){return n===1?e(Wk,Wk):n===.5?e(VA,HA):e(BA(n),BA(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},CA(t)}function WA(){var e=UA(Xk());return e.copy=function(){return Yk(e,WA()).exponent(e.exponent())},NO.apply(e,arguments),e}function GA(){return WA.apply(null,arguments).exponent(.5)}function KA(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[bO(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return KA().domain(e).range(t).unknown(n)},NO.apply(i,arguments)}var qA=new Date,JA=new Date;function YA(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sYA(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(qA.setTime(+t),JA.setTime(+r),e(qA),e(JA),Math.floor(n(qA,JA))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var XA=YA(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);XA.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?YA(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):XA),XA.range;var ZA=1e3,QA=ZA*60,$A=QA*60,ej=$A*24,tj=ej*7,nj=ej*30,rj=ej*365,ij=YA(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ZA)},(e,t)=>(t-e)/ZA,e=>e.getUTCSeconds());ij.range;var aj=YA(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZA)},(e,t)=>{e.setTime(+e+t*QA)},(e,t)=>(t-e)/QA,e=>e.getMinutes());aj.range;var oj=YA(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*QA)},(e,t)=>(t-e)/QA,e=>e.getUTCMinutes());oj.range;var sj=YA(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ZA-e.getMinutes()*QA)},(e,t)=>{e.setTime(+e+t*$A)},(e,t)=>(t-e)/$A,e=>e.getHours());sj.range;var cj=YA(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$A)},(e,t)=>(t-e)/$A,e=>e.getUTCHours());cj.range;var lj=YA(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QA)/ej,e=>e.getDate()-1);lj.range;var uj=YA(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ej,e=>e.getUTCDate()-1);uj.range;var dj=YA(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ej,e=>Math.floor(e/ej));dj.range;function fj(e){return YA(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*QA)/tj)}var pj=fj(0),mj=fj(1),hj=fj(2),gj=fj(3),_j=fj(4),vj=fj(5),yj=fj(6);pj.range,mj.range,hj.range,gj.range,_j.range,vj.range,yj.range;function bj(e){return YA(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/tj)}var xj=bj(0),Sj=bj(1),Cj=bj(2),wj=bj(3),Tj=bj(4),Ej=bj(5),Dj=bj(6);xj.range,Sj.range,Cj.range,wj.range,Tj.range,Ej.range,Dj.range;var Oj=YA(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Oj.range;var kj=YA(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kj.range;var Aj=YA(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Aj.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:YA(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Aj.range;var jj=YA(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());jj.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:YA(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),jj.range;function Mj(e,t,n,r,i,a){let o=[[ij,1,ZA],[ij,5,5*ZA],[ij,15,15*ZA],[ij,30,30*ZA],[a,1,QA],[a,5,5*QA],[a,15,15*QA],[a,30,30*QA],[i,1,$A],[i,3,3*$A],[i,6,6*$A],[i,12,12*$A],[r,1,ej],[r,2,2*ej],[n,1,tj],[t,1,nj],[t,3,3*nj],[e,1,rj]];function s(e,t,n){let r=te).right(o,i);if(a===o.length)return e.every(MO(t/rj,n/rj,r));if(a===0)return XA.every(Math.max(MO(t,n,r),1));let[s,c]=o[i/o[a-1][2]53)return null;`w`in r||(r.w=1),`Z`in r?(a=Rj(zj(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Sj.ceil(a):Sj(a),a=uj.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Lj(zj(r.y,0,1)),o=a.getDay(),a=o>4||o===0?mj.ceil(a):mj(a),a=lj.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Rj(zj(r.y,0,1)).getUTCDay():Lj(zj(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Rj(r)):Lj(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in Vj?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function te(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function ne(e){return o[e.getDay()]}function re(e){return a[e.getDay()]}function ie(e){return c[e.getMonth()]}function j(e){return s[e.getMonth()]}function M(e){return i[+(e.getHours()>=12)]}function N(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function P(e){return i[+(e.getUTCHours()>=12)]}function F(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var Vj={"-":``,_:` `,0:`0`},Hj=/^\s*\d+/,Uj=/^%/,Wj=/[\\^$*+?|[\]().{}]/g;function Gj(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function Yj(e,t,n){var r=Hj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xj(e,t,n){var r=Hj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zj(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qj(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function $j(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function eM(e,t,n){var r=Hj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nM(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function rM(e,t,n){var r=Hj.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function iM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function aM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oM(e,t,n){var r=Hj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function sM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lM(e,t,n){var r=Hj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function uM(e,t,n){var r=Hj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function dM(e,t,n){var r=Hj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fM(e,t,n){var r=Uj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pM(e,t,n){var r=Hj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mM(e,t,n){var r=Hj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hM(e,t){return Gj(e.getDate(),t,2)}function gM(e,t){return Gj(e.getHours(),t,2)}function _M(e,t){return Gj(e.getHours()%12||12,t,2)}function vM(e,t){return Gj(1+lj.count(Aj(e),e),t,3)}function yM(e,t){return Gj(e.getMilliseconds(),t,3)}function bM(e,t){return yM(e,t)+`000`}function xM(e,t){return Gj(e.getMonth()+1,t,2)}function SM(e,t){return Gj(e.getMinutes(),t,2)}function CM(e,t){return Gj(e.getSeconds(),t,2)}function wM(e){var t=e.getDay();return t===0?7:t}function TM(e,t){return Gj(pj.count(Aj(e)-1,e),t,2)}function EM(e){var t=e.getDay();return t>=4||t===0?_j(e):_j.ceil(e)}function DM(e,t){return e=EM(e),Gj(_j.count(Aj(e),e)+(Aj(e).getDay()===4),t,2)}function OM(e){return e.getDay()}function kM(e,t){return Gj(mj.count(Aj(e)-1,e),t,2)}function AM(e,t){return Gj(e.getFullYear()%100,t,2)}function jM(e,t){return e=EM(e),Gj(e.getFullYear()%100,t,2)}function MM(e,t){return Gj(e.getFullYear()%1e4,t,4)}function NM(e,t){var n=e.getDay();return e=n>=4||n===0?_j(e):_j.ceil(e),Gj(e.getFullYear()%1e4,t,4)}function PM(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Gj(t/60|0,`0`,2)+Gj(t%60,`0`,2)}function FM(e,t){return Gj(e.getUTCDate(),t,2)}function IM(e,t){return Gj(e.getUTCHours(),t,2)}function LM(e,t){return Gj(e.getUTCHours()%12||12,t,2)}function RM(e,t){return Gj(1+uj.count(jj(e),e),t,3)}function zM(e,t){return Gj(e.getUTCMilliseconds(),t,3)}function BM(e,t){return zM(e,t)+`000`}function VM(e,t){return Gj(e.getUTCMonth()+1,t,2)}function HM(e,t){return Gj(e.getUTCMinutes(),t,2)}function UM(e,t){return Gj(e.getUTCSeconds(),t,2)}function WM(e){var t=e.getUTCDay();return t===0?7:t}function GM(e,t){return Gj(xj.count(jj(e)-1,e),t,2)}function KM(e){var t=e.getUTCDay();return t>=4||t===0?Tj(e):Tj.ceil(e)}function qM(e,t){return e=KM(e),Gj(Tj.count(jj(e),e)+(jj(e).getUTCDay()===4),t,2)}function JM(e){return e.getUTCDay()}function YM(e,t){return Gj(Sj.count(jj(e)-1,e),t,2)}function XM(e,t){return Gj(e.getUTCFullYear()%100,t,2)}function ZM(e,t){return e=KM(e),Gj(e.getUTCFullYear()%100,t,2)}function QM(e,t){return Gj(e.getUTCFullYear()%1e4,t,4)}function $M(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Tj(e):Tj.ceil(e),Gj(e.getUTCFullYear()%1e4,t,4)}function eN(){return`+0000`}function tN(){return`%`}function nN(e){return+e}function rN(e){return Math.floor(e/1e3)}var iN,aN,oN;sN({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function sN(e){return iN=Bj(e),aN=iN.format,iN.parse,oN=iN.utcFormat,iN.utcParse,iN}function cN(e){return new Date(e)}function lN(e){return e instanceof Date?+e:+new Date(+e)}function uN(e,t,n,r,i,a,o,s,c,l){var u=Zk(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e){let r=t.get(e);if(r===void 0)return;let i=n.length;if(i===0)return;let a=d?i-1-r%i:r%i;return f+l*a},m=()=>{let e=n.length;d=ibN({index:t,domain:n,r0:r,r1:i,isRound:a,paddingInner:o,paddingOuter:s,align:c}),m(),p}function xN(...e){let t=bN(),[n,r]=e;return e.length>1?(t.domain(n),t.range(r)):n&&t.range(n),t}function SN(...e){let t=xN(...e).paddingInner(1),n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=()=>{let e=n();return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=t.copy,e},t}function CN(...e){let t=zA(...e),n=t.ticks,{negativeScale:r,linearScale:i,positiveScale:a}=wN(t);return t.ticks=e=>{let o=n(e),s=t.constant(),c=0,l=0,u=0;o.forEach(e=>{e>-s&&e=s&&(u+=1)});let d=[];if(c>0&&d.push(...r.ticks(c)),l>0){let e=i.ticks(l);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}if(u>0){let e=a.ticks(u);d.at(-1)===e[0]?d.push(...e.slice(1)):d.push(...e)}return d},t.tickFormat=(e=10,n)=>{let o=t.constant(),[s,c]=t.domain(),l=c-s,u=r.domain(),d=u[1]-u[0],f=(l===0?0:d/l)*e,p=i.domain(),m=p[1]-p[0],h=(l===0?0:m/l)*e,g=a.domain(),_=g[1]-g[0],v=(l===0?0:_/l)*e,y=r.tickFormat(f,n),b=i.tickFormat(h,n),x=a.tickFormat(v,n);return e=>(e.valueOf()<=-o?y:e.valueOf()>=o?x:b)(e)},t.copy=()=>CN(t.domain(),t.range()).constant(t.constant()),t}function wN(e){let t=e.constant(),n=e.domain();return{negativeScale:FA([n[0],Math.min(n[1],-t)],e.range()),linearScale:wA([Math.max(n[0],-t),Math.min(n[1],t)],e.range()),positiveScale:FA([Math.max(n[0],t),n[1]],e.range())}}function TN(e,t,n){switch(e){case`log`:return FA(t,n);case`pow`:return WA(t,n);case`sqrt`:return GA(t,n);case`time`:return dN(t,n);case`utc`:return fN(t,n);case`symlog`:return CN(t,n);default:return wA(t,n)}}function EN(e){return`groups`in e&&Array.isArray(e.groups)&&e.groups.length>0}function DN(e,t){let n=new Set;for(let r=0;rpO(e)))}function AN(e){if(e.length<=ON)return e;let t=[],n=1,r=null;for(let i of e){let e=i.split(` +`).length;e>n&&(n=e,r=i);let a=kN(i);if(t.lengtht[0].length){let e=t.findIndex(e=>e.length>a);t.splice(e===-1?t.length:e,0,{label:i,length:a}),t.length>ON&&t.shift()}}return r!==null&&t.find(e=>e.label===r)===void 0&&t.push({label:r,length:kN(r)}),t.map(e=>e.label)}function jN(e,t){let{valueFormatter:n,scaleType:r,data:i}=e;if(r===`band`||r===`point`){if(!i||i.length===0)return[];let e=r===`band`?xN(i,[0,1]):SN(i,[0,1]);return AN(i.map(t=>n?n(t,{location:`tick`,scale:e,defaultTickLabel:`${t}`}):`${t}`))}let a=t?t.domain[0]:0,o=t?t.domain[1]:100,s=t?.tickNumber??2,c=TN(r??`linear`,[a,o],[0,1]),l=a===o?[a]:[a,o],u=c.tickFormat(s);return l.map(e=>{let t=u(e);return n?n(e,{location:`tick`,scale:c,defaultTickLabel:t}):t})}function MN(e,t){if(e.length===0)return{maxWidth:0,maxHeight:0};let n=new Set;for(let t of e){let e=t.split(` +`);for(let t of e)n.add(t)}let r=aO(n,t),i=0,a=0;for(let t of e){let e=t.split(` +`),n=0,o=0;for(let t of e){let e=r.get(t)??{width:0,height:0};n=Math.max(n,e.width),o+=e.height}i=Math.max(i,n),a=Math.max(a,o)}return{maxWidth:i,maxHeight:a}}function NN(e,t,n,r){if(!n||n%180==0)return r===`x`?t:e;if(n%90==0)return r===`x`?e:t;let i=lO(Math.abs(n)),a=Math.cos(i),o=Math.sin(i);return r===`x`?Math.abs(e*o)+Math.abs(t*a):Math.abs(e*a)+Math.abs(t*o)}function PN(e,t){let{groups:n,data:r,tickSize:i,tickLabelStyle:a}=e,o=!!e.label;if(!r||r.length===0)return{size:20};let s=[],c=[],l=i??6;for(let e=0;e{let i={},a=new Map;return e.forEach((e,o)=>{let s=r[e.type].getSeriesWithDefaultValues(e,o,t,n),c=s.id;if(i[e.type]===void 0&&(i[e.type]={series:{},seriesOrder:[]}),i[e.type]?.series[c]!==void 0)throw Error(eD(34,c));if(i[e.type].series[c]=s,i[e.type].seriesOrder.push(c),a.has(c))throw Error(eD(35,c));a.set(c,e.type)}),{defaultizedSeries:i,idToType:a}},LN=(e,t,n,r)=>{let i={};return Object.keys(t).forEach(a=>{let o=e[a];o!==void 0&&(i[a]=t[a]?.seriesProcessor?.(o,n,r)??o)}),i},RN=(e,t,n)=>{let r=!1,i={};return Object.keys(e).forEach(a=>{let o=t[a]?.seriesLayout,s=e[a];if(o!==void 0&&s!==void 0){let t=o(s,n);t&&t!==e[a]&&(r=!0,i[a]=t)}}),r?i:{}},zN=(e,t)=>{let n=e[t.type]?.identifierSerializer;if(!n)throw Error(eD(43,t.type));return n(t)},BN=(e,t)=>{let n=e[t.type]?.identifierCleaner;if(!n)throw Error(eD(42,t.type));return n(t)},VN=({store:e})=>({instance:{serializeIdentifier:_E(t=>zN(e.state.seriesConfig.config,t)),cleanIdentifier:_E(function(t){return BN(e.state.seriesConfig.config,t)})}});VN.params={seriesConfig:!0},VN.getDefaultizedParams=({params:e})=>q({},e,{seriesConfig:e.seriesConfig??{}}),VN.getInitialState=({seriesConfig:e})=>({seriesConfig:{config:e}});var HN=Q(e=>e.seriesConfig,e=>e.config),UN=e=>e.visibilityManager,WN=new Map,GN=$(Q(UN,e=>e?.visibilityMap??WN),HN,(e,t)=>n=>{let r=zN(t,n);return!e.has(r)}),KN=(e,t)=>{let n=new Map;return e&&e.forEach(e=>{let r=zN(t,e);n.set(r,e)}),n},qN=[`#4254FB`,`#FFB422`,`#FA4F58`,`#0DBEFF`,`#22BF75`,`#FA83B4`,`#FF7511`],JN=[`#495AFB`,`#FFC758`,`#F35865`,`#30C8FF`,`#44CE8D`,`#F286B3`,`#FF8C39`],YN=e=>e===`dark`?JN:qN;function XN(e){function t(t){if(t.type!==void 0)return t;let n=e.series.idToType.get(t.seriesId);if(n===void 0)throw Error(eD(36,t.seriesId));return q({},t,{type:n})}return t}var ZN=({params:e,store:t})=>{let{series:n,dataset:r,theme:i,colors:a}=e;return UD(()=>{let{defaultizedSeries:e,idToType:o}=IN({series:n,colors:typeof a==`function`?a(i):a,theme:i,seriesConfig:t.state.seriesConfig.config});t.set(`series`,q({},t.state.series,{defaultizedSeries:e,idToType:o,dataset:r}))},[a,r,n,i,t]),{instance:{identifierWithType:XN(t.state)}}};ZN.params={dataset:!0,series:!0,colors:!0,theme:!0};var QN=[];ZN.getDefaultizedParams=({params:e})=>q({},e,{series:e.series?.length?e.series:QN,colors:e.colors??YN,theme:e.theme??`light`}),ZN.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},i)=>{let a=i.seriesConfig.config,{defaultizedSeries:o,idToType:s}=IN({series:e,colors:typeof t==`function`?t(n):t,theme:n,seriesConfig:a});return{series:{defaultizedSeries:o,idToType:s,dataset:r}}};var $N=({store:e,params:t,instance:n})=>{UD(()=>{t.hiddenItems!==void 0&&e.set(`visibilityManager`,q({},e.state.visibilityManager,{visibilityMap:KN(t.hiddenItems.map(e=>n.identifierWithType(e,`visibility`)),e.state.seriesConfig.config)}))},[e,n,t.hiddenItems]);let r=_E(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(i.has(o))return;let s=new Map(i);s.set(o,a),e.set(`visibilityManager`,q({},e.state.visibilityManager,{visibilityMap:s}));let c=Array.from(s.values());t.onHiddenItemsChange?.(c)}),i=_E(r=>{let i=e.state.visibilityManager.visibilityMap,a=n.identifierWithType(r,`visibility`),o=n.serializeIdentifier(a);if(!i.has(o))return;let s=new Map(i);s.delete(o),e.set(`visibilityManager`,q({},e.state.visibilityManager,{visibilityMap:s})),t.onHiddenItemsChange?.(Array.from(s.values()))});return{instance:{hideItem:r,showItem:i,toggleItemVisibility:_E(t=>{let a=e.state.visibilityManager.visibilityMap,o=n.identifierWithType(t,`visibility`),s=n.serializeIdentifier(o);a.has(s)?i(o):r(o)})}}};$N.getInitialState=(e,t)=>{let n=t.seriesConfig.config,r=e.hiddenItems??e.initialHiddenItems;return{visibilityManager:{visibilityMap:r?KN(r.map(e=>XN(t)(e)),n):WN,isControlled:e.hiddenItems!==void 0}}},$N.params={onHiddenItemsChange:!0,hiddenItems:!0,initialHiddenItems:!0};var eP=e=>e.series,tP=Q(eP,e=>e.defaultizedSeries),nP=$(tP,HN,Q(eP,e=>e.dataset),GN,function(e,t,n,r){return LN(e,t,n,r)}),rP=$(HN,nP,(e,t)=>function(n){for(let r in t){if(!Object.hasOwn(t,r))continue;let i=t[r];if(i?.series&&i.series[n])return e[r]}return null});function iP(e){return e.scaleType===`band`}function aP(e){return e.scaleType===`point`}function oP(e){return e.scaleType!==`point`&&e.scaleType!==`band`}function sP(e){return e.scaleType===`symlog`}var cP,lP,uP=class{types=new Set;constructor(){if(cP)throw Error(eD(24));cP=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},dP=class{types=new Set;constructor(){if(lP)throw Error(eD(25));lP=this.types}addType(e){this.types.add(e)}getTypes(){return this.types}},fP=new uP;fP.addType(`bar`),fP.addType(`line`),fP.addType(`scatter`);var pP=new dP;pP.addType(`radar`);function mP(e){return fP.getTypes().has(e)}function hP(e){return mP(e.type)}var gP=(e,t,n,r,i,a,o)=>{let s=n===`x`?r[e].xExtremumGetter:r[e].yExtremumGetter,c=a[e]?.series??{};return s?.({series:c,axis:t,axisIndex:i,isDefaultAxis:i===0,getFilters:o})??[1/0,-1/0]};function _P(e,t,n,r,i,a){let o=Object.keys(n).filter(mP),s=[1/0,-1/0];for(let c of o){let[o,l]=gP(c,e,t,n,r,i,a);s=[Math.min(s[0],o),Math.max(s[1],l)]}return Number.isNaN(s[0])||Number.isNaN(s[1])?[1/0,-1/0]:s}var vP={},yP=$(qD,nP,HN,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!iP(e)&&!aP(e)&&(r[e.id]=_P(e,`x`,n,a,t),i=!0)}),i?r:vP}),bP=$(JD,nP,HN,function(e,t,n){let r={},i=!1;return e?.forEach((e,a)=>{!iP(e)&&!aP(e)&&(r[e.id]=_P(e,`y`,n,a,t),i=!0)}),i?r:vP}),xP=(e,t,n,r)=>{if(e.domainLimit!==void 0)return e.domainLimit;if(t===`x`)for(let t of r.line?.seriesOrder??[]){let i=r.line.series[t];if(i.xAxisId===e.id||i.xAxisId===void 0&&n===0)return`strict`}return`nice`};function SP(e,t,n){let{tickMaxStep:r,tickMinStep:i,tickNumber:a}=e,o=i===void 0?999:Math.floor(Math.abs(t[1]-t[0])/i),s=r===void 0?2:Math.ceil(Math.abs(t[1]-t[0])/r);return Math.min(o,Math.max(s,a??n))}function CP(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function wP(e){return Math.floor(Math.abs(e)/50)}function TP(e,t,n){return TN(e??`linear`,t,[0,1]).nice(n).domain()}function EP(e,t,n,r,[i,a],o){let s=xP(e,t,n,r),c=OP(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}let l=SP(e,c,o);return s===`nice`&&(c=TP(e.scaleType,c,l)),c=[`min`in e?e.min??c[0]:c[0],`max`in e?e.max??c[1]:c[1]],{domain:c,tickNumber:l}}function DP(e,t,n,r,[i,a],o){let s=xP(e,t,n,r),c=OP(e,i,a);if(typeof s==`function`){let{min:e,max:t}=s(i.valueOf(),a.valueOf());c[0]=e,c[1]=t}return s===`nice`&&(c=TP(e.scaleType,c,o)),[e.min??c[0],e.max??c[1]]}function OP(e,t,n){let r=t,i=n;return`max`in e&&e.max!=null&&e.maxn&&(i=e.min),!(`min`in e)&&!(`max`in e)?[r,i]:[e.min??r,e.max??i]}function kP(e,t,n,r,i){let a={};return e?.forEach((e,o)=>{let s=e;if(iP(s)||aP(s)){a[s.id]={domain:s.data},s.ordinalTimeTicks!==void 0&&(a[s.id].tickNumber=SP(s,[s.data?.find(e=>e!==null),s.data?.findLast(e=>e!==null)],n));return}let c=r[s.id];c&&(a[s.id]=EP(s,i,o,t,c,n))}),a}var AP=8,jP={},MP=$(qD,nP,yP,function(e,t,n){let r=kP(e,t,AP,n,`x`);return Object.keys(r).length>0?r:jP}),NP=$(JD,nP,bP,function(e,t,n){let r=kP(e,t,AP,n,`y`);return Object.keys(r).length>0?r:jP}),PP=e=>e.dimensions.width&&e.dimensions.height,FP={},IP={},LP=$(qD,PP,MP,function(e,t,n){if(!e?.some(e=>e.height===`auto`)||!t)return IP;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.height===`auto`){let e=FN({axis:i,direction:`x`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),RP=$(LP,function(e){if(e===IP)return FP;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t}),zP=$(JD,PP,NP,function(e,t,n){if(!e?.some(e=>e.width===`auto`)||!t)return IP;let r={};for(let t=0;t<(e?.length??0);t+=1){let i=e[t];if(i.width===`auto`){let e=FN({axis:i,direction:`y`,domain:n[i.id]});e!==void 0&&(r[i.id]=e)}}return r}),BP=$(zP,function(e){if(e===IP)return FP;let t={};for(let[n,r]of Object.entries(e))t[n]=r.size;return t});function VP(e){return 25+(e.label?20:0)}function HP(e){return 45+(e.label?20:0)}function UP(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.height===`auto`?r[t.id]??VP(t):t.height??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}function WP(e,t,n,r){let i=0,a=0;for(let t of e??[]){if(t.position!==n)continue;let e;e=t.width===`auto`?r[t.id]??HP(t):t.width??0,i+=e+(t.zoom?.slider.enabled?t.zoom.slider.size:0),a+=1}return i+t*Math.max(0,a-1)}var GP=$(Q(JD,YD,BP,function(e,t,n){return WP(e,t,`left`,n)}),Q(JD,YD,BP,function(e,t,n){return WP(e,t,`right`,n)}),Q(qD,YD,RP,function(e,t,n){return UP(e,t,`top`,n)}),Q(qD,YD,RP,function(e,t,n){return UP(e,t,`bottom`,n)}),function(e,t,n,r){return{left:e,right:t,top:n,bottom:r}}),KP=e=>e.dimensions,qP=$(KP,e=>e.dimensions.margin,GP,function({width:e,height:t},{top:n,right:r,bottom:i,left:a},{left:o,right:s,top:c,bottom:l}){return{width:e-a-r-o-s,left:a+o,right:r+s,height:t-n-i-c-l,top:n+c,bottom:i+l}}),JP=Q(KP,e=>e.width),YP=Q(KP,e=>e.height),XP=Q(KP,e=>e.propsWidth),ZP=Q(KP,e=>e.propsHeight);function QP(e,t){return typeof e==`number`?{top:e,bottom:e,left:e,right:e}:t?q({},t,e):e}var $P=10,eF=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,i=e.width!==void 0&&e.height!==void 0,a=b.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[o,s]=b.useState(0),[c,l]=b.useState(0),u=b.useCallback(()=>{let n=r?.current;if(!n)return{};let i=yE(n).getComputedStyle(n),a=Math.floor(parseFloat(i.height))||0,o=Math.floor(parseFloat(i.width))||0;return(t.state.dimensions.width!==o||t.state.dimensions.height!==a)&&t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??o,height:e.height??a,propsWidth:e.width,propsHeight:e.height}),{height:a,width:o}},[t,r,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);UD(()=>{let n=e.width??t.state.dimensions.width,r=e.height??t.state.dimensions.height;t.set(`dimensions`,{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:n,height:r,propsHeight:e.height,propsWidth:e.width})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),b.useEffect(()=>{a.current.displayError=!0},[]),UC(()=>{if(i||!a.current.initialCompute||a.current.computeRun>$P)return;let e=u();e.width!==o||e.height!==c?(a.current.computeRun+=1,e.width!==void 0&&s(e.width),e.height!==void 0&&l(e.height)):a.current.initialCompute&&(a.current.initialCompute=!1)},[c,o,u,i]),UC(()=>{if(i)return()=>{};u();let e=r.current;if(typeof ResizeObserver>`u`)return()=>{};let t,n=new ResizeObserver(()=>{t=requestAnimationFrame(()=>{u()})});return e&&n.observe(e),()=>{t&&cancelAnimationFrame(t),e&&n.unobserve(e)}},[u,i,r]);let d=t.use(qP),f=b.useCallback(e=>e>=d.left-1&&e<=d.left+d.width,[d.left,d.width]),p=b.useCallback(e=>e>=d.top-1&&e<=d.top+d.height,[d.height,d.top]);return{instance:{isPointInside:b.useCallback((e,t,n)=>n&&`closest`in n&&n.closest(`[data-drawing-container]`)?!0:f(e)&&p(t),[f,p]),isXInside:f,isYInside:p}}};eF.params={width:!0,height:!0,margin:!0},eF.getDefaultizedParams=({params:e})=>q({},e,{margin:QP(e.margin,KD)}),eF.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});var tF=()=>({instance:{chartsLayerContainerRef:b.useRef(null),chartRootRef:b.useRef(null)}});tF.params={};var nF=({params:e,store:t})=>(UC(()=>{t.set(`experimentalFeatures`,e.experimentalFeatures)},[t,e.experimentalFeatures]),{});nF.params={experimentalFeatures:!0},nF.getInitialState=({experimentalFeatures:e})=>({experimentalFeatures:e});var rF=(e,t)=>e.experimentalFeatures?.[t],iF=0,aF=()=>(iF+=1,`mui-chart-${iF}`),oF=({params:e,store:t})=>(b.useEffect(()=>{e.id===void 0||e.id===t.state.id.providedChartId&&t.state.id.chartId!==void 0||t.set(`id`,q({},t.state.id,{chartId:e.id??aF()}))},[t,e.id]),{});oF.params={id:!0},oF.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});var sF=Q(e=>e.id,e=>e.chartId),cF=$(nP,HN,qP,function(e,t,n){return RN(e,t,n)});function lF(e,...t){let n=new URL(`https://mui.com/x/production-error`);return n.searchParams.set(`code`,e.toString()),t.forEach(e=>n.searchParams.append(`args[]`,e)),`MUI X error #${e}; visit ${n} for the full message.`}var uF={abort:!0,animationcancel:!0,animationend:!0,animationiteration:!0,animationstart:!0,auxclick:!0,beforeinput:!0,beforetoggle:!0,blur:!0,cancel:!0,canplay:!0,canplaythrough:!0,change:!0,click:!0,close:!0,command:!0,compositionend:!0,compositionstart:!0,compositionupdate:!0,contextlost:!0,contextmenu:!0,contextrestored:!0,copy:!0,cuechange:!0,cut:!0,dblclick:!0,drag:!0,dragend:!0,dragenter:!0,dragleave:!0,dragover:!0,dragstart:!0,drop:!0,durationchange:!0,emptied:!0,ended:!0,error:!0,focus:!0,focusin:!0,focusout:!0,formdata:!0,gotpointercapture:!0,input:!0,invalid:!0,keydown:!0,keypress:!0,keyup:!0,load:!0,loadeddata:!0,loadedmetadata:!0,loadstart:!0,lostpointercapture:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,paste:!0,pause:!0,play:!0,playing:!0,pointercancel:!0,pointerdown:!0,pointerenter:!0,pointerleave:!0,pointermove:!0,pointerout:!0,pointerover:!0,pointerup:!0,progress:!0,ratechange:!0,reset:!0,resize:!0,scroll:!0,scrollend:!0,securitypolicyviolation:!0,seeked:!0,seeking:!0,select:!0,selectionchange:!0,selectstart:!0,slotchange:!0,stalled:!0,submit:!0,suspend:!0,timeupdate:!0,toggle:!0,touchcancel:!0,touchend:!0,touchmove:!0,touchstart:!0,transitioncancel:!0,transitionend:!0,transitionrun:!0,transitionstart:!0,volumechange:!0,waiting:!0,webkitanimationend:!0,webkitanimationiteration:!0,webkitanimationstart:!0,webkittransitionend:!0,wheel:!0,beforematch:!0,pointerrawupdate:!0},dF=class{customData={};constructor(e){if(!e||!e.name)throw Error(lF(164));if(e.name in uF)throw Error(lF(165,e.name));this.name=e.name,this.preventDefault=e.preventDefault??!1,this.stopPropagation=e.stopPropagation??!1,this.preventIf=e.preventIf??[],this.requiredKeys=e.requiredKeys??[],this.pointerMode=e.pointerMode??[],this.pointerOptions=e.pointerOptions??{}}init(e,t,n,r){this.element=e,this.pointerManager=t,this.gesturesRegistry=n,this.keyboardManager=r;let i=`${this.name}ChangeOptions`;this.element.addEventListener(i,this.handleOptionsChange);let a=`${this.name}ChangeState`;this.element.addEventListener(a,this.handleStateChange)}handleOptionsChange=e=>{e&&e.detail&&this.updateOptions(e.detail)};updateOptions(e){this.preventDefault=e.preventDefault??this.preventDefault,this.stopPropagation=e.stopPropagation??this.stopPropagation,this.preventIf=e.preventIf??this.preventIf,this.requiredKeys=e.requiredKeys??this.requiredKeys,this.pointerMode=e.pointerMode??this.pointerMode,this.pointerOptions=e.pointerOptions??this.pointerOptions}getBaseConfig(){return{requiredKeys:this.requiredKeys}}getEffectiveConfig(e,t){if(e!==`mouse`&&e!==`touch`&&e!==`pen`)return t;let n=this.pointerOptions[e];return n?q({},t,n):t}handleStateChange=e=>{e&&e.detail&&this.updateState(e.detail)};updateState(e){Object.assign(this.state,e)}getTargetElement(e){return this.isActive||this.element===e.target||`contains`in this.element&&this.element.contains(e.target)||`getRootNode`in this.element&&this.element.getRootNode()instanceof ShadowRoot&&e.composedPath().includes(this.element)?this.element:null}set isActive(e){e?this.gesturesRegistry.registerActiveGesture(this.element,this):this.gesturesRegistry.unregisterActiveGesture(this.element,this)}get isActive(){return this.gesturesRegistry.isGestureActive(this.element,this)??!1}shouldPreventGesture(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());if(!this.keyboardManager.areKeysPressed(n.requiredKeys))return!0;if(this.preventIf.length===0)return!1;let r=this.gesturesRegistry.getActiveGestures(e);return this.preventIf.some(e=>r[e])}isPointerTypeAllowed(e){return!this.pointerMode||this.pointerMode.length===0||this.pointerMode.includes(e)}destroy(){let e=`${this.name}ChangeOptions`;this.element.removeEventListener(e,this.handleOptionsChange);let t=`${this.name}ChangeState`;this.element.removeEventListener(t,this.handleStateChange)}},fF=class{activeGestures=new Map;registerActiveGesture(e,t){this.activeGestures.has(e)||this.activeGestures.set(e,new Set);let n=this.activeGestures.get(e),r={gesture:t,element:e};n.add(r)}unregisterActiveGesture(e,t){let n=this.activeGestures.get(e);n&&(n.forEach(e=>{e.gesture===t&&n.delete(e)}),n.size===0&&this.activeGestures.delete(e))}getActiveGestures(e){let t=this.activeGestures.get(e);return t?Array.from(t).reduce((e,t)=>(e[t.gesture.name]=!0,e),{}):{}}isGestureActive(e,t){let n=this.activeGestures.get(e);return n?Array.from(n).some(e=>e.gesture===t):!1}destroy(){this.activeGestures.clear()}unregisterElement(e){this.activeGestures.delete(e)}};function pF(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:mF,platform:hF,maxTouchPoints:gF}=pF(),_F=mF.toLowerCase(),vF=hF.toLowerCase(),yF=/^i(os$|p)/.test(vF)||vF===`macintel`&&gF>1,bF=`android`,xF=vF===bF||_F.includes(bF),SF=!yF&&vF.startsWith(`mac`);vF.startsWith(`win`),!xF&&/^(linux|chrome os)/.test(vF);var CF=SF||yF,wF=class{pressedKeys=new Set;constructor(){this.initialize()}initialize(){typeof window>`u`||(window.addEventListener(`keydown`,this.handleKeyDown),window.addEventListener(`keyup`,this.handleKeyUp),window.addEventListener(`blur`,this.clearKeys))}handleKeyDown=e=>{this.pressedKeys.add(e.key)};handleKeyUp=e=>{this.pressedKeys.delete(e.key)};clearKeys=()=>{this.pressedKeys.clear()};areKeysPressed(e){return!e||e.length===0||e.every(e=>e===`ControlOrMeta`?CF?this.pressedKeys.has(`Meta`):this.pressedKeys.has(`Control`):this.pressedKeys.has(e))}destroy(){typeof window<`u`&&(window.removeEventListener(`keydown`,this.handleKeyDown),window.removeEventListener(`keyup`,this.handleKeyUp),window.removeEventListener(`blur`,this.clearKeys)),this.clearKeys()}},TF=class{preventEventInterruption=!0;pointers=new Map;gestureHandlers=new Set;constructor(e){this.root=e.root??document.getRootNode({composed:!0})??document.body,this.touchAction=e.touchAction||`auto`,this.passive=e.passive??!1,this.preventEventInterruption=e.preventEventInterruption??!0,this.setupEventListeners()}registerGestureHandler(e){return this.gestureHandlers.add(e),()=>{this.gestureHandlers.delete(e)}}getPointers(){return this.pointers}setupEventListeners(){this.touchAction!==`auto`&&(this.root.style.touchAction=this.touchAction),this.root.addEventListener(`pointerdown`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointermove`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointerup`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`pointercancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`forceCancel`,this.handlePointerEvent,{passive:this.passive}),this.root.addEventListener(`blur`,this.handleInterruptEvents),this.root.addEventListener(`contextmenu`,this.handleInterruptEvents)}handleInterruptEvents=e=>{if(this.preventEventInterruption&&`pointerType`in e&&e.pointerType===`touch`){e.preventDefault();return}let t=new PointerEvent(`forceCancel`,{bubbles:!1,cancelable:!1}),n=this.pointers.values().next().value;if(this.pointers.size>0&&n){Object.defineProperties(t,{clientX:{value:n.clientX},clientY:{value:n.clientY},pointerId:{value:n.pointerId},pointerType:{value:n.pointerType}});for(let[e,t]of this.pointers.entries()){let n=q({},t,{type:`forceCancel`});this.pointers.set(e,n)}}this.notifyHandlers(t),this.pointers.clear()};handlePointerEvent=e=>{let{type:t,pointerId:n}=e;if(t===`pointerdown`||t===`pointermove`)this.pointers.set(n,this.createPointerData(e));else if(t===`pointerup`||t===`pointercancel`||t===`forceCancel`){this.pointers.set(n,this.createPointerData(e)),this.notifyHandlers(e),this.pointers.delete(n);return}this.notifyHandlers(e)};notifyHandlers(e){this.gestureHandlers.forEach(t=>t(this.pointers,e))}createPointerData(e){return{pointerId:e.pointerId,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,target:e.target,timeStamp:e.timeStamp,type:e.type,isPrimary:e.isPrimary,pressure:e.pressure,width:e.width,height:e.height,pointerType:e.pointerType,srcEvent:e}}destroy(){this.root.removeEventListener(`pointerdown`,this.handlePointerEvent),this.root.removeEventListener(`pointermove`,this.handlePointerEvent),this.root.removeEventListener(`pointerup`,this.handlePointerEvent),this.root.removeEventListener(`pointercancel`,this.handlePointerEvent),this.root.removeEventListener(`forceCancel`,this.handlePointerEvent),this.root.removeEventListener(`blur`,this.handleInterruptEvents),this.root.removeEventListener(`contextmenu`,this.handleInterruptEvents),this.pointers.clear(),this.gestureHandlers.clear()}},EF=class{gestureTemplates=new Map;elementGestureMap=new Map;activeGesturesRegistry=new fF;keyboardManager=new wF;constructor(e){this.pointerManager=new TF({root:e.root,touchAction:e.touchAction,passive:e.passive}),e.gestures&&e.gestures.length>0&&e.gestures.forEach(e=>{this.addGestureTemplate(e)})}addGestureTemplate(e){this.gestureTemplates.set(e.name,e)}addGestures(e){e.forEach(e=>{this.addGestureTemplate(e)})}removeGestures(e){e.forEach(e=>{this.elementGestureMap.forEach((t,n)=>{this.unregisterElement(e,n)}),this.gestureTemplates.delete(e)})}setGestureOptions(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeOptions`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}setGestureState(e,t,n){let r=this.elementGestureMap.get(t);if(!r||!r.has(e))return;let i=new CustomEvent(`${e}ChangeState`,{detail:n,bubbles:!1,cancelable:!1,composed:!1});t.dispatchEvent(i)}registerElement(e,t,n){return Array.isArray(e)||(e=[e]),e.forEach(e=>{let r=n?.[e];this.registerSingleGesture(e,t,r)}),t}registerSingleGesture(e,t,n){let r=this.gestureTemplates.get(e);if(!r)return!1;this.elementGestureMap.has(t)||this.elementGestureMap.set(t,new Map);let i=this.elementGestureMap.get(t);i.has(e)&&this.unregisterElement(e,t);let a=r.clone(n);return a.init(t,this.pointerManager,this.activeGesturesRegistry,this.keyboardManager),i.set(e,a),!0}unregisterElement(e,t){let n=this.elementGestureMap.get(t);return!n||!n.has(e)?!1:(n.get(e).destroy(),n.delete(e),this.activeGesturesRegistry.unregisterElement(t),n.size===0&&this.elementGestureMap.delete(t),!0)}unregisterAllGestures(e){let t=this.elementGestureMap.get(e);if(t){for(let[,n]of t)n.destroy(),this.activeGesturesRegistry.unregisterElement(e);this.elementGestureMap.delete(e)}}destroy(){for(let[e]of this.elementGestureMap)this.unregisterAllGestures(e);this.gestureTemplates.clear(),this.elementGestureMap.clear(),this.activeGesturesRegistry.destroy(),this.keyboardManager.destroy(),this.pointerManager.destroy()}},DF=class extends dF{unregisterHandler=null;originalTarget=null;constructor(e){super(e),this.minPointers=e.minPointers??1,this.maxPointers=e.maxPointers??1/0}init(e,t,n,r){super.init(e,t,n,r),this.unregisterHandler=this.pointerManager.registerGestureHandler(this.handlePointerEvent)}updateOptions(e){super.updateOptions(e),this.minPointers=e.minPointers??this.minPointers,this.maxPointers=e.maxPointers??this.maxPointers}getBaseConfig(){return{requiredKeys:this.requiredKeys,minPointers:this.minPointers,maxPointers:this.maxPointers}}isWithinPointerCount(e,t){let n=this.getEffectiveConfig(t,this.getBaseConfig());return e.length>=n.minPointers&&e.length<=n.maxPointers}getRelevantPointers(e,t){return e.filter(e=>{if(!this.isPointerTypeAllowed(e.pointerType))return!1;let n=t===e.target||e.target===this.originalTarget||t===this.originalTarget||`contains`in t&&t.contains(e.target),r=`getRootNode`in t&&t.getRootNode()instanceof ShadowRoot&&e.srcEvent.composedPath().includes(t);return n||r})}destroy(){this.unregisterHandler&&=(this.unregisterHandler(),null),super.destroy()}};function OF(e){if(e.length===0)return{x:0,y:0};let t=e.reduce((e,t)=>(e.x+=t.clientX,e.y+=t.clientY,e),{x:0,y:0});return{x:t.x/e.length,y:t.y/e.length}}function kF(e,t){return`${e}${t===`ongoing`?``:t.charAt(0).toUpperCase()+t.slice(1)}`}var AF=1e-5,jF=.15;function MF(e,t){let n=t.x-e.x,r=t.y-e.y,i={vertical:null,horizontal:null,mainAxis:null},a=NF(t,e),o=Math.abs(n)>Math.abs(r)?`horizontal`:`vertical`,s=a||o===`horizontal`?AF:jF,c=a?AF:o===`horizontal`?jF:AF;return Math.abs(n)>s&&(i.horizontal=n>0?`right`:`left`),Math.abs(r)>c&&(i.vertical=r>0?`down`:`up`),i.mainAxis=a?`diagonal`:o,i}function NF(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n)*180/Math.PI;return i>=-44.99999&&i<=-22.49999||i>=22.50001&&i<=45.00001||i>=135.00001&&i<=157.50001||i>=-157.49999&&i<=-134.99999}function PF(e,t){if(!e.vertical&&!e.horizontal)return!1;if(t.length===0)return!0;let n=e.vertical===null||t.includes(e.vertical),r=e.horizontal===null||t.includes(e.horizontal);return n&&r}var FF=class e extends DF{state={lastPosition:null};constructor(e){super(e),this.threshold=e.threshold||0}clone(t){return new e(q({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}init(e,t,n,r){super.init(e,t,n,r),this.element.addEventListener(`pointerenter`,this.handleElementEnter),this.element.addEventListener(`pointerleave`,this.handleElementLeave)}destroy(){this.element.removeEventListener(`pointerenter`,this.handleElementEnter),this.element.removeEventListener(`pointerleave`,this.handleElementLeave),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e)}resetState(){this.isActive=!1,this.state={lastPosition:null}}handleElementEnter=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());if(this.isWithinPointerCount(n,e.pointerType)){this.isActive=!0;let t={x:e.clientX,y:e.clientY};this.state.lastPosition=t,this.emitMoveEvent(this.element,`start`,n,e),this.emitMoveEvent(this.element,`ongoing`,n,e)}};handleElementLeave=e=>{if(e.pointerType!==`mouse`&&e.pointerType!==`pen`||!this.isActive)return;let t=this.pointerManager.getPointers()||new Map,n=Array.from(t.values());this.emitMoveEvent(this.element,`end`,n,e),this.resetState()};handlePointerEvent=(e,t)=>{if(t.type!==`pointermove`||t.pointerType!==`mouse`&&t.pointerType!==`pen`)return;this.preventDefault&&t.preventDefault(),this.stopPropagation&&t.stopPropagation();let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r||!this.isWithinPointerCount(n,t.pointerType))return;if(this.shouldPreventGesture(r,t.pointerType)){if(!this.isActive)return;this.resetState(),this.emitMoveEvent(r,`end`,n,t);return}let i={x:t.clientX,y:t.clientY};this.state.lastPosition=i,this.isActive||(this.isActive=!0,this.emitMoveEvent(r,`start`,n,t)),this.emitMoveEvent(r,`ongoing`,n,t)};emitMoveEvent(e,t,n,r){let i=this.state.lastPosition||OF(n),a=this.gesturesRegistry.getActiveGestures(e),o={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,activeGestures:a,customData:this.customData},s=kF(this.name,t),c=new CustomEvent(s,{bubbles:!0,cancelable:!0,composed:!0,detail:o});e.dispatchEvent(c)}},IF=class e extends DF{state={startPointers:new Map,startCentroid:null,lastCentroid:null,movementThresholdReached:!1,totalDeltaX:0,totalDeltaY:0,activeDeltaX:0,activeDeltaY:0,lastDirection:{vertical:null,horizontal:null,mainAxis:null},lastDeltas:null};constructor(e){super(e),this.direction=e.direction||[`up`,`down`,`left`,`right`],this.threshold=e.threshold||0}clone(t){return new e(q({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,threshold:this.threshold,minPointers:this.minPointers,maxPointers:this.maxPointers,direction:[...this.direction],requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.direction=e.direction||this.direction,this.threshold=e.threshold??this.threshold}resetState(){this.isActive=!1,this.state=q({},this.state,{startPointers:new Map,startCentroid:null,lastCentroid:null,lastDeltas:null,activeDeltaX:0,activeDeltaY:0,movementThresholdReached:!1,lastDirection:{vertical:null,horizontal:null,mainAxis:null}})}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancel(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.cancel(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.cancel(r,i,t);return}switch(t.type){case`pointerdown`:if(!this.isActive&&!this.state.startCentroid)i.forEach(e=>{this.state.startPointers.set(e.pointerId,e)}),this.originalTarget=r,this.state.startCentroid=OF(i),this.state.lastCentroid=q({},this.state.startCentroid);else if(this.state.startCentroid&&this.state.lastCentroid){let e=this.state.lastCentroid,t=OF(i),n=t.x-e.x,r=t.y-e.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t,i.forEach(e=>{this.state.startPointers.has(e.pointerId)||this.state.startPointers.set(e.pointerId,e)})}break;case`pointermove`:if(this.state.startCentroid&&this.isWithinPointerCount(n,t.pointerType)){let e=OF(i),n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y,o=Math.sqrt(n*n+a*a),s=MF(this.state.lastCentroid??this.state.startCentroid,e),c=this.state.lastCentroid?e.x-this.state.lastCentroid.x:0,l=this.state.lastCentroid?e.y-this.state.lastCentroid.y:0;!this.state.movementThresholdReached&&o>=this.threshold&&PF(s,this.direction)?(this.state.movementThresholdReached=!0,this.isActive=!0,this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`start`,i,t,e),this.emitPanEvent(r,`ongoing`,i,t,e)):this.state.movementThresholdReached&&this.isActive&&(this.state.lastDeltas={x:c,y:l},this.state.totalDeltaX+=c,this.state.totalDeltaY+=l,this.state.activeDeltaX+=c,this.state.activeDeltaY+=l,this.emitPanEvent(r,`ongoing`,i,t,e)),this.state.lastCentroid=e,this.state.lastDirection=s}break;case`pointerup`:case`pointercancel`:case`forceCancel`:if(this.isActive&&this.state.movementThresholdReached){let e=i.filter(e=>e.type!==`pointerup`&&e.type!==`pointercancel`);if(!this.isWithinPointerCount(e,t.pointerType)){let e=this.state.lastCentroid||this.state.startCentroid;t.type===`pointercancel`&&this.emitPanEvent(r,`cancel`,i,t,e),this.emitPanEvent(r,`end`,i,t,e),this.resetState()}else if(e.length>=1&&this.state.lastCentroid){let t=OF(e),n=t.x-this.state.lastCentroid.x,r=t.y-this.state.lastCentroid.y;this.state.startCentroid={x:this.state.startCentroid.x+n,y:this.state.startCentroid.y+r},this.state.lastCentroid=t;let a=i.find(e=>e.type===`pointerup`||e.type===`pointercancel`)?.pointerId;a!==void 0&&this.state.startPointers.delete(a)}}else this.resetState()}};emitPanEvent(e,t,n,r,i){if(!this.state.startCentroid)return;let a=this.state.lastDeltas?.x??0,o=this.state.lastDeltas?.y??0,s=this.state.startPointers.values().next().value,c=s?(r.timeStamp-s.timeStamp)/1e3:0,l=c>0?a/c:0,u=c>0?o/c:0,d=Math.sqrt(l*l+u*u),f=this.gesturesRegistry.getActiveGestures(e),p={gestureName:this.name,initialCentroid:this.state.startCentroid,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,deltaX:a,deltaY:o,direction:this.state.lastDirection,velocityX:l,velocityY:u,velocity:d,totalDeltaX:this.state.totalDeltaX,totalDeltaY:this.state.totalDeltaY,activeDeltaX:this.state.activeDeltaX,activeDeltaY:this.state.activeDeltaY,activeGestures:f,customData:this.customData},m=kF(this.name,t),h=new CustomEvent(m,{bubbles:!0,cancelable:!0,composed:!0,detail:p});e.dispatchEvent(h),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancel(e,t,n){if(this.isActive){let r=e??this.element;this.emitPanEvent(r,`cancel`,t,n,this.state.lastCentroid),this.emitPanEvent(r,`end`,t,n,this.state.lastCentroid)}this.resetState()}},LF=class e extends DF{state={startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1};constructor(e){super(e),this.duration=e.duration??500,this.maxDistance=e.maxDistance??10}clone(t){return new e(q({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,duration:this.duration,maxDistance:this.maxDistance,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.clearPressTimer(),this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.duration=e.duration??this.duration,this.maxDistance=e.maxDistance??this.maxDistance}resetState(){this.clearPressTimer(),this.isActive=!1,this.state=q({},this.state,{startCentroid:null,lastPosition:null,timerId:null,startTime:0,pressThresholdReached:!1})}clearPressTimer(){this.state.timerId!==null&&(clearTimeout(this.state.timerId),this.state.timerId=null)}handlePointerEvent=(e,t)=>{let n=Array.from(e.values());if(t.type===`forceCancel`){this.cancelPress(t.target,n,t);return}let r=this.getTargetElement(t);if(!r)return;if(this.shouldPreventGesture(r,t.pointerType)){this.isActive&&this.cancelPress(r,n,t);return}let i=this.getRelevantPointers(n,r);if(!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelPress(r,i,t);return}switch(t.type){case`pointerdown`:!this.isActive&&!this.state.startCentroid&&(this.state.startCentroid=OF(i),this.state.lastPosition=q({},this.state.startCentroid),this.state.startTime=t.timeStamp,this.isActive=!0,this.originalTarget=r,this.clearPressTimer(),this.state.timerId=setTimeout(()=>{if(this.isActive&&this.state.startCentroid){this.state.pressThresholdReached=!0;let e=this.state.lastPosition;this.emitPressEvent(r,`start`,i,t,e),this.emitPressEvent(r,`ongoing`,i,t,e)}},this.duration));break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=OF(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelPress(r,i,t)}break;case`pointerup`:if(this.isActive){if(this.state.pressThresholdReached){let e=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(r,`end`,i,t,e)}this.resetState()}break;case`pointercancel`:case`forceCancel`:this.cancelPress(r,i,t)}};emitPressEvent(e,t,n,r,i){let a=this.gesturesRegistry.getActiveGestures(e),o=r.timeStamp-this.state.startTime,s={gestureName:this.name,centroid:i,target:r.target,srcEvent:r,phase:t,pointers:n,timeStamp:r.timeStamp,x:i.x,y:i.y,duration:o,activeGestures:a,customData:this.customData},c=kF(this.name,t),l=new CustomEvent(c,{bubbles:!0,cancelable:!0,composed:!0,detail:s});e.dispatchEvent(l),this.preventDefault&&r.preventDefault(),this.stopPropagation&&r.stopPropagation()}cancelPress(e,t,n){if(this.isActive&&this.state.pressThresholdReached){let r=this.state.lastPosition||this.state.startCentroid;this.emitPressEvent(e??this.element,`cancel`,t,n,r),this.emitPressEvent(e??this.element,`end`,t,n,r)}this.resetState()}},RF=class e extends DF{state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null};constructor(e){super(e),this.maxDistance=e.maxDistance??10,this.taps=e.taps??1}clone(t){return new e(q({name:this.name,preventDefault:this.preventDefault,stopPropagation:this.stopPropagation,minPointers:this.minPointers,maxPointers:this.maxPointers,maxDistance:this.maxDistance,taps:this.taps,requiredKeys:[...this.requiredKeys],pointerMode:[...this.pointerMode],preventIf:[...this.preventIf],pointerOptions:structuredClone(this.pointerOptions)},t))}destroy(){this.resetState(),super.destroy()}updateOptions(e){super.updateOptions(e),this.maxDistance=e.maxDistance??this.maxDistance,this.taps=e.taps??this.taps}resetState(){this.isActive=!1,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state={startCentroid:null,currentTapCount:0,lastTapTime:0,lastPosition:null,multiTapResetTimeoutId:null}}handlePointerEvent=(e,t)=>{let n=Array.from(e.values()),r=this.getTargetElement(t);if(!r)return;let i=this.getRelevantPointers(n,r);if(this.shouldPreventGesture(r,t.pointerType)||!this.isWithinPointerCount(i,t.pointerType)){this.isActive&&this.cancelTap(r,i,t);return}switch(t.type){case`pointerdown`:this.isActive||(this.state.startCentroid=OF(i),this.state.lastPosition=q({},this.state.startCentroid),this.isActive=!0,this.originalTarget=r);break;case`pointermove`:if(this.isActive&&this.state.startCentroid){let e=OF(i);this.state.lastPosition=e;let n=e.x-this.state.startCentroid.x,a=e.y-this.state.startCentroid.y;Math.sqrt(n*n+a*a)>this.maxDistance&&this.cancelTap(r,i,t)}break;case`pointerup`:if(this.isActive){this.state.currentTapCount+=1;let e=this.state.lastPosition||this.state.startCentroid;if(!e){this.cancelTap(r,i,t);return}this.state.currentTapCount>=this.taps?(this.fireTapEvent(r,i,t,e),this.resetState()):(this.state.lastTapTime=t.timeStamp,this.isActive=!1,this.state.startCentroid=null,this.state.multiTapResetTimeoutId!==null&&clearTimeout(this.state.multiTapResetTimeoutId),this.state.multiTapResetTimeoutId=setTimeout(()=>{this.state.multiTapResetTimeoutId=null,this.state.currentTapCount>0&&this.state.currentTapCounte.preventDefault(),BF=({instance:e})=>{let{chartsLayerContainerRef:t}=e,n=b.useRef(null);b.useEffect(()=>{let e=t.current;n.current||=new EF({gestures:[new IF({name:`pan`,threshold:0,maxPointers:1}),new FF({name:`move`,preventIf:[`pan`,`zoomPinch`,`zoomPan`]}),new RF({name:`tap`,preventIf:[`zoomPinch`,`zoomPan`]}),new LF({name:`quickPress`,duration:50}),new IF({name:`brush`,threshold:0,maxPointers:1})]});let r=n.current;if(!(!e||!r))return r.registerElement([`pan`,`move`,`tap`,`quickPress`,`brush`],e),()=>{r.destroy(),n.current=null}},[t,n]);let r=b.useCallback((e,n,r)=>{let i=t.current;return i?.addEventListener(e,n,r),{cleanup:()=>i?.removeEventListener(e,n,r)}},[t]),i=b.useCallback((e,r)=>{let i=t.current,a=n.current;!a||!i||a.setGestureOptions(e,i,r??{})},[t,n]);return b.useEffect(()=>{let e=t.current;return e?.addEventListener(`gesturestart`,zF),e?.addEventListener(`gesturechange`,zF),e?.addEventListener(`gestureend`,zF),()=>{e?.removeEventListener(`gesturestart`,zF),e?.removeEventListener(`gesturechange`,zF),e?.removeEventListener(`gestureend`,zF)}},[t]),{instance:{addInteractionListener:r,updateZoomInteractionListeners:i,registerGestures:b.useCallback(e=>{let r=t.current,i=n.current;if(!i||!r)return()=>{};let a=e.map(e=>e.name);return i.addGestures(e),i.registerElement(a,r),()=>{i.removeGestures(a)}},[t,n])}}};BF.params={},BF.getInitialState=()=>({});var VF=[tF,oF,VN,nF,eF,ZN,BF,VD],HF=[`apiRef`],UF=e=>{let{plugins:t}=e,n=KE(e.props,HF),r={};t.forEach(e=>{Object.assign(r,e.params)});let i={};return Object.keys(n).forEach(e=>{let t=n[e];r[e]&&(i[e]=t)}),t.reduce((e,t)=>t.getDefaultizedParams?t.getDefaultizedParams({params:e}):e,i)},WF=0;function GF(e,t){let n=Dw(),r=b.useMemo(()=>[...VF,...e],[e]),i=UF({plugins:r,props:t});i.id=i.id??n;let a=b.useRef({}).current,o=qF(t.apiRef),s=b.useRef(null);if(s.current==null){WF+=1;let e={cacheKey:{id:WF}};r.forEach(t=>{t.getInitialState&&Object.assign(e,t.getInitialState(i,e))}),s.current=new BD(e)}return r.forEach(e=>{let t=e({instance:a,params:i,plugins:r,store:s.current});t.publicAPI&&Object.assign(o.current,t.publicAPI),t.instance&&Object.assign(a,t.instance)}),{contextValue:b.useMemo(()=>({store:s.current,publicAPI:o.current,instance:a}),[a,o])}}function KF(e){return e.current??={},e}function qF(e){let t=b.useRef({});return e?KF(e):t}var JF=b.createContext(null),YF=`hover`,XF=(e,t,n)=>{let r=n??!1;return e===`y`&&(t===`band`||t===`point`)?!r:r},ZF={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:`keep`,reverse:!1,slider:{enabled:!1,preview:!1,size:28,showTooltip:YF}},QF=(e,t,n,r)=>{if(e)return e===!0?q({axisId:t,axisDirection:n},ZF,{reverse:r??!1}):q({axisId:t,axisDirection:n},ZF,{reverse:r??!1},e,{slider:q({},ZF.slider,{size:e.slider?.preview??ZF.slider.preview?48:28},e.slider)})};function $F(e,t,n){let r={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:WD,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`bottom`:`none`,s=e.position??o,c=25+(e.label?20:0),l=e.id??`defaultized-x-axis-${i}`,u=e.height??c,d=q({offset:r[s]},e,{id:l,position:s,height:u,zoom:QF(e.zoom,l,`x`,XF(`x`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(eD(37));return q({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function eI(e,t,n){let r={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:GD,scaleType:`linear`}]).map((e,i)=>{let a=e.dataKey,o=i===0?`left`:`none`,s=e.position??o,c=45+(e.label?20:0),l=e.id??`defaultized-y-axis-${i}`,u=e.width??c,d=q({offset:r[s]},e,{id:l,position:s,width:u,zoom:QF(e.zoom,l,`y`,XF(`y`,e.scaleType,e.reverse))});if(s!==`none`&&(r[s]+=(u===`auto`?c:u)+n,d.zoom?.slider.enabled&&(r[s]+=d.zoom.slider.size)),e.data!==void 0||a===void 0&&!e.valueGetter)return d;if(t===void 0)throw Error(eD(38));return q({},d,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])})})}function tI(e,t){return function(n,r){if(r.location===`tick`){let t=r.scale.domain();return t[0]===t[1]?r.scale.tickFormat(1)(n):r.scale.tickFormat(e)(n)}return r.location===`zoom-slider-tooltip`?t.tickFormat(2)(n):`${n}`}}function nI(e){return e.type===`piecewise`?KA(e.thresholds,e.colors).unknown(e.unknownColor??null):hN([e.min??0,e.max??100],e.color).unknown(e.unknownColor??null)}function rI(e){return e.values?IO(e.values,e.colors).unknown(e.unknownColor??null):IO(e.colors.map((e,t)=>t),e.colors).unknown(e.unknownColor??null)}function iI(e){return e.type===`ordinal`?rI(e):nI(e)}var aI=e=>e?.[0]instanceof Date;function oI(e,t,n){let r=dN(e,t);return(e,{location:t})=>t===`tick`?r.tickFormat(n)(e):`${e.toLocaleString()}`}var sI=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(mP).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function cI(e){return e.bandwidth!==void 0}function lI(e){return cI(e)&&e.paddingOuter!==void 0}function uI(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n?[r[1],r[0]]:r}function dI(e,t){return e.step()*t<.1}function fI(e,t,n){let r=n===`x`?e.height:e.width;if(r===`auto`){let r=t?.[e.id];return r===void 0?(n===`x`?25:45)+(e.label?20:0):r}return r??0}var pI=.2,mI=.1;function hI(e,t,n,r){let i={},a={};for(let o of e){let e=o.position;if(e&&(i[e]??=0,a[o.id]=i[e],e!==`none`)){let a=fI(o,t,n);i[e]+=a+r;let s=o.zoom;s?.slider.enabled&&(i[e]+=s.slider.size)}}return a}function gI({scales:e,drawingArea:t,formattedSeries:n,axis:r,seriesConfig:i,axisDirection:a,zoomMap:o,domains:s,autoSizes:c,axesGap:l=0}){if(r===void 0)return{axis:{},axisIds:[]};let u=sI(a,i,n,r[0].id),d=hI(r,c,a,l),f={};return r.forEach(n=>{let r=n,i=e[r.id],l=o?.get(r.id),p=l?[l.start,l.end]:[0,100],m=uI(t,a,r.reverse??!1),h=s[r.id].tickNumber,g=!r.ignoreTooltip&&u.has(r.id),_=CP(h,p),v=fI(r,c,a),y=r.data??[],b=d[r.id]??r.offset??0;if(cI(i)){let e=a===`y`?[m[1],m[0]]:m;if(lI(i)&&iP(r)){let e=r.categoryGapRatio??pI,t=dI(i,e),n=t?0:e,o=t?0:r.barGapRatio??mI;f[r.id]=q({categoryGapRatio:n,barGapRatio:o,triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:t?i.copy().padding(0):i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?rI(q({values:r.data},r.colorMap)):iI(r.colorMap))})}if(aP(r)&&(f[r.id]=q({triggerTooltip:g},r,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scale:i,tickNumber:_,colorScale:r.colorMap&&(r.colorMap.type===`ordinal`?rI(q({values:r.data},r.colorMap)):iI(r.colorMap))})),aI(r.data)){let t=oI(r.data,e,r.tickNumber);f[r.id].valueFormatter=r.valueFormatter??t}return}if(r.scaleType===`band`||r.scaleType===`point`)return;let x=r,S=x.scaleType??`linear`;f[r.id]=q({triggerTooltip:g},x,{offset:b},a===`x`?{height:v}:{width:v},{data:y,scaleType:S,scale:i,tickNumber:_,colorScale:x.colorMap&&nI(x.colorMap),valueFormatter:r.valueFormatter??tI(_,TN(S,m.map(e=>i.invert(e)),m))})}),{axis:f,axisIds:r.map(({id:e})=>e)}}function _I(e){return e!=null}function vI(e,t,n,r){let i=e?.length??0,a=Math.floor(t*i/100),o=Math.ceil(n*i/100);return function(t,n){return(t[r]??e?.[n])==null||n>=a&&n=s&&n<=c}}var bI=e=>({currentAxisId:t,seriesXAxisId:n,seriesYAxisId:r,isDefaultAxis:i})=>(a,o)=>!(t===n?r:n)||i?Object.values(e??{})[0]?.(a,o)??!0:[r,n].filter(e=>e!==t).map(t=>e[t??``]).filter(_I).every(e=>e(a,o)),xI=e=>(t=[])=>t.reduce((t,n)=>{let{zoom:r,id:i,reverse:a,scaleType:o}=n,s=QF(r,i,e,XF(e,o,a));return s&&(t[i]=s),t},{}),SI=.2;function CI(e,t,n){let r=t===`x`?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}var wI=new WeakMap;function TI(e,t,n){let r=wI.get(e);r||(r=new Map,wI.set(e,r));let i=r.get(t);return i||(i=n(),r.set(t,i)),i}function EI(e,t){let n=[0,1];if(iP(e)){let r=e.categoryGapRatio??SI;return TI(t,`band:${r}`,()=>xN(t,n).paddingInner(r).paddingOuter(r/2))}if(aP(e))return TI(t,`point`,()=>SN(t,n));let r=TN(e.scaleType??`linear`,t,n);return sP(e)&&e.constant!=null&&r.constant(e.constant),r}var DI=(e,t)=>{let n=e[1]-e[0],r=t[1]-t[0];return[e[0]-t[0]*n/r,e[1]+(100-t[1])*n/r]},OI=class{constructor(e=1/0,t=Float64Array,n=Uint32Array){let r=e!==1/0;this.ids=r?new n(e):[],this.values=r?new t(e):[],this.capacity=e,this.length=0}clear(){this.length=0}push(e,t){if(this.length===this.capacity)throw RangeError(`Queue is at capacity.`);let n=this.length++;for(;n>0;){let e=n-1>>1,r=this.values[e];if(t>=r)break;this.ids[n]=this.ids[e],this.values[n]=r,n=e}this.ids[n]=e,this.values[n]=t}pop(){if(this.length===0)return;let e=this.ids,t=this.values,n=e[0],r=--this.length;if(r>0){let n=e[r],i=t[r],a=0,o=r>>1;for(;a=i)break;e[a]=e[s],t[a]=t[s],a=s}e[a]=n,t[a]=i}return n}peek(){return this.length>0?this.ids[0]:void 0}peekValue(){return this.length>0?this.values[0]:void 0}shrink(){Array.isArray(this.ids)&&(this.ids.length=this.length),Array.isArray(this.values)&&(this.values.length=this.length)}},kI=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],AI=3,jI=class e{static from(t,n=0){if(n%8!=0)throw Error(eD(13));if(!t||t.byteLength===void 0||t.buffer)throw Error(eD(14));let[r,i]=new Uint8Array(t,n+0,2);if(r!==251)throw Error(eD(15));let a=i>>4;if(a!==AI)throw Error(eD(16,a,AI));let o=kI[i&15];if(!o)throw Error(eD(17));let[s]=new Uint16Array(t,n+2,1),[c]=new Uint32Array(t,n+4,1);return new e(c,s,o,void 0,t,n)}constructor(e,t=16,n=Float64Array,r=ArrayBuffer,i,a=0){if(e===void 0)throw Error(eD(18));if(isNaN(e)||e<=0)throw Error(eD(19,e));this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.byteOffset=a;let o=e,s=o;this._levelBounds=[o*4];do o=Math.ceil(o/this.nodeSize),s+=o,this._levelBounds.push(s*4);while(o!==1);this.ArrayType=n,this.IndexArrayType=s<16384?Uint16Array:Uint32Array;let c=kI.indexOf(n),l=s*4*n.BYTES_PER_ELEMENT;if(c<0)throw Error(eD(20,n));if(i)this.data=i,this._boxes=new n(i,a+8,s*4),this._indices=new this.IndexArrayType(i,a+8+l,s),this._pos=s*4,this.minX=this._boxes[this._pos-4],this.minY=this._boxes[this._pos-3],this.maxX=this._boxes[this._pos-2],this.maxY=this._boxes[this._pos-1];else{let i=this.data=new r(8+l+s*this.IndexArrayType.BYTES_PER_ELEMENT);this._boxes=new n(i,8,s*4),this._indices=new this.IndexArrayType(i,8+l,s),this._pos=0,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,new Uint8Array(i,0,2).set([251,48+c]),new Uint16Array(i,2,1)[0]=t,new Uint32Array(i,4,1)[0]=e}this._queue=new OI}add(e,t,n=e,r=t){let i=this._pos>>2,a=this._boxes;return this._indices[i]=i,a[this._pos++]=e,a[this._pos++]=t,a[this._pos++]=n,a[this._pos++]=r,ethis.maxX&&(this.maxX=n),r>this.maxY&&(this.maxY=r),i}finish(){if(this._pos>>2!==this.numItems)throw Error(eD(21,this._pos>>2,this.numItems));let e=this._boxes;if(this.numItems<=this.nodeSize){e[this._pos++]=this.minX,e[this._pos++]=this.minY,e[this._pos++]=this.maxX,e[this._pos++]=this.maxY;return}let t=this.maxX-this.minX||1,n=this.maxY-this.minY||1,r=new Uint32Array(this.numItems),i=65535;for(let a=0,o=0;a>2]=t,e[this._pos++]=i,e[this._pos++]=a,e[this._pos++]=o,e[this._pos++]=s}}}search(e,t,n,r,i){if(this._pos!==this._boxes.length)throw Error(eD(22));let a=this._boxes.length-4,o=[],s=[];for(;a!==void 0;){let c=Math.min(a+this.nodeSize*4,NI(a,this._levelBounds));for(let l=a;lthis._boxes[l+2]||t>this._boxes[l+3])continue;let c=this._indices[l>>2]|0;a>=this.numItems*4?o.push(c):(i===void 0||i(c))&&(s.push(c),s.push(this._boxes[l]),s.push(this._boxes[l+1]))}a=o.pop()}return s}neighbors(e,t,n=1/0,r=1/0,i,a=MI){if(this._pos!==this._boxes.length)throw Error(eD(23));let o=this._boxes.length-4,s=this._queue,c=[];outer:for(;o!==void 0;){let l=Math.min(o+this.nodeSize*4,NI(o,this._levelBounds));for(let n=o;n>2]|0,l=this._boxes[n],u=this._boxes[n+1],d=this._boxes[n+2],f=this._boxes[n+3],p=a(ed?e-d:0,tf?t-f:0);p>r||(o>=this.numItems*4?s.push(c<<1,p):(i===void 0||i(c))&&s.push((c<<1)+1,p))}for(;s.length&&s.peek()&1;)if(s.peekValue()>r||(c.push(s.pop()>>1),c.length===n))break outer;o=s.length?s.pop()>>1:void 0}return s.clear(),c}};function MI(e,t){return e*e+t*t}function NI(e,t){let n=0,r=t.length-1;for(;n>1;t[i]>e?r=i:n=i+1}return t[n]}function PI(e,t,n,r,i,a){if(Math.floor(r/a)>=Math.floor(i/a))return;let o=e[r],s=e[r+i>>1],c=e[i],l=c,u=Math.max(o,s);c>u?l=u:u===o?l=Math.max(s,c):u===s&&(l=Math.max(o,c));let d=r-1,f=i+1;for(;;){do d++;while(e[d]l);if(d>=f)break;FI(e,t,n,d,f)}PI(e,t,n,r,f,a),PI(e,t,n,f+1,i,a)}function FI(e,t,n,r,i){let a=e[r];e[r]=e[i],e[i]=a;let o=4*r,s=4*i,c=t[o],l=t[o+1],u=t[o+2],d=t[o+3];t[o]=t[s],t[o+1]=t[s+1],t[o+2]=t[s+2],t[o+3]=t[s+3],t[s]=c,t[s+1]=l,t[s+2]=u,t[s+3]=d;let f=n[r];n[r]=n[i],n[i]=f}function II(e,t){let n=e^t,r=65535^n,i=65535^(e|t),a=e&(t^65535),o=n|r>>1,s=n>>1^n,c=i>>1^r&a>>1^i,l=n&i>>1^a>>1^a;n=o,r=s,i=c,a=l,o=n&n>>2^r&r>>2,s=n&r>>2^r&(n^r)>>2,c^=n&i>>2^r&a>>2,l^=r&i>>2^(n^r)&a>>2,n=o,r=s,i=c,a=l,o=n&n>>4^r&r>>4,s=n&r>>4^r&(n^r)>>4,c^=n&i>>4^r&a>>4,l^=r&i>>4^(n^r)&a>>4,n=o,r=s,i=c,a=l,c^=n&i>>8^r&a>>8,l^=r&i>>8^(n^r)&a>>8,n=c^c>>1,r=l^l>>1;let u=e^t,d=r|65535^(u|n);return u=(u|u<<8)&16711935,u=(u|u<<4)&252645135,u=(u|u<<2)&858993459,u=(u|u<<1)&1431655765,d=(d|d<<8)&16711935,d=(d|d<<4)&252645135,d=(d|d<<2)&858993459,d=(d|d<<1)&1431655765,(d<<1|u)>>>0}var LI=e=>typeof e.size==`function`;function RI(e){let[t,n]=e;return e=>t+Math.max(Math.min(e,1),0)*(n-t)}function zI(e){if(e.type===`piecewise`)return KA(e.thresholds,e.sizes);if(LI(e))return hN([e.min??0,e.max??100],e.size);switch(e.interpolator??`sqrt`){case`log`:return gN([e.min??0,e.max??100],RI(e.size));case`linear`:return hN([e.min??0,e.max??100],RI(e.size));default:return vN([e.min??0,e.max??100],RI(e.size))}}function BI(e){return e.values?IO(e.values,e.sizes).unknown(e.unknownSize??null):IO(e.sizes.map((e,t)=>t),e.sizes).unknown(e.unknownSize??null)}function VI(e){return e.type===`ordinal`?BI(e):zI(e)}function HI(e,t){return e.id===void 0?q({id:t},e):e}function UI(e){return e.colorMap?q({},e,{colorScale:e.colorMap.type===`ordinal`&&e.data?rI(q({values:e.data},e.colorMap)):iI(e.colorMap.type===`continuous`?q({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function WI(e){return e.sizeMap?q({},e,{sizeScale:e.sizeMap.type===`ordinal`?BI(q({values:e.data},e.sizeMap)):VI(e.sizeMap.type===`continuous`?q({min:e.min,max:e.max},e.sizeMap):e.sizeMap)}):e}function GI(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};let n={},r=[];return e.forEach((e,i)=>{let a=e.dataKey,o=e.id??`defaultized-z-axis-${i}`;if(e.data!==void 0||a===void 0&&!e.valueGetter){n[o]=WI(UI(HI(e,o))),r.push(o);return}if(t===void 0)throw Error(eD(41));n[o]=WI(UI(HI(q({},e,{data:e.valueGetter?t.map(t=>e.valueGetter(t)):t.map(e=>e[a])}),o))),r.push(o)}),{axis:n,axisIds:r}}var KI=({params:e,store:t})=>{let{zAxis:n,dataset:r}=e,i=b.useRef(!0);return b.useEffect(()=>{if(i.current){i.current=!1;return}t.set(`zAxis`,GI(n,r))},[n,r,t]),{}};KI.params={zAxis:!0,dataset:!0},KI.getInitialState=e=>({zAxis:GI(e.zAxis,e.dataset)});var qI=Q(e=>e,e=>e.zAxis),JI=(e,t)=>{let n=t?.sizeScale;return n?r=>{if(t?.data?.[r]!==void 0){let e=n(t.data[r]);if(e!=null&&!Number.isNaN(e))return e}let i=e.data[r];if(i!=null){let e=n(i.sizeValue);if(e!=null&&!Number.isNaN(e))return e}return e.markerSize}:()=>e.markerSize},YI=e=>{let t=new Map;return e.forEach(e=>{t.set(e.axisId,e)}),t},XI=e=>e.zoom,ZI=Q(XI,e=>e?.isInteracting),QI=$(XI,function(e){return e?.zoomData&&YI(e?.zoomData)}),$I=Q(QI,(e,t)=>e?.get(t)),eL=$(qD,JD,function(e,t){return q({},xI(`x`)(e),xI(`y`)(t))});Q(eL,(e,t)=>e[t]);var tL=Q(qP,function(e){return wP(e.width)}),nL=Q(qP,function(e){return wP(e.height)}),rL=$(qD,nP,tL,yP,function(e,t,n,r){return{axes:e,domains:kP(e,t,n,r,`x`)}}),iL=$(JD,nP,nL,bP,function(e,t,n,r){return{axes:e,domains:kP(e,t,n,r,`y`)}}),aL=$(QI,eL,rL,iL,function(e,t,{axes:n,domains:r},{axes:i,domains:a}){if(!e||!t)return;let o=!1,s={},c=[...n??[],...i??[]];for(let i=0;i=100)continue;let d=i<(n?.length??0)?`x`:`y`;if(l.scaleType===`band`||l.scaleType===`point`)s[l.id]=vI(l.data,u.start,u.end,d);else{let{domain:e}=d===`x`?r[l.id]:a[l.id];s[l.id]=yI(e,u.start,u.end,d,l.data)}o=!0}if(o)return bI(s)}),oL=$(nP,HN,QI,eL,aL,rL,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(iP(a)||aP(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=_P(a,`x`,t,c,e,f);s[a.id]=DP(a,`x`,c,e,m,p)}),s}),sL=$(nP,HN,QI,eL,aL,iL,function(e,t,n,r,i,{axes:a,domains:o}){let s={};return a?.forEach((a,c)=>{let l=o[a.id].domain;if(iP(a)||aP(a)){s[a.id]=l;return}let u=n?.get(a.id),d=r?.[a.id],f=u===void 0&&!d?i:void 0;if(!f){s[a.id]=l;return}let p=o[a.id].tickNumber,m=_P(a,`y`,t,c,e,f);s[a.id]=DP(a,`y`,c,e,m,p)}),s}),cL=$(qD,oL,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=EI(r,i)}),n}),lL=$(JD,sL,function(e,t){let n={};return e?.forEach(e=>{let r=e,i=t[r.id];n[r.id]=EI(r,i)}),n}),uL=$(qD,cL,qP,QI,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=CI(n,`x`,a),l=t[a.id].copy(),u=DI(c,s);l.range(u),i[a.id]=l}),i}),dL=$(JD,lL,qP,QI,function(e,t,n,r){let i={};return e?.forEach(e=>{let a=e,o=r?.get(a.id),s=o?[o.start,o.end]:[0,100],c=CI(n,`y`,a),l=t[a.id].copy(),u=DI(cI(l)?c.reverse():c,s);l.range(u),i[a.id]=l}),i}),fL=$(qP,nP,HN,QI,rL,uL,RP,YD,function(e,t,n,r,{axes:i,domains:a},o,s,c){return gI({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`x`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})}),pL=$(qP,nP,HN,QI,iL,dL,BP,YD,function(e,t,n,r,{axes:i,domains:a},o,s,c){return gI({scales:o,drawingArea:e,formattedSeries:t,axis:i,seriesConfig:n,axisDirection:`y`,zoomMap:r,domains:a,autoSizes:s,axesGap:c})});Q(fL,pL,(e,t,n)=>e?.axis[n]??t?.axis[n]),Q(qD,JD,(e,t,n)=>{let r=e?.find(e=>e.id===n)??t?.find(e=>e.id===n)??null;if(r)return r});var mL=Q(qD,e=>e[0].id),hL=Q(JD,e=>e[0].id),gL=new Map,_L=()=>gL,vL=$(nP,cL,lL,mL,hL,qI,function(e,t,n,r,i,a){let o=e.scatter,s=new Map;if(!o)return s;let c=a?.axis??{},l=a?.axisIds??[];return o.seriesOrder.forEach(e=>{let a=o.series[e],{data:u,xAxisId:d=r,yAxisId:f=i}=a;if(u.length===0)return;let p=new jI(u.length),m=c[a.sizeAxisId??l[0]],h=!m||!m.sizeScale,g=h?a.markerSize??0:JI(a,m),_=h?g:0,v=t[d],y=n[f];for(let e=0;e{let i=yL(n);return i>t&&(r===0||Math.abs(t-i)<=Math.abs(t-yL(e[r-1])))||i<=t&&(r===e.length-1||Math.abs(t-i)=r.length?-1:i?r.length-1-a:a}function SL(e,t,n,r){if(!cI(e)){if(r===null){let t=e.invert(n);return Number.isNaN(t)?null:t}return t[r]}return r===null||r<0||r>=t.length?null:t[r]}function CL(e,t){let n=e.getBoundingClientRect(),r=t.clientX-n.left,i=t.clientY-n.top;if(typeof DOMMatrix>`u`)return{x:r,y:i,z:0,w:1,matrixTransform:()=>({x:r,y:i,z:0,w:1})};let a=getComputedStyle(e),o=new DOMMatrix(a.transform);return new DOMPoint(r,i).matrixTransform(o.inverse())}var wL=({store:e})=>({instance:{cleanInteraction:_E(function(){e.update({interaction:q({},e.state.interaction,{pointer:null})})}),setLastUpdateSource:_E(function(t){e.state.interaction.lastUpdate!==t&&e.set(`interaction`,q({},e.state.interaction,{lastUpdate:t}))}),setPointerCoordinate:_E(function(t){e.set(`interaction`,q({},e.state.interaction,{pointer:t,lastUpdate:t===null?e.state.interaction.lastUpdate:`pointer`}))}),handlePointerEnter:_E(function(t){e.set(`interaction`,q({},e.state.interaction,{pointerType:t.pointerType}))}),handlePointerLeave:_E(function(){e.set(`interaction`,q({},e.state.interaction,{pointerType:null}))})}});wL.getInitialState=()=>({interaction:{item:null,pointer:null,lastUpdate:`pointer`,pointerType:null}}),wL.params={};var TL=e=>e.interaction,EL=Q(TL,e=>e!==void 0),DL=Q(TL,e=>e?.pointer??null),OL=Q(DL,e=>e&&e.x),kL=Q(DL,e=>e&&e.y),AL=Q(TL,e=>e?.lastUpdate),jL=Q(TL,e=>e?.pointerType??null);function ML(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(n=>xL(t.axis[n],e)):xL(t.axis[n],e)}var NL=(e,t,n)=>{if(e===null)return null;let r=ML(e,t,n);return r===-1?null:r},PL=Q(OL,fL,NL),FL=Q(kL,pL,NL),IL=Q(OL,kL,fL,pL,(e,t,n,r)=>[...e===null?[]:n.axisIds.map(t=>({axisId:t,dataIndex:ML(e,n,t)})),...t===null?[]:r.axisIds.map(e=>({axisId:e,dataIndex:ML(t,r,e)}))].filter(e=>e.dataIndex!==null&&e.dataIndex>=0));function LL(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((r,i)=>{let a=t.axis[r];return SL(a.scale,a.data,e,n[i])}):SL(t.axis[r].scale,t.axis[r].data,e,n)}var RL=Q(OL,fL,PL,(e,t,n,r)=>e===null||t.axisIds.length===0?null:LL(e,t,n,r)),zL=Q(kL,pL,FL,(e,t,n,r)=>e===null||t.axisIds.length===0?null:LL(e,t,n,r));function BL(e){return e.setPointerCoordinate!==void 0}var VL=new Set([`bar`,`rangeBar`,`line`]);function HL({axisId:e,dataIndex:t,isXAxis:n,axes:r,processedSeries:i}){let a=r[e]?.data?.[t];if(a===void 0)return null;let o={};return Object.keys(i).filter(e=>VL.has(e)).forEach(r=>{let a=i[r];a?.seriesOrder.forEach(r=>{let i=a.series[r],s=i.xAxisId,c=i.yAxisId,l=n?s:c;(l===void 0||l===e)&&(o[r]=i.data[t])})}),{dataIndex:t,axisValue:a,seriesValues:o}}var UL=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,{xAxis:i,yAxis:a,dataset:o,onHighlightedAxisChange:s,onTooltipAxisChange:c,axesGap:l}=e,u=t.use(nP),d=t.use(EL),{axis:f,axisIds:p}=t.use(fL),{axis:m,axisIds:h}=t.use(pL);e.highlightedAxis,e.tooltipAxis,UC(()=>{e.highlightedAxis!==void 0&&t.set(`controlledCartesianAxisHighlight`,e.highlightedAxis)},[t,e.highlightedAxis]),UC(()=>{e.tooltipAxis!==void 0&&t.set(`controlledCartesianAxisTooltip`,e.tooltipAxis)},[t,e.tooltipAxis]);let g=b.useRef(!0);b.useEffect(()=>{if(g.current){g.current=!1;return}t.set(`cartesianAxis`,{axesGap:l,x:$F(i,o,l),y:eI(a,o,l)})},[i,a,o,l,t]);let _=p[0],v=h[0];RD(t,IL,(e,t)=>{if(!(!s&&!c)&&!Object.is(e,t)){if(e.length!==t.length){s?.(t),c?.(t);return}e?.some(({axisId:e,dataIndex:n},r)=>t[r].axisId!==e||t[r].dataIndex!==n)&&(s?.(t),c?.(t))}});let y=BL(n);return b.useEffect(()=>{let t=r.current;if(!d||!y||!t||e.disableAxisListener)return()=>{};let i=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||n.cleanInteraction()}),a=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||n.cleanInteraction()}),o=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&n.cleanInteraction()}),s=e=>{let r=e.detail.srcEvent,i=e.detail.target,a=CL(t,r);if(e.detail.srcEvent.buttons>=1&&i?.hasPointerCapture(e.detail.srcEvent.pointerId)&&!i?.closest(`[data-charts-zoom-slider]`)&&i?.releasePointerCapture(e.detail.srcEvent.pointerId),!n.isPointInside(a.x,a.y,i)){n.cleanInteraction?.();return}n.setPointerCoordinate(a)},c=n.addInteractionListener(`move`,s),l=n.addInteractionListener(`pan`,s),u=n.addInteractionListener(`quickPress`,s);return()=>{c.cleanup(),i.cleanup(),l.cleanup(),a.cleanup(),u.cleanup(),o.cleanup()}},[r,t,f,_,m,v,n,e.disableAxisListener,d,y]),b.useEffect(()=>{let t=r.current,i=e.onAxisClick;if(t===null||!i)return()=>{};let a=n.addInteractionListener(`tap`,e=>{let n=CL(t,e.detail.srcEvent),r=xL(f[_],n.x),a=r!==-1,o=a?r:xL(m[v],n.y);if(o===-1)return;let s=HL({axisId:a?p[0]:h[0],dataIndex:o,isXAxis:a,axes:a?f:m,processedSeries:u});s!==null&&i(e.detail.srcEvent,s)});return()=>{a.cleanup()}},[e.onAxisClick,u,r,f,p,m,h,_,v,n]),{}};UL.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0,onHighlightedAxisChange:!0,highlightedAxis:!0,onTooltipAxisChange:!0,tooltipAxis:!0,axesGap:!0},UL.getDefaultizedParams=({params:e})=>q({},e,{axesGap:e.axesGap??0,colors:e.colors??YN,theme:e.theme??`light`,defaultizedXAxis:$F(e.xAxis,e.dataset,e.axesGap??0),defaultizedYAxis:eI(e.yAxis,e.dataset,e.axesGap??0)}),UL.getInitialState=e=>q({cartesianAxis:{axesGap:e.axesGap,x:e.defaultizedXAxis,y:e.defaultizedYAxis}},e.highlightedAxis===void 0?{}:{controlledCartesianAxisHighlight:e.highlightedAxis});var WL=Object.is;function GL(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!WL(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var KL=e=>e.keyboardNavigation;Q(KL,(e,t)=>e?.isFocused===!0&&e?.item!=null&&GL(e.item,t));var qL=Q(KL,e=>e?.isFocused===!0&&e?.item!=null),JL=Q(KL,e=>e?.isFocused===!0?e?.item??null:null),YL=Q(KL,e=>e?.item??null),XL=Q(KL,e=>!!e?.enabled),ZL=Q(KL,e=>e.experimentalFeatures?.keyboardActivation,(e,t)=>t===!0&&!!e?.enabled),QL=e=>(t,n,r)=>{if(t==null||!(`dataIndex`in t)||t.dataIndex===void 0)return;let i=r[t.type]?.series[t.seriesId];if(!i)return;let a=e===`x`?`xAxisId`in i&&i.xAxisId:`yAxisId`in i&&i.yAxisId;return(a===void 0||a===!1)&&(a=n.axisIds[0]),{axisId:a,dataIndex:t.dataIndex}},$L=Q(JL,fL,nP,QL(`x`)),eR=Q(JL,pL,nP,QL(`y`)),tR=$(KL,function(e){if(e?.isFocused!==!0||e?.item==null)return null;let{type:t,seriesId:n}=e.item;return t===void 0||n===void 0?null:e.item}),nR=e=>e.brush;Q(nR,e=>e?.start),Q(nR,e=>e?.current),$(Q(nR,e=>e?.start?.x??null),Q(nR,e=>e?.start?.y??null),Q(nR,e=>e?.current?.x??null),Q(nR,e=>e?.current?.y??null),(e,t,n,r)=>e===null||t===null||n===null||r===null?null:{start:{x:e,y:t},current:{x:n,y:r}}),Q(Q(nP,e=>{let t=!1,n=!1;return e&&Object.entries(e).forEach(([e,r])=>{Object.values(r.series).some(e=>e.layout===`horizontal`)&&(t=!0),e===`scatter`&&r.seriesOrder.length>0&&(n=!0)}),n?`xy`:t?`y`:`x`}),Q(eL,function(e){let t=!1,n=!1;return Object.values(e).forEach(e=>{e.axisDirection===`y`&&(n=!0),e.axisDirection===`x`&&(t=!0)}),t&&n?`xy`:n?`y`:t?`x`:null}),(e,t)=>t??e);var rR=Q(nR,e=>e?.enabled||e?.isZoomBrushEnabled),iR=Q(rR,nR,(e,t)=>e&&t?.start!==null&&t?.current!==null),aR=Q(nR,iR,(e,t)=>t&&e?.preventHighlight),oR=Q(nR,iR,(e,t)=>t&&e?.preventTooltip),sR=({store:e,instance:t,params:n})=>{let{chartsLayerContainerRef:r}=t,i=e.use(rR);UC(()=>{e.set(`brush`,q({},e.state.brush,{enabled:n.brushConfig.enabled,preventTooltip:n.brushConfig.preventTooltip,preventHighlight:n.brushConfig.preventHighlight}))},[e,n.brushConfig.enabled,n.brushConfig.preventTooltip,n.brushConfig.preventHighlight]);let a=_E(function(t){e.set(`brush`,q({},e.state.brush,{start:e.state.brush.start??t,current:t}))}),o=_E(function(){e.set(`brush`,q({},e.state.brush,{start:null,current:null}))}),s=_E(function(t){e.state.brush.isZoomBrushEnabled!==t&&e.set(`brush`,q({},e.state.brush,{isZoomBrushEnabled:t}))});return b.useEffect(()=>{let e=r.current;if(e===null||!i)return()=>{};let n=t=>{if(t.detail.target?.closest(`[data-charts-zoom-slider]`))return;let n=CL(e,{clientX:t.detail.initialCentroid.x,clientY:t.detail.initialCentroid.y});a(n)},s=t=>{let n=CL(e,{clientX:t.detail.centroid.x,clientY:t.detail.centroid.y});a(n)},c=t.addInteractionListener(`brushStart`,n),l=t.addInteractionListener(`brush`,s),u=t.addInteractionListener(`brushCancel`,o),d=t.addInteractionListener(`brushEnd`,o);return()=>{c.cleanup(),l.cleanup(),d.cleanup(),u.cleanup()}},[r,t,e,o,a,i]),{instance:{setBrushCoordinates:a,clearBrush:o,setZoomBrushEnabled:s}}};sR.params={brushConfig:!0},sR.getDefaultizedParams=({params:e})=>q({},e,{brushConfig:{enabled:e?.brushConfig?.enabled??!1,preventTooltip:e?.brushConfig?.preventTooltip??!0,preventHighlight:e?.brushConfig?.preventHighlight??!0}}),sR.getInitialState=e=>({brush:{enabled:e.brushConfig.enabled,isZoomBrushEnabled:!1,preventTooltip:e.brushConfig.preventTooltip,preventHighlight:e.brushConfig.preventHighlight,start:null,current:null}});function cR(e,t,n){if(e===`pointer`){if(t)return[t];if(n)return[n]}if(e===`keyboard`){if(n)return[n];if(t)return[t]}return[]}var lR=e=>e.controlledCartesianAxisHighlight,uR=(e,t,n,r,i,a)=>a?[]:n===void 0?cR(i,e!==null&&{axisId:t.axisIds[0],dataIndex:e},r!=null&&r):n.filter(e=>t.axis[e.axisId]!==void 0).map(e=>e),dR=$(PL,fL,lR,$L,AL,aR,uR);$(FL,pL,lR,eR,AL,aR,uR);var fR=(e,t,n,r,i,a,o)=>{if(o)return[];if(r!==void 0)return r.map(e=>q({},e,{value:n.axis[e.axisId]?.data?.[e.dataIndex]})).filter(({value:e})=>e!==void 0);let s=t!=null&&{axisId:n.axisIds[0],value:t};s&&e!=null&&(s.dataIndex=e);let c=i!=null&&n.axis[i.axisId]?.data?.[i.dataIndex];return cR(a,s,i!=null&&c!=null&&q({},i,{value:c}))},pR=$(PL,RL,fL,lR,$L,AL,aR,fR),mR=$(FL,zL,pL,lR,eR,AL,aR,fR),hR=(e,t)=>e===void 0?[t.axis[t.axisIds[0]]]:e.map(e=>t.axis[e.axisId]??null).filter(e=>e!==null);Q(lR,fL,hR),Q(lR,pL,hR);function gR(e,t,n){if(n===0)return{barWidth:e/t,offset:0};let r=e/(t+(t-1)*n);return{barWidth:r,offset:n*r}}function _R(e,t){return e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())}function vR(e,t,n){if(!lI(e.scale))return-1;let r=_R(e.scale,n),{barWidth:i,offset:a}=gR(e.scale.bandwidth(),t.groupNumber,e.barGapRatio),o=t.groupIndex*(i+a),s=e.data?.[r];if(s==null)return-1;let c=e.scale(s);if(c==null)return-1;let l=c+o,u=l+i;return n>=Math.min(l,u)&&n<=Math.max(l,u)?r:-1}var yR=Q(fL,pL,nP,function({axis:e,axisIds:t},{axis:n,axisIds:r},i,a){let{series:o,stackingGroups:s=[]}=i?.bar??{},c=t[0],l=r[0],u;for(let t=0;t=Math.min(x,S)&&v<=Math.max(x,S)&&(u={seriesId:i,dataIndex:y})}}if(u)return{type:`bar`,seriesId:u.seriesId,dataIndex:u.dataIndex}});function bR(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){let n=e.length;if(n!==t.length)return!1;for(let r=0;r(e(t)??0)+e.bandwidth()/2;let t=e.domain();return t[0]===t[1]?n=>n===t[0]?e(n):NaN:t=>e(t)}var SR=e=>e.controlledCartesianAxisTooltip,CR=[];function wR(e,t){return e===void 0||!t.axis[e.axisId]?.triggerTooltip?CR:[e]}var TR=xD({memoizeOptions:{resultEqualityCheck:bR}})(SR,OL,fL,AL,$L,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return CR;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?wR(i,n):t===null?CR:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:xL(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),ER=xD({memoizeOptions:{resultEqualityCheck:bR}})(SR,kL,pL,AL,eR,(e,t,n,r,i)=>{if(e!==void 0){if(e.length===0)return CR;let t=new Set(n.axisIds),r=e.filter(({axisId:e})=>t.has(e));return r.length===e.length?e:r}return r===`keyboard`?wR(i,n):t===null?CR:n.axisIds.filter(e=>n.axis[e].triggerTooltip).map(e=>({axisId:e,dataIndex:xL(n.axis[e],t)})).filter(({dataIndex:e})=>e>=0)}),DR=Q(TR,ER,(e,t)=>e.length>0||t.length>0);function OR(e,t){let n=t.axis[e.axisId];if(!n)return null;let r=n.data?.[e.dataIndex];if(r==null)return null;let i=xR(n.scale)(r);return i===void 0?null:i}var kR=$(TR,ER,fL,pL,qP,function(e,t,n,r,i,a){if(e.length===0&&t.length===0)return null;if(e.length>0){let t=OR(e[0],n);if(t===null)return null;switch(a){case`left`:case`right`:return{x:t,y:i.top+i.height/2};case`bottom`:return{x:t,y:i.top+i.height};default:return{x:t,y:i.top}}}if(t.length>0){let e=OR(t[0],r);if(e===null)return null;switch(a){case`right`:return{x:i.left+i.width/2,y:e};case`bottom`:case`top`:return{x:i.left+i.width/2,y:e};default:return{x:i.left+i.width/2,y:e}}}return null}),AR={},jR=new Map;function MR(e){return{axisId:e,start:0,end:100}}var NR=e=>e.sampling,PR=$(NR,nP,HN,function(e,t,n){if(!e?.enabled)return AR;let r;return Object.keys(t).forEach(i=>{let a=e.methods[i];if(!a||a===`none`)return;let o=n[i]?.sampler,s=t[i];if(!(!o||!s))for(let e of s.seriesOrder){let t=o.build(s.series[e]);t&&(r??={},r[e]=t)}}),r??AR}),FR=$(NR,QI,fL,pL,qP,eL,HN,function(e,t,n,r,i,a,o){if(!e?.enabled)return jR;let s=o.bar?.sampler?.bucketSizeAt??o.line?.sampler?.bucketSizeAt;if(!s)return jR;let c=new Map;return[[n,i.width],[r,i.height]].forEach(([e,n])=>{e.axisIds.forEach(r=>{let i=e.axis[r].data,o=t?.get(r)??MR(r),l=a[r]?.minSpan??0;i&&c.set(r,s(o.end-o.start,{dataLength:i.length,availableSize:n,minSpan:l}))})}),c}),IR=({store:e,params:t,instance:n})=>{t.tooltipItem,UC(()=>{if(e.state.tooltip.item!==t.tooltipItem){let r=t.tooltipItem?n.identifierWithType(t.tooltipItem,`seriesItem`):null;(e.state.tooltip.item===null||r===null?r!==e.state.tooltip.item:n.serializeIdentifier(e.state.tooltip.item)!==n.serializeIdentifier(r))&&e.set(`tooltip`,q({},e.state.tooltip,{item:r}))}},[e,n,t.tooltipItem]);let r=_E(function(r){let i=e.state.tooltip.item;if(i!==null&&(!r||n.serializeIdentifier(i)===n.serializeIdentifier(n.identifierWithType(r,`seriesItem`)))){t.onTooltipItemChange?.(null),e.state.tooltip.itemIsControlled||e.set(`tooltip`,q({},e.state.tooltip,{item:null}));return}});return{instance:{setTooltipItem:_E(function(n){GL(e.state.tooltip.item,n)||(t.onTooltipItemChange?.(n),e.state.tooltip.itemIsControlled||e.set(`tooltip`,q({},e.state.tooltip,{item:n})))}),removeTooltipItem:r}}};IR.getInitialState=(e,t)=>({tooltip:{itemIsControlled:e.tooltipItem!==void 0,item:e.tooltipItem==null?null:XN(t)(e.tooltipItem)}}),IR.params={tooltipItem:!0,onTooltipItemChange:!0};function LR(e){return e.key===`Enter`||e.key===` `}function RR(e,t){return e.type!==void 0&&e.type!==t.type||e.seriesId!==void 0&&(!(`seriesId`in t)||e.seriesId!==t.seriesId)?null:(e.type===void 0?0:1)+(e.seriesId===void 0?0:1)}function zR(e,t){let n=null,r=-1,i=-1;for(let a of e){let e=RR(a.scope,t),o=a.scope.priority??0;e!==null&&(a.scope.canActivate===void 0||a.scope.canActivate(t))&&(e>r||e===r&&o>i)&&(n=a.handler,r=e,i=o)}return n}var BR=({params:e,store:t,instance:n})=>{let{chartsLayerContainerRef:r}=n,i=b.useRef(new Map),a=b.useRef(0),o=b.useCallback((e,t)=>{let n=a.current;a.current+=1;let r=i.current;return r.set(n,{scope:e,handler:t}),()=>{r.delete(n)}},[]);return b.useEffect(()=>{let n=r.current;if(!n||e.disableKeyboardNavigation)return;function a(e){let n=e.currentTarget,r=e.relatedTarget;n&&r!==null&&n.contains(r)||t.state.keyboardNavigation.isFocused&&t.set(`keyboardNavigation`,q({},t.state.keyboardNavigation,{isFocused:!1}))}function o(){t.state.keyboardNavigation.isFocused||t.update(q({},t.state.highlight&&{highlight:q({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:q({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:q({},t.state.keyboardNavigation,{isFocused:!0})}))}function s(e){if(e.repeat||!LR(e)||!ZL(t.state))return;let n=t.state.keyboardNavigation.item;if(n===null||!t.state.keyboardNavigation.isFocused)return;let r=zR(i.current.values(),n);r!==null&&(e.preventDefault(),r(e,n))}function c(e){let n=t.state.keyboardNavigation.item,r=HN(t.state),i=n?.type;if(!i&&(i=Object.keys(tP(t.state)).find(e=>r[e]!==void 0),i===void 0))return;let a=r[i]?.keyboardFocusHandler?.(e);a&&(n=a(n,t.state),n!==t.state.keyboardNavigation.item&&(e.preventDefault(),t.update(q({},t.state.highlight&&{highlight:q({},t.state.highlight,{lastUpdate:`keyboard`})},t.state.interaction&&{interaction:q({},t.state.interaction,{lastUpdate:`keyboard`})},{keyboardNavigation:q({},t.state.keyboardNavigation,{item:n})}))))}return n.addEventListener(`keydown`,s),n.addEventListener(`keydown`,c),n.addEventListener(`focusout`,a),n.addEventListener(`focusin`,o),()=>{n.removeEventListener(`keydown`,s),n.removeEventListener(`keydown`,c),n.removeEventListener(`focusout`,a),n.removeEventListener(`focusin`,o)}},[r,e.disableKeyboardNavigation,t]),UC(()=>{t.set(`keyboardNavigation`,q({},t.state.keyboardNavigation,{enabled:!e.disableKeyboardNavigation}))},[t,e.disableKeyboardNavigation]),{instance:{registerItemActivationHandler:o}}};BR.getInitialState=e=>({keyboardNavigation:{item:null,isFocused:!1,enabled:!e.disableKeyboardNavigation}}),BR.params={disableKeyboardNavigation:!0};var VR=Q(e=>e.tooltip,e=>e?.item??null),HR=Q(VR,e=>e!==null),UR=Q(AL,VR,tR,(e,t,n)=>e===`keyboard`?n:t??null),WR=Q(AL,HR,qL,(e,t,n)=>e===`keyboard`?n:t),GR=({store:e,params:t,instance:n})=>(t.highlightedItem,UC(()=>{if(t.highlightedItem!==void 0&&e.state.highlight.item!==t.highlightedItem){if(t.highlightedItem===null){e.set(`highlight`,q({},e.state.highlight,{item:null}));return}let r=n.identifierWithType(t.highlightedItem,`highlightItem`),i=n.cleanIdentifier(r,`highlightItem`);e.set(`highlight`,q({},e.state.highlight,{item:i}))}},[e,t.highlightedItem,n]),{instance:{clearHighlight:_E(()=>{t.onHighlightChange?.(null);let n=e.state.highlight;n.item===null||n.isControlled||e.set(`highlight`,{item:null,lastUpdate:`pointer`,isControlled:!1})}),setHighlight:_E(r=>{let i=e.state.highlight,a=n.identifierWithType(r,`highlightItem`),o=n.cleanIdentifier(a,`highlightItem`);GL(i.item,o)||(t.onHighlightChange?.(o),!i.isControlled&&e.set(`highlight`,{item:o,lastUpdate:`pointer`,isControlled:!1}))})}});GR.getInitialState=(e,t)=>({highlight:{item:e.highlightedItem==null?e.highlightedItem:BN(t.seriesConfig.config,XN(t)(e.highlightedItem)),lastUpdate:`pointer`,isControlled:e.highlightedItem!==void 0}}),GR.params={highlightedItem:!0,onHighlightChange:!0};var KR=[KI,IR,wL,UL,GR];function qR(e){let{children:t,plugins:n=KR,pluginParams:r={}}=e,{contextValue:i}=GF(n,r);return(0,J.jsx)(JF.Provider,{value:i,children:t})}var JR=()=>{let e=b.useContext(JF);if(e==null)throw Error(eD(30));return e};function YR(e){`hasPointerCapture`in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}var XR=e=>{let{instance:t}=JR(),n=b.useRef(!1),r=_E(()=>{n.current=!0,t.setLastUpdateSource(`pointer`),t.setTooltipItem(e),t.setHighlight(e)}),i=_E(()=>{n.current=!1,t.removeTooltipItem(e),t.clearHighlight()});return b.useEffect(()=>()=>{n.current&&i()},[i]),b.useMemo(()=>({onPointerEnter:r,onPointerLeave:i,onPointerDown:YR}),[r,i])};function ZR(){let e=JR();if(!e)throw Error(eD(32));return e.store}function QR(e,t,n){return e?.highlight===`series`&&t?.seriesId===n}function $R(e,t,n){return QR(e,t,n)?!1:e?.fade===`global`&&t!=null||e?.fade===`series`&&t?.seriesId===n}function ez(e,t,n){return e?.highlight===`item`&&t?.seriesId===n?t.dataIndex:null}function tz(e,t,n){return QR(e,t,n)||ez(e,t,n)===t?.dataIndex?null:(e?.fade===`series`||e?.fade===`global`)&&t?.seriesId===n?t.dataIndex:null}var nz=e=>e.highlight,rz=$(nP,e=>{let t={};return Object.keys(e).forEach(n=>{t[n]=new Map;let r=e[n];r?.seriesOrder?.forEach(e=>{let i=r?.series[e];i?.highlightScope!==void 0&&t[n]?.set(e,i.highlightScope)})}),t}),iz=$(nz,tR,function(e,t){return e.isControlled||e.lastUpdate===`pointer`?e.item:t}),az=Q(rz,iz,function(e,t){if(!t)return null;let n=e[t.type]?.get(t.seriesId);return n===void 0?null:n}),oz=()=>`none`,sz=$(az,iz,HN,function(e,t,n){if(t===null||e===null)return oz;let r=n[t.type],i=r.isHighlightedCreator(e,t),a=r.isFadedCreator(e,t);return e=>i(e)?`highlighted`:a(e)?`faded`:`none`});function cz(e){return sz(e)}var lz=$(cz,function(e,t){return e(t)});function uz(e,t){return lz(e,t)}Q(az,iz,function(e,t,n){return QR(e,t,n)}),Q(az,iz,function(e,t,n){return $R(e,t,n)}),Q(az,iz,function(e,t,n){return tz(e,t,n)}),Q(az,iz,function(e,t,n){return ez(e,t,n)});function dz(){return!1}function fz(e,t){return!e||!t?dz:function(n){return n?(e.highlight===`series`||e.highlight===`item`&&n.dataIndex===t.dataIndex)&&n.seriesId===t.seriesId:!1}}function pz(){return!1}function mz(e,t){return!e||!t?pz:function(n){return n?e.fade===`series`?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:e.fade===`global`?n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex:!1:!1}}function hz(e){return ZR().use(uz,e)}function gz(e){return e}var{cbrt:_z,sqrt:vz,PI:yz}=Math,bz=(e,t,n,r,i)=>{let a=t+n*e,o=a**2+r;if(o>0){let e=vz(o);return _z(a+e)+_z(a-e)-i}let s=_z(vz(a*a-o)),c=a?Math.atan(vz(-o)/a):-yz/2,l;return l=n<0?(a>0?2*yz:yz)-c:i<0?(a>0?2*yz:-3*yz)+c:(a>0?0:yz)+c,2*s*Math.cos(l/3)-i},xz=(e,t,n,r)=>((t*e+3*n)*e+r)*e;function Sz(e,t,n,r){if(!(0<=e&&e<=1&&0<=n&&n<=1))throw Error(`bezier x values must be in [0, 1] range`);if(e===t&&n===r)return gz;let i=6*(3*e-3*n+1),a=6*(n-2*e),o=3*e,s=i*i,c=a*a,l=a/i,u=3*a*o/s-c*a/(s*i),d=2*o/i-c/s,f=d*d*d,p=3/i,m=3*t-3*r+1,h=r-2*t,g=3*t,_=i?bz:gz;return function(e){return e===0||e===1?e:xz(_(e,u,p,f,l),m,h,g)}}var Cz=`cubic-bezier(0.66, 0, 0.34, 1)`,wz=Sz(.66,0,.34,1),Tz=0,Ez=0,Dz=0,Oz=1e3,kz,Az,jz=0,Mz=0,Nz=0,Pz=typeof performance==`object`&&performance.now?performance:Date,Fz=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Iz(){return Mz||=(Fz(Lz),Pz.now()+Nz)}function Lz(){Mz=0}function Rz(){this._call=this._time=this._next=null}Rz.prototype=zz.prototype={constructor:Rz,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Iz():+n)+(t==null?0:+t),!this._next&&Az!==this&&(Az?Az._next=this:kz=this,Az=this),this._call=e,this._time=n,Wz()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wz())}};function zz(e,t,n){var r=new Rz;return r.restart(e,t,n),r}function Bz(){Iz(),++Tz;for(var e=kz,t;e;)(t=Mz-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Tz}function Vz(){Mz=(jz=Pz.now())+Nz,Tz=Ez=0;try{Bz()}finally{Tz=0,Uz(),Mz=0}}function Hz(){var e=Pz.now(),t=e-jz;t>Oz&&(Nz-=t,jz=e)}function Uz(){for(var e,t=kz,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:kz=n);Az=e,Wz(r)}function Wz(e){Tz||(Ez&&=clearTimeout(Ez),e-Mz>24?(e<1/0&&(Ez=setTimeout(Vz,e-Pz.now()-Nz)),Dz&&=clearInterval(Dz)):(Dz||=(jz=Pz.now(),setInterval(Hz,Oz)),Tz=1,Fz(Vz)))}function Gz(e,t,n){var r=new Rz;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Kz=class{elapsed=0;transitionTimer=null;constructor(e,t,n){this.duration=e,this.easingFn=t,this.onTickCallback=n,this.resume()}get running(){return this.transitionTimer!==null}timerCallback(e){this.elapsed=Math.min(e,this.duration);let t=this.duration===0?1:this.elapsed/this.duration,n=this.easingFn(t);this.onTickCallback(n),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;let e=Iz()-this.elapsed;return this.transitionTimer=zz(e=>this.timerCallback(e),0,e),this}stop(){return this.running&&(this.transitionTimer&&=(this.transitionTimer.stop(),null)),this}finish(){return this.stop(),Gz(()=>this.timerCallback(this.duration)),this}};function qz(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{c.current=e},[e]),UC(()=>{r&&(o.current?.finish(),o.current=null,s.current=null,a.current=e)},[e,r]);let l=b.useCallback(r=>{let i=a.current,s=t(i,e);o.current=new Kz(300,wz,e=>{let t=s(e);a.current=t,n(r,t)})},[n,t,e]);return[b.useCallback(t=>{if(t===null){o.current?.stop();return}let n=s.current;if(n===t){if(qz(c.current,e)){o.current?.resume();return}o.current?.stop()}n&&o.current?.stop(),s.current=t,(o.current||!r)&&l(t)},[l,e,r]),a.current]}function Yz(e,{createInterpolator:t,transformProps:n,applyProps:r,skip:i,initialProps:a=e,ref:o}){let s=n??(e=>e),[c,l]=Jz(e,{initialProps:a,createInterpolator:t,applyProps:(e,t)=>r(e,s(t)),skip:i}),u=n(i?e:l);return q({},u,{ref:gE(c,o)})}function Xz(e){return Yz({d:e.d},{createInterpolator:(e,t)=>{let n=Rk(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute(`d`,t),transformProps:e=>e,skip:e.skipAnimation,ref:e.ref})}function Zz(e){return e.replace(` `,`_`)}function Qz(){return ZR().use(qP)}function $z(){return ZR().use(sF)}function eB(e){return pP.getTypes().has(e)}function tB(e){return eB(e.type)}var nB=(e,t,n,r,i,a,o)=>{let s=r===`rotation`?i[t].rotationExtremumGetter:i[t].radiusExtremumGetter,c=o[t]?.series??{},[l,u]=s?.({series:c,axis:n,axisIndex:a,isDefaultAxis:a===0})??[1/0,-1/0],[d,f]=e;return[Math.min(l,d),Math.max(u,f)]},rB=(e,t,n,r,i)=>{let a=Object.keys(n).filter(eB).reduce((a,o)=>nB(a,o,e,t,n,r,i),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},iB=(e,t,n,r)=>{let i=new Set;return Object.keys(t).filter(eB).forEach(a=>{let o=n[a]?.series??{},s=t[a].axisTooltipGetter?.(o);s!==void 0&&s.forEach(({axisId:t,direction:n})=>{n===e&&i.add(t??r)})}),i};function aB(e,t){if(typeof e==`number`)return e;if(e===`100%`)return t;if(e.endsWith(`%`)){let n=Number.parseFloat(e.slice(0,e.length-1));if(!Number.isNaN(n))return n*t/100}if(e.endsWith(`px`)){let t=Number.parseFloat(e.slice(0,e.length-2));if(!Number.isNaN(t))return t}throw Error(eD(26,e))}var oB=.001;function sB(e,t,n){if(t===`rotation`){let e=[lO(n.startAngle,0),lO(n.endAngle,2*Math.PI)],t=e[1]-e[0],r=t>=Math.PI*2-oB;return n.scaleType===`point`&&r&&(e[1]-=t/n.data.length),{range:e,isFullCircle:r}}let r=Math.min(e.height,e.width)/2,{minRadius:i,maxRadius:a}=n;return{range:[i===void 0?0:aB(i,r),a===void 0?r:aB(a,r)],isFullCircle:!1}}var cB=.2,lB=.1;function uB({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:i}){if(n===void 0)return{axis:{},axisIds:[]};let a=iB(i,r,t,n[0].id),o={};return n.forEach((n,s)=>{let c=n,{range:l,isFullCircle:u}=sB(e,i,c),[d,f]=rB(c,i,r,s,t),p=!c.ignoreTooltip&&a.has(c.id),m=c.data??[];if(iP(c)){let e=c.categoryGapRatio??cB,t=c.barGapRatio??lB;if(o[c.id]=q({offset:0,categoryGapRatio:e,barGapRatio:t,triggerTooltip:p},c,{data:m,scale:xN(c.data,l).paddingInner(e).paddingOuter(e/2),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?rI(q({values:c.data},c.colorMap)):iI(c.colorMap)),isFullCircle:u}),aI(c.data)){let e=oI(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}}if(aP(c)&&(o[c.id]=q({offset:0,triggerTooltip:p},c,{data:m,scale:SN(c.data,l),tickNumber:c.data.length,colorScale:c.colorMap&&(c.colorMap.type===`ordinal`?rI(q({values:c.data},c.colorMap)):iI(c.colorMap)),isFullCircle:u}),aI(c.data))){let e=oI(c.data,l,c.tickNumber);o[c.id].valueFormatter=c.valueFormatter??e}if(!oP(c))return;let h=c.scaleType??`linear`,g=c.domainLimit??`nice`,_=[c.min??d,c.max??f];if(typeof g==`function`){let{min:e,max:t}=g(d,f);_[0]=e,_[1]=t}let v=i===`rotation`?180/3:1,y=c.tickNumber??SP(c,_,wP(v*Math.abs(l[1]-l[0]))),b=TN(h,_,l),x=g===`nice`?b.nice(y):b,[S,C]=x.domain(),w=[c.min??S,c.max??C];o[c.id]=q({offset:0,triggerTooltip:p},c,{data:m,scaleType:h,scale:x.domain(w),tickNumber:y,colorScale:c.colorMap&&iI(c.colorMap),isFullCircle:u})}),{axis:o,axisIds:n.map(({id:e})=>e)}}var dB=e=>e.polarAxis,fB=Q(dB,e=>e?.rotation),pB=Q(dB,e=>e?.radius),mB=$(fB,qP,nP,HN,(e,t,n,r)=>uB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`rotation`})),hB=$(pB,qP,nP,HN,(e,t,n,r)=>uB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:`radius`}));function gB(e){return{cx:e.left+e.width/2,cy:e.top+e.height/2}}var _B=$(qP,gB),vB=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function yB(e){return(e%360+360)%360}var bB=2*Math.PI;function xB(e){return(e%bB+bB)%bB}function SB(e,t){let{scale:n,data:r,reverse:i,isFullCircle:a}=e,[o,s]=n.range(),c=xB(t-o),l=xB(s-o);if(!a&&c>l)return-1;if(!cI(n)){if(r===void 0)return-1;let e=o+xB(t-o);return bL(r,yL(n.invert(e)))}if(!r)return-1;let u;return n.bandwidth()===0?(u=Math.floor((c+n.step()/2)/n.step()),a&&(u%=r.length)):u=Math.floor(c/n.step()),u<0||u>=r.length?-1:i?r.length-1-u:u}function CB(e,t){let{scale:n,data:r,reverse:i}=e;if(!cI(n))return r===void 0?-1:bL(r,yL(n.invert(t)));if(!r)return-1;let a,o=t-Math.min(...n.range());return a=n.bandwidth()===0?Math.floor((o+n.step()/2)/n.step()):Math.floor(o/n.step()),a<0||a>=r.length?-1:i?r.length-1-a:a}var wB=(e,t)=>t,TB=(e,t)=>t;function EB(e,t,n,r){if(r===`rotation`){let r=t;return Array.isArray(n)?n.map(t=>SB(r.axis[t],e)):SB(r.axis[n],e)}let i=t;return Array.isArray(n)?n.map(t=>CB(i.axis[t],e)):CB(i.axis[n],e)}var DB=Q(OL,kL,_B,(e,t,n)=>e===null||t===null?null:vB(n)(e,t)),OB=Q(DB,mB,wB,(e,t,n)=>e===null?null:EB(e,t,n??t.axisIds[0],`rotation`)),kB=Q(DB,mB,TB,(e,t,n)=>e===null?null:EB(e,t,n??t.axisIds,`rotation`));Q(mB,OB,wB,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Q(mB,kB,TB,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var AB=xD({memoizeOptions:{resultEqualityCheck:bR}})(kB,mB,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),jB=Q(OL,kL,_B,(e,t,n)=>e===null||t===null?null:Math.sqrt((e-n.cx)**2+(t-n.cy)**2)),MB=Q(jB,hB,wB,(e,t,n)=>e===null?null:EB(e,t,n??t.axisIds[0],`radius`)),NB=Q(jB,hB,TB,(e,t,n)=>e===null?null:EB(e,t,n??t.axisIds,`radius`));Q(hB,MB,wB,(e,t,n)=>{if(n??=e.axisIds[0],t===null||t===-1||e.axisIds.length===0)return null;let r=e.axis[n]?.data;return r?r[t]:null}),Q(hB,NB,TB,(e,t,n)=>(n??=e.axisIds,t===null?null:n.map((n,r)=>{let i=t[r];return i===-1?null:e.axis[n].data?.[i]})));var PB=xD({memoizeOptions:{resultEqualityCheck:bR}})(NB,hB,(e,t)=>e===null?[]:t.axisIds.map((t,n)=>({axisId:t,dataIndex:e[n]})).filter(({axisId:e,dataIndex:n})=>t.axis[e].triggerTooltip&&n>=0)),FB=Q(AB,PB,(e,t)=>e.length>0||t.length>0);function IB(){let{axis:e,axisIds:t}=ZR().use(fL);return{xAxis:e,xAxisIds:t}}function LB(){let{axis:e,axisIds:t}=ZR().use(pL);return{yAxis:e,yAxisIds:t}}function RB(e){let{axis:t,axisIds:n}=ZR().use(fL);return t[e??n[0]]}function zB(e){let{axis:t,axisIds:n}=ZR().use(pL);return t[e??n[0]]}function BB(){let{axis:e,axisIds:t}=ZR().use(mB);return{rotationAxis:e,rotationAxisIds:t}}function VB(){let{axis:e,axisIds:t}=ZR().use(hB);return{radiusAxis:e,radiusAxisIds:t}}function HB(e){let{axis:t,axisIds:n}=ZR().use(mB);return t[e??n[0]]}function UB(e){let{axis:t,axisIds:n}=ZR().use(hB);return t[e??n[0]]}function WB(){let{axis:e,axisIds:t}=ZR().use(qI)??{axis:{},axisIds:[]};return{zAxis:e,zAxisIds:t}}function GB(){let{instance:e}=JR();return e.chartsLayerContainerRef}function KB(){return ZR().use(nP)}var qB=Q(nP,(e,t)=>e[t]);$(nP,(e,t,n)=>{if(n===void 0)return e[t]?.seriesOrder?.map(n=>e[t]?.series[n])??[];if(!Array.isArray(n))return e[t]?.series?.[n];let r=[],i=[];for(let a of n){let n=e[t]?.series?.[a];n?r.push(n):i.push(a)}return r});var JB=e=>ZR().use(qB,e);function YB(){return JB(`line`)}function XB(){return ZR().use(cz)}function ZB(e,t){return Object.keys(e).flatMap(n=>{let r=t[n].legendGetter;return r===void 0?[]:r(e[n])})}function QB(){return{items:ZB(KB(),ZR().use(HN))}}function $B(){let e=$z();return b.useCallback(t=>`${e}-gradient-${t}`,[e])}function eV(){let e=$z();return b.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function tV(e){return Yz({d:e.d},{createInterpolator:(e,t)=>{let n=Rk(e.d,t.d);return e=>({d:n(e)})},applyProps:(e,{d:t})=>e.setAttribute(`d`,t),skip:e.skipAnimation,transformProps:e=>e,ref:e.ref})}function nV(e){return function(){return e}}var rV=Math.cos,iV=Math.sin,aV=Math.sqrt,oV=Math.PI;oV/2;var sV=2*oV,cV=Math.PI,lV=2*cV,uV=1e-6,dV=lV-uV;function fV(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw Error(`invalid digits: ${e}`);if(t>15)return fV;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;tuV)if(!(Math.abs(u*s-c*l)>uV)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cV-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>uV&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>uV||Math.abs(this._y1-l)>uV)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%lV+lV),d>dV?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>uV&&this._append`A${n},${n},0,${+(d>=cV)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};mV.prototype;function hV(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new mV(t)}Array.prototype.slice;function gV(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function _V(e){this._context=e}_V.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function vV(e){return new _V(e)}function yV(e){return e[0]}function bV(e){return e[1]}function xV(e,t){var n=nV(!0),r=null,i=vV,a=null,o=hV(s);e=typeof e==`function`?e:e===void 0?yV:nV(e),t=typeof t==`function`?t:t===void 0?bV:nV(t);function s(s){var c,l=(s=gV(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return xV().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:nV(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:nV(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:nV(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:nV(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:nV(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:nV(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:nV(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}function CV(e,t){return te?1:t>=e?0:NaN}function wV(e){return e}function TV(){var e=wV,t=CV,n=null,r=nV(0),i=nV(sV),a=nV(0);function o(o){var s,c=(o=gV(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),h=Math.min(sV,Math.max(-sV,i.apply(this,arguments)-m)),g,_=Math.min(Math.abs(h)/c,a.apply(this,arguments)),v=_*(h<0?-1:1),y;for(s=0;s0&&(d+=y);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(h-c*v)/d:0;s0?y*u:0)+v,p[l]={data:o[l],index:s,value:y,startAngle:m,endAngle:g,padAngle:_};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:nV(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:nV(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:nV(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:nV(+e),o):a},o}var EV=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function DV(e){return new EV(e,!0)}function OV(e){return new EV(e,!1)}var kV={draw(e,t){let n=aV(t/oV);e.moveTo(n,0),e.arc(0,0,n,0,sV)}},AV={draw(e,t){let n=aV(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},jV=aV(1/3),MV=jV*2,NV={draw(e,t){let n=aV(t/MV),r=n*jV;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},PV={draw(e,t){let n=aV(t),r=-n/2;e.rect(r,r,n,n)}},FV=.8908130915292852,IV=iV(oV/10)/iV(7*oV/10),LV=iV(sV/10)*IV,RV=-rV(sV/10)*IV,zV={draw(e,t){let n=aV(t*FV),r=LV*n,i=RV*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=sV*t/5,o=rV(a),s=iV(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},BV=aV(3),VV={draw(e,t){let n=-aV(t/(BV*3));e.moveTo(0,n*2),e.lineTo(-BV*n,-n),e.lineTo(BV*n,-n),e.closePath()}},HV=-.5,UV=aV(3)/2,WV=1/aV(12),GV=(WV/2+1)*3,KV=[kV,AV,NV,PV,zV,VV,{draw(e,t){let n=aV(t/GV),r=n/2,i=n*WV,a=r,o=n*WV+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(HV*r-UV*i,UV*r+HV*i),e.lineTo(HV*a-UV*o,UV*a+HV*o),e.lineTo(HV*s-UV*c,UV*s+HV*c),e.lineTo(HV*r+UV*i,HV*i-UV*r),e.lineTo(HV*a+UV*o,HV*o-UV*a),e.lineTo(HV*s+UV*c,HV*c-UV*s),e.closePath()}}];function qV(e,t){let n=null,r=hV(i);e=typeof e==`function`?e:nV(e||kV),t=typeof t==`function`?t:nV(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:nV(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:nV(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function JV(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function YV(e,t){this._context=e,this._k=(1-t)/6}YV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:JV(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:JV(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new YV(e,t)}return n.tension=function(t){return e(+t)},n})(0);function XV(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>1e-12){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function ZV(e,t){this._context=e,this._alpha=t}ZV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:XV(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var QV=(function e(t){function n(e){return t?new ZV(e,t):new YV(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function $V(e){return e<0?-1:1}function eH(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return($V(a)+$V(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function tH(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function nH(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function rH(e){this._context=e}rH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:nH(this,this._t0,tH(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,nH(this,tH(this,n=eH(this,e,t)),n);break;default:nH(this,this._t0,n=eH(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iH(e){this._context=new aH(e)}(iH.prototype=Object.create(rH.prototype)).point=function(e,t){rH.prototype.point.call(this,t,e)};function aH(e){this._context=e}aH.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function oH(e){return new rH(e)}function sH(e){return new iH(e)}function cH(e){this._context=e}cH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=lH(e),i=lH(t),a=0,o=1;o=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function fH(e){return new dH(e,.5)}function pH(e){return new dH(e,0)}function mH(e){return new dH(e,1)}function hH(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n=0;)n[t]=t;return n}function _H(e,t){return e[t]}function vH(e){let t=[];return t.key=e,t}function yH(){var e=nV([]),t=gH,n=hH,r=_H;function i(i){var a=Array.from(e.apply(this,arguments),vH),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o0){for(var n,r,i=0,a=e[0].length,o;i0){for(var n=0,r=e[t[0]],i,a=r.length;n0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;ra&&(a=i,n=t);return n}function TH(e){var t=e.map(EH);return gH(e).sort(function(e,n){return t[e]-t[n]})}function EH(e){for(var t=0,n=-1,r=e.length,i;++n({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:q({},e)}}}}),NH={loading:`Loading data…`,noData:`No data to display`,zoomIn:`Zoom in`,zoomOut:`Zoom out`,toolbarExport:`Export`,toolbarExportPrint:`Print`,toolbarExportImage:e=>`Export as ${jH[e]??e}`,chartTypeBar:`Bar`,chartTypeColumn:`Column`,chartTypeLine:`Line`,chartTypeArea:`Area`,chartTypePie:`Pie`,chartPaletteLabel:`Color palette`,chartPaletteNameRainbowSurge:`Rainbow Surge`,chartPaletteNameBlueberryTwilight:`Blueberry Twilight`,chartPaletteNameMangoFusion:`Mango Fusion`,chartPaletteNameCheerfulFiesta:`Cheerful Fiesta`,chartPaletteNameStrawberrySky:`Strawberry Sky`,chartPaletteNameBlue:`Blue`,chartPaletteNameGreen:`Green`,chartPaletteNamePurple:`Purple`,chartPaletteNameRed:`Red`,chartPaletteNameOrange:`Orange`,chartPaletteNameYellow:`Yellow`,chartPaletteNameCyan:`Cyan`,chartPaletteNamePink:`Pink`,chartConfigurationSectionChart:`Chart`,chartConfigurationSectionColumns:`Columns`,chartConfigurationSectionBars:`Bars`,chartConfigurationSectionAxes:`Axes`,chartConfigurationGrid:`Grid`,chartConfigurationBorderRadius:`Border radius`,chartConfigurationCategoryGapRatio:`Category gap ratio`,chartConfigurationBarGapRatio:`Series gap ratio`,chartConfigurationStacked:`Stacked`,chartConfigurationShowToolbar:`Show toolbar`,chartConfigurationSkipAnimation:`Skip animation`,chartConfigurationInnerRadius:`Inner radius`,chartConfigurationOuterRadius:`Outer radius`,chartConfigurationColors:`Colors`,chartConfigurationHideLegend:`Hide legend`,chartConfigurationShowMark:`Show mark`,chartConfigurationHeight:`Height`,chartConfigurationWidth:`Width`,chartConfigurationSeriesGap:`Series gap`,chartConfigurationTickPlacement:`Tick placement`,chartConfigurationTickLabelPlacement:`Tick label placement`,chartConfigurationCategoriesAxisLabel:`Categories axis label`,chartConfigurationSeriesAxisLabel:`Series axis label`,chartConfigurationXAxisPosition:`X-axis position`,chartConfigurationYAxisPosition:`Y-axis position`,chartConfigurationSeriesAxisReverse:`Reverse series axis`,chartConfigurationTooltipPlacement:`Placement`,chartConfigurationTooltipTrigger:`Trigger`,chartConfigurationLegendPosition:`Position`,chartConfigurationLegendDirection:`Direction`,chartConfigurationBarLabels:`Bar labels`,chartConfigurationColumnLabels:`Column labels`,chartConfigurationInterpolation:`Interpolation`,chartConfigurationSectionTooltip:`Tooltip`,chartConfigurationSectionLegend:`Legend`,chartConfigurationSectionLines:`Lines`,chartConfigurationSectionAreas:`Areas`,chartConfigurationSectionArcs:`Arcs`,chartConfigurationPaddingAngle:`Padding angle`,chartConfigurationCornerRadius:`Corner radius`,chartConfigurationArcLabels:`Arc labels`,chartConfigurationStartAngle:`Start angle`,chartConfigurationEndAngle:`End angle`,chartConfigurationPieTooltipTrigger:`Trigger`,chartConfigurationPieLegendPosition:`Position`,chartConfigurationPieLegendDirection:`Direction`,chartConfigurationOptionNone:`None`,chartConfigurationOptionValue:`Value`,chartConfigurationOptionAuto:`Auto`,chartConfigurationOptionTop:`Top`,chartConfigurationOptionTopLeft:`Top Left`,chartConfigurationOptionTopRight:`Top Right`,chartConfigurationOptionBottom:`Bottom`,chartConfigurationOptionBottomLeft:`Bottom Left`,chartConfigurationOptionBottomRight:`Bottom Right`,chartConfigurationOptionLeft:`Left`,chartConfigurationOptionRight:`Right`,chartConfigurationOptionAxis:`Axis`,chartConfigurationOptionItem:`Item`,chartConfigurationOptionHorizontal:`Horizontal`,chartConfigurationOptionVertical:`Vertical`,chartConfigurationOptionBoth:`Both`,chartConfigurationOptionStart:`Start`,chartConfigurationOptionMiddle:`Middle`,chartConfigurationOptionEnd:`End`,chartConfigurationOptionExtremities:`Extremities`,chartConfigurationOptionTick:`Tick`,chartConfigurationOptionMonotoneX:`Monotone X`,chartConfigurationOptionMonotoneY:`Monotone Y`,chartConfigurationOptionCatmullRom:`Catmull-Rom`,chartConfigurationOptionLinear:`Linear`,chartConfigurationOptionNatural:`Natural`,chartConfigurationOptionStep:`Step`,chartConfigurationOptionStepBefore:`Step Before`,chartConfigurationOptionStepAfter:`Step After`,chartConfigurationOptionBumpX:`Bump X`,chartConfigurationOptionBumpY:`Bump Y`,open:`Open`,high:`High`,low:`Low`,close:`Close`,a11yNoValue:`no value`,a11yConnector:`; `,barDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},lineDescription:function({y:e,formattedXValue:t,formattedYValue:n,seriesLabel:r}){return[t,r,e===null?this.a11yNoValue:n].filter(Boolean).join(this.a11yConnector)},scatterDescription:function({formattedXValue:e,formattedYValue:t,seriesLabel:n}){return[n,e,t].filter(Boolean).join(this.a11yConnector)},pieDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},radarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},funnelDescription:function({value:e,formattedValue:t,seriesLabel:n}){return[n,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},heatmapDescription:function({value:e,formattedValue:t,formattedXValue:n,formattedYValue:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},sankeyNodeDescription:function({formattedValue:e,nodeLabel:t}){return[t,e].filter(Boolean).join(this.a11yConnector)},sankeyLinkDescription:function({formattedValue:e,sourceLabel:t,targetLabel:n}){return[t&&n?`${t} to ${n}`:t??n,e].filter(Boolean).join(this.a11yConnector)},rangeBarDescription:function({value:e,formattedValue:t,formattedCategoryValue:n,seriesLabel:r}){return[n,r,e===null?this.a11yNoValue:t].filter(Boolean).join(this.a11yConnector)},ohlcDescription:function({open:e,high:t,low:n,close:r,formattedOpen:i,formattedHigh:a,formattedLow:o,formattedClose:s,formattedDate:c,seriesLabel:l}){return[c,l,e!==null&&t!==null&&n!==null&&r!==null?`Open: ${i??e}, High: ${a??t}, Low: ${o??n}, Close: ${s??r}`:this.a11yNoValue].filter(Boolean).join(this.a11yConnector)}},PH=NH;MH(NH);var FH=[`localeText`],IH=b.createContext(null);function LH(e){let{localeText:t}=e,n=KE(e,FH),{localeText:r}=b.useContext(IH)??{localeText:void 0},{children:i,localeText:a}=RE({props:n,name:`MuiChartsLocalizationProvider`}),o=b.useMemo(()=>q({},PH,a,r,t),[a,r,t]),s=b.useMemo(()=>({localeText:o}),[o]);return(0,J.jsx)(IH.Provider,{value:s,children:i})}var RH=()=>{let e=b.useContext(IH);if(e===null)throw Error(eD(12));return e};function zH(){return ZR().use(JL)}function BH(e){return DC(`MuiChartsAxis`,e)}var VH=OC(`MuiChartsAxis`,[`root`,`line`,`tickContainer`,`tick`,`tickLabel`,`label`,`directionX`,`directionY`,`top`,`bottom`,`left`,`right`]),HH=e=>{let{classes:t,position:n}=e;return tT({root:[`root`,`directionX`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},BH,t)},UH={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function WH(e){return typeof e==`number`&&!Number.isFinite(e)}function GH(e,t){return Math.abs(t.getFullYear()-e.getFullYear())}function KH(e,t){return Math.abs(t.getFullYear()*12+t.getMonth()-12*e.getFullYear()-e.getMonth())}function qH(e,t){return Math.abs(t.getTime()-e.getTime())/864e5}function JH(e,t){return Math.abs(t.getTime()-e.getTime())/36e5}var YH={years:{getTickNumber:GH,isTick:(e,t)=>t.getFullYear()!==e.getFullYear(),format:e=>e.getFullYear().toString()},quarterly:{getTickNumber:(e,t)=>Math.floor(KH(e,t)/3),isTick:(e,t)=>t.getMonth()!==e.getMonth()&&t.getMonth()%3==0,format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},months:{getTickNumber:KH,isTick:(e,t)=>t.getMonth()!==e.getMonth(),format:new Intl.DateTimeFormat(`default`,{month:`short`}).format},biweekly:{getTickNumber:(e,t)=>qH(e,t)/14,isTick:(e,t)=>(t.getDay()7)&&Math.floor(t.getDate()/7)%2==1,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},weeks:{getTickNumber:(e,t)=>qH(e,t)/7,isTick:(e,t)=>t.getDay()=7,format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},days:{getTickNumber:qH,isTick:(e,t)=>t.getDate()!==e.getDate(),format:new Intl.DateTimeFormat(`default`,{day:`numeric`}).format},hours:{getTickNumber:JH,isTick:(e,t)=>t.getHours()!==e.getHours(),format:new Intl.DateTimeFormat(`default`,{hour:`2-digit`,minute:`2-digit`}).format}},XH={start:0,extremities:0,end:1,middle:.5};function ZH(e,t,n){return e(t)-(e.step()-e.bandwidth())/2+XH[n]*e.step()}function QH(e,t,n){let r=Math.abs(t[1]-t[0]),i=Math.ceil(e.length/(r/n));return Number.isNaN(i)||i<=1?e:e.filter((e,t)=>t%i===0)}function $H(e,t,n,r,i){if(n.length===0)return[];let a=r.range()[0]>r.range()[1],o=e.findIndex(e=>i(ZH(r,e,a?`start`:`end`))),s=e.findLastIndex(e=>i(ZH(r,e,a?`end`:`start`))),c=e[0],l=e[e.length-1];if(!(c instanceof Date)||!(l instanceof Date))return[];let u=0;for(let e=0;et||t/rtypeof e==`string`?YH[e]:e),t,c).map(({index:n,formatter:r})=>{let i=e[n];return{value:i,formattedValue:r(i),offset:ZH(t,i,`middle`),labelOffset:0}})}let u=a??`extremities`;if(cI(t)){let e=t.domain(),a=o??`middle`,l=e;if(typeof i==`object`&&i?l=i:(typeof i==`function`&&(l=l.filter(i)),s!==void 0&&s>0&&(l=QH(l,t.range(),s))),l.length===0)return[];if(t.bandwidth()>0){let i=t.range()[0]>t.range()[1],o=l.findIndex(e=>c(ZH(t,e,i?`start`:`end`))),s=l.findLastIndex(e=>c(ZH(t,e,i?`end`:`start`)));return[...l.slice(o,s+1).map(e=>{let i=`${e}`;return{value:e,formattedValue:r?.(e,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:ZH(t,e,u),labelOffset:a===`tick`?0:t.step()*(XH[a]-XH[u])}}),...u===`extremities`&&s===e.length-1&&c(t.range()[1])?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]}return l.map(e=>{let i=`${e}`;return{value:e,formattedValue:r?.(e,{location:`tick`,scale:t,tickNumber:n,defaultTickLabel:i})??i,offset:t(e),labelOffset:0}})}if(t.domain().some(WH))return[];let d=o,f=typeof i==`object`?i:tU(t,n),p=[];for(let e=0;e!0,rU=e=>t=>Math.abs(e.range()[0]-t)e>=1;case`x`:return n.isXInside;case`y`:return n.isYInside;default:return nU}}function aU(e){let{scale:t,tickNumber:n,valueFormatter:r,tickInterval:i,tickPlacement:a=`extremities`,tickLabelPlacement:o,tickSpacing:s,direction:c,ordinalTimeTicks:l}=e,{instance:u}=JR();return b.useMemo(()=>eU({scale:t,tickNumber:n,tickPlacement:a,tickInterval:i,tickLabelPlacement:o,tickSpacing:s,valueFormatter:r,isInside:iU(t,c,u),ordinalTimeTicks:l}),[t,n,a,i,o,s,r,c,u,l])}var oU=OC(`MuiAppearingMask`,[`animate`]),sU=Z(`rect`,{slot:`internal`,shouldForwardProp:void 0})({animationName:`animate-width`,animationTimingFunction:Cz,animationDuration:`0s`,[`&.${oU.animate}`]:{animationDuration:`300ms`},"@keyframes animate-width":{from:{width:0}}});function cU(e){let t=Qz(),n=Zz(`${$z()}-${e.seriesId}`);return(0,J.jsxs)(b.Fragment,{children:[(0,J.jsx)(`clipPath`,{id:n,children:(0,J.jsx)(sU,{className:e.skipAnimation?``:oU.animate,x:0,y:0,width:t.left+t.width+t.right,height:t.top+t.height+t.bottom})}),(0,J.jsx)(`g`,{clipPath:`url(#${n})`,children:e.children})]})}var lU=[`skipAnimation`,`ownerState`];function uU(e){let{skipAnimation:t,ownerState:n}=e,r=KE(e,lU),i=Xz(e);return(0,J.jsx)(cU,{skipAnimation:t,seriesId:`${n.seriesId}-area-clip`,children:(0,J.jsx)(`path`,q({fill:n.gradientId?`url(#${n.gradientId})`:n.color,filter:n.isHighlighted?`brightness(140%)`:n.gradientId?void 0:`brightness(120%)`,opacity:n.isFaded?.3:1,stroke:`none`,"data-series":n.seriesId,"data-highlighted":n.isHighlighted||void 0,"data-faded":n.isFaded||void 0},r,i))})}function dU(e){return DC(`MuiLineChart`,e)}var fU=OC(`MuiLineChart`,[`area`,`line`,`mark`,`markAnimate`,`highlight`,`areaPlot`,`linePlot`,`markPlot`]),pU=e=>{let{skipAnimation:t,classes:n}=e??{};return tT({area:[`area`],line:[`line`],mark:[`mark`,!t&&`markAnimate`],highlight:[`highlight`],areaPlot:[`areaPlot`],linePlot:[`linePlot`],markPlot:[`markPlot`]},dU,n)},mU=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`];function hU(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s}=e,c=KE(e,mU),l=ZR().use(rF,`enablePositionBasedPointerInteraction`),u=b.useMemo(()=>({type:`line`,seriesId:t}),[t]),d=XR(u),f=hz(u),p=f===`highlighted`,m=f===`faded`,h={seriesId:t,classes:n,color:r,gradientId:i,isFaded:m,isHighlighted:p},g=pU(h),_=a?.area??uU,v=$E({elementType:_,externalSlotProps:o?.area,additionalProps:q({},l?{}:d,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":p||void 0,"data-faded":m||void 0,"data-series-id":t,"data-series":t}),className:g.area,ownerState:h});return(0,J.jsx)(_,q({},c,v))}function gU(e){let t=ZR().use(HD);return e||t}function _U(){return ZR().use(ZI)}function vU(e){switch(e){case`catmullRom`:return QV.alpha(.5);case`linear`:return vV;case`monotoneX`:return oH;case`monotoneY`:return sH;case`natural`:return uH;case`step`:return fH;case`stepBefore`:return pH;case`stepAfter`:return mH;case`bumpY`:return OV;case`bumpX`:return DV;default:return oH}}function yU(e,t){let n=YB(),r=IB().xAxisIds[0],i=LB().yAxisIds[0],a=$B();return b.useMemo(()=>{if(n===void 0)return[];let{series:o,stackingGroups:s}=n,c=[];for(let n of s){let s=n.ids;for(let n=s.length-1;n>=0;--n){let l=s[n],{xAxisId:u=r,yAxisId:d=i,visibleStackedData:f,stackedData:p,data:m,connectNulls:h,baseline:g,curve:_,strictStepCurve:v,area:y}=o[l];if(!y||!(u in e)||!(d in t))continue;let b=e[u].scale,x=xR(b),S=t[d].scale,C=e[u].data,w=t[d].colorScale&&a(d)||e[u].colorScale&&a(u)||void 0,T=_?.includes(`step`)&&!v&&cI(b),E=C?.flatMap((e,t)=>{let n=m[t]==null;if(T){let r=[{x:e,y:f[t],nullData:n,isExtension:!1}];return!n&&(t===0||m[t-1]==null)&&r.unshift({x:(b(e)??0)-(b.step()-b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),!n&&(t===m.length-1||m[t+1]==null)&&r.push({x:(b(e)??0)+(b.step()+b.bandwidth())/2,y:f[t],nullData:n,isExtension:!0}),r}return{x:e,y:f[t],nullData:n}})??[],D=h?E.filter(e=>!e.nullData):E,O=SV().x(e=>e.isExtension?e.x:x(e.x)).defined(e=>h||!e.nullData||!!e.isExtension).y0(e=>{if(typeof g==`number`)return S(g);if(g===`max`)return S.range()[1];if(g===`min`)return S.range()[0];let t=e.y&&S(e.y[0]);return Number.isNaN(t)?S.range()[0]:t}).y1(e=>e.y&&S(e.y[1])).curve(vU(_))(D)||``;c.push({area:o[l].area,color:o[l].color,gradientId:w,d:O,seriesId:l})}}return c},[n,r,i,e,t,a])}function bU(e,t){let{instance:n}=JR(),{type:r,seriesId:i,priority:a,canActivate:o}=e,s=t!==void 0,c=_E((e,n)=>t?.(e,n)),l=o!==void 0,u=_E(e=>!o||o(e)),d=n.registerItemActivationHandler;b.useEffect(()=>{if(!(!s||!d))return d({type:r,seriesId:i,priority:a,canActivate:l?u:void 0},c)},[d,s,r,i,a,l,u,c])}var xU={mark:2,line:1,area:0};function SU(e,t,n){bU({type:`line`,priority:t,canActivate:n&&(e=>{let t=e;return n({type:`line`,seriesId:t.seriesId,dataIndex:t.dataIndex})})},e&&((t,n)=>e(t,{type:`line`,seriesId:n.seriesId,dataIndex:n.dataIndex})))}function CU(e,t,n){SU(e,t,n);let r=GB(),{xAxis:i,xAxisIds:a}=IB(),o=YB(),s=a[0];return b.useMemo(()=>{if(e)return(t,n)=>{let a=r.current,c=o?.series[n]?.xAxisId??s,l=c===void 0?void 0:i[c];if(a===null||l===void 0)return;let u=xL(l,CL(a,t).x);u!==-1&&e(t,{type:`line`,seriesId:n,dataIndex:u})}},[e,r,o,s,i])}var wU=[`slots`,`slotProps`,`onItemClick`,`skipAnimation`,`className`],TU=Z(`g`,{name:`MuiAreaPlot`,slot:`Root`})({[`& .${fU.area}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Cz}}),EU=()=>{let{xAxis:e}=IB(),{yAxis:t}=LB();return yU(e,t)};function DU(e){let{slots:t,slotProps:n,onItemClick:r,skipAnimation:i,className:a}=e,o=KE(e,wU),s=gU(_U()||i),c=EU(),l=pU(),u=CU(r,xU.area,({seriesId:e})=>c.some(t=>t.seriesId===e&&!!t.area));return(0,J.jsx)(TU,q({className:Y(l.areaPlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,area:a,gradientId:o})=>!!a&&(0,J.jsx)(hU,{seriesId:r,d:e,color:i,gradientId:o,slots:t,slotProps:n,onClick:u&&(e=>u(e,r)),skipAnimation:s},r))}))}var OU=[`skipAnimation`,`ownerState`],kU=b.forwardRef(function(e,t){let{skipAnimation:n,ownerState:r}=e,i=KE(e,OU),a=tV({d:e.d,skipAnimation:n,ref:t}),o=r.isFaded?.3:1;return(0,J.jsx)(cU,{skipAnimation:n,seriesId:`${r.seriesId}-line-clip`,children:(0,J.jsx)(`path`,q({stroke:r.gradientId?`url(#${r.gradientId})`:r.color,strokeWidth:2,strokeLinejoin:`round`,fill:`none`,filter:r.isHighlighted?`brightness(120%)`:void 0,opacity:r.hidden?0:o,"data-series":r.seriesId,"data-highlighted":r.isHighlighted||void 0,"data-faded":r.isFaded||void 0},i,a))})}),AU=[`seriesId`,`classes`,`color`,`gradientId`,`slots`,`slotProps`,`onClick`,`hidden`];function jU(e){let{seriesId:t,classes:n,color:r,gradientId:i,slots:a,slotProps:o,onClick:s,hidden:c}=e,l=KE(e,AU),u=ZR().use(rF,`enablePositionBasedPointerInteraction`),d=b.useMemo(()=>({type:`line`,seriesId:t}),[t]),f=XR(d),p=hz(d),m=p===`highlighted`,h=p===`faded`,g={seriesId:t,classes:n,color:r,gradientId:i,isFaded:h,isHighlighted:m,hidden:c},_=pU(),v=a?.line??kU,y=$E({elementType:v,externalSlotProps:o?.line,additionalProps:q({},u?{}:f,{onClick:s,cursor:s?`pointer`:`unset`,"data-highlighted":m||void 0,"data-faded":h||void 0,"data-series-id":t,"data-series":t}),className:_.line,ownerState:g});return(0,J.jsx)(v,q({},l,y))}function MU(e,t,n){let r=YB(),i=IB().xAxisIds[0],a=LB().yAxisIds[0],o=$B(),s=Qz(),c=ZR(),l=c.use(NR),u=c.use(PR),d=c.use(QI),f=c.use(eL),p=c.use(HN).line?.sampler,m=n?.zoomMap??d,h=n?.availableSize??s.width,g=l?.methods.line,_=g!=null&&g!==`none`,v=b.useRef(_),y=_||v.current;return b.useEffect(()=>{v.current=_},[_]),b.useMemo(()=>{if(r===void 0)return[];let{series:n,stackingGroups:s}=r,c=[];for(let r of s){let s=r.ids;for(let r of s){let{xAxisId:s=i,yAxisId:l=a,stackedData:d,visibleStackedData:v,data:b,connectNulls:x,curve:S,strictStepCurve:C}=n[r];if(!(s in e)||!(l in t))continue;let w=e[s].scale,T=xR(w),E=t[l].scale,D=e[s].data,O=t[l].colorScale&&o(l)||e[s].colorScale&&o(s)||void 0,k=S?.includes(`step`)&&!C&&cI(w),ee=u[r],te=m?.get(s)??(ee?MR(s):void 0),A=null;_&&ee&&te&&!k&&D&&(A=p?.sample?.({built:ee,zoom:te,availableSize:h,minSpan:f[s]?.minSpan??0,algorithm:g,getValues:()=>Float64Array.from(v,e=>e[1])})??null);let ne;ne=A?A.flatMap(e=>Array.from(e.indices,e=>({x:D[e],y:v[e],nullData:b[e]==null}))):D?.flatMap((e,t)=>{let n=b[t]==null;if(k){let r=[{x:e,y:v[t],nullData:n,isExtension:!1}];return!n&&(t===0||b[t-1]==null)&&r.unshift({x:(w(e)??0)-(w.step()-w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),!n&&(t===b.length-1||b[t+1]==null)&&r.push({x:(w(e)??0)+(w.step()+w.bandwidth())/2,y:v[t],nullData:n,isExtension:!0}),r}return{x:e,y:v[t],nullData:n}})??[];let re=x?ne.filter(e=>!e.nullData):ne,ie=n[r].hidden,j=xV().x(e=>e.isExtension?e.x:T(e.x)).defined(e=>x||!e.nullData||!!e.isExtension).y(e=>E(ie?e.y[0]:e.y[1])).curve(vU(S))(re)||``;c.push({color:n[r].color,gradientId:O,d:j,seriesId:r,hidden:n[r].hidden,isSampled:y})}}return c},[r,i,a,e,t,o,_,g,u,m,h,f,p,y])}var NU=[`slots`,`slotProps`,`skipAnimation`,`onItemClick`,`className`],PU=Z(`g`,{name:`MuiLinePlot`,slot:`Root`})({[`& .${fU.line}`]:{transitionProperty:`opacity, fill`,transitionDuration:`300ms`,transitionTimingFunction:Cz}}),FU=()=>{let{xAxis:e}=IB(),{yAxis:t}=LB();return MU(e,t)};function IU(e){let{slots:t,slotProps:n,skipAnimation:r,onItemClick:i,className:a}=e,o=KE(e,NU),s=gU(_U()||r),c=FU(),l=pU(),u=CU(i,xU.line);return(0,J.jsx)(PU,q({className:Y(l.linePlot,a)},o,{children:c.map(({d:e,seriesId:r,color:i,gradientId:a,hidden:o,isSampled:c})=>(0,J.jsx)(jU,{seriesId:r,d:e,color:i,gradientId:a,hidden:o,skipAnimation:s||c,slots:t,slotProps:n,onClick:u&&(e=>u(e,r))},r))}))}var LU=[`x`,`y`,`seriesId`,`classes`,`color`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`shape`,`hidden`],RU=Z(`circle`,{slot:`internal`,shouldForwardProp:void 0})({[`&.${fU.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`cx, cy, opacity`,transitionTimingFunction:Cz}});function zU(e){let{x:t,y:n,seriesId:r,classes:i,color:a,dataIndex:o,onClick:s,skipAnimation:c,isFaded:l=!1,isHighlighted:u=!1,hidden:d}=e,f=KE(e,LU),p=ZR().use(rF,`enablePositionBasedPointerInteraction`),m=XR({type:`line`,seriesId:r,dataIndex:o}),h=xE(),g=pU({skipAnimation:c,classes:i});return(0,J.jsx)(RU,q({},f,p?{}:m,{cx:t,cy:n,r:5,fill:(h.vars||h).palette.background.paper,stroke:a,strokeWidth:2,className:g.mark,onClick:s,cursor:s?`pointer`:`unset`,pointerEvents:d?`none`:void 0,"data-highlighted":u||void 0,"data-faded":l||void 0,"data-series-id":r,"data-series":r,"data-index":o,opacity:+!d}))}function BU(e){switch(e){case`circle`:return 0;case`cross`:return 1;case`diamond`:return 2;case`square`:return 3;case`star`:return 4;case`triangle`:return 5;case`wye`:return 6;default:return 0}}var VU=[`x`,`y`,`seriesId`,`classes`,`color`,`shape`,`dataIndex`,`onClick`,`skipAnimation`,`isFaded`,`isHighlighted`,`hidden`,`style`],HU=Z(`path`,{name:`MuiMarkElement`,slot:`Root`})(({theme:e})=>({fill:(e.vars||e).palette.background.paper,[`&.${fU.markAnimate}`]:{transitionDuration:`300ms`,transitionProperty:`transform, transform-origin, opacity`,transitionTimingFunction:Cz}}));function UU(e){let{x:t,y:n,seriesId:r,classes:i,color:a,shape:o,dataIndex:s,onClick:c,skipAnimation:l,isFaded:u=!1,isHighlighted:d=!1,hidden:f,style:p}=e,m=KE(e,VU),h=ZR().use(rF,`enablePositionBasedPointerInteraction`),g=XR({type:`line`,seriesId:r,dataIndex:s}),_={seriesId:r,classes:i,isHighlighted:d,isFaded:u,skipAnimation:l},v=pU({skipAnimation:l,classes:i});return(0,J.jsx)(HU,q({},m,h?{}:g,{style:q({},p,{transform:`translate(${t}px, ${n}px)`,transformOrigin:`${t}px ${n}px`}),ownerState:_,className:v.mark,d:qV(KV[BU(o)])(),onClick:c,cursor:c?`pointer`:`unset`,pointerEvents:f?`none`:void 0,"data-highlighted":d||void 0,"data-faded":u||void 0,"data-series-id":r,"data-series":r,"data-index":s,opacity:+!f,strokeWidth:2,stroke:a}))}function WU(e){return e.colorGetter?e.colorGetter:()=>e.color}function GU(e){let{series:t,valueColorScale:n,categoryColorScale:r,categoryValues:i}=e,a=WU(t);return n?e=>{if(e===void 0)return t.color;let r=t.data[e],i=n(r);return typeof i==`string`?i:a({value:r,dataIndex:e})}:r&&i?e=>{if(e===void 0)return t.color;let n=i[e],o={value:t.data[e],dataIndex:e},s=r(n);return typeof s==`string`?s:a(o)}:e=>{if(e===void 0)return t.color;let n=t.data[e];return a({value:n,dataIndex:e})}}var KU=(e,t,n)=>GU({series:e,valueColorScale:n?.colorScale,categoryColorScale:t?.colorScale,categoryValues:t?.data});function qU(e,t){let n=YB(),r=IB().xAxisIds[0],i=LB().yAxisIds[0],a=$z(),{instance:o}=JR();return b.useMemo(()=>{if(n===void 0)return[];let{series:s,stackingGroups:c}=n,l=[];for(let n of c){let c=n.ids;for(let n of c){let{xAxisId:c=r,yAxisId:u=i,visibleStackedData:d,data:f,showMark:p,shape:m=`circle`,hidden:h}=s[n];if(!p||p===`start`||p===`end`||!(c in e)||!(u in t))continue;let g=xR(e[c].scale),_=t[u].scale,v=e[c].data,y=Zz(`${a}-${n}-line-clip`),b=KU(s[n],e[c],t[u]),x=[];if(v)for(let e=0;e{let e={};for(let{dataIndex:t,axisId:n}of f)e[n]===void 0?e[n]=new Set([t]):e[n].add(t);return e},[f]),m=qU(c,l);SU(i,xU.mark,({seriesId:e,dataIndex:t})=>m.some(n=>n.seriesId===e&&!n.hidden&&n.marks.some(e=>e.index===t)));let h=pU();return(0,J.jsx)(YU,q({className:Y(h.markPlot,a)},o,{children:m.map(({seriesId:e,clipId:r,shape:a,xAxisId:o,marks:c,hidden:l})=>{let u=t?.mark??(a===`circle`?zU:UU),f=d({type:`line`,seriesId:e}),m=f===`highlighted`,h=f===`faded`;return(0,J.jsx)(`g`,{clipPath:`url(#${r})`,"data-series":e,children:c.map(({x:t,y:r,index:c,color:d})=>(0,J.jsx)(u,q({seriesId:e,dataIndex:c,shape:a,color:d,x:t,y:r,skipAnimation:s,onClick:i&&(t=>i(t,{type:`line`,seriesId:e,dataIndex:c})),isHighlighted:p[o]?.has(c)||m,isFaded:h,hidden:l},n?.mark),`${e}-${c}`))},e)})}))}var ZU=()=>()=>{},QU=()=>!0,$U=()=>!1;function eW(){return b.useSyncExternalStore(ZU,QU,$U)}function tW(e=!1){let[t,n]=b.useState(!1);return UC(()=>{e||n(!0)},[e]),b.useEffect(()=>{e&&n(!0)},[e]),t}function nW(e){return Math.PI/180*e}var rW=typeof window<`u`&&`Intl`in window&&`Segmenter`in Intl?new Intl.Segmenter(void 0,{granularity:`grapheme`}):null;function iW(e,t){return e.slice(0,t)}function aW(e,t){let n=rW.segment(e),r=``,i=0;for(let e of n)if(r+=e.segment,i+=1,i>=t)break;return r}var oW=rW?aW:iW,sW=`…`;function cW(e,t){let{width:n,height:r,measureText:i}=t,a=nW(t.angle),o=i(e),s=Math.abs(o.width*Math.cos(a))+Math.abs(o.height*Math.sin(a)),c=Math.abs(o.width*Math.sin(a))+Math.abs(o.height*Math.cos(a));return s<=n&&c<=r}function lW(e,t){if(t(e))return e;let n=e,r=1,i=1/2,a=pO(e),o=a,s=a,c=null;do{if(s=o,o=Math.floor(a*i),o===0)break;n=oW(e,o).trim();let l=t(n+sW);r+=1,l?(c=n,i+=1/2**r):i-=1/2**r}while(Math.abs(o-s)!==1);return c?c+sW:``}function uW(e,t,n,r,i){let a=new Map,o=yB(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>90&&o<270&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.left+t.width+t.right-r.offset-r.labelOffset)*c);a.set(r,lW(r.formattedValue.toString(),t=>cW(t,{width:e,height:n,angle:o,measureText:e=>iO(e,i)})))}return a}var dW=5;function fW(e,t,n=0){let r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r85)return t;let i=lO(r);return in(e.value,t)));let s=0,c=i?-1:1,l=e.filter(e=>{let{offset:t,labelOffset:n,formattedValue:r}=e;return r!==``&&o(t+n)}),u=hW(l,t);return new Set(l.filter((e,n)=>{let{offset:i,labelOffset:o}=e,l=i+o;if(n>0&&c*l0&&c*mn.add(e));return aO(n,t)}function gW({style:e,needsComputation:t,text:n}){return n.split(` +`).map(n=>q({text:n},t?iO(n,e):{width:0,height:0}))}var _W=[`x`,`y`,`style`,`text`,`ownerState`],vW=[`angle`,`textAnchor`,`dominantBaseline`];function yW(e){let{x:t,y:n,style:r,text:i}=e,a=KE(e,_W),o=r??{},{angle:s,textAnchor:c,dominantBaseline:l}=o,u=KE(o,vW),d=eW(),f=b.useMemo(()=>gW({style:u,needsComputation:d&&i.includes(` +`),text:i}),[u,i,d]),p;switch(l){case`hanging`:case`text-before-edge`:p=0;break;case`central`:p=(f.length-1)/2*-f[0].height;break;default:p=(f.length-1)*-f[0].height}return(0,J.jsx)(`text`,q({},a,{transform:s?`rotate(${s}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:c,dominantBaseline:l,style:u,children:f.map((e,n)=>(0,J.jsx)(`tspan`,{x:t,dy:`${n===0?p:f[0].height}px`,dominantBaseline:l,children:e.text},n))}))}function bW(e){let t=yB(e);return t<=30||t>=330||t<=210&&t>=150?`middle`:t<=180?`end`:`start`}function xW(e){let t=yB(e);return t<=30||t>=330?`hanging`:t<=210&&t>=150?`auto`:`central`}function SW(e){switch(e){case`start`:return`end`;case`end`:return`start`;default:return e}}var CW=[`scale`,`tickNumber`,`reverse`];function wW(e){let{xAxis:t,xAxisIds:n}=IB(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a,reverse:o}=r,s=KE(r,CW),c=RE({props:q({},s,e),name:`MuiChartsXAxis`}),l=q({},UH,c),{position:u,tickLabelStyle:d,slots:f,slotProps:p}=l,m=xE(),h=yw(),g=HH(l),_=u===`bottom`?1:-1,v=f?.axisTick??`line`,y=f?.axisTickLabel??yW,b=bW((u===`bottom`?0:180)-(d?.angle??0)),x=xW((u===`bottom`?0:180)-(d?.angle??0));return{xScale:i,defaultizedProps:l,tickNumber:a,positionSign:_,classes:g,Tick:v,TickLabel:y,axisTickLabelProps:$E({elementType:y,externalSlotProps:p?.axisTickLabel,additionalProps:{style:q({},m.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:h?SW(b):b,dominantBaseline:x},d)},className:g.tickLabel,ownerState:{}}),reverse:o}}function TW(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{xScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u,reverse:d}=wW(e),f=yw(),p=tW(),{disableTicks:m,tickSize:h,valueFormatter:g,slotProps:_,tickInterval:v,tickLabelInterval:y,tickPlacement:x,tickLabelPlacement:S,tickLabelMinGap:C,tickSpacing:w,height:T}=i,E=Qz(),{instance:D}=JR(),O=eW(),k=m?4:h,ee=aU({scale:r,tickNumber:a,valueFormatter:g,tickInterval:v,tickPlacement:x,tickLabelPlacement:S,tickSpacing:w,direction:`x`,ordinalTimeTicks:n}),te=pW(ee,{tickLabelStyle:u.style,tickLabelInterval:y,tickLabelMinGap:C,reverse:d,isMounted:p,isXInside:D.isXInside}),A=Math.max(0,T-(t>0?t+4:0)-k-3),ne=O?uW(te,E,A,f,u.style):new Map(Array.from(te).map(e=>[e,e.formattedValue]));return(0,J.jsx)(b.Fragment,{children:ee.map((e,t)=>{let{offset:n,labelOffset:r}=e,i=r??0,a=o*(k+3),d=D.isXInside(n),f=ne.get(e),p=te.has(e);return(0,J.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:s.tickContainer,children:[!m&&d&&(0,J.jsx)(c,q({y2:o*k,className:s.tick},_?.axisTick)),f!==void 0&&p&&(0,J.jsx)(l,q({x:i,y:a},u,{text:f}))]},t)})})}var EW={start:0,extremities:0,end:1,middle:.5,tick:0};function DW(e){let{scale:t,tickInterval:n,tickLabelPlacement:r=`middle`,tickPlacement:i=`extremities`,groups:a}=e;return b.useMemo(()=>{let e=t.domain(),o=typeof n==`function`&&e.filter(n)||typeof n==`object`&&n||e;if(t.bandwidth()>0){let e=OW(o,a,i,r,t);return e[0]&&(e[0].ignoreTick=!0),[{formattedValue:void 0,offset:t.range()[0],labelOffset:0,groupIndex:a.length-1},...e,{formattedValue:void 0,offset:t.range()[1],labelOffset:0,groupIndex:a.length-1}]}return OW(o,a,i,r,t)},[t,n,a,i,r])}function OW(e,t,n,r,i){let a=[],o=new Map,s=0;for(let c=0;c{let i=e[t]??{},a=n??kW.tickSize,o=a*t*2+a;return q({},kW,i,{tickSize:r?.[t]??i.tickSize??o})};function jW(e){let{xScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=wW(e);if(!cI(t))throw Error(eD(8));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=JR(),y=ZR().use(LP),x=(_?y[_]:void 0)?.groupTickSizes,S=DW({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`x`,groups:g});return(0,J.jsx)(b.Fragment,{children:S.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isXInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=AW(g,_,u,x),b=i*y.tickSize,S=i*(y.tickSize+3);return(0,J.jsxs)(`g`,{transform:`translate(${n}, 0)`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,J.jsx)(o,q({y2:b,className:a.tick},f?.axisTick)),m!==void 0&&(0,J.jsx)(s,q({x:d,y:S},c,{style:q({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var MW=Z(`g`,{name:`MuiChartsAxis`,slot:`Root`})(({theme:e})=>({[`& .${VH.tickLabel}`]:q({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${VH.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${VH.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,strokeWidth:1},[`& .${VH.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`}})),NW=[`axis`],PW=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],FW=Z(MW,{name:`MuiChartsXAxis`,slot:`Root`})({});function IW(e){let{axis:t}=e,n=KE(e,NW),{scale:r,ordinalTimeTicks:i}=t,a=KE(t,PW),o=RE({props:q({},a,n),name:`MuiChartsXAxis`}),s=q({},UH,o),{position:c,className:l,labelStyle:u,offset:d,slots:f,slotProps:p,sx:m,disableLine:h,label:g,height:_}=s,v=xE(),y=HH(s),{left:b,top:x,width:S,height:C}=Qz(),w=c===`bottom`?1:-1,T=f?.axisLine??`line`,E=f?.axisLabel??yW,D=$E({elementType:E,externalSlotProps:p?.axisLabel,additionalProps:{style:q({},v.typography.body1,{lineHeight:1,fontSize:14,textAnchor:`middle`,dominantBaseline:c===`bottom`?`text-after-edge`:`text-before-edge`},u)},ownerState:{}});if(c===`none`)return null;let O=g?iO(g,D.style).height:0,k=r.domain(),ee=cI(r)?k.length===0:k.some(WH),te=null;ee||(te=`groups`in t&&Array.isArray(t.groups)?(0,J.jsx)(jW,q({},n)):(0,J.jsx)(TW,q({},n,{axisLabelHeight:O,ordinalTimeTicks:i})));let A={x:b+S/2,y:w*_};return(0,J.jsxs)(FW,{transform:`translate(0, ${c===`bottom`?x+C+d:x-d})`,className:Y(y.root,l),"data-axis-id":s.id,sx:m,children:[!h&&(0,J.jsx)(T,q({x1:b,x2:b+S,className:y.line},p?.axisLine)),te,g&&(0,J.jsx)(`g`,{className:y.label,children:(0,J.jsx)(E,q({},A,D,{text:g}))})]})}function LW(e){let{xAxis:t,xAxisIds:n}=IB(),r=t[e.axisId??n[0]];return r?(0,J.jsx)(IW,q({},e,{axis:r})):null}function RW(e,t,n,r,i){let a=new Map,o=yB(i?.angle??0),s=1,c=1;i?.textAnchor===`start`?(s=1/0,c=1):i?.textAnchor===`end`?(s=1,c=1/0):(s=2,c=2),o>180&&([s,c]=[c,s]),r&&([s,c]=[c,s]);for(let r of e)if(r.formattedValue){let e=Math.min((r.offset+r.labelOffset)*s,(t.top+t.height+t.bottom-r.offset-r.labelOffset)*c);a.set(r,lW(r.formattedValue.toString(),t=>cW(t,{width:n,height:e,angle:o,measureText:e=>iO(e,i)})))}return a}var zW=e=>{let{classes:t,position:n}=e;return tT({root:[`root`,`directionY`,n],line:[`line`],tickContainer:[`tickContainer`],tick:[`tick`],tickLabel:[`tickLabel`],label:[`label`]},BH,t)},BW={disableLine:!1,disableTicks:!1,tickSize:6},VW=[`scale`,`tickNumber`,`reverse`];function HW(e){let{yAxis:t,yAxisIds:n}=LB(),r=t[e.axisId??n[0]],{scale:i,tickNumber:a}=r,o=KE(r,VW),s=RE({props:q({},o,e),name:`MuiChartsYAxis`}),c=q({},BW,s),{position:l,tickLabelStyle:u,slots:d,slotProps:f}=c,p=xE(),m=yw(),h=zW(c),g=l===`right`?1:-1,_=typeof u?.fontSize==`number`?u.fontSize:12,v=d?.axisTick??`line`,y=d?.axisTickLabel??yW,b=bW((l===`right`?-90:90)-(u?.angle??0)),x=xW((l===`right`?-90:90)-(u?.angle??0));return{yScale:i,defaultizedProps:c,tickNumber:a,positionSign:g,classes:h,Tick:v,TickLabel:y,axisTickLabelProps:$E({elementType:y,externalSlotProps:f?.axisTickLabel,additionalProps:{style:q({},p.typography.caption,{fontSize:_,textAnchor:m?SW(b):b,dominantBaseline:x},u)},className:h.tickLabel,ownerState:{}})}}function UW(e){let{axisLabelHeight:t,ordinalTimeTicks:n}=e,{yScale:r,defaultizedProps:i,tickNumber:a,positionSign:o,classes:s,Tick:c,TickLabel:l,axisTickLabelProps:u}=HW(e),d=yw(),{disableTicks:f,tickSize:p,valueFormatter:m,slotProps:h,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickLabelInterval:y,tickSpacing:x,width:S}=i,C=Qz(),{instance:w}=JR(),T=eW(),E=f?4:p,D=aU({scale:r,tickNumber:a,valueFormatter:m,tickPlacement:g,tickLabelPlacement:_,tickInterval:v,tickSpacing:x,direction:`y`,ordinalTimeTicks:n}),O=Math.max(0,S-(t>0?t+2:0)-E-2),k=T?RW(D,C,O,d,u.style):new Map(Array.from(D).map(e=>[e,e.formattedValue]));return(0,J.jsx)(b.Fragment,{children:D.map((e,t)=>{let{offset:n,labelOffset:r,value:i}=e,a=o*(E+2),d=r,p=typeof y==`function`&&!y?.(i,t),m=w.isYInside(n),g=k.get(e);return m?(0,J.jsxs)(`g`,{transform:`translate(0, ${n})`,className:s.tickContainer,children:[!f&&(0,J.jsx)(c,q({x2:o*E,className:s.tick},h?.axisTick)),g!==void 0&&!p&&(0,J.jsx)(l,q({x:a,y:d,text:g},u))]},t):null})})}function WW(e){let{yScale:t,defaultizedProps:n,tickNumber:r,positionSign:i,classes:a,Tick:o,TickLabel:s,axisTickLabelProps:c}=HW(e);if(!cI(t))throw Error(eD(9));let{disableTicks:l,tickSize:u,valueFormatter:d,slotProps:f,tickInterval:p,tickPlacement:m,tickLabelPlacement:h}=n,g=n.groups,_=n.id,{instance:v}=JR(),y=ZR().use(zP),x=(_?y[_]:void 0)?.groupTickSizes,S=DW({scale:t,tickNumber:r,valueFormatter:d,tickInterval:p,tickPlacement:m,tickLabelPlacement:h,direction:`y`,groups:g});return(0,J.jsx)(b.Fragment,{children:S.map((e,t)=>{let{offset:n,labelOffset:r}=e,d=r??0,p=v.isYInside(n),m=e.formattedValue,h=e.ignoreTick??!1,_=e.groupIndex??0,y=AW(g,_,u,x),b=i*y.tickSize,S=i*(y.tickSize+2);return(0,J.jsxs)(`g`,{transform:`translate(0, ${n})`,className:a.tickContainer,"data-group-index":_,children:[!l&&!h&&p&&(0,J.jsx)(o,q({x2:b,className:a.tick},f?.axisTick)),m!==void 0&&(0,J.jsx)(s,q({x:S,y:d},c,{style:q({},c.style,y.tickLabelStyle),text:m}))]},t)})})}var GW=[`axis`],KW=[`scale`,`tickNumber`,`reverse`,`ordinalTimeTicks`],qW=Z(MW,{name:`MuiChartsYAxis`,slot:`Root`})({});function JW(e){let{axis:t}=e,n=KE(e,GW),{scale:r,ordinalTimeTicks:i}=t,a=KE(t,KW),o=eW(),s=RE({props:q({},a,n),name:`MuiChartsYAxis`}),c=q({},BW,s),{position:l,className:u,disableLine:d,label:f,labelStyle:p,offset:m,width:h,sx:g,slots:_,slotProps:v}=c,y=xE(),b=zW(c),{left:x,top:S,width:C,height:w}=Qz(),T=l===`right`?1:-1,E=_?.axisLine??`line`,D=_?.axisLabel??yW,O=$E({elementType:E,externalSlotProps:v?.axisLine,additionalProps:{strokeLinecap:`square`},ownerState:{}}),k=$E({elementType:D,externalSlotProps:v?.axisLabel,additionalProps:{style:q({},y.typography.body1,{lineHeight:1,fontSize:14,angle:T*90,textAnchor:`middle`,dominantBaseline:`text-before-edge`},p)},ownerState:{}});if(l===`none`)return null;let ee={x:T*h,y:S+w/2},te=f==null?0:iO(f,k.style).height,A=r.domain(),ne=cI(r)?A.length===0:A.some(WH),re=null;return ne||(re=`groups`in t&&Array.isArray(t.groups)?(0,J.jsx)(WW,q({},n)):(0,J.jsx)(UW,q({},n,{axisLabelHeight:te,ordinalTimeTicks:i}))),(0,J.jsxs)(qW,{transform:`translate(${l===`right`?x+C+m:x-m}, 0)`,className:Y(b.root,u),"data-axis-id":c.id,sx:g,children:[!d&&(0,J.jsx)(E,q({y1:S,y2:S+w,className:b.line},O)),re,f&&o&&(0,J.jsx)(`g`,{className:b.label,children:(0,J.jsx)(D,q({},ee,k,{text:f}))})]})}function YW(e){let{yAxis:t,yAxisIds:n}=LB(),r=t[e.axisId??n[0]];return r?(0,J.jsx)(JW,q({},e,{axis:r})):null}function XW(e){let{slots:t,slotProps:n}=e,{xAxisIds:r,xAxis:i}=IB(),{yAxisIds:a,yAxis:o}=LB(),s=t?.xAxis??LW,c=t?.yAxis??YW;return(0,J.jsxs)(b.Fragment,{children:[r.map(e=>!i[e].position||i[e].position===`none`?null:(0,J.jsx)(s,{slots:t,slotProps:n,axisId:e},e)),a.map(e=>!o[e].position||o[e].position===`none`?null:(0,J.jsx)(c,{slots:t,slotProps:n,axisId:e},e))]})}function ZW(e){return typeof e.main==`string`}function QW(e,t=[]){if(!ZW(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function $W(e=[]){return([,t])=>t&&QW(t,e)}function eG(e){return DC(`MuiTypography`,e)}OC(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]);var tG=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return tT({root:[`root`,i,e.align!==`inherit`&&`align${EE(t)}`,n&&`gutterBottom`,r&&`noWrap`]},eG,a)},nG=Z(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${EE(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(wE(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter($W()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${EE(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),rG={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},iG=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=rG,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||rG[l]||`span`,m=tG(f);return(0,J.jsx)(nG,{as:p,ref:t,className:Y(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function aG(e){return DC(`MuiChartsTooltip`,e)}var oG=OC(`MuiChartsTooltip`,[`root`,`paper`,`table`,`row`,`cell`,`mark`,`markContainer`,`labelCell`,`valueCell`,`axisValueCell`]),sG=e=>tT({root:[`root`],paper:[`paper`],table:[`table`],row:[`row`],cell:[`cell`],mark:[`mark`],markContainer:[`markContainer`],labelCell:[`labelCell`],valueCell:[`valueCell`],axisValueCell:[`axisValueCell`]},aG,e);function cG(){let e=ZR(),t=e.use(UR),n=e.use(HN),r=KB(),{xAxis:i,xAxisIds:a}=IB(),{yAxis:o,yAxisIds:s}=LB(),{zAxis:c,zAxisIds:l}=WB(),{rotationAxis:u,rotationAxisIds:d}=BB(),{radiusAxis:f,radiusAxisIds:p}=VB();if(!t)return null;let m=r[t.type]?.series[t.seriesId];if(!m)return null;let h=hP(m)?m.xAxisId??a[0]:void 0,g=hP(m)?m.yAxisId??s[0]:void 0,_=tB(m)?(`radiusAxisId`in m?m.radiusAxisId:void 0)??p[0]:void 0,v=tB(m)?(`rotationAxisId`in m?m.rotationAxisId:void 0)??d[0]:void 0,y=(`colorAxisId`in m?m.colorAxisId:void 0)??(`zAxisId`in m?m.zAxisId:void 0)??l[0],b=v===void 0?h===void 0?void 0:i[h]:u[v],x=_===void 0?g===void 0?void 0:o[g]:f[_],S=n[m.type].colorProcessor(m,b,x,y===void 0?void 0:c[y]),C={};return h!==void 0&&(C.x=i[h]),g!==void 0&&(C.y=o[g]),v!==void 0&&(C.rotation=u[v]),_!==void 0&&(C.radius=f[_]),n[m.type].tooltipGetter({series:m,axesConfig:C,getColor:S,identifier:t})}var lG=Z(`div`,{name:`MuiChartsTooltip`,slot:`Container`,overridesResolver:(e,t)=>t.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(e.vars||e).shape?.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`})),uG=Z(`table`,{name:`MuiChartsTooltip`,slot:`Table`})(({theme:e})=>({borderSpacing:0,[`& .${oG.markContainer}`]:{display:`inline-block`,width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:`middle`},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:`start`,whiteSpace:`nowrap`,"& span":{marginRight:e.spacing(1.5)}}})),dG=Z(`tr`,{name:`MuiChartsTooltip`,slot:`Row`})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),fG=Z(iG,{name:`MuiChartsTooltip`,slot:`Cell`})(({theme:e})=>({verticalAlign:`middle`,color:(e.vars||e).palette.text.secondary,textAlign:`start`,[`&.${oG.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${oG.labelCell}`]:{whiteSpace:`nowrap`,fontWeight:e.typography.fontWeightRegular},[`&.${oG.valueCell}, &.${oG.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${oG.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function pG(e){return DC(`MuiChartsLabelMark`,e)}var mG=OC(`MuiChartsLabelMark`,[`root`,`line`,`lineAndMark`,`square`,`circle`,`fill`]),hG=e=>{let{type:t}=e;return tT({root:typeof t==`function`?[`root`]:[`root`,t===`line+mark`?`lineAndMark`:t],fill:[`fill`]},pG,e.classes)},gG=(e,t,n)=>b.forwardRef(function(r,i){let a=RE({props:r,name:e}),o=BC(typeof t.defaultProps==`function`?t.defaultProps(a):t.defaultProps??{},a),s=xE(),c=t.classesResolver?.(o,s);return(0,J.jsx)(b.forwardRef(n),q({},o,{classes:c,ref:i}))}),_G=[`type`,`markShape`,`color`,`className`,`classes`],vG=Z(`div`,{name:`MuiChartsLabelMark`,slot:`Root`})(()=>({display:`flex`,width:14,height:14,"& > *":{width:`100%`,height:`100%`},[`&.${mG.line}`]:{width:16,height:8,alignItems:`center`},[`&.${mG.lineAndMark}`]:{alignItems:`center`},[`&.${mG.square}`]:{height:13,width:13,borderRadius:2,overflow:`hidden`},[`&.${mG.circle}`]:{height:15,width:15},svg:{display:`block`}})),yG=gG(`MuiChartsLabelMark`,{defaultProps:{type:`square`},classesResolver:hG},function(e,t){let{type:n,markShape:r,color:i,className:a,classes:o}=e,s=KE(e,_G),c=n,l=xE();return(0,J.jsx)(vG,q({className:Y(o?.root,a),ownerState:e,"aria-hidden":`true`,ref:t},s,{children:typeof c==`function`?(0,J.jsx)(c,{className:o?.fill,color:i}):(0,J.jsxs)(b.Fragment,{children:[n===`circle`&&(0,J.jsx)(`svg`,{viewBox:`0 0 15 15`,children:(0,J.jsx)(`circle`,{className:o?.fill,r:`7.5`,cx:`7.5`,cy:`7.5`,fill:i})}),n===`line`&&(0,J.jsx)(`svg`,{viewBox:`0 0 16 8`,preserveAspectRatio:`none`,children:(0,J.jsx)(`path`,{className:o?.fill,d:`M 2 4 L 14 4`,stroke:i,strokeWidth:`4`,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`})}),n===`line+mark`&&(0,J.jsxs)(`svg`,{viewBox:`0 0 16 16`,preserveAspectRatio:`none`,children:[(0,J.jsx)(`path`,{className:o?.fill,d:`M 1 8 L 15 8`,stroke:i,strokeWidth:2,strokeLinecap:`round`,vectorEffect:`non-scaling-stroke`}),r&&(0,J.jsx)(`path`,{d:qV(KV[BU(r)],32)(),transform:`translate(8, 8) `,stroke:i,strokeWidth:2,fill:(l.vars||l).palette.background.paper})]}),n!==`line`&&n!==`circle`&&n!==`line+mark`&&(0,J.jsx)(`svg`,{viewBox:`0 0 13 13`,children:(0,J.jsx)(`rect`,{className:o?.fill,width:`13`,height:`13`,fill:i})})]})}))});function bG(e){let{classes:t,sx:n}=e,r=cG(),i=ZR().use(HN),a=sG(t);if(!r)return null;let o=i[r.identifier.type],s=o&&`ItemTooltipContent`in o?o.ItemTooltipContent:null;if(`values`in r){let{label:e,color:i,markType:o,markShape:c}=r,l=s??xG;return(0,J.jsx)(lG,{sx:n,className:a.paper,children:(0,J.jsxs)(uG,{className:a.table,children:[(0,J.jsxs)(iG,{component:`caption`,children:[(0,J.jsx)(`div`,{className:a.markContainer,children:(0,J.jsx)(yG,{type:o,markShape:c,color:i,className:a.mark})}),e]}),(0,J.jsx)(`tbody`,{children:(0,J.jsx)(l,{classes:t,item:r})})]})})}let c=s??SG;return(0,J.jsx)(lG,{sx:n,className:a.paper,children:(0,J.jsx)(uG,{className:a.table,children:(0,J.jsx)(`tbody`,{children:(0,J.jsx)(c,{classes:t,item:r})})})})}function xG({classes:e,item:t}){let n=sG(e);return(0,J.jsx)(b.Fragment,{children:t.values.map(e=>(0,J.jsxs)(dG,{className:n.row,"data-series":t.identifier.seriesId,"data-index":t.identifier.dataIndex,children:[(0,J.jsx)(fG,{className:Y(n.labelCell,n.cell),component:`th`,children:e.label}),(0,J.jsx)(fG,{className:Y(n.valueCell,n.cell),component:`td`,children:e.formattedValue})]},e.label))})}function SG({classes:e,item:t}){let{color:n,label:r,formattedValue:i,markType:a,markShape:o}=t,s=sG(e);return i==null||typeof i!=`string`?null:(0,J.jsxs)(dG,{className:s.row,"data-series":t.identifier.seriesId,"data-index":`dataIndex`in t.identifier?t.identifier.dataIndex:void 0,children:[(0,J.jsxs)(fG,{className:Y(s.labelCell,s.cell),component:`th`,children:[(0,J.jsx)(`div`,{className:s.markContainer,children:(0,J.jsx)(yG,{type:a,markShape:o,color:n,className:s.mark})}),r]}),(0,J.jsx)(fG,{className:Y(s.valueCell,s.cell),component:`td`,children:i})]})}function CG(e){let t=ZR().use(HN),n=b.useMemo(()=>{let e={};return Object.keys(t).forEach(n=>{e[n]=t[n].colorProcessor}),e},[t]);return e?n[e]:n}function wG(e,t){return typeof e==`function`?e(t):e}var TG=qC({themeId:by});function EG(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}var DG=`@media (pointer: fine)`,OG=()=>TG(DG,{defaultMatches:!0}),kG=new Set([`bar`,`line`,`scatter`,`rangeBar`,`ohlc`]);function AG(e,t,n){let r=e.data?.[t]??null,i=(e.valueFormatter??(t=>e.scaleType===`utc`?EG(t):t.toLocaleString()))(r,{location:`tooltip`,scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function jG(e){if(!(!(`showMark`in e)||!e.showMark))return`shape`in e&&e.shape?e.shape:`circle`}function MG(e){let{directions:t}=e??{},n=RB(),r=zB(),i=HB(),a=UB(),o=ZR(),s=o.use(TR),c=o.use(ER),l=o.use(AB),u=o.use(PB),d=KB(),{xAxis:f}=IB(),{yAxis:p}=LB(),{zAxis:m,zAxisIds:h}=WB(),{rotationAxis:g}=BB(),{radiusAxis:_}=VB(),v=CG(),y=o.use(GN);if(s.length===0&&c.length===0&&l.length===0&&u.length===0)return null;let b=[];return(t===void 0||t.includes(`x`))&&s.forEach(({axisId:e,dataIndex:t})=>{b.push(AG(f[e],t,`x`))}),(t===void 0||t.includes(`y`))&&c.forEach(({axisId:e,dataIndex:t})=>{b.push(AG(p[e],t,`y`))}),(t===void 0||t.includes(`rotation`))&&l.forEach(({axisId:e,dataIndex:t})=>{b.push(AG(g[e],t,`rotation`))}),(t===void 0||t.includes(`radius`))&&u.forEach(({axisId:e,dataIndex:t})=>{b.push(AG(_[e],t,`radius`))}),Object.keys(d).filter(e=>kG.has(e)).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(i=>{let a=t.series[i];if(y&&!y({type:e,seriesId:i}))return;let o=a.xAxisId??n.id,s=a.yAxisId??r.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`x`&&t===o||e===`y`&&t===s);if(c>=0){let t=`colorAxisId`in a&&a.colorAxisId||`zAxisId`in a&&a.zAxisId||h[0],{dataIndex:n}=b[c],r=v[e]?.(a,f[o],p[s],t?m[t]:void 0)(n)??``,l=a.data[n]??null,u=wG(a.label,`tooltip`)??null,d,g;if(e===`ohlc`&&Array.isArray(l)){let[e,t,r,i]=l,o=a.valueFormatter;d={open:e,high:t,low:r,close:i},g={open:o(e,{dataIndex:n,field:`open`}),high:o(t,{dataIndex:n,field:`high`}),low:o(r,{dataIndex:n,field:`low`}),close:o(i,{dataIndex:n,field:`close`})}}else d=l,g=a.valueFormatter(l,{dataIndex:n});b[c].seriesItems.push({seriesId:i,color:r,value:d,formattedValue:g,formattedLabel:u,markType:a.labelMarkType,markShape:jG(a)})}}):[]}),Object.keys(d).filter(eB).forEach(e=>{let t=d[e];return t?t.seriesOrder.forEach(n=>{let r=t.series[n];if(y&&!y({type:e,seriesId:n}))return;let o=(`rotationAxisId`in r?r.rotationAxisId:void 0)??i?.id,s=(`radiusAxisId`in r?r.radiusAxisId:void 0)??a?.id,c=b.findIndex(({axisDirection:e,axisId:t})=>e===`rotation`&&t===o||e===`radius`&&t===s);if(c>=0){let{dataIndex:t}=b[c],i=v[e]?.(r,o===void 0?void 0:g[o],s===void 0?void 0:_[s])(t)??``,a=r.data[t]??null,l=r.valueFormatter(a,{dataIndex:t}),u=wG(r.label,`tooltip`)??null;b[c].seriesItems.push({seriesId:n,color:i,value:a,formattedValue:l,formattedLabel:u,markType:r.labelMarkType,markShape:jG(r)})}}):[]}),b}function NG(e){let{sort:t}=e,n=sG(e.classes),r=ZR().use(rP),i=MG();return i===null?null:(0,J.jsx)(lG,{sx:e.sx,className:n.paper,children:i.map(({axisId:i,mainAxis:a,axisValue:o,axisFormattedValue:s,seriesItems:c})=>{let l=t&&t!==`none`?[...c].sort((e,n)=>{let r=e.value?.valueOf(),i=n.value?.valueOf();return typeof r==`number`?typeof i==`number`?t===`asc`?r-i:i-r:-1:1}):c;return(0,J.jsxs)(uG,{className:n.table,children:[o!=null&&!a.hideTooltip&&(0,J.jsx)(iG,{component:`caption`,children:s}),(0,J.jsx)(`tbody`,{children:l.map(t=>{let n=r(t.seriesId),i=n&&`AxisTooltipContent`in n?n.AxisTooltipContent??PG:PG;return(0,J.jsx)(i,{classes:e.classes,item:t},t.seriesId)})})]},i)})})}function PG(e){let t=sG(e.classes),{item:n}=e;return n.formattedValue==null||typeof n.formattedValue!=`string`?null:(0,J.jsxs)(dG,{className:t.row,"data-series":n.seriesId,"data-index":`dataIndex`in n?n.dataIndex:void 0,children:[(0,J.jsxs)(fG,{className:Y(t.labelCell,t.cell),component:`th`,children:[(0,J.jsx)(`div`,{className:t.markContainer,children:(0,J.jsx)(yG,{type:n.markType,markShape:n.markShape,color:n.color,className:t.mark})}),n.formattedLabel||null]}),(0,J.jsx)(fG,{className:Y(t.valueCell,t.cell),component:`td`,children:n.formattedValue})]})}var FG=`bottom`,IG=`right`,LG=`left`,RG=`auto`,zG=[`top`,FG,IG,LG],BG=`start`,VG=`clippingParents`,HG=`viewport`,UG=`popper`,WG=`reference`,GG=zG.reduce(function(e,t){return e.concat([t+`-`+BG,t+`-end`])},[]),KG=[].concat(zG,[RG]).reduce(function(e,t){return e.concat([t,t+`-`+BG,t+`-end`])},[]),qG=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function JG(e){return e?(e.nodeName||``).toLowerCase():null}function YG(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function XG(e){return e instanceof YG(e).Element||e instanceof Element}function ZG(e){return e instanceof YG(e).HTMLElement||e instanceof HTMLElement}function QG(e){return typeof ShadowRoot>`u`?!1:e instanceof YG(e).ShadowRoot||e instanceof ShadowRoot}function $G(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!ZG(i)||!JG(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function eK(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 r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!ZG(r)||!JG(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var tK={name:`applyStyles`,enabled:!0,phase:`write`,fn:$G,effect:eK,requires:[`computeStyles`]};function nK(e){return e.split(`-`)[0]}var rK=Math.max,iK=Math.min,aK=Math.round;function oK(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function sK(){return!/^((?!chrome|android).)*safari/i.test(oK())}function cK(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&ZG(e)&&(i=e.offsetWidth>0&&aK(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&aK(r.height)/e.offsetHeight||1);var o=(XG(e)?YG(e):window).visualViewport,s=!sK()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function lK(e){var t=cK(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uK(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&QG(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dK(e){return YG(e).getComputedStyle(e)}function fK(e){return[`table`,`td`,`th`].indexOf(JG(e))>=0}function pK(e){return((XG(e)?e.ownerDocument:e.document)||window.document).documentElement}function mK(e){return JG(e)===`html`?e:e.assignedSlot||e.parentNode||(QG(e)?e.host:null)||pK(e)}function hK(e){return!ZG(e)||dK(e).position===`fixed`?null:e.offsetParent}function gK(e){var t=/firefox/i.test(oK());if(/Trident/i.test(oK())&&ZG(e)&&dK(e).position===`fixed`)return null;var n=mK(e);for(QG(n)&&(n=n.host);ZG(n)&&[`html`,`body`].indexOf(JG(n))<0;){var r=dK(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function _K(e){for(var t=YG(e),n=hK(e);n&&fK(n)&&dK(n).position===`static`;)n=hK(n);return n&&(JG(n)===`html`||JG(n)===`body`&&dK(n).position===`static`)?t:n||gK(e)||t}function vK(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function yK(e,t,n){return rK(e,iK(t,n))}function bK(e,t,n){var r=yK(e,t,n);return r>n?n:r}function xK(){return{top:0,right:0,bottom:0,left:0}}function SK(e){return Object.assign({},xK(),e)}function CK(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var wK=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,SK(typeof e==`number`?CK(e,zG):e)};function TK(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=nK(n.placement),c=vK(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=wK(i.padding,n),d=lK(a),f=c===`y`?`top`:LG,p=c===`y`?FG:IG,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=_K(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=yK(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function EK(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||uK(t.elements.popper,r)&&(t.elements.arrow=r))}var DK={name:`arrow`,enabled:!0,phase:`main`,fn:TK,effect:EK,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function OK(e){return e.split(`-`)[1]}var kK={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function AK(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:aK(n*i)/i||0,y:aK(r*i)/i||0}}function jK(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=LG,b=`top`,x=window;if(l){var S=_K(n),C=`clientHeight`,w=`clientWidth`;if(S===YG(n)&&(S=pK(n),dK(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=FG;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=IG;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&kK),O=u===!0?AK({x:p,y:h},YG(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function MK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:nK(t.placement),variation:OK(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jK(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jK(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var NK={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:MK,data:{}},PK={passive:!0};function FK(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=YG(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,PK)}),s&&c.addEventListener(`resize`,n.update,PK),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,PK)}),s&&c.removeEventListener(`resize`,n.update,PK)}}var IK={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:FK,data:{}},LK={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function RK(e){return e.replace(/left|right|bottom|top/g,function(e){return LK[e]})}var zK={start:`end`,end:`start`};function BK(e){return e.replace(/start|end/g,function(e){return zK[e]})}function VK(e){var t=YG(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function HK(e){return cK(pK(e)).left+VK(e).scrollLeft}function UK(e,t){var n=YG(e),r=pK(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=sK();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+HK(e),y:c}}function WK(e){var t=pK(e),n=VK(e),r=e.ownerDocument?.body,i=rK(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=rK(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+HK(e),s=-n.scrollTop;return dK(r||t).direction===`rtl`&&(o+=rK(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function GK(e){var t=dK(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function KK(e){return[`html`,`body`,`#document`].indexOf(JG(e))>=0?e.ownerDocument.body:ZG(e)&&GK(e)?e:KK(mK(e))}function qK(e,t){t===void 0&&(t=[]);var n=KK(e),r=n===e.ownerDocument?.body,i=YG(n),a=r?[i].concat(i.visualViewport||[],GK(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(qK(mK(a)))}function JK(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YK(e,t){var n=cK(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XK(e,t,n){return t===`viewport`?JK(UK(e,n)):XG(t)?YK(t,n):JK(WK(pK(e)))}function ZK(e){var t=qK(mK(e)),n=[`absolute`,`fixed`].indexOf(dK(e).position)>=0&&ZG(e)?_K(e):e;return XG(n)?t.filter(function(e){return XG(e)&&uK(e,n)&&JG(e)!==`body`}):[]}function QK(e,t,n,r){var i=t===`clippingParents`?ZK(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=XK(e,n,r);return t.top=rK(i.top,t.top),t.right=iK(i.right,t.right),t.bottom=iK(i.bottom,t.bottom),t.left=rK(i.left,t.left),t},XK(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function $K(e){var t=e.reference,n=e.element,r=e.placement,i=r?nK(r):null,a=r?OK(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case FG:c={x:o,y:t.y+t.height};break;case IG:c={x:t.x+t.width,y:s};break;case LG:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?vK(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case BG:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function eq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?VG:s,l=n.rootBoundary,u=l===void 0?HG:l,d=n.elementContext,f=d===void 0?UG:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=SK(typeof g==`number`?CK(g,zG):g),v=f===`popper`?WG:UG,y=e.rects.popper,b=e.elements[m?v:f],x=QK(XG(b)?b:b.contextElement||pK(e.elements.popper),c,u,o),S=cK(e.elements.reference),C=$K({reference:S,element:y,strategy:`absolute`,placement:i}),w=JK(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function tq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?KG:c,u=OK(r),d=u?s?GG:GG.filter(function(e){return OK(e)===u}):zG,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=eq(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[nK(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function nq(e){if(nK(e)===`auto`)return[];var t=RK(e);return[BK(e),t,BK(t)]}function rq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=nK(g)===g,v=c||(_||!m?[RK(g)]:nq(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(nK(n)===`auto`?tq(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T=0,ee=k?`width`:`height`,te=eq(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),A=k?O?IG:LG:O?FG:`top`;b[ee]>x[ee]&&(A=RK(A));var ne=RK(A),re=[];if(a&&re.push(te[D]<=0),s&&re.push(te[A]<=0,te[ne]<=0),re.every(function(e){return e})){w=E,C=!1;break}S.set(E,re)}if(C)for(var ie=m?3:1,j=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},M=ie;M>0&&j(M)!==`break`;M--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var iq={name:`flip`,enabled:!0,phase:`main`,fn:rq,requiresIfExists:[`offset`],data:{_skip:!1}};function aq(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function oq(e){return[`top`,IG,FG,LG].some(function(t){return e[t]>=0})}function sq(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=eq(t,{elementContext:`reference`}),s=eq(t,{altBoundary:!0}),c=aq(o,r),l=aq(s,i,a),u=oq(c),d=oq(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var cq={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:sq};function lq(e,t,n){var r=nK(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function uq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=KG.reduce(function(e,n){return e[n]=lq(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var dq={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:uq};function fq(e){var t=e.state,n=e.name;t.modifiersData[n]=$K({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var pq={name:`popperOffsets`,enabled:!0,phase:`read`,fn:fq,data:{}};function mq(e){return e===`x`?`y`:`x`}function hq(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=eq(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=nK(t.placement),v=OK(t.placement),y=!v,b=vK(_),x=mq(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:LG,ee=b===`y`?FG:IG,te=b===`y`?`height`:`width`,A=S[b],ne=A+g[k],re=A-g[ee],ie=p?-w[te]/2:0,j=v===`start`?C[te]:w[te],M=v===`start`?-w[te]:-C[te],N=t.elements.arrow,ae=p&&N?lK(N):{width:0,height:0},oe=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:xK(),se=oe[k],ce=oe[ee],P=yK(0,C[te],ae[te]),F=y?C[te]/2-ie-P-se-E.mainAxis:j-P-se-E.mainAxis,le=y?-C[te]/2+ie+P+ce+E.mainAxis:M+P+ce+E.mainAxis,ue=t.elements.arrow&&_K(t.elements.arrow),de=ue?b===`y`?ue.clientTop||0:ue.clientLeft||0:0,fe=D?.[b]??0,pe=A+F-fe-de,me=A+le-fe,he=yK(p?iK(ne,pe):ne,A,p?rK(re,me):re);S[b]=he,O[b]=he-A}if(s){var ge=b===`x`?`top`:LG,_e=b===`x`?FG:IG,ve=S[x],ye=x===`y`?`height`:`width`,be=ve+g[ge],xe=ve-g[_e],Se=[`top`,LG].indexOf(_)!==-1,Ce=D?.[x]??0,I=Se?be:ve-C[ye]-w[ye]-Ce+E.altAxis,we=Se?ve+C[ye]+w[ye]-Ce-E.altAxis:xe,L=p&&Se?bK(I,ve,we):yK(p?I:be,ve,p?we:xe);S[x]=L,O[x]=L-ve}t.modifiersData[r]=O}}var gq={name:`preventOverflow`,enabled:!0,phase:`main`,fn:hq,requiresIfExists:[`offset`]};function _q(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vq(e){return e===YG(e)||!ZG(e)?VK(e):_q(e)}function yq(e){var t=e.getBoundingClientRect(),n=aK(t.width)/e.offsetWidth||1,r=aK(t.height)/e.offsetHeight||1;return n!==1||r!==1}function bq(e,t,n){n===void 0&&(n=!1);var r=ZG(t),i=ZG(t)&&yq(t),a=pK(t),o=cK(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((JG(t)!==`body`||GK(a))&&(s=vq(t)),ZG(t)?(c=cK(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=HK(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function xq(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Sq(e){var t=xq(e);return qG.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Cq(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function wq(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]})}var Tq={placement:`bottom`,modifiers:[],strategy:`absolute`};function Eq(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Dq(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Tq:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Tq,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:XG(e)?qK(e):e.contextElement?qK(e.contextElement):[],popper:qK(t)};var s=Sq(wq([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Eq(t,n)){i.rects={reference:bq(t,_K(n),i.options.strategy===`fixed`),popper:lK(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r{i||o(Mq(r)||document.body)},[r,i]),UC(()=>{if(a&&!i)return kq(t,a),()=>{kq(t,null)}},[t,a,i]),i){if(b.isValidElement(n)){let e={ref:s};return b.cloneElement(n,e)}return n}return a&&jq.createPortal(n,a)});function Pq(e){return DC(`MuiPopper`,e)}OC(`MuiPopper`,[`root`]);function Fq(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Iq(e){return typeof e==`function`?e():e}function Lq(e){return e.nodeType!==void 0}var Rq=e=>{let{classes:t}=e;return tT({root:[`root`]},Pq,t)},zq={},Bq=b.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=b.useRef(null),_=gE(g,t),v=b.useRef(null),y=gE(v,u),x=b.useRef(y);UC(()=>{x.current=y},[y]),b.useImperativeHandle(u,()=>v.current,[]);let S=Fq(c,i),[C,w]=b.useState(S),T=b.useMemo(()=>Iq(n),[n]);b.useEffect(()=>{v.current&&v.current.forceUpdate()}),UC(()=>{if(!T||!s)return;let e=e=>{w(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=Oq(T,g.current,{placement:S,...l,modifiers:t});x.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();x.current(null)}},[T,a,o,s,l,S]);let E={placement:C};p!==null&&(E.TransitionProps=p);let D=Rq(e),O=f.root??`div`,k=$E({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root});return(0,J.jsx)(O,{...k,children:typeof r==`function`?r(E):r})}),Vq=Z(b.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=zq,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=b.useState(!0),x=()=>{y(!1)},S=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let C;if(i)C=i;else if(n){let e=Iq(n);C=e&&Lq(e)?vE(e).body:vE(null).body}let w=!l&&s&&(!m||v)?`none`:void 0,T=m?{in:l,onEnter:x,onExited:S}:void 0;return(0,J.jsx)(Nq,{disablePortal:o,container:C,children:(0,J.jsx)(Bq,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:w,...p},TransitionProps:T,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Hq=b.forwardRef(function(e,t){let n=yw(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=TE({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,J.jsx)(Vq,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function Uq(e){let{children:t,defer:n=!1,fallback:r=null}=e,[i,a]=b.useState(!1);return UC(()=>{n||a(!0)},[n]),b.useEffect(()=>{n&&a(!0)},[n]),i?t:r}function Wq(e){let t,n,r=()=>{n=null,e(...t)};function i(...e){t=e,n||=requestAnimationFrame(r)}return i.clear=()=>{n&&=(cancelAnimationFrame(n),null)},i}function Gq(){let e=ZR(),t=e.use(fB),n=e.use(qD);return t===void 0?n===void 0?`none`:`cartesian`:`polar`}var Kq=[`trigger`,`position`,`anchor`,`classes`,`children`],qq=()=>!1,Jq=()=>null;function Yq(e,t,n){return n?qq:e===`item`?WR:t===`polar`?FB:t===`cartesian`?DR:qq}var Xq={item:`node`,axis:`chart`,none:`pointer`},Zq=(e,t)=>{switch(e){case`node`:return t;case`chart`:return kR;default:return Jq}},Qq=Z(Hq,{name:`MuiChartsTooltip`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,zIndex:e.zIndex.modal}));function $q(e){let t=RE({props:e,name:`MuiChartsTooltipContainer`}),{trigger:n=`axis`,position:r,anchor:i=`pointer`,classes:a,children:o}=t,s=KE(t,Kq),c=ZR(),l=GB(),[u,d]=b.useState(null),f=sG(a),p=c.use(jL),m=OG(),h=b.useRef(null),g=PD(()=>({x:0,y:0})),_=Gq(),v=c.use(oR),y=c.use(Yq(n,_,v)),x=c.use(AL)===`keyboard`||p===null?Xq[n]:i,S=c.use(UR),C=c.use(HN),w=S&&C[S.type]?.selectorTooltipItemPosition||Jq,T=c.use(Zq(x,w),t.position),E=T!==null;b.useEffect(()=>{let e=l.current;if(e===null)return()=>{};if(E)return;let t=Wq((e,t)=>{g.current={x:e,y:t},h.current?.update()}),n=e=>{t(e.clientX,e.clientY)};return e.addEventListener(`pointermove`,n),e.addEventListener(`pointerenter`,n),()=>{e.removeEventListener(`pointermove`,n),e.removeEventListener(`pointerenter`,n),t.clear()}},[l,g,E]),UC(()=>{E&&h.current?.update()},[E,T?.x,T?.y]);let D=b.useMemo(()=>({getBoundingClientRect:()=>({x:g.current.x,y:g.current.y,top:g.current.y,left:g.current.x,right:g.current.x,bottom:g.current.y,width:0,height:0,toJSON:()=>``})}),[g]),O=p===`mouse`||m,k=p===`touch`||!m,ee=b.useMemo(()=>[{name:`offset`,options:{offset:()=>k&&!E?[0,64]:[0,8]}},...O?[]:[{name:`flip`,options:{fallbackPlacements:[`top-end`,`top-start`,`bottom-end`,`bottom`]}}],{name:`preventOverflow`,options:{altAxis:!0}}],[O,E,k]);return n===`none`?null:(0,J.jsxs)(b.Fragment,{children:[l.current&&jq.createPortal((0,J.jsx)(`div`,{ref:d,style:{position:`absolute`,display:`hidden`,left:T?.x??0,top:T?.y??0,pointerEvents:`none`,opacity:0,width:1,height:1}}),l.current),(0,J.jsx)(Uq,{children:y&&(0,b.createElement)(Qq,q({},s,{key:T?`charts-anchored`:`charts-pointer`,className:f?.root,open:y,placement:s.placement??r??(!E&&O?`right-start`:`top`),popperRef:h,anchorEl:T?u:D,modifiers:ee,container:s.container??l.current,popperOptions:q({},s.popperOptions,{strategy:`fixed`})}),o)})]})}var eJ=[`classes`,`trigger`,`sort`];function tJ(e){let{classes:t,trigger:n=`axis`,sort:r}=e,i=KE(e,eJ),a=sG(t);return(0,J.jsx)($q,q({},i,{trigger:n,classes:t,children:n===`axis`?(0,J.jsx)(NG,{classes:a,sort:r}):(0,J.jsx)(bG,{classes:a})}))}var nJ=e=>({type:`series`,color:e.color,label:e.label,seriesId:e.seriesId,dataIndex:e.dataIndex});function rJ(e){return DC(`MuiChartsLegend`,e)}var iJ=e=>{let{classes:t,direction:n}=e;return tT({root:[`root`,n],item:[`item`],mark:[`mark`],label:[`label`],series:[`series`],hidden:[`hidden`]},rJ,t)},aJ=OC(`MuiChartsLegend`,[`root`,`item`,`series`,`mark`,`label`,`vertical`,`horizontal`,`hidden`]),oJ=[`slots`,`slotProps`],sJ=[`ownerState`],cJ=(e,t,n,r)=>{function i(i,a){let o=RE({props:i,name:e}),s=BC(typeof n.defaultProps==`function`?n.defaultProps(o):n.defaultProps??{},o),c=s,{slots:l,slotProps:u}=c,d=KE(c,oJ),f=xE(),p=n.classesResolver?.(s,f),m=l?.[t]??r,h=n.propagateSlots&&!l?.[t],g=KE($E({elementType:m,externalSlotProps:u?.[t],additionalProps:q({},d,{classes:p},h&&{slots:l,slotProps:u}),ownerState:{}}),sJ),_=q({},g);for(let e of n.omitProps??[])delete _[e];return(0,J.jsx)(m,q({},_,{ref:a}))}return b.forwardRef(i)};function lJ(e){return DC(`MuiChartsLabel`,e)}OC(`MuiChartsLabel`,[`root`]);var uJ=e=>tT({root:[`root`]},lJ,e.classes),dJ=[`children`,`className`,`classes`],fJ=gG(`MuiChartsLabel`,{classesResolver:uJ},function(e,t){let{children:n,className:r,classes:i}=e,a=KE(e,dJ);return(0,J.jsx)(`span`,q({className:Y(i?.root,r),ref:t},a,{children:n}))}),pJ=[`direction`,`onItemClick`,`className`,`classes`,`toggleVisibilityOnClick`],mJ=Z(`ul`,{name:`MuiChartsLegend`,slot:`Root`})(({ownerState:e,theme:t})=>q({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:`100%`,display:`flex`,flexDirection:e.direction===`vertical`?`column`:`row`,alignItems:e.direction===`vertical`?void 0:`center`,flexShrink:0,gap:t.spacing(2),listStyleType:`none`,paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:`wrap`,li:{display:e.direction===`horizontal`?`inline-flex`:void 0},[`button.${aJ.series}`]:{background:`none`,border:`none`,padding:0,fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,letterSpacing:`inherit`,color:`inherit`},[`& .${aJ.series}`]:{display:e.direction===`vertical`?`flex`:`inline-flex`,alignItems:`center`,gap:t.spacing(1),cursor:e.onItemClick||e.toggleVisibilityOnClick?`pointer`:`default`,[`&.${aJ.hidden}`]:{opacity:.5}},gridArea:`legend`})),hJ=cJ(`MuiChartsLegend`,`legend`,{defaultProps:{direction:`horizontal`},omitProps:[`position`],classesResolver:iJ},b.forwardRef(function(e,t){let n=QB(),{instance:r}=JR(),i=ZR().use(GN),{onItemClick:a,className:o,classes:s,toggleVisibilityOnClick:c}=e,l=KE(e,pJ),u=!!(a||c),d=_E((e,t)=>n=>{a&&e&&a(n,nJ(e),t),c&&r.toggleItemVisibility({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex})});return n.items.length===0?null:(0,J.jsx)(mJ,q({className:Y(s?.root,o),ref:t},l,{ownerState:e,children:n.items.map((e,t)=>{let n=i({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex});return(0,J.jsx)(`li`,{className:s?.item,"data-series":e.seriesId,"data-index":e.dataIndex,children:u?(0,J.jsxs)(`button`,{className:Y(s?.series,!n&&s?.hidden),onClick:d(e,t),type:`button`,children:[(0,J.jsx)(yG,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,J.jsx)(fJ,{className:s?.label,children:e.label})]}):(0,J.jsxs)(`div`,{className:Y(s?.series,!n&&s?.hidden),children:[(0,J.jsx)(yG,{className:s?.mark,color:e.color,type:e.markType,markShape:e.markShape}),(0,J.jsx)(fJ,{className:s?.label,children:e.label})]})},`${e.seriesId}-${e.dataIndex}`)})}))}));function gJ(e){return DC(`MuiChartsAxisHighlight`,e)}OC(`MuiChartsAxisHighlight`,[`root`]);var _J=Z(`path`,{name:`MuiChartsAxisHighlight`,slot:`Root`})(({theme:e})=>({pointerEvents:`none`,variants:[{props:{axisHighlight:`band`},style:q({fill:`white`,fillOpacity:.1},e.applyStyles(`light`,{fill:`gray`}))},{props:{axisHighlight:`line`},style:q({strokeDasharray:`5 2`,stroke:`#ffffff`},e.applyStyles(`light`,{stroke:`#000000`}))}]}));function vJ(e,t,n,r){let i=e.step(),a=(i-e.bandwidth())/2,o=e(t[n]),s=e(t[r]);return{regionStart:Math.min(o,s)-a,regionSize:(r-n+1)*i}}function yJ(e,t){if(t instanceof Date){let n=t.getTime();return e.findIndex(e=>e instanceof Date&&e.getTime()===n)}return e.indexOf(t)}function bJ({scale:e,value:t,dataIndex:n,data:r,bucketSize:i}){let a=e.step(),o=(a-e.bandwidth())/2,s=e(t)-o,c=a;if(i>1&&r){let a=n??yJ(r,t);if(a>=0){let t=Math.floor(a/i)*i,{regionStart:n,regionSize:o}=vJ(e,r,t,Math.min(t+i-1,r.length-1));s=n,c=o}}return{bandStart:s,bandSize:c}}function xJ(e){let{type:t,classes:n}=e,{left:r,width:i}=Qz(),a=ZR(),o=a.use(mR),s=a.use(pL),c=a.use(FR);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=xR(u),f=t===`band`&&o!==null&&cI(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=bJ({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,J.jsxs)(b.Fragment,{children:[f&&u(o)!==void 0&&(0,J.jsx)(_J,{d:`M ${r} ${p} l 0 ${m} l ${i} 0 l 0 ${-m} Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,J.jsx)(_J,{d:`M ${r} ${d(o)} L ${r+i} ${d(o)}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}function SJ(e){let{type:t,classes:n}=e,{top:r,height:i}=Qz(),a=ZR(),o=a.use(pR),s=a.use(fL),c=a.use(FR);return o.length===0?null:o.map(e=>{let{axisId:a,value:o}=e,l=s.axis[a],u=l.scale,d=xR(u),f=t===`band`&&o!==null&&cI(u),p=0,m=0;return f&&({bandStart:p,bandSize:m}=bJ({scale:u,value:o,dataIndex:e.dataIndex,data:l.data,bucketSize:c.get(a)??1})),(0,J.jsxs)(b.Fragment,{children:[f&&u(o)!==void 0&&(0,J.jsx)(_J,{d:`M ${p} ${r} l ${m} 0 l 0 ${i} l ${-m} 0 Z`,className:n.root,ownerState:{axisHighlight:`band`}}),t===`line`&&o!==null&&(0,J.jsx)(_J,{d:`M ${d(o)} ${r} L ${d(o)} ${r+i}`,className:n.root,ownerState:{axisHighlight:`line`}})]},`${a}-${o}`)})}var CJ=()=>tT({root:[`root`]},gJ);function wJ(e){let{x:t,y:n}=e,r=CJ();return(0,J.jsxs)(b.Fragment,{children:[t&&t!==`none`&&(0,J.jsx)(SJ,{type:t,classes:r}),n&&n!==`none`&&(0,J.jsx)(xJ,{type:n,classes:r})]})}function TJ(e){let{id:t,offset:n}=e,{left:r,top:i,width:a,height:o}=Qz(),s=q({top:0,right:0,bottom:0,left:0},n);return(0,J.jsx)(`clipPath`,{id:t,children:(0,J.jsx)(`rect`,{x:r-s.left,y:i-s.top,width:a+s.left+s.right,height:o+s.top+s.bottom})})}var EJ=[`x`,`y`,`seriesId`,`color`,`shape`];function DJ(e){let{x:t,y:n,color:r,shape:i}=e,a=KE(e,EJ),o=pU(),s=i===`circle`?`circle`:`path`,c=i===`circle`?{cx:0,cy:0,r:a.r===void 0?5:a.r}:{d:qV(KV[BU(i)])()},l=ED>18?{transformOrigin:`${t} ${n}`}:{"transform-origin":`${t} ${n}`};return(0,J.jsx)(s,q({pointerEvents:`none`,className:o.highlight,transform:`translate(${t} ${n})`,fill:r},l,c,a))}var OJ=[`slots`,`slotProps`];function kJ(e){let{slots:t,slotProps:n}=e,r=KE(e,OJ),i=YB(),{xAxis:a,xAxisIds:o}=IB(),{yAxis:s,yAxisIds:c}=LB(),{instance:l}=JR(),u=ZR().use(dR);if(i===void 0)return null;let{series:d,stackingGroups:f}=i,p=o[0],m=c[0],h=f.some(({ids:e})=>e.some(e=>d[e].showMark===`start`||d[e].showMark===`end`));if(u.length===0&&!h)return null;let g=new Map;u.forEach(({axisId:e,dataIndex:t})=>{g.set(e,t)});let _=t?.lineHighlight??DJ;return(0,J.jsx)(`g`,q({},r,{children:f.flatMap(({ids:e})=>e.flatMap(e=>{let{xAxisId:t=p,yAxisId:r=m,visibleStackedData:i,data:o,disableHighlight:c,showMark:u,shape:f=`circle`,hidden:h}=d[e];if(h)return null;let v=c?void 0:g.get(t),y=u===`start`||u===`end`?AJ(o,u):void 0,b=v??y;if(b===void 0||o[b]==null)return null;let x=xR(a[t].scale),S=s[r].scale,C=a[t].data;if(C===void 0)throw Error(eD(10,t===`DEFAULT_X_AXIS_KEY`?"The first `xAxis`":`The x-axis with id "${t}"`));let w=x(C[b]),T=S(i[b][1]);if(!l.isPointInside(w,T))return null;let E=KU(d[e],a[t],s[r]);return(0,J.jsx)(_,q({seriesId:e,color:E(b),x:w,y:T,shape:f},n?.lineHighlight),`${e}`)}))}))}function AJ(e,t){if(t===`start`){let t=e.findIndex(e=>e!=null);return t<0?void 0:t}let n=e.findLastIndex(e=>e!=null);return n<0?void 0:n}function jJ(e){return DC(`MuiChartsGrid`,e)}var MJ=OC(`MuiChartsGrid`,[`root`,`line`,`horizontalLine`,`verticalLine`]),NJ=Z(`g`,{name:`MuiChartsGrid`,slot:`Root`,overridesResolver:(e,t)=>[{[`& .${MJ.verticalLine}`]:t.verticalLine},{[`& .${MJ.horizontalLine}`]:t.horizontalLine},t.root]})({}),PJ=Z(`line`,{name:`MuiChartsGrid`,slot:`Line`})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:`crispEdges`,strokeWidth:1}));function FJ(e){let{instance:t}=JR(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=aU({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`x`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,J.jsx)(b.Fragment,{children:u.map(({value:e,offset:n})=>t.isXInside(n)?(0,J.jsx)(PJ,{y1:r,y2:i,x1:n,x2:n,className:a.verticalLine},`vertical-${e?.getTime?.()??e}`):null)})}function IJ(e){let{instance:t}=JR(),{axis:n,start:r,end:i,classes:a}=e,{scale:o,tickNumber:s,tickInterval:c,tickSpacing:l}=n,u=aU({scale:o,tickNumber:s,tickInterval:c,tickSpacing:l,direction:`y`,ordinalTimeTicks:`ordinalTimeTicks`in n?n.ordinalTimeTicks:void 0});return(0,J.jsx)(b.Fragment,{children:u.map(({value:e,offset:n})=>t.isYInside(n)?(0,J.jsx)(PJ,{y1:n,y2:n,x1:r,x2:i,className:a.horizontalLine},`horizontal-${e?.getTime?.()??e}`):null)})}var LJ=[`className`,`vertical`,`horizontal`],RJ=({classes:e})=>tT({root:[`root`],verticalLine:[`line`,`verticalLine`],horizontalLine:[`line`,`horizontalLine`]},jJ,e);function zJ(e){let t=RE({props:e,name:`MuiChartsGrid`}),n=Qz(),{className:r,vertical:i,horizontal:a}=t,o=KE(t,LJ),{xAxis:s,xAxisIds:c}=IB(),{yAxis:l,yAxisIds:u}=LB(),d=RJ(t),f=l[u[0]],p=s[c[0]];return(0,J.jsxs)(NJ,q({},o,{className:Y(d.root,r),children:[i&&(0,J.jsx)(FJ,{axis:p,start:n.top,end:n.height+n.top,classes:d}),a&&(0,J.jsx)(IJ,{axis:f,start:n.left,end:n.width+n.left,classes:d})]}))}var BJ=Z(`text`,{slot:`internal`,shouldForwardProp:void 0})(({theme:e})=>q({},e.typography.body2,{stroke:`none`,fill:(e.vars||e).palette.text.primary,shapeRendering:`crispEdges`,textAnchor:`middle`,dominantBaseline:`middle`}));function VJ(e){let{top:t,left:n,height:r,width:i}=Qz(),{localeText:a}=RH();return(0,J.jsx)(BJ,q({x:n+i/2,y:t+r/2},e,{children:a.loading}))}function HJ(e){let{top:t,left:n,height:r,width:i}=Qz(),{localeText:a}=RH();return(0,J.jsx)(BJ,q({x:n+i/2,y:t+r/2},e,{children:a.noData}))}function UJ(){let e=KB();return Object.values(e).every(e=>{if(!e)return!0;let{series:t,seriesOrder:n}=e;return n.every(e=>{let n=t[e];return n.type===`sankey`?n.data.links.length===0:n.data.length===0})})}function WJ(e){let t=UJ();if(e.loading){let t=e.slots?.loadingOverlay??VJ;return(0,J.jsx)(t,q({},e.slotProps?.loadingOverlay))}if(t){let t=e.slots?.noDataOverlay??HJ;return(0,J.jsx)(t,q({},e.slotProps?.noDataOverlay))}return null}var GJ=[KI,sR,IR,wL,UL,GR,$N,BR],KJ=`xAxis.yAxis.series.width.height.margin.colors.dataset.sx.onAreaClick.onLineClick.onMarkClick.axisHighlight.disableLineItemHighlight.hideLegend.grid.children.slots.slotProps.skipAnimation.loading.highlightedItem.onHighlightChange.className.showToolbar.brushConfig`.split(`.`),qJ=e=>{let{xAxis:t,yAxis:n,series:r,width:i,height:a,margin:o,colors:s,dataset:c,sx:l,onAreaClick:u,onLineClick:d,onMarkClick:f,axisHighlight:p,disableLineItemHighlight:m,grid:h,children:g,slots:_,slotProps:v,skipAnimation:y,loading:x,highlightedItem:S,onHighlightChange:C,className:w,brushConfig:T}=e,E=KE(e,KJ),D=`${Dw()}-clip-path`,O=b.useMemo(()=>r.map(e=>q({disableHighlight:!!m,type:`line`},e)),[m,r]),k=q({},E,{series:O,width:i,height:a,margin:o,colors:s,dataset:c,xAxis:t??[{id:`DEFAULT_X_AXIS_KEY`,scaleType:`point`,data:Array.from({length:Math.max(...r.map(e=>(e.data??c??[]).length))},(e,t)=>t)}],yAxis:n,highlightedItem:S,onHighlightChange:C,disableAxisListener:v?.tooltip?.trigger!==`axis`&&p?.x===`none`&&p?.y===`none`,skipAnimation:y,brushConfig:T,plugins:GJ}),ee={vertical:h?.vertical,horizontal:h?.horizontal},te={clipPath:`url(#${D})`},A={id:D},ne={slots:_,slotProps:v,onItemClick:u},re={slots:_,slotProps:v,onItemClick:d},ie={slots:_,slotProps:v,onItemClick:f,skipAnimation:y},j={slots:_,slotProps:v,loading:x},M={slots:_,slotProps:v},N=q({x:`line`},p),ae={slots:_,slotProps:v},oe={slots:_,slotProps:v};return{chartsWrapperProps:{sx:l,legendPosition:e.slotProps?.legend?.position,legendDirection:e.slotProps?.legend?.direction,hideLegend:e.hideLegend??!1,className:w},chartsContainerProps:k,gridProps:ee,clipPathProps:A,clipPathGroupProps:te,areaPlotProps:ne,linePlotProps:re,markPlotProps:ie,overlayProps:j,chartsAxisProps:M,axisHighlightProps:N,lineHighlightPlotProps:ae,legendProps:oe,children:g}},JJ=50;function YJ(e,t,n,r,i,a,o,s,c,l,u=1/0,d=1,f=0){let p=n.copy(),m=r.copy();p.range([0,1]),m.range([0,1]);let h=function(e){let n=p(t[e].x),r=m(t[e].y);return n>=i&&n<=a&&r>=o&&r<=s},g=n.range()[1]-n.range()[0],_=r.range()[1]-r.range()[0],v=g*g,y=_*_;function b(e,t){return v*e*e+y*t*t}let x=p(XJ(n,c,e=>t[e]?.x)),S=m(XJ(r,l,e=>t[e]?.y));if(x===void 0||S===void 0)return[];let C=typeof f==`number`,w=Number.isFinite(u)?u*u:1/0,T=e.neighbors(x,S,C?d:JJ,w,h,b);if(C)return T;let E=[];for(let e of T){let n=p(t[e].x),r=m(t[e].y),i=b(n-x,r-S);if(i>w)continue;let a=Math.sqrt(i)-f(e);E.push({index:e,edge:a,centerDistSq:i})}E.sort((e,t)=>e.edge-t.edge);let D=E.findLastIndex(e=>e.edge<0);return D!==-1&&(E=[...E.slice(0,D+1).sort((e,t)=>e.centerDistSq-t.centerDistSq),...E.slice(D+1)]),E.slice(0,Math.min(E.length,d)).map(e=>e.index)}function XJ(e,t,n){return cI(e)?n(e.bandwidth()===0?Math.floor((t-Math.min(...e.range())+e.step()/2)/e.step()):Math.floor((t-Math.min(...e.range()))/e.step())):e.invert(t)}function ZJ(e,t){return t===void 0?!0:e.edgeDistance<=0?t.edgeDistance>0||e.edgeDistance+e.radius{let{chartsLayerContainerRef:r}=n,{disableHitArea:i,hitAreaRadius:a,onItemClick:o}=e,s=i,c=a,{axis:l,axisIds:u}=t.use(fL),{axis:d,axisIds:f}=t.use(pL),p=t.use(ZI),{series:m,seriesOrder:h}=t.use(nP)?.scatter??{},g=t.use(p?_L:vL),_=u[0],v=f[0];return UC(()=>{t.set(`voronoi`,{isVoronoiEnabled:!s})},[t,s]),b.useEffect(()=>{if(r.current===null||s)return;let e=r.current;function i(r){let i=CL(e,r);if(!n.isPointInside(i.x,i.y))return`outside-chart`;let a;for(let e of h??[]){let n=(m??{})[e],r=g.get(e);if(!r||n.hidden)continue;let{flatbush:o,getItemRadius:s,maxItemRadius:u}=r,f=n.xAxisId??_,p=n.yAxisId??v,h=$I(t.state,f),y=$I(t.state,p),b=c===`item`?u:c,x=(h?.start??0)/100,S=(h?.end??100)/100,C=(y?.start??0)/100,w=(y?.end??100)/100,T=l[f].scale,E=d[p].scale,D=YJ(o,n.data,T,E,x,S,C,w,i.x,i.y,b,1,s)[0];if(D===void 0)continue;let O=n.data[D],k=T(O.x),ee=E(O.y),te=Math.hypot(k-i.x,ee-i.y),A=typeof s==`number`?s:s(D),ne=te-A;if(c===`item`&&ne>0)continue;let re={dataIndex:D,seriesId:e,edgeDistance:ne,radius:A};ZJ(re,a)&&(a=re)}return a===void 0?`no-point-found`:{seriesId:a.seriesId,dataIndex:a.dataIndex}}let a=n.addInteractionListener(`moveEnd`,e=>{e.detail.activeGestures.pan||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),u=n.addInteractionListener(`panEnd`,e=>{e.detail.activeGestures.move||(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),f=n.addInteractionListener(`quickPressEnd`,e=>{!e.detail.activeGestures.move&&!e.detail.activeGestures.pan&&(n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.())}),p=e=>{let t=i(e.detail.srcEvent);if(t===`outside-chart`){n.cleanInteraction?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}if(t===`outside-voronoi-max-radius`||t===`no-point-found`){n.removeTooltipItem?.(),n.clearHighlight?.(),n.removeTooltipItem?.();return}let{seriesId:r,dataIndex:a}=t;n.setTooltipItem?.({type:`scatter`,seriesId:r,dataIndex:a}),n.setLastUpdateSource?.(`pointer`),n.setHighlight?.({type:`scatter`,seriesId:r,dataIndex:a})},y=n.addInteractionListener(`tap`,e=>{let t=i(e.detail.srcEvent);if(typeof t!=`string`&&o){let{seriesId:n,dataIndex:r}=t;o(e.detail.srcEvent,{type:`scatter`,seriesId:n,dataIndex:r})}}),b=n.addInteractionListener(`move`,p),x=n.addInteractionListener(`pan`,p),S=n.addInteractionListener(`quickPress`,p);return()=>{y.cleanup(),b.cleanup(),a.cleanup(),x.cleanup(),u.cleanup(),S.cleanup(),f.cleanup()}},[r,d,l,c,o,s,n,h,m,g,_,v,t]),b.useEffect(()=>{if(!(!o||!n.registerItemActivationHandler))return n.registerItemActivationHandler({type:`scatter`},(e,t)=>{t.type===`scatter`&&o(e,{type:`scatter`,seriesId:t.seriesId,dataIndex:t.dataIndex})})},[n,o]),{instance:{enableVoronoi:_E(()=>{t.set(`voronoi`,{isVoronoiEnabled:!0})}),disableVoronoi:_E(()=>{t.set(`voronoi`,{isVoronoiEnabled:!1})})}}};QJ.getDefaultizedParams=({params:e})=>q({},e,{disableHitArea:e.disableHitArea??!e.series.some(e=>e.type===`scatter`)}),QJ.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableHitArea}}),QJ.params={disableHitArea:!0,hitAreaRadius:!0,onItemClick:!0};var $J=2e4,eY=5,tY=1e3,nY=1e4,rY=(e,t)=>{let n=Math.max(1,e),r=Math.min(nY,Math.max(tY,Math.ceil(Math.max(1,t)/eY)));return Math.max(1,Math.floor(r/n))},iY=e=>e.progressiveRendering,aY=Q(iY,e=>e?.plans),oY=Q(iY,e=>e?.revealedRounds??0);function sY(e,t){for(let n in e){if(!Object.hasOwn(e,n))continue;let r=e[n]?.series[t];if(r)return Array.isArray(r.data)?r.data.length:0}return 0}var cY=$(aY,nP,function(e,t){let n=new Map;if(!e||e.size===0)return{nBatchesBySeries:n,totalRounds:0,batchSize:tY};let r=0,i=0,a=new Map;e.forEach(e=>{e.forEach(e=>{let n=sY(t,e);a.set(e,n),r+=1,i+=n})});let o=rY(r,i),s=0;return a.forEach((e,t)=>{let r=Math.max(1,Math.ceil(e/o));n.set(t,r),r>s&&(s=r)}),{nBatchesBySeries:n,totalRounds:s,batchSize:o}});Q(cY,e=>e.batchSize);var lY=Q(cY,e=>e.totalRounds);function uY(e,t,n){return Math.min(n?1:t,e)}Q(cY,oY,ZI,function(e,t,n,r){return uY(e.nBatchesBySeries.get(r)??0,t,n)});var dY=Q(nP,e=>rF(e,`progressiveRendering`),(e,t,n,r)=>{if(r===`svg-single`||r===`svg-batch`)return!1;if(r===`svg-progressive`)return!0;if(!t)return!1;let i=0;for(let t of n)i+=sY(e,t);return i>$J});function fY(e,t){if(!e||e.length!==t.length)return!1;for(let n=0;n{let t=_E((t,n,r)=>{if(dY(e.state,n,r)){if(!fY(e.state.progressiveRendering.plans.get(t),n)){let r=new Map(e.state.progressiveRendering.plans);r.set(t,n),e.set(`progressiveRendering`,{plans:r,revealedRounds:0})}return()=>{if(!e.state.progressiveRendering.plans.has(t))return;let n=new Map(e.state.progressiveRendering.plans);n.delete(t),e.set(`progressiveRendering`,q({},e.state.progressiveRendering,{plans:n}))}}}),n=e.use(aY)??pY,r=e.use(ZI);return b.useEffect(()=>{let t=lY(e.state);if(t===0)return;if(r){let n=Math.min(gY,t);oY(e.state)!==n&&e.set(`progressiveRendering`,q({},e.state.progressiveRendering,{revealedRounds:n}));return}if(typeof requestAnimationFrame!=`function`){e.set(`progressiveRendering`,q({},e.state.progressiveRendering,{revealedRounds:t}));return}let n=0,i,a=!1,o=oY(e.state);function s(){let e=hY,t=()=>{if(!a){if(e>0){--e,n=requestAnimationFrame(t);return}c()}};n=requestAnimationFrame(t)}function c(){if(a)return;let t=lY(e.state);o=Math.min(t,o+mY),e.set(`progressiveRendering`,q({},e.state.progressiveRendering,{revealedRounds:o})),o=t))return o>0?i=setTimeout(()=>{n=requestAnimationFrame(c)},_Y):n=requestAnimationFrame(c),()=>{a=!0,cancelAnimationFrame(n),i!==void 0&&clearTimeout(i)}},[n,r,e]),{instance:{registerProgressivePlan:t}}};vY.params={},vY.getInitialState=()=>({progressiveRendering:{plans:pY,revealedRounds:0}});var yY=[KI,sR,IR,wL,UL,GR,$N,QJ,BR,vY],bY=`width.height.margin.children.series.colors.dataset.desc.onAxisClick.highlightedAxis.onHighlightedAxisChange.tooltipAxis.onTooltipAxisChange.tooltipItem.onTooltipItemChange.disableHitArea.hitAreaRadius.onItemClick.disableAxisListener.highlightedItem.onHighlightChange.sx.title.axesGap.xAxis.yAxis.zAxis.rotationAxis.radiusAxis.skipAnimation.seriesConfig.experimentalFeatures.plugins.localeText.slots.slotProps.disableKeyboardNavigation.brushConfig.onHiddenItemsChange.hiddenItems.initialHiddenItems`.split(`.`),xY=e=>{let t=e,{width:n,height:r,margin:i,children:a,series:o,colors:s,dataset:c,desc:l,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,sx:C,title:w,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:ee,skipAnimation:te,seriesConfig:A,experimentalFeatures:ne,plugins:re,localeText:ie,slots:j,slotProps:M,disableKeyboardNavigation:N,brushConfig:ae,onHiddenItemsChange:oe,hiddenItems:se,initialHiddenItems:ce}=t,P=KE(t,bY),F=q({title:w,desc:l,sx:C},P);return{chartsDataProviderProps:{margin:i,series:o,colors:s,dataset:c,disableAxisListener:b,highlightedItem:x,onHighlightChange:S,onAxisClick:u,highlightedAxis:d,onHighlightedAxisChange:f,tooltipAxis:p,onTooltipAxisChange:m,tooltipItem:h,onTooltipItemChange:g,disableHitArea:_,hitAreaRadius:v,onItemClick:y,axesGap:T,xAxis:E,yAxis:D,zAxis:O,rotationAxis:k,radiusAxis:ee,skipAnimation:te,width:n,height:r,localeText:ie,seriesConfig:A,experimentalFeatures:ne,disableKeyboardNavigation:N,brushConfig:ae,onHiddenItemsChange:oe,hiddenItems:se,initialHiddenItems:ce,plugins:re??yY,slots:j,slotProps:M},chartsSurfaceProps:F,children:a}};function SY(e){return DC(`MuiSvgIcon`,e)}OC(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var CY=e=>{let{color:t,fontSize:n,classes:r}=e;return tT({root:[`root`,t!==`inherit`&&`color${EE(t)}`,`fontSize${EE(n)}`]},SY,r)},wY=Z(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${EE(n.color)}`],t[`fontSize${EE(n.fontSize)}`]]}})(wE(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...FE(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),TY=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=b.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=CY(m);return(0,J.jsxs)(wY,{as:o,className:Y(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,J.jsx)(`title`,{children:u}):null]})});TY.muiName=`SvgIcon`;function EY(e,t){function n(t,n){return(0,J.jsx)(TY,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=TY.muiName,b.memo(b.forwardRef(n))}var DY=Dw,OY=_E;function kY(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function AY(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return b.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var jY={};function MY(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=b.useRef(null),m=l===!0,h=AY({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=b.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=b.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:b.useCallback((e=jY)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{if(u&&e.stopPropagation(),a){e.preventDefault();return}t?.(e)},s=e=>{if(m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g()))){if(e.key===` `){e.preventDefault();return}e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())}},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var NY=class e{static create(){return new e}static use(){let t=PD(e.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=FY(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function PY(){return NY.use()}function FY(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var IY=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function LY(){let e=PD(IY.create).current;return ID(e.disposeEffect),e}function RY(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=b.useState(!1),f=LY(),p=b.useRef(!1),m=b.useRef(c);m.current=c;let h=c!=null,g=Y(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=Y(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),b.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,J.jsx)(`span`,{className:g,style:_,children:(0,J.jsx)(`span`,{className:v})})}var zY=OC(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),BY=`(prefers-reduced-motion: reduce)`,VY=0,HY=`0ms`,UY=()=>{},WY=()=>!1,GY=()=>!0,KY=()=>UY;function qY(e){let[t,n]=b.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),UC(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(BY),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var JY={...b}.useSyncExternalStore;function YY(e){let t=e?GY:WY,[n,r]=b.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[WY,KY];let t=window.matchMedia(BY);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return JY(r,n,t)}var XY=JY===void 0?qY:YY;function ZY(e,t){let n=XY(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return b.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:VY,delay:HY}:e}}),[r])}var QY=550,$Y={},eX=[],tX=()=>{};function nX(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function rX({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var iX=hx` 0% { transform: scale(0); opacity: 0.1; @@ -177,7 +177,7 @@ transform: scale(1); opacity: 0.3; } -`,YY=mx` +`,aX=hx` 0% { opacity: 1; } @@ -185,7 +185,7 @@ 100% { opacity: 0; } -`,XY=mx` +`,oX=hx` 0% { transform: scale(1); } @@ -197,39 +197,39 @@ 100% { transform: scale(1); } -`;function ZY(e){if(e.motion.reducedMotion===`always`)return null;let t=px` - &.${kY.rippleVisible} { - animation-name: ${JY}; - animation-duration: ${HY}ms; +`;function sX(e){if(e.motion.reducedMotion===`always`)return null;let t=mx` + &.${zY.rippleVisible} { + animation-name: ${iX}; + animation-duration: ${QY}ms; animation-timing-function: ${e.transitions.easing.easeInOut}; } - &.${kY.ripplePulsate} { + &.${zY.ripplePulsate} { animation-duration: ${e.transitions.duration.shorter}ms; } - & .${kY.childLeaving} { - animation-name: ${YY}; - animation-duration: ${HY}ms; + & .${zY.childLeaving} { + animation-name: ${aX}; + animation-duration: ${QY}ms; animation-timing-function: ${e.transitions.easing.easeInOut}; } - & .${kY.childPulsate} { - animation-name: ${XY}; + & .${zY.childPulsate} { + animation-name: ${oX}; animation-duration: 2500ms; animation-timing-function: ${e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } - `;return e.motion.reducedMotion===`system`?px` + `;return e.motion.reducedMotion===`system`?mx` @media (prefers-reduced-motion: no-preference) { ${t} } - `:t}var QY=Z(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),$Y=Z(OY,{name:`MuiTouchRipple`,slot:`Ripple`})` + `:t}var cX=Z(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),lX=Z(RY,{name:`MuiTouchRipple`,slot:`Ripple`})` opacity: 0; position: absolute; - &.${kY.rippleVisible} { + &.${zY.rippleVisible} { opacity: 0.3; transform: scale(1); } @@ -242,7 +242,7 @@ * it relies on this static 'opacity: 0' to disappear on blur instead of * lingering until removal. */ - & .${kY.child} { + & .${zY.child} { opacity: 1; display: block; width: 100%; @@ -251,19 +251,19 @@ background-color: currentColor; } - & .${kY.childLeaving} { + & .${zY.childLeaving} { opacity: 0; } - & .${kY.childPulsate} { + & .${zY.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; } - ${({theme:e})=>ZY(e)} -`,eX=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiTouchRipple`}),r=VY(bE().motion.reducedMotion,!1),{center:i=!1,classes:a=UY,className:o,...s}=n,[c,l]=b.useState({items:WY,order:WY}),u=c.items,d=b.useRef(0),f=b.useRef(null),p=b.useRef(!1);PD(()=>(p.current=!0,()=>{p.current=!1})),b.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=b.useRef(!1),h=DY(),g=b.useRef(null),_=b.useRef(null),v=vY(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:KY(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=vY(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:KY(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),x=vY((e=UY,t=UY,n=GY)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=qY({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),S=vY(()=>{x(UY,{pulsate:!0})}),C=vY((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{C(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:KY(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});b.useImperativeHandle(t,()=>({pulsate:S,start:x,stop:C}),[S,x,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,Y.jsx)(QY,{className:wC(kY.root,a.root,o),ref:_,...s,children:T.map(e=>(0,Y.jsx)($Y,{classes:{ripple:wC(a.ripple,kY.ripple),rippleVisible:wC(a.rippleVisible,kY.rippleVisible),ripplePulsate:wC(a.ripplePulsate,kY.ripplePulsate),child:wC(a.child,kY.child),childLeaving:wC(a.childLeaving,kY.childLeaving),childPulsate:wC(a.childPulsate,kY.childPulsate)},timeout:r.shouldReduceMotion?0:HY,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function tX(e){return DC(`MuiButtonBase`,e)}var nX=OC(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),rX=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=eT({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},tX,a);return n&&!i&&r&&(o.root+=` ${r}`),o},iX=Z(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${nX.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),aX=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,LinkComponent:g=`a`,nativeButton:_,onBlur:v,onClick:y,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:ee,onTouchMove:te,onTouchStart:A,tabIndex:ne=0,TouchRippleProps:re,touchRippleRef:ie,type:j,...M}=n,N=!!(M.href||M.to),ae=!!M.formAction,oe=s;oe===`button`&&N&&(oe=g);let se=typeof oe==`string`?oe===`button`:h??!1,ce=_??se,P=wY(),F=EE(P.ref,ie),[le,ue]=b.useState(!1);(c||m)&&le&&ue(!1);let de=vY(e=>{d&&!e.repeat&&le&&e.key===` `&&P.stop(e,()=>{P.start(e)})}),fe=vY(e=>{d&&e.key===` `&&le&&!e.defaultPrevented&&P.stop(e,()=>{P.pulsate(e)})}),{getButtonProps:pe,rootRef:me}=SY({nativeButton:ce,nativeButtonProp:_,internalNativeButton:se,allowInferredHostMismatch:N||typeof oe==`string`,disabled:c,type:j,hasFormAction:ae,tabIndex:ne,onBeforeKeyDown:de,onBeforeKeyUp:fe}),{onClick:he,onKeyDown:ge,onKeyUp:_e,...ve}=pe({onClick:y,onKeyDown:T,onKeyUp:E});b.useImperativeHandle(r,()=>({focusVisible:()=>{ue(!0),me.current.focus()}}),[me]);let ye=P.shouldMount&&!l&&!c;b.useEffect(()=>{le&&d&&!l&&P.pulsate()},[l,d,le,P]);let be=oX(P,`start`,D,u),xe=oX(P,`stop`,x,u),Se=oX(P,`stop`,S,u),Ce=oX(P,`stop`,k,u),I=oX(P,`stop`,e=>{le&&e.preventDefault(),O&&O(e)},u),we=oX(P,`start`,A,u),L=oX(P,`stop`,ee,u),Te=oX(P,`stop`,te,u),Ee=oX(P,`stop`,e=>{yY(e.target)||ue(!1),v&&v(e)},!1),De=vY(e=>{me.current||=e.currentTarget,!m&&yY(e.target)&&(ue(!0),w&&w(e)),C&&C(e)}),Oe={};N&&(Oe.tabIndex=c?-1:ne,c&&(Oe[`aria-disabled`]=c),Oe.type=j);let ke=EE(t,me),Ae={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:ne,focusVisible:le},je=rX(Ae);return(0,Y.jsxs)(iX,{as:oe,className:wC(je.root,o),ownerState:Ae,onBlur:Ee,onClick:he,onContextMenu:xe,onFocus:De,onKeyDown:ge,onKeyUp:_e,onMouseDown:be,onMouseLeave:I,onMouseUp:Ce,onDragLeave:Se,onTouchEnd:L,onTouchMove:Te,onTouchStart:we,ref:ke,...N?Oe:ve,...M,children:[a,ye?(0,Y.jsx)(eX,{ref:F,center:i,...re}):null]})});function oX(e,t,n,r=!1){return vY(i=>(n&&n(i),r||e[t](i),!0))}function sX(e){return DC(`MuiCircularProgress`,e)}OC(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var cX=44,lX=mx` + ${({theme:e})=>sX(e)} +`,uX=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiTouchRipple`}),r=ZY(xE().motion.reducedMotion,!1),{center:i=!1,classes:a=$Y,className:o,...s}=n,[c,l]=b.useState({items:eX,order:eX}),u=c.items,d=b.useRef(0),f=b.useRef(null),p=b.useRef(!1);ID(()=>(p.current=!0,()=>{p.current=!1})),b.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=b.useRef(!1),h=LY(),g=b.useRef(null),_=b.useRef(null),v=OY(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:nX(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=OY(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:nX(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),x=OY((e=$Y,t=$Y,n=tX)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=rX({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),S=OY(()=>{x($Y,{pulsate:!0})}),C=OY((e,t)=>{if(h.clear(),e?.type===`touchend`&&g.current){g.current(),g.current=null,h.start(0,()=>{C(e,t)});return}g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:nX(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t});b.useImperativeHandle(t,()=>({pulsate:S,start:x,stop:C}),[S,x,C]);let w=new Map(u.map(e=>[e.key,e])),T=c.order.map(e=>w.get(e)).filter(Boolean);return(0,J.jsx)(cX,{className:Y(zY.root,a.root,o),ref:_,...s,children:T.map(e=>(0,J.jsx)(lX,{classes:{ripple:Y(a.ripple,zY.ripple),rippleVisible:Y(a.rippleVisible,zY.rippleVisible),ripplePulsate:Y(a.ripplePulsate,zY.ripplePulsate),child:Y(a.child,zY.child),childLeaving:Y(a.childLeaving,zY.childLeaving),childPulsate:Y(a.childPulsate,zY.childPulsate)},timeout:r.shouldReduceMotion?0:QY,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function dX(e){return DC(`MuiButtonBase`,e)}var fX=OC(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),pX=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=tT({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},dX,a);return n&&!i&&r&&(o.root+=` ${r}`),o},mX=Z(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${fX.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),hX=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,LinkComponent:g=`a`,nativeButton:_,onBlur:v,onClick:y,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:ee,onTouchMove:te,onTouchStart:A,tabIndex:ne=0,TouchRippleProps:re,touchRippleRef:ie,type:j,...M}=n,N=!!(M.href||M.to),ae=!!M.formAction,oe=s;oe===`button`&&N&&(oe=g);let se=typeof oe==`string`?oe===`button`:h??!1,ce=_??se,P=PY(),F=DE(P.ref,ie),[le,ue]=b.useState(!1);(c||m)&&le&&ue(!1);let de=OY(e=>{d&&!e.repeat&&le&&e.key===` `&&P.stop(e,()=>{P.start(e)})}),fe=OY(e=>{d&&e.key===` `&&le&&!e.defaultPrevented&&P.stop(e,()=>{P.pulsate(e)})}),{getButtonProps:pe,rootRef:me}=MY({nativeButton:ce,nativeButtonProp:_,internalNativeButton:se,allowInferredHostMismatch:N||typeof oe==`string`,disabled:c,type:j,hasFormAction:ae,tabIndex:ne,onBeforeKeyDown:de,onBeforeKeyUp:fe}),{onClick:he,onKeyDown:ge,onKeyUp:_e,...ve}=pe({onClick:y,onKeyDown:T,onKeyUp:E});b.useImperativeHandle(r,()=>({focusVisible:()=>{ue(!0),me.current.focus()}}),[me]);let ye=P.shouldMount&&!l&&!c;b.useEffect(()=>{le&&d&&!l&&P.pulsate()},[l,d,le,P]);let be=gX(P,`start`,D,u),xe=gX(P,`stop`,x,u),Se=gX(P,`stop`,S,u),Ce=gX(P,`stop`,k,u),I=gX(P,`stop`,e=>{le&&e.preventDefault(),O&&O(e)},u),we=gX(P,`start`,A,u),L=gX(P,`stop`,ee,u),Te=gX(P,`stop`,te,u),Ee=gX(P,`stop`,e=>{kY(e.target)||ue(!1),v&&v(e)},!1),De=OY(e=>{me.current||=e.currentTarget,!m&&kY(e.target)&&(ue(!0),w&&w(e)),C&&C(e)}),Oe={};N&&(Oe.tabIndex=c?-1:ne,c&&(Oe[`aria-disabled`]=c),Oe.type=j);let ke=DE(t,me),Ae={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:ne,focusVisible:le},je=pX(Ae);return(0,J.jsxs)(mX,{as:oe,className:Y(je.root,o),ownerState:Ae,onBlur:Ee,onClick:he,onContextMenu:xe,onFocus:De,onKeyDown:ge,onKeyUp:_e,onMouseDown:be,onMouseLeave:I,onMouseUp:Ce,onDragLeave:Se,onTouchEnd:L,onTouchMove:Te,onTouchStart:we,ref:ke,...N?Oe:ve,...M,children:[a,ye?(0,J.jsx)(uX,{ref:F,center:i,...re}):null]})});function gX(e,t,n,r=!1){return OY(i=>(n&&n(i),r||e[t](i),!0))}function _X(e){return DC(`MuiCircularProgress`,e)}OC(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var vX=44,yX=hx` 0% { transform: rotate(0deg); } @@ -271,7 +271,7 @@ 100% { transform: rotate(360deg); } -`,uX=mx` +`,bX=hx` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -286,14 +286,14 @@ stroke-dasharray: 1px, 200px; stroke-dashoffset: -126px; } -`,dX=typeof lX==`string`?null:px` - animation: ${lX} 1.4s linear infinite; - `,fX=typeof uX==`string`?null:px` - animation: ${uX} 1.4s ease-in-out infinite; - `,pX=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return eT({root:[`root`,n,`color${TE(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},sX,t)},mX=Z(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${TE(n.color)}`]]}})(CE(({theme:e})=>{let t=ME(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...NE(e,`transform`)}},{props:{variant:`indeterminate`},style:dX||{animation:`${lX} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(UW()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),hX=Z(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),gX=Z(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(CE(({theme:e})=>{let t=ME(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...NE(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:fX||{animation:`${uX} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),_X=Z(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(CE(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),vX=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=pX(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((cX-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,Y.jsx)(mX,{className:wC(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,Y.jsxs)(hX,{className:v.svg,ownerState:_,viewBox:`${cX/2} ${cX/2} ${cX} ${cX}`,children:[o?(0,Y.jsx)(_X,{className:v.track,ownerState:_,cx:cX,cy:cX,r:(cX-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,Y.jsx)(gX,{className:v.circle,style:y,ownerState:_,cx:cX,cy:cX,r:(cX-d)/2,fill:`none`,strokeWidth:d})]})})});function yX(e){return DC(`MuiIconButton`,e)}var bX=OC(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),xX=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return eT({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${TE(r)}`,i&&`edge${TE(i)}`,`size${TE(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},yX,t)},SX=Z(aX,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${TE(n.color)}`],n.edge&&t[`edge${TE(n.edge)}`],t[`size${TE(n.size)}`]]}})(CE(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...NE(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),CE(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(UW()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${bX.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${bX.loading}`]:{color:`transparent`}}))),CX=Z(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),wX=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=_Y(u),h=f??(0,Y.jsx)(vX,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=xX(g);return(0,Y.jsxs)(SX,{id:d?m:u,className:wC(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,Y.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,Y.jsx)(CX,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function TX(e){return DC(`MuiButton`,e)}var EX=OC(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),DX=b.createContext({}),OX=b.createContext(void 0),kX=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=eT({root:[`root`,o&&`loading`,a,`size${TE(i)}`,`color${TE(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${TE(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},TX,c);return{...c,...l}},AX=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],jX=Z(aX,{shouldForwardProp:e=>SE(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${TE(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(CE(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...NE(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${EX.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${EX.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${EX.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${EX.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(UW()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${EX.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${EX.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...NE(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${EX.loading}`]:{color:`transparent`}}}]}})),MX=Z(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...NE(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...AX]})),NX=Z(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...NE(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...AX]})),PX=Z(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),FX=Z(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),IX=b.forwardRef(function(e,t){let n=b.useContext(DX),r=b.useContext(OX),i=wE({props:BC(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:x,type:S,variant:C=`text`,...w}=i,T=_Y(h),E=_??(0,Y.jsx)(vX,{"aria-labelledby":T,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:E,loadingPosition:v,size:y,type:S,variant:C},O=kX(D),k=(x||g&&v===`start`)&&(0,Y.jsx)(MX,{className:O.startIcon,ownerState:D,children:x||(0,Y.jsx)(FX,{className:O.loadingIconPlaceholder,ownerState:D})}),ee=(f||g&&v===`end`)&&(0,Y.jsx)(NX,{className:O.endIcon,ownerState:D,children:f||(0,Y.jsx)(FX,{className:O.loadingIconPlaceholder,ownerState:D})}),te=r||``,A=typeof g==`boolean`?(0,Y.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,Y.jsx)(PX,{className:O.loadingIndicator,ownerState:D,children:E})}):null,{root:ne,...re}=O;return(0,Y.jsxs)(jX,{ownerState:D,className:wC(n.className,O.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:wC(O.focusVisible,p),ref:t,internalNativeButton:!0,type:S,id:g?T:h,...w,classes:re,children:[k,v!==`end`&&A,a,v===`end`&&A,ee]})}),LX=b.createContext({}),RX=b.createContext(void 0);function zX(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}var BX=e=>{let{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:o}=e;return eT({root:[`root`,r&&`selected`,i&&`disabled`,n&&`fullWidth`,`size${TE(a)}`,o]},PE,t)},VX=Z(aX,{name:`MuiToggleButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`size${TE(n.size)}`]]}})(CE(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${FE.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:`none`,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[{props:{color:`standard`},style:{[`&.${FE.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(UW()).map(([t])=>({props:{color:t},style:{[`&.${FE.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),HX=b.forwardRef(function(e,t){let{value:n,...r}=b.useContext(LX),i=b.useContext(RX),a=wE({props:BC({...r,selected:zX(e.value,n)},e),name:`MuiToggleButton`}),{children:o,className:s,color:c=`standard`,disabled:l=!1,disableFocusRipple:u=!1,fullWidth:d=!1,onChange:f,onClick:p,selected:m,size:h=`medium`,value:g,..._}=a,v={...a,color:c,disabled:l,disableFocusRipple:u,fullWidth:d,size:h},y=BX(v),x=e=>{p&&(p(e,g),e.defaultPrevented)||f&&f(e,g)},S=i||``;return(0,Y.jsx)(VX,{className:wC(r.className,y.root,s,S),internalNativeButton:!0,disabled:l,focusRipple:!u,ref:t,onClick:x,onChange:f,value:g,ownerState:v,"aria-pressed":m,..._,children:o})});function UX(e){return b.Children.toArray(e).filter(e=>b.isValidElement(e))}function WX(e){return DC(`MuiToggleButtonGroup`,e)}var GX=OC(`MuiToggleButtonGroup`,[`root`,`selected`,`horizontal`,`vertical`,`disabled`,`grouped`,`fullWidth`,`firstButton`,`lastButton`,`middleButton`]),KX=e=>{let{classes:t,orientation:n,fullWidth:r,disabled:i}=e;return eT({root:[`root`,n,r&&`fullWidth`],grouped:[`grouped`,i&&`disabled`],firstButton:[`firstButton`],lastButton:[`lastButton`],middleButton:[`middleButton`]},WX,t)},qX=Z(`div`,{name:`MuiToggleButtonGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${GX.grouped}`]:t.grouped},{[`& .${GX.firstButton}`]:t.firstButton},{[`& .${GX.lastButton}`]:t.lastButton},{[`& .${GX.middleButton}`]:t.middleButton},t.root,n.orientation===`vertical`&&t.vertical,n.fullWidth&&t.fullWidth]}})(CE(({theme:e})=>({display:`inline-flex`,borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:`vertical`},style:{flexDirection:`column`,[`& .${GX.grouped}`]:{[`&.${GX.selected} + .${GX.grouped}.${GX.selected}`]:{borderTop:0,marginTop:0}},[`& .${GX.firstButton},& .${GX.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${GX.lastButton},& .${GX.middleButton}`]:{marginTop:-1,borderTop:`1px solid transparent`,borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${GX.lastButton}.${FE.disabled},& .${GX.middleButton}.${FE.disabled}`]:{borderTop:`1px solid transparent`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{orientation:`horizontal`},style:{[`& .${GX.grouped}`]:{[`&.${GX.selected} + .${GX.grouped}.${GX.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${GX.firstButton},& .${GX.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${GX.lastButton},& .${GX.middleButton}`]:{marginLeft:-1,borderLeft:`1px solid transparent`,borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${GX.lastButton}.${FE.disabled},& .${GX.middleButton}.${FE.disabled}`]:{borderLeft:`1px solid transparent`}}}]}))),JX=J({},{baseButton:IX,baseIconButton:wX,baseToggleButton:HX,baseToggleButtonGroup:b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiToggleButtonGroup`}),{children:r,className:i,color:a=`standard`,disabled:o=!1,exclusive:s=!1,fullWidth:c=!1,onChange:l,orientation:u=`horizontal`,size:d=`medium`,value:f,...p}=n,m={...n,disabled:o,fullWidth:c,orientation:u,size:d},h=KX(m),g=b.useCallback((e,t)=>{if(!l)return;let n=f&&f.indexOf(t),r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],l(e,r)},[l,f]),_=b.useCallback((e,t)=>{l&&l(e,f===t?null:t)},[l,f]),v=b.useMemo(()=>({className:h.grouped,onChange:s?_:g,value:f,size:d,fullWidth:c,color:a,disabled:o}),[h.grouped,s,_,g,f,d,c,a,o]),y=UX(r),x=y.length,S=e=>{let t=e===0,n=e===x-1;return t&&n?``:t?h.firstButton:n?h.lastButton:h.middleButton};return(0,Y.jsx)(qX,{role:`group`,className:wC(h.root,i),ref:t,ownerState:m,...p,children:(0,Y.jsx)(LX.Provider,{value:v,children:y.map((e,t)=>(0,Y.jsx)(RX.Provider,{value:S(t),children:e},t))})})})},{}),YX=b.createContext(null);function XX(e){let{slots:t,slotProps:n={},defaultSlots:r,children:i}=e,a=b.useMemo(()=>({slots:J({},r,t),slotProps:n}),[r,t,n]);return(0,Y.jsx)(YX.Provider,{value:a,children:i})}function ZX(e){let t=1/0,n=-1/0;for(let r of e??[])rn&&(n=r);return[t,n]}var QX=(e,t)=>t===`x`?{x:e,y:null}:{x:null,y:e},$X=e=>{let{axis:t,getFilters:n,isDefaultAxis:r}=e,i=n?.({currentAxisId:t.id,isDefaultAxis:r});return ZX((i?t.data?.filter((e,t)=>i({x:null,y:null},t)):t.data)??[])},eZ=e=>t=>{let{series:n,axis:r,getFilters:i,isDefaultAxis:a}=t;return Object.keys(n).filter(t=>{let i=e===`x`?n[t].xAxisId:n[t].yAxisId;return r.domainSeries===`visible`&&n[t].hidden?!1:i===r.id||a&&i===void 0}).reduce((t,o)=>{let{stackedData:s,visibleStackedData:c}=n[o],l=i?.({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:n[o].xAxisId,seriesYAxisId:n[o].yAxisId}),[u,d]=(r.domainSeries===`visible`?c:s)?.reduce((t,n,r)=>l&&(!l(QX(n[0],e),r)||!l(QX(n[1],e),r))?t:[Math.min(...n,t[0]),Math.max(...n,t[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(u,t[0]),Math.max(d,t[1])]},[1/0,-1/0])},tZ=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?eZ(`x`)(e):$X(e),nZ=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?$X(e):eZ(`y`)(e);function rZ(e,t){if(e.length===0)return;let n=e.length,r=t,i=e[r[0]].length;for(let t=0;t0?(s[0]=i,i+=c,s[1]=i):c<0?(s[1]=a,a+=c,s[0]=a):s.data[n.key]>0?(s[0]=i,s[1]=i):s.data[n.key]<0?(s[1]=a,s[0]=a):(s[0]=0,s[1]=0)}}}var iZ={appearance:gH,ascending:vH,descending:bH,insideOut:xH,none:lH,reverse:SH},aZ={expand:pH,diverging:rZ,none:cH,silhouette:mH,wiggle:hH},oZ=e=>{let{series:t,seriesOrder:n,defaultStrategy:r}=e,i=[],a={};return n.forEach(e=>{let{stack:n,stackOrder:o,stackOffset:s}=t[e];n===void 0?i.push({ids:[e],stackingOrder:iZ.none,stackingOffset:aZ.none}):a[n]===void 0?(a[n]=i.length,i.push({ids:[e],stackingOrder:iZ[o??r?.stackOrder??`none`],stackingOffset:aZ[s??r?.stackOffset??`diverging`]})):(i[a[n]].ids.push(e),o!==void 0&&(i[a[n]].stackingOrder=iZ[o]),s!==void 0&&(i[a[n]].stackingOffset=aZ[s]))}),i},sZ=e=>e==null?``:e.toLocaleString(),cZ=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a=oZ(e),o=t??[];r.forEach(e=>{let n=i[e].data;n===void 0?i[e].valueGetter&&t&&t.forEach((t,n)=>{let r=i[e].valueGetter(t);o.length<=n?o.push({[e]:r}):o[n][e]=r}):n.forEach((t,n)=>{o.length<=n?o.push({[e]:t}):o[n][e]=t})});let s={};return a.forEach(e=>{let{ids:r,stackingOffset:a,stackingOrder:c}=e,l=r.map(e=>{let t=i[e].dataKey;return i[e].data===void 0&&t!==void 0?t:e}),u=fH().keys(l).value((e,t)=>e[t]??0).order(c).offset(a)(o),d=u.map(e=>e.index),f=fH().keys(l).value((e,t)=>{let i=l.indexOf(t),a=r[i];return n?.({type:`bar`,seriesId:a})?e[t]??0:0}).order(()=>d).offset(a)(o);r.forEach((e,r)=>{let{dataKey:a,valueGetter:o}=i[e],c;c=o?t.map(e=>o(e)):a?t.map(e=>{let t=e[a];return typeof t==`number`?t:null}):i[e].data;let l=!n?.({type:`bar`,seriesId:e});s[e]=J({layout:`vertical`,labelMarkType:`square`,minBarSize:0,valueFormatter:i[e].valueFormatter??sZ},i[e],{data:c,hidden:l,stackedData:u[r],visibleStackedData:f[r]})})}),{seriesOrder:r,stackingGroups:a,series:s}};function lZ(e,t,n){let{seriesOrder:r,series:i}=t;return r.reduce((t,r)=>{let a=mG(i[r].label,`legend`);return a===void 0||t.push({type:e,markType:i[r].labelMarkType??n,seriesId:r,color:i[r].color,label:a}),t},[])}var uZ=e=>lZ(`bar`,e),dZ=(e,t,n)=>{let r=e.layout===`vertical`;return FU({series:e,valueColorScale:r?n?.colorScale:t?.colorScale,categoryColorScale:r?t?.colorScale:n?.colorScale,categoryValues:r?t?.data:n?.data})};function fZ(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null)}).map(e=>({type:t,seriesId:e}))})}function pZ(e,t,n,r){let i=fZ(e,t);if(i.length===0)return null;let a=n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1;return a<=0?i[i.length-1]:i[(a-1+i.length)%i.length]}function mZ(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null&&!(typeof e==`object`&&`hidden`in e&&e.hidden))}).map(e=>n.series[e].data.length)}).reduce((e,t)=>Math.max(e,t),0)}function hZ(e,t,n,r){let i=fZ(e,t);return i.length===0?null:i[((n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1)+1)%i.length]}function gZ({processedSeries:e,type:t,seriesId:n,startIndex:r,dataLength:i,direction:a,allowCycles:o}){if(i<=0)return null;let s=e[t]?.series[n];if(s&&`hidden`in s&&s.hidden)return null;let c=s?.data,l=e=>{if(!c)return!1;let t=c[e];return typeof t==`object`&&!!t&&`hidden`in t&&!!t.hidden},u=r;for(let e=0;e=0&&u=i)return null;u=e}}return null}function _Z(e,t,n){if(t===`sankey`)return!1;let r=e[t]?.series[n]?.data;return r!=null&&r.length>0}function vZ(e,t,n){let r=e[t]?.series[n];return!!(r&&`hidden`in r&&r.hidden)}function yZ(e,t=!1,n=!0){return function(r,i){let a=eP(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!_Z(a,s,o)||vZ(a,s,o)){let t=hZ(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:mZ(a,e),l=r?.dataIndex==null?0:r.dataIndex+1;t?l%=c:l=Math.min(c-1,l);let u=gZ({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function bZ(e,t=!1,n=!0){return function(r,i){let a=eP(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!_Z(a,s,o)||vZ(a,s,o)){let t=pZ(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:mZ(a,e),l=r?.dataIndex==null?c-1:r.dataIndex-1;l=t?(c+l)%c:Math.max(0,l);let u=gZ({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:-1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function xZ(e){return function(t,n){let r=eP(n),i=t?.seriesId,a=t?.type,o=hZ(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?0:Math.min(t.dataIndex,s.length-1),l=gZ({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function SZ(e){return function(t,n){let r=eP(n),i=t?.seriesId,a=t?.type,o=pZ(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?s.length-1:Math.min(t.dataIndex,s.length-1),l=gZ({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:-1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function CZ(e,t,n){return r=>{switch(r.key){case`ArrowRight`:return yZ(e,t,n);case`ArrowLeft`:return bZ(e,t,n);case`ArrowDown`:return SZ(e);case`ArrowUp`:return xZ(e);default:return null}}}var wZ=CZ(yG,!1,!1);function TZ(e,t={}){let{series:n,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;let a=mG(n.label,`tooltip`),o=n.data[i.dataIndex];if(t.skipNullValues&&o==null)return null;let s=n.valueFormatter(o,{dataIndex:i.dataIndex});return J({identifier:i,color:r(i.dataIndex),label:a,value:o,formattedValue:s,markType:n.labelMarkType},t.includeMarkShape&&`showMark`in n&&{markShape:n.showMark?n.shape:void 0})}var EZ=e=>TZ(e,{skipNullValues:!0}),DZ=e=>Object.values(e).map(e=>e.layout===`horizontal`?{direction:`y`,axisId:e.yAxisId}:{direction:`x`,axisId:e.xAxisId});function OZ(e,t,n){let r=e&&t>0||!e&&t<0;return n?!r:r}function kZ(e){let{verticalLayout:t,xAxisConfig:n,yAxisConfig:r,series:i,numberOfGroups:a}=e,o=t?n:r,s=(t?r.reverse:n.reverse)??!1,{barWidth:c,offset:l}=fR(o.scale.bandwidth(),a,o.barGapRatio),u=n.scale,d=r.scale;return function(e,n){let r=n*(c+l),a=o.data[e],f=i.data[e];if(f==null)return null;let[p,m]=ZX(i.visibleStackedData[e].map(e=>t?d(e):u(e))).map(e=>Math.round(e)),h=0;f!==0&&(i.hidden||(h=Math.max(i.minBarSize,m-p)));let g=OZ(t,f,s),_=0;return _=g?m-h:p,{x:t?u(a)+r:_,y:t?_:d(a)+r,height:t?h:c,width:t?c:h}}}var AZ=$(IR,eP,uL,dL,function(e,t,n,r,i){if(!e||e.type!==`bar`||e.dataIndex===void 0)return null;let a=t.bar?.series[e.seriesId];if(!t.bar||!a)return null;let o=n.axis[a.xAxisId??n.axisIds[0]],s=r.axis[a.yAxisId??r.axisIds[0]];if(!o||!s)return null;let c=t.bar.stackingGroups.findIndex(e=>e.ids.includes(a.id)),l=kZ({verticalLayout:a.layout===`vertical`,xAxisConfig:o,yAxisConfig:s,series:a,numberOfGroups:t.bar.stackingGroups.length})(e.dataIndex,c);if(l==null)return null;let{x:u,y:d,width:f,height:p}=l;switch(i){case`right`:return{x:u+f,y:d+p/2};case`bottom`:return{x:u+f/2,y:d+p};case`left`:return{x:u,y:d+p/2};default:return{x:u+f/2,y:d}}});function jZ(e,t,n){return J({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]})}var MZ=e=>`Type(${e})`,NZ=e=>`Series(${e})`,PZ=e=>e===void 0?``:`Index(${e})`,FZ=e=>`${MZ(e.type)}${NZ(e.seriesId)}${PZ(e.dataIndex)}`,IZ=e=>({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),LZ={seriesProcessor:cZ,colorProcessor:dZ,legendGetter:uZ,tooltipGetter:EZ,selectorTooltipItemPosition:AZ,axisTooltipGetter:DZ,xExtremumGetter:tZ,yExtremumGetter:nZ,getSeriesWithDefaultValues:jZ,getItemAtPosition:hR,identifierSerializer:FZ,identifierCleaner:IZ,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=mG(n.label,`tooltip`),s=n.data[t.dataIndex]??null,c=n.layout===`horizontal`?i:r,l=c.data?.[t.dataIndex]??null,u=n.valueFormatter(s,{dataIndex:t.dataIndex}),d=c.valueFormatter?.(l,{location:`tooltip`,scale:c.scale});return a.barDescription({value:s,formattedValue:u??``,categoryValue:l,formattedCategoryValue:d??``,seriesLabel:o})},keyboardFocusHandler:wZ,isHighlightedCreator:az,isFadedCreator:sz},RZ=e=>{let{axis:t}=e;return ZX(t.data??[])};function zZ(e,t,n,r){return n.reduce((n,i,a)=>{if(t[a]===null)return n;let[o,s]=e(i);return r&&(!r({y:o,x:null},a)||!r({y:s,x:null},a))?n:[Math.min(o,s,n[0]),Math.max(o,s,n[1])]},[1/0,-1/0])}var BZ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;return Object.keys(t).filter(e=>{if(n.domainSeries===`visible`&&t[e].hidden)return!1;let i=t[e].yAxisId;return i===n.id||r&&i===void 0}).reduce((e,a)=>{let{area:o,stackedData:s,visibleStackedData:c,data:l}=t[a],u=o!==void 0,d=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),[f,p]=zZ(u&&n.scaleType!==`log`&&typeof t[a].baseline!=`string`?e=>e:e=>[e[1],e[1]],l,n.domainSeries===`visible`?c:s,d);return[Math.min(f,e[0]),Math.max(p,e[1])]},[1/0,-1/0])},VZ=[`circle`,`square`,`diamond`,`cross`,`star`,`triangle`,`wye`],HZ=e=>e==null?``:e.toLocaleString();function UZ(e,t,n,r){let{seriesOrder:i,series:a}=e,o=oZ(J({},e,{defaultStrategy:{stackOffset:`none`}})),s=new Map,c=t??[];i.forEach((e,n)=>{s.set(e,n);let r=a[e].data;r===void 0?a[e].valueGetter&&t&&t.forEach((t,n)=>{let r=a[e].valueGetter(t);c.length<=n?c.push({[e]:r}):c[n][e]=r}):r.forEach((t,n)=>{c.length<=n?c.push({[e]:t}):c[n][e]=t})});let l={};return o.forEach(e=>{let{ids:i,stackingOffset:o,stackingOrder:u}=e,d=i.map(e=>{let t=a[e].dataKey;return a[e].data===void 0&&t!==void 0?t:e}),f=fH().keys(d).value((e,t)=>e[t]??0).order(u).offset(o)(c),p=f.map(e=>e.index),m=fH().keys(d).value((e,t)=>{let a=d.indexOf(t),o=i[a];return n?.({type:r,seriesId:o})?e[t]??0:0}).order(()=>p).offset(o)(c);i.forEach((e,i)=>{let{dataKey:o,valueGetter:c}=a[e],u;u=c?t.map(e=>c(e)):o?t.map(e=>{let t=e[o];return typeof t==`number`?t:null}):a[e].data;let d=!n?.({type:r,seriesId:e});l[e]=J({labelMarkType:`line+mark`},a[e],{shape:a[e].shape??VZ[(s.get(e)??0)%VZ.length],data:u,valueFormatter:a[e].valueFormatter??HZ,hidden:d,stackedData:f[i],visibleStackedData:m[i]})})}),{seriesOrder:i,stackingGroups:o,series:l}}var WZ=(e,t,n)=>UZ(e,t,n,`line`),GZ=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{let r=mG(n[t].label,`legend`);return r===void 0||e.push({type:`line`,markType:n[t].labelMarkType,markShape:n[t].showMark?n[t].shape??`circle`:void 0,seriesId:t,color:n[t].color,label:r}),e},[])},KZ=e=>TZ(e,{includeMarkShape:!0}),qZ=e=>Object.values(e).map(e=>({direction:`x`,axisId:e.xAxisId})),JZ=(e,t,n)=>J({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length],curve:e.curve??`monotoneX`}),YZ=$(IR,eP,uL,dL,function(e,t,n,r){if(!e||e.type!==`line`||e.dataIndex===void 0)return null;let i=t.line?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=a.data?.[e.dataIndex],c=i.data[e.dataIndex]==null?null:i.visibleStackedData[e.dataIndex][1];return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}});function XZ(e){return`cpx1`in e}var ZZ=class{segments=[];cx=0;cy=0;moveTo(e,t){this.cx=e,this.cy=t}lineTo(e,t){this.segments.push({x0:this.cx,y0:this.cy,x1:e,y1:t}),this.cx=e,this.cy=t}bezierCurveTo(e,t,n,r,i,a){this.segments.push({x0:this.cx,y0:this.cy,cpx1:e,cpy1:t,cpx2:n,cpy2:r,x1:i,y1:a}),this.cx=i,this.cy=a}closePath(){}};function QZ(e,t){let n=e.x1-e.x0;if(n===0)return e.y0;let r=e.y1-e.y0;if(!XZ(e))return e.y0+r*(t-e.x0)/n;let i=(e.cpx1-e.x0)/n,a=(e.cpx2-e.x0)/n,o=hz(i,r===0?0:(e.cpy1-e.y0)/r,a,r===0?0:(e.cpy2-e.y0)/r),s=(t-e.x0)/n;return e.y0+r*o(s)}function $Z(e,t,n){if(e.length===0)return null;if(e.length===1)return e[0].y;let r=new ZZ,i=dU(n)(r),a=e[0].x>t,o=0,s=!1;i.lineStart();for(let n of e)!s&&n.x>t!==a&&(o=Math.max(0,r.segments.length-1),s=!0),i.point(n.x,n.y);i.lineEnd();for(let e=o;en.x0-.5)return n.y0;if(tn.x1-.5)return n.y1;let i=Math.min(n.x0,n.x1),a=Math.max(n.x0,n.x1);if(t>=i&&t<=a)return QZ(n,t)}return null}function eQ(e,t){let{scale:n,data:r}=e;if(!r||r.length===0)return null;if(oI(n)){let n=yL(e,t);return n===-1?null:_R(e.scale)(r[n])<=t?n===r.length-1?null:{left:n,right:n+1}:n===0?null:{left:n-1,right:n}}let i=_L(n.invert(t)),a=-1;for(let e=0;e0&&e[s-1]!=null;)--s;let c=i;for(;cC(S[e]),e=>{let t=_[e];return t?p.scale(t[1]):null},h,g,y);if(w.length<2)continue;let T=$Z(w,t.x,b);if(T==null)continue;let E=Math.abs(t.y-T);E=0;--e){let r=d[e].ids;for(let e=0;ew(T[e]),D=nQ(v,E,e=>{let t=_[e];return t?C(t[1]):null},h,g,y),O=nQ(v,E,e=>{let t=_[e];return t?tQ(b,C,t[0]):null},h,g,y);if(D.length<2||O.length<2)continue;let k=$Z(D,t.x,x),ee=$Z(O,t.x,x);if(k==null||ee==null)continue;let te=Math.min(ee,k),A=Math.max(ee,k);if(t.y>=te&&t.y<=A){let e=yL(f,t.x);return{type:`line`,seriesId:a,dataIndex:e===-1?h:e}}}}return u}var aQ={colorProcessor:IU,seriesProcessor:WZ,legendGetter:GZ,tooltipGetter:KZ,selectorTooltipItemPosition:YZ,axisTooltipGetter:qZ,xExtremumGetter:RZ,yExtremumGetter:BZ,getSeriesWithDefaultValues:JZ,getItemAtPosition:iQ,keyboardFocusHandler:CZ(yG,!1,!1),identifierSerializer:FZ,identifierCleaner:IZ,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,localeText:i}=e,a=mG(n.label,`tooltip`),o=t.dataIndex;if(o===void 0)return``;let s=r.data?.[o]??null,c=n.data[o]??null,l=r.valueFormatter?.(s,{location:`tooltip`,scale:r.scale}),u=n.valueFormatter(c,{dataIndex:o});return i.lineDescription({x:s,y:c,formattedXValue:l??``,formattedYValue:u??``,seriesLabel:a})},isHighlightedCreator:az,isFadedCreator:sz},oQ=(e=`none`)=>{if(typeof e==`function`)return e;switch(e){case`none`:return null;case`desc`:return(e,t)=>t-e;case`asc`:return(e,t)=>e-t;default:return null}},sQ=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a={};return r.forEach(e=>{let t=i[e].data.filter((t,r)=>n?.({type:`pie`,seriesId:e,dataIndex:r})),r=vV().startAngle(sO(i[e].startAngle??0)).endAngle(sO(i[e].endAngle??360)).padAngle(sO(i[e].paddingAngle??0)).sortValues(oQ(i[e].sortingValues??`none`))(t.map(e=>e.value)),o=0;a[e]=J({labelMarkType:`circle`,valueFormatter:e=>e.value.toLocaleString()},i[e],{data:i[e].data.map((t,a)=>{let s=t.id??`auto-generated-pie-id-${e}-${a}`,c=!n?.({type:`pie`,seriesId:e,dataIndex:a}),l;if(c){let n=o>0?r[o-1].endAngle:sO(i[e].startAngle??0);l={startAngle:n,endAngle:n,padAngle:0,value:t.value,index:a}}else l=r[o],o+=1;let u=J({},t,{id:s,hidden:c},l);return J({labelMarkType:`circle`},u,{formattedValue:i[e].valueFormatter?.(J({},u,{label:mG(u.label,`arc`)}),{dataIndex:a})??u.value.toLocaleString()})})})}),{seriesOrder:r,series:a}},cQ=e=>t=>e.data[t].color,lQ=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>(n[t].data.forEach((r,i)=>{let a=mG(r.label,`legend`);a!==void 0&&e.push({type:`pie`,markType:r.labelMarkType??n[t].labelMarkType,seriesId:t,dataIndex:i,color:r.color,label:a})}),e),[])},uQ=e=>{let{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;let i=t.data[r.dataIndex];if(i==null)return null;let a=mG(i.label,`tooltip`),o=J({},i,{label:a}),s=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:a,value:o,formattedValue:s,markType:i.labelMarkType??t.labelMarkType}};function dQ(e,t){let{height:n,width:r}=t,{cx:i,cy:a}=e,o=Math.min(r,n)/2;return{cx:Qz(i??`50%`,r),cy:Qz(a??`50%`,n),availableRadius:o}}var fQ={colorProcessor:cQ,seriesProcessor:sQ,seriesLayout:(e,t)=>{let n={};for(let r of e.seriesOrder){let{innerRadius:i,outerRadius:a,arcLabelRadius:o,cx:s,cy:c}=e.series[r],{cx:l,cy:u,availableRadius:d}=dQ({cx:s,cy:c},{width:t.width,height:t.height}),f=Qz(a??d,d),p=Qz(i??0,d);n[r]={radius:{available:d,inner:p,outer:f,label:o===void 0?(p+f)/2:Qz(o,d)},center:{x:t.left+l,y:t.top+u}}}return n},legendGetter:lQ,tooltipGetter:uQ,selectorTooltipItemPosition:$(IR,eP,oF,function(e,t,n,r){if(!e||e.type!==`pie`||e.dataIndex===void 0)return null;let i=t.pie?.series[e.seriesId],a=n.pie?.[e.seriesId];if(i==null||a==null)return null;let{center:o,radius:s}=a,{data:c}=i,l=c[e.dataIndex];if(!l)return null;let u=[[s.inner,l.startAngle],[s.inner,l.endAngle],[s.outer,l.startAngle],[s.outer,l.endAngle]].map(([e,t])=>({x:o.x+e*Math.sin(t),y:o.y-e*Math.cos(t)})),[d,f]=ZX(u.map(e=>e.x)),[p,m]=ZX(u.map(e=>e.y));switch(r){case`bottom`:return{x:(f+d)/2,y:m};case`left`:return{x:d,y:(m+p)/2};case`right`:return{x:f,y:(m+p)/2};default:return{x:(f+d)/2,y:p}}}),getSeriesWithDefaultValues:(e,t,n)=>J({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((e,t)=>J({},e,{color:e.color??n[t%n.length]}))}),keyboardFocusHandler:CZ(new Set([`pie`])),identifierSerializer:FZ,identifierCleaner:IZ,descriptionGetter:e=>{let{identifier:t,series:n,localeText:r}=e,i=n.data[t.dataIndex],a=mG(i?.label,`tooltip`),o=i?.value??null,s=i?.formattedValue??``,c=n.data.reduce((e,t)=>e+(t?.value??0),0);return r.pieDescription({value:o,totalValue:c,formattedValue:s,seriesLabel:a})},isHighlightedCreator:az,isFadedCreator:sz},pQ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].xAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;eo&&(o=t.x))}}return[a,o]},mQ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].yAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;eo&&(o=t.y))}}return[a,o]};function hQ(e,t,n){throw Error(QE(279,e,t,n.map(e=>`"${e}"`).join(`, `)))}var gQ={bar:LZ,scatter:{seriesProcessor:({series:e,seriesOrder:t},n,r)=>({series:Object.fromEntries(Object.entries(e).map(([e,t])=>{let i=t?.datasetKeys,a=[`x`,`y`].filter(e=>typeof i?.[e]!=`string`);t?.datasetKeys&&a.length>0&&hQ(`Scatter`,e,a);let o;return o=t.valueGetter?n?.map(t.valueGetter)??[]:i?n?.map(e=>{let t={x:e[i.x],y:e[i.y]};return i.colorValue!==void 0&&(t.colorValue=e[i.colorValue]),i.sizeValue!==void 0&&(t.sizeValue=e[i.sizeValue]),i.z!==void 0&&(t.z=e[i.z]),i.id!==void 0&&(t.id=e[i.id]),t})??[]:t.data??[],[e,J({labelMarkType:`circle`,markerSize:4},t,{preview:J({markerSize:1},t?.preview),data:o,hidden:!r?.({type:`scatter`,seriesId:e}),valueFormatter:t.valueFormatter??(e=>e&&`(${e.x}, ${e.y})`)})]})),seriesOrder:t}),colorProcessor:(e,t,n,r)=>{let i=r?.colorScale,a=n?.colorScale,o=t?.colorScale,s=PU(e);return i?t=>{if(t===void 0)return e.color;if(r?.data?.[t]!==void 0){let e=i(r?.data?.[t]);if(e!==null)return e}let n=e.data[t],a=i(n.colorValue??n.z);return typeof a==`string`?a:s({value:n,dataIndex:t})}:a?t=>{if(t===void 0)return e.color;let n=e.data[t],r=a(n.y);return typeof r==`string`?r:s({value:n,dataIndex:t})}:o?t=>{if(t===void 0)return e.color;let n=e.data[t],r=o(n.x);return typeof r==`string`?r:s({value:n,dataIndex:t})}:t=>{if(t===void 0)return e.color;let n=e.data[t];return s({value:n,dataIndex:t})}},legendGetter:e=>lZ(`scatter`,e),tooltipGetter:e=>TZ(e),selectorTooltipItemPosition:$(IR,eP,uL,dL,function(e,t,n,r){if(!e||e.type!==`scatter`||e.dataIndex===void 0)return null;let i=t.scatter?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=i.data?.[e.dataIndex].x,c=i.data?.[e.dataIndex].y;return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}}),xExtremumGetter:pQ,yExtremumGetter:mQ,getSeriesWithDefaultValues:(e,t,n)=>J({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]}),keyboardFocusHandler:CZ(yG),identifierSerializer:FZ,identifierCleaner:IZ,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=mG(n.label,`tooltip`),s=n.data[t.dataIndex],c=r.valueFormatter?.(s?.x,{location:`tooltip`,scale:r.scale})??``,l=i.valueFormatter?.(s?.y,{location:`tooltip`,scale:i.scale})??``;return a.scatterDescription({x:s?.x??null,y:s?.y??null,formattedXValue:c,formattedYValue:l,seriesLabel:o})},isHighlightedCreator:az,isFadedCreator:sz},line:aQ,pie:fQ},_Q=[`children`,`localeText`,`plugins`,`slots`,`slotProps`,`seriesConfig`],vQ=e=>{let t=IE({props:e,name:`MuiChartsDataProvider`}),{children:n,localeText:r,plugins:i=lY,slots:a,slotProps:o,seriesConfig:s=gQ}=t,c=WE(t,_Q),l=bE();return{children:n,localeText:r,chartProviderProps:{plugins:i,pluginParams:J({theme:l.palette.mode,seriesConfig:s},c)},slots:a,slotProps:o}};function yQ(e){let{children:t,localeText:n,chartProviderProps:r,slots:i,slotProps:a}=vQ(e);return(0,Y.jsx)(BR,J({},r,{children:(0,Y.jsx)(AH,{localeText:n,children:(0,Y.jsx)(XX,{slots:i,slotProps:a,defaultSlots:JX,children:t})})}))}function bQ(e){return DC(`MuiChartsSurface`,e)}var xQ=()=>eT({root:[`root`]},bQ);OC(`MuiChartsSurface`,[`root`]);function SQ(e){let{isReversed:t,gradientId:n,size:r,direction:i,scale:a,colorMap:o}=e;return r<=0?null:(0,Y.jsx)(`linearGradient`,{id:n,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${i}${t?1:2}`]:`${r}px`,gradientUnits:`userSpaceOnUse`,children:o.thresholds.map((e,n)=>{let i=a(e);if(i===void 0)return null;let s=t?1-i/r:i/r;return Number.isNaN(s)?null:(0,Y.jsxs)(b.Fragment,{children:[(0,Y.jsx)(`stop`,{offset:s,stopColor:o.colors[n],stopOpacity:1}),(0,Y.jsx)(`stop`,{offset:s,stopColor:o.colors[n+1],stopOpacity:1})]},e.toString()+n)})})}var CQ=10;function wQ(e){let{gradientUnits:t,isReversed:n,gradientId:r,size:i,direction:a,scale:o,colorScale:s,colorMap:c}=e,l=[c.min??0,c.max??100],u=l.map(o).filter(e=>e!==void 0);if(u.length!==2)return null;let d=typeof l[0]==`number`?Ak(l[0],l[1]):kk(l[0],l[1]),f=Math.round((Math.max(...u)-Math.min(...u))/CQ),p=`${l[0]}-${l[1]}-`;return(0,Y.jsx)(`linearGradient`,{id:r,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${a}${n?1:2}`]:t===`objectBoundingBox`?1:`${i}px`,gradientUnits:t??`userSpaceOnUse`,children:Array.from({length:f+1},(e,t)=>{let r=d(t/f);if(r===void 0)return null;let a=o(r);if(a===void 0)return null;let c=n?1-a/i:a/i,l=s(r);return l===null?null:(0,Y.jsx)(`stop`,{offset:c,stopColor:l,stopOpacity:1},p+t)})})}var TQ=10,EQ=e=>e?{x1:`1`,x2:`0`,y1:`0`,y2:`0`}:{x1:`0`,x2:`1`,y1:`0`,y2:`0`};function DQ(e){let{isReversed:t,gradientId:n,colorScale:r,colorMap:i}=e,a=[i.min??0,i.max??100],o=typeof a[0]==`number`?Ak(a[0],a[1]):kk(a[0],a[1]),s=TQ,c=`${a[0]}-${a[1]}-`;return(0,Y.jsx)(`linearGradient`,J({id:n},EQ(t),{gradientUnits:`objectBoundingBox`,children:Array.from({length:11},(e,t)=>{let n=t/s,i=o(n);if(i===void 0)return null;let a=r(i);return a===null?null:(0,Y.jsx)(`stop`,{offset:n,stopColor:a,stopOpacity:1},c+t)})}))}function OQ(){let{top:e,height:t,bottom:n,left:r,width:i,right:a}=Gz(),o=e+t+n,s=r+i+a,c=KB(),l=qB(),{xAxis:u,xAxisIds:d}=kB(),{yAxis:f,yAxisIds:p}=AB(),{zAxis:m,zAxisIds:h}=LB(),g=p.filter(e=>f[e].colorMap!==void 0),_=d.filter(e=>u[e].colorMap!==void 0),v=h.filter(e=>m[e].colorMap!==void 0);return g.length===0&&_.length===0&&v.length===0?null:(0,Y.jsxs)(`defs`,{children:[g.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,colorScale:a,reverse:s}=f[e];return r?.type===`piecewise`?(0,Y.jsx)(SQ,{isReversed:!s,scale:i,colorMap:r,size:o,gradientId:t,direction:`y`},t):r?.type===`continuous`?(0,Y.jsxs)(b.Fragment,{children:[(0,Y.jsx)(wQ,{isReversed:!s,scale:i,colorScale:a,colorMap:r,size:o,gradientId:t,direction:`y`}),(0,Y.jsx)(DQ,{isReversed:s,colorScale:a,colorMap:r,gradientId:n})]},t):null}),_.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,reverse:a,colorScale:o}=u[e];return r?.type===`piecewise`?(0,Y.jsx)(SQ,{isReversed:a,scale:i,colorMap:r,size:s,gradientId:t,direction:`x`},t):r?.type===`continuous`?(0,Y.jsxs)(b.Fragment,{children:[(0,Y.jsx)(wQ,{isReversed:a,scale:i,colorScale:o,colorMap:r,size:s,gradientId:t,direction:`x`}),(0,Y.jsx)(DQ,{isReversed:a,colorScale:o,colorMap:r,gradientId:n})]},t):null}),v.map(e=>{let t=l(e),{colorMap:n,colorScale:r}=m[e];return n?.type===`continuous`?(0,Y.jsx)(DQ,{colorScale:r,colorMap:n,gradientId:t},t):null})]})}function kQ(e){return DC(`MuiChartsSvgLayer`,e)}var AQ=()=>eT({root:[`root`]},kQ);OC(`MuiChartsSvgLayer`,[`root`]);var jQ=[`children`,`className`],MQ=Z(`svg`,{name:`MuiChartsSvgLayer`,slot:`Root`})({width:`100%`,height:`100%`,position:`absolute`,inset:0}),NQ=b.forwardRef(function(e,t){let{store:n}=VR(),r=n.use(KP),i=n.use(qP),a=IE({props:e,name:`MuiChartsSvgLayer`}),{children:o,className:s}=a,c=WE(a,jQ),l=AQ(),u=i>0&&r>0;return(0,Y.jsxs)(MQ,J({viewBox:`0 0 ${r} ${i}`,className:wC(l.root,s)},c,{ref:t,"aria-hidden":!0,children:[(0,Y.jsx)(OQ,{}),u&&o]}))});function PQ(){let{instance:e}=VR(),t=RB(),n=WR(),r=b.useRef(!1),i=b.useRef(void 0);b.useEffect(()=>{let a=t.current;if(!a||!Object.values(n.state.seriesConfig.config).some(e=>e.getItemAtPosition!=null))return;function o(){r.current=!0}function s(){let t=i.current;t&&(i.current=void 0,e.removeTooltipItem(t),e.clearHighlight())}function c(){r.current=!1,s()}let l=function(t){let r=xL(a,t);if(!e.isPointInside(r.x,r.y)){s();return}let o;for(let e of Object.keys(n.state.seriesConfig.config))if(o=n.state.seriesConfig.config[e].getItemAtPosition?.(n.state,{x:r.x,y:r.y}),o)break;o?(e.setLastUpdateSource(`pointer`),e.setTooltipItem(o),e.setHighlight(o),i.current=o):s()};return a.addEventListener(`pointerleave`,c),a.addEventListener(`pointermove`,l),a.addEventListener(`pointerenter`,o),()=>{a.removeEventListener(`pointerenter`,o),a.removeEventListener(`pointermove`,l),a.removeEventListener(`pointerleave`,c),r.current&&c()}},[e,n,t,n.state.seriesConfig.config])}function FQ(){let e=WR(),t=e.use(KL),n=e.use(BN),r=zB(),{localeText:i}=jH(),{xAxis:a,xAxisIds:o}=kB(),{yAxis:s,yAxisIds:c}=AB(),{rotationAxis:l,rotationAxisIds:u}=NB(),{radiusAxis:d,radiusAxisIds:f}=PB();if(t===null)return null;let{type:p,seriesId:m}=t,h=r[p]?.series[m];if(!h)return null;let g=n[p]?.descriptionGetter;if(!g)return null;let _={identifier:t,series:h,localeText:i};if(pP(h)){let e=h.xAxisId??o[0],t=h.yAxisId??c[0];_.xAxis=a[e],_.yAxis=s[t]}else qz(p)&&(_.rotationAxis=l[u[0]],_.radiusAxis=d[f[0]]);return g(_)}var IQ={borderWidth:0,width:`100%`,height:`100%`,overflow:`hidden`,position:`absolute`,inset:0,padding:0,outline:`none`,pointerEvents:`none`};function LQ(){let e=FQ(),t=Kz(),n=b.useRef(null),r=b.useRef(0),i=b.useRef(null);return b.useEffect(()=>{let a=i.current;if(a){if(a.children.length===0){for(let e=0;e<2;e+=1){let n=document.createElement(`div`);n.setAttribute(`id`,e===0?`voiceover-${t}-1`:`voiceover-${t}-2`),n.style.display=`none`,a.appendChild(n)}for(let n=0;n<2;n+=1){let i=document.createElement(`div`);n===(r.current+1)%2&&e&&i.setAttribute(`tabindex`,`0`),i.setAttribute(`role`,`img`),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`aria-labelledby`,n===0?`voiceover-${t}-1`:`voiceover-${t}-2`),i.style.width=`100%`,i.style.height=`100%`,i.style.outline=`none`,a.appendChild(i)}}if(e&&e!==n.current){n.current=e;let i=r.current;r.current=(r.current+1)%2;let o=r.current,s=a.children[2+o],c=a.children[2+i],l=a.children[o],u=a.children[i];l.textContent=e??``,u.textContent=e??``,s.setAttribute(`aria-hidden`,`false`),s.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),e&&s.setAttribute(`tabindex`,`0`),c.setAttribute(`aria-hidden`,`true`),c.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),c.removeAttribute(`tabindex`),s.focus()}}},[e,t]),(0,Y.jsx)(`div`,{role:`none`,tabIndex:e?void 0:0,ref:i,style:IQ})}var RQ=[`children`,`title`,`desc`,`className`],zQ=Z(`div`,{name:`MuiChartsLayerContainer`,slot:`Root`})(({ownerState:e})=>({width:e.width??`100%`,height:e.height??`100%`,display:`flex`,position:`relative`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,touchAction:`pan-y`,userSelect:`none`,gridArea:`chart`,"&:focus":{outline:`none`}})),BQ=b.forwardRef(function(e,t){let{store:n,instance:r}=VR(),i=n.use(JP),a=n.use(YP),o=n.use(qL);PQ();let s=IE({props:e,name:`MuiChartsLayerContainer`}),{children:c,title:l,desc:u,className:d}=s,f=WE(s,RQ),p=xQ(),m=hE(RB(),t),h=Dw();return(0,Y.jsxs)(zQ,J({ref:m,ownerState:{width:i,height:a},role:`none`,"aria-label":l,"aria-describedby":u?h:void 0,className:wC(p.root,d)},f,{onPointerEnter:e=>{f.onPointerEnter?.(e),r.handlePointerEnter?.(e)},onPointerLeave:e=>{f.onPointerLeave?.(e),r.handlePointerLeave?.(e)},onClick:e=>{f.onClick?.(e),r.handleClick?.(e)},children:[o&&(0,Y.jsx)(LQ,{}),u&&(0,Y.jsx)(`span`,{id:h,style:{display:`none`},children:u}),c]}))}),VQ=[`children`,`className`,`title`,`desc`],HQ=b.forwardRef(function(e,t){let n=IE({props:e,name:`MuiChartsSurface`}),{children:r,className:i,title:a,desc:o}=n,s=WE(n,VQ),c=xQ();return(0,Y.jsx)(BQ,{className:wC(c.root,i),ref:t,title:a,desc:o,children:(0,Y.jsx)(NQ,J({},s,{children:r}))})}),UQ=OC(`MuiChartsToolbar`,[`root`]),WQ=[`children`,`sx`,`extendVertically`,`hideLegend`,`legendDirection`,`legendPosition`],GQ=e=>e?.horizontal===`start`?`start`:e?.horizontal===`end`?`end`:`center`,KQ=e=>e?.vertical===`top`?`flex-start`:e?.vertical===`bottom`?`flex-end`:`center`,qQ=(e,t,n)=>e?`"chart"`:t===`vertical`?n?.horizontal===`start`?`"legend chart"`:`"chart legend"`:n?.vertical===`bottom`?`"chart" +`,xX=typeof yX==`string`?null:mx` + animation: ${yX} 1.4s linear infinite; + `,SX=typeof bX==`string`?null:mx` + animation: ${bX} 1.4s ease-in-out infinite; + `,CX=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return tT({root:[`root`,n,`color${EE(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},_X,t)},wX=Z(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${EE(n.color)}`]]}})(wE(({theme:e})=>{let t=PE(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...FE(e,`transform`)}},{props:{variant:`indeterminate`},style:xX||{animation:`${yX} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter($W()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),TX=Z(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),EX=Z(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(wE(({theme:e})=>{let t=PE(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...FE(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:SX||{animation:`${bX} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),DX=Z(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(wE(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),OX=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=CX(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((vX-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,J.jsx)(wX,{className:Y(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,J.jsxs)(TX,{className:v.svg,ownerState:_,viewBox:`${vX/2} ${vX/2} ${vX} ${vX}`,children:[o?(0,J.jsx)(DX,{className:v.track,ownerState:_,cx:vX,cy:vX,r:(vX-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,J.jsx)(EX,{className:v.circle,style:y,ownerState:_,cx:vX,cy:vX,r:(vX-d)/2,fill:`none`,strokeWidth:d})]})})});function kX(e){return DC(`MuiIconButton`,e)}var AX=OC(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),jX=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return tT({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${EE(r)}`,i&&`edge${EE(i)}`,`size${EE(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},kX,t)},MX=Z(hX,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${EE(n.color)}`],n.edge&&t[`edge${EE(n.edge)}`],t[`size${EE(n.size)}`]]}})(wE(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...FE(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),wE(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter($W()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${AX.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${AX.loading}`]:{color:`transparent`}}))),NX=Z(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),PX=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=DY(u),h=f??(0,J.jsx)(OX,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=jX(g);return(0,J.jsxs)(MX,{id:d?m:u,className:Y(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,J.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,J.jsx)(NX,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function FX(e){return DC(`MuiButton`,e)}var IX=OC(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),LX=b.createContext({}),RX=b.createContext(void 0),zX=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=tT({root:[`root`,o&&`loading`,a,`size${EE(i)}`,`color${EE(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${EE(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},FX,c);return{...c,...l}},BX=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],VX=Z(hX,{shouldForwardProp:e=>CE(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${EE(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(wE(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...FE(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${IX.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${IX.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${IX.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${IX.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter($W()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${IX.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${IX.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...FE(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${IX.loading}`]:{color:`transparent`}}}]}})),HX=Z(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...FE(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...BX]})),UX=Z(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...FE(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...BX]})),WX=Z(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),GX=Z(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),KX=b.forwardRef(function(e,t){let n=b.useContext(LX),r=b.useContext(RX),i=TE({props:BC(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:x,type:S,variant:C=`text`,...w}=i,T=DY(h),E=_??(0,J.jsx)(OX,{"aria-labelledby":T,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:E,loadingPosition:v,size:y,type:S,variant:C},O=zX(D),k=(x||g&&v===`start`)&&(0,J.jsx)(HX,{className:O.startIcon,ownerState:D,children:x||(0,J.jsx)(GX,{className:O.loadingIconPlaceholder,ownerState:D})}),ee=(f||g&&v===`end`)&&(0,J.jsx)(UX,{className:O.endIcon,ownerState:D,children:f||(0,J.jsx)(GX,{className:O.loadingIconPlaceholder,ownerState:D})}),te=r||``,A=typeof g==`boolean`?(0,J.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,J.jsx)(WX,{className:O.loadingIndicator,ownerState:D,children:E})}):null,{root:ne,...re}=O;return(0,J.jsxs)(VX,{ownerState:D,className:Y(n.className,O.root,c,te),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:Y(O.focusVisible,p),ref:t,internalNativeButton:!0,type:S,id:g?T:h,...w,classes:re,children:[k,v!==`end`&&A,a,v===`end`&&A,ee]})}),qX=b.createContext({}),JX=b.createContext(void 0);function YX(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}var XX=b.createContext(void 0);function ZX(){let e=b.useContext(XX);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var QX=Object.is;function $X(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!QX(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var eZ=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function tZ(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=hZ,wrap:o=!0}=e,[s,c]=b.useState(t),[l,u]=b.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=b.useRef(null),p=b.useRef(new Map),[m,h]=b.useState(0),g=b.useMemo(()=>fZ(p.current),[m]),_=rZ(d,g,a,n),v=b.useRef(_);v.current=_;let y=b.useCallback(()=>{let e=fZ(p.current);return lZ(e,rZ(v.current,e,a,n))},[n,a]),x=b.useCallback(()=>p.current,[]),S=_E(e=>{$X(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),C=_E(e=>{p.current.delete(e)&&h(e=>e+1)}),w=_E(e=>{c(e)}),T=b.useCallback(e=>v.current===e,[]),E=b.useCallback((e,t,n,r)=>{let i=sZ(pZ(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=b.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=pZ(p.current),r=dZ(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!eZ.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=pZ(p.current),c=OE(vE(f.current)),l=c===f.current,u=oZ(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}E(u,d,o)},ref:vZ(e,e=>{f.current=e})}),[E,i,r,o]),O=b.useCallback(e=>{let t=pZ(p.current),n=OE(vE(f.current)),r=n===f.current?-1:oZ(t,n,v.current);return E(r,`next`,!0,e)?.id??null},[E]);return b.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:x,isItemActive:T,registerItem:S,setActiveItemId:w,unregisterItem:C}),[_,O,y,D,x,T,S,w,C])}function nZ(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=ZX(),i=b.useRef(null),a=b.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=b.useRef(a);o.current=a;let s=b.useCallback(t=>{if(i.current=t,t==null){queueMicrotask(()=>{i.current??r(e.id)});return}n({...o.current,element:t})},[e.id,n,r]),c=gE(e.ref,s);return UC(()=>{i.current&&n({...a,element:i.current})},[a,n]),UC(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function rZ(e,t,n,r){return e==null?aZ(t,n,r):iZ(e,t,n)}function iZ(e,t,n){let r=uZ(t,e);return r===-1?cZ(t,n):n(t[r])?t[r].id:sZ(t,r,`next`,!1,n)?.id??null}function aZ(e,t,n){let r=n?.(e);if(r!=null){let n=lZ(e,r);if(n&&t(n))return n.id}return cZ(e,t)}function oZ(e,t,n){if(t){let n=dZ(e,t);if(n!==-1)return n}return uZ(e,n)}function sZ(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=mZ(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=mZ(s,a,n,r);else return t}return null}function cZ(e,t){return e.find(e=>t(e))?.id??null}function lZ(e,t){return t==null?null:e.find(e=>e.id===t)??null}function uZ(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function dZ(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function fZ(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(gZ).sort((e,t)=>_Z(e.element,t.element)),r=t.filter(e=>!gZ(e));return[...n,...r]}function pZ(e){return fZ(e).filter(gZ)}function mZ(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function hZ(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function gZ(e){return e.element!=null&&e.element.isConnected}function _Z(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function vZ(...e){return t=>{e.forEach(e=>{kq(e??null,t)})}}function yZ(e,t){let{children:n,disabled:r=!1,selected:i=!1,value:a}=e,o=ZX(),s=nZ({id:a,ref:t,disabled:r,selected:i}),c=o.getItemMap().size===0&&i?0:s.tabIndex;return b.cloneElement(b.Children.only(n),{...s,tabIndex:n.props.tabIndex??c})}var bZ=b.forwardRef(yZ),xZ=e=>{let{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:o}=e;return tT({root:[`root`,r&&`selected`,i&&`disabled`,n&&`fullWidth`,`size${EE(a)}`,o]},IE,t)},SZ=Z(hX,{name:`MuiToggleButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`size${EE(n.size)}`]]}})(wE(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${LE.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:`none`,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[{props:{color:`standard`},style:{[`&.${LE.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter($W()).map(([t])=>({props:{color:t},style:{[`&.${LE.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),CZ=b.forwardRef(function(e,t){let{value:n,isRovingTabIndex:r,...i}=b.useContext(qX),a=b.useContext(JX),o=TE({props:BC({...i,selected:YX(e.value,n)},e),name:`MuiToggleButton`}),{children:s,className:c,color:l=`standard`,disabled:u=!1,disableFocusRipple:d=!1,fullWidth:f=!1,onChange:p,onClick:m,selected:h,size:g=`medium`,value:_,...v}=o,y={...o,color:l,disabled:u,disableFocusRipple:d,fullWidth:f,size:g},x=xZ(y),S=e=>{m&&(m(e,_),e.defaultPrevented)||p&&p(e,_)},C=a||``,w=(0,J.jsx)(SZ,{className:Y(i.className,x.root,c,C),internalNativeButton:!0,disabled:u,focusRipple:!d,ref:r?void 0:t,onClick:S,onChange:p,value:_,ownerState:y,"aria-pressed":h,...v,children:s});return r?(0,J.jsx)(bZ,{disabled:u,selected:h,ref:t,value:_,children:w}):w});function wZ(e){return b.Children.toArray(e).filter(e=>b.isValidElement(e))}function TZ(e){return DC(`MuiToggleButtonGroup`,e)}var EZ=OC(`MuiToggleButtonGroup`,[`root`,`selected`,`horizontal`,`vertical`,`disabled`,`grouped`,`fullWidth`,`firstButton`,`lastButton`,`middleButton`]),DZ=e=>{let{classes:t,orientation:n,fullWidth:r,disabled:i}=e;return tT({root:[`root`,n,r&&`fullWidth`],grouped:[`grouped`,i&&`disabled`],firstButton:[`firstButton`],lastButton:[`lastButton`],middleButton:[`middleButton`]},TZ,t)},OZ=Z(`div`,{name:`MuiToggleButtonGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${EZ.grouped}`]:t.grouped},{[`& .${EZ.firstButton}`]:t.firstButton},{[`& .${EZ.lastButton}`]:t.lastButton},{[`& .${EZ.middleButton}`]:t.middleButton},t.root,n.orientation===`vertical`&&t.vertical,n.fullWidth&&t.fullWidth]}})(wE(({theme:e})=>({display:`inline-flex`,borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{orientation:`vertical`},style:{flexDirection:`column`,[`& .${EZ.grouped}`]:{[`&.${EZ.selected} + .${EZ.grouped}.${EZ.selected}`]:{borderTop:0,marginTop:0}},[`& .${EZ.firstButton},& .${EZ.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${EZ.lastButton},& .${EZ.middleButton}`]:{marginTop:-1,borderTop:`1px solid transparent`,borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${EZ.lastButton}.${LE.disabled},& .${EZ.middleButton}.${LE.disabled}`]:{borderTop:`1px solid transparent`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{orientation:`horizontal`},style:{[`& .${EZ.grouped}`]:{[`&.${EZ.selected} + .${EZ.grouped}.${EZ.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${EZ.firstButton},& .${EZ.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${EZ.lastButton},& .${EZ.middleButton}`]:{marginLeft:-1,borderLeft:`1px solid transparent`,borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${EZ.lastButton}.${LE.disabled},& .${EZ.middleButton}.${LE.disabled}`]:{borderLeft:`1px solid transparent`}}}]}))),kZ=q({},{baseButton:KX,baseIconButton:PX,baseToggleButton:CZ,baseToggleButtonGroup:b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiToggleButtonGroup`}),{children:r,className:i,color:a=`standard`,disabled:o=!1,exclusive:s=!1,fullWidth:c=!1,onChange:l,orientation:u=`horizontal`,size:d=`medium`,value:f,...p}=n,m={...n,disabled:o,fullWidth:c,orientation:u,size:d},h=DZ(m),g=yw(),_=b.useCallback((e,t)=>{if(!l)return;let n=f&&f.indexOf(t),r;f&&n>=0?(r=f.slice(),r.splice(n,1)):r=f?f.concat(t):[t],l(e,r)},[l,f]),v=b.useCallback((e,t)=>{l&&l(e,f===t?null:t)},[l,f]),y=b.useMemo(()=>({className:h.grouped,onChange:s?v:_,value:f,size:d,fullWidth:c,color:a,disabled:o,isRovingTabIndex:!0}),[h.grouped,s,v,_,f,d,c,a,o]),x=wZ(r),S=x.length,C=e=>{let t=e===0,n=e===S-1;return t&&n?``:t?h.firstButton:n?h.lastButton:h.middleButton},w=tZ({orientation:u,isRtl:g}),T=w.getContainerProps(t,p.onFocus,p.onKeyDown);return(0,J.jsx)(OZ,{role:`group`,className:Y(h.root,i),ownerState:m,...p,...T,children:(0,J.jsx)(XX.Provider,{value:w,children:(0,J.jsx)(qX.Provider,{value:y,children:x.map((e,t)=>(0,J.jsx)(JX.Provider,{value:C(t),children:e},t))})})})})},{}),AZ=b.createContext(null);function jZ(e){let{slots:t,slotProps:n={},defaultSlots:r,children:i}=e,a=b.useMemo(()=>({slots:q({},r,t),slotProps:n}),[r,t,n]);return(0,J.jsx)(AZ.Provider,{value:a,children:i})}function MZ(e){let t=1/0,n=-1/0;for(let r of e??[])rn&&(n=r);return[t,n]}var NZ=(e,t)=>t===`x`?{x:e,y:null}:{x:null,y:e},PZ=e=>{let{axis:t,getFilters:n,isDefaultAxis:r}=e,i=n?.({currentAxisId:t.id,isDefaultAxis:r});return MZ((i?t.data?.filter((e,t)=>i({x:null,y:null},t)):t.data)??[])},FZ=e=>t=>{let{series:n,axis:r,getFilters:i,isDefaultAxis:a}=t;return Object.keys(n).filter(t=>{let i=e===`x`?n[t].xAxisId:n[t].yAxisId;return r.domainSeries===`visible`&&n[t].hidden?!1:i===r.id||a&&i===void 0}).reduce((t,o)=>{let{stackedData:s,visibleStackedData:c}=n[o],l=i?.({currentAxisId:r.id,isDefaultAxis:a,seriesXAxisId:n[o].xAxisId,seriesYAxisId:n[o].yAxisId}),[u,d]=(r.domainSeries===`visible`?c:s)?.reduce((t,n,r)=>l&&(!l(NZ(n[0],e),r)||!l(NZ(n[1],e),r))?t:[Math.min(...n,t[0]),Math.max(...n,t[1])],[1/0,-1/0])??[1/0,-1/0];return[Math.min(u,t[0]),Math.max(d,t[1])]},[1/0,-1/0])},IZ=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?FZ(`x`)(e):PZ(e),LZ=e=>Object.keys(e.series).some(t=>e.series[t].layout===`horizontal`)?PZ(e):FZ(`y`)(e);function RZ(e,t){if(e.length===0)return;let n=e.length,r=t,i=e[r[0]].length;for(let t=0;t0?(s[0]=i,i+=c,s[1]=i):c<0?(s[1]=a,a+=c,s[0]=a):s.data[n.key]>0?(s[0]=i,s[1]=i):s.data[n.key]<0?(s[1]=a,s[0]=a):(s[0]=0,s[1]=0)}}}var zZ={appearance:CH,ascending:TH,descending:DH,insideOut:OH,none:gH,reverse:kH},BZ={expand:bH,diverging:RZ,none:hH,silhouette:xH,wiggle:SH},VZ=e=>{let{series:t,seriesOrder:n,defaultStrategy:r}=e,i=[],a={};return n.forEach(e=>{let{stack:n,stackOrder:o,stackOffset:s}=t[e];n===void 0?i.push({ids:[e],stackingOrder:zZ.none,stackingOffset:BZ.none}):a[n]===void 0?(a[n]=i.length,i.push({ids:[e],stackingOrder:zZ[o??r?.stackOrder??`none`],stackingOffset:BZ[s??r?.stackOffset??`diverging`]})):(i[a[n]].ids.push(e),o!==void 0&&(i[a[n]].stackingOrder=zZ[o]),s!==void 0&&(i[a[n]].stackingOffset=BZ[s]))}),i},HZ=e=>e==null?``:e.toLocaleString(),UZ=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a=VZ(e),o=t??[];r.forEach(e=>{let n=i[e].data;n===void 0?i[e].valueGetter&&t&&t.forEach((t,n)=>{let r=i[e].valueGetter(t);o.length<=n?o.push({[e]:r}):o[n][e]=r}):n.forEach((t,n)=>{o.length<=n?o.push({[e]:t}):o[n][e]=t})});let s={};return a.forEach(e=>{let{ids:r,stackingOffset:a,stackingOrder:c}=e,l=r.map(e=>{let t=i[e].dataKey;return i[e].data===void 0&&t!==void 0?t:e}),u=yH().keys(l).value((e,t)=>e[t]??0).order(c).offset(a)(o),d=u.map(e=>e.index),f=yH().keys(l).value((e,t)=>{let i=l.indexOf(t),a=r[i];return n?.({type:`bar`,seriesId:a})?e[t]??0:0}).order(()=>d).offset(a)(o);r.forEach((e,r)=>{let{dataKey:a,valueGetter:o}=i[e],c;c=o?t.map(e=>o(e)):a?t.map(e=>{let t=e[a];return typeof t==`number`?t:null}):i[e].data;let l=!n?.({type:`bar`,seriesId:e});s[e]=q({layout:`vertical`,labelMarkType:`square`,minBarSize:0,valueFormatter:i[e].valueFormatter??HZ},i[e],{data:c,hidden:l,stackedData:u[r],visibleStackedData:f[r]})})}),{seriesOrder:r,stackingGroups:a,series:s}};function WZ(e,t,n){let{seriesOrder:r,series:i}=t;return r.reduce((t,r)=>{let a=wG(i[r].label,`legend`);return a===void 0||t.push({type:e,markType:i[r].labelMarkType??n,seriesId:r,color:i[r].color,label:a}),t},[])}var GZ=e=>WZ(`bar`,e),KZ=(e,t,n)=>{let r=e.layout===`vertical`;return GU({series:e,valueColorScale:r?n?.colorScale:t?.colorScale,categoryColorScale:r?t?.colorScale:n?.colorScale,categoryValues:r?t?.data:n?.data})};function qZ(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null)}).map(e=>({type:t,seriesId:e}))})}function JZ(e,t,n,r){let i=qZ(e,t);if(i.length===0)return null;let a=n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1;return a<=0?i[i.length-1]:i[(a-1+i.length)%i.length]}function YZ(e,t){return Object.keys(e).filter(e=>t.has(e)).flatMap(t=>{let n=e[t];return n.seriesOrder.filter(e=>{let t=n.series[e];return`hidden`in t&&t.hidden?!1:t.data.length>0&&t.data.some(e=>e!=null&&!(typeof e==`object`&&`hidden`in e&&e.hidden))}).map(e=>n.series[e].data.length)}).reduce((e,t)=>Math.max(e,t),0)}function XZ(e,t,n,r){let i=qZ(e,t);return i.length===0?null:i[((n!==void 0&&r!==void 0?i.findIndex(e=>e.type===n&&e.seriesId===r):-1)+1)%i.length]}function ZZ({processedSeries:e,type:t,seriesId:n,startIndex:r,dataLength:i,direction:a,allowCycles:o}){if(i<=0)return null;let s=e[t]?.series[n];if(s&&`hidden`in s&&s.hidden)return null;let c=s?.data,l=e=>{if(!c)return!1;let t=c[e];return typeof t==`object`&&!!t&&`hidden`in t&&!!t.hidden},u=r;for(let e=0;e=0&&u=i)return null;u=e}}return null}function QZ(e,t,n){if(t===`sankey`)return!1;let r=e[t]?.series[n]?.data;return r!=null&&r.length>0}function $Z(e,t,n){let r=e[t]?.series[n];return!!(r&&`hidden`in r&&r.hidden)}function eQ(e,t=!1,n=!0){return function(r,i){let a=nP(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!QZ(a,s,o)||$Z(a,s,o)){let t=XZ(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:YZ(a,e),l=r?.dataIndex==null?0:r.dataIndex+1;t?l%=c:l=Math.min(c-1,l);let u=ZZ({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function tQ(e,t=!1,n=!0){return function(r,i){let a=nP(i),o=r?.seriesId,s=r?.type;if(!s||o==null||!QZ(a,s,o)||$Z(a,s,o)){let t=JZ(a,e,s,o);if(t===null)return null;s=t.type,o=t.seriesId}let c=n?a[s]?.series[o]?.data.length??0:YZ(a,e),l=r?.dataIndex==null?c-1:r.dataIndex-1;l=t?(c+l)%c:Math.max(0,l);let u=ZZ({processedSeries:a,type:s,seriesId:o,startIndex:l,dataLength:c,direction:-1,allowCycles:t});return u===null?null:{type:s,seriesId:o,dataIndex:u}}}function nQ(e){return function(t,n){let r=nP(n),i=t?.seriesId,a=t?.type,o=XZ(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?0:Math.min(t.dataIndex,s.length-1),l=ZZ({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function rQ(e){return function(t,n){let r=nP(n),i=t?.seriesId,a=t?.type,o=JZ(r,e,a,i);if(o===null)return null;a=o.type,i=o.seriesId;let s=r[a].series[i].data,c=t?.dataIndex==null?s.length-1:Math.min(t.dataIndex,s.length-1),l=ZZ({processedSeries:r,type:a,seriesId:i,startIndex:c,dataLength:s.length,direction:-1,allowCycles:!0});return l===null?null:{type:a,seriesId:i,dataIndex:l}}}function iQ(e,t,n){return r=>{switch(r.key){case`ArrowRight`:return eQ(e,t,n);case`ArrowLeft`:return tQ(e,t,n);case`ArrowDown`:return rQ(e);case`ArrowUp`:return nQ(e);default:return null}}}var aQ=iQ(kG,!1,!1);function oQ(e,t={}){let{series:n,getColor:r,identifier:i}=e;if(!i||i.dataIndex===void 0)return null;let a=wG(n.label,`tooltip`),o=n.data[i.dataIndex];if(t.skipNullValues&&o==null)return null;let s=n.valueFormatter(o,{dataIndex:i.dataIndex});return q({identifier:i,color:r(i.dataIndex),label:a,value:o,formattedValue:s,markType:n.labelMarkType},t.includeMarkShape&&`showMark`in n&&{markShape:n.showMark?n.shape:void 0})}var sQ=e=>oQ(e,{skipNullValues:!0}),cQ=e=>Object.values(e).map(e=>e.layout===`horizontal`?{direction:`y`,axisId:e.yAxisId}:{direction:`x`,axisId:e.xAxisId});function lQ(e,t,n){let r=e&&t>0||!e&&t<0;return n?!r:r}function uQ(e){let{verticalLayout:t,xAxisConfig:n,yAxisConfig:r,series:i,numberOfGroups:a}=e,o=t?n:r,s=(t?r.reverse:n.reverse)??!1,{barWidth:c,offset:l}=gR(o.scale.bandwidth(),a,o.barGapRatio),u=n.scale,d=r.scale;return function(e,n){let r=n*(c+l),a=o.data[e],f=i.data[e];if(f==null)return null;let[p,m]=MZ(i.visibleStackedData[e].map(e=>t?d(e):u(e))).map(e=>Math.round(e)),h=0;f!==0&&(i.hidden||(h=Math.max(i.minBarSize,m-p)));let g=lQ(t,f,s),_=0;return _=g?m-h:p,{x:t?u(a)+r:_,y:t?_:d(a)+r,height:t?h:c,width:t?c:h}}}var dQ=$(UR,nP,fL,pL,function(e,t,n,r,i){if(!e||e.type!==`bar`||e.dataIndex===void 0)return null;let a=t.bar?.series[e.seriesId];if(!t.bar||!a)return null;let o=n.axis[a.xAxisId??n.axisIds[0]],s=r.axis[a.yAxisId??r.axisIds[0]];if(!o||!s)return null;let c=t.bar.stackingGroups.findIndex(e=>e.ids.includes(a.id)),l=uQ({verticalLayout:a.layout===`vertical`,xAxisConfig:o,yAxisConfig:s,series:a,numberOfGroups:t.bar.stackingGroups.length})(e.dataIndex,c);if(l==null)return null;let{x:u,y:d,width:f,height:p}=l;switch(i){case`right`:return{x:u+f,y:d+p/2};case`bottom`:return{x:u+f/2,y:d+p};case`left`:return{x:u,y:d+p/2};default:return{x:u+f/2,y:d}}});function fQ(e,t,n){return q({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]})}var pQ=e=>`Type(${e})`,mQ=e=>`Series(${e})`,hQ=e=>e===void 0?``:`Index(${e})`,gQ=e=>`${pQ(e.type)}${mQ(e.seriesId)}${hQ(e.dataIndex)}`,_Q=e=>({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),vQ={seriesProcessor:UZ,colorProcessor:KZ,legendGetter:GZ,tooltipGetter:sQ,selectorTooltipItemPosition:dQ,axisTooltipGetter:cQ,xExtremumGetter:IZ,yExtremumGetter:LZ,getSeriesWithDefaultValues:fQ,getItemAtPosition:yR,identifierSerializer:gQ,identifierCleaner:_Q,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=wG(n.label,`tooltip`),s=n.data[t.dataIndex]??null,c=n.layout===`horizontal`?i:r,l=c.data?.[t.dataIndex]??null,u=n.valueFormatter(s,{dataIndex:t.dataIndex}),d=c.valueFormatter?.(l,{location:`tooltip`,scale:c.scale});return a.barDescription({value:s,formattedValue:u??``,categoryValue:l,formattedCategoryValue:d??``,seriesLabel:o})},keyboardFocusHandler:aQ,isHighlightedCreator:fz,isFadedCreator:mz},yQ=e=>{let{axis:t}=e;return MZ(t.data??[])};function bQ(e,t,n,r){return n.reduce((n,i,a)=>{if(t[a]===null)return n;let[o,s]=e(i);return r&&(!r({y:o,x:null},a)||!r({y:s,x:null},a))?n:[Math.min(o,s,n[0]),Math.max(o,s,n[1])]},[1/0,-1/0])}var xQ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e;return Object.keys(t).filter(e=>{if(n.domainSeries===`visible`&&t[e].hidden)return!1;let i=t[e].yAxisId;return i===n.id||r&&i===void 0}).reduce((e,a)=>{let{area:o,stackedData:s,visibleStackedData:c,data:l}=t[a],u=o!==void 0,d=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),[f,p]=bQ(u&&n.scaleType!==`log`&&typeof t[a].baseline!=`string`?e=>e:e=>[e[1],e[1]],l,n.domainSeries===`visible`?c:s,d);return[Math.min(f,e[0]),Math.max(p,e[1])]},[1/0,-1/0])},SQ=[`circle`,`square`,`diamond`,`cross`,`star`,`triangle`,`wye`],CQ=e=>e==null?``:e.toLocaleString();function wQ(e,t,n,r){let{seriesOrder:i,series:a}=e,o=VZ(q({},e,{defaultStrategy:{stackOffset:`none`}})),s=new Map,c=t??[];i.forEach((e,n)=>{s.set(e,n);let r=a[e].data;r===void 0?a[e].valueGetter&&t&&t.forEach((t,n)=>{let r=a[e].valueGetter(t);c.length<=n?c.push({[e]:r}):c[n][e]=r}):r.forEach((t,n)=>{c.length<=n?c.push({[e]:t}):c[n][e]=t})});let l={};return o.forEach(e=>{let{ids:i,stackingOffset:o,stackingOrder:u}=e,d=i.map(e=>{let t=a[e].dataKey;return a[e].data===void 0&&t!==void 0?t:e}),f=yH().keys(d).value((e,t)=>e[t]??0).order(u).offset(o)(c),p=f.map(e=>e.index),m=yH().keys(d).value((e,t)=>{let a=d.indexOf(t),o=i[a];return n?.({type:r,seriesId:o})?e[t]??0:0}).order(()=>p).offset(o)(c);i.forEach((e,i)=>{let{dataKey:o,valueGetter:c}=a[e],u;u=c?t.map(e=>c(e)):o?t.map(e=>{let t=e[o];return typeof t==`number`?t:null}):a[e].data;let d=!n?.({type:r,seriesId:e});l[e]=q({labelMarkType:`line+mark`},a[e],{shape:a[e].shape??SQ[(s.get(e)??0)%SQ.length],data:u,valueFormatter:a[e].valueFormatter??CQ,hidden:d,stackedData:f[i],visibleStackedData:m[i]})})}),{seriesOrder:i,stackingGroups:o,series:l}}var TQ=(e,t,n)=>wQ(e,t,n,`line`),EQ=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>{let r=wG(n[t].label,`legend`);return r===void 0||e.push({type:`line`,markType:n[t].labelMarkType,markShape:n[t].showMark?n[t].shape??`circle`:void 0,seriesId:t,color:n[t].color,label:r}),e},[])},DQ=e=>oQ(e,{includeMarkShape:!0}),OQ=e=>Object.values(e).map(e=>({direction:`x`,axisId:e.xAxisId})),kQ=(e,t,n)=>q({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length],curve:e.curve??`monotoneX`}),AQ=$(UR,nP,fL,pL,function(e,t,n,r){if(!e||e.type!==`line`||e.dataIndex===void 0)return null;let i=t.line?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=a.data?.[e.dataIndex],c=i.data[e.dataIndex]==null?null:i.visibleStackedData[e.dataIndex][1];return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}});function jQ(e){return`cpx1`in e}var MQ=class{segments=[];cx=0;cy=0;moveTo(e,t){this.cx=e,this.cy=t}lineTo(e,t){this.segments.push({x0:this.cx,y0:this.cy,x1:e,y1:t}),this.cx=e,this.cy=t}bezierCurveTo(e,t,n,r,i,a){this.segments.push({x0:this.cx,y0:this.cy,cpx1:e,cpy1:t,cpx2:n,cpy2:r,x1:i,y1:a}),this.cx=i,this.cy=a}closePath(){}};function NQ(e,t){let n=e.x1-e.x0;if(n===0)return e.y0;let r=e.y1-e.y0;if(!jQ(e))return e.y0+r*(t-e.x0)/n;let i=(e.cpx1-e.x0)/n,a=(e.cpx2-e.x0)/n,o=Sz(i,r===0?0:(e.cpy1-e.y0)/r,a,r===0?0:(e.cpy2-e.y0)/r),s=(t-e.x0)/n;return e.y0+r*o(s)}function PQ(e,t,n){if(e.length===0)return null;if(e.length===1)return e[0].y;let r=new MQ,i=vU(n)(r),a=e[0].x>t,o=0,s=!1;i.lineStart();for(let n of e)!s&&n.x>t!==a&&(o=Math.max(0,r.segments.length-1),s=!0),i.point(n.x,n.y);i.lineEnd();for(let e=o;en.x0-.5)return n.y0;if(tn.x1-.5)return n.y1;let i=Math.min(n.x0,n.x1),a=Math.max(n.x0,n.x1);if(t>=i&&t<=a)return NQ(n,t)}return null}function FQ(e,t){let{scale:n,data:r}=e;if(!r||r.length===0)return null;if(cI(n)){let n=xL(e,t);return n===-1?null:xR(e.scale)(r[n])<=t?n===r.length-1?null:{left:n,right:n+1}:n===0?null:{left:n-1,right:n}}let i=yL(n.invert(t)),a=-1;for(let e=0;e0&&e[s-1]!=null;)--s;let c=i;for(;cC(S[e]),e=>{let t=_[e];return t?p.scale(t[1]):null},h,g,y);if(w.length<2)continue;let T=PQ(w,t.x,b);if(T==null)continue;let E=Math.abs(t.y-T);E=0;--e){let r=d[e].ids;for(let e=0;ew(T[e]),D=LQ(v,E,e=>{let t=_[e];return t?C(t[1]):null},h,g,y),O=LQ(v,E,e=>{let t=_[e];return t?IQ(b,C,t[0]):null},h,g,y);if(D.length<2||O.length<2)continue;let k=PQ(D,t.x,x),ee=PQ(O,t.x,x);if(k==null||ee==null)continue;let te=Math.min(ee,k),A=Math.max(ee,k);if(t.y>=te&&t.y<=A){let e=xL(f,t.x);return{type:`line`,seriesId:a,dataIndex:e===-1?h:e}}}}return u}var BQ={colorProcessor:KU,seriesProcessor:TQ,legendGetter:EQ,tooltipGetter:DQ,selectorTooltipItemPosition:AQ,axisTooltipGetter:OQ,xExtremumGetter:yQ,yExtremumGetter:xQ,getSeriesWithDefaultValues:kQ,getItemAtPosition:zQ,keyboardFocusHandler:iQ(kG,!1,!1),identifierSerializer:gQ,identifierCleaner:_Q,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,localeText:i}=e,a=wG(n.label,`tooltip`),o=t.dataIndex;if(o===void 0)return``;let s=r.data?.[o]??null,c=n.data[o]??null,l=r.valueFormatter?.(s,{location:`tooltip`,scale:r.scale}),u=n.valueFormatter(c,{dataIndex:o});return i.lineDescription({x:s,y:c,formattedXValue:l??``,formattedYValue:u??``,seriesLabel:a})},isHighlightedCreator:fz,isFadedCreator:mz},VQ=(e=`none`)=>{if(typeof e==`function`)return e;switch(e){case`none`:return null;case`desc`:return(e,t)=>t-e;case`asc`:return(e,t)=>e-t;default:return null}},HQ=(e,t,n)=>{let{seriesOrder:r,series:i}=e,a={};return r.forEach(e=>{let t=i[e].data.filter((t,r)=>n?.({type:`pie`,seriesId:e,dataIndex:r})),r=TV().startAngle(lO(i[e].startAngle??0)).endAngle(lO(i[e].endAngle??360)).padAngle(lO(i[e].paddingAngle??0)).sortValues(VQ(i[e].sortingValues??`none`))(t.map(e=>e.value)),o=0;a[e]=q({labelMarkType:`circle`,valueFormatter:e=>e.value.toLocaleString()},i[e],{data:i[e].data.map((t,a)=>{let s=t.id??`auto-generated-pie-id-${e}-${a}`,c=!n?.({type:`pie`,seriesId:e,dataIndex:a}),l;if(c){let n=o>0?r[o-1].endAngle:lO(i[e].startAngle??0);l={startAngle:n,endAngle:n,padAngle:0,value:t.value,index:a}}else l=r[o],o+=1;let u=q({},t,{id:s,hidden:c},l);return q({labelMarkType:`circle`},u,{formattedValue:i[e].valueFormatter?.(q({},u,{label:wG(u.label,`arc`)}),{dataIndex:a})??u.value.toLocaleString()})})})}),{seriesOrder:r,series:a}},UQ=e=>t=>e.data[t].color,WQ=e=>{let{seriesOrder:t,series:n}=e;return t.reduce((e,t)=>(n[t].data.forEach((r,i)=>{let a=wG(r.label,`legend`);a!==void 0&&e.push({type:`pie`,markType:r.labelMarkType??n[t].labelMarkType,seriesId:t,dataIndex:i,color:r.color,label:a})}),e),[])},GQ=e=>{let{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;let i=t.data[r.dataIndex];if(i==null)return null;let a=wG(i.label,`tooltip`),o=q({},i,{label:a}),s=t.valueFormatter(o,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:a,value:o,formattedValue:s,markType:i.labelMarkType??t.labelMarkType}};function KQ(e,t){let{height:n,width:r}=t,{cx:i,cy:a}=e,o=Math.min(r,n)/2;return{cx:aB(i??`50%`,r),cy:aB(a??`50%`,n),availableRadius:o}}var qQ={colorProcessor:UQ,seriesProcessor:HQ,seriesLayout:(e,t)=>{let n={};for(let r of e.seriesOrder){let{innerRadius:i,outerRadius:a,arcLabelRadius:o,cx:s,cy:c}=e.series[r],{cx:l,cy:u,availableRadius:d}=KQ({cx:s,cy:c},{width:t.width,height:t.height}),f=aB(a??d,d),p=aB(i??0,d);n[r]={radius:{available:d,inner:p,outer:f,label:o===void 0?(p+f)/2:aB(o,d)},center:{x:t.left+l,y:t.top+u}}}return n},legendGetter:WQ,tooltipGetter:GQ,selectorTooltipItemPosition:$(UR,nP,cF,function(e,t,n,r){if(!e||e.type!==`pie`||e.dataIndex===void 0)return null;let i=t.pie?.series[e.seriesId],a=n.pie?.[e.seriesId];if(i==null||a==null)return null;let{center:o,radius:s}=a,{data:c}=i,l=c[e.dataIndex];if(!l)return null;let u=[[s.inner,l.startAngle],[s.inner,l.endAngle],[s.outer,l.startAngle],[s.outer,l.endAngle]].map(([e,t])=>({x:o.x+e*Math.sin(t),y:o.y-e*Math.cos(t)})),[d,f]=MZ(u.map(e=>e.x)),[p,m]=MZ(u.map(e=>e.y));switch(r){case`bottom`:return{x:(f+d)/2,y:m};case`left`:return{x:d,y:(m+p)/2};case`right`:return{x:f,y:(m+p)/2};default:return{x:(f+d)/2,y:p}}}),getSeriesWithDefaultValues:(e,t,n)=>q({},e,{id:e.id??`auto-generated-id-${t}`,data:e.data.map((e,t)=>q({},e,{color:e.color??n[t%n.length]}))}),keyboardFocusHandler:iQ(new Set([`pie`])),identifierSerializer:gQ,identifierCleaner:_Q,descriptionGetter:e=>{let{identifier:t,series:n,localeText:r}=e,i=n.data[t.dataIndex],a=wG(i?.label,`tooltip`),o=i?.value??null,s=i?.formattedValue??``,c=n.data.reduce((e,t)=>e+(t?.value??0),0);return r.pieDescription({value:o,totalValue:c,formattedValue:s,seriesLabel:a})},isHighlightedCreator:fz,isFadedCreator:mz},JQ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].xAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;eo&&(o=t.x))}}return[a,o]},YQ=e=>{let{series:t,axis:n,isDefaultAxis:r,getFilters:i}=e,a=1/0,o=-1/0;for(let e in t){if(!Object.hasOwn(t,e)||n.domainSeries===`visible`&&t[e].hidden)continue;let s=t[e].yAxisId;if(!(s===n.id||s===void 0&&r))continue;let c=i?.({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[e].xAxisId,seriesYAxisId:t[e].yAxisId}),l=t[e].data??[];for(let e=0;eo&&(o=t.y))}}return[a,o]};function XQ(e,t,n){throw Error(eD(279,e,t,n.map(e=>`"${e}"`).join(`, `)))}var ZQ={bar:vQ,scatter:{seriesProcessor:({series:e,seriesOrder:t},n,r)=>({series:Object.fromEntries(Object.entries(e).map(([e,t])=>{let i=t?.datasetKeys,a=[`x`,`y`].filter(e=>typeof i?.[e]!=`string`);t?.datasetKeys&&a.length>0&&XQ(`Scatter`,e,a);let o;return o=t.valueGetter?n?.map(t.valueGetter)??[]:i?n?.map(e=>{let t={x:e[i.x],y:e[i.y]};return i.colorValue!==void 0&&(t.colorValue=e[i.colorValue]),i.sizeValue!==void 0&&(t.sizeValue=e[i.sizeValue]),i.z!==void 0&&(t.z=e[i.z]),i.id!==void 0&&(t.id=e[i.id]),t})??[]:t.data??[],[e,q({labelMarkType:`circle`,markerSize:4},t,{preview:q({markerSize:1},t?.preview),data:o,hidden:!r?.({type:`scatter`,seriesId:e}),valueFormatter:t.valueFormatter??(e=>e&&`(${e.x}, ${e.y})`)})]})),seriesOrder:t}),colorProcessor:(e,t,n,r)=>{let i=r?.colorScale,a=n?.colorScale,o=t?.colorScale,s=WU(e);return i?t=>{if(t===void 0)return e.color;if(r?.data?.[t]!==void 0){let e=i(r?.data?.[t]);if(e!==null)return e}let n=e.data[t],a=i(n.colorValue??n.z);return typeof a==`string`?a:s({value:n,dataIndex:t})}:a?t=>{if(t===void 0)return e.color;let n=e.data[t],r=a(n.y);return typeof r==`string`?r:s({value:n,dataIndex:t})}:o?t=>{if(t===void 0)return e.color;let n=e.data[t],r=o(n.x);return typeof r==`string`?r:s({value:n,dataIndex:t})}:t=>{if(t===void 0)return e.color;let n=e.data[t];return s({value:n,dataIndex:t})}},legendGetter:e=>WZ(`scatter`,e),tooltipGetter:e=>oQ(e),selectorTooltipItemPosition:$(UR,nP,fL,pL,function(e,t,n,r){if(!e||e.type!==`scatter`||e.dataIndex===void 0)return null;let i=t.scatter?.series[e.seriesId];if(i==null)return null;let a=n.axis[i.xAxisId??n.axisIds[0]],o=r.axis[i.yAxisId??r.axisIds[0]];if(a===void 0||o===void 0)return null;let s=i.data?.[e.dataIndex].x,c=i.data?.[e.dataIndex].y;return s==null||c==null?null:{x:a.scale(s),y:o.scale(c)}}),xExtremumGetter:JQ,yExtremumGetter:YQ,getSeriesWithDefaultValues:(e,t,n)=>q({},e,{id:e.id??`auto-generated-id-${t}`,color:e.color??n[t%n.length]}),keyboardFocusHandler:iQ(kG),identifierSerializer:gQ,identifierCleaner:_Q,descriptionGetter:e=>{let{identifier:t,series:n,xAxis:r,yAxis:i,localeText:a}=e,o=wG(n.label,`tooltip`),s=n.data[t.dataIndex],c=r.valueFormatter?.(s?.x,{location:`tooltip`,scale:r.scale})??``,l=i.valueFormatter?.(s?.y,{location:`tooltip`,scale:i.scale})??``;return a.scatterDescription({x:s?.x??null,y:s?.y??null,formattedXValue:c,formattedYValue:l,seriesLabel:o})},isHighlightedCreator:fz,isFadedCreator:mz},line:BQ,pie:qQ},QQ=[`children`,`localeText`,`plugins`,`slots`,`slotProps`,`seriesConfig`],$Q=e=>{let t=RE({props:e,name:`MuiChartsDataProvider`}),{children:n,localeText:r,plugins:i=yY,slots:a,slotProps:o,seriesConfig:s=ZQ}=t,c=KE(t,QQ),l=xE();return{children:n,localeText:r,chartProviderProps:{plugins:i,pluginParams:q({theme:l.palette.mode,seriesConfig:s},c)},slots:a,slotProps:o}};function e$(e){let{children:t,localeText:n,chartProviderProps:r,slots:i,slotProps:a}=$Q(e);return(0,J.jsx)(qR,q({},r,{children:(0,J.jsx)(LH,{localeText:n,children:(0,J.jsx)(jZ,{slots:i,slotProps:a,defaultSlots:kZ,children:t})})}))}function t$(e){return DC(`MuiChartsSurface`,e)}var n$=()=>tT({root:[`root`]},t$);OC(`MuiChartsSurface`,[`root`]);function r$(e){let{isReversed:t,gradientId:n,size:r,direction:i,scale:a,colorMap:o}=e;return r<=0?null:(0,J.jsx)(`linearGradient`,{id:n,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${i}${t?1:2}`]:`${r}px`,gradientUnits:`userSpaceOnUse`,children:o.thresholds.map((e,n)=>{let i=a(e);if(i===void 0)return null;let s=t?1-i/r:i/r;return Number.isNaN(s)?null:(0,J.jsxs)(b.Fragment,{children:[(0,J.jsx)(`stop`,{offset:s,stopColor:o.colors[n],stopOpacity:1}),(0,J.jsx)(`stop`,{offset:s,stopColor:o.colors[n+1],stopOpacity:1})]},e.toString()+n)})})}var i$=10;function a$(e){let{gradientUnits:t,isReversed:n,gradientId:r,size:i,direction:a,scale:o,colorScale:s,colorMap:c}=e,l=[c.min??0,c.max??100],u=l.map(o).filter(e=>e!==void 0);if(u.length!==2)return null;let d=typeof l[0]==`number`?Mk(l[0],l[1]):jk(l[0],l[1]),f=Math.round((Math.max(...u)-Math.min(...u))/i$),p=`${l[0]}-${l[1]}-`;return(0,J.jsx)(`linearGradient`,{id:r,x1:`0`,x2:`0`,y1:`0`,y2:`0`,[`${a}${n?1:2}`]:t===`objectBoundingBox`?1:`${i}px`,gradientUnits:t??`userSpaceOnUse`,children:Array.from({length:f+1},(e,t)=>{let r=d(t/f);if(r===void 0)return null;let a=o(r);if(a===void 0)return null;let c=n?1-a/i:a/i,l=s(r);return l===null?null:(0,J.jsx)(`stop`,{offset:c,stopColor:l,stopOpacity:1},p+t)})})}var o$=10,s$=e=>e?{x1:`1`,x2:`0`,y1:`0`,y2:`0`}:{x1:`0`,x2:`1`,y1:`0`,y2:`0`};function c$(e){let{isReversed:t,gradientId:n,colorScale:r,colorMap:i}=e,a=[i.min??0,i.max??100],o=typeof a[0]==`number`?Mk(a[0],a[1]):jk(a[0],a[1]),s=o$,c=`${a[0]}-${a[1]}-`;return(0,J.jsx)(`linearGradient`,q({id:n},s$(t),{gradientUnits:`objectBoundingBox`,children:Array.from({length:11},(e,t)=>{let n=t/s,i=o(n);if(i===void 0)return null;let a=r(i);return a===null?null:(0,J.jsx)(`stop`,{offset:n,stopColor:a,stopOpacity:1},c+t)})}))}function l$(){let{top:e,height:t,bottom:n,left:r,width:i,right:a}=Qz(),o=e+t+n,s=r+i+a,c=$B(),l=eV(),{xAxis:u,xAxisIds:d}=IB(),{yAxis:f,yAxisIds:p}=LB(),{zAxis:m,zAxisIds:h}=WB(),g=p.filter(e=>f[e].colorMap!==void 0),_=d.filter(e=>u[e].colorMap!==void 0),v=h.filter(e=>m[e].colorMap!==void 0);return g.length===0&&_.length===0&&v.length===0?null:(0,J.jsxs)(`defs`,{children:[g.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,colorScale:a,reverse:s}=f[e];return r?.type===`piecewise`?(0,J.jsx)(r$,{isReversed:!s,scale:i,colorMap:r,size:o,gradientId:t,direction:`y`},t):r?.type===`continuous`?(0,J.jsxs)(b.Fragment,{children:[(0,J.jsx)(a$,{isReversed:!s,scale:i,colorScale:a,colorMap:r,size:o,gradientId:t,direction:`y`}),(0,J.jsx)(c$,{isReversed:s,colorScale:a,colorMap:r,gradientId:n})]},t):null}),_.map(e=>{let t=c(e),n=l(e),{colorMap:r,scale:i,reverse:a,colorScale:o}=u[e];return r?.type===`piecewise`?(0,J.jsx)(r$,{isReversed:a,scale:i,colorMap:r,size:s,gradientId:t,direction:`x`},t):r?.type===`continuous`?(0,J.jsxs)(b.Fragment,{children:[(0,J.jsx)(a$,{isReversed:a,scale:i,colorScale:o,colorMap:r,size:s,gradientId:t,direction:`x`}),(0,J.jsx)(c$,{isReversed:a,colorScale:o,colorMap:r,gradientId:n})]},t):null}),v.map(e=>{let t=l(e),{colorMap:n,colorScale:r}=m[e];return n?.type===`continuous`?(0,J.jsx)(c$,{colorScale:r,colorMap:n,gradientId:t},t):null})]})}function u$(e){return DC(`MuiChartsSvgLayer`,e)}var d$=()=>tT({root:[`root`]},u$);OC(`MuiChartsSvgLayer`,[`root`]);var f$=[`children`,`className`],p$=Z(`svg`,{name:`MuiChartsSvgLayer`,slot:`Root`})({width:`100%`,height:`100%`,position:`absolute`,inset:0}),m$=b.forwardRef(function(e,t){let{store:n}=JR(),r=n.use(JP),i=n.use(YP),a=RE({props:e,name:`MuiChartsSvgLayer`}),{children:o,className:s}=a,c=KE(a,f$),l=d$(),u=i>0&&r>0;return(0,J.jsxs)(p$,q({viewBox:`0 0 ${r} ${i}`,className:Y(l.root,s)},c,{ref:t,"aria-hidden":!0,children:[(0,J.jsx)(l$,{}),u&&o]}))});function h$(){let{instance:e}=JR(),t=GB(),n=ZR(),r=b.useRef(!1),i=b.useRef(void 0);b.useEffect(()=>{let a=t.current;if(!a||!Object.values(n.state.seriesConfig.config).some(e=>e.getItemAtPosition!=null))return;function o(){r.current=!0}function s(){let t=i.current;t&&(i.current=void 0,e.removeTooltipItem(t),e.clearHighlight())}function c(){r.current=!1,s()}let l=function(t){let r=CL(a,t);if(!e.isPointInside(r.x,r.y)){s();return}let o;for(let e of Object.keys(n.state.seriesConfig.config))if(o=n.state.seriesConfig.config[e].getItemAtPosition?.(n.state,{x:r.x,y:r.y}),o)break;o?(e.setLastUpdateSource(`pointer`),e.setTooltipItem(o),e.setHighlight(o),i.current=o):s()};return a.addEventListener(`pointerleave`,c),a.addEventListener(`pointermove`,l),a.addEventListener(`pointerenter`,o),()=>{a.removeEventListener(`pointerenter`,o),a.removeEventListener(`pointermove`,l),a.removeEventListener(`pointerleave`,c),r.current&&c()}},[e,n,t,n.state.seriesConfig.config])}function g$(){let e=ZR(),t=e.use(YL),n=e.use(HN),r=KB(),{localeText:i}=RH(),{xAxis:a,xAxisIds:o}=IB(),{yAxis:s,yAxisIds:c}=LB(),{rotationAxis:l,rotationAxisIds:u}=BB(),{radiusAxis:d,radiusAxisIds:f}=VB();if(t===null)return null;let{type:p,seriesId:m}=t,h=r[p]?.series[m];if(!h)return null;let g=n[p]?.descriptionGetter;if(!g)return null;let _={identifier:t,series:h,localeText:i};if(hP(h)){let e=h.xAxisId??o[0],t=h.yAxisId??c[0];_.xAxis=a[e],_.yAxis=s[t]}else eB(p)&&(_.rotationAxis=l[u[0]],_.radiusAxis=d[f[0]]);return g(_)}var _$={borderWidth:0,width:`100%`,height:`100%`,overflow:`hidden`,position:`absolute`,inset:0,padding:0,outline:`none`,pointerEvents:`none`};function v$(){let e=g$(),t=$z(),n=b.useRef(null),r=b.useRef(0),i=b.useRef(null);return b.useEffect(()=>{let a=i.current;if(a){if(a.children.length===0){for(let e=0;e<2;e+=1){let n=document.createElement(`div`);n.setAttribute(`id`,e===0?`voiceover-${t}-1`:`voiceover-${t}-2`),n.style.display=`none`,a.appendChild(n)}for(let n=0;n<2;n+=1){let i=document.createElement(`div`);n===(r.current+1)%2&&e&&i.setAttribute(`tabindex`,`0`),i.setAttribute(`role`,`img`),i.setAttribute(`aria-hidden`,`true`),i.setAttribute(`aria-labelledby`,n===0?`voiceover-${t}-1`:`voiceover-${t}-2`),i.style.width=`100%`,i.style.height=`100%`,i.style.outline=`none`,a.appendChild(i)}}if(e&&e!==n.current){n.current=e;let i=r.current;r.current=(r.current+1)%2;let o=r.current,s=a.children[2+o],c=a.children[2+i],l=a.children[o],u=a.children[i];l.textContent=e??``,u.textContent=e??``,s.setAttribute(`aria-hidden`,`false`),s.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),e&&s.setAttribute(`tabindex`,`0`),c.setAttribute(`aria-hidden`,`true`),c.setAttribute(`aria-labelledby`,o===0?`voiceover-${t}-1`:`voiceover-${t}-2`),c.removeAttribute(`tabindex`),s.focus()}}},[e,t]),(0,J.jsx)(`div`,{role:`none`,tabIndex:e?void 0:0,ref:i,style:_$})}var y$=[`children`,`title`,`desc`,`className`],b$=Z(`div`,{name:`MuiChartsLayerContainer`,slot:`Root`})(({ownerState:e})=>({width:e.width??`100%`,height:e.height??`100%`,display:`flex`,position:`relative`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,touchAction:`pan-y`,userSelect:`none`,gridArea:`chart`,"&:focus":{outline:`none`}})),x$=b.forwardRef(function(e,t){let{store:n,instance:r}=JR(),i=n.use(XP),a=n.use(ZP),o=n.use(XL);h$();let s=RE({props:e,name:`MuiChartsLayerContainer`}),{children:c,title:l,desc:u,className:d}=s,f=KE(s,y$),p=n$(),m=gE(GB(),t),h=Dw();return(0,J.jsxs)(b$,q({ref:m,ownerState:{width:i,height:a},role:`none`,"aria-label":l,"aria-describedby":u?h:void 0,className:Y(p.root,d)},f,{onPointerEnter:e=>{f.onPointerEnter?.(e),r.handlePointerEnter?.(e)},onPointerLeave:e=>{f.onPointerLeave?.(e),r.handlePointerLeave?.(e)},onClick:e=>{f.onClick?.(e),r.handleClick?.(e)},children:[o&&(0,J.jsx)(v$,{}),u&&(0,J.jsx)(`span`,{id:h,style:{display:`none`},children:u}),c]}))}),S$=[`children`,`className`,`title`,`desc`],C$=b.forwardRef(function(e,t){let n=RE({props:e,name:`MuiChartsSurface`}),{children:r,className:i,title:a,desc:o}=n,s=KE(n,S$),c=n$();return(0,J.jsx)(x$,{className:Y(c.root,i),ref:t,title:a,desc:o,children:(0,J.jsx)(m$,q({},s,{children:r}))})}),w$=OC(`MuiChartsToolbar`,[`root`]),T$=[`children`,`sx`,`extendVertically`,`hideLegend`,`legendDirection`,`legendPosition`],E$=e=>e?.horizontal===`start`?`start`:e?.horizontal===`end`?`end`:`center`,D$=e=>e?.vertical===`top`?`flex-start`:e?.vertical===`bottom`?`flex-end`:`center`,O$=(e,t,n)=>e?`"chart"`:t===`vertical`?n?.horizontal===`start`?`"legend chart"`:`"chart legend"`:n?.vertical===`bottom`?`"chart" "legend"`:`"legend" - "chart"`,JQ=(e=!1,t=`horizontal`,n=`end`,r=void 0)=>{let i=r?`auto`:`1fr`;return t===`horizontal`||e?i:n===`start`?`auto ${i}`:`${i} auto`},YQ=(e=!1,t=`horizontal`,n=`top`)=>t===`vertical`||e?`1fr`:n===`bottom`?`1fr auto`:`auto 1fr`,XQ=Z(`div`,{name:`MuiChartsWrapper`,slot:`Root`,shouldForwardProp:e=>jC(e)&&e!==`extendVertically`&&e!==`width`})(({ownerState:e,width:t})=>{let n=JQ(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),r=YQ(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),i=qQ(e.hideLegend,e.legendDirection,e.legendPosition);return{variants:[{props:{extendVertically:!0},style:{height:`100%`,minHeight:0}}],flex:1,display:`grid`,gridTemplateColumns:n,gridTemplateRows:r,gridTemplateAreas:i,[`&:has(.${UQ.root})`]:{gridTemplateRows:`auto ${r}`,gridTemplateAreas:`"${n.split(` `).map(()=>`toolbar`).join(` `)}" - ${i}`},[`& .${UQ.root}`]:{gridArea:`toolbar`,justifySelf:`center`},justifyContent:`safe center`,justifyItems:GQ(e.legendPosition),alignItems:KQ(e.legendPosition)}}),ZQ=b.forwardRef(function(e,t){let{children:n,sx:r,extendVertically:i,hideLegend:a,legendDirection:o,legendPosition:s}=e,c=WE(e,WQ),l=hE(CH(),t),u=WR(),d=u.use(JP),f=u.use(YP),p=b.useMemo(()=>({hideLegend:a,legendDirection:o,legendPosition:s}),[a,o,s]);return(0,Y.jsx)(XQ,J({ref:l,ownerState:p,sx:r,extendVertically:i??f===void 0,width:d},c,{children:n}))}),QQ=6;function $Q(){let e=bE(),t=MH(),n=HB(),{xAxis:r,xAxisIds:i}=kB(),{yAxis:a,yAxisIds:o}=AB();if(t===null||t.type!==`line`||!n)return null;let s=n.series[t.seriesId];if(!s||s.hidden||s.data[t.dataIndex]==null)return null;let c=s.xAxisId??i[0],l=s.yAxisId??o[0];return(0,Y.jsx)(`rect`,{fill:`none`,stroke:(e.vars??e).palette.text.primary,strokeWidth:2,x:r[c].scale(r[c].data[t.dataIndex])-QQ,y:a[l].scale(s.visibleStackedData[t.dataIndex][1])-QQ,width:12,height:12,rx:3,ry:3})}var e$=b.forwardRef(function(e,t){let n=IE({props:e,name:`MuiLineChart`}),{chartsWrapperProps:r,chartsContainerProps:i,gridProps:a,clipPathProps:o,clipPathGroupProps:s,areaPlotProps:c,linePlotProps:l,markPlotProps:u,overlayProps:d,chartsAxisProps:f,axisHighlightProps:p,lineHighlightPlotProps:m,legendProps:h,children:g}=LJ(n),{chartsDataProviderProps:_,chartsSurfaceProps:v}=dY(i),y=n.slots?.tooltip??Gq,b=n.slots?.toolbar;return(0,Y.jsx)(yQ,J({},_,{children:(0,Y.jsxs)(ZQ,J({},r,{ref:t,children:[n.showToolbar&&b?(0,Y.jsx)(b,J({},n.slotProps?.toolbar)):null,!n.hideLegend&&(0,Y.jsx)(aJ,J({},h)),(0,Y.jsxs)(HQ,J({},v,{children:[(0,Y.jsx)(kJ,J({},a)),(0,Y.jsxs)(`g`,J({},s,{children:[(0,Y.jsx)(_U,J({},c)),(0,Y.jsx)(EU,J({},l)),(0,Y.jsx)(PJ,J({},d)),(0,Y.jsx)(mJ,J({},p))]})),(0,Y.jsx)($Q,{}),(0,Y.jsx)(BW,J({},f)),(0,Y.jsx)(`g`,{"data-drawing-container":!0,children:(0,Y.jsx)(BU,J({},u))}),(0,Y.jsx)(yJ,J({},m)),(0,Y.jsx)(hJ,J({},o)),g]})),!n.loading&&(0,Y.jsx)(y,J({},n.slotProps?.tooltip))]}))}))});function t$(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=XE(d[e],i),{props:{component:h,...g},internalRef:_}=YE({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=hE(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,GE(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function n$(e){return DC(`MuiPaper`,e)}OC(`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`.split(`.`));var r$=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return eT({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},n$,i)},i$=Z(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(CE(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...NE(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),a$=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiPaper`}),r=bE(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=r$(u);return(0,Y.jsx)(i$,{as:a,ownerState:u,className:wC(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${iw(`#fff`,XT(o))}, ${iw(`#fff`,XT(o))})`}},...l.style}})});function o$(e){return DC(`MuiAlert`,e)}var s$=OC(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),c$=gY((0,Y.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),l$=gY((0,Y.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),u$=gY((0,Y.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),d$=gY((0,Y.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),f$=gY((0,Y.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),p$=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return eT({root:[`root`,`color${TE(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},o$,i)},m$=Z(a$,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(CE(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(UW([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${s$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(UW([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${s$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(UW([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),h$=Z(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),g$=Z(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),_$=Z(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),v$={success:(0,Y.jsx)(c$,{fontSize:`inherit`}),warning:(0,Y.jsx)(l$,{fontSize:`inherit`}),error:(0,Y.jsx)(u$,{fontSize:`inherit`}),info:(0,Y.jsx)(d$,{fontSize:`inherit`})},y$=b.forwardRef(function(e,t){let n=wE({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=v$,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=p$(_),y={slots:m,slotProps:p},[b,x]=t$(`root`,{ref:t,shouldForwardComponentProp:!0,className:wC(v.root,a),elementType:m$,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=t$(`icon`,{className:v.icon,elementType:h$,externalForwardedProps:y,ownerState:_}),[w,T]=t$(`message`,{className:v.message,elementType:g$,externalForwardedProps:y,ownerState:_}),[E,D]=t$(`action`,{className:v.action,elementType:_$,externalForwardedProps:y,ownerState:_}),[O,k]=t$(`closeButton`,{elementType:wX,externalForwardedProps:y,ownerState:_}),[ee,te]=t$(`closeIcon`,{elementType:f$,externalForwardedProps:y,ownerState:_});return(0,Y.jsxs)(b,{...x,children:[c===!1?null:(0,Y.jsx)(S,{...C,children:c||l[f]||v$[f]}),(0,Y.jsx)(w,{...T,children:i}),r==null?null:(0,Y.jsx)(E,{...D,children:r}),r==null&&u?(0,Y.jsx)(E,{...D,children:(0,Y.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,Y.jsx)(ee,{fontSize:`small`,...te})})}):null]})}),b$=OC(`MuiBox`,[`root`]),x$=TC({themeId:yy,defaultTheme:pE(),defaultClassName:b$.root,generateClassName:SC.generate}),S$=e=>`var(${e})`,C$=`timestamp`;mh();var w$=W({timestamp:H(),value:H()}),T$=W({label:V().optional(),points:U(w$)});function E$(e,t){if(!e||e.length===0)return{data:[],seriesKeys:[]};let n=new Map,r=new Set;return e.forEach(e=>{let i=e.label||t;e.points&&Array.isArray(e.points)&&e.points.forEach(e=>{let t=new Date(e.timestamp).getTime();n.has(t)||n.set(t,{}),r.add(i),n.get(t)[i]=e.value})}),{data:Array.from(n.entries()).sort(([e],[t])=>e-t).map(([e,t])=>({...t,[C$]:new Date(e)})),seriesKeys:Array.from(r)}}function D$(e){return`${e.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})} ${e.toLocaleTimeString()}`}mh();var O$={QUERY_TIME_SERIES:`query_time_series`},k$=W({project_id:V().optional(),query:V(),title:V().optional(),x_legend:V().optional(),y_legend:V().optional()}),A$=W({project_id:V().optional(),query:V()}),j$=W({data:U(T$).nullable()});function M$({data:e,seriesKeys:t,xLegend:n,yLegend:r,loading:i}){let a=t.map(e=>({dataKey:e,label:e,showMark:!1}));return(0,Y.jsx)(e$,{height:300,dataset:e,loading:i,xAxis:[{dataKey:C$,scaleType:`time`,valueFormatter:D$,label:n}],yAxis:[{label:r}],series:a,slotProps:{legend:{position:{vertical:`bottom`,horizontal:`center`},sx:{height:`100%`,maxHeight:`10vh`,overflow:`auto`}}}})}function N$(){let[e,t]=(0,b.useState)([]),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!0),[o,s]=(0,b.useState)(``),[c,l]=(0,b.useState)(`Timeseries Data Viewer`),[u,d]=(0,b.useState)(`Time`),[f,p]=(0,b.useState)(`Value`),{app:m}=py({appInfo:{name:`Time Series Chart`,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=async n=>{try{let i=k$.safeParse(n.arguments);if(!i.success)throw Error(`Invalid time series parameters provided in tool input:\n${i.error.message}`);let a=i.data;r(a.query),a.title&&l(a.title),a.x_legend&&d(a.x_legend),a.y_legend&&p(a.y_legend);let o=A$.parse(a),s=await e.callServerTool({name:O$.QUERY_TIME_SERIES,arguments:o});if(s.isError){let e=s.content?.[0]?.type===`text`?s.content[0].text:`Unknown Error`;throw Error(`Failed to call time series API: ${e}`)}{let e=j$.safeParse(s.structuredContent);if(e.success){let n=e.data.data??[];t(n)}else throw Error(`Invalid structured data from time series API:\n${e.error.message}`)}}catch(n){let r=`${n instanceof Error?n.message:String(n)}`;s(r),e.updateModelContext({content:[{type:`text`,text:r}]}).catch(console.error),t([])}finally{a(!1)}}}});_y(m,m?.getHostContext());let h=my(),g=(0,b.useMemo)(()=>pE({palette:{mode:h,text:{primary:S$(`--color-text-primary`),secondary:S$(`--color-text-secondary`),disabled:S$(`--color-text-disabled`)}},typography:{fontFamily:S$(`--font-sans`)}}),[h]),_=(0,b.useMemo)(()=>E$(e,n),[e,n]);return(0,Y.jsx)(UE,{theme:g,children:o?(0,Y.jsx)(y$,{severity:`error`,children:o}):(0,Y.jsxs)(x$,{sx:{padding:`24px`,display:`flex`,flexDirection:`column`},children:[(0,Y.jsx)(JW,{sx:{textAlign:`center`},color:`text.primary`,children:c}),(0,Y.jsx)(M$,{data:_.data,seriesKeys:_.seriesKeys,loading:i,xLegend:u,yLegend:f})]})})}(0,x.createRoot)(document.getElementById(`root`)).render((0,Y.jsx)(b.StrictMode,{children:(0,Y.jsx)(N$,{})})); + "chart"`,k$=(e=!1,t=`horizontal`,n=`end`,r=void 0)=>{let i=r?`auto`:`1fr`;return t===`horizontal`||e?i:n===`start`?`auto ${i}`:`${i} auto`},A$=(e=!1,t=`horizontal`,n=`top`)=>t===`vertical`||e?`1fr`:n===`bottom`?`1fr auto`:`auto 1fr`,j$=Z(`div`,{name:`MuiChartsWrapper`,slot:`Root`,shouldForwardProp:e=>jC(e)&&e!==`extendVertically`&&e!==`width`})(({ownerState:e,width:t})=>{let n=k$(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,t),r=A$(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),i=O$(e.hideLegend,e.legendDirection,e.legendPosition);return{variants:[{props:{extendVertically:!0},style:{height:`100%`,minHeight:0}}],flex:1,display:`grid`,gridTemplateColumns:n,gridTemplateRows:r,gridTemplateAreas:i,[`&:has(.${w$.root})`]:{gridTemplateRows:`auto ${r}`,gridTemplateAreas:`"${n.split(` `).map(()=>`toolbar`).join(` `)}" + ${i}`},[`& .${w$.root}`]:{gridArea:`toolbar`,justifySelf:`center`},justifyContent:`safe center`,justifyItems:E$(e.legendPosition),alignItems:D$(e.legendPosition)}}),M$=b.forwardRef(function(e,t){let{children:n,sx:r,extendVertically:i,hideLegend:a,legendDirection:o,legendPosition:s}=e,c=KE(e,T$),l=gE(AH(),t),u=ZR(),d=u.use(XP),f=u.use(ZP),p=b.useMemo(()=>({hideLegend:a,legendDirection:o,legendPosition:s}),[a,o,s]);return(0,J.jsx)(j$,q({ref:l,ownerState:p,sx:r,extendVertically:i??f===void 0,width:d},c,{children:n}))}),N$=6;function P$(){let e=xE(),t=zH(),n=YB(),{xAxis:r,xAxisIds:i}=IB(),{yAxis:a,yAxisIds:o}=LB();if(t===null||t.type!==`line`||!n)return null;let s=n.series[t.seriesId];if(!s||s.hidden||s.data[t.dataIndex]==null)return null;let c=s.xAxisId??i[0],l=s.yAxisId??o[0];return(0,J.jsx)(`rect`,{fill:`none`,stroke:(e.vars??e).palette.text.primary,strokeWidth:2,x:r[c].scale(r[c].data[t.dataIndex])-N$,y:a[l].scale(s.visibleStackedData[t.dataIndex][1])-N$,width:12,height:12,rx:3,ry:3})}var F$=b.forwardRef(function(e,t){let n=RE({props:e,name:`MuiLineChart`}),{chartsWrapperProps:r,chartsContainerProps:i,gridProps:a,clipPathProps:o,clipPathGroupProps:s,areaPlotProps:c,linePlotProps:l,markPlotProps:u,overlayProps:d,chartsAxisProps:f,axisHighlightProps:p,lineHighlightPlotProps:m,legendProps:h,children:g}=qJ(n),{chartsDataProviderProps:_,chartsSurfaceProps:v}=xY(i),y=n.slots?.tooltip??tJ,b=n.slots?.toolbar;return(0,J.jsx)(e$,q({},_,{children:(0,J.jsxs)(M$,q({},r,{ref:t,children:[n.showToolbar&&b?(0,J.jsx)(b,q({},n.slotProps?.toolbar)):null,!n.hideLegend&&(0,J.jsx)(hJ,q({},h)),(0,J.jsxs)(C$,q({},v,{children:[(0,J.jsx)(zJ,q({},a)),(0,J.jsxs)(`g`,q({},s,{children:[(0,J.jsx)(DU,q({},c)),(0,J.jsx)(IU,q({},l)),(0,J.jsx)(WJ,q({},d)),(0,J.jsx)(wJ,q({},p))]})),(0,J.jsx)(P$,{}),(0,J.jsx)(XW,q({},f)),(0,J.jsx)(`g`,{"data-drawing-container":!0,children:(0,J.jsx)(XU,q({},u))}),(0,J.jsx)(kJ,q({},m)),(0,J.jsx)(TJ,q({},o)),g]})),!n.loading&&(0,J.jsx)(y,q({},n.slotProps?.tooltip))]}))}))});function I$(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=QE(d[e],i),{props:{component:h,...g},internalRef:_}=ZE({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=gE(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,qE(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function L$(e){return DC(`MuiPaper`,e)}OC(`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`.split(`.`));var R$=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return tT({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},L$,i)},z$=Z(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(wE(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...FE(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),B$=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiPaper`}),r=xE(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=R$(u);return(0,J.jsx)(z$,{as:a,ownerState:u,className:Y(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${iw(`#fff`,ZT(o))}, ${iw(`#fff`,ZT(o))})`}},...l.style}})});function V$(e){return DC(`MuiAlert`,e)}var H$=OC(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]),U$=EY((0,J.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),W$=EY((0,J.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),G$=EY((0,J.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),K$=EY((0,J.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),q$=EY((0,J.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),J$=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return tT({root:[`root`,`color${EE(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},V$,i)},Y$=Z(B$,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(wE(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter($W([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${H$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter($W([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${H$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter($W([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),X$=Z(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Z$=Z(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),Q$=Z(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),$$={success:(0,J.jsx)(U$,{fontSize:`inherit`}),warning:(0,J.jsx)(W$,{fontSize:`inherit`}),error:(0,J.jsx)(G$,{fontSize:`inherit`}),info:(0,J.jsx)(K$,{fontSize:`inherit`})},e1=b.forwardRef(function(e,t){let n=TE({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=$$,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=J$(_),y={slots:m,slotProps:p},[b,x]=I$(`root`,{ref:t,shouldForwardComponentProp:!0,className:Y(v.root,a),elementType:Y$,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=I$(`icon`,{className:v.icon,elementType:X$,externalForwardedProps:y,ownerState:_}),[w,T]=I$(`message`,{className:v.message,elementType:Z$,externalForwardedProps:y,ownerState:_}),[E,D]=I$(`action`,{className:v.action,elementType:Q$,externalForwardedProps:y,ownerState:_}),[O,k]=I$(`closeButton`,{elementType:PX,externalForwardedProps:y,ownerState:_}),[ee,te]=I$(`closeIcon`,{elementType:q$,externalForwardedProps:y,ownerState:_});return(0,J.jsxs)(b,{...x,children:[c===!1?null:(0,J.jsx)(S,{...C,children:c||l[f]||$$[f]}),(0,J.jsx)(w,{...T,children:i}),r==null?null:(0,J.jsx)(E,{...D,children:r}),r==null&&u?(0,J.jsx)(E,{...D,children:(0,J.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,J.jsx)(ee,{fontSize:`small`,...te})})}):null]})}),t1=OC(`MuiBox`,[`root`]),n1=TC({themeId:by,defaultTheme:mE(),defaultClassName:t1.root,generateClassName:CC.generate}),r1=e=>`var(${e})`,i1=`timestamp`;hh();var a1=W({timestamp:H(),value:H()}),o1=W({label:V().optional(),points:U(a1)});function s1(e,t){if(!e||e.length===0)return{data:[],seriesKeys:[]};let n=new Map,r=new Set;return e.forEach(e=>{let i=e.label||t;e.points&&Array.isArray(e.points)&&e.points.forEach(e=>{let t=new Date(e.timestamp).getTime();n.has(t)||n.set(t,{}),r.add(i),n.get(t)[i]=e.value})}),{data:Array.from(n.entries()).sort(([e],[t])=>e-t).map(([e,t])=>({...t,[i1]:new Date(e)})),seriesKeys:Array.from(r)}}function c1(e){return`${e.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`})} ${e.toLocaleTimeString()}`}hh();var l1={QUERY_TIME_SERIES:`query_time_series`},u1=W({project_id:V().optional(),query:V(),title:V().optional(),x_legend:V().optional(),y_legend:V().optional()}),d1=W({project_id:V().optional(),query:V()}),f1=W({data:U(o1).nullable()});function p1({data:e,seriesKeys:t,xLegend:n,yLegend:r,loading:i}){let a=t.map(e=>({dataKey:e,label:e,showMark:!1}));return(0,J.jsx)(F$,{height:300,dataset:e,loading:i,xAxis:[{dataKey:i1,scaleType:`time`,valueFormatter:c1,label:n}],yAxis:[{label:r}],series:a,slotProps:{legend:{position:{vertical:`bottom`,horizontal:`center`},sx:{height:`100%`,maxHeight:`10vh`,overflow:`auto`}}}})}function m1(){let[e,t]=(0,b.useState)([]),[n,r]=(0,b.useState)(``),[i,a]=(0,b.useState)(!0),[o,s]=(0,b.useState)(``),[c,l]=(0,b.useState)(`Timeseries Data Viewer`),[u,d]=(0,b.useState)(`Time`),[f,p]=(0,b.useState)(`Value`),{app:m}=my({appInfo:{name:`Time Series Chart`,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=async n=>{try{let i=u1.safeParse(n.arguments);if(!i.success)throw Error(`Invalid time series parameters provided in tool input:\n${i.error.message}`);let a=i.data;r(a.query),a.title&&l(a.title),a.x_legend&&d(a.x_legend),a.y_legend&&p(a.y_legend);let o=d1.parse(a),s=await e.callServerTool({name:l1.QUERY_TIME_SERIES,arguments:o});if(s.isError){let e=s.content?.[0]?.type===`text`?s.content[0].text:`Unknown Error`;throw Error(`Failed to call time series API: ${e}`)}{let e=f1.safeParse(s.structuredContent);if(e.success){let n=e.data.data??[];t(n)}else throw Error(`Invalid structured data from time series API:\n${e.error.message}`)}}catch(n){let r=`${n instanceof Error?n.message:String(n)}`;s(r),e.updateModelContext({content:[{type:`text`,text:r}]}).catch(console.error),t([])}finally{a(!1)}}}});vy(m,m?.getHostContext());let h=hy(),g=(0,b.useMemo)(()=>mE({palette:{mode:h,text:{primary:r1(`--color-text-primary`),secondary:r1(`--color-text-secondary`),disabled:r1(`--color-text-disabled`)}},typography:{fontFamily:r1(`--font-sans`)}}),[h]),_=(0,b.useMemo)(()=>s1(e,n),[e,n]);return(0,J.jsx)(GE,{theme:g,children:o?(0,J.jsx)(e1,{severity:`error`,children:o}):(0,J.jsxs)(n1,{sx:{padding:`24px`,display:`flex`,flexDirection:`column`},children:[(0,J.jsx)(iG,{sx:{textAlign:`center`},color:`text.primary`,children:c}),(0,J.jsx)(p1,{data:_.data,seriesKeys:_.seriesKeys,loading:i,xLegend:u,yLegend:f})]})})}(0,x.createRoot)(document.getElementById(`root`)).render((0,J.jsx)(b.StrictMode,{children:(0,J.jsx)(m1,{})})); diff --git a/ui/package-lock.json b/ui/package-lock.json index 3dbd03ae..8aac5a58 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -8,14 +8,14 @@ "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", - "@mui/material": "^9.2.0", - "@mui/x-charts": "^9.10.1", + "@mui/material": "^9.3.1", + "@mui/x-charts": "^9.11.1", "react": "^19.2.8", "react-dom": "^19.2.8", "zod": "^4.4.3" }, "devDependencies": { - "@eslint-react/eslint-plugin": "^5.18.1", + "@eslint-react/eslint-plugin": "^5.18.3", "@eslint/js": "^10.0.1", "@modelcontextprotocol/ext-apps": "^1.7.5", "@modelcontextprotocol/sdk": "^1.30.0", @@ -28,13 +28,13 @@ "eslint-define-config": "^2.1.0", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.3", - "globals": "^17.8.0", + "globals": "^17.9.0", "jiti": "^2.7.0", "prettier": "^3.9.6", - "tsx": "^4.23.1", + "tsx": "^4.23.11", "typescript": "^6.0.3", - "typescript-eslint": "^8.65.0", - "vite": "^8.2.0", + "typescript-eslint": "^8.66.0", + "vite": "^8.2.1", "vite-plugin-singlefile": "^2.3.3", "vitest": "^4.1.10" } @@ -937,15 +937,15 @@ } }, "node_modules/@eslint-react/ast": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/ast/-/ast-5.18.1.tgz", - "integrity": "sha512-6NTpdv+Z6eHT2lc8DkfJZUG6tUvZQkRBlvBpYuoeen+HIvzz59aOt1YEL4dd6FQlXD4DPbCBGXCjcV879hT8Sg==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/ast/-/ast-5.18.3.tgz", + "integrity": "sha512-/993Nnt9ZIn7sBQjXF/iLJ9llDtd9qztQrPNxQKwU3XLUv7m3a0EUMIe0A9Ygfw1lJz4not3VwcwMBahn/foVA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/typescript-estree": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/typescript-estree": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "string-ts": "^2.3.1" }, "engines": { @@ -957,19 +957,19 @@ } }, "node_modules/@eslint-react/core": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/core/-/core-5.18.1.tgz", - "integrity": "sha512-n2avrghmy22iMFJWGXKacyMMvtaFrPqq1Yydd7L1DKmUe/hubjD4Uc1ZKV/F2xRh8dQ0Gp2b5TVv7H/Nq5DxUQ==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/core/-/core-5.18.3.tgz", + "integrity": "sha512-N0FtKHkByoQOPRuGbHEtDRdcpa+Zs/b1/zGVYcS1g0416FFRIl4utXxOLZQj6OtHaIVXh2C6lJhJtIWfzPzCJQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/scope-manager": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/scope-manager": "^8.66.0", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "ts-pattern": "^5.9.0" }, "engines": { @@ -981,13 +981,13 @@ } }, "node_modules/@eslint-react/eslint": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/eslint/-/eslint-5.18.1.tgz", - "integrity": "sha512-T7AOWRwc1+gBEQUFoGSsBVHmWpsanGWVU52NTmWxij9ZGIlqbG+JC6vpCBa6IzGPKbulCu4B/np2JIydZQM1pQ==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/eslint/-/eslint-5.18.3.tgz", + "integrity": "sha512-zH5kDfeHYzly6wiYEleCEBdc7g8H+nKmxzhcZKmR1omrfTvzSndVIoLPrG8WYsgtYRqJdTg+NOGkAkXnoaTW4Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/utils": "^8.65.0" + "@typescript-eslint/utils": "^8.66.0" }, "engines": { "node": ">=22.0.0" @@ -998,19 +998,19 @@ } }, "node_modules/@eslint-react/eslint-plugin": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/eslint-plugin/-/eslint-plugin-5.18.1.tgz", - "integrity": "sha512-BlgYu//MKKnLHhQhh6E6ChSbEYj/a/cuRnyc+akOUtn8qCEqf2Le+/Rcxjfso3ujDjrq5yZt8E28aNOubtE6WA==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/eslint-plugin/-/eslint-plugin-5.18.3.tgz", + "integrity": "sha512-gpzENfi+943orTyWWWwepWZoat3ePhEUO7lVwpiKhuRjo3i63O+nXG8Bg5gMpOa/t8b1ZTZI2PHh4/KcWx3aXw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/shared": "5.18.1", - "eslint-plugin-react-dom": "5.18.1", - "eslint-plugin-react-jsx": "5.18.1", - "eslint-plugin-react-naming-convention": "5.18.1", - "eslint-plugin-react-rsc": "5.18.1", - "eslint-plugin-react-web-api": "5.18.1", - "eslint-plugin-react-x": "5.18.1" + "@eslint-react/shared": "5.18.3", + "eslint-plugin-react-dom": "5.18.3", + "eslint-plugin-react-jsx": "5.18.3", + "eslint-plugin-react-naming-convention": "5.18.3", + "eslint-plugin-react-rsc": "5.18.3", + "eslint-plugin-react-web-api": "5.18.3", + "eslint-plugin-react-x": "5.18.3" }, "engines": { "node": ">=22.0.0" @@ -1021,18 +1021,18 @@ } }, "node_modules/@eslint-react/jsx": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/jsx/-/jsx-5.18.1.tgz", - "integrity": "sha512-sT0JQ0yw/prFwtEu0cplzS0fZBpNHL1s7awHrD5xKABpqsVS2wofB52p2TSX2nmuNj011hSUW+xlu58GXYZ/fQ==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/jsx/-/jsx-5.18.3.tgz", + "integrity": "sha512-1MHb4HWOxk6UUg/PRMdrlu7AS1aLPKuz/lWNKfq27th3HCdxyppkg8FQLnU0GQoNnzyH2QoCvL6Um16rdyi7vA==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "ts-pattern": "^5.9.0" }, "engines": { @@ -1044,14 +1044,14 @@ } }, "node_modules/@eslint-react/shared": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/shared/-/shared-5.18.1.tgz", - "integrity": "sha512-sLtaIw5PGVriltlBfDD/wUvF4+K3EDGuFhoUF2HKSIdhf28glyrcf6s2d0HnjFXUjXKcD325MNWL7Cectvs2GA==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/shared/-/shared-5.18.3.tgz", + "integrity": "sha512-r+ZxSYVHDTu6n4/75+94UWvMMoFSwx9rVm8OBJLVpfcxQEqpOSPtEPn7HmXaxsCg12N1os5bxqajWudKOM1Ydw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/eslint": "5.18.1", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/eslint": "5.18.3", + "@typescript-eslint/utils": "^8.66.0", "ts-pattern": "^5.9.0", "zod": "^3.25.0 || ^4.0.0" }, @@ -1064,17 +1064,17 @@ } }, "node_modules/@eslint-react/var": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/@eslint-react/var/-/var-5.18.1.tgz", - "integrity": "sha512-w1OP5/EJ4ocGWSw+nSpZnfehlnAvfVxOrlgx7k+xTHACyoFQZZXrehOYC7M/0ArQA68sOXo0C1ymEfTJE30StQ==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/@eslint-react/var/-/var-5.18.3.tgz", + "integrity": "sha512-9nol88aB4PSyOouyh8toTZkuvYzIB1ZEQcLEW+yL3ausDHvFdN8zIxULMLetjdtcvmIoBLpOcW2dgJSwSCl+qg==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@typescript-eslint/scope-manager": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@typescript-eslint/scope-manager": "^8.66.0", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "ts-pattern": "^5.9.0" }, "engines": { @@ -1360,9 +1360,9 @@ } }, "node_modules/@mui/core-downloads-tracker": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-9.2.0.tgz", - "integrity": "sha512-+XMav+ZaXkZKUFUgzjrfMEedfyJKxxviAske2q8N8CWDMeqZdDU2lWMkiUPiB388hGaDqhwvOAwkrsc/pUyp8g==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-9.3.1.tgz", + "integrity": "sha512-IAyAFNQbT7hysJ9HXphiOmWJF7G1OglzHanqCgvQgH9LA2ydxtmaTBDbcBqw6euZesyShiwvpvbnYO1GY1AyXQ==", "license": "MIT", "funding": { "type": "opencollective", @@ -1370,22 +1370,22 @@ } }, "node_modules/@mui/material": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mui/material/-/material-9.2.0.tgz", - "integrity": "sha512-+YTRSgGKGrrRo2XJZXs7JRA6qHoHWvNtxyqxnrRJTBmIuLOUpxxh7m4G9lF4tWberxGFY+EqkkRPgJCl+fSMJg==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@mui/material/-/material-9.3.1.tgz", + "integrity": "sha512-NahAEGIXqS1K0bA4th1jeFxBguS59NOcLbMA0vU+fSaPWKjtwGBGGHeTwlc9PSmzMjOZKceeFWESB8fVHr31hA==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2", - "@mui/core-downloads-tracker": "^9.2.0", - "@mui/system": "^9.2.0", - "@mui/types": "^9.1.1", - "@mui/utils": "^9.2.0", + "@babel/runtime": "^7.29.7", + "@mui/core-downloads-tracker": "^9.3.1", + "@mui/system": "^9.3.0", + "@mui/types": "^9.3.0", + "@mui/utils": "^9.3.0", "@popperjs/core": "^2.11.8", "@types/react-transition-group": "^4.4.12", "clsx": "^2.1.1", "csstype": "^3.2.3", "prop-types": "^15.8.1", - "react-is": "^19.2.6", + "react-is": "^19.2.8", "react-transition-group": "^4.4.5" }, "engines": { @@ -1398,7 +1398,7 @@ "peerDependencies": { "@emotion/react": "^11.5.0", "@emotion/styled": "^11.3.0", - "@mui/material-pigment-css": "^9.2.0", + "@mui/material-pigment-css": "^9.3.0", "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react": "^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0" @@ -1419,13 +1419,13 @@ } }, "node_modules/@mui/private-theming": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-9.2.0.tgz", - "integrity": "sha512-w9wpyDxGPGnAACPB2hKhCDmILJIAvQxrfjUbIAEa0AznX1rOjaz5N+yB1uuw8ixnJcpEh/tPbD9oEe19wcWPHw==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-9.3.0.tgz", + "integrity": "sha512-ERvqk5pejf9aRnQcDILSWGtFmsEMiVxlQ4+xsVCjsEvmK0fV9BiVP/cQwAF5dwyDFbve4lTrlcgeFEecVzTNiA==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2", - "@mui/utils": "^9.2.0", + "@babel/runtime": "^7.29.7", + "@mui/utils": "^9.3.0", "prop-types": "^15.8.1" }, "engines": { @@ -1446,12 +1446,12 @@ } }, "node_modules/@mui/styled-engine": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-9.1.1.tgz", - "integrity": "sha512-neaYKdJfvEG54q8efHLJR7swpHG/gfSv9xGqW5iTSMsubD7yPCPFrhVBt284j1DOF3uZaaDJSHQL7gz6jGF21Q==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-9.3.0.tgz", + "integrity": "sha512-x9+KYxhjoHYZ4nioxdKnvQWdw0RScbhoZfQ4tv3Db742683U3wlYSp6zV6Us78dMFnKnyTrPTkQKyutp14gnKA==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2", + "@babel/runtime": "^7.29.7", "@emotion/cache": "^11.14.0", "@emotion/serialize": "^1.3.3", "@emotion/sheet": "^1.4.0", @@ -1480,16 +1480,16 @@ } }, "node_modules/@mui/system": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mui/system/-/system-9.2.0.tgz", - "integrity": "sha512-YvUJwKoGVtbnOm2PyPi5TvX2d1rOA6sqSpEWVs4WmXNIaFTuYmNUaVdU2o1NKUEe31URnD3E8ZVUMcsLQXwcYg==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@mui/system/-/system-9.3.0.tgz", + "integrity": "sha512-0l4LqHJxZj65xSrioniGsxm7VNoGXonPo203oZjhBUvIDPeBqRTb7Mqc45Qxs6sO6WGR7WE/9cJ6lb4lkvHkjg==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2", - "@mui/private-theming": "^9.2.0", - "@mui/styled-engine": "^9.1.1", - "@mui/types": "^9.1.1", - "@mui/utils": "^9.2.0", + "@babel/runtime": "^7.29.7", + "@mui/private-theming": "^9.3.0", + "@mui/styled-engine": "^9.3.0", + "@mui/types": "^9.3.0", + "@mui/utils": "^9.3.0", "clsx": "^2.1.1", "csstype": "^3.2.3", "prop-types": "^15.8.1" @@ -1520,12 +1520,12 @@ } }, "node_modules/@mui/types": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/@mui/types/-/types-9.1.1.tgz", - "integrity": "sha512-Zjt7u8wNvDg40rPTGoL+TnfkpuSKjwubsNSFRH1KAVZLcaV4I3AFNHIFbvH7p4F3alEibSbdd90xAgn5Rnfndg==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@mui/types/-/types-9.3.0.tgz", + "integrity": "sha512-2JSxyfpEFWNUB2vKs/T1BvkfyNisMHWph8bLMj8T0uHwmLl/0qfAwQkfwMT6kxLXN9uIum9AEbECXU8er3amIg==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2" + "@babel/runtime": "^7.29.7" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0" @@ -1537,17 +1537,17 @@ } }, "node_modules/@mui/utils": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-9.2.0.tgz", - "integrity": "sha512-OsUH5zhlSOM4xmLl53+agug1M1UyWb4zxFxWQCqwKTKUeQPvTENtg3JhrroBD2qpCLKsX5W/DYGERJ4mBUbc8g==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-9.3.0.tgz", + "integrity": "sha512-2HZdHwWJ6eB+7lVGSOHsByGw8jeRulT4g0NZ608Wb8Q57DE2jbNqrWPFuJsvkQQiBiTmlpvQL3i+/62zsiPrkw==", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.29.2", - "@mui/types": "^9.1.1", + "@babel/runtime": "^7.29.7", + "@mui/types": "^9.3.0", "@types/prop-types": "^15.7.15", "clsx": "^2.1.1", "prop-types": "^15.8.1", - "react-is": "^19.2.6" + "react-is": "^19.2.8" }, "engines": { "node": ">=14.0.0" @@ -1567,16 +1567,16 @@ } }, "node_modules/@mui/x-charts": { - "version": "9.10.1", - "resolved": "https://registry.npmjs.org/@mui/x-charts/-/x-charts-9.10.1.tgz", - "integrity": "sha512-GVVyuCllFkega4yJEIxDLcJCoFuvU9rkjt4PMcWrAWEQxKsaN2TNTY5CmcJ3NJBRSoe0oN3/dBeWBS2ul4t7FA==", + "version": "9.11.1", + "resolved": "https://registry.npmjs.org/@mui/x-charts/-/x-charts-9.11.1.tgz", + "integrity": "sha512-5Z6fzVm0NvD4auoyGZopp1wwg1mMVDXjbPEi4jahdxn14EzIAB99kKw4NUkKtmSaZJ6DiBU7zJXQAec1IZTaLA==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.29.7", - "@mui/utils": "^9.2.0", - "@mui/x-charts-vendor": "^9.4.0", + "@mui/utils": "^9.3.0", + "@mui/x-charts-vendor": "^9.11.1", "@mui/x-internal-gestures": "^9.10.0", - "@mui/x-internals": "^9.10.1", + "@mui/x-internals": "^9.11.0", "bezier-easing": "^3.0.1", "clsx": "^2.1.1", "prop-types": "^15.8.1", @@ -1604,9 +1604,9 @@ } }, "node_modules/@mui/x-charts-vendor": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/@mui/x-charts-vendor/-/x-charts-vendor-9.4.0.tgz", - "integrity": "sha512-1/p3RmRPGlzCtvpWwjwBCRoxJW1eDoQdml8MWq71Q1Oq0n36mTkFjzPTbcaJ52jigIIIQrMloqTUkhmEXwwBMg==", + "version": "9.11.1", + "resolved": "https://registry.npmjs.org/@mui/x-charts-vendor/-/x-charts-vendor-9.11.1.tgz", + "integrity": "sha512-Q7cuPaKZLLsyvtEiP+ENG7xLlPatXyNQ7u5WkbAcAIZwyMK8MJw4MPgJiyWyfy9eVQO/IkRLIupabvu8cA2jPA==", "license": "MIT AND ISC", "dependencies": { "@babel/runtime": "^7.29.7", @@ -1632,7 +1632,7 @@ "d3-time": "^3.1.0", "d3-time-format": "^4.1.0", "d3-timer": "^3.0.1", - "flatqueue": "^3.0.0", + "flatqueue": "^3.1.0", "internmap": "^2.0.3" } }, @@ -1647,14 +1647,14 @@ } }, "node_modules/@mui/x-internals": { - "version": "9.10.1", - "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-9.10.1.tgz", - "integrity": "sha512-pKFVzFQHB34TuMG3gOVx+LfIR8VBsi/ZhX/erRX2WOXu+ewEYGvdeK1mW9hLe7e2v3uyUbgT8RNeN0cy10cDjg==", + "version": "9.11.0", + "resolved": "https://registry.npmjs.org/@mui/x-internals/-/x-internals-9.11.0.tgz", + "integrity": "sha512-JjKe9k1+gVWNPwMTZLNSc92eVmoZqP5Xq3Ui6mJkstotUrbWIZC0o9+4AfTR1lYqWwnKmqm+VtLLVCa7MEBXWQ==", "license": "MIT", "dependencies": { "@babel/runtime": "^7.29.7", "@base-ui/utils": "^0.3.1", - "@mui/utils": "^9.2.0", + "@mui/utils": "^9.3.0", "reselect": "^5.2.0", "use-sync-external-store": "^1.6.0" }, @@ -1971,9 +1971,9 @@ "license": "MIT" }, "node_modules/@types/d3-geo": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz", - "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.1.tgz", + "integrity": "sha512-65Emv9fQiQQqphLlRkuQ5ypPsOmWPhtBGCMv61JDPEPMvsx+gzhGf74yw1a78xFKPj6zw4AgQICJoQv0vK9M2w==", "license": "MIT", "dependencies": { "@types/geojson": "*" @@ -2115,17 +2115,17 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.65.0.tgz", - "integrity": "sha512-IEgob78X12rHpUmtcwFsXhZdVGJtwTVP8FiCLZkR6GlYVrl2PcuB+KhCE5BlVC/eQpQnu8WXRtkHZuPar+gCRA==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.66.0.tgz", + "integrity": "sha512-p088eaGrzYz1s+7cov0aMOCkNGTJlVxF4jgubf28c8L0Cv9Rloj8YBHnv4hXLq6IIEE1AsjNWavO+k+8kP2Y0A==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/type-utils": "8.65.0", - "@typescript-eslint/utils": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.66.0", + "@typescript-eslint/type-utils": "8.66.0", + "@typescript-eslint/utils": "8.66.0", + "@typescript-eslint/visitor-keys": "8.66.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -2138,7 +2138,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.65.0", + "@typescript-eslint/parser": "^8.66.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } @@ -2154,16 +2154,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.65.0.tgz", - "integrity": "sha512-CZ4nMxWwgu1HEEFNkeaCptra9QCtkmKdgf3sWh1rl1trIhmxLilgTV4cwcbQ4wemnT4sWQN8CaKOmdYx+g2gMA==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.66.0.tgz", + "integrity": "sha512-X6ypGChaWYk6PBtUg2BwuTZEFFcHJAtGTVJ9/lCTOufhZ4i9fNolQNnktq+kkMCwMj7V8Svsq7+TxSDslmhE0g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.66.0", + "@typescript-eslint/types": "8.66.0", + "@typescript-eslint/typescript-estree": "8.66.0", + "@typescript-eslint/visitor-keys": "8.66.0", "debug": "^4.4.3" }, "engines": { @@ -2179,14 +2179,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.65.0.tgz", - "integrity": "sha512-SxnPhbTsGahizDgbu7oqFH/xVtzIqMd/s+WtnSxNxJZJpLbdT5IPdzg8EZxO3+PoKahXmwJLeNQOpKJb3/bi7Q==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.66.0.tgz", + "integrity": "sha512-7MthGPTt4BP69lSryqpqq8HQqxuzynssckL/jyDyk3+TNMQ3y2jFWkptCrktWvBrP+EH787Nl5N5Qpw7WZg+5g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", + "@typescript-eslint/tsconfig-utils": "^8.66.0", + "@typescript-eslint/types": "^8.66.0", "debug": "^4.4.3" }, "engines": { @@ -2201,14 +2201,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.65.0.tgz", - "integrity": "sha512-Esbl8OSYiVxBokYgWPf7VVWg/BE798wXhimnn9ML9Pt5qoDf8bfQlgjlKXR/k98+AcNzlLKYrpCcrcuZ9DZLgg==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.66.0.tgz", + "integrity": "sha512-8TGcH25j9zqJ/IULB/ppyhRvxA8QYfFEZ7nfbg6/BN9spDgb8fPWQXlE5l8TWBL50EtUx007uZ1o9VOwrq2/9g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0" + "@typescript-eslint/types": "8.66.0", + "@typescript-eslint/visitor-keys": "8.66.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2219,9 +2219,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.65.0.tgz", - "integrity": "sha512-j6GzGqCiRdA7Qhur2VVmKZAkBLfnHFQfx4TaJGL9RMveZqCo48jSHHO0DTgizEnGhtWnqmbtCUSrqSkdiY/0Hg==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.66.0.tgz", + "integrity": "sha512-9D5gLYZG4rOjcoag8MQ/fWI8WqA9wcPDyOGyWtWFhvM1lHRbliqUSPIY5J3zqCU1tvSwzXxnnjhQhz5Ne7mJ4g==", "dev": true, "license": "MIT", "engines": { @@ -2236,15 +2236,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.65.0.tgz", - "integrity": "sha512-YjaZ7PRI5qY7ax2L3PbvX0rRyGtipAReCWs0mhhDBHjH/vl0g0BonaGXrKdKpMbIIsMIwDgbk/xzkBTyAltS5g==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.66.0.tgz", + "integrity": "sha512-LG2dWfjZQQp0ADtAu/EWJVayefGL2UEZ3CDeI44D9v3rXB/WYUqE/jpO28KrEKul5AySrmI+Zh1v6v+xW2U9+g==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/utils": "8.65.0", + "@typescript-eslint/types": "8.66.0", + "@typescript-eslint/typescript-estree": "8.66.0", + "@typescript-eslint/utils": "8.66.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -2261,9 +2261,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.65.0.tgz", - "integrity": "sha512-JSSwWNy+H0E/01jJEM+hrX6N0OFDzFzeIhHFSAS01tlVaevpG8cFyYRPhS5yjGOvBUx3sqQHVMjCL1CAZZMxBg==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.66.0.tgz", + "integrity": "sha512-H6gcYaSDOyvL3AD/jHUtUFo2jqGgn/F6nuyuZSu0QTesxL+cP4dQoIMrODRofuJC09g64+WgZ6tE19Y1N2YIFQ==", "dev": true, "license": "MIT", "engines": { @@ -2275,16 +2275,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.65.0.tgz", - "integrity": "sha512-JboAE2swaYt4tb1fHhHTABE2K+OLy09XfcTbhnk4Pw96f9dd2e9iYsJ28gBggHlo5z5x1rkyWvcPoTuNTd4oGg==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.66.0.tgz", + "integrity": "sha512-8/x4INiiQb10jGgXYD7116/zQ+OL84ZIFn0za68wwFHCanT/VLbBEroWht8RV8fn0/ZCAoazHLQgwUC0UQcDfg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.65.0", - "@typescript-eslint/tsconfig-utils": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/project-service": "8.66.0", + "@typescript-eslint/tsconfig-utils": "8.66.0", + "@typescript-eslint/types": "8.66.0", + "@typescript-eslint/visitor-keys": "8.66.0", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -2316,16 +2316,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.65.0.tgz", - "integrity": "sha512-gXiwIHsYreboxeJucHKPvgwl7dXt50mF8s1/c00cP/WoVTyWKFdtfhRWwZiXYFU5H2O8vVoSLNrexFZjYS/SGA==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.66.0.tgz", + "integrity": "sha512-jasearZPolBw5NJNYGMwxzHMF83niVWmMU1VdHzG1CyfI2VS7f7nZltnKtHcg20hW+7Uo5GfK4MeDPoU3qI8EA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0" + "@typescript-eslint/scope-manager": "8.66.0", + "@typescript-eslint/types": "8.66.0", + "@typescript-eslint/typescript-estree": "8.66.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2340,13 +2340,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.65.0.tgz", - "integrity": "sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.66.0.tgz", + "integrity": "sha512-dkKR8q+lKciskj1Y3vthHktl+3cMLWGyVUP23bRiPZ5O9BRT++4EqDDV+TVeIKBL1VXVEqrJlz8MYbcnvJcAlg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/types": "8.66.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -3362,18 +3362,18 @@ } }, "node_modules/eslint-plugin-react-dom": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-dom/-/eslint-plugin-react-dom-5.18.1.tgz", - "integrity": "sha512-0PakQ8iPZ2yq4zi99T28l+NlefxrE/92CpIQ1SbbFT2fqNIjRz1L+ewWIzAsMdyUUjQzcCj8domEJ36y20K8Zw==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-dom/-/eslint-plugin-react-dom-5.18.3.tgz", + "integrity": "sha512-iGZys8sreyijVkaWG41HBugjgduh4kSOu4Jyk2wLOjo7Ssn9hga2B6LOLoAP63IoFnHWs9TDVv7Tb0zEupvcSQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/jsx": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/jsx": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "compare-versions": "^6.1.1" }, "engines": { @@ -3405,19 +3405,19 @@ } }, "node_modules/eslint-plugin-react-jsx": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-jsx/-/eslint-plugin-react-jsx-5.18.1.tgz", - "integrity": "sha512-bT8/pcYwp1Anyjnvjqz1jRJBGdo4ydXlR6hciyQUiHzOxAWpIOP61ggAVgbA9JU3qOr4/hldMpGZHdJP5pqfgw==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-jsx/-/eslint-plugin-react-jsx-5.18.3.tgz", + "integrity": "sha512-/qNyr4eYy4RNgIown6grxmJUNx1wYWqXd0wCd1P1Rc6wbQTwGB6bpnZMXMTOBpPrs0mgAgCPAscFOV/mvm6MAw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/core": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/jsx": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0" + "@eslint-react/ast": "5.18.3", + "@eslint-react/core": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/jsx": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0" }, "engines": { "node": ">=22.0.0" @@ -3428,19 +3428,19 @@ } }, "node_modules/eslint-plugin-react-naming-convention": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-naming-convention/-/eslint-plugin-react-naming-convention-5.18.1.tgz", - "integrity": "sha512-fN6U+Q5QOZ7ZJlTn7XsKB0NvRx0qDp+7tV2Zht3nhtKQ2tl4cxFz8QV78l++FqMtBtCNfxTiInuo5u5Xt8Ymjw==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-naming-convention/-/eslint-plugin-react-naming-convention-5.18.3.tgz", + "integrity": "sha512-dLVqpOtFbw7juVrfWvHqnS266h+6eF99opK9d1JlnXbjMSjWFlteIsQ7028cjNkgkObdZhLx50CxCJ0EnBfnyQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/core": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/core": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "ts-pattern": "^5.9.0" }, "engines": { @@ -3462,19 +3462,19 @@ } }, "node_modules/eslint-plugin-react-rsc": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-rsc/-/eslint-plugin-react-rsc-5.18.1.tgz", - "integrity": "sha512-s792p16e8YNhGA3vgIseDxdrwTuNb+gHn0Gau5PsTZ42d8Zuvi3ZJWLfkAZfvMfblaDev6tSAv2fZzWB0brEIg==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-rsc/-/eslint-plugin-react-rsc-5.18.3.tgz", + "integrity": "sha512-7+NVV+PEQ2Jst/05AY9RlqeFgd2gRQBNf6vZ32T8qMOR19YVv6qATTPVOW1NBTKHC4dHjUl7XXohWQ+FEWpcfw==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/core": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0" + "@eslint-react/ast": "5.18.3", + "@eslint-react/core": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0" }, "engines": { "node": ">=22.0.0" @@ -3485,19 +3485,19 @@ } }, "node_modules/eslint-plugin-react-web-api": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-web-api/-/eslint-plugin-react-web-api-5.18.1.tgz", - "integrity": "sha512-Az8kJEM2Bk8PhJR3UBLWBVZkir/2l+qX545PTi8Kx3JdDlK6IlU1vz69/B5tJ/YXo6cJKP3bKTqaAzcT5ikl8g==", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-web-api/-/eslint-plugin-react-web-api-5.18.3.tgz", + "integrity": "sha512-HlOCcicEaNp2I7jM9fTtuhZg61EFvdurRhuxnRtRP4X7qRroS0nZ683zJ1I+jJ1F+LkATwUWiHg4WMvsQ00ePQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/core": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "@eslint-react/ast": "5.18.3", + "@eslint-react/core": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "birecord": "^0.1.2", "ts-pattern": "^5.9.0" }, @@ -3510,23 +3510,23 @@ } }, "node_modules/eslint-plugin-react-x": { - "version": "5.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-react-x/-/eslint-plugin-react-x-5.18.1.tgz", - "integrity": "sha512-i0a17vUMoMhiHjcXz4IYfO42Br6xQkbu+PqVftUHM49i1bbYD+22GFMgNmKkLCMNKXZSQhocKvIKUwhMIbFTQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-react/ast": "5.18.1", - "@eslint-react/core": "5.18.1", - "@eslint-react/eslint": "5.18.1", - "@eslint-react/jsx": "5.18.1", - "@eslint-react/shared": "5.18.1", - "@eslint-react/var": "5.18.1", - "@typescript-eslint/scope-manager": "^8.65.0", - "@typescript-eslint/type-utils": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", - "@typescript-eslint/typescript-estree": "^8.65.0", - "@typescript-eslint/utils": "^8.65.0", + "version": "5.18.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-x/-/eslint-plugin-react-x-5.18.3.tgz", + "integrity": "sha512-hkqWrDcp2wzsEHxhPeMkD8bB5yU5cCQMLeJSQ78r8sNZtktVGmV5YU+7yTUMKfApK+XkXLa7dAujdwhhS1fTiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-react/ast": "5.18.3", + "@eslint-react/core": "5.18.3", + "@eslint-react/eslint": "5.18.3", + "@eslint-react/jsx": "5.18.3", + "@eslint-react/shared": "5.18.3", + "@eslint-react/var": "5.18.3", + "@typescript-eslint/scope-manager": "^8.66.0", + "@typescript-eslint/type-utils": "^8.66.0", + "@typescript-eslint/types": "^8.66.0", + "@typescript-eslint/typescript-estree": "^8.66.0", + "@typescript-eslint/utils": "^8.66.0", "compare-versions": "^6.1.1", "string-ts": "^2.3.1", "ts-api-utils": "^2.5.0", @@ -4037,9 +4037,9 @@ } }, "node_modules/globals": { - "version": "17.8.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.8.0.tgz", - "integrity": "sha512-Zz/LMDZScFmkakeL2cTHzf+PbWKdpU3uclqkZT7TjDG58j5WPt0PpA+n9uPI24fZtlw07q0OtEi84K+umsRzqQ==", + "version": "17.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.9.0.tgz", + "integrity": "sha512-m/MvAW61QVU5VDNF1Vj8axt016h8w7L5TU1e9zlab7XIttAT2YAlCwl75K1fOqvMM9apmD7lbCIRhpfkhmxhCg==", "dev": true, "license": "MIT", "engines": { @@ -5274,9 +5274,9 @@ } }, "node_modules/react-is": { - "version": "19.2.7", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.7.tgz", - "integrity": "sha512-kZFnouyVv7eP/Phmrlo9FK+zcAdriZJvzxXHF1Sl1P377WSGe2G/JxVolhTrB/jeV47lKImhNUsijjHAAbcl/A==", + "version": "19.2.8", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.8.tgz", + "integrity": "sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==", "license": "MIT" }, "node_modules/react-transition-group": { @@ -5729,9 +5729,9 @@ "license": "MIT" }, "node_modules/tsx": { - "version": "4.23.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.1.tgz", - "integrity": "sha512-GQHnkIfxyx1wYCOS/wonik5MVRZU9hi1TEZmzGZSCJB1y9YgoZ8H6itNE/u4suE+yLmOzuE4E5S4TZ/ZX2wcWQ==", + "version": "4.23.11", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.11.tgz", + "integrity": "sha512-Ry2oTEUnhBdeEdWIztY8kf3/nBGnPnjMLVGL0YfdRXMORuPER5NlKmayqxtxRxwB1xBN+RivRaJfe7PM1rtiyw==", "dev": true, "license": "MIT", "dependencies": { @@ -5790,16 +5790,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.65.0.tgz", - "integrity": "sha512-/ggrHAwyjENDusvyxbuqxAC2dTnZg/Z8F+fgQtYIz+L6n/9HfSlEZcFGV/NsMNa6CkGk0xUjUAFwC0vHOflvIA==", + "version": "8.66.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.66.0.tgz", + "integrity": "sha512-QlEbBPz/RuJ1XUHj29nm3t0F/O/cSlEnntozqPOYHnnTGAXFamnMBu5i9Vn6vhUPHGAjR+Vl+5J8vPN/BMUrJw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.65.0", - "@typescript-eslint/parser": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/utils": "8.65.0" + "@typescript-eslint/eslint-plugin": "8.66.0", + "@typescript-eslint/parser": "8.66.0", + "@typescript-eslint/typescript-estree": "8.66.0", + "@typescript-eslint/utils": "8.66.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -5891,16 +5891,16 @@ } }, "node_modules/vite": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.0.tgz", - "integrity": "sha512-pn+CFpM0lwDeKwmOq1ZaBK/9sjorZcgqxki6MbY/jPEVd9vichIlmlD4HmQ5wdP5EgqQCFRaACBxMC7uEGc6lQ==", + "version": "8.2.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.2.1.tgz", + "integrity": "sha512-EU/eS7BH3XROHh2YnBefjM6DBKA6ZeMZEYQbj7NLWg5wHYlhB8B/Mayd5XsgWq+NFYccDOTemRpdETWR6Ka/lw==", "dev": true, "license": "MIT", "dependencies": { "lightningcss": "^1.33.0", "picomatch": "^4.0.5", - "postcss": "^8.5.23", - "rolldown": "~1.2.0", + "postcss": "^8.5.25", + "rolldown": "~1.2.1", "tinyglobby": "^0.2.17" }, "bin": { diff --git a/ui/package.json b/ui/package.json index fe1a1cf7..52af2e49 100644 --- a/ui/package.json +++ b/ui/package.json @@ -10,7 +10,7 @@ "test": "tsx scripts/test.ts" }, "devDependencies": { - "@eslint-react/eslint-plugin": "^5.18.1", + "@eslint-react/eslint-plugin": "^5.18.3", "@eslint/js": "^10.0.1", "@modelcontextprotocol/ext-apps": "^1.7.5", "@modelcontextprotocol/sdk": "^1.30.0", @@ -23,21 +23,21 @@ "eslint-define-config": "^2.1.0", "eslint-plugin-react-hooks": "^7.1.1", "eslint-plugin-react-refresh": "^0.5.3", - "globals": "^17.8.0", + "globals": "^17.9.0", "jiti": "^2.7.0", "prettier": "^3.9.6", - "tsx": "^4.23.1", + "tsx": "^4.23.11", "typescript": "^6.0.3", - "typescript-eslint": "^8.65.0", - "vite": "^8.2.0", + "typescript-eslint": "^8.66.0", + "vite": "^8.2.1", "vite-plugin-singlefile": "^2.3.3", "vitest": "^4.1.10" }, "dependencies": { "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.1", - "@mui/material": "^9.2.0", - "@mui/x-charts": "^9.10.1", + "@mui/material": "^9.3.1", + "@mui/x-charts": "^9.11.1", "react": "^19.2.8", "react-dom": "^19.2.8", "zod": "^4.4.3"