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