@lark-apaas/fullstack-nestjs-core 1.1.29 → 1.1.31

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 CHANGED
@@ -965,9 +965,9 @@ var require_http_errors = __commonJS({
965
965
  }
966
966
  });
967
967
 
968
- // ../../../node_modules/express/node_modules/ms/index.js
968
+ // ../../../node_modules/body-parser/node_modules/ms/index.js
969
969
  var require_ms = __commonJS({
970
- "../../../node_modules/express/node_modules/ms/index.js"(exports, module) {
970
+ "../../../node_modules/body-parser/node_modules/ms/index.js"(exports, module) {
971
971
  "use strict";
972
972
  var s = 1e3;
973
973
  var m = s * 60;
@@ -1068,9 +1068,9 @@ var require_ms = __commonJS({
1068
1068
  }
1069
1069
  });
1070
1070
 
1071
- // ../../../node_modules/express/node_modules/debug/src/debug.js
1071
+ // ../../../node_modules/body-parser/node_modules/debug/src/debug.js
1072
1072
  var require_debug = __commonJS({
1073
- "../../../node_modules/express/node_modules/debug/src/debug.js"(exports, module) {
1073
+ "../../../node_modules/body-parser/node_modules/debug/src/debug.js"(exports, module) {
1074
1074
  "use strict";
1075
1075
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
1076
1076
  exports.coerce = coerce;
@@ -1181,9 +1181,9 @@ var require_debug = __commonJS({
1181
1181
  }
1182
1182
  });
1183
1183
 
1184
- // ../../../node_modules/express/node_modules/debug/src/browser.js
1184
+ // ../../../node_modules/body-parser/node_modules/debug/src/browser.js
1185
1185
  var require_browser = __commonJS({
1186
- "../../../node_modules/express/node_modules/debug/src/browser.js"(exports, module) {
1186
+ "../../../node_modules/body-parser/node_modules/debug/src/browser.js"(exports, module) {
1187
1187
  "use strict";
1188
1188
  exports = module.exports = require_debug();
1189
1189
  exports.log = log;
@@ -1274,9 +1274,9 @@ var require_browser = __commonJS({
1274
1274
  }
1275
1275
  });
1276
1276
 
1277
- // ../../../node_modules/express/node_modules/debug/src/node.js
1277
+ // ../../../node_modules/body-parser/node_modules/debug/src/node.js
1278
1278
  var require_node = __commonJS({
1279
- "../../../node_modules/express/node_modules/debug/src/node.js"(exports, module) {
1279
+ "../../../node_modules/body-parser/node_modules/debug/src/node.js"(exports, module) {
1280
1280
  "use strict";
1281
1281
  var tty = __require("tty");
1282
1282
  var util = __require("util");
@@ -1411,9 +1411,9 @@ var require_node = __commonJS({
1411
1411
  }
1412
1412
  });
1413
1413
 
1414
- // ../../../node_modules/express/node_modules/debug/src/index.js
1414
+ // ../../../node_modules/body-parser/node_modules/debug/src/index.js
1415
1415
  var require_src = __commonJS({
1416
- "../../../node_modules/express/node_modules/debug/src/index.js"(exports, module) {
1416
+ "../../../node_modules/body-parser/node_modules/debug/src/index.js"(exports, module) {
1417
1417
  "use strict";
1418
1418
  if (typeof process !== "undefined" && process.type === "renderer") {
1419
1419
  module.exports = require_browser();
@@ -1589,9 +1589,9 @@ var require_safer = __commonJS({
1589
1589
  }
1590
1590
  });
1591
1591
 
1592
- // ../../../node_modules/iconv-lite/lib/bom-handling.js
1592
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js
1593
1593
  var require_bom_handling = __commonJS({
1594
- "../../../node_modules/iconv-lite/lib/bom-handling.js"(exports) {
1594
+ "../../../node_modules/body-parser/node_modules/iconv-lite/lib/bom-handling.js"(exports) {
1595
1595
  "use strict";
1596
1596
  var BOMChar = "\uFEFF";
1597
1597
  exports.PrependBOM = PrependBOMWrapper;
@@ -1633,9 +1633,9 @@ var require_bom_handling = __commonJS({
1633
1633
  }
1634
1634
  });
1635
1635
 
1636
- // ../../../node_modules/iconv-lite/encodings/internal.js
1636
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js
1637
1637
  var require_internal = __commonJS({
1638
- "../../../node_modules/iconv-lite/encodings/internal.js"(exports, module) {
1638
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/internal.js"(exports, module) {
1639
1639
  "use strict";
1640
1640
  var Buffer2 = require_safer().Buffer;
1641
1641
  module.exports = {
@@ -1792,9 +1792,9 @@ var require_internal = __commonJS({
1792
1792
  }
1793
1793
  });
1794
1794
 
1795
- // ../../../node_modules/iconv-lite/encodings/utf16.js
1795
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js
1796
1796
  var require_utf16 = __commonJS({
1797
- "../../../node_modules/iconv-lite/encodings/utf16.js"(exports) {
1797
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf16.js"(exports) {
1798
1798
  "use strict";
1799
1799
  var Buffer2 = require_safer().Buffer;
1800
1800
  exports.utf16be = Utf16BECodec;
@@ -1908,9 +1908,9 @@ var require_utf16 = __commonJS({
1908
1908
  }
1909
1909
  });
1910
1910
 
1911
- // ../../../node_modules/iconv-lite/encodings/utf7.js
1911
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js
1912
1912
  var require_utf7 = __commonJS({
1913
- "../../../node_modules/iconv-lite/encodings/utf7.js"(exports) {
1913
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/utf7.js"(exports) {
1914
1914
  "use strict";
1915
1915
  var Buffer2 = require_safer().Buffer;
1916
1916
  exports.utf7 = Utf7Codec;
@@ -2109,9 +2109,9 @@ var require_utf7 = __commonJS({
2109
2109
  }
2110
2110
  });
2111
2111
 
2112
- // ../../../node_modules/iconv-lite/encodings/sbcs-codec.js
2112
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js
2113
2113
  var require_sbcs_codec = __commonJS({
2114
- "../../../node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
2114
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
2115
2115
  "use strict";
2116
2116
  var Buffer2 = require_safer().Buffer;
2117
2117
  exports._sbcs = SBCSCodec;
@@ -2163,9 +2163,9 @@ var require_sbcs_codec = __commonJS({
2163
2163
  }
2164
2164
  });
2165
2165
 
2166
- // ../../../node_modules/iconv-lite/encodings/sbcs-data.js
2166
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js
2167
2167
  var require_sbcs_data = __commonJS({
2168
- "../../../node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
2168
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
2169
2169
  "use strict";
2170
2170
  module.exports = {
2171
2171
  // Not supported by iconv, not sure why.
@@ -2312,9 +2312,9 @@ var require_sbcs_data = __commonJS({
2312
2312
  }
2313
2313
  });
2314
2314
 
2315
- // ../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js
2315
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js
2316
2316
  var require_sbcs_data_generated = __commonJS({
2317
- "../../../node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
2317
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
2318
2318
  "use strict";
2319
2319
  module.exports = {
2320
2320
  "437": "cp437",
@@ -2767,9 +2767,9 @@ var require_sbcs_data_generated = __commonJS({
2767
2767
  }
2768
2768
  });
2769
2769
 
2770
- // ../../../node_modules/iconv-lite/encodings/dbcs-codec.js
2770
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js
2771
2771
  var require_dbcs_codec = __commonJS({
2772
- "../../../node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
2772
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
2773
2773
  "use strict";
2774
2774
  var Buffer2 = require_safer().Buffer;
2775
2775
  exports._dbcs = DBCSCodec;
@@ -3114,9 +3114,9 @@ var require_dbcs_codec = __commonJS({
3114
3114
  }
3115
3115
  });
3116
3116
 
3117
- // ../../../node_modules/iconv-lite/encodings/tables/shiftjis.json
3117
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json
3118
3118
  var require_shiftjis = __commonJS({
3119
- "../../../node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
3119
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
3120
3120
  module.exports = [
3121
3121
  ["0", "\0", 128],
3122
3122
  ["a1", "\uFF61", 62],
@@ -3245,9 +3245,9 @@ var require_shiftjis = __commonJS({
3245
3245
  }
3246
3246
  });
3247
3247
 
3248
- // ../../../node_modules/iconv-lite/encodings/tables/eucjp.json
3248
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json
3249
3249
  var require_eucjp = __commonJS({
3250
- "../../../node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
3250
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
3251
3251
  module.exports = [
3252
3252
  ["0", "\0", 127],
3253
3253
  ["8ea1", "\uFF61", 62],
@@ -3433,9 +3433,9 @@ var require_eucjp = __commonJS({
3433
3433
  }
3434
3434
  });
3435
3435
 
3436
- // ../../../node_modules/iconv-lite/encodings/tables/cp936.json
3436
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json
3437
3437
  var require_cp936 = __commonJS({
3438
- "../../../node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
3438
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
3439
3439
  module.exports = [
3440
3440
  ["0", "\0", 127, "\u20AC"],
3441
3441
  ["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
@@ -3703,9 +3703,9 @@ var require_cp936 = __commonJS({
3703
3703
  }
3704
3704
  });
3705
3705
 
3706
- // ../../../node_modules/iconv-lite/encodings/tables/gbk-added.json
3706
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json
3707
3707
  var require_gbk_added = __commonJS({
3708
- "../../../node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
3708
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
3709
3709
  module.exports = [
3710
3710
  ["a140", "\uE4C6", 62],
3711
3711
  ["a180", "\uE505", 32],
@@ -3764,16 +3764,16 @@ var require_gbk_added = __commonJS({
3764
3764
  }
3765
3765
  });
3766
3766
 
3767
- // ../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
3767
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
3768
3768
  var require_gb18030_ranges = __commonJS({
3769
- "../../../node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
3769
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
3770
3770
  module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
3771
3771
  }
3772
3772
  });
3773
3773
 
3774
- // ../../../node_modules/iconv-lite/encodings/tables/cp949.json
3774
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json
3775
3775
  var require_cp949 = __commonJS({
3776
- "../../../node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
3776
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
3777
3777
  module.exports = [
3778
3778
  ["0", "\0", 127],
3779
3779
  ["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
@@ -4050,9 +4050,9 @@ var require_cp949 = __commonJS({
4050
4050
  }
4051
4051
  });
4052
4052
 
4053
- // ../../../node_modules/iconv-lite/encodings/tables/cp950.json
4053
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json
4054
4054
  var require_cp950 = __commonJS({
4055
- "../../../node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
4055
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
4056
4056
  module.exports = [
4057
4057
  ["0", "\0", 127],
4058
4058
  ["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
@@ -4233,9 +4233,9 @@ var require_cp950 = __commonJS({
4233
4233
  }
4234
4234
  });
4235
4235
 
4236
- // ../../../node_modules/iconv-lite/encodings/tables/big5-added.json
4236
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json
4237
4237
  var require_big5_added = __commonJS({
4238
- "../../../node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
4238
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
4239
4239
  module.exports = [
4240
4240
  ["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
4241
4241
  ["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
@@ -4361,9 +4361,9 @@ var require_big5_added = __commonJS({
4361
4361
  }
4362
4362
  });
4363
4363
 
4364
- // ../../../node_modules/iconv-lite/encodings/dbcs-data.js
4364
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js
4365
4365
  var require_dbcs_data = __commonJS({
4366
- "../../../node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
4366
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
4367
4367
  "use strict";
4368
4368
  module.exports = {
4369
4369
  // == Japanese/ShiftJIS ====================================================
@@ -4553,9 +4553,9 @@ var require_dbcs_data = __commonJS({
4553
4553
  }
4554
4554
  });
4555
4555
 
4556
- // ../../../node_modules/iconv-lite/encodings/index.js
4556
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/encodings/index.js
4557
4557
  var require_encodings = __commonJS({
4558
- "../../../node_modules/iconv-lite/encodings/index.js"(exports, module) {
4558
+ "../../../node_modules/body-parser/node_modules/iconv-lite/encodings/index.js"(exports, module) {
4559
4559
  "use strict";
4560
4560
  var modules = [
4561
4561
  require_internal(),
@@ -4577,9 +4577,9 @@ var require_encodings = __commonJS({
4577
4577
  }
4578
4578
  });
4579
4579
 
4580
- // ../../../node_modules/iconv-lite/lib/streams.js
4580
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/lib/streams.js
4581
4581
  var require_streams = __commonJS({
4582
- "../../../node_modules/iconv-lite/lib/streams.js"(exports, module) {
4582
+ "../../../node_modules/body-parser/node_modules/iconv-lite/lib/streams.js"(exports, module) {
4583
4583
  "use strict";
4584
4584
  var Buffer2 = __require("buffer").Buffer;
4585
4585
  var Transform = __require("stream").Transform;
@@ -4682,9 +4682,9 @@ var require_streams = __commonJS({
4682
4682
  }
4683
4683
  });
4684
4684
 
4685
- // ../../../node_modules/iconv-lite/lib/extend-node.js
4685
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js
4686
4686
  var require_extend_node = __commonJS({
4687
- "../../../node_modules/iconv-lite/lib/extend-node.js"(exports, module) {
4687
+ "../../../node_modules/body-parser/node_modules/iconv-lite/lib/extend-node.js"(exports, module) {
4688
4688
  "use strict";
4689
4689
  var Buffer2 = __require("buffer").Buffer;
4690
4690
  module.exports = function(iconv) {
@@ -4835,9 +4835,9 @@ var require_extend_node = __commonJS({
4835
4835
  }
4836
4836
  });
4837
4837
 
4838
- // ../../../node_modules/iconv-lite/lib/index.js
4838
+ // ../../../node_modules/body-parser/node_modules/iconv-lite/lib/index.js
4839
4839
  var require_lib = __commonJS({
4840
- "../../../node_modules/iconv-lite/lib/index.js"(exports, module) {
4840
+ "../../../node_modules/body-parser/node_modules/iconv-lite/lib/index.js"(exports, module) {
4841
4841
  "use strict";
4842
4842
  var Buffer2 = require_safer().Buffer;
4843
4843
  var bomHandling = require_bom_handling();
@@ -4974,9 +4974,9 @@ var require_unpipe = __commonJS({
4974
4974
  }
4975
4975
  });
4976
4976
 
4977
- // ../../../node_modules/express/node_modules/raw-body/index.js
4977
+ // ../../../node_modules/body-parser/node_modules/raw-body/index.js
4978
4978
  var require_raw_body = __commonJS({
4979
- "../../../node_modules/express/node_modules/raw-body/index.js"(exports, module) {
4979
+ "../../../node_modules/body-parser/node_modules/raw-body/index.js"(exports, module) {
4980
4980
  "use strict";
4981
4981
  var asyncHooks = tryRequireAsyncHooks();
4982
4982
  var bytes = require_bytes();
@@ -5361,9 +5361,9 @@ var require_on_finished = __commonJS({
5361
5361
  }
5362
5362
  });
5363
5363
 
5364
- // ../../../node_modules/express/node_modules/body-parser/lib/read.js
5364
+ // ../../../node_modules/body-parser/lib/read.js
5365
5365
  var require_read = __commonJS({
5366
- "../../../node_modules/express/node_modules/body-parser/lib/read.js"(exports, module) {
5366
+ "../../../node_modules/body-parser/lib/read.js"(exports, module) {
5367
5367
  "use strict";
5368
5368
  var createError = require_http_errors();
5369
5369
  var destroy = require_destroy();
@@ -14368,9 +14368,9 @@ var require_type_is = __commonJS({
14368
14368
  }
14369
14369
  });
14370
14370
 
14371
- // ../../../node_modules/express/node_modules/body-parser/lib/types/json.js
14371
+ // ../../../node_modules/body-parser/lib/types/json.js
14372
14372
  var require_json = __commonJS({
14373
- "../../../node_modules/express/node_modules/body-parser/lib/types/json.js"(exports, module) {
14373
+ "../../../node_modules/body-parser/lib/types/json.js"(exports, module) {
14374
14374
  "use strict";
14375
14375
  var bytes = require_bytes();
14376
14376
  var contentType = require_content_type();
@@ -14509,9 +14509,9 @@ var require_json = __commonJS({
14509
14509
  }
14510
14510
  });
14511
14511
 
14512
- // ../../../node_modules/express/node_modules/body-parser/lib/types/raw.js
14512
+ // ../../../node_modules/body-parser/lib/types/raw.js
14513
14513
  var require_raw = __commonJS({
14514
- "../../../node_modules/express/node_modules/body-parser/lib/types/raw.js"(exports, module) {
14514
+ "../../../node_modules/body-parser/lib/types/raw.js"(exports, module) {
14515
14515
  "use strict";
14516
14516
  var bytes = require_bytes();
14517
14517
  var debug = require_src()("body-parser:raw");
@@ -14568,9 +14568,9 @@ var require_raw = __commonJS({
14568
14568
  }
14569
14569
  });
14570
14570
 
14571
- // ../../../node_modules/express/node_modules/body-parser/lib/types/text.js
14571
+ // ../../../node_modules/body-parser/lib/types/text.js
14572
14572
  var require_text = __commonJS({
14573
- "../../../node_modules/express/node_modules/body-parser/lib/types/text.js"(exports, module) {
14573
+ "../../../node_modules/body-parser/lib/types/text.js"(exports, module) {
14574
14574
  "use strict";
14575
14575
  var bytes = require_bytes();
14576
14576
  var contentType = require_content_type();
@@ -16501,9 +16501,9 @@ var require_side_channel = __commonJS({
16501
16501
  }
16502
16502
  });
16503
16503
 
16504
- // ../../../node_modules/qs/lib/formats.js
16504
+ // ../../../node_modules/body-parser/node_modules/qs/lib/formats.js
16505
16505
  var require_formats = __commonJS({
16506
- "../../../node_modules/qs/lib/formats.js"(exports, module) {
16506
+ "../../../node_modules/body-parser/node_modules/qs/lib/formats.js"(exports, module) {
16507
16507
  "use strict";
16508
16508
  var replace = String.prototype.replace;
16509
16509
  var percentTwenties = /%20/g;
@@ -16527,17 +16527,32 @@ var require_formats = __commonJS({
16527
16527
  }
16528
16528
  });
16529
16529
 
16530
- // ../../../node_modules/qs/lib/utils.js
16530
+ // ../../../node_modules/body-parser/node_modules/qs/lib/utils.js
16531
16531
  var require_utils = __commonJS({
16532
- "../../../node_modules/qs/lib/utils.js"(exports, module) {
16532
+ "../../../node_modules/body-parser/node_modules/qs/lib/utils.js"(exports, module) {
16533
16533
  "use strict";
16534
16534
  var formats = require_formats();
16535
+ var getSideChannel = require_side_channel();
16535
16536
  var has = Object.prototype.hasOwnProperty;
16536
16537
  var isArray = Array.isArray;
16538
+ var overflowChannel = getSideChannel();
16539
+ var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
16540
+ overflowChannel.set(obj, maxIndex);
16541
+ return obj;
16542
+ }, "markOverflow");
16543
+ var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
16544
+ return overflowChannel.has(obj);
16545
+ }, "isOverflow");
16546
+ var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
16547
+ return overflowChannel.get(obj);
16548
+ }, "getMaxIndex");
16549
+ var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
16550
+ overflowChannel.set(obj, maxIndex);
16551
+ }, "setMaxIndex");
16537
16552
  var hexTable = (function() {
16538
16553
  var array = [];
16539
16554
  for (var i = 0; i < 256; ++i) {
16540
- array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
16555
+ array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
16541
16556
  }
16542
16557
  return array;
16543
16558
  })();
@@ -16549,7 +16564,7 @@ var require_utils = __commonJS({
16549
16564
  var compacted = [];
16550
16565
  for (var j = 0; j < obj.length; ++j) {
16551
16566
  if (typeof obj[j] !== "undefined") {
16552
- compacted.push(obj[j]);
16567
+ compacted[compacted.length] = obj[j];
16553
16568
  }
16554
16569
  }
16555
16570
  item.obj[item.prop] = compacted;
@@ -16573,9 +16588,17 @@ var require_utils = __commonJS({
16573
16588
  }
16574
16589
  if (typeof source !== "object" && typeof source !== "function") {
16575
16590
  if (isArray(target)) {
16576
- target.push(source);
16591
+ var nextIndex = target.length;
16592
+ if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
16593
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
16594
+ }
16595
+ target[nextIndex] = source;
16577
16596
  } else if (target && typeof target === "object") {
16578
- if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
16597
+ if (isOverflow(target)) {
16598
+ var newIndex = getMaxIndex(target) + 1;
16599
+ target[newIndex] = source;
16600
+ setMaxIndex(target, newIndex);
16601
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
16579
16602
  target[source] = true;
16580
16603
  }
16581
16604
  } else {
@@ -16587,9 +16610,27 @@ var require_utils = __commonJS({
16587
16610
  return target;
16588
16611
  }
16589
16612
  if (!target || typeof target !== "object") {
16590
- return [
16613
+ if (isOverflow(source)) {
16614
+ var sourceKeys = Object.keys(source);
16615
+ var result = options && options.plainObjects ? {
16616
+ __proto__: null,
16617
+ 0: target
16618
+ } : {
16619
+ 0: target
16620
+ };
16621
+ for (var m = 0; m < sourceKeys.length; m++) {
16622
+ var oldKey = parseInt(sourceKeys[m], 10);
16623
+ result[oldKey + 1] = source[sourceKeys[m]];
16624
+ }
16625
+ return markOverflow(result, getMaxIndex(source) + 1);
16626
+ }
16627
+ var combined = [
16591
16628
  target
16592
16629
  ].concat(source);
16630
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
16631
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
16632
+ }
16633
+ return combined;
16593
16634
  }
16594
16635
  var mergeTarget = target;
16595
16636
  if (isArray(target) && !isArray(source)) {
@@ -16602,7 +16643,7 @@ var require_utils = __commonJS({
16602
16643
  if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
16603
16644
  target[i] = merge2(targetItem, item, options);
16604
16645
  } else {
16605
- target.push(item);
16646
+ target[target.length] = item;
16606
16647
  }
16607
16648
  } else {
16608
16649
  target[i] = item;
@@ -16617,6 +16658,15 @@ var require_utils = __commonJS({
16617
16658
  } else {
16618
16659
  acc[key] = value;
16619
16660
  }
16661
+ if (isOverflow(source) && !isOverflow(acc)) {
16662
+ markOverflow(acc, getMaxIndex(source));
16663
+ }
16664
+ if (isOverflow(acc)) {
16665
+ var keyNum = parseInt(key, 10);
16666
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
16667
+ setMaxIndex(acc, keyNum);
16668
+ }
16669
+ }
16620
16670
  return acc;
16621
16671
  }, mergeTarget);
16622
16672
  }, "merge");
@@ -16701,11 +16751,11 @@ var require_utils = __commonJS({
16701
16751
  var key = keys[j];
16702
16752
  var val = obj[key];
16703
16753
  if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
16704
- queue.push({
16754
+ queue[queue.length] = {
16705
16755
  obj,
16706
16756
  prop: key
16707
- });
16708
- refs.push(val);
16757
+ };
16758
+ refs[refs.length] = val;
16709
16759
  }
16710
16760
  }
16711
16761
  }
@@ -16721,14 +16771,26 @@ var require_utils = __commonJS({
16721
16771
  }
16722
16772
  return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
16723
16773
  }, "isBuffer");
16724
- var combine = /* @__PURE__ */ __name(function combine2(a, b) {
16725
- return [].concat(a, b);
16774
+ var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
16775
+ if (isOverflow(a)) {
16776
+ var newIndex = getMaxIndex(a) + 1;
16777
+ a[newIndex] = b;
16778
+ setMaxIndex(a, newIndex);
16779
+ return a;
16780
+ }
16781
+ var result = [].concat(a, b);
16782
+ if (result.length > arrayLimit) {
16783
+ return markOverflow(arrayToObject(result, {
16784
+ plainObjects
16785
+ }), result.length - 1);
16786
+ }
16787
+ return result;
16726
16788
  }, "combine");
16727
16789
  var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
16728
16790
  if (isArray(val)) {
16729
16791
  var mapped = [];
16730
16792
  for (var i = 0; i < val.length; i += 1) {
16731
- mapped.push(fn(val[i]));
16793
+ mapped[mapped.length] = fn(val[i]);
16732
16794
  }
16733
16795
  return mapped;
16734
16796
  }
@@ -16742,16 +16804,18 @@ var require_utils = __commonJS({
16742
16804
  decode,
16743
16805
  encode,
16744
16806
  isBuffer,
16807
+ isOverflow,
16745
16808
  isRegExp,
16809
+ markOverflow,
16746
16810
  maybeMap,
16747
16811
  merge
16748
16812
  };
16749
16813
  }
16750
16814
  });
16751
16815
 
16752
- // ../../../node_modules/qs/lib/stringify.js
16816
+ // ../../../node_modules/body-parser/node_modules/qs/lib/stringify.js
16753
16817
  var require_stringify = __commonJS({
16754
- "../../../node_modules/qs/lib/stringify.js"(exports, module) {
16818
+ "../../../node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports, module) {
16755
16819
  "use strict";
16756
16820
  var getSideChannel = require_side_channel();
16757
16821
  var utils = require_utils();
@@ -17004,9 +17068,9 @@ var require_stringify = __commonJS({
17004
17068
  }
17005
17069
  });
17006
17070
 
17007
- // ../../../node_modules/qs/lib/parse.js
17071
+ // ../../../node_modules/body-parser/node_modules/qs/lib/parse.js
17008
17072
  var require_parse = __commonJS({
17009
- "../../../node_modules/qs/lib/parse.js"(exports, module) {
17073
+ "../../../node_modules/body-parser/node_modules/qs/lib/parse.js"(exports, module) {
17010
17074
  "use strict";
17011
17075
  var utils = require_utils();
17012
17076
  var has = Object.prototype.hasOwnProperty;
@@ -17091,9 +17155,11 @@ var require_parse = __commonJS({
17091
17155
  val = options.strictNullHandling ? null : "";
17092
17156
  } else {
17093
17157
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
17094
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
17095
- return options.decoder(encodedVal, defaults.decoder, charset, "value");
17096
- });
17158
+ if (key !== null) {
17159
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
17160
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
17161
+ });
17162
+ }
17097
17163
  }
17098
17164
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
17099
17165
  val = interpretNumericEntities(String(val));
@@ -17103,11 +17169,19 @@ var require_parse = __commonJS({
17103
17169
  val
17104
17170
  ] : val;
17105
17171
  }
17106
- var existing = has.call(obj, key);
17107
- if (existing && options.duplicates === "combine") {
17108
- obj[key] = utils.combine(obj[key], val);
17109
- } else if (!existing || options.duplicates === "last") {
17110
- obj[key] = val;
17172
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
17173
+ if (options.throwOnLimitExceeded) {
17174
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
17175
+ }
17176
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
17177
+ }
17178
+ if (key !== null) {
17179
+ var existing = has.call(obj, key);
17180
+ if (existing && options.duplicates === "combine") {
17181
+ obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
17182
+ } else if (!existing || options.duplicates === "last") {
17183
+ obj[key] = val;
17184
+ }
17111
17185
  }
17112
17186
  }
17113
17187
  return obj;
@@ -17123,7 +17197,11 @@ var require_parse = __commonJS({
17123
17197
  var obj;
17124
17198
  var root = chain[i];
17125
17199
  if (root === "[]" && options.parseArrays) {
17126
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
17200
+ if (utils.isOverflow(leaf)) {
17201
+ obj = leaf;
17202
+ } else {
17203
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
17204
+ }
17127
17205
  } else {
17128
17206
  obj = options.plainObjects ? {
17129
17207
  __proto__: null
@@ -17131,13 +17209,19 @@ var require_parse = __commonJS({
17131
17209
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
17132
17210
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
17133
17211
  var index = parseInt(decodedRoot, 10);
17212
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
17134
17213
  if (!options.parseArrays && decodedRoot === "") {
17135
17214
  obj = {
17136
17215
  0: leaf
17137
17216
  };
17138
- } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {
17217
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
17139
17218
  obj = [];
17140
17219
  obj[index] = leaf;
17220
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
17221
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
17222
+ } else if (isValidArrayIndex) {
17223
+ obj[index] = leaf;
17224
+ utils.markOverflow(obj, index);
17141
17225
  } else if (decodedRoot !== "__proto__") {
17142
17226
  obj[decodedRoot] = leaf;
17143
17227
  }
@@ -17146,14 +17230,21 @@ var require_parse = __commonJS({
17146
17230
  }
17147
17231
  return leaf;
17148
17232
  }, "parseObject");
17149
- var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
17150
- if (!givenKey) {
17151
- return;
17152
- }
17233
+ var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
17153
17234
  var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
17235
+ if (options.depth <= 0) {
17236
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
17237
+ if (!options.allowPrototypes) {
17238
+ return;
17239
+ }
17240
+ }
17241
+ return [
17242
+ key
17243
+ ];
17244
+ }
17154
17245
  var brackets = /(\[[^[\]]*])/;
17155
17246
  var child = /(\[[^[\]]*])/g;
17156
- var segment = options.depth > 0 && brackets.exec(key);
17247
+ var segment = brackets.exec(key);
17157
17248
  var parent = segment ? key.slice(0, segment.index) : key;
17158
17249
  var keys = [];
17159
17250
  if (parent) {
@@ -17162,23 +17253,34 @@ var require_parse = __commonJS({
17162
17253
  return;
17163
17254
  }
17164
17255
  }
17165
- keys.push(parent);
17256
+ keys[keys.length] = parent;
17166
17257
  }
17167
17258
  var i = 0;
17168
- while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
17259
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
17169
17260
  i += 1;
17170
- if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
17261
+ var segmentContent = segment[1].slice(1, -1);
17262
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
17171
17263
  if (!options.allowPrototypes) {
17172
17264
  return;
17173
17265
  }
17174
17266
  }
17175
- keys.push(segment[1]);
17267
+ keys[keys.length] = segment[1];
17176
17268
  }
17177
17269
  if (segment) {
17178
17270
  if (options.strictDepth === true) {
17179
17271
  throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
17180
17272
  }
17181
- keys.push("[" + key.slice(segment.index) + "]");
17273
+ keys[keys.length] = "[" + key.slice(segment.index) + "]";
17274
+ }
17275
+ return keys;
17276
+ }, "splitKeyIntoSegments");
17277
+ var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
17278
+ if (!givenKey) {
17279
+ return;
17280
+ }
17281
+ var keys = splitKeyIntoSegments(givenKey, options);
17282
+ if (!keys) {
17283
+ return;
17182
17284
  }
17183
17285
  return parseObject(keys, val, options, valuesParsed);
17184
17286
  }, "parseQueryStringKeys");
@@ -17257,9 +17359,9 @@ var require_parse = __commonJS({
17257
17359
  }
17258
17360
  });
17259
17361
 
17260
- // ../../../node_modules/qs/lib/index.js
17362
+ // ../../../node_modules/body-parser/node_modules/qs/lib/index.js
17261
17363
  var require_lib2 = __commonJS({
17262
- "../../../node_modules/qs/lib/index.js"(exports, module) {
17364
+ "../../../node_modules/body-parser/node_modules/qs/lib/index.js"(exports, module) {
17263
17365
  "use strict";
17264
17366
  var stringify = require_stringify();
17265
17367
  var parse = require_parse();
@@ -17272,9 +17374,9 @@ var require_lib2 = __commonJS({
17272
17374
  }
17273
17375
  });
17274
17376
 
17275
- // ../../../node_modules/express/node_modules/body-parser/lib/types/urlencoded.js
17377
+ // ../../../node_modules/body-parser/lib/types/urlencoded.js
17276
17378
  var require_urlencoded = __commonJS({
17277
- "../../../node_modules/express/node_modules/body-parser/lib/types/urlencoded.js"(exports, module) {
17379
+ "../../../node_modules/body-parser/lib/types/urlencoded.js"(exports, module) {
17278
17380
  "use strict";
17279
17381
  var bytes = require_bytes();
17280
17382
  var contentType = require_content_type();
@@ -17455,9 +17557,9 @@ var require_urlencoded = __commonJS({
17455
17557
  }
17456
17558
  });
17457
17559
 
17458
- // ../../../node_modules/express/node_modules/body-parser/index.js
17560
+ // ../../../node_modules/body-parser/index.js
17459
17561
  var require_body_parser = __commonJS({
17460
- "../../../node_modules/express/node_modules/body-parser/index.js"(exports, module) {
17562
+ "../../../node_modules/body-parser/index.js"(exports, module) {
17461
17563
  "use strict";
17462
17564
  var deprecate = require_depd()("body-parser");
17463
17565
  var parsers = /* @__PURE__ */ Object.create(null);
@@ -18331,6 +18433,464 @@ var require_finalhandler = __commonJS({
18331
18433
  }
18332
18434
  });
18333
18435
 
18436
+ // ../../../node_modules/express/node_modules/ms/index.js
18437
+ var require_ms3 = __commonJS({
18438
+ "../../../node_modules/express/node_modules/ms/index.js"(exports, module) {
18439
+ "use strict";
18440
+ var s = 1e3;
18441
+ var m = s * 60;
18442
+ var h = m * 60;
18443
+ var d = h * 24;
18444
+ var y = d * 365.25;
18445
+ module.exports = function(val, options) {
18446
+ options = options || {};
18447
+ var type = typeof val;
18448
+ if (type === "string" && val.length > 0) {
18449
+ return parse(val);
18450
+ } else if (type === "number" && isNaN(val) === false) {
18451
+ return options.long ? fmtLong(val) : fmtShort(val);
18452
+ }
18453
+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
18454
+ };
18455
+ function parse(str) {
18456
+ str = String(str);
18457
+ if (str.length > 100) {
18458
+ return;
18459
+ }
18460
+ var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
18461
+ if (!match) {
18462
+ return;
18463
+ }
18464
+ var n = parseFloat(match[1]);
18465
+ var type = (match[2] || "ms").toLowerCase();
18466
+ switch (type) {
18467
+ case "years":
18468
+ case "year":
18469
+ case "yrs":
18470
+ case "yr":
18471
+ case "y":
18472
+ return n * y;
18473
+ case "days":
18474
+ case "day":
18475
+ case "d":
18476
+ return n * d;
18477
+ case "hours":
18478
+ case "hour":
18479
+ case "hrs":
18480
+ case "hr":
18481
+ case "h":
18482
+ return n * h;
18483
+ case "minutes":
18484
+ case "minute":
18485
+ case "mins":
18486
+ case "min":
18487
+ case "m":
18488
+ return n * m;
18489
+ case "seconds":
18490
+ case "second":
18491
+ case "secs":
18492
+ case "sec":
18493
+ case "s":
18494
+ return n * s;
18495
+ case "milliseconds":
18496
+ case "millisecond":
18497
+ case "msecs":
18498
+ case "msec":
18499
+ case "ms":
18500
+ return n;
18501
+ default:
18502
+ return void 0;
18503
+ }
18504
+ }
18505
+ __name(parse, "parse");
18506
+ function fmtShort(ms) {
18507
+ if (ms >= d) {
18508
+ return Math.round(ms / d) + "d";
18509
+ }
18510
+ if (ms >= h) {
18511
+ return Math.round(ms / h) + "h";
18512
+ }
18513
+ if (ms >= m) {
18514
+ return Math.round(ms / m) + "m";
18515
+ }
18516
+ if (ms >= s) {
18517
+ return Math.round(ms / s) + "s";
18518
+ }
18519
+ return ms + "ms";
18520
+ }
18521
+ __name(fmtShort, "fmtShort");
18522
+ function fmtLong(ms) {
18523
+ return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
18524
+ }
18525
+ __name(fmtLong, "fmtLong");
18526
+ function plural(ms, n, name) {
18527
+ if (ms < n) {
18528
+ return;
18529
+ }
18530
+ if (ms < n * 1.5) {
18531
+ return Math.floor(ms / n) + " " + name;
18532
+ }
18533
+ return Math.ceil(ms / n) + " " + name + "s";
18534
+ }
18535
+ __name(plural, "plural");
18536
+ }
18537
+ });
18538
+
18539
+ // ../../../node_modules/express/node_modules/debug/src/debug.js
18540
+ var require_debug3 = __commonJS({
18541
+ "../../../node_modules/express/node_modules/debug/src/debug.js"(exports, module) {
18542
+ "use strict";
18543
+ exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
18544
+ exports.coerce = coerce;
18545
+ exports.disable = disable;
18546
+ exports.enable = enable;
18547
+ exports.enabled = enabled;
18548
+ exports.humanize = require_ms3();
18549
+ exports.names = [];
18550
+ exports.skips = [];
18551
+ exports.formatters = {};
18552
+ var prevTime;
18553
+ function selectColor(namespace) {
18554
+ var hash = 0, i;
18555
+ for (i in namespace) {
18556
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
18557
+ hash |= 0;
18558
+ }
18559
+ return exports.colors[Math.abs(hash) % exports.colors.length];
18560
+ }
18561
+ __name(selectColor, "selectColor");
18562
+ function createDebug(namespace) {
18563
+ function debug() {
18564
+ if (!debug.enabled) return;
18565
+ var self = debug;
18566
+ var curr = +/* @__PURE__ */ new Date();
18567
+ var ms = curr - (prevTime || curr);
18568
+ self.diff = ms;
18569
+ self.prev = prevTime;
18570
+ self.curr = curr;
18571
+ prevTime = curr;
18572
+ var args = new Array(arguments.length);
18573
+ for (var i = 0; i < args.length; i++) {
18574
+ args[i] = arguments[i];
18575
+ }
18576
+ args[0] = exports.coerce(args[0]);
18577
+ if ("string" !== typeof args[0]) {
18578
+ args.unshift("%O");
18579
+ }
18580
+ var index = 0;
18581
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
18582
+ if (match === "%%") return match;
18583
+ index++;
18584
+ var formatter = exports.formatters[format];
18585
+ if ("function" === typeof formatter) {
18586
+ var val = args[index];
18587
+ match = formatter.call(self, val);
18588
+ args.splice(index, 1);
18589
+ index--;
18590
+ }
18591
+ return match;
18592
+ });
18593
+ exports.formatArgs.call(self, args);
18594
+ var logFn = debug.log || exports.log || console.log.bind(console);
18595
+ logFn.apply(self, args);
18596
+ }
18597
+ __name(debug, "debug");
18598
+ debug.namespace = namespace;
18599
+ debug.enabled = exports.enabled(namespace);
18600
+ debug.useColors = exports.useColors();
18601
+ debug.color = selectColor(namespace);
18602
+ if ("function" === typeof exports.init) {
18603
+ exports.init(debug);
18604
+ }
18605
+ return debug;
18606
+ }
18607
+ __name(createDebug, "createDebug");
18608
+ function enable(namespaces) {
18609
+ exports.save(namespaces);
18610
+ exports.names = [];
18611
+ exports.skips = [];
18612
+ var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
18613
+ var len = split.length;
18614
+ for (var i = 0; i < len; i++) {
18615
+ if (!split[i]) continue;
18616
+ namespaces = split[i].replace(/\*/g, ".*?");
18617
+ if (namespaces[0] === "-") {
18618
+ exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
18619
+ } else {
18620
+ exports.names.push(new RegExp("^" + namespaces + "$"));
18621
+ }
18622
+ }
18623
+ }
18624
+ __name(enable, "enable");
18625
+ function disable() {
18626
+ exports.enable("");
18627
+ }
18628
+ __name(disable, "disable");
18629
+ function enabled(name) {
18630
+ var i, len;
18631
+ for (i = 0, len = exports.skips.length; i < len; i++) {
18632
+ if (exports.skips[i].test(name)) {
18633
+ return false;
18634
+ }
18635
+ }
18636
+ for (i = 0, len = exports.names.length; i < len; i++) {
18637
+ if (exports.names[i].test(name)) {
18638
+ return true;
18639
+ }
18640
+ }
18641
+ return false;
18642
+ }
18643
+ __name(enabled, "enabled");
18644
+ function coerce(val) {
18645
+ if (val instanceof Error) return val.stack || val.message;
18646
+ return val;
18647
+ }
18648
+ __name(coerce, "coerce");
18649
+ }
18650
+ });
18651
+
18652
+ // ../../../node_modules/express/node_modules/debug/src/browser.js
18653
+ var require_browser3 = __commonJS({
18654
+ "../../../node_modules/express/node_modules/debug/src/browser.js"(exports, module) {
18655
+ "use strict";
18656
+ exports = module.exports = require_debug3();
18657
+ exports.log = log;
18658
+ exports.formatArgs = formatArgs;
18659
+ exports.save = save;
18660
+ exports.load = load;
18661
+ exports.useColors = useColors;
18662
+ exports.storage = "undefined" != typeof chrome && "undefined" != typeof chrome.storage ? chrome.storage.local : localstorage();
18663
+ exports.colors = [
18664
+ "lightseagreen",
18665
+ "forestgreen",
18666
+ "goldenrod",
18667
+ "dodgerblue",
18668
+ "darkorchid",
18669
+ "crimson"
18670
+ ];
18671
+ function useColors() {
18672
+ if (typeof window !== "undefined" && window.process && window.process.type === "renderer") {
18673
+ return true;
18674
+ }
18675
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
18676
+ typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
18677
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
18678
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
18679
+ typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
18680
+ }
18681
+ __name(useColors, "useColors");
18682
+ exports.formatters.j = function(v) {
18683
+ try {
18684
+ return JSON.stringify(v);
18685
+ } catch (err) {
18686
+ return "[UnexpectedJSONParseError]: " + err.message;
18687
+ }
18688
+ };
18689
+ function formatArgs(args) {
18690
+ var useColors2 = this.useColors;
18691
+ args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff);
18692
+ if (!useColors2) return;
18693
+ var c = "color: " + this.color;
18694
+ args.splice(1, 0, c, "color: inherit");
18695
+ var index = 0;
18696
+ var lastC = 0;
18697
+ args[0].replace(/%[a-zA-Z%]/g, function(match) {
18698
+ if ("%%" === match) return;
18699
+ index++;
18700
+ if ("%c" === match) {
18701
+ lastC = index;
18702
+ }
18703
+ });
18704
+ args.splice(lastC, 0, c);
18705
+ }
18706
+ __name(formatArgs, "formatArgs");
18707
+ function log() {
18708
+ return "object" === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments);
18709
+ }
18710
+ __name(log, "log");
18711
+ function save(namespaces) {
18712
+ try {
18713
+ if (null == namespaces) {
18714
+ exports.storage.removeItem("debug");
18715
+ } else {
18716
+ exports.storage.debug = namespaces;
18717
+ }
18718
+ } catch (e) {
18719
+ }
18720
+ }
18721
+ __name(save, "save");
18722
+ function load() {
18723
+ var r;
18724
+ try {
18725
+ r = exports.storage.debug;
18726
+ } catch (e) {
18727
+ }
18728
+ if (!r && typeof process !== "undefined" && "env" in process) {
18729
+ r = process.env.DEBUG;
18730
+ }
18731
+ return r;
18732
+ }
18733
+ __name(load, "load");
18734
+ exports.enable(load());
18735
+ function localstorage() {
18736
+ try {
18737
+ return window.localStorage;
18738
+ } catch (e) {
18739
+ }
18740
+ }
18741
+ __name(localstorage, "localstorage");
18742
+ }
18743
+ });
18744
+
18745
+ // ../../../node_modules/express/node_modules/debug/src/node.js
18746
+ var require_node3 = __commonJS({
18747
+ "../../../node_modules/express/node_modules/debug/src/node.js"(exports, module) {
18748
+ "use strict";
18749
+ var tty = __require("tty");
18750
+ var util = __require("util");
18751
+ exports = module.exports = require_debug3();
18752
+ exports.init = init;
18753
+ exports.log = log;
18754
+ exports.formatArgs = formatArgs;
18755
+ exports.save = save;
18756
+ exports.load = load;
18757
+ exports.useColors = useColors;
18758
+ exports.colors = [
18759
+ 6,
18760
+ 2,
18761
+ 3,
18762
+ 4,
18763
+ 5,
18764
+ 1
18765
+ ];
18766
+ exports.inspectOpts = Object.keys(process.env).filter(function(key) {
18767
+ return /^debug_/i.test(key);
18768
+ }).reduce(function(obj, key) {
18769
+ var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
18770
+ return k.toUpperCase();
18771
+ });
18772
+ var val = process.env[key];
18773
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
18774
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
18775
+ else if (val === "null") val = null;
18776
+ else val = Number(val);
18777
+ obj[prop] = val;
18778
+ return obj;
18779
+ }, {});
18780
+ var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
18781
+ if (1 !== fd && 2 !== fd) {
18782
+ util.deprecate(function() {
18783
+ }, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
18784
+ }
18785
+ var stream = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
18786
+ function useColors() {
18787
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
18788
+ }
18789
+ __name(useColors, "useColors");
18790
+ exports.formatters.o = function(v) {
18791
+ this.inspectOpts.colors = this.useColors;
18792
+ return util.inspect(v, this.inspectOpts).split("\n").map(function(str) {
18793
+ return str.trim();
18794
+ }).join(" ");
18795
+ };
18796
+ exports.formatters.O = function(v) {
18797
+ this.inspectOpts.colors = this.useColors;
18798
+ return util.inspect(v, this.inspectOpts);
18799
+ };
18800
+ function formatArgs(args) {
18801
+ var name = this.namespace;
18802
+ var useColors2 = this.useColors;
18803
+ if (useColors2) {
18804
+ var c = this.color;
18805
+ var prefix = " \x1B[3" + c + ";1m" + name + " \x1B[0m";
18806
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
18807
+ args.push("\x1B[3" + c + "m+" + exports.humanize(this.diff) + "\x1B[0m");
18808
+ } else {
18809
+ args[0] = (/* @__PURE__ */ new Date()).toUTCString() + " " + name + " " + args[0];
18810
+ }
18811
+ }
18812
+ __name(formatArgs, "formatArgs");
18813
+ function log() {
18814
+ return stream.write(util.format.apply(util, arguments) + "\n");
18815
+ }
18816
+ __name(log, "log");
18817
+ function save(namespaces) {
18818
+ if (null == namespaces) {
18819
+ delete process.env.DEBUG;
18820
+ } else {
18821
+ process.env.DEBUG = namespaces;
18822
+ }
18823
+ }
18824
+ __name(save, "save");
18825
+ function load() {
18826
+ return process.env.DEBUG;
18827
+ }
18828
+ __name(load, "load");
18829
+ function createWritableStdioStream(fd2) {
18830
+ var stream2;
18831
+ var tty_wrap = process.binding("tty_wrap");
18832
+ switch (tty_wrap.guessHandleType(fd2)) {
18833
+ case "TTY":
18834
+ stream2 = new tty.WriteStream(fd2);
18835
+ stream2._type = "tty";
18836
+ if (stream2._handle && stream2._handle.unref) {
18837
+ stream2._handle.unref();
18838
+ }
18839
+ break;
18840
+ case "FILE":
18841
+ var fs2 = __require("fs");
18842
+ stream2 = new fs2.SyncWriteStream(fd2, {
18843
+ autoClose: false
18844
+ });
18845
+ stream2._type = "fs";
18846
+ break;
18847
+ case "PIPE":
18848
+ case "TCP":
18849
+ var net = __require("net");
18850
+ stream2 = new net.Socket({
18851
+ fd: fd2,
18852
+ readable: false,
18853
+ writable: true
18854
+ });
18855
+ stream2.readable = false;
18856
+ stream2.read = null;
18857
+ stream2._type = "pipe";
18858
+ if (stream2._handle && stream2._handle.unref) {
18859
+ stream2._handle.unref();
18860
+ }
18861
+ break;
18862
+ default:
18863
+ throw new Error("Implement me. Unknown stream file type!");
18864
+ }
18865
+ stream2.fd = fd2;
18866
+ stream2._isStdio = true;
18867
+ return stream2;
18868
+ }
18869
+ __name(createWritableStdioStream, "createWritableStdioStream");
18870
+ function init(debug) {
18871
+ debug.inspectOpts = {};
18872
+ var keys = Object.keys(exports.inspectOpts);
18873
+ for (var i = 0; i < keys.length; i++) {
18874
+ debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
18875
+ }
18876
+ }
18877
+ __name(init, "init");
18878
+ exports.enable(load());
18879
+ }
18880
+ });
18881
+
18882
+ // ../../../node_modules/express/node_modules/debug/src/index.js
18883
+ var require_src3 = __commonJS({
18884
+ "../../../node_modules/express/node_modules/debug/src/index.js"(exports, module) {
18885
+ "use strict";
18886
+ if (typeof process !== "undefined" && process.type === "renderer") {
18887
+ module.exports = require_browser3();
18888
+ } else {
18889
+ module.exports = require_node3();
18890
+ }
18891
+ }
18892
+ });
18893
+
18334
18894
  // ../../../node_modules/array-flatten/array-flatten.js
18335
18895
  var require_array_flatten = __commonJS({
18336
18896
  "../../../node_modules/array-flatten/array-flatten.js"(exports, module) {
@@ -18480,7 +19040,7 @@ var require_layer = __commonJS({
18480
19040
  "../../../node_modules/express/lib/router/layer.js"(exports, module) {
18481
19041
  "use strict";
18482
19042
  var pathRegexp = require_path_to_regexp();
18483
- var debug = require_src()("express:router:layer");
19043
+ var debug = require_src3()("express:router:layer");
18484
19044
  var hasOwnProperty = Object.prototype.hasOwnProperty;
18485
19045
  module.exports = Layer;
18486
19046
  function Layer(path2, options, fn) {
@@ -18624,7 +19184,7 @@ var require_methods = __commonJS({
18624
19184
  var require_route = __commonJS({
18625
19185
  "../../../node_modules/express/lib/router/route.js"(exports, module) {
18626
19186
  "use strict";
18627
- var debug = require_src()("express:router:route");
19187
+ var debug = require_src3()("express:router:route");
18628
19188
  var flatten = require_array_flatten();
18629
19189
  var Layer = require_layer();
18630
19190
  var methods = require_methods();
@@ -18757,7 +19317,7 @@ var require_router = __commonJS({
18757
19317
  var Layer = require_layer();
18758
19318
  var methods = require_methods();
18759
19319
  var mixin = require_utils_merge();
18760
- var debug = require_src()("express:router");
19320
+ var debug = require_src3()("express:router");
18761
19321
  var deprecate = require_depd()("express");
18762
19322
  var flatten = require_array_flatten();
18763
19323
  var parseUrl = require_parseurl();
@@ -19166,13 +19726,886 @@ var require_init = __commonJS({
19166
19726
  }
19167
19727
  });
19168
19728
 
19729
+ // ../../../node_modules/express/node_modules/qs/lib/formats.js
19730
+ var require_formats2 = __commonJS({
19731
+ "../../../node_modules/express/node_modules/qs/lib/formats.js"(exports, module) {
19732
+ "use strict";
19733
+ var replace = String.prototype.replace;
19734
+ var percentTwenties = /%20/g;
19735
+ var Format = {
19736
+ RFC1738: "RFC1738",
19737
+ RFC3986: "RFC3986"
19738
+ };
19739
+ module.exports = {
19740
+ "default": Format.RFC3986,
19741
+ formatters: {
19742
+ RFC1738: /* @__PURE__ */ __name(function(value) {
19743
+ return replace.call(value, percentTwenties, "+");
19744
+ }, "RFC1738"),
19745
+ RFC3986: /* @__PURE__ */ __name(function(value) {
19746
+ return String(value);
19747
+ }, "RFC3986")
19748
+ },
19749
+ RFC1738: Format.RFC1738,
19750
+ RFC3986: Format.RFC3986
19751
+ };
19752
+ }
19753
+ });
19754
+
19755
+ // ../../../node_modules/express/node_modules/qs/lib/utils.js
19756
+ var require_utils2 = __commonJS({
19757
+ "../../../node_modules/express/node_modules/qs/lib/utils.js"(exports, module) {
19758
+ "use strict";
19759
+ var formats = require_formats2();
19760
+ var getSideChannel = require_side_channel();
19761
+ var has = Object.prototype.hasOwnProperty;
19762
+ var isArray = Array.isArray;
19763
+ var overflowChannel = getSideChannel();
19764
+ var markOverflow = /* @__PURE__ */ __name(function markOverflow2(obj, maxIndex) {
19765
+ overflowChannel.set(obj, maxIndex);
19766
+ return obj;
19767
+ }, "markOverflow");
19768
+ var isOverflow = /* @__PURE__ */ __name(function isOverflow2(obj) {
19769
+ return overflowChannel.has(obj);
19770
+ }, "isOverflow");
19771
+ var getMaxIndex = /* @__PURE__ */ __name(function getMaxIndex2(obj) {
19772
+ return overflowChannel.get(obj);
19773
+ }, "getMaxIndex");
19774
+ var setMaxIndex = /* @__PURE__ */ __name(function setMaxIndex2(obj, maxIndex) {
19775
+ overflowChannel.set(obj, maxIndex);
19776
+ }, "setMaxIndex");
19777
+ var hexTable = (function() {
19778
+ var array = [];
19779
+ for (var i = 0; i < 256; ++i) {
19780
+ array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
19781
+ }
19782
+ return array;
19783
+ })();
19784
+ var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
19785
+ while (queue.length > 1) {
19786
+ var item = queue.pop();
19787
+ var obj = item.obj[item.prop];
19788
+ if (isArray(obj)) {
19789
+ var compacted = [];
19790
+ for (var j = 0; j < obj.length; ++j) {
19791
+ if (typeof obj[j] !== "undefined") {
19792
+ compacted[compacted.length] = obj[j];
19793
+ }
19794
+ }
19795
+ item.obj[item.prop] = compacted;
19796
+ }
19797
+ }
19798
+ }, "compactQueue");
19799
+ var arrayToObject = /* @__PURE__ */ __name(function arrayToObject2(source, options) {
19800
+ var obj = options && options.plainObjects ? {
19801
+ __proto__: null
19802
+ } : {};
19803
+ for (var i = 0; i < source.length; ++i) {
19804
+ if (typeof source[i] !== "undefined") {
19805
+ obj[i] = source[i];
19806
+ }
19807
+ }
19808
+ return obj;
19809
+ }, "arrayToObject");
19810
+ var merge = /* @__PURE__ */ __name(function merge2(target, source, options) {
19811
+ if (!source) {
19812
+ return target;
19813
+ }
19814
+ if (typeof source !== "object" && typeof source !== "function") {
19815
+ if (isArray(target)) {
19816
+ var nextIndex = target.length;
19817
+ if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
19818
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
19819
+ }
19820
+ target[nextIndex] = source;
19821
+ } else if (target && typeof target === "object") {
19822
+ if (isOverflow(target)) {
19823
+ var newIndex = getMaxIndex(target) + 1;
19824
+ target[newIndex] = source;
19825
+ setMaxIndex(target, newIndex);
19826
+ } else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
19827
+ target[source] = true;
19828
+ }
19829
+ } else {
19830
+ return [
19831
+ target,
19832
+ source
19833
+ ];
19834
+ }
19835
+ return target;
19836
+ }
19837
+ if (!target || typeof target !== "object") {
19838
+ if (isOverflow(source)) {
19839
+ var sourceKeys = Object.keys(source);
19840
+ var result = options && options.plainObjects ? {
19841
+ __proto__: null,
19842
+ 0: target
19843
+ } : {
19844
+ 0: target
19845
+ };
19846
+ for (var m = 0; m < sourceKeys.length; m++) {
19847
+ var oldKey = parseInt(sourceKeys[m], 10);
19848
+ result[oldKey + 1] = source[sourceKeys[m]];
19849
+ }
19850
+ return markOverflow(result, getMaxIndex(source) + 1);
19851
+ }
19852
+ var combined = [
19853
+ target
19854
+ ].concat(source);
19855
+ if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
19856
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
19857
+ }
19858
+ return combined;
19859
+ }
19860
+ var mergeTarget = target;
19861
+ if (isArray(target) && !isArray(source)) {
19862
+ mergeTarget = arrayToObject(target, options);
19863
+ }
19864
+ if (isArray(target) && isArray(source)) {
19865
+ source.forEach(function(item, i) {
19866
+ if (has.call(target, i)) {
19867
+ var targetItem = target[i];
19868
+ if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
19869
+ target[i] = merge2(targetItem, item, options);
19870
+ } else {
19871
+ target[target.length] = item;
19872
+ }
19873
+ } else {
19874
+ target[i] = item;
19875
+ }
19876
+ });
19877
+ return target;
19878
+ }
19879
+ return Object.keys(source).reduce(function(acc, key) {
19880
+ var value = source[key];
19881
+ if (has.call(acc, key)) {
19882
+ acc[key] = merge2(acc[key], value, options);
19883
+ } else {
19884
+ acc[key] = value;
19885
+ }
19886
+ if (isOverflow(source) && !isOverflow(acc)) {
19887
+ markOverflow(acc, getMaxIndex(source));
19888
+ }
19889
+ if (isOverflow(acc)) {
19890
+ var keyNum = parseInt(key, 10);
19891
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
19892
+ setMaxIndex(acc, keyNum);
19893
+ }
19894
+ }
19895
+ return acc;
19896
+ }, mergeTarget);
19897
+ }, "merge");
19898
+ var assign = /* @__PURE__ */ __name(function assignSingleSource(target, source) {
19899
+ return Object.keys(source).reduce(function(acc, key) {
19900
+ acc[key] = source[key];
19901
+ return acc;
19902
+ }, target);
19903
+ }, "assignSingleSource");
19904
+ var decode = /* @__PURE__ */ __name(function(str, defaultDecoder, charset) {
19905
+ var strWithoutPlus = str.replace(/\+/g, " ");
19906
+ if (charset === "iso-8859-1") {
19907
+ return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
19908
+ }
19909
+ try {
19910
+ return decodeURIComponent(strWithoutPlus);
19911
+ } catch (e) {
19912
+ return strWithoutPlus;
19913
+ }
19914
+ }, "decode");
19915
+ var limit = 1024;
19916
+ var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format) {
19917
+ if (str.length === 0) {
19918
+ return str;
19919
+ }
19920
+ var string = str;
19921
+ if (typeof str === "symbol") {
19922
+ string = Symbol.prototype.toString.call(str);
19923
+ } else if (typeof str !== "string") {
19924
+ string = String(str);
19925
+ }
19926
+ if (charset === "iso-8859-1") {
19927
+ return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
19928
+ return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
19929
+ });
19930
+ }
19931
+ var out = "";
19932
+ for (var j = 0; j < string.length; j += limit) {
19933
+ var segment = string.length >= limit ? string.slice(j, j + limit) : string;
19934
+ var arr = [];
19935
+ for (var i = 0; i < segment.length; ++i) {
19936
+ var c = segment.charCodeAt(i);
19937
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
19938
+ arr[arr.length] = segment.charAt(i);
19939
+ continue;
19940
+ }
19941
+ if (c < 128) {
19942
+ arr[arr.length] = hexTable[c];
19943
+ continue;
19944
+ }
19945
+ if (c < 2048) {
19946
+ arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
19947
+ continue;
19948
+ }
19949
+ if (c < 55296 || c >= 57344) {
19950
+ arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
19951
+ continue;
19952
+ }
19953
+ i += 1;
19954
+ c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
19955
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
19956
+ }
19957
+ out += arr.join("");
19958
+ }
19959
+ return out;
19960
+ }, "encode");
19961
+ var compact = /* @__PURE__ */ __name(function compact2(value) {
19962
+ var queue = [
19963
+ {
19964
+ obj: {
19965
+ o: value
19966
+ },
19967
+ prop: "o"
19968
+ }
19969
+ ];
19970
+ var refs = [];
19971
+ for (var i = 0; i < queue.length; ++i) {
19972
+ var item = queue[i];
19973
+ var obj = item.obj[item.prop];
19974
+ var keys = Object.keys(obj);
19975
+ for (var j = 0; j < keys.length; ++j) {
19976
+ var key = keys[j];
19977
+ var val = obj[key];
19978
+ if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
19979
+ queue[queue.length] = {
19980
+ obj,
19981
+ prop: key
19982
+ };
19983
+ refs[refs.length] = val;
19984
+ }
19985
+ }
19986
+ }
19987
+ compactQueue(queue);
19988
+ return value;
19989
+ }, "compact");
19990
+ var isRegExp = /* @__PURE__ */ __name(function isRegExp2(obj) {
19991
+ return Object.prototype.toString.call(obj) === "[object RegExp]";
19992
+ }, "isRegExp");
19993
+ var isBuffer = /* @__PURE__ */ __name(function isBuffer2(obj) {
19994
+ if (!obj || typeof obj !== "object") {
19995
+ return false;
19996
+ }
19997
+ return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
19998
+ }, "isBuffer");
19999
+ var combine = /* @__PURE__ */ __name(function combine2(a, b, arrayLimit, plainObjects) {
20000
+ if (isOverflow(a)) {
20001
+ var newIndex = getMaxIndex(a) + 1;
20002
+ a[newIndex] = b;
20003
+ setMaxIndex(a, newIndex);
20004
+ return a;
20005
+ }
20006
+ var result = [].concat(a, b);
20007
+ if (result.length > arrayLimit) {
20008
+ return markOverflow(arrayToObject(result, {
20009
+ plainObjects
20010
+ }), result.length - 1);
20011
+ }
20012
+ return result;
20013
+ }, "combine");
20014
+ var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn) {
20015
+ if (isArray(val)) {
20016
+ var mapped = [];
20017
+ for (var i = 0; i < val.length; i += 1) {
20018
+ mapped[mapped.length] = fn(val[i]);
20019
+ }
20020
+ return mapped;
20021
+ }
20022
+ return fn(val);
20023
+ }, "maybeMap");
20024
+ module.exports = {
20025
+ arrayToObject,
20026
+ assign,
20027
+ combine,
20028
+ compact,
20029
+ decode,
20030
+ encode,
20031
+ isBuffer,
20032
+ isOverflow,
20033
+ isRegExp,
20034
+ markOverflow,
20035
+ maybeMap,
20036
+ merge
20037
+ };
20038
+ }
20039
+ });
20040
+
20041
+ // ../../../node_modules/express/node_modules/qs/lib/stringify.js
20042
+ var require_stringify2 = __commonJS({
20043
+ "../../../node_modules/express/node_modules/qs/lib/stringify.js"(exports, module) {
20044
+ "use strict";
20045
+ var getSideChannel = require_side_channel();
20046
+ var utils = require_utils2();
20047
+ var formats = require_formats2();
20048
+ var has = Object.prototype.hasOwnProperty;
20049
+ var arrayPrefixGenerators = {
20050
+ brackets: /* @__PURE__ */ __name(function brackets(prefix) {
20051
+ return prefix + "[]";
20052
+ }, "brackets"),
20053
+ comma: "comma",
20054
+ indices: /* @__PURE__ */ __name(function indices(prefix, key) {
20055
+ return prefix + "[" + key + "]";
20056
+ }, "indices"),
20057
+ repeat: /* @__PURE__ */ __name(function repeat(prefix) {
20058
+ return prefix;
20059
+ }, "repeat")
20060
+ };
20061
+ var isArray = Array.isArray;
20062
+ var push = Array.prototype.push;
20063
+ var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
20064
+ push.apply(arr, isArray(valueOrArray) ? valueOrArray : [
20065
+ valueOrArray
20066
+ ]);
20067
+ }, "pushToArray");
20068
+ var toISO = Date.prototype.toISOString;
20069
+ var defaultFormat = formats["default"];
20070
+ var defaults = {
20071
+ addQueryPrefix: false,
20072
+ allowDots: false,
20073
+ allowEmptyArrays: false,
20074
+ arrayFormat: "indices",
20075
+ charset: "utf-8",
20076
+ charsetSentinel: false,
20077
+ commaRoundTrip: false,
20078
+ delimiter: "&",
20079
+ encode: true,
20080
+ encodeDotInKeys: false,
20081
+ encoder: utils.encode,
20082
+ encodeValuesOnly: false,
20083
+ filter: void 0,
20084
+ format: defaultFormat,
20085
+ formatter: formats.formatters[defaultFormat],
20086
+ // deprecated
20087
+ indices: false,
20088
+ serializeDate: /* @__PURE__ */ __name(function serializeDate(date) {
20089
+ return toISO.call(date);
20090
+ }, "serializeDate"),
20091
+ skipNulls: false,
20092
+ strictNullHandling: false
20093
+ };
20094
+ var isNonNullishPrimitive = /* @__PURE__ */ __name(function isNonNullishPrimitive2(v) {
20095
+ return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
20096
+ }, "isNonNullishPrimitive");
20097
+ var sentinel = {};
20098
+ var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
20099
+ var obj = object;
20100
+ var tmpSc = sideChannel;
20101
+ var step = 0;
20102
+ var findFlag = false;
20103
+ while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
20104
+ var pos = tmpSc.get(object);
20105
+ step += 1;
20106
+ if (typeof pos !== "undefined") {
20107
+ if (pos === step) {
20108
+ throw new RangeError("Cyclic object value");
20109
+ } else {
20110
+ findFlag = true;
20111
+ }
20112
+ }
20113
+ if (typeof tmpSc.get(sentinel) === "undefined") {
20114
+ step = 0;
20115
+ }
20116
+ }
20117
+ if (typeof filter === "function") {
20118
+ obj = filter(prefix, obj);
20119
+ } else if (obj instanceof Date) {
20120
+ obj = serializeDate(obj);
20121
+ } else if (generateArrayPrefix === "comma" && isArray(obj)) {
20122
+ obj = utils.maybeMap(obj, function(value2) {
20123
+ if (value2 instanceof Date) {
20124
+ return serializeDate(value2);
20125
+ }
20126
+ return value2;
20127
+ });
20128
+ }
20129
+ if (obj === null) {
20130
+ if (strictNullHandling) {
20131
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
20132
+ }
20133
+ obj = "";
20134
+ }
20135
+ if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
20136
+ if (encoder) {
20137
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
20138
+ return [
20139
+ formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))
20140
+ ];
20141
+ }
20142
+ return [
20143
+ formatter(prefix) + "=" + formatter(String(obj))
20144
+ ];
20145
+ }
20146
+ var values = [];
20147
+ if (typeof obj === "undefined") {
20148
+ return values;
20149
+ }
20150
+ var objKeys;
20151
+ if (generateArrayPrefix === "comma" && isArray(obj)) {
20152
+ if (encodeValuesOnly && encoder) {
20153
+ obj = utils.maybeMap(obj, encoder);
20154
+ }
20155
+ objKeys = [
20156
+ {
20157
+ value: obj.length > 0 ? obj.join(",") || null : void 0
20158
+ }
20159
+ ];
20160
+ } else if (isArray(filter)) {
20161
+ objKeys = filter;
20162
+ } else {
20163
+ var keys = Object.keys(obj);
20164
+ objKeys = sort ? keys.sort(sort) : keys;
20165
+ }
20166
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
20167
+ var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
20168
+ if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
20169
+ return adjustedPrefix + "[]";
20170
+ }
20171
+ for (var j = 0; j < objKeys.length; ++j) {
20172
+ var key = objKeys[j];
20173
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
20174
+ if (skipNulls && value === null) {
20175
+ continue;
20176
+ }
20177
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
20178
+ var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
20179
+ sideChannel.set(object, step);
20180
+ var valueSideChannel = getSideChannel();
20181
+ valueSideChannel.set(sentinel, sideChannel);
20182
+ pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
20183
+ }
20184
+ return values;
20185
+ }, "stringify");
20186
+ var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringifyOptions2(opts) {
20187
+ if (!opts) {
20188
+ return defaults;
20189
+ }
20190
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
20191
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
20192
+ }
20193
+ if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
20194
+ throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
20195
+ }
20196
+ if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
20197
+ throw new TypeError("Encoder has to be a function.");
20198
+ }
20199
+ var charset = opts.charset || defaults.charset;
20200
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
20201
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
20202
+ }
20203
+ var format = formats["default"];
20204
+ if (typeof opts.format !== "undefined") {
20205
+ if (!has.call(formats.formatters, opts.format)) {
20206
+ throw new TypeError("Unknown format option provided.");
20207
+ }
20208
+ format = opts.format;
20209
+ }
20210
+ var formatter = formats.formatters[format];
20211
+ var filter = defaults.filter;
20212
+ if (typeof opts.filter === "function" || isArray(opts.filter)) {
20213
+ filter = opts.filter;
20214
+ }
20215
+ var arrayFormat;
20216
+ if (opts.arrayFormat in arrayPrefixGenerators) {
20217
+ arrayFormat = opts.arrayFormat;
20218
+ } else if ("indices" in opts) {
20219
+ arrayFormat = opts.indices ? "indices" : "repeat";
20220
+ } else {
20221
+ arrayFormat = defaults.arrayFormat;
20222
+ }
20223
+ if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
20224
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
20225
+ }
20226
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
20227
+ return {
20228
+ addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
20229
+ allowDots,
20230
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
20231
+ arrayFormat,
20232
+ charset,
20233
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
20234
+ commaRoundTrip: !!opts.commaRoundTrip,
20235
+ delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
20236
+ encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
20237
+ encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
20238
+ encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
20239
+ encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
20240
+ filter,
20241
+ format,
20242
+ formatter,
20243
+ serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
20244
+ skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
20245
+ sort: typeof opts.sort === "function" ? opts.sort : null,
20246
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
20247
+ };
20248
+ }, "normalizeStringifyOptions");
20249
+ module.exports = function(object, opts) {
20250
+ var obj = object;
20251
+ var options = normalizeStringifyOptions(opts);
20252
+ var objKeys;
20253
+ var filter;
20254
+ if (typeof options.filter === "function") {
20255
+ filter = options.filter;
20256
+ obj = filter("", obj);
20257
+ } else if (isArray(options.filter)) {
20258
+ filter = options.filter;
20259
+ objKeys = filter;
20260
+ }
20261
+ var keys = [];
20262
+ if (typeof obj !== "object" || obj === null) {
20263
+ return "";
20264
+ }
20265
+ var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
20266
+ var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
20267
+ if (!objKeys) {
20268
+ objKeys = Object.keys(obj);
20269
+ }
20270
+ if (options.sort) {
20271
+ objKeys.sort(options.sort);
20272
+ }
20273
+ var sideChannel = getSideChannel();
20274
+ for (var i = 0; i < objKeys.length; ++i) {
20275
+ var key = objKeys[i];
20276
+ var value = obj[key];
20277
+ if (options.skipNulls && value === null) {
20278
+ continue;
20279
+ }
20280
+ pushToArray(keys, stringify(value, key, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
20281
+ }
20282
+ var joined = keys.join(options.delimiter);
20283
+ var prefix = options.addQueryPrefix === true ? "?" : "";
20284
+ if (options.charsetSentinel) {
20285
+ if (options.charset === "iso-8859-1") {
20286
+ prefix += "utf8=%26%2310003%3B&";
20287
+ } else {
20288
+ prefix += "utf8=%E2%9C%93&";
20289
+ }
20290
+ }
20291
+ return joined.length > 0 ? prefix + joined : "";
20292
+ };
20293
+ }
20294
+ });
20295
+
20296
+ // ../../../node_modules/express/node_modules/qs/lib/parse.js
20297
+ var require_parse2 = __commonJS({
20298
+ "../../../node_modules/express/node_modules/qs/lib/parse.js"(exports, module) {
20299
+ "use strict";
20300
+ var utils = require_utils2();
20301
+ var has = Object.prototype.hasOwnProperty;
20302
+ var isArray = Array.isArray;
20303
+ var defaults = {
20304
+ allowDots: false,
20305
+ allowEmptyArrays: false,
20306
+ allowPrototypes: false,
20307
+ allowSparse: false,
20308
+ arrayLimit: 20,
20309
+ charset: "utf-8",
20310
+ charsetSentinel: false,
20311
+ comma: false,
20312
+ decodeDotInKeys: false,
20313
+ decoder: utils.decode,
20314
+ delimiter: "&",
20315
+ depth: 5,
20316
+ duplicates: "combine",
20317
+ ignoreQueryPrefix: false,
20318
+ interpretNumericEntities: false,
20319
+ parameterLimit: 1e3,
20320
+ parseArrays: true,
20321
+ plainObjects: false,
20322
+ strictDepth: false,
20323
+ strictNullHandling: false,
20324
+ throwOnLimitExceeded: false
20325
+ };
20326
+ var interpretNumericEntities = /* @__PURE__ */ __name(function(str) {
20327
+ return str.replace(/&#(\d+);/g, function($0, numberStr) {
20328
+ return String.fromCharCode(parseInt(numberStr, 10));
20329
+ });
20330
+ }, "interpretNumericEntities");
20331
+ var parseArrayValue = /* @__PURE__ */ __name(function(val, options, currentArrayLength) {
20332
+ if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
20333
+ return val.split(",");
20334
+ }
20335
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
20336
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
20337
+ }
20338
+ return val;
20339
+ }, "parseArrayValue");
20340
+ var isoSentinel = "utf8=%26%2310003%3B";
20341
+ var charsetSentinel = "utf8=%E2%9C%93";
20342
+ var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, options) {
20343
+ var obj = {
20344
+ __proto__: null
20345
+ };
20346
+ var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
20347
+ cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
20348
+ var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
20349
+ var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded ? limit + 1 : limit);
20350
+ if (options.throwOnLimitExceeded && parts.length > limit) {
20351
+ throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
20352
+ }
20353
+ var skipIndex = -1;
20354
+ var i;
20355
+ var charset = options.charset;
20356
+ if (options.charsetSentinel) {
20357
+ for (i = 0; i < parts.length; ++i) {
20358
+ if (parts[i].indexOf("utf8=") === 0) {
20359
+ if (parts[i] === charsetSentinel) {
20360
+ charset = "utf-8";
20361
+ } else if (parts[i] === isoSentinel) {
20362
+ charset = "iso-8859-1";
20363
+ }
20364
+ skipIndex = i;
20365
+ i = parts.length;
20366
+ }
20367
+ }
20368
+ }
20369
+ for (i = 0; i < parts.length; ++i) {
20370
+ if (i === skipIndex) {
20371
+ continue;
20372
+ }
20373
+ var part = parts[i];
20374
+ var bracketEqualsPos = part.indexOf("]=");
20375
+ var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
20376
+ var key;
20377
+ var val;
20378
+ if (pos === -1) {
20379
+ key = options.decoder(part, defaults.decoder, charset, "key");
20380
+ val = options.strictNullHandling ? null : "";
20381
+ } else {
20382
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
20383
+ if (key !== null) {
20384
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
20385
+ return options.decoder(encodedVal, defaults.decoder, charset, "value");
20386
+ });
20387
+ }
20388
+ }
20389
+ if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
20390
+ val = interpretNumericEntities(String(val));
20391
+ }
20392
+ if (part.indexOf("[]=") > -1) {
20393
+ val = isArray(val) ? [
20394
+ val
20395
+ ] : val;
20396
+ }
20397
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
20398
+ if (options.throwOnLimitExceeded) {
20399
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
20400
+ }
20401
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
20402
+ }
20403
+ if (key !== null) {
20404
+ var existing = has.call(obj, key);
20405
+ if (existing && options.duplicates === "combine") {
20406
+ obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects);
20407
+ } else if (!existing || options.duplicates === "last") {
20408
+ obj[key] = val;
20409
+ }
20410
+ }
20411
+ }
20412
+ return obj;
20413
+ }, "parseQueryStringValues");
20414
+ var parseObject = /* @__PURE__ */ __name(function(chain, val, options, valuesParsed) {
20415
+ var currentArrayLength = 0;
20416
+ if (chain.length > 0 && chain[chain.length - 1] === "[]") {
20417
+ var parentKey = chain.slice(0, -1).join("");
20418
+ currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
20419
+ }
20420
+ var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
20421
+ for (var i = chain.length - 1; i >= 0; --i) {
20422
+ var obj;
20423
+ var root = chain[i];
20424
+ if (root === "[]" && options.parseArrays) {
20425
+ if (utils.isOverflow(leaf)) {
20426
+ obj = leaf;
20427
+ } else {
20428
+ obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects);
20429
+ }
20430
+ } else {
20431
+ obj = options.plainObjects ? {
20432
+ __proto__: null
20433
+ } : {};
20434
+ var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
20435
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
20436
+ var index = parseInt(decodedRoot, 10);
20437
+ var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
20438
+ if (!options.parseArrays && decodedRoot === "") {
20439
+ obj = {
20440
+ 0: leaf
20441
+ };
20442
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
20443
+ obj = [];
20444
+ obj[index] = leaf;
20445
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
20446
+ throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
20447
+ } else if (isValidArrayIndex) {
20448
+ obj[index] = leaf;
20449
+ utils.markOverflow(obj, index);
20450
+ } else if (decodedRoot !== "__proto__") {
20451
+ obj[decodedRoot] = leaf;
20452
+ }
20453
+ }
20454
+ leaf = obj;
20455
+ }
20456
+ return leaf;
20457
+ }, "parseObject");
20458
+ var splitKeyIntoSegments = /* @__PURE__ */ __name(function splitKeyIntoSegments2(givenKey, options) {
20459
+ var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
20460
+ if (options.depth <= 0) {
20461
+ if (!options.plainObjects && has.call(Object.prototype, key)) {
20462
+ if (!options.allowPrototypes) {
20463
+ return;
20464
+ }
20465
+ }
20466
+ return [
20467
+ key
20468
+ ];
20469
+ }
20470
+ var brackets = /(\[[^[\]]*])/;
20471
+ var child = /(\[[^[\]]*])/g;
20472
+ var segment = brackets.exec(key);
20473
+ var parent = segment ? key.slice(0, segment.index) : key;
20474
+ var keys = [];
20475
+ if (parent) {
20476
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
20477
+ if (!options.allowPrototypes) {
20478
+ return;
20479
+ }
20480
+ }
20481
+ keys[keys.length] = parent;
20482
+ }
20483
+ var i = 0;
20484
+ while ((segment = child.exec(key)) !== null && i < options.depth) {
20485
+ i += 1;
20486
+ var segmentContent = segment[1].slice(1, -1);
20487
+ if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
20488
+ if (!options.allowPrototypes) {
20489
+ return;
20490
+ }
20491
+ }
20492
+ keys[keys.length] = segment[1];
20493
+ }
20494
+ if (segment) {
20495
+ if (options.strictDepth === true) {
20496
+ throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
20497
+ }
20498
+ keys[keys.length] = "[" + key.slice(segment.index) + "]";
20499
+ }
20500
+ return keys;
20501
+ }, "splitKeyIntoSegments");
20502
+ var parseKeys = /* @__PURE__ */ __name(function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
20503
+ if (!givenKey) {
20504
+ return;
20505
+ }
20506
+ var keys = splitKeyIntoSegments(givenKey, options);
20507
+ if (!keys) {
20508
+ return;
20509
+ }
20510
+ return parseObject(keys, val, options, valuesParsed);
20511
+ }, "parseQueryStringKeys");
20512
+ var normalizeParseOptions = /* @__PURE__ */ __name(function normalizeParseOptions2(opts) {
20513
+ if (!opts) {
20514
+ return defaults;
20515
+ }
20516
+ if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
20517
+ throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
20518
+ }
20519
+ if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
20520
+ throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
20521
+ }
20522
+ if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
20523
+ throw new TypeError("Decoder has to be a function.");
20524
+ }
20525
+ if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
20526
+ throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
20527
+ }
20528
+ if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
20529
+ throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
20530
+ }
20531
+ var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
20532
+ var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
20533
+ if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
20534
+ throw new TypeError("The duplicates option must be either combine, first, or last");
20535
+ }
20536
+ var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
20537
+ return {
20538
+ allowDots,
20539
+ allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
20540
+ allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
20541
+ allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
20542
+ arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
20543
+ charset,
20544
+ charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
20545
+ comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
20546
+ decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
20547
+ decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
20548
+ delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
20549
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
20550
+ depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
20551
+ duplicates,
20552
+ ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
20553
+ interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
20554
+ parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
20555
+ parseArrays: opts.parseArrays !== false,
20556
+ plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
20557
+ strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
20558
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
20559
+ throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
20560
+ };
20561
+ }, "normalizeParseOptions");
20562
+ module.exports = function(str, opts) {
20563
+ var options = normalizeParseOptions(opts);
20564
+ if (str === "" || str === null || typeof str === "undefined") {
20565
+ return options.plainObjects ? {
20566
+ __proto__: null
20567
+ } : {};
20568
+ }
20569
+ var tempObj = typeof str === "string" ? parseValues(str, options) : str;
20570
+ var obj = options.plainObjects ? {
20571
+ __proto__: null
20572
+ } : {};
20573
+ var keys = Object.keys(tempObj);
20574
+ for (var i = 0; i < keys.length; ++i) {
20575
+ var key = keys[i];
20576
+ var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
20577
+ obj = utils.merge(obj, newObj, options);
20578
+ }
20579
+ if (options.allowSparse === true) {
20580
+ return obj;
20581
+ }
20582
+ return utils.compact(obj);
20583
+ };
20584
+ }
20585
+ });
20586
+
20587
+ // ../../../node_modules/express/node_modules/qs/lib/index.js
20588
+ var require_lib3 = __commonJS({
20589
+ "../../../node_modules/express/node_modules/qs/lib/index.js"(exports, module) {
20590
+ "use strict";
20591
+ var stringify = require_stringify2();
20592
+ var parse = require_parse2();
20593
+ var formats = require_formats2();
20594
+ module.exports = {
20595
+ formats,
20596
+ parse,
20597
+ stringify
20598
+ };
20599
+ }
20600
+ });
20601
+
19169
20602
  // ../../../node_modules/express/lib/middleware/query.js
19170
20603
  var require_query = __commonJS({
19171
20604
  "../../../node_modules/express/lib/middleware/query.js"(exports, module) {
19172
20605
  "use strict";
19173
20606
  var merge = require_utils_merge();
19174
20607
  var parseUrl = require_parseurl();
19175
- var qs = require_lib2();
20608
+ var qs = require_lib3();
19176
20609
  module.exports = /* @__PURE__ */ __name(function query(options) {
19177
20610
  var opts = merge({}, options);
19178
20611
  var queryparse = qs.parse;
@@ -19198,7 +20631,7 @@ var require_query = __commonJS({
19198
20631
  var require_view = __commonJS({
19199
20632
  "../../../node_modules/express/lib/view.js"(exports, module) {
19200
20633
  "use strict";
19201
- var debug = require_src()("express:view");
20634
+ var debug = require_src3()("express:view");
19202
20635
  var path2 = __require("path");
19203
20636
  var fs2 = __require("fs");
19204
20637
  var dirname = path2.dirname;
@@ -19337,9 +20770,9 @@ var require_safe_buffer = __commonJS({
19337
20770
  }
19338
20771
  });
19339
20772
 
19340
- // ../../../node_modules/content-disposition/index.js
20773
+ // ../../../node_modules/express/node_modules/content-disposition/index.js
19341
20774
  var require_content_disposition = __commonJS({
19342
- "../../../node_modules/content-disposition/index.js"(exports, module) {
20775
+ "../../../node_modules/express/node_modules/content-disposition/index.js"(exports, module) {
19343
20776
  "use strict";
19344
20777
  module.exports = contentDisposition;
19345
20778
  module.exports.parse = parse;
@@ -19512,7 +20945,7 @@ var require_content_disposition = __commonJS({
19512
20945
  });
19513
20946
 
19514
20947
  // ../../../node_modules/send/node_modules/debug/node_modules/ms/index.js
19515
- var require_ms3 = __commonJS({
20948
+ var require_ms4 = __commonJS({
19516
20949
  "../../../node_modules/send/node_modules/debug/node_modules/ms/index.js"(exports, module) {
19517
20950
  "use strict";
19518
20951
  var s = 1e3;
@@ -19615,7 +21048,7 @@ var require_ms3 = __commonJS({
19615
21048
  });
19616
21049
 
19617
21050
  // ../../../node_modules/send/node_modules/debug/src/debug.js
19618
- var require_debug3 = __commonJS({
21051
+ var require_debug4 = __commonJS({
19619
21052
  "../../../node_modules/send/node_modules/debug/src/debug.js"(exports, module) {
19620
21053
  "use strict";
19621
21054
  exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
@@ -19623,7 +21056,7 @@ var require_debug3 = __commonJS({
19623
21056
  exports.disable = disable;
19624
21057
  exports.enable = enable;
19625
21058
  exports.enabled = enabled;
19626
- exports.humanize = require_ms3();
21059
+ exports.humanize = require_ms4();
19627
21060
  exports.names = [];
19628
21061
  exports.skips = [];
19629
21062
  exports.formatters = {};
@@ -19728,10 +21161,10 @@ var require_debug3 = __commonJS({
19728
21161
  });
19729
21162
 
19730
21163
  // ../../../node_modules/send/node_modules/debug/src/browser.js
19731
- var require_browser3 = __commonJS({
21164
+ var require_browser4 = __commonJS({
19732
21165
  "../../../node_modules/send/node_modules/debug/src/browser.js"(exports, module) {
19733
21166
  "use strict";
19734
- exports = module.exports = require_debug3();
21167
+ exports = module.exports = require_debug4();
19735
21168
  exports.log = log;
19736
21169
  exports.formatArgs = formatArgs;
19737
21170
  exports.save = save;
@@ -19821,12 +21254,12 @@ var require_browser3 = __commonJS({
19821
21254
  });
19822
21255
 
19823
21256
  // ../../../node_modules/send/node_modules/debug/src/node.js
19824
- var require_node3 = __commonJS({
21257
+ var require_node4 = __commonJS({
19825
21258
  "../../../node_modules/send/node_modules/debug/src/node.js"(exports, module) {
19826
21259
  "use strict";
19827
21260
  var tty = __require("tty");
19828
21261
  var util = __require("util");
19829
- exports = module.exports = require_debug3();
21262
+ exports = module.exports = require_debug4();
19830
21263
  exports.init = init;
19831
21264
  exports.log = log;
19832
21265
  exports.formatArgs = formatArgs;
@@ -19958,13 +21391,13 @@ var require_node3 = __commonJS({
19958
21391
  });
19959
21392
 
19960
21393
  // ../../../node_modules/send/node_modules/debug/src/index.js
19961
- var require_src3 = __commonJS({
21394
+ var require_src4 = __commonJS({
19962
21395
  "../../../node_modules/send/node_modules/debug/src/index.js"(exports, module) {
19963
21396
  "use strict";
19964
21397
  if (typeof process !== "undefined" && process.type === "renderer") {
19965
- module.exports = require_browser3();
21398
+ module.exports = require_browser4();
19966
21399
  } else {
19967
- module.exports = require_node3();
21400
+ module.exports = require_node4();
19968
21401
  }
19969
21402
  }
19970
21403
  });
@@ -20155,7 +21588,7 @@ var require_mime = __commonJS({
20155
21588
  });
20156
21589
 
20157
21590
  // ../../../node_modules/ms/index.js
20158
- var require_ms4 = __commonJS({
21591
+ var require_ms5 = __commonJS({
20159
21592
  "../../../node_modules/ms/index.js"(exports, module) {
20160
21593
  "use strict";
20161
21594
  var s = 1e3;
@@ -20363,7 +21796,7 @@ var require_send = __commonJS({
20363
21796
  "../../../node_modules/send/index.js"(exports, module) {
20364
21797
  "use strict";
20365
21798
  var createError = require_http_errors();
20366
- var debug = require_src3()("send");
21799
+ var debug = require_src4()("send");
20367
21800
  var deprecate = require_depd()("send");
20368
21801
  var destroy = require_destroy();
20369
21802
  var encodeUrl = require_encodeurl();
@@ -20372,7 +21805,7 @@ var require_send = __commonJS({
20372
21805
  var fresh = require_fresh();
20373
21806
  var fs2 = __require("fs");
20374
21807
  var mime = require_mime();
20375
- var ms = require_ms4();
21808
+ var ms = require_ms5();
20376
21809
  var onFinished = require_on_finished();
20377
21810
  var parseRange = require_range_parser();
20378
21811
  var path2 = __require("path");
@@ -20974,9 +22407,9 @@ var require_forwarded = __commonJS({
20974
22407
  }
20975
22408
  });
20976
22409
 
20977
- // ../../../node_modules/ipaddr.js/lib/ipaddr.js
22410
+ // ../../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js
20978
22411
  var require_ipaddr = __commonJS({
20979
- "../../../node_modules/ipaddr.js/lib/ipaddr.js"(exports, module) {
22412
+ "../../../node_modules/proxy-addr/node_modules/ipaddr.js/lib/ipaddr.js"(exports, module) {
20980
22413
  "use strict";
20981
22414
  (function() {
20982
22415
  var expandIPv6, ipaddr, ipv4Part, ipv4Regexes, ipv6Part, ipv6Regexes, matchCIDR, root, zoneIndex;
@@ -22088,7 +23521,7 @@ var require_proxy_addr = __commonJS({
22088
23521
  });
22089
23522
 
22090
23523
  // ../../../node_modules/express/lib/utils.js
22091
- var require_utils2 = __commonJS({
23524
+ var require_utils3 = __commonJS({
22092
23525
  "../../../node_modules/express/lib/utils.js"(exports) {
22093
23526
  "use strict";
22094
23527
  var Buffer2 = require_safe_buffer().Buffer;
@@ -22099,7 +23532,7 @@ var require_utils2 = __commonJS({
22099
23532
  var mime = require_send().mime;
22100
23533
  var etag = require_etag();
22101
23534
  var proxyaddr = require_proxy_addr();
22102
- var qs = require_lib2();
23535
+ var qs = require_lib3();
22103
23536
  var querystring = __require("querystring");
22104
23537
  exports.etag = createETagGenerator({
22105
23538
  weak: false
@@ -22242,12 +23675,12 @@ var require_application = __commonJS({
22242
23675
  var methods = require_methods();
22243
23676
  var middleware = require_init();
22244
23677
  var query = require_query();
22245
- var debug = require_src()("express:application");
23678
+ var debug = require_src3()("express:application");
22246
23679
  var View = require_view();
22247
23680
  var http = __require("http");
22248
- var compileETag = require_utils2().compileETag;
22249
- var compileQueryParser = require_utils2().compileQueryParser;
22250
- var compileTrust = require_utils2().compileTrust;
23681
+ var compileETag = require_utils3().compileETag;
23682
+ var compileQueryParser = require_utils3().compileQueryParser;
23683
+ var compileTrust = require_utils3().compileTrust;
22251
23684
  var deprecate = require_depd()("express");
22252
23685
  var flatten = require_array_flatten();
22253
23686
  var merge = require_utils_merge();
@@ -31941,9 +33374,9 @@ var require_request = __commonJS({
31941
33374
  }
31942
33375
  });
31943
33376
 
31944
- // ../../../node_modules/express/node_modules/cookie-signature/index.js
33377
+ // ../../../node_modules/cookie-signature/index.js
31945
33378
  var require_cookie_signature = __commonJS({
31946
- "../../../node_modules/express/node_modules/cookie-signature/index.js"(exports) {
33379
+ "../../../node_modules/cookie-signature/index.js"(exports) {
31947
33380
  "use strict";
31948
33381
  var crypto3 = __require("crypto");
31949
33382
  exports.sign = function(val, secret) {
@@ -32224,15 +33657,15 @@ var require_response = __commonJS({
32224
33657
  var encodeUrl = require_encodeurl();
32225
33658
  var escapeHtml = require_escape_html();
32226
33659
  var http = __require("http");
32227
- var isAbsolute = require_utils2().isAbsolute;
33660
+ var isAbsolute = require_utils3().isAbsolute;
32228
33661
  var onFinished = require_on_finished();
32229
33662
  var path2 = __require("path");
32230
33663
  var statuses = require_statuses();
32231
33664
  var merge = require_utils_merge();
32232
33665
  var sign = require_cookie_signature().sign;
32233
- var normalizeType = require_utils2().normalizeType;
32234
- var normalizeTypes = require_utils2().normalizeTypes;
32235
- var setCharset = require_utils2().setCharset;
33666
+ var normalizeType = require_utils3().normalizeType;
33667
+ var normalizeTypes = require_utils3().normalizeTypes;
33668
+ var setCharset = require_utils3().setCharset;
32236
33669
  var cookie = require_cookie();
32237
33670
  var send = require_send();
32238
33671
  var extname2 = path2.extname;
@@ -34535,6 +35968,43 @@ var import_express = __toESM(require_express2(), 1);
34535
35968
  import { AppLogger as AppLogger3 } from "@lark-apaas/nestjs-logger";
34536
35969
  import cookieParser from "cookie-parser";
34537
35970
  import { DevToolsV2Module } from "@lark-apaas/nestjs-openapi-devtools";
35971
+
35972
+ // src/middlewares/legacy-path-redirect/index.ts
35973
+ var LEGACY_ROUTE_PATTERNS = [
35974
+ /^\/af\/p\/([^/]+)(\/.*)?$/,
35975
+ /^\/spark\/faas\/([^/]+)(\/.*)?$/
35976
+ ];
35977
+ function createLegacyPathRedirectMiddleware() {
35978
+ return (req, res, next) => {
35979
+ const basePath = process.env.CLIENT_BASE_PATH ?? "";
35980
+ if (!/^\/app\/[^/]/.test(basePath)) {
35981
+ return next();
35982
+ }
35983
+ for (const pattern of LEGACY_ROUTE_PATTERNS) {
35984
+ const match = req.path.match(pattern);
35985
+ if (match) {
35986
+ const appId = match[1];
35987
+ const suffix = match[2] || "";
35988
+ const querySuffix = req.originalUrl.slice(req.path.length);
35989
+ const normalized = basePath.replace(/\/+$/, "");
35990
+ const basePrefix = normalized.slice(0, normalized.lastIndexOf("/"));
35991
+ const newUrl = `${basePrefix}/${appId}${suffix}${querySuffix}`;
35992
+ if (suffix.startsWith("/api/") || suffix.startsWith("/__innerapi__/")) {
35993
+ req.url = newUrl;
35994
+ return next();
35995
+ }
35996
+ if (req.method === "GET") {
35997
+ return res.redirect(302, newUrl);
35998
+ }
35999
+ return next();
36000
+ }
36001
+ }
36002
+ return next();
36003
+ };
36004
+ }
36005
+ __name(createLegacyPathRedirectMiddleware, "createLegacyPathRedirectMiddleware");
36006
+
36007
+ // src/setup.ts
34538
36008
  var DEFAULT_BODY_LIMIT = "1mb";
34539
36009
  var defaultPerms = {
34540
36010
  disableSwagger: false
@@ -34551,6 +36021,7 @@ async function configureApp(app, perms = defaultPerms) {
34551
36021
  extended: true
34552
36022
  }));
34553
36023
  app.use(cookieParser());
36024
+ app.use(createLegacyPathRedirectMiddleware());
34554
36025
  const globalPrefix = process.env.CLIENT_BASE_PATH ?? "";
34555
36026
  app.setGlobalPrefix(globalPrefix);
34556
36027
  app.set("trust proxy", true);
@@ -34592,7 +36063,8 @@ export {
34592
36063
  StaticModule,
34593
36064
  UserContextMiddleware,
34594
36065
  ViewContextMiddleware,
34595
- configureApp
36066
+ configureApp,
36067
+ createLegacyPathRedirectMiddleware
34596
36068
  };
34597
36069
  /*! Bundled license information:
34598
36070