//#region ../../node_modules/d3-interpolate/src/zoom.js
var e = 1e-12;
function t(e) {
	return ((e = Math.exp(e)) + 1 / e) / 2;
}
function n(e) {
	return ((e = Math.exp(e)) - 1 / e) / 2;
}
function r(e) {
	return ((e = Math.exp(2 * e)) - 1) / (e + 1);
}
var i = (function i(a, o, s) {
	function c(i, c) {
		var l = i[0], u = i[1], d = i[2], f = c[0], p = c[1], m = c[2], h = f - l, g = p - u, _ = h * h + g * g, v, y;
		if (_ < e) y = Math.log(m / d) / a, v = function(e) {
			return [
				l + e * h,
				u + e * g,
				d * Math.exp(a * e * y)
			];
		};
		else {
			var b = Math.sqrt(_), x = (m * m - d * d + s * _) / (2 * d * o * b), S = (m * m - d * d - s * _) / (2 * m * o * b), C = Math.log(Math.sqrt(x * x + 1) - x);
			y = (Math.log(Math.sqrt(S * S + 1) - S) - C) / a, v = function(e) {
				var i = e * y, s = t(C), c = d / (o * b) * (s * r(a * i + C) - n(C));
				return [
					l + c * h,
					u + c * g,
					d * s / t(a * i + C)
				];
			};
		}
		return v.duration = y * 1e3 * a / Math.SQRT2, v;
	}
	return c.rho = function(e) {
		var t = Math.max(.001, +e), n = t * t;
		return i(t, n, n * n);
	}, c;
})(Math.SQRT2, 2, 4);
//#endregion
export { i as default };
