function hasLightDOMSlotContent(element) {
    return 'slotContent' in element && 'object' == typeof element.slotContent;
}
function getNamedSlotContent(host, slotName) {
    if (hasLightDOMSlotContent(host)) {
        const targetLightDomSlotContent = host.slotContent[slotName];
        return targetLightDomSlotContent?.filter((node)=>node instanceof Element) || [];
    }
    const children = Array.from(host.children);
    return children.filter((child)=>child.getAttribute('slot') === slotName);
}
function getDefaultSlotContent(host) {
    const children = Array.from(host.children);
    return children.filter((child)=>!child.hasAttribute('slot') || '' === child.getAttribute('slot'));
}
export { getDefaultSlotContent, getNamedSlotContent };
