storybook 9.0.0-alpha.0 → 9.0.0-alpha.10

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 (259) hide show
  1. package/README.md +31 -29
  2. package/assets/browser/favicon.svg +1 -0
  3. package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
  4. package/assets/browser/nunito-sans-bold.woff2 +0 -0
  5. package/assets/browser/nunito-sans-italic.woff2 +0 -0
  6. package/assets/browser/nunito-sans-regular.woff2 +0 -0
  7. package/assets/docs/addon-controls-args-annotated.png +0 -0
  8. package/assets/docs/addon-controls-args-background-color.png +0 -0
  9. package/assets/docs/addon-controls-args-background-string.png +0 -0
  10. package/assets/docs/addon-controls-args-docs.png +0 -0
  11. package/assets/docs/addon-controls-args-logging.png +0 -0
  12. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  13. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  14. package/assets/docs/addon-controls-args-reflow.png +0 -0
  15. package/assets/docs/addon-controls-args-template.png +0 -0
  16. package/assets/docs/addon-controls-expanded.png +0 -0
  17. package/assets/docs/addon-controls-hero.gif +0 -0
  18. package/assets/docs/addon-controls-install.png +0 -0
  19. package/assets/docs/hero.gif +0 -0
  20. package/assets/docs/message-reference.png +0 -0
  21. package/assets/docs/viewport.png +0 -0
  22. package/assets/server/addon.tsconfig.json +6 -0
  23. package/assets/server/base-preview-body.html +119 -0
  24. package/assets/server/base-preview-head.html +451 -0
  25. package/assets/server/template.ejs +87 -0
  26. package/bin/index.cjs +1 -1
  27. package/dist/actions/decorator.d.ts +6 -0
  28. package/dist/actions/decorator.js +139 -0
  29. package/dist/actions/index.cjs +127 -0
  30. package/dist/actions/index.d.ts +105 -0
  31. package/dist/actions/index.js +112 -0
  32. package/dist/actions/manager.js +1196 -0
  33. package/dist/actions/preview.cjs +165 -0
  34. package/dist/actions/preview.d.ts +55 -0
  35. package/dist/actions/preview.js +156 -0
  36. package/dist/babel/index.cjs +54034 -0
  37. package/dist/babel/index.d.ts +7488 -0
  38. package/dist/babel/index.js +54044 -0
  39. package/dist/bin/index.cjs +119 -0
  40. package/dist/bin/index.js +113 -0
  41. package/dist/builder-manager/index.cjs +2140 -0
  42. package/dist/builder-manager/index.d.ts +19 -0
  43. package/dist/builder-manager/index.js +2162 -0
  44. package/dist/channels/index.cjs +1913 -0
  45. package/dist/channels/index.d.ts +108 -0
  46. package/dist/channels/index.js +1881 -0
  47. package/dist/cli/bin/index.cjs +2687 -0
  48. package/dist/cli/bin/index.d.ts +2 -0
  49. package/dist/cli/bin/index.js +2707 -0
  50. package/dist/cli/index.cjs +17327 -0
  51. package/dist/cli/index.d.ts +209 -0
  52. package/dist/cli/index.js +17349 -0
  53. package/dist/client-logger/index.cjs +80 -0
  54. package/dist/client-logger/index.d.ts +29 -0
  55. package/dist/client-logger/index.js +64 -0
  56. package/dist/common/index.cjs +20569 -0
  57. package/dist/common/index.d.ts +949 -0
  58. package/dist/common/index.js +20654 -0
  59. package/dist/components/index.cjs +27924 -0
  60. package/dist/components/index.d.ts +1423 -0
  61. package/dist/components/index.js +24673 -0
  62. package/dist/controls/decorator.d.ts +5 -0
  63. package/dist/controls/decorator.js +8 -0
  64. package/dist/controls/index.cjs +26 -0
  65. package/dist/controls/index.d.ts +39 -0
  66. package/dist/controls/index.js +6 -0
  67. package/dist/controls/manager.js +5545 -0
  68. package/dist/controls/preview.cjs +26 -0
  69. package/dist/controls/preview.d.ts +55 -0
  70. package/dist/controls/preview.js +9 -0
  71. package/dist/core-events/index.cjs +167 -0
  72. package/dist/core-events/index.d.ts +426 -0
  73. package/dist/core-events/index.js +149 -0
  74. package/dist/core-server/index.cjs +38183 -0
  75. package/dist/core-server/index.d.ts +720 -0
  76. package/dist/core-server/index.js +38272 -0
  77. package/dist/core-server/presets/common-manager.js +20 -0
  78. package/dist/core-server/presets/common-override-preset.cjs +4824 -0
  79. package/dist/core-server/presets/common-override-preset.js +4829 -0
  80. package/dist/core-server/presets/common-preset.cjs +10231 -0
  81. package/dist/core-server/presets/common-preset.js +10309 -0
  82. package/dist/csf/index.cjs +179 -0
  83. package/dist/csf/index.d.ts +750 -0
  84. package/dist/csf/index.js +172 -0
  85. package/dist/csf-tools/index.cjs +1422 -0
  86. package/dist/csf-tools/index.d.ts +250 -0
  87. package/dist/csf-tools/index.js +1439 -0
  88. package/dist/docs-tools/index.cjs +2891 -0
  89. package/dist/docs-tools/index.d.ts +162 -0
  90. package/dist/docs-tools/index.js +2876 -0
  91. package/dist/index.cjs +17 -1
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +2 -7
  94. package/dist/instrumenter/index.cjs +3485 -0
  95. package/dist/instrumenter/index.d.ts +104 -0
  96. package/dist/instrumenter/index.js +4965 -0
  97. package/dist/manager/globals-module-info.cjs +817 -0
  98. package/dist/manager/globals-module-info.d.ts +36 -0
  99. package/dist/manager/globals-module-info.js +804 -0
  100. package/dist/manager/globals-runtime.js +77536 -0
  101. package/dist/manager/globals.cjs +47 -0
  102. package/dist/manager/globals.d.ts +24 -0
  103. package/dist/manager/globals.js +34 -0
  104. package/dist/manager/runtime.js +12323 -0
  105. package/dist/manager-api/index.cjs +11074 -0
  106. package/dist/manager-api/index.d.ts +1512 -0
  107. package/dist/manager-api/index.js +4835 -0
  108. package/dist/manager-errors.d.ts +89 -0
  109. package/dist/manager-errors.js +99 -0
  110. package/dist/node-logger/index.cjs +1642 -0
  111. package/dist/node-logger/index.d.ts +117 -0
  112. package/dist/node-logger/index.js +1652 -0
  113. package/dist/preview/globals.cjs +38 -0
  114. package/dist/preview/globals.d.ts +15 -0
  115. package/dist/preview/globals.js +25 -0
  116. package/dist/preview/runtime.js +43629 -0
  117. package/dist/preview-api/index.cjs +5224 -0
  118. package/dist/preview-api/index.d.ts +1093 -0
  119. package/dist/preview-api/index.js +5292 -0
  120. package/dist/preview-errors.cjs +503 -0
  121. package/dist/preview-errors.d.ts +212 -0
  122. package/dist/preview-errors.js +449 -0
  123. package/dist/router/index.cjs +3296 -0
  124. package/dist/router/index.d.ts +385 -0
  125. package/dist/router/index.js +1843 -0
  126. package/dist/server-errors.cjs +727 -0
  127. package/dist/server-errors.d.ts +296 -0
  128. package/dist/server-errors.js +728 -0
  129. package/dist/telemetry/index.cjs +2756 -0
  130. package/dist/telemetry/index.d.ts +133 -0
  131. package/dist/telemetry/index.js +2797 -0
  132. package/dist/test/index.cjs +35685 -0
  133. package/dist/test/index.d.ts +186 -0
  134. package/dist/test/index.js +33751 -0
  135. package/dist/test/preview.cjs +15869 -0
  136. package/dist/test/preview.d.ts +54 -0
  137. package/dist/test/preview.js +14440 -0
  138. package/dist/test/spy.cjs +257 -0
  139. package/dist/test/spy.d.ts +66 -0
  140. package/dist/test/spy.js +239 -0
  141. package/dist/theming/create.cjs +232 -0
  142. package/dist/theming/create.d.ts +50 -0
  143. package/dist/theming/create.js +216 -0
  144. package/dist/theming/index.cjs +2665 -0
  145. package/dist/theming/index.d.ts +11939 -0
  146. package/dist/theming/index.js +2485 -0
  147. package/dist/types/index.cjs +27 -0
  148. package/dist/types/index.d.ts +2795 -0
  149. package/dist/types/index.js +7 -0
  150. package/dist/viewport/index.cjs +310 -0
  151. package/dist/viewport/index.d.ts +320 -0
  152. package/dist/viewport/index.js +290 -0
  153. package/dist/viewport/manager.js +400 -0
  154. package/dist/viewport/preview.cjs +35 -0
  155. package/dist/viewport/preview.d.ts +69 -0
  156. package/dist/viewport/preview.js +19 -0
  157. package/package.json +518 -209
  158. package/.eslintrc.cjs +0 -31
  159. package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
  160. package/core/babel/index.cjs +0 -1
  161. package/core/babel/index.d.ts +0 -2
  162. package/core/babel/index.js +0 -1
  163. package/core/builder-manager/index.cjs +0 -1
  164. package/core/builder-manager/index.d.ts +0 -2
  165. package/core/builder-manager/index.js +0 -1
  166. package/core/channels/index.cjs +0 -1
  167. package/core/channels/index.d.ts +0 -2
  168. package/core/channels/index.js +0 -1
  169. package/core/cli/bin/index.cjs +0 -1
  170. package/core/cli/bin/index.d.ts +0 -2
  171. package/core/cli/bin/index.js +0 -1
  172. package/core/cli/index.cjs +0 -1
  173. package/core/cli/index.d.ts +0 -2
  174. package/core/cli/index.js +0 -1
  175. package/core/client-logger/index.cjs +0 -1
  176. package/core/client-logger/index.d.ts +0 -2
  177. package/core/client-logger/index.js +0 -1
  178. package/core/common/index.cjs +0 -1
  179. package/core/common/index.d.ts +0 -2
  180. package/core/common/index.js +0 -1
  181. package/core/components/index.cjs +0 -1
  182. package/core/components/index.d.ts +0 -2
  183. package/core/components/index.js +0 -1
  184. package/core/core-events/index.cjs +0 -1
  185. package/core/core-events/index.d.ts +0 -2
  186. package/core/core-events/index.js +0 -1
  187. package/core/core-server/index.cjs +0 -1
  188. package/core/core-server/index.d.ts +0 -2
  189. package/core/core-server/index.js +0 -1
  190. package/core/core-server/presets/common-manager.js +0 -1
  191. package/core/core-server/presets/common-override-preset.cjs +0 -1
  192. package/core/core-server/presets/common-override-preset.js +0 -1
  193. package/core/core-server/presets/common-preset.cjs +0 -1
  194. package/core/core-server/presets/common-preset.js +0 -1
  195. package/core/csf/index.cjs +0 -1
  196. package/core/csf/index.d.ts +0 -2
  197. package/core/csf/index.js +0 -1
  198. package/core/csf-tools/index.cjs +0 -1
  199. package/core/csf-tools/index.d.ts +0 -2
  200. package/core/csf-tools/index.js +0 -1
  201. package/core/docs-tools/index.cjs +0 -1
  202. package/core/docs-tools/index.d.ts +0 -2
  203. package/core/docs-tools/index.js +0 -1
  204. package/core/index.cjs +0 -1
  205. package/core/index.d.ts +0 -2
  206. package/core/index.js +0 -1
  207. package/core/manager/globals-module-info.cjs +0 -1
  208. package/core/manager/globals-module-info.d.ts +0 -2
  209. package/core/manager/globals-module-info.js +0 -1
  210. package/core/manager/globals-runtime.js +0 -1
  211. package/core/manager/globals.cjs +0 -1
  212. package/core/manager/globals.d.ts +0 -2
  213. package/core/manager/globals.js +0 -1
  214. package/core/manager-api/index.cjs +0 -1
  215. package/core/manager-api/index.d.ts +0 -2
  216. package/core/manager-api/index.js +0 -1
  217. package/core/manager-errors.d.ts +0 -2
  218. package/core/manager-errors.js +0 -1
  219. package/core/node-logger/index.cjs +0 -1
  220. package/core/node-logger/index.d.ts +0 -2
  221. package/core/node-logger/index.js +0 -1
  222. package/core/preview/globals.cjs +0 -1
  223. package/core/preview/globals.d.ts +0 -2
  224. package/core/preview/globals.js +0 -1
  225. package/core/preview/runtime.js +0 -1
  226. package/core/preview-api/index.cjs +0 -1
  227. package/core/preview-api/index.d.ts +0 -2
  228. package/core/preview-api/index.js +0 -1
  229. package/core/preview-errors.cjs +0 -1
  230. package/core/preview-errors.d.ts +0 -2
  231. package/core/preview-errors.js +0 -1
  232. package/core/router/index.cjs +0 -1
  233. package/core/router/index.d.ts +0 -2
  234. package/core/router/index.js +0 -1
  235. package/core/server-errors.cjs +0 -1
  236. package/core/server-errors.d.ts +0 -2
  237. package/core/server-errors.js +0 -1
  238. package/core/telemetry/index.cjs +0 -1
  239. package/core/telemetry/index.d.ts +0 -2
  240. package/core/telemetry/index.js +0 -1
  241. package/core/theming/create.cjs +0 -1
  242. package/core/theming/create.d.ts +0 -2
  243. package/core/theming/create.js +0 -1
  244. package/core/theming/index.cjs +0 -1
  245. package/core/theming/index.d.ts +0 -2
  246. package/core/theming/index.js +0 -1
  247. package/core/types/index.cjs +0 -1
  248. package/core/types/index.d.ts +0 -2
  249. package/core/types/index.js +0 -1
  250. package/core.cjs +0 -0
  251. package/core.d.ts +0 -0
  252. package/core.js +0 -1
  253. package/dist/chunk-OWLSIX54.js +0 -8
  254. package/dist/core-path.cjs +0 -1
  255. package/dist/core-path.d.ts +0 -3
  256. package/dist/core-path.js +0 -9
  257. package/dist/proxy.cjs +0 -1
  258. package/dist/proxy.d.ts +0 -2
  259. package/dist/proxy.js +0 -9
@@ -0,0 +1,1642 @@
1
+ "use strict";
2
+ var nt = Object.create;
3
+ var G = Object.defineProperty;
4
+ var st = Object.getOwnPropertyDescriptor;
5
+ var at = Object.getOwnPropertyNames;
6
+ var ot = Object.getPrototypeOf, lt = Object.prototype.hasOwnProperty;
7
+ var i = (e, u) => G(e, "name", { value: u, configurable: !0 });
8
+ var Le = (e, u) => () => (e && (u = e(e = 0)), u);
9
+ var l = (e, u) => () => (u || e((u = { exports: {} }).exports, u), u.exports), Ie = (e, u) => {
10
+ for (var t in u)
11
+ G(e, t, { get: u[t], enumerable: !0 });
12
+ }, Re = (e, u, t, D) => {
13
+ if (u && typeof u == "object" || typeof u == "function")
14
+ for (let r of at(u))
15
+ !lt.call(e, r) && r !== t && G(e, r, { get: () => u[r], enumerable: !(D = st(u, r)) || D.enumerable });
16
+ return e;
17
+ };
18
+ var Oe = (e, u, t) => (t = e != null ? nt(ot(e)) : {}, Re(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ u || !e || !e.__esModule ? G(t, "default", { value: e, enumerable: !0 }) : t,
24
+ e
25
+ )), qe = (e) => Re(G({}, "__esModule", { value: !0 }), e);
26
+
27
+ // ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-base.js
28
+ var re = l((AD, Ue) => {
29
+ "use strict";
30
+ var ht = require("events"), ft = 0, De = class extends ht {
31
+ static {
32
+ i(this, "TrackerBase");
33
+ }
34
+ constructor(u) {
35
+ super(), this.id = ++ft, this.name = u;
36
+ }
37
+ };
38
+ Ue.exports = De;
39
+ });
40
+
41
+ // ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker.js
42
+ var z = l((wD, Me) => {
43
+ "use strict";
44
+ var ct = re(), ie = class extends ct {
45
+ static {
46
+ i(this, "Tracker");
47
+ }
48
+ constructor(u, t) {
49
+ super(u), this.workDone = 0, this.workTodo = t || 0;
50
+ }
51
+ completed() {
52
+ return this.workTodo === 0 ? 0 : this.workDone / this.workTodo;
53
+ }
54
+ addWork(u) {
55
+ this.workTodo += u, this.emit("change", this.name, this.completed(), this);
56
+ }
57
+ completeWork(u) {
58
+ this.workDone += u, this.workDone > this.workTodo && (this.workDone = this.workTodo), this.emit("change", this.name, this.completed(),
59
+ this);
60
+ }
61
+ finish() {
62
+ this.workTodo = this.workDone = 1, this.emit("change", this.name, 1, this);
63
+ }
64
+ };
65
+ Me.exports = ie;
66
+ });
67
+
68
+ // ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-stream.js
69
+ var se = l((yD, Ge) => {
70
+ "use strict";
71
+ var Ft = require("stream"), Ct = z(), ne = class extends Ft.Transform {
72
+ static {
73
+ i(this, "TrackerStream");
74
+ }
75
+ constructor(u, t, D) {
76
+ super(D), this.tracker = new Ct(u, t), this.name = u, this.id = this.tracker.id, this.tracker.on("change", this.trackerChange.bind(this));
77
+ }
78
+ trackerChange(u, t) {
79
+ this.emit("change", u, t, this);
80
+ }
81
+ _transform(u, t, D) {
82
+ this.tracker.completeWork(u.length ? u.length : 1), this.push(u), D();
83
+ }
84
+ _flush(u) {
85
+ this.tracker.finish(), u();
86
+ }
87
+ completed() {
88
+ return this.tracker.completed();
89
+ }
90
+ addWork(u) {
91
+ return this.tracker.addWork(u);
92
+ }
93
+ finish() {
94
+ return this.tracker.finish();
95
+ }
96
+ };
97
+ Ge.exports = ne;
98
+ });
99
+
100
+ // ../node_modules/npmlog/node_modules/are-we-there-yet/lib/tracker-group.js
101
+ var $e = l((TD, Ne) => {
102
+ "use strict";
103
+ var Et = re(), We = z(), gt = se(), ae = class e extends Et {
104
+ static {
105
+ i(this, "TrackerGroup");
106
+ }
107
+ parentGroup = null;
108
+ trackers = [];
109
+ completion = {};
110
+ weight = {};
111
+ totalWeight = 0;
112
+ finished = !1;
113
+ bubbleChange = pt(this);
114
+ nameInTree() {
115
+ for (var u = [], t = this; t; )
116
+ u.unshift(t.name), t = t.parentGroup;
117
+ return u.join("/");
118
+ }
119
+ addUnit(u, t) {
120
+ if (u.addUnit) {
121
+ for (var D = this; D; ) {
122
+ if (u === D)
123
+ throw new Error(
124
+ "Attempted to add tracker group " + u.name + " to tree that already includes it " + this.nameInTree(this)
125
+ );
126
+ D = D.parentGroup;
127
+ }
128
+ u.parentGroup = this;
129
+ }
130
+ return this.weight[u.id] = t || 1, this.totalWeight += this.weight[u.id], this.trackers.push(u), this.completion[u.id] = u.completed(),
131
+ u.on("change", this.bubbleChange), this.finished || this.emit("change", u.name, this.completion[u.id], u), u;
132
+ }
133
+ completed() {
134
+ if (this.trackers.length === 0)
135
+ return 0;
136
+ for (var u = 1 / this.totalWeight, t = 0, D = 0; D < this.trackers.length; D++) {
137
+ var r = this.trackers[D].id;
138
+ t += u * this.weight[r] * this.completion[r];
139
+ }
140
+ return t;
141
+ }
142
+ newGroup(u, t) {
143
+ return this.addUnit(new e(u), t);
144
+ }
145
+ newItem(u, t, D) {
146
+ return this.addUnit(new We(u, t), D);
147
+ }
148
+ newStream(u, t, D) {
149
+ return this.addUnit(new gt(u, t), D);
150
+ }
151
+ finish() {
152
+ this.finished = !0, this.trackers.length || this.addUnit(new We(), 1, !0);
153
+ for (var u = 0; u < this.trackers.length; u++) {
154
+ var t = this.trackers[u];
155
+ t.finish(), t.removeListener("change", this.bubbleChange);
156
+ }
157
+ this.emit("change", this.name, 1, this);
158
+ }
159
+ debug(u = 0) {
160
+ let t = " ".repeat(u), D = `${t}${this.name || "top"}: ${this.completed()}
161
+ `;
162
+ return this.trackers.forEach(function(r) {
163
+ D += r instanceof e ? r.debug(u + 1) : `${t} ${r.name}: ${r.completed()}
164
+ `;
165
+ }), D;
166
+ }
167
+ };
168
+ function pt(e) {
169
+ return function(u, t, D) {
170
+ e.completion[D.id] = t, !e.finished && e.emit("change", u || e.name, e.completed(), e);
171
+ };
172
+ }
173
+ i(pt, "bubbleChange");
174
+ Ne.exports = ae;
175
+ });
176
+
177
+ // ../node_modules/npmlog/node_modules/are-we-there-yet/lib/index.js
178
+ var ze = l((P) => {
179
+ "use strict";
180
+ P.TrackerGroup = $e();
181
+ P.Tracker = z();
182
+ P.TrackerStream = se();
183
+ });
184
+
185
+ // ../node_modules/console-control-strings/index.js
186
+ var Y = l((g) => {
187
+ "use strict";
188
+ var p = "\x1B[";
189
+ g.up = /* @__PURE__ */ i(function(u) {
190
+ return p + (u || "") + "A";
191
+ }, "up");
192
+ g.down = /* @__PURE__ */ i(function(u) {
193
+ return p + (u || "") + "B";
194
+ }, "down");
195
+ g.forward = /* @__PURE__ */ i(function(u) {
196
+ return p + (u || "") + "C";
197
+ }, "forward");
198
+ g.back = /* @__PURE__ */ i(function(u) {
199
+ return p + (u || "") + "D";
200
+ }, "back");
201
+ g.nextLine = /* @__PURE__ */ i(function(u) {
202
+ return p + (u || "") + "E";
203
+ }, "nextLine");
204
+ g.previousLine = /* @__PURE__ */ i(function(u) {
205
+ return p + (u || "") + "F";
206
+ }, "previousLine");
207
+ g.horizontalAbsolute = /* @__PURE__ */ i(function(u) {
208
+ if (u == null) throw new Error("horizontalAboslute requires a column to position to");
209
+ return p + u + "G";
210
+ }, "horizontalAbsolute");
211
+ g.eraseData = /* @__PURE__ */ i(function() {
212
+ return p + "J";
213
+ }, "eraseData");
214
+ g.eraseLine = /* @__PURE__ */ i(function() {
215
+ return p + "K";
216
+ }, "eraseLine");
217
+ g.goto = function(e, u) {
218
+ return p + u + ";" + e + "H";
219
+ };
220
+ g.gotoSOL = function() {
221
+ return "\r";
222
+ };
223
+ g.beep = function() {
224
+ return "\x07";
225
+ };
226
+ g.hideCursor = /* @__PURE__ */ i(function() {
227
+ return p + "?25l";
228
+ }, "hideCursor");
229
+ g.showCursor = /* @__PURE__ */ i(function() {
230
+ return p + "?25h";
231
+ }, "showCursor");
232
+ var Pe = {
233
+ reset: 0,
234
+ // styles
235
+ bold: 1,
236
+ italic: 3,
237
+ underline: 4,
238
+ inverse: 7,
239
+ // resets
240
+ stopBold: 22,
241
+ stopItalic: 23,
242
+ stopUnderline: 24,
243
+ stopInverse: 27,
244
+ // colors
245
+ white: 37,
246
+ black: 30,
247
+ blue: 34,
248
+ cyan: 36,
249
+ green: 32,
250
+ magenta: 35,
251
+ red: 31,
252
+ yellow: 33,
253
+ bgWhite: 47,
254
+ bgBlack: 40,
255
+ bgBlue: 44,
256
+ bgCyan: 46,
257
+ bgGreen: 42,
258
+ bgMagenta: 45,
259
+ bgRed: 41,
260
+ bgYellow: 43,
261
+ grey: 90,
262
+ brightBlack: 90,
263
+ brightRed: 91,
264
+ brightGreen: 92,
265
+ brightYellow: 93,
266
+ brightBlue: 94,
267
+ brightMagenta: 95,
268
+ brightCyan: 96,
269
+ brightWhite: 97,
270
+ bgGrey: 100,
271
+ bgBrightBlack: 100,
272
+ bgBrightRed: 101,
273
+ bgBrightGreen: 102,
274
+ bgBrightYellow: 103,
275
+ bgBrightBlue: 104,
276
+ bgBrightMagenta: 105,
277
+ bgBrightCyan: 106,
278
+ bgBrightWhite: 107
279
+ };
280
+ g.color = /* @__PURE__ */ i(function(u) {
281
+ return (arguments.length !== 1 || !Array.isArray(u)) && (u = Array.prototype.slice.call(arguments)), p + u.map(dt).join(";") + "m";
282
+ }, "color");
283
+ function dt(e) {
284
+ if (Pe[e] != null) return Pe[e];
285
+ throw new Error("Unknown color or style name: " + e);
286
+ }
287
+ i(dt, "colorNameToCode");
288
+ });
289
+
290
+ // ../node_modules/string-width/node_modules/ansi-regex/index.js
291
+ var Ve = l((RD, Ye) => {
292
+ "use strict";
293
+ Ye.exports = ({ onlyFirst: e = !1 } = {}) => {
294
+ let u = [
295
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
296
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
297
+ ].join("|");
298
+ return new RegExp(u, e ? void 0 : "g");
299
+ };
300
+ });
301
+
302
+ // ../node_modules/string-width/node_modules/strip-ansi/index.js
303
+ var He = l((OD, Ze) => {
304
+ "use strict";
305
+ var mt = Ve();
306
+ Ze.exports = (e) => typeof e == "string" ? e.replace(mt(), "") : e;
307
+ });
308
+
309
+ // ../node_modules/is-fullwidth-code-point/index.js
310
+ var Xe = l((qD, oe) => {
311
+ "use strict";
312
+ var Je = /* @__PURE__ */ i((e) => Number.isNaN(e) ? !1 : e >= 4352 && (e <= 4447 || // Hangul Jamo
313
+ e === 9001 || // LEFT-POINTING ANGLE BRACKET
314
+ e === 9002 || // RIGHT-POINTING ANGLE BRACKET
315
+ // CJK Radicals Supplement .. Enclosed CJK Letters and Months
316
+ 11904 <= e && e <= 12871 && e !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
317
+ 12880 <= e && e <= 19903 || // CJK Unified Ideographs .. Yi Radicals
318
+ 19968 <= e && e <= 42182 || // Hangul Jamo Extended-A
319
+ 43360 <= e && e <= 43388 || // Hangul Syllables
320
+ 44032 <= e && e <= 55203 || // CJK Compatibility Ideographs
321
+ 63744 <= e && e <= 64255 || // Vertical Forms
322
+ 65040 <= e && e <= 65049 || // CJK Compatibility Forms .. Small Form Variants
323
+ 65072 <= e && e <= 65131 || // Halfwidth and Fullwidth Forms
324
+ 65281 <= e && e <= 65376 || 65504 <= e && e <= 65510 || // Kana Supplement
325
+ 110592 <= e && e <= 110593 || // Enclosed Ideographic Supplement
326
+ 127488 <= e && e <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
327
+ 131072 <= e && e <= 262141), "isFullwidthCodePoint");
328
+ oe.exports = Je;
329
+ oe.exports.default = Je;
330
+ });
331
+
332
+ // ../node_modules/string-width/node_modules/emoji-regex/index.js
333
+ var Qe = l((MD, Ke) => {
334
+ "use strict";
335
+ Ke.exports = function() {
336
+ return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
337
+ };
338
+ });
339
+
340
+ // ../node_modules/string-width/index.js
341
+ var W = l((GD, le) => {
342
+ "use strict";
343
+ var vt = He(), Bt = Xe(), At = Qe(), je = /* @__PURE__ */ i((e) => {
344
+ if (typeof e != "string" || e.length === 0 || (e = vt(e), e.length === 0))
345
+ return 0;
346
+ e = e.replace(At(), " ");
347
+ let u = 0;
348
+ for (let t = 0; t < e.length; t++) {
349
+ let D = e.codePointAt(t);
350
+ D <= 31 || D >= 127 && D <= 159 || D >= 768 && D <= 879 || (D > 65535 && t++, u += Bt(D) ? 2 : 1);
351
+ }
352
+ return u;
353
+ }, "stringWidth");
354
+ le.exports = je;
355
+ le.exports.default = je;
356
+ });
357
+
358
+ // ../node_modules/wide-align/align.js
359
+ var eu = l((Z) => {
360
+ "use strict";
361
+ var he = W();
362
+ Z.center = xt;
363
+ Z.left = bt;
364
+ Z.right = wt;
365
+ function V(e) {
366
+ var u = "", t = " ", D = e;
367
+ do
368
+ D % 2 && (u += t), D = Math.floor(D / 2), t += t;
369
+ while (D);
370
+ return u;
371
+ }
372
+ i(V, "createPadding");
373
+ function bt(e, u) {
374
+ var t = e.trimRight();
375
+ if (t.length === 0 && e.length >= u) return e;
376
+ var D = "", r = he(t);
377
+ return r < u && (D = V(u - r)), t + D;
378
+ }
379
+ i(bt, "alignLeft");
380
+ function wt(e, u) {
381
+ var t = e.trimLeft();
382
+ if (t.length === 0 && e.length >= u) return e;
383
+ var D = "", r = he(t);
384
+ return r < u && (D = V(u - r)), D + t;
385
+ }
386
+ i(wt, "alignRight");
387
+ function xt(e, u) {
388
+ var t = e.trim();
389
+ if (t.length === 0 && e.length >= u) return e;
390
+ var D = "", r = "", n = he(t);
391
+ if (n < u) {
392
+ var o = parseInt((u - n) / 2, 10);
393
+ D = V(o), r = V(u - (n + o));
394
+ }
395
+ return D + t + r;
396
+ }
397
+ i(xt, "alignCenter");
398
+ });
399
+
400
+ // ../node_modules/aproba/index.js
401
+ var J = l((zD, iu) => {
402
+ "use strict";
403
+ iu.exports = Du;
404
+ function yt(e) {
405
+ return e != null && typeof e == "object" && e.hasOwnProperty("callee");
406
+ }
407
+ i(yt, "isArguments");
408
+ var w = {
409
+ "*": { label: "any", check: /* @__PURE__ */ i(() => !0, "check") },
410
+ A: { label: "array", check: /* @__PURE__ */ i((e) => Array.isArray(e) || yt(e), "check") },
411
+ S: { label: "string", check: /* @__PURE__ */ i((e) => typeof e == "string", "check") },
412
+ N: { label: "number", check: /* @__PURE__ */ i((e) => typeof e == "number", "check") },
413
+ F: { label: "function", check: /* @__PURE__ */ i((e) => typeof e == "function", "check") },
414
+ O: { label: "object", check: /* @__PURE__ */ i((e) => typeof e == "object" && e != null && !w.A.check(e) && !w.E.check(e), "check") },
415
+ B: { label: "boolean", check: /* @__PURE__ */ i((e) => typeof e == "boolean", "check") },
416
+ E: { label: "error", check: /* @__PURE__ */ i((e) => e instanceof Error, "check") },
417
+ Z: { label: "null", check: /* @__PURE__ */ i((e) => e == null, "check") }
418
+ };
419
+ function H(e, u) {
420
+ let t = u[e.length] = u[e.length] || [];
421
+ t.indexOf(e) === -1 && t.push(e);
422
+ }
423
+ i(H, "addSchema");
424
+ function Du(e, u) {
425
+ if (arguments.length !== 2) throw tu(["SA"], arguments.length);
426
+ if (!e) throw uu(0, "rawSchemas");
427
+ if (!u) throw uu(1, "args");
428
+ if (!w.S.check(e)) throw fe(0, ["string"], e);
429
+ if (!w.A.check(u)) throw fe(1, ["array"], u);
430
+ let t = e.split("|"), D = {};
431
+ t.forEach((n) => {
432
+ for (let o = 0; o < n.length; ++o) {
433
+ let h = n[o];
434
+ if (!w[h]) throw _t(o, h);
435
+ }
436
+ if (/E.*E/.test(n)) throw Tt(n);
437
+ H(n, D), /E/.test(n) && (H(n.replace(/E.*$/, "E"), D), H(n.replace(/E/, "Z"), D), n.length === 1 && H("", D));
438
+ });
439
+ let r = D[u.length];
440
+ if (!r)
441
+ throw tu(Object.keys(D), u.length);
442
+ for (let n = 0; n < u.length; ++n) {
443
+ let o = r.filter((h) => {
444
+ let f = h[n], c = w[f].check;
445
+ return c(u[n]);
446
+ });
447
+ if (!o.length) {
448
+ let h = r.map((f) => w[f[n]].label).filter((f) => f != null);
449
+ throw fe(n, h, u[n]);
450
+ }
451
+ r = o;
452
+ }
453
+ }
454
+ i(Du, "validate");
455
+ function uu(e) {
456
+ return N("EMISSINGARG", "Missing required argument #" + (e + 1));
457
+ }
458
+ i(uu, "missingRequiredArg");
459
+ function _t(e, u) {
460
+ return N("EUNKNOWNTYPE", "Unknown type " + u + " in argument #" + (e + 1));
461
+ }
462
+ i(_t, "unknownType");
463
+ function fe(e, u, t) {
464
+ let D;
465
+ return Object.keys(w).forEach((r) => {
466
+ w[r].check(t) && (D = w[r].label);
467
+ }), N("EINVALIDTYPE", "Argument #" + (e + 1) + ": Expected " + ru(u) + " but got " + D);
468
+ }
469
+ i(fe, "invalidType");
470
+ function ru(e) {
471
+ return e.join(", ").replace(/, ([^,]+)$/, " or $1");
472
+ }
473
+ i(ru, "englishList");
474
+ function tu(e, u) {
475
+ let t = ru(e), D = e.every((r) => r.length === 1) ? "argument" : "arguments";
476
+ return N("EWRONGARGCOUNT", "Expected " + t + " " + D + " but got " + u);
477
+ }
478
+ i(tu, "wrongNumberOfArgs");
479
+ function Tt(e) {
480
+ return N(
481
+ "ETOOMANYERRORTYPES",
482
+ 'Only one error type per argument signature is allowed, more than one found in "' + e + '"'
483
+ );
484
+ }
485
+ i(Tt, "moreThanOneError");
486
+ function N(e, u) {
487
+ let t = new Error(u);
488
+ return t.code = e, Error.captureStackTrace && Error.captureStackTrace(t, Du), t;
489
+ }
490
+ i(N, "newException");
491
+ });
492
+
493
+ // ../node_modules/npmlog/node_modules/ansi-regex/index.js
494
+ var su = l((YD, nu) => {
495
+ "use strict";
496
+ nu.exports = ({ onlyFirst: e = !1 } = {}) => {
497
+ let u = [
498
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
499
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
500
+ ].join("|");
501
+ return new RegExp(u, e ? void 0 : "g");
502
+ };
503
+ });
504
+
505
+ // ../node_modules/npmlog/node_modules/strip-ansi/index.js
506
+ var ou = l((VD, au) => {
507
+ "use strict";
508
+ var kt = su();
509
+ au.exports = (e) => typeof e == "string" ? e.replace(kt(), "") : e;
510
+ });
511
+
512
+ // ../node_modules/npmlog/node_modules/gauge/lib/wide-truncate.js
513
+ var Fe = l((ZD, lu) => {
514
+ "use strict";
515
+ var ce = W(), St = ou();
516
+ lu.exports = Lt;
517
+ function Lt(e, u) {
518
+ if (ce(e) === 0)
519
+ return e;
520
+ if (u <= 0)
521
+ return "";
522
+ if (ce(e) <= u)
523
+ return e;
524
+ for (var t = St(e), D = e.length + t.length, r = e.slice(0, u + D); ce(r) > u; )
525
+ r = r.slice(0, -1);
526
+ return r;
527
+ }
528
+ i(Lt, "wideTruncate");
529
+ });
530
+
531
+ // ../node_modules/npmlog/node_modules/gauge/lib/error.js
532
+ var hu = l((X) => {
533
+ "use strict";
534
+ var It = require("util"), Rt = X.User = /* @__PURE__ */ i(function e(u) {
535
+ var t = new Error(u);
536
+ return Error.captureStackTrace(t, e), t.code = "EGAUGE", t;
537
+ }, "User");
538
+ X.MissingTemplateValue = /* @__PURE__ */ i(function e(u, t) {
539
+ var D = new Rt(It.format('Missing template value "%s"', u.type));
540
+ return Error.captureStackTrace(D, e), D.template = u, D.values = t, D;
541
+ }, "MissingTemplateValue");
542
+ X.Internal = /* @__PURE__ */ i(function e(u) {
543
+ var t = new Error(u);
544
+ return Error.captureStackTrace(t, e), t.code = "EGAUGEINTERNAL", t;
545
+ }, "Internal");
546
+ });
547
+
548
+ // ../node_modules/npmlog/node_modules/gauge/lib/template-item.js
549
+ var cu = l((KD, fu) => {
550
+ "use strict";
551
+ var Ot = W();
552
+ fu.exports = I;
553
+ function Ce(e) {
554
+ return typeof e != "string" ? !1 : e.slice(-1) === "%";
555
+ }
556
+ i(Ce, "isPercent");
557
+ function Ee(e) {
558
+ return Number(e.slice(0, -1)) / 100;
559
+ }
560
+ i(Ee, "percent");
561
+ function I(e, u) {
562
+ if (this.overallOutputLength = u, this.finished = !1, this.type = null, this.value = null, this.length = null, this.maxLength = null, this.
563
+ minLength = null, this.kerning = null, this.align = "left", this.padLeft = 0, this.padRight = 0, this.index = null, this.first = null, this.
564
+ last = null, typeof e == "string")
565
+ this.value = e;
566
+ else
567
+ for (var t in e)
568
+ this[t] = e[t];
569
+ return Ce(this.length) && (this.length = Math.round(this.overallOutputLength * Ee(this.length))), Ce(this.minLength) && (this.minLength =
570
+ Math.round(this.overallOutputLength * Ee(this.minLength))), Ce(this.maxLength) && (this.maxLength = Math.round(this.overallOutputLength *
571
+ Ee(this.maxLength))), this;
572
+ }
573
+ i(I, "TemplateItem");
574
+ I.prototype = {};
575
+ I.prototype.getBaseLength = function() {
576
+ var e = this.length;
577
+ return e == null && typeof this.value == "string" && this.maxLength == null && this.minLength == null && (e = Ot(this.value)), e;
578
+ };
579
+ I.prototype.getLength = function() {
580
+ var e = this.getBaseLength();
581
+ return e == null ? null : e + this.padLeft + this.padRight;
582
+ };
583
+ I.prototype.getMaxLength = function() {
584
+ return this.maxLength == null ? null : this.maxLength + this.padLeft + this.padRight;
585
+ };
586
+ I.prototype.getMinLength = function() {
587
+ return this.minLength == null ? null : this.minLength + this.padLeft + this.padRight;
588
+ };
589
+ });
590
+
591
+ // ../node_modules/npmlog/node_modules/gauge/lib/render-template.js
592
+ var ge = l((jD, gu) => {
593
+ "use strict";
594
+ var $ = eu(), qt = J(), Fu = Fe(), R = hu(), Ut = cu();
595
+ function Mt(e) {
596
+ return function(u) {
597
+ return Pt(u, e);
598
+ };
599
+ }
600
+ i(Mt, "renderValueWithValues");
601
+ var Gt = gu.exports = function(e, u, t) {
602
+ var D = $t(e, u, t), r = D.map(Mt(t)).join("");
603
+ return $.left(Fu(r, e), e);
604
+ };
605
+ function Cu(e) {
606
+ var u = e.type[0].toUpperCase() + e.type.slice(1);
607
+ return "pre" + u;
608
+ }
609
+ i(Cu, "preType");
610
+ function Eu(e) {
611
+ var u = e.type[0].toUpperCase() + e.type.slice(1);
612
+ return "post" + u;
613
+ }
614
+ i(Eu, "postType");
615
+ function Wt(e, u) {
616
+ if (e.type)
617
+ return u[Cu(e)] || u[Eu(e)];
618
+ }
619
+ i(Wt, "hasPreOrPost");
620
+ function Nt(e, u) {
621
+ var t = Object.assign({}, e), D = Object.create(u), r = [], n = Cu(t), o = Eu(t);
622
+ return D[n] && (r.push({ value: D[n] }), D[n] = null), t.minLength = null, t.length = null, t.maxLength = null, r.push(t), D[t.type] = D[t.
623
+ type], D[o] && (r.push({ value: D[o] }), D[o] = null), function(h, f, c) {
624
+ return Gt(c, r, D);
625
+ };
626
+ }
627
+ i(Nt, "generatePreAndPost");
628
+ function $t(e, u, t) {
629
+ function D(a, b, it) {
630
+ var E = new Ut(a, e), Se = E.type;
631
+ if (E.value == null)
632
+ if (Se in t)
633
+ E.value = t[Se];
634
+ else {
635
+ if (E.default == null)
636
+ throw new R.MissingTemplateValue(E, t);
637
+ E.value = E.default;
638
+ }
639
+ return E.value == null || E.value === "" ? null : (E.index = b, E.first = b === 0, E.last = b === it.length - 1, Wt(E, t) && (E.value =
640
+ Nt(E, t)), E);
641
+ }
642
+ i(D, "cloneAndObjectify");
643
+ var r = u.map(D).filter(function(a) {
644
+ return a != null;
645
+ }), n = e, o = r.length;
646
+ function h(a) {
647
+ a > n && (a = n), n -= a;
648
+ }
649
+ i(h, "consumeSpace");
650
+ function f(a, b) {
651
+ if (a.finished)
652
+ throw new R.Internal("Tried to finish template item that was already finished");
653
+ if (b === 1 / 0)
654
+ throw new R.Internal("Length of template item cannot be infinity");
655
+ if (b != null && (a.length = b), a.minLength = null, a.maxLength = null, --o, a.finished = !0, a.length == null && (a.length = a.getBaseLength()),
656
+ a.length == null)
657
+ throw new R.Internal("Finished template items must have a length");
658
+ h(a.getLength());
659
+ }
660
+ i(f, "finishSizing"), r.forEach(function(a) {
661
+ if (a.kerning) {
662
+ var b = a.first ? 0 : r[a.index - 1].padRight;
663
+ !a.first && b < a.kerning && (a.padLeft = a.kerning - b), a.last || (a.padRight = a.kerning);
664
+ }
665
+ }), r.forEach(function(a) {
666
+ a.getBaseLength() != null && f(a);
667
+ });
668
+ var c = 0, F, m;
669
+ do
670
+ F = !1, m = Math.round(n / o), r.forEach(function(a) {
671
+ a.finished || a.maxLength && a.getMaxLength() < m && (f(a, a.maxLength), F = !0);
672
+ });
673
+ while (F && c++ < r.length);
674
+ if (F)
675
+ throw new R.Internal("Resize loop iterated too many times while determining maxLength");
676
+ c = 0;
677
+ do
678
+ F = !1, m = Math.round(n / o), r.forEach(function(a) {
679
+ a.finished || a.minLength && a.getMinLength() >= m && (f(a, a.minLength), F = !0);
680
+ });
681
+ while (F && c++ < r.length);
682
+ if (F)
683
+ throw new R.Internal("Resize loop iterated too many times while determining minLength");
684
+ return m = Math.round(n / o), r.forEach(function(a) {
685
+ a.finished || f(a, m);
686
+ }), r;
687
+ }
688
+ i($t, "prepareItems");
689
+ function zt(e, u, t) {
690
+ return qt("OON", arguments), e.type ? e.value(u, u[e.type + "Theme"] || {}, t) : e.value(u, {}, t);
691
+ }
692
+ i(zt, "renderFunction");
693
+ function Pt(e, u) {
694
+ var t = e.getBaseLength(), D = typeof e.value == "function" ? zt(e, u, t) : e.value;
695
+ if (D == null || D === "")
696
+ return "";
697
+ var r = $[e.align] || $.left, n = e.padLeft ? $.left("", e.padLeft) : "", o = e.padRight ? $.right("", e.padRight) : "", h = Fu(String(D),
698
+ t), f = r(h, t);
699
+ return n + f + o;
700
+ }
701
+ i(Pt, "renderValue");
702
+ });
703
+
704
+ // ../node_modules/npmlog/node_modules/gauge/lib/plumbing.js
705
+ var du = l((ur, pu) => {
706
+ "use strict";
707
+ var k = Y(), Yt = ge(), K = J(), y = pu.exports = function(e, u, t) {
708
+ t || (t = 80), K("OAN", [e, u, t]), this.showing = !1, this.theme = e, this.width = t, this.template = u;
709
+ };
710
+ y.prototype = {};
711
+ y.prototype.setTheme = function(e) {
712
+ K("O", [e]), this.theme = e;
713
+ };
714
+ y.prototype.setTemplate = function(e) {
715
+ K("A", [e]), this.template = e;
716
+ };
717
+ y.prototype.setWidth = function(e) {
718
+ K("N", [e]), this.width = e;
719
+ };
720
+ y.prototype.hide = function() {
721
+ return k.gotoSOL() + k.eraseLine();
722
+ };
723
+ y.prototype.hideCursor = k.hideCursor;
724
+ y.prototype.showCursor = k.showCursor;
725
+ y.prototype.show = function(e) {
726
+ var u = Object.create(this.theme);
727
+ for (var t in e)
728
+ u[t] = e[t];
729
+ return Yt(this.width, this.template, u).trim() + k.color("reset") + k.eraseLine() + k.gotoSOL();
730
+ };
731
+ });
732
+
733
+ // ../node_modules/has-unicode/index.js
734
+ var vu = l((Dr, mu) => {
735
+ "use strict";
736
+ var Vt = require("os"), tr = mu.exports = function() {
737
+ if (Vt.type() == "Windows_NT")
738
+ return !1;
739
+ var e = /UTF-?8$/i, u = process.env.LC_ALL || process.env.LC_CTYPE || process.env.LANG;
740
+ return e.test(u);
741
+ };
742
+ });
743
+
744
+ // ../node_modules/color-support/index.js
745
+ var bu = l((rr, Au) => {
746
+ Au.exports = Bu({ alwaysReturn: !0 }, Bu);
747
+ function O(e, u) {
748
+ return e.level = 0, e.hasBasic = !1, e.has256 = !1, e.has16m = !1, u.alwaysReturn ? e : !1;
749
+ }
750
+ i(O, "hasNone");
751
+ function Q(e) {
752
+ return e.hasBasic = !0, e.has256 = !1, e.has16m = !1, e.level = 1, e;
753
+ }
754
+ i(Q, "hasBasic");
755
+ function q(e) {
756
+ return e.hasBasic = !0, e.has256 = !0, e.has16m = !1, e.level = 2, e;
757
+ }
758
+ i(q, "has256");
759
+ function j(e) {
760
+ return e.hasBasic = !0, e.has256 = !0, e.has16m = !0, e.level = 3, e;
761
+ }
762
+ i(j, "has16m");
763
+ function Bu(e, u) {
764
+ if (e = e || {}, u = u || {}, typeof e.level == "number")
765
+ switch (e.level) {
766
+ case 0:
767
+ return O(u, e);
768
+ case 1:
769
+ return Q(u);
770
+ case 2:
771
+ return q(u);
772
+ case 3:
773
+ return j(u);
774
+ }
775
+ if (u.level = 0, u.hasBasic = !1, u.has256 = !1, u.has16m = !1, typeof process > "u" || !process || !process.stdout || !process.env || !process.
776
+ platform)
777
+ return O(u, e);
778
+ var t = e.env || process.env, D = e.stream || process.stdout, r = e.term || t.TERM || "", n = e.platform || process.platform;
779
+ if (!e.ignoreTTY && !D.isTTY || !e.ignoreDumb && r === "dumb" && !t.COLORTERM)
780
+ return O(u, e);
781
+ if (n === "win32")
782
+ return Q(u);
783
+ if (t.TMUX)
784
+ return q(u);
785
+ if (!e.ignoreCI && (t.CI || t.TEAMCITY_VERSION))
786
+ return t.TRAVIS ? q(u) : O(u, e);
787
+ switch (t.TERM_PROGRAM) {
788
+ case "iTerm.app":
789
+ var o = t.TERM_PROGRAM_VERSION || "0.";
790
+ return /^[0-2]\./.test(o) ? q(u) : j(u);
791
+ case "HyperTerm":
792
+ case "Hyper":
793
+ return j(u);
794
+ case "MacTerm":
795
+ return j(u);
796
+ case "Apple_Terminal":
797
+ return q(u);
798
+ }
799
+ return /^xterm-256/.test(r) ? q(u) : /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(r) || t.COLORTERM ? Q(u) : O(u, e);
800
+ }
801
+ i(Bu, "colorSupport");
802
+ });
803
+
804
+ // ../node_modules/npmlog/node_modules/gauge/lib/has-color.js
805
+ var xu = l((nr, wu) => {
806
+ "use strict";
807
+ var Zt = bu();
808
+ wu.exports = Zt().hasBasic;
809
+ });
810
+
811
+ // ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/signals.js
812
+ var _, yu = Le(() => {
813
+ _ = [];
814
+ _.push("SIGHUP", "SIGINT", "SIGTERM");
815
+ process.platform !== "win32" && _.push(
816
+ "SIGALRM",
817
+ "SIGABRT",
818
+ "SIGVTALRM",
819
+ "SIGXCPU",
820
+ "SIGXFSZ",
821
+ "SIGUSR2",
822
+ "SIGTRAP",
823
+ "SIGSYS",
824
+ "SIGQUIT",
825
+ "SIGIOT"
826
+ // should detect profiler and enable/disable accordingly.
827
+ // see #21
828
+ // 'SIGPROF'
829
+ );
830
+ process.platform === "linux" && _.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
831
+ });
832
+
833
+ // ../node_modules/npmlog/node_modules/signal-exit/dist/mjs/index.js
834
+ var _u = {};
835
+ Ie(_u, {
836
+ load: () => Kt,
837
+ onExit: () => Xt,
838
+ signals: () => _,
839
+ unload: () => Qt
840
+ });
841
+ var ee, pe, de, Ht, me, ue, Jt, ve, Be, Ae, Xt, Kt, Qt, Tu = Le(() => {
842
+ yu();
843
+ ee = /* @__PURE__ */ i((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.
844
+ reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "\
845
+ function", "processOk"), pe = Symbol.for("signal-exit emitter"), de = globalThis, Ht = Object.defineProperty.bind(Object), me = class {
846
+ static {
847
+ i(this, "Emitter");
848
+ }
849
+ emitted = {
850
+ afterExit: !1,
851
+ exit: !1
852
+ };
853
+ listeners = {
854
+ afterExit: [],
855
+ exit: []
856
+ };
857
+ count = 0;
858
+ id = Math.random();
859
+ constructor() {
860
+ if (de[pe])
861
+ return de[pe];
862
+ Ht(de, pe, {
863
+ value: this,
864
+ writable: !1,
865
+ enumerable: !1,
866
+ configurable: !1
867
+ });
868
+ }
869
+ on(u, t) {
870
+ this.listeners[u].push(t);
871
+ }
872
+ removeListener(u, t) {
873
+ let D = this.listeners[u], r = D.indexOf(t);
874
+ r !== -1 && (r === 0 && D.length === 1 ? D.length = 0 : D.splice(r, 1));
875
+ }
876
+ emit(u, t, D) {
877
+ if (this.emitted[u])
878
+ return !1;
879
+ this.emitted[u] = !0;
880
+ let r = !1;
881
+ for (let n of this.listeners[u])
882
+ r = n(t, D) === !0 || r;
883
+ return u === "exit" && (r = this.emit("afterExit", t, D) || r), r;
884
+ }
885
+ }, ue = class {
886
+ static {
887
+ i(this, "SignalExitBase");
888
+ }
889
+ }, Jt = /* @__PURE__ */ i((e) => ({
890
+ onExit(u, t) {
891
+ return e.onExit(u, t);
892
+ },
893
+ load() {
894
+ return e.load();
895
+ },
896
+ unload() {
897
+ return e.unload();
898
+ }
899
+ }), "signalExitWrap"), ve = class extends ue {
900
+ static {
901
+ i(this, "SignalExitFallback");
902
+ }
903
+ onExit() {
904
+ return () => {
905
+ };
906
+ }
907
+ load() {
908
+ }
909
+ unload() {
910
+ }
911
+ }, Be = class extends ue {
912
+ static {
913
+ i(this, "SignalExit");
914
+ }
915
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
916
+ // so use a supported signal instead
917
+ /* c8 ignore start */
918
+ #n = Ae.platform === "win32" ? "SIGINT" : "SIGHUP";
919
+ /* c8 ignore stop */
920
+ #u = new me();
921
+ #e;
922
+ #r;
923
+ #i;
924
+ #D = {};
925
+ #t = !1;
926
+ constructor(u) {
927
+ super(), this.#e = u, this.#D = {};
928
+ for (let t of _)
929
+ this.#D[t] = () => {
930
+ let D = this.#e.listeners(t), { count: r } = this.#u, n = u;
931
+ if (typeof n.__signal_exit_emitter__ == "object" && typeof n.__signal_exit_emitter__.count == "number" && (r += n.__signal_exit_emitter__.
932
+ count), D.length === r) {
933
+ this.unload();
934
+ let o = this.#u.emit("exit", null, t), h = t === "SIGHUP" ? this.#n : t;
935
+ o || u.kill(u.pid, h);
936
+ }
937
+ };
938
+ this.#i = u.reallyExit, this.#r = u.emit;
939
+ }
940
+ onExit(u, t) {
941
+ if (!ee(this.#e))
942
+ return () => {
943
+ };
944
+ this.#t === !1 && this.load();
945
+ let D = t?.alwaysLast ? "afterExit" : "exit";
946
+ return this.#u.on(D, u), () => {
947
+ this.#u.removeListener(D, u), this.#u.listeners.exit.length === 0 && this.#u.listeners.afterExit.length === 0 && this.unload();
948
+ };
949
+ }
950
+ load() {
951
+ if (!this.#t) {
952
+ this.#t = !0, this.#u.count += 1;
953
+ for (let u of _)
954
+ try {
955
+ let t = this.#D[u];
956
+ t && this.#e.on(u, t);
957
+ } catch {
958
+ }
959
+ this.#e.emit = (u, ...t) => this.#a(u, ...t), this.#e.reallyExit = (u) => this.#s(u);
960
+ }
961
+ }
962
+ unload() {
963
+ this.#t && (this.#t = !1, _.forEach((u) => {
964
+ let t = this.#D[u];
965
+ if (!t)
966
+ throw new Error("Listener not defined for signal: " + u);
967
+ try {
968
+ this.#e.removeListener(u, t);
969
+ } catch {
970
+ }
971
+ }), this.#e.emit = this.#r, this.#e.reallyExit = this.#i, this.#u.count -= 1);
972
+ }
973
+ #s(u) {
974
+ return ee(this.#e) ? (this.#e.exitCode = u || 0, this.#u.emit("exit", this.#e.exitCode, null), this.#i.call(this.#e, this.#e.exitCode)) :
975
+ 0;
976
+ }
977
+ #a(u, ...t) {
978
+ let D = this.#r;
979
+ if (u === "exit" && ee(this.#e)) {
980
+ typeof t[0] == "number" && (this.#e.exitCode = t[0]);
981
+ let r = D.call(this.#e, u, ...t);
982
+ return this.#u.emit("exit", this.#e.exitCode, null), r;
983
+ } else
984
+ return D.call(this.#e, u, ...t);
985
+ }
986
+ }, Ae = globalThis.process, {
987
+ onExit: (
988
+ /**
989
+ * Called when the process is exiting, whether via signal, explicit
990
+ * exit, or running out of stuff to do.
991
+ *
992
+ * If the global process object is not suitable for instrumentation,
993
+ * then this will be a no-op.
994
+ *
995
+ * Returns a function that may be used to unload signal-exit.
996
+ */
997
+ Xt
998
+ ),
999
+ load: (
1000
+ /**
1001
+ * Load the listeners. Likely you never need to call this, unless
1002
+ * doing a rather deep integration with signal-exit functionality.
1003
+ * Mostly exposed for the benefit of testing.
1004
+ *
1005
+ * @internal
1006
+ */
1007
+ Kt
1008
+ ),
1009
+ unload: (
1010
+ /**
1011
+ * Unload the listeners. Likely you never need to call this, unless
1012
+ * doing a rather deep integration with signal-exit functionality.
1013
+ * Mostly exposed for the benefit of testing.
1014
+ *
1015
+ * @internal
1016
+ */
1017
+ Qt
1018
+ )
1019
+ } = Jt(ee(Ae) ? new Be(Ae) : new ve());
1020
+ });
1021
+
1022
+ // ../node_modules/npmlog/node_modules/gauge/lib/spin.js
1023
+ var Su = l((lr, ku) => {
1024
+ "use strict";
1025
+ ku.exports = /* @__PURE__ */ i(function(u, t) {
1026
+ return u[t % u.length];
1027
+ }, "spin");
1028
+ });
1029
+
1030
+ // ../node_modules/npmlog/node_modules/gauge/lib/progress-bar.js
1031
+ var Ru = l((fr, Iu) => {
1032
+ "use strict";
1033
+ var jt = J(), eD = ge(), uD = Fe(), tD = W();
1034
+ Iu.exports = function(e, u, t) {
1035
+ if (jt("ONN", [e, u, t]), t < 0 && (t = 0), t > 1 && (t = 1), u <= 0)
1036
+ return "";
1037
+ var D = Math.round(u * t), r = u - D, n = [
1038
+ { type: "complete", value: Lu(e.complete, D), length: D },
1039
+ { type: "remaining", value: Lu(e.remaining, r), length: r }
1040
+ ];
1041
+ return eD(u, n, e);
1042
+ };
1043
+ function Lu(e, u) {
1044
+ var t = "", D = u;
1045
+ do
1046
+ D % 2 && (t += e), D = Math.floor(D / 2), e += e;
1047
+ while (D && tD(t) < u);
1048
+ return uD(t, u);
1049
+ }
1050
+ i(Lu, "repeat");
1051
+ });
1052
+
1053
+ // ../node_modules/npmlog/node_modules/gauge/lib/base-theme.js
1054
+ var qu = l((Fr, Ou) => {
1055
+ "use strict";
1056
+ var DD = Su(), rD = Ru();
1057
+ Ou.exports = {
1058
+ activityIndicator: /* @__PURE__ */ i(function(e, u, t) {
1059
+ if (e.spun != null)
1060
+ return DD(u, e.spun);
1061
+ }, "activityIndicator"),
1062
+ progressbar: /* @__PURE__ */ i(function(e, u, t) {
1063
+ if (e.completed != null)
1064
+ return rD(u, t, e.completed);
1065
+ }, "progressbar")
1066
+ };
1067
+ });
1068
+
1069
+ // ../node_modules/npmlog/node_modules/gauge/lib/theme-set.js
1070
+ var Mu = l((Er, Uu) => {
1071
+ "use strict";
1072
+ Uu.exports = function() {
1073
+ return d.newThemeSet();
1074
+ };
1075
+ var d = {};
1076
+ d.baseTheme = qu();
1077
+ d.newTheme = function(e, u) {
1078
+ return u || (u = e, e = this.baseTheme), Object.assign({}, e, u);
1079
+ };
1080
+ d.getThemeNames = function() {
1081
+ return Object.keys(this.themes);
1082
+ };
1083
+ d.addTheme = function(e, u, t) {
1084
+ this.themes[e] = this.newTheme(u, t);
1085
+ };
1086
+ d.addToAllThemes = function(e) {
1087
+ var u = this.themes;
1088
+ Object.keys(u).forEach(function(t) {
1089
+ Object.assign(u[t], e);
1090
+ }), Object.assign(this.baseTheme, e);
1091
+ };
1092
+ d.getTheme = function(e) {
1093
+ if (!this.themes[e])
1094
+ throw this.newMissingThemeError(e);
1095
+ return this.themes[e];
1096
+ };
1097
+ d.setDefault = function(e, u) {
1098
+ u == null && (u = e, e = {});
1099
+ var t = e.platform == null ? "fallback" : e.platform, D = !!e.hasUnicode, r = !!e.hasColor;
1100
+ this.defaults[t] || (this.defaults[t] = { true: {}, false: {} }), this.defaults[t][D][r] = u;
1101
+ };
1102
+ d.getDefault = function(e) {
1103
+ e || (e = {});
1104
+ var u = e.platform || process.platform, t = this.defaults[u] || this.defaults.fallback, D = !!e.hasUnicode, r = !!e.hasColor;
1105
+ if (!t)
1106
+ throw this.newMissingDefaultThemeError(u, D, r);
1107
+ if (!t[D][r]) {
1108
+ if (D && r && t[!D][r])
1109
+ D = !1;
1110
+ else if (D && r && t[D][!r])
1111
+ r = !1;
1112
+ else if (D && r && t[!D][!r])
1113
+ D = !1, r = !1;
1114
+ else if (D && !r && t[!D][r])
1115
+ D = !1;
1116
+ else if (!D && r && t[D][!r])
1117
+ r = !1;
1118
+ else if (t === this.defaults.fallback)
1119
+ throw this.newMissingDefaultThemeError(u, D, r);
1120
+ }
1121
+ return t[D][r] ? this.getTheme(t[D][r]) : this.getDefault(Object.assign({}, e, { platform: "fallback" }));
1122
+ };
1123
+ d.newMissingThemeError = /* @__PURE__ */ i(function e(u) {
1124
+ var t = new Error('Could not find a gauge theme named "' + u + '"');
1125
+ return Error.captureStackTrace.call(t, e), t.theme = u, t.code = "EMISSINGTHEME", t;
1126
+ }, "newMissingThemeError");
1127
+ d.newMissingDefaultThemeError = /* @__PURE__ */ i(function e(u, t, D) {
1128
+ var r = new Error(
1129
+ `Could not find a gauge theme for your platform/unicode/color use combo:
1130
+ platform = ` + u + `
1131
+ hasUnicode = ` + t + `
1132
+ hasColor = ` + D
1133
+ );
1134
+ return Error.captureStackTrace.call(r, e), r.platform = u, r.hasUnicode = t, r.hasColor = D, r.code = "EMISSINGTHEME", r;
1135
+ }, "newMissingDefaultThemeError");
1136
+ d.newThemeSet = function() {
1137
+ var e = /* @__PURE__ */ i(function(u) {
1138
+ return e.getDefault(u);
1139
+ }, "themeset");
1140
+ return Object.assign(e, d, {
1141
+ themes: Object.assign({}, this.themes),
1142
+ baseTheme: Object.assign({}, this.baseTheme),
1143
+ defaults: JSON.parse(JSON.stringify(this.defaults || {}))
1144
+ });
1145
+ };
1146
+ });
1147
+
1148
+ // ../node_modules/npmlog/node_modules/gauge/lib/themes.js
1149
+ var Wu = l((pr, Gu) => {
1150
+ "use strict";
1151
+ var T = Y().color, iD = Mu(), v = Gu.exports = new iD();
1152
+ v.addTheme("ASCII", {
1153
+ preProgressbar: "[",
1154
+ postProgressbar: "]",
1155
+ progressbarTheme: {
1156
+ complete: "#",
1157
+ remaining: "."
1158
+ },
1159
+ activityIndicatorTheme: "-\\|/",
1160
+ preSubsection: ">"
1161
+ });
1162
+ v.addTheme("colorASCII", v.getTheme("ASCII"), {
1163
+ progressbarTheme: {
1164
+ preComplete: T("bgBrightWhite", "brightWhite"),
1165
+ complete: "#",
1166
+ postComplete: T("reset"),
1167
+ preRemaining: T("bgBrightBlack", "brightBlack"),
1168
+ remaining: ".",
1169
+ postRemaining: T("reset")
1170
+ }
1171
+ });
1172
+ v.addTheme("brailleSpinner", {
1173
+ preProgressbar: "(",
1174
+ postProgressbar: ")",
1175
+ progressbarTheme: {
1176
+ complete: "#",
1177
+ remaining: "\u2802"
1178
+ },
1179
+ activityIndicatorTheme: "\u280B\u2819\u2839\u2838\u283C\u2834\u2826\u2827\u2807\u280F",
1180
+ preSubsection: ">"
1181
+ });
1182
+ v.addTheme("colorBrailleSpinner", v.getTheme("brailleSpinner"), {
1183
+ progressbarTheme: {
1184
+ preComplete: T("bgBrightWhite", "brightWhite"),
1185
+ complete: "#",
1186
+ postComplete: T("reset"),
1187
+ preRemaining: T("bgBrightBlack", "brightBlack"),
1188
+ remaining: "\u2802",
1189
+ postRemaining: T("reset")
1190
+ }
1191
+ });
1192
+ v.setDefault({}, "ASCII");
1193
+ v.setDefault({ hasColor: !0 }, "colorASCII");
1194
+ v.setDefault({ platform: "darwin", hasUnicode: !0 }, "brailleSpinner");
1195
+ v.setDefault({ platform: "darwin", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
1196
+ v.setDefault({ platform: "linux", hasUnicode: !0 }, "brailleSpinner");
1197
+ v.setDefault({ platform: "linux", hasUnicode: !0, hasColor: !0 }, "colorBrailleSpinner");
1198
+ });
1199
+
1200
+ // ../node_modules/npmlog/node_modules/gauge/lib/set-interval.js
1201
+ var $u = l((dr, Nu) => {
1202
+ "use strict";
1203
+ Nu.exports = setInterval;
1204
+ });
1205
+
1206
+ // ../node_modules/npmlog/node_modules/gauge/lib/process.js
1207
+ var be = l((mr, zu) => {
1208
+ "use strict";
1209
+ zu.exports = process;
1210
+ });
1211
+
1212
+ // ../node_modules/npmlog/node_modules/gauge/lib/set-immediate.js
1213
+ var Pu = l((vr, we) => {
1214
+ "use strict";
1215
+ var nD = be();
1216
+ try {
1217
+ we.exports = setImmediate;
1218
+ } catch {
1219
+ we.exports = nD.nextTick;
1220
+ }
1221
+ });
1222
+
1223
+ // ../node_modules/npmlog/node_modules/gauge/lib/index.js
1224
+ var Vu = l((Br, Yu) => {
1225
+ "use strict";
1226
+ var sD = du(), aD = vu(), oD = xu(), lD = (Tu(), qe(_u)).onExit, hD = Wu(), fD = $u(), S = be(), cD = Pu();
1227
+ Yu.exports = C;
1228
+ function te(e, u) {
1229
+ return function() {
1230
+ return u.call(e);
1231
+ };
1232
+ }
1233
+ i(te, "callWith");
1234
+ function C(e, u) {
1235
+ var t, D;
1236
+ e && e.write ? (D = e, t = u || {}) : u && u.write ? (D = u, t = e || {}) : (D = S.stderr, t = e || u || {}), this._status = {
1237
+ spun: 0,
1238
+ section: "",
1239
+ subsection: ""
1240
+ }, this._paused = !1, this._disabled = !0, this._showing = !1, this._onScreen = !1, this._needsRedraw = !1, this._hideCursor = t.hideCursor ==
1241
+ null ? !0 : t.hideCursor, this._fixedFramerate = t.fixedFramerate == null ? !/^v0\.8\./.test(S.version) : t.fixedFramerate, this._lastUpdateAt =
1242
+ null, this._updateInterval = t.updateInterval == null ? 50 : t.updateInterval, this._themes = t.themes || hD, this._theme = t.theme;
1243
+ var r = this._computeTheme(t.theme), n = t.template || [
1244
+ { type: "progressbar", length: 20 },
1245
+ { type: "activityIndicator", kerning: 1, length: 1 },
1246
+ { type: "section", kerning: 1, default: "" },
1247
+ { type: "subsection", kerning: 1, default: "" }
1248
+ ];
1249
+ this.setWriteTo(D, t.tty);
1250
+ var o = t.Plumbing || sD;
1251
+ this._gauge = new o(r, n, this.getWidth()), this._$$doRedraw = te(this, this._doRedraw), this._$$handleSizeChange = te(this, this._handleSizeChange),
1252
+ this._cleanupOnExit = t.cleanupOnExit == null || t.cleanupOnExit, this._removeOnExit = null, t.enabled || t.enabled == null && this._tty &&
1253
+ this._tty.isTTY ? this.enable() : this.disable();
1254
+ }
1255
+ i(C, "Gauge");
1256
+ C.prototype = {};
1257
+ C.prototype.isEnabled = function() {
1258
+ return !this._disabled;
1259
+ };
1260
+ C.prototype.setTemplate = function(e) {
1261
+ this._gauge.setTemplate(e), this._showing && this._requestRedraw();
1262
+ };
1263
+ C.prototype._computeTheme = function(e) {
1264
+ if (e || (e = {}), typeof e == "string")
1265
+ e = this._themes.getTheme(e);
1266
+ else if (Object.keys(e).length === 0 || e.hasUnicode != null || e.hasColor != null) {
1267
+ var u = e.hasUnicode == null ? aD() : e.hasUnicode, t = e.hasColor == null ? oD : e.hasColor;
1268
+ e = this._themes.getDefault({
1269
+ hasUnicode: u,
1270
+ hasColor: t,
1271
+ platform: e.platform
1272
+ });
1273
+ }
1274
+ return e;
1275
+ };
1276
+ C.prototype.setThemeset = function(e) {
1277
+ this._themes = e, this.setTheme(this._theme);
1278
+ };
1279
+ C.prototype.setTheme = function(e) {
1280
+ this._gauge.setTheme(this._computeTheme(e)), this._showing && this._requestRedraw(), this._theme = e;
1281
+ };
1282
+ C.prototype._requestRedraw = function() {
1283
+ this._needsRedraw = !0, this._fixedFramerate || this._doRedraw();
1284
+ };
1285
+ C.prototype.getWidth = function() {
1286
+ return (this._tty && this._tty.columns || 80) - 1;
1287
+ };
1288
+ C.prototype.setWriteTo = function(e, u) {
1289
+ var t = !this._disabled;
1290
+ t && this.disable(), this._writeTo = e, this._tty = u || e === S.stderr && S.stdout.isTTY && S.stdout || e.isTTY && e || this._tty, this.
1291
+ _gauge && this._gauge.setWidth(this.getWidth()), t && this.enable();
1292
+ };
1293
+ C.prototype.enable = function() {
1294
+ this._disabled && (this._disabled = !1, this._tty && this._enableEvents(), this._showing && this.show());
1295
+ };
1296
+ C.prototype.disable = function() {
1297
+ this._disabled || (this._showing && (this._lastUpdateAt = null, this._showing = !1, this._doRedraw(), this._showing = !0), this._disabled =
1298
+ !0, this._tty && this._disableEvents());
1299
+ };
1300
+ C.prototype._enableEvents = function() {
1301
+ this._cleanupOnExit && (this._removeOnExit = lD(te(this, this.disable))), this._tty.on("resize", this._$$handleSizeChange), this._fixedFramerate &&
1302
+ (this.redrawTracker = fD(this._$$doRedraw, this._updateInterval), this.redrawTracker.unref && this.redrawTracker.unref());
1303
+ };
1304
+ C.prototype._disableEvents = function() {
1305
+ this._tty.removeListener("resize", this._$$handleSizeChange), this._fixedFramerate && clearInterval(this.redrawTracker), this._removeOnExit &&
1306
+ this._removeOnExit();
1307
+ };
1308
+ C.prototype.hide = function(e) {
1309
+ if (this._disabled || !this._showing)
1310
+ return e && S.nextTick(e);
1311
+ this._showing = !1, this._doRedraw(), e && cD(e);
1312
+ };
1313
+ C.prototype.show = function(e, u) {
1314
+ if (this._showing = !0, typeof e == "string")
1315
+ this._status.section = e;
1316
+ else if (typeof e == "object")
1317
+ for (var t = Object.keys(e), D = 0; D < t.length; ++D) {
1318
+ var r = t[D];
1319
+ this._status[r] = e[r];
1320
+ }
1321
+ u != null && (this._status.completed = u), !this._disabled && this._requestRedraw();
1322
+ };
1323
+ C.prototype.pulse = function(e) {
1324
+ this._status.subsection = e || "", this._status.spun++, !this._disabled && this._showing && this._requestRedraw();
1325
+ };
1326
+ C.prototype._handleSizeChange = function() {
1327
+ this._gauge.setWidth(this._tty.columns - 1), this._requestRedraw();
1328
+ };
1329
+ C.prototype._doRedraw = function() {
1330
+ if (!(this._disabled || this._paused)) {
1331
+ if (!this._fixedFramerate) {
1332
+ var e = Date.now();
1333
+ if (this._lastUpdateAt && e - this._lastUpdateAt < this._updateInterval)
1334
+ return;
1335
+ this._lastUpdateAt = e;
1336
+ }
1337
+ if (!this._showing && this._onScreen) {
1338
+ this._onScreen = !1;
1339
+ var u = this._gauge.hide();
1340
+ return this._hideCursor && (u += this._gauge.showCursor()), this._writeTo.write(u);
1341
+ }
1342
+ !this._showing && !this._onScreen || (this._showing && !this._onScreen && (this._onScreen = !0, this._needsRedraw = !0, this._hideCursor &&
1343
+ this._writeTo.write(this._gauge.hideCursor())), this._needsRedraw && (this._writeTo.write(this._gauge.show(this._status)) || (this._paused =
1344
+ !0, this._writeTo.on("drain", te(this, function() {
1345
+ this._paused = !1, this._doRedraw();
1346
+ })))));
1347
+ }
1348
+ };
1349
+ });
1350
+
1351
+ // ../node_modules/set-blocking/index.js
1352
+ var Hu = l((br, Zu) => {
1353
+ Zu.exports = function(e) {
1354
+ [process.stdout, process.stderr].forEach(function(u) {
1355
+ u._handle && u.isTTY && typeof u._handle.setBlocking == "function" && u._handle.setBlocking(e);
1356
+ });
1357
+ };
1358
+ });
1359
+
1360
+ // ../node_modules/npmlog/lib/log.js
1361
+ var ju = l((Ku, Qu) => {
1362
+ "use strict";
1363
+ var Ju = ze(), FD = Vu(), CD = require("events").EventEmitter, s = Ku = Qu.exports = new CD(), xe = require("util"), ED = Hu(), ye = Y();
1364
+ ED(!0);
1365
+ var x = process.stderr;
1366
+ Object.defineProperty(s, "stream", {
1367
+ set: /* @__PURE__ */ i(function(e) {
1368
+ x = e, this.gauge && this.gauge.setWriteTo(x, x);
1369
+ }, "set"),
1370
+ get: /* @__PURE__ */ i(function() {
1371
+ return x;
1372
+ }, "get")
1373
+ });
1374
+ var U;
1375
+ s.useColor = function() {
1376
+ return U ?? x.isTTY;
1377
+ };
1378
+ s.enableColor = function() {
1379
+ U = !0, this.gauge.setTheme({ hasColor: U, hasUnicode: M });
1380
+ };
1381
+ s.disableColor = function() {
1382
+ U = !1, this.gauge.setTheme({ hasColor: U, hasUnicode: M });
1383
+ };
1384
+ s.level = "info";
1385
+ s.gauge = new FD(x, {
1386
+ enabled: !1,
1387
+ // no progress bars unless asked
1388
+ theme: { hasColor: s.useColor() },
1389
+ template: [
1390
+ { type: "progressbar", length: 20 },
1391
+ { type: "activityIndicator", kerning: 1, length: 1 },
1392
+ { type: "section", default: "" },
1393
+ ":",
1394
+ { type: "logline", kerning: 1, default: "" }
1395
+ ]
1396
+ });
1397
+ s.tracker = new Ju.TrackerGroup();
1398
+ s.progressEnabled = s.gauge.isEnabled();
1399
+ var M;
1400
+ s.enableUnicode = function() {
1401
+ M = !0, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: M });
1402
+ };
1403
+ s.disableUnicode = function() {
1404
+ M = !1, this.gauge.setTheme({ hasColor: this.useColor(), hasUnicode: M });
1405
+ };
1406
+ s.setGaugeThemeset = function(e) {
1407
+ this.gauge.setThemeset(e);
1408
+ };
1409
+ s.setGaugeTemplate = function(e) {
1410
+ this.gauge.setTemplate(e);
1411
+ };
1412
+ s.enableProgress = function() {
1413
+ this.progressEnabled || this._paused || (this.progressEnabled = !0, this.tracker.on("change", this.showProgress), this.gauge.enable());
1414
+ };
1415
+ s.disableProgress = function() {
1416
+ this.progressEnabled && (this.progressEnabled = !1, this.tracker.removeListener("change", this.showProgress), this.gauge.disable());
1417
+ };
1418
+ var _e = ["newGroup", "newItem", "newStream"], Xu = /* @__PURE__ */ i(function(e) {
1419
+ return Object.keys(s).forEach(function(u) {
1420
+ if (u[0] !== "_" && !_e.filter(function(D) {
1421
+ return D === u;
1422
+ }).length && !e[u] && typeof s[u] == "function") {
1423
+ var t = s[u];
1424
+ e[u] = function() {
1425
+ return t.apply(s, arguments);
1426
+ };
1427
+ }
1428
+ }), e instanceof Ju.TrackerGroup && _e.forEach(function(u) {
1429
+ var t = e[u];
1430
+ e[u] = function() {
1431
+ return Xu(t.apply(e, arguments));
1432
+ };
1433
+ }), e;
1434
+ }, "mixinLog");
1435
+ _e.forEach(function(e) {
1436
+ s[e] = function() {
1437
+ return Xu(this.tracker[e].apply(this.tracker, arguments));
1438
+ };
1439
+ });
1440
+ s.clearProgress = function(e) {
1441
+ if (!this.progressEnabled)
1442
+ return e && process.nextTick(e);
1443
+ this.gauge.hide(e);
1444
+ };
1445
+ s.showProgress = function(e, u) {
1446
+ if (this.progressEnabled) {
1447
+ var t = {};
1448
+ e && (t.section = e);
1449
+ var D = s.record[s.record.length - 1];
1450
+ if (D) {
1451
+ t.subsection = D.prefix;
1452
+ var r = s.disp[D.level] || D.level, n = this._format(r, s.style[D.level]);
1453
+ D.prefix && (n += " " + this._format(D.prefix, this.prefixStyle)), n += " " + D.message.split(/\r?\n/)[0], t.logline = n;
1454
+ }
1455
+ t.completed = u || this.tracker.completed(), this.gauge.show(t);
1456
+ }
1457
+ }.bind(s);
1458
+ s.pause = function() {
1459
+ this._paused = !0, this.progressEnabled && this.gauge.disable();
1460
+ };
1461
+ s.resume = function() {
1462
+ if (this._paused) {
1463
+ this._paused = !1;
1464
+ var e = this._buffer;
1465
+ this._buffer = [], e.forEach(function(u) {
1466
+ this.emitLog(u);
1467
+ }, this), this.progressEnabled && this.gauge.enable();
1468
+ }
1469
+ };
1470
+ s._buffer = [];
1471
+ var gD = 0;
1472
+ s.record = [];
1473
+ s.maxRecordSize = 1e4;
1474
+ s.log = function(e, u, t) {
1475
+ var D = this.levels[e];
1476
+ if (D === void 0)
1477
+ return this.emit("error", new Error(xe.format(
1478
+ "Undefined log level: %j",
1479
+ e
1480
+ )));
1481
+ for (var r = new Array(arguments.length - 2), n = null, o = 2; o < arguments.length; o++) {
1482
+ var h = r[o - 2] = arguments[o];
1483
+ typeof h == "object" && h instanceof Error && h.stack && Object.defineProperty(h, "stack", {
1484
+ value: n = h.stack + "",
1485
+ enumerable: !0,
1486
+ writable: !0
1487
+ });
1488
+ }
1489
+ n && r.unshift(n + `
1490
+ `), t = xe.format.apply(xe, r);
1491
+ var f = {
1492
+ id: gD++,
1493
+ level: e,
1494
+ prefix: String(u || ""),
1495
+ message: t,
1496
+ messageRaw: r
1497
+ };
1498
+ this.emit("log", f), this.emit("log." + e, f), f.prefix && this.emit(f.prefix, f), this.record.push(f);
1499
+ var c = this.maxRecordSize, F = this.record.length - c;
1500
+ if (F > c / 10) {
1501
+ var m = Math.floor(c * 0.9);
1502
+ this.record = this.record.slice(-1 * m);
1503
+ }
1504
+ this.emitLog(f);
1505
+ }.bind(s);
1506
+ s.emitLog = function(e) {
1507
+ if (this._paused) {
1508
+ this._buffer.push(e);
1509
+ return;
1510
+ }
1511
+ this.progressEnabled && this.gauge.pulse(e.prefix);
1512
+ var u = this.levels[e.level];
1513
+ if (u !== void 0 && !(u < this.levels[this.level]) && !(u > 0 && !isFinite(u))) {
1514
+ var t = s.disp[e.level] != null ? s.disp[e.level] : e.level;
1515
+ this.clearProgress(), e.message.split(/\r?\n/).forEach(function(D) {
1516
+ var r = this.heading;
1517
+ r && (this.write(r, this.headingStyle), this.write(" ")), this.write(t, s.style[e.level]);
1518
+ var n = e.prefix || "";
1519
+ n && this.write(" "), this.write(n, this.prefixStyle), this.write(" " + D + `
1520
+ `);
1521
+ }, this), this.showProgress();
1522
+ }
1523
+ };
1524
+ s._format = function(e, u) {
1525
+ if (x) {
1526
+ var t = "";
1527
+ if (this.useColor()) {
1528
+ u = u || {};
1529
+ var D = [];
1530
+ u.fg && D.push(u.fg), u.bg && D.push("bg" + u.bg[0].toUpperCase() + u.bg.slice(1)), u.bold && D.push("bold"), u.underline && D.push(
1531
+ "underline"), u.inverse && D.push("inverse"), D.length && (t += ye.color(D)), u.beep && (t += ye.beep());
1532
+ }
1533
+ return t += e, this.useColor() && (t += ye.color("reset")), t;
1534
+ }
1535
+ };
1536
+ s.write = function(e, u) {
1537
+ x && x.write(this._format(e, u));
1538
+ };
1539
+ s.addLevel = function(e, u, t, D) {
1540
+ D == null && (D = e), this.levels[e] = u, this.style[e] = t, this[e] || (this[e] = function() {
1541
+ var r = new Array(arguments.length + 1);
1542
+ r[0] = e;
1543
+ for (var n = 0; n < arguments.length; n++)
1544
+ r[n + 1] = arguments[n];
1545
+ return this.log.apply(this, r);
1546
+ }.bind(this)), this.disp[e] = D;
1547
+ };
1548
+ s.prefixStyle = { fg: "magenta" };
1549
+ s.headingStyle = { fg: "white", bg: "black" };
1550
+ s.style = {};
1551
+ s.levels = {};
1552
+ s.disp = {};
1553
+ s.addLevel("silly", -1 / 0, { inverse: !0 }, "sill");
1554
+ s.addLevel("verbose", 1e3, { fg: "cyan", bg: "black" }, "verb");
1555
+ s.addLevel("info", 2e3, { fg: "green" });
1556
+ s.addLevel("timing", 2500, { fg: "green", bg: "black" });
1557
+ s.addLevel("http", 3e3, { fg: "green", bg: "black" });
1558
+ s.addLevel("notice", 3500, { fg: "cyan", bg: "black" });
1559
+ s.addLevel("warn", 4e3, { fg: "black", bg: "yellow" }, "WARN");
1560
+ s.addLevel("error", 5e3, { fg: "red", bg: "black" }, "ERR!");
1561
+ s.addLevel("silent", 1 / 0);
1562
+ s.on("error", function() {
1563
+ });
1564
+ });
1565
+
1566
+ // ../node_modules/pretty-hrtime/index.js
1567
+ var tt = l((xr, ut) => {
1568
+ "use strict";
1569
+ var pD = ["h", "min", "s", "ms", "\u03BCs", "ns"], dD = ["hour", "minute", "second", "millisecond", "microsecond", "nanosecond"], et = [3600,
1570
+ 60, 1, 1e6, 1e3, 1];
1571
+ ut.exports = function(e, u) {
1572
+ var t, D, r, n, o, h, f, c, F, m;
1573
+ if (t = !1, D = !1, u && (t = u.verbose || !1, D = u.precise || !1), !Array.isArray(e) || e.length !== 2 || typeof e[0] != "number" || typeof e[1] !=
1574
+ "number")
1575
+ return "";
1576
+ for (e[1] < 0 && (m = e[0] + e[1] / 1e9, e[0] = parseInt(m), e[1] = parseFloat((m % 1).toPrecision(9)) * 1e9), F = "", r = 0; r < 6 && (n =
1577
+ r < 3 ? 0 : 1, o = e[n], r !== 3 && r !== 0 && (o = o % et[r - 1]), r === 2 && (o += e[1] / 1e9), h = o / et[r], !(h >= 1 && (t && (h = Math.
1578
+ floor(h)), D ? c = h.toString() : (f = h >= 10 ? 0 : 2, c = h.toFixed(f)), c.indexOf(".") > -1 && c[c.length - 1] === "0" && (c = c.replace(
1579
+ /\.?0+$/, "")), F && (F += " "), F += c, t ? (F += " " + dD[r], c !== "1" && (F += "s")) : F += " " + pD[r], !t))); r++)
1580
+ ;
1581
+ return F;
1582
+ };
1583
+ });
1584
+
1585
+ // src/node-logger/index.ts
1586
+ var vD = {};
1587
+ Ie(vD, {
1588
+ colors: () => Te,
1589
+ deprecate: () => mD,
1590
+ instance: () => B.default,
1591
+ logger: () => rt,
1592
+ once: () => A
1593
+ });
1594
+ module.exports = qe(vD);
1595
+ var B = Oe(ju(), 1), Dt = Oe(tt(), 1);
1596
+ B.default.stream = process.stdout;
1597
+ function L(e) {
1598
+ if (!/^#?[0-9A-Fa-f]{6}$/.test(e))
1599
+ throw new Error("Invalid hex color. It must be a 6-character hex code.");
1600
+ e.startsWith("#") && (e = e.slice(1));
1601
+ let u = parseInt(e.slice(0, 2), 16), t = parseInt(e.slice(2, 4), 16), D = parseInt(e.slice(4, 6), 16);
1602
+ return (r) => `\x1B[38;2;${u};${t};${D}m${r}\x1B[39m`;
1603
+ }
1604
+ i(L, "hex");
1605
+ var Te = {
1606
+ pink: L("#F1618C"),
1607
+ purple: L("#B57EE5"),
1608
+ orange: L("#F3AD38"),
1609
+ green: L("#A2E05E"),
1610
+ blue: L("#6DABF5"),
1611
+ red: L("#F16161"),
1612
+ gray: L("#B8C2CC")
1613
+ }, rt = {
1614
+ verbose: /* @__PURE__ */ i((e) => B.default.verbose("", e), "verbose"),
1615
+ info: /* @__PURE__ */ i((e) => B.default.info("", e), "info"),
1616
+ plain: /* @__PURE__ */ i((e) => console.log(e), "plain"),
1617
+ line: /* @__PURE__ */ i((e = 1) => console.log(`${Array(e - 1).fill(`
1618
+ `)}`), "line"),
1619
+ warn: /* @__PURE__ */ i((e) => B.default.warn("", e), "warn"),
1620
+ trace: /* @__PURE__ */ i(({ message: e, time: u }) => B.default.info("", `${e} (${Te.purple((0, Dt.default)(u))})`), "trace"),
1621
+ setLevel: /* @__PURE__ */ i((e = "info") => {
1622
+ B.default.level = e;
1623
+ }, "setLevel"),
1624
+ error: /* @__PURE__ */ i((e) => {
1625
+ if (B.default.levels[B.default.level] < B.default.levels.error) {
1626
+ let u;
1627
+ e instanceof Error && e.stack ? u = e.stack.toString() : u = e.toString(), console.log(
1628
+ u.replace(e.toString(), Te.red(e.toString())).replaceAll(process.cwd(), ".")
1629
+ );
1630
+ }
1631
+ }, "error")
1632
+ };
1633
+ var ke = /* @__PURE__ */ new Set(), A = /* @__PURE__ */ i((e) => (u) => {
1634
+ if (!ke.has(u))
1635
+ return ke.add(u), rt[e](u);
1636
+ }, "once");
1637
+ A.clear = () => ke.clear();
1638
+ A.verbose = A("verbose");
1639
+ A.info = A("info");
1640
+ A.warn = A("warn");
1641
+ A.error = A("error");
1642
+ var mD = A("warn");