@loaders.gl/textures 4.0.0-beta.3 → 4.0.0-beta.5

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.
@@ -4785,9 +4785,9 @@ var require_decoder = __commonJS({
4785
4785
  return a < 0 ? 0 : a > 255 ? 255 : a;
4786
4786
  }
4787
4787
  constructor.prototype = {
4788
- load: function load(path2) {
4788
+ load: function load(path3) {
4789
4789
  var xhr = new XMLHttpRequest();
4790
- xhr.open("GET", path2, true);
4790
+ xhr.open("GET", path3, true);
4791
4791
  xhr.responseType = "arraybuffer";
4792
4792
  xhr.onload = function() {
4793
4793
  var data = new Uint8Array(xhr.response || xhr.mozResponseArrayBuffer);
@@ -21419,10 +21419,10 @@ var require_store = __commonJS({
21419
21419
  }
21420
21420
  exports.Store = Store;
21421
21421
  Store.prototype.synchronous = false;
21422
- Store.prototype.findCookie = function(domain, path2, key, cb) {
21422
+ Store.prototype.findCookie = function(domain, path3, key, cb) {
21423
21423
  throw new Error("findCookie is not implemented");
21424
21424
  };
21425
- Store.prototype.findCookies = function(domain, path2, cb) {
21425
+ Store.prototype.findCookies = function(domain, path3, cb) {
21426
21426
  throw new Error("findCookies is not implemented");
21427
21427
  };
21428
21428
  Store.prototype.putCookie = function(cookie, cb) {
@@ -21431,10 +21431,10 @@ var require_store = __commonJS({
21431
21431
  Store.prototype.updateCookie = function(oldCookie, newCookie, cb) {
21432
21432
  throw new Error("updateCookie is not implemented");
21433
21433
  };
21434
- Store.prototype.removeCookie = function(domain, path2, key, cb) {
21434
+ Store.prototype.removeCookie = function(domain, path3, key, cb) {
21435
21435
  throw new Error("removeCookie is not implemented");
21436
21436
  };
21437
- Store.prototype.removeCookies = function(domain, path2, cb) {
21437
+ Store.prototype.removeCookies = function(domain, path3, cb) {
21438
21438
  throw new Error("removeCookies is not implemented");
21439
21439
  };
21440
21440
  Store.prototype.removeAllCookies = function(cb) {
@@ -21518,22 +21518,22 @@ var require_memstore = __commonJS({
21518
21518
  if (util.inspect.custom) {
21519
21519
  MemoryCookieStore.prototype[util.inspect.custom] = MemoryCookieStore.prototype.inspect;
21520
21520
  }
21521
- MemoryCookieStore.prototype.findCookie = function(domain, path2, key, cb) {
21521
+ MemoryCookieStore.prototype.findCookie = function(domain, path3, key, cb) {
21522
21522
  if (!this.idx[domain]) {
21523
21523
  return cb(null, void 0);
21524
21524
  }
21525
- if (!this.idx[domain][path2]) {
21525
+ if (!this.idx[domain][path3]) {
21526
21526
  return cb(null, void 0);
21527
21527
  }
21528
- return cb(null, this.idx[domain][path2][key] || null);
21528
+ return cb(null, this.idx[domain][path3][key] || null);
21529
21529
  };
21530
- MemoryCookieStore.prototype.findCookies = function(domain, path2, cb) {
21530
+ MemoryCookieStore.prototype.findCookies = function(domain, path3, cb) {
21531
21531
  var results = [];
21532
21532
  if (!domain) {
21533
21533
  return cb(null, []);
21534
21534
  }
21535
21535
  var pathMatcher;
21536
- if (!path2) {
21536
+ if (!path3) {
21537
21537
  pathMatcher = function matchAll(domainIndex) {
21538
21538
  for (var curPath in domainIndex) {
21539
21539
  var pathIndex = domainIndex[curPath];
@@ -21545,7 +21545,7 @@ var require_memstore = __commonJS({
21545
21545
  } else {
21546
21546
  pathMatcher = function matchRFC(domainIndex) {
21547
21547
  Object.keys(domainIndex).forEach(function(cookiePath) {
21548
- if (pathMatch(path2, cookiePath)) {
21548
+ if (pathMatch(path3, cookiePath)) {
21549
21549
  var pathIndex = domainIndex[cookiePath];
21550
21550
  for (var key in pathIndex) {
21551
21551
  results.push(pathIndex[key]);
@@ -21578,16 +21578,16 @@ var require_memstore = __commonJS({
21578
21578
  MemoryCookieStore.prototype.updateCookie = function(oldCookie, newCookie, cb) {
21579
21579
  this.putCookie(newCookie, cb);
21580
21580
  };
21581
- MemoryCookieStore.prototype.removeCookie = function(domain, path2, key, cb) {
21582
- if (this.idx[domain] && this.idx[domain][path2] && this.idx[domain][path2][key]) {
21583
- delete this.idx[domain][path2][key];
21581
+ MemoryCookieStore.prototype.removeCookie = function(domain, path3, key, cb) {
21582
+ if (this.idx[domain] && this.idx[domain][path3] && this.idx[domain][path3][key]) {
21583
+ delete this.idx[domain][path3][key];
21584
21584
  }
21585
21585
  cb(null);
21586
21586
  };
21587
- MemoryCookieStore.prototype.removeCookies = function(domain, path2, cb) {
21587
+ MemoryCookieStore.prototype.removeCookies = function(domain, path3, cb) {
21588
21588
  if (this.idx[domain]) {
21589
- if (path2) {
21590
- delete this.idx[domain][path2];
21589
+ if (path3) {
21590
+ delete this.idx[domain][path3];
21591
21591
  } else {
21592
21592
  delete this.idx[domain];
21593
21593
  }
@@ -21604,11 +21604,11 @@ var require_memstore = __commonJS({
21604
21604
  var domains = Object.keys(idx);
21605
21605
  domains.forEach(function(domain) {
21606
21606
  var paths = Object.keys(idx[domain]);
21607
- paths.forEach(function(path2) {
21608
- var keys = Object.keys(idx[domain][path2]);
21607
+ paths.forEach(function(path3) {
21608
+ var keys = Object.keys(idx[domain][path3]);
21609
21609
  keys.forEach(function(key) {
21610
21610
  if (key !== null) {
21611
- cookies.push(idx[domain][path2][key]);
21611
+ cookies.push(idx[domain][path3][key]);
21612
21612
  }
21613
21613
  });
21614
21614
  });
@@ -21835,18 +21835,18 @@ var require_cookie = __commonJS({
21835
21835
  }
21836
21836
  return true;
21837
21837
  }
21838
- function defaultPath(path2) {
21839
- if (!path2 || path2.substr(0, 1) !== "/") {
21838
+ function defaultPath(path3) {
21839
+ if (!path3 || path3.substr(0, 1) !== "/") {
21840
21840
  return "/";
21841
21841
  }
21842
- if (path2 === "/") {
21843
- return path2;
21842
+ if (path3 === "/") {
21843
+ return path3;
21844
21844
  }
21845
- var rightSlash = path2.lastIndexOf("/");
21845
+ var rightSlash = path3.lastIndexOf("/");
21846
21846
  if (rightSlash === 0) {
21847
21847
  return "/";
21848
21848
  }
21849
- return path2.slice(0, rightSlash);
21849
+ return path3.slice(0, rightSlash);
21850
21850
  }
21851
21851
  function trimTerminator(str) {
21852
21852
  for (var t = 0; t < TERMINATORS.length; t++) {
@@ -22022,21 +22022,21 @@ var require_cookie = __commonJS({
22022
22022
  cmp = a.creationIndex - b.creationIndex;
22023
22023
  return cmp;
22024
22024
  }
22025
- function permutePath(path2) {
22026
- if (path2 === "/") {
22025
+ function permutePath(path3) {
22026
+ if (path3 === "/") {
22027
22027
  return ["/"];
22028
22028
  }
22029
- if (path2.lastIndexOf("/") === path2.length - 1) {
22030
- path2 = path2.substr(0, path2.length - 1);
22029
+ if (path3.lastIndexOf("/") === path3.length - 1) {
22030
+ path3 = path3.substr(0, path3.length - 1);
22031
22031
  }
22032
- var permutations = [path2];
22033
- while (path2.length > 1) {
22034
- var lindex = path2.lastIndexOf("/");
22032
+ var permutations = [path3];
22033
+ while (path3.length > 1) {
22034
+ var lindex = path3.lastIndexOf("/");
22035
22035
  if (lindex === 0) {
22036
22036
  break;
22037
22037
  }
22038
- path2 = path2.substr(0, lindex);
22039
- permutations.push(path2);
22038
+ path3 = path3.substr(0, lindex);
22039
+ permutations.push(path3);
22040
22040
  }
22041
22041
  permutations.push("/");
22042
22042
  return permutations;
@@ -22367,7 +22367,7 @@ var require_cookie = __commonJS({
22367
22367
  options = {};
22368
22368
  }
22369
22369
  var host = canonicalDomain(context.hostname);
22370
- var path2 = context.pathname || "/";
22370
+ var path3 = context.pathname || "/";
22371
22371
  var secure = options.secure;
22372
22372
  if (secure == null && context.protocol && (context.protocol == "https:" || context.protocol == "wss:")) {
22373
22373
  secure = true;
@@ -22390,7 +22390,7 @@ var require_cookie = __commonJS({
22390
22390
  return false;
22391
22391
  }
22392
22392
  }
22393
- if (!allPaths && !pathMatch(path2, c.path)) {
22393
+ if (!allPaths && !pathMatch(path3, c.path)) {
22394
22394
  return false;
22395
22395
  }
22396
22396
  if (c.secure && !secure) {
@@ -22406,7 +22406,7 @@ var require_cookie = __commonJS({
22406
22406
  }
22407
22407
  return true;
22408
22408
  }
22409
- store.findCookies(host, allPaths ? null : path2, function(err, cookies) {
22409
+ store.findCookies(host, allPaths ? null : path3, function(err, cookies) {
22410
22410
  if (err) {
22411
22411
  return cb(err);
22412
22412
  }
@@ -22890,14 +22890,14 @@ var require_aws_sign2 = __commonJS({
22890
22890
  }
22891
22891
  module2.exports.canonicalizeHeaders = canonicalizeHeaders;
22892
22892
  function canonicalizeResource(resource) {
22893
- var url = parse(resource, true), path2 = url.pathname, buf = [];
22893
+ var url = parse(resource, true), path3 = url.pathname, buf = [];
22894
22894
  Object.keys(url.query).forEach(function(key) {
22895
22895
  if (!~keys.indexOf(key))
22896
22896
  return;
22897
22897
  var val = "" == url.query[key] ? "" : "=" + encodeURIComponent(url.query[key]);
22898
22898
  buf.push(key + val);
22899
22899
  });
22900
- return path2 + (buf.length ? "?" + buf.sort().join("&") : "");
22900
+ return path3 + (buf.length ? "?" + buf.sort().join("&") : "");
22901
22901
  }
22902
22902
  module2.exports.canonicalizeResource = canonicalizeResource;
22903
22903
  }
@@ -23195,15 +23195,15 @@ var require_aws4 = __commonJS({
23195
23195
  if (pathStr !== "/") {
23196
23196
  if (normalizePath)
23197
23197
  pathStr = pathStr.replace(/\/{2,}/g, "/");
23198
- pathStr = pathStr.split("/").reduce(function(path2, piece) {
23198
+ pathStr = pathStr.split("/").reduce(function(path3, piece) {
23199
23199
  if (normalizePath && piece === "..") {
23200
- path2.pop();
23200
+ path3.pop();
23201
23201
  } else if (!normalizePath || piece !== ".") {
23202
23202
  if (decodePath)
23203
23203
  piece = decodeURIComponent(piece.replace(/\+/g, " "));
23204
- path2.push(encodeRfc3986Full(piece));
23204
+ path3.push(encodeRfc3986Full(piece));
23205
23205
  }
23206
- return path2;
23206
+ return path3;
23207
23207
  }, []).join("/");
23208
23208
  if (pathStr[0] !== "/")
23209
23209
  pathStr = "/" + pathStr;
@@ -23257,27 +23257,27 @@ var require_aws4 = __commonJS({
23257
23257
  };
23258
23258
  };
23259
23259
  RequestSigner.prototype.parsePath = function() {
23260
- var path2 = this.request.path || "/";
23261
- if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path2)) {
23262
- path2 = encodeURI(decodeURI(path2));
23260
+ var path3 = this.request.path || "/";
23261
+ if (/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(path3)) {
23262
+ path3 = encodeURI(decodeURI(path3));
23263
23263
  }
23264
- var queryIx = path2.indexOf("?"), query = null;
23264
+ var queryIx = path3.indexOf("?"), query = null;
23265
23265
  if (queryIx >= 0) {
23266
- query = querystring.parse(path2.slice(queryIx + 1));
23267
- path2 = path2.slice(0, queryIx);
23266
+ query = querystring.parse(path3.slice(queryIx + 1));
23267
+ path3 = path3.slice(0, queryIx);
23268
23268
  }
23269
23269
  this.parsedPath = {
23270
- path: path2,
23270
+ path: path3,
23271
23271
  query
23272
23272
  };
23273
23273
  };
23274
23274
  RequestSigner.prototype.formatPath = function() {
23275
- var path2 = this.parsedPath.path, query = this.parsedPath.query;
23275
+ var path3 = this.parsedPath.path, query = this.parsedPath.query;
23276
23276
  if (!query)
23277
- return path2;
23277
+ return path3;
23278
23278
  if (query[""] != null)
23279
23279
  delete query[""];
23280
- return path2 + "?" + encodeRfc3986(querystring.stringify(query));
23280
+ return path3 + "?" + encodeRfc3986(querystring.stringify(query));
23281
23281
  };
23282
23282
  aws4.RequestSigner = RequestSigner;
23283
23283
  aws4.sign = function(request, credentials) {
@@ -36392,13 +36392,13 @@ var require_validate = __commonJS({
36392
36392
  return schema2.type || primitiveConstructors[schema2.name] == schema2 && schema2.name.toLowerCase();
36393
36393
  }
36394
36394
  var errors = [];
36395
- function checkProp(value, schema2, path2, i) {
36395
+ function checkProp(value, schema2, path3, i) {
36396
36396
  var l;
36397
- path2 += path2 ? typeof i == "number" ? "[" + i + "]" : typeof i == "undefined" ? "" : "." + i : i;
36397
+ path3 += path3 ? typeof i == "number" ? "[" + i + "]" : typeof i == "undefined" ? "" : "." + i : i;
36398
36398
  function addError(message) {
36399
- errors.push({ property: path2, message });
36399
+ errors.push({ property: path3, message });
36400
36400
  }
36401
- if ((typeof schema2 != "object" || schema2 instanceof Array) && (path2 || typeof schema2 != "function") && !(schema2 && getType(schema2))) {
36401
+ if ((typeof schema2 != "object" || schema2 instanceof Array) && (path3 || typeof schema2 != "function") && !(schema2 && getType(schema2))) {
36402
36402
  if (typeof schema2 == "function") {
36403
36403
  if (!(value instanceof schema2)) {
36404
36404
  addError("is not an instance of the class/constructor " + schema2.name);
@@ -36412,12 +36412,12 @@ var require_validate = __commonJS({
36412
36412
  addError("is a readonly field, it can not be changed");
36413
36413
  }
36414
36414
  if (schema2["extends"]) {
36415
- checkProp(value, schema2["extends"], path2, i);
36415
+ checkProp(value, schema2["extends"], path3, i);
36416
36416
  }
36417
36417
  function checkType(type, value2) {
36418
36418
  if (type) {
36419
36419
  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)) {
36420
- return [{ property: path2, message: value2 + " - " + typeof value2 + " value found, but a " + type + " is required" }];
36420
+ return [{ property: path3, message: value2 + " - " + typeof value2 + " value found, but a " + type + " is required" }];
36421
36421
  }
36422
36422
  if (type instanceof Array) {
36423
36423
  var unionErrors = [];
@@ -36432,7 +36432,7 @@ var require_validate = __commonJS({
36432
36432
  } else if (typeof type == "object") {
36433
36433
  var priorErrors = errors;
36434
36434
  errors = [];
36435
- checkProp(value2, type, path2);
36435
+ checkProp(value2, type, path3);
36436
36436
  var theseErrors = errors;
36437
36437
  errors = priorErrors;
36438
36438
  return theseErrors;
@@ -36459,7 +36459,7 @@ var require_validate = __commonJS({
36459
36459
  propDef = schema2.items[i];
36460
36460
  if (options.coerce)
36461
36461
  value[i] = options.coerce(value[i], propDef);
36462
- errors.concat(checkProp(value[i], propDef, path2, i));
36462
+ errors.concat(checkProp(value[i], propDef, path3, i));
36463
36463
  }
36464
36464
  }
36465
36465
  if (schema2.minItems && value.length < schema2.minItems) {
@@ -36469,7 +36469,7 @@ var require_validate = __commonJS({
36469
36469
  addError("There must be a maximum of " + schema2.maxItems + " in the array");
36470
36470
  }
36471
36471
  } else if (schema2.properties || schema2.additionalProperties) {
36472
- errors.concat(checkObj(value, schema2.properties, path2, schema2.additionalProperties));
36472
+ errors.concat(checkObj(value, schema2.properties, path3, schema2.additionalProperties));
36473
36473
  }
36474
36474
  if (schema2.pattern && typeof value == "string" && !value.match(schema2.pattern)) {
36475
36475
  addError("does not match the regex pattern " + schema2.pattern);
@@ -36507,10 +36507,10 @@ var require_validate = __commonJS({
36507
36507
  }
36508
36508
  return null;
36509
36509
  }
36510
- function checkObj(instance2, objTypeDef, path2, additionalProp) {
36510
+ function checkObj(instance2, objTypeDef, path3, additionalProp) {
36511
36511
  if (typeof objTypeDef == "object") {
36512
36512
  if (typeof instance2 != "object" || instance2 instanceof Array) {
36513
- errors.push({ property: path2, message: "an object is required" });
36513
+ errors.push({ property: path3, message: "an object is required" });
36514
36514
  }
36515
36515
  for (var i in objTypeDef) {
36516
36516
  if (objTypeDef.hasOwnProperty(i) && i != "__proto__" && i != "constructor") {
@@ -36524,7 +36524,7 @@ var require_validate = __commonJS({
36524
36524
  if (options.coerce && i in instance2) {
36525
36525
  value = instance2[i] = options.coerce(value, propDef);
36526
36526
  }
36527
- checkProp(value, propDef, path2, i);
36527
+ checkProp(value, propDef, path3, i);
36528
36528
  }
36529
36529
  }
36530
36530
  }
@@ -36534,22 +36534,22 @@ var require_validate = __commonJS({
36534
36534
  delete instance2[i];
36535
36535
  continue;
36536
36536
  } else {
36537
- errors.push({ property: path2, message: "The property " + i + " is not defined in the schema and the schema does not allow additional properties" });
36537
+ errors.push({ property: path3, message: "The property " + i + " is not defined in the schema and the schema does not allow additional properties" });
36538
36538
  }
36539
36539
  }
36540
36540
  var requires = objTypeDef && objTypeDef[i] && objTypeDef[i].requires;
36541
36541
  if (requires && !(requires in instance2)) {
36542
- errors.push({ property: path2, message: "the presence of the property " + i + " requires that " + requires + " also be present" });
36542
+ errors.push({ property: path3, message: "the presence of the property " + i + " requires that " + requires + " also be present" });
36543
36543
  }
36544
36544
  value = instance2[i];
36545
36545
  if (additionalProp && (!(objTypeDef && typeof objTypeDef == "object") || !(i in objTypeDef))) {
36546
36546
  if (options.coerce) {
36547
36547
  value = instance2[i] = options.coerce(value, additionalProp);
36548
36548
  }
36549
- checkProp(value, additionalProp, path2, i);
36549
+ checkProp(value, additionalProp, path3, i);
36550
36550
  }
36551
36551
  if (!_changing && value && value.$schema) {
36552
- errors = errors.concat(checkProp(value, value.$schema, path2, i));
36552
+ errors = errors.concat(checkProp(value, value.$schema, path3, i));
36553
36553
  }
36554
36554
  }
36555
36555
  return errors;
@@ -37156,11 +37156,11 @@ var require_signer = __commonJS({
37156
37156
  RequestSigner.prototype.writeDateHeader = function() {
37157
37157
  return this.writeHeader("date", jsprim.rfc1123(new Date()));
37158
37158
  };
37159
- RequestSigner.prototype.writeTarget = function(method, path2) {
37159
+ RequestSigner.prototype.writeTarget = function(method, path3) {
37160
37160
  assert3.string(method, "method");
37161
- assert3.string(path2, "path");
37161
+ assert3.string(path3, "path");
37162
37162
  method = method.toLowerCase();
37163
- this.writeHeader("(request-target)", method + " " + path2);
37163
+ this.writeHeader("(request-target)", method + " " + path3);
37164
37164
  };
37165
37165
  RequestSigner.prototype.sign = function(cb) {
37166
37166
  assert3.func(cb, "callback");
@@ -46045,11 +46045,11 @@ var require_mime_types = __commonJS({
46045
46045
  }
46046
46046
  return exts[0];
46047
46047
  }
46048
- function lookup(path2) {
46049
- if (!path2 || typeof path2 !== "string") {
46048
+ function lookup(path3) {
46049
+ if (!path3 || typeof path3 !== "string") {
46050
46050
  return false;
46051
46051
  }
46052
- var extension2 = extname("x." + path2).toLowerCase().substr(1);
46052
+ var extension2 = extname("x." + path3).toLowerCase().substr(1);
46053
46053
  if (!extension2) {
46054
46054
  return false;
46055
46055
  }
@@ -46763,11 +46763,11 @@ var require_form_data = __commonJS({
46763
46763
  "../../node_modules/form-data/lib/form_data.js"(exports, module2) {
46764
46764
  var CombinedStream = require_combined_stream();
46765
46765
  var util = require("util");
46766
- var path2 = require("path");
46766
+ var path3 = require("path");
46767
46767
  var http2 = require("http");
46768
46768
  var https2 = require("https");
46769
46769
  var parseUrl = require("url").parse;
46770
- var fs4 = require("fs");
46770
+ var fs5 = require("fs");
46771
46771
  var mime = require_mime_types();
46772
46772
  var asynckit = require_asynckit();
46773
46773
  var populate = require_populate();
@@ -46831,7 +46831,7 @@ var require_form_data = __commonJS({
46831
46831
  if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
46832
46832
  callback(null, value.end + 1 - (value.start ? value.start : 0));
46833
46833
  } else {
46834
- fs4.stat(value.path, function(err, stat) {
46834
+ fs5.stat(value.path, function(err, stat) {
46835
46835
  var fileSize;
46836
46836
  if (err) {
46837
46837
  callback(err);
@@ -46889,11 +46889,11 @@ var require_form_data = __commonJS({
46889
46889
  FormData.prototype._getContentDisposition = function(value, options) {
46890
46890
  var filename, contentDisposition;
46891
46891
  if (typeof options.filepath === "string") {
46892
- filename = path2.normalize(options.filepath).replace(/\\/g, "/");
46892
+ filename = path3.normalize(options.filepath).replace(/\\/g, "/");
46893
46893
  } else if (options.filename || value.name || value.path) {
46894
- filename = path2.basename(options.filename || value.name || value.path);
46894
+ filename = path3.basename(options.filename || value.name || value.path);
46895
46895
  } else if (value.readable && value.hasOwnProperty("httpVersion")) {
46896
- filename = path2.basename(value.client._httpMessage.path);
46896
+ filename = path3.basename(value.client._httpMessage.path);
46897
46897
  }
46898
46898
  if (filename) {
46899
46899
  contentDisposition = 'filename="' + filename + '"';
@@ -48547,8 +48547,8 @@ var require_uri_all = __commonJS({
48547
48547
  wsComponents.secure = void 0;
48548
48548
  }
48549
48549
  if (wsComponents.resourceName) {
48550
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path2 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
48551
- wsComponents.path = path2 && path2 !== "/" ? path2 : void 0;
48550
+ var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path3 = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
48551
+ wsComponents.path = path3 && path3 !== "/" ? path3 : void 0;
48552
48552
  wsComponents.query = query;
48553
48553
  wsComponents.resourceName = void 0;
48554
48554
  }
@@ -48950,12 +48950,12 @@ var require_util3 = __commonJS({
48950
48950
  return "'" + escapeQuotes(str) + "'";
48951
48951
  }
48952
48952
  function getPathExpr(currentPath, expr, jsonPointers, isNumber) {
48953
- var path2 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
48954
- return joinPaths(currentPath, path2);
48953
+ var path3 = jsonPointers ? "'/' + " + expr + (isNumber ? "" : ".replace(/~/g, '~0').replace(/\\//g, '~1')") : isNumber ? "'[' + " + expr + " + ']'" : "'[\\'' + " + expr + " + '\\']'";
48954
+ return joinPaths(currentPath, path3);
48955
48955
  }
48956
48956
  function getPath(currentPath, prop, jsonPointers) {
48957
- var path2 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
48958
- return joinPaths(currentPath, path2);
48957
+ var path3 = jsonPointers ? toQuotedString("/" + escapeJsonPointer(prop)) : toQuotedString(getProperty(prop));
48958
+ return joinPaths(currentPath, path3);
48959
48959
  }
48960
48960
  var JSON_POINTER = /^\/(?:[^~]|~0|~1)*$/;
48961
48961
  var RELATIVE_JSON_POINTER = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
@@ -55055,7 +55055,7 @@ var require_promise = __commonJS({
55055
55055
  var require_har2 = __commonJS({
55056
55056
  "../../node_modules/request/lib/har.js"(exports) {
55057
55057
  "use strict";
55058
- var fs4 = require("fs");
55058
+ var fs5 = require("fs");
55059
55059
  var qs = require("querystring");
55060
55060
  var validate = require_promise();
55061
55061
  var extend = require_extend();
@@ -55189,7 +55189,7 @@ var require_har2 = __commonJS({
55189
55189
  return;
55190
55190
  }
55191
55191
  if (param.fileName && !param.value) {
55192
- attachment.value = fs4.createReadStream(param.fileName);
55192
+ attachment.value = fs5.createReadStream(param.fileName);
55193
55193
  } else if (param.value) {
55194
55194
  attachment.value = param.value;
55195
55195
  }
@@ -55331,7 +55331,7 @@ var require_auth = __commonJS({
55331
55331
  return authHeader;
55332
55332
  }
55333
55333
  };
55334
- Auth.prototype.digest = function(method, path2, authHeader) {
55334
+ Auth.prototype.digest = function(method, path3, authHeader) {
55335
55335
  var self2 = this;
55336
55336
  var challenge = {};
55337
55337
  var re = /([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;
@@ -55354,13 +55354,13 @@ var require_auth = __commonJS({
55354
55354
  var nc = qop && "00000001";
55355
55355
  var cnonce = qop && uuid().replace(/-/g, "");
55356
55356
  var ha1 = ha1Compute(challenge.algorithm, self2.user, challenge.realm, self2.pass, challenge.nonce, cnonce);
55357
- var ha2 = md5(method + ":" + path2);
55357
+ var ha2 = md5(method + ":" + path3);
55358
55358
  var digestResponse = qop ? md5(ha1 + ":" + challenge.nonce + ":" + nc + ":" + cnonce + ":" + qop + ":" + ha2) : md5(ha1 + ":" + challenge.nonce + ":" + ha2);
55359
55359
  var authValues = {
55360
55360
  username: self2.user,
55361
55361
  realm: challenge.realm,
55362
55362
  nonce: challenge.nonce,
55363
- uri: path2,
55363
+ uri: path3,
55364
55364
  qop,
55365
55365
  response: digestResponse,
55366
55366
  nc,
@@ -57380,10 +57380,10 @@ var require_request2 = __commonJS({
57380
57380
  Request.prototype.enableUnixSocket = function() {
57381
57381
  var unixParts = this.uri.path.split(":");
57382
57382
  var host = unixParts[0];
57383
- var path2 = unixParts[1];
57383
+ var path3 = unixParts[1];
57384
57384
  this.socketPath = host;
57385
- this.uri.pathname = path2;
57386
- this.uri.path = path2;
57385
+ this.uri.pathname = path3;
57386
+ this.uri.path = path3;
57387
57387
  this.uri.host = host;
57388
57388
  this.uri.hostname = host;
57389
57389
  this.uri.isUnix = true;
@@ -57432,14 +57432,14 @@ var require_request2 = __commonJS({
57432
57432
  md5: self2.getHeader("content-md5") || "",
57433
57433
  amazonHeaders: aws2.canonicalizeHeaders(self2.headers)
57434
57434
  };
57435
- var path2 = self2.uri.path;
57436
- if (opts.bucket && path2) {
57437
- auth.resource = "/" + opts.bucket + path2;
57438
- } else if (opts.bucket && !path2) {
57435
+ var path3 = self2.uri.path;
57436
+ if (opts.bucket && path3) {
57437
+ auth.resource = "/" + opts.bucket + path3;
57438
+ } else if (opts.bucket && !path3) {
57439
57439
  auth.resource = "/" + opts.bucket;
57440
- } else if (!opts.bucket && path2) {
57441
- auth.resource = path2;
57442
- } else if (!opts.bucket && !path2) {
57440
+ } else if (!opts.bucket && path3) {
57441
+ auth.resource = path3;
57442
+ } else if (!opts.bucket && !path3) {
57443
57443
  auth.resource = "/";
57444
57444
  }
57445
57445
  auth.resource = aws2.canonicalizeResource(auth.resource);
@@ -57756,13 +57756,13 @@ var require_node_pixels = __commonJS({
57756
57756
  "../../node_modules/get-pixels/node-pixels.js"(exports, module2) {
57757
57757
  "use strict";
57758
57758
  var ndarray2 = require_ndarray();
57759
- var path2 = require("path");
57759
+ var path3 = require("path");
57760
57760
  var PNG = require_png2().PNG;
57761
57761
  var jpeg = require_jpeg_js();
57762
57762
  var pack = require_convert();
57763
57763
  var GifReader = require_omggif().GifReader;
57764
57764
  var Bitmap = require_node_bitmap();
57765
- var fs4 = require("fs");
57765
+ var fs5 = require("fs");
57766
57766
  var request = require_request3();
57767
57767
  var mime = require_mime_types();
57768
57768
  var parseDataURI = require_parse_data_uri();
@@ -57922,7 +57922,7 @@ var require_node_pixels = __commonJS({
57922
57922
  doParse(type, body, cb);
57923
57923
  });
57924
57924
  } else {
57925
- fs4.readFile(url, function(err, data) {
57925
+ fs5.readFile(url, function(err, data) {
57926
57926
  if (err) {
57927
57927
  cb(err);
57928
57928
  return;
@@ -63635,7 +63635,7 @@ function btoa(base64) {
63635
63635
  return Buffer.from(base64, "base64").toString("ascii");
63636
63636
  }
63637
63637
 
63638
- // ../polyfills/src/images/encode-image.node.ts
63638
+ // ../polyfills/src/images/encode-image-node.ts
63639
63639
  var import_save_pixels = __toESM(require_save_pixels(), 1);
63640
63640
  var import_ndarray = __toESM(require_ndarray(), 1);
63641
63641
 
@@ -63648,7 +63648,7 @@ function bufferToArrayBuffer(buffer) {
63648
63648
  return buffer;
63649
63649
  }
63650
63650
 
63651
- // ../polyfills/src/images/encode-image.node.ts
63651
+ // ../polyfills/src/images/encode-image-node.ts
63652
63652
  function encodeImageToStreamNode(image, options) {
63653
63653
  const type = options.type ? options.type.replace("image/", "") : "jpeg";
63654
63654
  const pixels = (0, import_ndarray.default)(image.data, [image.width, image.height, 4], [4, image.width * 4, 1], 0);
@@ -63666,7 +63666,7 @@ function encodeImageNode(image, options) {
63666
63666
  });
63667
63667
  }
63668
63668
 
63669
- // ../polyfills/src/images/parse-image.node.ts
63669
+ // ../polyfills/src/images/parse-image-node.ts
63670
63670
  var import_get_pixels = __toESM(require_node_pixels(), 1);
63671
63671
  var NODE_FORMAT_SUPPORT = ["image/png", "image/jpeg", "image/gif"];
63672
63672
  async function parseImageNode(arrayBuffer, mimeType) {
@@ -63710,7 +63710,7 @@ function getVersion() {
63710
63710
  );
63711
63711
  globalThis._loadersgl_.version = NPM_TAG;
63712
63712
  } else {
63713
- globalThis._loadersgl_.version = "4.0.0-beta.3";
63713
+ globalThis._loadersgl_.version = "4.0.0-beta.5";
63714
63714
  }
63715
63715
  }
63716
63716
  return globalThis._loadersgl_.version;
@@ -63871,14 +63871,14 @@ __export(require_utils_node_exports, {
63871
63871
  requireFromString: () => requireFromString
63872
63872
  });
63873
63873
  var import_module = __toESM(require("module"), 1);
63874
- var import_path = __toESM(require("path"), 1);
63875
- var import_fs = __toESM(require("fs"), 1);
63874
+ var path = __toESM(require("path"), 1);
63875
+ var fs = __toESM(require("fs"), 1);
63876
63876
  async function readFileAsArrayBuffer(filename) {
63877
63877
  if (filename.startsWith("http")) {
63878
63878
  const response = await fetch(filename);
63879
63879
  return await response.arrayBuffer();
63880
63880
  }
63881
- const buffer = import_fs.default.readFileSync(filename);
63881
+ const buffer = fs.readFileSync(filename);
63882
63882
  return buffer.buffer;
63883
63883
  }
63884
63884
  async function readFileAsText(filename) {
@@ -63886,7 +63886,7 @@ async function readFileAsText(filename) {
63886
63886
  const response = await fetch(filename);
63887
63887
  return await response.text();
63888
63888
  }
63889
- const text = import_fs.default.readFileSync(filename, "utf8");
63889
+ const text = fs.readFileSync(filename, "utf8");
63890
63890
  return text;
63891
63891
  }
63892
63892
  async function requireFromFile(filename) {
@@ -63898,7 +63898,7 @@ async function requireFromFile(filename) {
63898
63898
  if (!filename.startsWith("/")) {
63899
63899
  filename = `${process.cwd()}/${filename}`;
63900
63900
  }
63901
- const code = await import_fs.default.readFileSync(filename, "utf8");
63901
+ const code = await fs.readFileSync(filename, "utf8");
63902
63902
  return requireFromString(code);
63903
63903
  }
63904
63904
  function requireFromString(code, filename = "", options) {
@@ -63909,7 +63909,7 @@ function requireFromString(code, filename = "", options) {
63909
63909
  if (typeof code !== "string") {
63910
63910
  throw new Error(`code must be a string, not ${typeof code}`);
63911
63911
  }
63912
- const paths = import_module.default._nodeModulePaths(import_path.default.dirname(filename));
63912
+ const paths = import_module.default._nodeModulePaths(path.dirname(filename));
63913
63913
  const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
63914
63914
  const newModule = new import_module.default(filename, parent);
63915
63915
  newModule.filename = filename;
@@ -63975,7 +63975,7 @@ function loadLibraryFromString(scriptSource, id) {
63975
63975
  return requireFromString && requireFromString(scriptSource, id);
63976
63976
  }
63977
63977
  if (isWorker) {
63978
- eval.call(global_, scriptSource);
63978
+ eval.call(globalThis, scriptSource);
63979
63979
  return null;
63980
63980
  }
63981
63981
  const script = document.createElement("script");
@@ -64020,24 +64020,24 @@ function resolvePath(filename) {
64020
64020
  }
64021
64021
 
64022
64022
  // ../polyfills/src/filesystems/node-file.ts
64023
- var import_fs2 = __toESM(require("fs"), 1);
64023
+ var import_fs = __toESM(require("fs"), 1);
64024
64024
  var NodeFile = class {
64025
- constructor(path2, flags, mode) {
64026
- path2 = resolvePath(path2);
64027
- this.handle = import_fs2.default.openSync(path2, flags, mode);
64028
- const stats = import_fs2.default.fstatSync(this.handle, { bigint: true });
64025
+ constructor(path3, flags, mode) {
64026
+ path3 = resolvePath(path3);
64027
+ this.handle = import_fs.default.openSync(path3, flags, mode);
64028
+ const stats = import_fs.default.fstatSync(this.handle, { bigint: true });
64029
64029
  this.size = Number(stats.size);
64030
64030
  this.bigsize = stats.size;
64031
- this.url = path2;
64031
+ this.url = path3;
64032
64032
  }
64033
64033
  async close() {
64034
64034
  return new Promise((resolve, reject) => {
64035
- import_fs2.default.close(this.handle, (err) => err ? reject(err) : resolve());
64035
+ import_fs.default.close(this.handle, (err) => err ? reject(err) : resolve());
64036
64036
  });
64037
64037
  }
64038
64038
  async stat() {
64039
64039
  return await new Promise(
64040
- (resolve, reject) => import_fs2.default.fstat(this.handle, { bigint: true }, (err, info) => {
64040
+ (resolve, reject) => import_fs.default.fstat(this.handle, { bigint: true }, (err, info) => {
64041
64041
  const stats = {
64042
64042
  size: Number(info.size),
64043
64043
  bigsize: info.size,
@@ -64075,7 +64075,7 @@ var NodeFile = class {
64075
64075
  return new Promise((resolve, reject) => {
64076
64076
  const nOffset = Number(offset);
64077
64077
  const uint8Array = new Uint8Array(arrayBuffer, Number(offset), length);
64078
- import_fs2.default.write(
64078
+ import_fs.default.write(
64079
64079
  this.handle,
64080
64080
  uint8Array,
64081
64081
  0,
@@ -64088,7 +64088,7 @@ var NodeFile = class {
64088
64088
  };
64089
64089
  async function readBytes(fd, uint8Array, offset, length, position) {
64090
64090
  return await new Promise(
64091
- (resolve, reject) => import_fs2.default.read(
64091
+ (resolve, reject) => import_fs.default.read(
64092
64092
  fd,
64093
64093
  uint8Array,
64094
64094
  offset,
@@ -64103,7 +64103,7 @@ async function readBytes(fd, uint8Array, offset, length, position) {
64103
64103
  var import_promises = __toESM(require("fs/promises"), 1);
64104
64104
 
64105
64105
  // ../polyfills/src/filesystems/fetch-node.ts
64106
- var import_fs3 = __toESM(require("fs"), 1);
64106
+ var import_fs2 = __toESM(require("fs"), 1);
64107
64107
  var import_stream = require("stream");
64108
64108
 
64109
64109
  // ../polyfills/src/filesystems/stream-utils.node.ts
@@ -64193,7 +64193,7 @@ async function fetchNode(url, options) {
64193
64193
  }
64194
64194
  try {
64195
64195
  const body = await new Promise((resolve, reject) => {
64196
- const stream2 = import_fs3.default.createReadStream(noqueryUrl, { encoding: null });
64196
+ const stream2 = import_fs2.default.createReadStream(noqueryUrl, { encoding: null });
64197
64197
  stream2.once("readable", () => resolve(stream2));
64198
64198
  stream2.on("error", (error) => reject(error));
64199
64199
  });
@@ -64224,7 +64224,7 @@ async function fetchNode(url, options) {
64224
64224
  function getHeadersForFile(noqueryUrl) {
64225
64225
  const headers = {};
64226
64226
  if (!headers["content-length"]) {
64227
- const stats = import_fs3.default.statSync(noqueryUrl);
64227
+ const stats = import_fs2.default.statSync(noqueryUrl);
64228
64228
  headers["content-length"] = stats.size;
64229
64229
  }
64230
64230
  if (noqueryUrl.endsWith(".gz")) {
@@ -64241,29 +64241,29 @@ var NodeFileSystem = class {
64241
64241
  this.readable = true;
64242
64242
  this.writable = true;
64243
64243
  }
64244
- async readdir(dirname = ".", options) {
64245
- return await import_promises.default.readdir(dirname, options);
64244
+ async readdir(dirname2 = ".", options) {
64245
+ return await import_promises.default.readdir(dirname2, options);
64246
64246
  }
64247
- async stat(path2) {
64248
- const info = await import_promises.default.stat(path2, { bigint: true });
64247
+ async stat(path3) {
64248
+ const info = await import_promises.default.stat(path3, { bigint: true });
64249
64249
  return {
64250
64250
  size: Number(info.size),
64251
64251
  bigsize: info.size,
64252
64252
  isDirectory: info.isDirectory()
64253
64253
  };
64254
64254
  }
64255
- async unlink(path2) {
64256
- return await import_promises.default.unlink(path2);
64255
+ async unlink(path3) {
64256
+ return await import_promises.default.unlink(path3);
64257
64257
  }
64258
- async fetch(path2, options) {
64259
- return await fetchNode(path2, options);
64258
+ async fetch(path3, options) {
64259
+ return await fetchNode(path3, options);
64260
64260
  }
64261
64261
  // implements IRandomAccessFileSystem
64262
- async openReadableFile(path2, flags = "r") {
64263
- return new NodeFile(path2, flags);
64262
+ async openReadableFile(path3, flags = "r") {
64263
+ return new NodeFile(path3, flags);
64264
64264
  }
64265
- async openWritableFile(path2, flags = "w", mode) {
64266
- return new NodeFile(path2, flags, mode);
64265
+ async openWritableFile(path3, flags = "w", mode) {
64266
+ return new NodeFile(path3, flags, mode);
64267
64267
  }
64268
64268
  };
64269
64269
 
@@ -64625,6 +64625,59 @@ function installFilePolyfills() {
64625
64625
  }
64626
64626
  var File_ = installFilePolyfills();
64627
64627
 
64628
+ // ../polyfills/src/load-library/require-utils.node.ts
64629
+ var import_module2 = __toESM(require("module"), 1);
64630
+ var import_path = __toESM(require("path"), 1);
64631
+ var import_fs3 = __toESM(require("fs"), 1);
64632
+ async function readFileAsArrayBuffer2(filename) {
64633
+ if (filename.startsWith("http")) {
64634
+ const response = await fetch(filename);
64635
+ return await response.arrayBuffer();
64636
+ }
64637
+ const buffer = import_fs3.default.readFileSync(filename);
64638
+ return buffer.buffer;
64639
+ }
64640
+ async function readFileAsText2(filename) {
64641
+ if (filename.startsWith("http")) {
64642
+ const response = await fetch(filename);
64643
+ return await response.text();
64644
+ }
64645
+ const text = import_fs3.default.readFileSync(filename, "utf8");
64646
+ return text;
64647
+ }
64648
+ async function requireFromFile2(filename) {
64649
+ if (filename.startsWith("http")) {
64650
+ const response = await fetch(filename);
64651
+ const code2 = await response.text();
64652
+ return requireFromString2(code2);
64653
+ }
64654
+ if (!filename.startsWith("/")) {
64655
+ filename = `${process.cwd()}/${filename}`;
64656
+ }
64657
+ const code = await import_fs3.default.readFileSync(filename, "utf8");
64658
+ return requireFromString2(code);
64659
+ }
64660
+ function requireFromString2(code, filename = "", options) {
64661
+ if (typeof filename === "object") {
64662
+ options = filename;
64663
+ filename = "";
64664
+ }
64665
+ filename = filename.replace("file://", "");
64666
+ if (typeof code !== "string") {
64667
+ throw new Error(`code must be a string, not ${typeof code}`);
64668
+ }
64669
+ const paths = import_module2.default._nodeModulePaths(import_path.default.dirname(filename));
64670
+ const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
64671
+ const newModule = new import_module2.default(filename, parent);
64672
+ newModule.filename = filename;
64673
+ newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
64674
+ newModule._compile(code, filename);
64675
+ if (parent && parent.children) {
64676
+ parent.children.splice(parent.children.indexOf(newModule), 1);
64677
+ }
64678
+ return newModule.exports;
64679
+ }
64680
+
64628
64681
  // ../polyfills/src/fetch/headers-polyfill.ts
64629
64682
  var Headers2 = class {
64630
64683
  constructor(headers) {
@@ -64957,13 +65010,15 @@ if (!("atob" in globalThis) && atob) {
64957
65010
  if (!("btoa" in globalThis) && btoa) {
64958
65011
  globalThis["btoa"] = btoa;
64959
65012
  }
64960
- if (!("_encodeImageNode" in globalThis) && encodeImageNode) {
64961
- globalThis["_encodeImageNode"] = encodeImageNode;
64962
- }
64963
- if (!("_parseImageNode" in globalThis) && parseImageNode) {
64964
- globalThis["_parseImageNode"] = parseImageNode;
64965
- globalThis["_imageFormatsNode"] = NODE_FORMAT_SUPPORT;
64966
- }
65013
+ globalThis.loaders.encodeImageNode = encodeImageNode;
65014
+ globalThis.loaders.parseImageNode = parseImageNode;
65015
+ globalThis.loaders.imageFormatsNode = NODE_FORMAT_SUPPORT;
65016
+ globalThis._parseImageNode = parseImageNode;
65017
+ globalThis._imageFormatsNode = NODE_FORMAT_SUPPORT;
65018
+ globalThis.loaders.readFileAsArrayBuffer = readFileAsArrayBuffer2;
65019
+ globalThis.loaders.readFileAsText = readFileAsText2;
65020
+ globalThis.loaders.requireFromFile = requireFromFile2;
65021
+ globalThis.loaders.requireFromString = requireFromString2;
64967
65022
  if (nodeVersion2 < 18) {
64968
65023
  if (!("Headers" in globalThis) && Headers2) {
64969
65024
  globalThis.Headers = Headers2;
@@ -64977,7 +65032,7 @@ if (nodeVersion2 < 18) {
64977
65032
  }
64978
65033
 
64979
65034
  // src/lib/utils/version.ts
64980
- var VERSION2 = true ? "4.0.0-beta.3" : "beta";
65035
+ var VERSION2 = true ? "4.0.0-beta.5" : "beta";
64981
65036
 
64982
65037
  // src/lib/parsers/basis-module-loader.ts
64983
65038
  var BASIS_EXTERNAL_LIBRARIES = {