import { a as e, d as t, g as n, i as r } from "./linear-DQLHVJnA.js";
import { n as i } from "./init-CglcsLKW.js";
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.js
function a(e, t) {
	let n;
	if (t === void 0) for (let t of e) t != null && (n < t || n === void 0 && t >= t) && (n = t);
	else {
		let r = -1;
		for (let i of e) (i = t(i, ++r, e)) != null && (n < i || n === void 0 && i >= i) && (n = i);
	}
	return n;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.js
function o(e, t) {
	let n;
	if (t === void 0) for (let t of e) t != null && (n > t || n === void 0 && t >= t) && (n = t);
	else {
		let r = -1;
		for (let i of e) (i = t(i, ++r, e)) != null && (n > i || n === void 0 && i >= i) && (n = i);
	}
	return n;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.js
function s(e, t) {
	e = e.slice();
	var n = 0, r = e.length - 1, i = e[n], a = e[r], o;
	return a < i && (o = n, n = r, r = o, o = i, i = a, a = o), e[n] = t.floor(i), e[r] = t.ceil(a), e;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.js
var c = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
function u(e, t, n, r) {
	function i(t) {
		return e(t = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+t)), t;
	}
	return i.floor = (t) => (e(t = /* @__PURE__ */ new Date(+t)), t), i.ceil = (n) => (e(n = /* @__PURE__ */ new Date(n - 1)), t(n, 1), e(n), n), i.round = (e) => {
		let t = i(e), n = i.ceil(e);
		return e - t < n - e ? t : n;
	}, i.offset = (e, n) => (t(e = /* @__PURE__ */ new Date(+e), n == null ? 1 : Math.floor(n)), e), i.range = (n, r, a) => {
		let o = [];
		if (n = i.ceil(n), a = a == null ? 1 : Math.floor(a), !(n < r) || !(a > 0)) return o;
		let s;
		do
			o.push(s = /* @__PURE__ */ new Date(+n)), t(n, a), e(n);
		while (s < n && n < r);
		return o;
	}, i.filter = (n) => u((t) => {
		if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
	}, (e, r) => {
		if (e >= e) if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
		else for (; --r >= 0;) for (; t(e, 1), !n(e););
	}), n && (i.count = (t, r) => (c.setTime(+t), l.setTime(+r), e(c), e(l), Math.floor(n(c, l))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.js
var d = u(() => {}, (e, t) => {
	e.setTime(+e + t);
}, (e, t) => t - e);
d.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? u((t) => {
	t.setTime(Math.floor(t / e) * e);
}, (t, n) => {
	t.setTime(+t + n * e);
}, (t, n) => (n - t) / e) : d), d.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.js
var f = 1e3, p = f * 60, m = p * 60, h = m * 24, g = h * 7, _ = h * 30, v = h * 365, y = u((e) => {
	e.setTime(e - e.getMilliseconds());
}, (e, t) => {
	e.setTime(+e + t * f);
}, (e, t) => (t - e) / f, (e) => e.getUTCSeconds());
y.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.js
var b = u((e) => {
	e.setTime(e - e.getMilliseconds() - e.getSeconds() * f);
}, (e, t) => {
	e.setTime(+e + t * p);
}, (e, t) => (t - e) / p, (e) => e.getMinutes());
b.range;
var x = u((e) => {
	e.setUTCSeconds(0, 0);
}, (e, t) => {
	e.setTime(+e + t * p);
}, (e, t) => (t - e) / p, (e) => e.getUTCMinutes());
x.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.js
var S = u((e) => {
	e.setTime(e - e.getMilliseconds() - e.getSeconds() * f - e.getMinutes() * p);
}, (e, t) => {
	e.setTime(+e + t * m);
}, (e, t) => (t - e) / m, (e) => e.getHours());
S.range;
var C = u((e) => {
	e.setUTCMinutes(0, 0, 0);
}, (e, t) => {
	e.setTime(+e + t * m);
}, (e, t) => (t - e) / m, (e) => e.getUTCHours());
C.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.js
var w = u((e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * p) / h, (e) => e.getDate() - 1);
w.range;
var T = u((e) => {
	e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
	e.setUTCDate(e.getUTCDate() + t);
}, (e, t) => (t - e) / h, (e) => e.getUTCDate() - 1);
T.range;
var E = u((e) => {
	e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
	e.setUTCDate(e.getUTCDate() + t);
}, (e, t) => (t - e) / h, (e) => Math.floor(e / h));
E.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.js
function D(e) {
	return u((t) => {
		t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0);
	}, (e, t) => {
		e.setDate(e.getDate() + t * 7);
	}, (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * p) / g);
}
var O = D(0), k = D(1), A = D(2), j = D(3), M = D(4), N = D(5), P = D(6);
O.range, k.range, A.range, j.range, M.range, N.range, P.range;
function F(e) {
	return u((t) => {
		t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0);
	}, (e, t) => {
		e.setUTCDate(e.getUTCDate() + t * 7);
	}, (e, t) => (t - e) / g);
}
var I = F(0), L = F(1), ee = F(2), te = F(3), R = F(4), ne = F(5), re = F(6);
I.range, L.range, ee.range, te.range, R.range, ne.range, re.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.js
var z = u((e) => {
	e.setDate(1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
	e.setMonth(e.getMonth() + t);
}, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
z.range;
var B = u((e) => {
	e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
	e.setUTCMonth(e.getUTCMonth() + t);
}, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
B.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.js
var V = u((e) => {
	e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
}, (e, t) => {
	e.setFullYear(e.getFullYear() + t);
}, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
V.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : u((t) => {
	t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0);
}, (t, n) => {
	t.setFullYear(t.getFullYear() + n * e);
}), V.range;
var H = u((e) => {
	e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
}, (e, t) => {
	e.setUTCFullYear(e.getUTCFullYear() + t);
}, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
H.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : u((t) => {
	t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
}, (t, n) => {
	t.setUTCFullYear(t.getUTCFullYear() + n * e);
}), H.range;
//#endregion
//#region ../../node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.js
function U(e, r, i, a, o, s) {
	let c = [
		[
			y,
			1,
			f
		],
		[
			y,
			5,
			5 * f
		],
		[
			y,
			15,
			15 * f
		],
		[
			y,
			30,
			30 * f
		],
		[
			s,
			1,
			p
		],
		[
			s,
			5,
			5 * p
		],
		[
			s,
			15,
			15 * p
		],
		[
			s,
			30,
			30 * p
		],
		[
			o,
			1,
			m
		],
		[
			o,
			3,
			3 * m
		],
		[
			o,
			6,
			6 * m
		],
		[
			o,
			12,
			12 * m
		],
		[
			a,
			1,
			h
		],
		[
			a,
			2,
			2 * h
		],
		[
			i,
			1,
			g
		],
		[
			r,
			1,
			_
		],
		[
			r,
			3,
			3 * _
		],
		[
			e,
			1,
			v
		]
	];
	function l(e, t, n) {
		let r = t < e;
		r && ([e, t] = [t, e]);
		let i = n && typeof n.range == "function" ? n : u(e, t, n), a = i ? i.range(e, +t + 1) : [];
		return r ? a.reverse() : a;
	}
	function u(r, i, a) {
		let o = Math.abs(i - r) / a, s = n(([, , e]) => e).right(c, o);
		if (s === c.length) return e.every(t(r / v, i / v, a));
		if (s === 0) return d.every(Math.max(t(r, i, a), 1));
		let [l, u] = c[o / c[s - 1][2] < c[s][2] / o ? s - 1 : s];
		return l.every(u);
	}
	return [l, u];
}
var [ie, ae] = U(H, B, I, E, C, x), [oe, se] = U(V, z, O, w, S, b);
//#endregion
//#region ../../node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.js
function W(e) {
	if (0 <= e.y && e.y < 100) {
		var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
		return t.setFullYear(e.y), t;
	}
	return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
}
function G(e) {
	if (0 <= e.y && e.y < 100) {
		var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
		return t.setUTCFullYear(e.y), t;
	}
	return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
}
function K(e, t, n) {
	return {
		y: e,
		m: t,
		d: n,
		H: 0,
		M: 0,
		S: 0,
		L: 0
	};
}
function ce(e) {
	var t = e.dateTime, n = e.date, r = e.time, i = e.periods, a = e.days, o = e.shortDays, s = e.months, c = e.shortMonths, l = Y(i), u = X(i), d = Y(a), f = X(a), p = Y(o), m = X(o), h = Y(s), g = X(s), _ = Y(c), v = X(c), y = {
		a: I,
		A: ee,
		b: te,
		B: R,
		c: null,
		d: Ne,
		e: Ne,
		f: Re,
		g: Ye,
		G: Ze,
		H: Pe,
		I: Fe,
		j: Ie,
		L: Le,
		m: ze,
		M: Be,
		p: ne,
		q: re,
		Q: bt,
		s: xt,
		S: Ve,
		u: He,
		U: Ue,
		V: Ge,
		w: Ke,
		W: qe,
		x: null,
		X: null,
		y: Je,
		Y: Xe,
		Z: Qe,
		"%": yt
	}, b = {
		a: z,
		A: B,
		b: V,
		B: H,
		c: null,
		d: $e,
		e: $e,
		f: it,
		g: ht,
		G: _t,
		H: et,
		I: tt,
		j: nt,
		L: rt,
		m: at,
		M: ot,
		p: U,
		q: ie,
		Q: bt,
		s: xt,
		S: st,
		u: ct,
		U: lt,
		V: dt,
		w: ft,
		W: pt,
		x: null,
		X: null,
		y: mt,
		Y: gt,
		Z: vt,
		"%": yt
	}, x = {
		a: O,
		A,
		b: j,
		B: M,
		c: N,
		d: Ce,
		e: Ce,
		f: ke,
		g: ye,
		G: ve,
		H: Te,
		I: Te,
		j: we,
		L: Oe,
		m: Se,
		M: Ee,
		p: D,
		q: xe,
		Q: je,
		s: Me,
		S: De,
		u: me,
		U: he,
		V: ge,
		w: pe,
		W: _e,
		x: P,
		X: F,
		y: ye,
		Y: ve,
		Z: be,
		"%": Ae
	};
	y.x = S(n, y), y.X = S(r, y), y.c = S(t, y), b.x = S(n, b), b.X = S(r, b), b.c = S(t, b);
	function S(e, t) {
		return function(n) {
			var r = [], i = -1, a = 0, o = e.length, s, c, l;
			for (n instanceof Date || (n = /* @__PURE__ */ new Date(+n)); ++i < o;) e.charCodeAt(i) === 37 && (r.push(e.slice(a, i)), (c = le[s = e.charAt(++i)]) == null ? c = s === "e" ? " " : "0" : s = e.charAt(++i), (l = t[s]) && (s = l(n, c)), r.push(s), a = i + 1);
			return r.push(e.slice(a, i)), r.join("");
		};
	}
	function C(e, t) {
		return function(n) {
			var r = K(1900, void 0, 1), i = E(r, e, n += "", 0), a, o;
			if (i != n.length) return null;
			if ("Q" in r) return new Date(r.Q);
			if ("s" in r) return new Date(r.s * 1e3 + ("L" in r ? r.L : 0));
			if (t && !("Z" in r) && (r.Z = 0), "p" in r && (r.H = r.H % 12 + r.p * 12), r.m === void 0 && (r.m = "q" in r ? r.q : 0), "V" in r) {
				if (r.V < 1 || r.V > 53) return null;
				"w" in r || (r.w = 1), "Z" in r ? (a = G(K(r.y, 0, 1)), o = a.getUTCDay(), a = o > 4 || o === 0 ? L.ceil(a) : L(a), a = T.offset(a, (r.V - 1) * 7), r.y = a.getUTCFullYear(), r.m = a.getUTCMonth(), r.d = a.getUTCDate() + (r.w + 6) % 7) : (a = W(K(r.y, 0, 1)), o = a.getDay(), a = o > 4 || o === 0 ? k.ceil(a) : k(a), a = w.offset(a, (r.V - 1) * 7), r.y = a.getFullYear(), r.m = a.getMonth(), r.d = a.getDate() + (r.w + 6) % 7);
			} else ("W" in r || "U" in r) && ("w" in r || (r.w = "u" in r ? r.u % 7 : "W" in r ? 1 : 0), o = "Z" in r ? G(K(r.y, 0, 1)).getUTCDay() : W(K(r.y, 0, 1)).getDay(), r.m = 0, r.d = "W" in r ? (r.w + 6) % 7 + r.W * 7 - (o + 5) % 7 : r.w + r.U * 7 - (o + 6) % 7);
			return "Z" in r ? (r.H += r.Z / 100 | 0, r.M += r.Z % 100, G(r)) : W(r);
		};
	}
	function E(e, t, n, r) {
		for (var i = 0, a = t.length, o = n.length, s, c; i < a;) {
			if (r >= o) return -1;
			if (s = t.charCodeAt(i++), s === 37) {
				if (s = t.charAt(i++), c = x[s in le ? t.charAt(i++) : s], !c || (r = c(e, n, r)) < 0) return -1;
			} else if (s != n.charCodeAt(r++)) return -1;
		}
		return r;
	}
	function D(e, t, n) {
		var r = l.exec(t.slice(n));
		return r ? (e.p = u.get(r[0].toLowerCase()), n + r[0].length) : -1;
	}
	function O(e, t, n) {
		var r = p.exec(t.slice(n));
		return r ? (e.w = m.get(r[0].toLowerCase()), n + r[0].length) : -1;
	}
	function A(e, t, n) {
		var r = d.exec(t.slice(n));
		return r ? (e.w = f.get(r[0].toLowerCase()), n + r[0].length) : -1;
	}
	function j(e, t, n) {
		var r = _.exec(t.slice(n));
		return r ? (e.m = v.get(r[0].toLowerCase()), n + r[0].length) : -1;
	}
	function M(e, t, n) {
		var r = h.exec(t.slice(n));
		return r ? (e.m = g.get(r[0].toLowerCase()), n + r[0].length) : -1;
	}
	function N(e, n, r) {
		return E(e, t, n, r);
	}
	function P(e, t, r) {
		return E(e, n, t, r);
	}
	function F(e, t, n) {
		return E(e, r, t, n);
	}
	function I(e) {
		return o[e.getDay()];
	}
	function ee(e) {
		return a[e.getDay()];
	}
	function te(e) {
		return c[e.getMonth()];
	}
	function R(e) {
		return s[e.getMonth()];
	}
	function ne(e) {
		return i[+(e.getHours() >= 12)];
	}
	function re(e) {
		return 1 + ~~(e.getMonth() / 3);
	}
	function z(e) {
		return o[e.getUTCDay()];
	}
	function B(e) {
		return a[e.getUTCDay()];
	}
	function V(e) {
		return c[e.getUTCMonth()];
	}
	function H(e) {
		return s[e.getUTCMonth()];
	}
	function U(e) {
		return i[+(e.getUTCHours() >= 12)];
	}
	function ie(e) {
		return 1 + ~~(e.getUTCMonth() / 3);
	}
	return {
		format: function(e) {
			var t = S(e += "", y);
			return t.toString = function() {
				return e;
			}, t;
		},
		parse: function(e) {
			var t = C(e += "", !1);
			return t.toString = function() {
				return e;
			}, t;
		},
		utcFormat: function(e) {
			var t = S(e += "", b);
			return t.toString = function() {
				return e;
			}, t;
		},
		utcParse: function(e) {
			var t = C(e += "", !0);
			return t.toString = function() {
				return e;
			}, t;
		}
	};
}
var le = {
	"-": "",
	_: " ",
	0: "0"
}, q = /^\s*\d+/, ue = /^%/, de = /[\\^$*+?|[\]().{}]/g;
function J(e, t, n) {
	var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", a = i.length;
	return r + (a < n ? Array(n - a + 1).join(t) + i : i);
}
function fe(e) {
	return e.replace(de, "\\$&");
}
function Y(e) {
	return RegExp("^(?:" + e.map(fe).join("|") + ")", "i");
}
function X(e) {
	return new Map(e.map((e, t) => [e.toLowerCase(), t]));
}
function pe(e, t, n) {
	var r = q.exec(t.slice(n, n + 1));
	return r ? (e.w = +r[0], n + r[0].length) : -1;
}
function me(e, t, n) {
	var r = q.exec(t.slice(n, n + 1));
	return r ? (e.u = +r[0], n + r[0].length) : -1;
}
function he(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.U = +r[0], n + r[0].length) : -1;
}
function ge(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.V = +r[0], n + r[0].length) : -1;
}
function _e(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.W = +r[0], n + r[0].length) : -1;
}
function ve(e, t, n) {
	var r = q.exec(t.slice(n, n + 4));
	return r ? (e.y = +r[0], n + r[0].length) : -1;
}
function ye(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1;
}
function be(e, t, n) {
	var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6));
	return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1;
}
function xe(e, t, n) {
	var r = q.exec(t.slice(n, n + 1));
	return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1;
}
function Se(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.m = r[0] - 1, n + r[0].length) : -1;
}
function Ce(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.d = +r[0], n + r[0].length) : -1;
}
function we(e, t, n) {
	var r = q.exec(t.slice(n, n + 3));
	return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1;
}
function Te(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.H = +r[0], n + r[0].length) : -1;
}
function Ee(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.M = +r[0], n + r[0].length) : -1;
}
function De(e, t, n) {
	var r = q.exec(t.slice(n, n + 2));
	return r ? (e.S = +r[0], n + r[0].length) : -1;
}
function Oe(e, t, n) {
	var r = q.exec(t.slice(n, n + 3));
	return r ? (e.L = +r[0], n + r[0].length) : -1;
}
function ke(e, t, n) {
	var r = q.exec(t.slice(n, n + 6));
	return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1;
}
function Ae(e, t, n) {
	var r = ue.exec(t.slice(n, n + 1));
	return r ? n + r[0].length : -1;
}
function je(e, t, n) {
	var r = q.exec(t.slice(n));
	return r ? (e.Q = +r[0], n + r[0].length) : -1;
}
function Me(e, t, n) {
	var r = q.exec(t.slice(n));
	return r ? (e.s = +r[0], n + r[0].length) : -1;
}
function Ne(e, t) {
	return J(e.getDate(), t, 2);
}
function Pe(e, t) {
	return J(e.getHours(), t, 2);
}
function Fe(e, t) {
	return J(e.getHours() % 12 || 12, t, 2);
}
function Ie(e, t) {
	return J(1 + w.count(V(e), e), t, 3);
}
function Le(e, t) {
	return J(e.getMilliseconds(), t, 3);
}
function Re(e, t) {
	return Le(e, t) + "000";
}
function ze(e, t) {
	return J(e.getMonth() + 1, t, 2);
}
function Be(e, t) {
	return J(e.getMinutes(), t, 2);
}
function Ve(e, t) {
	return J(e.getSeconds(), t, 2);
}
function He(e) {
	var t = e.getDay();
	return t === 0 ? 7 : t;
}
function Ue(e, t) {
	return J(O.count(V(e) - 1, e), t, 2);
}
function We(e) {
	var t = e.getDay();
	return t >= 4 || t === 0 ? M(e) : M.ceil(e);
}
function Ge(e, t) {
	return e = We(e), J(M.count(V(e), e) + (V(e).getDay() === 4), t, 2);
}
function Ke(e) {
	return e.getDay();
}
function qe(e, t) {
	return J(k.count(V(e) - 1, e), t, 2);
}
function Je(e, t) {
	return J(e.getFullYear() % 100, t, 2);
}
function Ye(e, t) {
	return e = We(e), J(e.getFullYear() % 100, t, 2);
}
function Xe(e, t) {
	return J(e.getFullYear() % 1e4, t, 4);
}
function Ze(e, t) {
	var n = e.getDay();
	return e = n >= 4 || n === 0 ? M(e) : M.ceil(e), J(e.getFullYear() % 1e4, t, 4);
}
function Qe(e) {
	var t = e.getTimezoneOffset();
	return (t > 0 ? "-" : (t *= -1, "+")) + J(t / 60 | 0, "0", 2) + J(t % 60, "0", 2);
}
function $e(e, t) {
	return J(e.getUTCDate(), t, 2);
}
function et(e, t) {
	return J(e.getUTCHours(), t, 2);
}
function tt(e, t) {
	return J(e.getUTCHours() % 12 || 12, t, 2);
}
function nt(e, t) {
	return J(1 + T.count(H(e), e), t, 3);
}
function rt(e, t) {
	return J(e.getUTCMilliseconds(), t, 3);
}
function it(e, t) {
	return rt(e, t) + "000";
}
function at(e, t) {
	return J(e.getUTCMonth() + 1, t, 2);
}
function ot(e, t) {
	return J(e.getUTCMinutes(), t, 2);
}
function st(e, t) {
	return J(e.getUTCSeconds(), t, 2);
}
function ct(e) {
	var t = e.getUTCDay();
	return t === 0 ? 7 : t;
}
function lt(e, t) {
	return J(I.count(H(e) - 1, e), t, 2);
}
function ut(e) {
	var t = e.getUTCDay();
	return t >= 4 || t === 0 ? R(e) : R.ceil(e);
}
function dt(e, t) {
	return e = ut(e), J(R.count(H(e), e) + (H(e).getUTCDay() === 4), t, 2);
}
function ft(e) {
	return e.getUTCDay();
}
function pt(e, t) {
	return J(L.count(H(e) - 1, e), t, 2);
}
function mt(e, t) {
	return J(e.getUTCFullYear() % 100, t, 2);
}
function ht(e, t) {
	return e = ut(e), J(e.getUTCFullYear() % 100, t, 2);
}
function gt(e, t) {
	return J(e.getUTCFullYear() % 1e4, t, 4);
}
function _t(e, t) {
	var n = e.getUTCDay();
	return e = n >= 4 || n === 0 ? R(e) : R.ceil(e), J(e.getUTCFullYear() % 1e4, t, 4);
}
function vt() {
	return "+0000";
}
function yt() {
	return "%";
}
function bt(e) {
	return +e;
}
function xt(e) {
	return Math.floor(e / 1e3);
}
//#endregion
//#region ../../node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.js
var Z, Q, St;
Ct({
	dateTime: "%x, %X",
	date: "%-m/%-d/%Y",
	time: "%-I:%M:%S %p",
	periods: ["AM", "PM"],
	days: [
		"Sunday",
		"Monday",
		"Tuesday",
		"Wednesday",
		"Thursday",
		"Friday",
		"Saturday"
	],
	shortDays: [
		"Sun",
		"Mon",
		"Tue",
		"Wed",
		"Thu",
		"Fri",
		"Sat"
	],
	months: [
		"January",
		"February",
		"March",
		"April",
		"May",
		"June",
		"July",
		"August",
		"September",
		"October",
		"November",
		"December"
	],
	shortMonths: [
		"Jan",
		"Feb",
		"Mar",
		"Apr",
		"May",
		"Jun",
		"Jul",
		"Aug",
		"Sep",
		"Oct",
		"Nov",
		"Dec"
	]
});
function Ct(e) {
	return Z = ce(e), Q = Z.format, Z.parse, St = Z.utcFormat, Z.utcParse, Z;
}
//#endregion
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.js
function wt(e) {
	return new Date(e);
}
function Tt(e) {
	return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e);
}
function $(t, n, i, a, o, c, l, u, d, f) {
	var p = r(), m = p.invert, h = p.domain, g = f(".%L"), _ = f(":%S"), v = f("%I:%M"), y = f("%I %p"), b = f("%a %d"), x = f("%b %d"), S = f("%B"), C = f("%Y");
	function w(e) {
		return (d(e) < e ? g : u(e) < e ? _ : l(e) < e ? v : c(e) < e ? y : a(e) < e ? o(e) < e ? b : x : i(e) < e ? S : C)(e);
	}
	return p.invert = function(e) {
		return new Date(m(e));
	}, p.domain = function(e) {
		return arguments.length ? h(Array.from(e, Tt)) : h().map(wt);
	}, p.ticks = function(e) {
		var n = h();
		return t(n[0], n[n.length - 1], e ?? 10);
	}, p.tickFormat = function(e, t) {
		return t == null ? w : f(t);
	}, p.nice = function(e) {
		var t = h();
		return (!e || typeof e.range != "function") && (e = n(t[0], t[t.length - 1], e ?? 10)), e ? h(s(t, e)) : p;
	}, p.copy = function() {
		return e(p, $(t, n, i, a, o, c, l, u, d, f));
	}, p;
}
function Et() {
	return i.apply($(oe, se, V, z, O, w, S, b, y, Q).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
}
//#endregion
export { x as C, o as D, s as E, a as O, b as S, d as T, I as _, ae as a, S as b, z as c, k as d, P as f, j as g, A as h, St as i, B as l, M as m, Et as n, ie as o, O as p, Q as r, H as s, $ as t, N as u, w as v, y as w, C as x, T as y };
