1import{b as M,T as E}from"./styled-B-E3RNVO.js";import{r as u,R as v}from"./chunk-UIGDSWPH-CcLCFrea.js";import{g as w}from"./getThemeProps-D86yRyku.js";const g=typeof window<"u"?u.useLayoutEffect:u.useEffect;function Q(n,r,e,s,c){const[t,d]=u.useState(()=>c&&e?e(n).matches:s?s(n).matches:r);return g(()=>{if(!e)return;const o=e(n),a=()=>{d(o.matches)};return a(),o.addEventListener("change",a),()=>{o.removeEventListener("change",a)}},[n,e]),t}const b={...v},p=b.useSyncExternalStore;function S(n,r,e,s,c){const t=u.useCallback(()=>r,[r]),d=u.useMemo(()=>{if(c&&e)return()=>e(n).matches;if(s!==null){const{matches:i}=s(n);return()=>i}return t},[t,n,s,c,e]),[o,a]=u.useMemo(()=>{if(e===null)return[t,()=>()=>{}];const i=e(n);return[()=>i.matches,l=>(i.addEventListener("change",l),()=>{i.removeEventListener("change",l)})]},[t,e,n]);return p(a,o,d)}function h(n={}){const{themeId:r}=n;return function(s,c={}){let t=M();t&&r&&(t=t[r]||t);const o=typeof window<"u"&&typeof window.matchMedia<"u"?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:f,ssrMatchMedia:i=null,noSsr:l=!1}=w({name:"MuiUseMediaQuery",props:c,theme:t}),y=u.useMemo(()=>f!==void 0?f:o===null?null:o.bind(window),[f,o]);let m=typeof s=="function"?s(t):s;return m=m.replace(/^@media( ?)/m,""),m.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(` 2`)),(p!==void 0?S:Q)(m,a,y,i,l)}}h();const T=h({themeId:E});export{g as a,T as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.