@vitessce/layer-controller 3.5.7 → 3.5.9

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.
@@ -16711,8 +16711,13 @@ const ViewType = {
16711
16711
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
16712
16712
  DOT_PLOT: "dotPlot",
16713
16713
  FEATURE_BAR_PLOT: "featureBarPlot",
16714
+ VOLCANO_PLOT: "volcanoPlot",
16715
+ OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
16716
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
16714
16717
  BIOMARKER_SELECT: "biomarkerSelect",
16718
+ COMPARATIVE_HEADING: "comparativeHeading",
16715
16719
  LINK_CONTROLLER: "linkController",
16720
+ NEUROGLANCER: "neuroglancer",
16716
16721
  DUAL_SCATTERPLOT: "dualScatterplot",
16717
16722
  TREEMAP: "treemap"
16718
16723
  };
@@ -16853,6 +16858,11 @@ const CoordinationType = {
16853
16858
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
16854
16859
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
16855
16860
  CONTOUR_COLOR: "contourColor",
16861
+ // For volcano plot:
16862
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
16863
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
16864
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
16865
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
16856
16866
  // Treemap
16857
16867
  HIERARCHY_LEVELS: "hierarchyLevels"
16858
16868
  };
@@ -16872,9 +16882,16 @@ const ViewHelpMapping = {
16872
16882
  FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
16873
16883
  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).",
16874
16884
  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.",
16875
- TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering."
16885
+ NEUROGLANCER: "The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.",
16886
+ TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.",
16887
+ VOLCANO_PLOT: "The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).",
16888
+ 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).",
16889
+ 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."
16876
16890
  };
16877
16891
  const COMPONENT_COORDINATION_TYPES = {
16892
+ [ViewType.NEUROGLANCER]: [
16893
+ CoordinationType.DATASET
16894
+ ],
16878
16895
  [ViewType.SCATTERPLOT]: [
16879
16896
  CoordinationType.DATASET,
16880
16897
  CoordinationType.OBS_TYPE,
@@ -17344,8 +17361,64 @@ const COMPONENT_COORDINATION_TYPES = {
17344
17361
  CoordinationType.OBS_COLOR_ENCODING,
17345
17362
  CoordinationType.ADDITIONAL_OBS_SETS
17346
17363
  ],
17364
+ [ViewType.VOLCANO_PLOT]: [
17365
+ CoordinationType.DATASET,
17366
+ CoordinationType.OBS_TYPE,
17367
+ CoordinationType.FEATURE_TYPE,
17368
+ CoordinationType.SAMPLE_TYPE,
17369
+ // For selection of case-control sets of samples:
17370
+ CoordinationType.SAMPLE_SET_SELECTION,
17371
+ // For selection of one-vs-others sets of observations:
17372
+ CoordinationType.OBS_SET_SELECTION,
17373
+ // TODO: CoordinationType.FEATURE_SET_SELECTION,
17374
+ // TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
17375
+ // TODO: CoordinationType.FEATURE_SET_COLOR,
17376
+ CoordinationType.FEATURE_HIGHLIGHT,
17377
+ CoordinationType.FEATURE_SELECTION,
17378
+ CoordinationType.FEATURE_VALUE_COLORMAP,
17379
+ CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
17380
+ // TODO: CoordinationType.FEATURE_COLOR_ENCODING,
17381
+ // TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
17382
+ CoordinationType.TOOLTIPS_VISIBLE,
17383
+ CoordinationType.ADDITIONAL_OBS_SETS,
17384
+ CoordinationType.OBS_SET_COLOR,
17385
+ CoordinationType.SAMPLE_SET_COLOR,
17386
+ CoordinationType.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
17387
+ CoordinationType.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
17388
+ CoordinationType.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
17389
+ CoordinationType.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD
17390
+ ],
17391
+ [ViewType.OBS_SET_COMPOSITION_BAR_PLOT]: [
17392
+ CoordinationType.DATASET,
17393
+ CoordinationType.OBS_TYPE,
17394
+ CoordinationType.SAMPLE_TYPE,
17395
+ // For selection of case-control sets of samples:
17396
+ CoordinationType.SAMPLE_SET_SELECTION,
17397
+ // For selection of one-vs-others sets of observations:
17398
+ CoordinationType.OBS_SET_SELECTION,
17399
+ CoordinationType.ADDITIONAL_OBS_SETS,
17400
+ CoordinationType.OBS_SET_COLOR,
17401
+ CoordinationType.SAMPLE_SET_COLOR
17402
+ ],
17403
+ [ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
17404
+ CoordinationType.DATASET,
17405
+ CoordinationType.OBS_TYPE,
17406
+ CoordinationType.FEATURE_TYPE,
17407
+ CoordinationType.SAMPLE_TYPE,
17408
+ // For selection of case-control sets of samples:
17409
+ CoordinationType.SAMPLE_SET_SELECTION,
17410
+ // For selection of one-vs-others sets of observations:
17411
+ CoordinationType.OBS_SET_SELECTION,
17412
+ CoordinationType.ADDITIONAL_OBS_SETS,
17413
+ CoordinationType.OBS_SET_COLOR,
17414
+ CoordinationType.SAMPLE_SET_COLOR,
17415
+ CoordinationType.FEATURE_SELECTION
17416
+ ],
17347
17417
  [ViewType.LINK_CONTROLLER]: [],
17348
17418
  [ViewType.BIOMARKER_SELECT]: [
17419
+ CoordinationType.DATASET,
17420
+ CoordinationType.OBS_TYPE,
17421
+ CoordinationType.SAMPLE_TYPE,
17349
17422
  CoordinationType.FEATURE_SELECTION,
17350
17423
  CoordinationType.SAMPLE_SET_SELECTION,
17351
17424
  CoordinationType.SAMPLE_SET_FILTER,
@@ -17353,6 +17426,16 @@ const COMPONENT_COORDINATION_TYPES = {
17353
17426
  CoordinationType.OBS_SET_FILTER
17354
17427
  // TODO: create coordination types for internal state of the biomarker selection view?
17355
17428
  ],
17429
+ [ViewType.COMPARATIVE_HEADING]: [
17430
+ CoordinationType.DATASET,
17431
+ CoordinationType.OBS_TYPE,
17432
+ CoordinationType.SAMPLE_TYPE,
17433
+ CoordinationType.FEATURE_SELECTION,
17434
+ CoordinationType.SAMPLE_SET_SELECTION,
17435
+ CoordinationType.SAMPLE_SET_FILTER,
17436
+ CoordinationType.OBS_SET_SELECTION,
17437
+ CoordinationType.OBS_SET_FILTER
17438
+ ],
17356
17439
  [ViewType.TREEMAP]: [
17357
17440
  CoordinationType.DATASET,
17358
17441
  CoordinationType.OBS_TYPE,
@@ -18097,7 +18180,7 @@ var reTrimStart = /^\s+/;
18097
18180
  function baseTrim(string) {
18098
18181
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
18099
18182
  }
18100
- function isObject$4(value) {
18183
+ function isObject$5(value) {
18101
18184
  var type2 = typeof value;
18102
18185
  return value != null && (type2 == "object" || type2 == "function");
18103
18186
  }
@@ -18113,9 +18196,9 @@ function toNumber$1(value) {
18113
18196
  if (isSymbol$1(value)) {
18114
18197
  return NAN$1;
18115
18198
  }
18116
- if (isObject$4(value)) {
18199
+ if (isObject$5(value)) {
18117
18200
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
18118
- value = isObject$4(other) ? other + "" : other;
18201
+ value = isObject$5(other) ? other + "" : other;
18119
18202
  }
18120
18203
  if (typeof value != "string") {
18121
18204
  return value === 0 ? value : +value;
@@ -18137,8 +18220,8 @@ function toFinite(value) {
18137
18220
  return value === value ? value : 0;
18138
18221
  }
18139
18222
  var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
18140
- function isFunction$2(value) {
18141
- if (!isObject$4(value)) {
18223
+ function isFunction$3(value) {
18224
+ if (!isObject$5(value)) {
18142
18225
  return false;
18143
18226
  }
18144
18227
  var tag = baseGetTag(value);
@@ -18177,10 +18260,10 @@ var reIsNative = RegExp(
18177
18260
  "^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
18178
18261
  );
18179
18262
  function baseIsNative(value) {
18180
- if (!isObject$4(value) || isMasked(value)) {
18263
+ if (!isObject$5(value) || isMasked(value)) {
18181
18264
  return false;
18182
18265
  }
18183
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
18266
+ var pattern = isFunction$3(value) ? reIsNative : reIsHostCtor;
18184
18267
  return pattern.test(toSource(value));
18185
18268
  }
18186
18269
  function getValue$1(object2, key) {
@@ -18207,10 +18290,10 @@ function isLength(value) {
18207
18290
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
18208
18291
  }
18209
18292
  function isArrayLike(value) {
18210
- return value != null && isLength(value.length) && !isFunction$2(value);
18293
+ return value != null && isLength(value.length) && !isFunction$3(value);
18211
18294
  }
18212
18295
  function isIterateeCall(value, index2, object2) {
18213
- if (!isObject$4(object2)) {
18296
+ if (!isObject$5(object2)) {
18214
18297
  return false;
18215
18298
  }
18216
18299
  var type2 = typeof index2;
@@ -18830,7 +18913,7 @@ function debounce$1(func, wait, options) {
18830
18913
  throw new TypeError(FUNC_ERROR_TEXT$1);
18831
18914
  }
18832
18915
  wait = toNumber$1(wait) || 0;
18833
- if (isObject$4(options)) {
18916
+ if (isObject$5(options)) {
18834
18917
  leading = !!options.leading;
18835
18918
  maxing = "maxWait" in options;
18836
18919
  maxWait = maxing ? nativeMax$2(toNumber$1(options.maxWait) || 0, wait) : maxWait;
@@ -23608,16 +23691,16 @@ function dirname(url) {
23608
23691
  return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
23609
23692
  }
23610
23693
  const isBoolean = (x2) => typeof x2 === "boolean";
23611
- const isFunction$1 = (x2) => typeof x2 === "function";
23612
- const isObject$3 = (x2) => x2 !== null && typeof x2 === "object";
23613
- const isPureObject = (x2) => isObject$3(x2) && x2.constructor === {}.constructor;
23694
+ const isFunction$2 = (x2) => typeof x2 === "function";
23695
+ const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
23696
+ const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
23614
23697
  const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
23615
23698
  const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
23616
23699
  const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
23617
23700
  const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
23618
23701
  const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
23619
- const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$3(x2) && isFunction$1(x2.tee) && isFunction$1(x2.cancel) && isFunction$1(x2.getReader);
23620
- const isReadableNodeStream = (x2) => isObject$3(x2) && isFunction$1(x2.read) && isFunction$1(x2.pipe) && isBoolean(x2.readable);
23702
+ const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
23703
+ const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
23621
23704
  const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
23622
23705
  const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
23623
23706
  const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
@@ -24417,7 +24500,7 @@ function getFetchFunction(options, context) {
24417
24500
  if (typeof fetchOptions.fetch === "function") {
24418
24501
  return fetchOptions.fetch;
24419
24502
  }
24420
- if (isObject$3(fetchOptions.fetch)) {
24503
+ if (isObject$4(fetchOptions.fetch)) {
24421
24504
  return (url) => fetchFile(url, fetchOptions);
24422
24505
  }
24423
24506
  if (context !== null && context !== void 0 && context.fetch) {
@@ -24438,7 +24521,7 @@ function validateOptionsObject(options, id, defaultOptions2, deprecatedOptions,
24438
24521
  const loaderName = id || "Top level";
24439
24522
  const prefix2 = id ? "".concat(id, ".") : "";
24440
24523
  for (const key in options) {
24441
- const isSubOptions = !id && isObject$3(options[key]);
24524
+ const isSubOptions = !id && isObject$4(options[key]);
24442
24525
  const isBaseUriOption = key === "baseUri" && !id;
24443
24526
  const isWorkerUrlOption = key === "workerUrl" && id;
24444
24527
  if (!(key in defaultOptions2) && !isBaseUriOption && !isWorkerUrlOption) {
@@ -39805,9 +39888,9 @@ class Controller {
39805
39888
  updateTransition() {
39806
39889
  this.transitionManager.updateTransition();
39807
39890
  }
39808
- toggleEvents(eventNames2, enabled) {
39891
+ toggleEvents(eventNames, enabled) {
39809
39892
  if (this.eventManager) {
39810
- eventNames2.forEach((eventName) => {
39893
+ eventNames.forEach((eventName) => {
39811
39894
  if (this._events[eventName] !== enabled) {
39812
39895
  this._events[eventName] = enabled;
39813
39896
  if (enabled) {
@@ -43258,18 +43341,18 @@ var hammer$1 = { exports: {} };
43258
43341
  emit: function(input) {
43259
43342
  var self2 = this;
43260
43343
  var state = this.state;
43261
- function emit2(event) {
43344
+ function emit(event) {
43262
43345
  self2.manager.emit(event, input);
43263
43346
  }
43264
43347
  if (state < STATE_ENDED) {
43265
- emit2(self2.options.event + stateStr(state));
43348
+ emit(self2.options.event + stateStr(state));
43266
43349
  }
43267
- emit2(self2.options.event);
43350
+ emit(self2.options.event);
43268
43351
  if (input.additionalEvent) {
43269
- emit2(input.additionalEvent);
43352
+ emit(input.additionalEvent);
43270
43353
  }
43271
43354
  if (state >= STATE_ENDED) {
43272
- emit2(self2.options.event + stateStr(state));
43355
+ emit(self2.options.event + stateStr(state));
43273
43356
  }
43274
43357
  },
43275
43358
  /**
@@ -44629,7 +44712,7 @@ class EventRegistrar {
44629
44712
  isEmpty() {
44630
44713
  return !this._active;
44631
44714
  }
44632
- add(type2, handler, options, once3 = false, passive = false) {
44715
+ add(type2, handler, options, once = false, passive = false) {
44633
44716
  const { handlers, handlersByElement } = this;
44634
44717
  let opts = DEFAULT_OPTIONS$2;
44635
44718
  if (typeof options === "string" || options && options.addEventListener) {
@@ -44648,7 +44731,7 @@ class EventRegistrar {
44648
44731
  srcElement: opts.srcElement,
44649
44732
  priority: opts.priority
44650
44733
  };
44651
- if (once3) {
44734
+ if (once) {
44652
44735
  entry.once = true;
44653
44736
  }
44654
44737
  if (passive) {
@@ -44696,7 +44779,7 @@ class EventRegistrar {
44696
44779
  };
44697
44780
  const entriesToRemove = [];
44698
44781
  for (let i2 = 0; i2 < entries.length; i2++) {
44699
- const { type: type2, handler, once: once3 } = entries[i2];
44782
+ const { type: type2, handler, once } = entries[i2];
44700
44783
  handler({
44701
44784
  ...event,
44702
44785
  // @ts-ignore
@@ -44704,7 +44787,7 @@ class EventRegistrar {
44704
44787
  stopPropagation,
44705
44788
  stopImmediatePropagation
44706
44789
  });
44707
- if (once3) {
44790
+ if (once) {
44708
44791
  entriesToRemove.push(entries[i2]);
44709
44792
  }
44710
44793
  if (immediatePropagationStopped) {
@@ -44885,11 +44968,11 @@ class EventManager {
44885
44968
  /**
44886
44969
  * Process the event registration for a single event + handler.
44887
44970
  */
44888
- _addEventHandler(event, handler, opts, once3, passive) {
44971
+ _addEventHandler(event, handler, opts, once, passive) {
44889
44972
  if (typeof event !== "string") {
44890
44973
  opts = handler;
44891
44974
  for (const eventName in event) {
44892
- this._addEventHandler(eventName, event[eventName], opts, once3, passive);
44975
+ this._addEventHandler(eventName, event[eventName], opts, once, passive);
44893
44976
  }
44894
44977
  return;
44895
44978
  }
@@ -44904,7 +44987,7 @@ class EventManager {
44904
44987
  manager.on(eventAlias, eventRegistrar.handleEvent);
44905
44988
  }
44906
44989
  }
44907
- eventRegistrar.add(event, handler, opts, once3, passive);
44990
+ eventRegistrar.add(event, handler, opts, once, passive);
44908
44991
  if (!eventRegistrar.isEmpty()) {
44909
44992
  this._toggleRecognizer(eventRegistrar.recognizerName, true);
44910
44993
  }
@@ -47625,7 +47708,7 @@ function getPropTypes(props) {
47625
47708
  const ERR_NOT_OBJECT = "count(): argument not an object";
47626
47709
  const ERR_NOT_CONTAINER = "count(): argument not a container";
47627
47710
  function count(container) {
47628
- if (!isObject$2(container)) {
47711
+ if (!isObject$3(container)) {
47629
47712
  throw new Error(ERR_NOT_OBJECT);
47630
47713
  }
47631
47714
  if (typeof container.count === "function") {
@@ -47645,7 +47728,7 @@ function count(container) {
47645
47728
  function isPlainObject(value) {
47646
47729
  return value !== null && typeof value === "object" && value.constructor === Object;
47647
47730
  }
47648
- function isObject$2(value) {
47731
+ function isObject$3(value) {
47649
47732
  return value !== null && typeof value === "object";
47650
47733
  }
47651
47734
  function mergeShaders(target, source) {
@@ -84326,7 +84409,7 @@ function point(coordinates2, properties, options) {
84326
84409
  if (coordinates2.length < 2) {
84327
84410
  throw new Error("coordinates must be at least 2 numbers long");
84328
84411
  }
84329
- if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
84412
+ if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
84330
84413
  throw new Error("coordinates must contain numbers");
84331
84414
  }
84332
84415
  var geom = {
@@ -84527,10 +84610,10 @@ function convertArea(area2, originalUnit, finalUnit) {
84527
84610
  }
84528
84611
  return area2 / startFactor * finalFactor;
84529
84612
  }
84530
- function isNumber(num) {
84613
+ function isNumber$1(num) {
84531
84614
  return !isNaN(num) && num !== null && !Array.isArray(num);
84532
84615
  }
84533
- function isObject$1(input) {
84616
+ function isObject$2(input) {
84534
84617
  return !!input && input.constructor === Object;
84535
84618
  }
84536
84619
  function validateBBox(bbox2) {
@@ -84544,7 +84627,7 @@ function validateBBox(bbox2) {
84544
84627
  throw new Error("bbox must be an Array of 4 or 6 numbers");
84545
84628
  }
84546
84629
  bbox2.forEach(function(num) {
84547
- if (!isNumber(num)) {
84630
+ if (!isNumber$1(num)) {
84548
84631
  throw new Error("bbox must only contain numbers");
84549
84632
  }
84550
84633
  });
@@ -84570,8 +84653,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
84570
84653
  featureCollection: featureCollection$1,
84571
84654
  geometry,
84572
84655
  geometryCollection,
84573
- isNumber,
84574
- isObject: isObject$1,
84656
+ isNumber: isNumber$1,
84657
+ isObject: isObject$2,
84575
84658
  lengthToDegrees,
84576
84659
  lengthToRadians,
84577
84660
  lineString,
@@ -85013,7 +85096,7 @@ function lineReduce$1(geojson, callback, initialValue) {
85013
85096
  }
85014
85097
  function findSegment$1(geojson, options) {
85015
85098
  options = options || {};
85016
- if (!isObject$1(options))
85099
+ if (!isObject$2(options))
85017
85100
  throw new Error("options is invalid");
85018
85101
  var featureIndex = options.featureIndex || 0;
85019
85102
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -85105,7 +85188,7 @@ function findSegment$1(geojson, options) {
85105
85188
  }
85106
85189
  function findPoint$1(geojson, options) {
85107
85190
  options = options || {};
85108
- if (!isObject$1(options))
85191
+ if (!isObject$2(options))
85109
85192
  throw new Error("options is invalid");
85110
85193
  var featureIndex = options.featureIndex || 0;
85111
85194
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -85249,7 +85332,7 @@ function getCoords$1(coords) {
85249
85332
  throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
85250
85333
  }
85251
85334
  function containsNumber$1(coordinates2) {
85252
- if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
85335
+ if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
85253
85336
  return true;
85254
85337
  }
85255
85338
  if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
@@ -88305,7 +88388,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
88305
88388
  var toStr$1 = Object.prototype.toString;
88306
88389
  var concat = Array.prototype.concat;
88307
88390
  var defineDataProperty2 = defineDataProperty$1;
88308
- var isFunction = function(fn) {
88391
+ var isFunction$1 = function(fn) {
88309
88392
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
88310
88393
  };
88311
88394
  var supportsDescriptors$2 = hasPropertyDescriptors_1();
@@ -88315,7 +88398,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
88315
88398
  if (object2[name2] === value) {
88316
88399
  return;
88317
88400
  }
88318
- } else if (!isFunction(predicate) || !predicate()) {
88401
+ } else if (!isFunction$1(predicate) || !predicate()) {
88319
88402
  return;
88320
88403
  }
88321
88404
  }
@@ -88699,7 +88782,7 @@ function lineOverlap(line1, line2, options) {
88699
88782
  options = {};
88700
88783
  }
88701
88784
  options = options || {};
88702
- if (!isObject$1(options))
88785
+ if (!isObject$2(options))
88703
88786
  throw new Error("options is invalid");
88704
88787
  var tolerance = options.tolerance || 0;
88705
88788
  var features = [];
@@ -89259,19 +89342,19 @@ var jsts_min = { exports: {} };
89259
89342
  }, Object.defineProperties(w2, O);
89260
89343
  var T = function(t2, e3) {
89261
89344
  return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
89262
- }, R2 = function() {
89345
+ }, R = function() {
89263
89346
  }, P = { LOG_10: { configurable: true } };
89264
- R2.prototype.interfaces_ = function() {
89347
+ R.prototype.interfaces_ = function() {
89265
89348
  return [];
89266
- }, R2.prototype.getClass = function() {
89267
- return R2;
89268
- }, R2.log10 = function(t2) {
89349
+ }, R.prototype.getClass = function() {
89350
+ return R;
89351
+ }, R.log10 = function(t2) {
89269
89352
  var e3 = Math.log(t2);
89270
- return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R2.LOG_10;
89271
- }, R2.min = function(t2, e3, n3, i3) {
89353
+ return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
89354
+ }, R.min = function(t2, e3, n3, i3) {
89272
89355
  var r3 = t2;
89273
89356
  return e3 < r3 && (r3 = e3), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
89274
- }, R2.clamp = function() {
89357
+ }, R.clamp = function() {
89275
89358
  if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
89276
89359
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2];
89277
89360
  return t2 < e3 ? e3 : t2 > n3 ? n3 : t2;
@@ -89280,9 +89363,9 @@ var jsts_min = { exports: {} };
89280
89363
  var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
89281
89364
  return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
89282
89365
  }
89283
- }, R2.wrap = function(t2, e3) {
89366
+ }, R.wrap = function(t2, e3) {
89284
89367
  return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
89285
- }, R2.max = function() {
89368
+ }, R.max = function() {
89286
89369
  if (3 === arguments.length) {
89287
89370
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2], i3 = t2;
89288
89371
  return e3 > i3 && (i3 = e3), n3 > i3 && (i3 = n3), i3;
@@ -89291,11 +89374,11 @@ var jsts_min = { exports: {} };
89291
89374
  var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
89292
89375
  return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
89293
89376
  }
89294
- }, R2.average = function(t2, e3) {
89377
+ }, R.average = function(t2, e3) {
89295
89378
  return (t2 + e3) / 2;
89296
89379
  }, P.LOG_10.get = function() {
89297
89380
  return Math.log(10);
89298
- }, Object.defineProperties(R2, P);
89381
+ }, Object.defineProperties(R, P);
89299
89382
  var D2 = function(t2) {
89300
89383
  this.str = t2;
89301
89384
  };
@@ -90450,7 +90533,7 @@ var jsts_min = { exports: {} };
90450
90533
  }
90451
90534
  } else
90452
90535
  r3 = true;
90453
- return r3 ? R2.min(at2.distancePointLine(t2, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t2, e3), at2.distancePointLine(i3, t2, e3)) : 0;
90536
+ return r3 ? R.min(at2.distancePointLine(t2, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t2, e3), at2.distancePointLine(i3, t2, e3)) : 0;
90454
90537
  }, at2.isPointInRing = function(t2, e3) {
90455
90538
  return at2.locatePointInRing(t2, e3) !== w2.EXTERIOR;
90456
90539
  }, at2.computeLength = function(t2) {
@@ -91040,8 +91123,8 @@ var jsts_min = { exports: {} };
91040
91123
  (null === e3 || e3.compareTo(t2[n3]) > 0) && (e3 = t2[n3]);
91041
91124
  return e3;
91042
91125
  }, Lt.extract = function(t2, e3, n3) {
91043
- e3 = R2.clamp(e3, 0, t2.length);
91044
- var i3 = (n3 = R2.clamp(n3, -1, t2.length)) - e3 + 1;
91126
+ e3 = R.clamp(e3, 0, t2.length);
91127
+ var i3 = (n3 = R.clamp(n3, -1, t2.length)) - e3 + 1;
91045
91128
  n3 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n3 < e3 && (i3 = 0);
91046
91129
  var r3 = new Array(i3).fill(null);
91047
91130
  if (0 === i3)
@@ -96786,7 +96869,7 @@ var jsts_min = { exports: {} };
96786
96869
  return f3.getResultGeometry(c2);
96787
96870
  }
96788
96871
  }, di.precisionScaleFactor = function(t2, e3, n3) {
96789
- var i3 = t2.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);
96872
+ var i3 = t2.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);
96790
96873
  return Math.pow(10, o3);
96791
96874
  }, yi.CAP_ROUND.get = function() {
96792
96875
  return Cn.CAP_ROUND;
@@ -104177,372 +104260,216 @@ var layerMouseEvent = {};
104177
104260
  exports2["default"] = LayerMouseEvent;
104178
104261
  })(layerMouseEvent);
104179
104262
  var nebulaLayer = {};
104180
- var events = { exports: {} };
104181
- var R = typeof Reflect === "object" ? Reflect : null;
104182
- var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
104183
- return Function.prototype.apply.call(target, receiver, args);
104184
- };
104185
- var ReflectOwnKeys;
104186
- if (R && typeof R.ownKeys === "function") {
104187
- ReflectOwnKeys = R.ownKeys;
104188
- } else if (Object.getOwnPropertySymbols) {
104189
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
104190
- return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
104191
- };
104192
- } else {
104193
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
104194
- return Object.getOwnPropertyNames(target);
104195
- };
104196
- }
104197
- function ProcessEmitWarning(warning2) {
104198
- if (console && console.warn)
104199
- console.warn(warning2);
104200
- }
104201
- var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
104202
- return value !== value;
104203
- };
104204
104263
  function EventEmitter() {
104205
- EventEmitter.init.call(this);
104264
+ this._events = this._events || {};
104265
+ this._maxListeners = this._maxListeners || void 0;
104206
104266
  }
104207
- events.exports = EventEmitter;
104208
- events.exports.once = once2;
104267
+ var events = EventEmitter;
104209
104268
  EventEmitter.EventEmitter = EventEmitter;
104210
104269
  EventEmitter.prototype._events = void 0;
104211
- EventEmitter.prototype._eventsCount = 0;
104212
104270
  EventEmitter.prototype._maxListeners = void 0;
104213
- var defaultMaxListeners = 10;
104214
- function checkListener(listener) {
104215
- if (typeof listener !== "function") {
104216
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
104217
- }
104218
- }
104219
- Object.defineProperty(EventEmitter, "defaultMaxListeners", {
104220
- enumerable: true,
104221
- get: function() {
104222
- return defaultMaxListeners;
104223
- },
104224
- set: function(arg) {
104225
- if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
104226
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
104227
- }
104228
- defaultMaxListeners = arg;
104229
- }
104230
- });
104231
- EventEmitter.init = function() {
104232
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
104233
- this._events = /* @__PURE__ */ Object.create(null);
104234
- this._eventsCount = 0;
104235
- }
104236
- this._maxListeners = this._maxListeners || void 0;
104237
- };
104238
- EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
104239
- if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
104240
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
104241
- }
104271
+ EventEmitter.defaultMaxListeners = 10;
104272
+ EventEmitter.prototype.setMaxListeners = function(n2) {
104273
+ if (!isNumber(n2) || n2 < 0 || isNaN(n2))
104274
+ throw TypeError("n must be a positive number");
104242
104275
  this._maxListeners = n2;
104243
104276
  return this;
104244
104277
  };
104245
- function _getMaxListeners(that) {
104246
- if (that._maxListeners === void 0)
104247
- return EventEmitter.defaultMaxListeners;
104248
- return that._maxListeners;
104249
- }
104250
- EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
104251
- return _getMaxListeners(this);
104252
- };
104253
- EventEmitter.prototype.emit = function emit(type2) {
104254
- var args = [];
104255
- for (var i2 = 1; i2 < arguments.length; i2++)
104256
- args.push(arguments[i2]);
104257
- var doError = type2 === "error";
104258
- var events2 = this._events;
104259
- if (events2 !== void 0)
104260
- doError = doError && events2.error === void 0;
104261
- else if (!doError)
104262
- return false;
104263
- if (doError) {
104264
- var er;
104265
- if (args.length > 0)
104266
- er = args[0];
104267
- if (er instanceof Error) {
104268
- throw er;
104269
- }
104270
- var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
104271
- err2.context = er;
104272
- throw err2;
104273
- }
104274
- var handler = events2[type2];
104275
- if (handler === void 0)
104278
+ EventEmitter.prototype.emit = function(type2) {
104279
+ var er, handler, len2, args, i2, listeners;
104280
+ if (!this._events)
104281
+ this._events = {};
104282
+ if (type2 === "error") {
104283
+ if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
104284
+ er = arguments[1];
104285
+ if (er instanceof Error) {
104286
+ throw er;
104287
+ } else {
104288
+ var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
104289
+ err2.context = er;
104290
+ throw err2;
104291
+ }
104292
+ }
104293
+ }
104294
+ handler = this._events[type2];
104295
+ if (isUndefined(handler))
104276
104296
  return false;
104277
- if (typeof handler === "function") {
104278
- ReflectApply(handler, this, args);
104279
- } else {
104280
- var len2 = handler.length;
104281
- var listeners2 = arrayClone(handler, len2);
104282
- for (var i2 = 0; i2 < len2; ++i2)
104283
- ReflectApply(listeners2[i2], this, args);
104297
+ if (isFunction(handler)) {
104298
+ switch (arguments.length) {
104299
+ case 1:
104300
+ handler.call(this);
104301
+ break;
104302
+ case 2:
104303
+ handler.call(this, arguments[1]);
104304
+ break;
104305
+ case 3:
104306
+ handler.call(this, arguments[1], arguments[2]);
104307
+ break;
104308
+ default:
104309
+ args = Array.prototype.slice.call(arguments, 1);
104310
+ handler.apply(this, args);
104311
+ }
104312
+ } else if (isObject$1(handler)) {
104313
+ args = Array.prototype.slice.call(arguments, 1);
104314
+ listeners = handler.slice();
104315
+ len2 = listeners.length;
104316
+ for (i2 = 0; i2 < len2; i2++)
104317
+ listeners[i2].apply(this, args);
104284
104318
  }
104285
104319
  return true;
104286
104320
  };
104287
- function _addListener(target, type2, listener, prepend) {
104321
+ EventEmitter.prototype.addListener = function(type2, listener) {
104288
104322
  var m;
104289
- var events2;
104290
- var existing;
104291
- checkListener(listener);
104292
- events2 = target._events;
104293
- if (events2 === void 0) {
104294
- events2 = target._events = /* @__PURE__ */ Object.create(null);
104295
- target._eventsCount = 0;
104296
- } else {
104297
- if (events2.newListener !== void 0) {
104298
- target.emit(
104299
- "newListener",
104300
- type2,
104301
- listener.listener ? listener.listener : listener
104302
- );
104303
- events2 = target._events;
104304
- }
104305
- existing = events2[type2];
104306
- }
104307
- if (existing === void 0) {
104308
- existing = events2[type2] = listener;
104309
- ++target._eventsCount;
104310
- } else {
104311
- if (typeof existing === "function") {
104312
- existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
104313
- } else if (prepend) {
104314
- existing.unshift(listener);
104323
+ if (!isFunction(listener))
104324
+ throw TypeError("listener must be a function");
104325
+ if (!this._events)
104326
+ this._events = {};
104327
+ if (this._events.newListener)
104328
+ this.emit(
104329
+ "newListener",
104330
+ type2,
104331
+ isFunction(listener.listener) ? listener.listener : listener
104332
+ );
104333
+ if (!this._events[type2])
104334
+ this._events[type2] = listener;
104335
+ else if (isObject$1(this._events[type2]))
104336
+ this._events[type2].push(listener);
104337
+ else
104338
+ this._events[type2] = [this._events[type2], listener];
104339
+ if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
104340
+ if (!isUndefined(this._maxListeners)) {
104341
+ m = this._maxListeners;
104315
104342
  } else {
104316
- existing.push(listener);
104343
+ m = EventEmitter.defaultMaxListeners;
104317
104344
  }
104318
- m = _getMaxListeners(target);
104319
- if (m > 0 && existing.length > m && !existing.warned) {
104320
- existing.warned = true;
104321
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
104322
- w2.name = "MaxListenersExceededWarning";
104323
- w2.emitter = target;
104324
- w2.type = type2;
104325
- w2.count = existing.length;
104326
- ProcessEmitWarning(w2);
104345
+ if (m && m > 0 && this._events[type2].length > m) {
104346
+ this._events[type2].warned = true;
104347
+ console.error(
104348
+ "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
104349
+ this._events[type2].length
104350
+ );
104351
+ if (typeof console.trace === "function") {
104352
+ console.trace();
104353
+ }
104327
104354
  }
104328
104355
  }
104329
- return target;
104330
- }
104331
- EventEmitter.prototype.addListener = function addListener(type2, listener) {
104332
- return _addListener(this, type2, listener, false);
104333
- };
104334
- EventEmitter.prototype.on = EventEmitter.prototype.addListener;
104335
- EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
104336
- return _addListener(this, type2, listener, true);
104337
- };
104338
- function onceWrapper() {
104339
- if (!this.fired) {
104340
- this.target.removeListener(this.type, this.wrapFn);
104341
- this.fired = true;
104342
- if (arguments.length === 0)
104343
- return this.listener.call(this.target);
104344
- return this.listener.apply(this.target, arguments);
104345
- }
104346
- }
104347
- function _onceWrap(target, type2, listener) {
104348
- var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
104349
- var wrapped = onceWrapper.bind(state);
104350
- wrapped.listener = listener;
104351
- state.wrapFn = wrapped;
104352
- return wrapped;
104353
- }
104354
- EventEmitter.prototype.once = function once(type2, listener) {
104355
- checkListener(listener);
104356
- this.on(type2, _onceWrap(this, type2, listener));
104357
104356
  return this;
104358
104357
  };
104359
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
104360
- checkListener(listener);
104361
- this.prependListener(type2, _onceWrap(this, type2, listener));
104358
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
104359
+ EventEmitter.prototype.once = function(type2, listener) {
104360
+ if (!isFunction(listener))
104361
+ throw TypeError("listener must be a function");
104362
+ var fired = false;
104363
+ function g2() {
104364
+ this.removeListener(type2, g2);
104365
+ if (!fired) {
104366
+ fired = true;
104367
+ listener.apply(this, arguments);
104368
+ }
104369
+ }
104370
+ g2.listener = listener;
104371
+ this.on(type2, g2);
104362
104372
  return this;
104363
104373
  };
104364
- EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
104365
- var list, events2, position, i2, originalListener;
104366
- checkListener(listener);
104367
- events2 = this._events;
104368
- if (events2 === void 0)
104374
+ EventEmitter.prototype.removeListener = function(type2, listener) {
104375
+ var list, position, length2, i2;
104376
+ if (!isFunction(listener))
104377
+ throw TypeError("listener must be a function");
104378
+ if (!this._events || !this._events[type2])
104369
104379
  return this;
104370
- list = events2[type2];
104371
- if (list === void 0)
104372
- return this;
104373
- if (list === listener || list.listener === listener) {
104374
- if (--this._eventsCount === 0)
104375
- this._events = /* @__PURE__ */ Object.create(null);
104376
- else {
104377
- delete events2[type2];
104378
- if (events2.removeListener)
104379
- this.emit("removeListener", type2, list.listener || listener);
104380
- }
104381
- } else if (typeof list !== "function") {
104382
- position = -1;
104383
- for (i2 = list.length - 1; i2 >= 0; i2--) {
104384
- if (list[i2] === listener || list[i2].listener === listener) {
104385
- originalListener = list[i2].listener;
104380
+ list = this._events[type2];
104381
+ length2 = list.length;
104382
+ position = -1;
104383
+ if (list === listener || isFunction(list.listener) && list.listener === listener) {
104384
+ delete this._events[type2];
104385
+ if (this._events.removeListener)
104386
+ this.emit("removeListener", type2, listener);
104387
+ } else if (isObject$1(list)) {
104388
+ for (i2 = length2; i2-- > 0; ) {
104389
+ if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
104386
104390
  position = i2;
104387
104391
  break;
104388
104392
  }
104389
104393
  }
104390
104394
  if (position < 0)
104391
104395
  return this;
104392
- if (position === 0)
104393
- list.shift();
104394
- else {
104395
- spliceOne(list, position);
104396
+ if (list.length === 1) {
104397
+ list.length = 0;
104398
+ delete this._events[type2];
104399
+ } else {
104400
+ list.splice(position, 1);
104396
104401
  }
104397
- if (list.length === 1)
104398
- events2[type2] = list[0];
104399
- if (events2.removeListener !== void 0)
104400
- this.emit("removeListener", type2, originalListener || listener);
104402
+ if (this._events.removeListener)
104403
+ this.emit("removeListener", type2, listener);
104401
104404
  }
104402
104405
  return this;
104403
104406
  };
104404
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
104405
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
104406
- var listeners2, events2, i2;
104407
- events2 = this._events;
104408
- if (events2 === void 0)
104407
+ EventEmitter.prototype.removeAllListeners = function(type2) {
104408
+ var key, listeners;
104409
+ if (!this._events)
104409
104410
  return this;
104410
- if (events2.removeListener === void 0) {
104411
- if (arguments.length === 0) {
104412
- this._events = /* @__PURE__ */ Object.create(null);
104413
- this._eventsCount = 0;
104414
- } else if (events2[type2] !== void 0) {
104415
- if (--this._eventsCount === 0)
104416
- this._events = /* @__PURE__ */ Object.create(null);
104417
- else
104418
- delete events2[type2];
104419
- }
104411
+ if (!this._events.removeListener) {
104412
+ if (arguments.length === 0)
104413
+ this._events = {};
104414
+ else if (this._events[type2])
104415
+ delete this._events[type2];
104420
104416
  return this;
104421
104417
  }
104422
104418
  if (arguments.length === 0) {
104423
- var keys3 = Object.keys(events2);
104424
- var key;
104425
- for (i2 = 0; i2 < keys3.length; ++i2) {
104426
- key = keys3[i2];
104419
+ for (key in this._events) {
104427
104420
  if (key === "removeListener")
104428
104421
  continue;
104429
104422
  this.removeAllListeners(key);
104430
104423
  }
104431
104424
  this.removeAllListeners("removeListener");
104432
- this._events = /* @__PURE__ */ Object.create(null);
104433
- this._eventsCount = 0;
104425
+ this._events = {};
104434
104426
  return this;
104435
104427
  }
104436
- listeners2 = events2[type2];
104437
- if (typeof listeners2 === "function") {
104438
- this.removeListener(type2, listeners2);
104439
- } else if (listeners2 !== void 0) {
104440
- for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
104441
- this.removeListener(type2, listeners2[i2]);
104442
- }
104428
+ listeners = this._events[type2];
104429
+ if (isFunction(listeners)) {
104430
+ this.removeListener(type2, listeners);
104431
+ } else if (listeners) {
104432
+ while (listeners.length)
104433
+ this.removeListener(type2, listeners[listeners.length - 1]);
104443
104434
  }
104435
+ delete this._events[type2];
104444
104436
  return this;
104445
104437
  };
104446
- function _listeners(target, type2, unwrap) {
104447
- var events2 = target._events;
104448
- if (events2 === void 0)
104449
- return [];
104450
- var evlistener = events2[type2];
104451
- if (evlistener === void 0)
104452
- return [];
104453
- if (typeof evlistener === "function")
104454
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
104455
- return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
104456
- }
104457
- EventEmitter.prototype.listeners = function listeners(type2) {
104458
- return _listeners(this, type2, true);
104459
- };
104460
- EventEmitter.prototype.rawListeners = function rawListeners(type2) {
104461
- return _listeners(this, type2, false);
104462
- };
104463
- EventEmitter.listenerCount = function(emitter, type2) {
104464
- if (typeof emitter.listenerCount === "function") {
104465
- return emitter.listenerCount(type2);
104466
- } else {
104467
- return listenerCount.call(emitter, type2);
104468
- }
104438
+ EventEmitter.prototype.listeners = function(type2) {
104439
+ var ret;
104440
+ if (!this._events || !this._events[type2])
104441
+ ret = [];
104442
+ else if (isFunction(this._events[type2]))
104443
+ ret = [this._events[type2]];
104444
+ else
104445
+ ret = this._events[type2].slice();
104446
+ return ret;
104469
104447
  };
104470
- EventEmitter.prototype.listenerCount = listenerCount;
104471
- function listenerCount(type2) {
104472
- var events2 = this._events;
104473
- if (events2 !== void 0) {
104474
- var evlistener = events2[type2];
104475
- if (typeof evlistener === "function") {
104448
+ EventEmitter.prototype.listenerCount = function(type2) {
104449
+ if (this._events) {
104450
+ var evlistener = this._events[type2];
104451
+ if (isFunction(evlistener))
104476
104452
  return 1;
104477
- } else if (evlistener !== void 0) {
104453
+ else if (evlistener)
104478
104454
  return evlistener.length;
104479
- }
104480
104455
  }
104481
104456
  return 0;
104482
- }
104483
- EventEmitter.prototype.eventNames = function eventNames() {
104484
- return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
104485
104457
  };
104486
- function arrayClone(arr, n2) {
104487
- var copy2 = new Array(n2);
104488
- for (var i2 = 0; i2 < n2; ++i2)
104489
- copy2[i2] = arr[i2];
104490
- return copy2;
104491
- }
104492
- function spliceOne(list, index2) {
104493
- for (; index2 + 1 < list.length; index2++)
104494
- list[index2] = list[index2 + 1];
104495
- list.pop();
104496
- }
104497
- function unwrapListeners(arr) {
104498
- var ret = new Array(arr.length);
104499
- for (var i2 = 0; i2 < ret.length; ++i2) {
104500
- ret[i2] = arr[i2].listener || arr[i2];
104501
- }
104502
- return ret;
104458
+ EventEmitter.listenerCount = function(emitter, type2) {
104459
+ return emitter.listenerCount(type2);
104460
+ };
104461
+ function isFunction(arg) {
104462
+ return typeof arg === "function";
104503
104463
  }
104504
- function once2(emitter, name2) {
104505
- return new Promise(function(resolve, reject) {
104506
- function errorListener(err2) {
104507
- emitter.removeListener(name2, resolver);
104508
- reject(err2);
104509
- }
104510
- function resolver() {
104511
- if (typeof emitter.removeListener === "function") {
104512
- emitter.removeListener("error", errorListener);
104513
- }
104514
- resolve([].slice.call(arguments));
104515
- }
104516
- eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
104517
- if (name2 !== "error") {
104518
- addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
104519
- }
104520
- });
104464
+ function isNumber(arg) {
104465
+ return typeof arg === "number";
104521
104466
  }
104522
- function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
104523
- if (typeof emitter.on === "function") {
104524
- eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
104525
- }
104467
+ function isObject$1(arg) {
104468
+ return typeof arg === "object" && arg !== null;
104526
104469
  }
104527
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
104528
- if (typeof emitter.on === "function") {
104529
- if (flags3.once) {
104530
- emitter.once(name2, listener);
104531
- } else {
104532
- emitter.on(name2, listener);
104533
- }
104534
- } else if (typeof emitter.addEventListener === "function") {
104535
- emitter.addEventListener(name2, function wrapListener(arg) {
104536
- if (flags3.once) {
104537
- emitter.removeEventListener(name2, wrapListener);
104538
- }
104539
- listener(arg);
104540
- });
104541
- } else {
104542
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
104543
- }
104470
+ function isUndefined(arg) {
104471
+ return arg === void 0;
104544
104472
  }
104545
- var eventsExports = events.exports;
104546
104473
  var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
104547
104474
  var rnds8 = new Uint8Array(16);
104548
104475
  function rng() {
@@ -104908,7 +104835,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
104908
104835
  value: true
104909
104836
  });
104910
104837
  exports2["default"] = void 0;
104911
- var _events = _interopRequireDefault2(eventsExports);
104838
+ var _events = _interopRequireDefault2(events);
104912
104839
  var _uuid = _interopRequireDefault2(require$$1$3);
104913
104840
  function _interopRequireDefault2(obj) {
104914
104841
  return obj && obj.__esModule ? obj : { "default": obj };
@@ -105392,7 +105319,7 @@ function rhumbDistance$2(from, to, options) {
105392
105319
  }
105393
105320
  function calculateRhumbDistance(origin, destination2, radius) {
105394
105321
  radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
105395
- var R2 = radius;
105322
+ var R = radius;
105396
105323
  var phi12 = origin[1] * Math.PI / 180;
105397
105324
  var phi2 = destination2[1] * Math.PI / 180;
105398
105325
  var DeltaPhi = phi2 - phi12;
@@ -105403,7 +105330,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
105403
105330
  var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
105404
105331
  var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
105405
105332
  var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
105406
- var dist = delta * R2;
105333
+ var dist = delta * R;
105407
105334
  return dist;
105408
105335
  }
105409
105336
  js$e.default = rhumbDistance$2;
@@ -119912,7 +119839,7 @@ var document_1 = doccy;
119912
119839
  value: true
119913
119840
  });
119914
119841
  exports2["default"] = void 0;
119915
- var _events = eventsExports;
119842
+ var _events = events;
119916
119843
  var _document = _interopRequireDefault2(document_1);
119917
119844
  var _core = require$$2$2;
119918
119845
  var _deckDrawer = _interopRequireDefault2(deckDrawer);
@@ -121833,16 +121760,16 @@ function addDecoder(cases, importFn) {
121833
121760
  }
121834
121761
  cases.forEach((c) => registry$1.set(c, importFn));
121835
121762
  }
121836
- addDecoder([void 0, 1], () => import("./raw-782360b8.js").then((m) => m.default));
121837
- addDecoder(5, () => import("./lzw-0ce97204.js").then((m) => m.default));
121763
+ addDecoder([void 0, 1], () => import("./raw-023f0a8a.js").then((m) => m.default));
121764
+ addDecoder(5, () => import("./lzw-a54d56e5.js").then((m) => m.default));
121838
121765
  addDecoder(6, () => {
121839
121766
  throw new Error("old style JPEG compression is not supported.");
121840
121767
  });
121841
- addDecoder(7, () => import("./jpeg-f152b137.js").then((m) => m.default));
121842
- addDecoder([8, 32946], () => import("./deflate-adf928b0.js").then((m) => m.default));
121843
- addDecoder(32773, () => import("./packbits-bdf660ad.js").then((m) => m.default));
121844
- addDecoder(34887, () => import("./lerc-f3213e01.js").then((m) => m.default));
121845
- addDecoder(50001, () => import("./webimage-5c05a3b3.js").then((m) => m.default));
121768
+ addDecoder(7, () => import("./jpeg-365ad956.js").then((m) => m.default));
121769
+ addDecoder([8, 32946], () => import("./deflate-33376e80.js").then((m) => m.default));
121770
+ addDecoder(32773, () => import("./packbits-cc9c07c8.js").then((m) => m.default));
121771
+ addDecoder(34887, () => import("./lerc-60a4d079.js").then((m) => m.default));
121772
+ addDecoder(50001, () => import("./webimage-abe1602e.js").then((m) => m.default));
121846
121773
  function decodeRowAcc(row, stride) {
121847
121774
  let length2 = row.length - stride;
121848
121775
  let offset4 = 0;
@@ -125669,16 +125596,16 @@ createCommonjsModule(function(module2) {
125669
125596
  if (!new Events().__proto__)
125670
125597
  prefix2 = false;
125671
125598
  }
125672
- function EE(fn, context, once3) {
125599
+ function EE(fn, context, once) {
125673
125600
  this.fn = fn;
125674
125601
  this.context = context;
125675
- this.once = once3 || false;
125602
+ this.once = once || false;
125676
125603
  }
125677
- function addListener2(emitter, event, fn, context, once3) {
125604
+ function addListener(emitter, event, fn, context, once) {
125678
125605
  if (typeof fn !== "function") {
125679
125606
  throw new TypeError("The listener must be a function");
125680
125607
  }
125681
- var listener = new EE(fn, context || emitter, once3), evt = prefix2 ? prefix2 + event : event;
125608
+ var listener = new EE(fn, context || emitter, once), evt = prefix2 ? prefix2 + event : event;
125682
125609
  if (!emitter._events[evt])
125683
125610
  emitter._events[evt] = listener, emitter._eventsCount++;
125684
125611
  else if (!emitter._events[evt].fn)
@@ -125697,7 +125624,7 @@ createCommonjsModule(function(module2) {
125697
125624
  this._events = new Events();
125698
125625
  this._eventsCount = 0;
125699
125626
  }
125700
- EventEmitter2.prototype.eventNames = function eventNames2() {
125627
+ EventEmitter2.prototype.eventNames = function eventNames() {
125701
125628
  var names = [], events2, name2;
125702
125629
  if (this._eventsCount === 0)
125703
125630
  return names;
@@ -125710,7 +125637,7 @@ createCommonjsModule(function(module2) {
125710
125637
  }
125711
125638
  return names;
125712
125639
  };
125713
- EventEmitter2.prototype.listeners = function listeners2(event) {
125640
+ EventEmitter2.prototype.listeners = function listeners(event) {
125714
125641
  var evt = prefix2 ? prefix2 + event : event, handlers = this._events[evt];
125715
125642
  if (!handlers)
125716
125643
  return [];
@@ -125721,76 +125648,76 @@ createCommonjsModule(function(module2) {
125721
125648
  }
125722
125649
  return ee;
125723
125650
  };
125724
- EventEmitter2.prototype.listenerCount = function listenerCount2(event) {
125725
- var evt = prefix2 ? prefix2 + event : event, listeners2 = this._events[evt];
125726
- if (!listeners2)
125651
+ EventEmitter2.prototype.listenerCount = function listenerCount(event) {
125652
+ var evt = prefix2 ? prefix2 + event : event, listeners = this._events[evt];
125653
+ if (!listeners)
125727
125654
  return 0;
125728
- if (listeners2.fn)
125655
+ if (listeners.fn)
125729
125656
  return 1;
125730
- return listeners2.length;
125657
+ return listeners.length;
125731
125658
  };
125732
- EventEmitter2.prototype.emit = function emit2(event, a1, a2, a3, a4, a5) {
125659
+ EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
125733
125660
  var evt = prefix2 ? prefix2 + event : event;
125734
125661
  if (!this._events[evt])
125735
125662
  return false;
125736
- var listeners2 = this._events[evt], len2 = arguments.length, args, i2;
125737
- if (listeners2.fn) {
125738
- if (listeners2.once)
125739
- this.removeListener(event, listeners2.fn, void 0, true);
125663
+ var listeners = this._events[evt], len2 = arguments.length, args, i2;
125664
+ if (listeners.fn) {
125665
+ if (listeners.once)
125666
+ this.removeListener(event, listeners.fn, void 0, true);
125740
125667
  switch (len2) {
125741
125668
  case 1:
125742
- return listeners2.fn.call(listeners2.context), true;
125669
+ return listeners.fn.call(listeners.context), true;
125743
125670
  case 2:
125744
- return listeners2.fn.call(listeners2.context, a1), true;
125671
+ return listeners.fn.call(listeners.context, a1), true;
125745
125672
  case 3:
125746
- return listeners2.fn.call(listeners2.context, a1, a2), true;
125673
+ return listeners.fn.call(listeners.context, a1, a2), true;
125747
125674
  case 4:
125748
- return listeners2.fn.call(listeners2.context, a1, a2, a3), true;
125675
+ return listeners.fn.call(listeners.context, a1, a2, a3), true;
125749
125676
  case 5:
125750
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4), true;
125677
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
125751
125678
  case 6:
125752
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4, a5), true;
125679
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
125753
125680
  }
125754
125681
  for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
125755
125682
  args[i2 - 1] = arguments[i2];
125756
125683
  }
125757
- listeners2.fn.apply(listeners2.context, args);
125684
+ listeners.fn.apply(listeners.context, args);
125758
125685
  } else {
125759
- var length2 = listeners2.length, j;
125686
+ var length2 = listeners.length, j;
125760
125687
  for (i2 = 0; i2 < length2; i2++) {
125761
- if (listeners2[i2].once)
125762
- this.removeListener(event, listeners2[i2].fn, void 0, true);
125688
+ if (listeners[i2].once)
125689
+ this.removeListener(event, listeners[i2].fn, void 0, true);
125763
125690
  switch (len2) {
125764
125691
  case 1:
125765
- listeners2[i2].fn.call(listeners2[i2].context);
125692
+ listeners[i2].fn.call(listeners[i2].context);
125766
125693
  break;
125767
125694
  case 2:
125768
- listeners2[i2].fn.call(listeners2[i2].context, a1);
125695
+ listeners[i2].fn.call(listeners[i2].context, a1);
125769
125696
  break;
125770
125697
  case 3:
125771
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2);
125698
+ listeners[i2].fn.call(listeners[i2].context, a1, a2);
125772
125699
  break;
125773
125700
  case 4:
125774
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2, a3);
125701
+ listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
125775
125702
  break;
125776
125703
  default:
125777
125704
  if (!args)
125778
125705
  for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
125779
125706
  args[j - 1] = arguments[j];
125780
125707
  }
125781
- listeners2[i2].fn.apply(listeners2[i2].context, args);
125708
+ listeners[i2].fn.apply(listeners[i2].context, args);
125782
125709
  }
125783
125710
  }
125784
125711
  }
125785
125712
  return true;
125786
125713
  };
125787
125714
  EventEmitter2.prototype.on = function on(event, fn, context) {
125788
- return addListener2(this, event, fn, context, false);
125715
+ return addListener(this, event, fn, context, false);
125789
125716
  };
125790
- EventEmitter2.prototype.once = function once3(event, fn, context) {
125791
- return addListener2(this, event, fn, context, true);
125717
+ EventEmitter2.prototype.once = function once(event, fn, context) {
125718
+ return addListener(this, event, fn, context, true);
125792
125719
  };
125793
- EventEmitter2.prototype.removeListener = function removeListener2(event, fn, context, once3) {
125720
+ EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
125794
125721
  var evt = prefix2 ? prefix2 + event : event;
125795
125722
  if (!this._events[evt])
125796
125723
  return this;
@@ -125798,15 +125725,15 @@ createCommonjsModule(function(module2) {
125798
125725
  clearEvent(this, evt);
125799
125726
  return this;
125800
125727
  }
125801
- var listeners2 = this._events[evt];
125802
- if (listeners2.fn) {
125803
- if (listeners2.fn === fn && (!once3 || listeners2.once) && (!context || listeners2.context === context)) {
125728
+ var listeners = this._events[evt];
125729
+ if (listeners.fn) {
125730
+ if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
125804
125731
  clearEvent(this, evt);
125805
125732
  }
125806
125733
  } else {
125807
- for (var i2 = 0, events2 = [], length2 = listeners2.length; i2 < length2; i2++) {
125808
- if (listeners2[i2].fn !== fn || once3 && !listeners2[i2].once || context && listeners2[i2].context !== context) {
125809
- events2.push(listeners2[i2]);
125734
+ for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
125735
+ if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
125736
+ events2.push(listeners[i2]);
125810
125737
  }
125811
125738
  }
125812
125739
  if (events2.length)
@@ -125816,7 +125743,7 @@ createCommonjsModule(function(module2) {
125816
125743
  }
125817
125744
  return this;
125818
125745
  };
125819
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners2(event) {
125746
+ EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
125820
125747
  var evt;
125821
125748
  if (event) {
125822
125749
  evt = prefix2 ? prefix2 + event : event;
@@ -130299,7 +130226,7 @@ var blosc_codec = function() {
130299
130226
  b += Ga[z[a2++]];
130300
130227
  return b;
130301
130228
  }
130302
- var Q2 = {}, R2 = {}, S = {};
130229
+ var Q2 = {}, R = {}, S = {};
130303
130230
  function Ha(a2) {
130304
130231
  if (void 0 === a2)
130305
130232
  return "_unknown";
@@ -130344,8 +130271,8 @@ var blosc_codec = function() {
130344
130271
  });
130345
130272
  var e2 = Array(a2.length), g2 = [], k = 0;
130346
130273
  a2.forEach(function(h, l2) {
130347
- R2.hasOwnProperty(h) ? e2[l2] = R2[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
130348
- e2[l2] = R2[h];
130274
+ R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
130275
+ e2[l2] = R[h];
130349
130276
  ++k;
130350
130277
  k === g2.length && c(e2);
130351
130278
  }));
@@ -130358,12 +130285,12 @@ var blosc_codec = function() {
130358
130285
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
130359
130286
  var d = b.name;
130360
130287
  a2 || T('type "' + d + '" must have a positive integer typeid pointer');
130361
- if (R2.hasOwnProperty(a2)) {
130288
+ if (R.hasOwnProperty(a2)) {
130362
130289
  if (c.U)
130363
130290
  return;
130364
130291
  T("Cannot register type '" + d + "' twice");
130365
130292
  }
130366
- R2[a2] = b;
130293
+ R[a2] = b;
130367
130294
  delete S[a2];
130368
130295
  Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
130369
130296
  e2();
@@ -130476,7 +130403,7 @@ var blosc_codec = function() {
130476
130403
  }
130477
130404
  function eb(a2, b) {
130478
130405
  function c(g2) {
130479
- e2[g2] || R2[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
130406
+ e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
130480
130407
  }
130481
130408
  var d = [], e2 = {};
130482
130409
  b.forEach(c);
@@ -130764,7 +130691,7 @@ var blosc_codec = function() {
130764
130691
  }, n: Qa, x: function(a2) {
130765
130692
  4 < a2 && (V[a2].P += 1);
130766
130693
  }, C: function(a2, b) {
130767
- var c = R2[a2];
130694
+ var c = R[a2];
130768
130695
  void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
130769
130696
  a2 = c.readValueFromPointer(b);
130770
130697
  return Ra(a2);