function deepContains(container, element) {
	let node = element;
	while (node) {
		if (node === container) return true;
		const rootNode = node.getRootNode();
		if (rootNode instanceof ShadowRoot) node = rootNode.host;
		else node = node.parentNode;
	}
	return false;
}
export { deepContains as t };

//# sourceMappingURL=deepContains.js.map