@vitessce/scatterplot-embedding 3.6.4 → 3.6.5

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.
@@ -25,7 +25,7 @@ function _mergeNamespaces(n2, m2) {
25
25
  }
26
26
  return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
27
27
  }
28
- function number$4(x) {
28
+ function number$3(x) {
29
29
  return x === null ? NaN : +x;
30
30
  }
31
31
  function extent$1(values2, valueof) {
@@ -56,7 +56,7 @@ function max(values2, valueof) {
56
56
  }
57
57
  return max2;
58
58
  }
59
- function quantileSorted(values2, p, valueof = number$4) {
59
+ function quantileSorted(values2, p, valueof = number$3) {
60
60
  if (!(n2 = values2.length)) return;
61
61
  if ((p = +p) <= 0 || n2 < 2) return +valueof(values2[0], 0, values2);
62
62
  if (p >= 1) return +valueof(values2[n2 - 1], n2 - 1, values2);
@@ -11206,12 +11206,17 @@ anndataZarrSchema.extend({
11206
11206
  z.object({
11207
11207
  // TODO: should `image` be a special schema
11208
11208
  // to allow specifying fileUid (like for embeddingType)?
11209
- // TODO: allow multiple images
11209
+ // TODO: allow multiple images?
11210
11210
  image: imageSpatialdataSchema,
11211
11211
  // TODO: should this be a special schema
11212
11212
  // to allow specifying fileUid (like for embeddingType)?
11213
- // TODO: allow multiple labels
11213
+ // TODO: allow multiple labels?
11214
11214
  labels: obsSegmentationsSpatialdataSchema,
11215
+ // TODO: allow multiple shapes?
11216
+ // TODO: unify labels and shapes to obsSegmentations,
11217
+ // then distinguish in expand function based on
11218
+ // "labels/*" vs. "shapes/*" in path?
11219
+ shapes: obsSegmentationsSpatialdataSchema,
11215
11220
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
11216
11221
  obsSpots: obsSpotsSpatialdataSchema,
11217
11222
  // TODO: obsPoints
@@ -73850,7 +73855,7 @@ function stepInterpolate(target, path, value) {
73850
73855
  target[path][i2] = value[i2];
73851
73856
  }
73852
73857
  }
73853
- function interpolate$3(time, _ref2, target, path) {
73858
+ function interpolate$2(time, _ref2, target, path) {
73854
73859
  let {
73855
73860
  input,
73856
73861
  interpolation,
@@ -73931,7 +73936,7 @@ class GLTFAnimation {
73931
73936
  target,
73932
73937
  path
73933
73938
  } = _ref3;
73934
- interpolate$3(time, sampler, target, path);
73939
+ interpolate$2(time, sampler, target, path);
73935
73940
  applyTranslationRotationScale(target, target._node);
73936
73941
  });
73937
73942
  }
@@ -84913,7 +84918,7 @@ class RBush {
84913
84918
  const insertPath = [];
84914
84919
  const node2 = this._chooseSubtree(bbox2, this.data, level, insertPath);
84915
84920
  node2.children.push(item);
84916
- extend$3(node2, bbox2);
84921
+ extend$1(node2, bbox2);
84917
84922
  while (level >= 0) {
84918
84923
  if (insertPath[level].children.length > this._maxEntries) {
84919
84924
  this._split(insertPath, level);
@@ -84982,19 +84987,19 @@ class RBush {
84982
84987
  let margin2 = bboxMargin(leftBBox) + bboxMargin(rightBBox);
84983
84988
  for (let i2 = m2; i2 < M - m2; i2++) {
84984
84989
  const child = node2.children[i2];
84985
- extend$3(leftBBox, node2.leaf ? toBBox(child) : child);
84990
+ extend$1(leftBBox, node2.leaf ? toBBox(child) : child);
84986
84991
  margin2 += bboxMargin(leftBBox);
84987
84992
  }
84988
84993
  for (let i2 = M - m2 - 1; i2 >= m2; i2--) {
84989
84994
  const child = node2.children[i2];
84990
- extend$3(rightBBox, node2.leaf ? toBBox(child) : child);
84995
+ extend$1(rightBBox, node2.leaf ? toBBox(child) : child);
84991
84996
  margin2 += bboxMargin(rightBBox);
84992
84997
  }
84993
84998
  return margin2;
84994
84999
  }
84995
85000
  _adjustParentBBoxes(bbox2, path, level) {
84996
85001
  for (let i2 = level; i2 >= 0; i2--) {
84997
- extend$3(path[i2], bbox2);
85002
+ extend$1(path[i2], bbox2);
84998
85003
  }
84999
85004
  }
85000
85005
  _condense(path) {
@@ -85026,11 +85031,11 @@ function distBBox(node2, k, p, toBBox, destNode) {
85026
85031
  destNode.maxY = -Infinity;
85027
85032
  for (let i2 = k; i2 < p; i2++) {
85028
85033
  const child = node2.children[i2];
85029
- extend$3(destNode, node2.leaf ? toBBox(child) : child);
85034
+ extend$1(destNode, node2.leaf ? toBBox(child) : child);
85030
85035
  }
85031
85036
  return destNode;
85032
85037
  }
85033
- function extend$3(a2, b) {
85038
+ function extend$1(a2, b) {
85034
85039
  a2.minX = Math.min(a2.minX, b.minX);
85035
85040
  a2.minY = Math.min(a2.minY, b.minY);
85036
85041
  a2.maxX = Math.max(a2.maxX, b.maxX);
@@ -97627,7 +97632,7 @@ function centroid(object2) {
97627
97632
  }
97628
97633
  return [atan2(y, x) * degrees, asin(z2 / sqrt(m2)) * degrees];
97629
97634
  }
97630
- function constant$4(x) {
97635
+ function constant$3(x) {
97631
97636
  return function() {
97632
97637
  return x;
97633
97638
  };
@@ -97711,7 +97716,7 @@ function circleRadius(cosRadius, point2) {
97711
97716
  return ((-point2[2] < 0 ? -radius : radius) + tau - epsilon$1) % tau;
97712
97717
  }
97713
97718
  function circle$1() {
97714
- var center2 = constant$4([0, 0]), radius = constant$4(90), precision2 = constant$4(6), ring, rotate2, stream = { point: point2 };
97719
+ var center2 = constant$3([0, 0]), radius = constant$3(90), precision2 = constant$3(6), ring, rotate2, stream = { point: point2 };
97715
97720
  function point2(x, y) {
97716
97721
  ring.push(x = rotate2(x, y));
97717
97722
  x[0] *= degrees, x[1] *= degrees;
@@ -97726,13 +97731,13 @@ function circle$1() {
97726
97731
  return c2;
97727
97732
  }
97728
97733
  circle2.center = function(_) {
97729
- return arguments.length ? (center2 = typeof _ === "function" ? _ : constant$4([+_[0], +_[1]]), circle2) : center2;
97734
+ return arguments.length ? (center2 = typeof _ === "function" ? _ : constant$3([+_[0], +_[1]]), circle2) : center2;
97730
97735
  };
97731
97736
  circle2.radius = function(_) {
97732
- return arguments.length ? (radius = typeof _ === "function" ? _ : constant$4(+_), circle2) : radius;
97737
+ return arguments.length ? (radius = typeof _ === "function" ? _ : constant$3(+_), circle2) : radius;
97733
97738
  };
97734
97739
  circle2.precision = function(_) {
97735
- return arguments.length ? (precision2 = typeof _ === "function" ? _ : constant$4(+_), circle2) : precision2;
97740
+ return arguments.length ? (precision2 = typeof _ === "function" ? _ : constant$3(+_), circle2) : precision2;
97736
97741
  };
97737
97742
  return circle2;
97738
97743
  }
@@ -98122,11 +98127,11 @@ function length$2(object2) {
98122
98127
  geoStream(object2, lengthStream$1);
98123
98128
  return +lengthSum$1;
98124
98129
  }
98125
- var coordinates = [null, null], object$2 = { type: "LineString", coordinates };
98130
+ var coordinates = [null, null], object$1 = { type: "LineString", coordinates };
98126
98131
  function distance(a2, b) {
98127
98132
  coordinates[0] = a2;
98128
98133
  coordinates[1] = b;
98129
- return length$2(object$2);
98134
+ return length$2(object$1);
98130
98135
  }
98131
98136
  var containsObjectType = {
98132
98137
  Feature: function(object2, point2) {
@@ -98287,7 +98292,7 @@ function graticule() {
98287
98292
  function graticule10() {
98288
98293
  return graticule()();
98289
98294
  }
98290
- function interpolate$2(a2, b) {
98295
+ function interpolate$1(a2, b) {
98291
98296
  var x02 = a2[0] * radians, y02 = a2[1] * radians, x12 = b[0] * radians, y12 = b[1] * radians, cy0 = cos(y02), sy0 = sin(y02), cy1 = cos(y12), sy1 = sin(y12), kx0 = cy0 * cos(x02), ky0 = cy0 * sin(x02), kx1 = cy1 * cos(x12), ky1 = cy1 * sin(x12), d = 2 * asin(sqrt(haversin(y12 - y02) + cy0 * cy1 * haversin(x12 - x02))), k = sin(d);
98292
98297
  var interpolate2 = d ? function(t) {
98293
98298
  var B2 = sin(t *= d) / k, A2 = sin(d - t) / k, x = A2 * kx0 + B2 * kx1, y = A2 * ky0 + B2 * ky1, z2 = A2 * sy0 + B2 * sy1;
@@ -99404,7 +99409,7 @@ const d3Geo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
99404
99409
  geoGraticule: graticule,
99405
99410
  geoGraticule10: graticule10,
99406
99411
  geoIdentity: identity$3,
99407
- geoInterpolate: interpolate$2,
99412
+ geoInterpolate: interpolate$1,
99408
99413
  geoLength: length$2,
99409
99414
  geoMercator: mercator,
99410
99415
  geoMercatorRaw: mercatorRaw,
@@ -123245,22 +123250,22 @@ function addDecoder(cases, importFn) {
123245
123250
  }
123246
123251
  cases.forEach((c2) => registry$1.set(c2, importFn));
123247
123252
  }
123248
- addDecoder([void 0, 1], () => import("./raw-WRJq_qgI.js").then((m2) => m2.default));
123249
- addDecoder(5, () => import("./lzw-_mWQ1Oer.js").then((m2) => m2.default));
123253
+ addDecoder([void 0, 1], () => import("./raw-D_I_nvlb.js").then((m2) => m2.default));
123254
+ addDecoder(5, () => import("./lzw-QEt1oPJg.js").then((m2) => m2.default));
123250
123255
  addDecoder(6, () => {
123251
123256
  throw new Error("old style JPEG compression is not supported.");
123252
123257
  });
123253
- addDecoder(7, () => import("./jpeg-ET8zpUp5.js").then((m2) => m2.default));
123254
- addDecoder([8, 32946], () => import("./deflate-BX6lKDZ-.js").then((m2) => m2.default));
123255
- addDecoder(32773, () => import("./packbits-B6osqCFz.js").then((m2) => m2.default));
123258
+ addDecoder(7, () => import("./jpeg-DYRomFzh.js").then((m2) => m2.default));
123259
+ addDecoder([8, 32946], () => import("./deflate-JiaVZVLy.js").then((m2) => m2.default));
123260
+ addDecoder(32773, () => import("./packbits-bJMxFBEb.js").then((m2) => m2.default));
123256
123261
  addDecoder(
123257
123262
  34887,
123258
- () => import("./lerc-cY-fi3aQ.js").then(async (m2) => {
123263
+ () => import("./lerc-CjJL0X_L.js").then(async (m2) => {
123259
123264
  await m2.zstd.init();
123260
123265
  return m2;
123261
123266
  }).then((m2) => m2.default)
123262
123267
  );
123263
- addDecoder(50001, () => import("./webimage-CCAyLy5a.js").then((m2) => m2.default));
123268
+ addDecoder(50001, () => import("./webimage-CXFDDcP-.js").then((m2) => m2.default));
123264
123269
  function decodeRowAcc(row, stride) {
123265
123270
  let length2 = row.length - stride;
123266
123271
  let offset2 = 0;
@@ -123663,7 +123668,7 @@ const Z_FIXED = 4;
123663
123668
  const Z_BINARY = 0;
123664
123669
  const Z_TEXT = 1;
123665
123670
  const Z_UNKNOWN = 2;
123666
- function zero$3(buf) {
123671
+ function zero$2(buf) {
123667
123672
  let len2 = buf.length;
123668
123673
  while (--len2 >= 0) {
123669
123674
  buf[len2] = 0;
@@ -123702,17 +123707,17 @@ const extra_blbits = (
123702
123707
  const bl_order = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
123703
123708
  const DIST_CODE_LEN = 512;
123704
123709
  const static_ltree = new Array((L_CODES + 2) * 2);
123705
- zero$3(static_ltree);
123710
+ zero$2(static_ltree);
123706
123711
  const static_dtree = new Array(D_CODES * 2);
123707
- zero$3(static_dtree);
123712
+ zero$2(static_dtree);
123708
123713
  const _dist_code = new Array(DIST_CODE_LEN);
123709
- zero$3(_dist_code);
123714
+ zero$2(_dist_code);
123710
123715
  const _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);
123711
- zero$3(_length_code);
123716
+ zero$2(_length_code);
123712
123717
  const base_length = new Array(LENGTH_CODES);
123713
- zero$3(base_length);
123718
+ zero$2(base_length);
123714
123719
  const base_dist = new Array(D_CODES);
123715
- zero$3(base_dist);
123720
+ zero$2(base_dist);
123716
123721
  function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
123717
123722
  this.static_tree = static_tree;
123718
123723
  this.extra_bits = extra_bits;
@@ -140547,7 +140552,7 @@ function paletteTransform(value, userValue) {
140547
140552
  }
140548
140553
  return value;
140549
140554
  }
140550
- const color$3 = style$1({
140555
+ const color$1 = style$1({
140551
140556
  prop: "color",
140552
140557
  themeKey: "palette",
140553
140558
  transform: paletteTransform
@@ -140563,7 +140568,7 @@ const backgroundColor = style$1({
140563
140568
  themeKey: "palette",
140564
140569
  transform: paletteTransform
140565
140570
  });
140566
- compose(color$3, bgcolor, backgroundColor);
140571
+ compose(color$1, bgcolor, backgroundColor);
140567
140572
  function sizingTransform(value) {
140568
140573
  return value <= 1 && value !== 0 ? `${value * 100}%` : value;
140569
140574
  }
@@ -150187,7 +150192,7 @@ function createQuadTree(obsEmbedding, getCellCoords) {
150187
150192
  const tree = quadtree().x((i2) => getCellCoords(i2)[0]).y((i2) => getCellCoords(i2)[1]).addAll(range$4(obsEmbedding.shape[1]));
150188
150193
  return tree;
150189
150194
  }
150190
- function constant$3(v) {
150195
+ function constant$2(v) {
150191
150196
  return () => v;
150192
150197
  }
150193
150198
  function jiggle(v) {
@@ -150199,7 +150204,7 @@ function forceCollideRects() {
150199
150204
  let strength = 1;
150200
150205
  let iterations = 1;
150201
150206
  let sizes;
150202
- let size = constant$3([0, 0]);
150207
+ let size = constant$2([0, 0]);
150203
150208
  function xCenter(d) {
150204
150209
  return d.x + d.vx + sizes[d.index][0] / 2;
150205
150210
  }
@@ -150285,7 +150290,7 @@ function forceCollideRects() {
150285
150290
  };
150286
150291
  force.size = (...v) => {
150287
150292
  if (v.length) {
150288
- size = typeof v[0] === "function" ? v[0] : constant$3(v[0]);
150293
+ size = typeof v[0] === "function" ? v[0] : constant$2(v[0]);
150289
150294
  return force;
150290
150295
  }
150291
150296
  return size;
@@ -151254,7 +151259,7 @@ EnterNode.prototype = {
151254
151259
  return this._parent.querySelectorAll(selector2);
151255
151260
  }
151256
151261
  };
151257
- function constant$2(x) {
151262
+ function constant$1(x) {
151258
151263
  return function() {
151259
151264
  return x;
151260
151265
  };
@@ -151309,7 +151314,7 @@ function datum(node2) {
151309
151314
  function selection_data(value, key) {
151310
151315
  if (!arguments.length) return Array.from(this, datum);
151311
151316
  var bind2 = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
151312
- if (typeof value !== "function") value = constant$2(value);
151317
+ if (typeof value !== "function") value = constant$1(value);
151313
151318
  for (var m2 = groups.length, update2 = new Array(m2), enter = new Array(m2), exit = new Array(m2), j = 0; j < m2; ++j) {
151314
151319
  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);
151315
151320
  bind2(parent, group, enterGroup, updateGroup, exitGroup, data, key);
@@ -151810,7 +151815,7 @@ function bisector(f2) {
151810
151815
  compare2 = (d, x) => ascending(f2(d), x);
151811
151816
  delta = (d, x) => f2(d) - x;
151812
151817
  } else {
151813
- compare1 = f2 === ascending || f2 === descending ? f2 : zero$2;
151818
+ compare1 = f2 === ascending || f2 === descending ? f2 : zero$1;
151814
151819
  compare2 = f2;
151815
151820
  delta = f2;
151816
151821
  }
@@ -151842,15 +151847,15 @@ function bisector(f2) {
151842
151847
  }
151843
151848
  return { left, center: center2, right };
151844
151849
  }
151845
- function zero$2() {
151850
+ function zero$1() {
151846
151851
  return 0;
151847
151852
  }
151848
- function number$3(x) {
151853
+ function number$2(x) {
151849
151854
  return x === null ? NaN : +x;
151850
151855
  }
151851
151856
  const ascendingBisect = bisector(ascending);
151852
151857
  const bisectRight = ascendingBisect.right;
151853
- bisector(number$3).center;
151858
+ bisector(number$2).center;
151854
151859
  var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
151855
151860
  function ticks(start, stop, count2) {
151856
151861
  var reverse, i2 = -1, n2, ticks2, step;
@@ -151917,21 +151922,21 @@ function initInterpolator(domain, interpolator) {
151917
151922
  }
151918
151923
  return this;
151919
151924
  }
151920
- function define$2(constructor, factory, prototype) {
151925
+ function define(constructor, factory, prototype) {
151921
151926
  constructor.prototype = factory.prototype = prototype;
151922
151927
  prototype.constructor = constructor;
151923
151928
  }
151924
- function extend$2(parent, definition) {
151929
+ function extend(parent, definition) {
151925
151930
  var prototype = Object.create(parent.prototype);
151926
151931
  for (var key in definition) prototype[key] = definition[key];
151927
151932
  return prototype;
151928
151933
  }
151929
- function Color$2() {
151934
+ function Color() {
151930
151935
  }
151931
- var darker$2 = 0.7;
151932
- var brighter$2 = 1 / darker$2;
151933
- var reI$2 = "\\s*([+-]?\\d+)\\s*", reN$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$2 = /^#([0-9a-f]{3,8})$/, reRgbInteger$2 = new RegExp(`^rgb\\(${reI$2},${reI$2},${reI$2}\\)$`), reRgbPercent$2 = new RegExp(`^rgb\\(${reP$2},${reP$2},${reP$2}\\)$`), reRgbaInteger$2 = new RegExp(`^rgba\\(${reI$2},${reI$2},${reI$2},${reN$2}\\)$`), reRgbaPercent$2 = new RegExp(`^rgba\\(${reP$2},${reP$2},${reP$2},${reN$2}\\)$`), reHslPercent$2 = new RegExp(`^hsl\\(${reN$2},${reP$2},${reP$2}\\)$`), reHslaPercent$2 = new RegExp(`^hsla\\(${reN$2},${reP$2},${reP$2},${reN$2}\\)$`);
151934
- var named$2 = {
151936
+ var darker = 0.7;
151937
+ var brighter = 1 / darker;
151938
+ 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}\\)$`);
151939
+ var named = {
151935
151940
  aliceblue: 15792383,
151936
151941
  antiquewhite: 16444375,
151937
151942
  aqua: 65535,
@@ -152081,92 +152086,92 @@ var named$2 = {
152081
152086
  yellow: 16776960,
152082
152087
  yellowgreen: 10145074
152083
152088
  };
152084
- define$2(Color$2, color$2, {
152089
+ define(Color, color, {
152085
152090
  copy(channels2) {
152086
152091
  return Object.assign(new this.constructor(), this, channels2);
152087
152092
  },
152088
152093
  displayable() {
152089
152094
  return this.rgb().displayable();
152090
152095
  },
152091
- hex: color_formatHex$2,
152096
+ hex: color_formatHex,
152092
152097
  // Deprecated! Use color.formatHex.
152093
- formatHex: color_formatHex$2,
152098
+ formatHex: color_formatHex,
152094
152099
  formatHex8: color_formatHex8,
152095
- formatHsl: color_formatHsl$2,
152096
- formatRgb: color_formatRgb$2,
152097
- toString: color_formatRgb$2
152100
+ formatHsl: color_formatHsl,
152101
+ formatRgb: color_formatRgb,
152102
+ toString: color_formatRgb
152098
152103
  });
152099
- function color_formatHex$2() {
152104
+ function color_formatHex() {
152100
152105
  return this.rgb().formatHex();
152101
152106
  }
152102
152107
  function color_formatHex8() {
152103
152108
  return this.rgb().formatHex8();
152104
152109
  }
152105
- function color_formatHsl$2() {
152106
- return hslConvert$2(this).formatHsl();
152110
+ function color_formatHsl() {
152111
+ return hslConvert(this).formatHsl();
152107
152112
  }
152108
- function color_formatRgb$2() {
152113
+ function color_formatRgb() {
152109
152114
  return this.rgb().formatRgb();
152110
152115
  }
152111
- function color$2(format2) {
152116
+ function color(format2) {
152112
152117
  var m2, l2;
152113
152118
  format2 = (format2 + "").trim().toLowerCase();
152114
- return (m2 = reHex$2.exec(format2)) ? (l2 = m2[1].length, m2 = parseInt(m2[1], 16), l2 === 6 ? rgbn$2(m2) : l2 === 3 ? new Rgb$2(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l2 === 8 ? rgba$2(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l2 === 4 ? rgba$2(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$2.exec(format2)) ? new Rgb$2(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$2.exec(format2)) ? new Rgb$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$2.exec(format2)) ? rgba$2(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$2.exec(format2)) ? rgba$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$2.hasOwnProperty(format2) ? rgbn$2(named$2[format2]) : format2 === "transparent" ? new Rgb$2(NaN, NaN, NaN, 0) : null;
152119
+ return (m2 = reHex.exec(format2)) ? (l2 = m2[1].length, m2 = parseInt(m2[1], 16), l2 === 6 ? rgbn(m2) : l2 === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l2 === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l2 === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
152115
152120
  }
152116
- function rgbn$2(n2) {
152117
- return new Rgb$2(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
152121
+ function rgbn(n2) {
152122
+ return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
152118
152123
  }
152119
- function rgba$2(r2, g2, b, a2) {
152124
+ function rgba(r2, g2, b, a2) {
152120
152125
  if (a2 <= 0) r2 = g2 = b = NaN;
152121
- return new Rgb$2(r2, g2, b, a2);
152126
+ return new Rgb(r2, g2, b, a2);
152122
152127
  }
152123
- function rgbConvert$2(o2) {
152124
- if (!(o2 instanceof Color$2)) o2 = color$2(o2);
152125
- if (!o2) return new Rgb$2();
152128
+ function rgbConvert(o2) {
152129
+ if (!(o2 instanceof Color)) o2 = color(o2);
152130
+ if (!o2) return new Rgb();
152126
152131
  o2 = o2.rgb();
152127
- return new Rgb$2(o2.r, o2.g, o2.b, o2.opacity);
152132
+ return new Rgb(o2.r, o2.g, o2.b, o2.opacity);
152128
152133
  }
152129
- function rgb$3(r2, g2, b, opacity) {
152130
- return arguments.length === 1 ? rgbConvert$2(r2) : new Rgb$2(r2, g2, b, opacity == null ? 1 : opacity);
152134
+ function rgb(r2, g2, b, opacity) {
152135
+ return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g2, b, opacity == null ? 1 : opacity);
152131
152136
  }
152132
- function Rgb$2(r2, g2, b, opacity) {
152137
+ function Rgb(r2, g2, b, opacity) {
152133
152138
  this.r = +r2;
152134
152139
  this.g = +g2;
152135
152140
  this.b = +b;
152136
152141
  this.opacity = +opacity;
152137
152142
  }
152138
- define$2(Rgb$2, rgb$3, extend$2(Color$2, {
152143
+ define(Rgb, rgb, extend(Color, {
152139
152144
  brighter(k) {
152140
- k = k == null ? brighter$2 : Math.pow(brighter$2, k);
152141
- return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
152145
+ k = k == null ? brighter : Math.pow(brighter, k);
152146
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
152142
152147
  },
152143
152148
  darker(k) {
152144
- k = k == null ? darker$2 : Math.pow(darker$2, k);
152145
- return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
152149
+ k = k == null ? darker : Math.pow(darker, k);
152150
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
152146
152151
  },
152147
152152
  rgb() {
152148
152153
  return this;
152149
152154
  },
152150
152155
  clamp() {
152151
- return new Rgb$2(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
152156
+ return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
152152
152157
  },
152153
152158
  displayable() {
152154
152159
  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);
152155
152160
  },
152156
- hex: rgb_formatHex$2,
152161
+ hex: rgb_formatHex,
152157
152162
  // Deprecated! Use color.formatHex.
152158
- formatHex: rgb_formatHex$2,
152163
+ formatHex: rgb_formatHex,
152159
152164
  formatHex8: rgb_formatHex8,
152160
- formatRgb: rgb_formatRgb$2,
152161
- toString: rgb_formatRgb$2
152165
+ formatRgb: rgb_formatRgb,
152166
+ toString: rgb_formatRgb
152162
152167
  }));
152163
- function rgb_formatHex$2() {
152164
- return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}`;
152168
+ function rgb_formatHex() {
152169
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
152165
152170
  }
152166
152171
  function rgb_formatHex8() {
152167
- return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}${hex$2((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
152172
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
152168
152173
  }
152169
- function rgb_formatRgb$2() {
152174
+ function rgb_formatRgb() {
152170
152175
  const a2 = clampa(this.opacity);
152171
152176
  return `${a2 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a2 === 1 ? ")" : `, ${a2})`}`;
152172
152177
  }
@@ -152176,21 +152181,21 @@ function clampa(opacity) {
152176
152181
  function clampi(value) {
152177
152182
  return Math.max(0, Math.min(255, Math.round(value) || 0));
152178
152183
  }
152179
- function hex$2(value) {
152184
+ function hex(value) {
152180
152185
  value = clampi(value);
152181
152186
  return (value < 16 ? "0" : "") + value.toString(16);
152182
152187
  }
152183
- function hsla$2(h, s2, l2, a2) {
152188
+ function hsla(h, s2, l2, a2) {
152184
152189
  if (a2 <= 0) h = s2 = l2 = NaN;
152185
152190
  else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
152186
152191
  else if (s2 <= 0) h = NaN;
152187
- return new Hsl$2(h, s2, l2, a2);
152192
+ return new Hsl(h, s2, l2, a2);
152188
152193
  }
152189
- function hslConvert$2(o2) {
152190
- if (o2 instanceof Hsl$2) return new Hsl$2(o2.h, o2.s, o2.l, o2.opacity);
152191
- if (!(o2 instanceof Color$2)) o2 = color$2(o2);
152192
- if (!o2) return new Hsl$2();
152193
- if (o2 instanceof Hsl$2) return o2;
152194
+ function hslConvert(o2) {
152195
+ if (o2 instanceof Hsl) return new Hsl(o2.h, o2.s, o2.l, o2.opacity);
152196
+ if (!(o2 instanceof Color)) o2 = color(o2);
152197
+ if (!o2) return new Hsl();
152198
+ if (o2 instanceof Hsl) return o2;
152194
152199
  o2 = o2.rgb();
152195
152200
  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;
152196
152201
  if (s2) {
@@ -152202,37 +152207,37 @@ function hslConvert$2(o2) {
152202
152207
  } else {
152203
152208
  s2 = l2 > 0 && l2 < 1 ? 0 : h;
152204
152209
  }
152205
- return new Hsl$2(h, s2, l2, o2.opacity);
152210
+ return new Hsl(h, s2, l2, o2.opacity);
152206
152211
  }
152207
- function hsl$2(h, s2, l2, opacity) {
152208
- return arguments.length === 1 ? hslConvert$2(h) : new Hsl$2(h, s2, l2, opacity == null ? 1 : opacity);
152212
+ function hsl(h, s2, l2, opacity) {
152213
+ return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s2, l2, opacity == null ? 1 : opacity);
152209
152214
  }
152210
- function Hsl$2(h, s2, l2, opacity) {
152215
+ function Hsl(h, s2, l2, opacity) {
152211
152216
  this.h = +h;
152212
152217
  this.s = +s2;
152213
152218
  this.l = +l2;
152214
152219
  this.opacity = +opacity;
152215
152220
  }
152216
- define$2(Hsl$2, hsl$2, extend$2(Color$2, {
152221
+ define(Hsl, hsl, extend(Color, {
152217
152222
  brighter(k) {
152218
- k = k == null ? brighter$2 : Math.pow(brighter$2, k);
152219
- return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
152223
+ k = k == null ? brighter : Math.pow(brighter, k);
152224
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
152220
152225
  },
152221
152226
  darker(k) {
152222
- k = k == null ? darker$2 : Math.pow(darker$2, k);
152223
- return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
152227
+ k = k == null ? darker : Math.pow(darker, k);
152228
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
152224
152229
  },
152225
152230
  rgb() {
152226
152231
  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;
152227
- return new Rgb$2(
152228
- hsl2rgb$2(h >= 240 ? h - 240 : h + 120, m1, m2),
152229
- hsl2rgb$2(h, m1, m2),
152230
- hsl2rgb$2(h < 120 ? h + 240 : h - 120, m1, m2),
152232
+ return new Rgb(
152233
+ hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
152234
+ hsl2rgb(h, m1, m2),
152235
+ hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
152231
152236
  this.opacity
152232
152237
  );
152233
152238
  },
152234
152239
  clamp() {
152235
- return new Hsl$2(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
152240
+ return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
152236
152241
  },
152237
152242
  displayable() {
152238
152243
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
@@ -152249,33 +152254,33 @@ function clamph(value) {
152249
152254
  function clampt(value) {
152250
152255
  return Math.max(0, Math.min(1, value || 0));
152251
152256
  }
152252
- function hsl2rgb$2(h, m1, m2) {
152257
+ function hsl2rgb(h, m1, m2) {
152253
152258
  return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
152254
152259
  }
152255
- const constant$1 = (x) => () => x;
152256
- function linear$2(a2, d) {
152260
+ const constant = (x) => () => x;
152261
+ function linear$1(a2, d) {
152257
152262
  return function(t) {
152258
152263
  return a2 + t * d;
152259
152264
  };
152260
152265
  }
152261
- function exponential$1(a2, b, y) {
152266
+ function exponential(a2, b, y) {
152262
152267
  return a2 = Math.pow(a2, y), b = Math.pow(b, y) - a2, y = 1 / y, function(t) {
152263
152268
  return Math.pow(a2 + t * b, y);
152264
152269
  };
152265
152270
  }
152266
- function gamma$1(y) {
152267
- return (y = +y) === 1 ? nogamma$1 : function(a2, b) {
152268
- return b - a2 ? exponential$1(a2, b, y) : constant$1(isNaN(a2) ? b : a2);
152271
+ function gamma(y) {
152272
+ return (y = +y) === 1 ? nogamma : function(a2, b) {
152273
+ return b - a2 ? exponential(a2, b, y) : constant(isNaN(a2) ? b : a2);
152269
152274
  };
152270
152275
  }
152271
- function nogamma$1(a2, b) {
152276
+ function nogamma(a2, b) {
152272
152277
  var d = b - a2;
152273
- return d ? linear$2(a2, d) : constant$1(isNaN(a2) ? b : a2);
152278
+ return d ? linear$1(a2, d) : constant(isNaN(a2) ? b : a2);
152274
152279
  }
152275
- const rgb$2 = function rgbGamma(y) {
152276
- var color2 = gamma$1(y);
152277
- function rgb2(start, end) {
152278
- var r2 = color2((start = rgb$3(start)).r, (end = rgb$3(end)).r), g2 = color2(start.g, end.g), b = color2(start.b, end.b), opacity = nogamma$1(start.opacity, end.opacity);
152280
+ const interpolateRgb = function rgbGamma(y) {
152281
+ var color2 = gamma(y);
152282
+ function rgb$1(start, end) {
152283
+ 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);
152279
152284
  return function(t) {
152280
152285
  start.r = r2(t);
152281
152286
  start.g = g2(t);
@@ -152284,10 +152289,10 @@ const rgb$2 = function rgbGamma(y) {
152284
152289
  return start + "";
152285
152290
  };
152286
152291
  }
152287
- rgb2.gamma = rgbGamma;
152288
- return rgb2;
152292
+ rgb$1.gamma = rgbGamma;
152293
+ return rgb$1;
152289
152294
  }(1);
152290
- function numberArray$1(a2, b) {
152295
+ function numberArray(a2, b) {
152291
152296
  if (!b) b = [];
152292
152297
  var n2 = a2 ? Math.min(b.length, a2.length) : 0, c2 = b.slice(), i2;
152293
152298
  return function(t) {
@@ -152295,19 +152300,19 @@ function numberArray$1(a2, b) {
152295
152300
  return c2;
152296
152301
  };
152297
152302
  }
152298
- function isNumberArray$1(x) {
152303
+ function isNumberArray(x) {
152299
152304
  return ArrayBuffer.isView(x) && !(x instanceof DataView);
152300
152305
  }
152301
- function genericArray$1(a2, b) {
152306
+ function genericArray(a2, b) {
152302
152307
  var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x = new Array(na), c2 = new Array(nb), i2;
152303
- for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate$1(a2[i2], b[i2]);
152308
+ for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate(a2[i2], b[i2]);
152304
152309
  for (; i2 < nb; ++i2) c2[i2] = b[i2];
152305
152310
  return function(t) {
152306
152311
  for (i2 = 0; i2 < na; ++i2) c2[i2] = x[i2](t);
152307
152312
  return c2;
152308
152313
  };
152309
152314
  }
152310
- function date$1(a2, b) {
152315
+ function date(a2, b) {
152311
152316
  var d = /* @__PURE__ */ new Date();
152312
152317
  return a2 = +a2, b = +b, function(t) {
152313
152318
  return d.setTime(a2 * (1 - t) + b * t), d;
@@ -152318,13 +152323,13 @@ function interpolateNumber(a2, b) {
152318
152323
  return a2 * (1 - t) + b * t;
152319
152324
  };
152320
152325
  }
152321
- function object$1(a2, b) {
152326
+ function object(a2, b) {
152322
152327
  var i2 = {}, c2 = {}, k;
152323
152328
  if (a2 === null || typeof a2 !== "object") a2 = {};
152324
152329
  if (b === null || typeof b !== "object") b = {};
152325
152330
  for (k in b) {
152326
152331
  if (k in a2) {
152327
- i2[k] = interpolate$1(a2[k], b[k]);
152332
+ i2[k] = interpolate(a2[k], b[k]);
152328
152333
  } else {
152329
152334
  c2[k] = b[k];
152330
152335
  }
@@ -152334,21 +152339,21 @@ function object$1(a2, b) {
152334
152339
  return c2;
152335
152340
  };
152336
152341
  }
152337
- var reA$1 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB$1 = new RegExp(reA$1.source, "g");
152338
- function zero$1(b) {
152342
+ var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
152343
+ function zero(b) {
152339
152344
  return function() {
152340
152345
  return b;
152341
152346
  };
152342
152347
  }
152343
- function one$1(b) {
152348
+ function one(b) {
152344
152349
  return function(t) {
152345
152350
  return b(t) + "";
152346
152351
  };
152347
152352
  }
152348
- function string$1(a2, b) {
152349
- var bi = reA$1.lastIndex = reB$1.lastIndex = 0, am, bm, bs, i2 = -1, s2 = [], q = [];
152353
+ function string(a2, b) {
152354
+ var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s2 = [], q = [];
152350
152355
  a2 = a2 + "", b = b + "";
152351
- while ((am = reA$1.exec(a2)) && (bm = reB$1.exec(b))) {
152356
+ while ((am = reA.exec(a2)) && (bm = reB.exec(b))) {
152352
152357
  if ((bs = bm.index) > bi) {
152353
152358
  bs = b.slice(bi, bs);
152354
152359
  if (s2[i2]) s2[i2] += bs;
@@ -152361,33 +152366,47 @@ function string$1(a2, b) {
152361
152366
  s2[++i2] = null;
152362
152367
  q.push({ i: i2, x: interpolateNumber(am, bm) });
152363
152368
  }
152364
- bi = reB$1.lastIndex;
152369
+ bi = reB.lastIndex;
152365
152370
  }
152366
152371
  if (bi < b.length) {
152367
152372
  bs = b.slice(bi);
152368
152373
  if (s2[i2]) s2[i2] += bs;
152369
152374
  else s2[++i2] = bs;
152370
152375
  }
152371
- return s2.length < 2 ? q[0] ? one$1(q[0].x) : zero$1(b) : (b = q.length, function(t) {
152376
+ return s2.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) {
152372
152377
  for (var i22 = 0, o2; i22 < b; ++i22) s2[(o2 = q[i22]).i] = o2.x(t);
152373
152378
  return s2.join("");
152374
152379
  });
152375
152380
  }
152376
- function interpolate$1(a2, b) {
152381
+ function interpolate(a2, b) {
152377
152382
  var t = typeof b, c2;
152378
- return b == null || t === "boolean" ? constant$1(b) : (t === "number" ? interpolateNumber : t === "string" ? (c2 = color$2(b)) ? (b = c2, rgb$2) : string$1 : b instanceof color$2 ? rgb$2 : b instanceof Date ? date$1 : isNumberArray$1(b) ? numberArray$1 : Array.isArray(b) ? genericArray$1 : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object$1 : interpolateNumber)(a2, b);
152383
+ return b == null || t === "boolean" ? constant(b) : (t === "number" ? interpolateNumber : t === "string" ? (c2 = color(b)) ? (b = c2, 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 : interpolateNumber)(a2, b);
152379
152384
  }
152380
152385
  function interpolateRound(a2, b) {
152381
152386
  return a2 = +a2, b = +b, function(t) {
152382
152387
  return Math.round(a2 * (1 - t) + b * t);
152383
152388
  };
152384
152389
  }
152390
+ function piecewise(interpolate$12, values2) {
152391
+ if (values2 === void 0) values2 = interpolate$12, interpolate$12 = interpolate;
152392
+ var i2 = 0, n2 = values2.length - 1, v = values2[0], I2 = new Array(n2 < 0 ? 0 : n2);
152393
+ while (i2 < n2) I2[i2] = interpolate$12(v, v = values2[++i2]);
152394
+ return function(t) {
152395
+ var i22 = Math.max(0, Math.min(n2 - 1, Math.floor(t *= n2)));
152396
+ return I2[i22](t - i22);
152397
+ };
152398
+ }
152399
+ function quantize(interpolator, n2) {
152400
+ var samples = new Array(n2);
152401
+ for (var i2 = 0; i2 < n2; ++i2) samples[i2] = interpolator(i2 / (n2 - 1));
152402
+ return samples;
152403
+ }
152385
152404
  function constants(x) {
152386
152405
  return function() {
152387
152406
  return x;
152388
152407
  };
152389
152408
  }
152390
- function number$2(x) {
152409
+ function number$1(x) {
152391
152410
  return +x;
152392
152411
  }
152393
152412
  var unit = [0, 1];
@@ -152433,7 +152452,7 @@ function copy$1(source, target) {
152433
152452
  return target.domain(source.domain()).range(source.range()).interpolate(source.interpolate()).clamp(source.clamp()).unknown(source.unknown());
152434
152453
  }
152435
152454
  function transformer$1() {
152436
- var domain = unit, range2 = unit, interpolate2 = interpolate$1, transform2, untransform, unknown, clamp2 = identity$2, piecewise2, output, input;
152455
+ var domain = unit, range2 = unit, interpolate$12 = interpolate, transform2, untransform, unknown, clamp2 = identity$2, piecewise2, output, input;
152437
152456
  function rescale() {
152438
152457
  var n2 = Math.min(domain.length, range2.length);
152439
152458
  if (clamp2 !== identity$2) clamp2 = clamper(domain[0], domain[n2 - 1]);
@@ -152442,25 +152461,25 @@ function transformer$1() {
152442
152461
  return scale2;
152443
152462
  }
152444
152463
  function scale2(x) {
152445
- return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise2(domain.map(transform2), range2, interpolate2)))(transform2(clamp2(x)));
152464
+ return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise2(domain.map(transform2), range2, interpolate$12)))(transform2(clamp2(x)));
152446
152465
  }
152447
152466
  scale2.invert = function(y) {
152448
152467
  return clamp2(untransform((input || (input = piecewise2(range2, domain.map(transform2), interpolateNumber)))(y)));
152449
152468
  };
152450
152469
  scale2.domain = function(_) {
152451
- return arguments.length ? (domain = Array.from(_, number$2), rescale()) : domain.slice();
152470
+ return arguments.length ? (domain = Array.from(_, number$1), rescale()) : domain.slice();
152452
152471
  };
152453
152472
  scale2.range = function(_) {
152454
152473
  return arguments.length ? (range2 = Array.from(_), rescale()) : range2.slice();
152455
152474
  };
152456
152475
  scale2.rangeRound = function(_) {
152457
- return range2 = Array.from(_), interpolate2 = interpolateRound, rescale();
152476
+ return range2 = Array.from(_), interpolate$12 = interpolateRound, rescale();
152458
152477
  };
152459
152478
  scale2.clamp = function(_) {
152460
152479
  return arguments.length ? (clamp2 = _ ? true : identity$2, rescale()) : clamp2 !== identity$2;
152461
152480
  };
152462
152481
  scale2.interpolate = function(_) {
152463
- return arguments.length ? (interpolate2 = _, rescale()) : interpolate2;
152482
+ return arguments.length ? (interpolate$12 = _, rescale()) : interpolate$12;
152464
152483
  };
152465
152484
  scale2.unknown = function(_) {
152466
152485
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -152753,10 +152772,10 @@ function linearish(scale2) {
152753
152772
  };
152754
152773
  return scale2;
152755
152774
  }
152756
- function linear$1() {
152775
+ function linear() {
152757
152776
  var scale2 = continuous();
152758
152777
  scale2.copy = function() {
152759
- return copy$1(scale2, linear$1());
152778
+ return copy$1(scale2, linear());
152760
152779
  };
152761
152780
  initRange.apply(scale2, arguments);
152762
152781
  return linearish(scale2);
@@ -152781,7 +152800,7 @@ function transformer() {
152781
152800
  return arguments.length ? ([r0, r1] = _, interpolator = interpolate2(r0, r1), scale2) : [interpolator(0), interpolator(1)];
152782
152801
  };
152783
152802
  }
152784
- scale2.range = range2(interpolate$1);
152803
+ scale2.range = range2(interpolate);
152785
152804
  scale2.rangeRound = range2(interpolateRound);
152786
152805
  scale2.unknown = function(_) {
152787
152806
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -152808,7 +152827,7 @@ var bottom = 3, epsilon = 1e-6;
152808
152827
  function translateX(x) {
152809
152828
  return "translate(" + x + ",0)";
152810
152829
  }
152811
- function number$1(scale2) {
152830
+ function number(scale2) {
152812
152831
  return (d) => +scale2(d);
152813
152832
  }
152814
152833
  function center(scale2, offset2) {
@@ -152822,7 +152841,7 @@ function entering() {
152822
152841
  function axis(orient, scale2) {
152823
152842
  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;
152824
152843
  function axis2(context) {
152825
- 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 : 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$1)(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");
152844
+ 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 : 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");
152826
152845
  path = path.merge(path.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
152827
152846
  tick = tick.merge(tickEnter);
152828
152847
  line2 = line2.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
@@ -152887,765 +152906,6 @@ function axis(orient, scale2) {
152887
152906
  function axisBottom(scale2) {
152888
152907
  return axis(bottom, scale2);
152889
152908
  }
152890
- function define$1(constructor, factory, prototype) {
152891
- constructor.prototype = factory.prototype = prototype;
152892
- prototype.constructor = constructor;
152893
- }
152894
- function extend$1(parent, definition) {
152895
- var prototype = Object.create(parent.prototype);
152896
- for (var key in definition) prototype[key] = definition[key];
152897
- return prototype;
152898
- }
152899
- function Color$1() {
152900
- }
152901
- var darker$1 = 0.7;
152902
- var brighter$1 = 1 / darker$1;
152903
- 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] + "\\)$");
152904
- var named$1 = {
152905
- aliceblue: 15792383,
152906
- antiquewhite: 16444375,
152907
- aqua: 65535,
152908
- aquamarine: 8388564,
152909
- azure: 15794175,
152910
- beige: 16119260,
152911
- bisque: 16770244,
152912
- black: 0,
152913
- blanchedalmond: 16772045,
152914
- blue: 255,
152915
- blueviolet: 9055202,
152916
- brown: 10824234,
152917
- burlywood: 14596231,
152918
- cadetblue: 6266528,
152919
- chartreuse: 8388352,
152920
- chocolate: 13789470,
152921
- coral: 16744272,
152922
- cornflowerblue: 6591981,
152923
- cornsilk: 16775388,
152924
- crimson: 14423100,
152925
- cyan: 65535,
152926
- darkblue: 139,
152927
- darkcyan: 35723,
152928
- darkgoldenrod: 12092939,
152929
- darkgray: 11119017,
152930
- darkgreen: 25600,
152931
- darkgrey: 11119017,
152932
- darkkhaki: 12433259,
152933
- darkmagenta: 9109643,
152934
- darkolivegreen: 5597999,
152935
- darkorange: 16747520,
152936
- darkorchid: 10040012,
152937
- darkred: 9109504,
152938
- darksalmon: 15308410,
152939
- darkseagreen: 9419919,
152940
- darkslateblue: 4734347,
152941
- darkslategray: 3100495,
152942
- darkslategrey: 3100495,
152943
- darkturquoise: 52945,
152944
- darkviolet: 9699539,
152945
- deeppink: 16716947,
152946
- deepskyblue: 49151,
152947
- dimgray: 6908265,
152948
- dimgrey: 6908265,
152949
- dodgerblue: 2003199,
152950
- firebrick: 11674146,
152951
- floralwhite: 16775920,
152952
- forestgreen: 2263842,
152953
- fuchsia: 16711935,
152954
- gainsboro: 14474460,
152955
- ghostwhite: 16316671,
152956
- gold: 16766720,
152957
- goldenrod: 14329120,
152958
- gray: 8421504,
152959
- green: 32768,
152960
- greenyellow: 11403055,
152961
- grey: 8421504,
152962
- honeydew: 15794160,
152963
- hotpink: 16738740,
152964
- indianred: 13458524,
152965
- indigo: 4915330,
152966
- ivory: 16777200,
152967
- khaki: 15787660,
152968
- lavender: 15132410,
152969
- lavenderblush: 16773365,
152970
- lawngreen: 8190976,
152971
- lemonchiffon: 16775885,
152972
- lightblue: 11393254,
152973
- lightcoral: 15761536,
152974
- lightcyan: 14745599,
152975
- lightgoldenrodyellow: 16448210,
152976
- lightgray: 13882323,
152977
- lightgreen: 9498256,
152978
- lightgrey: 13882323,
152979
- lightpink: 16758465,
152980
- lightsalmon: 16752762,
152981
- lightseagreen: 2142890,
152982
- lightskyblue: 8900346,
152983
- lightslategray: 7833753,
152984
- lightslategrey: 7833753,
152985
- lightsteelblue: 11584734,
152986
- lightyellow: 16777184,
152987
- lime: 65280,
152988
- limegreen: 3329330,
152989
- linen: 16445670,
152990
- magenta: 16711935,
152991
- maroon: 8388608,
152992
- mediumaquamarine: 6737322,
152993
- mediumblue: 205,
152994
- mediumorchid: 12211667,
152995
- mediumpurple: 9662683,
152996
- mediumseagreen: 3978097,
152997
- mediumslateblue: 8087790,
152998
- mediumspringgreen: 64154,
152999
- mediumturquoise: 4772300,
153000
- mediumvioletred: 13047173,
153001
- midnightblue: 1644912,
153002
- mintcream: 16121850,
153003
- mistyrose: 16770273,
153004
- moccasin: 16770229,
153005
- navajowhite: 16768685,
153006
- navy: 128,
153007
- oldlace: 16643558,
153008
- olive: 8421376,
153009
- olivedrab: 7048739,
153010
- orange: 16753920,
153011
- orangered: 16729344,
153012
- orchid: 14315734,
153013
- palegoldenrod: 15657130,
153014
- palegreen: 10025880,
153015
- paleturquoise: 11529966,
153016
- palevioletred: 14381203,
153017
- papayawhip: 16773077,
153018
- peachpuff: 16767673,
153019
- peru: 13468991,
153020
- pink: 16761035,
153021
- plum: 14524637,
153022
- powderblue: 11591910,
153023
- purple: 8388736,
153024
- rebeccapurple: 6697881,
153025
- red: 16711680,
153026
- rosybrown: 12357519,
153027
- royalblue: 4286945,
153028
- saddlebrown: 9127187,
153029
- salmon: 16416882,
153030
- sandybrown: 16032864,
153031
- seagreen: 3050327,
153032
- seashell: 16774638,
153033
- sienna: 10506797,
153034
- silver: 12632256,
153035
- skyblue: 8900331,
153036
- slateblue: 6970061,
153037
- slategray: 7372944,
153038
- slategrey: 7372944,
153039
- snow: 16775930,
153040
- springgreen: 65407,
153041
- steelblue: 4620980,
153042
- tan: 13808780,
153043
- teal: 32896,
153044
- thistle: 14204888,
153045
- tomato: 16737095,
153046
- turquoise: 4251856,
153047
- violet: 15631086,
153048
- wheat: 16113331,
153049
- white: 16777215,
153050
- whitesmoke: 16119285,
153051
- yellow: 16776960,
153052
- yellowgreen: 10145074
153053
- };
153054
- define$1(Color$1, color$1, {
153055
- copy: function(channels2) {
153056
- return Object.assign(new this.constructor(), this, channels2);
153057
- },
153058
- displayable: function() {
153059
- return this.rgb().displayable();
153060
- },
153061
- hex: color_formatHex$1,
153062
- // Deprecated! Use color.formatHex.
153063
- formatHex: color_formatHex$1,
153064
- formatHsl: color_formatHsl$1,
153065
- formatRgb: color_formatRgb$1,
153066
- toString: color_formatRgb$1
153067
- });
153068
- function color_formatHex$1() {
153069
- return this.rgb().formatHex();
153070
- }
153071
- function color_formatHsl$1() {
153072
- return hslConvert$1(this).formatHsl();
153073
- }
153074
- function color_formatRgb$1() {
153075
- return this.rgb().formatRgb();
153076
- }
153077
- function color$1(format2) {
153078
- var m2, l2;
153079
- format2 = (format2 + "").trim().toLowerCase();
153080
- return (m2 = reHex$1.exec(format2)) ? (l2 = m2[1].length, m2 = parseInt(m2[1], 16), l2 === 6 ? rgbn$1(m2) : l2 === 3 ? new Rgb$1(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l2 === 8 ? rgba$1(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l2 === 4 ? rgba$1(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$1.exec(format2)) ? new Rgb$1(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$1.exec(format2)) ? new Rgb$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$1.exec(format2)) ? rgba$1(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$1.exec(format2)) ? rgba$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$1.hasOwnProperty(format2) ? rgbn$1(named$1[format2]) : format2 === "transparent" ? new Rgb$1(NaN, NaN, NaN, 0) : null;
153081
- }
153082
- function rgbn$1(n2) {
153083
- return new Rgb$1(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
153084
- }
153085
- function rgba$1(r2, g2, b, a2) {
153086
- if (a2 <= 0) r2 = g2 = b = NaN;
153087
- return new Rgb$1(r2, g2, b, a2);
153088
- }
153089
- function rgbConvert$1(o2) {
153090
- if (!(o2 instanceof Color$1)) o2 = color$1(o2);
153091
- if (!o2) return new Rgb$1();
153092
- o2 = o2.rgb();
153093
- return new Rgb$1(o2.r, o2.g, o2.b, o2.opacity);
153094
- }
153095
- function rgb$1(r2, g2, b, opacity) {
153096
- return arguments.length === 1 ? rgbConvert$1(r2) : new Rgb$1(r2, g2, b, opacity == null ? 1 : opacity);
153097
- }
153098
- function Rgb$1(r2, g2, b, opacity) {
153099
- this.r = +r2;
153100
- this.g = +g2;
153101
- this.b = +b;
153102
- this.opacity = +opacity;
153103
- }
153104
- define$1(Rgb$1, rgb$1, extend$1(Color$1, {
153105
- brighter: function(k) {
153106
- k = k == null ? brighter$1 : Math.pow(brighter$1, k);
153107
- return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
153108
- },
153109
- darker: function(k) {
153110
- k = k == null ? darker$1 : Math.pow(darker$1, k);
153111
- return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
153112
- },
153113
- rgb: function() {
153114
- return this;
153115
- },
153116
- displayable: function() {
153117
- 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);
153118
- },
153119
- hex: rgb_formatHex$1,
153120
- // Deprecated! Use color.formatHex.
153121
- formatHex: rgb_formatHex$1,
153122
- formatRgb: rgb_formatRgb$1,
153123
- toString: rgb_formatRgb$1
153124
- }));
153125
- function rgb_formatHex$1() {
153126
- return "#" + hex$1(this.r) + hex$1(this.g) + hex$1(this.b);
153127
- }
153128
- function rgb_formatRgb$1() {
153129
- var a2 = this.opacity;
153130
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
153131
- 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 + ")");
153132
- }
153133
- function hex$1(value) {
153134
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
153135
- return (value < 16 ? "0" : "") + value.toString(16);
153136
- }
153137
- function hsla$1(h, s2, l2, a2) {
153138
- if (a2 <= 0) h = s2 = l2 = NaN;
153139
- else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
153140
- else if (s2 <= 0) h = NaN;
153141
- return new Hsl$1(h, s2, l2, a2);
153142
- }
153143
- function hslConvert$1(o2) {
153144
- if (o2 instanceof Hsl$1) return new Hsl$1(o2.h, o2.s, o2.l, o2.opacity);
153145
- if (!(o2 instanceof Color$1)) o2 = color$1(o2);
153146
- if (!o2) return new Hsl$1();
153147
- if (o2 instanceof Hsl$1) return o2;
153148
- o2 = o2.rgb();
153149
- 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;
153150
- if (s2) {
153151
- if (r2 === max2) h = (g2 - b) / s2 + (g2 < b) * 6;
153152
- else if (g2 === max2) h = (b - r2) / s2 + 2;
153153
- else h = (r2 - g2) / s2 + 4;
153154
- s2 /= l2 < 0.5 ? max2 + min : 2 - max2 - min;
153155
- h *= 60;
153156
- } else {
153157
- s2 = l2 > 0 && l2 < 1 ? 0 : h;
153158
- }
153159
- return new Hsl$1(h, s2, l2, o2.opacity);
153160
- }
153161
- function hsl$1(h, s2, l2, opacity) {
153162
- return arguments.length === 1 ? hslConvert$1(h) : new Hsl$1(h, s2, l2, opacity == null ? 1 : opacity);
153163
- }
153164
- function Hsl$1(h, s2, l2, opacity) {
153165
- this.h = +h;
153166
- this.s = +s2;
153167
- this.l = +l2;
153168
- this.opacity = +opacity;
153169
- }
153170
- define$1(Hsl$1, hsl$1, extend$1(Color$1, {
153171
- brighter: function(k) {
153172
- k = k == null ? brighter$1 : Math.pow(brighter$1, k);
153173
- return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
153174
- },
153175
- darker: function(k) {
153176
- k = k == null ? darker$1 : Math.pow(darker$1, k);
153177
- return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
153178
- },
153179
- rgb: function() {
153180
- 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;
153181
- return new Rgb$1(
153182
- hsl2rgb$1(h >= 240 ? h - 240 : h + 120, m1, m2),
153183
- hsl2rgb$1(h, m1, m2),
153184
- hsl2rgb$1(h < 120 ? h + 240 : h - 120, m1, m2),
153185
- this.opacity
153186
- );
153187
- },
153188
- displayable: function() {
153189
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
153190
- },
153191
- formatHsl: function() {
153192
- var a2 = this.opacity;
153193
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
153194
- return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
153195
- }
153196
- }));
153197
- function hsl2rgb$1(h, m1, m2) {
153198
- return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
153199
- }
153200
- const constant = (x) => () => x;
153201
- function linear(a2, d) {
153202
- return function(t) {
153203
- return a2 + t * d;
153204
- };
153205
- }
153206
- function exponential(a2, b, y) {
153207
- return a2 = Math.pow(a2, y), b = Math.pow(b, y) - a2, y = 1 / y, function(t) {
153208
- return Math.pow(a2 + t * b, y);
153209
- };
153210
- }
153211
- function gamma(y) {
153212
- return (y = +y) === 1 ? nogamma : function(a2, b) {
153213
- return b - a2 ? exponential(a2, b, y) : constant(isNaN(a2) ? b : a2);
153214
- };
153215
- }
153216
- function nogamma(a2, b) {
153217
- var d = b - a2;
153218
- return d ? linear(a2, d) : constant(isNaN(a2) ? b : a2);
153219
- }
153220
- const interpolateRgb = function rgbGamma2(y) {
153221
- var color2 = gamma(y);
153222
- function rgb2(start, end) {
153223
- 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);
153224
- return function(t) {
153225
- start.r = r2(t);
153226
- start.g = g2(t);
153227
- start.b = b(t);
153228
- start.opacity = opacity(t);
153229
- return start + "";
153230
- };
153231
- }
153232
- rgb2.gamma = rgbGamma2;
153233
- return rgb2;
153234
- }(1);
153235
- function numberArray(a2, b) {
153236
- if (!b) b = [];
153237
- var n2 = a2 ? Math.min(b.length, a2.length) : 0, c2 = b.slice(), i2;
153238
- return function(t) {
153239
- for (i2 = 0; i2 < n2; ++i2) c2[i2] = a2[i2] * (1 - t) + b[i2] * t;
153240
- return c2;
153241
- };
153242
- }
153243
- function isNumberArray(x) {
153244
- return ArrayBuffer.isView(x) && !(x instanceof DataView);
153245
- }
153246
- function genericArray(a2, b) {
153247
- var nb = b ? b.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x = new Array(na), c2 = new Array(nb), i2;
153248
- for (i2 = 0; i2 < na; ++i2) x[i2] = interpolate(a2[i2], b[i2]);
153249
- for (; i2 < nb; ++i2) c2[i2] = b[i2];
153250
- return function(t) {
153251
- for (i2 = 0; i2 < na; ++i2) c2[i2] = x[i2](t);
153252
- return c2;
153253
- };
153254
- }
153255
- function date(a2, b) {
153256
- var d = /* @__PURE__ */ new Date();
153257
- return a2 = +a2, b = +b, function(t) {
153258
- return d.setTime(a2 * (1 - t) + b * t), d;
153259
- };
153260
- }
153261
- function number(a2, b) {
153262
- return a2 = +a2, b = +b, function(t) {
153263
- return a2 * (1 - t) + b * t;
153264
- };
153265
- }
153266
- function object(a2, b) {
153267
- var i2 = {}, c2 = {}, k;
153268
- if (a2 === null || typeof a2 !== "object") a2 = {};
153269
- if (b === null || typeof b !== "object") b = {};
153270
- for (k in b) {
153271
- if (k in a2) {
153272
- i2[k] = interpolate(a2[k], b[k]);
153273
- } else {
153274
- c2[k] = b[k];
153275
- }
153276
- }
153277
- return function(t) {
153278
- for (k in i2) c2[k] = i2[k](t);
153279
- return c2;
153280
- };
153281
- }
153282
- var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
153283
- function zero(b) {
153284
- return function() {
153285
- return b;
153286
- };
153287
- }
153288
- function one(b) {
153289
- return function(t) {
153290
- return b(t) + "";
153291
- };
153292
- }
153293
- function string(a2, b) {
153294
- var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i2 = -1, s2 = [], q = [];
153295
- a2 = a2 + "", b = b + "";
153296
- while ((am = reA.exec(a2)) && (bm = reB.exec(b))) {
153297
- if ((bs = bm.index) > bi) {
153298
- bs = b.slice(bi, bs);
153299
- if (s2[i2]) s2[i2] += bs;
153300
- else s2[++i2] = bs;
153301
- }
153302
- if ((am = am[0]) === (bm = bm[0])) {
153303
- if (s2[i2]) s2[i2] += bm;
153304
- else s2[++i2] = bm;
153305
- } else {
153306
- s2[++i2] = null;
153307
- q.push({ i: i2, x: number(am, bm) });
153308
- }
153309
- bi = reB.lastIndex;
153310
- }
153311
- if (bi < b.length) {
153312
- bs = b.slice(bi);
153313
- if (s2[i2]) s2[i2] += bs;
153314
- else s2[++i2] = bs;
153315
- }
153316
- return s2.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function(t) {
153317
- for (var i22 = 0, o2; i22 < b; ++i22) s2[(o2 = q[i22]).i] = o2.x(t);
153318
- return s2.join("");
153319
- });
153320
- }
153321
- function interpolate(a2, b) {
153322
- var t = typeof b, c2;
153323
- return b == null || t === "boolean" ? constant(b) : (t === "number" ? number : t === "string" ? (c2 = color$1(b)) ? (b = c2, 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 : number)(a2, b);
153324
- }
153325
- function piecewise(interpolate$12, values2) {
153326
- if (values2 === void 0) values2 = interpolate$12, interpolate$12 = interpolate;
153327
- var i2 = 0, n2 = values2.length - 1, v = values2[0], I2 = new Array(n2 < 0 ? 0 : n2);
153328
- while (i2 < n2) I2[i2] = interpolate$12(v, v = values2[++i2]);
153329
- return function(t) {
153330
- var i22 = Math.max(0, Math.min(n2 - 1, Math.floor(t *= n2)));
153331
- return I2[i22](t - i22);
153332
- };
153333
- }
153334
- function quantize(interpolator, n2) {
153335
- var samples = new Array(n2);
153336
- for (var i2 = 0; i2 < n2; ++i2) samples[i2] = interpolator(i2 / (n2 - 1));
153337
- return samples;
153338
- }
153339
- function define(constructor, factory, prototype) {
153340
- constructor.prototype = factory.prototype = prototype;
153341
- prototype.constructor = constructor;
153342
- }
153343
- function extend(parent, definition) {
153344
- var prototype = Object.create(parent.prototype);
153345
- for (var key in definition) prototype[key] = definition[key];
153346
- return prototype;
153347
- }
153348
- function Color() {
153349
- }
153350
- var darker = 0.7;
153351
- var brighter = 1 / darker;
153352
- 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] + "\\)$");
153353
- var named = {
153354
- aliceblue: 15792383,
153355
- antiquewhite: 16444375,
153356
- aqua: 65535,
153357
- aquamarine: 8388564,
153358
- azure: 15794175,
153359
- beige: 16119260,
153360
- bisque: 16770244,
153361
- black: 0,
153362
- blanchedalmond: 16772045,
153363
- blue: 255,
153364
- blueviolet: 9055202,
153365
- brown: 10824234,
153366
- burlywood: 14596231,
153367
- cadetblue: 6266528,
153368
- chartreuse: 8388352,
153369
- chocolate: 13789470,
153370
- coral: 16744272,
153371
- cornflowerblue: 6591981,
153372
- cornsilk: 16775388,
153373
- crimson: 14423100,
153374
- cyan: 65535,
153375
- darkblue: 139,
153376
- darkcyan: 35723,
153377
- darkgoldenrod: 12092939,
153378
- darkgray: 11119017,
153379
- darkgreen: 25600,
153380
- darkgrey: 11119017,
153381
- darkkhaki: 12433259,
153382
- darkmagenta: 9109643,
153383
- darkolivegreen: 5597999,
153384
- darkorange: 16747520,
153385
- darkorchid: 10040012,
153386
- darkred: 9109504,
153387
- darksalmon: 15308410,
153388
- darkseagreen: 9419919,
153389
- darkslateblue: 4734347,
153390
- darkslategray: 3100495,
153391
- darkslategrey: 3100495,
153392
- darkturquoise: 52945,
153393
- darkviolet: 9699539,
153394
- deeppink: 16716947,
153395
- deepskyblue: 49151,
153396
- dimgray: 6908265,
153397
- dimgrey: 6908265,
153398
- dodgerblue: 2003199,
153399
- firebrick: 11674146,
153400
- floralwhite: 16775920,
153401
- forestgreen: 2263842,
153402
- fuchsia: 16711935,
153403
- gainsboro: 14474460,
153404
- ghostwhite: 16316671,
153405
- gold: 16766720,
153406
- goldenrod: 14329120,
153407
- gray: 8421504,
153408
- green: 32768,
153409
- greenyellow: 11403055,
153410
- grey: 8421504,
153411
- honeydew: 15794160,
153412
- hotpink: 16738740,
153413
- indianred: 13458524,
153414
- indigo: 4915330,
153415
- ivory: 16777200,
153416
- khaki: 15787660,
153417
- lavender: 15132410,
153418
- lavenderblush: 16773365,
153419
- lawngreen: 8190976,
153420
- lemonchiffon: 16775885,
153421
- lightblue: 11393254,
153422
- lightcoral: 15761536,
153423
- lightcyan: 14745599,
153424
- lightgoldenrodyellow: 16448210,
153425
- lightgray: 13882323,
153426
- lightgreen: 9498256,
153427
- lightgrey: 13882323,
153428
- lightpink: 16758465,
153429
- lightsalmon: 16752762,
153430
- lightseagreen: 2142890,
153431
- lightskyblue: 8900346,
153432
- lightslategray: 7833753,
153433
- lightslategrey: 7833753,
153434
- lightsteelblue: 11584734,
153435
- lightyellow: 16777184,
153436
- lime: 65280,
153437
- limegreen: 3329330,
153438
- linen: 16445670,
153439
- magenta: 16711935,
153440
- maroon: 8388608,
153441
- mediumaquamarine: 6737322,
153442
- mediumblue: 205,
153443
- mediumorchid: 12211667,
153444
- mediumpurple: 9662683,
153445
- mediumseagreen: 3978097,
153446
- mediumslateblue: 8087790,
153447
- mediumspringgreen: 64154,
153448
- mediumturquoise: 4772300,
153449
- mediumvioletred: 13047173,
153450
- midnightblue: 1644912,
153451
- mintcream: 16121850,
153452
- mistyrose: 16770273,
153453
- moccasin: 16770229,
153454
- navajowhite: 16768685,
153455
- navy: 128,
153456
- oldlace: 16643558,
153457
- olive: 8421376,
153458
- olivedrab: 7048739,
153459
- orange: 16753920,
153460
- orangered: 16729344,
153461
- orchid: 14315734,
153462
- palegoldenrod: 15657130,
153463
- palegreen: 10025880,
153464
- paleturquoise: 11529966,
153465
- palevioletred: 14381203,
153466
- papayawhip: 16773077,
153467
- peachpuff: 16767673,
153468
- peru: 13468991,
153469
- pink: 16761035,
153470
- plum: 14524637,
153471
- powderblue: 11591910,
153472
- purple: 8388736,
153473
- rebeccapurple: 6697881,
153474
- red: 16711680,
153475
- rosybrown: 12357519,
153476
- royalblue: 4286945,
153477
- saddlebrown: 9127187,
153478
- salmon: 16416882,
153479
- sandybrown: 16032864,
153480
- seagreen: 3050327,
153481
- seashell: 16774638,
153482
- sienna: 10506797,
153483
- silver: 12632256,
153484
- skyblue: 8900331,
153485
- slateblue: 6970061,
153486
- slategray: 7372944,
153487
- slategrey: 7372944,
153488
- snow: 16775930,
153489
- springgreen: 65407,
153490
- steelblue: 4620980,
153491
- tan: 13808780,
153492
- teal: 32896,
153493
- thistle: 14204888,
153494
- tomato: 16737095,
153495
- turquoise: 4251856,
153496
- violet: 15631086,
153497
- wheat: 16113331,
153498
- white: 16777215,
153499
- whitesmoke: 16119285,
153500
- yellow: 16776960,
153501
- yellowgreen: 10145074
153502
- };
153503
- define(Color, color, {
153504
- copy: function(channels2) {
153505
- return Object.assign(new this.constructor(), this, channels2);
153506
- },
153507
- displayable: function() {
153508
- return this.rgb().displayable();
153509
- },
153510
- hex: color_formatHex,
153511
- // Deprecated! Use color.formatHex.
153512
- formatHex: color_formatHex,
153513
- formatHsl: color_formatHsl,
153514
- formatRgb: color_formatRgb,
153515
- toString: color_formatRgb
153516
- });
153517
- function color_formatHex() {
153518
- return this.rgb().formatHex();
153519
- }
153520
- function color_formatHsl() {
153521
- return hslConvert(this).formatHsl();
153522
- }
153523
- function color_formatRgb() {
153524
- return this.rgb().formatRgb();
153525
- }
153526
- function color(format2) {
153527
- var m2, l2;
153528
- format2 = (format2 + "").trim().toLowerCase();
153529
- return (m2 = reHex.exec(format2)) ? (l2 = m2[1].length, m2 = parseInt(m2[1], 16), l2 === 6 ? rgbn(m2) : l2 === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l2 === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l2 === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
153530
- }
153531
- function rgbn(n2) {
153532
- return new Rgb(n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255, 1);
153533
- }
153534
- function rgba(r2, g2, b, a2) {
153535
- if (a2 <= 0) r2 = g2 = b = NaN;
153536
- return new Rgb(r2, g2, b, a2);
153537
- }
153538
- function rgbConvert(o2) {
153539
- if (!(o2 instanceof Color)) o2 = color(o2);
153540
- if (!o2) return new Rgb();
153541
- o2 = o2.rgb();
153542
- return new Rgb(o2.r, o2.g, o2.b, o2.opacity);
153543
- }
153544
- function rgb(r2, g2, b, opacity) {
153545
- return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g2, b, opacity == null ? 1 : opacity);
153546
- }
153547
- function Rgb(r2, g2, b, opacity) {
153548
- this.r = +r2;
153549
- this.g = +g2;
153550
- this.b = +b;
153551
- this.opacity = +opacity;
153552
- }
153553
- define(Rgb, rgb, extend(Color, {
153554
- brighter: function(k) {
153555
- k = k == null ? brighter : Math.pow(brighter, k);
153556
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
153557
- },
153558
- darker: function(k) {
153559
- k = k == null ? darker : Math.pow(darker, k);
153560
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
153561
- },
153562
- rgb: function() {
153563
- return this;
153564
- },
153565
- displayable: function() {
153566
- 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);
153567
- },
153568
- hex: rgb_formatHex,
153569
- // Deprecated! Use color.formatHex.
153570
- formatHex: rgb_formatHex,
153571
- formatRgb: rgb_formatRgb,
153572
- toString: rgb_formatRgb
153573
- }));
153574
- function rgb_formatHex() {
153575
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
153576
- }
153577
- function rgb_formatRgb() {
153578
- var a2 = this.opacity;
153579
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
153580
- 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 + ")");
153581
- }
153582
- function hex(value) {
153583
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
153584
- return (value < 16 ? "0" : "") + value.toString(16);
153585
- }
153586
- function hsla(h, s2, l2, a2) {
153587
- if (a2 <= 0) h = s2 = l2 = NaN;
153588
- else if (l2 <= 0 || l2 >= 1) h = s2 = NaN;
153589
- else if (s2 <= 0) h = NaN;
153590
- return new Hsl(h, s2, l2, a2);
153591
- }
153592
- function hslConvert(o2) {
153593
- if (o2 instanceof Hsl) return new Hsl(o2.h, o2.s, o2.l, o2.opacity);
153594
- if (!(o2 instanceof Color)) o2 = color(o2);
153595
- if (!o2) return new Hsl();
153596
- if (o2 instanceof Hsl) return o2;
153597
- o2 = o2.rgb();
153598
- 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;
153599
- if (s2) {
153600
- if (r2 === max2) h = (g2 - b) / s2 + (g2 < b) * 6;
153601
- else if (g2 === max2) h = (b - r2) / s2 + 2;
153602
- else h = (r2 - g2) / s2 + 4;
153603
- s2 /= l2 < 0.5 ? max2 + min : 2 - max2 - min;
153604
- h *= 60;
153605
- } else {
153606
- s2 = l2 > 0 && l2 < 1 ? 0 : h;
153607
- }
153608
- return new Hsl(h, s2, l2, o2.opacity);
153609
- }
153610
- function hsl(h, s2, l2, opacity) {
153611
- return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s2, l2, opacity == null ? 1 : opacity);
153612
- }
153613
- function Hsl(h, s2, l2, opacity) {
153614
- this.h = +h;
153615
- this.s = +s2;
153616
- this.l = +l2;
153617
- this.opacity = +opacity;
153618
- }
153619
- define(Hsl, hsl, extend(Color, {
153620
- brighter: function(k) {
153621
- k = k == null ? brighter : Math.pow(brighter, k);
153622
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
153623
- },
153624
- darker: function(k) {
153625
- k = k == null ? darker : Math.pow(darker, k);
153626
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
153627
- },
153628
- rgb: function() {
153629
- 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;
153630
- return new Rgb(
153631
- hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
153632
- hsl2rgb(h, m1, m2),
153633
- hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
153634
- this.opacity
153635
- );
153636
- },
153637
- displayable: function() {
153638
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
153639
- },
153640
- formatHsl: function() {
153641
- var a2 = this.opacity;
153642
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
153643
- return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
153644
- }
153645
- }));
153646
- function hsl2rgb(h, m1, m2) {
153647
- return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;
153648
- }
153649
152909
  var colorScale;
153650
152910
  var hasRequiredColorScale;
153651
152911
  function requireColorScale() {
@@ -153842,14 +153102,14 @@ function Legend(props) {
153842
153102
  xMin + (xMax - xMin) * rMin,
153843
153103
  xMax - (xMax - xMin) * (1 - rMax)
153844
153104
  ];
153845
- const x = linear$1().domain(scaledDataExtent).range([0.5, width2 - 0.5]);
153105
+ const x = linear().domain(scaledDataExtent).range([0.5, width2 - 0.5]);
153846
153106
  const axisTicks = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`).style("font-size", "10px").call(axisBottom(x).tickValues(scaledDataExtent));
153847
153107
  axisTicks.selectAll("line,path").style("stroke", foregroundColor);
153848
153108
  axisTicks.selectAll("text").style("fill", foregroundColor);
153849
153109
  axisTicks.selectAll("text").attr("text-anchor", (d, i2) => i2 === 0 ? "start" : "end");
153850
153110
  } else if (contoursVisible) {
153851
153111
  const tSize = 12;
153852
- const xPercentile = linear$1().domain([0, 1]).range([tSize / 2, width2 - tSize / 2 - 2]);
153112
+ const xPercentile = linear().domain([0, 1]).range([tSize / 2, width2 - tSize / 2 - 2]);
153853
153113
  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));
153854
153114
  axisTicks.selectAll("line,path").style("stroke", foregroundColor);
153855
153115
  axisTicks.selectAll("text").style("fill", foregroundColor);