export async function waitUntilCustomElementsDefinedAsync(elements) {
    const definedElements = elements.map(async (item) => {
        if (item.matches(':not(:defined)')) {
            await customElements.whenDefined(item.localName);
        }
    });
    await Promise.all(definedElements);
}
//# sourceMappingURL=wait-until-custom-elements-defined-async.js.map