@vitessce/scatterplot-gating 3.5.6 → 3.5.8

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.
@@ -1054,7 +1054,7 @@ var reTrimStart = /^\s+/;
1054
1054
  function baseTrim(string) {
1055
1055
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
1056
1056
  }
1057
- function isObject$4(value) {
1057
+ function isObject$5(value) {
1058
1058
  var type2 = typeof value;
1059
1059
  return value != null && (type2 == "object" || type2 == "function");
1060
1060
  }
@@ -1070,9 +1070,9 @@ function toNumber$1(value) {
1070
1070
  if (isSymbol$1(value)) {
1071
1071
  return NAN$1;
1072
1072
  }
1073
- if (isObject$4(value)) {
1073
+ if (isObject$5(value)) {
1074
1074
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
1075
- value = isObject$4(other) ? other + "" : other;
1075
+ value = isObject$5(other) ? other + "" : other;
1076
1076
  }
1077
1077
  if (typeof value != "string") {
1078
1078
  return value === 0 ? value : +value;
@@ -1094,8 +1094,8 @@ function toFinite$1(value) {
1094
1094
  return value === value ? value : 0;
1095
1095
  }
1096
1096
  var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
1097
- function isFunction$3(value) {
1098
- if (!isObject$4(value)) {
1097
+ function isFunction$4(value) {
1098
+ if (!isObject$5(value)) {
1099
1099
  return false;
1100
1100
  }
1101
1101
  var tag = baseGetTag(value);
@@ -1134,10 +1134,10 @@ var reIsNative = RegExp(
1134
1134
  "^" + funcToString.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1135
1135
  );
1136
1136
  function baseIsNative(value) {
1137
- if (!isObject$4(value) || isMasked(value)) {
1137
+ if (!isObject$5(value) || isMasked(value)) {
1138
1138
  return false;
1139
1139
  }
1140
- var pattern = isFunction$3(value) ? reIsNative : reIsHostCtor;
1140
+ var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor;
1141
1141
  return pattern.test(toSource(value));
1142
1142
  }
1143
1143
  function getValue$1(object2, key) {
@@ -1154,7 +1154,7 @@ var baseCreate = function() {
1154
1154
  function object2() {
1155
1155
  }
1156
1156
  return function(proto) {
1157
- if (!isObject$4(proto)) {
1157
+ if (!isObject$5(proto)) {
1158
1158
  return {};
1159
1159
  }
1160
1160
  if (objectCreate) {
@@ -1246,10 +1246,10 @@ function isLength(value) {
1246
1246
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$2;
1247
1247
  }
1248
1248
  function isArrayLike(value) {
1249
- return value != null && isLength(value.length) && !isFunction$3(value);
1249
+ return value != null && isLength(value.length) && !isFunction$4(value);
1250
1250
  }
1251
1251
  function isIterateeCall(value, index2, object2) {
1252
- if (!isObject$4(object2)) {
1252
+ if (!isObject$5(object2)) {
1253
1253
  return false;
1254
1254
  }
1255
1255
  var type2 = typeof index2;
@@ -1375,7 +1375,7 @@ function nativeKeysIn(object2) {
1375
1375
  var objectProto$7 = Object.prototype;
1376
1376
  var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
1377
1377
  function baseKeysIn(object2) {
1378
- if (!isObject$4(object2)) {
1378
+ if (!isObject$5(object2)) {
1379
1379
  return nativeKeysIn(object2);
1380
1380
  }
1381
1381
  var isProto = isPrototype(object2), result = [];
@@ -1821,7 +1821,7 @@ function baseClone(value, bitmask, customizer, key, object2, stack2) {
1821
1821
  if (result !== void 0) {
1822
1822
  return result;
1823
1823
  }
1824
- if (!isObject$4(value)) {
1824
+ if (!isObject$5(value)) {
1825
1825
  return value;
1826
1826
  }
1827
1827
  var isArr = isArray$4(value);
@@ -2115,7 +2115,7 @@ function debounce$3(func, wait, options) {
2115
2115
  throw new TypeError(FUNC_ERROR_TEXT$1);
2116
2116
  }
2117
2117
  wait = toNumber$1(wait) || 0;
2118
- if (isObject$4(options)) {
2118
+ if (isObject$5(options)) {
2119
2119
  leading = !!options.leading;
2120
2120
  maxing = "maxWait" in options;
2121
2121
  maxWait = maxing ? nativeMax$2(toNumber$1(options.maxWait) || 0, wait) : maxWait;
@@ -2625,6 +2625,258 @@ function getNextScope(prevScopes) {
2625
2625
  } while (prevScopes.includes(nextScope));
2626
2626
  return nextScope;
2627
2627
  }
2628
+ var loglevel = { exports: {} };
2629
+ (function(module2) {
2630
+ (function(root2, definition) {
2631
+ if (module2.exports) {
2632
+ module2.exports = definition();
2633
+ } else {
2634
+ root2.log = definition();
2635
+ }
2636
+ })(commonjsGlobal, function() {
2637
+ var noop2 = function() {
2638
+ };
2639
+ var undefinedType2 = "undefined";
2640
+ var isIE2 = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
2641
+ var logMethods = [
2642
+ "trace",
2643
+ "debug",
2644
+ "info",
2645
+ "warn",
2646
+ "error"
2647
+ ];
2648
+ var _loggersByName = {};
2649
+ var defaultLogger = null;
2650
+ function bindMethod(obj, methodName) {
2651
+ var method = obj[methodName];
2652
+ if (typeof method.bind === "function") {
2653
+ return method.bind(obj);
2654
+ } else {
2655
+ try {
2656
+ return Function.prototype.bind.call(method, obj);
2657
+ } catch (e2) {
2658
+ return function() {
2659
+ return Function.prototype.apply.apply(method, [obj, arguments]);
2660
+ };
2661
+ }
2662
+ }
2663
+ }
2664
+ function traceForIE() {
2665
+ if (console.log) {
2666
+ if (console.log.apply) {
2667
+ console.log.apply(console, arguments);
2668
+ } else {
2669
+ Function.prototype.apply.apply(console.log, [console, arguments]);
2670
+ }
2671
+ }
2672
+ if (console.trace)
2673
+ console.trace();
2674
+ }
2675
+ function realMethod(methodName) {
2676
+ if (methodName === "debug") {
2677
+ methodName = "log";
2678
+ }
2679
+ if (typeof console === undefinedType2) {
2680
+ return false;
2681
+ } else if (methodName === "trace" && isIE2) {
2682
+ return traceForIE;
2683
+ } else if (console[methodName] !== void 0) {
2684
+ return bindMethod(console, methodName);
2685
+ } else if (console.log !== void 0) {
2686
+ return bindMethod(console, "log");
2687
+ } else {
2688
+ return noop2;
2689
+ }
2690
+ }
2691
+ function replaceLoggingMethods() {
2692
+ var level = this.getLevel();
2693
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
2694
+ var methodName = logMethods[i2];
2695
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
2696
+ }
2697
+ this.log = this.debug;
2698
+ if (typeof console === undefinedType2 && level < this.levels.SILENT) {
2699
+ return "No console available for logging";
2700
+ }
2701
+ }
2702
+ function enableLoggingWhenConsoleArrives(methodName) {
2703
+ return function() {
2704
+ if (typeof console !== undefinedType2) {
2705
+ replaceLoggingMethods.call(this);
2706
+ this[methodName].apply(this, arguments);
2707
+ }
2708
+ };
2709
+ }
2710
+ function defaultMethodFactory(methodName, _level, _loggerName) {
2711
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
2712
+ }
2713
+ function Logger(name2, factory) {
2714
+ var self2 = this;
2715
+ var inheritedLevel;
2716
+ var defaultLevel;
2717
+ var userLevel;
2718
+ var storageKey = "loglevel";
2719
+ if (typeof name2 === "string") {
2720
+ storageKey += ":" + name2;
2721
+ } else if (typeof name2 === "symbol") {
2722
+ storageKey = void 0;
2723
+ }
2724
+ function persistLevelIfPossible(levelNum) {
2725
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
2726
+ if (typeof window === undefinedType2 || !storageKey)
2727
+ return;
2728
+ try {
2729
+ window.localStorage[storageKey] = levelName;
2730
+ return;
2731
+ } catch (ignore) {
2732
+ }
2733
+ try {
2734
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
2735
+ } catch (ignore) {
2736
+ }
2737
+ }
2738
+ function getPersistedLevel() {
2739
+ var storedLevel;
2740
+ if (typeof window === undefinedType2 || !storageKey)
2741
+ return;
2742
+ try {
2743
+ storedLevel = window.localStorage[storageKey];
2744
+ } catch (ignore) {
2745
+ }
2746
+ if (typeof storedLevel === undefinedType2) {
2747
+ try {
2748
+ var cookie = window.document.cookie;
2749
+ var cookieName = encodeURIComponent(storageKey);
2750
+ var location = cookie.indexOf(cookieName + "=");
2751
+ if (location !== -1) {
2752
+ storedLevel = /^([^;]+)/.exec(
2753
+ cookie.slice(location + cookieName.length + 1)
2754
+ )[1];
2755
+ }
2756
+ } catch (ignore) {
2757
+ }
2758
+ }
2759
+ if (self2.levels[storedLevel] === void 0) {
2760
+ storedLevel = void 0;
2761
+ }
2762
+ return storedLevel;
2763
+ }
2764
+ function clearPersistedLevel() {
2765
+ if (typeof window === undefinedType2 || !storageKey)
2766
+ return;
2767
+ try {
2768
+ window.localStorage.removeItem(storageKey);
2769
+ } catch (ignore) {
2770
+ }
2771
+ try {
2772
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
2773
+ } catch (ignore) {
2774
+ }
2775
+ }
2776
+ function normalizeLevel(input) {
2777
+ var level = input;
2778
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
2779
+ level = self2.levels[level.toUpperCase()];
2780
+ }
2781
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
2782
+ return level;
2783
+ } else {
2784
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
2785
+ }
2786
+ }
2787
+ self2.name = name2;
2788
+ self2.levels = {
2789
+ "TRACE": 0,
2790
+ "DEBUG": 1,
2791
+ "INFO": 2,
2792
+ "WARN": 3,
2793
+ "ERROR": 4,
2794
+ "SILENT": 5
2795
+ };
2796
+ self2.methodFactory = factory || defaultMethodFactory;
2797
+ self2.getLevel = function() {
2798
+ if (userLevel != null) {
2799
+ return userLevel;
2800
+ } else if (defaultLevel != null) {
2801
+ return defaultLevel;
2802
+ } else {
2803
+ return inheritedLevel;
2804
+ }
2805
+ };
2806
+ self2.setLevel = function(level, persist) {
2807
+ userLevel = normalizeLevel(level);
2808
+ if (persist !== false) {
2809
+ persistLevelIfPossible(userLevel);
2810
+ }
2811
+ return replaceLoggingMethods.call(self2);
2812
+ };
2813
+ self2.setDefaultLevel = function(level) {
2814
+ defaultLevel = normalizeLevel(level);
2815
+ if (!getPersistedLevel()) {
2816
+ self2.setLevel(level, false);
2817
+ }
2818
+ };
2819
+ self2.resetLevel = function() {
2820
+ userLevel = null;
2821
+ clearPersistedLevel();
2822
+ replaceLoggingMethods.call(self2);
2823
+ };
2824
+ self2.enableAll = function(persist) {
2825
+ self2.setLevel(self2.levels.TRACE, persist);
2826
+ };
2827
+ self2.disableAll = function(persist) {
2828
+ self2.setLevel(self2.levels.SILENT, persist);
2829
+ };
2830
+ self2.rebuild = function() {
2831
+ if (defaultLogger !== self2) {
2832
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
2833
+ }
2834
+ replaceLoggingMethods.call(self2);
2835
+ if (defaultLogger === self2) {
2836
+ for (var childName in _loggersByName) {
2837
+ _loggersByName[childName].rebuild();
2838
+ }
2839
+ }
2840
+ };
2841
+ inheritedLevel = normalizeLevel(
2842
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
2843
+ );
2844
+ var initialLevel = getPersistedLevel();
2845
+ if (initialLevel != null) {
2846
+ userLevel = normalizeLevel(initialLevel);
2847
+ }
2848
+ replaceLoggingMethods.call(self2);
2849
+ }
2850
+ defaultLogger = new Logger();
2851
+ defaultLogger.getLogger = function getLogger(name2) {
2852
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
2853
+ throw new TypeError("You must supply a name when creating a logger.");
2854
+ }
2855
+ var logger = _loggersByName[name2];
2856
+ if (!logger) {
2857
+ logger = _loggersByName[name2] = new Logger(
2858
+ name2,
2859
+ defaultLogger.methodFactory
2860
+ );
2861
+ }
2862
+ return logger;
2863
+ };
2864
+ var _log = typeof window !== undefinedType2 ? window.log : void 0;
2865
+ defaultLogger.noConflict = function() {
2866
+ if (typeof window !== undefinedType2 && window.log === defaultLogger) {
2867
+ window.log = _log;
2868
+ }
2869
+ return defaultLogger;
2870
+ };
2871
+ defaultLogger.getLoggers = function getLoggers2() {
2872
+ return _loggersByName;
2873
+ };
2874
+ defaultLogger["default"] = defaultLogger;
2875
+ return defaultLogger;
2876
+ });
2877
+ })(loglevel);
2878
+ var loglevelExports = loglevel.exports;
2879
+ const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
2628
2880
  const DEFAULT_DARK_COLOR = [50, 50, 50];
2629
2881
  const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
2630
2882
  const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
@@ -2797,7 +3049,7 @@ function point(coordinates2, properties, options) {
2797
3049
  if (coordinates2.length < 2) {
2798
3050
  throw new Error("coordinates must be at least 2 numbers long");
2799
3051
  }
2800
- if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
3052
+ if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
2801
3053
  throw new Error("coordinates must contain numbers");
2802
3054
  }
2803
3055
  var geom = {
@@ -2998,10 +3250,10 @@ function convertArea(area2, originalUnit, finalUnit) {
2998
3250
  }
2999
3251
  return area2 / startFactor * finalFactor;
3000
3252
  }
3001
- function isNumber(num) {
3253
+ function isNumber$1(num) {
3002
3254
  return !isNaN(num) && num !== null && !Array.isArray(num);
3003
3255
  }
3004
- function isObject$3(input) {
3256
+ function isObject$4(input) {
3005
3257
  return !!input && input.constructor === Object;
3006
3258
  }
3007
3259
  function validateBBox(bbox2) {
@@ -3015,7 +3267,7 @@ function validateBBox(bbox2) {
3015
3267
  throw new Error("bbox must be an Array of 4 or 6 numbers");
3016
3268
  }
3017
3269
  bbox2.forEach(function(num) {
3018
- if (!isNumber(num)) {
3270
+ if (!isNumber$1(num)) {
3019
3271
  throw new Error("bbox must only contain numbers");
3020
3272
  }
3021
3273
  });
@@ -3041,8 +3293,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
3041
3293
  featureCollection: featureCollection$1,
3042
3294
  geometry: geometry$1,
3043
3295
  geometryCollection,
3044
- isNumber,
3045
- isObject: isObject$3,
3296
+ isNumber: isNumber$1,
3297
+ isObject: isObject$4,
3046
3298
  lengthToDegrees,
3047
3299
  lengthToRadians,
3048
3300
  lineString,
@@ -3484,7 +3736,7 @@ function lineReduce$1(geojson, callback, initialValue) {
3484
3736
  }
3485
3737
  function findSegment$1(geojson, options) {
3486
3738
  options = options || {};
3487
- if (!isObject$3(options))
3739
+ if (!isObject$4(options))
3488
3740
  throw new Error("options is invalid");
3489
3741
  var featureIndex = options.featureIndex || 0;
3490
3742
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -3576,7 +3828,7 @@ function findSegment$1(geojson, options) {
3576
3828
  }
3577
3829
  function findPoint$1(geojson, options) {
3578
3830
  options = options || {};
3579
- if (!isObject$3(options))
3831
+ if (!isObject$4(options))
3580
3832
  throw new Error("options is invalid");
3581
3833
  var featureIndex = options.featureIndex || 0;
3582
3834
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -8790,7 +9042,7 @@ function upgradeFrom1_0_14(config2) {
8790
9042
  Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
8791
9043
  var _a2;
8792
9044
  if ((_a2 = viewDef.props) == null ? void 0 : _a2[oldProp]) {
8793
- console.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
9045
+ log$5.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
8794
9046
  }
8795
9047
  });
8796
9048
  });
@@ -8813,7 +9065,7 @@ function upgradeFrom1_0_15(config2) {
8813
9065
  Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
8814
9066
  if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
8815
9067
  if (coordinationType === "dataset") {
8816
- console.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
9068
+ log$5.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
8817
9069
  }
8818
9070
  coordinationScopesBy.dataset[coordinationType] = coordinationScope;
8819
9071
  } else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
@@ -8923,9 +9175,9 @@ var debug_1 = debug$2;
8923
9175
  const re2 = exports2.re = [];
8924
9176
  const src = exports2.src = [];
8925
9177
  const t2 = exports2.t = {};
8926
- let R2 = 0;
9178
+ let R = 0;
8927
9179
  const createToken = (name2, value, isGlobal) => {
8928
- const index2 = R2++;
9180
+ const index2 = R++;
8929
9181
  debug2(name2, index2, value);
8930
9182
  t2[name2] = index2;
8931
9183
  src[index2] = value;
@@ -11024,9 +11276,15 @@ const ViewType$1 = {
11024
11276
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
11025
11277
  DOT_PLOT: "dotPlot",
11026
11278
  FEATURE_BAR_PLOT: "featureBarPlot",
11279
+ VOLCANO_PLOT: "volcanoPlot",
11280
+ OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
11281
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
11027
11282
  BIOMARKER_SELECT: "biomarkerSelect",
11283
+ COMPARATIVE_HEADING: "comparativeHeading",
11028
11284
  LINK_CONTROLLER: "linkController",
11029
- DUAL_SCATTERPLOT: "dualScatterplot"
11285
+ NEUROGLANCER: "neuroglancer",
11286
+ DUAL_SCATTERPLOT: "dualScatterplot",
11287
+ TREEMAP: "treemap"
11030
11288
  };
11031
11289
  const DataType$2 = {
11032
11290
  OBS_LABELS: "obsLabels",
@@ -11042,7 +11300,11 @@ const DataType$2 = {
11042
11300
  OBS_POINTS: "obsPoints",
11043
11301
  OBS_LOCATIONS: "obsLocations",
11044
11302
  SAMPLE_SETS: "sampleSets",
11045
- SAMPLE_EDGES: "sampleEdges"
11303
+ SAMPLE_EDGES: "sampleEdges",
11304
+ COMPARISON_METADATA: "comparisonMetadata",
11305
+ FEATURE_STATS: "featureStats",
11306
+ FEATURE_SET_STATS: "featureSetStats",
11307
+ OBS_SET_STATS: "obsSetStats"
11046
11308
  };
11047
11309
  const FileType$1 = {
11048
11310
  // Joint file types
@@ -11080,6 +11342,11 @@ const FileType$1 = {
11080
11342
  OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
11081
11343
  FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
11082
11344
  SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
11345
+ SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
11346
+ COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
11347
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
11348
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
11349
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
11083
11350
  // AnnData - zipped
11084
11351
  OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
11085
11352
  OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
@@ -11092,6 +11359,11 @@ const FileType$1 = {
11092
11359
  OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
11093
11360
  FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
11094
11361
  SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
11362
+ SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
11363
+ COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
11364
+ COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
11365
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
11366
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
11095
11367
  // AnnData - h5ad via reference spec
11096
11368
  OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
11097
11369
  OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
@@ -11104,6 +11376,11 @@ const FileType$1 = {
11104
11376
  OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
11105
11377
  FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
11106
11378
  SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
11379
+ SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
11380
+ COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
11381
+ COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
11382
+ COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
11383
+ COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
11107
11384
  // SpatialData
11108
11385
  IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
11109
11386
  LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
@@ -11295,12 +11572,20 @@ const CoordinationType$1 = {
11295
11572
  SAMPLE_SET_FILTER: "sampleSetFilter",
11296
11573
  SAMPLE_FILTER_MODE: "sampleFilterMode",
11297
11574
  SAMPLE_SET_COLOR: "sampleSetColor",
11575
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
11298
11576
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
11299
11577
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
11300
11578
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
11301
11579
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
11302
11580
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
11303
- CONTOUR_COLOR: "contourColor"
11581
+ CONTOUR_COLOR: "contourColor",
11582
+ // For volcano plot:
11583
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
11584
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
11585
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
11586
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
11587
+ // Treemap
11588
+ HIERARCHY_LEVELS: "hierarchyLevels"
11304
11589
  };
11305
11590
  const ViewHelpMapping = {
11306
11591
  SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
@@ -11317,9 +11602,17 @@ const ViewHelpMapping = {
11317
11602
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
11318
11603
  FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
11319
11604
  DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
11320
- FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
11605
+ FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
11606
+ NEUROGLANCER: "The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.",
11607
+ TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.",
11608
+ VOLCANO_PLOT: "The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).",
11609
+ OBS_SET_COMPOSITION_BAR_PLOT: "The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).",
11610
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets."
11321
11611
  };
11322
11612
  const COMPONENT_COORDINATION_TYPES = {
11613
+ [ViewType$1.NEUROGLANCER]: [
11614
+ CoordinationType$1.DATASET
11615
+ ],
11323
11616
  [ViewType$1.SCATTERPLOT]: [
11324
11617
  CoordinationType$1.DATASET,
11325
11618
  CoordinationType$1.OBS_TYPE,
@@ -11789,14 +12082,106 @@ const COMPONENT_COORDINATION_TYPES = {
11789
12082
  CoordinationType$1.OBS_COLOR_ENCODING,
11790
12083
  CoordinationType$1.ADDITIONAL_OBS_SETS
11791
12084
  ],
12085
+ [ViewType$1.VOLCANO_PLOT]: [
12086
+ CoordinationType$1.DATASET,
12087
+ CoordinationType$1.OBS_TYPE,
12088
+ CoordinationType$1.FEATURE_TYPE,
12089
+ CoordinationType$1.SAMPLE_TYPE,
12090
+ // For selection of case-control sets of samples:
12091
+ CoordinationType$1.SAMPLE_SET_SELECTION,
12092
+ // For selection of one-vs-others sets of observations:
12093
+ CoordinationType$1.OBS_SET_SELECTION,
12094
+ // TODO: CoordinationType.FEATURE_SET_SELECTION,
12095
+ // TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
12096
+ // TODO: CoordinationType.FEATURE_SET_COLOR,
12097
+ CoordinationType$1.FEATURE_HIGHLIGHT,
12098
+ CoordinationType$1.FEATURE_SELECTION,
12099
+ CoordinationType$1.FEATURE_VALUE_COLORMAP,
12100
+ CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
12101
+ // TODO: CoordinationType.FEATURE_COLOR_ENCODING,
12102
+ // TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
12103
+ CoordinationType$1.TOOLTIPS_VISIBLE,
12104
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
12105
+ CoordinationType$1.OBS_SET_COLOR,
12106
+ CoordinationType$1.SAMPLE_SET_COLOR,
12107
+ CoordinationType$1.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
12108
+ CoordinationType$1.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
12109
+ CoordinationType$1.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
12110
+ CoordinationType$1.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD
12111
+ ],
12112
+ [ViewType$1.OBS_SET_COMPOSITION_BAR_PLOT]: [
12113
+ CoordinationType$1.DATASET,
12114
+ CoordinationType$1.OBS_TYPE,
12115
+ CoordinationType$1.SAMPLE_TYPE,
12116
+ // For selection of case-control sets of samples:
12117
+ CoordinationType$1.SAMPLE_SET_SELECTION,
12118
+ // For selection of one-vs-others sets of observations:
12119
+ CoordinationType$1.OBS_SET_SELECTION,
12120
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
12121
+ CoordinationType$1.OBS_SET_COLOR,
12122
+ CoordinationType$1.SAMPLE_SET_COLOR
12123
+ ],
12124
+ [ViewType$1.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
12125
+ CoordinationType$1.DATASET,
12126
+ CoordinationType$1.OBS_TYPE,
12127
+ CoordinationType$1.FEATURE_TYPE,
12128
+ CoordinationType$1.SAMPLE_TYPE,
12129
+ // For selection of case-control sets of samples:
12130
+ CoordinationType$1.SAMPLE_SET_SELECTION,
12131
+ // For selection of one-vs-others sets of observations:
12132
+ CoordinationType$1.OBS_SET_SELECTION,
12133
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
12134
+ CoordinationType$1.OBS_SET_COLOR,
12135
+ CoordinationType$1.SAMPLE_SET_COLOR,
12136
+ CoordinationType$1.FEATURE_SELECTION
12137
+ ],
11792
12138
  [ViewType$1.LINK_CONTROLLER]: [],
11793
12139
  [ViewType$1.BIOMARKER_SELECT]: [
12140
+ CoordinationType$1.DATASET,
12141
+ CoordinationType$1.OBS_TYPE,
12142
+ CoordinationType$1.SAMPLE_TYPE,
11794
12143
  CoordinationType$1.FEATURE_SELECTION,
11795
12144
  CoordinationType$1.SAMPLE_SET_SELECTION,
11796
12145
  CoordinationType$1.SAMPLE_SET_FILTER,
11797
12146
  CoordinationType$1.OBS_SET_SELECTION,
11798
12147
  CoordinationType$1.OBS_SET_FILTER
11799
12148
  // TODO: create coordination types for internal state of the biomarker selection view?
12149
+ ],
12150
+ [ViewType$1.COMPARATIVE_HEADING]: [
12151
+ CoordinationType$1.DATASET,
12152
+ CoordinationType$1.OBS_TYPE,
12153
+ CoordinationType$1.SAMPLE_TYPE,
12154
+ CoordinationType$1.FEATURE_SELECTION,
12155
+ CoordinationType$1.SAMPLE_SET_SELECTION,
12156
+ CoordinationType$1.SAMPLE_SET_FILTER,
12157
+ CoordinationType$1.OBS_SET_SELECTION,
12158
+ CoordinationType$1.OBS_SET_FILTER
12159
+ ],
12160
+ [ViewType$1.TREEMAP]: [
12161
+ CoordinationType$1.DATASET,
12162
+ CoordinationType$1.OBS_TYPE,
12163
+ CoordinationType$1.FEATURE_TYPE,
12164
+ CoordinationType$1.FEATURE_VALUE_TYPE,
12165
+ CoordinationType$1.OBS_FILTER,
12166
+ CoordinationType$1.OBS_HIGHLIGHT,
12167
+ CoordinationType$1.OBS_SET_SELECTION,
12168
+ CoordinationType$1.OBS_SET_FILTER,
12169
+ CoordinationType$1.OBS_SELECTION,
12170
+ CoordinationType$1.OBS_SELECTION_MODE,
12171
+ CoordinationType$1.OBS_SET_HIGHLIGHT,
12172
+ CoordinationType$1.OBS_SET_COLOR,
12173
+ CoordinationType$1.OBS_COLOR_ENCODING,
12174
+ CoordinationType$1.ADDITIONAL_OBS_SETS,
12175
+ CoordinationType$1.SAMPLE_TYPE,
12176
+ CoordinationType$1.SAMPLE_SET_SELECTION,
12177
+ CoordinationType$1.SAMPLE_SET_FILTER,
12178
+ CoordinationType$1.SAMPLE_SET_COLOR,
12179
+ CoordinationType$1.SAMPLE_SELECTION,
12180
+ CoordinationType$1.SAMPLE_SELECTION_MODE,
12181
+ CoordinationType$1.SAMPLE_FILTER,
12182
+ CoordinationType$1.SAMPLE_FILTER_MODE,
12183
+ CoordinationType$1.SAMPLE_HIGHLIGHT,
12184
+ CoordinationType$1.HIERARCHY_LEVELS
11800
12185
  ]
11801
12186
  };
11802
12187
  const ViewType = {
@@ -11965,7 +12350,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
11965
12350
  const oldKeys = Object.keys(oldObj);
11966
12351
  const propKey = String(prop);
11967
12352
  if (oldKeys.includes(propKey)) {
11968
- console.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
12353
+ log$5.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
11969
12354
  ${oldObj[propKey][1]}`);
11970
12355
  return oldObj[propKey];
11971
12356
  }
@@ -12044,6 +12429,42 @@ const annDataConvenienceObsEmbeddingItem = z.object({
12044
12429
  dims: z.array(z.number()).optional(),
12045
12430
  embeddingType: z.string()
12046
12431
  });
12432
+ z.object({
12433
+ path: z.string().describe("Path to the comparison metadata, such as /uns/comparison_metadata")
12434
+ });
12435
+ z.object({
12436
+ // TODO: implement a featureStats.anndata.zarr loader
12437
+ // which does not depend on comparisonMetadata
12438
+ // (instead, would point directly to the root of
12439
+ // the dataframe containing a set of diff exp results)
12440
+ // path: z.string().describe('Path to the dataframe containing the results.'),
12441
+ metadataPath: z.string().describe("Path to the comparison metadata."),
12442
+ indexColumn: z.string().optional().describe("Provide a column to use for the feature index, if different than the default dataframe index."),
12443
+ pValueColumn: z.string(),
12444
+ foldChangeColumn: z.string(),
12445
+ pValueTransformation: z.enum(["minuslog10"]).optional(),
12446
+ pValueAdjusted: z.boolean().optional(),
12447
+ foldChangeTransformation: z.enum(["log2"]).optional()
12448
+ });
12449
+ z.object({
12450
+ metadataPath: z.string().describe("Path to the comparison metadata."),
12451
+ indexColumn: z.string().optional().describe("Provide a column to use for the feature set index, if different than the default dataframe index."),
12452
+ termColumn: z.string().optional(),
12453
+ pValueColumn: z.string(),
12454
+ pValueAdjusted: z.boolean().optional(),
12455
+ analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.")
12456
+ });
12457
+ z.object({
12458
+ metadataPath: z.string().describe("Path to the comparison metadata."),
12459
+ indexColumn: z.string().optional().describe("Provide a column to use for the obs set index, if different than the default dataframe index."),
12460
+ interceptExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
12461
+ effectExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
12462
+ foldChangeColumn: z.string().describe("The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section."),
12463
+ foldChangeTransformation: z.enum(["log2"]).optional(),
12464
+ isCredibleEffectColumn: z.string().describe("Column which annotates effects as being credible or not (boolean)."),
12465
+ covariateColumn: z.string().describe("Column which defines the covariate used in the analysis."),
12466
+ analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, sccoda_df.")
12467
+ });
12047
12468
  const annDataObsLabels = annDataObs;
12048
12469
  const annDataFeatureLabels = annDataObs;
12049
12470
  const annDataSampleEdges = annDataObs;
@@ -12063,6 +12484,9 @@ const annDataObsSetsArr = z.array(z.object({
12063
12484
  z.object({
12064
12485
  obsSets: annDataObsSetsArr
12065
12486
  });
12487
+ z.object({
12488
+ sampleSets: annDataObsSetsArr
12489
+ });
12066
12490
  const annDataObsFeatureColumnsArr = z.array(z.object({
12067
12491
  path: z.string()
12068
12492
  }));
@@ -12360,14 +12784,14 @@ var tinycolor = { exports: {} };
12360
12784
  },
12361
12785
  getLuminance: function() {
12362
12786
  var rgb = this.toRgb();
12363
- var RsRGB, GsRGB, BsRGB, R2, G2, B2;
12787
+ var RsRGB, GsRGB, BsRGB, R, G2, B2;
12364
12788
  RsRGB = rgb.r / 255;
12365
12789
  GsRGB = rgb.g / 255;
12366
12790
  BsRGB = rgb.b / 255;
12367
12791
  if (RsRGB <= 0.03928) {
12368
- R2 = RsRGB / 12.92;
12792
+ R = RsRGB / 12.92;
12369
12793
  } else {
12370
- R2 = Math2.pow((RsRGB + 0.055) / 1.055, 2.4);
12794
+ R = Math2.pow((RsRGB + 0.055) / 1.055, 2.4);
12371
12795
  }
12372
12796
  if (GsRGB <= 0.03928) {
12373
12797
  G2 = GsRGB / 12.92;
@@ -12379,7 +12803,7 @@ var tinycolor = { exports: {} };
12379
12803
  } else {
12380
12804
  B2 = Math2.pow((BsRGB + 0.055) / 1.055, 2.4);
12381
12805
  }
12382
- return 0.2126 * R2 + 0.7152 * G2 + 0.0722 * B2;
12806
+ return 0.2126 * R + 0.7152 * G2 + 0.0722 * B2;
12383
12807
  },
12384
12808
  setAlpha: function(value) {
12385
12809
  this._a = boundAlpha(value);
@@ -13406,7 +13830,7 @@ var json2csv_umd = { exports: {} };
13406
13830
  }
13407
13831
  this._maxListeners = this._maxListeners || void 0;
13408
13832
  };
13409
- EventEmitter2.prototype.setMaxListeners = function setMaxListeners2(n2) {
13833
+ EventEmitter2.prototype.setMaxListeners = function setMaxListeners(n2) {
13410
13834
  if (typeof n2 !== "number" || n2 < 0 || isNaN(n2))
13411
13835
  throw new TypeError('"n" argument must be a positive number');
13412
13836
  this._maxListeners = n2;
@@ -13417,7 +13841,7 @@ var json2csv_umd = { exports: {} };
13417
13841
  return EventEmitter2.defaultMaxListeners;
13418
13842
  return that._maxListeners;
13419
13843
  }
13420
- EventEmitter2.prototype.getMaxListeners = function getMaxListeners2() {
13844
+ EventEmitter2.prototype.getMaxListeners = function getMaxListeners() {
13421
13845
  return $getMaxListeners(this);
13422
13846
  };
13423
13847
  function emitNone(handler, isFn, self2) {
@@ -13425,9 +13849,9 @@ var json2csv_umd = { exports: {} };
13425
13849
  handler.call(self2);
13426
13850
  else {
13427
13851
  var len2 = handler.length;
13428
- var listeners2 = arrayClone2(handler, len2);
13852
+ var listeners = arrayClone(handler, len2);
13429
13853
  for (var i2 = 0; i2 < len2; ++i2)
13430
- listeners2[i2].call(self2);
13854
+ listeners[i2].call(self2);
13431
13855
  }
13432
13856
  }
13433
13857
  function emitOne(handler, isFn, self2, arg1) {
@@ -13435,9 +13859,9 @@ var json2csv_umd = { exports: {} };
13435
13859
  handler.call(self2, arg1);
13436
13860
  else {
13437
13861
  var len2 = handler.length;
13438
- var listeners2 = arrayClone2(handler, len2);
13862
+ var listeners = arrayClone(handler, len2);
13439
13863
  for (var i2 = 0; i2 < len2; ++i2)
13440
- listeners2[i2].call(self2, arg1);
13864
+ listeners[i2].call(self2, arg1);
13441
13865
  }
13442
13866
  }
13443
13867
  function emitTwo(handler, isFn, self2, arg1, arg2) {
@@ -13445,9 +13869,9 @@ var json2csv_umd = { exports: {} };
13445
13869
  handler.call(self2, arg1, arg2);
13446
13870
  else {
13447
13871
  var len2 = handler.length;
13448
- var listeners2 = arrayClone2(handler, len2);
13872
+ var listeners = arrayClone(handler, len2);
13449
13873
  for (var i2 = 0; i2 < len2; ++i2)
13450
- listeners2[i2].call(self2, arg1, arg2);
13874
+ listeners[i2].call(self2, arg1, arg2);
13451
13875
  }
13452
13876
  }
13453
13877
  function emitThree(handler, isFn, self2, arg1, arg2, arg3) {
@@ -13455,9 +13879,9 @@ var json2csv_umd = { exports: {} };
13455
13879
  handler.call(self2, arg1, arg2, arg3);
13456
13880
  else {
13457
13881
  var len2 = handler.length;
13458
- var listeners2 = arrayClone2(handler, len2);
13882
+ var listeners = arrayClone(handler, len2);
13459
13883
  for (var i2 = 0; i2 < len2; ++i2)
13460
- listeners2[i2].call(self2, arg1, arg2, arg3);
13884
+ listeners[i2].call(self2, arg1, arg2, arg3);
13461
13885
  }
13462
13886
  }
13463
13887
  function emitMany(handler, isFn, self2, args) {
@@ -13465,12 +13889,12 @@ var json2csv_umd = { exports: {} };
13465
13889
  handler.apply(self2, args);
13466
13890
  else {
13467
13891
  var len2 = handler.length;
13468
- var listeners2 = arrayClone2(handler, len2);
13892
+ var listeners = arrayClone(handler, len2);
13469
13893
  for (var i2 = 0; i2 < len2; ++i2)
13470
- listeners2[i2].apply(self2, args);
13894
+ listeners[i2].apply(self2, args);
13471
13895
  }
13472
13896
  }
13473
- EventEmitter2.prototype.emit = function emit2(type3) {
13897
+ EventEmitter2.prototype.emit = function emit(type3) {
13474
13898
  var er, handler, len2, args, i2, events2, domain2;
13475
13899
  var doError = type3 === "error";
13476
13900
  events2 = this._events;
@@ -13523,7 +13947,7 @@ var json2csv_umd = { exports: {} };
13523
13947
  }
13524
13948
  return true;
13525
13949
  };
13526
- function _addListener2(target, type3, listener, prepend) {
13950
+ function _addListener(target, type3, listener, prepend) {
13527
13951
  var m2;
13528
13952
  var events2;
13529
13953
  var existing;
@@ -13575,14 +13999,14 @@ var json2csv_umd = { exports: {} };
13575
13999
  function emitWarning(e2) {
13576
14000
  typeof console.warn === "function" ? console.warn(e2) : console.log(e2);
13577
14001
  }
13578
- EventEmitter2.prototype.addListener = function addListener2(type3, listener) {
13579
- return _addListener2(this, type3, listener, false);
14002
+ EventEmitter2.prototype.addListener = function addListener(type3, listener) {
14003
+ return _addListener(this, type3, listener, false);
13580
14004
  };
13581
14005
  EventEmitter2.prototype.on = EventEmitter2.prototype.addListener;
13582
- EventEmitter2.prototype.prependListener = function prependListener3(type3, listener) {
13583
- return _addListener2(this, type3, listener, true);
14006
+ EventEmitter2.prototype.prependListener = function prependListener2(type3, listener) {
14007
+ return _addListener(this, type3, listener, true);
13584
14008
  };
13585
- function _onceWrap2(target, type3, listener) {
14009
+ function _onceWrap(target, type3, listener) {
13586
14010
  var fired = false;
13587
14011
  function g2() {
13588
14012
  target.removeListener(type3, g2);
@@ -13594,19 +14018,19 @@ var json2csv_umd = { exports: {} };
13594
14018
  g2.listener = listener;
13595
14019
  return g2;
13596
14020
  }
13597
- EventEmitter2.prototype.once = function once3(type3, listener) {
14021
+ EventEmitter2.prototype.once = function once(type3, listener) {
13598
14022
  if (typeof listener !== "function")
13599
14023
  throw new TypeError('"listener" argument must be a function');
13600
- this.on(type3, _onceWrap2(this, type3, listener));
14024
+ this.on(type3, _onceWrap(this, type3, listener));
13601
14025
  return this;
13602
14026
  };
13603
- EventEmitter2.prototype.prependOnceListener = function prependOnceListener2(type3, listener) {
14027
+ EventEmitter2.prototype.prependOnceListener = function prependOnceListener(type3, listener) {
13604
14028
  if (typeof listener !== "function")
13605
14029
  throw new TypeError('"listener" argument must be a function');
13606
- this.prependListener(type3, _onceWrap2(this, type3, listener));
14030
+ this.prependListener(type3, _onceWrap(this, type3, listener));
13607
14031
  return this;
13608
14032
  };
13609
- EventEmitter2.prototype.removeListener = function removeListener2(type3, listener) {
14033
+ EventEmitter2.prototype.removeListener = function removeListener(type3, listener) {
13610
14034
  var list, events2, position, i2, originalListener;
13611
14035
  if (typeof listener !== "function")
13612
14036
  throw new TypeError('"listener" argument must be a function');
@@ -13644,15 +14068,15 @@ var json2csv_umd = { exports: {} };
13644
14068
  delete events2[type3];
13645
14069
  }
13646
14070
  } else {
13647
- spliceOne2(list, position);
14071
+ spliceOne(list, position);
13648
14072
  }
13649
14073
  if (events2.removeListener)
13650
14074
  this.emit("removeListener", type3, originalListener || listener);
13651
14075
  }
13652
14076
  return this;
13653
14077
  };
13654
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners2(type3) {
13655
- var listeners2, events2;
14078
+ EventEmitter2.prototype.removeAllListeners = function removeAllListeners(type3) {
14079
+ var listeners, events2;
13656
14080
  events2 = this._events;
13657
14081
  if (!events2)
13658
14082
  return this;
@@ -13681,17 +14105,17 @@ var json2csv_umd = { exports: {} };
13681
14105
  this._eventsCount = 0;
13682
14106
  return this;
13683
14107
  }
13684
- listeners2 = events2[type3];
13685
- if (typeof listeners2 === "function") {
13686
- this.removeListener(type3, listeners2);
13687
- } else if (listeners2) {
14108
+ listeners = events2[type3];
14109
+ if (typeof listeners === "function") {
14110
+ this.removeListener(type3, listeners);
14111
+ } else if (listeners) {
13688
14112
  do {
13689
- this.removeListener(type3, listeners2[listeners2.length - 1]);
13690
- } while (listeners2[0]);
14113
+ this.removeListener(type3, listeners[listeners.length - 1]);
14114
+ } while (listeners[0]);
13691
14115
  }
13692
14116
  return this;
13693
14117
  };
13694
- EventEmitter2.prototype.listeners = function listeners2(type3) {
14118
+ EventEmitter2.prototype.listeners = function listeners(type3) {
13695
14119
  var evlistener;
13696
14120
  var ret;
13697
14121
  var events2 = this._events;
@@ -13704,7 +14128,7 @@ var json2csv_umd = { exports: {} };
13704
14128
  else if (typeof evlistener === "function")
13705
14129
  ret = [evlistener.listener || evlistener];
13706
14130
  else
13707
- ret = unwrapListeners2(evlistener);
14131
+ ret = unwrapListeners(evlistener);
13708
14132
  }
13709
14133
  return ret;
13710
14134
  };
@@ -13712,11 +14136,11 @@ var json2csv_umd = { exports: {} };
13712
14136
  if (typeof emitter.listenerCount === "function") {
13713
14137
  return emitter.listenerCount(type3);
13714
14138
  } else {
13715
- return listenerCount2.call(emitter, type3);
14139
+ return listenerCount.call(emitter, type3);
13716
14140
  }
13717
14141
  };
13718
- EventEmitter2.prototype.listenerCount = listenerCount2;
13719
- function listenerCount2(type3) {
14142
+ EventEmitter2.prototype.listenerCount = listenerCount;
14143
+ function listenerCount(type3) {
13720
14144
  var events2 = this._events;
13721
14145
  if (events2) {
13722
14146
  var evlistener = events2[type3];
@@ -13728,21 +14152,21 @@ var json2csv_umd = { exports: {} };
13728
14152
  }
13729
14153
  return 0;
13730
14154
  }
13731
- EventEmitter2.prototype.eventNames = function eventNames2() {
14155
+ EventEmitter2.prototype.eventNames = function eventNames() {
13732
14156
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
13733
14157
  };
13734
- function spliceOne2(list, index2) {
14158
+ function spliceOne(list, index2) {
13735
14159
  for (var i2 = index2, k = i2 + 1, n2 = list.length; k < n2; i2 += 1, k += 1)
13736
14160
  list[i2] = list[k];
13737
14161
  list.pop();
13738
14162
  }
13739
- function arrayClone2(arr, i2) {
14163
+ function arrayClone(arr, i2) {
13740
14164
  var copy2 = new Array(i2);
13741
14165
  while (i2--)
13742
14166
  copy2[i2] = arr[i2];
13743
14167
  return copy2;
13744
14168
  }
13745
- function unwrapListeners2(arr) {
14169
+ function unwrapListeners(arr) {
13746
14170
  var ret = new Array(arr.length);
13747
14171
  for (var i2 = 0; i2 < ret.length; ++i2) {
13748
14172
  ret[i2] = arr[i2].listener || arr[i2];
@@ -15534,7 +15958,7 @@ var json2csv_umd = { exports: {} };
15534
15958
  return str;
15535
15959
  }
15536
15960
  function deprecate(fn, msg) {
15537
- if (isUndefined(global$1.process)) {
15961
+ if (isUndefined2(global$1.process)) {
15538
15962
  return function() {
15539
15963
  return deprecate(fn, msg).apply(this, arguments);
15540
15964
  };
@@ -15554,7 +15978,7 @@ var json2csv_umd = { exports: {} };
15554
15978
  var debugs = {};
15555
15979
  var debugEnviron;
15556
15980
  function debuglog(set3) {
15557
- if (isUndefined(debugEnviron))
15981
+ if (isUndefined2(debugEnviron))
15558
15982
  debugEnviron = "";
15559
15983
  set3 = set3.toUpperCase();
15560
15984
  if (!debugs[set3]) {
@@ -15585,13 +16009,13 @@ var json2csv_umd = { exports: {} };
15585
16009
  } else if (opts2) {
15586
16010
  _extend(ctx, opts2);
15587
16011
  }
15588
- if (isUndefined(ctx.showHidden))
16012
+ if (isUndefined2(ctx.showHidden))
15589
16013
  ctx.showHidden = false;
15590
- if (isUndefined(ctx.depth))
16014
+ if (isUndefined2(ctx.depth))
15591
16015
  ctx.depth = 2;
15592
- if (isUndefined(ctx.colors))
16016
+ if (isUndefined2(ctx.colors))
15593
16017
  ctx.colors = false;
15594
- if (isUndefined(ctx.customInspect))
16018
+ if (isUndefined2(ctx.customInspect))
15595
16019
  ctx.customInspect = true;
15596
16020
  if (ctx.colors)
15597
16021
  ctx.stylize = stylizeWithColor;
@@ -15719,7 +16143,7 @@ var json2csv_umd = { exports: {} };
15719
16143
  return reduceToSingleString(output, base, braces);
15720
16144
  }
15721
16145
  function formatPrimitive(ctx, value) {
15722
- if (isUndefined(value))
16146
+ if (isUndefined2(value))
15723
16147
  return ctx.stylize("undefined", "undefined");
15724
16148
  if (isString(value)) {
15725
16149
  var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
@@ -15804,7 +16228,7 @@ var json2csv_umd = { exports: {} };
15804
16228
  str = ctx.stylize("[Circular]", "special");
15805
16229
  }
15806
16230
  }
15807
- if (isUndefined(name2)) {
16231
+ if (isUndefined2(name2)) {
15808
16232
  if (array && key.match(/^\d+$/)) {
15809
16233
  return str;
15810
16234
  }
@@ -15845,7 +16269,7 @@ var json2csv_umd = { exports: {} };
15845
16269
  function isString(arg) {
15846
16270
  return typeof arg === "string";
15847
16271
  }
15848
- function isUndefined(arg) {
16272
+ function isUndefined2(arg) {
15849
16273
  return arg === void 0;
15850
16274
  }
15851
16275
  function isRegExp(re2) {
@@ -16074,7 +16498,7 @@ var json2csv_umd = { exports: {} };
16074
16498
  Readable.ReadableState = ReadableState;
16075
16499
  var debug2 = debuglog("stream");
16076
16500
  inherits$1(Readable, EventEmitter2);
16077
- function prependListener2(emitter, event, fn) {
16501
+ function prependListener(emitter, event, fn) {
16078
16502
  if (typeof emitter.prependListener === "function") {
16079
16503
  return emitter.prependListener(event, fn);
16080
16504
  } else {
@@ -16428,7 +16852,7 @@ var json2csv_umd = { exports: {} };
16428
16852
  if (listenerCount$1(dest, "error") === 0)
16429
16853
  dest.emit("error", er);
16430
16854
  }
16431
- prependListener2(dest, "error", onerror);
16855
+ prependListener(dest, "error", onerror);
16432
16856
  function onclose() {
16433
16857
  dest.removeListener("finish", onfinish);
16434
16858
  unpipe();
@@ -20657,16 +21081,16 @@ function dirname(url) {
20657
21081
  return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
20658
21082
  }
20659
21083
  const isBoolean = (x2) => typeof x2 === "boolean";
20660
- const isFunction$2 = (x2) => typeof x2 === "function";
20661
- const isObject$2 = (x2) => x2 !== null && typeof x2 === "object";
20662
- const isPureObject = (x2) => isObject$2(x2) && x2.constructor === {}.constructor;
21084
+ const isFunction$3 = (x2) => typeof x2 === "function";
21085
+ const isObject$3 = (x2) => x2 !== null && typeof x2 === "object";
21086
+ const isPureObject = (x2) => isObject$3(x2) && x2.constructor === {}.constructor;
20663
21087
  const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
20664
21088
  const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
20665
21089
  const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
20666
21090
  const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
20667
21091
  const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
20668
- const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$2(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
20669
- const isReadableNodeStream = (x2) => isObject$2(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
21092
+ const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$3(x2) && isFunction$3(x2.tee) && isFunction$3(x2.cancel) && isFunction$3(x2.getReader);
21093
+ const isReadableNodeStream = (x2) => isObject$3(x2) && isFunction$3(x2.read) && isFunction$3(x2.pipe) && isBoolean(x2.readable);
20670
21094
  const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
20671
21095
  const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
20672
21096
  const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
@@ -21466,7 +21890,7 @@ function getFetchFunction(options, context) {
21466
21890
  if (typeof fetchOptions.fetch === "function") {
21467
21891
  return fetchOptions.fetch;
21468
21892
  }
21469
- if (isObject$2(fetchOptions.fetch)) {
21893
+ if (isObject$3(fetchOptions.fetch)) {
21470
21894
  return (url) => fetchFile(url, fetchOptions);
21471
21895
  }
21472
21896
  if (context !== null && context !== void 0 && context.fetch) {
@@ -21487,7 +21911,7 @@ function validateOptionsObject(options, id, defaultOptions2, deprecatedOptions,
21487
21911
  const loaderName = id || "Top level";
21488
21912
  const prefix2 = id ? "".concat(id, ".") : "";
21489
21913
  for (const key in options) {
21490
- const isSubOptions = !id && isObject$2(options[key]);
21914
+ const isSubOptions = !id && isObject$3(options[key]);
21491
21915
  const isBaseUriOption = key === "baseUri" && !id;
21492
21916
  const isWorkerUrlOption = key === "workerUrl" && id;
21493
21917
  if (!(key in defaultOptions2) && !isBaseUriOption && !isWorkerUrlOption) {
@@ -40455,9 +40879,9 @@ class Controller {
40455
40879
  updateTransition() {
40456
40880
  this.transitionManager.updateTransition();
40457
40881
  }
40458
- toggleEvents(eventNames2, enabled) {
40882
+ toggleEvents(eventNames, enabled) {
40459
40883
  if (this.eventManager) {
40460
- eventNames2.forEach((eventName) => {
40884
+ eventNames.forEach((eventName) => {
40461
40885
  if (this._events[eventName] !== enabled) {
40462
40886
  this._events[eventName] = enabled;
40463
40887
  if (enabled) {
@@ -43908,18 +44332,18 @@ var hammer$1 = { exports: {} };
43908
44332
  emit: function(input) {
43909
44333
  var self2 = this;
43910
44334
  var state = this.state;
43911
- function emit2(event) {
44335
+ function emit(event) {
43912
44336
  self2.manager.emit(event, input);
43913
44337
  }
43914
44338
  if (state < STATE_ENDED) {
43915
- emit2(self2.options.event + stateStr(state));
44339
+ emit(self2.options.event + stateStr(state));
43916
44340
  }
43917
- emit2(self2.options.event);
44341
+ emit(self2.options.event);
43918
44342
  if (input.additionalEvent) {
43919
- emit2(input.additionalEvent);
44343
+ emit(input.additionalEvent);
43920
44344
  }
43921
44345
  if (state >= STATE_ENDED) {
43922
- emit2(self2.options.event + stateStr(state));
44346
+ emit(self2.options.event + stateStr(state));
43923
44347
  }
43924
44348
  },
43925
44349
  /**
@@ -45279,7 +45703,7 @@ class EventRegistrar {
45279
45703
  isEmpty() {
45280
45704
  return !this._active;
45281
45705
  }
45282
- add(type2, handler, options, once3 = false, passive = false) {
45706
+ add(type2, handler, options, once = false, passive = false) {
45283
45707
  const { handlers, handlersByElement } = this;
45284
45708
  let opts2 = DEFAULT_OPTIONS$2;
45285
45709
  if (typeof options === "string" || options && options.addEventListener) {
@@ -45298,7 +45722,7 @@ class EventRegistrar {
45298
45722
  srcElement: opts2.srcElement,
45299
45723
  priority: opts2.priority
45300
45724
  };
45301
- if (once3) {
45725
+ if (once) {
45302
45726
  entry.once = true;
45303
45727
  }
45304
45728
  if (passive) {
@@ -45346,7 +45770,7 @@ class EventRegistrar {
45346
45770
  };
45347
45771
  const entriesToRemove = [];
45348
45772
  for (let i2 = 0; i2 < entries.length; i2++) {
45349
- const { type: type2, handler, once: once3 } = entries[i2];
45773
+ const { type: type2, handler, once } = entries[i2];
45350
45774
  handler({
45351
45775
  ...event,
45352
45776
  // @ts-ignore
@@ -45354,7 +45778,7 @@ class EventRegistrar {
45354
45778
  stopPropagation,
45355
45779
  stopImmediatePropagation
45356
45780
  });
45357
- if (once3) {
45781
+ if (once) {
45358
45782
  entriesToRemove.push(entries[i2]);
45359
45783
  }
45360
45784
  if (immediatePropagationStopped) {
@@ -45535,11 +45959,11 @@ class EventManager {
45535
45959
  /**
45536
45960
  * Process the event registration for a single event + handler.
45537
45961
  */
45538
- _addEventHandler(event, handler, opts2, once3, passive) {
45962
+ _addEventHandler(event, handler, opts2, once, passive) {
45539
45963
  if (typeof event !== "string") {
45540
45964
  opts2 = handler;
45541
45965
  for (const eventName in event) {
45542
- this._addEventHandler(eventName, event[eventName], opts2, once3, passive);
45966
+ this._addEventHandler(eventName, event[eventName], opts2, once, passive);
45543
45967
  }
45544
45968
  return;
45545
45969
  }
@@ -45554,7 +45978,7 @@ class EventManager {
45554
45978
  manager.on(eventAlias, eventRegistrar.handleEvent);
45555
45979
  }
45556
45980
  }
45557
- eventRegistrar.add(event, handler, opts2, once3, passive);
45981
+ eventRegistrar.add(event, handler, opts2, once, passive);
45558
45982
  if (!eventRegistrar.isEmpty()) {
45559
45983
  this._toggleRecognizer(eventRegistrar.recognizerName, true);
45560
45984
  }
@@ -48275,7 +48699,7 @@ function getPropTypes(props) {
48275
48699
  const ERR_NOT_OBJECT = "count(): argument not an object";
48276
48700
  const ERR_NOT_CONTAINER = "count(): argument not a container";
48277
48701
  function count(container) {
48278
- if (!isObject$1(container)) {
48702
+ if (!isObject$2(container)) {
48279
48703
  throw new Error(ERR_NOT_OBJECT);
48280
48704
  }
48281
48705
  if (typeof container.count === "function") {
@@ -48295,7 +48719,7 @@ function count(container) {
48295
48719
  function isPlainObject$1(value) {
48296
48720
  return value !== null && typeof value === "object" && value.constructor === Object;
48297
48721
  }
48298
- function isObject$1(value) {
48722
+ function isObject$2(value) {
48299
48723
  return value !== null && typeof value === "object";
48300
48724
  }
48301
48725
  function mergeShaders(target, source) {
@@ -87484,7 +87908,7 @@ function getCoords$1(coords) {
87484
87908
  throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
87485
87909
  }
87486
87910
  function containsNumber$1(coordinates2) {
87487
- if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
87911
+ if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
87488
87912
  return true;
87489
87913
  }
87490
87914
  if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
@@ -90307,7 +90731,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
90307
90731
  var toStr$1 = Object.prototype.toString;
90308
90732
  var concat = Array.prototype.concat;
90309
90733
  var defineDataProperty2 = defineDataProperty$1;
90310
- var isFunction$1 = function(fn) {
90734
+ var isFunction$2 = function(fn) {
90311
90735
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
90312
90736
  };
90313
90737
  var supportsDescriptors$2 = hasPropertyDescriptors_1();
@@ -90317,7 +90741,7 @@ var defineProperty$3 = function(object2, name2, value, predicate) {
90317
90741
  if (object2[name2] === value) {
90318
90742
  return;
90319
90743
  }
90320
- } else if (!isFunction$1(predicate) || !predicate()) {
90744
+ } else if (!isFunction$2(predicate) || !predicate()) {
90321
90745
  return;
90322
90746
  }
90323
90747
  }
@@ -90701,7 +91125,7 @@ function lineOverlap(line1, line2, options) {
90701
91125
  options = {};
90702
91126
  }
90703
91127
  options = options || {};
90704
- if (!isObject$3(options))
91128
+ if (!isObject$4(options))
90705
91129
  throw new Error("options is invalid");
90706
91130
  var tolerance = options.tolerance || 0;
90707
91131
  var features = [];
@@ -91261,19 +91685,19 @@ var jsts_min = { exports: {} };
91261
91685
  }, Object.defineProperties(w2, O);
91262
91686
  var T = function(t3, e3) {
91263
91687
  return t3.interfaces_ && t3.interfaces_().indexOf(e3) > -1;
91264
- }, R2 = function() {
91688
+ }, R = function() {
91265
91689
  }, P = { LOG_10: { configurable: true } };
91266
- R2.prototype.interfaces_ = function() {
91690
+ R.prototype.interfaces_ = function() {
91267
91691
  return [];
91268
- }, R2.prototype.getClass = function() {
91269
- return R2;
91270
- }, R2.log10 = function(t3) {
91692
+ }, R.prototype.getClass = function() {
91693
+ return R;
91694
+ }, R.log10 = function(t3) {
91271
91695
  var e3 = Math.log(t3);
91272
- return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R2.LOG_10;
91273
- }, R2.min = function(t3, e3, n3, i3) {
91696
+ return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
91697
+ }, R.min = function(t3, e3, n3, i3) {
91274
91698
  var r3 = t3;
91275
91699
  return e3 < r3 && (r3 = e3), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
91276
- }, R2.clamp = function() {
91700
+ }, R.clamp = function() {
91277
91701
  if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
91278
91702
  var t3 = arguments[0], e3 = arguments[1], n3 = arguments[2];
91279
91703
  return t3 < e3 ? e3 : t3 > n3 ? n3 : t3;
@@ -91282,9 +91706,9 @@ var jsts_min = { exports: {} };
91282
91706
  var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
91283
91707
  return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
91284
91708
  }
91285
- }, R2.wrap = function(t3, e3) {
91709
+ }, R.wrap = function(t3, e3) {
91286
91710
  return t3 < 0 ? e3 - -t3 % e3 : t3 % e3;
91287
- }, R2.max = function() {
91711
+ }, R.max = function() {
91288
91712
  if (3 === arguments.length) {
91289
91713
  var t3 = arguments[0], e3 = arguments[1], n3 = arguments[2], i3 = t3;
91290
91714
  return e3 > i3 && (i3 = e3), n3 > i3 && (i3 = n3), i3;
@@ -91293,11 +91717,11 @@ var jsts_min = { exports: {} };
91293
91717
  var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
91294
91718
  return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
91295
91719
  }
91296
- }, R2.average = function(t3, e3) {
91720
+ }, R.average = function(t3, e3) {
91297
91721
  return (t3 + e3) / 2;
91298
91722
  }, P.LOG_10.get = function() {
91299
91723
  return Math.log(10);
91300
- }, Object.defineProperties(R2, P);
91724
+ }, Object.defineProperties(R, P);
91301
91725
  var D2 = function(t3) {
91302
91726
  this.str = t3;
91303
91727
  };
@@ -92452,7 +92876,7 @@ var jsts_min = { exports: {} };
92452
92876
  }
92453
92877
  } else
92454
92878
  r3 = true;
92455
- return r3 ? R2.min(at2.distancePointLine(t3, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t3, e3), at2.distancePointLine(i3, t3, e3)) : 0;
92879
+ return r3 ? R.min(at2.distancePointLine(t3, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t3, e3), at2.distancePointLine(i3, t3, e3)) : 0;
92456
92880
  }, at2.isPointInRing = function(t3, e3) {
92457
92881
  return at2.locatePointInRing(t3, e3) !== w2.EXTERIOR;
92458
92882
  }, at2.computeLength = function(t3) {
@@ -93042,8 +93466,8 @@ var jsts_min = { exports: {} };
93042
93466
  (null === e3 || e3.compareTo(t3[n3]) > 0) && (e3 = t3[n3]);
93043
93467
  return e3;
93044
93468
  }, Lt.extract = function(t3, e3, n3) {
93045
- e3 = R2.clamp(e3, 0, t3.length);
93046
- var i3 = (n3 = R2.clamp(n3, -1, t3.length)) - e3 + 1;
93469
+ e3 = R.clamp(e3, 0, t3.length);
93470
+ var i3 = (n3 = R.clamp(n3, -1, t3.length)) - e3 + 1;
93047
93471
  n3 < 0 && (i3 = 0), e3 >= t3.length && (i3 = 0), n3 < e3 && (i3 = 0);
93048
93472
  var r3 = new Array(i3).fill(null);
93049
93473
  if (0 === i3)
@@ -98788,7 +99212,7 @@ var jsts_min = { exports: {} };
98788
99212
  return f3.getResultGeometry(c3);
98789
99213
  }
98790
99214
  }, di.precisionScaleFactor = function(t3, e3, n3) {
98791
- var i3 = t3.getEnvelopeInternal(), r3 = R2.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
99215
+ var i3 = t3.getEnvelopeInternal(), r3 = R.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
98792
99216
  return Math.pow(10, o3);
98793
99217
  }, yi.CAP_ROUND.get = function() {
98794
99218
  return Cn.CAP_ROUND;
@@ -106179,372 +106603,216 @@ var layerMouseEvent = {};
106179
106603
  exports2["default"] = LayerMouseEvent;
106180
106604
  })(layerMouseEvent);
106181
106605
  var nebulaLayer = {};
106182
- var events = { exports: {} };
106183
- var R = typeof Reflect === "object" ? Reflect : null;
106184
- var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
106185
- return Function.prototype.apply.call(target, receiver, args);
106186
- };
106187
- var ReflectOwnKeys;
106188
- if (R && typeof R.ownKeys === "function") {
106189
- ReflectOwnKeys = R.ownKeys;
106190
- } else if (Object.getOwnPropertySymbols) {
106191
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
106192
- return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
106193
- };
106194
- } else {
106195
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
106196
- return Object.getOwnPropertyNames(target);
106197
- };
106198
- }
106199
- function ProcessEmitWarning(warning2) {
106200
- if (console && console.warn)
106201
- console.warn(warning2);
106202
- }
106203
- var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
106204
- return value !== value;
106205
- };
106206
106606
  function EventEmitter() {
106207
- EventEmitter.init.call(this);
106607
+ this._events = this._events || {};
106608
+ this._maxListeners = this._maxListeners || void 0;
106208
106609
  }
106209
- events.exports = EventEmitter;
106210
- events.exports.once = once2;
106610
+ var events = EventEmitter;
106211
106611
  EventEmitter.EventEmitter = EventEmitter;
106212
106612
  EventEmitter.prototype._events = void 0;
106213
- EventEmitter.prototype._eventsCount = 0;
106214
106613
  EventEmitter.prototype._maxListeners = void 0;
106215
- var defaultMaxListeners = 10;
106216
- function checkListener(listener) {
106217
- if (typeof listener !== "function") {
106218
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
106219
- }
106220
- }
106221
- Object.defineProperty(EventEmitter, "defaultMaxListeners", {
106222
- enumerable: true,
106223
- get: function() {
106224
- return defaultMaxListeners;
106225
- },
106226
- set: function(arg) {
106227
- if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
106228
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
106229
- }
106230
- defaultMaxListeners = arg;
106231
- }
106232
- });
106233
- EventEmitter.init = function() {
106234
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
106235
- this._events = /* @__PURE__ */ Object.create(null);
106236
- this._eventsCount = 0;
106237
- }
106238
- this._maxListeners = this._maxListeners || void 0;
106239
- };
106240
- EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
106241
- if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
106242
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
106243
- }
106614
+ EventEmitter.defaultMaxListeners = 10;
106615
+ EventEmitter.prototype.setMaxListeners = function(n2) {
106616
+ if (!isNumber(n2) || n2 < 0 || isNaN(n2))
106617
+ throw TypeError("n must be a positive number");
106244
106618
  this._maxListeners = n2;
106245
106619
  return this;
106246
106620
  };
106247
- function _getMaxListeners(that) {
106248
- if (that._maxListeners === void 0)
106249
- return EventEmitter.defaultMaxListeners;
106250
- return that._maxListeners;
106251
- }
106252
- EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
106253
- return _getMaxListeners(this);
106254
- };
106255
- EventEmitter.prototype.emit = function emit(type2) {
106256
- var args = [];
106257
- for (var i2 = 1; i2 < arguments.length; i2++)
106258
- args.push(arguments[i2]);
106259
- var doError = type2 === "error";
106260
- var events2 = this._events;
106261
- if (events2 !== void 0)
106262
- doError = doError && events2.error === void 0;
106263
- else if (!doError)
106264
- return false;
106265
- if (doError) {
106266
- var er;
106267
- if (args.length > 0)
106268
- er = args[0];
106269
- if (er instanceof Error) {
106270
- throw er;
106271
- }
106272
- var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
106273
- err2.context = er;
106274
- throw err2;
106275
- }
106276
- var handler = events2[type2];
106277
- if (handler === void 0)
106621
+ EventEmitter.prototype.emit = function(type2) {
106622
+ var er, handler, len2, args, i2, listeners;
106623
+ if (!this._events)
106624
+ this._events = {};
106625
+ if (type2 === "error") {
106626
+ if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
106627
+ er = arguments[1];
106628
+ if (er instanceof Error) {
106629
+ throw er;
106630
+ } else {
106631
+ var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
106632
+ err2.context = er;
106633
+ throw err2;
106634
+ }
106635
+ }
106636
+ }
106637
+ handler = this._events[type2];
106638
+ if (isUndefined(handler))
106278
106639
  return false;
106279
- if (typeof handler === "function") {
106280
- ReflectApply(handler, this, args);
106281
- } else {
106282
- var len2 = handler.length;
106283
- var listeners2 = arrayClone(handler, len2);
106284
- for (var i2 = 0; i2 < len2; ++i2)
106285
- ReflectApply(listeners2[i2], this, args);
106640
+ if (isFunction$1(handler)) {
106641
+ switch (arguments.length) {
106642
+ case 1:
106643
+ handler.call(this);
106644
+ break;
106645
+ case 2:
106646
+ handler.call(this, arguments[1]);
106647
+ break;
106648
+ case 3:
106649
+ handler.call(this, arguments[1], arguments[2]);
106650
+ break;
106651
+ default:
106652
+ args = Array.prototype.slice.call(arguments, 1);
106653
+ handler.apply(this, args);
106654
+ }
106655
+ } else if (isObject$1(handler)) {
106656
+ args = Array.prototype.slice.call(arguments, 1);
106657
+ listeners = handler.slice();
106658
+ len2 = listeners.length;
106659
+ for (i2 = 0; i2 < len2; i2++)
106660
+ listeners[i2].apply(this, args);
106286
106661
  }
106287
106662
  return true;
106288
106663
  };
106289
- function _addListener(target, type2, listener, prepend) {
106664
+ EventEmitter.prototype.addListener = function(type2, listener) {
106290
106665
  var m2;
106291
- var events2;
106292
- var existing;
106293
- checkListener(listener);
106294
- events2 = target._events;
106295
- if (events2 === void 0) {
106296
- events2 = target._events = /* @__PURE__ */ Object.create(null);
106297
- target._eventsCount = 0;
106298
- } else {
106299
- if (events2.newListener !== void 0) {
106300
- target.emit(
106301
- "newListener",
106302
- type2,
106303
- listener.listener ? listener.listener : listener
106304
- );
106305
- events2 = target._events;
106306
- }
106307
- existing = events2[type2];
106308
- }
106309
- if (existing === void 0) {
106310
- existing = events2[type2] = listener;
106311
- ++target._eventsCount;
106312
- } else {
106313
- if (typeof existing === "function") {
106314
- existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
106315
- } else if (prepend) {
106316
- existing.unshift(listener);
106666
+ if (!isFunction$1(listener))
106667
+ throw TypeError("listener must be a function");
106668
+ if (!this._events)
106669
+ this._events = {};
106670
+ if (this._events.newListener)
106671
+ this.emit(
106672
+ "newListener",
106673
+ type2,
106674
+ isFunction$1(listener.listener) ? listener.listener : listener
106675
+ );
106676
+ if (!this._events[type2])
106677
+ this._events[type2] = listener;
106678
+ else if (isObject$1(this._events[type2]))
106679
+ this._events[type2].push(listener);
106680
+ else
106681
+ this._events[type2] = [this._events[type2], listener];
106682
+ if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
106683
+ if (!isUndefined(this._maxListeners)) {
106684
+ m2 = this._maxListeners;
106317
106685
  } else {
106318
- existing.push(listener);
106686
+ m2 = EventEmitter.defaultMaxListeners;
106319
106687
  }
106320
- m2 = _getMaxListeners(target);
106321
- if (m2 > 0 && existing.length > m2 && !existing.warned) {
106322
- existing.warned = true;
106323
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
106324
- w2.name = "MaxListenersExceededWarning";
106325
- w2.emitter = target;
106326
- w2.type = type2;
106327
- w2.count = existing.length;
106328
- ProcessEmitWarning(w2);
106688
+ if (m2 && m2 > 0 && this._events[type2].length > m2) {
106689
+ this._events[type2].warned = true;
106690
+ console.error(
106691
+ "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
106692
+ this._events[type2].length
106693
+ );
106694
+ if (typeof console.trace === "function") {
106695
+ console.trace();
106696
+ }
106329
106697
  }
106330
106698
  }
106331
- return target;
106332
- }
106333
- EventEmitter.prototype.addListener = function addListener(type2, listener) {
106334
- return _addListener(this, type2, listener, false);
106335
- };
106336
- EventEmitter.prototype.on = EventEmitter.prototype.addListener;
106337
- EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
106338
- return _addListener(this, type2, listener, true);
106339
- };
106340
- function onceWrapper() {
106341
- if (!this.fired) {
106342
- this.target.removeListener(this.type, this.wrapFn);
106343
- this.fired = true;
106344
- if (arguments.length === 0)
106345
- return this.listener.call(this.target);
106346
- return this.listener.apply(this.target, arguments);
106347
- }
106348
- }
106349
- function _onceWrap(target, type2, listener) {
106350
- var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
106351
- var wrapped = onceWrapper.bind(state);
106352
- wrapped.listener = listener;
106353
- state.wrapFn = wrapped;
106354
- return wrapped;
106355
- }
106356
- EventEmitter.prototype.once = function once(type2, listener) {
106357
- checkListener(listener);
106358
- this.on(type2, _onceWrap(this, type2, listener));
106359
106699
  return this;
106360
106700
  };
106361
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
106362
- checkListener(listener);
106363
- this.prependListener(type2, _onceWrap(this, type2, listener));
106701
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
106702
+ EventEmitter.prototype.once = function(type2, listener) {
106703
+ if (!isFunction$1(listener))
106704
+ throw TypeError("listener must be a function");
106705
+ var fired = false;
106706
+ function g2() {
106707
+ this.removeListener(type2, g2);
106708
+ if (!fired) {
106709
+ fired = true;
106710
+ listener.apply(this, arguments);
106711
+ }
106712
+ }
106713
+ g2.listener = listener;
106714
+ this.on(type2, g2);
106364
106715
  return this;
106365
106716
  };
106366
- EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
106367
- var list, events2, position, i2, originalListener;
106368
- checkListener(listener);
106369
- events2 = this._events;
106370
- if (events2 === void 0)
106717
+ EventEmitter.prototype.removeListener = function(type2, listener) {
106718
+ var list, position, length2, i2;
106719
+ if (!isFunction$1(listener))
106720
+ throw TypeError("listener must be a function");
106721
+ if (!this._events || !this._events[type2])
106371
106722
  return this;
106372
- list = events2[type2];
106373
- if (list === void 0)
106374
- return this;
106375
- if (list === listener || list.listener === listener) {
106376
- if (--this._eventsCount === 0)
106377
- this._events = /* @__PURE__ */ Object.create(null);
106378
- else {
106379
- delete events2[type2];
106380
- if (events2.removeListener)
106381
- this.emit("removeListener", type2, list.listener || listener);
106382
- }
106383
- } else if (typeof list !== "function") {
106384
- position = -1;
106385
- for (i2 = list.length - 1; i2 >= 0; i2--) {
106386
- if (list[i2] === listener || list[i2].listener === listener) {
106387
- originalListener = list[i2].listener;
106723
+ list = this._events[type2];
106724
+ length2 = list.length;
106725
+ position = -1;
106726
+ if (list === listener || isFunction$1(list.listener) && list.listener === listener) {
106727
+ delete this._events[type2];
106728
+ if (this._events.removeListener)
106729
+ this.emit("removeListener", type2, listener);
106730
+ } else if (isObject$1(list)) {
106731
+ for (i2 = length2; i2-- > 0; ) {
106732
+ if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
106388
106733
  position = i2;
106389
106734
  break;
106390
106735
  }
106391
106736
  }
106392
106737
  if (position < 0)
106393
106738
  return this;
106394
- if (position === 0)
106395
- list.shift();
106396
- else {
106397
- spliceOne(list, position);
106739
+ if (list.length === 1) {
106740
+ list.length = 0;
106741
+ delete this._events[type2];
106742
+ } else {
106743
+ list.splice(position, 1);
106398
106744
  }
106399
- if (list.length === 1)
106400
- events2[type2] = list[0];
106401
- if (events2.removeListener !== void 0)
106402
- this.emit("removeListener", type2, originalListener || listener);
106745
+ if (this._events.removeListener)
106746
+ this.emit("removeListener", type2, listener);
106403
106747
  }
106404
106748
  return this;
106405
106749
  };
106406
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
106407
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
106408
- var listeners2, events2, i2;
106409
- events2 = this._events;
106410
- if (events2 === void 0)
106750
+ EventEmitter.prototype.removeAllListeners = function(type2) {
106751
+ var key, listeners;
106752
+ if (!this._events)
106411
106753
  return this;
106412
- if (events2.removeListener === void 0) {
106413
- if (arguments.length === 0) {
106414
- this._events = /* @__PURE__ */ Object.create(null);
106415
- this._eventsCount = 0;
106416
- } else if (events2[type2] !== void 0) {
106417
- if (--this._eventsCount === 0)
106418
- this._events = /* @__PURE__ */ Object.create(null);
106419
- else
106420
- delete events2[type2];
106421
- }
106754
+ if (!this._events.removeListener) {
106755
+ if (arguments.length === 0)
106756
+ this._events = {};
106757
+ else if (this._events[type2])
106758
+ delete this._events[type2];
106422
106759
  return this;
106423
106760
  }
106424
106761
  if (arguments.length === 0) {
106425
- var keys3 = Object.keys(events2);
106426
- var key;
106427
- for (i2 = 0; i2 < keys3.length; ++i2) {
106428
- key = keys3[i2];
106762
+ for (key in this._events) {
106429
106763
  if (key === "removeListener")
106430
106764
  continue;
106431
106765
  this.removeAllListeners(key);
106432
106766
  }
106433
106767
  this.removeAllListeners("removeListener");
106434
- this._events = /* @__PURE__ */ Object.create(null);
106435
- this._eventsCount = 0;
106768
+ this._events = {};
106436
106769
  return this;
106437
106770
  }
106438
- listeners2 = events2[type2];
106439
- if (typeof listeners2 === "function") {
106440
- this.removeListener(type2, listeners2);
106441
- } else if (listeners2 !== void 0) {
106442
- for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
106443
- this.removeListener(type2, listeners2[i2]);
106444
- }
106771
+ listeners = this._events[type2];
106772
+ if (isFunction$1(listeners)) {
106773
+ this.removeListener(type2, listeners);
106774
+ } else if (listeners) {
106775
+ while (listeners.length)
106776
+ this.removeListener(type2, listeners[listeners.length - 1]);
106445
106777
  }
106778
+ delete this._events[type2];
106446
106779
  return this;
106447
106780
  };
106448
- function _listeners(target, type2, unwrap) {
106449
- var events2 = target._events;
106450
- if (events2 === void 0)
106451
- return [];
106452
- var evlistener = events2[type2];
106453
- if (evlistener === void 0)
106454
- return [];
106455
- if (typeof evlistener === "function")
106456
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
106457
- return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
106458
- }
106459
- EventEmitter.prototype.listeners = function listeners(type2) {
106460
- return _listeners(this, type2, true);
106461
- };
106462
- EventEmitter.prototype.rawListeners = function rawListeners(type2) {
106463
- return _listeners(this, type2, false);
106464
- };
106465
- EventEmitter.listenerCount = function(emitter, type2) {
106466
- if (typeof emitter.listenerCount === "function") {
106467
- return emitter.listenerCount(type2);
106468
- } else {
106469
- return listenerCount.call(emitter, type2);
106470
- }
106781
+ EventEmitter.prototype.listeners = function(type2) {
106782
+ var ret;
106783
+ if (!this._events || !this._events[type2])
106784
+ ret = [];
106785
+ else if (isFunction$1(this._events[type2]))
106786
+ ret = [this._events[type2]];
106787
+ else
106788
+ ret = this._events[type2].slice();
106789
+ return ret;
106471
106790
  };
106472
- EventEmitter.prototype.listenerCount = listenerCount;
106473
- function listenerCount(type2) {
106474
- var events2 = this._events;
106475
- if (events2 !== void 0) {
106476
- var evlistener = events2[type2];
106477
- if (typeof evlistener === "function") {
106791
+ EventEmitter.prototype.listenerCount = function(type2) {
106792
+ if (this._events) {
106793
+ var evlistener = this._events[type2];
106794
+ if (isFunction$1(evlistener))
106478
106795
  return 1;
106479
- } else if (evlistener !== void 0) {
106796
+ else if (evlistener)
106480
106797
  return evlistener.length;
106481
- }
106482
106798
  }
106483
106799
  return 0;
106484
- }
106485
- EventEmitter.prototype.eventNames = function eventNames() {
106486
- return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
106487
106800
  };
106488
- function arrayClone(arr, n2) {
106489
- var copy2 = new Array(n2);
106490
- for (var i2 = 0; i2 < n2; ++i2)
106491
- copy2[i2] = arr[i2];
106492
- return copy2;
106493
- }
106494
- function spliceOne(list, index2) {
106495
- for (; index2 + 1 < list.length; index2++)
106496
- list[index2] = list[index2 + 1];
106497
- list.pop();
106498
- }
106499
- function unwrapListeners(arr) {
106500
- var ret = new Array(arr.length);
106501
- for (var i2 = 0; i2 < ret.length; ++i2) {
106502
- ret[i2] = arr[i2].listener || arr[i2];
106503
- }
106504
- return ret;
106801
+ EventEmitter.listenerCount = function(emitter, type2) {
106802
+ return emitter.listenerCount(type2);
106803
+ };
106804
+ function isFunction$1(arg) {
106805
+ return typeof arg === "function";
106505
106806
  }
106506
- function once2(emitter, name2) {
106507
- return new Promise(function(resolve, reject) {
106508
- function errorListener(err2) {
106509
- emitter.removeListener(name2, resolver);
106510
- reject(err2);
106511
- }
106512
- function resolver() {
106513
- if (typeof emitter.removeListener === "function") {
106514
- emitter.removeListener("error", errorListener);
106515
- }
106516
- resolve([].slice.call(arguments));
106517
- }
106518
- eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
106519
- if (name2 !== "error") {
106520
- addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
106521
- }
106522
- });
106807
+ function isNumber(arg) {
106808
+ return typeof arg === "number";
106523
106809
  }
106524
- function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
106525
- if (typeof emitter.on === "function") {
106526
- eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
106527
- }
106810
+ function isObject$1(arg) {
106811
+ return typeof arg === "object" && arg !== null;
106528
106812
  }
106529
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
106530
- if (typeof emitter.on === "function") {
106531
- if (flags3.once) {
106532
- emitter.once(name2, listener);
106533
- } else {
106534
- emitter.on(name2, listener);
106535
- }
106536
- } else if (typeof emitter.addEventListener === "function") {
106537
- emitter.addEventListener(name2, function wrapListener(arg) {
106538
- if (flags3.once) {
106539
- emitter.removeEventListener(name2, wrapListener);
106540
- }
106541
- listener(arg);
106542
- });
106543
- } else {
106544
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
106545
- }
106813
+ function isUndefined(arg) {
106814
+ return arg === void 0;
106546
106815
  }
106547
- var eventsExports = events.exports;
106548
106816
  var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
106549
106817
  var rnds8 = new Uint8Array(16);
106550
106818
  function rng() {
@@ -106910,7 +107178,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
106910
107178
  value: true
106911
107179
  });
106912
107180
  exports2["default"] = void 0;
106913
- var _events = _interopRequireDefault2(eventsExports);
107181
+ var _events = _interopRequireDefault2(events);
106914
107182
  var _uuid = _interopRequireDefault2(require$$1$3);
106915
107183
  function _interopRequireDefault2(obj) {
106916
107184
  return obj && obj.__esModule ? obj : { "default": obj };
@@ -107394,7 +107662,7 @@ function rhumbDistance$2(from, to, options) {
107394
107662
  }
107395
107663
  function calculateRhumbDistance(origin, destination2, radius) {
107396
107664
  radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
107397
- var R2 = radius;
107665
+ var R = radius;
107398
107666
  var phi12 = origin[1] * Math.PI / 180;
107399
107667
  var phi2 = destination2[1] * Math.PI / 180;
107400
107668
  var DeltaPhi = phi2 - phi12;
@@ -107405,7 +107673,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
107405
107673
  var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
107406
107674
  var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
107407
107675
  var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
107408
- var dist = delta * R2;
107676
+ var dist = delta * R;
107409
107677
  return dist;
107410
107678
  }
107411
107679
  js$f.default = rhumbDistance$2;
@@ -121952,7 +122220,7 @@ var document_1 = doccy;
121952
122220
  value: true
121953
122221
  });
121954
122222
  exports2["default"] = void 0;
121955
- var _events = eventsExports;
122223
+ var _events = events;
121956
122224
  var _document = _interopRequireDefault2(document_1);
121957
122225
  var _core = require$$2$2;
121958
122226
  var _deckDrawer = _interopRequireDefault2(deckDrawer);
@@ -123907,16 +124175,16 @@ function addDecoder(cases, importFn) {
123907
124175
  }
123908
124176
  cases.forEach((c2) => registry$1.set(c2, importFn));
123909
124177
  }
123910
- addDecoder([void 0, 1], () => import("./raw-b3421d88.js").then((m2) => m2.default));
123911
- addDecoder(5, () => import("./lzw-314ca9ca.js").then((m2) => m2.default));
124178
+ addDecoder([void 0, 1], () => import("./raw-1fdeda18.js").then((m2) => m2.default));
124179
+ addDecoder(5, () => import("./lzw-9f2b5c3c.js").then((m2) => m2.default));
123912
124180
  addDecoder(6, () => {
123913
124181
  throw new Error("old style JPEG compression is not supported.");
123914
124182
  });
123915
- addDecoder(7, () => import("./jpeg-0d954ec0.js").then((m2) => m2.default));
123916
- addDecoder([8, 32946], () => import("./deflate-80988b96.js").then((m2) => m2.default));
123917
- addDecoder(32773, () => import("./packbits-dbbb7da1.js").then((m2) => m2.default));
123918
- addDecoder(34887, () => import("./lerc-48f203d9.js").then((m2) => m2.default));
123919
- addDecoder(50001, () => import("./webimage-bed9e45e.js").then((m2) => m2.default));
124183
+ addDecoder(7, () => import("./jpeg-a050d76f.js").then((m2) => m2.default));
124184
+ addDecoder([8, 32946], () => import("./deflate-32671b11.js").then((m2) => m2.default));
124185
+ addDecoder(32773, () => import("./packbits-b7b88028.js").then((m2) => m2.default));
124186
+ addDecoder(34887, () => import("./lerc-f8bbfebc.js").then((m2) => m2.default));
124187
+ addDecoder(50001, () => import("./webimage-72e65b82.js").then((m2) => m2.default));
123920
124188
  function decodeRowAcc(row, stride) {
123921
124189
  let length2 = row.length - stride;
123922
124190
  let offset5 = 0;
@@ -124106,16 +124374,16 @@ createCommonjsModule(function(module2) {
124106
124374
  if (!new Events().__proto__)
124107
124375
  prefix2 = false;
124108
124376
  }
124109
- function EE(fn, context, once3) {
124377
+ function EE(fn, context, once) {
124110
124378
  this.fn = fn;
124111
124379
  this.context = context;
124112
- this.once = once3 || false;
124380
+ this.once = once || false;
124113
124381
  }
124114
- function addListener2(emitter, event, fn, context, once3) {
124382
+ function addListener(emitter, event, fn, context, once) {
124115
124383
  if (typeof fn !== "function") {
124116
124384
  throw new TypeError("The listener must be a function");
124117
124385
  }
124118
- var listener = new EE(fn, context || emitter, once3), evt = prefix2 ? prefix2 + event : event;
124386
+ var listener = new EE(fn, context || emitter, once), evt = prefix2 ? prefix2 + event : event;
124119
124387
  if (!emitter._events[evt])
124120
124388
  emitter._events[evt] = listener, emitter._eventsCount++;
124121
124389
  else if (!emitter._events[evt].fn)
@@ -124134,7 +124402,7 @@ createCommonjsModule(function(module2) {
124134
124402
  this._events = new Events();
124135
124403
  this._eventsCount = 0;
124136
124404
  }
124137
- EventEmitter2.prototype.eventNames = function eventNames2() {
124405
+ EventEmitter2.prototype.eventNames = function eventNames() {
124138
124406
  var names = [], events2, name2;
124139
124407
  if (this._eventsCount === 0)
124140
124408
  return names;
@@ -124147,7 +124415,7 @@ createCommonjsModule(function(module2) {
124147
124415
  }
124148
124416
  return names;
124149
124417
  };
124150
- EventEmitter2.prototype.listeners = function listeners2(event) {
124418
+ EventEmitter2.prototype.listeners = function listeners(event) {
124151
124419
  var evt = prefix2 ? prefix2 + event : event, handlers = this._events[evt];
124152
124420
  if (!handlers)
124153
124421
  return [];
@@ -124158,76 +124426,76 @@ createCommonjsModule(function(module2) {
124158
124426
  }
124159
124427
  return ee;
124160
124428
  };
124161
- EventEmitter2.prototype.listenerCount = function listenerCount2(event) {
124162
- var evt = prefix2 ? prefix2 + event : event, listeners2 = this._events[evt];
124163
- if (!listeners2)
124429
+ EventEmitter2.prototype.listenerCount = function listenerCount(event) {
124430
+ var evt = prefix2 ? prefix2 + event : event, listeners = this._events[evt];
124431
+ if (!listeners)
124164
124432
  return 0;
124165
- if (listeners2.fn)
124433
+ if (listeners.fn)
124166
124434
  return 1;
124167
- return listeners2.length;
124435
+ return listeners.length;
124168
124436
  };
124169
- EventEmitter2.prototype.emit = function emit2(event, a1, a2, a3, a4, a5) {
124437
+ EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
124170
124438
  var evt = prefix2 ? prefix2 + event : event;
124171
124439
  if (!this._events[evt])
124172
124440
  return false;
124173
- var listeners2 = this._events[evt], len2 = arguments.length, args, i2;
124174
- if (listeners2.fn) {
124175
- if (listeners2.once)
124176
- this.removeListener(event, listeners2.fn, void 0, true);
124441
+ var listeners = this._events[evt], len2 = arguments.length, args, i2;
124442
+ if (listeners.fn) {
124443
+ if (listeners.once)
124444
+ this.removeListener(event, listeners.fn, void 0, true);
124177
124445
  switch (len2) {
124178
124446
  case 1:
124179
- return listeners2.fn.call(listeners2.context), true;
124447
+ return listeners.fn.call(listeners.context), true;
124180
124448
  case 2:
124181
- return listeners2.fn.call(listeners2.context, a1), true;
124449
+ return listeners.fn.call(listeners.context, a1), true;
124182
124450
  case 3:
124183
- return listeners2.fn.call(listeners2.context, a1, a2), true;
124451
+ return listeners.fn.call(listeners.context, a1, a2), true;
124184
124452
  case 4:
124185
- return listeners2.fn.call(listeners2.context, a1, a2, a3), true;
124453
+ return listeners.fn.call(listeners.context, a1, a2, a3), true;
124186
124454
  case 5:
124187
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4), true;
124455
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
124188
124456
  case 6:
124189
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4, a5), true;
124457
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
124190
124458
  }
124191
124459
  for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
124192
124460
  args[i2 - 1] = arguments[i2];
124193
124461
  }
124194
- listeners2.fn.apply(listeners2.context, args);
124462
+ listeners.fn.apply(listeners.context, args);
124195
124463
  } else {
124196
- var length2 = listeners2.length, j;
124464
+ var length2 = listeners.length, j;
124197
124465
  for (i2 = 0; i2 < length2; i2++) {
124198
- if (listeners2[i2].once)
124199
- this.removeListener(event, listeners2[i2].fn, void 0, true);
124466
+ if (listeners[i2].once)
124467
+ this.removeListener(event, listeners[i2].fn, void 0, true);
124200
124468
  switch (len2) {
124201
124469
  case 1:
124202
- listeners2[i2].fn.call(listeners2[i2].context);
124470
+ listeners[i2].fn.call(listeners[i2].context);
124203
124471
  break;
124204
124472
  case 2:
124205
- listeners2[i2].fn.call(listeners2[i2].context, a1);
124473
+ listeners[i2].fn.call(listeners[i2].context, a1);
124206
124474
  break;
124207
124475
  case 3:
124208
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2);
124476
+ listeners[i2].fn.call(listeners[i2].context, a1, a2);
124209
124477
  break;
124210
124478
  case 4:
124211
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2, a3);
124479
+ listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
124212
124480
  break;
124213
124481
  default:
124214
124482
  if (!args)
124215
124483
  for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
124216
124484
  args[j - 1] = arguments[j];
124217
124485
  }
124218
- listeners2[i2].fn.apply(listeners2[i2].context, args);
124486
+ listeners[i2].fn.apply(listeners[i2].context, args);
124219
124487
  }
124220
124488
  }
124221
124489
  }
124222
124490
  return true;
124223
124491
  };
124224
124492
  EventEmitter2.prototype.on = function on(event, fn, context) {
124225
- return addListener2(this, event, fn, context, false);
124493
+ return addListener(this, event, fn, context, false);
124226
124494
  };
124227
- EventEmitter2.prototype.once = function once3(event, fn, context) {
124228
- return addListener2(this, event, fn, context, true);
124495
+ EventEmitter2.prototype.once = function once(event, fn, context) {
124496
+ return addListener(this, event, fn, context, true);
124229
124497
  };
124230
- EventEmitter2.prototype.removeListener = function removeListener2(event, fn, context, once3) {
124498
+ EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
124231
124499
  var evt = prefix2 ? prefix2 + event : event;
124232
124500
  if (!this._events[evt])
124233
124501
  return this;
@@ -124235,15 +124503,15 @@ createCommonjsModule(function(module2) {
124235
124503
  clearEvent(this, evt);
124236
124504
  return this;
124237
124505
  }
124238
- var listeners2 = this._events[evt];
124239
- if (listeners2.fn) {
124240
- if (listeners2.fn === fn && (!once3 || listeners2.once) && (!context || listeners2.context === context)) {
124506
+ var listeners = this._events[evt];
124507
+ if (listeners.fn) {
124508
+ if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
124241
124509
  clearEvent(this, evt);
124242
124510
  }
124243
124511
  } else {
124244
- for (var i2 = 0, events2 = [], length2 = listeners2.length; i2 < length2; i2++) {
124245
- if (listeners2[i2].fn !== fn || once3 && !listeners2[i2].once || context && listeners2[i2].context !== context) {
124246
- events2.push(listeners2[i2]);
124512
+ for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
124513
+ if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
124514
+ events2.push(listeners[i2]);
124247
124515
  }
124248
124516
  }
124249
124517
  if (events2.length)
@@ -124253,7 +124521,7 @@ createCommonjsModule(function(module2) {
124253
124521
  }
124254
124522
  return this;
124255
124523
  };
124256
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners2(event) {
124524
+ EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
124257
124525
  var evt;
124258
124526
  if (event) {
124259
124527
  evt = prefix2 ? prefix2 + event : event;
@@ -128736,7 +129004,7 @@ var blosc_codec = function() {
128736
129004
  b += Ga[z2[a2++]];
128737
129005
  return b;
128738
129006
  }
128739
- var Q2 = {}, R2 = {}, S = {};
129007
+ var Q2 = {}, R = {}, S = {};
128740
129008
  function Ha(a2) {
128741
129009
  if (void 0 === a2)
128742
129010
  return "_unknown";
@@ -128781,8 +129049,8 @@ var blosc_codec = function() {
128781
129049
  });
128782
129050
  var e2 = Array(a2.length), g2 = [], k = 0;
128783
129051
  a2.forEach(function(h, l2) {
128784
- R2.hasOwnProperty(h) ? e2[l2] = R2[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
128785
- e2[l2] = R2[h];
129052
+ R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
129053
+ e2[l2] = R[h];
128786
129054
  ++k;
128787
129055
  k === g2.length && c2(e2);
128788
129056
  }));
@@ -128795,12 +129063,12 @@ var blosc_codec = function() {
128795
129063
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
128796
129064
  var d = b.name;
128797
129065
  a2 || T('type "' + d + '" must have a positive integer typeid pointer');
128798
- if (R2.hasOwnProperty(a2)) {
129066
+ if (R.hasOwnProperty(a2)) {
128799
129067
  if (c2.U)
128800
129068
  return;
128801
129069
  T("Cannot register type '" + d + "' twice");
128802
129070
  }
128803
- R2[a2] = b;
129071
+ R[a2] = b;
128804
129072
  delete S[a2];
128805
129073
  Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
128806
129074
  e2();
@@ -128913,7 +129181,7 @@ var blosc_codec = function() {
128913
129181
  }
128914
129182
  function eb(a2, b) {
128915
129183
  function c2(g2) {
128916
- e2[g2] || R2[g2] || (S[g2] ? S[g2].forEach(c2) : (d.push(g2), e2[g2] = true));
129184
+ e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c2) : (d.push(g2), e2[g2] = true));
128917
129185
  }
128918
129186
  var d = [], e2 = {};
128919
129187
  b.forEach(c2);
@@ -129201,7 +129469,7 @@ var blosc_codec = function() {
129201
129469
  }, n: Qa, x: function(a2) {
129202
129470
  4 < a2 && (V[a2].P += 1);
129203
129471
  }, C: function(a2, b) {
129204
- var c2 = R2[a2];
129472
+ var c2 = R[a2];
129205
129473
  void 0 === c2 && T("_emval_take_value has unknown type " + cb(a2));
129206
129474
  a2 = c2.readValueFromPointer(b);
129207
129475
  return Ra(a2);
@@ -133973,10 +134241,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
133973
134241
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
133974
134242
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
133975
134243
  if (valueTexHeight > texSize) {
133976
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
134244
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
133977
134245
  }
133978
134246
  if (colorTexHeight > texSize) {
133979
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
134247
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
133980
134248
  }
133981
134249
  const totalData = new Uint8Array(texSize * valueTexHeight);
133982
134250
  const totalColors = new Uint8Array(texSize * colorTexHeight);