"use strict";const a=require("react"),b=require("./index-kcwFA4Dv.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=d(a);function S(e){const[t,r]=z.useState(void 0);return b.useLayoutEffect2(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const f=o[0];let s,n;if("borderBoxSize"in f){const c=f.borderBoxSize,u=Array.isArray(c)?c[0]:c;s=u.inlineSize,n=u.blockSize}else s=e.offsetWidth,n=e.offsetHeight;r({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}exports.useSize=S;
//# sourceMappingURL=index-DOFLOnao.js.map
