import{a as e}from"./chunk-BNv3lrIs.js";import{n as t}from"./jsx-runtime-pmtNMKr4.js";import{n}from"./emotion-element-f0de968e.browser.esm-C-Z-HjI4.js";var r=e(t(),1);function i(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=i(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function a(){for(var e,t,n=0,r=``,a=arguments.length;n<a;n++)(e=arguments[n])&&(t=i(e))&&(r&&(r+=` `),r+=t);return r}var o=`$$material`;function s(e){return Object.keys(e).length===0}function c(e=null){let t=r.useContext(n);return!t||s(t)?e:t}function l(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let o=i;if(o===`components`||o===`slots`)r[o]={...e[o],...r[o]};else if(o===`componentsProps`||o===`slotProps`){let i=e[o],a=t[o];if(!a)r[o]=i||{};else if(!i)r[o]=a;else{r[o]={...a};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[o][t]=l(i[t],a[t],n)}}}else o===`className`&&n&&t.className!==void 0?r.className=a(e?.className,t?.className):o===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}function u(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:l(t.components[n].defaultProps,r)}var d=typeof window<`u`?r.useLayoutEffect:r.useEffect;function f(e,t,n,i,a){let[o,s]=r.useState(()=>a&&n?n(e).matches:i?i(e).matches:t);return d(()=>{if(!n)return;let t=n(e),r=()=>{s(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),o}var p={...r}.useSyncExternalStore;function m(e,t,n,i,a){let o=r.useCallback(()=>t,[t]),s=r.useMemo(()=>{if(a&&n)return()=>n(e).matches;if(i!==null){let{matches:t}=i(e);return()=>t}return o},[o,e,i,a,n]),[c,l]=r.useMemo(()=>{if(n===null)return[o,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[o,n,e]);return p(l,c,s)}function h(e={}){let{themeId:t}=e;return function(e,n={}){let i=c();i&&t&&(i=i[t]||i);let a=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:o=!1,matchMedia:s,ssrMatchMedia:l=null,noSsr:d=!1}=u({name:`MuiUseMediaQuery`,props:n,theme:i}),h=r.useMemo(()=>s===void 0?a===null?null:a.bind(window):s,[s,a]),g=typeof e==`function`?e(i):e;return g=g.replace(/^@media( ?)/m,``),g.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(p===void 0?f:m)(g,o,h,l,d)}}h();var g=h({themeId:o});export{c as n,o as r,g as t};