import { safeJsonStringify as e } from "./serialize.utils.mjs";
//#region libs/shared/common/src/functions/utils/enum.utils.ts
function t(e, t) {
	return Object.values(e).includes(t);
}
function n(n, r, i = !1) {
	if (t(n, r)) return r;
	let a = `Value ${e(r)} is not a valid member of enum ${e(n)}.`;
	if (i) throw Error(a);
}
//#endregion
export { n as toEnumValue };
