import { E as e, q as t } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
import { c as n } from "./keys-BeW4IrXP.js";
//#region src/composables/useCloudI18n.ts
function r(e, t) {
	return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
}
function i(i) {
	let a = i ?? e(n, null);
	return {
		t: a ? t(a) ? a.value : a : null,
		format: r
	};
}
function a(e) {
	let { t, format: n } = i(e);
	if (!t) throw Error("useCloudI18nStrict() requires a cloud translations provider. Ensure the component is a descendant of CloudEditor.");
	return {
		t,
		format: n
	};
}
//#endregion
export { a as n, i as t };
