System.register(["./index-legacy.DjPCm-Xr.js","./index-legacy.C24Ds00T.js","./index-legacy.sLMPZLm9.js"],(function(e,t){"use strict";var i,s,o,n,f,h,l,d,r,c;return{setters:[e=>{i=e.f,s=e._},e=>{o=e.i},e=>{n=e.d,f=e.r,h=e.o,l=e.b,d=e.c,r=e.w,c=e.g}],execute:function(){e("R",n({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const g=f({width:0,height:0,offsetHeight:0,offsetWidth:0});let u=null,a=null;const v=()=>{a&&(a.disconnect(),a=null)},b=t=>{const{onResize:i}=e,o=t[0].target,{width:n,height:f}=o.getBoundingClientRect(),{offsetWidth:h,offsetHeight:l}=o,d=Math.floor(n),r=Math.floor(f);if(g.width!==d||g.height!==r||g.offsetWidth!==h||g.offsetHeight!==l){const e={width:d,height:r,offsetWidth:h,offsetHeight:l};s(g,e),i&&Promise.resolve().then((()=>{i(s(s({},e),{offsetWidth:h,offsetHeight:l}),o)}))}},w=c(),m=()=>{const{disabled:t}=e;if(t)return void v();const s=i(w);s!==u&&(v(),u=s),!a&&s&&(a=new o(b),a.observe(s))};return h((()=>{m()})),l((()=>{m()})),d((()=>{v()})),r((()=>e.disabled),(()=>{m()}),{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}}))}}}));
