@magda/authentication-plugin-sdk 3.0.1 → 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.
- package/dist/index.js +458 -294
- package/package.json +3 -3
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,9 +34,22 @@ 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/depd/index.js
|
|
35
50
|
var require_depd = __commonJS({
|
|
36
51
|
"../../node_modules/depd/index.js"(exports, module) {
|
|
52
|
+
init_cjs_shim();
|
|
37
53
|
var relative = __require("path").relative;
|
|
38
54
|
module.exports = depd;
|
|
39
55
|
var basePath = process.cwd();
|
|
@@ -341,6 +357,7 @@ var require_depd = __commonJS({
|
|
|
341
357
|
var require_bytes = __commonJS({
|
|
342
358
|
"../../node_modules/bytes/index.js"(exports, module) {
|
|
343
359
|
"use strict";
|
|
360
|
+
init_cjs_shim();
|
|
344
361
|
module.exports = bytes;
|
|
345
362
|
module.exports.format = format;
|
|
346
363
|
module.exports.parse = parse;
|
|
@@ -430,6 +447,7 @@ var require_bytes = __commonJS({
|
|
|
430
447
|
var require_content_type = __commonJS({
|
|
431
448
|
"../../node_modules/content-type/index.js"(exports) {
|
|
432
449
|
"use strict";
|
|
450
|
+
init_cjs_shim();
|
|
433
451
|
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
|
|
434
452
|
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
435
453
|
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
@@ -531,6 +549,7 @@ var require_content_type = __commonJS({
|
|
|
531
549
|
var require_setprototypeof = __commonJS({
|
|
532
550
|
"../../node_modules/setprototypeof/index.js"(exports, module) {
|
|
533
551
|
"use strict";
|
|
552
|
+
init_cjs_shim();
|
|
534
553
|
module.exports = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array ? setProtoOf : mixinProperties);
|
|
535
554
|
function setProtoOf(obj, proto) {
|
|
536
555
|
obj.__proto__ = proto;
|
|
@@ -622,6 +641,7 @@ var require_codes = __commonJS({
|
|
|
622
641
|
var require_statuses = __commonJS({
|
|
623
642
|
"../../node_modules/statuses/index.js"(exports, module) {
|
|
624
643
|
"use strict";
|
|
644
|
+
init_cjs_shim();
|
|
625
645
|
var codes = require_codes();
|
|
626
646
|
module.exports = status;
|
|
627
647
|
status.message = codes;
|
|
@@ -692,6 +712,7 @@ var require_statuses = __commonJS({
|
|
|
692
712
|
// ../../node_modules/inherits/inherits_browser.js
|
|
693
713
|
var require_inherits_browser = __commonJS({
|
|
694
714
|
"../../node_modules/inherits/inherits_browser.js"(exports, module) {
|
|
715
|
+
init_cjs_shim();
|
|
695
716
|
if (typeof Object.create === "function") {
|
|
696
717
|
module.exports = function inherits(ctor, superCtor) {
|
|
697
718
|
if (superCtor) {
|
|
@@ -724,6 +745,7 @@ var require_inherits_browser = __commonJS({
|
|
|
724
745
|
// ../../node_modules/inherits/inherits.js
|
|
725
746
|
var require_inherits = __commonJS({
|
|
726
747
|
"../../node_modules/inherits/inherits.js"(exports, module) {
|
|
748
|
+
init_cjs_shim();
|
|
727
749
|
try {
|
|
728
750
|
util = __require("util");
|
|
729
751
|
if (typeof util.inherits !== "function")
|
|
@@ -740,6 +762,7 @@ var require_inherits = __commonJS({
|
|
|
740
762
|
var require_toidentifier = __commonJS({
|
|
741
763
|
"../../node_modules/toidentifier/index.js"(exports, module) {
|
|
742
764
|
"use strict";
|
|
765
|
+
init_cjs_shim();
|
|
743
766
|
module.exports = toIdentifier;
|
|
744
767
|
function toIdentifier(str) {
|
|
745
768
|
return str.split(" ").map(function(token) {
|
|
@@ -753,6 +776,7 @@ var require_toidentifier = __commonJS({
|
|
|
753
776
|
var require_http_errors = __commonJS({
|
|
754
777
|
"../../node_modules/http-errors/index.js"(exports, module) {
|
|
755
778
|
"use strict";
|
|
779
|
+
init_cjs_shim();
|
|
756
780
|
var deprecate = require_depd()("http-errors");
|
|
757
781
|
var setPrototypeOf = require_setprototypeof();
|
|
758
782
|
var statuses = require_statuses();
|
|
@@ -916,6 +940,7 @@ var require_http_errors = __commonJS({
|
|
|
916
940
|
// ../../node_modules/body-parser/node_modules/ms/index.js
|
|
917
941
|
var require_ms = __commonJS({
|
|
918
942
|
"../../node_modules/body-parser/node_modules/ms/index.js"(exports, module) {
|
|
943
|
+
init_cjs_shim();
|
|
919
944
|
var s = 1e3;
|
|
920
945
|
var m = s * 60;
|
|
921
946
|
var h = m * 60;
|
|
@@ -1018,6 +1043,7 @@ var require_ms = __commonJS({
|
|
|
1018
1043
|
// ../../node_modules/body-parser/node_modules/debug/src/debug.js
|
|
1019
1044
|
var require_debug = __commonJS({
|
|
1020
1045
|
"../../node_modules/body-parser/node_modules/debug/src/debug.js"(exports, module) {
|
|
1046
|
+
init_cjs_shim();
|
|
1021
1047
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
1022
1048
|
exports.coerce = coerce;
|
|
1023
1049
|
exports.disable = disable;
|
|
@@ -1127,6 +1153,7 @@ var require_debug = __commonJS({
|
|
|
1127
1153
|
// ../../node_modules/body-parser/node_modules/debug/src/browser.js
|
|
1128
1154
|
var require_browser = __commonJS({
|
|
1129
1155
|
"../../node_modules/body-parser/node_modules/debug/src/browser.js"(exports, module) {
|
|
1156
|
+
init_cjs_shim();
|
|
1130
1157
|
exports = module.exports = require_debug();
|
|
1131
1158
|
exports.log = log;
|
|
1132
1159
|
exports.formatArgs = formatArgs;
|
|
@@ -1215,6 +1242,7 @@ var require_browser = __commonJS({
|
|
|
1215
1242
|
// ../../node_modules/body-parser/node_modules/debug/src/node.js
|
|
1216
1243
|
var require_node = __commonJS({
|
|
1217
1244
|
"../../node_modules/body-parser/node_modules/debug/src/node.js"(exports, module) {
|
|
1245
|
+
init_cjs_shim();
|
|
1218
1246
|
var tty = __require("tty");
|
|
1219
1247
|
var util = __require("util");
|
|
1220
1248
|
exports = module.exports = require_debug();
|
|
@@ -1339,6 +1367,7 @@ var require_node = __commonJS({
|
|
|
1339
1367
|
// ../../node_modules/body-parser/node_modules/debug/src/index.js
|
|
1340
1368
|
var require_src = __commonJS({
|
|
1341
1369
|
"../../node_modules/body-parser/node_modules/debug/src/index.js"(exports, module) {
|
|
1370
|
+
init_cjs_shim();
|
|
1342
1371
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
1343
1372
|
module.exports = require_browser();
|
|
1344
1373
|
} else {
|
|
@@ -1351,6 +1380,7 @@ var require_src = __commonJS({
|
|
|
1351
1380
|
var require_destroy = __commonJS({
|
|
1352
1381
|
"../../node_modules/destroy/index.js"(exports, module) {
|
|
1353
1382
|
"use strict";
|
|
1383
|
+
init_cjs_shim();
|
|
1354
1384
|
var EventEmitter = __require("events").EventEmitter;
|
|
1355
1385
|
var ReadStream = __require("fs").ReadStream;
|
|
1356
1386
|
var Stream = __require("stream");
|
|
@@ -1438,6 +1468,7 @@ var require_destroy = __commonJS({
|
|
|
1438
1468
|
var require_safer = __commonJS({
|
|
1439
1469
|
"../../node_modules/safer-buffer/safer.js"(exports, module) {
|
|
1440
1470
|
"use strict";
|
|
1471
|
+
init_cjs_shim();
|
|
1441
1472
|
var buffer = __require("buffer");
|
|
1442
1473
|
var Buffer2 = buffer.Buffer;
|
|
1443
1474
|
var safer = {};
|
|
@@ -1510,6 +1541,7 @@ var require_safer = __commonJS({
|
|
|
1510
1541
|
var require_bom_handling = __commonJS({
|
|
1511
1542
|
"../../node_modules/iconv-lite/lib/bom-handling.js"(exports) {
|
|
1512
1543
|
"use strict";
|
|
1544
|
+
init_cjs_shim();
|
|
1513
1545
|
var BOMChar = "\uFEFF";
|
|
1514
1546
|
exports.PrependBOM = PrependBOMWrapper;
|
|
1515
1547
|
function PrependBOMWrapper(encoder, options) {
|
|
@@ -1554,6 +1586,7 @@ var require_bom_handling = __commonJS({
|
|
|
1554
1586
|
var require_internal = __commonJS({
|
|
1555
1587
|
"../../node_modules/iconv-lite/encodings/internal.js"(exports, module) {
|
|
1556
1588
|
"use strict";
|
|
1589
|
+
init_cjs_shim();
|
|
1557
1590
|
var Buffer2 = require_safer().Buffer;
|
|
1558
1591
|
module.exports = {
|
|
1559
1592
|
// Encodings
|
|
@@ -1698,6 +1731,7 @@ var require_internal = __commonJS({
|
|
|
1698
1731
|
var require_utf16 = __commonJS({
|
|
1699
1732
|
"../../node_modules/iconv-lite/encodings/utf16.js"(exports) {
|
|
1700
1733
|
"use strict";
|
|
1734
|
+
init_cjs_shim();
|
|
1701
1735
|
var Buffer2 = require_safer().Buffer;
|
|
1702
1736
|
exports.utf16be = Utf16BECodec;
|
|
1703
1737
|
function Utf16BECodec() {
|
|
@@ -1816,6 +1850,7 @@ var require_utf16 = __commonJS({
|
|
|
1816
1850
|
var require_utf7 = __commonJS({
|
|
1817
1851
|
"../../node_modules/iconv-lite/encodings/utf7.js"(exports) {
|
|
1818
1852
|
"use strict";
|
|
1853
|
+
init_cjs_shim();
|
|
1819
1854
|
var Buffer2 = require_safer().Buffer;
|
|
1820
1855
|
exports.utf7 = Utf7Codec;
|
|
1821
1856
|
exports.unicode11utf7 = "utf7";
|
|
@@ -2017,6 +2052,7 @@ var require_utf7 = __commonJS({
|
|
|
2017
2052
|
var require_sbcs_codec = __commonJS({
|
|
2018
2053
|
"../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
|
|
2019
2054
|
"use strict";
|
|
2055
|
+
init_cjs_shim();
|
|
2020
2056
|
var Buffer2 = require_safer().Buffer;
|
|
2021
2057
|
exports._sbcs = SBCSCodec;
|
|
2022
2058
|
function SBCSCodec(codecOptions, iconv) {
|
|
@@ -2073,6 +2109,7 @@ var require_sbcs_codec = __commonJS({
|
|
|
2073
2109
|
var require_sbcs_data = __commonJS({
|
|
2074
2110
|
"../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
|
|
2075
2111
|
"use strict";
|
|
2112
|
+
init_cjs_shim();
|
|
2076
2113
|
module.exports = {
|
|
2077
2114
|
// Not supported by iconv, not sure why.
|
|
2078
2115
|
"10029": "maccenteuro",
|
|
@@ -2222,6 +2259,7 @@ var require_sbcs_data = __commonJS({
|
|
|
2222
2259
|
var require_sbcs_data_generated = __commonJS({
|
|
2223
2260
|
"../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
|
|
2224
2261
|
"use strict";
|
|
2262
|
+
init_cjs_shim();
|
|
2225
2263
|
module.exports = {
|
|
2226
2264
|
"437": "cp437",
|
|
2227
2265
|
"737": "cp737",
|
|
@@ -2677,6 +2715,7 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
2677
2715
|
var require_dbcs_codec = __commonJS({
|
|
2678
2716
|
"../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
|
|
2679
2717
|
"use strict";
|
|
2718
|
+
init_cjs_shim();
|
|
2680
2719
|
var Buffer2 = require_safer().Buffer;
|
|
2681
2720
|
exports._dbcs = DBCSCodec;
|
|
2682
2721
|
var UNASSIGNED = -1;
|
|
@@ -4309,6 +4348,7 @@ var require_big5_added = __commonJS({
|
|
|
4309
4348
|
var require_dbcs_data = __commonJS({
|
|
4310
4349
|
"../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
|
|
4311
4350
|
"use strict";
|
|
4351
|
+
init_cjs_shim();
|
|
4312
4352
|
module.exports = {
|
|
4313
4353
|
// == Japanese/ShiftJIS ====================================================
|
|
4314
4354
|
// All japanese encodings are based on JIS X set of standards:
|
|
@@ -4484,6 +4524,7 @@ var require_dbcs_data = __commonJS({
|
|
|
4484
4524
|
var require_encodings = __commonJS({
|
|
4485
4525
|
"../../node_modules/iconv-lite/encodings/index.js"(exports, module) {
|
|
4486
4526
|
"use strict";
|
|
4527
|
+
init_cjs_shim();
|
|
4487
4528
|
var modules = [
|
|
4488
4529
|
require_internal(),
|
|
4489
4530
|
require_utf16(),
|
|
@@ -4510,6 +4551,7 @@ var require_encodings = __commonJS({
|
|
|
4510
4551
|
var require_streams = __commonJS({
|
|
4511
4552
|
"../../node_modules/iconv-lite/lib/streams.js"(exports, module) {
|
|
4512
4553
|
"use strict";
|
|
4554
|
+
init_cjs_shim();
|
|
4513
4555
|
var Buffer2 = __require("buffer").Buffer;
|
|
4514
4556
|
var Transform = __require("stream").Transform;
|
|
4515
4557
|
module.exports = function(iconv) {
|
|
@@ -4615,6 +4657,7 @@ var require_streams = __commonJS({
|
|
|
4615
4657
|
var require_extend_node = __commonJS({
|
|
4616
4658
|
"../../node_modules/iconv-lite/lib/extend-node.js"(exports, module) {
|
|
4617
4659
|
"use strict";
|
|
4660
|
+
init_cjs_shim();
|
|
4618
4661
|
var Buffer2 = __require("buffer").Buffer;
|
|
4619
4662
|
module.exports = function(iconv) {
|
|
4620
4663
|
var original = void 0;
|
|
@@ -4784,6 +4827,7 @@ var require_extend_node = __commonJS({
|
|
|
4784
4827
|
var require_lib = __commonJS({
|
|
4785
4828
|
"../../node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
4786
4829
|
"use strict";
|
|
4830
|
+
init_cjs_shim();
|
|
4787
4831
|
var Buffer2 = require_safer().Buffer;
|
|
4788
4832
|
var bomHandling = require_bom_handling();
|
|
4789
4833
|
var iconv = module.exports;
|
|
@@ -4887,6 +4931,7 @@ var require_lib = __commonJS({
|
|
|
4887
4931
|
var require_unpipe = __commonJS({
|
|
4888
4932
|
"../../node_modules/unpipe/index.js"(exports, module) {
|
|
4889
4933
|
"use strict";
|
|
4934
|
+
init_cjs_shim();
|
|
4890
4935
|
module.exports = unpipe;
|
|
4891
4936
|
function hasPipeDataListeners(stream) {
|
|
4892
4937
|
var listeners = stream.listeners("data");
|
|
@@ -4925,6 +4970,7 @@ var require_unpipe = __commonJS({
|
|
|
4925
4970
|
var require_raw_body = __commonJS({
|
|
4926
4971
|
"../../node_modules/body-parser/node_modules/raw-body/index.js"(exports, module) {
|
|
4927
4972
|
"use strict";
|
|
4973
|
+
init_cjs_shim();
|
|
4928
4974
|
var asyncHooks = tryRequireAsyncHooks();
|
|
4929
4975
|
var bytes = require_bytes();
|
|
4930
4976
|
var createError = require_http_errors();
|
|
@@ -5116,6 +5162,7 @@ var require_raw_body = __commonJS({
|
|
|
5116
5162
|
var require_ee_first = __commonJS({
|
|
5117
5163
|
"../../node_modules/ee-first/index.js"(exports, module) {
|
|
5118
5164
|
"use strict";
|
|
5165
|
+
init_cjs_shim();
|
|
5119
5166
|
module.exports = first;
|
|
5120
5167
|
function first(stuff, done) {
|
|
5121
5168
|
if (!Array.isArray(stuff))
|
|
@@ -5172,6 +5219,7 @@ var require_ee_first = __commonJS({
|
|
|
5172
5219
|
var require_on_finished = __commonJS({
|
|
5173
5220
|
"../../node_modules/on-finished/index.js"(exports, module) {
|
|
5174
5221
|
"use strict";
|
|
5222
|
+
init_cjs_shim();
|
|
5175
5223
|
module.exports = onFinished;
|
|
5176
5224
|
module.exports.isFinished = isFinished;
|
|
5177
5225
|
var asyncHooks = tryRequireAsyncHooks();
|
|
@@ -5281,6 +5329,7 @@ var require_on_finished = __commonJS({
|
|
|
5281
5329
|
var require_read = __commonJS({
|
|
5282
5330
|
"../../node_modules/body-parser/lib/read.js"(exports, module) {
|
|
5283
5331
|
"use strict";
|
|
5332
|
+
init_cjs_shim();
|
|
5284
5333
|
var createError = require_http_errors();
|
|
5285
5334
|
var destroy = require_destroy();
|
|
5286
5335
|
var getBody = require_raw_body();
|
|
@@ -5407,6 +5456,7 @@ var require_read = __commonJS({
|
|
|
5407
5456
|
// ../../node_modules/media-typer/index.js
|
|
5408
5457
|
var require_media_typer = __commonJS({
|
|
5409
5458
|
"../../node_modules/media-typer/index.js"(exports) {
|
|
5459
|
+
init_cjs_shim();
|
|
5410
5460
|
var paramRegExp = /; *([!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) *= *("(?:[ !\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u0020-\u007e])*"|[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+) */g;
|
|
5411
5461
|
var textRegExp = /^[\u0020-\u007e\u0080-\u00ff]+$/;
|
|
5412
5462
|
var tokenRegExp = /^[!#$%&'\*\+\-\.0-9A-Z\^_`a-z\|~]+$/;
|
|
@@ -13713,6 +13763,7 @@ var require_db = __commonJS({
|
|
|
13713
13763
|
// ../../node_modules/mime-db/index.js
|
|
13714
13764
|
var require_mime_db = __commonJS({
|
|
13715
13765
|
"../../node_modules/mime-db/index.js"(exports, module) {
|
|
13766
|
+
init_cjs_shim();
|
|
13716
13767
|
module.exports = require_db();
|
|
13717
13768
|
}
|
|
13718
13769
|
});
|
|
@@ -13721,6 +13772,7 @@ var require_mime_db = __commonJS({
|
|
|
13721
13772
|
var require_mime_types = __commonJS({
|
|
13722
13773
|
"../../node_modules/mime-types/index.js"(exports) {
|
|
13723
13774
|
"use strict";
|
|
13775
|
+
init_cjs_shim();
|
|
13724
13776
|
var db = require_mime_db();
|
|
13725
13777
|
var extname = __require("path").extname;
|
|
13726
13778
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
@@ -13773,11 +13825,11 @@ var require_mime_types = __commonJS({
|
|
|
13773
13825
|
}
|
|
13774
13826
|
return exts[0];
|
|
13775
13827
|
}
|
|
13776
|
-
function lookup(
|
|
13777
|
-
if (!
|
|
13828
|
+
function lookup(path2) {
|
|
13829
|
+
if (!path2 || typeof path2 !== "string") {
|
|
13778
13830
|
return false;
|
|
13779
13831
|
}
|
|
13780
|
-
var extension2 = extname("x." +
|
|
13832
|
+
var extension2 = extname("x." + path2).toLowerCase().substr(1);
|
|
13781
13833
|
if (!extension2) {
|
|
13782
13834
|
return false;
|
|
13783
13835
|
}
|
|
@@ -13812,6 +13864,7 @@ var require_mime_types = __commonJS({
|
|
|
13812
13864
|
var require_type_is = __commonJS({
|
|
13813
13865
|
"../../node_modules/type-is/index.js"(exports, module) {
|
|
13814
13866
|
"use strict";
|
|
13867
|
+
init_cjs_shim();
|
|
13815
13868
|
var typer = require_media_typer();
|
|
13816
13869
|
var mime = require_mime_types();
|
|
13817
13870
|
module.exports = typeofrequest;
|
|
@@ -13917,6 +13970,7 @@ var require_type_is = __commonJS({
|
|
|
13917
13970
|
var require_json = __commonJS({
|
|
13918
13971
|
"../../node_modules/body-parser/lib/types/json.js"(exports, module) {
|
|
13919
13972
|
"use strict";
|
|
13973
|
+
init_cjs_shim();
|
|
13920
13974
|
var bytes = require_bytes();
|
|
13921
13975
|
var contentType = require_content_type();
|
|
13922
13976
|
var createError = require_http_errors();
|
|
@@ -14041,6 +14095,7 @@ var require_json = __commonJS({
|
|
|
14041
14095
|
var require_raw = __commonJS({
|
|
14042
14096
|
"../../node_modules/body-parser/lib/types/raw.js"(exports, module) {
|
|
14043
14097
|
"use strict";
|
|
14098
|
+
init_cjs_shim();
|
|
14044
14099
|
var bytes = require_bytes();
|
|
14045
14100
|
var debug = require_src()("body-parser:raw");
|
|
14046
14101
|
var read = require_read();
|
|
@@ -14097,6 +14152,7 @@ var require_raw = __commonJS({
|
|
|
14097
14152
|
var require_text = __commonJS({
|
|
14098
14153
|
"../../node_modules/body-parser/lib/types/text.js"(exports, module) {
|
|
14099
14154
|
"use strict";
|
|
14155
|
+
init_cjs_shim();
|
|
14100
14156
|
var bytes = require_bytes();
|
|
14101
14157
|
var contentType = require_content_type();
|
|
14102
14158
|
var debug = require_src()("body-parser:text");
|
|
@@ -14163,6 +14219,7 @@ var require_text = __commonJS({
|
|
|
14163
14219
|
var require_shams = __commonJS({
|
|
14164
14220
|
"../../node_modules/side-channel/node_modules/has-symbols/shams.js"(exports, module) {
|
|
14165
14221
|
"use strict";
|
|
14222
|
+
init_cjs_shim();
|
|
14166
14223
|
module.exports = function hasSymbols() {
|
|
14167
14224
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
14168
14225
|
return false;
|
|
@@ -14215,6 +14272,7 @@ var require_shams = __commonJS({
|
|
|
14215
14272
|
var require_has_symbols = __commonJS({
|
|
14216
14273
|
"../../node_modules/side-channel/node_modules/has-symbols/index.js"(exports, module) {
|
|
14217
14274
|
"use strict";
|
|
14275
|
+
init_cjs_shim();
|
|
14218
14276
|
var origSymbol = global.Symbol;
|
|
14219
14277
|
var hasSymbolSham = require_shams();
|
|
14220
14278
|
module.exports = function hasNativeSymbols() {
|
|
@@ -14239,6 +14297,7 @@ var require_has_symbols = __commonJS({
|
|
|
14239
14297
|
var require_implementation = __commonJS({
|
|
14240
14298
|
"../../node_modules/function-bind/implementation.js"(exports, module) {
|
|
14241
14299
|
"use strict";
|
|
14300
|
+
init_cjs_shim();
|
|
14242
14301
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
14243
14302
|
var slice = Array.prototype.slice;
|
|
14244
14303
|
var toStr = Object.prototype.toString;
|
|
@@ -14289,6 +14348,7 @@ var require_implementation = __commonJS({
|
|
|
14289
14348
|
var require_function_bind = __commonJS({
|
|
14290
14349
|
"../../node_modules/function-bind/index.js"(exports, module) {
|
|
14291
14350
|
"use strict";
|
|
14351
|
+
init_cjs_shim();
|
|
14292
14352
|
var implementation = require_implementation();
|
|
14293
14353
|
module.exports = Function.prototype.bind || implementation;
|
|
14294
14354
|
}
|
|
@@ -14298,6 +14358,7 @@ var require_function_bind = __commonJS({
|
|
|
14298
14358
|
var require_src2 = __commonJS({
|
|
14299
14359
|
"../../node_modules/has/src/index.js"(exports, module) {
|
|
14300
14360
|
"use strict";
|
|
14361
|
+
init_cjs_shim();
|
|
14301
14362
|
var bind = require_function_bind();
|
|
14302
14363
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
14303
14364
|
}
|
|
@@ -14307,6 +14368,7 @@ var require_src2 = __commonJS({
|
|
|
14307
14368
|
var require_get_intrinsic = __commonJS({
|
|
14308
14369
|
"../../node_modules/side-channel/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
14309
14370
|
"use strict";
|
|
14371
|
+
init_cjs_shim();
|
|
14310
14372
|
var undefined2;
|
|
14311
14373
|
var $SyntaxError = SyntaxError;
|
|
14312
14374
|
var $Function = Function;
|
|
@@ -14598,6 +14660,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
14598
14660
|
var require_shams2 = __commonJS({
|
|
14599
14661
|
"../../node_modules/call-bind/node_modules/has-symbols/shams.js"(exports, module) {
|
|
14600
14662
|
"use strict";
|
|
14663
|
+
init_cjs_shim();
|
|
14601
14664
|
module.exports = function hasSymbols() {
|
|
14602
14665
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
14603
14666
|
return false;
|
|
@@ -14650,6 +14713,7 @@ var require_shams2 = __commonJS({
|
|
|
14650
14713
|
var require_has_symbols2 = __commonJS({
|
|
14651
14714
|
"../../node_modules/call-bind/node_modules/has-symbols/index.js"(exports, module) {
|
|
14652
14715
|
"use strict";
|
|
14716
|
+
init_cjs_shim();
|
|
14653
14717
|
var origSymbol = global.Symbol;
|
|
14654
14718
|
var hasSymbolSham = require_shams2();
|
|
14655
14719
|
module.exports = function hasNativeSymbols() {
|
|
@@ -14674,6 +14738,7 @@ var require_has_symbols2 = __commonJS({
|
|
|
14674
14738
|
var require_get_intrinsic2 = __commonJS({
|
|
14675
14739
|
"../../node_modules/call-bind/node_modules/get-intrinsic/index.js"(exports, module) {
|
|
14676
14740
|
"use strict";
|
|
14741
|
+
init_cjs_shim();
|
|
14677
14742
|
var undefined2;
|
|
14678
14743
|
var $SyntaxError = SyntaxError;
|
|
14679
14744
|
var $Function = Function;
|
|
@@ -14965,6 +15030,7 @@ var require_get_intrinsic2 = __commonJS({
|
|
|
14965
15030
|
var require_call_bind = __commonJS({
|
|
14966
15031
|
"../../node_modules/call-bind/index.js"(exports, module) {
|
|
14967
15032
|
"use strict";
|
|
15033
|
+
init_cjs_shim();
|
|
14968
15034
|
var bind = require_function_bind();
|
|
14969
15035
|
var GetIntrinsic = require_get_intrinsic2();
|
|
14970
15036
|
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
@@ -15009,6 +15075,7 @@ var require_call_bind = __commonJS({
|
|
|
15009
15075
|
var require_callBound = __commonJS({
|
|
15010
15076
|
"../../node_modules/call-bind/callBound.js"(exports, module) {
|
|
15011
15077
|
"use strict";
|
|
15078
|
+
init_cjs_shim();
|
|
15012
15079
|
var GetIntrinsic = require_get_intrinsic2();
|
|
15013
15080
|
var callBind = require_call_bind();
|
|
15014
15081
|
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
@@ -15025,6 +15092,7 @@ var require_callBound = __commonJS({
|
|
|
15025
15092
|
// ../../node_modules/object-inspect/util.inspect.js
|
|
15026
15093
|
var require_util_inspect = __commonJS({
|
|
15027
15094
|
"../../node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
15095
|
+
init_cjs_shim();
|
|
15028
15096
|
module.exports = __require("util").inspect;
|
|
15029
15097
|
}
|
|
15030
15098
|
});
|
|
@@ -15032,6 +15100,7 @@ var require_util_inspect = __commonJS({
|
|
|
15032
15100
|
// ../../node_modules/object-inspect/index.js
|
|
15033
15101
|
var require_object_inspect = __commonJS({
|
|
15034
15102
|
"../../node_modules/object-inspect/index.js"(exports, module) {
|
|
15103
|
+
init_cjs_shim();
|
|
15035
15104
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
15036
15105
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
15037
15106
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -15537,6 +15606,7 @@ var require_object_inspect = __commonJS({
|
|
|
15537
15606
|
var require_side_channel = __commonJS({
|
|
15538
15607
|
"../../node_modules/side-channel/index.js"(exports, module) {
|
|
15539
15608
|
"use strict";
|
|
15609
|
+
init_cjs_shim();
|
|
15540
15610
|
var GetIntrinsic = require_get_intrinsic();
|
|
15541
15611
|
var callBound = require_callBound();
|
|
15542
15612
|
var inspect = require_object_inspect();
|
|
@@ -15648,6 +15718,7 @@ var require_side_channel = __commonJS({
|
|
|
15648
15718
|
var require_formats = __commonJS({
|
|
15649
15719
|
"../../node_modules/qs/lib/formats.js"(exports, module) {
|
|
15650
15720
|
"use strict";
|
|
15721
|
+
init_cjs_shim();
|
|
15651
15722
|
var replace = String.prototype.replace;
|
|
15652
15723
|
var percentTwenties = /%20/g;
|
|
15653
15724
|
var Format = {
|
|
@@ -15674,6 +15745,7 @@ var require_formats = __commonJS({
|
|
|
15674
15745
|
var require_utils = __commonJS({
|
|
15675
15746
|
"../../node_modules/qs/lib/utils.js"(exports, module) {
|
|
15676
15747
|
"use strict";
|
|
15748
|
+
init_cjs_shim();
|
|
15677
15749
|
var formats = require_formats();
|
|
15678
15750
|
var has = Object.prototype.hasOwnProperty;
|
|
15679
15751
|
var isArray = Array.isArray;
|
|
@@ -15873,6 +15945,7 @@ var require_utils = __commonJS({
|
|
|
15873
15945
|
var require_stringify = __commonJS({
|
|
15874
15946
|
"../../node_modules/qs/lib/stringify.js"(exports, module) {
|
|
15875
15947
|
"use strict";
|
|
15948
|
+
init_cjs_shim();
|
|
15876
15949
|
var getSideChannel = require_side_channel();
|
|
15877
15950
|
var utils = require_utils();
|
|
15878
15951
|
var formats = require_formats();
|
|
@@ -16136,6 +16209,7 @@ var require_stringify = __commonJS({
|
|
|
16136
16209
|
var require_parse = __commonJS({
|
|
16137
16210
|
"../../node_modules/qs/lib/parse.js"(exports, module) {
|
|
16138
16211
|
"use strict";
|
|
16212
|
+
init_cjs_shim();
|
|
16139
16213
|
var utils = require_utils();
|
|
16140
16214
|
var has = Object.prototype.hasOwnProperty;
|
|
16141
16215
|
var isArray = Array.isArray;
|
|
@@ -16338,6 +16412,7 @@ var require_parse = __commonJS({
|
|
|
16338
16412
|
var require_lib2 = __commonJS({
|
|
16339
16413
|
"../../node_modules/qs/lib/index.js"(exports, module) {
|
|
16340
16414
|
"use strict";
|
|
16415
|
+
init_cjs_shim();
|
|
16341
16416
|
var stringify = require_stringify();
|
|
16342
16417
|
var parse = require_parse();
|
|
16343
16418
|
var formats = require_formats();
|
|
@@ -16353,6 +16428,7 @@ var require_lib2 = __commonJS({
|
|
|
16353
16428
|
var require_urlencoded = __commonJS({
|
|
16354
16429
|
"../../node_modules/body-parser/lib/types/urlencoded.js"(exports, module) {
|
|
16355
16430
|
"use strict";
|
|
16431
|
+
init_cjs_shim();
|
|
16356
16432
|
var bytes = require_bytes();
|
|
16357
16433
|
var contentType = require_content_type();
|
|
16358
16434
|
var createError = require_http_errors();
|
|
@@ -16511,6 +16587,7 @@ var require_urlencoded = __commonJS({
|
|
|
16511
16587
|
var require_body_parser = __commonJS({
|
|
16512
16588
|
"../../node_modules/body-parser/index.js"(exports, module) {
|
|
16513
16589
|
"use strict";
|
|
16590
|
+
init_cjs_shim();
|
|
16514
16591
|
var deprecate = require_depd()("body-parser");
|
|
16515
16592
|
var parsers = /* @__PURE__ */ Object.create(null);
|
|
16516
16593
|
exports = module.exports = deprecate.function(
|
|
@@ -16589,6 +16666,7 @@ var require_body_parser = __commonJS({
|
|
|
16589
16666
|
var require_merge_descriptors = __commonJS({
|
|
16590
16667
|
"../../node_modules/merge-descriptors/index.js"(exports, module) {
|
|
16591
16668
|
"use strict";
|
|
16669
|
+
init_cjs_shim();
|
|
16592
16670
|
module.exports = merge;
|
|
16593
16671
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
16594
16672
|
function merge(dest, src, redefine) {
|
|
@@ -16616,6 +16694,7 @@ var require_merge_descriptors = __commonJS({
|
|
|
16616
16694
|
// ../../node_modules/finalhandler/node_modules/ms/index.js
|
|
16617
16695
|
var require_ms2 = __commonJS({
|
|
16618
16696
|
"../../node_modules/finalhandler/node_modules/ms/index.js"(exports, module) {
|
|
16697
|
+
init_cjs_shim();
|
|
16619
16698
|
var s = 1e3;
|
|
16620
16699
|
var m = s * 60;
|
|
16621
16700
|
var h = m * 60;
|
|
@@ -16718,6 +16797,7 @@ var require_ms2 = __commonJS({
|
|
|
16718
16797
|
// ../../node_modules/finalhandler/node_modules/debug/src/debug.js
|
|
16719
16798
|
var require_debug2 = __commonJS({
|
|
16720
16799
|
"../../node_modules/finalhandler/node_modules/debug/src/debug.js"(exports, module) {
|
|
16800
|
+
init_cjs_shim();
|
|
16721
16801
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
16722
16802
|
exports.coerce = coerce;
|
|
16723
16803
|
exports.disable = disable;
|
|
@@ -16827,6 +16907,7 @@ var require_debug2 = __commonJS({
|
|
|
16827
16907
|
// ../../node_modules/finalhandler/node_modules/debug/src/browser.js
|
|
16828
16908
|
var require_browser2 = __commonJS({
|
|
16829
16909
|
"../../node_modules/finalhandler/node_modules/debug/src/browser.js"(exports, module) {
|
|
16910
|
+
init_cjs_shim();
|
|
16830
16911
|
exports = module.exports = require_debug2();
|
|
16831
16912
|
exports.log = log;
|
|
16832
16913
|
exports.formatArgs = formatArgs;
|
|
@@ -16915,6 +16996,7 @@ var require_browser2 = __commonJS({
|
|
|
16915
16996
|
// ../../node_modules/finalhandler/node_modules/debug/src/node.js
|
|
16916
16997
|
var require_node2 = __commonJS({
|
|
16917
16998
|
"../../node_modules/finalhandler/node_modules/debug/src/node.js"(exports, module) {
|
|
16999
|
+
init_cjs_shim();
|
|
16918
17000
|
var tty = __require("tty");
|
|
16919
17001
|
var util = __require("util");
|
|
16920
17002
|
exports = module.exports = require_debug2();
|
|
@@ -17039,6 +17121,7 @@ var require_node2 = __commonJS({
|
|
|
17039
17121
|
// ../../node_modules/finalhandler/node_modules/debug/src/index.js
|
|
17040
17122
|
var require_src3 = __commonJS({
|
|
17041
17123
|
"../../node_modules/finalhandler/node_modules/debug/src/index.js"(exports, module) {
|
|
17124
|
+
init_cjs_shim();
|
|
17042
17125
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
17043
17126
|
module.exports = require_browser2();
|
|
17044
17127
|
} else {
|
|
@@ -17051,12 +17134,13 @@ var require_src3 = __commonJS({
|
|
|
17051
17134
|
var require_encodeurl = __commonJS({
|
|
17052
17135
|
"../../node_modules/encodeurl/index.js"(exports, module) {
|
|
17053
17136
|
"use strict";
|
|
17137
|
+
init_cjs_shim();
|
|
17054
17138
|
module.exports = encodeUrl;
|
|
17055
17139
|
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;
|
|
17056
17140
|
var UNMATCHED_SURROGATE_PAIR_REGEXP = /(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g;
|
|
17057
17141
|
var UNMATCHED_SURROGATE_PAIR_REPLACE = "$1\uFFFD$2";
|
|
17058
|
-
function encodeUrl(
|
|
17059
|
-
return String(
|
|
17142
|
+
function encodeUrl(url2) {
|
|
17143
|
+
return String(url2).replace(UNMATCHED_SURROGATE_PAIR_REGEXP, UNMATCHED_SURROGATE_PAIR_REPLACE).replace(ENCODE_CHARS_REGEXP, encodeURI);
|
|
17060
17144
|
}
|
|
17061
17145
|
}
|
|
17062
17146
|
});
|
|
@@ -17065,6 +17149,7 @@ var require_encodeurl = __commonJS({
|
|
|
17065
17149
|
var require_escape_html = __commonJS({
|
|
17066
17150
|
"../../node_modules/escape-html/index.js"(exports, module) {
|
|
17067
17151
|
"use strict";
|
|
17152
|
+
init_cjs_shim();
|
|
17068
17153
|
var matchHtmlRegExp = /["'&<>]/;
|
|
17069
17154
|
module.exports = escapeHtml;
|
|
17070
17155
|
function escapeHtml(string) {
|
|
@@ -17112,35 +17197,36 @@ var require_escape_html = __commonJS({
|
|
|
17112
17197
|
var require_parseurl = __commonJS({
|
|
17113
17198
|
"../../node_modules/parseurl/index.js"(exports, module) {
|
|
17114
17199
|
"use strict";
|
|
17115
|
-
|
|
17116
|
-
var
|
|
17117
|
-
var
|
|
17200
|
+
init_cjs_shim();
|
|
17201
|
+
var url2 = __require("url");
|
|
17202
|
+
var parse = url2.parse;
|
|
17203
|
+
var Url = url2.Url;
|
|
17118
17204
|
module.exports = parseurl;
|
|
17119
17205
|
module.exports.original = originalurl;
|
|
17120
17206
|
function parseurl(req) {
|
|
17121
|
-
var
|
|
17122
|
-
if (
|
|
17207
|
+
var url3 = req.url;
|
|
17208
|
+
if (url3 === void 0) {
|
|
17123
17209
|
return void 0;
|
|
17124
17210
|
}
|
|
17125
17211
|
var parsed = req._parsedUrl;
|
|
17126
|
-
if (fresh(
|
|
17212
|
+
if (fresh(url3, parsed)) {
|
|
17127
17213
|
return parsed;
|
|
17128
17214
|
}
|
|
17129
|
-
parsed = fastparse(
|
|
17130
|
-
parsed._raw =
|
|
17215
|
+
parsed = fastparse(url3);
|
|
17216
|
+
parsed._raw = url3;
|
|
17131
17217
|
return req._parsedUrl = parsed;
|
|
17132
17218
|
}
|
|
17133
17219
|
function originalurl(req) {
|
|
17134
|
-
var
|
|
17135
|
-
if (typeof
|
|
17220
|
+
var url3 = req.originalUrl;
|
|
17221
|
+
if (typeof url3 !== "string") {
|
|
17136
17222
|
return parseurl(req);
|
|
17137
17223
|
}
|
|
17138
17224
|
var parsed = req._parsedOriginalUrl;
|
|
17139
|
-
if (fresh(
|
|
17225
|
+
if (fresh(url3, parsed)) {
|
|
17140
17226
|
return parsed;
|
|
17141
17227
|
}
|
|
17142
|
-
parsed = fastparse(
|
|
17143
|
-
parsed._raw =
|
|
17228
|
+
parsed = fastparse(url3);
|
|
17229
|
+
parsed._raw = url3;
|
|
17144
17230
|
return req._parsedOriginalUrl = parsed;
|
|
17145
17231
|
}
|
|
17146
17232
|
function fastparse(str) {
|
|
@@ -17170,18 +17256,18 @@ var require_parseurl = __commonJS({
|
|
|
17170
17256
|
return parse(str);
|
|
17171
17257
|
}
|
|
17172
17258
|
}
|
|
17173
|
-
var
|
|
17174
|
-
|
|
17175
|
-
|
|
17176
|
-
|
|
17259
|
+
var url3 = Url !== void 0 ? new Url() : {};
|
|
17260
|
+
url3.path = str;
|
|
17261
|
+
url3.href = str;
|
|
17262
|
+
url3.pathname = pathname;
|
|
17177
17263
|
if (search !== null) {
|
|
17178
|
-
|
|
17179
|
-
|
|
17264
|
+
url3.query = query;
|
|
17265
|
+
url3.search = search;
|
|
17180
17266
|
}
|
|
17181
|
-
return
|
|
17267
|
+
return url3;
|
|
17182
17268
|
}
|
|
17183
|
-
function fresh(
|
|
17184
|
-
return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw ===
|
|
17269
|
+
function fresh(url3, parsedUrl) {
|
|
17270
|
+
return typeof parsedUrl === "object" && parsedUrl !== null && (Url === void 0 || parsedUrl instanceof Url) && parsedUrl._raw === url3;
|
|
17185
17271
|
}
|
|
17186
17272
|
}
|
|
17187
17273
|
});
|
|
@@ -17190,6 +17276,7 @@ var require_parseurl = __commonJS({
|
|
|
17190
17276
|
var require_finalhandler = __commonJS({
|
|
17191
17277
|
"../../node_modules/finalhandler/index.js"(exports, module) {
|
|
17192
17278
|
"use strict";
|
|
17279
|
+
init_cjs_shim();
|
|
17193
17280
|
var debug = require_src3()("finalhandler");
|
|
17194
17281
|
var encodeUrl = require_encodeurl();
|
|
17195
17282
|
var escapeHtml = require_escape_html();
|
|
@@ -17335,6 +17422,7 @@ var require_finalhandler = __commonJS({
|
|
|
17335
17422
|
// ../../node_modules/express/node_modules/ms/index.js
|
|
17336
17423
|
var require_ms3 = __commonJS({
|
|
17337
17424
|
"../../node_modules/express/node_modules/ms/index.js"(exports, module) {
|
|
17425
|
+
init_cjs_shim();
|
|
17338
17426
|
var s = 1e3;
|
|
17339
17427
|
var m = s * 60;
|
|
17340
17428
|
var h = m * 60;
|
|
@@ -17437,6 +17525,7 @@ var require_ms3 = __commonJS({
|
|
|
17437
17525
|
// ../../node_modules/express/node_modules/debug/src/debug.js
|
|
17438
17526
|
var require_debug3 = __commonJS({
|
|
17439
17527
|
"../../node_modules/express/node_modules/debug/src/debug.js"(exports, module) {
|
|
17528
|
+
init_cjs_shim();
|
|
17440
17529
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
17441
17530
|
exports.coerce = coerce;
|
|
17442
17531
|
exports.disable = disable;
|
|
@@ -17546,6 +17635,7 @@ var require_debug3 = __commonJS({
|
|
|
17546
17635
|
// ../../node_modules/express/node_modules/debug/src/browser.js
|
|
17547
17636
|
var require_browser3 = __commonJS({
|
|
17548
17637
|
"../../node_modules/express/node_modules/debug/src/browser.js"(exports, module) {
|
|
17638
|
+
init_cjs_shim();
|
|
17549
17639
|
exports = module.exports = require_debug3();
|
|
17550
17640
|
exports.log = log;
|
|
17551
17641
|
exports.formatArgs = formatArgs;
|
|
@@ -17634,6 +17724,7 @@ var require_browser3 = __commonJS({
|
|
|
17634
17724
|
// ../../node_modules/express/node_modules/debug/src/node.js
|
|
17635
17725
|
var require_node3 = __commonJS({
|
|
17636
17726
|
"../../node_modules/express/node_modules/debug/src/node.js"(exports, module) {
|
|
17727
|
+
init_cjs_shim();
|
|
17637
17728
|
var tty = __require("tty");
|
|
17638
17729
|
var util = __require("util");
|
|
17639
17730
|
exports = module.exports = require_debug3();
|
|
@@ -17758,6 +17849,7 @@ var require_node3 = __commonJS({
|
|
|
17758
17849
|
// ../../node_modules/express/node_modules/debug/src/index.js
|
|
17759
17850
|
var require_src4 = __commonJS({
|
|
17760
17851
|
"../../node_modules/express/node_modules/debug/src/index.js"(exports, module) {
|
|
17852
|
+
init_cjs_shim();
|
|
17761
17853
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
17762
17854
|
module.exports = require_browser3();
|
|
17763
17855
|
} else {
|
|
@@ -17770,6 +17862,7 @@ var require_src4 = __commonJS({
|
|
|
17770
17862
|
var require_array_flatten = __commonJS({
|
|
17771
17863
|
"../../node_modules/array-flatten/array-flatten.js"(exports, module) {
|
|
17772
17864
|
"use strict";
|
|
17865
|
+
init_cjs_shim();
|
|
17773
17866
|
module.exports = arrayFlatten;
|
|
17774
17867
|
function flattenWithDepth(array, result, depth) {
|
|
17775
17868
|
for (var i = 0; i < array.length; i++) {
|
|
@@ -17805,9 +17898,10 @@ var require_array_flatten = __commonJS({
|
|
|
17805
17898
|
// ../../node_modules/express/node_modules/path-to-regexp/index.js
|
|
17806
17899
|
var require_path_to_regexp = __commonJS({
|
|
17807
17900
|
"../../node_modules/express/node_modules/path-to-regexp/index.js"(exports, module) {
|
|
17901
|
+
init_cjs_shim();
|
|
17808
17902
|
module.exports = pathtoRegexp;
|
|
17809
17903
|
var MATCHING_GROUP_REGEXP = /\((?!\?)/g;
|
|
17810
|
-
function pathtoRegexp(
|
|
17904
|
+
function pathtoRegexp(path2, keys, options) {
|
|
17811
17905
|
options = options || {};
|
|
17812
17906
|
keys = keys || [];
|
|
17813
17907
|
var strict = options.strict;
|
|
@@ -17818,23 +17912,23 @@ var require_path_to_regexp = __commonJS({
|
|
|
17818
17912
|
var i = 0;
|
|
17819
17913
|
var name = 0;
|
|
17820
17914
|
var m;
|
|
17821
|
-
if (
|
|
17822
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
17915
|
+
if (path2 instanceof RegExp) {
|
|
17916
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path2.source)) {
|
|
17823
17917
|
keys.push({
|
|
17824
17918
|
name: name++,
|
|
17825
17919
|
optional: false,
|
|
17826
17920
|
offset: m.index
|
|
17827
17921
|
});
|
|
17828
17922
|
}
|
|
17829
|
-
return
|
|
17923
|
+
return path2;
|
|
17830
17924
|
}
|
|
17831
|
-
if (Array.isArray(
|
|
17832
|
-
|
|
17925
|
+
if (Array.isArray(path2)) {
|
|
17926
|
+
path2 = path2.map(function(value) {
|
|
17833
17927
|
return pathtoRegexp(value, keys, options).source;
|
|
17834
17928
|
});
|
|
17835
|
-
return new RegExp("(?:" +
|
|
17929
|
+
return new RegExp("(?:" + path2.join("|") + ")", flags);
|
|
17836
17930
|
}
|
|
17837
|
-
|
|
17931
|
+
path2 = ("^" + path2 + (strict ? "" : path2[path2.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match, slash, format, key, capture, star, optional, offset) {
|
|
17838
17932
|
slash = slash || "";
|
|
17839
17933
|
format = format || "";
|
|
17840
17934
|
capture = capture || "([^\\/" + format + "]+?)";
|
|
@@ -17854,10 +17948,10 @@ var require_path_to_regexp = __commonJS({
|
|
|
17854
17948
|
}
|
|
17855
17949
|
return "(.*)";
|
|
17856
17950
|
});
|
|
17857
|
-
while (m = MATCHING_GROUP_REGEXP.exec(
|
|
17951
|
+
while (m = MATCHING_GROUP_REGEXP.exec(path2)) {
|
|
17858
17952
|
var escapeCount = 0;
|
|
17859
17953
|
var index = m.index;
|
|
17860
|
-
while (
|
|
17954
|
+
while (path2.charAt(--index) === "\\") {
|
|
17861
17955
|
escapeCount++;
|
|
17862
17956
|
}
|
|
17863
17957
|
if (escapeCount % 2 === 1) {
|
|
@@ -17873,8 +17967,8 @@ var require_path_to_regexp = __commonJS({
|
|
|
17873
17967
|
}
|
|
17874
17968
|
i++;
|
|
17875
17969
|
}
|
|
17876
|
-
|
|
17877
|
-
return new RegExp(
|
|
17970
|
+
path2 += end ? "$" : path2[path2.length - 1] === "/" ? "" : "(?=\\/|$)";
|
|
17971
|
+
return new RegExp(path2, flags);
|
|
17878
17972
|
}
|
|
17879
17973
|
}
|
|
17880
17974
|
});
|
|
@@ -17883,23 +17977,24 @@ var require_path_to_regexp = __commonJS({
|
|
|
17883
17977
|
var require_layer = __commonJS({
|
|
17884
17978
|
"../../node_modules/express/lib/router/layer.js"(exports, module) {
|
|
17885
17979
|
"use strict";
|
|
17980
|
+
init_cjs_shim();
|
|
17886
17981
|
var pathRegexp = require_path_to_regexp();
|
|
17887
17982
|
var debug = require_src4()("express:router:layer");
|
|
17888
17983
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
17889
17984
|
module.exports = Layer;
|
|
17890
|
-
function Layer(
|
|
17985
|
+
function Layer(path2, options, fn) {
|
|
17891
17986
|
if (!(this instanceof Layer)) {
|
|
17892
|
-
return new Layer(
|
|
17987
|
+
return new Layer(path2, options, fn);
|
|
17893
17988
|
}
|
|
17894
|
-
debug("new %o",
|
|
17989
|
+
debug("new %o", path2);
|
|
17895
17990
|
var opts = options || {};
|
|
17896
17991
|
this.handle = fn;
|
|
17897
17992
|
this.name = fn.name || "<anonymous>";
|
|
17898
17993
|
this.params = void 0;
|
|
17899
17994
|
this.path = void 0;
|
|
17900
|
-
this.regexp = pathRegexp(
|
|
17901
|
-
this.regexp.fast_star =
|
|
17902
|
-
this.regexp.fast_slash =
|
|
17995
|
+
this.regexp = pathRegexp(path2, this.keys = [], opts);
|
|
17996
|
+
this.regexp.fast_star = path2 === "*";
|
|
17997
|
+
this.regexp.fast_slash = path2 === "/" && opts.end === false;
|
|
17903
17998
|
}
|
|
17904
17999
|
Layer.prototype.handle_error = function handle_error(error, req, res, next) {
|
|
17905
18000
|
var fn = this.handle;
|
|
@@ -17923,20 +18018,20 @@ var require_layer = __commonJS({
|
|
|
17923
18018
|
next(err);
|
|
17924
18019
|
}
|
|
17925
18020
|
};
|
|
17926
|
-
Layer.prototype.match = function match(
|
|
18021
|
+
Layer.prototype.match = function match(path2) {
|
|
17927
18022
|
var match2;
|
|
17928
|
-
if (
|
|
18023
|
+
if (path2 != null) {
|
|
17929
18024
|
if (this.regexp.fast_slash) {
|
|
17930
18025
|
this.params = {};
|
|
17931
18026
|
this.path = "";
|
|
17932
18027
|
return true;
|
|
17933
18028
|
}
|
|
17934
18029
|
if (this.regexp.fast_star) {
|
|
17935
|
-
this.params = { "0": decode_param(
|
|
17936
|
-
this.path =
|
|
18030
|
+
this.params = { "0": decode_param(path2) };
|
|
18031
|
+
this.path = path2;
|
|
17937
18032
|
return true;
|
|
17938
18033
|
}
|
|
17939
|
-
match2 = this.regexp.exec(
|
|
18034
|
+
match2 = this.regexp.exec(path2);
|
|
17940
18035
|
}
|
|
17941
18036
|
if (!match2) {
|
|
17942
18037
|
this.params = void 0;
|
|
@@ -17978,6 +18073,7 @@ var require_layer = __commonJS({
|
|
|
17978
18073
|
var require_methods = __commonJS({
|
|
17979
18074
|
"../../node_modules/methods/index.js"(exports, module) {
|
|
17980
18075
|
"use strict";
|
|
18076
|
+
init_cjs_shim();
|
|
17981
18077
|
var http = __require("http");
|
|
17982
18078
|
module.exports = getCurrentNodeMethods() || getBasicNodeMethods();
|
|
17983
18079
|
function getCurrentNodeMethods() {
|
|
@@ -18022,6 +18118,7 @@ var require_methods = __commonJS({
|
|
|
18022
18118
|
var require_route = __commonJS({
|
|
18023
18119
|
"../../node_modules/express/lib/router/route.js"(exports, module) {
|
|
18024
18120
|
"use strict";
|
|
18121
|
+
init_cjs_shim();
|
|
18025
18122
|
var debug = require_src4()("express:router:route");
|
|
18026
18123
|
var flatten = require_array_flatten();
|
|
18027
18124
|
var Layer = require_layer();
|
|
@@ -18029,10 +18126,10 @@ var require_route = __commonJS({
|
|
|
18029
18126
|
var slice = Array.prototype.slice;
|
|
18030
18127
|
var toString = Object.prototype.toString;
|
|
18031
18128
|
module.exports = Route;
|
|
18032
|
-
function Route(
|
|
18033
|
-
this.path =
|
|
18129
|
+
function Route(path2) {
|
|
18130
|
+
this.path = path2;
|
|
18034
18131
|
this.stack = [];
|
|
18035
|
-
debug("new %o",
|
|
18132
|
+
debug("new %o", path2);
|
|
18036
18133
|
this.methods = {};
|
|
18037
18134
|
}
|
|
18038
18135
|
Route.prototype._handles_method = function _handles_method(method) {
|
|
@@ -18133,6 +18230,7 @@ var require_route = __commonJS({
|
|
|
18133
18230
|
// ../../node_modules/utils-merge/index.js
|
|
18134
18231
|
var require_utils_merge = __commonJS({
|
|
18135
18232
|
"../../node_modules/utils-merge/index.js"(exports, module) {
|
|
18233
|
+
init_cjs_shim();
|
|
18136
18234
|
exports = module.exports = function(a, b) {
|
|
18137
18235
|
if (a && b) {
|
|
18138
18236
|
for (var key in b) {
|
|
@@ -18148,6 +18246,7 @@ var require_utils_merge = __commonJS({
|
|
|
18148
18246
|
var require_router = __commonJS({
|
|
18149
18247
|
"../../node_modules/express/lib/router/index.js"(exports, module) {
|
|
18150
18248
|
"use strict";
|
|
18249
|
+
init_cjs_shim();
|
|
18151
18250
|
var Route = require_route();
|
|
18152
18251
|
var Layer = require_layer();
|
|
18153
18252
|
var methods = require_methods();
|
|
@@ -18245,8 +18344,8 @@ var require_router = __commonJS({
|
|
|
18245
18344
|
if (++sync > 100) {
|
|
18246
18345
|
return setImmediate(next, err);
|
|
18247
18346
|
}
|
|
18248
|
-
var
|
|
18249
|
-
if (
|
|
18347
|
+
var path2 = getPathname(req);
|
|
18348
|
+
if (path2 == null) {
|
|
18250
18349
|
return done(layerError);
|
|
18251
18350
|
}
|
|
18252
18351
|
var layer;
|
|
@@ -18254,7 +18353,7 @@ var require_router = __commonJS({
|
|
|
18254
18353
|
var route;
|
|
18255
18354
|
while (match !== true && idx < stack.length) {
|
|
18256
18355
|
layer = stack[idx++];
|
|
18257
|
-
match = matchLayer(layer,
|
|
18356
|
+
match = matchLayer(layer, path2);
|
|
18258
18357
|
route = layer.route;
|
|
18259
18358
|
if (typeof match !== "boolean") {
|
|
18260
18359
|
layerError = layerError || match;
|
|
@@ -18292,18 +18391,18 @@ var require_router = __commonJS({
|
|
|
18292
18391
|
} else if (route) {
|
|
18293
18392
|
layer.handle_request(req, res, next);
|
|
18294
18393
|
} else {
|
|
18295
|
-
trim_prefix(layer, layerError, layerPath,
|
|
18394
|
+
trim_prefix(layer, layerError, layerPath, path2);
|
|
18296
18395
|
}
|
|
18297
18396
|
sync = 0;
|
|
18298
18397
|
});
|
|
18299
18398
|
}
|
|
18300
|
-
function trim_prefix(layer, layerError, layerPath,
|
|
18399
|
+
function trim_prefix(layer, layerError, layerPath, path2) {
|
|
18301
18400
|
if (layerPath.length !== 0) {
|
|
18302
|
-
if (layerPath !==
|
|
18401
|
+
if (layerPath !== path2.slice(0, layerPath.length)) {
|
|
18303
18402
|
next(layerError);
|
|
18304
18403
|
return;
|
|
18305
18404
|
}
|
|
18306
|
-
var c =
|
|
18405
|
+
var c = path2[layerPath.length];
|
|
18307
18406
|
if (c && c !== "/" && c !== ".")
|
|
18308
18407
|
return next(layerError);
|
|
18309
18408
|
debug("trim prefix (%s) from url %s", layerPath, req.url);
|
|
@@ -18383,7 +18482,7 @@ var require_router = __commonJS({
|
|
|
18383
18482
|
};
|
|
18384
18483
|
proto.use = function use(fn) {
|
|
18385
18484
|
var offset = 0;
|
|
18386
|
-
var
|
|
18485
|
+
var path2 = "/";
|
|
18387
18486
|
if (typeof fn !== "function") {
|
|
18388
18487
|
var arg = fn;
|
|
18389
18488
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -18391,7 +18490,7 @@ var require_router = __commonJS({
|
|
|
18391
18490
|
}
|
|
18392
18491
|
if (typeof arg !== "function") {
|
|
18393
18492
|
offset = 1;
|
|
18394
|
-
|
|
18493
|
+
path2 = fn;
|
|
18395
18494
|
}
|
|
18396
18495
|
}
|
|
18397
18496
|
var callbacks = flatten(slice.call(arguments, offset));
|
|
@@ -18403,8 +18502,8 @@ var require_router = __commonJS({
|
|
|
18403
18502
|
if (typeof fn !== "function") {
|
|
18404
18503
|
throw new TypeError("Router.use() requires a middleware function but got a " + gettype(fn));
|
|
18405
18504
|
}
|
|
18406
|
-
debug("use %o %s",
|
|
18407
|
-
var layer = new Layer(
|
|
18505
|
+
debug("use %o %s", path2, fn.name || "<anonymous>");
|
|
18506
|
+
var layer = new Layer(path2, {
|
|
18408
18507
|
sensitive: this.caseSensitive,
|
|
18409
18508
|
strict: false,
|
|
18410
18509
|
end: false
|
|
@@ -18414,9 +18513,9 @@ var require_router = __commonJS({
|
|
|
18414
18513
|
}
|
|
18415
18514
|
return this;
|
|
18416
18515
|
};
|
|
18417
|
-
proto.route = function route(
|
|
18418
|
-
var route2 = new Route(
|
|
18419
|
-
var layer = new Layer(
|
|
18516
|
+
proto.route = function route(path2) {
|
|
18517
|
+
var route2 = new Route(path2);
|
|
18518
|
+
var layer = new Layer(path2, {
|
|
18420
18519
|
sensitive: this.caseSensitive,
|
|
18421
18520
|
strict: this.strict,
|
|
18422
18521
|
end: true
|
|
@@ -18426,8 +18525,8 @@ var require_router = __commonJS({
|
|
|
18426
18525
|
return route2;
|
|
18427
18526
|
};
|
|
18428
18527
|
methods.concat("all").forEach(function(method) {
|
|
18429
|
-
proto[method] = function(
|
|
18430
|
-
var route = this.route(
|
|
18528
|
+
proto[method] = function(path2) {
|
|
18529
|
+
var route = this.route(path2);
|
|
18431
18530
|
route[method].apply(route, slice.call(arguments, 1));
|
|
18432
18531
|
return this;
|
|
18433
18532
|
};
|
|
@@ -18447,14 +18546,14 @@ var require_router = __commonJS({
|
|
|
18447
18546
|
return void 0;
|
|
18448
18547
|
}
|
|
18449
18548
|
}
|
|
18450
|
-
function getProtohost(
|
|
18451
|
-
if (typeof
|
|
18549
|
+
function getProtohost(url2) {
|
|
18550
|
+
if (typeof url2 !== "string" || url2.length === 0 || url2[0] === "/") {
|
|
18452
18551
|
return void 0;
|
|
18453
18552
|
}
|
|
18454
|
-
var searchIndex =
|
|
18455
|
-
var pathLength = searchIndex !== -1 ? searchIndex :
|
|
18456
|
-
var fqdnIndex =
|
|
18457
|
-
return fqdnIndex !== -1 ?
|
|
18553
|
+
var searchIndex = url2.indexOf("?");
|
|
18554
|
+
var pathLength = searchIndex !== -1 ? searchIndex : url2.length;
|
|
18555
|
+
var fqdnIndex = url2.slice(0, pathLength).indexOf("://");
|
|
18556
|
+
return fqdnIndex !== -1 ? url2.substring(0, url2.indexOf("/", 3 + fqdnIndex)) : void 0;
|
|
18458
18557
|
}
|
|
18459
18558
|
function gettype(obj) {
|
|
18460
18559
|
var type = typeof obj;
|
|
@@ -18463,9 +18562,9 @@ var require_router = __commonJS({
|
|
|
18463
18562
|
}
|
|
18464
18563
|
return toString.call(obj).replace(objectRegExp, "$1");
|
|
18465
18564
|
}
|
|
18466
|
-
function matchLayer(layer,
|
|
18565
|
+
function matchLayer(layer, path2) {
|
|
18467
18566
|
try {
|
|
18468
|
-
return layer.match(
|
|
18567
|
+
return layer.match(path2);
|
|
18469
18568
|
} catch (err) {
|
|
18470
18569
|
return err;
|
|
18471
18570
|
}
|
|
@@ -18534,6 +18633,7 @@ var require_router = __commonJS({
|
|
|
18534
18633
|
var require_init = __commonJS({
|
|
18535
18634
|
"../../node_modules/express/lib/middleware/init.js"(exports) {
|
|
18536
18635
|
"use strict";
|
|
18636
|
+
init_cjs_shim();
|
|
18537
18637
|
var setPrototypeOf = require_setprototypeof();
|
|
18538
18638
|
exports.init = function(app) {
|
|
18539
18639
|
return function expressInit(req, res, next) {
|
|
@@ -18555,6 +18655,7 @@ var require_init = __commonJS({
|
|
|
18555
18655
|
var require_query = __commonJS({
|
|
18556
18656
|
"../../node_modules/express/lib/middleware/query.js"(exports, module) {
|
|
18557
18657
|
"use strict";
|
|
18658
|
+
init_cjs_shim();
|
|
18558
18659
|
var merge = require_utils_merge();
|
|
18559
18660
|
var parseUrl = require_parseurl();
|
|
18560
18661
|
var qs = require_lib2();
|
|
@@ -18583,14 +18684,15 @@ var require_query = __commonJS({
|
|
|
18583
18684
|
var require_view = __commonJS({
|
|
18584
18685
|
"../../node_modules/express/lib/view.js"(exports, module) {
|
|
18585
18686
|
"use strict";
|
|
18687
|
+
init_cjs_shim();
|
|
18586
18688
|
var debug = require_src4()("express:view");
|
|
18587
|
-
var
|
|
18689
|
+
var path2 = __require("path");
|
|
18588
18690
|
var fs = __require("fs");
|
|
18589
|
-
var dirname =
|
|
18590
|
-
var basename =
|
|
18591
|
-
var extname =
|
|
18592
|
-
var join =
|
|
18593
|
-
var resolve =
|
|
18691
|
+
var dirname = path2.dirname;
|
|
18692
|
+
var basename = path2.basename;
|
|
18693
|
+
var extname = path2.extname;
|
|
18694
|
+
var join = path2.join;
|
|
18695
|
+
var resolve = path2.resolve;
|
|
18594
18696
|
module.exports = View;
|
|
18595
18697
|
function View(name, options) {
|
|
18596
18698
|
var opts = options || {};
|
|
@@ -18619,17 +18721,17 @@ var require_view = __commonJS({
|
|
|
18619
18721
|
this.path = this.lookup(fileName);
|
|
18620
18722
|
}
|
|
18621
18723
|
View.prototype.lookup = function lookup(name) {
|
|
18622
|
-
var
|
|
18724
|
+
var path3;
|
|
18623
18725
|
var roots = [].concat(this.root);
|
|
18624
18726
|
debug('lookup "%s"', name);
|
|
18625
|
-
for (var i = 0; i < roots.length && !
|
|
18727
|
+
for (var i = 0; i < roots.length && !path3; i++) {
|
|
18626
18728
|
var root = roots[i];
|
|
18627
18729
|
var loc = resolve(root, name);
|
|
18628
18730
|
var dir = dirname(loc);
|
|
18629
18731
|
var file = basename(loc);
|
|
18630
|
-
|
|
18732
|
+
path3 = this.resolve(dir, file);
|
|
18631
18733
|
}
|
|
18632
|
-
return
|
|
18734
|
+
return path3;
|
|
18633
18735
|
};
|
|
18634
18736
|
View.prototype.render = function render(options, callback) {
|
|
18635
18737
|
debug('render "%s"', this.path);
|
|
@@ -18637,21 +18739,21 @@ var require_view = __commonJS({
|
|
|
18637
18739
|
};
|
|
18638
18740
|
View.prototype.resolve = function resolve2(dir, file) {
|
|
18639
18741
|
var ext = this.ext;
|
|
18640
|
-
var
|
|
18641
|
-
var stat = tryStat(
|
|
18742
|
+
var path3 = join(dir, file);
|
|
18743
|
+
var stat = tryStat(path3);
|
|
18642
18744
|
if (stat && stat.isFile()) {
|
|
18643
|
-
return
|
|
18745
|
+
return path3;
|
|
18644
18746
|
}
|
|
18645
|
-
|
|
18646
|
-
stat = tryStat(
|
|
18747
|
+
path3 = join(dir, basename(file, ext), "index" + ext);
|
|
18748
|
+
stat = tryStat(path3);
|
|
18647
18749
|
if (stat && stat.isFile()) {
|
|
18648
|
-
return
|
|
18750
|
+
return path3;
|
|
18649
18751
|
}
|
|
18650
18752
|
};
|
|
18651
|
-
function tryStat(
|
|
18652
|
-
debug('stat "%s"',
|
|
18753
|
+
function tryStat(path3) {
|
|
18754
|
+
debug('stat "%s"', path3);
|
|
18653
18755
|
try {
|
|
18654
|
-
return fs.statSync(
|
|
18756
|
+
return fs.statSync(path3);
|
|
18655
18757
|
} catch (e) {
|
|
18656
18758
|
return void 0;
|
|
18657
18759
|
}
|
|
@@ -18662,6 +18764,7 @@ var require_view = __commonJS({
|
|
|
18662
18764
|
// ../../node_modules/safe-buffer/index.js
|
|
18663
18765
|
var require_safe_buffer = __commonJS({
|
|
18664
18766
|
"../../node_modules/safe-buffer/index.js"(exports, module) {
|
|
18767
|
+
init_cjs_shim();
|
|
18665
18768
|
var buffer = __require("buffer");
|
|
18666
18769
|
var Buffer2 = buffer.Buffer;
|
|
18667
18770
|
function copyProps(src, dst) {
|
|
@@ -18721,6 +18824,7 @@ var require_safe_buffer = __commonJS({
|
|
|
18721
18824
|
var require_content_disposition = __commonJS({
|
|
18722
18825
|
"../../node_modules/content-disposition/index.js"(exports, module) {
|
|
18723
18826
|
"use strict";
|
|
18827
|
+
init_cjs_shim();
|
|
18724
18828
|
module.exports = contentDisposition;
|
|
18725
18829
|
module.exports.parse = parse;
|
|
18726
18830
|
var basename = __require("path").basename;
|
|
@@ -18883,6 +18987,7 @@ var require_content_disposition = __commonJS({
|
|
|
18883
18987
|
// ../../node_modules/send/node_modules/debug/node_modules/ms/index.js
|
|
18884
18988
|
var require_ms4 = __commonJS({
|
|
18885
18989
|
"../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports, module) {
|
|
18990
|
+
init_cjs_shim();
|
|
18886
18991
|
var s = 1e3;
|
|
18887
18992
|
var m = s * 60;
|
|
18888
18993
|
var h = m * 60;
|
|
@@ -18985,6 +19090,7 @@ var require_ms4 = __commonJS({
|
|
|
18985
19090
|
// ../../node_modules/send/node_modules/debug/src/debug.js
|
|
18986
19091
|
var require_debug4 = __commonJS({
|
|
18987
19092
|
"../../node_modules/send/node_modules/debug/src/debug.js"(exports, module) {
|
|
19093
|
+
init_cjs_shim();
|
|
18988
19094
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
18989
19095
|
exports.coerce = coerce;
|
|
18990
19096
|
exports.disable = disable;
|
|
@@ -19094,6 +19200,7 @@ var require_debug4 = __commonJS({
|
|
|
19094
19200
|
// ../../node_modules/send/node_modules/debug/src/browser.js
|
|
19095
19201
|
var require_browser4 = __commonJS({
|
|
19096
19202
|
"../../node_modules/send/node_modules/debug/src/browser.js"(exports, module) {
|
|
19203
|
+
init_cjs_shim();
|
|
19097
19204
|
exports = module.exports = require_debug4();
|
|
19098
19205
|
exports.log = log;
|
|
19099
19206
|
exports.formatArgs = formatArgs;
|
|
@@ -19182,6 +19289,7 @@ var require_browser4 = __commonJS({
|
|
|
19182
19289
|
// ../../node_modules/send/node_modules/debug/src/node.js
|
|
19183
19290
|
var require_node4 = __commonJS({
|
|
19184
19291
|
"../../node_modules/send/node_modules/debug/src/node.js"(exports, module) {
|
|
19292
|
+
init_cjs_shim();
|
|
19185
19293
|
var tty = __require("tty");
|
|
19186
19294
|
var util = __require("util");
|
|
19187
19295
|
exports = module.exports = require_debug4();
|
|
@@ -19306,6 +19414,7 @@ var require_node4 = __commonJS({
|
|
|
19306
19414
|
// ../../node_modules/send/node_modules/debug/src/index.js
|
|
19307
19415
|
var require_src5 = __commonJS({
|
|
19308
19416
|
"../../node_modules/send/node_modules/debug/src/index.js"(exports, module) {
|
|
19417
|
+
init_cjs_shim();
|
|
19309
19418
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
19310
19419
|
module.exports = require_browser4();
|
|
19311
19420
|
} else {
|
|
@@ -19318,6 +19427,7 @@ var require_src5 = __commonJS({
|
|
|
19318
19427
|
var require_etag = __commonJS({
|
|
19319
19428
|
"../../node_modules/etag/index.js"(exports, module) {
|
|
19320
19429
|
"use strict";
|
|
19430
|
+
init_cjs_shim();
|
|
19321
19431
|
module.exports = etag;
|
|
19322
19432
|
var crypto = __require("crypto");
|
|
19323
19433
|
var Stats = __require("fs").Stats;
|
|
@@ -19360,6 +19470,7 @@ var require_etag = __commonJS({
|
|
|
19360
19470
|
var require_fresh = __commonJS({
|
|
19361
19471
|
"../../node_modules/fresh/index.js"(exports, module) {
|
|
19362
19472
|
"use strict";
|
|
19473
|
+
init_cjs_shim();
|
|
19363
19474
|
var CACHE_CONTROL_NO_CACHE_REGEXP = /(?:^|,)\s*?no-cache\s*?(?:,|$)/;
|
|
19364
19475
|
module.exports = fresh;
|
|
19365
19476
|
function fresh(reqHeaders, resHeaders) {
|
|
@@ -19439,7 +19550,8 @@ var require_types = __commonJS({
|
|
|
19439
19550
|
// ../../node_modules/mime/mime.js
|
|
19440
19551
|
var require_mime = __commonJS({
|
|
19441
19552
|
"../../node_modules/mime/mime.js"(exports, module) {
|
|
19442
|
-
|
|
19553
|
+
init_cjs_shim();
|
|
19554
|
+
var path2 = __require("path");
|
|
19443
19555
|
var fs = __require("fs");
|
|
19444
19556
|
function Mime() {
|
|
19445
19557
|
this.types = /* @__PURE__ */ Object.create(null);
|
|
@@ -19469,8 +19581,8 @@ var require_mime = __commonJS({
|
|
|
19469
19581
|
this.define(map);
|
|
19470
19582
|
this._loading = null;
|
|
19471
19583
|
};
|
|
19472
|
-
Mime.prototype.lookup = function(
|
|
19473
|
-
var ext =
|
|
19584
|
+
Mime.prototype.lookup = function(path3, fallback) {
|
|
19585
|
+
var ext = path3.replace(/^.*[\.\/\\]/, "").toLowerCase();
|
|
19474
19586
|
return this.types[ext] || fallback || this.default_type;
|
|
19475
19587
|
};
|
|
19476
19588
|
Mime.prototype.extension = function(mimeType) {
|
|
@@ -19493,6 +19605,7 @@ var require_mime = __commonJS({
|
|
|
19493
19605
|
// ../../node_modules/send/node_modules/ms/index.js
|
|
19494
19606
|
var require_ms5 = __commonJS({
|
|
19495
19607
|
"../../node_modules/send/node_modules/ms/index.js"(exports, module) {
|
|
19608
|
+
init_cjs_shim();
|
|
19496
19609
|
var s = 1e3;
|
|
19497
19610
|
var m = s * 60;
|
|
19498
19611
|
var h = m * 60;
|
|
@@ -19610,6 +19723,7 @@ var require_ms5 = __commonJS({
|
|
|
19610
19723
|
var require_range_parser = __commonJS({
|
|
19611
19724
|
"../../node_modules/range-parser/index.js"(exports, module) {
|
|
19612
19725
|
"use strict";
|
|
19726
|
+
init_cjs_shim();
|
|
19613
19727
|
module.exports = rangeParser;
|
|
19614
19728
|
function rangeParser(size, str, options) {
|
|
19615
19729
|
if (typeof str !== "string") {
|
|
@@ -19691,6 +19805,7 @@ var require_range_parser = __commonJS({
|
|
|
19691
19805
|
var require_send = __commonJS({
|
|
19692
19806
|
"../../node_modules/send/index.js"(exports, module) {
|
|
19693
19807
|
"use strict";
|
|
19808
|
+
init_cjs_shim();
|
|
19694
19809
|
var createError = require_http_errors();
|
|
19695
19810
|
var debug = require_src5()("send");
|
|
19696
19811
|
var deprecate = require_depd()("send");
|
|
@@ -19704,28 +19819,28 @@ var require_send = __commonJS({
|
|
|
19704
19819
|
var ms = require_ms5();
|
|
19705
19820
|
var onFinished = require_on_finished();
|
|
19706
19821
|
var parseRange = require_range_parser();
|
|
19707
|
-
var
|
|
19822
|
+
var path2 = __require("path");
|
|
19708
19823
|
var statuses = require_statuses();
|
|
19709
19824
|
var Stream = __require("stream");
|
|
19710
19825
|
var util = __require("util");
|
|
19711
|
-
var extname =
|
|
19712
|
-
var join =
|
|
19713
|
-
var normalize =
|
|
19714
|
-
var resolve =
|
|
19715
|
-
var sep =
|
|
19826
|
+
var extname = path2.extname;
|
|
19827
|
+
var join = path2.join;
|
|
19828
|
+
var normalize = path2.normalize;
|
|
19829
|
+
var resolve = path2.resolve;
|
|
19830
|
+
var sep = path2.sep;
|
|
19716
19831
|
var BYTES_RANGE_REGEXP = /^ *bytes=/;
|
|
19717
19832
|
var MAX_MAXAGE = 60 * 60 * 24 * 365 * 1e3;
|
|
19718
19833
|
var UP_PATH_REGEXP = /(?:^|[\\/])\.\.(?:[\\/]|$)/;
|
|
19719
19834
|
module.exports = send;
|
|
19720
19835
|
module.exports.mime = mime;
|
|
19721
|
-
function send(req,
|
|
19722
|
-
return new SendStream(req,
|
|
19836
|
+
function send(req, path3, options) {
|
|
19837
|
+
return new SendStream(req, path3, options);
|
|
19723
19838
|
}
|
|
19724
|
-
function SendStream(req,
|
|
19839
|
+
function SendStream(req, path3, options) {
|
|
19725
19840
|
Stream.call(this);
|
|
19726
19841
|
var opts = options || {};
|
|
19727
19842
|
this.options = opts;
|
|
19728
|
-
this.path =
|
|
19843
|
+
this.path = path3;
|
|
19729
19844
|
this.req = req;
|
|
19730
19845
|
this._acceptRanges = opts.acceptRanges !== void 0 ? Boolean(opts.acceptRanges) : true;
|
|
19731
19846
|
this._cacheControl = opts.cacheControl !== void 0 ? Boolean(opts.cacheControl) : true;
|
|
@@ -19771,8 +19886,8 @@ var require_send = __commonJS({
|
|
|
19771
19886
|
this._index = index2;
|
|
19772
19887
|
return this;
|
|
19773
19888
|
}, "send.index: pass index as option");
|
|
19774
|
-
SendStream.prototype.root = function root(
|
|
19775
|
-
this._root = resolve(String(
|
|
19889
|
+
SendStream.prototype.root = function root(path3) {
|
|
19890
|
+
this._root = resolve(String(path3));
|
|
19776
19891
|
debug("root %s", this._root);
|
|
19777
19892
|
return this;
|
|
19778
19893
|
};
|
|
@@ -19885,10 +20000,10 @@ var require_send = __commonJS({
|
|
|
19885
20000
|
var lastModified = this.res.getHeader("Last-Modified");
|
|
19886
20001
|
return parseHttpDate(lastModified) <= parseHttpDate(ifRange);
|
|
19887
20002
|
};
|
|
19888
|
-
SendStream.prototype.redirect = function redirect(
|
|
20003
|
+
SendStream.prototype.redirect = function redirect(path3) {
|
|
19889
20004
|
var res = this.res;
|
|
19890
20005
|
if (hasListeners(this, "directory")) {
|
|
19891
|
-
this.emit("directory", res,
|
|
20006
|
+
this.emit("directory", res, path3);
|
|
19892
20007
|
return;
|
|
19893
20008
|
}
|
|
19894
20009
|
if (this.hasTrailingSlash()) {
|
|
@@ -19908,42 +20023,42 @@ var require_send = __commonJS({
|
|
|
19908
20023
|
SendStream.prototype.pipe = function pipe(res) {
|
|
19909
20024
|
var root = this._root;
|
|
19910
20025
|
this.res = res;
|
|
19911
|
-
var
|
|
19912
|
-
if (
|
|
20026
|
+
var path3 = decode(this.path);
|
|
20027
|
+
if (path3 === -1) {
|
|
19913
20028
|
this.error(400);
|
|
19914
20029
|
return res;
|
|
19915
20030
|
}
|
|
19916
|
-
if (~
|
|
20031
|
+
if (~path3.indexOf("\0")) {
|
|
19917
20032
|
this.error(400);
|
|
19918
20033
|
return res;
|
|
19919
20034
|
}
|
|
19920
20035
|
var parts;
|
|
19921
20036
|
if (root !== null) {
|
|
19922
|
-
if (
|
|
19923
|
-
|
|
20037
|
+
if (path3) {
|
|
20038
|
+
path3 = normalize("." + sep + path3);
|
|
19924
20039
|
}
|
|
19925
|
-
if (UP_PATH_REGEXP.test(
|
|
19926
|
-
debug('malicious path "%s"',
|
|
20040
|
+
if (UP_PATH_REGEXP.test(path3)) {
|
|
20041
|
+
debug('malicious path "%s"', path3);
|
|
19927
20042
|
this.error(403);
|
|
19928
20043
|
return res;
|
|
19929
20044
|
}
|
|
19930
|
-
parts =
|
|
19931
|
-
|
|
20045
|
+
parts = path3.split(sep);
|
|
20046
|
+
path3 = normalize(join(root, path3));
|
|
19932
20047
|
} else {
|
|
19933
|
-
if (UP_PATH_REGEXP.test(
|
|
19934
|
-
debug('malicious path "%s"',
|
|
20048
|
+
if (UP_PATH_REGEXP.test(path3)) {
|
|
20049
|
+
debug('malicious path "%s"', path3);
|
|
19935
20050
|
this.error(403);
|
|
19936
20051
|
return res;
|
|
19937
20052
|
}
|
|
19938
|
-
parts = normalize(
|
|
19939
|
-
|
|
20053
|
+
parts = normalize(path3).split(sep);
|
|
20054
|
+
path3 = resolve(path3);
|
|
19940
20055
|
}
|
|
19941
20056
|
if (containsDotFile(parts)) {
|
|
19942
20057
|
var access = this._dotfiles;
|
|
19943
20058
|
if (access === void 0) {
|
|
19944
20059
|
access = parts[parts.length - 1][0] === "." ? this._hidden ? "allow" : "ignore" : "allow";
|
|
19945
20060
|
}
|
|
19946
|
-
debug('%s dotfile "%s"', access,
|
|
20061
|
+
debug('%s dotfile "%s"', access, path3);
|
|
19947
20062
|
switch (access) {
|
|
19948
20063
|
case "allow":
|
|
19949
20064
|
break;
|
|
@@ -19957,13 +20072,13 @@ var require_send = __commonJS({
|
|
|
19957
20072
|
}
|
|
19958
20073
|
}
|
|
19959
20074
|
if (this._index.length && this.hasTrailingSlash()) {
|
|
19960
|
-
this.sendIndex(
|
|
20075
|
+
this.sendIndex(path3);
|
|
19961
20076
|
return res;
|
|
19962
20077
|
}
|
|
19963
|
-
this.sendFile(
|
|
20078
|
+
this.sendFile(path3);
|
|
19964
20079
|
return res;
|
|
19965
20080
|
};
|
|
19966
|
-
SendStream.prototype.send = function send2(
|
|
20081
|
+
SendStream.prototype.send = function send2(path3, stat) {
|
|
19967
20082
|
var len = stat.size;
|
|
19968
20083
|
var options = this.options;
|
|
19969
20084
|
var opts = {};
|
|
@@ -19975,9 +20090,9 @@ var require_send = __commonJS({
|
|
|
19975
20090
|
this.headersAlreadySent();
|
|
19976
20091
|
return;
|
|
19977
20092
|
}
|
|
19978
|
-
debug('pipe "%s"',
|
|
19979
|
-
this.setHeader(
|
|
19980
|
-
this.type(
|
|
20093
|
+
debug('pipe "%s"', path3);
|
|
20094
|
+
this.setHeader(path3, stat);
|
|
20095
|
+
this.type(path3);
|
|
19981
20096
|
if (this.isConditionalGET()) {
|
|
19982
20097
|
if (this.isPreconditionFailure()) {
|
|
19983
20098
|
this.error(412);
|
|
@@ -20027,28 +20142,28 @@ var require_send = __commonJS({
|
|
|
20027
20142
|
res.end();
|
|
20028
20143
|
return;
|
|
20029
20144
|
}
|
|
20030
|
-
this.stream(
|
|
20145
|
+
this.stream(path3, opts);
|
|
20031
20146
|
};
|
|
20032
|
-
SendStream.prototype.sendFile = function sendFile(
|
|
20147
|
+
SendStream.prototype.sendFile = function sendFile(path3) {
|
|
20033
20148
|
var i = 0;
|
|
20034
20149
|
var self2 = this;
|
|
20035
|
-
debug('stat "%s"',
|
|
20036
|
-
fs.stat(
|
|
20037
|
-
if (err && err.code === "ENOENT" && !extname(
|
|
20150
|
+
debug('stat "%s"', path3);
|
|
20151
|
+
fs.stat(path3, function onstat(err, stat) {
|
|
20152
|
+
if (err && err.code === "ENOENT" && !extname(path3) && path3[path3.length - 1] !== sep) {
|
|
20038
20153
|
return next(err);
|
|
20039
20154
|
}
|
|
20040
20155
|
if (err)
|
|
20041
20156
|
return self2.onStatError(err);
|
|
20042
20157
|
if (stat.isDirectory())
|
|
20043
|
-
return self2.redirect(
|
|
20044
|
-
self2.emit("file",
|
|
20045
|
-
self2.send(
|
|
20158
|
+
return self2.redirect(path3);
|
|
20159
|
+
self2.emit("file", path3, stat);
|
|
20160
|
+
self2.send(path3, stat);
|
|
20046
20161
|
});
|
|
20047
20162
|
function next(err) {
|
|
20048
20163
|
if (self2._extensions.length <= i) {
|
|
20049
20164
|
return err ? self2.onStatError(err) : self2.error(404);
|
|
20050
20165
|
}
|
|
20051
|
-
var p =
|
|
20166
|
+
var p = path3 + "." + self2._extensions[i++];
|
|
20052
20167
|
debug('stat "%s"', p);
|
|
20053
20168
|
fs.stat(p, function(err2, stat) {
|
|
20054
20169
|
if (err2)
|
|
@@ -20060,7 +20175,7 @@ var require_send = __commonJS({
|
|
|
20060
20175
|
});
|
|
20061
20176
|
}
|
|
20062
20177
|
};
|
|
20063
|
-
SendStream.prototype.sendIndex = function sendIndex(
|
|
20178
|
+
SendStream.prototype.sendIndex = function sendIndex(path3) {
|
|
20064
20179
|
var i = -1;
|
|
20065
20180
|
var self2 = this;
|
|
20066
20181
|
function next(err) {
|
|
@@ -20069,7 +20184,7 @@ var require_send = __commonJS({
|
|
|
20069
20184
|
return self2.onStatError(err);
|
|
20070
20185
|
return self2.error(404);
|
|
20071
20186
|
}
|
|
20072
|
-
var p = join(
|
|
20187
|
+
var p = join(path3, self2._index[i]);
|
|
20073
20188
|
debug('stat "%s"', p);
|
|
20074
20189
|
fs.stat(p, function(err2, stat) {
|
|
20075
20190
|
if (err2)
|
|
@@ -20082,10 +20197,10 @@ var require_send = __commonJS({
|
|
|
20082
20197
|
}
|
|
20083
20198
|
next();
|
|
20084
20199
|
};
|
|
20085
|
-
SendStream.prototype.stream = function stream(
|
|
20200
|
+
SendStream.prototype.stream = function stream(path3, options) {
|
|
20086
20201
|
var self2 = this;
|
|
20087
20202
|
var res = this.res;
|
|
20088
|
-
var stream2 = fs.createReadStream(
|
|
20203
|
+
var stream2 = fs.createReadStream(path3, options);
|
|
20089
20204
|
this.emit("stream", stream2);
|
|
20090
20205
|
stream2.pipe(res);
|
|
20091
20206
|
function cleanup() {
|
|
@@ -20100,11 +20215,11 @@ var require_send = __commonJS({
|
|
|
20100
20215
|
self2.emit("end");
|
|
20101
20216
|
});
|
|
20102
20217
|
};
|
|
20103
|
-
SendStream.prototype.type = function type(
|
|
20218
|
+
SendStream.prototype.type = function type(path3) {
|
|
20104
20219
|
var res = this.res;
|
|
20105
20220
|
if (res.getHeader("Content-Type"))
|
|
20106
20221
|
return;
|
|
20107
|
-
var type2 = mime.lookup(
|
|
20222
|
+
var type2 = mime.lookup(path3);
|
|
20108
20223
|
if (!type2) {
|
|
20109
20224
|
debug("no content-type");
|
|
20110
20225
|
return;
|
|
@@ -20113,9 +20228,9 @@ var require_send = __commonJS({
|
|
|
20113
20228
|
debug("content-type %s", type2);
|
|
20114
20229
|
res.setHeader("Content-Type", type2 + (charset ? "; charset=" + charset : ""));
|
|
20115
20230
|
};
|
|
20116
|
-
SendStream.prototype.setHeader = function setHeader(
|
|
20231
|
+
SendStream.prototype.setHeader = function setHeader(path3, stat) {
|
|
20117
20232
|
var res = this.res;
|
|
20118
|
-
this.emit("headers", res,
|
|
20233
|
+
this.emit("headers", res, path3, stat);
|
|
20119
20234
|
if (this._acceptRanges && !res.getHeader("Accept-Ranges")) {
|
|
20120
20235
|
debug("accept ranges");
|
|
20121
20236
|
res.setHeader("Accept-Ranges", "bytes");
|
|
@@ -20174,9 +20289,9 @@ var require_send = __commonJS({
|
|
|
20174
20289
|
}
|
|
20175
20290
|
return err instanceof Error ? createError(status, err, { expose: false }) : createError(status, err);
|
|
20176
20291
|
}
|
|
20177
|
-
function decode(
|
|
20292
|
+
function decode(path3) {
|
|
20178
20293
|
try {
|
|
20179
|
-
return decodeURIComponent(
|
|
20294
|
+
return decodeURIComponent(path3);
|
|
20180
20295
|
} catch (err) {
|
|
20181
20296
|
return -1;
|
|
20182
20297
|
}
|
|
@@ -20245,6 +20360,7 @@ var require_send = __commonJS({
|
|
|
20245
20360
|
var require_forwarded = __commonJS({
|
|
20246
20361
|
"../../node_modules/forwarded/index.js"(exports, module) {
|
|
20247
20362
|
"use strict";
|
|
20363
|
+
init_cjs_shim();
|
|
20248
20364
|
module.exports = forwarded;
|
|
20249
20365
|
function forwarded(req) {
|
|
20250
20366
|
if (!req) {
|
|
@@ -20291,6 +20407,7 @@ var require_forwarded = __commonJS({
|
|
|
20291
20407
|
// ../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js
|
|
20292
20408
|
var require_ipaddr = __commonJS({
|
|
20293
20409
|
"../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js"(exports, module) {
|
|
20410
|
+
init_cjs_shim();
|
|
20294
20411
|
(function() {
|
|
20295
20412
|
var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
|
|
20296
20413
|
ipaddr = {};
|
|
@@ -20914,6 +21031,7 @@ var require_ipaddr = __commonJS({
|
|
|
20914
21031
|
var require_proxy_addr = __commonJS({
|
|
20915
21032
|
"../../node_modules/proxy-addr/index.js"(exports, module) {
|
|
20916
21033
|
"use strict";
|
|
21034
|
+
init_cjs_shim();
|
|
20917
21035
|
module.exports = proxyaddr;
|
|
20918
21036
|
module.exports.all = alladdrs;
|
|
20919
21037
|
module.exports.compile = compile;
|
|
@@ -21076,6 +21194,7 @@ var require_proxy_addr = __commonJS({
|
|
|
21076
21194
|
var require_utils2 = __commonJS({
|
|
21077
21195
|
"../../node_modules/express/lib/utils.js"(exports) {
|
|
21078
21196
|
"use strict";
|
|
21197
|
+
init_cjs_shim();
|
|
21079
21198
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
21080
21199
|
var contentDisposition = require_content_disposition();
|
|
21081
21200
|
var contentType = require_content_type();
|
|
@@ -21088,12 +21207,12 @@ var require_utils2 = __commonJS({
|
|
|
21088
21207
|
var querystring = __require("querystring");
|
|
21089
21208
|
exports.etag = createETagGenerator({ weak: false });
|
|
21090
21209
|
exports.wetag = createETagGenerator({ weak: true });
|
|
21091
|
-
exports.isAbsolute = function(
|
|
21092
|
-
if ("/" ===
|
|
21210
|
+
exports.isAbsolute = function(path2) {
|
|
21211
|
+
if ("/" === path2[0])
|
|
21093
21212
|
return true;
|
|
21094
|
-
if (":" ===
|
|
21213
|
+
if (":" === path2[1] && ("\\" === path2[2] || "/" === path2[2]))
|
|
21095
21214
|
return true;
|
|
21096
|
-
if ("\\\\" ===
|
|
21215
|
+
if ("\\\\" === path2.substring(0, 2))
|
|
21097
21216
|
return true;
|
|
21098
21217
|
};
|
|
21099
21218
|
exports.flatten = deprecate.function(
|
|
@@ -21217,6 +21336,7 @@ var require_utils2 = __commonJS({
|
|
|
21217
21336
|
var require_application = __commonJS({
|
|
21218
21337
|
"../../node_modules/express/lib/application.js"(exports, module) {
|
|
21219
21338
|
"use strict";
|
|
21339
|
+
init_cjs_shim();
|
|
21220
21340
|
var finalhandler = require_finalhandler();
|
|
21221
21341
|
var Router2 = require_router();
|
|
21222
21342
|
var methods = require_methods();
|
|
@@ -21306,7 +21426,7 @@ var require_application = __commonJS({
|
|
|
21306
21426
|
};
|
|
21307
21427
|
app.use = function use(fn) {
|
|
21308
21428
|
var offset = 0;
|
|
21309
|
-
var
|
|
21429
|
+
var path2 = "/";
|
|
21310
21430
|
if (typeof fn !== "function") {
|
|
21311
21431
|
var arg = fn;
|
|
21312
21432
|
while (Array.isArray(arg) && arg.length !== 0) {
|
|
@@ -21314,7 +21434,7 @@ var require_application = __commonJS({
|
|
|
21314
21434
|
}
|
|
21315
21435
|
if (typeof arg !== "function") {
|
|
21316
21436
|
offset = 1;
|
|
21317
|
-
|
|
21437
|
+
path2 = fn;
|
|
21318
21438
|
}
|
|
21319
21439
|
}
|
|
21320
21440
|
var fns = flatten(slice.call(arguments, offset));
|
|
@@ -21325,12 +21445,12 @@ var require_application = __commonJS({
|
|
|
21325
21445
|
var router = this._router;
|
|
21326
21446
|
fns.forEach(function(fn2) {
|
|
21327
21447
|
if (!fn2 || !fn2.handle || !fn2.set) {
|
|
21328
|
-
return router.use(
|
|
21448
|
+
return router.use(path2, fn2);
|
|
21329
21449
|
}
|
|
21330
|
-
debug(".use app under %s",
|
|
21331
|
-
fn2.mountpath =
|
|
21450
|
+
debug(".use app under %s", path2);
|
|
21451
|
+
fn2.mountpath = path2;
|
|
21332
21452
|
fn2.parent = this;
|
|
21333
|
-
router.use(
|
|
21453
|
+
router.use(path2, function mounted_app(req, res, next) {
|
|
21334
21454
|
var orig = req.app;
|
|
21335
21455
|
fn2.handle(req, res, function(err) {
|
|
21336
21456
|
setPrototypeOf(req, orig.request);
|
|
@@ -21342,9 +21462,9 @@ var require_application = __commonJS({
|
|
|
21342
21462
|
}, this);
|
|
21343
21463
|
return this;
|
|
21344
21464
|
};
|
|
21345
|
-
app.route = function route(
|
|
21465
|
+
app.route = function route(path2) {
|
|
21346
21466
|
this.lazyrouter();
|
|
21347
|
-
return this._router.route(
|
|
21467
|
+
return this._router.route(path2);
|
|
21348
21468
|
};
|
|
21349
21469
|
app.engine = function engine(ext, fn) {
|
|
21350
21470
|
if (typeof fn !== "function") {
|
|
@@ -21395,7 +21515,7 @@ var require_application = __commonJS({
|
|
|
21395
21515
|
}
|
|
21396
21516
|
return this;
|
|
21397
21517
|
};
|
|
21398
|
-
app.path = function
|
|
21518
|
+
app.path = function path2() {
|
|
21399
21519
|
return this.parent ? this.parent.path() + this.mountpath : "";
|
|
21400
21520
|
};
|
|
21401
21521
|
app.enabled = function enabled(setting) {
|
|
@@ -21411,19 +21531,19 @@ var require_application = __commonJS({
|
|
|
21411
21531
|
return this.set(setting, false);
|
|
21412
21532
|
};
|
|
21413
21533
|
methods.forEach(function(method) {
|
|
21414
|
-
app[method] = function(
|
|
21534
|
+
app[method] = function(path2) {
|
|
21415
21535
|
if (method === "get" && arguments.length === 1) {
|
|
21416
|
-
return this.set(
|
|
21536
|
+
return this.set(path2);
|
|
21417
21537
|
}
|
|
21418
21538
|
this.lazyrouter();
|
|
21419
|
-
var route = this._router.route(
|
|
21539
|
+
var route = this._router.route(path2);
|
|
21420
21540
|
route[method].apply(route, slice.call(arguments, 1));
|
|
21421
21541
|
return this;
|
|
21422
21542
|
};
|
|
21423
21543
|
});
|
|
21424
|
-
app.all = function all(
|
|
21544
|
+
app.all = function all(path2) {
|
|
21425
21545
|
this.lazyrouter();
|
|
21426
|
-
var route = this._router.route(
|
|
21546
|
+
var route = this._router.route(path2);
|
|
21427
21547
|
var args = slice.call(arguments, 1);
|
|
21428
21548
|
for (var i = 0; i < methods.length; i++) {
|
|
21429
21549
|
route[methods[i]].apply(route, args);
|
|
@@ -21494,6 +21614,7 @@ var require_application = __commonJS({
|
|
|
21494
21614
|
var require_charset = __commonJS({
|
|
21495
21615
|
"../../node_modules/negotiator/lib/charset.js"(exports, module) {
|
|
21496
21616
|
"use strict";
|
|
21617
|
+
init_cjs_shim();
|
|
21497
21618
|
module.exports = preferredCharsets;
|
|
21498
21619
|
module.exports.preferredCharsets = preferredCharsets;
|
|
21499
21620
|
var simpleCharsetRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
|
|
@@ -21582,6 +21703,7 @@ var require_charset = __commonJS({
|
|
|
21582
21703
|
var require_encoding = __commonJS({
|
|
21583
21704
|
"../../node_modules/negotiator/lib/encoding.js"(exports, module) {
|
|
21584
21705
|
"use strict";
|
|
21706
|
+
init_cjs_shim();
|
|
21585
21707
|
module.exports = preferredEncodings;
|
|
21586
21708
|
module.exports.preferredEncodings = preferredEncodings;
|
|
21587
21709
|
var simpleEncodingRegExp = /^\s*([^\s;]+)\s*(?:;(.*))?$/;
|
|
@@ -21681,6 +21803,7 @@ var require_encoding = __commonJS({
|
|
|
21681
21803
|
var require_language = __commonJS({
|
|
21682
21804
|
"../../node_modules/negotiator/lib/language.js"(exports, module) {
|
|
21683
21805
|
"use strict";
|
|
21806
|
+
init_cjs_shim();
|
|
21684
21807
|
module.exports = preferredLanguages;
|
|
21685
21808
|
module.exports.preferredLanguages = preferredLanguages;
|
|
21686
21809
|
var simpleLanguageRegExp = /^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;
|
|
@@ -21780,6 +21903,7 @@ var require_language = __commonJS({
|
|
|
21780
21903
|
var require_mediaType = __commonJS({
|
|
21781
21904
|
"../../node_modules/negotiator/lib/mediaType.js"(exports, module) {
|
|
21782
21905
|
"use strict";
|
|
21906
|
+
init_cjs_shim();
|
|
21783
21907
|
module.exports = preferredMediaTypes;
|
|
21784
21908
|
module.exports.preferredMediaTypes = preferredMediaTypes;
|
|
21785
21909
|
var simpleMediaTypeRegExp = /^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;
|
|
@@ -21943,6 +22067,7 @@ var require_mediaType = __commonJS({
|
|
|
21943
22067
|
var require_negotiator = __commonJS({
|
|
21944
22068
|
"../../node_modules/negotiator/index.js"(exports, module) {
|
|
21945
22069
|
"use strict";
|
|
22070
|
+
init_cjs_shim();
|
|
21946
22071
|
var preferredCharsets = require_charset();
|
|
21947
22072
|
var preferredEncodings = require_encoding();
|
|
21948
22073
|
var preferredLanguages = require_language();
|
|
@@ -30522,6 +30647,7 @@ var require_db2 = __commonJS({
|
|
|
30522
30647
|
// ../../node_modules/express/node_modules/mime-db/index.js
|
|
30523
30648
|
var require_mime_db2 = __commonJS({
|
|
30524
30649
|
"../../node_modules/express/node_modules/mime-db/index.js"(exports, module) {
|
|
30650
|
+
init_cjs_shim();
|
|
30525
30651
|
module.exports = require_db2();
|
|
30526
30652
|
}
|
|
30527
30653
|
});
|
|
@@ -30530,6 +30656,7 @@ var require_mime_db2 = __commonJS({
|
|
|
30530
30656
|
var require_mime_types2 = __commonJS({
|
|
30531
30657
|
"../../node_modules/express/node_modules/mime-types/index.js"(exports) {
|
|
30532
30658
|
"use strict";
|
|
30659
|
+
init_cjs_shim();
|
|
30533
30660
|
var db = require_mime_db2();
|
|
30534
30661
|
var extname = __require("path").extname;
|
|
30535
30662
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
@@ -30582,11 +30709,11 @@ var require_mime_types2 = __commonJS({
|
|
|
30582
30709
|
}
|
|
30583
30710
|
return exts[0];
|
|
30584
30711
|
}
|
|
30585
|
-
function lookup(
|
|
30586
|
-
if (!
|
|
30712
|
+
function lookup(path2) {
|
|
30713
|
+
if (!path2 || typeof path2 !== "string") {
|
|
30587
30714
|
return false;
|
|
30588
30715
|
}
|
|
30589
|
-
var extension2 = extname("x." +
|
|
30716
|
+
var extension2 = extname("x." + path2).toLowerCase().substr(1);
|
|
30590
30717
|
if (!extension2) {
|
|
30591
30718
|
return false;
|
|
30592
30719
|
}
|
|
@@ -30621,6 +30748,7 @@ var require_mime_types2 = __commonJS({
|
|
|
30621
30748
|
var require_accepts = __commonJS({
|
|
30622
30749
|
"../../node_modules/express/node_modules/accepts/index.js"(exports, module) {
|
|
30623
30750
|
"use strict";
|
|
30751
|
+
init_cjs_shim();
|
|
30624
30752
|
var Negotiator = require_negotiator();
|
|
30625
30753
|
var mime = require_mime_types2();
|
|
30626
30754
|
module.exports = Accepts;
|
|
@@ -30702,6 +30830,7 @@ var require_accepts = __commonJS({
|
|
|
30702
30830
|
var require_request = __commonJS({
|
|
30703
30831
|
"../../node_modules/express/lib/request.js"(exports, module) {
|
|
30704
30832
|
"use strict";
|
|
30833
|
+
init_cjs_shim();
|
|
30705
30834
|
var accepts = require_accepts();
|
|
30706
30835
|
var deprecate = require_depd()("express");
|
|
30707
30836
|
var isIP = __require("net").isIP;
|
|
@@ -30818,7 +30947,7 @@ var require_request = __commonJS({
|
|
|
30818
30947
|
var subdomains2 = !isIP(hostname) ? hostname.split(".").reverse() : [hostname];
|
|
30819
30948
|
return subdomains2.slice(offset);
|
|
30820
30949
|
});
|
|
30821
|
-
defineGetter(req, "path", function
|
|
30950
|
+
defineGetter(req, "path", function path2() {
|
|
30822
30951
|
return parse(this).pathname;
|
|
30823
30952
|
});
|
|
30824
30953
|
defineGetter(req, "hostname", function hostname() {
|
|
@@ -30872,6 +31001,7 @@ var require_request = __commonJS({
|
|
|
30872
31001
|
// ../../node_modules/cookie-signature/index.js
|
|
30873
31002
|
var require_cookie_signature = __commonJS({
|
|
30874
31003
|
"../../node_modules/cookie-signature/index.js"(exports) {
|
|
31004
|
+
init_cjs_shim();
|
|
30875
31005
|
var crypto = __require("crypto");
|
|
30876
31006
|
exports.sign = function(val, secret) {
|
|
30877
31007
|
if ("string" != typeof val)
|
|
@@ -30898,6 +31028,7 @@ var require_cookie_signature = __commonJS({
|
|
|
30898
31028
|
var require_cookie = __commonJS({
|
|
30899
31029
|
"../../node_modules/express/node_modules/cookie/index.js"(exports) {
|
|
30900
31030
|
"use strict";
|
|
31031
|
+
init_cjs_shim();
|
|
30901
31032
|
exports.parse = parse;
|
|
30902
31033
|
exports.serialize = serialize;
|
|
30903
31034
|
var __toString = Object.prototype.toString;
|
|
@@ -31040,6 +31171,7 @@ var require_cookie = __commonJS({
|
|
|
31040
31171
|
var require_vary = __commonJS({
|
|
31041
31172
|
"../../node_modules/vary/index.js"(exports, module) {
|
|
31042
31173
|
"use strict";
|
|
31174
|
+
init_cjs_shim();
|
|
31043
31175
|
module.exports = vary;
|
|
31044
31176
|
module.exports.append = append;
|
|
31045
31177
|
var FIELD_NAME_REGEXP = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
@@ -31113,6 +31245,7 @@ var require_vary = __commonJS({
|
|
|
31113
31245
|
var require_response = __commonJS({
|
|
31114
31246
|
"../../node_modules/express/lib/response.js"(exports, module) {
|
|
31115
31247
|
"use strict";
|
|
31248
|
+
init_cjs_shim();
|
|
31116
31249
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
31117
31250
|
var contentDisposition = require_content_disposition();
|
|
31118
31251
|
var createError = require_http_errors();
|
|
@@ -31122,7 +31255,7 @@ var require_response = __commonJS({
|
|
|
31122
31255
|
var http = __require("http");
|
|
31123
31256
|
var isAbsolute = require_utils2().isAbsolute;
|
|
31124
31257
|
var onFinished = require_on_finished();
|
|
31125
|
-
var
|
|
31258
|
+
var path2 = __require("path");
|
|
31126
31259
|
var statuses = require_statuses();
|
|
31127
31260
|
var merge = require_utils_merge();
|
|
31128
31261
|
var sign = require_cookie_signature().sign;
|
|
@@ -31131,9 +31264,9 @@ var require_response = __commonJS({
|
|
|
31131
31264
|
var setCharset = require_utils2().setCharset;
|
|
31132
31265
|
var cookie = require_cookie();
|
|
31133
31266
|
var send = require_send();
|
|
31134
|
-
var extname =
|
|
31267
|
+
var extname = path2.extname;
|
|
31135
31268
|
var mime = send.mime;
|
|
31136
|
-
var resolve =
|
|
31269
|
+
var resolve = path2.resolve;
|
|
31137
31270
|
var vary = require_vary();
|
|
31138
31271
|
var res = Object.create(http.ServerResponse.prototype);
|
|
31139
31272
|
module.exports = res;
|
|
@@ -31311,26 +31444,26 @@ var require_response = __commonJS({
|
|
|
31311
31444
|
this.type("txt");
|
|
31312
31445
|
return this.send(body);
|
|
31313
31446
|
};
|
|
31314
|
-
res.sendFile = function sendFile(
|
|
31447
|
+
res.sendFile = function sendFile(path3, options, callback) {
|
|
31315
31448
|
var done = callback;
|
|
31316
31449
|
var req = this.req;
|
|
31317
31450
|
var res2 = this;
|
|
31318
31451
|
var next = req.next;
|
|
31319
31452
|
var opts = options || {};
|
|
31320
|
-
if (!
|
|
31453
|
+
if (!path3) {
|
|
31321
31454
|
throw new TypeError("path argument is required to res.sendFile");
|
|
31322
31455
|
}
|
|
31323
|
-
if (typeof
|
|
31456
|
+
if (typeof path3 !== "string") {
|
|
31324
31457
|
throw new TypeError("path must be a string to res.sendFile");
|
|
31325
31458
|
}
|
|
31326
31459
|
if (typeof options === "function") {
|
|
31327
31460
|
done = options;
|
|
31328
31461
|
opts = {};
|
|
31329
31462
|
}
|
|
31330
|
-
if (!opts.root && !isAbsolute(
|
|
31463
|
+
if (!opts.root && !isAbsolute(path3)) {
|
|
31331
31464
|
throw new TypeError("path must be absolute or specify root to res.sendFile");
|
|
31332
31465
|
}
|
|
31333
|
-
var pathname = encodeURI(
|
|
31466
|
+
var pathname = encodeURI(path3);
|
|
31334
31467
|
var file = send(req, pathname, opts);
|
|
31335
31468
|
sendfile(res2, file, opts, function(err) {
|
|
31336
31469
|
if (done)
|
|
@@ -31342,7 +31475,7 @@ var require_response = __commonJS({
|
|
|
31342
31475
|
}
|
|
31343
31476
|
});
|
|
31344
31477
|
};
|
|
31345
|
-
res.sendfile = function(
|
|
31478
|
+
res.sendfile = function(path3, options, callback) {
|
|
31346
31479
|
var done = callback;
|
|
31347
31480
|
var req = this.req;
|
|
31348
31481
|
var res2 = this;
|
|
@@ -31352,7 +31485,7 @@ var require_response = __commonJS({
|
|
|
31352
31485
|
done = options;
|
|
31353
31486
|
opts = {};
|
|
31354
31487
|
}
|
|
31355
|
-
var file = send(req,
|
|
31488
|
+
var file = send(req, path3, opts);
|
|
31356
31489
|
sendfile(res2, file, opts, function(err) {
|
|
31357
31490
|
if (done)
|
|
31358
31491
|
return done(err);
|
|
@@ -31367,7 +31500,7 @@ var require_response = __commonJS({
|
|
|
31367
31500
|
res.sendfile,
|
|
31368
31501
|
"res.sendfile: Use res.sendFile instead"
|
|
31369
31502
|
);
|
|
31370
|
-
res.download = function download(
|
|
31503
|
+
res.download = function download(path3, filename, options, callback) {
|
|
31371
31504
|
var done = callback;
|
|
31372
31505
|
var name = filename;
|
|
31373
31506
|
var opts = options || null;
|
|
@@ -31384,7 +31517,7 @@ var require_response = __commonJS({
|
|
|
31384
31517
|
opts = filename;
|
|
31385
31518
|
}
|
|
31386
31519
|
var headers = {
|
|
31387
|
-
"Content-Disposition": contentDisposition(name ||
|
|
31520
|
+
"Content-Disposition": contentDisposition(name || path3)
|
|
31388
31521
|
};
|
|
31389
31522
|
if (opts && opts.headers) {
|
|
31390
31523
|
var keys = Object.keys(opts.headers);
|
|
@@ -31397,7 +31530,7 @@ var require_response = __commonJS({
|
|
|
31397
31530
|
}
|
|
31398
31531
|
opts = Object.create(opts);
|
|
31399
31532
|
opts.headers = headers;
|
|
31400
|
-
var fullPath = !opts.root ? resolve(
|
|
31533
|
+
var fullPath = !opts.root ? resolve(path3) : path3;
|
|
31401
31534
|
return this.sendFile(fullPath, opts, done);
|
|
31402
31535
|
};
|
|
31403
31536
|
res.contentType = res.type = function contentType(type) {
|
|
@@ -31493,15 +31626,15 @@ var require_response = __commonJS({
|
|
|
31493
31626
|
this.append("Set-Cookie", cookie.serialize(name, String(val), opts));
|
|
31494
31627
|
return this;
|
|
31495
31628
|
};
|
|
31496
|
-
res.location = function location2(
|
|
31497
|
-
var loc =
|
|
31498
|
-
if (
|
|
31629
|
+
res.location = function location2(url2) {
|
|
31630
|
+
var loc = url2;
|
|
31631
|
+
if (url2 === "back") {
|
|
31499
31632
|
loc = this.req.get("Referrer") || "/";
|
|
31500
31633
|
}
|
|
31501
31634
|
return this.set("Location", encodeUrl(loc));
|
|
31502
31635
|
};
|
|
31503
|
-
res.redirect = function redirect(
|
|
31504
|
-
var address =
|
|
31636
|
+
res.redirect = function redirect(url2) {
|
|
31637
|
+
var address = url2;
|
|
31505
31638
|
var body;
|
|
31506
31639
|
var status = 302;
|
|
31507
31640
|
if (arguments.length === 2) {
|
|
@@ -31658,12 +31791,13 @@ var require_response = __commonJS({
|
|
|
31658
31791
|
var require_serve_static = __commonJS({
|
|
31659
31792
|
"../../node_modules/serve-static/index.js"(exports, module) {
|
|
31660
31793
|
"use strict";
|
|
31794
|
+
init_cjs_shim();
|
|
31661
31795
|
var encodeUrl = require_encodeurl();
|
|
31662
31796
|
var escapeHtml = require_escape_html();
|
|
31663
31797
|
var parseUrl = require_parseurl();
|
|
31664
31798
|
var resolve = __require("path").resolve;
|
|
31665
31799
|
var send = require_send();
|
|
31666
|
-
var
|
|
31800
|
+
var url2 = __require("url");
|
|
31667
31801
|
module.exports = serveStatic;
|
|
31668
31802
|
module.exports.mime = send.mime;
|
|
31669
31803
|
function serveStatic(root, options) {
|
|
@@ -31696,11 +31830,11 @@ var require_serve_static = __commonJS({
|
|
|
31696
31830
|
}
|
|
31697
31831
|
var forwardError = !fallthrough;
|
|
31698
31832
|
var originalUrl = parseUrl.original(req);
|
|
31699
|
-
var
|
|
31700
|
-
if (
|
|
31701
|
-
|
|
31833
|
+
var path2 = parseUrl(req).pathname;
|
|
31834
|
+
if (path2 === "/" && originalUrl.pathname.substr(-1) !== "/") {
|
|
31835
|
+
path2 = "";
|
|
31702
31836
|
}
|
|
31703
|
-
var stream = send(req,
|
|
31837
|
+
var stream = send(req, path2, opts);
|
|
31704
31838
|
stream.on("directory", onDirectory);
|
|
31705
31839
|
if (setHeaders) {
|
|
31706
31840
|
stream.on("headers", setHeaders);
|
|
@@ -31745,7 +31879,7 @@ var require_serve_static = __commonJS({
|
|
|
31745
31879
|
var originalUrl = parseUrl.original(this.req);
|
|
31746
31880
|
originalUrl.path = null;
|
|
31747
31881
|
originalUrl.pathname = collapseLeadingSlashes(originalUrl.pathname + "/");
|
|
31748
|
-
var loc = encodeUrl(
|
|
31882
|
+
var loc = encodeUrl(url2.format(originalUrl));
|
|
31749
31883
|
var doc = createHtmlDocument("Redirecting", 'Redirecting to <a href="' + escapeHtml(loc) + '">' + escapeHtml(loc) + "</a>");
|
|
31750
31884
|
res.statusCode = 301;
|
|
31751
31885
|
res.setHeader("Content-Type", "text/html; charset=UTF-8");
|
|
@@ -31763,6 +31897,7 @@ var require_serve_static = __commonJS({
|
|
|
31763
31897
|
var require_express = __commonJS({
|
|
31764
31898
|
"../../node_modules/express/lib/express.js"(exports, module) {
|
|
31765
31899
|
"use strict";
|
|
31900
|
+
init_cjs_shim();
|
|
31766
31901
|
var bodyParser = require_body_parser();
|
|
31767
31902
|
var EventEmitter = __require("events").EventEmitter;
|
|
31768
31903
|
var mixin = require_merge_descriptors();
|
|
@@ -31832,6 +31967,7 @@ var require_express = __commonJS({
|
|
|
31832
31967
|
var require_express2 = __commonJS({
|
|
31833
31968
|
"../../node_modules/express/index.js"(exports, module) {
|
|
31834
31969
|
"use strict";
|
|
31970
|
+
init_cjs_shim();
|
|
31835
31971
|
module.exports = require_express();
|
|
31836
31972
|
}
|
|
31837
31973
|
});
|
|
@@ -31840,6 +31976,7 @@ var require_express2 = __commonJS({
|
|
|
31840
31976
|
var require_cookie2 = __commonJS({
|
|
31841
31977
|
"../../node_modules/express-session/node_modules/cookie/index.js"(exports) {
|
|
31842
31978
|
"use strict";
|
|
31979
|
+
init_cjs_shim();
|
|
31843
31980
|
exports.parse = parse;
|
|
31844
31981
|
exports.serialize = serialize;
|
|
31845
31982
|
var decode = decodeURIComponent;
|
|
@@ -31949,6 +32086,7 @@ var require_cookie2 = __commonJS({
|
|
|
31949
32086
|
// ../../node_modules/express-session/node_modules/ms/index.js
|
|
31950
32087
|
var require_ms6 = __commonJS({
|
|
31951
32088
|
"../../node_modules/express-session/node_modules/ms/index.js"(exports, module) {
|
|
32089
|
+
init_cjs_shim();
|
|
31952
32090
|
var s = 1e3;
|
|
31953
32091
|
var m = s * 60;
|
|
31954
32092
|
var h = m * 60;
|
|
@@ -32051,6 +32189,7 @@ var require_ms6 = __commonJS({
|
|
|
32051
32189
|
// ../../node_modules/express-session/node_modules/debug/src/debug.js
|
|
32052
32190
|
var require_debug5 = __commonJS({
|
|
32053
32191
|
"../../node_modules/express-session/node_modules/debug/src/debug.js"(exports, module) {
|
|
32192
|
+
init_cjs_shim();
|
|
32054
32193
|
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
32055
32194
|
exports.coerce = coerce;
|
|
32056
32195
|
exports.disable = disable;
|
|
@@ -32160,6 +32299,7 @@ var require_debug5 = __commonJS({
|
|
|
32160
32299
|
// ../../node_modules/express-session/node_modules/debug/src/browser.js
|
|
32161
32300
|
var require_browser5 = __commonJS({
|
|
32162
32301
|
"../../node_modules/express-session/node_modules/debug/src/browser.js"(exports, module) {
|
|
32302
|
+
init_cjs_shim();
|
|
32163
32303
|
exports = module.exports = require_debug5();
|
|
32164
32304
|
exports.log = log;
|
|
32165
32305
|
exports.formatArgs = formatArgs;
|
|
@@ -32248,6 +32388,7 @@ var require_browser5 = __commonJS({
|
|
|
32248
32388
|
// ../../node_modules/express-session/node_modules/debug/src/node.js
|
|
32249
32389
|
var require_node5 = __commonJS({
|
|
32250
32390
|
"../../node_modules/express-session/node_modules/debug/src/node.js"(exports, module) {
|
|
32391
|
+
init_cjs_shim();
|
|
32251
32392
|
var tty = __require("tty");
|
|
32252
32393
|
var util = __require("util");
|
|
32253
32394
|
exports = module.exports = require_debug5();
|
|
@@ -32372,6 +32513,7 @@ var require_node5 = __commonJS({
|
|
|
32372
32513
|
// ../../node_modules/express-session/node_modules/debug/src/index.js
|
|
32373
32514
|
var require_src6 = __commonJS({
|
|
32374
32515
|
"../../node_modules/express-session/node_modules/debug/src/index.js"(exports, module) {
|
|
32516
|
+
init_cjs_shim();
|
|
32375
32517
|
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
32376
32518
|
module.exports = require_browser5();
|
|
32377
32519
|
} else {
|
|
@@ -32384,6 +32526,7 @@ var require_src6 = __commonJS({
|
|
|
32384
32526
|
var require_on_headers = __commonJS({
|
|
32385
32527
|
"../../node_modules/on-headers/index.js"(exports, module) {
|
|
32386
32528
|
"use strict";
|
|
32529
|
+
init_cjs_shim();
|
|
32387
32530
|
module.exports = onHeaders;
|
|
32388
32531
|
function createWriteHead(prevWriteHead, listener) {
|
|
32389
32532
|
var fired = false;
|
|
@@ -32445,6 +32588,7 @@ var require_on_headers = __commonJS({
|
|
|
32445
32588
|
var require_random_bytes = __commonJS({
|
|
32446
32589
|
"../../node_modules/random-bytes/index.js"(exports, module) {
|
|
32447
32590
|
"use strict";
|
|
32591
|
+
init_cjs_shim();
|
|
32448
32592
|
var crypto = __require("crypto");
|
|
32449
32593
|
var generateAttempts = crypto.randomBytes === crypto.pseudoRandomBytes ? 1 : 3;
|
|
32450
32594
|
module.exports = randomBytes;
|
|
@@ -32494,6 +32638,7 @@ var require_random_bytes = __commonJS({
|
|
|
32494
32638
|
var require_uid_safe = __commonJS({
|
|
32495
32639
|
"../../node_modules/uid-safe/index.js"(exports, module) {
|
|
32496
32640
|
"use strict";
|
|
32641
|
+
init_cjs_shim();
|
|
32497
32642
|
var randomBytes = require_random_bytes();
|
|
32498
32643
|
var EQUAL_END_REGEXP = /=+$/;
|
|
32499
32644
|
var PLUS_GLOBAL_REGEXP = /\+/g;
|
|
@@ -32538,6 +32683,7 @@ var require_uid_safe = __commonJS({
|
|
|
32538
32683
|
var require_cookie3 = __commonJS({
|
|
32539
32684
|
"../../node_modules/express-session/session/cookie.js"(exports, module) {
|
|
32540
32685
|
"use strict";
|
|
32686
|
+
init_cjs_shim();
|
|
32541
32687
|
var cookie = require_cookie2();
|
|
32542
32688
|
var deprecate = require_depd()("express-session");
|
|
32543
32689
|
var Cookie = module.exports = function Cookie2(options) {
|
|
@@ -32645,6 +32791,7 @@ var require_cookie3 = __commonJS({
|
|
|
32645
32791
|
var require_session = __commonJS({
|
|
32646
32792
|
"../../node_modules/express-session/session/session.js"(exports, module) {
|
|
32647
32793
|
"use strict";
|
|
32794
|
+
init_cjs_shim();
|
|
32648
32795
|
module.exports = Session;
|
|
32649
32796
|
function Session(req, data) {
|
|
32650
32797
|
Object.defineProperty(this, "req", { value: req });
|
|
@@ -32706,6 +32853,7 @@ var require_session = __commonJS({
|
|
|
32706
32853
|
var require_store = __commonJS({
|
|
32707
32854
|
"../../node_modules/express-session/session/store.js"(exports, module) {
|
|
32708
32855
|
"use strict";
|
|
32856
|
+
init_cjs_shim();
|
|
32709
32857
|
var Cookie = require_cookie3();
|
|
32710
32858
|
var EventEmitter = __require("events").EventEmitter;
|
|
32711
32859
|
var Session = require_session();
|
|
@@ -32751,6 +32899,7 @@ var require_store = __commonJS({
|
|
|
32751
32899
|
var require_memory = __commonJS({
|
|
32752
32900
|
"../../node_modules/express-session/session/memory.js"(exports, module) {
|
|
32753
32901
|
"use strict";
|
|
32902
|
+
init_cjs_shim();
|
|
32754
32903
|
var Store = require_store();
|
|
32755
32904
|
var util = __require("util");
|
|
32756
32905
|
var defer = typeof setImmediate === "function" ? setImmediate : function(fn) {
|
|
@@ -32826,6 +32975,7 @@ var require_memory = __commonJS({
|
|
|
32826
32975
|
var require_express_session = __commonJS({
|
|
32827
32976
|
"../../node_modules/express-session/index.js"(exports, module) {
|
|
32828
32977
|
"use strict";
|
|
32978
|
+
init_cjs_shim();
|
|
32829
32979
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
32830
32980
|
var cookie = require_cookie2();
|
|
32831
32981
|
var crypto = __require("crypto");
|
|
@@ -33229,6 +33379,7 @@ var require_express_session = __commonJS({
|
|
|
33229
33379
|
// ../../node_modules/urijs/src/punycode.js
|
|
33230
33380
|
var require_punycode = __commonJS({
|
|
33231
33381
|
"../../node_modules/urijs/src/punycode.js"(exports, module) {
|
|
33382
|
+
init_cjs_shim();
|
|
33232
33383
|
(function(root) {
|
|
33233
33384
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
33234
33385
|
var freeModule = typeof module == "object" && module && !module.nodeType && module;
|
|
@@ -33475,6 +33626,7 @@ var require_punycode = __commonJS({
|
|
|
33475
33626
|
// ../../node_modules/urijs/src/IPv6.js
|
|
33476
33627
|
var require_IPv6 = __commonJS({
|
|
33477
33628
|
"../../node_modules/urijs/src/IPv6.js"(exports, module) {
|
|
33629
|
+
init_cjs_shim();
|
|
33478
33630
|
(function(root, factory) {
|
|
33479
33631
|
"use strict";
|
|
33480
33632
|
if (typeof module === "object" && module.exports) {
|
|
@@ -33593,6 +33745,7 @@ var require_IPv6 = __commonJS({
|
|
|
33593
33745
|
// ../../node_modules/urijs/src/SecondLevelDomains.js
|
|
33594
33746
|
var require_SecondLevelDomains = __commonJS({
|
|
33595
33747
|
"../../node_modules/urijs/src/SecondLevelDomains.js"(exports, module) {
|
|
33748
|
+
init_cjs_shim();
|
|
33596
33749
|
(function(root, factory) {
|
|
33597
33750
|
"use strict";
|
|
33598
33751
|
if (typeof module === "object" && module.exports) {
|
|
@@ -33822,6 +33975,7 @@ var require_SecondLevelDomains = __commonJS({
|
|
|
33822
33975
|
// ../../node_modules/urijs/src/URI.js
|
|
33823
33976
|
var require_URI = __commonJS({
|
|
33824
33977
|
"../../node_modules/urijs/src/URI.js"(exports, module) {
|
|
33978
|
+
init_cjs_shim();
|
|
33825
33979
|
(function(root, factory) {
|
|
33826
33980
|
"use strict";
|
|
33827
33981
|
if (typeof module === "object" && module.exports) {
|
|
@@ -33834,34 +33988,34 @@ var require_URI = __commonJS({
|
|
|
33834
33988
|
})(exports, function(punycode, IPv6, SLD, root) {
|
|
33835
33989
|
"use strict";
|
|
33836
33990
|
var _URI = root && root.URI;
|
|
33837
|
-
function URI(
|
|
33991
|
+
function URI(url2, base) {
|
|
33838
33992
|
var _urlSupplied = arguments.length >= 1;
|
|
33839
33993
|
var _baseSupplied = arguments.length >= 2;
|
|
33840
33994
|
if (!(this instanceof URI)) {
|
|
33841
33995
|
if (_urlSupplied) {
|
|
33842
33996
|
if (_baseSupplied) {
|
|
33843
|
-
return new URI(
|
|
33997
|
+
return new URI(url2, base);
|
|
33844
33998
|
}
|
|
33845
|
-
return new URI(
|
|
33999
|
+
return new URI(url2);
|
|
33846
34000
|
}
|
|
33847
34001
|
return new URI();
|
|
33848
34002
|
}
|
|
33849
|
-
if (
|
|
34003
|
+
if (url2 === void 0) {
|
|
33850
34004
|
if (_urlSupplied) {
|
|
33851
34005
|
throw new TypeError("undefined is not a valid argument for URI");
|
|
33852
34006
|
}
|
|
33853
34007
|
if (typeof location !== "undefined") {
|
|
33854
|
-
|
|
34008
|
+
url2 = location.href + "";
|
|
33855
34009
|
} else {
|
|
33856
|
-
|
|
34010
|
+
url2 = "";
|
|
33857
34011
|
}
|
|
33858
34012
|
}
|
|
33859
|
-
if (
|
|
34013
|
+
if (url2 === null) {
|
|
33860
34014
|
if (_urlSupplied) {
|
|
33861
34015
|
throw new TypeError("null is not a valid argument for URI");
|
|
33862
34016
|
}
|
|
33863
34017
|
}
|
|
33864
|
-
this.href(
|
|
34018
|
+
this.href(url2);
|
|
33865
34019
|
if (base !== void 0) {
|
|
33866
34020
|
return this.absoluteTo(base);
|
|
33867
34021
|
}
|
|
@@ -34555,9 +34709,9 @@ var require_URI = __commonJS({
|
|
|
34555
34709
|
var segments = [];
|
|
34556
34710
|
var nonEmptySegments = 0;
|
|
34557
34711
|
for (var i = 0; i < arguments.length; i++) {
|
|
34558
|
-
var
|
|
34559
|
-
input.push(
|
|
34560
|
-
var _segments =
|
|
34712
|
+
var url2 = new URI(arguments[i]);
|
|
34713
|
+
input.push(url2);
|
|
34714
|
+
var _segments = url2.segment();
|
|
34561
34715
|
for (var s = 0; s < _segments.length; s++) {
|
|
34562
34716
|
if (typeof _segments[s] === "string") {
|
|
34563
34717
|
segments.push(_segments[s]);
|
|
@@ -35192,9 +35346,9 @@ var require_URI = __commonJS({
|
|
|
35192
35346
|
};
|
|
35193
35347
|
p.segment = function(segment, v, build) {
|
|
35194
35348
|
var separator = this._parts.urn ? ":" : "/";
|
|
35195
|
-
var
|
|
35196
|
-
var absolute =
|
|
35197
|
-
var segments =
|
|
35349
|
+
var path2 = this.path();
|
|
35350
|
+
var absolute = path2.substring(0, 1) === "/";
|
|
35351
|
+
var segments = path2.split(separator);
|
|
35198
35352
|
if (segment !== void 0 && typeof segment !== "number") {
|
|
35199
35353
|
build = v;
|
|
35200
35354
|
v = segment;
|
|
@@ -35651,6 +35805,7 @@ var require_URI = __commonJS({
|
|
|
35651
35805
|
// ../../node_modules/lodash/lodash.js
|
|
35652
35806
|
var require_lodash = __commonJS({
|
|
35653
35807
|
"../../node_modules/lodash/lodash.js"(exports, module) {
|
|
35808
|
+
init_cjs_shim();
|
|
35654
35809
|
(function() {
|
|
35655
35810
|
var undefined2;
|
|
35656
35811
|
var VERSION = "4.17.21";
|
|
@@ -36978,11 +37133,11 @@ var require_lodash = __commonJS({
|
|
|
36978
37133
|
return isFunction(object[key]);
|
|
36979
37134
|
});
|
|
36980
37135
|
}
|
|
36981
|
-
function baseGet(object,
|
|
36982
|
-
|
|
36983
|
-
var index = 0, length =
|
|
37136
|
+
function baseGet(object, path2) {
|
|
37137
|
+
path2 = castPath(path2, object);
|
|
37138
|
+
var index = 0, length = path2.length;
|
|
36984
37139
|
while (object != null && index < length) {
|
|
36985
|
-
object = object[toKey(
|
|
37140
|
+
object = object[toKey(path2[index++])];
|
|
36986
37141
|
}
|
|
36987
37142
|
return index && index == length ? object : undefined2;
|
|
36988
37143
|
}
|
|
@@ -37046,10 +37201,10 @@ var require_lodash = __commonJS({
|
|
|
37046
37201
|
});
|
|
37047
37202
|
return accumulator;
|
|
37048
37203
|
}
|
|
37049
|
-
function baseInvoke(object,
|
|
37050
|
-
|
|
37051
|
-
object = parent(object,
|
|
37052
|
-
var func = object == null ? object : object[toKey(last(
|
|
37204
|
+
function baseInvoke(object, path2, args) {
|
|
37205
|
+
path2 = castPath(path2, object);
|
|
37206
|
+
object = parent(object, path2);
|
|
37207
|
+
var func = object == null ? object : object[toKey(last(path2))];
|
|
37053
37208
|
return func == null ? undefined2 : apply(func, object, args);
|
|
37054
37209
|
}
|
|
37055
37210
|
function baseIsArguments(value) {
|
|
@@ -37205,13 +37360,13 @@ var require_lodash = __commonJS({
|
|
|
37205
37360
|
return object === source || baseIsMatch(object, source, matchData);
|
|
37206
37361
|
};
|
|
37207
37362
|
}
|
|
37208
|
-
function baseMatchesProperty(
|
|
37209
|
-
if (isKey(
|
|
37210
|
-
return matchesStrictComparable(toKey(
|
|
37363
|
+
function baseMatchesProperty(path2, srcValue) {
|
|
37364
|
+
if (isKey(path2) && isStrictComparable(srcValue)) {
|
|
37365
|
+
return matchesStrictComparable(toKey(path2), srcValue);
|
|
37211
37366
|
}
|
|
37212
37367
|
return function(object) {
|
|
37213
|
-
var objValue = get(object,
|
|
37214
|
-
return objValue === undefined2 && objValue === srcValue ? hasIn(object,
|
|
37368
|
+
var objValue = get(object, path2);
|
|
37369
|
+
return objValue === undefined2 && objValue === srcValue ? hasIn(object, path2) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
37215
37370
|
};
|
|
37216
37371
|
}
|
|
37217
37372
|
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
@@ -37308,23 +37463,23 @@ var require_lodash = __commonJS({
|
|
|
37308
37463
|
});
|
|
37309
37464
|
}
|
|
37310
37465
|
function basePick(object, paths) {
|
|
37311
|
-
return basePickBy(object, paths, function(value,
|
|
37312
|
-
return hasIn(object,
|
|
37466
|
+
return basePickBy(object, paths, function(value, path2) {
|
|
37467
|
+
return hasIn(object, path2);
|
|
37313
37468
|
});
|
|
37314
37469
|
}
|
|
37315
37470
|
function basePickBy(object, paths, predicate) {
|
|
37316
37471
|
var index = -1, length = paths.length, result2 = {};
|
|
37317
37472
|
while (++index < length) {
|
|
37318
|
-
var
|
|
37319
|
-
if (predicate(value,
|
|
37320
|
-
baseSet(result2, castPath(
|
|
37473
|
+
var path2 = paths[index], value = baseGet(object, path2);
|
|
37474
|
+
if (predicate(value, path2)) {
|
|
37475
|
+
baseSet(result2, castPath(path2, object), value);
|
|
37321
37476
|
}
|
|
37322
37477
|
}
|
|
37323
37478
|
return result2;
|
|
37324
37479
|
}
|
|
37325
|
-
function basePropertyDeep(
|
|
37480
|
+
function basePropertyDeep(path2) {
|
|
37326
37481
|
return function(object) {
|
|
37327
|
-
return baseGet(object,
|
|
37482
|
+
return baseGet(object, path2);
|
|
37328
37483
|
};
|
|
37329
37484
|
}
|
|
37330
37485
|
function basePullAll(array, values2, iteratee2, comparator) {
|
|
@@ -37398,14 +37553,14 @@ var require_lodash = __commonJS({
|
|
|
37398
37553
|
var array = values(collection);
|
|
37399
37554
|
return shuffleSelf(array, baseClamp(n, 0, array.length));
|
|
37400
37555
|
}
|
|
37401
|
-
function baseSet(object,
|
|
37556
|
+
function baseSet(object, path2, value, customizer) {
|
|
37402
37557
|
if (!isObject(object)) {
|
|
37403
37558
|
return object;
|
|
37404
37559
|
}
|
|
37405
|
-
|
|
37406
|
-
var index = -1, length =
|
|
37560
|
+
path2 = castPath(path2, object);
|
|
37561
|
+
var index = -1, length = path2.length, lastIndex = length - 1, nested = object;
|
|
37407
37562
|
while (nested != null && ++index < length) {
|
|
37408
|
-
var key = toKey(
|
|
37563
|
+
var key = toKey(path2[index]), newValue = value;
|
|
37409
37564
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
37410
37565
|
return object;
|
|
37411
37566
|
}
|
|
@@ -37413,7 +37568,7 @@ var require_lodash = __commonJS({
|
|
|
37413
37568
|
var objValue = nested[key];
|
|
37414
37569
|
newValue = customizer ? customizer(objValue, key, nested) : undefined2;
|
|
37415
37570
|
if (newValue === undefined2) {
|
|
37416
|
-
newValue = isObject(objValue) ? objValue : isIndex(
|
|
37571
|
+
newValue = isObject(objValue) ? objValue : isIndex(path2[index + 1]) ? [] : {};
|
|
37417
37572
|
}
|
|
37418
37573
|
}
|
|
37419
37574
|
assignValue(nested, key, newValue);
|
|
@@ -37579,13 +37734,13 @@ var require_lodash = __commonJS({
|
|
|
37579
37734
|
}
|
|
37580
37735
|
return result2;
|
|
37581
37736
|
}
|
|
37582
|
-
function baseUnset(object,
|
|
37583
|
-
|
|
37584
|
-
object = parent(object,
|
|
37585
|
-
return object == null || delete object[toKey(last(
|
|
37737
|
+
function baseUnset(object, path2) {
|
|
37738
|
+
path2 = castPath(path2, object);
|
|
37739
|
+
object = parent(object, path2);
|
|
37740
|
+
return object == null || delete object[toKey(last(path2))];
|
|
37586
37741
|
}
|
|
37587
|
-
function baseUpdate(object,
|
|
37588
|
-
return baseSet(object,
|
|
37742
|
+
function baseUpdate(object, path2, updater, customizer) {
|
|
37743
|
+
return baseSet(object, path2, updater(baseGet(object, path2)), customizer);
|
|
37589
37744
|
}
|
|
37590
37745
|
function baseWhile(array, predicate, isDrop, fromRight) {
|
|
37591
37746
|
var length = array.length, index = fromRight ? length : -1;
|
|
@@ -38468,11 +38623,11 @@ var require_lodash = __commonJS({
|
|
|
38468
38623
|
var match = source.match(reWrapDetails);
|
|
38469
38624
|
return match ? match[1].split(reSplitDetails) : [];
|
|
38470
38625
|
}
|
|
38471
|
-
function hasPath(object,
|
|
38472
|
-
|
|
38473
|
-
var index = -1, length =
|
|
38626
|
+
function hasPath(object, path2, hasFunc) {
|
|
38627
|
+
path2 = castPath(path2, object);
|
|
38628
|
+
var index = -1, length = path2.length, result2 = false;
|
|
38474
38629
|
while (++index < length) {
|
|
38475
|
-
var key = toKey(
|
|
38630
|
+
var key = toKey(path2[index]);
|
|
38476
38631
|
if (!(result2 = object != null && hasFunc(object, key))) {
|
|
38477
38632
|
break;
|
|
38478
38633
|
}
|
|
@@ -38674,8 +38829,8 @@ var require_lodash = __commonJS({
|
|
|
38674
38829
|
return apply(func, this, otherArgs);
|
|
38675
38830
|
};
|
|
38676
38831
|
}
|
|
38677
|
-
function parent(object,
|
|
38678
|
-
return
|
|
38832
|
+
function parent(object, path2) {
|
|
38833
|
+
return path2.length < 2 ? object : baseGet(object, baseSlice(path2, 0, -1));
|
|
38679
38834
|
}
|
|
38680
38835
|
function reorder(array, indexes) {
|
|
38681
38836
|
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
@@ -39310,10 +39465,10 @@ var require_lodash = __commonJS({
|
|
|
39310
39465
|
}
|
|
39311
39466
|
return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1;
|
|
39312
39467
|
}
|
|
39313
|
-
var invokeMap = baseRest(function(collection,
|
|
39314
|
-
var index = -1, isFunc = typeof
|
|
39468
|
+
var invokeMap = baseRest(function(collection, path2, args) {
|
|
39469
|
+
var index = -1, isFunc = typeof path2 == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : [];
|
|
39315
39470
|
baseEach(collection, function(value) {
|
|
39316
|
-
result2[++index] = isFunc ? apply(
|
|
39471
|
+
result2[++index] = isFunc ? apply(path2, value, args) : baseInvoke(value, path2, args);
|
|
39317
39472
|
});
|
|
39318
39473
|
return result2;
|
|
39319
39474
|
});
|
|
@@ -39965,15 +40120,15 @@ var require_lodash = __commonJS({
|
|
|
39965
40120
|
function functionsIn(object) {
|
|
39966
40121
|
return object == null ? [] : baseFunctions(object, keysIn(object));
|
|
39967
40122
|
}
|
|
39968
|
-
function get(object,
|
|
39969
|
-
var result2 = object == null ? undefined2 : baseGet(object,
|
|
40123
|
+
function get(object, path2, defaultValue) {
|
|
40124
|
+
var result2 = object == null ? undefined2 : baseGet(object, path2);
|
|
39970
40125
|
return result2 === undefined2 ? defaultValue : result2;
|
|
39971
40126
|
}
|
|
39972
|
-
function has(object,
|
|
39973
|
-
return object != null && hasPath(object,
|
|
40127
|
+
function has(object, path2) {
|
|
40128
|
+
return object != null && hasPath(object, path2, baseHas);
|
|
39974
40129
|
}
|
|
39975
|
-
function hasIn(object,
|
|
39976
|
-
return object != null && hasPath(object,
|
|
40130
|
+
function hasIn(object, path2) {
|
|
40131
|
+
return object != null && hasPath(object, path2, baseHasIn);
|
|
39977
40132
|
}
|
|
39978
40133
|
var invert = createInverter(function(result2, value, key) {
|
|
39979
40134
|
if (value != null && typeof value.toString != "function") {
|
|
@@ -40026,10 +40181,10 @@ var require_lodash = __commonJS({
|
|
|
40026
40181
|
return result2;
|
|
40027
40182
|
}
|
|
40028
40183
|
var isDeep = false;
|
|
40029
|
-
paths = arrayMap(paths, function(
|
|
40030
|
-
|
|
40031
|
-
isDeep || (isDeep =
|
|
40032
|
-
return
|
|
40184
|
+
paths = arrayMap(paths, function(path2) {
|
|
40185
|
+
path2 = castPath(path2, object);
|
|
40186
|
+
isDeep || (isDeep = path2.length > 1);
|
|
40187
|
+
return path2;
|
|
40033
40188
|
});
|
|
40034
40189
|
copyObject(object, getAllKeysIn(object), result2);
|
|
40035
40190
|
if (isDeep) {
|
|
@@ -40055,19 +40210,19 @@ var require_lodash = __commonJS({
|
|
|
40055
40210
|
return [prop];
|
|
40056
40211
|
});
|
|
40057
40212
|
predicate = getIteratee(predicate);
|
|
40058
|
-
return basePickBy(object, props, function(value,
|
|
40059
|
-
return predicate(value,
|
|
40213
|
+
return basePickBy(object, props, function(value, path2) {
|
|
40214
|
+
return predicate(value, path2[0]);
|
|
40060
40215
|
});
|
|
40061
40216
|
}
|
|
40062
|
-
function result(object,
|
|
40063
|
-
|
|
40064
|
-
var index = -1, length =
|
|
40217
|
+
function result(object, path2, defaultValue) {
|
|
40218
|
+
path2 = castPath(path2, object);
|
|
40219
|
+
var index = -1, length = path2.length;
|
|
40065
40220
|
if (!length) {
|
|
40066
40221
|
length = 1;
|
|
40067
40222
|
object = undefined2;
|
|
40068
40223
|
}
|
|
40069
40224
|
while (++index < length) {
|
|
40070
|
-
var value = object == null ? undefined2 : object[toKey(
|
|
40225
|
+
var value = object == null ? undefined2 : object[toKey(path2[index])];
|
|
40071
40226
|
if (value === undefined2) {
|
|
40072
40227
|
index = length;
|
|
40073
40228
|
value = defaultValue;
|
|
@@ -40076,12 +40231,12 @@ var require_lodash = __commonJS({
|
|
|
40076
40231
|
}
|
|
40077
40232
|
return object;
|
|
40078
40233
|
}
|
|
40079
|
-
function set(object,
|
|
40080
|
-
return object == null ? object : baseSet(object,
|
|
40234
|
+
function set(object, path2, value) {
|
|
40235
|
+
return object == null ? object : baseSet(object, path2, value);
|
|
40081
40236
|
}
|
|
40082
|
-
function setWith(object,
|
|
40237
|
+
function setWith(object, path2, value, customizer) {
|
|
40083
40238
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
40084
|
-
return object == null ? object : baseSet(object,
|
|
40239
|
+
return object == null ? object : baseSet(object, path2, value, customizer);
|
|
40085
40240
|
}
|
|
40086
40241
|
var toPairs = createToPairs(keys);
|
|
40087
40242
|
var toPairsIn = createToPairs(keysIn);
|
|
@@ -40103,15 +40258,15 @@ var require_lodash = __commonJS({
|
|
|
40103
40258
|
});
|
|
40104
40259
|
return accumulator;
|
|
40105
40260
|
}
|
|
40106
|
-
function unset(object,
|
|
40107
|
-
return object == null ? true : baseUnset(object,
|
|
40261
|
+
function unset(object, path2) {
|
|
40262
|
+
return object == null ? true : baseUnset(object, path2);
|
|
40108
40263
|
}
|
|
40109
|
-
function update(object,
|
|
40110
|
-
return object == null ? object : baseUpdate(object,
|
|
40264
|
+
function update(object, path2, updater) {
|
|
40265
|
+
return object == null ? object : baseUpdate(object, path2, castFunction(updater));
|
|
40111
40266
|
}
|
|
40112
|
-
function updateWith(object,
|
|
40267
|
+
function updateWith(object, path2, updater, customizer) {
|
|
40113
40268
|
customizer = typeof customizer == "function" ? customizer : undefined2;
|
|
40114
|
-
return object == null ? object : baseUpdate(object,
|
|
40269
|
+
return object == null ? object : baseUpdate(object, path2, castFunction(updater), customizer);
|
|
40115
40270
|
}
|
|
40116
40271
|
function values(object) {
|
|
40117
40272
|
return object == null ? [] : baseValues(object, keys(object));
|
|
@@ -40492,17 +40647,17 @@ var require_lodash = __commonJS({
|
|
|
40492
40647
|
function matches(source) {
|
|
40493
40648
|
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
|
40494
40649
|
}
|
|
40495
|
-
function matchesProperty(
|
|
40496
|
-
return baseMatchesProperty(
|
|
40650
|
+
function matchesProperty(path2, srcValue) {
|
|
40651
|
+
return baseMatchesProperty(path2, baseClone(srcValue, CLONE_DEEP_FLAG));
|
|
40497
40652
|
}
|
|
40498
|
-
var method = baseRest(function(
|
|
40653
|
+
var method = baseRest(function(path2, args) {
|
|
40499
40654
|
return function(object) {
|
|
40500
|
-
return baseInvoke(object,
|
|
40655
|
+
return baseInvoke(object, path2, args);
|
|
40501
40656
|
};
|
|
40502
40657
|
});
|
|
40503
40658
|
var methodOf = baseRest(function(object, args) {
|
|
40504
|
-
return function(
|
|
40505
|
-
return baseInvoke(object,
|
|
40659
|
+
return function(path2) {
|
|
40660
|
+
return baseInvoke(object, path2, args);
|
|
40506
40661
|
};
|
|
40507
40662
|
});
|
|
40508
40663
|
function mixin(object, source, options) {
|
|
@@ -40549,12 +40704,12 @@ var require_lodash = __commonJS({
|
|
|
40549
40704
|
var over = createOver(arrayMap);
|
|
40550
40705
|
var overEvery = createOver(arrayEvery);
|
|
40551
40706
|
var overSome = createOver(arraySome);
|
|
40552
|
-
function property(
|
|
40553
|
-
return isKey(
|
|
40707
|
+
function property(path2) {
|
|
40708
|
+
return isKey(path2) ? baseProperty(toKey(path2)) : basePropertyDeep(path2);
|
|
40554
40709
|
}
|
|
40555
40710
|
function propertyOf(object) {
|
|
40556
|
-
return function(
|
|
40557
|
-
return object == null ? undefined2 : baseGet(object,
|
|
40711
|
+
return function(path2) {
|
|
40712
|
+
return object == null ? undefined2 : baseGet(object, path2);
|
|
40558
40713
|
};
|
|
40559
40714
|
}
|
|
40560
40715
|
var range = createRange();
|
|
@@ -41007,12 +41162,12 @@ var require_lodash = __commonJS({
|
|
|
41007
41162
|
LazyWrapper.prototype.findLast = function(predicate) {
|
|
41008
41163
|
return this.reverse().find(predicate);
|
|
41009
41164
|
};
|
|
41010
|
-
LazyWrapper.prototype.invokeMap = baseRest(function(
|
|
41011
|
-
if (typeof
|
|
41165
|
+
LazyWrapper.prototype.invokeMap = baseRest(function(path2, args) {
|
|
41166
|
+
if (typeof path2 == "function") {
|
|
41012
41167
|
return new LazyWrapper(this);
|
|
41013
41168
|
}
|
|
41014
41169
|
return this.map(function(value) {
|
|
41015
|
-
return baseInvoke(value,
|
|
41170
|
+
return baseInvoke(value, path2, args);
|
|
41016
41171
|
});
|
|
41017
41172
|
});
|
|
41018
41173
|
LazyWrapper.prototype.reject = function(predicate) {
|
|
@@ -41132,6 +41287,7 @@ var require_lodash = __commonJS({
|
|
|
41132
41287
|
var require_cookie4 = __commonJS({
|
|
41133
41288
|
"../../node_modules/cookie/index.js"(exports) {
|
|
41134
41289
|
"use strict";
|
|
41290
|
+
init_cjs_shim();
|
|
41135
41291
|
exports.parse = parse;
|
|
41136
41292
|
exports.serialize = serialize;
|
|
41137
41293
|
var decode = decodeURIComponent;
|
|
@@ -41242,6 +41398,7 @@ var require_cookie4 = __commonJS({
|
|
|
41242
41398
|
var require_cookie_parser = __commonJS({
|
|
41243
41399
|
"../../node_modules/cookie-parser/index.js"(exports, module) {
|
|
41244
41400
|
"use strict";
|
|
41401
|
+
init_cjs_shim();
|
|
41245
41402
|
var cookie = require_cookie4();
|
|
41246
41403
|
var signature2 = require_cookie_signature();
|
|
41247
41404
|
module.exports = cookieParser;
|
|
@@ -41334,6 +41491,7 @@ var require_cookie_parser = __commonJS({
|
|
|
41334
41491
|
var require_connect_pg_simple = __commonJS({
|
|
41335
41492
|
"../../node_modules/connect-pg-simple/index.js"(exports, module) {
|
|
41336
41493
|
"use strict";
|
|
41494
|
+
init_cjs_shim();
|
|
41337
41495
|
var DEFAULT_PRUNE_INTERVAL_IN_SECONDS = 60 * 15;
|
|
41338
41496
|
var ONE_DAY = 86400;
|
|
41339
41497
|
var currentTimestamp = () => Math.ceil(Date.now() / 1e3);
|
|
@@ -41595,11 +41753,13 @@ var require_connect_pg_simple = __commonJS({
|
|
|
41595
41753
|
});
|
|
41596
41754
|
|
|
41597
41755
|
// src/index.ts
|
|
41756
|
+
init_cjs_shim();
|
|
41598
41757
|
var import_express = __toESM(require_express2(), 1);
|
|
41599
41758
|
var import_express_session = __toESM(require_express_session(), 1);
|
|
41600
41759
|
var import_urijs2 = __toESM(require_URI(), 1);
|
|
41601
41760
|
|
|
41602
41761
|
// src/createPool.ts
|
|
41762
|
+
init_cjs_shim();
|
|
41603
41763
|
import pg from "pg";
|
|
41604
41764
|
function createPool(options) {
|
|
41605
41765
|
const { dbUser, dbPassword } = options;
|
|
@@ -41630,13 +41790,14 @@ function createPool(options) {
|
|
|
41630
41790
|
var createPool_default = createPool;
|
|
41631
41791
|
|
|
41632
41792
|
// ../../magda-typescript-common/dist/getAbsoluteUrl.js
|
|
41793
|
+
init_cjs_shim();
|
|
41633
41794
|
var import_urijs = __toESM(require_URI(), 1);
|
|
41634
|
-
function getAbsoluteUrl(
|
|
41635
|
-
const uri = (0, import_urijs.default)(
|
|
41795
|
+
function getAbsoluteUrl(url2, baseUrl, optionalQueries, allowedUrlHosts) {
|
|
41796
|
+
const uri = (0, import_urijs.default)(url2);
|
|
41636
41797
|
const urlHost = uri.host();
|
|
41637
41798
|
if (urlHost) {
|
|
41638
41799
|
if (!allowedUrlHosts || allowedUrlHosts.findIndex((item) => item === urlHost) !== -1) {
|
|
41639
|
-
return
|
|
41800
|
+
return url2;
|
|
41640
41801
|
}
|
|
41641
41802
|
}
|
|
41642
41803
|
if (typeof baseUrl !== "string") {
|
|
@@ -41652,9 +41813,11 @@ function getAbsoluteUrl(url, baseUrl, optionalQueries, allowedUrlHosts) {
|
|
|
41652
41813
|
}
|
|
41653
41814
|
|
|
41654
41815
|
// ../../magda-typescript-common/dist/session/getSessionId.js
|
|
41816
|
+
init_cjs_shim();
|
|
41655
41817
|
var import_cookie_signature = __toESM(require_cookie_signature(), 1);
|
|
41656
41818
|
|
|
41657
41819
|
// ../../magda-typescript-common/dist/session/cookieUtils.js
|
|
41820
|
+
init_cjs_shim();
|
|
41658
41821
|
var DEFAULT_SESSION_COOKIE_NAME = "connect.sid";
|
|
41659
41822
|
var DEFAULT_SESSION_COOKIE_OPTIONS = {
|
|
41660
41823
|
maxAge: 7 * 60 * 60 * 1e3,
|
|
@@ -41690,6 +41853,7 @@ function getSessionId(req, secret = "") {
|
|
|
41690
41853
|
}
|
|
41691
41854
|
|
|
41692
41855
|
// ../../magda-typescript-common/dist/session/destroySession.js
|
|
41856
|
+
init_cjs_shim();
|
|
41693
41857
|
async function destroySession(req) {
|
|
41694
41858
|
return new Promise((resolve, reject) => {
|
|
41695
41859
|
if (req?.session?.destroy) {
|