import e from "../matcher.js";
import { Selection as t } from "./index.js";
//#region ../../node_modules/d3-selection/src/selection/filter.js
function n(n) {
	typeof n != "function" && (n = e(n));
	for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = [], u, d = 0; d < c; ++d) (u = s[d]) && n.call(u, u.__data__, d, s) && l.push(u);
	return new t(a, this._parents);
}
//#endregion
export { n as default };
