
//#region src/translation-alignment/mapChangedLinesToBlocks.ts
const mapChangedLinesToBlocks = (blocks, changedLines) => {
	const changedSet = /* @__PURE__ */ new Set();
	if (!changedLines || changedLines.length === 0) return changedSet;
	const changedLookup = new Set(changedLines);
	blocks.forEach((block, index) => {
		for (let line = block.lineStart; line <= block.lineEnd; line += 1) if (changedLookup.has(line)) {
			changedSet.add(index);
			break;
		}
	});
	return changedSet;
};

//#endregion
exports.mapChangedLinesToBlocks = mapChangedLinesToBlocks;
//# sourceMappingURL=mapChangedLinesToBlocks.cjs.map