//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs
const t = Symbol.for(`__confbox_fmt__`), n = /^(\s+)/, r = /(\s+)$/;
function i(e, t$1 = {}) {
	return {
		sample: t$1.indent === void 0 && t$1.preserveIndentation !== !1 && e.slice(0, t$1?.sampleSize || 1024),
		whiteSpace: t$1.preserveWhitespace === !1 ? void 0 : {
			start: n.exec(e)?.[0] || ``,
			end: r.exec(e)?.[0] || ``
		}
	};
}
function a(e, n$1, r$1) {
	!n$1 || typeof n$1 != `object` || Object.defineProperty(n$1, t, {
		enumerable: !1,
		configurable: !0,
		writable: !0,
		value: i(e, r$1)
	});
}

//#endregion
export { a };
//# sourceMappingURL=_format.mjs.map