@magda/connector-sdk 3.0.1 → 3.0.2-alpha.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.
Files changed (2) hide show
  1. package/dist/index.js +811 -452
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -39,10 +39,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
39
  ));
40
40
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
41
 
42
+ // ../cjs-shim.js
43
+ import { createRequire } from "module";
44
+ import path from "path";
45
+ import url from "url";
46
+ var init_cjs_shim = __esm({
47
+ "../cjs-shim.js"() {
48
+ globalThis.require = createRequire(import.meta.url);
49
+ globalThis.__filename = url.fileURLToPath(import.meta.url);
50
+ globalThis.__dirname = path.dirname(__filename);
51
+ }
52
+ });
53
+
42
54
  // ../../node_modules/cross-fetch/node_modules/webidl-conversions/lib/index.js
43
55
  var require_lib = __commonJS({
44
56
  "../../node_modules/cross-fetch/node_modules/webidl-conversions/lib/index.js"(exports, module) {
45
57
  "use strict";
58
+ init_cjs_shim();
46
59
  var conversions = {};
47
60
  module.exports = conversions;
48
61
  function sign(x) {
@@ -200,6 +213,7 @@ var require_lib = __commonJS({
200
213
  var require_utils = __commonJS({
201
214
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/utils.js"(exports, module) {
202
215
  "use strict";
216
+ init_cjs_shim();
203
217
  module.exports.mixin = function mixin(target, source) {
204
218
  const keys = Object.getOwnPropertyNames(source);
205
219
  for (let i = 0; i < keys.length; ++i) {
@@ -228,6 +242,7 @@ var require_mappingTable = __commonJS({
228
242
  var require_tr46 = __commonJS({
229
243
  "../../node_modules/cross-fetch/node_modules/tr46/index.js"(exports, module) {
230
244
  "use strict";
245
+ init_cjs_shim();
231
246
  var punycode = __require("punycode");
232
247
  var mappingTable = require_mappingTable();
233
248
  var PROCESSING_OPTIONS = {
@@ -390,6 +405,7 @@ var require_tr46 = __commonJS({
390
405
  var require_url_state_machine = __commonJS({
391
406
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/url-state-machine.js"(exports, module) {
392
407
  "use strict";
408
+ init_cjs_shim();
393
409
  var punycode = __require("punycode");
394
410
  var tr46 = require_tr46();
395
411
  var specialSchemes = {
@@ -446,8 +462,8 @@ var require_url_state_machine = __commonJS({
446
462
  function isSpecialScheme(scheme) {
447
463
  return specialSchemes[scheme] !== void 0;
448
464
  }
449
- function isSpecial(url) {
450
- return isSpecialScheme(url.scheme);
465
+ function isSpecial(url2) {
466
+ return isSpecialScheme(url2.scheme);
451
467
  }
452
468
  function defaultPort(scheme) {
453
469
  return specialSchemes[scheme];
@@ -769,38 +785,38 @@ var require_url_state_machine = __commonJS({
769
785
  }
770
786
  return host;
771
787
  }
772
- function trimControlChars(url) {
773
- return url.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
788
+ function trimControlChars(url2) {
789
+ return url2.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g, "");
774
790
  }
775
- function trimTabAndNewline(url) {
776
- return url.replace(/\u0009|\u000A|\u000D/g, "");
791
+ function trimTabAndNewline(url2) {
792
+ return url2.replace(/\u0009|\u000A|\u000D/g, "");
777
793
  }
778
- function shortenPath(url) {
779
- const path2 = url.path;
780
- if (path2.length === 0) {
794
+ function shortenPath(url2) {
795
+ const path3 = url2.path;
796
+ if (path3.length === 0) {
781
797
  return;
782
798
  }
783
- if (url.scheme === "file" && path2.length === 1 && isNormalizedWindowsDriveLetter(path2[0])) {
799
+ if (url2.scheme === "file" && path3.length === 1 && isNormalizedWindowsDriveLetter(path3[0])) {
784
800
  return;
785
801
  }
786
- path2.pop();
802
+ path3.pop();
787
803
  }
788
- function includesCredentials(url) {
789
- return url.username !== "" || url.password !== "";
804
+ function includesCredentials(url2) {
805
+ return url2.username !== "" || url2.password !== "";
790
806
  }
791
- function cannotHaveAUsernamePasswordPort(url) {
792
- return url.host === null || url.host === "" || url.cannotBeABaseURL || url.scheme === "file";
807
+ function cannotHaveAUsernamePasswordPort(url2) {
808
+ return url2.host === null || url2.host === "" || url2.cannotBeABaseURL || url2.scheme === "file";
793
809
  }
794
810
  function isNormalizedWindowsDriveLetter(string) {
795
811
  return /^[A-Za-z]:$/.test(string);
796
812
  }
797
- function URLStateMachine(input, base, encodingOverride, url, stateOverride) {
813
+ function URLStateMachine(input, base, encodingOverride, url2, stateOverride) {
798
814
  this.pointer = 0;
799
815
  this.input = input;
800
816
  this.base = base || null;
801
817
  this.encodingOverride = encodingOverride || "utf-8";
802
818
  this.stateOverride = stateOverride;
803
- this.url = url;
819
+ this.url = url2;
804
820
  this.failure = false;
805
821
  this.parseError = false;
806
822
  if (!this.url) {
@@ -1353,36 +1369,36 @@ var require_url_state_machine = __commonJS({
1353
1369
  }
1354
1370
  return true;
1355
1371
  };
1356
- function serializeURL(url, excludeFragment) {
1357
- let output = url.scheme + ":";
1358
- if (url.host !== null) {
1372
+ function serializeURL(url2, excludeFragment) {
1373
+ let output = url2.scheme + ":";
1374
+ if (url2.host !== null) {
1359
1375
  output += "//";
1360
- if (url.username !== "" || url.password !== "") {
1361
- output += url.username;
1362
- if (url.password !== "") {
1363
- output += ":" + url.password;
1376
+ if (url2.username !== "" || url2.password !== "") {
1377
+ output += url2.username;
1378
+ if (url2.password !== "") {
1379
+ output += ":" + url2.password;
1364
1380
  }
1365
1381
  output += "@";
1366
1382
  }
1367
- output += serializeHost(url.host);
1368
- if (url.port !== null) {
1369
- output += ":" + url.port;
1383
+ output += serializeHost(url2.host);
1384
+ if (url2.port !== null) {
1385
+ output += ":" + url2.port;
1370
1386
  }
1371
- } else if (url.host === null && url.scheme === "file") {
1387
+ } else if (url2.host === null && url2.scheme === "file") {
1372
1388
  output += "//";
1373
1389
  }
1374
- if (url.cannotBeABaseURL) {
1375
- output += url.path[0];
1390
+ if (url2.cannotBeABaseURL) {
1391
+ output += url2.path[0];
1376
1392
  } else {
1377
- for (const string of url.path) {
1393
+ for (const string of url2.path) {
1378
1394
  output += "/" + string;
1379
1395
  }
1380
1396
  }
1381
- if (url.query !== null) {
1382
- output += "?" + url.query;
1397
+ if (url2.query !== null) {
1398
+ output += "?" + url2.query;
1383
1399
  }
1384
- if (!excludeFragment && url.fragment !== null) {
1385
- output += "#" + url.fragment;
1400
+ if (!excludeFragment && url2.fragment !== null) {
1401
+ output += "#" + url2.fragment;
1386
1402
  }
1387
1403
  return output;
1388
1404
  }
@@ -1395,11 +1411,11 @@ var require_url_state_machine = __commonJS({
1395
1411
  return result;
1396
1412
  }
1397
1413
  module.exports.serializeURL = serializeURL;
1398
- module.exports.serializeURLOrigin = function(url) {
1399
- switch (url.scheme) {
1414
+ module.exports.serializeURLOrigin = function(url2) {
1415
+ switch (url2.scheme) {
1400
1416
  case "blob":
1401
1417
  try {
1402
- return module.exports.serializeURLOrigin(module.exports.parseURL(url.path[0]));
1418
+ return module.exports.serializeURLOrigin(module.exports.parseURL(url2.path[0]));
1403
1419
  } catch (e) {
1404
1420
  return "null";
1405
1421
  }
@@ -1410,9 +1426,9 @@ var require_url_state_machine = __commonJS({
1410
1426
  case "ws":
1411
1427
  case "wss":
1412
1428
  return serializeOrigin({
1413
- scheme: url.scheme,
1414
- host: url.host,
1415
- port: url.port
1429
+ scheme: url2.scheme,
1430
+ host: url2.host,
1431
+ port: url2.port
1416
1432
  });
1417
1433
  case "file":
1418
1434
  return "file://";
@@ -1430,18 +1446,18 @@ var require_url_state_machine = __commonJS({
1430
1446
  }
1431
1447
  return usm.url;
1432
1448
  };
1433
- module.exports.setTheUsername = function(url, username) {
1434
- url.username = "";
1449
+ module.exports.setTheUsername = function(url2, username) {
1450
+ url2.username = "";
1435
1451
  const decoded = punycode.ucs2.decode(username);
1436
1452
  for (let i = 0; i < decoded.length; ++i) {
1437
- url.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1453
+ url2.username += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1438
1454
  }
1439
1455
  };
1440
- module.exports.setThePassword = function(url, password) {
1441
- url.password = "";
1456
+ module.exports.setThePassword = function(url2, password) {
1457
+ url2.password = "";
1442
1458
  const decoded = punycode.ucs2.decode(password);
1443
1459
  for (let i = 0; i < decoded.length; ++i) {
1444
- url.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1460
+ url2.password += percentEncodeChar(decoded[i], isUserinfoPercentEncode);
1445
1461
  }
1446
1462
  };
1447
1463
  module.exports.serializeHost = serializeHost;
@@ -1462,10 +1478,11 @@ var require_url_state_machine = __commonJS({
1462
1478
  var require_URL_impl = __commonJS({
1463
1479
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/URL-impl.js"(exports) {
1464
1480
  "use strict";
1481
+ init_cjs_shim();
1465
1482
  var usm = require_url_state_machine();
1466
1483
  exports.implementation = class URLImpl {
1467
1484
  constructor(constructorArgs) {
1468
- const url = constructorArgs[0];
1485
+ const url2 = constructorArgs[0];
1469
1486
  const base = constructorArgs[1];
1470
1487
  let parsedBase = null;
1471
1488
  if (base !== void 0) {
@@ -1474,7 +1491,7 @@ var require_URL_impl = __commonJS({
1474
1491
  throw new TypeError("Invalid base URL");
1475
1492
  }
1476
1493
  }
1477
- const parsedURL = usm.basicURLParse(url, { baseURL: parsedBase });
1494
+ const parsedURL = usm.basicURLParse(url2, { baseURL: parsedBase });
1478
1495
  if (parsedURL === "failure") {
1479
1496
  throw new TypeError("Invalid URL");
1480
1497
  }
@@ -1518,14 +1535,14 @@ var require_URL_impl = __commonJS({
1518
1535
  usm.setThePassword(this._url, v);
1519
1536
  }
1520
1537
  get host() {
1521
- const url = this._url;
1522
- if (url.host === null) {
1538
+ const url2 = this._url;
1539
+ if (url2.host === null) {
1523
1540
  return "";
1524
1541
  }
1525
- if (url.port === null) {
1526
- return usm.serializeHost(url.host);
1542
+ if (url2.port === null) {
1543
+ return usm.serializeHost(url2.host);
1527
1544
  }
1528
- return usm.serializeHost(url.host) + ":" + usm.serializeInteger(url.port);
1545
+ return usm.serializeHost(url2.host) + ":" + usm.serializeInteger(url2.port);
1529
1546
  }
1530
1547
  set host(v) {
1531
1548
  if (this._url.cannotBeABaseURL) {
@@ -1584,14 +1601,14 @@ var require_URL_impl = __commonJS({
1584
1601
  return "?" + this._url.query;
1585
1602
  }
1586
1603
  set search(v) {
1587
- const url = this._url;
1604
+ const url2 = this._url;
1588
1605
  if (v === "") {
1589
- url.query = null;
1606
+ url2.query = null;
1590
1607
  return;
1591
1608
  }
1592
1609
  const input = v[0] === "?" ? v.substring(1) : v;
1593
- url.query = "";
1594
- usm.basicURLParse(input, { url, stateOverride: "query" });
1610
+ url2.query = "";
1611
+ usm.basicURLParse(input, { url: url2, stateOverride: "query" });
1595
1612
  }
1596
1613
  get hash() {
1597
1614
  if (this._url.fragment === null || this._url.fragment === "") {
@@ -1619,11 +1636,12 @@ var require_URL_impl = __commonJS({
1619
1636
  var require_URL = __commonJS({
1620
1637
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/URL.js"(exports, module) {
1621
1638
  "use strict";
1639
+ init_cjs_shim();
1622
1640
  var conversions = require_lib();
1623
1641
  var utils = require_utils();
1624
1642
  var Impl = require_URL_impl();
1625
1643
  var impl = utils.implSymbol;
1626
- function URL2(url) {
1644
+ function URL2(url2) {
1627
1645
  if (!this || this[impl] || !(this instanceof URL2)) {
1628
1646
  throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");
1629
1647
  }
@@ -1802,6 +1820,7 @@ var require_URL = __commonJS({
1802
1820
  var require_public_api = __commonJS({
1803
1821
  "../../node_modules/cross-fetch/node_modules/whatwg-url/lib/public-api.js"(exports) {
1804
1822
  "use strict";
1823
+ init_cjs_shim();
1805
1824
  exports.URL = require_URL().interface;
1806
1825
  exports.serializeURL = require_url_state_machine().serializeURL;
1807
1826
  exports.serializeURLOrigin = require_url_state_machine().serializeURLOrigin;
@@ -1818,6 +1837,7 @@ var require_public_api = __commonJS({
1818
1837
  var require_safer = __commonJS({
1819
1838
  "../../node_modules/safer-buffer/safer.js"(exports, module) {
1820
1839
  "use strict";
1840
+ init_cjs_shim();
1821
1841
  var buffer = __require("buffer");
1822
1842
  var Buffer2 = buffer.Buffer;
1823
1843
  var safer = {};
@@ -1890,6 +1910,7 @@ var require_safer = __commonJS({
1890
1910
  var require_bom_handling = __commonJS({
1891
1911
  "../../node_modules/iconv-lite/lib/bom-handling.js"(exports) {
1892
1912
  "use strict";
1913
+ init_cjs_shim();
1893
1914
  var BOMChar = "\uFEFF";
1894
1915
  exports.PrependBOM = PrependBOMWrapper;
1895
1916
  function PrependBOMWrapper(encoder, options) {
@@ -1934,6 +1955,7 @@ var require_bom_handling = __commonJS({
1934
1955
  var require_internal = __commonJS({
1935
1956
  "../../node_modules/iconv-lite/encodings/internal.js"(exports, module) {
1936
1957
  "use strict";
1958
+ init_cjs_shim();
1937
1959
  var Buffer2 = require_safer().Buffer;
1938
1960
  module.exports = {
1939
1961
  // Encodings
@@ -2078,6 +2100,7 @@ var require_internal = __commonJS({
2078
2100
  var require_utf16 = __commonJS({
2079
2101
  "../../node_modules/iconv-lite/encodings/utf16.js"(exports) {
2080
2102
  "use strict";
2103
+ init_cjs_shim();
2081
2104
  var Buffer2 = require_safer().Buffer;
2082
2105
  exports.utf16be = Utf16BECodec;
2083
2106
  function Utf16BECodec() {
@@ -2196,6 +2219,7 @@ var require_utf16 = __commonJS({
2196
2219
  var require_utf7 = __commonJS({
2197
2220
  "../../node_modules/iconv-lite/encodings/utf7.js"(exports) {
2198
2221
  "use strict";
2222
+ init_cjs_shim();
2199
2223
  var Buffer2 = require_safer().Buffer;
2200
2224
  exports.utf7 = Utf7Codec;
2201
2225
  exports.unicode11utf7 = "utf7";
@@ -2397,6 +2421,7 @@ var require_utf7 = __commonJS({
2397
2421
  var require_sbcs_codec = __commonJS({
2398
2422
  "../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
2399
2423
  "use strict";
2424
+ init_cjs_shim();
2400
2425
  var Buffer2 = require_safer().Buffer;
2401
2426
  exports._sbcs = SBCSCodec;
2402
2427
  function SBCSCodec(codecOptions, iconv) {
@@ -2453,6 +2478,7 @@ var require_sbcs_codec = __commonJS({
2453
2478
  var require_sbcs_data = __commonJS({
2454
2479
  "../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
2455
2480
  "use strict";
2481
+ init_cjs_shim();
2456
2482
  module.exports = {
2457
2483
  // Not supported by iconv, not sure why.
2458
2484
  "10029": "maccenteuro",
@@ -2602,6 +2628,7 @@ var require_sbcs_data = __commonJS({
2602
2628
  var require_sbcs_data_generated = __commonJS({
2603
2629
  "../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
2604
2630
  "use strict";
2631
+ init_cjs_shim();
2605
2632
  module.exports = {
2606
2633
  "437": "cp437",
2607
2634
  "737": "cp737",
@@ -3057,6 +3084,7 @@ var require_sbcs_data_generated = __commonJS({
3057
3084
  var require_dbcs_codec = __commonJS({
3058
3085
  "../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
3059
3086
  "use strict";
3087
+ init_cjs_shim();
3060
3088
  var Buffer2 = require_safer().Buffer;
3061
3089
  exports._dbcs = DBCSCodec;
3062
3090
  var UNASSIGNED = -1;
@@ -4689,6 +4717,7 @@ var require_big5_added = __commonJS({
4689
4717
  var require_dbcs_data = __commonJS({
4690
4718
  "../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
4691
4719
  "use strict";
4720
+ init_cjs_shim();
4692
4721
  module.exports = {
4693
4722
  // == Japanese/ShiftJIS ====================================================
4694
4723
  // All japanese encodings are based on JIS X set of standards:
@@ -4864,6 +4893,7 @@ var require_dbcs_data = __commonJS({
4864
4893
  var require_encodings = __commonJS({
4865
4894
  "../../node_modules/iconv-lite/encodings/index.js"(exports, module) {
4866
4895
  "use strict";
4896
+ init_cjs_shim();
4867
4897
  var modules = [
4868
4898
  require_internal(),
4869
4899
  require_utf16(),
@@ -4890,6 +4920,7 @@ var require_encodings = __commonJS({
4890
4920
  var require_streams = __commonJS({
4891
4921
  "../../node_modules/iconv-lite/lib/streams.js"(exports, module) {
4892
4922
  "use strict";
4923
+ init_cjs_shim();
4893
4924
  var Buffer2 = __require("buffer").Buffer;
4894
4925
  var Transform = __require("stream").Transform;
4895
4926
  module.exports = function(iconv) {
@@ -4995,6 +5026,7 @@ var require_streams = __commonJS({
4995
5026
  var require_extend_node = __commonJS({
4996
5027
  "../../node_modules/iconv-lite/lib/extend-node.js"(exports, module) {
4997
5028
  "use strict";
5029
+ init_cjs_shim();
4998
5030
  var Buffer2 = __require("buffer").Buffer;
4999
5031
  module.exports = function(iconv) {
5000
5032
  var original = void 0;
@@ -5164,6 +5196,7 @@ var require_extend_node = __commonJS({
5164
5196
  var require_lib2 = __commonJS({
5165
5197
  "../../node_modules/iconv-lite/lib/index.js"(exports, module) {
5166
5198
  "use strict";
5199
+ init_cjs_shim();
5167
5200
  var Buffer2 = require_safer().Buffer;
5168
5201
  var bomHandling = require_bom_handling();
5169
5202
  var iconv = module.exports;
@@ -5267,6 +5300,7 @@ var require_lib2 = __commonJS({
5267
5300
  var require_iconv_loader = __commonJS({
5268
5301
  "../../node_modules/encoding/lib/iconv-loader.js"(exports, module) {
5269
5302
  "use strict";
5303
+ init_cjs_shim();
5270
5304
  var iconv_package;
5271
5305
  var Iconv;
5272
5306
  try {
@@ -5282,6 +5316,7 @@ var require_iconv_loader = __commonJS({
5282
5316
  var require_encoding = __commonJS({
5283
5317
  "../../node_modules/encoding/lib/encoding.js"(exports, module) {
5284
5318
  "use strict";
5319
+ init_cjs_shim();
5285
5320
  var iconvLite = require_lib2();
5286
5321
  var Iconv = require_iconv_loader();
5287
5322
  module.exports.convert = convert;
@@ -5349,6 +5384,7 @@ var require_encoding = __commonJS({
5349
5384
  var require_lib3 = __commonJS({
5350
5385
  "../../node_modules/cross-fetch/node_modules/node-fetch/lib/index.js"(exports, module) {
5351
5386
  "use strict";
5387
+ init_cjs_shim();
5352
5388
  Object.defineProperty(exports, "__esModule", { value: true });
5353
5389
  function _interopDefault(ex) {
5354
5390
  return ex && typeof ex === "object" && "default" in ex ? ex["default"] : ex;
@@ -6344,13 +6380,13 @@ var require_lib3 = __commonJS({
6344
6380
  const dest = new URL$1(destination).protocol;
6345
6381
  return orig === dest;
6346
6382
  };
6347
- function fetch2(url, opts) {
6383
+ function fetch2(url2, opts) {
6348
6384
  if (!fetch2.Promise) {
6349
6385
  throw new Error("native promise missing, set fetch.Promise to your favorite alternative");
6350
6386
  }
6351
6387
  Body.Promise = fetch2.Promise;
6352
6388
  return new fetch2.Promise(function(resolve2, reject) {
6353
- const request = new Request(url, opts);
6389
+ const request = new Request(url2, opts);
6354
6390
  const options = getNodeRequestOptions(request);
6355
6391
  const send = (options.protocol === "https:" ? https : http).request;
6356
6392
  const signal = request.signal;
@@ -6595,13 +6631,14 @@ var require_lib3 = __commonJS({
6595
6631
  // ../../node_modules/cross-fetch/dist/node-ponyfill.js
6596
6632
  var require_node_ponyfill = __commonJS({
6597
6633
  "../../node_modules/cross-fetch/dist/node-ponyfill.js"(exports, module) {
6634
+ init_cjs_shim();
6598
6635
  var nodeFetch = require_lib3();
6599
6636
  var realFetch = nodeFetch.default || nodeFetch;
6600
- var fetch2 = function(url, options) {
6601
- if (/^\/\//.test(url)) {
6602
- url = "https:" + url;
6637
+ var fetch2 = function(url2, options) {
6638
+ if (/^\/\//.test(url2)) {
6639
+ url2 = "https:" + url2;
6603
6640
  }
6604
- return realFetch.call(this, url, options);
6641
+ return realFetch.call(this, url2, options);
6605
6642
  };
6606
6643
  fetch2.ponyfill = true;
6607
6644
  module.exports = exports = fetch2;
@@ -6616,6 +6653,7 @@ var require_node_ponyfill = __commonJS({
6616
6653
  // ../../node_modules/urijs/src/punycode.js
6617
6654
  var require_punycode = __commonJS({
6618
6655
  "../../node_modules/urijs/src/punycode.js"(exports, module) {
6656
+ init_cjs_shim();
6619
6657
  (function(root) {
6620
6658
  var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
6621
6659
  var freeModule = typeof module == "object" && module && !module.nodeType && module;
@@ -6862,6 +6900,7 @@ var require_punycode = __commonJS({
6862
6900
  // ../../node_modules/urijs/src/IPv6.js
6863
6901
  var require_IPv6 = __commonJS({
6864
6902
  "../../node_modules/urijs/src/IPv6.js"(exports, module) {
6903
+ init_cjs_shim();
6865
6904
  (function(root, factory) {
6866
6905
  "use strict";
6867
6906
  if (typeof module === "object" && module.exports) {
@@ -6980,6 +7019,7 @@ var require_IPv6 = __commonJS({
6980
7019
  // ../../node_modules/urijs/src/SecondLevelDomains.js
6981
7020
  var require_SecondLevelDomains = __commonJS({
6982
7021
  "../../node_modules/urijs/src/SecondLevelDomains.js"(exports, module) {
7022
+ init_cjs_shim();
6983
7023
  (function(root, factory) {
6984
7024
  "use strict";
6985
7025
  if (typeof module === "object" && module.exports) {
@@ -7209,6 +7249,7 @@ var require_SecondLevelDomains = __commonJS({
7209
7249
  // ../../node_modules/urijs/src/URI.js
7210
7250
  var require_URI = __commonJS({
7211
7251
  "../../node_modules/urijs/src/URI.js"(exports, module) {
7252
+ init_cjs_shim();
7212
7253
  (function(root, factory) {
7213
7254
  "use strict";
7214
7255
  if (typeof module === "object" && module.exports) {
@@ -7221,34 +7262,34 @@ var require_URI = __commonJS({
7221
7262
  })(exports, function(punycode, IPv6, SLD, root) {
7222
7263
  "use strict";
7223
7264
  var _URI = root && root.URI;
7224
- function URI2(url, base) {
7265
+ function URI2(url2, base) {
7225
7266
  var _urlSupplied = arguments.length >= 1;
7226
7267
  var _baseSupplied = arguments.length >= 2;
7227
7268
  if (!(this instanceof URI2)) {
7228
7269
  if (_urlSupplied) {
7229
7270
  if (_baseSupplied) {
7230
- return new URI2(url, base);
7271
+ return new URI2(url2, base);
7231
7272
  }
7232
- return new URI2(url);
7273
+ return new URI2(url2);
7233
7274
  }
7234
7275
  return new URI2();
7235
7276
  }
7236
- if (url === void 0) {
7277
+ if (url2 === void 0) {
7237
7278
  if (_urlSupplied) {
7238
7279
  throw new TypeError("undefined is not a valid argument for URI");
7239
7280
  }
7240
7281
  if (typeof location !== "undefined") {
7241
- url = location.href + "";
7282
+ url2 = location.href + "";
7242
7283
  } else {
7243
- url = "";
7284
+ url2 = "";
7244
7285
  }
7245
7286
  }
7246
- if (url === null) {
7287
+ if (url2 === null) {
7247
7288
  if (_urlSupplied) {
7248
7289
  throw new TypeError("null is not a valid argument for URI");
7249
7290
  }
7250
7291
  }
7251
- this.href(url);
7292
+ this.href(url2);
7252
7293
  if (base !== void 0) {
7253
7294
  return this.absoluteTo(base);
7254
7295
  }
@@ -7942,9 +7983,9 @@ var require_URI = __commonJS({
7942
7983
  var segments = [];
7943
7984
  var nonEmptySegments = 0;
7944
7985
  for (var i = 0; i < arguments.length; i++) {
7945
- var url = new URI2(arguments[i]);
7946
- input.push(url);
7947
- var _segments = url.segment();
7986
+ var url2 = new URI2(arguments[i]);
7987
+ input.push(url2);
7988
+ var _segments = url2.segment();
7948
7989
  for (var s = 0; s < _segments.length; s++) {
7949
7990
  if (typeof _segments[s] === "string") {
7950
7991
  segments.push(_segments[s]);
@@ -8579,9 +8620,9 @@ var require_URI = __commonJS({
8579
8620
  };
8580
8621
  p.segment = function(segment, v, build) {
8581
8622
  var separator = this._parts.urn ? ":" : "/";
8582
- var path2 = this.path();
8583
- var absolute = path2.substring(0, 1) === "/";
8584
- var segments = path2.split(separator);
8623
+ var path3 = this.path();
8624
+ var absolute = path3.substring(0, 1) === "/";
8625
+ var segments = path3.split(separator);
8585
8626
  if (segment !== void 0 && typeof segment !== "number") {
8586
8627
  build = v;
8587
8628
  v = segment;
@@ -9038,6 +9079,7 @@ var require_URI = __commonJS({
9038
9079
  // ../../node_modules/safe-buffer/index.js
9039
9080
  var require_safe_buffer = __commonJS({
9040
9081
  "../../node_modules/safe-buffer/index.js"(exports, module) {
9082
+ init_cjs_shim();
9041
9083
  var buffer = __require("buffer");
9042
9084
  var Buffer2 = buffer.Buffer;
9043
9085
  function copyProps(src, dst) {
@@ -9096,6 +9138,7 @@ var require_safe_buffer = __commonJS({
9096
9138
  // ../../node_modules/jws/lib/data-stream.js
9097
9139
  var require_data_stream = __commonJS({
9098
9140
  "../../node_modules/jws/lib/data-stream.js"(exports, module) {
9141
+ init_cjs_shim();
9099
9142
  var Buffer2 = require_safe_buffer().Buffer;
9100
9143
  var Stream = __require("stream");
9101
9144
  var util = __require("util");
@@ -9145,6 +9188,7 @@ var require_data_stream = __commonJS({
9145
9188
  var require_buffer_equal_constant_time = __commonJS({
9146
9189
  "../../node_modules/buffer-equal-constant-time/index.js"(exports, module) {
9147
9190
  "use strict";
9191
+ init_cjs_shim();
9148
9192
  var Buffer2 = __require("buffer").Buffer;
9149
9193
  var SlowBuffer = __require("buffer").SlowBuffer;
9150
9194
  module.exports = bufferEq;
@@ -9179,6 +9223,7 @@ var require_buffer_equal_constant_time = __commonJS({
9179
9223
  var require_param_bytes_for_alg = __commonJS({
9180
9224
  "../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js"(exports, module) {
9181
9225
  "use strict";
9226
+ init_cjs_shim();
9182
9227
  function getParamSize(keySize) {
9183
9228
  var result = (keySize / 8 | 0) + (keySize % 8 === 0 ? 0 : 1);
9184
9229
  return result;
@@ -9203,6 +9248,7 @@ var require_param_bytes_for_alg = __commonJS({
9203
9248
  var require_ecdsa_sig_formatter = __commonJS({
9204
9249
  "../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js"(exports, module) {
9205
9250
  "use strict";
9251
+ init_cjs_shim();
9206
9252
  var Buffer2 = require_safe_buffer().Buffer;
9207
9253
  var getParamBytesForAlg = require_param_bytes_for_alg();
9208
9254
  var MAX_OCTET = 128;
@@ -9342,6 +9388,7 @@ var require_ecdsa_sig_formatter = __commonJS({
9342
9388
  // ../../node_modules/jwa/index.js
9343
9389
  var require_jwa = __commonJS({
9344
9390
  "../../node_modules/jwa/index.js"(exports, module) {
9391
+ init_cjs_shim();
9345
9392
  var bufferEqual = require_buffer_equal_constant_time();
9346
9393
  var Buffer2 = require_safe_buffer().Buffer;
9347
9394
  var crypto3 = __require("crypto");
@@ -9555,6 +9602,7 @@ var require_jwa = __commonJS({
9555
9602
  // ../../node_modules/jws/lib/tostring.js
9556
9603
  var require_tostring = __commonJS({
9557
9604
  "../../node_modules/jws/lib/tostring.js"(exports, module) {
9605
+ init_cjs_shim();
9558
9606
  var Buffer2 = __require("buffer").Buffer;
9559
9607
  module.exports = function toString(obj) {
9560
9608
  if (typeof obj === "string")
@@ -9569,6 +9617,7 @@ var require_tostring = __commonJS({
9569
9617
  // ../../node_modules/jws/lib/sign-stream.js
9570
9618
  var require_sign_stream = __commonJS({
9571
9619
  "../../node_modules/jws/lib/sign-stream.js"(exports, module) {
9620
+ init_cjs_shim();
9572
9621
  var Buffer2 = require_safe_buffer().Buffer;
9573
9622
  var DataStream = require_data_stream();
9574
9623
  var jwa = require_jwa();
@@ -9639,6 +9688,7 @@ var require_sign_stream = __commonJS({
9639
9688
  // ../../node_modules/jws/lib/verify-stream.js
9640
9689
  var require_verify_stream = __commonJS({
9641
9690
  "../../node_modules/jws/lib/verify-stream.js"(exports, module) {
9691
+ init_cjs_shim();
9642
9692
  var Buffer2 = require_safe_buffer().Buffer;
9643
9693
  var DataStream = require_data_stream();
9644
9694
  var jwa = require_jwa();
@@ -9749,6 +9799,7 @@ var require_verify_stream = __commonJS({
9749
9799
  // ../../node_modules/jws/index.js
9750
9800
  var require_jws = __commonJS({
9751
9801
  "../../node_modules/jws/index.js"(exports) {
9802
+ init_cjs_shim();
9752
9803
  var SignStream = require_sign_stream();
9753
9804
  var VerifyStream = require_verify_stream();
9754
9805
  var ALGORITHMS = [
@@ -9782,6 +9833,7 @@ var require_jws = __commonJS({
9782
9833
  // ../../magda-typescript-common/node_modules/jsonwebtoken/decode.js
9783
9834
  var require_decode = __commonJS({
9784
9835
  "../../magda-typescript-common/node_modules/jsonwebtoken/decode.js"(exports, module) {
9836
+ init_cjs_shim();
9785
9837
  var jws = require_jws();
9786
9838
  module.exports = function(jwt2, options) {
9787
9839
  options = options || {};
@@ -9814,6 +9866,7 @@ var require_decode = __commonJS({
9814
9866
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/JsonWebTokenError.js
9815
9867
  var require_JsonWebTokenError = __commonJS({
9816
9868
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/JsonWebTokenError.js"(exports, module) {
9869
+ init_cjs_shim();
9817
9870
  var JsonWebTokenError = function(message, error) {
9818
9871
  Error.call(this, message);
9819
9872
  if (Error.captureStackTrace) {
@@ -9833,6 +9886,7 @@ var require_JsonWebTokenError = __commonJS({
9833
9886
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/NotBeforeError.js
9834
9887
  var require_NotBeforeError = __commonJS({
9835
9888
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/NotBeforeError.js"(exports, module) {
9889
+ init_cjs_shim();
9836
9890
  var JsonWebTokenError = require_JsonWebTokenError();
9837
9891
  var NotBeforeError = function(message, date) {
9838
9892
  JsonWebTokenError.call(this, message);
@@ -9848,6 +9902,7 @@ var require_NotBeforeError = __commonJS({
9848
9902
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/TokenExpiredError.js
9849
9903
  var require_TokenExpiredError = __commonJS({
9850
9904
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/TokenExpiredError.js"(exports, module) {
9905
+ init_cjs_shim();
9851
9906
  var JsonWebTokenError = require_JsonWebTokenError();
9852
9907
  var TokenExpiredError = function(message, expiredAt) {
9853
9908
  JsonWebTokenError.call(this, message);
@@ -9863,6 +9918,7 @@ var require_TokenExpiredError = __commonJS({
9863
9918
  // ../../node_modules/ms/index.js
9864
9919
  var require_ms = __commonJS({
9865
9920
  "../../node_modules/ms/index.js"(exports, module) {
9921
+ init_cjs_shim();
9866
9922
  var s = 1e3;
9867
9923
  var m = s * 60;
9868
9924
  var h = m * 60;
@@ -9979,6 +10035,7 @@ var require_ms = __commonJS({
9979
10035
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/timespan.js
9980
10036
  var require_timespan = __commonJS({
9981
10037
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/timespan.js"(exports, module) {
10038
+ init_cjs_shim();
9982
10039
  var ms = require_ms();
9983
10040
  module.exports = function(time, iat) {
9984
10041
  var timestamp = iat || Math.floor(Date.now() / 1e3);
@@ -10000,6 +10057,7 @@ var require_timespan = __commonJS({
10000
10057
  // ../../magda-typescript-common/node_modules/semver/internal/constants.js
10001
10058
  var require_constants = __commonJS({
10002
10059
  "../../magda-typescript-common/node_modules/semver/internal/constants.js"(exports, module) {
10060
+ init_cjs_shim();
10003
10061
  var SEMVER_SPEC_VERSION = "2.0.0";
10004
10062
  var MAX_LENGTH = 256;
10005
10063
  var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -10031,6 +10089,7 @@ var require_constants = __commonJS({
10031
10089
  // ../../magda-typescript-common/node_modules/semver/internal/debug.js
10032
10090
  var require_debug = __commonJS({
10033
10091
  "../../magda-typescript-common/node_modules/semver/internal/debug.js"(exports, module) {
10092
+ init_cjs_shim();
10034
10093
  var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
10035
10094
  };
10036
10095
  module.exports = debug;
@@ -10040,6 +10099,7 @@ var require_debug = __commonJS({
10040
10099
  // ../../magda-typescript-common/node_modules/semver/internal/re.js
10041
10100
  var require_re = __commonJS({
10042
10101
  "../../magda-typescript-common/node_modules/semver/internal/re.js"(exports, module) {
10102
+ init_cjs_shim();
10043
10103
  var {
10044
10104
  MAX_SAFE_COMPONENT_LENGTH,
10045
10105
  MAX_SAFE_BUILD_LENGTH,
@@ -10122,6 +10182,7 @@ var require_re = __commonJS({
10122
10182
  // ../../magda-typescript-common/node_modules/semver/internal/parse-options.js
10123
10183
  var require_parse_options = __commonJS({
10124
10184
  "../../magda-typescript-common/node_modules/semver/internal/parse-options.js"(exports, module) {
10185
+ init_cjs_shim();
10125
10186
  var looseOption = Object.freeze({ loose: true });
10126
10187
  var emptyOpts = Object.freeze({});
10127
10188
  var parseOptions = (options) => {
@@ -10140,6 +10201,7 @@ var require_parse_options = __commonJS({
10140
10201
  // ../../magda-typescript-common/node_modules/semver/internal/identifiers.js
10141
10202
  var require_identifiers = __commonJS({
10142
10203
  "../../magda-typescript-common/node_modules/semver/internal/identifiers.js"(exports, module) {
10204
+ init_cjs_shim();
10143
10205
  var numeric = /^[0-9]+$/;
10144
10206
  var compareIdentifiers = (a, b) => {
10145
10207
  const anum = numeric.test(a);
@@ -10161,6 +10223,7 @@ var require_identifiers = __commonJS({
10161
10223
  // ../../magda-typescript-common/node_modules/semver/classes/semver.js
10162
10224
  var require_semver = __commonJS({
10163
10225
  "../../magda-typescript-common/node_modules/semver/classes/semver.js"(exports, module) {
10226
+ init_cjs_shim();
10164
10227
  var debug = require_debug();
10165
10228
  var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
10166
10229
  var { safeRe: re, t } = require_re();
@@ -10403,6 +10466,7 @@ var require_semver = __commonJS({
10403
10466
  // ../../magda-typescript-common/node_modules/semver/functions/parse.js
10404
10467
  var require_parse = __commonJS({
10405
10468
  "../../magda-typescript-common/node_modules/semver/functions/parse.js"(exports, module) {
10469
+ init_cjs_shim();
10406
10470
  var SemVer = require_semver();
10407
10471
  var parse = (version, options, throwErrors = false) => {
10408
10472
  if (version instanceof SemVer) {
@@ -10424,6 +10488,7 @@ var require_parse = __commonJS({
10424
10488
  // ../../magda-typescript-common/node_modules/semver/functions/valid.js
10425
10489
  var require_valid = __commonJS({
10426
10490
  "../../magda-typescript-common/node_modules/semver/functions/valid.js"(exports, module) {
10491
+ init_cjs_shim();
10427
10492
  var parse = require_parse();
10428
10493
  var valid = (version, options) => {
10429
10494
  const v = parse(version, options);
@@ -10436,6 +10501,7 @@ var require_valid = __commonJS({
10436
10501
  // ../../magda-typescript-common/node_modules/semver/functions/clean.js
10437
10502
  var require_clean = __commonJS({
10438
10503
  "../../magda-typescript-common/node_modules/semver/functions/clean.js"(exports, module) {
10504
+ init_cjs_shim();
10439
10505
  var parse = require_parse();
10440
10506
  var clean = (version, options) => {
10441
10507
  const s = parse(version.trim().replace(/^[=v]+/, ""), options);
@@ -10448,6 +10514,7 @@ var require_clean = __commonJS({
10448
10514
  // ../../magda-typescript-common/node_modules/semver/functions/inc.js
10449
10515
  var require_inc = __commonJS({
10450
10516
  "../../magda-typescript-common/node_modules/semver/functions/inc.js"(exports, module) {
10517
+ init_cjs_shim();
10451
10518
  var SemVer = require_semver();
10452
10519
  var inc = (version, release, options, identifier, identifierBase) => {
10453
10520
  if (typeof options === "string") {
@@ -10471,6 +10538,7 @@ var require_inc = __commonJS({
10471
10538
  // ../../magda-typescript-common/node_modules/semver/functions/diff.js
10472
10539
  var require_diff = __commonJS({
10473
10540
  "../../magda-typescript-common/node_modules/semver/functions/diff.js"(exports, module) {
10541
+ init_cjs_shim();
10474
10542
  var parse = require_parse();
10475
10543
  var diff = (version1, version2) => {
10476
10544
  const v1 = parse(version1, null, true);
@@ -10515,6 +10583,7 @@ var require_diff = __commonJS({
10515
10583
  // ../../magda-typescript-common/node_modules/semver/functions/major.js
10516
10584
  var require_major = __commonJS({
10517
10585
  "../../magda-typescript-common/node_modules/semver/functions/major.js"(exports, module) {
10586
+ init_cjs_shim();
10518
10587
  var SemVer = require_semver();
10519
10588
  var major = (a, loose) => new SemVer(a, loose).major;
10520
10589
  module.exports = major;
@@ -10524,6 +10593,7 @@ var require_major = __commonJS({
10524
10593
  // ../../magda-typescript-common/node_modules/semver/functions/minor.js
10525
10594
  var require_minor = __commonJS({
10526
10595
  "../../magda-typescript-common/node_modules/semver/functions/minor.js"(exports, module) {
10596
+ init_cjs_shim();
10527
10597
  var SemVer = require_semver();
10528
10598
  var minor = (a, loose) => new SemVer(a, loose).minor;
10529
10599
  module.exports = minor;
@@ -10533,6 +10603,7 @@ var require_minor = __commonJS({
10533
10603
  // ../../magda-typescript-common/node_modules/semver/functions/patch.js
10534
10604
  var require_patch = __commonJS({
10535
10605
  "../../magda-typescript-common/node_modules/semver/functions/patch.js"(exports, module) {
10606
+ init_cjs_shim();
10536
10607
  var SemVer = require_semver();
10537
10608
  var patch = (a, loose) => new SemVer(a, loose).patch;
10538
10609
  module.exports = patch;
@@ -10542,6 +10613,7 @@ var require_patch = __commonJS({
10542
10613
  // ../../magda-typescript-common/node_modules/semver/functions/prerelease.js
10543
10614
  var require_prerelease = __commonJS({
10544
10615
  "../../magda-typescript-common/node_modules/semver/functions/prerelease.js"(exports, module) {
10616
+ init_cjs_shim();
10545
10617
  var parse = require_parse();
10546
10618
  var prerelease = (version, options) => {
10547
10619
  const parsed = parse(version, options);
@@ -10554,6 +10626,7 @@ var require_prerelease = __commonJS({
10554
10626
  // ../../magda-typescript-common/node_modules/semver/functions/compare.js
10555
10627
  var require_compare = __commonJS({
10556
10628
  "../../magda-typescript-common/node_modules/semver/functions/compare.js"(exports, module) {
10629
+ init_cjs_shim();
10557
10630
  var SemVer = require_semver();
10558
10631
  var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
10559
10632
  module.exports = compare;
@@ -10563,6 +10636,7 @@ var require_compare = __commonJS({
10563
10636
  // ../../magda-typescript-common/node_modules/semver/functions/rcompare.js
10564
10637
  var require_rcompare = __commonJS({
10565
10638
  "../../magda-typescript-common/node_modules/semver/functions/rcompare.js"(exports, module) {
10639
+ init_cjs_shim();
10566
10640
  var compare = require_compare();
10567
10641
  var rcompare = (a, b, loose) => compare(b, a, loose);
10568
10642
  module.exports = rcompare;
@@ -10572,6 +10646,7 @@ var require_rcompare = __commonJS({
10572
10646
  // ../../magda-typescript-common/node_modules/semver/functions/compare-loose.js
10573
10647
  var require_compare_loose = __commonJS({
10574
10648
  "../../magda-typescript-common/node_modules/semver/functions/compare-loose.js"(exports, module) {
10649
+ init_cjs_shim();
10575
10650
  var compare = require_compare();
10576
10651
  var compareLoose = (a, b) => compare(a, b, true);
10577
10652
  module.exports = compareLoose;
@@ -10581,6 +10656,7 @@ var require_compare_loose = __commonJS({
10581
10656
  // ../../magda-typescript-common/node_modules/semver/functions/compare-build.js
10582
10657
  var require_compare_build = __commonJS({
10583
10658
  "../../magda-typescript-common/node_modules/semver/functions/compare-build.js"(exports, module) {
10659
+ init_cjs_shim();
10584
10660
  var SemVer = require_semver();
10585
10661
  var compareBuild = (a, b, loose) => {
10586
10662
  const versionA = new SemVer(a, loose);
@@ -10594,6 +10670,7 @@ var require_compare_build = __commonJS({
10594
10670
  // ../../magda-typescript-common/node_modules/semver/functions/sort.js
10595
10671
  var require_sort = __commonJS({
10596
10672
  "../../magda-typescript-common/node_modules/semver/functions/sort.js"(exports, module) {
10673
+ init_cjs_shim();
10597
10674
  var compareBuild = require_compare_build();
10598
10675
  var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
10599
10676
  module.exports = sort;
@@ -10603,6 +10680,7 @@ var require_sort = __commonJS({
10603
10680
  // ../../magda-typescript-common/node_modules/semver/functions/rsort.js
10604
10681
  var require_rsort = __commonJS({
10605
10682
  "../../magda-typescript-common/node_modules/semver/functions/rsort.js"(exports, module) {
10683
+ init_cjs_shim();
10606
10684
  var compareBuild = require_compare_build();
10607
10685
  var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
10608
10686
  module.exports = rsort;
@@ -10612,6 +10690,7 @@ var require_rsort = __commonJS({
10612
10690
  // ../../magda-typescript-common/node_modules/semver/functions/gt.js
10613
10691
  var require_gt = __commonJS({
10614
10692
  "../../magda-typescript-common/node_modules/semver/functions/gt.js"(exports, module) {
10693
+ init_cjs_shim();
10615
10694
  var compare = require_compare();
10616
10695
  var gt = (a, b, loose) => compare(a, b, loose) > 0;
10617
10696
  module.exports = gt;
@@ -10621,6 +10700,7 @@ var require_gt = __commonJS({
10621
10700
  // ../../magda-typescript-common/node_modules/semver/functions/lt.js
10622
10701
  var require_lt = __commonJS({
10623
10702
  "../../magda-typescript-common/node_modules/semver/functions/lt.js"(exports, module) {
10703
+ init_cjs_shim();
10624
10704
  var compare = require_compare();
10625
10705
  var lt = (a, b, loose) => compare(a, b, loose) < 0;
10626
10706
  module.exports = lt;
@@ -10630,6 +10710,7 @@ var require_lt = __commonJS({
10630
10710
  // ../../magda-typescript-common/node_modules/semver/functions/eq.js
10631
10711
  var require_eq = __commonJS({
10632
10712
  "../../magda-typescript-common/node_modules/semver/functions/eq.js"(exports, module) {
10713
+ init_cjs_shim();
10633
10714
  var compare = require_compare();
10634
10715
  var eq2 = (a, b, loose) => compare(a, b, loose) === 0;
10635
10716
  module.exports = eq2;
@@ -10639,6 +10720,7 @@ var require_eq = __commonJS({
10639
10720
  // ../../magda-typescript-common/node_modules/semver/functions/neq.js
10640
10721
  var require_neq = __commonJS({
10641
10722
  "../../magda-typescript-common/node_modules/semver/functions/neq.js"(exports, module) {
10723
+ init_cjs_shim();
10642
10724
  var compare = require_compare();
10643
10725
  var neq = (a, b, loose) => compare(a, b, loose) !== 0;
10644
10726
  module.exports = neq;
@@ -10648,6 +10730,7 @@ var require_neq = __commonJS({
10648
10730
  // ../../magda-typescript-common/node_modules/semver/functions/gte.js
10649
10731
  var require_gte = __commonJS({
10650
10732
  "../../magda-typescript-common/node_modules/semver/functions/gte.js"(exports, module) {
10733
+ init_cjs_shim();
10651
10734
  var compare = require_compare();
10652
10735
  var gte = (a, b, loose) => compare(a, b, loose) >= 0;
10653
10736
  module.exports = gte;
@@ -10657,6 +10740,7 @@ var require_gte = __commonJS({
10657
10740
  // ../../magda-typescript-common/node_modules/semver/functions/lte.js
10658
10741
  var require_lte = __commonJS({
10659
10742
  "../../magda-typescript-common/node_modules/semver/functions/lte.js"(exports, module) {
10743
+ init_cjs_shim();
10660
10744
  var compare = require_compare();
10661
10745
  var lte = (a, b, loose) => compare(a, b, loose) <= 0;
10662
10746
  module.exports = lte;
@@ -10666,6 +10750,7 @@ var require_lte = __commonJS({
10666
10750
  // ../../magda-typescript-common/node_modules/semver/functions/cmp.js
10667
10751
  var require_cmp = __commonJS({
10668
10752
  "../../magda-typescript-common/node_modules/semver/functions/cmp.js"(exports, module) {
10753
+ init_cjs_shim();
10669
10754
  var eq2 = require_eq();
10670
10755
  var neq = require_neq();
10671
10756
  var gt = require_gt();
@@ -10715,6 +10800,7 @@ var require_cmp = __commonJS({
10715
10800
  // ../../magda-typescript-common/node_modules/semver/functions/coerce.js
10716
10801
  var require_coerce = __commonJS({
10717
10802
  "../../magda-typescript-common/node_modules/semver/functions/coerce.js"(exports, module) {
10803
+ init_cjs_shim();
10718
10804
  var SemVer = require_semver();
10719
10805
  var parse = require_parse();
10720
10806
  var { safeRe: re, t } = require_re();
@@ -10755,6 +10841,7 @@ var require_coerce = __commonJS({
10755
10841
  var require_iterator = __commonJS({
10756
10842
  "../../node_modules/yallist/iterator.js"(exports, module) {
10757
10843
  "use strict";
10844
+ init_cjs_shim();
10758
10845
  module.exports = function(Yallist) {
10759
10846
  Yallist.prototype[Symbol.iterator] = function* () {
10760
10847
  for (let walker = this.head; walker; walker = walker.next) {
@@ -10769,6 +10856,7 @@ var require_iterator = __commonJS({
10769
10856
  var require_yallist = __commonJS({
10770
10857
  "../../node_modules/yallist/yallist.js"(exports, module) {
10771
10858
  "use strict";
10859
+ init_cjs_shim();
10772
10860
  module.exports = Yallist;
10773
10861
  Yallist.Node = Node;
10774
10862
  Yallist.create = Yallist;
@@ -11138,6 +11226,7 @@ var require_yallist = __commonJS({
11138
11226
  var require_lru_cache = __commonJS({
11139
11227
  "../../node_modules/lru-cache/index.js"(exports, module) {
11140
11228
  "use strict";
11229
+ init_cjs_shim();
11141
11230
  var Yallist = require_yallist();
11142
11231
  var MAX = Symbol("max");
11143
11232
  var LENGTH = Symbol("length");
@@ -11407,6 +11496,7 @@ var require_lru_cache = __commonJS({
11407
11496
  // ../../magda-typescript-common/node_modules/semver/classes/range.js
11408
11497
  var require_range = __commonJS({
11409
11498
  "../../magda-typescript-common/node_modules/semver/classes/range.js"(exports, module) {
11499
+ init_cjs_shim();
11410
11500
  var Range = class _Range {
11411
11501
  constructor(range, options) {
11412
11502
  options = parseOptions(options);
@@ -11764,6 +11854,7 @@ var require_range = __commonJS({
11764
11854
  // ../../magda-typescript-common/node_modules/semver/classes/comparator.js
11765
11855
  var require_comparator = __commonJS({
11766
11856
  "../../magda-typescript-common/node_modules/semver/classes/comparator.js"(exports, module) {
11857
+ init_cjs_shim();
11767
11858
  var ANY = Symbol("SemVer ANY");
11768
11859
  var Comparator = class _Comparator {
11769
11860
  static get ANY() {
@@ -11876,6 +11967,7 @@ var require_comparator = __commonJS({
11876
11967
  // ../../magda-typescript-common/node_modules/semver/functions/satisfies.js
11877
11968
  var require_satisfies = __commonJS({
11878
11969
  "../../magda-typescript-common/node_modules/semver/functions/satisfies.js"(exports, module) {
11970
+ init_cjs_shim();
11879
11971
  var Range = require_range();
11880
11972
  var satisfies = (version, range, options) => {
11881
11973
  try {
@@ -11892,6 +11984,7 @@ var require_satisfies = __commonJS({
11892
11984
  // ../../magda-typescript-common/node_modules/semver/ranges/to-comparators.js
11893
11985
  var require_to_comparators = __commonJS({
11894
11986
  "../../magda-typescript-common/node_modules/semver/ranges/to-comparators.js"(exports, module) {
11987
+ init_cjs_shim();
11895
11988
  var Range = require_range();
11896
11989
  var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
11897
11990
  module.exports = toComparators;
@@ -11901,6 +11994,7 @@ var require_to_comparators = __commonJS({
11901
11994
  // ../../magda-typescript-common/node_modules/semver/ranges/max-satisfying.js
11902
11995
  var require_max_satisfying = __commonJS({
11903
11996
  "../../magda-typescript-common/node_modules/semver/ranges/max-satisfying.js"(exports, module) {
11997
+ init_cjs_shim();
11904
11998
  var SemVer = require_semver();
11905
11999
  var Range = require_range();
11906
12000
  var maxSatisfying = (versions, range, options) => {
@@ -11929,6 +12023,7 @@ var require_max_satisfying = __commonJS({
11929
12023
  // ../../magda-typescript-common/node_modules/semver/ranges/min-satisfying.js
11930
12024
  var require_min_satisfying = __commonJS({
11931
12025
  "../../magda-typescript-common/node_modules/semver/ranges/min-satisfying.js"(exports, module) {
12026
+ init_cjs_shim();
11932
12027
  var SemVer = require_semver();
11933
12028
  var Range = require_range();
11934
12029
  var minSatisfying = (versions, range, options) => {
@@ -11957,6 +12052,7 @@ var require_min_satisfying = __commonJS({
11957
12052
  // ../../magda-typescript-common/node_modules/semver/ranges/min-version.js
11958
12053
  var require_min_version = __commonJS({
11959
12054
  "../../magda-typescript-common/node_modules/semver/ranges/min-version.js"(exports, module) {
12055
+ init_cjs_shim();
11960
12056
  var SemVer = require_semver();
11961
12057
  var Range = require_range();
11962
12058
  var gt = require_gt();
@@ -12013,6 +12109,7 @@ var require_min_version = __commonJS({
12013
12109
  // ../../magda-typescript-common/node_modules/semver/ranges/valid.js
12014
12110
  var require_valid2 = __commonJS({
12015
12111
  "../../magda-typescript-common/node_modules/semver/ranges/valid.js"(exports, module) {
12112
+ init_cjs_shim();
12016
12113
  var Range = require_range();
12017
12114
  var validRange = (range, options) => {
12018
12115
  try {
@@ -12028,6 +12125,7 @@ var require_valid2 = __commonJS({
12028
12125
  // ../../magda-typescript-common/node_modules/semver/ranges/outside.js
12029
12126
  var require_outside = __commonJS({
12030
12127
  "../../magda-typescript-common/node_modules/semver/ranges/outside.js"(exports, module) {
12128
+ init_cjs_shim();
12031
12129
  var SemVer = require_semver();
12032
12130
  var Comparator = require_comparator();
12033
12131
  var { ANY } = Comparator;
@@ -12096,6 +12194,7 @@ var require_outside = __commonJS({
12096
12194
  // ../../magda-typescript-common/node_modules/semver/ranges/gtr.js
12097
12195
  var require_gtr = __commonJS({
12098
12196
  "../../magda-typescript-common/node_modules/semver/ranges/gtr.js"(exports, module) {
12197
+ init_cjs_shim();
12099
12198
  var outside = require_outside();
12100
12199
  var gtr = (version, range, options) => outside(version, range, ">", options);
12101
12200
  module.exports = gtr;
@@ -12105,6 +12204,7 @@ var require_gtr = __commonJS({
12105
12204
  // ../../magda-typescript-common/node_modules/semver/ranges/ltr.js
12106
12205
  var require_ltr = __commonJS({
12107
12206
  "../../magda-typescript-common/node_modules/semver/ranges/ltr.js"(exports, module) {
12207
+ init_cjs_shim();
12108
12208
  var outside = require_outside();
12109
12209
  var ltr = (version, range, options) => outside(version, range, "<", options);
12110
12210
  module.exports = ltr;
@@ -12114,6 +12214,7 @@ var require_ltr = __commonJS({
12114
12214
  // ../../magda-typescript-common/node_modules/semver/ranges/intersects.js
12115
12215
  var require_intersects = __commonJS({
12116
12216
  "../../magda-typescript-common/node_modules/semver/ranges/intersects.js"(exports, module) {
12217
+ init_cjs_shim();
12117
12218
  var Range = require_range();
12118
12219
  var intersects = (r1, r2, options) => {
12119
12220
  r1 = new Range(r1, options);
@@ -12127,6 +12228,7 @@ var require_intersects = __commonJS({
12127
12228
  // ../../magda-typescript-common/node_modules/semver/ranges/simplify.js
12128
12229
  var require_simplify = __commonJS({
12129
12230
  "../../magda-typescript-common/node_modules/semver/ranges/simplify.js"(exports, module) {
12231
+ init_cjs_shim();
12130
12232
  var satisfies = require_satisfies();
12131
12233
  var compare = require_compare();
12132
12234
  module.exports = (versions, range, options) => {
@@ -12176,6 +12278,7 @@ var require_simplify = __commonJS({
12176
12278
  // ../../magda-typescript-common/node_modules/semver/ranges/subset.js
12177
12279
  var require_subset = __commonJS({
12178
12280
  "../../magda-typescript-common/node_modules/semver/ranges/subset.js"(exports, module) {
12281
+ init_cjs_shim();
12179
12282
  var Range = require_range();
12180
12283
  var Comparator = require_comparator();
12181
12284
  var { ANY } = Comparator;
@@ -12338,6 +12441,7 @@ var require_subset = __commonJS({
12338
12441
  // ../../magda-typescript-common/node_modules/semver/index.js
12339
12442
  var require_semver2 = __commonJS({
12340
12443
  "../../magda-typescript-common/node_modules/semver/index.js"(exports, module) {
12444
+ init_cjs_shim();
12341
12445
  var internalRe = require_re();
12342
12446
  var constants = require_constants();
12343
12447
  var SemVer = require_semver();
@@ -12432,6 +12536,7 @@ var require_semver2 = __commonJS({
12432
12536
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
12433
12537
  var require_asymmetricKeyDetailsSupported = __commonJS({
12434
12538
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js"(exports, module) {
12539
+ init_cjs_shim();
12435
12540
  var semver = require_semver2();
12436
12541
  module.exports = semver.satisfies(process.version, ">=15.7.0");
12437
12542
  }
@@ -12440,6 +12545,7 @@ var require_asymmetricKeyDetailsSupported = __commonJS({
12440
12545
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
12441
12546
  var require_rsaPssKeyDetailsSupported = __commonJS({
12442
12547
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js"(exports, module) {
12548
+ init_cjs_shim();
12443
12549
  var semver = require_semver2();
12444
12550
  module.exports = semver.satisfies(process.version, ">=16.9.0");
12445
12551
  }
@@ -12448,6 +12554,7 @@ var require_rsaPssKeyDetailsSupported = __commonJS({
12448
12554
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
12449
12555
  var require_validateAsymmetricKey = __commonJS({
12450
12556
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js"(exports, module) {
12557
+ init_cjs_shim();
12451
12558
  var ASYMMETRIC_KEY_DETAILS_SUPPORTED = require_asymmetricKeyDetailsSupported();
12452
12559
  var RSA_PSS_KEY_DETAILS_SUPPORTED = require_rsaPssKeyDetailsSupported();
12453
12560
  var allowedAlgorithmsForKeys = {
@@ -12503,6 +12610,7 @@ var require_validateAsymmetricKey = __commonJS({
12503
12610
  // ../../magda-typescript-common/node_modules/jsonwebtoken/lib/psSupported.js
12504
12611
  var require_psSupported = __commonJS({
12505
12612
  "../../magda-typescript-common/node_modules/jsonwebtoken/lib/psSupported.js"(exports, module) {
12613
+ init_cjs_shim();
12506
12614
  var semver = require_semver2();
12507
12615
  module.exports = semver.satisfies(process.version, "^6.12.0 || >=8.0.0");
12508
12616
  }
@@ -12511,6 +12619,7 @@ var require_psSupported = __commonJS({
12511
12619
  // ../../magda-typescript-common/node_modules/jsonwebtoken/verify.js
12512
12620
  var require_verify = __commonJS({
12513
12621
  "../../magda-typescript-common/node_modules/jsonwebtoken/verify.js"(exports, module) {
12622
+ init_cjs_shim();
12514
12623
  var JsonWebTokenError = require_JsonWebTokenError();
12515
12624
  var NotBeforeError = require_NotBeforeError();
12516
12625
  var TokenExpiredError = require_TokenExpiredError();
@@ -12727,6 +12836,7 @@ var require_verify = __commonJS({
12727
12836
  // ../../node_modules/lodash.includes/index.js
12728
12837
  var require_lodash = __commonJS({
12729
12838
  "../../node_modules/lodash.includes/index.js"(exports, module) {
12839
+ init_cjs_shim();
12730
12840
  var INFINITY = 1 / 0;
12731
12841
  var MAX_SAFE_INTEGER = 9007199254740991;
12732
12842
  var MAX_INTEGER = 17976931348623157e292;
@@ -12911,6 +13021,7 @@ var require_lodash = __commonJS({
12911
13021
  // ../../node_modules/lodash.isboolean/index.js
12912
13022
  var require_lodash2 = __commonJS({
12913
13023
  "../../node_modules/lodash.isboolean/index.js"(exports, module) {
13024
+ init_cjs_shim();
12914
13025
  var boolTag = "[object Boolean]";
12915
13026
  var objectProto = Object.prototype;
12916
13027
  var objectToString = objectProto.toString;
@@ -12927,6 +13038,7 @@ var require_lodash2 = __commonJS({
12927
13038
  // ../../node_modules/lodash.isinteger/index.js
12928
13039
  var require_lodash3 = __commonJS({
12929
13040
  "../../node_modules/lodash.isinteger/index.js"(exports, module) {
13041
+ init_cjs_shim();
12930
13042
  var INFINITY = 1 / 0;
12931
13043
  var MAX_INTEGER = 17976931348623157e292;
12932
13044
  var NAN = 0 / 0;
@@ -12991,6 +13103,7 @@ var require_lodash3 = __commonJS({
12991
13103
  // ../../node_modules/lodash.isnumber/index.js
12992
13104
  var require_lodash4 = __commonJS({
12993
13105
  "../../node_modules/lodash.isnumber/index.js"(exports, module) {
13106
+ init_cjs_shim();
12994
13107
  var numberTag = "[object Number]";
12995
13108
  var objectProto = Object.prototype;
12996
13109
  var objectToString = objectProto.toString;
@@ -13007,6 +13120,7 @@ var require_lodash4 = __commonJS({
13007
13120
  // ../../node_modules/lodash.isplainobject/index.js
13008
13121
  var require_lodash5 = __commonJS({
13009
13122
  "../../node_modules/lodash.isplainobject/index.js"(exports, module) {
13123
+ init_cjs_shim();
13010
13124
  var objectTag = "[object Object]";
13011
13125
  function isHostObject(value) {
13012
13126
  var result = false;
@@ -13051,6 +13165,7 @@ var require_lodash5 = __commonJS({
13051
13165
  // ../../node_modules/lodash.isstring/index.js
13052
13166
  var require_lodash6 = __commonJS({
13053
13167
  "../../node_modules/lodash.isstring/index.js"(exports, module) {
13168
+ init_cjs_shim();
13054
13169
  var stringTag = "[object String]";
13055
13170
  var objectProto = Object.prototype;
13056
13171
  var objectToString = objectProto.toString;
@@ -13068,6 +13183,7 @@ var require_lodash6 = __commonJS({
13068
13183
  // ../../node_modules/lodash.once/index.js
13069
13184
  var require_lodash7 = __commonJS({
13070
13185
  "../../node_modules/lodash.once/index.js"(exports, module) {
13186
+ init_cjs_shim();
13071
13187
  var FUNC_ERROR_TEXT = "Expected a function";
13072
13188
  var INFINITY = 1 / 0;
13073
13189
  var MAX_INTEGER = 17976931348623157e292;
@@ -13149,6 +13265,7 @@ var require_lodash7 = __commonJS({
13149
13265
  // ../../magda-typescript-common/node_modules/jsonwebtoken/sign.js
13150
13266
  var require_sign = __commonJS({
13151
13267
  "../../magda-typescript-common/node_modules/jsonwebtoken/sign.js"(exports, module) {
13268
+ init_cjs_shim();
13152
13269
  var timespan = require_timespan();
13153
13270
  var PS_SUPPORTED = require_psSupported();
13154
13271
  var validateAsymmetricKey = require_validateAsymmetricKey();
@@ -13374,6 +13491,7 @@ var require_sign = __commonJS({
13374
13491
  // ../../magda-typescript-common/node_modules/jsonwebtoken/index.js
13375
13492
  var require_jsonwebtoken = __commonJS({
13376
13493
  "../../magda-typescript-common/node_modules/jsonwebtoken/index.js"(exports, module) {
13494
+ init_cjs_shim();
13377
13495
  module.exports = {
13378
13496
  decode: require_decode(),
13379
13497
  verify: require_verify(),
@@ -13389,6 +13507,7 @@ var require_jsonwebtoken = __commonJS({
13389
13507
  var require_camelcase = __commonJS({
13390
13508
  "../../node_modules/camelcase/index.js"(exports, module) {
13391
13509
  "use strict";
13510
+ init_cjs_shim();
13392
13511
  var preserveCamelCase = (string) => {
13393
13512
  let isLastCharLower = false;
13394
13513
  let isLastCharUpper = false;
@@ -13449,6 +13568,7 @@ var require_camelcase = __commonJS({
13449
13568
  var require_decamelize = __commonJS({
13450
13569
  "../../node_modules/decamelize/index.js"(exports, module) {
13451
13570
  "use strict";
13571
+ init_cjs_shim();
13452
13572
  module.exports = function(str, sep) {
13453
13573
  if (typeof str !== "string") {
13454
13574
  throw new TypeError("Expected a string");
@@ -13462,6 +13582,7 @@ var require_decamelize = __commonJS({
13462
13582
  // ../../node_modules/yargs/node_modules/yargs-parser/lib/tokenize-arg-string.js
13463
13583
  var require_tokenize_arg_string = __commonJS({
13464
13584
  "../../node_modules/yargs/node_modules/yargs-parser/lib/tokenize-arg-string.js"(exports, module) {
13585
+ init_cjs_shim();
13465
13586
  module.exports = function(argString) {
13466
13587
  if (Array.isArray(argString))
13467
13588
  return argString;
@@ -13501,9 +13622,10 @@ var require_tokenize_arg_string = __commonJS({
13501
13622
  // ../../node_modules/yargs/node_modules/yargs-parser/index.js
13502
13623
  var require_yargs_parser = __commonJS({
13503
13624
  "../../node_modules/yargs/node_modules/yargs-parser/index.js"(exports, module) {
13625
+ init_cjs_shim();
13504
13626
  var camelCase = require_camelcase();
13505
13627
  var decamelize = require_decamelize();
13506
- var path2 = __require("path");
13628
+ var path3 = __require("path");
13507
13629
  var tokenizeArgString = require_tokenize_arg_string();
13508
13630
  var util = __require("util");
13509
13631
  function parse(args, opts) {
@@ -13828,10 +13950,10 @@ var require_yargs_parser = __commonJS({
13828
13950
  var keys = [key2].concat(flags.aliases[key2] || []);
13829
13951
  keys.forEach(function(key3) {
13830
13952
  argv2.__defineSetter__(key3, function(v) {
13831
- val = path2.normalize(v);
13953
+ val = path3.normalize(v);
13832
13954
  });
13833
13955
  argv2.__defineGetter__(key3, function() {
13834
- return typeof val === "string" ? path2.normalize(val) : val;
13956
+ return typeof val === "string" ? path3.normalize(val) : val;
13835
13957
  });
13836
13958
  });
13837
13959
  }
@@ -13856,9 +13978,9 @@ var require_yargs_parser = __commonJS({
13856
13978
  }
13857
13979
  if (checkAllAliases(key2, flags.normalize) && checkAllAliases(key2, flags.arrays)) {
13858
13980
  if (Array.isArray(val))
13859
- value2 = val.map(path2.normalize);
13981
+ value2 = val.map(path3.normalize);
13860
13982
  else
13861
- value2 = path2.normalize(val);
13983
+ value2 = path3.normalize(val);
13862
13984
  }
13863
13985
  return value2;
13864
13986
  }
@@ -13878,7 +14000,7 @@ var require_yargs_parser = __commonJS({
13878
14000
  if (configPath) {
13879
14001
  try {
13880
14002
  var config = null;
13881
- var resolvedConfigPath = path2.resolve(process.cwd(), configPath);
14003
+ var resolvedConfigPath = path3.resolve(process.cwd(), configPath);
13882
14004
  if (typeof flags.configs[configKey] === "function") {
13883
14005
  try {
13884
14006
  config = flags.configs[configKey](resolvedConfigPath);
@@ -14182,6 +14304,7 @@ var require_yargs_parser = __commonJS({
14182
14304
  var require_require_directory = __commonJS({
14183
14305
  "../../node_modules/require-directory/index.js"(exports, module) {
14184
14306
  "use strict";
14307
+ init_cjs_shim();
14185
14308
  var fs2 = __require("fs");
14186
14309
  var join = __require("path").join;
14187
14310
  var resolve2 = __require("path").resolve;
@@ -14196,21 +14319,21 @@ var require_require_directory = __commonJS({
14196
14319
  return obj;
14197
14320
  }
14198
14321
  };
14199
- function checkFileInclusion(path2, filename, options) {
14322
+ function checkFileInclusion(path3, filename, options) {
14200
14323
  return (
14201
14324
  // verify file has valid extension
14202
14325
  new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
14203
- !(options.include && options.include instanceof RegExp && !options.include.test(path2)) && // if options.include is a function, evaluate it and make sure the path passes
14204
- !(options.include && typeof options.include === "function" && !options.include(path2, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
14205
- !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path2)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
14206
- !(options.exclude && typeof options.exclude === "function" && options.exclude(path2, filename))
14326
+ !(options.include && options.include instanceof RegExp && !options.include.test(path3)) && // if options.include is a function, evaluate it and make sure the path passes
14327
+ !(options.include && typeof options.include === "function" && !options.include(path3, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
14328
+ !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path3)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
14329
+ !(options.exclude && typeof options.exclude === "function" && options.exclude(path3, filename))
14207
14330
  );
14208
14331
  }
14209
- function requireDirectory(m, path2, options) {
14332
+ function requireDirectory(m, path3, options) {
14210
14333
  var retval = {};
14211
- if (path2 && !options && typeof path2 !== "string") {
14212
- options = path2;
14213
- path2 = null;
14334
+ if (path3 && !options && typeof path3 !== "string") {
14335
+ options = path3;
14336
+ path3 = null;
14214
14337
  }
14215
14338
  options = options || {};
14216
14339
  for (var prop in defaultOptions) {
@@ -14218,9 +14341,9 @@ var require_require_directory = __commonJS({
14218
14341
  options[prop] = defaultOptions[prop];
14219
14342
  }
14220
14343
  }
14221
- path2 = !path2 ? dirname(m.filename) : resolve2(dirname(m.filename), path2);
14222
- fs2.readdirSync(path2).forEach(function(filename) {
14223
- var joined = join(path2, filename), files, key, obj;
14344
+ path3 = !path3 ? dirname(m.filename) : resolve2(dirname(m.filename), path3);
14345
+ fs2.readdirSync(path3).forEach(function(filename) {
14346
+ var joined = join(path3, filename), files, key, obj;
14224
14347
  if (fs2.statSync(joined).isDirectory() && options.recurse) {
14225
14348
  files = requireDirectory(m, joined, options);
14226
14349
  if (Object.keys(files).length) {
@@ -14245,6 +14368,7 @@ var require_require_directory = __commonJS({
14245
14368
  var require_which_module = __commonJS({
14246
14369
  "../../node_modules/which-module/index.js"(exports, module) {
14247
14370
  "use strict";
14371
+ init_cjs_shim();
14248
14372
  module.exports = function whichModule(exported) {
14249
14373
  for (var i = 0, files = Object.keys(__require.cache), mod; i < files.length; i++) {
14250
14374
  mod = __require.cache[files[i]];
@@ -14260,8 +14384,9 @@ var require_which_module = __commonJS({
14260
14384
  var require_command = __commonJS({
14261
14385
  "../../node_modules/yargs/lib/command.js"(exports, module) {
14262
14386
  "use strict";
14387
+ init_cjs_shim();
14263
14388
  var inspect = __require("util").inspect;
14264
- var path2 = __require("path");
14389
+ var path3 = __require("path");
14265
14390
  var Parser = require_yargs_parser();
14266
14391
  var DEFAULT_MARKER = /(^\*)|(^\$0)/;
14267
14392
  module.exports = function command(yargs2, usage, validation, globalMiddleware) {
@@ -14352,7 +14477,7 @@ var require_command = __commonJS({
14352
14477
  return commandFromFilename(mod.filename);
14353
14478
  }
14354
14479
  function commandFromFilename(filename) {
14355
- return path2.basename(filename, path2.extname(filename));
14480
+ return path3.basename(filename, path3.extname(filename));
14356
14481
  }
14357
14482
  function extractDesc(obj) {
14358
14483
  for (let keys = ["describe", "description", "desc"], i = 0, l = keys.length, test; i < l; i++) {
@@ -14615,6 +14740,7 @@ var require_command = __commonJS({
14615
14740
  var require_yerror = __commonJS({
14616
14741
  "../../node_modules/yargs/lib/yerror.js"(exports, module) {
14617
14742
  "use strict";
14743
+ init_cjs_shim();
14618
14744
  function YError(msg) {
14619
14745
  this.name = "YError";
14620
14746
  this.message = msg || "yargs error";
@@ -14630,6 +14756,7 @@ var require_yerror = __commonJS({
14630
14756
  var require_argsert = __commonJS({
14631
14757
  "../../node_modules/yargs/lib/argsert.js"(exports, module) {
14632
14758
  "use strict";
14759
+ init_cjs_shim();
14633
14760
  var command = require_command()();
14634
14761
  var YError = require_yerror();
14635
14762
  var positionName = ["first", "second", "third", "fourth", "fifth", "sixth"];
@@ -14694,8 +14821,9 @@ var require_argsert = __commonJS({
14694
14821
  var require_completion = __commonJS({
14695
14822
  "../../node_modules/yargs/lib/completion.js"(exports, module) {
14696
14823
  "use strict";
14824
+ init_cjs_shim();
14697
14825
  var fs2 = __require("fs");
14698
- var path2 = __require("path");
14826
+ var path3 = __require("path");
14699
14827
  module.exports = function completion(yargs2, usage, command) {
14700
14828
  const self2 = {
14701
14829
  completionKey: "get-yargs-completions"
@@ -14758,10 +14886,10 @@ var require_completion = __commonJS({
14758
14886
  };
14759
14887
  self2.generateCompletionScript = function generateCompletionScript($0, cmd) {
14760
14888
  let script = fs2.readFileSync(
14761
- path2.resolve(__dirname, "../completion.sh.hbs"),
14889
+ path3.resolve(__dirname, "../completion.sh.hbs"),
14762
14890
  "utf-8"
14763
14891
  );
14764
- const name = path2.basename($0);
14892
+ const name = path3.basename($0);
14765
14893
  if ($0.match(/\.js$/))
14766
14894
  $0 = `./${$0}`;
14767
14895
  script = script.replace(/{{app_name}}/g, name);
@@ -14781,6 +14909,7 @@ var require_completion = __commonJS({
14781
14909
  var require_ansi_regex = __commonJS({
14782
14910
  "../../node_modules/string-width/node_modules/ansi-regex/index.js"(exports, module) {
14783
14911
  "use strict";
14912
+ init_cjs_shim();
14784
14913
  module.exports = () => {
14785
14914
  const pattern = [
14786
14915
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
@@ -14795,6 +14924,7 @@ var require_ansi_regex = __commonJS({
14795
14924
  var require_strip_ansi = __commonJS({
14796
14925
  "../../node_modules/string-width/node_modules/strip-ansi/index.js"(exports, module) {
14797
14926
  "use strict";
14927
+ init_cjs_shim();
14798
14928
  var ansiRegex = require_ansi_regex();
14799
14929
  module.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
14800
14930
  }
@@ -14804,6 +14934,7 @@ var require_strip_ansi = __commonJS({
14804
14934
  var require_is_fullwidth_code_point = __commonJS({
14805
14935
  "../../node_modules/is-fullwidth-code-point/index.js"(exports, module) {
14806
14936
  "use strict";
14937
+ init_cjs_shim();
14807
14938
  module.exports = (x) => {
14808
14939
  if (Number.isNaN(x)) {
14809
14940
  return false;
@@ -14835,6 +14966,7 @@ var require_is_fullwidth_code_point = __commonJS({
14835
14966
  var require_string_width = __commonJS({
14836
14967
  "../../node_modules/string-width/index.js"(exports, module) {
14837
14968
  "use strict";
14969
+ init_cjs_shim();
14838
14970
  var stripAnsi = require_strip_ansi();
14839
14971
  var isFullwidthCodePoint = require_is_fullwidth_code_point();
14840
14972
  module.exports = (str) => {
@@ -14865,6 +14997,7 @@ var require_string_width = __commonJS({
14865
14997
  var require_obj_filter = __commonJS({
14866
14998
  "../../node_modules/yargs/lib/obj-filter.js"(exports, module) {
14867
14999
  "use strict";
15000
+ init_cjs_shim();
14868
15001
  module.exports = function objFilter(original, filter) {
14869
15002
  const obj = {};
14870
15003
  filter = filter || ((k, v) => true);
@@ -14881,6 +15014,7 @@ var require_obj_filter = __commonJS({
14881
15014
  // ../../node_modules/set-blocking/index.js
14882
15015
  var require_set_blocking = __commonJS({
14883
15016
  "../../node_modules/set-blocking/index.js"(exports, module) {
15017
+ init_cjs_shim();
14884
15018
  module.exports = function(blocking) {
14885
15019
  [process.stdout, process.stderr].forEach(function(stream) {
14886
15020
  if (stream._handle && stream.isTTY && typeof stream._handle.setBlocking === "function") {
@@ -14895,6 +15029,7 @@ var require_set_blocking = __commonJS({
14895
15029
  var require_ansi_regex2 = __commonJS({
14896
15030
  "../../node_modules/cliui/node_modules/ansi-regex/index.js"(exports, module) {
14897
15031
  "use strict";
15032
+ init_cjs_shim();
14898
15033
  module.exports = () => {
14899
15034
  const pattern = [
14900
15035
  "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
@@ -14909,6 +15044,7 @@ var require_ansi_regex2 = __commonJS({
14909
15044
  var require_strip_ansi2 = __commonJS({
14910
15045
  "../../node_modules/cliui/node_modules/strip-ansi/index.js"(exports, module) {
14911
15046
  "use strict";
15047
+ init_cjs_shim();
14912
15048
  var ansiRegex = require_ansi_regex2();
14913
15049
  module.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
14914
15050
  }
@@ -14918,6 +15054,7 @@ var require_strip_ansi2 = __commonJS({
14918
15054
  var require_ansi_regex3 = __commonJS({
14919
15055
  "../../node_modules/cliui/node_modules/wrap-ansi/node_modules/ansi-regex/index.js"(exports, module) {
14920
15056
  "use strict";
15057
+ init_cjs_shim();
14921
15058
  module.exports = function() {
14922
15059
  return /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g;
14923
15060
  };
@@ -14928,6 +15065,7 @@ var require_ansi_regex3 = __commonJS({
14928
15065
  var require_strip_ansi3 = __commonJS({
14929
15066
  "../../node_modules/cliui/node_modules/wrap-ansi/node_modules/strip-ansi/index.js"(exports, module) {
14930
15067
  "use strict";
15068
+ init_cjs_shim();
14931
15069
  var ansiRegex = require_ansi_regex3()();
14932
15070
  module.exports = function(str) {
14933
15071
  return typeof str === "string" ? str.replace(ansiRegex, "") : str;
@@ -14939,6 +15077,7 @@ var require_strip_ansi3 = __commonJS({
14939
15077
  var require_code_point_at = __commonJS({
14940
15078
  "../../node_modules/code-point-at/index.js"(exports, module) {
14941
15079
  "use strict";
15080
+ init_cjs_shim();
14942
15081
  module.exports = function(str, pos) {
14943
15082
  if (str === null || str === void 0) {
14944
15083
  throw TypeError();
@@ -14968,6 +15107,7 @@ var require_code_point_at = __commonJS({
14968
15107
  var require_number_is_nan = __commonJS({
14969
15108
  "../../node_modules/number-is-nan/index.js"(exports, module) {
14970
15109
  "use strict";
15110
+ init_cjs_shim();
14971
15111
  module.exports = Number.isNaN || function(x) {
14972
15112
  return x !== x;
14973
15113
  };
@@ -14978,6 +15118,7 @@ var require_number_is_nan = __commonJS({
14978
15118
  var require_is_fullwidth_code_point2 = __commonJS({
14979
15119
  "../../node_modules/cliui/node_modules/is-fullwidth-code-point/index.js"(exports, module) {
14980
15120
  "use strict";
15121
+ init_cjs_shim();
14981
15122
  var numberIsNan = require_number_is_nan();
14982
15123
  module.exports = function(x) {
14983
15124
  if (numberIsNan(x)) {
@@ -15010,6 +15151,7 @@ var require_is_fullwidth_code_point2 = __commonJS({
15010
15151
  var require_string_width2 = __commonJS({
15011
15152
  "../../node_modules/cliui/node_modules/wrap-ansi/node_modules/string-width/index.js"(exports, module) {
15012
15153
  "use strict";
15154
+ init_cjs_shim();
15013
15155
  var stripAnsi = require_strip_ansi3();
15014
15156
  var codePointAt = require_code_point_at();
15015
15157
  var isFullwidthCodePoint = require_is_fullwidth_code_point2();
@@ -15042,6 +15184,7 @@ var require_string_width2 = __commonJS({
15042
15184
  var require_wrap_ansi = __commonJS({
15043
15185
  "../../node_modules/cliui/node_modules/wrap-ansi/index.js"(exports, module) {
15044
15186
  "use strict";
15187
+ init_cjs_shim();
15045
15188
  var stringWidth = require_string_width2();
15046
15189
  var stripAnsi = require_strip_ansi3();
15047
15190
  var ESCAPES = [
@@ -15170,6 +15313,7 @@ var require_wrap_ansi = __commonJS({
15170
15313
  // ../../node_modules/cliui/index.js
15171
15314
  var require_cliui = __commonJS({
15172
15315
  "../../node_modules/cliui/index.js"(exports, module) {
15316
+ init_cjs_shim();
15173
15317
  var stringWidth = require_string_width();
15174
15318
  var stripAnsi = require_strip_ansi2();
15175
15319
  var wrap = require_wrap_ansi();
@@ -15440,9 +15584,10 @@ var require_cliui = __commonJS({
15440
15584
  var require_usage = __commonJS({
15441
15585
  "../../node_modules/yargs/lib/usage.js"(exports, module) {
15442
15586
  "use strict";
15587
+ init_cjs_shim();
15443
15588
  var stringWidth = require_string_width();
15444
15589
  var objFilter = require_obj_filter();
15445
- var path2 = __require("path");
15590
+ var path3 = __require("path");
15446
15591
  var setBlocking = require_set_blocking();
15447
15592
  var YError = require_yerror();
15448
15593
  module.exports = function usage(yargs2, y18n) {
@@ -15568,7 +15713,7 @@ var require_usage = __commonJS({
15568
15713
  const defaultGroup = "Options:";
15569
15714
  self2.help = function help() {
15570
15715
  normalizeAliases();
15571
- const base$0 = path2.basename(yargs2.$0);
15716
+ const base$0 = path3.basename(yargs2.$0);
15572
15717
  const demandedOptions = yargs2.getDemandedOptions();
15573
15718
  const demandedCommands = yargs2.getDemandedCommands();
15574
15719
  const groups = yargs2.getGroups();
@@ -15896,6 +16041,7 @@ var require_usage = __commonJS({
15896
16041
  var require_levenshtein = __commonJS({
15897
16042
  "../../node_modules/yargs/lib/levenshtein.js"(exports, module) {
15898
16043
  "use strict";
16044
+ init_cjs_shim();
15899
16045
  module.exports = function levenshtein(a, b) {
15900
16046
  if (a.length === 0)
15901
16047
  return b.length;
@@ -15936,6 +16082,7 @@ var require_levenshtein = __commonJS({
15936
16082
  var require_validation = __commonJS({
15937
16083
  "../../node_modules/yargs/lib/validation.js"(exports, module) {
15938
16084
  "use strict";
16085
+ init_cjs_shim();
15939
16086
  var argsert = require_argsert();
15940
16087
  var objFilter = require_obj_filter();
15941
16088
  var specialKeys = ["$0", "--", "_"];
@@ -16222,8 +16369,9 @@ ${customMsgs.join("\n")}` : "";
16222
16369
  // ../../node_modules/y18n/index.js
16223
16370
  var require_y18n = __commonJS({
16224
16371
  "../../node_modules/y18n/index.js"(exports, module) {
16372
+ init_cjs_shim();
16225
16373
  var fs2 = __require("fs");
16226
- var path2 = __require("path");
16374
+ var path3 = __require("path");
16227
16375
  var util = __require("util");
16228
16376
  function Y18N(opts) {
16229
16377
  opts = opts || {};
@@ -16305,9 +16453,9 @@ var require_y18n = __commonJS({
16305
16453
  this.cache[this.locale] = localeLookup;
16306
16454
  };
16307
16455
  Y18N.prototype._resolveLocaleFile = function(directory, locale) {
16308
- var file = path2.resolve(directory, "./", locale + ".json");
16456
+ var file = path3.resolve(directory, "./", locale + ".json");
16309
16457
  if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf("_")) {
16310
- var languageFile = path2.resolve(directory, "./", locale.split("_")[0] + ".json");
16458
+ var languageFile = path3.resolve(directory, "./", locale.split("_")[0] + ".json");
16311
16459
  if (this._fileExistsSync(languageFile))
16312
16460
  file = languageFile;
16313
16461
  }
@@ -16378,8 +16526,9 @@ var require_y18n = __commonJS({
16378
16526
  var require_apply_extends = __commonJS({
16379
16527
  "../../node_modules/yargs/lib/apply-extends.js"(exports, module) {
16380
16528
  "use strict";
16529
+ init_cjs_shim();
16381
16530
  var fs2 = __require("fs");
16382
- var path2 = __require("path");
16531
+ var path3 = __require("path");
16383
16532
  var YError = require_yerror();
16384
16533
  var previouslyVisitedConfigs = [];
16385
16534
  function checkForCircularExtends(cfgPath) {
@@ -16388,7 +16537,7 @@ var require_apply_extends = __commonJS({
16388
16537
  }
16389
16538
  }
16390
16539
  function getPathToDefaultConfig(cwd2, pathToExtend) {
16391
- return path2.resolve(cwd2, pathToExtend);
16540
+ return path3.resolve(cwd2, pathToExtend);
16392
16541
  }
16393
16542
  function applyExtends(config, cwd2) {
16394
16543
  let defaultConfig = {};
@@ -16411,7 +16560,7 @@ var require_apply_extends = __commonJS({
16411
16560
  previouslyVisitedConfigs.push(pathToDefault);
16412
16561
  defaultConfig = isPath ? JSON.parse(fs2.readFileSync(pathToDefault, "utf8")) : __require(config.extends);
16413
16562
  delete config.extends;
16414
- defaultConfig = applyExtends(defaultConfig, path2.dirname(pathToDefault));
16563
+ defaultConfig = applyExtends(defaultConfig, path3.dirname(pathToDefault));
16415
16564
  }
16416
16565
  previouslyVisitedConfigs = [];
16417
16566
  return Object.assign({}, defaultConfig, config);
@@ -16423,6 +16572,7 @@ var require_apply_extends = __commonJS({
16423
16572
  // ../../node_modules/yargs/lib/middleware.js
16424
16573
  var require_middleware = __commonJS({
16425
16574
  "../../node_modules/yargs/lib/middleware.js"(exports, module) {
16575
+ init_cjs_shim();
16426
16576
  module.exports = function(globalMiddleware, context) {
16427
16577
  return function(callback) {
16428
16578
  if (Array.isArray(callback)) {
@@ -16440,6 +16590,7 @@ var require_middleware = __commonJS({
16440
16590
  var require_get_caller_file = __commonJS({
16441
16591
  "../../node_modules/yargs/node_modules/get-caller-file/index.js"(exports, module) {
16442
16592
  "use strict";
16593
+ init_cjs_shim();
16443
16594
  module.exports = function getCallerFile(_position) {
16444
16595
  var oldPrepareStackTrace = Error.prepareStackTrace;
16445
16596
  Error.prepareStackTrace = function(err, stack2) {
@@ -16457,6 +16608,7 @@ var require_get_caller_file = __commonJS({
16457
16608
  var require_path_exists = __commonJS({
16458
16609
  "../../node_modules/path-exists/index.js"(exports, module) {
16459
16610
  "use strict";
16611
+ init_cjs_shim();
16460
16612
  var fs2 = __require("fs");
16461
16613
  module.exports = (fp) => new Promise((resolve2) => {
16462
16614
  fs2.access(fp, (err) => {
@@ -16478,6 +16630,7 @@ var require_path_exists = __commonJS({
16478
16630
  var require_p_try = __commonJS({
16479
16631
  "../../node_modules/p-try/index.js"(exports, module) {
16480
16632
  "use strict";
16633
+ init_cjs_shim();
16481
16634
  var pTry = (fn, ...arguments_) => new Promise((resolve2) => {
16482
16635
  resolve2(fn(...arguments_));
16483
16636
  });
@@ -16490,6 +16643,7 @@ var require_p_try = __commonJS({
16490
16643
  var require_p_limit = __commonJS({
16491
16644
  "../../node_modules/p-limit/index.js"(exports, module) {
16492
16645
  "use strict";
16646
+ init_cjs_shim();
16493
16647
  var pTry = require_p_try();
16494
16648
  var pLimit = (concurrency) => {
16495
16649
  if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
@@ -16541,6 +16695,7 @@ var require_p_limit = __commonJS({
16541
16695
  var require_p_locate = __commonJS({
16542
16696
  "../../node_modules/yargs/node_modules/p-locate/index.js"(exports, module) {
16543
16697
  "use strict";
16698
+ init_cjs_shim();
16544
16699
  var pLimit = require_p_limit();
16545
16700
  var EndError = class extends Error {
16546
16701
  constructor(value) {
@@ -16568,21 +16723,22 @@ var require_p_locate = __commonJS({
16568
16723
  var require_locate_path = __commonJS({
16569
16724
  "../../node_modules/yargs/node_modules/locate-path/index.js"(exports, module) {
16570
16725
  "use strict";
16571
- var path2 = __require("path");
16726
+ init_cjs_shim();
16727
+ var path3 = __require("path");
16572
16728
  var pathExists = require_path_exists();
16573
16729
  var pLocate = require_p_locate();
16574
16730
  module.exports = (iterable, options) => {
16575
16731
  options = Object.assign({
16576
16732
  cwd: process.cwd()
16577
16733
  }, options);
16578
- return pLocate(iterable, (el) => pathExists(path2.resolve(options.cwd, el)), options);
16734
+ return pLocate(iterable, (el) => pathExists(path3.resolve(options.cwd, el)), options);
16579
16735
  };
16580
16736
  module.exports.sync = (iterable, options) => {
16581
16737
  options = Object.assign({
16582
16738
  cwd: process.cwd()
16583
16739
  }, options);
16584
16740
  for (const el of iterable) {
16585
- if (pathExists.sync(path2.resolve(options.cwd, el))) {
16741
+ if (pathExists.sync(path3.resolve(options.cwd, el))) {
16586
16742
  return el;
16587
16743
  }
16588
16744
  }
@@ -16594,39 +16750,40 @@ var require_locate_path = __commonJS({
16594
16750
  var require_find_up = __commonJS({
16595
16751
  "../../node_modules/yargs/node_modules/find-up/index.js"(exports, module) {
16596
16752
  "use strict";
16597
- var path2 = __require("path");
16753
+ init_cjs_shim();
16754
+ var path3 = __require("path");
16598
16755
  var locatePath = require_locate_path();
16599
16756
  module.exports = (filename, opts = {}) => {
16600
- const startDir = path2.resolve(opts.cwd || "");
16601
- const { root } = path2.parse(startDir);
16757
+ const startDir = path3.resolve(opts.cwd || "");
16758
+ const { root } = path3.parse(startDir);
16602
16759
  const filenames = [].concat(filename);
16603
16760
  return new Promise((resolve2) => {
16604
16761
  (function find(dir) {
16605
16762
  locatePath(filenames, { cwd: dir }).then((file) => {
16606
16763
  if (file) {
16607
- resolve2(path2.join(dir, file));
16764
+ resolve2(path3.join(dir, file));
16608
16765
  } else if (dir === root) {
16609
16766
  resolve2(null);
16610
16767
  } else {
16611
- find(path2.dirname(dir));
16768
+ find(path3.dirname(dir));
16612
16769
  }
16613
16770
  });
16614
16771
  })(startDir);
16615
16772
  });
16616
16773
  };
16617
16774
  module.exports.sync = (filename, opts = {}) => {
16618
- let dir = path2.resolve(opts.cwd || "");
16619
- const { root } = path2.parse(dir);
16775
+ let dir = path3.resolve(opts.cwd || "");
16776
+ const { root } = path3.parse(dir);
16620
16777
  const filenames = [].concat(filename);
16621
16778
  while (true) {
16622
16779
  const file = locatePath.sync(filenames, { cwd: dir });
16623
16780
  if (file) {
16624
- return path2.join(dir, file);
16781
+ return path3.join(dir, file);
16625
16782
  }
16626
16783
  if (dir === root) {
16627
16784
  return null;
16628
16785
  }
16629
- dir = path2.dirname(dir);
16786
+ dir = path3.dirname(dir);
16630
16787
  }
16631
16788
  };
16632
16789
  }
@@ -16635,6 +16792,7 @@ var require_find_up = __commonJS({
16635
16792
  // ../../node_modules/require-main-filename/index.js
16636
16793
  var require_require_main_filename = __commonJS({
16637
16794
  "../../node_modules/require-main-filename/index.js"(exports, module) {
16795
+ init_cjs_shim();
16638
16796
  module.exports = function(_require) {
16639
16797
  _require = _require || __require;
16640
16798
  var main = _require.main;
@@ -16660,6 +16818,7 @@ var require_require_main_filename = __commonJS({
16660
16818
  var require_src = __commonJS({
16661
16819
  "../../node_modules/nice-try/src/index.js"(exports, module) {
16662
16820
  "use strict";
16821
+ init_cjs_shim();
16663
16822
  module.exports = function(fn) {
16664
16823
  try {
16665
16824
  return fn();
@@ -16672,10 +16831,11 @@ var require_src = __commonJS({
16672
16831
  // ../../node_modules/isexe/windows.js
16673
16832
  var require_windows = __commonJS({
16674
16833
  "../../node_modules/isexe/windows.js"(exports, module) {
16834
+ init_cjs_shim();
16675
16835
  module.exports = isexe;
16676
16836
  isexe.sync = sync;
16677
16837
  var fs2 = __require("fs");
16678
- function checkPathExt(path2, options) {
16838
+ function checkPathExt(path3, options) {
16679
16839
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
16680
16840
  if (!pathext) {
16681
16841
  return true;
@@ -16686,25 +16846,25 @@ var require_windows = __commonJS({
16686
16846
  }
16687
16847
  for (var i = 0; i < pathext.length; i++) {
16688
16848
  var p = pathext[i].toLowerCase();
16689
- if (p && path2.substr(-p.length).toLowerCase() === p) {
16849
+ if (p && path3.substr(-p.length).toLowerCase() === p) {
16690
16850
  return true;
16691
16851
  }
16692
16852
  }
16693
16853
  return false;
16694
16854
  }
16695
- function checkStat(stat, path2, options) {
16855
+ function checkStat(stat, path3, options) {
16696
16856
  if (!stat.isSymbolicLink() && !stat.isFile()) {
16697
16857
  return false;
16698
16858
  }
16699
- return checkPathExt(path2, options);
16859
+ return checkPathExt(path3, options);
16700
16860
  }
16701
- function isexe(path2, options, cb) {
16702
- fs2.stat(path2, function(er, stat) {
16703
- cb(er, er ? false : checkStat(stat, path2, options));
16861
+ function isexe(path3, options, cb) {
16862
+ fs2.stat(path3, function(er, stat) {
16863
+ cb(er, er ? false : checkStat(stat, path3, options));
16704
16864
  });
16705
16865
  }
16706
- function sync(path2, options) {
16707
- return checkStat(fs2.statSync(path2), path2, options);
16866
+ function sync(path3, options) {
16867
+ return checkStat(fs2.statSync(path3), path3, options);
16708
16868
  }
16709
16869
  }
16710
16870
  });
@@ -16712,16 +16872,17 @@ var require_windows = __commonJS({
16712
16872
  // ../../node_modules/isexe/mode.js
16713
16873
  var require_mode = __commonJS({
16714
16874
  "../../node_modules/isexe/mode.js"(exports, module) {
16875
+ init_cjs_shim();
16715
16876
  module.exports = isexe;
16716
16877
  isexe.sync = sync;
16717
16878
  var fs2 = __require("fs");
16718
- function isexe(path2, options, cb) {
16719
- fs2.stat(path2, function(er, stat) {
16879
+ function isexe(path3, options, cb) {
16880
+ fs2.stat(path3, function(er, stat) {
16720
16881
  cb(er, er ? false : checkStat(stat, options));
16721
16882
  });
16722
16883
  }
16723
- function sync(path2, options) {
16724
- return checkStat(fs2.statSync(path2), options);
16884
+ function sync(path3, options) {
16885
+ return checkStat(fs2.statSync(path3), options);
16725
16886
  }
16726
16887
  function checkStat(stat, options) {
16727
16888
  return stat.isFile() && checkMode(stat, options);
@@ -16745,6 +16906,7 @@ var require_mode = __commonJS({
16745
16906
  // ../../node_modules/isexe/index.js
16746
16907
  var require_isexe = __commonJS({
16747
16908
  "../../node_modules/isexe/index.js"(exports, module) {
16909
+ init_cjs_shim();
16748
16910
  var fs2 = __require("fs");
16749
16911
  var core;
16750
16912
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -16754,7 +16916,7 @@ var require_isexe = __commonJS({
16754
16916
  }
16755
16917
  module.exports = isexe;
16756
16918
  isexe.sync = sync;
16757
- function isexe(path2, options, cb) {
16919
+ function isexe(path3, options, cb) {
16758
16920
  if (typeof options === "function") {
16759
16921
  cb = options;
16760
16922
  options = {};
@@ -16764,7 +16926,7 @@ var require_isexe = __commonJS({
16764
16926
  throw new TypeError("callback not provided");
16765
16927
  }
16766
16928
  return new Promise(function(resolve2, reject) {
16767
- isexe(path2, options || {}, function(er, is) {
16929
+ isexe(path3, options || {}, function(er, is) {
16768
16930
  if (er) {
16769
16931
  reject(er);
16770
16932
  } else {
@@ -16773,7 +16935,7 @@ var require_isexe = __commonJS({
16773
16935
  });
16774
16936
  });
16775
16937
  }
16776
- core(path2, options || {}, function(er, is) {
16938
+ core(path3, options || {}, function(er, is) {
16777
16939
  if (er) {
16778
16940
  if (er.code === "EACCES" || options && options.ignoreErrors) {
16779
16941
  er = null;
@@ -16783,9 +16945,9 @@ var require_isexe = __commonJS({
16783
16945
  cb(er, is);
16784
16946
  });
16785
16947
  }
16786
- function sync(path2, options) {
16948
+ function sync(path3, options) {
16787
16949
  try {
16788
- return core.sync(path2, options || {});
16950
+ return core.sync(path3, options || {});
16789
16951
  } catch (er) {
16790
16952
  if (options && options.ignoreErrors || er.code === "EACCES") {
16791
16953
  return false;
@@ -16800,10 +16962,11 @@ var require_isexe = __commonJS({
16800
16962
  // ../../node_modules/which/which.js
16801
16963
  var require_which = __commonJS({
16802
16964
  "../../node_modules/which/which.js"(exports, module) {
16965
+ init_cjs_shim();
16803
16966
  module.exports = which;
16804
16967
  which.sync = whichSync;
16805
16968
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
16806
- var path2 = __require("path");
16969
+ var path3 = __require("path");
16807
16970
  var COLON = isWindows ? ";" : ":";
16808
16971
  var isexe = require_isexe();
16809
16972
  function getNotFoundError(cmd) {
@@ -16852,7 +17015,7 @@ var require_which = __commonJS({
16852
17015
  var pathPart = pathEnv[i];
16853
17016
  if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
16854
17017
  pathPart = pathPart.slice(1, -1);
16855
- var p = path2.join(pathPart, cmd);
17018
+ var p = path3.join(pathPart, cmd);
16856
17019
  if (!pathPart && /^\.[\\\/]/.test(cmd)) {
16857
17020
  p = cmd.slice(0, 2) + p;
16858
17021
  }
@@ -16884,7 +17047,7 @@ var require_which = __commonJS({
16884
17047
  var pathPart = pathEnv[i];
16885
17048
  if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"')
16886
17049
  pathPart = pathPart.slice(1, -1);
16887
- var p = path2.join(pathPart, cmd);
17050
+ var p = path3.join(pathPart, cmd);
16888
17051
  if (!pathPart && /^\.[\\\/]/.test(cmd)) {
16889
17052
  p = cmd.slice(0, 2) + p;
16890
17053
  }
@@ -16916,6 +17079,7 @@ var require_which = __commonJS({
16916
17079
  var require_path_key = __commonJS({
16917
17080
  "../../node_modules/execa/node_modules/path-key/index.js"(exports, module) {
16918
17081
  "use strict";
17082
+ init_cjs_shim();
16919
17083
  module.exports = (opts) => {
16920
17084
  opts = opts || {};
16921
17085
  const env = opts.env || process.env;
@@ -16932,7 +17096,8 @@ var require_path_key = __commonJS({
16932
17096
  var require_resolveCommand = __commonJS({
16933
17097
  "../../node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
16934
17098
  "use strict";
16935
- var path2 = __require("path");
17099
+ init_cjs_shim();
17100
+ var path3 = __require("path");
16936
17101
  var which = require_which();
16937
17102
  var pathKey = require_path_key()();
16938
17103
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -16948,14 +17113,14 @@ var require_resolveCommand = __commonJS({
16948
17113
  try {
16949
17114
  resolved = which.sync(parsed.command, {
16950
17115
  path: (parsed.options.env || process.env)[pathKey],
16951
- pathExt: withoutPathExt ? path2.delimiter : void 0
17116
+ pathExt: withoutPathExt ? path3.delimiter : void 0
16952
17117
  });
16953
17118
  } catch (e) {
16954
17119
  } finally {
16955
17120
  process.chdir(cwd2);
16956
17121
  }
16957
17122
  if (resolved) {
16958
- resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
17123
+ resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
16959
17124
  }
16960
17125
  return resolved;
16961
17126
  }
@@ -16970,6 +17135,7 @@ var require_resolveCommand = __commonJS({
16970
17135
  var require_escape = __commonJS({
16971
17136
  "../../node_modules/execa/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
16972
17137
  "use strict";
17138
+ init_cjs_shim();
16973
17139
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
16974
17140
  function escapeCommand(arg) {
16975
17141
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -16995,6 +17161,7 @@ var require_escape = __commonJS({
16995
17161
  var require_shebang_regex = __commonJS({
16996
17162
  "../../node_modules/shebang-regex/index.js"(exports, module) {
16997
17163
  "use strict";
17164
+ init_cjs_shim();
16998
17165
  module.exports = /^#!.*/;
16999
17166
  }
17000
17167
  });
@@ -17003,6 +17170,7 @@ var require_shebang_regex = __commonJS({
17003
17170
  var require_shebang_command = __commonJS({
17004
17171
  "../../node_modules/shebang-command/index.js"(exports, module) {
17005
17172
  "use strict";
17173
+ init_cjs_shim();
17006
17174
  var shebangRegex = require_shebang_regex();
17007
17175
  module.exports = function(str) {
17008
17176
  var match = str.match(shebangRegex);
@@ -17021,6 +17189,7 @@ var require_shebang_command = __commonJS({
17021
17189
  var require_readShebang = __commonJS({
17022
17190
  "../../node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
17023
17191
  "use strict";
17192
+ init_cjs_shim();
17024
17193
  var fs2 = __require("fs");
17025
17194
  var shebangCommand = require_shebang_command();
17026
17195
  function readShebang(command) {
@@ -17048,6 +17217,7 @@ var require_readShebang = __commonJS({
17048
17217
  // ../../node_modules/execa/node_modules/semver/semver.js
17049
17218
  var require_semver3 = __commonJS({
17050
17219
  "../../node_modules/execa/node_modules/semver/semver.js"(exports, module) {
17220
+ init_cjs_shim();
17051
17221
  exports = module.exports = SemVer;
17052
17222
  var debug;
17053
17223
  if (typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG)) {
@@ -18099,7 +18269,8 @@ var require_semver3 = __commonJS({
18099
18269
  var require_parse2 = __commonJS({
18100
18270
  "../../node_modules/execa/node_modules/cross-spawn/lib/parse.js"(exports, module) {
18101
18271
  "use strict";
18102
- var path2 = __require("path");
18272
+ init_cjs_shim();
18273
+ var path3 = __require("path");
18103
18274
  var niceTry = require_src();
18104
18275
  var resolveCommand = require_resolveCommand();
18105
18276
  var escape2 = require_escape();
@@ -18127,7 +18298,7 @@ var require_parse2 = __commonJS({
18127
18298
  const needsShell = !isExecutableRegExp.test(commandFile);
18128
18299
  if (parsed.options.forceShell || needsShell) {
18129
18300
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
18130
- parsed.command = path2.normalize(parsed.command);
18301
+ parsed.command = path3.normalize(parsed.command);
18131
18302
  parsed.command = escape2.command(parsed.command);
18132
18303
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
18133
18304
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -18185,6 +18356,7 @@ var require_parse2 = __commonJS({
18185
18356
  var require_enoent = __commonJS({
18186
18357
  "../../node_modules/execa/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
18187
18358
  "use strict";
18359
+ init_cjs_shim();
18188
18360
  var isWin = process.platform === "win32";
18189
18361
  function notFoundError(original, syscall) {
18190
18362
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -18235,6 +18407,7 @@ var require_enoent = __commonJS({
18235
18407
  var require_cross_spawn = __commonJS({
18236
18408
  "../../node_modules/execa/node_modules/cross-spawn/index.js"(exports, module) {
18237
18409
  "use strict";
18410
+ init_cjs_shim();
18238
18411
  var cp = __require("child_process");
18239
18412
  var parse = require_parse2();
18240
18413
  var enoent = require_enoent();
@@ -18262,6 +18435,7 @@ var require_cross_spawn = __commonJS({
18262
18435
  var require_strip_eof = __commonJS({
18263
18436
  "../../node_modules/strip-eof/index.js"(exports, module) {
18264
18437
  "use strict";
18438
+ init_cjs_shim();
18265
18439
  module.exports = function(x) {
18266
18440
  var lf = typeof x === "string" ? "\n" : "\n".charCodeAt();
18267
18441
  var cr = typeof x === "string" ? "\r" : "\r".charCodeAt();
@@ -18280,6 +18454,7 @@ var require_strip_eof = __commonJS({
18280
18454
  var require_path_key2 = __commonJS({
18281
18455
  "../../node_modules/npm-run-path/node_modules/path-key/index.js"(exports, module) {
18282
18456
  "use strict";
18457
+ init_cjs_shim();
18283
18458
  module.exports = (opts) => {
18284
18459
  opts = opts || {};
18285
18460
  const env = opts.env || process.env;
@@ -18296,7 +18471,8 @@ var require_path_key2 = __commonJS({
18296
18471
  var require_npm_run_path = __commonJS({
18297
18472
  "../../node_modules/npm-run-path/index.js"(exports, module) {
18298
18473
  "use strict";
18299
- var path2 = __require("path");
18474
+ init_cjs_shim();
18475
+ var path3 = __require("path");
18300
18476
  var pathKey = require_path_key2();
18301
18477
  module.exports = (opts) => {
18302
18478
  opts = Object.assign({
@@ -18304,24 +18480,24 @@ var require_npm_run_path = __commonJS({
18304
18480
  path: process.env[pathKey()]
18305
18481
  }, opts);
18306
18482
  let prev;
18307
- let pth = path2.resolve(opts.cwd);
18483
+ let pth = path3.resolve(opts.cwd);
18308
18484
  const ret = [];
18309
18485
  while (prev !== pth) {
18310
- ret.push(path2.join(pth, "node_modules/.bin"));
18486
+ ret.push(path3.join(pth, "node_modules/.bin"));
18311
18487
  prev = pth;
18312
- pth = path2.resolve(pth, "..");
18488
+ pth = path3.resolve(pth, "..");
18313
18489
  }
18314
- ret.push(path2.dirname(process.execPath));
18315
- return ret.concat(opts.path).join(path2.delimiter);
18490
+ ret.push(path3.dirname(process.execPath));
18491
+ return ret.concat(opts.path).join(path3.delimiter);
18316
18492
  };
18317
18493
  module.exports.env = (opts) => {
18318
18494
  opts = Object.assign({
18319
18495
  env: process.env
18320
18496
  }, opts);
18321
18497
  const env = Object.assign({}, opts.env);
18322
- const path3 = pathKey({ env });
18323
- opts.path = env[path3];
18324
- env[path3] = module.exports(opts);
18498
+ const path4 = pathKey({ env });
18499
+ opts.path = env[path4];
18500
+ env[path4] = module.exports(opts);
18325
18501
  return env;
18326
18502
  };
18327
18503
  }
@@ -18331,6 +18507,7 @@ var require_npm_run_path = __commonJS({
18331
18507
  var require_is_stream = __commonJS({
18332
18508
  "../../node_modules/is-stream/index.js"(exports, module) {
18333
18509
  "use strict";
18510
+ init_cjs_shim();
18334
18511
  var isStream = module.exports = function(stream) {
18335
18512
  return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
18336
18513
  };
@@ -18352,6 +18529,7 @@ var require_is_stream = __commonJS({
18352
18529
  // ../../node_modules/wrappy/wrappy.js
18353
18530
  var require_wrappy = __commonJS({
18354
18531
  "../../node_modules/wrappy/wrappy.js"(exports, module) {
18532
+ init_cjs_shim();
18355
18533
  module.exports = wrappy;
18356
18534
  function wrappy(fn, cb) {
18357
18535
  if (fn && cb)
@@ -18383,6 +18561,7 @@ var require_wrappy = __commonJS({
18383
18561
  // ../../node_modules/once/once.js
18384
18562
  var require_once = __commonJS({
18385
18563
  "../../node_modules/once/once.js"(exports, module) {
18564
+ init_cjs_shim();
18386
18565
  var wrappy = require_wrappy();
18387
18566
  module.exports = wrappy(once);
18388
18567
  module.exports.strict = wrappy(onceStrict);
@@ -18428,6 +18607,7 @@ var require_once = __commonJS({
18428
18607
  // ../../node_modules/end-of-stream/index.js
18429
18608
  var require_end_of_stream = __commonJS({
18430
18609
  "../../node_modules/end-of-stream/index.js"(exports, module) {
18610
+ init_cjs_shim();
18431
18611
  var once = require_once();
18432
18612
  var noop = function() {
18433
18613
  };
@@ -18523,6 +18703,7 @@ var require_end_of_stream = __commonJS({
18523
18703
  // ../../node_modules/pump/index.js
18524
18704
  var require_pump = __commonJS({
18525
18705
  "../../node_modules/pump/index.js"(exports, module) {
18706
+ init_cjs_shim();
18526
18707
  var once = require_once();
18527
18708
  var eos = require_end_of_stream();
18528
18709
  var fs2 = __require("fs");
@@ -18608,6 +18789,7 @@ var require_pump = __commonJS({
18608
18789
  var require_buffer_stream = __commonJS({
18609
18790
  "../../node_modules/get-stream/buffer-stream.js"(exports, module) {
18610
18791
  "use strict";
18792
+ init_cjs_shim();
18611
18793
  var { PassThrough } = __require("stream");
18612
18794
  module.exports = (options) => {
18613
18795
  options = Object.assign({}, options);
@@ -18653,6 +18835,7 @@ var require_buffer_stream = __commonJS({
18653
18835
  var require_get_stream = __commonJS({
18654
18836
  "../../node_modules/get-stream/index.js"(exports, module) {
18655
18837
  "use strict";
18838
+ init_cjs_shim();
18656
18839
  var pump = require_pump();
18657
18840
  var bufferStream = require_buffer_stream();
18658
18841
  var MaxBufferError = class extends Error {
@@ -18700,6 +18883,7 @@ var require_get_stream = __commonJS({
18700
18883
  var require_p_finally = __commonJS({
18701
18884
  "../../node_modules/p-finally/index.js"(exports, module) {
18702
18885
  "use strict";
18886
+ init_cjs_shim();
18703
18887
  module.exports = (promise, onFinally) => {
18704
18888
  onFinally = onFinally || (() => {
18705
18889
  });
@@ -18720,6 +18904,7 @@ var require_p_finally = __commonJS({
18720
18904
  // ../../node_modules/signal-exit/signals.js
18721
18905
  var require_signals = __commonJS({
18722
18906
  "../../node_modules/signal-exit/signals.js"(exports, module) {
18907
+ init_cjs_shim();
18723
18908
  module.exports = [
18724
18909
  "SIGABRT",
18725
18910
  "SIGALRM",
@@ -18757,6 +18942,7 @@ var require_signals = __commonJS({
18757
18942
  // ../../node_modules/signal-exit/index.js
18758
18943
  var require_signal_exit = __commonJS({
18759
18944
  "../../node_modules/signal-exit/index.js"(exports, module) {
18945
+ init_cjs_shim();
18760
18946
  var assert = __require("assert");
18761
18947
  var signals = require_signals();
18762
18948
  var isWin = /^win/i.test(process.platform);
@@ -18882,6 +19068,7 @@ var require_signal_exit = __commonJS({
18882
19068
  var require_errname = __commonJS({
18883
19069
  "../../node_modules/execa/lib/errname.js"(exports, module) {
18884
19070
  "use strict";
19071
+ init_cjs_shim();
18885
19072
  var util = __require("util");
18886
19073
  var uv;
18887
19074
  if (typeof util.getSystemErrorName === "function") {
@@ -18915,6 +19102,7 @@ var require_errname = __commonJS({
18915
19102
  var require_stdio = __commonJS({
18916
19103
  "../../node_modules/execa/lib/stdio.js"(exports, module) {
18917
19104
  "use strict";
19105
+ init_cjs_shim();
18918
19106
  var alias = ["stdin", "stdout", "stderr"];
18919
19107
  var hasAlias = (opts) => alias.some((x) => Boolean(opts[x]));
18920
19108
  module.exports = (opts) => {
@@ -18951,7 +19139,8 @@ var require_stdio = __commonJS({
18951
19139
  var require_execa = __commonJS({
18952
19140
  "../../node_modules/execa/index.js"(exports, module) {
18953
19141
  "use strict";
18954
- var path2 = __require("path");
19142
+ init_cjs_shim();
19143
+ var path3 = __require("path");
18955
19144
  var childProcess = __require("child_process");
18956
19145
  var crossSpawn = require_cross_spawn();
18957
19146
  var stripEof = require_strip_eof();
@@ -19004,7 +19193,7 @@ var require_execa = __commonJS({
19004
19193
  if (opts.detached) {
19005
19194
  opts.cleanup = false;
19006
19195
  }
19007
- if (process.platform === "win32" && path2.basename(parsed.command) === "cmd.exe") {
19196
+ if (process.platform === "win32" && path3.basename(parsed.command) === "cmd.exe") {
19008
19197
  parsed.args.unshift("/q");
19009
19198
  }
19010
19199
  return {
@@ -19242,6 +19431,7 @@ ${stderr}${stdout}`;
19242
19431
  var require_invert_kv = __commonJS({
19243
19432
  "../../node_modules/invert-kv/index.js"(exports, module) {
19244
19433
  "use strict";
19434
+ init_cjs_shim();
19245
19435
  module.exports = (object) => {
19246
19436
  if (typeof object !== "object") {
19247
19437
  throw new TypeError("Expected an object");
@@ -19469,6 +19659,7 @@ var require_lcid = __commonJS({
19469
19659
  var require_lcid2 = __commonJS({
19470
19660
  "../../node_modules/lcid/index.js"(exports) {
19471
19661
  "use strict";
19662
+ init_cjs_shim();
19472
19663
  var invertKv = require_invert_kv();
19473
19664
  var all = require_lcid();
19474
19665
  var inverted = invertKv(all);
@@ -19492,6 +19683,7 @@ var require_lcid2 = __commonJS({
19492
19683
  var require_mimic_fn = __commonJS({
19493
19684
  "../../node_modules/mimic-fn/index.js"(exports, module) {
19494
19685
  "use strict";
19686
+ init_cjs_shim();
19495
19687
  var mimicFn = (to, from) => {
19496
19688
  for (const prop of Reflect.ownKeys(from)) {
19497
19689
  Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
@@ -19507,6 +19699,7 @@ var require_mimic_fn = __commonJS({
19507
19699
  var require_p_is_promise = __commonJS({
19508
19700
  "../../node_modules/p-is-promise/index.js"(exports, module) {
19509
19701
  "use strict";
19702
+ init_cjs_shim();
19510
19703
  var isPromise = (input) => input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
19511
19704
  module.exports = isPromise;
19512
19705
  module.exports.default = isPromise;
@@ -19517,6 +19710,7 @@ var require_p_is_promise = __commonJS({
19517
19710
  var require_p_defer = __commonJS({
19518
19711
  "../../node_modules/p-defer/index.js"(exports, module) {
19519
19712
  "use strict";
19713
+ init_cjs_shim();
19520
19714
  module.exports = () => {
19521
19715
  const ret = {};
19522
19716
  ret.promise = new Promise((resolve2, reject) => {
@@ -19532,6 +19726,7 @@ var require_p_defer = __commonJS({
19532
19726
  var require_dist = __commonJS({
19533
19727
  "../../node_modules/map-age-cleaner/dist/index.js"(exports, module) {
19534
19728
  "use strict";
19729
+ init_cjs_shim();
19535
19730
  var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P, generator) {
19536
19731
  return new (P || (P = Promise))(function(resolve2, reject) {
19537
19732
  function fulfilled(value) {
@@ -19633,6 +19828,7 @@ var require_dist = __commonJS({
19633
19828
  var require_mem = __commonJS({
19634
19829
  "../../node_modules/mem/index.js"(exports, module) {
19635
19830
  "use strict";
19831
+ init_cjs_shim();
19636
19832
  var mimicFn = require_mimic_fn();
19637
19833
  var isPromise = require_p_is_promise();
19638
19834
  var mapAgeCleaner = require_dist();
@@ -19700,6 +19896,7 @@ var require_mem = __commonJS({
19700
19896
  var require_os_locale = __commonJS({
19701
19897
  "../../node_modules/os-locale/index.js"(exports, module) {
19702
19898
  "use strict";
19899
+ init_cjs_shim();
19703
19900
  var execa = require_execa();
19704
19901
  var lcid = require_lcid2();
19705
19902
  var mem = require_mem();
@@ -19795,12 +19992,13 @@ var require_os_locale = __commonJS({
19795
19992
  var require_yargs = __commonJS({
19796
19993
  "../../node_modules/yargs/yargs.js"(exports, module) {
19797
19994
  "use strict";
19995
+ init_cjs_shim();
19798
19996
  var argsert = require_argsert();
19799
19997
  var fs2 = __require("fs");
19800
19998
  var Command = require_command();
19801
19999
  var Completion = require_completion();
19802
20000
  var Parser = require_yargs_parser();
19803
- var path2 = __require("path");
20001
+ var path3 = __require("path");
19804
20002
  var Usage = require_usage();
19805
20003
  var Validation = require_validation();
19806
20004
  var Y18n = require_y18n();
@@ -19822,7 +20020,7 @@ var require_yargs = __commonJS({
19822
20020
  let usage = null;
19823
20021
  let validation = null;
19824
20022
  const y18n = Y18n({
19825
- directory: path2.resolve(__dirname, "./locales"),
20023
+ directory: path3.resolve(__dirname, "./locales"),
19826
20024
  updateFiles: false
19827
20025
  });
19828
20026
  self2.middleware = middlewareFactory(globalMiddleware, self2);
@@ -19843,7 +20041,7 @@ var require_yargs = __commonJS({
19843
20041
  }).join(" ").trim();
19844
20042
  if (process.env._ !== void 0 && process.argv[1] === process.env._) {
19845
20043
  self2.$0 = process.env._.replace(
19846
- `${path2.dirname(process.execPath)}/`,
20044
+ `${path3.dirname(process.execPath)}/`,
19847
20045
  ""
19848
20046
  );
19849
20047
  }
@@ -20224,8 +20422,8 @@ var require_yargs = __commonJS({
20224
20422
  let obj = {};
20225
20423
  try {
20226
20424
  let startDir = rootPath || require_require_main_filename()(parentRequire || __require);
20227
- if (!rootPath && path2.extname(startDir)) {
20228
- startDir = path2.dirname(startDir);
20425
+ if (!rootPath && path3.extname(startDir)) {
20426
+ startDir = path3.dirname(startDir);
20229
20427
  }
20230
20428
  const pkgJsonPath = findUp.sync("package.json", {
20231
20429
  cwd: startDir
@@ -20762,7 +20960,7 @@ var require_yargs = __commonJS({
20762
20960
  }
20763
20961
  exports.rebase = rebase;
20764
20962
  function rebase(base, dir) {
20765
- return path2.relative(base, dir);
20963
+ return path3.relative(base, dir);
20766
20964
  }
20767
20965
  }
20768
20966
  });
@@ -20771,6 +20969,7 @@ var require_yargs = __commonJS({
20771
20969
  var require_yargs2 = __commonJS({
20772
20970
  "../../node_modules/yargs/index.js"(exports, module) {
20773
20971
  "use strict";
20972
+ init_cjs_shim();
20774
20973
  var yargs2 = require_yargs();
20775
20974
  Argv(process.argv.slice(2));
20776
20975
  module.exports = Argv;
@@ -20794,6 +20993,7 @@ var require_yargs2 = __commonJS({
20794
20993
  // ../../node_modules/depd/index.js
20795
20994
  var require_depd = __commonJS({
20796
20995
  "../../node_modules/depd/index.js"(exports, module) {
20996
+ init_cjs_shim();
20797
20997
  var relative = __require("path").relative;
20798
20998
  module.exports = depd;
20799
20999
  var basePath = process.cwd();
@@ -21101,6 +21301,7 @@ var require_depd = __commonJS({
21101
21301
  var require_bytes = __commonJS({
21102
21302
  "../../node_modules/bytes/index.js"(exports, module) {
21103
21303
  "use strict";
21304
+ init_cjs_shim();
21104
21305
  module.exports = bytes;
21105
21306
  module.exports.format = format;
21106
21307
  module.exports.parse = parse;
@@ -21190,6 +21391,7 @@ var require_bytes = __commonJS({
21190
21391
  var require_content_type = __commonJS({
21191
21392
  "../../node_modules/content-type/index.js"(exports) {
21192
21393
  "use strict";
21394
+ init_cjs_shim();
21193
21395
  var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
21194
21396
  var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
21195
21397
  var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
@@ -21291,6 +21493,7 @@ var require_content_type = __commonJS({
21291
21493
  var require_setprototypeof = __commonJS({
21292
21494
  "../../node_modules/setprototypeof/index.js"(exports, module) {
21293
21495
  "use strict";
21496
+ init_cjs_shim();
21294
21497
  module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);
21295
21498
  function setProtoOf(obj, proto) {
21296
21499
  obj.__proto__ = proto;
@@ -21382,6 +21585,7 @@ var require_codes = __commonJS({
21382
21585
  var require_statuses = __commonJS({
21383
21586
  "../../node_modules/statuses/index.js"(exports, module) {
21384
21587
  "use strict";
21588
+ init_cjs_shim();
21385
21589
  var codes = require_codes();
21386
21590
  module.exports = status;
21387
21591
  status.message = codes;
@@ -21452,6 +21656,7 @@ var require_statuses = __commonJS({
21452
21656
  // ../../node_modules/inherits/inherits_browser.js
21453
21657
  var require_inherits_browser = __commonJS({
21454
21658
  "../../node_modules/inherits/inherits_browser.js"(exports, module) {
21659
+ init_cjs_shim();
21455
21660
  if (typeof Object.create === "function") {
21456
21661
  module.exports = function inherits(ctor, superCtor) {
21457
21662
  if (superCtor) {
@@ -21484,6 +21689,7 @@ var require_inherits_browser = __commonJS({
21484
21689
  // ../../node_modules/inherits/inherits.js
21485
21690
  var require_inherits = __commonJS({
21486
21691
  "../../node_modules/inherits/inherits.js"(exports, module) {
21692
+ init_cjs_shim();
21487
21693
  try {
21488
21694
  util = __require("util");
21489
21695
  if (typeof util.inherits !== "function")
@@ -21500,6 +21706,7 @@ var require_inherits = __commonJS({
21500
21706
  var require_toidentifier = __commonJS({
21501
21707
  "../../node_modules/toidentifier/index.js"(exports, module) {
21502
21708
  "use strict";
21709
+ init_cjs_shim();
21503
21710
  module.exports = toIdentifier;
21504
21711
  function toIdentifier(str) {
21505
21712
  return str.split(" ").map(function(token) {
@@ -21513,6 +21720,7 @@ var require_toidentifier = __commonJS({
21513
21720
  var require_http_errors = __commonJS({
21514
21721
  "../../node_modules/http-errors/index.js"(exports, module) {
21515
21722
  "use strict";
21723
+ init_cjs_shim();
21516
21724
  var deprecate = require_depd()("http-errors");
21517
21725
  var setPrototypeOf = require_setprototypeof();
21518
21726
  var statuses = require_statuses();
@@ -21676,6 +21884,7 @@ var require_http_errors = __commonJS({
21676
21884
  // ../../node_modules/body-parser/node_modules/ms/index.js
21677
21885
  var require_ms2 = __commonJS({
21678
21886
  "../../node_modules/body-parser/node_modules/ms/index.js"(exports, module) {
21887
+ init_cjs_shim();
21679
21888
  var s = 1e3;
21680
21889
  var m = s * 60;
21681
21890
  var h = m * 60;
@@ -21778,6 +21987,7 @@ var require_ms2 = __commonJS({
21778
21987
  // ../../node_modules/body-parser/node_modules/debug/src/debug.js
21779
21988
  var require_debug2 = __commonJS({
21780
21989
  "../../node_modules/body-parser/node_modules/debug/src/debug.js"(exports, module) {
21990
+ init_cjs_shim();
21781
21991
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
21782
21992
  exports.coerce = coerce;
21783
21993
  exports.disable = disable;
@@ -21887,6 +22097,7 @@ var require_debug2 = __commonJS({
21887
22097
  // ../../node_modules/body-parser/node_modules/debug/src/browser.js
21888
22098
  var require_browser = __commonJS({
21889
22099
  "../../node_modules/body-parser/node_modules/debug/src/browser.js"(exports, module) {
22100
+ init_cjs_shim();
21890
22101
  exports = module.exports = require_debug2();
21891
22102
  exports.log = log;
21892
22103
  exports.formatArgs = formatArgs;
@@ -21975,6 +22186,7 @@ var require_browser = __commonJS({
21975
22186
  // ../../node_modules/body-parser/node_modules/debug/src/node.js
21976
22187
  var require_node = __commonJS({
21977
22188
  "../../node_modules/body-parser/node_modules/debug/src/node.js"(exports, module) {
22189
+ init_cjs_shim();
21978
22190
  var tty = __require("tty");
21979
22191
  var util = __require("util");
21980
22192
  exports = module.exports = require_debug2();
@@ -22099,6 +22311,7 @@ var require_node = __commonJS({
22099
22311
  // ../../node_modules/body-parser/node_modules/debug/src/index.js
22100
22312
  var require_src2 = __commonJS({
22101
22313
  "../../node_modules/body-parser/node_modules/debug/src/index.js"(exports, module) {
22314
+ init_cjs_shim();
22102
22315
  if (typeof process !== "undefined" && process.type === "renderer") {
22103
22316
  module.exports = require_browser();
22104
22317
  } else {
@@ -22111,6 +22324,7 @@ var require_src2 = __commonJS({
22111
22324
  var require_destroy = __commonJS({
22112
22325
  "../../node_modules/destroy/index.js"(exports, module) {
22113
22326
  "use strict";
22327
+ init_cjs_shim();
22114
22328
  var EventEmitter = __require("events").EventEmitter;
22115
22329
  var ReadStream = __require("fs").ReadStream;
22116
22330
  var Stream = __require("stream");
@@ -22198,6 +22412,7 @@ var require_destroy = __commonJS({
22198
22412
  var require_unpipe = __commonJS({
22199
22413
  "../../node_modules/unpipe/index.js"(exports, module) {
22200
22414
  "use strict";
22415
+ init_cjs_shim();
22201
22416
  module.exports = unpipe;
22202
22417
  function hasPipeDataListeners(stream) {
22203
22418
  var listeners = stream.listeners("data");
@@ -22236,6 +22451,7 @@ var require_unpipe = __commonJS({
22236
22451
  var require_raw_body = __commonJS({
22237
22452
  "../../node_modules/body-parser/node_modules/raw-body/index.js"(exports, module) {
22238
22453
  "use strict";
22454
+ init_cjs_shim();
22239
22455
  var asyncHooks = tryRequireAsyncHooks();
22240
22456
  var bytes = require_bytes();
22241
22457
  var createError = require_http_errors();
@@ -22427,6 +22643,7 @@ var require_raw_body = __commonJS({
22427
22643
  var require_ee_first = __commonJS({
22428
22644
  "../../node_modules/ee-first/index.js"(exports, module) {
22429
22645
  "use strict";
22646
+ init_cjs_shim();
22430
22647
  module.exports = first;
22431
22648
  function first(stuff, done) {
22432
22649
  if (!Array.isArray(stuff))
@@ -22483,6 +22700,7 @@ var require_ee_first = __commonJS({
22483
22700
  var require_on_finished = __commonJS({
22484
22701
  "../../node_modules/on-finished/index.js"(exports, module) {
22485
22702
  "use strict";
22703
+ init_cjs_shim();
22486
22704
  module.exports = onFinished;
22487
22705
  module.exports.isFinished = isFinished;
22488
22706
  var asyncHooks = tryRequireAsyncHooks();
@@ -22592,6 +22810,7 @@ var require_on_finished = __commonJS({
22592
22810
  var require_read = __commonJS({
22593
22811
  "../../node_modules/body-parser/lib/read.js"(exports, module) {
22594
22812
  "use strict";
22813
+ init_cjs_shim();
22595
22814
  var createError = require_http_errors();
22596
22815
  var destroy = require_destroy();
22597
22816
  var getBody = require_raw_body();
@@ -22718,6 +22937,7 @@ var require_read = __commonJS({
22718
22937
  // ../../node_modules/media-typer/index.js
22719
22938
  var require_media_typer = __commonJS({
22720
22939
  "../../node_modules/media-typer/index.js"(exports) {
22940
+ init_cjs_shim();
22721
22941
  var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g;
22722
22942
  var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/;
22723
22943
  var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/;
@@ -31024,6 +31244,7 @@ var require_db = __commonJS({
31024
31244
  // ../../node_modules/mime-db/index.js
31025
31245
  var require_mime_db = __commonJS({
31026
31246
  "../../node_modules/mime-db/index.js"(exports, module) {
31247
+ init_cjs_shim();
31027
31248
  module.exports = require_db();
31028
31249
  }
31029
31250
  });
@@ -31032,6 +31253,7 @@ var require_mime_db = __commonJS({
31032
31253
  var require_mime_types = __commonJS({
31033
31254
  "../../node_modules/mime-types/index.js"(exports) {
31034
31255
  "use strict";
31256
+ init_cjs_shim();
31035
31257
  var db = require_mime_db();
31036
31258
  var extname = __require("path").extname;
31037
31259
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
@@ -31084,11 +31306,11 @@ var require_mime_types = __commonJS({
31084
31306
  }
31085
31307
  return exts[0];
31086
31308
  }
31087
- function lookup(path2) {
31088
- if (!path2 || typeof path2 !== "string") {
31309
+ function lookup(path3) {
31310
+ if (!path3 || typeof path3 !== "string") {
31089
31311
  return false;
31090
31312
  }
31091
- var extension2 = extname("x." + path2).toLowerCase().substr(1);
31313
+ var extension2 = extname("x." + path3).toLowerCase().substr(1);
31092
31314
  if (!extension2) {
31093
31315
  return false;
31094
31316
  }
@@ -31123,6 +31345,7 @@ var require_mime_types = __commonJS({
31123
31345
  var require_type_is = __commonJS({
31124
31346
  "../../node_modules/type-is/index.js"(exports, module) {
31125
31347
  "use strict";
31348
+ init_cjs_shim();
31126
31349
  var typer = require_media_typer();
31127
31350
  var mime = require_mime_types();
31128
31351
  module.exports = typeofrequest;
@@ -31228,6 +31451,7 @@ var require_type_is = __commonJS({
31228
31451
  var require_json = __commonJS({
31229
31452
  "../../node_modules/body-parser/lib/types/json.js"(exports, module) {
31230
31453
  "use strict";
31454
+ init_cjs_shim();
31231
31455
  var bytes = require_bytes();
31232
31456
  var contentType = require_content_type();
31233
31457
  var createError = require_http_errors();
@@ -31352,6 +31576,7 @@ var require_json = __commonJS({
31352
31576
  var require_raw = __commonJS({
31353
31577
  "../../node_modules/body-parser/lib/types/raw.js"(exports, module) {
31354
31578
  "use strict";
31579
+ init_cjs_shim();
31355
31580
  var bytes = require_bytes();
31356
31581
  var debug = require_src2()("body-parser:raw");
31357
31582
  var read = require_read();
@@ -31408,6 +31633,7 @@ var require_raw = __commonJS({
31408
31633
  var require_text = __commonJS({
31409
31634
  "../../node_modules/body-parser/lib/types/text.js"(exports, module) {
31410
31635
  "use strict";
31636
+ init_cjs_shim();
31411
31637
  var bytes = require_bytes();
31412
31638
  var contentType = require_content_type();
31413
31639
  var debug = require_src2()("body-parser:text");
@@ -31474,6 +31700,7 @@ var require_text = __commonJS({
31474
31700
  var require_shams = __commonJS({
31475
31701
  "../../node_modules/side-channel/node_modules/has-symbols/shams.js"(exports, module) {
31476
31702
  "use strict";
31703
+ init_cjs_shim();
31477
31704
  module.exports = function hasSymbols() {
31478
31705
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
31479
31706
  return false;
@@ -31526,6 +31753,7 @@ var require_shams = __commonJS({
31526
31753
  var require_has_symbols = __commonJS({
31527
31754
  "../../node_modules/side-channel/node_modules/has-symbols/index.js"(exports, module) {
31528
31755
  "use strict";
31756
+ init_cjs_shim();
31529
31757
  var origSymbol = global.Symbol;
31530
31758
  var hasSymbolSham = require_shams();
31531
31759
  module.exports = function hasNativeSymbols() {
@@ -31550,6 +31778,7 @@ var require_has_symbols = __commonJS({
31550
31778
  var require_implementation = __commonJS({
31551
31779
  "../../node_modules/function-bind/implementation.js"(exports, module) {
31552
31780
  "use strict";
31781
+ init_cjs_shim();
31553
31782
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
31554
31783
  var slice = Array.prototype.slice;
31555
31784
  var toStr = Object.prototype.toString;
@@ -31600,6 +31829,7 @@ var require_implementation = __commonJS({
31600
31829
  var require_function_bind = __commonJS({
31601
31830
  "../../node_modules/function-bind/index.js"(exports, module) {
31602
31831
  "use strict";
31832
+ init_cjs_shim();
31603
31833
  var implementation = require_implementation();
31604
31834
  module.exports = Function.prototype.bind || implementation;
31605
31835
  }
@@ -31609,6 +31839,7 @@ var require_function_bind = __commonJS({
31609
31839
  var require_src3 = __commonJS({
31610
31840
  "../../node_modules/has/src/index.js"(exports, module) {
31611
31841
  "use strict";
31842
+ init_cjs_shim();
31612
31843
  var bind = require_function_bind();
31613
31844
  module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
31614
31845
  }
@@ -31618,6 +31849,7 @@ var require_src3 = __commonJS({
31618
31849
  var require_get_intrinsic = __commonJS({
31619
31850
  "../../node_modules/side-channel/node_modules/get-intrinsic/index.js"(exports, module) {
31620
31851
  "use strict";
31852
+ init_cjs_shim();
31621
31853
  var undefined2;
31622
31854
  var $SyntaxError = SyntaxError;
31623
31855
  var $Function = Function;
@@ -31909,6 +32141,7 @@ var require_get_intrinsic = __commonJS({
31909
32141
  var require_shams2 = __commonJS({
31910
32142
  "../../node_modules/call-bind/node_modules/has-symbols/shams.js"(exports, module) {
31911
32143
  "use strict";
32144
+ init_cjs_shim();
31912
32145
  module.exports = function hasSymbols() {
31913
32146
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
31914
32147
  return false;
@@ -31961,6 +32194,7 @@ var require_shams2 = __commonJS({
31961
32194
  var require_has_symbols2 = __commonJS({
31962
32195
  "../../node_modules/call-bind/node_modules/has-symbols/index.js"(exports, module) {
31963
32196
  "use strict";
32197
+ init_cjs_shim();
31964
32198
  var origSymbol = global.Symbol;
31965
32199
  var hasSymbolSham = require_shams2();
31966
32200
  module.exports = function hasNativeSymbols() {
@@ -31985,6 +32219,7 @@ var require_has_symbols2 = __commonJS({
31985
32219
  var require_get_intrinsic2 = __commonJS({
31986
32220
  "../../node_modules/call-bind/node_modules/get-intrinsic/index.js"(exports, module) {
31987
32221
  "use strict";
32222
+ init_cjs_shim();
31988
32223
  var undefined2;
31989
32224
  var $SyntaxError = SyntaxError;
31990
32225
  var $Function = Function;
@@ -32276,6 +32511,7 @@ var require_get_intrinsic2 = __commonJS({
32276
32511
  var require_call_bind = __commonJS({
32277
32512
  "../../node_modules/call-bind/index.js"(exports, module) {
32278
32513
  "use strict";
32514
+ init_cjs_shim();
32279
32515
  var bind = require_function_bind();
32280
32516
  var GetIntrinsic = require_get_intrinsic2();
32281
32517
  var $apply = GetIntrinsic("%Function.prototype.apply%");
@@ -32320,6 +32556,7 @@ var require_call_bind = __commonJS({
32320
32556
  var require_callBound = __commonJS({
32321
32557
  "../../node_modules/call-bind/callBound.js"(exports, module) {
32322
32558
  "use strict";
32559
+ init_cjs_shim();
32323
32560
  var GetIntrinsic = require_get_intrinsic2();
32324
32561
  var callBind = require_call_bind();
32325
32562
  var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
@@ -32336,6 +32573,7 @@ var require_callBound = __commonJS({
32336
32573
  // ../../node_modules/object-inspect/util.inspect.js
32337
32574
  var require_util_inspect = __commonJS({
32338
32575
  "../../node_modules/object-inspect/util.inspect.js"(exports, module) {
32576
+ init_cjs_shim();
32339
32577
  module.exports = __require("util").inspect;
32340
32578
  }
32341
32579
  });
@@ -32343,6 +32581,7 @@ var require_util_inspect = __commonJS({
32343
32581
  // ../../node_modules/object-inspect/index.js
32344
32582
  var require_object_inspect = __commonJS({
32345
32583
  "../../node_modules/object-inspect/index.js"(exports, module) {
32584
+ init_cjs_shim();
32346
32585
  var hasMap = typeof Map === "function" && Map.prototype;
32347
32586
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
32348
32587
  var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
@@ -32848,6 +33087,7 @@ var require_object_inspect = __commonJS({
32848
33087
  var require_side_channel = __commonJS({
32849
33088
  "../../node_modules/side-channel/index.js"(exports, module) {
32850
33089
  "use strict";
33090
+ init_cjs_shim();
32851
33091
  var GetIntrinsic = require_get_intrinsic();
32852
33092
  var callBound = require_callBound();
32853
33093
  var inspect = require_object_inspect();
@@ -32959,6 +33199,7 @@ var require_side_channel = __commonJS({
32959
33199
  var require_formats = __commonJS({
32960
33200
  "../../node_modules/qs/lib/formats.js"(exports, module) {
32961
33201
  "use strict";
33202
+ init_cjs_shim();
32962
33203
  var replace = String.prototype.replace;
32963
33204
  var percentTwenties = /%20/g;
32964
33205
  var Format = {
@@ -32985,6 +33226,7 @@ var require_formats = __commonJS({
32985
33226
  var require_utils2 = __commonJS({
32986
33227
  "../../node_modules/qs/lib/utils.js"(exports, module) {
32987
33228
  "use strict";
33229
+ init_cjs_shim();
32988
33230
  var formats = require_formats();
32989
33231
  var has = Object.prototype.hasOwnProperty;
32990
33232
  var isArray = Array.isArray;
@@ -33184,6 +33426,7 @@ var require_utils2 = __commonJS({
33184
33426
  var require_stringify = __commonJS({
33185
33427
  "../../node_modules/qs/lib/stringify.js"(exports, module) {
33186
33428
  "use strict";
33429
+ init_cjs_shim();
33187
33430
  var getSideChannel = require_side_channel();
33188
33431
  var utils = require_utils2();
33189
33432
  var formats = require_formats();
@@ -33447,6 +33690,7 @@ var require_stringify = __commonJS({
33447
33690
  var require_parse3 = __commonJS({
33448
33691
  "../../node_modules/qs/lib/parse.js"(exports, module) {
33449
33692
  "use strict";
33693
+ init_cjs_shim();
33450
33694
  var utils = require_utils2();
33451
33695
  var has = Object.prototype.hasOwnProperty;
33452
33696
  var isArray = Array.isArray;
@@ -33649,6 +33893,7 @@ var require_parse3 = __commonJS({
33649
33893
  var require_lib4 = __commonJS({
33650
33894
  "../../node_modules/qs/lib/index.js"(exports, module) {
33651
33895
  "use strict";
33896
+ init_cjs_shim();
33652
33897
  var stringify = require_stringify();
33653
33898
  var parse = require_parse3();
33654
33899
  var formats = require_formats();
@@ -33664,6 +33909,7 @@ var require_lib4 = __commonJS({
33664
33909
  var require_urlencoded = __commonJS({
33665
33910
  "../../node_modules/body-parser/lib/types/urlencoded.js"(exports, module) {
33666
33911
  "use strict";
33912
+ init_cjs_shim();
33667
33913
  var bytes = require_bytes();
33668
33914
  var contentType = require_content_type();
33669
33915
  var createError = require_http_errors();
@@ -33822,6 +34068,7 @@ var require_urlencoded = __commonJS({
33822
34068
  var require_body_parser = __commonJS({
33823
34069
  "../../node_modules/body-parser/index.js"(exports, module) {
33824
34070
  "use strict";
34071
+ init_cjs_shim();
33825
34072
  var deprecate = require_depd()("body-parser");
33826
34073
  var parsers = /* @__PURE__ */ Object.create(null);
33827
34074
  exports = module.exports = deprecate.function(
@@ -33900,6 +34147,7 @@ var require_body_parser = __commonJS({
33900
34147
  var require_merge_descriptors = __commonJS({
33901
34148
  "../../node_modules/merge-descriptors/index.js"(exports, module) {
33902
34149
  "use strict";
34150
+ init_cjs_shim();
33903
34151
  module.exports = merge;
33904
34152
  var hasOwnProperty = Object.prototype.hasOwnProperty;
33905
34153
  function merge(dest, src, redefine) {
@@ -33927,6 +34175,7 @@ var require_merge_descriptors = __commonJS({
33927
34175
  // ../../node_modules/finalhandler/node_modules/ms/index.js
33928
34176
  var require_ms3 = __commonJS({
33929
34177
  "../../node_modules/finalhandler/node_modules/ms/index.js"(exports, module) {
34178
+ init_cjs_shim();
33930
34179
  var s = 1e3;
33931
34180
  var m = s * 60;
33932
34181
  var h = m * 60;
@@ -34029,6 +34278,7 @@ var require_ms3 = __commonJS({
34029
34278
  // ../../node_modules/finalhandler/node_modules/debug/src/debug.js
34030
34279
  var require_debug3 = __commonJS({
34031
34280
  "../../node_modules/finalhandler/node_modules/debug/src/debug.js"(exports, module) {
34281
+ init_cjs_shim();
34032
34282
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
34033
34283
  exports.coerce = coerce;
34034
34284
  exports.disable = disable;
@@ -34138,6 +34388,7 @@ var require_debug3 = __commonJS({
34138
34388
  // ../../node_modules/finalhandler/node_modules/debug/src/browser.js
34139
34389
  var require_browser2 = __commonJS({
34140
34390
  "../../node_modules/finalhandler/node_modules/debug/src/browser.js"(exports, module) {
34391
+ init_cjs_shim();
34141
34392
  exports = module.exports = require_debug3();
34142
34393
  exports.log = log;
34143
34394
  exports.formatArgs = formatArgs;
@@ -34226,6 +34477,7 @@ var require_browser2 = __commonJS({
34226
34477
  // ../../node_modules/finalhandler/node_modules/debug/src/node.js
34227
34478
  var require_node2 = __commonJS({
34228
34479
  "../../node_modules/finalhandler/node_modules/debug/src/node.js"(exports, module) {
34480
+ init_cjs_shim();
34229
34481
  var tty = __require("tty");
34230
34482
  var util = __require("util");
34231
34483
  exports = module.exports = require_debug3();
@@ -34350,6 +34602,7 @@ var require_node2 = __commonJS({
34350
34602
  // ../../node_modules/finalhandler/node_modules/debug/src/index.js
34351
34603
  var require_src4 = __commonJS({
34352
34604
  "../../node_modules/finalhandler/node_modules/debug/src/index.js"(exports, module) {
34605
+ init_cjs_shim();
34353
34606
  if (typeof process !== "undefined" && process.type === "renderer") {
34354
34607
  module.exports = require_browser2();
34355
34608
  } else {
@@ -34362,12 +34615,13 @@ var require_src4 = __commonJS({
34362
34615
  var require_encodeurl = __commonJS({
34363
34616
  "../../node_modules/encodeurl/index.js"(exports, module) {
34364
34617
  "use strict";
34618
+ init_cjs_shim();
34365
34619
  module.exports = encodeUrl;
34366
34620
  var ENCODE_CHARS_REGEXP = /(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g;
34367
34621
  var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
34368
34622
  var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1\uFFFD$2";
34369
- function encodeUrl(url) {
34370
- return String(url).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
34623
+ function encodeUrl(url2) {
34624
+ return String(url2).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
34371
34625
  }
34372
34626
  }
34373
34627
  });
@@ -34376,6 +34630,7 @@ var require_encodeurl = __commonJS({
34376
34630
  var require_escape_html = __commonJS({
34377
34631
  "../../node_modules/escape-html/index.js"(exports, module) {
34378
34632
  "use strict";
34633
+ init_cjs_shim();
34379
34634
  var matchHtmlRegExp = /["'&<>]/;
34380
34635
  module.exports = escapeHtml;
34381
34636
  function escapeHtml(string) {
@@ -34423,35 +34678,36 @@ var require_escape_html = __commonJS({
34423
34678
  var require_parseurl = __commonJS({
34424
34679
  "../../node_modules/parseurl/index.js"(exports, module) {
34425
34680
  "use strict";
34426
- var url = __require("url");
34427
- var parse = url.parse;
34428
- var Url = url.Url;
34681
+ init_cjs_shim();
34682
+ var url2 = __require("url");
34683
+ var parse = url2.parse;
34684
+ var Url = url2.Url;
34429
34685
  module.exports = parseurl;
34430
34686
  module.exports.original = originalurl;
34431
34687
  function parseurl(req) {
34432
- var url2 = req.url;
34433
- if (url2 === void 0) {
34688
+ var url3 = req.url;
34689
+ if (url3 === void 0) {
34434
34690
  return void 0;
34435
34691
  }
34436
34692
  var parsed = req._parsedUrl;
34437
- if (fresh(url2, parsed)) {
34693
+ if (fresh(url3, parsed)) {
34438
34694
  return parsed;
34439
34695
  }
34440
- parsed = fastparse(url2);
34441
- parsed._raw = url2;
34696
+ parsed = fastparse(url3);
34697
+ parsed._raw = url3;
34442
34698
  return req._parsedUrl = parsed;
34443
34699
  }
34444
34700
  function originalurl(req) {
34445
- var url2 = req.originalUrl;
34446
- if (typeof url2 !== "string") {
34701
+ var url3 = req.originalUrl;
34702
+ if (typeof url3 !== "string") {
34447
34703
  return parseurl(req);
34448
34704
  }
34449
34705
  var parsed = req._parsedOriginalUrl;
34450
- if (fresh(url2, parsed)) {
34706
+ if (fresh(url3, parsed)) {
34451
34707
  return parsed;
34452
34708
  }
34453
- parsed = fastparse(url2);
34454
- parsed._raw = url2;
34709
+ parsed = fastparse(url3);
34710
+ parsed._raw = url3;
34455
34711
  return req._parsedOriginalUrl = parsed;
34456
34712
  }
34457
34713
  function fastparse(str) {
@@ -34481,18 +34737,18 @@ var require_parseurl = __commonJS({
34481
34737
  return parse(str);
34482
34738
  }
34483
34739
  }
34484
- var url2 = Url !== void 0 ? new Url() : {};
34485
- url2.path = str;
34486
- url2.href = str;
34487
- url2.pathname = pathname;
34740
+ var url3 = Url !== void 0 ? new Url() : {};
34741
+ url3.path = str;
34742
+ url3.href = str;
34743
+ url3.pathname = pathname;
34488
34744
  if (search !== null) {
34489
- url2.query = query;
34490
- url2.search = search;
34745
+ url3.query = query;
34746
+ url3.search = search;
34491
34747
  }
34492
- return url2;
34748
+ return url3;
34493
34749
  }
34494
- function fresh(url2, parsedUrl) {
34495
- return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url2;
34750
+ function fresh(url3, parsedUrl) {
34751
+ return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url3;
34496
34752
  }
34497
34753
  }
34498
34754
  });
@@ -34501,6 +34757,7 @@ var require_parseurl = __commonJS({
34501
34757
  var require_finalhandler = __commonJS({
34502
34758
  "../../node_modules/finalhandler/index.js"(exports, module) {
34503
34759
  "use strict";
34760
+ init_cjs_shim();
34504
34761
  var debug = require_src4()("finalhandler");
34505
34762
  var encodeUrl = require_encodeurl();
34506
34763
  var escapeHtml = require_escape_html();
@@ -34646,6 +34903,7 @@ var require_finalhandler = __commonJS({
34646
34903
  // ../../node_modules/express/node_modules/ms/index.js
34647
34904
  var require_ms4 = __commonJS({
34648
34905
  "../../node_modules/express/node_modules/ms/index.js"(exports, module) {
34906
+ init_cjs_shim();
34649
34907
  var s = 1e3;
34650
34908
  var m = s * 60;
34651
34909
  var h = m * 60;
@@ -34748,6 +35006,7 @@ var require_ms4 = __commonJS({
34748
35006
  // ../../node_modules/express/node_modules/debug/src/debug.js
34749
35007
  var require_debug4 = __commonJS({
34750
35008
  "../../node_modules/express/node_modules/debug/src/debug.js"(exports, module) {
35009
+ init_cjs_shim();
34751
35010
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
34752
35011
  exports.coerce = coerce;
34753
35012
  exports.disable = disable;
@@ -34857,6 +35116,7 @@ var require_debug4 = __commonJS({
34857
35116
  // ../../node_modules/express/node_modules/debug/src/browser.js
34858
35117
  var require_browser3 = __commonJS({
34859
35118
  "../../node_modules/express/node_modules/debug/src/browser.js"(exports, module) {
35119
+ init_cjs_shim();
34860
35120
  exports = module.exports = require_debug4();
34861
35121
  exports.log = log;
34862
35122
  exports.formatArgs = formatArgs;
@@ -34945,6 +35205,7 @@ var require_browser3 = __commonJS({
34945
35205
  // ../../node_modules/express/node_modules/debug/src/node.js
34946
35206
  var require_node3 = __commonJS({
34947
35207
  "../../node_modules/express/node_modules/debug/src/node.js"(exports, module) {
35208
+ init_cjs_shim();
34948
35209
  var tty = __require("tty");
34949
35210
  var util = __require("util");
34950
35211
  exports = module.exports = require_debug4();
@@ -35069,6 +35330,7 @@ var require_node3 = __commonJS({
35069
35330
  // ../../node_modules/express/node_modules/debug/src/index.js
35070
35331
  var require_src5 = __commonJS({
35071
35332
  "../../node_modules/express/node_modules/debug/src/index.js"(exports, module) {
35333
+ init_cjs_shim();
35072
35334
  if (typeof process !== "undefined" && process.type === "renderer") {
35073
35335
  module.exports = require_browser3();
35074
35336
  } else {
@@ -35081,6 +35343,7 @@ var require_src5 = __commonJS({
35081
35343
  var require_array_flatten = __commonJS({
35082
35344
  "../../node_modules/array-flatten/array-flatten.js"(exports, module) {
35083
35345
  "use strict";
35346
+ init_cjs_shim();
35084
35347
  module.exports = arrayFlatten;
35085
35348
  function flattenWithDepth(array, result, depth) {
35086
35349
  for (var i = 0; i < array.length; i++) {
@@ -35116,9 +35379,10 @@ var require_array_flatten = __commonJS({
35116
35379
  // ../../node_modules/express/node_modules/path-to-regexp/index.js
35117
35380
  var require_path_to_regexp = __commonJS({
35118
35381
  "../../node_modules/express/node_modules/path-to-regexp/index.js"(exports, module) {
35382
+ init_cjs_shim();
35119
35383
  module.exports = pathtoRegexp;
35120
35384
  var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
35121
- function pathtoRegexp(path2, keys, options) {
35385
+ function pathtoRegexp(path3, keys, options) {
35122
35386
  options = options || {};
35123
35387
  keys = keys || [];
35124
35388
  var strict = options.strict;
@@ -35129,23 +35393,23 @@ var require_path_to_regexp = __commonJS({
35129
35393
  var i = 0;
35130
35394
  var name = 0;
35131
35395
  var m;
35132
- if (path2 instanceof RegExp) {
35133
- while (m = MATCHING_GROUP_REGEXP.exec(path2.source)) {
35396
+ if (path3 instanceof RegExp) {
35397
+ while (m = MATCHING_GROUP_REGEXP.exec(path3.source)) {
35134
35398
  keys.push({
35135
35399
  name: name++,
35136
35400
  optional: false,
35137
35401
  offset: m.index
35138
35402
  });
35139
35403
  }
35140
- return path2;
35404
+ return path3;
35141
35405
  }
35142
- if (Array.isArray(path2)) {
35143
- path2 = path2.map(function(value) {
35406
+ if (Array.isArray(path3)) {
35407
+ path3 = path3.map(function(value) {
35144
35408
  return pathtoRegexp(value, keys, options).source;
35145
35409
  });
35146
- return new RegExp("(?:" + path2.join("|") + ")", flags);
35410
+ return new RegExp("(?:" + path3.join("|") + ")", flags);
35147
35411
  }
35148
- path2 = ("^" + path2 + (strict ? "" : path2[path2.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
35412
+ path3 = ("^" + path3 + (strict ? "" : path3[path3.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
35149
35413
  slash = slash || "";
35150
35414
  format = format || "";
35151
35415
  capture = capture || "([^\\/" + format + "]+?)";
@@ -35165,10 +35429,10 @@ var require_path_to_regexp = __commonJS({
35165
35429
  }
35166
35430
  return "(.*)";
35167
35431
  });
35168
- while (m = MATCHING_GROUP_REGEXP.exec(path2)) {
35432
+ while (m = MATCHING_GROUP_REGEXP.exec(path3)) {
35169
35433
  var escapeCount = 0;
35170
35434
  var index = m.index;
35171
- while (path2.charAt(--index) === "\\") {
35435
+ while (path3.charAt(--index) === "\\") {
35172
35436
  escapeCount++;
35173
35437
  }
35174
35438
  if (escapeCount % 2 === 1) {
@@ -35184,8 +35448,8 @@ var require_path_to_regexp = __commonJS({
35184
35448
  }
35185
35449
  i++;
35186
35450
  }
35187
- path2 += end ? "$" : path2[path2.length - 1] === "/" ? "" : "(?=\\/|$)";
35188
- return new RegExp(path2, flags);
35451
+ path3 += end ? "$" : path3[path3.length - 1] === "/" ? "" : "(?=\\/|$)";
35452
+ return new RegExp(path3, flags);
35189
35453
  }
35190
35454
  }
35191
35455
  });
@@ -35194,23 +35458,24 @@ var require_path_to_regexp = __commonJS({
35194
35458
  var require_layer = __commonJS({
35195
35459
  "../../node_modules/express/lib/router/layer.js"(exports, module) {
35196
35460
  "use strict";
35461
+ init_cjs_shim();
35197
35462
  var pathRegexp = require_path_to_regexp();
35198
35463
  var debug = require_src5()("express:router:layer");
35199
35464
  var hasOwnProperty = Object.prototype.hasOwnProperty;
35200
35465
  module.exports = Layer;
35201
- function Layer(path2, options, fn) {
35466
+ function Layer(path3, options, fn) {
35202
35467
  if (!(this instanceof Layer)) {
35203
- return new Layer(path2, options, fn);
35468
+ return new Layer(path3, options, fn);
35204
35469
  }
35205
- debug("new %o", path2);
35470
+ debug("new %o", path3);
35206
35471
  var opts = options || {};
35207
35472
  this.handle = fn;
35208
35473
  this.name = fn.name || "<anonymous>";
35209
35474
  this.params = void 0;
35210
35475
  this.path = void 0;
35211
- this.regexp = pathRegexp(path2, this.keys = [], opts);
35212
- this.regexp.fast_star = path2 === "*";
35213
- this.regexp.fast_slash = path2 === "/" && opts.end === false;
35476
+ this.regexp = pathRegexp(path3, this.keys = [], opts);
35477
+ this.regexp.fast_star = path3 === "*";
35478
+ this.regexp.fast_slash = path3 === "/" && opts.end === false;
35214
35479
  }
35215
35480
  Layer.prototype.handle_error = function handle_error(error, req, res, next) {
35216
35481
  var fn = this.handle;
@@ -35234,20 +35499,20 @@ var require_layer = __commonJS({
35234
35499
  next(err);
35235
35500
  }
35236
35501
  };
35237
- Layer.prototype.match = function match(path2) {
35502
+ Layer.prototype.match = function match(path3) {
35238
35503
  var match2;
35239
- if (path2 != null) {
35504
+ if (path3 != null) {
35240
35505
  if (this.regexp.fast_slash) {
35241
35506
  this.params = {};
35242
35507
  this.path = "";
35243
35508
  return true;
35244
35509
  }
35245
35510
  if (this.regexp.fast_star) {
35246
- this.params = { "0": decode_param(path2) };
35247
- this.path = path2;
35511
+ this.params = { "0": decode_param(path3) };
35512
+ this.path = path3;
35248
35513
  return true;
35249
35514
  }
35250
- match2 = this.regexp.exec(path2);
35515
+ match2 = this.regexp.exec(path3);
35251
35516
  }
35252
35517
  if (!match2) {
35253
35518
  this.params = void 0;
@@ -35289,6 +35554,7 @@ var require_layer = __commonJS({
35289
35554
  var require_methods = __commonJS({
35290
35555
  "../../node_modules/methods/index.js"(exports, module) {
35291
35556
  "use strict";
35557
+ init_cjs_shim();
35292
35558
  var http = __require("http");
35293
35559
  module.exports = getCurrentNodeMethods() || getBasicNodeMethods();
35294
35560
  function getCurrentNodeMethods() {
@@ -35333,6 +35599,7 @@ var require_methods = __commonJS({
35333
35599
  var require_route = __commonJS({
35334
35600
  "../../node_modules/express/lib/router/route.js"(exports, module) {
35335
35601
  "use strict";
35602
+ init_cjs_shim();
35336
35603
  var debug = require_src5()("express:router:route");
35337
35604
  var flatten = require_array_flatten();
35338
35605
  var Layer = require_layer();
@@ -35340,10 +35607,10 @@ var require_route = __commonJS({
35340
35607
  var slice = Array.prototype.slice;
35341
35608
  var toString = Object.prototype.toString;
35342
35609
  module.exports = Route;
35343
- function Route(path2) {
35344
- this.path = path2;
35610
+ function Route(path3) {
35611
+ this.path = path3;
35345
35612
  this.stack = [];
35346
- debug("new %o", path2);
35613
+ debug("new %o", path3);
35347
35614
  this.methods = {};
35348
35615
  }
35349
35616
  Route.prototype._handles_method = function _handles_method(method) {
@@ -35444,6 +35711,7 @@ var require_route = __commonJS({
35444
35711
  // ../../node_modules/utils-merge/index.js
35445
35712
  var require_utils_merge = __commonJS({
35446
35713
  "../../node_modules/utils-merge/index.js"(exports, module) {
35714
+ init_cjs_shim();
35447
35715
  exports = module.exports = function(a, b) {
35448
35716
  if (a && b) {
35449
35717
  for (var key in b) {
@@ -35459,6 +35727,7 @@ var require_utils_merge = __commonJS({
35459
35727
  var require_router = __commonJS({
35460
35728
  "../../node_modules/express/lib/router/index.js"(exports, module) {
35461
35729
  "use strict";
35730
+ init_cjs_shim();
35462
35731
  var Route = require_route();
35463
35732
  var Layer = require_layer();
35464
35733
  var methods = require_methods();
@@ -35556,8 +35825,8 @@ var require_router = __commonJS({
35556
35825
  if (++sync > 100) {
35557
35826
  return setImmediate(next, err);
35558
35827
  }
35559
- var path2 = getPathname(req);
35560
- if (path2 == null) {
35828
+ var path3 = getPathname(req);
35829
+ if (path3 == null) {
35561
35830
  return done(layerError);
35562
35831
  }
35563
35832
  var layer;
@@ -35565,7 +35834,7 @@ var require_router = __commonJS({
35565
35834
  var route;
35566
35835
  while (match !== true && idx < stack.length) {
35567
35836
  layer = stack[idx++];
35568
- match = matchLayer(layer, path2);
35837
+ match = matchLayer(layer, path3);
35569
35838
  route = layer.route;
35570
35839
  if (typeof match !== "boolean") {
35571
35840
  layerError = layerError || match;
@@ -35603,18 +35872,18 @@ var require_router = __commonJS({
35603
35872
  } else if (route) {
35604
35873
  layer.handle_request(req, res, next);
35605
35874
  } else {
35606
- trim_prefix(layer, layerError, layerPath, path2);
35875
+ trim_prefix(layer, layerError, layerPath, path3);
35607
35876
  }
35608
35877
  sync = 0;
35609
35878
  });
35610
35879
  }
35611
- function trim_prefix(layer, layerError, layerPath, path2) {
35880
+ function trim_prefix(layer, layerError, layerPath, path3) {
35612
35881
  if (layerPath.length !== 0) {
35613
- if (layerPath !== path2.slice(0, layerPath.length)) {
35882
+ if (layerPath !== path3.slice(0, layerPath.length)) {
35614
35883
  next(layerError);
35615
35884
  return;
35616
35885
  }
35617
- var c = path2[layerPath.length];
35886
+ var c = path3[layerPath.length];
35618
35887
  if (c && c !== "/" && c !== ".")
35619
35888
  return next(layerError);
35620
35889
  debug("trim prefix (%s) from url %s", layerPath, req.url);
@@ -35694,7 +35963,7 @@ var require_router = __commonJS({
35694
35963
  };
35695
35964
  proto.use = function use(fn) {
35696
35965
  var offset = 0;
35697
- var path2 = "/";
35966
+ var path3 = "/";
35698
35967
  if (typeof fn !== "function") {
35699
35968
  var arg = fn;
35700
35969
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -35702,7 +35971,7 @@ var require_router = __commonJS({
35702
35971
  }
35703
35972
  if (typeof arg !== "function") {
35704
35973
  offset = 1;
35705
- path2 = fn;
35974
+ path3 = fn;
35706
35975
  }
35707
35976
  }
35708
35977
  var callbacks = flatten(slice.call(arguments, offset));
@@ -35714,8 +35983,8 @@ var require_router = __commonJS({
35714
35983
  if (typeof fn !== "function") {
35715
35984
  throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
35716
35985
  }
35717
- debug("use %o %s", path2, fn.name || "<anonymous>");
35718
- var layer = new Layer(path2, {
35986
+ debug("use %o %s", path3, fn.name || "<anonymous>");
35987
+ var layer = new Layer(path3, {
35719
35988
  sensitive: this.caseSensitive,
35720
35989
  strict: false,
35721
35990
  end: false
@@ -35725,9 +35994,9 @@ var require_router = __commonJS({
35725
35994
  }
35726
35995
  return this;
35727
35996
  };
35728
- proto.route = function route(path2) {
35729
- var route2 = new Route(path2);
35730
- var layer = new Layer(path2, {
35997
+ proto.route = function route(path3) {
35998
+ var route2 = new Route(path3);
35999
+ var layer = new Layer(path3, {
35731
36000
  sensitive: this.caseSensitive,
35732
36001
  strict: this.strict,
35733
36002
  end: true
@@ -35737,8 +36006,8 @@ var require_router = __commonJS({
35737
36006
  return route2;
35738
36007
  };
35739
36008
  methods.concat("all").forEach(function(method) {
35740
- proto[method] = function(path2) {
35741
- var route = this.route(path2);
36009
+ proto[method] = function(path3) {
36010
+ var route = this.route(path3);
35742
36011
  route[method].apply(route, slice.call(arguments, 1));
35743
36012
  return this;
35744
36013
  };
@@ -35758,14 +36027,14 @@ var require_router = __commonJS({
35758
36027
  return void 0;
35759
36028
  }
35760
36029
  }
35761
- function getProtohost(url) {
35762
- if (typeof url !== "string" || url.length === 0 || url[0] === "/") {
36030
+ function getProtohost(url2) {
36031
+ if (typeof url2 !== "string" || url2.length === 0 || url2[0] === "/") {
35763
36032
  return void 0;
35764
36033
  }
35765
- var searchIndex = url.indexOf("?");
35766
- var pathLength = searchIndex !== -1 ? searchIndex : url.length;
35767
- var fqdnIndex = url.slice(0, pathLength).indexOf("://");
35768
- return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : void 0;
36034
+ var searchIndex = url2.indexOf("?");
36035
+ var pathLength = searchIndex !== -1 ? searchIndex : url2.length;
36036
+ var fqdnIndex = url2.slice(0, pathLength).indexOf("://");
36037
+ return fqdnIndex !== -1 ? url2.substring(0, url2.indexOf("/", 3 + fqdnIndex)) : void 0;
35769
36038
  }
35770
36039
  function gettype(obj) {
35771
36040
  var type = typeof obj;
@@ -35774,9 +36043,9 @@ var require_router = __commonJS({
35774
36043
  }
35775
36044
  return toString.call(obj).replace(objectRegExp, "$1");
35776
36045
  }
35777
- function matchLayer(layer, path2) {
36046
+ function matchLayer(layer, path3) {
35778
36047
  try {
35779
- return layer.match(path2);
36048
+ return layer.match(path3);
35780
36049
  } catch (err) {
35781
36050
  return err;
35782
36051
  }
@@ -35845,6 +36114,7 @@ var require_router = __commonJS({
35845
36114
  var require_init = __commonJS({
35846
36115
  "../../node_modules/express/lib/middleware/init.js"(exports) {
35847
36116
  "use strict";
36117
+ init_cjs_shim();
35848
36118
  var setPrototypeOf = require_setprototypeof();
35849
36119
  exports.init = function(app) {
35850
36120
  return function expressInit(req, res, next) {
@@ -35866,6 +36136,7 @@ var require_init = __commonJS({
35866
36136
  var require_query = __commonJS({
35867
36137
  "../../node_modules/express/lib/middleware/query.js"(exports, module) {
35868
36138
  "use strict";
36139
+ init_cjs_shim();
35869
36140
  var merge = require_utils_merge();
35870
36141
  var parseUrl = require_parseurl();
35871
36142
  var qs = require_lib4();
@@ -35894,14 +36165,15 @@ var require_query = __commonJS({
35894
36165
  var require_view = __commonJS({
35895
36166
  "../../node_modules/express/lib/view.js"(exports, module) {
35896
36167
  "use strict";
36168
+ init_cjs_shim();
35897
36169
  var debug = require_src5()("express:view");
35898
- var path2 = __require("path");
36170
+ var path3 = __require("path");
35899
36171
  var fs2 = __require("fs");
35900
- var dirname = path2.dirname;
35901
- var basename = path2.basename;
35902
- var extname = path2.extname;
35903
- var join = path2.join;
35904
- var resolve2 = path2.resolve;
36172
+ var dirname = path3.dirname;
36173
+ var basename = path3.basename;
36174
+ var extname = path3.extname;
36175
+ var join = path3.join;
36176
+ var resolve2 = path3.resolve;
35905
36177
  module.exports = View;
35906
36178
  function View(name, options) {
35907
36179
  var opts = options || {};
@@ -35930,17 +36202,17 @@ var require_view = __commonJS({
35930
36202
  this.path = this.lookup(fileName);
35931
36203
  }
35932
36204
  View.prototype.lookup = function lookup(name) {
35933
- var path3;
36205
+ var path4;
35934
36206
  var roots = [].concat(this.root);
35935
36207
  debug('lookup "%s"', name);
35936
- for (var i = 0; i < roots.length && !path3; i++) {
36208
+ for (var i = 0; i < roots.length && !path4; i++) {
35937
36209
  var root = roots[i];
35938
36210
  var loc = resolve2(root, name);
35939
36211
  var dir = dirname(loc);
35940
36212
  var file = basename(loc);
35941
- path3 = this.resolve(dir, file);
36213
+ path4 = this.resolve(dir, file);
35942
36214
  }
35943
- return path3;
36215
+ return path4;
35944
36216
  };
35945
36217
  View.prototype.render = function render(options, callback) {
35946
36218
  debug('render "%s"', this.path);
@@ -35948,21 +36220,21 @@ var require_view = __commonJS({
35948
36220
  };
35949
36221
  View.prototype.resolve = function resolve3(dir, file) {
35950
36222
  var ext = this.ext;
35951
- var path3 = join(dir, file);
35952
- var stat = tryStat(path3);
36223
+ var path4 = join(dir, file);
36224
+ var stat = tryStat(path4);
35953
36225
  if (stat && stat.isFile()) {
35954
- return path3;
36226
+ return path4;
35955
36227
  }
35956
- path3 = join(dir, basename(file, ext), "index" + ext);
35957
- stat = tryStat(path3);
36228
+ path4 = join(dir, basename(file, ext), "index" + ext);
36229
+ stat = tryStat(path4);
35958
36230
  if (stat && stat.isFile()) {
35959
- return path3;
36231
+ return path4;
35960
36232
  }
35961
36233
  };
35962
- function tryStat(path3) {
35963
- debug('stat "%s"', path3);
36234
+ function tryStat(path4) {
36235
+ debug('stat "%s"', path4);
35964
36236
  try {
35965
- return fs2.statSync(path3);
36237
+ return fs2.statSync(path4);
35966
36238
  } catch (e) {
35967
36239
  return void 0;
35968
36240
  }
@@ -35974,6 +36246,7 @@ var require_view = __commonJS({
35974
36246
  var require_content_disposition = __commonJS({
35975
36247
  "../../node_modules/content-disposition/index.js"(exports, module) {
35976
36248
  "use strict";
36249
+ init_cjs_shim();
35977
36250
  module.exports = contentDisposition;
35978
36251
  module.exports.parse = parse;
35979
36252
  var basename = __require("path").basename;
@@ -36136,6 +36409,7 @@ var require_content_disposition = __commonJS({
36136
36409
  // ../../node_modules/send/node_modules/debug/node_modules/ms/index.js
36137
36410
  var require_ms5 = __commonJS({
36138
36411
  "../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports, module) {
36412
+ init_cjs_shim();
36139
36413
  var s = 1e3;
36140
36414
  var m = s * 60;
36141
36415
  var h = m * 60;
@@ -36238,6 +36512,7 @@ var require_ms5 = __commonJS({
36238
36512
  // ../../node_modules/send/node_modules/debug/src/debug.js
36239
36513
  var require_debug5 = __commonJS({
36240
36514
  "../../node_modules/send/node_modules/debug/src/debug.js"(exports, module) {
36515
+ init_cjs_shim();
36241
36516
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
36242
36517
  exports.coerce = coerce;
36243
36518
  exports.disable = disable;
@@ -36347,6 +36622,7 @@ var require_debug5 = __commonJS({
36347
36622
  // ../../node_modules/send/node_modules/debug/src/browser.js
36348
36623
  var require_browser4 = __commonJS({
36349
36624
  "../../node_modules/send/node_modules/debug/src/browser.js"(exports, module) {
36625
+ init_cjs_shim();
36350
36626
  exports = module.exports = require_debug5();
36351
36627
  exports.log = log;
36352
36628
  exports.formatArgs = formatArgs;
@@ -36435,6 +36711,7 @@ var require_browser4 = __commonJS({
36435
36711
  // ../../node_modules/send/node_modules/debug/src/node.js
36436
36712
  var require_node4 = __commonJS({
36437
36713
  "../../node_modules/send/node_modules/debug/src/node.js"(exports, module) {
36714
+ init_cjs_shim();
36438
36715
  var tty = __require("tty");
36439
36716
  var util = __require("util");
36440
36717
  exports = module.exports = require_debug5();
@@ -36559,6 +36836,7 @@ var require_node4 = __commonJS({
36559
36836
  // ../../node_modules/send/node_modules/debug/src/index.js
36560
36837
  var require_src6 = __commonJS({
36561
36838
  "../../node_modules/send/node_modules/debug/src/index.js"(exports, module) {
36839
+ init_cjs_shim();
36562
36840
  if (typeof process !== "undefined" && process.type === "renderer") {
36563
36841
  module.exports = require_browser4();
36564
36842
  } else {
@@ -36571,6 +36849,7 @@ var require_src6 = __commonJS({
36571
36849
  var require_etag = __commonJS({
36572
36850
  "../../node_modules/etag/index.js"(exports, module) {
36573
36851
  "use strict";
36852
+ init_cjs_shim();
36574
36853
  module.exports = etag;
36575
36854
  var crypto3 = __require("crypto");
36576
36855
  var Stats = __require("fs").Stats;
@@ -36613,6 +36892,7 @@ var require_etag = __commonJS({
36613
36892
  var require_fresh = __commonJS({
36614
36893
  "../../node_modules/fresh/index.js"(exports, module) {
36615
36894
  "use strict";
36895
+ init_cjs_shim();
36616
36896
  var CACHE_CONTROL_NO_CACHE_REGEXP = /(?:^|,)\s*?no-cache\s*?(?:,|$)/;
36617
36897
  module.exports = fresh;
36618
36898
  function fresh(reqHeaders, resHeaders) {
@@ -36692,7 +36972,8 @@ var require_types = __commonJS({
36692
36972
  // ../../node_modules/mime/mime.js
36693
36973
  var require_mime = __commonJS({
36694
36974
  "../../node_modules/mime/mime.js"(exports, module) {
36695
- var path2 = __require("path");
36975
+ init_cjs_shim();
36976
+ var path3 = __require("path");
36696
36977
  var fs2 = __require("fs");
36697
36978
  function Mime() {
36698
36979
  this.types = /* @__PURE__ */ Object.create(null);
@@ -36722,8 +37003,8 @@ var require_mime = __commonJS({
36722
37003
  this.define(map);
36723
37004
  this._loading = null;
36724
37005
  };
36725
- Mime.prototype.lookup = function(path3, fallback) {
36726
- var ext = path3.replace(/^.*[\.\/\\]/, "").toLowerCase();
37006
+ Mime.prototype.lookup = function(path4, fallback) {
37007
+ var ext = path4.replace(/^.*[\.\/\\]/, "").toLowerCase();
36727
37008
  return this.types[ext] || fallback || this.default_type;
36728
37009
  };
36729
37010
  Mime.prototype.extension = function(mimeType) {
@@ -36746,6 +37027,7 @@ var require_mime = __commonJS({
36746
37027
  // ../../node_modules/send/node_modules/ms/index.js
36747
37028
  var require_ms6 = __commonJS({
36748
37029
  "../../node_modules/send/node_modules/ms/index.js"(exports, module) {
37030
+ init_cjs_shim();
36749
37031
  var s = 1e3;
36750
37032
  var m = s * 60;
36751
37033
  var h = m * 60;
@@ -36863,6 +37145,7 @@ var require_ms6 = __commonJS({
36863
37145
  var require_range_parser = __commonJS({
36864
37146
  "../../node_modules/range-parser/index.js"(exports, module) {
36865
37147
  "use strict";
37148
+ init_cjs_shim();
36866
37149
  module.exports = rangeParser;
36867
37150
  function rangeParser(size, str, options) {
36868
37151
  if (typeof str !== "string") {
@@ -36944,6 +37227,7 @@ var require_range_parser = __commonJS({
36944
37227
  var require_send = __commonJS({
36945
37228
  "../../node_modules/send/index.js"(exports, module) {
36946
37229
  "use strict";
37230
+ init_cjs_shim();
36947
37231
  var createError = require_http_errors();
36948
37232
  var debug = require_src6()("send");
36949
37233
  var deprecate = require_depd()("send");
@@ -36957,28 +37241,28 @@ var require_send = __commonJS({
36957
37241
  var ms = require_ms6();
36958
37242
  var onFinished = require_on_finished();
36959
37243
  var parseRange = require_range_parser();
36960
- var path2 = __require("path");
37244
+ var path3 = __require("path");
36961
37245
  var statuses = require_statuses();
36962
37246
  var Stream = __require("stream");
36963
37247
  var util = __require("util");
36964
- var extname = path2.extname;
36965
- var join = path2.join;
36966
- var normalize = path2.normalize;
36967
- var resolve2 = path2.resolve;
36968
- var sep = path2.sep;
37248
+ var extname = path3.extname;
37249
+ var join = path3.join;
37250
+ var normalize = path3.normalize;
37251
+ var resolve2 = path3.resolve;
37252
+ var sep = path3.sep;
36969
37253
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
36970
37254
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
36971
37255
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
36972
37256
  module.exports = send;
36973
37257
  module.exports.mime = mime;
36974
- function send(req, path3, options) {
36975
- return new SendStream(req, path3, options);
37258
+ function send(req, path4, options) {
37259
+ return new SendStream(req, path4, options);
36976
37260
  }
36977
- function SendStream(req, path3, options) {
37261
+ function SendStream(req, path4, options) {
36978
37262
  Stream.call(this);
36979
37263
  var opts = options || {};
36980
37264
  this.options = opts;
36981
- this.path = path3;
37265
+ this.path = path4;
36982
37266
  this.req = req;
36983
37267
  this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
36984
37268
  this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
@@ -37024,8 +37308,8 @@ var require_send = __commonJS({
37024
37308
  this._index = index2;
37025
37309
  return this;
37026
37310
  }, "send.index: pass index as option");
37027
- SendStream.prototype.root = function root(path3) {
37028
- this._root = resolve2(String(path3));
37311
+ SendStream.prototype.root = function root(path4) {
37312
+ this._root = resolve2(String(path4));
37029
37313
  debug("root %s", this._root);
37030
37314
  return this;
37031
37315
  };
@@ -37138,10 +37422,10 @@ var require_send = __commonJS({
37138
37422
  var lastModified = this.res.getHeader("Last-Modified");
37139
37423
  return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
37140
37424
  };
37141
- SendStream.prototype.redirect = function redirect(path3) {
37425
+ SendStream.prototype.redirect = function redirect(path4) {
37142
37426
  var res = this.res;
37143
37427
  if (hasListeners(this, "directory")) {
37144
- this.emit("directory", res, path3);
37428
+ this.emit("directory", res, path4);
37145
37429
  return;
37146
37430
  }
37147
37431
  if (this.hasTrailingSlash()) {
@@ -37161,42 +37445,42 @@ var require_send = __commonJS({
37161
37445
  SendStream.prototype.pipe = function pipe(res) {
37162
37446
  var root = this._root;
37163
37447
  this.res = res;
37164
- var path3 = decode(this.path);
37165
- if (path3 === -1) {
37448
+ var path4 = decode(this.path);
37449
+ if (path4 === -1) {
37166
37450
  this.error(400);
37167
37451
  return res;
37168
37452
  }
37169
- if (~path3.indexOf("\0")) {
37453
+ if (~path4.indexOf("\0")) {
37170
37454
  this.error(400);
37171
37455
  return res;
37172
37456
  }
37173
37457
  var parts;
37174
37458
  if (root !== null) {
37175
- if (path3) {
37176
- path3 = normalize("." + sep + path3);
37459
+ if (path4) {
37460
+ path4 = normalize("." + sep + path4);
37177
37461
  }
37178
- if (UP_PATH_REGEXP.test(path3)) {
37179
- debug('malicious path "%s"', path3);
37462
+ if (UP_PATH_REGEXP.test(path4)) {
37463
+ debug('malicious path "%s"', path4);
37180
37464
  this.error(403);
37181
37465
  return res;
37182
37466
  }
37183
- parts = path3.split(sep);
37184
- path3 = normalize(join(root, path3));
37467
+ parts = path4.split(sep);
37468
+ path4 = normalize(join(root, path4));
37185
37469
  } else {
37186
- if (UP_PATH_REGEXP.test(path3)) {
37187
- debug('malicious path "%s"', path3);
37470
+ if (UP_PATH_REGEXP.test(path4)) {
37471
+ debug('malicious path "%s"', path4);
37188
37472
  this.error(403);
37189
37473
  return res;
37190
37474
  }
37191
- parts = normalize(path3).split(sep);
37192
- path3 = resolve2(path3);
37475
+ parts = normalize(path4).split(sep);
37476
+ path4 = resolve2(path4);
37193
37477
  }
37194
37478
  if (containsDotFile(parts)) {
37195
37479
  var access = this._dotfiles;
37196
37480
  if (access === void 0) {
37197
37481
  access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
37198
37482
  }
37199
- debug('%s dotfile "%s"', access, path3);
37483
+ debug('%s dotfile "%s"', access, path4);
37200
37484
  switch (access) {
37201
37485
  case "allow":
37202
37486
  break;
@@ -37210,13 +37494,13 @@ var require_send = __commonJS({
37210
37494
  }
37211
37495
  }
37212
37496
  if (this._index.length && this.hasTrailingSlash()) {
37213
- this.sendIndex(path3);
37497
+ this.sendIndex(path4);
37214
37498
  return res;
37215
37499
  }
37216
- this.sendFile(path3);
37500
+ this.sendFile(path4);
37217
37501
  return res;
37218
37502
  };
37219
- SendStream.prototype.send = function send2(path3, stat) {
37503
+ SendStream.prototype.send = function send2(path4, stat) {
37220
37504
  var len = stat.size;
37221
37505
  var options = this.options;
37222
37506
  var opts = {};
@@ -37228,9 +37512,9 @@ var require_send = __commonJS({
37228
37512
  this.headersAlreadySent();
37229
37513
  return;
37230
37514
  }
37231
- debug('pipe "%s"', path3);
37232
- this.setHeader(path3, stat);
37233
- this.type(path3);
37515
+ debug('pipe "%s"', path4);
37516
+ this.setHeader(path4, stat);
37517
+ this.type(path4);
37234
37518
  if (this.isConditionalGET()) {
37235
37519
  if (this.isPreconditionFailure()) {
37236
37520
  this.error(412);
@@ -37280,28 +37564,28 @@ var require_send = __commonJS({
37280
37564
  res.end();
37281
37565
  return;
37282
37566
  }
37283
- this.stream(path3, opts);
37567
+ this.stream(path4, opts);
37284
37568
  };
37285
- SendStream.prototype.sendFile = function sendFile(path3) {
37569
+ SendStream.prototype.sendFile = function sendFile(path4) {
37286
37570
  var i = 0;
37287
37571
  var self2 = this;
37288
- debug('stat "%s"', path3);
37289
- fs2.stat(path3, function onstat(err, stat) {
37290
- if (err && err.code === "ENOENT" && !extname(path3) && path3[path3.length - 1] !== sep) {
37572
+ debug('stat "%s"', path4);
37573
+ fs2.stat(path4, function onstat(err, stat) {
37574
+ if (err && err.code === "ENOENT" && !extname(path4) && path4[path4.length - 1] !== sep) {
37291
37575
  return next(err);
37292
37576
  }
37293
37577
  if (err)
37294
37578
  return self2.onStatError(err);
37295
37579
  if (stat.isDirectory())
37296
- return self2.redirect(path3);
37297
- self2.emit("file", path3, stat);
37298
- self2.send(path3, stat);
37580
+ return self2.redirect(path4);
37581
+ self2.emit("file", path4, stat);
37582
+ self2.send(path4, stat);
37299
37583
  });
37300
37584
  function next(err) {
37301
37585
  if (self2._extensions.length <= i) {
37302
37586
  return err ? self2.onStatError(err) : self2.error(404);
37303
37587
  }
37304
- var p = path3 + "." + self2._extensions[i++];
37588
+ var p = path4 + "." + self2._extensions[i++];
37305
37589
  debug('stat "%s"', p);
37306
37590
  fs2.stat(p, function(err2, stat) {
37307
37591
  if (err2)
@@ -37313,7 +37597,7 @@ var require_send = __commonJS({
37313
37597
  });
37314
37598
  }
37315
37599
  };
37316
- SendStream.prototype.sendIndex = function sendIndex(path3) {
37600
+ SendStream.prototype.sendIndex = function sendIndex(path4) {
37317
37601
  var i = -1;
37318
37602
  var self2 = this;
37319
37603
  function next(err) {
@@ -37322,7 +37606,7 @@ var require_send = __commonJS({
37322
37606
  return self2.onStatError(err);
37323
37607
  return self2.error(404);
37324
37608
  }
37325
- var p = join(path3, self2._index[i]);
37609
+ var p = join(path4, self2._index[i]);
37326
37610
  debug('stat "%s"', p);
37327
37611
  fs2.stat(p, function(err2, stat) {
37328
37612
  if (err2)
@@ -37335,10 +37619,10 @@ var require_send = __commonJS({
37335
37619
  }
37336
37620
  next();
37337
37621
  };
37338
- SendStream.prototype.stream = function stream(path3, options) {
37622
+ SendStream.prototype.stream = function stream(path4, options) {
37339
37623
  var self2 = this;
37340
37624
  var res = this.res;
37341
- var stream2 = fs2.createReadStream(path3, options);
37625
+ var stream2 = fs2.createReadStream(path4, options);
37342
37626
  this.emit("stream", stream2);
37343
37627
  stream2.pipe(res);
37344
37628
  function cleanup() {
@@ -37353,11 +37637,11 @@ var require_send = __commonJS({
37353
37637
  self2.emit("end");
37354
37638
  });
37355
37639
  };
37356
- SendStream.prototype.type = function type(path3) {
37640
+ SendStream.prototype.type = function type(path4) {
37357
37641
  var res = this.res;
37358
37642
  if (res.getHeader("Content-Type"))
37359
37643
  return;
37360
- var type2 = mime.lookup(path3);
37644
+ var type2 = mime.lookup(path4);
37361
37645
  if (!type2) {
37362
37646
  debug("no content-type");
37363
37647
  return;
@@ -37366,9 +37650,9 @@ var require_send = __commonJS({
37366
37650
  debug("content-type %s", type2);
37367
37651
  res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
37368
37652
  };
37369
- SendStream.prototype.setHeader = function setHeader(path3, stat) {
37653
+ SendStream.prototype.setHeader = function setHeader(path4, stat) {
37370
37654
  var res = this.res;
37371
- this.emit("headers", res, path3, stat);
37655
+ this.emit("headers", res, path4, stat);
37372
37656
  if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
37373
37657
  debug("accept ranges");
37374
37658
  res.setHeader("Accept-Ranges", "bytes");
@@ -37427,9 +37711,9 @@ var require_send = __commonJS({
37427
37711
  }
37428
37712
  return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
37429
37713
  }
37430
- function decode(path3) {
37714
+ function decode(path4) {
37431
37715
  try {
37432
- return decodeURIComponent(path3);
37716
+ return decodeURIComponent(path4);
37433
37717
  } catch (err) {
37434
37718
  return -1;
37435
37719
  }
@@ -37498,6 +37782,7 @@ var require_send = __commonJS({
37498
37782
  var require_forwarded = __commonJS({
37499
37783
  "../../node_modules/forwarded/index.js"(exports, module) {
37500
37784
  "use strict";
37785
+ init_cjs_shim();
37501
37786
  module.exports = forwarded;
37502
37787
  function forwarded(req) {
37503
37788
  if (!req) {
@@ -37544,6 +37829,7 @@ var require_forwarded = __commonJS({
37544
37829
  // ../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js
37545
37830
  var require_ipaddr = __commonJS({
37546
37831
  "../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js"(exports, module) {
37832
+ init_cjs_shim();
37547
37833
  (function() {
37548
37834
  var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
37549
37835
  ipaddr = {};
@@ -38167,6 +38453,7 @@ var require_ipaddr = __commonJS({
38167
38453
  var require_proxy_addr = __commonJS({
38168
38454
  "../../node_modules/proxy-addr/index.js"(exports, module) {
38169
38455
  "use strict";
38456
+ init_cjs_shim();
38170
38457
  module.exports = proxyaddr;
38171
38458
  module.exports.all = alladdrs;
38172
38459
  module.exports.compile = compile;
@@ -38329,6 +38616,7 @@ var require_proxy_addr = __commonJS({
38329
38616
  var require_utils3 = __commonJS({
38330
38617
  "../../node_modules/express/lib/utils.js"(exports) {
38331
38618
  "use strict";
38619
+ init_cjs_shim();
38332
38620
  var Buffer2 = require_safe_buffer().Buffer;
38333
38621
  var contentDisposition = require_content_disposition();
38334
38622
  var contentType = require_content_type();
@@ -38341,12 +38629,12 @@ var require_utils3 = __commonJS({
38341
38629
  var querystring = __require("querystring");
38342
38630
  exports.etag = createETagGenerator({ weak: false });
38343
38631
  exports.wetag = createETagGenerator({ weak: true });
38344
- exports.isAbsolute = function(path2) {
38345
- if ("/" === path2[0])
38632
+ exports.isAbsolute = function(path3) {
38633
+ if ("/" === path3[0])
38346
38634
  return true;
38347
- if (":" === path2[1] && ("\\" === path2[2] || "/" === path2[2]))
38635
+ if (":" === path3[1] && ("\\" === path3[2] || "/" === path3[2]))
38348
38636
  return true;
38349
- if ("\\\\" === path2.substring(0, 2))
38637
+ if ("\\\\" === path3.substring(0, 2))
38350
38638
  return true;
38351
38639
  };
38352
38640
  exports.flatten = deprecate.function(
@@ -38470,6 +38758,7 @@ var require_utils3 = __commonJS({
38470
38758
  var require_application = __commonJS({
38471
38759
  "../../node_modules/express/lib/application.js"(exports, module) {
38472
38760
  "use strict";
38761
+ init_cjs_shim();
38473
38762
  var finalhandler = require_finalhandler();
38474
38763
  var Router = require_router();
38475
38764
  var methods = require_methods();
@@ -38559,7 +38848,7 @@ var require_application = __commonJS({
38559
38848
  };
38560
38849
  app.use = function use(fn) {
38561
38850
  var offset = 0;
38562
- var path2 = "/";
38851
+ var path3 = "/";
38563
38852
  if (typeof fn !== "function") {
38564
38853
  var arg = fn;
38565
38854
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -38567,7 +38856,7 @@ var require_application = __commonJS({
38567
38856
  }
38568
38857
  if (typeof arg !== "function") {
38569
38858
  offset = 1;
38570
- path2 = fn;
38859
+ path3 = fn;
38571
38860
  }
38572
38861
  }
38573
38862
  var fns = flatten(slice.call(arguments, offset));
@@ -38578,12 +38867,12 @@ var require_application = __commonJS({
38578
38867
  var router = this._router;
38579
38868
  fns.forEach(function(fn2) {
38580
38869
  if (!fn2 || !fn2.handle || !fn2.set) {
38581
- return router.use(path2, fn2);
38870
+ return router.use(path3, fn2);
38582
38871
  }
38583
- debug(".use app under %s", path2);
38584
- fn2.mountpath = path2;
38872
+ debug(".use app under %s", path3);
38873
+ fn2.mountpath = path3;
38585
38874
  fn2.parent = this;
38586
- router.use(path2, function mounted_app(req, res, next) {
38875
+ router.use(path3, function mounted_app(req, res, next) {
38587
38876
  var orig = req.app;
38588
38877
  fn2.handle(req, res, function(err) {
38589
38878
  setPrototypeOf(req, orig.request);
@@ -38595,9 +38884,9 @@ var require_application = __commonJS({
38595
38884
  }, this);
38596
38885
  return this;
38597
38886
  };
38598
- app.route = function route(path2) {
38887
+ app.route = function route(path3) {
38599
38888
  this.lazyrouter();
38600
- return this._router.route(path2);
38889
+ return this._router.route(path3);
38601
38890
  };
38602
38891
  app.engine = function engine(ext, fn) {
38603
38892
  if (typeof fn !== "function") {
@@ -38648,7 +38937,7 @@ var require_application = __commonJS({
38648
38937
  }
38649
38938
  return this;
38650
38939
  };
38651
- app.path = function path2() {
38940
+ app.path = function path3() {
38652
38941
  return this.parent ? this.parent.path() + this.mountpath : "";
38653
38942
  };
38654
38943
  app.enabled = function enabled(setting) {
@@ -38664,19 +38953,19 @@ var require_application = __commonJS({
38664
38953
  return this.set(setting, false);
38665
38954
  };
38666
38955
  methods.forEach(function(method) {
38667
- app[method] = function(path2) {
38956
+ app[method] = function(path3) {
38668
38957
  if (method === "get" && arguments.length === 1) {
38669
- return this.set(path2);
38958
+ return this.set(path3);
38670
38959
  }
38671
38960
  this.lazyrouter();
38672
- var route = this._router.route(path2);
38961
+ var route = this._router.route(path3);
38673
38962
  route[method].apply(route, slice.call(arguments, 1));
38674
38963
  return this;
38675
38964
  };
38676
38965
  });
38677
- app.all = function all(path2) {
38966
+ app.all = function all(path3) {
38678
38967
  this.lazyrouter();
38679
- var route = this._router.route(path2);
38968
+ var route = this._router.route(path3);
38680
38969
  var args = slice.call(arguments, 1);
38681
38970
  for (var i = 0; i < methods.length; i++) {
38682
38971
  route[methods[i]].apply(route, args);
@@ -38747,6 +39036,7 @@ var require_application = __commonJS({
38747
39036
  var require_charset = __commonJS({
38748
39037
  "../../node_modules/negotiator/lib/charset.js"(exports, module) {
38749
39038
  "use strict";
39039
+ init_cjs_shim();
38750
39040
  module.exports = preferredCharsets;
38751
39041
  module.exports.preferredCharsets = preferredCharsets;
38752
39042
  var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
@@ -38835,6 +39125,7 @@ var require_charset = __commonJS({
38835
39125
  var require_encoding2 = __commonJS({
38836
39126
  "../../node_modules/negotiator/lib/encoding.js"(exports, module) {
38837
39127
  "use strict";
39128
+ init_cjs_shim();
38838
39129
  module.exports = preferredEncodings;
38839
39130
  module.exports.preferredEncodings = preferredEncodings;
38840
39131
  var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
@@ -38934,6 +39225,7 @@ var require_encoding2 = __commonJS({
38934
39225
  var require_language = __commonJS({
38935
39226
  "../../node_modules/negotiator/lib/language.js"(exports, module) {
38936
39227
  "use strict";
39228
+ init_cjs_shim();
38937
39229
  module.exports = preferredLanguages;
38938
39230
  module.exports.preferredLanguages = preferredLanguages;
38939
39231
  var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;
@@ -39033,6 +39325,7 @@ var require_language = __commonJS({
39033
39325
  var require_mediaType = __commonJS({
39034
39326
  "../../node_modules/negotiator/lib/mediaType.js"(exports, module) {
39035
39327
  "use strict";
39328
+ init_cjs_shim();
39036
39329
  module.exports = preferredMediaTypes;
39037
39330
  module.exports.preferredMediaTypes = preferredMediaTypes;
39038
39331
  var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
@@ -39196,6 +39489,7 @@ var require_mediaType = __commonJS({
39196
39489
  var require_negotiator = __commonJS({
39197
39490
  "../../node_modules/negotiator/index.js"(exports, module) {
39198
39491
  "use strict";
39492
+ init_cjs_shim();
39199
39493
  var preferredCharsets = require_charset();
39200
39494
  var preferredEncodings = require_encoding2();
39201
39495
  var preferredLanguages = require_language();
@@ -47775,6 +48069,7 @@ var require_db2 = __commonJS({
47775
48069
  // ../../node_modules/express/node_modules/mime-db/index.js
47776
48070
  var require_mime_db2 = __commonJS({
47777
48071
  "../../node_modules/express/node_modules/mime-db/index.js"(exports, module) {
48072
+ init_cjs_shim();
47778
48073
  module.exports = require_db2();
47779
48074
  }
47780
48075
  });
@@ -47783,6 +48078,7 @@ var require_mime_db2 = __commonJS({
47783
48078
  var require_mime_types2 = __commonJS({
47784
48079
  "../../node_modules/express/node_modules/mime-types/index.js"(exports) {
47785
48080
  "use strict";
48081
+ init_cjs_shim();
47786
48082
  var db = require_mime_db2();
47787
48083
  var extname = __require("path").extname;
47788
48084
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
@@ -47835,11 +48131,11 @@ var require_mime_types2 = __commonJS({
47835
48131
  }
47836
48132
  return exts[0];
47837
48133
  }
47838
- function lookup(path2) {
47839
- if (!path2 || typeof path2 !== "string") {
48134
+ function lookup(path3) {
48135
+ if (!path3 || typeof path3 !== "string") {
47840
48136
  return false;
47841
48137
  }
47842
- var extension2 = extname("x." + path2).toLowerCase().substr(1);
48138
+ var extension2 = extname("x." + path3).toLowerCase().substr(1);
47843
48139
  if (!extension2) {
47844
48140
  return false;
47845
48141
  }
@@ -47874,6 +48170,7 @@ var require_mime_types2 = __commonJS({
47874
48170
  var require_accepts = __commonJS({
47875
48171
  "../../node_modules/express/node_modules/accepts/index.js"(exports, module) {
47876
48172
  "use strict";
48173
+ init_cjs_shim();
47877
48174
  var Negotiator = require_negotiator();
47878
48175
  var mime = require_mime_types2();
47879
48176
  module.exports = Accepts;
@@ -47955,6 +48252,7 @@ var require_accepts = __commonJS({
47955
48252
  var require_request = __commonJS({
47956
48253
  "../../node_modules/express/lib/request.js"(exports, module) {
47957
48254
  "use strict";
48255
+ init_cjs_shim();
47958
48256
  var accepts = require_accepts();
47959
48257
  var deprecate = require_depd()("express");
47960
48258
  var isIP = __require("net").isIP;
@@ -48071,7 +48369,7 @@ var require_request = __commonJS({
48071
48369
  var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
48072
48370
  return subdomains2.slice(offset);
48073
48371
  });
48074
- defineGetter(req, "path", function path2() {
48372
+ defineGetter(req, "path", function path3() {
48075
48373
  return parse(this).pathname;
48076
48374
  });
48077
48375
  defineGetter(req, "hostname", function hostname() {
@@ -48125,6 +48423,7 @@ var require_request = __commonJS({
48125
48423
  // ../../node_modules/cookie-signature/index.js
48126
48424
  var require_cookie_signature = __commonJS({
48127
48425
  "../../node_modules/cookie-signature/index.js"(exports) {
48426
+ init_cjs_shim();
48128
48427
  var crypto3 = __require("crypto");
48129
48428
  exports.sign = function(val, secret) {
48130
48429
  if ("string" != typeof val)
@@ -48151,6 +48450,7 @@ var require_cookie_signature = __commonJS({
48151
48450
  var require_cookie = __commonJS({
48152
48451
  "../../node_modules/express/node_modules/cookie/index.js"(exports) {
48153
48452
  "use strict";
48453
+ init_cjs_shim();
48154
48454
  exports.parse = parse;
48155
48455
  exports.serialize = serialize;
48156
48456
  var __toString = Object.prototype.toString;
@@ -48293,6 +48593,7 @@ var require_cookie = __commonJS({
48293
48593
  var require_vary = __commonJS({
48294
48594
  "../../node_modules/vary/index.js"(exports, module) {
48295
48595
  "use strict";
48596
+ init_cjs_shim();
48296
48597
  module.exports = vary;
48297
48598
  module.exports.append = append;
48298
48599
  var FIELD_NAME_REGEXP = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
@@ -48366,6 +48667,7 @@ var require_vary = __commonJS({
48366
48667
  var require_response = __commonJS({
48367
48668
  "../../node_modules/express/lib/response.js"(exports, module) {
48368
48669
  "use strict";
48670
+ init_cjs_shim();
48369
48671
  var Buffer2 = require_safe_buffer().Buffer;
48370
48672
  var contentDisposition = require_content_disposition();
48371
48673
  var createError = require_http_errors();
@@ -48375,7 +48677,7 @@ var require_response = __commonJS({
48375
48677
  var http = __require("http");
48376
48678
  var isAbsolute = require_utils3().isAbsolute;
48377
48679
  var onFinished = require_on_finished();
48378
- var path2 = __require("path");
48680
+ var path3 = __require("path");
48379
48681
  var statuses = require_statuses();
48380
48682
  var merge = require_utils_merge();
48381
48683
  var sign = require_cookie_signature().sign;
@@ -48384,9 +48686,9 @@ var require_response = __commonJS({
48384
48686
  var setCharset = require_utils3().setCharset;
48385
48687
  var cookie = require_cookie();
48386
48688
  var send = require_send();
48387
- var extname = path2.extname;
48689
+ var extname = path3.extname;
48388
48690
  var mime = send.mime;
48389
- var resolve2 = path2.resolve;
48691
+ var resolve2 = path3.resolve;
48390
48692
  var vary = require_vary();
48391
48693
  var res = Object.create(http.ServerResponse.prototype);
48392
48694
  module.exports = res;
@@ -48564,26 +48866,26 @@ var require_response = __commonJS({
48564
48866
  this.type("txt");
48565
48867
  return this.send(body);
48566
48868
  };
48567
- res.sendFile = function sendFile(path3, options, callback) {
48869
+ res.sendFile = function sendFile(path4, options, callback) {
48568
48870
  var done = callback;
48569
48871
  var req = this.req;
48570
48872
  var res2 = this;
48571
48873
  var next = req.next;
48572
48874
  var opts = options || {};
48573
- if (!path3) {
48875
+ if (!path4) {
48574
48876
  throw new TypeError("path argument is required to res.sendFile");
48575
48877
  }
48576
- if (typeof path3 !== "string") {
48878
+ if (typeof path4 !== "string") {
48577
48879
  throw new TypeError("path must be a string to res.sendFile");
48578
48880
  }
48579
48881
  if (typeof options === "function") {
48580
48882
  done = options;
48581
48883
  opts = {};
48582
48884
  }
48583
- if (!opts.root && !isAbsolute(path3)) {
48885
+ if (!opts.root && !isAbsolute(path4)) {
48584
48886
  throw new TypeError("path must be absolute or specify root to res.sendFile");
48585
48887
  }
48586
- var pathname = encodeURI(path3);
48888
+ var pathname = encodeURI(path4);
48587
48889
  var file = send(req, pathname, opts);
48588
48890
  sendfile(res2, file, opts, function(err) {
48589
48891
  if (done)
@@ -48595,7 +48897,7 @@ var require_response = __commonJS({
48595
48897
  }
48596
48898
  });
48597
48899
  };
48598
- res.sendfile = function(path3, options, callback) {
48900
+ res.sendfile = function(path4, options, callback) {
48599
48901
  var done = callback;
48600
48902
  var req = this.req;
48601
48903
  var res2 = this;
@@ -48605,7 +48907,7 @@ var require_response = __commonJS({
48605
48907
  done = options;
48606
48908
  opts = {};
48607
48909
  }
48608
- var file = send(req, path3, opts);
48910
+ var file = send(req, path4, opts);
48609
48911
  sendfile(res2, file, opts, function(err) {
48610
48912
  if (done)
48611
48913
  return done(err);
@@ -48620,7 +48922,7 @@ var require_response = __commonJS({
48620
48922
  res.sendfile,
48621
48923
  "res.sendfile: Use res.sendFile instead"
48622
48924
  );
48623
- res.download = function download(path3, filename, options, callback) {
48925
+ res.download = function download(path4, filename, options, callback) {
48624
48926
  var done = callback;
48625
48927
  var name = filename;
48626
48928
  var opts = options || null;
@@ -48637,7 +48939,7 @@ var require_response = __commonJS({
48637
48939
  opts = filename;
48638
48940
  }
48639
48941
  var headers = {
48640
- "Content-Disposition": contentDisposition(name || path3)
48942
+ "Content-Disposition": contentDisposition(name || path4)
48641
48943
  };
48642
48944
  if (opts && opts.headers) {
48643
48945
  var keys = Object.keys(opts.headers);
@@ -48650,7 +48952,7 @@ var require_response = __commonJS({
48650
48952
  }
48651
48953
  opts = Object.create(opts);
48652
48954
  opts.headers = headers;
48653
- var fullPath = !opts.root ? resolve2(path3) : path3;
48955
+ var fullPath = !opts.root ? resolve2(path4) : path4;
48654
48956
  return this.sendFile(fullPath, opts, done);
48655
48957
  };
48656
48958
  res.contentType = res.type = function contentType(type) {
@@ -48746,15 +49048,15 @@ var require_response = __commonJS({
48746
49048
  this.append("Set-Cookie", cookie.serialize(name, String(val), opts));
48747
49049
  return this;
48748
49050
  };
48749
- res.location = function location2(url) {
48750
- var loc = url;
48751
- if (url === "back") {
49051
+ res.location = function location2(url2) {
49052
+ var loc = url2;
49053
+ if (url2 === "back") {
48752
49054
  loc = this.req.get("Referrer") || "/";
48753
49055
  }
48754
49056
  return this.set("Location", encodeUrl(loc));
48755
49057
  };
48756
- res.redirect = function redirect(url) {
48757
- var address = url;
49058
+ res.redirect = function redirect(url2) {
49059
+ var address = url2;
48758
49060
  var body;
48759
49061
  var status = 302;
48760
49062
  if (arguments.length === 2) {
@@ -48911,12 +49213,13 @@ var require_response = __commonJS({
48911
49213
  var require_serve_static = __commonJS({
48912
49214
  "../../node_modules/serve-static/index.js"(exports, module) {
48913
49215
  "use strict";
49216
+ init_cjs_shim();
48914
49217
  var encodeUrl = require_encodeurl();
48915
49218
  var escapeHtml = require_escape_html();
48916
49219
  var parseUrl = require_parseurl();
48917
49220
  var resolve2 = __require("path").resolve;
48918
49221
  var send = require_send();
48919
- var url = __require("url");
49222
+ var url2 = __require("url");
48920
49223
  module.exports = serveStatic;
48921
49224
  module.exports.mime = send.mime;
48922
49225
  function serveStatic(root, options) {
@@ -48949,11 +49252,11 @@ var require_serve_static = __commonJS({
48949
49252
  }
48950
49253
  var forwardError = !fallthrough;
48951
49254
  var originalUrl = parseUrl.original(req);
48952
- var path2 = parseUrl(req).pathname;
48953
- if (path2 === "/" && originalUrl.pathname.substr(-1) !== "/") {
48954
- path2 = "";
49255
+ var path3 = parseUrl(req).pathname;
49256
+ if (path3 === "/" && originalUrl.pathname.substr(-1) !== "/") {
49257
+ path3 = "";
48955
49258
  }
48956
- var stream = send(req, path2, opts);
49259
+ var stream = send(req, path3, opts);
48957
49260
  stream.on("directory", onDirectory);
48958
49261
  if (setHeaders) {
48959
49262
  stream.on("headers", setHeaders);
@@ -48998,7 +49301,7 @@ var require_serve_static = __commonJS({
48998
49301
  var originalUrl = parseUrl.original(this.req);
48999
49302
  originalUrl.path = null;
49000
49303
  originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + "/");
49001
- var loc = encodeUrl(url.format(originalUrl));
49304
+ var loc = encodeUrl(url2.format(originalUrl));
49002
49305
  var doc = createHtmlDocument("Redirecting", 'Redirecting to <a href="' + escapeHtml(loc) + '">' + escapeHtml(loc) + "</a>");
49003
49306
  res.statusCode = 301;
49004
49307
  res.setHeader("Content-Type", "text/html; charset=UTF-8");
@@ -49016,6 +49319,7 @@ var require_serve_static = __commonJS({
49016
49319
  var require_express = __commonJS({
49017
49320
  "../../node_modules/express/lib/express.js"(exports, module) {
49018
49321
  "use strict";
49322
+ init_cjs_shim();
49019
49323
  var bodyParser = require_body_parser();
49020
49324
  var EventEmitter = __require("events").EventEmitter;
49021
49325
  var mixin = require_merge_descriptors();
@@ -49085,6 +49389,7 @@ var require_express = __commonJS({
49085
49389
  var require_express2 = __commonJS({
49086
49390
  "../../node_modules/express/index.js"(exports, module) {
49087
49391
  "use strict";
49392
+ init_cjs_shim();
49088
49393
  module.exports = require_express();
49089
49394
  }
49090
49395
  });
@@ -49092,6 +49397,7 @@ var require_express2 = __commonJS({
49092
49397
  // ../../node_modules/lodash/lodash.js
49093
49398
  var require_lodash8 = __commonJS({
49094
49399
  "../../node_modules/lodash/lodash.js"(exports, module) {
49400
+ init_cjs_shim();
49095
49401
  (function() {
49096
49402
  var undefined2;
49097
49403
  var VERSION = "4.17.21";
@@ -50419,11 +50725,11 @@ var require_lodash8 = __commonJS({
50419
50725
  return isFunction(object[key]);
50420
50726
  });
50421
50727
  }
50422
- function baseGet(object, path2) {
50423
- path2 = castPath(path2, object);
50424
- var index = 0, length = path2.length;
50728
+ function baseGet(object, path3) {
50729
+ path3 = castPath(path3, object);
50730
+ var index = 0, length = path3.length;
50425
50731
  while (object != null && index < length) {
50426
- object = object[toKey(path2[index++])];
50732
+ object = object[toKey(path3[index++])];
50427
50733
  }
50428
50734
  return index && index == length ? object : undefined2;
50429
50735
  }
@@ -50487,10 +50793,10 @@ var require_lodash8 = __commonJS({
50487
50793
  });
50488
50794
  return accumulator;
50489
50795
  }
50490
- function baseInvoke(object, path2, args) {
50491
- path2 = castPath(path2, object);
50492
- object = parent(object, path2);
50493
- var func = object == null ? object : object[toKey(last(path2))];
50796
+ function baseInvoke(object, path3, args) {
50797
+ path3 = castPath(path3, object);
50798
+ object = parent(object, path3);
50799
+ var func = object == null ? object : object[toKey(last(path3))];
50494
50800
  return func == null ? undefined2 : apply(func, object, args);
50495
50801
  }
50496
50802
  function baseIsArguments(value) {
@@ -50646,13 +50952,13 @@ var require_lodash8 = __commonJS({
50646
50952
  return object === source || baseIsMatch(object, source, matchData);
50647
50953
  };
50648
50954
  }
50649
- function baseMatchesProperty(path2, srcValue) {
50650
- if (isKey(path2) && isStrictComparable(srcValue)) {
50651
- return matchesStrictComparable(toKey(path2), srcValue);
50955
+ function baseMatchesProperty(path3, srcValue) {
50956
+ if (isKey(path3) && isStrictComparable(srcValue)) {
50957
+ return matchesStrictComparable(toKey(path3), srcValue);
50652
50958
  }
50653
50959
  return function(object) {
50654
- var objValue = get(object, path2);
50655
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
50960
+ var objValue = get(object, path3);
50961
+ return objValue === undefined2 && objValue === srcValue ? hasIn(object, path3) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
50656
50962
  };
50657
50963
  }
50658
50964
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -50749,23 +51055,23 @@ var require_lodash8 = __commonJS({
50749
51055
  });
50750
51056
  }
50751
51057
  function basePick(object, paths) {
50752
- return basePickBy(object, paths, function(value, path2) {
50753
- return hasIn(object, path2);
51058
+ return basePickBy(object, paths, function(value, path3) {
51059
+ return hasIn(object, path3);
50754
51060
  });
50755
51061
  }
50756
51062
  function basePickBy(object, paths, predicate) {
50757
51063
  var index = -1, length = paths.length, result2 = {};
50758
51064
  while (++index < length) {
50759
- var path2 = paths[index], value = baseGet(object, path2);
50760
- if (predicate(value, path2)) {
50761
- baseSet(result2, castPath(path2, object), value);
51065
+ var path3 = paths[index], value = baseGet(object, path3);
51066
+ if (predicate(value, path3)) {
51067
+ baseSet(result2, castPath(path3, object), value);
50762
51068
  }
50763
51069
  }
50764
51070
  return result2;
50765
51071
  }
50766
- function basePropertyDeep(path2) {
51072
+ function basePropertyDeep(path3) {
50767
51073
  return function(object) {
50768
- return baseGet(object, path2);
51074
+ return baseGet(object, path3);
50769
51075
  };
50770
51076
  }
50771
51077
  function basePullAll(array, values2, iteratee2, comparator) {
@@ -50839,14 +51145,14 @@ var require_lodash8 = __commonJS({
50839
51145
  var array = values(collection);
50840
51146
  return shuffleSelf(array, baseClamp(n, 0, array.length));
50841
51147
  }
50842
- function baseSet(object, path2, value, customizer) {
51148
+ function baseSet(object, path3, value, customizer) {
50843
51149
  if (!isObject(object)) {
50844
51150
  return object;
50845
51151
  }
50846
- path2 = castPath(path2, object);
50847
- var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
51152
+ path3 = castPath(path3, object);
51153
+ var index = -1, length = path3.length, lastIndex = length - 1, nested = object;
50848
51154
  while (nested != null && ++index < length) {
50849
- var key = toKey(path2[index]), newValue = value;
51155
+ var key = toKey(path3[index]), newValue = value;
50850
51156
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
50851
51157
  return object;
50852
51158
  }
@@ -50854,7 +51160,7 @@ var require_lodash8 = __commonJS({
50854
51160
  var objValue = nested[key];
50855
51161
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
50856
51162
  if (newValue === undefined2) {
50857
- newValue = isObject(objValue) ? objValue : isIndex(path2[index + 1]) ? [] : {};
51163
+ newValue = isObject(objValue) ? objValue : isIndex(path3[index + 1]) ? [] : {};
50858
51164
  }
50859
51165
  }
50860
51166
  assignValue(nested, key, newValue);
@@ -51020,13 +51326,13 @@ var require_lodash8 = __commonJS({
51020
51326
  }
51021
51327
  return result2;
51022
51328
  }
51023
- function baseUnset(object, path2) {
51024
- path2 = castPath(path2, object);
51025
- object = parent(object, path2);
51026
- return object == null || delete object[toKey(last(path2))];
51329
+ function baseUnset(object, path3) {
51330
+ path3 = castPath(path3, object);
51331
+ object = parent(object, path3);
51332
+ return object == null || delete object[toKey(last(path3))];
51027
51333
  }
51028
- function baseUpdate(object, path2, updater, customizer) {
51029
- return baseSet(object, path2, updater(baseGet(object, path2)), customizer);
51334
+ function baseUpdate(object, path3, updater, customizer) {
51335
+ return baseSet(object, path3, updater(baseGet(object, path3)), customizer);
51030
51336
  }
51031
51337
  function baseWhile(array, predicate, isDrop, fromRight) {
51032
51338
  var length = array.length, index = fromRight ? length : -1;
@@ -51909,11 +52215,11 @@ var require_lodash8 = __commonJS({
51909
52215
  var match = source.match(reWrapDetails);
51910
52216
  return match ? match[1].split(reSplitDetails) : [];
51911
52217
  }
51912
- function hasPath(object, path2, hasFunc) {
51913
- path2 = castPath(path2, object);
51914
- var index = -1, length = path2.length, result2 = false;
52218
+ function hasPath(object, path3, hasFunc) {
52219
+ path3 = castPath(path3, object);
52220
+ var index = -1, length = path3.length, result2 = false;
51915
52221
  while (++index < length) {
51916
- var key = toKey(path2[index]);
52222
+ var key = toKey(path3[index]);
51917
52223
  if (!(result2 = object != null && hasFunc(object, key))) {
51918
52224
  break;
51919
52225
  }
@@ -52115,8 +52421,8 @@ var require_lodash8 = __commonJS({
52115
52421
  return apply(func, this, otherArgs);
52116
52422
  };
52117
52423
  }
52118
- function parent(object, path2) {
52119
- return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1));
52424
+ function parent(object, path3) {
52425
+ return path3.length < 2 ? object : baseGet(object, baseSlice(path3, 0, -1));
52120
52426
  }
52121
52427
  function reorder(array, indexes) {
52122
52428
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
@@ -52751,10 +53057,10 @@ var require_lodash8 = __commonJS({
52751
53057
  }
52752
53058
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
52753
53059
  }
52754
- var invokeMap = baseRest(function(collection, path2, args) {
52755
- var index = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
53060
+ var invokeMap = baseRest(function(collection, path3, args) {
53061
+ var index = -1, isFunc = typeof path3 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
52756
53062
  baseEach(collection, function(value) {
52757
- result2[++index] = isFunc ? apply(path2, value, args) : baseInvoke(value, path2, args);
53063
+ result2[++index] = isFunc ? apply(path3, value, args) : baseInvoke(value, path3, args);
52758
53064
  });
52759
53065
  return result2;
52760
53066
  });
@@ -53406,15 +53712,15 @@ var require_lodash8 = __commonJS({
53406
53712
  function functionsIn(object) {
53407
53713
  return object == null ? [] : baseFunctions(object, keysIn(object));
53408
53714
  }
53409
- function get(object, path2, defaultValue) {
53410
- var result2 = object == null ? undefined2 : baseGet(object, path2);
53715
+ function get(object, path3, defaultValue) {
53716
+ var result2 = object == null ? undefined2 : baseGet(object, path3);
53411
53717
  return result2 === undefined2 ? defaultValue : result2;
53412
53718
  }
53413
- function has(object, path2) {
53414
- return object != null && hasPath(object, path2, baseHas);
53719
+ function has(object, path3) {
53720
+ return object != null && hasPath(object, path3, baseHas);
53415
53721
  }
53416
- function hasIn(object, path2) {
53417
- return object != null && hasPath(object, path2, baseHasIn);
53722
+ function hasIn(object, path3) {
53723
+ return object != null && hasPath(object, path3, baseHasIn);
53418
53724
  }
53419
53725
  var invert = createInverter(function(result2, value, key) {
53420
53726
  if (value != null && typeof value.toString != "function") {
@@ -53467,10 +53773,10 @@ var require_lodash8 = __commonJS({
53467
53773
  return result2;
53468
53774
  }
53469
53775
  var isDeep = false;
53470
- paths = arrayMap(paths, function(path2) {
53471
- path2 = castPath(path2, object);
53472
- isDeep || (isDeep = path2.length > 1);
53473
- return path2;
53776
+ paths = arrayMap(paths, function(path3) {
53777
+ path3 = castPath(path3, object);
53778
+ isDeep || (isDeep = path3.length > 1);
53779
+ return path3;
53474
53780
  });
53475
53781
  copyObject(object, getAllKeysIn(object), result2);
53476
53782
  if (isDeep) {
@@ -53496,19 +53802,19 @@ var require_lodash8 = __commonJS({
53496
53802
  return [prop];
53497
53803
  });
53498
53804
  predicate = getIteratee(predicate);
53499
- return basePickBy(object, props, function(value, path2) {
53500
- return predicate(value, path2[0]);
53805
+ return basePickBy(object, props, function(value, path3) {
53806
+ return predicate(value, path3[0]);
53501
53807
  });
53502
53808
  }
53503
- function result(object, path2, defaultValue) {
53504
- path2 = castPath(path2, object);
53505
- var index = -1, length = path2.length;
53809
+ function result(object, path3, defaultValue) {
53810
+ path3 = castPath(path3, object);
53811
+ var index = -1, length = path3.length;
53506
53812
  if (!length) {
53507
53813
  length = 1;
53508
53814
  object = undefined2;
53509
53815
  }
53510
53816
  while (++index < length) {
53511
- var value = object == null ? undefined2 : object[toKey(path2[index])];
53817
+ var value = object == null ? undefined2 : object[toKey(path3[index])];
53512
53818
  if (value === undefined2) {
53513
53819
  index = length;
53514
53820
  value = defaultValue;
@@ -53517,12 +53823,12 @@ var require_lodash8 = __commonJS({
53517
53823
  }
53518
53824
  return object;
53519
53825
  }
53520
- function set(object, path2, value) {
53521
- return object == null ? object : baseSet(object, path2, value);
53826
+ function set(object, path3, value) {
53827
+ return object == null ? object : baseSet(object, path3, value);
53522
53828
  }
53523
- function setWith(object, path2, value, customizer) {
53829
+ function setWith(object, path3, value, customizer) {
53524
53830
  customizer = typeof customizer == "function" ? customizer : undefined2;
53525
- return object == null ? object : baseSet(object, path2, value, customizer);
53831
+ return object == null ? object : baseSet(object, path3, value, customizer);
53526
53832
  }
53527
53833
  var toPairs = createToPairs(keys);
53528
53834
  var toPairsIn = createToPairs(keysIn);
@@ -53544,15 +53850,15 @@ var require_lodash8 = __commonJS({
53544
53850
  });
53545
53851
  return accumulator;
53546
53852
  }
53547
- function unset(object, path2) {
53548
- return object == null ? true : baseUnset(object, path2);
53853
+ function unset(object, path3) {
53854
+ return object == null ? true : baseUnset(object, path3);
53549
53855
  }
53550
- function update(object, path2, updater) {
53551
- return object == null ? object : baseUpdate(object, path2, castFunction(updater));
53856
+ function update(object, path3, updater) {
53857
+ return object == null ? object : baseUpdate(object, path3, castFunction(updater));
53552
53858
  }
53553
- function updateWith(object, path2, updater, customizer) {
53859
+ function updateWith(object, path3, updater, customizer) {
53554
53860
  customizer = typeof customizer == "function" ? customizer : undefined2;
53555
- return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer);
53861
+ return object == null ? object : baseUpdate(object, path3, castFunction(updater), customizer);
53556
53862
  }
53557
53863
  function values(object) {
53558
53864
  return object == null ? [] : baseValues(object, keys(object));
@@ -53933,17 +54239,17 @@ var require_lodash8 = __commonJS({
53933
54239
  function matches(source) {
53934
54240
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
53935
54241
  }
53936
- function matchesProperty(path2, srcValue) {
53937
- return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG));
54242
+ function matchesProperty(path3, srcValue) {
54243
+ return baseMatchesProperty(path3, baseClone(srcValue, CLONE_DEEP_FLAG));
53938
54244
  }
53939
- var method = baseRest(function(path2, args) {
54245
+ var method = baseRest(function(path3, args) {
53940
54246
  return function(object) {
53941
- return baseInvoke(object, path2, args);
54247
+ return baseInvoke(object, path3, args);
53942
54248
  };
53943
54249
  });
53944
54250
  var methodOf = baseRest(function(object, args) {
53945
- return function(path2) {
53946
- return baseInvoke(object, path2, args);
54251
+ return function(path3) {
54252
+ return baseInvoke(object, path3, args);
53947
54253
  };
53948
54254
  });
53949
54255
  function mixin(object, source, options) {
@@ -53990,12 +54296,12 @@ var require_lodash8 = __commonJS({
53990
54296
  var over = createOver(arrayMap);
53991
54297
  var overEvery = createOver(arrayEvery);
53992
54298
  var overSome = createOver(arraySome);
53993
- function property(path2) {
53994
- return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2);
54299
+ function property(path3) {
54300
+ return isKey(path3) ? baseProperty(toKey(path3)) : basePropertyDeep(path3);
53995
54301
  }
53996
54302
  function propertyOf(object) {
53997
- return function(path2) {
53998
- return object == null ? undefined2 : baseGet(object, path2);
54303
+ return function(path3) {
54304
+ return object == null ? undefined2 : baseGet(object, path3);
53999
54305
  };
54000
54306
  }
54001
54307
  var range = createRange();
@@ -54448,12 +54754,12 @@ var require_lodash8 = __commonJS({
54448
54754
  LazyWrapper.prototype.findLast = function(predicate) {
54449
54755
  return this.reverse().find(predicate);
54450
54756
  };
54451
- LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) {
54452
- if (typeof path2 == "function") {
54757
+ LazyWrapper.prototype.invokeMap = baseRest(function(path3, args) {
54758
+ if (typeof path3 == "function") {
54453
54759
  return new LazyWrapper(this);
54454
54760
  }
54455
54761
  return this.map(function(value) {
54456
- return baseInvoke(value, path2, args);
54762
+ return baseInvoke(value, path3, args);
54457
54763
  });
54458
54764
  });
54459
54765
  LazyWrapper.prototype.reject = function(predicate) {
@@ -54580,13 +54886,24 @@ var MAGDA_ADMIN_PORTAL_ID, MAGDA_SYSTEM_ID, MAGDA_TENANT_ID_HEADER;
54580
54886
  var init_TenantConsts = __esm({
54581
54887
  "../../magda-typescript-common/dist/registry/TenantConsts.js"() {
54582
54888
  "use strict";
54889
+ init_cjs_shim();
54583
54890
  MAGDA_ADMIN_PORTAL_ID = 0;
54584
54891
  MAGDA_SYSTEM_ID = -1;
54585
54892
  MAGDA_TENANT_ID_HEADER = "X-Magda-Tenant-Id";
54586
54893
  }
54587
54894
  });
54588
54895
 
54896
+ // src/index.ts
54897
+ init_cjs_shim();
54898
+
54899
+ // ../../magda-typescript-common/dist/registry/AuthorizedRegistryClient.js
54900
+ init_cjs_shim();
54901
+
54902
+ // ../../magda-typescript-common/dist/registry/RegistryClient.js
54903
+ init_cjs_shim();
54904
+
54589
54905
  // ../../magda-typescript-common/dist/generated/registry/api.js
54906
+ init_cjs_shim();
54590
54907
  var import_cross_fetch = __toESM(require_node_ponyfill(), 1);
54591
54908
  var defaultBasePath = "http://localhost/api/v0/registry/";
54592
54909
  var AspectDefinition = class {
@@ -54643,19 +54960,19 @@ var isTextMimeType = (contentType) => /text\/.*/i.test(contentType) || /[\/|\+]x
54643
54960
  var isNotEmpty = (val) => val !== null && val !== void 0;
54644
54961
  async function fetchWithRequestOptions(requestOptions) {
54645
54962
  const { uri, qs, json, encoding, form, formData, ...fetchOptions } = requestOptions;
54646
- const url = new URL(uri);
54963
+ const url2 = new URL(uri);
54647
54964
  if (qs && Object.keys(qs).length > 0) {
54648
54965
  for (const key in qs) {
54649
54966
  const value = qs[key];
54650
- url.searchParams.delete(key);
54967
+ url2.searchParams.delete(key);
54651
54968
  if (!isNotEmpty(value)) {
54652
- url.searchParams.append(key, "");
54969
+ url2.searchParams.append(key, "");
54653
54970
  continue;
54654
54971
  }
54655
54972
  if (Array.isArray(value)) {
54656
- value.forEach((v) => url.searchParams.append(key, v));
54973
+ value.forEach((v) => url2.searchParams.append(key, v));
54657
54974
  } else {
54658
- url.searchParams.append(key, value);
54975
+ url2.searchParams.append(key, value);
54659
54976
  }
54660
54977
  }
54661
54978
  }
@@ -54696,7 +55013,7 @@ async function fetchWithRequestOptions(requestOptions) {
54696
55013
  }
54697
55014
  fetchOptions.body = form2;
54698
55015
  }
54699
- const res = await (0, import_cross_fetch.default)(url, fetchOptions);
55016
+ const res = await (0, import_cross_fetch.default)(url2, fetchOptions);
54700
55017
  let contentType = res.headers.get("Content-Type");
54701
55018
  contentType = contentType ? contentType : "";
54702
55019
  let body;
@@ -56520,7 +56837,11 @@ var WebHooksApi = class {
56520
56837
  // ../../magda-typescript-common/dist/registry/RegistryClient.js
56521
56838
  var import_urijs = __toESM(require_URI(), 1);
56522
56839
 
56840
+ // ../../magda-typescript-common/dist/retry.js
56841
+ init_cjs_shim();
56842
+
56523
56843
  // ../../magda-typescript-common/dist/runLater.js
56844
+ init_cjs_shim();
56524
56845
  function runLater(milliseconds = 0, functionToRunLater) {
56525
56846
  return new Promise((resolve2, reject) => {
56526
56847
  setTimeout(() => {
@@ -56548,6 +56869,7 @@ function retry(op, delaySeconds, retries, onRetry, shouldRetry = () => true) {
56548
56869
  }
56549
56870
 
56550
56871
  // ../../magda-typescript-common/dist/formatServiceError.js
56872
+ init_cjs_shim();
56551
56873
  function formatServiceError(baseMessage, e, retriesLeft) {
56552
56874
  let messageParts = [baseMessage];
56553
56875
  if (retriesLeft) {
@@ -56571,6 +56893,7 @@ ${JSON.stringify(e, null, " ")}`);
56571
56893
  }
56572
56894
 
56573
56895
  // ../../magda-typescript-common/dist/ServerError.js
56896
+ init_cjs_shim();
56574
56897
  var ServerError = class extends Error {
56575
56898
  statusCode;
56576
56899
  constructor(message = "Unknown Error", statusCode = 500) {
@@ -56673,12 +56996,20 @@ var RegistryClient = class {
56673
56996
  };
56674
56997
 
56675
56998
  // ../../magda-typescript-common/dist/session/buildJwt.js
56999
+ init_cjs_shim();
56676
57000
  var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1);
56677
57001
  function buildJwt(jwtSecret, userId, session = {}) {
56678
57002
  return import_jsonwebtoken.default.sign({ userId, session }, jwtSecret);
56679
57003
  }
56680
57004
 
57005
+ // ../../node_modules/@magda/tsmonad/dist/index.js
57006
+ init_cjs_shim();
57007
+
57008
+ // ../../node_modules/@magda/tsmonad/dist/either.js
57009
+ init_cjs_shim();
57010
+
56681
57011
  // ../../node_modules/@magda/tsmonad/dist/monad.js
57012
+ init_cjs_shim();
56682
57013
  function eq(a, b) {
56683
57014
  var idx = 0;
56684
57015
  if (a === b) {
@@ -56706,6 +57037,7 @@ var EitherType;
56706
57037
  })(EitherType || (EitherType = {}));
56707
57038
 
56708
57039
  // ../../node_modules/@magda/tsmonad/dist/maybe.js
57040
+ init_cjs_shim();
56709
57041
  var MaybeType;
56710
57042
  (function(MaybeType2) {
56711
57043
  MaybeType2[MaybeType2["Nothing"] = 0] = "Nothing";
@@ -56796,6 +57128,9 @@ var Maybe = class _Maybe {
56796
57128
  }
56797
57129
  };
56798
57130
 
57131
+ // ../../node_modules/@magda/tsmonad/dist/writer.js
57132
+ init_cjs_shim();
57133
+
56799
57134
  // ../../magda-typescript-common/dist/registry/AuthorizedRegistryClient.js
56800
57135
  var AuthorizedRegistryClient = class extends RegistryClient {
56801
57136
  jwt = void 0;
@@ -56908,6 +57243,7 @@ var AuthorizedRegistryClient = class extends RegistryClient {
56908
57243
  };
56909
57244
 
56910
57245
  // ../../magda-typescript-common/dist/ConnectorRecordId.js
57246
+ init_cjs_shim();
56911
57247
  import * as crypto from "crypto";
56912
57248
  var RecordTypeMapping = {
56913
57249
  Organization: "org",
@@ -56942,6 +57278,7 @@ var ConnectorRecordId = class {
56942
57278
  };
56943
57279
 
56944
57280
  // ../../magda-typescript-common/dist/util/cleanOrgTitle.js
57281
+ init_cjs_shim();
56945
57282
  function cleanOrgTitle(title) {
56946
57283
  if (!title) {
56947
57284
  return title;
@@ -56952,7 +57289,11 @@ function cleanOrgTitle(title) {
56952
57289
  return title.replace(/^\W*/, "");
56953
57290
  }
56954
57291
 
57292
+ // ../../magda-typescript-common/dist/JsonConnector.js
57293
+ init_cjs_shim();
57294
+
56955
57295
  // ../../magda-typescript-common/dist/AspectCreationFailure.js
57296
+ init_cjs_shim();
56956
57297
  var AspectCreationFailure = class {
56957
57298
  id;
56958
57299
  error;
@@ -56963,6 +57304,7 @@ var AspectCreationFailure = class {
56963
57304
  };
56964
57305
 
56965
57306
  // ../../magda-typescript-common/dist/AsyncPage.js
57307
+ init_cjs_shim();
56966
57308
  var AsyncPage = class _AsyncPage {
56967
57309
  requestNextPage;
56968
57310
  data;
@@ -57072,6 +57414,7 @@ function asyncPageToArray(page) {
57072
57414
  }
57073
57415
 
57074
57416
  // ../../magda-typescript-common/dist/ConnectionResult.js
57417
+ init_cjs_shim();
57075
57418
  var ConnectionResult = class _ConnectionResult {
57076
57419
  aspectDefinitionsConnected = 0;
57077
57420
  organizationsConnected = 0;
@@ -57138,6 +57481,7 @@ var ConnectionResult = class _ConnectionResult {
57138
57481
  };
57139
57482
 
57140
57483
  // ../../magda-typescript-common/dist/RecordCreationFailure.js
57484
+ init_cjs_shim();
57141
57485
  var RecordCreationFailure = class {
57142
57486
  id;
57143
57487
  parentId;
@@ -57150,6 +57494,7 @@ var RecordCreationFailure = class {
57150
57494
  };
57151
57495
 
57152
57496
  // ../../magda-typescript-common/dist/util/unionToThrowable.js
57497
+ init_cjs_shim();
57153
57498
  function unionToThrowable(input) {
57154
57499
  if (input instanceof ServerError) {
57155
57500
  throw input;
@@ -57164,10 +57509,14 @@ function unionToThrowable(input) {
57164
57509
  var import_yargs = __toESM(require_yargs2(), 1);
57165
57510
  var import_express = __toESM(require_express2(), 1);
57166
57511
  import * as fs from "fs";
57167
- import * as path from "path";
57512
+ import * as path2 from "path";
57168
57513
  import * as process2 from "process";
57169
57514
 
57515
+ // ../../node_modules/uuid/dist/esm-node/index.js
57516
+ init_cjs_shim();
57517
+
57170
57518
  // ../../node_modules/uuid/dist/esm-node/rng.js
57519
+ init_cjs_shim();
57171
57520
  import crypto2 from "crypto";
57172
57521
  var rnds8 = new Uint8Array(16);
57173
57522
  function rng() {
@@ -57175,6 +57524,7 @@ function rng() {
57175
57524
  }
57176
57525
 
57177
57526
  // ../../node_modules/uuid/dist/esm-node/bytesToUuid.js
57527
+ init_cjs_shim();
57178
57528
  var byteToHex = [];
57179
57529
  for (let i = 0; i < 256; ++i) {
57180
57530
  byteToHex.push((i + 256).toString(16).substr(1));
@@ -57186,6 +57536,7 @@ function bytesToUuid(buf, offset_) {
57186
57536
  var bytesToUuid_default = bytesToUuid;
57187
57537
 
57188
57538
  // ../../node_modules/uuid/dist/esm-node/v4.js
57539
+ init_cjs_shim();
57189
57540
  function v4(options, buf, offset) {
57190
57541
  options = options || {};
57191
57542
  const rnds = options.random || (options.rng || rng)();
@@ -57426,7 +57777,7 @@ var JsonConnector = class {
57426
57777
  return ConnectionResult.combine(aspectResult, organizationResult, datasetAndDistributionResult, recordsTrimmedResult);
57427
57778
  }
57428
57779
  runInteractive(options) {
57429
- const transformerForBrowserPath = path.resolve(process2.cwd(), "dist", "createTransformerForBrowser.js");
57780
+ const transformerForBrowserPath = path2.resolve(process2.cwd(), "dist", "createTransformerForBrowser.js");
57430
57781
  if (!fs.existsSync(transformerForBrowserPath)) {
57431
57782
  throw new Error("Cannot run this connector in interactive mode because dist/createTransformerForBrowser.js does not exist.");
57432
57783
  }
@@ -57575,7 +57926,11 @@ var JsonConnector = class {
57575
57926
  }
57576
57927
  };
57577
57928
 
57929
+ // ../../magda-typescript-common/dist/JsonTransformer.js
57930
+ init_cjs_shim();
57931
+
57578
57932
  // ../../magda-typescript-common/dist/createServiceError.js
57933
+ init_cjs_shim();
57579
57934
  var ServiceError = class extends Error {
57580
57935
  e;
57581
57936
  constructor(message, e) {
@@ -57605,7 +57960,8 @@ function createServiceError(e) {
57605
57960
  }
57606
57961
 
57607
57962
  // ../../node_modules/@magda/esm-utils/dist/esmUtils.js
57608
- import { createRequire } from "module";
57963
+ init_cjs_shim();
57964
+ import { createRequire as createRequire2 } from "module";
57609
57965
  function callsites() {
57610
57966
  const _prepareStackTrace = Error.prepareStackTrace;
57611
57967
  try {
@@ -57641,7 +57997,7 @@ function callerpath({ depth = 0 } = {}) {
57641
57997
  return callsite && callsite.getFileName();
57642
57998
  }
57643
57999
  function require2(id) {
57644
- const requireFrom = createRequire(callerpath({ depth: 1 }));
58000
+ const requireFrom = createRequire2(callerpath({ depth: 1 }));
57645
58001
  return requireFrom(id);
57646
58002
  }
57647
58003
 
@@ -57856,6 +58212,9 @@ var OrganizationBuilderFunctionParameters = class extends BuilderFunctionParamet
57856
58212
  organization = void 0;
57857
58213
  };
57858
58214
 
58215
+ // ../../magda-typescript-common/dist/AspectBuilder.js
58216
+ init_cjs_shim();
58217
+
57859
58218
  // src/index.ts
57860
58219
  var TenantConsts = (init_TenantConsts(), __toCommonJS(TenantConsts_exports));
57861
58220
  export {