@telepath-computer/television 0.1.106 → 0.1.108
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/canonical/v1/styles.css +16 -6
- package/dist/cli.cjs +36 -919
- package/dist/views/markdown/index.html +3 -3
- package/dist/web/assets/{index-BbSTSxZQ.css → index-B-es86cH.css} +1 -1
- package/dist/web/assets/index-Br9lxH4i.js +587 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-dt9xJolN.js +0 -559
package/dist/cli.cjs
CHANGED
|
@@ -6173,8 +6173,9 @@ var require_side_channel_list = __commonJS({
|
|
|
6173
6173
|
}
|
|
6174
6174
|
},
|
|
6175
6175
|
"delete": function(key) {
|
|
6176
|
+
var root = $o && $o.next;
|
|
6176
6177
|
var deletedNode = listDelete($o, key);
|
|
6177
|
-
if (deletedNode &&
|
|
6178
|
+
if (deletedNode && root && root === deletedNode) {
|
|
6178
6179
|
$o = void 0;
|
|
6179
6180
|
}
|
|
6180
6181
|
return !!deletedNode;
|
|
@@ -21705,7 +21706,10 @@ var require_json = __commonJS({
|
|
|
21705
21706
|
var index = str.indexOf(char);
|
|
21706
21707
|
var partial2 = "";
|
|
21707
21708
|
if (index !== -1) {
|
|
21708
|
-
partial2 = str.substring(0, index) +
|
|
21709
|
+
partial2 = str.substring(0, index) + JSON_SYNTAX_CHAR;
|
|
21710
|
+
for (var i = index + 1; i < str.length; i++) {
|
|
21711
|
+
partial2 += JSON_SYNTAX_CHAR;
|
|
21712
|
+
}
|
|
21709
21713
|
}
|
|
21710
21714
|
try {
|
|
21711
21715
|
JSON.parse(partial2);
|
|
@@ -21872,9 +21876,9 @@ var require_text = __commonJS({
|
|
|
21872
21876
|
}
|
|
21873
21877
|
});
|
|
21874
21878
|
|
|
21875
|
-
// ../../node_modules/
|
|
21879
|
+
// ../../node_modules/qs/lib/formats.js
|
|
21876
21880
|
var require_formats = __commonJS({
|
|
21877
|
-
"../../node_modules/
|
|
21881
|
+
"../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
21878
21882
|
"use strict";
|
|
21879
21883
|
var replace = String.prototype.replace;
|
|
21880
21884
|
var percentTwenties = /%20/g;
|
|
@@ -21898,9 +21902,9 @@ var require_formats = __commonJS({
|
|
|
21898
21902
|
}
|
|
21899
21903
|
});
|
|
21900
21904
|
|
|
21901
|
-
// ../../node_modules/
|
|
21905
|
+
// ../../node_modules/qs/lib/utils.js
|
|
21902
21906
|
var require_utils = __commonJS({
|
|
21903
|
-
"../../node_modules/
|
|
21907
|
+
"../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
21904
21908
|
"use strict";
|
|
21905
21909
|
var formats = require_formats();
|
|
21906
21910
|
var getSideChannel = require_side_channel();
|
|
@@ -21967,8 +21971,6 @@ var require_utils = __commonJS({
|
|
|
21967
21971
|
var newIndex = getMaxIndex(target) + 1;
|
|
21968
21972
|
target[newIndex] = source;
|
|
21969
21973
|
setMaxIndex(target, newIndex);
|
|
21970
|
-
} else if (options && options.strictMerge) {
|
|
21971
|
-
return [target, source];
|
|
21972
21974
|
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
21973
21975
|
target[source] = true;
|
|
21974
21976
|
}
|
|
@@ -22162,9 +22164,9 @@ var require_utils = __commonJS({
|
|
|
22162
22164
|
}
|
|
22163
22165
|
});
|
|
22164
22166
|
|
|
22165
|
-
// ../../node_modules/
|
|
22167
|
+
// ../../node_modules/qs/lib/stringify.js
|
|
22166
22168
|
var require_stringify = __commonJS({
|
|
22167
|
-
"../../node_modules/
|
|
22169
|
+
"../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
22168
22170
|
"use strict";
|
|
22169
22171
|
var getSideChannel = require_side_channel();
|
|
22170
22172
|
var utils = require_utils();
|
|
@@ -22445,9 +22447,9 @@ var require_stringify = __commonJS({
|
|
|
22445
22447
|
}
|
|
22446
22448
|
});
|
|
22447
22449
|
|
|
22448
|
-
// ../../node_modules/
|
|
22450
|
+
// ../../node_modules/qs/lib/parse.js
|
|
22449
22451
|
var require_parse = __commonJS({
|
|
22450
|
-
"../../node_modules/
|
|
22452
|
+
"../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
22451
22453
|
"use strict";
|
|
22452
22454
|
var utils = require_utils();
|
|
22453
22455
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -22472,7 +22474,6 @@ var require_parse = __commonJS({
|
|
|
22472
22474
|
parseArrays: true,
|
|
22473
22475
|
plainObjects: false,
|
|
22474
22476
|
strictDepth: false,
|
|
22475
|
-
strictMerge: true,
|
|
22476
22477
|
strictNullHandling: false,
|
|
22477
22478
|
throwOnLimitExceeded: false
|
|
22478
22479
|
};
|
|
@@ -22499,9 +22500,9 @@ var require_parse = __commonJS({
|
|
|
22499
22500
|
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
22500
22501
|
var parts = cleanStr.split(
|
|
22501
22502
|
options.delimiter,
|
|
22502
|
-
options.throwOnLimitExceeded
|
|
22503
|
+
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
22503
22504
|
);
|
|
22504
|
-
if (options.throwOnLimitExceeded &&
|
|
22505
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
22505
22506
|
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
22506
22507
|
}
|
|
22507
22508
|
var skipIndex = -1;
|
|
@@ -22561,7 +22562,7 @@ var require_parse = __commonJS({
|
|
|
22561
22562
|
}
|
|
22562
22563
|
if (key !== null) {
|
|
22563
22564
|
var existing = has.call(obj, key);
|
|
22564
|
-
if (existing &&
|
|
22565
|
+
if (existing && options.duplicates === "combine") {
|
|
22565
22566
|
obj[key] = utils.combine(
|
|
22566
22567
|
obj[key],
|
|
22567
22568
|
val,
|
|
@@ -22718,7 +22719,6 @@ var require_parse = __commonJS({
|
|
|
22718
22719
|
parseArrays: opts.parseArrays !== false,
|
|
22719
22720
|
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
22720
22721
|
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
22721
|
-
strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
|
|
22722
22722
|
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
22723
22723
|
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
22724
22724
|
};
|
|
@@ -22744,9 +22744,9 @@ var require_parse = __commonJS({
|
|
|
22744
22744
|
}
|
|
22745
22745
|
});
|
|
22746
22746
|
|
|
22747
|
-
// ../../node_modules/
|
|
22747
|
+
// ../../node_modules/qs/lib/index.js
|
|
22748
22748
|
var require_lib2 = __commonJS({
|
|
22749
|
-
"../../node_modules/
|
|
22749
|
+
"../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
22750
22750
|
"use strict";
|
|
22751
22751
|
var stringify = require_stringify();
|
|
22752
22752
|
var parse3 = require_parse();
|
|
@@ -22877,14 +22877,14 @@ var require_urlencoded = __commonJS({
|
|
|
22877
22877
|
}
|
|
22878
22878
|
function parameterCount(body, limit) {
|
|
22879
22879
|
var count = 0;
|
|
22880
|
-
var index =
|
|
22881
|
-
|
|
22880
|
+
var index = 0;
|
|
22881
|
+
while ((index = body.indexOf("&", index)) !== -1) {
|
|
22882
22882
|
count++;
|
|
22883
|
-
|
|
22883
|
+
index++;
|
|
22884
|
+
if (count === limit) {
|
|
22884
22885
|
return void 0;
|
|
22885
22886
|
}
|
|
22886
|
-
|
|
22887
|
-
} while (index !== -1);
|
|
22887
|
+
}
|
|
22888
22888
|
return count;
|
|
22889
22889
|
}
|
|
22890
22890
|
function parser(name) {
|
|
@@ -24993,896 +24993,13 @@ var require_init = __commonJS({
|
|
|
24993
24993
|
}
|
|
24994
24994
|
});
|
|
24995
24995
|
|
|
24996
|
-
// ../../node_modules/qs/lib/formats.js
|
|
24997
|
-
var require_formats2 = __commonJS({
|
|
24998
|
-
"../../node_modules/qs/lib/formats.js"(exports2, module2) {
|
|
24999
|
-
"use strict";
|
|
25000
|
-
var replace = String.prototype.replace;
|
|
25001
|
-
var percentTwenties = /%20/g;
|
|
25002
|
-
var Format = {
|
|
25003
|
-
RFC1738: "RFC1738",
|
|
25004
|
-
RFC3986: "RFC3986"
|
|
25005
|
-
};
|
|
25006
|
-
module2.exports = {
|
|
25007
|
-
"default": Format.RFC3986,
|
|
25008
|
-
formatters: {
|
|
25009
|
-
RFC1738: function(value) {
|
|
25010
|
-
return replace.call(value, percentTwenties, "+");
|
|
25011
|
-
},
|
|
25012
|
-
RFC3986: function(value) {
|
|
25013
|
-
return String(value);
|
|
25014
|
-
}
|
|
25015
|
-
},
|
|
25016
|
-
RFC1738: Format.RFC1738,
|
|
25017
|
-
RFC3986: Format.RFC3986
|
|
25018
|
-
};
|
|
25019
|
-
}
|
|
25020
|
-
});
|
|
25021
|
-
|
|
25022
|
-
// ../../node_modules/qs/lib/utils.js
|
|
25023
|
-
var require_utils2 = __commonJS({
|
|
25024
|
-
"../../node_modules/qs/lib/utils.js"(exports2, module2) {
|
|
25025
|
-
"use strict";
|
|
25026
|
-
var formats = require_formats2();
|
|
25027
|
-
var getSideChannel = require_side_channel();
|
|
25028
|
-
var has = Object.prototype.hasOwnProperty;
|
|
25029
|
-
var isArray = Array.isArray;
|
|
25030
|
-
var overflowChannel = getSideChannel();
|
|
25031
|
-
var markOverflow = function markOverflow2(obj, maxIndex) {
|
|
25032
|
-
overflowChannel.set(obj, maxIndex);
|
|
25033
|
-
return obj;
|
|
25034
|
-
};
|
|
25035
|
-
var isOverflow = function isOverflow2(obj) {
|
|
25036
|
-
return overflowChannel.has(obj);
|
|
25037
|
-
};
|
|
25038
|
-
var getMaxIndex = function getMaxIndex2(obj) {
|
|
25039
|
-
return overflowChannel.get(obj);
|
|
25040
|
-
};
|
|
25041
|
-
var setMaxIndex = function setMaxIndex2(obj, maxIndex) {
|
|
25042
|
-
overflowChannel.set(obj, maxIndex);
|
|
25043
|
-
};
|
|
25044
|
-
var hexTable = function() {
|
|
25045
|
-
var array2 = [];
|
|
25046
|
-
for (var i = 0; i < 256; ++i) {
|
|
25047
|
-
array2[array2.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
25048
|
-
}
|
|
25049
|
-
return array2;
|
|
25050
|
-
}();
|
|
25051
|
-
var compactQueue = function compactQueue2(queue) {
|
|
25052
|
-
while (queue.length > 1) {
|
|
25053
|
-
var item = queue.pop();
|
|
25054
|
-
var obj = item.obj[item.prop];
|
|
25055
|
-
if (isArray(obj)) {
|
|
25056
|
-
var compacted = [];
|
|
25057
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
25058
|
-
if (typeof obj[j] !== "undefined") {
|
|
25059
|
-
compacted[compacted.length] = obj[j];
|
|
25060
|
-
}
|
|
25061
|
-
}
|
|
25062
|
-
item.obj[item.prop] = compacted;
|
|
25063
|
-
}
|
|
25064
|
-
}
|
|
25065
|
-
};
|
|
25066
|
-
var arrayToObject = function arrayToObject2(source, options) {
|
|
25067
|
-
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
25068
|
-
for (var i = 0; i < source.length; ++i) {
|
|
25069
|
-
if (typeof source[i] !== "undefined") {
|
|
25070
|
-
obj[i] = source[i];
|
|
25071
|
-
}
|
|
25072
|
-
}
|
|
25073
|
-
return obj;
|
|
25074
|
-
};
|
|
25075
|
-
var merge2 = function merge3(target, source, options) {
|
|
25076
|
-
if (!source) {
|
|
25077
|
-
return target;
|
|
25078
|
-
}
|
|
25079
|
-
if (typeof source !== "object" && typeof source !== "function") {
|
|
25080
|
-
if (isArray(target)) {
|
|
25081
|
-
var nextIndex = target.length;
|
|
25082
|
-
if (options && typeof options.arrayLimit === "number" && nextIndex > options.arrayLimit) {
|
|
25083
|
-
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
25084
|
-
}
|
|
25085
|
-
target[nextIndex] = source;
|
|
25086
|
-
} else if (target && typeof target === "object") {
|
|
25087
|
-
if (isOverflow(target)) {
|
|
25088
|
-
var newIndex = getMaxIndex(target) + 1;
|
|
25089
|
-
target[newIndex] = source;
|
|
25090
|
-
setMaxIndex(target, newIndex);
|
|
25091
|
-
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
25092
|
-
target[source] = true;
|
|
25093
|
-
}
|
|
25094
|
-
} else {
|
|
25095
|
-
return [target, source];
|
|
25096
|
-
}
|
|
25097
|
-
return target;
|
|
25098
|
-
}
|
|
25099
|
-
if (!target || typeof target !== "object") {
|
|
25100
|
-
if (isOverflow(source)) {
|
|
25101
|
-
var sourceKeys = Object.keys(source);
|
|
25102
|
-
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
25103
|
-
for (var m = 0; m < sourceKeys.length; m++) {
|
|
25104
|
-
var oldKey = parseInt(sourceKeys[m], 10);
|
|
25105
|
-
result[oldKey + 1] = source[sourceKeys[m]];
|
|
25106
|
-
}
|
|
25107
|
-
return markOverflow(result, getMaxIndex(source) + 1);
|
|
25108
|
-
}
|
|
25109
|
-
var combined = [target].concat(source);
|
|
25110
|
-
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
25111
|
-
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
25112
|
-
}
|
|
25113
|
-
return combined;
|
|
25114
|
-
}
|
|
25115
|
-
var mergeTarget = target;
|
|
25116
|
-
if (isArray(target) && !isArray(source)) {
|
|
25117
|
-
mergeTarget = arrayToObject(target, options);
|
|
25118
|
-
}
|
|
25119
|
-
if (isArray(target) && isArray(source)) {
|
|
25120
|
-
source.forEach(function(item, i) {
|
|
25121
|
-
if (has.call(target, i)) {
|
|
25122
|
-
var targetItem = target[i];
|
|
25123
|
-
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
25124
|
-
target[i] = merge3(targetItem, item, options);
|
|
25125
|
-
} else {
|
|
25126
|
-
target[target.length] = item;
|
|
25127
|
-
}
|
|
25128
|
-
} else {
|
|
25129
|
-
target[i] = item;
|
|
25130
|
-
}
|
|
25131
|
-
});
|
|
25132
|
-
return target;
|
|
25133
|
-
}
|
|
25134
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
25135
|
-
var value = source[key];
|
|
25136
|
-
if (has.call(acc, key)) {
|
|
25137
|
-
acc[key] = merge3(acc[key], value, options);
|
|
25138
|
-
} else {
|
|
25139
|
-
acc[key] = value;
|
|
25140
|
-
}
|
|
25141
|
-
if (isOverflow(source) && !isOverflow(acc)) {
|
|
25142
|
-
markOverflow(acc, getMaxIndex(source));
|
|
25143
|
-
}
|
|
25144
|
-
if (isOverflow(acc)) {
|
|
25145
|
-
var keyNum = parseInt(key, 10);
|
|
25146
|
-
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
25147
|
-
setMaxIndex(acc, keyNum);
|
|
25148
|
-
}
|
|
25149
|
-
}
|
|
25150
|
-
return acc;
|
|
25151
|
-
}, mergeTarget);
|
|
25152
|
-
};
|
|
25153
|
-
var assign = function assignSingleSource(target, source) {
|
|
25154
|
-
return Object.keys(source).reduce(function(acc, key) {
|
|
25155
|
-
acc[key] = source[key];
|
|
25156
|
-
return acc;
|
|
25157
|
-
}, target);
|
|
25158
|
-
};
|
|
25159
|
-
var decode3 = function(str, defaultDecoder, charset) {
|
|
25160
|
-
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
25161
|
-
if (charset === "iso-8859-1") {
|
|
25162
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
25163
|
-
}
|
|
25164
|
-
try {
|
|
25165
|
-
return decodeURIComponent(strWithoutPlus);
|
|
25166
|
-
} catch (e) {
|
|
25167
|
-
return strWithoutPlus;
|
|
25168
|
-
}
|
|
25169
|
-
};
|
|
25170
|
-
var limit = 1024;
|
|
25171
|
-
var encode3 = function encode4(str, defaultEncoder, charset, kind, format) {
|
|
25172
|
-
if (str.length === 0) {
|
|
25173
|
-
return str;
|
|
25174
|
-
}
|
|
25175
|
-
var string4 = str;
|
|
25176
|
-
if (typeof str === "symbol") {
|
|
25177
|
-
string4 = Symbol.prototype.toString.call(str);
|
|
25178
|
-
} else if (typeof str !== "string") {
|
|
25179
|
-
string4 = String(str);
|
|
25180
|
-
}
|
|
25181
|
-
if (charset === "iso-8859-1") {
|
|
25182
|
-
return escape(string4).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
25183
|
-
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
25184
|
-
});
|
|
25185
|
-
}
|
|
25186
|
-
var out = "";
|
|
25187
|
-
for (var j = 0; j < string4.length; j += limit) {
|
|
25188
|
-
var segment = string4.length >= limit ? string4.slice(j, j + limit) : string4;
|
|
25189
|
-
var arr = [];
|
|
25190
|
-
for (var i = 0; i < segment.length; ++i) {
|
|
25191
|
-
var c = segment.charCodeAt(i);
|
|
25192
|
-
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)) {
|
|
25193
|
-
arr[arr.length] = segment.charAt(i);
|
|
25194
|
-
continue;
|
|
25195
|
-
}
|
|
25196
|
-
if (c < 128) {
|
|
25197
|
-
arr[arr.length] = hexTable[c];
|
|
25198
|
-
continue;
|
|
25199
|
-
}
|
|
25200
|
-
if (c < 2048) {
|
|
25201
|
-
arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
|
|
25202
|
-
continue;
|
|
25203
|
-
}
|
|
25204
|
-
if (c < 55296 || c >= 57344) {
|
|
25205
|
-
arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
25206
|
-
continue;
|
|
25207
|
-
}
|
|
25208
|
-
i += 1;
|
|
25209
|
-
c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
|
|
25210
|
-
arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
|
|
25211
|
-
}
|
|
25212
|
-
out += arr.join("");
|
|
25213
|
-
}
|
|
25214
|
-
return out;
|
|
25215
|
-
};
|
|
25216
|
-
var compact = function compact2(value) {
|
|
25217
|
-
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
25218
|
-
var refs = [];
|
|
25219
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
25220
|
-
var item = queue[i];
|
|
25221
|
-
var obj = item.obj[item.prop];
|
|
25222
|
-
var keys = Object.keys(obj);
|
|
25223
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
25224
|
-
var key = keys[j];
|
|
25225
|
-
var val = obj[key];
|
|
25226
|
-
if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
|
|
25227
|
-
queue[queue.length] = { obj, prop: key };
|
|
25228
|
-
refs[refs.length] = val;
|
|
25229
|
-
}
|
|
25230
|
-
}
|
|
25231
|
-
}
|
|
25232
|
-
compactQueue(queue);
|
|
25233
|
-
return value;
|
|
25234
|
-
};
|
|
25235
|
-
var isRegExp = function isRegExp2(obj) {
|
|
25236
|
-
return Object.prototype.toString.call(obj) === "[object RegExp]";
|
|
25237
|
-
};
|
|
25238
|
-
var isBuffer = function isBuffer2(obj) {
|
|
25239
|
-
if (!obj || typeof obj !== "object") {
|
|
25240
|
-
return false;
|
|
25241
|
-
}
|
|
25242
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
25243
|
-
};
|
|
25244
|
-
var combine = function combine2(a, b, arrayLimit, plainObjects) {
|
|
25245
|
-
if (isOverflow(a)) {
|
|
25246
|
-
var newIndex = getMaxIndex(a) + 1;
|
|
25247
|
-
a[newIndex] = b;
|
|
25248
|
-
setMaxIndex(a, newIndex);
|
|
25249
|
-
return a;
|
|
25250
|
-
}
|
|
25251
|
-
var result = [].concat(a, b);
|
|
25252
|
-
if (result.length > arrayLimit) {
|
|
25253
|
-
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
25254
|
-
}
|
|
25255
|
-
return result;
|
|
25256
|
-
};
|
|
25257
|
-
var maybeMap = function maybeMap2(val, fn) {
|
|
25258
|
-
if (isArray(val)) {
|
|
25259
|
-
var mapped = [];
|
|
25260
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
25261
|
-
mapped[mapped.length] = fn(val[i]);
|
|
25262
|
-
}
|
|
25263
|
-
return mapped;
|
|
25264
|
-
}
|
|
25265
|
-
return fn(val);
|
|
25266
|
-
};
|
|
25267
|
-
module2.exports = {
|
|
25268
|
-
arrayToObject,
|
|
25269
|
-
assign,
|
|
25270
|
-
combine,
|
|
25271
|
-
compact,
|
|
25272
|
-
decode: decode3,
|
|
25273
|
-
encode: encode3,
|
|
25274
|
-
isBuffer,
|
|
25275
|
-
isOverflow,
|
|
25276
|
-
isRegExp,
|
|
25277
|
-
markOverflow,
|
|
25278
|
-
maybeMap,
|
|
25279
|
-
merge: merge2
|
|
25280
|
-
};
|
|
25281
|
-
}
|
|
25282
|
-
});
|
|
25283
|
-
|
|
25284
|
-
// ../../node_modules/qs/lib/stringify.js
|
|
25285
|
-
var require_stringify2 = __commonJS({
|
|
25286
|
-
"../../node_modules/qs/lib/stringify.js"(exports2, module2) {
|
|
25287
|
-
"use strict";
|
|
25288
|
-
var getSideChannel = require_side_channel();
|
|
25289
|
-
var utils = require_utils2();
|
|
25290
|
-
var formats = require_formats2();
|
|
25291
|
-
var has = Object.prototype.hasOwnProperty;
|
|
25292
|
-
var arrayPrefixGenerators = {
|
|
25293
|
-
brackets: function brackets(prefix) {
|
|
25294
|
-
return prefix + "[]";
|
|
25295
|
-
},
|
|
25296
|
-
comma: "comma",
|
|
25297
|
-
indices: function indices(prefix, key) {
|
|
25298
|
-
return prefix + "[" + key + "]";
|
|
25299
|
-
},
|
|
25300
|
-
repeat: function repeat(prefix) {
|
|
25301
|
-
return prefix;
|
|
25302
|
-
}
|
|
25303
|
-
};
|
|
25304
|
-
var isArray = Array.isArray;
|
|
25305
|
-
var push = Array.prototype.push;
|
|
25306
|
-
var pushToArray = function(arr, valueOrArray) {
|
|
25307
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
25308
|
-
};
|
|
25309
|
-
var toISO = Date.prototype.toISOString;
|
|
25310
|
-
var defaultFormat = formats["default"];
|
|
25311
|
-
var defaults = {
|
|
25312
|
-
addQueryPrefix: false,
|
|
25313
|
-
allowDots: false,
|
|
25314
|
-
allowEmptyArrays: false,
|
|
25315
|
-
arrayFormat: "indices",
|
|
25316
|
-
charset: "utf-8",
|
|
25317
|
-
charsetSentinel: false,
|
|
25318
|
-
commaRoundTrip: false,
|
|
25319
|
-
delimiter: "&",
|
|
25320
|
-
encode: true,
|
|
25321
|
-
encodeDotInKeys: false,
|
|
25322
|
-
encoder: utils.encode,
|
|
25323
|
-
encodeValuesOnly: false,
|
|
25324
|
-
filter: void 0,
|
|
25325
|
-
format: defaultFormat,
|
|
25326
|
-
formatter: formats.formatters[defaultFormat],
|
|
25327
|
-
// deprecated
|
|
25328
|
-
indices: false,
|
|
25329
|
-
serializeDate: function serializeDate(date5) {
|
|
25330
|
-
return toISO.call(date5);
|
|
25331
|
-
},
|
|
25332
|
-
skipNulls: false,
|
|
25333
|
-
strictNullHandling: false
|
|
25334
|
-
};
|
|
25335
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
|
|
25336
|
-
return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
|
|
25337
|
-
};
|
|
25338
|
-
var sentinel = {};
|
|
25339
|
-
var stringify = function stringify2(object2, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
25340
|
-
var obj = object2;
|
|
25341
|
-
var tmpSc = sideChannel;
|
|
25342
|
-
var step = 0;
|
|
25343
|
-
var findFlag = false;
|
|
25344
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
|
|
25345
|
-
var pos = tmpSc.get(object2);
|
|
25346
|
-
step += 1;
|
|
25347
|
-
if (typeof pos !== "undefined") {
|
|
25348
|
-
if (pos === step) {
|
|
25349
|
-
throw new RangeError("Cyclic object value");
|
|
25350
|
-
} else {
|
|
25351
|
-
findFlag = true;
|
|
25352
|
-
}
|
|
25353
|
-
}
|
|
25354
|
-
if (typeof tmpSc.get(sentinel) === "undefined") {
|
|
25355
|
-
step = 0;
|
|
25356
|
-
}
|
|
25357
|
-
}
|
|
25358
|
-
if (typeof filter === "function") {
|
|
25359
|
-
obj = filter(prefix, obj);
|
|
25360
|
-
} else if (obj instanceof Date) {
|
|
25361
|
-
obj = serializeDate(obj);
|
|
25362
|
-
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
25363
|
-
obj = utils.maybeMap(obj, function(value2) {
|
|
25364
|
-
if (value2 instanceof Date) {
|
|
25365
|
-
return serializeDate(value2);
|
|
25366
|
-
}
|
|
25367
|
-
return value2;
|
|
25368
|
-
});
|
|
25369
|
-
}
|
|
25370
|
-
if (obj === null) {
|
|
25371
|
-
if (strictNullHandling) {
|
|
25372
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
25373
|
-
}
|
|
25374
|
-
obj = "";
|
|
25375
|
-
}
|
|
25376
|
-
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
25377
|
-
if (encoder) {
|
|
25378
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
|
|
25379
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
|
|
25380
|
-
}
|
|
25381
|
-
return [formatter(prefix) + "=" + formatter(String(obj))];
|
|
25382
|
-
}
|
|
25383
|
-
var values = [];
|
|
25384
|
-
if (typeof obj === "undefined") {
|
|
25385
|
-
return values;
|
|
25386
|
-
}
|
|
25387
|
-
var objKeys;
|
|
25388
|
-
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
25389
|
-
if (encodeValuesOnly && encoder) {
|
|
25390
|
-
obj = utils.maybeMap(obj, encoder);
|
|
25391
|
-
}
|
|
25392
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
|
|
25393
|
-
} else if (isArray(filter)) {
|
|
25394
|
-
objKeys = filter;
|
|
25395
|
-
} else {
|
|
25396
|
-
var keys = Object.keys(obj);
|
|
25397
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
25398
|
-
}
|
|
25399
|
-
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
|
|
25400
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
25401
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
25402
|
-
return adjustedPrefix + "[]";
|
|
25403
|
-
}
|
|
25404
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
25405
|
-
var key = objKeys[j];
|
|
25406
|
-
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
25407
|
-
if (skipNulls && value === null) {
|
|
25408
|
-
continue;
|
|
25409
|
-
}
|
|
25410
|
-
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
25411
|
-
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
25412
|
-
sideChannel.set(object2, step);
|
|
25413
|
-
var valueSideChannel = getSideChannel();
|
|
25414
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
25415
|
-
pushToArray(values, stringify2(
|
|
25416
|
-
value,
|
|
25417
|
-
keyPrefix,
|
|
25418
|
-
generateArrayPrefix,
|
|
25419
|
-
commaRoundTrip,
|
|
25420
|
-
allowEmptyArrays,
|
|
25421
|
-
strictNullHandling,
|
|
25422
|
-
skipNulls,
|
|
25423
|
-
encodeDotInKeys,
|
|
25424
|
-
generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
25425
|
-
filter,
|
|
25426
|
-
sort,
|
|
25427
|
-
allowDots,
|
|
25428
|
-
serializeDate,
|
|
25429
|
-
format,
|
|
25430
|
-
formatter,
|
|
25431
|
-
encodeValuesOnly,
|
|
25432
|
-
charset,
|
|
25433
|
-
valueSideChannel
|
|
25434
|
-
));
|
|
25435
|
-
}
|
|
25436
|
-
return values;
|
|
25437
|
-
};
|
|
25438
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
|
|
25439
|
-
if (!opts) {
|
|
25440
|
-
return defaults;
|
|
25441
|
-
}
|
|
25442
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
25443
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
25444
|
-
}
|
|
25445
|
-
if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
|
|
25446
|
-
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
25447
|
-
}
|
|
25448
|
-
if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
|
|
25449
|
-
throw new TypeError("Encoder has to be a function.");
|
|
25450
|
-
}
|
|
25451
|
-
var charset = opts.charset || defaults.charset;
|
|
25452
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
25453
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
25454
|
-
}
|
|
25455
|
-
var format = formats["default"];
|
|
25456
|
-
if (typeof opts.format !== "undefined") {
|
|
25457
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
25458
|
-
throw new TypeError("Unknown format option provided.");
|
|
25459
|
-
}
|
|
25460
|
-
format = opts.format;
|
|
25461
|
-
}
|
|
25462
|
-
var formatter = formats.formatters[format];
|
|
25463
|
-
var filter = defaults.filter;
|
|
25464
|
-
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
|
25465
|
-
filter = opts.filter;
|
|
25466
|
-
}
|
|
25467
|
-
var arrayFormat;
|
|
25468
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
25469
|
-
arrayFormat = opts.arrayFormat;
|
|
25470
|
-
} else if ("indices" in opts) {
|
|
25471
|
-
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
25472
|
-
} else {
|
|
25473
|
-
arrayFormat = defaults.arrayFormat;
|
|
25474
|
-
}
|
|
25475
|
-
if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
|
|
25476
|
-
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
25477
|
-
}
|
|
25478
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
25479
|
-
return {
|
|
25480
|
-
addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
25481
|
-
allowDots,
|
|
25482
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
25483
|
-
arrayFormat,
|
|
25484
|
-
charset,
|
|
25485
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
25486
|
-
commaRoundTrip: !!opts.commaRoundTrip,
|
|
25487
|
-
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
25488
|
-
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
25489
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
25490
|
-
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
25491
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
25492
|
-
filter,
|
|
25493
|
-
format,
|
|
25494
|
-
formatter,
|
|
25495
|
-
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
|
25496
|
-
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
|
25497
|
-
sort: typeof opts.sort === "function" ? opts.sort : null,
|
|
25498
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
|
|
25499
|
-
};
|
|
25500
|
-
};
|
|
25501
|
-
module2.exports = function(object2, opts) {
|
|
25502
|
-
var obj = object2;
|
|
25503
|
-
var options = normalizeStringifyOptions(opts);
|
|
25504
|
-
var objKeys;
|
|
25505
|
-
var filter;
|
|
25506
|
-
if (typeof options.filter === "function") {
|
|
25507
|
-
filter = options.filter;
|
|
25508
|
-
obj = filter("", obj);
|
|
25509
|
-
} else if (isArray(options.filter)) {
|
|
25510
|
-
filter = options.filter;
|
|
25511
|
-
objKeys = filter;
|
|
25512
|
-
}
|
|
25513
|
-
var keys = [];
|
|
25514
|
-
if (typeof obj !== "object" || obj === null) {
|
|
25515
|
-
return "";
|
|
25516
|
-
}
|
|
25517
|
-
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
25518
|
-
var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
|
|
25519
|
-
if (!objKeys) {
|
|
25520
|
-
objKeys = Object.keys(obj);
|
|
25521
|
-
}
|
|
25522
|
-
if (options.sort) {
|
|
25523
|
-
objKeys.sort(options.sort);
|
|
25524
|
-
}
|
|
25525
|
-
var sideChannel = getSideChannel();
|
|
25526
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
25527
|
-
var key = objKeys[i];
|
|
25528
|
-
var value = obj[key];
|
|
25529
|
-
if (options.skipNulls && value === null) {
|
|
25530
|
-
continue;
|
|
25531
|
-
}
|
|
25532
|
-
pushToArray(keys, stringify(
|
|
25533
|
-
value,
|
|
25534
|
-
key,
|
|
25535
|
-
generateArrayPrefix,
|
|
25536
|
-
commaRoundTrip,
|
|
25537
|
-
options.allowEmptyArrays,
|
|
25538
|
-
options.strictNullHandling,
|
|
25539
|
-
options.skipNulls,
|
|
25540
|
-
options.encodeDotInKeys,
|
|
25541
|
-
options.encode ? options.encoder : null,
|
|
25542
|
-
options.filter,
|
|
25543
|
-
options.sort,
|
|
25544
|
-
options.allowDots,
|
|
25545
|
-
options.serializeDate,
|
|
25546
|
-
options.format,
|
|
25547
|
-
options.formatter,
|
|
25548
|
-
options.encodeValuesOnly,
|
|
25549
|
-
options.charset,
|
|
25550
|
-
sideChannel
|
|
25551
|
-
));
|
|
25552
|
-
}
|
|
25553
|
-
var joined = keys.join(options.delimiter);
|
|
25554
|
-
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
25555
|
-
if (options.charsetSentinel) {
|
|
25556
|
-
if (options.charset === "iso-8859-1") {
|
|
25557
|
-
prefix += "utf8=%26%2310003%3B&";
|
|
25558
|
-
} else {
|
|
25559
|
-
prefix += "utf8=%E2%9C%93&";
|
|
25560
|
-
}
|
|
25561
|
-
}
|
|
25562
|
-
return joined.length > 0 ? prefix + joined : "";
|
|
25563
|
-
};
|
|
25564
|
-
}
|
|
25565
|
-
});
|
|
25566
|
-
|
|
25567
|
-
// ../../node_modules/qs/lib/parse.js
|
|
25568
|
-
var require_parse2 = __commonJS({
|
|
25569
|
-
"../../node_modules/qs/lib/parse.js"(exports2, module2) {
|
|
25570
|
-
"use strict";
|
|
25571
|
-
var utils = require_utils2();
|
|
25572
|
-
var has = Object.prototype.hasOwnProperty;
|
|
25573
|
-
var isArray = Array.isArray;
|
|
25574
|
-
var defaults = {
|
|
25575
|
-
allowDots: false,
|
|
25576
|
-
allowEmptyArrays: false,
|
|
25577
|
-
allowPrototypes: false,
|
|
25578
|
-
allowSparse: false,
|
|
25579
|
-
arrayLimit: 20,
|
|
25580
|
-
charset: "utf-8",
|
|
25581
|
-
charsetSentinel: false,
|
|
25582
|
-
comma: false,
|
|
25583
|
-
decodeDotInKeys: false,
|
|
25584
|
-
decoder: utils.decode,
|
|
25585
|
-
delimiter: "&",
|
|
25586
|
-
depth: 5,
|
|
25587
|
-
duplicates: "combine",
|
|
25588
|
-
ignoreQueryPrefix: false,
|
|
25589
|
-
interpretNumericEntities: false,
|
|
25590
|
-
parameterLimit: 1e3,
|
|
25591
|
-
parseArrays: true,
|
|
25592
|
-
plainObjects: false,
|
|
25593
|
-
strictDepth: false,
|
|
25594
|
-
strictNullHandling: false,
|
|
25595
|
-
throwOnLimitExceeded: false
|
|
25596
|
-
};
|
|
25597
|
-
var interpretNumericEntities = function(str) {
|
|
25598
|
-
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
25599
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
25600
|
-
});
|
|
25601
|
-
};
|
|
25602
|
-
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
25603
|
-
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
25604
|
-
return val.split(",");
|
|
25605
|
-
}
|
|
25606
|
-
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
25607
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
25608
|
-
}
|
|
25609
|
-
return val;
|
|
25610
|
-
};
|
|
25611
|
-
var isoSentinel = "utf8=%26%2310003%3B";
|
|
25612
|
-
var charsetSentinel = "utf8=%E2%9C%93";
|
|
25613
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
25614
|
-
var obj = { __proto__: null };
|
|
25615
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
25616
|
-
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
25617
|
-
var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
|
|
25618
|
-
var parts = cleanStr.split(
|
|
25619
|
-
options.delimiter,
|
|
25620
|
-
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
25621
|
-
);
|
|
25622
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
25623
|
-
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
25624
|
-
}
|
|
25625
|
-
var skipIndex = -1;
|
|
25626
|
-
var i;
|
|
25627
|
-
var charset = options.charset;
|
|
25628
|
-
if (options.charsetSentinel) {
|
|
25629
|
-
for (i = 0; i < parts.length; ++i) {
|
|
25630
|
-
if (parts[i].indexOf("utf8=") === 0) {
|
|
25631
|
-
if (parts[i] === charsetSentinel) {
|
|
25632
|
-
charset = "utf-8";
|
|
25633
|
-
} else if (parts[i] === isoSentinel) {
|
|
25634
|
-
charset = "iso-8859-1";
|
|
25635
|
-
}
|
|
25636
|
-
skipIndex = i;
|
|
25637
|
-
i = parts.length;
|
|
25638
|
-
}
|
|
25639
|
-
}
|
|
25640
|
-
}
|
|
25641
|
-
for (i = 0; i < parts.length; ++i) {
|
|
25642
|
-
if (i === skipIndex) {
|
|
25643
|
-
continue;
|
|
25644
|
-
}
|
|
25645
|
-
var part = parts[i];
|
|
25646
|
-
var bracketEqualsPos = part.indexOf("]=");
|
|
25647
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
25648
|
-
var key;
|
|
25649
|
-
var val;
|
|
25650
|
-
if (pos === -1) {
|
|
25651
|
-
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
25652
|
-
val = options.strictNullHandling ? null : "";
|
|
25653
|
-
} else {
|
|
25654
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
25655
|
-
if (key !== null) {
|
|
25656
|
-
val = utils.maybeMap(
|
|
25657
|
-
parseArrayValue(
|
|
25658
|
-
part.slice(pos + 1),
|
|
25659
|
-
options,
|
|
25660
|
-
isArray(obj[key]) ? obj[key].length : 0
|
|
25661
|
-
),
|
|
25662
|
-
function(encodedVal) {
|
|
25663
|
-
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
25664
|
-
}
|
|
25665
|
-
);
|
|
25666
|
-
}
|
|
25667
|
-
}
|
|
25668
|
-
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
25669
|
-
val = interpretNumericEntities(String(val));
|
|
25670
|
-
}
|
|
25671
|
-
if (part.indexOf("[]=") > -1) {
|
|
25672
|
-
val = isArray(val) ? [val] : val;
|
|
25673
|
-
}
|
|
25674
|
-
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
25675
|
-
if (options.throwOnLimitExceeded) {
|
|
25676
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
25677
|
-
}
|
|
25678
|
-
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
25679
|
-
}
|
|
25680
|
-
if (key !== null) {
|
|
25681
|
-
var existing = has.call(obj, key);
|
|
25682
|
-
if (existing && options.duplicates === "combine") {
|
|
25683
|
-
obj[key] = utils.combine(
|
|
25684
|
-
obj[key],
|
|
25685
|
-
val,
|
|
25686
|
-
options.arrayLimit,
|
|
25687
|
-
options.plainObjects
|
|
25688
|
-
);
|
|
25689
|
-
} else if (!existing || options.duplicates === "last") {
|
|
25690
|
-
obj[key] = val;
|
|
25691
|
-
}
|
|
25692
|
-
}
|
|
25693
|
-
}
|
|
25694
|
-
return obj;
|
|
25695
|
-
};
|
|
25696
|
-
var parseObject = function(chain, val, options, valuesParsed) {
|
|
25697
|
-
var currentArrayLength = 0;
|
|
25698
|
-
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
25699
|
-
var parentKey = chain.slice(0, -1).join("");
|
|
25700
|
-
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
25701
|
-
}
|
|
25702
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
25703
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
25704
|
-
var obj;
|
|
25705
|
-
var root = chain[i];
|
|
25706
|
-
if (root === "[]" && options.parseArrays) {
|
|
25707
|
-
if (utils.isOverflow(leaf)) {
|
|
25708
|
-
obj = leaf;
|
|
25709
|
-
} else {
|
|
25710
|
-
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine(
|
|
25711
|
-
[],
|
|
25712
|
-
leaf,
|
|
25713
|
-
options.arrayLimit,
|
|
25714
|
-
options.plainObjects
|
|
25715
|
-
);
|
|
25716
|
-
}
|
|
25717
|
-
} else {
|
|
25718
|
-
obj = options.plainObjects ? { __proto__: null } : {};
|
|
25719
|
-
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
25720
|
-
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
25721
|
-
var index = parseInt(decodedRoot, 10);
|
|
25722
|
-
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
25723
|
-
if (!options.parseArrays && decodedRoot === "") {
|
|
25724
|
-
obj = { 0: leaf };
|
|
25725
|
-
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
25726
|
-
obj = [];
|
|
25727
|
-
obj[index] = leaf;
|
|
25728
|
-
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
25729
|
-
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
25730
|
-
} else if (isValidArrayIndex) {
|
|
25731
|
-
obj[index] = leaf;
|
|
25732
|
-
utils.markOverflow(obj, index);
|
|
25733
|
-
} else if (decodedRoot !== "__proto__") {
|
|
25734
|
-
obj[decodedRoot] = leaf;
|
|
25735
|
-
}
|
|
25736
|
-
}
|
|
25737
|
-
leaf = obj;
|
|
25738
|
-
}
|
|
25739
|
-
return leaf;
|
|
25740
|
-
};
|
|
25741
|
-
var splitKeyIntoSegments = function splitKeyIntoSegments2(givenKey, options) {
|
|
25742
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
|
|
25743
|
-
if (options.depth <= 0) {
|
|
25744
|
-
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
25745
|
-
if (!options.allowPrototypes) {
|
|
25746
|
-
return;
|
|
25747
|
-
}
|
|
25748
|
-
}
|
|
25749
|
-
return [key];
|
|
25750
|
-
}
|
|
25751
|
-
var brackets = /(\[[^[\]]*])/;
|
|
25752
|
-
var child = /(\[[^[\]]*])/g;
|
|
25753
|
-
var segment = brackets.exec(key);
|
|
25754
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
25755
|
-
var keys = [];
|
|
25756
|
-
if (parent) {
|
|
25757
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
25758
|
-
if (!options.allowPrototypes) {
|
|
25759
|
-
return;
|
|
25760
|
-
}
|
|
25761
|
-
}
|
|
25762
|
-
keys[keys.length] = parent;
|
|
25763
|
-
}
|
|
25764
|
-
var i = 0;
|
|
25765
|
-
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
25766
|
-
i += 1;
|
|
25767
|
-
var segmentContent = segment[1].slice(1, -1);
|
|
25768
|
-
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
25769
|
-
if (!options.allowPrototypes) {
|
|
25770
|
-
return;
|
|
25771
|
-
}
|
|
25772
|
-
}
|
|
25773
|
-
keys[keys.length] = segment[1];
|
|
25774
|
-
}
|
|
25775
|
-
if (segment) {
|
|
25776
|
-
if (options.strictDepth === true) {
|
|
25777
|
-
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
25778
|
-
}
|
|
25779
|
-
keys[keys.length] = "[" + key.slice(segment.index) + "]";
|
|
25780
|
-
}
|
|
25781
|
-
return keys;
|
|
25782
|
-
};
|
|
25783
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
25784
|
-
if (!givenKey) {
|
|
25785
|
-
return;
|
|
25786
|
-
}
|
|
25787
|
-
var keys = splitKeyIntoSegments(givenKey, options);
|
|
25788
|
-
if (!keys) {
|
|
25789
|
-
return;
|
|
25790
|
-
}
|
|
25791
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
25792
|
-
};
|
|
25793
|
-
var normalizeParseOptions = function normalizeParseOptions2(opts) {
|
|
25794
|
-
if (!opts) {
|
|
25795
|
-
return defaults;
|
|
25796
|
-
}
|
|
25797
|
-
if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
|
|
25798
|
-
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
25799
|
-
}
|
|
25800
|
-
if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
|
|
25801
|
-
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
25802
|
-
}
|
|
25803
|
-
if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
|
|
25804
|
-
throw new TypeError("Decoder has to be a function.");
|
|
25805
|
-
}
|
|
25806
|
-
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
25807
|
-
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
25808
|
-
}
|
|
25809
|
-
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
25810
|
-
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
25811
|
-
}
|
|
25812
|
-
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
25813
|
-
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
25814
|
-
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
25815
|
-
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
25816
|
-
}
|
|
25817
|
-
var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
25818
|
-
return {
|
|
25819
|
-
allowDots,
|
|
25820
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
25821
|
-
allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
25822
|
-
allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
|
|
25823
|
-
arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
|
|
25824
|
-
charset,
|
|
25825
|
-
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
25826
|
-
comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
|
|
25827
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
25828
|
-
decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
|
|
25829
|
-
delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
25830
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
25831
|
-
depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
|
|
25832
|
-
duplicates,
|
|
25833
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
25834
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
25835
|
-
parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
|
|
25836
|
-
parseArrays: opts.parseArrays !== false,
|
|
25837
|
-
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
25838
|
-
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
25839
|
-
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
25840
|
-
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
25841
|
-
};
|
|
25842
|
-
};
|
|
25843
|
-
module2.exports = function(str, opts) {
|
|
25844
|
-
var options = normalizeParseOptions(opts);
|
|
25845
|
-
if (str === "" || str === null || typeof str === "undefined") {
|
|
25846
|
-
return options.plainObjects ? { __proto__: null } : {};
|
|
25847
|
-
}
|
|
25848
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
25849
|
-
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
25850
|
-
var keys = Object.keys(tempObj);
|
|
25851
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
25852
|
-
var key = keys[i];
|
|
25853
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
|
|
25854
|
-
obj = utils.merge(obj, newObj, options);
|
|
25855
|
-
}
|
|
25856
|
-
if (options.allowSparse === true) {
|
|
25857
|
-
return obj;
|
|
25858
|
-
}
|
|
25859
|
-
return utils.compact(obj);
|
|
25860
|
-
};
|
|
25861
|
-
}
|
|
25862
|
-
});
|
|
25863
|
-
|
|
25864
|
-
// ../../node_modules/qs/lib/index.js
|
|
25865
|
-
var require_lib3 = __commonJS({
|
|
25866
|
-
"../../node_modules/qs/lib/index.js"(exports2, module2) {
|
|
25867
|
-
"use strict";
|
|
25868
|
-
var stringify = require_stringify2();
|
|
25869
|
-
var parse3 = require_parse2();
|
|
25870
|
-
var formats = require_formats2();
|
|
25871
|
-
module2.exports = {
|
|
25872
|
-
formats,
|
|
25873
|
-
parse: parse3,
|
|
25874
|
-
stringify
|
|
25875
|
-
};
|
|
25876
|
-
}
|
|
25877
|
-
});
|
|
25878
|
-
|
|
25879
24996
|
// ../../node_modules/express/lib/middleware/query.js
|
|
25880
24997
|
var require_query = __commonJS({
|
|
25881
24998
|
"../../node_modules/express/lib/middleware/query.js"(exports2, module2) {
|
|
25882
24999
|
"use strict";
|
|
25883
25000
|
var merge2 = require_utils_merge();
|
|
25884
25001
|
var parseUrl = require_parseurl();
|
|
25885
|
-
var qs =
|
|
25002
|
+
var qs = require_lib2();
|
|
25886
25003
|
module2.exports = function query(options) {
|
|
25887
25004
|
var opts = merge2({}, options);
|
|
25888
25005
|
var queryparse = qs.parse;
|
|
@@ -28376,7 +27493,7 @@ var require_proxy_addr = __commonJS({
|
|
|
28376
27493
|
});
|
|
28377
27494
|
|
|
28378
27495
|
// ../../node_modules/express/lib/utils.js
|
|
28379
|
-
var
|
|
27496
|
+
var require_utils2 = __commonJS({
|
|
28380
27497
|
"../../node_modules/express/lib/utils.js"(exports2) {
|
|
28381
27498
|
"use strict";
|
|
28382
27499
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
@@ -28387,7 +27504,7 @@ var require_utils3 = __commonJS({
|
|
|
28387
27504
|
var mime = require_send().mime;
|
|
28388
27505
|
var etag = require_etag();
|
|
28389
27506
|
var proxyaddr = require_proxy_addr();
|
|
28390
|
-
var qs =
|
|
27507
|
+
var qs = require_lib2();
|
|
28391
27508
|
var querystring = require("querystring");
|
|
28392
27509
|
exports2.etag = createETagGenerator({ weak: false });
|
|
28393
27510
|
exports2.wetag = createETagGenerator({ weak: true });
|
|
@@ -28524,9 +27641,9 @@ var require_application = __commonJS({
|
|
|
28524
27641
|
var debug = require_src3()("express:application");
|
|
28525
27642
|
var View = require_view();
|
|
28526
27643
|
var http2 = require("http");
|
|
28527
|
-
var compileETag =
|
|
28528
|
-
var compileQueryParser =
|
|
28529
|
-
var compileTrust =
|
|
27644
|
+
var compileETag = require_utils2().compileETag;
|
|
27645
|
+
var compileQueryParser = require_utils2().compileQueryParser;
|
|
27646
|
+
var compileTrust = require_utils2().compileTrust;
|
|
28530
27647
|
var deprecate = require_depd()("express");
|
|
28531
27648
|
var flatten = require_array_flatten();
|
|
28532
27649
|
var merge2 = require_utils_merge();
|
|
@@ -29801,15 +28918,15 @@ var require_response = __commonJS({
|
|
|
29801
28918
|
var encodeUrl = require_encodeurl();
|
|
29802
28919
|
var escapeHtml = require_escape_html();
|
|
29803
28920
|
var http2 = require("http");
|
|
29804
|
-
var isAbsolute =
|
|
28921
|
+
var isAbsolute = require_utils2().isAbsolute;
|
|
29805
28922
|
var onFinished = require_on_finished();
|
|
29806
28923
|
var path10 = require("path");
|
|
29807
28924
|
var statuses = require_statuses();
|
|
29808
28925
|
var merge2 = require_utils_merge();
|
|
29809
28926
|
var sign = require_cookie_signature().sign;
|
|
29810
|
-
var normalizeType =
|
|
29811
|
-
var normalizeTypes =
|
|
29812
|
-
var setCharset =
|
|
28927
|
+
var normalizeType = require_utils2().normalizeType;
|
|
28928
|
+
var normalizeTypes = require_utils2().normalizeTypes;
|
|
28929
|
+
var setCharset = require_utils2().setCharset;
|
|
29813
28930
|
var cookie = require_cookie();
|
|
29814
28931
|
var send = require_send();
|
|
29815
28932
|
var extname = path10.extname;
|
|
@@ -51443,8 +50560,8 @@ function resolveVercelSkillsInstallerBin() {
|
|
|
51443
50560
|
return localRequire.resolve("skills/bin/cli.mjs");
|
|
51444
50561
|
}
|
|
51445
50562
|
function readCLIVersion() {
|
|
51446
|
-
if ("0.1.
|
|
51447
|
-
return "0.1.
|
|
50563
|
+
if ("0.1.108".length > 0) {
|
|
50564
|
+
return "0.1.108";
|
|
51448
50565
|
}
|
|
51449
50566
|
const devPackageJsonPath = import_node_path10.default.join(getDevPackageDir(), "package.json");
|
|
51450
50567
|
if (!(0, import_node_fs7.existsSync)(devPackageJsonPath)) {
|