import{cloneVNode as f,isVNode as p,Comment as s,Fragment as l,render as m}from"vue";import{filterEmpty as a}from"./props-util/index.mjs";import c from"./warning.mjs";function y(e,r={},t=!0,o=!1){let n=e;if(Array.isArray(e)&&(n=a(e)[0]),!n)return null;const u=f(n,r,o);return u.props=t?{...u.props,...r}:u.props,c(typeof u.props.class!="object"),u}function g(e,r={},t=!0){return e.map(o=>y(o,r,t))}function A(e,r,t){m(f(e,{...r}),t)}const i=e=>(e||[]).some(r=>p(r)?!(r.type===s||r.type===l&&!i(r.children)):!0)?e:null;function E(e,r,t,o){const n=e[r]?.(t);return i(n)?n:o?.()}export{y as cloneElement,g as cloneVNodes,E as customRenderSlot,A as triggerVNodeUpdate};
