//#region ../../node_modules/hast-util-is-element/lib/index.js
var e = (function(e) {
	if (e == null) return i;
	if (typeof e == "string") return n(e);
	if (typeof e == "object") return t(e);
	if (typeof e == "function") return r(e);
	throw Error("Expected function, string, or array as `test`");
});
function t(t) {
	let n = [], i = -1;
	for (; ++i < t.length;) n[i] = e(t[i]);
	return r(a);
	function a(...e) {
		let t = -1;
		for (; ++t < n.length;) if (n[t].apply(this, e)) return !0;
		return !1;
	}
}
function n(e) {
	return r(t);
	function t(t) {
		return t.tagName === e;
	}
}
function r(e) {
	return t;
	function t(t, n, r) {
		return !!(a(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
	}
}
function i(e) {
	return !!(e && typeof e == "object" && "type" in e && e.type === "element" && "tagName" in e && typeof e.tagName == "string");
}
function a(e) {
	return typeof e == "object" && !!e && "type" in e && "tagName" in e;
}
//#endregion
export { e as convertElement };
