@osdk/generator 2.2.0-beta.6 → 2.2.0-beta.7

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 (26) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/browser/shared/getObjectTypesFromQueryDataType.js +1 -0
  3. package/build/browser/shared/getObjectTypesFromQueryDataType.js.map +1 -1
  4. package/build/browser/util/test/TodoWireOntology.js +4 -2
  5. package/build/browser/util/test/TodoWireOntology.js.map +1 -1
  6. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +83 -3
  7. package/build/browser/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  8. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js +6 -3
  9. package/build/browser/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -1
  10. package/build/cjs/index.cjs +1138 -69
  11. package/build/cjs/index.cjs.map +1 -1
  12. package/build/cjs/prompt-IKRSF7JL.cjs +954 -0
  13. package/build/cjs/prompt-IKRSF7JL.cjs.map +1 -0
  14. package/build/esm/shared/getObjectTypesFromQueryDataType.js +1 -0
  15. package/build/esm/shared/getObjectTypesFromQueryDataType.js.map +1 -1
  16. package/build/esm/util/test/TodoWireOntology.js +4 -2
  17. package/build/esm/util/test/TodoWireOntology.js.map +1 -1
  18. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js +83 -3
  19. package/build/esm/v2.0/UNSTABLE_wireInterfaceTypeV2ToSdkObjectConst.test.js.map +1 -1
  20. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js +6 -3
  21. package/build/esm/v2.0/generateClientSdkVersionTwoPointZero.test.js.map +1 -1
  22. package/package.json +7 -7
  23. package/build/cjs/chunk-XOCES5YA.cjs +0 -978
  24. package/build/cjs/chunk-XOCES5YA.cjs.map +0 -1
  25. package/build/cjs/prompt-YMFYYBNJ.cjs +0 -860
  26. package/build/cjs/prompt-YMFYYBNJ.cjs.map +0 -1
@@ -1,978 +0,0 @@
1
- 'use strict';
2
-
3
- var util = require('util');
4
- var path = require('path');
5
- var tty = require('tty');
6
- var process$1 = require('process');
7
-
8
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
-
10
- function _interopNamespace(e) {
11
- if (e && e.__esModule) return e;
12
- var n = Object.create(null);
13
- if (e) {
14
- Object.keys(e).forEach(function (k) {
15
- if (k !== 'default') {
16
- var d = Object.getOwnPropertyDescriptor(e, k);
17
- Object.defineProperty(n, k, d.get ? d : {
18
- enumerable: true,
19
- get: function () { return e[k]; }
20
- });
21
- }
22
- });
23
- }
24
- n.default = e;
25
- return Object.freeze(n);
26
- }
27
-
28
- var tty__namespace = /*#__PURE__*/_interopNamespace(tty);
29
- var process$1__default = /*#__PURE__*/_interopDefault(process$1);
30
-
31
- // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/core.mjs
32
- var LogLevels = {
33
- silent: Number.NEGATIVE_INFINITY,
34
- fatal: 0,
35
- error: 0,
36
- warn: 1,
37
- log: 2,
38
- info: 3,
39
- success: 3,
40
- fail: 3,
41
- ready: 3,
42
- start: 3,
43
- box: 3,
44
- debug: 4,
45
- trace: 5,
46
- verbose: Number.POSITIVE_INFINITY
47
- };
48
- var LogTypes = {
49
- // Silent
50
- silent: {
51
- level: -1
52
- },
53
- // Level 0
54
- fatal: {
55
- level: LogLevels.fatal
56
- },
57
- error: {
58
- level: LogLevels.error
59
- },
60
- // Level 1
61
- warn: {
62
- level: LogLevels.warn
63
- },
64
- // Level 2
65
- log: {
66
- level: LogLevels.log
67
- },
68
- // Level 3
69
- info: {
70
- level: LogLevels.info
71
- },
72
- success: {
73
- level: LogLevels.success
74
- },
75
- fail: {
76
- level: LogLevels.fail
77
- },
78
- ready: {
79
- level: LogLevels.info
80
- },
81
- start: {
82
- level: LogLevels.info
83
- },
84
- box: {
85
- level: LogLevels.info
86
- },
87
- // Level 4
88
- debug: {
89
- level: LogLevels.debug
90
- },
91
- // Level 5
92
- trace: {
93
- level: LogLevels.trace
94
- },
95
- // Verbose
96
- verbose: {
97
- level: LogLevels.verbose
98
- }
99
- };
100
- function isObject(value) {
101
- return value !== null && typeof value === "object";
102
- }
103
- function _defu(baseObject, defaults, namespace = ".", merger) {
104
- if (!isObject(defaults)) {
105
- return _defu(baseObject, {}, namespace);
106
- }
107
- const object = Object.assign({}, defaults);
108
- for (const key in baseObject) {
109
- if (key === "__proto__" || key === "constructor") {
110
- continue;
111
- }
112
- const value = baseObject[key];
113
- if (value === null || value === void 0) {
114
- continue;
115
- }
116
- if (Array.isArray(value) && Array.isArray(object[key])) {
117
- object[key] = [...value, ...object[key]];
118
- } else if (isObject(value) && isObject(object[key])) {
119
- object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString());
120
- } else {
121
- object[key] = value;
122
- }
123
- }
124
- return object;
125
- }
126
- function createDefu(merger) {
127
- return (...arguments_) => (
128
- // eslint-disable-next-line unicorn/no-array-reduce
129
- arguments_.reduce((p, c) => _defu(p, c, ""), {})
130
- );
131
- }
132
- var defu = createDefu();
133
- function isPlainObject(obj) {
134
- return Object.prototype.toString.call(obj) === "[object Object]";
135
- }
136
- function isLogObj(arg) {
137
- if (!isPlainObject(arg)) {
138
- return false;
139
- }
140
- if (!arg.message && !arg.args) {
141
- return false;
142
- }
143
- if (arg.stack) {
144
- return false;
145
- }
146
- return true;
147
- }
148
- var paused = false;
149
- var queue = [];
150
- var Consola = class _Consola {
151
- constructor(options = {}) {
152
- const types = options.types || LogTypes;
153
- this.options = defu({
154
- ...options,
155
- defaults: {
156
- ...options.defaults
157
- },
158
- level: _normalizeLogLevel(options.level, types),
159
- reporters: [...options.reporters || []]
160
- }, {
161
- types: LogTypes,
162
- throttle: 1e3,
163
- throttleMin: 5,
164
- formatOptions: {
165
- date: true,
166
- colors: false,
167
- compact: true
168
- }
169
- });
170
- for (const type in types) {
171
- const defaults = {
172
- type,
173
- ...this.options.defaults,
174
- ...types[type]
175
- };
176
- this[type] = this._wrapLogFn(defaults);
177
- this[type].raw = this._wrapLogFn(defaults, true);
178
- }
179
- if (this.options.mockFn) {
180
- this.mockTypes();
181
- }
182
- this._lastLog = {};
183
- }
184
- get level() {
185
- return this.options.level;
186
- }
187
- set level(level) {
188
- this.options.level = _normalizeLogLevel(level, this.options.types, this.options.level);
189
- }
190
- prompt(message, opts) {
191
- if (!this.options.prompt) {
192
- throw new Error("prompt is not supported!");
193
- }
194
- return this.options.prompt(message, opts);
195
- }
196
- create(options) {
197
- const instance = new _Consola({
198
- ...this.options,
199
- ...options
200
- });
201
- if (this._mockFn) {
202
- instance.mockTypes(this._mockFn);
203
- }
204
- return instance;
205
- }
206
- withDefaults(defaults) {
207
- return this.create({
208
- ...this.options,
209
- defaults: {
210
- ...this.options.defaults,
211
- ...defaults
212
- }
213
- });
214
- }
215
- withTag(tag) {
216
- return this.withDefaults({
217
- tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
218
- });
219
- }
220
- addReporter(reporter) {
221
- this.options.reporters.push(reporter);
222
- return this;
223
- }
224
- removeReporter(reporter) {
225
- if (reporter) {
226
- const i = this.options.reporters.indexOf(reporter);
227
- if (i >= 0) {
228
- return this.options.reporters.splice(i, 1);
229
- }
230
- } else {
231
- this.options.reporters.splice(0);
232
- }
233
- return this;
234
- }
235
- setReporters(reporters) {
236
- this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
237
- return this;
238
- }
239
- wrapAll() {
240
- this.wrapConsole();
241
- this.wrapStd();
242
- }
243
- restoreAll() {
244
- this.restoreConsole();
245
- this.restoreStd();
246
- }
247
- wrapConsole() {
248
- for (const type in this.options.types) {
249
- if (!console["__" + type]) {
250
- console["__" + type] = console[type];
251
- }
252
- console[type] = this[type].raw;
253
- }
254
- }
255
- restoreConsole() {
256
- for (const type in this.options.types) {
257
- if (console["__" + type]) {
258
- console[type] = console["__" + type];
259
- delete console["__" + type];
260
- }
261
- }
262
- }
263
- wrapStd() {
264
- this._wrapStream(this.options.stdout, "log");
265
- this._wrapStream(this.options.stderr, "log");
266
- }
267
- _wrapStream(stream, type) {
268
- if (!stream) {
269
- return;
270
- }
271
- if (!stream.__write) {
272
- stream.__write = stream.write;
273
- }
274
- stream.write = (data) => {
275
- this[type].raw(String(data).trim());
276
- };
277
- }
278
- restoreStd() {
279
- this._restoreStream(this.options.stdout);
280
- this._restoreStream(this.options.stderr);
281
- }
282
- _restoreStream(stream) {
283
- if (!stream) {
284
- return;
285
- }
286
- if (stream.__write) {
287
- stream.write = stream.__write;
288
- delete stream.__write;
289
- }
290
- }
291
- pauseLogs() {
292
- paused = true;
293
- }
294
- resumeLogs() {
295
- paused = false;
296
- const _queue = queue.splice(0);
297
- for (const item of _queue) {
298
- item[0]._logFn(item[1], item[2]);
299
- }
300
- }
301
- mockTypes(mockFn) {
302
- const _mockFn = mockFn || this.options.mockFn;
303
- this._mockFn = _mockFn;
304
- if (typeof _mockFn !== "function") {
305
- return;
306
- }
307
- for (const type in this.options.types) {
308
- this[type] = _mockFn(type, this.options.types[type]) || this[type];
309
- this[type].raw = this[type];
310
- }
311
- }
312
- _wrapLogFn(defaults, isRaw) {
313
- return (...args) => {
314
- if (paused) {
315
- queue.push([this, defaults, args, isRaw]);
316
- return;
317
- }
318
- return this._logFn(defaults, args, isRaw);
319
- };
320
- }
321
- _logFn(defaults, args, isRaw) {
322
- if ((defaults.level || 0) > this.level) {
323
- return false;
324
- }
325
- const logObj = {
326
- date: /* @__PURE__ */ new Date(),
327
- args: [],
328
- ...defaults,
329
- level: _normalizeLogLevel(defaults.level, this.options.types)
330
- };
331
- if (!isRaw && args.length === 1 && isLogObj(args[0])) {
332
- Object.assign(logObj, args[0]);
333
- } else {
334
- logObj.args = [...args];
335
- }
336
- if (logObj.message) {
337
- logObj.args.unshift(logObj.message);
338
- delete logObj.message;
339
- }
340
- if (logObj.additional) {
341
- if (!Array.isArray(logObj.additional)) {
342
- logObj.additional = logObj.additional.split("\n");
343
- }
344
- logObj.args.push("\n" + logObj.additional.join("\n"));
345
- delete logObj.additional;
346
- }
347
- logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
348
- logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
349
- const resolveLog = (newLog = false) => {
350
- const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
351
- if (this._lastLog.object && repeated > 0) {
352
- const args2 = [...this._lastLog.object.args];
353
- if (repeated > 1) {
354
- args2.push(`(repeated ${repeated} times)`);
355
- }
356
- this._log({
357
- ...this._lastLog.object,
358
- args: args2
359
- });
360
- this._lastLog.count = 1;
361
- }
362
- if (newLog) {
363
- this._lastLog.object = logObj;
364
- this._log(logObj);
365
- }
366
- };
367
- clearTimeout(this._lastLog.timeout);
368
- const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
369
- this._lastLog.time = logObj.date;
370
- if (diffTime < this.options.throttle) {
371
- try {
372
- const serializedLog = JSON.stringify([logObj.type, logObj.tag, logObj.args]);
373
- const isSameLog = this._lastLog.serialized === serializedLog;
374
- this._lastLog.serialized = serializedLog;
375
- if (isSameLog) {
376
- this._lastLog.count = (this._lastLog.count || 0) + 1;
377
- if (this._lastLog.count > this.options.throttleMin) {
378
- this._lastLog.timeout = setTimeout(resolveLog, this.options.throttle);
379
- return;
380
- }
381
- }
382
- } catch {
383
- }
384
- }
385
- resolveLog(true);
386
- }
387
- _log(logObj) {
388
- for (const reporter of this.options.reporters) {
389
- reporter.log(logObj, {
390
- options: this.options
391
- });
392
- }
393
- }
394
- };
395
- function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
396
- if (input === void 0) {
397
- return defaultLevel;
398
- }
399
- if (typeof input === "number") {
400
- return input;
401
- }
402
- if (types[input] && types[input].level !== void 0) {
403
- return types[input].level;
404
- }
405
- return defaultLevel;
406
- }
407
- Consola.prototype.add = Consola.prototype.addReporter;
408
- Consola.prototype.remove = Consola.prototype.removeReporter;
409
- Consola.prototype.clear = Consola.prototype.removeReporter;
410
- Consola.prototype.withScope = Consola.prototype.withTag;
411
- Consola.prototype.mock = Consola.prototype.mockTypes;
412
- Consola.prototype.pause = Consola.prototype.pauseLogs;
413
- Consola.prototype.resume = Consola.prototype.resumeLogs;
414
- function createConsola(options = {}) {
415
- return new Consola(options);
416
- }
417
- function parseStack(stack) {
418
- const cwd = process.cwd() + path.sep;
419
- const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
420
- return lines;
421
- }
422
- function writeStream(data, stream) {
423
- const write = stream.__write || stream.write;
424
- return write.call(stream, data);
425
- }
426
- var bracket = (x) => x ? `[${x}]` : "";
427
- var BasicReporter = class {
428
- formatStack(stack, opts) {
429
- return " " + parseStack(stack).join("\n ");
430
- }
431
- formatArgs(args, opts) {
432
- const _args = args.map((arg) => {
433
- if (arg && typeof arg.stack === "string") {
434
- return arg.message + "\n" + this.formatStack(arg.stack, opts);
435
- }
436
- return arg;
437
- });
438
- return util.formatWithOptions(opts, ..._args);
439
- }
440
- formatDate(date, opts) {
441
- return opts.date ? date.toLocaleTimeString() : "";
442
- }
443
- filterAndJoin(arr) {
444
- return arr.filter(Boolean).join(" ");
445
- }
446
- formatLogObj(logObj, opts) {
447
- const message = this.formatArgs(logObj.args, opts);
448
- if (logObj.type === "box") {
449
- return "\n" + [bracket(logObj.tag), logObj.title && logObj.title, ...message.split("\n")].filter(Boolean).map((l) => " > " + l).join("\n") + "\n";
450
- }
451
- return this.filterAndJoin([bracket(logObj.type), bracket(logObj.tag), message]);
452
- }
453
- log(logObj, ctx) {
454
- const line = this.formatLogObj(logObj, {
455
- columns: ctx.options.stdout.columns || 0,
456
- ...ctx.options.formatOptions
457
- });
458
- return writeStream(line + "\n", logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout);
459
- }
460
- };
461
- var {
462
- env = {},
463
- argv = [],
464
- platform = ""
465
- } = typeof process === "undefined" ? {} : process;
466
- var isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
467
- var isForced = "FORCE_COLOR" in env || argv.includes("--color");
468
- var isWindows = platform === "win32";
469
- var isDumbTerminal = env.TERM === "dumb";
470
- var isCompatibleTerminal = tty__namespace && tty__namespace.isatty && tty__namespace.isatty(1) && env.TERM && !isDumbTerminal;
471
- var isCI = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
472
- var isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
473
- function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
474
- return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
475
- }
476
- function clearBleed(index, string, open, close, replace) {
477
- return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
478
- }
479
- function filterEmpty(open, close, replace = open, at = open.length + 1) {
480
- return (string) => string || !(string === "" || string === void 0) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
481
- }
482
- function init(open, close, replace) {
483
- return filterEmpty(`\x1B[${open}m`, `\x1B[${close}m`, replace);
484
- }
485
- var colorDefs = {
486
- reset: init(0, 0),
487
- bold: init(1, 22, "\x1B[22m\x1B[1m"),
488
- dim: init(2, 22, "\x1B[22m\x1B[2m"),
489
- italic: init(3, 23),
490
- underline: init(4, 24),
491
- inverse: init(7, 27),
492
- hidden: init(8, 28),
493
- strikethrough: init(9, 29),
494
- black: init(30, 39),
495
- red: init(31, 39),
496
- green: init(32, 39),
497
- yellow: init(33, 39),
498
- blue: init(34, 39),
499
- magenta: init(35, 39),
500
- cyan: init(36, 39),
501
- white: init(37, 39),
502
- gray: init(90, 39),
503
- bgBlack: init(40, 49),
504
- bgRed: init(41, 49),
505
- bgGreen: init(42, 49),
506
- bgYellow: init(43, 49),
507
- bgBlue: init(44, 49),
508
- bgMagenta: init(45, 49),
509
- bgCyan: init(46, 49),
510
- bgWhite: init(47, 49),
511
- blackBright: init(90, 39),
512
- redBright: init(91, 39),
513
- greenBright: init(92, 39),
514
- yellowBright: init(93, 39),
515
- blueBright: init(94, 39),
516
- magentaBright: init(95, 39),
517
- cyanBright: init(96, 39),
518
- whiteBright: init(97, 39),
519
- bgBlackBright: init(100, 49),
520
- bgRedBright: init(101, 49),
521
- bgGreenBright: init(102, 49),
522
- bgYellowBright: init(103, 49),
523
- bgBlueBright: init(104, 49),
524
- bgMagentaBright: init(105, 49),
525
- bgCyanBright: init(106, 49),
526
- bgWhiteBright: init(107, 49)
527
- };
528
- function createColors(useColor = isColorSupported) {
529
- return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));
530
- }
531
- var colors = createColors();
532
- function getColor(color, fallback = "reset") {
533
- return colors[color] || colors[fallback];
534
- }
535
- var ansiRegex = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
536
- function stripAnsi(text) {
537
- return text.replace(new RegExp(ansiRegex, "g"), "");
538
- }
539
- var boxStylePresets = {
540
- solid: {
541
- tl: "\u250C",
542
- tr: "\u2510",
543
- bl: "\u2514",
544
- br: "\u2518",
545
- h: "\u2500",
546
- v: "\u2502"
547
- },
548
- double: {
549
- tl: "\u2554",
550
- tr: "\u2557",
551
- bl: "\u255A",
552
- br: "\u255D",
553
- h: "\u2550",
554
- v: "\u2551"
555
- },
556
- doubleSingle: {
557
- tl: "\u2553",
558
- tr: "\u2556",
559
- bl: "\u2559",
560
- br: "\u255C",
561
- h: "\u2500",
562
- v: "\u2551"
563
- },
564
- doubleSingleRounded: {
565
- tl: "\u256D",
566
- tr: "\u256E",
567
- bl: "\u2570",
568
- br: "\u256F",
569
- h: "\u2500",
570
- v: "\u2551"
571
- },
572
- singleThick: {
573
- tl: "\u250F",
574
- tr: "\u2513",
575
- bl: "\u2517",
576
- br: "\u251B",
577
- h: "\u2501",
578
- v: "\u2503"
579
- },
580
- singleDouble: {
581
- tl: "\u2552",
582
- tr: "\u2555",
583
- bl: "\u2558",
584
- br: "\u255B",
585
- h: "\u2550",
586
- v: "\u2502"
587
- },
588
- singleDoubleRounded: {
589
- tl: "\u256D",
590
- tr: "\u256E",
591
- bl: "\u2570",
592
- br: "\u256F",
593
- h: "\u2550",
594
- v: "\u2502"
595
- },
596
- rounded: {
597
- tl: "\u256D",
598
- tr: "\u256E",
599
- bl: "\u2570",
600
- br: "\u256F",
601
- h: "\u2500",
602
- v: "\u2502"
603
- }
604
- };
605
- var defaultStyle = {
606
- borderColor: "white",
607
- borderStyle: "rounded",
608
- valign: "center",
609
- padding: 2,
610
- marginLeft: 1,
611
- marginTop: 1,
612
- marginBottom: 1
613
- };
614
- function box(text, _opts = {}) {
615
- const opts = {
616
- ..._opts,
617
- style: {
618
- ...defaultStyle,
619
- ..._opts.style
620
- }
621
- };
622
- const textLines = text.split("\n");
623
- const boxLines = [];
624
- const _color = getColor(opts.style.borderColor);
625
- const borderStyle = {
626
- ...typeof opts.style.borderStyle === "string" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle
627
- };
628
- if (_color) {
629
- for (const key in borderStyle) {
630
- borderStyle[key] = _color(borderStyle[key]);
631
- }
632
- }
633
- const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
634
- const height = textLines.length + paddingOffset;
635
- const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;
636
- const widthOffset = width + paddingOffset;
637
- const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
638
- if (opts.style.marginTop > 0) {
639
- boxLines.push("".repeat(opts.style.marginTop));
640
- }
641
- if (opts.title) {
642
- const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
643
- const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
644
- boxLines.push(`${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`);
645
- } else {
646
- boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
647
- }
648
- const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
649
- for (let i = 0; i < height; i++) {
650
- if (i < valignOffset || i >= valignOffset + textLines.length) {
651
- boxLines.push(`${leftSpace}${borderStyle.v}${" ".repeat(widthOffset)}${borderStyle.v}`);
652
- } else {
653
- const line = textLines[i - valignOffset];
654
- const left = " ".repeat(paddingOffset);
655
- const right = " ".repeat(width - stripAnsi(line).length);
656
- boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
657
- }
658
- }
659
- boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
660
- if (opts.style.marginBottom > 0) {
661
- boxLines.push("".repeat(opts.style.marginBottom));
662
- }
663
- return boxLines.join("\n");
664
- }
665
- var providers = [["APPVEYOR"], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", {
666
- ci: true
667
- }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", {
668
- ci: false
669
- }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", {
670
- ci: false
671
- }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"]];
672
- function detectProvider(env2) {
673
- for (const provider of providers) {
674
- const envName = provider[1] || provider[0];
675
- if (env2[envName]) {
676
- return {
677
- name: provider[0].toLowerCase(),
678
- ...provider[2]
679
- };
680
- }
681
- }
682
- if (env2.SHELL && env2.SHELL === "/bin/jsh") {
683
- return {
684
- name: "stackblitz",
685
- ci: false
686
- };
687
- }
688
- return {
689
- name: "",
690
- ci: false
691
- };
692
- }
693
- var processShim = typeof process !== "undefined" ? process : {};
694
- var envShim = processShim.env || {};
695
- var providerInfo = detectProvider(envShim);
696
- var nodeENV = typeof process !== "undefined" && process.env && process.env.NODE_ENV || "";
697
- processShim.platform;
698
- providerInfo.name;
699
- var isCI2 = toBoolean(envShim.CI) || providerInfo.ci !== false;
700
- var hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);
701
- var isDebug = toBoolean(envShim.DEBUG);
702
- var isTest = nodeENV === "test" || toBoolean(envShim.TEST);
703
- toBoolean(envShim.MINIMAL) || isCI2 || isTest || !hasTTY;
704
- function toBoolean(val) {
705
- return val ? val !== "false" : false;
706
- }
707
- function ansiRegex2({
708
- onlyFirst = false
709
- } = {}) {
710
- const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
711
- return new RegExp(pattern, onlyFirst ? void 0 : "g");
712
- }
713
- var regex = ansiRegex2();
714
- function stripAnsi2(string) {
715
- if (typeof string !== "string") {
716
- throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
717
- }
718
- return string.replace(regex, "");
719
- }
720
- function getDefaultExportFromCjs(x) {
721
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
722
- }
723
- var eastasianwidth = {
724
- exports: {}
725
- };
726
- (function(module) {
727
- var eaw = {};
728
- {
729
- module.exports = eaw;
730
- }
731
- eaw.eastAsianWidth = function(character) {
732
- var x = character.charCodeAt(0);
733
- var y = character.length == 2 ? character.charCodeAt(1) : 0;
734
- var codePoint = x;
735
- if (55296 <= x && x <= 56319 && 56320 <= y && y <= 57343) {
736
- x &= 1023;
737
- y &= 1023;
738
- codePoint = x << 10 | y;
739
- codePoint += 65536;
740
- }
741
- if (12288 == codePoint || 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510) {
742
- return "F";
743
- }
744
- if (8361 == codePoint || 65377 <= codePoint && codePoint <= 65470 || 65474 <= codePoint && codePoint <= 65479 || 65482 <= codePoint && codePoint <= 65487 || 65490 <= codePoint && codePoint <= 65495 || 65498 <= codePoint && codePoint <= 65500 || 65512 <= codePoint && codePoint <= 65518) {
745
- return "H";
746
- }
747
- if (4352 <= codePoint && codePoint <= 4447 || 4515 <= codePoint && codePoint <= 4519 || 4602 <= codePoint && codePoint <= 4607 || 9001 <= codePoint && codePoint <= 9002 || 11904 <= codePoint && codePoint <= 11929 || 11931 <= codePoint && codePoint <= 12019 || 12032 <= codePoint && codePoint <= 12245 || 12272 <= codePoint && codePoint <= 12283 || 12289 <= codePoint && codePoint <= 12350 || 12353 <= codePoint && codePoint <= 12438 || 12441 <= codePoint && codePoint <= 12543 || 12549 <= codePoint && codePoint <= 12589 || 12593 <= codePoint && codePoint <= 12686 || 12688 <= codePoint && codePoint <= 12730 || 12736 <= codePoint && codePoint <= 12771 || 12784 <= codePoint && codePoint <= 12830 || 12832 <= codePoint && codePoint <= 12871 || 12880 <= codePoint && codePoint <= 13054 || 13056 <= codePoint && codePoint <= 19903 || 19968 <= codePoint && codePoint <= 42124 || 42128 <= codePoint && codePoint <= 42182 || 43360 <= codePoint && codePoint <= 43388 || 44032 <= codePoint && codePoint <= 55203 || 55216 <= codePoint && codePoint <= 55238 || 55243 <= codePoint && codePoint <= 55291 || 63744 <= codePoint && codePoint <= 64255 || 65040 <= codePoint && codePoint <= 65049 || 65072 <= codePoint && codePoint <= 65106 || 65108 <= codePoint && codePoint <= 65126 || 65128 <= codePoint && codePoint <= 65131 || 110592 <= codePoint && codePoint <= 110593 || 127488 <= codePoint && codePoint <= 127490 || 127504 <= codePoint && codePoint <= 127546 || 127552 <= codePoint && codePoint <= 127560 || 127568 <= codePoint && codePoint <= 127569 || 131072 <= codePoint && codePoint <= 194367 || 177984 <= codePoint && codePoint <= 196605 || 196608 <= codePoint && codePoint <= 262141) {
748
- return "W";
749
- }
750
- if (32 <= codePoint && codePoint <= 126 || 162 <= codePoint && codePoint <= 163 || 165 <= codePoint && codePoint <= 166 || 172 == codePoint || 175 == codePoint || 10214 <= codePoint && codePoint <= 10221 || 10629 <= codePoint && codePoint <= 10630) {
751
- return "Na";
752
- }
753
- if (161 == codePoint || 164 == codePoint || 167 <= codePoint && codePoint <= 168 || 170 == codePoint || 173 <= codePoint && codePoint <= 174 || 176 <= codePoint && codePoint <= 180 || 182 <= codePoint && codePoint <= 186 || 188 <= codePoint && codePoint <= 191 || 198 == codePoint || 208 == codePoint || 215 <= codePoint && codePoint <= 216 || 222 <= codePoint && codePoint <= 225 || 230 == codePoint || 232 <= codePoint && codePoint <= 234 || 236 <= codePoint && codePoint <= 237 || 240 == codePoint || 242 <= codePoint && codePoint <= 243 || 247 <= codePoint && codePoint <= 250 || 252 == codePoint || 254 == codePoint || 257 == codePoint || 273 == codePoint || 275 == codePoint || 283 == codePoint || 294 <= codePoint && codePoint <= 295 || 299 == codePoint || 305 <= codePoint && codePoint <= 307 || 312 == codePoint || 319 <= codePoint && codePoint <= 322 || 324 == codePoint || 328 <= codePoint && codePoint <= 331 || 333 == codePoint || 338 <= codePoint && codePoint <= 339 || 358 <= codePoint && codePoint <= 359 || 363 == codePoint || 462 == codePoint || 464 == codePoint || 466 == codePoint || 468 == codePoint || 470 == codePoint || 472 == codePoint || 474 == codePoint || 476 == codePoint || 593 == codePoint || 609 == codePoint || 708 == codePoint || 711 == codePoint || 713 <= codePoint && codePoint <= 715 || 717 == codePoint || 720 == codePoint || 728 <= codePoint && codePoint <= 731 || 733 == codePoint || 735 == codePoint || 768 <= codePoint && codePoint <= 879 || 913 <= codePoint && codePoint <= 929 || 931 <= codePoint && codePoint <= 937 || 945 <= codePoint && codePoint <= 961 || 963 <= codePoint && codePoint <= 969 || 1025 == codePoint || 1040 <= codePoint && codePoint <= 1103 || 1105 == codePoint || 8208 == codePoint || 8211 <= codePoint && codePoint <= 8214 || 8216 <= codePoint && codePoint <= 8217 || 8220 <= codePoint && codePoint <= 8221 || 8224 <= codePoint && codePoint <= 8226 || 8228 <= codePoint && codePoint <= 8231 || 8240 == codePoint || 8242 <= codePoint && codePoint <= 8243 || 8245 == codePoint || 8251 == codePoint || 8254 == codePoint || 8308 == codePoint || 8319 == codePoint || 8321 <= codePoint && codePoint <= 8324 || 8364 == codePoint || 8451 == codePoint || 8453 == codePoint || 8457 == codePoint || 8467 == codePoint || 8470 == codePoint || 8481 <= codePoint && codePoint <= 8482 || 8486 == codePoint || 8491 == codePoint || 8531 <= codePoint && codePoint <= 8532 || 8539 <= codePoint && codePoint <= 8542 || 8544 <= codePoint && codePoint <= 8555 || 8560 <= codePoint && codePoint <= 8569 || 8585 == codePoint || 8592 <= codePoint && codePoint <= 8601 || 8632 <= codePoint && codePoint <= 8633 || 8658 == codePoint || 8660 == codePoint || 8679 == codePoint || 8704 == codePoint || 8706 <= codePoint && codePoint <= 8707 || 8711 <= codePoint && codePoint <= 8712 || 8715 == codePoint || 8719 == codePoint || 8721 == codePoint || 8725 == codePoint || 8730 == codePoint || 8733 <= codePoint && codePoint <= 8736 || 8739 == codePoint || 8741 == codePoint || 8743 <= codePoint && codePoint <= 8748 || 8750 == codePoint || 8756 <= codePoint && codePoint <= 8759 || 8764 <= codePoint && codePoint <= 8765 || 8776 == codePoint || 8780 == codePoint || 8786 == codePoint || 8800 <= codePoint && codePoint <= 8801 || 8804 <= codePoint && codePoint <= 8807 || 8810 <= codePoint && codePoint <= 8811 || 8814 <= codePoint && codePoint <= 8815 || 8834 <= codePoint && codePoint <= 8835 || 8838 <= codePoint && codePoint <= 8839 || 8853 == codePoint || 8857 == codePoint || 8869 == codePoint || 8895 == codePoint || 8978 == codePoint || 9312 <= codePoint && codePoint <= 9449 || 9451 <= codePoint && codePoint <= 9547 || 9552 <= codePoint && codePoint <= 9587 || 9600 <= codePoint && codePoint <= 9615 || 9618 <= codePoint && codePoint <= 9621 || 9632 <= codePoint && codePoint <= 9633 || 9635 <= codePoint && codePoint <= 9641 || 9650 <= codePoint && codePoint <= 9651 || 9654 <= codePoint && codePoint <= 9655 || 9660 <= codePoint && codePoint <= 9661 || 9664 <= codePoint && codePoint <= 9665 || 9670 <= codePoint && codePoint <= 9672 || 9675 == codePoint || 9678 <= codePoint && codePoint <= 9681 || 9698 <= codePoint && codePoint <= 9701 || 9711 == codePoint || 9733 <= codePoint && codePoint <= 9734 || 9737 == codePoint || 9742 <= codePoint && codePoint <= 9743 || 9748 <= codePoint && codePoint <= 9749 || 9756 == codePoint || 9758 == codePoint || 9792 == codePoint || 9794 == codePoint || 9824 <= codePoint && codePoint <= 9825 || 9827 <= codePoint && codePoint <= 9829 || 9831 <= codePoint && codePoint <= 9834 || 9836 <= codePoint && codePoint <= 9837 || 9839 == codePoint || 9886 <= codePoint && codePoint <= 9887 || 9918 <= codePoint && codePoint <= 9919 || 9924 <= codePoint && codePoint <= 9933 || 9935 <= codePoint && codePoint <= 9953 || 9955 == codePoint || 9960 <= codePoint && codePoint <= 9983 || 10045 == codePoint || 10071 == codePoint || 10102 <= codePoint && codePoint <= 10111 || 11093 <= codePoint && codePoint <= 11097 || 12872 <= codePoint && codePoint <= 12879 || 57344 <= codePoint && codePoint <= 63743 || 65024 <= codePoint && codePoint <= 65039 || 65533 == codePoint || 127232 <= codePoint && codePoint <= 127242 || 127248 <= codePoint && codePoint <= 127277 || 127280 <= codePoint && codePoint <= 127337 || 127344 <= codePoint && codePoint <= 127386 || 917760 <= codePoint && codePoint <= 917999 || 983040 <= codePoint && codePoint <= 1048573 || 1048576 <= codePoint && codePoint <= 1114109) {
754
- return "A";
755
- }
756
- return "N";
757
- };
758
- eaw.characterLength = function(character) {
759
- var code = this.eastAsianWidth(character);
760
- if (code == "F" || code == "W" || code == "A") {
761
- return 2;
762
- } else {
763
- return 1;
764
- }
765
- };
766
- function stringToArray(string) {
767
- return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
768
- }
769
- eaw.length = function(string) {
770
- var characters = stringToArray(string);
771
- var len = 0;
772
- for (var i = 0; i < characters.length; i++) {
773
- len = len + this.characterLength(characters[i]);
774
- }
775
- return len;
776
- };
777
- eaw.slice = function(text, start, end) {
778
- textLen = eaw.length(text);
779
- start = start ? start : 0;
780
- end = end ? end : 1;
781
- if (start < 0) {
782
- start = textLen + start;
783
- }
784
- if (end < 0) {
785
- end = textLen + end;
786
- }
787
- var result = "";
788
- var eawLen = 0;
789
- var chars = stringToArray(text);
790
- for (var i = 0; i < chars.length; i++) {
791
- var char = chars[i];
792
- var charLen = eaw.length(char);
793
- if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
794
- if (eawLen + charLen <= end) {
795
- result += char;
796
- } else {
797
- break;
798
- }
799
- }
800
- eawLen += charLen;
801
- }
802
- return result;
803
- };
804
- })(eastasianwidth);
805
- var eastasianwidthExports = eastasianwidth.exports;
806
- var eastAsianWidth = /* @__PURE__ */ getDefaultExportFromCjs(eastasianwidthExports);
807
- var emojiRegex = () => {
808
- return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
809
- };
810
- function stringWidth$1(string, options) {
811
- if (typeof string !== "string" || string.length === 0) {
812
- return 0;
813
- }
814
- options = {
815
- ambiguousIsNarrow: true,
816
- countAnsiEscapeCodes: false,
817
- ...options
818
- };
819
- if (!options.countAnsiEscapeCodes) {
820
- string = stripAnsi2(string);
821
- }
822
- if (string.length === 0) {
823
- return 0;
824
- }
825
- const ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;
826
- let width = 0;
827
- for (const {
828
- segment: character
829
- } of new Intl.Segmenter().segment(string)) {
830
- const codePoint = character.codePointAt(0);
831
- if (codePoint <= 31 || codePoint >= 127 && codePoint <= 159) {
832
- continue;
833
- }
834
- if (codePoint >= 768 && codePoint <= 879) {
835
- continue;
836
- }
837
- if (emojiRegex().test(character)) {
838
- width += 2;
839
- continue;
840
- }
841
- const code = eastAsianWidth.eastAsianWidth(character);
842
- switch (code) {
843
- case "F":
844
- case "W": {
845
- width += 2;
846
- break;
847
- }
848
- case "A": {
849
- width += ambiguousCharacterWidth;
850
- break;
851
- }
852
- default: {
853
- width += 1;
854
- }
855
- }
856
- }
857
- return width;
858
- }
859
- function isUnicodeSupported() {
860
- if (process$1__default.default.platform !== "win32") {
861
- return process$1__default.default.env.TERM !== "linux";
862
- }
863
- return Boolean(process$1__default.default.env.CI) || Boolean(process$1__default.default.env.WT_SESSION) || Boolean(process$1__default.default.env.TERMINUS_SUBLIME) || process$1__default.default.env.ConEmuTask === "{cmd::Cmder}" || process$1__default.default.env.TERM_PROGRAM === "Terminus-Sublime" || process$1__default.default.env.TERM_PROGRAM === "vscode" || process$1__default.default.env.TERM === "xterm-256color" || process$1__default.default.env.TERM === "alacritty" || process$1__default.default.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
864
- }
865
- var TYPE_COLOR_MAP = {
866
- info: "cyan",
867
- fail: "red",
868
- success: "green",
869
- ready: "green",
870
- start: "magenta"
871
- };
872
- var LEVEL_COLOR_MAP = {
873
- 0: "red",
874
- 1: "yellow"
875
- };
876
- var unicode = isUnicodeSupported();
877
- var s = (c, fallback) => unicode ? c : fallback;
878
- var TYPE_ICONS = {
879
- error: s("\u2716", "\xD7"),
880
- fatal: s("\u2716", "\xD7"),
881
- ready: s("\u2714", "\u221A"),
882
- warn: s("\u26A0", "\u203C"),
883
- info: s("\u2139", "i"),
884
- success: s("\u2714", "\u221A"),
885
- debug: s("\u2699", "D"),
886
- trace: s("\u2192", "\u2192"),
887
- fail: s("\u2716", "\xD7"),
888
- start: s("\u25D0", "o"),
889
- log: ""
890
- };
891
- function stringWidth(str) {
892
- if (!Intl.Segmenter) {
893
- return stripAnsi(str).length;
894
- }
895
- return stringWidth$1(str);
896
- }
897
- var FancyReporter = class extends BasicReporter {
898
- formatStack(stack) {
899
- return "\n" + parseStack(stack).map((line) => " " + line.replace(/^at +/, (m) => colors.gray(m)).replace(/\((.+)\)/, (_, m) => `(${colors.cyan(m)})`)).join("\n");
900
- }
901
- formatType(logObj, isBadge, opts) {
902
- const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || "gray";
903
- if (isBadge) {
904
- return getBgColor(typeColor)(colors.black(` ${logObj.type.toUpperCase()} `));
905
- }
906
- const _type = typeof TYPE_ICONS[logObj.type] === "string" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;
907
- return _type ? getColor2(typeColor)(_type) : "";
908
- }
909
- formatLogObj(logObj, opts) {
910
- const [message, ...additional] = this.formatArgs(logObj.args, opts).split("\n");
911
- if (logObj.type === "box") {
912
- return box(characterFormat(message + (additional.length > 0 ? "\n" + additional.join("\n") : "")), {
913
- title: logObj.title ? characterFormat(logObj.title) : void 0,
914
- style: logObj.style
915
- });
916
- }
917
- const date = this.formatDate(logObj.date, opts);
918
- const coloredDate = date && colors.gray(date);
919
- const isBadge = logObj.badge ?? logObj.level < 2;
920
- const type = this.formatType(logObj, isBadge, opts);
921
- const tag = logObj.tag ? colors.gray(logObj.tag) : "";
922
- let line;
923
- const left = this.filterAndJoin([type, characterFormat(message)]);
924
- const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);
925
- const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;
926
- line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
927
- line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
928
- if (logObj.type === "trace") {
929
- const _err = new Error("Trace: " + logObj.message);
930
- line += this.formatStack(_err.stack || "");
931
- }
932
- return isBadge ? "\n" + line + "\n" : line;
933
- }
934
- };
935
- function characterFormat(str) {
936
- return str.replace(/`([^`]+)`/gm, (_, m) => colors.cyan(m)).replace(/\s+_([^_]+)_\s+/gm, (_, m) => ` ${colors.underline(m)} `);
937
- }
938
- function getColor2(color = "white") {
939
- return colors[color] || colors.white;
940
- }
941
- function getBgColor(color = "bgWhite") {
942
- return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;
943
- }
944
- function createConsola2(options = {}) {
945
- let level = _getDefaultLogLevel();
946
- if (process.env.CONSOLA_LEVEL) {
947
- level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;
948
- }
949
- const consola2 = createConsola({
950
- level,
951
- defaults: {
952
- level
953
- },
954
- stdout: process.stdout,
955
- stderr: process.stderr,
956
- prompt: (...args) => import('./prompt-YMFYYBNJ.cjs').then((m) => m.prompt(...args)),
957
- reporters: options.reporters || [options.fancy ?? !(isCI2 || isTest) ? new FancyReporter() : new BasicReporter()],
958
- ...options
959
- });
960
- return consola2;
961
- }
962
- function _getDefaultLogLevel() {
963
- if (isDebug) {
964
- return LogLevels.debug;
965
- }
966
- if (isTest) {
967
- return LogLevels.warn;
968
- }
969
- return LogLevels.info;
970
- }
971
- var consola = createConsola2();
972
-
973
- exports.colors = colors;
974
- exports.consola = consola;
975
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
976
- exports.isUnicodeSupported = isUnicodeSupported;
977
- //# sourceMappingURL=chunk-XOCES5YA.cjs.map
978
- //# sourceMappingURL=chunk-XOCES5YA.cjs.map