import { markRaw as a, createVNode as d, render as p } from "vue";
const m = (r, n, c) => {
  if (!n) throw new Error("No current instance found");
  const e = document.createElement("div");
  document.body.appendChild(e);
  const t = a(r), o = d(t, c);
  return o.appContext = n.appContext, p(o, e), { container: e, vNode: o };
};
function s(r, n, c) {
  var o;
  const { vNode: e } = m(n, r, c), t = (o = e.component) == null ? void 0 : o.exposed;
  t == null || t.trigger();
}
export {
  s as c
};
