@loaders.gl/textures 3.3.0-alpha.8 → 3.3.1
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/basis-nodejs-worker.js +251 -228
- package/dist/basis-worker.js +5 -4
- package/dist/compressed-texture-worker.js +5 -4
- package/dist/crunch-worker.js +3 -3
- package/dist/dist.min.js +2 -1
- package/dist/es5/lib/parsers/basis-module-loader.js +1 -1
- package/dist/es5/lib/parsers/basis-module-loader.js.map +1 -1
- package/dist/es5/lib/parsers/parse-basis.js +1 -0
- package/dist/es5/lib/parsers/parse-basis.js.map +1 -1
- package/dist/es5/lib/utils/version.js +1 -1
- package/dist/es5/lib/utils/version.js.map +1 -1
- package/dist/esm/lib/parsers/basis-module-loader.js +1 -1
- package/dist/esm/lib/parsers/basis-module-loader.js.map +1 -1
- package/dist/esm/lib/parsers/parse-basis.js +1 -0
- package/dist/esm/lib/parsers/parse-basis.js.map +1 -1
- package/dist/esm/lib/utils/version.js +1 -1
- package/dist/esm/lib/utils/version.js.map +1 -1
- package/dist/ktx2-basis-writer-nodejs-worker.js +250 -228
- package/dist/ktx2-basis-writer-worker.js +4 -4
- package/dist/lib/parsers/parse-basis.js +1 -1
- package/dist/npy-worker.js +1 -1
- package/package.json +7 -7
- package/src/lib/parsers/parse-basis.ts +1 -1
|
@@ -2412,14 +2412,14 @@ var require_inherits_browser = __commonJS({
|
|
|
2412
2412
|
var require_inherits = __commonJS({
|
|
2413
2413
|
"../../node_modules/inherits/inherits.js"(exports2, module2) {
|
|
2414
2414
|
try {
|
|
2415
|
-
|
|
2416
|
-
if (typeof
|
|
2415
|
+
util = require("util");
|
|
2416
|
+
if (typeof util.inherits !== "function")
|
|
2417
2417
|
throw "";
|
|
2418
|
-
module2.exports =
|
|
2418
|
+
module2.exports = util.inherits;
|
|
2419
2419
|
} catch (e) {
|
|
2420
2420
|
module2.exports = require_inherits_browser();
|
|
2421
2421
|
}
|
|
2422
|
-
var
|
|
2422
|
+
var util;
|
|
2423
2423
|
}
|
|
2424
2424
|
});
|
|
2425
2425
|
|
|
@@ -2574,10 +2574,10 @@ var require_stream_readable = __commonJS({
|
|
|
2574
2574
|
return emitter.listeners(type).length;
|
|
2575
2575
|
};
|
|
2576
2576
|
var Stream2 = require("stream");
|
|
2577
|
-
var
|
|
2578
|
-
|
|
2577
|
+
var util = require_util();
|
|
2578
|
+
util.inherits = require_inherits();
|
|
2579
2579
|
var StringDecoder;
|
|
2580
|
-
|
|
2580
|
+
util.inherits(Readable2, Stream2);
|
|
2581
2581
|
function ReadableState(options, stream) {
|
|
2582
2582
|
options = options || {};
|
|
2583
2583
|
var hwm = options.highWaterMark;
|
|
@@ -3180,11 +3180,11 @@ var require_stream_duplex = __commonJS({
|
|
|
3180
3180
|
keys.push(key);
|
|
3181
3181
|
return keys;
|
|
3182
3182
|
};
|
|
3183
|
-
var
|
|
3184
|
-
|
|
3183
|
+
var util = require_util();
|
|
3184
|
+
util.inherits = require_inherits();
|
|
3185
3185
|
var Readable2 = require_stream_readable();
|
|
3186
3186
|
var Writable = require_stream_writable();
|
|
3187
|
-
|
|
3187
|
+
util.inherits(Duplex, Readable2);
|
|
3188
3188
|
forEach(objectKeys(Writable.prototype), function(method) {
|
|
3189
3189
|
if (!Duplex.prototype[method])
|
|
3190
3190
|
Duplex.prototype[method] = Writable.prototype[method];
|
|
@@ -3222,10 +3222,10 @@ var require_stream_writable = __commonJS({
|
|
|
3222
3222
|
module2.exports = Writable;
|
|
3223
3223
|
var Buffer2 = require("buffer").Buffer;
|
|
3224
3224
|
Writable.WritableState = WritableState;
|
|
3225
|
-
var
|
|
3226
|
-
|
|
3225
|
+
var util = require_util();
|
|
3226
|
+
util.inherits = require_inherits();
|
|
3227
3227
|
var Stream2 = require("stream");
|
|
3228
|
-
|
|
3228
|
+
util.inherits(Writable, Stream2);
|
|
3229
3229
|
function WriteReq(chunk, encoding, cb) {
|
|
3230
3230
|
this.chunk = chunk;
|
|
3231
3231
|
this.encoding = encoding;
|
|
@@ -3452,9 +3452,9 @@ var require_stream_transform = __commonJS({
|
|
|
3452
3452
|
"../../node_modules/contentstream/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
|
|
3453
3453
|
module2.exports = Transform;
|
|
3454
3454
|
var Duplex = require_stream_duplex();
|
|
3455
|
-
var
|
|
3456
|
-
|
|
3457
|
-
|
|
3455
|
+
var util = require_util();
|
|
3456
|
+
util.inherits = require_inherits();
|
|
3457
|
+
util.inherits(Transform, Duplex);
|
|
3458
3458
|
function TransformState(options, stream) {
|
|
3459
3459
|
this.afterTransform = function(er, data) {
|
|
3460
3460
|
return afterTransform(stream, er, data);
|
|
@@ -3546,9 +3546,9 @@ var require_stream_passthrough = __commonJS({
|
|
|
3546
3546
|
"../../node_modules/contentstream/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
|
|
3547
3547
|
module2.exports = PassThrough;
|
|
3548
3548
|
var Transform = require_stream_transform();
|
|
3549
|
-
var
|
|
3550
|
-
|
|
3551
|
-
|
|
3549
|
+
var util = require_util();
|
|
3550
|
+
util.inherits = require_inherits();
|
|
3551
|
+
util.inherits(PassThrough, Transform);
|
|
3552
3552
|
function PassThrough(options) {
|
|
3553
3553
|
if (!(this instanceof PassThrough))
|
|
3554
3554
|
return new PassThrough(options);
|
|
@@ -3582,7 +3582,7 @@ var require_contentstream = __commonJS({
|
|
|
3582
3582
|
"../../node_modules/contentstream/index.js"(exports2, module2) {
|
|
3583
3583
|
"use strict";
|
|
3584
3584
|
var Readable2 = require_readable().Readable;
|
|
3585
|
-
var
|
|
3585
|
+
var util = require("util");
|
|
3586
3586
|
module2.exports = ContentStream;
|
|
3587
3587
|
function ContentStream(obj, options) {
|
|
3588
3588
|
if (!(this instanceof ContentStream)) {
|
|
@@ -3594,7 +3594,7 @@ var require_contentstream = __commonJS({
|
|
|
3594
3594
|
}
|
|
3595
3595
|
this._obj = obj;
|
|
3596
3596
|
}
|
|
3597
|
-
|
|
3597
|
+
util.inherits(ContentStream, Readable2);
|
|
3598
3598
|
ContentStream.prototype._read = function(n) {
|
|
3599
3599
|
var obj = this._obj;
|
|
3600
3600
|
if (typeof obj === "string") {
|
|
@@ -3624,10 +3624,10 @@ var require_stream_writable2 = __commonJS({
|
|
|
3624
3624
|
module2.exports = Writable;
|
|
3625
3625
|
var Buffer2 = require("buffer").Buffer;
|
|
3626
3626
|
Writable.WritableState = WritableState;
|
|
3627
|
-
var
|
|
3628
|
-
|
|
3627
|
+
var util = require_util();
|
|
3628
|
+
util.inherits = require_inherits();
|
|
3629
3629
|
var Stream2 = require("stream");
|
|
3630
|
-
|
|
3630
|
+
util.inherits(Writable, Stream2);
|
|
3631
3631
|
function WriteReq(chunk, encoding, cb) {
|
|
3632
3632
|
this.chunk = chunk;
|
|
3633
3633
|
this.encoding = encoding;
|
|
@@ -3685,7 +3685,7 @@ var require_stream_writable2 = __commonJS({
|
|
|
3685
3685
|
}
|
|
3686
3686
|
function validChunk(stream, state, chunk, cb) {
|
|
3687
3687
|
var valid = true;
|
|
3688
|
-
if (!
|
|
3688
|
+
if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {
|
|
3689
3689
|
var er = new TypeError("Invalid non-string/buffer chunk");
|
|
3690
3690
|
stream.emit("error", er);
|
|
3691
3691
|
process.nextTick(function() {
|
|
@@ -3698,15 +3698,15 @@ var require_stream_writable2 = __commonJS({
|
|
|
3698
3698
|
Writable.prototype.write = function(chunk, encoding, cb) {
|
|
3699
3699
|
var state = this._writableState;
|
|
3700
3700
|
var ret = false;
|
|
3701
|
-
if (
|
|
3701
|
+
if (util.isFunction(encoding)) {
|
|
3702
3702
|
cb = encoding;
|
|
3703
3703
|
encoding = null;
|
|
3704
3704
|
}
|
|
3705
|
-
if (
|
|
3705
|
+
if (util.isBuffer(chunk))
|
|
3706
3706
|
encoding = "buffer";
|
|
3707
3707
|
else if (!encoding)
|
|
3708
3708
|
encoding = state.defaultEncoding;
|
|
3709
|
-
if (!
|
|
3709
|
+
if (!util.isFunction(cb))
|
|
3710
3710
|
cb = function() {
|
|
3711
3711
|
};
|
|
3712
3712
|
if (state.ended)
|
|
@@ -3730,14 +3730,14 @@ var require_stream_writable2 = __commonJS({
|
|
|
3730
3730
|
}
|
|
3731
3731
|
};
|
|
3732
3732
|
function decodeChunk(state, chunk, encoding) {
|
|
3733
|
-
if (!state.objectMode && state.decodeStrings !== false &&
|
|
3733
|
+
if (!state.objectMode && state.decodeStrings !== false && util.isString(chunk)) {
|
|
3734
3734
|
chunk = new Buffer2(chunk, encoding);
|
|
3735
3735
|
}
|
|
3736
3736
|
return chunk;
|
|
3737
3737
|
}
|
|
3738
3738
|
function writeOrBuffer(stream, state, chunk, encoding, cb) {
|
|
3739
3739
|
chunk = decodeChunk(state, chunk, encoding);
|
|
3740
|
-
if (
|
|
3740
|
+
if (util.isBuffer(chunk))
|
|
3741
3741
|
encoding = "buffer";
|
|
3742
3742
|
var len = state.objectMode ? 1 : chunk.length;
|
|
3743
3743
|
state.length += len;
|
|
@@ -3854,15 +3854,15 @@ var require_stream_writable2 = __commonJS({
|
|
|
3854
3854
|
Writable.prototype._writev = null;
|
|
3855
3855
|
Writable.prototype.end = function(chunk, encoding, cb) {
|
|
3856
3856
|
var state = this._writableState;
|
|
3857
|
-
if (
|
|
3857
|
+
if (util.isFunction(chunk)) {
|
|
3858
3858
|
cb = chunk;
|
|
3859
3859
|
chunk = null;
|
|
3860
3860
|
encoding = null;
|
|
3861
|
-
} else if (
|
|
3861
|
+
} else if (util.isFunction(encoding)) {
|
|
3862
3862
|
cb = encoding;
|
|
3863
3863
|
encoding = null;
|
|
3864
3864
|
}
|
|
3865
|
-
if (!
|
|
3865
|
+
if (!util.isNullOrUndefined(chunk))
|
|
3866
3866
|
this.write(chunk, encoding);
|
|
3867
3867
|
if (state.corked) {
|
|
3868
3868
|
state.corked = 1;
|
|
@@ -3916,11 +3916,11 @@ var require_stream_duplex2 = __commonJS({
|
|
|
3916
3916
|
keys.push(key);
|
|
3917
3917
|
return keys;
|
|
3918
3918
|
};
|
|
3919
|
-
var
|
|
3920
|
-
|
|
3919
|
+
var util = require_util();
|
|
3920
|
+
util.inherits = require_inherits();
|
|
3921
3921
|
var Readable2 = require_stream_readable2();
|
|
3922
3922
|
var Writable = require_stream_writable2();
|
|
3923
|
-
|
|
3923
|
+
util.inherits(Duplex, Readable2);
|
|
3924
3924
|
forEach(objectKeys(Writable.prototype), function(method) {
|
|
3925
3925
|
if (!Duplex.prototype[method])
|
|
3926
3926
|
Duplex.prototype[method] = Writable.prototype[method];
|
|
@@ -3965,8 +3965,8 @@ var require_stream_readable2 = __commonJS({
|
|
|
3965
3965
|
return emitter.listeners(type).length;
|
|
3966
3966
|
};
|
|
3967
3967
|
var Stream2 = require("stream");
|
|
3968
|
-
var
|
|
3969
|
-
|
|
3968
|
+
var util = require_util();
|
|
3969
|
+
util.inherits = require_inherits();
|
|
3970
3970
|
var StringDecoder;
|
|
3971
3971
|
var debug = require("util");
|
|
3972
3972
|
if (debug && debug.debuglog) {
|
|
@@ -3975,7 +3975,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
3975
3975
|
debug = function() {
|
|
3976
3976
|
};
|
|
3977
3977
|
}
|
|
3978
|
-
|
|
3978
|
+
util.inherits(Readable2, Stream2);
|
|
3979
3979
|
function ReadableState(options, stream) {
|
|
3980
3980
|
var Duplex = require_stream_duplex2();
|
|
3981
3981
|
options = options || {};
|
|
@@ -4021,7 +4021,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4021
4021
|
}
|
|
4022
4022
|
Readable2.prototype.push = function(chunk, encoding) {
|
|
4023
4023
|
var state = this._readableState;
|
|
4024
|
-
if (
|
|
4024
|
+
if (util.isString(chunk) && !state.objectMode) {
|
|
4025
4025
|
encoding = encoding || state.defaultEncoding;
|
|
4026
4026
|
if (encoding !== state.encoding) {
|
|
4027
4027
|
chunk = new Buffer2(chunk, encoding);
|
|
@@ -4038,7 +4038,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4038
4038
|
var er = chunkInvalid(state, chunk);
|
|
4039
4039
|
if (er) {
|
|
4040
4040
|
stream.emit("error", er);
|
|
4041
|
-
} else if (
|
|
4041
|
+
} else if (util.isNullOrUndefined(chunk)) {
|
|
4042
4042
|
state.reading = false;
|
|
4043
4043
|
if (!state.ended)
|
|
4044
4044
|
onEofChunk(stream, state);
|
|
@@ -4100,7 +4100,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4100
4100
|
return 0;
|
|
4101
4101
|
if (state.objectMode)
|
|
4102
4102
|
return n === 0 ? 0 : 1;
|
|
4103
|
-
if (isNaN(n) ||
|
|
4103
|
+
if (isNaN(n) || util.isNull(n)) {
|
|
4104
4104
|
if (state.flowing && state.buffer.length)
|
|
4105
4105
|
return state.buffer[0].length;
|
|
4106
4106
|
else
|
|
@@ -4123,7 +4123,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4123
4123
|
debug("read", n);
|
|
4124
4124
|
var state = this._readableState;
|
|
4125
4125
|
var nOrig = n;
|
|
4126
|
-
if (!
|
|
4126
|
+
if (!util.isNumber(n) || n > 0)
|
|
4127
4127
|
state.emittedReadable = false;
|
|
4128
4128
|
if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {
|
|
4129
4129
|
debug("read: emitReadable", state.length, state.ended);
|
|
@@ -4165,7 +4165,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4165
4165
|
ret = fromList(n, state);
|
|
4166
4166
|
else
|
|
4167
4167
|
ret = null;
|
|
4168
|
-
if (
|
|
4168
|
+
if (util.isNull(ret)) {
|
|
4169
4169
|
state.needReadable = true;
|
|
4170
4170
|
n = 0;
|
|
4171
4171
|
}
|
|
@@ -4174,13 +4174,13 @@ var require_stream_readable2 = __commonJS({
|
|
|
4174
4174
|
state.needReadable = true;
|
|
4175
4175
|
if (nOrig !== n && state.ended && state.length === 0)
|
|
4176
4176
|
endReadable(this);
|
|
4177
|
-
if (!
|
|
4177
|
+
if (!util.isNull(ret))
|
|
4178
4178
|
this.emit("data", ret);
|
|
4179
4179
|
return ret;
|
|
4180
4180
|
};
|
|
4181
4181
|
function chunkInvalid(state, chunk) {
|
|
4182
4182
|
var er = null;
|
|
4183
|
-
if (!
|
|
4183
|
+
if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {
|
|
4184
4184
|
er = new TypeError("Invalid non-string/buffer chunk");
|
|
4185
4185
|
}
|
|
4186
4186
|
return er;
|
|
@@ -4476,7 +4476,7 @@ var require_stream_readable2 = __commonJS({
|
|
|
4476
4476
|
}
|
|
4477
4477
|
});
|
|
4478
4478
|
for (var i in stream) {
|
|
4479
|
-
if (
|
|
4479
|
+
if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {
|
|
4480
4480
|
this[i] = function(method) {
|
|
4481
4481
|
return function() {
|
|
4482
4482
|
return stream[method].apply(stream, arguments);
|
|
@@ -4581,9 +4581,9 @@ var require_stream_transform2 = __commonJS({
|
|
|
4581
4581
|
"../../node_modules/gif-encoder/node_modules/readable-stream/lib/_stream_transform.js"(exports2, module2) {
|
|
4582
4582
|
module2.exports = Transform;
|
|
4583
4583
|
var Duplex = require_stream_duplex2();
|
|
4584
|
-
var
|
|
4585
|
-
|
|
4586
|
-
|
|
4584
|
+
var util = require_util();
|
|
4585
|
+
util.inherits = require_inherits();
|
|
4586
|
+
util.inherits(Transform, Duplex);
|
|
4587
4587
|
function TransformState(options, stream) {
|
|
4588
4588
|
this.afterTransform = function(er, data) {
|
|
4589
4589
|
return afterTransform(stream, er, data);
|
|
@@ -4601,7 +4601,7 @@ var require_stream_transform2 = __commonJS({
|
|
|
4601
4601
|
return stream.emit("error", new Error("no writecb in Transform class"));
|
|
4602
4602
|
ts.writechunk = null;
|
|
4603
4603
|
ts.writecb = null;
|
|
4604
|
-
if (!
|
|
4604
|
+
if (!util.isNullOrUndefined(data))
|
|
4605
4605
|
stream.push(data);
|
|
4606
4606
|
if (cb)
|
|
4607
4607
|
cb(er);
|
|
@@ -4620,7 +4620,7 @@ var require_stream_transform2 = __commonJS({
|
|
|
4620
4620
|
this._readableState.needReadable = true;
|
|
4621
4621
|
this._readableState.sync = false;
|
|
4622
4622
|
this.once("prefinish", function() {
|
|
4623
|
-
if (
|
|
4623
|
+
if (util.isFunction(this._flush))
|
|
4624
4624
|
this._flush(function(er) {
|
|
4625
4625
|
done(stream, er);
|
|
4626
4626
|
});
|
|
@@ -4648,7 +4648,7 @@ var require_stream_transform2 = __commonJS({
|
|
|
4648
4648
|
};
|
|
4649
4649
|
Transform.prototype._read = function(n) {
|
|
4650
4650
|
var ts = this._transformState;
|
|
4651
|
-
if (!
|
|
4651
|
+
if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {
|
|
4652
4652
|
ts.transforming = true;
|
|
4653
4653
|
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
4654
4654
|
} else {
|
|
@@ -4674,9 +4674,9 @@ var require_stream_passthrough2 = __commonJS({
|
|
|
4674
4674
|
"../../node_modules/gif-encoder/node_modules/readable-stream/lib/_stream_passthrough.js"(exports2, module2) {
|
|
4675
4675
|
module2.exports = PassThrough;
|
|
4676
4676
|
var Transform = require_stream_transform2();
|
|
4677
|
-
var
|
|
4678
|
-
|
|
4679
|
-
|
|
4677
|
+
var util = require_util();
|
|
4678
|
+
util.inherits = require_inherits();
|
|
4679
|
+
util.inherits(PassThrough, Transform);
|
|
4680
4680
|
function PassThrough(options) {
|
|
4681
4681
|
if (!(this instanceof PassThrough))
|
|
4682
4682
|
return new PassThrough(options);
|
|
@@ -5171,7 +5171,7 @@ var require_GIFEncoder = __commonJS({
|
|
|
5171
5171
|
var assert3 = require("assert");
|
|
5172
5172
|
var EventEmitter = require("events").EventEmitter;
|
|
5173
5173
|
var ReadableStream2 = require_readable2();
|
|
5174
|
-
var
|
|
5174
|
+
var util = require("util");
|
|
5175
5175
|
var NeuQuant = require_TypedNeuQuant();
|
|
5176
5176
|
var LZWEncoder = require_LZWEncoder();
|
|
5177
5177
|
function ByteCapacitor(options) {
|
|
@@ -5179,7 +5179,7 @@ var require_GIFEncoder = __commonJS({
|
|
|
5179
5179
|
this.okayToPush = true;
|
|
5180
5180
|
this.resetData();
|
|
5181
5181
|
}
|
|
5182
|
-
|
|
5182
|
+
util.inherits(ByteCapacitor, ReadableStream2);
|
|
5183
5183
|
ByteCapacitor.prototype._read = function() {
|
|
5184
5184
|
this.okayToPush = true;
|
|
5185
5185
|
};
|
|
@@ -5240,7 +5240,7 @@ var require_GIFEncoder = __commonJS({
|
|
|
5240
5240
|
that.push(null);
|
|
5241
5241
|
});
|
|
5242
5242
|
}
|
|
5243
|
-
|
|
5243
|
+
util.inherits(GIFEncoder, ByteCapacitor);
|
|
5244
5244
|
GIFEncoder.prototype.setDelay = function(milliseconds) {
|
|
5245
5245
|
this.delay = Math.round(milliseconds / 10);
|
|
5246
5246
|
};
|
|
@@ -7568,7 +7568,7 @@ var require_jpeg_js = __commonJS({
|
|
|
7568
7568
|
var require_chunkstream = __commonJS({
|
|
7569
7569
|
"../../node_modules/pngjs-nozlib/lib/chunkstream.js"(exports2, module2) {
|
|
7570
7570
|
"use strict";
|
|
7571
|
-
var
|
|
7571
|
+
var util = require("util");
|
|
7572
7572
|
var Stream2 = require("stream");
|
|
7573
7573
|
var ChunkStream = module2.exports = function() {
|
|
7574
7574
|
Stream2.call(this);
|
|
@@ -7579,7 +7579,7 @@ var require_chunkstream = __commonJS({
|
|
|
7579
7579
|
this._encoding = "utf8";
|
|
7580
7580
|
this.writable = true;
|
|
7581
7581
|
};
|
|
7582
|
-
|
|
7582
|
+
util.inherits(ChunkStream, Stream2);
|
|
7583
7583
|
ChunkStream.prototype.read = function(length, callback) {
|
|
7584
7584
|
this._reads.push({
|
|
7585
7585
|
length: Math.abs(length),
|
|
@@ -7937,7 +7937,7 @@ var require_filter_parse = __commonJS({
|
|
|
7937
7937
|
var require_filter_parse_async = __commonJS({
|
|
7938
7938
|
"../../node_modules/pngjs-nozlib/lib/filter-parse-async.js"(exports2, module2) {
|
|
7939
7939
|
"use strict";
|
|
7940
|
-
var
|
|
7940
|
+
var util = require("util");
|
|
7941
7941
|
var ChunkStream = require_chunkstream();
|
|
7942
7942
|
var Filter = require_filter_parse();
|
|
7943
7943
|
var FilterAsync = module2.exports = function(bitmapInfo) {
|
|
@@ -7955,7 +7955,7 @@ var require_filter_parse_async = __commonJS({
|
|
|
7955
7955
|
});
|
|
7956
7956
|
this._filter.start();
|
|
7957
7957
|
};
|
|
7958
|
-
|
|
7958
|
+
util.inherits(FilterAsync, ChunkStream);
|
|
7959
7959
|
}
|
|
7960
7960
|
});
|
|
7961
7961
|
|
|
@@ -8504,7 +8504,7 @@ var require_format_normaliser = __commonJS({
|
|
|
8504
8504
|
var require_parser_async = __commonJS({
|
|
8505
8505
|
"../../node_modules/pngjs-nozlib/lib/parser-async.js"(exports2, module2) {
|
|
8506
8506
|
"use strict";
|
|
8507
|
-
var
|
|
8507
|
+
var util = require("util");
|
|
8508
8508
|
var zlib2 = require("zlib");
|
|
8509
8509
|
var ChunkStream = require_chunkstream();
|
|
8510
8510
|
var FilterAsync = require_filter_parse_async();
|
|
@@ -8527,7 +8527,7 @@ var require_parser_async = __commonJS({
|
|
|
8527
8527
|
this.writable = true;
|
|
8528
8528
|
this._parser.start();
|
|
8529
8529
|
};
|
|
8530
|
-
|
|
8530
|
+
util.inherits(ParserAsync, ChunkStream);
|
|
8531
8531
|
ParserAsync.prototype._handleError = function(err) {
|
|
8532
8532
|
this.emit("error", err);
|
|
8533
8533
|
this.writable = false;
|
|
@@ -8863,7 +8863,7 @@ var require_packer = __commonJS({
|
|
|
8863
8863
|
var require_packer_async = __commonJS({
|
|
8864
8864
|
"../../node_modules/pngjs-nozlib/lib/packer-async.js"(exports2, module2) {
|
|
8865
8865
|
"use strict";
|
|
8866
|
-
var
|
|
8866
|
+
var util = require("util");
|
|
8867
8867
|
var Stream2 = require("stream");
|
|
8868
8868
|
var constants = require_constants();
|
|
8869
8869
|
var Packer = require_packer();
|
|
@@ -8874,7 +8874,7 @@ var require_packer_async = __commonJS({
|
|
|
8874
8874
|
this._deflate = this._packer.createDeflate();
|
|
8875
8875
|
this.readable = true;
|
|
8876
8876
|
};
|
|
8877
|
-
|
|
8877
|
+
util.inherits(PackerAsync, Stream2);
|
|
8878
8878
|
PackerAsync.prototype.pack = function(data, width, height, gamma) {
|
|
8879
8879
|
this.emit("data", new Buffer(constants.PNG_SIGNATURE));
|
|
8880
8880
|
this.emit("data", this._packer.packIHDR(width, height));
|
|
@@ -9085,7 +9085,7 @@ var require_png_sync = __commonJS({
|
|
|
9085
9085
|
var require_png = __commonJS({
|
|
9086
9086
|
"../../node_modules/pngjs-nozlib/lib/png.js"(exports2) {
|
|
9087
9087
|
"use strict";
|
|
9088
|
-
var
|
|
9088
|
+
var util = require("util");
|
|
9089
9089
|
var Stream2 = require("stream");
|
|
9090
9090
|
var Parser = require_parser_async();
|
|
9091
9091
|
var Packer = require_packer_async();
|
|
@@ -9116,7 +9116,7 @@ var require_png = __commonJS({
|
|
|
9116
9116
|
this._parser.on("close", this._handleClose.bind(this));
|
|
9117
9117
|
this._packer.on("error", this.emit.bind(this, "error"));
|
|
9118
9118
|
};
|
|
9119
|
-
|
|
9119
|
+
util.inherits(PNG, Stream2);
|
|
9120
9120
|
PNG.sync = PNGSync;
|
|
9121
9121
|
PNG.prototype.pack = function() {
|
|
9122
9122
|
if (!this.data || !this.data.length) {
|
|
@@ -10672,7 +10672,7 @@ var require_save_pixels = __commonJS({
|
|
|
10672
10672
|
var require_chunkstream2 = __commonJS({
|
|
10673
10673
|
"../../node_modules/pngjs/lib/chunkstream.js"(exports2, module2) {
|
|
10674
10674
|
"use strict";
|
|
10675
|
-
var
|
|
10675
|
+
var util = require("util");
|
|
10676
10676
|
var Stream2 = require("stream");
|
|
10677
10677
|
var ChunkStream = module2.exports = function() {
|
|
10678
10678
|
Stream2.call(this);
|
|
@@ -10683,7 +10683,7 @@ var require_chunkstream2 = __commonJS({
|
|
|
10683
10683
|
this._encoding = "utf8";
|
|
10684
10684
|
this.writable = true;
|
|
10685
10685
|
};
|
|
10686
|
-
|
|
10686
|
+
util.inherits(ChunkStream, Stream2);
|
|
10687
10687
|
ChunkStream.prototype.read = function(length, callback) {
|
|
10688
10688
|
this._reads.push({
|
|
10689
10689
|
length: Math.abs(length),
|
|
@@ -11041,7 +11041,7 @@ var require_filter_parse2 = __commonJS({
|
|
|
11041
11041
|
var require_filter_parse_async2 = __commonJS({
|
|
11042
11042
|
"../../node_modules/pngjs/lib/filter-parse-async.js"(exports2, module2) {
|
|
11043
11043
|
"use strict";
|
|
11044
|
-
var
|
|
11044
|
+
var util = require("util");
|
|
11045
11045
|
var ChunkStream = require_chunkstream2();
|
|
11046
11046
|
var Filter = require_filter_parse2();
|
|
11047
11047
|
var FilterAsync = module2.exports = function(bitmapInfo) {
|
|
@@ -11059,7 +11059,7 @@ var require_filter_parse_async2 = __commonJS({
|
|
|
11059
11059
|
});
|
|
11060
11060
|
this._filter.start();
|
|
11061
11061
|
};
|
|
11062
|
-
|
|
11062
|
+
util.inherits(FilterAsync, ChunkStream);
|
|
11063
11063
|
}
|
|
11064
11064
|
});
|
|
11065
11065
|
|
|
@@ -11653,7 +11653,7 @@ var require_format_normaliser2 = __commonJS({
|
|
|
11653
11653
|
var require_parser_async2 = __commonJS({
|
|
11654
11654
|
"../../node_modules/pngjs/lib/parser-async.js"(exports2, module2) {
|
|
11655
11655
|
"use strict";
|
|
11656
|
-
var
|
|
11656
|
+
var util = require("util");
|
|
11657
11657
|
var zlib2 = require("zlib");
|
|
11658
11658
|
var ChunkStream = require_chunkstream2();
|
|
11659
11659
|
var FilterAsync = require_filter_parse_async2();
|
|
@@ -11678,7 +11678,7 @@ var require_parser_async2 = __commonJS({
|
|
|
11678
11678
|
this.writable = true;
|
|
11679
11679
|
this._parser.start();
|
|
11680
11680
|
};
|
|
11681
|
-
|
|
11681
|
+
util.inherits(ParserAsync, ChunkStream);
|
|
11682
11682
|
ParserAsync.prototype._handleError = function(err) {
|
|
11683
11683
|
this.emit("error", err);
|
|
11684
11684
|
this.writable = false;
|
|
@@ -12143,7 +12143,7 @@ var require_packer2 = __commonJS({
|
|
|
12143
12143
|
var require_packer_async2 = __commonJS({
|
|
12144
12144
|
"../../node_modules/pngjs/lib/packer-async.js"(exports2, module2) {
|
|
12145
12145
|
"use strict";
|
|
12146
|
-
var
|
|
12146
|
+
var util = require("util");
|
|
12147
12147
|
var Stream2 = require("stream");
|
|
12148
12148
|
var constants = require_constants2();
|
|
12149
12149
|
var Packer = require_packer2();
|
|
@@ -12154,7 +12154,7 @@ var require_packer_async2 = __commonJS({
|
|
|
12154
12154
|
this._deflate = this._packer.createDeflate();
|
|
12155
12155
|
this.readable = true;
|
|
12156
12156
|
};
|
|
12157
|
-
|
|
12157
|
+
util.inherits(PackerAsync, Stream2);
|
|
12158
12158
|
PackerAsync.prototype.pack = function(data, width, height, gamma) {
|
|
12159
12159
|
this.emit("data", new Buffer(constants.PNG_SIGNATURE));
|
|
12160
12160
|
this.emit("data", this._packer.packIHDR(width, height));
|
|
@@ -12181,7 +12181,7 @@ var require_sync_inflate = __commonJS({
|
|
|
12181
12181
|
"use strict";
|
|
12182
12182
|
var assert3 = require("assert").ok;
|
|
12183
12183
|
var zlib2 = require("zlib");
|
|
12184
|
-
var
|
|
12184
|
+
var util = require("util");
|
|
12185
12185
|
var kMaxLength = require("buffer").kMaxLength;
|
|
12186
12186
|
function Inflate(opts) {
|
|
12187
12187
|
if (!(this instanceof Inflate)) {
|
|
@@ -12272,7 +12272,7 @@ var require_sync_inflate = __commonJS({
|
|
|
12272
12272
|
_close(this);
|
|
12273
12273
|
return buf;
|
|
12274
12274
|
};
|
|
12275
|
-
|
|
12275
|
+
util.inherits(Inflate, zlib2.Inflate);
|
|
12276
12276
|
function zlibBufferSync(engine, buffer) {
|
|
12277
12277
|
if (typeof buffer === "string") {
|
|
12278
12278
|
buffer = Buffer.from(buffer);
|
|
@@ -12498,7 +12498,7 @@ var require_png_sync2 = __commonJS({
|
|
|
12498
12498
|
var require_png2 = __commonJS({
|
|
12499
12499
|
"../../node_modules/pngjs/lib/png.js"(exports2) {
|
|
12500
12500
|
"use strict";
|
|
12501
|
-
var
|
|
12501
|
+
var util = require("util");
|
|
12502
12502
|
var Stream2 = require("stream");
|
|
12503
12503
|
var Parser = require_parser_async2();
|
|
12504
12504
|
var Packer = require_packer_async2();
|
|
@@ -12529,7 +12529,7 @@ var require_png2 = __commonJS({
|
|
|
12529
12529
|
this._parser.on("close", this._handleClose.bind(this));
|
|
12530
12530
|
this._packer.on("error", this.emit.bind(this, "error"));
|
|
12531
12531
|
};
|
|
12532
|
-
|
|
12532
|
+
util.inherits(PNG, Stream2);
|
|
12533
12533
|
PNG.sync = PNGSync;
|
|
12534
12534
|
PNG.prototype.pack = function() {
|
|
12535
12535
|
if (!this.data || !this.data.length) {
|
|
@@ -23528,20 +23528,20 @@ var require_memstore = __commonJS({
|
|
|
23528
23528
|
var Store = require_store().Store;
|
|
23529
23529
|
var permuteDomain = require_permuteDomain().permuteDomain;
|
|
23530
23530
|
var pathMatch = require_pathMatch().pathMatch;
|
|
23531
|
-
var
|
|
23531
|
+
var util = require("util");
|
|
23532
23532
|
function MemoryCookieStore() {
|
|
23533
23533
|
Store.call(this);
|
|
23534
23534
|
this.idx = {};
|
|
23535
23535
|
}
|
|
23536
|
-
|
|
23536
|
+
util.inherits(MemoryCookieStore, Store);
|
|
23537
23537
|
exports2.MemoryCookieStore = MemoryCookieStore;
|
|
23538
23538
|
MemoryCookieStore.prototype.idx = null;
|
|
23539
23539
|
MemoryCookieStore.prototype.synchronous = true;
|
|
23540
23540
|
MemoryCookieStore.prototype.inspect = function() {
|
|
23541
|
-
return "{ idx: " +
|
|
23541
|
+
return "{ idx: " + util.inspect(this.idx, false, 2) + " }";
|
|
23542
23542
|
};
|
|
23543
|
-
if (
|
|
23544
|
-
MemoryCookieStore.prototype[
|
|
23543
|
+
if (util.inspect.custom) {
|
|
23544
|
+
MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
|
|
23545
23545
|
}
|
|
23546
23546
|
MemoryCookieStore.prototype.findCookie = function(domain, path2, key, cb) {
|
|
23547
23547
|
if (!this.idx[domain]) {
|
|
@@ -23659,7 +23659,7 @@ var require_cookie = __commonJS({
|
|
|
23659
23659
|
"use strict";
|
|
23660
23660
|
var net = require("net");
|
|
23661
23661
|
var urlParse = require("url").parse;
|
|
23662
|
-
var
|
|
23662
|
+
var util = require("util");
|
|
23663
23663
|
var pubsuffix = require_pubsuffix_psl();
|
|
23664
23664
|
var Store = require_store().Store;
|
|
23665
23665
|
var MemoryCookieStore = require_memstore().MemoryCookieStore;
|
|
@@ -24120,8 +24120,8 @@ var require_cookie = __commonJS({
|
|
|
24120
24120
|
var now = Date.now();
|
|
24121
24121
|
return 'Cookie="' + this.toString() + "; hostOnly=" + (this.hostOnly != null ? this.hostOnly : "?") + "; aAge=" + (this.lastAccessed ? now - this.lastAccessed.getTime() + "ms" : "?") + "; cAge=" + (this.creation ? now - this.creation.getTime() + "ms" : "?") + '"';
|
|
24122
24122
|
};
|
|
24123
|
-
if (
|
|
24124
|
-
Cookie.prototype[
|
|
24123
|
+
if (util.inspect.custom) {
|
|
24124
|
+
Cookie.prototype[util.inspect.custom] = Cookie.prototype.inspect;
|
|
24125
24125
|
}
|
|
24126
24126
|
Cookie.prototype.toJSON = function() {
|
|
24127
24127
|
var obj = {};
|
|
@@ -25303,14 +25303,14 @@ var require_assert = __commonJS({
|
|
|
25303
25303
|
"../../node_modules/assert-plus/assert.js"(exports2, module2) {
|
|
25304
25304
|
var assert3 = require("assert");
|
|
25305
25305
|
var Stream2 = require("stream").Stream;
|
|
25306
|
-
var
|
|
25306
|
+
var util = require("util");
|
|
25307
25307
|
var UUID_REGEXP = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
25308
25308
|
function _capitalize(str) {
|
|
25309
25309
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
25310
25310
|
}
|
|
25311
25311
|
function _toss(name, expected, oper, arg, actual) {
|
|
25312
25312
|
throw new assert3.AssertionError({
|
|
25313
|
-
message:
|
|
25313
|
+
message: util.format("%s (%s) is required", name, expected),
|
|
25314
25314
|
actual: actual === void 0 ? typeof arg : actual(arg),
|
|
25315
25315
|
expected,
|
|
25316
25316
|
operator: oper || "===",
|
|
@@ -25656,7 +25656,7 @@ var require_algs = __commonJS({
|
|
|
25656
25656
|
var require_errors = __commonJS({
|
|
25657
25657
|
"../../node_modules/sshpk/lib/errors.js"(exports2, module2) {
|
|
25658
25658
|
var assert3 = require_assert();
|
|
25659
|
-
var
|
|
25659
|
+
var util = require("util");
|
|
25660
25660
|
function FingerprintFormatError(fp, format) {
|
|
25661
25661
|
if (Error.captureStackTrace)
|
|
25662
25662
|
Error.captureStackTrace(this, FingerprintFormatError);
|
|
@@ -25669,7 +25669,7 @@ var require_errors = __commonJS({
|
|
|
25669
25669
|
if (format !== void 0)
|
|
25670
25670
|
this.message += " format = " + format;
|
|
25671
25671
|
}
|
|
25672
|
-
|
|
25672
|
+
util.inherits(FingerprintFormatError, Error);
|
|
25673
25673
|
function InvalidAlgorithmError(alg) {
|
|
25674
25674
|
if (Error.captureStackTrace)
|
|
25675
25675
|
Error.captureStackTrace(this, InvalidAlgorithmError);
|
|
@@ -25677,7 +25677,7 @@ var require_errors = __commonJS({
|
|
|
25677
25677
|
this.algorithm = alg;
|
|
25678
25678
|
this.message = 'Algorithm "' + alg + '" is not supported';
|
|
25679
25679
|
}
|
|
25680
|
-
|
|
25680
|
+
util.inherits(InvalidAlgorithmError, Error);
|
|
25681
25681
|
function KeyParseError(name, format, innerErr) {
|
|
25682
25682
|
if (Error.captureStackTrace)
|
|
25683
25683
|
Error.captureStackTrace(this, KeyParseError);
|
|
@@ -25687,7 +25687,7 @@ var require_errors = __commonJS({
|
|
|
25687
25687
|
this.innerErr = innerErr;
|
|
25688
25688
|
this.message = "Failed to parse " + name + " as a valid " + format + " format key: " + innerErr.message;
|
|
25689
25689
|
}
|
|
25690
|
-
|
|
25690
|
+
util.inherits(KeyParseError, Error);
|
|
25691
25691
|
function SignatureParseError(type, format, innerErr) {
|
|
25692
25692
|
if (Error.captureStackTrace)
|
|
25693
25693
|
Error.captureStackTrace(this, SignatureParseError);
|
|
@@ -25697,7 +25697,7 @@ var require_errors = __commonJS({
|
|
|
25697
25697
|
this.innerErr = innerErr;
|
|
25698
25698
|
this.message = "Failed to parse the given data as a " + type + " signature in " + format + " format: " + innerErr.message;
|
|
25699
25699
|
}
|
|
25700
|
-
|
|
25700
|
+
util.inherits(SignatureParseError, Error);
|
|
25701
25701
|
function CertificateParseError(name, format, innerErr) {
|
|
25702
25702
|
if (Error.captureStackTrace)
|
|
25703
25703
|
Error.captureStackTrace(this, CertificateParseError);
|
|
@@ -25707,7 +25707,7 @@ var require_errors = __commonJS({
|
|
|
25707
25707
|
this.innerErr = innerErr;
|
|
25708
25708
|
this.message = "Failed to parse " + name + " as a valid " + format + " format certificate: " + innerErr.message;
|
|
25709
25709
|
}
|
|
25710
|
-
|
|
25710
|
+
util.inherits(CertificateParseError, Error);
|
|
25711
25711
|
function KeyEncryptedError(name, format) {
|
|
25712
25712
|
if (Error.captureStackTrace)
|
|
25713
25713
|
Error.captureStackTrace(this, KeyEncryptedError);
|
|
@@ -25716,7 +25716,7 @@ var require_errors = __commonJS({
|
|
|
25716
25716
|
this.keyName = name;
|
|
25717
25717
|
this.message = "The " + format + " format key " + name + " is encrypted (password-protected), and no passphrase was provided in `options`";
|
|
25718
25718
|
}
|
|
25719
|
-
|
|
25719
|
+
util.inherits(KeyEncryptedError, Error);
|
|
25720
25720
|
module2.exports = {
|
|
25721
25721
|
FingerprintFormatError,
|
|
25722
25722
|
InvalidAlgorithmError,
|
|
@@ -31595,7 +31595,7 @@ var require_ed_compat = __commonJS({
|
|
|
31595
31595
|
};
|
|
31596
31596
|
var nacl = require_nacl_fast();
|
|
31597
31597
|
var stream = require("stream");
|
|
31598
|
-
var
|
|
31598
|
+
var util = require("util");
|
|
31599
31599
|
var assert3 = require_assert();
|
|
31600
31600
|
var Buffer2 = require_safer().Buffer;
|
|
31601
31601
|
var Signature = require_signature();
|
|
@@ -31606,7 +31606,7 @@ var require_ed_compat = __commonJS({
|
|
|
31606
31606
|
this.chunks = [];
|
|
31607
31607
|
stream.Writable.call(this, {});
|
|
31608
31608
|
}
|
|
31609
|
-
|
|
31609
|
+
util.inherits(Verifier, stream.Writable);
|
|
31610
31610
|
Verifier.prototype._write = function(chunk, enc, cb) {
|
|
31611
31611
|
this.chunks.push(chunk);
|
|
31612
31612
|
cb();
|
|
@@ -31637,7 +31637,7 @@ var require_ed_compat = __commonJS({
|
|
|
31637
31637
|
this.chunks = [];
|
|
31638
31638
|
stream.Writable.call(this, {});
|
|
31639
31639
|
}
|
|
31640
|
-
|
|
31640
|
+
util.inherits(Signer, stream.Writable);
|
|
31641
31641
|
Signer.prototype._write = function(chunk, enc, cb) {
|
|
31642
31642
|
this.chunks.push(chunk);
|
|
31643
31643
|
cb();
|
|
@@ -34889,7 +34889,7 @@ var require_private_key = __commonJS({
|
|
|
34889
34889
|
var Fingerprint = require_fingerprint();
|
|
34890
34890
|
var Signature = require_signature();
|
|
34891
34891
|
var errs = require_errors();
|
|
34892
|
-
var
|
|
34892
|
+
var util = require("util");
|
|
34893
34893
|
var utils = require_utils();
|
|
34894
34894
|
var dhe = require_dhe();
|
|
34895
34895
|
var generateECDSA = dhe.generateECDSA;
|
|
@@ -34916,7 +34916,7 @@ var require_private_key = __commonJS({
|
|
|
34916
34916
|
Key.call(this, opts);
|
|
34917
34917
|
this._pubCache = void 0;
|
|
34918
34918
|
}
|
|
34919
|
-
|
|
34919
|
+
util.inherits(PrivateKey, Key);
|
|
34920
34920
|
PrivateKey.formats = formats;
|
|
34921
34921
|
PrivateKey.prototype.toBuffer = function(format, options) {
|
|
34922
34922
|
if (format === void 0)
|
|
@@ -35092,7 +35092,7 @@ var require_identity = __commonJS({
|
|
|
35092
35092
|
var Fingerprint = require_fingerprint();
|
|
35093
35093
|
var Signature = require_signature();
|
|
35094
35094
|
var errs = require_errors();
|
|
35095
|
-
var
|
|
35095
|
+
var util = require("util");
|
|
35096
35096
|
var utils = require_utils();
|
|
35097
35097
|
var asn1 = require_lib2();
|
|
35098
35098
|
var Buffer2 = require_safer().Buffer;
|
|
@@ -36349,7 +36349,7 @@ var require_certificate = __commonJS({
|
|
|
36349
36349
|
var Fingerprint = require_fingerprint();
|
|
36350
36350
|
var Signature = require_signature();
|
|
36351
36351
|
var errs = require_errors();
|
|
36352
|
-
var
|
|
36352
|
+
var util = require("util");
|
|
36353
36353
|
var utils = require_utils();
|
|
36354
36354
|
var Key = require_key();
|
|
36355
36355
|
var PrivateKey = require_private_key();
|
|
@@ -37146,7 +37146,7 @@ var require_utils2 = __commonJS({
|
|
|
37146
37146
|
"../../node_modules/http-signature/lib/utils.js"(exports2, module2) {
|
|
37147
37147
|
var assert3 = require_assert();
|
|
37148
37148
|
var sshpk = require_lib3();
|
|
37149
|
-
var
|
|
37149
|
+
var util = require("util");
|
|
37150
37150
|
var HASH_ALGOS = {
|
|
37151
37151
|
"sha1": true,
|
|
37152
37152
|
"sha256": true,
|
|
@@ -37163,11 +37163,11 @@ var require_utils2 = __commonJS({
|
|
|
37163
37163
|
this.message = message;
|
|
37164
37164
|
this.name = caller.name;
|
|
37165
37165
|
}
|
|
37166
|
-
|
|
37166
|
+
util.inherits(HttpSignatureError, Error);
|
|
37167
37167
|
function InvalidAlgorithmError(message) {
|
|
37168
37168
|
HttpSignatureError.call(this, message, InvalidAlgorithmError);
|
|
37169
37169
|
}
|
|
37170
|
-
|
|
37170
|
+
util.inherits(InvalidAlgorithmError, HttpSignatureError);
|
|
37171
37171
|
function validateAlgorithm(algorithm) {
|
|
37172
37172
|
var alg = algorithm.toLowerCase().split("-");
|
|
37173
37173
|
if (alg.length !== 2) {
|
|
@@ -37211,7 +37211,7 @@ var require_utils2 = __commonJS({
|
|
|
37211
37211
|
var require_parser3 = __commonJS({
|
|
37212
37212
|
"../../node_modules/http-signature/lib/parser.js"(exports2, module2) {
|
|
37213
37213
|
var assert3 = require_assert();
|
|
37214
|
-
var
|
|
37214
|
+
var util = require("util");
|
|
37215
37215
|
var utils = require_utils2();
|
|
37216
37216
|
var HASH_ALGOS = utils.HASH_ALGOS;
|
|
37217
37217
|
var PK_ALGOS = utils.PK_ALGOS;
|
|
@@ -37231,23 +37231,23 @@ var require_parser3 = __commonJS({
|
|
|
37231
37231
|
function ExpiredRequestError(message) {
|
|
37232
37232
|
HttpSignatureError.call(this, message, ExpiredRequestError);
|
|
37233
37233
|
}
|
|
37234
|
-
|
|
37234
|
+
util.inherits(ExpiredRequestError, HttpSignatureError);
|
|
37235
37235
|
function InvalidHeaderError(message) {
|
|
37236
37236
|
HttpSignatureError.call(this, message, InvalidHeaderError);
|
|
37237
37237
|
}
|
|
37238
|
-
|
|
37238
|
+
util.inherits(InvalidHeaderError, HttpSignatureError);
|
|
37239
37239
|
function InvalidParamsError(message) {
|
|
37240
37240
|
HttpSignatureError.call(this, message, InvalidParamsError);
|
|
37241
37241
|
}
|
|
37242
|
-
|
|
37242
|
+
util.inherits(InvalidParamsError, HttpSignatureError);
|
|
37243
37243
|
function MissingHeaderError(message) {
|
|
37244
37244
|
HttpSignatureError.call(this, message, MissingHeaderError);
|
|
37245
37245
|
}
|
|
37246
|
-
|
|
37246
|
+
util.inherits(MissingHeaderError, HttpSignatureError);
|
|
37247
37247
|
function StrictParsingError(message) {
|
|
37248
37248
|
HttpSignatureError.call(this, message, StrictParsingError);
|
|
37249
37249
|
}
|
|
37250
|
-
|
|
37250
|
+
util.inherits(StrictParsingError, HttpSignatureError);
|
|
37251
37251
|
module2.exports = {
|
|
37252
37252
|
parseRequest: function parseRequest(request, options) {
|
|
37253
37253
|
assert3.object(request, "request");
|
|
@@ -38630,7 +38630,7 @@ var require_signer = __commonJS({
|
|
|
38630
38630
|
var assert3 = require_assert();
|
|
38631
38631
|
var crypto = require("crypto");
|
|
38632
38632
|
var http2 = require("http");
|
|
38633
|
-
var
|
|
38633
|
+
var util = require("util");
|
|
38634
38634
|
var sshpk = require_lib3();
|
|
38635
38635
|
var jsprim = require_jsprim();
|
|
38636
38636
|
var utils = require_utils2();
|
|
@@ -38644,11 +38644,11 @@ var require_signer = __commonJS({
|
|
|
38644
38644
|
function MissingHeaderError(message) {
|
|
38645
38645
|
HttpSignatureError.call(this, message, MissingHeaderError);
|
|
38646
38646
|
}
|
|
38647
|
-
|
|
38647
|
+
util.inherits(MissingHeaderError, HttpSignatureError);
|
|
38648
38648
|
function StrictParsingError(message) {
|
|
38649
38649
|
HttpSignatureError.call(this, message, StrictParsingError);
|
|
38650
38650
|
}
|
|
38651
|
-
|
|
38651
|
+
util.inherits(StrictParsingError, HttpSignatureError);
|
|
38652
38652
|
function RequestSigner(options) {
|
|
38653
38653
|
assert3.object(options, "options");
|
|
38654
38654
|
var alg = [];
|
|
@@ -47630,7 +47630,7 @@ var require_forever_agent = __commonJS({
|
|
|
47630
47630
|
"../../node_modules/forever-agent/index.js"(exports2, module2) {
|
|
47631
47631
|
module2.exports = ForeverAgent;
|
|
47632
47632
|
ForeverAgent.SSL = ForeverAgentSSL;
|
|
47633
|
-
var
|
|
47633
|
+
var util = require("util");
|
|
47634
47634
|
var Agent = require("http").Agent;
|
|
47635
47635
|
var net = require("net");
|
|
47636
47636
|
var tls = require("tls");
|
|
@@ -47670,7 +47670,7 @@ var require_forever_agent = __commonJS({
|
|
|
47670
47670
|
}
|
|
47671
47671
|
});
|
|
47672
47672
|
}
|
|
47673
|
-
|
|
47673
|
+
util.inherits(ForeverAgent, Agent);
|
|
47674
47674
|
ForeverAgent.defaultMinSockets = 5;
|
|
47675
47675
|
ForeverAgent.prototype.createConnection = net.createConnection;
|
|
47676
47676
|
ForeverAgent.prototype.addRequestNoreuse = Agent.prototype.addRequest;
|
|
@@ -47717,7 +47717,7 @@ var require_forever_agent = __commonJS({
|
|
|
47717
47717
|
function ForeverAgentSSL(options) {
|
|
47718
47718
|
ForeverAgent.call(this, options);
|
|
47719
47719
|
}
|
|
47720
|
-
|
|
47720
|
+
util.inherits(ForeverAgentSSL, ForeverAgent);
|
|
47721
47721
|
ForeverAgentSSL.prototype.createConnection = createConnectionSSL;
|
|
47722
47722
|
ForeverAgentSSL.prototype.addRequestNoreuse = AgentSSL.prototype.addRequest;
|
|
47723
47723
|
function createConnectionSSL(port, host, options) {
|
|
@@ -47745,7 +47745,7 @@ var require_forever_agent = __commonJS({
|
|
|
47745
47745
|
var require_delayed_stream = __commonJS({
|
|
47746
47746
|
"../../node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
|
|
47747
47747
|
var Stream2 = require("stream").Stream;
|
|
47748
|
-
var
|
|
47748
|
+
var util = require("util");
|
|
47749
47749
|
module2.exports = DelayedStream;
|
|
47750
47750
|
function DelayedStream() {
|
|
47751
47751
|
this.source = null;
|
|
@@ -47756,7 +47756,7 @@ var require_delayed_stream = __commonJS({
|
|
|
47756
47756
|
this._released = false;
|
|
47757
47757
|
this._bufferedEvents = [];
|
|
47758
47758
|
}
|
|
47759
|
-
|
|
47759
|
+
util.inherits(DelayedStream, Stream2);
|
|
47760
47760
|
DelayedStream.create = function(source, options) {
|
|
47761
47761
|
var delayedStream = new this();
|
|
47762
47762
|
options = options || {};
|
|
@@ -47835,7 +47835,7 @@ var require_delayed_stream = __commonJS({
|
|
|
47835
47835
|
// ../../node_modules/combined-stream/lib/combined_stream.js
|
|
47836
47836
|
var require_combined_stream = __commonJS({
|
|
47837
47837
|
"../../node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
|
|
47838
|
-
var
|
|
47838
|
+
var util = require("util");
|
|
47839
47839
|
var Stream2 = require("stream").Stream;
|
|
47840
47840
|
var DelayedStream = require_delayed_stream();
|
|
47841
47841
|
module2.exports = CombinedStream;
|
|
@@ -47851,7 +47851,7 @@ var require_combined_stream = __commonJS({
|
|
|
47851
47851
|
this._insideLoop = false;
|
|
47852
47852
|
this._pendingNext = false;
|
|
47853
47853
|
}
|
|
47854
|
-
|
|
47854
|
+
util.inherits(CombinedStream, Stream2);
|
|
47855
47855
|
CombinedStream.create = function(options) {
|
|
47856
47856
|
var combinedStream = new this();
|
|
47857
47857
|
options = options || {};
|
|
@@ -48228,17 +48228,17 @@ var require_populate = __commonJS({
|
|
|
48228
48228
|
var require_form_data = __commonJS({
|
|
48229
48229
|
"../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
48230
48230
|
var CombinedStream = require_combined_stream();
|
|
48231
|
-
var
|
|
48231
|
+
var util = require("util");
|
|
48232
48232
|
var path2 = require("path");
|
|
48233
48233
|
var http2 = require("http");
|
|
48234
48234
|
var https2 = require("https");
|
|
48235
48235
|
var parseUrl = require("url").parse;
|
|
48236
|
-
var
|
|
48236
|
+
var fs2 = require("fs");
|
|
48237
48237
|
var mime = require_mime_types();
|
|
48238
48238
|
var asynckit = require_asynckit();
|
|
48239
48239
|
var populate = require_populate();
|
|
48240
48240
|
module2.exports = FormData;
|
|
48241
|
-
|
|
48241
|
+
util.inherits(FormData, CombinedStream);
|
|
48242
48242
|
function FormData(options) {
|
|
48243
48243
|
if (!(this instanceof FormData)) {
|
|
48244
48244
|
return new FormData();
|
|
@@ -48263,7 +48263,7 @@ var require_form_data = __commonJS({
|
|
|
48263
48263
|
if (typeof value == "number") {
|
|
48264
48264
|
value = "" + value;
|
|
48265
48265
|
}
|
|
48266
|
-
if (
|
|
48266
|
+
if (util.isArray(value)) {
|
|
48267
48267
|
this._error(new Error("Arrays are not supported."));
|
|
48268
48268
|
return;
|
|
48269
48269
|
}
|
|
@@ -48297,7 +48297,7 @@ var require_form_data = __commonJS({
|
|
|
48297
48297
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
48298
48298
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
48299
48299
|
} else {
|
|
48300
|
-
|
|
48300
|
+
fs2.stat(value.path, function(err, stat) {
|
|
48301
48301
|
var fileSize;
|
|
48302
48302
|
if (err) {
|
|
48303
48303
|
callback(err);
|
|
@@ -50407,10 +50407,10 @@ var require_util3 = __commonJS({
|
|
|
50407
50407
|
var require_schema_obj = __commonJS({
|
|
50408
50408
|
"../../node_modules/ajv/lib/compile/schema_obj.js"(exports2, module2) {
|
|
50409
50409
|
"use strict";
|
|
50410
|
-
var
|
|
50410
|
+
var util = require_util3();
|
|
50411
50411
|
module2.exports = SchemaObject;
|
|
50412
50412
|
function SchemaObject(obj) {
|
|
50413
|
-
|
|
50413
|
+
util.copy(obj, this);
|
|
50414
50414
|
}
|
|
50415
50415
|
}
|
|
50416
50416
|
});
|
|
@@ -50505,7 +50505,7 @@ var require_resolve = __commonJS({
|
|
|
50505
50505
|
"use strict";
|
|
50506
50506
|
var URI = require_uri_all();
|
|
50507
50507
|
var equal = require_fast_deep_equal();
|
|
50508
|
-
var
|
|
50508
|
+
var util = require_util3();
|
|
50509
50509
|
var SchemaObject = require_schema_obj();
|
|
50510
50510
|
var traverse = require_json_schema_traverse();
|
|
50511
50511
|
module2.exports = resolve;
|
|
@@ -50582,7 +50582,7 @@ var require_resolve = __commonJS({
|
|
|
50582
50582
|
return getJsonPointer.call(this, parsedRef, baseId, schema, root);
|
|
50583
50583
|
}
|
|
50584
50584
|
}
|
|
50585
|
-
var PREVENT_SCOPE_CHANGE =
|
|
50585
|
+
var PREVENT_SCOPE_CHANGE = util.toHash(["properties", "patternProperties", "enum", "dependencies", "definitions"]);
|
|
50586
50586
|
function getJsonPointer(parsedRef, baseId, schema, root) {
|
|
50587
50587
|
parsedRef.fragment = parsedRef.fragment || "";
|
|
50588
50588
|
if (parsedRef.fragment.slice(0, 1) != "/")
|
|
@@ -50591,7 +50591,7 @@ var require_resolve = __commonJS({
|
|
|
50591
50591
|
for (var i = 1; i < parts.length; i++) {
|
|
50592
50592
|
var part = parts[i];
|
|
50593
50593
|
if (part) {
|
|
50594
|
-
part =
|
|
50594
|
+
part = util.unescapeFragment(part);
|
|
50595
50595
|
schema = schema[part];
|
|
50596
50596
|
if (schema === void 0)
|
|
50597
50597
|
break;
|
|
@@ -50615,7 +50615,7 @@ var require_resolve = __commonJS({
|
|
|
50615
50615
|
if (schema !== void 0 && schema !== root.schema)
|
|
50616
50616
|
return { schema, root, baseId };
|
|
50617
50617
|
}
|
|
50618
|
-
var SIMPLE_INLINED =
|
|
50618
|
+
var SIMPLE_INLINED = util.toHash([
|
|
50619
50619
|
"type",
|
|
50620
50620
|
"format",
|
|
50621
50621
|
"pattern",
|
|
@@ -50716,7 +50716,7 @@ var require_resolve = __commonJS({
|
|
|
50716
50716
|
var baseId = baseIds[parentJsonPtr];
|
|
50717
50717
|
var fullPath = fullPaths[parentJsonPtr] + "/" + parentKeyword;
|
|
50718
50718
|
if (keyIndex !== void 0)
|
|
50719
|
-
fullPath += "/" + (typeof keyIndex == "number" ? keyIndex :
|
|
50719
|
+
fullPath += "/" + (typeof keyIndex == "number" ? keyIndex : util.escapeFragment(keyIndex));
|
|
50720
50720
|
if (typeof id == "string") {
|
|
50721
50721
|
id = baseId = normalizeId(baseId ? URI.resolve(baseId, id) : id);
|
|
50722
50722
|
var refVal = self2._refs[id];
|
|
@@ -51315,11 +51315,11 @@ var require_compile2 = __commonJS({
|
|
|
51315
51315
|
"../../node_modules/ajv/lib/compile/index.js"(exports2, module2) {
|
|
51316
51316
|
"use strict";
|
|
51317
51317
|
var resolve = require_resolve();
|
|
51318
|
-
var
|
|
51318
|
+
var util = require_util3();
|
|
51319
51319
|
var errorClasses = require_error_classes();
|
|
51320
51320
|
var stableStringify = require_fast_json_stable_stringify();
|
|
51321
51321
|
var validateGenerator = require_validate2();
|
|
51322
|
-
var ucs2length =
|
|
51322
|
+
var ucs2length = util.ucs2length;
|
|
51323
51323
|
var equal = require_fast_deep_equal();
|
|
51324
51324
|
var ValidationError = errorClasses.Validation;
|
|
51325
51325
|
module2.exports = compile;
|
|
@@ -51373,7 +51373,7 @@ var require_compile2 = __commonJS({
|
|
|
51373
51373
|
MissingRefError: errorClasses.MissingRef,
|
|
51374
51374
|
RULES,
|
|
51375
51375
|
validate: validateGenerator,
|
|
51376
|
-
util
|
|
51376
|
+
util,
|
|
51377
51377
|
resolve,
|
|
51378
51378
|
resolveRef,
|
|
51379
51379
|
usePattern,
|
|
@@ -51474,7 +51474,7 @@ var require_compile2 = __commonJS({
|
|
|
51474
51474
|
case "number":
|
|
51475
51475
|
return "" + value;
|
|
51476
51476
|
case "string":
|
|
51477
|
-
return
|
|
51477
|
+
return util.toQuotedString(value);
|
|
51478
51478
|
case "object":
|
|
51479
51479
|
if (value === null)
|
|
51480
51480
|
return "null";
|
|
@@ -51557,7 +51557,7 @@ var require_compile2 = __commonJS({
|
|
|
51557
51557
|
return -1;
|
|
51558
51558
|
}
|
|
51559
51559
|
function patternCode(i, patterns) {
|
|
51560
|
-
return "var pattern" + i + " = new RegExp(" +
|
|
51560
|
+
return "var pattern" + i + " = new RegExp(" + util.toQuotedString(patterns[i]) + ");";
|
|
51561
51561
|
}
|
|
51562
51562
|
function defaultCode(i) {
|
|
51563
51563
|
return "var default" + i + " = defaults[" + i + "];";
|
|
@@ -51605,7 +51605,7 @@ var require_cache = __commonJS({
|
|
|
51605
51605
|
var require_formats2 = __commonJS({
|
|
51606
51606
|
"../../node_modules/ajv/lib/compile/formats.js"(exports2, module2) {
|
|
51607
51607
|
"use strict";
|
|
51608
|
-
var
|
|
51608
|
+
var util = require_util3();
|
|
51609
51609
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
51610
51610
|
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
51611
51611
|
var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
|
|
@@ -51621,7 +51621,7 @@ var require_formats2 = __commonJS({
|
|
|
51621
51621
|
module2.exports = formats;
|
|
51622
51622
|
function formats(mode) {
|
|
51623
51623
|
mode = mode == "full" ? "full" : "fast";
|
|
51624
|
-
return
|
|
51624
|
+
return util.copy(formats[mode]);
|
|
51625
51625
|
}
|
|
51626
51626
|
formats.fast = {
|
|
51627
51627
|
date: /^\d\d\d\d-[0-1]\d-[0-3]\d$/,
|
|
@@ -55061,7 +55061,7 @@ var require_ajv = __commonJS({
|
|
|
55061
55061
|
var formats = require_formats2();
|
|
55062
55062
|
var rules = require_rules2();
|
|
55063
55063
|
var $dataMetaSchema = require_data();
|
|
55064
|
-
var
|
|
55064
|
+
var util = require_util3();
|
|
55065
55065
|
module2.exports = Ajv;
|
|
55066
55066
|
Ajv.prototype.validate = validate;
|
|
55067
55067
|
Ajv.prototype.compile = compile;
|
|
@@ -55090,7 +55090,7 @@ var require_ajv = __commonJS({
|
|
|
55090
55090
|
function Ajv(opts) {
|
|
55091
55091
|
if (!(this instanceof Ajv))
|
|
55092
55092
|
return new Ajv(opts);
|
|
55093
|
-
opts = this._opts =
|
|
55093
|
+
opts = this._opts = util.copy(opts) || {};
|
|
55094
55094
|
setLogger(this);
|
|
55095
55095
|
this._schemas = {};
|
|
55096
55096
|
this._refs = {};
|
|
@@ -55409,7 +55409,7 @@ var require_ajv = __commonJS({
|
|
|
55409
55409
|
throw new Error('schema with key or id "' + id + '" already exists');
|
|
55410
55410
|
}
|
|
55411
55411
|
function getMetaSchemaOptions(self2) {
|
|
55412
|
-
var metaOpts =
|
|
55412
|
+
var metaOpts = util.copy(self2._opts);
|
|
55413
55413
|
for (var i = 0; i < META_IGNORE_OPTIONS.length; i++)
|
|
55414
55414
|
delete metaOpts[META_IGNORE_OPTIONS[i]];
|
|
55415
55415
|
return metaOpts;
|
|
@@ -56404,7 +56404,7 @@ var require_promise = __commonJS({
|
|
|
56404
56404
|
var require_har2 = __commonJS({
|
|
56405
56405
|
"../../node_modules/request/lib/har.js"(exports2) {
|
|
56406
56406
|
"use strict";
|
|
56407
|
-
var
|
|
56407
|
+
var fs2 = require("fs");
|
|
56408
56408
|
var qs = require("querystring");
|
|
56409
56409
|
var validate = require_promise();
|
|
56410
56410
|
var extend = require_extend();
|
|
@@ -56538,7 +56538,7 @@ var require_har2 = __commonJS({
|
|
|
56538
56538
|
return;
|
|
56539
56539
|
}
|
|
56540
56540
|
if (param.fileName && !param.value) {
|
|
56541
|
-
attachment.value =
|
|
56541
|
+
attachment.value = fs2.createReadStream(param.fileName);
|
|
56542
56542
|
} else if (param.value) {
|
|
56543
56543
|
attachment.value = param.value;
|
|
56544
56544
|
}
|
|
@@ -57295,7 +57295,7 @@ var require_tunnel_agent = __commonJS({
|
|
|
57295
57295
|
var https2 = require("https");
|
|
57296
57296
|
var events = require("events");
|
|
57297
57297
|
var assert3 = require("assert");
|
|
57298
|
-
var
|
|
57298
|
+
var util = require("util");
|
|
57299
57299
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
57300
57300
|
exports2.httpOverHttp = httpOverHttp;
|
|
57301
57301
|
exports2.httpsOverHttp = httpsOverHttp;
|
|
@@ -57345,7 +57345,7 @@ var require_tunnel_agent = __commonJS({
|
|
|
57345
57345
|
self2.removeSocket(socket);
|
|
57346
57346
|
});
|
|
57347
57347
|
}
|
|
57348
|
-
|
|
57348
|
+
util.inherits(TunnelingAgent, events.EventEmitter);
|
|
57349
57349
|
TunnelingAgent.prototype.addRequest = function addRequest(req, options) {
|
|
57350
57350
|
var self2 = this;
|
|
57351
57351
|
if (typeof options === "string") {
|
|
@@ -57673,7 +57673,7 @@ var require_request2 = __commonJS({
|
|
|
57673
57673
|
var http2 = require("http");
|
|
57674
57674
|
var https2 = require("https");
|
|
57675
57675
|
var url = require("url");
|
|
57676
|
-
var
|
|
57676
|
+
var util = require("util");
|
|
57677
57677
|
var stream = require("stream");
|
|
57678
57678
|
var zlib2 = require("zlib");
|
|
57679
57679
|
var aws2 = require_aws_sign2();
|
|
@@ -57769,11 +57769,11 @@ var require_request2 = __commonJS({
|
|
|
57769
57769
|
self2._tunnel = new Tunnel(self2);
|
|
57770
57770
|
self2.init(options);
|
|
57771
57771
|
}
|
|
57772
|
-
|
|
57772
|
+
util.inherits(Request, stream.Stream);
|
|
57773
57773
|
Request.debug = process.env.NODE_DEBUG && /\brequest\b/.test(process.env.NODE_DEBUG);
|
|
57774
57774
|
function debug() {
|
|
57775
57775
|
if (Request.debug) {
|
|
57776
|
-
console.error("REQUEST %s",
|
|
57776
|
+
console.error("REQUEST %s", util.format.apply(util, arguments));
|
|
57777
57777
|
}
|
|
57778
57778
|
}
|
|
57779
57779
|
Request.prototype.debug = debug;
|
|
@@ -59086,7 +59086,7 @@ var require_node_pixels = __commonJS({
|
|
|
59086
59086
|
var pack = require_convert();
|
|
59087
59087
|
var GifReader = require_omggif().GifReader;
|
|
59088
59088
|
var Bitmap = require_node_bitmap();
|
|
59089
|
-
var
|
|
59089
|
+
var fs2 = require("fs");
|
|
59090
59090
|
var request = require_request3();
|
|
59091
59091
|
var mime = require_mime_types();
|
|
59092
59092
|
var parseDataURI = require_parse_data_uri();
|
|
@@ -59238,7 +59238,7 @@ var require_node_pixels = __commonJS({
|
|
|
59238
59238
|
doParse(type, body, cb);
|
|
59239
59239
|
});
|
|
59240
59240
|
} else {
|
|
59241
|
-
|
|
59241
|
+
fs2.readFile(url, function(err, data) {
|
|
59242
59242
|
if (err) {
|
|
59243
59243
|
cb(err);
|
|
59244
59244
|
return;
|
|
@@ -63182,7 +63182,7 @@ var require_polyfill = __commonJS({
|
|
|
63182
63182
|
});
|
|
63183
63183
|
|
|
63184
63184
|
// ../worker-utils/src/lib/env-utils/version.ts
|
|
63185
|
-
var VERSION = true ? "3.3.
|
|
63185
|
+
var VERSION = true ? "3.3.1" : DEFAULT_VERSION;
|
|
63186
63186
|
if (false) {
|
|
63187
63187
|
console.error("loaders.gl: The __VERSION__ variable is not injected using babel plugin. Latest unstable workers would be fetched from the CDN.");
|
|
63188
63188
|
}
|
|
@@ -63360,7 +63360,7 @@ function requireFromString(code, filename = "", options) {
|
|
|
63360
63360
|
}
|
|
63361
63361
|
|
|
63362
63362
|
// ../worker-utils/src/lib/library-utils/library-utils.ts
|
|
63363
|
-
var LATEST = "
|
|
63363
|
+
var LATEST = "latest";
|
|
63364
63364
|
var VERSION2 = typeof VERSION !== "undefined" ? VERSION : LATEST;
|
|
63365
63365
|
var loadLibraryPromises = {};
|
|
63366
63366
|
async function loadLibrary(libraryUrl, moduleName = null, options = {}) {
|
|
@@ -65124,9 +65124,6 @@ function assert2(condition, message) {
|
|
|
65124
65124
|
}
|
|
65125
65125
|
|
|
65126
65126
|
// ../polyfills/src/node/fetch/utils/stream-utils.node.ts
|
|
65127
|
-
var import_fs = __toModule(require("fs"));
|
|
65128
|
-
var import_http = __toModule(require("http"));
|
|
65129
|
-
var import_https = __toModule(require("https"));
|
|
65130
65127
|
var import_zlib = __toModule(require("zlib"));
|
|
65131
65128
|
|
|
65132
65129
|
// ../polyfills/src/node/fetch/utils/decode-data-uri.node.ts
|
|
@@ -65173,26 +65170,6 @@ function toArrayBuffer(data) {
|
|
|
65173
65170
|
}
|
|
65174
65171
|
|
|
65175
65172
|
// ../polyfills/src/node/fetch/utils/stream-utils.node.ts
|
|
65176
|
-
function isRequestURL(url) {
|
|
65177
|
-
return url.startsWith("http:") || url.startsWith("https:");
|
|
65178
|
-
}
|
|
65179
|
-
async function createReadStream(url, options) {
|
|
65180
|
-
if (!isRequestURL(url)) {
|
|
65181
|
-
const noqueryUrl = url.split("?")[0];
|
|
65182
|
-
return await new Promise((resolve, reject) => {
|
|
65183
|
-
const stream = import_fs.default.createReadStream(noqueryUrl, { encoding: null });
|
|
65184
|
-
stream.once("readable", () => resolve(stream));
|
|
65185
|
-
stream.on("error", (error) => reject(error));
|
|
65186
|
-
});
|
|
65187
|
-
}
|
|
65188
|
-
return await new Promise((resolve, reject) => {
|
|
65189
|
-
const requestFunction = url.startsWith("https:") ? import_https.default.request : import_http.default.request;
|
|
65190
|
-
const requestOptions = getRequestOptions(url, options);
|
|
65191
|
-
const req = requestFunction(requestOptions, (res) => resolve(res));
|
|
65192
|
-
req.on("error", (error) => reject(error));
|
|
65193
|
-
req.end();
|
|
65194
|
-
});
|
|
65195
|
-
}
|
|
65196
65173
|
function decompressReadStream(readStream, headers) {
|
|
65197
65174
|
switch (headers.get("content-encoding")) {
|
|
65198
65175
|
case "br":
|
|
@@ -65222,23 +65199,6 @@ async function concatenateReadStream(readStream) {
|
|
|
65222
65199
|
});
|
|
65223
65200
|
});
|
|
65224
65201
|
}
|
|
65225
|
-
function getRequestOptions(url, options) {
|
|
65226
|
-
const originalHeaders = (options == null ? void 0 : options.headers) || {};
|
|
65227
|
-
const headers = {};
|
|
65228
|
-
for (const key of Object.keys(originalHeaders)) {
|
|
65229
|
-
headers[key.toLowerCase()] = originalHeaders[key];
|
|
65230
|
-
}
|
|
65231
|
-
headers["accept-encoding"] = headers["accept-encoding"] || "gzip,br,deflate";
|
|
65232
|
-
const urlObject = new URL(url);
|
|
65233
|
-
return __spreadProps(__spreadValues(__spreadValues({
|
|
65234
|
-
hostname: urlObject.hostname,
|
|
65235
|
-
path: urlObject.pathname,
|
|
65236
|
-
method: "GET"
|
|
65237
|
-
}, options), options == null ? void 0 : options.fetch), {
|
|
65238
|
-
headers,
|
|
65239
|
-
port: urlObject.port
|
|
65240
|
-
});
|
|
65241
|
-
}
|
|
65242
65202
|
function concatenateArrayBuffers(sources) {
|
|
65243
65203
|
const sourceArrays = sources.map((source2) => source2 instanceof ArrayBuffer ? new Uint8Array(source2) : source2);
|
|
65244
65204
|
const byteLength = sourceArrays.reduce((length, typedArray) => length + typedArray.byteLength, 0);
|
|
@@ -65305,11 +65265,51 @@ var Response = class {
|
|
|
65305
65265
|
};
|
|
65306
65266
|
|
|
65307
65267
|
// ../polyfills/src/node/fetch/fetch.node.ts
|
|
65308
|
-
var
|
|
65268
|
+
var import_http = __toModule(require("http"));
|
|
65269
|
+
var import_https = __toModule(require("https"));
|
|
65270
|
+
|
|
65271
|
+
// ../polyfills/src/node/fetch/fetch-file.node.ts
|
|
65272
|
+
var import_fs = __toModule(require("fs"));
|
|
65273
|
+
async function fetchFileNode(url, options) {
|
|
65274
|
+
const noqueryUrl = url.split("?")[0];
|
|
65275
|
+
try {
|
|
65276
|
+
const body = await new Promise((resolve, reject) => {
|
|
65277
|
+
const stream = import_fs.default.createReadStream(noqueryUrl, { encoding: null });
|
|
65278
|
+
stream.once("readable", () => resolve(stream));
|
|
65279
|
+
stream.on("error", (error) => reject(error));
|
|
65280
|
+
});
|
|
65281
|
+
const status = 200;
|
|
65282
|
+
const statusText = "OK";
|
|
65283
|
+
const headers = getHeadersForFile(noqueryUrl);
|
|
65284
|
+
return new Response(body, { headers, status, statusText, url });
|
|
65285
|
+
} catch (error) {
|
|
65286
|
+
const status = 400;
|
|
65287
|
+
const statusText = error.message;
|
|
65288
|
+
const headers = {};
|
|
65289
|
+
return new Response(error.message, { headers, status, statusText, url });
|
|
65290
|
+
}
|
|
65291
|
+
}
|
|
65292
|
+
function getHeadersForFile(noqueryUrl) {
|
|
65293
|
+
const headers = {};
|
|
65294
|
+
if (!headers["content-length"]) {
|
|
65295
|
+
const stats = import_fs.default.statSync(noqueryUrl);
|
|
65296
|
+
headers["content-length"] = stats.size;
|
|
65297
|
+
}
|
|
65298
|
+
if (noqueryUrl.endsWith(".gz")) {
|
|
65299
|
+
noqueryUrl = noqueryUrl.slice(0, -3);
|
|
65300
|
+
headers["content-encoding"] = "gzip";
|
|
65301
|
+
}
|
|
65302
|
+
return new Headers(headers);
|
|
65303
|
+
}
|
|
65304
|
+
|
|
65305
|
+
// ../polyfills/src/node/fetch/fetch.node.ts
|
|
65309
65306
|
var isDataURL = (url) => url.startsWith("data:");
|
|
65310
|
-
var
|
|
65307
|
+
var isRequestURL = (url) => url.startsWith("http:") || url.startsWith("https:");
|
|
65311
65308
|
async function fetchNode(url, options) {
|
|
65312
65309
|
try {
|
|
65310
|
+
if (!isRequestURL(url) && !isDataURL(url)) {
|
|
65311
|
+
return await fetchFileNode(url, options);
|
|
65312
|
+
}
|
|
65313
65313
|
if (isDataURL(url)) {
|
|
65314
65314
|
const { arrayBuffer, mimeType } = decodeDataUri(url);
|
|
65315
65315
|
const response = new Response(arrayBuffer, {
|
|
@@ -65324,7 +65324,7 @@ async function fetchNode(url, options) {
|
|
|
65324
65324
|
url = url.slice(0, -3);
|
|
65325
65325
|
syntheticResponseHeaders["content-encoding"] = "gzip";
|
|
65326
65326
|
}
|
|
65327
|
-
const body = await
|
|
65327
|
+
const body = await createHTTPRequestReadStream(originalUrl, options);
|
|
65328
65328
|
const headers = getHeaders(url, body, syntheticResponseHeaders);
|
|
65329
65329
|
const { status, statusText } = getStatus(body);
|
|
65330
65330
|
const followRedirect = !options || options.followRedirect || options.followRedirect === void 0;
|
|
@@ -65337,6 +65337,14 @@ async function fetchNode(url, options) {
|
|
|
65337
65337
|
return new Response(null, { status: 400, statusText: String(error), url });
|
|
65338
65338
|
}
|
|
65339
65339
|
}
|
|
65340
|
+
async function createHTTPRequestReadStream(url, options) {
|
|
65341
|
+
return await new Promise((resolve, reject) => {
|
|
65342
|
+
const requestOptions = getRequestOptions(url, options);
|
|
65343
|
+
const req = url.startsWith("https:") ? import_https.default.request(requestOptions, (res) => resolve(res)) : import_http.default.request(requestOptions, (res) => resolve(res));
|
|
65344
|
+
req.on("error", (error) => reject(error));
|
|
65345
|
+
req.end();
|
|
65346
|
+
});
|
|
65347
|
+
}
|
|
65340
65348
|
function generateRedirectUrl(originalUrl, location) {
|
|
65341
65349
|
if (location.startsWith("http")) {
|
|
65342
65350
|
return location;
|
|
@@ -65345,6 +65353,23 @@ function generateRedirectUrl(originalUrl, location) {
|
|
|
65345
65353
|
url.pathname = location;
|
|
65346
65354
|
return url.href;
|
|
65347
65355
|
}
|
|
65356
|
+
function getRequestOptions(url, options) {
|
|
65357
|
+
const originalHeaders = (options == null ? void 0 : options.headers) || {};
|
|
65358
|
+
const headers = {};
|
|
65359
|
+
for (const key of Object.keys(originalHeaders)) {
|
|
65360
|
+
headers[key.toLowerCase()] = originalHeaders[key];
|
|
65361
|
+
}
|
|
65362
|
+
headers["accept-encoding"] = headers["accept-encoding"] || "gzip,br,deflate";
|
|
65363
|
+
const urlObject = new URL(url);
|
|
65364
|
+
return __spreadProps(__spreadValues(__spreadValues({
|
|
65365
|
+
hostname: urlObject.hostname,
|
|
65366
|
+
path: urlObject.pathname,
|
|
65367
|
+
method: "GET"
|
|
65368
|
+
}, options), options == null ? void 0 : options.fetch), {
|
|
65369
|
+
headers,
|
|
65370
|
+
port: urlObject.port
|
|
65371
|
+
});
|
|
65372
|
+
}
|
|
65348
65373
|
function getStatus(httpResponse) {
|
|
65349
65374
|
if (httpResponse.statusCode) {
|
|
65350
65375
|
return { status: httpResponse.statusCode, statusText: httpResponse.statusMessage || "NA" };
|
|
@@ -65370,18 +65395,7 @@ function getHeaders(url, httpResponse, additionalHeaders = {}) {
|
|
|
65370
65395
|
return new Headers(headers);
|
|
65371
65396
|
}
|
|
65372
65397
|
function getContentLength(url) {
|
|
65373
|
-
|
|
65374
|
-
return null;
|
|
65375
|
-
} else if (isDataURL(url)) {
|
|
65376
|
-
return url.length - "data:".length;
|
|
65377
|
-
}
|
|
65378
|
-
try {
|
|
65379
|
-
const noqueryUrl = url.split("?")[0];
|
|
65380
|
-
const stats = import_fs2.default.statSync(noqueryUrl);
|
|
65381
|
-
return stats.size;
|
|
65382
|
-
} catch (error) {
|
|
65383
|
-
}
|
|
65384
|
-
return null;
|
|
65398
|
+
return isDataURL(url) ? url.length - "data:".length : null;
|
|
65385
65399
|
}
|
|
65386
65400
|
|
|
65387
65401
|
// ../polyfills/src/node/images/encode-image.node.ts
|
|
@@ -65417,23 +65431,31 @@ function encodeImageNode(image, options) {
|
|
|
65417
65431
|
|
|
65418
65432
|
// ../polyfills/src/node/images/parse-image.node.ts
|
|
65419
65433
|
var import_get_pixels = __toModule(require_node_pixels());
|
|
65420
|
-
var import_util = __toModule(require("util"));
|
|
65421
65434
|
async function parseImageNode(arrayBuffer, mimeType) {
|
|
65422
|
-
|
|
65423
|
-
|
|
65435
|
+
if (!mimeType) {
|
|
65436
|
+
throw new Error("MIMEType is required to parse image under Node.js");
|
|
65437
|
+
}
|
|
65424
65438
|
const buffer = arrayBuffer instanceof Buffer ? arrayBuffer : Buffer.from(arrayBuffer);
|
|
65425
65439
|
const ndarray2 = await getPixelsAsync(buffer, mimeType);
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
return {
|
|
65430
|
-
|
|
65431
|
-
|
|
65432
|
-
|
|
65433
|
-
|
|
65434
|
-
|
|
65435
|
-
|
|
65436
|
-
|
|
65440
|
+
return ndarray2;
|
|
65441
|
+
}
|
|
65442
|
+
function getPixelsAsync(buffer, mimeType) {
|
|
65443
|
+
return new Promise((resolve) => (0, import_get_pixels.default)(buffer, mimeType, (err, ndarray2) => {
|
|
65444
|
+
if (err) {
|
|
65445
|
+
throw err;
|
|
65446
|
+
}
|
|
65447
|
+
const shape = [...ndarray2.shape];
|
|
65448
|
+
const layers = ndarray2.shape.length === 4 ? ndarray2.shape.shift() : 1;
|
|
65449
|
+
const data = ndarray2.data instanceof Buffer ? new Uint8Array(ndarray2.data) : ndarray2.data;
|
|
65450
|
+
resolve({
|
|
65451
|
+
shape,
|
|
65452
|
+
data,
|
|
65453
|
+
width: ndarray2.shape[0],
|
|
65454
|
+
height: ndarray2.shape[1],
|
|
65455
|
+
components: ndarray2.shape[2],
|
|
65456
|
+
layers: layers ? [layers] : []
|
|
65457
|
+
});
|
|
65458
|
+
}));
|
|
65437
65459
|
}
|
|
65438
65460
|
|
|
65439
65461
|
// ../polyfills/src/node/file/readable-stream.ts
|
|
@@ -65645,10 +65667,10 @@ if (!("allSettled" in Promise)) {
|
|
|
65645
65667
|
}
|
|
65646
65668
|
|
|
65647
65669
|
// src/lib/utils/version.ts
|
|
65648
|
-
var VERSION3 = true ? "3.3.
|
|
65670
|
+
var VERSION3 = true ? "3.3.1" : "beta";
|
|
65649
65671
|
|
|
65650
65672
|
// src/lib/parsers/basis-module-loader.ts
|
|
65651
|
-
var VERSION4 = true ? "3.3.
|
|
65673
|
+
var VERSION4 = true ? "3.3.1" : "beta";
|
|
65652
65674
|
var BASIS_CDN_ENCODER_WASM = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.wasm`;
|
|
65653
65675
|
var BASIS_CDN_ENCODER_JS = `https://unpkg.com/@loaders.gl/textures@${VERSION4}/dist/libs/basis_encoder.js`;
|
|
65654
65676
|
var loadBasisEncoderPromise;
|