import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{pt as r,w as i}from"./dist-DtfJeYQK.js";var a,o,s=t((()=>{a=e(n(),1),o=typeof window<`u`?a.useLayoutEffect:a.useEffect}));function c(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let r=e=>u?t:window.matchMedia(e).matches,[i,a]=(0,l.useState)(()=>n?r(e):t);function s(){a(r(e))}return o(()=>{let t=window.matchMedia(e);return s(),t.addListener?t.addListener(s):t.addEventListener(`change`,s),()=>{t.removeListener?t.removeListener(s):t.removeEventListener(`change`,s)}},[e]),i}var l,u,d=t((()=>{l=e(n(),1),s(),u=typeof window>`u`}));function f(e){let t=r[e];return c(`(min-width: ${t}px)`)}var p=t((()=>{i(),d()}));export{f as n,p as t};