import { fromDom as e } from "../../hast-util-from-dom/lib/index.js";
//#region ../../node_modules/hast-util-from-html-isomorphic/lib/browser.js
var t = new DOMParser();
function n(n, i) {
	return e(i?.fragment ? r(n) : t.parseFromString(n, "text/html"));
}
function r(e) {
	let t = document.createElement("template");
	return t.innerHTML = e, t.content;
}
//#endregion
export { n as fromHtmlIsomorphic };
