@vitessce/heatmap 3.6.4 → 3.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-w__udh-B.js → deflate-Ba7ZjAWb.js} +1 -1
- package/dist/{index-DU_8cT8W.js → index-BKr-5yyI.js} +144 -884
- package/dist/index.js +1 -1
- package/dist/{jpeg-B-5_7L9w.js → jpeg-Cm1shyEL.js} +1 -1
- package/dist/{lerc-BHhU86Dn.js → lerc-Dx1Y-w9t.js} +1 -1
- package/dist/{lzw-DybK6JHW.js → lzw-CiiV86Ur.js} +1 -1
- package/dist/{packbits-B29YGzCg.js → packbits-C2jGKqua.js} +1 -1
- package/dist/{raw-B5s0amXm.js → raw-U8M4JJZ-.js} +1 -1
- package/dist/{webimage-77A_wjHi.js → webimage-Ct76zRHV.js} +1 -1
- package/package.json +10 -10
|
@@ -11136,12 +11136,17 @@ anndataZarrSchema.extend({
|
|
|
11136
11136
|
z.object({
|
|
11137
11137
|
// TODO: should `image` be a special schema
|
|
11138
11138
|
// to allow specifying fileUid (like for embeddingType)?
|
|
11139
|
-
// TODO: allow multiple images
|
|
11139
|
+
// TODO: allow multiple images?
|
|
11140
11140
|
image: imageSpatialdataSchema,
|
|
11141
11141
|
// TODO: should this be a special schema
|
|
11142
11142
|
// to allow specifying fileUid (like for embeddingType)?
|
|
11143
|
-
// TODO: allow multiple labels
|
|
11143
|
+
// TODO: allow multiple labels?
|
|
11144
11144
|
labels: obsSegmentationsSpatialdataSchema,
|
|
11145
|
+
// TODO: allow multiple shapes?
|
|
11146
|
+
// TODO: unify labels and shapes to obsSegmentations,
|
|
11147
|
+
// then distinguish in expand function based on
|
|
11148
|
+
// "labels/*" vs. "shapes/*" in path?
|
|
11149
|
+
shapes: obsSegmentationsSpatialdataSchema,
|
|
11145
11150
|
obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
|
|
11146
11151
|
obsSpots: obsSpotsSpatialdataSchema,
|
|
11147
11152
|
// TODO: obsPoints
|
|
@@ -22250,7 +22255,7 @@ function paletteTransform(value, userValue) {
|
|
|
22250
22255
|
}
|
|
22251
22256
|
return value;
|
|
22252
22257
|
}
|
|
22253
|
-
const color$
|
|
22258
|
+
const color$1 = style$3({
|
|
22254
22259
|
prop: "color",
|
|
22255
22260
|
themeKey: "palette",
|
|
22256
22261
|
transform: paletteTransform
|
|
@@ -22266,7 +22271,7 @@ const backgroundColor = style$3({
|
|
|
22266
22271
|
themeKey: "palette",
|
|
22267
22272
|
transform: paletteTransform
|
|
22268
22273
|
});
|
|
22269
|
-
compose$1(color$
|
|
22274
|
+
compose$1(color$1, bgcolor, backgroundColor);
|
|
22270
22275
|
function sizingTransform(value) {
|
|
22271
22276
|
return value <= 1 && value !== 0 ? `${value * 100}%` : value;
|
|
22272
22277
|
}
|
|
@@ -31741,7 +31746,7 @@ EnterNode.prototype = {
|
|
|
31741
31746
|
return this._parent.querySelectorAll(selector2);
|
|
31742
31747
|
}
|
|
31743
31748
|
};
|
|
31744
|
-
function constant$
|
|
31749
|
+
function constant$2(x) {
|
|
31745
31750
|
return function() {
|
|
31746
31751
|
return x;
|
|
31747
31752
|
};
|
|
@@ -31796,7 +31801,7 @@ function datum(node2) {
|
|
|
31796
31801
|
function selection_data(value, key) {
|
|
31797
31802
|
if (!arguments.length) return Array.from(this, datum);
|
|
31798
31803
|
var bind2 = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
|
|
31799
|
-
if (typeof value !== "function") value = constant$
|
|
31804
|
+
if (typeof value !== "function") value = constant$2(value);
|
|
31800
31805
|
for (var m = groups.length, update2 = new Array(m), enter = new Array(m), exit = new Array(m), j = 0; j < m; ++j) {
|
|
31801
31806
|
var parent = parents[j], group = groups[j], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j, parents)), dataLength = data.length, enterGroup = enter[j] = new Array(dataLength), updateGroup = update2[j] = new Array(dataLength), exitGroup = exit[j] = new Array(groupLength);
|
|
31802
31807
|
bind2(parent, group, enterGroup, updateGroup, exitGroup, data, key);
|
|
@@ -32297,7 +32302,7 @@ function bisector$1(f2) {
|
|
|
32297
32302
|
compare2 = (d, x) => ascending$2(f2(d), x);
|
|
32298
32303
|
delta = (d, x) => f2(d) - x;
|
|
32299
32304
|
} else {
|
|
32300
|
-
compare1 = f2 === ascending$2 || f2 === descending ? f2 : zero$
|
|
32305
|
+
compare1 = f2 === ascending$2 || f2 === descending ? f2 : zero$3;
|
|
32301
32306
|
compare2 = f2;
|
|
32302
32307
|
delta = f2;
|
|
32303
32308
|
}
|
|
@@ -32329,15 +32334,15 @@ function bisector$1(f2) {
|
|
|
32329
32334
|
}
|
|
32330
32335
|
return { left, center: center2, right };
|
|
32331
32336
|
}
|
|
32332
|
-
function zero$
|
|
32337
|
+
function zero$3() {
|
|
32333
32338
|
return 0;
|
|
32334
32339
|
}
|
|
32335
|
-
function number$
|
|
32340
|
+
function number$2(x) {
|
|
32336
32341
|
return x === null ? NaN : +x;
|
|
32337
32342
|
}
|
|
32338
32343
|
const ascendingBisect = bisector$1(ascending$2);
|
|
32339
32344
|
const bisectRight = ascendingBisect.right;
|
|
32340
|
-
bisector$1(number$
|
|
32345
|
+
bisector$1(number$2).center;
|
|
32341
32346
|
var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
32342
32347
|
function ticks(start, stop, count2) {
|
|
32343
32348
|
var reverse, i2 = -1, n2, ticks2, step;
|
|
@@ -32404,21 +32409,21 @@ function initInterpolator(domain, interpolator) {
|
|
|
32404
32409
|
}
|
|
32405
32410
|
return this;
|
|
32406
32411
|
}
|
|
32407
|
-
function define
|
|
32412
|
+
function define(constructor, factory, prototype) {
|
|
32408
32413
|
constructor.prototype = factory.prototype = prototype;
|
|
32409
32414
|
prototype.constructor = constructor;
|
|
32410
32415
|
}
|
|
32411
|
-
function extend$
|
|
32416
|
+
function extend$1(parent, definition) {
|
|
32412
32417
|
var prototype = Object.create(parent.prototype);
|
|
32413
32418
|
for (var key in definition) prototype[key] = definition[key];
|
|
32414
32419
|
return prototype;
|
|
32415
32420
|
}
|
|
32416
|
-
function Color
|
|
32421
|
+
function Color() {
|
|
32417
32422
|
}
|
|
32418
|
-
var darker
|
|
32419
|
-
var brighter
|
|
32420
|
-
var reI
|
|
32421
|
-
var named
|
|
32423
|
+
var darker = 0.7;
|
|
32424
|
+
var brighter = 1 / darker;
|
|
32425
|
+
var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
|
|
32426
|
+
var named = {
|
|
32422
32427
|
aliceblue: 15792383,
|
|
32423
32428
|
antiquewhite: 16444375,
|
|
32424
32429
|
aqua: 65535,
|
|
@@ -32568,92 +32573,92 @@ var named$2 = {
|
|
|
32568
32573
|
yellow: 16776960,
|
|
32569
32574
|
yellowgreen: 10145074
|
|
32570
32575
|
};
|
|
32571
|
-
define
|
|
32576
|
+
define(Color, color, {
|
|
32572
32577
|
copy(channels2) {
|
|
32573
32578
|
return Object.assign(new this.constructor(), this, channels2);
|
|
32574
32579
|
},
|
|
32575
32580
|
displayable() {
|
|
32576
32581
|
return this.rgb().displayable();
|
|
32577
32582
|
},
|
|
32578
|
-
hex: color_formatHex
|
|
32583
|
+
hex: color_formatHex,
|
|
32579
32584
|
// Deprecated! Use color.formatHex.
|
|
32580
|
-
formatHex: color_formatHex
|
|
32585
|
+
formatHex: color_formatHex,
|
|
32581
32586
|
formatHex8: color_formatHex8,
|
|
32582
|
-
formatHsl: color_formatHsl
|
|
32583
|
-
formatRgb: color_formatRgb
|
|
32584
|
-
toString: color_formatRgb
|
|
32587
|
+
formatHsl: color_formatHsl,
|
|
32588
|
+
formatRgb: color_formatRgb,
|
|
32589
|
+
toString: color_formatRgb
|
|
32585
32590
|
});
|
|
32586
|
-
function color_formatHex
|
|
32591
|
+
function color_formatHex() {
|
|
32587
32592
|
return this.rgb().formatHex();
|
|
32588
32593
|
}
|
|
32589
32594
|
function color_formatHex8() {
|
|
32590
32595
|
return this.rgb().formatHex8();
|
|
32591
32596
|
}
|
|
32592
|
-
function color_formatHsl
|
|
32593
|
-
return hslConvert
|
|
32597
|
+
function color_formatHsl() {
|
|
32598
|
+
return hslConvert(this).formatHsl();
|
|
32594
32599
|
}
|
|
32595
|
-
function color_formatRgb
|
|
32600
|
+
function color_formatRgb() {
|
|
32596
32601
|
return this.rgb().formatRgb();
|
|
32597
32602
|
}
|
|
32598
|
-
function color
|
|
32603
|
+
function color(format2) {
|
|
32599
32604
|
var m, l2;
|
|
32600
32605
|
format2 = (format2 + "").trim().toLowerCase();
|
|
32601
|
-
return (m = reHex
|
|
32606
|
+
return (m = reHex.exec(format2)) ? (l2 = m[1].length, m = parseInt(m[1], 16), l2 === 6 ? rgbn(m) : l2 === 3 ? new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l2 === 8 ? rgba(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l2 === 4 ? rgba(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger.exec(format2)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format2)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger.exec(format2)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format2)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent.exec(format2)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format2)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
32602
32607
|
}
|
|
32603
|
-
function rgbn
|
|
32604
|
-
return new Rgb
|
|
32608
|
+
function rgbn(n2) {
|
|
32609
|
+
return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
|
|
32605
32610
|
}
|
|
32606
|
-
function rgba
|
|
32611
|
+
function rgba(r2, g2, b, a2) {
|
|
32607
32612
|
if (a2 <= 0) r2 = g2 = b = NaN;
|
|
32608
|
-
return new Rgb
|
|
32613
|
+
return new Rgb(r2, g2, b, a2);
|
|
32609
32614
|
}
|
|
32610
|
-
function rgbConvert
|
|
32611
|
-
if (!(o2 instanceof Color
|
|
32612
|
-
if (!o2) return new Rgb
|
|
32615
|
+
function rgbConvert(o2) {
|
|
32616
|
+
if (!(o2 instanceof Color)) o2 = color(o2);
|
|
32617
|
+
if (!o2) return new Rgb();
|
|
32613
32618
|
o2 = o2.rgb();
|
|
32614
|
-
return new Rgb
|
|
32619
|
+
return new Rgb(o2.r, o2.g, o2.b, o2.opacity);
|
|
32615
32620
|
}
|
|
32616
|
-
function rgb
|
|
32617
|
-
return arguments.length === 1 ? rgbConvert
|
|
32621
|
+
function rgb(r2, g2, b, opacity) {
|
|
32622
|
+
return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g2, b, opacity == null ? 1 : opacity);
|
|
32618
32623
|
}
|
|
32619
|
-
function Rgb
|
|
32624
|
+
function Rgb(r2, g2, b, opacity) {
|
|
32620
32625
|
this.r = +r2;
|
|
32621
32626
|
this.g = +g2;
|
|
32622
32627
|
this.b = +b;
|
|
32623
32628
|
this.opacity = +opacity;
|
|
32624
32629
|
}
|
|
32625
|
-
define
|
|
32630
|
+
define(Rgb, rgb, extend$1(Color, {
|
|
32626
32631
|
brighter(k) {
|
|
32627
|
-
k = k == null ? brighter
|
|
32628
|
-
return new Rgb
|
|
32632
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
32633
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
32629
32634
|
},
|
|
32630
32635
|
darker(k) {
|
|
32631
|
-
k = k == null ? darker
|
|
32632
|
-
return new Rgb
|
|
32636
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
32637
|
+
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
32633
32638
|
},
|
|
32634
32639
|
rgb() {
|
|
32635
32640
|
return this;
|
|
32636
32641
|
},
|
|
32637
32642
|
clamp() {
|
|
32638
|
-
return new Rgb
|
|
32643
|
+
return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
|
|
32639
32644
|
},
|
|
32640
32645
|
displayable() {
|
|
32641
32646
|
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
32642
32647
|
},
|
|
32643
|
-
hex: rgb_formatHex
|
|
32648
|
+
hex: rgb_formatHex,
|
|
32644
32649
|
// Deprecated! Use color.formatHex.
|
|
32645
|
-
formatHex: rgb_formatHex
|
|
32650
|
+
formatHex: rgb_formatHex,
|
|
32646
32651
|
formatHex8: rgb_formatHex8,
|
|
32647
|
-
formatRgb: rgb_formatRgb
|
|
32648
|
-
toString: rgb_formatRgb
|
|
32652
|
+
formatRgb: rgb_formatRgb,
|
|
32653
|
+
toString: rgb_formatRgb
|
|
32649
32654
|
}));
|
|
32650
|
-
function rgb_formatHex
|
|
32651
|
-
return `#${hex
|
|
32655
|
+
function rgb_formatHex() {
|
|
32656
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
|
|
32652
32657
|
}
|
|
32653
32658
|
function rgb_formatHex8() {
|
|
32654
|
-
return `#${hex
|
|
32659
|
+
return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
32655
32660
|
}
|
|
32656
|
-
function rgb_formatRgb
|
|
32661
|
+
function rgb_formatRgb() {
|
|
32657
32662
|
const a2 = clampa(this.opacity);
|
|
32658
32663
|
return `${a2 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a2 === 1 ? ")" : `, ${a2})`}`;
|
|
32659
32664
|
}
|
|
@@ -32663,21 +32668,21 @@ function clampa(opacity) {
|
|
|
32663
32668
|
function clampi(value) {
|
|
32664
32669
|
return Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
32665
32670
|
}
|
|
32666
|
-
function hex
|
|
32671
|
+
function hex(value) {
|
|
32667
32672
|
value = clampi(value);
|
|
32668
32673
|
return (value < 16 ? "0" : "") + value.toString(16);
|
|
32669
32674
|
}
|
|
32670
|
-
function hsla
|
|
32675
|
+
function hsla(h, s2, l2, a2) {
|
|
32671
32676
|
if (a2 <= 0) h = s2 = l2 = NaN;
|
|
32672
32677
|
else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
|
|
32673
32678
|
else if (s2 <= 0) h = NaN;
|
|
32674
|
-
return new Hsl
|
|
32679
|
+
return new Hsl(h, s2, l2, a2);
|
|
32675
32680
|
}
|
|
32676
|
-
function hslConvert
|
|
32677
|
-
if (o2 instanceof Hsl
|
|
32678
|
-
if (!(o2 instanceof Color
|
|
32679
|
-
if (!o2) return new Hsl
|
|
32680
|
-
if (o2 instanceof Hsl
|
|
32681
|
+
function hslConvert(o2) {
|
|
32682
|
+
if (o2 instanceof Hsl) return new Hsl(o2.h, o2.s, o2.l, o2.opacity);
|
|
32683
|
+
if (!(o2 instanceof Color)) o2 = color(o2);
|
|
32684
|
+
if (!o2) return new Hsl();
|
|
32685
|
+
if (o2 instanceof Hsl) return o2;
|
|
32681
32686
|
o2 = o2.rgb();
|
|
32682
32687
|
var r2 = o2.r / 255, g2 = o2.g / 255, b = o2.b / 255, min = Math.min(r2, g2, b), max2 = Math.max(r2, g2, b), h = NaN, s2 = max2 - min, l2 = (max2 + min) / 2;
|
|
32683
32688
|
if (s2) {
|
|
@@ -32689,37 +32694,37 @@ function hslConvert$2(o2) {
|
|
|
32689
32694
|
} else {
|
|
32690
32695
|
s2 = l2 > 0 && l2 < 1 ? 0 : h;
|
|
32691
32696
|
}
|
|
32692
|
-
return new Hsl
|
|
32697
|
+
return new Hsl(h, s2, l2, o2.opacity);
|
|
32693
32698
|
}
|
|
32694
|
-
function hsl
|
|
32695
|
-
return arguments.length === 1 ? hslConvert
|
|
32699
|
+
function hsl(h, s2, l2, opacity) {
|
|
32700
|
+
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s2, l2, opacity == null ? 1 : opacity);
|
|
32696
32701
|
}
|
|
32697
|
-
function Hsl
|
|
32702
|
+
function Hsl(h, s2, l2, opacity) {
|
|
32698
32703
|
this.h = +h;
|
|
32699
32704
|
this.s = +s2;
|
|
32700
32705
|
this.l = +l2;
|
|
32701
32706
|
this.opacity = +opacity;
|
|
32702
32707
|
}
|
|
32703
|
-
define
|
|
32708
|
+
define(Hsl, hsl, extend$1(Color, {
|
|
32704
32709
|
brighter(k) {
|
|
32705
|
-
k = k == null ? brighter
|
|
32706
|
-
return new Hsl
|
|
32710
|
+
k = k == null ? brighter : Math.pow(brighter, k);
|
|
32711
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
32707
32712
|
},
|
|
32708
32713
|
darker(k) {
|
|
32709
|
-
k = k == null ? darker
|
|
32710
|
-
return new Hsl
|
|
32714
|
+
k = k == null ? darker : Math.pow(darker, k);
|
|
32715
|
+
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
32711
32716
|
},
|
|
32712
32717
|
rgb() {
|
|
32713
32718
|
var h = this.h % 360 + (this.h < 0) * 360, s2 = isNaN(h) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m2 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s2, m1 = 2 * l2 - m2;
|
|
32714
|
-
return new Rgb
|
|
32715
|
-
hsl2rgb
|
|
32716
|
-
hsl2rgb
|
|
32717
|
-
hsl2rgb
|
|
32719
|
+
return new Rgb(
|
|
32720
|
+
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
32721
|
+
hsl2rgb(h, m1, m2),
|
|
32722
|
+
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
32718
32723
|
this.opacity
|
|
32719
32724
|
);
|
|
32720
32725
|
},
|
|
32721
32726
|
clamp() {
|
|
32722
|
-
return new Hsl
|
|
32727
|
+
return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
|
|
32723
32728
|
},
|
|
32724
32729
|
displayable() {
|
|
32725
32730
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
@@ -32736,33 +32741,33 @@ function clamph(value) {
|
|
|
32736
32741
|
function clampt(value) {
|
|
32737
32742
|
return Math.max(0, Math.min(1, value || 0));
|
|
32738
32743
|
}
|
|
32739
|
-
function hsl2rgb
|
|
32744
|
+
function hsl2rgb(h, m1, m2) {
|
|
32740
32745
|
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
32741
32746
|
}
|
|
32742
|
-
const constant$
|
|
32743
|
-
function linear$
|
|
32747
|
+
const constant$1 = (x) => () => x;
|
|
32748
|
+
function linear$1(a2, d) {
|
|
32744
32749
|
return function(t) {
|
|
32745
32750
|
return a2 + t * d;
|
|
32746
32751
|
};
|
|
32747
32752
|
}
|
|
32748
|
-
function exponential
|
|
32753
|
+
function exponential(a2, b, y) {
|
|
32749
32754
|
return a2 = Math.pow(a2, y), b = Math.pow(b, y) - a2, y = 1 / y, function(t) {
|
|
32750
32755
|
return Math.pow(a2 + t * b, y);
|
|
32751
32756
|
};
|
|
32752
32757
|
}
|
|
32753
|
-
function gamma
|
|
32754
|
-
return (y = +y) === 1 ? nogamma
|
|
32755
|
-
return b - a2 ? exponential
|
|
32758
|
+
function gamma(y) {
|
|
32759
|
+
return (y = +y) === 1 ? nogamma : function(a2, b) {
|
|
32760
|
+
return b - a2 ? exponential(a2, b, y) : constant$1(isNaN(a2) ? b : a2);
|
|
32756
32761
|
};
|
|
32757
32762
|
}
|
|
32758
|
-
function nogamma
|
|
32763
|
+
function nogamma(a2, b) {
|
|
32759
32764
|
var d = b - a2;
|
|
32760
|
-
return d ? linear$
|
|
32765
|
+
return d ? linear$1(a2, d) : constant$1(isNaN(a2) ? b : a2);
|
|
32761
32766
|
}
|
|
32762
|
-
const
|
|
32763
|
-
var color2 = gamma
|
|
32764
|
-
function
|
|
32765
|
-
var r2 = color2((start = rgb
|
|
32767
|
+
const interpolateRgb = function rgbGamma(y) {
|
|
32768
|
+
var color2 = gamma(y);
|
|
32769
|
+
function rgb$1(start, end) {
|
|
32770
|
+
var r2 = color2((start = rgb(start)).r, (end = rgb(end)).r), g2 = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity);
|
|
32766
32771
|
return function(t) {
|
|
32767
32772
|
start.r = r2(t);
|
|
32768
32773
|
start.g = g2(t);
|
|
@@ -32771,10 +32776,10 @@ const rgb$2 = function rgbGamma(y) {
|
|
|
32771
32776
|
return start + "";
|
|
32772
32777
|
};
|
|
32773
32778
|
}
|
|
32774
|
-
|
|
32775
|
-
return
|
|
32779
|
+
rgb$1.gamma = rgbGamma;
|
|
32780
|
+
return rgb$1;
|
|
32776
32781
|
}(1);
|
|
32777
|
-
function numberArray
|
|
32782
|
+
function numberArray(a2, b) {
|
|
32778
32783
|
if (!b) b = [];
|
|
32779
32784
|
var n2 = a2 ? Math.min(b.length, a2.length) : 0, c = b.slice(), i2;
|
|
32780
32785
|
return function(t) {
|
|
@@ -32782,19 +32787,19 @@ function numberArray$1(a2, b) {
|
|
|
32782
32787
|
return c;
|
|
32783
32788
|
};
|
|
32784
32789
|
}
|
|
32785
|
-
function isNumberArray
|
|
32790
|
+
function isNumberArray(x) {
|
|
32786
32791
|
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
32787
32792
|
}
|
|
32788
|
-
function genericArray
|
|
32793
|
+
function genericArray(a2, b) {
|
|
32789
32794
|
var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x = new Array(na), c = new Array(nb), i2;
|
|
32790
|
-
for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate$
|
|
32795
|
+
for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate$2(a2[i2], b[i2]);
|
|
32791
32796
|
for (; i2 < nb; ++i2) c[i2] = b[i2];
|
|
32792
32797
|
return function(t) {
|
|
32793
32798
|
for (i2 = 0; i2 < na; ++i2) c[i2] = x[i2](t);
|
|
32794
32799
|
return c;
|
|
32795
32800
|
};
|
|
32796
32801
|
}
|
|
32797
|
-
function date
|
|
32802
|
+
function date(a2, b) {
|
|
32798
32803
|
var d = /* @__PURE__ */ new Date();
|
|
32799
32804
|
return a2 = +a2, b = +b, function(t) {
|
|
32800
32805
|
return d.setTime(a2 * (1 - t) + b * t), d;
|
|
@@ -32805,13 +32810,13 @@ function interpolateNumber(a2, b) {
|
|
|
32805
32810
|
return a2 * (1 - t) + b * t;
|
|
32806
32811
|
};
|
|
32807
32812
|
}
|
|
32808
|
-
function object$
|
|
32813
|
+
function object$1(a2, b) {
|
|
32809
32814
|
var i2 = {}, c = {}, k;
|
|
32810
32815
|
if (a2 === null || typeof a2 !== "object") a2 = {};
|
|
32811
32816
|
if (b === null || typeof b !== "object") b = {};
|
|
32812
32817
|
for (k in b) {
|
|
32813
32818
|
if (k in a2) {
|
|
32814
|
-
i2[k] = interpolate$
|
|
32819
|
+
i2[k] = interpolate$2(a2[k], b[k]);
|
|
32815
32820
|
} else {
|
|
32816
32821
|
c[k] = b[k];
|
|
32817
32822
|
}
|
|
@@ -32821,21 +32826,21 @@ function object$2(a2, b) {
|
|
|
32821
32826
|
return c;
|
|
32822
32827
|
};
|
|
32823
32828
|
}
|
|
32824
|
-
var reA
|
|
32825
|
-
function zero$
|
|
32829
|
+
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
|
|
32830
|
+
function zero$2(b) {
|
|
32826
32831
|
return function() {
|
|
32827
32832
|
return b;
|
|
32828
32833
|
};
|
|
32829
32834
|
}
|
|
32830
|
-
function one
|
|
32835
|
+
function one(b) {
|
|
32831
32836
|
return function(t) {
|
|
32832
32837
|
return b(t) + "";
|
|
32833
32838
|
};
|
|
32834
32839
|
}
|
|
32835
|
-
function string
|
|
32836
|
-
var bi = reA
|
|
32840
|
+
function string(a2, b) {
|
|
32841
|
+
var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s2 = [], q = [];
|
|
32837
32842
|
a2 = a2 + "", b = b + "";
|
|
32838
|
-
while ((am = reA
|
|
32843
|
+
while ((am = reA.exec(a2)) && (bm = reB.exec(b))) {
|
|
32839
32844
|
if ((bs = bm.index) > bi) {
|
|
32840
32845
|
bs = b.slice(bi, bs);
|
|
32841
32846
|
if (s2[i2]) s2[i2] += bs;
|
|
@@ -32848,33 +32853,47 @@ function string$1(a2, b) {
|
|
|
32848
32853
|
s2[++i2] = null;
|
|
32849
32854
|
q.push({ i: i2, x: interpolateNumber(am, bm) });
|
|
32850
32855
|
}
|
|
32851
|
-
bi = reB
|
|
32856
|
+
bi = reB.lastIndex;
|
|
32852
32857
|
}
|
|
32853
32858
|
if (bi < b.length) {
|
|
32854
32859
|
bs = b.slice(bi);
|
|
32855
32860
|
if (s2[i2]) s2[i2] += bs;
|
|
32856
32861
|
else s2[++i2] = bs;
|
|
32857
32862
|
}
|
|
32858
|
-
return s2.length < 2 ? q[0] ? one
|
|
32863
|
+
return s2.length < 2 ? q[0] ? one(q[0].x) : zero$2(b) : (b = q.length, function(t) {
|
|
32859
32864
|
for (var i22 = 0, o2; i22 < b; ++i22) s2[(o2 = q[i22]).i] = o2.x(t);
|
|
32860
32865
|
return s2.join("");
|
|
32861
32866
|
});
|
|
32862
32867
|
}
|
|
32863
|
-
function interpolate$
|
|
32868
|
+
function interpolate$2(a2, b) {
|
|
32864
32869
|
var t = typeof b, c;
|
|
32865
|
-
return b == null || t === "boolean" ? constant$
|
|
32870
|
+
return b == null || t === "boolean" ? constant$1(b) : (t === "number" ? interpolateNumber : t === "string" ? (c = color(b)) ? (b = c, interpolateRgb) : string : b instanceof color ? interpolateRgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object$1 : interpolateNumber)(a2, b);
|
|
32866
32871
|
}
|
|
32867
32872
|
function interpolateRound(a2, b) {
|
|
32868
32873
|
return a2 = +a2, b = +b, function(t) {
|
|
32869
32874
|
return Math.round(a2 * (1 - t) + b * t);
|
|
32870
32875
|
};
|
|
32871
32876
|
}
|
|
32877
|
+
function piecewise(interpolate2, values2) {
|
|
32878
|
+
if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$2;
|
|
32879
|
+
var i2 = 0, n2 = values2.length - 1, v = values2[0], I2 = new Array(n2 < 0 ? 0 : n2);
|
|
32880
|
+
while (i2 < n2) I2[i2] = interpolate2(v, v = values2[++i2]);
|
|
32881
|
+
return function(t) {
|
|
32882
|
+
var i22 = Math.max(0, Math.min(n2 - 1, Math.floor(t *= n2)));
|
|
32883
|
+
return I2[i22](t - i22);
|
|
32884
|
+
};
|
|
32885
|
+
}
|
|
32886
|
+
function quantize(interpolator, n2) {
|
|
32887
|
+
var samples = new Array(n2);
|
|
32888
|
+
for (var i2 = 0; i2 < n2; ++i2) samples[i2] = interpolator(i2 / (n2 - 1));
|
|
32889
|
+
return samples;
|
|
32890
|
+
}
|
|
32872
32891
|
function constants$1(x) {
|
|
32873
32892
|
return function() {
|
|
32874
32893
|
return x;
|
|
32875
32894
|
};
|
|
32876
32895
|
}
|
|
32877
|
-
function number$
|
|
32896
|
+
function number$1(x) {
|
|
32878
32897
|
return +x;
|
|
32879
32898
|
}
|
|
32880
32899
|
var unit = [0, 1];
|
|
@@ -32920,7 +32939,7 @@ function copy$2(source, target) {
|
|
|
32920
32939
|
return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
|
|
32921
32940
|
}
|
|
32922
32941
|
function transformer$2() {
|
|
32923
|
-
var domain = unit, range2 = unit, interpolate2 = interpolate$
|
|
32942
|
+
var domain = unit, range2 = unit, interpolate2 = interpolate$2, transform2, untransform, unknown, clamp2 = identity$7, piecewise2, output, input;
|
|
32924
32943
|
function rescale() {
|
|
32925
32944
|
var n2 = Math.min(domain.length, range2.length);
|
|
32926
32945
|
if (clamp2 !== identity$7) clamp2 = clamper(domain[0], domain[n2 - 1]);
|
|
@@ -32935,7 +32954,7 @@ function transformer$2() {
|
|
|
32935
32954
|
return clamp2(untransform((input || (input = piecewise2(range2, domain.map(transform2), interpolateNumber)))(y)));
|
|
32936
32955
|
};
|
|
32937
32956
|
scale2.domain = function(_) {
|
|
32938
|
-
return arguments.length ? (domain = Array.from(_, number$
|
|
32957
|
+
return arguments.length ? (domain = Array.from(_, number$1), rescale()) : domain.slice();
|
|
32939
32958
|
};
|
|
32940
32959
|
scale2.range = function(_) {
|
|
32941
32960
|
return arguments.length ? (range2 = Array.from(_), rescale()) : range2.slice();
|
|
@@ -33240,10 +33259,10 @@ function linearish(scale2) {
|
|
|
33240
33259
|
};
|
|
33241
33260
|
return scale2;
|
|
33242
33261
|
}
|
|
33243
|
-
function linear
|
|
33262
|
+
function linear() {
|
|
33244
33263
|
var scale2 = continuous();
|
|
33245
33264
|
scale2.copy = function() {
|
|
33246
|
-
return copy$2(scale2, linear
|
|
33265
|
+
return copy$2(scale2, linear());
|
|
33247
33266
|
};
|
|
33248
33267
|
initRange.apply(scale2, arguments);
|
|
33249
33268
|
return linearish(scale2);
|
|
@@ -33268,7 +33287,7 @@ function transformer$1() {
|
|
|
33268
33287
|
return arguments.length ? ([r0, r1] = _, interpolator = interpolate2(r0, r1), scale2) : [interpolator(0), interpolator(1)];
|
|
33269
33288
|
};
|
|
33270
33289
|
}
|
|
33271
|
-
scale2.range = range2(interpolate$
|
|
33290
|
+
scale2.range = range2(interpolate$2);
|
|
33272
33291
|
scale2.rangeRound = range2(interpolateRound);
|
|
33273
33292
|
scale2.unknown = function(_) {
|
|
33274
33293
|
return arguments.length ? (unknown = _, scale2) : unknown;
|
|
@@ -33295,7 +33314,7 @@ var bottom = 3, epsilon$2 = 1e-6;
|
|
|
33295
33314
|
function translateX(x) {
|
|
33296
33315
|
return "translate(" + x + ",0)";
|
|
33297
33316
|
}
|
|
33298
|
-
function number
|
|
33317
|
+
function number(scale2) {
|
|
33299
33318
|
return (d) => +scale2(d);
|
|
33300
33319
|
}
|
|
33301
33320
|
function center(scale2, offset2) {
|
|
@@ -33309,7 +33328,7 @@ function entering() {
|
|
|
33309
33328
|
function axis(orient, scale2) {
|
|
33310
33329
|
var tickArguments = [], tickValues = null, tickFormat2 = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset2 = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = 1, x = "y", transform2 = translateX;
|
|
33311
33330
|
function axis2(context) {
|
|
33312
|
-
var values2 = tickValues == null ? scale2.ticks ? scale2.ticks.apply(scale2, tickArguments) : scale2.domain() : tickValues, format2 = tickFormat2 == null ? scale2.tickFormat ? scale2.tickFormat.apply(scale2, tickArguments) : identity$5 : tickFormat2, spacing = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale2.range(), range0 = +range2[0] + offset2, range1 = +range2[range2.length - 1] + offset2, position2 = (scale2.bandwidth ? center : number
|
|
33331
|
+
var values2 = tickValues == null ? scale2.ticks ? scale2.ticks.apply(scale2, tickArguments) : scale2.domain() : tickValues, format2 = tickFormat2 == null ? scale2.tickFormat ? scale2.tickFormat.apply(scale2, tickArguments) : identity$5 : tickFormat2, spacing = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale2.range(), range0 = +range2[0] + offset2, range1 = +range2[range2.length - 1] + offset2, position2 = (scale2.bandwidth ? center : number)(scale2.copy(), offset2), selection = context.selection ? context.selection() : context, path = selection.selectAll(".domain").data([null]), tick = selection.selectAll(".tick").data(values2, scale2).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line2 = tick.select("line"), text = tick.select("text");
|
|
33313
33332
|
path = path.merge(path.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
|
|
33314
33333
|
tick = tick.merge(tickEnter);
|
|
33315
33334
|
line2 = line2.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
|
|
@@ -33374,765 +33393,6 @@ function axis(orient, scale2) {
|
|
|
33374
33393
|
function axisBottom(scale2) {
|
|
33375
33394
|
return axis(bottom, scale2);
|
|
33376
33395
|
}
|
|
33377
|
-
function define$1(constructor, factory, prototype) {
|
|
33378
|
-
constructor.prototype = factory.prototype = prototype;
|
|
33379
|
-
prototype.constructor = constructor;
|
|
33380
|
-
}
|
|
33381
|
-
function extend$2(parent, definition) {
|
|
33382
|
-
var prototype = Object.create(parent.prototype);
|
|
33383
|
-
for (var key in definition) prototype[key] = definition[key];
|
|
33384
|
-
return prototype;
|
|
33385
|
-
}
|
|
33386
|
-
function Color$1() {
|
|
33387
|
-
}
|
|
33388
|
-
var darker$1 = 0.7;
|
|
33389
|
-
var brighter$1 = 1 / darker$1;
|
|
33390
|
-
var reI$1 = "\\s*([+-]?\\d+)\\s*", reN$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$1 = /^#([0-9a-f]{3,8})$/, reRgbInteger$1 = new RegExp("^rgb\\(" + [reI$1, reI$1, reI$1] + "\\)$"), reRgbPercent$1 = new RegExp("^rgb\\(" + [reP$1, reP$1, reP$1] + "\\)$"), reRgbaInteger$1 = new RegExp("^rgba\\(" + [reI$1, reI$1, reI$1, reN$1] + "\\)$"), reRgbaPercent$1 = new RegExp("^rgba\\(" + [reP$1, reP$1, reP$1, reN$1] + "\\)$"), reHslPercent$1 = new RegExp("^hsl\\(" + [reN$1, reP$1, reP$1] + "\\)$"), reHslaPercent$1 = new RegExp("^hsla\\(" + [reN$1, reP$1, reP$1, reN$1] + "\\)$");
|
|
33391
|
-
var named$1 = {
|
|
33392
|
-
aliceblue: 15792383,
|
|
33393
|
-
antiquewhite: 16444375,
|
|
33394
|
-
aqua: 65535,
|
|
33395
|
-
aquamarine: 8388564,
|
|
33396
|
-
azure: 15794175,
|
|
33397
|
-
beige: 16119260,
|
|
33398
|
-
bisque: 16770244,
|
|
33399
|
-
black: 0,
|
|
33400
|
-
blanchedalmond: 16772045,
|
|
33401
|
-
blue: 255,
|
|
33402
|
-
blueviolet: 9055202,
|
|
33403
|
-
brown: 10824234,
|
|
33404
|
-
burlywood: 14596231,
|
|
33405
|
-
cadetblue: 6266528,
|
|
33406
|
-
chartreuse: 8388352,
|
|
33407
|
-
chocolate: 13789470,
|
|
33408
|
-
coral: 16744272,
|
|
33409
|
-
cornflowerblue: 6591981,
|
|
33410
|
-
cornsilk: 16775388,
|
|
33411
|
-
crimson: 14423100,
|
|
33412
|
-
cyan: 65535,
|
|
33413
|
-
darkblue: 139,
|
|
33414
|
-
darkcyan: 35723,
|
|
33415
|
-
darkgoldenrod: 12092939,
|
|
33416
|
-
darkgray: 11119017,
|
|
33417
|
-
darkgreen: 25600,
|
|
33418
|
-
darkgrey: 11119017,
|
|
33419
|
-
darkkhaki: 12433259,
|
|
33420
|
-
darkmagenta: 9109643,
|
|
33421
|
-
darkolivegreen: 5597999,
|
|
33422
|
-
darkorange: 16747520,
|
|
33423
|
-
darkorchid: 10040012,
|
|
33424
|
-
darkred: 9109504,
|
|
33425
|
-
darksalmon: 15308410,
|
|
33426
|
-
darkseagreen: 9419919,
|
|
33427
|
-
darkslateblue: 4734347,
|
|
33428
|
-
darkslategray: 3100495,
|
|
33429
|
-
darkslategrey: 3100495,
|
|
33430
|
-
darkturquoise: 52945,
|
|
33431
|
-
darkviolet: 9699539,
|
|
33432
|
-
deeppink: 16716947,
|
|
33433
|
-
deepskyblue: 49151,
|
|
33434
|
-
dimgray: 6908265,
|
|
33435
|
-
dimgrey: 6908265,
|
|
33436
|
-
dodgerblue: 2003199,
|
|
33437
|
-
firebrick: 11674146,
|
|
33438
|
-
floralwhite: 16775920,
|
|
33439
|
-
forestgreen: 2263842,
|
|
33440
|
-
fuchsia: 16711935,
|
|
33441
|
-
gainsboro: 14474460,
|
|
33442
|
-
ghostwhite: 16316671,
|
|
33443
|
-
gold: 16766720,
|
|
33444
|
-
goldenrod: 14329120,
|
|
33445
|
-
gray: 8421504,
|
|
33446
|
-
green: 32768,
|
|
33447
|
-
greenyellow: 11403055,
|
|
33448
|
-
grey: 8421504,
|
|
33449
|
-
honeydew: 15794160,
|
|
33450
|
-
hotpink: 16738740,
|
|
33451
|
-
indianred: 13458524,
|
|
33452
|
-
indigo: 4915330,
|
|
33453
|
-
ivory: 16777200,
|
|
33454
|
-
khaki: 15787660,
|
|
33455
|
-
lavender: 15132410,
|
|
33456
|
-
lavenderblush: 16773365,
|
|
33457
|
-
lawngreen: 8190976,
|
|
33458
|
-
lemonchiffon: 16775885,
|
|
33459
|
-
lightblue: 11393254,
|
|
33460
|
-
lightcoral: 15761536,
|
|
33461
|
-
lightcyan: 14745599,
|
|
33462
|
-
lightgoldenrodyellow: 16448210,
|
|
33463
|
-
lightgray: 13882323,
|
|
33464
|
-
lightgreen: 9498256,
|
|
33465
|
-
lightgrey: 13882323,
|
|
33466
|
-
lightpink: 16758465,
|
|
33467
|
-
lightsalmon: 16752762,
|
|
33468
|
-
lightseagreen: 2142890,
|
|
33469
|
-
lightskyblue: 8900346,
|
|
33470
|
-
lightslategray: 7833753,
|
|
33471
|
-
lightslategrey: 7833753,
|
|
33472
|
-
lightsteelblue: 11584734,
|
|
33473
|
-
lightyellow: 16777184,
|
|
33474
|
-
lime: 65280,
|
|
33475
|
-
limegreen: 3329330,
|
|
33476
|
-
linen: 16445670,
|
|
33477
|
-
magenta: 16711935,
|
|
33478
|
-
maroon: 8388608,
|
|
33479
|
-
mediumaquamarine: 6737322,
|
|
33480
|
-
mediumblue: 205,
|
|
33481
|
-
mediumorchid: 12211667,
|
|
33482
|
-
mediumpurple: 9662683,
|
|
33483
|
-
mediumseagreen: 3978097,
|
|
33484
|
-
mediumslateblue: 8087790,
|
|
33485
|
-
mediumspringgreen: 64154,
|
|
33486
|
-
mediumturquoise: 4772300,
|
|
33487
|
-
mediumvioletred: 13047173,
|
|
33488
|
-
midnightblue: 1644912,
|
|
33489
|
-
mintcream: 16121850,
|
|
33490
|
-
mistyrose: 16770273,
|
|
33491
|
-
moccasin: 16770229,
|
|
33492
|
-
navajowhite: 16768685,
|
|
33493
|
-
navy: 128,
|
|
33494
|
-
oldlace: 16643558,
|
|
33495
|
-
olive: 8421376,
|
|
33496
|
-
olivedrab: 7048739,
|
|
33497
|
-
orange: 16753920,
|
|
33498
|
-
orangered: 16729344,
|
|
33499
|
-
orchid: 14315734,
|
|
33500
|
-
palegoldenrod: 15657130,
|
|
33501
|
-
palegreen: 10025880,
|
|
33502
|
-
paleturquoise: 11529966,
|
|
33503
|
-
palevioletred: 14381203,
|
|
33504
|
-
papayawhip: 16773077,
|
|
33505
|
-
peachpuff: 16767673,
|
|
33506
|
-
peru: 13468991,
|
|
33507
|
-
pink: 16761035,
|
|
33508
|
-
plum: 14524637,
|
|
33509
|
-
powderblue: 11591910,
|
|
33510
|
-
purple: 8388736,
|
|
33511
|
-
rebeccapurple: 6697881,
|
|
33512
|
-
red: 16711680,
|
|
33513
|
-
rosybrown: 12357519,
|
|
33514
|
-
royalblue: 4286945,
|
|
33515
|
-
saddlebrown: 9127187,
|
|
33516
|
-
salmon: 16416882,
|
|
33517
|
-
sandybrown: 16032864,
|
|
33518
|
-
seagreen: 3050327,
|
|
33519
|
-
seashell: 16774638,
|
|
33520
|
-
sienna: 10506797,
|
|
33521
|
-
silver: 12632256,
|
|
33522
|
-
skyblue: 8900331,
|
|
33523
|
-
slateblue: 6970061,
|
|
33524
|
-
slategray: 7372944,
|
|
33525
|
-
slategrey: 7372944,
|
|
33526
|
-
snow: 16775930,
|
|
33527
|
-
springgreen: 65407,
|
|
33528
|
-
steelblue: 4620980,
|
|
33529
|
-
tan: 13808780,
|
|
33530
|
-
teal: 32896,
|
|
33531
|
-
thistle: 14204888,
|
|
33532
|
-
tomato: 16737095,
|
|
33533
|
-
turquoise: 4251856,
|
|
33534
|
-
violet: 15631086,
|
|
33535
|
-
wheat: 16113331,
|
|
33536
|
-
white: 16777215,
|
|
33537
|
-
whitesmoke: 16119285,
|
|
33538
|
-
yellow: 16776960,
|
|
33539
|
-
yellowgreen: 10145074
|
|
33540
|
-
};
|
|
33541
|
-
define$1(Color$1, color$1, {
|
|
33542
|
-
copy: function(channels2) {
|
|
33543
|
-
return Object.assign(new this.constructor(), this, channels2);
|
|
33544
|
-
},
|
|
33545
|
-
displayable: function() {
|
|
33546
|
-
return this.rgb().displayable();
|
|
33547
|
-
},
|
|
33548
|
-
hex: color_formatHex$1,
|
|
33549
|
-
// Deprecated! Use color.formatHex.
|
|
33550
|
-
formatHex: color_formatHex$1,
|
|
33551
|
-
formatHsl: color_formatHsl$1,
|
|
33552
|
-
formatRgb: color_formatRgb$1,
|
|
33553
|
-
toString: color_formatRgb$1
|
|
33554
|
-
});
|
|
33555
|
-
function color_formatHex$1() {
|
|
33556
|
-
return this.rgb().formatHex();
|
|
33557
|
-
}
|
|
33558
|
-
function color_formatHsl$1() {
|
|
33559
|
-
return hslConvert$1(this).formatHsl();
|
|
33560
|
-
}
|
|
33561
|
-
function color_formatRgb$1() {
|
|
33562
|
-
return this.rgb().formatRgb();
|
|
33563
|
-
}
|
|
33564
|
-
function color$1(format2) {
|
|
33565
|
-
var m, l2;
|
|
33566
|
-
format2 = (format2 + "").trim().toLowerCase();
|
|
33567
|
-
return (m = reHex$1.exec(format2)) ? (l2 = m[1].length, m = parseInt(m[1], 16), l2 === 6 ? rgbn$1(m) : l2 === 3 ? new Rgb$1(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l2 === 8 ? rgba$1(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l2 === 4 ? rgba$1(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger$1.exec(format2)) ? new Rgb$1(m[1], m[2], m[3], 1) : (m = reRgbPercent$1.exec(format2)) ? new Rgb$1(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger$1.exec(format2)) ? rgba$1(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent$1.exec(format2)) ? rgba$1(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent$1.exec(format2)) ? hsla$1(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent$1.exec(format2)) ? hsla$1(m[1], m[2] / 100, m[3] / 100, m[4]) : named$1.hasOwnProperty(format2) ? rgbn$1(named$1[format2]) : format2 === "transparent" ? new Rgb$1(NaN, NaN, NaN, 0) : null;
|
|
33568
|
-
}
|
|
33569
|
-
function rgbn$1(n2) {
|
|
33570
|
-
return new Rgb$1(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
|
|
33571
|
-
}
|
|
33572
|
-
function rgba$1(r2, g2, b, a2) {
|
|
33573
|
-
if (a2 <= 0) r2 = g2 = b = NaN;
|
|
33574
|
-
return new Rgb$1(r2, g2, b, a2);
|
|
33575
|
-
}
|
|
33576
|
-
function rgbConvert$1(o2) {
|
|
33577
|
-
if (!(o2 instanceof Color$1)) o2 = color$1(o2);
|
|
33578
|
-
if (!o2) return new Rgb$1();
|
|
33579
|
-
o2 = o2.rgb();
|
|
33580
|
-
return new Rgb$1(o2.r, o2.g, o2.b, o2.opacity);
|
|
33581
|
-
}
|
|
33582
|
-
function rgb$1(r2, g2, b, opacity) {
|
|
33583
|
-
return arguments.length === 1 ? rgbConvert$1(r2) : new Rgb$1(r2, g2, b, opacity == null ? 1 : opacity);
|
|
33584
|
-
}
|
|
33585
|
-
function Rgb$1(r2, g2, b, opacity) {
|
|
33586
|
-
this.r = +r2;
|
|
33587
|
-
this.g = +g2;
|
|
33588
|
-
this.b = +b;
|
|
33589
|
-
this.opacity = +opacity;
|
|
33590
|
-
}
|
|
33591
|
-
define$1(Rgb$1, rgb$1, extend$2(Color$1, {
|
|
33592
|
-
brighter: function(k) {
|
|
33593
|
-
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
33594
|
-
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
33595
|
-
},
|
|
33596
|
-
darker: function(k) {
|
|
33597
|
-
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
33598
|
-
return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
33599
|
-
},
|
|
33600
|
-
rgb: function() {
|
|
33601
|
-
return this;
|
|
33602
|
-
},
|
|
33603
|
-
displayable: function() {
|
|
33604
|
-
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
33605
|
-
},
|
|
33606
|
-
hex: rgb_formatHex$1,
|
|
33607
|
-
// Deprecated! Use color.formatHex.
|
|
33608
|
-
formatHex: rgb_formatHex$1,
|
|
33609
|
-
formatRgb: rgb_formatRgb$1,
|
|
33610
|
-
toString: rgb_formatRgb$1
|
|
33611
|
-
}));
|
|
33612
|
-
function rgb_formatHex$1() {
|
|
33613
|
-
return "#" + hex$1(this.r) + hex$1(this.g) + hex$1(this.b);
|
|
33614
|
-
}
|
|
33615
|
-
function rgb_formatRgb$1() {
|
|
33616
|
-
var a2 = this.opacity;
|
|
33617
|
-
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
33618
|
-
return (a2 === 1 ? "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)) + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
33619
|
-
}
|
|
33620
|
-
function hex$1(value) {
|
|
33621
|
-
value = Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
33622
|
-
return (value < 16 ? "0" : "") + value.toString(16);
|
|
33623
|
-
}
|
|
33624
|
-
function hsla$1(h, s2, l2, a2) {
|
|
33625
|
-
if (a2 <= 0) h = s2 = l2 = NaN;
|
|
33626
|
-
else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
|
|
33627
|
-
else if (s2 <= 0) h = NaN;
|
|
33628
|
-
return new Hsl$1(h, s2, l2, a2);
|
|
33629
|
-
}
|
|
33630
|
-
function hslConvert$1(o2) {
|
|
33631
|
-
if (o2 instanceof Hsl$1) return new Hsl$1(o2.h, o2.s, o2.l, o2.opacity);
|
|
33632
|
-
if (!(o2 instanceof Color$1)) o2 = color$1(o2);
|
|
33633
|
-
if (!o2) return new Hsl$1();
|
|
33634
|
-
if (o2 instanceof Hsl$1) return o2;
|
|
33635
|
-
o2 = o2.rgb();
|
|
33636
|
-
var r2 = o2.r / 255, g2 = o2.g / 255, b = o2.b / 255, min = Math.min(r2, g2, b), max2 = Math.max(r2, g2, b), h = NaN, s2 = max2 - min, l2 = (max2 + min) / 2;
|
|
33637
|
-
if (s2) {
|
|
33638
|
-
if (r2 === max2) h = (g2 - b) / s2 + (g2 < b) * 6;
|
|
33639
|
-
else if (g2 === max2) h = (b - r2) / s2 + 2;
|
|
33640
|
-
else h = (r2 - g2) / s2 + 4;
|
|
33641
|
-
s2 /= l2 < 0.5 ? max2 + min : 2 - max2 - min;
|
|
33642
|
-
h *= 60;
|
|
33643
|
-
} else {
|
|
33644
|
-
s2 = l2 > 0 && l2 < 1 ? 0 : h;
|
|
33645
|
-
}
|
|
33646
|
-
return new Hsl$1(h, s2, l2, o2.opacity);
|
|
33647
|
-
}
|
|
33648
|
-
function hsl$1(h, s2, l2, opacity) {
|
|
33649
|
-
return arguments.length === 1 ? hslConvert$1(h) : new Hsl$1(h, s2, l2, opacity == null ? 1 : opacity);
|
|
33650
|
-
}
|
|
33651
|
-
function Hsl$1(h, s2, l2, opacity) {
|
|
33652
|
-
this.h = +h;
|
|
33653
|
-
this.s = +s2;
|
|
33654
|
-
this.l = +l2;
|
|
33655
|
-
this.opacity = +opacity;
|
|
33656
|
-
}
|
|
33657
|
-
define$1(Hsl$1, hsl$1, extend$2(Color$1, {
|
|
33658
|
-
brighter: function(k) {
|
|
33659
|
-
k = k == null ? brighter$1 : Math.pow(brighter$1, k);
|
|
33660
|
-
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
33661
|
-
},
|
|
33662
|
-
darker: function(k) {
|
|
33663
|
-
k = k == null ? darker$1 : Math.pow(darker$1, k);
|
|
33664
|
-
return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
|
|
33665
|
-
},
|
|
33666
|
-
rgb: function() {
|
|
33667
|
-
var h = this.h % 360 + (this.h < 0) * 360, s2 = isNaN(h) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m2 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s2, m1 = 2 * l2 - m2;
|
|
33668
|
-
return new Rgb$1(
|
|
33669
|
-
hsl2rgb$1(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
33670
|
-
hsl2rgb$1(h, m1, m2),
|
|
33671
|
-
hsl2rgb$1(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
33672
|
-
this.opacity
|
|
33673
|
-
);
|
|
33674
|
-
},
|
|
33675
|
-
displayable: function() {
|
|
33676
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
33677
|
-
},
|
|
33678
|
-
formatHsl: function() {
|
|
33679
|
-
var a2 = this.opacity;
|
|
33680
|
-
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
33681
|
-
return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
33682
|
-
}
|
|
33683
|
-
}));
|
|
33684
|
-
function hsl2rgb$1(h, m1, m2) {
|
|
33685
|
-
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
33686
|
-
}
|
|
33687
|
-
const constant$1 = (x) => () => x;
|
|
33688
|
-
function linear(a2, d) {
|
|
33689
|
-
return function(t) {
|
|
33690
|
-
return a2 + t * d;
|
|
33691
|
-
};
|
|
33692
|
-
}
|
|
33693
|
-
function exponential(a2, b, y) {
|
|
33694
|
-
return a2 = Math.pow(a2, y), b = Math.pow(b, y) - a2, y = 1 / y, function(t) {
|
|
33695
|
-
return Math.pow(a2 + t * b, y);
|
|
33696
|
-
};
|
|
33697
|
-
}
|
|
33698
|
-
function gamma(y) {
|
|
33699
|
-
return (y = +y) === 1 ? nogamma : function(a2, b) {
|
|
33700
|
-
return b - a2 ? exponential(a2, b, y) : constant$1(isNaN(a2) ? b : a2);
|
|
33701
|
-
};
|
|
33702
|
-
}
|
|
33703
|
-
function nogamma(a2, b) {
|
|
33704
|
-
var d = b - a2;
|
|
33705
|
-
return d ? linear(a2, d) : constant$1(isNaN(a2) ? b : a2);
|
|
33706
|
-
}
|
|
33707
|
-
const interpolateRgb = function rgbGamma2(y) {
|
|
33708
|
-
var color2 = gamma(y);
|
|
33709
|
-
function rgb2(start, end) {
|
|
33710
|
-
var r2 = color2((start = rgb$1(start)).r, (end = rgb$1(end)).r), g2 = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma(start.opacity, end.opacity);
|
|
33711
|
-
return function(t) {
|
|
33712
|
-
start.r = r2(t);
|
|
33713
|
-
start.g = g2(t);
|
|
33714
|
-
start.b = b(t);
|
|
33715
|
-
start.opacity = opacity(t);
|
|
33716
|
-
return start + "";
|
|
33717
|
-
};
|
|
33718
|
-
}
|
|
33719
|
-
rgb2.gamma = rgbGamma2;
|
|
33720
|
-
return rgb2;
|
|
33721
|
-
}(1);
|
|
33722
|
-
function numberArray(a2, b) {
|
|
33723
|
-
if (!b) b = [];
|
|
33724
|
-
var n2 = a2 ? Math.min(b.length, a2.length) : 0, c = b.slice(), i2;
|
|
33725
|
-
return function(t) {
|
|
33726
|
-
for (i2 = 0; i2 < n2; ++i2) c[i2] = a2[i2] * (1 - t) + b[i2] * t;
|
|
33727
|
-
return c;
|
|
33728
|
-
};
|
|
33729
|
-
}
|
|
33730
|
-
function isNumberArray(x) {
|
|
33731
|
-
return ArrayBuffer.isView(x) && !(x instanceof DataView);
|
|
33732
|
-
}
|
|
33733
|
-
function genericArray(a2, b) {
|
|
33734
|
-
var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x = new Array(na), c = new Array(nb), i2;
|
|
33735
|
-
for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate$2(a2[i2], b[i2]);
|
|
33736
|
-
for (; i2 < nb; ++i2) c[i2] = b[i2];
|
|
33737
|
-
return function(t) {
|
|
33738
|
-
for (i2 = 0; i2 < na; ++i2) c[i2] = x[i2](t);
|
|
33739
|
-
return c;
|
|
33740
|
-
};
|
|
33741
|
-
}
|
|
33742
|
-
function date(a2, b) {
|
|
33743
|
-
var d = /* @__PURE__ */ new Date();
|
|
33744
|
-
return a2 = +a2, b = +b, function(t) {
|
|
33745
|
-
return d.setTime(a2 * (1 - t) + b * t), d;
|
|
33746
|
-
};
|
|
33747
|
-
}
|
|
33748
|
-
function number(a2, b) {
|
|
33749
|
-
return a2 = +a2, b = +b, function(t) {
|
|
33750
|
-
return a2 * (1 - t) + b * t;
|
|
33751
|
-
};
|
|
33752
|
-
}
|
|
33753
|
-
function object$1(a2, b) {
|
|
33754
|
-
var i2 = {}, c = {}, k;
|
|
33755
|
-
if (a2 === null || typeof a2 !== "object") a2 = {};
|
|
33756
|
-
if (b === null || typeof b !== "object") b = {};
|
|
33757
|
-
for (k in b) {
|
|
33758
|
-
if (k in a2) {
|
|
33759
|
-
i2[k] = interpolate$2(a2[k], b[k]);
|
|
33760
|
-
} else {
|
|
33761
|
-
c[k] = b[k];
|
|
33762
|
-
}
|
|
33763
|
-
}
|
|
33764
|
-
return function(t) {
|
|
33765
|
-
for (k in i2) c[k] = i2[k](t);
|
|
33766
|
-
return c;
|
|
33767
|
-
};
|
|
33768
|
-
}
|
|
33769
|
-
var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
|
|
33770
|
-
function zero$2(b) {
|
|
33771
|
-
return function() {
|
|
33772
|
-
return b;
|
|
33773
|
-
};
|
|
33774
|
-
}
|
|
33775
|
-
function one(b) {
|
|
33776
|
-
return function(t) {
|
|
33777
|
-
return b(t) + "";
|
|
33778
|
-
};
|
|
33779
|
-
}
|
|
33780
|
-
function string(a2, b) {
|
|
33781
|
-
var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s2 = [], q = [];
|
|
33782
|
-
a2 = a2 + "", b = b + "";
|
|
33783
|
-
while ((am = reA.exec(a2)) && (bm = reB.exec(b))) {
|
|
33784
|
-
if ((bs = bm.index) > bi) {
|
|
33785
|
-
bs = b.slice(bi, bs);
|
|
33786
|
-
if (s2[i2]) s2[i2] += bs;
|
|
33787
|
-
else s2[++i2] = bs;
|
|
33788
|
-
}
|
|
33789
|
-
if ((am = am[0]) === (bm = bm[0])) {
|
|
33790
|
-
if (s2[i2]) s2[i2] += bm;
|
|
33791
|
-
else s2[++i2] = bm;
|
|
33792
|
-
} else {
|
|
33793
|
-
s2[++i2] = null;
|
|
33794
|
-
q.push({ i: i2, x: number(am, bm) });
|
|
33795
|
-
}
|
|
33796
|
-
bi = reB.lastIndex;
|
|
33797
|
-
}
|
|
33798
|
-
if (bi < b.length) {
|
|
33799
|
-
bs = b.slice(bi);
|
|
33800
|
-
if (s2[i2]) s2[i2] += bs;
|
|
33801
|
-
else s2[++i2] = bs;
|
|
33802
|
-
}
|
|
33803
|
-
return s2.length < 2 ? q[0] ? one(q[0].x) : zero$2(b) : (b = q.length, function(t) {
|
|
33804
|
-
for (var i22 = 0, o2; i22 < b; ++i22) s2[(o2 = q[i22]).i] = o2.x(t);
|
|
33805
|
-
return s2.join("");
|
|
33806
|
-
});
|
|
33807
|
-
}
|
|
33808
|
-
function interpolate$2(a2, b) {
|
|
33809
|
-
var t = typeof b, c;
|
|
33810
|
-
return b == null || t === "boolean" ? constant$1(b) : (t === "number" ? number : t === "string" ? (c = color$1(b)) ? (b = c, interpolateRgb) : string : b instanceof color$1 ? interpolateRgb : b instanceof Date ? date : isNumberArray(b) ? numberArray : Array.isArray(b) ? genericArray : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object$1 : number)(a2, b);
|
|
33811
|
-
}
|
|
33812
|
-
function piecewise(interpolate2, values2) {
|
|
33813
|
-
if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$2;
|
|
33814
|
-
var i2 = 0, n2 = values2.length - 1, v = values2[0], I2 = new Array(n2 < 0 ? 0 : n2);
|
|
33815
|
-
while (i2 < n2) I2[i2] = interpolate2(v, v = values2[++i2]);
|
|
33816
|
-
return function(t) {
|
|
33817
|
-
var i22 = Math.max(0, Math.min(n2 - 1, Math.floor(t *= n2)));
|
|
33818
|
-
return I2[i22](t - i22);
|
|
33819
|
-
};
|
|
33820
|
-
}
|
|
33821
|
-
function quantize(interpolator, n2) {
|
|
33822
|
-
var samples = new Array(n2);
|
|
33823
|
-
for (var i2 = 0; i2 < n2; ++i2) samples[i2] = interpolator(i2 / (n2 - 1));
|
|
33824
|
-
return samples;
|
|
33825
|
-
}
|
|
33826
|
-
function define(constructor, factory, prototype) {
|
|
33827
|
-
constructor.prototype = factory.prototype = prototype;
|
|
33828
|
-
prototype.constructor = constructor;
|
|
33829
|
-
}
|
|
33830
|
-
function extend$1(parent, definition) {
|
|
33831
|
-
var prototype = Object.create(parent.prototype);
|
|
33832
|
-
for (var key in definition) prototype[key] = definition[key];
|
|
33833
|
-
return prototype;
|
|
33834
|
-
}
|
|
33835
|
-
function Color() {
|
|
33836
|
-
}
|
|
33837
|
-
var darker = 0.7;
|
|
33838
|
-
var brighter = 1 / darker;
|
|
33839
|
-
var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
|
|
33840
|
-
var named = {
|
|
33841
|
-
aliceblue: 15792383,
|
|
33842
|
-
antiquewhite: 16444375,
|
|
33843
|
-
aqua: 65535,
|
|
33844
|
-
aquamarine: 8388564,
|
|
33845
|
-
azure: 15794175,
|
|
33846
|
-
beige: 16119260,
|
|
33847
|
-
bisque: 16770244,
|
|
33848
|
-
black: 0,
|
|
33849
|
-
blanchedalmond: 16772045,
|
|
33850
|
-
blue: 255,
|
|
33851
|
-
blueviolet: 9055202,
|
|
33852
|
-
brown: 10824234,
|
|
33853
|
-
burlywood: 14596231,
|
|
33854
|
-
cadetblue: 6266528,
|
|
33855
|
-
chartreuse: 8388352,
|
|
33856
|
-
chocolate: 13789470,
|
|
33857
|
-
coral: 16744272,
|
|
33858
|
-
cornflowerblue: 6591981,
|
|
33859
|
-
cornsilk: 16775388,
|
|
33860
|
-
crimson: 14423100,
|
|
33861
|
-
cyan: 65535,
|
|
33862
|
-
darkblue: 139,
|
|
33863
|
-
darkcyan: 35723,
|
|
33864
|
-
darkgoldenrod: 12092939,
|
|
33865
|
-
darkgray: 11119017,
|
|
33866
|
-
darkgreen: 25600,
|
|
33867
|
-
darkgrey: 11119017,
|
|
33868
|
-
darkkhaki: 12433259,
|
|
33869
|
-
darkmagenta: 9109643,
|
|
33870
|
-
darkolivegreen: 5597999,
|
|
33871
|
-
darkorange: 16747520,
|
|
33872
|
-
darkorchid: 10040012,
|
|
33873
|
-
darkred: 9109504,
|
|
33874
|
-
darksalmon: 15308410,
|
|
33875
|
-
darkseagreen: 9419919,
|
|
33876
|
-
darkslateblue: 4734347,
|
|
33877
|
-
darkslategray: 3100495,
|
|
33878
|
-
darkslategrey: 3100495,
|
|
33879
|
-
darkturquoise: 52945,
|
|
33880
|
-
darkviolet: 9699539,
|
|
33881
|
-
deeppink: 16716947,
|
|
33882
|
-
deepskyblue: 49151,
|
|
33883
|
-
dimgray: 6908265,
|
|
33884
|
-
dimgrey: 6908265,
|
|
33885
|
-
dodgerblue: 2003199,
|
|
33886
|
-
firebrick: 11674146,
|
|
33887
|
-
floralwhite: 16775920,
|
|
33888
|
-
forestgreen: 2263842,
|
|
33889
|
-
fuchsia: 16711935,
|
|
33890
|
-
gainsboro: 14474460,
|
|
33891
|
-
ghostwhite: 16316671,
|
|
33892
|
-
gold: 16766720,
|
|
33893
|
-
goldenrod: 14329120,
|
|
33894
|
-
gray: 8421504,
|
|
33895
|
-
green: 32768,
|
|
33896
|
-
greenyellow: 11403055,
|
|
33897
|
-
grey: 8421504,
|
|
33898
|
-
honeydew: 15794160,
|
|
33899
|
-
hotpink: 16738740,
|
|
33900
|
-
indianred: 13458524,
|
|
33901
|
-
indigo: 4915330,
|
|
33902
|
-
ivory: 16777200,
|
|
33903
|
-
khaki: 15787660,
|
|
33904
|
-
lavender: 15132410,
|
|
33905
|
-
lavenderblush: 16773365,
|
|
33906
|
-
lawngreen: 8190976,
|
|
33907
|
-
lemonchiffon: 16775885,
|
|
33908
|
-
lightblue: 11393254,
|
|
33909
|
-
lightcoral: 15761536,
|
|
33910
|
-
lightcyan: 14745599,
|
|
33911
|
-
lightgoldenrodyellow: 16448210,
|
|
33912
|
-
lightgray: 13882323,
|
|
33913
|
-
lightgreen: 9498256,
|
|
33914
|
-
lightgrey: 13882323,
|
|
33915
|
-
lightpink: 16758465,
|
|
33916
|
-
lightsalmon: 16752762,
|
|
33917
|
-
lightseagreen: 2142890,
|
|
33918
|
-
lightskyblue: 8900346,
|
|
33919
|
-
lightslategray: 7833753,
|
|
33920
|
-
lightslategrey: 7833753,
|
|
33921
|
-
lightsteelblue: 11584734,
|
|
33922
|
-
lightyellow: 16777184,
|
|
33923
|
-
lime: 65280,
|
|
33924
|
-
limegreen: 3329330,
|
|
33925
|
-
linen: 16445670,
|
|
33926
|
-
magenta: 16711935,
|
|
33927
|
-
maroon: 8388608,
|
|
33928
|
-
mediumaquamarine: 6737322,
|
|
33929
|
-
mediumblue: 205,
|
|
33930
|
-
mediumorchid: 12211667,
|
|
33931
|
-
mediumpurple: 9662683,
|
|
33932
|
-
mediumseagreen: 3978097,
|
|
33933
|
-
mediumslateblue: 8087790,
|
|
33934
|
-
mediumspringgreen: 64154,
|
|
33935
|
-
mediumturquoise: 4772300,
|
|
33936
|
-
mediumvioletred: 13047173,
|
|
33937
|
-
midnightblue: 1644912,
|
|
33938
|
-
mintcream: 16121850,
|
|
33939
|
-
mistyrose: 16770273,
|
|
33940
|
-
moccasin: 16770229,
|
|
33941
|
-
navajowhite: 16768685,
|
|
33942
|
-
navy: 128,
|
|
33943
|
-
oldlace: 16643558,
|
|
33944
|
-
olive: 8421376,
|
|
33945
|
-
olivedrab: 7048739,
|
|
33946
|
-
orange: 16753920,
|
|
33947
|
-
orangered: 16729344,
|
|
33948
|
-
orchid: 14315734,
|
|
33949
|
-
palegoldenrod: 15657130,
|
|
33950
|
-
palegreen: 10025880,
|
|
33951
|
-
paleturquoise: 11529966,
|
|
33952
|
-
palevioletred: 14381203,
|
|
33953
|
-
papayawhip: 16773077,
|
|
33954
|
-
peachpuff: 16767673,
|
|
33955
|
-
peru: 13468991,
|
|
33956
|
-
pink: 16761035,
|
|
33957
|
-
plum: 14524637,
|
|
33958
|
-
powderblue: 11591910,
|
|
33959
|
-
purple: 8388736,
|
|
33960
|
-
rebeccapurple: 6697881,
|
|
33961
|
-
red: 16711680,
|
|
33962
|
-
rosybrown: 12357519,
|
|
33963
|
-
royalblue: 4286945,
|
|
33964
|
-
saddlebrown: 9127187,
|
|
33965
|
-
salmon: 16416882,
|
|
33966
|
-
sandybrown: 16032864,
|
|
33967
|
-
seagreen: 3050327,
|
|
33968
|
-
seashell: 16774638,
|
|
33969
|
-
sienna: 10506797,
|
|
33970
|
-
silver: 12632256,
|
|
33971
|
-
skyblue: 8900331,
|
|
33972
|
-
slateblue: 6970061,
|
|
33973
|
-
slategray: 7372944,
|
|
33974
|
-
slategrey: 7372944,
|
|
33975
|
-
snow: 16775930,
|
|
33976
|
-
springgreen: 65407,
|
|
33977
|
-
steelblue: 4620980,
|
|
33978
|
-
tan: 13808780,
|
|
33979
|
-
teal: 32896,
|
|
33980
|
-
thistle: 14204888,
|
|
33981
|
-
tomato: 16737095,
|
|
33982
|
-
turquoise: 4251856,
|
|
33983
|
-
violet: 15631086,
|
|
33984
|
-
wheat: 16113331,
|
|
33985
|
-
white: 16777215,
|
|
33986
|
-
whitesmoke: 16119285,
|
|
33987
|
-
yellow: 16776960,
|
|
33988
|
-
yellowgreen: 10145074
|
|
33989
|
-
};
|
|
33990
|
-
define(Color, color, {
|
|
33991
|
-
copy: function(channels2) {
|
|
33992
|
-
return Object.assign(new this.constructor(), this, channels2);
|
|
33993
|
-
},
|
|
33994
|
-
displayable: function() {
|
|
33995
|
-
return this.rgb().displayable();
|
|
33996
|
-
},
|
|
33997
|
-
hex: color_formatHex,
|
|
33998
|
-
// Deprecated! Use color.formatHex.
|
|
33999
|
-
formatHex: color_formatHex,
|
|
34000
|
-
formatHsl: color_formatHsl,
|
|
34001
|
-
formatRgb: color_formatRgb,
|
|
34002
|
-
toString: color_formatRgb
|
|
34003
|
-
});
|
|
34004
|
-
function color_formatHex() {
|
|
34005
|
-
return this.rgb().formatHex();
|
|
34006
|
-
}
|
|
34007
|
-
function color_formatHsl() {
|
|
34008
|
-
return hslConvert(this).formatHsl();
|
|
34009
|
-
}
|
|
34010
|
-
function color_formatRgb() {
|
|
34011
|
-
return this.rgb().formatRgb();
|
|
34012
|
-
}
|
|
34013
|
-
function color(format2) {
|
|
34014
|
-
var m, l2;
|
|
34015
|
-
format2 = (format2 + "").trim().toLowerCase();
|
|
34016
|
-
return (m = reHex.exec(format2)) ? (l2 = m[1].length, m = parseInt(m[1], 16), l2 === 6 ? rgbn(m) : l2 === 3 ? new Rgb(m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, (m & 15) << 4 | m & 15, 1) : l2 === 8 ? rgba(m >> 24 & 255, m >> 16 & 255, m >> 8 & 255, (m & 255) / 255) : l2 === 4 ? rgba(m >> 12 & 15 | m >> 8 & 240, m >> 8 & 15 | m >> 4 & 240, m >> 4 & 15 | m & 240, ((m & 15) << 4 | m & 15) / 255) : null) : (m = reRgbInteger.exec(format2)) ? new Rgb(m[1], m[2], m[3], 1) : (m = reRgbPercent.exec(format2)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) : (m = reRgbaInteger.exec(format2)) ? rgba(m[1], m[2], m[3], m[4]) : (m = reRgbaPercent.exec(format2)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) : (m = reHslPercent.exec(format2)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) : (m = reHslaPercent.exec(format2)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
|
|
34017
|
-
}
|
|
34018
|
-
function rgbn(n2) {
|
|
34019
|
-
return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
|
|
34020
|
-
}
|
|
34021
|
-
function rgba(r2, g2, b, a2) {
|
|
34022
|
-
if (a2 <= 0) r2 = g2 = b = NaN;
|
|
34023
|
-
return new Rgb(r2, g2, b, a2);
|
|
34024
|
-
}
|
|
34025
|
-
function rgbConvert(o2) {
|
|
34026
|
-
if (!(o2 instanceof Color)) o2 = color(o2);
|
|
34027
|
-
if (!o2) return new Rgb();
|
|
34028
|
-
o2 = o2.rgb();
|
|
34029
|
-
return new Rgb(o2.r, o2.g, o2.b, o2.opacity);
|
|
34030
|
-
}
|
|
34031
|
-
function rgb(r2, g2, b, opacity) {
|
|
34032
|
-
return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g2, b, opacity == null ? 1 : opacity);
|
|
34033
|
-
}
|
|
34034
|
-
function Rgb(r2, g2, b, opacity) {
|
|
34035
|
-
this.r = +r2;
|
|
34036
|
-
this.g = +g2;
|
|
34037
|
-
this.b = +b;
|
|
34038
|
-
this.opacity = +opacity;
|
|
34039
|
-
}
|
|
34040
|
-
define(Rgb, rgb, extend$1(Color, {
|
|
34041
|
-
brighter: function(k) {
|
|
34042
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
34043
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
34044
|
-
},
|
|
34045
|
-
darker: function(k) {
|
|
34046
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
34047
|
-
return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
|
|
34048
|
-
},
|
|
34049
|
-
rgb: function() {
|
|
34050
|
-
return this;
|
|
34051
|
-
},
|
|
34052
|
-
displayable: function() {
|
|
34053
|
-
return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
|
|
34054
|
-
},
|
|
34055
|
-
hex: rgb_formatHex,
|
|
34056
|
-
// Deprecated! Use color.formatHex.
|
|
34057
|
-
formatHex: rgb_formatHex,
|
|
34058
|
-
formatRgb: rgb_formatRgb,
|
|
34059
|
-
toString: rgb_formatRgb
|
|
34060
|
-
}));
|
|
34061
|
-
function rgb_formatHex() {
|
|
34062
|
-
return "#" + hex(this.r) + hex(this.g) + hex(this.b);
|
|
34063
|
-
}
|
|
34064
|
-
function rgb_formatRgb() {
|
|
34065
|
-
var a2 = this.opacity;
|
|
34066
|
-
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
34067
|
-
return (a2 === 1 ? "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)) + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
34068
|
-
}
|
|
34069
|
-
function hex(value) {
|
|
34070
|
-
value = Math.max(0, Math.min(255, Math.round(value) || 0));
|
|
34071
|
-
return (value < 16 ? "0" : "") + value.toString(16);
|
|
34072
|
-
}
|
|
34073
|
-
function hsla(h, s2, l2, a2) {
|
|
34074
|
-
if (a2 <= 0) h = s2 = l2 = NaN;
|
|
34075
|
-
else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
|
|
34076
|
-
else if (s2 <= 0) h = NaN;
|
|
34077
|
-
return new Hsl(h, s2, l2, a2);
|
|
34078
|
-
}
|
|
34079
|
-
function hslConvert(o2) {
|
|
34080
|
-
if (o2 instanceof Hsl) return new Hsl(o2.h, o2.s, o2.l, o2.opacity);
|
|
34081
|
-
if (!(o2 instanceof Color)) o2 = color(o2);
|
|
34082
|
-
if (!o2) return new Hsl();
|
|
34083
|
-
if (o2 instanceof Hsl) return o2;
|
|
34084
|
-
o2 = o2.rgb();
|
|
34085
|
-
var r2 = o2.r / 255, g2 = o2.g / 255, b = o2.b / 255, min = Math.min(r2, g2, b), max2 = Math.max(r2, g2, b), h = NaN, s2 = max2 - min, l2 = (max2 + min) / 2;
|
|
34086
|
-
if (s2) {
|
|
34087
|
-
if (r2 === max2) h = (g2 - b) / s2 + (g2 < b) * 6;
|
|
34088
|
-
else if (g2 === max2) h = (b - r2) / s2 + 2;
|
|
34089
|
-
else h = (r2 - g2) / s2 + 4;
|
|
34090
|
-
s2 /= l2 < 0.5 ? max2 + min : 2 - max2 - min;
|
|
34091
|
-
h *= 60;
|
|
34092
|
-
} else {
|
|
34093
|
-
s2 = l2 > 0 && l2 < 1 ? 0 : h;
|
|
34094
|
-
}
|
|
34095
|
-
return new Hsl(h, s2, l2, o2.opacity);
|
|
34096
|
-
}
|
|
34097
|
-
function hsl(h, s2, l2, opacity) {
|
|
34098
|
-
return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s2, l2, opacity == null ? 1 : opacity);
|
|
34099
|
-
}
|
|
34100
|
-
function Hsl(h, s2, l2, opacity) {
|
|
34101
|
-
this.h = +h;
|
|
34102
|
-
this.s = +s2;
|
|
34103
|
-
this.l = +l2;
|
|
34104
|
-
this.opacity = +opacity;
|
|
34105
|
-
}
|
|
34106
|
-
define(Hsl, hsl, extend$1(Color, {
|
|
34107
|
-
brighter: function(k) {
|
|
34108
|
-
k = k == null ? brighter : Math.pow(brighter, k);
|
|
34109
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
34110
|
-
},
|
|
34111
|
-
darker: function(k) {
|
|
34112
|
-
k = k == null ? darker : Math.pow(darker, k);
|
|
34113
|
-
return new Hsl(this.h, this.s, this.l * k, this.opacity);
|
|
34114
|
-
},
|
|
34115
|
-
rgb: function() {
|
|
34116
|
-
var h = this.h % 360 + (this.h < 0) * 360, s2 = isNaN(h) || isNaN(this.s) ? 0 : this.s, l2 = this.l, m2 = l2 + (l2 < 0.5 ? l2 : 1 - l2) * s2, m1 = 2 * l2 - m2;
|
|
34117
|
-
return new Rgb(
|
|
34118
|
-
hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
|
|
34119
|
-
hsl2rgb(h, m1, m2),
|
|
34120
|
-
hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
|
|
34121
|
-
this.opacity
|
|
34122
|
-
);
|
|
34123
|
-
},
|
|
34124
|
-
displayable: function() {
|
|
34125
|
-
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
|
|
34126
|
-
},
|
|
34127
|
-
formatHsl: function() {
|
|
34128
|
-
var a2 = this.opacity;
|
|
34129
|
-
a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
|
|
34130
|
-
return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
|
|
34131
|
-
}
|
|
34132
|
-
}));
|
|
34133
|
-
function hsl2rgb(h, m1, m2) {
|
|
34134
|
-
return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
|
|
34135
|
-
}
|
|
34136
33396
|
var colorScale;
|
|
34137
33397
|
var hasRequiredColorScale;
|
|
34138
33398
|
function requireColorScale() {
|
|
@@ -34329,14 +33589,14 @@ function Legend(props) {
|
|
|
34329
33589
|
xMin + (xMax - xMin) * rMin,
|
|
34330
33590
|
xMax - (xMax - xMin) * (1 - rMax)
|
|
34331
33591
|
];
|
|
34332
|
-
const x = linear
|
|
33592
|
+
const x = linear().domain(scaledDataExtent).range([0.5, width2 - 0.5]);
|
|
34333
33593
|
const axisTicks = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`).style("font-size", "10px").call(axisBottom(x).tickValues(scaledDataExtent));
|
|
34334
33594
|
axisTicks.selectAll("line,path").style("stroke", foregroundColor);
|
|
34335
33595
|
axisTicks.selectAll("text").style("fill", foregroundColor);
|
|
34336
33596
|
axisTicks.selectAll("text").attr("text-anchor", (d, i2) => i2 === 0 ? "start" : "end");
|
|
34337
33597
|
} else if (contoursVisible) {
|
|
34338
33598
|
const tSize = 12;
|
|
34339
|
-
const xPercentile = linear
|
|
33599
|
+
const xPercentile = linear().domain([0, 1]).range([tSize / 2, width2 - tSize / 2 - 2]);
|
|
34340
33600
|
const axisTicks = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight + 15})`).style("font-size", "9px").call(axisBottom(xPercentile).tickValues(contourPercentiles).tickFormat(format(".0%")).tickSizeOuter(0));
|
|
34341
33601
|
axisTicks.selectAll("line,path").style("stroke", foregroundColor);
|
|
34342
33602
|
axisTicks.selectAll("text").style("fill", foregroundColor);
|
|
@@ -138462,22 +137722,22 @@ function addDecoder(cases, importFn) {
|
|
|
138462
137722
|
}
|
|
138463
137723
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
138464
137724
|
}
|
|
138465
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138466
|
-
addDecoder(5, () => import("./lzw-
|
|
137725
|
+
addDecoder([void 0, 1], () => import("./raw-U8M4JJZ-.js").then((m) => m.default));
|
|
137726
|
+
addDecoder(5, () => import("./lzw-CiiV86Ur.js").then((m) => m.default));
|
|
138467
137727
|
addDecoder(6, () => {
|
|
138468
137728
|
throw new Error("old style JPEG compression is not supported.");
|
|
138469
137729
|
});
|
|
138470
|
-
addDecoder(7, () => import("./jpeg-
|
|
138471
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138472
|
-
addDecoder(32773, () => import("./packbits-
|
|
137730
|
+
addDecoder(7, () => import("./jpeg-Cm1shyEL.js").then((m) => m.default));
|
|
137731
|
+
addDecoder([8, 32946], () => import("./deflate-Ba7ZjAWb.js").then((m) => m.default));
|
|
137732
|
+
addDecoder(32773, () => import("./packbits-C2jGKqua.js").then((m) => m.default));
|
|
138473
137733
|
addDecoder(
|
|
138474
137734
|
34887,
|
|
138475
|
-
() => import("./lerc-
|
|
137735
|
+
() => import("./lerc-Dx1Y-w9t.js").then(async (m) => {
|
|
138476
137736
|
await m.zstd.init();
|
|
138477
137737
|
return m;
|
|
138478
137738
|
}).then((m) => m.default)
|
|
138479
137739
|
);
|
|
138480
|
-
addDecoder(50001, () => import("./webimage-
|
|
137740
|
+
addDecoder(50001, () => import("./webimage-Ct76zRHV.js").then((m) => m.default));
|
|
138481
137741
|
function decodeRowAcc(row, stride) {
|
|
138482
137742
|
let length2 = row.length - stride;
|
|
138483
137743
|
let offset2 = 0;
|