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

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;
@@ -63810,7 +63810,7 @@ function btoa(base64) {
63810
63810
  return Buffer.from(base64, "base64").toString("ascii");
63811
63811
  }
63812
63812
 
63813
- // ../polyfills/src/images/encode-image.node.ts
63813
+ // ../polyfills/src/images/encode-image-node.ts
63814
63814
  var import_save_pixels = __toESM(require_save_pixels(), 1);
63815
63815
  var import_ndarray = __toESM(require_ndarray(), 1);
63816
63816
 
@@ -63823,7 +63823,7 @@ function bufferToArrayBuffer(buffer) {
63823
63823
  return buffer;
63824
63824
  }
63825
63825
 
63826
- // ../polyfills/src/images/encode-image.node.ts
63826
+ // ../polyfills/src/images/encode-image-node.ts
63827
63827
  function encodeImageToStreamNode(image, options) {
63828
63828
  const type = options.type ? options.type.replace("image/", "") : "jpeg";
63829
63829
  const pixels = (0, import_ndarray.default)(image.data, [image.width, image.height, 4], [4, image.width * 4, 1], 0);
@@ -63841,7 +63841,7 @@ function encodeImageNode(image, options) {
63841
63841
  });
63842
63842
  }
63843
63843
 
63844
- // ../polyfills/src/images/parse-image.node.ts
63844
+ // ../polyfills/src/images/parse-image-node.ts
63845
63845
  var import_get_pixels = __toESM(require_node_pixels(), 1);
63846
63846
  var NODE_FORMAT_SUPPORT = ["image/png", "image/jpeg", "image/gif"];
63847
63847
  async function parseImageNode(arrayBuffer, mimeType) {
@@ -63885,7 +63885,7 @@ function getVersion() {
63885
63885
  );
63886
63886
  globalThis._loadersgl_.version = NPM_TAG;
63887
63887
  } else {
63888
- globalThis._loadersgl_.version = "4.0.0-beta.3";
63888
+ globalThis._loadersgl_.version = "4.0.0-beta.4";
63889
63889
  }
63890
63890
  }
63891
63891
  return globalThis._loadersgl_.version;
@@ -64150,7 +64150,7 @@ function loadLibraryFromString(scriptSource, id) {
64150
64150
  return requireFromString && requireFromString(scriptSource, id);
64151
64151
  }
64152
64152
  if (isWorker) {
64153
- eval.call(global_, scriptSource);
64153
+ eval.call(globalThis, scriptSource);
64154
64154
  return null;
64155
64155
  }
64156
64156
  const script = document.createElement("script");
@@ -64278,13 +64278,13 @@ function resolvePath(filename) {
64278
64278
  // ../polyfills/src/filesystems/node-file.ts
64279
64279
  var import_fs2 = __toESM(require("fs"), 1);
64280
64280
  var NodeFile = class {
64281
- constructor(path2, flags, mode) {
64282
- path2 = resolvePath(path2);
64283
- this.handle = import_fs2.default.openSync(path2, flags, mode);
64281
+ constructor(path3, flags, mode) {
64282
+ path3 = resolvePath(path3);
64283
+ this.handle = import_fs2.default.openSync(path3, flags, mode);
64284
64284
  const stats = import_fs2.default.fstatSync(this.handle, { bigint: true });
64285
64285
  this.size = Number(stats.size);
64286
64286
  this.bigsize = stats.size;
64287
- this.url = path2;
64287
+ this.url = path3;
64288
64288
  }
64289
64289
  async close() {
64290
64290
  return new Promise((resolve, reject) => {
@@ -64500,26 +64500,26 @@ var NodeFileSystem = class {
64500
64500
  async readdir(dirname = ".", options) {
64501
64501
  return await import_promises.default.readdir(dirname, options);
64502
64502
  }
64503
- async stat(path2) {
64504
- const info = await import_promises.default.stat(path2, { bigint: true });
64503
+ async stat(path3) {
64504
+ const info = await import_promises.default.stat(path3, { bigint: true });
64505
64505
  return {
64506
64506
  size: Number(info.size),
64507
64507
  bigsize: info.size,
64508
64508
  isDirectory: info.isDirectory()
64509
64509
  };
64510
64510
  }
64511
- async unlink(path2) {
64512
- return await import_promises.default.unlink(path2);
64511
+ async unlink(path3) {
64512
+ return await import_promises.default.unlink(path3);
64513
64513
  }
64514
- async fetch(path2, options) {
64515
- return await fetchNode(path2, options);
64514
+ async fetch(path3, options) {
64515
+ return await fetchNode(path3, options);
64516
64516
  }
64517
64517
  // implements IRandomAccessFileSystem
64518
- async openReadableFile(path2, flags = "r") {
64519
- return new NodeFile(path2, flags);
64518
+ async openReadableFile(path3, flags = "r") {
64519
+ return new NodeFile(path3, flags);
64520
64520
  }
64521
- async openWritableFile(path2, flags = "w", mode) {
64522
- return new NodeFile(path2, flags, mode);
64521
+ async openWritableFile(path3, flags = "w", mode) {
64522
+ return new NodeFile(path3, flags, mode);
64523
64523
  }
64524
64524
  };
64525
64525
 
@@ -64881,6 +64881,59 @@ function installFilePolyfills() {
64881
64881
  }
64882
64882
  var File_ = installFilePolyfills();
64883
64883
 
64884
+ // ../polyfills/src/load-library/require-utils.node.ts
64885
+ var import_module2 = __toESM(require("module"), 1);
64886
+ var import_path2 = __toESM(require("path"), 1);
64887
+ var import_fs4 = __toESM(require("fs"), 1);
64888
+ async function readFileAsArrayBuffer2(filename) {
64889
+ if (filename.startsWith("http")) {
64890
+ const response = await fetch(filename);
64891
+ return await response.arrayBuffer();
64892
+ }
64893
+ const buffer = import_fs4.default.readFileSync(filename);
64894
+ return buffer.buffer;
64895
+ }
64896
+ async function readFileAsText2(filename) {
64897
+ if (filename.startsWith("http")) {
64898
+ const response = await fetch(filename);
64899
+ return await response.text();
64900
+ }
64901
+ const text = import_fs4.default.readFileSync(filename, "utf8");
64902
+ return text;
64903
+ }
64904
+ async function requireFromFile2(filename) {
64905
+ if (filename.startsWith("http")) {
64906
+ const response = await fetch(filename);
64907
+ const code2 = await response.text();
64908
+ return requireFromString2(code2);
64909
+ }
64910
+ if (!filename.startsWith("/")) {
64911
+ filename = `${process.cwd()}/${filename}`;
64912
+ }
64913
+ const code = await import_fs4.default.readFileSync(filename, "utf8");
64914
+ return requireFromString2(code);
64915
+ }
64916
+ function requireFromString2(code, filename = "", options) {
64917
+ if (typeof filename === "object") {
64918
+ options = filename;
64919
+ filename = "";
64920
+ }
64921
+ filename = filename.replace("file://", "");
64922
+ if (typeof code !== "string") {
64923
+ throw new Error(`code must be a string, not ${typeof code}`);
64924
+ }
64925
+ const paths = import_module2.default._nodeModulePaths(import_path2.default.dirname(filename));
64926
+ const parent = typeof module !== "undefined" && (module == null ? void 0 : module.parent);
64927
+ const newModule = new import_module2.default(filename, parent);
64928
+ newModule.filename = filename;
64929
+ newModule.paths = [].concat((options == null ? void 0 : options.prependPaths) || []).concat(paths).concat((options == null ? void 0 : options.appendPaths) || []);
64930
+ newModule._compile(code, filename);
64931
+ if (parent && parent.children) {
64932
+ parent.children.splice(parent.children.indexOf(newModule), 1);
64933
+ }
64934
+ return newModule.exports;
64935
+ }
64936
+
64884
64937
  // ../polyfills/src/fetch/headers-polyfill.ts
64885
64938
  var Headers2 = class {
64886
64939
  constructor(headers) {
@@ -65213,13 +65266,15 @@ if (!("atob" in globalThis) && atob) {
65213
65266
  if (!("btoa" in globalThis) && btoa) {
65214
65267
  globalThis["btoa"] = btoa;
65215
65268
  }
65216
- if (!("_encodeImageNode" in globalThis) && encodeImageNode) {
65217
- globalThis["_encodeImageNode"] = encodeImageNode;
65218
- }
65219
- if (!("_parseImageNode" in globalThis) && parseImageNode) {
65220
- globalThis["_parseImageNode"] = parseImageNode;
65221
- globalThis["_imageFormatsNode"] = NODE_FORMAT_SUPPORT;
65222
- }
65269
+ globalThis.loaders.encodeImageNode = encodeImageNode;
65270
+ globalThis.loaders.parseImageNode = parseImageNode;
65271
+ globalThis.loaders.imageFormatsNode = NODE_FORMAT_SUPPORT;
65272
+ globalThis._parseImageNode = parseImageNode;
65273
+ globalThis._imageFormatsNode = NODE_FORMAT_SUPPORT;
65274
+ globalThis.loaders.readFileAsArrayBuffer = readFileAsArrayBuffer2;
65275
+ globalThis.loaders.readFileAsText = readFileAsText2;
65276
+ globalThis.loaders.requireFromFile = requireFromFile2;
65277
+ globalThis.loaders.requireFromString = requireFromString2;
65223
65278
  if (nodeVersion2 < 18) {
65224
65279
  if (!("Headers" in globalThis) && Headers2) {
65225
65280
  globalThis.Headers = Headers2;
@@ -65233,7 +65288,7 @@ if (nodeVersion2 < 18) {
65233
65288
  }
65234
65289
 
65235
65290
  // src/lib/utils/version.ts
65236
- var VERSION2 = true ? "4.0.0-beta.3" : "beta";
65291
+ var VERSION2 = true ? "4.0.0-beta.4" : "beta";
65237
65292
 
65238
65293
  // src/lib/parsers/basis-module-loader.ts
65239
65294
  var BASIS_EXTERNAL_LIBRARIES = {