@kubb/core 2.12.3 → 2.12.4

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.
Files changed (52) hide show
  1. package/dist/{chunk-IP732R22.js → chunk-2Y4CDLGB.js} +2 -2
  2. package/dist/{chunk-NKAOH4VT.js → chunk-34EEUDMU.js} +3 -3
  3. package/dist/{chunk-5I2ALFAS.js → chunk-4ZVQSQBZ.js} +2 -2
  4. package/dist/{chunk-F4TSJHGA.cjs → chunk-B74BR46M.cjs} +5 -5
  5. package/dist/chunk-BOZP7LG7.cjs +19 -0
  6. package/dist/{chunk-ZS3YTJ2L.cjs → chunk-CIEHBU2S.cjs} +3 -3
  7. package/dist/{chunk-EAM5RXNI.js → chunk-FBJJW6ME.js} +3 -3
  8. package/dist/{chunk-EAM5RXNI.js.map → chunk-FBJJW6ME.js.map} +1 -1
  9. package/dist/{chunk-FOWWV3PP.js → chunk-HCCIKTCT.js} +2 -2
  10. package/dist/{chunk-LHNV7GQH.cjs → chunk-HKRFUPZL.cjs} +7 -7
  11. package/dist/{chunk-YYCT7ZB7.cjs → chunk-I6E2RETY.cjs} +5 -5
  12. package/dist/{chunk-L2OHRGUS.js → chunk-KHDN54K7.js} +2 -2
  13. package/dist/{chunk-VPKB6WED.js → chunk-O7B2DCFM.js} +4 -4
  14. package/dist/{chunk-KXDRK6DY.js → chunk-P5JZAH44.js} +2 -2
  15. package/dist/{chunk-OVLOS3IJ.cjs → chunk-S7MSMKRT.cjs} +88 -88
  16. package/dist/{chunk-OPTGFWPQ.cjs → chunk-TDN4N77Q.cjs} +25 -25
  17. package/dist/{chunk-KPXUT3DG.cjs → chunk-VEW4PGF3.cjs} +5 -5
  18. package/dist/{chunk-KPXUT3DG.cjs.map → chunk-VEW4PGF3.cjs.map} +1 -1
  19. package/dist/{chunk-TTAE4JRW.cjs → chunk-WBPIU73P.cjs} +14 -14
  20. package/dist/{chunk-XHJKKPCO.js → chunk-WUHRZLUP.js} +3 -3
  21. package/dist/{chunk-4TB6NGOC.cjs → chunk-Y4IJPEUV.cjs} +3 -3
  22. package/dist/{chunk-4TB6NGOC.cjs.map → chunk-Y4IJPEUV.cjs.map} +1 -1
  23. package/dist/fs.cjs +7 -7
  24. package/dist/fs.js +4 -4
  25. package/dist/index.cjs +296 -296
  26. package/dist/index.js +9 -9
  27. package/dist/logger.cjs +5 -5
  28. package/dist/logger.js +3 -3
  29. package/dist/mocks.cjs +7 -7
  30. package/dist/mocks.js +3 -3
  31. package/dist/transformers.cjs +6 -6
  32. package/dist/transformers.js +4 -4
  33. package/dist/utils.cjs +26 -26
  34. package/dist/utils.js +4 -4
  35. package/package.json +6 -6
  36. package/dist/chunk-IBUMXAET.cjs +0 -19
  37. /package/dist/{chunk-IP732R22.js.map → chunk-2Y4CDLGB.js.map} +0 -0
  38. /package/dist/{chunk-NKAOH4VT.js.map → chunk-34EEUDMU.js.map} +0 -0
  39. /package/dist/{chunk-5I2ALFAS.js.map → chunk-4ZVQSQBZ.js.map} +0 -0
  40. /package/dist/{chunk-F4TSJHGA.cjs.map → chunk-B74BR46M.cjs.map} +0 -0
  41. /package/dist/{chunk-IBUMXAET.cjs.map → chunk-BOZP7LG7.cjs.map} +0 -0
  42. /package/dist/{chunk-ZS3YTJ2L.cjs.map → chunk-CIEHBU2S.cjs.map} +0 -0
  43. /package/dist/{chunk-FOWWV3PP.js.map → chunk-HCCIKTCT.js.map} +0 -0
  44. /package/dist/{chunk-LHNV7GQH.cjs.map → chunk-HKRFUPZL.cjs.map} +0 -0
  45. /package/dist/{chunk-YYCT7ZB7.cjs.map → chunk-I6E2RETY.cjs.map} +0 -0
  46. /package/dist/{chunk-L2OHRGUS.js.map → chunk-KHDN54K7.js.map} +0 -0
  47. /package/dist/{chunk-VPKB6WED.js.map → chunk-O7B2DCFM.js.map} +0 -0
  48. /package/dist/{chunk-KXDRK6DY.js.map → chunk-P5JZAH44.js.map} +0 -0
  49. /package/dist/{chunk-OVLOS3IJ.cjs.map → chunk-S7MSMKRT.cjs.map} +0 -0
  50. /package/dist/{chunk-OPTGFWPQ.cjs.map → chunk-TDN4N77Q.cjs.map} +0 -0
  51. /package/dist/{chunk-TTAE4JRW.cjs.map → chunk-WBPIU73P.cjs.map} +0 -0
  52. /package/dist/{chunk-XHJKKPCO.js.map → chunk-WUHRZLUP.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -3,34 +3,34 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkOPTGFWPQcjs = require('./chunk-OPTGFWPQ.cjs');
6
+ var _chunkTDN4N77Qcjs = require('./chunk-TDN4N77Q.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkLHNV7GQHcjs = require('./chunk-LHNV7GQH.cjs');
10
+ var _chunkHKRFUPZLcjs = require('./chunk-HKRFUPZL.cjs');
11
11
 
12
12
 
13
- var _chunkZS3YTJ2Lcjs = require('./chunk-ZS3YTJ2L.cjs');
13
+ var _chunkCIEHBU2Scjs = require('./chunk-CIEHBU2S.cjs');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
19
 
20
- var _chunkTTAE4JRWcjs = require('./chunk-TTAE4JRW.cjs');
20
+ var _chunkWBPIU73Pcjs = require('./chunk-WBPIU73P.cjs');
21
21
 
22
22
 
23
- var _chunkIBUMXAETcjs = require('./chunk-IBUMXAET.cjs');
23
+ var _chunkBOZP7LG7cjs = require('./chunk-BOZP7LG7.cjs');
24
24
 
25
25
 
26
- var _chunkYYCT7ZB7cjs = require('./chunk-YYCT7ZB7.cjs');
27
- require('./chunk-KPXUT3DG.cjs');
26
+ var _chunkI6E2RETYcjs = require('./chunk-I6E2RETY.cjs');
27
+ require('./chunk-VEW4PGF3.cjs');
28
28
 
29
29
 
30
30
 
31
31
 
32
- var _chunkF4TSJHGAcjs = require('./chunk-F4TSJHGA.cjs');
33
- require('./chunk-OVLOS3IJ.cjs');
32
+ var _chunkB74BR46Mcjs = require('./chunk-B74BR46M.cjs');
33
+ require('./chunk-S7MSMKRT.cjs');
34
34
 
35
35
 
36
36
 
@@ -41,13 +41,13 @@ require('./chunk-OVLOS3IJ.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunk4TB6NGOCcjs = require('./chunk-4TB6NGOC.cjs');
44
+ var _chunkY4IJPEUVcjs = require('./chunk-Y4IJPEUV.cjs');
45
45
 
46
46
  // ../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js
47
- var require_lodash = _chunk4TB6NGOCcjs.__commonJS.call(void 0, {
47
+ var require_lodash = _chunkY4IJPEUVcjs.__commonJS.call(void 0, {
48
48
  "../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js"(exports, module) {
49
49
  "use strict";
50
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
50
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
51
51
  var LARGE_ARRAY_SIZE = 200;
52
52
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
53
53
  var COMPARE_PARTIAL_FLAG = 1;
@@ -747,10 +747,10 @@ var require_lodash = _chunk4TB6NGOCcjs.__commonJS.call(void 0, {
747
747
  });
748
748
 
749
749
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
750
- var require_eventemitter3 = _chunk4TB6NGOCcjs.__commonJS.call(void 0, {
750
+ var require_eventemitter3 = _chunkY4IJPEUVcjs.__commonJS.call(void 0, {
751
751
  "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
752
752
  "use strict";
753
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
753
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
754
754
  var has = Object.prototype.hasOwnProperty;
755
755
  var prefix = "~";
756
756
  function Events() {
@@ -930,28 +930,28 @@ var require_eventemitter3 = _chunk4TB6NGOCcjs.__commonJS.call(void 0, {
930
930
  });
931
931
 
932
932
  // src/index.ts
933
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
933
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
934
934
 
935
935
  // src/build.ts
936
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
936
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
937
937
 
938
938
  // src/FileManager.ts
939
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
940
- var import_lodash = _chunk4TB6NGOCcjs.__toESM.call(void 0, require_lodash(), 1);
939
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
940
+ var import_lodash = _chunkY4IJPEUVcjs.__toESM.call(void 0, require_lodash(), 1);
941
941
  var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
942
942
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
943
943
  var _parser = require('@kubb/parser');
944
944
  var _factory = require('@kubb/parser/factory'); var factory = _interopRequireWildcard(_factory);
945
945
 
946
946
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.js
947
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
947
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
948
948
 
949
949
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
950
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
951
- var import_index = _chunk4TB6NGOCcjs.__toESM.call(void 0, require_eventemitter3(), 1);
950
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
951
+ var import_index = _chunkY4IJPEUVcjs.__toESM.call(void 0, require_eventemitter3(), 1);
952
952
 
953
953
  // ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
954
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
954
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
955
955
  var TimeoutError = class extends Error {
956
956
  constructor(message) {
957
957
  super(message);
@@ -1036,10 +1036,10 @@ function pTimeout(promise, options) {
1036
1036
  }
1037
1037
 
1038
1038
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/priority-queue.js
1039
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1039
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1040
1040
 
1041
1041
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/lower-bound.js
1042
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1042
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1043
1043
  function lowerBound(array, value, comparator) {
1044
1044
  let first = 0;
1045
1045
  let count = array.length;
@@ -1060,7 +1060,7 @@ function lowerBound(array, value, comparator) {
1060
1060
  var _queue;
1061
1061
  var PriorityQueue = class {
1062
1062
  constructor() {
1063
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _queue, []);
1063
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _queue, []);
1064
1064
  }
1065
1065
  enqueue(run, options) {
1066
1066
  options = {
@@ -1071,22 +1071,22 @@ var PriorityQueue = class {
1071
1071
  priority: options.priority,
1072
1072
  run
1073
1073
  };
1074
- if (this.size && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue)[this.size - 1].priority >= options.priority) {
1075
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue).push(element);
1074
+ if (this.size && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue)[this.size - 1].priority >= options.priority) {
1075
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue).push(element);
1076
1076
  return;
1077
1077
  }
1078
- const index = lowerBound(_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue), element, (a, b) => b.priority - a.priority);
1079
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue).splice(index, 0, element);
1078
+ const index = lowerBound(_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue), element, (a, b) => b.priority - a.priority);
1079
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue).splice(index, 0, element);
1080
1080
  }
1081
1081
  dequeue() {
1082
- const item = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue).shift();
1082
+ const item = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue).shift();
1083
1083
  return _optionalChain([item, 'optionalAccess', _2 => _2.run]);
1084
1084
  }
1085
1085
  filter(options) {
1086
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1086
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1087
1087
  }
1088
1088
  get size() {
1089
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue).length;
1089
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue).length;
1090
1090
  }
1091
1091
  };
1092
1092
  _queue = new WeakMap();
@@ -1097,41 +1097,41 @@ var PQueue = class extends import_index.default {
1097
1097
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
1098
1098
  constructor(options) {
1099
1099
  super();
1100
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _doesIntervalAllowAnother);
1101
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _doesConcurrentAllowAnother);
1102
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _next);
1103
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _onResumeInterval);
1104
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _isIntervalPaused);
1105
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _tryToStartAnother);
1106
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _initializeIntervalIfNeeded);
1107
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _onInterval);
1100
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _doesIntervalAllowAnother);
1101
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _doesConcurrentAllowAnother);
1102
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _next);
1103
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _onResumeInterval);
1104
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _isIntervalPaused);
1105
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _tryToStartAnother);
1106
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _initializeIntervalIfNeeded);
1107
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _onInterval);
1108
1108
  /**
1109
1109
  Executes all queued functions until it reaches the limit.
1110
1110
  */
1111
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _processQueue);
1112
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _throwOnAbort);
1113
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _onEvent);
1114
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _carryoverConcurrencyCount, void 0);
1115
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _isIntervalIgnored, void 0);
1116
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _intervalCount, 0);
1117
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _intervalCap, void 0);
1118
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _interval, void 0);
1119
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _intervalEnd, 0);
1120
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _intervalId, void 0);
1121
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _timeoutId, void 0);
1122
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _queue2, void 0);
1123
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _queueClass, void 0);
1124
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _pending, 0);
1111
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _processQueue);
1112
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _throwOnAbort);
1113
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _onEvent);
1114
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _carryoverConcurrencyCount, void 0);
1115
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _isIntervalIgnored, void 0);
1116
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _intervalCount, 0);
1117
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _intervalCap, void 0);
1118
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _interval, void 0);
1119
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _intervalEnd, 0);
1120
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _intervalId, void 0);
1121
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _timeoutId, void 0);
1122
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _queue2, void 0);
1123
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _queueClass, void 0);
1124
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _pending, 0);
1125
1125
  // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
1126
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _concurrency, void 0);
1127
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _isPaused, void 0);
1128
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _throwOnTimeout, void 0);
1126
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _concurrency, void 0);
1127
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _isPaused, void 0);
1128
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _throwOnTimeout, void 0);
1129
1129
  /**
1130
1130
  Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
1131
1131
 
1132
1132
  Applies to each future operation.
1133
1133
  */
1134
- _chunk4TB6NGOCcjs.__publicField.call(void 0, this, "timeout");
1134
+ _chunkY4IJPEUVcjs.__publicField.call(void 0, this, "timeout");
1135
1135
  options = {
1136
1136
  carryoverConcurrencyCount: false,
1137
1137
  intervalCap: Number.POSITIVE_INFINITY,
@@ -1147,37 +1147,37 @@ var PQueue = class extends import_index.default {
1147
1147
  if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
1148
1148
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _6 => _6.interval, 'optionalAccess', _7 => _7.toString, 'call', _8 => _8()]), () => ( ""))}\` (${typeof options.interval})`);
1149
1149
  }
1150
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1151
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1152
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalCap, options.intervalCap);
1153
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _interval, options.interval);
1154
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _queue2, new options.queueClass());
1155
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _queueClass, options.queueClass);
1150
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1151
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1152
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalCap, options.intervalCap);
1153
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _interval, options.interval);
1154
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _queue2, new options.queueClass());
1155
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _queueClass, options.queueClass);
1156
1156
  this.concurrency = options.concurrency;
1157
1157
  this.timeout = options.timeout;
1158
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _throwOnTimeout, options.throwOnTimeout === true);
1159
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _isPaused, options.autoStart === false);
1158
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _throwOnTimeout, options.throwOnTimeout === true);
1159
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _isPaused, options.autoStart === false);
1160
1160
  }
1161
1161
  get concurrency() {
1162
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _concurrency);
1162
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _concurrency);
1163
1163
  }
1164
1164
  set concurrency(newConcurrency) {
1165
1165
  if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
1166
1166
  throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
1167
1167
  }
1168
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _concurrency, newConcurrency);
1169
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1168
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _concurrency, newConcurrency);
1169
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1170
1170
  }
1171
1171
  async add(function_, options = {}) {
1172
1172
  options = {
1173
1173
  timeout: this.timeout,
1174
- throwOnTimeout: _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _throwOnTimeout),
1174
+ throwOnTimeout: _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _throwOnTimeout),
1175
1175
  ...options
1176
1176
  };
1177
1177
  return new Promise((resolve2, reject) => {
1178
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).enqueue(async () => {
1179
- _chunk4TB6NGOCcjs.__privateWrapper.call(void 0, this, _pending)._++;
1180
- _chunk4TB6NGOCcjs.__privateWrapper.call(void 0, this, _intervalCount)._++;
1178
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).enqueue(async () => {
1179
+ _chunkY4IJPEUVcjs.__privateWrapper.call(void 0, this, _pending)._++;
1180
+ _chunkY4IJPEUVcjs.__privateWrapper.call(void 0, this, _intervalCount)._++;
1181
1181
  try {
1182
1182
  _optionalChain([options, 'access', _9 => _9.signal, 'optionalAccess', _10 => _10.throwIfAborted, 'call', _11 => _11()]);
1183
1183
  let operation = function_({ signal: options.signal });
@@ -1185,7 +1185,7 @@ var PQueue = class extends import_index.default {
1185
1185
  operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
1186
1186
  }
1187
1187
  if (options.signal) {
1188
- operation = Promise.race([operation, _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1188
+ operation = Promise.race([operation, _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1189
1189
  }
1190
1190
  const result = await operation;
1191
1191
  resolve2(result);
@@ -1198,11 +1198,11 @@ var PQueue = class extends import_index.default {
1198
1198
  reject(error);
1199
1199
  this.emit("error", error);
1200
1200
  } finally {
1201
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _next, next_fn).call(this);
1201
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _next, next_fn).call(this);
1202
1202
  }
1203
1203
  }, options);
1204
1204
  this.emit("add");
1205
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1205
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1206
1206
  });
1207
1207
  }
1208
1208
  async addAll(functions, options) {
@@ -1212,24 +1212,24 @@ var PQueue = class extends import_index.default {
1212
1212
  Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
1213
1213
  */
1214
1214
  start() {
1215
- if (!_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isPaused)) {
1215
+ if (!_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isPaused)) {
1216
1216
  return this;
1217
1217
  }
1218
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _isPaused, false);
1219
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1218
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _isPaused, false);
1219
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1220
1220
  return this;
1221
1221
  }
1222
1222
  /**
1223
1223
  Put queue execution on hold.
1224
1224
  */
1225
1225
  pause() {
1226
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _isPaused, true);
1226
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _isPaused, true);
1227
1227
  }
1228
1228
  /**
1229
1229
  Clear the queue.
1230
1230
  */
1231
1231
  clear() {
1232
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _queue2, new (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queueClass))());
1232
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _queue2, new (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queueClass))());
1233
1233
  }
1234
1234
  /**
1235
1235
  Can be called multiple times. Useful if you for example add additional items at a later time.
@@ -1237,10 +1237,10 @@ var PQueue = class extends import_index.default {
1237
1237
  @returns A promise that settles when the queue becomes empty.
1238
1238
  */
1239
1239
  async onEmpty() {
1240
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1240
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1241
1241
  return;
1242
1242
  }
1243
- await _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "empty");
1243
+ await _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "empty");
1244
1244
  }
1245
1245
  /**
1246
1246
  @returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
@@ -1250,10 +1250,10 @@ var PQueue = class extends import_index.default {
1250
1250
  Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.
1251
1251
  */
1252
1252
  async onSizeLessThan(limit) {
1253
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size < limit) {
1253
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size < limit) {
1254
1254
  return;
1255
1255
  }
1256
- await _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "next", () => _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size < limit);
1256
+ await _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "next", () => _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size < limit);
1257
1257
  }
1258
1258
  /**
1259
1259
  The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
@@ -1261,16 +1261,16 @@ var PQueue = class extends import_index.default {
1261
1261
  @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
1262
1262
  */
1263
1263
  async onIdle() {
1264
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1264
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1265
1265
  return;
1266
1266
  }
1267
- await _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "idle");
1267
+ await _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "idle");
1268
1268
  }
1269
1269
  /**
1270
1270
  Size of the queue, the number of queued items waiting to run.
1271
1271
  */
1272
1272
  get size() {
1273
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size;
1273
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size;
1274
1274
  }
1275
1275
  /**
1276
1276
  Size of the queue, filtered by the given options.
@@ -1278,19 +1278,19 @@ var PQueue = class extends import_index.default {
1278
1278
  For example, this can be used to find the number of items remaining in the queue with a specific priority level.
1279
1279
  */
1280
1280
  sizeBy(options) {
1281
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).filter(options).length;
1281
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).filter(options).length;
1282
1282
  }
1283
1283
  /**
1284
1284
  Number of running items (no longer in the queue).
1285
1285
  */
1286
1286
  get pending() {
1287
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending);
1287
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending);
1288
1288
  }
1289
1289
  /**
1290
1290
  Whether the queue is currently paused.
1291
1291
  */
1292
1292
  get isPaused() {
1293
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isPaused);
1293
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isPaused);
1294
1294
  }
1295
1295
  };
1296
1296
  _carryoverConcurrencyCount = new WeakMap();
@@ -1309,35 +1309,35 @@ _isPaused = new WeakMap();
1309
1309
  _throwOnTimeout = new WeakMap();
1310
1310
  _doesIntervalAllowAnother = new WeakSet();
1311
1311
  doesIntervalAllowAnother_get = function() {
1312
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalCount) < _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalCap);
1312
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalCount) < _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalCap);
1313
1313
  };
1314
1314
  _doesConcurrentAllowAnother = new WeakSet();
1315
1315
  doesConcurrentAllowAnother_get = function() {
1316
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) < _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _concurrency);
1316
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) < _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _concurrency);
1317
1317
  };
1318
1318
  _next = new WeakSet();
1319
1319
  next_fn = function() {
1320
- _chunk4TB6NGOCcjs.__privateWrapper.call(void 0, this, _pending)._--;
1321
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1320
+ _chunkY4IJPEUVcjs.__privateWrapper.call(void 0, this, _pending)._--;
1321
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1322
1322
  this.emit("next");
1323
1323
  };
1324
1324
  _onResumeInterval = new WeakSet();
1325
1325
  onResumeInterval_fn = function() {
1326
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1327
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1328
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _timeoutId, void 0);
1326
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1327
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1328
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _timeoutId, void 0);
1329
1329
  };
1330
1330
  _isIntervalPaused = new WeakSet();
1331
1331
  isIntervalPaused_get = function() {
1332
1332
  const now = Date.now();
1333
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId) === void 0) {
1334
- const delay = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalEnd) - now;
1333
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId) === void 0) {
1334
+ const delay = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalEnd) - now;
1335
1335
  if (delay < 0) {
1336
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalCount, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) : 0);
1336
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalCount, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) : 0);
1337
1337
  } else {
1338
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _timeoutId) === void 0) {
1339
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _timeoutId, setTimeout(() => {
1340
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onResumeInterval, onResumeInterval_fn).call(this);
1338
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _timeoutId) === void 0) {
1339
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _timeoutId, setTimeout(() => {
1340
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onResumeInterval, onResumeInterval_fn).call(this);
1341
1341
  }, delay));
1342
1342
  }
1343
1343
  return true;
@@ -1347,28 +1347,28 @@ isIntervalPaused_get = function() {
1347
1347
  };
1348
1348
  _tryToStartAnother = new WeakSet();
1349
1349
  tryToStartAnother_fn = function() {
1350
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1351
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId)) {
1352
- clearInterval(_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId));
1350
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1351
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId)) {
1352
+ clearInterval(_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId));
1353
1353
  }
1354
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1354
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1355
1355
  this.emit("empty");
1356
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) === 0) {
1356
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) === 0) {
1357
1357
  this.emit("idle");
1358
1358
  }
1359
1359
  return false;
1360
1360
  }
1361
- if (!_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isPaused)) {
1362
- const canInitializeInterval = !_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isIntervalPaused, isIntervalPaused_get);
1363
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1364
- const job = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue2).dequeue();
1361
+ if (!_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isPaused)) {
1362
+ const canInitializeInterval = !_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isIntervalPaused, isIntervalPaused_get);
1363
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1364
+ const job = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue2).dequeue();
1365
1365
  if (!job) {
1366
1366
  return false;
1367
1367
  }
1368
1368
  this.emit("active");
1369
1369
  job();
1370
1370
  if (canInitializeInterval) {
1371
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1371
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1372
1372
  }
1373
1373
  return true;
1374
1374
  }
@@ -1377,26 +1377,26 @@ tryToStartAnother_fn = function() {
1377
1377
  };
1378
1378
  _initializeIntervalIfNeeded = new WeakSet();
1379
1379
  initializeIntervalIfNeeded_fn = function() {
1380
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId) !== void 0) {
1380
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId) !== void 0) {
1381
1381
  return;
1382
1382
  }
1383
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalId, setInterval(() => {
1384
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1385
- }, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _interval)));
1386
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalEnd, Date.now() + _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _interval));
1383
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalId, setInterval(() => {
1384
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1385
+ }, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _interval)));
1386
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalEnd, Date.now() + _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _interval));
1387
1387
  };
1388
1388
  _onInterval = new WeakSet();
1389
1389
  onInterval_fn = function() {
1390
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalCount) === 0 && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId)) {
1391
- clearInterval(_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _intervalId));
1392
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1390
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalCount) === 0 && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId)) {
1391
+ clearInterval(_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _intervalId));
1392
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1393
1393
  }
1394
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _intervalCount, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _pending) : 0);
1395
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1394
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _intervalCount, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _pending) : 0);
1395
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1396
1396
  };
1397
1397
  _processQueue = new WeakSet();
1398
1398
  processQueue_fn = function() {
1399
- while (_chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1399
+ while (_chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1400
1400
  }
1401
1401
  };
1402
1402
  _throwOnAbort = new WeakSet();
@@ -1422,12 +1422,12 @@ onEvent_fn = async function(event, filter) {
1422
1422
  };
1423
1423
 
1424
1424
  // src/BarrelManager.ts
1425
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1425
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1426
1426
 
1427
1427
 
1428
1428
 
1429
1429
  // src/utils/TreeNode.ts
1430
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1430
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1431
1431
  var _directorytree = require('directory-tree'); var _directorytree2 = _interopRequireDefault(_directorytree);
1432
1432
  var TreeNode = class _TreeNode {
1433
1433
  constructor(data, parent) {
@@ -1530,8 +1530,8 @@ var TreeNode = class _TreeNode {
1530
1530
  var _options;
1531
1531
  var BarrelManager = class {
1532
1532
  constructor(options = {}) {
1533
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _options, void 0);
1534
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _options, options);
1533
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _options, void 0);
1534
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _options, options);
1535
1535
  return this;
1536
1536
  }
1537
1537
  getNamedExport(root, item) {
@@ -1571,7 +1571,7 @@ var BarrelManager = class {
1571
1571
  })]);
1572
1572
  }
1573
1573
  getIndexes(root) {
1574
- const { treeNode = {}, isTypeOnly, extName } = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _options);
1574
+ const { treeNode = {}, isTypeOnly, extName } = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _options);
1575
1575
  const tree = TreeNode.build(root, treeNode);
1576
1576
  if (!tree) {
1577
1577
  return null;
@@ -1583,7 +1583,7 @@ var BarrelManager = class {
1583
1583
  if (treeNode2.children.length > 1) {
1584
1584
  const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
1585
1585
  const exports = treeNode2.children.filter(Boolean).map((file) => {
1586
- const importPath = file.data.type === "split" ? `./${file.data.name}/index` : `./${_chunkOPTGFWPQcjs.trimExtName.call(void 0, file.data.name)}`;
1586
+ const importPath = file.data.type === "split" ? `./${file.data.name}/index` : `./${_chunkTDN4N77Qcjs.trimExtName.call(void 0, file.data.name)}`;
1587
1587
  if (importPath.endsWith("index") && file.data.type === "single") {
1588
1588
  return void 0;
1589
1589
  }
@@ -1602,7 +1602,7 @@ var BarrelManager = class {
1602
1602
  } else if (treeNode2.children.length === 1) {
1603
1603
  const [treeNodeChild] = treeNode2.children;
1604
1604
  const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
1605
- const importPath = treeNodeChild.data.type === "split" ? `./${treeNodeChild.data.name}/index` : `./${_chunkOPTGFWPQcjs.trimExtName.call(void 0, treeNodeChild.data.name)}`;
1605
+ const importPath = treeNodeChild.data.type === "split" ? `./${treeNodeChild.data.name}/index` : `./${_chunkTDN4N77Qcjs.trimExtName.call(void 0, treeNodeChild.data.name)}`;
1606
1606
  const exports = [
1607
1607
  {
1608
1608
  path: extName ? `${importPath}${extName}` : importPath,
@@ -1634,31 +1634,31 @@ var KubbFile;
1634
1634
  var _cache, _task, _queue3, _add, add_fn, _addOrAppend, addOrAppend_fn;
1635
1635
  var _FileManager = class _FileManager {
1636
1636
  constructor({ task = async (file) => file, queue = new PQueue() } = {}) {
1637
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _add);
1638
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _addOrAppend);
1639
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _cache, /* @__PURE__ */ new Map());
1640
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _task, void 0);
1641
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _queue3, void 0);
1642
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _task, task);
1643
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _queue3, queue);
1637
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _add);
1638
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _addOrAppend);
1639
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _cache, /* @__PURE__ */ new Map());
1640
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _task, void 0);
1641
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _queue3, void 0);
1642
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _task, task);
1643
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _queue3, queue);
1644
1644
  return this;
1645
1645
  }
1646
1646
  get files() {
1647
1647
  const files = [];
1648
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).forEach((item) => {
1648
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).forEach((item) => {
1649
1649
  files.push(...item.flat(1));
1650
1650
  });
1651
1651
  return files;
1652
1652
  }
1653
1653
  get isExecuting() {
1654
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue3).size !== 0 && _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue3).pending !== 0;
1654
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue3).size !== 0 && _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue3).pending !== 0;
1655
1655
  }
1656
1656
  async add(...files) {
1657
1657
  const promises = combineFiles(files).map((file) => {
1658
1658
  if (file.override) {
1659
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1659
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1660
1660
  }
1661
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, file);
1661
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, file);
1662
1662
  });
1663
1663
  const resolvedFiles = await Promise.all(promises);
1664
1664
  if (files.length > 1) {
@@ -1672,11 +1672,11 @@ var _FileManager = class _FileManager {
1672
1672
  return void 0;
1673
1673
  }
1674
1674
  const pathToBuildFrom = _path.resolve.call(void 0, root, output.path);
1675
- if (_chunkOPTGFWPQcjs.transformers_default.trimExtName(pathToBuildFrom).endsWith("index")) {
1675
+ if (_chunkTDN4N77Qcjs.transformers_default.trimExtName(pathToBuildFrom).endsWith("index")) {
1676
1676
  logger.emit("warning", "Output has the same fileName as the barrelFiles, please disable barrel generation");
1677
1677
  return;
1678
1678
  }
1679
- const exportPath = output.path.startsWith("./") ? _chunkOPTGFWPQcjs.trimExtName.call(void 0, output.path) : `./${_chunkOPTGFWPQcjs.trimExtName.call(void 0, output.path)}`;
1679
+ const exportPath = output.path.startsWith("./") ? _chunkTDN4N77Qcjs.trimExtName.call(void 0, output.path) : `./${_chunkTDN4N77Qcjs.trimExtName.call(void 0, output.path)}`;
1680
1680
  const mode = _FileManager.getMode(output.path);
1681
1681
  const barrelManager = new BarrelManager({
1682
1682
  extName: output.extName,
@@ -1699,7 +1699,7 @@ var _FileManager = class _FileManager {
1699
1699
  }
1700
1700
  await Promise.all(
1701
1701
  files.map((file) => {
1702
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1702
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1703
1703
  ...file,
1704
1704
  meta: meta ? meta : file.meta
1705
1705
  });
@@ -1726,33 +1726,33 @@ var _FileManager = class _FileManager {
1726
1726
  if (exportType === "barrelNamed" && !output.exportAs && _optionalChain([rootFile, 'access', _32 => _32.exports, 'optionalAccess', _33 => _33[0]])) {
1727
1727
  rootFile.exports = barrelManager.getNamedExport(root, rootFile.exports[0]);
1728
1728
  }
1729
- await _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1729
+ await _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1730
1730
  ...rootFile,
1731
1731
  meta: meta ? meta : rootFile.meta
1732
1732
  });
1733
1733
  }
1734
1734
  getCacheByUUID(UUID) {
1735
1735
  let cache;
1736
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).forEach((files) => {
1736
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).forEach((files) => {
1737
1737
  cache = files.find((item) => item.id === UUID);
1738
1738
  });
1739
1739
  return cache;
1740
1740
  }
1741
1741
  get(path5) {
1742
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).get(path5);
1742
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).get(path5);
1743
1743
  }
1744
1744
  remove(path5) {
1745
1745
  const cacheItem = this.get(path5);
1746
1746
  if (!cacheItem) {
1747
1747
  return;
1748
1748
  }
1749
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).delete(path5);
1749
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).delete(path5);
1750
1750
  }
1751
1751
  async write(...params) {
1752
- return _chunkYYCT7ZB7cjs.write.call(void 0, ...params);
1752
+ return _chunkI6E2RETYcjs.write.call(void 0, ...params);
1753
1753
  }
1754
1754
  async read(...params) {
1755
- return _chunkF4TSJHGAcjs.read.call(void 0, ...params);
1755
+ return _chunkB74BR46Mcjs.read.call(void 0, ...params);
1756
1756
  }
1757
1757
  // statics
1758
1758
  static getSource(file) {
@@ -1782,7 +1782,7 @@ add_fn = async function(file) {
1782
1782
  const controller = new AbortController();
1783
1783
  const resolvedFile = {
1784
1784
  id: _crypto2.default.randomUUID(),
1785
- name: _chunkOPTGFWPQcjs.trimExtName.call(void 0, file.baseName),
1785
+ name: _chunkTDN4N77Qcjs.trimExtName.call(void 0, file.baseName),
1786
1786
  ...file
1787
1787
  };
1788
1788
  if (_optionalChain([resolvedFile, 'access', _34 => _34.exports, 'optionalAccess', _35 => _35.length])) {
@@ -1795,22 +1795,22 @@ add_fn = async function(file) {
1795
1795
  return true;
1796
1796
  });
1797
1797
  }
1798
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1799
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _queue3).add(
1798
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1799
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _queue3).add(
1800
1800
  async () => {
1801
1801
  var _a;
1802
- return (_a = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1802
+ return (_a = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1803
1803
  },
1804
1804
  { signal: controller.signal }
1805
1805
  );
1806
1806
  };
1807
1807
  _addOrAppend = new WeakSet();
1808
1808
  addOrAppend_fn = async function(file) {
1809
- const previousCaches = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).get(file.path);
1809
+ const previousCaches = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).get(file.path);
1810
1810
  const previousCache = previousCaches ? previousCaches.at(previousCaches.length - 1) : void 0;
1811
1811
  if (previousCache) {
1812
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cache).delete(previousCache.path);
1813
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, {
1812
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cache).delete(previousCache.path);
1813
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, {
1814
1814
  ...file,
1815
1815
  source: previousCache.source && file.source ? `${previousCache.source}
1816
1816
  ${file.source}` : "",
@@ -1819,7 +1819,7 @@ ${file.source}` : "",
1819
1819
  env: { ...previousCache.env || {}, ...file.env || {} }
1820
1820
  });
1821
1821
  }
1822
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1822
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1823
1823
  };
1824
1824
  var FileManager = _FileManager;
1825
1825
  function combineFiles(files) {
@@ -1860,11 +1860,11 @@ function getSource(file) {
1860
1860
  const exports = file.exports ? combineExports(file.exports) : [];
1861
1861
  const imports = file.imports && file.source ? combineImports(file.imports, exports, file.source) : [];
1862
1862
  const importNodes = imports.filter((item) => {
1863
- return item.path !== _chunkOPTGFWPQcjs.trimExtName.call(void 0, file.path);
1863
+ return item.path !== _chunkTDN4N77Qcjs.trimExtName.call(void 0, file.path);
1864
1864
  }).map((item) => {
1865
1865
  return factory.createImportDeclaration({
1866
1866
  name: item.name,
1867
- path: item.root ? _chunkF4TSJHGAcjs.getRelativePath.call(void 0, item.root, item.path) : item.path,
1867
+ path: item.root ? _chunkB74BR46Mcjs.getRelativePath.call(void 0, item.root, item.path) : item.path,
1868
1868
  isTypeOnly: item.isTypeOnly
1869
1869
  });
1870
1870
  });
@@ -1880,7 +1880,7 @@ function getSource(file) {
1880
1880
  return _parser.print.call(void 0, [], { source, noEmitHelpers: false });
1881
1881
  }
1882
1882
  function combineExports(exports) {
1883
- const combinedExports = _chunkZS3YTJ2Lcjs.orderBy.call(void 0, exports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
1883
+ const combinedExports = _chunkCIEHBU2Scjs.orderBy.call(void 0, exports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
1884
1884
  (prev, curr) => {
1885
1885
  const name = curr.name;
1886
1886
  const prevByPath = prev.findLast((imp) => imp.path === curr.path);
@@ -1911,10 +1911,10 @@ function combineExports(exports) {
1911
1911
  },
1912
1912
  []
1913
1913
  );
1914
- return _chunkZS3YTJ2Lcjs.orderBy.call(void 0, combinedExports, [(v) => !v.isTypeOnly, (v) => v.asAlias], ["desc", "desc"]);
1914
+ return _chunkCIEHBU2Scjs.orderBy.call(void 0, combinedExports, [(v) => !v.isTypeOnly, (v) => v.asAlias], ["desc", "desc"]);
1915
1915
  }
1916
1916
  function combineImports(imports, exports, source) {
1917
- const combinedImports = _chunkZS3YTJ2Lcjs.orderBy.call(void 0, imports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
1917
+ const combinedImports = _chunkCIEHBU2Scjs.orderBy.call(void 0, imports, [(v) => !v.isTypeOnly], ["asc"]).reduce(
1918
1918
  (prev, curr) => {
1919
1919
  let name = Array.isArray(curr.name) ? [...new Set(curr.name)] : curr.name;
1920
1920
  const hasImportInSource = (importName) => {
@@ -1956,7 +1956,7 @@ function combineImports(imports, exports, source) {
1956
1956
  },
1957
1957
  []
1958
1958
  );
1959
- return _chunkZS3YTJ2Lcjs.orderBy.call(void 0, combinedImports, [(v) => !v.isTypeOnly], ["desc"]);
1959
+ return _chunkCIEHBU2Scjs.orderBy.call(void 0, combinedImports, [(v) => !v.isTypeOnly], ["desc"]);
1960
1960
  }
1961
1961
  function getEnvSource(source, env) {
1962
1962
  if (!env) {
@@ -1973,13 +1973,13 @@ function getEnvSource(source, env) {
1973
1973
  throw new TypeError(`Environment should be in upperCase for ${key}`);
1974
1974
  }
1975
1975
  if (typeof replaceBy === "string") {
1976
- prev = _chunkOPTGFWPQcjs.searchAndReplace.call(void 0, {
1976
+ prev = _chunkTDN4N77Qcjs.searchAndReplace.call(void 0, {
1977
1977
  text: prev.replaceAll(`process.env.${key}`, replaceBy),
1978
1978
  replaceBy,
1979
1979
  prefix: "process.env",
1980
1980
  key
1981
1981
  });
1982
- prev = _chunkOPTGFWPQcjs.searchAndReplace.call(void 0, {
1982
+ prev = _chunkTDN4N77Qcjs.searchAndReplace.call(void 0, {
1983
1983
  text: prev.replaceAll(/(declare const).*\n/gi, ""),
1984
1984
  replaceBy,
1985
1985
  key
@@ -1990,13 +1990,13 @@ function getEnvSource(source, env) {
1990
1990
  }
1991
1991
 
1992
1992
  // src/PluginManager.ts
1993
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1993
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1994
1994
 
1995
1995
  // src/PromiseManager.ts
1996
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1996
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
1997
1997
 
1998
1998
  // src/utils/executeStrategies.ts
1999
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
1999
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2000
2000
  function hookSeq(promises) {
2001
2001
  return promises.filter(Boolean).reduce(
2002
2002
  (promise, func) => {
@@ -2034,8 +2034,8 @@ function hookParallel(promises) {
2034
2034
  var _options2;
2035
2035
  var PromiseManager = class {
2036
2036
  constructor(options = {}) {
2037
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _options2, {});
2038
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _options2, options);
2037
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _options2, {});
2038
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _options2, options);
2039
2039
  return this;
2040
2040
  }
2041
2041
  run(strategy, promises) {
@@ -2043,7 +2043,7 @@ var PromiseManager = class {
2043
2043
  return hookSeq(promises);
2044
2044
  }
2045
2045
  if (strategy === "first") {
2046
- return hookFirst(promises, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _options2).nullCheck);
2046
+ return hookFirst(promises, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _options2).nullCheck);
2047
2047
  }
2048
2048
  if (strategy === "parallel") {
2049
2049
  return hookParallel(promises);
@@ -2060,7 +2060,7 @@ function isPromiseRejectedResult(result) {
2060
2060
  }
2061
2061
 
2062
2062
  // src/errors.ts
2063
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2063
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2064
2064
  var Warning = class extends Error {
2065
2065
  constructor(message, options) {
2066
2066
  super(message, { cause: _optionalChain([options, 'optionalAccess', _42 => _42.cause]) });
@@ -2071,11 +2071,11 @@ var ValidationPluginError = class extends Error {
2071
2071
  };
2072
2072
 
2073
2073
  // src/plugin.ts
2074
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2074
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2075
2075
 
2076
2076
 
2077
2077
  // src/utils/cache.ts
2078
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2078
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2079
2079
  function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
2080
2080
  return {
2081
2081
  set(id, value) {
@@ -2156,8 +2156,8 @@ var definePlugin = createPlugin((options) => {
2156
2156
  var _core, _usedPluginNames, _promiseManager, _getSortedPlugins, getSortedPlugins_fn, _addExecutedToCallStack, addExecutedToCallStack_fn, _execute, execute_fn, _executeSync, executeSync_fn, _catcher, catcher_fn, _parse, parse_fn;
2157
2157
  var PluginManager = class {
2158
2158
  constructor(config, options) {
2159
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _getSortedPlugins);
2160
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
2159
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _getSortedPlugins);
2160
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
2161
2161
  /**
2162
2162
  * Run an async plugin hook and return the result.
2163
2163
  * @param hookName Name of the plugin hook. Must be either in `PluginHooks` or `OutputPluginValueHooks`.
@@ -2165,7 +2165,7 @@ var PluginManager = class {
2165
2165
  * @param plugin The actual pluginObject to run.
2166
2166
  */
2167
2167
  // Implementation signature
2168
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _execute);
2168
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _execute);
2169
2169
  /**
2170
2170
  * Run a sync plugin hook and return the result.
2171
2171
  * @param hookName Name of the plugin hook. Must be in `PluginHooks`.
@@ -2173,14 +2173,14 @@ var PluginManager = class {
2173
2173
  * @param plugin The acutal plugin
2174
2174
  * @param replaceContext When passed, the plugin context can be overridden.
2175
2175
  */
2176
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _executeSync);
2177
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _catcher);
2178
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _parse);
2179
- this.events = new (0, _chunkTTAE4JRWcjs.EventEmitter)();
2176
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _executeSync);
2177
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _catcher);
2178
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _parse);
2179
+ this.events = new (0, _chunkWBPIU73Pcjs.EventEmitter)();
2180
2180
  this.executed = [];
2181
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _core, void 0);
2182
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
2183
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
2181
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _core, void 0);
2182
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
2183
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
2184
2184
  this.resolvePath = (params) => {
2185
2185
  if (params.pluginKey) {
2186
2186
  const paths = this.hookForPluginSync({
@@ -2222,13 +2222,13 @@ Falling back on the first item.
2222
2222
  `
2223
2223
  ]);
2224
2224
  }
2225
- return _chunkOPTGFWPQcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _47 => _47.at, 'call', _48 => _48(0)]) || params.name);
2225
+ return _chunkTDN4N77Qcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _47 => _47.at, 'call', _48 => _48(0)]) || params.name);
2226
2226
  }
2227
2227
  const name = this.hookFirstSync({
2228
2228
  hookName: "resolveName",
2229
2229
  parameters: [params.name, params.type]
2230
2230
  }).result;
2231
- return _chunkOPTGFWPQcjs.transformReservedWord.call(void 0, name);
2231
+ return _chunkTDN4N77Qcjs.transformReservedWord.call(void 0, name);
2232
2232
  };
2233
2233
  this.config = config;
2234
2234
  this.logger = options.logger;
@@ -2237,7 +2237,7 @@ Falling back on the first item.
2237
2237
  task: options.task,
2238
2238
  queue: this.queue
2239
2239
  });
2240
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
2240
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({
2241
2241
  nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _49 => _49.result])
2242
2242
  }));
2243
2243
  const plugins = config.plugins || [];
@@ -2248,11 +2248,11 @@ Falling back on the first item.
2248
2248
  fileManager: this.fileManager,
2249
2249
  resolvePath: this.resolvePath.bind(this),
2250
2250
  resolveName: this.resolveName.bind(this),
2251
- getPlugins: _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2251
+ getPlugins: _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2252
2252
  });
2253
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _core, _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2254
- this.plugins = [_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
2255
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _core).api);
2253
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _core, _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2254
+ this.plugins = [_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
2255
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _core).api);
2256
2256
  });
2257
2257
  return this;
2258
2258
  }
@@ -2264,7 +2264,7 @@ Falling back on the first item.
2264
2264
  throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginKey [${JSON.stringify(pluginKey)}]`);
2265
2265
  }
2266
2266
  try {
2267
- source = _chunkF4TSJHGAcjs.readSync.call(void 0, path5);
2267
+ source = _chunkB74BR46Mcjs.readSync.call(void 0, path5);
2268
2268
  } catch (_e) {
2269
2269
  }
2270
2270
  return {
@@ -2292,7 +2292,7 @@ Falling back on the first item.
2292
2292
  }) {
2293
2293
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2294
2294
  const promises = plugins.map((plugin) => {
2295
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2295
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2296
2296
  strategy: "hookFirst",
2297
2297
  hookName,
2298
2298
  parameters,
@@ -2311,7 +2311,7 @@ Falling back on the first item.
2311
2311
  }) {
2312
2312
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2313
2313
  return plugins.map((plugin) => {
2314
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2314
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2315
2315
  strategy: "hookFirst",
2316
2316
  hookName,
2317
2317
  parameters,
@@ -2327,11 +2327,11 @@ Falling back on the first item.
2327
2327
  parameters,
2328
2328
  skipped
2329
2329
  }) {
2330
- const promises = _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2330
+ const promises = _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2331
2331
  return skipped ? skipped.has(plugin) : true;
2332
2332
  }).map((plugin) => {
2333
2333
  return async () => {
2334
- const value = await _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2334
+ const value = await _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2335
2335
  strategy: "hookFirst",
2336
2336
  hookName,
2337
2337
  parameters,
@@ -2343,7 +2343,7 @@ Falling back on the first item.
2343
2343
  });
2344
2344
  };
2345
2345
  });
2346
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
2346
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
2347
2347
  }
2348
2348
  /**
2349
2349
  * First non-null result stops and will return it's value.
@@ -2354,12 +2354,12 @@ Falling back on the first item.
2354
2354
  skipped
2355
2355
  }) {
2356
2356
  let parseResult = null;
2357
- for (const plugin of _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2357
+ for (const plugin of _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2358
2358
  if (_optionalChain([skipped, 'optionalAccess', _50 => _50.has, 'call', _51 => _51(plugin)])) {
2359
2359
  continue;
2360
2360
  }
2361
2361
  parseResult = {
2362
- result: _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2362
+ result: _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2363
2363
  strategy: "hookFirst",
2364
2364
  hookName,
2365
2365
  parameters,
@@ -2380,19 +2380,19 @@ Falling back on the first item.
2380
2380
  hookName,
2381
2381
  parameters
2382
2382
  }) {
2383
- const promises = _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2384
- return () => _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2383
+ const promises = _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2384
+ return () => _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2385
2385
  strategy: "hookParallel",
2386
2386
  hookName,
2387
2387
  parameters,
2388
2388
  plugin
2389
2389
  });
2390
2390
  });
2391
- const results = await _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
2391
+ const results = await _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
2392
2392
  results.forEach((result, index) => {
2393
2393
  if (isPromiseRejectedResult(result)) {
2394
- const plugin = _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2395
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2394
+ const plugin = _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2395
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2396
2396
  }
2397
2397
  });
2398
2398
  return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
@@ -2407,16 +2407,16 @@ Falling back on the first item.
2407
2407
  }) {
2408
2408
  const [argument0, ...rest] = parameters;
2409
2409
  let promise = Promise.resolve(argument0);
2410
- for (const plugin of _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2410
+ for (const plugin of _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2411
2411
  promise = promise.then((arg0) => {
2412
- const value = _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2412
+ const value = _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2413
2413
  strategy: "hookReduceArg0",
2414
2414
  hookName,
2415
2415
  parameters: [arg0, ...rest],
2416
2416
  plugin
2417
2417
  });
2418
2418
  return value;
2419
- }).then((result) => reduce.call(_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
2419
+ }).then((result) => reduce.call(_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
2420
2420
  }
2421
2421
  return promise;
2422
2422
  }
@@ -2424,15 +2424,15 @@ Falling back on the first item.
2424
2424
  * Chains plugins
2425
2425
  */
2426
2426
  async hookSeq({ hookName, parameters }) {
2427
- const promises = _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2428
- return () => _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2427
+ const promises = _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2428
+ return () => _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2429
2429
  strategy: "hookSeq",
2430
2430
  hookName,
2431
2431
  parameters,
2432
2432
  plugin
2433
2433
  });
2434
2434
  });
2435
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
2435
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
2436
2436
  }
2437
2437
  getPluginsByKey(hookName, pluginKey) {
2438
2438
  const plugins = [...this.plugins];
@@ -2484,7 +2484,7 @@ _getSortedPlugins = new WeakSet();
2484
2484
  getSortedPlugins_fn = function(hookName) {
2485
2485
  const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
2486
2486
  if (hookName) {
2487
- if (this.logger.logLevel === _chunkTTAE4JRWcjs.LogLevel.info) {
2487
+ if (this.logger.logLevel === _chunkWBPIU73Pcjs.LogLevel.info) {
2488
2488
  const containsHookName = plugins.some((item) => item[hookName]);
2489
2489
  if (!containsHookName) {
2490
2490
  this.logger.emit("warning", `No hook ${hookName} found`);
@@ -2532,7 +2532,7 @@ execute_fn = function({
2532
2532
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2533
2533
  const task = Promise.resolve().then(() => {
2534
2534
  if (typeof hook === "function") {
2535
- const possiblePromiseResult = hook.apply({ ..._chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2535
+ const possiblePromiseResult = hook.apply({ ..._chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2536
2536
  if (isPromise(possiblePromiseResult)) {
2537
2537
  return Promise.resolve(possiblePromiseResult);
2538
2538
  }
@@ -2541,7 +2541,7 @@ execute_fn = function({
2541
2541
  return hook;
2542
2542
  }).then((result) => {
2543
2543
  output = result;
2544
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2544
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2545
2545
  parameters,
2546
2546
  output,
2547
2547
  strategy,
@@ -2550,7 +2550,7 @@ execute_fn = function({
2550
2550
  });
2551
2551
  return result;
2552
2552
  }).catch((e) => {
2553
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2553
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2554
2554
  return null;
2555
2555
  });
2556
2556
  return task;
@@ -2570,12 +2570,12 @@ executeSync_fn = function({
2570
2570
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2571
2571
  try {
2572
2572
  if (typeof hook === "function") {
2573
- const fn = hook.apply({ ..._chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2573
+ const fn = hook.apply({ ..._chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2574
2574
  output = fn;
2575
2575
  return fn;
2576
2576
  }
2577
2577
  output = hook;
2578
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2578
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2579
2579
  parameters,
2580
2580
  output,
2581
2581
  strategy,
@@ -2584,7 +2584,7 @@ executeSync_fn = function({
2584
2584
  });
2585
2585
  return hook;
2586
2586
  } catch (e) {
2587
- _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2587
+ _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2588
2588
  return null;
2589
2589
  }
2590
2590
  };
@@ -2596,8 +2596,8 @@ catcher_fn = function(cause, plugin, hookName) {
2596
2596
  };
2597
2597
  _parse = new WeakSet();
2598
2598
  parse_fn = function(plugin, pluginManager, context) {
2599
- const usedPluginNames = _chunk4TB6NGOCcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
2600
- _chunkLHNV7GQHcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
2599
+ const usedPluginNames = _chunkY4IJPEUVcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
2600
+ _chunkHKRFUPZLcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
2601
2601
  const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
2602
2602
  if (!plugin.transform) {
2603
2603
  plugin.transform = function transform(code) {
@@ -2619,7 +2619,7 @@ parse_fn = function(plugin, pluginManager, context) {
2619
2619
  };
2620
2620
 
2621
2621
  // src/config.ts
2622
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2622
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2623
2623
  function defineConfig(options) {
2624
2624
  return options;
2625
2625
  }
@@ -2632,16 +2632,16 @@ async function transformReducer(_previousCode, result, _plugin) {
2632
2632
  return result;
2633
2633
  }
2634
2634
  async function setup(options) {
2635
- const { config, logger = _chunkTTAE4JRWcjs.createLogger.call(void 0, { logLevel: _chunkTTAE4JRWcjs.LogLevel.silent }) } = options;
2635
+ const { config, logger = _chunkWBPIU73Pcjs.createLogger.call(void 0, { logLevel: _chunkWBPIU73Pcjs.LogLevel.silent }) } = options;
2636
2636
  let count = 0;
2637
2637
  try {
2638
- if (isInputPath(config) && !new (0, _chunkLHNV7GQHcjs.URLPath)(config.input.path).isURL) {
2639
- await _chunkF4TSJHGAcjs.read.call(void 0, config.input.path);
2638
+ if (isInputPath(config) && !new (0, _chunkHKRFUPZLcjs.URLPath)(config.input.path).isURL) {
2639
+ await _chunkB74BR46Mcjs.read.call(void 0, config.input.path);
2640
2640
  }
2641
2641
  } catch (e) {
2642
2642
  if (isInputPath(config)) {
2643
2643
  throw new Error(
2644
- `Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkTTAE4JRWcjs.p.dim(config.input.path)}`,
2644
+ `Cannot read file/URL defined in \`input.path\` or set with \`kubb generate PATH\` in the CLI of your Kubb config ${_chunkWBPIU73Pcjs.p.dim(config.input.path)}`,
2645
2645
  {
2646
2646
  cause: e
2647
2647
  }
@@ -2649,7 +2649,7 @@ async function setup(options) {
2649
2649
  }
2650
2650
  }
2651
2651
  if (config.output.clean) {
2652
- await _chunkIBUMXAETcjs.clean.call(void 0, config.output.path);
2652
+ await _chunkBOZP7LG7cjs.clean.call(void 0, config.output.path);
2653
2653
  }
2654
2654
  const task = async (file) => {
2655
2655
  const { path: path5 } = file;
@@ -2694,14 +2694,14 @@ async function setup(options) {
2694
2694
  const { hookName, parameters, plugin } = executer;
2695
2695
  if (hookName === "writeFile") {
2696
2696
  const [code] = parameters;
2697
- logger.emit("debug", [`PluginKey ${_chunkTTAE4JRWcjs.p.dim(JSON.stringify(plugin.key))}
2697
+ logger.emit("debug", [`PluginKey ${_chunkWBPIU73Pcjs.p.dim(JSON.stringify(plugin.key))}
2698
2698
  with source
2699
2699
 
2700
2700
  ${code}`]);
2701
2701
  }
2702
2702
  });
2703
2703
  pluginManager.queue.on("add", () => {
2704
- if (logger.logLevel !== _chunkTTAE4JRWcjs.LogLevel.info) {
2704
+ if (logger.logLevel !== _chunkWBPIU73Pcjs.LogLevel.info) {
2705
2705
  return;
2706
2706
  }
2707
2707
  if (count === 0) {
@@ -2709,31 +2709,31 @@ ${code}`]);
2709
2709
  }
2710
2710
  });
2711
2711
  pluginManager.queue.on("active", () => {
2712
- if (logger.logLevel !== _chunkTTAE4JRWcjs.LogLevel.info) {
2712
+ if (logger.logLevel !== _chunkWBPIU73Pcjs.LogLevel.info) {
2713
2713
  return;
2714
2714
  }
2715
2715
  if (logger.spinner && pluginManager.queue.size > 0) {
2716
2716
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
2717
- logger.spinner.suffixText = _chunkTTAE4JRWcjs.p.dim(text);
2717
+ logger.spinner.suffixText = _chunkWBPIU73Pcjs.p.dim(text);
2718
2718
  }
2719
2719
  ++count;
2720
2720
  });
2721
2721
  pluginManager.queue.on("completed", () => {
2722
- if (logger.logLevel !== _chunkTTAE4JRWcjs.LogLevel.info) {
2722
+ if (logger.logLevel !== _chunkWBPIU73Pcjs.LogLevel.info) {
2723
2723
  return;
2724
2724
  }
2725
2725
  if (logger.spinner) {
2726
2726
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
2727
- logger.spinner.suffixText = _chunkTTAE4JRWcjs.p.dim(text);
2727
+ logger.spinner.suffixText = _chunkWBPIU73Pcjs.p.dim(text);
2728
2728
  }
2729
2729
  });
2730
2730
  pluginManager.on("executed", (executer) => {
2731
2731
  const { hookName, plugin, output, parameters } = executer;
2732
2732
  const logs = [
2733
- `${_chunkTTAE4JRWcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
2734
- parameters && `${_chunkTTAE4JRWcjs.p.bgWhite("Parameters")} ${_chunkTTAE4JRWcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
2733
+ `${_chunkWBPIU73Pcjs.randomCliColour.call(void 0, plugin.name)} Executing ${hookName}`,
2734
+ parameters && `${_chunkWBPIU73Pcjs.p.bgWhite("Parameters")} ${_chunkWBPIU73Pcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
2735
2735
  JSON.stringify(parameters, void 0, 2),
2736
- output && `${_chunkTTAE4JRWcjs.p.bgWhite("Output")} ${_chunkTTAE4JRWcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
2736
+ output && `${_chunkWBPIU73Pcjs.p.bgWhite("Output")} ${_chunkWBPIU73Pcjs.randomCliColour.call(void 0, plugin.name)} ${hookName}`,
2737
2737
  output
2738
2738
  ].filter(Boolean);
2739
2739
  logger.emit("debug", logs);
@@ -2748,7 +2748,7 @@ async function build(options) {
2748
2748
  parameters: [options.config]
2749
2749
  });
2750
2750
  await pluginManager.hookParallel({ hookName: "buildEnd" });
2751
- if (logger.logLevel === _chunkTTAE4JRWcjs.LogLevel.info) {
2751
+ if (logger.logLevel === _chunkWBPIU73Pcjs.LogLevel.info) {
2752
2752
  logger.emit("end", "\u{1F4BE} Writing completed");
2753
2753
  }
2754
2754
  return {
@@ -2768,7 +2768,7 @@ async function safeBuild(options) {
2768
2768
  parameters: [options.config]
2769
2769
  });
2770
2770
  await pluginManager.hookParallel({ hookName: "buildEnd" });
2771
- if (logger.logLevel === _chunkTTAE4JRWcjs.LogLevel.info) {
2771
+ if (logger.logLevel === _chunkWBPIU73Pcjs.LogLevel.info) {
2772
2772
  logger.emit("end", "\u{1F4BE} Writing completed");
2773
2773
  }
2774
2774
  } catch (e) {
@@ -2791,103 +2791,103 @@ async function safeBuild(options) {
2791
2791
  }
2792
2792
 
2793
2793
  // src/Generator.ts
2794
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2794
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2795
2795
  var _options3, _context;
2796
2796
  var Generator = class {
2797
2797
  constructor(options, context) {
2798
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _options3, {});
2799
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _context, {});
2798
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _options3, {});
2799
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _context, {});
2800
2800
  if (context) {
2801
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _context, context);
2801
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _context, context);
2802
2802
  }
2803
2803
  if (options) {
2804
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _options3, options);
2804
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _options3, options);
2805
2805
  }
2806
2806
  return this;
2807
2807
  }
2808
2808
  get options() {
2809
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _options3);
2809
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _options3);
2810
2810
  }
2811
2811
  get context() {
2812
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _context);
2812
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _context);
2813
2813
  }
2814
2814
  set options(options) {
2815
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _options3, { ..._chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _options3), ...options });
2815
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _options3, { ..._chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _options3), ...options });
2816
2816
  }
2817
2817
  };
2818
2818
  _options3 = new WeakMap();
2819
2819
  _context = new WeakMap();
2820
2820
 
2821
2821
  // src/PackageManager.ts
2822
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2822
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2823
2823
  var _module = require('module'); var _module2 = _interopRequireDefault(_module);
2824
2824
  var _os = require('os'); var _os2 = _interopRequireDefault(_os);
2825
2825
  var _url = require('url');
2826
2826
 
2827
2827
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
2828
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2828
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2829
2829
 
2830
2830
 
2831
2831
  // ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
2832
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2832
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2833
2833
  var _process = require('process'); var _process2 = _interopRequireDefault(_process);
2834
2834
 
2835
2835
  var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
2836
2836
 
2837
2837
 
2838
2838
  // ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
2839
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2839
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2840
2840
 
2841
2841
  // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
2842
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2842
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2843
2843
 
2844
2844
  // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
2845
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
2845
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
2846
2846
  var Node = class {
2847
2847
  constructor(value) {
2848
- _chunk4TB6NGOCcjs.__publicField.call(void 0, this, "value");
2849
- _chunk4TB6NGOCcjs.__publicField.call(void 0, this, "next");
2848
+ _chunkY4IJPEUVcjs.__publicField.call(void 0, this, "value");
2849
+ _chunkY4IJPEUVcjs.__publicField.call(void 0, this, "next");
2850
2850
  this.value = value;
2851
2851
  }
2852
2852
  };
2853
2853
  var _head, _tail, _size;
2854
2854
  var Queue = class {
2855
2855
  constructor() {
2856
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _head, void 0);
2857
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _tail, void 0);
2858
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _size, void 0);
2856
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _head, void 0);
2857
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _tail, void 0);
2858
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _size, void 0);
2859
2859
  this.clear();
2860
2860
  }
2861
2861
  enqueue(value) {
2862
2862
  const node = new Node(value);
2863
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _head)) {
2864
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _tail).next = node;
2865
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _tail, node);
2863
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _head)) {
2864
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _tail).next = node;
2865
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _tail, node);
2866
2866
  } else {
2867
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _head, node);
2868
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _tail, node);
2867
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _head, node);
2868
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _tail, node);
2869
2869
  }
2870
- _chunk4TB6NGOCcjs.__privateWrapper.call(void 0, this, _size)._++;
2870
+ _chunkY4IJPEUVcjs.__privateWrapper.call(void 0, this, _size)._++;
2871
2871
  }
2872
2872
  dequeue() {
2873
- const current = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _head);
2873
+ const current = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _head);
2874
2874
  if (!current) {
2875
2875
  return;
2876
2876
  }
2877
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _head, _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _head).next);
2878
- _chunk4TB6NGOCcjs.__privateWrapper.call(void 0, this, _size)._--;
2877
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _head, _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _head).next);
2878
+ _chunkY4IJPEUVcjs.__privateWrapper.call(void 0, this, _size)._--;
2879
2879
  return current.value;
2880
2880
  }
2881
2881
  clear() {
2882
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _head, void 0);
2883
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _tail, void 0);
2884
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _size, 0);
2882
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _head, void 0);
2883
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _tail, void 0);
2884
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _size, 0);
2885
2885
  }
2886
2886
  get size() {
2887
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _size);
2887
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _size);
2888
2888
  }
2889
2889
  *[Symbol.iterator]() {
2890
- let current = _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _head);
2890
+ let current = _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _head);
2891
2891
  while (current) {
2892
2892
  yield current.value;
2893
2893
  current = current.next;
@@ -3038,14 +3038,14 @@ function locatePathSync(paths, {
3038
3038
  }
3039
3039
 
3040
3040
  // ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
3041
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
3041
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
3042
3042
 
3043
3043
  function toPath2(urlOrPath) {
3044
3044
  return urlOrPath instanceof URL ? _url.fileURLToPath.call(void 0, urlOrPath) : urlOrPath;
3045
3045
  }
3046
3046
 
3047
3047
  // ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
3048
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
3048
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
3049
3049
 
3050
3050
 
3051
3051
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
@@ -3128,30 +3128,30 @@ var _semver = require('semver');
3128
3128
  var _cache2, _cwd, _SLASHES, _match, match_fn;
3129
3129
  var _PackageManager = class _PackageManager {
3130
3130
  constructor(workspace) {
3131
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _match);
3132
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _cwd, void 0);
3133
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
3131
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _match);
3132
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _cwd, void 0);
3133
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
3134
3134
  if (workspace) {
3135
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _cwd, workspace);
3135
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _cwd, workspace);
3136
3136
  }
3137
3137
  return this;
3138
3138
  }
3139
3139
  set workspace(workspace) {
3140
- _chunk4TB6NGOCcjs.__privateSet.call(void 0, this, _cwd, workspace);
3140
+ _chunkY4IJPEUVcjs.__privateSet.call(void 0, this, _cwd, workspace);
3141
3141
  }
3142
3142
  get workspace() {
3143
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cwd);
3143
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cwd);
3144
3144
  }
3145
3145
  normalizeDirectory(directory) {
3146
- if (!_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
3146
+ if (!_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _SLASHES).has(directory[directory.length - 1])) {
3147
3147
  return `${directory}/`;
3148
3148
  }
3149
3149
  return directory;
3150
3150
  }
3151
3151
  getLocation(path5) {
3152
3152
  let location = path5;
3153
- if (_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cwd)) {
3154
- const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cwd)));
3153
+ if (_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cwd)) {
3154
+ const require2 = _module2.default.createRequire(this.normalizeDirectory(_chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cwd)));
3155
3155
  location = require2.resolve(path5);
3156
3156
  }
3157
3157
  return location;
@@ -3171,46 +3171,46 @@ var _PackageManager = class _PackageManager {
3171
3171
  }
3172
3172
  async getPackageJSON() {
3173
3173
  const pkgPath = await findUp(["package.json"], {
3174
- cwd: _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cwd)
3174
+ cwd: _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cwd)
3175
3175
  });
3176
3176
  if (!pkgPath) {
3177
3177
  return void 0;
3178
3178
  }
3179
- const json = await _chunkF4TSJHGAcjs.read.call(void 0, pkgPath);
3179
+ const json = await _chunkB74BR46Mcjs.read.call(void 0, pkgPath);
3180
3180
  return JSON.parse(json);
3181
3181
  }
3182
3182
  getPackageJSONSync() {
3183
3183
  const pkgPath = findUpSync(["package.json"], {
3184
- cwd: _chunk4TB6NGOCcjs.__privateGet.call(void 0, this, _cwd)
3184
+ cwd: _chunkY4IJPEUVcjs.__privateGet.call(void 0, this, _cwd)
3185
3185
  });
3186
3186
  if (!pkgPath) {
3187
3187
  return void 0;
3188
3188
  }
3189
- const json = _chunkF4TSJHGAcjs.readSync.call(void 0, pkgPath);
3189
+ const json = _chunkB74BR46Mcjs.readSync.call(void 0, pkgPath);
3190
3190
  return JSON.parse(json);
3191
3191
  }
3192
3192
  static setVersion(dependency, version) {
3193
- _chunk4TB6NGOCcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency] = version;
3193
+ _chunkY4IJPEUVcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency] = version;
3194
3194
  }
3195
3195
  async getVersion(dependency) {
3196
- if (typeof dependency === "string" && _chunk4TB6NGOCcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
3197
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
3196
+ if (typeof dependency === "string" && _chunkY4IJPEUVcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
3197
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
3198
3198
  }
3199
3199
  const packageJSON = await this.getPackageJSON();
3200
3200
  if (!packageJSON) {
3201
3201
  return void 0;
3202
3202
  }
3203
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
3203
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
3204
3204
  }
3205
3205
  getVersionSync(dependency) {
3206
- if (typeof dependency === "string" && _chunk4TB6NGOCcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
3207
- return _chunk4TB6NGOCcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
3206
+ if (typeof dependency === "string" && _chunkY4IJPEUVcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency]) {
3207
+ return _chunkY4IJPEUVcjs.__privateGet.call(void 0, _PackageManager, _cache2)[dependency];
3208
3208
  }
3209
3209
  const packageJSON = this.getPackageJSONSync();
3210
3210
  if (!packageJSON) {
3211
3211
  return void 0;
3212
3212
  }
3213
- return _chunk4TB6NGOCcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
3213
+ return _chunkY4IJPEUVcjs.__privateMethod.call(void 0, this, _match, match_fn).call(this, packageJSON, dependency);
3214
3214
  }
3215
3215
  async isValid(dependency, version) {
3216
3216
  const packageVersion = await this.getVersion(dependency);
@@ -3253,12 +3253,12 @@ match_fn = function(packageJSON, dependency) {
3253
3253
  const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
3254
3254
  return matchedDependency ? dependencies[matchedDependency] : void 0;
3255
3255
  };
3256
- _chunk4TB6NGOCcjs.__privateAdd.call(void 0, _PackageManager, _cache2, {});
3256
+ _chunkY4IJPEUVcjs.__privateAdd.call(void 0, _PackageManager, _cache2, {});
3257
3257
  var PackageManager = _PackageManager;
3258
3258
 
3259
3259
  // src/kubb.ts
3260
3260
  var kubb_exports = {};
3261
- _chunk4TB6NGOCcjs.init_cjs_shims.call(void 0, );
3261
+ _chunkY4IJPEUVcjs.init_cjs_shims.call(void 0, );
3262
3262
 
3263
3263
 
3264
3264