@sap/ux-ui5-tooling 1.21.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cli/index.js +5864 -5588
- package/dist/control-property-editor/app.css +1 -1
- package/dist/control-property-editor/app.js +40 -40
- package/dist/middlewares/fiori-tools-appreload.js +502 -178
- package/dist/middlewares/fiori-tools-preview.js +15019 -6202
- package/dist/middlewares/fiori-tools-proxy.js +13040 -3757
- package/dist/middlewares/fiori-tools-servestatic.js +1076 -130
- package/dist/preview-middleware/dist/client/adp/api-handler.js +3 -0
- package/dist/preview-middleware/dist/client/adp/api-handler.ts +4 -1
- package/dist/preview-middleware/dist/client/adp/init.js +10 -1
- package/dist/preview-middleware/dist/client/adp/init.ts +8 -1
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.js +130 -0
- package/dist/preview-middleware/dist/client/adp/ovp-window-functions.ts +171 -0
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.js +12 -2
- package/dist/preview-middleware/dist/client/cpe/odata-health/odata-health-checker.ts +14 -4
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.js +1 -0
- package/dist/preview-middleware/dist/client/flp/WorkspaceConnector.ts +2 -0
- package/dist/tasks/cf-deploy/index.js +3252 -3173
- package/dist/tasks/deploy/index.js +5763 -5487
- package/package.json +25 -25
|
@@ -1745,9 +1745,9 @@ var require_fresh = __commonJS({
|
|
|
1745
1745
|
}
|
|
1746
1746
|
});
|
|
1747
1747
|
|
|
1748
|
-
// ../../node_modules/
|
|
1748
|
+
// ../../node_modules/mime-db/db.json
|
|
1749
1749
|
var require_db = __commonJS({
|
|
1750
|
-
"../../node_modules/
|
|
1750
|
+
"../../node_modules/mime-db/db.json"(exports2, module2) {
|
|
1751
1751
|
module2.exports = {
|
|
1752
1752
|
"application/1d-interleaved-parityfec": {
|
|
1753
1753
|
source: "iana"
|
|
@@ -11093,16 +11093,16 @@ var require_db = __commonJS({
|
|
|
11093
11093
|
}
|
|
11094
11094
|
});
|
|
11095
11095
|
|
|
11096
|
-
// ../../node_modules/
|
|
11096
|
+
// ../../node_modules/mime-db/index.js
|
|
11097
11097
|
var require_mime_db = __commonJS({
|
|
11098
|
-
"../../node_modules/
|
|
11098
|
+
"../../node_modules/mime-db/index.js"(exports2, module2) {
|
|
11099
11099
|
module2.exports = require_db();
|
|
11100
11100
|
}
|
|
11101
11101
|
});
|
|
11102
11102
|
|
|
11103
|
-
// ../../node_modules/
|
|
11103
|
+
// ../../node_modules/mime-types/mimeScore.js
|
|
11104
11104
|
var require_mimeScore = __commonJS({
|
|
11105
|
-
"../../node_modules/
|
|
11105
|
+
"../../node_modules/mime-types/mimeScore.js"(exports2, module2) {
|
|
11106
11106
|
var FACET_SCORES = {
|
|
11107
11107
|
"prs.": 100,
|
|
11108
11108
|
"x-": 200,
|
|
@@ -11140,9 +11140,9 @@ var require_mimeScore = __commonJS({
|
|
|
11140
11140
|
}
|
|
11141
11141
|
});
|
|
11142
11142
|
|
|
11143
|
-
// ../../node_modules/
|
|
11143
|
+
// ../../node_modules/mime-types/index.js
|
|
11144
11144
|
var require_mime_types = __commonJS({
|
|
11145
|
-
"../../node_modules/
|
|
11145
|
+
"../../node_modules/mime-types/index.js"(exports2) {
|
|
11146
11146
|
"use strict";
|
|
11147
11147
|
var db = require_mime_db();
|
|
11148
11148
|
var extname = require("path").extname;
|
|
@@ -13932,16 +13932,16 @@ var require_node2 = __commonJS({
|
|
|
13932
13932
|
}
|
|
13933
13933
|
});
|
|
13934
13934
|
|
|
13935
|
-
// ../../node_modules
|
|
13935
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
13936
13936
|
var require_stream = __commonJS({
|
|
13937
|
-
"../../node_modules
|
|
13937
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
13938
13938
|
module2.exports = require("stream");
|
|
13939
13939
|
}
|
|
13940
13940
|
});
|
|
13941
13941
|
|
|
13942
|
-
// ../../node_modules
|
|
13942
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
13943
13943
|
var require_destroy = __commonJS({
|
|
13944
|
-
"../../node_modules
|
|
13944
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
13945
13945
|
"use strict";
|
|
13946
13946
|
function destroy(err, cb) {
|
|
13947
13947
|
var _this = this;
|
|
@@ -14028,9 +14028,9 @@ var require_destroy = __commonJS({
|
|
|
14028
14028
|
}
|
|
14029
14029
|
});
|
|
14030
14030
|
|
|
14031
|
-
// ../../node_modules
|
|
14031
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/errors.js
|
|
14032
14032
|
var require_errors = __commonJS({
|
|
14033
|
-
"../../node_modules
|
|
14033
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/errors.js"(exports2, module2) {
|
|
14034
14034
|
"use strict";
|
|
14035
14035
|
var codes = {};
|
|
14036
14036
|
function createErrorType(code, message, Base) {
|
|
@@ -14128,9 +14128,9 @@ var require_errors = __commonJS({
|
|
|
14128
14128
|
}
|
|
14129
14129
|
});
|
|
14130
14130
|
|
|
14131
|
-
// ../../node_modules
|
|
14131
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
|
|
14132
14132
|
var require_state = __commonJS({
|
|
14133
|
-
"../../node_modules
|
|
14133
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
14134
14134
|
"use strict";
|
|
14135
14135
|
var ERR_INVALID_OPT_VALUE = require_errors().codes.ERR_INVALID_OPT_VALUE;
|
|
14136
14136
|
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
@@ -14153,39 +14153,33 @@ var require_state = __commonJS({
|
|
|
14153
14153
|
}
|
|
14154
14154
|
});
|
|
14155
14155
|
|
|
14156
|
-
// ../../node_modules
|
|
14156
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
14157
14157
|
var require_buffer_list = __commonJS({
|
|
14158
|
-
"../../node_modules
|
|
14158
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
14159
14159
|
"use strict";
|
|
14160
14160
|
function ownKeys(object, enumerableOnly) {
|
|
14161
14161
|
var keys = Object.keys(object);
|
|
14162
14162
|
if (Object.getOwnPropertySymbols) {
|
|
14163
14163
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
14164
|
-
|
|
14164
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
14165
14165
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14166
|
-
});
|
|
14167
|
-
keys.push.apply(keys, symbols);
|
|
14166
|
+
})), keys.push.apply(keys, symbols);
|
|
14168
14167
|
}
|
|
14169
14168
|
return keys;
|
|
14170
14169
|
}
|
|
14171
14170
|
function _objectSpread(target) {
|
|
14172
14171
|
for (var i = 1; i < arguments.length; i++) {
|
|
14173
|
-
var source = arguments[i]
|
|
14174
|
-
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
}
|
|
14179
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14180
|
-
} else {
|
|
14181
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
14182
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14183
|
-
});
|
|
14184
|
-
}
|
|
14172
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
14173
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
14174
|
+
_defineProperty(target, key, source[key]);
|
|
14175
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
14176
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
14177
|
+
});
|
|
14185
14178
|
}
|
|
14186
14179
|
return target;
|
|
14187
14180
|
}
|
|
14188
14181
|
function _defineProperty(obj, key, value) {
|
|
14182
|
+
key = _toPropertyKey(key);
|
|
14189
14183
|
if (key in obj) {
|
|
14190
14184
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
14191
14185
|
} else {
|
|
@@ -14204,14 +14198,29 @@ var require_buffer_list = __commonJS({
|
|
|
14204
14198
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14205
14199
|
descriptor.configurable = true;
|
|
14206
14200
|
if ("value" in descriptor) descriptor.writable = true;
|
|
14207
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14201
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
14208
14202
|
}
|
|
14209
14203
|
}
|
|
14210
14204
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
14211
14205
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
14212
14206
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
14207
|
+
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
14213
14208
|
return Constructor;
|
|
14214
14209
|
}
|
|
14210
|
+
function _toPropertyKey(arg) {
|
|
14211
|
+
var key = _toPrimitive(arg, "string");
|
|
14212
|
+
return typeof key === "symbol" ? key : String(key);
|
|
14213
|
+
}
|
|
14214
|
+
function _toPrimitive(input, hint) {
|
|
14215
|
+
if (typeof input !== "object" || input === null) return input;
|
|
14216
|
+
var prim = input[Symbol.toPrimitive];
|
|
14217
|
+
if (prim !== void 0) {
|
|
14218
|
+
var res = prim.call(input, hint || "default");
|
|
14219
|
+
if (typeof res !== "object") return res;
|
|
14220
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14221
|
+
}
|
|
14222
|
+
return (hint === "string" ? String : Number)(input);
|
|
14223
|
+
}
|
|
14215
14224
|
var _require = require("buffer");
|
|
14216
14225
|
var Buffer2 = _require.Buffer;
|
|
14217
14226
|
var _require2 = require("util");
|
|
@@ -14272,9 +14281,7 @@ var require_buffer_list = __commonJS({
|
|
|
14272
14281
|
if (this.length === 0) return "";
|
|
14273
14282
|
var p = this.head;
|
|
14274
14283
|
var ret = "" + p.data;
|
|
14275
|
-
while (p = p.next)
|
|
14276
|
-
ret += s + p.data;
|
|
14277
|
-
}
|
|
14284
|
+
while (p = p.next) ret += s + p.data;
|
|
14278
14285
|
return ret;
|
|
14279
14286
|
}
|
|
14280
14287
|
}, {
|
|
@@ -14375,7 +14382,7 @@ var require_buffer_list = __commonJS({
|
|
|
14375
14382
|
}, {
|
|
14376
14383
|
key: custom,
|
|
14377
14384
|
value: function value(_, options) {
|
|
14378
|
-
return inspect(this, _objectSpread({}, options, {
|
|
14385
|
+
return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
14379
14386
|
// Only inspect one level.
|
|
14380
14387
|
depth: 0,
|
|
14381
14388
|
// It should not recurse.
|
|
@@ -14684,9 +14691,9 @@ var require_string_decoder = __commonJS({
|
|
|
14684
14691
|
}
|
|
14685
14692
|
});
|
|
14686
14693
|
|
|
14687
|
-
// ../../node_modules
|
|
14694
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
14688
14695
|
var require_end_of_stream = __commonJS({
|
|
14689
|
-
"../../node_modules
|
|
14696
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
14690
14697
|
"use strict";
|
|
14691
14698
|
var ERR_STREAM_PREMATURE_CLOSE = require_errors().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
14692
14699
|
function once(callback) {
|
|
@@ -14773,12 +14780,13 @@ var require_end_of_stream = __commonJS({
|
|
|
14773
14780
|
}
|
|
14774
14781
|
});
|
|
14775
14782
|
|
|
14776
|
-
// ../../node_modules
|
|
14783
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
14777
14784
|
var require_async_iterator = __commonJS({
|
|
14778
|
-
"../../node_modules
|
|
14785
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
|
|
14779
14786
|
"use strict";
|
|
14780
14787
|
var _Object$setPrototypeO;
|
|
14781
14788
|
function _defineProperty(obj, key, value) {
|
|
14789
|
+
key = _toPropertyKey(key);
|
|
14782
14790
|
if (key in obj) {
|
|
14783
14791
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
14784
14792
|
} else {
|
|
@@ -14786,6 +14794,20 @@ var require_async_iterator = __commonJS({
|
|
|
14786
14794
|
}
|
|
14787
14795
|
return obj;
|
|
14788
14796
|
}
|
|
14797
|
+
function _toPropertyKey(arg) {
|
|
14798
|
+
var key = _toPrimitive(arg, "string");
|
|
14799
|
+
return typeof key === "symbol" ? key : String(key);
|
|
14800
|
+
}
|
|
14801
|
+
function _toPrimitive(input, hint) {
|
|
14802
|
+
if (typeof input !== "object" || input === null) return input;
|
|
14803
|
+
var prim = input[Symbol.toPrimitive];
|
|
14804
|
+
if (prim !== void 0) {
|
|
14805
|
+
var res = prim.call(input, hint || "default");
|
|
14806
|
+
if (typeof res !== "object") return res;
|
|
14807
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14808
|
+
}
|
|
14809
|
+
return (hint === "string" ? String : Number)(input);
|
|
14810
|
+
}
|
|
14789
14811
|
var finished = require_end_of_stream();
|
|
14790
14812
|
var kLastResolve = Symbol("lastResolve");
|
|
14791
14813
|
var kLastReject = Symbol("lastReject");
|
|
@@ -14941,9 +14963,9 @@ var require_async_iterator = __commonJS({
|
|
|
14941
14963
|
}
|
|
14942
14964
|
});
|
|
14943
14965
|
|
|
14944
|
-
// ../../node_modules
|
|
14966
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js
|
|
14945
14967
|
var require_from = __commonJS({
|
|
14946
|
-
"../../node_modules
|
|
14968
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
14947
14969
|
"use strict";
|
|
14948
14970
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
14949
14971
|
try {
|
|
@@ -14978,31 +15000,25 @@ var require_from = __commonJS({
|
|
|
14978
15000
|
var keys = Object.keys(object);
|
|
14979
15001
|
if (Object.getOwnPropertySymbols) {
|
|
14980
15002
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
14981
|
-
|
|
15003
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
14982
15004
|
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
14983
|
-
});
|
|
14984
|
-
keys.push.apply(keys, symbols);
|
|
15005
|
+
})), keys.push.apply(keys, symbols);
|
|
14985
15006
|
}
|
|
14986
15007
|
return keys;
|
|
14987
15008
|
}
|
|
14988
15009
|
function _objectSpread(target) {
|
|
14989
15010
|
for (var i = 1; i < arguments.length; i++) {
|
|
14990
|
-
var source = arguments[i]
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
}
|
|
14996
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
14997
|
-
} else {
|
|
14998
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
14999
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15000
|
-
});
|
|
15001
|
-
}
|
|
15011
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
15012
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
15013
|
+
_defineProperty(target, key, source[key]);
|
|
15014
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
15015
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
15016
|
+
});
|
|
15002
15017
|
}
|
|
15003
15018
|
return target;
|
|
15004
15019
|
}
|
|
15005
15020
|
function _defineProperty(obj, key, value) {
|
|
15021
|
+
key = _toPropertyKey(key);
|
|
15006
15022
|
if (key in obj) {
|
|
15007
15023
|
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
15008
15024
|
} else {
|
|
@@ -15010,6 +15026,20 @@ var require_from = __commonJS({
|
|
|
15010
15026
|
}
|
|
15011
15027
|
return obj;
|
|
15012
15028
|
}
|
|
15029
|
+
function _toPropertyKey(arg) {
|
|
15030
|
+
var key = _toPrimitive(arg, "string");
|
|
15031
|
+
return typeof key === "symbol" ? key : String(key);
|
|
15032
|
+
}
|
|
15033
|
+
function _toPrimitive(input, hint) {
|
|
15034
|
+
if (typeof input !== "object" || input === null) return input;
|
|
15035
|
+
var prim = input[Symbol.toPrimitive];
|
|
15036
|
+
if (prim !== void 0) {
|
|
15037
|
+
var res = prim.call(input, hint || "default");
|
|
15038
|
+
if (typeof res !== "object") return res;
|
|
15039
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15040
|
+
}
|
|
15041
|
+
return (hint === "string" ? String : Number)(input);
|
|
15042
|
+
}
|
|
15013
15043
|
var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE;
|
|
15014
15044
|
function from(Readable, iterable, opts) {
|
|
15015
15045
|
var iterator;
|
|
@@ -15034,7 +15064,7 @@ var require_from = __commonJS({
|
|
|
15034
15064
|
function _next2() {
|
|
15035
15065
|
_next2 = _asyncToGenerator(function* () {
|
|
15036
15066
|
try {
|
|
15037
|
-
var
|
|
15067
|
+
var _yield$iterator$next = yield iterator.next(), value = _yield$iterator$next.value, done = _yield$iterator$next.done;
|
|
15038
15068
|
if (done) {
|
|
15039
15069
|
readable.push(null);
|
|
15040
15070
|
} else if (readable.push(yield value)) {
|
|
@@ -15054,9 +15084,9 @@ var require_from = __commonJS({
|
|
|
15054
15084
|
}
|
|
15055
15085
|
});
|
|
15056
15086
|
|
|
15057
|
-
// ../../node_modules
|
|
15087
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js
|
|
15058
15088
|
var require_stream_readable = __commonJS({
|
|
15059
|
-
"../../node_modules
|
|
15089
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
15060
15090
|
"use strict";
|
|
15061
15091
|
module2.exports = Readable;
|
|
15062
15092
|
var Duplex;
|
|
@@ -15067,7 +15097,7 @@ var require_stream_readable = __commonJS({
|
|
|
15067
15097
|
};
|
|
15068
15098
|
var Stream = require_stream();
|
|
15069
15099
|
var Buffer2 = require("buffer").Buffer;
|
|
15070
|
-
var OurUint8Array = global.Uint8Array || function() {
|
|
15100
|
+
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
15071
15101
|
};
|
|
15072
15102
|
function _uint8ArrayToBuffer(chunk) {
|
|
15073
15103
|
return Buffer2.from(chunk);
|
|
@@ -15537,11 +15567,9 @@ var require_stream_readable = __commonJS({
|
|
|
15537
15567
|
state.pipes = null;
|
|
15538
15568
|
state.pipesCount = 0;
|
|
15539
15569
|
state.flowing = false;
|
|
15540
|
-
for (var i = 0; i < len; i++) {
|
|
15541
|
-
|
|
15542
|
-
|
|
15543
|
-
});
|
|
15544
|
-
}
|
|
15570
|
+
for (var i = 0; i < len; i++) dests[i].emit("unpipe", this, {
|
|
15571
|
+
hasUnpiped: false
|
|
15572
|
+
});
|
|
15545
15573
|
return this;
|
|
15546
15574
|
}
|
|
15547
15575
|
var index = indexOf(state.pipes, dest);
|
|
@@ -15640,9 +15668,7 @@ var require_stream_readable = __commonJS({
|
|
|
15640
15668
|
function flow(stream) {
|
|
15641
15669
|
var state = stream._readableState;
|
|
15642
15670
|
debug("flow", state.flowing);
|
|
15643
|
-
while (state.flowing && stream.read() !== null)
|
|
15644
|
-
;
|
|
15645
|
-
}
|
|
15671
|
+
while (state.flowing && stream.read() !== null) ;
|
|
15646
15672
|
}
|
|
15647
15673
|
Readable.prototype.wrap = function(stream) {
|
|
15648
15674
|
var _this = this;
|
|
@@ -15791,15 +15817,13 @@ var require_stream_readable = __commonJS({
|
|
|
15791
15817
|
}
|
|
15792
15818
|
});
|
|
15793
15819
|
|
|
15794
|
-
// ../../node_modules
|
|
15820
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js
|
|
15795
15821
|
var require_stream_duplex = __commonJS({
|
|
15796
|
-
"../../node_modules
|
|
15822
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
15797
15823
|
"use strict";
|
|
15798
15824
|
var objectKeys = Object.keys || function(obj) {
|
|
15799
15825
|
var keys2 = [];
|
|
15800
|
-
for (var key in obj)
|
|
15801
|
-
keys2.push(key);
|
|
15802
|
-
}
|
|
15826
|
+
for (var key in obj) keys2.push(key);
|
|
15803
15827
|
return keys2;
|
|
15804
15828
|
};
|
|
15805
15829
|
module2.exports = Duplex;
|
|
@@ -15886,9 +15910,9 @@ var require_stream_duplex = __commonJS({
|
|
|
15886
15910
|
}
|
|
15887
15911
|
});
|
|
15888
15912
|
|
|
15889
|
-
// ../../node_modules
|
|
15913
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js
|
|
15890
15914
|
var require_stream_writable = __commonJS({
|
|
15891
|
-
"../../node_modules
|
|
15915
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
15892
15916
|
"use strict";
|
|
15893
15917
|
module2.exports = Writable;
|
|
15894
15918
|
function CorkedRequest(state) {
|
|
@@ -15906,7 +15930,7 @@ var require_stream_writable = __commonJS({
|
|
|
15906
15930
|
};
|
|
15907
15931
|
var Stream = require_stream();
|
|
15908
15932
|
var Buffer2 = require("buffer").Buffer;
|
|
15909
|
-
var OurUint8Array = global.Uint8Array || function() {
|
|
15933
|
+
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
15910
15934
|
};
|
|
15911
15935
|
function _uint8ArrayToBuffer(chunk) {
|
|
15912
15936
|
return Buffer2.from(chunk);
|
|
@@ -16475,9 +16499,9 @@ var require_triple_beam = __commonJS({
|
|
|
16475
16499
|
}
|
|
16476
16500
|
});
|
|
16477
16501
|
|
|
16478
|
-
// ../../node_modules
|
|
16502
|
+
// ../../node_modules/winston-transport/modern.js
|
|
16479
16503
|
var require_modern = __commonJS({
|
|
16480
|
-
"../../node_modules
|
|
16504
|
+
"../../node_modules/winston-transport/modern.js"(exports2, module2) {
|
|
16481
16505
|
"use strict";
|
|
16482
16506
|
var util = require("util");
|
|
16483
16507
|
var Writable = require_stream_writable();
|
|
@@ -16587,9 +16611,9 @@ var require_modern = __commonJS({
|
|
|
16587
16611
|
}
|
|
16588
16612
|
});
|
|
16589
16613
|
|
|
16590
|
-
// ../../node_modules
|
|
16614
|
+
// ../../node_modules/winston-transport/legacy.js
|
|
16591
16615
|
var require_legacy = __commonJS({
|
|
16592
|
-
"../../node_modules
|
|
16616
|
+
"../../node_modules/winston-transport/legacy.js"(exports2, module2) {
|
|
16593
16617
|
"use strict";
|
|
16594
16618
|
var util = require("util");
|
|
16595
16619
|
var { LEVEL } = require_triple_beam();
|
|
@@ -16653,9 +16677,9 @@ var require_legacy = __commonJS({
|
|
|
16653
16677
|
}
|
|
16654
16678
|
});
|
|
16655
16679
|
|
|
16656
|
-
// ../../node_modules
|
|
16680
|
+
// ../../node_modules/winston-transport/index.js
|
|
16657
16681
|
var require_winston_transport = __commonJS({
|
|
16658
|
-
"../../node_modules
|
|
16682
|
+
"../../node_modules/winston-transport/index.js"(exports2, module2) {
|
|
16659
16683
|
"use strict";
|
|
16660
16684
|
module2.exports = require_modern();
|
|
16661
16685
|
module2.exports.LegacyTransportStream = require_legacy();
|
|
@@ -33921,9 +33945,9 @@ var require_media_typer = __commonJS({
|
|
|
33921
33945
|
}
|
|
33922
33946
|
});
|
|
33923
33947
|
|
|
33924
|
-
// ../../node_modules/mime-db/db.json
|
|
33948
|
+
// ../../node_modules/type-is/node_modules/mime-db/db.json
|
|
33925
33949
|
var require_db2 = __commonJS({
|
|
33926
|
-
"../../node_modules/mime-db/db.json"(exports2, module2) {
|
|
33950
|
+
"../../node_modules/type-is/node_modules/mime-db/db.json"(exports2, module2) {
|
|
33927
33951
|
module2.exports = {
|
|
33928
33952
|
"application/1d-interleaved-parityfec": {
|
|
33929
33953
|
source: "iana"
|
|
@@ -42103,16 +42127,16 @@ var require_db2 = __commonJS({
|
|
|
42103
42127
|
}
|
|
42104
42128
|
});
|
|
42105
42129
|
|
|
42106
|
-
// ../../node_modules/mime-db/index.js
|
|
42130
|
+
// ../../node_modules/type-is/node_modules/mime-db/index.js
|
|
42107
42131
|
var require_mime_db2 = __commonJS({
|
|
42108
|
-
"../../node_modules/mime-db/index.js"(exports2, module2) {
|
|
42132
|
+
"../../node_modules/type-is/node_modules/mime-db/index.js"(exports2, module2) {
|
|
42109
42133
|
module2.exports = require_db2();
|
|
42110
42134
|
}
|
|
42111
42135
|
});
|
|
42112
42136
|
|
|
42113
|
-
// ../../node_modules/mime-types/index.js
|
|
42137
|
+
// ../../node_modules/type-is/node_modules/mime-types/index.js
|
|
42114
42138
|
var require_mime_types2 = __commonJS({
|
|
42115
|
-
"../../node_modules/mime-types/index.js"(exports2) {
|
|
42139
|
+
"../../node_modules/type-is/node_modules/mime-types/index.js"(exports2) {
|
|
42116
42140
|
"use strict";
|
|
42117
42141
|
var db = require_mime_db2();
|
|
42118
42142
|
var extname = require("path").extname;
|
|
@@ -43369,9 +43393,9 @@ var require_es_define_property = __commonJS({
|
|
|
43369
43393
|
}
|
|
43370
43394
|
});
|
|
43371
43395
|
|
|
43372
|
-
// ../../node_modules/
|
|
43396
|
+
// ../../node_modules/has-symbols/shams.js
|
|
43373
43397
|
var require_shams = __commonJS({
|
|
43374
|
-
"../../node_modules/
|
|
43398
|
+
"../../node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
43375
43399
|
"use strict";
|
|
43376
43400
|
module2.exports = function hasSymbols() {
|
|
43377
43401
|
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
@@ -43424,9 +43448,9 @@ var require_shams = __commonJS({
|
|
|
43424
43448
|
}
|
|
43425
43449
|
});
|
|
43426
43450
|
|
|
43427
|
-
// ../../node_modules/
|
|
43451
|
+
// ../../node_modules/has-symbols/index.js
|
|
43428
43452
|
var require_has_symbols = __commonJS({
|
|
43429
|
-
"../../node_modules/
|
|
43453
|
+
"../../node_modules/has-symbols/index.js"(exports2, module2) {
|
|
43430
43454
|
"use strict";
|
|
43431
43455
|
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
43432
43456
|
var hasSymbolSham = require_shams();
|
|
@@ -44187,9 +44211,9 @@ var require_side_channel = __commonJS({
|
|
|
44187
44211
|
}
|
|
44188
44212
|
});
|
|
44189
44213
|
|
|
44190
|
-
// ../../node_modules/qs/lib/formats.js
|
|
44214
|
+
// ../../node_modules/body-parser/node_modules/qs/lib/formats.js
|
|
44191
44215
|
var require_formats = __commonJS({
|
|
44192
|
-
"../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
44216
|
+
"../../node_modules/body-parser/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
44193
44217
|
"use strict";
|
|
44194
44218
|
var replace = String.prototype.replace;
|
|
44195
44219
|
var percentTwenties = /%20/g;
|
|
@@ -44213,9 +44237,9 @@ var require_formats = __commonJS({
|
|
|
44213
44237
|
}
|
|
44214
44238
|
});
|
|
44215
44239
|
|
|
44216
|
-
// ../../node_modules/qs/lib/utils.js
|
|
44240
|
+
// ../../node_modules/body-parser/node_modules/qs/lib/utils.js
|
|
44217
44241
|
var require_utils3 = __commonJS({
|
|
44218
|
-
"../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
44242
|
+
"../../node_modules/body-parser/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
44219
44243
|
"use strict";
|
|
44220
44244
|
var formats = require_formats();
|
|
44221
44245
|
var getSideChannel = require_side_channel();
|
|
@@ -44238,7 +44262,7 @@ var require_utils3 = __commonJS({
|
|
|
44238
44262
|
var hexTable = function() {
|
|
44239
44263
|
var array = [];
|
|
44240
44264
|
for (var i = 0; i < 256; ++i) {
|
|
44241
|
-
array.
|
|
44265
|
+
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
44242
44266
|
}
|
|
44243
44267
|
return array;
|
|
44244
44268
|
}();
|
|
@@ -44250,7 +44274,7 @@ var require_utils3 = __commonJS({
|
|
|
44250
44274
|
var compacted = [];
|
|
44251
44275
|
for (var j = 0; j < obj.length; ++j) {
|
|
44252
44276
|
if (typeof obj[j] !== "undefined") {
|
|
44253
|
-
compacted.
|
|
44277
|
+
compacted[compacted.length] = obj[j];
|
|
44254
44278
|
}
|
|
44255
44279
|
}
|
|
44256
44280
|
item.obj[item.prop] = compacted;
|
|
@@ -44272,7 +44296,11 @@ var require_utils3 = __commonJS({
|
|
|
44272
44296
|
}
|
|
44273
44297
|
if (typeof source !== "object" && typeof source !== "function") {
|
|
44274
44298
|
if (isArray(target)) {
|
|
44275
|
-
target.
|
|
44299
|
+
var nextIndex = target.length;
|
|
44300
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
44301
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
44302
|
+
}
|
|
44303
|
+
target[nextIndex] = source;
|
|
44276
44304
|
} else if (target && typeof target === "object") {
|
|
44277
44305
|
if (isOverflow(target)) {
|
|
44278
44306
|
var newIndex = getMaxIndex(target) + 1;
|
|
@@ -44296,7 +44324,11 @@ var require_utils3 = __commonJS({
|
|
|
44296
44324
|
}
|
|
44297
44325
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
44298
44326
|
}
|
|
44299
|
-
|
|
44327
|
+
var combined = [target].concat(source);
|
|
44328
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
44329
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
44330
|
+
}
|
|
44331
|
+
return combined;
|
|
44300
44332
|
}
|
|
44301
44333
|
var mergeTarget = target;
|
|
44302
44334
|
if (isArray(target) && !isArray(source)) {
|
|
@@ -44309,7 +44341,7 @@ var require_utils3 = __commonJS({
|
|
|
44309
44341
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
44310
44342
|
target[i] = merge2(targetItem, item, options);
|
|
44311
44343
|
} else {
|
|
44312
|
-
target.
|
|
44344
|
+
target[target.length] = item;
|
|
44313
44345
|
}
|
|
44314
44346
|
} else {
|
|
44315
44347
|
target[i] = item;
|
|
@@ -44324,6 +44356,15 @@ var require_utils3 = __commonJS({
|
|
|
44324
44356
|
} else {
|
|
44325
44357
|
acc[key] = value;
|
|
44326
44358
|
}
|
|
44359
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
44360
|
+
markOverflow(acc, getMaxIndex(source));
|
|
44361
|
+
}
|
|
44362
|
+
if (isOverflow(acc)) {
|
|
44363
|
+
var keyNum = parseInt(key, 10);
|
|
44364
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
44365
|
+
setMaxIndex(acc, keyNum);
|
|
44366
|
+
}
|
|
44367
|
+
}
|
|
44327
44368
|
return acc;
|
|
44328
44369
|
}, mergeTarget);
|
|
44329
44370
|
};
|
|
@@ -44401,8 +44442,8 @@ var require_utils3 = __commonJS({
|
|
|
44401
44442
|
var key = keys[j];
|
|
44402
44443
|
var val = obj[key];
|
|
44403
44444
|
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
44404
|
-
queue.
|
|
44405
|
-
refs.
|
|
44445
|
+
queue[queue.length] = { obj, prop: key };
|
|
44446
|
+
refs[refs.length] = val;
|
|
44406
44447
|
}
|
|
44407
44448
|
}
|
|
44408
44449
|
}
|
|
@@ -44435,7 +44476,7 @@ var require_utils3 = __commonJS({
|
|
|
44435
44476
|
if (isArray(val)) {
|
|
44436
44477
|
var mapped = [];
|
|
44437
44478
|
for (var i = 0; i < val.length; i += 1) {
|
|
44438
|
-
mapped.
|
|
44479
|
+
mapped[mapped.length] = fn(val[i]);
|
|
44439
44480
|
}
|
|
44440
44481
|
return mapped;
|
|
44441
44482
|
}
|
|
@@ -44451,15 +44492,16 @@ var require_utils3 = __commonJS({
|
|
|
44451
44492
|
isBuffer,
|
|
44452
44493
|
isOverflow,
|
|
44453
44494
|
isRegExp,
|
|
44495
|
+
markOverflow,
|
|
44454
44496
|
maybeMap,
|
|
44455
44497
|
merge
|
|
44456
44498
|
};
|
|
44457
44499
|
}
|
|
44458
44500
|
});
|
|
44459
44501
|
|
|
44460
|
-
// ../../node_modules/qs/lib/stringify.js
|
|
44502
|
+
// ../../node_modules/body-parser/node_modules/qs/lib/stringify.js
|
|
44461
44503
|
var require_stringify = __commonJS({
|
|
44462
|
-
"../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
44504
|
+
"../../node_modules/body-parser/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
44463
44505
|
"use strict";
|
|
44464
44506
|
var getSideChannel = require_side_channel();
|
|
44465
44507
|
var utils = require_utils3();
|
|
@@ -44740,9 +44782,9 @@ var require_stringify = __commonJS({
|
|
|
44740
44782
|
}
|
|
44741
44783
|
});
|
|
44742
44784
|
|
|
44743
|
-
// ../../node_modules/qs/lib/parse.js
|
|
44785
|
+
// ../../node_modules/body-parser/node_modules/qs/lib/parse.js
|
|
44744
44786
|
var require_parse = __commonJS({
|
|
44745
|
-
"../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
44787
|
+
"../../node_modules/body-parser/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
44746
44788
|
"use strict";
|
|
44747
44789
|
var utils = require_utils3();
|
|
44748
44790
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -44847,6 +44889,12 @@ var require_parse = __commonJS({
|
|
|
44847
44889
|
if (part.indexOf("[]=") > -1) {
|
|
44848
44890
|
val = isArray(val) ? [val] : val;
|
|
44849
44891
|
}
|
|
44892
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
44893
|
+
if (options.throwOnLimitExceeded) {
|
|
44894
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
44895
|
+
}
|
|
44896
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
44897
|
+
}
|
|
44850
44898
|
if (key !== null) {
|
|
44851
44899
|
var existing = has.call(obj, key);
|
|
44852
44900
|
if (existing && options.duplicates === "combine") {
|
|
@@ -44889,11 +44937,17 @@ var require_parse = __commonJS({
|
|
|
44889
44937
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
44890
44938
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
44891
44939
|
var index = parseInt(decodedRoot, 10);
|
|
44940
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
44892
44941
|
if (!options.parseArrays && decodedRoot === "") {
|
|
44893
44942
|
obj = { 0: leaf };
|
|
44894
|
-
} else if (
|
|
44943
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
44895
44944
|
obj = [];
|
|
44896
44945
|
obj[index] = leaf;
|
|
44946
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
44947
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
44948
|
+
} else if (isValidArrayIndex) {
|
|
44949
|
+
obj[index] = leaf;
|
|
44950
|
+
utils.markOverflow(obj, index);
|
|
44897
44951
|
} else if (decodedRoot !== "__proto__") {
|
|
44898
44952
|
obj[decodedRoot] = leaf;
|
|
44899
44953
|
}
|
|
@@ -44923,7 +44977,7 @@ var require_parse = __commonJS({
|
|
|
44923
44977
|
return;
|
|
44924
44978
|
}
|
|
44925
44979
|
}
|
|
44926
|
-
keys.
|
|
44980
|
+
keys[keys.length] = parent;
|
|
44927
44981
|
}
|
|
44928
44982
|
var i = 0;
|
|
44929
44983
|
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
@@ -44934,13 +44988,13 @@ var require_parse = __commonJS({
|
|
|
44934
44988
|
return;
|
|
44935
44989
|
}
|
|
44936
44990
|
}
|
|
44937
|
-
keys.
|
|
44991
|
+
keys[keys.length] = segment[1];
|
|
44938
44992
|
}
|
|
44939
44993
|
if (segment) {
|
|
44940
44994
|
if (options.strictDepth === true) {
|
|
44941
44995
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
44942
44996
|
}
|
|
44943
|
-
keys.
|
|
44997
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
44944
44998
|
}
|
|
44945
44999
|
return keys;
|
|
44946
45000
|
};
|
|
@@ -45025,9 +45079,9 @@ var require_parse = __commonJS({
|
|
|
45025
45079
|
}
|
|
45026
45080
|
});
|
|
45027
45081
|
|
|
45028
|
-
// ../../node_modules/qs/lib/index.js
|
|
45082
|
+
// ../../node_modules/body-parser/node_modules/qs/lib/index.js
|
|
45029
45083
|
var require_lib2 = __commonJS({
|
|
45030
|
-
"../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
45084
|
+
"../../node_modules/body-parser/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
45031
45085
|
"use strict";
|
|
45032
45086
|
var stringify = require_stringify();
|
|
45033
45087
|
var parse2 = require_parse();
|
|
@@ -47127,13 +47181,896 @@ var require_init = __commonJS({
|
|
|
47127
47181
|
}
|
|
47128
47182
|
});
|
|
47129
47183
|
|
|
47184
|
+
// ../../node_modules/express/node_modules/qs/lib/formats.js
|
|
47185
|
+
var require_formats2 = __commonJS({
|
|
47186
|
+
"../../node_modules/express/node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
47187
|
+
"use strict";
|
|
47188
|
+
var replace = String.prototype.replace;
|
|
47189
|
+
var percentTwenties = /%20/g;
|
|
47190
|
+
var Format = {
|
|
47191
|
+
RFC1738: "RFC1738",
|
|
47192
|
+
RFC3986: "RFC3986"
|
|
47193
|
+
};
|
|
47194
|
+
module2.exports = {
|
|
47195
|
+
"default": Format.RFC3986,
|
|
47196
|
+
formatters: {
|
|
47197
|
+
RFC1738: function(value) {
|
|
47198
|
+
return replace.call(value, percentTwenties, "+");
|
|
47199
|
+
},
|
|
47200
|
+
RFC3986: function(value) {
|
|
47201
|
+
return String(value);
|
|
47202
|
+
}
|
|
47203
|
+
},
|
|
47204
|
+
RFC1738: Format.RFC1738,
|
|
47205
|
+
RFC3986: Format.RFC3986
|
|
47206
|
+
};
|
|
47207
|
+
}
|
|
47208
|
+
});
|
|
47209
|
+
|
|
47210
|
+
// ../../node_modules/express/node_modules/qs/lib/utils.js
|
|
47211
|
+
var require_utils4 = __commonJS({
|
|
47212
|
+
"../../node_modules/express/node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
47213
|
+
"use strict";
|
|
47214
|
+
var formats = require_formats2();
|
|
47215
|
+
var getSideChannel = require_side_channel();
|
|
47216
|
+
var has = Object.prototype.hasOwnProperty;
|
|
47217
|
+
var isArray = Array.isArray;
|
|
47218
|
+
var overflowChannel = getSideChannel();
|
|
47219
|
+
var markOverflow = function markOverflow2(obj, maxIndex) {
|
|
47220
|
+
overflowChannel.set(obj, maxIndex);
|
|
47221
|
+
return obj;
|
|
47222
|
+
};
|
|
47223
|
+
var isOverflow = function isOverflow2(obj) {
|
|
47224
|
+
return overflowChannel.has(obj);
|
|
47225
|
+
};
|
|
47226
|
+
var getMaxIndex = function getMaxIndex2(obj) {
|
|
47227
|
+
return overflowChannel.get(obj);
|
|
47228
|
+
};
|
|
47229
|
+
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
47230
|
+
overflowChannel.set(obj, maxIndex);
|
|
47231
|
+
};
|
|
47232
|
+
var hexTable = function() {
|
|
47233
|
+
var array = [];
|
|
47234
|
+
for (var i = 0; i < 256; ++i) {
|
|
47235
|
+
array[array.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
47236
|
+
}
|
|
47237
|
+
return array;
|
|
47238
|
+
}();
|
|
47239
|
+
var compactQueue = function compactQueue2(queue) {
|
|
47240
|
+
while (queue.length > 1) {
|
|
47241
|
+
var item = queue.pop();
|
|
47242
|
+
var obj = item.obj[item.prop];
|
|
47243
|
+
if (isArray(obj)) {
|
|
47244
|
+
var compacted = [];
|
|
47245
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
47246
|
+
if (typeof obj[j] !== "undefined") {
|
|
47247
|
+
compacted[compacted.length] = obj[j];
|
|
47248
|
+
}
|
|
47249
|
+
}
|
|
47250
|
+
item.obj[item.prop] = compacted;
|
|
47251
|
+
}
|
|
47252
|
+
}
|
|
47253
|
+
};
|
|
47254
|
+
var arrayToObject = function arrayToObject2(source, options) {
|
|
47255
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
47256
|
+
for (var i = 0; i < source.length; ++i) {
|
|
47257
|
+
if (typeof source[i] !== "undefined") {
|
|
47258
|
+
obj[i] = source[i];
|
|
47259
|
+
}
|
|
47260
|
+
}
|
|
47261
|
+
return obj;
|
|
47262
|
+
};
|
|
47263
|
+
var merge = function merge2(target, source, options) {
|
|
47264
|
+
if (!source) {
|
|
47265
|
+
return target;
|
|
47266
|
+
}
|
|
47267
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
47268
|
+
if (isArray(target)) {
|
|
47269
|
+
var nextIndex = target.length;
|
|
47270
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
47271
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
47272
|
+
}
|
|
47273
|
+
target[nextIndex] = source;
|
|
47274
|
+
} else if (target && typeof target === "object") {
|
|
47275
|
+
if (isOverflow(target)) {
|
|
47276
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
47277
|
+
target[newIndex] = source;
|
|
47278
|
+
setMaxIndex(target, newIndex);
|
|
47279
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
47280
|
+
target[source] = true;
|
|
47281
|
+
}
|
|
47282
|
+
} else {
|
|
47283
|
+
return [target, source];
|
|
47284
|
+
}
|
|
47285
|
+
return target;
|
|
47286
|
+
}
|
|
47287
|
+
if (!target || typeof target !== "object") {
|
|
47288
|
+
if (isOverflow(source)) {
|
|
47289
|
+
var sourceKeys = Object.keys(source);
|
|
47290
|
+
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
47291
|
+
for (var m = 0; m < sourceKeys.length; m++) {
|
|
47292
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
47293
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
47294
|
+
}
|
|
47295
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
47296
|
+
}
|
|
47297
|
+
var combined = [target].concat(source);
|
|
47298
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
47299
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
47300
|
+
}
|
|
47301
|
+
return combined;
|
|
47302
|
+
}
|
|
47303
|
+
var mergeTarget = target;
|
|
47304
|
+
if (isArray(target) && !isArray(source)) {
|
|
47305
|
+
mergeTarget = arrayToObject(target, options);
|
|
47306
|
+
}
|
|
47307
|
+
if (isArray(target) && isArray(source)) {
|
|
47308
|
+
source.forEach(function(item, i) {
|
|
47309
|
+
if (has.call(target, i)) {
|
|
47310
|
+
var targetItem = target[i];
|
|
47311
|
+
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
47312
|
+
target[i] = merge2(targetItem, item, options);
|
|
47313
|
+
} else {
|
|
47314
|
+
target[target.length] = item;
|
|
47315
|
+
}
|
|
47316
|
+
} else {
|
|
47317
|
+
target[i] = item;
|
|
47318
|
+
}
|
|
47319
|
+
});
|
|
47320
|
+
return target;
|
|
47321
|
+
}
|
|
47322
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
47323
|
+
var value = source[key];
|
|
47324
|
+
if (has.call(acc, key)) {
|
|
47325
|
+
acc[key] = merge2(acc[key], value, options);
|
|
47326
|
+
} else {
|
|
47327
|
+
acc[key] = value;
|
|
47328
|
+
}
|
|
47329
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
47330
|
+
markOverflow(acc, getMaxIndex(source));
|
|
47331
|
+
}
|
|
47332
|
+
if (isOverflow(acc)) {
|
|
47333
|
+
var keyNum = parseInt(key, 10);
|
|
47334
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
47335
|
+
setMaxIndex(acc, keyNum);
|
|
47336
|
+
}
|
|
47337
|
+
}
|
|
47338
|
+
return acc;
|
|
47339
|
+
}, mergeTarget);
|
|
47340
|
+
};
|
|
47341
|
+
var assign2 = function assignSingleSource(target, source) {
|
|
47342
|
+
return Object.keys(source).reduce(function(acc, key) {
|
|
47343
|
+
acc[key] = source[key];
|
|
47344
|
+
return acc;
|
|
47345
|
+
}, target);
|
|
47346
|
+
};
|
|
47347
|
+
var decode = function(str, defaultDecoder, charset) {
|
|
47348
|
+
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
47349
|
+
if (charset === "iso-8859-1") {
|
|
47350
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
47351
|
+
}
|
|
47352
|
+
try {
|
|
47353
|
+
return decodeURIComponent(strWithoutPlus);
|
|
47354
|
+
} catch (e) {
|
|
47355
|
+
return strWithoutPlus;
|
|
47356
|
+
}
|
|
47357
|
+
};
|
|
47358
|
+
var limit = 1024;
|
|
47359
|
+
var encode = function encode2(str, defaultEncoder, charset, kind, format2) {
|
|
47360
|
+
if (str.length === 0) {
|
|
47361
|
+
return str;
|
|
47362
|
+
}
|
|
47363
|
+
var string = str;
|
|
47364
|
+
if (typeof str === "symbol") {
|
|
47365
|
+
string = Symbol.prototype.toString.call(str);
|
|
47366
|
+
} else if (typeof str !== "string") {
|
|
47367
|
+
string = String(str);
|
|
47368
|
+
}
|
|
47369
|
+
if (charset === "iso-8859-1") {
|
|
47370
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
47371
|
+
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
47372
|
+
});
|
|
47373
|
+
}
|
|
47374
|
+
var out = "";
|
|
47375
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
47376
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
47377
|
+
var arr = [];
|
|
47378
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
47379
|
+
var c = segment.charCodeAt(i);
|
|
47380
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format2 === formats.RFC1738 && (c === 40 || c === 41)) {
|
|
47381
|
+
arr[arr.length] = segment.charAt(i);
|
|
47382
|
+
continue;
|
|
47383
|
+
}
|
|
47384
|
+
if (c < 128) {
|
|
47385
|
+
arr[arr.length] = hexTable[c];
|
|
47386
|
+
continue;
|
|
47387
|
+
}
|
|
47388
|
+
if (c < 2048) {
|
|
47389
|
+
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
47390
|
+
continue;
|
|
47391
|
+
}
|
|
47392
|
+
if (c < 55296 || c >= 57344) {
|
|
47393
|
+
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
47394
|
+
continue;
|
|
47395
|
+
}
|
|
47396
|
+
i += 1;
|
|
47397
|
+
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
47398
|
+
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
47399
|
+
}
|
|
47400
|
+
out += arr.join("");
|
|
47401
|
+
}
|
|
47402
|
+
return out;
|
|
47403
|
+
};
|
|
47404
|
+
var compact = function compact2(value) {
|
|
47405
|
+
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
47406
|
+
var refs = [];
|
|
47407
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
47408
|
+
var item = queue[i];
|
|
47409
|
+
var obj = item.obj[item.prop];
|
|
47410
|
+
var keys = Object.keys(obj);
|
|
47411
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
47412
|
+
var key = keys[j];
|
|
47413
|
+
var val = obj[key];
|
|
47414
|
+
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
47415
|
+
queue[queue.length] = { obj, prop: key };
|
|
47416
|
+
refs[refs.length] = val;
|
|
47417
|
+
}
|
|
47418
|
+
}
|
|
47419
|
+
}
|
|
47420
|
+
compactQueue(queue);
|
|
47421
|
+
return value;
|
|
47422
|
+
};
|
|
47423
|
+
var isRegExp = function isRegExp2(obj) {
|
|
47424
|
+
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
47425
|
+
};
|
|
47426
|
+
var isBuffer = function isBuffer2(obj) {
|
|
47427
|
+
if (!obj || typeof obj !== "object") {
|
|
47428
|
+
return false;
|
|
47429
|
+
}
|
|
47430
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
47431
|
+
};
|
|
47432
|
+
var combine = function combine2(a, b, arrayLimit, plainObjects) {
|
|
47433
|
+
if (isOverflow(a)) {
|
|
47434
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
47435
|
+
a[newIndex] = b;
|
|
47436
|
+
setMaxIndex(a, newIndex);
|
|
47437
|
+
return a;
|
|
47438
|
+
}
|
|
47439
|
+
var result = [].concat(a, b);
|
|
47440
|
+
if (result.length > arrayLimit) {
|
|
47441
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
47442
|
+
}
|
|
47443
|
+
return result;
|
|
47444
|
+
};
|
|
47445
|
+
var maybeMap = function maybeMap2(val, fn) {
|
|
47446
|
+
if (isArray(val)) {
|
|
47447
|
+
var mapped = [];
|
|
47448
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
47449
|
+
mapped[mapped.length] = fn(val[i]);
|
|
47450
|
+
}
|
|
47451
|
+
return mapped;
|
|
47452
|
+
}
|
|
47453
|
+
return fn(val);
|
|
47454
|
+
};
|
|
47455
|
+
module2.exports = {
|
|
47456
|
+
arrayToObject,
|
|
47457
|
+
assign: assign2,
|
|
47458
|
+
combine,
|
|
47459
|
+
compact,
|
|
47460
|
+
decode,
|
|
47461
|
+
encode,
|
|
47462
|
+
isBuffer,
|
|
47463
|
+
isOverflow,
|
|
47464
|
+
isRegExp,
|
|
47465
|
+
markOverflow,
|
|
47466
|
+
maybeMap,
|
|
47467
|
+
merge
|
|
47468
|
+
};
|
|
47469
|
+
}
|
|
47470
|
+
});
|
|
47471
|
+
|
|
47472
|
+
// ../../node_modules/express/node_modules/qs/lib/stringify.js
|
|
47473
|
+
var require_stringify2 = __commonJS({
|
|
47474
|
+
"../../node_modules/express/node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
47475
|
+
"use strict";
|
|
47476
|
+
var getSideChannel = require_side_channel();
|
|
47477
|
+
var utils = require_utils4();
|
|
47478
|
+
var formats = require_formats2();
|
|
47479
|
+
var has = Object.prototype.hasOwnProperty;
|
|
47480
|
+
var arrayPrefixGenerators = {
|
|
47481
|
+
brackets: function brackets(prefix) {
|
|
47482
|
+
return prefix + "[]";
|
|
47483
|
+
},
|
|
47484
|
+
comma: "comma",
|
|
47485
|
+
indices: function indices(prefix, key) {
|
|
47486
|
+
return prefix + "[" + key + "]";
|
|
47487
|
+
},
|
|
47488
|
+
repeat: function repeat(prefix) {
|
|
47489
|
+
return prefix;
|
|
47490
|
+
}
|
|
47491
|
+
};
|
|
47492
|
+
var isArray = Array.isArray;
|
|
47493
|
+
var push = Array.prototype.push;
|
|
47494
|
+
var pushToArray = function(arr, valueOrArray) {
|
|
47495
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
47496
|
+
};
|
|
47497
|
+
var toISO = Date.prototype.toISOString;
|
|
47498
|
+
var defaultFormat = formats["default"];
|
|
47499
|
+
var defaults = {
|
|
47500
|
+
addQueryPrefix: false,
|
|
47501
|
+
allowDots: false,
|
|
47502
|
+
allowEmptyArrays: false,
|
|
47503
|
+
arrayFormat: "indices",
|
|
47504
|
+
charset: "utf-8",
|
|
47505
|
+
charsetSentinel: false,
|
|
47506
|
+
commaRoundTrip: false,
|
|
47507
|
+
delimiter: "&",
|
|
47508
|
+
encode: true,
|
|
47509
|
+
encodeDotInKeys: false,
|
|
47510
|
+
encoder: utils.encode,
|
|
47511
|
+
encodeValuesOnly: false,
|
|
47512
|
+
filter: void 0,
|
|
47513
|
+
format: defaultFormat,
|
|
47514
|
+
formatter: formats.formatters[defaultFormat],
|
|
47515
|
+
// deprecated
|
|
47516
|
+
indices: false,
|
|
47517
|
+
serializeDate: function serializeDate(date) {
|
|
47518
|
+
return toISO.call(date);
|
|
47519
|
+
},
|
|
47520
|
+
skipNulls: false,
|
|
47521
|
+
strictNullHandling: false
|
|
47522
|
+
};
|
|
47523
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
|
|
47524
|
+
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
47525
|
+
};
|
|
47526
|
+
var sentinel = {};
|
|
47527
|
+
var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format2, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
47528
|
+
var obj = object;
|
|
47529
|
+
var tmpSc = sideChannel;
|
|
47530
|
+
var step = 0;
|
|
47531
|
+
var findFlag = false;
|
|
47532
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
47533
|
+
var pos = tmpSc.get(object);
|
|
47534
|
+
step += 1;
|
|
47535
|
+
if (typeof pos !== "undefined") {
|
|
47536
|
+
if (pos === step) {
|
|
47537
|
+
throw new RangeError("Cyclic object value");
|
|
47538
|
+
} else {
|
|
47539
|
+
findFlag = true;
|
|
47540
|
+
}
|
|
47541
|
+
}
|
|
47542
|
+
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
47543
|
+
step = 0;
|
|
47544
|
+
}
|
|
47545
|
+
}
|
|
47546
|
+
if (typeof filter === "function") {
|
|
47547
|
+
obj = filter(prefix, obj);
|
|
47548
|
+
} else if (obj instanceof Date) {
|
|
47549
|
+
obj = serializeDate(obj);
|
|
47550
|
+
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
47551
|
+
obj = utils.maybeMap(obj, function(value2) {
|
|
47552
|
+
if (value2 instanceof Date) {
|
|
47553
|
+
return serializeDate(value2);
|
|
47554
|
+
}
|
|
47555
|
+
return value2;
|
|
47556
|
+
});
|
|
47557
|
+
}
|
|
47558
|
+
if (obj === null) {
|
|
47559
|
+
if (strictNullHandling) {
|
|
47560
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format2) : prefix;
|
|
47561
|
+
}
|
|
47562
|
+
obj = "";
|
|
47563
|
+
}
|
|
47564
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
47565
|
+
if (encoder) {
|
|
47566
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format2);
|
|
47567
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format2))];
|
|
47568
|
+
}
|
|
47569
|
+
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
47570
|
+
}
|
|
47571
|
+
var values = [];
|
|
47572
|
+
if (typeof obj === "undefined") {
|
|
47573
|
+
return values;
|
|
47574
|
+
}
|
|
47575
|
+
var objKeys;
|
|
47576
|
+
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
47577
|
+
if (encodeValuesOnly && encoder) {
|
|
47578
|
+
obj = utils.maybeMap(obj, encoder);
|
|
47579
|
+
}
|
|
47580
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
47581
|
+
} else if (isArray(filter)) {
|
|
47582
|
+
objKeys = filter;
|
|
47583
|
+
} else {
|
|
47584
|
+
var keys = Object.keys(obj);
|
|
47585
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
47586
|
+
}
|
|
47587
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
47588
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
47589
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
47590
|
+
return adjustedPrefix + "[]";
|
|
47591
|
+
}
|
|
47592
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
47593
|
+
var key = objKeys[j];
|
|
47594
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
47595
|
+
if (skipNulls && value === null) {
|
|
47596
|
+
continue;
|
|
47597
|
+
}
|
|
47598
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
47599
|
+
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
47600
|
+
sideChannel.set(object, step);
|
|
47601
|
+
var valueSideChannel = getSideChannel();
|
|
47602
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
47603
|
+
pushToArray(values, stringify2(
|
|
47604
|
+
value,
|
|
47605
|
+
keyPrefix,
|
|
47606
|
+
generateArrayPrefix,
|
|
47607
|
+
commaRoundTrip,
|
|
47608
|
+
allowEmptyArrays,
|
|
47609
|
+
strictNullHandling,
|
|
47610
|
+
skipNulls,
|
|
47611
|
+
encodeDotInKeys,
|
|
47612
|
+
generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
47613
|
+
filter,
|
|
47614
|
+
sort,
|
|
47615
|
+
allowDots,
|
|
47616
|
+
serializeDate,
|
|
47617
|
+
format2,
|
|
47618
|
+
formatter,
|
|
47619
|
+
encodeValuesOnly,
|
|
47620
|
+
charset,
|
|
47621
|
+
valueSideChannel
|
|
47622
|
+
));
|
|
47623
|
+
}
|
|
47624
|
+
return values;
|
|
47625
|
+
};
|
|
47626
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
47627
|
+
if (!opts) {
|
|
47628
|
+
return defaults;
|
|
47629
|
+
}
|
|
47630
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
47631
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
47632
|
+
}
|
|
47633
|
+
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
47634
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
47635
|
+
}
|
|
47636
|
+
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
47637
|
+
throw new TypeError("Encoder has to be a function.");
|
|
47638
|
+
}
|
|
47639
|
+
var charset = opts.charset || defaults.charset;
|
|
47640
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
47641
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
47642
|
+
}
|
|
47643
|
+
var format2 = formats["default"];
|
|
47644
|
+
if (typeof opts.format !== "undefined") {
|
|
47645
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
47646
|
+
throw new TypeError("Unknown format option provided.");
|
|
47647
|
+
}
|
|
47648
|
+
format2 = opts.format;
|
|
47649
|
+
}
|
|
47650
|
+
var formatter = formats.formatters[format2];
|
|
47651
|
+
var filter = defaults.filter;
|
|
47652
|
+
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
47653
|
+
filter = opts.filter;
|
|
47654
|
+
}
|
|
47655
|
+
var arrayFormat;
|
|
47656
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
47657
|
+
arrayFormat = opts.arrayFormat;
|
|
47658
|
+
} else if ("indices" in opts) {
|
|
47659
|
+
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
47660
|
+
} else {
|
|
47661
|
+
arrayFormat = defaults.arrayFormat;
|
|
47662
|
+
}
|
|
47663
|
+
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
47664
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
47665
|
+
}
|
|
47666
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
47667
|
+
return {
|
|
47668
|
+
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
47669
|
+
allowDots,
|
|
47670
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
47671
|
+
arrayFormat,
|
|
47672
|
+
charset,
|
|
47673
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
47674
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
47675
|
+
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
47676
|
+
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
47677
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
47678
|
+
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
47679
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
47680
|
+
filter,
|
|
47681
|
+
format: format2,
|
|
47682
|
+
formatter,
|
|
47683
|
+
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
47684
|
+
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
47685
|
+
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
47686
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
47687
|
+
};
|
|
47688
|
+
};
|
|
47689
|
+
module2.exports = function(object, opts) {
|
|
47690
|
+
var obj = object;
|
|
47691
|
+
var options = normalizeStringifyOptions(opts);
|
|
47692
|
+
var objKeys;
|
|
47693
|
+
var filter;
|
|
47694
|
+
if (typeof options.filter === "function") {
|
|
47695
|
+
filter = options.filter;
|
|
47696
|
+
obj = filter("", obj);
|
|
47697
|
+
} else if (isArray(options.filter)) {
|
|
47698
|
+
filter = options.filter;
|
|
47699
|
+
objKeys = filter;
|
|
47700
|
+
}
|
|
47701
|
+
var keys = [];
|
|
47702
|
+
if (typeof obj !== "object" || obj === null) {
|
|
47703
|
+
return "";
|
|
47704
|
+
}
|
|
47705
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
47706
|
+
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
47707
|
+
if (!objKeys) {
|
|
47708
|
+
objKeys = Object.keys(obj);
|
|
47709
|
+
}
|
|
47710
|
+
if (options.sort) {
|
|
47711
|
+
objKeys.sort(options.sort);
|
|
47712
|
+
}
|
|
47713
|
+
var sideChannel = getSideChannel();
|
|
47714
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
47715
|
+
var key = objKeys[i];
|
|
47716
|
+
var value = obj[key];
|
|
47717
|
+
if (options.skipNulls && value === null) {
|
|
47718
|
+
continue;
|
|
47719
|
+
}
|
|
47720
|
+
pushToArray(keys, stringify(
|
|
47721
|
+
value,
|
|
47722
|
+
key,
|
|
47723
|
+
generateArrayPrefix,
|
|
47724
|
+
commaRoundTrip,
|
|
47725
|
+
options.allowEmptyArrays,
|
|
47726
|
+
options.strictNullHandling,
|
|
47727
|
+
options.skipNulls,
|
|
47728
|
+
options.encodeDotInKeys,
|
|
47729
|
+
options.encode ? options.encoder : null,
|
|
47730
|
+
options.filter,
|
|
47731
|
+
options.sort,
|
|
47732
|
+
options.allowDots,
|
|
47733
|
+
options.serializeDate,
|
|
47734
|
+
options.format,
|
|
47735
|
+
options.formatter,
|
|
47736
|
+
options.encodeValuesOnly,
|
|
47737
|
+
options.charset,
|
|
47738
|
+
sideChannel
|
|
47739
|
+
));
|
|
47740
|
+
}
|
|
47741
|
+
var joined = keys.join(options.delimiter);
|
|
47742
|
+
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
47743
|
+
if (options.charsetSentinel) {
|
|
47744
|
+
if (options.charset === "iso-8859-1") {
|
|
47745
|
+
prefix += "utf8=%26%2310003%3B&";
|
|
47746
|
+
} else {
|
|
47747
|
+
prefix += "utf8=%E2%9C%93&";
|
|
47748
|
+
}
|
|
47749
|
+
}
|
|
47750
|
+
return joined.length > 0 ? prefix + joined : "";
|
|
47751
|
+
};
|
|
47752
|
+
}
|
|
47753
|
+
});
|
|
47754
|
+
|
|
47755
|
+
// ../../node_modules/express/node_modules/qs/lib/parse.js
|
|
47756
|
+
var require_parse2 = __commonJS({
|
|
47757
|
+
"../../node_modules/express/node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
47758
|
+
"use strict";
|
|
47759
|
+
var utils = require_utils4();
|
|
47760
|
+
var has = Object.prototype.hasOwnProperty;
|
|
47761
|
+
var isArray = Array.isArray;
|
|
47762
|
+
var defaults = {
|
|
47763
|
+
allowDots: false,
|
|
47764
|
+
allowEmptyArrays: false,
|
|
47765
|
+
allowPrototypes: false,
|
|
47766
|
+
allowSparse: false,
|
|
47767
|
+
arrayLimit: 20,
|
|
47768
|
+
charset: "utf-8",
|
|
47769
|
+
charsetSentinel: false,
|
|
47770
|
+
comma: false,
|
|
47771
|
+
decodeDotInKeys: false,
|
|
47772
|
+
decoder: utils.decode,
|
|
47773
|
+
delimiter: "&",
|
|
47774
|
+
depth: 5,
|
|
47775
|
+
duplicates: "combine",
|
|
47776
|
+
ignoreQueryPrefix: false,
|
|
47777
|
+
interpretNumericEntities: false,
|
|
47778
|
+
parameterLimit: 1e3,
|
|
47779
|
+
parseArrays: true,
|
|
47780
|
+
plainObjects: false,
|
|
47781
|
+
strictDepth: false,
|
|
47782
|
+
strictNullHandling: false,
|
|
47783
|
+
throwOnLimitExceeded: false
|
|
47784
|
+
};
|
|
47785
|
+
var interpretNumericEntities = function(str) {
|
|
47786
|
+
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
47787
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
47788
|
+
});
|
|
47789
|
+
};
|
|
47790
|
+
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
47791
|
+
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
47792
|
+
return val.split(",");
|
|
47793
|
+
}
|
|
47794
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
47795
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
47796
|
+
}
|
|
47797
|
+
return val;
|
|
47798
|
+
};
|
|
47799
|
+
var isoSentinel = "utf8=%26%2310003%3B";
|
|
47800
|
+
var charsetSentinel = "utf8=%E2%9C%93";
|
|
47801
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
47802
|
+
var obj = { __proto__: null };
|
|
47803
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
47804
|
+
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
47805
|
+
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
47806
|
+
var parts = cleanStr.split(
|
|
47807
|
+
options.delimiter,
|
|
47808
|
+
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
47809
|
+
);
|
|
47810
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
47811
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
47812
|
+
}
|
|
47813
|
+
var skipIndex = -1;
|
|
47814
|
+
var i;
|
|
47815
|
+
var charset = options.charset;
|
|
47816
|
+
if (options.charsetSentinel) {
|
|
47817
|
+
for (i = 0; i < parts.length; ++i) {
|
|
47818
|
+
if (parts[i].indexOf("utf8=") === 0) {
|
|
47819
|
+
if (parts[i] === charsetSentinel) {
|
|
47820
|
+
charset = "utf-8";
|
|
47821
|
+
} else if (parts[i] === isoSentinel) {
|
|
47822
|
+
charset = "iso-8859-1";
|
|
47823
|
+
}
|
|
47824
|
+
skipIndex = i;
|
|
47825
|
+
i = parts.length;
|
|
47826
|
+
}
|
|
47827
|
+
}
|
|
47828
|
+
}
|
|
47829
|
+
for (i = 0; i < parts.length; ++i) {
|
|
47830
|
+
if (i === skipIndex) {
|
|
47831
|
+
continue;
|
|
47832
|
+
}
|
|
47833
|
+
var part = parts[i];
|
|
47834
|
+
var bracketEqualsPos = part.indexOf("]=");
|
|
47835
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
47836
|
+
var key;
|
|
47837
|
+
var val;
|
|
47838
|
+
if (pos === -1) {
|
|
47839
|
+
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
47840
|
+
val = options.strictNullHandling ? null : "";
|
|
47841
|
+
} else {
|
|
47842
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
47843
|
+
if (key !== null) {
|
|
47844
|
+
val = utils.maybeMap(
|
|
47845
|
+
parseArrayValue(
|
|
47846
|
+
part.slice(pos + 1),
|
|
47847
|
+
options,
|
|
47848
|
+
isArray(obj[key]) ? obj[key].length : 0
|
|
47849
|
+
),
|
|
47850
|
+
function(encodedVal) {
|
|
47851
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
47852
|
+
}
|
|
47853
|
+
);
|
|
47854
|
+
}
|
|
47855
|
+
}
|
|
47856
|
+
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
47857
|
+
val = interpretNumericEntities(String(val));
|
|
47858
|
+
}
|
|
47859
|
+
if (part.indexOf("[]=") > -1) {
|
|
47860
|
+
val = isArray(val) ? [val] : val;
|
|
47861
|
+
}
|
|
47862
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
47863
|
+
if (options.throwOnLimitExceeded) {
|
|
47864
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
47865
|
+
}
|
|
47866
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
47867
|
+
}
|
|
47868
|
+
if (key !== null) {
|
|
47869
|
+
var existing = has.call(obj, key);
|
|
47870
|
+
if (existing && options.duplicates === "combine") {
|
|
47871
|
+
obj[key] = utils.combine(
|
|
47872
|
+
obj[key],
|
|
47873
|
+
val,
|
|
47874
|
+
options.arrayLimit,
|
|
47875
|
+
options.plainObjects
|
|
47876
|
+
);
|
|
47877
|
+
} else if (!existing || options.duplicates === "last") {
|
|
47878
|
+
obj[key] = val;
|
|
47879
|
+
}
|
|
47880
|
+
}
|
|
47881
|
+
}
|
|
47882
|
+
return obj;
|
|
47883
|
+
};
|
|
47884
|
+
var parseObject = function(chain, val, options, valuesParsed) {
|
|
47885
|
+
var currentArrayLength = 0;
|
|
47886
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
47887
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
47888
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
47889
|
+
}
|
|
47890
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
47891
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
47892
|
+
var obj;
|
|
47893
|
+
var root = chain[i];
|
|
47894
|
+
if (root === "[]" && options.parseArrays) {
|
|
47895
|
+
if (utils.isOverflow(leaf)) {
|
|
47896
|
+
obj = leaf;
|
|
47897
|
+
} else {
|
|
47898
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
|
|
47899
|
+
[],
|
|
47900
|
+
leaf,
|
|
47901
|
+
options.arrayLimit,
|
|
47902
|
+
options.plainObjects
|
|
47903
|
+
);
|
|
47904
|
+
}
|
|
47905
|
+
} else {
|
|
47906
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
47907
|
+
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
47908
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
47909
|
+
var index = parseInt(decodedRoot, 10);
|
|
47910
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
47911
|
+
if (!options.parseArrays && decodedRoot === "") {
|
|
47912
|
+
obj = { 0: leaf };
|
|
47913
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
47914
|
+
obj = [];
|
|
47915
|
+
obj[index] = leaf;
|
|
47916
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
47917
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
47918
|
+
} else if (isValidArrayIndex) {
|
|
47919
|
+
obj[index] = leaf;
|
|
47920
|
+
utils.markOverflow(obj, index);
|
|
47921
|
+
} else if (decodedRoot !== "__proto__") {
|
|
47922
|
+
obj[decodedRoot] = leaf;
|
|
47923
|
+
}
|
|
47924
|
+
}
|
|
47925
|
+
leaf = obj;
|
|
47926
|
+
}
|
|
47927
|
+
return leaf;
|
|
47928
|
+
};
|
|
47929
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
|
|
47930
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
47931
|
+
if (options.depth <= 0) {
|
|
47932
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
47933
|
+
if (!options.allowPrototypes) {
|
|
47934
|
+
return;
|
|
47935
|
+
}
|
|
47936
|
+
}
|
|
47937
|
+
return [key];
|
|
47938
|
+
}
|
|
47939
|
+
var brackets = /(\[[^[\]]*])/;
|
|
47940
|
+
var child = /(\[[^[\]]*])/g;
|
|
47941
|
+
var segment = brackets.exec(key);
|
|
47942
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
47943
|
+
var keys = [];
|
|
47944
|
+
if (parent) {
|
|
47945
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
47946
|
+
if (!options.allowPrototypes) {
|
|
47947
|
+
return;
|
|
47948
|
+
}
|
|
47949
|
+
}
|
|
47950
|
+
keys[keys.length] = parent;
|
|
47951
|
+
}
|
|
47952
|
+
var i = 0;
|
|
47953
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
47954
|
+
i += 1;
|
|
47955
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
47956
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
47957
|
+
if (!options.allowPrototypes) {
|
|
47958
|
+
return;
|
|
47959
|
+
}
|
|
47960
|
+
}
|
|
47961
|
+
keys[keys.length] = segment[1];
|
|
47962
|
+
}
|
|
47963
|
+
if (segment) {
|
|
47964
|
+
if (options.strictDepth === true) {
|
|
47965
|
+
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
47966
|
+
}
|
|
47967
|
+
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
47968
|
+
}
|
|
47969
|
+
return keys;
|
|
47970
|
+
};
|
|
47971
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
47972
|
+
if (!givenKey) {
|
|
47973
|
+
return;
|
|
47974
|
+
}
|
|
47975
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
47976
|
+
if (!keys) {
|
|
47977
|
+
return;
|
|
47978
|
+
}
|
|
47979
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
47980
|
+
};
|
|
47981
|
+
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
47982
|
+
if (!opts) {
|
|
47983
|
+
return defaults;
|
|
47984
|
+
}
|
|
47985
|
+
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
47986
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
47987
|
+
}
|
|
47988
|
+
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
47989
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
47990
|
+
}
|
|
47991
|
+
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
47992
|
+
throw new TypeError("Decoder has to be a function.");
|
|
47993
|
+
}
|
|
47994
|
+
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
47995
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
47996
|
+
}
|
|
47997
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
47998
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
47999
|
+
}
|
|
48000
|
+
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
48001
|
+
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
48002
|
+
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
48003
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
48004
|
+
}
|
|
48005
|
+
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
48006
|
+
return {
|
|
48007
|
+
allowDots,
|
|
48008
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
48009
|
+
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
48010
|
+
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
48011
|
+
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
48012
|
+
charset,
|
|
48013
|
+
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
48014
|
+
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
48015
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
48016
|
+
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
48017
|
+
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
48018
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
48019
|
+
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
48020
|
+
duplicates,
|
|
48021
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
48022
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
48023
|
+
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
48024
|
+
parseArrays: opts.parseArrays !== false,
|
|
48025
|
+
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
48026
|
+
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
48027
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
48028
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
48029
|
+
};
|
|
48030
|
+
};
|
|
48031
|
+
module2.exports = function(str, opts) {
|
|
48032
|
+
var options = normalizeParseOptions(opts);
|
|
48033
|
+
if (str === "" || str === null || typeof str === "undefined") {
|
|
48034
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
48035
|
+
}
|
|
48036
|
+
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
48037
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
48038
|
+
var keys = Object.keys(tempObj);
|
|
48039
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
48040
|
+
var key = keys[i];
|
|
48041
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
48042
|
+
obj = utils.merge(obj, newObj, options);
|
|
48043
|
+
}
|
|
48044
|
+
if (options.allowSparse === true) {
|
|
48045
|
+
return obj;
|
|
48046
|
+
}
|
|
48047
|
+
return utils.compact(obj);
|
|
48048
|
+
};
|
|
48049
|
+
}
|
|
48050
|
+
});
|
|
48051
|
+
|
|
48052
|
+
// ../../node_modules/express/node_modules/qs/lib/index.js
|
|
48053
|
+
var require_lib3 = __commonJS({
|
|
48054
|
+
"../../node_modules/express/node_modules/qs/lib/index.js"(exports2, module2) {
|
|
48055
|
+
"use strict";
|
|
48056
|
+
var stringify = require_stringify2();
|
|
48057
|
+
var parse2 = require_parse2();
|
|
48058
|
+
var formats = require_formats2();
|
|
48059
|
+
module2.exports = {
|
|
48060
|
+
formats,
|
|
48061
|
+
parse: parse2,
|
|
48062
|
+
stringify
|
|
48063
|
+
};
|
|
48064
|
+
}
|
|
48065
|
+
});
|
|
48066
|
+
|
|
47130
48067
|
// ../../node_modules/express/lib/middleware/query.js
|
|
47131
48068
|
var require_query = __commonJS({
|
|
47132
48069
|
"../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
47133
48070
|
"use strict";
|
|
47134
48071
|
var merge = require_utils_merge();
|
|
47135
48072
|
var parseUrl = require_parseurl();
|
|
47136
|
-
var qs =
|
|
48073
|
+
var qs = require_lib3();
|
|
47137
48074
|
module2.exports = function query(options) {
|
|
47138
48075
|
var opts = merge({}, options);
|
|
47139
48076
|
var queryparse = qs.parse;
|
|
@@ -49431,7 +50368,7 @@ var require_proxy_addr = __commonJS({
|
|
|
49431
50368
|
});
|
|
49432
50369
|
|
|
49433
50370
|
// ../../node_modules/express/lib/utils.js
|
|
49434
|
-
var
|
|
50371
|
+
var require_utils5 = __commonJS({
|
|
49435
50372
|
"../../node_modules/express/lib/utils.js"(exports2) {
|
|
49436
50373
|
"use strict";
|
|
49437
50374
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
@@ -49442,7 +50379,7 @@ var require_utils4 = __commonJS({
|
|
|
49442
50379
|
var mime = require_send2().mime;
|
|
49443
50380
|
var etag = require_etag();
|
|
49444
50381
|
var proxyaddr = require_proxy_addr();
|
|
49445
|
-
var qs =
|
|
50382
|
+
var qs = require_lib3();
|
|
49446
50383
|
var querystring = require("querystring");
|
|
49447
50384
|
exports2.etag = createETagGenerator({ weak: false });
|
|
49448
50385
|
exports2.wetag = createETagGenerator({ weak: true });
|
|
@@ -49579,9 +50516,9 @@ var require_application = __commonJS({
|
|
|
49579
50516
|
var debug = require_src4()("express:application");
|
|
49580
50517
|
var View = require_view();
|
|
49581
50518
|
var http = require("http");
|
|
49582
|
-
var compileETag =
|
|
49583
|
-
var compileQueryParser =
|
|
49584
|
-
var compileTrust =
|
|
50519
|
+
var compileETag = require_utils5().compileETag;
|
|
50520
|
+
var compileQueryParser = require_utils5().compileQueryParser;
|
|
50521
|
+
var compileTrust = require_utils5().compileTrust;
|
|
49585
50522
|
var deprecate = require_depd()("express");
|
|
49586
50523
|
var flatten = require_array_flatten();
|
|
49587
50524
|
var merge = require_utils_merge();
|
|
@@ -59478,15 +60415,15 @@ var require_response = __commonJS({
|
|
|
59478
60415
|
var encodeUrl = require_encodeurl();
|
|
59479
60416
|
var escapeHtml = require_escape_html();
|
|
59480
60417
|
var http = require("http");
|
|
59481
|
-
var isAbsolute =
|
|
60418
|
+
var isAbsolute = require_utils5().isAbsolute;
|
|
59482
60419
|
var onFinished = require_on_finished();
|
|
59483
60420
|
var path = require("path");
|
|
59484
60421
|
var statuses = require_statuses();
|
|
59485
60422
|
var merge = require_utils_merge();
|
|
59486
60423
|
var sign = require_cookie_signature().sign;
|
|
59487
|
-
var normalizeType =
|
|
59488
|
-
var normalizeTypes =
|
|
59489
|
-
var setCharset =
|
|
60424
|
+
var normalizeType = require_utils5().normalizeType;
|
|
60425
|
+
var normalizeTypes = require_utils5().normalizeTypes;
|
|
60426
|
+
var setCharset = require_utils5().setCharset;
|
|
59490
60427
|
var cookie = require_cookie();
|
|
59491
60428
|
var send = require_send2();
|
|
59492
60429
|
var extname = path.extname;
|
|
@@ -60450,7 +61387,7 @@ var deepFind = (obj, path, keySeparator = ".") => {
|
|
|
60450
61387
|
}
|
|
60451
61388
|
return current;
|
|
60452
61389
|
};
|
|
60453
|
-
var getCleanedCode = (code) => code == null ? void 0 : code.replace(
|
|
61390
|
+
var getCleanedCode = (code) => code == null ? void 0 : code.replace(/_/g, "-");
|
|
60454
61391
|
var consoleLogger = {
|
|
60455
61392
|
type: "logger",
|
|
60456
61393
|
log(args) {
|
|
@@ -60710,7 +61647,16 @@ function keysFromSelector(selector, opts) {
|
|
|
60710
61647
|
const {
|
|
60711
61648
|
[PATH_KEY]: path
|
|
60712
61649
|
} = selector(createProxy());
|
|
60713
|
-
|
|
61650
|
+
const keySeparator = (opts == null ? void 0 : opts.keySeparator) ?? ".";
|
|
61651
|
+
const nsSeparator = (opts == null ? void 0 : opts.nsSeparator) ?? ":";
|
|
61652
|
+
if (path.length > 1 && nsSeparator) {
|
|
61653
|
+
const ns = opts == null ? void 0 : opts.ns;
|
|
61654
|
+
const namespaces = ns ? Array.isArray(ns) ? ns : [ns] : [];
|
|
61655
|
+
if (namespaces.includes(path[0])) {
|
|
61656
|
+
return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
|
|
61657
|
+
}
|
|
61658
|
+
}
|
|
61659
|
+
return path.join(keySeparator);
|
|
60714
61660
|
}
|
|
60715
61661
|
var checkedLoadedFor = {};
|
|
60716
61662
|
var shouldHandleAsObject = (res) => !isString(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
@@ -62039,7 +62985,7 @@ var I18n = class _I18n extends EventEmitter {
|
|
|
62039
62985
|
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
62040
62986
|
}
|
|
62041
62987
|
if (this.options.showSupportNotice !== false && !usesLocize(this) && !getSupportNoticeShown()) {
|
|
62042
|
-
if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("\u{1F310} i18next is
|
|
62988
|
+
if (typeof console !== "undefined" && typeof console.info !== "undefined") console.info("\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}");
|
|
62043
62989
|
setSupportNoticeShown();
|
|
62044
62990
|
}
|
|
62045
62991
|
const createClassOnDemand = (ClassOrObject) => {
|