@rockcarver/frodo-cli 2.0.1-0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.cjs CHANGED
@@ -4529,7 +4529,7 @@ var require_colors = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
4529
4529
  var colors = {};
4530
4530
  module2["exports"] = colors;
4531
4531
  colors.themes = {};
4532
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
4532
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
4533
4533
  var ansiStyles = colors.styles = require_styles();
4534
4534
  var defineProps = Object.defineProperties;
4535
4535
  var newLineRegex = new RegExp(/[\r\n]+/g);
@@ -4592,7 +4592,7 @@ var require_colors = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
4592
4592
  if (arg != null && arg.constructor === String) {
4593
4593
  return arg;
4594
4594
  } else {
4595
- return util36.inspect(arg);
4595
+ return util39.inspect(arg);
4596
4596
  }
4597
4597
  }).join(" ");
4598
4598
  if (!colors.enabled || !str2) {
@@ -5930,7 +5930,7 @@ var require_colors2 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
5930
5930
  var colors = {};
5931
5931
  module2["exports"] = colors;
5932
5932
  colors.themes = {};
5933
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
5933
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
5934
5934
  var ansiStyles = colors.styles = require_styles2();
5935
5935
  var defineProps = Object.defineProperties;
5936
5936
  var newLineRegex = new RegExp(/[\r\n]+/g);
@@ -5993,7 +5993,7 @@ var require_colors2 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
5993
5993
  if (arg != null && arg.constructor === String) {
5994
5994
  return arg;
5995
5995
  } else {
5996
- return util36.inspect(arg);
5996
+ return util39.inspect(arg);
5997
5997
  }
5998
5998
  }).join(" ");
5999
5999
  if (!colors.enabled || !str2) {
@@ -10521,7 +10521,7 @@ var require_fill_range = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
10521
10521
  "node_modules/fill-range/index.js"(exports2, module2) {
10522
10522
  "use strict";
10523
10523
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
10524
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
10524
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
10525
10525
  var toRegexRange = require_to_regex_range();
10526
10526
  var isObject5 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
10527
10527
  var transform = (toNumber) => {
@@ -10606,7 +10606,7 @@ var require_fill_range = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
10606
10606
  return toRegexRange(start, end, options2);
10607
10607
  };
10608
10608
  var rangeError = (...args) => {
10609
- return new RangeError("Invalid range arguments: " + util36.inspect(...args));
10609
+ return new RangeError("Invalid range arguments: " + util39.inspect(...args));
10610
10610
  };
10611
10611
  var invalidRange = (start, end, options2) => {
10612
10612
  if (options2.strictRanges === true) throw rangeError([start, end]);
@@ -32503,13 +32503,13 @@ var require_inherits2 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
32503
32503
  "use strict";
32504
32504
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
32505
32505
  try {
32506
- util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
32507
- if (typeof util36.inherits !== "function") throw "";
32508
- module2.exports = util36.inherits;
32506
+ util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
32507
+ if (typeof util39.inherits !== "function") throw "";
32508
+ module2.exports = util39.inherits;
32509
32509
  } catch (e) {
32510
32510
  module2.exports = require_inherits_browser2();
32511
32511
  }
32512
- var util36;
32512
+ var util39;
32513
32513
  }
32514
32514
  });
32515
32515
 
@@ -35452,7 +35452,7 @@ var require_screen_manager = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
35452
35452
  "node_modules/inquirer/lib/utils/screen-manager.js"(exports2, module2) {
35453
35453
  "use strict";
35454
35454
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
35455
- var util36 = require_readline();
35455
+ var util39 = require_readline();
35456
35456
  var cliWidth = require_cli_width();
35457
35457
  var wrapAnsi = require_wrap_ansi();
35458
35458
  var stripAnsi = require_strip_ansi();
@@ -35518,11 +35518,11 @@ var require_screen_manager = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
35518
35518
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - cursorPos.rows;
35519
35519
  const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
35520
35520
  if (bottomContentHeight > 0) {
35521
- util36.up(this.rl, bottomContentHeight);
35521
+ util39.up(this.rl, bottomContentHeight);
35522
35522
  }
35523
- util36.left(this.rl, stringWidth(lastLine(fullContent)));
35523
+ util39.left(this.rl, stringWidth(lastLine(fullContent)));
35524
35524
  if (cursorPos.cols > 0) {
35525
- util36.right(this.rl, cursorPos.cols);
35525
+ util39.right(this.rl, cursorPos.cols);
35526
35526
  }
35527
35527
  this.extraLinesUnderPrompt = bottomContentHeight;
35528
35528
  this.height = height(fullContent);
@@ -35530,9 +35530,9 @@ var require_screen_manager = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
35530
35530
  }
35531
35531
  clean(extraLines) {
35532
35532
  if (extraLines > 0) {
35533
- util36.down(this.rl, extraLines);
35533
+ util39.down(this.rl, extraLines);
35534
35534
  }
35535
- util36.clearLine(this.rl, this.height);
35535
+ util39.clearLine(this.rl, this.height);
35536
35536
  }
35537
35537
  done() {
35538
35538
  this.rl.setPrompt("");
@@ -35541,7 +35541,7 @@ var require_screen_manager = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
35541
35541
  }
35542
35542
  releaseCursor() {
35543
35543
  if (this.extraLinesUnderPrompt > 0) {
35544
- util36.down(this.rl, this.extraLinesUnderPrompt);
35544
+ util39.down(this.rl, this.extraLinesUnderPrompt);
35545
35545
  }
35546
35546
  }
35547
35547
  normalizedCliWidth() {
@@ -36923,7 +36923,7 @@ var require_unicode = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
36923
36923
  "node_modules/chardet/encoding/unicode.js"(exports2, module2) {
36924
36924
  "use strict";
36925
36925
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
36926
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
36926
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
36927
36927
  var Match = require_match();
36928
36928
  module2.exports.UTF_16BE = function() {
36929
36929
  this.name = function() {
@@ -36991,7 +36991,7 @@ var require_unicode = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
36991
36991
  return (input[index2 + 0] & 255) << 24 | (input[index2 + 1] & 255) << 16 | (input[index2 + 2] & 255) << 8 | input[index2 + 3] & 255;
36992
36992
  };
36993
36993
  };
36994
- util36.inherits(module2.exports.UTF_32BE, UTF_32);
36994
+ util39.inherits(module2.exports.UTF_32BE, UTF_32);
36995
36995
  module2.exports.UTF_32LE = function() {
36996
36996
  this.name = function() {
36997
36997
  return "UTF-32LE";
@@ -37000,7 +37000,7 @@ var require_unicode = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37000
37000
  return (input[index2 + 3] & 255) << 24 | (input[index2 + 2] & 255) << 16 | (input[index2 + 1] & 255) << 8 | input[index2 + 0] & 255;
37001
37001
  };
37002
37002
  };
37003
- util36.inherits(module2.exports.UTF_32LE, UTF_32);
37003
+ util39.inherits(module2.exports.UTF_32LE, UTF_32);
37004
37004
  }
37005
37005
  });
37006
37006
 
@@ -37009,7 +37009,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37009
37009
  "node_modules/chardet/encoding/mbcs.js"(exports2, module2) {
37010
37010
  "use strict";
37011
37011
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
37012
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
37012
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
37013
37013
  var Match = require_match();
37014
37014
  function binarySearch(arr, searchValue) {
37015
37015
  function find(arr2, searchValue2, left, right) {
@@ -37187,7 +37187,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37187
37187
  return true;
37188
37188
  };
37189
37189
  };
37190
- util36.inherits(module2.exports.sjis, mbcs);
37190
+ util39.inherits(module2.exports.sjis, mbcs);
37191
37191
  module2.exports.big5 = function() {
37192
37192
  this.name = function() {
37193
37193
  return "Big5";
@@ -37310,7 +37310,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37310
37310
  return true;
37311
37311
  };
37312
37312
  };
37313
- util36.inherits(module2.exports.big5, mbcs);
37313
+ util39.inherits(module2.exports.big5, mbcs);
37314
37314
  function eucNextChar(iter, det) {
37315
37315
  iter.index = iter.nextIndex;
37316
37316
  iter.error = false;
@@ -37461,7 +37461,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37461
37461
  ];
37462
37462
  this.nextChar = eucNextChar;
37463
37463
  };
37464
- util36.inherits(module2.exports.euc_jp, mbcs);
37464
+ util39.inherits(module2.exports.euc_jp, mbcs);
37465
37465
  module2.exports.euc_kr = function() {
37466
37466
  this.name = function() {
37467
37467
  return "EUC-KR";
@@ -37573,7 +37573,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37573
37573
  ];
37574
37574
  this.nextChar = eucNextChar;
37575
37575
  };
37576
- util36.inherits(module2.exports.euc_kr, mbcs);
37576
+ util39.inherits(module2.exports.euc_kr, mbcs);
37577
37577
  module2.exports.gb_18030 = function() {
37578
37578
  this.name = function() {
37579
37579
  return "GB18030";
@@ -37722,7 +37722,7 @@ var require_mbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37722
37722
  54992
37723
37723
  ];
37724
37724
  };
37725
- util36.inherits(module2.exports.gb_18030, mbcs);
37725
+ util39.inherits(module2.exports.gb_18030, mbcs);
37726
37726
  }
37727
37727
  });
37728
37728
 
@@ -37731,7 +37731,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
37731
37731
  "node_modules/chardet/encoding/sbcs.js"(exports2, module2) {
37732
37732
  "use strict";
37733
37733
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
37734
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
37734
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
37735
37735
  var Match = require_match();
37736
37736
  function NGramParser(theNgramList, theByteMap) {
37737
37737
  var N_GRAM_MASK = 16777215;
@@ -38751,7 +38751,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
38751
38751
  return det && det.fC1Bytes ? "windows-1252" : "ISO-8859-1";
38752
38752
  };
38753
38753
  };
38754
- util36.inherits(module2.exports.ISO_8859_1, sbcs);
38754
+ util39.inherits(module2.exports.ISO_8859_1, sbcs);
38755
38755
  module2.exports.ISO_8859_2 = function() {
38756
38756
  this.byteMap = function() {
38757
38757
  return [
@@ -39285,7 +39285,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
39285
39285
  return det && det.fC1Bytes ? "windows-1250" : "ISO-8859-2";
39286
39286
  };
39287
39287
  };
39288
- util36.inherits(module2.exports.ISO_8859_2, sbcs);
39288
+ util39.inherits(module2.exports.ISO_8859_2, sbcs);
39289
39289
  module2.exports.ISO_8859_5 = function() {
39290
39290
  this.byteMap = function() {
39291
39291
  return [
@@ -39622,7 +39622,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
39622
39622
  return "ru";
39623
39623
  };
39624
39624
  };
39625
- util36.inherits(module2.exports.ISO_8859_5, sbcs);
39625
+ util39.inherits(module2.exports.ISO_8859_5, sbcs);
39626
39626
  module2.exports.ISO_8859_6 = function() {
39627
39627
  this.byteMap = function() {
39628
39628
  return [
@@ -39959,7 +39959,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
39959
39959
  return "ar";
39960
39960
  };
39961
39961
  };
39962
- util36.inherits(module2.exports.ISO_8859_6, sbcs);
39962
+ util39.inherits(module2.exports.ISO_8859_6, sbcs);
39963
39963
  module2.exports.ISO_8859_7 = function() {
39964
39964
  this.byteMap = function() {
39965
39965
  return [
@@ -40296,7 +40296,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
40296
40296
  return "el";
40297
40297
  };
40298
40298
  };
40299
- util36.inherits(module2.exports.ISO_8859_7, sbcs);
40299
+ util39.inherits(module2.exports.ISO_8859_7, sbcs);
40300
40300
  module2.exports.ISO_8859_8 = function() {
40301
40301
  this.byteMap = function() {
40302
40302
  return [
@@ -40701,7 +40701,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
40701
40701
  return "he";
40702
40702
  };
40703
40703
  };
40704
- util36.inherits(module2.exports.ISO_8859_8, sbcs);
40704
+ util39.inherits(module2.exports.ISO_8859_8, sbcs);
40705
40705
  module2.exports.ISO_8859_9 = function() {
40706
40706
  this.byteMap = function() {
40707
40707
  return [
@@ -41038,7 +41038,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
41038
41038
  return "tr";
41039
41039
  };
41040
41040
  };
41041
- util36.inherits(module2.exports.ISO_8859_9, sbcs);
41041
+ util39.inherits(module2.exports.ISO_8859_9, sbcs);
41042
41042
  module2.exports.windows_1251 = function() {
41043
41043
  this.byteMap = function() {
41044
41044
  return [
@@ -41375,7 +41375,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
41375
41375
  return "ru";
41376
41376
  };
41377
41377
  };
41378
- util36.inherits(module2.exports.windows_1251, sbcs);
41378
+ util39.inherits(module2.exports.windows_1251, sbcs);
41379
41379
  module2.exports.windows_1256 = function() {
41380
41380
  this.byteMap = function() {
41381
41381
  return [
@@ -41712,7 +41712,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
41712
41712
  return "ar";
41713
41713
  };
41714
41714
  };
41715
- util36.inherits(module2.exports.windows_1256, sbcs);
41715
+ util39.inherits(module2.exports.windows_1256, sbcs);
41716
41716
  module2.exports.KOI8_R = function() {
41717
41717
  this.byteMap = function() {
41718
41718
  return [
@@ -42049,7 +42049,7 @@ var require_sbcs = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
42049
42049
  return "ru";
42050
42050
  };
42051
42051
  };
42052
- util36.inherits(module2.exports.KOI8_R, sbcs);
42052
+ util39.inherits(module2.exports.KOI8_R, sbcs);
42053
42053
  }
42054
42054
  });
42055
42055
 
@@ -42058,7 +42058,7 @@ var require_iso2022 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
42058
42058
  "node_modules/chardet/encoding/iso2022.js"(exports2, module2) {
42059
42059
  "use strict";
42060
42060
  _chunkMPPKDFVIcjs.init_cjs_shims.call(void 0, );
42061
- var util36 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
42061
+ var util39 = _chunkMPPKDFVIcjs.__require.call(void 0, "util");
42062
42062
  var Match = require_match();
42063
42063
  function ISO_2022() {
42064
42064
  }
@@ -42129,7 +42129,7 @@ var require_iso2022 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
42129
42129
  // ISO 8859-7
42130
42130
  ];
42131
42131
  };
42132
- util36.inherits(module2.exports.ISO_2022_JP, ISO_2022);
42132
+ util39.inherits(module2.exports.ISO_2022_JP, ISO_2022);
42133
42133
  module2.exports.ISO_2022_KR = function() {
42134
42134
  this.name = function() {
42135
42135
  return "ISO-2022-KR";
@@ -42138,7 +42138,7 @@ var require_iso2022 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
42138
42138
  [27, 36, 41, 67]
42139
42139
  ];
42140
42140
  };
42141
- util36.inherits(module2.exports.ISO_2022_KR, ISO_2022);
42141
+ util39.inherits(module2.exports.ISO_2022_KR, ISO_2022);
42142
42142
  module2.exports.ISO_2022_CN = function() {
42143
42143
  this.name = function() {
42144
42144
  return "ISO-2022-CN";
@@ -42168,7 +42168,7 @@ var require_iso2022 = _chunkMPPKDFVIcjs.__commonJS.call(void 0, {
42168
42168
  // SS3
42169
42169
  ];
42170
42170
  };
42171
- util36.inherits(module2.exports.ISO_2022_CN, ISO_2022);
42171
+ util39.inherits(module2.exports.ISO_2022_CN, ISO_2022);
42172
42172
  }
42173
42173
  });
42174
42174
 
@@ -46850,7 +46850,6 @@ var _tty = require('tty'); var _tty2 = _interopRequireDefault(_tty);
46850
46850
 
46851
46851
  var _os2 = require('os'); var _os3 = _interopRequireDefault(_os2);
46852
46852
  var _timers = require('timers'); var _timers2 = _interopRequireDefault(_timers);
46853
- var _loglevel = require('loglevel'); var _loglevel2 = _interopRequireDefault(_loglevel);
46854
46853
  var _path2 = require('path'); var _path3 = _interopRequireDefault(_path2);
46855
46854
 
46856
46855
 
@@ -46895,6 +46894,9 @@ var _promises = require('fs/promises');
46895
46894
 
46896
46895
 
46897
46896
 
46897
+
46898
+
46899
+
46898
46900
 
46899
46901
 
46900
46902
 
@@ -47056,13 +47058,13 @@ var require_ms = __commonJS2({
47056
47058
  var require_humanize_ms = __commonJS2({
47057
47059
  "node_modules/humanize-ms/index.js"(exports2, module2) {
47058
47060
  "use strict";
47059
- var util36 = __require2("util");
47061
+ var util39 = __require2("util");
47060
47062
  var ms2 = require_ms();
47061
47063
  module2.exports = function(t) {
47062
47064
  if (typeof t === "number") return t;
47063
47065
  var r = ms2(t);
47064
47066
  if (r === void 0) {
47065
- var err = new Error(util36.format("humanize-ms(%j) result undefined", t));
47067
+ var err = new Error(util39.format("humanize-ms(%j) result undefined", t));
47066
47068
  console.warn(err.stack);
47067
47069
  }
47068
47070
  return r;
@@ -47467,7 +47469,7 @@ var require_delayed_stream = __commonJS2({
47467
47469
  "node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
47468
47470
  "use strict";
47469
47471
  var Stream = __require2("stream").Stream;
47470
- var util36 = __require2("util");
47472
+ var util39 = __require2("util");
47471
47473
  module2.exports = DelayedStream;
47472
47474
  function DelayedStream() {
47473
47475
  this.source = null;
@@ -47478,7 +47480,7 @@ var require_delayed_stream = __commonJS2({
47478
47480
  this._released = false;
47479
47481
  this._bufferedEvents = [];
47480
47482
  }
47481
- util36.inherits(DelayedStream, Stream);
47483
+ util39.inherits(DelayedStream, Stream);
47482
47484
  DelayedStream.create = function(source, options2) {
47483
47485
  var delayedStream = new this();
47484
47486
  options2 = options2 || {};
@@ -47556,7 +47558,7 @@ var require_delayed_stream = __commonJS2({
47556
47558
  var require_combined_stream = __commonJS2({
47557
47559
  "node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
47558
47560
  "use strict";
47559
- var util36 = __require2("util");
47561
+ var util39 = __require2("util");
47560
47562
  var Stream = __require2("stream").Stream;
47561
47563
  var DelayedStream = require_delayed_stream();
47562
47564
  module2.exports = CombinedStream;
@@ -47572,7 +47574,7 @@ var require_combined_stream = __commonJS2({
47572
47574
  this._insideLoop = false;
47573
47575
  this._pendingNext = false;
47574
47576
  }
47575
- util36.inherits(CombinedStream, Stream);
47577
+ util39.inherits(CombinedStream, Stream);
47576
47578
  CombinedStream.create = function(options2) {
47577
47579
  var combinedStream = new this();
47578
47580
  options2 = options2 || {};
@@ -56552,7 +56554,7 @@ var require_form_data = __commonJS2({
56552
56554
  "node_modules/form-data/lib/form_data.js"(exports2, module2) {
56553
56555
  "use strict";
56554
56556
  var CombinedStream = require_combined_stream();
56555
- var util36 = __require2("util");
56557
+ var util39 = __require2("util");
56556
56558
  var path52 = __require2("path");
56557
56559
  var http3 = __require2("http");
56558
56560
  var https3 = __require2("https");
@@ -56563,7 +56565,7 @@ var require_form_data = __commonJS2({
56563
56565
  var asynckit = require_asynckit();
56564
56566
  var populate = require_populate();
56565
56567
  module2.exports = FormData3;
56566
- util36.inherits(FormData3, CombinedStream);
56568
+ util39.inherits(FormData3, CombinedStream);
56567
56569
  function FormData3(options2) {
56568
56570
  if (!(this instanceof FormData3)) {
56569
56571
  return new FormData3(options2);
@@ -56588,7 +56590,7 @@ var require_form_data = __commonJS2({
56588
56590
  if (typeof value == "number") {
56589
56591
  value = "" + value;
56590
56592
  }
56591
- if (util36.isArray(value)) {
56593
+ if (util39.isArray(value)) {
56592
56594
  this._error(new Error("Arrays are not supported."));
56593
56595
  return;
56594
56596
  }
@@ -57374,14 +57376,14 @@ var require_node = __commonJS2({
57374
57376
  "node_modules/debug/src/node.js"(exports2, module2) {
57375
57377
  "use strict";
57376
57378
  var tty2 = __require2("tty");
57377
- var util36 = __require2("util");
57379
+ var util39 = __require2("util");
57378
57380
  exports2.init = init;
57379
57381
  exports2.log = log;
57380
57382
  exports2.formatArgs = formatArgs;
57381
57383
  exports2.save = save;
57382
57384
  exports2.load = load;
57383
57385
  exports2.useColors = useColors;
57384
- exports2.destroy = util36.deprecate(
57386
+ exports2.destroy = util39.deprecate(
57385
57387
  () => {
57386
57388
  },
57387
57389
  "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
@@ -57512,7 +57514,7 @@ var require_node = __commonJS2({
57512
57514
  return (/* @__PURE__ */ new Date()).toISOString() + " ";
57513
57515
  }
57514
57516
  function log(...args) {
57515
- return process.stderr.write(util36.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
57517
+ return process.stderr.write(util39.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
57516
57518
  }
57517
57519
  function save(namespaces) {
57518
57520
  if (namespaces) {
@@ -57535,11 +57537,11 @@ var require_node = __commonJS2({
57535
57537
  var { formatters } = module2.exports;
57536
57538
  formatters.o = function(v) {
57537
57539
  this.inspectOpts.colors = this.useColors;
57538
- return util36.inspect(v, this.inspectOpts).split("\n").map((str2) => str2.trim()).join(" ");
57540
+ return util39.inspect(v, this.inspectOpts).split("\n").map((str2) => str2.trim()).join(" ");
57539
57541
  };
57540
57542
  formatters.O = function(v) {
57541
57543
  this.inspectOpts.colors = this.useColors;
57542
- return util36.inspect(v, this.inspectOpts);
57544
+ return util39.inspect(v, this.inspectOpts);
57543
57545
  };
57544
57546
  }
57545
57547
  });
@@ -58559,7 +58561,7 @@ var require_common2 = __commonJS2({
58559
58561
  var debug22 = require_src()("nock.common");
58560
58562
  var timers2 = __require2("timers");
58561
58563
  var url5 = __require2("url");
58562
- var util36 = __require2("util");
58564
+ var util39 = __require2("util");
58563
58565
  function normalizeRequestOptions2(options2) {
58564
58566
  options2.proto = options2.proto || "http";
58565
58567
  options2.port = options2.port || (options2.proto === "http" ? 80 : 443);
@@ -58706,7 +58708,7 @@ var require_common2 = __commonJS2({
58706
58708
  }
58707
58709
  return [...headers2];
58708
58710
  }
58709
- if (util36.types.isMap(headers2)) {
58711
+ if (util39.types.isMap(headers2)) {
58710
58712
  return [].concat(...Array.from(headers2, ([k2, v]) => [k2.toString(), v]));
58711
58713
  }
58712
58714
  if (isPlainObject4(headers2)) {
@@ -59196,7 +59198,7 @@ var require_playback_interceptor = __commonJS2({
59196
59198
  "node_modules/nock/lib/playback_interceptor.js"(exports2, module2) {
59197
59199
  "use strict";
59198
59200
  var stream4 = __require2("stream");
59199
- var util36 = __require2("util");
59201
+ var util39 = __require2("util");
59200
59202
  var zlib2 = __require2("zlib");
59201
59203
  var debug22 = require_src()("nock.playback_interceptor");
59202
59204
  var common2 = require_common2();
@@ -59307,7 +59309,7 @@ var require_playback_interceptor = __commonJS2({
59307
59309
  const parsedRequestBody = parseJSONRequestBody(req, requestBodyString);
59308
59310
  let fn = interceptor.replyFunction;
59309
59311
  if (fn.length === 3) {
59310
- fn = util36.promisify(fn);
59312
+ fn = util39.promisify(fn);
59311
59313
  }
59312
59314
  Promise.resolve(fn.call(interceptor, options2.path, parsedRequestBody)).then(continueWithResponseBody).catch((err) => req.destroy(err));
59313
59315
  return;
@@ -59316,7 +59318,7 @@ var require_playback_interceptor = __commonJS2({
59316
59318
  const parsedRequestBody = parseJSONRequestBody(req, requestBodyString);
59317
59319
  let fn = interceptor.fullReplyFunction;
59318
59320
  if (fn.length === 3) {
59319
- fn = util36.promisify(fn);
59321
+ fn = util39.promisify(fn);
59320
59322
  }
59321
59323
  Promise.resolve(fn.call(interceptor, options2.path, parsedRequestBody)).then(continueWithFullResponse).catch((err) => req.destroy(err));
59322
59324
  return;
@@ -63872,6 +63874,258 @@ var require_lib = __commonJS2({
63872
63874
  };
63873
63875
  }
63874
63876
  });
63877
+ var require_loglevel = __commonJS2({
63878
+ "node_modules/loglevel/lib/loglevel.js"(exports2, module2) {
63879
+ "use strict";
63880
+ (function(root4, definition) {
63881
+ "use strict";
63882
+ if (typeof define === "function" && define.amd) {
63883
+ define(definition);
63884
+ } else if (typeof module2 === "object" && module2.exports) {
63885
+ module2.exports = definition();
63886
+ } else {
63887
+ root4.log = definition();
63888
+ }
63889
+ })(exports2, function() {
63890
+ "use strict";
63891
+ var noop3 = function() {
63892
+ };
63893
+ var undefinedType = "undefined";
63894
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
63895
+ var logMethods = [
63896
+ "trace",
63897
+ "debug",
63898
+ "info",
63899
+ "warn",
63900
+ "error"
63901
+ ];
63902
+ var _loggersByName = {};
63903
+ var defaultLogger = null;
63904
+ function bindMethod(obj, methodName) {
63905
+ var method2 = obj[methodName];
63906
+ if (typeof method2.bind === "function") {
63907
+ return method2.bind(obj);
63908
+ } else {
63909
+ try {
63910
+ return Function.prototype.bind.call(method2, obj);
63911
+ } catch (e) {
63912
+ return function() {
63913
+ return Function.prototype.apply.apply(method2, [obj, arguments]);
63914
+ };
63915
+ }
63916
+ }
63917
+ }
63918
+ function traceForIE() {
63919
+ if (console.log) {
63920
+ if (console.log.apply) {
63921
+ console.log.apply(console, arguments);
63922
+ } else {
63923
+ Function.prototype.apply.apply(console.log, [console, arguments]);
63924
+ }
63925
+ }
63926
+ if (console.trace) console.trace();
63927
+ }
63928
+ function realMethod(methodName) {
63929
+ if (methodName === "debug") {
63930
+ methodName = "log";
63931
+ }
63932
+ if (typeof console === undefinedType) {
63933
+ return false;
63934
+ } else if (methodName === "trace" && isIE) {
63935
+ return traceForIE;
63936
+ } else if (console[methodName] !== void 0) {
63937
+ return bindMethod(console, methodName);
63938
+ } else if (console.log !== void 0) {
63939
+ return bindMethod(console, "log");
63940
+ } else {
63941
+ return noop3;
63942
+ }
63943
+ }
63944
+ function replaceLoggingMethods() {
63945
+ var level = this.getLevel();
63946
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
63947
+ var methodName = logMethods[i2];
63948
+ this[methodName] = i2 < level ? noop3 : this.methodFactory(methodName, level, this.name);
63949
+ }
63950
+ this.log = this.debug;
63951
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
63952
+ return "No console available for logging";
63953
+ }
63954
+ }
63955
+ function enableLoggingWhenConsoleArrives(methodName) {
63956
+ return function() {
63957
+ if (typeof console !== undefinedType) {
63958
+ replaceLoggingMethods.call(this);
63959
+ this[methodName].apply(this, arguments);
63960
+ }
63961
+ };
63962
+ }
63963
+ function defaultMethodFactory(methodName, _level, _loggerName) {
63964
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
63965
+ }
63966
+ function Logger2(name, factory) {
63967
+ var self2 = this;
63968
+ var inheritedLevel;
63969
+ var defaultLevel;
63970
+ var userLevel;
63971
+ var storageKey = "loglevel";
63972
+ if (typeof name === "string") {
63973
+ storageKey += ":" + name;
63974
+ } else if (typeof name === "symbol") {
63975
+ storageKey = void 0;
63976
+ }
63977
+ function persistLevelIfPossible(levelNum) {
63978
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
63979
+ if (typeof window === undefinedType || !storageKey) return;
63980
+ try {
63981
+ window.localStorage[storageKey] = levelName;
63982
+ return;
63983
+ } catch (ignore) {
63984
+ }
63985
+ try {
63986
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
63987
+ } catch (ignore) {
63988
+ }
63989
+ }
63990
+ function getPersistedLevel() {
63991
+ var storedLevel;
63992
+ if (typeof window === undefinedType || !storageKey) return;
63993
+ try {
63994
+ storedLevel = window.localStorage[storageKey];
63995
+ } catch (ignore) {
63996
+ }
63997
+ if (typeof storedLevel === undefinedType) {
63998
+ try {
63999
+ var cookie = window.document.cookie;
64000
+ var cookieName = encodeURIComponent(storageKey);
64001
+ var location = cookie.indexOf(cookieName + "=");
64002
+ if (location !== -1) {
64003
+ storedLevel = /^([^;]+)/.exec(
64004
+ cookie.slice(location + cookieName.length + 1)
64005
+ )[1];
64006
+ }
64007
+ } catch (ignore) {
64008
+ }
64009
+ }
64010
+ if (self2.levels[storedLevel] === void 0) {
64011
+ storedLevel = void 0;
64012
+ }
64013
+ return storedLevel;
64014
+ }
64015
+ function clearPersistedLevel() {
64016
+ if (typeof window === undefinedType || !storageKey) return;
64017
+ try {
64018
+ window.localStorage.removeItem(storageKey);
64019
+ } catch (ignore) {
64020
+ }
64021
+ try {
64022
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
64023
+ } catch (ignore) {
64024
+ }
64025
+ }
64026
+ function normalizeLevel(input) {
64027
+ var level = input;
64028
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
64029
+ level = self2.levels[level.toUpperCase()];
64030
+ }
64031
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
64032
+ return level;
64033
+ } else {
64034
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
64035
+ }
64036
+ }
64037
+ self2.name = name;
64038
+ self2.levels = {
64039
+ "TRACE": 0,
64040
+ "DEBUG": 1,
64041
+ "INFO": 2,
64042
+ "WARN": 3,
64043
+ "ERROR": 4,
64044
+ "SILENT": 5
64045
+ };
64046
+ self2.methodFactory = factory || defaultMethodFactory;
64047
+ self2.getLevel = function() {
64048
+ if (userLevel != null) {
64049
+ return userLevel;
64050
+ } else if (defaultLevel != null) {
64051
+ return defaultLevel;
64052
+ } else {
64053
+ return inheritedLevel;
64054
+ }
64055
+ };
64056
+ self2.setLevel = function(level, persist) {
64057
+ userLevel = normalizeLevel(level);
64058
+ if (persist !== false) {
64059
+ persistLevelIfPossible(userLevel);
64060
+ }
64061
+ return replaceLoggingMethods.call(self2);
64062
+ };
64063
+ self2.setDefaultLevel = function(level) {
64064
+ defaultLevel = normalizeLevel(level);
64065
+ if (!getPersistedLevel()) {
64066
+ self2.setLevel(level, false);
64067
+ }
64068
+ };
64069
+ self2.resetLevel = function() {
64070
+ userLevel = null;
64071
+ clearPersistedLevel();
64072
+ replaceLoggingMethods.call(self2);
64073
+ };
64074
+ self2.enableAll = function(persist) {
64075
+ self2.setLevel(self2.levels.TRACE, persist);
64076
+ };
64077
+ self2.disableAll = function(persist) {
64078
+ self2.setLevel(self2.levels.SILENT, persist);
64079
+ };
64080
+ self2.rebuild = function() {
64081
+ if (defaultLogger !== self2) {
64082
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
64083
+ }
64084
+ replaceLoggingMethods.call(self2);
64085
+ if (defaultLogger === self2) {
64086
+ for (var childName in _loggersByName) {
64087
+ _loggersByName[childName].rebuild();
64088
+ }
64089
+ }
64090
+ };
64091
+ inheritedLevel = normalizeLevel(
64092
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
64093
+ );
64094
+ var initialLevel = getPersistedLevel();
64095
+ if (initialLevel != null) {
64096
+ userLevel = normalizeLevel(initialLevel);
64097
+ }
64098
+ replaceLoggingMethods.call(self2);
64099
+ }
64100
+ defaultLogger = new Logger2();
64101
+ defaultLogger.getLogger = function getLogger(name) {
64102
+ if (typeof name !== "symbol" && typeof name !== "string" || name === "") {
64103
+ throw new TypeError("You must supply a name when creating a logger.");
64104
+ }
64105
+ var logger = _loggersByName[name];
64106
+ if (!logger) {
64107
+ logger = _loggersByName[name] = new Logger2(
64108
+ name,
64109
+ defaultLogger.methodFactory
64110
+ );
64111
+ }
64112
+ return logger;
64113
+ };
64114
+ var _log = typeof window !== undefinedType ? window.log : void 0;
64115
+ defaultLogger.noConflict = function() {
64116
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
64117
+ window.log = _log;
64118
+ }
64119
+ return defaultLogger;
64120
+ };
64121
+ defaultLogger.getLoggers = function getLoggers() {
64122
+ return _loggersByName;
64123
+ };
64124
+ defaultLogger["default"] = defaultLogger;
64125
+ return defaultLogger;
64126
+ });
64127
+ }
64128
+ });
63875
64129
  var require_md5 = __commonJS2({
63876
64130
  "node_modules/blueimp-md5/js/md5.js"(exports2, module2) {
63877
64131
  "use strict";
@@ -64867,7 +65121,7 @@ var require_graceful_fs = __commonJS2({
64867
65121
  var polyfills = require_polyfills();
64868
65122
  var legacy = require_legacy_streams();
64869
65123
  var clone = require_clone();
64870
- var util36 = __require2("util");
65124
+ var util39 = __require2("util");
64871
65125
  var gracefulQueue;
64872
65126
  var previousSymbol;
64873
65127
  if (typeof Symbol === "function" && typeof Symbol.for === "function") {
@@ -64887,11 +65141,11 @@ var require_graceful_fs = __commonJS2({
64887
65141
  });
64888
65142
  }
64889
65143
  var debug22 = noop3;
64890
- if (util36.debuglog)
64891
- debug22 = util36.debuglog("gfs4");
65144
+ if (util39.debuglog)
65145
+ debug22 = util39.debuglog("gfs4");
64892
65146
  else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
64893
65147
  debug22 = function() {
64894
- var m2 = util36.format.apply(util36, arguments);
65148
+ var m2 = util39.format.apply(util39, arguments);
64895
65149
  m2 = "GFS4: " + m2.split(/\n/).join("\nGFS4: ");
64896
65150
  console.error(m2);
64897
65151
  };
@@ -65433,7 +65687,7 @@ var require_stat = __commonJS2({
65433
65687
  "use strict";
65434
65688
  var fs72 = require_fs();
65435
65689
  var path52 = __require2("path");
65436
- var util36 = __require2("util");
65690
+ var util39 = __require2("util");
65437
65691
  function getStats(src2, dest, opts) {
65438
65692
  const statFunc = opts.dereference ? (file) => fs72.stat(file, { bigint: true }) : (file) => fs72.lstat(file, { bigint: true });
65439
65693
  return Promise.all([
@@ -65457,7 +65711,7 @@ var require_stat = __commonJS2({
65457
65711
  return { srcStat, destStat };
65458
65712
  }
65459
65713
  function checkPaths(src2, dest, funcName, opts, cb) {
65460
- util36.callbackify(getStats)(src2, dest, opts, (err, stats) => {
65714
+ util39.callbackify(getStats)(src2, dest, opts, (err, stats) => {
65461
65715
  if (err) return cb(err);
65462
65716
  const { srcStat, destStat } = stats;
65463
65717
  if (destStat) {
@@ -67580,7 +67834,7 @@ var require_node2 = __commonJS2({
67580
67834
  "node_modules/morgan/node_modules/debug/src/node.js"(exports2, module2) {
67581
67835
  "use strict";
67582
67836
  var tty2 = __require2("tty");
67583
- var util36 = __require2("util");
67837
+ var util39 = __require2("util");
67584
67838
  exports2 = module2.exports = require_debug2();
67585
67839
  exports2.init = init;
67586
67840
  exports2.log = log;
@@ -67605,7 +67859,7 @@ var require_node2 = __commonJS2({
67605
67859
  }, {});
67606
67860
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
67607
67861
  if (1 !== fd && 2 !== fd) {
67608
- util36.deprecate(function() {
67862
+ util39.deprecate(function() {
67609
67863
  }, "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)")();
67610
67864
  }
67611
67865
  var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -67614,13 +67868,13 @@ var require_node2 = __commonJS2({
67614
67868
  }
67615
67869
  exports2.formatters.o = function(v) {
67616
67870
  this.inspectOpts.colors = this.useColors;
67617
- return util36.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
67871
+ return util39.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
67618
67872
  return str2.trim();
67619
67873
  }).join(" ");
67620
67874
  };
67621
67875
  exports2.formatters.O = function(v) {
67622
67876
  this.inspectOpts.colors = this.useColors;
67623
- return util36.inspect(v, this.inspectOpts);
67877
+ return util39.inspect(v, this.inspectOpts);
67624
67878
  };
67625
67879
  function formatArgs(args) {
67626
67880
  var name = this.namespace;
@@ -67635,7 +67889,7 @@ var require_node2 = __commonJS2({
67635
67889
  }
67636
67890
  }
67637
67891
  function log() {
67638
- return stream4.write(util36.format.apply(util36, arguments) + "\n");
67892
+ return stream4.write(util39.format.apply(util39, arguments) + "\n");
67639
67893
  }
67640
67894
  function save(namespaces) {
67641
67895
  if (null == namespaces) {
@@ -68807,13 +69061,13 @@ var require_inherits = __commonJS2({
68807
69061
  "node_modules/inherits/inherits.js"(exports2, module2) {
68808
69062
  "use strict";
68809
69063
  try {
68810
- util36 = __require2("util");
68811
- if (typeof util36.inherits !== "function") throw "";
68812
- module2.exports = util36.inherits;
69064
+ util39 = __require2("util");
69065
+ if (typeof util39.inherits !== "function") throw "";
69066
+ module2.exports = util39.inherits;
68813
69067
  } catch (e) {
68814
69068
  module2.exports = require_inherits_browser();
68815
69069
  }
68816
- var util36;
69070
+ var util39;
68817
69071
  }
68818
69072
  });
68819
69073
  var require_toidentifier = __commonJS2({
@@ -69283,7 +69537,7 @@ var require_node3 = __commonJS2({
69283
69537
  "node_modules/body-parser/node_modules/debug/src/node.js"(exports2, module2) {
69284
69538
  "use strict";
69285
69539
  var tty2 = __require2("tty");
69286
- var util36 = __require2("util");
69540
+ var util39 = __require2("util");
69287
69541
  exports2 = module2.exports = require_debug3();
69288
69542
  exports2.init = init;
69289
69543
  exports2.log = log;
@@ -69308,7 +69562,7 @@ var require_node3 = __commonJS2({
69308
69562
  }, {});
69309
69563
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
69310
69564
  if (1 !== fd && 2 !== fd) {
69311
- util36.deprecate(function() {
69565
+ util39.deprecate(function() {
69312
69566
  }, "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)")();
69313
69567
  }
69314
69568
  var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -69317,13 +69571,13 @@ var require_node3 = __commonJS2({
69317
69571
  }
69318
69572
  exports2.formatters.o = function(v) {
69319
69573
  this.inspectOpts.colors = this.useColors;
69320
- return util36.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
69574
+ return util39.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
69321
69575
  return str2.trim();
69322
69576
  }).join(" ");
69323
69577
  };
69324
69578
  exports2.formatters.O = function(v) {
69325
69579
  this.inspectOpts.colors = this.useColors;
69326
- return util36.inspect(v, this.inspectOpts);
69580
+ return util39.inspect(v, this.inspectOpts);
69327
69581
  };
69328
69582
  function formatArgs(args) {
69329
69583
  var name = this.namespace;
@@ -69338,7 +69592,7 @@ var require_node3 = __commonJS2({
69338
69592
  }
69339
69593
  }
69340
69594
  function log() {
69341
- return stream4.write(util36.format.apply(util36, arguments) + "\n");
69595
+ return stream4.write(util39.format.apply(util39, arguments) + "\n");
69342
69596
  }
69343
69597
  function save(namespaces) {
69344
69598
  if (null == namespaces) {
@@ -75049,7 +75303,7 @@ var require_node4 = __commonJS2({
75049
75303
  "node_modules/finalhandler/node_modules/debug/src/node.js"(exports2, module2) {
75050
75304
  "use strict";
75051
75305
  var tty2 = __require2("tty");
75052
- var util36 = __require2("util");
75306
+ var util39 = __require2("util");
75053
75307
  exports2 = module2.exports = require_debug4();
75054
75308
  exports2.init = init;
75055
75309
  exports2.log = log;
@@ -75074,7 +75328,7 @@ var require_node4 = __commonJS2({
75074
75328
  }, {});
75075
75329
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
75076
75330
  if (1 !== fd && 2 !== fd) {
75077
- util36.deprecate(function() {
75331
+ util39.deprecate(function() {
75078
75332
  }, "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)")();
75079
75333
  }
75080
75334
  var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -75083,13 +75337,13 @@ var require_node4 = __commonJS2({
75083
75337
  }
75084
75338
  exports2.formatters.o = function(v) {
75085
75339
  this.inspectOpts.colors = this.useColors;
75086
- return util36.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
75340
+ return util39.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
75087
75341
  return str2.trim();
75088
75342
  }).join(" ");
75089
75343
  };
75090
75344
  exports2.formatters.O = function(v) {
75091
75345
  this.inspectOpts.colors = this.useColors;
75092
- return util36.inspect(v, this.inspectOpts);
75346
+ return util39.inspect(v, this.inspectOpts);
75093
75347
  };
75094
75348
  function formatArgs(args) {
75095
75349
  var name = this.namespace;
@@ -75104,7 +75358,7 @@ var require_node4 = __commonJS2({
75104
75358
  }
75105
75359
  }
75106
75360
  function log() {
75107
- return stream4.write(util36.format.apply(util36, arguments) + "\n");
75361
+ return stream4.write(util39.format.apply(util39, arguments) + "\n");
75108
75362
  }
75109
75363
  function save(namespaces) {
75110
75364
  if (null == namespaces) {
@@ -75745,7 +75999,7 @@ var require_node5 = __commonJS2({
75745
75999
  "node_modules/express/node_modules/debug/src/node.js"(exports2, module2) {
75746
76000
  "use strict";
75747
76001
  var tty2 = __require2("tty");
75748
- var util36 = __require2("util");
76002
+ var util39 = __require2("util");
75749
76003
  exports2 = module2.exports = require_debug5();
75750
76004
  exports2.init = init;
75751
76005
  exports2.log = log;
@@ -75770,7 +76024,7 @@ var require_node5 = __commonJS2({
75770
76024
  }, {});
75771
76025
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
75772
76026
  if (1 !== fd && 2 !== fd) {
75773
- util36.deprecate(function() {
76027
+ util39.deprecate(function() {
75774
76028
  }, "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)")();
75775
76029
  }
75776
76030
  var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -75779,13 +76033,13 @@ var require_node5 = __commonJS2({
75779
76033
  }
75780
76034
  exports2.formatters.o = function(v) {
75781
76035
  this.inspectOpts.colors = this.useColors;
75782
- return util36.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
76036
+ return util39.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
75783
76037
  return str2.trim();
75784
76038
  }).join(" ");
75785
76039
  };
75786
76040
  exports2.formatters.O = function(v) {
75787
76041
  this.inspectOpts.colors = this.useColors;
75788
- return util36.inspect(v, this.inspectOpts);
76042
+ return util39.inspect(v, this.inspectOpts);
75789
76043
  };
75790
76044
  function formatArgs(args) {
75791
76045
  var name = this.namespace;
@@ -75800,7 +76054,7 @@ var require_node5 = __commonJS2({
75800
76054
  }
75801
76055
  }
75802
76056
  function log() {
75803
- return stream4.write(util36.format.apply(util36, arguments) + "\n");
76057
+ return stream4.write(util39.format.apply(util39, arguments) + "\n");
75804
76058
  }
75805
76059
  function save(namespaces) {
75806
76060
  if (null == namespaces) {
@@ -77948,7 +78202,7 @@ var require_node6 = __commonJS2({
77948
78202
  "node_modules/send/node_modules/debug/src/node.js"(exports2, module2) {
77949
78203
  "use strict";
77950
78204
  var tty2 = __require2("tty");
77951
- var util36 = __require2("util");
78205
+ var util39 = __require2("util");
77952
78206
  exports2 = module2.exports = require_debug6();
77953
78207
  exports2.init = init;
77954
78208
  exports2.log = log;
@@ -77973,7 +78227,7 @@ var require_node6 = __commonJS2({
77973
78227
  }, {});
77974
78228
  var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
77975
78229
  if (1 !== fd && 2 !== fd) {
77976
- util36.deprecate(function() {
78230
+ util39.deprecate(function() {
77977
78231
  }, "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)")();
77978
78232
  }
77979
78233
  var stream4 = 1 === fd ? process.stdout : 2 === fd ? process.stderr : createWritableStdioStream(fd);
@@ -77982,13 +78236,13 @@ var require_node6 = __commonJS2({
77982
78236
  }
77983
78237
  exports2.formatters.o = function(v) {
77984
78238
  this.inspectOpts.colors = this.useColors;
77985
- return util36.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
78239
+ return util39.inspect(v, this.inspectOpts).split("\n").map(function(str2) {
77986
78240
  return str2.trim();
77987
78241
  }).join(" ");
77988
78242
  };
77989
78243
  exports2.formatters.O = function(v) {
77990
78244
  this.inspectOpts.colors = this.useColors;
77991
- return util36.inspect(v, this.inspectOpts);
78245
+ return util39.inspect(v, this.inspectOpts);
77992
78246
  };
77993
78247
  function formatArgs(args) {
77994
78248
  var name = this.namespace;
@@ -78003,7 +78257,7 @@ var require_node6 = __commonJS2({
78003
78257
  }
78004
78258
  }
78005
78259
  function log() {
78006
- return stream4.write(util36.format.apply(util36, arguments) + "\n");
78260
+ return stream4.write(util39.format.apply(util39, arguments) + "\n");
78007
78261
  }
78008
78262
  function save(namespaces) {
78009
78263
  if (null == namespaces) {
@@ -78455,7 +78709,7 @@ var require_send = __commonJS2({
78455
78709
  var path52 = __require2("path");
78456
78710
  var statuses = require_statuses();
78457
78711
  var Stream = __require2("stream");
78458
- var util36 = __require2("util");
78712
+ var util39 = __require2("util");
78459
78713
  var extname = path52.extname;
78460
78714
  var join2 = path52.join;
78461
78715
  var normalize = path52.normalize;
@@ -78501,7 +78755,7 @@ var require_send = __commonJS2({
78501
78755
  this.from(opts.from);
78502
78756
  }
78503
78757
  }
78504
- util36.inherits(SendStream, Stream);
78758
+ util39.inherits(SendStream, Stream);
78505
78759
  SendStream.prototype.etag = deprecate.function(function etag2(val) {
78506
78760
  this._etag = Boolean(val);
78507
78761
  debug22("etag %s", this._etag);
@@ -91390,27 +91644,27 @@ var require_util = __commonJS2({
91390
91644
  "use strict";
91391
91645
  var forge = require_forge();
91392
91646
  var baseN = require_baseN();
91393
- var util36 = module2.exports = forge.util = forge.util || {};
91647
+ var util39 = module2.exports = forge.util = forge.util || {};
91394
91648
  (function() {
91395
91649
  if (typeof process !== "undefined" && process.nextTick && !process.browser) {
91396
- util36.nextTick = process.nextTick;
91650
+ util39.nextTick = process.nextTick;
91397
91651
  if (typeof setImmediate === "function") {
91398
- util36.setImmediate = setImmediate;
91652
+ util39.setImmediate = setImmediate;
91399
91653
  } else {
91400
- util36.setImmediate = util36.nextTick;
91654
+ util39.setImmediate = util39.nextTick;
91401
91655
  }
91402
91656
  return;
91403
91657
  }
91404
91658
  if (typeof setImmediate === "function") {
91405
- util36.setImmediate = function() {
91659
+ util39.setImmediate = function() {
91406
91660
  return setImmediate.apply(void 0, arguments);
91407
91661
  };
91408
- util36.nextTick = function(callback) {
91662
+ util39.nextTick = function(callback) {
91409
91663
  return setImmediate(callback);
91410
91664
  };
91411
91665
  return;
91412
91666
  }
91413
- util36.setImmediate = function(callback) {
91667
+ util39.setImmediate = function(callback) {
91414
91668
  setTimeout(callback, 0);
91415
91669
  };
91416
91670
  if (typeof window !== "undefined" && typeof window.postMessage === "function") {
@@ -91427,7 +91681,7 @@ var require_util = __commonJS2({
91427
91681
  var handler = handler2;
91428
91682
  var msg = "forge.setImmediate";
91429
91683
  var callbacks = [];
91430
- util36.setImmediate = function(callback) {
91684
+ util39.setImmediate = function(callback) {
91431
91685
  callbacks.push(callback);
91432
91686
  if (callbacks.length === 1) {
91433
91687
  window.postMessage(msg, "*");
@@ -91447,8 +91701,8 @@ var require_util = __commonJS2({
91447
91701
  callback();
91448
91702
  });
91449
91703
  }).observe(div, { attributes: true });
91450
- var oldSetImmediate = util36.setImmediate;
91451
- util36.setImmediate = function(callback) {
91704
+ var oldSetImmediate = util39.setImmediate;
91705
+ util39.setImmediate = function(callback) {
91452
91706
  if (Date.now() - now > 15) {
91453
91707
  now = Date.now();
91454
91708
  oldSetImmediate(callback);
@@ -91460,36 +91714,36 @@ var require_util = __commonJS2({
91460
91714
  }
91461
91715
  };
91462
91716
  }
91463
- util36.nextTick = util36.setImmediate;
91717
+ util39.nextTick = util39.setImmediate;
91464
91718
  })();
91465
- util36.isNodejs = typeof process !== "undefined" && process.versions && process.versions.node;
91466
- util36.globalScope = function() {
91467
- if (util36.isNodejs) {
91719
+ util39.isNodejs = typeof process !== "undefined" && process.versions && process.versions.node;
91720
+ util39.globalScope = function() {
91721
+ if (util39.isNodejs) {
91468
91722
  return global;
91469
91723
  }
91470
91724
  return typeof self === "undefined" ? window : self;
91471
91725
  }();
91472
- util36.isArray = Array.isArray || function(x) {
91726
+ util39.isArray = Array.isArray || function(x) {
91473
91727
  return Object.prototype.toString.call(x) === "[object Array]";
91474
91728
  };
91475
- util36.isArrayBuffer = function(x) {
91729
+ util39.isArrayBuffer = function(x) {
91476
91730
  return typeof ArrayBuffer !== "undefined" && x instanceof ArrayBuffer;
91477
91731
  };
91478
- util36.isArrayBufferView = function(x) {
91479
- return x && util36.isArrayBuffer(x.buffer) && x.byteLength !== void 0;
91732
+ util39.isArrayBufferView = function(x) {
91733
+ return x && util39.isArrayBuffer(x.buffer) && x.byteLength !== void 0;
91480
91734
  };
91481
91735
  function _checkBitsParam(n) {
91482
91736
  if (!(n === 8 || n === 16 || n === 24 || n === 32)) {
91483
91737
  throw new Error("Only 8, 16, 24, or 32 bits supported: " + n);
91484
91738
  }
91485
91739
  }
91486
- util36.ByteBuffer = ByteStringBuffer;
91740
+ util39.ByteBuffer = ByteStringBuffer;
91487
91741
  function ByteStringBuffer(b) {
91488
91742
  this.data = "";
91489
91743
  this.read = 0;
91490
91744
  if (typeof b === "string") {
91491
91745
  this.data = b;
91492
- } else if (util36.isArrayBuffer(b) || util36.isArrayBufferView(b)) {
91746
+ } else if (util39.isArrayBuffer(b) || util39.isArrayBufferView(b)) {
91493
91747
  if (typeof Buffer !== "undefined" && b instanceof Buffer) {
91494
91748
  this.data = b.toString("binary");
91495
91749
  } else {
@@ -91508,25 +91762,25 @@ var require_util = __commonJS2({
91508
91762
  }
91509
91763
  this._constructedStringLength = 0;
91510
91764
  }
91511
- util36.ByteStringBuffer = ByteStringBuffer;
91765
+ util39.ByteStringBuffer = ByteStringBuffer;
91512
91766
  var _MAX_CONSTRUCTED_STRING_LENGTH = 4096;
91513
- util36.ByteStringBuffer.prototype._optimizeConstructedString = function(x) {
91767
+ util39.ByteStringBuffer.prototype._optimizeConstructedString = function(x) {
91514
91768
  this._constructedStringLength += x;
91515
91769
  if (this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) {
91516
91770
  this.data.substr(0, 1);
91517
91771
  this._constructedStringLength = 0;
91518
91772
  }
91519
91773
  };
91520
- util36.ByteStringBuffer.prototype.length = function() {
91774
+ util39.ByteStringBuffer.prototype.length = function() {
91521
91775
  return this.data.length - this.read;
91522
91776
  };
91523
- util36.ByteStringBuffer.prototype.isEmpty = function() {
91777
+ util39.ByteStringBuffer.prototype.isEmpty = function() {
91524
91778
  return this.length() <= 0;
91525
91779
  };
91526
- util36.ByteStringBuffer.prototype.putByte = function(b) {
91780
+ util39.ByteStringBuffer.prototype.putByte = function(b) {
91527
91781
  return this.putBytes(String.fromCharCode(b));
91528
91782
  };
91529
- util36.ByteStringBuffer.prototype.fillWithByte = function(b, n) {
91783
+ util39.ByteStringBuffer.prototype.fillWithByte = function(b, n) {
91530
91784
  b = String.fromCharCode(b);
91531
91785
  var d2 = this.data;
91532
91786
  while (n > 0) {
@@ -91542,45 +91796,45 @@ var require_util = __commonJS2({
91542
91796
  this._optimizeConstructedString(n);
91543
91797
  return this;
91544
91798
  };
91545
- util36.ByteStringBuffer.prototype.putBytes = function(bytes) {
91799
+ util39.ByteStringBuffer.prototype.putBytes = function(bytes) {
91546
91800
  this.data += bytes;
91547
91801
  this._optimizeConstructedString(bytes.length);
91548
91802
  return this;
91549
91803
  };
91550
- util36.ByteStringBuffer.prototype.putString = function(str2) {
91551
- return this.putBytes(util36.encodeUtf8(str2));
91804
+ util39.ByteStringBuffer.prototype.putString = function(str2) {
91805
+ return this.putBytes(util39.encodeUtf8(str2));
91552
91806
  };
91553
- util36.ByteStringBuffer.prototype.putInt16 = function(i2) {
91807
+ util39.ByteStringBuffer.prototype.putInt16 = function(i2) {
91554
91808
  return this.putBytes(
91555
91809
  String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
91556
91810
  );
91557
91811
  };
91558
- util36.ByteStringBuffer.prototype.putInt24 = function(i2) {
91812
+ util39.ByteStringBuffer.prototype.putInt24 = function(i2) {
91559
91813
  return this.putBytes(
91560
91814
  String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
91561
91815
  );
91562
91816
  };
91563
- util36.ByteStringBuffer.prototype.putInt32 = function(i2) {
91817
+ util39.ByteStringBuffer.prototype.putInt32 = function(i2) {
91564
91818
  return this.putBytes(
91565
91819
  String.fromCharCode(i2 >> 24 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255)
91566
91820
  );
91567
91821
  };
91568
- util36.ByteStringBuffer.prototype.putInt16Le = function(i2) {
91822
+ util39.ByteStringBuffer.prototype.putInt16Le = function(i2) {
91569
91823
  return this.putBytes(
91570
91824
  String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255)
91571
91825
  );
91572
91826
  };
91573
- util36.ByteStringBuffer.prototype.putInt24Le = function(i2) {
91827
+ util39.ByteStringBuffer.prototype.putInt24Le = function(i2) {
91574
91828
  return this.putBytes(
91575
91829
  String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 >> 16 & 255)
91576
91830
  );
91577
91831
  };
91578
- util36.ByteStringBuffer.prototype.putInt32Le = function(i2) {
91832
+ util39.ByteStringBuffer.prototype.putInt32Le = function(i2) {
91579
91833
  return this.putBytes(
91580
91834
  String.fromCharCode(i2 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 24 & 255)
91581
91835
  );
91582
91836
  };
91583
- util36.ByteStringBuffer.prototype.putInt = function(i2, n) {
91837
+ util39.ByteStringBuffer.prototype.putInt = function(i2, n) {
91584
91838
  _checkBitsParam(n);
91585
91839
  var bytes = "";
91586
91840
  do {
@@ -91589,49 +91843,49 @@ var require_util = __commonJS2({
91589
91843
  } while (n > 0);
91590
91844
  return this.putBytes(bytes);
91591
91845
  };
91592
- util36.ByteStringBuffer.prototype.putSignedInt = function(i2, n) {
91846
+ util39.ByteStringBuffer.prototype.putSignedInt = function(i2, n) {
91593
91847
  if (i2 < 0) {
91594
91848
  i2 += 2 << n - 1;
91595
91849
  }
91596
91850
  return this.putInt(i2, n);
91597
91851
  };
91598
- util36.ByteStringBuffer.prototype.putBuffer = function(buffer) {
91852
+ util39.ByteStringBuffer.prototype.putBuffer = function(buffer) {
91599
91853
  return this.putBytes(buffer.getBytes());
91600
91854
  };
91601
- util36.ByteStringBuffer.prototype.getByte = function() {
91855
+ util39.ByteStringBuffer.prototype.getByte = function() {
91602
91856
  return this.data.charCodeAt(this.read++);
91603
91857
  };
91604
- util36.ByteStringBuffer.prototype.getInt16 = function() {
91858
+ util39.ByteStringBuffer.prototype.getInt16 = function() {
91605
91859
  var rval = this.data.charCodeAt(this.read) << 8 ^ this.data.charCodeAt(this.read + 1);
91606
91860
  this.read += 2;
91607
91861
  return rval;
91608
91862
  };
91609
- util36.ByteStringBuffer.prototype.getInt24 = function() {
91863
+ util39.ByteStringBuffer.prototype.getInt24 = function() {
91610
91864
  var rval = this.data.charCodeAt(this.read) << 16 ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2);
91611
91865
  this.read += 3;
91612
91866
  return rval;
91613
91867
  };
91614
- util36.ByteStringBuffer.prototype.getInt32 = function() {
91868
+ util39.ByteStringBuffer.prototype.getInt32 = function() {
91615
91869
  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);
91616
91870
  this.read += 4;
91617
91871
  return rval;
91618
91872
  };
91619
- util36.ByteStringBuffer.prototype.getInt16Le = function() {
91873
+ util39.ByteStringBuffer.prototype.getInt16Le = function() {
91620
91874
  var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8;
91621
91875
  this.read += 2;
91622
91876
  return rval;
91623
91877
  };
91624
- util36.ByteStringBuffer.prototype.getInt24Le = function() {
91878
+ util39.ByteStringBuffer.prototype.getInt24Le = function() {
91625
91879
  var rval = this.data.charCodeAt(this.read) ^ this.data.charCodeAt(this.read + 1) << 8 ^ this.data.charCodeAt(this.read + 2) << 16;
91626
91880
  this.read += 3;
91627
91881
  return rval;
91628
91882
  };
91629
- util36.ByteStringBuffer.prototype.getInt32Le = function() {
91883
+ util39.ByteStringBuffer.prototype.getInt32Le = function() {
91630
91884
  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;
91631
91885
  this.read += 4;
91632
91886
  return rval;
91633
91887
  };
91634
- util36.ByteStringBuffer.prototype.getInt = function(n) {
91888
+ util39.ByteStringBuffer.prototype.getInt = function(n) {
91635
91889
  _checkBitsParam(n);
91636
91890
  var rval = 0;
91637
91891
  do {
@@ -91640,7 +91894,7 @@ var require_util = __commonJS2({
91640
91894
  } while (n > 0);
91641
91895
  return rval;
91642
91896
  };
91643
- util36.ByteStringBuffer.prototype.getSignedInt = function(n) {
91897
+ util39.ByteStringBuffer.prototype.getSignedInt = function(n) {
91644
91898
  var x = this.getInt(n);
91645
91899
  var max7 = 2 << n - 2;
91646
91900
  if (x >= max7) {
@@ -91648,7 +91902,7 @@ var require_util = __commonJS2({
91648
91902
  }
91649
91903
  return x;
91650
91904
  };
91651
- util36.ByteStringBuffer.prototype.getBytes = function(count) {
91905
+ util39.ByteStringBuffer.prototype.getBytes = function(count) {
91652
91906
  var rval;
91653
91907
  if (count) {
91654
91908
  count = Math.min(this.length(), count);
@@ -91662,43 +91916,43 @@ var require_util = __commonJS2({
91662
91916
  }
91663
91917
  return rval;
91664
91918
  };
91665
- util36.ByteStringBuffer.prototype.bytes = function(count) {
91919
+ util39.ByteStringBuffer.prototype.bytes = function(count) {
91666
91920
  return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count);
91667
91921
  };
91668
- util36.ByteStringBuffer.prototype.at = function(i2) {
91922
+ util39.ByteStringBuffer.prototype.at = function(i2) {
91669
91923
  return this.data.charCodeAt(this.read + i2);
91670
91924
  };
91671
- util36.ByteStringBuffer.prototype.setAt = function(i2, b) {
91925
+ util39.ByteStringBuffer.prototype.setAt = function(i2, b) {
91672
91926
  this.data = this.data.substr(0, this.read + i2) + String.fromCharCode(b) + this.data.substr(this.read + i2 + 1);
91673
91927
  return this;
91674
91928
  };
91675
- util36.ByteStringBuffer.prototype.last = function() {
91929
+ util39.ByteStringBuffer.prototype.last = function() {
91676
91930
  return this.data.charCodeAt(this.data.length - 1);
91677
91931
  };
91678
- util36.ByteStringBuffer.prototype.copy = function() {
91679
- var c = util36.createBuffer(this.data);
91932
+ util39.ByteStringBuffer.prototype.copy = function() {
91933
+ var c = util39.createBuffer(this.data);
91680
91934
  c.read = this.read;
91681
91935
  return c;
91682
91936
  };
91683
- util36.ByteStringBuffer.prototype.compact = function() {
91937
+ util39.ByteStringBuffer.prototype.compact = function() {
91684
91938
  if (this.read > 0) {
91685
91939
  this.data = this.data.slice(this.read);
91686
91940
  this.read = 0;
91687
91941
  }
91688
91942
  return this;
91689
91943
  };
91690
- util36.ByteStringBuffer.prototype.clear = function() {
91944
+ util39.ByteStringBuffer.prototype.clear = function() {
91691
91945
  this.data = "";
91692
91946
  this.read = 0;
91693
91947
  return this;
91694
91948
  };
91695
- util36.ByteStringBuffer.prototype.truncate = function(count) {
91949
+ util39.ByteStringBuffer.prototype.truncate = function(count) {
91696
91950
  var len = Math.max(0, this.length() - count);
91697
91951
  this.data = this.data.substr(this.read, len);
91698
91952
  this.read = 0;
91699
91953
  return this;
91700
91954
  };
91701
- util36.ByteStringBuffer.prototype.toHex = function() {
91955
+ util39.ByteStringBuffer.prototype.toHex = function() {
91702
91956
  var rval = "";
91703
91957
  for (var i2 = this.read; i2 < this.data.length; ++i2) {
91704
91958
  var b = this.data.charCodeAt(i2);
@@ -91709,15 +91963,15 @@ var require_util = __commonJS2({
91709
91963
  }
91710
91964
  return rval;
91711
91965
  };
91712
- util36.ByteStringBuffer.prototype.toString = function() {
91713
- return util36.decodeUtf8(this.bytes());
91966
+ util39.ByteStringBuffer.prototype.toString = function() {
91967
+ return util39.decodeUtf8(this.bytes());
91714
91968
  };
91715
91969
  function DataBuffer(b, options2) {
91716
91970
  options2 = options2 || {};
91717
91971
  this.read = options2.readOffset || 0;
91718
91972
  this.growSize = options2.growSize || 1024;
91719
- var isArrayBuffer2 = util36.isArrayBuffer(b);
91720
- var isArrayBufferView2 = util36.isArrayBufferView(b);
91973
+ var isArrayBuffer2 = util39.isArrayBuffer(b);
91974
+ var isArrayBufferView2 = util39.isArrayBufferView(b);
91721
91975
  if (isArrayBuffer2 || isArrayBufferView2) {
91722
91976
  if (isArrayBuffer2) {
91723
91977
  this.data = new DataView(b);
@@ -91736,14 +91990,14 @@ var require_util = __commonJS2({
91736
91990
  this.write = options2.writeOffset;
91737
91991
  }
91738
91992
  }
91739
- util36.DataBuffer = DataBuffer;
91740
- util36.DataBuffer.prototype.length = function() {
91993
+ util39.DataBuffer = DataBuffer;
91994
+ util39.DataBuffer.prototype.length = function() {
91741
91995
  return this.write - this.read;
91742
91996
  };
91743
- util36.DataBuffer.prototype.isEmpty = function() {
91997
+ util39.DataBuffer.prototype.isEmpty = function() {
91744
91998
  return this.length() <= 0;
91745
91999
  };
91746
- util36.DataBuffer.prototype.accommodate = function(amount, growSize) {
92000
+ util39.DataBuffer.prototype.accommodate = function(amount, growSize) {
91747
92001
  if (this.length() >= amount) {
91748
92002
  return this;
91749
92003
  }
@@ -91758,20 +92012,20 @@ var require_util = __commonJS2({
91758
92012
  this.data = new DataView(dst.buffer);
91759
92013
  return this;
91760
92014
  };
91761
- util36.DataBuffer.prototype.putByte = function(b) {
92015
+ util39.DataBuffer.prototype.putByte = function(b) {
91762
92016
  this.accommodate(1);
91763
92017
  this.data.setUint8(this.write++, b);
91764
92018
  return this;
91765
92019
  };
91766
- util36.DataBuffer.prototype.fillWithByte = function(b, n) {
92020
+ util39.DataBuffer.prototype.fillWithByte = function(b, n) {
91767
92021
  this.accommodate(n);
91768
92022
  for (var i2 = 0; i2 < n; ++i2) {
91769
92023
  this.data.setUint8(b);
91770
92024
  }
91771
92025
  return this;
91772
92026
  };
91773
- util36.DataBuffer.prototype.putBytes = function(bytes, encoding) {
91774
- if (util36.isArrayBufferView(bytes)) {
92027
+ util39.DataBuffer.prototype.putBytes = function(bytes, encoding) {
92028
+ if (util39.isArrayBufferView(bytes)) {
91775
92029
  var src2 = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength);
91776
92030
  var len = src2.byteLength - src2.byteOffset;
91777
92031
  this.accommodate(len);
@@ -91780,7 +92034,7 @@ var require_util = __commonJS2({
91780
92034
  this.write += len;
91781
92035
  return this;
91782
92036
  }
91783
- if (util36.isArrayBuffer(bytes)) {
92037
+ if (util39.isArrayBuffer(bytes)) {
91784
92038
  var src2 = new Uint8Array(bytes);
91785
92039
  this.accommodate(src2.byteLength);
91786
92040
  var dst = new Uint8Array(this.data.buffer);
@@ -91788,7 +92042,7 @@ var require_util = __commonJS2({
91788
92042
  this.write += src2.byteLength;
91789
92043
  return this;
91790
92044
  }
91791
- if (bytes instanceof util36.DataBuffer || typeof bytes === "object" && typeof bytes.read === "number" && typeof bytes.write === "number" && util36.isArrayBufferView(bytes.data)) {
92045
+ if (bytes instanceof util39.DataBuffer || typeof bytes === "object" && typeof bytes.read === "number" && typeof bytes.write === "number" && util39.isArrayBufferView(bytes.data)) {
91792
92046
  var src2 = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length());
91793
92047
  this.accommodate(src2.byteLength);
91794
92048
  var dst = new Uint8Array(bytes.data.byteLength, this.write);
@@ -91796,7 +92050,7 @@ var require_util = __commonJS2({
91796
92050
  this.write += src2.byteLength;
91797
92051
  return this;
91798
92052
  }
91799
- if (bytes instanceof util36.ByteStringBuffer) {
92053
+ if (bytes instanceof util39.ByteStringBuffer) {
91800
92054
  bytes = bytes.data;
91801
92055
  encoding = "binary";
91802
92056
  }
@@ -91806,82 +92060,82 @@ var require_util = __commonJS2({
91806
92060
  if (encoding === "hex") {
91807
92061
  this.accommodate(Math.ceil(bytes.length / 2));
91808
92062
  view = new Uint8Array(this.data.buffer, this.write);
91809
- this.write += util36.binary.hex.decode(bytes, view, this.write);
92063
+ this.write += util39.binary.hex.decode(bytes, view, this.write);
91810
92064
  return this;
91811
92065
  }
91812
92066
  if (encoding === "base64") {
91813
92067
  this.accommodate(Math.ceil(bytes.length / 4) * 3);
91814
92068
  view = new Uint8Array(this.data.buffer, this.write);
91815
- this.write += util36.binary.base64.decode(bytes, view, this.write);
92069
+ this.write += util39.binary.base64.decode(bytes, view, this.write);
91816
92070
  return this;
91817
92071
  }
91818
92072
  if (encoding === "utf8") {
91819
- bytes = util36.encodeUtf8(bytes);
92073
+ bytes = util39.encodeUtf8(bytes);
91820
92074
  encoding = "binary";
91821
92075
  }
91822
92076
  if (encoding === "binary" || encoding === "raw") {
91823
92077
  this.accommodate(bytes.length);
91824
92078
  view = new Uint8Array(this.data.buffer, this.write);
91825
- this.write += util36.binary.raw.decode(view);
92079
+ this.write += util39.binary.raw.decode(view);
91826
92080
  return this;
91827
92081
  }
91828
92082
  if (encoding === "utf16") {
91829
92083
  this.accommodate(bytes.length * 2);
91830
92084
  view = new Uint16Array(this.data.buffer, this.write);
91831
- this.write += util36.text.utf16.encode(view);
92085
+ this.write += util39.text.utf16.encode(view);
91832
92086
  return this;
91833
92087
  }
91834
92088
  throw new Error("Invalid encoding: " + encoding);
91835
92089
  }
91836
92090
  throw Error("Invalid parameter: " + bytes);
91837
92091
  };
91838
- util36.DataBuffer.prototype.putBuffer = function(buffer) {
92092
+ util39.DataBuffer.prototype.putBuffer = function(buffer) {
91839
92093
  this.putBytes(buffer);
91840
92094
  buffer.clear();
91841
92095
  return this;
91842
92096
  };
91843
- util36.DataBuffer.prototype.putString = function(str2) {
92097
+ util39.DataBuffer.prototype.putString = function(str2) {
91844
92098
  return this.putBytes(str2, "utf16");
91845
92099
  };
91846
- util36.DataBuffer.prototype.putInt16 = function(i2) {
92100
+ util39.DataBuffer.prototype.putInt16 = function(i2) {
91847
92101
  this.accommodate(2);
91848
92102
  this.data.setInt16(this.write, i2);
91849
92103
  this.write += 2;
91850
92104
  return this;
91851
92105
  };
91852
- util36.DataBuffer.prototype.putInt24 = function(i2) {
92106
+ util39.DataBuffer.prototype.putInt24 = function(i2) {
91853
92107
  this.accommodate(3);
91854
92108
  this.data.setInt16(this.write, i2 >> 8 & 65535);
91855
92109
  this.data.setInt8(this.write, i2 >> 16 & 255);
91856
92110
  this.write += 3;
91857
92111
  return this;
91858
92112
  };
91859
- util36.DataBuffer.prototype.putInt32 = function(i2) {
92113
+ util39.DataBuffer.prototype.putInt32 = function(i2) {
91860
92114
  this.accommodate(4);
91861
92115
  this.data.setInt32(this.write, i2);
91862
92116
  this.write += 4;
91863
92117
  return this;
91864
92118
  };
91865
- util36.DataBuffer.prototype.putInt16Le = function(i2) {
92119
+ util39.DataBuffer.prototype.putInt16Le = function(i2) {
91866
92120
  this.accommodate(2);
91867
92121
  this.data.setInt16(this.write, i2, true);
91868
92122
  this.write += 2;
91869
92123
  return this;
91870
92124
  };
91871
- util36.DataBuffer.prototype.putInt24Le = function(i2) {
92125
+ util39.DataBuffer.prototype.putInt24Le = function(i2) {
91872
92126
  this.accommodate(3);
91873
92127
  this.data.setInt8(this.write, i2 >> 16 & 255);
91874
92128
  this.data.setInt16(this.write, i2 >> 8 & 65535, true);
91875
92129
  this.write += 3;
91876
92130
  return this;
91877
92131
  };
91878
- util36.DataBuffer.prototype.putInt32Le = function(i2) {
92132
+ util39.DataBuffer.prototype.putInt32Le = function(i2) {
91879
92133
  this.accommodate(4);
91880
92134
  this.data.setInt32(this.write, i2, true);
91881
92135
  this.write += 4;
91882
92136
  return this;
91883
92137
  };
91884
- util36.DataBuffer.prototype.putInt = function(i2, n) {
92138
+ util39.DataBuffer.prototype.putInt = function(i2, n) {
91885
92139
  _checkBitsParam(n);
91886
92140
  this.accommodate(n / 8);
91887
92141
  do {
@@ -91890,7 +92144,7 @@ var require_util = __commonJS2({
91890
92144
  } while (n > 0);
91891
92145
  return this;
91892
92146
  };
91893
- util36.DataBuffer.prototype.putSignedInt = function(i2, n) {
92147
+ util39.DataBuffer.prototype.putSignedInt = function(i2, n) {
91894
92148
  _checkBitsParam(n);
91895
92149
  this.accommodate(n / 8);
91896
92150
  if (i2 < 0) {
@@ -91898,40 +92152,40 @@ var require_util = __commonJS2({
91898
92152
  }
91899
92153
  return this.putInt(i2, n);
91900
92154
  };
91901
- util36.DataBuffer.prototype.getByte = function() {
92155
+ util39.DataBuffer.prototype.getByte = function() {
91902
92156
  return this.data.getInt8(this.read++);
91903
92157
  };
91904
- util36.DataBuffer.prototype.getInt16 = function() {
92158
+ util39.DataBuffer.prototype.getInt16 = function() {
91905
92159
  var rval = this.data.getInt16(this.read);
91906
92160
  this.read += 2;
91907
92161
  return rval;
91908
92162
  };
91909
- util36.DataBuffer.prototype.getInt24 = function() {
92163
+ util39.DataBuffer.prototype.getInt24 = function() {
91910
92164
  var rval = this.data.getInt16(this.read) << 8 ^ this.data.getInt8(this.read + 2);
91911
92165
  this.read += 3;
91912
92166
  return rval;
91913
92167
  };
91914
- util36.DataBuffer.prototype.getInt32 = function() {
92168
+ util39.DataBuffer.prototype.getInt32 = function() {
91915
92169
  var rval = this.data.getInt32(this.read);
91916
92170
  this.read += 4;
91917
92171
  return rval;
91918
92172
  };
91919
- util36.DataBuffer.prototype.getInt16Le = function() {
92173
+ util39.DataBuffer.prototype.getInt16Le = function() {
91920
92174
  var rval = this.data.getInt16(this.read, true);
91921
92175
  this.read += 2;
91922
92176
  return rval;
91923
92177
  };
91924
- util36.DataBuffer.prototype.getInt24Le = function() {
92178
+ util39.DataBuffer.prototype.getInt24Le = function() {
91925
92179
  var rval = this.data.getInt8(this.read) ^ this.data.getInt16(this.read + 1, true) << 8;
91926
92180
  this.read += 3;
91927
92181
  return rval;
91928
92182
  };
91929
- util36.DataBuffer.prototype.getInt32Le = function() {
92183
+ util39.DataBuffer.prototype.getInt32Le = function() {
91930
92184
  var rval = this.data.getInt32(this.read, true);
91931
92185
  this.read += 4;
91932
92186
  return rval;
91933
92187
  };
91934
- util36.DataBuffer.prototype.getInt = function(n) {
92188
+ util39.DataBuffer.prototype.getInt = function(n) {
91935
92189
  _checkBitsParam(n);
91936
92190
  var rval = 0;
91937
92191
  do {
@@ -91940,7 +92194,7 @@ var require_util = __commonJS2({
91940
92194
  } while (n > 0);
91941
92195
  return rval;
91942
92196
  };
91943
- util36.DataBuffer.prototype.getSignedInt = function(n) {
92197
+ util39.DataBuffer.prototype.getSignedInt = function(n) {
91944
92198
  var x = this.getInt(n);
91945
92199
  var max7 = 2 << n - 2;
91946
92200
  if (x >= max7) {
@@ -91948,7 +92202,7 @@ var require_util = __commonJS2({
91948
92202
  }
91949
92203
  return x;
91950
92204
  };
91951
- util36.DataBuffer.prototype.getBytes = function(count) {
92205
+ util39.DataBuffer.prototype.getBytes = function(count) {
91952
92206
  var rval;
91953
92207
  if (count) {
91954
92208
  count = Math.min(this.length(), count);
@@ -91962,23 +92216,23 @@ var require_util = __commonJS2({
91962
92216
  }
91963
92217
  return rval;
91964
92218
  };
91965
- util36.DataBuffer.prototype.bytes = function(count) {
92219
+ util39.DataBuffer.prototype.bytes = function(count) {
91966
92220
  return typeof count === "undefined" ? this.data.slice(this.read) : this.data.slice(this.read, this.read + count);
91967
92221
  };
91968
- util36.DataBuffer.prototype.at = function(i2) {
92222
+ util39.DataBuffer.prototype.at = function(i2) {
91969
92223
  return this.data.getUint8(this.read + i2);
91970
92224
  };
91971
- util36.DataBuffer.prototype.setAt = function(i2, b) {
92225
+ util39.DataBuffer.prototype.setAt = function(i2, b) {
91972
92226
  this.data.setUint8(i2, b);
91973
92227
  return this;
91974
92228
  };
91975
- util36.DataBuffer.prototype.last = function() {
92229
+ util39.DataBuffer.prototype.last = function() {
91976
92230
  return this.data.getUint8(this.write - 1);
91977
92231
  };
91978
- util36.DataBuffer.prototype.copy = function() {
91979
- return new util36.DataBuffer(this);
92232
+ util39.DataBuffer.prototype.copy = function() {
92233
+ return new util39.DataBuffer(this);
91980
92234
  };
91981
- util36.DataBuffer.prototype.compact = function() {
92235
+ util39.DataBuffer.prototype.compact = function() {
91982
92236
  if (this.read > 0) {
91983
92237
  var src2 = new Uint8Array(this.data.buffer, this.read);
91984
92238
  var dst = new Uint8Array(src2.byteLength);
@@ -91989,17 +92243,17 @@ var require_util = __commonJS2({
91989
92243
  }
91990
92244
  return this;
91991
92245
  };
91992
- util36.DataBuffer.prototype.clear = function() {
92246
+ util39.DataBuffer.prototype.clear = function() {
91993
92247
  this.data = new DataView(new ArrayBuffer(0));
91994
92248
  this.read = this.write = 0;
91995
92249
  return this;
91996
92250
  };
91997
- util36.DataBuffer.prototype.truncate = function(count) {
92251
+ util39.DataBuffer.prototype.truncate = function(count) {
91998
92252
  this.write = Math.max(0, this.length() - count);
91999
92253
  this.read = Math.min(this.read, this.write);
92000
92254
  return this;
92001
92255
  };
92002
- util36.DataBuffer.prototype.toHex = function() {
92256
+ util39.DataBuffer.prototype.toHex = function() {
92003
92257
  var rval = "";
92004
92258
  for (var i2 = this.read; i2 < this.data.byteLength; ++i2) {
92005
92259
  var b = this.data.getUint8(i2);
@@ -92010,34 +92264,34 @@ var require_util = __commonJS2({
92010
92264
  }
92011
92265
  return rval;
92012
92266
  };
92013
- util36.DataBuffer.prototype.toString = function(encoding) {
92267
+ util39.DataBuffer.prototype.toString = function(encoding) {
92014
92268
  var view = new Uint8Array(this.data, this.read, this.length());
92015
92269
  encoding = encoding || "utf8";
92016
92270
  if (encoding === "binary" || encoding === "raw") {
92017
- return util36.binary.raw.encode(view);
92271
+ return util39.binary.raw.encode(view);
92018
92272
  }
92019
92273
  if (encoding === "hex") {
92020
- return util36.binary.hex.encode(view);
92274
+ return util39.binary.hex.encode(view);
92021
92275
  }
92022
92276
  if (encoding === "base64") {
92023
- return util36.binary.base64.encode(view);
92277
+ return util39.binary.base64.encode(view);
92024
92278
  }
92025
92279
  if (encoding === "utf8") {
92026
- return util36.text.utf8.decode(view);
92280
+ return util39.text.utf8.decode(view);
92027
92281
  }
92028
92282
  if (encoding === "utf16") {
92029
- return util36.text.utf16.decode(view);
92283
+ return util39.text.utf16.decode(view);
92030
92284
  }
92031
92285
  throw new Error("Invalid encoding: " + encoding);
92032
92286
  };
92033
- util36.createBuffer = function(input, encoding) {
92287
+ util39.createBuffer = function(input, encoding) {
92034
92288
  encoding = encoding || "raw";
92035
92289
  if (input !== void 0 && encoding === "utf8") {
92036
- input = util36.encodeUtf8(input);
92290
+ input = util39.encodeUtf8(input);
92037
92291
  }
92038
- return new util36.ByteBuffer(input);
92292
+ return new util39.ByteBuffer(input);
92039
92293
  };
92040
- util36.fillString = function(c, n) {
92294
+ util39.fillString = function(c, n) {
92041
92295
  var s2 = "";
92042
92296
  while (n > 0) {
92043
92297
  if (n & 1) {
@@ -92050,7 +92304,7 @@ var require_util = __commonJS2({
92050
92304
  }
92051
92305
  return s2;
92052
92306
  };
92053
- util36.xorBytes = function(s1, s2, n) {
92307
+ util39.xorBytes = function(s1, s2, n) {
92054
92308
  var s3 = "";
92055
92309
  var b = "";
92056
92310
  var t = "";
@@ -92069,7 +92323,7 @@ var require_util = __commonJS2({
92069
92323
  s3 += t;
92070
92324
  return s3;
92071
92325
  };
92072
- util36.hexToBytes = function(hex4) {
92326
+ util39.hexToBytes = function(hex4) {
92073
92327
  var rval = "";
92074
92328
  var i2 = 0;
92075
92329
  if (hex4.length & true) {
@@ -92081,10 +92335,10 @@ var require_util = __commonJS2({
92081
92335
  }
92082
92336
  return rval;
92083
92337
  };
92084
- util36.bytesToHex = function(bytes) {
92085
- return util36.createBuffer(bytes).toHex();
92338
+ util39.bytesToHex = function(bytes) {
92339
+ return util39.createBuffer(bytes).toHex();
92086
92340
  };
92087
- util36.int32ToBytes = function(i2) {
92341
+ util39.int32ToBytes = function(i2) {
92088
92342
  return String.fromCharCode(i2 >> 24 & 255) + String.fromCharCode(i2 >> 16 & 255) + String.fromCharCode(i2 >> 8 & 255) + String.fromCharCode(i2 & 255);
92089
92343
  };
92090
92344
  var _base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
@@ -92183,7 +92437,7 @@ var require_util = __commonJS2({
92183
92437
  51
92184
92438
  ];
92185
92439
  var _base58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
92186
- util36.encode64 = function(input, maxline) {
92440
+ util39.encode64 = function(input, maxline) {
92187
92441
  var line = "";
92188
92442
  var output = "";
92189
92443
  var chr1, chr2, chr3;
@@ -92208,7 +92462,7 @@ var require_util = __commonJS2({
92208
92462
  output += line;
92209
92463
  return output;
92210
92464
  };
92211
- util36.decode64 = function(input) {
92465
+ util39.decode64 = function(input) {
92212
92466
  input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
92213
92467
  var output = "";
92214
92468
  var enc1, enc2, enc3, enc4;
@@ -92228,13 +92482,13 @@ var require_util = __commonJS2({
92228
92482
  }
92229
92483
  return output;
92230
92484
  };
92231
- util36.encodeUtf8 = function(str2) {
92485
+ util39.encodeUtf8 = function(str2) {
92232
92486
  return unescape(encodeURIComponent(str2));
92233
92487
  };
92234
- util36.decodeUtf8 = function(str2) {
92488
+ util39.decodeUtf8 = function(str2) {
92235
92489
  return decodeURIComponent(escape(str2));
92236
92490
  };
92237
- util36.binary = {
92491
+ util39.binary = {
92238
92492
  raw: {},
92239
92493
  hex: {},
92240
92494
  base64: {},
@@ -92244,10 +92498,10 @@ var require_util = __commonJS2({
92244
92498
  decode: baseN.decode
92245
92499
  }
92246
92500
  };
92247
- util36.binary.raw.encode = function(bytes) {
92501
+ util39.binary.raw.encode = function(bytes) {
92248
92502
  return String.fromCharCode.apply(null, bytes);
92249
92503
  };
92250
- util36.binary.raw.decode = function(str2, output, offset) {
92504
+ util39.binary.raw.decode = function(str2, output, offset) {
92251
92505
  var out = output;
92252
92506
  if (!out) {
92253
92507
  out = new Uint8Array(str2.length);
@@ -92259,8 +92513,8 @@ var require_util = __commonJS2({
92259
92513
  }
92260
92514
  return output ? j2 - offset : out;
92261
92515
  };
92262
- util36.binary.hex.encode = util36.bytesToHex;
92263
- util36.binary.hex.decode = function(hex4, output, offset) {
92516
+ util39.binary.hex.encode = util39.bytesToHex;
92517
+ util39.binary.hex.decode = function(hex4, output, offset) {
92264
92518
  var out = output;
92265
92519
  if (!out) {
92266
92520
  out = new Uint8Array(Math.ceil(hex4.length / 2));
@@ -92276,7 +92530,7 @@ var require_util = __commonJS2({
92276
92530
  }
92277
92531
  return output ? j2 - offset : out;
92278
92532
  };
92279
- util36.binary.base64.encode = function(input, maxline) {
92533
+ util39.binary.base64.encode = function(input, maxline) {
92280
92534
  var line = "";
92281
92535
  var output = "";
92282
92536
  var chr1, chr2, chr3;
@@ -92301,7 +92555,7 @@ var require_util = __commonJS2({
92301
92555
  output += line;
92302
92556
  return output;
92303
92557
  };
92304
- util36.binary.base64.decode = function(input, output, offset) {
92558
+ util39.binary.base64.decode = function(input, output, offset) {
92305
92559
  var out = output;
92306
92560
  if (!out) {
92307
92561
  out = new Uint8Array(Math.ceil(input.length / 4) * 3);
@@ -92325,18 +92579,18 @@ var require_util = __commonJS2({
92325
92579
  }
92326
92580
  return output ? j2 - offset : out.subarray(0, j2);
92327
92581
  };
92328
- util36.binary.base58.encode = function(input, maxline) {
92329
- return util36.binary.baseN.encode(input, _base58, maxline);
92582
+ util39.binary.base58.encode = function(input, maxline) {
92583
+ return util39.binary.baseN.encode(input, _base58, maxline);
92330
92584
  };
92331
- util36.binary.base58.decode = function(input, maxline) {
92332
- return util36.binary.baseN.decode(input, _base58, maxline);
92585
+ util39.binary.base58.decode = function(input, maxline) {
92586
+ return util39.binary.baseN.decode(input, _base58, maxline);
92333
92587
  };
92334
- util36.text = {
92588
+ util39.text = {
92335
92589
  utf8: {},
92336
92590
  utf16: {}
92337
92591
  };
92338
- util36.text.utf8.encode = function(str2, output, offset) {
92339
- str2 = util36.encodeUtf8(str2);
92592
+ util39.text.utf8.encode = function(str2, output, offset) {
92593
+ str2 = util39.encodeUtf8(str2);
92340
92594
  var out = output;
92341
92595
  if (!out) {
92342
92596
  out = new Uint8Array(str2.length);
@@ -92348,10 +92602,10 @@ var require_util = __commonJS2({
92348
92602
  }
92349
92603
  return output ? j2 - offset : out;
92350
92604
  };
92351
- util36.text.utf8.decode = function(bytes) {
92352
- return util36.decodeUtf8(String.fromCharCode.apply(null, bytes));
92605
+ util39.text.utf8.decode = function(bytes) {
92606
+ return util39.decodeUtf8(String.fromCharCode.apply(null, bytes));
92353
92607
  };
92354
- util36.text.utf16.encode = function(str2, output, offset) {
92608
+ util39.text.utf16.encode = function(str2, output, offset) {
92355
92609
  var out = output;
92356
92610
  if (!out) {
92357
92611
  out = new Uint8Array(str2.length * 2);
@@ -92366,11 +92620,11 @@ var require_util = __commonJS2({
92366
92620
  }
92367
92621
  return output ? j2 - offset : out;
92368
92622
  };
92369
- util36.text.utf16.decode = function(bytes) {
92623
+ util39.text.utf16.decode = function(bytes) {
92370
92624
  return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer));
92371
92625
  };
92372
- util36.deflate = function(api, bytes, raw) {
92373
- bytes = util36.decode64(api.deflate(util36.encode64(bytes)).rval);
92626
+ util39.deflate = function(api, bytes, raw) {
92627
+ bytes = util39.decode64(api.deflate(util39.encode64(bytes)).rval);
92374
92628
  if (raw) {
92375
92629
  var start = 2;
92376
92630
  var flg = bytes.charCodeAt(1);
@@ -92381,9 +92635,9 @@ var require_util = __commonJS2({
92381
92635
  }
92382
92636
  return bytes;
92383
92637
  };
92384
- util36.inflate = function(api, bytes, raw) {
92385
- var rval = api.inflate(util36.encode64(bytes)).rval;
92386
- return rval === null ? null : util36.decode64(rval);
92638
+ util39.inflate = function(api, bytes, raw) {
92639
+ var rval = api.inflate(util39.encode64(bytes)).rval;
92640
+ return rval === null ? null : util39.decode64(rval);
92387
92641
  };
92388
92642
  var _setStorageObject = function(api, id7, obj) {
92389
92643
  if (!api) {
@@ -92393,7 +92647,7 @@ var require_util = __commonJS2({
92393
92647
  if (obj === null) {
92394
92648
  rval = api.removeItem(id7);
92395
92649
  } else {
92396
- obj = util36.encode64(JSON.stringify(obj));
92650
+ obj = util39.encode64(JSON.stringify(obj));
92397
92651
  rval = api.setItem(id7, obj);
92398
92652
  }
92399
92653
  if (typeof rval !== "undefined" && rval.rval !== true) {
@@ -92422,7 +92676,7 @@ var require_util = __commonJS2({
92422
92676
  }
92423
92677
  }
92424
92678
  if (rval !== null) {
92425
- rval = JSON.parse(util36.decode64(rval));
92679
+ rval = JSON.parse(util39.decode64(rval));
92426
92680
  }
92427
92681
  return rval;
92428
92682
  };
@@ -92494,19 +92748,19 @@ var require_util = __commonJS2({
92494
92748
  }
92495
92749
  return rval;
92496
92750
  };
92497
- util36.setItem = function(api, id7, key, data2, location) {
92751
+ util39.setItem = function(api, id7, key, data2, location) {
92498
92752
  _callStorageFunction(_setItem, arguments, location);
92499
92753
  };
92500
- util36.getItem = function(api, id7, key, location) {
92754
+ util39.getItem = function(api, id7, key, location) {
92501
92755
  return _callStorageFunction(_getItem, arguments, location);
92502
92756
  };
92503
- util36.removeItem = function(api, id7, key, location) {
92757
+ util39.removeItem = function(api, id7, key, location) {
92504
92758
  _callStorageFunction(_removeItem, arguments, location);
92505
92759
  };
92506
- util36.clearItems = function(api, id7, location) {
92760
+ util39.clearItems = function(api, id7, location) {
92507
92761
  _callStorageFunction(_clearItems, arguments, location);
92508
92762
  };
92509
- util36.isEmpty = function(obj) {
92763
+ util39.isEmpty = function(obj) {
92510
92764
  for (var prop in obj) {
92511
92765
  if (obj.hasOwnProperty(prop)) {
92512
92766
  return false;
@@ -92514,7 +92768,7 @@ var require_util = __commonJS2({
92514
92768
  }
92515
92769
  return true;
92516
92770
  };
92517
- util36.format = function(format) {
92771
+ util39.format = function(format) {
92518
92772
  var re = /%./g;
92519
92773
  var match2;
92520
92774
  var part;
@@ -92547,7 +92801,7 @@ var require_util = __commonJS2({
92547
92801
  parts.push(format.substring(last));
92548
92802
  return parts.join("");
92549
92803
  };
92550
- util36.formatNumber = function(number, decimals, dec_point, thousands_sep) {
92804
+ util39.formatNumber = function(number, decimals, dec_point, thousands_sep) {
92551
92805
  var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals;
92552
92806
  var d2 = dec_point === void 0 ? "," : dec_point;
92553
92807
  var t = thousands_sep === void 0 ? "." : thousands_sep, s2 = n < 0 ? "-" : "";
@@ -92555,33 +92809,33 @@ var require_util = __commonJS2({
92555
92809
  var j2 = i2.length > 3 ? i2.length % 3 : 0;
92556
92810
  return s2 + (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) : "");
92557
92811
  };
92558
- util36.formatSize = function(size) {
92812
+ util39.formatSize = function(size) {
92559
92813
  if (size >= 1073741824) {
92560
- size = util36.formatNumber(size / 1073741824, 2, ".", "") + " GiB";
92814
+ size = util39.formatNumber(size / 1073741824, 2, ".", "") + " GiB";
92561
92815
  } else if (size >= 1048576) {
92562
- size = util36.formatNumber(size / 1048576, 2, ".", "") + " MiB";
92816
+ size = util39.formatNumber(size / 1048576, 2, ".", "") + " MiB";
92563
92817
  } else if (size >= 1024) {
92564
- size = util36.formatNumber(size / 1024, 0) + " KiB";
92818
+ size = util39.formatNumber(size / 1024, 0) + " KiB";
92565
92819
  } else {
92566
- size = util36.formatNumber(size, 0) + " bytes";
92820
+ size = util39.formatNumber(size, 0) + " bytes";
92567
92821
  }
92568
92822
  return size;
92569
92823
  };
92570
- util36.bytesFromIP = function(ip) {
92824
+ util39.bytesFromIP = function(ip) {
92571
92825
  if (ip.indexOf(".") !== -1) {
92572
- return util36.bytesFromIPv4(ip);
92826
+ return util39.bytesFromIPv4(ip);
92573
92827
  }
92574
92828
  if (ip.indexOf(":") !== -1) {
92575
- return util36.bytesFromIPv6(ip);
92829
+ return util39.bytesFromIPv6(ip);
92576
92830
  }
92577
92831
  return null;
92578
92832
  };
92579
- util36.bytesFromIPv4 = function(ip) {
92833
+ util39.bytesFromIPv4 = function(ip) {
92580
92834
  ip = ip.split(".");
92581
92835
  if (ip.length !== 4) {
92582
92836
  return null;
92583
92837
  }
92584
- var b = util36.createBuffer();
92838
+ var b = util39.createBuffer();
92585
92839
  for (var i2 = 0; i2 < ip.length; ++i2) {
92586
92840
  var num = parseInt(ip[i2], 10);
92587
92841
  if (isNaN(num)) {
@@ -92591,21 +92845,21 @@ var require_util = __commonJS2({
92591
92845
  }
92592
92846
  return b.getBytes();
92593
92847
  };
92594
- util36.bytesFromIPv6 = function(ip) {
92848
+ util39.bytesFromIPv6 = function(ip) {
92595
92849
  var blanks = 0;
92596
92850
  ip = ip.split(":").filter(function(e) {
92597
92851
  if (e.length === 0) ++blanks;
92598
92852
  return true;
92599
92853
  });
92600
92854
  var zeros = (8 - ip.length + blanks) * 2;
92601
- var b = util36.createBuffer();
92855
+ var b = util39.createBuffer();
92602
92856
  for (var i2 = 0; i2 < 8; ++i2) {
92603
92857
  if (!ip[i2] || ip[i2].length === 0) {
92604
92858
  b.fillWithByte(0, zeros);
92605
92859
  zeros = 0;
92606
92860
  continue;
92607
92861
  }
92608
- var bytes = util36.hexToBytes(ip[i2]);
92862
+ var bytes = util39.hexToBytes(ip[i2]);
92609
92863
  if (bytes.length < 2) {
92610
92864
  b.putByte(0);
92611
92865
  }
@@ -92613,16 +92867,16 @@ var require_util = __commonJS2({
92613
92867
  }
92614
92868
  return b.getBytes();
92615
92869
  };
92616
- util36.bytesToIP = function(bytes) {
92870
+ util39.bytesToIP = function(bytes) {
92617
92871
  if (bytes.length === 4) {
92618
- return util36.bytesToIPv4(bytes);
92872
+ return util39.bytesToIPv4(bytes);
92619
92873
  }
92620
92874
  if (bytes.length === 16) {
92621
- return util36.bytesToIPv6(bytes);
92875
+ return util39.bytesToIPv6(bytes);
92622
92876
  }
92623
92877
  return null;
92624
92878
  };
92625
- util36.bytesToIPv4 = function(bytes) {
92879
+ util39.bytesToIPv4 = function(bytes) {
92626
92880
  if (bytes.length !== 4) {
92627
92881
  return null;
92628
92882
  }
@@ -92632,7 +92886,7 @@ var require_util = __commonJS2({
92632
92886
  }
92633
92887
  return ip.join(".");
92634
92888
  };
92635
- util36.bytesToIPv6 = function(bytes) {
92889
+ util39.bytesToIPv6 = function(bytes) {
92636
92890
  if (bytes.length !== 16) {
92637
92891
  return null;
92638
92892
  }
@@ -92640,7 +92894,7 @@ var require_util = __commonJS2({
92640
92894
  var zeroGroups = [];
92641
92895
  var zeroMaxGroup = 0;
92642
92896
  for (var i2 = 0; i2 < bytes.length; i2 += 2) {
92643
- var hex4 = util36.bytesToHex(bytes[i2] + bytes[i2 + 1]);
92897
+ var hex4 = util39.bytesToHex(bytes[i2] + bytes[i2 + 1]);
92644
92898
  while (hex4[0] === "0" && hex4 !== "0") {
92645
92899
  hex4 = hex4.substr(1);
92646
92900
  }
@@ -92672,26 +92926,26 @@ var require_util = __commonJS2({
92672
92926
  }
92673
92927
  return ip.join(":");
92674
92928
  };
92675
- util36.estimateCores = function(options2, callback) {
92929
+ util39.estimateCores = function(options2, callback) {
92676
92930
  if (typeof options2 === "function") {
92677
92931
  callback = options2;
92678
92932
  options2 = {};
92679
92933
  }
92680
92934
  options2 = options2 || {};
92681
- if ("cores" in util36 && !options2.update) {
92682
- return callback(null, util36.cores);
92935
+ if ("cores" in util39 && !options2.update) {
92936
+ return callback(null, util39.cores);
92683
92937
  }
92684
92938
  if (typeof navigator !== "undefined" && "hardwareConcurrency" in navigator && navigator.hardwareConcurrency > 0) {
92685
- util36.cores = navigator.hardwareConcurrency;
92686
- return callback(null, util36.cores);
92939
+ util39.cores = navigator.hardwareConcurrency;
92940
+ return callback(null, util39.cores);
92687
92941
  }
92688
92942
  if (typeof Worker === "undefined") {
92689
- util36.cores = 1;
92690
- return callback(null, util36.cores);
92943
+ util39.cores = 1;
92944
+ return callback(null, util39.cores);
92691
92945
  }
92692
92946
  if (typeof Blob === "undefined") {
92693
- util36.cores = 2;
92694
- return callback(null, util36.cores);
92947
+ util39.cores = 2;
92948
+ return callback(null, util39.cores);
92695
92949
  }
92696
92950
  var blobUrl = URL.createObjectURL(new Blob([
92697
92951
  "(",
@@ -92711,9 +92965,9 @@ var require_util = __commonJS2({
92711
92965
  var avg = Math.floor(max7.reduce(function(avg2, x) {
92712
92966
  return avg2 + x;
92713
92967
  }, 0) / max7.length);
92714
- util36.cores = Math.max(1, avg);
92968
+ util39.cores = Math.max(1, avg);
92715
92969
  URL.revokeObjectURL(blobUrl);
92716
- return callback(null, util36.cores);
92970
+ return callback(null, util39.cores);
92717
92971
  }
92718
92972
  map4(numWorkers, function(err, results) {
92719
92973
  max7.push(reduce(numWorkers, results));
@@ -98059,7 +98313,7 @@ var require_rsa = __commonJS2({
98059
98313
  var BigInteger;
98060
98314
  var _crypto = forge.util.isNodejs ? __require2("crypto") : null;
98061
98315
  var asn1 = forge.asn1;
98062
- var util36 = forge.util;
98316
+ var util39 = forge.util;
98063
98317
  forge.pki = forge.pki || {};
98064
98318
  module2.exports = forge.pki.rsa = forge.rsa = forge.rsa || {};
98065
98319
  var pki = forge.pki;
@@ -98599,13 +98853,13 @@ var require_rsa = __commonJS2({
98599
98853
  });
98600
98854
  }
98601
98855
  if (_detectSubtleCrypto("generateKey") && _detectSubtleCrypto("exportKey")) {
98602
- return util36.globalScope.crypto.subtle.generateKey({
98856
+ return util39.globalScope.crypto.subtle.generateKey({
98603
98857
  name: "RSASSA-PKCS1-v1_5",
98604
98858
  modulusLength: bits,
98605
98859
  publicExponent: _intToUint8Array(e),
98606
98860
  hash: { name: "SHA-256" }
98607
98861
  }, true, ["sign", "verify"]).then(function(pair) {
98608
- return util36.globalScope.crypto.subtle.exportKey(
98862
+ return util39.globalScope.crypto.subtle.exportKey(
98609
98863
  "pkcs8",
98610
98864
  pair.privateKey
98611
98865
  );
@@ -98624,7 +98878,7 @@ var require_rsa = __commonJS2({
98624
98878
  });
98625
98879
  }
98626
98880
  if (_detectSubtleMsCrypto("generateKey") && _detectSubtleMsCrypto("exportKey")) {
98627
- var genOp = util36.globalScope.msCrypto.subtle.generateKey({
98881
+ var genOp = util39.globalScope.msCrypto.subtle.generateKey({
98628
98882
  name: "RSASSA-PKCS1-v1_5",
98629
98883
  modulusLength: bits,
98630
98884
  publicExponent: _intToUint8Array(e),
@@ -98632,7 +98886,7 @@ var require_rsa = __commonJS2({
98632
98886
  }, true, ["sign", "verify"]);
98633
98887
  genOp.oncomplete = function(e2) {
98634
98888
  var pair = e2.target.result;
98635
- var exportOp = util36.globalScope.msCrypto.subtle.exportKey(
98889
+ var exportOp = util39.globalScope.msCrypto.subtle.exportKey(
98636
98890
  "pkcs8",
98637
98891
  pair.privateKey
98638
98892
  );
@@ -99217,10 +99471,10 @@ var require_rsa = __commonJS2({
99217
99471
  return forge.util.isNodejs && typeof _crypto[fn] === "function";
99218
99472
  }
99219
99473
  function _detectSubtleCrypto(fn) {
99220
- return typeof util36.globalScope !== "undefined" && typeof util36.globalScope.crypto === "object" && typeof util36.globalScope.crypto.subtle === "object" && typeof util36.globalScope.crypto.subtle[fn] === "function";
99474
+ return typeof util39.globalScope !== "undefined" && typeof util39.globalScope.crypto === "object" && typeof util39.globalScope.crypto.subtle === "object" && typeof util39.globalScope.crypto.subtle[fn] === "function";
99221
99475
  }
99222
99476
  function _detectSubtleMsCrypto(fn) {
99223
- return typeof util36.globalScope !== "undefined" && typeof util36.globalScope.msCrypto === "object" && typeof util36.globalScope.msCrypto.subtle === "object" && typeof util36.globalScope.msCrypto.subtle[fn] === "function";
99477
+ return typeof util39.globalScope !== "undefined" && typeof util39.globalScope.msCrypto === "object" && typeof util39.globalScope.msCrypto.subtle === "object" && typeof util39.globalScope.msCrypto.subtle[fn] === "function";
99224
99478
  }
99225
99479
  function _intToUint8Array(x) {
99226
99480
  var bytes = forge.util.hexToBytes(x.toString(16));
@@ -105096,7 +105350,7 @@ var require_util2 = __commonJS2({
105096
105350
  "node_modules/node-jose/lib/util/index.js"(exports2, module2) {
105097
105351
  "use strict";
105098
105352
  var forge = require_forge2();
105099
- var util36;
105353
+ var util39;
105100
105354
  function asBuffer(input, encoding) {
105101
105355
  if (Buffer.isBuffer(input)) {
105102
105356
  return input;
@@ -105104,7 +105358,7 @@ var require_util2 = __commonJS2({
105104
105358
  if ("string" === typeof input) {
105105
105359
  encoding = encoding || "binary";
105106
105360
  if ("base64url" === encoding) {
105107
- return util36.base64url.decode(input);
105361
+ return util39.base64url.decode(input);
105108
105362
  }
105109
105363
  return Buffer.from(input, encoding);
105110
105364
  }
@@ -105120,13 +105374,13 @@ var require_util2 = __commonJS2({
105120
105374
  function randomBytes2(len) {
105121
105375
  return Buffer.from(forge.random.getBytes(len), "binary");
105122
105376
  }
105123
- util36 = {
105377
+ util39 = {
105124
105378
  base64url: require_base64url3(),
105125
105379
  utf8: require_utf8(),
105126
105380
  asBuffer,
105127
105381
  randomBytes: randomBytes2
105128
105382
  };
105129
- module2.exports = util36;
105383
+ module2.exports = util39;
105130
105384
  }
105131
105385
  });
105132
105386
  var require_nativeKeys = __commonJS2({
@@ -107509,7 +107763,7 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
107509
107763
  var sha = require_sha();
107510
107764
  var forge = require_forge2();
107511
107765
  var DataBuffer = require_databuffer();
107512
- var util36 = require_util2();
107766
+ var util39 = require_util2();
107513
107767
  function checkIv(iv) {
107514
107768
  if (16 !== iv.length) {
107515
107769
  throw new Error("invalid iv");
@@ -107796,9 +108050,9 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
107796
108050
  DotLabel,
107797
108051
  Buffer.from(kdata),
107798
108052
  DotLabel,
107799
- Buffer.from(util36.base64url.encode(iv), "utf8"),
108053
+ Buffer.from(util39.base64url.encode(iv), "utf8"),
107800
108054
  DotLabel,
107801
- Buffer.from(util36.base64url.encode(cdata), "utf8")
108055
+ Buffer.from(util39.base64url.encode(cdata), "utf8")
107802
108056
  ]);
107803
108057
  return Promise.all([
107804
108058
  Promise.resolve(cdata),
@@ -107833,9 +108087,9 @@ var require_aes_cbc_hmac_sha2 = __commonJS2({
107833
108087
  DotLabel,
107834
108088
  Buffer.from(kdata),
107835
108089
  DotLabel,
107836
- Buffer.from(util36.base64url.encode(iv), "utf8"),
108090
+ Buffer.from(util39.base64url.encode(iv), "utf8"),
107837
108091
  DotLabel,
107838
- Buffer.from(util36.base64url.encode(cdata), "utf8")
108092
+ Buffer.from(util39.base64url.encode(cdata), "utf8")
107839
108093
  ]);
107840
108094
  try {
107841
108095
  return HMAC["HS" + size * 2].verify(cik, mdata, tag, {
@@ -109131,7 +109385,7 @@ var require_aes_gcm = __commonJS2({
109131
109385
  "node_modules/node-jose/lib/algorithms/aes-gcm.js"(exports2, module2) {
109132
109386
  "use strict";
109133
109387
  var helpers = require_helpers2();
109134
- var util36 = require_util2();
109388
+ var util39 = require_util2();
109135
109389
  var CONSTANTS = require_constants2();
109136
109390
  var GCM = require_gcm();
109137
109391
  function gcmEncryptFN(size, wrap7) {
@@ -109148,8 +109402,8 @@ var require_aes_gcm = __commonJS2({
109148
109402
  }
109149
109403
  function prepareResults(results) {
109150
109404
  if (wrap7) {
109151
- var iv = util36.base64url.encode(results.iv);
109152
- var tag = util36.base64url.encode(results.tag);
109405
+ var iv = util39.base64url.encode(results.iv);
109406
+ var tag = util39.base64url.encode(results.tag);
109153
109407
  results = {
109154
109408
  data: results.data,
109155
109409
  header: {
@@ -109167,7 +109421,7 @@ var require_aes_gcm = __commonJS2({
109167
109421
  } catch (err) {
109168
109422
  return Promise.reject(err);
109169
109423
  }
109170
- iv = iv || util36.randomBytes(12);
109424
+ iv = iv || util39.randomBytes(12);
109171
109425
  cipher = GCM.createCipher({
109172
109426
  key,
109173
109427
  iv,
@@ -109212,7 +109466,7 @@ var require_aes_gcm = __commonJS2({
109212
109466
  } catch (err) {
109213
109467
  return Promise.reject(err);
109214
109468
  }
109215
- iv = iv || util36.randomBytes(12);
109469
+ iv = iv || util39.randomBytes(12);
109216
109470
  var alg = {
109217
109471
  name: "AES-GCM"
109218
109472
  };
@@ -109247,7 +109501,7 @@ var require_aes_gcm = __commonJS2({
109247
109501
  } catch (err) {
109248
109502
  return Promise.reject(err);
109249
109503
  }
109250
- iv = iv || util36.randomBytes(12);
109504
+ iv = iv || util39.randomBytes(12);
109251
109505
  var alg = "aes-" + key.length * 8 + "-gcm";
109252
109506
  var cipher;
109253
109507
  try {
@@ -110318,7 +110572,7 @@ var require_ec_util = __commonJS2({
110318
110572
  var clone = require_clone2();
110319
110573
  var ecc = require_ecc();
110320
110574
  var forge = require_forge2();
110321
- var util36 = require_util2();
110575
+ var util39 = require_util2();
110322
110576
  var EC_KEYSIZES = {
110323
110577
  "P-256": 256,
110324
110578
  "P-384": 384,
@@ -110337,7 +110591,7 @@ var require_ec_util = __commonJS2({
110337
110591
  var result2 = clone(key);
110338
110592
  var parts = isPublic ? ["x", "y"] : ["x", "y", "d"];
110339
110593
  parts.forEach(function(f7) {
110340
- result2[f7] = util36.base64url.encode(result2[f7]);
110594
+ result2[f7] = util39.base64url.encode(result2[f7]);
110341
110595
  });
110342
110596
  delete result2.key_ops;
110343
110597
  delete result2.use;
@@ -110351,7 +110605,7 @@ var require_ec_util = __commonJS2({
110351
110605
  var result2 = clone(key);
110352
110606
  var parts = isPublic ? ["x", "y"] : ["d"];
110353
110607
  parts.forEach(function(f7) {
110354
- result2[f7] = util36.asBuffer(result2[f7], "base64url");
110608
+ result2[f7] = util39.asBuffer(result2[f7], "base64url");
110355
110609
  });
110356
110610
  return result2;
110357
110611
  }
@@ -110599,7 +110853,7 @@ var require_ecdh = __commonJS2({
110599
110853
  "node_modules/node-jose/lib/algorithms/ecdh.js"(exports2, module2) {
110600
110854
  "use strict";
110601
110855
  var merge2 = require_merge2();
110602
- var util36 = require_util2();
110856
+ var util39 = require_util2();
110603
110857
  var ecUtil = require_ec_util();
110604
110858
  var hkdf = require_hkdf();
110605
110859
  var concat = require_concat();
@@ -110788,7 +111042,7 @@ var require_ecdh = __commonJS2({
110788
111042
  input
110789
111043
  ]);
110790
111044
  }
110791
- var algId = props.algorithm || "", keyLen = CONSTANTS.KEYLENGTH[algId], apu = util36.asBuffer(props.apu || "", "base64url"), apv = util36.asBuffer(props.apv || "", "base64url");
111045
+ var algId = props.algorithm || "", keyLen = CONSTANTS.KEYLENGTH[algId], apu = util39.asBuffer(props.apu || "", "base64url"), apv = util39.asBuffer(props.apv || "", "base64url");
110792
111046
  var otherInfo = Buffer.concat([
110793
111047
  prependLen(Buffer.from(algId, "utf8")),
110794
111048
  prependLen(apu),
@@ -111173,7 +111427,7 @@ var require_pbes2 = __commonJS2({
111173
111427
  "use strict";
111174
111428
  var forge = require_forge2();
111175
111429
  var merge2 = require_merge2();
111176
- var util36 = require_util2();
111430
+ var util39 = require_util2();
111177
111431
  var helpers = require_helpers2();
111178
111432
  var CONSTANTS = require_constants2();
111179
111433
  var KW = require_aes_kw();
@@ -111193,7 +111447,7 @@ var require_pbes2 = __commonJS2({
111193
111447
  function prepareProps(props) {
111194
111448
  props = props || {};
111195
111449
  var keyLen = props.length || 0;
111196
- var salt = util36.asBuffer(props.salt || Buffer.alloc(0), "base64u4l"), itrs = props.iterations || 0;
111450
+ var salt = util39.asBuffer(props.salt || Buffer.alloc(0), "base64u4l"), itrs = props.iterations || 0;
111197
111451
  if (0 >= keyLen) {
111198
111452
  throw new Error("invalid key length");
111199
111453
  }
@@ -111254,7 +111508,7 @@ var require_pbes2 = __commonJS2({
111254
111508
  return helpers.subtleCrypto.deriveBits(mainAlgo, key2, keyLen * 8);
111255
111509
  });
111256
111510
  promise5 = promise5.then(function(result2) {
111257
- return util36.asBuffer(result2);
111511
+ return util39.asBuffer(result2);
111258
111512
  });
111259
111513
  return promise5;
111260
111514
  };
@@ -111288,17 +111542,17 @@ var require_pbes2 = __commonJS2({
111288
111542
  var keyLen = CONSTANTS.KEYLENGTH[kw] / 8;
111289
111543
  return function(key, pdata, props) {
111290
111544
  props = props || {};
111291
- var salt = util36.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || DEFAULT_ITERATIONS;
111545
+ var salt = util39.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || DEFAULT_ITERATIONS;
111292
111546
  if (0 >= itrs) {
111293
111547
  throw new Error("invalid iteration count");
111294
111548
  }
111295
111549
  if (0 === salt.length) {
111296
- salt = util36.randomBytes(DEFAULT_SALT_LENGTH);
111550
+ salt = util39.randomBytes(DEFAULT_SALT_LENGTH);
111297
111551
  } else if (8 > salt.length) {
111298
111552
  throw new Error("salt too small");
111299
111553
  }
111300
111554
  var header = {
111301
- p2s: util36.base64url.encode(salt),
111555
+ p2s: util39.base64url.encode(salt),
111302
111556
  p2c: itrs
111303
111557
  };
111304
111558
  salt = fixSalt(hmac, kw, salt);
@@ -111326,7 +111580,7 @@ var require_pbes2 = __commonJS2({
111326
111580
  var keyLen = CONSTANTS.KEYLENGTH[kw] / 8;
111327
111581
  return function(key, cdata, props) {
111328
111582
  props = props || {};
111329
- var salt = util36.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || 0;
111583
+ var salt = util39.asBuffer(props.p2s || Buffer.alloc(0), "base64url"), itrs = props.p2c || 0;
111330
111584
  if (0 >= itrs) {
111331
111585
  return Promise.reject(new Error("invalid iteration count"));
111332
111586
  }
@@ -111380,7 +111634,7 @@ var require_rsa_util = __commonJS2({
111380
111634
  "use strict";
111381
111635
  var clone = require_clone2();
111382
111636
  var forge = require_forge2();
111383
- var util36 = require_util2();
111637
+ var util39 = require_util2();
111384
111638
  function convertToForge(key, isPublic) {
111385
111639
  var parts = isPublic ? ["n", "e"] : ["n", "e", "d", "p", "q", "dp", "dq", "qi"];
111386
111640
  parts = parts.map(function(f7) {
@@ -111393,7 +111647,7 @@ var require_rsa_util = __commonJS2({
111393
111647
  var result2 = clone(key);
111394
111648
  var parts = isPublic ? ["n", "e"] : ["n", "e", "d", "p", "q", "dp", "dq", "qi"];
111395
111649
  parts.forEach(function(f7) {
111396
- result2[f7] = util36.base64url.encode(result2[f7]);
111650
+ result2[f7] = util39.base64url.encode(result2[f7]);
111397
111651
  });
111398
111652
  delete result2.key_ops;
111399
111653
  delete result2.use;
@@ -111972,7 +112226,7 @@ var require_helpers5 = __commonJS2({
111972
112226
  "node_modules/node-jose/lib/jwk/helpers.js"(exports2, module2) {
111973
112227
  "use strict";
111974
112228
  var clone = require_clone2();
111975
- var util36 = require_util2();
112229
+ var util39 = require_util2();
111976
112230
  var forge = require_forge2();
111977
112231
  var ALGORITHMS = require_algorithms();
111978
112232
  var privateKeyValidator = {
@@ -112270,7 +112524,7 @@ var require_helpers5 = __commonJS2({
112270
112524
  var input = Object.keys(fields).sort().map(function(k2) {
112271
112525
  var v = fields[k2];
112272
112526
  if (Buffer.isBuffer(v)) {
112273
- v = util36.base64url.encode(v);
112527
+ v = util39.base64url.encode(v);
112274
112528
  }
112275
112529
  return JSON.stringify(k2) + ":" + JSON.stringify(v);
112276
112530
  });
@@ -112292,9 +112546,9 @@ var require_helpers5 = __commonJS2({
112292
112546
  switch (cfg.type) {
112293
112547
  case "binary":
112294
112548
  if (Buffer.isBuffer(value)) {
112295
- props[cfg.name] = util36.base64url.encode(value);
112549
+ props[cfg.name] = util39.base64url.encode(value);
112296
112550
  } else {
112297
- value = util36.base64url.decode(value);
112551
+ value = util39.base64url.decode(value);
112298
112552
  }
112299
112553
  break;
112300
112554
  case "string":
@@ -112680,7 +112934,7 @@ var require_keystore = __commonJS2({
112680
112934
  var clone = require_clone2();
112681
112935
  var merge2 = require_merge2();
112682
112936
  var forge = require_forge2();
112683
- var util36 = require_util2();
112937
+ var util39 = require_util2();
112684
112938
  var JWK = {
112685
112939
  BaseKey: require_basekey(),
112686
112940
  helpers: require_helpers5()
@@ -112806,7 +113060,7 @@ var require_keystore = __commonJS2({
112806
113060
  capture = processCert(capture);
112807
113061
  var md = forge.md.sha1.create();
112808
113062
  md.update(der);
112809
- thumbprint = util36.base64url.encode(Buffer.from(md.digest().toHex(), "hex"));
113063
+ thumbprint = util39.base64url.encode(Buffer.from(md.digest().toHex(), "hex"));
112810
113064
  }
112811
113065
  capture.type = "public";
112812
113066
  break;
@@ -113082,7 +113336,7 @@ var require_keystore = __commonJS2({
113082
113336
  var require_octkey = __commonJS2({
113083
113337
  "node_modules/node-jose/lib/jwk/octkey.js"(exports2, module2) {
113084
113338
  "use strict";
113085
- var util36 = require_util2();
113339
+ var util39 = require_util2();
113086
113340
  var JWK = {
113087
113341
  BaseKey: require_basekey(),
113088
113342
  helpers: require_helpers5()
@@ -113117,22 +113371,22 @@ var require_octkey = __commonJS2({
113117
113371
  ];
113118
113372
  function adjustDecryptProps(alg, props) {
113119
113373
  if ("iv" in props) {
113120
- props.iv = Buffer.isBuffer(props.iv) ? props.iv : util36.base64url.decode(props.iv || "");
113374
+ props.iv = Buffer.isBuffer(props.iv) ? props.iv : util39.base64url.decode(props.iv || "");
113121
113375
  }
113122
113376
  if ("adata" in props) {
113123
113377
  props.adata = Buffer.isBuffer(props.adata) ? props.adata : Buffer.from(props.adata || "", "utf8");
113124
113378
  }
113125
113379
  if ("mac" in props) {
113126
- props.mac = Buffer.isBuffer(props.mac) ? props.mac : util36.base64url.decode(props.mac || "");
113380
+ props.mac = Buffer.isBuffer(props.mac) ? props.mac : util39.base64url.decode(props.mac || "");
113127
113381
  }
113128
113382
  if ("tag" in props) {
113129
- props.tag = Buffer.isBuffer(props.tag) ? props.tag : util36.base64url.decode(props.tag || "");
113383
+ props.tag = Buffer.isBuffer(props.tag) ? props.tag : util39.base64url.decode(props.tag || "");
113130
113384
  }
113131
113385
  return props;
113132
113386
  }
113133
113387
  function adjustEncryptProps(alg, props) {
113134
113388
  if ("iv" in props) {
113135
- props.iv = Buffer.isBuffer(props.iv) ? props.iv : util36.base64url.decode(props.iv || "");
113389
+ props.iv = Buffer.isBuffer(props.iv) ? props.iv : util39.base64url.decode(props.iv || "");
113136
113390
  }
113137
113391
  if ("adata" in props) {
113138
113392
  props.adata = Buffer.isBuffer(props.adata) ? props.adata : Buffer.from(props.adata || "", "utf8");
@@ -113242,7 +113496,7 @@ var require_octkey = __commonJS2({
113242
113496
  return p;
113243
113497
  },
113244
113498
  generate: function(size) {
113245
- var key = util36.randomBytes(size / 8);
113499
+ var key = util39.randomBytes(size / 8);
113246
113500
  return Promise.resolve({
113247
113501
  k: key
113248
113502
  });
@@ -113938,7 +114192,7 @@ var require_sign = __commonJS2({
113938
114192
  "node_modules/node-jose/lib/jws/sign.js"(exports2, module2) {
113939
114193
  "use strict";
113940
114194
  var merge2 = require_merge2();
113941
- var util36 = require_util2();
114195
+ var util39 = require_util2();
113942
114196
  var JWK = require_jwk();
113943
114197
  var slice = require_helpers6().slice;
113944
114198
  var clone = require_clone2();
@@ -113964,7 +114218,7 @@ var require_sign = __commonJS2({
113964
114218
  throw new Error("already final");
113965
114219
  }
113966
114220
  if (data2 != null) {
113967
- data2 = util36.asBuffer(data2, encoding);
114221
+ data2 = util39.asBuffer(data2, encoding);
113968
114222
  if (content.length) {
113969
114223
  content = Buffer.concat(
113970
114224
  [content, data2],
@@ -113987,7 +114241,7 @@ var require_sign = __commonJS2({
113987
114241
  var promise5;
113988
114242
  promise5 = Promise.all(signatories);
113989
114243
  promise5 = promise5.then(function(sigs) {
113990
- content = util36.base64url.encode(content);
114244
+ content = util39.base64url.encode(content);
113991
114245
  sigs = sigs.map(function(s2) {
113992
114246
  var protect = {}, lenProtect = 0, unprotect = clone(s2.header), lenUnprotect = Object.keys(unprotect).length;
113993
114247
  s2.protected.forEach(function(h2) {
@@ -114001,7 +114255,7 @@ var require_sign = __commonJS2({
114001
114255
  });
114002
114256
  if (lenProtect > 0) {
114003
114257
  protect = JSON.stringify(protect);
114004
- protect = util36.base64url.encode(protect);
114258
+ protect = util39.base64url.encode(protect);
114005
114259
  } else {
114006
114260
  protect = "";
114007
114261
  }
@@ -114015,7 +114269,7 @@ var require_sign = __commonJS2({
114015
114269
  if (0 < lenUnprotect) {
114016
114270
  sig.header = unprotect;
114017
114271
  }
114018
- sig.signature = util36.base64url.encode(result2.mac);
114272
+ sig.signature = util39.base64url.encode(result2.mac);
114019
114273
  return sig;
114020
114274
  });
114021
114275
  return s2;
@@ -118719,7 +118973,7 @@ var require_defaults2 = __commonJS2({
118719
118973
  var require_encrypt = __commonJS2({
118720
118974
  "node_modules/node-jose/lib/jwe/encrypt.js"(exports2, module2) {
118721
118975
  "use strict";
118722
- var util36 = require_util2();
118976
+ var util39 = require_util2();
118723
118977
  var generateCEK = require_helpers7().generateCEK;
118724
118978
  var JWK = require_jwk();
118725
118979
  var slice = require_helpers7().slice;
@@ -118766,7 +119020,7 @@ var require_encrypt = __commonJS2({
118766
119020
  throw new Error("already final");
118767
119021
  }
118768
119022
  if (data2 != null) {
118769
- data2 = util36.asBuffer(data2, encoding);
119023
+ data2 = util39.asBuffer(data2, encoding);
118770
119024
  if (content.length) {
118771
119025
  content = Buffer.concat(
118772
119026
  [content, data2],
@@ -118855,7 +119109,7 @@ var require_encrypt = __commonJS2({
118855
119109
  var rjwe = {}, cek;
118856
119110
  if (wrapped.data) {
118857
119111
  cek = wrapped.data;
118858
- cek = util36.base64url.encode(cek);
119112
+ cek = util39.base64url.encode(cek);
118859
119113
  }
118860
119114
  if (wrapped.direct && cek) {
118861
119115
  encKey = JWK.asKey({
@@ -118951,7 +119205,7 @@ var require_encrypt = __commonJS2({
118951
119205
  if (protect && lenProtect > 0) {
118952
119206
  props = assign6(props, protect);
118953
119207
  protect = JSON.stringify(protect);
118954
- jwe.protected = util36.base64url.encode(protect, "utf8");
119208
+ jwe.protected = util39.base64url.encode(protect, "utf8");
118955
119209
  }
118956
119210
  return jwe;
118957
119211
  });
@@ -118979,9 +119233,9 @@ var require_encrypt = __commonJS2({
118979
119233
  props.adata += "." + cfg.aad;
118980
119234
  props.adata = Buffer.from(props.adata, "utf8");
118981
119235
  }
118982
- var iv = cfg.iv || util36.randomBytes(CONSTANTS.NONCELENGTH[encAlg] / 8);
119236
+ var iv = cfg.iv || util39.randomBytes(CONSTANTS.NONCELENGTH[encAlg] / 8);
118983
119237
  if ("string" === typeof iv) {
118984
- iv = util36.base64url.decode(iv);
119238
+ iv = util39.base64url.decode(iv);
118985
119239
  }
118986
119240
  props.iv = iv;
118987
119241
  if ("recipients" in jwe && jwe.recipients.length === 1) {
@@ -118998,12 +119252,12 @@ var require_encrypt = __commonJS2({
118998
119252
  return encKey.then(function(encKey2) {
118999
119253
  var p = encKey2.encrypt(encAlg, pdata, props);
119000
119254
  p = p.then(function(result2) {
119001
- jwe.iv = util36.base64url.encode(iv, "binary");
119255
+ jwe.iv = util39.base64url.encode(iv, "binary");
119002
119256
  if ("aad" in cfg && cfg.aad != null) {
119003
119257
  jwe.aad = cfg.aad;
119004
119258
  }
119005
- jwe.ciphertext = util36.base64url.encode(result2.data, "binary");
119006
- jwe.tag = util36.base64url.encode(result2.tag, "binary");
119259
+ jwe.ciphertext = util39.base64url.encode(result2.data, "binary");
119260
+ jwe.tag = util39.base64url.encode(result2.tag, "binary");
119007
119261
  return jwe;
119008
119262
  });
119009
119263
  return p;
@@ -119205,7 +119459,7 @@ var require_encrypt = __commonJS2({
119205
119459
  return p;
119206
119460
  });
119207
119461
  var cfg = {
119208
- aad: "aad" in options2 ? util36.base64url.encode(options2.aad || "") : null,
119462
+ aad: "aad" in options2 ? util39.base64url.encode(options2.aad || "") : null,
119209
119463
  contentAlg: options2.contentAlg,
119210
119464
  format: options2.format,
119211
119465
  protect: options2.protect,
@@ -123284,7 +123538,7 @@ function stringify(obj) {
123284
123538
  }
123285
123539
  var package_default = {
123286
123540
  name: "@rockcarver/frodo-lib",
123287
- version: "2.0.1-1",
123541
+ version: "2.0.2",
123288
123542
  type: "commonjs",
123289
123543
  main: "./dist/index.js",
123290
123544
  module: "./dist/esm/index.js",
@@ -123299,10 +123553,10 @@ var package_default = {
123299
123553
  scripts: {
123300
123554
  test: "npm run test:only",
123301
123555
  "test:only": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent",
123302
- "test:debug": "NODE_OPTIONS=--experimental-vm-modules npx jest --verbose=true --silent=false",
123303
- "test:record": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record npx jest --verbose=true --silent=false --runInBand --updateSnapshot --testPathPattern",
123304
- "test:record_noauth": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record_noauth npx jest --verbose=true --silent=false --updateSnapshot --testPathIgnorePatterns cjs --testPathPattern",
123305
- "test:update": "NODE_OPTIONS=--experimental-vm-modules npx jest --verbose=true --silent=false --updateSnapshot --testPathPattern",
123556
+ "test:debug": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent=false",
123557
+ "test:record": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record npx jest --silent=false --runInBand --updateSnapshot --testPathPattern",
123558
+ "test:record_noauth": "NODE_OPTIONS=--experimental-vm-modules FRODO_POLLY_MODE=record_noauth npx jest --silent=false --updateSnapshot --testPathIgnorePatterns cjs --testPathPattern",
123559
+ "test:update": "NODE_OPTIONS=--experimental-vm-modules npx jest --silent=false --updateSnapshot --testPathPattern",
123306
123560
  lint: "eslint --ext .ts --ignore-path .gitignore .",
123307
123561
  "lint:fix": "eslint --fix --ext .ts --ignore-path .gitignore .",
123308
123562
  "clean-types": "rimraf types",
@@ -123383,58 +123637,6 @@ var package_default = {
123383
123637
  }
123384
123638
  ],
123385
123639
  license: "MIT",
123386
- _devDependencies: {
123387
- "@pollyjs/adapter-node-http": "include in bundle",
123388
- "@pollyjs/core": "include in bundle",
123389
- "@pollyjs/persister-fs": "include in bundle",
123390
- agentkeepalive: "include in bundle",
123391
- axios: "include in bundle",
123392
- "axios-mock-adapter": "include in bundle",
123393
- "axios-retry": "include in bundle",
123394
- colors: "^include in bundle",
123395
- esprima: "include in bundle",
123396
- "fs-extra": "include in bundle",
123397
- "https-proxy-agent": "include in bundle",
123398
- "node-jose": "include in bundle",
123399
- "properties-reader": "include in bundle",
123400
- qs: "include in bundle",
123401
- replaceall: "include in bundle",
123402
- slugify: "include in bundle",
123403
- uuid: "include in bundle",
123404
- "@jest/globals": "exclude from bundle",
123405
- "@types/esprima": "exclude from bundle",
123406
- "@types/fs-extra": "exclude from bundle",
123407
- "@types/jest": "exclude from bundle",
123408
- "@types/lodash": "exclude from bundle",
123409
- "@types/mock-fs": "exclude from bundle",
123410
- "@types/node": "exclude from bundle",
123411
- "@types/properties-reader": "exclude from bundle",
123412
- "@types/uuid": "exclude from bundle",
123413
- "@typescript-eslint/eslint-plugin": "exclude from bundle",
123414
- "@typescript-eslint/parser": "exclude from bundle",
123415
- copyfiles: "exclude from bundle",
123416
- del: "exclude from bundle",
123417
- eslint: "exclude from bundle",
123418
- "eslint-config-prettier": "exclude from bundle",
123419
- "eslint-plugin-deprecation": "exclude from bundle",
123420
- "eslint-plugin-import": "exclude from bundle",
123421
- "eslint-plugin-jest": "exclude from bundle",
123422
- "eslint-plugin-prettier": "exclude from bundle",
123423
- "eslint-plugin-simple-import-sort": "exclude from bundle",
123424
- jest: "exclude from bundle",
123425
- "jest-jasmine2": "exclude from bundle",
123426
- loglevel: "exclude from bundle",
123427
- "map-stream": "exclude from bundle",
123428
- "mock-fs": "exclude from bundle",
123429
- prettier: "exclude from bundle",
123430
- rimraf: "exclude from bundle",
123431
- "setup-polly-jest": "exclude from bundle",
123432
- "ts-jest": "exclude from bundle",
123433
- tsup: "exclude from bundle",
123434
- typedoc: "exclude from bundle",
123435
- "typedoc-plugin-missing-exports": "exclude from bundle",
123436
- typescript: "exclude from bundle"
123437
- },
123438
123640
  devDependencies: {
123439
123641
  "@jest/globals": "^29.0.1",
123440
123642
  "@pollyjs/adapter-node-http": "^6.0.5",
@@ -123446,6 +123648,7 @@ var package_default = {
123446
123648
  "@types/lodash": "^4.14.189",
123447
123649
  "@types/mock-fs": "^4.13.1",
123448
123650
  "@types/node": "^20.5.8",
123651
+ "@types/node-forge": "^1.3.11",
123449
123652
  "@types/properties-reader": "^2.1.1",
123450
123653
  "@types/uuid": "^9.0.0",
123451
123654
  "@typescript-eslint/eslint-plugin": "^7.12.0",
@@ -123472,6 +123675,7 @@ var package_default = {
123472
123675
  loglevel: "^1.9.1",
123473
123676
  "map-stream": "^0.0.7",
123474
123677
  "mock-fs": "^5.2.0",
123678
+ "node-forge": "^1.3.1",
123475
123679
  "node-jose": "^2.2.0",
123476
123680
  prettier: "^3.2.5",
123477
123681
  "properties-reader": "^2.2.0",
@@ -130264,6 +130468,7 @@ var HttpAdapter = class extends pollyjs_adapter_default {
130264
130468
  }
130265
130469
  };
130266
130470
  var pollyjs_adapter_node_http_default = HttpAdapter;
130471
+ var import_loglevel = __toESM2(require_loglevel());
130267
130472
  var import_blueimp_md5 = __toESM2(require_md5());
130268
130473
  var import_fast_json_stable_stringify = __toESM2(require_fast_json_stable_stringify());
130269
130474
  var import_is_absolute_url = __toESM2(require_is_absolute_url());
@@ -132717,7 +132922,7 @@ var FORMATTED_ACTIONS = {
132717
132922
  var Logger = class {
132718
132923
  constructor(polly) {
132719
132924
  this.polly = polly;
132720
- this.log = _loglevel2.default.getLogger(`@pollyjs/core:${this.polly.recordingName}`);
132925
+ this.log = import_loglevel.default.getLogger(`@pollyjs/core:${this.polly.recordingName}`);
132721
132926
  this.log.setLevel(polly.config.logLevel);
132722
132927
  }
132723
132928
  connect() {
@@ -132832,7 +133037,7 @@ var DefaultConfig = {
132832
133037
  keepUnusedRequests: false,
132833
133038
  disableSortingHarEntries: false
132834
133039
  },
132835
- logLevel: _loglevel2.default.levels.WARN,
133040
+ logLevel: import_loglevel.default.levels.WARN,
132836
133041
  flushRequestsOnStop: false,
132837
133042
  recordIfMissing: true,
132838
133043
  recordFailedRequests: false,
@@ -134370,7 +134575,7 @@ var PollyRequest = class extends HTTPBase {
134370
134575
  }
134371
134576
  get log() {
134372
134577
  if (this.id) {
134373
- const log = _loglevel2.default.getLogger(`@pollyjs/core:${this.recordingName}:${this.id}`);
134578
+ const log = import_loglevel.default.getLogger(`@pollyjs/core:${this.recordingName}:${this.id}`);
134374
134579
  log.setLevel(this.config.logLevel);
134375
134580
  return log;
134376
134581
  } else {
@@ -155675,6 +155880,808 @@ async function importAdminFederationProviders({
155675
155880
  }
155676
155881
  return response2;
155677
155882
  }
155883
+ var certificatesURLTemplate = "%s/environment/certificates";
155884
+ var certificateByIdURLTemplate = "%s/environment/certificates/%s";
155885
+ var apiVersion15 = "protocol=1.0,resource=1.0";
155886
+ var getApiConfig16 = () => {
155887
+ return {
155888
+ apiVersion: apiVersion15
155889
+ };
155890
+ };
155891
+ async function getCertificates({
155892
+ state: state2
155893
+ }) {
155894
+ const urlString = _util2.default.format(
155895
+ certificatesURLTemplate,
155896
+ getHostBaseUrl(state2.getHost())
155897
+ );
155898
+ const { data: data2 } = await generateEnvApi({
155899
+ resource: getApiConfig16(),
155900
+ state: state2
155901
+ }).get(urlString, {
155902
+ withCredentials: true
155903
+ });
155904
+ return data2;
155905
+ }
155906
+ async function createCertificate({
155907
+ active,
155908
+ certificate,
155909
+ privateKey,
155910
+ state: state2
155911
+ }) {
155912
+ const urlString = _util2.default.format(
155913
+ certificatesURLTemplate,
155914
+ getHostBaseUrl(state2.getHost())
155915
+ );
155916
+ const { data: data2 } = await generateEnvApi({
155917
+ resource: getApiConfig16(),
155918
+ state: state2
155919
+ }).post(
155920
+ urlString,
155921
+ { active, certificate, privateKey },
155922
+ { withCredentials: true }
155923
+ );
155924
+ return data2;
155925
+ }
155926
+ async function deleteCertificate({
155927
+ certificateId,
155928
+ state: state2
155929
+ }) {
155930
+ const urlString = _util2.default.format(
155931
+ certificateByIdURLTemplate,
155932
+ getHostBaseUrl(state2.getHost()),
155933
+ certificateId
155934
+ );
155935
+ const { data: data2 } = await generateEnvApi({
155936
+ resource: getApiConfig16(),
155937
+ state: state2
155938
+ }).delete(urlString, {
155939
+ withCredentials: true
155940
+ });
155941
+ return data2;
155942
+ }
155943
+ async function getCertificate({
155944
+ certificateId,
155945
+ state: state2
155946
+ }) {
155947
+ const urlString = _util2.default.format(
155948
+ certificateByIdURLTemplate,
155949
+ getHostBaseUrl(state2.getHost()),
155950
+ certificateId
155951
+ );
155952
+ const { data: data2 } = await generateEnvApi({
155953
+ resource: getApiConfig16(),
155954
+ state: state2
155955
+ }).get(urlString, {
155956
+ withCredentials: true
155957
+ });
155958
+ return data2;
155959
+ }
155960
+ async function updateCertificate({
155961
+ certificateId,
155962
+ active,
155963
+ state: state2
155964
+ }) {
155965
+ const urlString = _util2.default.format(
155966
+ certificateByIdURLTemplate,
155967
+ getHostBaseUrl(state2.getHost()),
155968
+ certificateId
155969
+ );
155970
+ const { data: data2 } = await generateEnvApi({
155971
+ resource: getApiConfig16(),
155972
+ state: state2
155973
+ }).patch(urlString, { active }, { withCredentials: true });
155974
+ return data2;
155975
+ }
155976
+ var defaultInterval = 5e3;
155977
+ var defaultRetries = 24;
155978
+ var EnvCertificatesOps_default = (state2) => {
155979
+ return {
155980
+ async readCertificate(certificateId) {
155981
+ return readCertificate({ certificateId, state: state2 });
155982
+ },
155983
+ async readCertificates() {
155984
+ return readCertificates({ state: state2 });
155985
+ },
155986
+ async createCertificate(active, certificate, privateKey, wait = false, interval = defaultInterval, retries = defaultRetries) {
155987
+ return createCertificate2({
155988
+ active,
155989
+ certificate,
155990
+ privateKey,
155991
+ wait,
155992
+ interval,
155993
+ retries,
155994
+ state: state2
155995
+ });
155996
+ },
155997
+ async updateCertificate(certificateId, active) {
155998
+ return updateCertificate2({
155999
+ certificateId,
156000
+ active,
156001
+ state: state2
156002
+ });
156003
+ },
156004
+ async activateCertificate(certificateId, wait = false, interval = defaultInterval, retries = defaultRetries) {
156005
+ return activateCertificate({
156006
+ certificateId,
156007
+ wait,
156008
+ interval,
156009
+ retries,
156010
+ state: state2
156011
+ });
156012
+ },
156013
+ async deactivateCertificate(certificateId, wait = false, interval = defaultInterval, retries = defaultRetries) {
156014
+ return deactivateCertificate({
156015
+ certificateId,
156016
+ wait,
156017
+ interval,
156018
+ retries,
156019
+ state: state2
156020
+ });
156021
+ },
156022
+ async isCertificateActive(certificateId) {
156023
+ return isCertificateActive({ certificateId, state: state2 });
156024
+ },
156025
+ async isCertificateLive(certificateId) {
156026
+ return isCertificateLive({ certificateId, state: state2 });
156027
+ },
156028
+ async deleteCertificate(certificateId, force = false, interval = defaultInterval, retries = defaultRetries) {
156029
+ return deleteCertificate2({
156030
+ certificateId,
156031
+ force,
156032
+ interval,
156033
+ retries,
156034
+ state: state2
156035
+ });
156036
+ },
156037
+ async deleteCertificates(force = false, interval = defaultInterval, retries = defaultRetries) {
156038
+ return deleteCertificates({ force, interval, retries, state: state2 });
156039
+ }
156040
+ };
156041
+ };
156042
+ async function readCertificate({
156043
+ certificateId,
156044
+ state: state2
156045
+ }) {
156046
+ try {
156047
+ const certificate = await getCertificate({ certificateId, state: state2 });
156048
+ return certificate;
156049
+ } catch (error2) {
156050
+ throw new FrodoError(`Error reading certificate ${certificateId}`, error2);
156051
+ }
156052
+ }
156053
+ async function readCertificates({
156054
+ state: state2
156055
+ }) {
156056
+ try {
156057
+ const result2 = await getCertificates({ state: state2 });
156058
+ return result2;
156059
+ } catch (error2) {
156060
+ throw new FrodoError(`Error reading certificates`, error2);
156061
+ }
156062
+ }
156063
+ async function createCertificate2({
156064
+ active,
156065
+ certificate,
156066
+ privateKey,
156067
+ wait = false,
156068
+ interval = defaultInterval,
156069
+ retries = defaultRetries,
156070
+ state: state2
156071
+ }) {
156072
+ debugMessage({
156073
+ message: `EnvCertificatesOps.createCertificate: start`,
156074
+ state: state2
156075
+ });
156076
+ try {
156077
+ const cert = await createCertificate({
156078
+ active,
156079
+ certificate,
156080
+ privateKey,
156081
+ state: state2
156082
+ });
156083
+ if (active && wait) {
156084
+ if (cert.live) return cert;
156085
+ do {
156086
+ await sleep(interval);
156087
+ cert.live = await isCertificateLive({ certificateId: cert.id, state: state2 });
156088
+ debugMessage({
156089
+ message: `EnvCertificatesOps.createCertificate: live=${cert.live}`,
156090
+ state: state2
156091
+ });
156092
+ retries--;
156093
+ } while (!cert.live && retries > 0);
156094
+ if (!cert.live) {
156095
+ throw new FrodoError(
156096
+ `Timeout waiting for new cert ${cert.id} to go live`
156097
+ );
156098
+ }
156099
+ }
156100
+ debugMessage({
156101
+ message: `EnvCertificatesOps.createCertificate: end`,
156102
+ state: state2
156103
+ });
156104
+ return cert;
156105
+ } catch (error2) {
156106
+ throw new FrodoError(`Error creating certificate`, error2);
156107
+ }
156108
+ }
156109
+ async function updateCertificate2({
156110
+ certificateId,
156111
+ active,
156112
+ state: state2
156113
+ }) {
156114
+ try {
156115
+ const result2 = await updateCertificate({
156116
+ certificateId,
156117
+ active,
156118
+ state: state2
156119
+ });
156120
+ return result2;
156121
+ } catch (error2) {
156122
+ throw new FrodoError(`Error updating certificate ${certificateId}`, error2);
156123
+ }
156124
+ }
156125
+ async function activateCertificate({
156126
+ certificateId,
156127
+ wait = false,
156128
+ interval = defaultInterval,
156129
+ retries = defaultRetries,
156130
+ state: state2
156131
+ }) {
156132
+ debugMessage({
156133
+ message: `EnvCertificatesOps.activateCertificate: start`,
156134
+ state: state2
156135
+ });
156136
+ const cert = await updateCertificate2({ certificateId, active: true, state: state2 });
156137
+ if (wait) {
156138
+ debugMessage({
156139
+ message: `EnvCertificatesOps.activateCertificate: live=${cert.live}`,
156140
+ state: state2
156141
+ });
156142
+ if (cert.live) return cert;
156143
+ do {
156144
+ await sleep(interval);
156145
+ cert.live = await isCertificateLive({ certificateId, state: state2 });
156146
+ debugMessage({
156147
+ message: `EnvCertificatesOps.activateCertificate: live=${cert.live}`,
156148
+ state: state2
156149
+ });
156150
+ retries--;
156151
+ } while (!cert.live && retries > 0);
156152
+ if (!cert.live) {
156153
+ throw new FrodoError(
156154
+ `Timeout waiting for activated cert ${cert.id} to go live`
156155
+ );
156156
+ }
156157
+ }
156158
+ debugMessage({
156159
+ message: `EnvCertificatesOps.activateCertificate: end`,
156160
+ state: state2
156161
+ });
156162
+ return cert;
156163
+ }
156164
+ async function deactivateCertificate({
156165
+ certificateId,
156166
+ wait = false,
156167
+ interval = defaultInterval,
156168
+ retries = defaultRetries,
156169
+ state: state2
156170
+ }) {
156171
+ debugMessage({
156172
+ message: `EnvCertificatesOps.deactivateCertificate: start`,
156173
+ state: state2
156174
+ });
156175
+ const cert = await updateCertificate2({ certificateId, active: false, state: state2 });
156176
+ if (wait) {
156177
+ debugMessage({
156178
+ message: `EnvCertificatesOps.deactivateCertificate: live=${cert.live}`,
156179
+ state: state2
156180
+ });
156181
+ if (!cert.live) return cert;
156182
+ do {
156183
+ await sleep(interval);
156184
+ cert.live = await isCertificateLive({ certificateId, state: state2 });
156185
+ debugMessage({
156186
+ message: `EnvCertificatesOps.deactivateCertificate: live=${cert.live}`,
156187
+ state: state2
156188
+ });
156189
+ retries--;
156190
+ } while (cert.live && retries > 0);
156191
+ if (cert.live) {
156192
+ throw new FrodoError(
156193
+ `Timeout waiting for deactivated cert ${cert.id} to go offline`
156194
+ );
156195
+ }
156196
+ }
156197
+ debugMessage({
156198
+ message: `EnvCertificatesOps.deactivateCertificate: end`,
156199
+ state: state2
156200
+ });
156201
+ return cert;
156202
+ }
156203
+ async function isCertificateActive({
156204
+ certificateId,
156205
+ state: state2
156206
+ }) {
156207
+ try {
156208
+ const certificate = await getCertificate({ certificateId, state: state2 });
156209
+ return certificate.active;
156210
+ } catch (error2) {
156211
+ throw new FrodoError(`Error reading certificate ${certificateId}`, error2);
156212
+ }
156213
+ }
156214
+ async function isCertificateLive({
156215
+ certificateId,
156216
+ state: state2
156217
+ }) {
156218
+ try {
156219
+ const certificate = await getCertificate({ certificateId, state: state2 });
156220
+ return certificate.live;
156221
+ } catch (error2) {
156222
+ throw new FrodoError(`Error reading certificate ${certificateId}`, error2);
156223
+ }
156224
+ }
156225
+ function sleep(ms2) {
156226
+ return new Promise((resolve5) => setTimeout(resolve5, ms2));
156227
+ }
156228
+ async function deleteCertificate2({
156229
+ certificateId,
156230
+ force = false,
156231
+ interval = defaultInterval,
156232
+ retries = defaultRetries,
156233
+ state: state2
156234
+ }) {
156235
+ debugMessage({
156236
+ message: `EnvCertificatesOps.deleteCertificate: start`,
156237
+ state: state2
156238
+ });
156239
+ try {
156240
+ let cert = await getCertificate({ certificateId, state: state2 });
156241
+ if (!force) {
156242
+ await deleteCertificate({ certificateId, state: state2 });
156243
+ return cert;
156244
+ }
156245
+ if (force && cert.active) {
156246
+ cert = await deactivateCertificate({
156247
+ certificateId,
156248
+ wait: true,
156249
+ interval,
156250
+ state: state2
156251
+ });
156252
+ }
156253
+ let fe;
156254
+ let isError = false;
156255
+ do {
156256
+ retries--;
156257
+ await sleep(interval);
156258
+ try {
156259
+ debugMessage({
156260
+ message: `EnvCertificatesOps.deleteCertificate: ${fe}, retrying...`,
156261
+ state: state2
156262
+ });
156263
+ await deleteCertificate({ certificateId, state: state2 });
156264
+ isError = false;
156265
+ } catch (error2) {
156266
+ fe = new FrodoError(error2.message, error2);
156267
+ if (fe.httpStatus === 500 && fe.httpCode === "ERR_BAD_RESPONSE") {
156268
+ isError = true;
156269
+ }
156270
+ }
156271
+ } while (isError && retries > 0);
156272
+ if (isError) {
156273
+ debugMessage({
156274
+ message: `EnvCertificatesOps.deleteCertificate: ${fe}, aborting`,
156275
+ state: state2
156276
+ });
156277
+ throw fe;
156278
+ }
156279
+ debugMessage({
156280
+ message: `EnvCertificatesOps.deleteCertificate: end`,
156281
+ state: state2
156282
+ });
156283
+ return cert;
156284
+ } catch (error2) {
156285
+ throw new FrodoError(`Error deleting certificate ${certificateId}`, error2);
156286
+ }
156287
+ }
156288
+ function inactiveAndOffline(certs) {
156289
+ return certs.every((item) => !item.active && !item.live);
156290
+ }
156291
+ async function deleteCertificates({
156292
+ force = false,
156293
+ interval = defaultInterval,
156294
+ retries = defaultRetries,
156295
+ state: state2
156296
+ }) {
156297
+ debugMessage({
156298
+ message: `EnvCertificatesOps.deleteCertificates: start`,
156299
+ state: state2
156300
+ });
156301
+ let errors = [];
156302
+ try {
156303
+ let certs = await readCertificates({ state: state2 });
156304
+ if (!force) {
156305
+ debugMessage({
156306
+ message: `EnvCertificatesOps.deleteCertificates: force: ${force}, inactiveAndOffline: ${inactiveAndOffline(certs)}`,
156307
+ state: state2
156308
+ });
156309
+ const deletes = [];
156310
+ for (const cert of certs) {
156311
+ deletes.push(deleteCertificate2({ certificateId: cert.id, state: state2 }));
156312
+ }
156313
+ const results = await Promise.allSettled(deletes);
156314
+ errors = results.filter((result2) => result2.status === "rejected").map((result2) => result2.reason);
156315
+ const deleted = results.filter((result2) => result2.status === "fulfilled").map(
156316
+ (result2) => result2.value
156317
+ );
156318
+ if (errors.length > 0) {
156319
+ throw new FrodoError(`Error deleting certificates`, errors);
156320
+ }
156321
+ debugMessage({
156322
+ message: `EnvCertificatesOps.deleteCertificates: end`,
156323
+ state: state2
156324
+ });
156325
+ return deleted;
156326
+ }
156327
+ if (force) {
156328
+ debugMessage({
156329
+ message: `EnvCertificatesOps.deleteCertificates: force: ${force}, inactiveAndOffline: ${inactiveAndOffline(certs)}`,
156330
+ state: state2
156331
+ });
156332
+ if (!inactiveAndOffline(certs)) {
156333
+ const deactivate = [];
156334
+ for (const cert of certs.filter((cert2) => cert2.active)) {
156335
+ deactivate.push(
156336
+ deactivateCertificate({
156337
+ certificateId: cert.id,
156338
+ wait: true,
156339
+ interval,
156340
+ state: state2
156341
+ })
156342
+ );
156343
+ }
156344
+ debugMessage({
156345
+ message: `EnvCertificatesOps.deleteCertificates: deactivation of ${certs.length} certs initiated`,
156346
+ state: state2
156347
+ });
156348
+ await Promise.allSettled(deactivate);
156349
+ debugMessage({
156350
+ message: `EnvCertificatesOps.deleteCertificates: deactivation of ${certs.length} certs completed`,
156351
+ state: state2
156352
+ });
156353
+ do {
156354
+ await sleep(interval);
156355
+ certs = await readCertificates({ state: state2 });
156356
+ debugMessage({
156357
+ message: `EnvCertificatesOps.deleteCertificates: inactiveAndOffline: ${inactiveAndOffline(certs)}`,
156358
+ state: state2
156359
+ });
156360
+ retries--;
156361
+ } while (certs.every((cert) => cert.live) && retries > 0);
156362
+ if (certs.every((cert) => cert.live)) {
156363
+ errors.push(
156364
+ new FrodoError(
156365
+ `Timeout waiting for deactivated certs to go offline`
156366
+ )
156367
+ );
156368
+ }
156369
+ }
156370
+ const deletes = [];
156371
+ for (const cert of certs) {
156372
+ deletes.push(
156373
+ deleteCertificate2({
156374
+ certificateId: cert.id,
156375
+ force,
156376
+ interval,
156377
+ retries,
156378
+ state: state2
156379
+ })
156380
+ );
156381
+ }
156382
+ debugMessage({
156383
+ message: `EnvCertificatesOps.deleteCertificates: deletion of ${certs.length} certs initiated`,
156384
+ state: state2
156385
+ });
156386
+ const results = await Promise.allSettled(deletes);
156387
+ debugMessage({
156388
+ message: `EnvCertificatesOps.deleteCertificates: deletion of ${certs.length} certs completed`,
156389
+ state: state2
156390
+ });
156391
+ errors = results.filter((result2) => result2.status === "rejected").map((result2) => result2.reason);
156392
+ const deleted = results.filter((result2) => result2.status === "fulfilled").map(
156393
+ (result2) => result2.value
156394
+ );
156395
+ if (errors.length > 0) {
156396
+ throw new FrodoError(`Error deleting certificates`, errors);
156397
+ }
156398
+ debugMessage({
156399
+ message: `EnvCertificatesOps.deleteCertificates: end`,
156400
+ state: state2
156401
+ });
156402
+ return deleted;
156403
+ }
156404
+ } catch (error2) {
156405
+ if (errors.length > 0) {
156406
+ throw error2;
156407
+ }
156408
+ throw new FrodoError(`Error deleting certificates`, error2);
156409
+ }
156410
+ }
156411
+ var csrsURLTemplate = "%s/environment/csrs";
156412
+ var csrByIdURLTemplate = "%s/environment/csrs/%s";
156413
+ var apiVersion16 = "protocol=1.0,resource=1.0";
156414
+ var getApiConfig17 = () => {
156415
+ return {
156416
+ apiVersion: apiVersion16
156417
+ };
156418
+ };
156419
+ async function getCSRs({
156420
+ state: state2
156421
+ }) {
156422
+ const urlString = _util2.default.format(
156423
+ csrsURLTemplate,
156424
+ getHostBaseUrl(state2.getHost())
156425
+ );
156426
+ const { data: data2 } = await generateEnvApi({
156427
+ resource: getApiConfig17(),
156428
+ state: state2
156429
+ }).get(urlString, {
156430
+ withCredentials: true
156431
+ });
156432
+ return data2;
156433
+ }
156434
+ async function createCSR({
156435
+ csr,
156436
+ state: state2
156437
+ }) {
156438
+ const urlString = _util2.default.format(
156439
+ csrsURLTemplate,
156440
+ getHostBaseUrl(state2.getHost())
156441
+ );
156442
+ const { data: data2 } = await generateEnvApi({
156443
+ resource: getApiConfig17(),
156444
+ state: state2
156445
+ }).post(urlString, csr, { withCredentials: true });
156446
+ return data2;
156447
+ }
156448
+ async function deleteCSR({
156449
+ csrId,
156450
+ state: state2
156451
+ }) {
156452
+ const urlString = _util2.default.format(
156453
+ csrByIdURLTemplate,
156454
+ getHostBaseUrl(state2.getHost()),
156455
+ csrId
156456
+ );
156457
+ const { data: data2 } = await generateEnvApi({
156458
+ resource: getApiConfig17(),
156459
+ state: state2
156460
+ }).delete(urlString, {
156461
+ withCredentials: true
156462
+ });
156463
+ return data2;
156464
+ }
156465
+ async function getCSR({
156466
+ csrId,
156467
+ state: state2
156468
+ }) {
156469
+ const urlString = _util2.default.format(
156470
+ csrByIdURLTemplate,
156471
+ getHostBaseUrl(state2.getHost()),
156472
+ csrId
156473
+ );
156474
+ const { data: data2 } = await generateEnvApi({
156475
+ resource: getApiConfig17(),
156476
+ state: state2
156477
+ }).get(urlString, {
156478
+ withCredentials: true
156479
+ });
156480
+ return data2;
156481
+ }
156482
+ async function updateCSR({
156483
+ csrId,
156484
+ certificate,
156485
+ state: state2
156486
+ }) {
156487
+ const urlString = _util2.default.format(
156488
+ csrByIdURLTemplate,
156489
+ getHostBaseUrl(state2.getHost()),
156490
+ csrId
156491
+ );
156492
+ const { data: data2 } = await generateEnvApi({
156493
+ resource: getApiConfig17(),
156494
+ state: state2
156495
+ }).patch(urlString, { certificate }, { withCredentials: true });
156496
+ return data2;
156497
+ }
156498
+ var EnvCSRsOps_default = (frodoState) => {
156499
+ return {
156500
+ async readCSR(csrId) {
156501
+ return readCSR({ csrId, state: frodoState });
156502
+ },
156503
+ async readCSRs() {
156504
+ return readCSRs({ state: frodoState });
156505
+ },
156506
+ async createCSR(csr) {
156507
+ return createCSR2({
156508
+ csr,
156509
+ state: frodoState
156510
+ });
156511
+ },
156512
+ async createCSR2(algorithm, businessCategory, city, commonName, country, email, jurisdictionCity, jurisdictionCountry, jurisdictionState, organization, organizationalUnit, postalCode, serialNumber, state2, streetAddress, subjectAlternativeNames) {
156513
+ return createCSR2({
156514
+ csr: {
156515
+ algorithm,
156516
+ businessCategory,
156517
+ city,
156518
+ commonName,
156519
+ country,
156520
+ email,
156521
+ jurisdictionCity,
156522
+ jurisdictionCountry,
156523
+ jurisdictionState,
156524
+ organization,
156525
+ organizationalUnit,
156526
+ postalCode,
156527
+ serialNumber,
156528
+ state: state2,
156529
+ streetAddress,
156530
+ subjectAlternativeNames
156531
+ },
156532
+ state: frodoState
156533
+ });
156534
+ },
156535
+ async updateCSR(csrId, certificate) {
156536
+ return updateCSR2({
156537
+ csrId,
156538
+ certificate,
156539
+ state: frodoState
156540
+ });
156541
+ },
156542
+ async deleteCSR(csrId) {
156543
+ return deleteCSR2({ csrId, state: frodoState });
156544
+ },
156545
+ async deleteCSRs() {
156546
+ return deleteCSRs({ state: frodoState });
156547
+ }
156548
+ };
156549
+ };
156550
+ async function readCSR({
156551
+ csrId,
156552
+ state: state2
156553
+ }) {
156554
+ try {
156555
+ const csr = await getCSR({ csrId, state: state2 });
156556
+ return csr;
156557
+ } catch (error2) {
156558
+ throw new FrodoError(`Error reading CSR ${csrId}`, error2);
156559
+ }
156560
+ }
156561
+ async function readCSRs({
156562
+ state: state2
156563
+ }) {
156564
+ try {
156565
+ const result2 = await getCSRs({ state: state2 });
156566
+ return result2;
156567
+ } catch (error2) {
156568
+ throw new FrodoError(`Error reading CSRs`, error2);
156569
+ }
156570
+ }
156571
+ async function createCSR2({
156572
+ csr,
156573
+ state: state2
156574
+ }) {
156575
+ debugMessage({
156576
+ message: `EnvCSRsOps.createCSR: start`,
156577
+ state: state2
156578
+ });
156579
+ try {
156580
+ const result2 = await createCSR({
156581
+ csr,
156582
+ state: state2
156583
+ });
156584
+ debugMessage({
156585
+ message: `EnvCSRsOps.createCSR: end`,
156586
+ state: state2
156587
+ });
156588
+ return result2;
156589
+ } catch (error2) {
156590
+ throw new FrodoError(`Error creating CSR`, error2);
156591
+ }
156592
+ }
156593
+ async function updateCSR2({
156594
+ csrId,
156595
+ certificate,
156596
+ state: state2
156597
+ }) {
156598
+ try {
156599
+ const result2 = await updateCSR({
156600
+ csrId,
156601
+ certificate,
156602
+ state: state2
156603
+ });
156604
+ return result2;
156605
+ } catch (error2) {
156606
+ throw new FrodoError(`Error updating CSR ${csrId}`, error2);
156607
+ }
156608
+ }
156609
+ async function deleteCSR2({
156610
+ csrId,
156611
+ state: state2
156612
+ }) {
156613
+ try {
156614
+ const result2 = await deleteCSR({ csrId, state: state2 });
156615
+ return result2;
156616
+ } catch (error2) {
156617
+ throw new FrodoError(`Error deleting CSR ${csrId}`, error2);
156618
+ }
156619
+ }
156620
+ async function deleteCSRs({
156621
+ state: state2
156622
+ }) {
156623
+ const errors = [];
156624
+ try {
156625
+ const deleted = [];
156626
+ const csrs = await getCSRs({ state: state2 });
156627
+ for (const csr of csrs) {
156628
+ try {
156629
+ await deleteCSR({ csrId: csr.id, state: state2 });
156630
+ deleted.push(csr);
156631
+ } catch (error2) {
156632
+ errors.push(error2);
156633
+ }
156634
+ }
156635
+ if (errors.length > 0) {
156636
+ throw new FrodoError(`Error deleting CSRs`, errors);
156637
+ }
156638
+ return deleted;
156639
+ } catch (error2) {
156640
+ if (errors.length > 0) {
156641
+ throw error2;
156642
+ }
156643
+ throw new FrodoError(`Error deleting CSRs`, error2);
156644
+ }
156645
+ }
156646
+ var countOfESVsURLTemplate = "%s/environment/count";
156647
+ var apiVersion17 = "resource=2.0";
156648
+ var getApiConfig18 = () => {
156649
+ return {
156650
+ apiVersion: apiVersion17
156651
+ };
156652
+ };
156653
+ async function getEsvCount({
156654
+ state: state2
156655
+ }) {
156656
+ const urlString = _util2.default.format(
156657
+ countOfESVsURLTemplate,
156658
+ getHostBaseUrl(state2.getHost())
156659
+ );
156660
+ const { data: data2 } = await generateEnvApi({
156661
+ resource: getApiConfig18(),
156662
+ state: state2
156663
+ }).get(urlString, {
156664
+ withCredentials: true
156665
+ });
156666
+ return data2;
156667
+ }
156668
+ var EsvCountOps_default = (state2) => {
156669
+ return {
156670
+ async getEsvCount() {
156671
+ return getEsvCount2({ state: state2 });
156672
+ }
156673
+ };
156674
+ };
156675
+ async function getEsvCount2({
156676
+ state: state2
156677
+ }) {
156678
+ try {
156679
+ const counts = await getEsvCount({ state: state2 });
156680
+ return counts;
156681
+ } catch (error2) {
156682
+ throw new FrodoError(`Error counting ESVs`, error2);
156683
+ }
156684
+ }
155678
156685
  var logsTailURLTemplate = "%s/monitoring/logs/tail?source=%s";
155679
156686
  var logsFetchURLTemplate = "%s/monitoring/logs?source=%s&beginTime=%s&endTime=%s";
155680
156687
  var logsSourcesURLTemplate = "%s/monitoring/logs/sources";
@@ -157101,10 +158108,10 @@ async function updateSecretDescription({
157101
158108
  }
157102
158109
  var startupURLTemplate = "%s/environment/startup";
157103
158110
  var startupInitiateRestartURLTemplate = `${startupURLTemplate}?_action=restart`;
157104
- var apiVersion15 = "protocol=1.0,resource=1.0";
157105
- var getApiConfig16 = () => ({
158111
+ var apiVersion18 = "protocol=1.0,resource=1.0";
158112
+ var getApiConfig19 = () => ({
157106
158113
  path: `/environment/startup`,
157107
- apiVersion: apiVersion15
158114
+ apiVersion: apiVersion18
157108
158115
  });
157109
158116
  async function getStatus({
157110
158117
  state: state2
@@ -157114,7 +158121,7 @@ async function getStatus({
157114
158121
  getHostBaseUrl(state2.getHost())
157115
158122
  );
157116
158123
  const { data: data2 } = await generateEnvApi({
157117
- resource: getApiConfig16(),
158124
+ resource: getApiConfig19(),
157118
158125
  state: state2
157119
158126
  }).get(urlString, {
157120
158127
  withCredentials: true
@@ -157131,7 +158138,7 @@ async function initiateRestart({
157131
158138
  getHostBaseUrl(state2.getHost())
157132
158139
  );
157133
158140
  const { data: data2 } = await generateEnvApi({
157134
- resource: getApiConfig16(),
158141
+ resource: getApiConfig19(),
157135
158142
  state: state2
157136
158143
  }).post(urlString, null, {
157137
158144
  withCredentials: true
@@ -157143,10 +158150,10 @@ async function initiateRestart({
157143
158150
  var variablesListURLTemplate = "%s/environment/variables";
157144
158151
  var variableURLTemplate = "%s/environment/variables/%s";
157145
158152
  var variableSetDescriptionURLTemplate = `${variableURLTemplate}?_action=setDescription`;
157146
- var apiVersion16 = "protocol=1.0,resource=1.0";
157147
- var getApiConfig17 = () => {
158153
+ var apiVersion19 = "protocol=1.0,resource=1.0";
158154
+ var getApiConfig20 = () => {
157148
158155
  return {
157149
- apiVersion: apiVersion16
158156
+ apiVersion: apiVersion19
157150
158157
  };
157151
158158
  };
157152
158159
  async function getVariables({
@@ -157157,7 +158164,7 @@ async function getVariables({
157157
158164
  getHostBaseUrl(state2.getHost())
157158
158165
  );
157159
158166
  const { data: data2 } = await generateEnvApi({
157160
- resource: getApiConfig17(),
158167
+ resource: getApiConfig20(),
157161
158168
  state: state2
157162
158169
  }).get(urlString, {
157163
158170
  withCredentials: true
@@ -157174,7 +158181,7 @@ async function getVariable({
157174
158181
  variableId
157175
158182
  );
157176
158183
  const { data: data2 } = await generateEnvApi({
157177
- resource: getApiConfig17(),
158184
+ resource: getApiConfig20(),
157178
158185
  state: state2
157179
158186
  }).get(urlString, {
157180
158187
  withCredentials: true
@@ -157199,7 +158206,7 @@ async function putVariable({
157199
158206
  variableId
157200
158207
  );
157201
158208
  const { data: data2 } = await generateEnvApi({
157202
- resource: getApiConfig17(),
158209
+ resource: getApiConfig20(),
157203
158210
  state: state2
157204
158211
  }).put(urlString, variableData, {
157205
158212
  withCredentials: true
@@ -157217,7 +158224,7 @@ async function setVariableDescription({
157217
158224
  variableId
157218
158225
  );
157219
158226
  const { data: data2 } = await generateEnvApi({
157220
- resource: getApiConfig17(),
158227
+ resource: getApiConfig20(),
157221
158228
  state: state2
157222
158229
  }).post(urlString, { description }, { withCredentials: true });
157223
158230
  return data2;
@@ -157232,7 +158239,7 @@ async function deleteVariable({
157232
158239
  variableId
157233
158240
  );
157234
158241
  const { data: data2 } = await generateEnvApi({
157235
- resource: getApiConfig17(),
158242
+ resource: getApiConfig20(),
157236
158243
  state: state2
157237
158244
  }).delete(urlString, {
157238
158245
  withCredentials: true
@@ -157974,10 +158981,10 @@ async function deleteEmailTemplate({
157974
158981
  }
157975
158982
  var providerByTypeAndIdURLTemplate2 = "%s/json%s/realm-config/services/SocialIdentityProviders/%s/%s";
157976
158983
  var getAllProvidersURLTemplate2 = "%s/json%s/realm-config/services/SocialIdentityProviders?_action=nextdescendents";
157977
- var apiVersion17 = "protocol=2.1,resource=1.0";
157978
- var getApiConfig18 = () => {
158984
+ var apiVersion20 = "protocol=2.1,resource=1.0";
158985
+ var getApiConfig21 = () => {
157979
158986
  return {
157980
- apiVersion: apiVersion17
158987
+ apiVersion: apiVersion20
157981
158988
  };
157982
158989
  };
157983
158990
  async function getSocialIdentityProviders({
@@ -157989,7 +158996,7 @@ async function getSocialIdentityProviders({
157989
158996
  getCurrentRealmPath(state2)
157990
158997
  );
157991
158998
  const { data: data2 } = await generateAmApi({
157992
- resource: getApiConfig18(),
158999
+ resource: getApiConfig21(),
157993
159000
  state: state2
157994
159001
  }).post(
157995
159002
  urlString,
@@ -158014,7 +159021,7 @@ async function putProviderByTypeAndId2({
158014
159021
  type,
158015
159022
  id7
158016
159023
  );
158017
- const { data: data2 } = await generateAmApi({ resource: getApiConfig18(), state: state2 }).put(
159024
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig21(), state: state2 }).put(
158018
159025
  urlString,
158019
159026
  cleanData,
158020
159027
  {
@@ -158036,7 +159043,7 @@ async function deleteProviderByTypeAndId2({
158036
159043
  providerId
158037
159044
  );
158038
159045
  const { data: data2 } = await generateAmApi({
158039
- resource: getApiConfig18(),
159046
+ resource: getApiConfig21(),
158040
159047
  state: state2
158041
159048
  }).delete(urlString, {
158042
159049
  withCredentials: true
@@ -158619,10 +159626,10 @@ var queryAllNodesByTypeURLTemplate = "%s/json%s/realm-config/authentication/auth
158619
159626
  var queryAllNodesURLTemplate = "%s/json%s/realm-config/authentication/authenticationtrees/nodes?_action=nextdescendents";
158620
159627
  var nodeURLTemplate = "%s/json%s/realm-config/authentication/authenticationtrees/nodes/%s/%s";
158621
159628
  var createNodeURLTemplate = "%s/json%s/realm-config/authentication/authenticationtrees/nodes/%s?_action=create";
158622
- var apiVersion18 = "protocol=2.1,resource=1.0";
159629
+ var apiVersion21 = "protocol=2.1,resource=1.0";
158623
159630
  var getNodeApiConfig = () => {
158624
159631
  return {
158625
- apiVersion: apiVersion18
159632
+ apiVersion: apiVersion21
158626
159633
  };
158627
159634
  };
158628
159635
  async function getNodeTypes({
@@ -158769,10 +159776,10 @@ async function deleteNode({
158769
159776
  }
158770
159777
  var treeByIdURLTemplate = "%s/json%s/realm-config/authentication/authenticationtrees/trees/%s";
158771
159778
  var queryAllTreesURLTemplate = "%s/json%s/realm-config/authentication/authenticationtrees/trees?_queryFilter=true";
158772
- var apiVersion19 = "protocol=2.1,resource=1.0";
159779
+ var apiVersion22 = "protocol=2.1,resource=1.0";
158773
159780
  var getTreeApiConfig = () => {
158774
159781
  return {
158775
- apiVersion: apiVersion19
159782
+ apiVersion: apiVersion22
158776
159783
  };
158777
159784
  };
158778
159785
  async function getTrees({ state: state2 }) {
@@ -162013,10 +163020,10 @@ async function disableJourney({
162013
163020
  var queryAllPoliciesURLTemplate = "%s/json%s/policies?_queryFilter=true";
162014
163021
  var queryPoliciesByPolicySetURLTemplate = "%s/json%s/policies?_queryFilter=applicationName+eq+%22%s%22";
162015
163022
  var policyURLTemplate = "%s/json%s/policies/%s";
162016
- var apiVersion20 = "resource=2.1";
162017
- var getApiConfig19 = () => {
163023
+ var apiVersion23 = "resource=2.1";
163024
+ var getApiConfig22 = () => {
162018
163025
  return {
162019
- apiVersion: apiVersion20
163026
+ apiVersion: apiVersion23
162020
163027
  };
162021
163028
  };
162022
163029
  async function getPolicies({ state: state2 }) {
@@ -162025,7 +163032,7 @@ async function getPolicies({ state: state2 }) {
162025
163032
  state2.getHost(),
162026
163033
  getCurrentRealmPath(state2)
162027
163034
  );
162028
- const { data: data2 } = await generateAmApi({ resource: getApiConfig19(), state: state2 }).get(
163035
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).get(
162029
163036
  urlString,
162030
163037
  {
162031
163038
  withCredentials: true
@@ -162043,7 +163050,7 @@ async function getPoliciesByPolicySet({
162043
163050
  getCurrentRealmPath(state2),
162044
163051
  policySetId
162045
163052
  );
162046
- const { data: data2 } = await generateAmApi({ resource: getApiConfig19(), state: state2 }).get(
163053
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).get(
162047
163054
  urlString,
162048
163055
  {
162049
163056
  withCredentials: true
@@ -162061,7 +163068,7 @@ async function getPolicy({
162061
163068
  getCurrentRealmPath(state2),
162062
163069
  policyId
162063
163070
  );
162064
- const { data: data2 } = await generateAmApi({ resource: getApiConfig19(), state: state2 }).get(
163071
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).get(
162065
163072
  urlString,
162066
163073
  {
162067
163074
  withCredentials: true
@@ -162080,7 +163087,7 @@ async function putPolicy({
162080
163087
  getCurrentRealmPath(state2),
162081
163088
  policyId
162082
163089
  );
162083
- const { data: data2 } = await generateAmApi({ resource: getApiConfig19(), state: state2 }).put(
163090
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).put(
162084
163091
  urlString,
162085
163092
  policyData,
162086
163093
  {
@@ -162100,7 +163107,7 @@ async function deletePolicy({
162100
163107
  policyId
162101
163108
  );
162102
163109
  const { data: data2 } = await generateAmApi({
162103
- resource: getApiConfig19(),
163110
+ resource: getApiConfig22(),
162104
163111
  state: state2
162105
163112
  }).delete(urlString, {
162106
163113
  withCredentials: true
@@ -162111,10 +163118,10 @@ var queryAllResourceTypesURLTemplate = "%s/json%s/resourcetypes?_sortKeys=name&_
162111
163118
  var queryResourceTypeByNameURLTemplate = "%s/json%s/resourcetypes?_sortKeys=name&_queryFilter=name+eq+%22%s%22+AND+name+eq+%22%5E(%3F!Delegation%20Service%24).*%22";
162112
163119
  var resourceTypeURLTemplate = "%s/json%s/resourcetypes/%s";
162113
163120
  var createResourceTypeURLTemplate = "%s/json%s/resourcetypes?_action=create";
162114
- var apiVersion21 = "protocol=1.0,resource=1.0";
162115
- var getApiConfig20 = () => {
163121
+ var apiVersion24 = "protocol=1.0,resource=1.0";
163122
+ var getApiConfig23 = () => {
162116
163123
  return {
162117
- apiVersion: apiVersion21
163124
+ apiVersion: apiVersion24
162118
163125
  };
162119
163126
  };
162120
163127
  async function getResourceTypes({ state: state2 }) {
@@ -162123,7 +163130,7 @@ async function getResourceTypes({ state: state2 }) {
162123
163130
  state2.getHost(),
162124
163131
  getCurrentRealmPath(state2)
162125
163132
  );
162126
- const { data: data2 } = await generateAmApi({ resource: getApiConfig20(), state: state2 }).get(
163133
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig23(), state: state2 }).get(
162127
163134
  urlString,
162128
163135
  {
162129
163136
  withCredentials: true
@@ -162141,7 +163148,7 @@ async function getResourceType({
162141
163148
  getCurrentRealmPath(state2),
162142
163149
  resourceTypeUuid
162143
163150
  );
162144
- const { data: data2 } = await generateAmApi({ resource: getApiConfig20(), state: state2 }).get(
163151
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig23(), state: state2 }).get(
162145
163152
  urlString,
162146
163153
  {
162147
163154
  withCredentials: true
@@ -162159,7 +163166,7 @@ async function getResourceTypeByName({
162159
163166
  getCurrentRealmPath(state2),
162160
163167
  resourceTypeName
162161
163168
  );
162162
- const { data: data2 } = await generateAmApi({ resource: getApiConfig20(), state: state2 }).get(
163169
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig23(), state: state2 }).get(
162163
163170
  urlString,
162164
163171
  {
162165
163172
  withCredentials: true
@@ -162177,7 +163184,7 @@ async function createResourceType({
162177
163184
  getCurrentRealmPath(state2)
162178
163185
  );
162179
163186
  const { data: data2 } = await generateAmApi({
162180
- resource: getApiConfig20(),
163187
+ resource: getApiConfig23(),
162181
163188
  state: state2
162182
163189
  }).post(urlString, resourceTypeData, {
162183
163190
  withCredentials: true
@@ -162198,7 +163205,7 @@ async function putResourceType({
162198
163205
  );
162199
163206
  const requestOverride = failIfExists ? { headers: { "If-None-Match": "*" } } : {};
162200
163207
  const { data: data2 } = await generateAmApi({
162201
- resource: getApiConfig20(),
163208
+ resource: getApiConfig23(),
162202
163209
  requestOverride,
162203
163210
  state: state2
162204
163211
  }).put(urlString, resourceTypeData, {
@@ -162217,7 +163224,7 @@ async function deleteResourceType({
162217
163224
  resourceTypeUuid
162218
163225
  );
162219
163226
  const { data: data2 } = await generateAmApi({
162220
- resource: getApiConfig20(),
163227
+ resource: getApiConfig23(),
162221
163228
  state: state2
162222
163229
  }).delete(urlString, {
162223
163230
  withCredentials: true
@@ -162227,10 +163234,10 @@ async function deleteResourceType({
162227
163234
  var queryAllPolicySetURLTemplate = "%s/json%s/applications?_sortKeys=name&_queryFilter=name+eq+%22%5E(%3F!sunAMDelegationService%24).*%22";
162228
163235
  var policySetURLTemplate = "%s/json%s/applications/%s";
162229
163236
  var createApplicationURLTemplate = "%s/json%s/applications/?_action=create";
162230
- var apiVersion22 = "protocol=1.0,resource=2.1";
162231
- var getApiConfig21 = () => {
163237
+ var apiVersion25 = "protocol=1.0,resource=2.1";
163238
+ var getApiConfig24 = () => {
162232
163239
  return {
162233
- apiVersion: apiVersion22
163240
+ apiVersion: apiVersion25
162234
163241
  };
162235
163242
  };
162236
163243
  async function getPolicySets({ state: state2 }) {
@@ -162239,7 +163246,7 @@ async function getPolicySets({ state: state2 }) {
162239
163246
  state2.getHost(),
162240
163247
  getCurrentRealmPath(state2)
162241
163248
  );
162242
- const { data: data2 } = await generateAmApi({ resource: getApiConfig21(), state: state2 }).get(
163249
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig24(), state: state2 }).get(
162243
163250
  urlString,
162244
163251
  {
162245
163252
  withCredentials: true
@@ -162257,7 +163264,7 @@ async function getPolicySet({
162257
163264
  getCurrentRealmPath(state2),
162258
163265
  policySetName
162259
163266
  );
162260
- const { data: data2 } = await generateAmApi({ resource: getApiConfig21(), state: state2 }).get(
163267
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig24(), state: state2 }).get(
162261
163268
  urlString,
162262
163269
  {
162263
163270
  withCredentials: true
@@ -162276,7 +163283,7 @@ async function createPolicySet({
162276
163283
  getCurrentRealmPath(state2)
162277
163284
  );
162278
163285
  const { data: data2 } = await generateAmApi({
162279
- resource: getApiConfig21(),
163286
+ resource: getApiConfig24(),
162280
163287
  state: state2
162281
163288
  }).post(urlString, postData, {
162282
163289
  withCredentials: true
@@ -162296,7 +163303,7 @@ async function updatePolicySet({
162296
163303
  getCurrentRealmPath(state2),
162297
163304
  appData.name
162298
163305
  );
162299
- const { data: data2 } = await generateAmApi({ resource: getApiConfig21(), state: state2 }).put(
163306
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig24(), state: state2 }).put(
162300
163307
  urlString,
162301
163308
  appData,
162302
163309
  {
@@ -162316,7 +163323,7 @@ async function deletePolicySet({
162316
163323
  policySetName
162317
163324
  );
162318
163325
  const { data: data2 } = await generateAmApi({
162319
- resource: getApiConfig21(),
163326
+ resource: getApiConfig24(),
162320
163327
  state: state2
162321
163328
  }).delete(urlString, {
162322
163329
  withCredentials: true
@@ -164148,10 +165155,10 @@ var serviceURLTemplate = "%s/json%s/%s/services/%s";
164148
165155
  var serviceURLNextDescendentsTemplate = "%s/json%s/%s/services/%s?_action=nextdescendents";
164149
165156
  var serviceURLNextDescendentTemplate = "%s/json%s/%s/services/%s/%s/%s";
164150
165157
  var serviceListURLTemplate = "%s/json%s/%s/services?_action=nextdescendents";
164151
- var apiVersion23 = "protocol=2.0,resource=1.0";
164152
- function getApiConfig22() {
165158
+ var apiVersion26 = "protocol=2.0,resource=1.0";
165159
+ function getApiConfig25() {
164153
165160
  return {
164154
- apiVersion: apiVersion23
165161
+ apiVersion: apiVersion26
164155
165162
  };
164156
165163
  }
164157
165164
  async function getListOfServices({
@@ -164165,7 +165172,7 @@ async function getListOfServices({
164165
165172
  getConfigPath(globalConfig)
164166
165173
  );
164167
165174
  const { data: data2 } = await generateAmApi({
164168
- resource: getApiConfig22(),
165175
+ resource: getApiConfig25(),
164169
165176
  state: state2
164170
165177
  }).post(urlString, void 0, {
164171
165178
  withCredentials: true
@@ -164185,7 +165192,7 @@ async function getService({
164185
165192
  serviceId
164186
165193
  );
164187
165194
  const { data: data2 } = await generateAmApi({
164188
- resource: getApiConfig22(),
165195
+ resource: getApiConfig25(),
164189
165196
  state: state2
164190
165197
  }).get(urlString, {
164191
165198
  withCredentials: true
@@ -164205,7 +165212,7 @@ async function getServiceDescendents({
164205
165212
  serviceId
164206
165213
  );
164207
165214
  const { data: data2 } = await generateAmApi({
164208
- resource: getApiConfig22(),
165215
+ resource: getApiConfig25(),
164209
165216
  state: state2
164210
165217
  }).post(urlString, void 0, {
164211
165218
  withCredentials: true
@@ -164225,7 +165232,7 @@ async function putService({
164225
165232
  getConfigPath(globalConfig),
164226
165233
  serviceId
164227
165234
  );
164228
- const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).put(
165235
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig25(), state: state2 }).put(
164229
165236
  urlString,
164230
165237
  serviceData,
164231
165238
  {
@@ -164251,7 +165258,7 @@ async function putServiceNextDescendent({
164251
165258
  serviceType,
164252
165259
  serviceNextDescendentId
164253
165260
  );
164254
- const { data: data2 } = await generateAmApi({ resource: getApiConfig22(), state: state2 }).put(
165261
+ const { data: data2 } = await generateAmApi({ resource: getApiConfig25(), state: state2 }).put(
164255
165262
  urlString,
164256
165263
  serviceNextDescendentData,
164257
165264
  {
@@ -164273,7 +165280,7 @@ async function deleteService({
164273
165280
  serviceId
164274
165281
  );
164275
165282
  const { data: data2 } = await generateAmApi({
164276
- resource: getApiConfig22(),
165283
+ resource: getApiConfig25(),
164277
165284
  state: state2
164278
165285
  }).delete(urlString, {
164279
165286
  withCredentials: true
@@ -164297,7 +165304,7 @@ async function deleteServiceNextDescendent({
164297
165304
  serviceNextDescendentId
164298
165305
  );
164299
165306
  const { data: data2 } = await generateAmApi({
164300
- resource: getApiConfig22(),
165307
+ resource: getApiConfig25(),
164301
165308
  state: state2
164302
165309
  }).delete(urlString, {
164303
165310
  withCredentials: true
@@ -164475,6 +165482,7 @@ async function putFullService({
164475
165482
  message: `ServiceOps.putFullService: start, serviceId=${serviceId}, globalConfig=${globalConfig}`,
164476
165483
  state: state2
164477
165484
  });
165485
+ const fullServiceDataCopy = cloneDeep(fullServiceData);
164478
165486
  const nextDescendents = fullServiceData.nextDescendents;
164479
165487
  delete fullServiceData.nextDescendents;
164480
165488
  delete fullServiceData._rev;
@@ -164493,7 +165501,10 @@ async function putFullService({
164493
165501
  }
164494
165502
  }
164495
165503
  delete fullServiceData.location;
164496
- const result2 = await putService({
165504
+ if (serviceId === "email" && fullServiceData.transportType) {
165505
+ delete fullServiceData.transportType;
165506
+ }
165507
+ let result2 = await putService({
164497
165508
  serviceId,
164498
165509
  serviceData: fullServiceData,
164499
165510
  globalConfig,
@@ -164533,6 +165544,15 @@ async function putFullService({
164533
165544
  return result22;
164534
165545
  })
164535
165546
  );
165547
+ if (serviceId === "email" && fullServiceDataCopy.transportType) {
165548
+ fullServiceData.transportType = fullServiceDataCopy.transportType;
165549
+ result2 = await putService({
165550
+ serviceId,
165551
+ serviceData: fullServiceData,
165552
+ globalConfig,
165553
+ state: state2
165554
+ });
165555
+ }
164536
165556
  result2.nextDescendents = nextDescendentResult;
164537
165557
  debugMessage({
164538
165558
  message: `ServiceOps.putFullService: end (w/ descendents)`,
@@ -165318,10 +166338,10 @@ async function importFullConfiguration({
165318
166338
  }
165319
166339
  }
165320
166340
  var envInfoURLTemplate2 = "%s/environment/info";
165321
- var apiVersion24 = "protocol=1.0,resource=1.0";
165322
- var getApiConfig23 = () => ({
166341
+ var apiVersion27 = "protocol=1.0,resource=1.0";
166342
+ var getApiConfig26 = () => ({
165323
166343
  path: `/environment/info`,
165324
- apiVersion: apiVersion24
166344
+ apiVersion: apiVersion27
165325
166345
  });
165326
166346
  async function getEnvInfo({
165327
166347
  state: state2
@@ -165331,7 +166351,7 @@ async function getEnvInfo({
165331
166351
  getHostBaseUrl(state2.getHost())
165332
166352
  );
165333
166353
  const { data: data2 } = await generateAmApi({
165334
- resource: getApiConfig23(),
166354
+ resource: getApiConfig26(),
165335
166355
  requestOverride: {},
165336
166356
  state: state2
165337
166357
  }).get(urlString, {
@@ -165396,8 +166416,8 @@ async function getInfo(state2) {
165396
166416
  throw new FrodoError(`Error getting info`, error2);
165397
166417
  }
165398
166418
  }
165399
- var apiVersion25 = "resource=1.0";
165400
- var apiConfig = { headers: { "Accept-API-Version": apiVersion25 } };
166419
+ var apiVersion28 = "resource=1.0";
166420
+ var apiConfig = { headers: { "Accept-API-Version": apiVersion28 } };
165401
166421
  var reconUrlTemplate = "%s/openidm/recon";
165402
166422
  var reconByIdUrlTemplate = "%s/openidm/recon/%s";
165403
166423
  var startReconUrlTemplate = "%s/openidm/recon?_action=recon&mapping=%s";
@@ -165572,6 +166592,11 @@ var FrodoLib = (config = {}) => {
165572
166592
  },
165573
166593
  cloud: {
165574
166594
  adminFed: AdminFederationOps_default(state2),
166595
+ env: {
166596
+ cert: EnvCertificatesOps_default(state2),
166597
+ csr: EnvCSRsOps_default(state2)
166598
+ },
166599
+ esvCount: EsvCountOps_default(state2),
165575
166600
  feature: FeatureOps_default(state2),
165576
166601
  log: LogOps_default(state2),
165577
166602
  secret: SecretsOps_default(state2),
@@ -186512,7 +187537,7 @@ var compareVersions = (v12, v2) => {
186512
187537
  // package.json
186513
187538
  var package_default2 = {
186514
187539
  name: "@rockcarver/frodo-cli",
186515
- version: "2.0.1-0",
187540
+ version: "2.0.2",
186516
187541
  type: "module",
186517
187542
  description: "A command line interface to manage ForgeRock Identity Cloud tenants, ForgeOps deployments, and classic deployments.",
186518
187543
  keywords: [
@@ -186546,8 +187571,8 @@ var package_default2 = {
186546
187571
  scripts: {
186547
187572
  test: "npm run test:only",
186548
187573
  "test:only": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --silent",
186549
- "test:debug": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --verbose=true --silent=false --json --outputFile=./testResults.json",
186550
- "test:update": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --verbose=true --silent=false --updateSnapshot",
187574
+ "test:debug": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --silent=false --json --outputFile=./testResults.json",
187575
+ "test:update": "NODE_OPTIONS='--no-warnings --experimental-vm-modules' npx jest --silent=false --updateSnapshot",
186551
187576
  lint: "eslint --ext .ts --ignore-path .gitignore .",
186552
187577
  "lint:fix": "eslint --fix --ext .ts --ignore-path .gitignore .",
186553
187578
  build: "npm run build:binary",
@@ -186626,7 +187651,7 @@ var package_default2 = {
186626
187651
  ]
186627
187652
  },
186628
187653
  devDependencies: {
186629
- "@rockcarver/frodo-lib": "2.0.1-1",
187654
+ "@rockcarver/frodo-lib": "2.0.2",
186630
187655
  "@types/colors": "^1.2.1",
186631
187656
  "@types/fs-extra": "^11.0.1",
186632
187657
  "@types/jest": "^29.2.3",