import{c as t}from"./p-f44f0a67.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const o=async(o,e,n,i,r,s)=>{var c;if(o){return o.attachViewToDom(e,n,r,i)}if(!s&&typeof n!=="string"&&!(n instanceof HTMLElement)){throw new Error("framework delegate is missing")}const a=typeof n==="string"?(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement(n):n;if(i){i.forEach((t=>a.classList.add(t)))}if(r){Object.assign(a,r)}e.appendChild(a);await new Promise((o=>t(a,o)));return a};const e=(t,o)=>{if(o){if(t){const e=o.parentElement;return t.removeViewFromDom(e,o)}o.remove()}return Promise.resolve()};const n=()=>{let o;let e;const n=async(n,i,r={},s=[])=>{var c,a;o=n;if(i){const e=typeof i==="string"?(c=o.ownerDocument)===null||c===void 0?void 0:c.createElement(i):i;s.forEach((t=>e.classList.add(t)));Object.assign(e,r);o.appendChild(e);await new Promise((o=>t(e,o)))}else if(o.children.length>0){const t=(a=o.ownerDocument)===null||a===void 0?void 0:a.createElement("div");s.forEach((o=>t.classList.add(o)));t.append(...o.children);o.appendChild(t)}const f=document.querySelector("ion-app")||document.body;e=document.createComment("ionic teleport");o.parentNode.insertBefore(e,o);f.appendChild(o);return o};const i=()=>{if(o&&e){e.parentNode.insertBefore(o,e);e.remove()}return Promise.resolve()};return{attachViewToDom:n,removeViewFromDom:i}};export{n as C,o as a,e as d};
//# sourceMappingURL=p-4a01d54b.js.map