syllable-sdk 1.0.72-rc.2 → 1.0.72-rc.3
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/bin/mcp-server.js +831 -126
- package/bin/mcp-server.js.map +23 -21
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/insightworkflowcondition.d.ts +10 -0
- package/models/components/insightworkflowcondition.d.ts.map +1 -1
- package/models/components/insightworkflowcondition.js +8 -0
- package/models/components/insightworkflowcondition.js.map +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/insightworkflowcondition.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -48336,7 +48336,7 @@ var init_stdio = __esm(() => {
|
|
|
48336
48336
|
swallowsErrorsAfterClose = Symbol("swallowsErrorsAfterClose");
|
|
48337
48337
|
});
|
|
48338
48338
|
|
|
48339
|
-
// node_modules/statuses/codes.json
|
|
48339
|
+
// node_modules/body-parser/node_modules/statuses/codes.json
|
|
48340
48340
|
var require_codes2 = __commonJS((exports, module) => {
|
|
48341
48341
|
module.exports = {
|
|
48342
48342
|
"100": "Continue",
|
|
@@ -48405,7 +48405,7 @@ var require_codes2 = __commonJS((exports, module) => {
|
|
|
48405
48405
|
};
|
|
48406
48406
|
});
|
|
48407
48407
|
|
|
48408
|
-
// node_modules/statuses/index.js
|
|
48408
|
+
// node_modules/body-parser/node_modules/statuses/index.js
|
|
48409
48409
|
var require_statuses2 = __commonJS((exports, module) => {
|
|
48410
48410
|
/*!
|
|
48411
48411
|
* statuses
|
|
@@ -48479,7 +48479,7 @@ var require_statuses2 = __commonJS((exports, module) => {
|
|
|
48479
48479
|
}
|
|
48480
48480
|
});
|
|
48481
48481
|
|
|
48482
|
-
// node_modules/http-errors/index.js
|
|
48482
|
+
// node_modules/body-parser/node_modules/http-errors/index.js
|
|
48483
48483
|
var require_http_errors2 = __commonJS((exports, module) => {
|
|
48484
48484
|
/*!
|
|
48485
48485
|
* http-errors
|
|
@@ -48642,7 +48642,7 @@ var require_http_errors2 = __commonJS((exports, module) => {
|
|
|
48642
48642
|
});
|
|
48643
48643
|
}
|
|
48644
48644
|
function toClassName(name) {
|
|
48645
|
-
return name.
|
|
48645
|
+
return name.slice(-5) === "Error" ? name : name + "Error";
|
|
48646
48646
|
}
|
|
48647
48647
|
});
|
|
48648
48648
|
|
|
@@ -52780,6 +52780,12 @@ var require_read = __commonJS((exports, module) => {
|
|
|
52780
52780
|
req._body = true;
|
|
52781
52781
|
var encoding = opts.encoding !== null ? opts.encoding : null;
|
|
52782
52782
|
var verify = opts.verify;
|
|
52783
|
+
if (verify && encoding !== null && !iconv.encodingExists(encoding)) {
|
|
52784
|
+
return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
|
|
52785
|
+
charset: encoding.toLowerCase(),
|
|
52786
|
+
type: "charset.unsupported"
|
|
52787
|
+
}));
|
|
52788
|
+
}
|
|
52783
52789
|
try {
|
|
52784
52790
|
stream = contentstream(req, debug, opts.inflate);
|
|
52785
52791
|
length = stream.length;
|
|
@@ -52789,12 +52795,6 @@ var require_read = __commonJS((exports, module) => {
|
|
|
52789
52795
|
}
|
|
52790
52796
|
opts.length = length;
|
|
52791
52797
|
opts.encoding = verify ? null : encoding;
|
|
52792
|
-
if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
|
|
52793
|
-
return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
|
|
52794
|
-
charset: encoding.toLowerCase(),
|
|
52795
|
-
type: "charset.unsupported"
|
|
52796
|
-
}));
|
|
52797
|
-
}
|
|
52798
52798
|
debug("read body");
|
|
52799
52799
|
getBody(stream, opts, function(error4, body) {
|
|
52800
52800
|
if (error4) {
|
|
@@ -52816,6 +52816,16 @@ var require_read = __commonJS((exports, module) => {
|
|
|
52816
52816
|
});
|
|
52817
52817
|
return;
|
|
52818
52818
|
}
|
|
52819
|
+
if (stream !== req) {
|
|
52820
|
+
if (typeof req.unpipe === "function") {
|
|
52821
|
+
req.unpipe(stream);
|
|
52822
|
+
} else {
|
|
52823
|
+
unpipe(req);
|
|
52824
|
+
}
|
|
52825
|
+
stream.on("error", function() {});
|
|
52826
|
+
destroy(stream, true);
|
|
52827
|
+
req.resume();
|
|
52828
|
+
}
|
|
52819
52829
|
if (verify) {
|
|
52820
52830
|
try {
|
|
52821
52831
|
debug("verify body");
|
|
@@ -61770,12 +61780,15 @@ var require_json = __commonJS((exports, module) => {
|
|
|
61770
61780
|
var JSON_SYNTAX_REGEXP = /#+/g;
|
|
61771
61781
|
function json(options) {
|
|
61772
61782
|
var opts = options || {};
|
|
61773
|
-
var limit = typeof opts.limit
|
|
61783
|
+
var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
|
|
61774
61784
|
var inflate = opts.inflate !== false;
|
|
61775
61785
|
var reviver = opts.reviver;
|
|
61776
61786
|
var strict = opts.strict !== false;
|
|
61777
61787
|
var type = opts.type || "application/json";
|
|
61778
61788
|
var verify = opts.verify || false;
|
|
61789
|
+
if (limit === null) {
|
|
61790
|
+
throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
|
|
61791
|
+
}
|
|
61779
61792
|
if (verify !== false && typeof verify !== "function") {
|
|
61780
61793
|
throw new TypeError("option verify must be function");
|
|
61781
61794
|
}
|
|
@@ -61840,10 +61853,7 @@ var require_json = __commonJS((exports, module) => {
|
|
|
61840
61853
|
var index = str.indexOf(char);
|
|
61841
61854
|
var partial4 = "";
|
|
61842
61855
|
if (index !== -1) {
|
|
61843
|
-
partial4 = str.substring(0, index) + JSON_SYNTAX_CHAR;
|
|
61844
|
-
for (var i = index + 1;i < str.length; i++) {
|
|
61845
|
-
partial4 += JSON_SYNTAX_CHAR;
|
|
61846
|
-
}
|
|
61856
|
+
partial4 = str.substring(0, index) + new Array(str.length - index + 1).join(JSON_SYNTAX_CHAR);
|
|
61847
61857
|
}
|
|
61848
61858
|
try {
|
|
61849
61859
|
JSON.parse(partial4);
|
|
@@ -61902,9 +61912,12 @@ var require_raw = __commonJS((exports, module) => {
|
|
|
61902
61912
|
function raw(options) {
|
|
61903
61913
|
var opts = options || {};
|
|
61904
61914
|
var inflate = opts.inflate !== false;
|
|
61905
|
-
var limit = typeof opts.limit
|
|
61915
|
+
var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
|
|
61906
61916
|
var type = opts.type || "application/octet-stream";
|
|
61907
61917
|
var verify = opts.verify || false;
|
|
61918
|
+
if (limit === null) {
|
|
61919
|
+
throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
|
|
61920
|
+
}
|
|
61908
61921
|
if (verify !== false && typeof verify !== "function") {
|
|
61909
61922
|
throw new TypeError("option verify must be function");
|
|
61910
61923
|
}
|
|
@@ -61962,9 +61975,12 @@ var require_text = __commonJS((exports, module) => {
|
|
|
61962
61975
|
var opts = options || {};
|
|
61963
61976
|
var defaultCharset = opts.defaultCharset || "utf-8";
|
|
61964
61977
|
var inflate = opts.inflate !== false;
|
|
61965
|
-
var limit = typeof opts.limit
|
|
61978
|
+
var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
|
|
61966
61979
|
var type = opts.type || "text/plain";
|
|
61967
61980
|
var verify = opts.verify || false;
|
|
61981
|
+
if (limit === null) {
|
|
61982
|
+
throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
|
|
61983
|
+
}
|
|
61968
61984
|
if (verify !== false && typeof verify !== "function") {
|
|
61969
61985
|
throw new TypeError("option verify must be function");
|
|
61970
61986
|
}
|
|
@@ -62605,9 +62621,8 @@ var require_side_channel_list = __commonJS((exports, module) => {
|
|
|
62605
62621
|
}
|
|
62606
62622
|
},
|
|
62607
62623
|
delete: function(key) {
|
|
62608
|
-
var root = $o && $o.next;
|
|
62609
62624
|
var deletedNode = listDelete($o, key);
|
|
62610
|
-
if (deletedNode &&
|
|
62625
|
+
if (deletedNode && $o && !$o.next) {
|
|
62611
62626
|
$o = undefined;
|
|
62612
62627
|
}
|
|
62613
62628
|
return !!deletedNode;
|
|
@@ -63453,7 +63468,8 @@ var require_side_channel = __commonJS((exports, module) => {
|
|
|
63453
63468
|
var channel = {
|
|
63454
63469
|
assert: function(key) {
|
|
63455
63470
|
if (!channel.has(key)) {
|
|
63456
|
-
|
|
63471
|
+
var keyDesc = key && Object(key) === key ? "the given object key" : inspect(key);
|
|
63472
|
+
throw new $TypeError("Side channel does not contain " + keyDesc);
|
|
63457
63473
|
}
|
|
63458
63474
|
},
|
|
63459
63475
|
delete: function(key) {
|
|
@@ -63502,12 +63518,39 @@ var require_formats2 = __commonJS((exports, module) => {
|
|
|
63502
63518
|
// node_modules/qs/lib/utils.js
|
|
63503
63519
|
var require_utils2 = __commonJS((exports, module) => {
|
|
63504
63520
|
var formats = require_formats2();
|
|
63521
|
+
var getSideChannel = require_side_channel();
|
|
63522
|
+
var defineProperty = require_es_define_property();
|
|
63505
63523
|
var has = Object.prototype.hasOwnProperty;
|
|
63506
63524
|
var isArray = Array.isArray;
|
|
63525
|
+
var overflowChannel = getSideChannel();
|
|
63526
|
+
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
63527
|
+
overflowChannel.set(obj, maxIndex);
|
|
63528
|
+
return obj;
|
|
63529
|
+
};
|
|
63530
|
+
var isOverflow = function isOverflow(obj) {
|
|
63531
|
+
return overflowChannel.has(obj);
|
|
63532
|
+
};
|
|
63533
|
+
var getMaxIndex = function getMaxIndex(obj) {
|
|
63534
|
+
return overflowChannel.get(obj);
|
|
63535
|
+
};
|
|
63536
|
+
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
63537
|
+
overflowChannel.set(obj, maxIndex);
|
|
63538
|
+
};
|
|
63539
|
+
var conflictChannel = getSideChannel();
|
|
63540
|
+
var markConflict = function markConflict(obj, maxIndex) {
|
|
63541
|
+
conflictChannel.set(obj, maxIndex);
|
|
63542
|
+
return obj;
|
|
63543
|
+
};
|
|
63544
|
+
var isConflict = function isConflict(obj) {
|
|
63545
|
+
return conflictChannel.has(obj);
|
|
63546
|
+
};
|
|
63547
|
+
var getConflictIndex = function getConflictIndex(obj) {
|
|
63548
|
+
return conflictChannel.get(obj);
|
|
63549
|
+
};
|
|
63507
63550
|
var hexTable = function() {
|
|
63508
63551
|
var array4 = [];
|
|
63509
63552
|
for (var i = 0;i < 256; ++i) {
|
|
63510
|
-
array4.
|
|
63553
|
+
array4[array4.length] = "%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase();
|
|
63511
63554
|
}
|
|
63512
63555
|
return array4;
|
|
63513
63556
|
}();
|
|
@@ -63519,7 +63562,7 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63519
63562
|
var compacted = [];
|
|
63520
63563
|
for (var j2 = 0;j2 < obj.length; ++j2) {
|
|
63521
63564
|
if (typeof obj[j2] !== "undefined") {
|
|
63522
|
-
compacted.
|
|
63565
|
+
compacted[compacted.length] = obj[j2];
|
|
63523
63566
|
}
|
|
63524
63567
|
}
|
|
63525
63568
|
item.obj[item.prop] = compacted;
|
|
@@ -63527,7 +63570,7 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63527
63570
|
}
|
|
63528
63571
|
};
|
|
63529
63572
|
var arrayToObject = function arrayToObject(source, options) {
|
|
63530
|
-
var obj = options && options.plainObjects ?
|
|
63573
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
63531
63574
|
for (var i = 0;i < source.length; ++i) {
|
|
63532
63575
|
if (typeof source[i] !== "undefined") {
|
|
63533
63576
|
obj[i] = source[i];
|
|
@@ -63535,28 +63578,101 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63535
63578
|
}
|
|
63536
63579
|
return obj;
|
|
63537
63580
|
};
|
|
63581
|
+
var setProperty = function setProperty(obj, key, value) {
|
|
63582
|
+
if (key === "__proto__" && defineProperty) {
|
|
63583
|
+
defineProperty(obj, key, {
|
|
63584
|
+
configurable: true,
|
|
63585
|
+
enumerable: true,
|
|
63586
|
+
value,
|
|
63587
|
+
writable: true
|
|
63588
|
+
});
|
|
63589
|
+
} else {
|
|
63590
|
+
obj[key] = value;
|
|
63591
|
+
}
|
|
63592
|
+
};
|
|
63593
|
+
var maxNumericIndex = function maxNumericIndex(obj, min) {
|
|
63594
|
+
var max = min;
|
|
63595
|
+
var keys = Object.keys(obj);
|
|
63596
|
+
for (var i = 0;i < keys.length; ++i) {
|
|
63597
|
+
var num = parseInt(keys[i], 10);
|
|
63598
|
+
if (String(num) === keys[i] && num > max) {
|
|
63599
|
+
max = num;
|
|
63600
|
+
}
|
|
63601
|
+
}
|
|
63602
|
+
return max;
|
|
63603
|
+
};
|
|
63604
|
+
var limitedPair = function limitedPair(first, second, options) {
|
|
63605
|
+
var pair = [first, second];
|
|
63606
|
+
if (options && typeof options.arrayLimit === "number" && pair.length > options.arrayLimit) {
|
|
63607
|
+
if (options.throwOnLimitExceeded) {
|
|
63608
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63609
|
+
}
|
|
63610
|
+
return markOverflow(arrayToObject(pair, options), 1);
|
|
63611
|
+
}
|
|
63612
|
+
return pair;
|
|
63613
|
+
};
|
|
63538
63614
|
var merge4 = function merge(target, source, options) {
|
|
63539
63615
|
if (!source) {
|
|
63540
63616
|
return target;
|
|
63541
63617
|
}
|
|
63542
|
-
if (typeof source !== "object") {
|
|
63618
|
+
if (typeof source !== "object" && typeof source !== "function") {
|
|
63543
63619
|
if (isArray(target)) {
|
|
63544
|
-
target.
|
|
63620
|
+
var nextIndex = target.length;
|
|
63621
|
+
if (options && typeof options.arrayLimit === "number" && nextIndex >= options.arrayLimit) {
|
|
63622
|
+
if (options.throwOnLimitExceeded) {
|
|
63623
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63624
|
+
}
|
|
63625
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
63626
|
+
}
|
|
63627
|
+
target[nextIndex] = source;
|
|
63545
63628
|
} else if (target && typeof target === "object") {
|
|
63546
|
-
if (
|
|
63629
|
+
if (isOverflow(target)) {
|
|
63630
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
63631
|
+
target[newIndex] = source;
|
|
63632
|
+
setMaxIndex(target, newIndex);
|
|
63633
|
+
} else if (options && options.strictMerge && isConflict(target)) {
|
|
63634
|
+
var nextConflict = getConflictIndex(target) + 1;
|
|
63635
|
+
if (options.throwOnLimitExceeded && typeof options.arrayLimit === "number" && nextConflict >= options.arrayLimit) {
|
|
63636
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63637
|
+
}
|
|
63638
|
+
target[nextConflict] = source;
|
|
63639
|
+
markConflict(target, nextConflict);
|
|
63640
|
+
} else if (options && options.strictMerge) {
|
|
63641
|
+
var conflict = limitedPair(target, source, options);
|
|
63642
|
+
return isArray(conflict) ? markConflict(conflict, 1) : conflict;
|
|
63643
|
+
} else if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
|
|
63547
63644
|
target[source] = true;
|
|
63548
63645
|
}
|
|
63549
63646
|
} else {
|
|
63550
|
-
return
|
|
63647
|
+
return limitedPair(target, source, options);
|
|
63551
63648
|
}
|
|
63552
63649
|
return target;
|
|
63553
63650
|
}
|
|
63554
63651
|
if (!target || typeof target !== "object") {
|
|
63555
|
-
|
|
63652
|
+
if (isOverflow(source)) {
|
|
63653
|
+
var sourceKeys = Object.keys(source);
|
|
63654
|
+
var result = options && options.plainObjects ? { __proto__: null, 0: target } : { 0: target };
|
|
63655
|
+
for (var m = 0;m < sourceKeys.length; m++) {
|
|
63656
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
63657
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
63658
|
+
}
|
|
63659
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
63660
|
+
}
|
|
63661
|
+
var combined = [target].concat(source);
|
|
63662
|
+
if (options && typeof options.arrayLimit === "number" && combined.length > options.arrayLimit) {
|
|
63663
|
+
if (options.throwOnLimitExceeded) {
|
|
63664
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63665
|
+
}
|
|
63666
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
63667
|
+
}
|
|
63668
|
+
return combined;
|
|
63556
63669
|
}
|
|
63557
63670
|
var mergeTarget = target;
|
|
63558
63671
|
if (isArray(target) && !isArray(source)) {
|
|
63559
63672
|
mergeTarget = arrayToObject(target, options);
|
|
63673
|
+
if (isConflict(target)) {
|
|
63674
|
+
markConflict(mergeTarget, target.length - 1);
|
|
63675
|
+
}
|
|
63560
63676
|
}
|
|
63561
63677
|
if (isArray(target) && isArray(source)) {
|
|
63562
63678
|
source.forEach(function(item, i) {
|
|
@@ -63565,31 +63681,55 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63565
63681
|
if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
|
|
63566
63682
|
target[i] = merge(targetItem, item, options);
|
|
63567
63683
|
} else {
|
|
63568
|
-
target.
|
|
63684
|
+
target[target.length] = item;
|
|
63569
63685
|
}
|
|
63570
63686
|
} else {
|
|
63571
63687
|
target[i] = item;
|
|
63572
63688
|
}
|
|
63573
63689
|
});
|
|
63690
|
+
if (options && typeof options.arrayLimit === "number" && target.length > options.arrayLimit) {
|
|
63691
|
+
if (options.throwOnLimitExceeded) {
|
|
63692
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63693
|
+
}
|
|
63694
|
+
return markOverflow(arrayToObject(target, options), target.length - 1);
|
|
63695
|
+
}
|
|
63574
63696
|
return target;
|
|
63575
63697
|
}
|
|
63576
63698
|
return Object.keys(source).reduce(function(acc, key) {
|
|
63577
63699
|
var value = source[key];
|
|
63578
63700
|
if (has.call(acc, key)) {
|
|
63579
|
-
acc
|
|
63701
|
+
setProperty(acc, key, merge(acc[key], value, options));
|
|
63580
63702
|
} else {
|
|
63581
|
-
acc
|
|
63703
|
+
setProperty(acc, key, value);
|
|
63704
|
+
}
|
|
63705
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
63706
|
+
markOverflow(acc, maxNumericIndex(acc, getMaxIndex(source)));
|
|
63707
|
+
}
|
|
63708
|
+
if (isOverflow(acc)) {
|
|
63709
|
+
var keyNum = parseInt(key, 10);
|
|
63710
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
63711
|
+
setMaxIndex(acc, keyNum);
|
|
63712
|
+
}
|
|
63713
|
+
}
|
|
63714
|
+
if (isConflict(acc)) {
|
|
63715
|
+
var conflictKey = parseInt(key, 10);
|
|
63716
|
+
if (String(conflictKey) === key && conflictKey > getConflictIndex(acc)) {
|
|
63717
|
+
markConflict(acc, conflictKey);
|
|
63718
|
+
}
|
|
63582
63719
|
}
|
|
63583
63720
|
return acc;
|
|
63584
63721
|
}, mergeTarget);
|
|
63585
63722
|
};
|
|
63586
63723
|
var assign = function assignSingleSource(target, source) {
|
|
63587
63724
|
return Object.keys(source).reduce(function(acc, key) {
|
|
63588
|
-
acc
|
|
63725
|
+
setProperty(acc, key, source[key]);
|
|
63589
63726
|
return acc;
|
|
63590
63727
|
}, target);
|
|
63591
63728
|
};
|
|
63592
|
-
var decode4 = function(str,
|
|
63729
|
+
var decode4 = function(str, defaultDecoder, charset) {
|
|
63730
|
+
if (typeof str === "string" && str.indexOf("%") === -1) {
|
|
63731
|
+
return str.indexOf("+") === -1 ? str : str.replace(/\+/g, " ");
|
|
63732
|
+
}
|
|
63593
63733
|
var strWithoutPlus = str.replace(/\+/g, " ");
|
|
63594
63734
|
if (charset === "iso-8859-1") {
|
|
63595
63735
|
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -63600,6 +63740,52 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63600
63740
|
return strWithoutPlus;
|
|
63601
63741
|
}
|
|
63602
63742
|
};
|
|
63743
|
+
var hasToPrimitive = typeof Symbol === "function" && typeof Symbol.toPrimitive === "symbol";
|
|
63744
|
+
var arrayJoin = Array.prototype.join;
|
|
63745
|
+
var arrayToString = Array.prototype.toString;
|
|
63746
|
+
var objectToString = Object.prototype.toString;
|
|
63747
|
+
var toCoercible = function toCoercible(value, joining) {
|
|
63748
|
+
if (!value || typeof value !== "object" && typeof value !== "function") {
|
|
63749
|
+
return value;
|
|
63750
|
+
}
|
|
63751
|
+
if (hasToPrimitive && value[Symbol.toPrimitive] != null) {
|
|
63752
|
+
return value;
|
|
63753
|
+
}
|
|
63754
|
+
if (isArray(value) && value.toString === arrayToString && value.join === arrayJoin) {
|
|
63755
|
+
var ancestors = joining || getSideChannel();
|
|
63756
|
+
if (ancestors.has(value)) {
|
|
63757
|
+
return "";
|
|
63758
|
+
}
|
|
63759
|
+
ancestors.set(value, true);
|
|
63760
|
+
var copy;
|
|
63761
|
+
for (var i = 0;i < value.length; i += 1) {
|
|
63762
|
+
var item = value[i];
|
|
63763
|
+
var coerced = toCoercible(item, ancestors);
|
|
63764
|
+
if (!copy && coerced !== item) {
|
|
63765
|
+
copy = [];
|
|
63766
|
+
for (var j2 = 0;j2 < i; j2 += 1) {
|
|
63767
|
+
copy[j2] = value[j2];
|
|
63768
|
+
}
|
|
63769
|
+
}
|
|
63770
|
+
if (copy) {
|
|
63771
|
+
copy[i] = coerced;
|
|
63772
|
+
}
|
|
63773
|
+
}
|
|
63774
|
+
ancestors["delete"](value);
|
|
63775
|
+
return copy || value;
|
|
63776
|
+
}
|
|
63777
|
+
if (typeof value.toString === "function") {
|
|
63778
|
+
return value;
|
|
63779
|
+
}
|
|
63780
|
+
var valueOf = value.valueOf;
|
|
63781
|
+
if (typeof valueOf === "function") {
|
|
63782
|
+
var primitive = valueOf.call(value);
|
|
63783
|
+
if (!primitive || typeof primitive !== "object" && typeof primitive !== "function") {
|
|
63784
|
+
return String(primitive);
|
|
63785
|
+
}
|
|
63786
|
+
}
|
|
63787
|
+
return objectToString.call(value);
|
|
63788
|
+
};
|
|
63603
63789
|
var limit = 1024;
|
|
63604
63790
|
var encode4 = function encode(str, defaultEncoder, charset, kind, format) {
|
|
63605
63791
|
if (str.length === 0) {
|
|
@@ -63609,16 +63795,23 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63609
63795
|
if (typeof str === "symbol") {
|
|
63610
63796
|
string8 = Symbol.prototype.toString.call(str);
|
|
63611
63797
|
} else if (typeof str !== "string") {
|
|
63612
|
-
string8 = String(str);
|
|
63798
|
+
string8 = String(toCoercible(str));
|
|
63613
63799
|
}
|
|
63614
63800
|
if (charset === "iso-8859-1") {
|
|
63615
63801
|
return escape(string8).replace(/%u[0-9a-f]{4}/gi, function($0) {
|
|
63616
63802
|
return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
|
|
63617
|
-
});
|
|
63803
|
+
}).replace(/\+/g, "%2B");
|
|
63618
63804
|
}
|
|
63619
63805
|
var out = "";
|
|
63620
63806
|
for (var j2 = 0;j2 < string8.length; j2 += limit) {
|
|
63621
63807
|
var segment = string8.length >= limit ? string8.slice(j2, j2 + limit) : string8;
|
|
63808
|
+
if (j2 + limit < string8.length) {
|
|
63809
|
+
var last = segment.charCodeAt(segment.length - 1);
|
|
63810
|
+
if (last >= 55296 && last <= 56319) {
|
|
63811
|
+
segment = segment.slice(0, -1);
|
|
63812
|
+
j2 -= 1;
|
|
63813
|
+
}
|
|
63814
|
+
}
|
|
63622
63815
|
var arr = [];
|
|
63623
63816
|
for (var i = 0;i < segment.length; ++i) {
|
|
63624
63817
|
var c = segment.charCodeAt(i);
|
|
@@ -63648,7 +63841,7 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63648
63841
|
};
|
|
63649
63842
|
var compact = function compact(value) {
|
|
63650
63843
|
var queue = [{ obj: { o: value }, prop: "o" }];
|
|
63651
|
-
var refs =
|
|
63844
|
+
var refs = getSideChannel();
|
|
63652
63845
|
for (var i = 0;i < queue.length; ++i) {
|
|
63653
63846
|
var item = queue[i];
|
|
63654
63847
|
var obj = item.obj[item.prop];
|
|
@@ -63656,9 +63849,9 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63656
63849
|
for (var j2 = 0;j2 < keys.length; ++j2) {
|
|
63657
63850
|
var key = keys[j2];
|
|
63658
63851
|
var val = obj[key];
|
|
63659
|
-
if (typeof val === "object" && val !== null && refs.
|
|
63660
|
-
queue.
|
|
63661
|
-
refs.
|
|
63852
|
+
if (typeof val === "object" && val !== null && !refs.has(val)) {
|
|
63853
|
+
queue[queue.length] = { obj, prop: key };
|
|
63854
|
+
refs.set(val, true);
|
|
63662
63855
|
}
|
|
63663
63856
|
}
|
|
63664
63857
|
}
|
|
@@ -63672,16 +63865,36 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63672
63865
|
if (!obj || typeof obj !== "object") {
|
|
63673
63866
|
return false;
|
|
63674
63867
|
}
|
|
63675
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
63868
|
+
return !!(obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj));
|
|
63676
63869
|
};
|
|
63677
|
-
var combine = function combine(a, b) {
|
|
63678
|
-
|
|
63870
|
+
var combine = function combine(a, b, arrayLimit, plainObjects, throwOnLimitExceeded) {
|
|
63871
|
+
if (isOverflow(a)) {
|
|
63872
|
+
if (throwOnLimitExceeded) {
|
|
63873
|
+
throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63874
|
+
}
|
|
63875
|
+
var bValues = isArray(b) ? b : [b];
|
|
63876
|
+
var newIndex = getMaxIndex(a);
|
|
63877
|
+
for (var i = 0;i < bValues.length; ++i) {
|
|
63878
|
+
newIndex += 1;
|
|
63879
|
+
a[newIndex] = bValues[i];
|
|
63880
|
+
}
|
|
63881
|
+
setMaxIndex(a, newIndex);
|
|
63882
|
+
return a;
|
|
63883
|
+
}
|
|
63884
|
+
var result = [].concat(a, b);
|
|
63885
|
+
if (result.length > arrayLimit) {
|
|
63886
|
+
if (throwOnLimitExceeded) {
|
|
63887
|
+
throw new RangeError("Array limit exceeded. Only " + arrayLimit + " element" + (arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
63888
|
+
}
|
|
63889
|
+
return markOverflow(arrayToObject(result, { plainObjects }), result.length - 1);
|
|
63890
|
+
}
|
|
63891
|
+
return result;
|
|
63679
63892
|
};
|
|
63680
63893
|
var maybeMap = function maybeMap(val, fn) {
|
|
63681
63894
|
if (isArray(val)) {
|
|
63682
63895
|
var mapped = [];
|
|
63683
63896
|
for (var i = 0;i < val.length; i += 1) {
|
|
63684
|
-
mapped.
|
|
63897
|
+
mapped[mapped.length] = fn(val[i]);
|
|
63685
63898
|
}
|
|
63686
63899
|
return mapped;
|
|
63687
63900
|
}
|
|
@@ -63695,9 +63908,12 @@ var require_utils2 = __commonJS((exports, module) => {
|
|
|
63695
63908
|
decode: decode4,
|
|
63696
63909
|
encode: encode4,
|
|
63697
63910
|
isBuffer,
|
|
63911
|
+
isOverflow,
|
|
63698
63912
|
isRegExp,
|
|
63913
|
+
markOverflow,
|
|
63699
63914
|
maybeMap,
|
|
63700
|
-
merge: merge4
|
|
63915
|
+
merge: merge4,
|
|
63916
|
+
toCoercible
|
|
63701
63917
|
};
|
|
63702
63918
|
});
|
|
63703
63919
|
|
|
@@ -63733,11 +63949,14 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63733
63949
|
arrayFormat: "indices",
|
|
63734
63950
|
charset: "utf-8",
|
|
63735
63951
|
charsetSentinel: false,
|
|
63952
|
+
commaRoundTrip: false,
|
|
63736
63953
|
delimiter: "&",
|
|
63954
|
+
depth: Infinity,
|
|
63737
63955
|
encode: true,
|
|
63738
63956
|
encodeDotInKeys: false,
|
|
63739
63957
|
encoder: utils.encode,
|
|
63740
63958
|
encodeValuesOnly: false,
|
|
63959
|
+
filter: undefined,
|
|
63741
63960
|
format: defaultFormat,
|
|
63742
63961
|
formatter: formats.formatters[defaultFormat],
|
|
63743
63962
|
indices: false,
|
|
@@ -63751,8 +63970,11 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63751
63970
|
return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
|
|
63752
63971
|
};
|
|
63753
63972
|
var sentinel = {};
|
|
63754
|
-
var stringify = function stringify(object4, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
|
|
63973
|
+
var stringify = function stringify(object4, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel, depth, currentDepth) {
|
|
63755
63974
|
var obj = object4;
|
|
63975
|
+
if (currentDepth > depth) {
|
|
63976
|
+
throw new RangeError("Input depth exceeded depth option of " + depth);
|
|
63977
|
+
}
|
|
63756
63978
|
var tmpSc = sideChannel;
|
|
63757
63979
|
var step = 0;
|
|
63758
63980
|
var findFlag = false;
|
|
@@ -63770,9 +63992,8 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63770
63992
|
step = 0;
|
|
63771
63993
|
}
|
|
63772
63994
|
}
|
|
63773
|
-
|
|
63774
|
-
|
|
63775
|
-
} else if (obj instanceof Date) {
|
|
63995
|
+
obj = typeof filter === "function" ? filter(prefix, obj) : obj;
|
|
63996
|
+
if (obj instanceof Date) {
|
|
63776
63997
|
obj = serializeDate(obj);
|
|
63777
63998
|
} else if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
63778
63999
|
obj = utils.maybeMap(obj, function(value2) {
|
|
@@ -63784,7 +64005,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63784
64005
|
}
|
|
63785
64006
|
if (obj === null) {
|
|
63786
64007
|
if (strictNullHandling) {
|
|
63787
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
|
|
64008
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix);
|
|
63788
64009
|
}
|
|
63789
64010
|
obj = "";
|
|
63790
64011
|
}
|
|
@@ -63802,32 +64023,34 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63802
64023
|
var objKeys;
|
|
63803
64024
|
if (generateArrayPrefix === "comma" && isArray(obj)) {
|
|
63804
64025
|
if (encodeValuesOnly && encoder) {
|
|
63805
|
-
obj = utils.maybeMap(obj,
|
|
64026
|
+
obj = utils.maybeMap(obj, function(v2) {
|
|
64027
|
+
return v2 == null ? v2 : encoder(v2, defaults.encoder, charset, "value", format);
|
|
64028
|
+
});
|
|
63806
64029
|
}
|
|
63807
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : undefined }];
|
|
64030
|
+
objKeys = [{ value: obj.length > 0 ? utils.toCoercible(obj).join(",") || null : undefined }];
|
|
63808
64031
|
} else if (isArray(filter)) {
|
|
63809
64032
|
objKeys = filter;
|
|
63810
64033
|
} else {
|
|
63811
64034
|
var keys = Object.keys(obj);
|
|
63812
64035
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
63813
64036
|
}
|
|
63814
|
-
var encodedPrefix =
|
|
64037
|
+
var encodedPrefix = String(prefix);
|
|
63815
64038
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
|
|
63816
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
64039
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
|
|
63817
64040
|
return adjustedPrefix + "[]";
|
|
63818
64041
|
}
|
|
63819
64042
|
for (var j2 = 0;j2 < objKeys.length; ++j2) {
|
|
63820
64043
|
var key = objKeys[j2];
|
|
63821
|
-
var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
64044
|
+
var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
|
|
63822
64045
|
if (skipNulls && value === null) {
|
|
63823
64046
|
continue;
|
|
63824
64047
|
}
|
|
63825
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
|
|
64048
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
63826
64049
|
var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
|
|
63827
64050
|
sideChannel.set(object4, step);
|
|
63828
64051
|
var valueSideChannel = getSideChannel();
|
|
63829
64052
|
valueSideChannel.set(sentinel, sideChannel);
|
|
63830
|
-
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
|
|
64053
|
+
pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, generateArrayPrefix === "comma" && encodeValuesOnly && isArray(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel, depth, currentDepth + 1));
|
|
63831
64054
|
}
|
|
63832
64055
|
return values;
|
|
63833
64056
|
};
|
|
@@ -63861,7 +64084,7 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63861
64084
|
filter = opts.filter;
|
|
63862
64085
|
}
|
|
63863
64086
|
var arrayFormat;
|
|
63864
|
-
if (opts.arrayFormat
|
|
64087
|
+
if (has.call(arrayPrefixGenerators, opts.arrayFormat)) {
|
|
63865
64088
|
arrayFormat = opts.arrayFormat;
|
|
63866
64089
|
} else if ("indices" in opts) {
|
|
63867
64090
|
arrayFormat = opts.indices ? "indices" : "repeat";
|
|
@@ -63879,8 +64102,9 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63879
64102
|
arrayFormat,
|
|
63880
64103
|
charset,
|
|
63881
64104
|
charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
63882
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
64105
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
63883
64106
|
delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
|
|
64107
|
+
depth: typeof opts.depth === "number" ? opts.depth : defaults.depth,
|
|
63884
64108
|
encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
|
|
63885
64109
|
encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
63886
64110
|
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
|
@@ -63921,18 +64145,23 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63921
64145
|
var sideChannel = getSideChannel();
|
|
63922
64146
|
for (var i = 0;i < objKeys.length; ++i) {
|
|
63923
64147
|
var key = objKeys[i];
|
|
63924
|
-
if (
|
|
64148
|
+
if (typeof key === "undefined" || key === null) {
|
|
63925
64149
|
continue;
|
|
63926
64150
|
}
|
|
63927
|
-
|
|
64151
|
+
var value = obj[key];
|
|
64152
|
+
if (options.skipNulls && value === null) {
|
|
64153
|
+
continue;
|
|
64154
|
+
}
|
|
64155
|
+
var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
|
|
64156
|
+
pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
|
|
63928
64157
|
}
|
|
63929
64158
|
var joined = keys.join(options.delimiter);
|
|
63930
64159
|
var prefix = options.addQueryPrefix === true ? "?" : "";
|
|
63931
64160
|
if (options.charsetSentinel) {
|
|
63932
64161
|
if (options.charset === "iso-8859-1") {
|
|
63933
|
-
prefix += "utf8=%26%2310003%3B
|
|
64162
|
+
prefix += "utf8=%26%2310003%3B" + options.delimiter;
|
|
63934
64163
|
} else {
|
|
63935
|
-
prefix += "utf8=%E2%9C%93
|
|
64164
|
+
prefix += "utf8=%E2%9C%93" + options.delimiter;
|
|
63936
64165
|
}
|
|
63937
64166
|
}
|
|
63938
64167
|
return joined.length > 0 ? prefix + joined : "";
|
|
@@ -63941,9 +64170,53 @@ var require_stringify = __commonJS((exports, module) => {
|
|
|
63941
64170
|
|
|
63942
64171
|
// node_modules/qs/lib/parse.js
|
|
63943
64172
|
var require_parse = __commonJS((exports, module) => {
|
|
64173
|
+
var getSideChannel = require_side_channel();
|
|
63944
64174
|
var utils = require_utils2();
|
|
63945
64175
|
var has = Object.prototype.hasOwnProperty;
|
|
63946
64176
|
var isArray = Array.isArray;
|
|
64177
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
64178
|
+
var isPlainContainer = function isPlainContainer(value) {
|
|
64179
|
+
if (!value || typeof value !== "object") {
|
|
64180
|
+
return false;
|
|
64181
|
+
}
|
|
64182
|
+
if (isArray(value)) {
|
|
64183
|
+
return true;
|
|
64184
|
+
}
|
|
64185
|
+
var proto = getPrototypeOf(value);
|
|
64186
|
+
return proto === Object.prototype || proto === null;
|
|
64187
|
+
};
|
|
64188
|
+
var emptyCopyOf = function emptyCopyOf(value) {
|
|
64189
|
+
if (isArray(value)) {
|
|
64190
|
+
var arr = [];
|
|
64191
|
+
arr.length = value.length;
|
|
64192
|
+
return arr;
|
|
64193
|
+
}
|
|
64194
|
+
return getPrototypeOf(value) === null ? { __proto__: null } : {};
|
|
64195
|
+
};
|
|
64196
|
+
var copyInput = function copyInput(input) {
|
|
64197
|
+
var copies = getSideChannel();
|
|
64198
|
+
var result = {};
|
|
64199
|
+
var queue = [{ source: input, target: result }];
|
|
64200
|
+
for (var i = 0;i < queue.length; ++i) {
|
|
64201
|
+
var source = queue[i].source;
|
|
64202
|
+
var target = queue[i].target;
|
|
64203
|
+
var keys = Object.keys(source);
|
|
64204
|
+
for (var j2 = 0;j2 < keys.length; ++j2) {
|
|
64205
|
+
var value = source[keys[j2]];
|
|
64206
|
+
if (isPlainContainer(value)) {
|
|
64207
|
+
if (!copies.has(value)) {
|
|
64208
|
+
var copy = emptyCopyOf(value);
|
|
64209
|
+
copies.set(value, copy);
|
|
64210
|
+
queue[queue.length] = { source: value, target: copy };
|
|
64211
|
+
}
|
|
64212
|
+
target[keys[j2]] = copies.get(value);
|
|
64213
|
+
} else {
|
|
64214
|
+
target[keys[j2]] = value;
|
|
64215
|
+
}
|
|
64216
|
+
}
|
|
64217
|
+
}
|
|
64218
|
+
return result;
|
|
64219
|
+
};
|
|
63947
64220
|
var defaults = {
|
|
63948
64221
|
allowDots: false,
|
|
63949
64222
|
allowEmptyArrays: false,
|
|
@@ -63964,17 +64237,33 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
63964
64237
|
parseArrays: true,
|
|
63965
64238
|
plainObjects: false,
|
|
63966
64239
|
strictDepth: false,
|
|
63967
|
-
|
|
64240
|
+
strictMerge: true,
|
|
64241
|
+
strictNullHandling: false,
|
|
64242
|
+
throwOnLimitExceeded: false
|
|
63968
64243
|
};
|
|
63969
64244
|
var interpretNumericEntities = function(str) {
|
|
63970
64245
|
return str.replace(/&#(\d+);/g, function($0, numberStr) {
|
|
63971
64246
|
return String.fromCharCode(parseInt(numberStr, 10));
|
|
63972
64247
|
});
|
|
63973
64248
|
};
|
|
63974
|
-
var parseArrayValue = function(val, options) {
|
|
64249
|
+
var parseArrayValue = function(val, options, currentArrayLength) {
|
|
63975
64250
|
if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
|
|
64251
|
+
if (options.throwOnLimitExceeded) {
|
|
64252
|
+
var commaCount = 0;
|
|
64253
|
+
var commaIndex = val.indexOf(",");
|
|
64254
|
+
while (commaIndex > -1) {
|
|
64255
|
+
commaCount += 1;
|
|
64256
|
+
if (commaCount >= options.arrayLimit) {
|
|
64257
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
64258
|
+
}
|
|
64259
|
+
commaIndex = val.indexOf(",", commaIndex + 1);
|
|
64260
|
+
}
|
|
64261
|
+
}
|
|
63976
64262
|
return val.split(",");
|
|
63977
64263
|
}
|
|
64264
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
64265
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
64266
|
+
}
|
|
63978
64267
|
return val;
|
|
63979
64268
|
};
|
|
63980
64269
|
var isoSentinel = "utf8=%26%2310003%3B";
|
|
@@ -63984,7 +64273,10 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
63984
64273
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
|
|
63985
64274
|
cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
63986
64275
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
63987
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
64276
|
+
var parts = cleanStr.split(options.delimiter, options.throwOnLimitExceeded && typeof limit !== "undefined" ? limit + 1 : limit);
|
|
64277
|
+
if (options.throwOnLimitExceeded && typeof limit !== "undefined" && parts.length > limit) {
|
|
64278
|
+
throw new RangeError("Parameter limit exceeded. Only " + limit + " parameter" + (limit === 1 ? "" : "s") + " allowed.");
|
|
64279
|
+
}
|
|
63988
64280
|
var skipIndex = -1;
|
|
63989
64281
|
var i;
|
|
63990
64282
|
var charset = options.charset;
|
|
@@ -64008,48 +64300,72 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
64008
64300
|
var part = parts[i];
|
|
64009
64301
|
var bracketEqualsPos = part.indexOf("]=");
|
|
64010
64302
|
var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
|
|
64011
|
-
var
|
|
64303
|
+
var isEmptyBracketKey = pos > 1 && part.slice(pos - 2, pos) === "[]";
|
|
64304
|
+
var key;
|
|
64305
|
+
var val;
|
|
64012
64306
|
if (pos === -1) {
|
|
64013
64307
|
key = options.decoder(part, defaults.decoder, charset, "key");
|
|
64014
64308
|
val = options.strictNullHandling ? null : "";
|
|
64015
64309
|
} else {
|
|
64016
64310
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
|
|
64017
|
-
|
|
64018
|
-
|
|
64019
|
-
|
|
64311
|
+
if (key !== null) {
|
|
64312
|
+
val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
|
|
64313
|
+
return options.decoder(encodedVal, defaults.decoder, charset, "value");
|
|
64314
|
+
});
|
|
64315
|
+
}
|
|
64020
64316
|
}
|
|
64021
64317
|
if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
|
|
64022
|
-
val = interpretNumericEntities(val);
|
|
64318
|
+
val = interpretNumericEntities(String(val));
|
|
64023
64319
|
}
|
|
64024
|
-
if (
|
|
64320
|
+
if (isEmptyBracketKey) {
|
|
64025
64321
|
val = isArray(val) ? [val] : val;
|
|
64026
64322
|
}
|
|
64027
|
-
|
|
64028
|
-
|
|
64029
|
-
|
|
64030
|
-
|
|
64031
|
-
|
|
64323
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
64324
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
|
|
64325
|
+
}
|
|
64326
|
+
if (key !== null) {
|
|
64327
|
+
var existing = has.call(obj, key);
|
|
64328
|
+
if (existing && (options.duplicates === "combine" || isEmptyBracketKey)) {
|
|
64329
|
+
obj[key] = utils.combine(obj[key], val, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
|
|
64330
|
+
} else if (!existing || options.duplicates === "last") {
|
|
64331
|
+
obj[key] = val;
|
|
64332
|
+
}
|
|
64032
64333
|
}
|
|
64033
64334
|
}
|
|
64034
64335
|
return obj;
|
|
64035
64336
|
};
|
|
64036
64337
|
var parseObject = function(chain, val, options, valuesParsed) {
|
|
64037
|
-
var
|
|
64338
|
+
var currentArrayLength = 0;
|
|
64339
|
+
if (chain.length > 0 && chain[chain.length - 1] === "[]") {
|
|
64340
|
+
var parentKey = chain.slice(0, -1).join("");
|
|
64341
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
64342
|
+
}
|
|
64343
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
64038
64344
|
for (var i = chain.length - 1;i >= 0; --i) {
|
|
64039
64345
|
var obj;
|
|
64040
64346
|
var root = chain[i];
|
|
64041
64347
|
if (root === "[]" && options.parseArrays) {
|
|
64042
|
-
|
|
64348
|
+
if (utils.isOverflow(leaf)) {
|
|
64349
|
+
obj = leaf;
|
|
64350
|
+
} else {
|
|
64351
|
+
obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf, options.arrayLimit, options.plainObjects, options.throwOnLimitExceeded);
|
|
64352
|
+
}
|
|
64043
64353
|
} else {
|
|
64044
|
-
obj = options.plainObjects ?
|
|
64354
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
64045
64355
|
var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
|
|
64046
64356
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
|
|
64047
64357
|
var index = parseInt(decodedRoot, 10);
|
|
64358
|
+
var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
|
|
64048
64359
|
if (!options.parseArrays && decodedRoot === "") {
|
|
64049
64360
|
obj = { 0: leaf };
|
|
64050
|
-
} else if (
|
|
64361
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
64051
64362
|
obj = [];
|
|
64052
64363
|
obj[index] = leaf;
|
|
64364
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
64365
|
+
throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
64366
|
+
} else if (isValidArrayIndex) {
|
|
64367
|
+
obj[index] = leaf;
|
|
64368
|
+
utils.markOverflow(obj, index);
|
|
64053
64369
|
} else if (decodedRoot !== "__proto__") {
|
|
64054
64370
|
obj[decodedRoot] = leaf;
|
|
64055
64371
|
}
|
|
@@ -64058,39 +64374,101 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
64058
64374
|
}
|
|
64059
64375
|
return leaf;
|
|
64060
64376
|
};
|
|
64061
|
-
var
|
|
64062
|
-
|
|
64063
|
-
|
|
64377
|
+
var topLevelDotsToBrackets = function topLevelDotsToBrackets(key) {
|
|
64378
|
+
var result = "";
|
|
64379
|
+
var depth = 0;
|
|
64380
|
+
for (var i = 0;i < key.length; i += 1) {
|
|
64381
|
+
var cu = key.charCodeAt(i);
|
|
64382
|
+
if (cu === 91) {
|
|
64383
|
+
depth += 1;
|
|
64384
|
+
result += "[";
|
|
64385
|
+
} else if (cu === 93) {
|
|
64386
|
+
if (depth > 0) {
|
|
64387
|
+
depth -= 1;
|
|
64388
|
+
}
|
|
64389
|
+
result += "]";
|
|
64390
|
+
} else if (cu === 46 && depth === 0 && i + 1 < key.length && key.charCodeAt(i + 1) !== 46 && key.charCodeAt(i + 1) !== 91) {
|
|
64391
|
+
var start = i + 1;
|
|
64392
|
+
var j2 = start;
|
|
64393
|
+
while (j2 < key.length && key.charCodeAt(j2) !== 46 && key.charCodeAt(j2) !== 91) {
|
|
64394
|
+
j2 += 1;
|
|
64395
|
+
}
|
|
64396
|
+
result += "[" + key.slice(start, j2) + "]";
|
|
64397
|
+
i = j2 - 1;
|
|
64398
|
+
} else {
|
|
64399
|
+
result += key.charAt(i);
|
|
64400
|
+
}
|
|
64064
64401
|
}
|
|
64065
|
-
|
|
64066
|
-
|
|
64067
|
-
|
|
64068
|
-
var
|
|
64069
|
-
|
|
64070
|
-
|
|
64071
|
-
if (parent) {
|
|
64072
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
64402
|
+
return result;
|
|
64403
|
+
};
|
|
64404
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
64405
|
+
var key = options.allowDots ? topLevelDotsToBrackets(originalKey) : originalKey;
|
|
64406
|
+
if (options.depth <= 0) {
|
|
64407
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
64073
64408
|
if (!options.allowPrototypes) {
|
|
64074
64409
|
return;
|
|
64075
64410
|
}
|
|
64076
64411
|
}
|
|
64077
|
-
|
|
64412
|
+
return [key];
|
|
64078
64413
|
}
|
|
64079
|
-
var
|
|
64080
|
-
|
|
64081
|
-
|
|
64082
|
-
|
|
64414
|
+
var segments = [];
|
|
64415
|
+
var first = key.indexOf("[");
|
|
64416
|
+
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
64417
|
+
if (parent) {
|
|
64418
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
64083
64419
|
if (!options.allowPrototypes) {
|
|
64084
64420
|
return;
|
|
64085
64421
|
}
|
|
64086
64422
|
}
|
|
64087
|
-
|
|
64423
|
+
segments[segments.length] = parent;
|
|
64424
|
+
}
|
|
64425
|
+
var n = key.length;
|
|
64426
|
+
var open4 = first;
|
|
64427
|
+
var collected = 0;
|
|
64428
|
+
while (open4 >= 0 && collected < options.depth) {
|
|
64429
|
+
var level = 1;
|
|
64430
|
+
var i = open4 + 1;
|
|
64431
|
+
var close = -1;
|
|
64432
|
+
while (i < n && close < 0) {
|
|
64433
|
+
var cu = key.charCodeAt(i);
|
|
64434
|
+
if (cu === 91) {
|
|
64435
|
+
level += 1;
|
|
64436
|
+
} else if (cu === 93) {
|
|
64437
|
+
level -= 1;
|
|
64438
|
+
if (level === 0) {
|
|
64439
|
+
close = i;
|
|
64440
|
+
}
|
|
64441
|
+
}
|
|
64442
|
+
i += 1;
|
|
64443
|
+
}
|
|
64444
|
+
if (close < 0) {
|
|
64445
|
+
segments[segments.length] = "[" + key.slice(open4) + "]";
|
|
64446
|
+
return segments;
|
|
64447
|
+
}
|
|
64448
|
+
var seg = key.slice(open4, close + 1);
|
|
64449
|
+
var content = seg.slice(1, -1);
|
|
64450
|
+
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
64451
|
+
return;
|
|
64452
|
+
}
|
|
64453
|
+
segments[segments.length] = seg;
|
|
64454
|
+
collected += 1;
|
|
64455
|
+
open4 = key.indexOf("[", close + 1);
|
|
64088
64456
|
}
|
|
64089
|
-
if (
|
|
64457
|
+
if (open4 >= 0) {
|
|
64090
64458
|
if (options.strictDepth === true) {
|
|
64091
64459
|
throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
|
|
64092
64460
|
}
|
|
64093
|
-
|
|
64461
|
+
segments[segments.length] = "[" + key.slice(open4) + "]";
|
|
64462
|
+
}
|
|
64463
|
+
return segments;
|
|
64464
|
+
};
|
|
64465
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
64466
|
+
if (!givenKey) {
|
|
64467
|
+
return;
|
|
64468
|
+
}
|
|
64469
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
64470
|
+
if (!keys) {
|
|
64471
|
+
return;
|
|
64094
64472
|
}
|
|
64095
64473
|
return parseObject(keys, val, options, valuesParsed);
|
|
64096
64474
|
};
|
|
@@ -64110,6 +64488,9 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
64110
64488
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
|
64111
64489
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
64112
64490
|
}
|
|
64491
|
+
if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
|
|
64492
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
64493
|
+
}
|
|
64113
64494
|
var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
|
|
64114
64495
|
var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
|
|
64115
64496
|
if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
|
|
@@ -64136,16 +64517,18 @@ var require_parse = __commonJS((exports, module) => {
|
|
|
64136
64517
|
parseArrays: opts.parseArrays !== false,
|
|
64137
64518
|
plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
|
|
64138
64519
|
strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
|
|
64139
|
-
|
|
64520
|
+
strictMerge: typeof opts.strictMerge === "boolean" ? !!opts.strictMerge : defaults.strictMerge,
|
|
64521
|
+
strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
64522
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
|
|
64140
64523
|
};
|
|
64141
64524
|
};
|
|
64142
64525
|
module.exports = function(str, opts) {
|
|
64143
64526
|
var options = normalizeParseOptions(opts);
|
|
64144
64527
|
if (str === "" || str === null || typeof str === "undefined") {
|
|
64145
|
-
return options.plainObjects ?
|
|
64528
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
64146
64529
|
}
|
|
64147
|
-
var tempObj = typeof str === "string" ? parseValues(str, options) : str;
|
|
64148
|
-
var obj = options.plainObjects ?
|
|
64530
|
+
var tempObj = typeof str === "string" ? parseValues(str, options) : copyInput(str);
|
|
64531
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
64149
64532
|
var keys = Object.keys(tempObj);
|
|
64150
64533
|
for (var i = 0;i < keys.length; ++i) {
|
|
64151
64534
|
var key = keys[i];
|
|
@@ -64195,10 +64578,12 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
64195
64578
|
}
|
|
64196
64579
|
var extended4 = opts.extended !== false;
|
|
64197
64580
|
var inflate = opts.inflate !== false;
|
|
64198
|
-
var limit = typeof opts.limit
|
|
64581
|
+
var limit = typeof opts.limit === "undefined" || opts.limit === null ? 102400 : bytes.parse(opts.limit);
|
|
64199
64582
|
var type = opts.type || "application/x-www-form-urlencoded";
|
|
64200
64583
|
var verify = opts.verify || false;
|
|
64201
|
-
|
|
64584
|
+
if (limit === null) {
|
|
64585
|
+
throw new TypeError('option limit "' + String(opts.limit) + '" is invalid');
|
|
64586
|
+
}
|
|
64202
64587
|
if (verify !== false && typeof verify !== "function") {
|
|
64203
64588
|
throw new TypeError("option verify must be function");
|
|
64204
64589
|
}
|
|
@@ -64239,14 +64624,13 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
64239
64624
|
encoding: charset,
|
|
64240
64625
|
inflate,
|
|
64241
64626
|
limit,
|
|
64242
|
-
verify
|
|
64243
|
-
depth
|
|
64627
|
+
verify
|
|
64244
64628
|
});
|
|
64245
64629
|
};
|
|
64246
64630
|
}
|
|
64247
64631
|
function extendedparser(options) {
|
|
64248
64632
|
var parameterLimit = options.parameterLimit !== undefined ? options.parameterLimit : 1000;
|
|
64249
|
-
var depth =
|
|
64633
|
+
var depth = options.depth !== undefined ? options.depth : 32;
|
|
64250
64634
|
var parse10 = parser("qs");
|
|
64251
64635
|
if (isNaN(parameterLimit) || parameterLimit < 1) {
|
|
64252
64636
|
throw new TypeError("option parameterLimit must be a positive number");
|
|
@@ -64295,14 +64679,14 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
64295
64679
|
}
|
|
64296
64680
|
function parameterCount(body, limit) {
|
|
64297
64681
|
var count = 0;
|
|
64298
|
-
var index =
|
|
64299
|
-
|
|
64682
|
+
var index = -1;
|
|
64683
|
+
do {
|
|
64300
64684
|
count++;
|
|
64301
|
-
|
|
64302
|
-
if (count === limit) {
|
|
64685
|
+
if (count > limit) {
|
|
64303
64686
|
return;
|
|
64304
64687
|
}
|
|
64305
|
-
|
|
64688
|
+
index = body.indexOf("&", index + 1);
|
|
64689
|
+
} while (index !== -1);
|
|
64306
64690
|
return count;
|
|
64307
64691
|
}
|
|
64308
64692
|
function parser(name) {
|
|
@@ -65021,6 +65405,149 @@ var require_parseurl = __commonJS((exports, module) => {
|
|
|
65021
65405
|
}
|
|
65022
65406
|
});
|
|
65023
65407
|
|
|
65408
|
+
// node_modules/statuses/codes.json
|
|
65409
|
+
var require_codes3 = __commonJS((exports, module) => {
|
|
65410
|
+
module.exports = {
|
|
65411
|
+
"100": "Continue",
|
|
65412
|
+
"101": "Switching Protocols",
|
|
65413
|
+
"102": "Processing",
|
|
65414
|
+
"103": "Early Hints",
|
|
65415
|
+
"200": "OK",
|
|
65416
|
+
"201": "Created",
|
|
65417
|
+
"202": "Accepted",
|
|
65418
|
+
"203": "Non-Authoritative Information",
|
|
65419
|
+
"204": "No Content",
|
|
65420
|
+
"205": "Reset Content",
|
|
65421
|
+
"206": "Partial Content",
|
|
65422
|
+
"207": "Multi-Status",
|
|
65423
|
+
"208": "Already Reported",
|
|
65424
|
+
"226": "IM Used",
|
|
65425
|
+
"300": "Multiple Choices",
|
|
65426
|
+
"301": "Moved Permanently",
|
|
65427
|
+
"302": "Found",
|
|
65428
|
+
"303": "See Other",
|
|
65429
|
+
"304": "Not Modified",
|
|
65430
|
+
"305": "Use Proxy",
|
|
65431
|
+
"307": "Temporary Redirect",
|
|
65432
|
+
"308": "Permanent Redirect",
|
|
65433
|
+
"400": "Bad Request",
|
|
65434
|
+
"401": "Unauthorized",
|
|
65435
|
+
"402": "Payment Required",
|
|
65436
|
+
"403": "Forbidden",
|
|
65437
|
+
"404": "Not Found",
|
|
65438
|
+
"405": "Method Not Allowed",
|
|
65439
|
+
"406": "Not Acceptable",
|
|
65440
|
+
"407": "Proxy Authentication Required",
|
|
65441
|
+
"408": "Request Timeout",
|
|
65442
|
+
"409": "Conflict",
|
|
65443
|
+
"410": "Gone",
|
|
65444
|
+
"411": "Length Required",
|
|
65445
|
+
"412": "Precondition Failed",
|
|
65446
|
+
"413": "Payload Too Large",
|
|
65447
|
+
"414": "URI Too Long",
|
|
65448
|
+
"415": "Unsupported Media Type",
|
|
65449
|
+
"416": "Range Not Satisfiable",
|
|
65450
|
+
"417": "Expectation Failed",
|
|
65451
|
+
"418": "I'm a Teapot",
|
|
65452
|
+
"421": "Misdirected Request",
|
|
65453
|
+
"422": "Unprocessable Entity",
|
|
65454
|
+
"423": "Locked",
|
|
65455
|
+
"424": "Failed Dependency",
|
|
65456
|
+
"425": "Too Early",
|
|
65457
|
+
"426": "Upgrade Required",
|
|
65458
|
+
"428": "Precondition Required",
|
|
65459
|
+
"429": "Too Many Requests",
|
|
65460
|
+
"431": "Request Header Fields Too Large",
|
|
65461
|
+
"451": "Unavailable For Legal Reasons",
|
|
65462
|
+
"500": "Internal Server Error",
|
|
65463
|
+
"501": "Not Implemented",
|
|
65464
|
+
"502": "Bad Gateway",
|
|
65465
|
+
"503": "Service Unavailable",
|
|
65466
|
+
"504": "Gateway Timeout",
|
|
65467
|
+
"505": "HTTP Version Not Supported",
|
|
65468
|
+
"506": "Variant Also Negotiates",
|
|
65469
|
+
"507": "Insufficient Storage",
|
|
65470
|
+
"508": "Loop Detected",
|
|
65471
|
+
"509": "Bandwidth Limit Exceeded",
|
|
65472
|
+
"510": "Not Extended",
|
|
65473
|
+
"511": "Network Authentication Required"
|
|
65474
|
+
};
|
|
65475
|
+
});
|
|
65476
|
+
|
|
65477
|
+
// node_modules/statuses/index.js
|
|
65478
|
+
var require_statuses3 = __commonJS((exports, module) => {
|
|
65479
|
+
/*!
|
|
65480
|
+
* statuses
|
|
65481
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
65482
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
65483
|
+
* MIT Licensed
|
|
65484
|
+
*/
|
|
65485
|
+
var codes = require_codes3();
|
|
65486
|
+
module.exports = status;
|
|
65487
|
+
status.message = codes;
|
|
65488
|
+
status.code = createMessageToStatusCodeMap(codes);
|
|
65489
|
+
status.codes = createStatusCodeList(codes);
|
|
65490
|
+
status.redirect = {
|
|
65491
|
+
300: true,
|
|
65492
|
+
301: true,
|
|
65493
|
+
302: true,
|
|
65494
|
+
303: true,
|
|
65495
|
+
305: true,
|
|
65496
|
+
307: true,
|
|
65497
|
+
308: true
|
|
65498
|
+
};
|
|
65499
|
+
status.empty = {
|
|
65500
|
+
204: true,
|
|
65501
|
+
205: true,
|
|
65502
|
+
304: true
|
|
65503
|
+
};
|
|
65504
|
+
status.retry = {
|
|
65505
|
+
502: true,
|
|
65506
|
+
503: true,
|
|
65507
|
+
504: true
|
|
65508
|
+
};
|
|
65509
|
+
function createMessageToStatusCodeMap(codes2) {
|
|
65510
|
+
var map = {};
|
|
65511
|
+
Object.keys(codes2).forEach(function forEachCode(code) {
|
|
65512
|
+
var message = codes2[code];
|
|
65513
|
+
var status2 = Number(code);
|
|
65514
|
+
map[message.toLowerCase()] = status2;
|
|
65515
|
+
});
|
|
65516
|
+
return map;
|
|
65517
|
+
}
|
|
65518
|
+
function createStatusCodeList(codes2) {
|
|
65519
|
+
return Object.keys(codes2).map(function mapCode(code) {
|
|
65520
|
+
return Number(code);
|
|
65521
|
+
});
|
|
65522
|
+
}
|
|
65523
|
+
function getStatusCode(message) {
|
|
65524
|
+
var msg = message.toLowerCase();
|
|
65525
|
+
if (!Object.prototype.hasOwnProperty.call(status.code, msg)) {
|
|
65526
|
+
throw new Error('invalid status message: "' + message + '"');
|
|
65527
|
+
}
|
|
65528
|
+
return status.code[msg];
|
|
65529
|
+
}
|
|
65530
|
+
function getStatusMessage(code) {
|
|
65531
|
+
if (!Object.prototype.hasOwnProperty.call(status.message, code)) {
|
|
65532
|
+
throw new Error("invalid status code: " + code);
|
|
65533
|
+
}
|
|
65534
|
+
return status.message[code];
|
|
65535
|
+
}
|
|
65536
|
+
function status(code) {
|
|
65537
|
+
if (typeof code === "number") {
|
|
65538
|
+
return getStatusMessage(code);
|
|
65539
|
+
}
|
|
65540
|
+
if (typeof code !== "string") {
|
|
65541
|
+
throw new TypeError("code must be a number or string");
|
|
65542
|
+
}
|
|
65543
|
+
var n = parseInt(code, 10);
|
|
65544
|
+
if (!isNaN(n)) {
|
|
65545
|
+
return getStatusMessage(n);
|
|
65546
|
+
}
|
|
65547
|
+
return getStatusCode(code);
|
|
65548
|
+
}
|
|
65549
|
+
});
|
|
65550
|
+
|
|
65024
65551
|
// node_modules/finalhandler/index.js
|
|
65025
65552
|
var require_finalhandler = __commonJS((exports, module) => {
|
|
65026
65553
|
/*!
|
|
@@ -65033,7 +65560,7 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
65033
65560
|
var escapeHtml = require_escape_html();
|
|
65034
65561
|
var onFinished = require_on_finished();
|
|
65035
65562
|
var parseUrl = require_parseurl();
|
|
65036
|
-
var statuses =
|
|
65563
|
+
var statuses = require_statuses3();
|
|
65037
65564
|
var unpipe = require_unpipe();
|
|
65038
65565
|
var DOUBLE_SPACE_REGEXP = /\x20{2}/g;
|
|
65039
65566
|
var NEWLINE_REGEXP = /\n/g;
|
|
@@ -65690,6 +66217,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
|
|
|
65690
66217
|
}
|
|
65691
66218
|
pos = offset + match.length;
|
|
65692
66219
|
if (match === "*") {
|
|
66220
|
+
backtrack = "";
|
|
65693
66221
|
extraOffset += 3;
|
|
65694
66222
|
return "(.*)";
|
|
65695
66223
|
}
|
|
@@ -65710,6 +66238,7 @@ var require_path_to_regexp = __commonJS((exports, module) => {
|
|
|
65710
66238
|
offset: offset + extraOffset
|
|
65711
66239
|
});
|
|
65712
66240
|
var result = "(?:" + format + slash + capture + (star ? "((?:[/" + format + "].+?)?)" : "") + ")" + optional4;
|
|
66241
|
+
backtrack = "";
|
|
65713
66242
|
extraOffset += result.length - match.length;
|
|
65714
66243
|
return result;
|
|
65715
66244
|
});
|
|
@@ -66762,6 +67291,173 @@ var require_content_disposition = __commonJS((exports, module) => {
|
|
|
66762
67291
|
}
|
|
66763
67292
|
});
|
|
66764
67293
|
|
|
67294
|
+
// node_modules/http-errors/index.js
|
|
67295
|
+
var require_http_errors3 = __commonJS((exports, module) => {
|
|
67296
|
+
/*!
|
|
67297
|
+
* http-errors
|
|
67298
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
67299
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
67300
|
+
* MIT Licensed
|
|
67301
|
+
*/
|
|
67302
|
+
var deprecate = require_depd()("http-errors");
|
|
67303
|
+
var setPrototypeOf = require_setprototypeof();
|
|
67304
|
+
var statuses = require_statuses3();
|
|
67305
|
+
var inherits = require_inherits();
|
|
67306
|
+
var toIdentifier = require_toidentifier();
|
|
67307
|
+
module.exports = createError;
|
|
67308
|
+
module.exports.HttpError = createHttpErrorConstructor();
|
|
67309
|
+
module.exports.isHttpError = createIsHttpErrorFunction(module.exports.HttpError);
|
|
67310
|
+
populateConstructorExports(module.exports, statuses.codes, module.exports.HttpError);
|
|
67311
|
+
function codeClass(status) {
|
|
67312
|
+
return Number(String(status).charAt(0) + "00");
|
|
67313
|
+
}
|
|
67314
|
+
function createError() {
|
|
67315
|
+
var err;
|
|
67316
|
+
var msg;
|
|
67317
|
+
var status = 500;
|
|
67318
|
+
var props = {};
|
|
67319
|
+
for (var i = 0;i < arguments.length; i++) {
|
|
67320
|
+
var arg = arguments[i];
|
|
67321
|
+
var type = typeof arg;
|
|
67322
|
+
if (type === "object" && arg instanceof Error) {
|
|
67323
|
+
err = arg;
|
|
67324
|
+
status = err.status || err.statusCode || status;
|
|
67325
|
+
} else if (type === "number" && i === 0) {
|
|
67326
|
+
status = arg;
|
|
67327
|
+
} else if (type === "string") {
|
|
67328
|
+
msg = arg;
|
|
67329
|
+
} else if (type === "object") {
|
|
67330
|
+
props = arg;
|
|
67331
|
+
} else {
|
|
67332
|
+
throw new TypeError("argument #" + (i + 1) + " unsupported type " + type);
|
|
67333
|
+
}
|
|
67334
|
+
}
|
|
67335
|
+
if (typeof status === "number" && (status < 400 || status >= 600)) {
|
|
67336
|
+
deprecate("non-error status code; use only 4xx or 5xx status codes");
|
|
67337
|
+
}
|
|
67338
|
+
if (typeof status !== "number" || !statuses.message[status] && (status < 400 || status >= 600)) {
|
|
67339
|
+
status = 500;
|
|
67340
|
+
}
|
|
67341
|
+
var HttpError = createError[status] || createError[codeClass(status)];
|
|
67342
|
+
if (!err) {
|
|
67343
|
+
err = HttpError ? new HttpError(msg) : new Error(msg || statuses.message[status]);
|
|
67344
|
+
Error.captureStackTrace(err, createError);
|
|
67345
|
+
}
|
|
67346
|
+
if (!HttpError || !(err instanceof HttpError) || err.status !== status) {
|
|
67347
|
+
err.expose = status < 500;
|
|
67348
|
+
err.status = err.statusCode = status;
|
|
67349
|
+
}
|
|
67350
|
+
for (var key in props) {
|
|
67351
|
+
if (key !== "status" && key !== "statusCode") {
|
|
67352
|
+
err[key] = props[key];
|
|
67353
|
+
}
|
|
67354
|
+
}
|
|
67355
|
+
return err;
|
|
67356
|
+
}
|
|
67357
|
+
function createHttpErrorConstructor() {
|
|
67358
|
+
function HttpError() {
|
|
67359
|
+
throw new TypeError("cannot construct abstract class");
|
|
67360
|
+
}
|
|
67361
|
+
inherits(HttpError, Error);
|
|
67362
|
+
return HttpError;
|
|
67363
|
+
}
|
|
67364
|
+
function createClientErrorConstructor(HttpError, name, code) {
|
|
67365
|
+
var className = toClassName(name);
|
|
67366
|
+
function ClientError(message) {
|
|
67367
|
+
var msg = message != null ? message : statuses.message[code];
|
|
67368
|
+
var err = new Error(msg);
|
|
67369
|
+
Error.captureStackTrace(err, ClientError);
|
|
67370
|
+
setPrototypeOf(err, ClientError.prototype);
|
|
67371
|
+
Object.defineProperty(err, "message", {
|
|
67372
|
+
enumerable: true,
|
|
67373
|
+
configurable: true,
|
|
67374
|
+
value: msg,
|
|
67375
|
+
writable: true
|
|
67376
|
+
});
|
|
67377
|
+
Object.defineProperty(err, "name", {
|
|
67378
|
+
enumerable: false,
|
|
67379
|
+
configurable: true,
|
|
67380
|
+
value: className,
|
|
67381
|
+
writable: true
|
|
67382
|
+
});
|
|
67383
|
+
return err;
|
|
67384
|
+
}
|
|
67385
|
+
inherits(ClientError, HttpError);
|
|
67386
|
+
nameFunc(ClientError, className);
|
|
67387
|
+
ClientError.prototype.status = code;
|
|
67388
|
+
ClientError.prototype.statusCode = code;
|
|
67389
|
+
ClientError.prototype.expose = true;
|
|
67390
|
+
return ClientError;
|
|
67391
|
+
}
|
|
67392
|
+
function createIsHttpErrorFunction(HttpError) {
|
|
67393
|
+
return function isHttpError(val) {
|
|
67394
|
+
if (!val || typeof val !== "object") {
|
|
67395
|
+
return false;
|
|
67396
|
+
}
|
|
67397
|
+
if (val instanceof HttpError) {
|
|
67398
|
+
return true;
|
|
67399
|
+
}
|
|
67400
|
+
return val instanceof Error && typeof val.expose === "boolean" && typeof val.statusCode === "number" && val.status === val.statusCode;
|
|
67401
|
+
};
|
|
67402
|
+
}
|
|
67403
|
+
function createServerErrorConstructor(HttpError, name, code) {
|
|
67404
|
+
var className = toClassName(name);
|
|
67405
|
+
function ServerError(message) {
|
|
67406
|
+
var msg = message != null ? message : statuses.message[code];
|
|
67407
|
+
var err = new Error(msg);
|
|
67408
|
+
Error.captureStackTrace(err, ServerError);
|
|
67409
|
+
setPrototypeOf(err, ServerError.prototype);
|
|
67410
|
+
Object.defineProperty(err, "message", {
|
|
67411
|
+
enumerable: true,
|
|
67412
|
+
configurable: true,
|
|
67413
|
+
value: msg,
|
|
67414
|
+
writable: true
|
|
67415
|
+
});
|
|
67416
|
+
Object.defineProperty(err, "name", {
|
|
67417
|
+
enumerable: false,
|
|
67418
|
+
configurable: true,
|
|
67419
|
+
value: className,
|
|
67420
|
+
writable: true
|
|
67421
|
+
});
|
|
67422
|
+
return err;
|
|
67423
|
+
}
|
|
67424
|
+
inherits(ServerError, HttpError);
|
|
67425
|
+
nameFunc(ServerError, className);
|
|
67426
|
+
ServerError.prototype.status = code;
|
|
67427
|
+
ServerError.prototype.statusCode = code;
|
|
67428
|
+
ServerError.prototype.expose = false;
|
|
67429
|
+
return ServerError;
|
|
67430
|
+
}
|
|
67431
|
+
function nameFunc(func, name) {
|
|
67432
|
+
var desc = Object.getOwnPropertyDescriptor(func, "name");
|
|
67433
|
+
if (desc && desc.configurable) {
|
|
67434
|
+
desc.value = name;
|
|
67435
|
+
Object.defineProperty(func, "name", desc);
|
|
67436
|
+
}
|
|
67437
|
+
}
|
|
67438
|
+
function populateConstructorExports(exports2, codes, HttpError) {
|
|
67439
|
+
codes.forEach(function forEachCode(code) {
|
|
67440
|
+
var CodeError;
|
|
67441
|
+
var name = toIdentifier(statuses.message[code]);
|
|
67442
|
+
switch (codeClass(code)) {
|
|
67443
|
+
case 400:
|
|
67444
|
+
CodeError = createClientErrorConstructor(HttpError, name, code);
|
|
67445
|
+
break;
|
|
67446
|
+
case 500:
|
|
67447
|
+
CodeError = createServerErrorConstructor(HttpError, name, code);
|
|
67448
|
+
break;
|
|
67449
|
+
}
|
|
67450
|
+
if (CodeError) {
|
|
67451
|
+
exports2[code] = CodeError;
|
|
67452
|
+
exports2[name] = CodeError;
|
|
67453
|
+
}
|
|
67454
|
+
});
|
|
67455
|
+
}
|
|
67456
|
+
function toClassName(name) {
|
|
67457
|
+
return name.substr(-5) !== "Error" ? name + "Error" : name;
|
|
67458
|
+
}
|
|
67459
|
+
});
|
|
67460
|
+
|
|
66765
67461
|
// node_modules/send/node_modules/debug/node_modules/ms/index.js
|
|
66766
67462
|
var require_ms4 = __commonJS((exports, module) => {
|
|
66767
67463
|
var s = 1000;
|
|
@@ -67573,7 +68269,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
67573
68269
|
* Copyright(c) 2014-2022 Douglas Christopher Wilson
|
|
67574
68270
|
* MIT Licensed
|
|
67575
68271
|
*/
|
|
67576
|
-
var createError =
|
|
68272
|
+
var createError = require_http_errors3();
|
|
67577
68273
|
var debug = require_src4()("send");
|
|
67578
68274
|
var deprecate = require_depd()("send");
|
|
67579
68275
|
var destroy = require_destroy();
|
|
@@ -67587,7 +68283,7 @@ var require_send = __commonJS((exports, module) => {
|
|
|
67587
68283
|
var onFinished = require_on_finished();
|
|
67588
68284
|
var parseRange = require_range_parser();
|
|
67589
68285
|
var path = __require("path");
|
|
67590
|
-
var statuses =
|
|
68286
|
+
var statuses = require_statuses3();
|
|
67591
68287
|
var Stream = __require("stream");
|
|
67592
68288
|
var util3 = __require("util");
|
|
67593
68289
|
var extname = path.extname;
|
|
@@ -69089,7 +69785,8 @@ var require_utils3 = __commonJS((exports) => {
|
|
|
69089
69785
|
}
|
|
69090
69786
|
function parseExtendedQueryString(str) {
|
|
69091
69787
|
return qs.parse(str, {
|
|
69092
|
-
allowPrototypes: true
|
|
69788
|
+
allowPrototypes: true,
|
|
69789
|
+
arrayLimit: 1000
|
|
69093
69790
|
});
|
|
69094
69791
|
}
|
|
69095
69792
|
function newObject() {
|
|
@@ -70099,7 +70796,7 @@ var require_request = __commonJS((exports, module) => {
|
|
|
70099
70796
|
var method = this.method;
|
|
70100
70797
|
var res = this.res;
|
|
70101
70798
|
var status = res.statusCode;
|
|
70102
|
-
if (method !== "GET" && method !== "HEAD")
|
|
70799
|
+
if (method !== "GET" && method !== "HEAD" && method !== "QUERY")
|
|
70103
70800
|
return false;
|
|
70104
70801
|
if (status >= 200 && status < 300 || status === 304) {
|
|
70105
70802
|
return fresh(this.headers, {
|
|
@@ -70406,7 +71103,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
70406
71103
|
*/
|
|
70407
71104
|
var Buffer2 = require_safe_buffer().Buffer;
|
|
70408
71105
|
var contentDisposition = require_content_disposition();
|
|
70409
|
-
var createError =
|
|
71106
|
+
var createError = require_http_errors3();
|
|
70410
71107
|
var deprecate = require_depd()("express");
|
|
70411
71108
|
var encodeUrl = require_encodeurl();
|
|
70412
71109
|
var escapeHtml = require_escape_html();
|
|
@@ -70414,7 +71111,7 @@ var require_response = __commonJS((exports, module) => {
|
|
|
70414
71111
|
var isAbsolute = require_utils3().isAbsolute;
|
|
70415
71112
|
var onFinished = require_on_finished();
|
|
70416
71113
|
var path = __require("path");
|
|
70417
|
-
var statuses =
|
|
71114
|
+
var statuses = require_statuses3();
|
|
70418
71115
|
var merge4 = require_utils_merge();
|
|
70419
71116
|
var sign = require_cookie_signature().sign;
|
|
70420
71117
|
var normalizeType = require_utils3().normalizeType;
|
|
@@ -71354,9 +72051,9 @@ var init_config = __esm(() => {
|
|
|
71354
72051
|
SDK_METADATA = {
|
|
71355
72052
|
language: "typescript",
|
|
71356
72053
|
openapiDocVersion: "0.0.3",
|
|
71357
|
-
sdkVersion: "1.0.72-rc.
|
|
71358
|
-
genVersion: "2.950.
|
|
71359
|
-
userAgent: "speakeasy-sdk/typescript 1.0.72-rc.
|
|
72054
|
+
sdkVersion: "1.0.72-rc.3",
|
|
72055
|
+
genVersion: "2.950.13",
|
|
72056
|
+
userAgent: "speakeasy-sdk/typescript 1.0.72-rc.3 2.950.13 0.0.3 syllable-sdk"
|
|
71360
72057
|
};
|
|
71361
72058
|
});
|
|
71362
72059
|
|
|
@@ -87264,6 +87961,8 @@ var init_insightworkflowcondition = __esm(() => {
|
|
|
87264
87961
|
sample_rate: nullableType(unionType([numberType().int(), numberType()])).optional(),
|
|
87265
87962
|
agent_list: nullableType(unionType([arrayType(numberType().int()), arrayType(stringType())])).optional(),
|
|
87266
87963
|
prompt_list: nullableType(arrayType(stringType())).optional(),
|
|
87964
|
+
agent_labels: nullableType(arrayType(stringType())).optional(),
|
|
87965
|
+
prompt_labels: nullableType(arrayType(stringType())).optional(),
|
|
87267
87966
|
folder_list: nullableType(arrayType(numberType().int())).optional(),
|
|
87268
87967
|
sheet_info: nullableType(recordType(stringType())).optional()
|
|
87269
87968
|
}).transform((v2) => {
|
|
@@ -87273,6 +87972,8 @@ var init_insightworkflowcondition = __esm(() => {
|
|
|
87273
87972
|
sample_rate: "sampleRate",
|
|
87274
87973
|
agent_list: "agentList",
|
|
87275
87974
|
prompt_list: "promptList",
|
|
87975
|
+
agent_labels: "agentLabels",
|
|
87976
|
+
prompt_labels: "promptLabels",
|
|
87276
87977
|
folder_list: "folderList",
|
|
87277
87978
|
sheet_info: "sheetInfo"
|
|
87278
87979
|
});
|
|
@@ -87283,6 +87984,8 @@ var init_insightworkflowcondition = __esm(() => {
|
|
|
87283
87984
|
sampleRate: nullableType(unionType([numberType().int(), numberType()])).optional(),
|
|
87284
87985
|
agentList: nullableType(unionType([arrayType(numberType().int()), arrayType(stringType())])).optional(),
|
|
87285
87986
|
promptList: nullableType(arrayType(stringType())).optional(),
|
|
87987
|
+
agentLabels: nullableType(arrayType(stringType())).optional(),
|
|
87988
|
+
promptLabels: nullableType(arrayType(stringType())).optional(),
|
|
87286
87989
|
folderList: nullableType(arrayType(numberType().int())).optional(),
|
|
87287
87990
|
sheetInfo: nullableType(recordType(stringType())).optional()
|
|
87288
87991
|
}).transform((v2) => {
|
|
@@ -87292,6 +87995,8 @@ var init_insightworkflowcondition = __esm(() => {
|
|
|
87292
87995
|
sampleRate: "sample_rate",
|
|
87293
87996
|
agentList: "agent_list",
|
|
87294
87997
|
promptList: "prompt_list",
|
|
87998
|
+
agentLabels: "agent_labels",
|
|
87999
|
+
promptLabels: "prompt_labels",
|
|
87295
88000
|
folderList: "folder_list",
|
|
87296
88001
|
sheetInfo: "sheet_info"
|
|
87297
88002
|
});
|
|
@@ -118037,7 +118742,7 @@ Generate voice sample.`,
|
|
|
118037
118742
|
function createMCPServer(deps) {
|
|
118038
118743
|
const server = new McpServer({
|
|
118039
118744
|
name: "SyllableSDK",
|
|
118040
|
-
version: "1.0.72-rc.
|
|
118745
|
+
version: "1.0.72-rc.3"
|
|
118041
118746
|
});
|
|
118042
118747
|
const client = new SyllableSDKCore({
|
|
118043
118748
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -119644,7 +120349,7 @@ var routes = ln({
|
|
|
119644
120349
|
var app = _e(routes, {
|
|
119645
120350
|
name: "mcp",
|
|
119646
120351
|
versionInfo: {
|
|
119647
|
-
currentVersion: "1.0.72-rc.
|
|
120352
|
+
currentVersion: "1.0.72-rc.3"
|
|
119648
120353
|
}
|
|
119649
120354
|
});
|
|
119650
120355
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -119652,5 +120357,5 @@ export {
|
|
|
119652
120357
|
app
|
|
119653
120358
|
};
|
|
119654
120359
|
|
|
119655
|
-
//# debugId=
|
|
120360
|
+
//# debugId=D9BE774353B8788A64756E2164756E21
|
|
119656
120361
|
//# sourceMappingURL=mcp-server.js.map
|