Skip to content

Instantly share code, notes, and snippets.

@andytudhope andytudhope/app.js
Created Jul 13, 2018

Embed
What would you like to do?
"use strict";
var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
};
! function e(t, n, r) {
function i(a, u) {
if (!n[a]) {
if (!t[a]) {
var c = "function" == typeof require && require;
if (!u && c) return c(a, !0);
if (o) return o(a, !0);
var f = new Error("Cannot find module '" + a + "'");
throw f.code = "MODULE_NOT_FOUND", f
}
var l = n[a] = {
exports: {}
};
t[a][0].call(l.exports, function(e) {
var n = t[a][1][e];
return i(n ? n : e)
}, l, l.exports, e, t, n, r)
}
return n[a].exports
}
for (var o = "function" == typeof require && require, a = 0; a < r.length; a++) i(r[a]);
return i
}({
1: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return function(t, n) {
return a(e(t), n)
}
}
function n(e, t) {
return [e, t]
}
function r(e, t, n) {
var r = (t - e) / Math.max(0, n),
i = Math.floor(Math.log(r) / Math.LN10),
o = r / Math.pow(10, i);
return i >= 0 ? (o >= j ? 10 : o >= O ? 5 : o >= S ? 2 : 1) * Math.pow(10, i) : -Math.pow(10, -i) / (o >= j ? 10 : o >= O ? 5 : o >= S ? 2 : 1)
}
function i(e, t, n) {
var r = Math.abs(t - e) / Math.max(0, n),
i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)),
o = r / i;
return o >= j ? i *= 10 : o >= O ? i *= 5 : o >= S && (i *= 2), t < e ? -i : i
}
function o(e) {
return e.length
}
var a = function(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN
},
u = function(e) {
return 1 === e.length && (e = t(e)), {
left: function(t, n, r, i) {
for (null == r && (r = 0), null == i && (i = t.length); r < i;) {
var o = r + i >>> 1;
e(t[o], n) < 0 ? r = o + 1 : i = o
}
return r
},
right: function(t, n, r, i) {
for (null == r && (r = 0), null == i && (i = t.length); r < i;) {
var o = r + i >>> 1;
e(t[o], n) > 0 ? i = o : r = o + 1
}
return r
}
}
},
c = u(a),
f = c.right,
l = c.left,
s = function R(e, t) {
null == t && (t = n);
for (var r = 0, i = e.length - 1, o = e[0], R = new Array(i < 0 ? 0 : i); r < i;) R[r] = t(o, o = e[++r]);
return R
},
d = function(e, t, r) {
var i, o, a, u, c = e.length,
f = t.length,
l = new Array(c * f);
for (null == r && (r = n), i = a = 0; i < c; ++i)
for (u = e[i], o = 0; o < f; ++o, ++a) l[a] = r(u, t[o]);
return l
},
h = function(e, t) {
return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN
},
p = function(e) {
return null === e ? NaN : +e
},
b = function(e, t) {
var n, r, i = e.length,
o = 0,
a = -1,
u = 0,
c = 0;
if (null == t)
for (; ++a < i;) isNaN(n = p(e[a])) || (r = n - u, u += r / ++o, c += r * (n - u));
else
for (; ++a < i;) isNaN(n = p(t(e[a], a, e))) || (r = n - u, u += r / ++o, c += r * (n - u));
if (o > 1) return c / (o - 1)
},
g = function(e, t) {
var n = b(e, t);
return n ? Math.sqrt(n) : n
},
y = function(e, t) {
var n, r, i, o = e.length,
a = -1;
if (null == t) {
for (; ++a < o;)
if (null != (n = e[a]) && n >= n)
for (r = i = n; ++a < o;) null != (n = e[a]) && (r > n && (r = n), i < n && (i = n))
} else
for (; ++a < o;)
if (null != (n = t(e[a], a, e)) && n >= n)
for (r = i = n; ++a < o;) null != (n = t(e[a], a, e)) && (r > n && (r = n), i < n && (i = n)); return [r, i]
},
v = Array.prototype,
m = v.slice,
w = v.map,
M = function(e) {
return function() {
return e
}
},
_ = function(e) {
return e
},
x = function B(e, t, n) {
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
for (var r = -1, i = 0 | Math.max(0, Math.ceil((t - e) / n)), B = new Array(i); ++r < i;) B[r] = e + r * n;
return B
},
j = Math.sqrt(50),
O = Math.sqrt(10),
S = Math.sqrt(2),
k = function W(e, t, n) {
var i, W, o, a = t < e,
u = -1;
if (a && (i = e, e = t, t = i), 0 === (o = r(e, t, n)) || !isFinite(o)) return [];
if (o > 0)
for (e = Math.ceil(e / o), t = Math.floor(t / o), W = new Array(i = Math.ceil(t - e + 1)); ++u < i;) W[u] = (e + u) * o;
else
for (e = Math.floor(e * o), t = Math.ceil(t * o), W = new Array(i = Math.ceil(e - t + 1)); ++u < i;) W[u] = (e - u) / o;
return a && W.reverse(), W
},
A = function(e) {
return Math.ceil(Math.log(e.length) / Math.LN2) + 1
},
T = function X() {
function X(r) {
var o, a, u = r.length,
c = new Array(u);
for (o = 0; o < u; ++o) c[o] = e(r[o], o, r);
var l = t(c),
s = l[0],
d = l[1],
h = n(c, s, d);
Array.isArray(h) || (h = i(s, d, h), h = x(Math.ceil(s / h) * h, Math.floor(d / h) * h, h));
for (var p = h.length; h[0] <= s;) h.shift(), --p;
for (; h[p - 1] > d;) h.pop(), --p;
var b, g = new Array(p + 1);
for (o = 0; o <= p; ++o) b = g[o] = [], b.x0 = o > 0 ? h[o - 1] : s, b.x1 = o < p ? h[o] : d;
for (o = 0; o < u; ++o) a = c[o], s <= a && a <= d && g[f(h, a, 0, p)].push(r[o]);
return g
}
var e = _,
t = y,
n = A;
return X.value = function(t) {
return arguments.length ? (e = "function" == typeof t ? t : M(t), X) : e
}, X.domain = function(e) {
return arguments.length ? (t = "function" == typeof e ? e : M([e[0], e[1]]), X) : t
}, X.thresholds = function(e) {
return arguments.length ? (n = "function" == typeof e ? e : M(Array.isArray(e) ? m.call(e) : e), X) : n
}, X
},
C = function(e, t, n) {
if (null == n && (n = p), r = e.length) {
if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e);
if (t >= 1) return +n(e[r - 1], r - 1, e);
var r, i = (r - 1) * t,
o = Math.floor(i),
a = +n(e[o], o, e),
u = +n(e[o + 1], o + 1, e);
return a + (u - a) * (i - o)
}
},
N = function(e, t, n) {
return e = w.call(e, p).sort(a), Math.ceil((n - t) / (2 * (C(e, .75) - C(e, .25)) * Math.pow(e.length, -1 / 3)))
},
F = function(e, t, n) {
return Math.ceil((n - t) / (3.5 * g(e) * Math.pow(e.length, -1 / 3)))
},
D = function V(e, t) {
var n, V, r = e.length,
i = -1;
if (null == t) {
for (; ++i < r;)
if (null != (n = e[i]) && n >= n)
for (V = n; ++i < r;) null != (n = e[i]) && n > V && (V = n)
} else
for (; ++i < r;)
if (null != (n = t(e[i], i, e)) && n >= n)
for (V = n; ++i < r;) null != (n = t(e[i], i, e)) && n > V && (V = n); return V
},
Y = function(e, t) {
var n, r = e.length,
i = r,
o = -1,
a = 0;
if (null == t)
for (; ++o < r;) isNaN(n = p(e[o])) ? --i : a += n;
else
for (; ++o < r;) isNaN(n = p(t(e[o], o, e))) ? --i : a += n;
if (i) return a / i
},
U = function(e, t) {
var n, r = e.length,
i = -1,
o = [];
if (null == t)
for (; ++i < r;) isNaN(n = p(e[i])) || o.push(n);
else
for (; ++i < r;) isNaN(n = p(t(e[i], i, e))) || o.push(n);
return C(o.sort(a), .5)
},
E = function(e) {
for (var t, n, r, i = e.length, o = -1, a = 0; ++o < i;) a += e[o].length;
for (n = new Array(a); --i >= 0;)
for (r = e[i], t = r.length; --t >= 0;) n[--a] = r[t];
return n
},
I = function Q(e, t) {
var n, Q, r = e.length,
i = -1;
if (null == t) {
for (; ++i < r;)
if (null != (n = e[i]) && n >= n)
for (Q = n; ++i < r;) null != (n = e[i]) && Q > n && (Q = n)
} else
for (; ++i < r;)
if (null != (n = t(e[i], i, e)) && n >= n)
for (Q = n; ++i < r;) null != (n = t(e[i], i, e)) && Q > n && (Q = n); return Q
},
P = function(e, t) {
for (var n = t.length, r = new Array(n); n--;) r[n] = e[t[n]];
return r
},
q = function(e, t) {
if (n = e.length) {
var n, r, i = 0,
o = 0,
u = e[o];
for (null == t && (t = a); ++i < n;)(t(r = e[i], u) < 0 || 0 !== t(u, u)) && (u = r, o = i);
return 0 === t(u, u) ? o : void 0
}
},
L = function(e, t, n) {
for (var r, i, o = (null == n ? e.length : n) - (t = null == t ? 0 : +t); o;) i = Math.random() * o-- | 0, r = e[o + t], e[o + t] = e[i + t], e[i + t] = r;
return e
},
z = function Z(e, t) {
var n, r = e.length,
i = -1,
Z = 0;
if (null == t)
for (; ++i < r;)(n = +e[i]) && (Z += n);
else
for (; ++i < r;)(n = +t(e[i], i, e)) && (Z += n);
return Z
},
H = function G(e) {
if (!(r = e.length)) return [];
for (var t = -1, n = I(e, o), G = new Array(n); ++t < n;)
for (var r, i = -1, a = G[t] = new Array(r); ++i < r;) a[i] = e[i][t];
return G
},
$ = function() {
return H(arguments)
};
e.bisect = f, e.bisectRight = f, e.bisectLeft = l, e.ascending = a, e.bisector = u, e.cross = d, e.descending = h, e.deviation = g, e.extent = y, e.histogram = T, e.thresholdFreedmanDiaconis = N, e.thresholdScott = F, e.thresholdSturges = A, e.max = D, e.mean = Y, e.median = U, e.merge = E, e.min = I, e.pairs = s, e.permute = P, e.quantile = C, e.range = x, e.scan = q, e.shuffle = L, e.sum = z, e.ticks = k, e.tickIncrement = r, e.tickStep = i, e.transpose = H, e.variance = b, e.zip = $, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
2: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t() {}
function n(e, n) {
var r = new t;
if (e instanceof t) e.each(function(e, t) {
r.set(t, e)
});
else if (Array.isArray(e)) {
var i, o = -1,
a = e.length;
if (null == n)
for (; ++o < a;) r.set(o, e[o]);
else
for (; ++o < a;) r.set(n(i = e[o], o, e), i)
} else if (e)
for (var u in e) r.set(u, e[u]);
return r
}
function r() {
return {}
}
function i(e, t, n) {
e[t] = n
}
function o() {
return n()
}
function a(e, t, n) {
e.set(t, n)
}
function u() {}
function c(e, t) {
var n = new u;
if (e instanceof u) e.each(function(e) {
n.add(e)
});
else if (e) {
var r = -1,
i = e.length;
if (null == t)
for (; ++r < i;) n.add(e[r]);
else
for (; ++r < i;) n.add(t(e[r], r, e))
}
return n
}
var f = "$";
t.prototype = n.prototype = {
constructor: t,
has: function(e) {
return f + e in this
},
get: function(e) {
return this[f + e]
},
set: function(e, t) {
return this[f + e] = t, this
},
remove: function(e) {
var t = f + e;
return t in this && delete this[t]
},
clear: function() {
for (var e in this) e[0] === f && delete this[e]
},
keys: function b() {
var b = [];
for (var e in this) e[0] === f && b.push(e.slice(1));
return b
},
values: function g() {
var g = [];
for (var e in this) e[0] === f && g.push(this[e]);
return g
},
entries: function y() {
var y = [];
for (var e in this) e[0] === f && y.push({
key: e.slice(1),
value: this[e]
});
return y
},
size: function v() {
var v = 0;
for (var e in this) e[0] === f && ++v;
return v
},
empty: function() {
for (var e in this)
if (e[0] === f) return !1;
return !0
},
each: function(e) {
for (var t in this) t[0] === f && e(this[t], t.slice(1), this)
}
};
var l = function m() {
function e(t, r, i, o) {
if (r >= f.length) return null != c ? c(t) : null != u ? t.sort(u) : t;
for (var a, l, s, d = -1, h = t.length, p = f[r++], b = n(), g = i(); ++d < h;)(s = b.get(a = p(l = t[d]) + "")) ? s.push(l) : b.set(a, [l]);
return b.each(function(t, n) {
o(g, n, e(t, r, i, o))
}), g
}
function t(e, n) {
if (++n > f.length) return e;
var r, i = l[n - 1];
return null != c && n >= f.length ? r = e.entries() : (r = [], e.each(function(e, i) {
r.push({
key: i,
values: t(e, n)
})
})), null != i ? r.sort(function(e, t) {
return i(e.key, t.key)
}) : r
}
var u, c, m, f = [],
l = [];
return m = {
object: function(t) {
return e(t, 0, r, i)
},
map: function(t) {
return e(t, 0, o, a)
},
entries: function(n) {
return t(e(n, 0, o, a), 0)
},
key: function(e) {
return f.push(e), m
},
sortKeys: function(e) {
return l[f.length - 1] = e, m
},
sortValues: function(e) {
return u = e, m
},
rollup: function(e) {
return c = e, m
}
}
},
s = n.prototype;
u.prototype = c.prototype = {
constructor: u,
has: s.has,
add: function(e) {
return e += "", this[f + e] = e, this
},
remove: s.remove,
clear: s.clear,
values: s.keys,
size: s.size,
empty: s.empty,
each: s.each
};
var d = function w(e) {
var w = [];
for (var t in e) w.push(t);
return w
},
h = function M(e) {
var M = [];
for (var t in e) M.push(e[t]);
return M
},
p = function _(e) {
var _ = [];
for (var t in e) _.push({
key: t,
value: e[t]
});
return _
};
e.nest = l, e.set = c, e.map = n, e.keys = d, e.values = h, e.entries = p, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
3: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e, t) {
var n = Object.create(e.prototype);
for (var r in t) n[r] = t[r];
return n
}
function n() {}
function r(e) {
var t;
return e = (e + "").trim().toLowerCase(), (t = D.exec(e)) ? (t = parseInt(t[1], 16), new c(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | 240 & t, (15 & t) << 4 | 15 & t, 1)) : (t = Y.exec(e)) ? i(parseInt(t[1], 16)) : (t = U.exec(e)) ? new c(t[1], t[2], t[3], 1) : (t = E.exec(e)) ? new c(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, 1) : (t = I.exec(e)) ? o(t[1], t[2], t[3], t[4]) : (t = P.exec(e)) ? o(255 * t[1] / 100, 255 * t[2] / 100, 255 * t[3] / 100, t[4]) : (t = q.exec(e)) ? f(t[1], t[2] / 100, t[3] / 100, 1) : (t = L.exec(e)) ? f(t[1], t[2] / 100, t[3] / 100, t[4]) : z.hasOwnProperty(e) ? i(z[e]) : "transparent" === e ? new c(NaN, NaN, NaN, 0) : null
}
function i(e) {
return new c(e >> 16 & 255, e >> 8 & 255, 255 & e, 1)
}
function o(e, t, n, r) {
return r <= 0 && (e = t = n = NaN), new c(e, t, n, r)
}
function a(e) {
return e instanceof n || (e = r(e)), e ? (e = e.rgb(), new c(e.r, e.g, e.b, e.opacity)) : new c
}
function u(e, t, n, r) {
return 1 === arguments.length ? a(e) : new c(e, t, n, null == r ? 1 : r)
}
function c(e, t, n, r) {
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r
}
function f(e, t, n, r) {
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new d(e, t, n, r)
}
function l(e) {
if (e instanceof d) return new d(e.h, e.s, e.l, e.opacity);
if (e instanceof n || (e = r(e)), !e) return new d;
if (e instanceof d) return e;
e = e.rgb();
var t = e.r / 255,
i = e.g / 255,
o = e.b / 255,
a = Math.min(t, i, o),
u = Math.max(t, i, o),
c = NaN,
f = u - a,
l = (u + a) / 2;
return f ? (c = t === u ? (i - o) / f + 6 * (i < o) : i === u ? (o - t) / f + 2 : (t - i) / f + 4, f /= l < .5 ? u + a : 2 - u - a, c *= 60) : f = l > 0 && l < 1 ? 0 : c, new d(c, f, l, e.opacity)
}
function s(e, t, n, r) {
return 1 === arguments.length ? l(e) : new d(e, t, n, null == r ? 1 : r)
}
function d(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r
}
function h(e, t, n) {
return 255 * (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t)
}
function p(e) {
if (e instanceof g) return new g(e.l, e.a, e.b, e.opacity);
if (e instanceof x) {
var t = e.h * H;
return new g(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity)
}
e instanceof c || (e = a(e));
var n = w(e.r),
r = w(e.g),
i = w(e.b),
o = y((.4124564 * n + .3575761 * r + .1804375 * i) / B),
u = y((.2126729 * n + .7151522 * r + .072175 * i) / W),
f = y((.0193339 * n + .119192 * r + .9503041 * i) / X);
return new g(116 * u - 16, 500 * (o - u), 200 * (u - f), e.opacity)
}
function b(e, t, n, r) {
return 1 === arguments.length ? p(e) : new g(e, t, n, null == r ? 1 : r)
}
function g(e, t, n, r) {
this.l = +e, this.a = +t, this.b = +n, this.opacity = +r
}
function y(e) {
return e > G ? Math.pow(e, 1 / 3) : e / Z + V
}
function v(e) {
return e > Q ? e * e * e : Z * (e - V)
}
function m(e) {
return 255 * (e <= .0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - .055)
}
function w(e) {
return (e /= 255) <= .04045 ? e / 12.92 : Math.pow((e + .055) / 1.055, 2.4)
}
function M(e) {
if (e instanceof x) return new x(e.h, e.c, e.l, e.opacity);
e instanceof g || (e = p(e));
var t = Math.atan2(e.b, e.a) * $;
return new x(t < 0 ? t + 360 : t, Math.sqrt(e.a * e.a + e.b * e.b), e.l, e.opacity)
}
function _(e, t, n, r) {
return 1 === arguments.length ? M(e) : new x(e, t, n, null == r ? 1 : r)
}
function x(e, t, n, r) {
this.h = +e, this.c = +t, this.l = +n, this.opacity = +r
}
function j(e) {
if (e instanceof S) return new S(e.h, e.s, e.l, e.opacity);
e instanceof c || (e = a(e));
var t = e.r / 255,
n = e.g / 255,
r = e.b / 255,
i = (oe * r + re * t - ie * n) / (oe + re - ie),
o = r - i,
u = (ne * (n - i) - ee * o) / te,
f = Math.sqrt(u * u + o * o) / (ne * i * (1 - i)),
l = f ? Math.atan2(u, o) * $ - 120 : NaN;
return new S(l < 0 ? l + 360 : l, f, i, e.opacity)
}
function O(e, t, n, r) {
return 1 === arguments.length ? j(e) : new S(e, t, n, null == r ? 1 : r)
}
function S(e, t, n, r) {
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r
}
var k = function(e, t, n) {
e.prototype = t.prototype = n, n.constructor = e
},
A = .7,
T = 1 / A,
C = "\\s*([+-]?\\d+)\\s*",
N = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
F = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
D = /^#([0-9a-f]{3})$/,
Y = /^#([0-9a-f]{6})$/,
U = new RegExp("^rgb\\(" + [C, C, C] + "\\)$"),
E = new RegExp("^rgb\\(" + [F, F, F] + "\\)$"),
I = new RegExp("^rgba\\(" + [C, C, C, N] + "\\)$"),
P = new RegExp("^rgba\\(" + [F, F, F, N] + "\\)$"),
q = new RegExp("^hsl\\(" + [N, F, F] + "\\)$"),
L = new RegExp("^hsla\\(" + [N, F, F, N] + "\\)$"),
z = {
aliceblue: 15792383,
antiquewhite: 16444375,
aqua: 65535,
aquamarine: 8388564,
azure: 15794175,
beige: 16119260,
bisque: 16770244,
black: 0,
blanchedalmond: 16772045,
blue: 255,
blueviolet: 9055202,
brown: 10824234,
burlywood: 14596231,
cadetblue: 6266528,
chartreuse: 8388352,
chocolate: 13789470,
coral: 16744272,
cornflowerblue: 6591981,
cornsilk: 16775388,
crimson: 14423100,
cyan: 65535,
darkblue: 139,
darkcyan: 35723,
darkgoldenrod: 12092939,
darkgray: 11119017,
darkgreen: 25600,
darkgrey: 11119017,
darkkhaki: 12433259,
darkmagenta: 9109643,
darkolivegreen: 5597999,
darkorange: 16747520,
darkorchid: 10040012,
darkred: 9109504,
darksalmon: 15308410,
darkseagreen: 9419919,
darkslateblue: 4734347,
darkslategray: 3100495,
darkslategrey: 3100495,
darkturquoise: 52945,
darkviolet: 9699539,
deeppink: 16716947,
deepskyblue: 49151,
dimgray: 6908265,
dimgrey: 6908265,
dodgerblue: 2003199,
firebrick: 11674146,
floralwhite: 16775920,
forestgreen: 2263842,
fuchsia: 16711935,
gainsboro: 14474460,
ghostwhite: 16316671,
gold: 16766720,
goldenrod: 14329120,
gray: 8421504,
green: 32768,
greenyellow: 11403055,
grey: 8421504,
honeydew: 15794160,
hotpink: 16738740,
indianred: 13458524,
indigo: 4915330,
ivory: 16777200,
khaki: 15787660,
lavender: 15132410,
lavenderblush: 16773365,
lawngreen: 8190976,
lemonchiffon: 16775885,
lightblue: 11393254,
lightcoral: 15761536,
lightcyan: 14745599,
lightgoldenrodyellow: 16448210,
lightgray: 13882323,
lightgreen: 9498256,
lightgrey: 13882323,
lightpink: 16758465,
lightsalmon: 16752762,
lightseagreen: 2142890,
lightskyblue: 8900346,
lightslategray: 7833753,
lightslategrey: 7833753,
lightsteelblue: 11584734,
lightyellow: 16777184,
lime: 65280,
limegreen: 3329330,
linen: 16445670,
magenta: 16711935,
maroon: 8388608,
mediumaquamarine: 6737322,
mediumblue: 205,
mediumorchid: 12211667,
mediumpurple: 9662683,
mediumseagreen: 3978097,
mediumslateblue: 8087790,
mediumspringgreen: 64154,
mediumturquoise: 4772300,
mediumvioletred: 13047173,
midnightblue: 1644912,
mintcream: 16121850,
mistyrose: 16770273,
moccasin: 16770229,
navajowhite: 16768685,
navy: 128,
oldlace: 16643558,
olive: 8421376,
olivedrab: 7048739,
orange: 16753920,
orangered: 16729344,
orchid: 14315734,
palegoldenrod: 15657130,
palegreen: 10025880,
paleturquoise: 11529966,
palevioletred: 14381203,
papayawhip: 16773077,
peachpuff: 16767673,
peru: 13468991,
pink: 16761035,
plum: 14524637,
powderblue: 11591910,
purple: 8388736,
rebeccapurple: 6697881,
red: 16711680,
rosybrown: 12357519,
royalblue: 4286945,
saddlebrown: 9127187,
salmon: 16416882,
sandybrown: 16032864,
seagreen: 3050327,
seashell: 16774638,
sienna: 10506797,
silver: 12632256,
skyblue: 8900331,
slateblue: 6970061,
slategray: 7372944,
slategrey: 7372944,
snow: 16775930,
springgreen: 65407,
steelblue: 4620980,
tan: 13808780,
teal: 32896,
thistle: 14204888,
tomato: 16737095,
turquoise: 4251856,
violet: 15631086,
wheat: 16113331,
white: 16777215,
whitesmoke: 16119285,
yellow: 16776960,
yellowgreen: 10145074
};
k(n, r, {
displayable: function() {
return this.rgb().displayable()
},
toString: function() {
return this.rgb() + ""
}
}), k(c, u, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new c(this.r * e, this.g * e, this.b * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new c(this.r * e, this.g * e, this.b * e, this.opacity)
},
rgb: function() {
return this
},
displayable: function() {
return 0 <= this.r && this.r <= 255 && 0 <= this.g && this.g <= 255 && 0 <= this.b && this.b <= 255 && 0 <= this.opacity && this.opacity <= 1
},
toString: function() {
var e = this.opacity;
return e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e)), (1 === e ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (1 === e ? ")" : ", " + e + ")")
}
})), k(d, s, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new d(this.h, this.s, this.l * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new d(this.h, this.s, this.l * e, this.opacity)
},
rgb: function() {
var e = this.h % 360 + 360 * (this.h < 0),
t = isNaN(e) || isNaN(this.s) ? 0 : this.s,
n = this.l,
r = n + (n < .5 ? n : 1 - n) * t,
i = 2 * n - r;
return new c(h(e >= 240 ? e - 240 : e + 120, i, r), h(e, i, r), h(e < 120 ? e + 240 : e - 120, i, r), this.opacity)
},
displayable: function() {
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1
}
}));
var H = Math.PI / 180,
$ = 180 / Math.PI,
R = 18,
B = .95047,
W = 1,
X = 1.08883,
V = 4 / 29,
Q = 6 / 29,
Z = 3 * Q * Q,
G = Q * Q * Q;
k(g, b, t(n, {
brighter: function(e) {
return new g(this.l + R * (null == e ? 1 : e), this.a, this.b, this.opacity)
},
darker: function(e) {
return new g(this.l - R * (null == e ? 1 : e), this.a, this.b, this.opacity)
},
rgb: function() {
var e = (this.l + 16) / 116,
t = isNaN(this.a) ? e : e + this.a / 500,
n = isNaN(this.b) ? e : e - this.b / 200;
return e = W * v(e), t = B * v(t), n = X * v(n), new c(m(3.2404542 * t - 1.5371385 * e - .4985314 * n), m(-.969266 * t + 1.8760108 * e + .041556 * n), m(.0556434 * t - .2040259 * e + 1.0572252 * n), this.opacity)
}
})), k(x, _, t(n, {
brighter: function(e) {
return new x(this.h, this.c, this.l + R * (null == e ? 1 : e), this.opacity)
},
darker: function(e) {
return new x(this.h, this.c, this.l - R * (null == e ? 1 : e), this.opacity)
},
rgb: function() {
return p(this).rgb()
}
}));
var J = -.14861,
K = 1.78277,
ee = -.29227,
te = -.90649,
ne = 1.97294,
re = ne * te,
ie = ne * K,
oe = K * ee - te * J;
k(S, O, t(n, {
brighter: function(e) {
return e = null == e ? T : Math.pow(T, e), new S(this.h, this.s, this.l * e, this.opacity)
},
darker: function(e) {
return e = null == e ? A : Math.pow(A, e), new S(this.h, this.s, this.l * e, this.opacity)
},
rgb: function() {
var e = isNaN(this.h) ? 0 : (this.h + 120) * H,
t = +this.l,
n = isNaN(this.s) ? 0 : this.s * t * (1 - t),
r = Math.cos(e),
i = Math.sin(e);
return new c(255 * (t + n * (J * r + K * i)), 255 * (t + n * (ee * r + te * i)), 255 * (t + n * (ne * r)), this.opacity)
}
})), e.color = r, e.rgb = u, e.hsl = s, e.lab = b, e.hcl = _, e.cubehelix = O, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
4: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return +e
}
function n(e) {
return e * e
}
function r(e) {
return e * (2 - e)
}
function i(e) {
return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2
}
function o(e) {
return e * e * e
}
function a(e) {
return --e * e * e + 1
}
function u(e) {
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2
}
function c(e) {
return 1 - Math.cos(e * O)
}
function f(e) {
return Math.sin(e * O)
}
function l(e) {
return (1 - Math.cos(j * e)) / 2
}
function s(e) {
return Math.pow(2, 10 * e - 10)
}
function d(e) {
return 1 - Math.pow(2, -10 * e)
}
function h(e) {
return ((e *= 2) <= 1 ? Math.pow(2, 10 * e - 10) : 2 - Math.pow(2, 10 - 10 * e)) / 2
}
function p(e) {
return 1 - Math.sqrt(1 - e * e)
}
function b(e) {
return Math.sqrt(1 - --e * e)
}
function g(e) {
return ((e *= 2) <= 1 ? 1 - Math.sqrt(1 - e * e) : Math.sqrt(1 - (e -= 2) * e) + 1) / 2
}
function y(e) {
return 1 - v(1 - e)
}
function v(e) {
return (e = +e) < S ? U * e * e : e < A ? U * (e -= k) * e + T : e < N ? U * (e -= C) * e + F : U * (e -= D) * e + Y
}
function m(e) {
return ((e *= 2) <= 1 ? 1 - v(1 - e) : v(e - 1) + 1) / 2
}
var w = 3,
M = function W(e) {
function t(t) {
return Math.pow(t, e)
}
return e = +e, t.exponent = W, t
}(w),
_ = function X(e) {
function t(t) {
return 1 - Math.pow(1 - t, e)
}
return e = +e, t.exponent = X, t
}(w),
x = function V(e) {
function t(t) {
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2
}
return e = +e, t.exponent = V, t
}(w),
j = Math.PI,
O = j / 2,
S = 4 / 11,
k = 6 / 11,
A = 8 / 11,
T = .75,
C = 9 / 11,
N = 10 / 11,
F = .9375,
D = 21 / 22,
Y = 63 / 64,
U = 1 / S / S,
E = 1.70158,
I = function Q(e) {
function t(t) {
return t * t * ((e + 1) * t - e)
}
return e = +e, t.overshoot = Q, t
}(E),
P = function Z(e) {
function t(t) {
return --t * t * ((e + 1) * t + e) + 1
}
return e = +e, t.overshoot = Z, t
}(E),
q = function G(e) {
function t(t) {
return ((t *= 2) < 1 ? t * t * ((e + 1) * t - e) : (t -= 2) * t * ((e + 1) * t + e) + 2) / 2
}
return e = +e, t.overshoot = G, t
}(E),
L = 2 * Math.PI,
z = 1,
H = .3,
$ = function J(e, t) {
function n(n) {
return e * Math.pow(2, 10 * --n) * Math.sin((r - n) / t)
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return J(e, t * L)
}, n.period = function(t) {
return J(e, t)
}, n
}(z, H),
R = function K(e, t) {
function n(n) {
return 1 - e * Math.pow(2, -10 * (n = +n)) * Math.sin((n + r) / t)
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return K(e, t * L)
}, n.period = function(t) {
return K(e, t)
}, n
}(z, H),
B = function ee(e, t) {
function n(n) {
return ((n = 2 * n - 1) < 0 ? e * Math.pow(2, 10 * n) * Math.sin((r - n) / t) : 2 - e * Math.pow(2, -10 * n) * Math.sin((r + n) / t)) / 2
}
var r = Math.asin(1 / (e = Math.max(1, e))) * (t /= L);
return n.amplitude = function(e) {
return ee(e, t * L)
}, n.period = function(t) {
return ee(e, t)
}, n
}(z, H);
e.easeLinear = t, e.easeQuad = i, e.easeQuadIn = n, e.easeQuadOut = r, e.easeQuadInOut = i, e.easeCubic = u, e.easeCubicIn = o, e.easeCubicOut = a, e.easeCubicInOut = u, e.easePoly = x, e.easePolyIn = M, e.easePolyOut = _, e.easePolyInOut = x, e.easeSin = l, e.easeSinIn = c, e.easeSinOut = f, e.easeSinInOut = l, e.easeExp = h, e.easeExpIn = s, e.easeExpOut = d, e.easeExpInOut = h, e.easeCircle = g, e.easeCircleIn = p, e.easeCircleOut = b, e.easeCircleInOut = g, e.easeBounce = v, e.easeBounceIn = y, e.easeBounceOut = v, e.easeBounceInOut = m, e.easeBack = q, e.easeBackIn = I, e.easeBackOut = P, e.easeBackInOut = q, e.easeElastic = R, e.easeElasticIn = $, e.easeElasticOut = R, e.easeElasticInOut = B, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
5: [function(e, t, n) {
! function(e, r) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r(e.d3 = e.d3 || {})
}(this, function(e) {
function t(e) {
return new n(e)
}
function n(e) {
if (!(t = h.exec(e))) throw new Error("invalid format: " + e);
var t, n = t[1] || " ",
r = t[2] || ">",
i = t[3] || "-",
o = t[4] || "",
a = !!t[5],
u = t[6] && +t[6],
c = !!t[7],
f = t[8] && +t[8].slice(1),
l = t[9] || "";
"n" === l ? (c = !0, l = "g") : d[l] || (l = ""), (a || "0" === n && "=" === r) && (a = !0, n = "0", r = "="), this.fill = n, this.align = r, this.sign = i, this.symbol = o, this.zero = a, this.width = u, this.comma = c, this.precision = f, this.type = l
}
function r(t) {
return p = y(t), e.format = p.format, e.formatPrefix = p.formatPrefix, p
}
var i, o = function(e, t) {
if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null;
var n, r = e.slice(0, n);
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)]
},
a = function(e) {
return e = o(Math.abs(e)), e ? e[1] : NaN
},
u = function(e, t) {
return function(n, r) {
for (var i = n.length, o = [], a = 0, u = e[0], c = 0; i > 0 && u > 0 && (c + u + 1 > r && (u = Math.max(1, r - c)), o.push(n.substring(i -= u, i + u)), !((c += u + 1) > r));) u = e[a = (a + 1) % e.length];
return o.reverse().join(t)
}
},
c = function(e) {
return function(t) {
return t.replace(/[0-9]/g, function(t) {
return e[+t]
})
}
},
f = function(e, t) {
e = e.toPrecision(t);
e: for (var n, r = e.length, i = 1, o = -1; i < r; ++i) switch (e[i]) {
case ".":
o = n = i;
break;
case "0":
0 === o && (o = i), n = i;
break;
case "e":
break e;
default:
o > 0 && (o = 0)
}
return o > 0 ? e.slice(0, o) + e.slice(n + 1) : e
},
l = function(e, t) {
var n = o(e, t);
if (!n) return e + "";
var r = n[0],
a = n[1],
u = a - (i = 3 * Math.max(-8, Math.min(8, Math.floor(a / 3)))) + 1,
c = r.length;
return u === c ? r : u > c ? r + new Array(u - c + 1).join("0") : u > 0 ? r.slice(0, u) + "." + r.slice(u) : "0." + new Array(1 - u).join("0") + o(e, Math.max(0, t + u - 1))[0]
},
s = function(e, t) {
var n = o(e, t);
if (!n) return e + "";
var r = n[0],
i = n[1];
return i < 0 ? "0." + new Array((-i)).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0")
},
d = {
"": f,
"%": function(e, t) {
return (100 * e).toFixed(t)
},
b: function(e) {
return Math.round(e).toString(2)
},
c: function(e) {
return e + ""
},
d: function(e) {
return Math.round(e).toString(10)
},
e: function(e, t) {
return e.toExponential(t)
},
f: function(e, t) {
return e.toFixed(t)
},
g: function(e, t) {
return e.toPrecision(t)
},
o: function(e) {
return Math.round(e).toString(8)
},
p: function(e, t) {
return s(100 * e, t)
},
r: s,
s: l,
X: function(e) {
return Math.round(e).toString(16).toUpperCase()
},
x: function(e) {
return Math.round(e).toString(16)
}
},
h = /^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;
t.prototype = n.prototype, n.prototype.toString = function() {
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (null == this.width ? "" : Math.max(1, 0 | this.width)) + (this.comma ? "," : "") + (null == this.precision ? "" : "." + Math.max(0, 0 | this.precision)) + this.type
};
var p, b = function(e) {
return e
},
g = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"],
y = function(e) {
function n(e) {
function n(e) {
var t, n, c, f = w,
d = M;
if ("c" === m) d = _(e) + d, e = "";
else {
e = +e;
var h = e < 0;
if (e = _(Math.abs(e), v), h && 0 === +e && (h = !1), f = (h ? "(" === u ? u : "-" : "-" === u || "(" === u ? "" : u) + f, d = d + ("s" === m ? g[8 + i / 3] : "") + (h && "(" === u ? ")" : ""), x)
for (t = -1, n = e.length; ++t < n;)
if (c = e.charCodeAt(t), 48 > c || c > 57) {
d = (46 === c ? l + e.slice(t + 1) : e.slice(t)) + d, e = e.slice(0, t);
break
}
}
y && !p && (e = o(e, 1 / 0));
var j = f.length + e.length + d.length,
O = j < b ? new Array(b - j + 1).join(r) : "";
switch (y && p && (e = o(O + e, O.length ? b - d.length : 1 / 0), O = ""), a) {
case "<":
e = f + e + d + O;
break;
case "=":
e = f + O + e + d;
break;
case "^":
e = O.slice(0, j = O.length >> 1) + f + e + d + O.slice(j);
break;
default:
e = O + f + e + d
}
return s(e)
}
e = t(e);
var r = e.fill,
a = e.align,
u = e.sign,
c = e.symbol,
p = e.zero,
b = e.width,
y = e.comma,
v = e.precision,
m = e.type,
w = "$" === c ? f[0] : "#" === c && /[boxX]/.test(m) ? "0" + m.toLowerCase() : "",
M = "$" === c ? f[1] : /[%p]/.test(m) ? h : "",
_ = d[m],
x = !m || /[defgprs%]/.test(m);
return v = null == v ? m ? 6 : 12 : /[gprs]/.test(m) ? Math.max(1, Math.min(21, v)) : Math.max(0, Math.min(20, v)), n.toString = function() {
return e + ""
}, n
}
function r(e, r) {
var i = n((e = t(e), e.type = "f", e)),
o = 3 * Math.max(-8, Math.min(8, Math.floor(a(r) / 3))),
u = Math.pow(10, -o),
c = g[8 + o / 3];
return function(e) {
return i(u * e) + c
}
}
var o = e.grouping && e.thousands ? u(e.grouping, e.thousands) : b,
f = e.currency,
l = e.decimal,
s = e.numerals ? c(e.numerals) : b,
h = e.percent || "%";
return {
format: n,
formatPrefix: r
}
};
r({
decimal: ".",
thousands: ",",
grouping: [3],
currency: ["$", ""]
});
var v = function(e) {
return Math.max(0, -a(Math.abs(e)))
},
m = function(e, t) {
return Math.max(0, 3 * Math.max(-8, Math.min(8, Math.floor(a(t) / 3))) - a(Math.abs(e)))
},
w = function(e, t) {
return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, a(t) - a(e)) + 1
};
e.formatDefaultLocale = r, e.formatLocale = y, e.formatSpecifier = t, e.precisionFixed = v, e.precisionPrefix = m, e.precisionRound = w, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {}],
6: [function(e, t, n) {
! function(r, i) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? i(n, e("d3-color")) : "function" == typeof define && define.amd ? define(["exports", "d3-color"], i) : i(r.d3 = r.d3 || {}, r.d3)
}(this, function(e, t) {
function n(e, t, n, r, i) {
var o = e * e,
a = o * e;
return ((1 - 3 * e + 3 * o - a) * t + (4 - 6 * o + 3 * a) * n + (1 + 3 * e + 3 * o - 3 * a) * r + a * i) / 6
}
function r(e, t) {
return function(n) {
return e + n * t
}
}
function i(e, t, n) {
return e = Math.pow(e, n), t = Math.pow(t, n) - e, n = 1 / n,
function(r) {
return Math.pow(e + r * t, n)
}
}
function o(e, t) {
var n = t - e;
return n ? r(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) : k(isNaN(e) ? t : e)
}
function a(e) {
return 1 === (e = +e) ? u : function(t, n) {
return n - t ? i(t, n, e) : k(isNaN(t) ? n : t)
}
}
function u(e, t) {
var n = t - e;
return n ? r(e, n) : k(isNaN(e) ? t : e)
}
function c(e) {
return function(n) {
var r, i, o = n.length,
a = new Array(o),
u = new Array(o),
c = new Array(o);
for (r = 0; r < o; ++r) i = t.rgb(n[r]), a[r] = i.r || 0, u[r] = i.g || 0, c[r] = i.b || 0;
return a = e(a), u = e(u), c = e(c), i.opacity = 1,
function(e) {
return i.r = a(e), i.g = u(e), i.b = c(e), i + ""
}
}
}
function f(e) {
return function() {
return e
}
}
function l(e) {
return function(t) {
return e(t) + ""
}
}
function s(e) {
return "none" === e ? z : (M || (M = document.createElement("DIV"), _ = document.documentElement, x = document.defaultView), M.style.transform = e, e = x.getComputedStyle(_.appendChild(M), null).getPropertyValue("transform"), _.removeChild(M), e = e.slice(7, -1).split(","), H(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5]))
}
function d(e) {
return null == e ? z : (j || (j = document.createElementNS("http://www.w3.org/2000/svg", "g")), j.setAttribute("transform", e), (e = j.transform.baseVal.consolidate()) ? (e = e.matrix, H(e.a, e.b, e.c, e.d, e.e, e.f)) : z)
}
function h(e, t, n, r) {
function i(e) {
return e.length ? e.pop() + " " : ""
}
function o(e, r, i, o, a, u) {
if (e !== i || r !== o) {
var c = a.push("translate(", null, t, null, n);
u.push({
i: c - 4,
x: D(e, i)
}, {
i: c - 2,
x: D(r, o)
})
} else(i || o) && a.push("translate(" + i + t + o + n)
}
function a(e, t, n, o) {
e !== t ? (e - t > 180 ? t += 360 : t - e > 180 && (e += 360), o.push({
i: n.push(i(n) + "rotate(", null, r) - 2,
x: D(e, t)
})) : t && n.push(i(n) + "rotate(" + t + r)
}
function u(e, t, n, o) {
e !== t ? o.push({
i: n.push(i(n) + "skewX(", null, r) - 2,
x: D(e, t)
}) : t && n.push(i(n) + "skewX(" + t + r)
}
function c(e, t, n, r, o, a) {
if (e !== n || t !== r) {
var u = o.push(i(o) + "scale(", null, ",", null, ")");
a.push({
i: u - 4,
x: D(e, n)
}, {
i: u - 2,
x: D(t, r)
})
} else 1 === n && 1 === r || o.push(i(o) + "scale(" + n + "," + r + ")")
}
return function(t, n) {
var r = [],
i = [];
return t = e(t), n = e(n), o(t.translateX, t.translateY, n.translateX, n.translateY, r, i), a(t.rotate, n.rotate, r, i), u(t.skewX, n.skewX, r, i), c(t.scaleX, t.scaleY, n.scaleX, n.scaleY, r, i), t = n = null,
function(e) {
for (var t, n = -1, o = i.length; ++n < o;) r[(t = i[n]).i] = t.x(e);
return r.join("")
}
}
}
function p(e) {
return ((e = Math.exp(e)) + 1 / e) / 2
}
function b(e) {
return ((e = Math.exp(e)) - 1 / e) / 2
}
function g(e) {
return ((e = Math.exp(2 * e)) - 1) / (e + 1)
}
function y(e) {
return function(n, r) {
var i = e((n = t.hsl(n)).h, (r = t.hsl(r)).h),
o = u(n.s, r.s),
a = u(n.l, r.l),
c = u(n.opacity, r.opacity);
return function(e) {
return n.h = i(e), n.s = o(e), n.l = a(e), n.opacity = c(e), n + ""
}
}
}
function v(e, n) {
var r = u((e = t.lab(e)).l, (n = t.lab(n)).l),
i = u(e.a, n.a),
o = u(e.b, n.b),
a = u(e.opacity, n.opacity);
return function(t) {
return e.l = r(t), e.a = i(t), e.b = o(t), e.opacity = a(t), e + ""
}
}
function m(e) {
return function(n, r) {
var i = e((n = t.hcl(n)).h, (r = t.hcl(r)).h),
o = u(n.c, r.c),
a = u(n.l, r.l),
c = u(n.opacity, r.opacity);
return function(e) {
return n.h = i(e), n.c = o(e), n.l = a(e), n.opacity = c(e), n + ""
}
}
}
function w(e) {
return function n(r) {
function i(n, i) {
var o = e((n = t.cubehelix(n)).h, (i = t.cubehelix(i)).h),
a = u(n.s, i.s),
c = u(n.l, i.l),
f = u(n.opacity, i.opacity);
return function(e) {
return n.h = o(e), n.s = a(e), n.l = c(Math.pow(e, r)), n.opacity = f(e), n + ""
}
}
return r = +r, i.gamma = n, i
}(1)
}
var M, _, x, j, O = function(e) {
var t = e.length - 1;
return function(r) {
var i = r <= 0 ? r = 0 : r >= 1 ? (r = 1, t - 1) : Math.floor(r * t),
o = e[i],
a = e[i + 1],
u = i > 0 ? e[i - 1] : 2 * o - a,
c = i < t - 1 ? e[i + 2] : 2 * a - o;
return n((r - i / t) * t, u, o, a, c)
}
},
S = function(e) {
var t = e.length;
return function(r) {
var i = Math.floor(((r %= 1) < 0 ? ++r : r) * t),
o = e[(i + t - 1) % t],
a = e[i % t],
u = e[(i + 1) % t],
c = e[(i + 2) % t];
return n((r - i / t) * t, o, a, u, c)
}
},
k = function(e) {
return function() {
return e
}
},
A = function re(e) {
function n(e, n) {
var i = r((e = t.rgb(e)).r, (n = t.rgb(n)).r),
o = r(e.g, n.g),
a = r(e.b, n.b),
c = u(e.opacity, n.opacity);
return function(t) {
return e.r = i(t), e.g = o(t), e.b = a(t), e.opacity = c(t), e + ""
}
}
var r = a(e);
return n.gamma = re, n
}(1),
T = c(O),
C = c(S),
N = function(e, t) {
var n, r = t ? t.length : 0,
i = e ? Math.min(r, e.length) : 0,
o = new Array(r),
a = new Array(r);
for (n = 0; n < i; ++n) o[n] = P(e[n], t[n]);
for (; n < r; ++n) a[n] = t[n];
return function(e) {
for (n = 0; n < i; ++n) a[n] = o[n](e);
return a
}
},
F = function(e, t) {
var n = new Date;
return e = +e, t -= e,
function(r) {
return n.setTime(e + t * r), n
}
},
D = function(e, t) {
return e = +e, t -= e,
function(n) {
return e + t * n
}
},
Y = function(e, t) {
var n, r = {},
i = {};
null !== e && "object" === ("undefined" == typeof e ? "undefined" : _typeof(e)) || (e = {}), null !== t && "object" === ("undefined" == typeof t ? "undefined" : _typeof(t)) || (t = {});
for (n in t) n in e ? r[n] = P(e[n], t[n]) : i[n] = t[n];
return function(e) {
for (n in r) i[n] = r[n](e);
return i
}
},
U = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
E = new RegExp(U.source, "g"),
I = function(e, t) {
var n, r, i, o = U.lastIndex = E.lastIndex = 0,
a = -1,
u = [],
c = [];
for (e += "", t += "";
(n = U.exec(e)) && (r = E.exec(t));)(i = r.index) > o && (i = t.slice(o, i), u[a] ? u[a] += i : u[++a] = i), (n = n[0]) === (r = r[0]) ? u[a] ? u[a] += r : u[++a] = r : (u[++a] = null, c.push({
i: a,
x: D(n, r)
})), o = E.lastIndex;
return o < t.length && (i = t.slice(o), u[a] ? u[a] += i : u[++a] = i), u.length < 2 ? c[0] ? l(c[0].x) : f(t) : (t = c.length, function(e) {
for (var n, r = 0; r < t; ++r) u[(n = c[r]).i] = n.x(e);
return u.join("")
})
},
P = function(e, n) {
var r, i = "undefined" == typeof n ? "undefined" : _typeof(n);
return null == n || "boolean" === i ? k(n) : ("number" === i ? D : "string" === i ? (r = t.color(n)) ? (n = r, A) : I : n instanceof t.color ? A : n instanceof Date ? F : Array.isArray(n) ? N : isNaN(n) ? Y : D)(e, n)
},
q = function(e, t) {
return e = +e,
t -= e,
function(n) {
return Math.round(e + t * n)
}
},
L = 180 / Math.PI,
z = {
translateX: 0,
translateY: 0,
rotate: 0,
skewX: 0,
scaleX: 1,
scaleY: 1
},
H = function(e, t, n, r, i, o) {
var a, u, c;
return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (c = e * n + t * r) && (n -= e * c, r -= t * c), (u = Math.sqrt(n * n + r * r)) && (n /= u, r /= u, c /= u), e * r < t * n && (e = -e, t = -t, c = -c, a = -a), {
translateX: i,
translateY: o,
rotate: Math.atan2(t, e) * L,
skewX: Math.atan(c) * L,
scaleX: a,
scaleY: u
}
},
$ = h(s, "px, ", "px)", "deg)"),
R = h(d, ", ", ")", ")"),
B = Math.SQRT2,
W = 2,
X = 4,
V = 1e-12,
Q = function(e, t) {
var n, r, i = e[0],
o = e[1],
a = e[2],
u = t[0],
c = t[1],
f = t[2],
l = u - i,
s = c - o,
d = l * l + s * s;
if (d < V) r = Math.log(f / a) / B, n = function(e) {
return [i + e * l, o + e * s, a * Math.exp(B * e * r)]
};
else {
var h = Math.sqrt(d),
y = (f * f - a * a + X * d) / (2 * a * W * h),
v = (f * f - a * a - X * d) / (2 * f * W * h),
m = Math.log(Math.sqrt(y * y + 1) - y),
w = Math.log(Math.sqrt(v * v + 1) - v);
r = (w - m) / B, n = function(e) {
var t = e * r,
n = p(m),
u = a / (W * h) * (n * g(B * t + m) - b(m));
return [i + u * l, o + u * s, a * n / p(B * t + m)]
}
}
return n.duration = 1e3 * r, n
},
Z = y(o),
G = y(u),
J = m(o),
K = m(u),
ee = w(o),
te = w(u),
ne = function(e, t) {
for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1));
return n
};
e.interpolate = P, e.interpolateArray = N, e.interpolateBasis = O, e.interpolateBasisClosed = S, e.interpolateDate = F, e.interpolateNumber = D, e.interpolateObject = Y, e.interpolateRound = q, e.interpolateString = I, e.interpolateTransformCss = $, e.interpolateTransformSvg = R, e.interpolateZoom = Q, e.interpolateRgb = A, e.interpolateRgbBasis = T, e.interpolateRgbBasisClosed = C, e.interpolateHsl = Z, e.interpolateHslLong = G, e.interpolateLab = v, e.interpolateHcl = J, e.interpolateHclLong = K, e.interpolateCubehelix = ee, e.interpolateCubehelixLong = te, e.quantize = ne, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {
"d3-color": 3
}],
7: [function(e, t, n) {
! function(r, i) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? i(n, e("d3-array"), e("d3-collection"), e("d3-interpolate"), e("d3-format"), e("d3-time"), e("d3-time-format"), e("d3-color")) : "function" == typeof define && define.amd ? define(["exports", "d3-array", "d3-collection", "d3-interpolate", "d3-format", "d3-time", "d3-time-format", "d3-color"], i) : i(r.d3 = r.d3 || {}, r.d3, r.d3, r.d3, r.d3, r.d3, r.d3, r.d3)
}(this, function(e, t, n, r, i, o, a, u) {
function c(e) {
function t(t) {
var n = t + "",
a = r.get(n);
if (!a) {
if (o !== $) return o;
r.set(n, a = i.push(t))
}
return e[(a - 1) % e.length]
}
var r = n.map(),
i = [],
o = $;
return e = null == e ? [] : H.call(e), t.domain = function(e) {
if (!arguments.length) return i.slice();
i = [], r = n.map();
for (var o, a, u = -1, c = e.length; ++u < c;) r.has(a = (o = e[u]) + "") || r.set(a, i.push(o));
return t
}, t.range = function(n) {
return arguments.length ? (e = H.call(n), t) : e.slice()
}, t.unknown = function(e) {
return arguments.length ? (o = e, t) : o
}, t.copy = function() {
return c().domain(i).range(e).unknown(o)
}, t
}
function f() {
function e() {
var e = o().length,
i = u[1] < u[0],
c = u[i - 0],
f = u[1 - i];
n = (f - c) / Math.max(1, e - s + 2 * d), l && (n = Math.floor(n)), c += (f - c - n * (e - s)) * h, r = n * (1 - s), l && (c = Math.round(c), r = Math.round(r));
var p = t.range(e).map(function(e) {
return c + n * e
});
return a(i ? p.reverse() : p)
}
var n, r, i = c().unknown(void 0),
o = i.domain,
a = i.range,
u = [0, 1],
l = !1,
s = 0,
d = 0,
h = .5;
return delete i.unknown, i.domain = function(t) {
return arguments.length ? (o(t), e()) : o()
}, i.range = function(t) {
return arguments.length ? (u = [+t[0], +t[1]], e()) : u.slice()
}, i.rangeRound = function(t) {
return u = [+t[0], +t[1]], l = !0, e()
}, i.bandwidth = function() {
return r
}, i.step = function() {
return n
}, i.round = function(t) {
return arguments.length ? (l = !!t, e()) : l
}, i.padding = function(t) {
return arguments.length ? (s = d = Math.max(0, Math.min(1, t)), e()) : s
}, i.paddingInner = function(t) {
return arguments.length ? (s = Math.max(0, Math.min(1, t)), e()) : s
}, i.paddingOuter = function(t) {
return arguments.length ? (d = Math.max(0, Math.min(1, t)), e()) : d
}, i.align = function(t) {
return arguments.length ? (h = Math.max(0, Math.min(1, t)), e()) : h
}, i.copy = function() {
return f().domain(o()).range(u).round(l).paddingInner(s).paddingOuter(d).align(h)
}, e()
}
function l(e) {
var t = e.copy;
return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() {
return l(t())
}, e
}
function s() {
return l(f().paddingInner(1))
}
function d(e, t) {
return (t -= e = +e) ? function(n) {
return (n - e) / t
} : R(t)
}
function h(e) {
return function(t, n) {
var r = e(t = +t, n = +n);
return function(e) {
return e <= t ? 0 : e >= n ? 1 : r(e)
}
}
}
function p(e) {
return function(t, n) {
var r = e(t = +t, n = +n);
return function(e) {
return e <= 0 ? t : e >= 1 ? n : r(e)
}
}
}
function b(e, t, n, r) {
var i = e[0],
o = e[1],
a = t[0],
u = t[1];
return o < i ? (i = n(o, i), a = r(u, a)) : (i = n(i, o), a = r(a, u)),
function(e) {
return a(i(e))
}
}
function g(e, n, r, i) {
var o = Math.min(e.length, n.length) - 1,
a = new Array(o),
u = new Array(o),
c = -1;
for (e[o] < e[0] && (e = e.slice().reverse(), n = n.slice().reverse()); ++c < o;) a[c] = r(e[c], e[c + 1]), u[c] = i(n[c], n[c + 1]);
return function(n) {
var r = t.bisect(e, n, 1, o) - 1;
return u[r](a[r](n))
}
}
function y(e, t) {
return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())
}
function v(e, t) {
function n() {
return o = Math.min(c.length, f.length) > 2 ? g : b, a = u = null, i
}
function i(t) {
return (a || (a = o(c, f, s ? h(e) : e, l)))(+t)
}
var o, a, u, c = W,
f = W,
l = r.interpolate,
s = !1;
return i.invert = function(e) {
return (u || (u = o(f, c, d, s ? p(t) : t)))(+e)
}, i.domain = function(e) {
return arguments.length ? (c = z.call(e, B), n()) : c.slice()
}, i.range = function(e) {
return arguments.length ? (f = H.call(e), n()) : f.slice()
}, i.rangeRound = function(e) {
return f = H.call(e), l = r.interpolateRound, n()
}, i.clamp = function(e) {
return arguments.length ? (s = !!e, n()) : s
}, i.interpolate = function(e) {
return arguments.length ? (l = e, n()) : l
}, n()
}
function m(e) {
var n = e.domain;
return e.ticks = function(e) {
var r = n();
return t.ticks(r[0], r[r.length - 1], null == e ? 10 : e)
}, e.tickFormat = function(e, t) {
return X(n(), e, t)
}, e.nice = function(r) {
var i = n(),
o = i.length - 1,
a = null == r ? 10 : r,
u = i[0],
c = i[o],
f = t.tickStep(u, c, a);
return f && (f = t.tickStep(Math.floor(u / f) * f, Math.ceil(c / f) * f, a), i[0] = Math.floor(u / f) * f, i[o] = Math.ceil(c / f) * f, n(i)), e
}, e
}
function w() {
var e = v(d, r.interpolateNumber);
return e.copy = function() {
return y(e, w())
}, m(e)
}
function M() {
function e(e) {
return +e
}
var t = [0, 1];
return e.invert = e, e.domain = e.range = function(n) {
return arguments.length ? (t = z.call(n, B), e) : t.slice()
}, e.copy = function() {
return M().domain(t)
}, m(e)
}
function _(e, t) {
return (t = Math.log(t / e)) ? function(n) {
return Math.log(n / e) / t
} : R(t)
}
function x(e, t) {
return e < 0 ? function(n) {
return -Math.pow(-t, n) * Math.pow(-e, 1 - n)
} : function(n) {
return Math.pow(t, n) * Math.pow(e, 1 - n)
}
}
function j(e) {
return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e
}
function O(e) {
return 10 === e ? j : e === Math.E ? Math.exp : function(t) {
return Math.pow(e, t)
}
}
function S(e) {
return e === Math.E ? Math.log : 10 === e && Math.log10 || 2 === e && Math.log2 || (e = Math.log(e), function(t) {
return Math.log(t) / e
})
}
function k(e) {
return function(t) {
return -e(-t)
}
}
function A() {
function e() {
return a = S(o), u = O(o), r()[0] < 0 && (a = k(a), u = k(u)), n
}
var n = v(_, x).domain([1, 10]),
r = n.domain,
o = 10,
a = S(10),
u = O(10);
return n.base = function(t) {
return arguments.length ? (o = +t, e()) : o
}, n.domain = function(t) {
return arguments.length ? (r(t), e()) : r()
}, n.ticks = function(e) {
var n, i = r(),
c = i[0],
f = i[i.length - 1];
(n = f < c) && (h = c, c = f, f = h);
var l, s, d, h = a(c),
p = a(f),
b = null == e ? 10 : +e,
g = [];
if (!(o % 1) && p - h < b) {
if (h = Math.round(h) - 1, p = Math.round(p) + 1, c > 0) {
for (; h < p; ++h)
for (s = 1, l = u(h); s < o; ++s)
if (d = l * s, !(d < c)) {
if (d > f) break;
g.push(d)
}
} else
for (; h < p; ++h)
for (s = o - 1, l = u(h); s >= 1; --s)
if (d = l * s, !(d < c)) {
if (d > f) break;
g.push(d)
}
} else g = t.ticks(h, p, Math.min(p - h, b)).map(u);
return n ? g.reverse() : g
}, n.tickFormat = function(e, t) {
if (null == t && (t = 10 === o ? ".0e" : ","), "function" != typeof t && (t = i.format(t)), e === 1 / 0) return t;
null == e && (e = 10);
var r = Math.max(1, o * e / n.ticks().length);
return function(e) {
var n = e / u(Math.round(a(e)));
return n * o < o - .5 && (n *= o), n <= r ? t(e) : ""
}
}, n.nice = function() {
return r(V(r(), {
floor: function(e) {
return u(Math.floor(a(e)))
},
ceil: function(e) {
return u(Math.ceil(a(e)))
}
}))
}, n.copy = function() {
return y(n, A().base(o))
}, n
}
function T(e, t) {
return e < 0 ? -Math.pow(-e, t) : Math.pow(e, t)
}
function C() {
function e(e, t) {
return (t = T(t, n) - (e = T(e, n))) ? function(r) {
return (T(r, n) - e) / t
} : R(t)
}
function t(e, t) {
return t = T(t, n) - (e = T(e, n)),
function(r) {
return T(e + t * r, 1 / n)
}
}
var n = 1,
r = v(e, t),
i = r.domain;
return r.exponent = function(e) {
return arguments.length ? (n = +e, i(i())) : n
}, r.copy = function() {
return y(r, C().exponent(n))
}, m(r)
}
function N() {
return C().exponent(.5)
}
function F() {
function e() {
var e = 0,
a = Math.max(1, i.length);
for (o = new Array(a - 1); ++e < a;) o[e - 1] = t.quantile(r, e / a);
return n
}
function n(e) {
if (!isNaN(e = +e)) return i[t.bisect(o, e)]
}
var r = [],
i = [],
o = [];
return n.invertExtent = function(e) {
var t = i.indexOf(e);
return t < 0 ? [NaN, NaN] : [t > 0 ? o[t - 1] : r[0], t < o.length ? o[t] : r[r.length - 1]]
}, n.domain = function(n) {
if (!arguments.length) return r.slice();
r = [];
for (var i, o = 0, a = n.length; o < a; ++o) i = n[o], null == i || isNaN(i = +i) || r.push(i);
return r.sort(t.ascending), e()
}, n.range = function(t) {
return arguments.length ? (i = H.call(t), e()) : i.slice()
}, n.quantiles = function() {
return o.slice()
}, n.copy = function() {
return F().domain(r).range(i)
}, n
}
function D() {
function e(e) {
if (e <= e) return u[t.bisect(a, e, 0, o)]
}
function n() {
var t = -1;
for (a = new Array(o); ++t < o;) a[t] = ((t + 1) * i - (t - o) * r) / (o + 1);
return e
}
var r = 0,
i = 1,
o = 1,
a = [.5],
u = [0, 1];
return e.domain = function(e) {
return arguments.length ? (r = +e[0], i = +e[1], n()) : [r, i]
}, e.range = function(e) {
return arguments.length ? (o = (u = H.call(e)).length - 1, n()) : u.slice()
}, e.invertExtent = function(e) {
var t = u.indexOf(e);
return t < 0 ? [NaN, NaN] : t < 1 ? [r, a[0]] : t >= o ? [a[o - 1], i] : [a[t - 1], a[t]]
}, e.copy = function() {
return D().domain([r, i]).range(u)
}, m(e)
}
function Y() {
function e(e) {
if (e <= e) return r[t.bisect(n, e, 0, i)]
}
var n = [.5],
r = [0, 1],
i = 1;
return e.domain = function(t) {
return arguments.length ? (n = H.call(t), i = Math.min(n.length, r.length - 1), e) : n.slice()
}, e.range = function(t) {
return arguments.length ? (r = H.call(t), i = Math.min(n.length, r.length - 1), e) : r.slice()
}, e.invertExtent = function(e) {
var t = r.indexOf(e);
return [n[t - 1], n[t]]
}, e.copy = function() {
return Y().domain(n).range(r)
}, e
}
function U(e) {
return new Date(e)
}
function E(e) {
return e instanceof Date ? +e : +new Date((+e))
}
function I(e, n, i, o, a, u, c, f, l) {
function s(t) {
return (c(t) < t ? m : u(t) < t ? w : a(t) < t ? M : o(t) < t ? _ : n(t) < t ? i(t) < t ? x : j : e(t) < t ? O : S)(t)
}
function h(n, r, i, o) {
if (null == n && (n = 10), "number" == typeof n) {
var a = Math.abs(i - r) / n,
u = t.bisector(function(e) {
return e[2]
}).right(k, a);
u === k.length ? (o = t.tickStep(r / te, i / te, n), n = e) : u ? (u = k[a / k[u - 1][2] < k[u][2] / a ? u - 1 : u], o = u[1], n = u[0]) : (o = t.tickStep(r, i, n), n = f)
}
return null == o ? n : n.every(o)
}
var p = v(d, r.interpolateNumber),
b = p.invert,
g = p.domain,
m = l(".%L"),
w = l(":%S"),
M = l("%I:%M"),
_ = l("%I %p"),
x = l("%a %d"),
j = l("%b %d"),
O = l("%B"),
S = l("%Y"),
k = [
[c, 1, Q],
[c, 5, 5 * Q],
[c, 15, 15 * Q],
[c, 30, 30 * Q],
[u, 1, Z],
[u, 5, 5 * Z],
[u, 15, 15 * Z],
[u, 30, 30 * Z],
[a, 1, G],
[a, 3, 3 * G],
[a, 6, 6 * G],
[a, 12, 12 * G],
[o, 1, J],
[o, 2, 2 * J],
[i, 1, K],
[n, 1, ee],
[n, 3, 3 * ee],
[e, 1, te]
];
return p.invert = function(e) {
return new Date(b(e))
}, p.domain = function(e) {
return arguments.length ? g(z.call(e, E)) : g().map(U)
}, p.ticks = function(e, t) {
var n, r = g(),
i = r[0],
o = r[r.length - 1],
a = o < i;
return a && (n = i, i = o, o = n), n = h(e, i, o, t), n = n ? n.range(i, o + 1) : [], a ? n.reverse() : n
}, p.tickFormat = function(e, t) {
return null == t ? s : l(t)
}, p.nice = function(e, t) {
var n = g();
return (e = h(e, n[0], n[n.length - 1], t)) ? g(V(n, e)) : p
}, p.copy = function() {
return y(p, I(e, n, i, o, a, u, c, f, l))
}, p
}
function P(e) {
var t = e.length;
return function(n) {
return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]
}
}
function q(e) {
function t(t) {
var o = (t - n) / (r - n);
return e(i ? Math.max(0, Math.min(1, o)) : o)
}
var n = 0,
r = 1,
i = !1;
return t.domain = function(e) {
return arguments.length ? (n = +e[0], r = +e[1], t) : [n, r]
}, t.clamp = function(e) {
return arguments.length ? (i = !!e, t) : i
}, t.interpolator = function(n) {
return arguments.length ? (e = n, t) : e
}, t.copy = function() {
return q(e).domain([n, r]).clamp(i)
}, m(t)
}
var L = Array.prototype,
z = L.map,
H = L.slice,
$ = {
name: "implicit"
},
R = function(e) {
return function() {
return e
}
},
B = function(e) {
return +e
},
W = [0, 1],
X = function(e, n, r) {
var o, a = e[0],
u = e[e.length - 1],
c = t.tickStep(a, u, null == n ? 10 : n);
switch (r = i.formatSpecifier(null == r ? ",f" : r), r.type) {
case "s":
var f = Math.max(Math.abs(a), Math.abs(u));
return null != r.precision || isNaN(o = i.precisionPrefix(c, f)) || (r.precision = o), i.formatPrefix(r, f);
case "":
case "e":
case "g":
case "p":
case "r":
null != r.precision || isNaN(o = i.precisionRound(c, Math.max(Math.abs(a), Math.abs(u)))) || (r.precision = o - ("e" === r.type));
break;
case "f":
case "%":
null != r.precision || isNaN(o = i.precisionFixed(c)) || (r.precision = o - 2 * ("%" === r.type))
}
return i.format(r)
},
V = function(e, t) {
e = e.slice();
var n, r = 0,
i = e.length - 1,
o = e[r],
a = e[i];
return a < o && (n = r, r = i, i = n, n = o, o = a, a = n), e[r] = t.floor(o), e[i] = t.ceil(a), e
},
Q = 1e3,
Z = 60 * Q,
G = 60 * Z,
J = 24 * G,
K = 7 * J,
ee = 30 * J,
te = 365 * J,
ne = function() {
return I(o.timeYear, o.timeMonth, o.timeWeek, o.timeDay, o.timeHour, o.timeMinute, o.timeSecond, o.timeMillisecond, a.timeFormat).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)])
},
re = function() {
return I(o.utcYear, o.utcMonth, o.utcWeek, o.utcDay, o.utcHour, o.utcMinute, o.utcSecond, o.utcMillisecond, a.utcFormat).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)])
},
ie = function(e) {
return e.match(/.{6}/g).map(function(e) {
return "#" + e
})
},
oe = ie("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),
ae = ie("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),
ue = ie("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),
ce = ie("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),
fe = r.interpolateCubehelixLong(u.cubehelix(300, .5, 0), u.cubehelix(-240, .5, 1)),
le = r.interpolateCubehelixLong(u.cubehelix(-100, .75, .35), u.cubehelix(80, 1.5, .8)),
se = r.interpolateCubehelixLong(u.cubehelix(260, .75, .35), u.cubehelix(80, 1.5, .8)),
de = u.cubehelix(),
he = function(e) {
(e < 0 || e > 1) && (e -= Math.floor(e));
var t = Math.abs(e - .5);
return de.h = 360 * e - 100, de.s = 1.5 - 1.5 * t, de.l = .8 - .9 * t, de + ""
},
pe = P(ie("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),
be = P(ie("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),
ge = P(ie("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),
ye = P(ie("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
e.scaleBand = f, e.scalePoint = s, e.scaleIdentity = M, e.scaleLinear = w, e.scaleLog = A, e.scaleOrdinal = c, e.scaleImplicit = $, e.scalePow = C, e.scaleSqrt = N, e.scaleQuantile = F, e.scaleQuantize = D, e.scaleThreshold = Y, e.scaleTime = ne, e.scaleUtc = re, e.schemeCategory10 = oe, e.schemeCategory20b = ae, e.schemeCategory20c = ue, e.schemeCategory20 = ce, e.interpolateCubehelixDefault = fe, e.interpolateRainbow = he, e.interpolateWarm = le, e.interpolateCool = se, e.interpolateViridis = pe, e.interpolateMagma = be, e.interpolateInferno = ge, e.interpolatePlasma = ye, e.scaleSequential = q, Object.defineProperty(e, "__esModule", {
value: !0
})
})
}, {
"d3-array": 1,
"d3-collection": 2,
"d3-color": 3,
"d3-format": 5,
"d3-interpolate": 6,
"d3-time": 9,
"d3-time-format": 8
}],
8: [function(e, t, n) {
! function(r, i) {
"object" === ("undefined" == typeof n ? "undefined" : _typeof(n)) && "undefined" != typeof t ? i(n, e("d3-time")) : "function" == typeof define && define.amd ? define(["exports", "d3-time"], i) : i(r.d3 = r.d3 || {}, r.d3)
}(this, function(e, t) {
function n(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 r(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 i(e) {
return {
y: e,
m: 0,
d: 1,
H: 0,
M: 0,
S: 0,
L: 0
}
}
function o(e) {
function t(e, t) {
return function(n) {
var r, i, o, a = [],
u = -1,
c = 0,
f = e.length;
for (n instanceof Date || (n = new Date((+n))); ++u < f;) 37 === e.charCodeAt(u) && (a.push(e.slice(c, u)), null != (i = re[r = e.charAt(++u)]) ? r = e.charAt(++u) : i = "e" === r ? " " : "0", (o = t[r]) && (r = o(n, i)), a.push(r), c = u + 1);
return a.push(e.slice(c, u)), a.join("")
}
}
function o(e, t) {
return function(n) {
var o = i(1900),
u = a(o, e, n += "", 0);
if (u != n.length) return null;
if ("p" in o && (o.H = o.H % 12 + 12 * o.p), "W" in o || "U" in o) {
"w" in o || (o.w = "W" in o ? 1 : 0);
var c = "Z" in o ? r(i(o.y)).getUTCDay() : t(i(o.y)).getDay();
o.m = 0, o.d = "W" in o ? (o.w + 6) % 7 + 7 * o.W - (c + 5) % 7 : o.w + 7 * o.U - (c + 6) % 7
}
return "Z" in o ? (o.H += o.Z / 100 | 0, o.M += o.Z % 100, r(o)) : t(o)
}
}
function a(e, t, n, r) {
for (var i, o, a = 0, u = t.length, c = n.length; a < u;) {
if (r >= c) return -1;
if (i = t.charCodeAt(a++), 37 === i) {
if (i = t.charAt(a++), o = Ie[i in re ? t.charAt(a++) : i], !o || (r = o(e, n, r)) < 0) return -1
} else if (i != n.charCodeAt(r++)) return -1
}
return r
}
function u(e, t, n) {
var r = Oe.exec(t.slice(n));
return r ? (e.p = Se[r[0].toLowerCase()], n + r[0].length) : -1
}
function K(e, t, n) {
var r = Te.exec(t.slice(n));
return r ? (e.w = Ce[r[0].toLowerCase()], n + r[0].length) : -1
}
function ee(e, t, n) {
var r = ke.exec(t.slice(n));
return r ? (e.w = Ae[r[0].toLowerCase()], n + r[0].length) : -1
}
function te(e, t, n) {
var r = De.exec(t.slice(n));
return r ? (e.m = Ye[r[0].toLowerCase()], n + r[0].length) : -1
}
function ne(e, t, n) {
var r = Ne.exec(t.slice(n));
return r ? (e.m = Fe[r[0].toLowerCase()], n + r[0].length) : -1
}
function ie(e, t, n) {
return a(e, ye, t, n)
}
function oe(e, t, n) {
return a(e, ve, t, n)
}
function ae(e, t, n) {
return a(e, me, t, n)
}
function ue(e) {
return _e[e.getDay()]
}
function ce(e) {
return Me[e.getDay()]
}
function fe(e) {
return je[e.getMonth()]
}
function le(e) {
return xe[e.getMonth()]
}
function se(e) {
return we[+(e.getHours() >= 12)]
}
function de(e) {
return _e[e.getUTCDay()]
}
function he(e) {
return Me[e.getUTCDay()]
}
function pe(e) {
return je[e.getUTCMonth()]
}
function be(e) {
return xe[e.getUTCMonth()]
}
function ge(e) {
return we[+(e.getUTCHours() >= 12)]
}
var ye = e.dateTime,
ve = e.date,
me = e.time,
we = e.periods,
Me = e.days,
_e = e.shortDays,
xe = e.months,
je = e.shortMonths,
Oe = c(we),
Se = f(we),
ke = c(Me),
Ae = f(Me),
Te = c(_e),
Ce = f(_e),
Ne = c(xe),
Fe = f(xe),
De = c(je),
Ye = f(je),
Ue = {
a: ue,
A: ce,
b: fe,
B: le,
c: null,
d: j,
e: j,
H: O,
I: S,
j: k,
L: A,
m: T,
M: C,
p: se,
S: N,
U: F,
w: D,
W: Y,
x: null,
X: null,
y: U,
Y: E,
Z: I,
"%": J
},
Ee = {
a: de,
A: he,
b: pe,
B: be,
c: null,
d: P,
e: P,
H: q,
I: L,
j: z,
L: H,
m: $,
M: R,
p: ge,
S: B,
U: W,
w: X,
W: V,
x: null,
X: null,
y: Q,
Y: Z,
Z: G,
"%": J
},
Ie = {
a: K,
A: ee,
b: te,
B: ne,
c: ie,
d: y,
e: y,
H: m,
I: m,
j: v,
L: _,
m: g,
M: w,
p: u,
S: M,
U: s,
w: l,
W: d,
x: oe,
X: ae,
y: p,
Y: h,
Z: b,
"%": x
};
return Ue.x = t(ve, Ue), Ue.X = t(me, Ue), Ue.c = t(ye, Ue), Ee.x = t(ve, Ee), Ee.X = t(me, Ee), Ee.c = t(ye, Ee), {
format: function(e) {
var n = t(e += "", Ue);
return n.toString = function() {
return e
}, n
},
parse: function(e) {
var t = o(e += "", n);
return t.toString = function() {
return e
}, t
},
utcFormat: function(e) {
var n = t(e += "", Ee);
return n.toString = function() {
return e
}, n
},
utcParse: function(e) {
var t = o(e, r);
return t.toString = function() {
return e
}, t
}
}
}
function a(e, t, n) {
var r = e < 0 ? "-" : "",
i = (r ? -e : e) + "",
o = i.length;
return r + (o < n ? new Array(n - o + 1).join(t) + i : i)
}
function u(e) {
return e.replace(ae, "\\$&")
}
function c(e) {
return new RegExp("^(?:" + e.map(u).join("|") + ")", "i")
}
function f(e) {
for (var t = {}, n = -1, r = e.length; ++n < r;) t[e[n].toLowerCase()] = n;
return t
}
function l(e, t, n) {
var r = ie.exec(t.slice(n, n + 1));
return r ? (e.w = +r[0], n + r[0].length) : -1
}
function s(e, t, n) {
var r = ie.exec(t.slice(n));
return r ? (e.U = +r[0], n + r[0].length) : -1
}
function d(e, t, n) {
var r = ie.exec(t.slice(n));
return r ? (e.W = +r[0], n + r[0].length) : -1
}
function h(e, t, n) {
var r = ie.exec(t.slice(n, n + 4));
return r ? (e.y = +r[0], n + r[0].length) : -1
}
function p(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1
}
function b(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 g(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.m = r[0] - 1, n + r[0].length) : -1
}
function y(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.d = +r[0], n + r[0].length) : -1
}
function v(e, t, n) {
var r = ie.exec(t.slice(n, n + 3));
return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1
}
function m(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.H = +r[0], n + r[0].length) : -1
}
function w(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.M = +r[0], n + r[0].length) : -1
}
function M(e, t, n) {
var r = ie.exec(t.slice(n, n + 2));
return r ? (e.S = +r[0], n + r[0].length) : -1
}
function _(e, t, n) {
var r = ie.exec(t.slice(n, n + 3));
return r ? (e.L = +r[0], n + r[0].length) : -1
}
function x(e, t, n) {
var r = oe.exec(t.slice(n, n + 1));
return r ? n + r[0].length : -1
}
function j(e, t) {
return a(e.getDate(), t, 2)
}
function O(e, t) {
return a(e.getHours(), t, 2)
}
function S(e, t) {
return a(e.getHours() % 12 || 12, t, 2)
}
function k(e, n) {
return a(1 + t.timeDay.count(t.timeYear(e), e), n, 3)