text: import{c as r}from"./p-c2089e63.js";const e=async(e,t,n,s,i,o)=>{if(e)return e.attachViewToDom(t,n,i,s);if(!(o||"string"==typeof n||n instanceof HTMLElement))throw new Error("framework delegate is missing");const a="string"==typeof n?t.ownerDocument&&t.ownerDocument.createElement(n):n;return s&&s.forEach((r=>a.classList.add(r))),i&&Object.assign(a,i),t.appendChild(a),await new Promise((e=>r(a,e))),a},t=(r,e)=>{if(e){if(r)return r.removeViewFromDom(e.parentElement,e);e.remove()}return Promise.resolve()};export{e as a,t as d}