//#region src/channels/pairing/preseed-allow-from.ts
/**
* Dedupe-merge sender ids into an allowFrom list (config JSON uses string | number).
*/
function mergeDistinctSenderIds(existingAllowFrom, extraIds) {
	const prev = Array.isArray(existingAllowFrom) ? existingAllowFrom.map((x) => String(x).trim()) : [];
	const set = new Set(prev.filter(Boolean));
	for (const id of extraIds) {
		const t = typeof id === "string" ? id.trim() : "";
		if (t) set.add(t);
	}
	return [...set];
}
//#endregion
export { mergeDistinctSenderIds };

//# sourceMappingURL=preseed-allow-from.js.map