@learnosity/lib-qti-converter 0.12.6 → 0.12.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 (28) hide show
  1. package/package.json +3 -2
  2. package/packages/cli/dist/batchProcessors-DU1HwpHY.js +3753 -0
  3. package/packages/cli/dist/batchProcessors-DU1HwpHY.js.map +1 -0
  4. package/packages/cli/dist/batchWorker.js +1 -1
  5. package/packages/cli/dist/{learnosityToQti-CXDJoJpl.js → learnosityToQti-BSbH3jyx.js} +4 -4
  6. package/packages/cli/dist/{learnosityToQti-CXDJoJpl.js.map → learnosityToQti-BSbH3jyx.js.map} +1 -1
  7. package/packages/cli/dist/{learnosityToQtiPackage-7v-s4ybk.js → learnosityToQtiPackage-B0xRzYmy.js} +4 -5
  8. package/packages/cli/dist/{learnosityToQtiPackage-7v-s4ybk.js.map → learnosityToQtiPackage-B0xRzYmy.js.map} +1 -1
  9. package/packages/cli/dist/main.js +6 -6
  10. package/packages/cli/dist/main.js.map +1 -1
  11. package/packages/cli/dist/nodeFileAccess-BkzSHCOh.js +291 -0
  12. package/packages/cli/dist/nodeFileAccess-BkzSHCOh.js.map +1 -0
  13. package/packages/cli/dist/{pathUtils-CgoDQyJk.js → pathUtils-B9yPTlVF.js} +3 -149
  14. package/packages/cli/dist/pathUtils-B9yPTlVF.js.map +1 -0
  15. package/packages/cli/dist/{qtiPackageToLearnosity-hT4QZ7YX.js → qtiPackageToLearnosity-C7JaaUDU.js} +5 -5
  16. package/packages/cli/dist/{qtiPackageToLearnosity-hT4QZ7YX.js.map → qtiPackageToLearnosity-C7JaaUDU.js.map} +1 -1
  17. package/packages/cli/dist/{qtiToLearnosity-BU7mHhIu.js → qtiToLearnosity-CYoG2aIX.js} +5 -5
  18. package/packages/cli/dist/{qtiToLearnosity-BU7mHhIu.js.map → qtiToLearnosity-CYoG2aIX.js.map} +1 -1
  19. package/packages/cli/dist/resolveOptions-CW80R2EQ.js +2879 -0
  20. package/packages/cli/dist/resolveOptions-CW80R2EQ.js.map +1 -0
  21. package/packages/cli/dist/{resolveOptions-ehwJSkQy.js → table-DjOn2Tsk.js} +2427 -2816
  22. package/packages/cli/dist/table-DjOn2Tsk.js.map +1 -0
  23. package/packages/cli/dist/batchProcessors-C8k2v0o_.js +0 -217
  24. package/packages/cli/dist/batchProcessors-C8k2v0o_.js.map +0 -1
  25. package/packages/cli/dist/pathUtils-CgoDQyJk.js.map +0 -1
  26. package/packages/cli/dist/resolveOptions-ehwJSkQy.js.map +0 -1
  27. package/packages/cli/dist/table-DYcNeyJ_.js +0 -2306
  28. package/packages/cli/dist/table-DYcNeyJ_.js.map +0 -1
@@ -0,0 +1,2879 @@
1
+ import { i as __toESM } from "./rolldown-runtime-B4iAMlE-.js";
2
+ import { r as onExit } from "./create-prompt-DU9wLVhI.js";
3
+ import { t as dist_default } from "./dist-DjpU2mIj.js";
4
+ import { a as chalk, c as dist_default$1, i as boxen, o as eastAsianWidth, s as stripAnsi, t as expandTilde } from "./pathUtils-B9yPTlVF.js";
5
+ import { _ as mapLearnosityToAst, a as require_cli_table3, b as parseLearnosityItem, c as transformForwardAssetUrlsInXml, i as chalk$1, l as convertQtiAssessmentItemToLearnosity, m as serializeAssessmentItem } from "./table-DjOn2Tsk.js";
6
+ import process$1 from "node:process";
7
+ import { stripVTControlCharacters } from "node:util";
8
+ import { mkdir, readFile, stat, writeFile } from "fs/promises";
9
+ import { dirname } from "path";
10
+ import tty from "node:tty";
11
+ import { createInterface } from "readline";
12
+ //#region ../core/src/conversions.ts
13
+ /**
14
+ * Convert QTI XML to Learnosity JSON.
15
+ *
16
+ * Pure/in-memory: passage and LOM lookups only happen if a `fileAccess`
17
+ * implementation is supplied in `opts` (Node callers can inject `nodeFileAccess`
18
+ * from `@learnosity/converter-core/node`).
19
+ *
20
+ * @param input - QTI XML string
21
+ * @param opts - Conversion options
22
+ * @returns Learnosity JSON and diagnostics
23
+ */
24
+ function convertQtiToLearnosity(input, opts) {
25
+ const result = convertQtiAssessmentItemToLearnosity(input, {
26
+ qtiVersion: opts.qtiVersion,
27
+ inputPath: opts.inputPath,
28
+ organisationId: opts.organisationId,
29
+ mediaVault: opts.mediaVault,
30
+ customAssetUrl: opts.customAssetUrl,
31
+ itemReferenceSource: opts.itemReferenceSource,
32
+ fileAccess: opts.fileAccess
33
+ });
34
+ return Promise.resolve({
35
+ output: result.item,
36
+ diagnostics: result.diagnostics
37
+ });
38
+ }
39
+ /**
40
+ * Convert Learnosity JSON to QTI XML
41
+ * @param input - Learnosity JSON object
42
+ * @param opts - Conversion options
43
+ * @returns QTI XML string and diagnostics
44
+ */
45
+ function convertLearnosityToQti(input, opts) {
46
+ const allDiagnostics = [];
47
+ const parseResult = parseLearnosityItem(input);
48
+ allDiagnostics.push(...parseResult.diagnostics);
49
+ if (!parseResult.model) return Promise.resolve({
50
+ output: "",
51
+ diagnostics: allDiagnostics
52
+ });
53
+ if (parseResult.model.features.some((f) => f.type === "sharedpassage")) allDiagnostics.push({
54
+ level: "warning",
55
+ code: "QTI_STIMULUS_INLINED_STANDALONE",
56
+ message: "Item contains sharedpassage features, but standalone item conversion does not support stimulus resources. Use learnosity-to-qti-package command to convert as a package with proper stimulus resources.",
57
+ file: "features"
58
+ });
59
+ const mapResult = mapLearnosityToAst(parseResult.model);
60
+ allDiagnostics.push(...mapResult.diagnostics);
61
+ if (!mapResult.ast) return Promise.resolve({
62
+ output: "",
63
+ diagnostics: allDiagnostics
64
+ });
65
+ const serializeResult = serializeAssessmentItem(mapResult.ast, {
66
+ pretty: true,
67
+ version: opts.qtiVersion
68
+ });
69
+ allDiagnostics.push(...serializeResult.diagnostics);
70
+ if (!serializeResult.xml) return Promise.resolve({
71
+ output: "",
72
+ diagnostics: allDiagnostics
73
+ });
74
+ if (allDiagnostics.some((d) => d.level === "error")) return Promise.resolve({
75
+ output: "",
76
+ diagnostics: allDiagnostics
77
+ });
78
+ const output = transformForwardAssetUrlsInXml(serializeResult.xml, opts.customAssetUrl);
79
+ return Promise.resolve({
80
+ output,
81
+ diagnostics: allDiagnostics
82
+ });
83
+ }
84
+ //#endregion
85
+ //#region src/io/readInput.ts
86
+ /**
87
+ * Read input from file or stdin
88
+ * @param inputPath - File path or '-' for stdin
89
+ * @returns Input content as string
90
+ */
91
+ async function readInput(inputPath) {
92
+ if (inputPath === "-") return readStdin();
93
+ try {
94
+ if ((await stat(inputPath)).isDirectory()) throw new Error(`Input path is a directory: ${inputPath}\n\nTo convert a directory of Learnosity items, use:\n lrn-converter learnosity-to-qti-package --in ${inputPath} --out <output-path>\n\nOr use the short alias:\n lcon learnosity-to-qti-package --in ${inputPath} --out <output-path>`);
95
+ } catch (error) {
96
+ if (error.code !== "ENOENT") throw error;
97
+ }
98
+ return readFile(inputPath, "utf-8");
99
+ }
100
+ /**
101
+ * Read from stdin
102
+ */
103
+ async function readStdin() {
104
+ const chunks = [];
105
+ const rl = createInterface({
106
+ input: process.stdin,
107
+ crlfDelay: Infinity
108
+ });
109
+ for await (const line of rl) chunks.push(line);
110
+ return chunks.join("\n");
111
+ }
112
+ /**
113
+ * Parse JSON input safely
114
+ * @param input - String that might be JSON
115
+ * @returns Parsed object or throws
116
+ */
117
+ function parseJsonInput(input) {
118
+ try {
119
+ return JSON.parse(input);
120
+ } catch (error) {
121
+ throw new Error(`Failed to parse JSON input: ${error instanceof Error ? error.message : "unknown error"}`);
122
+ }
123
+ }
124
+ //#endregion
125
+ //#region src/io/writeOutput.ts
126
+ /**
127
+ * Write output to file or stdout
128
+ * @param outputPath - File path or '-' for stdout
129
+ * @param content - Content to write
130
+ * @param pretty - Pretty-print JSON if applicable
131
+ */
132
+ async function writeOutput(outputPath, content, pretty = false) {
133
+ let output;
134
+ if (typeof content === "string") output = content;
135
+ else output = JSON.stringify(content, null, pretty ? 2 : 0);
136
+ if (outputPath === "-") {
137
+ process.stdout.write(output);
138
+ if (!output.endsWith("\n")) process.stdout.write("\n");
139
+ } else {
140
+ await mkdir(dirname(outputPath), { recursive: true });
141
+ await writeFile(outputPath, output, "utf-8");
142
+ }
143
+ }
144
+ //#endregion
145
+ //#region src/ux/resolvedOptions.ts
146
+ var import_cli_table3 = /* @__PURE__ */ __toESM(require_cli_table3(), 1);
147
+ /**
148
+ * Display resolved options in a box
149
+ */
150
+ function showResolvedOptions(options, withSources, quiet = false) {
151
+ if (quiet) return;
152
+ const lines = [];
153
+ lines.push(chalk$1.bold("Resolved Options"));
154
+ lines.push("");
155
+ lines.push(`${chalk$1.dim("Input:")} ${options.inputPath}`);
156
+ lines.push(`${chalk$1.dim("Output:")} ${options.outputPath}`);
157
+ lines.push(`${chalk$1.dim("QTI Version:")} ${options.qtiVersion}`);
158
+ lines.push(`${chalk$1.dim("Output Format:")} ${options.outputFormat}`);
159
+ lines.push(`${chalk$1.dim("Diagnostics:")} ${options.diagnostics}`);
160
+ lines.push(`${chalk$1.dim("Pretty:")} ${options.pretty}`);
161
+ lines.push(`${chalk$1.dim("Verbose:")} ${options.verbose}`);
162
+ if (options.organisationId !== void 0) lines.push(`${chalk$1.dim("Organisation ID:")} ${options.organisationId}`);
163
+ if (options.mediaVault !== void 0) lines.push(`${chalk$1.dim("Media Vault:")} ${options.mediaVault}`);
164
+ if (options.customAssetUrl !== void 0) lines.push(`${chalk$1.dim("Custom Asset URL:")} ${options.customAssetUrl}`);
165
+ lines.push(`${chalk$1.dim("Config:")} ${options.configPath ?? "none"}`);
166
+ const box = boxen(lines.join("\n"), {
167
+ padding: 1,
168
+ margin: {
169
+ top: 0,
170
+ bottom: 1,
171
+ left: 0,
172
+ right: 0
173
+ },
174
+ borderStyle: "round",
175
+ borderColor: "blue"
176
+ });
177
+ console.log(box);
178
+ if (options.verbose && withSources) showOptionSources(withSources);
179
+ }
180
+ /**
181
+ * Display option sources table (verbose mode)
182
+ */
183
+ function showOptionSources(withSources) {
184
+ const table = new import_cli_table3.default({
185
+ head: [
186
+ chalk$1.bold("Option"),
187
+ chalk$1.bold("Value"),
188
+ chalk$1.bold("Source")
189
+ ],
190
+ style: {
191
+ head: [],
192
+ border: []
193
+ }
194
+ });
195
+ table.push([
196
+ "qtiVersion",
197
+ withSources.qtiVersion.value,
198
+ formatSource(withSources.qtiVersion.source)
199
+ ], [
200
+ "outputFormat",
201
+ withSources.outputFormat.value,
202
+ formatSource(withSources.outputFormat.source)
203
+ ], [
204
+ "diagnostics",
205
+ withSources.diagnostics.value,
206
+ formatSource(withSources.diagnostics.source)
207
+ ], [
208
+ "verbose",
209
+ String(withSources.verbose.value),
210
+ formatSource(withSources.verbose.source)
211
+ ], [
212
+ "pretty",
213
+ String(withSources.pretty.value),
214
+ formatSource(withSources.pretty.source)
215
+ ]);
216
+ if (withSources.organisationId) table.push([
217
+ "organisationId",
218
+ String(withSources.organisationId.value),
219
+ formatSource(withSources.organisationId.source)
220
+ ]);
221
+ if (withSources.mediaVault) table.push([
222
+ "mediaVault",
223
+ String(withSources.mediaVault.value),
224
+ formatSource(withSources.mediaVault.source)
225
+ ]);
226
+ if (withSources.customAssetUrl) table.push([
227
+ "customAssetUrl",
228
+ String(withSources.customAssetUrl.value),
229
+ formatSource(withSources.customAssetUrl.source)
230
+ ]);
231
+ console.log(chalk$1.dim("Option Sources:"));
232
+ console.log(table.toString());
233
+ console.log();
234
+ }
235
+ /**
236
+ * Format source with color
237
+ */
238
+ function formatSource(source) {
239
+ switch (source) {
240
+ case "cli": return chalk$1.cyan("CLI");
241
+ case "config": return chalk$1.green("Config");
242
+ case "default": return chalk$1.dim("Default");
243
+ default: return source;
244
+ }
245
+ }
246
+ //#endregion
247
+ //#region ../../node_modules/.pnpm/mimic-function@5.0.1/node_modules/mimic-function/index.js
248
+ const copyProperty = (to, from, property, ignoreNonConfigurable) => {
249
+ if (property === "length" || property === "prototype") return;
250
+ if (property === "arguments" || property === "caller") return;
251
+ const toDescriptor = Object.getOwnPropertyDescriptor(to, property);
252
+ const fromDescriptor = Object.getOwnPropertyDescriptor(from, property);
253
+ if (!canCopyProperty(toDescriptor, fromDescriptor) && ignoreNonConfigurable) return;
254
+ Object.defineProperty(to, property, fromDescriptor);
255
+ };
256
+ const canCopyProperty = function(toDescriptor, fromDescriptor) {
257
+ return toDescriptor === void 0 || toDescriptor.configurable || toDescriptor.writable === fromDescriptor.writable && toDescriptor.enumerable === fromDescriptor.enumerable && toDescriptor.configurable === fromDescriptor.configurable && (toDescriptor.writable || toDescriptor.value === fromDescriptor.value);
258
+ };
259
+ const changePrototype = (to, from) => {
260
+ const fromPrototype = Object.getPrototypeOf(from);
261
+ if (fromPrototype === Object.getPrototypeOf(to)) return;
262
+ Object.setPrototypeOf(to, fromPrototype);
263
+ };
264
+ const wrappedToString = (withName, fromBody) => `/* Wrapped ${withName}*/\n${fromBody}`;
265
+ const toStringDescriptor = Object.getOwnPropertyDescriptor(Function.prototype, "toString");
266
+ const toStringName = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name");
267
+ const changeToString = (to, from, name) => {
268
+ const withName = name === "" ? "" : `with ${name.trim()}() `;
269
+ const newToString = wrappedToString.bind(null, withName, from.toString());
270
+ Object.defineProperty(newToString, "name", toStringName);
271
+ const { writable, enumerable, configurable } = toStringDescriptor;
272
+ Object.defineProperty(to, "toString", {
273
+ value: newToString,
274
+ writable,
275
+ enumerable,
276
+ configurable
277
+ });
278
+ };
279
+ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
280
+ const { name } = to;
281
+ for (const property of Reflect.ownKeys(from)) copyProperty(to, from, property, ignoreNonConfigurable);
282
+ changePrototype(to, from);
283
+ changeToString(to, from, name);
284
+ return to;
285
+ }
286
+ //#endregion
287
+ //#region ../../node_modules/.pnpm/onetime@7.0.0/node_modules/onetime/index.js
288
+ const calledFunctions = /* @__PURE__ */ new WeakMap();
289
+ const onetime = (function_, options = {}) => {
290
+ if (typeof function_ !== "function") throw new TypeError("Expected a function");
291
+ let returnValue;
292
+ let callCount = 0;
293
+ const functionName = function_.displayName || function_.name || "<anonymous>";
294
+ const onetime = function(...arguments_) {
295
+ calledFunctions.set(onetime, ++callCount);
296
+ if (callCount === 1) {
297
+ returnValue = function_.apply(this, arguments_);
298
+ function_ = void 0;
299
+ } else if (options.throw === true) throw new Error(`Function \`${functionName}\` can only be called once`);
300
+ return returnValue;
301
+ };
302
+ mimicFunction(onetime, function_);
303
+ calledFunctions.set(onetime, callCount);
304
+ return onetime;
305
+ };
306
+ onetime.callCount = (function_) => {
307
+ if (!calledFunctions.has(function_)) throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
308
+ return calledFunctions.get(function_);
309
+ };
310
+ //#endregion
311
+ //#region ../../node_modules/.pnpm/restore-cursor@5.1.0/node_modules/restore-cursor/index.js
312
+ const terminal = process$1.stderr.isTTY ? process$1.stderr : process$1.stdout.isTTY ? process$1.stdout : void 0;
313
+ const restoreCursor = terminal ? onetime(() => {
314
+ onExit(() => {
315
+ terminal.write("\x1B[?25h");
316
+ }, { alwaysLast: true });
317
+ }) : () => {};
318
+ //#endregion
319
+ //#region ../../node_modules/.pnpm/cli-cursor@5.0.0/node_modules/cli-cursor/index.js
320
+ let isHidden = false;
321
+ const cliCursor = {};
322
+ cliCursor.show = (writableStream = process$1.stderr) => {
323
+ if (!writableStream.isTTY) return;
324
+ isHidden = false;
325
+ writableStream.write("\x1B[?25h");
326
+ };
327
+ cliCursor.hide = (writableStream = process$1.stderr) => {
328
+ if (!writableStream.isTTY) return;
329
+ restoreCursor();
330
+ isHidden = true;
331
+ writableStream.write("\x1B[?25l");
332
+ };
333
+ cliCursor.toggle = (force, writableStream) => {
334
+ if (force !== void 0) isHidden = force;
335
+ if (isHidden) cliCursor.show(writableStream);
336
+ else cliCursor.hide(writableStream);
337
+ };
338
+ //#endregion
339
+ //#region ../../node_modules/.pnpm/cli-spinners@3.4.0/node_modules/cli-spinners/spinners.json
340
+ var spinners_default = {
341
+ dots: {
342
+ "interval": 80,
343
+ "frames": [
344
+ "⠋",
345
+ "⠙",
346
+ "⠹",
347
+ "⠸",
348
+ "⠼",
349
+ "⠴",
350
+ "⠦",
351
+ "⠧",
352
+ "⠇",
353
+ "⠏"
354
+ ]
355
+ },
356
+ dots2: {
357
+ "interval": 80,
358
+ "frames": [
359
+ "⣾",
360
+ "⣽",
361
+ "⣻",
362
+ "⢿",
363
+ "⡿",
364
+ "⣟",
365
+ "⣯",
366
+ "⣷"
367
+ ]
368
+ },
369
+ dots3: {
370
+ "interval": 80,
371
+ "frames": [
372
+ "⠋",
373
+ "⠙",
374
+ "⠚",
375
+ "⠞",
376
+ "⠖",
377
+ "⠦",
378
+ "⠴",
379
+ "⠲",
380
+ "⠳",
381
+ "⠓"
382
+ ]
383
+ },
384
+ dots4: {
385
+ "interval": 80,
386
+ "frames": [
387
+ "⠄",
388
+ "⠆",
389
+ "⠇",
390
+ "⠋",
391
+ "⠙",
392
+ "⠸",
393
+ "⠰",
394
+ "⠠",
395
+ "⠰",
396
+ "⠸",
397
+ "⠙",
398
+ "⠋",
399
+ "⠇",
400
+ "⠆"
401
+ ]
402
+ },
403
+ dots5: {
404
+ "interval": 80,
405
+ "frames": [
406
+ "⠋",
407
+ "⠙",
408
+ "⠚",
409
+ "⠒",
410
+ "⠂",
411
+ "⠂",
412
+ "⠒",
413
+ "⠲",
414
+ "⠴",
415
+ "⠦",
416
+ "⠖",
417
+ "⠒",
418
+ "⠐",
419
+ "⠐",
420
+ "⠒",
421
+ "⠓",
422
+ "⠋"
423
+ ]
424
+ },
425
+ dots6: {
426
+ "interval": 80,
427
+ "frames": [
428
+ "⠁",
429
+ "⠉",
430
+ "⠙",
431
+ "⠚",
432
+ "⠒",
433
+ "⠂",
434
+ "⠂",
435
+ "⠒",
436
+ "⠲",
437
+ "⠴",
438
+ "⠤",
439
+ "⠄",
440
+ "⠄",
441
+ "⠤",
442
+ "⠴",
443
+ "⠲",
444
+ "⠒",
445
+ "⠂",
446
+ "⠂",
447
+ "⠒",
448
+ "⠚",
449
+ "⠙",
450
+ "⠉",
451
+ "⠁"
452
+ ]
453
+ },
454
+ dots7: {
455
+ "interval": 80,
456
+ "frames": [
457
+ "⠈",
458
+ "⠉",
459
+ "⠋",
460
+ "⠓",
461
+ "⠒",
462
+ "⠐",
463
+ "⠐",
464
+ "⠒",
465
+ "⠖",
466
+ "⠦",
467
+ "⠤",
468
+ "⠠",
469
+ "⠠",
470
+ "⠤",
471
+ "⠦",
472
+ "⠖",
473
+ "⠒",
474
+ "⠐",
475
+ "⠐",
476
+ "⠒",
477
+ "⠓",
478
+ "⠋",
479
+ "⠉",
480
+ "⠈"
481
+ ]
482
+ },
483
+ dots8: {
484
+ "interval": 80,
485
+ "frames": [
486
+ "⠁",
487
+ "⠁",
488
+ "⠉",
489
+ "⠙",
490
+ "⠚",
491
+ "⠒",
492
+ "⠂",
493
+ "⠂",
494
+ "⠒",
495
+ "⠲",
496
+ "⠴",
497
+ "⠤",
498
+ "⠄",
499
+ "⠄",
500
+ "⠤",
501
+ "⠠",
502
+ "⠠",
503
+ "⠤",
504
+ "⠦",
505
+ "⠖",
506
+ "⠒",
507
+ "⠐",
508
+ "⠐",
509
+ "⠒",
510
+ "⠓",
511
+ "⠋",
512
+ "⠉",
513
+ "⠈",
514
+ "⠈"
515
+ ]
516
+ },
517
+ dots9: {
518
+ "interval": 80,
519
+ "frames": [
520
+ "⢹",
521
+ "⢺",
522
+ "⢼",
523
+ "⣸",
524
+ "⣇",
525
+ "⡧",
526
+ "⡗",
527
+ "⡏"
528
+ ]
529
+ },
530
+ dots10: {
531
+ "interval": 80,
532
+ "frames": [
533
+ "⢄",
534
+ "⢂",
535
+ "⢁",
536
+ "⡁",
537
+ "⡈",
538
+ "⡐",
539
+ "⡠"
540
+ ]
541
+ },
542
+ dots11: {
543
+ "interval": 100,
544
+ "frames": [
545
+ "⠁",
546
+ "⠂",
547
+ "⠄",
548
+ "⡀",
549
+ "⢀",
550
+ "⠠",
551
+ "⠐",
552
+ "⠈"
553
+ ]
554
+ },
555
+ dots12: {
556
+ "interval": 80,
557
+ "frames": [
558
+ "⢀⠀",
559
+ "⡀⠀",
560
+ "⠄⠀",
561
+ "⢂⠀",
562
+ "⡂⠀",
563
+ "⠅⠀",
564
+ "⢃⠀",
565
+ "⡃⠀",
566
+ "⠍⠀",
567
+ "⢋⠀",
568
+ "⡋⠀",
569
+ "⠍⠁",
570
+ "⢋⠁",
571
+ "⡋⠁",
572
+ "⠍⠉",
573
+ "⠋⠉",
574
+ "⠋⠉",
575
+ "⠉⠙",
576
+ "⠉⠙",
577
+ "⠉⠩",
578
+ "⠈⢙",
579
+ "⠈⡙",
580
+ "⢈⠩",
581
+ "⡀⢙",
582
+ "⠄⡙",
583
+ "⢂⠩",
584
+ "⡂⢘",
585
+ "⠅⡘",
586
+ "⢃⠨",
587
+ "⡃⢐",
588
+ "⠍⡐",
589
+ "⢋⠠",
590
+ "⡋⢀",
591
+ "⠍⡁",
592
+ "⢋⠁",
593
+ "⡋⠁",
594
+ "⠍⠉",
595
+ "⠋⠉",
596
+ "⠋⠉",
597
+ "⠉⠙",
598
+ "⠉⠙",
599
+ "⠉⠩",
600
+ "⠈⢙",
601
+ "⠈⡙",
602
+ "⠈⠩",
603
+ "⠀⢙",
604
+ "⠀⡙",
605
+ "⠀⠩",
606
+ "⠀⢘",
607
+ "⠀⡘",
608
+ "⠀⠨",
609
+ "⠀⢐",
610
+ "⠀⡐",
611
+ "⠀⠠",
612
+ "⠀⢀",
613
+ "⠀⡀"
614
+ ]
615
+ },
616
+ dots13: {
617
+ "interval": 80,
618
+ "frames": [
619
+ "⣼",
620
+ "⣹",
621
+ "⢻",
622
+ "⠿",
623
+ "⡟",
624
+ "⣏",
625
+ "⣧",
626
+ "⣶"
627
+ ]
628
+ },
629
+ dots14: {
630
+ "interval": 80,
631
+ "frames": [
632
+ "⠉⠉",
633
+ "⠈⠙",
634
+ "⠀⠹",
635
+ "⠀⢸",
636
+ "⠀⣰",
637
+ "⢀⣠",
638
+ "⣀⣀",
639
+ "⣄⡀",
640
+ "⣆⠀",
641
+ "⡇⠀",
642
+ "⠏⠀",
643
+ "⠋⠁"
644
+ ]
645
+ },
646
+ dots8Bit: {
647
+ "interval": 80,
648
+ "frames": [
649
+ "⠀",
650
+ "⠁",
651
+ "⠂",
652
+ "⠃",
653
+ "⠄",
654
+ "⠅",
655
+ "⠆",
656
+ "⠇",
657
+ "⡀",
658
+ "⡁",
659
+ "⡂",
660
+ "⡃",
661
+ "⡄",
662
+ "⡅",
663
+ "⡆",
664
+ "⡇",
665
+ "⠈",
666
+ "⠉",
667
+ "⠊",
668
+ "⠋",
669
+ "⠌",
670
+ "⠍",
671
+ "⠎",
672
+ "⠏",
673
+ "⡈",
674
+ "⡉",
675
+ "⡊",
676
+ "⡋",
677
+ "⡌",
678
+ "⡍",
679
+ "⡎",
680
+ "⡏",
681
+ "⠐",
682
+ "⠑",
683
+ "⠒",
684
+ "⠓",
685
+ "⠔",
686
+ "⠕",
687
+ "⠖",
688
+ "⠗",
689
+ "⡐",
690
+ "⡑",
691
+ "⡒",
692
+ "⡓",
693
+ "⡔",
694
+ "⡕",
695
+ "⡖",
696
+ "⡗",
697
+ "⠘",
698
+ "⠙",
699
+ "⠚",
700
+ "⠛",
701
+ "⠜",
702
+ "⠝",
703
+ "⠞",
704
+ "⠟",
705
+ "⡘",
706
+ "⡙",
707
+ "⡚",
708
+ "⡛",
709
+ "⡜",
710
+ "⡝",
711
+ "⡞",
712
+ "⡟",
713
+ "⠠",
714
+ "⠡",
715
+ "⠢",
716
+ "⠣",
717
+ "⠤",
718
+ "⠥",
719
+ "⠦",
720
+ "⠧",
721
+ "⡠",
722
+ "⡡",
723
+ "⡢",
724
+ "⡣",
725
+ "⡤",
726
+ "⡥",
727
+ "⡦",
728
+ "⡧",
729
+ "⠨",
730
+ "⠩",
731
+ "⠪",
732
+ "⠫",
733
+ "⠬",
734
+ "⠭",
735
+ "⠮",
736
+ "⠯",
737
+ "⡨",
738
+ "⡩",
739
+ "⡪",
740
+ "⡫",
741
+ "⡬",
742
+ "⡭",
743
+ "⡮",
744
+ "⡯",
745
+ "⠰",
746
+ "⠱",
747
+ "⠲",
748
+ "⠳",
749
+ "⠴",
750
+ "⠵",
751
+ "⠶",
752
+ "⠷",
753
+ "⡰",
754
+ "⡱",
755
+ "⡲",
756
+ "⡳",
757
+ "⡴",
758
+ "⡵",
759
+ "⡶",
760
+ "⡷",
761
+ "⠸",
762
+ "⠹",
763
+ "⠺",
764
+ "⠻",
765
+ "⠼",
766
+ "⠽",
767
+ "⠾",
768
+ "⠿",
769
+ "⡸",
770
+ "⡹",
771
+ "⡺",
772
+ "⡻",
773
+ "⡼",
774
+ "⡽",
775
+ "⡾",
776
+ "⡿",
777
+ "⢀",
778
+ "⢁",
779
+ "⢂",
780
+ "⢃",
781
+ "⢄",
782
+ "⢅",
783
+ "⢆",
784
+ "⢇",
785
+ "⣀",
786
+ "⣁",
787
+ "⣂",
788
+ "⣃",
789
+ "⣄",
790
+ "⣅",
791
+ "⣆",
792
+ "⣇",
793
+ "⢈",
794
+ "⢉",
795
+ "⢊",
796
+ "⢋",
797
+ "⢌",
798
+ "⢍",
799
+ "⢎",
800
+ "⢏",
801
+ "⣈",
802
+ "⣉",
803
+ "⣊",
804
+ "⣋",
805
+ "⣌",
806
+ "⣍",
807
+ "⣎",
808
+ "⣏",
809
+ "⢐",
810
+ "⢑",
811
+ "⢒",
812
+ "⢓",
813
+ "⢔",
814
+ "⢕",
815
+ "⢖",
816
+ "⢗",
817
+ "⣐",
818
+ "⣑",
819
+ "⣒",
820
+ "⣓",
821
+ "⣔",
822
+ "⣕",
823
+ "⣖",
824
+ "⣗",
825
+ "⢘",
826
+ "⢙",
827
+ "⢚",
828
+ "⢛",
829
+ "⢜",
830
+ "⢝",
831
+ "⢞",
832
+ "⢟",
833
+ "⣘",
834
+ "⣙",
835
+ "⣚",
836
+ "⣛",
837
+ "⣜",
838
+ "⣝",
839
+ "⣞",
840
+ "⣟",
841
+ "⢠",
842
+ "⢡",
843
+ "⢢",
844
+ "⢣",
845
+ "⢤",
846
+ "⢥",
847
+ "⢦",
848
+ "⢧",
849
+ "⣠",
850
+ "⣡",
851
+ "⣢",
852
+ "⣣",
853
+ "⣤",
854
+ "⣥",
855
+ "⣦",
856
+ "⣧",
857
+ "⢨",
858
+ "⢩",
859
+ "⢪",
860
+ "⢫",
861
+ "⢬",
862
+ "⢭",
863
+ "⢮",
864
+ "⢯",
865
+ "⣨",
866
+ "⣩",
867
+ "⣪",
868
+ "⣫",
869
+ "⣬",
870
+ "⣭",
871
+ "⣮",
872
+ "⣯",
873
+ "⢰",
874
+ "⢱",
875
+ "⢲",
876
+ "⢳",
877
+ "⢴",
878
+ "⢵",
879
+ "⢶",
880
+ "⢷",
881
+ "⣰",
882
+ "⣱",
883
+ "⣲",
884
+ "⣳",
885
+ "⣴",
886
+ "⣵",
887
+ "⣶",
888
+ "⣷",
889
+ "⢸",
890
+ "⢹",
891
+ "⢺",
892
+ "⢻",
893
+ "⢼",
894
+ "⢽",
895
+ "⢾",
896
+ "⢿",
897
+ "⣸",
898
+ "⣹",
899
+ "⣺",
900
+ "⣻",
901
+ "⣼",
902
+ "⣽",
903
+ "⣾",
904
+ "⣿"
905
+ ]
906
+ },
907
+ dotsCircle: {
908
+ "interval": 80,
909
+ "frames": [
910
+ "⢎ ",
911
+ "⠎⠁",
912
+ "⠊⠑",
913
+ "⠈⠱",
914
+ " ⡱",
915
+ "⢀⡰",
916
+ "⢄⡠",
917
+ "⢆⡀"
918
+ ]
919
+ },
920
+ sand: {
921
+ "interval": 80,
922
+ "frames": [
923
+ "⠁",
924
+ "⠂",
925
+ "⠄",
926
+ "⡀",
927
+ "⡈",
928
+ "⡐",
929
+ "⡠",
930
+ "⣀",
931
+ "⣁",
932
+ "⣂",
933
+ "⣄",
934
+ "⣌",
935
+ "⣔",
936
+ "⣤",
937
+ "⣥",
938
+ "⣦",
939
+ "⣮",
940
+ "⣶",
941
+ "⣷",
942
+ "⣿",
943
+ "⡿",
944
+ "⠿",
945
+ "⢟",
946
+ "⠟",
947
+ "⡛",
948
+ "⠛",
949
+ "⠫",
950
+ "⢋",
951
+ "⠋",
952
+ "⠍",
953
+ "⡉",
954
+ "⠉",
955
+ "⠑",
956
+ "⠡",
957
+ "⢁"
958
+ ]
959
+ },
960
+ line: {
961
+ "interval": 130,
962
+ "frames": [
963
+ "-",
964
+ "\\",
965
+ "|",
966
+ "/"
967
+ ]
968
+ },
969
+ line2: {
970
+ "interval": 100,
971
+ "frames": [
972
+ "⠂",
973
+ "-",
974
+ "–",
975
+ "—",
976
+ "–",
977
+ "-"
978
+ ]
979
+ },
980
+ rollingLine: {
981
+ "interval": 80,
982
+ "frames": [
983
+ "/ ",
984
+ " - ",
985
+ " \\ ",
986
+ " |",
987
+ " |",
988
+ " \\ ",
989
+ " - ",
990
+ "/ "
991
+ ]
992
+ },
993
+ pipe: {
994
+ "interval": 100,
995
+ "frames": [
996
+ "┤",
997
+ "┘",
998
+ "┴",
999
+ "└",
1000
+ "├",
1001
+ "┌",
1002
+ "┬",
1003
+ "┐"
1004
+ ]
1005
+ },
1006
+ simpleDots: {
1007
+ "interval": 400,
1008
+ "frames": [
1009
+ ". ",
1010
+ ".. ",
1011
+ "...",
1012
+ " "
1013
+ ]
1014
+ },
1015
+ simpleDotsScrolling: {
1016
+ "interval": 200,
1017
+ "frames": [
1018
+ ". ",
1019
+ ".. ",
1020
+ "...",
1021
+ " ..",
1022
+ " .",
1023
+ " "
1024
+ ]
1025
+ },
1026
+ star: {
1027
+ "interval": 70,
1028
+ "frames": [
1029
+ "✶",
1030
+ "✸",
1031
+ "✹",
1032
+ "✺",
1033
+ "✹",
1034
+ "✷"
1035
+ ]
1036
+ },
1037
+ star2: {
1038
+ "interval": 80,
1039
+ "frames": [
1040
+ "+",
1041
+ "x",
1042
+ "*"
1043
+ ]
1044
+ },
1045
+ flip: {
1046
+ "interval": 70,
1047
+ "frames": [
1048
+ "_",
1049
+ "_",
1050
+ "_",
1051
+ "-",
1052
+ "`",
1053
+ "`",
1054
+ "'",
1055
+ "´",
1056
+ "-",
1057
+ "_",
1058
+ "_",
1059
+ "_"
1060
+ ]
1061
+ },
1062
+ hamburger: {
1063
+ "interval": 100,
1064
+ "frames": [
1065
+ "☱",
1066
+ "☲",
1067
+ "☴"
1068
+ ]
1069
+ },
1070
+ growVertical: {
1071
+ "interval": 120,
1072
+ "frames": [
1073
+ "▁",
1074
+ "▃",
1075
+ "▄",
1076
+ "▅",
1077
+ "▆",
1078
+ "▇",
1079
+ "▆",
1080
+ "▅",
1081
+ "▄",
1082
+ "▃"
1083
+ ]
1084
+ },
1085
+ growHorizontal: {
1086
+ "interval": 120,
1087
+ "frames": [
1088
+ "▏",
1089
+ "▎",
1090
+ "▍",
1091
+ "▌",
1092
+ "▋",
1093
+ "▊",
1094
+ "▉",
1095
+ "▊",
1096
+ "▋",
1097
+ "▌",
1098
+ "▍",
1099
+ "▎"
1100
+ ]
1101
+ },
1102
+ balloon: {
1103
+ "interval": 140,
1104
+ "frames": [
1105
+ " ",
1106
+ ".",
1107
+ "o",
1108
+ "O",
1109
+ "@",
1110
+ "*",
1111
+ " "
1112
+ ]
1113
+ },
1114
+ balloon2: {
1115
+ "interval": 120,
1116
+ "frames": [
1117
+ ".",
1118
+ "o",
1119
+ "O",
1120
+ "°",
1121
+ "O",
1122
+ "o",
1123
+ "."
1124
+ ]
1125
+ },
1126
+ noise: {
1127
+ "interval": 100,
1128
+ "frames": [
1129
+ "▓",
1130
+ "▒",
1131
+ "░"
1132
+ ]
1133
+ },
1134
+ bounce: {
1135
+ "interval": 120,
1136
+ "frames": [
1137
+ "⠁",
1138
+ "⠂",
1139
+ "⠄",
1140
+ "⠂"
1141
+ ]
1142
+ },
1143
+ boxBounce: {
1144
+ "interval": 120,
1145
+ "frames": [
1146
+ "▖",
1147
+ "▘",
1148
+ "▝",
1149
+ "▗"
1150
+ ]
1151
+ },
1152
+ boxBounce2: {
1153
+ "interval": 100,
1154
+ "frames": [
1155
+ "▌",
1156
+ "▀",
1157
+ "▐",
1158
+ "▄"
1159
+ ]
1160
+ },
1161
+ triangle: {
1162
+ "interval": 50,
1163
+ "frames": [
1164
+ "◢",
1165
+ "◣",
1166
+ "◤",
1167
+ "◥"
1168
+ ]
1169
+ },
1170
+ binary: {
1171
+ "interval": 80,
1172
+ "frames": [
1173
+ "010010",
1174
+ "001100",
1175
+ "100101",
1176
+ "111010",
1177
+ "111101",
1178
+ "010111",
1179
+ "101011",
1180
+ "111000",
1181
+ "110011",
1182
+ "110101"
1183
+ ]
1184
+ },
1185
+ arc: {
1186
+ "interval": 100,
1187
+ "frames": [
1188
+ "◜",
1189
+ "◠",
1190
+ "◝",
1191
+ "◞",
1192
+ "◡",
1193
+ "◟"
1194
+ ]
1195
+ },
1196
+ circle: {
1197
+ "interval": 120,
1198
+ "frames": [
1199
+ "◡",
1200
+ "⊙",
1201
+ "◠"
1202
+ ]
1203
+ },
1204
+ squareCorners: {
1205
+ "interval": 180,
1206
+ "frames": [
1207
+ "◰",
1208
+ "◳",
1209
+ "◲",
1210
+ "◱"
1211
+ ]
1212
+ },
1213
+ circleQuarters: {
1214
+ "interval": 120,
1215
+ "frames": [
1216
+ "◴",
1217
+ "◷",
1218
+ "◶",
1219
+ "◵"
1220
+ ]
1221
+ },
1222
+ circleHalves: {
1223
+ "interval": 50,
1224
+ "frames": [
1225
+ "◐",
1226
+ "◓",
1227
+ "◑",
1228
+ "◒"
1229
+ ]
1230
+ },
1231
+ squish: {
1232
+ "interval": 100,
1233
+ "frames": ["╫", "╪"]
1234
+ },
1235
+ toggle: {
1236
+ "interval": 250,
1237
+ "frames": ["⊶", "⊷"]
1238
+ },
1239
+ toggle2: {
1240
+ "interval": 80,
1241
+ "frames": ["▫", "▪"]
1242
+ },
1243
+ toggle3: {
1244
+ "interval": 120,
1245
+ "frames": ["□", "■"]
1246
+ },
1247
+ toggle4: {
1248
+ "interval": 100,
1249
+ "frames": [
1250
+ "■",
1251
+ "□",
1252
+ "▪",
1253
+ "▫"
1254
+ ]
1255
+ },
1256
+ toggle5: {
1257
+ "interval": 100,
1258
+ "frames": ["▮", "▯"]
1259
+ },
1260
+ toggle6: {
1261
+ "interval": 300,
1262
+ "frames": ["ဝ", "၀"]
1263
+ },
1264
+ toggle7: {
1265
+ "interval": 80,
1266
+ "frames": ["⦾", "⦿"]
1267
+ },
1268
+ toggle8: {
1269
+ "interval": 100,
1270
+ "frames": ["◍", "◌"]
1271
+ },
1272
+ toggle9: {
1273
+ "interval": 100,
1274
+ "frames": ["◉", "◎"]
1275
+ },
1276
+ toggle10: {
1277
+ "interval": 100,
1278
+ "frames": [
1279
+ "㊂",
1280
+ "㊀",
1281
+ "㊁"
1282
+ ]
1283
+ },
1284
+ toggle11: {
1285
+ "interval": 50,
1286
+ "frames": ["⧇", "⧆"]
1287
+ },
1288
+ toggle12: {
1289
+ "interval": 120,
1290
+ "frames": ["☗", "☖"]
1291
+ },
1292
+ toggle13: {
1293
+ "interval": 80,
1294
+ "frames": [
1295
+ "=",
1296
+ "*",
1297
+ "-"
1298
+ ]
1299
+ },
1300
+ arrow: {
1301
+ "interval": 100,
1302
+ "frames": [
1303
+ "←",
1304
+ "↖",
1305
+ "↑",
1306
+ "↗",
1307
+ "→",
1308
+ "↘",
1309
+ "↓",
1310
+ "↙"
1311
+ ]
1312
+ },
1313
+ arrow2: {
1314
+ "interval": 80,
1315
+ "frames": [
1316
+ "⬆️ ",
1317
+ "↗️ ",
1318
+ "➡️ ",
1319
+ "↘️ ",
1320
+ "⬇️ ",
1321
+ "↙️ ",
1322
+ "⬅️ ",
1323
+ "↖️ "
1324
+ ]
1325
+ },
1326
+ arrow3: {
1327
+ "interval": 120,
1328
+ "frames": [
1329
+ "▹▹▹▹▹",
1330
+ "▸▹▹▹▹",
1331
+ "▹▸▹▹▹",
1332
+ "▹▹▸▹▹",
1333
+ "▹▹▹▸▹",
1334
+ "▹▹▹▹▸"
1335
+ ]
1336
+ },
1337
+ bouncingBar: {
1338
+ "interval": 80,
1339
+ "frames": [
1340
+ "[ ]",
1341
+ "[= ]",
1342
+ "[== ]",
1343
+ "[=== ]",
1344
+ "[====]",
1345
+ "[ ===]",
1346
+ "[ ==]",
1347
+ "[ =]",
1348
+ "[ ]",
1349
+ "[ =]",
1350
+ "[ ==]",
1351
+ "[ ===]",
1352
+ "[====]",
1353
+ "[=== ]",
1354
+ "[== ]",
1355
+ "[= ]"
1356
+ ]
1357
+ },
1358
+ bouncingBall: {
1359
+ "interval": 80,
1360
+ "frames": [
1361
+ "( ● )",
1362
+ "( ● )",
1363
+ "( ● )",
1364
+ "( ● )",
1365
+ "( ●)",
1366
+ "( ● )",
1367
+ "( ● )",
1368
+ "( ● )",
1369
+ "( ● )",
1370
+ "(● )"
1371
+ ]
1372
+ },
1373
+ smiley: {
1374
+ "interval": 200,
1375
+ "frames": ["😄 ", "😝 "]
1376
+ },
1377
+ monkey: {
1378
+ "interval": 300,
1379
+ "frames": [
1380
+ "🙈 ",
1381
+ "🙈 ",
1382
+ "🙉 ",
1383
+ "🙊 "
1384
+ ]
1385
+ },
1386
+ hearts: {
1387
+ "interval": 100,
1388
+ "frames": [
1389
+ "💛 ",
1390
+ "💙 ",
1391
+ "💜 ",
1392
+ "💚 ",
1393
+ "💗 "
1394
+ ]
1395
+ },
1396
+ clock: {
1397
+ "interval": 100,
1398
+ "frames": [
1399
+ "🕛 ",
1400
+ "🕐 ",
1401
+ "🕑 ",
1402
+ "🕒 ",
1403
+ "🕓 ",
1404
+ "🕔 ",
1405
+ "🕕 ",
1406
+ "🕖 ",
1407
+ "🕗 ",
1408
+ "🕘 ",
1409
+ "🕙 ",
1410
+ "🕚 "
1411
+ ]
1412
+ },
1413
+ earth: {
1414
+ "interval": 180,
1415
+ "frames": [
1416
+ "🌍 ",
1417
+ "🌎 ",
1418
+ "🌏 "
1419
+ ]
1420
+ },
1421
+ material: {
1422
+ "interval": 17,
1423
+ "frames": [
1424
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1425
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1426
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1427
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1428
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1429
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1430
+ "███████▁▁▁▁▁▁▁▁▁▁▁▁▁",
1431
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
1432
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1433
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1434
+ "██████████▁▁▁▁▁▁▁▁▁▁",
1435
+ "███████████▁▁▁▁▁▁▁▁▁",
1436
+ "█████████████▁▁▁▁▁▁▁",
1437
+ "██████████████▁▁▁▁▁▁",
1438
+ "██████████████▁▁▁▁▁▁",
1439
+ "▁██████████████▁▁▁▁▁",
1440
+ "▁██████████████▁▁▁▁▁",
1441
+ "▁██████████████▁▁▁▁▁",
1442
+ "▁▁██████████████▁▁▁▁",
1443
+ "▁▁▁██████████████▁▁▁",
1444
+ "▁▁▁▁█████████████▁▁▁",
1445
+ "▁▁▁▁██████████████▁▁",
1446
+ "▁▁▁▁██████████████▁▁",
1447
+ "▁▁▁▁▁██████████████▁",
1448
+ "▁▁▁▁▁██████████████▁",
1449
+ "▁▁▁▁▁██████████████▁",
1450
+ "▁▁▁▁▁▁██████████████",
1451
+ "▁▁▁▁▁▁██████████████",
1452
+ "▁▁▁▁▁▁▁█████████████",
1453
+ "▁▁▁▁▁▁▁█████████████",
1454
+ "▁▁▁▁▁▁▁▁████████████",
1455
+ "▁▁▁▁▁▁▁▁████████████",
1456
+ "▁▁▁▁▁▁▁▁▁███████████",
1457
+ "▁▁▁▁▁▁▁▁▁███████████",
1458
+ "▁▁▁▁▁▁▁▁▁▁██████████",
1459
+ "▁▁▁▁▁▁▁▁▁▁██████████",
1460
+ "▁▁▁▁▁▁▁▁▁▁▁▁████████",
1461
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1462
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████",
1463
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1464
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1465
+ "█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1466
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1467
+ "██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1468
+ "███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1469
+ "████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1470
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1471
+ "█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1472
+ "██████▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1473
+ "████████▁▁▁▁▁▁▁▁▁▁▁▁",
1474
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1475
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1476
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1477
+ "█████████▁▁▁▁▁▁▁▁▁▁▁",
1478
+ "███████████▁▁▁▁▁▁▁▁▁",
1479
+ "████████████▁▁▁▁▁▁▁▁",
1480
+ "████████████▁▁▁▁▁▁▁▁",
1481
+ "██████████████▁▁▁▁▁▁",
1482
+ "██████████████▁▁▁▁▁▁",
1483
+ "▁██████████████▁▁▁▁▁",
1484
+ "▁██████████████▁▁▁▁▁",
1485
+ "▁▁▁█████████████▁▁▁▁",
1486
+ "▁▁▁▁▁████████████▁▁▁",
1487
+ "▁▁▁▁▁████████████▁▁▁",
1488
+ "▁▁▁▁▁▁███████████▁▁▁",
1489
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
1490
+ "▁▁▁▁▁▁▁▁█████████▁▁▁",
1491
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
1492
+ "▁▁▁▁▁▁▁▁▁█████████▁▁",
1493
+ "▁▁▁▁▁▁▁▁▁▁█████████▁",
1494
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
1495
+ "▁▁▁▁▁▁▁▁▁▁▁████████▁",
1496
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
1497
+ "▁▁▁▁▁▁▁▁▁▁▁▁███████▁",
1498
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1499
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁███████",
1500
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████",
1501
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1502
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1503
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████",
1504
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1505
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███",
1506
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1507
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1508
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██",
1509
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1510
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1511
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█",
1512
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1513
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1514
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁",
1515
+ "▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"
1516
+ ]
1517
+ },
1518
+ moon: {
1519
+ "interval": 80,
1520
+ "frames": [
1521
+ "🌑 ",
1522
+ "🌒 ",
1523
+ "🌓 ",
1524
+ "🌔 ",
1525
+ "🌕 ",
1526
+ "🌖 ",
1527
+ "🌗 ",
1528
+ "🌘 "
1529
+ ]
1530
+ },
1531
+ runner: {
1532
+ "interval": 140,
1533
+ "frames": ["🚶 ", "🏃 "]
1534
+ },
1535
+ pong: {
1536
+ "interval": 80,
1537
+ "frames": [
1538
+ "▐⠂ ▌",
1539
+ "▐⠈ ▌",
1540
+ "▐ ⠂ ▌",
1541
+ "▐ ⠠ ▌",
1542
+ "▐ ⡀ ▌",
1543
+ "▐ ⠠ ▌",
1544
+ "▐ ⠂ ▌",
1545
+ "▐ ⠈ ▌",
1546
+ "▐ ⠂ ▌",
1547
+ "▐ ⠠ ▌",
1548
+ "▐ ⡀ ▌",
1549
+ "▐ ⠠ ▌",
1550
+ "▐ ⠂ ▌",
1551
+ "▐ ⠈ ▌",
1552
+ "▐ ⠂▌",
1553
+ "▐ ⠠▌",
1554
+ "▐ ⡀▌",
1555
+ "▐ ⠠ ▌",
1556
+ "▐ ⠂ ▌",
1557
+ "▐ ⠈ ▌",
1558
+ "▐ ⠂ ▌",
1559
+ "▐ ⠠ ▌",
1560
+ "▐ ⡀ ▌",
1561
+ "▐ ⠠ ▌",
1562
+ "▐ ⠂ ▌",
1563
+ "▐ ⠈ ▌",
1564
+ "▐ ⠂ ▌",
1565
+ "▐ ⠠ ▌",
1566
+ "▐ ⡀ ▌",
1567
+ "▐⠠ ▌"
1568
+ ]
1569
+ },
1570
+ shark: {
1571
+ "interval": 120,
1572
+ "frames": [
1573
+ "▐|\\____________▌",
1574
+ "▐_|\\___________▌",
1575
+ "▐__|\\__________▌",
1576
+ "▐___|\\_________▌",
1577
+ "▐____|\\________▌",
1578
+ "▐_____|\\_______▌",
1579
+ "▐______|\\______▌",
1580
+ "▐_______|\\_____▌",
1581
+ "▐________|\\____▌",
1582
+ "▐_________|\\___▌",
1583
+ "▐__________|\\__▌",
1584
+ "▐___________|\\_▌",
1585
+ "▐____________|\\▌",
1586
+ "▐____________/|▌",
1587
+ "▐___________/|_▌",
1588
+ "▐__________/|__▌",
1589
+ "▐_________/|___▌",
1590
+ "▐________/|____▌",
1591
+ "▐_______/|_____▌",
1592
+ "▐______/|______▌",
1593
+ "▐_____/|_______▌",
1594
+ "▐____/|________▌",
1595
+ "▐___/|_________▌",
1596
+ "▐__/|__________▌",
1597
+ "▐_/|___________▌",
1598
+ "▐/|____________▌"
1599
+ ]
1600
+ },
1601
+ dqpb: {
1602
+ "interval": 100,
1603
+ "frames": [
1604
+ "d",
1605
+ "q",
1606
+ "p",
1607
+ "b"
1608
+ ]
1609
+ },
1610
+ weather: {
1611
+ "interval": 100,
1612
+ "frames": [
1613
+ "☀️ ",
1614
+ "☀️ ",
1615
+ "☀️ ",
1616
+ "🌤 ",
1617
+ "⛅️ ",
1618
+ "🌥 ",
1619
+ "☁️ ",
1620
+ "🌧 ",
1621
+ "🌨 ",
1622
+ "🌧 ",
1623
+ "🌨 ",
1624
+ "🌧 ",
1625
+ "🌨 ",
1626
+ "⛈ ",
1627
+ "🌨 ",
1628
+ "🌧 ",
1629
+ "🌨 ",
1630
+ "☁️ ",
1631
+ "🌥 ",
1632
+ "⛅️ ",
1633
+ "🌤 ",
1634
+ "☀️ ",
1635
+ "☀️ "
1636
+ ]
1637
+ },
1638
+ christmas: {
1639
+ "interval": 400,
1640
+ "frames": ["🌲", "🎄"]
1641
+ },
1642
+ grenade: {
1643
+ "interval": 80,
1644
+ "frames": [
1645
+ "، ",
1646
+ "′ ",
1647
+ " ´ ",
1648
+ " ‾ ",
1649
+ " ⸌",
1650
+ " ⸊",
1651
+ " |",
1652
+ " ⁎",
1653
+ " ⁕",
1654
+ " ෴ ",
1655
+ " ⁓",
1656
+ " ",
1657
+ " ",
1658
+ " "
1659
+ ]
1660
+ },
1661
+ point: {
1662
+ "interval": 125,
1663
+ "frames": [
1664
+ "∙∙∙",
1665
+ "●∙∙",
1666
+ "∙●∙",
1667
+ "∙∙●",
1668
+ "∙∙∙"
1669
+ ]
1670
+ },
1671
+ layer: {
1672
+ "interval": 150,
1673
+ "frames": [
1674
+ "-",
1675
+ "=",
1676
+ "≡"
1677
+ ]
1678
+ },
1679
+ betaWave: {
1680
+ "interval": 80,
1681
+ "frames": [
1682
+ "ρββββββ",
1683
+ "βρβββββ",
1684
+ "ββρββββ",
1685
+ "βββρβββ",
1686
+ "ββββρββ",
1687
+ "βββββρβ",
1688
+ "ββββββρ"
1689
+ ]
1690
+ },
1691
+ fingerDance: {
1692
+ "interval": 160,
1693
+ "frames": [
1694
+ "🤘 ",
1695
+ "🤟 ",
1696
+ "🖖 ",
1697
+ "✋ ",
1698
+ "🤚 ",
1699
+ "👆 "
1700
+ ]
1701
+ },
1702
+ fistBump: {
1703
+ "interval": 80,
1704
+ "frames": [
1705
+ "🤜    🤛 ",
1706
+ "🤜    🤛 ",
1707
+ "🤜    🤛 ",
1708
+ " 🤜  🤛  ",
1709
+ "  🤜🤛   ",
1710
+ " 🤜✨🤛   ",
1711
+ "🤜 ✨ 🤛  "
1712
+ ]
1713
+ },
1714
+ soccerHeader: {
1715
+ "interval": 80,
1716
+ "frames": [
1717
+ " 🧑⚽️ 🧑 ",
1718
+ "🧑 ⚽️ 🧑 ",
1719
+ "🧑 ⚽️ 🧑 ",
1720
+ "🧑 ⚽️ 🧑 ",
1721
+ "🧑 ⚽️ 🧑 ",
1722
+ "🧑 ⚽️ 🧑 ",
1723
+ "🧑 ⚽️🧑 ",
1724
+ "🧑 ⚽️ 🧑 ",
1725
+ "🧑 ⚽️ 🧑 ",
1726
+ "🧑 ⚽️ 🧑 ",
1727
+ "🧑 ⚽️ 🧑 ",
1728
+ "🧑 ⚽️ 🧑 "
1729
+ ]
1730
+ },
1731
+ mindblown: {
1732
+ "interval": 160,
1733
+ "frames": [
1734
+ "😐 ",
1735
+ "😐 ",
1736
+ "😮 ",
1737
+ "😮 ",
1738
+ "😦 ",
1739
+ "😦 ",
1740
+ "😧 ",
1741
+ "😧 ",
1742
+ "🤯 ",
1743
+ "💥 ",
1744
+ "✨ ",
1745
+ "  ",
1746
+ "  ",
1747
+ "  "
1748
+ ]
1749
+ },
1750
+ speaker: {
1751
+ "interval": 160,
1752
+ "frames": [
1753
+ "🔈 ",
1754
+ "🔉 ",
1755
+ "🔊 ",
1756
+ "🔉 "
1757
+ ]
1758
+ },
1759
+ orangePulse: {
1760
+ "interval": 100,
1761
+ "frames": [
1762
+ "🔸 ",
1763
+ "🔶 ",
1764
+ "🟠 ",
1765
+ "🟠 ",
1766
+ "🔶 "
1767
+ ]
1768
+ },
1769
+ bluePulse: {
1770
+ "interval": 100,
1771
+ "frames": [
1772
+ "🔹 ",
1773
+ "🔷 ",
1774
+ "🔵 ",
1775
+ "🔵 ",
1776
+ "🔷 "
1777
+ ]
1778
+ },
1779
+ orangeBluePulse: {
1780
+ "interval": 100,
1781
+ "frames": [
1782
+ "🔸 ",
1783
+ "🔶 ",
1784
+ "🟠 ",
1785
+ "🟠 ",
1786
+ "🔶 ",
1787
+ "🔹 ",
1788
+ "🔷 ",
1789
+ "🔵 ",
1790
+ "🔵 ",
1791
+ "🔷 "
1792
+ ]
1793
+ },
1794
+ timeTravel: {
1795
+ "interval": 100,
1796
+ "frames": [
1797
+ "🕛 ",
1798
+ "🕚 ",
1799
+ "🕙 ",
1800
+ "🕘 ",
1801
+ "🕗 ",
1802
+ "🕖 ",
1803
+ "🕕 ",
1804
+ "🕔 ",
1805
+ "🕓 ",
1806
+ "🕒 ",
1807
+ "🕑 ",
1808
+ "🕐 "
1809
+ ]
1810
+ },
1811
+ aesthetic: {
1812
+ "interval": 80,
1813
+ "frames": [
1814
+ "▰▱▱▱▱▱▱",
1815
+ "▰▰▱▱▱▱▱",
1816
+ "▰▰▰▱▱▱▱",
1817
+ "▰▰▰▰▱▱▱",
1818
+ "▰▰▰▰▰▱▱",
1819
+ "▰▰▰▰▰▰▱",
1820
+ "▰▰▰▰▰▰▰",
1821
+ "▰▱▱▱▱▱▱"
1822
+ ]
1823
+ },
1824
+ dwarfFortress: {
1825
+ "interval": 80,
1826
+ "frames": [
1827
+ " ██████£££ ",
1828
+ "☺██████£££ ",
1829
+ "☺██████£££ ",
1830
+ "☺▓█████£££ ",
1831
+ "☺▓█████£££ ",
1832
+ "☺▒█████£££ ",
1833
+ "☺▒█████£££ ",
1834
+ "☺░█████£££ ",
1835
+ "☺░█████£££ ",
1836
+ "☺ █████£££ ",
1837
+ " ☺█████£££ ",
1838
+ " ☺█████£££ ",
1839
+ " ☺▓████£££ ",
1840
+ " ☺▓████£££ ",
1841
+ " ☺▒████£££ ",
1842
+ " ☺▒████£££ ",
1843
+ " ☺░████£££ ",
1844
+ " ☺░████£££ ",
1845
+ " ☺ ████£££ ",
1846
+ " ☺████£££ ",
1847
+ " ☺████£££ ",
1848
+ " ☺▓███£££ ",
1849
+ " ☺▓███£££ ",
1850
+ " ☺▒███£££ ",
1851
+ " ☺▒███£££ ",
1852
+ " ☺░███£££ ",
1853
+ " ☺░███£££ ",
1854
+ " ☺ ███£££ ",
1855
+ " ☺███£££ ",
1856
+ " ☺███£££ ",
1857
+ " ☺▓██£££ ",
1858
+ " ☺▓██£££ ",
1859
+ " ☺▒██£££ ",
1860
+ " ☺▒██£££ ",
1861
+ " ☺░██£££ ",
1862
+ " ☺░██£££ ",
1863
+ " ☺ ██£££ ",
1864
+ " ☺██£££ ",
1865
+ " ☺██£££ ",
1866
+ " ☺▓█£££ ",
1867
+ " ☺▓█£££ ",
1868
+ " ☺▒█£££ ",
1869
+ " ☺▒█£££ ",
1870
+ " ☺░█£££ ",
1871
+ " ☺░█£££ ",
1872
+ " ☺ █£££ ",
1873
+ " ☺█£££ ",
1874
+ " ☺█£££ ",
1875
+ " ☺▓£££ ",
1876
+ " ☺▓£££ ",
1877
+ " ☺▒£££ ",
1878
+ " ☺▒£££ ",
1879
+ " ☺░£££ ",
1880
+ " ☺░£££ ",
1881
+ " ☺ £££ ",
1882
+ " ☺£££ ",
1883
+ " ☺£££ ",
1884
+ " ☺▓££ ",
1885
+ " ☺▓££ ",
1886
+ " ☺▒££ ",
1887
+ " ☺▒££ ",
1888
+ " ☺░££ ",
1889
+ " ☺░££ ",
1890
+ " ☺ ££ ",
1891
+ " ☺££ ",
1892
+ " ☺££ ",
1893
+ " ☺▓£ ",
1894
+ " ☺▓£ ",
1895
+ " ☺▒£ ",
1896
+ " ☺▒£ ",
1897
+ " ☺░£ ",
1898
+ " ☺░£ ",
1899
+ " ☺ £ ",
1900
+ " ☺£ ",
1901
+ " ☺£ ",
1902
+ " ☺▓ ",
1903
+ " ☺▓ ",
1904
+ " ☺▒ ",
1905
+ " ☺▒ ",
1906
+ " ☺░ ",
1907
+ " ☺░ ",
1908
+ " ☺ ",
1909
+ " ☺ &",
1910
+ " ☺ ☼&",
1911
+ " ☺ ☼ &",
1912
+ " ☺☼ &",
1913
+ " ☺☼ & ",
1914
+ " ‼ & ",
1915
+ " ☺ & ",
1916
+ " ‼ & ",
1917
+ " ☺ & ",
1918
+ " ‼ & ",
1919
+ " ☺ & ",
1920
+ "‼ & ",
1921
+ " & ",
1922
+ " & ",
1923
+ " & ░ ",
1924
+ " & ▒ ",
1925
+ " & ▓ ",
1926
+ " & £ ",
1927
+ " & ░£ ",
1928
+ " & ▒£ ",
1929
+ " & ▓£ ",
1930
+ " & ££ ",
1931
+ " & ░££ ",
1932
+ " & ▒££ ",
1933
+ "& ▓££ ",
1934
+ "& £££ ",
1935
+ " ░£££ ",
1936
+ " ▒£££ ",
1937
+ " ▓£££ ",
1938
+ " █£££ ",
1939
+ " ░█£££ ",
1940
+ " ▒█£££ ",
1941
+ " ▓█£££ ",
1942
+ " ██£££ ",
1943
+ " ░██£££ ",
1944
+ " ▒██£££ ",
1945
+ " ▓██£££ ",
1946
+ " ███£££ ",
1947
+ " ░███£££ ",
1948
+ " ▒███£££ ",
1949
+ " ▓███£££ ",
1950
+ " ████£££ ",
1951
+ " ░████£££ ",
1952
+ " ▒████£££ ",
1953
+ " ▓████£££ ",
1954
+ " █████£££ ",
1955
+ " ░█████£££ ",
1956
+ " ▒█████£££ ",
1957
+ " ▓█████£££ ",
1958
+ " ██████£££ ",
1959
+ " ██████£££ "
1960
+ ]
1961
+ },
1962
+ fish: {
1963
+ "interval": 80,
1964
+ "frames": [
1965
+ "~~~~~~~~~~~~~~~~~~~~",
1966
+ "> ~~~~~~~~~~~~~~~~~~",
1967
+ "º> ~~~~~~~~~~~~~~~~~",
1968
+ "(º> ~~~~~~~~~~~~~~~~",
1969
+ "((º> ~~~~~~~~~~~~~~~",
1970
+ "<((º> ~~~~~~~~~~~~~~",
1971
+ "><((º> ~~~~~~~~~~~~~",
1972
+ " ><((º> ~~~~~~~~~~~~",
1973
+ "~ ><((º> ~~~~~~~~~~~",
1974
+ "~~ <>((º> ~~~~~~~~~~",
1975
+ "~~~ ><((º> ~~~~~~~~~",
1976
+ "~~~~ <>((º> ~~~~~~~~",
1977
+ "~~~~~ ><((º> ~~~~~~~",
1978
+ "~~~~~~ <>((º> ~~~~~~",
1979
+ "~~~~~~~ ><((º> ~~~~~",
1980
+ "~~~~~~~~ <>((º> ~~~~",
1981
+ "~~~~~~~~~ ><((º> ~~~",
1982
+ "~~~~~~~~~~ <>((º> ~~",
1983
+ "~~~~~~~~~~~ ><((º> ~",
1984
+ "~~~~~~~~~~~~ <>((º> ",
1985
+ "~~~~~~~~~~~~~ ><((º>",
1986
+ "~~~~~~~~~~~~~~ <>((º",
1987
+ "~~~~~~~~~~~~~~~ ><((",
1988
+ "~~~~~~~~~~~~~~~~ <>(",
1989
+ "~~~~~~~~~~~~~~~~~ ><",
1990
+ "~~~~~~~~~~~~~~~~~~ <",
1991
+ "~~~~~~~~~~~~~~~~~~~~"
1992
+ ]
1993
+ }
1994
+ };
1995
+ //#endregion
1996
+ //#region ../../node_modules/.pnpm/cli-spinners@3.4.0/node_modules/cli-spinners/index.js
1997
+ var cli_spinners_default = spinners_default;
1998
+ Object.keys(spinners_default);
1999
+ //#endregion
2000
+ //#region ../../node_modules/.pnpm/yoctocolors@2.2.0/node_modules/yoctocolors/base.js
2001
+ const hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;
2002
+ const format = (open, close) => {
2003
+ if (!hasColors) return (input) => input;
2004
+ const openCode = `\u001B[${open}m`;
2005
+ const closeCode = `\u001B[${close}m`;
2006
+ return (input) => {
2007
+ const string = input + "";
2008
+ let index = string.indexOf(closeCode);
2009
+ if (index === -1) return openCode + string + closeCode;
2010
+ let result = openCode;
2011
+ let lastIndex = 0;
2012
+ const replaceCode = (close === 22 ? closeCode : "") + openCode;
2013
+ while (index !== -1) {
2014
+ result += string.slice(lastIndex, index) + replaceCode;
2015
+ lastIndex = index + closeCode.length;
2016
+ index = string.indexOf(closeCode, lastIndex);
2017
+ }
2018
+ result += string.slice(lastIndex) + closeCode;
2019
+ return result;
2020
+ };
2021
+ };
2022
+ format(0, 0);
2023
+ format(1, 22);
2024
+ format(2, 22);
2025
+ format(3, 23);
2026
+ format(4, 24);
2027
+ format("4:2", 24);
2028
+ format("4:3", 24);
2029
+ format("4:4", 24);
2030
+ format("4:5", 24);
2031
+ format(53, 55);
2032
+ format(7, 27);
2033
+ format(8, 28);
2034
+ format(9, 29);
2035
+ format(30, 39);
2036
+ const red = format(31, 39);
2037
+ const green = format(32, 39);
2038
+ const yellow = format(33, 39);
2039
+ const blue = format(34, 39);
2040
+ format(35, 39);
2041
+ format(36, 39);
2042
+ format(37, 39);
2043
+ format(90, 39);
2044
+ format(40, 49);
2045
+ format(41, 49);
2046
+ format(42, 49);
2047
+ format(43, 49);
2048
+ format(44, 49);
2049
+ format(45, 49);
2050
+ format(46, 49);
2051
+ format(47, 49);
2052
+ format(100, 49);
2053
+ format(91, 39);
2054
+ format(92, 39);
2055
+ format(93, 39);
2056
+ format(94, 39);
2057
+ format(95, 39);
2058
+ format(96, 39);
2059
+ format(97, 39);
2060
+ format(101, 49);
2061
+ format(102, 49);
2062
+ format(103, 49);
2063
+ format(104, 49);
2064
+ format(105, 49);
2065
+ format(106, 49);
2066
+ format(107, 49);
2067
+ format("58;5;0", 59);
2068
+ format("58;5;1", 59);
2069
+ format("58;5;2", 59);
2070
+ format("58;5;3", 59);
2071
+ format("58;5;4", 59);
2072
+ format("58;5;5", 59);
2073
+ format("58;5;6", 59);
2074
+ format("58;5;7", 59);
2075
+ format("58;5;8", 59);
2076
+ format("58;5;9", 59);
2077
+ format("58;5;10", 59);
2078
+ format("58;5;11", 59);
2079
+ format("58;5;12", 59);
2080
+ format("58;5;13", 59);
2081
+ format("58;5;14", 59);
2082
+ format("58;5;15", 59);
2083
+ //#endregion
2084
+ //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
2085
+ function isUnicodeSupported() {
2086
+ const { env } = process$1;
2087
+ const { TERM, TERM_PROGRAM } = env;
2088
+ if (process$1.platform !== "win32") return TERM !== "linux";
2089
+ return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
2090
+ }
2091
+ //#endregion
2092
+ //#region ../../node_modules/.pnpm/log-symbols@7.0.1/node_modules/log-symbols/symbols.js
2093
+ const _isUnicodeSupported = isUnicodeSupported();
2094
+ const info = blue(_isUnicodeSupported ? "ℹ" : "i");
2095
+ const success = green(_isUnicodeSupported ? "✔" : "√");
2096
+ const warning = yellow(_isUnicodeSupported ? "⚠" : "‼");
2097
+ const error = red(_isUnicodeSupported ? "✖" : "×");
2098
+ //#endregion
2099
+ //#region ../../node_modules/.pnpm/string-width@8.2.2/node_modules/string-width/index.js
2100
+ /**
2101
+ Logic:
2102
+ - Segment graphemes to match how terminals render clusters.
2103
+ - Width rules:
2104
+ 1. Skip non-printing clusters (Default_Ignorable, Control, pure nonspacing/enclosing Mark, lone Surrogates). Tabs are ignored by design.
2105
+ 2. RGI emoji clusters (\p{RGI_Emoji}) are double-width.
2106
+ 3. Minimally-qualified/unqualified emoji clusters (ZWJ sequences with 2+ Extended_Pictographic, or keycap sequences) are double-width.
2107
+ 4. Hangul jamo collapse each standard modern Hangul L+V or L+V+T syllable piece to width 2.
2108
+ Unmatched repeated leading/vowel/trailing jamo stay additive because that matches how the terminals we target render them.
2109
+ 5. Otherwise use East Asian Width of the cluster's first visible code point, and add widths for trailing spacing marks and Halfwidth/Fullwidth Forms within the same cluster (e.g., dakuten/handakuten/prolonged sound mark).
2110
+ */
2111
+ const segmenter = new Intl.Segmenter();
2112
+ const zeroWidthClusterRegex = /^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Nonspacing_Mark}|\p{Enclosing_Mark}|\p{Surrogate})+$/v;
2113
+ const leadingNonPrintingRegex = /^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Nonspacing_Mark}\p{Enclosing_Mark}\p{Surrogate}]+/v;
2114
+ const spacingMarkRegex = /\p{Spacing_Mark}/v;
2115
+ const rgiEmojiRegex = /^\p{RGI_Emoji}$/v;
2116
+ const unqualifiedKeycapRegex = /^[\d#*]\u20E3$/;
2117
+ const extendedPictographicRegex = /\p{Extended_Pictographic}/gu;
2118
+ function isDoubleWidthNonRgiEmojiSequence(segment) {
2119
+ if (segment.length > 50) return false;
2120
+ if (unqualifiedKeycapRegex.test(segment)) return true;
2121
+ if (segment.includes("‍")) {
2122
+ const pictographics = segment.match(extendedPictographicRegex);
2123
+ return pictographics !== null && pictographics.length >= 2;
2124
+ }
2125
+ return false;
2126
+ }
2127
+ function baseVisible(segment) {
2128
+ return segment.replace(leadingNonPrintingRegex, "");
2129
+ }
2130
+ function isZeroWidthCluster(segment) {
2131
+ return zeroWidthClusterRegex.test(segment);
2132
+ }
2133
+ function isHangulLeadingJamo(codePoint) {
2134
+ return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
2135
+ }
2136
+ function isHangulVowelJamo(codePoint) {
2137
+ return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
2138
+ }
2139
+ function isHangulTrailingJamo(codePoint) {
2140
+ return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
2141
+ }
2142
+ function isHangulJamo(codePoint) {
2143
+ return isHangulLeadingJamo(codePoint) || isHangulVowelJamo(codePoint) || isHangulTrailingJamo(codePoint);
2144
+ }
2145
+ function hangulClusterWidth(visibleSegment, eastAsianWidthOptions) {
2146
+ const codePoints = [];
2147
+ for (const character of visibleSegment) {
2148
+ if (zeroWidthClusterRegex.test(character)) continue;
2149
+ codePoints.push(character.codePointAt(0));
2150
+ }
2151
+ if (codePoints.length === 0) return;
2152
+ let width = 0;
2153
+ for (let index = 0; index < codePoints.length; index++) {
2154
+ const codePoint = codePoints[index];
2155
+ if (!isHangulJamo(codePoint)) {
2156
+ if (width === 0) return;
2157
+ for (let remaining = index; remaining < codePoints.length; remaining++) width += eastAsianWidth(codePoints[remaining], eastAsianWidthOptions);
2158
+ return width;
2159
+ }
2160
+ if (isHangulLeadingJamo(codePoint) && isHangulVowelJamo(codePoints[index + 1])) {
2161
+ width += 2;
2162
+ index += isHangulTrailingJamo(codePoints[index + 2]) ? 2 : 1;
2163
+ continue;
2164
+ }
2165
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
2166
+ }
2167
+ return width;
2168
+ }
2169
+ function trailingWidth(visibleSegment, eastAsianWidthOptions) {
2170
+ let extra = 0;
2171
+ let first = true;
2172
+ for (const character of visibleSegment) {
2173
+ if (first) {
2174
+ first = false;
2175
+ continue;
2176
+ }
2177
+ if (spacingMarkRegex.test(character) || character >= "＀" && character <= "￯") extra += eastAsianWidth(character.codePointAt(0), eastAsianWidthOptions);
2178
+ }
2179
+ return extra;
2180
+ }
2181
+ function stringWidth(input, options = {}) {
2182
+ if (typeof input !== "string" || input.length === 0) return 0;
2183
+ const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options;
2184
+ let string = input;
2185
+ if (!countAnsiEscapeCodes && (string.includes("\x1B") || string.includes("›"))) string = stripAnsi(string);
2186
+ if (string.length === 0) return 0;
2187
+ if (/^[\u0020-\u007E]*$/.test(string)) return string.length;
2188
+ let width = 0;
2189
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
2190
+ for (const { segment } of segmenter.segment(string)) {
2191
+ if (isZeroWidthCluster(segment)) continue;
2192
+ if (rgiEmojiRegex.test(segment) || isDoubleWidthNonRgiEmojiSequence(segment)) {
2193
+ width += 2;
2194
+ continue;
2195
+ }
2196
+ const visibleSegment = baseVisible(segment);
2197
+ const hangulWidth = hangulClusterWidth(visibleSegment, eastAsianWidthOptions);
2198
+ if (hangulWidth !== void 0) {
2199
+ width += hangulWidth;
2200
+ continue;
2201
+ }
2202
+ const codePoint = visibleSegment.codePointAt(0);
2203
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
2204
+ width += trailingWidth(visibleSegment, eastAsianWidthOptions);
2205
+ }
2206
+ return width;
2207
+ }
2208
+ //#endregion
2209
+ //#region ../../node_modules/.pnpm/is-interactive@2.0.0/node_modules/is-interactive/index.js
2210
+ function isInteractive({ stream = process.stdout } = {}) {
2211
+ return Boolean(stream && stream.isTTY && process.env.TERM !== "dumb" && !("CI" in process.env));
2212
+ }
2213
+ //#endregion
2214
+ //#region ../../node_modules/.pnpm/stdin-discarder@0.3.2/node_modules/stdin-discarder/index.js
2215
+ const ASCII_ETX_CODE = 3;
2216
+ var StdinDiscarder = class {
2217
+ #activeCount = 0;
2218
+ #stdin;
2219
+ #stdinWasPaused = false;
2220
+ #stdinWasRaw = false;
2221
+ #handleInputBound = (chunk) => {
2222
+ if (!chunk?.length) return;
2223
+ if ((typeof chunk === "string" ? chunk.codePointAt(0) : chunk[0]) === ASCII_ETX_CODE) process$1.kill(process$1.pid, "SIGINT");
2224
+ };
2225
+ start() {
2226
+ this.#activeCount++;
2227
+ if (this.#activeCount === 1) this.#realStart();
2228
+ }
2229
+ stop() {
2230
+ if (this.#activeCount === 0) return;
2231
+ if (--this.#activeCount === 0) this.#realStop();
2232
+ }
2233
+ #realStart() {
2234
+ const { stdin } = process$1;
2235
+ if (process$1.platform === "win32" || !stdin?.isTTY || typeof stdin.setRawMode !== "function") {
2236
+ this.#stdin = void 0;
2237
+ return;
2238
+ }
2239
+ this.#stdin = stdin;
2240
+ this.#stdinWasPaused = stdin.isPaused();
2241
+ this.#stdinWasRaw = Boolean(stdin.isRaw);
2242
+ stdin.setRawMode(true);
2243
+ stdin.prependListener("data", this.#handleInputBound);
2244
+ if (this.#stdinWasPaused) stdin.resume();
2245
+ }
2246
+ #realStop() {
2247
+ if (!this.#stdin) return;
2248
+ const stdin = this.#stdin;
2249
+ stdin.off("data", this.#handleInputBound);
2250
+ if (stdin.isTTY) stdin.setRawMode?.(this.#stdinWasRaw);
2251
+ if (this.#stdinWasPaused) stdin.pause();
2252
+ this.#stdin = void 0;
2253
+ this.#stdinWasPaused = false;
2254
+ this.#stdinWasRaw = false;
2255
+ }
2256
+ };
2257
+ const stdinDiscarder = new StdinDiscarder();
2258
+ var stdin_discarder_default = Object.freeze(stdinDiscarder);
2259
+ //#endregion
2260
+ //#region ../../node_modules/.pnpm/ora@9.4.1/node_modules/ora/index.js
2261
+ const RENDER_DEFERRAL_TIMEOUT = 200;
2262
+ const SYNCHRONIZED_OUTPUT_ENABLE = "\x1B[?2026h";
2263
+ const SYNCHRONIZED_OUTPUT_DISABLE = "\x1B[?2026l";
2264
+ const activeHooksPerStream = /* @__PURE__ */ new Map();
2265
+ const validColors = /* @__PURE__ */ new Set([
2266
+ "black",
2267
+ "red",
2268
+ "green",
2269
+ "yellow",
2270
+ "blue",
2271
+ "magenta",
2272
+ "cyan",
2273
+ "white",
2274
+ "gray"
2275
+ ]);
2276
+ var Ora = class {
2277
+ #linesToClear = 0;
2278
+ #frameIndex = -1;
2279
+ #lastFrameTime = 0;
2280
+ #options;
2281
+ #spinner;
2282
+ #stream;
2283
+ #id;
2284
+ #hookedStreams = /* @__PURE__ */ new Map();
2285
+ #isInternalWrite = false;
2286
+ #drainHandler;
2287
+ #deferRenderTimer;
2288
+ #isDiscardingStdin = false;
2289
+ #color;
2290
+ #internalWrite(fn) {
2291
+ this.#isInternalWrite = true;
2292
+ try {
2293
+ return fn();
2294
+ } finally {
2295
+ this.#isInternalWrite = false;
2296
+ }
2297
+ }
2298
+ #tryRender() {
2299
+ if (this.isSpinning) this.render();
2300
+ }
2301
+ #stringifyChunk(chunk, encoding) {
2302
+ if (chunk === void 0 || chunk === null) return "";
2303
+ if (typeof chunk === "string") return chunk;
2304
+ if (Buffer.isBuffer(chunk) || ArrayBuffer.isView(chunk)) {
2305
+ const normalizedEncoding = typeof encoding === "string" && encoding && encoding !== "buffer" ? encoding : "utf8";
2306
+ return Buffer.from(chunk).toString(normalizedEncoding);
2307
+ }
2308
+ return String(chunk);
2309
+ }
2310
+ #chunkTerminatesLine(chunkString) {
2311
+ if (!chunkString) return false;
2312
+ const lastCharacter = chunkString.at(-1);
2313
+ return lastCharacter === "\n" || lastCharacter === "\r";
2314
+ }
2315
+ #scheduleRenderDeferral() {
2316
+ if (this.#deferRenderTimer) return;
2317
+ this.#deferRenderTimer = setTimeout(() => {
2318
+ this.#deferRenderTimer = void 0;
2319
+ if (this.isSpinning) this.#tryRender();
2320
+ }, RENDER_DEFERRAL_TIMEOUT);
2321
+ if (typeof this.#deferRenderTimer?.unref === "function") this.#deferRenderTimer.unref();
2322
+ }
2323
+ #clearRenderDeferral() {
2324
+ if (this.#deferRenderTimer) {
2325
+ clearTimeout(this.#deferRenderTimer);
2326
+ this.#deferRenderTimer = void 0;
2327
+ }
2328
+ }
2329
+ #buildOutputLine(symbol, text, prefixText, suffixText) {
2330
+ const fullPrefixText = this.#getFullPrefixText(prefixText, " ");
2331
+ const fullText = typeof text === "string" ? (symbol ? " " : "") + text : "";
2332
+ const fullSuffixText = this.#getFullSuffixText(suffixText, " ");
2333
+ return fullPrefixText + symbol + fullText + fullSuffixText;
2334
+ }
2335
+ constructor(options) {
2336
+ if (typeof options === "string") options = { text: options };
2337
+ this.#options = {
2338
+ color: "cyan",
2339
+ stream: process$1.stderr,
2340
+ discardStdin: true,
2341
+ hideCursor: true,
2342
+ ...options
2343
+ };
2344
+ this.color = this.#options.color;
2345
+ this.#stream = this.#options.stream;
2346
+ if (typeof this.#options.isEnabled !== "boolean") this.#options.isEnabled = isInteractive({ stream: this.#stream });
2347
+ if (typeof this.#options.isSilent !== "boolean") this.#options.isSilent = false;
2348
+ if (this.#options.interval !== void 0 && !(Number.isInteger(this.#options.interval) && this.#options.interval > 0)) throw new Error("The `interval` option must be a positive integer");
2349
+ const userInterval = this.#options.interval;
2350
+ this.spinner = this.#options.spinner;
2351
+ this.#options.interval = userInterval;
2352
+ this.text = this.#options.text;
2353
+ this.prefixText = this.#options.prefixText;
2354
+ this.suffixText = this.#options.suffixText;
2355
+ this.indent = this.#options.indent;
2356
+ if (process$1.env.NODE_ENV === "test") {
2357
+ this._stream = this.#stream;
2358
+ this._isEnabled = this.#options.isEnabled;
2359
+ Object.defineProperty(this, "_linesToClear", {
2360
+ get() {
2361
+ return this.#linesToClear;
2362
+ },
2363
+ set(newValue) {
2364
+ this.#linesToClear = newValue;
2365
+ }
2366
+ });
2367
+ Object.defineProperty(this, "_frameIndex", { get() {
2368
+ return this.#frameIndex;
2369
+ } });
2370
+ Object.defineProperty(this, "_lineCount", { get() {
2371
+ const columns = this.#stream.columns ?? 80;
2372
+ const prefixText = typeof this.#options.prefixText === "function" ? "" : this.#options.prefixText;
2373
+ const suffixText = typeof this.#options.suffixText === "function" ? "" : this.#options.suffixText;
2374
+ const fullPrefixText = typeof prefixText === "string" && prefixText !== "" ? prefixText + " " : "";
2375
+ const fullSuffixText = typeof suffixText === "string" && suffixText !== "" ? " " + suffixText : "";
2376
+ const fullText = " ".repeat(this.#options.indent) + fullPrefixText + "-" + (typeof this.#options.text === "string" ? " " + this.#options.text : "") + fullSuffixText;
2377
+ return this.#computeLineCountFrom(fullText, columns);
2378
+ } });
2379
+ }
2380
+ }
2381
+ get indent() {
2382
+ return this.#options.indent;
2383
+ }
2384
+ set indent(indent = 0) {
2385
+ if (!(indent >= 0 && Number.isInteger(indent))) throw new Error("The `indent` option must be an integer from 0 and up");
2386
+ this.#options.indent = indent;
2387
+ }
2388
+ get interval() {
2389
+ return this.#options.interval ?? this.#spinner.interval ?? 100;
2390
+ }
2391
+ get spinner() {
2392
+ return this.#spinner;
2393
+ }
2394
+ set spinner(spinner) {
2395
+ this.#frameIndex = -1;
2396
+ this.#options.interval = void 0;
2397
+ if (typeof spinner === "object") {
2398
+ if (!Array.isArray(spinner.frames) || spinner.frames.length === 0 || spinner.frames.some((frame) => typeof frame !== "string")) throw new Error("The given spinner must have a non-empty `frames` array of strings");
2399
+ if (spinner.interval !== void 0 && !(Number.isInteger(spinner.interval) && spinner.interval > 0)) throw new Error("`spinner.interval` must be a positive integer if provided");
2400
+ this.#spinner = spinner;
2401
+ } else if (!isUnicodeSupported()) this.#spinner = cli_spinners_default.line;
2402
+ else if (spinner === void 0) this.#spinner = cli_spinners_default.dots;
2403
+ else if (spinner !== "default" && cli_spinners_default[spinner]) this.#spinner = cli_spinners_default[spinner];
2404
+ else throw new Error(`There is no built-in spinner named '${spinner}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);
2405
+ }
2406
+ get text() {
2407
+ return this.#options.text;
2408
+ }
2409
+ set text(value = "") {
2410
+ this.#options.text = value;
2411
+ }
2412
+ get prefixText() {
2413
+ return this.#options.prefixText;
2414
+ }
2415
+ set prefixText(value = "") {
2416
+ this.#options.prefixText = value;
2417
+ }
2418
+ get suffixText() {
2419
+ return this.#options.suffixText;
2420
+ }
2421
+ set suffixText(value = "") {
2422
+ this.#options.suffixText = value;
2423
+ }
2424
+ get isSpinning() {
2425
+ return this.#id !== void 0;
2426
+ }
2427
+ #formatAffix(value, separator, placeBefore = false) {
2428
+ const resolved = typeof value === "function" ? value() : value;
2429
+ if (typeof resolved === "string" && resolved !== "") return placeBefore ? separator + resolved : resolved + separator;
2430
+ return "";
2431
+ }
2432
+ #getFullPrefixText(prefixText = this.#options.prefixText, postfix = " ") {
2433
+ return this.#formatAffix(prefixText, postfix, false);
2434
+ }
2435
+ #getFullSuffixText(suffixText = this.#options.suffixText, prefix = " ") {
2436
+ return this.#formatAffix(suffixText, prefix, true);
2437
+ }
2438
+ #computeLineCountFrom(text, columns) {
2439
+ let count = 0;
2440
+ for (const line of stripVTControlCharacters(text).split("\n")) count += Math.max(1, Math.ceil(stringWidth(line) / columns));
2441
+ return count;
2442
+ }
2443
+ get color() {
2444
+ return this.#color;
2445
+ }
2446
+ set color(value) {
2447
+ if (value !== void 0 && value !== false && !validColors.has(value)) throw new Error("The `color` option must be a valid color or `false` to disable");
2448
+ this.#color = value;
2449
+ }
2450
+ get isEnabled() {
2451
+ return this.#options.isEnabled && !this.#options.isSilent;
2452
+ }
2453
+ set isEnabled(value) {
2454
+ if (typeof value !== "boolean") throw new TypeError("The `isEnabled` option must be a boolean");
2455
+ this.#options.isEnabled = value;
2456
+ }
2457
+ get isSilent() {
2458
+ return this.#options.isSilent;
2459
+ }
2460
+ set isSilent(value) {
2461
+ if (typeof value !== "boolean") throw new TypeError("The `isSilent` option must be a boolean");
2462
+ this.#options.isSilent = value;
2463
+ }
2464
+ frame() {
2465
+ const now = Date.now();
2466
+ if (this.#frameIndex === -1 || now - this.#lastFrameTime >= this.interval) {
2467
+ this.#frameIndex = (this.#frameIndex + 1) % this.#spinner.frames.length;
2468
+ this.#lastFrameTime = now;
2469
+ }
2470
+ const { frames } = this.#spinner;
2471
+ let frame = frames[this.#frameIndex];
2472
+ if (this.#color) frame = chalk[this.#color](frame);
2473
+ const fullPrefixText = this.#getFullPrefixText(this.#options.prefixText, " ");
2474
+ const fullText = typeof this.text === "string" ? " " + this.text : "";
2475
+ const fullSuffixText = this.#getFullSuffixText(this.#options.suffixText, " ");
2476
+ return fullPrefixText + frame + fullText + fullSuffixText;
2477
+ }
2478
+ clear() {
2479
+ if (!this.isEnabled || !this.#stream.isTTY) return this;
2480
+ this.#internalWrite(() => {
2481
+ this.#stream.cursorTo(0);
2482
+ for (let index = 0; index < this.#linesToClear; index++) {
2483
+ if (index > 0) this.#stream.moveCursor(0, -1);
2484
+ this.#stream.clearLine(1);
2485
+ }
2486
+ if (this.#options.indent) this.#stream.cursorTo(this.#options.indent);
2487
+ });
2488
+ this.#linesToClear = 0;
2489
+ return this;
2490
+ }
2491
+ #hookStream(stream) {
2492
+ if (!stream || this.#hookedStreams.has(stream) || !stream.isTTY || typeof stream.write !== "function") return;
2493
+ if (activeHooksPerStream.has(stream)) console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");
2494
+ const originalWrite = stream.write;
2495
+ this.#hookedStreams.set(stream, originalWrite);
2496
+ activeHooksPerStream.set(stream, this);
2497
+ stream.write = (chunk, encoding, callback) => this.#hookedWrite(stream, originalWrite, chunk, encoding, callback);
2498
+ }
2499
+ /**
2500
+ Intercept stream writes while spinner is active to handle external writes cleanly without visual corruption.
2501
+ Hooks process stdio streams and the active spinner stream so console.log(), console.error(), and direct writes stay tidy.
2502
+ */
2503
+ #installHook() {
2504
+ if (!this.isEnabled || this.#hookedStreams.size > 0) return;
2505
+ const streamsToHook = /* @__PURE__ */ new Set([
2506
+ this.#stream,
2507
+ process$1.stdout,
2508
+ process$1.stderr
2509
+ ]);
2510
+ for (const stream of streamsToHook) this.#hookStream(stream);
2511
+ }
2512
+ #uninstallHook() {
2513
+ for (const [stream, originalWrite] of this.#hookedStreams) {
2514
+ stream.write = originalWrite;
2515
+ if (activeHooksPerStream.get(stream) === this) activeHooksPerStream.delete(stream);
2516
+ }
2517
+ this.#hookedStreams.clear();
2518
+ }
2519
+ #hookedWrite(stream, originalWrite, chunk, encoding, callback) {
2520
+ if (typeof encoding === "function") {
2521
+ callback = encoding;
2522
+ encoding = void 0;
2523
+ }
2524
+ if (this.#isInternalWrite) return originalWrite.call(stream, chunk, encoding, callback);
2525
+ this.clear();
2526
+ const chunkString = this.#stringifyChunk(chunk, encoding);
2527
+ const chunkTerminatesLine = this.#chunkTerminatesLine(chunkString);
2528
+ const writeResult = originalWrite.call(stream, chunk, encoding, callback);
2529
+ if (chunkTerminatesLine) this.#clearRenderDeferral();
2530
+ else if (chunkString.length > 0) this.#scheduleRenderDeferral();
2531
+ if (this.isSpinning && !this.#deferRenderTimer) this.render();
2532
+ return writeResult;
2533
+ }
2534
+ render() {
2535
+ if (!this.isEnabled || this.#drainHandler || this.#deferRenderTimer) return this;
2536
+ const useSynchronizedOutput = this.#stream.isTTY;
2537
+ let shouldDisableSynchronizedOutput = false;
2538
+ try {
2539
+ if (useSynchronizedOutput) {
2540
+ this.#internalWrite(() => this.#stream.write(SYNCHRONIZED_OUTPUT_ENABLE));
2541
+ shouldDisableSynchronizedOutput = true;
2542
+ }
2543
+ this.clear();
2544
+ let frameContent = this.frame();
2545
+ const columns = this.#stream.columns ?? 80;
2546
+ const actualLineCount = this.#computeLineCountFrom(frameContent, columns);
2547
+ const consoleHeight = this.#stream.rows;
2548
+ if (consoleHeight && consoleHeight > 1 && actualLineCount > consoleHeight) {
2549
+ const lines = frameContent.split("\n");
2550
+ const maxLines = consoleHeight - 1;
2551
+ frameContent = [...lines.slice(0, maxLines), "... (content truncated to fit terminal)"].join("\n");
2552
+ }
2553
+ if (this.#internalWrite(() => this.#stream.write(frameContent)) === false && this.#stream.isTTY) {
2554
+ this.#drainHandler = () => {
2555
+ this.#drainHandler = void 0;
2556
+ this.#tryRender();
2557
+ };
2558
+ this.#stream.once("drain", this.#drainHandler);
2559
+ }
2560
+ this.#linesToClear = this.#computeLineCountFrom(frameContent, columns);
2561
+ } finally {
2562
+ if (shouldDisableSynchronizedOutput) this.#internalWrite(() => this.#stream.write(SYNCHRONIZED_OUTPUT_DISABLE));
2563
+ }
2564
+ return this;
2565
+ }
2566
+ start(text) {
2567
+ if (text !== void 0) this.text = text;
2568
+ if (this.isSilent) return this;
2569
+ if (!this.isEnabled) {
2570
+ const symbol = this.text ? "-" : "";
2571
+ const line = " ".repeat(this.#options.indent) + this.#buildOutputLine(symbol, this.text, this.#options.prefixText, this.#options.suffixText);
2572
+ if (line.trim() !== "") this.#internalWrite(() => this.#stream.write(line + "\n"));
2573
+ return this;
2574
+ }
2575
+ if (this.isSpinning) return this;
2576
+ if (this.#options.hideCursor) cliCursor.hide(this.#stream);
2577
+ if (this.#options.discardStdin && process$1.stdin.isTTY) {
2578
+ stdin_discarder_default.start();
2579
+ this.#isDiscardingStdin = true;
2580
+ }
2581
+ this.#installHook();
2582
+ this.render();
2583
+ this.#id = setInterval(this.render.bind(this), this.interval);
2584
+ return this;
2585
+ }
2586
+ stop() {
2587
+ clearInterval(this.#id);
2588
+ this.#id = void 0;
2589
+ this.#frameIndex = -1;
2590
+ this.#lastFrameTime = 0;
2591
+ this.#clearRenderDeferral();
2592
+ this.#uninstallHook();
2593
+ if (this.#drainHandler) {
2594
+ this.#stream.removeListener("drain", this.#drainHandler);
2595
+ this.#drainHandler = void 0;
2596
+ }
2597
+ if (this.isEnabled) {
2598
+ this.clear();
2599
+ if (this.#options.hideCursor) cliCursor.show(this.#stream);
2600
+ }
2601
+ if (this.#isDiscardingStdin) {
2602
+ this.#isDiscardingStdin = false;
2603
+ stdin_discarder_default.stop();
2604
+ }
2605
+ return this;
2606
+ }
2607
+ succeed(text) {
2608
+ return this.stopAndPersist({
2609
+ symbol: success,
2610
+ text
2611
+ });
2612
+ }
2613
+ fail(text) {
2614
+ return this.stopAndPersist({
2615
+ symbol: error,
2616
+ text
2617
+ });
2618
+ }
2619
+ warn(text) {
2620
+ return this.stopAndPersist({
2621
+ symbol: warning,
2622
+ text
2623
+ });
2624
+ }
2625
+ info(text) {
2626
+ return this.stopAndPersist({
2627
+ symbol: info,
2628
+ text
2629
+ });
2630
+ }
2631
+ stopAndPersist(options = {}) {
2632
+ if (this.isSilent) return this;
2633
+ const symbol = options.symbol ?? " ";
2634
+ const text = options.text ?? this.text;
2635
+ const prefixText = options.prefixText ?? this.#options.prefixText;
2636
+ const suffixText = options.suffixText ?? this.#options.suffixText;
2637
+ const textToWrite = this.#buildOutputLine(symbol, text, prefixText, suffixText) + "\n";
2638
+ this.stop();
2639
+ this.#internalWrite(() => this.#stream.write(textToWrite));
2640
+ return this;
2641
+ }
2642
+ };
2643
+ function ora(options) {
2644
+ return new Ora(options);
2645
+ }
2646
+ //#endregion
2647
+ //#region src/ux/progress.ts
2648
+ /**
2649
+ * Progress tracker for conversion stages
2650
+ */
2651
+ var ProgressTracker = class {
2652
+ spinner = null;
2653
+ startTime = 0;
2654
+ verbose;
2655
+ constructor(verbose) {
2656
+ this.verbose = verbose;
2657
+ }
2658
+ /**
2659
+ * Start a new stage
2660
+ */
2661
+ startStage(message) {
2662
+ this.startTime = Date.now();
2663
+ this.spinner = ora(message).start();
2664
+ }
2665
+ /**
2666
+ * Update the current stage message
2667
+ */
2668
+ updateStage(message) {
2669
+ if (this.spinner) this.spinner.text = message;
2670
+ }
2671
+ /**
2672
+ * Complete the current stage successfully
2673
+ */
2674
+ succeedStage(message) {
2675
+ if (this.spinner) {
2676
+ const elapsed = this.getElapsed();
2677
+ const suffix = this.verbose ? chalk$1.dim(` (${elapsed})`) : "";
2678
+ this.spinner.succeed((message ?? this.spinner.text) + suffix);
2679
+ this.spinner = null;
2680
+ }
2681
+ }
2682
+ /**
2683
+ * Fail the current stage
2684
+ */
2685
+ failStage(message) {
2686
+ if (this.spinner) {
2687
+ this.spinner.fail(message);
2688
+ this.spinner = null;
2689
+ }
2690
+ }
2691
+ /**
2692
+ * Get elapsed time since stage start
2693
+ */
2694
+ getElapsed() {
2695
+ const elapsed = Date.now() - this.startTime;
2696
+ if (elapsed < 1e3) return `${elapsed}ms`;
2697
+ return `${(elapsed / 1e3).toFixed(2)}s`;
2698
+ }
2699
+ /**
2700
+ * Clear the spinner without marking success/failure
2701
+ */
2702
+ clear() {
2703
+ if (this.spinner) {
2704
+ this.spinner.stop();
2705
+ this.spinner = null;
2706
+ }
2707
+ }
2708
+ };
2709
+ //#endregion
2710
+ //#region src/options/resolveOptions.ts
2711
+ /**
2712
+ * Resolve a single option with precedence and source tracking
2713
+ */
2714
+ function resolveOption(cliValue, configValue, defaultValue) {
2715
+ if (cliValue !== void 0) return {
2716
+ value: cliValue,
2717
+ source: "cli"
2718
+ };
2719
+ if (configValue !== void 0) return {
2720
+ value: configValue,
2721
+ source: "config"
2722
+ };
2723
+ return {
2724
+ value: defaultValue,
2725
+ source: "default"
2726
+ };
2727
+ }
2728
+ /**
2729
+ * Resolve all options with precedence: CLI > config > defaults
2730
+ */
2731
+ async function resolveOptions(cliOpts, config, isPackageCommand, configPath) {
2732
+ const diagnostics = [];
2733
+ const interactive = cliOpts.interactive ?? false;
2734
+ let inputPath = cliOpts.in;
2735
+ if (!inputPath && interactive) inputPath = await dist_default$1({
2736
+ message: "Input path (or \"-\" for stdin):",
2737
+ default: "-"
2738
+ });
2739
+ if (!inputPath) throw new Error("Input path is required. Use --in <path> or --interactive.");
2740
+ if (inputPath !== "-") inputPath = expandTilde(inputPath);
2741
+ let outputPath = cliOpts.out;
2742
+ if (!outputPath && interactive) {
2743
+ const defaultOut = config?.output ?? "-";
2744
+ outputPath = await dist_default$1({
2745
+ message: "Output path (or \"-\" for stdout):",
2746
+ default: defaultOut
2747
+ });
2748
+ }
2749
+ if (!outputPath) throw new Error("Output path is required. Use --out <path> or --interactive.");
2750
+ if (outputPath !== "-") outputPath = expandTilde(outputPath);
2751
+ const qtiVersionResolved = resolveOption(cliOpts.qtiVersion, config?.qtiVersion, "2.2");
2752
+ let qtiVersion = qtiVersionResolved.value;
2753
+ if (interactive && !cliOpts.qtiVersion && !config?.qtiVersion) {
2754
+ qtiVersion = await dist_default({
2755
+ message: "QTI version:",
2756
+ choices: [{
2757
+ value: "2.2",
2758
+ name: "2.2 (default)"
2759
+ }, {
2760
+ value: "2.1",
2761
+ name: "2.1"
2762
+ }],
2763
+ default: "2.2"
2764
+ });
2765
+ qtiVersionResolved.value = qtiVersion;
2766
+ qtiVersionResolved.source = "cli";
2767
+ }
2768
+ const verboseResolved = resolveOption(cliOpts.verbose, config?.verbose, false);
2769
+ const prettyResolved = resolveOption(cliOpts.pretty, config?.pretty, false);
2770
+ let cliOrgId = cliOpts.organisation_id ?? cliOpts.org_id;
2771
+ if (interactive && !cliOrgId && !config?.organisationId) {
2772
+ const orgIdInput = await dist_default$1({
2773
+ message: "Organisation ID (optional, for Learnosity CDN asset URLs):",
2774
+ default: ""
2775
+ });
2776
+ if (orgIdInput && orgIdInput.trim() !== "") {
2777
+ const parsed = parseInt(orgIdInput.trim(), 10);
2778
+ if (!isNaN(parsed)) cliOrgId = parsed;
2779
+ }
2780
+ }
2781
+ const organisationId = cliOrgId ?? config?.organisationId;
2782
+ const organisationIdSource = cliOrgId !== void 0 ? "cli" : config?.organisationId !== void 0 ? "config" : void 0;
2783
+ let outputFormatDefault;
2784
+ if (outputPath === "-") outputFormatDefault = "stdout";
2785
+ else outputFormatDefault = isPackageCommand ? "zip" : "dir";
2786
+ const outputFormatResolved = resolveOption(cliOpts.outputFormat, config?.outputFormat, outputFormatDefault);
2787
+ let diagnosticsDefault;
2788
+ if (outputPath === "-") diagnosticsDefault = "stderr";
2789
+ else diagnosticsDefault = "file";
2790
+ let cliDiagnostics;
2791
+ let diagnosticsPath;
2792
+ if (cliOpts.diagnostics === "stderr" || cliOpts.diagnostics === "file" || cliOpts.diagnostics === "both" || cliOpts.diagnostics === "none") cliDiagnostics = cliOpts.diagnostics;
2793
+ else if (cliOpts.diagnostics) {
2794
+ cliDiagnostics = "file";
2795
+ diagnosticsPath = cliOpts.diagnostics;
2796
+ }
2797
+ const diagnosticsResolved = resolveOption(cliDiagnostics, config?.diagnostics, diagnosticsDefault);
2798
+ const cliMediaVault = cliOpts.mediavault;
2799
+ const mediaVault = cliMediaVault ?? config?.mediaVault ?? false;
2800
+ const mediaVaultSource = cliMediaVault !== void 0 ? "cli" : config?.mediaVault !== void 0 ? "config" : "default";
2801
+ const cliCustomAssetUrl = cliOpts.customAssetUrl;
2802
+ const customAssetUrl = cliCustomAssetUrl ?? config?.customAssetUrl;
2803
+ const customAssetUrlSource = cliCustomAssetUrl !== void 0 ? "cli" : config?.customAssetUrl !== void 0 ? "config" : void 0;
2804
+ const cliItemReferenceSource = cliOpts.itemReferenceSource;
2805
+ const itemReferenceSource = cliItemReferenceSource ?? config?.itemReferenceSource ?? "sourceFilename";
2806
+ const itemReferenceSourceSource = cliItemReferenceSource !== void 0 ? "cli" : config?.itemReferenceSource !== void 0 ? "config" : "default";
2807
+ const cliItemFilenameSource = cliOpts.itemFilenameSource;
2808
+ const itemFilenameSource = cliItemFilenameSource ?? config?.itemFilenameSource;
2809
+ const itemFilenameSourceSource = cliItemFilenameSource !== void 0 ? "cli" : config?.itemFilenameSource !== void 0 ? "config" : void 0;
2810
+ const cliTruncateTags = cliOpts.truncateTags;
2811
+ const truncateTags = cliTruncateTags ?? config?.truncateTags ?? false;
2812
+ const truncateTagsSource = cliTruncateTags !== void 0 ? "cli" : config?.truncateTags !== void 0 ? "config" : "default";
2813
+ const withSources = {
2814
+ inputPath: {
2815
+ value: inputPath,
2816
+ source: "cli"
2817
+ },
2818
+ outputPath: {
2819
+ value: outputPath,
2820
+ source: "cli"
2821
+ },
2822
+ qtiVersion: qtiVersionResolved,
2823
+ outputFormat: outputFormatResolved,
2824
+ diagnostics: diagnosticsResolved,
2825
+ diagnosticsPath,
2826
+ verbose: verboseResolved,
2827
+ pretty: prettyResolved,
2828
+ configPath,
2829
+ organisationId: organisationIdSource ? {
2830
+ value: organisationId,
2831
+ source: organisationIdSource
2832
+ } : void 0,
2833
+ mediaVault: {
2834
+ value: mediaVault,
2835
+ source: mediaVaultSource
2836
+ },
2837
+ customAssetUrl: customAssetUrlSource ? {
2838
+ value: customAssetUrl,
2839
+ source: customAssetUrlSource
2840
+ } : void 0,
2841
+ itemReferenceSource: {
2842
+ value: itemReferenceSource,
2843
+ source: itemReferenceSourceSource
2844
+ },
2845
+ itemFilenameSource: itemFilenameSourceSource ? {
2846
+ value: itemFilenameSource,
2847
+ source: itemFilenameSourceSource
2848
+ } : void 0,
2849
+ truncateTags: {
2850
+ value: truncateTags,
2851
+ source: truncateTagsSource
2852
+ }
2853
+ };
2854
+ return {
2855
+ options: {
2856
+ inputPath,
2857
+ outputPath,
2858
+ qtiVersion: qtiVersionResolved.value,
2859
+ outputFormat: outputFormatResolved.value,
2860
+ diagnostics: diagnosticsResolved.value,
2861
+ diagnosticsPath,
2862
+ verbose: verboseResolved.value,
2863
+ pretty: prettyResolved.value,
2864
+ configPath,
2865
+ organisationId,
2866
+ mediaVault,
2867
+ customAssetUrl,
2868
+ itemReferenceSource,
2869
+ itemFilenameSource,
2870
+ truncateTags
2871
+ },
2872
+ diagnostics,
2873
+ withSources
2874
+ };
2875
+ }
2876
+ //#endregion
2877
+ export { parseJsonInput as a, convertQtiToLearnosity as c, writeOutput as i, ProgressTracker as n, readInput as o, showResolvedOptions as r, convertLearnosityToQti as s, resolveOptions as t };
2878
+
2879
+ //# sourceMappingURL=resolveOptions-CW80R2EQ.js.map