@inf-monkeys-tech/monkeys-design 0.4.55 → 0.4.56

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.
Files changed (91) hide show
  1. package/README.md +29 -5
  2. package/dist/{LandingPage-CR5KyIwR.d.mts → LandingPage-D7FF9gnM.d.mts} +3 -3
  3. package/dist/{LandingPage-CR5KyIwR.d.ts → LandingPage-D7FF9gnM.d.ts} +3 -3
  4. package/dist/components/base/index.d.mts +3 -3
  5. package/dist/components/base/index.d.ts +3 -3
  6. package/dist/components/base/index.js +7229 -2042
  7. package/dist/components/base/index.js.map +1 -1
  8. package/dist/components/base/index.mjs +7215 -2052
  9. package/dist/components/base/index.mjs.map +1 -1
  10. package/dist/components/data-explorer/index.d.mts +1 -1
  11. package/dist/components/data-explorer/index.d.ts +1 -1
  12. package/dist/components/data-explorer/index.js +166 -10
  13. package/dist/components/data-explorer/index.js.map +1 -1
  14. package/dist/components/data-explorer/index.mjs +167 -11
  15. package/dist/components/data-explorer/index.mjs.map +1 -1
  16. package/dist/components/layout/index.d.mts +1 -1
  17. package/dist/components/layout/index.d.ts +1 -1
  18. package/dist/components/layout/index.js +769 -1603
  19. package/dist/components/layout/index.js.map +1 -1
  20. package/dist/components/layout/index.mjs +772 -1607
  21. package/dist/components/layout/index.mjs.map +1 -1
  22. package/dist/components/login/index.d.mts +29 -29
  23. package/dist/components/login/index.d.ts +29 -29
  24. package/dist/components/toast/index.d.mts +2 -6
  25. package/dist/components/toast/index.d.ts +2 -6
  26. package/dist/components/toast/index.js +173 -11
  27. package/dist/components/toast/index.js.map +1 -1
  28. package/dist/components/toast/index.mjs +174 -12
  29. package/dist/components/toast/index.mjs.map +1 -1
  30. package/dist/components/toolbar/index.js +231 -21
  31. package/dist/components/toolbar/index.js.map +1 -1
  32. package/dist/components/toolbar/index.mjs +231 -21
  33. package/dist/components/toolbar/index.mjs.map +1 -1
  34. package/dist/components/workbench/index.d.mts +6 -6
  35. package/dist/components/workbench/index.d.ts +6 -6
  36. package/dist/components/workbench/index.js +2281 -1030
  37. package/dist/components/workbench/index.js.map +1 -1
  38. package/dist/components/workbench/index.mjs +2282 -1031
  39. package/dist/components/workbench/index.mjs.map +1 -1
  40. package/dist/icons/oauth/index.d.mts +5 -5
  41. package/dist/icons/oauth/index.d.ts +5 -5
  42. package/dist/index.d.mts +12 -8
  43. package/dist/index.d.ts +12 -8
  44. package/dist/index.js +7911 -4772
  45. package/dist/index.js.map +1 -1
  46. package/dist/index.mjs +7874 -4773
  47. package/dist/index.mjs.map +1 -1
  48. package/dist/locale/index.d.mts +236 -0
  49. package/dist/locale/index.d.ts +236 -0
  50. package/dist/locale/index.js +338 -0
  51. package/dist/locale/index.js.map +1 -0
  52. package/dist/locale/index.mjs +332 -0
  53. package/dist/locale/index.mjs.map +1 -0
  54. package/dist/palette/index.js +259 -2748
  55. package/dist/palette/index.js.map +1 -1
  56. package/dist/palette/index.mjs +255 -2748
  57. package/dist/palette/index.mjs.map +1 -1
  58. package/dist/provider/index.d.mts +51 -0
  59. package/dist/provider/index.d.ts +51 -0
  60. package/dist/provider/index.js +2688 -0
  61. package/dist/provider/index.js.map +1 -0
  62. package/dist/provider/index.mjs +2677 -0
  63. package/dist/provider/index.mjs.map +1 -0
  64. package/dist/styles.css +1 -0
  65. package/dist/theme-CJlW1TtA.d.mts +142 -0
  66. package/dist/{theme-CUATVszl.d.mts → theme-CplaoMqT.d.mts} +2 -2
  67. package/dist/{theme-BuvXrHFY.d.ts → theme-DPVX8CfK.d.ts} +2 -2
  68. package/dist/theme-r7GYhlCk.d.ts +142 -0
  69. package/dist/theme-system/index.d.mts +5 -92
  70. package/dist/theme-system/index.d.ts +5 -92
  71. package/dist/theme-system/index.js +295 -4329
  72. package/dist/theme-system/index.js.map +1 -1
  73. package/dist/theme-system/index.mjs +183 -4221
  74. package/dist/theme-system/index.mjs.map +1 -1
  75. package/dist/themes/artist/index.d.mts +3 -3
  76. package/dist/themes/artist/index.d.ts +3 -3
  77. package/dist/themes/bsd/index.d.mts +3 -3
  78. package/dist/themes/bsd/index.d.ts +3 -3
  79. package/dist/themes/concept/index.d.mts +2 -2
  80. package/dist/themes/concept/index.d.ts +2 -2
  81. package/dist/themes/default/index.d.mts +3 -3
  82. package/dist/themes/default/index.d.ts +3 -3
  83. package/dist/types-BkWanMMW.d.mts +159 -0
  84. package/dist/types-BkWanMMW.d.ts +159 -0
  85. package/dist/types-DpRjPpxY.d.mts +93 -0
  86. package/dist/{types-CL6yBAmi.d.mts → types-DvHvN4RJ.d.mts} +514 -10
  87. package/dist/{types-CL6yBAmi.d.ts → types-DvHvN4RJ.d.ts} +514 -10
  88. package/dist/types-vkJZUngT.d.ts +93 -0
  89. package/package.json +52 -4
  90. package/dist/theme-CPXLKeLc.d.mts +0 -101
  91. package/dist/theme-Chdxsqt1.d.ts +0 -101
@@ -1,3 +1,5 @@
1
+ import chroma2 from 'chroma-js';
2
+
1
3
  var __create = Object.create;
2
4
  var __defProp = Object.defineProperty;
3
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -28,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
30
  var require_lodash = __commonJS({
29
31
  "node_modules/lodash/lodash.js"(exports$1, module) {
30
32
  (function() {
31
- var undefined2;
33
+ var undefined$1;
32
34
  var VERSION = "4.17.23";
33
35
  var LARGE_ARRAY_SIZE = 200;
34
36
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
@@ -530,12 +532,12 @@ var require_lodash = __commonJS({
530
532
  }
531
533
  function baseProperty(key) {
532
534
  return function(object) {
533
- return object == null ? undefined2 : object[key];
535
+ return object == null ? undefined$1 : object[key];
534
536
  };
535
537
  }
536
538
  function basePropertyOf(object) {
537
539
  return function(key) {
538
- return object == null ? undefined2 : object[key];
540
+ return object == null ? undefined$1 : object[key];
539
541
  };
540
542
  }
541
543
  function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
@@ -556,8 +558,8 @@ var require_lodash = __commonJS({
556
558
  var result, index = -1, length = array.length;
557
559
  while (++index < length) {
558
560
  var current = iteratee(array[index]);
559
- if (current !== undefined2) {
560
- result = result === undefined2 ? current : result + current;
561
+ if (current !== undefined$1) {
562
+ result = result === undefined$1 ? current : result + current;
561
563
  }
562
564
  }
563
565
  return result;
@@ -617,7 +619,7 @@ var require_lodash = __commonJS({
617
619
  return "\\" + stringEscapes[chr];
618
620
  }
619
621
  function getValue(object, key) {
620
- return object == null ? undefined2 : object[key];
622
+ return object == null ? undefined$1 : object[key];
621
623
  }
622
624
  function hasUnicode(string) {
623
625
  return reHasUnicode.test(string);
@@ -731,7 +733,7 @@ var require_lodash = __commonJS({
731
733
  var reIsNative = RegExp2(
732
734
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
733
735
  );
734
- var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2;
736
+ var Buffer2 = moduleExports ? context.Buffer : undefined$1, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined$1, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined$1, symIterator = Symbol2 ? Symbol2.iterator : undefined$1, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined$1;
735
737
  var defineProperty = (function() {
736
738
  try {
737
739
  var func = getNative(Object2, "defineProperty");
@@ -741,12 +743,12 @@ var require_lodash = __commonJS({
741
743
  }
742
744
  })();
743
745
  var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date && Date.now !== root.Date.now && Date.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;
744
- var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
746
+ var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined$1, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse;
745
747
  var DataView = getNative(context, "DataView"), Map = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create");
746
748
  var metaMap = WeakMap && new WeakMap();
747
749
  var realNames = {};
748
750
  var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
749
- var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2;
751
+ var symbolProto = Symbol2 ? Symbol2.prototype : undefined$1, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined$1, symbolToString = symbolProto ? symbolProto.toString : undefined$1;
750
752
  function lodash(value) {
751
753
  if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {
752
754
  if (value instanceof LodashWrapper) {
@@ -770,7 +772,7 @@ var require_lodash = __commonJS({
770
772
  }
771
773
  object.prototype = proto;
772
774
  var result2 = new object();
773
- object.prototype = undefined2;
775
+ object.prototype = undefined$1;
774
776
  return result2;
775
777
  };
776
778
  })();
@@ -781,7 +783,7 @@ var require_lodash = __commonJS({
781
783
  this.__actions__ = [];
782
784
  this.__chain__ = !!chainAll;
783
785
  this.__index__ = 0;
784
- this.__values__ = undefined2;
786
+ this.__values__ = undefined$1;
785
787
  }
786
788
  lodash.templateSettings = {
787
789
  /**
@@ -911,18 +913,18 @@ var require_lodash = __commonJS({
911
913
  var data = this.__data__;
912
914
  if (nativeCreate) {
913
915
  var result2 = data[key];
914
- return result2 === HASH_UNDEFINED ? undefined2 : result2;
916
+ return result2 === HASH_UNDEFINED ? undefined$1 : result2;
915
917
  }
916
- return hasOwnProperty.call(data, key) ? data[key] : undefined2;
918
+ return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
917
919
  }
918
920
  function hashHas(key) {
919
921
  var data = this.__data__;
920
- return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key);
922
+ return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
921
923
  }
922
924
  function hashSet(key, value) {
923
925
  var data = this.__data__;
924
926
  this.size += this.has(key) ? 0 : 1;
925
- data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value;
927
+ data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
926
928
  return this;
927
929
  }
928
930
  Hash.prototype.clear = hashClear;
@@ -958,7 +960,7 @@ var require_lodash = __commonJS({
958
960
  }
959
961
  function listCacheGet(key) {
960
962
  var data = this.__data__, index = assocIndexOf(data, key);
961
- return index < 0 ? undefined2 : data[index][1];
963
+ return index < 0 ? undefined$1 : data[index][1];
962
964
  }
963
965
  function listCacheHas(key) {
964
966
  return assocIndexOf(this.__data__, key) > -1;
@@ -1086,7 +1088,7 @@ var require_lodash = __commonJS({
1086
1088
  }
1087
1089
  function arraySample(array) {
1088
1090
  var length = array.length;
1089
- return length ? array[baseRandom(0, length - 1)] : undefined2;
1091
+ return length ? array[baseRandom(0, length - 1)] : undefined$1;
1090
1092
  }
1091
1093
  function arraySampleSize(array, n) {
1092
1094
  return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));
@@ -1095,13 +1097,13 @@ var require_lodash = __commonJS({
1095
1097
  return shuffleSelf(copyArray(array));
1096
1098
  }
1097
1099
  function assignMergeValue(object, key, value) {
1098
- if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) {
1100
+ if (value !== undefined$1 && !eq(object[key], value) || value === undefined$1 && !(key in object)) {
1099
1101
  baseAssignValue(object, key, value);
1100
1102
  }
1101
1103
  }
1102
1104
  function assignValue(object, key, value) {
1103
1105
  var objValue = object[key];
1104
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) {
1106
+ if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined$1 && !(key in object)) {
1105
1107
  baseAssignValue(object, key, value);
1106
1108
  }
1107
1109
  }
@@ -1141,16 +1143,16 @@ var require_lodash = __commonJS({
1141
1143
  function baseAt(object, paths) {
1142
1144
  var index = -1, length = paths.length, result2 = Array2(length), skip = object == null;
1143
1145
  while (++index < length) {
1144
- result2[index] = skip ? undefined2 : get(object, paths[index]);
1146
+ result2[index] = skip ? undefined$1 : get(object, paths[index]);
1145
1147
  }
1146
1148
  return result2;
1147
1149
  }
1148
1150
  function baseClamp(number, lower, upper) {
1149
1151
  if (number === number) {
1150
- if (upper !== undefined2) {
1152
+ if (upper !== undefined$1) {
1151
1153
  number = number <= upper ? number : upper;
1152
1154
  }
1153
- if (lower !== undefined2) {
1155
+ if (lower !== undefined$1) {
1154
1156
  number = number >= lower ? number : lower;
1155
1157
  }
1156
1158
  }
@@ -1161,7 +1163,7 @@ var require_lodash = __commonJS({
1161
1163
  if (customizer) {
1162
1164
  result2 = object ? customizer(value, key, object, stack) : customizer(value);
1163
1165
  }
1164
- if (result2 !== undefined2) {
1166
+ if (result2 !== undefined$1) {
1165
1167
  return result2;
1166
1168
  }
1167
1169
  if (!isObject(value)) {
@@ -1206,7 +1208,7 @@ var require_lodash = __commonJS({
1206
1208
  });
1207
1209
  }
1208
1210
  var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
1209
- var props = isArr ? undefined2 : keysFunc(value);
1211
+ var props = isArr ? undefined$1 : keysFunc(value);
1210
1212
  arrayEach(props || value, function(subValue, key2) {
1211
1213
  if (props) {
1212
1214
  key2 = subValue;
@@ -1230,7 +1232,7 @@ var require_lodash = __commonJS({
1230
1232
  object = Object2(object);
1231
1233
  while (length--) {
1232
1234
  var key = props[length], predicate = source[key], value = object[key];
1233
- if (value === undefined2 && !(key in object) || !predicate(value)) {
1235
+ if (value === undefined$1 && !(key in object) || !predicate(value)) {
1234
1236
  return false;
1235
1237
  }
1236
1238
  }
@@ -1241,7 +1243,7 @@ var require_lodash = __commonJS({
1241
1243
  throw new TypeError2(FUNC_ERROR_TEXT);
1242
1244
  }
1243
1245
  return setTimeout(function() {
1244
- func.apply(undefined2, args);
1246
+ func.apply(undefined$1, args);
1245
1247
  }, wait);
1246
1248
  }
1247
1249
  function baseDifference(array, values2, iteratee2, comparator) {
@@ -1292,7 +1294,7 @@ var require_lodash = __commonJS({
1292
1294
  var index = -1, length = array.length;
1293
1295
  while (++index < length) {
1294
1296
  var value = array[index], current = iteratee2(value);
1295
- if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) {
1297
+ if (current != null && (computed === undefined$1 ? current === current && !isSymbol(current) : comparator(current, computed))) {
1296
1298
  var computed = current, result2 = value;
1297
1299
  }
1298
1300
  }
@@ -1304,7 +1306,7 @@ var require_lodash = __commonJS({
1304
1306
  if (start < 0) {
1305
1307
  start = -start > length ? 0 : length + start;
1306
1308
  }
1307
- end = end === undefined2 || end > length ? length : toInteger(end);
1309
+ end = end === undefined$1 || end > length ? length : toInteger(end);
1308
1310
  if (end < 0) {
1309
1311
  end += length;
1310
1312
  }
@@ -1360,7 +1362,7 @@ var require_lodash = __commonJS({
1360
1362
  while (object != null && index < length) {
1361
1363
  object = object[toKey(path[index++])];
1362
1364
  }
1363
- return index && index == length ? object : undefined2;
1365
+ return index && index == length ? object : undefined$1;
1364
1366
  }
1365
1367
  function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1366
1368
  var result2 = keysFunc(object);
@@ -1368,7 +1370,7 @@ var require_lodash = __commonJS({
1368
1370
  }
1369
1371
  function baseGetTag(value) {
1370
1372
  if (value == null) {
1371
- return value === undefined2 ? undefinedTag : nullTag;
1373
+ return value === undefined$1 ? undefinedTag : nullTag;
1372
1374
  }
1373
1375
  return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value);
1374
1376
  }
@@ -1392,7 +1394,7 @@ var require_lodash = __commonJS({
1392
1394
  array = arrayMap(array, baseUnary(iteratee2));
1393
1395
  }
1394
1396
  maxLength = nativeMin(array.length, maxLength);
1395
- caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2;
1397
+ caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined$1;
1396
1398
  }
1397
1399
  array = arrays[0];
1398
1400
  var index = -1, seen = caches[0];
@@ -1426,7 +1428,7 @@ var require_lodash = __commonJS({
1426
1428
  path = castPath(path, object);
1427
1429
  object = parent(object, path);
1428
1430
  var func = object == null ? object : object[toKey(last(path))];
1429
- return func == null ? undefined2 : apply(func, object, args);
1431
+ return func == null ? undefined$1 : apply(func, object, args);
1430
1432
  }
1431
1433
  function baseIsArguments(value) {
1432
1434
  return isObjectLike(value) && baseGetTag(value) == argsTag;
@@ -1495,7 +1497,7 @@ var require_lodash = __commonJS({
1495
1497
  data = matchData[index];
1496
1498
  var key = data[0], objValue = object[key], srcValue = data[1];
1497
1499
  if (noCustomizer && data[2]) {
1498
- if (objValue === undefined2 && !(key in object)) {
1500
+ if (objValue === undefined$1 && !(key in object)) {
1499
1501
  return false;
1500
1502
  }
1501
1503
  } else {
@@ -1503,7 +1505,7 @@ var require_lodash = __commonJS({
1503
1505
  if (customizer) {
1504
1506
  var result2 = customizer(objValue, srcValue, key, object, source, stack);
1505
1507
  }
1506
- if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
1508
+ if (!(result2 === undefined$1 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) {
1507
1509
  return false;
1508
1510
  }
1509
1511
  }
@@ -1587,7 +1589,7 @@ var require_lodash = __commonJS({
1587
1589
  }
1588
1590
  return function(object) {
1589
1591
  var objValue = get(object, path);
1590
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1592
+ return objValue === undefined$1 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
1591
1593
  };
1592
1594
  }
1593
1595
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -1599,8 +1601,8 @@ var require_lodash = __commonJS({
1599
1601
  if (isObject(srcValue)) {
1600
1602
  baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1601
1603
  } else {
1602
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2;
1603
- if (newValue === undefined2) {
1604
+ var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined$1;
1605
+ if (newValue === undefined$1) {
1604
1606
  newValue = srcValue;
1605
1607
  }
1606
1608
  assignMergeValue(object, key, newValue);
@@ -1613,8 +1615,8 @@ var require_lodash = __commonJS({
1613
1615
  assignMergeValue(object, key, stacked);
1614
1616
  return;
1615
1617
  }
1616
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2;
1617
- var isCommon = newValue === undefined2;
1618
+ var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined$1;
1619
+ var isCommon = newValue === undefined$1;
1618
1620
  if (isCommon) {
1619
1621
  var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1620
1622
  newValue = srcValue;
@@ -1656,7 +1658,7 @@ var require_lodash = __commonJS({
1656
1658
  return;
1657
1659
  }
1658
1660
  n += n < 0 ? length : 0;
1659
- return isIndex(n, length) ? array[n] : undefined2;
1661
+ return isIndex(n, length) ? array[n] : undefined$1;
1660
1662
  }
1661
1663
  function baseOrderBy(collection, iteratees, orders) {
1662
1664
  if (iteratees.length) {
@@ -1787,8 +1789,8 @@ var require_lodash = __commonJS({
1787
1789
  }
1788
1790
  if (index != lastIndex) {
1789
1791
  var objValue = nested[key];
1790
- newValue = customizer ? customizer(objValue, key, nested) : undefined2;
1791
- if (newValue === undefined2) {
1792
+ newValue = customizer ? customizer(objValue, key, nested) : undefined$1;
1793
+ if (newValue === undefined$1) {
1792
1794
  newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
1793
1795
  }
1794
1796
  }
@@ -1858,9 +1860,9 @@ var require_lodash = __commonJS({
1858
1860
  return 0;
1859
1861
  }
1860
1862
  value = iteratee2(value);
1861
- var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2;
1863
+ var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined$1;
1862
1864
  while (low < high) {
1863
- var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
1865
+ var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined$1, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed);
1864
1866
  if (valIsNaN) {
1865
1867
  var setLow = retHighest || othIsReflexive;
1866
1868
  } else if (valIsUndefined) {
@@ -2017,7 +2019,7 @@ var require_lodash = __commonJS({
2017
2019
  function baseZipObject(props, values2, assignFunc) {
2018
2020
  var index = -1, length = props.length, valsLength = values2.length, result2 = {};
2019
2021
  while (++index < length) {
2020
- var value = index < valsLength ? values2[index] : undefined2;
2022
+ var value = index < valsLength ? values2[index] : undefined$1;
2021
2023
  assignFunc(result2, props[index], value);
2022
2024
  }
2023
2025
  return result2;
@@ -2037,7 +2039,7 @@ var require_lodash = __commonJS({
2037
2039
  var castRest = baseRest;
2038
2040
  function castSlice(array, start, end) {
2039
2041
  var length = array.length;
2040
- end = end === undefined2 ? length : end;
2042
+ end = end === undefined$1 ? length : end;
2041
2043
  return !start && end >= length ? array : baseSlice(array, start, end);
2042
2044
  }
2043
2045
  var clearTimeout = ctxClearTimeout || function(id) {
@@ -2074,8 +2076,8 @@ var require_lodash = __commonJS({
2074
2076
  }
2075
2077
  function compareAscending(value, other) {
2076
2078
  if (value !== other) {
2077
- var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
2078
- var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
2079
+ var valIsDefined = value !== undefined$1, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value);
2080
+ var othIsDefined = other !== undefined$1, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other);
2079
2081
  if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) {
2080
2082
  return 1;
2081
2083
  }
@@ -2144,8 +2146,8 @@ var require_lodash = __commonJS({
2144
2146
  var index = -1, length = props.length;
2145
2147
  while (++index < length) {
2146
2148
  var key = props[index];
2147
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2;
2148
- if (newValue === undefined2) {
2149
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined$1;
2150
+ if (newValue === undefined$1) {
2149
2151
  newValue = source[key];
2150
2152
  }
2151
2153
  if (isNew) {
@@ -2170,10 +2172,10 @@ var require_lodash = __commonJS({
2170
2172
  }
2171
2173
  function createAssigner(assigner) {
2172
2174
  return baseRest(function(object, sources) {
2173
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2;
2174
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2;
2175
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined$1, guard = length > 2 ? sources[2] : undefined$1;
2176
+ customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined$1;
2175
2177
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
2176
- customizer = length < 3 ? undefined2 : customizer;
2178
+ customizer = length < 3 ? undefined$1 : customizer;
2177
2179
  length = 1;
2178
2180
  }
2179
2181
  object = Object2(object);
@@ -2226,7 +2228,7 @@ var require_lodash = __commonJS({
2226
2228
  function createCaseFirst(methodName) {
2227
2229
  return function(string) {
2228
2230
  string = toString(string);
2229
- var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2;
2231
+ var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined$1;
2230
2232
  var chr = strSymbols ? strSymbols[0] : string.charAt(0);
2231
2233
  var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
2232
2234
  return chr[methodName]() + trailing;
@@ -2277,11 +2279,11 @@ var require_lodash = __commonJS({
2277
2279
  bitmask,
2278
2280
  createHybrid,
2279
2281
  wrapper.placeholder,
2280
- undefined2,
2282
+ undefined$1,
2281
2283
  args,
2282
2284
  holders,
2283
- undefined2,
2284
- undefined2,
2285
+ undefined$1,
2286
+ undefined$1,
2285
2287
  arity - length
2286
2288
  );
2287
2289
  }
@@ -2301,7 +2303,7 @@ var require_lodash = __commonJS({
2301
2303
  };
2302
2304
  }
2303
2305
  var index = findIndexFunc(collection, predicate, fromIndex);
2304
- return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined2;
2306
+ return index > -1 ? iterable[iteratee2 ? collection[index] : index] : undefined$1;
2305
2307
  };
2306
2308
  }
2307
2309
  function createFlow(fromRight) {
@@ -2322,7 +2324,7 @@ var require_lodash = __commonJS({
2322
2324
  index = wrapper ? index : length;
2323
2325
  while (++index < length) {
2324
2326
  func = funcs[index];
2325
- var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2;
2327
+ var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
2326
2328
  if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
2327
2329
  wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
2328
2330
  } else {
@@ -2343,7 +2345,7 @@ var require_lodash = __commonJS({
2343
2345
  });
2344
2346
  }
2345
2347
  function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) {
2346
- var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func);
2348
+ var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined$1 : createCtor(func);
2347
2349
  function wrapper() {
2348
2350
  var length = arguments.length, args = Array2(length), index = length;
2349
2351
  while (index--) {
@@ -2399,14 +2401,14 @@ var require_lodash = __commonJS({
2399
2401
  function createMathOperation(operator, defaultValue) {
2400
2402
  return function(value, other) {
2401
2403
  var result2;
2402
- if (value === undefined2 && other === undefined2) {
2404
+ if (value === undefined$1 && other === undefined$1) {
2403
2405
  return defaultValue;
2404
2406
  }
2405
- if (value !== undefined2) {
2407
+ if (value !== undefined$1) {
2406
2408
  result2 = value;
2407
2409
  }
2408
- if (other !== undefined2) {
2409
- if (result2 === undefined2) {
2410
+ if (other !== undefined$1) {
2411
+ if (result2 === undefined$1) {
2410
2412
  return other;
2411
2413
  }
2412
2414
  if (typeof value == "string" || typeof other == "string") {
@@ -2433,7 +2435,7 @@ var require_lodash = __commonJS({
2433
2435
  });
2434
2436
  }
2435
2437
  function createPadding(length, chars) {
2436
- chars = chars === undefined2 ? " " : baseToString(chars);
2438
+ chars = chars === undefined$1 ? " " : baseToString(chars);
2437
2439
  var charsLength = chars.length;
2438
2440
  if (charsLength < 2) {
2439
2441
  return charsLength ? baseRepeat(chars, length) : chars;
@@ -2458,16 +2460,16 @@ var require_lodash = __commonJS({
2458
2460
  function createRange(fromRight) {
2459
2461
  return function(start, end, step) {
2460
2462
  if (step && typeof step != "number" && isIterateeCall(start, end, step)) {
2461
- end = step = undefined2;
2463
+ end = step = undefined$1;
2462
2464
  }
2463
2465
  start = toFinite(start);
2464
- if (end === undefined2) {
2466
+ if (end === undefined$1) {
2465
2467
  end = start;
2466
2468
  start = 0;
2467
2469
  } else {
2468
2470
  end = toFinite(end);
2469
2471
  }
2470
- step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step);
2472
+ step = step === undefined$1 ? start < end ? 1 : -1 : toFinite(step);
2471
2473
  return baseRange(start, end, step, fromRight);
2472
2474
  };
2473
2475
  }
@@ -2481,7 +2483,7 @@ var require_lodash = __commonJS({
2481
2483
  };
2482
2484
  }
2483
2485
  function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) {
2484
- var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials;
2486
+ var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined$1, newHoldersRight = isCurry ? undefined$1 : holders, newPartials = isCurry ? partials : undefined$1, newPartialsRight = isCurry ? undefined$1 : partials;
2485
2487
  bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG;
2486
2488
  bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);
2487
2489
  if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {
@@ -2499,7 +2501,7 @@ var require_lodash = __commonJS({
2499
2501
  ary2,
2500
2502
  arity
2501
2503
  ];
2502
- var result2 = wrapFunc.apply(undefined2, newData);
2504
+ var result2 = wrapFunc.apply(undefined$1, newData);
2503
2505
  if (isLaziable(func)) {
2504
2506
  setData(result2, newData);
2505
2507
  }
@@ -2542,16 +2544,16 @@ var require_lodash = __commonJS({
2542
2544
  var length = partials ? partials.length : 0;
2543
2545
  if (!length) {
2544
2546
  bitmask &= -97;
2545
- partials = holders = undefined2;
2547
+ partials = holders = undefined$1;
2546
2548
  }
2547
- ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0);
2548
- arity = arity === undefined2 ? arity : toInteger(arity);
2549
+ ary2 = ary2 === undefined$1 ? ary2 : nativeMax(toInteger(ary2), 0);
2550
+ arity = arity === undefined$1 ? arity : toInteger(arity);
2549
2551
  length -= holders ? holders.length : 0;
2550
2552
  if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {
2551
2553
  var partialsRight = partials, holdersRight = holders;
2552
- partials = holders = undefined2;
2554
+ partials = holders = undefined$1;
2553
2555
  }
2554
- var data = isBindKey ? undefined2 : getData(func);
2556
+ var data = isBindKey ? undefined$1 : getData(func);
2555
2557
  var newData = [
2556
2558
  func,
2557
2559
  bitmask,
@@ -2572,7 +2574,7 @@ var require_lodash = __commonJS({
2572
2574
  thisArg = newData[2];
2573
2575
  partials = newData[3];
2574
2576
  holders = newData[4];
2575
- arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
2577
+ arity = newData[9] = newData[9] === undefined$1 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
2576
2578
  if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {
2577
2579
  bitmask &= -25;
2578
2580
  }
@@ -2583,13 +2585,13 @@ var require_lodash = __commonJS({
2583
2585
  } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {
2584
2586
  result2 = createPartial(func, bitmask, thisArg, partials);
2585
2587
  } else {
2586
- result2 = createHybrid.apply(undefined2, newData);
2588
+ result2 = createHybrid.apply(undefined$1, newData);
2587
2589
  }
2588
2590
  var setter = data ? baseSetData : setData;
2589
2591
  return setWrapToString(setter(result2, newData), func, bitmask);
2590
2592
  }
2591
2593
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
2592
- if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
2594
+ if (objValue === undefined$1 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) {
2593
2595
  return srcValue;
2594
2596
  }
2595
2597
  return objValue;
@@ -2597,13 +2599,13 @@ var require_lodash = __commonJS({
2597
2599
  function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
2598
2600
  if (isObject(objValue) && isObject(srcValue)) {
2599
2601
  stack.set(srcValue, objValue);
2600
- baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack);
2602
+ baseMerge(objValue, srcValue, undefined$1, customDefaultsMerge, stack);
2601
2603
  stack["delete"](srcValue);
2602
2604
  }
2603
2605
  return objValue;
2604
2606
  }
2605
2607
  function customOmitClone(value) {
2606
- return isPlainObject(value) ? undefined2 : value;
2608
+ return isPlainObject(value) ? undefined$1 : value;
2607
2609
  }
2608
2610
  function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
2609
2611
  var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
@@ -2615,7 +2617,7 @@ var require_lodash = __commonJS({
2615
2617
  if (arrStacked && othStacked) {
2616
2618
  return arrStacked == other && othStacked == array;
2617
2619
  }
2618
- var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2;
2620
+ var index = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined$1;
2619
2621
  stack.set(array, other);
2620
2622
  stack.set(other, array);
2621
2623
  while (++index < arrLength) {
@@ -2623,7 +2625,7 @@ var require_lodash = __commonJS({
2623
2625
  if (customizer) {
2624
2626
  var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
2625
2627
  }
2626
- if (compared !== undefined2) {
2628
+ if (compared !== undefined$1) {
2627
2629
  if (compared) {
2628
2630
  continue;
2629
2631
  }
@@ -2721,7 +2723,7 @@ var require_lodash = __commonJS({
2721
2723
  if (customizer) {
2722
2724
  var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
2723
2725
  }
2724
- if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2726
+ if (!(compared === undefined$1 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2725
2727
  result2 = false;
2726
2728
  break;
2727
2729
  }
@@ -2738,7 +2740,7 @@ var require_lodash = __commonJS({
2738
2740
  return result2;
2739
2741
  }
2740
2742
  function flatRest(func) {
2741
- return setToString(overRest(func, undefined2, flatten), func + "");
2743
+ return setToString(overRest(func, undefined$1, flatten), func + "");
2742
2744
  }
2743
2745
  function getAllKeys(object) {
2744
2746
  return baseGetAllKeys(object, keys, getSymbols);
@@ -2782,12 +2784,12 @@ var require_lodash = __commonJS({
2782
2784
  }
2783
2785
  function getNative(object, key) {
2784
2786
  var value = getValue(object, key);
2785
- return baseIsNative(value) ? value : undefined2;
2787
+ return baseIsNative(value) ? value : undefined$1;
2786
2788
  }
2787
2789
  function getRawTag(value) {
2788
2790
  var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
2789
2791
  try {
2790
- value[symToStringTag] = undefined2;
2792
+ value[symToStringTag] = undefined$1;
2791
2793
  var unmasked = true;
2792
2794
  } catch (e) {
2793
2795
  }
@@ -2821,7 +2823,7 @@ var require_lodash = __commonJS({
2821
2823
  var getTag = baseGetTag;
2822
2824
  if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
2823
2825
  getTag = function(value) {
2824
- var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : "";
2826
+ var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined$1, ctorString = Ctor ? toSource(Ctor) : "";
2825
2827
  if (ctorString) {
2826
2828
  switch (ctorString) {
2827
2829
  case dataViewCtorString:
@@ -2993,7 +2995,7 @@ var require_lodash = __commonJS({
2993
2995
  if (object == null) {
2994
2996
  return false;
2995
2997
  }
2996
- return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object));
2998
+ return object[key] === srcValue && (srcValue !== undefined$1 || key in Object2(object));
2997
2999
  };
2998
3000
  }
2999
3001
  function memoizeCapped(func) {
@@ -3055,7 +3057,7 @@ var require_lodash = __commonJS({
3055
3057
  return nativeObjectToString.call(value);
3056
3058
  }
3057
3059
  function overRest(func, start, transform2) {
3058
- start = nativeMax(start === undefined2 ? func.length - 1 : start, 0);
3060
+ start = nativeMax(start === undefined$1 ? func.length - 1 : start, 0);
3059
3061
  return function() {
3060
3062
  var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array2(length);
3061
3063
  while (++index < length) {
@@ -3077,7 +3079,7 @@ var require_lodash = __commonJS({
3077
3079
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
3078
3080
  while (length--) {
3079
3081
  var index = indexes[length];
3080
- array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined2;
3082
+ array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined$1;
3081
3083
  }
3082
3084
  return array;
3083
3085
  }
@@ -3111,12 +3113,12 @@ var require_lodash = __commonJS({
3111
3113
  } else {
3112
3114
  count = 0;
3113
3115
  }
3114
- return func.apply(undefined2, arguments);
3116
+ return func.apply(undefined$1, arguments);
3115
3117
  };
3116
3118
  }
3117
3119
  function shuffleSelf(array, size2) {
3118
3120
  var index = -1, length = array.length, lastIndex = length - 1;
3119
- size2 = size2 === undefined2 ? length : size2;
3121
+ size2 = size2 === undefined$1 ? length : size2;
3120
3122
  while (++index < size2) {
3121
3123
  var rand = baseRandom(index, lastIndex), value = array[rand];
3122
3124
  array[rand] = array[index];
@@ -3175,7 +3177,7 @@ var require_lodash = __commonJS({
3175
3177
  return result2;
3176
3178
  }
3177
3179
  function chunk(array, size2, guard) {
3178
- if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) {
3180
+ if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined$1) {
3179
3181
  size2 = 1;
3180
3182
  } else {
3181
3183
  size2 = nativeMax(toInteger(size2), 0);
@@ -3217,23 +3219,23 @@ var require_lodash = __commonJS({
3217
3219
  var differenceBy = baseRest(function(array, values2) {
3218
3220
  var iteratee2 = last(values2);
3219
3221
  if (isArrayLikeObject(iteratee2)) {
3220
- iteratee2 = undefined2;
3222
+ iteratee2 = undefined$1;
3221
3223
  }
3222
3224
  return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : [];
3223
3225
  });
3224
3226
  var differenceWith = baseRest(function(array, values2) {
3225
3227
  var comparator = last(values2);
3226
3228
  if (isArrayLikeObject(comparator)) {
3227
- comparator = undefined2;
3229
+ comparator = undefined$1;
3228
3230
  }
3229
- return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : [];
3231
+ return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined$1, comparator) : [];
3230
3232
  });
3231
3233
  function drop(array, n, guard) {
3232
3234
  var length = array == null ? 0 : array.length;
3233
3235
  if (!length) {
3234
3236
  return [];
3235
3237
  }
3236
- n = guard || n === undefined2 ? 1 : toInteger(n);
3238
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3237
3239
  return baseSlice(array, n < 0 ? 0 : n, length);
3238
3240
  }
3239
3241
  function dropRight(array, n, guard) {
@@ -3241,7 +3243,7 @@ var require_lodash = __commonJS({
3241
3243
  if (!length) {
3242
3244
  return [];
3243
3245
  }
3244
- n = guard || n === undefined2 ? 1 : toInteger(n);
3246
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3245
3247
  n = length - n;
3246
3248
  return baseSlice(array, 0, n < 0 ? 0 : n);
3247
3249
  }
@@ -3279,7 +3281,7 @@ var require_lodash = __commonJS({
3279
3281
  return -1;
3280
3282
  }
3281
3283
  var index = length - 1;
3282
- if (fromIndex !== undefined2) {
3284
+ if (fromIndex !== undefined$1) {
3283
3285
  index = toInteger(fromIndex);
3284
3286
  index = fromIndex < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
3285
3287
  }
@@ -3298,7 +3300,7 @@ var require_lodash = __commonJS({
3298
3300
  if (!length) {
3299
3301
  return [];
3300
3302
  }
3301
- depth = depth === undefined2 ? 1 : toInteger(depth);
3303
+ depth = depth === undefined$1 ? 1 : toInteger(depth);
3302
3304
  return baseFlatten(array, depth);
3303
3305
  }
3304
3306
  function fromPairs(pairs) {
@@ -3310,7 +3312,7 @@ var require_lodash = __commonJS({
3310
3312
  return result2;
3311
3313
  }
3312
3314
  function head(array) {
3313
- return array && array.length ? array[0] : undefined2;
3315
+ return array && array.length ? array[0] : undefined$1;
3314
3316
  }
3315
3317
  function indexOf(array, value, fromIndex) {
3316
3318
  var length = array == null ? 0 : array.length;
@@ -3334,7 +3336,7 @@ var require_lodash = __commonJS({
3334
3336
  var intersectionBy = baseRest(function(arrays) {
3335
3337
  var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
3336
3338
  if (iteratee2 === last(mapped)) {
3337
- iteratee2 = undefined2;
3339
+ iteratee2 = undefined$1;
3338
3340
  } else {
3339
3341
  mapped.pop();
3340
3342
  }
@@ -3342,18 +3344,18 @@ var require_lodash = __commonJS({
3342
3344
  });
3343
3345
  var intersectionWith = baseRest(function(arrays) {
3344
3346
  var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject);
3345
- comparator = typeof comparator == "function" ? comparator : undefined2;
3347
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3346
3348
  if (comparator) {
3347
3349
  mapped.pop();
3348
3350
  }
3349
- return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : [];
3351
+ return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined$1, comparator) : [];
3350
3352
  });
3351
3353
  function join(array, separator) {
3352
3354
  return array == null ? "" : nativeJoin.call(array, separator);
3353
3355
  }
3354
3356
  function last(array) {
3355
3357
  var length = array == null ? 0 : array.length;
3356
- return length ? array[length - 1] : undefined2;
3358
+ return length ? array[length - 1] : undefined$1;
3357
3359
  }
3358
3360
  function lastIndexOf(array, value, fromIndex) {
3359
3361
  var length = array == null ? 0 : array.length;
@@ -3361,14 +3363,14 @@ var require_lodash = __commonJS({
3361
3363
  return -1;
3362
3364
  }
3363
3365
  var index = length;
3364
- if (fromIndex !== undefined2) {
3366
+ if (fromIndex !== undefined$1) {
3365
3367
  index = toInteger(fromIndex);
3366
3368
  index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
3367
3369
  }
3368
3370
  return value === value ? strictLastIndexOf(array, value, index) : baseFindIndex(array, baseIsNaN, index, true);
3369
3371
  }
3370
3372
  function nth(array, n) {
3371
- return array && array.length ? baseNth(array, toInteger(n)) : undefined2;
3373
+ return array && array.length ? baseNth(array, toInteger(n)) : undefined$1;
3372
3374
  }
3373
3375
  var pull = baseRest(pullAll);
3374
3376
  function pullAll(array, values2) {
@@ -3378,7 +3380,7 @@ var require_lodash = __commonJS({
3378
3380
  return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array;
3379
3381
  }
3380
3382
  function pullAllWith(array, values2, comparator) {
3381
- return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array;
3383
+ return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined$1, comparator) : array;
3382
3384
  }
3383
3385
  var pullAt = flatRest(function(array, indexes) {
3384
3386
  var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes);
@@ -3417,7 +3419,7 @@ var require_lodash = __commonJS({
3417
3419
  end = length;
3418
3420
  } else {
3419
3421
  start = start == null ? 0 : toInteger(start);
3420
- end = end === undefined2 ? length : toInteger(end);
3422
+ end = end === undefined$1 ? length : toInteger(end);
3421
3423
  }
3422
3424
  return baseSlice(array, start, end);
3423
3425
  }
@@ -3467,7 +3469,7 @@ var require_lodash = __commonJS({
3467
3469
  if (!(array && array.length)) {
3468
3470
  return [];
3469
3471
  }
3470
- n = guard || n === undefined2 ? 1 : toInteger(n);
3472
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3471
3473
  return baseSlice(array, 0, n < 0 ? 0 : n);
3472
3474
  }
3473
3475
  function takeRight(array, n, guard) {
@@ -3475,7 +3477,7 @@ var require_lodash = __commonJS({
3475
3477
  if (!length) {
3476
3478
  return [];
3477
3479
  }
3478
- n = guard || n === undefined2 ? 1 : toInteger(n);
3480
+ n = guard || n === undefined$1 ? 1 : toInteger(n);
3479
3481
  n = length - n;
3480
3482
  return baseSlice(array, n < 0 ? 0 : n, length);
3481
3483
  }
@@ -3491,14 +3493,14 @@ var require_lodash = __commonJS({
3491
3493
  var unionBy = baseRest(function(arrays) {
3492
3494
  var iteratee2 = last(arrays);
3493
3495
  if (isArrayLikeObject(iteratee2)) {
3494
- iteratee2 = undefined2;
3496
+ iteratee2 = undefined$1;
3495
3497
  }
3496
3498
  return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2));
3497
3499
  });
3498
3500
  var unionWith = baseRest(function(arrays) {
3499
3501
  var comparator = last(arrays);
3500
- comparator = typeof comparator == "function" ? comparator : undefined2;
3501
- return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator);
3502
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3503
+ return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined$1, comparator);
3502
3504
  });
3503
3505
  function uniq(array) {
3504
3506
  return array && array.length ? baseUniq(array) : [];
@@ -3507,8 +3509,8 @@ var require_lodash = __commonJS({
3507
3509
  return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : [];
3508
3510
  }
3509
3511
  function uniqWith(array, comparator) {
3510
- comparator = typeof comparator == "function" ? comparator : undefined2;
3511
- return array && array.length ? baseUniq(array, undefined2, comparator) : [];
3512
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3513
+ return array && array.length ? baseUniq(array, undefined$1, comparator) : [];
3512
3514
  }
3513
3515
  function unzip(array) {
3514
3516
  if (!(array && array.length)) {
@@ -3534,7 +3536,7 @@ var require_lodash = __commonJS({
3534
3536
  return result2;
3535
3537
  }
3536
3538
  return arrayMap(result2, function(group) {
3537
- return apply(iteratee2, undefined2, group);
3539
+ return apply(iteratee2, undefined$1, group);
3538
3540
  });
3539
3541
  }
3540
3542
  var without = baseRest(function(array, values2) {
@@ -3546,14 +3548,14 @@ var require_lodash = __commonJS({
3546
3548
  var xorBy = baseRest(function(arrays) {
3547
3549
  var iteratee2 = last(arrays);
3548
3550
  if (isArrayLikeObject(iteratee2)) {
3549
- iteratee2 = undefined2;
3551
+ iteratee2 = undefined$1;
3550
3552
  }
3551
3553
  return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2));
3552
3554
  });
3553
3555
  var xorWith = baseRest(function(arrays) {
3554
3556
  var comparator = last(arrays);
3555
- comparator = typeof comparator == "function" ? comparator : undefined2;
3556
- return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator);
3557
+ comparator = typeof comparator == "function" ? comparator : undefined$1;
3558
+ return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined$1, comparator);
3557
3559
  });
3558
3560
  var zip = baseRest(unzip);
3559
3561
  function zipObject(props, values2) {
@@ -3563,8 +3565,8 @@ var require_lodash = __commonJS({
3563
3565
  return baseZipObject(props || [], values2 || [], baseSet);
3564
3566
  }
3565
3567
  var zipWith = baseRest(function(arrays) {
3566
- var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2;
3567
- iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2;
3568
+ var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined$1;
3569
+ iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined$1;
3568
3570
  return unzipWith(arrays, iteratee2);
3569
3571
  });
3570
3572
  function chain(value) {
@@ -3590,11 +3592,11 @@ var require_lodash = __commonJS({
3590
3592
  value.__actions__.push({
3591
3593
  "func": thru,
3592
3594
  "args": [interceptor],
3593
- "thisArg": undefined2
3595
+ "thisArg": undefined$1
3594
3596
  });
3595
3597
  return new LodashWrapper(value, this.__chain__).thru(function(array) {
3596
3598
  if (length && !array.length) {
3597
- array.push(undefined2);
3599
+ array.push(undefined$1);
3598
3600
  }
3599
3601
  return array;
3600
3602
  });
@@ -3606,10 +3608,10 @@ var require_lodash = __commonJS({
3606
3608
  return new LodashWrapper(this.value(), this.__chain__);
3607
3609
  }
3608
3610
  function wrapperNext() {
3609
- if (this.__values__ === undefined2) {
3611
+ if (this.__values__ === undefined$1) {
3610
3612
  this.__values__ = toArray(this.value());
3611
3613
  }
3612
- var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++];
3614
+ var done = this.__index__ >= this.__values__.length, value = done ? undefined$1 : this.__values__[this.__index__++];
3613
3615
  return { "done": done, "value": value };
3614
3616
  }
3615
3617
  function wrapperToIterator() {
@@ -3620,7 +3622,7 @@ var require_lodash = __commonJS({
3620
3622
  while (parent2 instanceof baseLodash) {
3621
3623
  var clone2 = wrapperClone(parent2);
3622
3624
  clone2.__index__ = 0;
3623
- clone2.__values__ = undefined2;
3625
+ clone2.__values__ = undefined$1;
3624
3626
  if (result2) {
3625
3627
  previous.__wrapped__ = clone2;
3626
3628
  } else {
@@ -3643,7 +3645,7 @@ var require_lodash = __commonJS({
3643
3645
  wrapped.__actions__.push({
3644
3646
  "func": thru,
3645
3647
  "args": [reverse],
3646
- "thisArg": undefined2
3648
+ "thisArg": undefined$1
3647
3649
  });
3648
3650
  return new LodashWrapper(wrapped, this.__chain__);
3649
3651
  }
@@ -3662,7 +3664,7 @@ var require_lodash = __commonJS({
3662
3664
  function every(collection, predicate, guard) {
3663
3665
  var func = isArray(collection) ? arrayEvery : baseEvery;
3664
3666
  if (guard && isIterateeCall(collection, predicate, guard)) {
3665
- predicate = undefined2;
3667
+ predicate = undefined$1;
3666
3668
  }
3667
3669
  return func(collection, getIteratee(predicate, 3));
3668
3670
  }
@@ -3679,7 +3681,7 @@ var require_lodash = __commonJS({
3679
3681
  return baseFlatten(map(collection, iteratee2), INFINITY);
3680
3682
  }
3681
3683
  function flatMapDepth(collection, iteratee2, depth) {
3682
- depth = depth === undefined2 ? 1 : toInteger(depth);
3684
+ depth = depth === undefined$1 ? 1 : toInteger(depth);
3683
3685
  return baseFlatten(map(collection, iteratee2), depth);
3684
3686
  }
3685
3687
  function forEach(collection, iteratee2) {
@@ -3727,7 +3729,7 @@ var require_lodash = __commonJS({
3727
3729
  if (!isArray(iteratees)) {
3728
3730
  iteratees = iteratees == null ? [] : [iteratees];
3729
3731
  }
3730
- orders = guard ? undefined2 : orders;
3732
+ orders = guard ? undefined$1 : orders;
3731
3733
  if (!isArray(orders)) {
3732
3734
  orders = orders == null ? [] : [orders];
3733
3735
  }
@@ -3755,7 +3757,7 @@ var require_lodash = __commonJS({
3755
3757
  return func(collection);
3756
3758
  }
3757
3759
  function sampleSize(collection, n, guard) {
3758
- if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) {
3760
+ if (guard ? isIterateeCall(collection, n, guard) : n === undefined$1) {
3759
3761
  n = 1;
3760
3762
  } else {
3761
3763
  n = toInteger(n);
@@ -3783,7 +3785,7 @@ var require_lodash = __commonJS({
3783
3785
  function some(collection, predicate, guard) {
3784
3786
  var func = isArray(collection) ? arraySome : baseSome;
3785
3787
  if (guard && isIterateeCall(collection, predicate, guard)) {
3786
- predicate = undefined2;
3788
+ predicate = undefined$1;
3787
3789
  }
3788
3790
  return func(collection, getIteratee(predicate, 3));
3789
3791
  }
@@ -3814,9 +3816,9 @@ var require_lodash = __commonJS({
3814
3816
  };
3815
3817
  }
3816
3818
  function ary(func, n, guard) {
3817
- n = guard ? undefined2 : n;
3819
+ n = guard ? undefined$1 : n;
3818
3820
  n = func && n == null ? func.length : n;
3819
- return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n);
3821
+ return createWrap(func, WRAP_ARY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, n);
3820
3822
  }
3821
3823
  function before(n, func) {
3822
3824
  var result2;
@@ -3829,7 +3831,7 @@ var require_lodash = __commonJS({
3829
3831
  result2 = func.apply(this, arguments);
3830
3832
  }
3831
3833
  if (n <= 1) {
3832
- func = undefined2;
3834
+ func = undefined$1;
3833
3835
  }
3834
3836
  return result2;
3835
3837
  };
@@ -3851,14 +3853,14 @@ var require_lodash = __commonJS({
3851
3853
  return createWrap(key, bitmask, object, partials, holders);
3852
3854
  });
3853
3855
  function curry(func, arity, guard) {
3854
- arity = guard ? undefined2 : arity;
3855
- var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
3856
+ arity = guard ? undefined$1 : arity;
3857
+ var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);
3856
3858
  result2.placeholder = curry.placeholder;
3857
3859
  return result2;
3858
3860
  }
3859
3861
  function curryRight(func, arity, guard) {
3860
- arity = guard ? undefined2 : arity;
3861
- var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity);
3862
+ arity = guard ? undefined$1 : arity;
3863
+ var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined$1, undefined$1, undefined$1, undefined$1, undefined$1, arity);
3862
3864
  result2.placeholder = curryRight.placeholder;
3863
3865
  return result2;
3864
3866
  }
@@ -3876,7 +3878,7 @@ var require_lodash = __commonJS({
3876
3878
  }
3877
3879
  function invokeFunc(time) {
3878
3880
  var args = lastArgs, thisArg = lastThis;
3879
- lastArgs = lastThis = undefined2;
3881
+ lastArgs = lastThis = undefined$1;
3880
3882
  lastInvokeTime = time;
3881
3883
  result2 = func.apply(thisArg, args);
3882
3884
  return result2;
@@ -3892,7 +3894,7 @@ var require_lodash = __commonJS({
3892
3894
  }
3893
3895
  function shouldInvoke(time) {
3894
3896
  var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
3895
- return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
3897
+ return lastCallTime === undefined$1 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
3896
3898
  }
3897
3899
  function timerExpired() {
3898
3900
  var time = now();
@@ -3902,22 +3904,22 @@ var require_lodash = __commonJS({
3902
3904
  timerId = setTimeout(timerExpired, remainingWait(time));
3903
3905
  }
3904
3906
  function trailingEdge(time) {
3905
- timerId = undefined2;
3907
+ timerId = undefined$1;
3906
3908
  if (trailing && lastArgs) {
3907
3909
  return invokeFunc(time);
3908
3910
  }
3909
- lastArgs = lastThis = undefined2;
3911
+ lastArgs = lastThis = undefined$1;
3910
3912
  return result2;
3911
3913
  }
3912
3914
  function cancel() {
3913
- if (timerId !== undefined2) {
3915
+ if (timerId !== undefined$1) {
3914
3916
  clearTimeout(timerId);
3915
3917
  }
3916
3918
  lastInvokeTime = 0;
3917
- lastArgs = lastCallTime = lastThis = timerId = undefined2;
3919
+ lastArgs = lastCallTime = lastThis = timerId = undefined$1;
3918
3920
  }
3919
3921
  function flush() {
3920
- return timerId === undefined2 ? result2 : trailingEdge(now());
3922
+ return timerId === undefined$1 ? result2 : trailingEdge(now());
3921
3923
  }
3922
3924
  function debounced() {
3923
3925
  var time = now(), isInvoking = shouldInvoke(time);
@@ -3925,7 +3927,7 @@ var require_lodash = __commonJS({
3925
3927
  lastThis = this;
3926
3928
  lastCallTime = time;
3927
3929
  if (isInvoking) {
3928
- if (timerId === undefined2) {
3930
+ if (timerId === undefined$1) {
3929
3931
  return leadingEdge(lastCallTime);
3930
3932
  }
3931
3933
  if (maxing) {
@@ -3934,7 +3936,7 @@ var require_lodash = __commonJS({
3934
3936
  return invokeFunc(lastCallTime);
3935
3937
  }
3936
3938
  }
3937
- if (timerId === undefined2) {
3939
+ if (timerId === undefined$1) {
3938
3940
  timerId = setTimeout(timerExpired, wait);
3939
3941
  }
3940
3942
  return result2;
@@ -4004,20 +4006,20 @@ var require_lodash = __commonJS({
4004
4006
  });
4005
4007
  var partial = baseRest(function(func, partials) {
4006
4008
  var holders = replaceHolders(partials, getHolder(partial));
4007
- return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders);
4009
+ return createWrap(func, WRAP_PARTIAL_FLAG, undefined$1, partials, holders);
4008
4010
  });
4009
4011
  var partialRight = baseRest(function(func, partials) {
4010
4012
  var holders = replaceHolders(partials, getHolder(partialRight));
4011
- return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders);
4013
+ return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined$1, partials, holders);
4012
4014
  });
4013
4015
  var rearg = flatRest(function(func, indexes) {
4014
- return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes);
4016
+ return createWrap(func, WRAP_REARG_FLAG, undefined$1, undefined$1, undefined$1, indexes);
4015
4017
  });
4016
4018
  function rest(func, start) {
4017
4019
  if (typeof func != "function") {
4018
4020
  throw new TypeError2(FUNC_ERROR_TEXT);
4019
4021
  }
4020
- start = start === undefined2 ? start : toInteger(start);
4022
+ start = start === undefined$1 ? start : toInteger(start);
4021
4023
  return baseRest(func, start);
4022
4024
  }
4023
4025
  function spread(func, start) {
@@ -4065,14 +4067,14 @@ var require_lodash = __commonJS({
4065
4067
  return baseClone(value, CLONE_SYMBOLS_FLAG);
4066
4068
  }
4067
4069
  function cloneWith(value, customizer) {
4068
- customizer = typeof customizer == "function" ? customizer : undefined2;
4070
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4069
4071
  return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
4070
4072
  }
4071
4073
  function cloneDeep(value) {
4072
4074
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
4073
4075
  }
4074
4076
  function cloneDeepWith(value, customizer) {
4075
- customizer = typeof customizer == "function" ? customizer : undefined2;
4077
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4076
4078
  return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);
4077
4079
  }
4078
4080
  function conformsTo(object, source) {
@@ -4131,9 +4133,9 @@ var require_lodash = __commonJS({
4131
4133
  return baseIsEqual(value, other);
4132
4134
  }
4133
4135
  function isEqualWith(value, other, customizer) {
4134
- customizer = typeof customizer == "function" ? customizer : undefined2;
4135
- var result2 = customizer ? customizer(value, other) : undefined2;
4136
- return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2;
4136
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4137
+ var result2 = customizer ? customizer(value, other) : undefined$1;
4138
+ return result2 === undefined$1 ? baseIsEqual(value, other, undefined$1, customizer) : !!result2;
4137
4139
  }
4138
4140
  function isError(value) {
4139
4141
  if (!isObjectLike(value)) {
@@ -4170,10 +4172,10 @@ var require_lodash = __commonJS({
4170
4172
  return object === source || baseIsMatch(object, source, getMatchData(source));
4171
4173
  }
4172
4174
  function isMatchWith(object, source, customizer) {
4173
- customizer = typeof customizer == "function" ? customizer : undefined2;
4175
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4174
4176
  return baseIsMatch(object, source, getMatchData(source), customizer);
4175
4177
  }
4176
- function isNaN2(value) {
4178
+ function isNaN(value) {
4177
4179
  return isNumber(value) && value != +value;
4178
4180
  }
4179
4181
  function isNative(value) {
@@ -4215,7 +4217,7 @@ var require_lodash = __commonJS({
4215
4217
  }
4216
4218
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
4217
4219
  function isUndefined(value) {
4218
- return value === undefined2;
4220
+ return value === undefined$1;
4219
4221
  }
4220
4222
  function isWeakMap(value) {
4221
4223
  return isObjectLike(value) && getTag(value) == weakMapTag;
@@ -4246,8 +4248,8 @@ var require_lodash = __commonJS({
4246
4248
  }
4247
4249
  value = toNumber(value);
4248
4250
  if (value === INFINITY || value === -INFINITY) {
4249
- var sign3 = value < 0 ? -1 : 1;
4250
- return sign3 * MAX_INTEGER;
4251
+ var sign = value < 0 ? -1 : 1;
4252
+ return sign * MAX_INTEGER;
4251
4253
  }
4252
4254
  return value === value ? value : 0;
4253
4255
  }
@@ -4314,7 +4316,7 @@ var require_lodash = __commonJS({
4314
4316
  object = Object2(object);
4315
4317
  var index = -1;
4316
4318
  var length = sources.length;
4317
- var guard = length > 2 ? sources[2] : undefined2;
4319
+ var guard = length > 2 ? sources[2] : undefined$1;
4318
4320
  if (guard && isIterateeCall(sources[0], sources[1], guard)) {
4319
4321
  length = 1;
4320
4322
  }
@@ -4326,7 +4328,7 @@ var require_lodash = __commonJS({
4326
4328
  while (++propsIndex < propsLength) {
4327
4329
  var key = props[propsIndex];
4328
4330
  var value = object[key];
4329
- if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
4331
+ if (value === undefined$1 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) {
4330
4332
  object[key] = source[key];
4331
4333
  }
4332
4334
  }
@@ -4334,8 +4336,8 @@ var require_lodash = __commonJS({
4334
4336
  return object;
4335
4337
  });
4336
4338
  var defaultsDeep = baseRest(function(args) {
4337
- args.push(undefined2, customDefaultsMerge);
4338
- return apply(mergeWith, undefined2, args);
4339
+ args.push(undefined$1, customDefaultsMerge);
4340
+ return apply(mergeWith, undefined$1, args);
4339
4341
  });
4340
4342
  function findKey(object, predicate) {
4341
4343
  return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);
@@ -4362,8 +4364,8 @@ var require_lodash = __commonJS({
4362
4364
  return object == null ? [] : baseFunctions(object, keysIn(object));
4363
4365
  }
4364
4366
  function get(object, path, defaultValue) {
4365
- var result2 = object == null ? undefined2 : baseGet(object, path);
4366
- return result2 === undefined2 ? defaultValue : result2;
4367
+ var result2 = object == null ? undefined$1 : baseGet(object, path);
4368
+ return result2 === undefined$1 ? defaultValue : result2;
4367
4369
  }
4368
4370
  function has(object, path) {
4369
4371
  return object != null && hasPath(object, path, baseHas);
@@ -4460,11 +4462,11 @@ var require_lodash = __commonJS({
4460
4462
  var index = -1, length = path.length;
4461
4463
  if (!length) {
4462
4464
  length = 1;
4463
- object = undefined2;
4465
+ object = undefined$1;
4464
4466
  }
4465
4467
  while (++index < length) {
4466
- var value = object == null ? undefined2 : object[toKey(path[index])];
4467
- if (value === undefined2) {
4468
+ var value = object == null ? undefined$1 : object[toKey(path[index])];
4469
+ if (value === undefined$1) {
4468
4470
  index = length;
4469
4471
  value = defaultValue;
4470
4472
  }
@@ -4476,7 +4478,7 @@ var require_lodash = __commonJS({
4476
4478
  return object == null ? object : baseSet(object, path, value);
4477
4479
  }
4478
4480
  function setWith(object, path, value, customizer) {
4479
- customizer = typeof customizer == "function" ? customizer : undefined2;
4481
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4480
4482
  return object == null ? object : baseSet(object, path, value, customizer);
4481
4483
  }
4482
4484
  var toPairs = createToPairs(keys);
@@ -4506,7 +4508,7 @@ var require_lodash = __commonJS({
4506
4508
  return object == null ? object : baseUpdate(object, path, castFunction(updater));
4507
4509
  }
4508
4510
  function updateWith(object, path, updater, customizer) {
4509
- customizer = typeof customizer == "function" ? customizer : undefined2;
4511
+ customizer = typeof customizer == "function" ? customizer : undefined$1;
4510
4512
  return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);
4511
4513
  }
4512
4514
  function values(object) {
@@ -4516,15 +4518,15 @@ var require_lodash = __commonJS({
4516
4518
  return object == null ? [] : baseValues(object, keysIn(object));
4517
4519
  }
4518
4520
  function clamp(number, lower, upper) {
4519
- if (upper === undefined2) {
4521
+ if (upper === undefined$1) {
4520
4522
  upper = lower;
4521
- lower = undefined2;
4523
+ lower = undefined$1;
4522
4524
  }
4523
- if (upper !== undefined2) {
4525
+ if (upper !== undefined$1) {
4524
4526
  upper = toNumber(upper);
4525
4527
  upper = upper === upper ? upper : 0;
4526
4528
  }
4527
- if (lower !== undefined2) {
4529
+ if (lower !== undefined$1) {
4528
4530
  lower = toNumber(lower);
4529
4531
  lower = lower === lower ? lower : 0;
4530
4532
  }
@@ -4532,7 +4534,7 @@ var require_lodash = __commonJS({
4532
4534
  }
4533
4535
  function inRange(number, start, end) {
4534
4536
  start = toFinite(start);
4535
- if (end === undefined2) {
4537
+ if (end === undefined$1) {
4536
4538
  end = start;
4537
4539
  start = 0;
4538
4540
  } else {
@@ -4541,25 +4543,25 @@ var require_lodash = __commonJS({
4541
4543
  number = toNumber(number);
4542
4544
  return baseInRange(number, start, end);
4543
4545
  }
4544
- function random2(lower, upper, floating) {
4546
+ function random(lower, upper, floating) {
4545
4547
  if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) {
4546
- upper = floating = undefined2;
4548
+ upper = floating = undefined$1;
4547
4549
  }
4548
- if (floating === undefined2) {
4550
+ if (floating === undefined$1) {
4549
4551
  if (typeof upper == "boolean") {
4550
4552
  floating = upper;
4551
- upper = undefined2;
4553
+ upper = undefined$1;
4552
4554
  } else if (typeof lower == "boolean") {
4553
4555
  floating = lower;
4554
- lower = undefined2;
4556
+ lower = undefined$1;
4555
4557
  }
4556
4558
  }
4557
- if (lower === undefined2 && upper === undefined2) {
4559
+ if (lower === undefined$1 && upper === undefined$1) {
4558
4560
  lower = 0;
4559
4561
  upper = 1;
4560
4562
  } else {
4561
4563
  lower = toFinite(lower);
4562
- if (upper === undefined2) {
4564
+ if (upper === undefined$1) {
4563
4565
  upper = lower;
4564
4566
  lower = 0;
4565
4567
  } else {
@@ -4592,7 +4594,7 @@ var require_lodash = __commonJS({
4592
4594
  string = toString(string);
4593
4595
  target = baseToString(target);
4594
4596
  var length = string.length;
4595
- position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length);
4597
+ position = position === undefined$1 ? length : baseClamp(toInteger(position), 0, length);
4596
4598
  var end = position;
4597
4599
  position -= target.length;
4598
4600
  return position >= 0 && string.slice(position, end) == target;
@@ -4643,7 +4645,7 @@ var require_lodash = __commonJS({
4643
4645
  return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0);
4644
4646
  }
4645
4647
  function repeat(string, n, guard) {
4646
- if (guard ? isIterateeCall(string, n, guard) : n === undefined2) {
4648
+ if (guard ? isIterateeCall(string, n, guard) : n === undefined$1) {
4647
4649
  n = 1;
4648
4650
  } else {
4649
4651
  n = toInteger(n);
@@ -4659,9 +4661,9 @@ var require_lodash = __commonJS({
4659
4661
  });
4660
4662
  function split(string, separator, limit) {
4661
4663
  if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
4662
- separator = limit = undefined2;
4664
+ separator = limit = undefined$1;
4663
4665
  }
4664
- limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0;
4666
+ limit = limit === undefined$1 ? MAX_ARRAY_LENGTH : limit >>> 0;
4665
4667
  if (!limit) {
4666
4668
  return [];
4667
4669
  }
@@ -4686,7 +4688,7 @@ var require_lodash = __commonJS({
4686
4688
  function template(string, options, guard) {
4687
4689
  var settings = lodash.templateSettings;
4688
4690
  if (guard && isIterateeCall(string, options, guard)) {
4689
- options = undefined2;
4691
+ options = undefined$1;
4690
4692
  }
4691
4693
  string = toString(string);
4692
4694
  options = assignInWith({}, options, settings, customDefaultsAssignIn);
@@ -4724,7 +4726,7 @@ var require_lodash = __commonJS({
4724
4726
  source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
4725
4727
  source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
4726
4728
  var result2 = attempt(function() {
4727
- return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues);
4729
+ return Function2(importsKeys, sourceURL + "return " + source).apply(undefined$1, importsValues);
4728
4730
  });
4729
4731
  result2.source = source;
4730
4732
  if (isError(result2)) {
@@ -4740,7 +4742,7 @@ var require_lodash = __commonJS({
4740
4742
  }
4741
4743
  function trim(string, chars, guard) {
4742
4744
  string = toString(string);
4743
- if (string && (guard || chars === undefined2)) {
4745
+ if (string && (guard || chars === undefined$1)) {
4744
4746
  return baseTrim(string);
4745
4747
  }
4746
4748
  if (!string || !(chars = baseToString(chars))) {
@@ -4751,7 +4753,7 @@ var require_lodash = __commonJS({
4751
4753
  }
4752
4754
  function trimEnd(string, chars, guard) {
4753
4755
  string = toString(string);
4754
- if (string && (guard || chars === undefined2)) {
4756
+ if (string && (guard || chars === undefined$1)) {
4755
4757
  return string.slice(0, trimmedEndIndex(string) + 1);
4756
4758
  }
4757
4759
  if (!string || !(chars = baseToString(chars))) {
@@ -4762,7 +4764,7 @@ var require_lodash = __commonJS({
4762
4764
  }
4763
4765
  function trimStart(string, chars, guard) {
4764
4766
  string = toString(string);
4765
- if (string && (guard || chars === undefined2)) {
4767
+ if (string && (guard || chars === undefined$1)) {
4766
4768
  return string.replace(reTrimStart, "");
4767
4769
  }
4768
4770
  if (!string || !(chars = baseToString(chars))) {
@@ -4792,7 +4794,7 @@ var require_lodash = __commonJS({
4792
4794
  return omission;
4793
4795
  }
4794
4796
  var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end);
4795
- if (separator === undefined2) {
4797
+ if (separator === undefined$1) {
4796
4798
  return result2 + omission;
4797
4799
  }
4798
4800
  if (strSymbols) {
@@ -4808,7 +4810,7 @@ var require_lodash = __commonJS({
4808
4810
  while (match = separator.exec(substring)) {
4809
4811
  var newEnd = match.index;
4810
4812
  }
4811
- result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd);
4813
+ result2 = result2.slice(0, newEnd === undefined$1 ? end : newEnd);
4812
4814
  }
4813
4815
  } else if (string.indexOf(baseToString(separator), end) != end) {
4814
4816
  var index = result2.lastIndexOf(separator);
@@ -4828,15 +4830,15 @@ var require_lodash = __commonJS({
4828
4830
  var upperFirst = createCaseFirst("toUpperCase");
4829
4831
  function words(string, pattern, guard) {
4830
4832
  string = toString(string);
4831
- pattern = guard ? undefined2 : pattern;
4832
- if (pattern === undefined2) {
4833
+ pattern = guard ? undefined$1 : pattern;
4834
+ if (pattern === undefined$1) {
4833
4835
  return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
4834
4836
  }
4835
4837
  return string.match(pattern) || [];
4836
4838
  }
4837
4839
  var attempt = baseRest(function(func, args) {
4838
4840
  try {
4839
- return apply(func, undefined2, args);
4841
+ return apply(func, undefined$1, args);
4840
4842
  } catch (e) {
4841
4843
  return isError(e) ? e : new Error2(e);
4842
4844
  }
@@ -4950,7 +4952,7 @@ var require_lodash = __commonJS({
4950
4952
  }
4951
4953
  function propertyOf(object) {
4952
4954
  return function(path) {
4953
- return object == null ? undefined2 : baseGet(object, path);
4955
+ return object == null ? undefined$1 : baseGet(object, path);
4954
4956
  };
4955
4957
  }
4956
4958
  var range = createRange();
@@ -5001,12 +5003,12 @@ var require_lodash = __commonJS({
5001
5003
  var divide = createMathOperation(function(dividend, divisor) {
5002
5004
  return dividend / divisor;
5003
5005
  }, 1);
5004
- var floor5 = createRound("floor");
5005
- function max5(array) {
5006
- return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2;
5006
+ var floor = createRound("floor");
5007
+ function max(array) {
5008
+ return array && array.length ? baseExtremum(array, identity, baseGt) : undefined$1;
5007
5009
  }
5008
5010
  function maxBy(array, iteratee2) {
5009
- return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2;
5011
+ return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined$1;
5010
5012
  }
5011
5013
  function mean(array) {
5012
5014
  return baseMean(array, identity);
@@ -5014,16 +5016,16 @@ var require_lodash = __commonJS({
5014
5016
  function meanBy(array, iteratee2) {
5015
5017
  return baseMean(array, getIteratee(iteratee2, 2));
5016
5018
  }
5017
- function min5(array) {
5018
- return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2;
5019
+ function min(array) {
5020
+ return array && array.length ? baseExtremum(array, identity, baseLt) : undefined$1;
5019
5021
  }
5020
5022
  function minBy(array, iteratee2) {
5021
- return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2;
5023
+ return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined$1;
5022
5024
  }
5023
- var multiply2 = createMathOperation(function(multiplier, multiplicand) {
5025
+ var multiply = createMathOperation(function(multiplier, multiplicand) {
5024
5026
  return multiplier * multiplicand;
5025
5027
  }, 1);
5026
- var round8 = createRound("round");
5028
+ var round = createRound("round");
5027
5029
  var subtract = createMathOperation(function(minuend, subtrahend) {
5028
5030
  return minuend - subtrahend;
5029
5031
  }, 0);
@@ -5212,7 +5214,7 @@ var require_lodash = __commonJS({
5212
5214
  lodash.findLast = findLast;
5213
5215
  lodash.findLastIndex = findLastIndex;
5214
5216
  lodash.findLastKey = findLastKey;
5215
- lodash.floor = floor5;
5217
+ lodash.floor = floor;
5216
5218
  lodash.forEach = forEach;
5217
5219
  lodash.forEachRight = forEachRight;
5218
5220
  lodash.forIn = forIn;
@@ -5250,7 +5252,7 @@ var require_lodash = __commonJS({
5250
5252
  lodash.isMap = isMap;
5251
5253
  lodash.isMatch = isMatch;
5252
5254
  lodash.isMatchWith = isMatchWith;
5253
- lodash.isNaN = isNaN2;
5255
+ lodash.isNaN = isNaN;
5254
5256
  lodash.isNative = isNative;
5255
5257
  lodash.isNil = isNil;
5256
5258
  lodash.isNull = isNull;
@@ -5275,18 +5277,18 @@ var require_lodash = __commonJS({
5275
5277
  lodash.lowerFirst = lowerFirst;
5276
5278
  lodash.lt = lt;
5277
5279
  lodash.lte = lte;
5278
- lodash.max = max5;
5280
+ lodash.max = max;
5279
5281
  lodash.maxBy = maxBy;
5280
5282
  lodash.mean = mean;
5281
5283
  lodash.meanBy = meanBy;
5282
- lodash.min = min5;
5284
+ lodash.min = min;
5283
5285
  lodash.minBy = minBy;
5284
5286
  lodash.stubArray = stubArray;
5285
5287
  lodash.stubFalse = stubFalse;
5286
5288
  lodash.stubObject = stubObject;
5287
5289
  lodash.stubString = stubString;
5288
5290
  lodash.stubTrue = stubTrue;
5289
- lodash.multiply = multiply2;
5291
+ lodash.multiply = multiply;
5290
5292
  lodash.nth = nth;
5291
5293
  lodash.noConflict = noConflict;
5292
5294
  lodash.noop = noop;
@@ -5295,13 +5297,13 @@ var require_lodash = __commonJS({
5295
5297
  lodash.padEnd = padEnd;
5296
5298
  lodash.padStart = padStart;
5297
5299
  lodash.parseInt = parseInt2;
5298
- lodash.random = random2;
5300
+ lodash.random = random;
5299
5301
  lodash.reduce = reduce;
5300
5302
  lodash.reduceRight = reduceRight;
5301
5303
  lodash.repeat = repeat;
5302
5304
  lodash.replace = replace;
5303
5305
  lodash.result = result;
5304
- lodash.round = round8;
5306
+ lodash.round = round;
5305
5307
  lodash.runInContext = runInContext2;
5306
5308
  lodash.sample = sample;
5307
5309
  lodash.size = size;
@@ -5354,7 +5356,7 @@ var require_lodash = __commonJS({
5354
5356
  });
5355
5357
  arrayEach(["drop", "take"], function(methodName, index) {
5356
5358
  LazyWrapper.prototype[methodName] = function(n) {
5357
- n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0);
5359
+ n = n === undefined$1 ? 1 : nativeMax(toInteger(n), 0);
5358
5360
  var result2 = this.__filtered__ && !index ? new LazyWrapper(this) : this.clone();
5359
5361
  if (result2.__filtered__) {
5360
5362
  result2.__takeCount__ = nativeMin(n, result2.__takeCount__);
@@ -5425,7 +5427,7 @@ var require_lodash = __commonJS({
5425
5427
  } else if (start) {
5426
5428
  result2 = result2.drop(start);
5427
5429
  }
5428
- if (end !== undefined2) {
5430
+ if (end !== undefined$1) {
5429
5431
  end = toInteger(end);
5430
5432
  result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start);
5431
5433
  }
@@ -5455,7 +5457,7 @@ var require_lodash = __commonJS({
5455
5457
  if (!retUnwrapped && useLazy) {
5456
5458
  value = onlyLazy ? value : new LazyWrapper(this);
5457
5459
  var result2 = func.apply(value, args);
5458
- result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined2 });
5460
+ result2.__actions__.push({ "func": thru, "args": [interceptor], "thisArg": undefined$1 });
5459
5461
  return new LodashWrapper(result2, chainAll);
5460
5462
  }
5461
5463
  if (isUnwrapped && onlyLazy) {
@@ -5488,9 +5490,9 @@ var require_lodash = __commonJS({
5488
5490
  realNames[key].push({ "name": methodName, "func": lodashFunc });
5489
5491
  }
5490
5492
  });
5491
- realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{
5493
+ realNames[createHybrid(undefined$1, WRAP_BIND_KEY_FLAG).name] = [{
5492
5494
  "name": "wrapper",
5493
- "func": undefined2
5495
+ "func": undefined$1
5494
5496
  }];
5495
5497
  LazyWrapper.prototype.clone = lazyClone;
5496
5498
  LazyWrapper.prototype.reverse = lazyReverse;
@@ -5524,2509 +5526,14 @@ var require_lodash = __commonJS({
5524
5526
  }
5525
5527
  });
5526
5528
 
5527
- // node_modules/chroma-js/src/utils/limit.js
5528
- var limit_default = (x, low = 0, high = 1) => {
5529
- return min(max(low, x), high);
5530
- };
5531
-
5532
- // node_modules/chroma-js/src/utils/clip_rgb.js
5533
- var clip_rgb_default = (rgb2) => {
5534
- rgb2._clipped = false;
5535
- rgb2._unclipped = rgb2.slice(0);
5536
- for (let i = 0; i <= 3; i++) {
5537
- if (i < 3) {
5538
- if (rgb2[i] < 0 || rgb2[i] > 255) rgb2._clipped = true;
5539
- rgb2[i] = limit_default(rgb2[i], 0, 255);
5540
- } else if (i === 3) {
5541
- rgb2[i] = limit_default(rgb2[i], 0, 1);
5542
- }
5543
- }
5544
- return rgb2;
5545
- };
5546
-
5547
- // node_modules/chroma-js/src/utils/type.js
5548
- var classToType = {};
5549
- for (let name of [
5550
- "Boolean",
5551
- "Number",
5552
- "String",
5553
- "Function",
5554
- "Array",
5555
- "Date",
5556
- "RegExp",
5557
- "Undefined",
5558
- "Null"
5559
- ]) {
5560
- classToType[`[object ${name}]`] = name.toLowerCase();
5561
- }
5562
- function type_default(obj) {
5563
- return classToType[Object.prototype.toString.call(obj)] || "object";
5564
- }
5565
-
5566
- // node_modules/chroma-js/src/utils/unpack.js
5567
- var unpack_default = (args, keyOrder = null) => {
5568
- if (args.length >= 3) return Array.prototype.slice.call(args);
5569
- if (type_default(args[0]) == "object" && keyOrder) {
5570
- return keyOrder.split("").filter((k) => args[0][k] !== void 0).map((k) => args[0][k]);
5571
- }
5572
- return args[0];
5573
- };
5574
-
5575
- // node_modules/chroma-js/src/utils/last.js
5576
- var last_default = (args) => {
5577
- if (args.length < 2) return null;
5578
- const l = args.length - 1;
5579
- if (type_default(args[l]) == "string") return args[l].toLowerCase();
5580
- return null;
5581
- };
5582
-
5583
- // node_modules/chroma-js/src/utils/index.js
5584
- var { PI, min, max } = Math;
5585
- var TWOPI = PI * 2;
5586
- var PITHIRD = PI / 3;
5587
- var DEG2RAD = PI / 180;
5588
- var RAD2DEG = 180 / PI;
5589
-
5590
- // node_modules/chroma-js/src/io/input.js
5591
- var input_default = {
5592
- format: {},
5593
- autodetect: []
5594
- };
5595
-
5596
- // node_modules/chroma-js/src/Color.js
5597
- var Color = class {
5598
- constructor(...args) {
5599
- const me = this;
5600
- if (type_default(args[0]) === "object" && args[0].constructor && args[0].constructor === this.constructor) {
5601
- return args[0];
5602
- }
5603
- let mode = last_default(args);
5604
- let autodetect = false;
5605
- if (!mode) {
5606
- autodetect = true;
5607
- if (!input_default.sorted) {
5608
- input_default.autodetect = input_default.autodetect.sort((a, b) => b.p - a.p);
5609
- input_default.sorted = true;
5610
- }
5611
- for (let chk of input_default.autodetect) {
5612
- mode = chk.test(...args);
5613
- if (mode) break;
5614
- }
5615
- }
5616
- if (input_default.format[mode]) {
5617
- const rgb2 = input_default.format[mode].apply(
5618
- null,
5619
- autodetect ? args : args.slice(0, -1)
5620
- );
5621
- me._rgb = clip_rgb_default(rgb2);
5622
- } else {
5623
- throw new Error("unknown format: " + args);
5624
- }
5625
- if (me._rgb.length === 3) me._rgb.push(1);
5626
- }
5627
- toString() {
5628
- if (type_default(this.hex) == "function") return this.hex();
5629
- return `[${this._rgb.join(",")}]`;
5630
- }
5631
- };
5632
- var Color_default = Color;
5633
-
5634
- // node_modules/chroma-js/src/version.js
5635
- var version = "2.6.0";
5636
-
5637
- // node_modules/chroma-js/src/chroma.js
5638
- var chroma = (...args) => {
5639
- return new chroma.Color(...args);
5640
- };
5641
- chroma.Color = Color_default;
5642
- chroma.version = version;
5643
- var chroma_default = chroma;
5644
-
5645
- // node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js
5646
- var cmyk2rgb = (...args) => {
5647
- args = unpack_default(args, "cmyk");
5648
- const [c, m, y, k] = args;
5649
- const alpha = args.length > 4 ? args[4] : 1;
5650
- if (k === 1) return [0, 0, 0, alpha];
5651
- return [
5652
- c >= 1 ? 0 : 255 * (1 - c) * (1 - k),
5653
- // r
5654
- m >= 1 ? 0 : 255 * (1 - m) * (1 - k),
5655
- // g
5656
- y >= 1 ? 0 : 255 * (1 - y) * (1 - k),
5657
- // b
5658
- alpha
5659
- ];
5660
- };
5661
- var cmyk2rgb_default = cmyk2rgb;
5662
-
5663
- // node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js
5664
- var { max: max2 } = Math;
5665
- var rgb2cmyk = (...args) => {
5666
- let [r, g, b] = unpack_default(args, "rgb");
5667
- r = r / 255;
5668
- g = g / 255;
5669
- b = b / 255;
5670
- const k = 1 - max2(r, max2(g, b));
5671
- const f = k < 1 ? 1 / (1 - k) : 0;
5672
- const c = (1 - r - k) * f;
5673
- const m = (1 - g - k) * f;
5674
- const y = (1 - b - k) * f;
5675
- return [c, m, y, k];
5676
- };
5677
- var rgb2cmyk_default = rgb2cmyk;
5678
-
5679
- // node_modules/chroma-js/src/io/cmyk/index.js
5680
- Color_default.prototype.cmyk = function() {
5681
- return rgb2cmyk_default(this._rgb);
5682
- };
5683
- chroma_default.cmyk = (...args) => new Color_default(...args, "cmyk");
5684
- input_default.format.cmyk = cmyk2rgb_default;
5685
- input_default.autodetect.push({
5686
- p: 2,
5687
- test: (...args) => {
5688
- args = unpack_default(args, "cmyk");
5689
- if (type_default(args) === "array" && args.length === 4) {
5690
- return "cmyk";
5691
- }
5692
- }
5693
- });
5694
-
5695
- // node_modules/chroma-js/src/io/css/hsl2css.js
5696
- var rnd = (a) => Math.round(a * 100) / 100;
5697
- var hsl2css = (...args) => {
5698
- const hsla = unpack_default(args, "hsla");
5699
- let mode = last_default(args) || "lsa";
5700
- hsla[0] = rnd(hsla[0] || 0);
5701
- hsla[1] = rnd(hsla[1] * 100) + "%";
5702
- hsla[2] = rnd(hsla[2] * 100) + "%";
5703
- if (mode === "hsla" || hsla.length > 3 && hsla[3] < 1) {
5704
- hsla[3] = hsla.length > 3 ? hsla[3] : 1;
5705
- mode = "hsla";
5706
- } else {
5707
- hsla.length = 3;
5708
- }
5709
- return `${mode}(${hsla.join(",")})`;
5710
- };
5711
- var hsl2css_default = hsl2css;
5712
-
5713
- // node_modules/chroma-js/src/io/hsl/rgb2hsl.js
5714
- var rgb2hsl = (...args) => {
5715
- args = unpack_default(args, "rgba");
5716
- let [r, g, b] = args;
5717
- r /= 255;
5718
- g /= 255;
5719
- b /= 255;
5720
- const minRgb = min(r, g, b);
5721
- const maxRgb = max(r, g, b);
5722
- const l = (maxRgb + minRgb) / 2;
5723
- let s, h;
5724
- if (maxRgb === minRgb) {
5725
- s = 0;
5726
- h = Number.NaN;
5727
- } else {
5728
- s = l < 0.5 ? (maxRgb - minRgb) / (maxRgb + minRgb) : (maxRgb - minRgb) / (2 - maxRgb - minRgb);
5729
- }
5730
- if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);
5731
- else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);
5732
- else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);
5733
- h *= 60;
5734
- if (h < 0) h += 360;
5735
- if (args.length > 3 && args[3] !== void 0) return [h, s, l, args[3]];
5736
- return [h, s, l];
5737
- };
5738
- var rgb2hsl_default = rgb2hsl;
5739
-
5740
- // node_modules/chroma-js/src/io/css/rgb2css.js
5741
- var { round } = Math;
5742
- var rgb2css = (...args) => {
5743
- const rgba = unpack_default(args, "rgba");
5744
- let mode = last_default(args) || "rgb";
5745
- if (mode.substr(0, 3) == "hsl") {
5746
- return hsl2css_default(rgb2hsl_default(rgba), mode);
5747
- }
5748
- rgba[0] = round(rgba[0]);
5749
- rgba[1] = round(rgba[1]);
5750
- rgba[2] = round(rgba[2]);
5751
- if (mode === "rgba" || rgba.length > 3 && rgba[3] < 1) {
5752
- rgba[3] = rgba.length > 3 ? rgba[3] : 1;
5753
- mode = "rgba";
5754
- }
5755
- return `${mode}(${rgba.slice(0, mode === "rgb" ? 3 : 4).join(",")})`;
5756
- };
5757
- var rgb2css_default = rgb2css;
5758
-
5759
- // node_modules/chroma-js/src/io/hsl/hsl2rgb.js
5760
- var { round: round2 } = Math;
5761
- var hsl2rgb = (...args) => {
5762
- args = unpack_default(args, "hsl");
5763
- const [h, s, l] = args;
5764
- let r, g, b;
5765
- if (s === 0) {
5766
- r = g = b = l * 255;
5767
- } else {
5768
- const t3 = [0, 0, 0];
5769
- const c = [0, 0, 0];
5770
- const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;
5771
- const t1 = 2 * l - t2;
5772
- const h_ = h / 360;
5773
- t3[0] = h_ + 1 / 3;
5774
- t3[1] = h_;
5775
- t3[2] = h_ - 1 / 3;
5776
- for (let i = 0; i < 3; i++) {
5777
- if (t3[i] < 0) t3[i] += 1;
5778
- if (t3[i] > 1) t3[i] -= 1;
5779
- if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];
5780
- else if (2 * t3[i] < 1) c[i] = t2;
5781
- else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;
5782
- else c[i] = t1;
5783
- }
5784
- [r, g, b] = [round2(c[0] * 255), round2(c[1] * 255), round2(c[2] * 255)];
5785
- }
5786
- if (args.length > 3) {
5787
- return [r, g, b, args[3]];
5788
- }
5789
- return [r, g, b, 1];
5790
- };
5791
- var hsl2rgb_default = hsl2rgb;
5792
-
5793
- // node_modules/chroma-js/src/io/css/css2rgb.js
5794
- var RE_RGB = /^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/;
5795
- var RE_RGBA = /^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/;
5796
- var RE_RGB_PCT = /^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/;
5797
- var RE_RGBA_PCT = /^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/;
5798
- var RE_HSL = /^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/;
5799
- var RE_HSLA = /^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/;
5800
- var { round: round3 } = Math;
5801
- var css2rgb = (css) => {
5802
- css = css.toLowerCase().trim();
5803
- let m;
5804
- if (input_default.format.named) {
5805
- try {
5806
- return input_default.format.named(css);
5807
- } catch (e) {
5808
- }
5809
- }
5810
- if (m = css.match(RE_RGB)) {
5811
- const rgb2 = m.slice(1, 4);
5812
- for (let i = 0; i < 3; i++) {
5813
- rgb2[i] = +rgb2[i];
5814
- }
5815
- rgb2[3] = 1;
5816
- return rgb2;
5817
- }
5818
- if (m = css.match(RE_RGBA)) {
5819
- const rgb2 = m.slice(1, 5);
5820
- for (let i = 0; i < 4; i++) {
5821
- rgb2[i] = +rgb2[i];
5822
- }
5823
- return rgb2;
5824
- }
5825
- if (m = css.match(RE_RGB_PCT)) {
5826
- const rgb2 = m.slice(1, 4);
5827
- for (let i = 0; i < 3; i++) {
5828
- rgb2[i] = round3(rgb2[i] * 2.55);
5829
- }
5830
- rgb2[3] = 1;
5831
- return rgb2;
5832
- }
5833
- if (m = css.match(RE_RGBA_PCT)) {
5834
- const rgb2 = m.slice(1, 5);
5835
- for (let i = 0; i < 3; i++) {
5836
- rgb2[i] = round3(rgb2[i] * 2.55);
5837
- }
5838
- rgb2[3] = +rgb2[3];
5839
- return rgb2;
5840
- }
5841
- if (m = css.match(RE_HSL)) {
5842
- const hsl2 = m.slice(1, 4);
5843
- hsl2[1] *= 0.01;
5844
- hsl2[2] *= 0.01;
5845
- const rgb2 = hsl2rgb_default(hsl2);
5846
- rgb2[3] = 1;
5847
- return rgb2;
5848
- }
5849
- if (m = css.match(RE_HSLA)) {
5850
- const hsl2 = m.slice(1, 4);
5851
- hsl2[1] *= 0.01;
5852
- hsl2[2] *= 0.01;
5853
- const rgb2 = hsl2rgb_default(hsl2);
5854
- rgb2[3] = +m[4];
5855
- return rgb2;
5856
- }
5857
- };
5858
- css2rgb.test = (s) => {
5859
- return RE_RGB.test(s) || RE_RGBA.test(s) || RE_RGB_PCT.test(s) || RE_RGBA_PCT.test(s) || RE_HSL.test(s) || RE_HSLA.test(s);
5860
- };
5861
- var css2rgb_default = css2rgb;
5862
-
5863
- // node_modules/chroma-js/src/io/css/index.js
5864
- Color_default.prototype.css = function(mode) {
5865
- return rgb2css_default(this._rgb, mode);
5866
- };
5867
- chroma_default.css = (...args) => new Color_default(...args, "css");
5868
- input_default.format.css = css2rgb_default;
5869
- input_default.autodetect.push({
5870
- p: 5,
5871
- test: (h, ...rest) => {
5872
- if (!rest.length && type_default(h) === "string" && css2rgb_default.test(h)) {
5873
- return "css";
5874
- }
5875
- }
5876
- });
5877
-
5878
- // node_modules/chroma-js/src/io/gl/index.js
5879
- input_default.format.gl = (...args) => {
5880
- const rgb2 = unpack_default(args, "rgba");
5881
- rgb2[0] *= 255;
5882
- rgb2[1] *= 255;
5883
- rgb2[2] *= 255;
5884
- return rgb2;
5885
- };
5886
- chroma_default.gl = (...args) => new Color_default(...args, "gl");
5887
- Color_default.prototype.gl = function() {
5888
- const rgb2 = this._rgb;
5889
- return [rgb2[0] / 255, rgb2[1] / 255, rgb2[2] / 255, rgb2[3]];
5890
- };
5891
-
5892
- // node_modules/chroma-js/src/io/hcg/hcg2rgb.js
5893
- var { floor } = Math;
5894
- var hcg2rgb = (...args) => {
5895
- args = unpack_default(args, "hcg");
5896
- let [h, c, _g] = args;
5897
- let r, g, b;
5898
- _g = _g * 255;
5899
- const _c = c * 255;
5900
- if (c === 0) {
5901
- r = g = b = _g;
5902
- } else {
5903
- if (h === 360) h = 0;
5904
- if (h > 360) h -= 360;
5905
- if (h < 0) h += 360;
5906
- h /= 60;
5907
- const i = floor(h);
5908
- const f = h - i;
5909
- const p = _g * (1 - c);
5910
- const q = p + _c * (1 - f);
5911
- const t = p + _c * f;
5912
- const v = p + _c;
5913
- switch (i) {
5914
- case 0:
5915
- [r, g, b] = [v, t, p];
5916
- break;
5917
- case 1:
5918
- [r, g, b] = [q, v, p];
5919
- break;
5920
- case 2:
5921
- [r, g, b] = [p, v, t];
5922
- break;
5923
- case 3:
5924
- [r, g, b] = [p, q, v];
5925
- break;
5926
- case 4:
5927
- [r, g, b] = [t, p, v];
5928
- break;
5929
- case 5:
5930
- [r, g, b] = [v, p, q];
5931
- break;
5932
- }
5933
- }
5934
- return [r, g, b, args.length > 3 ? args[3] : 1];
5935
- };
5936
- var hcg2rgb_default = hcg2rgb;
5937
-
5938
- // node_modules/chroma-js/src/io/hcg/rgb2hcg.js
5939
- var rgb2hcg = (...args) => {
5940
- const [r, g, b] = unpack_default(args, "rgb");
5941
- const minRgb = min(r, g, b);
5942
- const maxRgb = max(r, g, b);
5943
- const delta2 = maxRgb - minRgb;
5944
- const c = delta2 * 100 / 255;
5945
- const _g = minRgb / (255 - delta2) * 100;
5946
- let h;
5947
- if (delta2 === 0) {
5948
- h = Number.NaN;
5949
- } else {
5950
- if (r === maxRgb) h = (g - b) / delta2;
5951
- if (g === maxRgb) h = 2 + (b - r) / delta2;
5952
- if (b === maxRgb) h = 4 + (r - g) / delta2;
5953
- h *= 60;
5954
- if (h < 0) h += 360;
5955
- }
5956
- return [h, c, _g];
5957
- };
5958
- var rgb2hcg_default = rgb2hcg;
5959
-
5960
- // node_modules/chroma-js/src/io/hcg/index.js
5961
- Color_default.prototype.hcg = function() {
5962
- return rgb2hcg_default(this._rgb);
5963
- };
5964
- chroma_default.hcg = (...args) => new Color_default(...args, "hcg");
5965
- input_default.format.hcg = hcg2rgb_default;
5966
- input_default.autodetect.push({
5967
- p: 1,
5968
- test: (...args) => {
5969
- args = unpack_default(args, "hcg");
5970
- if (type_default(args) === "array" && args.length === 3) {
5971
- return "hcg";
5972
- }
5973
- }
5974
- });
5975
-
5976
- // node_modules/chroma-js/src/io/hex/hex2rgb.js
5977
- var RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;
5978
- var RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;
5979
- var hex2rgb = (hex) => {
5980
- if (hex.match(RE_HEX)) {
5981
- if (hex.length === 4 || hex.length === 7) {
5982
- hex = hex.substr(1);
5983
- }
5984
- if (hex.length === 3) {
5985
- hex = hex.split("");
5986
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
5987
- }
5988
- const u = parseInt(hex, 16);
5989
- const r = u >> 16;
5990
- const g = u >> 8 & 255;
5991
- const b = u & 255;
5992
- return [r, g, b, 1];
5993
- }
5994
- if (hex.match(RE_HEXA)) {
5995
- if (hex.length === 5 || hex.length === 9) {
5996
- hex = hex.substr(1);
5997
- }
5998
- if (hex.length === 4) {
5999
- hex = hex.split("");
6000
- hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2] + hex[3] + hex[3];
6001
- }
6002
- const u = parseInt(hex, 16);
6003
- const r = u >> 24 & 255;
6004
- const g = u >> 16 & 255;
6005
- const b = u >> 8 & 255;
6006
- const a = Math.round((u & 255) / 255 * 100) / 100;
6007
- return [r, g, b, a];
6008
- }
6009
- throw new Error(`unknown hex color: ${hex}`);
6010
- };
6011
- var hex2rgb_default = hex2rgb;
6012
-
6013
- // node_modules/chroma-js/src/io/hex/rgb2hex.js
6014
- var { round: round4 } = Math;
6015
- var rgb2hex = (...args) => {
6016
- let [r, g, b, a] = unpack_default(args, "rgba");
6017
- let mode = last_default(args) || "auto";
6018
- if (a === void 0) a = 1;
6019
- if (mode === "auto") {
6020
- mode = a < 1 ? "rgba" : "rgb";
6021
- }
6022
- r = round4(r);
6023
- g = round4(g);
6024
- b = round4(b);
6025
- const u = r << 16 | g << 8 | b;
6026
- let str = "000000" + u.toString(16);
6027
- str = str.substr(str.length - 6);
6028
- let hxa = "0" + round4(a * 255).toString(16);
6029
- hxa = hxa.substr(hxa.length - 2);
6030
- switch (mode.toLowerCase()) {
6031
- case "rgba":
6032
- return `#${str}${hxa}`;
6033
- case "argb":
6034
- return `#${hxa}${str}`;
6035
- default:
6036
- return `#${str}`;
6037
- }
6038
- };
6039
- var rgb2hex_default = rgb2hex;
6040
-
6041
- // node_modules/chroma-js/src/io/hex/index.js
6042
- Color_default.prototype.hex = function(mode) {
6043
- return rgb2hex_default(this._rgb, mode);
6044
- };
6045
- chroma_default.hex = (...args) => new Color_default(...args, "hex");
6046
- input_default.format.hex = hex2rgb_default;
6047
- input_default.autodetect.push({
6048
- p: 4,
6049
- test: (h, ...rest) => {
6050
- if (!rest.length && type_default(h) === "string" && [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0) {
6051
- return "hex";
6052
- }
6053
- }
6054
- });
6055
-
6056
- // node_modules/chroma-js/src/io/hsi/hsi2rgb.js
6057
- var { cos } = Math;
6058
- var hsi2rgb = (...args) => {
6059
- args = unpack_default(args, "hsi");
6060
- let [h, s, i] = args;
6061
- let r, g, b;
6062
- if (isNaN(h)) h = 0;
6063
- if (isNaN(s)) s = 0;
6064
- if (h > 360) h -= 360;
6065
- if (h < 0) h += 360;
6066
- h /= 360;
6067
- if (h < 1 / 3) {
6068
- b = (1 - s) / 3;
6069
- r = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6070
- g = 1 - (b + r);
6071
- } else if (h < 2 / 3) {
6072
- h -= 1 / 3;
6073
- r = (1 - s) / 3;
6074
- g = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6075
- b = 1 - (r + g);
6076
- } else {
6077
- h -= 2 / 3;
6078
- g = (1 - s) / 3;
6079
- b = (1 + s * cos(TWOPI * h) / cos(PITHIRD - TWOPI * h)) / 3;
6080
- r = 1 - (g + b);
6081
- }
6082
- r = limit_default(i * r * 3);
6083
- g = limit_default(i * g * 3);
6084
- b = limit_default(i * b * 3);
6085
- return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];
6086
- };
6087
- var hsi2rgb_default = hsi2rgb;
6088
-
6089
- // node_modules/chroma-js/src/io/hsi/rgb2hsi.js
6090
- var { min: min2, sqrt, acos } = Math;
6091
- var rgb2hsi = (...args) => {
6092
- let [r, g, b] = unpack_default(args, "rgb");
6093
- r /= 255;
6094
- g /= 255;
6095
- b /= 255;
6096
- let h;
6097
- const min_ = min2(r, g, b);
6098
- const i = (r + g + b) / 3;
6099
- const s = i > 0 ? 1 - min_ / i : 0;
6100
- if (s === 0) {
6101
- h = NaN;
6102
- } else {
6103
- h = (r - g + (r - b)) / 2;
6104
- h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));
6105
- h = acos(h);
6106
- if (b > g) {
6107
- h = TWOPI - h;
6108
- }
6109
- h /= TWOPI;
6110
- }
6111
- return [h * 360, s, i];
6112
- };
6113
- var rgb2hsi_default = rgb2hsi;
6114
-
6115
- // node_modules/chroma-js/src/io/hsi/index.js
6116
- Color_default.prototype.hsi = function() {
6117
- return rgb2hsi_default(this._rgb);
6118
- };
6119
- chroma_default.hsi = (...args) => new Color_default(...args, "hsi");
6120
- input_default.format.hsi = hsi2rgb_default;
6121
- input_default.autodetect.push({
6122
- p: 2,
6123
- test: (...args) => {
6124
- args = unpack_default(args, "hsi");
6125
- if (type_default(args) === "array" && args.length === 3) {
6126
- return "hsi";
6127
- }
6128
- }
6129
- });
6130
-
6131
- // node_modules/chroma-js/src/io/hsl/index.js
6132
- Color_default.prototype.hsl = function() {
6133
- return rgb2hsl_default(this._rgb);
6134
- };
6135
- chroma_default.hsl = (...args) => new Color_default(...args, "hsl");
6136
- input_default.format.hsl = hsl2rgb_default;
6137
- input_default.autodetect.push({
6138
- p: 2,
6139
- test: (...args) => {
6140
- args = unpack_default(args, "hsl");
6141
- if (type_default(args) === "array" && args.length === 3) {
6142
- return "hsl";
6143
- }
6144
- }
6145
- });
6146
-
6147
- // node_modules/chroma-js/src/io/hsv/hsv2rgb.js
6148
- var { floor: floor2 } = Math;
6149
- var hsv2rgb = (...args) => {
6150
- args = unpack_default(args, "hsv");
6151
- let [h, s, v] = args;
6152
- let r, g, b;
6153
- v *= 255;
6154
- if (s === 0) {
6155
- r = g = b = v;
6156
- } else {
6157
- if (h === 360) h = 0;
6158
- if (h > 360) h -= 360;
6159
- if (h < 0) h += 360;
6160
- h /= 60;
6161
- const i = floor2(h);
6162
- const f = h - i;
6163
- const p = v * (1 - s);
6164
- const q = v * (1 - s * f);
6165
- const t = v * (1 - s * (1 - f));
6166
- switch (i) {
6167
- case 0:
6168
- [r, g, b] = [v, t, p];
6169
- break;
6170
- case 1:
6171
- [r, g, b] = [q, v, p];
6172
- break;
6173
- case 2:
6174
- [r, g, b] = [p, v, t];
6175
- break;
6176
- case 3:
6177
- [r, g, b] = [p, q, v];
6178
- break;
6179
- case 4:
6180
- [r, g, b] = [t, p, v];
6181
- break;
6182
- case 5:
6183
- [r, g, b] = [v, p, q];
6184
- break;
6185
- }
6186
- }
6187
- return [r, g, b, args.length > 3 ? args[3] : 1];
6188
- };
6189
- var hsv2rgb_default = hsv2rgb;
6190
-
6191
- // node_modules/chroma-js/src/io/hsv/rgb2hsv.js
6192
- var { min: min3, max: max3 } = Math;
6193
- var rgb2hsl2 = (...args) => {
6194
- args = unpack_default(args, "rgb");
6195
- let [r, g, b] = args;
6196
- const min_ = min3(r, g, b);
6197
- const max_ = max3(r, g, b);
6198
- const delta2 = max_ - min_;
6199
- let h, s, v;
6200
- v = max_ / 255;
6201
- if (max_ === 0) {
6202
- h = Number.NaN;
6203
- s = 0;
6204
- } else {
6205
- s = delta2 / max_;
6206
- if (r === max_) h = (g - b) / delta2;
6207
- if (g === max_) h = 2 + (b - r) / delta2;
6208
- if (b === max_) h = 4 + (r - g) / delta2;
6209
- h *= 60;
6210
- if (h < 0) h += 360;
6211
- }
6212
- return [h, s, v];
6213
- };
6214
- var rgb2hsv_default = rgb2hsl2;
6215
-
6216
- // node_modules/chroma-js/src/io/hsv/index.js
6217
- Color_default.prototype.hsv = function() {
6218
- return rgb2hsv_default(this._rgb);
6219
- };
6220
- chroma_default.hsv = (...args) => new Color_default(...args, "hsv");
6221
- input_default.format.hsv = hsv2rgb_default;
6222
- input_default.autodetect.push({
6223
- p: 2,
6224
- test: (...args) => {
6225
- args = unpack_default(args, "hsv");
6226
- if (type_default(args) === "array" && args.length === 3) {
6227
- return "hsv";
6228
- }
6229
- }
6230
- });
6231
-
6232
- // node_modules/chroma-js/src/io/lab/lab-constants.js
6233
- var lab_constants_default = {
6234
- // Corresponds roughly to RGB brighter/darker
6235
- Kn: 18,
6236
- // D65 standard referent
6237
- Xn: 0.95047,
6238
- Yn: 1,
6239
- Zn: 1.08883,
6240
- t0: 0.137931034,
6241
- // 4 / 29
6242
- t1: 0.206896552,
6243
- // 6 / 29
6244
- t2: 0.12841855,
6245
- // 3 * t1 * t1
6246
- t3: 8856452e-9
6247
- // t1 * t1 * t1
6248
- };
6249
-
6250
- // node_modules/chroma-js/src/io/lab/lab2rgb.js
6251
- var { pow } = Math;
6252
- var lab2rgb = (...args) => {
6253
- args = unpack_default(args, "lab");
6254
- const [l, a, b] = args;
6255
- let x, y, z, r, g, b_;
6256
- y = (l + 16) / 116;
6257
- x = isNaN(a) ? y : y + a / 500;
6258
- z = isNaN(b) ? y : y - b / 200;
6259
- y = lab_constants_default.Yn * lab_xyz(y);
6260
- x = lab_constants_default.Xn * lab_xyz(x);
6261
- z = lab_constants_default.Zn * lab_xyz(z);
6262
- r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z);
6263
- g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);
6264
- b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);
6265
- return [r, g, b_, args.length > 3 ? args[3] : 1];
6266
- };
6267
- var xyz_rgb = (r) => {
6268
- return 255 * (r <= 304e-5 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);
6269
- };
6270
- var lab_xyz = (t) => {
6271
- return t > lab_constants_default.t1 ? t * t * t : lab_constants_default.t2 * (t - lab_constants_default.t0);
6272
- };
6273
- var lab2rgb_default = lab2rgb;
6274
-
6275
- // node_modules/chroma-js/src/io/lab/rgb2lab.js
6276
- var { pow: pow2 } = Math;
6277
- var rgb2lab = (...args) => {
6278
- const [r, g, b] = unpack_default(args, "rgb");
6279
- const [x, y, z] = rgb2xyz(r, g, b);
6280
- const l = 116 * y - 16;
6281
- return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];
6282
- };
6283
- var rgb_xyz = (r) => {
6284
- if ((r /= 255) <= 0.04045) return r / 12.92;
6285
- return pow2((r + 0.055) / 1.055, 2.4);
6286
- };
6287
- var xyz_lab = (t) => {
6288
- if (t > lab_constants_default.t3) return pow2(t, 1 / 3);
6289
- return t / lab_constants_default.t2 + lab_constants_default.t0;
6290
- };
6291
- var rgb2xyz = (r, g, b) => {
6292
- r = rgb_xyz(r);
6293
- g = rgb_xyz(g);
6294
- b = rgb_xyz(b);
6295
- const x = xyz_lab(
6296
- (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / lab_constants_default.Xn
6297
- );
6298
- const y = xyz_lab(
6299
- (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / lab_constants_default.Yn
6300
- );
6301
- const z = xyz_lab(
6302
- (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / lab_constants_default.Zn
6303
- );
6304
- return [x, y, z];
6305
- };
6306
- var rgb2lab_default = rgb2lab;
6307
-
6308
- // node_modules/chroma-js/src/io/lab/index.js
6309
- Color_default.prototype.lab = function() {
6310
- return rgb2lab_default(this._rgb);
6311
- };
6312
- chroma_default.lab = (...args) => new Color_default(...args, "lab");
6313
- input_default.format.lab = lab2rgb_default;
6314
- input_default.autodetect.push({
6315
- p: 2,
6316
- test: (...args) => {
6317
- args = unpack_default(args, "lab");
6318
- if (type_default(args) === "array" && args.length === 3) {
6319
- return "lab";
6320
- }
6321
- }
6322
- });
6323
-
6324
- // node_modules/chroma-js/src/io/lch/lch2lab.js
6325
- var { sin, cos: cos2 } = Math;
6326
- var lch2lab = (...args) => {
6327
- let [l, c, h] = unpack_default(args, "lch");
6328
- if (isNaN(h)) h = 0;
6329
- h = h * DEG2RAD;
6330
- return [l, cos2(h) * c, sin(h) * c];
6331
- };
6332
- var lch2lab_default = lch2lab;
6333
-
6334
- // node_modules/chroma-js/src/io/lch/lch2rgb.js
6335
- var lch2rgb = (...args) => {
6336
- args = unpack_default(args, "lch");
6337
- const [l, c, h] = args;
6338
- const [L, a, b_] = lch2lab_default(l, c, h);
6339
- const [r, g, b] = lab2rgb_default(L, a, b_);
6340
- return [r, g, b, args.length > 3 ? args[3] : 1];
6341
- };
6342
- var lch2rgb_default = lch2rgb;
6343
-
6344
- // node_modules/chroma-js/src/io/lch/hcl2rgb.js
6345
- var hcl2rgb = (...args) => {
6346
- const hcl = unpack_default(args, "hcl").reverse();
6347
- return lch2rgb_default(...hcl);
6348
- };
6349
- var hcl2rgb_default = hcl2rgb;
6350
-
6351
- // node_modules/chroma-js/src/io/lch/lab2lch.js
6352
- var { sqrt: sqrt2, atan2, round: round5 } = Math;
6353
- var lab2lch = (...args) => {
6354
- const [l, a, b] = unpack_default(args, "lab");
6355
- const c = sqrt2(a * a + b * b);
6356
- let h = (atan2(b, a) * RAD2DEG + 360) % 360;
6357
- if (round5(c * 1e4) === 0) h = Number.NaN;
6358
- return [l, c, h];
6359
- };
6360
- var lab2lch_default = lab2lch;
6361
-
6362
- // node_modules/chroma-js/src/io/lch/rgb2lch.js
6363
- var rgb2lch = (...args) => {
6364
- const [r, g, b] = unpack_default(args, "rgb");
6365
- const [l, a, b_] = rgb2lab_default(r, g, b);
6366
- return lab2lch_default(l, a, b_);
6367
- };
6368
- var rgb2lch_default = rgb2lch;
6369
-
6370
- // node_modules/chroma-js/src/io/lch/index.js
6371
- Color_default.prototype.lch = function() {
6372
- return rgb2lch_default(this._rgb);
6373
- };
6374
- Color_default.prototype.hcl = function() {
6375
- return rgb2lch_default(this._rgb).reverse();
6376
- };
6377
- chroma_default.lch = (...args) => new Color_default(...args, "lch");
6378
- chroma_default.hcl = (...args) => new Color_default(...args, "hcl");
6379
- input_default.format.lch = lch2rgb_default;
6380
- input_default.format.hcl = hcl2rgb_default;
6381
- ["lch", "hcl"].forEach(
6382
- (m) => input_default.autodetect.push({
6383
- p: 2,
6384
- test: (...args) => {
6385
- args = unpack_default(args, m);
6386
- if (type_default(args) === "array" && args.length === 3) {
6387
- return m;
6388
- }
6389
- }
6390
- })
6391
- );
6392
-
6393
- // node_modules/chroma-js/src/colors/w3cx11.js
6394
- var w3cx11 = {
6395
- aliceblue: "#f0f8ff",
6396
- antiquewhite: "#faebd7",
6397
- aqua: "#00ffff",
6398
- aquamarine: "#7fffd4",
6399
- azure: "#f0ffff",
6400
- beige: "#f5f5dc",
6401
- bisque: "#ffe4c4",
6402
- black: "#000000",
6403
- blanchedalmond: "#ffebcd",
6404
- blue: "#0000ff",
6405
- blueviolet: "#8a2be2",
6406
- brown: "#a52a2a",
6407
- burlywood: "#deb887",
6408
- cadetblue: "#5f9ea0",
6409
- chartreuse: "#7fff00",
6410
- chocolate: "#d2691e",
6411
- coral: "#ff7f50",
6412
- cornflowerblue: "#6495ed",
6413
- cornsilk: "#fff8dc",
6414
- crimson: "#dc143c",
6415
- cyan: "#00ffff",
6416
- darkblue: "#00008b",
6417
- darkcyan: "#008b8b",
6418
- darkgoldenrod: "#b8860b",
6419
- darkgray: "#a9a9a9",
6420
- darkgreen: "#006400",
6421
- darkgrey: "#a9a9a9",
6422
- darkkhaki: "#bdb76b",
6423
- darkmagenta: "#8b008b",
6424
- darkolivegreen: "#556b2f",
6425
- darkorange: "#ff8c00",
6426
- darkorchid: "#9932cc",
6427
- darkred: "#8b0000",
6428
- darksalmon: "#e9967a",
6429
- darkseagreen: "#8fbc8f",
6430
- darkslateblue: "#483d8b",
6431
- darkslategray: "#2f4f4f",
6432
- darkslategrey: "#2f4f4f",
6433
- darkturquoise: "#00ced1",
6434
- darkviolet: "#9400d3",
6435
- deeppink: "#ff1493",
6436
- deepskyblue: "#00bfff",
6437
- dimgray: "#696969",
6438
- dimgrey: "#696969",
6439
- dodgerblue: "#1e90ff",
6440
- firebrick: "#b22222",
6441
- floralwhite: "#fffaf0",
6442
- forestgreen: "#228b22",
6443
- fuchsia: "#ff00ff",
6444
- gainsboro: "#dcdcdc",
6445
- ghostwhite: "#f8f8ff",
6446
- gold: "#ffd700",
6447
- goldenrod: "#daa520",
6448
- gray: "#808080",
6449
- green: "#008000",
6450
- greenyellow: "#adff2f",
6451
- grey: "#808080",
6452
- honeydew: "#f0fff0",
6453
- hotpink: "#ff69b4",
6454
- indianred: "#cd5c5c",
6455
- indigo: "#4b0082",
6456
- ivory: "#fffff0",
6457
- khaki: "#f0e68c",
6458
- laserlemon: "#ffff54",
6459
- lavender: "#e6e6fa",
6460
- lavenderblush: "#fff0f5",
6461
- lawngreen: "#7cfc00",
6462
- lemonchiffon: "#fffacd",
6463
- lightblue: "#add8e6",
6464
- lightcoral: "#f08080",
6465
- lightcyan: "#e0ffff",
6466
- lightgoldenrod: "#fafad2",
6467
- lightgoldenrodyellow: "#fafad2",
6468
- lightgray: "#d3d3d3",
6469
- lightgreen: "#90ee90",
6470
- lightgrey: "#d3d3d3",
6471
- lightpink: "#ffb6c1",
6472
- lightsalmon: "#ffa07a",
6473
- lightseagreen: "#20b2aa",
6474
- lightskyblue: "#87cefa",
6475
- lightslategray: "#778899",
6476
- lightslategrey: "#778899",
6477
- lightsteelblue: "#b0c4de",
6478
- lightyellow: "#ffffe0",
6479
- lime: "#00ff00",
6480
- limegreen: "#32cd32",
6481
- linen: "#faf0e6",
6482
- magenta: "#ff00ff",
6483
- maroon: "#800000",
6484
- maroon2: "#7f0000",
6485
- maroon3: "#b03060",
6486
- mediumaquamarine: "#66cdaa",
6487
- mediumblue: "#0000cd",
6488
- mediumorchid: "#ba55d3",
6489
- mediumpurple: "#9370db",
6490
- mediumseagreen: "#3cb371",
6491
- mediumslateblue: "#7b68ee",
6492
- mediumspringgreen: "#00fa9a",
6493
- mediumturquoise: "#48d1cc",
6494
- mediumvioletred: "#c71585",
6495
- midnightblue: "#191970",
6496
- mintcream: "#f5fffa",
6497
- mistyrose: "#ffe4e1",
6498
- moccasin: "#ffe4b5",
6499
- navajowhite: "#ffdead",
6500
- navy: "#000080",
6501
- oldlace: "#fdf5e6",
6502
- olive: "#808000",
6503
- olivedrab: "#6b8e23",
6504
- orange: "#ffa500",
6505
- orangered: "#ff4500",
6506
- orchid: "#da70d6",
6507
- palegoldenrod: "#eee8aa",
6508
- palegreen: "#98fb98",
6509
- paleturquoise: "#afeeee",
6510
- palevioletred: "#db7093",
6511
- papayawhip: "#ffefd5",
6512
- peachpuff: "#ffdab9",
6513
- peru: "#cd853f",
6514
- pink: "#ffc0cb",
6515
- plum: "#dda0dd",
6516
- powderblue: "#b0e0e6",
6517
- purple: "#800080",
6518
- purple2: "#7f007f",
6519
- purple3: "#a020f0",
6520
- rebeccapurple: "#663399",
6521
- red: "#ff0000",
6522
- rosybrown: "#bc8f8f",
6523
- royalblue: "#4169e1",
6524
- saddlebrown: "#8b4513",
6525
- salmon: "#fa8072",
6526
- sandybrown: "#f4a460",
6527
- seagreen: "#2e8b57",
6528
- seashell: "#fff5ee",
6529
- sienna: "#a0522d",
6530
- silver: "#c0c0c0",
6531
- skyblue: "#87ceeb",
6532
- slateblue: "#6a5acd",
6533
- slategray: "#708090",
6534
- slategrey: "#708090",
6535
- snow: "#fffafa",
6536
- springgreen: "#00ff7f",
6537
- steelblue: "#4682b4",
6538
- tan: "#d2b48c",
6539
- teal: "#008080",
6540
- thistle: "#d8bfd8",
6541
- tomato: "#ff6347",
6542
- turquoise: "#40e0d0",
6543
- violet: "#ee82ee",
6544
- wheat: "#f5deb3",
6545
- white: "#ffffff",
6546
- whitesmoke: "#f5f5f5",
6547
- yellow: "#ffff00",
6548
- yellowgreen: "#9acd32"
6549
- };
6550
- var w3cx11_default = w3cx11;
6551
-
6552
- // node_modules/chroma-js/src/io/named/index.js
6553
- Color_default.prototype.name = function() {
6554
- const hex = rgb2hex_default(this._rgb, "rgb");
6555
- for (let n of Object.keys(w3cx11_default)) {
6556
- if (w3cx11_default[n] === hex) return n.toLowerCase();
6557
- }
6558
- return hex;
6559
- };
6560
- input_default.format.named = (name) => {
6561
- name = name.toLowerCase();
6562
- if (w3cx11_default[name]) return hex2rgb_default(w3cx11_default[name]);
6563
- throw new Error("unknown color name: " + name);
6564
- };
6565
- input_default.autodetect.push({
6566
- p: 5,
6567
- test: (h, ...rest) => {
6568
- if (!rest.length && type_default(h) === "string" && w3cx11_default[h.toLowerCase()]) {
6569
- return "named";
6570
- }
6571
- }
6572
- });
6573
-
6574
- // node_modules/chroma-js/src/io/num/num2rgb.js
6575
- var num2rgb = (num2) => {
6576
- if (type_default(num2) == "number" && num2 >= 0 && num2 <= 16777215) {
6577
- const r = num2 >> 16;
6578
- const g = num2 >> 8 & 255;
6579
- const b = num2 & 255;
6580
- return [r, g, b, 1];
6581
- }
6582
- throw new Error("unknown num color: " + num2);
6583
- };
6584
- var num2rgb_default = num2rgb;
6585
-
6586
- // node_modules/chroma-js/src/io/num/rgb2num.js
6587
- var rgb2num = (...args) => {
6588
- const [r, g, b] = unpack_default(args, "rgb");
6589
- return (r << 16) + (g << 8) + b;
6590
- };
6591
- var rgb2num_default = rgb2num;
6592
-
6593
- // node_modules/chroma-js/src/io/num/index.js
6594
- Color_default.prototype.num = function() {
6595
- return rgb2num_default(this._rgb);
6596
- };
6597
- chroma_default.num = (...args) => new Color_default(...args, "num");
6598
- input_default.format.num = num2rgb_default;
6599
- input_default.autodetect.push({
6600
- p: 5,
6601
- test: (...args) => {
6602
- if (args.length === 1 && type_default(args[0]) === "number" && args[0] >= 0 && args[0] <= 16777215) {
6603
- return "num";
6604
- }
6605
- }
6606
- });
6607
-
6608
- // node_modules/chroma-js/src/io/rgb/index.js
6609
- var { round: round6 } = Math;
6610
- Color_default.prototype.rgb = function(rnd2 = true) {
6611
- if (rnd2 === false) return this._rgb.slice(0, 3);
6612
- return this._rgb.slice(0, 3).map(round6);
6613
- };
6614
- Color_default.prototype.rgba = function(rnd2 = true) {
6615
- return this._rgb.slice(0, 4).map((v, i) => {
6616
- return i < 3 ? rnd2 === false ? v : round6(v) : v;
6617
- });
6618
- };
6619
- chroma_default.rgb = (...args) => new Color_default(...args, "rgb");
6620
- input_default.format.rgb = (...args) => {
6621
- const rgba = unpack_default(args, "rgba");
6622
- if (rgba[3] === void 0) rgba[3] = 1;
6623
- return rgba;
6624
- };
6625
- input_default.autodetect.push({
6626
- p: 3,
6627
- test: (...args) => {
6628
- args = unpack_default(args, "rgba");
6629
- if (type_default(args) === "array" && (args.length === 3 || args.length === 4 && type_default(args[3]) == "number" && args[3] >= 0 && args[3] <= 1)) {
6630
- return "rgb";
6631
- }
6632
- }
6633
- });
6634
-
6635
- // node_modules/chroma-js/src/io/temp/temperature2rgb.js
6636
- var { log } = Math;
6637
- var temperature2rgb = (kelvin) => {
6638
- const temp = kelvin / 100;
6639
- let r, g, b;
6640
- if (temp < 66) {
6641
- r = 255;
6642
- g = temp < 6 ? 0 : -155.25485562709179 - 0.44596950469579133 * (g = temp - 2) + 104.49216199393888 * log(g);
6643
- b = temp < 20 ? 0 : -254.76935184120902 + 0.8274096064007395 * (b = temp - 10) + 115.67994401066147 * log(b);
6644
- } else {
6645
- r = 351.97690566805693 + 0.114206453784165 * (r = temp - 55) - 40.25366309332127 * log(r);
6646
- g = 325.4494125711974 + 0.07943456536662342 * (g = temp - 50) - 28.0852963507957 * log(g);
6647
- b = 255;
6648
- }
6649
- return [r, g, b, 1];
6650
- };
6651
- var temperature2rgb_default = temperature2rgb;
6652
-
6653
- // node_modules/chroma-js/src/io/temp/rgb2temperature.js
6654
- var { round: round7 } = Math;
6655
- var rgb2temperature = (...args) => {
6656
- const rgb2 = unpack_default(args, "rgb");
6657
- const r = rgb2[0], b = rgb2[2];
6658
- let minTemp = 1e3;
6659
- let maxTemp = 4e4;
6660
- const eps = 0.4;
6661
- let temp;
6662
- while (maxTemp - minTemp > eps) {
6663
- temp = (maxTemp + minTemp) * 0.5;
6664
- const rgb3 = temperature2rgb_default(temp);
6665
- if (rgb3[2] / rgb3[0] >= b / r) {
6666
- maxTemp = temp;
6667
- } else {
6668
- minTemp = temp;
6669
- }
6670
- }
6671
- return round7(temp);
6672
- };
6673
- var rgb2temperature_default = rgb2temperature;
6674
-
6675
- // node_modules/chroma-js/src/io/temp/index.js
6676
- Color_default.prototype.temp = Color_default.prototype.kelvin = Color_default.prototype.temperature = function() {
6677
- return rgb2temperature_default(this._rgb);
6678
- };
6679
- chroma_default.temp = chroma_default.kelvin = chroma_default.temperature = (...args) => new Color_default(...args, "temp");
6680
- input_default.format.temp = input_default.format.kelvin = input_default.format.temperature = temperature2rgb_default;
6681
-
6682
- // node_modules/chroma-js/src/io/oklab/oklab2rgb.js
6683
- var { pow: pow3, sign } = Math;
6684
- var oklab2rgb = (...args) => {
6685
- args = unpack_default(args, "lab");
6686
- const [L, a, b] = args;
6687
- const l = pow3(L + 0.3963377774 * a + 0.2158037573 * b, 3);
6688
- const m = pow3(L - 0.1055613458 * a - 0.0638541728 * b, 3);
6689
- const s = pow3(L - 0.0894841775 * a - 1.291485548 * b, 3);
6690
- return [
6691
- 255 * lrgb2rgb(4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),
6692
- 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),
6693
- 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),
6694
- args.length > 3 ? args[3] : 1
6695
- ];
6696
- };
6697
- var oklab2rgb_default = oklab2rgb;
6698
- function lrgb2rgb(c) {
6699
- const abs3 = Math.abs(c);
6700
- if (abs3 > 31308e-7) {
6701
- return (sign(c) || 1) * (1.055 * pow3(abs3, 1 / 2.4) - 0.055);
6702
- }
6703
- return c * 12.92;
6704
- }
6705
-
6706
- // node_modules/chroma-js/src/io/oklab/rgb2oklab.js
6707
- var { cbrt, pow: pow4, sign: sign2 } = Math;
6708
- var rgb2oklab = (...args) => {
6709
- const [r, g, b] = unpack_default(args, "rgb");
6710
- const [lr, lg, lb] = [
6711
- rgb2lrgb(r / 255),
6712
- rgb2lrgb(g / 255),
6713
- rgb2lrgb(b / 255)
6714
- ];
6715
- const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);
6716
- const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);
6717
- const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);
6718
- return [
6719
- 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,
6720
- 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,
6721
- 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s
6722
- ];
6723
- };
6724
- var rgb2oklab_default = rgb2oklab;
6725
- function rgb2lrgb(c) {
6726
- const abs3 = Math.abs(c);
6727
- if (abs3 < 0.04045) {
6728
- return c / 12.92;
6729
- }
6730
- return (sign2(c) || 1) * pow4((abs3 + 0.055) / 1.055, 2.4);
6731
- }
6732
-
6733
- // node_modules/chroma-js/src/io/oklab/index.js
6734
- Color_default.prototype.oklab = function() {
6735
- return rgb2oklab_default(this._rgb);
6736
- };
6737
- chroma_default.oklab = (...args) => new Color_default(...args, "oklab");
6738
- input_default.format.oklab = oklab2rgb_default;
6739
- input_default.autodetect.push({
6740
- p: 3,
6741
- test: (...args) => {
6742
- args = unpack_default(args, "oklab");
6743
- if (type_default(args) === "array" && args.length === 3) {
6744
- return "oklab";
6745
- }
6746
- }
6747
- });
6748
-
6749
- // node_modules/chroma-js/src/io/oklch/oklch2rgb.js
6750
- var oklch2rgb = (...args) => {
6751
- args = unpack_default(args, "lch");
6752
- const [l, c, h] = args;
6753
- const [L, a, b_] = lch2lab_default(l, c, h);
6754
- const [r, g, b] = oklab2rgb_default(L, a, b_);
6755
- return [r, g, b, args.length > 3 ? args[3] : 1];
6756
- };
6757
- var oklch2rgb_default = oklch2rgb;
6758
-
6759
- // node_modules/chroma-js/src/io/oklch/rgb2oklch.js
6760
- var rgb2oklch = (...args) => {
6761
- const [r, g, b] = unpack_default(args, "rgb");
6762
- const [l, a, b_] = rgb2oklab_default(r, g, b);
6763
- return lab2lch_default(l, a, b_);
6764
- };
6765
- var rgb2oklch_default = rgb2oklch;
6766
-
6767
- // node_modules/chroma-js/src/io/oklch/index.js
6768
- Color_default.prototype.oklch = function() {
6769
- return rgb2oklch_default(this._rgb);
6770
- };
6771
- chroma_default.oklch = (...args) => new Color_default(...args, "oklch");
6772
- input_default.format.oklch = oklch2rgb_default;
6773
- input_default.autodetect.push({
6774
- p: 3,
6775
- test: (...args) => {
6776
- args = unpack_default(args, "oklch");
6777
- if (type_default(args) === "array" && args.length === 3) {
6778
- return "oklch";
6779
- }
6780
- }
6781
- });
6782
-
6783
- // node_modules/chroma-js/src/ops/alpha.js
6784
- Color_default.prototype.alpha = function(a, mutate = false) {
6785
- if (a !== void 0 && type_default(a) === "number") {
6786
- if (mutate) {
6787
- this._rgb[3] = a;
6788
- return this;
6789
- }
6790
- return new Color_default([this._rgb[0], this._rgb[1], this._rgb[2], a], "rgb");
6791
- }
6792
- return this._rgb[3];
6793
- };
6794
-
6795
- // node_modules/chroma-js/src/ops/clipped.js
6796
- Color_default.prototype.clipped = function() {
6797
- return this._rgb._clipped || false;
6798
- };
6799
-
6800
- // node_modules/chroma-js/src/ops/darken.js
6801
- Color_default.prototype.darken = function(amount = 1) {
6802
- const me = this;
6803
- const lab2 = me.lab();
6804
- lab2[0] -= lab_constants_default.Kn * amount;
6805
- return new Color_default(lab2, "lab").alpha(me.alpha(), true);
6806
- };
6807
- Color_default.prototype.brighten = function(amount = 1) {
6808
- return this.darken(-amount);
6809
- };
6810
- Color_default.prototype.darker = Color_default.prototype.darken;
6811
- Color_default.prototype.brighter = Color_default.prototype.brighten;
6812
-
6813
- // node_modules/chroma-js/src/ops/get.js
6814
- Color_default.prototype.get = function(mc) {
6815
- const [mode, channel] = mc.split(".");
6816
- const src = this[mode]();
6817
- if (channel) {
6818
- const i = mode.indexOf(channel) - (mode.substr(0, 2) === "ok" ? 2 : 0);
6819
- if (i > -1) return src[i];
6820
- throw new Error(`unknown channel ${channel} in mode ${mode}`);
6821
- } else {
6822
- return src;
6823
- }
6824
- };
6825
-
6826
- // node_modules/chroma-js/src/ops/luminance.js
6827
- var { pow: pow5 } = Math;
6828
- var EPS = 1e-7;
6829
- var MAX_ITER = 20;
6830
- Color_default.prototype.luminance = function(lum, mode = "rgb") {
6831
- if (lum !== void 0 && type_default(lum) === "number") {
6832
- if (lum === 0) {
6833
- return new Color_default([0, 0, 0, this._rgb[3]], "rgb");
6834
- }
6835
- if (lum === 1) {
6836
- return new Color_default([255, 255, 255, this._rgb[3]], "rgb");
6837
- }
6838
- let cur_lum = this.luminance();
6839
- let max_iter = MAX_ITER;
6840
- const test = (low, high) => {
6841
- const mid = low.interpolate(high, 0.5, mode);
6842
- const lm = mid.luminance();
6843
- if (Math.abs(lum - lm) < EPS || !max_iter--) {
6844
- return mid;
6845
- }
6846
- return lm > lum ? test(low, mid) : test(mid, high);
6847
- };
6848
- const rgb2 = (cur_lum > lum ? test(new Color_default([0, 0, 0]), this) : test(this, new Color_default([255, 255, 255]))).rgb();
6849
- return new Color_default([...rgb2, this._rgb[3]]);
6850
- }
6851
- return rgb2luminance(...this._rgb.slice(0, 3));
6852
- };
6853
- var rgb2luminance = (r, g, b) => {
6854
- r = luminance_x(r);
6855
- g = luminance_x(g);
6856
- b = luminance_x(b);
6857
- return 0.2126 * r + 0.7152 * g + 0.0722 * b;
6858
- };
6859
- var luminance_x = (x) => {
6860
- x /= 255;
6861
- return x <= 0.03928 ? x / 12.92 : pow5((x + 0.055) / 1.055, 2.4);
6862
- };
6863
-
6864
- // node_modules/chroma-js/src/interpolator/index.js
6865
- var interpolator_default = {};
6866
-
6867
- // node_modules/chroma-js/src/generator/mix.js
6868
- var mix_default = (col1, col2, f = 0.5, ...rest) => {
6869
- let mode = rest[0] || "lrgb";
6870
- if (!interpolator_default[mode] && !rest.length) {
6871
- mode = Object.keys(interpolator_default)[0];
6872
- }
6873
- if (!interpolator_default[mode]) {
6874
- throw new Error(`interpolation mode ${mode} is not defined`);
6875
- }
6876
- if (type_default(col1) !== "object") col1 = new Color_default(col1);
6877
- if (type_default(col2) !== "object") col2 = new Color_default(col2);
6878
- return interpolator_default[mode](col1, col2, f).alpha(
6879
- col1.alpha() + f * (col2.alpha() - col1.alpha())
6880
- );
6881
- };
6882
-
6883
- // node_modules/chroma-js/src/ops/mix.js
6884
- Color_default.prototype.mix = Color_default.prototype.interpolate = function(col2, f = 0.5, ...rest) {
6885
- return mix_default(this, col2, f, ...rest);
6886
- };
6887
-
6888
- // node_modules/chroma-js/src/ops/premultiply.js
6889
- Color_default.prototype.premultiply = function(mutate = false) {
6890
- const rgb2 = this._rgb;
6891
- const a = rgb2[3];
6892
- if (mutate) {
6893
- this._rgb = [rgb2[0] * a, rgb2[1] * a, rgb2[2] * a, a];
6894
- return this;
6895
- } else {
6896
- return new Color_default([rgb2[0] * a, rgb2[1] * a, rgb2[2] * a, a], "rgb");
6897
- }
6898
- };
6899
-
6900
- // node_modules/chroma-js/src/ops/saturate.js
6901
- Color_default.prototype.saturate = function(amount = 1) {
6902
- const me = this;
6903
- const lch2 = me.lch();
6904
- lch2[1] += lab_constants_default.Kn * amount;
6905
- if (lch2[1] < 0) lch2[1] = 0;
6906
- return new Color_default(lch2, "lch").alpha(me.alpha(), true);
6907
- };
6908
- Color_default.prototype.desaturate = function(amount = 1) {
6909
- return this.saturate(-amount);
6910
- };
6911
-
6912
- // node_modules/chroma-js/src/ops/set.js
6913
- Color_default.prototype.set = function(mc, value, mutate = false) {
6914
- const [mode, channel] = mc.split(".");
6915
- const src = this[mode]();
6916
- if (channel) {
6917
- const i = mode.indexOf(channel) - (mode.substr(0, 2) === "ok" ? 2 : 0);
6918
- if (i > -1) {
6919
- if (type_default(value) == "string") {
6920
- switch (value.charAt(0)) {
6921
- case "+":
6922
- src[i] += +value;
6923
- break;
6924
- case "-":
6925
- src[i] += +value;
6926
- break;
6927
- case "*":
6928
- src[i] *= +value.substr(1);
6929
- break;
6930
- case "/":
6931
- src[i] /= +value.substr(1);
6932
- break;
6933
- default:
6934
- src[i] = +value;
6935
- }
6936
- } else if (type_default(value) === "number") {
6937
- src[i] = value;
6938
- } else {
6939
- throw new Error(`unsupported value for Color.set`);
6940
- }
6941
- const out = new Color_default(src, mode);
6942
- if (mutate) {
6943
- this._rgb = out._rgb;
6944
- return this;
6945
- }
6946
- return out;
6947
- }
6948
- throw new Error(`unknown channel ${channel} in mode ${mode}`);
6949
- } else {
6950
- return src;
6951
- }
6952
- };
6953
-
6954
- // node_modules/chroma-js/src/ops/shade.js
6955
- Color_default.prototype.tint = function(f = 0.5, ...rest) {
6956
- return mix_default(this, "white", f, ...rest);
6957
- };
6958
- Color_default.prototype.shade = function(f = 0.5, ...rest) {
6959
- return mix_default(this, "black", f, ...rest);
6960
- };
6961
-
6962
- // node_modules/chroma-js/src/interpolator/rgb.js
6963
- var rgb = (col1, col2, f) => {
6964
- const xyz0 = col1._rgb;
6965
- const xyz1 = col2._rgb;
6966
- return new Color_default(
6967
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
6968
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
6969
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
6970
- "rgb"
6971
- );
6972
- };
6973
- interpolator_default.rgb = rgb;
6974
-
6975
- // node_modules/chroma-js/src/interpolator/lrgb.js
6976
- var { sqrt: sqrt3, pow: pow6 } = Math;
6977
- var lrgb = (col1, col2, f) => {
6978
- const [x1, y1, z1] = col1._rgb;
6979
- const [x2, y2, z2] = col2._rgb;
6980
- return new Color_default(
6981
- sqrt3(pow6(x1, 2) * (1 - f) + pow6(x2, 2) * f),
6982
- sqrt3(pow6(y1, 2) * (1 - f) + pow6(y2, 2) * f),
6983
- sqrt3(pow6(z1, 2) * (1 - f) + pow6(z2, 2) * f),
6984
- "rgb"
6985
- );
6986
- };
6987
- interpolator_default.lrgb = lrgb;
6988
-
6989
- // node_modules/chroma-js/src/interpolator/lab.js
6990
- var lab = (col1, col2, f) => {
6991
- const xyz0 = col1.lab();
6992
- const xyz1 = col2.lab();
6993
- return new Color_default(
6994
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
6995
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
6996
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
6997
- "lab"
6998
- );
6999
- };
7000
- interpolator_default.lab = lab;
7001
-
7002
- // node_modules/chroma-js/src/interpolator/_hsx.js
7003
- var hsx_default = (col1, col2, f, m) => {
7004
- let xyz0, xyz1;
7005
- if (m === "hsl") {
7006
- xyz0 = col1.hsl();
7007
- xyz1 = col2.hsl();
7008
- } else if (m === "hsv") {
7009
- xyz0 = col1.hsv();
7010
- xyz1 = col2.hsv();
7011
- } else if (m === "hcg") {
7012
- xyz0 = col1.hcg();
7013
- xyz1 = col2.hcg();
7014
- } else if (m === "hsi") {
7015
- xyz0 = col1.hsi();
7016
- xyz1 = col2.hsi();
7017
- } else if (m === "lch" || m === "hcl") {
7018
- m = "hcl";
7019
- xyz0 = col1.hcl();
7020
- xyz1 = col2.hcl();
7021
- } else if (m === "oklch") {
7022
- xyz0 = col1.oklch().reverse();
7023
- xyz1 = col2.oklch().reverse();
7024
- }
7025
- let hue0, hue1, sat0, sat1, lbv0, lbv1;
7026
- if (m.substr(0, 1) === "h" || m === "oklch") {
7027
- [hue0, sat0, lbv0] = xyz0;
7028
- [hue1, sat1, lbv1] = xyz1;
7029
- }
7030
- let sat, hue, lbv, dh;
7031
- if (!isNaN(hue0) && !isNaN(hue1)) {
7032
- if (hue1 > hue0 && hue1 - hue0 > 180) {
7033
- dh = hue1 - (hue0 + 360);
7034
- } else if (hue1 < hue0 && hue0 - hue1 > 180) {
7035
- dh = hue1 + 360 - hue0;
7036
- } else {
7037
- dh = hue1 - hue0;
7038
- }
7039
- hue = hue0 + f * dh;
7040
- } else if (!isNaN(hue0)) {
7041
- hue = hue0;
7042
- if ((lbv1 == 1 || lbv1 == 0) && m != "hsv") sat = sat0;
7043
- } else if (!isNaN(hue1)) {
7044
- hue = hue1;
7045
- if ((lbv0 == 1 || lbv0 == 0) && m != "hsv") sat = sat1;
7046
- } else {
7047
- hue = Number.NaN;
7048
- }
7049
- if (sat === void 0) sat = sat0 + f * (sat1 - sat0);
7050
- lbv = lbv0 + f * (lbv1 - lbv0);
7051
- return m === "oklch" ? new Color_default([lbv, sat, hue], m) : new Color_default([hue, sat, lbv], m);
7052
- };
7053
-
7054
- // node_modules/chroma-js/src/interpolator/lch.js
7055
- var lch = (col1, col2, f) => {
7056
- return hsx_default(col1, col2, f, "lch");
7057
- };
7058
- interpolator_default.lch = lch;
7059
- interpolator_default.hcl = lch;
7060
-
7061
- // node_modules/chroma-js/src/interpolator/num.js
7062
- var num = (col1, col2, f) => {
7063
- const c1 = col1.num();
7064
- const c2 = col2.num();
7065
- return new Color_default(c1 + f * (c2 - c1), "num");
7066
- };
7067
- interpolator_default.num = num;
7068
-
7069
- // node_modules/chroma-js/src/interpolator/hcg.js
7070
- var hcg = (col1, col2, f) => {
7071
- return hsx_default(col1, col2, f, "hcg");
7072
- };
7073
- interpolator_default.hcg = hcg;
7074
-
7075
- // node_modules/chroma-js/src/interpolator/hsi.js
7076
- var hsi = (col1, col2, f) => {
7077
- return hsx_default(col1, col2, f, "hsi");
7078
- };
7079
- interpolator_default.hsi = hsi;
7080
-
7081
- // node_modules/chroma-js/src/interpolator/hsl.js
7082
- var hsl = (col1, col2, f) => {
7083
- return hsx_default(col1, col2, f, "hsl");
7084
- };
7085
- interpolator_default.hsl = hsl;
7086
-
7087
- // node_modules/chroma-js/src/interpolator/hsv.js
7088
- var hsv = (col1, col2, f) => {
7089
- return hsx_default(col1, col2, f, "hsv");
7090
- };
7091
- interpolator_default.hsv = hsv;
7092
-
7093
- // node_modules/chroma-js/src/interpolator/oklab.js
7094
- var oklab = (col1, col2, f) => {
7095
- const xyz0 = col1.oklab();
7096
- const xyz1 = col2.oklab();
7097
- return new Color_default(
7098
- xyz0[0] + f * (xyz1[0] - xyz0[0]),
7099
- xyz0[1] + f * (xyz1[1] - xyz0[1]),
7100
- xyz0[2] + f * (xyz1[2] - xyz0[2]),
7101
- "oklab"
7102
- );
7103
- };
7104
- interpolator_default.oklab = oklab;
7105
-
7106
- // node_modules/chroma-js/src/interpolator/oklch.js
7107
- var oklch = (col1, col2, f) => {
7108
- return hsx_default(col1, col2, f, "oklch");
7109
- };
7110
- interpolator_default.oklch = oklch;
7111
-
7112
- // node_modules/chroma-js/src/generator/average.js
7113
- var { pow: pow7, sqrt: sqrt4, PI: PI2, cos: cos3, sin: sin2, atan2: atan22 } = Math;
7114
- var average_default = (colors, mode = "lrgb", weights = null) => {
7115
- const l = colors.length;
7116
- if (!weights) weights = Array.from(new Array(l)).map(() => 1);
7117
- const k = l / weights.reduce(function(a, b) {
7118
- return a + b;
7119
- });
7120
- weights.forEach((w, i) => {
7121
- weights[i] *= k;
7122
- });
7123
- colors = colors.map((c) => new Color_default(c));
7124
- if (mode === "lrgb") {
7125
- return _average_lrgb(colors, weights);
7126
- }
7127
- const first = colors.shift();
7128
- const xyz = first.get(mode);
7129
- const cnt = [];
7130
- let dx = 0;
7131
- let dy = 0;
7132
- for (let i = 0; i < xyz.length; i++) {
7133
- xyz[i] = (xyz[i] || 0) * weights[0];
7134
- cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);
7135
- if (mode.charAt(i) === "h" && !isNaN(xyz[i])) {
7136
- const A = xyz[i] / 180 * PI2;
7137
- dx += cos3(A) * weights[0];
7138
- dy += sin2(A) * weights[0];
7139
- }
7140
- }
7141
- let alpha = first.alpha() * weights[0];
7142
- colors.forEach((c, ci) => {
7143
- const xyz2 = c.get(mode);
7144
- alpha += c.alpha() * weights[ci + 1];
7145
- for (let i = 0; i < xyz.length; i++) {
7146
- if (!isNaN(xyz2[i])) {
7147
- cnt[i] += weights[ci + 1];
7148
- if (mode.charAt(i) === "h") {
7149
- const A = xyz2[i] / 180 * PI2;
7150
- dx += cos3(A) * weights[ci + 1];
7151
- dy += sin2(A) * weights[ci + 1];
7152
- } else {
7153
- xyz[i] += xyz2[i] * weights[ci + 1];
7154
- }
7155
- }
7156
- }
7157
- });
7158
- for (let i = 0; i < xyz.length; i++) {
7159
- if (mode.charAt(i) === "h") {
7160
- let A = atan22(dy / cnt[i], dx / cnt[i]) / PI2 * 180;
7161
- while (A < 0) A += 360;
7162
- while (A >= 360) A -= 360;
7163
- xyz[i] = A;
7164
- } else {
7165
- xyz[i] = xyz[i] / cnt[i];
7166
- }
7167
- }
7168
- alpha /= l;
7169
- return new Color_default(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);
7170
- };
7171
- var _average_lrgb = (colors, weights) => {
7172
- const l = colors.length;
7173
- const xyz = [0, 0, 0, 0];
7174
- for (let i = 0; i < colors.length; i++) {
7175
- const col = colors[i];
7176
- const f = weights[i] / l;
7177
- const rgb2 = col._rgb;
7178
- xyz[0] += pow7(rgb2[0], 2) * f;
7179
- xyz[1] += pow7(rgb2[1], 2) * f;
7180
- xyz[2] += pow7(rgb2[2], 2) * f;
7181
- xyz[3] += rgb2[3] * f;
7182
- }
7183
- xyz[0] = sqrt4(xyz[0]);
7184
- xyz[1] = sqrt4(xyz[1]);
7185
- xyz[2] = sqrt4(xyz[2]);
7186
- if (xyz[3] > 0.9999999) xyz[3] = 1;
7187
- return new Color_default(clip_rgb_default(xyz));
7188
- };
7189
-
7190
- // node_modules/chroma-js/src/generator/scale.js
7191
- var { pow: pow8 } = Math;
7192
- function scale_default(colors) {
7193
- let _mode = "rgb";
7194
- let _nacol = chroma_default("#ccc");
7195
- let _spread = 0;
7196
- let _domain = [0, 1];
7197
- let _pos = [];
7198
- let _padding = [0, 0];
7199
- let _classes = false;
7200
- let _colors = [];
7201
- let _out = false;
7202
- let _min = 0;
7203
- let _max = 1;
7204
- let _correctLightness = false;
7205
- let _colorCache = {};
7206
- let _useCache = true;
7207
- let _gamma = 1;
7208
- const setColors = function(colors2) {
7209
- colors2 = colors2 || ["#fff", "#000"];
7210
- if (colors2 && type_default(colors2) === "string" && chroma_default.brewer && chroma_default.brewer[colors2.toLowerCase()]) {
7211
- colors2 = chroma_default.brewer[colors2.toLowerCase()];
7212
- }
7213
- if (type_default(colors2) === "array") {
7214
- if (colors2.length === 1) {
7215
- colors2 = [colors2[0], colors2[0]];
7216
- }
7217
- colors2 = colors2.slice(0);
7218
- for (let c = 0; c < colors2.length; c++) {
7219
- colors2[c] = chroma_default(colors2[c]);
7220
- }
7221
- _pos.length = 0;
7222
- for (let c = 0; c < colors2.length; c++) {
7223
- _pos.push(c / (colors2.length - 1));
7224
- }
7225
- }
7226
- resetCache();
7227
- return _colors = colors2;
7228
- };
7229
- const getClass = function(value) {
7230
- if (_classes != null) {
7231
- const n = _classes.length - 1;
7232
- let i = 0;
7233
- while (i < n && value >= _classes[i]) {
7234
- i++;
7235
- }
7236
- return i - 1;
7237
- }
7238
- return 0;
7239
- };
7240
- let tMapLightness = (t) => t;
7241
- let tMapDomain = (t) => t;
7242
- const getColor = function(val, bypassMap) {
7243
- let col, t;
7244
- if (bypassMap == null) {
7245
- bypassMap = false;
7246
- }
7247
- if (isNaN(val) || val === null) {
7248
- return _nacol;
7249
- }
7250
- if (!bypassMap) {
7251
- if (_classes && _classes.length > 2) {
7252
- const c = getClass(val);
7253
- t = c / (_classes.length - 2);
7254
- } else if (_max !== _min) {
7255
- t = (val - _min) / (_max - _min);
7256
- } else {
7257
- t = 1;
7258
- }
7259
- } else {
7260
- t = val;
7261
- }
7262
- t = tMapDomain(t);
7263
- if (!bypassMap) {
7264
- t = tMapLightness(t);
7265
- }
7266
- if (_gamma !== 1) {
7267
- t = pow8(t, _gamma);
7268
- }
7269
- t = _padding[0] + t * (1 - _padding[0] - _padding[1]);
7270
- t = limit_default(t, 0, 1);
7271
- const k = Math.floor(t * 1e4);
7272
- if (_useCache && _colorCache[k]) {
7273
- col = _colorCache[k];
7274
- } else {
7275
- if (type_default(_colors) === "array") {
7276
- for (let i = 0; i < _pos.length; i++) {
7277
- const p = _pos[i];
7278
- if (t <= p) {
7279
- col = _colors[i];
7280
- break;
7281
- }
7282
- if (t >= p && i === _pos.length - 1) {
7283
- col = _colors[i];
7284
- break;
7285
- }
7286
- if (t > p && t < _pos[i + 1]) {
7287
- t = (t - p) / (_pos[i + 1] - p);
7288
- col = chroma_default.interpolate(
7289
- _colors[i],
7290
- _colors[i + 1],
7291
- t,
7292
- _mode
7293
- );
7294
- break;
7295
- }
7296
- }
7297
- } else if (type_default(_colors) === "function") {
7298
- col = _colors(t);
7299
- }
7300
- if (_useCache) {
7301
- _colorCache[k] = col;
7302
- }
7303
- }
7304
- return col;
7305
- };
7306
- var resetCache = () => _colorCache = {};
7307
- setColors(colors);
7308
- const f = function(v) {
7309
- const c = chroma_default(getColor(v));
7310
- if (_out && c[_out]) {
7311
- return c[_out]();
7312
- } else {
7313
- return c;
7314
- }
7315
- };
7316
- f.classes = function(classes) {
7317
- if (classes != null) {
7318
- if (type_default(classes) === "array") {
7319
- _classes = classes;
7320
- _domain = [classes[0], classes[classes.length - 1]];
7321
- } else {
7322
- const d = chroma_default.analyze(_domain);
7323
- if (classes === 0) {
7324
- _classes = [d.min, d.max];
7325
- } else {
7326
- _classes = chroma_default.limits(d, "e", classes);
7327
- }
7328
- }
7329
- return f;
7330
- }
7331
- return _classes;
7332
- };
7333
- f.domain = function(domain) {
7334
- if (!arguments.length) {
7335
- return _domain;
7336
- }
7337
- _min = domain[0];
7338
- _max = domain[domain.length - 1];
7339
- _pos = [];
7340
- const k = _colors.length;
7341
- if (domain.length === k && _min !== _max) {
7342
- for (let d of Array.from(domain)) {
7343
- _pos.push((d - _min) / (_max - _min));
7344
- }
7345
- } else {
7346
- for (let c = 0; c < k; c++) {
7347
- _pos.push(c / (k - 1));
7348
- }
7349
- if (domain.length > 2) {
7350
- const tOut = domain.map((d, i) => i / (domain.length - 1));
7351
- const tBreaks = domain.map((d) => (d - _min) / (_max - _min));
7352
- if (!tBreaks.every((val, i) => tOut[i] === val)) {
7353
- tMapDomain = (t) => {
7354
- if (t <= 0 || t >= 1) return t;
7355
- let i = 0;
7356
- while (t >= tBreaks[i + 1]) i++;
7357
- const f2 = (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);
7358
- const out = tOut[i] + f2 * (tOut[i + 1] - tOut[i]);
7359
- return out;
7360
- };
7361
- }
7362
- }
7363
- }
7364
- _domain = [_min, _max];
7365
- return f;
7366
- };
7367
- f.mode = function(_m) {
7368
- if (!arguments.length) {
7369
- return _mode;
7370
- }
7371
- _mode = _m;
7372
- resetCache();
7373
- return f;
7374
- };
7375
- f.range = function(colors2, _pos2) {
7376
- setColors(colors2);
7377
- return f;
7378
- };
7379
- f.out = function(_o) {
7380
- _out = _o;
7381
- return f;
7382
- };
7383
- f.spread = function(val) {
7384
- if (!arguments.length) {
7385
- return _spread;
7386
- }
7387
- _spread = val;
7388
- return f;
7389
- };
7390
- f.correctLightness = function(v) {
7391
- if (v == null) {
7392
- v = true;
7393
- }
7394
- _correctLightness = v;
7395
- resetCache();
7396
- if (_correctLightness) {
7397
- tMapLightness = function(t) {
7398
- const L0 = getColor(0, true).lab()[0];
7399
- const L1 = getColor(1, true).lab()[0];
7400
- const pol = L0 > L1;
7401
- let L_actual = getColor(t, true).lab()[0];
7402
- const L_ideal = L0 + (L1 - L0) * t;
7403
- let L_diff = L_actual - L_ideal;
7404
- let t0 = 0;
7405
- let t1 = 1;
7406
- let max_iter = 20;
7407
- while (Math.abs(L_diff) > 0.01 && max_iter-- > 0) {
7408
- (function() {
7409
- if (pol) {
7410
- L_diff *= -1;
7411
- }
7412
- if (L_diff < 0) {
7413
- t0 = t;
7414
- t += (t1 - t) * 0.5;
7415
- } else {
7416
- t1 = t;
7417
- t += (t0 - t) * 0.5;
7418
- }
7419
- L_actual = getColor(t, true).lab()[0];
7420
- return L_diff = L_actual - L_ideal;
7421
- })();
7422
- }
7423
- return t;
7424
- };
7425
- } else {
7426
- tMapLightness = (t) => t;
7427
- }
7428
- return f;
7429
- };
7430
- f.padding = function(p) {
7431
- if (p != null) {
7432
- if (type_default(p) === "number") {
7433
- p = [p, p];
7434
- }
7435
- _padding = p;
7436
- return f;
7437
- } else {
7438
- return _padding;
7439
- }
7440
- };
7441
- f.colors = function(numColors, out) {
7442
- if (arguments.length < 2) {
7443
- out = "hex";
7444
- }
7445
- let result = [];
7446
- if (arguments.length === 0) {
7447
- result = _colors.slice(0);
7448
- } else if (numColors === 1) {
7449
- result = [f(0.5)];
7450
- } else if (numColors > 1) {
7451
- const dm = _domain[0];
7452
- const dd = _domain[1] - dm;
7453
- result = __range__(0, numColors).map(
7454
- (i) => f(dm + i / (numColors - 1) * dd)
7455
- );
7456
- } else {
7457
- colors = [];
7458
- let samples = [];
7459
- if (_classes && _classes.length > 2) {
7460
- for (let i = 1, end = _classes.length, asc = 1 <= end; asc ? i < end : i > end; asc ? i++ : i--) {
7461
- samples.push((_classes[i - 1] + _classes[i]) * 0.5);
7462
- }
7463
- } else {
7464
- samples = _domain;
7465
- }
7466
- result = samples.map((v) => f(v));
7467
- }
7468
- if (chroma_default[out]) {
7469
- result = result.map((c) => c[out]());
7470
- }
7471
- return result;
7472
- };
7473
- f.cache = function(c) {
7474
- if (c != null) {
7475
- _useCache = c;
7476
- return f;
7477
- } else {
7478
- return _useCache;
7479
- }
7480
- };
7481
- f.gamma = function(g) {
7482
- if (g != null) {
7483
- _gamma = g;
7484
- return f;
7485
- } else {
7486
- return _gamma;
7487
- }
7488
- };
7489
- f.nodata = function(d) {
7490
- if (d != null) {
7491
- _nacol = chroma_default(d);
7492
- return f;
7493
- } else {
7494
- return _nacol;
7495
- }
7496
- };
7497
- return f;
7498
- }
7499
- function __range__(left, right, inclusive) {
7500
- let range = [];
7501
- let ascending = left < right;
7502
- let end = right ;
7503
- for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {
7504
- range.push(i);
7505
- }
7506
- return range;
7507
- }
7508
-
7509
- // node_modules/chroma-js/src/generator/bezier.js
7510
- var binom_row = function(n) {
7511
- let row = [1, 1];
7512
- for (let i = 1; i < n; i++) {
7513
- let newrow = [1];
7514
- for (let j = 1; j <= row.length; j++) {
7515
- newrow[j] = (row[j] || 0) + row[j - 1];
7516
- }
7517
- row = newrow;
7518
- }
7519
- return row;
7520
- };
7521
- var bezier = function(colors) {
7522
- let I, lab0, lab1, lab2;
7523
- colors = colors.map((c) => new Color_default(c));
7524
- if (colors.length === 2) {
7525
- [lab0, lab1] = colors.map((c) => c.lab());
7526
- I = function(t) {
7527
- const lab3 = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));
7528
- return new Color_default(lab3, "lab");
7529
- };
7530
- } else if (colors.length === 3) {
7531
- [lab0, lab1, lab2] = colors.map((c) => c.lab());
7532
- I = function(t) {
7533
- const lab3 = [0, 1, 2].map(
7534
- (i) => (1 - t) * (1 - t) * lab0[i] + 2 * (1 - t) * t * lab1[i] + t * t * lab2[i]
7535
- );
7536
- return new Color_default(lab3, "lab");
7537
- };
7538
- } else if (colors.length === 4) {
7539
- let lab3;
7540
- [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());
7541
- I = function(t) {
7542
- const lab4 = [0, 1, 2].map(
7543
- (i) => (1 - t) * (1 - t) * (1 - t) * lab0[i] + 3 * (1 - t) * (1 - t) * t * lab1[i] + 3 * (1 - t) * t * t * lab2[i] + t * t * t * lab3[i]
7544
- );
7545
- return new Color_default(lab4, "lab");
7546
- };
7547
- } else if (colors.length >= 5) {
7548
- let labs, row, n;
7549
- labs = colors.map((c) => c.lab());
7550
- n = colors.length - 1;
7551
- row = binom_row(n);
7552
- I = function(t) {
7553
- const u = 1 - t;
7554
- const lab3 = [0, 1, 2].map(
7555
- (i) => labs.reduce(
7556
- (sum, el, j) => sum + row[j] * u ** (n - j) * t ** j * el[i],
7557
- 0
7558
- )
7559
- );
7560
- return new Color_default(lab3, "lab");
7561
- };
7562
- } else {
7563
- throw new RangeError("No point in running bezier with only one color.");
7564
- }
7565
- return I;
7566
- };
7567
- var bezier_default = (colors) => {
7568
- const f = bezier(colors);
7569
- f.scale = () => scale_default(f);
7570
- return f;
7571
- };
7572
-
7573
- // node_modules/chroma-js/src/generator/blend.js
7574
- var blend = (bottom, top, mode) => {
7575
- if (!blend[mode]) {
7576
- throw new Error("unknown blend mode " + mode);
7577
- }
7578
- return blend[mode](bottom, top);
7579
- };
7580
- var blend_f = (f) => (bottom, top) => {
7581
- const c0 = chroma_default(top).rgb();
7582
- const c1 = chroma_default(bottom).rgb();
7583
- return chroma_default.rgb(f(c0, c1));
7584
- };
7585
- var each = (f) => (c0, c1) => {
7586
- const out = [];
7587
- out[0] = f(c0[0], c1[0]);
7588
- out[1] = f(c0[1], c1[1]);
7589
- out[2] = f(c0[2], c1[2]);
7590
- return out;
7591
- };
7592
- var normal = (a) => a;
7593
- var multiply = (a, b) => a * b / 255;
7594
- var darken = (a, b) => a > b ? b : a;
7595
- var lighten = (a, b) => a > b ? a : b;
7596
- var screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));
7597
- var overlay = (a, b) => b < 128 ? 2 * a * b / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));
7598
- var burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));
7599
- var dodge = (a, b) => {
7600
- if (a === 255) return 255;
7601
- a = 255 * (b / 255) / (1 - a / 255);
7602
- return a > 255 ? 255 : a;
7603
- };
7604
- blend.normal = blend_f(each(normal));
7605
- blend.multiply = blend_f(each(multiply));
7606
- blend.screen = blend_f(each(screen));
7607
- blend.overlay = blend_f(each(overlay));
7608
- blend.darken = blend_f(each(darken));
7609
- blend.lighten = blend_f(each(lighten));
7610
- blend.dodge = blend_f(each(dodge));
7611
- blend.burn = blend_f(each(burn));
7612
- var blend_default = blend;
7613
-
7614
- // node_modules/chroma-js/src/generator/cubehelix.js
7615
- var { pow: pow9, sin: sin3, cos: cos4 } = Math;
7616
- function cubehelix_default(start = 300, rotations = -1.5, hue = 1, gamma = 1, lightness = [0, 1]) {
7617
- let dh = 0, dl;
7618
- if (type_default(lightness) === "array") {
7619
- dl = lightness[1] - lightness[0];
7620
- } else {
7621
- dl = 0;
7622
- lightness = [lightness, lightness];
7623
- }
7624
- const f = function(fract) {
7625
- const a = TWOPI * ((start + 120) / 360 + rotations * fract);
7626
- const l = pow9(lightness[0] + dl * fract, gamma);
7627
- const h = dh !== 0 ? hue[0] + fract * dh : hue;
7628
- const amp = h * l * (1 - l) / 2;
7629
- const cos_a = cos4(a);
7630
- const sin_a = sin3(a);
7631
- const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);
7632
- const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);
7633
- const b = l + amp * (1.97294 * cos_a);
7634
- return chroma_default(clip_rgb_default([r * 255, g * 255, b * 255, 1]));
7635
- };
7636
- f.start = function(s) {
7637
- if (s == null) {
7638
- return start;
7639
- }
7640
- start = s;
7641
- return f;
7642
- };
7643
- f.rotations = function(r) {
7644
- if (r == null) {
7645
- return rotations;
7646
- }
7647
- rotations = r;
7648
- return f;
7649
- };
7650
- f.gamma = function(g) {
7651
- if (g == null) {
7652
- return gamma;
7653
- }
7654
- gamma = g;
7655
- return f;
7656
- };
7657
- f.hue = function(h) {
7658
- if (h == null) {
7659
- return hue;
7660
- }
7661
- hue = h;
7662
- if (type_default(hue) === "array") {
7663
- dh = hue[1] - hue[0];
7664
- if (dh === 0) {
7665
- hue = hue[1];
7666
- }
7667
- } else {
7668
- dh = 0;
7669
- }
7670
- return f;
7671
- };
7672
- f.lightness = function(h) {
7673
- if (h == null) {
7674
- return lightness;
7675
- }
7676
- if (type_default(h) === "array") {
7677
- lightness = h;
7678
- dl = h[1] - h[0];
7679
- } else {
7680
- lightness = [h, h];
7681
- dl = 0;
7682
- }
7683
- return f;
7684
- };
7685
- f.scale = () => chroma_default.scale(f);
7686
- f.hue(hue);
7687
- return f;
7688
- }
7689
-
7690
- // node_modules/chroma-js/src/generator/random.js
7691
- var digits = "0123456789abcdef";
7692
- var { floor: floor3, random } = Math;
7693
- var random_default = () => {
7694
- let code = "#";
7695
- for (let i = 0; i < 6; i++) {
7696
- code += digits.charAt(floor3(random() * 16));
7697
- }
7698
- return new Color_default(code, "hex");
7699
- };
7700
-
7701
- // node_modules/chroma-js/src/utils/analyze.js
7702
- var { log: log2, pow: pow10, floor: floor4, abs } = Math;
7703
- function analyze(data, key = null) {
7704
- const r = {
7705
- min: Number.MAX_VALUE,
7706
- max: Number.MAX_VALUE * -1,
7707
- sum: 0,
7708
- values: [],
7709
- count: 0
7710
- };
7711
- if (type_default(data) === "object") {
7712
- data = Object.values(data);
7713
- }
7714
- data.forEach((val) => {
7715
- if (key && type_default(val) === "object") val = val[key];
7716
- if (val !== void 0 && val !== null && !isNaN(val)) {
7717
- r.values.push(val);
7718
- r.sum += val;
7719
- if (val < r.min) r.min = val;
7720
- if (val > r.max) r.max = val;
7721
- r.count += 1;
7722
- }
7723
- });
7724
- r.domain = [r.min, r.max];
7725
- r.limits = (mode, num2) => limits(r, mode, num2);
7726
- return r;
7727
- }
7728
- function limits(data, mode = "equal", num2 = 7) {
7729
- if (type_default(data) == "array") {
7730
- data = analyze(data);
7731
- }
7732
- const { min: min5, max: max5 } = data;
7733
- const values = data.values.sort((a, b) => a - b);
7734
- if (num2 === 1) {
7735
- return [min5, max5];
7736
- }
7737
- const limits2 = [];
7738
- if (mode.substr(0, 1) === "c") {
7739
- limits2.push(min5);
7740
- limits2.push(max5);
7741
- }
7742
- if (mode.substr(0, 1) === "e") {
7743
- limits2.push(min5);
7744
- for (let i = 1; i < num2; i++) {
7745
- limits2.push(min5 + i / num2 * (max5 - min5));
7746
- }
7747
- limits2.push(max5);
7748
- } else if (mode.substr(0, 1) === "l") {
7749
- if (min5 <= 0) {
7750
- throw new Error(
7751
- "Logarithmic scales are only possible for values > 0"
7752
- );
7753
- }
7754
- const min_log = Math.LOG10E * log2(min5);
7755
- const max_log = Math.LOG10E * log2(max5);
7756
- limits2.push(min5);
7757
- for (let i = 1; i < num2; i++) {
7758
- limits2.push(pow10(10, min_log + i / num2 * (max_log - min_log)));
7759
- }
7760
- limits2.push(max5);
7761
- } else if (mode.substr(0, 1) === "q") {
7762
- limits2.push(min5);
7763
- for (let i = 1; i < num2; i++) {
7764
- const p = (values.length - 1) * i / num2;
7765
- const pb = floor4(p);
7766
- if (pb === p) {
7767
- limits2.push(values[pb]);
7768
- } else {
7769
- const pr = p - pb;
7770
- limits2.push(values[pb] * (1 - pr) + values[pb + 1] * pr);
7771
- }
7772
- }
7773
- limits2.push(max5);
7774
- } else if (mode.substr(0, 1) === "k") {
7775
- let cluster;
7776
- const n = values.length;
7777
- const assignments = new Array(n);
7778
- const clusterSizes = new Array(num2);
7779
- let repeat = true;
7780
- let nb_iters = 0;
7781
- let centroids = null;
7782
- centroids = [];
7783
- centroids.push(min5);
7784
- for (let i = 1; i < num2; i++) {
7785
- centroids.push(min5 + i / num2 * (max5 - min5));
7786
- }
7787
- centroids.push(max5);
7788
- while (repeat) {
7789
- for (let j = 0; j < num2; j++) {
7790
- clusterSizes[j] = 0;
7791
- }
7792
- for (let i = 0; i < n; i++) {
7793
- const value = values[i];
7794
- let mindist = Number.MAX_VALUE;
7795
- let best;
7796
- for (let j = 0; j < num2; j++) {
7797
- const dist = abs(centroids[j] - value);
7798
- if (dist < mindist) {
7799
- mindist = dist;
7800
- best = j;
7801
- }
7802
- clusterSizes[best]++;
7803
- assignments[i] = best;
7804
- }
7805
- }
7806
- const newCentroids = new Array(num2);
7807
- for (let j = 0; j < num2; j++) {
7808
- newCentroids[j] = null;
7809
- }
7810
- for (let i = 0; i < n; i++) {
7811
- cluster = assignments[i];
7812
- if (newCentroids[cluster] === null) {
7813
- newCentroids[cluster] = values[i];
7814
- } else {
7815
- newCentroids[cluster] += values[i];
7816
- }
7817
- }
7818
- for (let j = 0; j < num2; j++) {
7819
- newCentroids[j] *= 1 / clusterSizes[j];
7820
- }
7821
- repeat = false;
7822
- for (let j = 0; j < num2; j++) {
7823
- if (newCentroids[j] !== centroids[j]) {
7824
- repeat = true;
7825
- break;
7826
- }
7827
- }
7828
- centroids = newCentroids;
7829
- nb_iters++;
7830
- if (nb_iters > 200) {
7831
- repeat = false;
7832
- }
7833
- }
7834
- const kClusters = {};
7835
- for (let j = 0; j < num2; j++) {
7836
- kClusters[j] = [];
7837
- }
7838
- for (let i = 0; i < n; i++) {
7839
- cluster = assignments[i];
7840
- kClusters[cluster].push(values[i]);
7841
- }
7842
- let tmpKMeansBreaks = [];
7843
- for (let j = 0; j < num2; j++) {
7844
- tmpKMeansBreaks.push(kClusters[j][0]);
7845
- tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);
7846
- }
7847
- tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);
7848
- limits2.push(tmpKMeansBreaks[0]);
7849
- for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {
7850
- const v = tmpKMeansBreaks[i];
7851
- if (!isNaN(v) && limits2.indexOf(v) === -1) {
7852
- limits2.push(v);
7853
- }
7854
- }
7855
- }
7856
- return limits2;
7857
- }
7858
-
7859
- // node_modules/chroma-js/src/utils/contrast.js
7860
- var contrast_default = (a, b) => {
7861
- a = new Color_default(a);
7862
- b = new Color_default(b);
7863
- const l1 = a.luminance();
7864
- const l2 = b.luminance();
7865
- return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);
7866
- };
7867
-
7868
- // node_modules/chroma-js/src/utils/delta-e.js
7869
- var { sqrt: sqrt5, pow: pow11, min: min4, max: max4, atan2: atan23, abs: abs2, cos: cos5, sin: sin4, exp, PI: PI3 } = Math;
7870
- function delta_e_default(a, b, Kl = 1, Kc = 1, Kh = 1) {
7871
- var rad2deg = function(rad) {
7872
- return 360 * rad / (2 * PI3);
7873
- };
7874
- var deg2rad = function(deg) {
7875
- return 2 * PI3 * deg / 360;
7876
- };
7877
- a = new Color_default(a);
7878
- b = new Color_default(b);
7879
- const [L1, a1, b1] = Array.from(a.lab());
7880
- const [L2, a2, b2] = Array.from(b.lab());
7881
- const avgL = (L1 + L2) / 2;
7882
- const C1 = sqrt5(pow11(a1, 2) + pow11(b1, 2));
7883
- const C2 = sqrt5(pow11(a2, 2) + pow11(b2, 2));
7884
- const avgC = (C1 + C2) / 2;
7885
- const G = 0.5 * (1 - sqrt5(pow11(avgC, 7) / (pow11(avgC, 7) + pow11(25, 7))));
7886
- const a1p = a1 * (1 + G);
7887
- const a2p = a2 * (1 + G);
7888
- const C1p = sqrt5(pow11(a1p, 2) + pow11(b1, 2));
7889
- const C2p = sqrt5(pow11(a2p, 2) + pow11(b2, 2));
7890
- const avgCp = (C1p + C2p) / 2;
7891
- const arctan1 = rad2deg(atan23(b1, a1p));
7892
- const arctan2 = rad2deg(atan23(b2, a2p));
7893
- const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;
7894
- const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;
7895
- const avgHp = abs2(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;
7896
- const T = 1 - 0.17 * cos5(deg2rad(avgHp - 30)) + 0.24 * cos5(deg2rad(2 * avgHp)) + 0.32 * cos5(deg2rad(3 * avgHp + 6)) - 0.2 * cos5(deg2rad(4 * avgHp - 63));
7897
- let deltaHp = h2p - h1p;
7898
- deltaHp = abs2(deltaHp) <= 180 ? deltaHp : h2p <= h1p ? deltaHp + 360 : deltaHp - 360;
7899
- deltaHp = 2 * sqrt5(C1p * C2p) * sin4(deg2rad(deltaHp) / 2);
7900
- const deltaL = L2 - L1;
7901
- const deltaCp = C2p - C1p;
7902
- const sl = 1 + 0.015 * pow11(avgL - 50, 2) / sqrt5(20 + pow11(avgL - 50, 2));
7903
- const sc = 1 + 0.045 * avgCp;
7904
- const sh = 1 + 0.015 * avgCp * T;
7905
- const deltaTheta = 30 * exp(-pow11((avgHp - 275) / 25, 2));
7906
- const Rc = 2 * sqrt5(pow11(avgCp, 7) / (pow11(avgCp, 7) + pow11(25, 7)));
7907
- const Rt = -Rc * sin4(2 * deg2rad(deltaTheta));
7908
- const result = sqrt5(
7909
- pow11(deltaL / (Kl * sl), 2) + pow11(deltaCp / (Kc * sc), 2) + pow11(deltaHp / (Kh * sh), 2) + Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))
7910
- );
7911
- return max4(0, min4(100, result));
7912
- }
7913
-
7914
- // node_modules/chroma-js/src/utils/distance.js
7915
- function distance_default(a, b, mode = "lab") {
7916
- a = new Color_default(a);
7917
- b = new Color_default(b);
7918
- const l1 = a.get(mode);
7919
- const l2 = b.get(mode);
7920
- let sum_sq = 0;
7921
- for (let i in l1) {
7922
- const d = (l1[i] || 0) - (l2[i] || 0);
7923
- sum_sq += d * d;
7924
- }
7925
- return Math.sqrt(sum_sq);
7926
- }
7927
-
7928
- // node_modules/chroma-js/src/utils/valid.js
7929
- var valid_default = (...args) => {
7930
- try {
7931
- new Color_default(...args);
7932
- return true;
7933
- } catch (e) {
7934
- return false;
7935
- }
7936
- };
7937
-
7938
- // node_modules/chroma-js/src/utils/scales.js
7939
- var scales_default = {
7940
- cool() {
7941
- return scale_default([chroma_default.hsl(180, 1, 0.9), chroma_default.hsl(250, 0.7, 0.4)]);
7942
- },
7943
- hot() {
7944
- return scale_default(["#000", "#f00", "#ff0", "#fff"]).mode(
7945
- "rgb"
7946
- );
7947
- }
7948
- };
7949
-
7950
- // node_modules/chroma-js/src/colors/colorbrewer.js
7951
- var colorbrewer = {
7952
- // sequential
7953
- OrRd: ["#fff7ec", "#fee8c8", "#fdd49e", "#fdbb84", "#fc8d59", "#ef6548", "#d7301f", "#b30000", "#7f0000"],
7954
- PuBu: ["#fff7fb", "#ece7f2", "#d0d1e6", "#a6bddb", "#74a9cf", "#3690c0", "#0570b0", "#045a8d", "#023858"],
7955
- BuPu: ["#f7fcfd", "#e0ecf4", "#bfd3e6", "#9ebcda", "#8c96c6", "#8c6bb1", "#88419d", "#810f7c", "#4d004b"],
7956
- Oranges: ["#fff5eb", "#fee6ce", "#fdd0a2", "#fdae6b", "#fd8d3c", "#f16913", "#d94801", "#a63603", "#7f2704"],
7957
- BuGn: ["#f7fcfd", "#e5f5f9", "#ccece6", "#99d8c9", "#66c2a4", "#41ae76", "#238b45", "#006d2c", "#00441b"],
7958
- YlOrBr: ["#ffffe5", "#fff7bc", "#fee391", "#fec44f", "#fe9929", "#ec7014", "#cc4c02", "#993404", "#662506"],
7959
- YlGn: ["#ffffe5", "#f7fcb9", "#d9f0a3", "#addd8e", "#78c679", "#41ab5d", "#238443", "#006837", "#004529"],
7960
- Reds: ["#fff5f0", "#fee0d2", "#fcbba1", "#fc9272", "#fb6a4a", "#ef3b2c", "#cb181d", "#a50f15", "#67000d"],
7961
- RdPu: ["#fff7f3", "#fde0dd", "#fcc5c0", "#fa9fb5", "#f768a1", "#dd3497", "#ae017e", "#7a0177", "#49006a"],
7962
- Greens: ["#f7fcf5", "#e5f5e0", "#c7e9c0", "#a1d99b", "#74c476", "#41ab5d", "#238b45", "#006d2c", "#00441b"],
7963
- YlGnBu: ["#ffffd9", "#edf8b1", "#c7e9b4", "#7fcdbb", "#41b6c4", "#1d91c0", "#225ea8", "#253494", "#081d58"],
7964
- Purples: ["#fcfbfd", "#efedf5", "#dadaeb", "#bcbddc", "#9e9ac8", "#807dba", "#6a51a3", "#54278f", "#3f007d"],
7965
- GnBu: ["#f7fcf0", "#e0f3db", "#ccebc5", "#a8ddb5", "#7bccc4", "#4eb3d3", "#2b8cbe", "#0868ac", "#084081"],
7966
- Greys: ["#ffffff", "#f0f0f0", "#d9d9d9", "#bdbdbd", "#969696", "#737373", "#525252", "#252525", "#000000"],
7967
- YlOrRd: ["#ffffcc", "#ffeda0", "#fed976", "#feb24c", "#fd8d3c", "#fc4e2a", "#e31a1c", "#bd0026", "#800026"],
7968
- PuRd: ["#f7f4f9", "#e7e1ef", "#d4b9da", "#c994c7", "#df65b0", "#e7298a", "#ce1256", "#980043", "#67001f"],
7969
- Blues: ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", "#4292c6", "#2171b5", "#08519c", "#08306b"],
7970
- PuBuGn: ["#fff7fb", "#ece2f0", "#d0d1e6", "#a6bddb", "#67a9cf", "#3690c0", "#02818a", "#016c59", "#014636"],
7971
- Viridis: ["#440154", "#482777", "#3f4a8a", "#31678e", "#26838f", "#1f9d8a", "#6cce5a", "#b6de2b", "#fee825"],
7972
- // diverging
7973
- Spectral: ["#9e0142", "#d53e4f", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#e6f598", "#abdda4", "#66c2a5", "#3288bd", "#5e4fa2"],
7974
- RdYlGn: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee08b", "#ffffbf", "#d9ef8b", "#a6d96a", "#66bd63", "#1a9850", "#006837"],
7975
- RdBu: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#f7f7f7", "#d1e5f0", "#92c5de", "#4393c3", "#2166ac", "#053061"],
7976
- PiYG: ["#8e0152", "#c51b7d", "#de77ae", "#f1b6da", "#fde0ef", "#f7f7f7", "#e6f5d0", "#b8e186", "#7fbc41", "#4d9221", "#276419"],
7977
- PRGn: ["#40004b", "#762a83", "#9970ab", "#c2a5cf", "#e7d4e8", "#f7f7f7", "#d9f0d3", "#a6dba0", "#5aae61", "#1b7837", "#00441b"],
7978
- RdYlBu: ["#a50026", "#d73027", "#f46d43", "#fdae61", "#fee090", "#ffffbf", "#e0f3f8", "#abd9e9", "#74add1", "#4575b4", "#313695"],
7979
- BrBG: ["#543005", "#8c510a", "#bf812d", "#dfc27d", "#f6e8c3", "#f5f5f5", "#c7eae5", "#80cdc1", "#35978f", "#01665e", "#003c30"],
7980
- RdGy: ["#67001f", "#b2182b", "#d6604d", "#f4a582", "#fddbc7", "#ffffff", "#e0e0e0", "#bababa", "#878787", "#4d4d4d", "#1a1a1a"],
7981
- PuOr: ["#7f3b08", "#b35806", "#e08214", "#fdb863", "#fee0b6", "#f7f7f7", "#d8daeb", "#b2abd2", "#8073ac", "#542788", "#2d004b"],
7982
- // qualitative
7983
- Set2: ["#66c2a5", "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", "#e5c494", "#b3b3b3"],
7984
- Accent: ["#7fc97f", "#beaed4", "#fdc086", "#ffff99", "#386cb0", "#f0027f", "#bf5b17", "#666666"],
7985
- Set1: ["#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", "#ffff33", "#a65628", "#f781bf", "#999999"],
7986
- Set3: ["#8dd3c7", "#ffffb3", "#bebada", "#fb8072", "#80b1d3", "#fdb462", "#b3de69", "#fccde5", "#d9d9d9", "#bc80bd", "#ccebc5", "#ffed6f"],
7987
- Dark2: ["#1b9e77", "#d95f02", "#7570b3", "#e7298a", "#66a61e", "#e6ab02", "#a6761d", "#666666"],
7988
- Paired: ["#a6cee3", "#1f78b4", "#b2df8a", "#33a02c", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6", "#6a3d9a", "#ffff99", "#b15928"],
7989
- Pastel2: ["#b3e2cd", "#fdcdac", "#cbd5e8", "#f4cae4", "#e6f5c9", "#fff2ae", "#f1e2cc", "#cccccc"],
7990
- Pastel1: ["#fbb4ae", "#b3cde3", "#ccebc5", "#decbe4", "#fed9a6", "#ffffcc", "#e5d8bd", "#fddaec", "#f2f2f2"]
7991
- };
7992
- for (let key of Object.keys(colorbrewer)) {
7993
- colorbrewer[key.toLowerCase()] = colorbrewer[key];
7994
- }
7995
- var colorbrewer_default = colorbrewer;
7996
-
7997
- // node_modules/chroma-js/index.js
7998
- Object.assign(chroma_default, {
7999
- average: average_default,
8000
- bezier: bezier_default,
8001
- blend: blend_default,
8002
- cubehelix: cubehelix_default,
8003
- mix: mix_default,
8004
- interpolate: mix_default,
8005
- random: random_default,
8006
- scale: scale_default,
8007
- analyze,
8008
- contrast: contrast_default,
8009
- deltaE: delta_e_default,
8010
- distance: distance_default,
8011
- limits,
8012
- valid: valid_default,
8013
- scales: scales_default,
8014
- input: input_default,
8015
- colors: w3cx11_default,
8016
- brewer: colorbrewer_default
8017
- });
8018
- var chroma_js_default = chroma_default;
8019
-
8020
5529
  // src/palette/use-palette.ts
8021
5530
  var import_lodash = __toESM(require_lodash());
8022
-
8023
- // src/palette/helper.ts
8024
5531
  var MAX_VALUE = 500;
8025
5532
  var delta = { xs: 0.01, sm: 0.02, md: 0.03, lg: 0.08, xl: 0.14 };
8026
5533
  var normalizeHue = (input, range) => (input % range + range) % range;
8027
5534
  var markDarkColor = (color) => {
8028
- const hsv2 = chroma_js_default(color).hsv();
8029
- return chroma_js_default(hsv2[0], hsv2[1] * 0.92, Math.min(hsv2[2] + 0.01, 1), "hsv").hex();
5535
+ const hsv = chroma2(color).hsv();
5536
+ return chroma2(hsv[0], hsv[1] * 0.92, Math.min(hsv[2] + 0.01, 1), "hsv").hex();
8030
5537
  };
8031
5538
  var calculateHue = (color, end, defaultValue) => {
8032
5539
  defaultValue === void 0 && (defaultValue = MAX_VALUE);
@@ -8047,49 +5554,49 @@ var calculateHue = (color, end, defaultValue) => {
8047
5554
  }
8048
5555
  return normalizeHue(color[0] + offset, 360);
8049
5556
  };
8050
- var calculateSaturation = (hsv2, range, max5) => {
8051
- max5 === void 0 && (max5 = MAX_VALUE);
8052
- const interval = (range - max5) / 100;
5557
+ var calculateSaturation = (hsv, range, max) => {
5558
+ max === void 0 && (max = MAX_VALUE);
5559
+ const interval = (range - max) / 100;
8053
5560
  let offset = 0;
8054
- if (range < max5) {
8055
- offset = interval * hsv2[1] / 5;
5561
+ if (range < max) {
5562
+ offset = interval * hsv[1] / 5;
8056
5563
  if (range < 100) {
8057
5564
  offset -= delta.sm;
8058
5565
  }
8059
- } else if (range > max5) {
8060
- if (hsv2[0] < 30 || hsv2[0] > 200) {
5566
+ } else if (range > max) {
5567
+ if (hsv[0] < 30 || hsv[0] > 200) {
8061
5568
  offset = interval * delta.md;
8062
5569
  } else {
8063
5570
  offset = interval * delta.xs;
8064
5571
  }
8065
- if (hsv2[1] === 0) {
5572
+ if (hsv[1] === 0) {
8066
5573
  offset = 0;
8067
5574
  }
8068
5575
  }
8069
- const newSaturation = hsv2[1] + offset;
5576
+ const newSaturation = hsv[1] + offset;
8070
5577
  return newSaturation > 1 ? 1 : newSaturation < 0 ? 0 : newSaturation;
8071
5578
  };
8072
- var calculateLightness = (hsv2, range, max5) => {
8073
- max5 === void 0 && (max5 = MAX_VALUE);
8074
- const interval = (range - max5) / 100;
5579
+ var calculateLightness = (hsv, range, max) => {
5580
+ max === void 0 && (max = MAX_VALUE);
5581
+ const interval = (range - max) / 100;
8075
5582
  let offset = 0;
8076
- if (range < max5) {
8077
- if (hsv2[1] < 0.1) {
8078
- offset = interval * (1 - hsv2[2]) / 5 * 1.06;
5583
+ if (range < max) {
5584
+ if (hsv[1] < 0.1) {
5585
+ offset = interval * (1 - hsv[2]) / 5 * 1.06;
8079
5586
  } else {
8080
- offset = interval * (1 - hsv2[2]) / 5;
5587
+ offset = interval * (1 - hsv[2]) / 5;
8081
5588
  }
8082
- } else if (range > max5) {
8083
- if ((hsv2[0] < 30 || hsv2[0] > 200) && hsv2[0] > 0) {
5589
+ } else if (range > max) {
5590
+ if ((hsv[0] < 30 || hsv[0] > 200) && hsv[0] > 0) {
8084
5591
  offset = interval * delta.lg;
8085
- if (hsv2[2] > 0.8) {
5592
+ if (hsv[2] > 0.8) {
8086
5593
  offset = interval * delta.xl;
8087
5594
  }
8088
5595
  } else {
8089
- offset = interval * hsv2[2] / 6;
5596
+ offset = interval * hsv[2] / 6;
8090
5597
  }
8091
5598
  }
8092
- const newLightness = hsv2[2] - offset;
5599
+ const newLightness = hsv[2] - offset;
8093
5600
  return newLightness > 1 ? 1 : newLightness < 0 ? 0 : newLightness;
8094
5601
  };
8095
5602
 
@@ -8098,18 +5605,18 @@ var COLOR_STOPS = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
8098
5605
  var createSolidColorScale = (color, mode = "light") => {
8099
5606
  const isDark = mode === "dark";
8100
5607
  let baseColor = isDark ? markDarkColor(color) : color;
8101
- const luminance = chroma_js_default(baseColor).luminance();
5608
+ const luminance = chroma2(baseColor).luminance();
8102
5609
  if (luminance < 0.1) {
8103
- baseColor = chroma_js_default(baseColor).set("hsl.l", 0.4).hex();
5610
+ baseColor = chroma2(baseColor).set("hsl.l", 0.4).hex();
8104
5611
  } else if (luminance > 0.9) {
8105
- baseColor = chroma_js_default(baseColor).set("hsl.l", 0.6).hex();
5612
+ baseColor = chroma2(baseColor).set("hsl.l", 0.6).hex();
8106
5613
  }
8107
- const hsv2 = chroma_js_default(baseColor).hsv();
5614
+ const hsv = chroma2(baseColor).hsv();
8108
5615
  const colors = COLOR_STOPS.map((stop) => {
8109
- const h = calculateHue(hsv2, stop, 500);
8110
- const s = calculateSaturation(hsv2, stop, 500);
8111
- const v = calculateLightness(hsv2, stop, 500);
8112
- return chroma_js_default(h, s, v, "hsv");
5616
+ const h = calculateHue(hsv, stop, 500);
5617
+ const s = calculateSaturation(hsv, stop, 500);
5618
+ const v = calculateLightness(hsv, stop, 500);
5619
+ return chroma2(h, s, v, "hsv");
8113
5620
  });
8114
5621
  return isDark ? colors.reverse() : colors;
8115
5622
  };