@loaders.gl/textures 4.2.0-alpha.5 → 4.2.0-beta.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-loader.d.ts +61 -3
- package/dist/basis-loader.d.ts.map +1 -1
- package/dist/basis-loader.js +5 -3
- package/dist/basis-worker-node.js +348 -335
- package/dist/basis-worker.js +32 -49
- package/dist/compressed-texture-loader.d.ts +43 -4
- package/dist/compressed-texture-loader.d.ts.map +1 -1
- package/dist/compressed-texture-loader.js +2 -0
- package/dist/compressed-texture-worker.js +33 -47
- package/dist/compressed-texture-writer.d.ts +24 -2
- package/dist/compressed-texture-writer.d.ts.map +1 -1
- package/dist/compressed-texture-writer.js +0 -8
- package/dist/crunch-loader.d.ts +23 -2
- package/dist/crunch-loader.d.ts.map +1 -1
- package/dist/crunch-loader.js +2 -0
- package/dist/crunch-worker.js +33 -47
- package/dist/dist.dev.js +96 -81
- package/dist/dist.min.js +2 -2
- package/dist/index.cjs +23 -15
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/ktx2-basis-writer-worker-node.js +329 -328
- package/dist/ktx2-basis-writer-worker.js +15 -43
- package/dist/ktx2-basis-writer.d.ts +18 -3
- package/dist/ktx2-basis-writer.d.ts.map +1 -1
- package/dist/lib/parsers/basis-module-loader.d.ts.map +1 -1
- package/dist/lib/parsers/basis-module-loader.js +6 -4
- package/dist/lib/parsers/crunch-module-loader.d.ts +2 -1
- package/dist/lib/parsers/crunch-module-loader.d.ts.map +1 -1
- package/dist/lib/parsers/crunch-module-loader.js +6 -4
- package/dist/lib/utils/version.js +1 -1
- package/dist/npy-loader.d.ts +40 -5
- package/dist/npy-loader.d.ts.map +1 -1
- package/dist/npy-loader.js +2 -0
- package/dist/npy-worker.js +6 -2
- package/dist/workers/crunch-worker.d.ts +15 -17
- package/dist/workers/crunch-worker.d.ts.map +1 -1
- package/package.json +7 -9
- package/src/basis-loader.ts +27 -7
- package/src/compressed-texture-loader.ts +14 -6
- package/src/compressed-texture-writer.ts +5 -15
- package/src/crunch-loader.ts +10 -2
- package/src/index.ts +10 -1
- package/src/ktx2-basis-writer.ts +2 -2
- package/src/lib/parsers/basis-module-loader.ts +6 -4
- package/src/lib/parsers/crunch-module-loader.ts +8 -6
- package/src/npy-loader.ts +13 -5
|
@@ -4786,9 +4786,9 @@ var require_decoder = __commonJS({
|
|
|
4786
4786
|
return a < 0 ? 0 : a > 255 ? 255 : a;
|
|
4787
4787
|
}
|
|
4788
4788
|
constructor.prototype = {
|
|
4789
|
-
load: function load(
|
|
4789
|
+
load: function load(path2) {
|
|
4790
4790
|
var xhr = new XMLHttpRequest();
|
|
4791
|
-
xhr.open("GET",
|
|
4791
|
+
xhr.open("GET", path2, true);
|
|
4792
4792
|
xhr.responseType = "arraybuffer";
|
|
4793
4793
|
xhr.onload = function() {
|
|
4794
4794
|
var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
|
|
@@ -21420,10 +21420,10 @@ var require_store = __commonJS({
|
|
|
21420
21420
|
}
|
|
21421
21421
|
exports.Store = Store;
|
|
21422
21422
|
Store.prototype.synchronous = false;
|
|
21423
|
-
Store.prototype.findCookie = function(domain,
|
|
21423
|
+
Store.prototype.findCookie = function(domain, path2, key, cb) {
|
|
21424
21424
|
throw new Error("findCookie is not implemented");
|
|
21425
21425
|
};
|
|
21426
|
-
Store.prototype.findCookies = function(domain,
|
|
21426
|
+
Store.prototype.findCookies = function(domain, path2, cb) {
|
|
21427
21427
|
throw new Error("findCookies is not implemented");
|
|
21428
21428
|
};
|
|
21429
21429
|
Store.prototype.putCookie = function(cookie, cb) {
|
|
@@ -21432,10 +21432,10 @@ var require_store = __commonJS({
|
|
|
21432
21432
|
Store.prototype.updateCookie = function(oldCookie, newCookie, cb) {
|
|
21433
21433
|
throw new Error("updateCookie is not implemented");
|
|
21434
21434
|
};
|
|
21435
|
-
Store.prototype.removeCookie = function(domain,
|
|
21435
|
+
Store.prototype.removeCookie = function(domain, path2, key, cb) {
|
|
21436
21436
|
throw new Error("removeCookie is not implemented");
|
|
21437
21437
|
};
|
|
21438
|
-
Store.prototype.removeCookies = function(domain,
|
|
21438
|
+
Store.prototype.removeCookies = function(domain, path2, cb) {
|
|
21439
21439
|
throw new Error("removeCookies is not implemented");
|
|
21440
21440
|
};
|
|
21441
21441
|
Store.prototype.removeAllCookies = function(cb) {
|
|
@@ -21519,22 +21519,22 @@ var require_memstore = __commonJS({
|
|
|
21519
21519
|
if (util.inspect.custom) {
|
|
21520
21520
|
MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
|
|
21521
21521
|
}
|
|
21522
|
-
MemoryCookieStore.prototype.findCookie = function(domain,
|
|
21522
|
+
MemoryCookieStore.prototype.findCookie = function(domain, path2, key, cb) {
|
|
21523
21523
|
if (!this.idx[domain]) {
|
|
21524
21524
|
return cb(null, void 0);
|
|
21525
21525
|
}
|
|
21526
|
-
if (!this.idx[domain][
|
|
21526
|
+
if (!this.idx[domain][path2]) {
|
|
21527
21527
|
return cb(null, void 0);
|
|
21528
21528
|
}
|
|
21529
|
-
return cb(null, this.idx[domain][
|
|
21529
|
+
return cb(null, this.idx[domain][path2][key] || null);
|
|
21530
21530
|
};
|
|
21531
|
-
MemoryCookieStore.prototype.findCookies = function(domain,
|
|
21531
|
+
MemoryCookieStore.prototype.findCookies = function(domain, path2, cb) {
|
|
21532
21532
|
var results = [];
|
|
21533
21533
|
if (!domain) {
|
|
21534
21534
|
return cb(null, []);
|
|
21535
21535
|
}
|
|
21536
21536
|
var pathMatcher;
|
|
21537
|
-
if (!
|
|
21537
|
+
if (!path2) {
|
|
21538
21538
|
pathMatcher = function matchAll(domainIndex) {
|
|
21539
21539
|
for (var curPath in domainIndex) {
|
|
21540
21540
|
var pathIndex = domainIndex[curPath];
|
|
@@ -21546,7 +21546,7 @@ var require_memstore = __commonJS({
|
|
|
21546
21546
|
} else {
|
|
21547
21547
|
pathMatcher = function matchRFC(domainIndex) {
|
|
21548
21548
|
Object.keys(domainIndex).forEach(function(cookiePath) {
|
|
21549
|
-
if (pathMatch(
|
|
21549
|
+
if (pathMatch(path2, cookiePath)) {
|
|
21550
21550
|
var pathIndex = domainIndex[cookiePath];
|
|
21551
21551
|
for (var key in pathIndex) {
|
|
21552
21552
|
results.push(pathIndex[key]);
|
|
@@ -21579,16 +21579,16 @@ var require_memstore = __commonJS({
|
|
|
21579
21579
|
MemoryCookieStore.prototype.updateCookie = function(oldCookie, newCookie, cb) {
|
|
21580
21580
|
this.putCookie(newCookie, cb);
|
|
21581
21581
|
};
|
|
21582
|
-
MemoryCookieStore.prototype.removeCookie = function(domain,
|
|
21583
|
-
if (this.idx[domain] && this.idx[domain][
|
|
21584
|
-
delete this.idx[domain][
|
|
21582
|
+
MemoryCookieStore.prototype.removeCookie = function(domain, path2, key, cb) {
|
|
21583
|
+
if (this.idx[domain] && this.idx[domain][path2] && this.idx[domain][path2][key]) {
|
|
21584
|
+
delete this.idx[domain][path2][key];
|
|
21585
21585
|
}
|
|
21586
21586
|
cb(null);
|
|
21587
21587
|
};
|
|
21588
|
-
MemoryCookieStore.prototype.removeCookies = function(domain,
|
|
21588
|
+
MemoryCookieStore.prototype.removeCookies = function(domain, path2, cb) {
|
|
21589
21589
|
if (this.idx[domain]) {
|
|
21590
|
-
if (
|
|
21591
|
-
delete this.idx[domain][
|
|
21590
|
+
if (path2) {
|
|
21591
|
+
delete this.idx[domain][path2];
|
|
21592
21592
|
} else {
|
|
21593
21593
|
delete this.idx[domain];
|
|
21594
21594
|
}
|
|
@@ -21605,11 +21605,11 @@ var require_memstore = __commonJS({
|
|
|
21605
21605
|
var domains = Object.keys(idx);
|
|
21606
21606
|
domains.forEach(function(domain) {
|
|
21607
21607
|
var paths = Object.keys(idx[domain]);
|
|
21608
|
-
paths.forEach(function(
|
|
21609
|
-
var keys = Object.keys(idx[domain][
|
|
21608
|
+
paths.forEach(function(path2) {
|
|
21609
|
+
var keys = Object.keys(idx[domain][path2]);
|
|
21610
21610
|
keys.forEach(function(key) {
|
|
21611
21611
|
if (key !== null) {
|
|
21612
|
-
cookies.push(idx[domain][
|
|
21612
|
+
cookies.push(idx[domain][path2][key]);
|
|
21613
21613
|
}
|
|
21614
21614
|
});
|
|
21615
21615
|
});
|
|
@@ -21836,18 +21836,18 @@ var require_cookie = __commonJS({
|
|
|
21836
21836
|
}
|
|
21837
21837
|
return true;
|
|
21838
21838
|
}
|
|
21839
|
-
function defaultPath(
|
|
21840
|
-
if (!
|
|
21839
|
+
function defaultPath(path2) {
|
|
21840
|
+
if (!path2 || path2.substr(0, 1) !== "/") {
|
|
21841
21841
|
return "/";
|
|
21842
21842
|
}
|
|
21843
|
-
if (
|
|
21844
|
-
return
|
|
21843
|
+
if (path2 === "/") {
|
|
21844
|
+
return path2;
|
|
21845
21845
|
}
|
|
21846
|
-
var rightSlash =
|
|
21846
|
+
var rightSlash = path2.lastIndexOf("/");
|
|
21847
21847
|
if (rightSlash === 0) {
|
|
21848
21848
|
return "/";
|
|
21849
21849
|
}
|
|
21850
|
-
return
|
|
21850
|
+
return path2.slice(0, rightSlash);
|
|
21851
21851
|
}
|
|
21852
21852
|
function trimTerminator(str) {
|
|
21853
21853
|
for (var t = 0; t < TERMINATORS.length; t++) {
|
|
@@ -22023,21 +22023,21 @@ var require_cookie = __commonJS({
|
|
|
22023
22023
|
cmp = a.creationIndex - b.creationIndex;
|
|
22024
22024
|
return cmp;
|
|
22025
22025
|
}
|
|
22026
|
-
function permutePath(
|
|
22027
|
-
if (
|
|
22026
|
+
function permutePath(path2) {
|
|
22027
|
+
if (path2 === "/") {
|
|
22028
22028
|
return ["/"];
|
|
22029
22029
|
}
|
|
22030
|
-
if (
|
|
22031
|
-
|
|
22030
|
+
if (path2.lastIndexOf("/") === path2.length - 1) {
|
|
22031
|
+
path2 = path2.substr(0, path2.length - 1);
|
|
22032
22032
|
}
|
|
22033
|
-
var permutations = [
|
|
22034
|
-
while (
|
|
22035
|
-
var lindex =
|
|
22033
|
+
var permutations = [path2];
|
|
22034
|
+
while (path2.length > 1) {
|
|
22035
|
+
var lindex = path2.lastIndexOf("/");
|
|
22036
22036
|
if (lindex === 0) {
|
|
22037
22037
|
break;
|
|
22038
22038
|
}
|
|
22039
|
-
|
|
22040
|
-
permutations.push(
|
|
22039
|
+
path2 = path2.substr(0, lindex);
|
|
22040
|
+
permutations.push(path2);
|
|
22041
22041
|
}
|
|
22042
22042
|
permutations.push("/");
|
|
22043
22043
|
return permutations;
|
|
@@ -22368,7 +22368,7 @@ var require_cookie = __commonJS({
|
|
|
22368
22368
|
options = {};
|
|
22369
22369
|
}
|
|
22370
22370
|
var host = canonicalDomain(context.hostname);
|
|
22371
|
-
var
|
|
22371
|
+
var path2 = context.pathname || "/";
|
|
22372
22372
|
var secure = options.secure;
|
|
22373
22373
|
if (secure == null && context.protocol && (context.protocol == "https:" || context.protocol == "wss:")) {
|
|
22374
22374
|
secure = true;
|
|
@@ -22391,7 +22391,7 @@ var require_cookie = __commonJS({
|
|
|
22391
22391
|
return false;
|
|
22392
22392
|
}
|
|
22393
22393
|
}
|
|
22394
|
-
if (!allPaths && !pathMatch(
|
|
22394
|
+
if (!allPaths && !pathMatch(path2, c.path)) {
|
|
22395
22395
|
return false;
|
|
22396
22396
|
}
|
|
22397
22397
|
if (c.secure && !secure) {
|
|
@@ -22407,7 +22407,7 @@ var require_cookie = __commonJS({
|
|
|
22407
22407
|
}
|
|
22408
22408
|
return true;
|
|
22409
22409
|
}
|
|
22410
|
-
store.findCookies(host, allPaths ? null :
|
|
22410
|
+
store.findCookies(host, allPaths ? null : path2, function(err, cookies) {
|
|
22411
22411
|
if (err) {
|
|
22412
22412
|
return cb(err);
|
|
22413
22413
|
}
|
|
@@ -22891,14 +22891,14 @@ var require_aws_sign2 = __commonJS({
|
|
|
22891
22891
|
}
|
|
22892
22892
|
module2.exports.canonicalizeHeaders = canonicalizeHeaders;
|
|
22893
22893
|
function canonicalizeResource(resource) {
|
|
22894
|
-
var url = parse(resource, true),
|
|
22894
|
+
var url = parse(resource, true), path2 = url.pathname, buf = [];
|
|
22895
22895
|
Object.keys(url.query).forEach(function(key) {
|
|
22896
22896
|
if (!~keys.indexOf(key))
|
|
22897
22897
|
return;
|
|
22898
22898
|
var val = "" == url.query[key] ? "" : "=" + encodeURIComponent(url.query[key]);
|
|
22899
22899
|
buf.push(key + val);
|
|
22900
22900
|
});
|
|
22901
|
-
return
|
|
22901
|
+
return path2 + (buf.length ? "?" + buf.sort().join("&") : "");
|
|
22902
22902
|
}
|
|
22903
22903
|
module2.exports.canonicalizeResource = canonicalizeResource;
|
|
22904
22904
|
}
|
|
@@ -23196,15 +23196,15 @@ var require_aws4 = __commonJS({
|
|
|
23196
23196
|
if (pathStr !== "/") {
|
|
23197
23197
|
if (normalizePath)
|
|
23198
23198
|
pathStr = pathStr.replace(/\/{2,}/g, "/");
|
|
23199
|
-
pathStr = pathStr.split("/").reduce(function(
|
|
23199
|
+
pathStr = pathStr.split("/").reduce(function(path2, piece) {
|
|
23200
23200
|
if (normalizePath && piece === "..") {
|
|
23201
|
-
|
|
23201
|
+
path2.pop();
|
|
23202
23202
|
} else if (!normalizePath || piece !== ".") {
|
|
23203
23203
|
if (decodePath)
|
|
23204
23204
|
piece = decodeURIComponent(piece.replace(/\+/g, " "));
|
|
23205
|
-
|
|
23205
|
+
path2.push(encodeRfc3986Full(piece));
|
|
23206
23206
|
}
|
|
23207
|
-
return
|
|
23207
|
+
return path2;
|
|
23208
23208
|
}, []).join("/");
|
|
23209
23209
|
if (pathStr[0] !== "/")
|
|
23210
23210
|
pathStr = "/" + pathStr;
|
|
@@ -23258,27 +23258,27 @@ var require_aws4 = __commonJS({
|
|
|
23258
23258
|
};
|
|
23259
23259
|
};
|
|
23260
23260
|
RequestSigner.prototype.parsePath = function() {
|
|
23261
|
-
var
|
|
23262
|
-
if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(
|
|
23263
|
-
|
|
23261
|
+
var path2 = this.request.path || "/";
|
|
23262
|
+
if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path2)) {
|
|
23263
|
+
path2 = encodeURI(decodeURI(path2));
|
|
23264
23264
|
}
|
|
23265
|
-
var queryIx =
|
|
23265
|
+
var queryIx = path2.indexOf("?"), query = null;
|
|
23266
23266
|
if (queryIx >= 0) {
|
|
23267
|
-
query = querystring.parse(
|
|
23268
|
-
|
|
23267
|
+
query = querystring.parse(path2.slice(queryIx + 1));
|
|
23268
|
+
path2 = path2.slice(0, queryIx);
|
|
23269
23269
|
}
|
|
23270
23270
|
this.parsedPath = {
|
|
23271
|
-
path:
|
|
23271
|
+
path: path2,
|
|
23272
23272
|
query
|
|
23273
23273
|
};
|
|
23274
23274
|
};
|
|
23275
23275
|
RequestSigner.prototype.formatPath = function() {
|
|
23276
|
-
var
|
|
23276
|
+
var path2 = this.parsedPath.path, query = this.parsedPath.query;
|
|
23277
23277
|
if (!query)
|
|
23278
|
-
return
|
|
23278
|
+
return path2;
|
|
23279
23279
|
if (query[""] != null)
|
|
23280
23280
|
delete query[""];
|
|
23281
|
-
return
|
|
23281
|
+
return path2 + "?" + encodeRfc3986(querystring.stringify(query));
|
|
23282
23282
|
};
|
|
23283
23283
|
aws4.RequestSigner = RequestSigner;
|
|
23284
23284
|
aws4.sign = function(request, credentials) {
|
|
@@ -36393,13 +36393,13 @@ var require_validate = __commonJS({
|
|
|
36393
36393
|
return schema2.type || primitiveConstructors[schema2.name] == schema2 && schema2.name.toLowerCase();
|
|
36394
36394
|
}
|
|
36395
36395
|
var errors = [];
|
|
36396
|
-
function checkProp(value, schema2,
|
|
36396
|
+
function checkProp(value, schema2, path2, i) {
|
|
36397
36397
|
var l;
|
|
36398
|
-
|
|
36398
|
+
path2 += path2 ? typeof i == "number" ? "[" + i + "]" : typeof i == "undefined" ? "" : "." + i : i;
|
|
36399
36399
|
function addError(message) {
|
|
36400
|
-
errors.push({ property:
|
|
36400
|
+
errors.push({ property: path2, message });
|
|
36401
36401
|
}
|
|
36402
|
-
if ((typeof schema2 != "object" || schema2 instanceof Array) && (
|
|
36402
|
+
if ((typeof schema2 != "object" || schema2 instanceof Array) && (path2 || typeof schema2 != "function") && !(schema2 && getType(schema2))) {
|
|
36403
36403
|
if (typeof schema2 == "function") {
|
|
36404
36404
|
if (!(value instanceof schema2)) {
|
|
36405
36405
|
addError("is not an instance of the class/constructor " + schema2.name);
|
|
@@ -36413,12 +36413,12 @@ var require_validate = __commonJS({
|
|
|
36413
36413
|
addError("is a readonly field, it can not be changed");
|
|
36414
36414
|
}
|
|
36415
36415
|
if (schema2["extends"]) {
|
|
36416
|
-
checkProp(value, schema2["extends"],
|
|
36416
|
+
checkProp(value, schema2["extends"], path2, i);
|
|
36417
36417
|
}
|
|
36418
36418
|
function checkType(type, value2) {
|
|
36419
36419
|
if (type) {
|
|
36420
36420
|
if (typeof type == "string" && type != "any" && (type == "null" ? value2 !== null : typeof value2 != type) && !(value2 instanceof Array && type == "array") && !(value2 instanceof Date && type == "date") && !(type == "integer" && value2 % 1 === 0)) {
|
|
36421
|
-
return [{ property:
|
|
36421
|
+
return [{ property: path2, message: value2 + " - " + typeof value2 + " value found, but a " + type + " is required" }];
|
|
36422
36422
|
}
|
|
36423
36423
|
if (type instanceof Array) {
|
|
36424
36424
|
var unionErrors = [];
|
|
@@ -36433,7 +36433,7 @@ var require_validate = __commonJS({
|
|
|
36433
36433
|
} else if (typeof type == "object") {
|
|
36434
36434
|
var priorErrors = errors;
|
|
36435
36435
|
errors = [];
|
|
36436
|
-
checkProp(value2, type,
|
|
36436
|
+
checkProp(value2, type, path2);
|
|
36437
36437
|
var theseErrors = errors;
|
|
36438
36438
|
errors = priorErrors;
|
|
36439
36439
|
return theseErrors;
|
|
@@ -36460,7 +36460,7 @@ var require_validate = __commonJS({
|
|
|
36460
36460
|
propDef = schema2.items[i];
|
|
36461
36461
|
if (options.coerce)
|
|
36462
36462
|
value[i] = options.coerce(value[i], propDef);
|
|
36463
|
-
errors.concat(checkProp(value[i], propDef,
|
|
36463
|
+
errors.concat(checkProp(value[i], propDef, path2, i));
|
|
36464
36464
|
}
|
|
36465
36465
|
}
|
|
36466
36466
|
if (schema2.minItems && value.length < schema2.minItems) {
|
|
@@ -36470,7 +36470,7 @@ var require_validate = __commonJS({
|
|
|
36470
36470
|
addError("There must be a maximum of " + schema2.maxItems + " in the array");
|
|
36471
36471
|
}
|
|
36472
36472
|
} else if (schema2.properties || schema2.additionalProperties) {
|
|
36473
|
-
errors.concat(checkObj(value, schema2.properties,
|
|
36473
|
+
errors.concat(checkObj(value, schema2.properties, path2, schema2.additionalProperties));
|
|
36474
36474
|
}
|
|
36475
36475
|
if (schema2.pattern && typeof value == "string" && !value.match(schema2.pattern)) {
|
|
36476
36476
|
addError("does not match the regex pattern " + schema2.pattern);
|
|
@@ -36508,10 +36508,10 @@ var require_validate = __commonJS({
|
|
|
36508
36508
|
}
|
|
36509
36509
|
return null;
|
|
36510
36510
|
}
|
|
36511
|
-
function checkObj(instance2, objTypeDef,
|
|
36511
|
+
function checkObj(instance2, objTypeDef, path2, additionalProp) {
|
|
36512
36512
|
if (typeof objTypeDef == "object") {
|
|
36513
36513
|
if (typeof instance2 != "object" || instance2 instanceof Array) {
|
|
36514
|
-
errors.push({ property:
|
|
36514
|
+
errors.push({ property: path2, message: "an object is required" });
|
|
36515
36515
|
}
|
|
36516
36516
|
for (var i in objTypeDef) {
|
|
36517
36517
|
if (objTypeDef.hasOwnProperty(i) && i != "__proto__" && i != "constructor") {
|
|
@@ -36525,7 +36525,7 @@ var require_validate = __commonJS({
|
|
|
36525
36525
|
if (options.coerce && i in instance2) {
|
|
36526
36526
|
value = instance2[i] = options.coerce(value, propDef);
|
|
36527
36527
|
}
|
|
36528
|
-
checkProp(value, propDef,
|
|
36528
|
+
checkProp(value, propDef, path2, i);
|
|
36529
36529
|
}
|
|
36530
36530
|
}
|
|
36531
36531
|
}
|
|
@@ -36535,22 +36535,22 @@ var require_validate = __commonJS({
|
|
|
36535
36535
|
delete instance2[i];
|
|
36536
36536
|
continue;
|
|
36537
36537
|
} else {
|
|
36538
|
-
errors.push({ property:
|
|
36538
|
+
errors.push({ property: path2, message: "The property " + i + " is not defined in the schema and the schema does not allow additional properties" });
|
|
36539
36539
|
}
|
|
36540
36540
|
}
|
|
36541
36541
|
var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
|
|
36542
36542
|
if (requires && !(requires in instance2)) {
|
|
36543
|
-
errors.push({ property:
|
|
36543
|
+
errors.push({ property: path2, message: "the presence of the property " + i + " requires that " + requires + " also be present" });
|
|
36544
36544
|
}
|
|
36545
36545
|
value = instance2[i];
|
|
36546
36546
|
if (additionalProp && (!(objTypeDef && typeof objTypeDef == "object") || !(i in objTypeDef))) {
|
|
36547
36547
|
if (options.coerce) {
|
|
36548
36548
|
value = instance2[i] = options.coerce(value, additionalProp);
|
|
36549
36549
|
}
|
|
36550
|
-
checkProp(value, additionalProp,
|
|
36550
|
+
checkProp(value, additionalProp, path2, i);
|
|
36551
36551
|
}
|
|
36552
36552
|
if (!_changing && value && value.$schema) {
|
|
36553
|
-
errors = errors.concat(checkProp(value, value.$schema,
|
|
36553
|
+
errors = errors.concat(checkProp(value, value.$schema, path2, i));
|
|
36554
36554
|
}
|
|
36555
36555
|
}
|
|
36556
36556
|
return errors;
|
|
@@ -37157,11 +37157,11 @@ var require_signer = __commonJS({
|
|
|
37157
37157
|
RequestSigner.prototype.writeDateHeader = function() {
|
|
37158
37158
|
return this.writeHeader("date", jsprim.rfc1123(new Date()));
|
|
37159
37159
|
};
|
|
37160
|
-
RequestSigner.prototype.writeTarget = function(method,
|
|
37160
|
+
RequestSigner.prototype.writeTarget = function(method, path2) {
|
|
37161
37161
|
assert3.string(method, "method");
|
|
37162
|
-
assert3.string(
|
|
37162
|
+
assert3.string(path2, "path");
|
|
37163
37163
|
method = method.toLowerCase();
|
|
37164
|
-
this.writeHeader("(request-target)", method + " " +
|
|
37164
|
+
this.writeHeader("(request-target)", method + " " + path2);
|
|
37165
37165
|
};
|
|
37166
37166
|
RequestSigner.prototype.sign = function(cb) {
|
|
37167
37167
|
assert3.func(cb, "callback");
|
|
@@ -46046,11 +46046,11 @@ var require_mime_types = __commonJS({
|
|
|
46046
46046
|
}
|
|
46047
46047
|
return exts[0];
|
|
46048
46048
|
}
|
|
46049
|
-
function lookup(
|
|
46050
|
-
if (!
|
|
46049
|
+
function lookup(path2) {
|
|
46050
|
+
if (!path2 || typeof path2 !== "string") {
|
|
46051
46051
|
return false;
|
|
46052
46052
|
}
|
|
46053
|
-
var extension2 = extname("x." +
|
|
46053
|
+
var extension2 = extname("x." + path2).toLowerCase().substr(1);
|
|
46054
46054
|
if (!extension2) {
|
|
46055
46055
|
return false;
|
|
46056
46056
|
}
|
|
@@ -46764,11 +46764,11 @@ var require_form_data = __commonJS({
|
|
|
46764
46764
|
"../../node_modules/form-data/lib/form_data.js"(exports, module2) {
|
|
46765
46765
|
var CombinedStream = require_combined_stream();
|
|
46766
46766
|
var util = require("util");
|
|
46767
|
-
var
|
|
46767
|
+
var path2 = require("path");
|
|
46768
46768
|
var http2 = require("http");
|
|
46769
46769
|
var https2 = require("https");
|
|
46770
46770
|
var parseUrl = require("url").parse;
|
|
46771
|
-
var
|
|
46771
|
+
var fs4 = require("fs");
|
|
46772
46772
|
var mime = require_mime_types();
|
|
46773
46773
|
var asynckit = require_asynckit();
|
|
46774
46774
|
var populate = require_populate();
|
|
@@ -46832,7 +46832,7 @@ var require_form_data = __commonJS({
|
|
|
46832
46832
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
46833
46833
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
46834
46834
|
} else {
|
|
46835
|
-
|
|
46835
|
+
fs4.stat(value.path, function(err, stat) {
|
|
46836
46836
|
var fileSize;
|
|
46837
46837
|
if (err) {
|
|
46838
46838
|
callback(err);
|
|
@@ -46890,11 +46890,11 @@ var require_form_data = __commonJS({
|
|
|
46890
46890
|
FormData.prototype._getContentDisposition = function(value, options) {
|
|
46891
46891
|
var filename, contentDisposition;
|
|
46892
46892
|
if (typeof options.filepath === "string") {
|
|
46893
|
-
filename =
|
|
46893
|
+
filename = path2.normalize(options.filepath).replace(/\\/g, "/");
|
|
46894
46894
|
} else if (options.filename || value.name || value.path) {
|
|
46895
|
-
filename =
|
|
46895
|
+
filename = path2.basename(options.filename || value.name || value.path);
|
|
46896
46896
|
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
46897
|
-
filename =
|
|
46897
|
+
filename = path2.basename(value.client._httpMessage.path);
|
|
46898
46898
|
}
|
|
46899
46899
|
if (filename) {
|
|
46900
46900
|
contentDisposition = 'filename="' + filename + '"';
|
|
@@ -48548,8 +48548,8 @@ var require_uri_all = __commonJS({
|
|
|
48548
48548
|
wsComponents.secure = void 0;
|
|
48549
48549
|
}
|
|
48550
48550
|
if (wsComponents.resourceName) {
|
|
48551
|
-
var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
|
48552
|
-
wsComponents.path =
|
|
48551
|
+
var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path2 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
|
|
48552
|
+
wsComponents.path = path2 && path2 !== "/" ? path2 : void 0;
|
|
48553
48553
|
wsComponents.query = query;
|
|
48554
48554
|
wsComponents.resourceName = void 0;
|
|
48555
48555
|
}
|
|
@@ -48791,9 +48791,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
48791
48791
|
}
|
|
48792
48792
|
});
|
|
48793
48793
|
|
|
48794
|
-
// ../../node_modules/ajv/lib/compile/ucs2length.js
|
|
48794
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/ucs2length.js
|
|
48795
48795
|
var require_ucs2length = __commonJS({
|
|
48796
|
-
"../../node_modules/ajv/lib/compile/ucs2length.js"(exports, module2) {
|
|
48796
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/ucs2length.js"(exports, module2) {
|
|
48797
48797
|
"use strict";
|
|
48798
48798
|
module2.exports = function ucs2length(str) {
|
|
48799
48799
|
var length = 0, len = str.length, pos = 0, value;
|
|
@@ -48811,9 +48811,9 @@ var require_ucs2length = __commonJS({
|
|
|
48811
48811
|
}
|
|
48812
48812
|
});
|
|
48813
48813
|
|
|
48814
|
-
// ../../node_modules/ajv/lib/compile/util.js
|
|
48814
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/util.js
|
|
48815
48815
|
var require_util3 = __commonJS({
|
|
48816
|
-
"../../node_modules/ajv/lib/compile/util.js"(exports, module2) {
|
|
48816
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/util.js"(exports, module2) {
|
|
48817
48817
|
"use strict";
|
|
48818
48818
|
module2.exports = {
|
|
48819
48819
|
copy,
|
|
@@ -48951,12 +48951,12 @@ var require_util3 = __commonJS({
|
|
|
48951
48951
|
return "'" + escapeQuotes(str) + "'";
|
|
48952
48952
|
}
|
|
48953
48953
|
function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
|
|
48954
|
-
var
|
|
48955
|
-
return joinPaths(currentPath,
|
|
48954
|
+
var path2 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
|
|
48955
|
+
return joinPaths(currentPath, path2);
|
|
48956
48956
|
}
|
|
48957
48957
|
function getPath(currentPath, prop, jsonPointers) {
|
|
48958
|
-
var
|
|
48959
|
-
return joinPaths(currentPath,
|
|
48958
|
+
var path2 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
|
|
48959
|
+
return joinPaths(currentPath, path2);
|
|
48960
48960
|
}
|
|
48961
48961
|
var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
|
|
48962
48962
|
var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
@@ -49017,9 +49017,9 @@ var require_util3 = __commonJS({
|
|
|
49017
49017
|
}
|
|
49018
49018
|
});
|
|
49019
49019
|
|
|
49020
|
-
// ../../node_modules/ajv/lib/compile/schema_obj.js
|
|
49020
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/schema_obj.js
|
|
49021
49021
|
var require_schema_obj = __commonJS({
|
|
49022
|
-
"../../node_modules/ajv/lib/compile/schema_obj.js"(exports, module2) {
|
|
49022
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/schema_obj.js"(exports, module2) {
|
|
49023
49023
|
"use strict";
|
|
49024
49024
|
var util = require_util3();
|
|
49025
49025
|
module2.exports = SchemaObject;
|
|
@@ -49113,9 +49113,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
49113
49113
|
}
|
|
49114
49114
|
});
|
|
49115
49115
|
|
|
49116
|
-
// ../../node_modules/ajv/lib/compile/resolve.js
|
|
49116
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/resolve.js
|
|
49117
49117
|
var require_resolve = __commonJS({
|
|
49118
|
-
"../../node_modules/ajv/lib/compile/resolve.js"(exports, module2) {
|
|
49118
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/resolve.js"(exports, module2) {
|
|
49119
49119
|
"use strict";
|
|
49120
49120
|
var URI = require_uri_all();
|
|
49121
49121
|
var equal = require_fast_deep_equal();
|
|
@@ -49357,9 +49357,9 @@ var require_resolve = __commonJS({
|
|
|
49357
49357
|
}
|
|
49358
49358
|
});
|
|
49359
49359
|
|
|
49360
|
-
// ../../node_modules/ajv/lib/compile/error_classes.js
|
|
49360
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/error_classes.js
|
|
49361
49361
|
var require_error_classes = __commonJS({
|
|
49362
|
-
"../../node_modules/ajv/lib/compile/error_classes.js"(exports, module2) {
|
|
49362
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/error_classes.js"(exports, module2) {
|
|
49363
49363
|
"use strict";
|
|
49364
49364
|
var resolve = require_resolve();
|
|
49365
49365
|
module2.exports = {
|
|
@@ -49453,9 +49453,9 @@ var require_fast_json_stable_stringify = __commonJS({
|
|
|
49453
49453
|
}
|
|
49454
49454
|
});
|
|
49455
49455
|
|
|
49456
|
-
// ../../node_modules/ajv/lib/dotjs/validate.js
|
|
49456
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/validate.js
|
|
49457
49457
|
var require_validate2 = __commonJS({
|
|
49458
|
-
"../../node_modules/ajv/lib/dotjs/validate.js"(exports, module2) {
|
|
49458
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/validate.js"(exports, module2) {
|
|
49459
49459
|
"use strict";
|
|
49460
49460
|
module2.exports = function generate_validate(it, $keyword, $ruleType) {
|
|
49461
49461
|
var out = "";
|
|
@@ -49924,9 +49924,9 @@ var require_validate2 = __commonJS({
|
|
|
49924
49924
|
}
|
|
49925
49925
|
});
|
|
49926
49926
|
|
|
49927
|
-
// ../../node_modules/ajv/lib/compile/index.js
|
|
49927
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/index.js
|
|
49928
49928
|
var require_compile2 = __commonJS({
|
|
49929
|
-
"../../node_modules/ajv/lib/compile/index.js"(exports, module2) {
|
|
49929
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/index.js"(exports, module2) {
|
|
49930
49930
|
"use strict";
|
|
49931
49931
|
var resolve = require_resolve();
|
|
49932
49932
|
var util = require_util3();
|
|
@@ -50216,9 +50216,9 @@ var require_compile2 = __commonJS({
|
|
|
50216
50216
|
}
|
|
50217
50217
|
});
|
|
50218
50218
|
|
|
50219
|
-
// ../../node_modules/ajv/lib/cache.js
|
|
50219
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/cache.js
|
|
50220
50220
|
var require_cache = __commonJS({
|
|
50221
|
-
"../../node_modules/ajv/lib/cache.js"(exports, module2) {
|
|
50221
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/cache.js"(exports, module2) {
|
|
50222
50222
|
"use strict";
|
|
50223
50223
|
var Cache = module2.exports = function Cache2() {
|
|
50224
50224
|
this._cache = {};
|
|
@@ -50238,9 +50238,9 @@ var require_cache = __commonJS({
|
|
|
50238
50238
|
}
|
|
50239
50239
|
});
|
|
50240
50240
|
|
|
50241
|
-
// ../../node_modules/ajv/lib/compile/formats.js
|
|
50241
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/formats.js
|
|
50242
50242
|
var require_formats2 = __commonJS({
|
|
50243
|
-
"../../node_modules/ajv/lib/compile/formats.js"(exports, module2) {
|
|
50243
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/formats.js"(exports, module2) {
|
|
50244
50244
|
"use strict";
|
|
50245
50245
|
var util = require_util3();
|
|
50246
50246
|
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
@@ -50353,9 +50353,9 @@ var require_formats2 = __commonJS({
|
|
|
50353
50353
|
}
|
|
50354
50354
|
});
|
|
50355
50355
|
|
|
50356
|
-
// ../../node_modules/ajv/lib/dotjs/ref.js
|
|
50356
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/ref.js
|
|
50357
50357
|
var require_ref = __commonJS({
|
|
50358
|
-
"../../node_modules/ajv/lib/dotjs/ref.js"(exports, module2) {
|
|
50358
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/ref.js"(exports, module2) {
|
|
50359
50359
|
"use strict";
|
|
50360
50360
|
module2.exports = function generate_ref(it, $keyword, $ruleType) {
|
|
50361
50361
|
var out = " ";
|
|
@@ -50482,9 +50482,9 @@ var require_ref = __commonJS({
|
|
|
50482
50482
|
}
|
|
50483
50483
|
});
|
|
50484
50484
|
|
|
50485
|
-
// ../../node_modules/ajv/lib/dotjs/allOf.js
|
|
50485
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/allOf.js
|
|
50486
50486
|
var require_allOf = __commonJS({
|
|
50487
|
-
"../../node_modules/ajv/lib/dotjs/allOf.js"(exports, module2) {
|
|
50487
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/allOf.js"(exports, module2) {
|
|
50488
50488
|
"use strict";
|
|
50489
50489
|
module2.exports = function generate_allOf(it, $keyword, $ruleType) {
|
|
50490
50490
|
var out = " ";
|
|
@@ -50528,9 +50528,9 @@ var require_allOf = __commonJS({
|
|
|
50528
50528
|
}
|
|
50529
50529
|
});
|
|
50530
50530
|
|
|
50531
|
-
// ../../node_modules/ajv/lib/dotjs/anyOf.js
|
|
50531
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/anyOf.js
|
|
50532
50532
|
var require_anyOf = __commonJS({
|
|
50533
|
-
"../../node_modules/ajv/lib/dotjs/anyOf.js"(exports, module2) {
|
|
50533
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/anyOf.js"(exports, module2) {
|
|
50534
50534
|
"use strict";
|
|
50535
50535
|
module2.exports = function generate_anyOf(it, $keyword, $ruleType) {
|
|
50536
50536
|
var out = " ";
|
|
@@ -50605,9 +50605,9 @@ var require_anyOf = __commonJS({
|
|
|
50605
50605
|
}
|
|
50606
50606
|
});
|
|
50607
50607
|
|
|
50608
|
-
// ../../node_modules/ajv/lib/dotjs/comment.js
|
|
50608
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/comment.js
|
|
50609
50609
|
var require_comment = __commonJS({
|
|
50610
|
-
"../../node_modules/ajv/lib/dotjs/comment.js"(exports, module2) {
|
|
50610
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/comment.js"(exports, module2) {
|
|
50611
50611
|
"use strict";
|
|
50612
50612
|
module2.exports = function generate_comment(it, $keyword, $ruleType) {
|
|
50613
50613
|
var out = " ";
|
|
@@ -50625,9 +50625,9 @@ var require_comment = __commonJS({
|
|
|
50625
50625
|
}
|
|
50626
50626
|
});
|
|
50627
50627
|
|
|
50628
|
-
// ../../node_modules/ajv/lib/dotjs/const.js
|
|
50628
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/const.js
|
|
50629
50629
|
var require_const = __commonJS({
|
|
50630
|
-
"../../node_modules/ajv/lib/dotjs/const.js"(exports, module2) {
|
|
50630
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/const.js"(exports, module2) {
|
|
50631
50631
|
"use strict";
|
|
50632
50632
|
module2.exports = function generate_const(it, $keyword, $ruleType) {
|
|
50633
50633
|
var out = " ";
|
|
@@ -50685,9 +50685,9 @@ var require_const = __commonJS({
|
|
|
50685
50685
|
}
|
|
50686
50686
|
});
|
|
50687
50687
|
|
|
50688
|
-
// ../../node_modules/ajv/lib/dotjs/contains.js
|
|
50688
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/contains.js
|
|
50689
50689
|
var require_contains = __commonJS({
|
|
50690
|
-
"../../node_modules/ajv/lib/dotjs/contains.js"(exports, module2) {
|
|
50690
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/contains.js"(exports, module2) {
|
|
50691
50691
|
"use strict";
|
|
50692
50692
|
module2.exports = function generate_contains(it, $keyword, $ruleType) {
|
|
50693
50693
|
var out = " ";
|
|
@@ -50767,9 +50767,9 @@ var require_contains = __commonJS({
|
|
|
50767
50767
|
}
|
|
50768
50768
|
});
|
|
50769
50769
|
|
|
50770
|
-
// ../../node_modules/ajv/lib/dotjs/dependencies.js
|
|
50770
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/dependencies.js
|
|
50771
50771
|
var require_dependencies = __commonJS({
|
|
50772
|
-
"../../node_modules/ajv/lib/dotjs/dependencies.js"(exports, module2) {
|
|
50772
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/dependencies.js"(exports, module2) {
|
|
50773
50773
|
"use strict";
|
|
50774
50774
|
module2.exports = function generate_dependencies(it, $keyword, $ruleType) {
|
|
50775
50775
|
var out = " ";
|
|
@@ -50933,9 +50933,9 @@ var require_dependencies = __commonJS({
|
|
|
50933
50933
|
}
|
|
50934
50934
|
});
|
|
50935
50935
|
|
|
50936
|
-
// ../../node_modules/ajv/lib/dotjs/enum.js
|
|
50936
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/enum.js
|
|
50937
50937
|
var require_enum = __commonJS({
|
|
50938
|
-
"../../node_modules/ajv/lib/dotjs/enum.js"(exports, module2) {
|
|
50938
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/enum.js"(exports, module2) {
|
|
50939
50939
|
"use strict";
|
|
50940
50940
|
module2.exports = function generate_enum(it, $keyword, $ruleType) {
|
|
50941
50941
|
var out = " ";
|
|
@@ -51002,9 +51002,9 @@ var require_enum = __commonJS({
|
|
|
51002
51002
|
}
|
|
51003
51003
|
});
|
|
51004
51004
|
|
|
51005
|
-
// ../../node_modules/ajv/lib/dotjs/format.js
|
|
51005
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/format.js
|
|
51006
51006
|
var require_format = __commonJS({
|
|
51007
|
-
"../../node_modules/ajv/lib/dotjs/format.js"(exports, module2) {
|
|
51007
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/format.js"(exports, module2) {
|
|
51008
51008
|
"use strict";
|
|
51009
51009
|
module2.exports = function generate_format(it, $keyword, $ruleType) {
|
|
51010
51010
|
var out = " ";
|
|
@@ -51155,9 +51155,9 @@ var require_format = __commonJS({
|
|
|
51155
51155
|
}
|
|
51156
51156
|
});
|
|
51157
51157
|
|
|
51158
|
-
// ../../node_modules/ajv/lib/dotjs/if.js
|
|
51158
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/if.js
|
|
51159
51159
|
var require_if = __commonJS({
|
|
51160
|
-
"../../node_modules/ajv/lib/dotjs/if.js"(exports, module2) {
|
|
51160
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/if.js"(exports, module2) {
|
|
51161
51161
|
"use strict";
|
|
51162
51162
|
module2.exports = function generate_if(it, $keyword, $ruleType) {
|
|
51163
51163
|
var out = " ";
|
|
@@ -51259,9 +51259,9 @@ var require_if = __commonJS({
|
|
|
51259
51259
|
}
|
|
51260
51260
|
});
|
|
51261
51261
|
|
|
51262
|
-
// ../../node_modules/ajv/lib/dotjs/items.js
|
|
51262
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/items.js
|
|
51263
51263
|
var require_items = __commonJS({
|
|
51264
|
-
"../../node_modules/ajv/lib/dotjs/items.js"(exports, module2) {
|
|
51264
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/items.js"(exports, module2) {
|
|
51265
51265
|
"use strict";
|
|
51266
51266
|
module2.exports = function generate_items(it, $keyword, $ruleType) {
|
|
51267
51267
|
var out = " ";
|
|
@@ -51400,9 +51400,9 @@ var require_items = __commonJS({
|
|
|
51400
51400
|
}
|
|
51401
51401
|
});
|
|
51402
51402
|
|
|
51403
|
-
// ../../node_modules/ajv/lib/dotjs/_limit.js
|
|
51403
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limit.js
|
|
51404
51404
|
var require_limit = __commonJS({
|
|
51405
|
-
"../../node_modules/ajv/lib/dotjs/_limit.js"(exports, module2) {
|
|
51405
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limit.js"(exports, module2) {
|
|
51406
51406
|
"use strict";
|
|
51407
51407
|
module2.exports = function generate__limit(it, $keyword, $ruleType) {
|
|
51408
51408
|
var out = " ";
|
|
@@ -51555,9 +51555,9 @@ var require_limit = __commonJS({
|
|
|
51555
51555
|
}
|
|
51556
51556
|
});
|
|
51557
51557
|
|
|
51558
|
-
// ../../node_modules/ajv/lib/dotjs/_limitItems.js
|
|
51558
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitItems.js
|
|
51559
51559
|
var require_limitItems = __commonJS({
|
|
51560
|
-
"../../node_modules/ajv/lib/dotjs/_limitItems.js"(exports, module2) {
|
|
51560
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitItems.js"(exports, module2) {
|
|
51561
51561
|
"use strict";
|
|
51562
51562
|
module2.exports = function generate__limitItems(it, $keyword, $ruleType) {
|
|
51563
51563
|
var out = " ";
|
|
@@ -51639,9 +51639,9 @@ var require_limitItems = __commonJS({
|
|
|
51639
51639
|
}
|
|
51640
51640
|
});
|
|
51641
51641
|
|
|
51642
|
-
// ../../node_modules/ajv/lib/dotjs/_limitLength.js
|
|
51642
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitLength.js
|
|
51643
51643
|
var require_limitLength = __commonJS({
|
|
51644
|
-
"../../node_modules/ajv/lib/dotjs/_limitLength.js"(exports, module2) {
|
|
51644
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitLength.js"(exports, module2) {
|
|
51645
51645
|
"use strict";
|
|
51646
51646
|
module2.exports = function generate__limitLength(it, $keyword, $ruleType) {
|
|
51647
51647
|
var out = " ";
|
|
@@ -51728,9 +51728,9 @@ var require_limitLength = __commonJS({
|
|
|
51728
51728
|
}
|
|
51729
51729
|
});
|
|
51730
51730
|
|
|
51731
|
-
// ../../node_modules/ajv/lib/dotjs/_limitProperties.js
|
|
51731
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitProperties.js
|
|
51732
51732
|
var require_limitProperties = __commonJS({
|
|
51733
|
-
"../../node_modules/ajv/lib/dotjs/_limitProperties.js"(exports, module2) {
|
|
51733
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/_limitProperties.js"(exports, module2) {
|
|
51734
51734
|
"use strict";
|
|
51735
51735
|
module2.exports = function generate__limitProperties(it, $keyword, $ruleType) {
|
|
51736
51736
|
var out = " ";
|
|
@@ -51812,9 +51812,9 @@ var require_limitProperties = __commonJS({
|
|
|
51812
51812
|
}
|
|
51813
51813
|
});
|
|
51814
51814
|
|
|
51815
|
-
// ../../node_modules/ajv/lib/dotjs/multipleOf.js
|
|
51815
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/multipleOf.js
|
|
51816
51816
|
var require_multipleOf = __commonJS({
|
|
51817
|
-
"../../node_modules/ajv/lib/dotjs/multipleOf.js"(exports, module2) {
|
|
51817
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/multipleOf.js"(exports, module2) {
|
|
51818
51818
|
"use strict";
|
|
51819
51819
|
module2.exports = function generate_multipleOf(it, $keyword, $ruleType) {
|
|
51820
51820
|
var out = " ";
|
|
@@ -51896,9 +51896,9 @@ var require_multipleOf = __commonJS({
|
|
|
51896
51896
|
}
|
|
51897
51897
|
});
|
|
51898
51898
|
|
|
51899
|
-
// ../../node_modules/ajv/lib/dotjs/not.js
|
|
51899
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/not.js
|
|
51900
51900
|
var require_not = __commonJS({
|
|
51901
|
-
"../../node_modules/ajv/lib/dotjs/not.js"(exports, module2) {
|
|
51901
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/not.js"(exports, module2) {
|
|
51902
51902
|
"use strict";
|
|
51903
51903
|
module2.exports = function generate_not(it, $keyword, $ruleType) {
|
|
51904
51904
|
var out = " ";
|
|
@@ -51986,9 +51986,9 @@ var require_not = __commonJS({
|
|
|
51986
51986
|
}
|
|
51987
51987
|
});
|
|
51988
51988
|
|
|
51989
|
-
// ../../node_modules/ajv/lib/dotjs/oneOf.js
|
|
51989
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/oneOf.js
|
|
51990
51990
|
var require_oneOf = __commonJS({
|
|
51991
|
-
"../../node_modules/ajv/lib/dotjs/oneOf.js"(exports, module2) {
|
|
51991
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/oneOf.js"(exports, module2) {
|
|
51992
51992
|
"use strict";
|
|
51993
51993
|
module2.exports = function generate_oneOf(it, $keyword, $ruleType) {
|
|
51994
51994
|
var out = " ";
|
|
@@ -52061,9 +52061,9 @@ var require_oneOf = __commonJS({
|
|
|
52061
52061
|
}
|
|
52062
52062
|
});
|
|
52063
52063
|
|
|
52064
|
-
// ../../node_modules/ajv/lib/dotjs/pattern.js
|
|
52064
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/pattern.js
|
|
52065
52065
|
var require_pattern = __commonJS({
|
|
52066
|
-
"../../node_modules/ajv/lib/dotjs/pattern.js"(exports, module2) {
|
|
52066
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/pattern.js"(exports, module2) {
|
|
52067
52067
|
"use strict";
|
|
52068
52068
|
module2.exports = function generate_pattern(it, $keyword, $ruleType) {
|
|
52069
52069
|
var out = " ";
|
|
@@ -52140,9 +52140,9 @@ var require_pattern = __commonJS({
|
|
|
52140
52140
|
}
|
|
52141
52141
|
});
|
|
52142
52142
|
|
|
52143
|
-
// ../../node_modules/ajv/lib/dotjs/properties.js
|
|
52143
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/properties.js
|
|
52144
52144
|
var require_properties = __commonJS({
|
|
52145
|
-
"../../node_modules/ajv/lib/dotjs/properties.js"(exports, module2) {
|
|
52145
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/properties.js"(exports, module2) {
|
|
52146
52146
|
"use strict";
|
|
52147
52147
|
module2.exports = function generate_properties(it, $keyword, $ruleType) {
|
|
52148
52148
|
var out = " ";
|
|
@@ -52456,9 +52456,9 @@ var require_properties = __commonJS({
|
|
|
52456
52456
|
}
|
|
52457
52457
|
});
|
|
52458
52458
|
|
|
52459
|
-
// ../../node_modules/ajv/lib/dotjs/propertyNames.js
|
|
52459
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/propertyNames.js
|
|
52460
52460
|
var require_propertyNames = __commonJS({
|
|
52461
|
-
"../../node_modules/ajv/lib/dotjs/propertyNames.js"(exports, module2) {
|
|
52461
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/propertyNames.js"(exports, module2) {
|
|
52462
52462
|
"use strict";
|
|
52463
52463
|
module2.exports = function generate_propertyNames(it, $keyword, $ruleType) {
|
|
52464
52464
|
var out = " ";
|
|
@@ -52534,9 +52534,9 @@ var require_propertyNames = __commonJS({
|
|
|
52534
52534
|
}
|
|
52535
52535
|
});
|
|
52536
52536
|
|
|
52537
|
-
// ../../node_modules/ajv/lib/dotjs/required.js
|
|
52537
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/required.js
|
|
52538
52538
|
var require_required = __commonJS({
|
|
52539
|
-
"../../node_modules/ajv/lib/dotjs/required.js"(exports, module2) {
|
|
52539
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/required.js"(exports, module2) {
|
|
52540
52540
|
"use strict";
|
|
52541
52541
|
module2.exports = function generate_required(it, $keyword, $ruleType) {
|
|
52542
52542
|
var out = " ";
|
|
@@ -52794,9 +52794,9 @@ var require_required = __commonJS({
|
|
|
52794
52794
|
}
|
|
52795
52795
|
});
|
|
52796
52796
|
|
|
52797
|
-
// ../../node_modules/ajv/lib/dotjs/uniqueItems.js
|
|
52797
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/uniqueItems.js
|
|
52798
52798
|
var require_uniqueItems = __commonJS({
|
|
52799
|
-
"../../node_modules/ajv/lib/dotjs/uniqueItems.js"(exports, module2) {
|
|
52799
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/uniqueItems.js"(exports, module2) {
|
|
52800
52800
|
"use strict";
|
|
52801
52801
|
module2.exports = function generate_uniqueItems(it, $keyword, $ruleType) {
|
|
52802
52802
|
var out = " ";
|
|
@@ -52883,9 +52883,9 @@ var require_uniqueItems = __commonJS({
|
|
|
52883
52883
|
}
|
|
52884
52884
|
});
|
|
52885
52885
|
|
|
52886
|
-
// ../../node_modules/ajv/lib/dotjs/index.js
|
|
52886
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/index.js
|
|
52887
52887
|
var require_dotjs = __commonJS({
|
|
52888
|
-
"../../node_modules/ajv/lib/dotjs/index.js"(exports, module2) {
|
|
52888
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/index.js"(exports, module2) {
|
|
52889
52889
|
"use strict";
|
|
52890
52890
|
module2.exports = {
|
|
52891
52891
|
"$ref": require_ref(),
|
|
@@ -52920,9 +52920,9 @@ var require_dotjs = __commonJS({
|
|
|
52920
52920
|
}
|
|
52921
52921
|
});
|
|
52922
52922
|
|
|
52923
|
-
// ../../node_modules/ajv/lib/compile/rules.js
|
|
52923
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/rules.js
|
|
52924
52924
|
var require_rules2 = __commonJS({
|
|
52925
|
-
"../../node_modules/ajv/lib/compile/rules.js"(exports, module2) {
|
|
52925
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/rules.js"(exports, module2) {
|
|
52926
52926
|
"use strict";
|
|
52927
52927
|
var ruleModules = require_dotjs();
|
|
52928
52928
|
var toHash = require_util3().toHash;
|
|
@@ -53015,9 +53015,9 @@ var require_rules2 = __commonJS({
|
|
|
53015
53015
|
}
|
|
53016
53016
|
});
|
|
53017
53017
|
|
|
53018
|
-
// ../../node_modules/ajv/lib/data.js
|
|
53018
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/data.js
|
|
53019
53019
|
var require_data = __commonJS({
|
|
53020
|
-
"../../node_modules/ajv/lib/data.js"(exports, module2) {
|
|
53020
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/data.js"(exports, module2) {
|
|
53021
53021
|
"use strict";
|
|
53022
53022
|
var KEYWORDS = [
|
|
53023
53023
|
"multipleOf",
|
|
@@ -53066,9 +53066,9 @@ var require_data = __commonJS({
|
|
|
53066
53066
|
}
|
|
53067
53067
|
});
|
|
53068
53068
|
|
|
53069
|
-
// ../../node_modules/ajv/lib/compile/async.js
|
|
53069
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/compile/async.js
|
|
53070
53070
|
var require_async2 = __commonJS({
|
|
53071
|
-
"../../node_modules/ajv/lib/compile/async.js"(exports, module2) {
|
|
53071
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/compile/async.js"(exports, module2) {
|
|
53072
53072
|
"use strict";
|
|
53073
53073
|
var MissingRefError = require_error_classes().MissingRef;
|
|
53074
53074
|
module2.exports = compileAsync;
|
|
@@ -53136,9 +53136,9 @@ var require_async2 = __commonJS({
|
|
|
53136
53136
|
}
|
|
53137
53137
|
});
|
|
53138
53138
|
|
|
53139
|
-
// ../../node_modules/ajv/lib/dotjs/custom.js
|
|
53139
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/dotjs/custom.js
|
|
53140
53140
|
var require_custom = __commonJS({
|
|
53141
|
-
"../../node_modules/ajv/lib/dotjs/custom.js"(exports, module2) {
|
|
53141
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/dotjs/custom.js"(exports, module2) {
|
|
53142
53142
|
"use strict";
|
|
53143
53143
|
module2.exports = function generate_custom(it, $keyword, $ruleType) {
|
|
53144
53144
|
var out = " ";
|
|
@@ -53362,9 +53362,9 @@ var require_custom = __commonJS({
|
|
|
53362
53362
|
}
|
|
53363
53363
|
});
|
|
53364
53364
|
|
|
53365
|
-
// ../../node_modules/ajv/lib/refs/json-schema-draft-07.json
|
|
53365
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/refs/json-schema-draft-07.json
|
|
53366
53366
|
var require_json_schema_draft_07 = __commonJS({
|
|
53367
|
-
"../../node_modules/ajv/lib/refs/json-schema-draft-07.json"(exports, module2) {
|
|
53367
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/refs/json-schema-draft-07.json"(exports, module2) {
|
|
53368
53368
|
module2.exports = {
|
|
53369
53369
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
53370
53370
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -53536,9 +53536,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
53536
53536
|
}
|
|
53537
53537
|
});
|
|
53538
53538
|
|
|
53539
|
-
// ../../node_modules/ajv/lib/definition_schema.js
|
|
53539
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/definition_schema.js
|
|
53540
53540
|
var require_definition_schema = __commonJS({
|
|
53541
|
-
"../../node_modules/ajv/lib/definition_schema.js"(exports, module2) {
|
|
53541
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/definition_schema.js"(exports, module2) {
|
|
53542
53542
|
"use strict";
|
|
53543
53543
|
var metaSchema = require_json_schema_draft_07();
|
|
53544
53544
|
module2.exports = {
|
|
@@ -53577,9 +53577,9 @@ var require_definition_schema = __commonJS({
|
|
|
53577
53577
|
}
|
|
53578
53578
|
});
|
|
53579
53579
|
|
|
53580
|
-
// ../../node_modules/ajv/lib/keyword.js
|
|
53580
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/keyword.js
|
|
53581
53581
|
var require_keyword = __commonJS({
|
|
53582
|
-
"../../node_modules/ajv/lib/keyword.js"(exports, module2) {
|
|
53582
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/keyword.js"(exports, module2) {
|
|
53583
53583
|
"use strict";
|
|
53584
53584
|
var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
|
|
53585
53585
|
var customRuleCode = require_custom();
|
|
@@ -53678,9 +53678,9 @@ var require_keyword = __commonJS({
|
|
|
53678
53678
|
}
|
|
53679
53679
|
});
|
|
53680
53680
|
|
|
53681
|
-
// ../../node_modules/ajv/lib/refs/data.json
|
|
53681
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/refs/data.json
|
|
53682
53682
|
var require_data2 = __commonJS({
|
|
53683
|
-
"../../node_modules/ajv/lib/refs/data.json"(exports, module2) {
|
|
53683
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/refs/data.json"(exports, module2) {
|
|
53684
53684
|
module2.exports = {
|
|
53685
53685
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
53686
53686
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -53701,9 +53701,9 @@ var require_data2 = __commonJS({
|
|
|
53701
53701
|
}
|
|
53702
53702
|
});
|
|
53703
53703
|
|
|
53704
|
-
// ../../node_modules/ajv/lib/ajv.js
|
|
53704
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/ajv.js
|
|
53705
53705
|
var require_ajv = __commonJS({
|
|
53706
|
-
"../../node_modules/ajv/lib/ajv.js"(exports, module2) {
|
|
53706
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/ajv.js"(exports, module2) {
|
|
53707
53707
|
"use strict";
|
|
53708
53708
|
var compileSchema = require_compile2();
|
|
53709
53709
|
var resolve = require_resolve();
|
|
@@ -54811,9 +54811,9 @@ var require_lib5 = __commonJS({
|
|
|
54811
54811
|
}
|
|
54812
54812
|
});
|
|
54813
54813
|
|
|
54814
|
-
// ../../node_modules/ajv/lib/refs/json-schema-draft-06.json
|
|
54814
|
+
// ../../node_modules/har-validator/node_modules/ajv/lib/refs/json-schema-draft-06.json
|
|
54815
54815
|
var require_json_schema_draft_06 = __commonJS({
|
|
54816
|
-
"../../node_modules/ajv/lib/refs/json-schema-draft-06.json"(exports, module2) {
|
|
54816
|
+
"../../node_modules/har-validator/node_modules/ajv/lib/refs/json-schema-draft-06.json"(exports, module2) {
|
|
54817
54817
|
module2.exports = {
|
|
54818
54818
|
$schema: "http://json-schema.org/draft-06/schema#",
|
|
54819
54819
|
$id: "http://json-schema.org/draft-06/schema#",
|
|
@@ -55056,7 +55056,7 @@ var require_promise = __commonJS({
|
|
|
55056
55056
|
var require_har2 = __commonJS({
|
|
55057
55057
|
"../../node_modules/request/lib/har.js"(exports) {
|
|
55058
55058
|
"use strict";
|
|
55059
|
-
var
|
|
55059
|
+
var fs4 = require("fs");
|
|
55060
55060
|
var qs = require("querystring");
|
|
55061
55061
|
var validate = require_promise();
|
|
55062
55062
|
var extend = require_extend();
|
|
@@ -55190,7 +55190,7 @@ var require_har2 = __commonJS({
|
|
|
55190
55190
|
return;
|
|
55191
55191
|
}
|
|
55192
55192
|
if (param.fileName && !param.value) {
|
|
55193
|
-
attachment.value =
|
|
55193
|
+
attachment.value = fs4.createReadStream(param.fileName);
|
|
55194
55194
|
} else if (param.value) {
|
|
55195
55195
|
attachment.value = param.value;
|
|
55196
55196
|
}
|
|
@@ -55213,9 +55213,9 @@ var require_har2 = __commonJS({
|
|
|
55213
55213
|
}
|
|
55214
55214
|
});
|
|
55215
55215
|
|
|
55216
|
-
// ../../node_modules/uuid/lib/rng.js
|
|
55216
|
+
// ../../node_modules/request/node_modules/uuid/lib/rng.js
|
|
55217
55217
|
var require_rng = __commonJS({
|
|
55218
|
-
"../../node_modules/uuid/lib/rng.js"(exports, module2) {
|
|
55218
|
+
"../../node_modules/request/node_modules/uuid/lib/rng.js"(exports, module2) {
|
|
55219
55219
|
var crypto2 = require("crypto");
|
|
55220
55220
|
module2.exports = function nodeRNG() {
|
|
55221
55221
|
return crypto2.randomBytes(16);
|
|
@@ -55223,9 +55223,9 @@ var require_rng = __commonJS({
|
|
|
55223
55223
|
}
|
|
55224
55224
|
});
|
|
55225
55225
|
|
|
55226
|
-
// ../../node_modules/uuid/lib/bytesToUuid.js
|
|
55226
|
+
// ../../node_modules/request/node_modules/uuid/lib/bytesToUuid.js
|
|
55227
55227
|
var require_bytesToUuid = __commonJS({
|
|
55228
|
-
"../../node_modules/uuid/lib/bytesToUuid.js"(exports, module2) {
|
|
55228
|
+
"../../node_modules/request/node_modules/uuid/lib/bytesToUuid.js"(exports, module2) {
|
|
55229
55229
|
var byteToHex = [];
|
|
55230
55230
|
for (i = 0; i < 256; ++i) {
|
|
55231
55231
|
byteToHex[i] = (i + 256).toString(16).substr(1);
|
|
@@ -55261,9 +55261,9 @@ var require_bytesToUuid = __commonJS({
|
|
|
55261
55261
|
}
|
|
55262
55262
|
});
|
|
55263
55263
|
|
|
55264
|
-
// ../../node_modules/uuid/v4.js
|
|
55264
|
+
// ../../node_modules/request/node_modules/uuid/v4.js
|
|
55265
55265
|
var require_v4 = __commonJS({
|
|
55266
|
-
"../../node_modules/uuid/v4.js"(exports, module2) {
|
|
55266
|
+
"../../node_modules/request/node_modules/uuid/v4.js"(exports, module2) {
|
|
55267
55267
|
var rng = require_rng();
|
|
55268
55268
|
var bytesToUuid = require_bytesToUuid();
|
|
55269
55269
|
function v4(options, buf, offset) {
|
|
@@ -55332,7 +55332,7 @@ var require_auth = __commonJS({
|
|
|
55332
55332
|
return authHeader;
|
|
55333
55333
|
}
|
|
55334
55334
|
};
|
|
55335
|
-
Auth.prototype.digest = function(method,
|
|
55335
|
+
Auth.prototype.digest = function(method, path2, authHeader) {
|
|
55336
55336
|
var self2 = this;
|
|
55337
55337
|
var challenge = {};
|
|
55338
55338
|
var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
|
|
@@ -55355,13 +55355,13 @@ var require_auth = __commonJS({
|
|
|
55355
55355
|
var nc = qop && "00000001";
|
|
55356
55356
|
var cnonce = qop && uuid().replace(/-/g, "");
|
|
55357
55357
|
var ha1 = ha1Compute(challenge.algorithm, self2.user, challenge.realm, self2.pass, challenge.nonce, cnonce);
|
|
55358
|
-
var ha2 = md5(method + ":" +
|
|
55358
|
+
var ha2 = md5(method + ":" + path2);
|
|
55359
55359
|
var digestResponse = qop ? md5(ha1 + ":" + challenge.nonce + ":" + nc + ":" + cnonce + ":" + qop + ":" + ha2) : md5(ha1 + ":" + challenge.nonce + ":" + ha2);
|
|
55360
55360
|
var authValues = {
|
|
55361
55361
|
username: self2.user,
|
|
55362
55362
|
realm: challenge.realm,
|
|
55363
55363
|
nonce: challenge.nonce,
|
|
55364
|
-
uri:
|
|
55364
|
+
uri: path2,
|
|
55365
55365
|
qop,
|
|
55366
55366
|
response: digestResponse,
|
|
55367
55367
|
nc,
|
|
@@ -57381,10 +57381,10 @@ var require_request2 = __commonJS({
|
|
|
57381
57381
|
Request.prototype.enableUnixSocket = function() {
|
|
57382
57382
|
var unixParts = this.uri.path.split(":");
|
|
57383
57383
|
var host = unixParts[0];
|
|
57384
|
-
var
|
|
57384
|
+
var path2 = unixParts[1];
|
|
57385
57385
|
this.socketPath = host;
|
|
57386
|
-
this.uri.pathname =
|
|
57387
|
-
this.uri.path =
|
|
57386
|
+
this.uri.pathname = path2;
|
|
57387
|
+
this.uri.path = path2;
|
|
57388
57388
|
this.uri.host = host;
|
|
57389
57389
|
this.uri.hostname = host;
|
|
57390
57390
|
this.uri.isUnix = true;
|
|
@@ -57433,14 +57433,14 @@ var require_request2 = __commonJS({
|
|
|
57433
57433
|
md5: self2.getHeader("content-md5") || "",
|
|
57434
57434
|
amazonHeaders: aws2.canonicalizeHeaders(self2.headers)
|
|
57435
57435
|
};
|
|
57436
|
-
var
|
|
57437
|
-
if (opts.bucket &&
|
|
57438
|
-
auth.resource = "/" + opts.bucket +
|
|
57439
|
-
} else if (opts.bucket && !
|
|
57436
|
+
var path2 = self2.uri.path;
|
|
57437
|
+
if (opts.bucket && path2) {
|
|
57438
|
+
auth.resource = "/" + opts.bucket + path2;
|
|
57439
|
+
} else if (opts.bucket && !path2) {
|
|
57440
57440
|
auth.resource = "/" + opts.bucket;
|
|
57441
|
-
} else if (!opts.bucket &&
|
|
57442
|
-
auth.resource =
|
|
57443
|
-
} else if (!opts.bucket && !
|
|
57441
|
+
} else if (!opts.bucket && path2) {
|
|
57442
|
+
auth.resource = path2;
|
|
57443
|
+
} else if (!opts.bucket && !path2) {
|
|
57444
57444
|
auth.resource = "/";
|
|
57445
57445
|
}
|
|
57446
57446
|
auth.resource = aws2.canonicalizeResource(auth.resource);
|
|
@@ -57757,13 +57757,13 @@ var require_node_pixels = __commonJS({
|
|
|
57757
57757
|
"../../node_modules/get-pixels/node-pixels.js"(exports, module2) {
|
|
57758
57758
|
"use strict";
|
|
57759
57759
|
var ndarray2 = require_ndarray();
|
|
57760
|
-
var
|
|
57760
|
+
var path2 = require("path");
|
|
57761
57761
|
var PNG = require_png2().PNG;
|
|
57762
57762
|
var jpeg = require_jpeg_js();
|
|
57763
57763
|
var pack = require_convert();
|
|
57764
57764
|
var GifReader = require_omggif().GifReader;
|
|
57765
57765
|
var Bitmap = require_node_bitmap();
|
|
57766
|
-
var
|
|
57766
|
+
var fs4 = require("fs");
|
|
57767
57767
|
var request = require_request3();
|
|
57768
57768
|
var mime = require_mime_types();
|
|
57769
57769
|
var parseDataURI = require_parse_data_uri();
|
|
@@ -57923,7 +57923,7 @@ var require_node_pixels = __commonJS({
|
|
|
57923
57923
|
doParse(type, body, cb);
|
|
57924
57924
|
});
|
|
57925
57925
|
} else {
|
|
57926
|
-
|
|
57926
|
+
fs4.readFile(url, function(err, data) {
|
|
57927
57927
|
if (err) {
|
|
57928
57928
|
cb(err);
|
|
57929
57929
|
return;
|
|
@@ -63875,6 +63875,18 @@ function getPixelsAsync(buffer, mimeType) {
|
|
|
63875
63875
|
);
|
|
63876
63876
|
}
|
|
63877
63877
|
|
|
63878
|
+
// ../loader-utils/src/lib/module-utils/js-module-utils.ts
|
|
63879
|
+
function registerJSModules(modules) {
|
|
63880
|
+
globalThis.loaders ||= {};
|
|
63881
|
+
globalThis.loaders.modules ||= {};
|
|
63882
|
+
Object.assign(globalThis.loaders.modules, modules);
|
|
63883
|
+
}
|
|
63884
|
+
function getJSModuleOrNull(name) {
|
|
63885
|
+
var _a, _b;
|
|
63886
|
+
const module2 = (_b = (_a = globalThis.loaders) == null ? void 0 : _a.modules) == null ? void 0 : _b[name];
|
|
63887
|
+
return module2 || null;
|
|
63888
|
+
}
|
|
63889
|
+
|
|
63878
63890
|
// ../worker-utils/src/lib/env-utils/version.ts
|
|
63879
63891
|
function getVersion() {
|
|
63880
63892
|
var _a;
|
|
@@ -63886,7 +63898,7 @@ function getVersion() {
|
|
|
63886
63898
|
);
|
|
63887
63899
|
globalThis._loadersgl_.version = NPM_TAG;
|
|
63888
63900
|
} else {
|
|
63889
|
-
globalThis._loadersgl_.version = "4.2.0-alpha.
|
|
63901
|
+
globalThis._loadersgl_.version = "4.2.0-alpha.6";
|
|
63890
63902
|
}
|
|
63891
63903
|
}
|
|
63892
63904
|
return globalThis._loadersgl_.version;
|
|
@@ -63987,7 +63999,9 @@ var WorkerBody = class {
|
|
|
63987
63999
|
}
|
|
63988
64000
|
getParentPort().then((parentPort2) => {
|
|
63989
64001
|
if (parentPort2) {
|
|
63990
|
-
parentPort2.on("message",
|
|
64002
|
+
parentPort2.on("message", (message) => {
|
|
64003
|
+
handleMessage(message);
|
|
64004
|
+
});
|
|
63991
64005
|
parentPort2.on("exit", () => console.debug("Node worker closing"));
|
|
63992
64006
|
} else {
|
|
63993
64007
|
globalThis.onmessage = handleMessage;
|
|
@@ -64044,65 +64058,6 @@ function isKnownMessage(message) {
|
|
|
64044
64058
|
return type === "message" && data && typeof data.source === "string" && data.source.startsWith("loaders.gl");
|
|
64045
64059
|
}
|
|
64046
64060
|
|
|
64047
|
-
// ../worker-utils/src/lib/node/require-utils.node.ts
|
|
64048
|
-
var require_utils_node_exports = {};
|
|
64049
|
-
__export(require_utils_node_exports, {
|
|
64050
|
-
readFileAsArrayBuffer: () => readFileAsArrayBuffer,
|
|
64051
|
-
readFileAsText: () => readFileAsText,
|
|
64052
|
-
requireFromFile: () => requireFromFile,
|
|
64053
|
-
requireFromString: () => requireFromString
|
|
64054
|
-
});
|
|
64055
|
-
var import_module = __toESM(require("module"), 1);
|
|
64056
|
-
var path = __toESM(require("path"), 1);
|
|
64057
|
-
var fs = __toESM(require("fs"), 1);
|
|
64058
|
-
async function readFileAsArrayBuffer(filename) {
|
|
64059
|
-
if (filename.startsWith("http")) {
|
|
64060
|
-
const response = await fetch(filename);
|
|
64061
|
-
return await response.arrayBuffer();
|
|
64062
|
-
}
|
|
64063
|
-
const buffer = fs.readFileSync(filename);
|
|
64064
|
-
return buffer.buffer;
|
|
64065
|
-
}
|
|
64066
|
-
async function readFileAsText(filename) {
|
|
64067
|
-
if (filename.startsWith("http")) {
|
|
64068
|
-
const response = await fetch(filename);
|
|
64069
|
-
return await response.text();
|
|
64070
|
-
}
|
|
64071
|
-
const text = fs.readFileSync(filename, "utf8");
|
|
64072
|
-
return text;
|
|
64073
|
-
}
|
|
64074
|
-
async function requireFromFile(filename) {
|
|
64075
|
-
if (filename.startsWith("http")) {
|
|
64076
|
-
const response = await fetch(filename);
|
|
64077
|
-
const code2 = await response.text();
|
|
64078
|
-
return requireFromString(code2);
|
|
64079
|
-
}
|
|
64080
|
-
if (!filename.startsWith("/")) {
|
|
64081
|
-
filename = `${process.cwd()}/${filename}`;
|
|
64082
|
-
}
|
|
64083
|
-
const code = await fs.promises.readFile(filename, "utf8");
|
|
64084
|
-
return requireFromString(code);
|
|
64085
|
-
}
|
|
64086
|
-
function requireFromString(code, filename = "", options) {
|
|
64087
|
-
if (typeof filename === "object") {
|
|
64088
|
-
options = filename;
|
|
64089
|
-
filename = "";
|
|
64090
|
-
}
|
|
64091
|
-
if (typeof code !== "string") {
|
|
64092
|
-
throw new Error(`code must be a string, not ${typeof code}`);
|
|
64093
|
-
}
|
|
64094
|
-
const paths = import_module.default._nodeModulePaths(path.dirname(filename));
|
|
64095
|
-
const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
|
|
64096
|
-
const newModule = new import_module.default(filename, parent);
|
|
64097
|
-
newModule.filename = filename;
|
|
64098
|
-
newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
|
|
64099
|
-
newModule._compile(code, filename);
|
|
64100
|
-
if (parent && parent.children) {
|
|
64101
|
-
parent.children.splice(parent.children.indexOf(newModule), 1);
|
|
64102
|
-
}
|
|
64103
|
-
return newModule.exports;
|
|
64104
|
-
}
|
|
64105
|
-
|
|
64106
64061
|
// ../worker-utils/src/lib/library-utils/library-utils.ts
|
|
64107
64062
|
var loadLibraryPromises = {};
|
|
64108
64063
|
async function loadLibrary(libraryUrl, moduleName = null, options = {}, libraryName = null) {
|
|
@@ -64140,7 +64095,8 @@ async function loadLibraryFromFile(libraryUrl) {
|
|
|
64140
64095
|
}
|
|
64141
64096
|
if (!isBrowser2) {
|
|
64142
64097
|
try {
|
|
64143
|
-
|
|
64098
|
+
const { requireFromFile: requireFromFile2 } = globalThis.loaders || {};
|
|
64099
|
+
return await (requireFromFile2 == null ? void 0 : requireFromFile2(libraryUrl));
|
|
64144
64100
|
} catch (error) {
|
|
64145
64101
|
console.error(error);
|
|
64146
64102
|
return null;
|
|
@@ -64154,7 +64110,8 @@ async function loadLibraryFromFile(libraryUrl) {
|
|
|
64154
64110
|
}
|
|
64155
64111
|
function loadLibraryFromString(scriptSource, id) {
|
|
64156
64112
|
if (!isBrowser2) {
|
|
64157
|
-
|
|
64113
|
+
const { requireFromString: requireFromString2 } = globalThis.loaders || {};
|
|
64114
|
+
return requireFromString2 == null ? void 0 : requireFromString2(scriptSource, id);
|
|
64158
64115
|
}
|
|
64159
64116
|
if (isWorker) {
|
|
64160
64117
|
eval.call(globalThis, scriptSource);
|
|
@@ -64171,18 +64128,20 @@ function loadLibraryFromString(scriptSource, id) {
|
|
|
64171
64128
|
return null;
|
|
64172
64129
|
}
|
|
64173
64130
|
async function loadAsArrayBuffer(url) {
|
|
64174
|
-
|
|
64131
|
+
const { readFileAsArrayBuffer: readFileAsArrayBuffer2 } = globalThis.loaders || {};
|
|
64132
|
+
if (isBrowser2 || !readFileAsArrayBuffer2 || url.startsWith("http")) {
|
|
64175
64133
|
const response = await fetch(url);
|
|
64176
64134
|
return await response.arrayBuffer();
|
|
64177
64135
|
}
|
|
64178
|
-
return await
|
|
64136
|
+
return await readFileAsArrayBuffer2(url);
|
|
64179
64137
|
}
|
|
64180
64138
|
async function loadAsText(url) {
|
|
64181
|
-
|
|
64139
|
+
const { readFileAsText: readFileAsText2 } = globalThis.loaders || {};
|
|
64140
|
+
if (isBrowser2 || !readFileAsText2 || url.startsWith("http")) {
|
|
64182
64141
|
const response = await fetch(url);
|
|
64183
64142
|
return await response.text();
|
|
64184
64143
|
}
|
|
64185
|
-
return await
|
|
64144
|
+
return await readFileAsText2(url);
|
|
64186
64145
|
}
|
|
64187
64146
|
|
|
64188
64147
|
// ../loader-utils/src/lib/worker-loader-utils/create-loader-worker.ts
|
|
@@ -64312,13 +64271,17 @@ function resolvePath(filename) {
|
|
|
64312
64271
|
// ../polyfills/src/filesystems/node-file.ts
|
|
64313
64272
|
var import_fs = __toESM(require("fs"), 1);
|
|
64314
64273
|
var NodeFile = class {
|
|
64315
|
-
|
|
64316
|
-
|
|
64317
|
-
|
|
64274
|
+
handle;
|
|
64275
|
+
size;
|
|
64276
|
+
bigsize;
|
|
64277
|
+
url;
|
|
64278
|
+
constructor(path2, flags, mode) {
|
|
64279
|
+
path2 = resolvePath(path2);
|
|
64280
|
+
this.handle = import_fs.default.openSync(path2, flags, mode);
|
|
64318
64281
|
const stats = import_fs.default.fstatSync(this.handle, { bigint: true });
|
|
64319
64282
|
this.size = Number(stats.size);
|
|
64320
64283
|
this.bigsize = stats.size;
|
|
64321
|
-
this.url =
|
|
64284
|
+
this.url = path2;
|
|
64322
64285
|
}
|
|
64323
64286
|
async close() {
|
|
64324
64287
|
return new Promise((resolve, reject) => {
|
|
@@ -64353,18 +64316,21 @@ var NodeFile = class {
|
|
|
64353
64316
|
}
|
|
64354
64317
|
async stat() {
|
|
64355
64318
|
return await new Promise(
|
|
64356
|
-
(resolve, reject) =>
|
|
64357
|
-
|
|
64358
|
-
|
|
64359
|
-
|
|
64360
|
-
|
|
64361
|
-
|
|
64362
|
-
|
|
64363
|
-
|
|
64364
|
-
|
|
64365
|
-
|
|
64366
|
-
|
|
64367
|
-
|
|
64319
|
+
(resolve, reject) => (
|
|
64320
|
+
// @ts-expect-error bigint typings
|
|
64321
|
+
import_fs.default.fstat(this.handle, { bigint: true }, (err, info) => {
|
|
64322
|
+
const stats = {
|
|
64323
|
+
size: Number(info.size),
|
|
64324
|
+
bigsize: info.size,
|
|
64325
|
+
isDirectory: info.isDirectory()
|
|
64326
|
+
};
|
|
64327
|
+
if (err) {
|
|
64328
|
+
reject(err);
|
|
64329
|
+
} else {
|
|
64330
|
+
resolve(stats);
|
|
64331
|
+
}
|
|
64332
|
+
})
|
|
64333
|
+
)
|
|
64368
64334
|
);
|
|
64369
64335
|
}
|
|
64370
64336
|
async read(offset, length) {
|
|
@@ -64404,13 +64370,16 @@ var NodeFile = class {
|
|
|
64404
64370
|
};
|
|
64405
64371
|
async function readBytes(fd, uint8Array, offset, length, position) {
|
|
64406
64372
|
return await new Promise(
|
|
64407
|
-
(resolve, reject) =>
|
|
64408
|
-
|
|
64409
|
-
|
|
64410
|
-
|
|
64411
|
-
|
|
64412
|
-
|
|
64413
|
-
|
|
64373
|
+
(resolve, reject) => (
|
|
64374
|
+
// @ts-expect-error bigint?
|
|
64375
|
+
import_fs.default.read(
|
|
64376
|
+
fd,
|
|
64377
|
+
uint8Array,
|
|
64378
|
+
offset,
|
|
64379
|
+
length,
|
|
64380
|
+
position,
|
|
64381
|
+
(err, bytesRead) => err ? reject(err) : resolve(bytesRead)
|
|
64382
|
+
)
|
|
64414
64383
|
)
|
|
64415
64384
|
);
|
|
64416
64385
|
}
|
|
@@ -64552,34 +64521,34 @@ function getHeadersForFile(noqueryUrl) {
|
|
|
64552
64521
|
|
|
64553
64522
|
// ../polyfills/src/filesystems/node-filesystem.ts
|
|
64554
64523
|
var NodeFileSystem = class {
|
|
64524
|
+
readable = true;
|
|
64525
|
+
writable = true;
|
|
64555
64526
|
// implements FileSystem
|
|
64556
64527
|
constructor() {
|
|
64557
|
-
this.readable = true;
|
|
64558
|
-
this.writable = true;
|
|
64559
64528
|
}
|
|
64560
|
-
async readdir(
|
|
64561
|
-
return await import_promises.default.readdir(
|
|
64529
|
+
async readdir(dirname = ".", options) {
|
|
64530
|
+
return await import_promises.default.readdir(dirname, options);
|
|
64562
64531
|
}
|
|
64563
|
-
async stat(
|
|
64564
|
-
const info = await import_promises.default.stat(
|
|
64532
|
+
async stat(path2) {
|
|
64533
|
+
const info = await import_promises.default.stat(path2, { bigint: true });
|
|
64565
64534
|
return {
|
|
64566
64535
|
size: Number(info.size),
|
|
64567
64536
|
bigsize: info.size,
|
|
64568
64537
|
isDirectory: info.isDirectory()
|
|
64569
64538
|
};
|
|
64570
64539
|
}
|
|
64571
|
-
async unlink(
|
|
64572
|
-
return await import_promises.default.unlink(
|
|
64540
|
+
async unlink(path2) {
|
|
64541
|
+
return await import_promises.default.unlink(path2);
|
|
64573
64542
|
}
|
|
64574
|
-
async fetch(
|
|
64575
|
-
return await fetchNode(
|
|
64543
|
+
async fetch(path2, options) {
|
|
64544
|
+
return await fetchNode(path2, options);
|
|
64576
64545
|
}
|
|
64577
64546
|
// implements IRandomAccessFileSystem
|
|
64578
|
-
async openReadableFile(
|
|
64579
|
-
return new NodeFile(
|
|
64547
|
+
async openReadableFile(path2, flags = "r") {
|
|
64548
|
+
return new NodeFile(path2, flags);
|
|
64580
64549
|
}
|
|
64581
|
-
async openWritableFile(
|
|
64582
|
-
return new NodeFile(
|
|
64550
|
+
async openWritableFile(path2, flags = "w", mode) {
|
|
64551
|
+
return new NodeFile(path2, flags, mode);
|
|
64583
64552
|
}
|
|
64584
64553
|
};
|
|
64585
64554
|
|
|
@@ -64611,10 +64580,15 @@ var Hash = class {
|
|
|
64611
64580
|
// ../polyfills/src/crypto/node-hash.ts
|
|
64612
64581
|
var crypto = __toESM(require("crypto"), 1);
|
|
64613
64582
|
var NodeHash = class extends Hash {
|
|
64583
|
+
name = "crypto-node";
|
|
64584
|
+
options;
|
|
64585
|
+
// @ts-ignore
|
|
64586
|
+
_algorithm;
|
|
64587
|
+
// @ts-ignore
|
|
64588
|
+
_hash;
|
|
64614
64589
|
constructor(options) {
|
|
64615
64590
|
var _a, _b;
|
|
64616
64591
|
super();
|
|
64617
|
-
this.name = "crypto-node";
|
|
64618
64592
|
this.options = options;
|
|
64619
64593
|
if (!((_b = (_a = this.options) == null ? void 0 : _a.crypto) == null ? void 0 : _b.algorithm)) {
|
|
64620
64594
|
throw new Error(this.name);
|
|
@@ -64673,6 +64647,9 @@ function makeNodeStream(source, options) {
|
|
|
64673
64647
|
return new AsyncIterableReadable(iterator, options);
|
|
64674
64648
|
}
|
|
64675
64649
|
var AsyncIterableReadable = class extends Readable3 {
|
|
64650
|
+
_pulling;
|
|
64651
|
+
_bytesMode;
|
|
64652
|
+
_iterator;
|
|
64676
64653
|
constructor(it, options) {
|
|
64677
64654
|
super(options);
|
|
64678
64655
|
this._iterator = it;
|
|
@@ -64725,12 +64702,13 @@ var ReadableStreamPolyfill = class extends import_web_streams_polyfill.ReadableS
|
|
|
64725
64702
|
|
|
64726
64703
|
// ../polyfills/src/file/blob-stream-controller.ts
|
|
64727
64704
|
var BlobStreamController = class {
|
|
64705
|
+
chunks;
|
|
64706
|
+
isWorking = false;
|
|
64707
|
+
isCancelled = false;
|
|
64728
64708
|
/**
|
|
64729
64709
|
* @param chunks
|
|
64730
64710
|
*/
|
|
64731
64711
|
constructor(chunks) {
|
|
64732
|
-
this.isWorking = false;
|
|
64733
|
-
this.isCancelled = false;
|
|
64734
64712
|
this.chunks = chunks;
|
|
64735
64713
|
}
|
|
64736
64714
|
/**
|
|
@@ -64780,6 +64758,7 @@ var BlobStreamController = class {
|
|
|
64780
64758
|
|
|
64781
64759
|
// ../polyfills/src/file/blob-stream.ts
|
|
64782
64760
|
var BlobStream = class extends ReadableStreamPolyfill {
|
|
64761
|
+
_chunks;
|
|
64783
64762
|
/**
|
|
64784
64763
|
* @param chunks
|
|
64785
64764
|
*/
|
|
@@ -64800,6 +64779,12 @@ var BlobStream = class extends ReadableStreamPolyfill {
|
|
|
64800
64779
|
|
|
64801
64780
|
// ../polyfills/src/file/blob.ts
|
|
64802
64781
|
var BlobPolyfill = class {
|
|
64782
|
+
// implements Blob {
|
|
64783
|
+
/** The MIME type of the data contained in the Blob. If type is unknown, string is empty. */
|
|
64784
|
+
type;
|
|
64785
|
+
/** The size, in bytes, of the data contained in the Blob object. */
|
|
64786
|
+
size;
|
|
64787
|
+
parts;
|
|
64803
64788
|
/**
|
|
64804
64789
|
* @param [init]
|
|
64805
64790
|
* @param [options]
|
|
@@ -64946,6 +64931,22 @@ var Blob_ = instalBlobPolyfills();
|
|
|
64946
64931
|
|
|
64947
64932
|
// ../polyfills/src/file/file-reader.ts
|
|
64948
64933
|
var FileReaderPolyfill = class {
|
|
64934
|
+
// onload: ({result: any}) => void;
|
|
64935
|
+
onload;
|
|
64936
|
+
onabort;
|
|
64937
|
+
onerror;
|
|
64938
|
+
error;
|
|
64939
|
+
onloadstart;
|
|
64940
|
+
onloadend;
|
|
64941
|
+
onprogress;
|
|
64942
|
+
readyState;
|
|
64943
|
+
result;
|
|
64944
|
+
DONE;
|
|
64945
|
+
EMPTY;
|
|
64946
|
+
LOADING;
|
|
64947
|
+
addEventListener;
|
|
64948
|
+
removeEventListener;
|
|
64949
|
+
dispatchEvent;
|
|
64949
64950
|
constructor() {
|
|
64950
64951
|
this.onload = null;
|
|
64951
64952
|
}
|
|
@@ -64978,6 +64979,17 @@ var FileReaderPolyfill = class {
|
|
|
64978
64979
|
|
|
64979
64980
|
// ../polyfills/src/file/file.ts
|
|
64980
64981
|
var FilePolyfill = class extends globalThis.Blob {
|
|
64982
|
+
// implements File {
|
|
64983
|
+
// public API
|
|
64984
|
+
/** The name of the file referenced by the File object. */
|
|
64985
|
+
name = "";
|
|
64986
|
+
/** The path the URL of the File is relative to. */
|
|
64987
|
+
webkitRelativePath = "";
|
|
64988
|
+
/**
|
|
64989
|
+
* Returns the last modified time of the file, in millisecond since the UNIX
|
|
64990
|
+
* epoch (January 1st, 1970 at Midnight).
|
|
64991
|
+
*/
|
|
64992
|
+
lastModified;
|
|
64981
64993
|
/**
|
|
64982
64994
|
* @param init
|
|
64983
64995
|
* @param name - A USVString representing the file name or the path
|
|
@@ -64986,12 +64998,6 @@ var FilePolyfill = class extends globalThis.Blob {
|
|
|
64986
64998
|
*/
|
|
64987
64999
|
constructor(init, name, options = {}) {
|
|
64988
65000
|
super(init, options);
|
|
64989
|
-
// implements File {
|
|
64990
|
-
// public API
|
|
64991
|
-
/** The name of the file referenced by the File object. */
|
|
64992
|
-
this.name = "";
|
|
64993
|
-
/** The path the URL of the File is relative to. */
|
|
64994
|
-
this.webkitRelativePath = "";
|
|
64995
65001
|
this.name = String(name).replace(/\//g, ":");
|
|
64996
65002
|
this.lastModified = (options == null ? void 0 : options.lastModified) || Date.now();
|
|
64997
65003
|
}
|
|
@@ -65013,10 +65019,10 @@ function installFilePolyfills() {
|
|
|
65013
65019
|
var File_ = installFilePolyfills();
|
|
65014
65020
|
|
|
65015
65021
|
// ../polyfills/src/load-library/require-utils.node.ts
|
|
65016
|
-
var
|
|
65022
|
+
var import_module = __toESM(require("module"), 1);
|
|
65017
65023
|
var import_path = __toESM(require("path"), 1);
|
|
65018
65024
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
65019
|
-
async function
|
|
65025
|
+
async function readFileAsArrayBuffer(filename) {
|
|
65020
65026
|
if (filename.startsWith("http")) {
|
|
65021
65027
|
const response = await fetch(filename);
|
|
65022
65028
|
return await response.arrayBuffer();
|
|
@@ -65024,7 +65030,7 @@ async function readFileAsArrayBuffer2(filename) {
|
|
|
65024
65030
|
const buffer = import_fs3.default.readFileSync(filename);
|
|
65025
65031
|
return buffer.buffer;
|
|
65026
65032
|
}
|
|
65027
|
-
async function
|
|
65033
|
+
async function readFileAsText(filename) {
|
|
65028
65034
|
if (filename.startsWith("http")) {
|
|
65029
65035
|
const response = await fetch(filename);
|
|
65030
65036
|
return await response.text();
|
|
@@ -65032,19 +65038,19 @@ async function readFileAsText2(filename) {
|
|
|
65032
65038
|
const text = import_fs3.default.readFileSync(filename, "utf8");
|
|
65033
65039
|
return text;
|
|
65034
65040
|
}
|
|
65035
|
-
async function
|
|
65041
|
+
async function requireFromFile(filename) {
|
|
65036
65042
|
if (filename.startsWith("http")) {
|
|
65037
65043
|
const response = await fetch(filename);
|
|
65038
65044
|
const code2 = await response.text();
|
|
65039
|
-
return
|
|
65045
|
+
return requireFromString(code2);
|
|
65040
65046
|
}
|
|
65041
65047
|
if (!filename.startsWith("/")) {
|
|
65042
65048
|
filename = `${process.cwd()}/${filename}`;
|
|
65043
65049
|
}
|
|
65044
|
-
const code =
|
|
65045
|
-
return
|
|
65050
|
+
const code = import_fs3.default.readFileSync(filename, "utf8");
|
|
65051
|
+
return requireFromString(code);
|
|
65046
65052
|
}
|
|
65047
|
-
function
|
|
65053
|
+
function requireFromString(code, filename = "", options) {
|
|
65048
65054
|
if (typeof filename === "object") {
|
|
65049
65055
|
options = filename;
|
|
65050
65056
|
filename = "";
|
|
@@ -65053,9 +65059,9 @@ function requireFromString2(code, filename = "", options) {
|
|
|
65053
65059
|
if (typeof code !== "string") {
|
|
65054
65060
|
throw new Error(`code must be a string, not ${typeof code}`);
|
|
65055
65061
|
}
|
|
65056
|
-
const paths =
|
|
65062
|
+
const paths = import_module.default._nodeModulePaths(import_path.default.dirname(filename));
|
|
65057
65063
|
const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
|
|
65058
|
-
const newModule = new
|
|
65064
|
+
const newModule = new import_module.default(filename, parent);
|
|
65059
65065
|
newModule.filename = filename;
|
|
65060
65066
|
newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
|
|
65061
65067
|
newModule._compile(code, filename);
|
|
@@ -65067,6 +65073,7 @@ function requireFromString2(code, filename = "", options) {
|
|
|
65067
65073
|
|
|
65068
65074
|
// ../polyfills/src/fetch/headers-polyfill.ts
|
|
65069
65075
|
var Headers2 = class {
|
|
65076
|
+
map;
|
|
65070
65077
|
constructor(headers) {
|
|
65071
65078
|
this.map = {};
|
|
65072
65079
|
if (headers instanceof Headers2) {
|
|
@@ -65174,9 +65181,15 @@ var isFunction2 = (x) => typeof x === "function";
|
|
|
65174
65181
|
var isObject2 = (x) => x !== null && typeof x === "object";
|
|
65175
65182
|
var isReadableNodeStream2 = (x) => isObject2(x) && isFunction2(x.read) && isFunction2(x.pipe) && isBoolean2(x.readable);
|
|
65176
65183
|
var Response2 = class {
|
|
65184
|
+
ok;
|
|
65185
|
+
status;
|
|
65186
|
+
statusText;
|
|
65187
|
+
headers;
|
|
65188
|
+
url;
|
|
65189
|
+
bodyUsed = false;
|
|
65190
|
+
_body;
|
|
65177
65191
|
// TODO - handle ArrayBuffer, ArrayBufferView, Buffer
|
|
65178
65192
|
constructor(body, options) {
|
|
65179
|
-
this.bodyUsed = false;
|
|
65180
65193
|
const { headers, status = 200, statusText = "OK", url } = options || {};
|
|
65181
65194
|
this.url = url;
|
|
65182
65195
|
this.ok = status === 200;
|
|
@@ -65403,10 +65416,10 @@ globalThis.loaders.parseImageNode = parseImageNode;
|
|
|
65403
65416
|
globalThis.loaders.imageFormatsNode = NODE_FORMAT_SUPPORT;
|
|
65404
65417
|
globalThis._parseImageNode = parseImageNode;
|
|
65405
65418
|
globalThis._imageFormatsNode = NODE_FORMAT_SUPPORT;
|
|
65406
|
-
globalThis.loaders.readFileAsArrayBuffer =
|
|
65407
|
-
globalThis.loaders.readFileAsText =
|
|
65408
|
-
globalThis.loaders.requireFromFile =
|
|
65409
|
-
globalThis.loaders.requireFromString =
|
|
65419
|
+
globalThis.loaders.readFileAsArrayBuffer = readFileAsArrayBuffer;
|
|
65420
|
+
globalThis.loaders.readFileAsText = readFileAsText;
|
|
65421
|
+
globalThis.loaders.requireFromFile = requireFromFile;
|
|
65422
|
+
globalThis.loaders.requireFromString = requireFromString;
|
|
65410
65423
|
if (nodeVersion2 < 18) {
|
|
65411
65424
|
if (!("Headers" in globalThis) && Headers2) {
|
|
65412
65425
|
globalThis.Headers = Headers2;
|
|
@@ -65420,7 +65433,7 @@ if (nodeVersion2 < 18) {
|
|
|
65420
65433
|
}
|
|
65421
65434
|
|
|
65422
65435
|
// src/lib/utils/version.ts
|
|
65423
|
-
var VERSION2 = true ? "4.2.0-alpha.
|
|
65436
|
+
var VERSION2 = true ? "4.2.0-alpha.6" : "latest";
|
|
65424
65437
|
|
|
65425
65438
|
// src/lib/parsers/basis-module-loader.ts
|
|
65426
65439
|
var BASIS_EXTERNAL_LIBRARIES = {
|
|
@@ -65435,11 +65448,12 @@ var BASIS_EXTERNAL_LIBRARIES = {
|
|
|
65435
65448
|
};
|
|
65436
65449
|
var loadBasisTranscoderPromise;
|
|
65437
65450
|
async function loadBasisTranscoderModule(options) {
|
|
65438
|
-
|
|
65439
|
-
|
|
65440
|
-
|
|
65451
|
+
registerJSModules(options.modules);
|
|
65452
|
+
const basis = getJSModuleOrNull("basis");
|
|
65453
|
+
if (basis) {
|
|
65454
|
+
return basis;
|
|
65441
65455
|
}
|
|
65442
|
-
loadBasisTranscoderPromise
|
|
65456
|
+
loadBasisTranscoderPromise ||= loadBasisTranscoder(options);
|
|
65443
65457
|
return await loadBasisTranscoderPromise;
|
|
65444
65458
|
}
|
|
65445
65459
|
async function loadBasisTranscoder(options) {
|
|
@@ -65844,6 +65858,8 @@ function selectSupportedBasisFormat() {
|
|
|
65844
65858
|
|
|
65845
65859
|
// src/basis-loader.ts
|
|
65846
65860
|
var BasisWorkerLoader = {
|
|
65861
|
+
dataType: null,
|
|
65862
|
+
batchType: null,
|
|
65847
65863
|
name: "Basis",
|
|
65848
65864
|
id: "basis",
|
|
65849
65865
|
module: "textures",
|
|
@@ -65856,12 +65872,9 @@ var BasisWorkerLoader = {
|
|
|
65856
65872
|
options: {
|
|
65857
65873
|
basis: {
|
|
65858
65874
|
format: "auto",
|
|
65859
|
-
// gl context doesn't exist on a worker thread
|
|
65860
65875
|
libraryPath: "libs/",
|
|
65861
65876
|
containerFormat: "auto",
|
|
65862
|
-
// 'basis' || 'ktx2' || 'auto'
|
|
65863
65877
|
module: "transcoder"
|
|
65864
|
-
// 'transcoder' || 'encoder'
|
|
65865
65878
|
}
|
|
65866
65879
|
}
|
|
65867
65880
|
};
|