//#region ../../node_modules/trim-lines/index.js
var e = 9, t = 32;
function n(e) {
	let t = String(e), n = /\r?\n|\r/g, i = n.exec(t), a = 0, o = [];
	for (; i;) o.push(r(t.slice(a, i.index), a > 0, !0), i[0]), a = i.index + i[0].length, i = n.exec(t);
	return o.push(r(t.slice(a), a > 0, !1)), o.join("");
}
function r(n, r, i) {
	let a = 0, o = n.length;
	if (r) {
		let r = n.codePointAt(a);
		for (; r === e || r === t;) a++, r = n.codePointAt(a);
	}
	if (i) {
		let r = n.codePointAt(o - 1);
		for (; r === e || r === t;) o--, r = n.codePointAt(o - 1);
	}
	return o > a ? n.slice(a, o) : "";
}
//#endregion
export { n as trimLines };
