import { Selection as e } from "./index.js";
//#region ../../node_modules/d3-selection/src/selection/merge.js
function t(t) {
	for (var n = t.selection ? t.selection() : t, r = this._groups, i = n._groups, a = r.length, o = i.length, s = Math.min(a, o), c = Array(a), l = 0; l < s; ++l) for (var u = r[l], d = i[l], f = u.length, p = c[l] = Array(f), m, h = 0; h < f; ++h) (m = u[h] || d[h]) && (p[h] = m);
	for (; l < a; ++l) c[l] = r[l];
	return new e(c, this._parents);
}
//#endregion
export { t as default };
