import{ref as l,reactive as f,onMounted as m}from"vue";import r from"../../../_util/raf.mjs";function p(n){const e=l(null),u=f({...n}),t=l([]),o=s=>{e.value===null&&(t.value=[],e.value=r(()=>{let a;t.value.forEach(c=>{a={...a,...c}}),Object.assign(u,a),e.value=null})),t.value.push(s)};return m(()=>{e.value&&r.cancel(e.value)}),[u,o]}export{p as default};
