import { v as v4 } from './v4-23648a96.js';

/**
Accepts an array of HTML attribute names to be removed from the host element and applied to a child element (typically a native element).
*/
function getHostAttrs(hostEl, whitelist = []) {
  const hostAttrs = hostEl.attributes;
  const passAttrs = {};
  whitelist.forEach(attrName => {
    const attr = hostAttrs.getNamedItem(attrName);
    if (attr) {
      passAttrs[attrName] = attr.value;
      hostAttrs.removeNamedItem(attrName);
    }
  });
  return passAttrs;
}
function genId() {
  return v4();
}

export { getHostAttrs as a, genId as g };

//# sourceMappingURL=index-7c9378a9.js.map