!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["l3-style"]=t(require("react")):e["l3-style"]=t(e.react)}(this,(e=>(()=>{"use strict";var t={42487:(e,t,r)=>{r.r(t)},8156:t=>{t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return o(42487),(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.useMediaQuery=void 0;const t=o(8156);function r(e){const r=(0,t.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),[o,n]=(0,t.useState)(r.map((e=>!!window.matchMedia(e).matches)));return(0,t.useLayoutEffect)((()=>{const e=r.map((e=>window.matchMedia(e))),t=e.map(((e,t)=>{const r=e=>{n((r=>{const o=[...r];return o[t]=e.matches,o}))};return e.addEventListener("change",r),[e,r]}));return()=>{t.forEach((([e,t])=>{e.removeEventListener("change",t)}))}}),[r,n]),o}e.useMediaQuery=r,e.default=r})(),n})()));
//# sourceMappingURL=useMediaQuery.js.map