@vitessce/image-utils 3.5.7 → 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.
- package/dist/{deflate-ff9d23eb.js → deflate-fa8eca5f.js} +1 -1
- package/dist/{index-e10282cc.js → index-15b29b74.js} +301 -457
- package/dist/index.js +1 -1
- package/dist/{jpeg-f6c603b6.js → jpeg-027ef15c.js} +1 -1
- package/dist/{lerc-3b57111e.js → lerc-20f1f9f7.js} +1 -1
- package/dist/{lzw-ea1e5043.js → lzw-c733cdd2.js} +1 -1
- package/dist/{packbits-77361957.js → packbits-1632422c.js} +1 -1
- package/dist/{raw-85ca8774.js → raw-19fc03ba.js} +1 -1
- package/dist/{webimage-78b941d9.js → webimage-5d4ef463.js} +1 -1
- package/package.json +5 -5
|
@@ -85,7 +85,7 @@ var reTrimStart = /^\s+/;
|
|
|
85
85
|
function baseTrim(string) {
|
|
86
86
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
87
87
|
}
|
|
88
|
-
function isObject$
|
|
88
|
+
function isObject$6(value) {
|
|
89
89
|
var type2 = typeof value;
|
|
90
90
|
return value != null && (type2 == "object" || type2 == "function");
|
|
91
91
|
}
|
|
@@ -101,9 +101,9 @@ function toNumber$1(value) {
|
|
|
101
101
|
if (isSymbol$1(value)) {
|
|
102
102
|
return NAN$1;
|
|
103
103
|
}
|
|
104
|
-
if (isObject$
|
|
104
|
+
if (isObject$6(value)) {
|
|
105
105
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
106
|
-
value = isObject$
|
|
106
|
+
value = isObject$6(other) ? other + "" : other;
|
|
107
107
|
}
|
|
108
108
|
if (typeof value != "string") {
|
|
109
109
|
return value === 0 ? value : +value;
|
|
@@ -125,8 +125,8 @@ function toFinite(value) {
|
|
|
125
125
|
return value === value ? value : 0;
|
|
126
126
|
}
|
|
127
127
|
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
128
|
-
function isFunction$
|
|
129
|
-
if (!isObject$
|
|
128
|
+
function isFunction$4(value) {
|
|
129
|
+
if (!isObject$6(value)) {
|
|
130
130
|
return false;
|
|
131
131
|
}
|
|
132
132
|
var tag2 = baseGetTag(value);
|
|
@@ -165,10 +165,10 @@ var reIsNative = RegExp(
|
|
|
165
165
|
"^" + funcToString.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
166
166
|
);
|
|
167
167
|
function baseIsNative(value) {
|
|
168
|
-
if (!isObject$
|
|
168
|
+
if (!isObject$6(value) || isMasked(value)) {
|
|
169
169
|
return false;
|
|
170
170
|
}
|
|
171
|
-
var pattern = isFunction$
|
|
171
|
+
var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor;
|
|
172
172
|
return pattern.test(toSource(value));
|
|
173
173
|
}
|
|
174
174
|
function getValue$1(object2, key) {
|
|
@@ -195,10 +195,10 @@ function isLength(value) {
|
|
|
195
195
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
196
196
|
}
|
|
197
197
|
function isArrayLike(value) {
|
|
198
|
-
return value != null && isLength(value.length) && !isFunction$
|
|
198
|
+
return value != null && isLength(value.length) && !isFunction$4(value);
|
|
199
199
|
}
|
|
200
200
|
function isIterateeCall(value, index2, object2) {
|
|
201
|
-
if (!isObject$
|
|
201
|
+
if (!isObject$6(object2)) {
|
|
202
202
|
return false;
|
|
203
203
|
}
|
|
204
204
|
var type2 = typeof index2;
|
|
@@ -4545,7 +4545,7 @@ var DEFAULT_CONFIG = {
|
|
|
4545
4545
|
// null = randomly seed
|
|
4546
4546
|
randomSeed: null
|
|
4547
4547
|
};
|
|
4548
|
-
function isNumber$
|
|
4548
|
+
function isNumber$2(x2) {
|
|
4549
4549
|
return typeof x2 === "number";
|
|
4550
4550
|
}
|
|
4551
4551
|
function isBigNumber(x2) {
|
|
@@ -4600,7 +4600,7 @@ function isResultSet(x2) {
|
|
|
4600
4600
|
function isHelp(x2) {
|
|
4601
4601
|
return x2 && x2.constructor.prototype.isHelp === true || false;
|
|
4602
4602
|
}
|
|
4603
|
-
function isFunction$
|
|
4603
|
+
function isFunction$3(x2) {
|
|
4604
4604
|
return typeof x2 === "function";
|
|
4605
4605
|
}
|
|
4606
4606
|
function isDate$1(x2) {
|
|
@@ -4609,13 +4609,13 @@ function isDate$1(x2) {
|
|
|
4609
4609
|
function isRegExp(x2) {
|
|
4610
4610
|
return x2 instanceof RegExp;
|
|
4611
4611
|
}
|
|
4612
|
-
function isObject$
|
|
4612
|
+
function isObject$5(x2) {
|
|
4613
4613
|
return !!(x2 && typeof x2 === "object" && x2.constructor === Object && !isComplex(x2) && !isFraction(x2));
|
|
4614
4614
|
}
|
|
4615
4615
|
function isNull(x2) {
|
|
4616
4616
|
return x2 === null;
|
|
4617
4617
|
}
|
|
4618
|
-
function isUndefined(x2) {
|
|
4618
|
+
function isUndefined$1(x2) {
|
|
4619
4619
|
return x2 === void 0;
|
|
4620
4620
|
}
|
|
4621
4621
|
function isAccessorNode(x2) {
|
|
@@ -5699,9 +5699,9 @@ function format$3(value, options) {
|
|
|
5699
5699
|
if (options.notation) {
|
|
5700
5700
|
notation = options.notation;
|
|
5701
5701
|
}
|
|
5702
|
-
if (isNumber$
|
|
5702
|
+
if (isNumber$2(options)) {
|
|
5703
5703
|
precision = options;
|
|
5704
|
-
} else if (isNumber$
|
|
5704
|
+
} else if (isNumber$2(options.precision)) {
|
|
5705
5705
|
precision = options.precision;
|
|
5706
5706
|
}
|
|
5707
5707
|
if (options.wordSize) {
|
|
@@ -5769,7 +5769,7 @@ function toEngineering$1(value, precision) {
|
|
|
5769
5769
|
var e2 = rounded.exponent;
|
|
5770
5770
|
var c = rounded.coefficients;
|
|
5771
5771
|
var newExp = e2 % 3 === 0 ? e2 : e2 < 0 ? e2 - 3 - e2 % 3 : e2 - e2 % 3;
|
|
5772
|
-
if (isNumber$
|
|
5772
|
+
if (isNumber$2(precision)) {
|
|
5773
5773
|
while (precision > c.length || e2 - newExp + 1 > c.length) {
|
|
5774
5774
|
c.push(0);
|
|
5775
5775
|
}
|
|
@@ -5786,7 +5786,7 @@ function toEngineering$1(value, precision) {
|
|
|
5786
5786
|
expDiff--;
|
|
5787
5787
|
}
|
|
5788
5788
|
var decimals = c.slice(decimalIdx).join("");
|
|
5789
|
-
var decimalVal = isNumber$
|
|
5789
|
+
var decimalVal = isNumber$2(precision) && decimals.length || decimals.match(/[1-9]/) ? "." + decimals : "";
|
|
5790
5790
|
var str = c.slice(0, decimalIdx).join("") + decimalVal + "e" + (e2 >= 0 ? "+" : "") + newExp.toString();
|
|
5791
5791
|
return rounded.sign + str;
|
|
5792
5792
|
}
|
|
@@ -6169,7 +6169,7 @@ function validate$1(array, size2) {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
}
|
|
6171
6171
|
function validateIndex(index2, length2) {
|
|
6172
|
-
if (!isNumber$
|
|
6172
|
+
if (!isNumber$2(index2) || !isInteger(index2)) {
|
|
6173
6173
|
throw new TypeError("Index must be an integer (value: " + index2 + ")");
|
|
6174
6174
|
}
|
|
6175
6175
|
if (index2 < 0 || typeof length2 === "number" && index2 >= length2) {
|
|
@@ -6184,7 +6184,7 @@ function resize(array, size2, defaultValue2) {
|
|
|
6184
6184
|
throw new Error("Resizing to scalar is not supported");
|
|
6185
6185
|
}
|
|
6186
6186
|
size2.forEach(function(value) {
|
|
6187
|
-
if (!isNumber$
|
|
6187
|
+
if (!isNumber$2(value) || !isInteger(value) || value < 0) {
|
|
6188
6188
|
throw new TypeError("Invalid size, must contain positive integers (size: " + format$1(size2) + ")");
|
|
6189
6189
|
}
|
|
6190
6190
|
});
|
|
@@ -6480,7 +6480,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6480
6480
|
typed2.types = [
|
|
6481
6481
|
{
|
|
6482
6482
|
name: "number",
|
|
6483
|
-
test: isNumber$
|
|
6483
|
+
test: isNumber$2
|
|
6484
6484
|
},
|
|
6485
6485
|
{
|
|
6486
6486
|
name: "Complex",
|
|
@@ -6544,7 +6544,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6544
6544
|
},
|
|
6545
6545
|
{
|
|
6546
6546
|
name: "function",
|
|
6547
|
-
test: isFunction$
|
|
6547
|
+
test: isFunction$3
|
|
6548
6548
|
},
|
|
6549
6549
|
{
|
|
6550
6550
|
name: "Date",
|
|
@@ -6560,7 +6560,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6560
6560
|
},
|
|
6561
6561
|
{
|
|
6562
6562
|
name: "undefined",
|
|
6563
|
-
test: isUndefined
|
|
6563
|
+
test: isUndefined$1
|
|
6564
6564
|
},
|
|
6565
6565
|
{
|
|
6566
6566
|
name: "AccessorNode",
|
|
@@ -6628,7 +6628,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6628
6628
|
},
|
|
6629
6629
|
{
|
|
6630
6630
|
name: "Object",
|
|
6631
|
-
test: isObject$
|
|
6631
|
+
test: isObject$5
|
|
6632
6632
|
}
|
|
6633
6633
|
// order 'Object' last, it matches on other classes too
|
|
6634
6634
|
];
|
|
@@ -10200,7 +10200,7 @@ var createComplexClass = /* @__PURE__ */ factory(name$U, dependencies$N, () => {
|
|
|
10200
10200
|
var re = this.re;
|
|
10201
10201
|
var strRe = format$3(this.re, options);
|
|
10202
10202
|
var strIm = format$3(this.im, options);
|
|
10203
|
-
var precision = isNumber$
|
|
10203
|
+
var precision = isNumber$2(options) ? options : options ? options.precision : null;
|
|
10204
10204
|
if (precision !== null) {
|
|
10205
10205
|
var epsilon3 = Math.pow(10, -precision);
|
|
10206
10206
|
if (Math.abs(re / im) < epsilon3) {
|
|
@@ -10250,11 +10250,11 @@ var createComplexClass = /* @__PURE__ */ factory(name$U, dependencies$N, () => {
|
|
|
10250
10250
|
case 2: {
|
|
10251
10251
|
var r2 = arguments[0];
|
|
10252
10252
|
var phi = arguments[1];
|
|
10253
|
-
if (isNumber$
|
|
10253
|
+
if (isNumber$2(r2)) {
|
|
10254
10254
|
if (isUnit(phi) && phi.hasBase("ANGLE")) {
|
|
10255
10255
|
phi = phi.toNumber("rad");
|
|
10256
10256
|
}
|
|
10257
|
-
if (isNumber$
|
|
10257
|
+
if (isNumber$2(phi)) {
|
|
10258
10258
|
return new Complex$1({
|
|
10259
10259
|
r: r2,
|
|
10260
10260
|
phi
|
|
@@ -11387,7 +11387,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11387
11387
|
if (isBigNumber(k)) {
|
|
11388
11388
|
k = k.toNumber();
|
|
11389
11389
|
}
|
|
11390
|
-
if (!isNumber$
|
|
11390
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
11391
11391
|
throw new TypeError("The parameter k must be an integer number");
|
|
11392
11392
|
}
|
|
11393
11393
|
} else {
|
|
@@ -11419,7 +11419,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11419
11419
|
if (isBigNumber(s2)) {
|
|
11420
11420
|
s2 = s2.toNumber();
|
|
11421
11421
|
}
|
|
11422
|
-
if (!isNumber$
|
|
11422
|
+
if (!isNumber$2(s2) || !isInteger(s2) || s2 < 1) {
|
|
11423
11423
|
throw new Error("Size values must be positive integers");
|
|
11424
11424
|
}
|
|
11425
11425
|
return s2;
|
|
@@ -11428,7 +11428,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11428
11428
|
if (isBigNumber(k)) {
|
|
11429
11429
|
k = k.toNumber();
|
|
11430
11430
|
}
|
|
11431
|
-
if (!isNumber$
|
|
11431
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
11432
11432
|
throw new TypeError("The parameter k must be an integer number");
|
|
11433
11433
|
}
|
|
11434
11434
|
} else {
|
|
@@ -11479,7 +11479,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11479
11479
|
return new DenseMatrix2(json);
|
|
11480
11480
|
};
|
|
11481
11481
|
DenseMatrix2.prototype.swapRows = function(i2, j) {
|
|
11482
|
-
if (!isNumber$
|
|
11482
|
+
if (!isNumber$2(i2) || !isInteger(i2) || !isNumber$2(j) || !isInteger(j)) {
|
|
11483
11483
|
throw new Error("Row index must be positive integers");
|
|
11484
11484
|
}
|
|
11485
11485
|
if (this._size.length !== 2) {
|
|
@@ -11965,7 +11965,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
11965
11965
|
throw new Error("Only two dimensions matrix are supported");
|
|
11966
11966
|
}
|
|
11967
11967
|
sizeArray.forEach(function(value) {
|
|
11968
|
-
if (!isNumber$
|
|
11968
|
+
if (!isNumber$2(value) || !isInteger(value) || value < 0) {
|
|
11969
11969
|
throw new TypeError("Invalid size, must contain positive integers (size: " + format$1(sizeArray) + ")");
|
|
11970
11970
|
}
|
|
11971
11971
|
});
|
|
@@ -12046,7 +12046,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12046
12046
|
throw new Error("Sparse matrices can only be reshaped in two dimensions");
|
|
12047
12047
|
}
|
|
12048
12048
|
sizes.forEach(function(value) {
|
|
12049
|
-
if (!isNumber$
|
|
12049
|
+
if (!isNumber$2(value) || !isInteger(value) || value <= -2 || value === 0) {
|
|
12050
12050
|
throw new TypeError("Invalid size, must contain positive integers or -1 (size: " + format$1(sizes) + ")");
|
|
12051
12051
|
}
|
|
12052
12052
|
});
|
|
@@ -12269,7 +12269,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12269
12269
|
if (isBigNumber(k)) {
|
|
12270
12270
|
k = k.toNumber();
|
|
12271
12271
|
}
|
|
12272
|
-
if (!isNumber$
|
|
12272
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
12273
12273
|
throw new TypeError("The parameter k must be an integer number");
|
|
12274
12274
|
}
|
|
12275
12275
|
} else {
|
|
@@ -12318,7 +12318,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12318
12318
|
if (isBigNumber(s2)) {
|
|
12319
12319
|
s2 = s2.toNumber();
|
|
12320
12320
|
}
|
|
12321
|
-
if (!isNumber$
|
|
12321
|
+
if (!isNumber$2(s2) || !isInteger(s2) || s2 < 1) {
|
|
12322
12322
|
throw new Error("Size values must be positive integers");
|
|
12323
12323
|
}
|
|
12324
12324
|
return s2;
|
|
@@ -12327,7 +12327,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12327
12327
|
if (isBigNumber(k)) {
|
|
12328
12328
|
k = k.toNumber();
|
|
12329
12329
|
}
|
|
12330
|
-
if (!isNumber$
|
|
12330
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
12331
12331
|
throw new TypeError("The parameter k must be an integer number");
|
|
12332
12332
|
}
|
|
12333
12333
|
} else {
|
|
@@ -12388,7 +12388,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12388
12388
|
});
|
|
12389
12389
|
};
|
|
12390
12390
|
SparseMatrix2.prototype.swapRows = function(i2, j) {
|
|
12391
|
-
if (!isNumber$
|
|
12391
|
+
if (!isNumber$2(i2) || !isInteger(i2) || !isNumber$2(j) || !isInteger(j)) {
|
|
12392
12392
|
throw new Error("Row index must be positive integers");
|
|
12393
12393
|
}
|
|
12394
12394
|
if (this._size.length !== 2) {
|
|
@@ -21133,16 +21133,16 @@ function dirname(url) {
|
|
|
21133
21133
|
return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
|
|
21134
21134
|
}
|
|
21135
21135
|
const isBoolean = (x2) => typeof x2 === "boolean";
|
|
21136
|
-
const isFunction$
|
|
21137
|
-
const isObject$
|
|
21138
|
-
const isPureObject = (x2) => isObject$
|
|
21136
|
+
const isFunction$2 = (x2) => typeof x2 === "function";
|
|
21137
|
+
const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
|
|
21138
|
+
const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
|
|
21139
21139
|
const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
|
|
21140
21140
|
const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
|
|
21141
21141
|
const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
|
|
21142
21142
|
const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
|
|
21143
21143
|
const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
|
|
21144
|
-
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$
|
|
21145
|
-
const isReadableNodeStream = (x2) => isObject$
|
|
21144
|
+
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
|
|
21145
|
+
const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
|
|
21146
21146
|
const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
|
|
21147
21147
|
const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
|
|
21148
21148
|
const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
|
|
@@ -21942,7 +21942,7 @@ function getFetchFunction(options, context) {
|
|
|
21942
21942
|
if (typeof fetchOptions.fetch === "function") {
|
|
21943
21943
|
return fetchOptions.fetch;
|
|
21944
21944
|
}
|
|
21945
|
-
if (isObject$
|
|
21945
|
+
if (isObject$4(fetchOptions.fetch)) {
|
|
21946
21946
|
return (url) => fetchFile(url, fetchOptions);
|
|
21947
21947
|
}
|
|
21948
21948
|
if (context !== null && context !== void 0 && context.fetch) {
|
|
@@ -21963,7 +21963,7 @@ function validateOptionsObject(options, id, defaultOptions, deprecatedOptions, l
|
|
|
21963
21963
|
const loaderName = id || "Top level";
|
|
21964
21964
|
const prefix = id ? "".concat(id, ".") : "";
|
|
21965
21965
|
for (const key in options) {
|
|
21966
|
-
const isSubOptions = !id && isObject$
|
|
21966
|
+
const isSubOptions = !id && isObject$4(options[key]);
|
|
21967
21967
|
const isBaseUriOption = key === "baseUri" && !id;
|
|
21968
21968
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
21969
21969
|
if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
@@ -37330,9 +37330,9 @@ class Controller {
|
|
|
37330
37330
|
updateTransition() {
|
|
37331
37331
|
this.transitionManager.updateTransition();
|
|
37332
37332
|
}
|
|
37333
|
-
toggleEvents(
|
|
37333
|
+
toggleEvents(eventNames, enabled) {
|
|
37334
37334
|
if (this.eventManager) {
|
|
37335
|
-
|
|
37335
|
+
eventNames.forEach((eventName) => {
|
|
37336
37336
|
if (this._events[eventName] !== enabled) {
|
|
37337
37337
|
this._events[eventName] = enabled;
|
|
37338
37338
|
if (enabled) {
|
|
@@ -40783,18 +40783,18 @@ var hammer$1 = { exports: {} };
|
|
|
40783
40783
|
emit: function(input) {
|
|
40784
40784
|
var self2 = this;
|
|
40785
40785
|
var state = this.state;
|
|
40786
|
-
function
|
|
40786
|
+
function emit(event) {
|
|
40787
40787
|
self2.manager.emit(event, input);
|
|
40788
40788
|
}
|
|
40789
40789
|
if (state < STATE_ENDED) {
|
|
40790
|
-
|
|
40790
|
+
emit(self2.options.event + stateStr(state));
|
|
40791
40791
|
}
|
|
40792
|
-
|
|
40792
|
+
emit(self2.options.event);
|
|
40793
40793
|
if (input.additionalEvent) {
|
|
40794
|
-
|
|
40794
|
+
emit(input.additionalEvent);
|
|
40795
40795
|
}
|
|
40796
40796
|
if (state >= STATE_ENDED) {
|
|
40797
|
-
|
|
40797
|
+
emit(self2.options.event + stateStr(state));
|
|
40798
40798
|
}
|
|
40799
40799
|
},
|
|
40800
40800
|
/**
|
|
@@ -42154,7 +42154,7 @@ class EventRegistrar {
|
|
|
42154
42154
|
isEmpty() {
|
|
42155
42155
|
return !this._active;
|
|
42156
42156
|
}
|
|
42157
|
-
add(type2, handler, options,
|
|
42157
|
+
add(type2, handler, options, once = false, passive = false) {
|
|
42158
42158
|
const { handlers, handlersByElement } = this;
|
|
42159
42159
|
let opts = DEFAULT_OPTIONS$2;
|
|
42160
42160
|
if (typeof options === "string" || options && options.addEventListener) {
|
|
@@ -42173,7 +42173,7 @@ class EventRegistrar {
|
|
|
42173
42173
|
srcElement: opts.srcElement,
|
|
42174
42174
|
priority: opts.priority
|
|
42175
42175
|
};
|
|
42176
|
-
if (
|
|
42176
|
+
if (once) {
|
|
42177
42177
|
entry.once = true;
|
|
42178
42178
|
}
|
|
42179
42179
|
if (passive) {
|
|
@@ -42221,7 +42221,7 @@ class EventRegistrar {
|
|
|
42221
42221
|
};
|
|
42222
42222
|
const entriesToRemove = [];
|
|
42223
42223
|
for (let i2 = 0; i2 < entries.length; i2++) {
|
|
42224
|
-
const { type: type2, handler, once
|
|
42224
|
+
const { type: type2, handler, once } = entries[i2];
|
|
42225
42225
|
handler({
|
|
42226
42226
|
...event,
|
|
42227
42227
|
// @ts-ignore
|
|
@@ -42229,7 +42229,7 @@ class EventRegistrar {
|
|
|
42229
42229
|
stopPropagation,
|
|
42230
42230
|
stopImmediatePropagation
|
|
42231
42231
|
});
|
|
42232
|
-
if (
|
|
42232
|
+
if (once) {
|
|
42233
42233
|
entriesToRemove.push(entries[i2]);
|
|
42234
42234
|
}
|
|
42235
42235
|
if (immediatePropagationStopped) {
|
|
@@ -42410,11 +42410,11 @@ class EventManager {
|
|
|
42410
42410
|
/**
|
|
42411
42411
|
* Process the event registration for a single event + handler.
|
|
42412
42412
|
*/
|
|
42413
|
-
_addEventHandler(event, handler, opts,
|
|
42413
|
+
_addEventHandler(event, handler, opts, once, passive) {
|
|
42414
42414
|
if (typeof event !== "string") {
|
|
42415
42415
|
opts = handler;
|
|
42416
42416
|
for (const eventName in event) {
|
|
42417
|
-
this._addEventHandler(eventName, event[eventName], opts,
|
|
42417
|
+
this._addEventHandler(eventName, event[eventName], opts, once, passive);
|
|
42418
42418
|
}
|
|
42419
42419
|
return;
|
|
42420
42420
|
}
|
|
@@ -42429,7 +42429,7 @@ class EventManager {
|
|
|
42429
42429
|
manager.on(eventAlias, eventRegistrar.handleEvent);
|
|
42430
42430
|
}
|
|
42431
42431
|
}
|
|
42432
|
-
eventRegistrar.add(event, handler, opts,
|
|
42432
|
+
eventRegistrar.add(event, handler, opts, once, passive);
|
|
42433
42433
|
if (!eventRegistrar.isEmpty()) {
|
|
42434
42434
|
this._toggleRecognizer(eventRegistrar.recognizerName, true);
|
|
42435
42435
|
}
|
|
@@ -45150,7 +45150,7 @@ function getPropTypes(props) {
|
|
|
45150
45150
|
const ERR_NOT_OBJECT = "count(): argument not an object";
|
|
45151
45151
|
const ERR_NOT_CONTAINER = "count(): argument not a container";
|
|
45152
45152
|
function count(container) {
|
|
45153
|
-
if (!isObject$
|
|
45153
|
+
if (!isObject$3(container)) {
|
|
45154
45154
|
throw new Error(ERR_NOT_OBJECT);
|
|
45155
45155
|
}
|
|
45156
45156
|
if (typeof container.count === "function") {
|
|
@@ -45170,7 +45170,7 @@ function count(container) {
|
|
|
45170
45170
|
function isPlainObject(value) {
|
|
45171
45171
|
return value !== null && typeof value === "object" && value.constructor === Object;
|
|
45172
45172
|
}
|
|
45173
|
-
function isObject$
|
|
45173
|
+
function isObject$3(value) {
|
|
45174
45174
|
return value !== null && typeof value === "object";
|
|
45175
45175
|
}
|
|
45176
45176
|
function mergeShaders(target, source) {
|
|
@@ -81851,7 +81851,7 @@ function point(coordinates2, properties, options) {
|
|
|
81851
81851
|
if (coordinates2.length < 2) {
|
|
81852
81852
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
81853
81853
|
}
|
|
81854
|
-
if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
|
|
81854
|
+
if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
|
|
81855
81855
|
throw new Error("coordinates must contain numbers");
|
|
81856
81856
|
}
|
|
81857
81857
|
var geom = {
|
|
@@ -82052,10 +82052,10 @@ function convertArea(area2, originalUnit, finalUnit) {
|
|
|
82052
82052
|
}
|
|
82053
82053
|
return area2 / startFactor * finalFactor;
|
|
82054
82054
|
}
|
|
82055
|
-
function isNumber(num) {
|
|
82055
|
+
function isNumber$1(num) {
|
|
82056
82056
|
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
82057
82057
|
}
|
|
82058
|
-
function isObject$
|
|
82058
|
+
function isObject$2(input) {
|
|
82059
82059
|
return !!input && input.constructor === Object;
|
|
82060
82060
|
}
|
|
82061
82061
|
function validateBBox(bbox2) {
|
|
@@ -82069,7 +82069,7 @@ function validateBBox(bbox2) {
|
|
|
82069
82069
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
82070
82070
|
}
|
|
82071
82071
|
bbox2.forEach(function(num) {
|
|
82072
|
-
if (!isNumber(num)) {
|
|
82072
|
+
if (!isNumber$1(num)) {
|
|
82073
82073
|
throw new Error("bbox must only contain numbers");
|
|
82074
82074
|
}
|
|
82075
82075
|
});
|
|
@@ -82095,8 +82095,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
82095
82095
|
featureCollection: featureCollection$1,
|
|
82096
82096
|
geometry,
|
|
82097
82097
|
geometryCollection,
|
|
82098
|
-
isNumber,
|
|
82099
|
-
isObject: isObject$
|
|
82098
|
+
isNumber: isNumber$1,
|
|
82099
|
+
isObject: isObject$2,
|
|
82100
82100
|
lengthToDegrees,
|
|
82101
82101
|
lengthToRadians,
|
|
82102
82102
|
lineString,
|
|
@@ -82538,7 +82538,7 @@ function lineReduce$1(geojson, callback, initialValue) {
|
|
|
82538
82538
|
}
|
|
82539
82539
|
function findSegment$1(geojson, options) {
|
|
82540
82540
|
options = options || {};
|
|
82541
|
-
if (!isObject$
|
|
82541
|
+
if (!isObject$2(options))
|
|
82542
82542
|
throw new Error("options is invalid");
|
|
82543
82543
|
var featureIndex = options.featureIndex || 0;
|
|
82544
82544
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -82630,7 +82630,7 @@ function findSegment$1(geojson, options) {
|
|
|
82630
82630
|
}
|
|
82631
82631
|
function findPoint$1(geojson, options) {
|
|
82632
82632
|
options = options || {};
|
|
82633
|
-
if (!isObject$
|
|
82633
|
+
if (!isObject$2(options))
|
|
82634
82634
|
throw new Error("options is invalid");
|
|
82635
82635
|
var featureIndex = options.featureIndex || 0;
|
|
82636
82636
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -82774,7 +82774,7 @@ function getCoords$1(coords) {
|
|
|
82774
82774
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
82775
82775
|
}
|
|
82776
82776
|
function containsNumber$1(coordinates2) {
|
|
82777
|
-
if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
|
|
82777
|
+
if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
|
|
82778
82778
|
return true;
|
|
82779
82779
|
}
|
|
82780
82780
|
if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
|
|
@@ -85830,7 +85830,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
85830
85830
|
var toStr$1 = Object.prototype.toString;
|
|
85831
85831
|
var concat = Array.prototype.concat;
|
|
85832
85832
|
var defineDataProperty2 = defineDataProperty$1;
|
|
85833
|
-
var isFunction = function(fn) {
|
|
85833
|
+
var isFunction$1 = function(fn) {
|
|
85834
85834
|
return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
|
|
85835
85835
|
};
|
|
85836
85836
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -85840,7 +85840,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
85840
85840
|
if (object2[name2] === value) {
|
|
85841
85841
|
return;
|
|
85842
85842
|
}
|
|
85843
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
85843
|
+
} else if (!isFunction$1(predicate) || !predicate()) {
|
|
85844
85844
|
return;
|
|
85845
85845
|
}
|
|
85846
85846
|
}
|
|
@@ -86224,7 +86224,7 @@ function lineOverlap(line1, line2, options) {
|
|
|
86224
86224
|
options = {};
|
|
86225
86225
|
}
|
|
86226
86226
|
options = options || {};
|
|
86227
|
-
if (!isObject$
|
|
86227
|
+
if (!isObject$2(options))
|
|
86228
86228
|
throw new Error("options is invalid");
|
|
86229
86229
|
var tolerance = options.tolerance || 0;
|
|
86230
86230
|
var features = [];
|
|
@@ -86784,19 +86784,19 @@ var jsts_min = { exports: {} };
|
|
|
86784
86784
|
}, Object.defineProperties(w2, O);
|
|
86785
86785
|
var T = function(t2, e3) {
|
|
86786
86786
|
return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
|
|
86787
|
-
},
|
|
86787
|
+
}, R = function() {
|
|
86788
86788
|
}, P2 = { LOG_10: { configurable: true } };
|
|
86789
|
-
|
|
86789
|
+
R.prototype.interfaces_ = function() {
|
|
86790
86790
|
return [];
|
|
86791
|
-
},
|
|
86792
|
-
return
|
|
86793
|
-
},
|
|
86791
|
+
}, R.prototype.getClass = function() {
|
|
86792
|
+
return R;
|
|
86793
|
+
}, R.log10 = function(t2) {
|
|
86794
86794
|
var e3 = Math.log(t2);
|
|
86795
|
-
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 /
|
|
86796
|
-
},
|
|
86795
|
+
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
|
|
86796
|
+
}, R.min = function(t2, e3, n4, i3) {
|
|
86797
86797
|
var r3 = t2;
|
|
86798
86798
|
return e3 < r3 && (r3 = e3), n4 < r3 && (r3 = n4), i3 < r3 && (r3 = i3), r3;
|
|
86799
|
-
},
|
|
86799
|
+
}, R.clamp = function() {
|
|
86800
86800
|
if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
|
|
86801
86801
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2];
|
|
86802
86802
|
return t2 < e3 ? e3 : t2 > n4 ? n4 : t2;
|
|
@@ -86805,9 +86805,9 @@ var jsts_min = { exports: {} };
|
|
|
86805
86805
|
var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
|
|
86806
86806
|
return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
|
|
86807
86807
|
}
|
|
86808
|
-
},
|
|
86808
|
+
}, R.wrap = function(t2, e3) {
|
|
86809
86809
|
return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
|
|
86810
|
-
},
|
|
86810
|
+
}, R.max = function() {
|
|
86811
86811
|
if (3 === arguments.length) {
|
|
86812
86812
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2], i3 = t2;
|
|
86813
86813
|
return e3 > i3 && (i3 = e3), n4 > i3 && (i3 = n4), i3;
|
|
@@ -86816,11 +86816,11 @@ var jsts_min = { exports: {} };
|
|
|
86816
86816
|
var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
|
|
86817
86817
|
return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
|
|
86818
86818
|
}
|
|
86819
|
-
},
|
|
86819
|
+
}, R.average = function(t2, e3) {
|
|
86820
86820
|
return (t2 + e3) / 2;
|
|
86821
86821
|
}, P2.LOG_10.get = function() {
|
|
86822
86822
|
return Math.log(10);
|
|
86823
|
-
}, Object.defineProperties(
|
|
86823
|
+
}, Object.defineProperties(R, P2);
|
|
86824
86824
|
var D2 = function(t2) {
|
|
86825
86825
|
this.str = t2;
|
|
86826
86826
|
};
|
|
@@ -87975,7 +87975,7 @@ var jsts_min = { exports: {} };
|
|
|
87975
87975
|
}
|
|
87976
87976
|
} else
|
|
87977
87977
|
r3 = true;
|
|
87978
|
-
return r3 ?
|
|
87978
|
+
return r3 ? R.min(at.distancePointLine(t2, n4, i3), at.distancePointLine(e3, n4, i3), at.distancePointLine(n4, t2, e3), at.distancePointLine(i3, t2, e3)) : 0;
|
|
87979
87979
|
}, at.isPointInRing = function(t2, e3) {
|
|
87980
87980
|
return at.locatePointInRing(t2, e3) !== w2.EXTERIOR;
|
|
87981
87981
|
}, at.computeLength = function(t2) {
|
|
@@ -88565,8 +88565,8 @@ var jsts_min = { exports: {} };
|
|
|
88565
88565
|
(null === e3 || e3.compareTo(t2[n4]) > 0) && (e3 = t2[n4]);
|
|
88566
88566
|
return e3;
|
|
88567
88567
|
}, Lt.extract = function(t2, e3, n4) {
|
|
88568
|
-
e3 =
|
|
88569
|
-
var i3 = (n4 =
|
|
88568
|
+
e3 = R.clamp(e3, 0, t2.length);
|
|
88569
|
+
var i3 = (n4 = R.clamp(n4, -1, t2.length)) - e3 + 1;
|
|
88570
88570
|
n4 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n4 < e3 && (i3 = 0);
|
|
88571
88571
|
var r3 = new Array(i3).fill(null);
|
|
88572
88572
|
if (0 === i3)
|
|
@@ -94311,7 +94311,7 @@ var jsts_min = { exports: {} };
|
|
|
94311
94311
|
return f3.getResultGeometry(c2);
|
|
94312
94312
|
}
|
|
94313
94313
|
}, di.precisionScaleFactor = function(t2, e3, n4) {
|
|
94314
|
-
var i3 = t2.getEnvelopeInternal(), r3 =
|
|
94314
|
+
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 = n4 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
|
|
94315
94315
|
return Math.pow(10, o3);
|
|
94316
94316
|
}, yi.CAP_ROUND.get = function() {
|
|
94317
94317
|
return Cn.CAP_ROUND;
|
|
@@ -101702,372 +101702,216 @@ var layerMouseEvent = {};
|
|
|
101702
101702
|
exports2["default"] = LayerMouseEvent;
|
|
101703
101703
|
})(layerMouseEvent);
|
|
101704
101704
|
var nebulaLayer = {};
|
|
101705
|
-
var events = { exports: {} };
|
|
101706
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
101707
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
101708
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
101709
|
-
};
|
|
101710
|
-
var ReflectOwnKeys;
|
|
101711
|
-
if (R && typeof R.ownKeys === "function") {
|
|
101712
|
-
ReflectOwnKeys = R.ownKeys;
|
|
101713
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
101714
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
101715
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
101716
|
-
};
|
|
101717
|
-
} else {
|
|
101718
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
101719
|
-
return Object.getOwnPropertyNames(target);
|
|
101720
|
-
};
|
|
101721
|
-
}
|
|
101722
|
-
function ProcessEmitWarning(warning) {
|
|
101723
|
-
if (console && console.warn)
|
|
101724
|
-
console.warn(warning);
|
|
101725
|
-
}
|
|
101726
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
101727
|
-
return value !== value;
|
|
101728
|
-
};
|
|
101729
101705
|
function EventEmitter() {
|
|
101730
|
-
|
|
101706
|
+
this._events = this._events || {};
|
|
101707
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
101731
101708
|
}
|
|
101732
|
-
events
|
|
101733
|
-
events.exports.once = once2;
|
|
101709
|
+
var events = EventEmitter;
|
|
101734
101710
|
EventEmitter.EventEmitter = EventEmitter;
|
|
101735
101711
|
EventEmitter.prototype._events = void 0;
|
|
101736
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
101737
101712
|
EventEmitter.prototype._maxListeners = void 0;
|
|
101738
|
-
|
|
101739
|
-
function
|
|
101740
|
-
if (
|
|
101741
|
-
throw
|
|
101742
|
-
}
|
|
101743
|
-
}
|
|
101744
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
101745
|
-
enumerable: true,
|
|
101746
|
-
get: function() {
|
|
101747
|
-
return defaultMaxListeners;
|
|
101748
|
-
},
|
|
101749
|
-
set: function(arg) {
|
|
101750
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
101751
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
101752
|
-
}
|
|
101753
|
-
defaultMaxListeners = arg;
|
|
101754
|
-
}
|
|
101755
|
-
});
|
|
101756
|
-
EventEmitter.init = function() {
|
|
101757
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
101758
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
101759
|
-
this._eventsCount = 0;
|
|
101760
|
-
}
|
|
101761
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
101762
|
-
};
|
|
101763
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n3) {
|
|
101764
|
-
if (typeof n3 !== "number" || n3 < 0 || NumberIsNaN(n3)) {
|
|
101765
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n3 + ".");
|
|
101766
|
-
}
|
|
101713
|
+
EventEmitter.defaultMaxListeners = 10;
|
|
101714
|
+
EventEmitter.prototype.setMaxListeners = function(n3) {
|
|
101715
|
+
if (!isNumber(n3) || n3 < 0 || isNaN(n3))
|
|
101716
|
+
throw TypeError("n must be a positive number");
|
|
101767
101717
|
this._maxListeners = n3;
|
|
101768
101718
|
return this;
|
|
101769
101719
|
};
|
|
101770
|
-
function
|
|
101771
|
-
|
|
101772
|
-
|
|
101773
|
-
|
|
101774
|
-
|
|
101775
|
-
|
|
101776
|
-
|
|
101777
|
-
|
|
101778
|
-
|
|
101779
|
-
|
|
101780
|
-
|
|
101781
|
-
|
|
101782
|
-
|
|
101783
|
-
|
|
101784
|
-
|
|
101785
|
-
|
|
101786
|
-
|
|
101787
|
-
|
|
101788
|
-
if (doError) {
|
|
101789
|
-
var er;
|
|
101790
|
-
if (args.length > 0)
|
|
101791
|
-
er = args[0];
|
|
101792
|
-
if (er instanceof Error) {
|
|
101793
|
-
throw er;
|
|
101794
|
-
}
|
|
101795
|
-
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
101796
|
-
err2.context = er;
|
|
101797
|
-
throw err2;
|
|
101798
|
-
}
|
|
101799
|
-
var handler = events2[type2];
|
|
101800
|
-
if (handler === void 0)
|
|
101720
|
+
EventEmitter.prototype.emit = function(type2) {
|
|
101721
|
+
var er, handler, len2, args, i2, listeners;
|
|
101722
|
+
if (!this._events)
|
|
101723
|
+
this._events = {};
|
|
101724
|
+
if (type2 === "error") {
|
|
101725
|
+
if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
|
|
101726
|
+
er = arguments[1];
|
|
101727
|
+
if (er instanceof Error) {
|
|
101728
|
+
throw er;
|
|
101729
|
+
} else {
|
|
101730
|
+
var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
|
|
101731
|
+
err2.context = er;
|
|
101732
|
+
throw err2;
|
|
101733
|
+
}
|
|
101734
|
+
}
|
|
101735
|
+
}
|
|
101736
|
+
handler = this._events[type2];
|
|
101737
|
+
if (isUndefined(handler))
|
|
101801
101738
|
return false;
|
|
101802
|
-
if (
|
|
101803
|
-
|
|
101804
|
-
|
|
101805
|
-
|
|
101806
|
-
|
|
101807
|
-
|
|
101808
|
-
|
|
101739
|
+
if (isFunction(handler)) {
|
|
101740
|
+
switch (arguments.length) {
|
|
101741
|
+
case 1:
|
|
101742
|
+
handler.call(this);
|
|
101743
|
+
break;
|
|
101744
|
+
case 2:
|
|
101745
|
+
handler.call(this, arguments[1]);
|
|
101746
|
+
break;
|
|
101747
|
+
case 3:
|
|
101748
|
+
handler.call(this, arguments[1], arguments[2]);
|
|
101749
|
+
break;
|
|
101750
|
+
default:
|
|
101751
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
101752
|
+
handler.apply(this, args);
|
|
101753
|
+
}
|
|
101754
|
+
} else if (isObject$1(handler)) {
|
|
101755
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
101756
|
+
listeners = handler.slice();
|
|
101757
|
+
len2 = listeners.length;
|
|
101758
|
+
for (i2 = 0; i2 < len2; i2++)
|
|
101759
|
+
listeners[i2].apply(this, args);
|
|
101809
101760
|
}
|
|
101810
101761
|
return true;
|
|
101811
101762
|
};
|
|
101812
|
-
function
|
|
101763
|
+
EventEmitter.prototype.addListener = function(type2, listener) {
|
|
101813
101764
|
var m;
|
|
101814
|
-
|
|
101815
|
-
|
|
101816
|
-
|
|
101817
|
-
|
|
101818
|
-
if (
|
|
101819
|
-
|
|
101820
|
-
|
|
101821
|
-
|
|
101822
|
-
|
|
101823
|
-
|
|
101824
|
-
|
|
101825
|
-
|
|
101826
|
-
|
|
101827
|
-
|
|
101828
|
-
|
|
101829
|
-
|
|
101830
|
-
|
|
101831
|
-
|
|
101832
|
-
|
|
101833
|
-
existing = events2[type2] = listener;
|
|
101834
|
-
++target._eventsCount;
|
|
101835
|
-
} else {
|
|
101836
|
-
if (typeof existing === "function") {
|
|
101837
|
-
existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
|
|
101838
|
-
} else if (prepend) {
|
|
101839
|
-
existing.unshift(listener);
|
|
101765
|
+
if (!isFunction(listener))
|
|
101766
|
+
throw TypeError("listener must be a function");
|
|
101767
|
+
if (!this._events)
|
|
101768
|
+
this._events = {};
|
|
101769
|
+
if (this._events.newListener)
|
|
101770
|
+
this.emit(
|
|
101771
|
+
"newListener",
|
|
101772
|
+
type2,
|
|
101773
|
+
isFunction(listener.listener) ? listener.listener : listener
|
|
101774
|
+
);
|
|
101775
|
+
if (!this._events[type2])
|
|
101776
|
+
this._events[type2] = listener;
|
|
101777
|
+
else if (isObject$1(this._events[type2]))
|
|
101778
|
+
this._events[type2].push(listener);
|
|
101779
|
+
else
|
|
101780
|
+
this._events[type2] = [this._events[type2], listener];
|
|
101781
|
+
if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
|
|
101782
|
+
if (!isUndefined(this._maxListeners)) {
|
|
101783
|
+
m = this._maxListeners;
|
|
101840
101784
|
} else {
|
|
101841
|
-
|
|
101785
|
+
m = EventEmitter.defaultMaxListeners;
|
|
101842
101786
|
}
|
|
101843
|
-
m
|
|
101844
|
-
|
|
101845
|
-
|
|
101846
|
-
|
|
101847
|
-
|
|
101848
|
-
|
|
101849
|
-
|
|
101850
|
-
|
|
101851
|
-
|
|
101787
|
+
if (m && m > 0 && this._events[type2].length > m) {
|
|
101788
|
+
this._events[type2].warned = true;
|
|
101789
|
+
console.error(
|
|
101790
|
+
"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
101791
|
+
this._events[type2].length
|
|
101792
|
+
);
|
|
101793
|
+
if (typeof console.trace === "function") {
|
|
101794
|
+
console.trace();
|
|
101795
|
+
}
|
|
101852
101796
|
}
|
|
101853
101797
|
}
|
|
101854
|
-
return target;
|
|
101855
|
-
}
|
|
101856
|
-
EventEmitter.prototype.addListener = function addListener(type2, listener) {
|
|
101857
|
-
return _addListener(this, type2, listener, false);
|
|
101858
|
-
};
|
|
101859
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
101860
|
-
EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
|
|
101861
|
-
return _addListener(this, type2, listener, true);
|
|
101862
|
-
};
|
|
101863
|
-
function onceWrapper() {
|
|
101864
|
-
if (!this.fired) {
|
|
101865
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
101866
|
-
this.fired = true;
|
|
101867
|
-
if (arguments.length === 0)
|
|
101868
|
-
return this.listener.call(this.target);
|
|
101869
|
-
return this.listener.apply(this.target, arguments);
|
|
101870
|
-
}
|
|
101871
|
-
}
|
|
101872
|
-
function _onceWrap(target, type2, listener) {
|
|
101873
|
-
var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
|
|
101874
|
-
var wrapped = onceWrapper.bind(state);
|
|
101875
|
-
wrapped.listener = listener;
|
|
101876
|
-
state.wrapFn = wrapped;
|
|
101877
|
-
return wrapped;
|
|
101878
|
-
}
|
|
101879
|
-
EventEmitter.prototype.once = function once(type2, listener) {
|
|
101880
|
-
checkListener(listener);
|
|
101881
|
-
this.on(type2, _onceWrap(this, type2, listener));
|
|
101882
101798
|
return this;
|
|
101883
101799
|
};
|
|
101884
|
-
EventEmitter.prototype.
|
|
101885
|
-
|
|
101886
|
-
|
|
101800
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
101801
|
+
EventEmitter.prototype.once = function(type2, listener) {
|
|
101802
|
+
if (!isFunction(listener))
|
|
101803
|
+
throw TypeError("listener must be a function");
|
|
101804
|
+
var fired = false;
|
|
101805
|
+
function g2() {
|
|
101806
|
+
this.removeListener(type2, g2);
|
|
101807
|
+
if (!fired) {
|
|
101808
|
+
fired = true;
|
|
101809
|
+
listener.apply(this, arguments);
|
|
101810
|
+
}
|
|
101811
|
+
}
|
|
101812
|
+
g2.listener = listener;
|
|
101813
|
+
this.on(type2, g2);
|
|
101887
101814
|
return this;
|
|
101888
101815
|
};
|
|
101889
|
-
EventEmitter.prototype.removeListener = function
|
|
101890
|
-
var list,
|
|
101891
|
-
|
|
101892
|
-
|
|
101893
|
-
if (
|
|
101894
|
-
return this;
|
|
101895
|
-
list = events2[type2];
|
|
101896
|
-
if (list === void 0)
|
|
101816
|
+
EventEmitter.prototype.removeListener = function(type2, listener) {
|
|
101817
|
+
var list, position, length2, i2;
|
|
101818
|
+
if (!isFunction(listener))
|
|
101819
|
+
throw TypeError("listener must be a function");
|
|
101820
|
+
if (!this._events || !this._events[type2])
|
|
101897
101821
|
return this;
|
|
101898
|
-
|
|
101899
|
-
|
|
101900
|
-
|
|
101901
|
-
|
|
101902
|
-
|
|
101903
|
-
|
|
101904
|
-
|
|
101905
|
-
|
|
101906
|
-
|
|
101907
|
-
|
|
101908
|
-
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
101909
|
-
if (list[i2] === listener || list[i2].listener === listener) {
|
|
101910
|
-
originalListener = list[i2].listener;
|
|
101822
|
+
list = this._events[type2];
|
|
101823
|
+
length2 = list.length;
|
|
101824
|
+
position = -1;
|
|
101825
|
+
if (list === listener || isFunction(list.listener) && list.listener === listener) {
|
|
101826
|
+
delete this._events[type2];
|
|
101827
|
+
if (this._events.removeListener)
|
|
101828
|
+
this.emit("removeListener", type2, listener);
|
|
101829
|
+
} else if (isObject$1(list)) {
|
|
101830
|
+
for (i2 = length2; i2-- > 0; ) {
|
|
101831
|
+
if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
|
|
101911
101832
|
position = i2;
|
|
101912
101833
|
break;
|
|
101913
101834
|
}
|
|
101914
101835
|
}
|
|
101915
101836
|
if (position < 0)
|
|
101916
101837
|
return this;
|
|
101917
|
-
if (
|
|
101918
|
-
list.
|
|
101919
|
-
|
|
101920
|
-
|
|
101838
|
+
if (list.length === 1) {
|
|
101839
|
+
list.length = 0;
|
|
101840
|
+
delete this._events[type2];
|
|
101841
|
+
} else {
|
|
101842
|
+
list.splice(position, 1);
|
|
101921
101843
|
}
|
|
101922
|
-
if (
|
|
101923
|
-
|
|
101924
|
-
if (events2.removeListener !== void 0)
|
|
101925
|
-
this.emit("removeListener", type2, originalListener || listener);
|
|
101844
|
+
if (this._events.removeListener)
|
|
101845
|
+
this.emit("removeListener", type2, listener);
|
|
101926
101846
|
}
|
|
101927
101847
|
return this;
|
|
101928
101848
|
};
|
|
101929
|
-
EventEmitter.prototype.
|
|
101930
|
-
|
|
101931
|
-
|
|
101932
|
-
events2 = this._events;
|
|
101933
|
-
if (events2 === void 0)
|
|
101849
|
+
EventEmitter.prototype.removeAllListeners = function(type2) {
|
|
101850
|
+
var key, listeners;
|
|
101851
|
+
if (!this._events)
|
|
101934
101852
|
return this;
|
|
101935
|
-
if (
|
|
101936
|
-
if (arguments.length === 0)
|
|
101937
|
-
this._events =
|
|
101938
|
-
|
|
101939
|
-
|
|
101940
|
-
if (--this._eventsCount === 0)
|
|
101941
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
101942
|
-
else
|
|
101943
|
-
delete events2[type2];
|
|
101944
|
-
}
|
|
101853
|
+
if (!this._events.removeListener) {
|
|
101854
|
+
if (arguments.length === 0)
|
|
101855
|
+
this._events = {};
|
|
101856
|
+
else if (this._events[type2])
|
|
101857
|
+
delete this._events[type2];
|
|
101945
101858
|
return this;
|
|
101946
101859
|
}
|
|
101947
101860
|
if (arguments.length === 0) {
|
|
101948
|
-
|
|
101949
|
-
var key;
|
|
101950
|
-
for (i2 = 0; i2 < keys3.length; ++i2) {
|
|
101951
|
-
key = keys3[i2];
|
|
101861
|
+
for (key in this._events) {
|
|
101952
101862
|
if (key === "removeListener")
|
|
101953
101863
|
continue;
|
|
101954
101864
|
this.removeAllListeners(key);
|
|
101955
101865
|
}
|
|
101956
101866
|
this.removeAllListeners("removeListener");
|
|
101957
|
-
this._events =
|
|
101958
|
-
this._eventsCount = 0;
|
|
101867
|
+
this._events = {};
|
|
101959
101868
|
return this;
|
|
101960
101869
|
}
|
|
101961
|
-
|
|
101962
|
-
if (
|
|
101963
|
-
this.removeListener(type2,
|
|
101964
|
-
} else if (
|
|
101965
|
-
|
|
101966
|
-
this.removeListener(type2,
|
|
101967
|
-
}
|
|
101870
|
+
listeners = this._events[type2];
|
|
101871
|
+
if (isFunction(listeners)) {
|
|
101872
|
+
this.removeListener(type2, listeners);
|
|
101873
|
+
} else if (listeners) {
|
|
101874
|
+
while (listeners.length)
|
|
101875
|
+
this.removeListener(type2, listeners[listeners.length - 1]);
|
|
101968
101876
|
}
|
|
101877
|
+
delete this._events[type2];
|
|
101969
101878
|
return this;
|
|
101970
101879
|
};
|
|
101971
|
-
function
|
|
101972
|
-
var
|
|
101973
|
-
if (
|
|
101974
|
-
|
|
101975
|
-
|
|
101976
|
-
|
|
101977
|
-
|
|
101978
|
-
|
|
101979
|
-
|
|
101980
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
101981
|
-
}
|
|
101982
|
-
EventEmitter.prototype.listeners = function listeners(type2) {
|
|
101983
|
-
return _listeners(this, type2, true);
|
|
101984
|
-
};
|
|
101985
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type2) {
|
|
101986
|
-
return _listeners(this, type2, false);
|
|
101987
|
-
};
|
|
101988
|
-
EventEmitter.listenerCount = function(emitter, type2) {
|
|
101989
|
-
if (typeof emitter.listenerCount === "function") {
|
|
101990
|
-
return emitter.listenerCount(type2);
|
|
101991
|
-
} else {
|
|
101992
|
-
return listenerCount.call(emitter, type2);
|
|
101993
|
-
}
|
|
101880
|
+
EventEmitter.prototype.listeners = function(type2) {
|
|
101881
|
+
var ret;
|
|
101882
|
+
if (!this._events || !this._events[type2])
|
|
101883
|
+
ret = [];
|
|
101884
|
+
else if (isFunction(this._events[type2]))
|
|
101885
|
+
ret = [this._events[type2]];
|
|
101886
|
+
else
|
|
101887
|
+
ret = this._events[type2].slice();
|
|
101888
|
+
return ret;
|
|
101994
101889
|
};
|
|
101995
|
-
EventEmitter.prototype.listenerCount =
|
|
101996
|
-
|
|
101997
|
-
|
|
101998
|
-
|
|
101999
|
-
var evlistener = events2[type2];
|
|
102000
|
-
if (typeof evlistener === "function") {
|
|
101890
|
+
EventEmitter.prototype.listenerCount = function(type2) {
|
|
101891
|
+
if (this._events) {
|
|
101892
|
+
var evlistener = this._events[type2];
|
|
101893
|
+
if (isFunction(evlistener))
|
|
102001
101894
|
return 1;
|
|
102002
|
-
|
|
101895
|
+
else if (evlistener)
|
|
102003
101896
|
return evlistener.length;
|
|
102004
|
-
}
|
|
102005
101897
|
}
|
|
102006
101898
|
return 0;
|
|
102007
|
-
}
|
|
102008
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
102009
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
102010
101899
|
};
|
|
102011
|
-
function
|
|
102012
|
-
|
|
102013
|
-
|
|
102014
|
-
|
|
102015
|
-
return
|
|
101900
|
+
EventEmitter.listenerCount = function(emitter, type2) {
|
|
101901
|
+
return emitter.listenerCount(type2);
|
|
101902
|
+
};
|
|
101903
|
+
function isFunction(arg) {
|
|
101904
|
+
return typeof arg === "function";
|
|
102016
101905
|
}
|
|
102017
|
-
function
|
|
102018
|
-
|
|
102019
|
-
list[index2] = list[index2 + 1];
|
|
102020
|
-
list.pop();
|
|
101906
|
+
function isNumber(arg) {
|
|
101907
|
+
return typeof arg === "number";
|
|
102021
101908
|
}
|
|
102022
|
-
function
|
|
102023
|
-
|
|
102024
|
-
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
102025
|
-
ret[i2] = arr[i2].listener || arr[i2];
|
|
102026
|
-
}
|
|
102027
|
-
return ret;
|
|
101909
|
+
function isObject$1(arg) {
|
|
101910
|
+
return typeof arg === "object" && arg !== null;
|
|
102028
101911
|
}
|
|
102029
|
-
function
|
|
102030
|
-
return
|
|
102031
|
-
function errorListener(err2) {
|
|
102032
|
-
emitter.removeListener(name2, resolver);
|
|
102033
|
-
reject(err2);
|
|
102034
|
-
}
|
|
102035
|
-
function resolver() {
|
|
102036
|
-
if (typeof emitter.removeListener === "function") {
|
|
102037
|
-
emitter.removeListener("error", errorListener);
|
|
102038
|
-
}
|
|
102039
|
-
resolve([].slice.call(arguments));
|
|
102040
|
-
}
|
|
102041
|
-
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
102042
|
-
if (name2 !== "error") {
|
|
102043
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
102044
|
-
}
|
|
102045
|
-
});
|
|
102046
|
-
}
|
|
102047
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
|
|
102048
|
-
if (typeof emitter.on === "function") {
|
|
102049
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
|
|
102050
|
-
}
|
|
102051
|
-
}
|
|
102052
|
-
function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
|
|
102053
|
-
if (typeof emitter.on === "function") {
|
|
102054
|
-
if (flags3.once) {
|
|
102055
|
-
emitter.once(name2, listener);
|
|
102056
|
-
} else {
|
|
102057
|
-
emitter.on(name2, listener);
|
|
102058
|
-
}
|
|
102059
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
102060
|
-
emitter.addEventListener(name2, function wrapListener(arg) {
|
|
102061
|
-
if (flags3.once) {
|
|
102062
|
-
emitter.removeEventListener(name2, wrapListener);
|
|
102063
|
-
}
|
|
102064
|
-
listener(arg);
|
|
102065
|
-
});
|
|
102066
|
-
} else {
|
|
102067
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
102068
|
-
}
|
|
101912
|
+
function isUndefined(arg) {
|
|
101913
|
+
return arg === void 0;
|
|
102069
101914
|
}
|
|
102070
|
-
var eventsExports = events.exports;
|
|
102071
101915
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
102072
101916
|
var rnds8 = new Uint8Array(16);
|
|
102073
101917
|
function rng() {
|
|
@@ -102433,7 +102277,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
|
|
|
102433
102277
|
value: true
|
|
102434
102278
|
});
|
|
102435
102279
|
exports2["default"] = void 0;
|
|
102436
|
-
var _events = _interopRequireDefault2(
|
|
102280
|
+
var _events = _interopRequireDefault2(events);
|
|
102437
102281
|
var _uuid = _interopRequireDefault2(require$$1$3);
|
|
102438
102282
|
function _interopRequireDefault2(obj) {
|
|
102439
102283
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -102917,7 +102761,7 @@ function rhumbDistance$2(from, to, options) {
|
|
|
102917
102761
|
}
|
|
102918
102762
|
function calculateRhumbDistance(origin, destination2, radius) {
|
|
102919
102763
|
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
102920
|
-
var
|
|
102764
|
+
var R = radius;
|
|
102921
102765
|
var phi12 = origin[1] * Math.PI / 180;
|
|
102922
102766
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
102923
102767
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -102928,7 +102772,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
|
|
|
102928
102772
|
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
|
|
102929
102773
|
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
|
|
102930
102774
|
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
102931
|
-
var dist = delta *
|
|
102775
|
+
var dist = delta * R;
|
|
102932
102776
|
return dist;
|
|
102933
102777
|
}
|
|
102934
102778
|
js$e.default = rhumbDistance$2;
|
|
@@ -117437,7 +117281,7 @@ var document_1 = doccy;
|
|
|
117437
117281
|
value: true
|
|
117438
117282
|
});
|
|
117439
117283
|
exports2["default"] = void 0;
|
|
117440
|
-
var _events =
|
|
117284
|
+
var _events = events;
|
|
117441
117285
|
var _document = _interopRequireDefault2(document_1);
|
|
117442
117286
|
var _core = require$$2$2;
|
|
117443
117287
|
var _deckDrawer = _interopRequireDefault2(deckDrawer);
|
|
@@ -119358,16 +119202,16 @@ function addDecoder(cases, importFn) {
|
|
|
119358
119202
|
}
|
|
119359
119203
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
119360
119204
|
}
|
|
119361
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
119362
|
-
addDecoder(5, () => import("./lzw-
|
|
119205
|
+
addDecoder([void 0, 1], () => import("./raw-19fc03ba.js").then((m) => m.default));
|
|
119206
|
+
addDecoder(5, () => import("./lzw-c733cdd2.js").then((m) => m.default));
|
|
119363
119207
|
addDecoder(6, () => {
|
|
119364
119208
|
throw new Error("old style JPEG compression is not supported.");
|
|
119365
119209
|
});
|
|
119366
|
-
addDecoder(7, () => import("./jpeg-
|
|
119367
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
119368
|
-
addDecoder(32773, () => import("./packbits-
|
|
119369
|
-
addDecoder(34887, () => import("./lerc-
|
|
119370
|
-
addDecoder(50001, () => import("./webimage-
|
|
119210
|
+
addDecoder(7, () => import("./jpeg-027ef15c.js").then((m) => m.default));
|
|
119211
|
+
addDecoder([8, 32946], () => import("./deflate-fa8eca5f.js").then((m) => m.default));
|
|
119212
|
+
addDecoder(32773, () => import("./packbits-1632422c.js").then((m) => m.default));
|
|
119213
|
+
addDecoder(34887, () => import("./lerc-20f1f9f7.js").then((m) => m.default));
|
|
119214
|
+
addDecoder(50001, () => import("./webimage-5d4ef463.js").then((m) => m.default));
|
|
119371
119215
|
function decodeRowAcc(row, stride) {
|
|
119372
119216
|
let length2 = row.length - stride;
|
|
119373
119217
|
let offset = 0;
|
|
@@ -123144,16 +122988,16 @@ createCommonjsModule(function(module2) {
|
|
|
123144
122988
|
if (!new Events().__proto__)
|
|
123145
122989
|
prefix = false;
|
|
123146
122990
|
}
|
|
123147
|
-
function EE(fn, context,
|
|
122991
|
+
function EE(fn, context, once) {
|
|
123148
122992
|
this.fn = fn;
|
|
123149
122993
|
this.context = context;
|
|
123150
|
-
this.once =
|
|
122994
|
+
this.once = once || false;
|
|
123151
122995
|
}
|
|
123152
|
-
function
|
|
122996
|
+
function addListener(emitter, event, fn, context, once) {
|
|
123153
122997
|
if (typeof fn !== "function") {
|
|
123154
122998
|
throw new TypeError("The listener must be a function");
|
|
123155
122999
|
}
|
|
123156
|
-
var listener = new EE(fn, context || emitter,
|
|
123000
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
|
|
123157
123001
|
if (!emitter._events[evt])
|
|
123158
123002
|
emitter._events[evt] = listener, emitter._eventsCount++;
|
|
123159
123003
|
else if (!emitter._events[evt].fn)
|
|
@@ -123172,7 +123016,7 @@ createCommonjsModule(function(module2) {
|
|
|
123172
123016
|
this._events = new Events();
|
|
123173
123017
|
this._eventsCount = 0;
|
|
123174
123018
|
}
|
|
123175
|
-
EventEmitter2.prototype.eventNames = function
|
|
123019
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
123176
123020
|
var names = [], events2, name2;
|
|
123177
123021
|
if (this._eventsCount === 0)
|
|
123178
123022
|
return names;
|
|
@@ -123185,7 +123029,7 @@ createCommonjsModule(function(module2) {
|
|
|
123185
123029
|
}
|
|
123186
123030
|
return names;
|
|
123187
123031
|
};
|
|
123188
|
-
EventEmitter2.prototype.listeners = function
|
|
123032
|
+
EventEmitter2.prototype.listeners = function listeners(event) {
|
|
123189
123033
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
123190
123034
|
if (!handlers)
|
|
123191
123035
|
return [];
|
|
@@ -123196,76 +123040,76 @@ createCommonjsModule(function(module2) {
|
|
|
123196
123040
|
}
|
|
123197
123041
|
return ee;
|
|
123198
123042
|
};
|
|
123199
|
-
EventEmitter2.prototype.listenerCount = function
|
|
123200
|
-
var evt = prefix ? prefix + event : event,
|
|
123201
|
-
if (!
|
|
123043
|
+
EventEmitter2.prototype.listenerCount = function listenerCount(event) {
|
|
123044
|
+
var evt = prefix ? prefix + event : event, listeners = this._events[evt];
|
|
123045
|
+
if (!listeners)
|
|
123202
123046
|
return 0;
|
|
123203
|
-
if (
|
|
123047
|
+
if (listeners.fn)
|
|
123204
123048
|
return 1;
|
|
123205
|
-
return
|
|
123049
|
+
return listeners.length;
|
|
123206
123050
|
};
|
|
123207
|
-
EventEmitter2.prototype.emit = function
|
|
123051
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
123208
123052
|
var evt = prefix ? prefix + event : event;
|
|
123209
123053
|
if (!this._events[evt])
|
|
123210
123054
|
return false;
|
|
123211
|
-
var
|
|
123212
|
-
if (
|
|
123213
|
-
if (
|
|
123214
|
-
this.removeListener(event,
|
|
123055
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
123056
|
+
if (listeners.fn) {
|
|
123057
|
+
if (listeners.once)
|
|
123058
|
+
this.removeListener(event, listeners.fn, void 0, true);
|
|
123215
123059
|
switch (len2) {
|
|
123216
123060
|
case 1:
|
|
123217
|
-
return
|
|
123061
|
+
return listeners.fn.call(listeners.context), true;
|
|
123218
123062
|
case 2:
|
|
123219
|
-
return
|
|
123063
|
+
return listeners.fn.call(listeners.context, a1), true;
|
|
123220
123064
|
case 3:
|
|
123221
|
-
return
|
|
123065
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
123222
123066
|
case 4:
|
|
123223
|
-
return
|
|
123067
|
+
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
123224
123068
|
case 5:
|
|
123225
|
-
return
|
|
123069
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
123226
123070
|
case 6:
|
|
123227
|
-
return
|
|
123071
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
123228
123072
|
}
|
|
123229
123073
|
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
123230
123074
|
args[i2 - 1] = arguments[i2];
|
|
123231
123075
|
}
|
|
123232
|
-
|
|
123076
|
+
listeners.fn.apply(listeners.context, args);
|
|
123233
123077
|
} else {
|
|
123234
|
-
var length2 =
|
|
123078
|
+
var length2 = listeners.length, j;
|
|
123235
123079
|
for (i2 = 0; i2 < length2; i2++) {
|
|
123236
|
-
if (
|
|
123237
|
-
this.removeListener(event,
|
|
123080
|
+
if (listeners[i2].once)
|
|
123081
|
+
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
123238
123082
|
switch (len2) {
|
|
123239
123083
|
case 1:
|
|
123240
|
-
|
|
123084
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
123241
123085
|
break;
|
|
123242
123086
|
case 2:
|
|
123243
|
-
|
|
123087
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
123244
123088
|
break;
|
|
123245
123089
|
case 3:
|
|
123246
|
-
|
|
123090
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
123247
123091
|
break;
|
|
123248
123092
|
case 4:
|
|
123249
|
-
|
|
123093
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
123250
123094
|
break;
|
|
123251
123095
|
default:
|
|
123252
123096
|
if (!args)
|
|
123253
123097
|
for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
|
|
123254
123098
|
args[j - 1] = arguments[j];
|
|
123255
123099
|
}
|
|
123256
|
-
|
|
123100
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
123257
123101
|
}
|
|
123258
123102
|
}
|
|
123259
123103
|
}
|
|
123260
123104
|
return true;
|
|
123261
123105
|
};
|
|
123262
123106
|
EventEmitter2.prototype.on = function on(event, fn, context) {
|
|
123263
|
-
return
|
|
123107
|
+
return addListener(this, event, fn, context, false);
|
|
123264
123108
|
};
|
|
123265
|
-
EventEmitter2.prototype.once = function
|
|
123266
|
-
return
|
|
123109
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
|
123110
|
+
return addListener(this, event, fn, context, true);
|
|
123267
123111
|
};
|
|
123268
|
-
EventEmitter2.prototype.removeListener = function
|
|
123112
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
123269
123113
|
var evt = prefix ? prefix + event : event;
|
|
123270
123114
|
if (!this._events[evt])
|
|
123271
123115
|
return this;
|
|
@@ -123273,15 +123117,15 @@ createCommonjsModule(function(module2) {
|
|
|
123273
123117
|
clearEvent(this, evt);
|
|
123274
123118
|
return this;
|
|
123275
123119
|
}
|
|
123276
|
-
var
|
|
123277
|
-
if (
|
|
123278
|
-
if (
|
|
123120
|
+
var listeners = this._events[evt];
|
|
123121
|
+
if (listeners.fn) {
|
|
123122
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
|
123279
123123
|
clearEvent(this, evt);
|
|
123280
123124
|
}
|
|
123281
123125
|
} else {
|
|
123282
|
-
for (var i2 = 0, events2 = [], length2 =
|
|
123283
|
-
if (
|
|
123284
|
-
events2.push(
|
|
123126
|
+
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
123127
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
123128
|
+
events2.push(listeners[i2]);
|
|
123285
123129
|
}
|
|
123286
123130
|
}
|
|
123287
123131
|
if (events2.length)
|
|
@@ -123291,7 +123135,7 @@ createCommonjsModule(function(module2) {
|
|
|
123291
123135
|
}
|
|
123292
123136
|
return this;
|
|
123293
123137
|
};
|
|
123294
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
123138
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
123295
123139
|
var evt;
|
|
123296
123140
|
if (event) {
|
|
123297
123141
|
evt = prefix ? prefix + event : event;
|
|
@@ -127774,7 +127618,7 @@ var blosc_codec = function() {
|
|
|
127774
127618
|
b += Ga[z[a2++]];
|
|
127775
127619
|
return b;
|
|
127776
127620
|
}
|
|
127777
|
-
var Q2 = {},
|
|
127621
|
+
var Q2 = {}, R = {}, S = {};
|
|
127778
127622
|
function Ha(a2) {
|
|
127779
127623
|
if (void 0 === a2)
|
|
127780
127624
|
return "_unknown";
|
|
@@ -127819,8 +127663,8 @@ var blosc_codec = function() {
|
|
|
127819
127663
|
});
|
|
127820
127664
|
var e2 = Array(a2.length), g2 = [], k = 0;
|
|
127821
127665
|
a2.forEach(function(h, l2) {
|
|
127822
|
-
|
|
127823
|
-
e2[l2] =
|
|
127666
|
+
R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
|
|
127667
|
+
e2[l2] = R[h];
|
|
127824
127668
|
++k;
|
|
127825
127669
|
k === g2.length && c(e2);
|
|
127826
127670
|
}));
|
|
@@ -127833,12 +127677,12 @@ var blosc_codec = function() {
|
|
|
127833
127677
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
127834
127678
|
var d = b.name;
|
|
127835
127679
|
a2 || T('type "' + d + '" must have a positive integer typeid pointer');
|
|
127836
|
-
if (
|
|
127680
|
+
if (R.hasOwnProperty(a2)) {
|
|
127837
127681
|
if (c.U)
|
|
127838
127682
|
return;
|
|
127839
127683
|
T("Cannot register type '" + d + "' twice");
|
|
127840
127684
|
}
|
|
127841
|
-
|
|
127685
|
+
R[a2] = b;
|
|
127842
127686
|
delete S[a2];
|
|
127843
127687
|
Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
|
|
127844
127688
|
e2();
|
|
@@ -127951,7 +127795,7 @@ var blosc_codec = function() {
|
|
|
127951
127795
|
}
|
|
127952
127796
|
function eb(a2, b) {
|
|
127953
127797
|
function c(g2) {
|
|
127954
|
-
e2[g2] ||
|
|
127798
|
+
e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
|
|
127955
127799
|
}
|
|
127956
127800
|
var d = [], e2 = {};
|
|
127957
127801
|
b.forEach(c);
|
|
@@ -128239,7 +128083,7 @@ var blosc_codec = function() {
|
|
|
128239
128083
|
}, n: Qa, x: function(a2) {
|
|
128240
128084
|
4 < a2 && (V[a2].P += 1);
|
|
128241
128085
|
}, C: function(a2, b) {
|
|
128242
|
-
var c =
|
|
128086
|
+
var c = R[a2];
|
|
128243
128087
|
void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
|
|
128244
128088
|
a2 = c.readValueFromPointer(b);
|
|
128245
128089
|
return Ra(a2);
|