import { now as e } from "../../../d3-timer/src/timer.js";
import t from "../transition/schedule.js";
import { Transition as n, newId as r } from "../transition/index.js";
import { cubicInOut as i } from "../../../d3-ease/src/cubic.js";
//#region ../../node_modules/d3-transition/src/selection/transition.js
var a = {
	time: null,
	delay: 0,
	duration: 250,
	ease: i
};
function o(e, t) {
	for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
	return n;
}
function s(i) {
	var s, c;
	i instanceof n ? (s = i._id, i = i._name) : (s = r(), (c = a).time = e(), i = i == null ? null : i + "");
	for (var l = this._groups, u = l.length, d = 0; d < u; ++d) for (var f = l[d], p = f.length, m, h = 0; h < p; ++h) (m = f[h]) && t(m, i, s, h, f, c || o(m, s));
	return new n(l, this._parents, i, s);
}
//#endregion
export { s as default };
