@magda/connector-test-utils 3.0.1-alpha.0 → 3.0.2-alpha.0

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 +510 -323
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -11,6 +11,9 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
11
11
  return require.apply(this, arguments);
12
12
  throw Error('Dynamic require of "' + x + '" is not supported');
13
13
  });
14
+ var __esm = (fn, res) => function __init() {
15
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
16
+ };
14
17
  var __commonJS = (cb, mod) => function __require2() {
15
18
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
19
  };
@@ -31,13 +34,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
34
  mod
32
35
  ));
33
36
 
37
+ // ../cjs-shim.js
38
+ import { createRequire } from "module";
39
+ import path from "path";
40
+ import url from "url";
41
+ var init_cjs_shim = __esm({
42
+ "../cjs-shim.js"() {
43
+ globalThis.require = createRequire(import.meta.url);
44
+ globalThis.__filename = url.fileURLToPath(import.meta.url);
45
+ globalThis.__dirname = path.dirname(__filename);
46
+ }
47
+ });
48
+
34
49
  // ../../node_modules/isexe/windows.js
35
50
  var require_windows = __commonJS({
36
51
  "../../node_modules/isexe/windows.js"(exports, module2) {
52
+ init_cjs_shim();
37
53
  module2.exports = isexe;
38
54
  isexe.sync = sync;
39
55
  var fs = __require("fs");
40
- function checkPathExt(path2, options) {
56
+ function checkPathExt(path3, options) {
41
57
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
42
58
  if (!pathext) {
43
59
  return true;
@@ -48,25 +64,25 @@ var require_windows = __commonJS({
48
64
  }
49
65
  for (var i = 0; i < pathext.length; i++) {
50
66
  var p = pathext[i].toLowerCase();
51
- if (p && path2.substr(-p.length).toLowerCase() === p) {
67
+ if (p && path3.substr(-p.length).toLowerCase() === p) {
52
68
  return true;
53
69
  }
54
70
  }
55
71
  return false;
56
72
  }
57
- function checkStat(stat, path2, options) {
73
+ function checkStat(stat, path3, options) {
58
74
  if (!stat.isSymbolicLink() && !stat.isFile()) {
59
75
  return false;
60
76
  }
61
- return checkPathExt(path2, options);
77
+ return checkPathExt(path3, options);
62
78
  }
63
- function isexe(path2, options, cb) {
64
- fs.stat(path2, function(er, stat) {
65
- cb(er, er ? false : checkStat(stat, path2, options));
79
+ function isexe(path3, options, cb) {
80
+ fs.stat(path3, function(er, stat) {
81
+ cb(er, er ? false : checkStat(stat, path3, options));
66
82
  });
67
83
  }
68
- function sync(path2, options) {
69
- return checkStat(fs.statSync(path2), path2, options);
84
+ function sync(path3, options) {
85
+ return checkStat(fs.statSync(path3), path3, options);
70
86
  }
71
87
  }
72
88
  });
@@ -74,16 +90,17 @@ var require_windows = __commonJS({
74
90
  // ../../node_modules/isexe/mode.js
75
91
  var require_mode = __commonJS({
76
92
  "../../node_modules/isexe/mode.js"(exports, module2) {
93
+ init_cjs_shim();
77
94
  module2.exports = isexe;
78
95
  isexe.sync = sync;
79
96
  var fs = __require("fs");
80
- function isexe(path2, options, cb) {
81
- fs.stat(path2, function(er, stat) {
97
+ function isexe(path3, options, cb) {
98
+ fs.stat(path3, function(er, stat) {
82
99
  cb(er, er ? false : checkStat(stat, options));
83
100
  });
84
101
  }
85
- function sync(path2, options) {
86
- return checkStat(fs.statSync(path2), options);
102
+ function sync(path3, options) {
103
+ return checkStat(fs.statSync(path3), options);
87
104
  }
88
105
  function checkStat(stat, options) {
89
106
  return stat.isFile() && checkMode(stat, options);
@@ -107,6 +124,7 @@ var require_mode = __commonJS({
107
124
  // ../../node_modules/isexe/index.js
108
125
  var require_isexe = __commonJS({
109
126
  "../../node_modules/isexe/index.js"(exports, module2) {
127
+ init_cjs_shim();
110
128
  var fs = __require("fs");
111
129
  var core;
112
130
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -116,7 +134,7 @@ var require_isexe = __commonJS({
116
134
  }
117
135
  module2.exports = isexe;
118
136
  isexe.sync = sync;
119
- function isexe(path2, options, cb) {
137
+ function isexe(path3, options, cb) {
120
138
  if (typeof options === "function") {
121
139
  cb = options;
122
140
  options = {};
@@ -126,7 +144,7 @@ var require_isexe = __commonJS({
126
144
  throw new TypeError("callback not provided");
127
145
  }
128
146
  return new Promise(function(resolve2, reject) {
129
- isexe(path2, options || {}, function(er, is) {
147
+ isexe(path3, options || {}, function(er, is) {
130
148
  if (er) {
131
149
  reject(er);
132
150
  } else {
@@ -135,7 +153,7 @@ var require_isexe = __commonJS({
135
153
  });
136
154
  });
137
155
  }
138
- core(path2, options || {}, function(er, is) {
156
+ core(path3, options || {}, function(er, is) {
139
157
  if (er) {
140
158
  if (er.code === "EACCES" || options && options.ignoreErrors) {
141
159
  er = null;
@@ -145,9 +163,9 @@ var require_isexe = __commonJS({
145
163
  cb(er, is);
146
164
  });
147
165
  }
148
- function sync(path2, options) {
166
+ function sync(path3, options) {
149
167
  try {
150
- return core.sync(path2, options || {});
168
+ return core.sync(path3, options || {});
151
169
  } catch (er) {
152
170
  if (options && options.ignoreErrors || er.code === "EACCES") {
153
171
  return false;
@@ -162,8 +180,9 @@ var require_isexe = __commonJS({
162
180
  // ../../node_modules/cross-spawn/node_modules/which/which.js
163
181
  var require_which = __commonJS({
164
182
  "../../node_modules/cross-spawn/node_modules/which/which.js"(exports, module2) {
183
+ init_cjs_shim();
165
184
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
166
- var path2 = __require("path");
185
+ var path3 = __require("path");
167
186
  var COLON = isWindows ? ";" : ":";
168
187
  var isexe = require_isexe();
169
188
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -201,7 +220,7 @@ var require_which = __commonJS({
201
220
  return opt.all && found.length ? resolve2(found) : reject(getNotFoundError(cmd));
202
221
  const ppRaw = pathEnv[i];
203
222
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
204
- const pCmd = path2.join(pathPart, cmd);
223
+ const pCmd = path3.join(pathPart, cmd);
205
224
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
206
225
  resolve2(subStep(p, i, 0));
207
226
  });
@@ -228,7 +247,7 @@ var require_which = __commonJS({
228
247
  for (let i = 0; i < pathEnv.length; i++) {
229
248
  const ppRaw = pathEnv[i];
230
249
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
231
- const pCmd = path2.join(pathPart, cmd);
250
+ const pCmd = path3.join(pathPart, cmd);
232
251
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
233
252
  for (let j = 0; j < pathExt.length; j++) {
234
253
  const cur = p + pathExt[j];
@@ -259,6 +278,7 @@ var require_which = __commonJS({
259
278
  var require_path_key = __commonJS({
260
279
  "../../node_modules/path-key/index.js"(exports, module2) {
261
280
  "use strict";
281
+ init_cjs_shim();
262
282
  var pathKey = (options = {}) => {
263
283
  const environment = options.env || process.env;
264
284
  const platform = options.platform || process.platform;
@@ -276,7 +296,8 @@ var require_path_key = __commonJS({
276
296
  var require_resolveCommand = __commonJS({
277
297
  "../../node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
278
298
  "use strict";
279
- var path2 = __require("path");
299
+ init_cjs_shim();
300
+ var path3 = __require("path");
280
301
  var which = require_which();
281
302
  var getPathKey = require_path_key();
282
303
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -294,7 +315,7 @@ var require_resolveCommand = __commonJS({
294
315
  try {
295
316
  resolved = which.sync(parsed.command, {
296
317
  path: env[getPathKey({ env })],
297
- pathExt: withoutPathExt ? path2.delimiter : void 0
318
+ pathExt: withoutPathExt ? path3.delimiter : void 0
298
319
  });
299
320
  } catch (e) {
300
321
  } finally {
@@ -303,7 +324,7 @@ var require_resolveCommand = __commonJS({
303
324
  }
304
325
  }
305
326
  if (resolved) {
306
- resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
327
+ resolved = path3.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
307
328
  }
308
329
  return resolved;
309
330
  }
@@ -318,6 +339,7 @@ var require_resolveCommand = __commonJS({
318
339
  var require_escape = __commonJS({
319
340
  "../../node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
320
341
  "use strict";
342
+ init_cjs_shim();
321
343
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
322
344
  function escapeCommand(arg) {
323
345
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -343,6 +365,7 @@ var require_escape = __commonJS({
343
365
  var require_shebang_regex = __commonJS({
344
366
  "../../node_modules/cross-spawn/node_modules/shebang-regex/index.js"(exports, module2) {
345
367
  "use strict";
368
+ init_cjs_shim();
346
369
  module2.exports = /^#!(.*)/;
347
370
  }
348
371
  });
@@ -351,14 +374,15 @@ var require_shebang_regex = __commonJS({
351
374
  var require_shebang_command = __commonJS({
352
375
  "../../node_modules/cross-spawn/node_modules/shebang-command/index.js"(exports, module2) {
353
376
  "use strict";
377
+ init_cjs_shim();
354
378
  var shebangRegex = require_shebang_regex();
355
379
  module2.exports = (string = "") => {
356
380
  const match = string.match(shebangRegex);
357
381
  if (!match) {
358
382
  return null;
359
383
  }
360
- const [path2, argument] = match[0].replace(/#! ?/, "").split(" ");
361
- const binary = path2.split("/").pop();
384
+ const [path3, argument] = match[0].replace(/#! ?/, "").split(" ");
385
+ const binary = path3.split("/").pop();
362
386
  if (binary === "env") {
363
387
  return argument;
364
388
  }
@@ -371,6 +395,7 @@ var require_shebang_command = __commonJS({
371
395
  var require_readShebang = __commonJS({
372
396
  "../../node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
373
397
  "use strict";
398
+ init_cjs_shim();
374
399
  var fs = __require("fs");
375
400
  var shebangCommand = require_shebang_command();
376
401
  function readShebang(command) {
@@ -393,7 +418,8 @@ var require_readShebang = __commonJS({
393
418
  var require_parse = __commonJS({
394
419
  "../../node_modules/cross-spawn/lib/parse.js"(exports, module2) {
395
420
  "use strict";
396
- var path2 = __require("path");
421
+ init_cjs_shim();
422
+ var path3 = __require("path");
397
423
  var resolveCommand = require_resolveCommand();
398
424
  var escape2 = require_escape();
399
425
  var readShebang = require_readShebang();
@@ -418,7 +444,7 @@ var require_parse = __commonJS({
418
444
  const needsShell = !isExecutableRegExp.test(commandFile);
419
445
  if (parsed.options.forceShell || needsShell) {
420
446
  const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
421
- parsed.command = path2.normalize(parsed.command);
447
+ parsed.command = path3.normalize(parsed.command);
422
448
  parsed.command = escape2.command(parsed.command);
423
449
  parsed.args = parsed.args.map((arg) => escape2.argument(arg, needsDoubleEscapeMetaChars));
424
450
  const shellCommand = [parsed.command].concat(parsed.args).join(" ");
@@ -455,6 +481,7 @@ var require_parse = __commonJS({
455
481
  var require_enoent = __commonJS({
456
482
  "../../node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
457
483
  "use strict";
484
+ init_cjs_shim();
458
485
  var isWin = process.platform === "win32";
459
486
  function notFoundError(original, syscall) {
460
487
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -505,6 +532,7 @@ var require_enoent = __commonJS({
505
532
  var require_cross_spawn = __commonJS({
506
533
  "../../node_modules/cross-spawn/index.js"(exports, module2) {
507
534
  "use strict";
535
+ init_cjs_shim();
508
536
  var cp = __require("child_process");
509
537
  var parse = require_parse();
510
538
  var enoent = require_enoent();
@@ -531,6 +559,7 @@ var require_cross_spawn = __commonJS({
531
559
  // ../../node_modules/depd/index.js
532
560
  var require_depd = __commonJS({
533
561
  "../../node_modules/depd/index.js"(exports, module2) {
562
+ init_cjs_shim();
534
563
  var relative = __require("path").relative;
535
564
  module2.exports = depd;
536
565
  var basePath = process.cwd();
@@ -838,6 +867,7 @@ var require_depd = __commonJS({
838
867
  var require_bytes = __commonJS({
839
868
  "../../node_modules/bytes/index.js"(exports, module2) {
840
869
  "use strict";
870
+ init_cjs_shim();
841
871
  module2.exports = bytes;
842
872
  module2.exports.format = format;
843
873
  module2.exports.parse = parse;
@@ -927,6 +957,7 @@ var require_bytes = __commonJS({
927
957
  var require_content_type = __commonJS({
928
958
  "../../node_modules/content-type/index.js"(exports) {
929
959
  "use strict";
960
+ init_cjs_shim();
930
961
  var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
931
962
  var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
932
963
  var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
@@ -1028,6 +1059,7 @@ var require_content_type = __commonJS({
1028
1059
  var require_setprototypeof = __commonJS({
1029
1060
  "../../node_modules/setprototypeof/index.js"(exports, module2) {
1030
1061
  "use strict";
1062
+ init_cjs_shim();
1031
1063
  module2.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);
1032
1064
  function setProtoOf(obj, proto) {
1033
1065
  obj.__proto__ = proto;
@@ -1119,6 +1151,7 @@ var require_codes = __commonJS({
1119
1151
  var require_statuses = __commonJS({
1120
1152
  "../../node_modules/statuses/index.js"(exports, module2) {
1121
1153
  "use strict";
1154
+ init_cjs_shim();
1122
1155
  var codes = require_codes();
1123
1156
  module2.exports = status;
1124
1157
  status.message = codes;
@@ -1189,6 +1222,7 @@ var require_statuses = __commonJS({
1189
1222
  // ../../node_modules/inherits/inherits_browser.js
1190
1223
  var require_inherits_browser = __commonJS({
1191
1224
  "../../node_modules/inherits/inherits_browser.js"(exports, module2) {
1225
+ init_cjs_shim();
1192
1226
  if (typeof Object.create === "function") {
1193
1227
  module2.exports = function inherits(ctor, superCtor) {
1194
1228
  if (superCtor) {
@@ -1221,6 +1255,7 @@ var require_inherits_browser = __commonJS({
1221
1255
  // ../../node_modules/inherits/inherits.js
1222
1256
  var require_inherits = __commonJS({
1223
1257
  "../../node_modules/inherits/inherits.js"(exports, module2) {
1258
+ init_cjs_shim();
1224
1259
  try {
1225
1260
  util = __require("util");
1226
1261
  if (typeof util.inherits !== "function")
@@ -1237,6 +1272,7 @@ var require_inherits = __commonJS({
1237
1272
  var require_toidentifier = __commonJS({
1238
1273
  "../../node_modules/toidentifier/index.js"(exports, module2) {
1239
1274
  "use strict";
1275
+ init_cjs_shim();
1240
1276
  module2.exports = toIdentifier;
1241
1277
  function toIdentifier(str) {
1242
1278
  return str.split(" ").map(function(token) {
@@ -1250,6 +1286,7 @@ var require_toidentifier = __commonJS({
1250
1286
  var require_http_errors = __commonJS({
1251
1287
  "../../node_modules/http-errors/index.js"(exports, module2) {
1252
1288
  "use strict";
1289
+ init_cjs_shim();
1253
1290
  var deprecate = require_depd()("http-errors");
1254
1291
  var setPrototypeOf = require_setprototypeof();
1255
1292
  var statuses = require_statuses();
@@ -1413,6 +1450,7 @@ var require_http_errors = __commonJS({
1413
1450
  // ../../node_modules/body-parser/node_modules/ms/index.js
1414
1451
  var require_ms = __commonJS({
1415
1452
  "../../node_modules/body-parser/node_modules/ms/index.js"(exports, module2) {
1453
+ init_cjs_shim();
1416
1454
  var s = 1e3;
1417
1455
  var m = s * 60;
1418
1456
  var h = m * 60;
@@ -1515,6 +1553,7 @@ var require_ms = __commonJS({
1515
1553
  // ../../node_modules/body-parser/node_modules/debug/src/debug.js
1516
1554
  var require_debug = __commonJS({
1517
1555
  "../../node_modules/body-parser/node_modules/debug/src/debug.js"(exports, module2) {
1556
+ init_cjs_shim();
1518
1557
  exports = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
1519
1558
  exports.coerce = coerce;
1520
1559
  exports.disable = disable;
@@ -1624,6 +1663,7 @@ var require_debug = __commonJS({
1624
1663
  // ../../node_modules/body-parser/node_modules/debug/src/browser.js
1625
1664
  var require_browser = __commonJS({
1626
1665
  "../../node_modules/body-parser/node_modules/debug/src/browser.js"(exports, module2) {
1666
+ init_cjs_shim();
1627
1667
  exports = module2.exports = require_debug();
1628
1668
  exports.log = log;
1629
1669
  exports.formatArgs = formatArgs;
@@ -1712,6 +1752,7 @@ var require_browser = __commonJS({
1712
1752
  // ../../node_modules/body-parser/node_modules/debug/src/node.js
1713
1753
  var require_node = __commonJS({
1714
1754
  "../../node_modules/body-parser/node_modules/debug/src/node.js"(exports, module2) {
1755
+ init_cjs_shim();
1715
1756
  var tty = __require("tty");
1716
1757
  var util = __require("util");
1717
1758
  exports = module2.exports = require_debug();
@@ -1836,6 +1877,7 @@ var require_node = __commonJS({
1836
1877
  // ../../node_modules/body-parser/node_modules/debug/src/index.js
1837
1878
  var require_src = __commonJS({
1838
1879
  "../../node_modules/body-parser/node_modules/debug/src/index.js"(exports, module2) {
1880
+ init_cjs_shim();
1839
1881
  if (typeof process !== "undefined" && process.type === "renderer") {
1840
1882
  module2.exports = require_browser();
1841
1883
  } else {
@@ -1848,6 +1890,7 @@ var require_src = __commonJS({
1848
1890
  var require_destroy = __commonJS({
1849
1891
  "../../node_modules/destroy/index.js"(exports, module2) {
1850
1892
  "use strict";
1893
+ init_cjs_shim();
1851
1894
  var EventEmitter = __require("events").EventEmitter;
1852
1895
  var ReadStream = __require("fs").ReadStream;
1853
1896
  var Stream = __require("stream");
@@ -1935,6 +1978,7 @@ var require_destroy = __commonJS({
1935
1978
  var require_safer = __commonJS({
1936
1979
  "../../node_modules/safer-buffer/safer.js"(exports, module2) {
1937
1980
  "use strict";
1981
+ init_cjs_shim();
1938
1982
  var buffer = __require("buffer");
1939
1983
  var Buffer2 = buffer.Buffer;
1940
1984
  var safer = {};
@@ -2007,6 +2051,7 @@ var require_safer = __commonJS({
2007
2051
  var require_bom_handling = __commonJS({
2008
2052
  "../../node_modules/iconv-lite/lib/bom-handling.js"(exports) {
2009
2053
  "use strict";
2054
+ init_cjs_shim();
2010
2055
  var BOMChar = "\uFEFF";
2011
2056
  exports.PrependBOM = PrependBOMWrapper;
2012
2057
  function PrependBOMWrapper(encoder, options) {
@@ -2051,6 +2096,7 @@ var require_bom_handling = __commonJS({
2051
2096
  var require_internal = __commonJS({
2052
2097
  "../../node_modules/iconv-lite/encodings/internal.js"(exports, module2) {
2053
2098
  "use strict";
2099
+ init_cjs_shim();
2054
2100
  var Buffer2 = require_safer().Buffer;
2055
2101
  module2.exports = {
2056
2102
  // Encodings
@@ -2195,6 +2241,7 @@ var require_internal = __commonJS({
2195
2241
  var require_utf16 = __commonJS({
2196
2242
  "../../node_modules/iconv-lite/encodings/utf16.js"(exports) {
2197
2243
  "use strict";
2244
+ init_cjs_shim();
2198
2245
  var Buffer2 = require_safer().Buffer;
2199
2246
  exports.utf16be = Utf16BECodec;
2200
2247
  function Utf16BECodec() {
@@ -2313,6 +2360,7 @@ var require_utf16 = __commonJS({
2313
2360
  var require_utf7 = __commonJS({
2314
2361
  "../../node_modules/iconv-lite/encodings/utf7.js"(exports) {
2315
2362
  "use strict";
2363
+ init_cjs_shim();
2316
2364
  var Buffer2 = require_safer().Buffer;
2317
2365
  exports.utf7 = Utf7Codec;
2318
2366
  exports.unicode11utf7 = "utf7";
@@ -2514,6 +2562,7 @@ var require_utf7 = __commonJS({
2514
2562
  var require_sbcs_codec = __commonJS({
2515
2563
  "../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
2516
2564
  "use strict";
2565
+ init_cjs_shim();
2517
2566
  var Buffer2 = require_safer().Buffer;
2518
2567
  exports._sbcs = SBCSCodec;
2519
2568
  function SBCSCodec(codecOptions, iconv) {
@@ -2570,6 +2619,7 @@ var require_sbcs_codec = __commonJS({
2570
2619
  var require_sbcs_data = __commonJS({
2571
2620
  "../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module2) {
2572
2621
  "use strict";
2622
+ init_cjs_shim();
2573
2623
  module2.exports = {
2574
2624
  // Not supported by iconv, not sure why.
2575
2625
  "10029": "maccenteuro",
@@ -2719,6 +2769,7 @@ var require_sbcs_data = __commonJS({
2719
2769
  var require_sbcs_data_generated = __commonJS({
2720
2770
  "../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module2) {
2721
2771
  "use strict";
2772
+ init_cjs_shim();
2722
2773
  module2.exports = {
2723
2774
  "437": "cp437",
2724
2775
  "737": "cp737",
@@ -3174,6 +3225,7 @@ var require_sbcs_data_generated = __commonJS({
3174
3225
  var require_dbcs_codec = __commonJS({
3175
3226
  "../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
3176
3227
  "use strict";
3228
+ init_cjs_shim();
3177
3229
  var Buffer2 = require_safer().Buffer;
3178
3230
  exports._dbcs = DBCSCodec;
3179
3231
  var UNASSIGNED = -1;
@@ -4806,6 +4858,7 @@ var require_big5_added = __commonJS({
4806
4858
  var require_dbcs_data = __commonJS({
4807
4859
  "../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module2) {
4808
4860
  "use strict";
4861
+ init_cjs_shim();
4809
4862
  module2.exports = {
4810
4863
  // == Japanese/ShiftJIS ====================================================
4811
4864
  // All japanese encodings are based on JIS X set of standards:
@@ -4981,6 +5034,7 @@ var require_dbcs_data = __commonJS({
4981
5034
  var require_encodings = __commonJS({
4982
5035
  "../../node_modules/iconv-lite/encodings/index.js"(exports, module2) {
4983
5036
  "use strict";
5037
+ init_cjs_shim();
4984
5038
  var modules = [
4985
5039
  require_internal(),
4986
5040
  require_utf16(),
@@ -5007,6 +5061,7 @@ var require_encodings = __commonJS({
5007
5061
  var require_streams = __commonJS({
5008
5062
  "../../node_modules/iconv-lite/lib/streams.js"(exports, module2) {
5009
5063
  "use strict";
5064
+ init_cjs_shim();
5010
5065
  var Buffer2 = __require("buffer").Buffer;
5011
5066
  var Transform = __require("stream").Transform;
5012
5067
  module2.exports = function(iconv) {
@@ -5112,6 +5167,7 @@ var require_streams = __commonJS({
5112
5167
  var require_extend_node = __commonJS({
5113
5168
  "../../node_modules/iconv-lite/lib/extend-node.js"(exports, module2) {
5114
5169
  "use strict";
5170
+ init_cjs_shim();
5115
5171
  var Buffer2 = __require("buffer").Buffer;
5116
5172
  module2.exports = function(iconv) {
5117
5173
  var original = void 0;
@@ -5281,6 +5337,7 @@ var require_extend_node = __commonJS({
5281
5337
  var require_lib = __commonJS({
5282
5338
  "../../node_modules/iconv-lite/lib/index.js"(exports, module2) {
5283
5339
  "use strict";
5340
+ init_cjs_shim();
5284
5341
  var Buffer2 = require_safer().Buffer;
5285
5342
  var bomHandling = require_bom_handling();
5286
5343
  var iconv = module2.exports;
@@ -5384,6 +5441,7 @@ var require_lib = __commonJS({
5384
5441
  var require_unpipe = __commonJS({
5385
5442
  "../../node_modules/unpipe/index.js"(exports, module2) {
5386
5443
  "use strict";
5444
+ init_cjs_shim();
5387
5445
  module2.exports = unpipe;
5388
5446
  function hasPipeDataListeners(stream) {
5389
5447
  var listeners = stream.listeners("data");
@@ -5422,6 +5480,7 @@ var require_unpipe = __commonJS({
5422
5480
  var require_raw_body = __commonJS({
5423
5481
  "../../node_modules/body-parser/node_modules/raw-body/index.js"(exports, module2) {
5424
5482
  "use strict";
5483
+ init_cjs_shim();
5425
5484
  var asyncHooks = tryRequireAsyncHooks();
5426
5485
  var bytes = require_bytes();
5427
5486
  var createError = require_http_errors();
@@ -5613,6 +5672,7 @@ var require_raw_body = __commonJS({
5613
5672
  var require_ee_first = __commonJS({
5614
5673
  "../../node_modules/ee-first/index.js"(exports, module2) {
5615
5674
  "use strict";
5675
+ init_cjs_shim();
5616
5676
  module2.exports = first;
5617
5677
  function first(stuff, done) {
5618
5678
  if (!Array.isArray(stuff))
@@ -5669,6 +5729,7 @@ var require_ee_first = __commonJS({
5669
5729
  var require_on_finished = __commonJS({
5670
5730
  "../../node_modules/on-finished/index.js"(exports, module2) {
5671
5731
  "use strict";
5732
+ init_cjs_shim();
5672
5733
  module2.exports = onFinished;
5673
5734
  module2.exports.isFinished = isFinished;
5674
5735
  var asyncHooks = tryRequireAsyncHooks();
@@ -5778,6 +5839,7 @@ var require_on_finished = __commonJS({
5778
5839
  var require_read = __commonJS({
5779
5840
  "../../node_modules/body-parser/lib/read.js"(exports, module2) {
5780
5841
  "use strict";
5842
+ init_cjs_shim();
5781
5843
  var createError = require_http_errors();
5782
5844
  var destroy = require_destroy();
5783
5845
  var getBody = require_raw_body();
@@ -5904,6 +5966,7 @@ var require_read = __commonJS({
5904
5966
  // ../../node_modules/media-typer/index.js
5905
5967
  var require_media_typer = __commonJS({
5906
5968
  "../../node_modules/media-typer/index.js"(exports) {
5969
+ init_cjs_shim();
5907
5970
  var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g;
5908
5971
  var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/;
5909
5972
  var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/;
@@ -14210,6 +14273,7 @@ var require_db = __commonJS({
14210
14273
  // ../../node_modules/mime-db/index.js
14211
14274
  var require_mime_db = __commonJS({
14212
14275
  "../../node_modules/mime-db/index.js"(exports, module2) {
14276
+ init_cjs_shim();
14213
14277
  module2.exports = require_db();
14214
14278
  }
14215
14279
  });
@@ -14218,6 +14282,7 @@ var require_mime_db = __commonJS({
14218
14282
  var require_mime_types = __commonJS({
14219
14283
  "../../node_modules/mime-types/index.js"(exports) {
14220
14284
  "use strict";
14285
+ init_cjs_shim();
14221
14286
  var db = require_mime_db();
14222
14287
  var extname = __require("path").extname;
14223
14288
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
@@ -14270,11 +14335,11 @@ var require_mime_types = __commonJS({
14270
14335
  }
14271
14336
  return exts[0];
14272
14337
  }
14273
- function lookup(path2) {
14274
- if (!path2 || typeof path2 !== "string") {
14338
+ function lookup(path3) {
14339
+ if (!path3 || typeof path3 !== "string") {
14275
14340
  return false;
14276
14341
  }
14277
- var extension2 = extname("x." + path2).toLowerCase().substr(1);
14342
+ var extension2 = extname("x." + path3).toLowerCase().substr(1);
14278
14343
  if (!extension2) {
14279
14344
  return false;
14280
14345
  }
@@ -14309,6 +14374,7 @@ var require_mime_types = __commonJS({
14309
14374
  var require_type_is = __commonJS({
14310
14375
  "../../node_modules/type-is/index.js"(exports, module2) {
14311
14376
  "use strict";
14377
+ init_cjs_shim();
14312
14378
  var typer = require_media_typer();
14313
14379
  var mime = require_mime_types();
14314
14380
  module2.exports = typeofrequest;
@@ -14414,6 +14480,7 @@ var require_type_is = __commonJS({
14414
14480
  var require_json = __commonJS({
14415
14481
  "../../node_modules/body-parser/lib/types/json.js"(exports, module2) {
14416
14482
  "use strict";
14483
+ init_cjs_shim();
14417
14484
  var bytes = require_bytes();
14418
14485
  var contentType = require_content_type();
14419
14486
  var createError = require_http_errors();
@@ -14538,6 +14605,7 @@ var require_json = __commonJS({
14538
14605
  var require_raw = __commonJS({
14539
14606
  "../../node_modules/body-parser/lib/types/raw.js"(exports, module2) {
14540
14607
  "use strict";
14608
+ init_cjs_shim();
14541
14609
  var bytes = require_bytes();
14542
14610
  var debug = require_src()("body-parser:raw");
14543
14611
  var read = require_read();
@@ -14594,6 +14662,7 @@ var require_raw = __commonJS({
14594
14662
  var require_text = __commonJS({
14595
14663
  "../../node_modules/body-parser/lib/types/text.js"(exports, module2) {
14596
14664
  "use strict";
14665
+ init_cjs_shim();
14597
14666
  var bytes = require_bytes();
14598
14667
  var contentType = require_content_type();
14599
14668
  var debug = require_src()("body-parser:text");
@@ -14660,6 +14729,7 @@ var require_text = __commonJS({
14660
14729
  var require_shams = __commonJS({
14661
14730
  "../../node_modules/side-channel/node_modules/has-symbols/shams.js"(exports, module2) {
14662
14731
  "use strict";
14732
+ init_cjs_shim();
14663
14733
  module2.exports = function hasSymbols() {
14664
14734
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
14665
14735
  return false;
@@ -14712,6 +14782,7 @@ var require_shams = __commonJS({
14712
14782
  var require_has_symbols = __commonJS({
14713
14783
  "../../node_modules/side-channel/node_modules/has-symbols/index.js"(exports, module2) {
14714
14784
  "use strict";
14785
+ init_cjs_shim();
14715
14786
  var origSymbol = global.Symbol;
14716
14787
  var hasSymbolSham = require_shams();
14717
14788
  module2.exports = function hasNativeSymbols() {
@@ -14736,6 +14807,7 @@ var require_has_symbols = __commonJS({
14736
14807
  var require_implementation = __commonJS({
14737
14808
  "../../node_modules/function-bind/implementation.js"(exports, module2) {
14738
14809
  "use strict";
14810
+ init_cjs_shim();
14739
14811
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
14740
14812
  var slice = Array.prototype.slice;
14741
14813
  var toStr = Object.prototype.toString;
@@ -14786,6 +14858,7 @@ var require_implementation = __commonJS({
14786
14858
  var require_function_bind = __commonJS({
14787
14859
  "../../node_modules/function-bind/index.js"(exports, module2) {
14788
14860
  "use strict";
14861
+ init_cjs_shim();
14789
14862
  var implementation = require_implementation();
14790
14863
  module2.exports = Function.prototype.bind || implementation;
14791
14864
  }
@@ -14795,6 +14868,7 @@ var require_function_bind = __commonJS({
14795
14868
  var require_src2 = __commonJS({
14796
14869
  "../../node_modules/has/src/index.js"(exports, module2) {
14797
14870
  "use strict";
14871
+ init_cjs_shim();
14798
14872
  var bind = require_function_bind();
14799
14873
  module2.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
14800
14874
  }
@@ -14804,6 +14878,7 @@ var require_src2 = __commonJS({
14804
14878
  var require_get_intrinsic = __commonJS({
14805
14879
  "../../node_modules/side-channel/node_modules/get-intrinsic/index.js"(exports, module2) {
14806
14880
  "use strict";
14881
+ init_cjs_shim();
14807
14882
  var undefined2;
14808
14883
  var $SyntaxError = SyntaxError;
14809
14884
  var $Function = Function;
@@ -15095,6 +15170,7 @@ var require_get_intrinsic = __commonJS({
15095
15170
  var require_shams2 = __commonJS({
15096
15171
  "../../node_modules/call-bind/node_modules/has-symbols/shams.js"(exports, module2) {
15097
15172
  "use strict";
15173
+ init_cjs_shim();
15098
15174
  module2.exports = function hasSymbols() {
15099
15175
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
15100
15176
  return false;
@@ -15147,6 +15223,7 @@ var require_shams2 = __commonJS({
15147
15223
  var require_has_symbols2 = __commonJS({
15148
15224
  "../../node_modules/call-bind/node_modules/has-symbols/index.js"(exports, module2) {
15149
15225
  "use strict";
15226
+ init_cjs_shim();
15150
15227
  var origSymbol = global.Symbol;
15151
15228
  var hasSymbolSham = require_shams2();
15152
15229
  module2.exports = function hasNativeSymbols() {
@@ -15171,6 +15248,7 @@ var require_has_symbols2 = __commonJS({
15171
15248
  var require_get_intrinsic2 = __commonJS({
15172
15249
  "../../node_modules/call-bind/node_modules/get-intrinsic/index.js"(exports, module2) {
15173
15250
  "use strict";
15251
+ init_cjs_shim();
15174
15252
  var undefined2;
15175
15253
  var $SyntaxError = SyntaxError;
15176
15254
  var $Function = Function;
@@ -15462,6 +15540,7 @@ var require_get_intrinsic2 = __commonJS({
15462
15540
  var require_call_bind = __commonJS({
15463
15541
  "../../node_modules/call-bind/index.js"(exports, module2) {
15464
15542
  "use strict";
15543
+ init_cjs_shim();
15465
15544
  var bind = require_function_bind();
15466
15545
  var GetIntrinsic = require_get_intrinsic2();
15467
15546
  var $apply = GetIntrinsic("%Function.prototype.apply%");
@@ -15506,6 +15585,7 @@ var require_call_bind = __commonJS({
15506
15585
  var require_callBound = __commonJS({
15507
15586
  "../../node_modules/call-bind/callBound.js"(exports, module2) {
15508
15587
  "use strict";
15588
+ init_cjs_shim();
15509
15589
  var GetIntrinsic = require_get_intrinsic2();
15510
15590
  var callBind = require_call_bind();
15511
15591
  var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
@@ -15522,6 +15602,7 @@ var require_callBound = __commonJS({
15522
15602
  // ../../node_modules/object-inspect/util.inspect.js
15523
15603
  var require_util_inspect = __commonJS({
15524
15604
  "../../node_modules/object-inspect/util.inspect.js"(exports, module2) {
15605
+ init_cjs_shim();
15525
15606
  module2.exports = __require("util").inspect;
15526
15607
  }
15527
15608
  });
@@ -15529,6 +15610,7 @@ var require_util_inspect = __commonJS({
15529
15610
  // ../../node_modules/object-inspect/index.js
15530
15611
  var require_object_inspect = __commonJS({
15531
15612
  "../../node_modules/object-inspect/index.js"(exports, module2) {
15613
+ init_cjs_shim();
15532
15614
  var hasMap = typeof Map === "function" && Map.prototype;
15533
15615
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
15534
15616
  var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
@@ -16034,6 +16116,7 @@ var require_object_inspect = __commonJS({
16034
16116
  var require_side_channel = __commonJS({
16035
16117
  "../../node_modules/side-channel/index.js"(exports, module2) {
16036
16118
  "use strict";
16119
+ init_cjs_shim();
16037
16120
  var GetIntrinsic = require_get_intrinsic();
16038
16121
  var callBound = require_callBound();
16039
16122
  var inspect = require_object_inspect();
@@ -16145,6 +16228,7 @@ var require_side_channel = __commonJS({
16145
16228
  var require_formats = __commonJS({
16146
16229
  "../../node_modules/qs/lib/formats.js"(exports, module2) {
16147
16230
  "use strict";
16231
+ init_cjs_shim();
16148
16232
  var replace = String.prototype.replace;
16149
16233
  var percentTwenties = /%20/g;
16150
16234
  var Format = {
@@ -16171,6 +16255,7 @@ var require_formats = __commonJS({
16171
16255
  var require_utils = __commonJS({
16172
16256
  "../../node_modules/qs/lib/utils.js"(exports, module2) {
16173
16257
  "use strict";
16258
+ init_cjs_shim();
16174
16259
  var formats = require_formats();
16175
16260
  var has = Object.prototype.hasOwnProperty;
16176
16261
  var isArray = Array.isArray;
@@ -16370,6 +16455,7 @@ var require_utils = __commonJS({
16370
16455
  var require_stringify = __commonJS({
16371
16456
  "../../node_modules/qs/lib/stringify.js"(exports, module2) {
16372
16457
  "use strict";
16458
+ init_cjs_shim();
16373
16459
  var getSideChannel = require_side_channel();
16374
16460
  var utils = require_utils();
16375
16461
  var formats = require_formats();
@@ -16633,6 +16719,7 @@ var require_stringify = __commonJS({
16633
16719
  var require_parse2 = __commonJS({
16634
16720
  "../../node_modules/qs/lib/parse.js"(exports, module2) {
16635
16721
  "use strict";
16722
+ init_cjs_shim();
16636
16723
  var utils = require_utils();
16637
16724
  var has = Object.prototype.hasOwnProperty;
16638
16725
  var isArray = Array.isArray;
@@ -16835,6 +16922,7 @@ var require_parse2 = __commonJS({
16835
16922
  var require_lib2 = __commonJS({
16836
16923
  "../../node_modules/qs/lib/index.js"(exports, module2) {
16837
16924
  "use strict";
16925
+ init_cjs_shim();
16838
16926
  var stringify = require_stringify();
16839
16927
  var parse = require_parse2();
16840
16928
  var formats = require_formats();
@@ -16850,6 +16938,7 @@ var require_lib2 = __commonJS({
16850
16938
  var require_urlencoded = __commonJS({
16851
16939
  "../../node_modules/body-parser/lib/types/urlencoded.js"(exports, module2) {
16852
16940
  "use strict";
16941
+ init_cjs_shim();
16853
16942
  var bytes = require_bytes();
16854
16943
  var contentType = require_content_type();
16855
16944
  var createError = require_http_errors();
@@ -17008,6 +17097,7 @@ var require_urlencoded = __commonJS({
17008
17097
  var require_body_parser = __commonJS({
17009
17098
  "../../node_modules/body-parser/index.js"(exports, module2) {
17010
17099
  "use strict";
17100
+ init_cjs_shim();
17011
17101
  var deprecate = require_depd()("body-parser");
17012
17102
  var parsers = /* @__PURE__ */ Object.create(null);
17013
17103
  exports = module2.exports = deprecate.function(
@@ -17086,6 +17176,7 @@ var require_body_parser = __commonJS({
17086
17176
  var require_merge_descriptors = __commonJS({
17087
17177
  "../../node_modules/merge-descriptors/index.js"(exports, module2) {
17088
17178
  "use strict";
17179
+ init_cjs_shim();
17089
17180
  module2.exports = merge2;
17090
17181
  var hasOwnProperty = Object.prototype.hasOwnProperty;
17091
17182
  function merge2(dest, src, redefine) {
@@ -17113,6 +17204,7 @@ var require_merge_descriptors = __commonJS({
17113
17204
  // ../../node_modules/finalhandler/node_modules/ms/index.js
17114
17205
  var require_ms2 = __commonJS({
17115
17206
  "../../node_modules/finalhandler/node_modules/ms/index.js"(exports, module2) {
17207
+ init_cjs_shim();
17116
17208
  var s = 1e3;
17117
17209
  var m = s * 60;
17118
17210
  var h = m * 60;
@@ -17215,6 +17307,7 @@ var require_ms2 = __commonJS({
17215
17307
  // ../../node_modules/finalhandler/node_modules/debug/src/debug.js
17216
17308
  var require_debug2 = __commonJS({
17217
17309
  "../../node_modules/finalhandler/node_modules/debug/src/debug.js"(exports, module2) {
17310
+ init_cjs_shim();
17218
17311
  exports = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
17219
17312
  exports.coerce = coerce;
17220
17313
  exports.disable = disable;
@@ -17324,6 +17417,7 @@ var require_debug2 = __commonJS({
17324
17417
  // ../../node_modules/finalhandler/node_modules/debug/src/browser.js
17325
17418
  var require_browser2 = __commonJS({
17326
17419
  "../../node_modules/finalhandler/node_modules/debug/src/browser.js"(exports, module2) {
17420
+ init_cjs_shim();
17327
17421
  exports = module2.exports = require_debug2();
17328
17422
  exports.log = log;
17329
17423
  exports.formatArgs = formatArgs;
@@ -17412,6 +17506,7 @@ var require_browser2 = __commonJS({
17412
17506
  // ../../node_modules/finalhandler/node_modules/debug/src/node.js
17413
17507
  var require_node2 = __commonJS({
17414
17508
  "../../node_modules/finalhandler/node_modules/debug/src/node.js"(exports, module2) {
17509
+ init_cjs_shim();
17415
17510
  var tty = __require("tty");
17416
17511
  var util = __require("util");
17417
17512
  exports = module2.exports = require_debug2();
@@ -17536,6 +17631,7 @@ var require_node2 = __commonJS({
17536
17631
  // ../../node_modules/finalhandler/node_modules/debug/src/index.js
17537
17632
  var require_src3 = __commonJS({
17538
17633
  "../../node_modules/finalhandler/node_modules/debug/src/index.js"(exports, module2) {
17634
+ init_cjs_shim();
17539
17635
  if (typeof process !== "undefined" && process.type === "renderer") {
17540
17636
  module2.exports = require_browser2();
17541
17637
  } else {
@@ -17548,12 +17644,13 @@ var require_src3 = __commonJS({
17548
17644
  var require_encodeurl = __commonJS({
17549
17645
  "../../node_modules/encodeurl/index.js"(exports, module2) {
17550
17646
  "use strict";
17647
+ init_cjs_shim();
17551
17648
  module2.exports = encodeUrl;
17552
17649
  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;
17553
17650
  var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
17554
17651
  var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1\uFFFD$2";
17555
- function encodeUrl(url) {
17556
- return String(url).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
17652
+ function encodeUrl(url2) {
17653
+ return String(url2).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
17557
17654
  }
17558
17655
  }
17559
17656
  });
@@ -17562,6 +17659,7 @@ var require_encodeurl = __commonJS({
17562
17659
  var require_escape_html = __commonJS({
17563
17660
  "../../node_modules/escape-html/index.js"(exports, module2) {
17564
17661
  "use strict";
17662
+ init_cjs_shim();
17565
17663
  var matchHtmlRegExp = /["'&<>]/;
17566
17664
  module2.exports = escapeHtml;
17567
17665
  function escapeHtml(string) {
@@ -17609,35 +17707,36 @@ var require_escape_html = __commonJS({
17609
17707
  var require_parseurl = __commonJS({
17610
17708
  "../../node_modules/parseurl/index.js"(exports, module2) {
17611
17709
  "use strict";
17612
- var url = __require("url");
17613
- var parse = url.parse;
17614
- var Url = url.Url;
17710
+ init_cjs_shim();
17711
+ var url2 = __require("url");
17712
+ var parse = url2.parse;
17713
+ var Url = url2.Url;
17615
17714
  module2.exports = parseurl;
17616
17715
  module2.exports.original = originalurl;
17617
17716
  function parseurl(req) {
17618
- var url2 = req.url;
17619
- if (url2 === void 0) {
17717
+ var url3 = req.url;
17718
+ if (url3 === void 0) {
17620
17719
  return void 0;
17621
17720
  }
17622
17721
  var parsed = req._parsedUrl;
17623
- if (fresh(url2, parsed)) {
17722
+ if (fresh(url3, parsed)) {
17624
17723
  return parsed;
17625
17724
  }
17626
- parsed = fastparse(url2);
17627
- parsed._raw = url2;
17725
+ parsed = fastparse(url3);
17726
+ parsed._raw = url3;
17628
17727
  return req._parsedUrl = parsed;
17629
17728
  }
17630
17729
  function originalurl(req) {
17631
- var url2 = req.originalUrl;
17632
- if (typeof url2 !== "string") {
17730
+ var url3 = req.originalUrl;
17731
+ if (typeof url3 !== "string") {
17633
17732
  return parseurl(req);
17634
17733
  }
17635
17734
  var parsed = req._parsedOriginalUrl;
17636
- if (fresh(url2, parsed)) {
17735
+ if (fresh(url3, parsed)) {
17637
17736
  return parsed;
17638
17737
  }
17639
- parsed = fastparse(url2);
17640
- parsed._raw = url2;
17738
+ parsed = fastparse(url3);
17739
+ parsed._raw = url3;
17641
17740
  return req._parsedOriginalUrl = parsed;
17642
17741
  }
17643
17742
  function fastparse(str) {
@@ -17667,18 +17766,18 @@ var require_parseurl = __commonJS({
17667
17766
  return parse(str);
17668
17767
  }
17669
17768
  }
17670
- var url2 = Url !== void 0 ? new Url() : {};
17671
- url2.path = str;
17672
- url2.href = str;
17673
- url2.pathname = pathname;
17769
+ var url3 = Url !== void 0 ? new Url() : {};
17770
+ url3.path = str;
17771
+ url3.href = str;
17772
+ url3.pathname = pathname;
17674
17773
  if (search !== null) {
17675
- url2.query = query;
17676
- url2.search = search;
17774
+ url3.query = query;
17775
+ url3.search = search;
17677
17776
  }
17678
- return url2;
17777
+ return url3;
17679
17778
  }
17680
- function fresh(url2, parsedUrl) {
17681
- return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url2;
17779
+ function fresh(url3, parsedUrl) {
17780
+ return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url3;
17682
17781
  }
17683
17782
  }
17684
17783
  });
@@ -17687,6 +17786,7 @@ var require_parseurl = __commonJS({
17687
17786
  var require_finalhandler = __commonJS({
17688
17787
  "../../node_modules/finalhandler/index.js"(exports, module2) {
17689
17788
  "use strict";
17789
+ init_cjs_shim();
17690
17790
  var debug = require_src3()("finalhandler");
17691
17791
  var encodeUrl = require_encodeurl();
17692
17792
  var escapeHtml = require_escape_html();
@@ -17832,6 +17932,7 @@ var require_finalhandler = __commonJS({
17832
17932
  // ../../node_modules/express/node_modules/ms/index.js
17833
17933
  var require_ms3 = __commonJS({
17834
17934
  "../../node_modules/express/node_modules/ms/index.js"(exports, module2) {
17935
+ init_cjs_shim();
17835
17936
  var s = 1e3;
17836
17937
  var m = s * 60;
17837
17938
  var h = m * 60;
@@ -17934,6 +18035,7 @@ var require_ms3 = __commonJS({
17934
18035
  // ../../node_modules/express/node_modules/debug/src/debug.js
17935
18036
  var require_debug3 = __commonJS({
17936
18037
  "../../node_modules/express/node_modules/debug/src/debug.js"(exports, module2) {
18038
+ init_cjs_shim();
17937
18039
  exports = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
17938
18040
  exports.coerce = coerce;
17939
18041
  exports.disable = disable;
@@ -18043,6 +18145,7 @@ var require_debug3 = __commonJS({
18043
18145
  // ../../node_modules/express/node_modules/debug/src/browser.js
18044
18146
  var require_browser3 = __commonJS({
18045
18147
  "../../node_modules/express/node_modules/debug/src/browser.js"(exports, module2) {
18148
+ init_cjs_shim();
18046
18149
  exports = module2.exports = require_debug3();
18047
18150
  exports.log = log;
18048
18151
  exports.formatArgs = formatArgs;
@@ -18131,6 +18234,7 @@ var require_browser3 = __commonJS({
18131
18234
  // ../../node_modules/express/node_modules/debug/src/node.js
18132
18235
  var require_node3 = __commonJS({
18133
18236
  "../../node_modules/express/node_modules/debug/src/node.js"(exports, module2) {
18237
+ init_cjs_shim();
18134
18238
  var tty = __require("tty");
18135
18239
  var util = __require("util");
18136
18240
  exports = module2.exports = require_debug3();
@@ -18255,6 +18359,7 @@ var require_node3 = __commonJS({
18255
18359
  // ../../node_modules/express/node_modules/debug/src/index.js
18256
18360
  var require_src4 = __commonJS({
18257
18361
  "../../node_modules/express/node_modules/debug/src/index.js"(exports, module2) {
18362
+ init_cjs_shim();
18258
18363
  if (typeof process !== "undefined" && process.type === "renderer") {
18259
18364
  module2.exports = require_browser3();
18260
18365
  } else {
@@ -18267,6 +18372,7 @@ var require_src4 = __commonJS({
18267
18372
  var require_array_flatten = __commonJS({
18268
18373
  "../../node_modules/array-flatten/array-flatten.js"(exports, module2) {
18269
18374
  "use strict";
18375
+ init_cjs_shim();
18270
18376
  module2.exports = arrayFlatten;
18271
18377
  function flattenWithDepth(array, result, depth) {
18272
18378
  for (var i = 0; i < array.length; i++) {
@@ -18302,9 +18408,10 @@ var require_array_flatten = __commonJS({
18302
18408
  // ../../node_modules/express/node_modules/path-to-regexp/index.js
18303
18409
  var require_path_to_regexp = __commonJS({
18304
18410
  "../../node_modules/express/node_modules/path-to-regexp/index.js"(exports, module2) {
18411
+ init_cjs_shim();
18305
18412
  module2.exports = pathtoRegexp;
18306
18413
  var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
18307
- function pathtoRegexp(path2, keys, options) {
18414
+ function pathtoRegexp(path3, keys, options) {
18308
18415
  options = options || {};
18309
18416
  keys = keys || [];
18310
18417
  var strict = options.strict;
@@ -18315,23 +18422,23 @@ var require_path_to_regexp = __commonJS({
18315
18422
  var i = 0;
18316
18423
  var name = 0;
18317
18424
  var m;
18318
- if (path2 instanceof RegExp) {
18319
- while (m = MATCHING_GROUP_REGEXP.exec(path2.source)) {
18425
+ if (path3 instanceof RegExp) {
18426
+ while (m = MATCHING_GROUP_REGEXP.exec(path3.source)) {
18320
18427
  keys.push({
18321
18428
  name: name++,
18322
18429
  optional: false,
18323
18430
  offset: m.index
18324
18431
  });
18325
18432
  }
18326
- return path2;
18433
+ return path3;
18327
18434
  }
18328
- if (Array.isArray(path2)) {
18329
- path2 = path2.map(function(value) {
18435
+ if (Array.isArray(path3)) {
18436
+ path3 = path3.map(function(value) {
18330
18437
  return pathtoRegexp(value, keys, options).source;
18331
18438
  });
18332
- return new RegExp("(?:" + path2.join("|") + ")", flags);
18439
+ return new RegExp("(?:" + path3.join("|") + ")", flags);
18333
18440
  }
18334
- path2 = ("^" + path2 + (strict ? "" : path2[path2.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
18441
+ path3 = ("^" + path3 + (strict ? "" : path3[path3.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
18335
18442
  slash = slash || "";
18336
18443
  format = format || "";
18337
18444
  capture = capture || "([^\\/" + format + "]+?)";
@@ -18351,10 +18458,10 @@ var require_path_to_regexp = __commonJS({
18351
18458
  }
18352
18459
  return "(.*)";
18353
18460
  });
18354
- while (m = MATCHING_GROUP_REGEXP.exec(path2)) {
18461
+ while (m = MATCHING_GROUP_REGEXP.exec(path3)) {
18355
18462
  var escapeCount = 0;
18356
18463
  var index = m.index;
18357
- while (path2.charAt(--index) === "\\") {
18464
+ while (path3.charAt(--index) === "\\") {
18358
18465
  escapeCount++;
18359
18466
  }
18360
18467
  if (escapeCount % 2 === 1) {
@@ -18370,8 +18477,8 @@ var require_path_to_regexp = __commonJS({
18370
18477
  }
18371
18478
  i++;
18372
18479
  }
18373
- path2 += end ? "$" : path2[path2.length - 1] === "/" ? "" : "(?=\\/|$)";
18374
- return new RegExp(path2, flags);
18480
+ path3 += end ? "$" : path3[path3.length - 1] === "/" ? "" : "(?=\\/|$)";
18481
+ return new RegExp(path3, flags);
18375
18482
  }
18376
18483
  }
18377
18484
  });
@@ -18380,23 +18487,24 @@ var require_path_to_regexp = __commonJS({
18380
18487
  var require_layer = __commonJS({
18381
18488
  "../../node_modules/express/lib/router/layer.js"(exports, module2) {
18382
18489
  "use strict";
18490
+ init_cjs_shim();
18383
18491
  var pathRegexp = require_path_to_regexp();
18384
18492
  var debug = require_src4()("express:router:layer");
18385
18493
  var hasOwnProperty = Object.prototype.hasOwnProperty;
18386
18494
  module2.exports = Layer;
18387
- function Layer(path2, options, fn) {
18495
+ function Layer(path3, options, fn) {
18388
18496
  if (!(this instanceof Layer)) {
18389
- return new Layer(path2, options, fn);
18497
+ return new Layer(path3, options, fn);
18390
18498
  }
18391
- debug("new %o", path2);
18499
+ debug("new %o", path3);
18392
18500
  var opts = options || {};
18393
18501
  this.handle = fn;
18394
18502
  this.name = fn.name || "<anonymous>";
18395
18503
  this.params = void 0;
18396
18504
  this.path = void 0;
18397
- this.regexp = pathRegexp(path2, this.keys = [], opts);
18398
- this.regexp.fast_star = path2 === "*";
18399
- this.regexp.fast_slash = path2 === "/" && opts.end === false;
18505
+ this.regexp = pathRegexp(path3, this.keys = [], opts);
18506
+ this.regexp.fast_star = path3 === "*";
18507
+ this.regexp.fast_slash = path3 === "/" && opts.end === false;
18400
18508
  }
18401
18509
  Layer.prototype.handle_error = function handle_error(error, req, res, next) {
18402
18510
  var fn = this.handle;
@@ -18420,20 +18528,20 @@ var require_layer = __commonJS({
18420
18528
  next(err);
18421
18529
  }
18422
18530
  };
18423
- Layer.prototype.match = function match(path2) {
18531
+ Layer.prototype.match = function match(path3) {
18424
18532
  var match2;
18425
- if (path2 != null) {
18533
+ if (path3 != null) {
18426
18534
  if (this.regexp.fast_slash) {
18427
18535
  this.params = {};
18428
18536
  this.path = "";
18429
18537
  return true;
18430
18538
  }
18431
18539
  if (this.regexp.fast_star) {
18432
- this.params = { "0": decode_param(path2) };
18433
- this.path = path2;
18540
+ this.params = { "0": decode_param(path3) };
18541
+ this.path = path3;
18434
18542
  return true;
18435
18543
  }
18436
- match2 = this.regexp.exec(path2);
18544
+ match2 = this.regexp.exec(path3);
18437
18545
  }
18438
18546
  if (!match2) {
18439
18547
  this.params = void 0;
@@ -18475,6 +18583,7 @@ var require_layer = __commonJS({
18475
18583
  var require_methods = __commonJS({
18476
18584
  "../../node_modules/methods/index.js"(exports, module2) {
18477
18585
  "use strict";
18586
+ init_cjs_shim();
18478
18587
  var http = __require("http");
18479
18588
  module2.exports = getCurrentNodeMethods() || getBasicNodeMethods();
18480
18589
  function getCurrentNodeMethods() {
@@ -18519,6 +18628,7 @@ var require_methods = __commonJS({
18519
18628
  var require_route = __commonJS({
18520
18629
  "../../node_modules/express/lib/router/route.js"(exports, module2) {
18521
18630
  "use strict";
18631
+ init_cjs_shim();
18522
18632
  var debug = require_src4()("express:router:route");
18523
18633
  var flatten = require_array_flatten();
18524
18634
  var Layer = require_layer();
@@ -18526,10 +18636,10 @@ var require_route = __commonJS({
18526
18636
  var slice = Array.prototype.slice;
18527
18637
  var toString = Object.prototype.toString;
18528
18638
  module2.exports = Route;
18529
- function Route(path2) {
18530
- this.path = path2;
18639
+ function Route(path3) {
18640
+ this.path = path3;
18531
18641
  this.stack = [];
18532
- debug("new %o", path2);
18642
+ debug("new %o", path3);
18533
18643
  this.methods = {};
18534
18644
  }
18535
18645
  Route.prototype._handles_method = function _handles_method(method) {
@@ -18630,6 +18740,7 @@ var require_route = __commonJS({
18630
18740
  // ../../node_modules/utils-merge/index.js
18631
18741
  var require_utils_merge = __commonJS({
18632
18742
  "../../node_modules/utils-merge/index.js"(exports, module2) {
18743
+ init_cjs_shim();
18633
18744
  exports = module2.exports = function(a, b) {
18634
18745
  if (a && b) {
18635
18746
  for (var key in b) {
@@ -18645,6 +18756,7 @@ var require_utils_merge = __commonJS({
18645
18756
  var require_router = __commonJS({
18646
18757
  "../../node_modules/express/lib/router/index.js"(exports, module2) {
18647
18758
  "use strict";
18759
+ init_cjs_shim();
18648
18760
  var Route = require_route();
18649
18761
  var Layer = require_layer();
18650
18762
  var methods = require_methods();
@@ -18742,8 +18854,8 @@ var require_router = __commonJS({
18742
18854
  if (++sync > 100) {
18743
18855
  return setImmediate(next, err);
18744
18856
  }
18745
- var path2 = getPathname(req);
18746
- if (path2 == null) {
18857
+ var path3 = getPathname(req);
18858
+ if (path3 == null) {
18747
18859
  return done(layerError);
18748
18860
  }
18749
18861
  var layer;
@@ -18751,7 +18863,7 @@ var require_router = __commonJS({
18751
18863
  var route;
18752
18864
  while (match !== true && idx < stack.length) {
18753
18865
  layer = stack[idx++];
18754
- match = matchLayer(layer, path2);
18866
+ match = matchLayer(layer, path3);
18755
18867
  route = layer.route;
18756
18868
  if (typeof match !== "boolean") {
18757
18869
  layerError = layerError || match;
@@ -18789,18 +18901,18 @@ var require_router = __commonJS({
18789
18901
  } else if (route) {
18790
18902
  layer.handle_request(req, res, next);
18791
18903
  } else {
18792
- trim_prefix(layer, layerError, layerPath, path2);
18904
+ trim_prefix(layer, layerError, layerPath, path3);
18793
18905
  }
18794
18906
  sync = 0;
18795
18907
  });
18796
18908
  }
18797
- function trim_prefix(layer, layerError, layerPath, path2) {
18909
+ function trim_prefix(layer, layerError, layerPath, path3) {
18798
18910
  if (layerPath.length !== 0) {
18799
- if (layerPath !== path2.slice(0, layerPath.length)) {
18911
+ if (layerPath !== path3.slice(0, layerPath.length)) {
18800
18912
  next(layerError);
18801
18913
  return;
18802
18914
  }
18803
- var c = path2[layerPath.length];
18915
+ var c = path3[layerPath.length];
18804
18916
  if (c && c !== "/" && c !== ".")
18805
18917
  return next(layerError);
18806
18918
  debug("trim prefix (%s) from url %s", layerPath, req.url);
@@ -18880,7 +18992,7 @@ var require_router = __commonJS({
18880
18992
  };
18881
18993
  proto.use = function use(fn) {
18882
18994
  var offset = 0;
18883
- var path2 = "/";
18995
+ var path3 = "/";
18884
18996
  if (typeof fn !== "function") {
18885
18997
  var arg = fn;
18886
18998
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -18888,7 +19000,7 @@ var require_router = __commonJS({
18888
19000
  }
18889
19001
  if (typeof arg !== "function") {
18890
19002
  offset = 1;
18891
- path2 = fn;
19003
+ path3 = fn;
18892
19004
  }
18893
19005
  }
18894
19006
  var callbacks = flatten(slice.call(arguments, offset));
@@ -18900,8 +19012,8 @@ var require_router = __commonJS({
18900
19012
  if (typeof fn !== "function") {
18901
19013
  throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
18902
19014
  }
18903
- debug("use %o %s", path2, fn.name || "<anonymous>");
18904
- var layer = new Layer(path2, {
19015
+ debug("use %o %s", path3, fn.name || "<anonymous>");
19016
+ var layer = new Layer(path3, {
18905
19017
  sensitive: this.caseSensitive,
18906
19018
  strict: false,
18907
19019
  end: false
@@ -18911,9 +19023,9 @@ var require_router = __commonJS({
18911
19023
  }
18912
19024
  return this;
18913
19025
  };
18914
- proto.route = function route(path2) {
18915
- var route2 = new Route(path2);
18916
- var layer = new Layer(path2, {
19026
+ proto.route = function route(path3) {
19027
+ var route2 = new Route(path3);
19028
+ var layer = new Layer(path3, {
18917
19029
  sensitive: this.caseSensitive,
18918
19030
  strict: this.strict,
18919
19031
  end: true
@@ -18923,8 +19035,8 @@ var require_router = __commonJS({
18923
19035
  return route2;
18924
19036
  };
18925
19037
  methods.concat("all").forEach(function(method) {
18926
- proto[method] = function(path2) {
18927
- var route = this.route(path2);
19038
+ proto[method] = function(path3) {
19039
+ var route = this.route(path3);
18928
19040
  route[method].apply(route, slice.call(arguments, 1));
18929
19041
  return this;
18930
19042
  };
@@ -18944,14 +19056,14 @@ var require_router = __commonJS({
18944
19056
  return void 0;
18945
19057
  }
18946
19058
  }
18947
- function getProtohost(url) {
18948
- if (typeof url !== "string" || url.length === 0 || url[0] === "/") {
19059
+ function getProtohost(url2) {
19060
+ if (typeof url2 !== "string" || url2.length === 0 || url2[0] === "/") {
18949
19061
  return void 0;
18950
19062
  }
18951
- var searchIndex = url.indexOf("?");
18952
- var pathLength = searchIndex !== -1 ? searchIndex : url.length;
18953
- var fqdnIndex = url.slice(0, pathLength).indexOf("://");
18954
- return fqdnIndex !== -1 ? url.substring(0, url.indexOf("/", 3 + fqdnIndex)) : void 0;
19063
+ var searchIndex = url2.indexOf("?");
19064
+ var pathLength = searchIndex !== -1 ? searchIndex : url2.length;
19065
+ var fqdnIndex = url2.slice(0, pathLength).indexOf("://");
19066
+ return fqdnIndex !== -1 ? url2.substring(0, url2.indexOf("/", 3 + fqdnIndex)) : void 0;
18955
19067
  }
18956
19068
  function gettype(obj) {
18957
19069
  var type = typeof obj;
@@ -18960,9 +19072,9 @@ var require_router = __commonJS({
18960
19072
  }
18961
19073
  return toString.call(obj).replace(objectRegExp, "$1");
18962
19074
  }
18963
- function matchLayer(layer, path2) {
19075
+ function matchLayer(layer, path3) {
18964
19076
  try {
18965
- return layer.match(path2);
19077
+ return layer.match(path3);
18966
19078
  } catch (err) {
18967
19079
  return err;
18968
19080
  }
@@ -19031,6 +19143,7 @@ var require_router = __commonJS({
19031
19143
  var require_init = __commonJS({
19032
19144
  "../../node_modules/express/lib/middleware/init.js"(exports) {
19033
19145
  "use strict";
19146
+ init_cjs_shim();
19034
19147
  var setPrototypeOf = require_setprototypeof();
19035
19148
  exports.init = function(app) {
19036
19149
  return function expressInit(req, res, next) {
@@ -19052,6 +19165,7 @@ var require_init = __commonJS({
19052
19165
  var require_query = __commonJS({
19053
19166
  "../../node_modules/express/lib/middleware/query.js"(exports, module2) {
19054
19167
  "use strict";
19168
+ init_cjs_shim();
19055
19169
  var merge2 = require_utils_merge();
19056
19170
  var parseUrl = require_parseurl();
19057
19171
  var qs = require_lib2();
@@ -19080,14 +19194,15 @@ var require_query = __commonJS({
19080
19194
  var require_view = __commonJS({
19081
19195
  "../../node_modules/express/lib/view.js"(exports, module2) {
19082
19196
  "use strict";
19197
+ init_cjs_shim();
19083
19198
  var debug = require_src4()("express:view");
19084
- var path2 = __require("path");
19199
+ var path3 = __require("path");
19085
19200
  var fs = __require("fs");
19086
- var dirname2 = path2.dirname;
19087
- var basename = path2.basename;
19088
- var extname = path2.extname;
19089
- var join = path2.join;
19090
- var resolve2 = path2.resolve;
19201
+ var dirname2 = path3.dirname;
19202
+ var basename = path3.basename;
19203
+ var extname = path3.extname;
19204
+ var join = path3.join;
19205
+ var resolve2 = path3.resolve;
19091
19206
  module2.exports = View;
19092
19207
  function View(name, options) {
19093
19208
  var opts = options || {};
@@ -19116,17 +19231,17 @@ var require_view = __commonJS({
19116
19231
  this.path = this.lookup(fileName);
19117
19232
  }
19118
19233
  View.prototype.lookup = function lookup(name) {
19119
- var path3;
19234
+ var path4;
19120
19235
  var roots = [].concat(this.root);
19121
19236
  debug('lookup "%s"', name);
19122
- for (var i = 0; i < roots.length && !path3; i++) {
19237
+ for (var i = 0; i < roots.length && !path4; i++) {
19123
19238
  var root = roots[i];
19124
19239
  var loc = resolve2(root, name);
19125
19240
  var dir = dirname2(loc);
19126
19241
  var file = basename(loc);
19127
- path3 = this.resolve(dir, file);
19242
+ path4 = this.resolve(dir, file);
19128
19243
  }
19129
- return path3;
19244
+ return path4;
19130
19245
  };
19131
19246
  View.prototype.render = function render(options, callback) {
19132
19247
  debug('render "%s"', this.path);
@@ -19134,21 +19249,21 @@ var require_view = __commonJS({
19134
19249
  };
19135
19250
  View.prototype.resolve = function resolve3(dir, file) {
19136
19251
  var ext = this.ext;
19137
- var path3 = join(dir, file);
19138
- var stat = tryStat(path3);
19252
+ var path4 = join(dir, file);
19253
+ var stat = tryStat(path4);
19139
19254
  if (stat && stat.isFile()) {
19140
- return path3;
19255
+ return path4;
19141
19256
  }
19142
- path3 = join(dir, basename(file, ext), "index" + ext);
19143
- stat = tryStat(path3);
19257
+ path4 = join(dir, basename(file, ext), "index" + ext);
19258
+ stat = tryStat(path4);
19144
19259
  if (stat && stat.isFile()) {
19145
- return path3;
19260
+ return path4;
19146
19261
  }
19147
19262
  };
19148
- function tryStat(path3) {
19149
- debug('stat "%s"', path3);
19263
+ function tryStat(path4) {
19264
+ debug('stat "%s"', path4);
19150
19265
  try {
19151
- return fs.statSync(path3);
19266
+ return fs.statSync(path4);
19152
19267
  } catch (e) {
19153
19268
  return void 0;
19154
19269
  }
@@ -19159,6 +19274,7 @@ var require_view = __commonJS({
19159
19274
  // ../../node_modules/safe-buffer/index.js
19160
19275
  var require_safe_buffer = __commonJS({
19161
19276
  "../../node_modules/safe-buffer/index.js"(exports, module2) {
19277
+ init_cjs_shim();
19162
19278
  var buffer = __require("buffer");
19163
19279
  var Buffer2 = buffer.Buffer;
19164
19280
  function copyProps(src, dst) {
@@ -19218,6 +19334,7 @@ var require_safe_buffer = __commonJS({
19218
19334
  var require_content_disposition = __commonJS({
19219
19335
  "../../node_modules/content-disposition/index.js"(exports, module2) {
19220
19336
  "use strict";
19337
+ init_cjs_shim();
19221
19338
  module2.exports = contentDisposition;
19222
19339
  module2.exports.parse = parse;
19223
19340
  var basename = __require("path").basename;
@@ -19380,6 +19497,7 @@ var require_content_disposition = __commonJS({
19380
19497
  // ../../node_modules/send/node_modules/debug/node_modules/ms/index.js
19381
19498
  var require_ms4 = __commonJS({
19382
19499
  "../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports, module2) {
19500
+ init_cjs_shim();
19383
19501
  var s = 1e3;
19384
19502
  var m = s * 60;
19385
19503
  var h = m * 60;
@@ -19482,6 +19600,7 @@ var require_ms4 = __commonJS({
19482
19600
  // ../../node_modules/send/node_modules/debug/src/debug.js
19483
19601
  var require_debug4 = __commonJS({
19484
19602
  "../../node_modules/send/node_modules/debug/src/debug.js"(exports, module2) {
19603
+ init_cjs_shim();
19485
19604
  exports = module2.exports = createDebug.debug = createDebug["default"] = createDebug;
19486
19605
  exports.coerce = coerce;
19487
19606
  exports.disable = disable;
@@ -19591,6 +19710,7 @@ var require_debug4 = __commonJS({
19591
19710
  // ../../node_modules/send/node_modules/debug/src/browser.js
19592
19711
  var require_browser4 = __commonJS({
19593
19712
  "../../node_modules/send/node_modules/debug/src/browser.js"(exports, module2) {
19713
+ init_cjs_shim();
19594
19714
  exports = module2.exports = require_debug4();
19595
19715
  exports.log = log;
19596
19716
  exports.formatArgs = formatArgs;
@@ -19679,6 +19799,7 @@ var require_browser4 = __commonJS({
19679
19799
  // ../../node_modules/send/node_modules/debug/src/node.js
19680
19800
  var require_node4 = __commonJS({
19681
19801
  "../../node_modules/send/node_modules/debug/src/node.js"(exports, module2) {
19802
+ init_cjs_shim();
19682
19803
  var tty = __require("tty");
19683
19804
  var util = __require("util");
19684
19805
  exports = module2.exports = require_debug4();
@@ -19803,6 +19924,7 @@ var require_node4 = __commonJS({
19803
19924
  // ../../node_modules/send/node_modules/debug/src/index.js
19804
19925
  var require_src5 = __commonJS({
19805
19926
  "../../node_modules/send/node_modules/debug/src/index.js"(exports, module2) {
19927
+ init_cjs_shim();
19806
19928
  if (typeof process !== "undefined" && process.type === "renderer") {
19807
19929
  module2.exports = require_browser4();
19808
19930
  } else {
@@ -19815,6 +19937,7 @@ var require_src5 = __commonJS({
19815
19937
  var require_etag = __commonJS({
19816
19938
  "../../node_modules/etag/index.js"(exports, module2) {
19817
19939
  "use strict";
19940
+ init_cjs_shim();
19818
19941
  module2.exports = etag;
19819
19942
  var crypto = __require("crypto");
19820
19943
  var Stats = __require("fs").Stats;
@@ -19857,6 +19980,7 @@ var require_etag = __commonJS({
19857
19980
  var require_fresh = __commonJS({
19858
19981
  "../../node_modules/fresh/index.js"(exports, module2) {
19859
19982
  "use strict";
19983
+ init_cjs_shim();
19860
19984
  var CACHE_CONTROL_NO_CACHE_REGEXP = /(?:^|,)\s*?no-cache\s*?(?:,|$)/;
19861
19985
  module2.exports = fresh;
19862
19986
  function fresh(reqHeaders, resHeaders) {
@@ -19936,7 +20060,8 @@ var require_types = __commonJS({
19936
20060
  // ../../node_modules/mime/mime.js
19937
20061
  var require_mime = __commonJS({
19938
20062
  "../../node_modules/mime/mime.js"(exports, module2) {
19939
- var path2 = __require("path");
20063
+ init_cjs_shim();
20064
+ var path3 = __require("path");
19940
20065
  var fs = __require("fs");
19941
20066
  function Mime() {
19942
20067
  this.types = /* @__PURE__ */ Object.create(null);
@@ -19966,8 +20091,8 @@ var require_mime = __commonJS({
19966
20091
  this.define(map);
19967
20092
  this._loading = null;
19968
20093
  };
19969
- Mime.prototype.lookup = function(path3, fallback) {
19970
- var ext = path3.replace(/^.*[\.\/\\]/, "").toLowerCase();
20094
+ Mime.prototype.lookup = function(path4, fallback) {
20095
+ var ext = path4.replace(/^.*[\.\/\\]/, "").toLowerCase();
19971
20096
  return this.types[ext] || fallback || this.default_type;
19972
20097
  };
19973
20098
  Mime.prototype.extension = function(mimeType) {
@@ -19990,6 +20115,7 @@ var require_mime = __commonJS({
19990
20115
  // ../../node_modules/send/node_modules/ms/index.js
19991
20116
  var require_ms5 = __commonJS({
19992
20117
  "../../node_modules/send/node_modules/ms/index.js"(exports, module2) {
20118
+ init_cjs_shim();
19993
20119
  var s = 1e3;
19994
20120
  var m = s * 60;
19995
20121
  var h = m * 60;
@@ -20107,6 +20233,7 @@ var require_ms5 = __commonJS({
20107
20233
  var require_range_parser = __commonJS({
20108
20234
  "../../node_modules/range-parser/index.js"(exports, module2) {
20109
20235
  "use strict";
20236
+ init_cjs_shim();
20110
20237
  module2.exports = rangeParser;
20111
20238
  function rangeParser(size, str, options) {
20112
20239
  if (typeof str !== "string") {
@@ -20188,6 +20315,7 @@ var require_range_parser = __commonJS({
20188
20315
  var require_send = __commonJS({
20189
20316
  "../../node_modules/send/index.js"(exports, module2) {
20190
20317
  "use strict";
20318
+ init_cjs_shim();
20191
20319
  var createError = require_http_errors();
20192
20320
  var debug = require_src5()("send");
20193
20321
  var deprecate = require_depd()("send");
@@ -20201,28 +20329,28 @@ var require_send = __commonJS({
20201
20329
  var ms = require_ms5();
20202
20330
  var onFinished = require_on_finished();
20203
20331
  var parseRange = require_range_parser();
20204
- var path2 = __require("path");
20332
+ var path3 = __require("path");
20205
20333
  var statuses = require_statuses();
20206
20334
  var Stream = __require("stream");
20207
20335
  var util = __require("util");
20208
- var extname = path2.extname;
20209
- var join = path2.join;
20210
- var normalize = path2.normalize;
20211
- var resolve2 = path2.resolve;
20212
- var sep = path2.sep;
20336
+ var extname = path3.extname;
20337
+ var join = path3.join;
20338
+ var normalize = path3.normalize;
20339
+ var resolve2 = path3.resolve;
20340
+ var sep = path3.sep;
20213
20341
  var BYTES_RANGE_REGEXP = /^ *bytes=/;
20214
20342
  var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
20215
20343
  var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
20216
20344
  module2.exports = send;
20217
20345
  module2.exports.mime = mime;
20218
- function send(req, path3, options) {
20219
- return new SendStream(req, path3, options);
20346
+ function send(req, path4, options) {
20347
+ return new SendStream(req, path4, options);
20220
20348
  }
20221
- function SendStream(req, path3, options) {
20349
+ function SendStream(req, path4, options) {
20222
20350
  Stream.call(this);
20223
20351
  var opts = options || {};
20224
20352
  this.options = opts;
20225
- this.path = path3;
20353
+ this.path = path4;
20226
20354
  this.req = req;
20227
20355
  this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
20228
20356
  this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
@@ -20268,8 +20396,8 @@ var require_send = __commonJS({
20268
20396
  this._index = index2;
20269
20397
  return this;
20270
20398
  }, "send.index: pass index as option");
20271
- SendStream.prototype.root = function root(path3) {
20272
- this._root = resolve2(String(path3));
20399
+ SendStream.prototype.root = function root(path4) {
20400
+ this._root = resolve2(String(path4));
20273
20401
  debug("root %s", this._root);
20274
20402
  return this;
20275
20403
  };
@@ -20382,10 +20510,10 @@ var require_send = __commonJS({
20382
20510
  var lastModified = this.res.getHeader("Last-Modified");
20383
20511
  return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
20384
20512
  };
20385
- SendStream.prototype.redirect = function redirect(path3) {
20513
+ SendStream.prototype.redirect = function redirect(path4) {
20386
20514
  var res = this.res;
20387
20515
  if (hasListeners(this, "directory")) {
20388
- this.emit("directory", res, path3);
20516
+ this.emit("directory", res, path4);
20389
20517
  return;
20390
20518
  }
20391
20519
  if (this.hasTrailingSlash()) {
@@ -20405,42 +20533,42 @@ var require_send = __commonJS({
20405
20533
  SendStream.prototype.pipe = function pipe(res) {
20406
20534
  var root = this._root;
20407
20535
  this.res = res;
20408
- var path3 = decode(this.path);
20409
- if (path3 === -1) {
20536
+ var path4 = decode(this.path);
20537
+ if (path4 === -1) {
20410
20538
  this.error(400);
20411
20539
  return res;
20412
20540
  }
20413
- if (~path3.indexOf("\0")) {
20541
+ if (~path4.indexOf("\0")) {
20414
20542
  this.error(400);
20415
20543
  return res;
20416
20544
  }
20417
20545
  var parts;
20418
20546
  if (root !== null) {
20419
- if (path3) {
20420
- path3 = normalize("." + sep + path3);
20547
+ if (path4) {
20548
+ path4 = normalize("." + sep + path4);
20421
20549
  }
20422
- if (UP_PATH_REGEXP.test(path3)) {
20423
- debug('malicious path "%s"', path3);
20550
+ if (UP_PATH_REGEXP.test(path4)) {
20551
+ debug('malicious path "%s"', path4);
20424
20552
  this.error(403);
20425
20553
  return res;
20426
20554
  }
20427
- parts = path3.split(sep);
20428
- path3 = normalize(join(root, path3));
20555
+ parts = path4.split(sep);
20556
+ path4 = normalize(join(root, path4));
20429
20557
  } else {
20430
- if (UP_PATH_REGEXP.test(path3)) {
20431
- debug('malicious path "%s"', path3);
20558
+ if (UP_PATH_REGEXP.test(path4)) {
20559
+ debug('malicious path "%s"', path4);
20432
20560
  this.error(403);
20433
20561
  return res;
20434
20562
  }
20435
- parts = normalize(path3).split(sep);
20436
- path3 = resolve2(path3);
20563
+ parts = normalize(path4).split(sep);
20564
+ path4 = resolve2(path4);
20437
20565
  }
20438
20566
  if (containsDotFile(parts)) {
20439
20567
  var access = this._dotfiles;
20440
20568
  if (access === void 0) {
20441
20569
  access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
20442
20570
  }
20443
- debug('%s dotfile "%s"', access, path3);
20571
+ debug('%s dotfile "%s"', access, path4);
20444
20572
  switch (access) {
20445
20573
  case "allow":
20446
20574
  break;
@@ -20454,13 +20582,13 @@ var require_send = __commonJS({
20454
20582
  }
20455
20583
  }
20456
20584
  if (this._index.length && this.hasTrailingSlash()) {
20457
- this.sendIndex(path3);
20585
+ this.sendIndex(path4);
20458
20586
  return res;
20459
20587
  }
20460
- this.sendFile(path3);
20588
+ this.sendFile(path4);
20461
20589
  return res;
20462
20590
  };
20463
- SendStream.prototype.send = function send2(path3, stat) {
20591
+ SendStream.prototype.send = function send2(path4, stat) {
20464
20592
  var len = stat.size;
20465
20593
  var options = this.options;
20466
20594
  var opts = {};
@@ -20472,9 +20600,9 @@ var require_send = __commonJS({
20472
20600
  this.headersAlreadySent();
20473
20601
  return;
20474
20602
  }
20475
- debug('pipe "%s"', path3);
20476
- this.setHeader(path3, stat);
20477
- this.type(path3);
20603
+ debug('pipe "%s"', path4);
20604
+ this.setHeader(path4, stat);
20605
+ this.type(path4);
20478
20606
  if (this.isConditionalGET()) {
20479
20607
  if (this.isPreconditionFailure()) {
20480
20608
  this.error(412);
@@ -20524,28 +20652,28 @@ var require_send = __commonJS({
20524
20652
  res.end();
20525
20653
  return;
20526
20654
  }
20527
- this.stream(path3, opts);
20655
+ this.stream(path4, opts);
20528
20656
  };
20529
- SendStream.prototype.sendFile = function sendFile(path3) {
20657
+ SendStream.prototype.sendFile = function sendFile(path4) {
20530
20658
  var i = 0;
20531
20659
  var self2 = this;
20532
- debug('stat "%s"', path3);
20533
- fs.stat(path3, function onstat(err, stat) {
20534
- if (err && err.code === "ENOENT" && !extname(path3) && path3[path3.length - 1] !== sep) {
20660
+ debug('stat "%s"', path4);
20661
+ fs.stat(path4, function onstat(err, stat) {
20662
+ if (err && err.code === "ENOENT" && !extname(path4) && path4[path4.length - 1] !== sep) {
20535
20663
  return next(err);
20536
20664
  }
20537
20665
  if (err)
20538
20666
  return self2.onStatError(err);
20539
20667
  if (stat.isDirectory())
20540
- return self2.redirect(path3);
20541
- self2.emit("file", path3, stat);
20542
- self2.send(path3, stat);
20668
+ return self2.redirect(path4);
20669
+ self2.emit("file", path4, stat);
20670
+ self2.send(path4, stat);
20543
20671
  });
20544
20672
  function next(err) {
20545
20673
  if (self2._extensions.length <= i) {
20546
20674
  return err ? self2.onStatError(err) : self2.error(404);
20547
20675
  }
20548
- var p = path3 + "." + self2._extensions[i++];
20676
+ var p = path4 + "." + self2._extensions[i++];
20549
20677
  debug('stat "%s"', p);
20550
20678
  fs.stat(p, function(err2, stat) {
20551
20679
  if (err2)
@@ -20557,7 +20685,7 @@ var require_send = __commonJS({
20557
20685
  });
20558
20686
  }
20559
20687
  };
20560
- SendStream.prototype.sendIndex = function sendIndex(path3) {
20688
+ SendStream.prototype.sendIndex = function sendIndex(path4) {
20561
20689
  var i = -1;
20562
20690
  var self2 = this;
20563
20691
  function next(err) {
@@ -20566,7 +20694,7 @@ var require_send = __commonJS({
20566
20694
  return self2.onStatError(err);
20567
20695
  return self2.error(404);
20568
20696
  }
20569
- var p = join(path3, self2._index[i]);
20697
+ var p = join(path4, self2._index[i]);
20570
20698
  debug('stat "%s"', p);
20571
20699
  fs.stat(p, function(err2, stat) {
20572
20700
  if (err2)
@@ -20579,10 +20707,10 @@ var require_send = __commonJS({
20579
20707
  }
20580
20708
  next();
20581
20709
  };
20582
- SendStream.prototype.stream = function stream(path3, options) {
20710
+ SendStream.prototype.stream = function stream(path4, options) {
20583
20711
  var self2 = this;
20584
20712
  var res = this.res;
20585
- var stream2 = fs.createReadStream(path3, options);
20713
+ var stream2 = fs.createReadStream(path4, options);
20586
20714
  this.emit("stream", stream2);
20587
20715
  stream2.pipe(res);
20588
20716
  function cleanup() {
@@ -20597,11 +20725,11 @@ var require_send = __commonJS({
20597
20725
  self2.emit("end");
20598
20726
  });
20599
20727
  };
20600
- SendStream.prototype.type = function type(path3) {
20728
+ SendStream.prototype.type = function type(path4) {
20601
20729
  var res = this.res;
20602
20730
  if (res.getHeader("Content-Type"))
20603
20731
  return;
20604
- var type2 = mime.lookup(path3);
20732
+ var type2 = mime.lookup(path4);
20605
20733
  if (!type2) {
20606
20734
  debug("no content-type");
20607
20735
  return;
@@ -20610,9 +20738,9 @@ var require_send = __commonJS({
20610
20738
  debug("content-type %s", type2);
20611
20739
  res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
20612
20740
  };
20613
- SendStream.prototype.setHeader = function setHeader(path3, stat) {
20741
+ SendStream.prototype.setHeader = function setHeader(path4, stat) {
20614
20742
  var res = this.res;
20615
- this.emit("headers", res, path3, stat);
20743
+ this.emit("headers", res, path4, stat);
20616
20744
  if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
20617
20745
  debug("accept ranges");
20618
20746
  res.setHeader("Accept-Ranges", "bytes");
@@ -20671,9 +20799,9 @@ var require_send = __commonJS({
20671
20799
  }
20672
20800
  return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
20673
20801
  }
20674
- function decode(path3) {
20802
+ function decode(path4) {
20675
20803
  try {
20676
- return decodeURIComponent(path3);
20804
+ return decodeURIComponent(path4);
20677
20805
  } catch (err) {
20678
20806
  return -1;
20679
20807
  }
@@ -20742,6 +20870,7 @@ var require_send = __commonJS({
20742
20870
  var require_forwarded = __commonJS({
20743
20871
  "../../node_modules/forwarded/index.js"(exports, module2) {
20744
20872
  "use strict";
20873
+ init_cjs_shim();
20745
20874
  module2.exports = forwarded;
20746
20875
  function forwarded(req) {
20747
20876
  if (!req) {
@@ -20788,6 +20917,7 @@ var require_forwarded = __commonJS({
20788
20917
  // ../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js
20789
20918
  var require_ipaddr = __commonJS({
20790
20919
  "../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js"(exports, module2) {
20920
+ init_cjs_shim();
20791
20921
  (function() {
20792
20922
  var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
20793
20923
  ipaddr = {};
@@ -21411,6 +21541,7 @@ var require_ipaddr = __commonJS({
21411
21541
  var require_proxy_addr = __commonJS({
21412
21542
  "../../node_modules/proxy-addr/index.js"(exports, module2) {
21413
21543
  "use strict";
21544
+ init_cjs_shim();
21414
21545
  module2.exports = proxyaddr;
21415
21546
  module2.exports.all = alladdrs;
21416
21547
  module2.exports.compile = compile;
@@ -21573,6 +21704,7 @@ var require_proxy_addr = __commonJS({
21573
21704
  var require_utils2 = __commonJS({
21574
21705
  "../../node_modules/express/lib/utils.js"(exports) {
21575
21706
  "use strict";
21707
+ init_cjs_shim();
21576
21708
  var Buffer2 = require_safe_buffer().Buffer;
21577
21709
  var contentDisposition = require_content_disposition();
21578
21710
  var contentType = require_content_type();
@@ -21585,12 +21717,12 @@ var require_utils2 = __commonJS({
21585
21717
  var querystring = __require("querystring");
21586
21718
  exports.etag = createETagGenerator({ weak: false });
21587
21719
  exports.wetag = createETagGenerator({ weak: true });
21588
- exports.isAbsolute = function(path2) {
21589
- if ("/" === path2[0])
21720
+ exports.isAbsolute = function(path3) {
21721
+ if ("/" === path3[0])
21590
21722
  return true;
21591
- if (":" === path2[1] && ("\\" === path2[2] || "/" === path2[2]))
21723
+ if (":" === path3[1] && ("\\" === path3[2] || "/" === path3[2]))
21592
21724
  return true;
21593
- if ("\\\\" === path2.substring(0, 2))
21725
+ if ("\\\\" === path3.substring(0, 2))
21594
21726
  return true;
21595
21727
  };
21596
21728
  exports.flatten = deprecate.function(
@@ -21714,6 +21846,7 @@ var require_utils2 = __commonJS({
21714
21846
  var require_application = __commonJS({
21715
21847
  "../../node_modules/express/lib/application.js"(exports, module2) {
21716
21848
  "use strict";
21849
+ init_cjs_shim();
21717
21850
  var finalhandler = require_finalhandler();
21718
21851
  var Router = require_router();
21719
21852
  var methods = require_methods();
@@ -21803,7 +21936,7 @@ var require_application = __commonJS({
21803
21936
  };
21804
21937
  app.use = function use(fn) {
21805
21938
  var offset = 0;
21806
- var path2 = "/";
21939
+ var path3 = "/";
21807
21940
  if (typeof fn !== "function") {
21808
21941
  var arg = fn;
21809
21942
  while (Array.isArray(arg) && arg.length !== 0) {
@@ -21811,7 +21944,7 @@ var require_application = __commonJS({
21811
21944
  }
21812
21945
  if (typeof arg !== "function") {
21813
21946
  offset = 1;
21814
- path2 = fn;
21947
+ path3 = fn;
21815
21948
  }
21816
21949
  }
21817
21950
  var fns = flatten(slice.call(arguments, offset));
@@ -21822,12 +21955,12 @@ var require_application = __commonJS({
21822
21955
  var router = this._router;
21823
21956
  fns.forEach(function(fn2) {
21824
21957
  if (!fn2 || !fn2.handle || !fn2.set) {
21825
- return router.use(path2, fn2);
21958
+ return router.use(path3, fn2);
21826
21959
  }
21827
- debug(".use app under %s", path2);
21828
- fn2.mountpath = path2;
21960
+ debug(".use app under %s", path3);
21961
+ fn2.mountpath = path3;
21829
21962
  fn2.parent = this;
21830
- router.use(path2, function mounted_app(req, res, next) {
21963
+ router.use(path3, function mounted_app(req, res, next) {
21831
21964
  var orig = req.app;
21832
21965
  fn2.handle(req, res, function(err) {
21833
21966
  setPrototypeOf(req, orig.request);
@@ -21839,9 +21972,9 @@ var require_application = __commonJS({
21839
21972
  }, this);
21840
21973
  return this;
21841
21974
  };
21842
- app.route = function route(path2) {
21975
+ app.route = function route(path3) {
21843
21976
  this.lazyrouter();
21844
- return this._router.route(path2);
21977
+ return this._router.route(path3);
21845
21978
  };
21846
21979
  app.engine = function engine(ext, fn) {
21847
21980
  if (typeof fn !== "function") {
@@ -21892,7 +22025,7 @@ var require_application = __commonJS({
21892
22025
  }
21893
22026
  return this;
21894
22027
  };
21895
- app.path = function path2() {
22028
+ app.path = function path3() {
21896
22029
  return this.parent ? this.parent.path() + this.mountpath : "";
21897
22030
  };
21898
22031
  app.enabled = function enabled(setting) {
@@ -21908,19 +22041,19 @@ var require_application = __commonJS({
21908
22041
  return this.set(setting, false);
21909
22042
  };
21910
22043
  methods.forEach(function(method) {
21911
- app[method] = function(path2) {
22044
+ app[method] = function(path3) {
21912
22045
  if (method === "get" && arguments.length === 1) {
21913
- return this.set(path2);
22046
+ return this.set(path3);
21914
22047
  }
21915
22048
  this.lazyrouter();
21916
- var route = this._router.route(path2);
22049
+ var route = this._router.route(path3);
21917
22050
  route[method].apply(route, slice.call(arguments, 1));
21918
22051
  return this;
21919
22052
  };
21920
22053
  });
21921
- app.all = function all(path2) {
22054
+ app.all = function all(path3) {
21922
22055
  this.lazyrouter();
21923
- var route = this._router.route(path2);
22056
+ var route = this._router.route(path3);
21924
22057
  var args = slice.call(arguments, 1);
21925
22058
  for (var i = 0; i < methods.length; i++) {
21926
22059
  route[methods[i]].apply(route, args);
@@ -21991,6 +22124,7 @@ var require_application = __commonJS({
21991
22124
  var require_charset = __commonJS({
21992
22125
  "../../node_modules/negotiator/lib/charset.js"(exports, module2) {
21993
22126
  "use strict";
22127
+ init_cjs_shim();
21994
22128
  module2.exports = preferredCharsets;
21995
22129
  module2.exports.preferredCharsets = preferredCharsets;
21996
22130
  var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
@@ -22079,6 +22213,7 @@ var require_charset = __commonJS({
22079
22213
  var require_encoding = __commonJS({
22080
22214
  "../../node_modules/negotiator/lib/encoding.js"(exports, module2) {
22081
22215
  "use strict";
22216
+ init_cjs_shim();
22082
22217
  module2.exports = preferredEncodings;
22083
22218
  module2.exports.preferredEncodings = preferredEncodings;
22084
22219
  var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
@@ -22178,6 +22313,7 @@ var require_encoding = __commonJS({
22178
22313
  var require_language = __commonJS({
22179
22314
  "../../node_modules/negotiator/lib/language.js"(exports, module2) {
22180
22315
  "use strict";
22316
+ init_cjs_shim();
22181
22317
  module2.exports = preferredLanguages;
22182
22318
  module2.exports.preferredLanguages = preferredLanguages;
22183
22319
  var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;
@@ -22277,6 +22413,7 @@ var require_language = __commonJS({
22277
22413
  var require_mediaType = __commonJS({
22278
22414
  "../../node_modules/negotiator/lib/mediaType.js"(exports, module2) {
22279
22415
  "use strict";
22416
+ init_cjs_shim();
22280
22417
  module2.exports = preferredMediaTypes;
22281
22418
  module2.exports.preferredMediaTypes = preferredMediaTypes;
22282
22419
  var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
@@ -22440,6 +22577,7 @@ var require_mediaType = __commonJS({
22440
22577
  var require_negotiator = __commonJS({
22441
22578
  "../../node_modules/negotiator/index.js"(exports, module2) {
22442
22579
  "use strict";
22580
+ init_cjs_shim();
22443
22581
  var preferredCharsets = require_charset();
22444
22582
  var preferredEncodings = require_encoding();
22445
22583
  var preferredLanguages = require_language();
@@ -31019,6 +31157,7 @@ var require_db2 = __commonJS({
31019
31157
  // ../../node_modules/express/node_modules/mime-db/index.js
31020
31158
  var require_mime_db2 = __commonJS({
31021
31159
  "../../node_modules/express/node_modules/mime-db/index.js"(exports, module2) {
31160
+ init_cjs_shim();
31022
31161
  module2.exports = require_db2();
31023
31162
  }
31024
31163
  });
@@ -31027,6 +31166,7 @@ var require_mime_db2 = __commonJS({
31027
31166
  var require_mime_types2 = __commonJS({
31028
31167
  "../../node_modules/express/node_modules/mime-types/index.js"(exports) {
31029
31168
  "use strict";
31169
+ init_cjs_shim();
31030
31170
  var db = require_mime_db2();
31031
31171
  var extname = __require("path").extname;
31032
31172
  var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
@@ -31079,11 +31219,11 @@ var require_mime_types2 = __commonJS({
31079
31219
  }
31080
31220
  return exts[0];
31081
31221
  }
31082
- function lookup(path2) {
31083
- if (!path2 || typeof path2 !== "string") {
31222
+ function lookup(path3) {
31223
+ if (!path3 || typeof path3 !== "string") {
31084
31224
  return false;
31085
31225
  }
31086
- var extension2 = extname("x." + path2).toLowerCase().substr(1);
31226
+ var extension2 = extname("x." + path3).toLowerCase().substr(1);
31087
31227
  if (!extension2) {
31088
31228
  return false;
31089
31229
  }
@@ -31118,6 +31258,7 @@ var require_mime_types2 = __commonJS({
31118
31258
  var require_accepts = __commonJS({
31119
31259
  "../../node_modules/express/node_modules/accepts/index.js"(exports, module2) {
31120
31260
  "use strict";
31261
+ init_cjs_shim();
31121
31262
  var Negotiator = require_negotiator();
31122
31263
  var mime = require_mime_types2();
31123
31264
  module2.exports = Accepts;
@@ -31199,6 +31340,7 @@ var require_accepts = __commonJS({
31199
31340
  var require_request = __commonJS({
31200
31341
  "../../node_modules/express/lib/request.js"(exports, module2) {
31201
31342
  "use strict";
31343
+ init_cjs_shim();
31202
31344
  var accepts = require_accepts();
31203
31345
  var deprecate = require_depd()("express");
31204
31346
  var isIP = __require("net").isIP;
@@ -31315,7 +31457,7 @@ var require_request = __commonJS({
31315
31457
  var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
31316
31458
  return subdomains2.slice(offset);
31317
31459
  });
31318
- defineGetter(req, "path", function path2() {
31460
+ defineGetter(req, "path", function path3() {
31319
31461
  return parse(this).pathname;
31320
31462
  });
31321
31463
  defineGetter(req, "hostname", function hostname() {
@@ -31369,6 +31511,7 @@ var require_request = __commonJS({
31369
31511
  // ../../node_modules/cookie-signature/index.js
31370
31512
  var require_cookie_signature = __commonJS({
31371
31513
  "../../node_modules/cookie-signature/index.js"(exports) {
31514
+ init_cjs_shim();
31372
31515
  var crypto = __require("crypto");
31373
31516
  exports.sign = function(val, secret) {
31374
31517
  if ("string" != typeof val)
@@ -31395,6 +31538,7 @@ var require_cookie_signature = __commonJS({
31395
31538
  var require_cookie = __commonJS({
31396
31539
  "../../node_modules/express/node_modules/cookie/index.js"(exports) {
31397
31540
  "use strict";
31541
+ init_cjs_shim();
31398
31542
  exports.parse = parse;
31399
31543
  exports.serialize = serialize;
31400
31544
  var __toString = Object.prototype.toString;
@@ -31537,6 +31681,7 @@ var require_cookie = __commonJS({
31537
31681
  var require_vary = __commonJS({
31538
31682
  "../../node_modules/vary/index.js"(exports, module2) {
31539
31683
  "use strict";
31684
+ init_cjs_shim();
31540
31685
  module2.exports = vary;
31541
31686
  module2.exports.append = append;
31542
31687
  var FIELD_NAME_REGEXP = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
@@ -31610,6 +31755,7 @@ var require_vary = __commonJS({
31610
31755
  var require_response = __commonJS({
31611
31756
  "../../node_modules/express/lib/response.js"(exports, module2) {
31612
31757
  "use strict";
31758
+ init_cjs_shim();
31613
31759
  var Buffer2 = require_safe_buffer().Buffer;
31614
31760
  var contentDisposition = require_content_disposition();
31615
31761
  var createError = require_http_errors();
@@ -31619,7 +31765,7 @@ var require_response = __commonJS({
31619
31765
  var http = __require("http");
31620
31766
  var isAbsolute = require_utils2().isAbsolute;
31621
31767
  var onFinished = require_on_finished();
31622
- var path2 = __require("path");
31768
+ var path3 = __require("path");
31623
31769
  var statuses = require_statuses();
31624
31770
  var merge2 = require_utils_merge();
31625
31771
  var sign = require_cookie_signature().sign;
@@ -31628,9 +31774,9 @@ var require_response = __commonJS({
31628
31774
  var setCharset = require_utils2().setCharset;
31629
31775
  var cookie = require_cookie();
31630
31776
  var send = require_send();
31631
- var extname = path2.extname;
31777
+ var extname = path3.extname;
31632
31778
  var mime = send.mime;
31633
- var resolve2 = path2.resolve;
31779
+ var resolve2 = path3.resolve;
31634
31780
  var vary = require_vary();
31635
31781
  var res = Object.create(http.ServerResponse.prototype);
31636
31782
  module2.exports = res;
@@ -31808,26 +31954,26 @@ var require_response = __commonJS({
31808
31954
  this.type("txt");
31809
31955
  return this.send(body);
31810
31956
  };
31811
- res.sendFile = function sendFile(path3, options, callback) {
31957
+ res.sendFile = function sendFile(path4, options, callback) {
31812
31958
  var done = callback;
31813
31959
  var req = this.req;
31814
31960
  var res2 = this;
31815
31961
  var next = req.next;
31816
31962
  var opts = options || {};
31817
- if (!path3) {
31963
+ if (!path4) {
31818
31964
  throw new TypeError("path argument is required to res.sendFile");
31819
31965
  }
31820
- if (typeof path3 !== "string") {
31966
+ if (typeof path4 !== "string") {
31821
31967
  throw new TypeError("path must be a string to res.sendFile");
31822
31968
  }
31823
31969
  if (typeof options === "function") {
31824
31970
  done = options;
31825
31971
  opts = {};
31826
31972
  }
31827
- if (!opts.root && !isAbsolute(path3)) {
31973
+ if (!opts.root && !isAbsolute(path4)) {
31828
31974
  throw new TypeError("path must be absolute or specify root to res.sendFile");
31829
31975
  }
31830
- var pathname = encodeURI(path3);
31976
+ var pathname = encodeURI(path4);
31831
31977
  var file = send(req, pathname, opts);
31832
31978
  sendfile(res2, file, opts, function(err) {
31833
31979
  if (done)
@@ -31839,7 +31985,7 @@ var require_response = __commonJS({
31839
31985
  }
31840
31986
  });
31841
31987
  };
31842
- res.sendfile = function(path3, options, callback) {
31988
+ res.sendfile = function(path4, options, callback) {
31843
31989
  var done = callback;
31844
31990
  var req = this.req;
31845
31991
  var res2 = this;
@@ -31849,7 +31995,7 @@ var require_response = __commonJS({
31849
31995
  done = options;
31850
31996
  opts = {};
31851
31997
  }
31852
- var file = send(req, path3, opts);
31998
+ var file = send(req, path4, opts);
31853
31999
  sendfile(res2, file, opts, function(err) {
31854
32000
  if (done)
31855
32001
  return done(err);
@@ -31864,7 +32010,7 @@ var require_response = __commonJS({
31864
32010
  res.sendfile,
31865
32011
  "res.sendfile: Use res.sendFile instead"
31866
32012
  );
31867
- res.download = function download(path3, filename, options, callback) {
32013
+ res.download = function download(path4, filename, options, callback) {
31868
32014
  var done = callback;
31869
32015
  var name = filename;
31870
32016
  var opts = options || null;
@@ -31881,7 +32027,7 @@ var require_response = __commonJS({
31881
32027
  opts = filename;
31882
32028
  }
31883
32029
  var headers = {
31884
- "Content-Disposition": contentDisposition(name || path3)
32030
+ "Content-Disposition": contentDisposition(name || path4)
31885
32031
  };
31886
32032
  if (opts && opts.headers) {
31887
32033
  var keys = Object.keys(opts.headers);
@@ -31894,7 +32040,7 @@ var require_response = __commonJS({
31894
32040
  }
31895
32041
  opts = Object.create(opts);
31896
32042
  opts.headers = headers;
31897
- var fullPath = !opts.root ? resolve2(path3) : path3;
32043
+ var fullPath = !opts.root ? resolve2(path4) : path4;
31898
32044
  return this.sendFile(fullPath, opts, done);
31899
32045
  };
31900
32046
  res.contentType = res.type = function contentType(type) {
@@ -31990,15 +32136,15 @@ var require_response = __commonJS({
31990
32136
  this.append("Set-Cookie", cookie.serialize(name, String(val), opts));
31991
32137
  return this;
31992
32138
  };
31993
- res.location = function location(url) {
31994
- var loc = url;
31995
- if (url === "back") {
32139
+ res.location = function location(url2) {
32140
+ var loc = url2;
32141
+ if (url2 === "back") {
31996
32142
  loc = this.req.get("Referrer") || "/";
31997
32143
  }
31998
32144
  return this.set("Location", encodeUrl(loc));
31999
32145
  };
32000
- res.redirect = function redirect(url) {
32001
- var address = url;
32146
+ res.redirect = function redirect(url2) {
32147
+ var address = url2;
32002
32148
  var body;
32003
32149
  var status = 302;
32004
32150
  if (arguments.length === 2) {
@@ -32155,12 +32301,13 @@ var require_response = __commonJS({
32155
32301
  var require_serve_static = __commonJS({
32156
32302
  "../../node_modules/serve-static/index.js"(exports, module2) {
32157
32303
  "use strict";
32304
+ init_cjs_shim();
32158
32305
  var encodeUrl = require_encodeurl();
32159
32306
  var escapeHtml = require_escape_html();
32160
32307
  var parseUrl = require_parseurl();
32161
32308
  var resolve2 = __require("path").resolve;
32162
32309
  var send = require_send();
32163
- var url = __require("url");
32310
+ var url2 = __require("url");
32164
32311
  module2.exports = serveStatic;
32165
32312
  module2.exports.mime = send.mime;
32166
32313
  function serveStatic(root, options) {
@@ -32193,11 +32340,11 @@ var require_serve_static = __commonJS({
32193
32340
  }
32194
32341
  var forwardError = !fallthrough;
32195
32342
  var originalUrl = parseUrl.original(req);
32196
- var path2 = parseUrl(req).pathname;
32197
- if (path2 === "/" && originalUrl.pathname.substr(-1) !== "/") {
32198
- path2 = "";
32343
+ var path3 = parseUrl(req).pathname;
32344
+ if (path3 === "/" && originalUrl.pathname.substr(-1) !== "/") {
32345
+ path3 = "";
32199
32346
  }
32200
- var stream = send(req, path2, opts);
32347
+ var stream = send(req, path3, opts);
32201
32348
  stream.on("directory", onDirectory);
32202
32349
  if (setHeaders) {
32203
32350
  stream.on("headers", setHeaders);
@@ -32242,7 +32389,7 @@ var require_serve_static = __commonJS({
32242
32389
  var originalUrl = parseUrl.original(this.req);
32243
32390
  originalUrl.path = null;
32244
32391
  originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + "/");
32245
- var loc = encodeUrl(url.format(originalUrl));
32392
+ var loc = encodeUrl(url2.format(originalUrl));
32246
32393
  var doc = createHtmlDocument("Redirecting", 'Redirecting to <a href="' + escapeHtml(loc) + '">' + escapeHtml(loc) + "</a>");
32247
32394
  res.statusCode = 301;
32248
32395
  res.setHeader("Content-Type", "text/html; charset=UTF-8");
@@ -32260,6 +32407,7 @@ var require_serve_static = __commonJS({
32260
32407
  var require_express = __commonJS({
32261
32408
  "../../node_modules/express/lib/express.js"(exports, module2) {
32262
32409
  "use strict";
32410
+ init_cjs_shim();
32263
32411
  var bodyParser = require_body_parser();
32264
32412
  var EventEmitter = __require("events").EventEmitter;
32265
32413
  var mixin = require_merge_descriptors();
@@ -32329,6 +32477,7 @@ var require_express = __commonJS({
32329
32477
  var require_express2 = __commonJS({
32330
32478
  "../../node_modules/express/index.js"(exports, module2) {
32331
32479
  "use strict";
32480
+ init_cjs_shim();
32332
32481
  module2.exports = require_express();
32333
32482
  }
32334
32483
  });
@@ -32336,6 +32485,7 @@ var require_express2 = __commonJS({
32336
32485
  // ../../node_modules/lodash/lodash.js
32337
32486
  var require_lodash = __commonJS({
32338
32487
  "../../node_modules/lodash/lodash.js"(exports, module2) {
32488
+ init_cjs_shim();
32339
32489
  (function() {
32340
32490
  var undefined2;
32341
32491
  var VERSION = "4.17.21";
@@ -33663,11 +33813,11 @@ var require_lodash = __commonJS({
33663
33813
  return isFunction(object[key]);
33664
33814
  });
33665
33815
  }
33666
- function baseGet(object, path2) {
33667
- path2 = castPath(path2, object);
33668
- var index = 0, length = path2.length;
33816
+ function baseGet(object, path3) {
33817
+ path3 = castPath(path3, object);
33818
+ var index = 0, length = path3.length;
33669
33819
  while (object != null && index < length) {
33670
- object = object[toKey(path2[index++])];
33820
+ object = object[toKey(path3[index++])];
33671
33821
  }
33672
33822
  return index && index == length ? object : undefined2;
33673
33823
  }
@@ -33731,10 +33881,10 @@ var require_lodash = __commonJS({
33731
33881
  });
33732
33882
  return accumulator;
33733
33883
  }
33734
- function baseInvoke(object, path2, args) {
33735
- path2 = castPath(path2, object);
33736
- object = parent(object, path2);
33737
- var func = object == null ? object : object[toKey(last(path2))];
33884
+ function baseInvoke(object, path3, args) {
33885
+ path3 = castPath(path3, object);
33886
+ object = parent(object, path3);
33887
+ var func = object == null ? object : object[toKey(last(path3))];
33738
33888
  return func == null ? undefined2 : apply(func, object, args);
33739
33889
  }
33740
33890
  function baseIsArguments(value) {
@@ -33890,13 +34040,13 @@ var require_lodash = __commonJS({
33890
34040
  return object === source || baseIsMatch(object, source, matchData);
33891
34041
  };
33892
34042
  }
33893
- function baseMatchesProperty(path2, srcValue) {
33894
- if (isKey(path2) && isStrictComparable(srcValue)) {
33895
- return matchesStrictComparable(toKey(path2), srcValue);
34043
+ function baseMatchesProperty(path3, srcValue) {
34044
+ if (isKey(path3) && isStrictComparable(srcValue)) {
34045
+ return matchesStrictComparable(toKey(path3), srcValue);
33896
34046
  }
33897
34047
  return function(object) {
33898
- var objValue = get(object, path2);
33899
- return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
34048
+ var objValue = get(object, path3);
34049
+ return objValue === undefined2 && objValue === srcValue ? hasIn(object, path3) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
33900
34050
  };
33901
34051
  }
33902
34052
  function baseMerge(object, source, srcIndex, customizer, stack) {
@@ -33993,23 +34143,23 @@ var require_lodash = __commonJS({
33993
34143
  });
33994
34144
  }
33995
34145
  function basePick(object, paths) {
33996
- return basePickBy(object, paths, function(value, path2) {
33997
- return hasIn(object, path2);
34146
+ return basePickBy(object, paths, function(value, path3) {
34147
+ return hasIn(object, path3);
33998
34148
  });
33999
34149
  }
34000
34150
  function basePickBy(object, paths, predicate) {
34001
34151
  var index = -1, length = paths.length, result2 = {};
34002
34152
  while (++index < length) {
34003
- var path2 = paths[index], value = baseGet(object, path2);
34004
- if (predicate(value, path2)) {
34005
- baseSet(result2, castPath(path2, object), value);
34153
+ var path3 = paths[index], value = baseGet(object, path3);
34154
+ if (predicate(value, path3)) {
34155
+ baseSet(result2, castPath(path3, object), value);
34006
34156
  }
34007
34157
  }
34008
34158
  return result2;
34009
34159
  }
34010
- function basePropertyDeep(path2) {
34160
+ function basePropertyDeep(path3) {
34011
34161
  return function(object) {
34012
- return baseGet(object, path2);
34162
+ return baseGet(object, path3);
34013
34163
  };
34014
34164
  }
34015
34165
  function basePullAll(array, values2, iteratee2, comparator) {
@@ -34083,14 +34233,14 @@ var require_lodash = __commonJS({
34083
34233
  var array = values(collection);
34084
34234
  return shuffleSelf(array, baseClamp(n, 0, array.length));
34085
34235
  }
34086
- function baseSet(object, path2, value, customizer) {
34236
+ function baseSet(object, path3, value, customizer) {
34087
34237
  if (!isObject(object)) {
34088
34238
  return object;
34089
34239
  }
34090
- path2 = castPath(path2, object);
34091
- var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
34240
+ path3 = castPath(path3, object);
34241
+ var index = -1, length = path3.length, lastIndex = length - 1, nested = object;
34092
34242
  while (nested != null && ++index < length) {
34093
- var key = toKey(path2[index]), newValue = value;
34243
+ var key = toKey(path3[index]), newValue = value;
34094
34244
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
34095
34245
  return object;
34096
34246
  }
@@ -34098,7 +34248,7 @@ var require_lodash = __commonJS({
34098
34248
  var objValue = nested[key];
34099
34249
  newValue = customizer ? customizer(objValue, key, nested) : undefined2;
34100
34250
  if (newValue === undefined2) {
34101
- newValue = isObject(objValue) ? objValue : isIndex(path2[index + 1]) ? [] : {};
34251
+ newValue = isObject(objValue) ? objValue : isIndex(path3[index + 1]) ? [] : {};
34102
34252
  }
34103
34253
  }
34104
34254
  assignValue(nested, key, newValue);
@@ -34264,13 +34414,13 @@ var require_lodash = __commonJS({
34264
34414
  }
34265
34415
  return result2;
34266
34416
  }
34267
- function baseUnset(object, path2) {
34268
- path2 = castPath(path2, object);
34269
- object = parent(object, path2);
34270
- return object == null || delete object[toKey(last(path2))];
34417
+ function baseUnset(object, path3) {
34418
+ path3 = castPath(path3, object);
34419
+ object = parent(object, path3);
34420
+ return object == null || delete object[toKey(last(path3))];
34271
34421
  }
34272
- function baseUpdate(object, path2, updater, customizer) {
34273
- return baseSet(object, path2, updater(baseGet(object, path2)), customizer);
34422
+ function baseUpdate(object, path3, updater, customizer) {
34423
+ return baseSet(object, path3, updater(baseGet(object, path3)), customizer);
34274
34424
  }
34275
34425
  function baseWhile(array, predicate, isDrop, fromRight) {
34276
34426
  var length = array.length, index = fromRight ? length : -1;
@@ -35153,11 +35303,11 @@ var require_lodash = __commonJS({
35153
35303
  var match = source.match(reWrapDetails);
35154
35304
  return match ? match[1].split(reSplitDetails) : [];
35155
35305
  }
35156
- function hasPath(object, path2, hasFunc) {
35157
- path2 = castPath(path2, object);
35158
- var index = -1, length = path2.length, result2 = false;
35306
+ function hasPath(object, path3, hasFunc) {
35307
+ path3 = castPath(path3, object);
35308
+ var index = -1, length = path3.length, result2 = false;
35159
35309
  while (++index < length) {
35160
- var key = toKey(path2[index]);
35310
+ var key = toKey(path3[index]);
35161
35311
  if (!(result2 = object != null && hasFunc(object, key))) {
35162
35312
  break;
35163
35313
  }
@@ -35359,8 +35509,8 @@ var require_lodash = __commonJS({
35359
35509
  return apply(func, this, otherArgs);
35360
35510
  };
35361
35511
  }
35362
- function parent(object, path2) {
35363
- return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1));
35512
+ function parent(object, path3) {
35513
+ return path3.length < 2 ? object : baseGet(object, baseSlice(path3, 0, -1));
35364
35514
  }
35365
35515
  function reorder(array, indexes) {
35366
35516
  var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
@@ -35995,10 +36145,10 @@ var require_lodash = __commonJS({
35995
36145
  }
35996
36146
  return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
35997
36147
  }
35998
- var invokeMap = baseRest(function(collection, path2, args) {
35999
- var index = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
36148
+ var invokeMap = baseRest(function(collection, path3, args) {
36149
+ var index = -1, isFunc = typeof path3 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
36000
36150
  baseEach(collection, function(value) {
36001
- result2[++index] = isFunc ? apply(path2, value, args) : baseInvoke(value, path2, args);
36151
+ result2[++index] = isFunc ? apply(path3, value, args) : baseInvoke(value, path3, args);
36002
36152
  });
36003
36153
  return result2;
36004
36154
  });
@@ -36650,15 +36800,15 @@ var require_lodash = __commonJS({
36650
36800
  function functionsIn(object) {
36651
36801
  return object == null ? [] : baseFunctions(object, keysIn(object));
36652
36802
  }
36653
- function get(object, path2, defaultValue) {
36654
- var result2 = object == null ? undefined2 : baseGet(object, path2);
36803
+ function get(object, path3, defaultValue) {
36804
+ var result2 = object == null ? undefined2 : baseGet(object, path3);
36655
36805
  return result2 === undefined2 ? defaultValue : result2;
36656
36806
  }
36657
- function has(object, path2) {
36658
- return object != null && hasPath(object, path2, baseHas);
36807
+ function has(object, path3) {
36808
+ return object != null && hasPath(object, path3, baseHas);
36659
36809
  }
36660
- function hasIn(object, path2) {
36661
- return object != null && hasPath(object, path2, baseHasIn);
36810
+ function hasIn(object, path3) {
36811
+ return object != null && hasPath(object, path3, baseHasIn);
36662
36812
  }
36663
36813
  var invert = createInverter(function(result2, value, key) {
36664
36814
  if (value != null && typeof value.toString != "function") {
@@ -36711,10 +36861,10 @@ var require_lodash = __commonJS({
36711
36861
  return result2;
36712
36862
  }
36713
36863
  var isDeep = false;
36714
- paths = arrayMap(paths, function(path2) {
36715
- path2 = castPath(path2, object);
36716
- isDeep || (isDeep = path2.length > 1);
36717
- return path2;
36864
+ paths = arrayMap(paths, function(path3) {
36865
+ path3 = castPath(path3, object);
36866
+ isDeep || (isDeep = path3.length > 1);
36867
+ return path3;
36718
36868
  });
36719
36869
  copyObject(object, getAllKeysIn(object), result2);
36720
36870
  if (isDeep) {
@@ -36740,19 +36890,19 @@ var require_lodash = __commonJS({
36740
36890
  return [prop];
36741
36891
  });
36742
36892
  predicate = getIteratee(predicate);
36743
- return basePickBy(object, props, function(value, path2) {
36744
- return predicate(value, path2[0]);
36893
+ return basePickBy(object, props, function(value, path3) {
36894
+ return predicate(value, path3[0]);
36745
36895
  });
36746
36896
  }
36747
- function result(object, path2, defaultValue) {
36748
- path2 = castPath(path2, object);
36749
- var index = -1, length = path2.length;
36897
+ function result(object, path3, defaultValue) {
36898
+ path3 = castPath(path3, object);
36899
+ var index = -1, length = path3.length;
36750
36900
  if (!length) {
36751
36901
  length = 1;
36752
36902
  object = undefined2;
36753
36903
  }
36754
36904
  while (++index < length) {
36755
- var value = object == null ? undefined2 : object[toKey(path2[index])];
36905
+ var value = object == null ? undefined2 : object[toKey(path3[index])];
36756
36906
  if (value === undefined2) {
36757
36907
  index = length;
36758
36908
  value = defaultValue;
@@ -36761,12 +36911,12 @@ var require_lodash = __commonJS({
36761
36911
  }
36762
36912
  return object;
36763
36913
  }
36764
- function set(object, path2, value) {
36765
- return object == null ? object : baseSet(object, path2, value);
36914
+ function set(object, path3, value) {
36915
+ return object == null ? object : baseSet(object, path3, value);
36766
36916
  }
36767
- function setWith(object, path2, value, customizer) {
36917
+ function setWith(object, path3, value, customizer) {
36768
36918
  customizer = typeof customizer == "function" ? customizer : undefined2;
36769
- return object == null ? object : baseSet(object, path2, value, customizer);
36919
+ return object == null ? object : baseSet(object, path3, value, customizer);
36770
36920
  }
36771
36921
  var toPairs = createToPairs(keys);
36772
36922
  var toPairsIn = createToPairs(keysIn);
@@ -36788,15 +36938,15 @@ var require_lodash = __commonJS({
36788
36938
  });
36789
36939
  return accumulator;
36790
36940
  }
36791
- function unset(object, path2) {
36792
- return object == null ? true : baseUnset(object, path2);
36941
+ function unset(object, path3) {
36942
+ return object == null ? true : baseUnset(object, path3);
36793
36943
  }
36794
- function update(object, path2, updater) {
36795
- return object == null ? object : baseUpdate(object, path2, castFunction(updater));
36944
+ function update(object, path3, updater) {
36945
+ return object == null ? object : baseUpdate(object, path3, castFunction(updater));
36796
36946
  }
36797
- function updateWith(object, path2, updater, customizer) {
36947
+ function updateWith(object, path3, updater, customizer) {
36798
36948
  customizer = typeof customizer == "function" ? customizer : undefined2;
36799
- return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer);
36949
+ return object == null ? object : baseUpdate(object, path3, castFunction(updater), customizer);
36800
36950
  }
36801
36951
  function values(object) {
36802
36952
  return object == null ? [] : baseValues(object, keys(object));
@@ -37177,17 +37327,17 @@ var require_lodash = __commonJS({
37177
37327
  function matches(source) {
37178
37328
  return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
37179
37329
  }
37180
- function matchesProperty(path2, srcValue) {
37181
- return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG));
37330
+ function matchesProperty(path3, srcValue) {
37331
+ return baseMatchesProperty(path3, baseClone(srcValue, CLONE_DEEP_FLAG));
37182
37332
  }
37183
- var method = baseRest(function(path2, args) {
37333
+ var method = baseRest(function(path3, args) {
37184
37334
  return function(object) {
37185
- return baseInvoke(object, path2, args);
37335
+ return baseInvoke(object, path3, args);
37186
37336
  };
37187
37337
  });
37188
37338
  var methodOf = baseRest(function(object, args) {
37189
- return function(path2) {
37190
- return baseInvoke(object, path2, args);
37339
+ return function(path3) {
37340
+ return baseInvoke(object, path3, args);
37191
37341
  };
37192
37342
  });
37193
37343
  function mixin(object, source, options) {
@@ -37234,12 +37384,12 @@ var require_lodash = __commonJS({
37234
37384
  var over = createOver(arrayMap);
37235
37385
  var overEvery = createOver(arrayEvery);
37236
37386
  var overSome = createOver(arraySome);
37237
- function property(path2) {
37238
- return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2);
37387
+ function property(path3) {
37388
+ return isKey(path3) ? baseProperty(toKey(path3)) : basePropertyDeep(path3);
37239
37389
  }
37240
37390
  function propertyOf(object) {
37241
- return function(path2) {
37242
- return object == null ? undefined2 : baseGet(object, path2);
37391
+ return function(path3) {
37392
+ return object == null ? undefined2 : baseGet(object, path3);
37243
37393
  };
37244
37394
  }
37245
37395
  var range = createRange();
@@ -37692,12 +37842,12 @@ var require_lodash = __commonJS({
37692
37842
  LazyWrapper.prototype.findLast = function(predicate) {
37693
37843
  return this.reverse().find(predicate);
37694
37844
  };
37695
- LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) {
37696
- if (typeof path2 == "function") {
37845
+ LazyWrapper.prototype.invokeMap = baseRest(function(path3, args) {
37846
+ if (typeof path3 == "function") {
37697
37847
  return new LazyWrapper(this);
37698
37848
  }
37699
37849
  return this.map(function(value) {
37700
- return baseInvoke(value, path2, args);
37850
+ return baseInvoke(value, path3, args);
37701
37851
  });
37702
37852
  });
37703
37853
  LazyWrapper.prototype.reject = function(predicate) {
@@ -37816,6 +37966,7 @@ var require_lodash = __commonJS({
37816
37966
  // ../../node_modules/djv/lib/utils/template.js
37817
37967
  var require_template = __commonJS({
37818
37968
  "../../node_modules/djv/lib/utils/template.js"(exports, module2) {
37969
+ init_cjs_shim();
37819
37970
  function sanitizeString(str) {
37820
37971
  if (typeof str !== "string") {
37821
37972
  return str;
@@ -37840,9 +37991,9 @@ var require_template = __commonJS({
37840
37991
  return tplString.replace("[", "").replace("]", "").replace("(", "").replace(")", "").replace("decodeURIComponent", "");
37841
37992
  }
37842
37993
  const error = typeof options.errorHandler === "function" ? options.errorHandler : function defaultErrorHandler(errorType) {
37843
- const path2 = this.data.toString().replace(/^data/, "");
37844
- const dataPath = path2.replace(/\['([^']+)'\]/ig, ".$1").replace(/\[(i[0-9]*)\]/ig, "['+$1+']");
37845
- const schemaPath = `#${path2.replace(/\[i([0-9]*)\]/ig, "/items").replace(/\['([^']+)'\]/ig, "/properties/$1")}/${errorType}`;
37994
+ const path3 = this.data.toString().replace(/^data/, "");
37995
+ const dataPath = path3.replace(/\['([^']+)'\]/ig, ".$1").replace(/\[(i[0-9]*)\]/ig, "['+$1+']");
37996
+ const schemaPath = `#${path3.replace(/\[i([0-9]*)\]/ig, "/items").replace(/\['([^']+)'\]/ig, "/properties/$1")}/${errorType}`;
37846
37997
  return `return {
37847
37998
  keyword: '${errorType}',
37848
37999
  dataPath: decodeURIComponent("${clearDecode(dataPath)}"),
@@ -37875,8 +38026,8 @@ var require_template = __commonJS({
37875
38026
  * @param {string} url
37876
38027
  * @return {string} functionName
37877
38028
  */
37878
- link(url) {
37879
- return `f${state.link(url)}`;
38029
+ link(url2) {
38030
+ return `f${state.link(url2)}`;
37880
38031
  },
37881
38032
  /**
37882
38033
  * @name visit
@@ -37984,6 +38135,7 @@ var require_template = __commonJS({
37984
38135
  // ../../node_modules/djv/lib/utils/formats.js
37985
38136
  var require_formats2 = __commonJS({
37986
38137
  "../../node_modules/djv/lib/utils/formats.js"(exports, module2) {
38138
+ init_cjs_shim();
37987
38139
  var { expression } = require_template();
37988
38140
  module2.exports = {
37989
38141
  alpha: expression`!/^[a-zA-Z]+$/.test(${"data"})`,
@@ -38011,6 +38163,7 @@ var require_formats2 = __commonJS({
38011
38163
  // ../../node_modules/djv/lib/validators/required.js
38012
38164
  var require_required = __commonJS({
38013
38165
  "../../node_modules/djv/lib/validators/required.js"(exports, module2) {
38166
+ init_cjs_shim();
38014
38167
  module2.exports = function required(schema, tpl) {
38015
38168
  if (!Array.isArray(schema.required)) {
38016
38169
  return;
@@ -38029,6 +38182,7 @@ var require_required = __commonJS({
38029
38182
  // ../../node_modules/djv/lib/validators/format.js
38030
38183
  var require_format = __commonJS({
38031
38184
  "../../node_modules/djv/lib/validators/format.js"(exports, module2) {
38185
+ init_cjs_shim();
38032
38186
  var formats = require_formats2();
38033
38187
  module2.exports = function format(schema, tpl) {
38034
38188
  if (typeof schema.format === "undefined") {
@@ -38049,6 +38203,7 @@ var require_format = __commonJS({
38049
38203
  // ../../node_modules/djv/lib/utils/properties.js
38050
38204
  var require_properties = __commonJS({
38051
38205
  "../../node_modules/djv/lib/utils/properties.js"(exports, module2) {
38206
+ init_cjs_shim();
38052
38207
  module2.exports = {
38053
38208
  readOnly: "false",
38054
38209
  exclusiveMinimum(schema) {
@@ -38138,6 +38293,7 @@ var require_properties = __commonJS({
38138
38293
  // ../../node_modules/djv/lib/utils/keywords.js
38139
38294
  var require_keywords = __commonJS({
38140
38295
  "../../node_modules/djv/lib/utils/keywords.js"(exports, module2) {
38296
+ init_cjs_shim();
38141
38297
  module2.exports = [
38142
38298
  "$ref",
38143
38299
  "$schema",
@@ -38168,6 +38324,7 @@ var require_keywords = __commonJS({
38168
38324
  // ../../node_modules/djv/lib/utils/index.js
38169
38325
  var require_utils3 = __commonJS({
38170
38326
  "../../node_modules/djv/lib/utils/index.js"(exports, module2) {
38327
+ init_cjs_shim();
38171
38328
  function asExpression(fn, schema, tpl) {
38172
38329
  if (typeof fn !== "function") {
38173
38330
  return fn;
@@ -38187,6 +38344,7 @@ var require_utils3 = __commonJS({
38187
38344
  // ../../node_modules/djv/lib/validators/property.js
38188
38345
  var require_property = __commonJS({
38189
38346
  "../../node_modules/djv/lib/validators/property.js"(exports, module2) {
38347
+ init_cjs_shim();
38190
38348
  var properties = require_properties();
38191
38349
  var keywords = require_keywords();
38192
38350
  var { asExpression } = require_utils3();
@@ -38209,6 +38367,7 @@ var require_property = __commonJS({
38209
38367
  // ../../node_modules/djv/lib/utils/types.js
38210
38368
  var require_types2 = __commonJS({
38211
38369
  "../../node_modules/djv/lib/utils/types.js"(exports, module2) {
38370
+ init_cjs_shim();
38212
38371
  module2.exports = {
38213
38372
  null: "%s !== null",
38214
38373
  string: 'typeof %s !== "string"',
@@ -38225,6 +38384,7 @@ var require_types2 = __commonJS({
38225
38384
  // ../../node_modules/djv/lib/validators/type.js
38226
38385
  var require_type = __commonJS({
38227
38386
  "../../node_modules/djv/lib/validators/type.js"(exports, module2) {
38387
+ init_cjs_shim();
38228
38388
  var types = require_types2();
38229
38389
  var { hasProperty } = require_utils3();
38230
38390
  module2.exports = function type(schema, tpl) {
@@ -38241,6 +38401,7 @@ var require_type = __commonJS({
38241
38401
  // ../../node_modules/djv/lib/validators/$ref.js
38242
38402
  var require_ref = __commonJS({
38243
38403
  "../../node_modules/djv/lib/validators/$ref.js"(exports, module2) {
38404
+ init_cjs_shim();
38244
38405
  var { hasProperty } = require_utils3();
38245
38406
  module2.exports = function $ref(schema, tpl) {
38246
38407
  if (!hasProperty(schema, "$ref")) {
@@ -38257,6 +38418,7 @@ var require_ref = __commonJS({
38257
38418
  // ../../node_modules/djv/lib/validators/not.js
38258
38419
  var require_not = __commonJS({
38259
38420
  "../../node_modules/djv/lib/validators/not.js"(exports, module2) {
38421
+ init_cjs_shim();
38260
38422
  var { hasProperty } = require_utils3();
38261
38423
  module2.exports = function not(schema, tpl) {
38262
38424
  if (!hasProperty(schema, "not")) {
@@ -38272,6 +38434,7 @@ var require_not = __commonJS({
38272
38434
  // ../../node_modules/djv/lib/validators/anyOf.js
38273
38435
  var require_anyOf = __commonJS({
38274
38436
  "../../node_modules/djv/lib/validators/anyOf.js"(exports, module2) {
38437
+ init_cjs_shim();
38275
38438
  var { hasProperty } = require_utils3();
38276
38439
  module2.exports = function anyOf(schema, tpl) {
38277
38440
  if (!hasProperty(schema, "anyOf")) {
@@ -38287,6 +38450,7 @@ var require_anyOf = __commonJS({
38287
38450
  // ../../node_modules/djv/lib/validators/oneOf.js
38288
38451
  var require_oneOf = __commonJS({
38289
38452
  "../../node_modules/djv/lib/validators/oneOf.js"(exports, module2) {
38453
+ init_cjs_shim();
38290
38454
  var { hasProperty } = require_utils3();
38291
38455
  module2.exports = function oneOf(schema, tpl) {
38292
38456
  if (!hasProperty(schema, "oneOf")) {
@@ -38315,6 +38479,7 @@ var require_oneOf = __commonJS({
38315
38479
  // ../../node_modules/djv/lib/validators/allOf.js
38316
38480
  var require_allOf = __commonJS({
38317
38481
  "../../node_modules/djv/lib/validators/allOf.js"(exports, module2) {
38482
+ init_cjs_shim();
38318
38483
  var { hasProperty } = require_utils3();
38319
38484
  module2.exports = function allOf(schema, tpl) {
38320
38485
  if (!hasProperty(schema, "allOf")) {
@@ -38330,6 +38495,7 @@ var require_allOf = __commonJS({
38330
38495
  // ../../node_modules/djv/lib/utils/schema.js
38331
38496
  var require_schema = __commonJS({
38332
38497
  "../../node_modules/djv/lib/utils/schema.js"(exports, module2) {
38498
+ init_cjs_shim();
38333
38499
  var transformation = {
38334
38500
  ANY_SCHEMA: {},
38335
38501
  NOT_ANY_SCHEMA: { not: {} }
@@ -38378,6 +38544,7 @@ var require_schema = __commonJS({
38378
38544
  // ../../node_modules/djv/lib/validators/dependencies.js
38379
38545
  var require_dependencies = __commonJS({
38380
38546
  "../../node_modules/djv/lib/validators/dependencies.js"(exports, module2) {
38547
+ init_cjs_shim();
38381
38548
  var { hasProperty } = require_utils3();
38382
38549
  var { is: isSchema } = require_schema();
38383
38550
  module2.exports = function dependencies(schema, tpl) {
@@ -38402,6 +38569,7 @@ var require_dependencies = __commonJS({
38402
38569
  // ../../node_modules/djv/lib/validators/properties.js
38403
38570
  var require_properties2 = __commonJS({
38404
38571
  "../../node_modules/djv/lib/validators/properties.js"(exports, module2) {
38572
+ init_cjs_shim();
38405
38573
  var { hasProperty } = require_utils3();
38406
38574
  module2.exports = function properties(schema, tpl) {
38407
38575
  if (!hasProperty(schema, "properties") || typeof schema.properties !== "object") {
@@ -38430,6 +38598,7 @@ var require_properties2 = __commonJS({
38430
38598
  // ../../node_modules/djv/lib/validators/patternProperties.js
38431
38599
  var require_patternProperties = __commonJS({
38432
38600
  "../../node_modules/djv/lib/validators/patternProperties.js"(exports, module2) {
38601
+ init_cjs_shim();
38433
38602
  var { hasProperty } = require_utils3();
38434
38603
  module2.exports = function patternProperties(schema, tpl) {
38435
38604
  const hasAdditionalProperties = hasProperty(schema, "additionalProperties") && schema.additionalProperties !== true;
@@ -38485,6 +38654,7 @@ var require_patternProperties = __commonJS({
38485
38654
  // ../../node_modules/djv/lib/validators/items.js
38486
38655
  var require_items = __commonJS({
38487
38656
  "../../node_modules/djv/lib/validators/items.js"(exports, module2) {
38657
+ init_cjs_shim();
38488
38658
  var { hasProperty } = require_utils3();
38489
38659
  module2.exports = function items(schema, tpl) {
38490
38660
  if (!hasProperty(schema, "items")) {
@@ -38531,6 +38701,7 @@ var require_items = __commonJS({
38531
38701
  // ../../node_modules/djv/lib/validators/contains.js
38532
38702
  var require_contains = __commonJS({
38533
38703
  "../../node_modules/djv/lib/validators/contains.js"(exports, module2) {
38704
+ init_cjs_shim();
38534
38705
  var { hasProperty } = require_utils3();
38535
38706
  module2.exports = function contains(schema, tpl) {
38536
38707
  if (!hasProperty(schema, "contains")) {
@@ -38556,6 +38727,7 @@ var require_contains = __commonJS({
38556
38727
  // ../../node_modules/djv/lib/validators/const.js
38557
38728
  var require_const = __commonJS({
38558
38729
  "../../node_modules/djv/lib/validators/const.js"(exports, module2) {
38730
+ init_cjs_shim();
38559
38731
  var { hasProperty } = require_utils3();
38560
38732
  var { make: makeSchema } = require_schema();
38561
38733
  module2.exports = function constant(schema, tpl) {
@@ -38571,6 +38743,7 @@ var require_const = __commonJS({
38571
38743
  // ../../node_modules/djv/lib/validators/propertyNames.js
38572
38744
  var require_propertyNames = __commonJS({
38573
38745
  "../../node_modules/djv/lib/validators/propertyNames.js"(exports, module2) {
38746
+ init_cjs_shim();
38574
38747
  var { hasProperty } = require_utils3();
38575
38748
  module2.exports = function propertyNames(schema, tpl) {
38576
38749
  if (!hasProperty(schema, "propertyNames")) {
@@ -38586,6 +38759,7 @@ var require_propertyNames = __commonJS({
38586
38759
  // ../../node_modules/djv/lib/validators/index.js
38587
38760
  var require_validators = __commonJS({
38588
38761
  "../../node_modules/djv/lib/validators/index.js"(exports, module2) {
38762
+ init_cjs_shim();
38589
38763
  var required = require_required();
38590
38764
  var format = require_format();
38591
38765
  var property = require_property();
@@ -38646,6 +38820,7 @@ var require_validators = __commonJS({
38646
38820
  // ../../node_modules/djv/lib/utils/uri.js
38647
38821
  var require_uri = __commonJS({
38648
38822
  "../../node_modules/djv/lib/utils/uri.js"(exports, module2) {
38823
+ init_cjs_shim();
38649
38824
  var REGEXP_URI = /:\/\//;
38650
38825
  var REGEXP_URI_FRAGMENT = /#\/?/;
38651
38826
  var REGEXP_URI_PATH = /(^[^:]+:\/\/[^?#]*\/).*/;
@@ -38662,7 +38837,7 @@ var require_uri = __commonJS({
38662
38837
  function isFullUri(uri) {
38663
38838
  return REGEXP_URI.test(uri);
38664
38839
  }
38665
- function path2(uri) {
38840
+ function path3(uri) {
38666
38841
  return uri.replace(REGEXP_URI_PATH, "$1");
38667
38842
  }
38668
38843
  function fragment(uri) {
@@ -38687,7 +38862,7 @@ var require_uri = __commonJS({
38687
38862
  }
38688
38863
  return uri.slice(0, sharpUriIndex) + id;
38689
38864
  }
38690
- const partialUri = path2(uri) + id;
38865
+ const partialUri = path3(uri) + id;
38691
38866
  return partialUri + (partialUri.indexOf("#") === -1 ? "#" : "");
38692
38867
  }, "");
38693
38868
  }
@@ -38708,6 +38883,7 @@ var require_uri = __commonJS({
38708
38883
  // ../../node_modules/djv/lib/utils/state.js
38709
38884
  var require_state = __commonJS({
38710
38885
  "../../node_modules/djv/lib/utils/state.js"(exports, module2) {
38886
+ init_cjs_shim();
38711
38887
  var { list: validators } = require_validators();
38712
38888
  var { body, restore, template } = require_template();
38713
38889
  var { hasProperty } = require_utils3();
@@ -38749,7 +38925,7 @@ var require_state = __commonJS({
38749
38925
  * @param {object} schema
38750
38926
  * @returns {number/boolean} index
38751
38927
  */
38752
- addEntry(url, schema) {
38928
+ addEntry(url2, schema) {
38753
38929
  let entry = this.entries.get(schema);
38754
38930
  if (entry === false) {
38755
38931
  return this.context.push(schema);
@@ -38784,9 +38960,9 @@ var require_state = __commonJS({
38784
38960
  * @param {string} url
38785
38961
  * @returns {string} entry
38786
38962
  */
38787
- link(url) {
38788
- const schema = this.resolve(url);
38789
- const entry = this.addEntry(url, schema);
38963
+ link(url2) {
38964
+ const schema = this.resolve(url2);
38965
+ const entry = this.addEntry(url2, schema);
38790
38966
  return entry;
38791
38967
  },
38792
38968
  /**
@@ -38819,8 +38995,8 @@ var require_state = __commonJS({
38819
38995
  partialReferences.push(partialReference);
38820
38996
  }
38821
38997
  }
38822
- const path2 = makePath([lastFullURIReference, ...partialReferences, reference]);
38823
- return path2;
38998
+ const path3 = makePath([lastFullURIReference, ...partialReferences, reference]);
38999
+ return path3;
38824
39000
  },
38825
39001
  /**
38826
39002
  * @name ascend
@@ -38833,8 +39009,8 @@ var require_state = __commonJS({
38833
39009
  * @returns {object} parentSchema
38834
39010
  */
38835
39011
  ascend(reference) {
38836
- const path2 = head(reference);
38837
- let { schema: parentSchema = this[0] } = this.env.resolved[path2] || {};
39012
+ const path3 = head(reference);
39013
+ let { schema: parentSchema = this[0] } = this.env.resolved[path3] || {};
38838
39014
  while (parentSchema.$ref && // avoid infinite loop
38839
39015
  head(parentSchema.$ref) !== head(reference) && // > All other properties in a "$ref" object MUST be ignored.
38840
39016
  // @see https://tools.ietf.org/html/draft-wright-json-schema-01#section-8
@@ -38923,6 +39099,7 @@ var require_state = __commonJS({
38923
39099
  // ../../node_modules/djv/lib/utils/environment.js
38924
39100
  var require_environment = __commonJS({
38925
39101
  "../../node_modules/djv/lib/utils/environment.js"(exports, module2) {
39102
+ init_cjs_shim();
38926
39103
  var properties = require_properties();
38927
39104
  var keywords = require_keywords();
38928
39105
  var validators = require_validators();
@@ -38957,6 +39134,7 @@ var require_environment = __commonJS({
38957
39134
  // ../../node_modules/@korzio/djv-draft-04/index.js
38958
39135
  var require_djv_draft_04 = __commonJS({
38959
39136
  "../../node_modules/@korzio/djv-draft-04/index.js"(exports, module2) {
39137
+ init_cjs_shim();
38960
39138
  var djvDraft04 = ({
38961
39139
  properties,
38962
39140
  keywords,
@@ -39010,6 +39188,7 @@ var require_djv_draft_04 = __commonJS({
39010
39188
  // ../../node_modules/djv/lib/djv.js
39011
39189
  var require_djv = __commonJS({
39012
39190
  "../../node_modules/djv/lib/djv.js"(exports, module2) {
39191
+ init_cjs_shim();
39013
39192
  var { restore, expression } = require_template();
39014
39193
  var formats = require_formats2();
39015
39194
  var { generate, State } = require_state();
@@ -39266,12 +39445,20 @@ var require_djv = __commonJS({
39266
39445
  }
39267
39446
  });
39268
39447
 
39448
+ // src/index.ts
39449
+ init_cjs_shim();
39450
+
39269
39451
  // ../../magda-typescript-common/dist/test/connectors/runConnectorTest.js
39452
+ init_cjs_shim();
39270
39453
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
39271
39454
  import * as assert from "assert";
39272
- import * as path from "path";
39455
+ import * as path2 from "path";
39456
+
39457
+ // ../../magda-typescript-common/dist/test/connectors/MockRegistry.js
39458
+ init_cjs_shim();
39273
39459
 
39274
39460
  // ../../magda-typescript-common/dist/test/connectors/MockExpressServer.js
39461
+ init_cjs_shim();
39275
39462
  var import_express = __toESM(require_express2(), 1);
39276
39463
  var MockExpressServer = class {
39277
39464
  server;
@@ -39364,7 +39551,7 @@ function runConnectorTest(TEST_CASES, Catalog, options = {}) {
39364
39551
  const catalogPort = registryPort + 1;
39365
39552
  function run() {
39366
39553
  return new Promise((resolve2, reject) => {
39367
- const tsconfigPath = path.resolve("tsconfig.json");
39554
+ const tsconfigPath = path2.resolve("tsconfig.json");
39368
39555
  const nodeExec = "node";
39369
39556
  const command = [
39370
39557
  "--import",
@@ -39380,7 +39567,7 @@ function runConnectorTest(TEST_CASES, Catalog, options = {}) {
39380
39567
  ];
39381
39568
  const proc = (0, import_cross_spawn.default)(nodeExec, command, {
39382
39569
  stdio: "inherit",
39383
- cwd: path.dirname(tsconfigPath),
39570
+ cwd: path2.dirname(tsconfigPath),
39384
39571
  env: {
39385
39572
  ...process.env ? process.env : {},
39386
39573
  TS_NODE_PROJECT: tsconfigPath