//#region ../../node_modules/stringify-entities/lib/util/to-decimal.js
var e = /\d/;
function t(t, n, r) {
	let i = "&#" + String(t);
	return r && n && !e.test(String.fromCharCode(n)) ? i : i + ";";
}
//#endregion
export { t as toDecimal };
