@abhishekzambare/mui 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mui.cjs +38 -0
- package/dist/mui.js +6112 -16488
- package/package.json +8 -4
package/dist/mui.cjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require("react");l=c(l,1);let u=require("@mui/material"),d=require("react/jsx-runtime"),f=require("@emotion/styled");f=c(f,1);let p=require("@emotion/react"),m=require("react/compiler-runtime");function h(e){return{MuiCssBaseline:{styleOverrides:{html:{...e.palette.mode===`dark`&&{backgroundColor:e.palette.background.paper}}}},MuiSvgIcon:{defaultProps:{fontSize:`small`},styleOverrides:{root:{}}},MuiIcon:{defaultProps:{fontSize:`small`,color:`action`}},MuiFormLabel:{styleOverrides:{root:{fontSize:`11px`}}},MuiInputLabel:{styleOverrides:{root:{marginBottom:`5px`,textTransform:`capitalize`}}},MuiLink:{styleOverrides:{root:{textDecoration:`none`}}},MuiInputBase:{styleOverrides:{root:{"& input:-webkit-autofill":{WebkitBoxShadow:`0 0 0 100px #aaf inset`,WebkitTextFillColor:e.palette.text.primary},".MuiOutlinedInput-notchedOutline":{border:`unset !important`,outline:`none`,borderRadius:`unset`,borderColor:`unset !important`},"&.Mui-focused":{outline:`none`},boxShadow:e.shadows[1],backgroundColor:e.palette.action.hover,".Mui-error":{boxShadow:`0px 0px 0px 1px rgba(255, 158, 171, 0.2),0px 0px 0px 0px rgba(255, 158, 171, 0.14),0px 0px 0px 0px rgba(255, 158, 171, 0.12)`,color:e.palette.error.light},".MuiInputBase-input":{padding:`0px 15px`,fontSize:`12px`,height:`30px !important`,alignContent:`center`}}}},MuiTextField:{styleOverrides:{root:{}}},MuiSelect:{styleOverrides:{root:{".MuiSelect-select":{}}}},MuiPickersTextField:{styleOverrides:{root:{boxShadow:e.shadows[1],borderRadius:e.shape.borderRadius,backgroundColor:e.palette.action.hover,".MuiPickersInputBase-sectionsContainer":{padding:`6px`},".MuiPickersInputBase-root":{fontSize:`12px`},".MuiPickersOutlinedInput-notchedOutline":{border:`unset !important`,outline:`none`,borderRadius:`unset`,borderColor:`unset !important`}}}},MuiBackdrop:{styleOverrides:{root:{backgroundColor:(0,u.alpha)(e.palette.grey[e.palette.mode===`light`?900:600],.2)}}},MuiButton:{defaultProps:{variant:`contained`},styleOverrides:{root:{textWrap:`noWrap`,padding:`3px 16px !important`,textTransform:`capitalize`},contained:{boxShadow:e.shadows[1],"&:hover":{boxShadow:e.shadows[1]}},outlined:{boxShadow:4,border:`none`,"&:hover":{border:`none`}}}},MuiIconButton:{styleOverrides:{root:{padding:`4px`,boxShadow:e.shadows[1]}}},MuiCard:{styleOverrides:{root:{boxShadow:e.shadows[1]}}},MuiPaper:{styleOverrides:{root:{borderRadius:e.shape.borderRadius,boxShadow:e.shadows[1],backgroundImage:`none !important`}},defaultProps:{elevation:0}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:e.palette.background.paper,color:e.palette.text.secondary,boxShadow:e.shadows[1],padding:`5px 15px`},arrow:{color:e.palette.background.paper}},defaultProps:{TransitionProps:{}}},MuiPopover:{styleOverrides:{paper:{marginTop:`10px`,boxShadow:e.shadows[1]}},defaultProps:{TransitionProps:{}}},MuiMenu:{styleOverrides:{root:{".MuiMenu-paper":{padding:`5px 0`,boxShadow:e.shadows[1]}}},defaultProps:{TransitionProps:{}}},MuiMenuItem:{styleOverrides:{root:{"&:hover":{boxShadow:e.shadows[1]},"&.Mui-selected":{boxShadow:e.shadows[1]},margin:`5px !important`,borderRadius:e.shape.borderRadius,padding:`5px 15px !important`,"&:last-child":{marginBottom:`0px !important`},"&:first-child":{marginTop:`0px !important`},".MuiListItemIcon-root":{minWidth:`25px`},".MuiList-root":{padding:`0px !important`,boxShadow:e.shadows[1]}}}},MuiDialog:{styleOverrides:{root:{".MuiPaper-root":{width:`100%`,boxShadow:e.shadows[1]}}}},MuiDialogContent:{styleOverrides:{root:{padding:`10px !important`}}},MuiDialogActions:{styleOverrides:{root:{padding:`5px 10px !important`}}},MuiTabs:{styleOverrides:{root:{minHeight:`0px`},indicator:{backgroundColor:`transparent`}}},MuiTab:{styleOverrides:{root:{backgroundColor:e.palette.action.hover,borderRadius:e.shape.borderRadius,textTransform:`capitalize`,minHeight:`0px`,padding:`5px 10px`,boxShadow:e.shadows[1],"&.Mui-selected":{color:e.palette.text.primary,backgroundColor:e.palette.secondary.main}}}},MuiChip:{styleOverrides:{root:{padding:`6px 8px`,boxShadow:e.shadows[1],textTransform:`capitalize`,".MuiChip-label":{fontSize:`10px !important`}},filled:{border:`none`},outlined:{}}},MuiAccordion:{styleOverrides:{root:{"&::before":{height:`0px`},"&.MuiPaper-root":{boxShadow:`none !important`},".MuiAccordionSummary-root":{borderRadius:e.shape.borderRadius,marginBottom:`10px`,backgroundColor:e.palette.action.hover,minHeight:`35px !important`},".MuiAccordionSummary-content":{"& .MuiTypography-root":{},"&.Mui-expanded":{margin:`10px 0`}},".MuiAccordionDetails-root":{padding:e.shape.borderRadius,marginTop:`0px`,backgroundColor:e.palette.action.hover,borderRadius:e.shape.borderRadius}}}},MuiSimpleTreeView:{styleOverrides:{root:{".MuiTreeItem-root":{".MuiTreeItem-content":{padding:`1px 0px`}}}}},MuiRadio:{styleOverrides:{root:{padding:`5px`,margin:`0px 10px`,marginRight:`5px`}}},MuiFormControl:{styleOverrides:{root:{height:`unset !important`}}},MuiBarElement:{styleOverrides:{root:{rx:5}}},MuiChartsLegend:{styleOverrides:{root:{".MuiChartsLegend-mark":{rx:10}}}},MuiChartsAxis:{styleOverrides:{root:{".MuiChartsAxis-tickLabel":{color:e.palette.text.secondary,fontWeight:600},".MuiChartsAxis-label":{color:e.palette.text.secondary,fontWeight:600}}}},MuiAvatar:{styleOverrides:{root:{boxShadow:e.shadows[1],backgroundColor:e.palette.secondary.main,color:e.palette.text.primary}}}}}var g={slate:{50:`#f8fafc`,100:`#f1f5f9`,200:`#e2e8f0`,300:`#cbd5e1`,400:`#94a3b8`,500:`#64748b`,600:`#475569`,700:`#334155`,800:`#1e293b`,900:`#0f172a`,950:`#020617`},gray:{50:`#f9fafb`,100:`#f3f4f6`,200:`#e5e7eb`,300:`#d1d5db`,400:`#9ca3af`,500:`#6b7280`,600:`#4b5563`,700:`#374151`,800:`#1f2937`,900:`#111827`,950:`#030712`},zinc:{50:`#fafafa`,100:`#f4f4f5`,200:`#e4e4e7`,300:`#d4d4d8`,400:`#a1a1aa`,500:`#71717a`,600:`#52525b`,700:`#3f3f46`,800:`#27272a`,900:`#18181b`,950:`#09090b`},neutral:{50:`#fafafa`,100:`#f5f5f5`,200:`#e5e5e5`,300:`#d4d4d4`,400:`#a3a3a3`,500:`#737373`,600:`#525252`,700:`#404040`,800:`#262626`,900:`#171717`,950:`#0a0a0a`},stone:{50:`#fafaf9`,100:`#f5f5f4`,200:`#e7e5e4`,300:`#d6d3d1`,400:`#a8a29e`,500:`#78716c`,600:`#57534e`,700:`#44403c`,800:`#292524`,900:`#1c1917`,950:`#0c0a09`},red:{50:`#fef2f2`,100:`#fee2e2`,200:`#fecaca`,300:`#fca5a5`,400:`#f87171`,500:`#ef4444`,600:`#dc2626`,700:`#b91c1c`,800:`#991b1b`,900:`#7f1d1d`,950:`#450a0a`},orange:{50:`#fff7ed`,100:`#ffedd5`,200:`#fed7aa`,300:`#fdba74`,400:`#fb923c`,500:`#f97316`,600:`#ea580c`,700:`#c2410c`,800:`#9a3412`,900:`#7c2d12`,950:`#431407`},amber:{50:`#fffbeb`,100:`#fef3c7`,200:`#fde68a`,300:`#fcd34d`,400:`#fbbf24`,500:`#f59e0b`,600:`#d97706`,700:`#b45309`,800:`#92400e`,900:`#78350f`,950:`#451a03`},yellow:{50:`#fefce8`,100:`#fef9c3`,200:`#fef08a`,300:`#fde047`,400:`#facc15`,500:`#eab308`,600:`#ca8a04`,700:`#a16207`,800:`#854d0e`,900:`#713f12`,950:`#422006`},lime:{50:`#f7fee7`,100:`#ecfccb`,200:`#d9f99d`,300:`#bef264`,400:`#a3e635`,500:`#84cc16`,600:`#65a30d`,700:`#4d7c0f`,800:`#3f6212`,900:`#365314`,950:`#1a2e05`},green:{50:`#f0fdf4`,100:`#dcfce7`,200:`#bbf7d0`,300:`#86efac`,400:`#4ade80`,500:`#22c55e`,600:`#16a34a`,700:`#15803d`,800:`#166534`,900:`#14532d`,950:`#052e16`},emerald:{50:`#ecfdf5`,100:`#d1fae5`,200:`#a7f3d0`,300:`#6ee7b7`,400:`#34d399`,500:`#10b981`,600:`#059669`,700:`#047857`,800:`#065f46`,900:`#064e3b`,950:`#022c22`},teal:{50:`#f0fdfa`,100:`#ccfbf1`,200:`#99f6e4`,300:`#5eead4`,400:`#2dd4bf`,500:`#14b8a6`,600:`#0d9488`,700:`#0f766e`,800:`#115e59`,900:`#134e4a`,950:`#042f2e`},cyan:{50:`#ecfeff`,100:`#cffafe`,200:`#a5f3fc`,300:`#67e8f9`,400:`#22d3ee`,500:`#06b6d4`,600:`#0891b2`,700:`#0e7490`,800:`#155e75`,900:`#164e63`,950:`#083344`},sky:{50:`#f0f9ff`,100:`#e0f2fe`,200:`#bae6fd`,300:`#7dd3fc`,400:`#38bdf8`,500:`#0ea5e9`,600:`#0284c7`,700:`#0369a1`,800:`#075985`,900:`#0c4a6e`,950:`#082f49`},blue:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`},indigo:{50:`#eef2ff`,100:`#e0e7ff`,200:`#c7d2fe`,300:`#a5b4fc`,400:`#818cf8`,500:`#6366f1`,600:`#4f46e5`,700:`#4338ca`,800:`#3730a3`,900:`#312e81`,950:`#1e1b4b`},violet:{50:`#f5f3ff`,100:`#ede9fe`,200:`#ddd6fe`,300:`#c4b5fd`,400:`#a78bfa`,500:`#8b5cf6`,600:`#7c3aed`,700:`#6d28d9`,800:`#5b21b6`,900:`#4c1d95`,950:`#2e1065`},purple:{50:`#faf5ff`,100:`#f3e8ff`,200:`#e9d5ff`,300:`#d8b4fe`,400:`#c084fc`,500:`#a855f7`,600:`#9333ea`,700:`#7e22ce`,800:`#6b21a8`,900:`#581c87`,950:`#2d0a4e`},fuchsia:{50:`#fdf4ff`,100:`#fae8ff`,200:`#f5d0fe`,300:`#f0abfc`,400:`#e879f9`,500:`#d946ef`,600:`#c026d3`,700:`#a21caf`,800:`#86198f`,900:`#701a75`,950:`#4a044e`},pink:{50:`#fdf2f8`,100:`#fce7f3`,200:`#fbcfe8`,300:`#f9a8d4`,400:`#f472b6`,500:`#ec4899`,600:`#db2777`,700:`#be185d`,800:`#9d174d`,900:`#831843`,950:`#500724`},rose:{50:`#fff1f2`,100:`#ffe4e6`,200:`#fecdd3`,300:`#fda4af`,400:`#fb7185`,500:`#f43f5e`,600:`#e11d48`,700:`#be123c`,800:`#9f1239`,900:`#881337`,950:`#4c0519`},default:{50:`#eff6ff`,100:`#dbeafe`,200:`#bfdbfe`,300:`#93c5fd`,400:`#60a5fa`,500:`#3b82f6`,600:`#2563eb`,700:`#1d4ed8`,800:`#1e40af`,900:`#1e3a8a`,950:`#172554`}},_=[`default`,`fuchsia`,`purple`,`violet`,`cyan`,`teal`,`emerald`,`green`,`lime`,`red`,`rose`,`pink`,`indigo`,`blue`,`sky`,`yellow`,`amber`,`orange`,`stone`,`neutral`,`zinc`,`gray`,`slate`],v=()=>_.filter(e=>![`default`,`stone`,`neutral`,`zinc`,`gray`,`slate`].includes(e))[Math.floor(Math.random()*_.filter(e=>![`default`,`stone`,`neutral`,`zinc`,`gray`,`slate`].includes(e)).length)],y={lightShade:[200,200,200],mainShade:[300,300,300],darkShade:[400,400,400]},b={lightShade:[300,300,300],mainShade:[400,400,400],darkShade:[500,500,500]},x={typography:{fontSize:12,fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`,fontWeightLight:`600`,fontWeightRegular:`600`,fontWeightMedium:`600`,fontWeightBold:`600`,h1:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},h2:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},h3:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},h4:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},h5:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},h6:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},subtitle1:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},subtitle2:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},body1:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},body2:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},caption:{fontSize:`11px`,fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},overline:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`},button:{fontFamily:`"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"`}}},S=()=>{let e=(0,u.useTheme)(),[t,n]=(0,l.useState)(`light`),[r,i]=(0,l.useState)(`default`),[a,o]=(0,l.useState)(`default`),[s,c]=(0,l.useState)(`mainShade`),[d,f]=(0,l.useState)(`mainShade`),p=`50`,m=`50`,_=`50`,S=`50`,C=`50`,w=`50`,T=t===`light`?y:b;[p,m,_]=T[s],[S,C,w]=T[d];let E=t===`light`?g.neutral[600]:g.neutral[100],D=()=>({...e,typography:x.typography,shadows:[`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`,`none`],shape:{...e.shape,borderRadius:`30px !important`},transitions:{...e.transitions,duration:{...e.transitions.duration,shortest:1e3,shorter:1e3,short:1e3,standard:1e3,complex:1e3,enteringScreen:1e3,leavingScreen:1e3}},components:h(e),palette:{...e.palette,mode:t===`light`?`light`:`dark`,common:{black:g.neutral[700],white:g.neutral[100]},text:{primary:E,secondary:t===`light`?g.neutral[500]:g.neutral[200],disabled:g.neutral[400]},background:{default:t===`light`?g[r][100]:(0,u.alpha)(g[r][900],.2),paper:t===`light`?g.neutral[50]:g.neutral[800]},primary:{light:g.indigo[p],main:g.indigo[m],dark:g.indigo[_],contrastText:E},secondary:{light:g.lime[S],main:g.lime[C],dark:g.lime[w],contrastText:E},info:{...e.palette.info,light:g.sky[p],main:g.sky[m],dark:g.sky[_],contrastText:E},success:{...e.palette.success,light:g.emerald[p],main:g.emerald[m],dark:g.emerald[_],contrastText:E},warning:{...e.palette.warning,light:g.amber[p],main:g.amber[m],dark:g.amber[_],contrastText:E},error:{...e.palette.error,light:g.rose[p],main:g.rose[m],dark:g.rose[_],contrastText:E},grey:{...g.neutral,A100:g.neutral[100],A200:g.neutral[200],A400:g.neutral[400],A700:g.neutral[700]},divider:(0,u.alpha)(t===`light`?g.neutral[300]:g.neutral[700],.3),action:{...e.palette.action,hover:t===`light`?`rgba(0, 0, 0, 0.03)`:`rgba(255,255,255,0.03)`,hoverOpacity:.03,selected:t===`light`?`rgba(0, 0, 0, 0.06)`:`rgba(255,255,255,0.06)`,selectedOpacity:.06,focus:t===`light`?`rgba(0, 0, 0, 0.09)`:`rgba(255,255,255,0.09)`,focusOpacity:.09,active:t===`light`?`rgba(0, 0, 0, 0.3)`:`rgba(255,255,255,0.3)`,activatedOpacity:.3,disabled:t===`light`?`rgba(0, 0, 0, 0.3)`:`rgba(255,255,255,0.3)`,disabledOpacity:.3,disabledBackground:t===`light`?`rgba(0, 0, 0, 0.15)`:`rgba(255,255,255,0.15)`}}}),[ee,te]=(0,l.useState)({...e});(0,l.useEffect)(()=>{let e=localStorage.getItem(`Theme_LightOrDarkMode`);e!=null&&n(e);let t=localStorage.getItem(`Theme_PrimaryColor`);t!=null&&i(t);let r=localStorage.getItem(`Theme_SecondaryColor`);r!=null&&o(r);let a=localStorage.getItem(`Theme_SelectedShadeType_Primary`);a!=null&&c(a);let s=localStorage.getItem(`Theme_SelectedShadeType_Secondary`);s!=null&&f(s),te(D())},[]);let ne=()=>{c(`mainShade`),f(`lightShade`);let e=v();i(e),o(e)},re=()=>{c(`mainShade`),f(`mainShade`),i(v()),o(v())};(0,l.useEffect)(()=>{r==="default"&&a==="default"?(c(`mainShade`),f(`mainShade`)):(c(`mainShade`),f(`lightShade`)),localStorage.setItem(`Theme_LightOrDarkMode`,t),te(e=>(0,u.createTheme)({...e,...D()}));let e=r,n=a,s=[`stone`,`neutral`,`neutral`,`gray`,`slate`][Math.floor(Math.random()*4)];i(s),o(s),setTimeout(()=>{i(e),o(n)},0)},[t]);let O=(e,t=!1)=>{te(n=>t?(0,u.createTheme)({...n,components:h({...n,palette:{...n.palette,background:D().palette.background,secondary:{...n.palette.secondary,...e}}}),palette:{...n.palette,background:D().palette.background,secondary:{...n.palette.secondary,...e}}}):(0,u.createTheme)({...n,components:h({...n,palette:{...n.palette,background:D().palette.background,primary:{...n.palette.primary,...e}}}),palette:{...n.palette,background:D().palette.background,primary:{...n.palette.primary,...e}}}))};return(0,l.useEffect)(()=>{localStorage.setItem(`Theme_PrimaryColor`,r),localStorage.setItem(`Theme_SelectedShadeType_Primary`,s),O(r==="default"?D().palette.primary:{light:g[r][p],main:g[r][m],dark:g[r][_],contrastText:E})},[r,s]),(0,l.useEffect)(()=>{localStorage.setItem(`Theme_SecondaryColor`,a),localStorage.setItem(`Theme_SelectedShadeType_Secondary`,d),O(a==="default"?D().palette.secondary:{light:g[a][S],main:g[a][C],dark:g[a][w],contrastText:E},!0)},[a,d]),{Theme_WebApp_Theme:ee,setTheme_WebApp_Theme:te,Theme_LightOrDarkMode:t,setTheme_LightOrDarkMode:n,Theme_PrimaryColor:r,setTheme_PrimaryColor:i,Theme_SecondaryColor:a,setTheme_SecondaryColor:o,Theme_SelectedShadeType_Primary:s,setTheme_SelectedShadeType_Primary:c,Theme_SelectedShadeType_Secondary:d,setTheme_SelectedShadeType_Secondary:f,setYinYangColors:ne,setYinYang2Colors:re}},C=(0,l.createContext)(null);function w(){let e=(0,l.useContext)(C);if(!e)throw Error(`useMUIThemeContext must be used within its provider`);return e}function T({children:e}){let t={...S()};return(0,l.useEffect)(()=>{console.log(`%c Current MUITheme Context : `,`font-size: 16px; font-weight: bold; color: green; font-family: cursive;`,t)},Object.values(t)),(0,d.jsx)(C,{value:t,children:e})}var E=o((e=>{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})),D=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";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){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)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,ee=i,te=h,ne=m,re=r,O=o,ie=a,ae=f,oe=!1;function se(e){return oe||(oe=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),ce(e)||x(e)===l}function ce(e){return x(e)===u}function le(e){return x(e)===c}function ue(e){return x(e)===s}function de(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function fe(e){return x(e)===d}function pe(e){return x(e)===i}function me(e){return x(e)===h}function he(e){return x(e)===m}function ge(e){return x(e)===r}function _e(e){return x(e)===o}function k(e){return x(e)===a}function ve(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=ee,e.Lazy=te,e.Memo=ne,e.Portal=re,e.Profiler=O,e.StrictMode=ie,e.Suspense=ae,e.isAsyncMode=se,e.isConcurrentMode=ce,e.isContextConsumer=le,e.isContextProvider=ue,e.isElement=de,e.isForwardRef=fe,e.isFragment=pe,e.isLazy=me,e.isMemo=he,e.isPortal=ge,e.isProfiler=_e,e.isStrictMode=k,e.isSuspense=ve,e.isValidElementType=b,e.typeOf=x})()})),ee=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=E():t.exports=D()})),te=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),ne=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),re=o(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),O=o(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=ne(),i={},a=re();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),ie=o(((e,t)=>{var n=ee(),r=te(),i=ne(),a=re(),o=O(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:ee,exact:te};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}else if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(O(s)!==e){var c=ie(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=O(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=O(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=O(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=oe(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return ie(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=O(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+ae(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return ne(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function ee(e){function t(t,n,r,a,o){var s=t[n],c=O(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,ie(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function te(e){function t(t,n,o,s,c){var l=t[n],u=O(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,ie(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
|
|
2
|
+
Bad object: `+JSON.stringify(t[n],null,` `)+`
|
|
3
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function ne(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(ne);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!ne(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!ne(a[1]))return!1}}else return!1;return!0;default:return!1}}function re(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function O(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:re(t,e)?`symbol`:t}function ie(e){if(e==null)return``+e;var t=O(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function ae(e){var t=ie(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function oe(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),ae=o(((e,t)=>{var n=ne();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),oe=o(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=ee();t.exports=ie()(n.isElement,!0)}else t.exports=ae()()}));function se(e,t){let n=Array.isArray(t),r=Array.isArray(e);return fe(t)?t:pe(e)?me(t):n&&r?ue(e,t):n===r?he(e,t):me(t)}function ce(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=me(e[t]);return r}function le(e){let t={};for(let n in e)n===`__proto__`||n===`constructor`||n===`prototype`||(t[n]=me(e[n]));return t}function ue(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=me(t[r]);return e}function de(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function fe(e){return typeof e!=`object`||!e}function pe(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function me(e){return de(e)?Array.isArray(e)?ce(e):le(e):e}function he(e,t){for(let n in t)n===`__proto__`||n===`constructor`||n===`prototype`||(n in e?e[n]=se(e[n],t[n]):e[n]=me(t[n]));return e}function ge(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function _e(e){if(typeof e!=`string`)throw Error(process.env.NODE_ENV===`production`?ge(7):"MUI: `capitalize(string)` expects a string argument.");return e.charAt(0).toUpperCase()+e.slice(1)}var k=c(oe(),1),ve=process.env.NODE_ENV===`production`?{}:k.default.oneOfType([k.default.number,k.default.string,k.default.object,k.default.array]);function ye(e){if(e==null)return!0;for(let t in e)return!1;return!0}var be=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`),m=Symbol.for(`react.client.reference`);function h(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.ContextConsumer=o,e.ContextProvider=s,e.Element=t,e.ForwardRef=c,e.Fragment=r,e.Lazy=f,e.Memo=d,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=l,e.SuspenseList=u,e.isContextConsumer=function(e){return h(e)===o},e.isContextProvider=function(e){return h(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===t},e.isForwardRef=function(e){return h(e)===c},e.isFragment=function(e){return h(e)===r},e.isLazy=function(e){return h(e)===f},e.isMemo=function(e){return h(e)===d},e.isPortal=function(e){return h(e)===n},e.isProfiler=function(e){return h(e)===a},e.isStrictMode=function(e){return h(e)===i},e.isSuspense=function(e){return h(e)===l},e.isSuspenseList=function(e){return h(e)===u},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||e===i||e===l||e===u||typeof e==`object`&&e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.getModuleId!==void 0))},e.typeOf=h})),xe=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case i:case o:case a:case u:case d:case m:return e;default:switch(e&&=e.$$typeof,e){case c:case l:case p:case f:return e;case s:return e;default:return t}}case r:return t}}}var n=Symbol.for(`react.transitional.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.consumer`),c=Symbol.for(`react.context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.view_transition`),h=Symbol.for(`react.client.reference`);e.ContextConsumer=s,e.ContextProvider=c,e.Element=n,e.ForwardRef=l,e.Fragment=i,e.Lazy=p,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=u,e.SuspenseList=d,e.isContextConsumer=function(e){return t(e)===s},e.isContextProvider=function(e){return t(e)===c},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return t(e)===l},e.isFragment=function(e){return t(e)===i},e.isLazy=function(e){return t(e)===p},e.isMemo=function(e){return t(e)===f},e.isPortal=function(e){return t(e)===r},e.isProfiler=function(e){return t(e)===o},e.isStrictMode=function(e){return t(e)===a},e.isSuspense=function(e){return t(e)===u},e.isSuspenseList=function(e){return t(e)===d},e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||e===a||e===u||e===d||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===c||e.$$typeof===s||e.$$typeof===l||e.$$typeof===h||e.getModuleId!==void 0))},e.typeOf=t})()})),Se=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=be():t.exports=xe()}))();function Ce(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 we(e){if(l.isValidElement(e)||(0,Se.isValidElementType)(e)||!Ce(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=we(e[n])}),t}function A(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ce(e)&&Ce(t)&&Object.keys(t).forEach(i=>{l.isValidElement(t[i])||(0,Se.isValidElementType)(t[i])?r[i]=t[i]:Ce(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Ce(e[i])?r[i]=A(e[i],t[i],n):n.clone?r[i]=Ce(t[i])?we(t[i]):t[i]:r[i]=t[i]}),r}var Te=/min-width:\s*([0-9.]+)/;function Ee(e,t){if(!e.containerQueries||!De(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>(e.match(Te)?.[1]||0)-+(t.match(Te)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function De(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function Oe(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function ke(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!==`production`)throw Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Ae(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 je=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 Me(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=je(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<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var Ne={},Pe={xs:0,sm:600,md:900,lg:1200,xl:1536},Fe=Me({values:Pe}),Ie={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Pe[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Le(e,t,n){let r={};return Re(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:se(r,a)})}function Re(e,t,n,r){if(t??=Ne,Array.isArray(n)){let i=t.breakpoints??Fe;for(let t=0;t<n.length;t+=1)ze(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??Fe,a=i.values??Pe;for(let o in n)if(Oe(i.keys,o)){let i=ke(t.containerQueries?t:Ie,o);i&&ze(e,i,n[o],o,r)}else if(o in a)ze(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function ze(e,t,n,r,i){e[t]??={},i(t,n,r)}function Be(e=Fe){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function Ve(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];ye(t[r])&&delete t[r]}return t}function He(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(Oe(e.keys,n[t]))return!0}return!1}function Ue(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&We(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function We(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=Ge(e.vars,i,r);if(t!=null)return t}return Ge(e,i,r)}function Ge(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:_e(e)}`;return r?.[i]}return i}function j(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=We(o,r)||{};return Le(e,a,e=>{let r=Ue(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes=process.env.NODE_ENV===`production`?{}:{[t]:ve},a.filterProps=[t],a}var Ke={internal_cache:{}},qe={m:`margin`,p:`padding`},Je={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},Ye={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},Xe={};for(let e in qe)Xe[e]=[qe[e]];for(let e in qe)for(let t in Je){let n=qe[e],r=Je[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];Xe[e+t]=i}for(let e in Ye)Xe[e]=Xe[Ye[e]];var Ze=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),Qe=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]),$e=new Set([...Ze,...Qe]);function et(e,t,n,r){let i=We(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:(process.env.NODE_ENV!==`production`&&typeof e!=`number`&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${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 n=Math.abs(e);process.env.NODE_ENV!==`production`&&(Number.isInteger(n)?n>i.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${n} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
4
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
5
|
+
`)));let r=i[n];return e>=0?r:typeof r==`number`?-r:typeof r==`string`&&r.startsWith(`var(`)?`calc(-1 * ${r})`:`-${r}`}:typeof i==`function`?i:(process.env.NODE_ENV!==`production`&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,`It should be a number, an array or a function.`].join(`
|
|
6
|
+
`)),()=>void 0)}function tt(e){return et(e,`spacing`,8,`spacing`)}function nt(e,t){return typeof t==`string`||t==null?t:e(t)}var rt=[``];function it(e,t){let n=e.theme??Ke,r=n?.internal_cache?.unarySpacing??tt(n),i={};for(let n in e){if(!t.has(n))continue;let a=Xe[n]??(rt[0]=n,rt),o=e[n];Re(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=nt(r,t)})}return i}function at(e){return it(e,Ze)}at.propTypes=process.env.NODE_ENV===`production`?{}:Array.from(Ze).reduce((e,t)=>(e[t]=ve,e),{}),at.filterProps=Ze;var M=at;function ot(e){return it(e,Qe)}ot.propTypes=process.env.NODE_ENV===`production`?{}:Array.from(Qe).reduce((e,t)=>(e[t]=ve,e),{}),ot.filterProps=Qe;var N=ot;function st(e){return it(e,$e)}st.propTypes=process.env.NODE_ENV===`production`?{}:Array.from($e).reduce((e,t)=>(e[t]=ve,e),{}),st.filterProps=$e;function ct(...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]&&se(n,t[r](e));return n};return n.propTypes=process.env.NODE_ENV===`production`?{}:e.reduce((e,t)=>Object.assign(e,t.propTypes),{}),n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function P(e){return typeof e==`number`?`${e}px solid`:e}function F(e,t){return j({prop:e,themeKey:`borders`,transform:t})}var lt=F(`border`,P),ut=F(`borderTop`,P),dt=F(`borderRight`,P),ft=F(`borderBottom`,P),pt=F(`borderLeft`,P),mt=F(`borderColor`),ht=F(`borderTopColor`),gt=F(`borderRightColor`),_t=F(`borderBottomColor`),vt=F(`borderLeftColor`),yt=F(`outline`,P),bt=F(`outlineColor`),xt=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=et(e.theme,`shape.borderRadius`,4,`borderRadius`);return Le(e,e.borderRadius,e=>({borderRadius:nt(t,e)}))}return null};xt.propTypes=process.env.NODE_ENV===`production`?{}:{borderRadius:ve},xt.filterProps=[`borderRadius`],ct(lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,xt,yt,bt);var St=e=>{if(e.gap!==void 0&&e.gap!==null){let t=et(e.theme,`spacing`,8,`gap`);return Le(e,e.gap,e=>({gap:nt(t,e)}))}return null};St.propTypes=process.env.NODE_ENV===`production`?{}:{gap:ve},St.filterProps=[`gap`];var Ct=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=et(e.theme,`spacing`,8,`columnGap`);return Le(e,e.columnGap,e=>({columnGap:nt(t,e)}))}return null};Ct.propTypes=process.env.NODE_ENV===`production`?{}:{columnGap:ve},Ct.filterProps=[`columnGap`];var wt=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=et(e.theme,`spacing`,8,`rowGap`);return Le(e,e.rowGap,e=>({rowGap:nt(t,e)}))}return null};wt.propTypes=process.env.NODE_ENV===`production`?{}:{rowGap:ve},wt.filterProps=[`rowGap`],ct(St,Ct,wt,j({prop:`gridColumn`}),j({prop:`gridRow`}),j({prop:`gridAutoFlow`}),j({prop:`gridAutoColumns`}),j({prop:`gridAutoRows`}),j({prop:`gridTemplateColumns`}),j({prop:`gridTemplateRows`}),j({prop:`gridTemplateAreas`}),j({prop:`gridArea`}));function Tt(e,t){return t===`grey`?t:e}ct(j({prop:`color`,themeKey:`palette`,transform:Tt}),j({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Tt}),j({prop:`backgroundColor`,themeKey:`palette`,transform:Tt}));var Et=Pe;function I(e){return e<=1&&e!==0?`${e*100}%`:e}var Dt=j({prop:`width`,transform:I}),Ot=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Le(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Et[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:I(t)}}):null;Ot.filterProps=[`maxWidth`];var kt=j({prop:`minWidth`,transform:I}),At=j({prop:`height`,transform:I}),jt=j({prop:`maxHeight`,transform:I}),Mt=j({prop:`minHeight`,transform:I});j({prop:`size`,cssProperty:`width`,transform:I}),j({prop:`size`,cssProperty:`height`,transform:I}),ct(Dt,Ot,kt,At,jt,Mt,j({prop:`boxSizing`}));var Nt={border:{themeKey:`borders`,transform:P},borderTop:{themeKey:`borders`,transform:P},borderRight:{themeKey:`borders`,transform:P},borderBottom:{themeKey:`borders`,transform:P},borderLeft:{themeKey:`borders`,transform:P},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:P},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:xt},color:{themeKey:`palette`,transform:Tt},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Tt},backgroundColor:{themeKey:`palette`,transform:Tt},p:{style:N},pt:{style:N},pr:{style:N},pb:{style:N},pl:{style:N},px:{style:N},py:{style:N},padding:{style:N},paddingTop:{style:N},paddingRight:{style:N},paddingBottom:{style:N},paddingLeft:{style:N},paddingX:{style:N},paddingY:{style:N},paddingInline:{style:N},paddingInlineStart:{style:N},paddingInlineEnd:{style:N},paddingBlock:{style:N},paddingBlockStart:{style:N},paddingBlockEnd:{style:N},m:{style:M},mt:{style:M},mr:{style:M},mb:{style:M},ml:{style:M},mx:{style:M},my:{style:M},margin:{style:M},marginTop:{style:M},marginRight:{style:M},marginBottom:{style:M},marginLeft:{style:M},marginX:{style:M},marginY:{style:M},marginInline:{style:M},marginInlineStart:{style:M},marginInlineEnd:{style:M},marginBlock:{style:M},marginBlockStart:{style:M},marginBlockEnd:{style:M},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:St},rowGap:{style:wt},columnGap:{style:Ct},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:I},maxWidth:{style:Ot},minWidth:{transform:I},height:{transform:I},maxHeight:{transform:I},minHeight:{transform:I},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`}},Pt={};function Ft(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Pt,nested:i}=t,a=r.unstable_sxConfig??Nt,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??Fe,l=Be(c);for(let n in s){let i=Rt(s[n],r);if(i!=null){if(typeof i!=`object`){Lt(l,n,i,r,a);continue}if(a[n]){Lt(l,n,i,r,a);continue}He(c,i)?Re(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o))}}return!i&&r.modularCssLayers?{"@layer sx":Ee(r,Ve(c,l))}:Ee(r,Ve(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var It=Ft();function Lt(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){se(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=We(r,o);Re(e,r,n,(n,r)=>{let i=Ue(u,l,r,t);c===!1?se(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Rt(e,t){return typeof e==`function`?e(t):e}function zt(e){for(var t=0,n,r=0,i=e.length;i>=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 Bt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Vt(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ht=/[A-Z]|^ms/g,Ut=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wt=function(e){return e.charCodeAt(1)===45},Gt=function(e){return e!=null&&typeof e!=`boolean`},Kt=Vt(function(e){return Wt(e)?e:e.replace(Ht,`-$&`).toLowerCase()}),qt=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Ut,function(e,t,n){return Zt={name:t,styles:n,next:Zt},t})}return Bt[e]!==1&&!Wt(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Jt(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 Zt={name:i.name,styles:i.styles,next:Zt},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Zt={name:o.name,styles:o.styles,next:Zt},o=o.next;return a.styles+`;`}return Yt(e,t,n);case`function`:if(e!==void 0){var s=Zt,c=n(e);return Zt=s,Jt(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Yt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Jt(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Gt(s)&&(r+=Kt(a)+`:`+qt(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Gt(o[c])&&(r+=Kt(a)+`:`+qt(a,o[c])+`;`);else{var l=Jt(e,t,o);switch(a){case`animation`:case`animationName`:r+=Kt(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Xt=/label:\s*([^\s;{]+)\s*(;|$)/g,Zt;function Qt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Zt=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Jt(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Jt(n,t,e[o]),r&&(i+=a[o]);Xt.lastIndex=0;for(var s=``,c;(c=Xt.exec(i))!==null;)s+=`-`+c[1];return{name:zt(i)+s,styles:i,next:Zt}}function $t(e){return e==null||Object.keys(e).length===0}function en(e){let{styles:t,defaultTheme:n={}}=e;return(0,d.jsx)(p.Global,{styles:typeof t==`function`?e=>t($t(e)?n:e):t})}process.env.NODE_ENV!==`production`&&(en.propTypes={defaultTheme:k.default.object,styles:k.default.oneOfType([k.default.array,k.default.string,k.default.object,k.default.func])});function tn(e,t){let n=(0,f.default)(e,t);return process.env.NODE_ENV===`production`?n:(...t)=>{let r=typeof e==`string`?`"${e}"`:`component`;return t.length===0?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
7
|
+
`)):t.some(e=>e===void 0)&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...t)}}function nn(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var rn=[];function an(e){return rn[0]=e,Qt(rn)}var on={borderRadius:4};function sn(e=8,t=tt({spacing:e})){if(e.mui)return e;let n=(...e)=>(process.env.NODE_ENV!==`production`&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(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 cn(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 ln(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Me(n),c=sn(i),l=A({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...on,...a}},o);return l=Ae(l),l.applyStyles=cn,l=t.reduce((e,t)=>A(e,t),l),l.unstable_sxConfig={...Nt,...o?.unstable_sxConfig},l.unstable_sx=function(e){return It({sx:e,theme:this})},l.internal_cache={},l}function un(e){return Object.keys(e).length===0}function dn(e=null){let t=l.useContext(p.ThemeContext);return!t||un(t)?e:t}var fn=ln();function pn(e=fn){return dn(e)}function mn(e){let t=an(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hn({styles:e,themeId:t,defaultTheme:n={}}){let r=pn(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>mn(typeof e==`function`?e(i):e)):mn(a)),(0,d.jsx)(en,{styles:a})}process.env.NODE_ENV!==`production`&&(hn.propTypes={defaultTheme:k.default.object,styles:k.default.oneOfType([k.default.array,k.default.func,k.default.number,k.default.object,k.default.string,k.default.bool]),themeId:k.default.string});var gn=e=>e,_n=(()=>{let e=gn;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gn}}})();function vn(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;t<i;t++)e[t]&&(n=vn(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function yn(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vn(e))&&(r&&(r+=` `),r+=t);return r}var bn={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 xn(e,t,n=`Mui`){let r=bn[t];return r?`${n}-${r}`:`${_n.generate(e)}-${t}`}function Sn(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=xn(e,t,n)}),r}function Cn(e,t=``){return e.displayName||e.name||t}function wn(e,t,n){let r=Cn(t);return e.displayName||(r===``?n:`${n}(${r})`)}function Tn(e){if(e!=null){if(typeof e==`string`)return e;if(typeof e==`function`)return Cn(e,`Component`);if(typeof e==`object`)switch(e.$$typeof){case Se.ForwardRef:return wn(e,e.render,`ForwardRef`);case Se.Memo:return wn(e,e.type,`memo`);default:return}}}function En(e){let{variants:t,...n}=e,r={variants:t,style:an(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=an(e.style))}),r}var Dn=ln();function On(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function kn(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function An(e){return e?(t,n)=>n[e]:null}function jn(e,t,n){e.theme=ye(e.theme)?n:e.theme[t]||e.theme}function Mn(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Mn(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?kn(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?kn(an(i),n):i}return Nn(e,r.variants,[t],n)}return r?.isProcessed?n?kn(an(r.style),n):r.style:n?kn(an(r),n):r}function Nn(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?kn(an(o.style(i)),r):o.style(i))):n.push(r?kn(an(o.style),r):o.style)}return n}function Pn(e={}){let{themeId:t,defaultTheme:n=Dn,rootShouldForwardProp:r=On,slotShouldForwardProp:i=On}=e;function a(e){jn(e,t,n)}return(e,t={})=>{nn(e,e=>e.filter(e=>e!==It));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=An(Rn(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=On;o===`Root`||o===`root`?m=r:o?m=i:Ln(e)&&(m=void 0);let h=tn(e,{shouldForwardProp:m,label:In(n,o),...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Mn(t,e,t.theme.modularCssLayers?d:void 0)};if(Ce(e)){let t=En(e);return function(e){return t.variants?Mn(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?kn(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),s=[];if(r.push(a),n&&l&&s.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Mn(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&s.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Nn(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||s.push(It),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(s.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let c=[...r,...i,...s],u=h(...c);return e.muiName&&(u.muiName=e.muiName),process.env.NODE_ENV!==`production`&&(u.displayName=Fn(n,o,e)),u};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Fn(e,t,n){return e?`${e}${_e(t||``)}`:`Styled(${Tn(n)})`}function In(e,t){let n;return process.env.NODE_ENV!==`production`&&e&&(n=`${e}-${Rn(t||`Root`)}`),n}function Ln(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Rn(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function zn(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]=zn(i[t],o[t],n)}}}else a===`className`&&n&&t.className!==void 0?r.className=yn(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 Bn(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Vn(e,t=0,n=1){return process.env.NODE_ENV!==`production`&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Bn(e,t,n)}function Hn(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)),process.env.NODE_ENV!==`production`&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Un(e){if(e.type)return e;if(e.charAt(0)===`#`)return Un(Hn(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(process.env.NODE_ENV===`production`?ge(9,e):`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`);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(process.env.NODE_ENV===`production`?ge(10,i):`MUI: unsupported \`${i}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`)}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Wn=e=>{let t=Un(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Gn=(e,t)=>{try{return Wn(e)}catch{return t&&process.env.NODE_ENV!==`production`&&console.warn(t),e}};function Kn(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 qn(e){e=Un(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])),Kn({type:s,values:c})}function Jn(e){e=Un(e);let t=e.type===`hsl`||e.type===`hsla`?Un(qn(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 Yn(e,t){let n=Jn(e),r=Jn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Xn(e,t){return e=Un(e),t=Vn(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Kn(e)}function Zn(e,t,n){try{return Xn(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function Qn(e,t){if(e=Un(e),t=Vn(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 Kn(e)}function L(e,t,n){try{return Qn(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function $n(e,t){if(e=Un(e),t=Vn(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 Kn(e)}function R(e,t,n){try{return $n(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}function er(e,t=.15){return Jn(e)>.5?Qn(e,t):$n(e,t)}function tr(e,t,n){try{return er(e,t)}catch{return n&&process.env.NODE_ENV!==`production`&&console.warn(n),e}}var nr=l.createContext(void 0);function rr({value:e,children:t}){return(0,d.jsx)(nr.Provider,{value:e,children:t})}process.env.NODE_ENV!==`production`&&(rr.propTypes={children:k.default.node,value:k.default.object});function ir(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?zn(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?zn(i,r,t.components.mergeClassNameAndStyle):r}function ar({props:e,name:t}){return ir({props:e,name:t,theme:{components:l.useContext(nr)}})}var or={theme:void 0};function sr(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(or.theme=r.theme,i=En(e(or)),t=i,n=r.theme),i}}function cr(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 lr=(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])})},ur=(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)},dr=(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 fr(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return ur(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=dr(e,t);Object.assign(i,{[r]:c}),lr(a,e,`var(${r})`,s),lr(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function pr(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}=fr(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=fr(n,t);p=A(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=fr(h,t);p=A(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=A(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 mr(e){return function(t){return e===`media`?(process.env.NODE_ENV!==`production`&&t!==`light`&&t!==`dark`&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@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 hr(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}var gr={black:`#000`,white:`#fff`},_r={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},vr={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},yr={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},br={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},xr={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Sr={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Cr={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function wr(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:gr.white,default:gr.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var Tr=wr();function Er(){return{text:{primary:gr.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:gr.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Dr=Er();function Or(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=$n(e.main,i):t===`dark`&&(e.dark=Qn(e.main,a)))}function kr(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Ar(e=`light`){return e===`dark`?{main:xr[200],light:xr[50],dark:xr[400]}:{main:xr[700],light:xr[400],dark:xr[800]}}function jr(e=`light`){return e===`dark`?{main:vr[200],light:vr[50],dark:vr[400]}:{main:vr[500],light:vr[300],dark:vr[700]}}function Mr(e=`light`){return e===`dark`?{main:yr[500],light:yr[300],dark:yr[700]}:{main:yr[700],light:yr[400],dark:yr[800]}}function Nr(e=`light`){return e===`dark`?{main:Sr[400],light:Sr[300],dark:Sr[700]}:{main:Sr[700],light:Sr[500],dark:Sr[900]}}function Pr(e=`light`){return e===`dark`?{main:Cr[400],light:Cr[300],dark:Cr[700]}:{main:Cr[800],light:Cr[500],dark:Cr[900]}}function Fr(e=`light`){return e===`dark`?{main:br[400],light:br[300],dark:br[700]}:{main:`#ed6c02`,light:br[500],dark:br[900]}}function Ir(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Lr(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Ar(t),s=e.secondary||jr(t),c=e.error||Mr(t),l=e.info||Nr(t),u=e.success||Pr(t),d=e.warning||Fr(t);function f(e){if(i)return Ir(e);let t=Yn(e,Dr.text.primary)>=n?Dr.text.primary:Tr.text.primary;if(process.env.NODE_ENV!==`production`){let n=Yn(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,`falls below the WCAG recommended absolute minimum contrast ratio of 3:1.`,`https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast`].join(`
|
|
8
|
+
`))}return t}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(process.env.NODE_ENV===`production`?ge(11,t?` (${t})`:``,n):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`);if(typeof e.main!=`string`)throw Error(process.env.NODE_ENV===`production`?ge(12,t?` (${t})`:``,JSON.stringify(e.main)):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n
|
|
9
|
+
Did you intend to use one of the following approaches?
|
|
10
|
+
|
|
11
|
+
import { green } from "@mui/material/colors";
|
|
12
|
+
|
|
13
|
+
const theme1 = createTheme({ palette: {
|
|
14
|
+
primary: green,
|
|
15
|
+
} });
|
|
16
|
+
|
|
17
|
+
const theme2 = createTheme({ palette: {
|
|
18
|
+
primary: { main: green[500] },
|
|
19
|
+
} });`);return i?(kr(i,e,`light`,a,r),kr(i,e,`dark`,o,r)):(Or(e,`light`,a,r),Or(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=wr():t===`dark`&&(m=Er()),process.env.NODE_ENV!==`production`&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),A({common:{...gr},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:_r,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function Rr(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 zr(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Br(e){return Math.round(e*1e5)/1e5}var Vr={textTransform:`uppercase`},Hr=`"Roboto", "Helvetica", "Arial", sans-serif`;function Ur(e,t){let{fontFamily:n=Hr,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;process.env.NODE_ENV!==`production`&&(typeof r!=`number`&&console.error("MUI: `fontSize` is required to be a number."),typeof c!=`number`&&console.error("MUI: `htmlFontSize` is required to be a number."));let 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===Hr?{letterSpacing:`${Br(i/t)}em`}:{},...a,...l});return A({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,Vr),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Vr),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Wr=.2,Gr=.14,Kr=.12;function z(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Wr})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Gr})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Kr})`].join(`,`)}var qr=[`none`,z(0,2,1,-1,0,1,1,0,0,1,3,0),z(0,3,1,-2,0,2,2,0,0,1,5,0),z(0,3,3,-2,0,3,4,0,0,1,8,0),z(0,2,4,-1,0,4,5,0,0,1,10,0),z(0,3,5,-1,0,5,8,0,0,1,14,0),z(0,3,5,-1,0,6,10,0,0,1,18,0),z(0,4,5,-2,0,7,10,1,0,2,16,1),z(0,5,5,-3,0,8,10,1,0,3,14,2),z(0,5,6,-3,0,9,12,1,0,3,16,2),z(0,6,6,-3,0,10,14,1,0,4,18,3),z(0,6,7,-4,0,11,15,1,0,4,20,3),z(0,7,8,-4,0,12,17,2,0,5,22,4),z(0,7,8,-4,0,13,19,2,0,5,24,4),z(0,7,9,-4,0,14,21,2,0,5,26,4),z(0,8,9,-5,0,15,22,2,0,6,28,5),z(0,8,10,-5,0,16,24,2,0,6,30,5),z(0,8,11,-5,0,17,26,2,0,6,32,5),z(0,9,11,-5,0,18,28,2,0,7,34,6),z(0,9,12,-6,0,19,29,2,0,7,36,6),z(0,10,13,-6,0,20,31,3,0,8,38,7),z(0,10,13,-6,0,21,33,3,0,8,40,7),z(0,10,14,-6,0,22,35,3,0,8,42,7),z(0,11,14,-7,0,23,36,3,0,9,44,8),z(0,11,15,-7,0,24,38,3,0,9,46,8)],Jr=[`all`],Yr={},Xr={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)`},Zr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Qr(e){return`${Math.round(e)}ms`}function $r(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ei(e){let t={...e};delete t.reducedMotion;let n={...Xr,...t.easing},r={...Zr,...t.duration};return{getAutoHeightDuration:$r,create:t.create??((e=Jr,t=Yr)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;if(process.env.NODE_ENV!==`production`){let n=e=>typeof e==`string`,r=e=>!Number.isNaN(parseFloat(e));!n(e)&&!Array.isArray(e)&&console.error(`MUI: Argument "props" must be a string or Array.`),!r(i)&&!n(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),n(a)||console.error(`MUI: Argument "easing" must be a string.`),!r(o)&&!n(o)&&console.error(`MUI: Argument "delay" must be a number or a string.`),typeof t!=`object`&&console.error([`MUI: Secong argument of transition.create must be an object.`,"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
20
|
+
`)),Object.keys(s).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(`,`)}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:Qr(i)} ${a} ${typeof o==`string`?o:Qr(o)}`).join(`,`)}),...t,easing:n,duration:r}}var ti={};function ni(e=ti){return{reducedMotion:`never`,...e}}var ri={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ii(e){return Ce(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function ai(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!ii(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:Ce(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
21
|
+
|
|
22
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
23
|
+
|
|
24
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
25
|
+
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
26
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
27
|
+
|
|
28
|
+
export default theme;`}function oi(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var si=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;e<t.length;e+=1)n+=+t[e];return n};function ci(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:Xn(t,si(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${oi(n)})`:$n(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${oi(n)})`:Qn(t,n)}})}function li(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(process.env.NODE_ENV===`production`?ge(22):"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.");let f=Lr({...a,colorSpace:u}),p=ln(e),m=A(p,{mixins:zr(p.breakpoints,r),palette:f,shadows:qr.slice(),typography:Ur(f,c),motion:ni(o),transitions:ei(s),zIndex:{...ri}});if(m=A(m,d),m=t.reduce((e,t)=>A(e,t),m),delete m.transitions.reducedMotion,process.env.NODE_ENV!==`production`){let e=[`active`,`checked`,`completed`,`disabled`,`error`,`expanded`,`focused`,`focusVisible`,`required`,`selected`],t=(t,n)=>{let r;for(r in t){let i=t[r];if(e.includes(r)&&Object.keys(i).length>0){if(process.env.NODE_ENV!==`production`){let e=xn(``,r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,`You can not override it like this: `,JSON.stringify(t,null,2),``,`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),``,`https://mui.com/r/state-classes-guide`].join(`
|
|
29
|
+
`))}t[r]={}}}};Object.keys(m.components).forEach(e=>{let n=m.components[e].styleOverrides;n&&e.startsWith(`Mui`)&&t(n,e)})}return m.unstable_sxConfig={...Nt,...d?.unstable_sxConfig},m.unstable_sx=function(e){return It({sx:e,theme:this})},m.toRuntimeSource=ai,ci(m),m}function ui(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var di=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ui(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fi(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function pi(e){return e===`dark`?di:[]}function mi(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Lr({...t,colorSpace:i});return{palette:o,opacity:{...fi(o.mode),...n},overlays:r||pi(o.mode),...a}}function hi(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 gi=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],_i=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 gi(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 vi(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function B(e,t,n){!e[t]&&n&&(e[t]=n)}function yi(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:qn(e)}function bi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Gn(yi(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().
|
|
30
|
+
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 xi(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Si=e=>{try{return e()}catch{}},Ci=(e=`mui`)=>cr(e);function wi(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=mi({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=li({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...fi(a),...n?.opacity},overlays:n?.overlays||pi(a)},s}function Ti(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=hi,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=Ci(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(process.env.NODE_ENV===`production`?ge(21,f):`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`);let b;o&&(b=`oklch`);let x=wi(b,v,y,u,f);h&&!v.light&&wi(b,v,h,void 0,`light`),g&&!v.dark&&wi(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Rr(x.typography),...x.font},spacing:xi(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`&&(B(t.common,`background`,`#fff`),B(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(B(t.common,`background`,`#000`),B(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Zn&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===L&&(r=`#000 ${(n*100).toFixed(0)}%`),e===R&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(vi(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){B(t.Alert,`errorColor`,r(L,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(L,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(L,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(L,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-main`)),B(t.Alert,`infoFilledBg`,n(`palette-info-main`)),B(t.Alert,`successFilledBg`,n(`palette-success-main`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),B(t.Alert,`errorFilledColor`,Si(()=>t.getContrastText(t.error.main))),B(t.Alert,`infoFilledColor`,Si(()=>t.getContrastText(t.info.main))),B(t.Alert,`successFilledColor`,Si(()=>t.getContrastText(t.success.main))),B(t.Alert,`warningFilledColor`,Si(()=>t.getContrastText(t.warning.main))),B(t.Alert,`errorStandardBg`,r(R,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(R,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(R,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(R,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-100`)),B(t.Avatar,`defaultBg`,n(`palette-grey-400`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),B(t.Chip,`defaultBorder`,n(`palette-grey-400`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),B(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),B(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),B(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),B(t.LinearProgress,`primaryBg`,r(R,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.LinearProgress,`secondaryBg`,r(R,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.LinearProgress,`errorBg`,r(R,o?p(`palette-error-main`):t.error.main,.62)),B(t.LinearProgress,`infoBg`,r(R,o?p(`palette-info-main`):t.info.main,.62)),B(t.LinearProgress,`successBg`,r(R,o?p(`palette-success-main`):t.success.main,.62)),B(t.LinearProgress,`warningBg`,r(R,o?p(`palette-warning-light`):t.warning.main,.62)),B(t.Skeleton,`bg`,b?r(Zn,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),B(t.Slider,`primaryTrack`,r(R,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Slider,`secondaryTrack`,r(R,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Slider,`errorTrack`,r(R,o?p(`palette-error-main`):t.error.main,.62)),B(t.Slider,`infoTrack`,r(R,o?p(`palette-info-main`):t.info.main,.62)),B(t.Slider,`successTrack`,r(R,o?p(`palette-success-main`):t.success.main,.62)),B(t.Slider,`warningTrack`,r(R,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(L,o?p(`palette-background-default`):t.background.default,.6825):tr(t.background.default,.8);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Si(()=>b?Dr.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,tr(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-400`)),B(t.StepContent,`border`,n(`palette-grey-400`)),B(t.Switch,`defaultColor`,n(`palette-common-white`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),B(t.Switch,`primaryDisabledColor`,r(R,o?p(`palette-primary-main`):t.primary.main,.62)),B(t.Switch,`secondaryDisabledColor`,r(R,o?p(`palette-secondary-main`):t.secondary.main,.62)),B(t.Switch,`errorDisabledColor`,r(R,o?p(`palette-error-main`):t.error.main,.62)),B(t.Switch,`infoDisabledColor`,r(R,o?p(`palette-info-main`):t.info.main,.62)),B(t.Switch,`successDisabledColor`,r(R,o?p(`palette-success-main`):t.success.main,.62)),B(t.Switch,`warningDisabledColor`,r(R,o?p(`palette-warning-main`):t.warning.main,.62)),B(t.TableCell,`border`,r(R,Zn(o?p(`palette-divider`):t.divider,1),.88)),B(t.Tooltip,`bg`,r(Zn,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){B(t.Alert,`errorColor`,r(R,o?p(`palette-error-light`):t.error.light,.6)),B(t.Alert,`infoColor`,r(R,o?p(`palette-info-light`):t.info.light,.6)),B(t.Alert,`successColor`,r(R,o?p(`palette-success-light`):t.success.light,.6)),B(t.Alert,`warningColor`,r(R,o?p(`palette-warning-light`):t.warning.light,.6)),B(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),B(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),B(t.Alert,`successFilledBg`,n(`palette-success-dark`)),B(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),B(t.Alert,`errorFilledColor`,Si(()=>t.getContrastText(t.error.dark))),B(t.Alert,`infoFilledColor`,Si(()=>t.getContrastText(t.info.dark))),B(t.Alert,`successFilledColor`,Si(()=>t.getContrastText(t.success.dark))),B(t.Alert,`warningFilledColor`,Si(()=>t.getContrastText(t.warning.dark))),B(t.Alert,`errorStandardBg`,r(L,o?p(`palette-error-light`):t.error.light,.9)),B(t.Alert,`infoStandardBg`,r(L,o?p(`palette-info-light`):t.info.light,.9)),B(t.Alert,`successStandardBg`,r(L,o?p(`palette-success-light`):t.success.light,.9)),B(t.Alert,`warningStandardBg`,r(L,o?p(`palette-warning-light`):t.warning.light,.9)),B(t.Alert,`errorIconColor`,n(`palette-error-main`)),B(t.Alert,`infoIconColor`,n(`palette-info-main`)),B(t.Alert,`successIconColor`,n(`palette-success-main`)),B(t.Alert,`warningIconColor`,n(`palette-warning-main`)),B(t.AppBar,`defaultBg`,n(`palette-grey-900`)),B(t.AppBar,`darkBg`,n(`palette-background-paper`)),B(t.AppBar,`darkColor`,n(`palette-text-primary`)),B(t.Avatar,`defaultBg`,n(`palette-grey-600`)),B(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),B(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),B(t.Chip,`defaultBorder`,n(`palette-grey-700`)),B(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),B(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),B(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),B(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),B(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),B(t.LinearProgress,`primaryBg`,r(L,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.LinearProgress,`secondaryBg`,r(L,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.LinearProgress,`errorBg`,r(L,o?p(`palette-error-main`):t.error.main,.5)),B(t.LinearProgress,`infoBg`,r(L,o?p(`palette-info-main`):t.info.main,.5)),B(t.LinearProgress,`successBg`,r(L,o?p(`palette-success-main`):t.success.main,.5)),B(t.LinearProgress,`warningBg`,r(L,o?p(`palette-warning-main`):t.warning.main,.5)),B(t.Skeleton,`bg`,b?r(Zn,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),B(t.Slider,`primaryTrack`,r(L,o?p(`palette-primary-main`):t.primary.main,.5)),B(t.Slider,`secondaryTrack`,r(L,o?p(`palette-secondary-main`):t.secondary.main,.5)),B(t.Slider,`errorTrack`,r(L,o?p(`palette-error-main`):t.error.main,.5)),B(t.Slider,`infoTrack`,r(L,o?p(`palette-info-main`):t.info.main,.5)),B(t.Slider,`successTrack`,r(L,o?p(`palette-success-main`):t.success.main,.5)),B(t.Slider,`warningTrack`,r(L,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(R,o?p(`palette-background-default`):t.background.default,.985):tr(t.background.default,.98);B(t.SnackbarContent,`bg`,e),B(t.SnackbarContent,`color`,Si(()=>b?Tr.text.primary:t.getContrastText(e))),B(t.SpeedDialAction,`fabHoverBg`,tr(t.background.paper,.15)),B(t.StepConnector,`border`,n(`palette-grey-600`)),B(t.StepContent,`border`,n(`palette-grey-600`)),B(t.Switch,`defaultColor`,n(`palette-grey-300`)),B(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),B(t.Switch,`primaryDisabledColor`,r(L,o?p(`palette-primary-main`):t.primary.main,.55)),B(t.Switch,`secondaryDisabledColor`,r(L,o?p(`palette-secondary-main`):t.secondary.main,.55)),B(t.Switch,`errorDisabledColor`,r(L,o?p(`palette-error-main`):t.error.main,.55)),B(t.Switch,`infoDisabledColor`,r(L,o?p(`palette-info-main`):t.info.main,.55)),B(t.Switch,`successDisabledColor`,r(L,o?p(`palette-success-main`):t.success.main,.55)),B(t.Switch,`warningDisabledColor`,r(L,o?p(`palette-warning-light`):t.warning.main,.55)),B(t.TableCell,`border`,r(L,Zn(o?p(`palette-divider`):t.divider,1),.68)),B(t.Tooltip,`bg`,r(Zn,o?p(`palette-grey-700`):t.grey[700],.92))}o||(bi(t.background,`default`),bi(t.background,`paper`),bi(t.common,`background`),bi(t.common,`onBackground`),bi(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&B(t[e],`mainChannel`,Gn(yi(n.main))),n.light&&B(t[e],`lightChannel`,Gn(yi(n.light))),n.dark&&B(t[e],`darkChannel`,Gn(yi(n.dark))),n.contrastText&&B(t[e],`contrastTextChannel`,Gn(yi(n.contrastText))),e===`text`&&(bi(t[e],`primary`),bi(t[e],`secondary`)),e===`action`&&(n.active&&bi(t[e],`active`),n.selected&&bi(t[e],`selected`)))})}),S=t.reduce((e,t)=>A(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:_i(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=pr(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 sn(u.spacing,tt(this))},S.getColorSchemeSelector=mr(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Nt,...u?.unstable_sxConfig},S.unstable_sx=function(e){return It({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=ai,S}function Ei(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Lr({...n===!0?{}:n.palette,mode:t})})}function Di(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 li(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=li({...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},Ei(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Ei(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Ti({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Oi=Di(),ki=`$$material`;function Ai(e){return(0,d.jsx)(hn,{...e,defaultTheme:Oi,themeId:ki})}process.env.NODE_ENV!==`production`&&(Ai.propTypes={styles:k.default.oneOfType([k.default.array,k.default.func,k.default.number,k.default.object,k.default.string,k.default.bool])});function ji(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Mi=Pn({themeId:ki,defaultTheme:Oi,rootShouldForwardProp:e=>ji(e)&&e!==`classes`});function Ni(e){return function(t){return(0,d.jsx)(Ai,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function Pi(e){return(0,d.jsx)(rr,{...e})}process.env.NODE_ENV!==`production`&&(Pi.propTypes={children:k.default.node,value:k.default.object.isRequired});function Fi(e){return ar(e)}var Ii=typeof Ni({})==`function`,Li=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),Ri=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),zi=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:Li(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...Ri(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},Bi=`mui-ecs`,Vi=e=>{let t=zi(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${Bi})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${Bi}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${Bi}))`]:{colorScheme:r.palette?.mode}}}),t},Hi=Ni(Ii?({theme:e,enableColorScheme:t})=>zi(e,t):({theme:e})=>Vi(e));function Ui(e){let{children:t,enableColorScheme:n=!1}=Fi({props:e,name:`MuiCssBaseline`});return(0,d.jsxs)(l.Fragment,{children:[Ii&&(0,d.jsx)(Hi,{enableColorScheme:n}),!Ii&&!n&&(0,d.jsx)(`span`,{className:Bi,style:{display:`none`}}),t]})}process.env.NODE_ENV!==`production`&&(Ui.propTypes={children:k.default.node,enableColorScheme:k.default.bool});var Wi=Object.defineProperty,Gi=Object.getOwnPropertyDescriptor,Ki=Object.getOwnPropertyNames,qi=Object.prototype.hasOwnProperty,Ji=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},Yi=(e,t)=>{let n={};for(var r in e)Wi(n,r,{get:e[r],enumerable:!0});return t||Wi(n,Symbol.toStringTag,{value:`Module`}),n},Xi=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ki(t),a=0,o=i.length,s;a<o;a++)s=i[a],!qi.call(e,s)&&s!==n&&Wi(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Gi(t,s))||r.enumerable});return e},Zi=e=>qi.call(e,`module.exports`)?e[`module.exports`]:Xi(Wi({},`__esModule`,{value:!0}),e),Qi=(0,l.createContext)({});function $i(e){let t=(0,l.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ea=typeof window<`u`?l.useLayoutEffect:l.useEffect,ta=(0,l.createContext)(null);function na(e,t){e.indexOf(t)===-1&&e.push(t)}function ra(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var ia=(e,t,n)=>n>t?t:n<e?e:n;function aa(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var oa=()=>{},sa=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(oa=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(aa(t,n))},sa=(e,t,n)=>{if(!e)throw Error(aa(t,n))});var ca={},la=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ua=e=>typeof e==`object`&&!!e,da=e=>/^0[^.\s]+$/u.test(e);function fa(e){let t;return()=>(t===void 0&&(t=e()),t)}var V=e=>e,pa=(...e)=>e.reduce((e,t)=>n=>t(e(n))),ma=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ha=class{constructor(){this.subscriptions=[]}add(e){return na(this.subscriptions,e),()=>ra(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},H=e=>e*1e3,U=e=>e/1e3,ga=(e,t)=>t?1e3/t*e:0,_a=new Set;function va(e,t,n){e||_a.has(t)||(console.warn(aa(t,n)),_a.add(t))}var ya=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ba=1e-7,xa=12;function Sa(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ya(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ba&&++s<xa);return o}function Ca(e,t,n,r){if(e===t&&n===r)return V;let i=t=>Sa(t,0,1,e,n);return e=>e===0||e===1?e:ya(i(e),t,r)}var wa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ta=e=>t=>1-e(1-t),Ea=Ca(.33,1.53,.69,.99),Da=Ta(Ea),Oa=wa(Da),ka=e=>e>=1?1:(e*=2)<1?.5*Da(e):.5*(2-2**(-10*(e-1))),Aa=e=>1-Math.sin(Math.acos(e)),ja=Ta(Aa),Ma=wa(Aa),Na=Ca(.42,0,1,1),Pa=Ca(0,0,.58,1),Fa=Ca(.42,0,.58,1),Ia=e=>Array.isArray(e)&&typeof e[0]!=`number`,La=e=>Array.isArray(e)&&typeof e[0]==`number`,Ra={linear:V,easeIn:Na,easeInOut:Fa,easeOut:Pa,circIn:Aa,circInOut:Ma,circOut:ja,backIn:Da,backInOut:Oa,backOut:Ea,anticipate:ka},za=e=>typeof e==`string`,Ba=e=>{if(La(e)){sa(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Ca(t,n,r,i)}else if(za(e))return sa(Ra[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),Ra[e];return e},Va=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ha(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Ua=40;function Wa(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Va.reduce((e,t)=>(e[t]=Ha(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ca.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ua),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Va.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Va.length;t++)o[Va[t]].cancel(e)},state:i,steps:o}}var{schedule:W,cancel:Ga,state:G,steps:Ka}=Wa(typeof requestAnimationFrame<`u`?requestAnimationFrame:V,!0),qa;function Ja(){qa=void 0}var K={now:()=>(qa===void 0&&K.set(G.isProcessing||ca.useManualTiming?G.timestamp:performance.now()),qa),set:e=>{qa=e,queueMicrotask(Ja)}},Ya=e=>t=>typeof t==`string`&&t.startsWith(e),Xa=Ya(`--`),Za=Ya(`var(--`),Qa=e=>Za(e)?$a.test(e.split(`/*`)[0].trim()):!1,$a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eo(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var to={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},no={...to,transform:e=>ia(0,1,e)},ro={...to,default:1},io=e=>Math.round(e*1e5)/1e5,ao=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oo(e){return e==null}var so=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,co=(e,t)=>n=>!!(typeof n==`string`&&so.test(n)&&n.startsWith(e)||t&&!oo(n)&&Object.prototype.hasOwnProperty.call(n,t)),lo=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ao);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},uo=e=>ia(0,255,e),fo={...to,transform:e=>Math.round(uo(e))},po={test:co(`rgb`,`red`),parse:lo(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+fo.transform(e)+`, `+fo.transform(t)+`, `+fo.transform(n)+`, `+io(no.transform(r))+`)`};function mo(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var ho={test:co(`#`),parse:mo,transform:po.transform},go=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_o=go(`deg`),vo=go(`%`),q=go(`px`),yo=go(`vh`),bo=go(`vw`),xo={...vo,parse:e=>vo.parse(e)/100,transform:e=>vo.transform(e*100)},So={test:co(`hsl`,`hue`),parse:lo(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+vo.transform(io(t))+`, `+vo.transform(io(n))+`, `+io(no.transform(r))+`)`},J={test:e=>po.test(e)||ho.test(e)||So.test(e),parse:e=>po.test(e)?po.parse(e):So.test(e)?So.parse(e):ho.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?po.transform(e):So.transform(e),getAnimatableNone:e=>{let t=J.parse(e);return t.alpha=0,J.transform(t)}},Co=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wo(e){return isNaN(e)&&typeof e==`string`&&(e.match(ao)?.length||0)+(e.match(Co)?.length||0)>0}var To=`number`,Eo=`color`,Do=`var`,Oo=`var(`,ko="${}",Ao=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function jo(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ao,e=>(J.test(e)?(r.color.push(a),i.push(Eo),n.push(J.parse(e))):e.startsWith(Oo)?(r.var.push(a),i.push(Do),n.push(e)):(r.number.push(a),i.push(To),n.push(parseFloat(e))),++a,ko)).split(ko),indexes:r,types:i}}function Mo(e){return jo(e).values}function No({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===To?i+=io(r[a]):e===Eo?i+=J.transform(r[a]):i+=r[a]}return i}}function Po(e){return No(jo(e))}var Fo=e=>typeof e==`number`?0:J.test(e)?J.getAnimatableNone(e):e,Io=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Fo(e);function Lo(e){let t=jo(e);return No(t)(t.values.map((e,n)=>Io(e,t.split[n])))}var Ro={test:wo,parse:Mo,createTransformer:Po,getAnimatableNone:Lo};function zo(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Bo({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=zo(s,r,e+1/3),a=zo(s,r,e),o=zo(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Vo(e,t){return n=>n>0?t:e}var Y=(e,t,n)=>e+(t-e)*n,Ho=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Uo=[ho,po,So],Wo=e=>Uo.find(t=>t.test(e));function Go(e){let t=Wo(e);if(oa(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===So&&(n=Bo(n)),n}var Ko=(e,t)=>{let n=Go(e),r=Go(t);if(!n||!r)return Vo(e,t);let i={...n};return e=>(i.red=Ho(n.red,r.red,e),i.green=Ho(n.green,r.green,e),i.blue=Ho(n.blue,r.blue,e),i.alpha=Y(n.alpha,r.alpha,e),po.transform(i))},qo=new Set([`none`,`hidden`]);function Jo(e,t){return qo.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yo(e,t){return n=>Y(e,t,n)}function Xo(e){return typeof e==`number`?Yo:typeof e==`string`?Qa(e)?Vo:J.test(e)?Ko:es:Array.isArray(e)?Zo:typeof e==`object`?J.test(e)?Ko:Qo:Vo}function Zo(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Xo(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Qo(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xo(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function $o(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var es=(e,t)=>{let n=Ro.createTransformer(t),r=jo(e),i=jo(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?qo.has(e)&&!i.values.length||qo.has(t)&&!r.values.length?Jo(e,t):pa(Zo($o(r,i),i.values),n):(oa(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),Vo(e,t))};function ts(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Y(e,t,n):Xo(e)(e,t)}var ns=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>W.update(t,e),stop:()=>Ga(t),now:()=>G.isProcessing?G.timestamp:K.now()}},rs=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},is=2e4;function as(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function os(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(as(r),is);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:U(i)}}var X={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ss(e,t){return e*Math.sqrt(1-t*t)}var cs=12;function ls(e,t,n){let r=n;for(let n=1;n<cs;n++)r-=e(r)/t(r);return r}var us=.001;function ds({duration:e=X.duration,bounce:t=X.bounce,velocity:n=X.velocity,mass:r=X.mass}){let i,a;oa(e<=H(X.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=ia(X.minDamping,X.maxDamping,o),e=ia(X.minDuration,X.maxDuration,U(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=ss(t,o),c=Math.exp(-i);return us-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=ss(t**2,o);return(-i(t)+us>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ls(i,a,s);if(e=H(e),isNaN(c))return{stiffness:X.stiffness,damping:X.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var fs=[`duration`,`bounce`],ps=[`stiffness`,`damping`,`mass`];function ms(e,t){return t.some(t=>e[t]!==void 0)}function hs(e){let t={velocity:X.velocity,stiffness:X.stiffness,damping:X.damping,mass:X.mass,isResolvedFromDuration:!1,...e};if(!ms(e,ps)&&ms(e,fs))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ia(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:X.mass,stiffness:i,damping:a}}else{let n=ds({...e,velocity:0});t={...t,...n,mass:X.mass},t.isResolvedFromDuration=!0}return t}function gs(e=X.visualDuration,t=X.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=hs({...n,velocity:-U(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=U(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?X.restSpeed.granular:X.restSpeed.default,i||=v?X.restDelta.granular:X.restDelta.default;let y,b,x,S,C,w;if(h<1)x=ss(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>H(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=H(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=H(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(as(T),is),t=rs(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}gs.applyToOptions=e=>{let t=os(e,100,gs);return e.ease=t.ease,e.duration=H(t.duration),e.type=`keyframes`,e};var _s=5;function vs(e,t,n){let r=Math.max(t-_s,0);return ga(n-e(r),t-r)}function ys({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=gs({keyframes:[f.value,m(f.value)],velocity:vs(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function bs(e,t,n){let r=[],i=n||ca.mix||ts,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=pa(Array.isArray(t)?t[n]||V:t,a)),r.push(a)}return r}function xs(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(sa(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bs(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=ma(e[r],e[r+1],n);return s[r](i)};return n?t=>l(ia(e[0],e[a-1],t)):l}function Ss(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=ma(0,t,r);e.push(Y(n,1,i))}}function Cs(e){let t=[0];return Ss(t,e.length-1),t}function ws(e,t){return e.map(e=>e*t)}function Ts(e,t){return e.map(()=>t||Fa).splice(0,e.length-1)}function Es({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ia(r)?r.map(Ba):Ba(r),a={done:!1,value:t[0]},o=xs(ws(n&&n.length===t.length?n:Cs(t),e),t,{ease:Array.isArray(i)?i:Ts(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Ds=e=>e!==null;function Os(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Ds),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var ks={decay:ys,inertia:ys,tween:Es,keyframes:Es,spring:gs};function As(e){typeof e.type==`string`&&(e.type=ks[e.type])}var js=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Ms=e=>e/100,Ns=class extends js{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==K.now()&&this.tick(K.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;As(e);let{type:t=Es,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Es;process.env.NODE_ENV!==`production`&&s!==Es&&sa(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Es&&typeof o[0]!=`number`&&(this.mixKeyframes=pa(Ms,ts(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=as(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=ia(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==ys&&(b.value=Os(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(this.currentTime)}set time(e){e=H(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return vs(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(K.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=U(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=ns,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(K.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Ps(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Fs=e=>e*180/Math.PI,Is=e=>Rs(Fs(Math.atan2(e[1],e[0]))),Ls={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Is,rotateZ:Is,skewX:e=>Fs(Math.atan(e[1])),skewY:e=>Fs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Rs=e=>(e%=360,e<0&&(e+=360),e),zs=Is,Bs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hs={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bs,scaleY:Vs,scale:e=>(Bs(e)+Vs(e))/2,rotateX:e=>Rs(Fs(Math.atan2(e[6],e[5]))),rotateY:e=>Rs(Fs(Math.atan2(-e[2],e[0]))),rotateZ:zs,rotate:zs,skewX:e=>Fs(Math.atan(e[4])),skewY:e=>Fs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Us(e){return+!!e.includes(`scale`)}function Ws(e,t){if(!e||e===`none`)return Us(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Hs,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ls,i=t}if(!i)return Us(t);let a=r[t],o=i[1].split(`,`).map(Ks);return typeof a==`function`?a(o):o[a]}var Gs=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ws(n,t)};function Ks(e){return parseFloat(e.trim())}var qs=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Js=new Set([...qs,`pathRotation`]),Ys=e=>e===to||e===q,Xs=new Set([`x`,`y`,`z`]),Zs=qs.filter(e=>!Xs.has(e));function Qs(e){let t=[];return Zs.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var $s={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ws(t,`x`),y:(e,{transform:t})=>Ws(t,`y`)};$s.translateX=$s.x,$s.translateY=$s.y;var ec=new Set,tc=!1,nc=!1,rc=!1;function ic(){if(nc){let e=Array.from(ec).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Qs(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}nc=!1,tc=!1,ec.forEach(e=>e.complete(rc)),ec.clear()}function ac(){ec.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(nc=!0)})}function oc(){rc=!0,ac(),ic(),rc=!1}var sc=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ec.add(this),tc||(tc=!0,W.read(ac),W.resolveKeyframes(ic))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ps(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ec.delete(this)}cancel(){this.state===`scheduled`&&(ec.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},cc=e=>e.startsWith(`--`);function lc(e,t,n){cc(t)?e.style.setProperty(t,n):e.style[t]=n}var uc={};function dc(e,t){let n=fa(e);return()=>uc[t]??n()}var fc=dc(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),pc=dc(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),mc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hc={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:mc([0,.65,.55,1]),circOut:mc([.55,0,1,.45]),backIn:mc([.31,.01,.66,-.59]),backOut:mc([.33,1.53,.69,.99])};function gc(e,t){if(e)return typeof e==`function`?pc()?rs(e,t):`ease-out`:La(e)?mc(e):Array.isArray(e)?e.map(e=>gc(e,t)||hc.easeOut):hc[e]}function _c(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=gc(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function vc(e){return typeof e==`function`&&`applyToOptions`in e}function yc({type:e,...t}){return vc(e)&&pc()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var bc=class extends js{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,sa(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=yc(e);this.animation=_c(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Os(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),lc(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return U(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=H(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&fc()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),V):r(this)}},xc={anticipate:ka,backInOut:Oa,circInOut:Ma};function Sc(e){return e in xc}function Cc(e){typeof e.ease==`string`&&Sc(e.ease)&&(e.ease=xc[e.ease])}var wc=10,Tc=class extends bc{constructor(e){Cc(e),As(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Ns({...a,autoplay:!1}),s=Math.max(wc,K.now()-this.startTime),c=ia(0,wc,s-wc),l=o.sample(s).value,{name:u}=this.options;i&&u&&lc(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Ec=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Ro.test(e)||e===`0`)&&!e.startsWith(`url(`));function Dc(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Oc(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ec(i,t),s=Ec(a,t);return oa(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Dc(e)||(n===`spring`||vc(n))&&r}function kc(e){e.duration=0,e.type=`keyframes`}var Ac=new Set([`opacity`,`clipPath`,`filter`,`transform`]),jc=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Mc(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&jc.test(e[t]))return!0;return!1}var Nc=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Pc=fa(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Fc(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Pc()&&n&&(Ac.has(n)||Nc.has(n)&&Mc(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ic=40,Lc=class extends js{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||sc;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=K.now();let u=!0;Oc(e,i,a,o)||(u=!1,(ca.instantAnimations||!s)&&l?.(Os(e,n,t)),e[0]=e[e.length-1],kc(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ic?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Fc(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Tc({...d,element:p})}catch{m=new Ns(d)}else m=new Ns(d);m.finished.then(()=>{this.notifyFinished()}).catch(V),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),oc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Rc(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var zc=30,Bc=e=>!isNaN(parseFloat(e)),Vc={current:void 0},Hc=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=K.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Bc(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&va(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ha);let n=this.events[e].add(t);return e===`change`?()=>{n(),W.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Vc.current&&Vc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zc)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,zc);return ga(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Uc(e,t){return new Hc(e,t)}function Wc(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Gc(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Wc(n,e)}var Kc={type:`spring`,stiffness:500,damping:25,restSpeed:10},qc=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Jc={type:`keyframes`,duration:.8},Yc={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Xc=(e,{keyframes:t})=>t.length>2?Jc:Js.has(e)?e.startsWith(`scale`)?qc(t[1]):Kc:Yc,Zc=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Qc(e){for(let t in e)if(!Zc.has(t))return!0;return!1}var $c=(e,t,n,r={},i,a)=>o=>{let s=Gc(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=H(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Qc(s)||Object.assign(u,Xc(e,u)),u.duration&&=H(u.duration),u.repeatDelay&&=H(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(kc(u),u.delay===0&&(d=!0)),(ca.instantAnimations||ca.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,kc(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Os(u.keyframes,s);if(e!==void 0){W.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Ns(u):new Lc(u)},el=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function tl(e){let t=el.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var nl=4;function rl(e,t,n=1){sa(n<=nl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=tl(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return la(e)?parseFloat(e):e}return Qa(i)?rl(i,t,n+1):i}function il(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function al(e,t,n,r){if(typeof t==`function`){let[i,a]=il(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=il(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ol(e,t,n){let r=e.getProps();return al(r,t,n===void 0?r.custom:n,e)}var sl=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...qs]),cl=e=>Array.isArray(e);function ll(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Uc(n))}function ul(e){return cl(e)?e[e.length-1]||0:e}function dl(e,t){let{transitionEnd:n={},transition:r={},...i}=ol(e,t)||{};i={...i,...n};for(let t in i)ll(e,t,ul(i[t]))}var Z=e=>!!(e&&e.getVelocity);function fl(e){return!!(Z(e)&&e.add)}function pl(e,t){let n=e.getValue(`willChange`);if(fl(n))return n.add(t);if(!n&&ca.WillChange){let n=new ca.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ml(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var hl=`data-`+ml(`framerAppearId`);function gl(e){return e.props[hl]}function _l({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function vl(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Wc(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&_l(f,t))continue;let o={delay:n,...Gc(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){W.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=gl(e);if(n){let e=window.MotionHandoffAnimation(n,t,W);e!==null&&(o.startTime=e,p=!0)}}pl(e,t);let m=l??e.shouldReduceMotion;r.start($c(t,r,i,m&&sl.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>W.update(()=>{o&&dl(e,o)});d.length?Promise.all(d).then(t):t()}return d}function yl(e,t,n={}){let r=ol(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(vl(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return bl(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function bl(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(yl(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Rc(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function xl(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>yl(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=yl(e,t,n);else{let i=typeof t==`function`?ol(e,t,n.custom):t;r=Promise.all(vl(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Sl={test:e=>e===`auto`,parse:e=>e},Cl=e=>t=>t.test(e),wl=[to,q,vo,_o,bo,yo,Sl],Tl=e=>wl.find(Cl(e));function El(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||da(e)}var Dl=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ol(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ao)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Dl.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var kl=/\b([a-z-]*)\(.*?\)/gu,Al={...Ro,getAnimatableNone:e=>{let t=e.match(kl);return t?t.map(Ol).join(` `):e}},jl={...Ro,getAnimatableNone:e=>{let t=Ro.parse(e);return Ro.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Ml={...to,transform:Math.round},Nl={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,inset:q,insetBlock:q,insetBlockStart:q,insetBlockEnd:q,insetInline:q,insetInlineStart:q,insetInlineEnd:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,paddingBlock:q,paddingBlockStart:q,paddingBlockEnd:q,paddingInline:q,paddingInlineStart:q,paddingInlineEnd:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,marginBlock:q,marginBlockStart:q,marginBlockEnd:q,marginInline:q,marginInlineStart:q,marginInlineEnd:q,fontSize:q,backgroundPositionX:q,backgroundPositionY:q,rotate:_o,pathRotation:_o,rotateX:_o,rotateY:_o,rotateZ:_o,scale:ro,scaleX:ro,scaleY:ro,scaleZ:ro,skew:_o,skewX:_o,skewY:_o,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:no,originX:xo,originY:xo,originZ:q,zIndex:Ml,fillOpacity:no,strokeOpacity:no,numOctaves:Ml},Pl={...Nl,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:Al,WebkitFilter:Al,mask:jl,WebkitMask:jl},Fl=e=>Pl[e],Il=new Set([Al,jl]);function Ll(e,t){let n=Fl(e);return Il.has(n)||(n=Ro),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Rl=new Set([`auto`,`none`,`0`]);function zl(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Rl.has(t)&&jo(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Ll(n,i)}var Bl=class extends sc{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),Qa(r))){let i=rl(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!sl.has(n)||e.length!==2)return;let[r,i]=e,a=Tl(r),o=Tl(i);if(eo(r)!==eo(i)&&$s[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ys(a)&&Ys(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else $s[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||El(e[t]))&&n.push(t);n.length&&zl(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$s[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=$s[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Vl=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Hl(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Ul=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Wl(e){return ua(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Gl,cancel:Kl}=Wa(queueMicrotask,!1),ql={x:!1,y:!1};function Jl(){return ql.x||ql.y}function Yl(e){return e===`x`||e===`y`?ql[e]?null:(ql[e]=!0,()=>{ql[e]=!1}):ql.x||ql.y?null:(ql.x=ql.y=!0,()=>{ql.x=ql.y=!1})}function Xl(e,t){let n=Hl(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Zl(e){return!(e.pointerType===`touch`||Jl())}function Ql(e,t,n={}){let[r,i,a]=Xl(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Zl(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var $l=(e,t)=>t?e===t||$l(e,t.parentElement):!1,eu=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,tu=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function nu(e){return tu.has(e.tagName)||e.isContentEditable===!0}var ru=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function iu(e){return ru.has(e.tagName)||e.isContentEditable===!0}var au=new WeakSet;function ou(e){return t=>{t.key===`Enter`&&e(t)}}function su(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var cu=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=ou(()=>{if(au.has(n))return;su(n,`down`);let e=ou(()=>{su(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>su(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function lu(e){return eu(e)&&!Jl()}var uu=new WeakSet;function du(e,t,n={}){let[r,i,a]=Xl(e,n),o=e=>{let r=e.currentTarget;if(!lu(e)||uu.has(e))return;au.add(r),n.stopPropagation&&uu.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),au.has(r)&&au.delete(r),lu(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||$l(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Wl(e)&&(e.addEventListener(`focus`,e=>cu(e,i)),!nu(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function fu(e){return ua(e)&&`ownerSVGElement`in e}var pu=new WeakMap,mu,hu=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:fu(r)&&`getBBox`in r?r.getBBox()[t]:r[n],gu=hu(`inline`,`width`,`offsetWidth`),_u=hu(`block`,`height`,`offsetHeight`);function vu({target:e,borderBoxSize:t}){pu.get(e)?.forEach(n=>{n(e,{get width(){return gu(e,t)},get height(){return _u(e,t)}})})}function yu(e){e.forEach(vu)}function bu(){typeof ResizeObserver>`u`||(mu=new ResizeObserver(yu))}function xu(e,t){mu||bu();let n=Hl(e);return n.forEach(e=>{let n=pu.get(e);n||(n=new Set,pu.set(e,n)),n.add(t),mu?.observe(e)}),()=>{n.forEach(e=>{let n=pu.get(e);n?.delete(t),n?.size||mu?.unobserve(e)})}}var Su=new Set,Cu;function wu(){Cu=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Su.forEach(t=>t(e))},window.addEventListener(`resize`,Cu)}function Tu(e){return Su.add(e),Cu||wu(),()=>{Su.delete(e),!Su.size&&typeof Cu==`function`&&(window.removeEventListener(`resize`,Cu),Cu=void 0)}}function Eu(e,t){return typeof e==`function`?Tu(e):xu(e,t)}var Du={value:null,addProjectionMetrics:null};function Ou(e){return fu(e)&&e.tagName===`svg`}var ku=[...wl,J,Ro],Au=e=>ku.find(Cl(e)),ju=()=>({translate:0,scale:1,origin:0,originPoint:0}),Mu=()=>({x:ju(),y:ju()}),Nu=()=>({min:0,max:0}),Q=()=>({x:Nu(),y:Nu()}),Pu=new WeakMap;function Fu(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Iu(e){return typeof e==`string`||Array.isArray(e)}var Lu=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ru=[`initial`,...Lu];function zu(e){return Fu(e.animate)||Ru.some(t=>Iu(e[t]))}function Bu(e){return!!(zu(e)||e.variants)}function Vu(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Z(i))e.addValue(r,i);else if(Z(a))e.addValue(r,Uc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Uc(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Hu={current:null},Uu={current:!1},Wu=typeof window<`u`;function Gu(){if(Uu.current=!0,Wu)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Hu.current=e.matches;e.addEventListener(`change`,t),t()}else Hu.current=!1}var Ku=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],qu={};function Ju(e){qu=e}function Yu(){return qu}var Xu=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=sc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=K.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,W.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=zu(t),this.isVariantNode=Bu(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Z(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Pu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Uu.current||Gu(),this.shouldReduceMotion=Hu.current),process.env.NODE_ENV!==`production`&&va(this.shouldReduceMotion!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ga(this.notifyUpdate),Ga(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Ac.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new bc({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:H(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Js.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&W.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in qu){let t=qu[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Q()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Ku.length;t++){let n=Ku[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Vu(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Uc(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(la(n)||da(n))?n=parseFloat(n):!Au(n)&&Ro.test(t)&&(n=Ll(e,t)),this.setBaseTarget(e,Z(n)?n.get():n)),Z(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=al(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Z(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ha),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Gl.render(this.render)}},Zu=class extends Xu{constructor(){super(...arguments),this.KeyframeResolver=Bl}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Z(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Qu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function $u({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ed({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function td(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function nd(e){return e===void 0||e===1}function rd({scale:e,scaleX:t,scaleY:n}){return!nd(e)||!nd(t)||!nd(n)}function id(e){return rd(e)||ad(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ad(e){return od(e.x)||od(e.y)}function od(e){return e&&e!==`0%`}function sd(e,t,n){return n+t*(e-n)}function cd(e,t,n,r,i){return i!==void 0&&(e=sd(e,i,r)),sd(e,n,r)+t}function ld(e,t=0,n=1,r,i){e.min=cd(e.min,t,n,r,i),e.max=cd(e.max,t,n,r,i)}function ud(e,{x:t,y:n}){ld(e.x,t.translate,t.scale,t.originPoint),ld(e.y,n.translate,n.scale,n.originPoint)}var dd=.999999999999,fd=1.0000000000001;function pd(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(md(e.x,-a.scroll.offset.x),md(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ud(e,o)),r&&id(a.latestValues)&&_d(e,a.latestValues,a.layout?.layoutBox))}t.x<fd&&t.x>dd&&(t.x=1),t.y<fd&&t.y>dd&&(t.y=1)}function md(e,t){e.min+=t,e.max+=t}function hd(e,t,n,r,i=.5){ld(e,t,n,Y(e.min,e.max,i),r)}function gd(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function _d(e,t,n){let r=n??e;hd(e.x,gd(t.x,r.x),t.scaleX,t.scale,t.originX),hd(e.y,gd(t.y,r.y),t.scaleY,t.scale,t.originY)}function vd(e,t){return $u(td(e.getBoundingClientRect(),t))}function yd(e,t,n){let r=vd(e,n),{scroll:i}=t;return i&&(md(r.x,i.offset.x),md(r.y,i.offset.y)),r}var bd={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},xd=qs.length;function Sd(e,t,n){let r=``,i=!0;for(let a=0;a<xd;a++){let o=qs[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Ul(s,Nl[o]);if(!c){i=!1;let t=bd[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Ul(a,Nl.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Cd(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Js.has(e)){o=!0;continue}else if(Xa(e)){i[e]=n;continue}else{let t=Ul(n,Nl[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Sd(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function wd(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Td(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ed={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;return`${Td(e,t.target.x)}% ${Td(e,t.target.y)}%`}},Dd={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Ro.parse(e);if(i.length>5)return r;let a=Ro.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Y(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Od={borderRadius:{...Ed,applyTo:[...Vl]},borderTopLeftRadius:Ed,borderTopRightRadius:Ed,borderBottomLeftRadius:Ed,borderBottomRightRadius:Ed,boxShadow:Dd};function kd(e,{layout:t,layoutId:n}){return Js.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Od[e]||e===`opacity`)}function Ad(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Z(r[t])||i&&Z(i[t])||kd(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function jd(e){return window.getComputedStyle(e)}var Md=class extends Zu{constructor(){super(...arguments),this.type=`html`,this.renderInstance=wd}readValueFromInstance(e,t){if(Js.has(t))return this.projection?.isProjecting?Us(t):Gs(e,t);{let n=jd(e),r=(Xa(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return vd(e,t)}build(e,t,n){Cd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ad(e,t,n)}},Nd={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Pd={offset:`strokeDashoffset`,array:`strokeDasharray`};function Fd(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Nd:Pd;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Id=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ld(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Cd(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Id)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Fd(d,i,a,o,!1)}var Rd=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),zd=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Bd(e,t,n,r){wd(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Rd.has(n)?n:ml(n),t.attrs[n])}function Vd(e,t,n){let r=Ad(e,t,n);for(let n in e)if(Z(e[n])||Z(t[n])){let t=qs.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Hd=class extends Zu{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Js.has(t)){let e=Fl(t);return e&&e.default||0}return t=Rd.has(t)?t:ml(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vd(e,t,n)}build(e,t,n){Ld(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Bd(e,t,n,r)}mount(e){this.isSVGTag=zd(e.tagName),super.mount(e)}},Ud=Ru.length;function Wd(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Wd(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Ud;n++){let r=Ru[n],i=e.props[r];(Iu(i)||i===!1)&&(t[r]=i)}return t}function Gd(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Kd=[...Lu].reverse(),qd=Lu.length;function Jd(e){return t=>Promise.all(t.map(({animation:t,options:n})=>xl(e,t,n)))}function Yd(e){let t=Jd(e),n=Qd(),r=!0,i=!1,a=t=>(n,r)=>{let i=ol(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Wd(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<qd;t++){let p=Kd[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Iu(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Fu(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Xd(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=cl(t)&&cl(n)?!Gd(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ol(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Rc(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=ol(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Qd(),i=!0}}}function Xd(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Gd(t,e):!1}function Zd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qd(){return{animate:Zd(!0),whileInView:Zd(),whileHover:Zd(),whileTap:Zd(),whileDrag:Zd(),whileFocus:Zd(),exit:Zd()}}function $d(e,t){e.min=t.min,e.max=t.max}function ef(e,t){$d(e.x,t.x),$d(e.y,t.y)}function tf(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var nf=.9999,rf=1.0001,af=-.01,of=.01;function $(e){return e.max-e.min}function sf(e,t,n){return Math.abs(e-t)<=n}function cf(e,t,n,r=.5){e.origin=r,e.originPoint=Y(t.min,t.max,e.origin),e.scale=$(n)/$(t),e.translate=Y(n.min,n.max,e.origin)-e.originPoint,(e.scale>=nf&&e.scale<=rf||isNaN(e.scale))&&(e.scale=1),(e.translate>=af&&e.translate<=of||isNaN(e.translate))&&(e.translate=0)}function lf(e,t,n,r){cf(e.x,t.x,n.x,r?r.originX:void 0),cf(e.y,t.y,n.y,r?r.originY:void 0)}function uf(e,t,n,r=0){e.min=(r?Y(n.min,n.max,r):n.min)+t.min,e.max=e.min+$(t)}function df(e,t,n,r){uf(e.x,t.x,n.x,r?.x),uf(e.y,t.y,n.y,r?.y)}function ff(e,t,n,r=0){let i=r?Y(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+$(t)}function pf(e,t,n,r){ff(e.x,t.x,n.x,r?.x),ff(e.y,t.y,n.y,r?.y)}function mf(e,t,n,r,i){return e-=t,e=sd(e,1/n,r),i!==void 0&&(e=sd(e,1/i,r)),e}function hf(e,t=0,n=1,r=.5,i,a=e,o=e){if(vo.test(t)&&(t=parseFloat(t),t=Y(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Y(a.min,a.max,r);e===a&&(s-=t),e.min=mf(e.min,t,n,s,i),e.max=mf(e.max,t,n,s,i)}function gf(e,t,[n,r,i],a,o){hf(e,t[n],t[r],t[i],t.scale,a,o)}var _f=[`x`,`scaleX`,`originX`],vf=[`y`,`scaleY`,`originY`];function yf(e,t,n,r){gf(e.x,t,_f,n?n.x:void 0,r?r.x:void 0),gf(e.y,t,vf,n?n.y:void 0,r?r.y:void 0)}function bf(e){return e.translate===0&&e.scale===1}function xf(e){return bf(e.x)&&bf(e.y)}function Sf(e,t){return e.min===t.min&&e.max===t.max}function Cf(e,t){return Sf(e.x,t.x)&&Sf(e.y,t.y)}function wf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Tf(e,t){return wf(e.x,t.x)&&wf(e.y,t.y)}function Ef(e){return $(e.x)/$(e.y)}function Df(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Of(e){return[e(`x`),e(`y`)]}function kf(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Af=Vl.length,jf=e=>typeof e==`string`?parseFloat(e):e,Mf=e=>typeof e==`number`||q.test(e);function Nf(e,t,n,r,i,a){i?(e.opacity=Y(0,n.opacity??1,Ff(r)),e.opacityExit=Y(t.opacity??1,0,If(r))):a&&(e.opacity=Y(t.opacity??1,n.opacity??1,r));for(let i=0;i<Af;i++){let a=Vl[i],o=Pf(t,a),s=Pf(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Mf(o)===Mf(s)?(e[a]=Math.max(Y(jf(o),jf(s),r),0),(vo.test(s)||vo.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Y(t.rotate||0,n.rotate||0,r))}function Pf(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Ff=Lf(0,.5,ja),If=Lf(.5,.95,V);function Lf(e,t,n){return r=>r<e?0:r>t?1:n(ma(e,t,r))}function Rf(e,t,n){let r=Z(e)?e:Uc(e);return r.start($c(``,r,t,n)),r.animation}function zf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Bf=(e,t)=>e.depth-t.depth,Vf=class{constructor(){this.children=[],this.isDirty=!1}add(e){na(this.children,e),this.isDirty=!0}remove(e){ra(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bf),this.isDirty=!1,this.children.forEach(e)}};function Hf(e,t){let n=K.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ga(r),e(a-t))};return W.setup(r,!0),()=>Ga(r)}function Uf(e){return Z(e)?e.get():e}var Wf=class{constructor(){this.members=[]}add(e){na(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ra(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ra(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Gf={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kf={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qf=[``,`X`,`Y`,`Z`],Jf=1e3,Yf=0;function Xf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zf(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=gl(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,W,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zf(r)}function Qf({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yf++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Du.value&&(Kf.nodes=Kf.calculatedTargetDeltas=Kf.calculatedProjections=0),this.nodes.forEach(tp),this.nodes.forEach(up),this.nodes.forEach(dp),this.nodes.forEach(np),Du.addProjectionMetrics&&Du.addProjectionMetrics(Kf)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vf)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ha),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=fu(t)&&!Ou(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;W.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Hf(i,250),Gf.hasAnimatedSinceResize&&(Gf.hasAnimatedSinceResize=!1,this.nodes.forEach(lp)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||vp,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Tf(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Gc(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||lp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ga(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(fp),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zf(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ap),this.nodes.forEach(ip);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(op);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sp),this.nodes.forEach(cp),this.nodes.forEach($f),this.nodes.forEach(ep)):this.nodes.forEach(op),this.clearAllSnapshots();let e=K.now();G.delta=ia(0,1e3/60,e-G.timestamp),G.timestamp=e,G.isProcessing=!0,Ka.update.process(G),Ka.preRender.process(G),Ka.render.process(G),G.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rp),this.sharedNodes.forEach(pp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!xf(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||id(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Sp(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wp))){let{scroll:e}=this.root;e&&(md(t.x,e.offset.x),md(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Q();if(ef(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&ef(t,e),md(t.x,i.offset.x),md(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Q();ef(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(md(r.x,-n.scroll.offset.x),md(r.y,-n.scroll.offset.y)),id(n.latestValues)&&_d(r,n.latestValues,n.layout?.layoutBox)}return id(this.latestValues)&&_d(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Q();ef(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!id(n.latestValues))continue;let r;n.instance&&(rd(n.latestValues)&&n.updateSnapshot(),r=Q(),ef(r,n.measurePageBox())),yf(t,n.latestValues,n.snapshot?.layoutBox,r)}return id(this.latestValues)&&yf(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==G.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=G.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Q(),this.targetWithTransforms=Q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),df(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ef(this.target,this.layout.layoutBox),ud(this.target,this.targetDelta)):ef(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Du.value&&Kf.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||rd(this.parent.latestValues)||ad(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Q(),this.relativeTargetOrigin=Q(),pf(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),ef(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===G.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;ef(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;pd(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Q());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tf(this.prevProjectionDelta.x,this.projectionDelta.x),tf(this.prevProjectionDelta.y,this.projectionDelta.y)),lf(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Df(this.projectionDelta.x,this.prevProjectionDelta.x)||!Df(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Du.value&&Kf.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Mu(),this.projectionDelta=Mu(),this.projectionDeltaWithTransform=Mu()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Mu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Q(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(_p));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=Y(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=Y(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(mp(o.x,e.x,n),mp(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pf(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gp(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Cf(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Q(),ef(f,this.relativeTarget)),c&&(this.animationValues=a,Nf(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Ga(this.pendingAnimation),void 0),this.pendingAnimation=W.update(()=>{Gf.hasAnimatedSinceResize=!0,this.motionValue||=Uc(0),this.motionValue.jump(0,!1),this.currentAnimation=Rf(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Cp(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Q();let t=$(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=$(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}ef(t,n),_d(t,i),lf(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Wf),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Xf(`z`,e,r,this.animationValues);for(let t=0;t<qf.length;t++)Xf(`rotate${qf[t]}`,e,r,this.animationValues),Xf(`skew${qf[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Uf(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Uf(t?.pointerEvents)||``),this.hasProjected&&!id(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=kf(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Od){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Od[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Uf(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ip),this.root.sharedNodes.clear()}}}function $f(e){e.updateLayout()}function ep(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Of(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=$(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$d(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Cp(i,t.layoutBox,n)&&Of(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=$(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Mu();lf(o,n,t.layoutBox);let s=Mu();a?lf(s,e.applyTransform(r,!0),t.measuredBox):lf(s,n,t.layoutBox);let c=!xf(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Q();pf(s,t.layoutBox,i.layoutBox,o);let c=Q();pf(c,n,a.layoutBox,o),Tf(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tp(e){Du.value&&Kf.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function np(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rp(e){e.clearSnapshot()}function ip(e){e.clearMeasurements()}function ap(e){e.isLayoutDirty=!0,e.updateLayout()}function op(e){e.isLayoutDirty=!1}function sp(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cp(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function lp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function up(e){e.resolveTargetDelta()}function dp(e){e.calcProjection()}function fp(e){e.resetSkewAndRotation()}function pp(e){e.removeLeadSnapshot()}function mp(e,t,n){e.translate=Y(t.translate,0,n),e.scale=Y(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hp(e,t,n,r){e.min=Y(t.min,n.min,r),e.max=Y(t.max,n.max,r)}function gp(e,t,n,r){hp(e.x,t.x,n.x,r),hp(e.y,t.y,n.y,r)}function _p(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vp={duration:.45,ease:[.4,0,.1,1]},yp=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bp=yp(`applewebkit/`)&&!yp(`chrome/`)?Math.round:V;function xp(e){e.min=bp(e.min),e.max=bp(e.max)}function Sp(e){xp(e.x),xp(e.y)}function Cp(e,t,n){return e===`position`||e===`preserve-aspect`&&!sf(Ef(t),Ef(n),.2)}function wp(e){return e!==e.root&&e.scroll?.wasRoot}var Tp=Qf({attachResizeListener:(e,t)=>zf(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ep={current:void 0},Dp=Qf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ep.current){let e=new Tp({});e.mount(window),e.setOptions({layoutScroll:!0}),Ep.current=e}return Ep.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Op=(0,l.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function kp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ap(...e){return t=>{let n=!1,r=e.map(e=>{let r=kp(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():kp(e[t],null)}}}}function jp(...e){return l.useCallback(Ap(...e),e)}var Mp=class extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(Wl(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=Wl(e)&&e.offsetWidth||0,r=Wl(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Np({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,l.useId)(),s=(0,l.useRef)(null),c=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:u}=(0,l.useContext)(Op),f=jp(s,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:l,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!l)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);u&&(y.nonce=u);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
31
|
+
[data-motion-pop-id="${o}"] {
|
|
32
|
+
position: absolute !important;
|
|
33
|
+
width: ${e}px !important;
|
|
34
|
+
height: ${l}px !important;
|
|
35
|
+
${_}px !important;
|
|
36
|
+
${v}px !important;
|
|
37
|
+
}
|
|
38
|
+
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,d.jsx)(Mp,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:l.cloneElement(e,{ref:f})})}var Pp=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:u})=>{let f=$i(Fp),p=(0,l.useId)(),m=(0,l.useRef)(n),h=(0,l.useRef)(r);ea(()=>{m.current=n,h.current=r});let g=!0,_=(0,l.useMemo)(()=>(g=!1,{id:p,initial:t,isPresent:n,custom:i,onExitComplete:e=>{f.set(e,!0);for(let e of f.values())if(!e)return;r&&r()},register:e=>(f.set(e,!1),()=>{f.delete(e),!m.current&&!f.size&&h.current?.()})}),[n,f,r]);return a&&g&&(_={..._}),(0,l.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[n]),l.useEffect(()=>{!n&&!f.size&&r&&r()},[n]),e=(0,d.jsx)(Np,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:u,children:e}),(0,d.jsx)(ta.Provider,{value:_,children:e})};function Fp(){return new Map}function Ip(e=!0){let t=(0,l.useContext)(ta);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,l.useId)();(0,l.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,l.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var Lp=e=>e.key||``;function Rp(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}var zp=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:u})=>{let[f,p]=Ip(o),m=(0,l.useMemo)(()=>Rp(e),[e]),h=o&&!f?[]:m.map(Lp),g=(0,l.useRef)(!0),_=(0,l.useRef)(m),v=$i(()=>new Map),y=(0,l.useRef)(new Set),[b,x]=(0,l.useState)(m),[S,C]=(0,l.useState)(m);ea(()=>{g.current=!1,_.current=m;for(let e=0;e<S.length;e++){let t=Lp(S[e]);h.includes(t)?(v.delete(t),y.current.delete(t)):v.get(t)!==!0&&v.set(t,!1)}},[S,h.length,h.join(`-`)]);let w=[];if(m!==b){let e=[...m];for(let t=0;t<S.length;t++){let n=S[t],r=Lp(n);h.includes(r)||(e.splice(t,0,n),w.push(n))}return a===`wait`&&w.length&&(e=w),C(Rp(e)),x(m),null}process.env.NODE_ENV!==`production`&&a===`wait`&&S.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);let{forceRender:T}=(0,l.useContext)(Qi);return(0,d.jsx)(d.Fragment,{children:S.map(e=>{let l=Lp(e),b=o&&!f?!1:m===S||h.includes(l);return(0,d.jsx)(Pp,{isPresent:b,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:u,onExitComplete:b?void 0:()=>{if(y.current.has(l))return;if(v.has(l))y.current.add(l),v.set(l,!0);else return;let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(T?.(),C(_.current),o&&p?.(),r&&r())},anchorX:s,anchorY:c,children:e},l)})})},Bp=(0,l.createContext)({strict:!1}),Vp={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Hp=!1;function Up(){if(Hp)return;let e={};for(let t in Vp)e[t]={isEnabled:e=>Vp[t].some(t=>!!e[t])};Ju(e),Hp=!0}function Wp(){return Up(),Yu()}function Gp(e){let t=Wp();for(let n in e)t[n]={...t[n],...e[n]};Ju(t)}var Kp=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function qp(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Kp.has(e)}var Jp=Yi({default:()=>Yp}),Yp,Xp=Ji((()=>{throw Yp={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),Zp=e=>!qp(e);function Qp(e){typeof e==`function`&&(Zp=t=>t.startsWith(`on`)?!qp(t):e(t))}try{Qp((Xp(),Zi(Jp)).default)}catch{}function $p(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||Z(e[i])||(Zp(i)||n===!0&&qp(i)||!t&&!qp(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var em=(0,l.createContext)({});function tm(e,t){if(zu(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Iu(t)?t:void 0,animate:Iu(n)?n:void 0}}return e.inherit===!1?{}:t}function nm(e){let{initial:t,animate:n}=tm(e,(0,l.useContext)(em));return(0,l.useMemo)(()=>({initial:t,animate:n}),[rm(t),rm(n)])}function rm(e){return Array.isArray(e)?e.join(` `):e}var im=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function am(e,t,n){for(let r in t)!Z(t[r])&&!kd(r,n)&&(e[r]=t[r])}function om({transformTemplate:e},t){return(0,l.useMemo)(()=>{let n=im();return Cd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function sm(e,t){let n=e.style||{},r={};return am(r,n,e),Object.assign(r,om(e,t)),r}function cm(e,t){let n={},r=sm(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var lm=()=>({...im(),attrs:{}});function um(e,t,n,r){let i=(0,l.useMemo)(()=>{let n=lm();return Ld(n,t,zd(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};am(t,e.style,e),i.style={...t,...i.style}}return i}var dm=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function fm(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(dm.indexOf(e)>-1||/[A-Z]/u.test(e))}function pm(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??fm(e)?um:cm)(t,r,i,e),c=$p(t,typeof e==`string`,a),u=e===l.Fragment?{}:{...c,...s,ref:n},{children:d}=t,f=(0,l.useMemo)(()=>Z(d)?d.get():d,[d]);return(0,l.createElement)(e,{...u,children:f})}function mm({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:hm(n,r,i,e),renderState:t()}}function hm(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Uf(a[e]);let{initial:o,animate:s}=e,c=zu(e),l=Bu(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Fu(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=al(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var gm=e=>(t,n)=>{let r=(0,l.useContext)(em),i=(0,l.useContext)(ta),a=()=>mm(e,t,r,i);return n?a():$i(a)},_m=gm({scrapeMotionValuesFromProps:Ad,createRenderState:im}),vm=gm({scrapeMotionValuesFromProps:Vd,createRenderState:lm}),ym=Symbol.for(`motionComponentSymbol`);function bm(e,t,n){let r=(0,l.useRef)(n);(0,l.useInsertionEffect)(()=>{r.current=n});let i=(0,l.useRef)(null);return(0,l.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var xm=(0,l.createContext)({});function Sm(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Cm(e,t,n,r,i,a){let{visualElement:o}=(0,l.useContext)(em),s=(0,l.useContext)(Bp),c=(0,l.useContext)(ta),u=(0,l.useContext)(Op),d=u.reducedMotion,f=u.skipAnimations,p=(0,l.useRef)(null),m=(0,l.useRef)(!1);r||=s.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:a}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let h=p.current,g=(0,l.useContext)(xm);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&wm(p.current,n,i,g);let _=(0,l.useRef)(!1);(0,l.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[hl],y=(0,l.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return ea(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,l.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function wm(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Tm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Sm(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Tm(e){if(e)return e.options.allowProjection===!1?Tm(e.parent):e.projection}function Em(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Gp(r);let a=n?n===`svg`:fm(e),o=a?vm:_m;function s(n,s){let c,u={...(0,l.useContext)(Op),...n,layoutId:Dm(n)},{isStatic:f}=u,p=nm(n),m=o(n,f);if(!f&&typeof window<`u`){Om(u,r);let t=km(u);c=t.MeasureLayout,p.visualElement=Cm(e,m,u,i,t.ProjectionNode,a)}return(0,d.jsxs)(em.Provider,{value:p,children:[c&&p.visualElement?(0,d.jsx)(c,{visualElement:p.visualElement,...u}):null,pm(e,n,bm(m,p.visualElement,s),m,f,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,l.forwardRef)(s);return c[ym]=e,c}function Dm({layoutId:e}){let t=(0,l.useContext)(Qi).id;return t&&e!==void 0?t+`-`+e:e}function Om(e,t){let n=(0,l.useContext)(Bp).strict;if(process.env.NODE_ENV!==`production`&&t&&n){let t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?oa(!1,t,`lazy-strict-mode`):sa(!1,t,`lazy-strict-mode`)}}function km(e){let{drag:t,layout:n}=Wp();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Am(e,t){if(typeof Proxy>`u`)return Em;let n=new Map,r=(n,r)=>Em(n,r,e,t);return new Proxy((e,t)=>(process.env.NODE_ENV!==`production`&&va(!1,`motion() is deprecated. Use motion.create() instead.`),r(e,t)),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Em(a,void 0,e,t)),n.get(a))})}var jm=(e,t)=>t.isSVG??fm(e)?new Hd(t):new Md(t,{allowProjection:e!==l.Fragment}),Mm=class extends Qu{constructor(e){super(e),e.animationState||=Yd(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Fu(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Nm=0,Pm={animation:{Feature:Mm},exit:{Feature:class extends Qu{constructor(){super(...arguments),this.id=Nm++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=ol(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Fm(e){return{point:{x:e.pageX,y:e.pageY}}}var Im=e=>t=>eu(t)&&e(t,Fm(t));function Lm(e,t,n,r){return zf(e,t,Im(n),r)}var Rm=({current:e})=>e?e.ownerDocument.defaultView:null,zm=(e,t)=>Math.abs(e-t);function Bm(e,t){let n=zm(e.x,t.x),r=zm(e.y,t.y);return Math.sqrt(n**2+r**2)}var Vm=new Set([`auto`,`scroll`]),Hm=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Um(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Gm(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Bm(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=G;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Um(t,this.transformPagePoint),W.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Gm(e.type===`pointercancel`?this.lastMoveEventInfo:Um(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!eu(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Um(Fm(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=G;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Gm(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=pa(Lm(this.contextWindow,`pointermove`,this.handlePointerMove,d),Lm(this.contextWindow,`pointerup`,this.handlePointerUp,d),Lm(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Vm.has(e.overflowX)||Vm.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),W.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ga(this.updatePoint)}};function Um(e,t){return t?{point:t(e.point)}:e}function Wm(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Gm({point:e},t){return{point:e,delta:Wm(e,qm(t)),offset:Wm(e,Km(t)),velocity:Jm(t,.1)}}function Km(e){return e[0]}function qm(e){return e[e.length-1]}function Jm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=qm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>H(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>H(t)*2&&(r=e[1]);let a=U(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ym(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Y(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Y(n,e,r.max):Math.min(e,n)),e}function Xm(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Zm(e,{top:t,left:n,bottom:r,right:i}){return{x:Xm(e.x,n,i),y:Xm(e.y,t,r)}}function Qm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function $m(e,t){return{x:Qm(e.x,t.x),y:Qm(e.y,t.y)}}function eh(e,t){let n=.5,r=$(e),i=$(t);return i>r?n=ma(t.min,t.max-r,e.min):r>i&&(n=ma(e.min,e.max-i,t.min)),ia(0,1,n)}function th(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var nh=.35;function rh(e=nh){return e===!1?e=0:e===!0&&(e=nh),{x:ih(e,`left`,`right`),y:ih(e,`top`,`bottom`)}}function ih(e,t,n){return{min:ah(e,t),max:ah(e,n)}}function ah(e,t){return typeof e==`number`?e:e[t]||0}var oh=new WeakMap,sh=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(Fm(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Yl(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Of(e=>{let t=this.getAxisMotionValue(e).get()||0;if(vo.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&W.update(()=>i(e,t),!1,!0),pl(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=dh(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&W.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Hm(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Rm(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&W.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!uh(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Ym(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Sm(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=Zm(n.layoutBox,e):this.constraints=!1,this.elastic=rh(t),r!==this.constraints&&!Sm(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Of(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=th(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sm(e))return!1;let n=e.current;sa(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=yd(n,r.root,this.visualElement.getTransformPagePoint()),a=$m(r.layout.layoutBox,i);if(t){let e=t(ed(a));this.hasMutatedConstraints=!!e,e&&(a=$u(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Of(o=>{if(!uh(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return pl(this.visualElement,e),n.start($c(e,n,0,t,this.visualElement,!1))}stopAnimation(){Of(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Of(t=>{let{drag:n}=this.getProps();if(!uh(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Y(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sm(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Of(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=eh({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Of(t=>{if(!uh(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Y(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;oh.set(this.visualElement,this);let e=this.visualElement.current,t=Lm(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&iu(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Sm(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=lh(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),W.read(r);let o=zf(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Of(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=nh,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ch(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function lh(e,t,n){let r=Eu(e,ch(n)),i=Eu(t,ch(n));return()=>{r(),i()}}function uh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dh(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var fh=class extends Qu{constructor(e){super(e),this.removeGroupControls=V,this.removeListeners=V,this.controls=new sh(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ph=e=>(t,n)=>{e&&W.update(()=>e(t,n),!1,!0)},mh=class extends Qu{constructor(){super(...arguments),this.removePointerDownListener=V}onPointerDown(e){this.session=new Hm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Rm(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ph(e),onStart:ph(t),onMove:ph(n),onEnd:(e,t)=>{delete this.session,r&&W.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Lm(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},hh=!1,gh=class extends l.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),hh&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),hh=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||W.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Gl.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;hh=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function _h(e){let[t,n]=Ip(),r=(0,l.useContext)(Qi);return(0,d.jsx)(gh,{...e,layoutGroup:r,switchLayoutGroup:(0,l.useContext)(xm),isPresent:t,safeToRemove:n})}var vh={pan:{Feature:mh},drag:{Feature:fh,ProjectionNode:Dp,MeasureLayout:_h}};function yh(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&W.postRender(()=>i(t,Fm(t)))}var bh=class extends Qu{mount(){let{current:e}=this.node;e&&(this.unmount=Ql(e,(e,t)=>(yh(this.node,t,`Start`),e=>yh(this.node,e,`End`))))}unmount(){}},xh=class extends Qu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=pa(zf(this.node.current,`focus`,()=>this.onFocus()),zf(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Sh(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&W.postRender(()=>i(t,Fm(t)))}var Ch=class extends Qu{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=du(e,(e,t)=>(Sh(this.node,t,`Start`),(e,{success:t})=>Sh(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},wh=new WeakMap,Th=new WeakMap,Eh=e=>{let t=wh.get(e.target);t&&t(e)},Dh=e=>{e.forEach(Eh)};function Oh({root:e,...t}){let n=e||document;Th.has(n)||Th.set(n,{});let r=Th.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Dh,{root:e,...t})),r[i]}function kh(e,t,n){let r=Oh(t);return wh.set(e,n),r.observe(e),()=>{wh.delete(e),r.unobserve(e)}}var Ah={some:0,all:1},jh=class extends Qu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Ah[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=kh(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Mh(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Mh({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Nh={inView:{Feature:jh},tap:{Feature:Ch},focus:{Feature:xh},hover:{Feature:bh}},Ph={layout:{ProjectionNode:Dp,MeasureLayout:_h}},Fh=Am({...Pm,...Nh,...vh,...Ph},jm),Ih=e=>{let t=(0,m.c)(4),{children:n}=e,r;t[0]===n?r=t[1]:(r=n?(0,d.jsx)(Fh.div,{layout:!0,whileInView:{y:0,opacity:1},initial:{y:-100,opacity:0},animate:{y:0,opacity:1},transition:{duration:1,type:`spring`,bounce:0},children:n}):null,t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,d.jsx)(zp,{mode:`wait`,initial:!0,children:r}),t[2]=r,t[3]=i),i},Lh=e=>{let t=(0,m.c)(6),{children:n,mKey:r}=e,i=(0,l.useId)(),a;t[0]!==n||t[1]!==i||t[2]!==r?(a=n?(0,d.jsx)(Fh.div,{layout:!0,whileInView:{scale:1,opacity:1},initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{duration:1,type:`spring`,bounce:0},children:n},r+i):null,t[0]=n,t[1]=i,t[2]=r,t[3]=a):a=t[3];let o;return t[4]===a?o=t[5]:(o=(0,d.jsx)(zp,{mode:`wait`,initial:!0,children:a}),t[4]=a,t[5]=o),o},Rh=e=>{let t=(0,m.c)(4),{children:n}=e,r;t[0]===n?r=t[1]:(r=n?(0,d.jsx)(Fh.div,{initial:`offscreen`,whileInView:`onscreen`,viewport:{once:!0,amount:0},children:(0,d.jsx)(Fh.div,{variants:{offscreen:{y:100,opacity:0},onscreen:{y:0,opacity:1}},transition:{duration:1,type:`spring`,bounce:0},children:n})}):null,t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,d.jsx)(zp,{mode:`wait`,initial:!0,children:r}),t[2]=r,t[3]=i),i},zh=e=>{let t=(0,m.c)(4),{children:n}=e,r;t[0]===n?r=t[1]:(r=n?(0,d.jsx)(Fh.div,{whileHover:{scale:.95},whileTap:{scale:1},transition:{duration:1,type:`spring`,bounce:0},whileInView:{scale:1},children:n}):null,t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=(0,d.jsx)(zp,{mode:`wait`,initial:!0,children:r}),t[2]=r,t[3]=i),i},Bh=_e,Vh=sr;function Hh(e){return xn(`MuiSvgIcon`,e)}Sn(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var Uh={transition:`none`};function Wh(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var Gh={},Kh=[`all`],qh={};function Jh(e,t){let n=t??Uh;return Wh(e.motion?.reducedMotion,n)}function Yh(e,t=Kh,n=qh){let r=e.transitions?.create?.(t,n),i=Jh(e);if(r===void 0)return i??Gh;let a={transition:r};return i?{...a,...i}:a}var Xh=e=>{let{color:t,fontSize:n,classes:r}=e;return hr({root:[`root`,t!==`inherit`&&`color${Bh(t)}`,`fontSize${Bh(n)}`]},Hh,r)},Zh=Mi(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Bh(n.color)}`],t[`fontSize${Bh(n.fontSize)}`]]}})(Vh(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...Yh(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}}]}))),Qh=l.forwardRef(function(e,t){let n=Fi({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:p=`0 0 24 24`,...m}=n,h=l.isValidElement(r)&&r.type===`svg`,g={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:h},_={};u||(_.viewBox=p);let v=Xh(g);return(0,d.jsxs)(Zh,{as:o,className:yn(v.root,i),focusable:`false`,color:c,"aria-hidden":!f||void 0,role:f?`img`:void 0,ref:t,..._,...m,...h&&r.props,ownerState:g,children:[h?r.props.children:r,f?(0,d.jsx)(`title`,{children:f}):null]})});process.env.NODE_ENV!==`production`&&(Qh.propTypes={children:k.default.node,classes:k.default.object,className:k.default.string,color:k.default.oneOfType([k.default.oneOf([`inherit`,`action`,`disabled`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),k.default.string]),component:k.default.elementType,fontSize:k.default.oneOfType([k.default.oneOf([`inherit`,`large`,`medium`,`small`]),k.default.string]),htmlColor:k.default.string,inheritViewBox:k.default.bool,shapeRendering:k.default.string,sx:k.default.oneOfType([k.default.arrayOf(k.default.oneOfType([k.default.func,k.default.object,k.default.bool])),k.default.func,k.default.object]),titleAccess:k.default.string,viewBox:k.default.string}),Qh.muiName=`SvgIcon`;function $h(e,t){function n(n,r){return(0,d.jsx)(Qh,{"data-testid":process.env.NODE_ENV===`production`?void 0:`${t}Icon`,ref:r,...n,children:e})}return process.env.NODE_ENV!==`production`&&(n.displayName=`${t}Icon`),n.muiName=Qh.muiName,l.memo(l.forwardRef(n))}var eg=$h([(0,d.jsx)(`path`,{d:`M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67 0 1.38-1.12 2.5-2.5 2.5m0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5 0-.16-.08-.28-.14-.35-.41-.46-.63-1.05-.63-1.65 0-1.38 1.12-2.5 2.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7`},`0`),(0,d.jsx)(`circle`,{cx:`6.5`,cy:`11.5`,r:`1.5`},`1`),(0,d.jsx)(`circle`,{cx:`9.5`,cy:`7.5`,r:`1.5`},`2`),(0,d.jsx)(`circle`,{cx:`14.5`,cy:`7.5`,r:`1.5`},`3`),(0,d.jsx)(`circle`,{cx:`17.5`,cy:`11.5`,r:`1.5`},`4`)],`ColorLensOutlined`),tg=$h((0,d.jsx)(`path`,{d:`M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4zm-2 2H6V4h10z`}),`FormatPaintOutlined`),ng=$h((0,d.jsx)(`path`,{d:`M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12M5.21 10 10 5.21 14.79 10zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5M2 20h20v4H2z`}),`FormatColorFillOutlined`);function rg(e,t,n){let r=(0,u.useTheme)(),i=(0,u.useMediaQuery)(r.breakpoints.up(t)),a=(0,u.useMediaQuery)(r.breakpoints.down(t)),o=(0,u.useMediaQuery)(r.breakpoints.between(t,n)),s=(0,u.useMediaQuery)(r.breakpoints.only(t));return e===`up`?i:e===`down`?a:e===`between`?o:s}var ig=({text:e,key:t=``,isPrimary:n=!1})=>(0,d.jsx)(Lh,{mKey:`HighlighedText`+t,children:(0,d.jsx)(u.Box,{sx:{backgroundColor:n?e=>e.palette.primary.main:e=>e.palette.secondary.main,boxShadow:e=>e.shadows[1],px:1,borderRadius:e=>e.shape.borderRadius},children:(0,d.jsx)(u.Typography,{variant:`subtitle2`,color:`textPrimary`,noWrap:!0,sx:{textOverflow:`ellipsis`},children:e})})}),ag=({text:e,fontSize:t=12})=>(0,d.jsx)(u.Typography,{variant:`subtitle1`,color:`textSecondary`,noWrap:!0,sx:{fontSize:t,textOverflow:`ellipsis`},children:e}),og=(0,u.styled)(e=>(0,d.jsx)(u.Switch,{focusVisibleClassName:`.Mui-focusVisible`,...e}))(({theme:e})=>({width:35,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:`500ms`,color:`#fff`,"&.Mui-checked":{color:`#fff`,transform:`translateX(16px)`,"& + .MuiSwitch-track":{backgroundColor:e.palette.secondary.main,border:`1px solid `+e.palette.action.hover,opacity:1}},"&.Mui-disabled .MuiSwitch-thumb":{color:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:`border-box`,width:15,height:15},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.action.active,boxShadow:e.shadows[1],transition:e.transitions.create([`background-color`],{duration:500})}})),sg=[`default`,`fuchsia`,`purple`,`violet`,`cyan`,`teal`,`emerald`,`green`,`lime`,`red`,`rose`,`pink`,`indigo`,`blue`,`sky`,`yellow`,`amber`,`orange`,`stone`,`neutral`,`zinc`,`gray`,`slate`],cg=()=>{let e=w(),t=rg(`up`,`lg`),[n,r]=(0,l.useState)(null),i=!!n,a=()=>{r(null)},o=e=>{r(e.currentTarget)};return(0,d.jsxs)(d.Fragment,{children:[` `,(0,d.jsx)(zh,{children:(0,d.jsx)(u.Tooltip,{title:`YinYang Colors`,children:(0,d.jsx)(u.IconButton,{sx:{mt:`3px !important`},onClick:e=>{o(e)},children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:{borderRadius:`100%`,animation:`roll 40000s infinite`,boxShadow:e=>e.shadows[1]},children:[(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.primary.main,borderRadius:`100% 0 0 100%/50% 0 0 50%`}}),(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.secondary.main,borderRadius:`0 100% 100% 0/0 50% 50% 0`}})]})})})}),(0,d.jsx)(u.Popover,{open:i,anchorEl:n,onClose:a,anchorOrigin:{vertical:`bottom`,horizontal:`left`},sx:{mt:.5},children:(0,d.jsx)(Rh,{children:(0,d.jsxs)(u.Stack,{spacing:1,sx:{p:2,alignItems:`center`},children:[(0,d.jsxs)(u.Stack,{spacing:1,direction:`row`,sx:{justifyContent:`center`,alignItems:`center`},children:[(0,d.jsx)(Ih,{children:(0,d.jsxs)(u.Stack,{direction:`row`,spacing:1,onClick:()=>{e.setYinYangColors()},sx:{alignItems:`center`},children:[(0,d.jsx)(Lh,{mKey:`YinYang1`,children:(0,d.jsx)(zh,{children:(0,d.jsx)(u.Tooltip,{title:`YinYang Colors`,children:(0,d.jsx)(u.IconButton,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:{borderRadius:`100%`,animation:`roll 40000s infinite`,boxShadow:e=>e.shadows[1]},children:[(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.primary.main,borderRadius:`100% 0 0 100%/50% 0 0 50%`}}),(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.secondary.main,borderRadius:`0 100% 100% 0/0 50% 50% 0`}})]})})})})}),(0,d.jsx)(u.Typography,{variant:`subtitle1`,color:`textSecondary`,children:`YinYang Colors`}),(0,d.jsx)(Lh,{mKey:`YinYang2`,children:(0,d.jsx)(zh,{children:(0,d.jsx)(u.Tooltip,{title:`YinYang Colors`,children:(0,d.jsx)(u.IconButton,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:{borderRadius:`100%`,animation:`roll 40000s infinite`,boxShadow:e=>e.shadows[1]},children:[(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.primary.main,borderRadius:`100% 0 0 100%/50% 0 0 50%`}}),(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.secondary.main,borderRadius:`0 100% 100% 0/0 50% 50% 0`}})]})})})})})]})}),(0,d.jsx)(zh,{children:(0,d.jsx)(og,{value:!(e.Theme_LightOrDarkMode===void 0||e.Theme_LightOrDarkMode===`light`),defaultChecked:!(e.Theme_LightOrDarkMode===void 0||e.Theme_LightOrDarkMode===`light`),onChange:()=>{e.setTheme_LightOrDarkMode(e.Theme_LightOrDarkMode===void 0||e.Theme_LightOrDarkMode===`light`?`dark`:`light`)}})}),(0,d.jsx)(Ih,{children:(0,d.jsxs)(u.Stack,{direction:`row`,spacing:1,onClick:()=>{e.setYinYang2Colors()},sx:{alignItems:`center`},children:[(0,d.jsx)(Lh,{mKey:`YinYang1`,children:(0,d.jsx)(zh,{children:(0,d.jsx)(u.Tooltip,{title:`YinYang Colors`,children:(0,d.jsx)(u.IconButton,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:{borderRadius:`100%`,animation:`roll 40000s infinite`,boxShadow:e=>e.shadows[1]},children:[(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.primary.main,borderRadius:`100% 0 0 100%/50% 0 0 50%`}}),(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.secondary.main,borderRadius:`0 100% 100% 0/0 50% 50% 0`}})]})})})})}),(0,d.jsx)(u.Typography,{variant:`subtitle1`,color:`textSecondary`,children:`Yin2Yang Colors`}),(0,d.jsx)(Lh,{mKey:`YinYang2`,children:(0,d.jsx)(zh,{children:(0,d.jsx)(u.Tooltip,{title:`YinYang Colors`,children:(0,d.jsx)(u.IconButton,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:{borderRadius:`100%`,animation:`roll 40000s infinite`,boxShadow:e=>e.shadows[1]},children:[(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.primary.main,borderRadius:`100% 0 0 100%/50% 0 0 50%`}}),(0,d.jsx)(u.Stack,{sx:{height:`25px`,width:`13px`,backgroundColor:e=>e.palette.secondary.main,borderRadius:`0 100% 100% 0/0 50% 50% 0`}})]})})})})})]})})]}),(0,d.jsx)(Ih,{children:(0,d.jsxs)(u.Stack,{direction:`row`,spacing:1,children:[(0,d.jsx)(ig,{isPrimary:!0,text:`Colors`}),(0,d.jsx)(u.Typography,{variant:`subtitle1`,color:`textSecondary`,children:`&`}),(0,d.jsx)(ig,{text:`Shades`})]})}),(0,d.jsxs)(u.Stack,{spacing:1,sx:{width:`100%`,overflow:`auto`},children:[(0,d.jsxs)(u.Stack,{direction:`row`,spacing:1,children:[(0,d.jsx)(eg,{sx:{color:e=>e.palette.primary.main}}),(0,d.jsx)(ag,{text:`Primary`})]}),(0,d.jsxs)(u.Stack,{direction:t?`row`:`column`,spacing:2,sx:{alignItems:`center`,backgroundColor:`background.default`,borderRadius:e=>e.shape.borderRadius,m:1,p:1,overflow:`auto`},children:[(0,d.jsx)(ag,{text:`Color`}),(0,d.jsx)(Lh,{mKey:`PrimaryTheme`,children:(0,d.jsx)(zh,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:[{alignItems:`center`},e=>({height:`32px`,backgroundColor:e.palette.action.hover,pr:0,pl:2,borderRadius:e=>e.shape.borderRadius})],children:[(0,d.jsx)(tg,{sx:{color:e=>e.palette.primary.main}}),(0,d.jsx)(u.Select,{sx:{width:`100%`,maxWidth:`120px`,boxShadow:e=>e.shadows[0],backgroundColor:`transparent`},value:e.Theme_PrimaryColor,onChange:t=>{e.setTheme_PrimaryColor(t.target.value)},children:sg.map(e=>(0,d.jsx)(u.MenuItem,{value:e,children:(0,d.jsx)(u.Stack,{direction:`row`,sx:{justifyContent:`space-between`,alignItems:`center`,width:`150px`},children:(0,d.jsx)(ag,{text:e})})},e))})]})})}),(0,d.jsx)(ag,{text:`Shade`}),(0,d.jsx)(Lh,{mKey:`Shade`,children:(0,d.jsx)(zh,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:[{alignItems:`center`},e=>({height:`32px`,backgroundColor:e.palette.action.hover,pr:0,pl:2,borderRadius:e=>e.shape.borderRadius})],children:[(0,d.jsx)(ng,{sx:{color:e=>e.palette.primary.main}}),(0,d.jsx)(u.Select,{sx:{width:`100%`,maxWidth:`120px`,boxShadow:e=>e.shadows[0],backgroundColor:`transparent`},value:e.Theme_SelectedShadeType_Primary,onChange:t=>{e.setTheme_SelectedShadeType_Primary(t.target.value)},children:[`lightShade`,`mainShade`,`darkShade`].map(e=>(0,d.jsx)(u.MenuItem,{value:e,children:(0,d.jsx)(u.Stack,{direction:`row`,sx:{justifyContent:`space-between`,alignItems:`center`,width:`150px`},children:(0,d.jsx)(ag,{text:e})})},e))})]})})})]}),(0,d.jsxs)(u.Stack,{direction:`row`,spacing:1,children:[(0,d.jsx)(eg,{sx:{color:e=>e.palette.secondary.main}}),(0,d.jsx)(ag,{text:`Secondary`})]}),(0,d.jsxs)(u.Stack,{direction:t?`row`:`column`,spacing:2,sx:{alignItems:`center`,backgroundColor:`background.default`,borderRadius:e=>e.shape.borderRadius,m:1,p:1,overflow:`auto`},children:[(0,d.jsx)(ag,{text:`Color`}),(0,d.jsx)(Lh,{mKey:`SecondaryTheme`,children:(0,d.jsx)(zh,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:[{alignItems:`center`},e=>({height:`32px`,backgroundColor:e.palette.action.hover,pr:0,pl:2,borderRadius:e=>e.shape.borderRadius})],children:[(0,d.jsx)(tg,{sx:{color:e=>e.palette.secondary.main}}),(0,d.jsx)(u.Select,{sx:{width:`100%`,maxWidth:`120px`,boxShadow:e=>e.shadows[0],backgroundColor:`transparent`},value:e.Theme_SecondaryColor,onChange:t=>{e.setTheme_SecondaryColor(t.target.value)},children:sg.map(e=>(0,d.jsx)(u.MenuItem,{value:e,children:(0,d.jsx)(u.Stack,{direction:`row`,sx:{justifyContent:`space-between`,alignItems:`center`,width:`150px`},children:(0,d.jsx)(ag,{text:e})})},e))})]})})}),(0,d.jsx)(ag,{text:`Shade`}),(0,d.jsx)(Lh,{mKey:`Shade`,children:(0,d.jsx)(zh,{children:(0,d.jsxs)(u.Stack,{direction:`row`,sx:[{alignItems:`center`},e=>({height:`32px`,backgroundColor:e.palette.action.hover,pr:0,pl:2,borderRadius:e=>e.shape.borderRadius})],children:[(0,d.jsx)(ng,{sx:{color:e=>e.palette.secondary.main}}),(0,d.jsx)(u.Select,{sx:{width:`100%`,maxWidth:`120px`,boxShadow:e=>e.shadows[0],backgroundColor:`transparent`},value:e.Theme_SelectedShadeType_Secondary,onChange:t=>{e.setTheme_SelectedShadeType_Secondary(t.target.value)},children:[`lightShade`,`mainShade`,`darkShade`].map(e=>(0,d.jsx)(u.MenuItem,{value:e,children:(0,d.jsx)(u.Stack,{direction:`row`,sx:{justifyContent:`space-between`,alignItems:`center`,width:`150px`},children:(0,d.jsx)(ag,{text:e})})},e))})]})})})]})]})]})},`theme`)})]})};function lg(){return(0,d.jsxs)(u.ThemeProvider,{theme:w().Theme_WebApp_Theme,children:[(0,d.jsx)(Ui,{}),(0,d.jsx)(cg,{})]})}exports.MUIThemeContextProvider=T,exports.YinYangThemesMenu=lg,exports.useMUIThemeContext=w;
|