@rockcarver/frodo-cli 3.0.8 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/dist/app.cjs +1168 -770
- package/dist/app.cjs.map +1 -1
- package/package.json +2 -2
package/dist/app.cjs
CHANGED
|
@@ -4532,7 +4532,7 @@ var require_colors = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
|
|
|
4532
4532
|
var colors = {};
|
|
4533
4533
|
module2["exports"] = colors;
|
|
4534
4534
|
colors.themes = {};
|
|
4535
|
-
var
|
|
4535
|
+
var util55 = _chunkHEKQUNOBcjs.__require.call(void 0, "util");
|
|
4536
4536
|
var ansiStyles = colors.styles = require_styles();
|
|
4537
4537
|
var defineProps = Object.defineProperties;
|
|
4538
4538
|
var newLineRegex = new RegExp(/[\r\n]+/g);
|
|
@@ -4595,7 +4595,7 @@ var require_colors = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
|
|
|
4595
4595
|
if (arg != null && arg.constructor === String) {
|
|
4596
4596
|
return arg;
|
|
4597
4597
|
} else {
|
|
4598
|
-
return
|
|
4598
|
+
return util55.inspect(arg);
|
|
4599
4599
|
}
|
|
4600
4600
|
}).join(" ");
|
|
4601
4601
|
if (!colors.enabled || !str) {
|
|
@@ -5933,7 +5933,7 @@ var require_colors2 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
|
|
|
5933
5933
|
var colors = {};
|
|
5934
5934
|
module2["exports"] = colors;
|
|
5935
5935
|
colors.themes = {};
|
|
5936
|
-
var
|
|
5936
|
+
var util55 = _chunkHEKQUNOBcjs.__require.call(void 0, "util");
|
|
5937
5937
|
var ansiStyles = colors.styles = require_styles2();
|
|
5938
5938
|
var defineProps = Object.defineProperties;
|
|
5939
5939
|
var newLineRegex = new RegExp(/[\r\n]+/g);
|
|
@@ -5996,7 +5996,7 @@ var require_colors2 = _chunkHEKQUNOBcjs.__commonJS.call(void 0, {
|
|
|
5996
5996
|
if (arg != null && arg.constructor === String) {
|
|
5997
5997
|
return arg;
|
|
5998
5998
|
} else {
|
|
5999
|
-
return
|
|
5999
|
+
return util55.inspect(arg);
|
|
6000
6000
|
}
|
|
6001
6001
|
}).join(" ");
|
|
6002
6002
|
if (!colors.enabled || !str) {
|
|
@@ -8375,7 +8375,7 @@ var require_delayed_stream = __commonJS2({
|
|
|
8375
8375
|
"node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
|
|
8376
8376
|
"use strict";
|
|
8377
8377
|
var Stream = __require2("stream").Stream;
|
|
8378
|
-
var
|
|
8378
|
+
var util542 = __require2("util");
|
|
8379
8379
|
module2.exports = DelayedStream;
|
|
8380
8380
|
function DelayedStream() {
|
|
8381
8381
|
this.source = null;
|
|
@@ -8386,7 +8386,7 @@ var require_delayed_stream = __commonJS2({
|
|
|
8386
8386
|
this._released = false;
|
|
8387
8387
|
this._bufferedEvents = [];
|
|
8388
8388
|
}
|
|
8389
|
-
|
|
8389
|
+
util542.inherits(DelayedStream, Stream);
|
|
8390
8390
|
DelayedStream.create = function(source, options) {
|
|
8391
8391
|
var delayedStream = new this();
|
|
8392
8392
|
options = options || {};
|
|
@@ -8464,7 +8464,7 @@ var require_delayed_stream = __commonJS2({
|
|
|
8464
8464
|
var require_combined_stream = __commonJS2({
|
|
8465
8465
|
"node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
|
|
8466
8466
|
"use strict";
|
|
8467
|
-
var
|
|
8467
|
+
var util542 = __require2("util");
|
|
8468
8468
|
var Stream = __require2("stream").Stream;
|
|
8469
8469
|
var DelayedStream = require_delayed_stream();
|
|
8470
8470
|
module2.exports = CombinedStream;
|
|
@@ -8480,7 +8480,7 @@ var require_combined_stream = __commonJS2({
|
|
|
8480
8480
|
this._insideLoop = false;
|
|
8481
8481
|
this._pendingNext = false;
|
|
8482
8482
|
}
|
|
8483
|
-
|
|
8483
|
+
util542.inherits(CombinedStream, Stream);
|
|
8484
8484
|
CombinedStream.create = function(options) {
|
|
8485
8485
|
var combinedStream = new this();
|
|
8486
8486
|
options = options || {};
|
|
@@ -18234,7 +18234,7 @@ var require_form_data = __commonJS2({
|
|
|
18234
18234
|
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
18235
18235
|
"use strict";
|
|
18236
18236
|
var CombinedStream = require_combined_stream();
|
|
18237
|
-
var
|
|
18237
|
+
var util542 = __require2("util");
|
|
18238
18238
|
var path52 = __require2("path");
|
|
18239
18239
|
var http3 = __require2("http");
|
|
18240
18240
|
var https3 = __require2("https");
|
|
@@ -18260,7 +18260,7 @@ var require_form_data = __commonJS2({
|
|
|
18260
18260
|
this[option] = options[option];
|
|
18261
18261
|
}
|
|
18262
18262
|
}
|
|
18263
|
-
|
|
18263
|
+
util542.inherits(FormData3, CombinedStream);
|
|
18264
18264
|
FormData3.LINE_BREAK = "\r\n";
|
|
18265
18265
|
FormData3.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
18266
18266
|
FormData3.prototype.append = function(field, value, options) {
|
|
@@ -19190,14 +19190,14 @@ var require_node = __commonJS2({
|
|
|
19190
19190
|
"node_modules/debug/src/node.js"(exports2, module2) {
|
|
19191
19191
|
"use strict";
|
|
19192
19192
|
var tty2 = __require2("tty");
|
|
19193
|
-
var
|
|
19193
|
+
var util542 = __require2("util");
|
|
19194
19194
|
exports2.init = init;
|
|
19195
19195
|
exports2.log = log;
|
|
19196
19196
|
exports2.formatArgs = formatArgs;
|
|
19197
19197
|
exports2.save = save;
|
|
19198
19198
|
exports2.load = load;
|
|
19199
19199
|
exports2.useColors = useColors;
|
|
19200
|
-
exports2.destroy =
|
|
19200
|
+
exports2.destroy = util542.deprecate(
|
|
19201
19201
|
() => {
|
|
19202
19202
|
},
|
|
19203
19203
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -19328,7 +19328,7 @@ var require_node = __commonJS2({
|
|
|
19328
19328
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
19329
19329
|
}
|
|
19330
19330
|
function log(...args) {
|
|
19331
|
-
return process.stderr.write(
|
|
19331
|
+
return process.stderr.write(util542.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
19332
19332
|
}
|
|
19333
19333
|
function save(namespaces) {
|
|
19334
19334
|
if (namespaces) {
|
|
@@ -19351,11 +19351,11 @@ var require_node = __commonJS2({
|
|
|
19351
19351
|
var { formatters } = module2.exports;
|
|
19352
19352
|
formatters.o = function(v) {
|
|
19353
19353
|
this.inspectOpts.colors = this.useColors;
|
|
19354
|
-
return
|
|
19354
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
19355
19355
|
};
|
|
19356
19356
|
formatters.O = function(v) {
|
|
19357
19357
|
this.inspectOpts.colors = this.useColors;
|
|
19358
|
-
return
|
|
19358
|
+
return util542.inspect(v, this.inspectOpts);
|
|
19359
19359
|
};
|
|
19360
19360
|
}
|
|
19361
19361
|
});
|
|
@@ -19401,7 +19401,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19401
19401
|
(function detectUnsupportedEnvironment() {
|
|
19402
19402
|
var looksLikeNode = typeof process !== "undefined";
|
|
19403
19403
|
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
19404
|
-
var looksLikeV8 =
|
|
19404
|
+
var looksLikeV8 = isFunction6(Error.captureStackTrace);
|
|
19405
19405
|
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
19406
19406
|
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
19407
19407
|
}
|
|
@@ -19496,7 +19496,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19496
19496
|
if (!isString2(data2) && !isBuffer3(data2)) {
|
|
19497
19497
|
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
|
19498
19498
|
}
|
|
19499
|
-
if (
|
|
19499
|
+
if (isFunction6(encoding)) {
|
|
19500
19500
|
callback = encoding;
|
|
19501
19501
|
encoding = null;
|
|
19502
19502
|
}
|
|
@@ -19516,10 +19516,10 @@ var require_follow_redirects = __commonJS2({
|
|
|
19516
19516
|
}
|
|
19517
19517
|
};
|
|
19518
19518
|
RedirectableRequest.prototype.end = function(data2, encoding, callback) {
|
|
19519
|
-
if (
|
|
19519
|
+
if (isFunction6(data2)) {
|
|
19520
19520
|
callback = data2;
|
|
19521
19521
|
data2 = encoding = null;
|
|
19522
|
-
} else if (
|
|
19522
|
+
} else if (isFunction6(encoding)) {
|
|
19523
19523
|
callback = encoding;
|
|
19524
19524
|
encoding = null;
|
|
19525
19525
|
}
|
|
@@ -19720,7 +19720,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19720
19720
|
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
|
19721
19721
|
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
|
19722
19722
|
}
|
|
19723
|
-
if (
|
|
19723
|
+
if (isFunction6(beforeRedirect)) {
|
|
19724
19724
|
var responseDetails = {
|
|
19725
19725
|
headers: response.headers,
|
|
19726
19726
|
statusCode
|
|
@@ -19755,7 +19755,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19755
19755
|
options = validateUrl(input);
|
|
19756
19756
|
input = { protocol };
|
|
19757
19757
|
}
|
|
19758
|
-
if (
|
|
19758
|
+
if (isFunction6(options)) {
|
|
19759
19759
|
callback = options;
|
|
19760
19760
|
options = null;
|
|
19761
19761
|
}
|
|
@@ -19835,7 +19835,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19835
19835
|
}
|
|
19836
19836
|
function createErrorType(code, message, baseClass) {
|
|
19837
19837
|
function CustomError(properties) {
|
|
19838
|
-
if (
|
|
19838
|
+
if (isFunction6(Error.captureStackTrace)) {
|
|
19839
19839
|
Error.captureStackTrace(this, this.constructor);
|
|
19840
19840
|
}
|
|
19841
19841
|
Object.assign(this, properties || {});
|
|
@@ -19870,7 +19870,7 @@ var require_follow_redirects = __commonJS2({
|
|
|
19870
19870
|
function isString2(value) {
|
|
19871
19871
|
return typeof value === "string" || value instanceof String;
|
|
19872
19872
|
}
|
|
19873
|
-
function
|
|
19873
|
+
function isFunction6(value) {
|
|
19874
19874
|
return typeof value === "function";
|
|
19875
19875
|
}
|
|
19876
19876
|
function isBuffer3(value) {
|
|
@@ -29205,7 +29205,7 @@ var require_util2 = __commonJS2({
|
|
|
29205
29205
|
var require_array_set = __commonJS2({
|
|
29206
29206
|
"node_modules/source-map/lib/array-set.js"(exports2) {
|
|
29207
29207
|
"use strict";
|
|
29208
|
-
var
|
|
29208
|
+
var util542 = require_util2();
|
|
29209
29209
|
var has = Object.prototype.hasOwnProperty;
|
|
29210
29210
|
var hasNativeMap = typeof Map !== "undefined";
|
|
29211
29211
|
function ArraySet() {
|
|
@@ -29223,7 +29223,7 @@ var require_array_set = __commonJS2({
|
|
|
29223
29223
|
return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length;
|
|
29224
29224
|
};
|
|
29225
29225
|
ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) {
|
|
29226
|
-
var sStr = hasNativeMap ? aStr :
|
|
29226
|
+
var sStr = hasNativeMap ? aStr : util542.toSetString(aStr);
|
|
29227
29227
|
var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
|
|
29228
29228
|
var idx = this._array.length;
|
|
29229
29229
|
if (!isDuplicate || aAllowDuplicates) {
|
|
@@ -29241,7 +29241,7 @@ var require_array_set = __commonJS2({
|
|
|
29241
29241
|
if (hasNativeMap) {
|
|
29242
29242
|
return this._set.has(aStr);
|
|
29243
29243
|
} else {
|
|
29244
|
-
var sStr =
|
|
29244
|
+
var sStr = util542.toSetString(aStr);
|
|
29245
29245
|
return has.call(this._set, sStr);
|
|
29246
29246
|
}
|
|
29247
29247
|
};
|
|
@@ -29252,7 +29252,7 @@ var require_array_set = __commonJS2({
|
|
|
29252
29252
|
return idx;
|
|
29253
29253
|
}
|
|
29254
29254
|
} else {
|
|
29255
|
-
var sStr =
|
|
29255
|
+
var sStr = util542.toSetString(aStr);
|
|
29256
29256
|
if (has.call(this._set, sStr)) {
|
|
29257
29257
|
return this._set[sStr];
|
|
29258
29258
|
}
|
|
@@ -29274,13 +29274,13 @@ var require_array_set = __commonJS2({
|
|
|
29274
29274
|
var require_mapping_list = __commonJS2({
|
|
29275
29275
|
"node_modules/source-map/lib/mapping-list.js"(exports2) {
|
|
29276
29276
|
"use strict";
|
|
29277
|
-
var
|
|
29277
|
+
var util542 = require_util2();
|
|
29278
29278
|
function generatedPositionAfter(mappingA, mappingB) {
|
|
29279
29279
|
var lineA = mappingA.generatedLine;
|
|
29280
29280
|
var lineB = mappingB.generatedLine;
|
|
29281
29281
|
var columnA = mappingA.generatedColumn;
|
|
29282
29282
|
var columnB = mappingB.generatedColumn;
|
|
29283
|
-
return lineB > lineA || lineB == lineA && columnB >= columnA ||
|
|
29283
|
+
return lineB > lineA || lineB == lineA && columnB >= columnA || util542.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0;
|
|
29284
29284
|
}
|
|
29285
29285
|
function MappingList() {
|
|
29286
29286
|
this._array = [];
|
|
@@ -29301,7 +29301,7 @@ var require_mapping_list = __commonJS2({
|
|
|
29301
29301
|
};
|
|
29302
29302
|
MappingList.prototype.toArray = function MappingList_toArray() {
|
|
29303
29303
|
if (!this._sorted) {
|
|
29304
|
-
this._array.sort(
|
|
29304
|
+
this._array.sort(util542.compareByGeneratedPositionsInflated);
|
|
29305
29305
|
this._sorted = true;
|
|
29306
29306
|
}
|
|
29307
29307
|
return this._array;
|
|
@@ -29313,16 +29313,16 @@ var require_source_map_generator = __commonJS2({
|
|
|
29313
29313
|
"node_modules/source-map/lib/source-map-generator.js"(exports2) {
|
|
29314
29314
|
"use strict";
|
|
29315
29315
|
var base64VLQ = require_base64_vlq();
|
|
29316
|
-
var
|
|
29316
|
+
var util542 = require_util2();
|
|
29317
29317
|
var ArraySet = require_array_set().ArraySet;
|
|
29318
29318
|
var MappingList = require_mapping_list().MappingList;
|
|
29319
29319
|
function SourceMapGenerator(aArgs) {
|
|
29320
29320
|
if (!aArgs) {
|
|
29321
29321
|
aArgs = {};
|
|
29322
29322
|
}
|
|
29323
|
-
this._file =
|
|
29324
|
-
this._sourceRoot =
|
|
29325
|
-
this._skipValidation =
|
|
29323
|
+
this._file = util542.getArg(aArgs, "file", null);
|
|
29324
|
+
this._sourceRoot = util542.getArg(aArgs, "sourceRoot", null);
|
|
29325
|
+
this._skipValidation = util542.getArg(aArgs, "skipValidation", false);
|
|
29326
29326
|
this._sources = new ArraySet();
|
|
29327
29327
|
this._names = new ArraySet();
|
|
29328
29328
|
this._mappings = new MappingList();
|
|
@@ -29345,7 +29345,7 @@ var require_source_map_generator = __commonJS2({
|
|
|
29345
29345
|
if (mapping.source != null) {
|
|
29346
29346
|
newMapping.source = mapping.source;
|
|
29347
29347
|
if (sourceRoot != null) {
|
|
29348
|
-
newMapping.source =
|
|
29348
|
+
newMapping.source = util542.relative(sourceRoot, newMapping.source);
|
|
29349
29349
|
}
|
|
29350
29350
|
newMapping.original = {
|
|
29351
29351
|
line: mapping.originalLine,
|
|
@@ -29360,7 +29360,7 @@ var require_source_map_generator = __commonJS2({
|
|
|
29360
29360
|
aSourceMapConsumer.sources.forEach(function(sourceFile) {
|
|
29361
29361
|
var sourceRelative = sourceFile;
|
|
29362
29362
|
if (sourceRoot !== null) {
|
|
29363
|
-
sourceRelative =
|
|
29363
|
+
sourceRelative = util542.relative(sourceRoot, sourceFile);
|
|
29364
29364
|
}
|
|
29365
29365
|
if (!generator._sources.has(sourceRelative)) {
|
|
29366
29366
|
generator._sources.add(sourceRelative);
|
|
@@ -29373,10 +29373,10 @@ var require_source_map_generator = __commonJS2({
|
|
|
29373
29373
|
return generator;
|
|
29374
29374
|
};
|
|
29375
29375
|
SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) {
|
|
29376
|
-
var generated =
|
|
29377
|
-
var original =
|
|
29378
|
-
var source =
|
|
29379
|
-
var name =
|
|
29376
|
+
var generated = util542.getArg(aArgs, "generated");
|
|
29377
|
+
var original = util542.getArg(aArgs, "original", null);
|
|
29378
|
+
var source = util542.getArg(aArgs, "source", null);
|
|
29379
|
+
var name = util542.getArg(aArgs, "name", null);
|
|
29380
29380
|
if (!this._skipValidation) {
|
|
29381
29381
|
this._validateMapping(generated, original, source, name);
|
|
29382
29382
|
}
|
|
@@ -29404,15 +29404,15 @@ var require_source_map_generator = __commonJS2({
|
|
|
29404
29404
|
SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) {
|
|
29405
29405
|
var source = aSourceFile;
|
|
29406
29406
|
if (this._sourceRoot != null) {
|
|
29407
|
-
source =
|
|
29407
|
+
source = util542.relative(this._sourceRoot, source);
|
|
29408
29408
|
}
|
|
29409
29409
|
if (aSourceContent != null) {
|
|
29410
29410
|
if (!this._sourcesContents) {
|
|
29411
29411
|
this._sourcesContents = /* @__PURE__ */ Object.create(null);
|
|
29412
29412
|
}
|
|
29413
|
-
this._sourcesContents[
|
|
29413
|
+
this._sourcesContents[util542.toSetString(source)] = aSourceContent;
|
|
29414
29414
|
} else if (this._sourcesContents) {
|
|
29415
|
-
delete this._sourcesContents[
|
|
29415
|
+
delete this._sourcesContents[util542.toSetString(source)];
|
|
29416
29416
|
if (Object.keys(this._sourcesContents).length === 0) {
|
|
29417
29417
|
this._sourcesContents = null;
|
|
29418
29418
|
}
|
|
@@ -29430,7 +29430,7 @@ var require_source_map_generator = __commonJS2({
|
|
|
29430
29430
|
}
|
|
29431
29431
|
var sourceRoot = this._sourceRoot;
|
|
29432
29432
|
if (sourceRoot != null) {
|
|
29433
|
-
sourceFile =
|
|
29433
|
+
sourceFile = util542.relative(sourceRoot, sourceFile);
|
|
29434
29434
|
}
|
|
29435
29435
|
var newSources = new ArraySet();
|
|
29436
29436
|
var newNames = new ArraySet();
|
|
@@ -29443,10 +29443,10 @@ var require_source_map_generator = __commonJS2({
|
|
|
29443
29443
|
if (original.source != null) {
|
|
29444
29444
|
mapping.source = original.source;
|
|
29445
29445
|
if (aSourceMapPath != null) {
|
|
29446
|
-
mapping.source =
|
|
29446
|
+
mapping.source = util542.join(aSourceMapPath, mapping.source);
|
|
29447
29447
|
}
|
|
29448
29448
|
if (sourceRoot != null) {
|
|
29449
|
-
mapping.source =
|
|
29449
|
+
mapping.source = util542.relative(sourceRoot, mapping.source);
|
|
29450
29450
|
}
|
|
29451
29451
|
mapping.originalLine = original.line;
|
|
29452
29452
|
mapping.originalColumn = original.column;
|
|
@@ -29470,10 +29470,10 @@ var require_source_map_generator = __commonJS2({
|
|
|
29470
29470
|
var content = aSourceMapConsumer.sourceContentFor(sourceFile2);
|
|
29471
29471
|
if (content != null) {
|
|
29472
29472
|
if (aSourceMapPath != null) {
|
|
29473
|
-
sourceFile2 =
|
|
29473
|
+
sourceFile2 = util542.join(aSourceMapPath, sourceFile2);
|
|
29474
29474
|
}
|
|
29475
29475
|
if (sourceRoot != null) {
|
|
29476
|
-
sourceFile2 =
|
|
29476
|
+
sourceFile2 = util542.relative(sourceRoot, sourceFile2);
|
|
29477
29477
|
}
|
|
29478
29478
|
this.setSourceContent(sourceFile2, content);
|
|
29479
29479
|
}
|
|
@@ -29522,7 +29522,7 @@ var require_source_map_generator = __commonJS2({
|
|
|
29522
29522
|
}
|
|
29523
29523
|
} else {
|
|
29524
29524
|
if (i2 > 0) {
|
|
29525
|
-
if (!
|
|
29525
|
+
if (!util542.compareByGeneratedPositionsInflated(mapping, mappings[i2 - 1])) {
|
|
29526
29526
|
continue;
|
|
29527
29527
|
}
|
|
29528
29528
|
next += ",";
|
|
@@ -29554,9 +29554,9 @@ var require_source_map_generator = __commonJS2({
|
|
|
29554
29554
|
return null;
|
|
29555
29555
|
}
|
|
29556
29556
|
if (aSourceRoot != null) {
|
|
29557
|
-
source =
|
|
29557
|
+
source = util542.relative(aSourceRoot, source);
|
|
29558
29558
|
}
|
|
29559
|
-
var key =
|
|
29559
|
+
var key = util542.toSetString(source);
|
|
29560
29560
|
return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null;
|
|
29561
29561
|
}, this);
|
|
29562
29562
|
};
|
|
@@ -29676,7 +29676,7 @@ var require_quick_sort = __commonJS2({
|
|
|
29676
29676
|
var require_source_map_consumer = __commonJS2({
|
|
29677
29677
|
"node_modules/source-map/lib/source-map-consumer.js"(exports2) {
|
|
29678
29678
|
"use strict";
|
|
29679
|
-
var
|
|
29679
|
+
var util542 = require_util2();
|
|
29680
29680
|
var binarySearch = require_binary_search();
|
|
29681
29681
|
var ArraySet = require_array_set().ArraySet;
|
|
29682
29682
|
var base64VLQ = require_base64_vlq();
|
|
@@ -29684,7 +29684,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29684
29684
|
function SourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
29685
29685
|
var sourceMap = aSourceMap;
|
|
29686
29686
|
if (typeof aSourceMap === "string") {
|
|
29687
|
-
sourceMap =
|
|
29687
|
+
sourceMap = util542.parseSourceMapInput(aSourceMap);
|
|
29688
29688
|
}
|
|
29689
29689
|
return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);
|
|
29690
29690
|
}
|
|
@@ -29742,7 +29742,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29742
29742
|
var sourceRoot = this.sourceRoot;
|
|
29743
29743
|
mappings.map(function(mapping) {
|
|
29744
29744
|
var source = mapping.source === null ? null : this._sources.at(mapping.source);
|
|
29745
|
-
source =
|
|
29745
|
+
source = util542.computeSourceURL(sourceRoot, source, this._sourceMapURL);
|
|
29746
29746
|
return {
|
|
29747
29747
|
source,
|
|
29748
29748
|
generatedLine: mapping.generatedLine,
|
|
@@ -29754,11 +29754,11 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29754
29754
|
}, this).forEach(aCallback, context);
|
|
29755
29755
|
};
|
|
29756
29756
|
SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) {
|
|
29757
|
-
var line =
|
|
29757
|
+
var line = util542.getArg(aArgs, "line");
|
|
29758
29758
|
var needle = {
|
|
29759
|
-
source:
|
|
29759
|
+
source: util542.getArg(aArgs, "source"),
|
|
29760
29760
|
originalLine: line,
|
|
29761
|
-
originalColumn:
|
|
29761
|
+
originalColumn: util542.getArg(aArgs, "column", 0)
|
|
29762
29762
|
};
|
|
29763
29763
|
needle.source = this._findSourceIndex(needle.source);
|
|
29764
29764
|
if (needle.source < 0) {
|
|
@@ -29770,7 +29770,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29770
29770
|
this._originalMappings,
|
|
29771
29771
|
"originalLine",
|
|
29772
29772
|
"originalColumn",
|
|
29773
|
-
|
|
29773
|
+
util542.compareByOriginalPositions,
|
|
29774
29774
|
binarySearch.LEAST_UPPER_BOUND
|
|
29775
29775
|
);
|
|
29776
29776
|
if (index2 >= 0) {
|
|
@@ -29779,9 +29779,9 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29779
29779
|
var originalLine = mapping.originalLine;
|
|
29780
29780
|
while (mapping && mapping.originalLine === originalLine) {
|
|
29781
29781
|
mappings.push({
|
|
29782
|
-
line:
|
|
29783
|
-
column:
|
|
29784
|
-
lastColumn:
|
|
29782
|
+
line: util542.getArg(mapping, "generatedLine", null),
|
|
29783
|
+
column: util542.getArg(mapping, "generatedColumn", null),
|
|
29784
|
+
lastColumn: util542.getArg(mapping, "lastGeneratedColumn", null)
|
|
29785
29785
|
});
|
|
29786
29786
|
mapping = this._originalMappings[++index2];
|
|
29787
29787
|
}
|
|
@@ -29789,9 +29789,9 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29789
29789
|
var originalColumn = mapping.originalColumn;
|
|
29790
29790
|
while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) {
|
|
29791
29791
|
mappings.push({
|
|
29792
|
-
line:
|
|
29793
|
-
column:
|
|
29794
|
-
lastColumn:
|
|
29792
|
+
line: util542.getArg(mapping, "generatedLine", null),
|
|
29793
|
+
column: util542.getArg(mapping, "generatedColumn", null),
|
|
29794
|
+
lastColumn: util542.getArg(mapping, "lastGeneratedColumn", null)
|
|
29795
29795
|
});
|
|
29796
29796
|
mapping = this._originalMappings[++index2];
|
|
29797
29797
|
}
|
|
@@ -29803,28 +29803,28 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29803
29803
|
function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
29804
29804
|
var sourceMap = aSourceMap;
|
|
29805
29805
|
if (typeof aSourceMap === "string") {
|
|
29806
|
-
sourceMap =
|
|
29807
|
-
}
|
|
29808
|
-
var version3 =
|
|
29809
|
-
var sources =
|
|
29810
|
-
var names =
|
|
29811
|
-
var sourceRoot =
|
|
29812
|
-
var sourcesContent =
|
|
29813
|
-
var mappings =
|
|
29814
|
-
var file =
|
|
29806
|
+
sourceMap = util542.parseSourceMapInput(aSourceMap);
|
|
29807
|
+
}
|
|
29808
|
+
var version3 = util542.getArg(sourceMap, "version");
|
|
29809
|
+
var sources = util542.getArg(sourceMap, "sources");
|
|
29810
|
+
var names = util542.getArg(sourceMap, "names", []);
|
|
29811
|
+
var sourceRoot = util542.getArg(sourceMap, "sourceRoot", null);
|
|
29812
|
+
var sourcesContent = util542.getArg(sourceMap, "sourcesContent", null);
|
|
29813
|
+
var mappings = util542.getArg(sourceMap, "mappings");
|
|
29814
|
+
var file = util542.getArg(sourceMap, "file", null);
|
|
29815
29815
|
if (version3 != this._version) {
|
|
29816
29816
|
throw new Error("Unsupported version: " + version3);
|
|
29817
29817
|
}
|
|
29818
29818
|
if (sourceRoot) {
|
|
29819
|
-
sourceRoot =
|
|
29819
|
+
sourceRoot = util542.normalize(sourceRoot);
|
|
29820
29820
|
}
|
|
29821
|
-
sources = sources.map(String).map(
|
|
29822
|
-
return sourceRoot &&
|
|
29821
|
+
sources = sources.map(String).map(util542.normalize).map(function(source) {
|
|
29822
|
+
return sourceRoot && util542.isAbsolute(sourceRoot) && util542.isAbsolute(source) ? util542.relative(sourceRoot, source) : source;
|
|
29823
29823
|
});
|
|
29824
29824
|
this._names = ArraySet.fromArray(names.map(String), true);
|
|
29825
29825
|
this._sources = ArraySet.fromArray(sources, true);
|
|
29826
29826
|
this._absoluteSources = this._sources.toArray().map(function(s4) {
|
|
29827
|
-
return
|
|
29827
|
+
return util542.computeSourceURL(sourceRoot, s4, aSourceMapURL);
|
|
29828
29828
|
});
|
|
29829
29829
|
this.sourceRoot = sourceRoot;
|
|
29830
29830
|
this.sourcesContent = sourcesContent;
|
|
@@ -29837,7 +29837,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29837
29837
|
BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) {
|
|
29838
29838
|
var relativeSource = aSource;
|
|
29839
29839
|
if (this.sourceRoot != null) {
|
|
29840
|
-
relativeSource =
|
|
29840
|
+
relativeSource = util542.relative(this.sourceRoot, relativeSource);
|
|
29841
29841
|
}
|
|
29842
29842
|
if (this._sources.has(relativeSource)) {
|
|
29843
29843
|
return this._sources.indexOf(relativeSource);
|
|
@@ -29862,7 +29862,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29862
29862
|
smc.file = aSourceMap._file;
|
|
29863
29863
|
smc._sourceMapURL = aSourceMapURL;
|
|
29864
29864
|
smc._absoluteSources = smc._sources.toArray().map(function(s4) {
|
|
29865
|
-
return
|
|
29865
|
+
return util542.computeSourceURL(smc.sourceRoot, s4, aSourceMapURL);
|
|
29866
29866
|
});
|
|
29867
29867
|
var generatedMappings = aSourceMap._mappings.toArray().slice();
|
|
29868
29868
|
var destGeneratedMappings = smc.__generatedMappings = [];
|
|
@@ -29883,7 +29883,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29883
29883
|
}
|
|
29884
29884
|
destGeneratedMappings.push(destMapping);
|
|
29885
29885
|
}
|
|
29886
|
-
quickSort(smc.__originalMappings,
|
|
29886
|
+
quickSort(smc.__originalMappings, util542.compareByOriginalPositions);
|
|
29887
29887
|
return smc;
|
|
29888
29888
|
};
|
|
29889
29889
|
BasicSourceMapConsumer.prototype._version = 3;
|
|
@@ -29970,9 +29970,9 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29970
29970
|
}
|
|
29971
29971
|
}
|
|
29972
29972
|
}
|
|
29973
|
-
quickSort(generatedMappings,
|
|
29973
|
+
quickSort(generatedMappings, util542.compareByGeneratedPositionsDeflated);
|
|
29974
29974
|
this.__generatedMappings = generatedMappings;
|
|
29975
|
-
quickSort(originalMappings,
|
|
29975
|
+
quickSort(originalMappings, util542.compareByOriginalPositions);
|
|
29976
29976
|
this.__originalMappings = originalMappings;
|
|
29977
29977
|
};
|
|
29978
29978
|
BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) {
|
|
@@ -29999,33 +29999,33 @@ var require_source_map_consumer = __commonJS2({
|
|
|
29999
29999
|
};
|
|
30000
30000
|
BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) {
|
|
30001
30001
|
var needle = {
|
|
30002
|
-
generatedLine:
|
|
30003
|
-
generatedColumn:
|
|
30002
|
+
generatedLine: util542.getArg(aArgs, "line"),
|
|
30003
|
+
generatedColumn: util542.getArg(aArgs, "column")
|
|
30004
30004
|
};
|
|
30005
30005
|
var index2 = this._findMapping(
|
|
30006
30006
|
needle,
|
|
30007
30007
|
this._generatedMappings,
|
|
30008
30008
|
"generatedLine",
|
|
30009
30009
|
"generatedColumn",
|
|
30010
|
-
|
|
30011
|
-
|
|
30010
|
+
util542.compareByGeneratedPositionsDeflated,
|
|
30011
|
+
util542.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
30012
30012
|
);
|
|
30013
30013
|
if (index2 >= 0) {
|
|
30014
30014
|
var mapping = this._generatedMappings[index2];
|
|
30015
30015
|
if (mapping.generatedLine === needle.generatedLine) {
|
|
30016
|
-
var source =
|
|
30016
|
+
var source = util542.getArg(mapping, "source", null);
|
|
30017
30017
|
if (source !== null) {
|
|
30018
30018
|
source = this._sources.at(source);
|
|
30019
|
-
source =
|
|
30019
|
+
source = util542.computeSourceURL(this.sourceRoot, source, this._sourceMapURL);
|
|
30020
30020
|
}
|
|
30021
|
-
var name =
|
|
30021
|
+
var name = util542.getArg(mapping, "name", null);
|
|
30022
30022
|
if (name !== null) {
|
|
30023
30023
|
name = this._names.at(name);
|
|
30024
30024
|
}
|
|
30025
30025
|
return {
|
|
30026
30026
|
source,
|
|
30027
|
-
line:
|
|
30028
|
-
column:
|
|
30027
|
+
line: util542.getArg(mapping, "originalLine", null),
|
|
30028
|
+
column: util542.getArg(mapping, "originalColumn", null),
|
|
30029
30029
|
name
|
|
30030
30030
|
};
|
|
30031
30031
|
}
|
|
@@ -30055,10 +30055,10 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30055
30055
|
}
|
|
30056
30056
|
var relativeSource = aSource;
|
|
30057
30057
|
if (this.sourceRoot != null) {
|
|
30058
|
-
relativeSource =
|
|
30058
|
+
relativeSource = util542.relative(this.sourceRoot, relativeSource);
|
|
30059
30059
|
}
|
|
30060
30060
|
var url5;
|
|
30061
|
-
if (this.sourceRoot != null && (url5 =
|
|
30061
|
+
if (this.sourceRoot != null && (url5 = util542.urlParse(this.sourceRoot))) {
|
|
30062
30062
|
var fileUriAbsPath = relativeSource.replace(/^file:\/\//, "");
|
|
30063
30063
|
if (url5.scheme == "file" && this._sources.has(fileUriAbsPath)) {
|
|
30064
30064
|
return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];
|
|
@@ -30074,7 +30074,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30074
30074
|
}
|
|
30075
30075
|
};
|
|
30076
30076
|
BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) {
|
|
30077
|
-
var source =
|
|
30077
|
+
var source = util542.getArg(aArgs, "source");
|
|
30078
30078
|
source = this._findSourceIndex(source);
|
|
30079
30079
|
if (source < 0) {
|
|
30080
30080
|
return {
|
|
@@ -30085,24 +30085,24 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30085
30085
|
}
|
|
30086
30086
|
var needle = {
|
|
30087
30087
|
source,
|
|
30088
|
-
originalLine:
|
|
30089
|
-
originalColumn:
|
|
30088
|
+
originalLine: util542.getArg(aArgs, "line"),
|
|
30089
|
+
originalColumn: util542.getArg(aArgs, "column")
|
|
30090
30090
|
};
|
|
30091
30091
|
var index2 = this._findMapping(
|
|
30092
30092
|
needle,
|
|
30093
30093
|
this._originalMappings,
|
|
30094
30094
|
"originalLine",
|
|
30095
30095
|
"originalColumn",
|
|
30096
|
-
|
|
30097
|
-
|
|
30096
|
+
util542.compareByOriginalPositions,
|
|
30097
|
+
util542.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
30098
30098
|
);
|
|
30099
30099
|
if (index2 >= 0) {
|
|
30100
30100
|
var mapping = this._originalMappings[index2];
|
|
30101
30101
|
if (mapping.source === needle.source) {
|
|
30102
30102
|
return {
|
|
30103
|
-
line:
|
|
30104
|
-
column:
|
|
30105
|
-
lastColumn:
|
|
30103
|
+
line: util542.getArg(mapping, "generatedLine", null),
|
|
30104
|
+
column: util542.getArg(mapping, "generatedColumn", null),
|
|
30105
|
+
lastColumn: util542.getArg(mapping, "lastGeneratedColumn", null)
|
|
30106
30106
|
};
|
|
30107
30107
|
}
|
|
30108
30108
|
}
|
|
@@ -30116,10 +30116,10 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30116
30116
|
function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) {
|
|
30117
30117
|
var sourceMap = aSourceMap;
|
|
30118
30118
|
if (typeof aSourceMap === "string") {
|
|
30119
|
-
sourceMap =
|
|
30119
|
+
sourceMap = util542.parseSourceMapInput(aSourceMap);
|
|
30120
30120
|
}
|
|
30121
|
-
var version3 =
|
|
30122
|
-
var sections =
|
|
30121
|
+
var version3 = util542.getArg(sourceMap, "version");
|
|
30122
|
+
var sections = util542.getArg(sourceMap, "sections");
|
|
30123
30123
|
if (version3 != this._version) {
|
|
30124
30124
|
throw new Error("Unsupported version: " + version3);
|
|
30125
30125
|
}
|
|
@@ -30133,9 +30133,9 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30133
30133
|
if (s4.url) {
|
|
30134
30134
|
throw new Error("Support for url field in sections not implemented.");
|
|
30135
30135
|
}
|
|
30136
|
-
var offset =
|
|
30137
|
-
var offsetLine =
|
|
30138
|
-
var offsetColumn =
|
|
30136
|
+
var offset = util542.getArg(s4, "offset");
|
|
30137
|
+
var offsetLine = util542.getArg(offset, "line");
|
|
30138
|
+
var offsetColumn = util542.getArg(offset, "column");
|
|
30139
30139
|
if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) {
|
|
30140
30140
|
throw new Error("Section offsets must be ordered and non-overlapping.");
|
|
30141
30141
|
}
|
|
@@ -30147,7 +30147,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30147
30147
|
generatedLine: offsetLine + 1,
|
|
30148
30148
|
generatedColumn: offsetColumn + 1
|
|
30149
30149
|
},
|
|
30150
|
-
consumer: new SourceMapConsumer(
|
|
30150
|
+
consumer: new SourceMapConsumer(util542.getArg(s4, "map"), aSourceMapURL)
|
|
30151
30151
|
};
|
|
30152
30152
|
});
|
|
30153
30153
|
}
|
|
@@ -30167,8 +30167,8 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30167
30167
|
});
|
|
30168
30168
|
IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) {
|
|
30169
30169
|
var needle = {
|
|
30170
|
-
generatedLine:
|
|
30171
|
-
generatedColumn:
|
|
30170
|
+
generatedLine: util542.getArg(aArgs, "line"),
|
|
30171
|
+
generatedColumn: util542.getArg(aArgs, "column")
|
|
30172
30172
|
};
|
|
30173
30173
|
var sectionIndex = binarySearch.search(
|
|
30174
30174
|
needle,
|
|
@@ -30218,7 +30218,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30218
30218
|
IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) {
|
|
30219
30219
|
for (var i2 = 0; i2 < this._sections.length; i2++) {
|
|
30220
30220
|
var section = this._sections[i2];
|
|
30221
|
-
if (section.consumer._findSourceIndex(
|
|
30221
|
+
if (section.consumer._findSourceIndex(util542.getArg(aArgs, "source")) === -1) {
|
|
30222
30222
|
continue;
|
|
30223
30223
|
}
|
|
30224
30224
|
var generatedPosition = section.consumer.generatedPositionFor(aArgs);
|
|
@@ -30244,7 +30244,7 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30244
30244
|
for (var j2 = 0; j2 < sectionMappings.length; j2++) {
|
|
30245
30245
|
var mapping = sectionMappings[j2];
|
|
30246
30246
|
var source = section.consumer._sources.at(mapping.source);
|
|
30247
|
-
source =
|
|
30247
|
+
source = util542.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL);
|
|
30248
30248
|
this._sources.add(source);
|
|
30249
30249
|
source = this._sources.indexOf(source);
|
|
30250
30250
|
var name = null;
|
|
@@ -30267,8 +30267,8 @@ var require_source_map_consumer = __commonJS2({
|
|
|
30267
30267
|
}
|
|
30268
30268
|
}
|
|
30269
30269
|
}
|
|
30270
|
-
quickSort(this.__generatedMappings,
|
|
30271
|
-
quickSort(this.__originalMappings,
|
|
30270
|
+
quickSort(this.__generatedMappings, util542.compareByGeneratedPositionsDeflated);
|
|
30271
|
+
quickSort(this.__originalMappings, util542.compareByOriginalPositions);
|
|
30272
30272
|
};
|
|
30273
30273
|
exports2.IndexedSourceMapConsumer = IndexedSourceMapConsumer;
|
|
30274
30274
|
}
|
|
@@ -30277,7 +30277,7 @@ var require_source_node = __commonJS2({
|
|
|
30277
30277
|
"node_modules/source-map/lib/source-node.js"(exports2) {
|
|
30278
30278
|
"use strict";
|
|
30279
30279
|
var SourceMapGenerator = require_source_map_generator().SourceMapGenerator;
|
|
30280
|
-
var
|
|
30280
|
+
var util542 = require_util2();
|
|
30281
30281
|
var REGEX_NEWLINE = /(\r?\n)/;
|
|
30282
30282
|
var NEWLINE_CODE = 10;
|
|
30283
30283
|
var isSourceNode = "$$$isSourceNode$$$";
|
|
@@ -30343,7 +30343,7 @@ var require_source_node = __commonJS2({
|
|
|
30343
30343
|
var content = aSourceMapConsumer.sourceContentFor(sourceFile);
|
|
30344
30344
|
if (content != null) {
|
|
30345
30345
|
if (aRelativePath != null) {
|
|
30346
|
-
sourceFile =
|
|
30346
|
+
sourceFile = util542.join(aRelativePath, sourceFile);
|
|
30347
30347
|
}
|
|
30348
30348
|
node2.setSourceContent(sourceFile, content);
|
|
30349
30349
|
}
|
|
@@ -30353,7 +30353,7 @@ var require_source_node = __commonJS2({
|
|
|
30353
30353
|
if (mapping === null || mapping.source === void 0) {
|
|
30354
30354
|
node2.add(code);
|
|
30355
30355
|
} else {
|
|
30356
|
-
var source = aRelativePath ?
|
|
30356
|
+
var source = aRelativePath ? util542.join(aRelativePath, mapping.source) : mapping.source;
|
|
30357
30357
|
node2.add(new SourceNode(
|
|
30358
30358
|
mapping.originalLine,
|
|
30359
30359
|
mapping.originalColumn,
|
|
@@ -30439,7 +30439,7 @@ var require_source_node = __commonJS2({
|
|
|
30439
30439
|
return this;
|
|
30440
30440
|
};
|
|
30441
30441
|
SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) {
|
|
30442
|
-
this.sourceContents[
|
|
30442
|
+
this.sourceContents[util542.toSetString(aSourceFile)] = aSourceContent;
|
|
30443
30443
|
};
|
|
30444
30444
|
SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) {
|
|
30445
30445
|
for (var i2 = 0, len = this.children.length; i2 < len; i2++) {
|
|
@@ -30449,7 +30449,7 @@ var require_source_node = __commonJS2({
|
|
|
30449
30449
|
}
|
|
30450
30450
|
var sources = Object.keys(this.sourceContents);
|
|
30451
30451
|
for (var i2 = 0, len = sources.length; i2 < len; i2++) {
|
|
30452
|
-
aFn(
|
|
30452
|
+
aFn(util542.fromSetString(sources[i2]), this.sourceContents[sources[i2]]);
|
|
30453
30453
|
}
|
|
30454
30454
|
};
|
|
30455
30455
|
SourceNode.prototype.toString = function SourceNode_toString() {
|
|
@@ -32698,15 +32698,15 @@ var require_escodegen = __commonJS2({
|
|
|
32698
32698
|
var require_esprima = __commonJS2({
|
|
32699
32699
|
"node_modules/esprima/dist/esprima.js"(exports2, module2) {
|
|
32700
32700
|
"use strict";
|
|
32701
|
-
(function webpackUniversalModuleDefinition(root4,
|
|
32701
|
+
(function webpackUniversalModuleDefinition(root4, factory2) {
|
|
32702
32702
|
if (typeof exports2 === "object" && typeof module2 === "object")
|
|
32703
|
-
module2.exports =
|
|
32703
|
+
module2.exports = factory2();
|
|
32704
32704
|
else if (typeof define === "function" && define.amd)
|
|
32705
|
-
define([],
|
|
32705
|
+
define([], factory2);
|
|
32706
32706
|
else if (typeof exports2 === "object")
|
|
32707
|
-
exports2["esprima"] =
|
|
32707
|
+
exports2["esprima"] = factory2();
|
|
32708
32708
|
else
|
|
32709
|
-
root4["esprima"] =
|
|
32709
|
+
root4["esprima"] = factory2();
|
|
32710
32710
|
})(exports2, function() {
|
|
32711
32711
|
return (
|
|
32712
32712
|
/******/
|
|
@@ -39768,7 +39768,7 @@ var require_types = __commonJS2({
|
|
|
39768
39768
|
return type;
|
|
39769
39769
|
}
|
|
39770
39770
|
var isString2 = defBuiltInType("string", "truthy");
|
|
39771
|
-
var
|
|
39771
|
+
var isFunction6 = defBuiltInType("function", function() {
|
|
39772
39772
|
});
|
|
39773
39773
|
var isArray14 = defBuiltInType("array", []);
|
|
39774
39774
|
var isObject5 = defBuiltInType("object", {});
|
|
@@ -39780,7 +39780,7 @@ var require_types = __commonJS2({
|
|
|
39780
39780
|
var isUndefined2 = defBuiltInType("undefined", void 0);
|
|
39781
39781
|
var builtInTypes = {
|
|
39782
39782
|
string: isString2,
|
|
39783
|
-
function:
|
|
39783
|
+
function: isFunction6,
|
|
39784
39784
|
array: isArray14,
|
|
39785
39785
|
object: isObject5,
|
|
39786
39786
|
RegExp: isRegExp2,
|
|
@@ -40008,7 +40008,7 @@ var require_types = __commonJS2({
|
|
|
40008
40008
|
if (isUndefined2.check(func)) {
|
|
40009
40009
|
delete nodePrototype[name];
|
|
40010
40010
|
} else {
|
|
40011
|
-
|
|
40011
|
+
isFunction6.assert(func);
|
|
40012
40012
|
Object.defineProperty(nodePrototype, name, {
|
|
40013
40013
|
enumerable: true,
|
|
40014
40014
|
configurable: true,
|
|
@@ -41070,7 +41070,7 @@ var require_path_visitor = __commonJS2({
|
|
|
41070
41070
|
var NodePath = fork.use(node_path_1.default);
|
|
41071
41071
|
var isArray14 = types.builtInTypes.array;
|
|
41072
41072
|
var isObject5 = types.builtInTypes.object;
|
|
41073
|
-
var
|
|
41073
|
+
var isFunction6 = types.builtInTypes.function;
|
|
41074
41074
|
var undefined2;
|
|
41075
41075
|
var PathVisitor = function PathVisitor2() {
|
|
41076
41076
|
if (!(this instanceof PathVisitor2)) {
|
|
@@ -41097,7 +41097,7 @@ var require_path_visitor = __commonJS2({
|
|
|
41097
41097
|
for (var i2 = 0; i2 < typeNameCount; ++i2) {
|
|
41098
41098
|
var typeName = typeNameKeys[i2];
|
|
41099
41099
|
methodName = "visit" + supertypeTable[typeName];
|
|
41100
|
-
if (
|
|
41100
|
+
if (isFunction6.check(visitor[methodName])) {
|
|
41101
41101
|
methodNameTable[typeName] = methodName;
|
|
41102
41102
|
}
|
|
41103
41103
|
}
|
|
@@ -41120,8 +41120,8 @@ var require_path_visitor = __commonJS2({
|
|
|
41120
41120
|
Vp.constructor = Visitor;
|
|
41121
41121
|
extend2(Vp, methods);
|
|
41122
41122
|
extend2(Visitor, PathVisitor);
|
|
41123
|
-
|
|
41124
|
-
|
|
41123
|
+
isFunction6.assert(Visitor.fromMethodsObject);
|
|
41124
|
+
isFunction6.assert(Visitor.visit);
|
|
41125
41125
|
return new Visitor();
|
|
41126
41126
|
};
|
|
41127
41127
|
function extend2(target, source) {
|
|
@@ -48607,7 +48607,7 @@ var require_loglevel = __commonJS2({
|
|
|
48607
48607
|
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
48608
48608
|
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
48609
48609
|
}
|
|
48610
|
-
function Logger2(name,
|
|
48610
|
+
function Logger2(name, factory2) {
|
|
48611
48611
|
var self2 = this;
|
|
48612
48612
|
var inheritedLevel;
|
|
48613
48613
|
var defaultLevel;
|
|
@@ -48687,7 +48687,7 @@ var require_loglevel = __commonJS2({
|
|
|
48687
48687
|
"ERROR": 4,
|
|
48688
48688
|
"SILENT": 5
|
|
48689
48689
|
};
|
|
48690
|
-
self2.methodFactory =
|
|
48690
|
+
self2.methodFactory = factory2 || defaultMethodFactory;
|
|
48691
48691
|
self2.getLevel = function() {
|
|
48692
48692
|
if (userLevel != null) {
|
|
48693
48693
|
return userLevel;
|
|
@@ -49106,14 +49106,14 @@ var require_fnv1a = __commonJS2({
|
|
|
49106
49106
|
var require_slugify = __commonJS2({
|
|
49107
49107
|
"node_modules/slugify/slugify.js"(exports2, module2) {
|
|
49108
49108
|
"use strict";
|
|
49109
|
-
(function(name, root4,
|
|
49109
|
+
(function(name, root4, factory2) {
|
|
49110
49110
|
if (typeof exports2 === "object") {
|
|
49111
|
-
module2.exports =
|
|
49112
|
-
module2.exports["default"] =
|
|
49111
|
+
module2.exports = factory2();
|
|
49112
|
+
module2.exports["default"] = factory2();
|
|
49113
49113
|
} else if (typeof define === "function" && define.amd) {
|
|
49114
|
-
define(
|
|
49114
|
+
define(factory2);
|
|
49115
49115
|
} else {
|
|
49116
|
-
root4[name] =
|
|
49116
|
+
root4[name] = factory2();
|
|
49117
49117
|
}
|
|
49118
49118
|
})("slugify", exports2, function() {
|
|
49119
49119
|
var charMap = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`);
|
|
@@ -49766,7 +49766,7 @@ var require_graceful_fs = __commonJS2({
|
|
|
49766
49766
|
var polyfills = require_polyfills();
|
|
49767
49767
|
var legacy = require_legacy_streams();
|
|
49768
49768
|
var clone = require_clone();
|
|
49769
|
-
var
|
|
49769
|
+
var util542 = __require2("util");
|
|
49770
49770
|
var gracefulQueue;
|
|
49771
49771
|
var previousSymbol;
|
|
49772
49772
|
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
@@ -49786,11 +49786,11 @@ var require_graceful_fs = __commonJS2({
|
|
|
49786
49786
|
});
|
|
49787
49787
|
}
|
|
49788
49788
|
var debug22 = noop3;
|
|
49789
|
-
if (
|
|
49790
|
-
debug22 =
|
|
49789
|
+
if (util542.debuglog)
|
|
49790
|
+
debug22 = util542.debuglog("gfs4");
|
|
49791
49791
|
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
49792
49792
|
debug22 = function() {
|
|
49793
|
-
var m2 =
|
|
49793
|
+
var m2 = util542.format.apply(util542, arguments);
|
|
49794
49794
|
m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
|
|
49795
49795
|
console.error(m2);
|
|
49796
49796
|
};
|
|
@@ -50332,7 +50332,7 @@ var require_stat = __commonJS2({
|
|
|
50332
50332
|
"use strict";
|
|
50333
50333
|
var fs72 = require_fs();
|
|
50334
50334
|
var path52 = __require2("path");
|
|
50335
|
-
var
|
|
50335
|
+
var util542 = __require2("util");
|
|
50336
50336
|
function getStats(src2, dest, opts) {
|
|
50337
50337
|
const statFunc = opts.dereference ? (file) => fs72.stat(file, { bigint: true }) : (file) => fs72.lstat(file, { bigint: true });
|
|
50338
50338
|
return Promise.all([
|
|
@@ -50356,7 +50356,7 @@ var require_stat = __commonJS2({
|
|
|
50356
50356
|
return { srcStat, destStat };
|
|
50357
50357
|
}
|
|
50358
50358
|
function checkPaths(src2, dest, funcName, opts, cb) {
|
|
50359
|
-
|
|
50359
|
+
util542.callbackify(getStats)(src2, dest, opts, (err, stats) => {
|
|
50360
50360
|
if (err) return cb(err);
|
|
50361
50361
|
const { srcStat, destStat } = stats;
|
|
50362
50362
|
if (destStat) {
|
|
@@ -52478,7 +52478,7 @@ var require_node3 = __commonJS2({
|
|
|
52478
52478
|
"node_modules/morgan/node_modules/debug/src/node.js"(exports2, module2) {
|
|
52479
52479
|
"use strict";
|
|
52480
52480
|
var tty2 = __require2("tty");
|
|
52481
|
-
var
|
|
52481
|
+
var util542 = __require2("util");
|
|
52482
52482
|
exports2 = module2.exports = require_debug3();
|
|
52483
52483
|
exports2.init = init;
|
|
52484
52484
|
exports2.log = log;
|
|
@@ -52503,7 +52503,7 @@ var require_node3 = __commonJS2({
|
|
|
52503
52503
|
}, {});
|
|
52504
52504
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
52505
52505
|
if (1 !== fd && 2 !== fd) {
|
|
52506
|
-
|
|
52506
|
+
util542.deprecate(function() {
|
|
52507
52507
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
52508
52508
|
}
|
|
52509
52509
|
var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -52512,13 +52512,13 @@ var require_node3 = __commonJS2({
|
|
|
52512
52512
|
}
|
|
52513
52513
|
exports2.formatters.o = function(v) {
|
|
52514
52514
|
this.inspectOpts.colors = this.useColors;
|
|
52515
|
-
return
|
|
52515
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
52516
52516
|
return str.trim();
|
|
52517
52517
|
}).join(" ");
|
|
52518
52518
|
};
|
|
52519
52519
|
exports2.formatters.O = function(v) {
|
|
52520
52520
|
this.inspectOpts.colors = this.useColors;
|
|
52521
|
-
return
|
|
52521
|
+
return util542.inspect(v, this.inspectOpts);
|
|
52522
52522
|
};
|
|
52523
52523
|
function formatArgs(args) {
|
|
52524
52524
|
var name = this.namespace;
|
|
@@ -52533,7 +52533,7 @@ var require_node3 = __commonJS2({
|
|
|
52533
52533
|
}
|
|
52534
52534
|
}
|
|
52535
52535
|
function log() {
|
|
52536
|
-
return stream4.write(
|
|
52536
|
+
return stream4.write(util542.format.apply(util542, arguments) + "\n");
|
|
52537
52537
|
}
|
|
52538
52538
|
function save(namespaces) {
|
|
52539
52539
|
if (null == namespaces) {
|
|
@@ -53743,13 +53743,13 @@ var require_inherits = __commonJS2({
|
|
|
53743
53743
|
"node_modules/inherits/inherits.js"(exports2, module2) {
|
|
53744
53744
|
"use strict";
|
|
53745
53745
|
try {
|
|
53746
|
-
|
|
53747
|
-
if (typeof
|
|
53748
|
-
module2.exports =
|
|
53746
|
+
util542 = __require2("util");
|
|
53747
|
+
if (typeof util542.inherits !== "function") throw "";
|
|
53748
|
+
module2.exports = util542.inherits;
|
|
53749
53749
|
} catch (e) {
|
|
53750
53750
|
module2.exports = require_inherits_browser();
|
|
53751
53751
|
}
|
|
53752
|
-
var
|
|
53752
|
+
var util542;
|
|
53753
53753
|
}
|
|
53754
53754
|
});
|
|
53755
53755
|
var require_toidentifier = __commonJS2({
|
|
@@ -54219,7 +54219,7 @@ var require_node4 = __commonJS2({
|
|
|
54219
54219
|
"node_modules/body-parser/node_modules/debug/src/node.js"(exports2, module2) {
|
|
54220
54220
|
"use strict";
|
|
54221
54221
|
var tty2 = __require2("tty");
|
|
54222
|
-
var
|
|
54222
|
+
var util542 = __require2("util");
|
|
54223
54223
|
exports2 = module2.exports = require_debug4();
|
|
54224
54224
|
exports2.init = init;
|
|
54225
54225
|
exports2.log = log;
|
|
@@ -54244,7 +54244,7 @@ var require_node4 = __commonJS2({
|
|
|
54244
54244
|
}, {});
|
|
54245
54245
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
54246
54246
|
if (1 !== fd && 2 !== fd) {
|
|
54247
|
-
|
|
54247
|
+
util542.deprecate(function() {
|
|
54248
54248
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
54249
54249
|
}
|
|
54250
54250
|
var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -54253,13 +54253,13 @@ var require_node4 = __commonJS2({
|
|
|
54253
54253
|
}
|
|
54254
54254
|
exports2.formatters.o = function(v) {
|
|
54255
54255
|
this.inspectOpts.colors = this.useColors;
|
|
54256
|
-
return
|
|
54256
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
54257
54257
|
return str.trim();
|
|
54258
54258
|
}).join(" ");
|
|
54259
54259
|
};
|
|
54260
54260
|
exports2.formatters.O = function(v) {
|
|
54261
54261
|
this.inspectOpts.colors = this.useColors;
|
|
54262
|
-
return
|
|
54262
|
+
return util542.inspect(v, this.inspectOpts);
|
|
54263
54263
|
};
|
|
54264
54264
|
function formatArgs(args) {
|
|
54265
54265
|
var name = this.namespace;
|
|
@@ -54274,7 +54274,7 @@ var require_node4 = __commonJS2({
|
|
|
54274
54274
|
}
|
|
54275
54275
|
}
|
|
54276
54276
|
function log() {
|
|
54277
|
-
return stream4.write(
|
|
54277
|
+
return stream4.write(util542.format.apply(util542, arguments) + "\n");
|
|
54278
54278
|
}
|
|
54279
54279
|
function save(namespaces) {
|
|
54280
54280
|
if (null == namespaces) {
|
|
@@ -60050,7 +60050,7 @@ var require_node5 = __commonJS2({
|
|
|
60050
60050
|
"node_modules/finalhandler/node_modules/debug/src/node.js"(exports2, module2) {
|
|
60051
60051
|
"use strict";
|
|
60052
60052
|
var tty2 = __require2("tty");
|
|
60053
|
-
var
|
|
60053
|
+
var util542 = __require2("util");
|
|
60054
60054
|
exports2 = module2.exports = require_debug5();
|
|
60055
60055
|
exports2.init = init;
|
|
60056
60056
|
exports2.log = log;
|
|
@@ -60075,7 +60075,7 @@ var require_node5 = __commonJS2({
|
|
|
60075
60075
|
}, {});
|
|
60076
60076
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
60077
60077
|
if (1 !== fd && 2 !== fd) {
|
|
60078
|
-
|
|
60078
|
+
util542.deprecate(function() {
|
|
60079
60079
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
60080
60080
|
}
|
|
60081
60081
|
var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -60084,13 +60084,13 @@ var require_node5 = __commonJS2({
|
|
|
60084
60084
|
}
|
|
60085
60085
|
exports2.formatters.o = function(v) {
|
|
60086
60086
|
this.inspectOpts.colors = this.useColors;
|
|
60087
|
-
return
|
|
60087
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
60088
60088
|
return str.trim();
|
|
60089
60089
|
}).join(" ");
|
|
60090
60090
|
};
|
|
60091
60091
|
exports2.formatters.O = function(v) {
|
|
60092
60092
|
this.inspectOpts.colors = this.useColors;
|
|
60093
|
-
return
|
|
60093
|
+
return util542.inspect(v, this.inspectOpts);
|
|
60094
60094
|
};
|
|
60095
60095
|
function formatArgs(args) {
|
|
60096
60096
|
var name = this.namespace;
|
|
@@ -60105,7 +60105,7 @@ var require_node5 = __commonJS2({
|
|
|
60105
60105
|
}
|
|
60106
60106
|
}
|
|
60107
60107
|
function log() {
|
|
60108
|
-
return stream4.write(
|
|
60108
|
+
return stream4.write(util542.format.apply(util542, arguments) + "\n");
|
|
60109
60109
|
}
|
|
60110
60110
|
function save(namespaces) {
|
|
60111
60111
|
if (null == namespaces) {
|
|
@@ -60756,7 +60756,7 @@ var require_node6 = __commonJS2({
|
|
|
60756
60756
|
"node_modules/express/node_modules/debug/src/node.js"(exports2, module2) {
|
|
60757
60757
|
"use strict";
|
|
60758
60758
|
var tty2 = __require2("tty");
|
|
60759
|
-
var
|
|
60759
|
+
var util542 = __require2("util");
|
|
60760
60760
|
exports2 = module2.exports = require_debug6();
|
|
60761
60761
|
exports2.init = init;
|
|
60762
60762
|
exports2.log = log;
|
|
@@ -60781,7 +60781,7 @@ var require_node6 = __commonJS2({
|
|
|
60781
60781
|
}, {});
|
|
60782
60782
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
60783
60783
|
if (1 !== fd && 2 !== fd) {
|
|
60784
|
-
|
|
60784
|
+
util542.deprecate(function() {
|
|
60785
60785
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
60786
60786
|
}
|
|
60787
60787
|
var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -60790,13 +60790,13 @@ var require_node6 = __commonJS2({
|
|
|
60790
60790
|
}
|
|
60791
60791
|
exports2.formatters.o = function(v) {
|
|
60792
60792
|
this.inspectOpts.colors = this.useColors;
|
|
60793
|
-
return
|
|
60793
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
60794
60794
|
return str.trim();
|
|
60795
60795
|
}).join(" ");
|
|
60796
60796
|
};
|
|
60797
60797
|
exports2.formatters.O = function(v) {
|
|
60798
60798
|
this.inspectOpts.colors = this.useColors;
|
|
60799
|
-
return
|
|
60799
|
+
return util542.inspect(v, this.inspectOpts);
|
|
60800
60800
|
};
|
|
60801
60801
|
function formatArgs(args) {
|
|
60802
60802
|
var name = this.namespace;
|
|
@@ -60811,7 +60811,7 @@ var require_node6 = __commonJS2({
|
|
|
60811
60811
|
}
|
|
60812
60812
|
}
|
|
60813
60813
|
function log() {
|
|
60814
|
-
return stream4.write(
|
|
60814
|
+
return stream4.write(util542.format.apply(util542, arguments) + "\n");
|
|
60815
60815
|
}
|
|
60816
60816
|
function save(namespaces) {
|
|
60817
60817
|
if (null == namespaces) {
|
|
@@ -63037,7 +63037,7 @@ var require_node7 = __commonJS2({
|
|
|
63037
63037
|
"node_modules/send/node_modules/debug/src/node.js"(exports2, module2) {
|
|
63038
63038
|
"use strict";
|
|
63039
63039
|
var tty2 = __require2("tty");
|
|
63040
|
-
var
|
|
63040
|
+
var util542 = __require2("util");
|
|
63041
63041
|
exports2 = module2.exports = require_debug7();
|
|
63042
63042
|
exports2.init = init;
|
|
63043
63043
|
exports2.log = log;
|
|
@@ -63062,7 +63062,7 @@ var require_node7 = __commonJS2({
|
|
|
63062
63062
|
}, {});
|
|
63063
63063
|
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
63064
63064
|
if (1 !== fd && 2 !== fd) {
|
|
63065
|
-
|
|
63065
|
+
util542.deprecate(function() {
|
|
63066
63066
|
}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
63067
63067
|
}
|
|
63068
63068
|
var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
|
|
@@ -63071,13 +63071,13 @@ var require_node7 = __commonJS2({
|
|
|
63071
63071
|
}
|
|
63072
63072
|
exports2.formatters.o = function(v) {
|
|
63073
63073
|
this.inspectOpts.colors = this.useColors;
|
|
63074
|
-
return
|
|
63074
|
+
return util542.inspect(v, this.inspectOpts).split("\n").map(function(str) {
|
|
63075
63075
|
return str.trim();
|
|
63076
63076
|
}).join(" ");
|
|
63077
63077
|
};
|
|
63078
63078
|
exports2.formatters.O = function(v) {
|
|
63079
63079
|
this.inspectOpts.colors = this.useColors;
|
|
63080
|
-
return
|
|
63080
|
+
return util542.inspect(v, this.inspectOpts);
|
|
63081
63081
|
};
|
|
63082
63082
|
function formatArgs(args) {
|
|
63083
63083
|
var name = this.namespace;
|
|
@@ -63092,7 +63092,7 @@ var require_node7 = __commonJS2({
|
|
|
63092
63092
|
}
|
|
63093
63093
|
}
|
|
63094
63094
|
function log() {
|
|
63095
|
-
return stream4.write(
|
|
63095
|
+
return stream4.write(util542.format.apply(util542, arguments) + "\n");
|
|
63096
63096
|
}
|
|
63097
63097
|
function save(namespaces) {
|
|
63098
63098
|
if (null == namespaces) {
|
|
@@ -63441,7 +63441,7 @@ var require_send = __commonJS2({
|
|
|
63441
63441
|
var path52 = __require2("path");
|
|
63442
63442
|
var statuses = require_statuses();
|
|
63443
63443
|
var Stream = __require2("stream");
|
|
63444
|
-
var
|
|
63444
|
+
var util542 = __require2("util");
|
|
63445
63445
|
var extname2 = path52.extname;
|
|
63446
63446
|
var join22 = path52.join;
|
|
63447
63447
|
var normalize2 = path52.normalize;
|
|
@@ -63487,7 +63487,7 @@ var require_send = __commonJS2({
|
|
|
63487
63487
|
this.from(opts.from);
|
|
63488
63488
|
}
|
|
63489
63489
|
}
|
|
63490
|
-
|
|
63490
|
+
util542.inherits(SendStream, Stream);
|
|
63491
63491
|
SendStream.prototype.etag = deprecate.function(function etag2(val) {
|
|
63492
63492
|
this._etag = Boolean(val);
|
|
63493
63493
|
debug22("etag %s", this._etag);
|
|
@@ -66871,7 +66871,7 @@ var require_lib7 = __commonJS2({
|
|
|
66871
66871
|
process.exit(1);
|
|
66872
66872
|
});
|
|
66873
66873
|
});
|
|
66874
|
-
function
|
|
66874
|
+
function isFunction6(functionToCheck) {
|
|
66875
66875
|
let getType = Object.prototype.toString.call(functionToCheck);
|
|
66876
66876
|
return /^\[object\s([a-zA-Z]+)?Function\]$/.test(getType);
|
|
66877
66877
|
}
|
|
@@ -66978,7 +66978,7 @@ var require_lib7 = __commonJS2({
|
|
|
66978
66978
|
function finalHandler() {
|
|
66979
66979
|
if (!finalRun) {
|
|
66980
66980
|
finalRun = true;
|
|
66981
|
-
if (options.finally &&
|
|
66981
|
+
if (options.finally && isFunction6(options.finally)) {
|
|
66982
66982
|
debug22("executing finally()");
|
|
66983
66983
|
options.finally();
|
|
66984
66984
|
}
|
|
@@ -67059,7 +67059,7 @@ var require_common4 = __commonJS2({
|
|
|
67059
67059
|
var debug22 = require_src()("nock.common");
|
|
67060
67060
|
var timers2 = __require2("timers");
|
|
67061
67061
|
var url5 = __require2("url");
|
|
67062
|
-
var
|
|
67062
|
+
var util542 = __require2("util");
|
|
67063
67063
|
function normalizeRequestOptions2(options) {
|
|
67064
67064
|
options.proto = options.proto || "http";
|
|
67065
67065
|
options.port = options.port || (options.proto === "http" ? 80 : 443);
|
|
@@ -67206,7 +67206,7 @@ var require_common4 = __commonJS2({
|
|
|
67206
67206
|
}
|
|
67207
67207
|
return [...headers2];
|
|
67208
67208
|
}
|
|
67209
|
-
if (
|
|
67209
|
+
if (util542.types.isMap(headers2)) {
|
|
67210
67210
|
return [].concat(...Array.from(headers2, ([k2, v]) => [k2.toString(), v]));
|
|
67211
67211
|
}
|
|
67212
67212
|
if (isPlainObject4(headers2)) {
|
|
@@ -67699,7 +67699,7 @@ var require_playback_interceptor = __commonJS2({
|
|
|
67699
67699
|
"node_modules/nock/lib/playback_interceptor.js"(exports2, module2) {
|
|
67700
67700
|
"use strict";
|
|
67701
67701
|
var stream4 = __require2("stream");
|
|
67702
|
-
var
|
|
67702
|
+
var util542 = __require2("util");
|
|
67703
67703
|
var zlib2 = __require2("zlib");
|
|
67704
67704
|
var debug22 = require_src()("nock.playback_interceptor");
|
|
67705
67705
|
var common2 = require_common4();
|
|
@@ -67810,7 +67810,7 @@ var require_playback_interceptor = __commonJS2({
|
|
|
67810
67810
|
const parsedRequestBody = parseJSONRequestBody(req, requestBodyString);
|
|
67811
67811
|
let fn = interceptor.replyFunction;
|
|
67812
67812
|
if (fn.length === 3) {
|
|
67813
|
-
fn =
|
|
67813
|
+
fn = util542.promisify(fn);
|
|
67814
67814
|
}
|
|
67815
67815
|
Promise.resolve(fn.call(interceptor, options.path, parsedRequestBody)).then(continueWithResponseBody).catch((err) => req.destroy(err));
|
|
67816
67816
|
return;
|
|
@@ -67819,7 +67819,7 @@ var require_playback_interceptor = __commonJS2({
|
|
|
67819
67819
|
const parsedRequestBody = parseJSONRequestBody(req, requestBodyString);
|
|
67820
67820
|
let fn = interceptor.fullReplyFunction;
|
|
67821
67821
|
if (fn.length === 3) {
|
|
67822
|
-
fn =
|
|
67822
|
+
fn = util542.promisify(fn);
|
|
67823
67823
|
}
|
|
67824
67824
|
Promise.resolve(fn.call(interceptor, options.path, parsedRequestBody)).then(continueWithFullResponse).catch((err) => req.destroy(err));
|
|
67825
67825
|
return;
|
|
@@ -69912,15 +69912,15 @@ var require_replaceall_min = __commonJS2({
|
|
|
69912
69912
|
var require_es6_promise = __commonJS2({
|
|
69913
69913
|
"node_modules/es6-promise/dist/es6-promise.js"(exports2, module2) {
|
|
69914
69914
|
"use strict";
|
|
69915
|
-
(function(global2,
|
|
69916
|
-
typeof exports2 === "object" && typeof module2 !== "undefined" ? module2.exports =
|
|
69915
|
+
(function(global2, factory2) {
|
|
69916
|
+
typeof exports2 === "object" && typeof module2 !== "undefined" ? module2.exports = factory2() : typeof define === "function" && define.amd ? define(factory2) : global2.ES6Promise = factory2();
|
|
69917
69917
|
})(exports2, (function() {
|
|
69918
69918
|
"use strict";
|
|
69919
69919
|
function objectOrFunction(x) {
|
|
69920
69920
|
var type = typeof x;
|
|
69921
69921
|
return x !== null && (type === "object" || type === "function");
|
|
69922
69922
|
}
|
|
69923
|
-
function
|
|
69923
|
+
function isFunction6(x) {
|
|
69924
69924
|
return typeof x === "function";
|
|
69925
69925
|
}
|
|
69926
69926
|
var _isArray7 = void 0;
|
|
@@ -70115,7 +70115,7 @@ var require_es6_promise = __commonJS2({
|
|
|
70115
70115
|
} else {
|
|
70116
70116
|
if (then$$1 === void 0) {
|
|
70117
70117
|
fulfill(promise5, maybeThenable);
|
|
70118
|
-
} else if (
|
|
70118
|
+
} else if (isFunction6(then$$1)) {
|
|
70119
70119
|
handleForeignThenable(promise5, maybeThenable, then$$1);
|
|
70120
70120
|
} else {
|
|
70121
70121
|
fulfill(promise5, maybeThenable);
|
|
@@ -70192,7 +70192,7 @@ var require_es6_promise = __commonJS2({
|
|
|
70192
70192
|
promise5._subscribers.length = 0;
|
|
70193
70193
|
}
|
|
70194
70194
|
function invokeCallback(settled, promise5, callback, detail) {
|
|
70195
|
-
var hasCallback =
|
|
70195
|
+
var hasCallback = isFunction6(callback), value = void 0, error2 = void 0, succeeded = true;
|
|
70196
70196
|
if (hasCallback) {
|
|
70197
70197
|
try {
|
|
70198
70198
|
value = callback(detail);
|
|
@@ -70376,7 +70376,7 @@ var require_es6_promise = __commonJS2({
|
|
|
70376
70376
|
Promise6.prototype.finally = function _finally(callback) {
|
|
70377
70377
|
var promise5 = this;
|
|
70378
70378
|
var constructor = promise5.constructor;
|
|
70379
|
-
if (
|
|
70379
|
+
if (isFunction6(callback)) {
|
|
70380
70380
|
return promise5.then(function(value) {
|
|
70381
70381
|
return constructor.resolve(callback()).then(function() {
|
|
70382
70382
|
return value;
|
|
@@ -70594,14 +70594,14 @@ var require_isFunction = __commonJS2({
|
|
|
70594
70594
|
var funcTag4 = "[object Function]";
|
|
70595
70595
|
var genTag4 = "[object GeneratorFunction]";
|
|
70596
70596
|
var proxyTag3 = "[object Proxy]";
|
|
70597
|
-
function
|
|
70597
|
+
function isFunction6(value) {
|
|
70598
70598
|
if (!isObject5(value)) {
|
|
70599
70599
|
return false;
|
|
70600
70600
|
}
|
|
70601
70601
|
var tag = baseGetTag3(value);
|
|
70602
70602
|
return tag == funcTag4 || tag == genTag4 || tag == asyncTag3 || tag == proxyTag3;
|
|
70603
70603
|
}
|
|
70604
|
-
module2.exports =
|
|
70604
|
+
module2.exports = isFunction6;
|
|
70605
70605
|
}
|
|
70606
70606
|
});
|
|
70607
70607
|
var require_coreJsData = __commonJS2({
|
|
@@ -70650,7 +70650,7 @@ var require_toSource = __commonJS2({
|
|
|
70650
70650
|
var require_baseIsNative = __commonJS2({
|
|
70651
70651
|
"node_modules/lodash/_baseIsNative.js"(exports2, module2) {
|
|
70652
70652
|
"use strict";
|
|
70653
|
-
var
|
|
70653
|
+
var isFunction6 = require_isFunction();
|
|
70654
70654
|
var isMasked4 = require_isMasked();
|
|
70655
70655
|
var isObject5 = require_isObject();
|
|
70656
70656
|
var toSource4 = require_toSource();
|
|
@@ -70667,7 +70667,7 @@ var require_baseIsNative = __commonJS2({
|
|
|
70667
70667
|
if (!isObject5(value) || isMasked4(value)) {
|
|
70668
70668
|
return false;
|
|
70669
70669
|
}
|
|
70670
|
-
var pattern =
|
|
70670
|
+
var pattern = isFunction6(value) ? reIsNative4 : reIsHostCtor4;
|
|
70671
70671
|
return pattern.test(toSource4(value));
|
|
70672
70672
|
}
|
|
70673
70673
|
module2.exports = baseIsNative4;
|
|
@@ -72380,10 +72380,10 @@ var require_isLength = __commonJS2({
|
|
|
72380
72380
|
var require_isArrayLike = __commonJS2({
|
|
72381
72381
|
"node_modules/lodash/isArrayLike.js"(exports2, module2) {
|
|
72382
72382
|
"use strict";
|
|
72383
|
-
var
|
|
72383
|
+
var isFunction6 = require_isFunction();
|
|
72384
72384
|
var isLength2 = require_isLength();
|
|
72385
72385
|
function isArrayLike2(value) {
|
|
72386
|
-
return value != null && isLength2(value.length) && !
|
|
72386
|
+
return value != null && isLength2(value.length) && !isFunction6(value);
|
|
72387
72387
|
}
|
|
72388
72388
|
module2.exports = isArrayLike2;
|
|
72389
72389
|
}
|
|
@@ -72700,7 +72700,7 @@ var require_baseMergeDeep = __commonJS2({
|
|
|
72700
72700
|
var isArray14 = require_isArray();
|
|
72701
72701
|
var isArrayLikeObject2 = require_isArrayLikeObject();
|
|
72702
72702
|
var isBuffer3 = require_isBuffer();
|
|
72703
|
-
var
|
|
72703
|
+
var isFunction6 = require_isFunction();
|
|
72704
72704
|
var isObject5 = require_isObject();
|
|
72705
72705
|
var isPlainObject4 = require_isPlainObject();
|
|
72706
72706
|
var isTypedArray3 = require_isTypedArray();
|
|
@@ -72735,7 +72735,7 @@ var require_baseMergeDeep = __commonJS2({
|
|
|
72735
72735
|
newValue = objValue;
|
|
72736
72736
|
if (isArguments2(objValue)) {
|
|
72737
72737
|
newValue = toPlainObject2(objValue);
|
|
72738
|
-
} else if (!isObject5(objValue) ||
|
|
72738
|
+
} else if (!isObject5(objValue) || isFunction6(objValue)) {
|
|
72739
72739
|
newValue = initCloneObject2(srcValue);
|
|
72740
72740
|
}
|
|
72741
72741
|
} else {
|
|
@@ -73017,27 +73017,27 @@ var require_util4 = __commonJS2({
|
|
|
73017
73017
|
"use strict";
|
|
73018
73018
|
var forge = require_forge();
|
|
73019
73019
|
var baseN = require_baseN();
|
|
73020
|
-
var
|
|
73020
|
+
var util542 = module2.exports = forge.util = forge.util || {};
|
|
73021
73021
|
(function() {
|
|
73022
73022
|
if (typeof process !== "undefined" && process.nextTick && !process.browser) {
|
|
73023
|
-
|
|
73023
|
+
util542.nextTick = process.nextTick;
|
|
73024
73024
|
if (typeof setImmediate === "function") {
|
|
73025
|
-
|
|
73025
|
+
util542.setImmediate = setImmediate;
|
|
73026
73026
|
} else {
|
|
73027
|
-
|
|
73027
|
+
util542.setImmediate = util542.nextTick;
|
|
73028
73028
|
}
|
|
73029
73029
|
return;
|
|
73030
73030
|
}
|
|
73031
73031
|
if (typeof setImmediate === "function") {
|
|
73032
|
-
|
|
73032
|
+
util542.setImmediate = function() {
|
|
73033
73033
|
return setImmediate.apply(void 0, arguments);
|
|
73034
73034
|
};
|
|
73035
|
-
|
|
73035
|
+
util542.nextTick = function(callback) {
|
|
73036
73036
|
return setImmediate(callback);
|
|
73037
73037
|
};
|
|
73038
73038
|
return;
|
|
73039
73039
|
}
|
|
73040
|
-
|
|
73040
|
+
util542.setImmediate = function(callback) {
|
|
73041
73041
|
setTimeout(callback, 0);
|
|
73042
73042
|
};
|
|
73043
73043
|
if (typeof window !== "undefined" && typeof window.postMessage === "function") {
|
|
@@ -73054,7 +73054,7 @@ var require_util4 = __commonJS2({
|
|
|
73054
73054
|
var handler = handler2;
|
|
73055
73055
|
var msg = "forge.setImmediate";
|
|
73056
73056
|
var callbacks = [];
|
|
73057
|
-
|
|
73057
|
+
util542.setImmediate = function(callback) {
|
|
73058
73058
|
callbacks.push(callback);
|
|
73059
73059
|
if (callbacks.length === 1) {
|
|
73060
73060
|
window.postMessage(msg, "*");
|
|
@@ -73074,8 +73074,8 @@ var require_util4 = __commonJS2({
|
|
|
73074
73074
|
callback();
|
|
73075
73075
|
});
|
|
73076
73076
|
}).observe(div, { attributes: true });
|
|
73077
|
-
var oldSetImmediate =
|
|
73078
|
-
|
|
73077
|
+
var oldSetImmediate = util542.setImmediate;
|
|
73078
|
+
util542.setImmediate = function(callback) {
|
|
73079
73079
|
if (Date.now() - now > 15) {
|
|
73080
73080
|
now = Date.now();
|
|
73081
73081
|
oldSetImmediate(callback);
|
|
@@ -73087,36 +73087,36 @@ var require_util4 = __commonJS2({
|
|
|
73087
73087
|
}
|
|
73088
73088
|
};
|
|
73089
73089
|
}
|
|
73090
|
-
|
|
73090
|
+
util542.nextTick = util542.setImmediate;
|
|
73091
73091
|
})();
|
|
73092
|
-
|
|
73093
|
-
|
|
73094
|
-
if (
|
|
73092
|
+
util542.isNodejs = typeof process !== "undefined" && process.versions && process.versions.node;
|
|
73093
|
+
util542.globalScope = (function() {
|
|
73094
|
+
if (util542.isNodejs) {
|
|
73095
73095
|
return global;
|
|
73096
73096
|
}
|
|
73097
73097
|
return typeof self === "undefined" ? window : self;
|
|
73098
73098
|
})();
|
|
73099
|
-
|
|
73099
|
+
util542.isArray = Array.isArray || function(x) {
|
|
73100
73100
|
return Object.prototype.toString.call(x) === "[object Array]";
|
|
73101
73101
|
};
|
|
73102
|
-
|
|
73102
|
+
util542.isArrayBuffer = function(x) {
|
|
73103
73103
|
return typeof ArrayBuffer !== "undefined" && x instanceof ArrayBuffer;
|
|
73104
73104
|
};
|
|
73105
|
-
|
|
73106
|
-
return x &&
|
|
73105
|
+
util542.isArrayBufferView = function(x) {
|
|
73106
|
+
return x && util542.isArrayBuffer(x.buffer) && x.byteLength !== void 0;
|
|
73107
73107
|
};
|
|
73108
73108
|
function _checkBitsParam(n) {
|
|
73109
73109
|
if (!(n === 8 || n === 16 || n === 24 || n === 32)) {
|
|
73110
73110
|
throw new Error("Only 8, 16, 24, or 32 bits supported: " + n);
|
|
73111
73111
|
}
|
|
73112
73112
|
}
|
|
73113
|
-
|
|
73113
|
+
util542.ByteBuffer = ByteStringBuffer;
|
|
73114
73114
|
function ByteStringBuffer(b) {
|
|
73115
73115
|
this.data = "";
|
|
73116
73116
|
this.read = 0;
|
|
73117
73117
|
if (typeof b === "string") {
|
|
73118
73118
|
this.data = b;
|
|
73119
|
-
} else if (
|
|
73119
|
+
} else if (util542.isArrayBuffer(b) || util542.isArrayBufferView(b)) {
|
|
73120
73120
|
if (typeof Buffer !== "undefined" && b instanceof Buffer) {
|
|
73121
73121
|
this.data = b.toString("binary");
|
|
73122
73122
|
} else {
|
|
@@ -73135,25 +73135,25 @@ var require_util4 = __commonJS2({
|
|
|
73135
73135
|
}
|
|
73136
73136
|
this._constructedStringLength = 0;
|
|
73137
73137
|
}
|
|
73138
|
-
|
|
73138
|
+
util542.ByteStringBuffer = ByteStringBuffer;
|
|
73139
73139
|
var _MAX_CONSTRUCTED_STRING_LENGTH = 4096;
|
|
73140
|
-
|
|
73140
|
+
util542.ByteStringBuffer.prototype._optimizeConstructedString = function(x) {
|
|
73141
73141
|
this._constructedStringLength += x;
|
|
73142
73142
|
if (this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) {
|
|
73143
73143
|
this.data.substr(0, 1);
|
|
73144
73144
|
this._constructedStringLength = 0;
|
|
73145
73145
|
}
|
|
73146
73146
|
};
|
|
73147
|
-
|
|
73147
|
+
util542.ByteStringBuffer.prototype.length = function() {
|
|
73148
73148
|
return this.data.length - this.read;
|
|
73149
73149
|
};
|
|
73150
|
-
|
|
73150
|
+
util542.ByteStringBuffer.prototype.isEmpty = function() {
|
|
73151
73151
|
return this.length() <= 0;
|
|
73152
73152
|
};
|
|
73153
|
-
|
|
73153
|
+
util542.ByteStringBuffer.prototype.putByte = function(b) {
|
|
73154
73154
|
return this.putBytes(String.fromCharCode(b));
|
|
73155
73155
|
};
|
|
73156
|
-
|
|
73156
|
+
util542.ByteStringBuffer.prototype.fillWithByte = function(b, n) {
|
|
73157
73157
|
b = String.fromCharCode(b);
|
|
73158
73158
|
var d2 = this.data;
|
|
73159
73159
|
while (n > 0) {
|
|
@@ -73169,45 +73169,45 @@ var require_util4 = __commonJS2({
|
|
|
73169
73169
|
this._optimizeConstructedString(n);
|
|
73170
73170
|
return this;
|
|
73171
73171
|
};
|
|
73172
|
-
|
|
73172
|
+
util542.ByteStringBuffer.prototype.putBytes = function(bytes) {
|
|
73173
73173
|
this.data += bytes;
|
|
73174
73174
|
this._optimizeConstructedString(bytes.length);
|
|
73175
73175
|
return this;
|
|
73176
73176
|
};
|
|
73177
|
-
|
|
73178
|
-
return this.putBytes(
|
|
73177
|
+
util542.ByteStringBuffer.prototype.putString = function(str) {
|
|
73178
|
+
return this.putBytes(util542.encodeUtf8(str));
|
|
73179
73179
|
};
|
|
73180
|
-
|
|
73180
|
+
util542.ByteStringBuffer.prototype.putInt16 = function(i2) {
|
|
73181
73181
|
return this.putBytes(
|
|
73182
73182
|
String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
|
|
73183
73183
|
);
|
|
73184
73184
|
};
|
|
73185
|
-
|
|
73185
|
+
util542.ByteStringBuffer.prototype.putInt24 = function(i2) {
|
|
73186
73186
|
return this.putBytes(
|
|
73187
73187
|
String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
|
|
73188
73188
|
);
|
|
73189
73189
|
};
|
|
73190
|
-
|
|
73190
|
+
util542.ByteStringBuffer.prototype.putInt32 = function(i2) {
|
|
73191
73191
|
return this.putBytes(
|
|
73192
73192
|
String.fromCharCode(i2 >> 24 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
|
|
73193
73193
|
);
|
|
73194
73194
|
};
|
|
73195
|
-
|
|
73195
|
+
util542.ByteStringBuffer.prototype.putInt16Le = function(i2) {
|
|
73196
73196
|
return this.putBytes(
|
|
73197
73197
|
String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255)
|
|
73198
73198
|
);
|
|
73199
73199
|
};
|
|
73200
|
-
|
|
73200
|
+
util542.ByteStringBuffer.prototype.putInt24Le = function(i2) {
|
|
73201
73201
|
return this.putBytes(
|
|
73202
73202
|
String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 >> 16 & 255)
|
|
73203
73203
|
);
|
|
73204
73204
|
};
|
|
73205
|
-
|
|
73205
|
+
util542.ByteStringBuffer.prototype.putInt32Le = function(i2) {
|
|
73206
73206
|
return this.putBytes(
|
|
73207
73207
|
String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 24 & 255)
|
|
73208
73208
|
);
|
|
73209
73209
|
};
|
|
73210
|
-
|
|
73210
|
+
util542.ByteStringBuffer.prototype.putInt = function(i2, n) {
|
|
73211
73211
|
_checkBitsParam(n);
|
|
73212
73212
|
var bytes = "";
|
|
73213
73213
|
do {
|
|
@@ -73216,49 +73216,49 @@ var require_util4 = __commonJS2({
|
|
|
73216
73216
|
} while (n > 0);
|
|
73217
73217
|
return this.putBytes(bytes);
|
|
73218
73218
|
};
|
|
73219
|
-
|
|
73219
|
+
util542.ByteStringBuffer.prototype.putSignedInt = function(i2, n) {
|
|
73220
73220
|
if (i2 < 0) {
|
|
73221
73221
|
i2 += 2 << n - 1;
|
|
73222
73222
|
}
|
|
73223
73223
|
return this.putInt(i2, n);
|
|
73224
73224
|
};
|
|
73225
|
-
|
|
73225
|
+
util542.ByteStringBuffer.prototype.putBuffer = function(buffer) {
|
|
73226
73226
|
return this.putBytes(buffer.getBytes());
|
|
73227
73227
|
};
|
|
73228
|
-
|
|
73228
|
+
util542.ByteStringBuffer.prototype.getByte = function() {
|
|
73229
73229
|
return this.data.charCodeAt(this.read++);
|
|
73230
73230
|
};
|
|
73231
|
-
|
|
73231
|
+
util542.ByteStringBuffer.prototype.getInt16 = function() {
|
|
73232
73232
|
var rval = this.data.charCodeAt(this.read) << 8 ^ this.data.charCodeAt(this.read + 1);
|
|
73233
73233
|
this.read += 2;
|
|
73234
73234
|
return rval;
|
|
73235
73235
|
};
|
|
73236
|
-
|
|
73236
|
+
util542.ByteStringBuffer.prototype.getInt24 = function() {
|
|
73237
73237
|
var rval = this.data.charCodeAt(this.read) << 16 ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2);
|
|
73238
73238
|
this.read += 3;
|
|
73239
73239
|
return rval;
|
|
73240
73240
|
};
|
|
73241
|
-
|
|
73241
|
+
util542.ByteStringBuffer.prototype.getInt32 = function() {
|
|
73242
73242
|
var rval = this.data.charCodeAt(this.read) << 24 ^ this.data.charCodeAt(this.read + 1) << 16 ^ this.data.charCodeAt(this.read + 2) << 8 ^ this.data.charCodeAt(this.read + 3);
|
|
73243
73243
|
this.read += 4;
|
|
73244
73244
|
return rval;
|
|
73245
73245
|
};
|
|
73246
|
-
|
|
73246
|
+
util542.ByteStringBuffer.prototype.getInt16Le = function() {
|
|
73247
73247
|
var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8;
|
|
73248
73248
|
this.read += 2;
|
|
73249
73249
|
return rval;
|
|
73250
73250
|
};
|
|
73251
|
-
|
|
73251
|
+
util542.ByteStringBuffer.prototype.getInt24Le = function() {
|
|
73252
73252
|
var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2) << 16;
|
|
73253
73253
|
this.read += 3;
|
|
73254
73254
|
return rval;
|
|
73255
73255
|
};
|
|
73256
|
-
|
|
73256
|
+
util542.ByteStringBuffer.prototype.getInt32Le = function() {
|
|
73257
73257
|
var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2) << 16 ^ this.data.charCodeAt(this.read + 3) << 24;
|
|
73258
73258
|
this.read += 4;
|
|
73259
73259
|
return rval;
|
|
73260
73260
|
};
|
|
73261
|
-
|
|
73261
|
+
util542.ByteStringBuffer.prototype.getInt = function(n) {
|
|
73262
73262
|
_checkBitsParam(n);
|
|
73263
73263
|
var rval = 0;
|
|
73264
73264
|
do {
|
|
@@ -73267,7 +73267,7 @@ var require_util4 = __commonJS2({
|
|
|
73267
73267
|
} while (n > 0);
|
|
73268
73268
|
return rval;
|
|
73269
73269
|
};
|
|
73270
|
-
|
|
73270
|
+
util542.ByteStringBuffer.prototype.getSignedInt = function(n) {
|
|
73271
73271
|
var x = this.getInt(n);
|
|
73272
73272
|
var max7 = 2 << n - 2;
|
|
73273
73273
|
if (x >= max7) {
|
|
@@ -73275,7 +73275,7 @@ var require_util4 = __commonJS2({
|
|
|
73275
73275
|
}
|
|
73276
73276
|
return x;
|
|
73277
73277
|
};
|
|
73278
|
-
|
|
73278
|
+
util542.ByteStringBuffer.prototype.getBytes = function(count) {
|
|
73279
73279
|
var rval;
|
|
73280
73280
|
if (count) {
|
|
73281
73281
|
count = Math.min(this.length(), count);
|
|
@@ -73289,43 +73289,43 @@ var require_util4 = __commonJS2({
|
|
|
73289
73289
|
}
|
|
73290
73290
|
return rval;
|
|
73291
73291
|
};
|
|
73292
|
-
|
|
73292
|
+
util542.ByteStringBuffer.prototype.bytes = function(count) {
|
|
73293
73293
|
return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count);
|
|
73294
73294
|
};
|
|
73295
|
-
|
|
73295
|
+
util542.ByteStringBuffer.prototype.at = function(i2) {
|
|
73296
73296
|
return this.data.charCodeAt(this.read + i2);
|
|
73297
73297
|
};
|
|
73298
|
-
|
|
73298
|
+
util542.ByteStringBuffer.prototype.setAt = function(i2, b) {
|
|
73299
73299
|
this.data = this.data.substr(0, this.read + i2) + String.fromCharCode(b) + this.data.substr(this.read + i2 + 1);
|
|
73300
73300
|
return this;
|
|
73301
73301
|
};
|
|
73302
|
-
|
|
73302
|
+
util542.ByteStringBuffer.prototype.last = function() {
|
|
73303
73303
|
return this.data.charCodeAt(this.data.length - 1);
|
|
73304
73304
|
};
|
|
73305
|
-
|
|
73306
|
-
var c =
|
|
73305
|
+
util542.ByteStringBuffer.prototype.copy = function() {
|
|
73306
|
+
var c = util542.createBuffer(this.data);
|
|
73307
73307
|
c.read = this.read;
|
|
73308
73308
|
return c;
|
|
73309
73309
|
};
|
|
73310
|
-
|
|
73310
|
+
util542.ByteStringBuffer.prototype.compact = function() {
|
|
73311
73311
|
if (this.read > 0) {
|
|
73312
73312
|
this.data = this.data.slice(this.read);
|
|
73313
73313
|
this.read = 0;
|
|
73314
73314
|
}
|
|
73315
73315
|
return this;
|
|
73316
73316
|
};
|
|
73317
|
-
|
|
73317
|
+
util542.ByteStringBuffer.prototype.clear = function() {
|
|
73318
73318
|
this.data = "";
|
|
73319
73319
|
this.read = 0;
|
|
73320
73320
|
return this;
|
|
73321
73321
|
};
|
|
73322
|
-
|
|
73322
|
+
util542.ByteStringBuffer.prototype.truncate = function(count) {
|
|
73323
73323
|
var len = Math.max(0, this.length() - count);
|
|
73324
73324
|
this.data = this.data.substr(this.read, len);
|
|
73325
73325
|
this.read = 0;
|
|
73326
73326
|
return this;
|
|
73327
73327
|
};
|
|
73328
|
-
|
|
73328
|
+
util542.ByteStringBuffer.prototype.toHex = function() {
|
|
73329
73329
|
var rval = "";
|
|
73330
73330
|
for (var i2 = this.read; i2 < this.data.length; ++i2) {
|
|
73331
73331
|
var b = this.data.charCodeAt(i2);
|
|
@@ -73336,15 +73336,15 @@ var require_util4 = __commonJS2({
|
|
|
73336
73336
|
}
|
|
73337
73337
|
return rval;
|
|
73338
73338
|
};
|
|
73339
|
-
|
|
73340
|
-
return
|
|
73339
|
+
util542.ByteStringBuffer.prototype.toString = function() {
|
|
73340
|
+
return util542.decodeUtf8(this.bytes());
|
|
73341
73341
|
};
|
|
73342
73342
|
function DataBuffer(b, options) {
|
|
73343
73343
|
options = options || {};
|
|
73344
73344
|
this.read = options.readOffset || 0;
|
|
73345
73345
|
this.growSize = options.growSize || 1024;
|
|
73346
|
-
var isArrayBuffer2 =
|
|
73347
|
-
var isArrayBufferView2 =
|
|
73346
|
+
var isArrayBuffer2 = util542.isArrayBuffer(b);
|
|
73347
|
+
var isArrayBufferView2 = util542.isArrayBufferView(b);
|
|
73348
73348
|
if (isArrayBuffer2 || isArrayBufferView2) {
|
|
73349
73349
|
if (isArrayBuffer2) {
|
|
73350
73350
|
this.data = new DataView(b);
|
|
@@ -73363,14 +73363,14 @@ var require_util4 = __commonJS2({
|
|
|
73363
73363
|
this.write = options.writeOffset;
|
|
73364
73364
|
}
|
|
73365
73365
|
}
|
|
73366
|
-
|
|
73367
|
-
|
|
73366
|
+
util542.DataBuffer = DataBuffer;
|
|
73367
|
+
util542.DataBuffer.prototype.length = function() {
|
|
73368
73368
|
return this.write - this.read;
|
|
73369
73369
|
};
|
|
73370
|
-
|
|
73370
|
+
util542.DataBuffer.prototype.isEmpty = function() {
|
|
73371
73371
|
return this.length() <= 0;
|
|
73372
73372
|
};
|
|
73373
|
-
|
|
73373
|
+
util542.DataBuffer.prototype.accommodate = function(amount, growSize) {
|
|
73374
73374
|
if (this.length() >= amount) {
|
|
73375
73375
|
return this;
|
|
73376
73376
|
}
|
|
@@ -73385,20 +73385,20 @@ var require_util4 = __commonJS2({
|
|
|
73385
73385
|
this.data = new DataView(dst.buffer);
|
|
73386
73386
|
return this;
|
|
73387
73387
|
};
|
|
73388
|
-
|
|
73388
|
+
util542.DataBuffer.prototype.putByte = function(b) {
|
|
73389
73389
|
this.accommodate(1);
|
|
73390
73390
|
this.data.setUint8(this.write++, b);
|
|
73391
73391
|
return this;
|
|
73392
73392
|
};
|
|
73393
|
-
|
|
73393
|
+
util542.DataBuffer.prototype.fillWithByte = function(b, n) {
|
|
73394
73394
|
this.accommodate(n);
|
|
73395
73395
|
for (var i2 = 0; i2 < n; ++i2) {
|
|
73396
73396
|
this.data.setUint8(b);
|
|
73397
73397
|
}
|
|
73398
73398
|
return this;
|
|
73399
73399
|
};
|
|
73400
|
-
|
|
73401
|
-
if (
|
|
73400
|
+
util542.DataBuffer.prototype.putBytes = function(bytes, encoding) {
|
|
73401
|
+
if (util542.isArrayBufferView(bytes)) {
|
|
73402
73402
|
var src2 = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
73403
73403
|
var len = src2.byteLength - src2.byteOffset;
|
|
73404
73404
|
this.accommodate(len);
|
|
@@ -73407,7 +73407,7 @@ var require_util4 = __commonJS2({
|
|
|
73407
73407
|
this.write += len;
|
|
73408
73408
|
return this;
|
|
73409
73409
|
}
|
|
73410
|
-
if (
|
|
73410
|
+
if (util542.isArrayBuffer(bytes)) {
|
|
73411
73411
|
var src2 = new Uint8Array(bytes);
|
|
73412
73412
|
this.accommodate(src2.byteLength);
|
|
73413
73413
|
var dst = new Uint8Array(this.data.buffer);
|
|
@@ -73415,7 +73415,7 @@ var require_util4 = __commonJS2({
|
|
|
73415
73415
|
this.write += src2.byteLength;
|
|
73416
73416
|
return this;
|
|
73417
73417
|
}
|
|
73418
|
-
if (bytes instanceof
|
|
73418
|
+
if (bytes instanceof util542.DataBuffer || typeof bytes === "object" && typeof bytes.read === "number" && typeof bytes.write === "number" && util542.isArrayBufferView(bytes.data)) {
|
|
73419
73419
|
var src2 = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length());
|
|
73420
73420
|
this.accommodate(src2.byteLength);
|
|
73421
73421
|
var dst = new Uint8Array(bytes.data.byteLength, this.write);
|
|
@@ -73423,7 +73423,7 @@ var require_util4 = __commonJS2({
|
|
|
73423
73423
|
this.write += src2.byteLength;
|
|
73424
73424
|
return this;
|
|
73425
73425
|
}
|
|
73426
|
-
if (bytes instanceof
|
|
73426
|
+
if (bytes instanceof util542.ByteStringBuffer) {
|
|
73427
73427
|
bytes = bytes.data;
|
|
73428
73428
|
encoding = "binary";
|
|
73429
73429
|
}
|
|
@@ -73433,82 +73433,82 @@ var require_util4 = __commonJS2({
|
|
|
73433
73433
|
if (encoding === "hex") {
|
|
73434
73434
|
this.accommodate(Math.ceil(bytes.length / 2));
|
|
73435
73435
|
view = new Uint8Array(this.data.buffer, this.write);
|
|
73436
|
-
this.write +=
|
|
73436
|
+
this.write += util542.binary.hex.decode(bytes, view, this.write);
|
|
73437
73437
|
return this;
|
|
73438
73438
|
}
|
|
73439
73439
|
if (encoding === "base64") {
|
|
73440
73440
|
this.accommodate(Math.ceil(bytes.length / 4) * 3);
|
|
73441
73441
|
view = new Uint8Array(this.data.buffer, this.write);
|
|
73442
|
-
this.write +=
|
|
73442
|
+
this.write += util542.binary.base64.decode(bytes, view, this.write);
|
|
73443
73443
|
return this;
|
|
73444
73444
|
}
|
|
73445
73445
|
if (encoding === "utf8") {
|
|
73446
|
-
bytes =
|
|
73446
|
+
bytes = util542.encodeUtf8(bytes);
|
|
73447
73447
|
encoding = "binary";
|
|
73448
73448
|
}
|
|
73449
73449
|
if (encoding === "binary" || encoding === "raw") {
|
|
73450
73450
|
this.accommodate(bytes.length);
|
|
73451
73451
|
view = new Uint8Array(this.data.buffer, this.write);
|
|
73452
|
-
this.write +=
|
|
73452
|
+
this.write += util542.binary.raw.decode(view);
|
|
73453
73453
|
return this;
|
|
73454
73454
|
}
|
|
73455
73455
|
if (encoding === "utf16") {
|
|
73456
73456
|
this.accommodate(bytes.length * 2);
|
|
73457
73457
|
view = new Uint16Array(this.data.buffer, this.write);
|
|
73458
|
-
this.write +=
|
|
73458
|
+
this.write += util542.text.utf16.encode(view);
|
|
73459
73459
|
return this;
|
|
73460
73460
|
}
|
|
73461
73461
|
throw new Error("Invalid encoding: " + encoding);
|
|
73462
73462
|
}
|
|
73463
73463
|
throw Error("Invalid parameter: " + bytes);
|
|
73464
73464
|
};
|
|
73465
|
-
|
|
73465
|
+
util542.DataBuffer.prototype.putBuffer = function(buffer) {
|
|
73466
73466
|
this.putBytes(buffer);
|
|
73467
73467
|
buffer.clear();
|
|
73468
73468
|
return this;
|
|
73469
73469
|
};
|
|
73470
|
-
|
|
73470
|
+
util542.DataBuffer.prototype.putString = function(str) {
|
|
73471
73471
|
return this.putBytes(str, "utf16");
|
|
73472
73472
|
};
|
|
73473
|
-
|
|
73473
|
+
util542.DataBuffer.prototype.putInt16 = function(i2) {
|
|
73474
73474
|
this.accommodate(2);
|
|
73475
73475
|
this.data.setInt16(this.write, i2);
|
|
73476
73476
|
this.write += 2;
|
|
73477
73477
|
return this;
|
|
73478
73478
|
};
|
|
73479
|
-
|
|
73479
|
+
util542.DataBuffer.prototype.putInt24 = function(i2) {
|
|
73480
73480
|
this.accommodate(3);
|
|
73481
73481
|
this.data.setInt16(this.write, i2 >> 8 & 65535);
|
|
73482
73482
|
this.data.setInt8(this.write, i2 >> 16 & 255);
|
|
73483
73483
|
this.write += 3;
|
|
73484
73484
|
return this;
|
|
73485
73485
|
};
|
|
73486
|
-
|
|
73486
|
+
util542.DataBuffer.prototype.putInt32 = function(i2) {
|
|
73487
73487
|
this.accommodate(4);
|
|
73488
73488
|
this.data.setInt32(this.write, i2);
|
|
73489
73489
|
this.write += 4;
|
|
73490
73490
|
return this;
|
|
73491
73491
|
};
|
|
73492
|
-
|
|
73492
|
+
util542.DataBuffer.prototype.putInt16Le = function(i2) {
|
|
73493
73493
|
this.accommodate(2);
|
|
73494
73494
|
this.data.setInt16(this.write, i2, true);
|
|
73495
73495
|
this.write += 2;
|
|
73496
73496
|
return this;
|
|
73497
73497
|
};
|
|
73498
|
-
|
|
73498
|
+
util542.DataBuffer.prototype.putInt24Le = function(i2) {
|
|
73499
73499
|
this.accommodate(3);
|
|
73500
73500
|
this.data.setInt8(this.write, i2 >> 16 & 255);
|
|
73501
73501
|
this.data.setInt16(this.write, i2 >> 8 & 65535, true);
|
|
73502
73502
|
this.write += 3;
|
|
73503
73503
|
return this;
|
|
73504
73504
|
};
|
|
73505
|
-
|
|
73505
|
+
util542.DataBuffer.prototype.putInt32Le = function(i2) {
|
|
73506
73506
|
this.accommodate(4);
|
|
73507
73507
|
this.data.setInt32(this.write, i2, true);
|
|
73508
73508
|
this.write += 4;
|
|
73509
73509
|
return this;
|
|
73510
73510
|
};
|
|
73511
|
-
|
|
73511
|
+
util542.DataBuffer.prototype.putInt = function(i2, n) {
|
|
73512
73512
|
_checkBitsParam(n);
|
|
73513
73513
|
this.accommodate(n / 8);
|
|
73514
73514
|
do {
|
|
@@ -73517,7 +73517,7 @@ var require_util4 = __commonJS2({
|
|
|
73517
73517
|
} while (n > 0);
|
|
73518
73518
|
return this;
|
|
73519
73519
|
};
|
|
73520
|
-
|
|
73520
|
+
util542.DataBuffer.prototype.putSignedInt = function(i2, n) {
|
|
73521
73521
|
_checkBitsParam(n);
|
|
73522
73522
|
this.accommodate(n / 8);
|
|
73523
73523
|
if (i2 < 0) {
|
|
@@ -73525,40 +73525,40 @@ var require_util4 = __commonJS2({
|
|
|
73525
73525
|
}
|
|
73526
73526
|
return this.putInt(i2, n);
|
|
73527
73527
|
};
|
|
73528
|
-
|
|
73528
|
+
util542.DataBuffer.prototype.getByte = function() {
|
|
73529
73529
|
return this.data.getInt8(this.read++);
|
|
73530
73530
|
};
|
|
73531
|
-
|
|
73531
|
+
util542.DataBuffer.prototype.getInt16 = function() {
|
|
73532
73532
|
var rval = this.data.getInt16(this.read);
|
|
73533
73533
|
this.read += 2;
|
|
73534
73534
|
return rval;
|
|
73535
73535
|
};
|
|
73536
|
-
|
|
73536
|
+
util542.DataBuffer.prototype.getInt24 = function() {
|
|
73537
73537
|
var rval = this.data.getInt16(this.read) << 8 ^ this.data.getInt8(this.read + 2);
|
|
73538
73538
|
this.read += 3;
|
|
73539
73539
|
return rval;
|
|
73540
73540
|
};
|
|
73541
|
-
|
|
73541
|
+
util542.DataBuffer.prototype.getInt32 = function() {
|
|
73542
73542
|
var rval = this.data.getInt32(this.read);
|
|
73543
73543
|
this.read += 4;
|
|
73544
73544
|
return rval;
|
|
73545
73545
|
};
|
|
73546
|
-
|
|
73546
|
+
util542.DataBuffer.prototype.getInt16Le = function() {
|
|
73547
73547
|
var rval = this.data.getInt16(this.read, true);
|
|
73548
73548
|
this.read += 2;
|
|
73549
73549
|
return rval;
|
|
73550
73550
|
};
|
|
73551
|
-
|
|
73551
|
+
util542.DataBuffer.prototype.getInt24Le = function() {
|
|
73552
73552
|
var rval = this.data.getInt8(this.read) ^ this.data.getInt16(this.read + 1, true) << 8;
|
|
73553
73553
|
this.read += 3;
|
|
73554
73554
|
return rval;
|
|
73555
73555
|
};
|
|
73556
|
-
|
|
73556
|
+
util542.DataBuffer.prototype.getInt32Le = function() {
|
|
73557
73557
|
var rval = this.data.getInt32(this.read, true);
|
|
73558
73558
|
this.read += 4;
|
|
73559
73559
|
return rval;
|
|
73560
73560
|
};
|
|
73561
|
-
|
|
73561
|
+
util542.DataBuffer.prototype.getInt = function(n) {
|
|
73562
73562
|
_checkBitsParam(n);
|
|
73563
73563
|
var rval = 0;
|
|
73564
73564
|
do {
|
|
@@ -73567,7 +73567,7 @@ var require_util4 = __commonJS2({
|
|
|
73567
73567
|
} while (n > 0);
|
|
73568
73568
|
return rval;
|
|
73569
73569
|
};
|
|
73570
|
-
|
|
73570
|
+
util542.DataBuffer.prototype.getSignedInt = function(n) {
|
|
73571
73571
|
var x = this.getInt(n);
|
|
73572
73572
|
var max7 = 2 << n - 2;
|
|
73573
73573
|
if (x >= max7) {
|
|
@@ -73575,7 +73575,7 @@ var require_util4 = __commonJS2({
|
|
|
73575
73575
|
}
|
|
73576
73576
|
return x;
|
|
73577
73577
|
};
|
|
73578
|
-
|
|
73578
|
+
util542.DataBuffer.prototype.getBytes = function(count) {
|
|
73579
73579
|
var rval;
|
|
73580
73580
|
if (count) {
|
|
73581
73581
|
count = Math.min(this.length(), count);
|
|
@@ -73589,23 +73589,23 @@ var require_util4 = __commonJS2({
|
|
|
73589
73589
|
}
|
|
73590
73590
|
return rval;
|
|
73591
73591
|
};
|
|
73592
|
-
|
|
73592
|
+
util542.DataBuffer.prototype.bytes = function(count) {
|
|
73593
73593
|
return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count);
|
|
73594
73594
|
};
|
|
73595
|
-
|
|
73595
|
+
util542.DataBuffer.prototype.at = function(i2) {
|
|
73596
73596
|
return this.data.getUint8(this.read + i2);
|
|
73597
73597
|
};
|
|
73598
|
-
|
|
73598
|
+
util542.DataBuffer.prototype.setAt = function(i2, b) {
|
|
73599
73599
|
this.data.setUint8(i2, b);
|
|
73600
73600
|
return this;
|
|
73601
73601
|
};
|
|
73602
|
-
|
|
73602
|
+
util542.DataBuffer.prototype.last = function() {
|
|
73603
73603
|
return this.data.getUint8(this.write - 1);
|
|
73604
73604
|
};
|
|
73605
|
-
|
|
73606
|
-
return new
|
|
73605
|
+
util542.DataBuffer.prototype.copy = function() {
|
|
73606
|
+
return new util542.DataBuffer(this);
|
|
73607
73607
|
};
|
|
73608
|
-
|
|
73608
|
+
util542.DataBuffer.prototype.compact = function() {
|
|
73609
73609
|
if (this.read > 0) {
|
|
73610
73610
|
var src2 = new Uint8Array(this.data.buffer, this.read);
|
|
73611
73611
|
var dst = new Uint8Array(src2.byteLength);
|
|
@@ -73616,17 +73616,17 @@ var require_util4 = __commonJS2({
|
|
|
73616
73616
|
}
|
|
73617
73617
|
return this;
|
|
73618
73618
|
};
|
|
73619
|
-
|
|
73619
|
+
util542.DataBuffer.prototype.clear = function() {
|
|
73620
73620
|
this.data = new DataView(new ArrayBuffer(0));
|
|
73621
73621
|
this.read = this.write = 0;
|
|
73622
73622
|
return this;
|
|
73623
73623
|
};
|
|
73624
|
-
|
|
73624
|
+
util542.DataBuffer.prototype.truncate = function(count) {
|
|
73625
73625
|
this.write = Math.max(0, this.length() - count);
|
|
73626
73626
|
this.read = Math.min(this.read, this.write);
|
|
73627
73627
|
return this;
|
|
73628
73628
|
};
|
|
73629
|
-
|
|
73629
|
+
util542.DataBuffer.prototype.toHex = function() {
|
|
73630
73630
|
var rval = "";
|
|
73631
73631
|
for (var i2 = this.read; i2 < this.data.byteLength; ++i2) {
|
|
73632
73632
|
var b = this.data.getUint8(i2);
|
|
@@ -73637,34 +73637,34 @@ var require_util4 = __commonJS2({
|
|
|
73637
73637
|
}
|
|
73638
73638
|
return rval;
|
|
73639
73639
|
};
|
|
73640
|
-
|
|
73640
|
+
util542.DataBuffer.prototype.toString = function(encoding) {
|
|
73641
73641
|
var view = new Uint8Array(this.data, this.read, this.length());
|
|
73642
73642
|
encoding = encoding || "utf8";
|
|
73643
73643
|
if (encoding === "binary" || encoding === "raw") {
|
|
73644
|
-
return
|
|
73644
|
+
return util542.binary.raw.encode(view);
|
|
73645
73645
|
}
|
|
73646
73646
|
if (encoding === "hex") {
|
|
73647
|
-
return
|
|
73647
|
+
return util542.binary.hex.encode(view);
|
|
73648
73648
|
}
|
|
73649
73649
|
if (encoding === "base64") {
|
|
73650
|
-
return
|
|
73650
|
+
return util542.binary.base64.encode(view);
|
|
73651
73651
|
}
|
|
73652
73652
|
if (encoding === "utf8") {
|
|
73653
|
-
return
|
|
73653
|
+
return util542.text.utf8.decode(view);
|
|
73654
73654
|
}
|
|
73655
73655
|
if (encoding === "utf16") {
|
|
73656
|
-
return
|
|
73656
|
+
return util542.text.utf16.decode(view);
|
|
73657
73657
|
}
|
|
73658
73658
|
throw new Error("Invalid encoding: " + encoding);
|
|
73659
73659
|
};
|
|
73660
|
-
|
|
73660
|
+
util542.createBuffer = function(input, encoding) {
|
|
73661
73661
|
encoding = encoding || "raw";
|
|
73662
73662
|
if (input !== void 0 && encoding === "utf8") {
|
|
73663
|
-
input =
|
|
73663
|
+
input = util542.encodeUtf8(input);
|
|
73664
73664
|
}
|
|
73665
|
-
return new
|
|
73665
|
+
return new util542.ByteBuffer(input);
|
|
73666
73666
|
};
|
|
73667
|
-
|
|
73667
|
+
util542.fillString = function(c, n) {
|
|
73668
73668
|
var s4 = "";
|
|
73669
73669
|
while (n > 0) {
|
|
73670
73670
|
if (n & 1) {
|
|
@@ -73677,7 +73677,7 @@ var require_util4 = __commonJS2({
|
|
|
73677
73677
|
}
|
|
73678
73678
|
return s4;
|
|
73679
73679
|
};
|
|
73680
|
-
|
|
73680
|
+
util542.xorBytes = function(s1, s22, n) {
|
|
73681
73681
|
var s32 = "";
|
|
73682
73682
|
var b = "";
|
|
73683
73683
|
var t = "";
|
|
@@ -73696,7 +73696,7 @@ var require_util4 = __commonJS2({
|
|
|
73696
73696
|
s32 += t;
|
|
73697
73697
|
return s32;
|
|
73698
73698
|
};
|
|
73699
|
-
|
|
73699
|
+
util542.hexToBytes = function(hex4) {
|
|
73700
73700
|
var rval = "";
|
|
73701
73701
|
var i2 = 0;
|
|
73702
73702
|
if (hex4.length & true) {
|
|
@@ -73708,10 +73708,10 @@ var require_util4 = __commonJS2({
|
|
|
73708
73708
|
}
|
|
73709
73709
|
return rval;
|
|
73710
73710
|
};
|
|
73711
|
-
|
|
73712
|
-
return
|
|
73711
|
+
util542.bytesToHex = function(bytes) {
|
|
73712
|
+
return util542.createBuffer(bytes).toHex();
|
|
73713
73713
|
};
|
|
73714
|
-
|
|
73714
|
+
util542.int32ToBytes = function(i2) {
|
|
73715
73715
|
return String.fromCharCode(i2 >> 24 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255);
|
|
73716
73716
|
};
|
|
73717
73717
|
var _base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -73810,7 +73810,7 @@ var require_util4 = __commonJS2({
|
|
|
73810
73810
|
51
|
|
73811
73811
|
];
|
|
73812
73812
|
var _base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
73813
|
-
|
|
73813
|
+
util542.encode64 = function(input, maxline) {
|
|
73814
73814
|
var line = "";
|
|
73815
73815
|
var output = "";
|
|
73816
73816
|
var chr1, chr2, chr3;
|
|
@@ -73835,7 +73835,7 @@ var require_util4 = __commonJS2({
|
|
|
73835
73835
|
output += line;
|
|
73836
73836
|
return output;
|
|
73837
73837
|
};
|
|
73838
|
-
|
|
73838
|
+
util542.decode64 = function(input) {
|
|
73839
73839
|
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
|
73840
73840
|
var output = "";
|
|
73841
73841
|
var enc1, enc2, enc3, enc4;
|
|
@@ -73855,13 +73855,13 @@ var require_util4 = __commonJS2({
|
|
|
73855
73855
|
}
|
|
73856
73856
|
return output;
|
|
73857
73857
|
};
|
|
73858
|
-
|
|
73858
|
+
util542.encodeUtf8 = function(str) {
|
|
73859
73859
|
return unescape(encodeURIComponent(str));
|
|
73860
73860
|
};
|
|
73861
|
-
|
|
73861
|
+
util542.decodeUtf8 = function(str) {
|
|
73862
73862
|
return decodeURIComponent(escape(str));
|
|
73863
73863
|
};
|
|
73864
|
-
|
|
73864
|
+
util542.binary = {
|
|
73865
73865
|
raw: {},
|
|
73866
73866
|
hex: {},
|
|
73867
73867
|
base64: {},
|
|
@@ -73871,10 +73871,10 @@ var require_util4 = __commonJS2({
|
|
|
73871
73871
|
decode: baseN.decode
|
|
73872
73872
|
}
|
|
73873
73873
|
};
|
|
73874
|
-
|
|
73874
|
+
util542.binary.raw.encode = function(bytes) {
|
|
73875
73875
|
return String.fromCharCode.apply(null, bytes);
|
|
73876
73876
|
};
|
|
73877
|
-
|
|
73877
|
+
util542.binary.raw.decode = function(str, output, offset) {
|
|
73878
73878
|
var out = output;
|
|
73879
73879
|
if (!out) {
|
|
73880
73880
|
out = new Uint8Array(str.length);
|
|
@@ -73886,8 +73886,8 @@ var require_util4 = __commonJS2({
|
|
|
73886
73886
|
}
|
|
73887
73887
|
return output ? j2 - offset : out;
|
|
73888
73888
|
};
|
|
73889
|
-
|
|
73890
|
-
|
|
73889
|
+
util542.binary.hex.encode = util542.bytesToHex;
|
|
73890
|
+
util542.binary.hex.decode = function(hex4, output, offset) {
|
|
73891
73891
|
var out = output;
|
|
73892
73892
|
if (!out) {
|
|
73893
73893
|
out = new Uint8Array(Math.ceil(hex4.length / 2));
|
|
@@ -73903,7 +73903,7 @@ var require_util4 = __commonJS2({
|
|
|
73903
73903
|
}
|
|
73904
73904
|
return output ? j2 - offset : out;
|
|
73905
73905
|
};
|
|
73906
|
-
|
|
73906
|
+
util542.binary.base64.encode = function(input, maxline) {
|
|
73907
73907
|
var line = "";
|
|
73908
73908
|
var output = "";
|
|
73909
73909
|
var chr1, chr2, chr3;
|
|
@@ -73928,7 +73928,7 @@ var require_util4 = __commonJS2({
|
|
|
73928
73928
|
output += line;
|
|
73929
73929
|
return output;
|
|
73930
73930
|
};
|
|
73931
|
-
|
|
73931
|
+
util542.binary.base64.decode = function(input, output, offset) {
|
|
73932
73932
|
var out = output;
|
|
73933
73933
|
if (!out) {
|
|
73934
73934
|
out = new Uint8Array(Math.ceil(input.length / 4) * 3);
|
|
@@ -73952,18 +73952,18 @@ var require_util4 = __commonJS2({
|
|
|
73952
73952
|
}
|
|
73953
73953
|
return output ? j2 - offset : out.subarray(0, j2);
|
|
73954
73954
|
};
|
|
73955
|
-
|
|
73956
|
-
return
|
|
73955
|
+
util542.binary.base58.encode = function(input, maxline) {
|
|
73956
|
+
return util542.binary.baseN.encode(input, _base58, maxline);
|
|
73957
73957
|
};
|
|
73958
|
-
|
|
73959
|
-
return
|
|
73958
|
+
util542.binary.base58.decode = function(input, maxline) {
|
|
73959
|
+
return util542.binary.baseN.decode(input, _base58, maxline);
|
|
73960
73960
|
};
|
|
73961
|
-
|
|
73961
|
+
util542.text = {
|
|
73962
73962
|
utf8: {},
|
|
73963
73963
|
utf16: {}
|
|
73964
73964
|
};
|
|
73965
|
-
|
|
73966
|
-
str =
|
|
73965
|
+
util542.text.utf8.encode = function(str, output, offset) {
|
|
73966
|
+
str = util542.encodeUtf8(str);
|
|
73967
73967
|
var out = output;
|
|
73968
73968
|
if (!out) {
|
|
73969
73969
|
out = new Uint8Array(str.length);
|
|
@@ -73975,10 +73975,10 @@ var require_util4 = __commonJS2({
|
|
|
73975
73975
|
}
|
|
73976
73976
|
return output ? j2 - offset : out;
|
|
73977
73977
|
};
|
|
73978
|
-
|
|
73979
|
-
return
|
|
73978
|
+
util542.text.utf8.decode = function(bytes) {
|
|
73979
|
+
return util542.decodeUtf8(String.fromCharCode.apply(null, bytes));
|
|
73980
73980
|
};
|
|
73981
|
-
|
|
73981
|
+
util542.text.utf16.encode = function(str, output, offset) {
|
|
73982
73982
|
var out = output;
|
|
73983
73983
|
if (!out) {
|
|
73984
73984
|
out = new Uint8Array(str.length * 2);
|
|
@@ -73993,11 +73993,11 @@ var require_util4 = __commonJS2({
|
|
|
73993
73993
|
}
|
|
73994
73994
|
return output ? j2 - offset : out;
|
|
73995
73995
|
};
|
|
73996
|
-
|
|
73996
|
+
util542.text.utf16.decode = function(bytes) {
|
|
73997
73997
|
return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer));
|
|
73998
73998
|
};
|
|
73999
|
-
|
|
74000
|
-
bytes =
|
|
73999
|
+
util542.deflate = function(api, bytes, raw) {
|
|
74000
|
+
bytes = util542.decode64(api.deflate(util542.encode64(bytes)).rval);
|
|
74001
74001
|
if (raw) {
|
|
74002
74002
|
var start = 2;
|
|
74003
74003
|
var flg = bytes.charCodeAt(1);
|
|
@@ -74008,9 +74008,9 @@ var require_util4 = __commonJS2({
|
|
|
74008
74008
|
}
|
|
74009
74009
|
return bytes;
|
|
74010
74010
|
};
|
|
74011
|
-
|
|
74012
|
-
var rval = api.inflate(
|
|
74013
|
-
return rval === null ? null :
|
|
74011
|
+
util542.inflate = function(api, bytes, raw) {
|
|
74012
|
+
var rval = api.inflate(util542.encode64(bytes)).rval;
|
|
74013
|
+
return rval === null ? null : util542.decode64(rval);
|
|
74014
74014
|
};
|
|
74015
74015
|
var _setStorageObject = function(api, id7, obj) {
|
|
74016
74016
|
if (!api) {
|
|
@@ -74020,7 +74020,7 @@ var require_util4 = __commonJS2({
|
|
|
74020
74020
|
if (obj === null) {
|
|
74021
74021
|
rval = api.removeItem(id7);
|
|
74022
74022
|
} else {
|
|
74023
|
-
obj =
|
|
74023
|
+
obj = util542.encode64(JSON.stringify(obj));
|
|
74024
74024
|
rval = api.setItem(id7, obj);
|
|
74025
74025
|
}
|
|
74026
74026
|
if (typeof rval !== "undefined" && rval.rval !== true) {
|
|
@@ -74049,7 +74049,7 @@ var require_util4 = __commonJS2({
|
|
|
74049
74049
|
}
|
|
74050
74050
|
}
|
|
74051
74051
|
if (rval !== null) {
|
|
74052
|
-
rval = JSON.parse(
|
|
74052
|
+
rval = JSON.parse(util542.decode64(rval));
|
|
74053
74053
|
}
|
|
74054
74054
|
return rval;
|
|
74055
74055
|
};
|
|
@@ -74121,19 +74121,19 @@ var require_util4 = __commonJS2({
|
|
|
74121
74121
|
}
|
|
74122
74122
|
return rval;
|
|
74123
74123
|
};
|
|
74124
|
-
|
|
74124
|
+
util542.setItem = function(api, id7, key, data2, location) {
|
|
74125
74125
|
_callStorageFunction(_setItem, arguments, location);
|
|
74126
74126
|
};
|
|
74127
|
-
|
|
74127
|
+
util542.getItem = function(api, id7, key, location) {
|
|
74128
74128
|
return _callStorageFunction(_getItem, arguments, location);
|
|
74129
74129
|
};
|
|
74130
|
-
|
|
74130
|
+
util542.removeItem = function(api, id7, key, location) {
|
|
74131
74131
|
_callStorageFunction(_removeItem, arguments, location);
|
|
74132
74132
|
};
|
|
74133
|
-
|
|
74133
|
+
util542.clearItems = function(api, id7, location) {
|
|
74134
74134
|
_callStorageFunction(_clearItems, arguments, location);
|
|
74135
74135
|
};
|
|
74136
|
-
|
|
74136
|
+
util542.isEmpty = function(obj) {
|
|
74137
74137
|
for (var prop in obj) {
|
|
74138
74138
|
if (obj.hasOwnProperty(prop)) {
|
|
74139
74139
|
return false;
|
|
@@ -74141,7 +74141,7 @@ var require_util4 = __commonJS2({
|
|
|
74141
74141
|
}
|
|
74142
74142
|
return true;
|
|
74143
74143
|
};
|
|
74144
|
-
|
|
74144
|
+
util542.format = function(format) {
|
|
74145
74145
|
var re = /%./g;
|
|
74146
74146
|
var match2;
|
|
74147
74147
|
var part;
|
|
@@ -74177,7 +74177,7 @@ var require_util4 = __commonJS2({
|
|
|
74177
74177
|
parts.push(format.substring(last));
|
|
74178
74178
|
return parts.join("");
|
|
74179
74179
|
};
|
|
74180
|
-
|
|
74180
|
+
util542.formatNumber = function(number, decimals, dec_point, thousands_sep) {
|
|
74181
74181
|
var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals;
|
|
74182
74182
|
var d2 = dec_point === void 0 ? "," : dec_point;
|
|
74183
74183
|
var t = thousands_sep === void 0 ? "." : thousands_sep, s4 = n < 0 ? "-" : "";
|
|
@@ -74185,33 +74185,33 @@ var require_util4 = __commonJS2({
|
|
|
74185
74185
|
var j2 = i2.length > 3 ? i2.length % 3 : 0;
|
|
74186
74186
|
return s4 + (j2 ? i2.substr(0, j2) + t : "") + i2.substr(j2).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d2 + Math.abs(n - i2).toFixed(c).slice(2) : "");
|
|
74187
74187
|
};
|
|
74188
|
-
|
|
74188
|
+
util542.formatSize = function(size) {
|
|
74189
74189
|
if (size >= 1073741824) {
|
|
74190
|
-
size =
|
|
74190
|
+
size = util542.formatNumber(size / 1073741824, 2, ".", "") + " GiB";
|
|
74191
74191
|
} else if (size >= 1048576) {
|
|
74192
|
-
size =
|
|
74192
|
+
size = util542.formatNumber(size / 1048576, 2, ".", "") + " MiB";
|
|
74193
74193
|
} else if (size >= 1024) {
|
|
74194
|
-
size =
|
|
74194
|
+
size = util542.formatNumber(size / 1024, 0) + " KiB";
|
|
74195
74195
|
} else {
|
|
74196
|
-
size =
|
|
74196
|
+
size = util542.formatNumber(size, 0) + " bytes";
|
|
74197
74197
|
}
|
|
74198
74198
|
return size;
|
|
74199
74199
|
};
|
|
74200
|
-
|
|
74200
|
+
util542.bytesFromIP = function(ip) {
|
|
74201
74201
|
if (ip.indexOf(".") !== -1) {
|
|
74202
|
-
return
|
|
74202
|
+
return util542.bytesFromIPv4(ip);
|
|
74203
74203
|
}
|
|
74204
74204
|
if (ip.indexOf(":") !== -1) {
|
|
74205
|
-
return
|
|
74205
|
+
return util542.bytesFromIPv6(ip);
|
|
74206
74206
|
}
|
|
74207
74207
|
return null;
|
|
74208
74208
|
};
|
|
74209
|
-
|
|
74209
|
+
util542.bytesFromIPv4 = function(ip) {
|
|
74210
74210
|
ip = ip.split(".");
|
|
74211
74211
|
if (ip.length !== 4) {
|
|
74212
74212
|
return null;
|
|
74213
74213
|
}
|
|
74214
|
-
var b =
|
|
74214
|
+
var b = util542.createBuffer();
|
|
74215
74215
|
for (var i2 = 0; i2 < ip.length; ++i2) {
|
|
74216
74216
|
var num = parseInt(ip[i2], 10);
|
|
74217
74217
|
if (isNaN(num)) {
|
|
@@ -74221,21 +74221,21 @@ var require_util4 = __commonJS2({
|
|
|
74221
74221
|
}
|
|
74222
74222
|
return b.getBytes();
|
|
74223
74223
|
};
|
|
74224
|
-
|
|
74224
|
+
util542.bytesFromIPv6 = function(ip) {
|
|
74225
74225
|
var blanks = 0;
|
|
74226
74226
|
ip = ip.split(":").filter(function(e) {
|
|
74227
74227
|
if (e.length === 0) ++blanks;
|
|
74228
74228
|
return true;
|
|
74229
74229
|
});
|
|
74230
74230
|
var zeros = (8 - ip.length + blanks) * 2;
|
|
74231
|
-
var b =
|
|
74231
|
+
var b = util542.createBuffer();
|
|
74232
74232
|
for (var i2 = 0; i2 < 8; ++i2) {
|
|
74233
74233
|
if (!ip[i2] || ip[i2].length === 0) {
|
|
74234
74234
|
b.fillWithByte(0, zeros);
|
|
74235
74235
|
zeros = 0;
|
|
74236
74236
|
continue;
|
|
74237
74237
|
}
|
|
74238
|
-
var bytes =
|
|
74238
|
+
var bytes = util542.hexToBytes(ip[i2]);
|
|
74239
74239
|
if (bytes.length < 2) {
|
|
74240
74240
|
b.putByte(0);
|
|
74241
74241
|
}
|
|
@@ -74243,16 +74243,16 @@ var require_util4 = __commonJS2({
|
|
|
74243
74243
|
}
|
|
74244
74244
|
return b.getBytes();
|
|
74245
74245
|
};
|
|
74246
|
-
|
|
74246
|
+
util542.bytesToIP = function(bytes) {
|
|
74247
74247
|
if (bytes.length === 4) {
|
|
74248
|
-
return
|
|
74248
|
+
return util542.bytesToIPv4(bytes);
|
|
74249
74249
|
}
|
|
74250
74250
|
if (bytes.length === 16) {
|
|
74251
|
-
return
|
|
74251
|
+
return util542.bytesToIPv6(bytes);
|
|
74252
74252
|
}
|
|
74253
74253
|
return null;
|
|
74254
74254
|
};
|
|
74255
|
-
|
|
74255
|
+
util542.bytesToIPv4 = function(bytes) {
|
|
74256
74256
|
if (bytes.length !== 4) {
|
|
74257
74257
|
return null;
|
|
74258
74258
|
}
|
|
@@ -74262,7 +74262,7 @@ var require_util4 = __commonJS2({
|
|
|
74262
74262
|
}
|
|
74263
74263
|
return ip.join(".");
|
|
74264
74264
|
};
|
|
74265
|
-
|
|
74265
|
+
util542.bytesToIPv6 = function(bytes) {
|
|
74266
74266
|
if (bytes.length !== 16) {
|
|
74267
74267
|
return null;
|
|
74268
74268
|
}
|
|
@@ -74270,7 +74270,7 @@ var require_util4 = __commonJS2({
|
|
|
74270
74270
|
var zeroGroups = [];
|
|
74271
74271
|
var zeroMaxGroup = 0;
|
|
74272
74272
|
for (var i2 = 0; i2 < bytes.length; i2 += 2) {
|
|
74273
|
-
var hex4 =
|
|
74273
|
+
var hex4 = util542.bytesToHex(bytes[i2] + bytes[i2 + 1]);
|
|
74274
74274
|
while (hex4[0] === "0" && hex4 !== "0") {
|
|
74275
74275
|
hex4 = hex4.substr(1);
|
|
74276
74276
|
}
|
|
@@ -74302,26 +74302,26 @@ var require_util4 = __commonJS2({
|
|
|
74302
74302
|
}
|
|
74303
74303
|
return ip.join(":");
|
|
74304
74304
|
};
|
|
74305
|
-
|
|
74305
|
+
util542.estimateCores = function(options, callback) {
|
|
74306
74306
|
if (typeof options === "function") {
|
|
74307
74307
|
callback = options;
|
|
74308
74308
|
options = {};
|
|
74309
74309
|
}
|
|
74310
74310
|
options = options || {};
|
|
74311
|
-
if ("cores" in
|
|
74312
|
-
return callback(null,
|
|
74311
|
+
if ("cores" in util542 && !options.update) {
|
|
74312
|
+
return callback(null, util542.cores);
|
|
74313
74313
|
}
|
|
74314
74314
|
if (typeof navigator !== "undefined" && "hardwareConcurrency" in navigator && navigator.hardwareConcurrency > 0) {
|
|
74315
|
-
|
|
74316
|
-
return callback(null,
|
|
74315
|
+
util542.cores = navigator.hardwareConcurrency;
|
|
74316
|
+
return callback(null, util542.cores);
|
|
74317
74317
|
}
|
|
74318
74318
|
if (typeof Worker === "undefined") {
|
|
74319
|
-
|
|
74320
|
-
return callback(null,
|
|
74319
|
+
util542.cores = 1;
|
|
74320
|
+
return callback(null, util542.cores);
|
|
74321
74321
|
}
|
|
74322
74322
|
if (typeof Blob === "undefined") {
|
|
74323
|
-
|
|
74324
|
-
return callback(null,
|
|
74323
|
+
util542.cores = 2;
|
|
74324
|
+
return callback(null, util542.cores);
|
|
74325
74325
|
}
|
|
74326
74326
|
var blobUrl = URL.createObjectURL(new Blob([
|
|
74327
74327
|
"(",
|
|
@@ -74341,9 +74341,9 @@ var require_util4 = __commonJS2({
|
|
|
74341
74341
|
var avg = Math.floor(max7.reduce(function(avg2, x) {
|
|
74342
74342
|
return avg2 + x;
|
|
74343
74343
|
}, 0) / max7.length);
|
|
74344
|
-
|
|
74344
|
+
util542.cores = Math.max(1, avg);
|
|
74345
74345
|
URL.revokeObjectURL(blobUrl);
|
|
74346
|
-
return callback(null,
|
|
74346
|
+
return callback(null, util542.cores);
|
|
74347
74347
|
}
|
|
74348
74348
|
map4(numWorkers, function(err, results) {
|
|
74349
74349
|
max7.push(reduce(numWorkers, results));
|
|
@@ -75268,10 +75268,10 @@ var require_aes = __commonJS2({
|
|
|
75268
75268
|
registerAlgorithm("AES-CTR", forge.cipher.modes.ctr);
|
|
75269
75269
|
registerAlgorithm("AES-GCM", forge.cipher.modes.gcm);
|
|
75270
75270
|
function registerAlgorithm(name, mode2) {
|
|
75271
|
-
var
|
|
75271
|
+
var factory2 = function() {
|
|
75272
75272
|
return new forge.aes.Algorithm(name, mode2);
|
|
75273
75273
|
};
|
|
75274
|
-
forge.cipher.registerAlgorithm(name,
|
|
75274
|
+
forge.cipher.registerAlgorithm(name, factory2);
|
|
75275
75275
|
}
|
|
75276
75276
|
var init = false;
|
|
75277
75277
|
var Nb = 4;
|
|
@@ -77753,10 +77753,10 @@ var require_des = __commonJS2({
|
|
|
77753
77753
|
registerAlgorithm("3DES-OFB", forge.cipher.modes.ofb);
|
|
77754
77754
|
registerAlgorithm("3DES-CTR", forge.cipher.modes.ctr);
|
|
77755
77755
|
function registerAlgorithm(name, mode2) {
|
|
77756
|
-
var
|
|
77756
|
+
var factory2 = function() {
|
|
77757
77757
|
return new forge.des.Algorithm(name, mode2);
|
|
77758
77758
|
};
|
|
77759
|
-
forge.cipher.registerAlgorithm(name,
|
|
77759
|
+
forge.cipher.registerAlgorithm(name, factory2);
|
|
77760
77760
|
}
|
|
77761
77761
|
var spfunction1 = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756];
|
|
77762
77762
|
var spfunction2 = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344];
|
|
@@ -79689,7 +79689,7 @@ var require_rsa = __commonJS2({
|
|
|
79689
79689
|
var BigInteger;
|
|
79690
79690
|
var _crypto = forge.util.isNodejs ? __require2("crypto") : null;
|
|
79691
79691
|
var asn1 = forge.asn1;
|
|
79692
|
-
var
|
|
79692
|
+
var util542 = forge.util;
|
|
79693
79693
|
forge.pki = forge.pki || {};
|
|
79694
79694
|
module2.exports = forge.pki.rsa = forge.rsa = forge.rsa || {};
|
|
79695
79695
|
var pki = forge.pki;
|
|
@@ -80229,13 +80229,13 @@ var require_rsa = __commonJS2({
|
|
|
80229
80229
|
});
|
|
80230
80230
|
}
|
|
80231
80231
|
if (_detectSubtleCrypto("generateKey") && _detectSubtleCrypto("exportKey")) {
|
|
80232
|
-
return
|
|
80232
|
+
return util542.globalScope.crypto.subtle.generateKey({
|
|
80233
80233
|
name: "RSASSA-PKCS1-v1_5",
|
|
80234
80234
|
modulusLength: bits,
|
|
80235
80235
|
publicExponent: _intToUint8Array(e),
|
|
80236
80236
|
hash: { name: "SHA-256" }
|
|
80237
80237
|
}, true, ["sign", "verify"]).then(function(pair) {
|
|
80238
|
-
return
|
|
80238
|
+
return util542.globalScope.crypto.subtle.exportKey(
|
|
80239
80239
|
"pkcs8",
|
|
80240
80240
|
pair.privateKey
|
|
80241
80241
|
);
|
|
@@ -80254,7 +80254,7 @@ var require_rsa = __commonJS2({
|
|
|
80254
80254
|
});
|
|
80255
80255
|
}
|
|
80256
80256
|
if (_detectSubtleMsCrypto("generateKey") && _detectSubtleMsCrypto("exportKey")) {
|
|
80257
|
-
var genOp =
|
|
80257
|
+
var genOp = util542.globalScope.msCrypto.subtle.generateKey({
|
|
80258
80258
|
name: "RSASSA-PKCS1-v1_5",
|
|
80259
80259
|
modulusLength: bits,
|
|
80260
80260
|
publicExponent: _intToUint8Array(e),
|
|
@@ -80262,7 +80262,7 @@ var require_rsa = __commonJS2({
|
|
|
80262
80262
|
}, true, ["sign", "verify"]);
|
|
80263
80263
|
genOp.oncomplete = function(e2) {
|
|
80264
80264
|
var pair = e2.target.result;
|
|
80265
|
-
var exportOp =
|
|
80265
|
+
var exportOp = util542.globalScope.msCrypto.subtle.exportKey(
|
|
80266
80266
|
"pkcs8",
|
|
80267
80267
|
pair.privateKey
|
|
80268
80268
|
);
|
|
@@ -80847,10 +80847,10 @@ var require_rsa = __commonJS2({
|
|
|
80847
80847
|
return forge.util.isNodejs && typeof _crypto[fn] === "function";
|
|
80848
80848
|
}
|
|
80849
80849
|
function _detectSubtleCrypto(fn) {
|
|
80850
|
-
return typeof
|
|
80850
|
+
return typeof util542.globalScope !== "undefined" && typeof util542.globalScope.crypto === "object" && typeof util542.globalScope.crypto.subtle === "object" && typeof util542.globalScope.crypto.subtle[fn] === "function";
|
|
80851
80851
|
}
|
|
80852
80852
|
function _detectSubtleMsCrypto(fn) {
|
|
80853
|
-
return typeof
|
|
80853
|
+
return typeof util542.globalScope !== "undefined" && typeof util542.globalScope.msCrypto === "object" && typeof util542.globalScope.msCrypto.subtle === "object" && typeof util542.globalScope.msCrypto.subtle[fn] === "function";
|
|
80854
80854
|
}
|
|
80855
80855
|
function _intToUint8Array(x) {
|
|
80856
80856
|
var bytes = forge.util.hexToBytes(x.toString(16));
|
|
@@ -85138,10 +85138,10 @@ var require_pbe = __commonJS2({
|
|
|
85138
85138
|
return prfAlgorithmToMessageDigest(prfAlgorithm);
|
|
85139
85139
|
}
|
|
85140
85140
|
function prfAlgorithmToMessageDigest(prfAlgorithm) {
|
|
85141
|
-
var
|
|
85141
|
+
var factory2 = forge.md;
|
|
85142
85142
|
switch (prfAlgorithm) {
|
|
85143
85143
|
case "hmacWithSHA224":
|
|
85144
|
-
|
|
85144
|
+
factory2 = forge.md.sha512;
|
|
85145
85145
|
case "hmacWithSHA1":
|
|
85146
85146
|
case "hmacWithSHA256":
|
|
85147
85147
|
case "hmacWithSHA384":
|
|
@@ -85160,10 +85160,10 @@ var require_pbe = __commonJS2({
|
|
|
85160
85160
|
];
|
|
85161
85161
|
throw error2;
|
|
85162
85162
|
}
|
|
85163
|
-
if (!
|
|
85163
|
+
if (!factory2 || !(prfAlgorithm in factory2)) {
|
|
85164
85164
|
throw new Error("Unknown hash algorithm: " + prfAlgorithm);
|
|
85165
85165
|
}
|
|
85166
|
-
return
|
|
85166
|
+
return factory2[prfAlgorithm].create();
|
|
85167
85167
|
}
|
|
85168
85168
|
function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) {
|
|
85169
85169
|
var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [
|
|
@@ -86587,11 +86587,11 @@ var require_forge2 = __commonJS2({
|
|
|
86587
86587
|
}
|
|
86588
86588
|
};
|
|
86589
86589
|
(function() {
|
|
86590
|
-
var name = "AES", mode2 = modeRaw,
|
|
86591
|
-
|
|
86590
|
+
var name = "AES", mode2 = modeRaw, factory2;
|
|
86591
|
+
factory2 = function() {
|
|
86592
86592
|
return new forge.aes.Algorithm(name, mode2);
|
|
86593
86593
|
};
|
|
86594
|
-
forge.cipher.registerAlgorithm(name,
|
|
86594
|
+
forge.cipher.registerAlgorithm(name, factory2);
|
|
86595
86595
|
})();
|
|
86596
86596
|
var originalModInverse = forge.jsbn.BigInteger.prototype.modInverse;
|
|
86597
86597
|
var positiveModInverse = function(m2) {
|
|
@@ -86735,7 +86735,7 @@ var require_util5 = __commonJS2({
|
|
|
86735
86735
|
"node_modules/node-jose/lib/util/index.js"(exports2, module2) {
|
|
86736
86736
|
"use strict";
|
|
86737
86737
|
var forge = require_forge2();
|
|
86738
|
-
var
|
|
86738
|
+
var util542;
|
|
86739
86739
|
function asBuffer(input, encoding) {
|
|
86740
86740
|
if (Buffer.isBuffer(input)) {
|
|
86741
86741
|
return input;
|
|
@@ -86743,7 +86743,7 @@ var require_util5 = __commonJS2({
|
|
|
86743
86743
|
if ("string" === typeof input) {
|
|
86744
86744
|
encoding = encoding || "binary";
|
|
86745
86745
|
if ("base64url" === encoding) {
|
|
86746
|
-
return
|
|
86746
|
+
return util542.base64url.decode(input);
|
|
86747
86747
|
}
|
|
86748
86748
|
return Buffer.from(input, encoding);
|
|
86749
86749
|
}
|
|
@@ -86759,13 +86759,13 @@ var require_util5 = __commonJS2({
|
|
|
86759
86759
|
function randomBytes2(len) {
|
|
86760
86760
|
return Buffer.from(forge.random.getBytes(len), "binary");
|
|
86761
86761
|
}
|
|
86762
|
-
|
|
86762
|
+
util542 = {
|
|
86763
86763
|
base64url: require_base64url3(),
|
|
86764
86764
|
utf8: require_utf8(),
|
|
86765
86765
|
asBuffer,
|
|
86766
86766
|
randomBytes: randomBytes2
|
|
86767
86767
|
};
|
|
86768
|
-
module2.exports =
|
|
86768
|
+
module2.exports = util542;
|
|
86769
86769
|
}
|
|
86770
86770
|
});
|
|
86771
86771
|
var require_nativeKeys = __commonJS2({
|
|
@@ -89148,7 +89148,7 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
|
|
|
89148
89148
|
var sha = require_sha();
|
|
89149
89149
|
var forge = require_forge2();
|
|
89150
89150
|
var DataBuffer = require_databuffer();
|
|
89151
|
-
var
|
|
89151
|
+
var util542 = require_util5();
|
|
89152
89152
|
function checkIv(iv) {
|
|
89153
89153
|
if (16 !== iv.length) {
|
|
89154
89154
|
throw new Error("invalid iv");
|
|
@@ -89435,9 +89435,9 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
|
|
|
89435
89435
|
DotLabel,
|
|
89436
89436
|
Buffer.from(kdata),
|
|
89437
89437
|
DotLabel,
|
|
89438
|
-
Buffer.from(
|
|
89438
|
+
Buffer.from(util542.base64url.encode(iv), "utf8"),
|
|
89439
89439
|
DotLabel,
|
|
89440
|
-
Buffer.from(
|
|
89440
|
+
Buffer.from(util542.base64url.encode(cdata), "utf8")
|
|
89441
89441
|
]);
|
|
89442
89442
|
return Promise.all([
|
|
89443
89443
|
Promise.resolve(cdata),
|
|
@@ -89472,9 +89472,9 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
|
|
|
89472
89472
|
DotLabel,
|
|
89473
89473
|
Buffer.from(kdata),
|
|
89474
89474
|
DotLabel,
|
|
89475
|
-
Buffer.from(
|
|
89475
|
+
Buffer.from(util542.base64url.encode(iv), "utf8"),
|
|
89476
89476
|
DotLabel,
|
|
89477
|
-
Buffer.from(
|
|
89477
|
+
Buffer.from(util542.base64url.encode(cdata), "utf8")
|
|
89478
89478
|
]);
|
|
89479
89479
|
try {
|
|
89480
89480
|
return HMAC["HS" + size * 2].verify(cik, mdata, tag, {
|
|
@@ -89519,23 +89519,23 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
|
|
|
89519
89519
|
var require_umd = __commonJS2({
|
|
89520
89520
|
"node_modules/long/umd/index.js"(exports2, module2) {
|
|
89521
89521
|
"use strict";
|
|
89522
|
-
(function(global2,
|
|
89522
|
+
(function(global2, factory2) {
|
|
89523
89523
|
function preferDefault(exports3) {
|
|
89524
89524
|
return exports3.default || exports3;
|
|
89525
89525
|
}
|
|
89526
89526
|
if (typeof define === "function" && define.amd) {
|
|
89527
89527
|
define([], function() {
|
|
89528
89528
|
var exports3 = {};
|
|
89529
|
-
|
|
89529
|
+
factory2(exports3);
|
|
89530
89530
|
return preferDefault(exports3);
|
|
89531
89531
|
});
|
|
89532
89532
|
} else if (typeof exports2 === "object") {
|
|
89533
|
-
|
|
89533
|
+
factory2(exports2);
|
|
89534
89534
|
if (typeof module2 === "object") module2.exports = preferDefault(exports2);
|
|
89535
89535
|
} else {
|
|
89536
89536
|
(function() {
|
|
89537
89537
|
var exports3 = {};
|
|
89538
|
-
|
|
89538
|
+
factory2(exports3);
|
|
89539
89539
|
global2.Long = preferDefault(exports3);
|
|
89540
89540
|
})();
|
|
89541
89541
|
}
|
|
@@ -91235,7 +91235,7 @@ var require_aes_gcm = __commonJS2({
|
|
|
91235
91235
|
"node_modules/node-jose/lib/algorithms/aes-gcm.js"(exports2, module2) {
|
|
91236
91236
|
"use strict";
|
|
91237
91237
|
var helpers = require_helpers4();
|
|
91238
|
-
var
|
|
91238
|
+
var util542 = require_util5();
|
|
91239
91239
|
var CONSTANTS = require_constants4();
|
|
91240
91240
|
var GCM = require_gcm();
|
|
91241
91241
|
function gcmEncryptFN(size, wrap7) {
|
|
@@ -91252,8 +91252,8 @@ var require_aes_gcm = __commonJS2({
|
|
|
91252
91252
|
}
|
|
91253
91253
|
function prepareResults(results) {
|
|
91254
91254
|
if (wrap7) {
|
|
91255
|
-
var iv =
|
|
91256
|
-
var tag =
|
|
91255
|
+
var iv = util542.base64url.encode(results.iv);
|
|
91256
|
+
var tag = util542.base64url.encode(results.tag);
|
|
91257
91257
|
results = {
|
|
91258
91258
|
data: results.data,
|
|
91259
91259
|
header: {
|
|
@@ -91271,7 +91271,7 @@ var require_aes_gcm = __commonJS2({
|
|
|
91271
91271
|
} catch (err) {
|
|
91272
91272
|
return Promise.reject(err);
|
|
91273
91273
|
}
|
|
91274
|
-
iv = iv ||
|
|
91274
|
+
iv = iv || util542.randomBytes(12);
|
|
91275
91275
|
cipher = GCM.createCipher({
|
|
91276
91276
|
key,
|
|
91277
91277
|
iv,
|
|
@@ -91316,7 +91316,7 @@ var require_aes_gcm = __commonJS2({
|
|
|
91316
91316
|
} catch (err) {
|
|
91317
91317
|
return Promise.reject(err);
|
|
91318
91318
|
}
|
|
91319
|
-
iv = iv ||
|
|
91319
|
+
iv = iv || util542.randomBytes(12);
|
|
91320
91320
|
var alg = {
|
|
91321
91321
|
name: "AES-GCM"
|
|
91322
91322
|
};
|
|
@@ -91351,7 +91351,7 @@ var require_aes_gcm = __commonJS2({
|
|
|
91351
91351
|
} catch (err) {
|
|
91352
91352
|
return Promise.reject(err);
|
|
91353
91353
|
}
|
|
91354
|
-
iv = iv ||
|
|
91354
|
+
iv = iv || util542.randomBytes(12);
|
|
91355
91355
|
var alg = "aes-" + key.length * 8 + "-gcm";
|
|
91356
91356
|
var cipher;
|
|
91357
91357
|
try {
|
|
@@ -92423,7 +92423,7 @@ var require_ec_util = __commonJS2({
|
|
|
92423
92423
|
var clone = require_clone2();
|
|
92424
92424
|
var ecc = require_ecc();
|
|
92425
92425
|
var forge = require_forge2();
|
|
92426
|
-
var
|
|
92426
|
+
var util542 = require_util5();
|
|
92427
92427
|
var EC_KEYSIZES = {
|
|
92428
92428
|
"P-256": 256,
|
|
92429
92429
|
"P-384": 384,
|
|
@@ -92442,7 +92442,7 @@ var require_ec_util = __commonJS2({
|
|
|
92442
92442
|
var result = clone(key);
|
|
92443
92443
|
var parts = isPublic ? ["x", "y"] : ["x", "y", "d"];
|
|
92444
92444
|
parts.forEach(function(f7) {
|
|
92445
|
-
result[f7] =
|
|
92445
|
+
result[f7] = util542.base64url.encode(result[f7]);
|
|
92446
92446
|
});
|
|
92447
92447
|
delete result.key_ops;
|
|
92448
92448
|
delete result.use;
|
|
@@ -92456,7 +92456,7 @@ var require_ec_util = __commonJS2({
|
|
|
92456
92456
|
var result = clone(key);
|
|
92457
92457
|
var parts = isPublic ? ["x", "y"] : ["d"];
|
|
92458
92458
|
parts.forEach(function(f7) {
|
|
92459
|
-
result[f7] =
|
|
92459
|
+
result[f7] = util542.asBuffer(result[f7], "base64url");
|
|
92460
92460
|
});
|
|
92461
92461
|
return result;
|
|
92462
92462
|
}
|
|
@@ -92704,7 +92704,7 @@ var require_ecdh = __commonJS2({
|
|
|
92704
92704
|
"node_modules/node-jose/lib/algorithms/ecdh.js"(exports2, module2) {
|
|
92705
92705
|
"use strict";
|
|
92706
92706
|
var merge2 = require_merge2();
|
|
92707
|
-
var
|
|
92707
|
+
var util542 = require_util5();
|
|
92708
92708
|
var ecUtil = require_ec_util();
|
|
92709
92709
|
var hkdf = require_hkdf();
|
|
92710
92710
|
var concat = require_concat();
|
|
@@ -92893,7 +92893,7 @@ var require_ecdh = __commonJS2({
|
|
|
92893
92893
|
input
|
|
92894
92894
|
]);
|
|
92895
92895
|
}
|
|
92896
|
-
var algId = props.algorithm || "", keyLen = CONSTANTS.KEYLENGTH[algId], apu =
|
|
92896
|
+
var algId = props.algorithm || "", keyLen = CONSTANTS.KEYLENGTH[algId], apu = util542.asBuffer(props.apu || "", "base64url"), apv = util542.asBuffer(props.apv || "", "base64url");
|
|
92897
92897
|
var otherInfo = Buffer.concat([
|
|
92898
92898
|
prependLen(Buffer.from(algId, "utf8")),
|
|
92899
92899
|
prependLen(apu),
|
|
@@ -93278,7 +93278,7 @@ var require_pbes2 = __commonJS2({
|
|
|
93278
93278
|
"use strict";
|
|
93279
93279
|
var forge = require_forge2();
|
|
93280
93280
|
var merge2 = require_merge2();
|
|
93281
|
-
var
|
|
93281
|
+
var util542 = require_util5();
|
|
93282
93282
|
var helpers = require_helpers4();
|
|
93283
93283
|
var CONSTANTS = require_constants4();
|
|
93284
93284
|
var KW = require_aes_kw();
|
|
@@ -93298,7 +93298,7 @@ var require_pbes2 = __commonJS2({
|
|
|
93298
93298
|
function prepareProps(props) {
|
|
93299
93299
|
props = props || {};
|
|
93300
93300
|
var keyLen = props.length || 0;
|
|
93301
|
-
var salt =
|
|
93301
|
+
var salt = util542.asBuffer(props.salt || Buffer.alloc(0), "base64u4l"), itrs = props.iterations || 0;
|
|
93302
93302
|
if (0 >= keyLen) {
|
|
93303
93303
|
throw new Error("invalid key length");
|
|
93304
93304
|
}
|
|
@@ -93359,7 +93359,7 @@ var require_pbes2 = __commonJS2({
|
|
|
93359
93359
|
return helpers.subtleCrypto.deriveBits(mainAlgo, key2, keyLen * 8);
|
|
93360
93360
|
});
|
|
93361
93361
|
promise5 = promise5.then(function(result) {
|
|
93362
|
-
return
|
|
93362
|
+
return util542.asBuffer(result);
|
|
93363
93363
|
});
|
|
93364
93364
|
return promise5;
|
|
93365
93365
|
};
|
|
@@ -93393,17 +93393,17 @@ var require_pbes2 = __commonJS2({
|
|
|
93393
93393
|
var keyLen = CONSTANTS.KEYLENGTH[kw] / 8;
|
|
93394
93394
|
return function(key, pdata, props) {
|
|
93395
93395
|
props = props || {};
|
|
93396
|
-
var salt =
|
|
93396
|
+
var salt = util542.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || DEFAULT_ITERATIONS;
|
|
93397
93397
|
if (0 >= itrs) {
|
|
93398
93398
|
throw new Error("invalid iteration count");
|
|
93399
93399
|
}
|
|
93400
93400
|
if (0 === salt.length) {
|
|
93401
|
-
salt =
|
|
93401
|
+
salt = util542.randomBytes(DEFAULT_SALT_LENGTH);
|
|
93402
93402
|
} else if (8 > salt.length) {
|
|
93403
93403
|
throw new Error("salt too small");
|
|
93404
93404
|
}
|
|
93405
93405
|
var header = {
|
|
93406
|
-
p2s:
|
|
93406
|
+
p2s: util542.base64url.encode(salt),
|
|
93407
93407
|
p2c: itrs
|
|
93408
93408
|
};
|
|
93409
93409
|
salt = fixSalt(hmac, kw, salt);
|
|
@@ -93431,7 +93431,7 @@ var require_pbes2 = __commonJS2({
|
|
|
93431
93431
|
var keyLen = CONSTANTS.KEYLENGTH[kw] / 8;
|
|
93432
93432
|
return function(key, cdata, props) {
|
|
93433
93433
|
props = props || {};
|
|
93434
|
-
var salt =
|
|
93434
|
+
var salt = util542.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || 0;
|
|
93435
93435
|
if (0 >= itrs) {
|
|
93436
93436
|
return Promise.reject(new Error("invalid iteration count"));
|
|
93437
93437
|
}
|
|
@@ -93485,7 +93485,7 @@ var require_rsa_util = __commonJS2({
|
|
|
93485
93485
|
"use strict";
|
|
93486
93486
|
var clone = require_clone2();
|
|
93487
93487
|
var forge = require_forge2();
|
|
93488
|
-
var
|
|
93488
|
+
var util542 = require_util5();
|
|
93489
93489
|
function convertToForge(key, isPublic) {
|
|
93490
93490
|
var parts = isPublic ? ["n", "e"] : ["n", "e", "d", "p", "q", "dp", "dq", "qi"];
|
|
93491
93491
|
parts = parts.map(function(f7) {
|
|
@@ -93498,7 +93498,7 @@ var require_rsa_util = __commonJS2({
|
|
|
93498
93498
|
var result = clone(key);
|
|
93499
93499
|
var parts = isPublic ? ["n", "e"] : ["n", "e", "d", "p", "q", "dp", "dq", "qi"];
|
|
93500
93500
|
parts.forEach(function(f7) {
|
|
93501
|
-
result[f7] =
|
|
93501
|
+
result[f7] = util542.base64url.encode(result[f7]);
|
|
93502
93502
|
});
|
|
93503
93503
|
delete result.key_ops;
|
|
93504
93504
|
delete result.use;
|
|
@@ -94077,7 +94077,7 @@ var require_helpers7 = __commonJS2({
|
|
|
94077
94077
|
"node_modules/node-jose/lib/jwk/helpers.js"(exports2, module2) {
|
|
94078
94078
|
"use strict";
|
|
94079
94079
|
var clone = require_clone2();
|
|
94080
|
-
var
|
|
94080
|
+
var util542 = require_util5();
|
|
94081
94081
|
var forge = require_forge2();
|
|
94082
94082
|
var ALGORITHMS = require_algorithms();
|
|
94083
94083
|
var privateKeyValidator = {
|
|
@@ -94375,7 +94375,7 @@ var require_helpers7 = __commonJS2({
|
|
|
94375
94375
|
var input = Object.keys(fields).sort().map(function(k2) {
|
|
94376
94376
|
var v = fields[k2];
|
|
94377
94377
|
if (Buffer.isBuffer(v)) {
|
|
94378
|
-
v =
|
|
94378
|
+
v = util542.base64url.encode(v);
|
|
94379
94379
|
}
|
|
94380
94380
|
return JSON.stringify(k2) + ":" + JSON.stringify(v);
|
|
94381
94381
|
});
|
|
@@ -94397,9 +94397,9 @@ var require_helpers7 = __commonJS2({
|
|
|
94397
94397
|
switch (cfg.type) {
|
|
94398
94398
|
case "binary":
|
|
94399
94399
|
if (Buffer.isBuffer(value)) {
|
|
94400
|
-
props[cfg.name] =
|
|
94400
|
+
props[cfg.name] = util542.base64url.encode(value);
|
|
94401
94401
|
} else {
|
|
94402
|
-
value =
|
|
94402
|
+
value = util542.base64url.decode(value);
|
|
94403
94403
|
}
|
|
94404
94404
|
break;
|
|
94405
94405
|
case "string":
|
|
@@ -94785,7 +94785,7 @@ var require_keystore = __commonJS2({
|
|
|
94785
94785
|
var clone = require_clone2();
|
|
94786
94786
|
var merge2 = require_merge2();
|
|
94787
94787
|
var forge = require_forge2();
|
|
94788
|
-
var
|
|
94788
|
+
var util542 = require_util5();
|
|
94789
94789
|
var JWK = {
|
|
94790
94790
|
BaseKey: require_basekey(),
|
|
94791
94791
|
helpers: require_helpers7()
|
|
@@ -94793,22 +94793,22 @@ var require_keystore = __commonJS2({
|
|
|
94793
94793
|
var JWKRegistry = function() {
|
|
94794
94794
|
var types = {};
|
|
94795
94795
|
Object.defineProperty(this, "register", {
|
|
94796
|
-
value: function(
|
|
94797
|
-
if (!
|
|
94796
|
+
value: function(factory2) {
|
|
94797
|
+
if (!factory2 || "string" !== typeof factory2.kty || !factory2.kty) {
|
|
94798
94798
|
throw new Error("invalid Key factory");
|
|
94799
94799
|
}
|
|
94800
|
-
var kty =
|
|
94801
|
-
types[kty] =
|
|
94800
|
+
var kty = factory2.kty;
|
|
94801
|
+
types[kty] = factory2;
|
|
94802
94802
|
return this;
|
|
94803
94803
|
}
|
|
94804
94804
|
});
|
|
94805
94805
|
Object.defineProperty(this, "unregister", {
|
|
94806
|
-
value: function(
|
|
94807
|
-
if (!
|
|
94806
|
+
value: function(factory2) {
|
|
94807
|
+
if (!factory2 || "string" !== typeof factory2.kty || !factory2.kty) {
|
|
94808
94808
|
throw new Error("invalid Key factory");
|
|
94809
94809
|
}
|
|
94810
|
-
var kty =
|
|
94811
|
-
if (
|
|
94810
|
+
var kty = factory2.kty;
|
|
94811
|
+
if (factory2 === types[kty]) {
|
|
94812
94812
|
delete types[kty];
|
|
94813
94813
|
}
|
|
94814
94814
|
return this;
|
|
@@ -94874,14 +94874,14 @@ var require_keystore = __commonJS2({
|
|
|
94874
94874
|
input = forge.asn1.fromDer(der);
|
|
94875
94875
|
switch (form) {
|
|
94876
94876
|
case "private":
|
|
94877
|
-
registry.all().some(function(
|
|
94877
|
+
registry.all().some(function(factory2) {
|
|
94878
94878
|
if (result) {
|
|
94879
94879
|
return false;
|
|
94880
94880
|
}
|
|
94881
|
-
if (!
|
|
94881
|
+
if (!factory2.validators) {
|
|
94882
94882
|
return false;
|
|
94883
94883
|
}
|
|
94884
|
-
var oid =
|
|
94884
|
+
var oid = factory2.validators.oid, validator = factory2.validators.privateKey;
|
|
94885
94885
|
if (!validator) {
|
|
94886
94886
|
return false;
|
|
94887
94887
|
}
|
|
@@ -94914,7 +94914,7 @@ var require_keystore = __commonJS2({
|
|
|
94914
94914
|
capture = processCert(capture);
|
|
94915
94915
|
var md = forge.md.sha1.create();
|
|
94916
94916
|
md.update(der);
|
|
94917
|
-
thumbprint =
|
|
94917
|
+
thumbprint = util542.base64url.encode(Buffer.from(md.digest().toHex(), "hex"));
|
|
94918
94918
|
}
|
|
94919
94919
|
capture.type = "public";
|
|
94920
94920
|
break;
|
|
@@ -94926,17 +94926,17 @@ var require_keystore = __commonJS2({
|
|
|
94926
94926
|
capture.keyOid = forge.asn1.derToOid(capture.keyOid);
|
|
94927
94927
|
}
|
|
94928
94928
|
result = null;
|
|
94929
|
-
GLOBAL_REGISTRY.all().forEach(function(
|
|
94929
|
+
GLOBAL_REGISTRY.all().forEach(function(factory2) {
|
|
94930
94930
|
if (result) {
|
|
94931
94931
|
return;
|
|
94932
94932
|
}
|
|
94933
|
-
if (!
|
|
94933
|
+
if (!factory2) {
|
|
94934
94934
|
return;
|
|
94935
94935
|
}
|
|
94936
|
-
if ("function" !== typeof
|
|
94936
|
+
if ("function" !== typeof factory2.import) {
|
|
94937
94937
|
return;
|
|
94938
94938
|
}
|
|
94939
|
-
result =
|
|
94939
|
+
result = factory2.import(capture);
|
|
94940
94940
|
});
|
|
94941
94941
|
if (result && capture.certSubject && capture.certSubject.commonName) {
|
|
94942
94942
|
result.kid = capture.certSubject.commonName;
|
|
@@ -95190,7 +95190,7 @@ var require_keystore = __commonJS2({
|
|
|
95190
95190
|
var require_octkey = __commonJS2({
|
|
95191
95191
|
"node_modules/node-jose/lib/jwk/octkey.js"(exports2, module2) {
|
|
95192
95192
|
"use strict";
|
|
95193
|
-
var
|
|
95193
|
+
var util542 = require_util5();
|
|
95194
95194
|
var JWK = {
|
|
95195
95195
|
BaseKey: require_basekey(),
|
|
95196
95196
|
helpers: require_helpers7()
|
|
@@ -95225,22 +95225,22 @@ var require_octkey = __commonJS2({
|
|
|
95225
95225
|
];
|
|
95226
95226
|
function adjustDecryptProps(alg, props) {
|
|
95227
95227
|
if ("iv" in props) {
|
|
95228
|
-
props.iv = Buffer.isBuffer(props.iv) ? props.iv :
|
|
95228
|
+
props.iv = Buffer.isBuffer(props.iv) ? props.iv : util542.base64url.decode(props.iv || "");
|
|
95229
95229
|
}
|
|
95230
95230
|
if ("adata" in props) {
|
|
95231
95231
|
props.adata = Buffer.isBuffer(props.adata) ? props.adata : Buffer.from(props.adata || "", "utf8");
|
|
95232
95232
|
}
|
|
95233
95233
|
if ("mac" in props) {
|
|
95234
|
-
props.mac = Buffer.isBuffer(props.mac) ? props.mac :
|
|
95234
|
+
props.mac = Buffer.isBuffer(props.mac) ? props.mac : util542.base64url.decode(props.mac || "");
|
|
95235
95235
|
}
|
|
95236
95236
|
if ("tag" in props) {
|
|
95237
|
-
props.tag = Buffer.isBuffer(props.tag) ? props.tag :
|
|
95237
|
+
props.tag = Buffer.isBuffer(props.tag) ? props.tag : util542.base64url.decode(props.tag || "");
|
|
95238
95238
|
}
|
|
95239
95239
|
return props;
|
|
95240
95240
|
}
|
|
95241
95241
|
function adjustEncryptProps(alg, props) {
|
|
95242
95242
|
if ("iv" in props) {
|
|
95243
|
-
props.iv = Buffer.isBuffer(props.iv) ? props.iv :
|
|
95243
|
+
props.iv = Buffer.isBuffer(props.iv) ? props.iv : util542.base64url.decode(props.iv || "");
|
|
95244
95244
|
}
|
|
95245
95245
|
if ("adata" in props) {
|
|
95246
95246
|
props.adata = Buffer.isBuffer(props.adata) ? props.adata : Buffer.from(props.adata || "", "utf8");
|
|
@@ -95350,7 +95350,7 @@ var require_octkey = __commonJS2({
|
|
|
95350
95350
|
return p;
|
|
95351
95351
|
},
|
|
95352
95352
|
generate: function(size) {
|
|
95353
|
-
var key =
|
|
95353
|
+
var key = util542.randomBytes(size / 8);
|
|
95354
95354
|
return Promise.resolve({
|
|
95355
95355
|
k: key
|
|
95356
95356
|
});
|
|
@@ -96046,7 +96046,7 @@ var require_sign2 = __commonJS2({
|
|
|
96046
96046
|
"node_modules/node-jose/lib/jws/sign.js"(exports2, module2) {
|
|
96047
96047
|
"use strict";
|
|
96048
96048
|
var merge2 = require_merge2();
|
|
96049
|
-
var
|
|
96049
|
+
var util542 = require_util5();
|
|
96050
96050
|
var JWK = require_jwk();
|
|
96051
96051
|
var slice = require_helpers8().slice;
|
|
96052
96052
|
var clone = require_clone2();
|
|
@@ -96072,7 +96072,7 @@ var require_sign2 = __commonJS2({
|
|
|
96072
96072
|
throw new Error("already final");
|
|
96073
96073
|
}
|
|
96074
96074
|
if (data2 != null) {
|
|
96075
|
-
data2 =
|
|
96075
|
+
data2 = util542.asBuffer(data2, encoding);
|
|
96076
96076
|
if (content.length) {
|
|
96077
96077
|
content = Buffer.concat(
|
|
96078
96078
|
[content, data2],
|
|
@@ -96095,7 +96095,7 @@ var require_sign2 = __commonJS2({
|
|
|
96095
96095
|
var promise5;
|
|
96096
96096
|
promise5 = Promise.all(signatories);
|
|
96097
96097
|
promise5 = promise5.then(function(sigs) {
|
|
96098
|
-
content =
|
|
96098
|
+
content = util542.base64url.encode(content);
|
|
96099
96099
|
sigs = sigs.map(function(s4) {
|
|
96100
96100
|
var protect = {}, lenProtect = 0, unprotect = clone(s4.header), lenUnprotect = Object.keys(unprotect).length;
|
|
96101
96101
|
s4.protected.forEach(function(h2) {
|
|
@@ -96109,7 +96109,7 @@ var require_sign2 = __commonJS2({
|
|
|
96109
96109
|
});
|
|
96110
96110
|
if (lenProtect > 0) {
|
|
96111
96111
|
protect = JSON.stringify(protect);
|
|
96112
|
-
protect =
|
|
96112
|
+
protect = util542.base64url.encode(protect);
|
|
96113
96113
|
} else {
|
|
96114
96114
|
protect = "";
|
|
96115
96115
|
}
|
|
@@ -96123,7 +96123,7 @@ var require_sign2 = __commonJS2({
|
|
|
96123
96123
|
if (0 < lenUnprotect) {
|
|
96124
96124
|
sig.header = unprotect;
|
|
96125
96125
|
}
|
|
96126
|
-
sig.signature =
|
|
96126
|
+
sig.signature = util542.base64url.encode(result.mac);
|
|
96127
96127
|
return sig;
|
|
96128
96128
|
});
|
|
96129
96129
|
return s4;
|
|
@@ -100850,7 +100850,7 @@ var require_defaults2 = __commonJS2({
|
|
|
100850
100850
|
var require_encrypt = __commonJS2({
|
|
100851
100851
|
"node_modules/node-jose/lib/jwe/encrypt.js"(exports2, module2) {
|
|
100852
100852
|
"use strict";
|
|
100853
|
-
var
|
|
100853
|
+
var util542 = require_util5();
|
|
100854
100854
|
var generateCEK = require_helpers9().generateCEK;
|
|
100855
100855
|
var JWK = require_jwk();
|
|
100856
100856
|
var slice = require_helpers9().slice;
|
|
@@ -100897,7 +100897,7 @@ var require_encrypt = __commonJS2({
|
|
|
100897
100897
|
throw new Error("already final");
|
|
100898
100898
|
}
|
|
100899
100899
|
if (data2 != null) {
|
|
100900
|
-
data2 =
|
|
100900
|
+
data2 = util542.asBuffer(data2, encoding);
|
|
100901
100901
|
if (content.length) {
|
|
100902
100902
|
content = Buffer.concat(
|
|
100903
100903
|
[content, data2],
|
|
@@ -100986,7 +100986,7 @@ var require_encrypt = __commonJS2({
|
|
|
100986
100986
|
var rjwe = {}, cek;
|
|
100987
100987
|
if (wrapped.data) {
|
|
100988
100988
|
cek = wrapped.data;
|
|
100989
|
-
cek =
|
|
100989
|
+
cek = util542.base64url.encode(cek);
|
|
100990
100990
|
}
|
|
100991
100991
|
if (wrapped.direct && cek) {
|
|
100992
100992
|
encKey = JWK.asKey({
|
|
@@ -101082,7 +101082,7 @@ var require_encrypt = __commonJS2({
|
|
|
101082
101082
|
if (protect && lenProtect > 0) {
|
|
101083
101083
|
props = assign6(props, protect);
|
|
101084
101084
|
protect = JSON.stringify(protect);
|
|
101085
|
-
jwe.protected =
|
|
101085
|
+
jwe.protected = util542.base64url.encode(protect, "utf8");
|
|
101086
101086
|
}
|
|
101087
101087
|
return jwe;
|
|
101088
101088
|
});
|
|
@@ -101110,9 +101110,9 @@ var require_encrypt = __commonJS2({
|
|
|
101110
101110
|
props.adata += "." + cfg.aad;
|
|
101111
101111
|
props.adata = Buffer.from(props.adata, "utf8");
|
|
101112
101112
|
}
|
|
101113
|
-
var iv = cfg.iv ||
|
|
101113
|
+
var iv = cfg.iv || util542.randomBytes(CONSTANTS.NONCELENGTH[encAlg] / 8);
|
|
101114
101114
|
if ("string" === typeof iv) {
|
|
101115
|
-
iv =
|
|
101115
|
+
iv = util542.base64url.decode(iv);
|
|
101116
101116
|
}
|
|
101117
101117
|
props.iv = iv;
|
|
101118
101118
|
if ("recipients" in jwe && jwe.recipients.length === 1) {
|
|
@@ -101129,12 +101129,12 @@ var require_encrypt = __commonJS2({
|
|
|
101129
101129
|
return encKey.then(function(encKey2) {
|
|
101130
101130
|
var p = encKey2.encrypt(encAlg, pdata, props);
|
|
101131
101131
|
p = p.then(function(result) {
|
|
101132
|
-
jwe.iv =
|
|
101132
|
+
jwe.iv = util542.base64url.encode(iv, "binary");
|
|
101133
101133
|
if ("aad" in cfg && cfg.aad != null) {
|
|
101134
101134
|
jwe.aad = cfg.aad;
|
|
101135
101135
|
}
|
|
101136
|
-
jwe.ciphertext =
|
|
101137
|
-
jwe.tag =
|
|
101136
|
+
jwe.ciphertext = util542.base64url.encode(result.data, "binary");
|
|
101137
|
+
jwe.tag = util542.base64url.encode(result.tag, "binary");
|
|
101138
101138
|
return jwe;
|
|
101139
101139
|
});
|
|
101140
101140
|
return p;
|
|
@@ -101337,7 +101337,7 @@ var require_encrypt = __commonJS2({
|
|
|
101337
101337
|
return p;
|
|
101338
101338
|
});
|
|
101339
101339
|
var cfg = {
|
|
101340
|
-
aad: "aad" in options ?
|
|
101340
|
+
aad: "aad" in options ? util542.base64url.encode(options.aad || "") : null,
|
|
101341
101341
|
contentAlg: options.contentAlg,
|
|
101342
101342
|
format: options.format,
|
|
101343
101343
|
protect: options.protect,
|
|
@@ -101990,7 +101990,7 @@ var _global = (() => {
|
|
|
101990
101990
|
})();
|
|
101991
101991
|
var isContextDefined = (context) => !isUndefined(context) && context !== _global;
|
|
101992
101992
|
function merge() {
|
|
101993
|
-
const { caseless } = isContextDefined(this) && this || {};
|
|
101993
|
+
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
|
101994
101994
|
const result = {};
|
|
101995
101995
|
const assignValue3 = (val, key) => {
|
|
101996
101996
|
const targetKey = caseless && findKey(result, key) || key;
|
|
@@ -102000,7 +102000,7 @@ function merge() {
|
|
|
102000
102000
|
result[targetKey] = merge({}, val);
|
|
102001
102001
|
} else if (isArray(val)) {
|
|
102002
102002
|
result[targetKey] = val.slice();
|
|
102003
|
-
} else {
|
|
102003
|
+
} else if (!skipUndefined || !isUndefined(val)) {
|
|
102004
102004
|
result[targetKey] = val;
|
|
102005
102005
|
}
|
|
102006
102006
|
};
|
|
@@ -102329,9 +102329,13 @@ AxiosError.from = (error2, code, config, request, response, customProps) => {
|
|
|
102329
102329
|
}, (prop) => {
|
|
102330
102330
|
return prop !== "isAxiosError";
|
|
102331
102331
|
});
|
|
102332
|
-
|
|
102333
|
-
|
|
102334
|
-
axiosError
|
|
102332
|
+
const msg = error2 && error2.message ? error2.message : "Error";
|
|
102333
|
+
const errCode = code == null && error2 ? error2.code : code;
|
|
102334
|
+
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
102335
|
+
if (error2 && axiosError.cause == null) {
|
|
102336
|
+
Object.defineProperty(axiosError, "cause", { value: error2, configurable: true });
|
|
102337
|
+
}
|
|
102338
|
+
axiosError.name = error2 && error2.name || "Error";
|
|
102335
102339
|
customProps && Object.assign(axiosError, customProps);
|
|
102336
102340
|
return axiosError;
|
|
102337
102341
|
};
|
|
@@ -102483,7 +102487,7 @@ prototype2.toString = function toString2(encoder) {
|
|
|
102483
102487
|
};
|
|
102484
102488
|
var AxiosURLSearchParams_default = AxiosURLSearchParams;
|
|
102485
102489
|
function encode2(val) {
|
|
102486
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+")
|
|
102490
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
102487
102491
|
}
|
|
102488
102492
|
function buildURL(url5, params, options) {
|
|
102489
102493
|
if (!params) {
|
|
@@ -102758,7 +102762,7 @@ var defaults = {
|
|
|
102758
102762
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
102759
102763
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
102760
102764
|
try {
|
|
102761
|
-
return JSON.parse(data2);
|
|
102765
|
+
return JSON.parse(data2, this.parseReviver);
|
|
102762
102766
|
} catch (e) {
|
|
102763
102767
|
if (strictJSONParsing) {
|
|
102764
102768
|
if (e.name === "SyntaxError") {
|
|
@@ -103118,7 +103122,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
103118
103122
|
}
|
|
103119
103123
|
var import_proxy_from_env = __toESM2(require_proxy_from_env(), 1);
|
|
103120
103124
|
var import_follow_redirects = __toESM2(require_follow_redirects(), 1);
|
|
103121
|
-
var VERSION = "1.
|
|
103125
|
+
var VERSION = "1.12.2";
|
|
103122
103126
|
function parseProtocol(url5) {
|
|
103123
103127
|
const match2 = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url5);
|
|
103124
103128
|
return match2 && match2[1] || "";
|
|
@@ -103484,6 +103488,55 @@ var progressEventDecorator = (total, throttled) => {
|
|
|
103484
103488
|
}), throttled[1]];
|
|
103485
103489
|
};
|
|
103486
103490
|
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
103491
|
+
function estimateDataURLDecodedBytes(url5) {
|
|
103492
|
+
if (!url5 || typeof url5 !== "string") return 0;
|
|
103493
|
+
if (!url5.startsWith("data:")) return 0;
|
|
103494
|
+
const comma = url5.indexOf(",");
|
|
103495
|
+
if (comma < 0) return 0;
|
|
103496
|
+
const meta = url5.slice(5, comma);
|
|
103497
|
+
const body2 = url5.slice(comma + 1);
|
|
103498
|
+
const isBase64 = /;base64/i.test(meta);
|
|
103499
|
+
if (isBase64) {
|
|
103500
|
+
let effectiveLen = body2.length;
|
|
103501
|
+
const len = body2.length;
|
|
103502
|
+
for (let i2 = 0; i2 < len; i2++) {
|
|
103503
|
+
if (body2.charCodeAt(i2) === 37 && i2 + 2 < len) {
|
|
103504
|
+
const a = body2.charCodeAt(i2 + 1);
|
|
103505
|
+
const b = body2.charCodeAt(i2 + 2);
|
|
103506
|
+
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
|
103507
|
+
if (isHex) {
|
|
103508
|
+
effectiveLen -= 2;
|
|
103509
|
+
i2 += 2;
|
|
103510
|
+
}
|
|
103511
|
+
}
|
|
103512
|
+
}
|
|
103513
|
+
let pad = 0;
|
|
103514
|
+
let idx = len - 1;
|
|
103515
|
+
const tailIsPct3D = (j2) => j2 >= 2 && body2.charCodeAt(j2 - 2) === 37 && // '%'
|
|
103516
|
+
body2.charCodeAt(j2 - 1) === 51 && // '3'
|
|
103517
|
+
(body2.charCodeAt(j2) === 68 || body2.charCodeAt(j2) === 100);
|
|
103518
|
+
if (idx >= 0) {
|
|
103519
|
+
if (body2.charCodeAt(idx) === 61) {
|
|
103520
|
+
pad++;
|
|
103521
|
+
idx--;
|
|
103522
|
+
} else if (tailIsPct3D(idx)) {
|
|
103523
|
+
pad++;
|
|
103524
|
+
idx -= 3;
|
|
103525
|
+
}
|
|
103526
|
+
}
|
|
103527
|
+
if (pad === 1 && idx >= 0) {
|
|
103528
|
+
if (body2.charCodeAt(idx) === 61) {
|
|
103529
|
+
pad++;
|
|
103530
|
+
} else if (tailIsPct3D(idx)) {
|
|
103531
|
+
pad++;
|
|
103532
|
+
}
|
|
103533
|
+
}
|
|
103534
|
+
const groups = Math.floor(effectiveLen / 4);
|
|
103535
|
+
const bytes = groups * 3 - (pad || 0);
|
|
103536
|
+
return bytes > 0 ? bytes : 0;
|
|
103537
|
+
}
|
|
103538
|
+
return Buffer.byteLength(body2, "utf8");
|
|
103539
|
+
}
|
|
103487
103540
|
var zlibOptions = {
|
|
103488
103541
|
flush: _zlib2.default.constants.Z_SYNC_FLUSH,
|
|
103489
103542
|
finishFlush: _zlib2.default.constants.Z_SYNC_FLUSH
|
|
@@ -103625,6 +103678,17 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
103625
103678
|
const parsed = new URL(fullPath, platform_default.hasBrowserEnv ? platform_default.origin : void 0);
|
|
103626
103679
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
103627
103680
|
if (protocol === "data:") {
|
|
103681
|
+
if (config.maxContentLength > -1) {
|
|
103682
|
+
const dataUrl = String(config.url || fullPath || "");
|
|
103683
|
+
const estimated = estimateDataURLDecodedBytes(dataUrl);
|
|
103684
|
+
if (estimated > config.maxContentLength) {
|
|
103685
|
+
return reject5(new AxiosError_default(
|
|
103686
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
103687
|
+
AxiosError_default.ERR_BAD_RESPONSE,
|
|
103688
|
+
config
|
|
103689
|
+
));
|
|
103690
|
+
}
|
|
103691
|
+
}
|
|
103628
103692
|
let convertedData;
|
|
103629
103693
|
if (method2 !== "GET") {
|
|
103630
103694
|
return settle(resolve52, reject5, {
|
|
@@ -104110,13 +104174,17 @@ var resolveConfig_default = (config) => {
|
|
|
104110
104174
|
"Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : ""))
|
|
104111
104175
|
);
|
|
104112
104176
|
}
|
|
104113
|
-
let contentType;
|
|
104114
104177
|
if (utils_default.isFormData(data2)) {
|
|
104115
104178
|
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
104116
104179
|
headers2.setContentType(void 0);
|
|
104117
|
-
} else if ((
|
|
104118
|
-
const
|
|
104119
|
-
|
|
104180
|
+
} else if (utils_default.isFunction(data2.getHeaders)) {
|
|
104181
|
+
const formHeaders = data2.getHeaders();
|
|
104182
|
+
const allowedHeaders = ["content-type", "content-length"];
|
|
104183
|
+
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
104184
|
+
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
104185
|
+
headers2.set(key, val);
|
|
104186
|
+
}
|
|
104187
|
+
});
|
|
104120
104188
|
}
|
|
104121
104189
|
}
|
|
104122
104190
|
if (platform_default.hasStandardBrowserEnv) {
|
|
@@ -104194,8 +104262,11 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
104194
104262
|
reject5(new AxiosError_default("Request aborted", AxiosError_default.ECONNABORTED, config, request));
|
|
104195
104263
|
request = null;
|
|
104196
104264
|
};
|
|
104197
|
-
request.onerror = function handleError() {
|
|
104198
|
-
|
|
104265
|
+
request.onerror = function handleError(event) {
|
|
104266
|
+
const msg = event && event.message ? event.message : "Network Error";
|
|
104267
|
+
const err = new AxiosError_default(msg, AxiosError_default.ERR_NETWORK, config, request);
|
|
104268
|
+
err.event = event || null;
|
|
104269
|
+
reject5(err);
|
|
104199
104270
|
request = null;
|
|
104200
104271
|
};
|
|
104201
104272
|
request.ontimeout = function handleTimeout() {
|
|
@@ -104364,9 +104435,16 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
104364
104435
|
highWaterMark: 2
|
|
104365
104436
|
});
|
|
104366
104437
|
};
|
|
104367
|
-
var
|
|
104368
|
-
var
|
|
104369
|
-
var
|
|
104438
|
+
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
104439
|
+
var { isFunction: isFunction2 } = utils_default;
|
|
104440
|
+
var globalFetchAPI = (({ Request: Request2, Response: Response2 }) => ({
|
|
104441
|
+
Request: Request2,
|
|
104442
|
+
Response: Response2
|
|
104443
|
+
}))(utils_default.global);
|
|
104444
|
+
var {
|
|
104445
|
+
ReadableStream: ReadableStream2,
|
|
104446
|
+
TextEncoder: TextEncoder2
|
|
104447
|
+
} = utils_default.global;
|
|
104370
104448
|
var test = (fn, ...args) => {
|
|
104371
104449
|
try {
|
|
104372
104450
|
return !!fn(...args);
|
|
@@ -104374,162 +104452,202 @@ var test = (fn, ...args) => {
|
|
|
104374
104452
|
return false;
|
|
104375
104453
|
}
|
|
104376
104454
|
};
|
|
104377
|
-
var
|
|
104378
|
-
|
|
104379
|
-
|
|
104380
|
-
|
|
104381
|
-
|
|
104382
|
-
|
|
104383
|
-
|
|
104384
|
-
|
|
104385
|
-
|
|
104386
|
-
|
|
104387
|
-
return duplexAccessed && !hasContentType;
|
|
104388
|
-
});
|
|
104389
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
104390
|
-
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
104391
|
-
var resolvers = {
|
|
104392
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
104393
|
-
};
|
|
104394
|
-
isFetchSupported && ((res) => {
|
|
104395
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
104396
|
-
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
104397
|
-
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
104398
|
-
});
|
|
104399
|
-
});
|
|
104400
|
-
})(new Response());
|
|
104401
|
-
var getBodyLength = async (body2) => {
|
|
104402
|
-
if (body2 == null) {
|
|
104403
|
-
return 0;
|
|
104404
|
-
}
|
|
104405
|
-
if (utils_default.isBlob(body2)) {
|
|
104406
|
-
return body2.size;
|
|
104455
|
+
var factory = (env2) => {
|
|
104456
|
+
env2 = utils_default.merge.call({
|
|
104457
|
+
skipUndefined: true
|
|
104458
|
+
}, globalFetchAPI, env2);
|
|
104459
|
+
const { fetch: envFetch, Request: Request2, Response: Response2 } = env2;
|
|
104460
|
+
const isFetchSupported = envFetch ? isFunction2(envFetch) : typeof fetch === "function";
|
|
104461
|
+
const isRequestSupported = isFunction2(Request2);
|
|
104462
|
+
const isResponseSupported = isFunction2(Response2);
|
|
104463
|
+
if (!isFetchSupported) {
|
|
104464
|
+
return false;
|
|
104407
104465
|
}
|
|
104408
|
-
|
|
104409
|
-
|
|
104466
|
+
const isReadableStreamSupported = isFetchSupported && isFunction2(ReadableStream2);
|
|
104467
|
+
const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request2(str).arrayBuffer()));
|
|
104468
|
+
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
|
|
104469
|
+
let duplexAccessed = false;
|
|
104470
|
+
const hasContentType = new Request2(platform_default.origin, {
|
|
104471
|
+
body: new ReadableStream2(),
|
|
104410
104472
|
method: "POST",
|
|
104411
|
-
|
|
104412
|
-
|
|
104413
|
-
|
|
104414
|
-
|
|
104415
|
-
|
|
104416
|
-
return
|
|
104417
|
-
}
|
|
104418
|
-
if (utils_default.isURLSearchParams(body2)) {
|
|
104419
|
-
body2 = body2 + "";
|
|
104420
|
-
}
|
|
104421
|
-
if (utils_default.isString(body2)) {
|
|
104422
|
-
return (await encodeText(body2)).byteLength;
|
|
104423
|
-
}
|
|
104424
|
-
};
|
|
104425
|
-
var resolveBodyLength = async (headers2, body2) => {
|
|
104426
|
-
const length = utils_default.toFiniteNumber(headers2.getContentLength());
|
|
104427
|
-
return length == null ? getBodyLength(body2) : length;
|
|
104428
|
-
};
|
|
104429
|
-
var fetch_default = isFetchSupported && (async (config) => {
|
|
104430
|
-
let {
|
|
104431
|
-
url: url5,
|
|
104432
|
-
method: method2,
|
|
104433
|
-
data: data2,
|
|
104434
|
-
signal,
|
|
104435
|
-
cancelToken,
|
|
104436
|
-
timeout: timeout4,
|
|
104437
|
-
onDownloadProgress,
|
|
104438
|
-
onUploadProgress,
|
|
104439
|
-
responseType,
|
|
104440
|
-
headers: headers2,
|
|
104441
|
-
withCredentials = "same-origin",
|
|
104442
|
-
fetchOptions
|
|
104443
|
-
} = resolveConfig_default(config);
|
|
104444
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
104445
|
-
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout4);
|
|
104446
|
-
let request;
|
|
104447
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
104448
|
-
composedSignal.unsubscribe();
|
|
104473
|
+
get duplex() {
|
|
104474
|
+
duplexAccessed = true;
|
|
104475
|
+
return "half";
|
|
104476
|
+
}
|
|
104477
|
+
}).headers.has("Content-Type");
|
|
104478
|
+
return duplexAccessed && !hasContentType;
|
|
104449
104479
|
});
|
|
104450
|
-
|
|
104451
|
-
|
|
104452
|
-
|
|
104453
|
-
|
|
104454
|
-
|
|
104455
|
-
|
|
104456
|
-
|
|
104457
|
-
|
|
104458
|
-
|
|
104459
|
-
|
|
104460
|
-
|
|
104461
|
-
|
|
104462
|
-
if (_request.body) {
|
|
104463
|
-
const [onProgress, flush2] = progressEventDecorator(
|
|
104464
|
-
requestContentLength,
|
|
104465
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
104466
|
-
);
|
|
104467
|
-
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush2);
|
|
104468
|
-
}
|
|
104469
|
-
}
|
|
104470
|
-
if (!utils_default.isString(withCredentials)) {
|
|
104471
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
104472
|
-
}
|
|
104473
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
104474
|
-
request = new Request(url5, {
|
|
104475
|
-
...fetchOptions,
|
|
104476
|
-
signal: composedSignal,
|
|
104477
|
-
method: method2.toUpperCase(),
|
|
104478
|
-
headers: headers2.normalize().toJSON(),
|
|
104479
|
-
body: data2,
|
|
104480
|
-
duplex: "half",
|
|
104481
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
104482
|
-
});
|
|
104483
|
-
let response = await fetch(request, fetchOptions);
|
|
104484
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
104485
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
104486
|
-
const options = {};
|
|
104487
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
104488
|
-
options[prop] = response[prop];
|
|
104489
|
-
});
|
|
104490
|
-
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
104491
|
-
const [onProgress, flush2] = onDownloadProgress && progressEventDecorator(
|
|
104492
|
-
responseContentLength,
|
|
104493
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
104494
|
-
) || [];
|
|
104495
|
-
response = new Response(
|
|
104496
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
104497
|
-
flush2 && flush2();
|
|
104498
|
-
unsubscribe && unsubscribe();
|
|
104499
|
-
}),
|
|
104500
|
-
options
|
|
104501
|
-
);
|
|
104502
|
-
}
|
|
104503
|
-
responseType = responseType || "text";
|
|
104504
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
104505
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
104506
|
-
return await new Promise((resolve52, reject5) => {
|
|
104507
|
-
settle(resolve52, reject5, {
|
|
104508
|
-
data: responseData,
|
|
104509
|
-
headers: AxiosHeaders_default.from(response.headers),
|
|
104510
|
-
status: response.status,
|
|
104511
|
-
statusText: response.statusText,
|
|
104512
|
-
config,
|
|
104513
|
-
request
|
|
104480
|
+
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response2("").body));
|
|
104481
|
+
const resolvers = {
|
|
104482
|
+
stream: supportsResponseStream && ((res) => res.body)
|
|
104483
|
+
};
|
|
104484
|
+
isFetchSupported && (() => {
|
|
104485
|
+
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
104486
|
+
!resolvers[type] && (resolvers[type] = (res, config) => {
|
|
104487
|
+
let method2 = res && res[type];
|
|
104488
|
+
if (method2) {
|
|
104489
|
+
return method2.call(res);
|
|
104490
|
+
}
|
|
104491
|
+
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
104514
104492
|
});
|
|
104515
104493
|
});
|
|
104516
|
-
}
|
|
104517
|
-
|
|
104518
|
-
if (
|
|
104519
|
-
|
|
104520
|
-
|
|
104521
|
-
|
|
104522
|
-
|
|
104494
|
+
})();
|
|
104495
|
+
const getBodyLength = async (body2) => {
|
|
104496
|
+
if (body2 == null) {
|
|
104497
|
+
return 0;
|
|
104498
|
+
}
|
|
104499
|
+
if (utils_default.isBlob(body2)) {
|
|
104500
|
+
return body2.size;
|
|
104501
|
+
}
|
|
104502
|
+
if (utils_default.isSpecCompliantForm(body2)) {
|
|
104503
|
+
const _request = new Request2(platform_default.origin, {
|
|
104504
|
+
method: "POST",
|
|
104505
|
+
body: body2
|
|
104506
|
+
});
|
|
104507
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
104508
|
+
}
|
|
104509
|
+
if (utils_default.isArrayBufferView(body2) || utils_default.isArrayBuffer(body2)) {
|
|
104510
|
+
return body2.byteLength;
|
|
104511
|
+
}
|
|
104512
|
+
if (utils_default.isURLSearchParams(body2)) {
|
|
104513
|
+
body2 = body2 + "";
|
|
104514
|
+
}
|
|
104515
|
+
if (utils_default.isString(body2)) {
|
|
104516
|
+
return (await encodeText(body2)).byteLength;
|
|
104517
|
+
}
|
|
104518
|
+
};
|
|
104519
|
+
const resolveBodyLength = async (headers2, body2) => {
|
|
104520
|
+
const length = utils_default.toFiniteNumber(headers2.getContentLength());
|
|
104521
|
+
return length == null ? getBodyLength(body2) : length;
|
|
104522
|
+
};
|
|
104523
|
+
return async (config) => {
|
|
104524
|
+
let {
|
|
104525
|
+
url: url5,
|
|
104526
|
+
method: method2,
|
|
104527
|
+
data: data2,
|
|
104528
|
+
signal,
|
|
104529
|
+
cancelToken,
|
|
104530
|
+
timeout: timeout4,
|
|
104531
|
+
onDownloadProgress,
|
|
104532
|
+
onUploadProgress,
|
|
104533
|
+
responseType,
|
|
104534
|
+
headers: headers2,
|
|
104535
|
+
withCredentials = "same-origin",
|
|
104536
|
+
fetchOptions
|
|
104537
|
+
} = resolveConfig_default(config);
|
|
104538
|
+
let _fetch = envFetch || fetch;
|
|
104539
|
+
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
104540
|
+
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout4);
|
|
104541
|
+
let request = null;
|
|
104542
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
104543
|
+
composedSignal.unsubscribe();
|
|
104544
|
+
});
|
|
104545
|
+
let requestContentLength;
|
|
104546
|
+
try {
|
|
104547
|
+
if (onUploadProgress && supportsRequestStream && method2 !== "get" && method2 !== "head" && (requestContentLength = await resolveBodyLength(headers2, data2)) !== 0) {
|
|
104548
|
+
let _request = new Request2(url5, {
|
|
104549
|
+
method: "POST",
|
|
104550
|
+
body: data2,
|
|
104551
|
+
duplex: "half"
|
|
104552
|
+
});
|
|
104553
|
+
let contentTypeHeader;
|
|
104554
|
+
if (utils_default.isFormData(data2) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
104555
|
+
headers2.setContentType(contentTypeHeader);
|
|
104556
|
+
}
|
|
104557
|
+
if (_request.body) {
|
|
104558
|
+
const [onProgress, flush2] = progressEventDecorator(
|
|
104559
|
+
requestContentLength,
|
|
104560
|
+
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
104561
|
+
);
|
|
104562
|
+
data2 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush2);
|
|
104523
104563
|
}
|
|
104524
|
-
|
|
104564
|
+
}
|
|
104565
|
+
if (!utils_default.isString(withCredentials)) {
|
|
104566
|
+
withCredentials = withCredentials ? "include" : "omit";
|
|
104567
|
+
}
|
|
104568
|
+
const isCredentialsSupported = isRequestSupported && "credentials" in Request2.prototype;
|
|
104569
|
+
const resolvedOptions = {
|
|
104570
|
+
...fetchOptions,
|
|
104571
|
+
signal: composedSignal,
|
|
104572
|
+
method: method2.toUpperCase(),
|
|
104573
|
+
headers: headers2.normalize().toJSON(),
|
|
104574
|
+
body: data2,
|
|
104575
|
+
duplex: "half",
|
|
104576
|
+
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
104577
|
+
};
|
|
104578
|
+
request = isRequestSupported && new Request2(url5, resolvedOptions);
|
|
104579
|
+
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url5, resolvedOptions));
|
|
104580
|
+
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
104581
|
+
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
104582
|
+
const options = {};
|
|
104583
|
+
["status", "statusText", "headers"].forEach((prop) => {
|
|
104584
|
+
options[prop] = response[prop];
|
|
104585
|
+
});
|
|
104586
|
+
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
104587
|
+
const [onProgress, flush2] = onDownloadProgress && progressEventDecorator(
|
|
104588
|
+
responseContentLength,
|
|
104589
|
+
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
104590
|
+
) || [];
|
|
104591
|
+
response = new Response2(
|
|
104592
|
+
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
104593
|
+
flush2 && flush2();
|
|
104594
|
+
unsubscribe && unsubscribe();
|
|
104595
|
+
}),
|
|
104596
|
+
options
|
|
104597
|
+
);
|
|
104598
|
+
}
|
|
104599
|
+
responseType = responseType || "text";
|
|
104600
|
+
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
104601
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
104602
|
+
return await new Promise((resolve52, reject5) => {
|
|
104603
|
+
settle(resolve52, reject5, {
|
|
104604
|
+
data: responseData,
|
|
104605
|
+
headers: AxiosHeaders_default.from(response.headers),
|
|
104606
|
+
status: response.status,
|
|
104607
|
+
statusText: response.statusText,
|
|
104608
|
+
config,
|
|
104609
|
+
request
|
|
104610
|
+
});
|
|
104611
|
+
});
|
|
104612
|
+
} catch (err) {
|
|
104613
|
+
unsubscribe && unsubscribe();
|
|
104614
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
104615
|
+
throw Object.assign(
|
|
104616
|
+
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
104617
|
+
{
|
|
104618
|
+
cause: err.cause || err
|
|
104619
|
+
}
|
|
104620
|
+
);
|
|
104621
|
+
}
|
|
104622
|
+
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
104525
104623
|
}
|
|
104526
|
-
|
|
104624
|
+
};
|
|
104625
|
+
};
|
|
104626
|
+
var seedCache = /* @__PURE__ */ new Map();
|
|
104627
|
+
var getFetch = (config) => {
|
|
104628
|
+
let env2 = config ? config.env : {};
|
|
104629
|
+
const { fetch: fetch42, Request: Request2, Response: Response2 } = env2;
|
|
104630
|
+
const seeds = [
|
|
104631
|
+
Request2,
|
|
104632
|
+
Response2,
|
|
104633
|
+
fetch42
|
|
104634
|
+
];
|
|
104635
|
+
let len = seeds.length, i2 = len, seed, target, map4 = seedCache;
|
|
104636
|
+
while (i2--) {
|
|
104637
|
+
seed = seeds[i2];
|
|
104638
|
+
target = map4.get(seed);
|
|
104639
|
+
target === void 0 && map4.set(seed, target = i2 ? /* @__PURE__ */ new Map() : factory(env2));
|
|
104640
|
+
map4 = target;
|
|
104527
104641
|
}
|
|
104528
|
-
|
|
104642
|
+
return target;
|
|
104643
|
+
};
|
|
104644
|
+
var adapter = getFetch();
|
|
104529
104645
|
var knownAdapters = {
|
|
104530
104646
|
http: http_default,
|
|
104531
104647
|
xhr: xhr_default,
|
|
104532
|
-
fetch:
|
|
104648
|
+
fetch: {
|
|
104649
|
+
get: getFetch
|
|
104650
|
+
}
|
|
104533
104651
|
};
|
|
104534
104652
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
104535
104653
|
if (fn) {
|
|
@@ -104541,30 +104659,30 @@ utils_default.forEach(knownAdapters, (fn, value) => {
|
|
|
104541
104659
|
}
|
|
104542
104660
|
});
|
|
104543
104661
|
var renderReason = (reason) => `- ${reason}`;
|
|
104544
|
-
var isResolvedHandle = (
|
|
104662
|
+
var isResolvedHandle = (adapter2) => utils_default.isFunction(adapter2) || adapter2 === null || adapter2 === false;
|
|
104545
104663
|
var adapters_default = {
|
|
104546
|
-
getAdapter: (adapters) => {
|
|
104664
|
+
getAdapter: (adapters, config) => {
|
|
104547
104665
|
adapters = utils_default.isArray(adapters) ? adapters : [adapters];
|
|
104548
104666
|
const { length } = adapters;
|
|
104549
104667
|
let nameOrAdapter;
|
|
104550
|
-
let
|
|
104668
|
+
let adapter2;
|
|
104551
104669
|
const rejectedReasons = {};
|
|
104552
104670
|
for (let i2 = 0; i2 < length; i2++) {
|
|
104553
104671
|
nameOrAdapter = adapters[i2];
|
|
104554
104672
|
let id7;
|
|
104555
|
-
|
|
104673
|
+
adapter2 = nameOrAdapter;
|
|
104556
104674
|
if (!isResolvedHandle(nameOrAdapter)) {
|
|
104557
|
-
|
|
104558
|
-
if (
|
|
104675
|
+
adapter2 = knownAdapters[(id7 = String(nameOrAdapter)).toLowerCase()];
|
|
104676
|
+
if (adapter2 === void 0) {
|
|
104559
104677
|
throw new AxiosError_default(`Unknown adapter '${id7}'`);
|
|
104560
104678
|
}
|
|
104561
104679
|
}
|
|
104562
|
-
if (
|
|
104680
|
+
if (adapter2 && (utils_default.isFunction(adapter2) || (adapter2 = adapter2.get(config)))) {
|
|
104563
104681
|
break;
|
|
104564
104682
|
}
|
|
104565
|
-
rejectedReasons[id7 || "#" + i2] =
|
|
104683
|
+
rejectedReasons[id7 || "#" + i2] = adapter2;
|
|
104566
104684
|
}
|
|
104567
|
-
if (!
|
|
104685
|
+
if (!adapter2) {
|
|
104568
104686
|
const reasons = Object.entries(rejectedReasons).map(
|
|
104569
104687
|
([id7, state2]) => `adapter ${id7} ` + (state2 === false ? "is not supported by the environment" : "is not available in the build")
|
|
104570
104688
|
);
|
|
@@ -104574,7 +104692,7 @@ var adapters_default = {
|
|
|
104574
104692
|
"ERR_NOT_SUPPORT"
|
|
104575
104693
|
);
|
|
104576
104694
|
}
|
|
104577
|
-
return
|
|
104695
|
+
return adapter2;
|
|
104578
104696
|
},
|
|
104579
104697
|
adapters: knownAdapters
|
|
104580
104698
|
};
|
|
@@ -104596,8 +104714,8 @@ function dispatchRequest(config) {
|
|
|
104596
104714
|
if (["post", "put", "patch"].indexOf(config.method) !== -1) {
|
|
104597
104715
|
config.headers.setContentType("application/x-www-form-urlencoded", false);
|
|
104598
104716
|
}
|
|
104599
|
-
const
|
|
104600
|
-
return
|
|
104717
|
+
const adapter2 = adapters_default.getAdapter(config.adapter || defaults_default.adapter, config);
|
|
104718
|
+
return adapter2(config).then(function onAdapterResolution(response) {
|
|
104601
104719
|
throwIfCancellationRequested(config);
|
|
104602
104720
|
response.data = transformData.call(
|
|
104603
104721
|
config,
|
|
@@ -104799,7 +104917,6 @@ var Axios = class {
|
|
|
104799
104917
|
}
|
|
104800
104918
|
len = requestInterceptorChain.length;
|
|
104801
104919
|
let newConfig = config;
|
|
104802
|
-
i2 = 0;
|
|
104803
104920
|
while (i2 < len) {
|
|
104804
104921
|
const onFulfilled = requestInterceptorChain[i2++];
|
|
104805
104922
|
const onRejected = requestInterceptorChain[i2++];
|
|
@@ -105494,7 +105611,7 @@ function stringify(obj) {
|
|
|
105494
105611
|
}
|
|
105495
105612
|
var package_default = {
|
|
105496
105613
|
name: "@rockcarver/frodo-lib",
|
|
105497
|
-
version: "3.3.
|
|
105614
|
+
version: "3.3.3",
|
|
105498
105615
|
type: "commonjs",
|
|
105499
105616
|
main: "./dist/index.js",
|
|
105500
105617
|
module: "./dist/index.mjs",
|
|
@@ -107200,14 +107317,14 @@ _export(_export.S + _export.F * !(USE_NATIVE && _iterDetect(function(iter) {
|
|
|
107200
107317
|
});
|
|
107201
107318
|
_export(_export.P + _export.R, "Promise", { "finally": function(onFinally) {
|
|
107202
107319
|
var C = _speciesConstructor(this, _core.Promise || _global2.Promise);
|
|
107203
|
-
var
|
|
107320
|
+
var isFunction6 = typeof onFinally == "function";
|
|
107204
107321
|
return this.then(
|
|
107205
|
-
|
|
107322
|
+
isFunction6 ? function(x) {
|
|
107206
107323
|
return _promiseResolve(C, onFinally()).then(function() {
|
|
107207
107324
|
return x;
|
|
107208
107325
|
});
|
|
107209
107326
|
} : onFinally,
|
|
107210
|
-
|
|
107327
|
+
isFunction6 ? function(e) {
|
|
107211
107328
|
return _promiseResolve(C, onFinally()).then(function() {
|
|
107212
107329
|
throw e;
|
|
107213
107330
|
});
|
|
@@ -110232,14 +110349,14 @@ _export2(_export2.S + _export2.F * !(USE_NATIVE$12 && _iterDetect2(function(iter
|
|
|
110232
110349
|
});
|
|
110233
110350
|
_export2(_export2.P + _export2.R, "Promise", { "finally": function(onFinally) {
|
|
110234
110351
|
var C = _speciesConstructor2(this, _core2.Promise || _global3.Promise);
|
|
110235
|
-
var
|
|
110352
|
+
var isFunction6 = typeof onFinally == "function";
|
|
110236
110353
|
return this.then(
|
|
110237
|
-
|
|
110354
|
+
isFunction6 ? function(x) {
|
|
110238
110355
|
return _promiseResolve2(C, onFinally()).then(function() {
|
|
110239
110356
|
return x;
|
|
110240
110357
|
});
|
|
110241
110358
|
} : onFinally,
|
|
110242
|
-
|
|
110359
|
+
isFunction6 ? function(e) {
|
|
110243
110360
|
return _promiseResolve2(C, onFinally()).then(function() {
|
|
110244
110361
|
throw e;
|
|
110245
110362
|
});
|
|
@@ -110465,19 +110582,19 @@ var {
|
|
|
110465
110582
|
var {
|
|
110466
110583
|
parse: parse3
|
|
110467
110584
|
} = JSON;
|
|
110468
|
-
function
|
|
110585
|
+
function isFunction3(fn) {
|
|
110469
110586
|
return typeof fn === "function";
|
|
110470
110587
|
}
|
|
110471
110588
|
function method(method2, config, req) {
|
|
110472
|
-
return
|
|
110589
|
+
return isFunction3(config) ? config(method2, req) : method2.toUpperCase();
|
|
110473
110590
|
}
|
|
110474
110591
|
function url2(url5, config, req) {
|
|
110475
110592
|
let parsedUrl = parseUrl(url5, true);
|
|
110476
|
-
if (
|
|
110593
|
+
if (isFunction3(config)) {
|
|
110477
110594
|
parsedUrl = parseUrl(config(url5, req), true);
|
|
110478
110595
|
} else {
|
|
110479
110596
|
keys$12(config || {}).forEach((key) => {
|
|
110480
|
-
if (
|
|
110597
|
+
if (isFunction3(config[key])) {
|
|
110481
110598
|
parsedUrl.set(key, config[key](parsedUrl[key], req));
|
|
110482
110599
|
} else if (!config[key]) {
|
|
110483
110600
|
parsedUrl.set(key, "");
|
|
@@ -110491,7 +110608,7 @@ function url2(url5, config, req) {
|
|
|
110491
110608
|
}
|
|
110492
110609
|
function headers(headers2, config, req) {
|
|
110493
110610
|
const normalizedHeaders = new HTTPHeaders(headers2);
|
|
110494
|
-
if (
|
|
110611
|
+
if (isFunction3(config)) {
|
|
110495
110612
|
return config(normalizedHeaders, req);
|
|
110496
110613
|
}
|
|
110497
110614
|
if (isObjectLike(config) && isArray6(config.exclude)) {
|
|
@@ -110500,7 +110617,7 @@ function headers(headers2, config, req) {
|
|
|
110500
110617
|
return normalizedHeaders;
|
|
110501
110618
|
}
|
|
110502
110619
|
function body(body2, config, req) {
|
|
110503
|
-
return
|
|
110620
|
+
return isFunction3(config) ? config(body2, req) : body2;
|
|
110504
110621
|
}
|
|
110505
110622
|
var NormalizeRequest = {
|
|
110506
110623
|
headers,
|
|
@@ -112572,7 +112689,7 @@ var Polly = class {
|
|
|
112572
112689
|
this.config = mergeConfigs(DefaultConfig, this.config, config);
|
|
112573
112690
|
this.logger = new Logger(this);
|
|
112574
112691
|
this.logger.connect();
|
|
112575
|
-
this.config.adapters.forEach((
|
|
112692
|
+
this.config.adapters.forEach((adapter2) => this.connectTo(adapter2));
|
|
112576
112693
|
let {
|
|
112577
112694
|
persister
|
|
112578
112695
|
} = this.config;
|
|
@@ -112672,9 +112789,9 @@ var Polly = class {
|
|
|
112672
112789
|
}
|
|
112673
112790
|
assert(`Adapter matching the name \`${adapterId}\` was not registered.`, container.has(`adapter:${adapterId}`));
|
|
112674
112791
|
this.disconnectFrom(adapterId);
|
|
112675
|
-
const
|
|
112676
|
-
|
|
112677
|
-
adapters.set(adapterId,
|
|
112792
|
+
const adapter2 = new (container.lookup(`adapter:${adapterId}`))(this);
|
|
112793
|
+
adapter2.connect();
|
|
112794
|
+
adapters.set(adapterId, adapter2);
|
|
112678
112795
|
}
|
|
112679
112796
|
/**
|
|
112680
112797
|
* @param {String|Function} idOrAdapter
|
|
@@ -116443,14 +116560,14 @@ _export3(_export3.S + _export3.F * !(USE_NATIVE$13 && _iterDetect3(function(iter
|
|
|
116443
116560
|
});
|
|
116444
116561
|
_export3(_export3.P + _export3.R, "Promise", { "finally": function(onFinally) {
|
|
116445
116562
|
var C = _speciesConstructor3(this, _core3.Promise || _global4.Promise);
|
|
116446
|
-
var
|
|
116563
|
+
var isFunction6 = typeof onFinally == "function";
|
|
116447
116564
|
return this.then(
|
|
116448
|
-
|
|
116565
|
+
isFunction6 ? function(x) {
|
|
116449
116566
|
return _promiseResolve3(C, onFinally()).then(function() {
|
|
116450
116567
|
return x;
|
|
116451
116568
|
});
|
|
116452
116569
|
} : onFinally,
|
|
116453
|
-
|
|
116570
|
+
isFunction6 ? function(e) {
|
|
116454
116571
|
return _promiseResolve3(C, onFinally()).then(function() {
|
|
116455
116572
|
throw e;
|
|
116456
116573
|
});
|
|
@@ -116545,7 +116662,7 @@ var asyncTag2 = "[object AsyncFunction]";
|
|
|
116545
116662
|
var funcTag2 = "[object Function]";
|
|
116546
116663
|
var genTag2 = "[object GeneratorFunction]";
|
|
116547
116664
|
var proxyTag2 = "[object Proxy]";
|
|
116548
|
-
function
|
|
116665
|
+
function isFunction4(value) {
|
|
116549
116666
|
if (!isObject3(value)) {
|
|
116550
116667
|
return false;
|
|
116551
116668
|
}
|
|
@@ -116588,7 +116705,7 @@ function baseIsNative2(value) {
|
|
|
116588
116705
|
if (!isObject3(value) || isMasked2(value)) {
|
|
116589
116706
|
return false;
|
|
116590
116707
|
}
|
|
116591
|
-
var pattern =
|
|
116708
|
+
var pattern = isFunction4(value) ? reIsNative2 : reIsHostCtor2;
|
|
116592
116709
|
return pattern.test(toSource2(value));
|
|
116593
116710
|
}
|
|
116594
116711
|
function getValue2(object, key) {
|
|
@@ -116980,7 +117097,7 @@ function headersSize(request) {
|
|
|
116980
117097
|
const headersString = request.method + request.url + keys13.join() + values3.join();
|
|
116981
117098
|
return (0, import_utf8_byte_length.default)(headersString) + keys13.length * 2 + 2 + 12 + 2;
|
|
116982
117099
|
}
|
|
116983
|
-
var
|
|
117100
|
+
var Request = class {
|
|
116984
117101
|
constructor(request) {
|
|
116985
117102
|
this.httpVersion = "HTTP/1.1";
|
|
116986
117103
|
this.url = request.absoluteUrl;
|
|
@@ -117019,7 +117136,7 @@ function headersSize$1(response) {
|
|
|
117019
117136
|
const headersString = keys13.join() + values3.join();
|
|
117020
117137
|
return (0, import_utf8_byte_length.default)(headersString) + keys13.length * 2 + 2 + 2;
|
|
117021
117138
|
}
|
|
117022
|
-
var
|
|
117139
|
+
var Response = class {
|
|
117023
117140
|
constructor(response) {
|
|
117024
117141
|
this.httpVersion = "HTTP/1.1";
|
|
117025
117142
|
this.status = response.statusCode;
|
|
@@ -117057,8 +117174,8 @@ var Entry = class {
|
|
|
117057
117174
|
this._id = request.id;
|
|
117058
117175
|
this._order = request.order;
|
|
117059
117176
|
this.startedDateTime = request.timestamp;
|
|
117060
|
-
this.request = new
|
|
117061
|
-
this.response = new
|
|
117177
|
+
this.request = new Request(request);
|
|
117178
|
+
this.response = new Response(request.response);
|
|
117062
117179
|
this.cache = {};
|
|
117063
117180
|
this.timings = {
|
|
117064
117181
|
blocked: -1,
|
|
@@ -120882,14 +120999,14 @@ _export6(_export6.S + _export6.F * !(USE_NATIVE$14 && _iterDetect4(function(iter
|
|
|
120882
120999
|
});
|
|
120883
121000
|
_export6(_export6.P + _export6.R, "Promise", { "finally": function(onFinally) {
|
|
120884
121001
|
var C = _speciesConstructor4(this, _core6.Promise || _global7.Promise);
|
|
120885
|
-
var
|
|
121002
|
+
var isFunction6 = typeof onFinally == "function";
|
|
120886
121003
|
return this.then(
|
|
120887
|
-
|
|
121004
|
+
isFunction6 ? function(x) {
|
|
120888
121005
|
return _promiseResolve4(C, onFinally()).then(function() {
|
|
120889
121006
|
return x;
|
|
120890
121007
|
});
|
|
120891
121008
|
} : onFinally,
|
|
120892
|
-
|
|
121009
|
+
isFunction6 ? function(e) {
|
|
120893
121010
|
return _promiseResolve4(C, onFinally()).then(function() {
|
|
120894
121011
|
throw e;
|
|
120895
121012
|
});
|
|
@@ -121791,7 +121908,7 @@ function baseIsNative3(value) {
|
|
|
121791
121908
|
if (!isObject4(value) || isMasked3(value)) {
|
|
121792
121909
|
return false;
|
|
121793
121910
|
}
|
|
121794
|
-
var pattern =
|
|
121911
|
+
var pattern = isFunction5(value) || isHostObject(value) ? reIsNative3 : reIsHostCtor3;
|
|
121795
121912
|
return pattern.test(toSource3(value));
|
|
121796
121913
|
}
|
|
121797
121914
|
function baseSet(object, path52, value, customizer2) {
|
|
@@ -121908,7 +122025,7 @@ function eq3(value, other) {
|
|
|
121908
122025
|
return value === other || value !== value && other !== other;
|
|
121909
122026
|
}
|
|
121910
122027
|
var isArray13 = Array.isArray;
|
|
121911
|
-
function
|
|
122028
|
+
function isFunction5(value) {
|
|
121912
122029
|
var tag = isObject4(value) ? objectToString3.call(value) : "";
|
|
121913
122030
|
return tag == funcTag3 || tag == genTag3;
|
|
121914
122031
|
}
|
|
@@ -122458,7 +122575,7 @@ var HttpAdapter = class extends pollyjs_adapter_default {
|
|
|
122458
122575
|
this.NativeClientRequest = null;
|
|
122459
122576
|
}
|
|
122460
122577
|
setupNock() {
|
|
122461
|
-
const
|
|
122578
|
+
const adapter2 = this;
|
|
122462
122579
|
import_nock.default.cleanAll();
|
|
122463
122580
|
const interceptor = (0, import_nock.default)(/.*/).persist();
|
|
122464
122581
|
httpMethods.forEach((m2) => {
|
|
@@ -122474,7 +122591,7 @@ var HttpAdapter = class extends pollyjs_adapter_default {
|
|
|
122474
122591
|
const url5 = getUrlFromOptions(parsedArguments.options);
|
|
122475
122592
|
const requestBodyBuffer = Buffer.concat(req.requestBodyBuffers);
|
|
122476
122593
|
const body2 = common_15(requestBodyBuffer) ? requestBodyBuffer.toString("utf8") : requestBodyBuffer;
|
|
122477
|
-
|
|
122594
|
+
adapter2.handleRequest({
|
|
122478
122595
|
url: url5,
|
|
122479
122596
|
method: method2,
|
|
122480
122597
|
headers: headers2,
|
|
@@ -123084,7 +123201,7 @@ if (process.env.FRODO_MOCK) {
|
|
|
123084
123201
|
setupPollyForFrodoLib({ state: State_default({}) });
|
|
123085
123202
|
}
|
|
123086
123203
|
var timeout3 = 3e4;
|
|
123087
|
-
var maxSockets =
|
|
123204
|
+
var maxSockets = 500;
|
|
123088
123205
|
var maxFreeSockets = 10;
|
|
123089
123206
|
var keepAlive = false;
|
|
123090
123207
|
var userAgent = getUserAgent();
|
|
@@ -123184,8 +123301,10 @@ function generateAmApi({
|
|
|
123184
123301
|
...headers2,
|
|
123185
123302
|
...state2.getAuthenticationHeaderOverrides()
|
|
123186
123303
|
},
|
|
123187
|
-
|
|
123188
|
-
|
|
123304
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123305
|
+
httpAgent: getHttpAgent(),
|
|
123306
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123307
|
+
},
|
|
123189
123308
|
proxy: getProxy()
|
|
123190
123309
|
},
|
|
123191
123310
|
requestOverride
|
|
@@ -123230,8 +123349,10 @@ function generateOauth2Api({
|
|
|
123230
123349
|
...headers2,
|
|
123231
123350
|
...state2.getAuthenticationHeaderOverrides()
|
|
123232
123351
|
},
|
|
123233
|
-
|
|
123234
|
-
|
|
123352
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123353
|
+
httpAgent: getHttpAgent(),
|
|
123354
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123355
|
+
},
|
|
123235
123356
|
proxy: getProxy()
|
|
123236
123357
|
};
|
|
123237
123358
|
const request = createAxiosInstance(state2, requestConfig);
|
|
@@ -123257,8 +123378,10 @@ function generateIdmApi({
|
|
|
123257
123378
|
Authorization: `Bearer ${state2.getBearerToken()}`
|
|
123258
123379
|
}
|
|
123259
123380
|
},
|
|
123260
|
-
|
|
123261
|
-
|
|
123381
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123382
|
+
httpAgent: getHttpAgent(),
|
|
123383
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123384
|
+
},
|
|
123262
123385
|
proxy: getProxy()
|
|
123263
123386
|
},
|
|
123264
123387
|
requestOverride
|
|
@@ -123311,8 +123434,10 @@ function generateLogApi({
|
|
|
123311
123434
|
// baseURL: getTenantURL(storage.session.getTenant()),
|
|
123312
123435
|
timeout: timeout3,
|
|
123313
123436
|
headers: headers2,
|
|
123314
|
-
|
|
123315
|
-
|
|
123437
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123438
|
+
httpAgent: getHttpAgent(),
|
|
123439
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123440
|
+
},
|
|
123316
123441
|
proxy: getProxy()
|
|
123317
123442
|
},
|
|
123318
123443
|
requestOverride
|
|
@@ -123363,8 +123488,10 @@ function generateEnvApi({
|
|
|
123363
123488
|
timeout: timeout3,
|
|
123364
123489
|
headers: headers2,
|
|
123365
123490
|
...requestOverride,
|
|
123366
|
-
|
|
123367
|
-
|
|
123491
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123492
|
+
httpAgent: getHttpAgent(),
|
|
123493
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123494
|
+
},
|
|
123368
123495
|
proxy: getProxy()
|
|
123369
123496
|
};
|
|
123370
123497
|
const request = createAxiosInstance(state2, requestConfig);
|
|
@@ -123392,8 +123519,10 @@ function generateGovernanceApi({
|
|
|
123392
123519
|
timeout: timeout3,
|
|
123393
123520
|
headers: headers2,
|
|
123394
123521
|
...requestOverride,
|
|
123395
|
-
|
|
123396
|
-
|
|
123522
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123523
|
+
httpAgent: getHttpAgent(),
|
|
123524
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123525
|
+
},
|
|
123397
123526
|
proxy: getProxy()
|
|
123398
123527
|
};
|
|
123399
123528
|
const request = createAxiosInstance(state2, requestConfig);
|
|
@@ -123415,8 +123544,10 @@ function generateReleaseApi({
|
|
|
123415
123544
|
"Content-Type": "application/json"
|
|
123416
123545
|
},
|
|
123417
123546
|
...requestOverride,
|
|
123418
|
-
|
|
123419
|
-
|
|
123547
|
+
...process.env.FRODO_MOCK !== "record" && process.env.FRODO_POLLY_MODE !== "record" && {
|
|
123548
|
+
httpAgent: getHttpAgent(),
|
|
123549
|
+
httpsAgent: getHttpsAgent(state2.getAllowInsecureConnection())
|
|
123550
|
+
},
|
|
123420
123551
|
proxy: getProxy()
|
|
123421
123552
|
};
|
|
123422
123553
|
const request = createAxiosInstance(state2, requestConfig);
|
|
@@ -123560,10 +123691,12 @@ var FrodoError = class extends Error {
|
|
|
123560
123691
|
case "AxiosError":
|
|
123561
123692
|
{
|
|
123562
123693
|
combinedMessage += "\n HTTP client error";
|
|
123563
|
-
combinedMessage += this.
|
|
123564
|
-
|
|
123694
|
+
combinedMessage += this.httpStatus ? `
|
|
123695
|
+
URL: ${error2["config"]["url"]}` : "";
|
|
123565
123696
|
combinedMessage += this.httpStatus ? `
|
|
123566
123697
|
Status: ${this.httpStatus}` : "";
|
|
123698
|
+
combinedMessage += this.httpCode ? `
|
|
123699
|
+
Code: ${this.httpCode}` : "";
|
|
123567
123700
|
combinedMessage += this.httpErrorText ? `
|
|
123568
123701
|
Error: ${this.httpErrorText}` : "";
|
|
123569
123702
|
combinedMessage += this.httpErrorReason ? `
|
|
@@ -123571,7 +123704,7 @@ var FrodoError = class extends Error {
|
|
|
123571
123704
|
combinedMessage += this.httpMessage ? `
|
|
123572
123705
|
Message: ${this.httpMessage}` : "";
|
|
123573
123706
|
combinedMessage += this.httpDetail ? `
|
|
123574
|
-
Detail: ${this.httpDetail}` : "";
|
|
123707
|
+
Detail: ${typeof this.httpDetail === "object" ? JSON.stringify(this.httpDetail) : this.httpDetail}` : "";
|
|
123575
123708
|
combinedMessage += this.httpDescription ? `
|
|
123576
123709
|
Description: ${this.httpDescription}` : "";
|
|
123577
123710
|
}
|
|
@@ -135205,6 +135338,14 @@ async function importSaml2Provider({
|
|
|
135205
135338
|
metaData,
|
|
135206
135339
|
state: state2
|
|
135207
135340
|
});
|
|
135341
|
+
if (location === "remote") {
|
|
135342
|
+
const updateResponse = await updateProvider({
|
|
135343
|
+
location,
|
|
135344
|
+
providerData,
|
|
135345
|
+
state: state2
|
|
135346
|
+
});
|
|
135347
|
+
response = { ...response, ...updateResponse };
|
|
135348
|
+
}
|
|
135208
135349
|
} catch (createProviderErr) {
|
|
135209
135350
|
try {
|
|
135210
135351
|
response = await updateProvider({ location, providerData, state: state2 });
|
|
@@ -144628,6 +144769,9 @@ var VariablesOps_default = (state2) => {
|
|
|
144628
144769
|
async deleteVariable(variableId) {
|
|
144629
144770
|
return deleteVariable2({ variableId, state: state2 });
|
|
144630
144771
|
},
|
|
144772
|
+
async resolveVariable(input, variables) {
|
|
144773
|
+
return resolveVariable({ input, variables, state: state2 });
|
|
144774
|
+
},
|
|
144631
144775
|
// Deprecated
|
|
144632
144776
|
async getVariable(variableId) {
|
|
144633
144777
|
return readVariable({ variableId, noDecode: true, state: state2 });
|
|
@@ -144903,6 +145047,29 @@ async function deleteVariable2({
|
|
|
144903
145047
|
throw new FrodoError(`Error deleting variable ${variableId}`, error2);
|
|
144904
145048
|
}
|
|
144905
145049
|
}
|
|
145050
|
+
async function resolveVariable({
|
|
145051
|
+
input,
|
|
145052
|
+
variables = {},
|
|
145053
|
+
state: state2
|
|
145054
|
+
}) {
|
|
145055
|
+
if (state2.getDeploymentType() !== Constants_default.CLOUD_DEPLOYMENT_TYPE_KEY) {
|
|
145056
|
+
return input;
|
|
145057
|
+
}
|
|
145058
|
+
if (input.startsWith("&{esv.") && input.endsWith("}")) {
|
|
145059
|
+
const name = input.substring(2, input.length - 1).replaceAll(".", "-");
|
|
145060
|
+
let variable = variables[name];
|
|
145061
|
+
if (!variable) {
|
|
145062
|
+
variable = await readVariable({
|
|
145063
|
+
variableId: name,
|
|
145064
|
+
state: state2
|
|
145065
|
+
});
|
|
145066
|
+
variables[name] = variable;
|
|
145067
|
+
}
|
|
145068
|
+
return variable.value;
|
|
145069
|
+
} else {
|
|
145070
|
+
return input;
|
|
145071
|
+
}
|
|
145072
|
+
}
|
|
144906
145073
|
var StartupOps_default = (state2) => {
|
|
144907
145074
|
return {
|
|
144908
145075
|
/**
|
|
@@ -145086,9 +145253,6 @@ async function putProviderByTypeAndId2({
|
|
|
145086
145253
|
providerData,
|
|
145087
145254
|
state: state2
|
|
145088
145255
|
}) {
|
|
145089
|
-
if (providerData.redirectAfterFormPostURI === void 0) {
|
|
145090
|
-
providerData.redirectAfterFormPostURI = "";
|
|
145091
|
-
}
|
|
145092
145256
|
const cleanData = deleteDeepByKey(providerData, "-encrypted");
|
|
145093
145257
|
const urlString = _util2.default.format(
|
|
145094
145258
|
providerByTypeAndIdURLTemplate2,
|
|
@@ -145272,17 +145436,19 @@ async function createSocialIdentityProvider({
|
|
|
145272
145436
|
providerType,
|
|
145273
145437
|
providerId,
|
|
145274
145438
|
providerData,
|
|
145439
|
+
errorIfExists = true,
|
|
145275
145440
|
state: state2
|
|
145276
145441
|
}) {
|
|
145277
145442
|
debugMessage({
|
|
145278
145443
|
message: `IdpOps.createSocialIdentityProvider: start`,
|
|
145279
145444
|
state: state2
|
|
145280
145445
|
});
|
|
145446
|
+
let result;
|
|
145281
145447
|
try {
|
|
145282
|
-
await readSocialIdentityProvider({ providerId, state: state2 });
|
|
145448
|
+
result = await readSocialIdentityProvider({ providerId, state: state2 });
|
|
145283
145449
|
} catch (error2) {
|
|
145284
145450
|
try {
|
|
145285
|
-
|
|
145451
|
+
result = await updateSocialIdentityProvider({
|
|
145286
145452
|
providerType,
|
|
145287
145453
|
providerId,
|
|
145288
145454
|
providerData,
|
|
@@ -145300,9 +145466,12 @@ async function createSocialIdentityProvider({
|
|
|
145300
145466
|
);
|
|
145301
145467
|
}
|
|
145302
145468
|
}
|
|
145303
|
-
|
|
145304
|
-
|
|
145305
|
-
|
|
145469
|
+
if (errorIfExists) {
|
|
145470
|
+
throw new FrodoError(
|
|
145471
|
+
`${getCurrentRealmName(state2) + " realm"} provider ${providerId} already exists`
|
|
145472
|
+
);
|
|
145473
|
+
}
|
|
145474
|
+
return result;
|
|
145306
145475
|
}
|
|
145307
145476
|
async function updateSocialIdentityProvider({
|
|
145308
145477
|
providerType,
|
|
@@ -145327,9 +145496,20 @@ async function updateSocialIdentityProvider({
|
|
|
145327
145496
|
});
|
|
145328
145497
|
return response;
|
|
145329
145498
|
} catch (error2) {
|
|
145330
|
-
if (_optionalChain([error2, 'access', _265 => _265.response, 'optionalAccess', _266 => _266.status]) ===
|
|
145499
|
+
if (_optionalChain([error2, 'access', _265 => _265.response, 'optionalAccess', _266 => _266.status]) === 500 && _optionalChain([error2, 'access', _267 => _267.response, 'optionalAccess', _268 => _268.data, 'optionalAccess', _269 => _269.message]) === "Unable to update SMS config: Data validation failed for the attribute, Redirect after form post URL") {
|
|
145500
|
+
providerData["redirectAfterFormPostURI"] = "";
|
|
145501
|
+
try {
|
|
145502
|
+
await putProviderByTypeAndId2({
|
|
145503
|
+
type: providerType,
|
|
145504
|
+
id: providerId,
|
|
145505
|
+
providerData,
|
|
145506
|
+
state: state2
|
|
145507
|
+
});
|
|
145508
|
+
} catch (importError2) {
|
|
145509
|
+
throw new FrodoError(`Error updating provider ${providerId}`, error2);
|
|
145510
|
+
}
|
|
145511
|
+
} else if (_optionalChain([error2, 'access', _270 => _270.response, 'optionalAccess', _271 => _271.status]) === 400 && _optionalChain([error2, 'access', _272 => _272.response, 'optionalAccess', _273 => _273.data, 'optionalAccess', _274 => _274.message]) === "Invalid attribute specified.") {
|
|
145331
145512
|
const { validAttributes } = error2.response.data.detail;
|
|
145332
|
-
validAttributes.push("_id", "_type");
|
|
145333
145513
|
for (const attribute of Object.keys(providerData)) {
|
|
145334
145514
|
if (!validAttributes.includes(attribute)) {
|
|
145335
145515
|
if (state2.getVerbose())
|
|
@@ -145345,17 +145525,21 @@ Removing invalid attribute: ${attribute}`,
|
|
|
145345
145525
|
}
|
|
145346
145526
|
if (state2.getVerbose())
|
|
145347
145527
|
printMessage({ message: "\n", type: "warn", newline: false, state: state2 });
|
|
145348
|
-
|
|
145349
|
-
|
|
145350
|
-
|
|
145351
|
-
|
|
145352
|
-
|
|
145353
|
-
|
|
145354
|
-
|
|
145355
|
-
|
|
145356
|
-
|
|
145357
|
-
|
|
145358
|
-
|
|
145528
|
+
try {
|
|
145529
|
+
const response = await putProviderByTypeAndId2({
|
|
145530
|
+
type: providerType,
|
|
145531
|
+
id: providerId,
|
|
145532
|
+
providerData,
|
|
145533
|
+
state: state2
|
|
145534
|
+
});
|
|
145535
|
+
debugMessage({
|
|
145536
|
+
message: `IdpOps.updateSocialIdentityProvider: end (after retry)`,
|
|
145537
|
+
state: state2
|
|
145538
|
+
});
|
|
145539
|
+
return response;
|
|
145540
|
+
} catch (importError2) {
|
|
145541
|
+
throw new FrodoError(`Error updating provider ${providerId}`, error2);
|
|
145542
|
+
}
|
|
145359
145543
|
} else {
|
|
145360
145544
|
throw new FrodoError(
|
|
145361
145545
|
`Error updating ${getCurrentRealmName(state2) + " realm"} provider ${providerId}`,
|
|
@@ -145448,7 +145632,7 @@ async function exportSocialIdentityProvider({
|
|
|
145448
145632
|
exportData.idp[idpData._id] = idpData;
|
|
145449
145633
|
if (idpData.transform) {
|
|
145450
145634
|
try {
|
|
145451
|
-
const scriptData = await
|
|
145635
|
+
const scriptData = await readScript({
|
|
145452
145636
|
scriptId: idpData.transform,
|
|
145453
145637
|
state: state2
|
|
145454
145638
|
});
|
|
@@ -145494,7 +145678,7 @@ async function exportSocialIdentityProviders({
|
|
|
145494
145678
|
});
|
|
145495
145679
|
exportData.idp[idpData._id] = idpData;
|
|
145496
145680
|
if (options.deps && idpData.transform) {
|
|
145497
|
-
const scriptData = await
|
|
145681
|
+
const scriptData = await readScript({
|
|
145498
145682
|
scriptId: idpData.transform,
|
|
145499
145683
|
state: state2
|
|
145500
145684
|
});
|
|
@@ -148105,7 +148289,7 @@ async function getSaml2NodeDependencies(nodeObject, allProviders, allCirclesOfTr
|
|
|
148105
148289
|
}
|
|
148106
148290
|
saml2EntityPromises.push(providerResponse);
|
|
148107
148291
|
} catch (error2) {
|
|
148108
|
-
error2.message = `Error reading ${getCurrentRealmName(state2) + " realm"} saml2 dependencies: ${_optionalChain([error2, 'access',
|
|
148292
|
+
error2.message = `Error reading ${getCurrentRealmName(state2) + " realm"} saml2 dependencies: ${_optionalChain([error2, 'access', _275 => _275.response, 'optionalAccess', _276 => _276.data, 'optionalAccess', _277 => _277.message]) || error2.message}`;
|
|
148109
148293
|
errors.push(error2);
|
|
148110
148294
|
}
|
|
148111
148295
|
}
|
|
@@ -148134,7 +148318,7 @@ async function getSaml2NodeDependencies(nodeObject, allProviders, allCirclesOfTr
|
|
|
148134
148318
|
circlesOfTrust
|
|
148135
148319
|
};
|
|
148136
148320
|
} catch (error2) {
|
|
148137
|
-
error2.message = `Error reading ${getCurrentRealmName(state2) + " realm"} saml2 dependencies: ${_optionalChain([error2, 'access',
|
|
148321
|
+
error2.message = `Error reading ${getCurrentRealmName(state2) + " realm"} saml2 dependencies: ${_optionalChain([error2, 'access', _278 => _278.response, 'optionalAccess', _279 => _279.data, 'optionalAccess', _280 => _280.message]) || error2.message}`;
|
|
148138
148322
|
errors.push(error2);
|
|
148139
148323
|
}
|
|
148140
148324
|
if (errors.length) {
|
|
@@ -148190,6 +148374,7 @@ async function exportJourney({
|
|
|
148190
148374
|
type: "info",
|
|
148191
148375
|
state: state2
|
|
148192
148376
|
});
|
|
148377
|
+
const variables = {};
|
|
148193
148378
|
const nodePromises = [];
|
|
148194
148379
|
const scriptPromises = [];
|
|
148195
148380
|
const emailTemplatePromises = [];
|
|
@@ -148242,12 +148427,16 @@ async function exportJourney({
|
|
|
148242
148427
|
if (emailTemplateNodes.includes(nodeType)) {
|
|
148243
148428
|
try {
|
|
148244
148429
|
const emailTemplate = await readEmailTemplate({
|
|
148245
|
-
templateId:
|
|
148430
|
+
templateId: await resolveVariable({
|
|
148431
|
+
input: nodeObject.emailTemplateName,
|
|
148432
|
+
variables,
|
|
148433
|
+
state: state2
|
|
148434
|
+
}),
|
|
148246
148435
|
state: state2
|
|
148247
148436
|
});
|
|
148248
148437
|
emailTemplatePromises.push(emailTemplate);
|
|
148249
148438
|
} catch (error2) {
|
|
148250
|
-
error2.message = `Error reading email template ${nodeObject.emailTemplateName}: ${_optionalChain([error2, 'access',
|
|
148439
|
+
error2.message = `Error reading email template ${nodeObject.emailTemplateName}: ${_optionalChain([error2, 'access', _281 => _281.response, 'optionalAccess', _282 => _282.data, 'optionalAccess', _283 => _283.message]) || error2.message}`;
|
|
148251
148440
|
errors.push(error2);
|
|
148252
148441
|
}
|
|
148253
148442
|
}
|
|
@@ -148279,7 +148468,7 @@ async function exportJourney({
|
|
|
148279
148468
|
);
|
|
148280
148469
|
}
|
|
148281
148470
|
if (deps && !socialProviderPromise && nodeType === "SocialProviderHandlerNode") {
|
|
148282
|
-
socialProviderPromise =
|
|
148471
|
+
socialProviderPromise = readSocialIdentityProviders({ state: state2 });
|
|
148283
148472
|
}
|
|
148284
148473
|
if (deps && !filteredSocialProviders && nodeType === "SelectIdPNode") {
|
|
148285
148474
|
filteredSocialProviders = filteredSocialProviders || [];
|
|
@@ -148384,7 +148573,7 @@ async function exportJourney({
|
|
|
148384
148573
|
);
|
|
148385
148574
|
}
|
|
148386
148575
|
if (deps && !socialProviderPromise && innerNodeType === "SocialProviderHandlerNode") {
|
|
148387
|
-
socialProviderPromise =
|
|
148576
|
+
socialProviderPromise = readSocialIdentityProviders({ state: state2 });
|
|
148388
148577
|
}
|
|
148389
148578
|
if (deps && !filteredSocialProviders && innerNodeType === "SelectIdPNode" && innerNodeObject.filteredProviders) {
|
|
148390
148579
|
filteredSocialProviders = filteredSocialProviders || [];
|
|
@@ -148406,6 +148595,23 @@ async function exportJourney({
|
|
|
148406
148595
|
)
|
|
148407
148596
|
);
|
|
148408
148597
|
}
|
|
148598
|
+
exportData.variable = variables;
|
|
148599
|
+
if (verbose && Object.keys(variables).length > 0) {
|
|
148600
|
+
printMessage({
|
|
148601
|
+
message: "\n - Variables:",
|
|
148602
|
+
newline: false,
|
|
148603
|
+
state: state2
|
|
148604
|
+
});
|
|
148605
|
+
for (const variable of Object.values(variables)) {
|
|
148606
|
+
printMessage({
|
|
148607
|
+
message: `
|
|
148608
|
+
- ${variable._id}`,
|
|
148609
|
+
type: "info",
|
|
148610
|
+
newline: false,
|
|
148611
|
+
state: state2
|
|
148612
|
+
});
|
|
148613
|
+
}
|
|
148614
|
+
}
|
|
148409
148615
|
if (verbose && emailTemplatePromises.length > 0)
|
|
148410
148616
|
printMessage({
|
|
148411
148617
|
message: "\n - Email templates:",
|
|
@@ -148489,7 +148695,7 @@ async function exportJourney({
|
|
|
148489
148695
|
newline: false,
|
|
148490
148696
|
state: state2
|
|
148491
148697
|
});
|
|
148492
|
-
for (const socialProvider of socialProviders
|
|
148698
|
+
for (const socialProvider of socialProviders) {
|
|
148493
148699
|
if (socialProvider && (!filteredSocialProviders || filteredSocialProviders.length === 0 || filteredSocialProviders.includes(socialProvider._id))) {
|
|
148494
148700
|
if (verbose)
|
|
148495
148701
|
printMessage({
|
|
@@ -148567,7 +148773,7 @@ async function exportJourney({
|
|
|
148567
148773
|
for (const themeObject of themePromiseResults) {
|
|
148568
148774
|
if (themeObject && // has the theme been specified by id or name in a page node?
|
|
148569
148775
|
(themes.includes(themeObject._id) || themes.includes(themeObject.name) || // has this journey been linked to a theme?
|
|
148570
|
-
_optionalChain([themeObject, 'access',
|
|
148776
|
+
_optionalChain([themeObject, 'access', _284 => _284.linkedTrees, 'optionalAccess', _285 => _285.includes, 'call', _286 => _286(treeObject._id)]))) {
|
|
148571
148777
|
if (verbose)
|
|
148572
148778
|
printMessage({
|
|
148573
148779
|
message: `
|
|
@@ -148746,6 +148952,39 @@ async function importJourney({
|
|
|
148746
148952
|
let newUuid = "";
|
|
148747
148953
|
const uuidMap = {};
|
|
148748
148954
|
const treeId = importData.tree._id;
|
|
148955
|
+
if (deps && importData.variable && Object.entries(importData.variable).length > 0) {
|
|
148956
|
+
if (verbose)
|
|
148957
|
+
printMessage({ message: " - Variables:", newline: false, state: state2 });
|
|
148958
|
+
for (const [variableId, variableObject] of Object.entries(
|
|
148959
|
+
importData.variable
|
|
148960
|
+
)) {
|
|
148961
|
+
if (verbose)
|
|
148962
|
+
printMessage({
|
|
148963
|
+
message: `
|
|
148964
|
+
- ${variableId}`,
|
|
148965
|
+
type: "info",
|
|
148966
|
+
newline: false,
|
|
148967
|
+
state: state2
|
|
148968
|
+
});
|
|
148969
|
+
try {
|
|
148970
|
+
await updateVariable({
|
|
148971
|
+
variableId,
|
|
148972
|
+
value: variableObject.value,
|
|
148973
|
+
description: variableObject.description,
|
|
148974
|
+
expressionType: variableObject.expressionType,
|
|
148975
|
+
state: state2
|
|
148976
|
+
});
|
|
148977
|
+
} catch (error2) {
|
|
148978
|
+
errors.push(
|
|
148979
|
+
new FrodoError(
|
|
148980
|
+
`Error importing variable ${variableId} referenced by journey ${treeId}`,
|
|
148981
|
+
error2
|
|
148982
|
+
)
|
|
148983
|
+
);
|
|
148984
|
+
}
|
|
148985
|
+
if (verbose) printMessage({ message: "", state: state2 });
|
|
148986
|
+
}
|
|
148987
|
+
}
|
|
148749
148988
|
if (deps && importData.scripts && Object.entries(importData.scripts).length > 0) {
|
|
148750
148989
|
if (verbose)
|
|
148751
148990
|
printMessage({ message: " - Scripts:", newline: false, state: state2 });
|
|
@@ -148850,37 +149089,22 @@ async function importJourney({
|
|
|
148850
149089
|
newline: false,
|
|
148851
149090
|
state: state2
|
|
148852
149091
|
});
|
|
149092
|
+
const providerType = providerData["_type"]["_id"] + "";
|
|
148853
149093
|
try {
|
|
148854
|
-
await
|
|
148855
|
-
|
|
148856
|
-
|
|
149094
|
+
await createSocialIdentityProvider({
|
|
149095
|
+
providerType,
|
|
149096
|
+
providerId,
|
|
148857
149097
|
providerData,
|
|
149098
|
+
errorIfExists: false,
|
|
148858
149099
|
state: state2
|
|
148859
149100
|
});
|
|
148860
149101
|
} catch (error2) {
|
|
148861
|
-
|
|
148862
|
-
|
|
148863
|
-
|
|
148864
|
-
|
|
148865
|
-
|
|
148866
|
-
|
|
148867
|
-
providerData,
|
|
148868
|
-
state: state2
|
|
148869
|
-
});
|
|
148870
|
-
} catch (importError2) {
|
|
148871
|
-
throw new FrodoError(
|
|
148872
|
-
`Error importing ${getCurrentRealmName(state2) + " realm"} provider ${providerId} in journey ${treeId}`,
|
|
148873
|
-
importError2
|
|
148874
|
-
);
|
|
148875
|
-
}
|
|
148876
|
-
} else {
|
|
148877
|
-
errors.push(
|
|
148878
|
-
new FrodoError(
|
|
148879
|
-
`Error importing ${getCurrentRealmName(state2) + " realm"} provider ${providerId} in journey ${treeId}`,
|
|
148880
|
-
error2
|
|
148881
|
-
)
|
|
148882
|
-
);
|
|
148883
|
-
}
|
|
149102
|
+
errors.push(
|
|
149103
|
+
new FrodoError(
|
|
149104
|
+
`Error importing ${getCurrentRealmName(state2) + " realm"} provider ${providerId} in journey ${treeId}`,
|
|
149105
|
+
error2
|
|
149106
|
+
)
|
|
149107
|
+
);
|
|
148884
149108
|
}
|
|
148885
149109
|
}
|
|
148886
149110
|
}
|
|
@@ -152547,9 +152771,6 @@ async function putServiceNextDescendent({
|
|
|
152547
152771
|
globalConfig = false,
|
|
152548
152772
|
state: state2
|
|
152549
152773
|
}) {
|
|
152550
|
-
if (serviceId === "SocialIdentityProviders" && serviceNextDescendentData.redirectAfterFormPostURI === void 0) {
|
|
152551
|
-
serviceNextDescendentData.redirectAfterFormPostURI = "";
|
|
152552
|
-
}
|
|
152553
152774
|
const urlString = _util2.default.format(
|
|
152554
152775
|
serviceURLNextDescendentTemplate,
|
|
152555
152776
|
state2.getHost(),
|
|
@@ -152824,6 +153045,9 @@ async function putFullService({
|
|
|
152824
153045
|
}
|
|
152825
153046
|
const nextDescendentResult = await Promise.all(
|
|
152826
153047
|
nextDescendents.map(async (descendent) => {
|
|
153048
|
+
if (serviceId === "SocialIdentityProviders" && descendent.redirectAfterFormPostURI === void 0) {
|
|
153049
|
+
descendent.redirectAfterFormPostURI = "";
|
|
153050
|
+
}
|
|
152827
153051
|
const type = descendent._type._id;
|
|
152828
153052
|
const descendentId = descendent._id;
|
|
152829
153053
|
debugMessage({
|
|
@@ -155189,7 +155413,7 @@ function printError2(error2, message) {
|
|
|
155189
155413
|
errorMessage += message2 ? `
|
|
155190
155414
|
Message: ${message2}` : "";
|
|
155191
155415
|
errorMessage += detail ? `
|
|
155192
|
-
Detail: ${detail}` : "";
|
|
155416
|
+
Detail: ${typeof detail === "object" ? JSON.stringify(detail) : detail}` : "";
|
|
155193
155417
|
printMessage2(errorMessage, "error");
|
|
155194
155418
|
break;
|
|
155195
155419
|
}
|
|
@@ -155965,6 +156189,156 @@ var GenericExtensionAttributesTemplate_default2 = {
|
|
|
155965
156189
|
userEditable: true,
|
|
155966
156190
|
viewable: true
|
|
155967
156191
|
},
|
|
156192
|
+
frIndexedString6: {
|
|
156193
|
+
description: "Generic Indexed String 6",
|
|
156194
|
+
isPersonal: false,
|
|
156195
|
+
searchable: true,
|
|
156196
|
+
title: "Generic Indexed String 6",
|
|
156197
|
+
type: "string",
|
|
156198
|
+
usageDescription: "",
|
|
156199
|
+
userEditable: true,
|
|
156200
|
+
viewable: true
|
|
156201
|
+
},
|
|
156202
|
+
frIndexedString7: {
|
|
156203
|
+
description: "Generic Indexed String 7",
|
|
156204
|
+
isPersonal: false,
|
|
156205
|
+
searchable: true,
|
|
156206
|
+
title: "Generic Indexed String 7",
|
|
156207
|
+
type: "string",
|
|
156208
|
+
usageDescription: "",
|
|
156209
|
+
userEditable: true,
|
|
156210
|
+
viewable: true
|
|
156211
|
+
},
|
|
156212
|
+
frIndexedString8: {
|
|
156213
|
+
description: "Generic Indexed String 8",
|
|
156214
|
+
isPersonal: false,
|
|
156215
|
+
searchable: true,
|
|
156216
|
+
title: "Generic Indexed String 8",
|
|
156217
|
+
type: "string",
|
|
156218
|
+
usageDescription: "",
|
|
156219
|
+
userEditable: true,
|
|
156220
|
+
viewable: true
|
|
156221
|
+
},
|
|
156222
|
+
frIndexedString9: {
|
|
156223
|
+
description: "Generic Indexed String 9",
|
|
156224
|
+
isPersonal: false,
|
|
156225
|
+
searchable: true,
|
|
156226
|
+
title: "Generic Indexed String 9",
|
|
156227
|
+
type: "string",
|
|
156228
|
+
usageDescription: "",
|
|
156229
|
+
userEditable: true,
|
|
156230
|
+
viewable: true
|
|
156231
|
+
},
|
|
156232
|
+
frIndexedString10: {
|
|
156233
|
+
description: "Generic Indexed String 10",
|
|
156234
|
+
isPersonal: false,
|
|
156235
|
+
searchable: true,
|
|
156236
|
+
title: "Generic Indexed String 10",
|
|
156237
|
+
type: "string",
|
|
156238
|
+
usageDescription: "",
|
|
156239
|
+
userEditable: true,
|
|
156240
|
+
viewable: true
|
|
156241
|
+
},
|
|
156242
|
+
frIndexedString11: {
|
|
156243
|
+
description: "Generic Indexed String 11",
|
|
156244
|
+
isPersonal: false,
|
|
156245
|
+
searchable: true,
|
|
156246
|
+
title: "Generic Indexed String 11",
|
|
156247
|
+
type: "string",
|
|
156248
|
+
usageDescription: "",
|
|
156249
|
+
userEditable: true,
|
|
156250
|
+
viewable: true
|
|
156251
|
+
},
|
|
156252
|
+
frIndexedString12: {
|
|
156253
|
+
description: "Generic Indexed String 12",
|
|
156254
|
+
isPersonal: false,
|
|
156255
|
+
searchable: true,
|
|
156256
|
+
title: "Generic Indexed String 12",
|
|
156257
|
+
type: "string",
|
|
156258
|
+
usageDescription: "",
|
|
156259
|
+
userEditable: true,
|
|
156260
|
+
viewable: true
|
|
156261
|
+
},
|
|
156262
|
+
frIndexedString13: {
|
|
156263
|
+
description: "Generic Indexed String 13",
|
|
156264
|
+
isPersonal: false,
|
|
156265
|
+
searchable: true,
|
|
156266
|
+
title: "Generic Indexed String 13",
|
|
156267
|
+
type: "string",
|
|
156268
|
+
usageDescription: "",
|
|
156269
|
+
userEditable: true,
|
|
156270
|
+
viewable: true
|
|
156271
|
+
},
|
|
156272
|
+
frIndexedString14: {
|
|
156273
|
+
description: "Generic Indexed String 14",
|
|
156274
|
+
isPersonal: false,
|
|
156275
|
+
searchable: true,
|
|
156276
|
+
title: "Generic Indexed String 14",
|
|
156277
|
+
type: "string",
|
|
156278
|
+
usageDescription: "",
|
|
156279
|
+
userEditable: true,
|
|
156280
|
+
viewable: true
|
|
156281
|
+
},
|
|
156282
|
+
frIndexedString15: {
|
|
156283
|
+
description: "Generic Indexed String 15",
|
|
156284
|
+
isPersonal: false,
|
|
156285
|
+
searchable: true,
|
|
156286
|
+
title: "Generic Indexed String 15",
|
|
156287
|
+
type: "string",
|
|
156288
|
+
usageDescription: "",
|
|
156289
|
+
userEditable: true,
|
|
156290
|
+
viewable: true
|
|
156291
|
+
},
|
|
156292
|
+
frIndexedString16: {
|
|
156293
|
+
description: "Generic Indexed String 16",
|
|
156294
|
+
isPersonal: false,
|
|
156295
|
+
searchable: true,
|
|
156296
|
+
title: "Generic Indexed String 16",
|
|
156297
|
+
type: "string",
|
|
156298
|
+
usageDescription: "",
|
|
156299
|
+
userEditable: true,
|
|
156300
|
+
viewable: true
|
|
156301
|
+
},
|
|
156302
|
+
frIndexedString17: {
|
|
156303
|
+
description: "Generic Indexed String 17",
|
|
156304
|
+
isPersonal: false,
|
|
156305
|
+
searchable: true,
|
|
156306
|
+
title: "Generic Indexed String 17",
|
|
156307
|
+
type: "string",
|
|
156308
|
+
usageDescription: "",
|
|
156309
|
+
userEditable: true,
|
|
156310
|
+
viewable: true
|
|
156311
|
+
},
|
|
156312
|
+
frIndexedString18: {
|
|
156313
|
+
description: "Generic Indexed String 18",
|
|
156314
|
+
isPersonal: false,
|
|
156315
|
+
searchable: true,
|
|
156316
|
+
title: "Generic Indexed String 18",
|
|
156317
|
+
type: "string",
|
|
156318
|
+
usageDescription: "",
|
|
156319
|
+
userEditable: true,
|
|
156320
|
+
viewable: true
|
|
156321
|
+
},
|
|
156322
|
+
frIndexedString19: {
|
|
156323
|
+
description: "Generic Indexed String 19",
|
|
156324
|
+
isPersonal: false,
|
|
156325
|
+
searchable: true,
|
|
156326
|
+
title: "Generic Indexed String 19",
|
|
156327
|
+
type: "string",
|
|
156328
|
+
usageDescription: "",
|
|
156329
|
+
userEditable: true,
|
|
156330
|
+
viewable: true
|
|
156331
|
+
},
|
|
156332
|
+
frIndexedString20: {
|
|
156333
|
+
description: "Generic Indexed String 20",
|
|
156334
|
+
isPersonal: false,
|
|
156335
|
+
searchable: true,
|
|
156336
|
+
title: "Generic Indexed String 20",
|
|
156337
|
+
type: "string",
|
|
156338
|
+
usageDescription: "",
|
|
156339
|
+
userEditable: true,
|
|
156340
|
+
viewable: true
|
|
156341
|
+
},
|
|
155968
156342
|
frUnindexedDate1: {
|
|
155969
156343
|
description: "Generic Unindexed Date 1",
|
|
155970
156344
|
isPersonal: false,
|
|
@@ -174192,7 +174566,11 @@ async function exportJourneyToFile(journeyId, file, includeMeta = true, options
|
|
|
174192
174566
|
delete fileData.meta;
|
|
174193
174567
|
if (verbose)
|
|
174194
174568
|
spinnerId = createProgressIndicator2("indeterminate", 0, `${journeyId}`);
|
|
174195
|
-
saveJsonToFile23(
|
|
174569
|
+
saveJsonToFile23(
|
|
174570
|
+
{ trees: { [fileData.tree._id]: fileData } },
|
|
174571
|
+
filePath,
|
|
174572
|
+
includeMeta
|
|
174573
|
+
);
|
|
174196
174574
|
stopProgressIndicator2(
|
|
174197
174575
|
spinnerId,
|
|
174198
174576
|
`Exported ${journeyId["brightCyan"]} to ${filePath["brightCyan"]}.`,
|
|
@@ -174248,7 +174626,11 @@ async function exportJourneysToFiles(includeMeta = true, options = {
|
|
|
174248
174626
|
const file = getFilePath23(getTypedFilename22(`${treeId}`, "journey"), true);
|
|
174249
174627
|
try {
|
|
174250
174628
|
updateProgressIndicator2(indicatorId, `Saving ${treeId} to ${file}`);
|
|
174251
|
-
saveJsonToFile23(
|
|
174629
|
+
saveJsonToFile23(
|
|
174630
|
+
{ trees: { [treeValue.tree._id]: treeValue } },
|
|
174631
|
+
file,
|
|
174632
|
+
includeMeta
|
|
174633
|
+
);
|
|
174252
174634
|
stopProgressIndicator2(indicatorId, `${treeId} saved to ${file}`);
|
|
174253
174635
|
} catch (error2) {
|
|
174254
174636
|
stopProgressIndicator2(indicatorId, `Error saving ${treeId} to ${file}`);
|
|
@@ -180528,12 +180910,24 @@ function setup193() {
|
|
|
180528
180910
|
// src/cli/shell/shell.ts
|
|
180529
180911
|
_chunkHEKQUNOBcjs.init_cjs_shims.call(void 0, );
|
|
180530
180912
|
var _repl = require('repl'); var _repl2 = _interopRequireDefault(_repl);
|
|
180913
|
+
|
|
180531
180914
|
var _vm = require('vm'); var _vm2 = _interopRequireDefault(_vm);
|
|
180532
180915
|
async function startRepl(allowAwait = false) {
|
|
180533
180916
|
const baseConfig = {
|
|
180534
180917
|
prompt: "> ",
|
|
180535
180918
|
ignoreUndefined: true,
|
|
180536
|
-
useGlobal: true
|
|
180919
|
+
useGlobal: true,
|
|
180920
|
+
useColors: true,
|
|
180921
|
+
writer: function(output) {
|
|
180922
|
+
if (typeof output === "object" && output !== null) {
|
|
180923
|
+
return _util2.default.inspect(output, {
|
|
180924
|
+
depth: 10,
|
|
180925
|
+
colors: true,
|
|
180926
|
+
maxArrayLength: null
|
|
180927
|
+
});
|
|
180928
|
+
}
|
|
180929
|
+
return output;
|
|
180930
|
+
}
|
|
180537
180931
|
};
|
|
180538
180932
|
const configWithoutAwait = {
|
|
180539
180933
|
...baseConfig,
|
|
@@ -180543,6 +180937,7 @@ async function startRepl(allowAwait = false) {
|
|
|
180543
180937
|
};
|
|
180544
180938
|
const replServer = _repl2.default.start(allowAwait ? baseConfig : configWithoutAwait);
|
|
180545
180939
|
replServer.context.frodoLib = frodo;
|
|
180940
|
+
replServer.context.frodo = frodo;
|
|
180546
180941
|
}
|
|
180547
180942
|
function setup194() {
|
|
180548
180943
|
const program2 = new FrodoCommand("shell");
|
|
@@ -180571,6 +180966,9 @@ function setup194() {
|
|
|
180571
180966
|
command
|
|
180572
180967
|
);
|
|
180573
180968
|
if (host) await getTokens2();
|
|
180969
|
+
printMessage2(
|
|
180970
|
+
'Welcome to the interactive frodo shell!\nFor help type ".help", to quit shell type ".exit".\n\nType "frodo" to see a hierarchy of all available Frodo Library commands.\n\nSample commands:\n - "frodo.info.getInfo()" - prints information about the currently connected environment\n - "frodo.login.getTokens()" - gets fresh or cached tokens\n'
|
|
180971
|
+
);
|
|
180574
180972
|
startRepl(options.allowAwait);
|
|
180575
180973
|
});
|
|
180576
180974
|
return program2;
|
|
@@ -180936,7 +181334,7 @@ var compareVersions = (v12, v2) => {
|
|
|
180936
181334
|
// package.json
|
|
180937
181335
|
var package_default2 = {
|
|
180938
181336
|
name: "@rockcarver/frodo-cli",
|
|
180939
|
-
version: "3.0.
|
|
181337
|
+
version: "3.0.9",
|
|
180940
181338
|
type: "module",
|
|
180941
181339
|
description: "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
|
|
180942
181340
|
keywords: [
|
|
@@ -181051,7 +181449,7 @@ var package_default2 = {
|
|
|
181051
181449
|
]
|
|
181052
181450
|
},
|
|
181053
181451
|
devDependencies: {
|
|
181054
|
-
"@rockcarver/frodo-lib": "3.3.
|
|
181452
|
+
"@rockcarver/frodo-lib": "3.3.3",
|
|
181055
181453
|
"@types/colors": "^1.2.1",
|
|
181056
181454
|
"@types/fs-extra": "^11.0.1",
|
|
181057
181455
|
"@types/jest": "^29.2.3",
|