import { xhtml } from "./namespaces.js";
import namespace_default from "./namespace.js";
function creatorInherit(e) {
	return function() {
		var n = this.ownerDocument, r = this.namespaceURI;
		return r === "http://www.w3.org/1999/xhtml" && n.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? n.createElement(e) : n.createElementNS(r, e);
	};
}
function creatorFixed(e) {
	return function() {
		return this.ownerDocument.createElementNS(e.space, e.local);
	};
}
function creator_default(e) {
	var i = namespace_default(e);
	return (i.local ? creatorFixed : creatorInherit)(i);
}
export { creator_default as default };
