@storm-software/config-tools 1.144.13 → 1.145.0

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 (159) hide show
  1. package/README.md +1 -1
  2. package/bin/config.cjs +260 -74597
  3. package/bin/config.js +224 -74588
  4. package/dist/chunk-2AVLCXLT.js +0 -0
  5. package/dist/chunk-3NWKPYIG.cjs +68 -0
  6. package/dist/{chunk-7TAUZNGG.cjs → chunk-5BKIG4XN.cjs} +5 -7
  7. package/dist/chunk-65SWKEHV.cjs +1 -0
  8. package/dist/{chunk-UHUKL2FF.js → chunk-6QCPF7DE.js} +3 -5
  9. package/dist/{chunk-TUH2WX5T.js → chunk-7FBGW2FI.js} +3 -5
  10. package/dist/{chunk-OMKDNOX6.cjs → chunk-7NSHGJWY.cjs} +2 -4
  11. package/dist/chunk-7PV6L7I7.cjs +1 -0
  12. package/dist/{chunk-I4SIJOYB.cjs → chunk-B6J2YUGO.cjs} +7 -9
  13. package/dist/{chunk-NCZG3KIJ.js → chunk-BHZFTVXN.js} +2 -4
  14. package/dist/{chunk-LHYMHJN7.js → chunk-CEEL5LLM.js} +8 -10
  15. package/dist/{chunk-WSHWZNKF.cjs → chunk-CRQ4EVX5.cjs} +4 -6
  16. package/dist/chunk-DD3HX2NX.cjs +1 -0
  17. package/dist/{chunk-VNWXMGH6.cjs → chunk-DXUUXBG3.cjs} +6 -8
  18. package/dist/{chunk-3HOVXAQZ.cjs → chunk-EOQEK2MM.cjs} +37 -39
  19. package/dist/chunk-EPBOQXUS.cjs +93 -0
  20. package/dist/{chunk-2F7SMIKE.js → chunk-FXFNC4WC.js} +4 -6
  21. package/dist/chunk-GFL2DSZK.js +44 -0
  22. package/dist/{chunk-V2H3W5RM.cjs → chunk-GMMTDKYU.cjs} +22 -24
  23. package/dist/{chunk-NMYOKDUE.cjs → chunk-HE7RJB2E.cjs} +30 -27
  24. package/dist/{chunk-L3RZVSYE.js → chunk-HI33NNPB.js} +3 -5
  25. package/dist/{chunk-5GWRMIQL.js → chunk-HSCCBYAV.js} +2 -4
  26. package/dist/{chunk-2BONUUVS.cjs → chunk-HSNM6VD2.cjs} +13 -12
  27. package/dist/{chunk-RXWR65M2.js → chunk-IKXDQ7DB.js} +5 -7
  28. package/dist/{chunk-DEWCXJEQ.cjs → chunk-IRCFHYKZ.cjs} +1 -6
  29. package/dist/{chunk-5CCF2WYC.js → chunk-IUT7Y2UY.js} +4 -6
  30. package/dist/chunk-IWD6YQKX.cjs +1 -0
  31. package/dist/chunk-JXLUUN7Z.cjs +179 -0
  32. package/dist/{chunk-XJSXW4P5.cjs → chunk-KRKGLKPD.cjs} +13 -15
  33. package/dist/chunk-L6UNTUC4.js +0 -0
  34. package/dist/{chunk-WBQEFUVW.js → chunk-LQJJD6FB.js} +2 -4
  35. package/dist/chunk-MXRRZKNO.js +77 -0
  36. package/dist/{chunk-MNA5ZBKU.js → chunk-MZ5BNE43.js} +12 -14
  37. package/dist/chunk-NJVL3GF4.js +0 -0
  38. package/dist/{chunk-WN4V6QSX.js → chunk-POXTJ6GF.js} +0 -5
  39. package/dist/{chunk-RR5DGQEI.js → chunk-PR7RQHRE.js} +2 -4
  40. package/dist/{chunk-A55N7CTJ.js → chunk-QBS3OCHH.js} +2 -4
  41. package/dist/{chunk-SJZ346G5.js → chunk-QGYINXXY.js} +3 -5
  42. package/dist/{chunk-M3QWTBKA.js → chunk-R4O6ILOD.js} +10 -7
  43. package/dist/chunk-RRKB32OH.js +0 -0
  44. package/dist/{chunk-E7VZQ7HY.cjs → chunk-RVM5N5ZI.cjs} +2 -4
  45. package/dist/chunk-SA4LVIO6.cjs +77 -0
  46. package/dist/chunk-SHUYVCID.js +6 -0
  47. package/dist/chunk-SLGVSUEV.cjs +36 -0
  48. package/dist/chunk-SPNVYBT4.cjs +44 -0
  49. package/dist/chunk-USNT2KNT.cjs +6 -0
  50. package/dist/chunk-WRGFZXJE.js +179 -0
  51. package/dist/{chunk-54PYJ6Z7.js → chunk-X7BEPYRX.js} +2 -4
  52. package/dist/{chunk-WJP36CPU.cjs → chunk-XAJB3BSF.cjs} +3 -5
  53. package/dist/{chunk-P26TW2V3.cjs → chunk-XDBACKKN.cjs} +3 -5
  54. package/dist/chunk-XY2LDOQ4.cjs +26 -0
  55. package/dist/{chunk-AXVHALK5.cjs → chunk-XYV3B7TT.cjs} +2 -4
  56. package/dist/{chunk-NKL6DBVO.js → chunk-YES7WAZK.js} +8 -7
  57. package/dist/chunk-ZA4IO7YJ.js +36 -0
  58. package/dist/config-file/get-config-file.cjs +20 -25
  59. package/dist/config-file/get-config-file.js +19 -24
  60. package/dist/config-file/index.cjs +21 -26
  61. package/dist/config-file/index.js +20 -25
  62. package/dist/create-storm-config.cjs +23 -28
  63. package/dist/create-storm-config.js +22 -27
  64. package/dist/env/get-env.cjs +7 -6
  65. package/dist/env/get-env.js +6 -5
  66. package/dist/env/index.cjs +9 -8
  67. package/dist/env/index.js +8 -7
  68. package/dist/env/set-env.cjs +6 -6
  69. package/dist/env/set-env.js +5 -5
  70. package/dist/get-config.cjs +24 -29
  71. package/dist/get-config.js +23 -28
  72. package/dist/index.cjs +28 -38
  73. package/dist/index.js +27 -37
  74. package/dist/logger/chalk.cjs +3 -3
  75. package/dist/logger/chalk.js +2 -2
  76. package/dist/logger/console-icons.cjs +5 -5
  77. package/dist/logger/console-icons.js +4 -4
  78. package/dist/logger/console.cjs +14 -13
  79. package/dist/logger/console.js +13 -12
  80. package/dist/logger/create-logger.cjs +15 -14
  81. package/dist/logger/create-logger.js +14 -13
  82. package/dist/logger/format-timestamp.cjs +3 -3
  83. package/dist/logger/format-timestamp.js +2 -2
  84. package/dist/logger/get-log-level.cjs +4 -4
  85. package/dist/logger/get-log-level.js +3 -3
  86. package/dist/logger/index.cjs +16 -15
  87. package/dist/logger/index.js +15 -14
  88. package/dist/logger/is-unicode-supported.cjs +3 -3
  89. package/dist/logger/is-unicode-supported.js +2 -2
  90. package/dist/types.cjs +3 -3
  91. package/dist/types.js +2 -2
  92. package/dist/utilities/apply-workspace-tokens.cjs +6 -6
  93. package/dist/utilities/apply-workspace-tokens.js +5 -5
  94. package/dist/utilities/correct-paths.cjs +3 -3
  95. package/dist/utilities/correct-paths.js +2 -2
  96. package/dist/utilities/file-path-utils.cjs +3 -3
  97. package/dist/utilities/file-path-utils.js +2 -2
  98. package/dist/utilities/find-up.cjs +3 -3
  99. package/dist/utilities/find-up.js +2 -2
  100. package/dist/utilities/find-workspace-root.cjs +5 -5
  101. package/dist/utilities/find-workspace-root.js +4 -4
  102. package/dist/utilities/get-default-config.cjs +7 -6
  103. package/dist/utilities/get-default-config.js +6 -5
  104. package/dist/utilities/index.cjs +19 -18
  105. package/dist/utilities/index.js +18 -17
  106. package/dist/utilities/process-handler.cjs +15 -14
  107. package/dist/utilities/process-handler.js +14 -13
  108. package/dist/utilities/run.cjs +3 -3
  109. package/dist/utilities/run.js +2 -2
  110. package/package.json +4 -5
  111. package/dist/chunk-2GPW5A4A.cjs +0 -50
  112. package/dist/chunk-3IVAD3CI.cjs +0 -510
  113. package/dist/chunk-52JTCGPV.cjs +0 -6
  114. package/dist/chunk-52Z3B7HG.js +0 -6
  115. package/dist/chunk-55BEED5V.cjs +0 -70
  116. package/dist/chunk-5LIAIS5V.js +0 -6
  117. package/dist/chunk-65NJ2BNV.js +0 -49
  118. package/dist/chunk-6SKUJC25.cjs +0 -451
  119. package/dist/chunk-7IOWYE4O.cjs +0 -34070
  120. package/dist/chunk-7LNAPF6J.js +0 -7601
  121. package/dist/chunk-BIBA7MGH.js +0 -84
  122. package/dist/chunk-BZ3KC4XF.cjs +0 -6
  123. package/dist/chunk-EVHBF7QV.cjs +0 -6
  124. package/dist/chunk-F5YSYO5J.js +0 -2645
  125. package/dist/chunk-FIQNSYAM.cjs +0 -1120
  126. package/dist/chunk-IIQMKNOS.cjs +0 -6
  127. package/dist/chunk-JT5CJFOS.cjs +0 -2645
  128. package/dist/chunk-KCNZC4ZI.js +0 -6
  129. package/dist/chunk-M3K4KT2L.cjs +0 -4054
  130. package/dist/chunk-MVPKPUE3.js +0 -1120
  131. package/dist/chunk-MZADO4BZ.cjs +0 -765
  132. package/dist/chunk-PRGAKNNV.js +0 -765
  133. package/dist/chunk-Q3AKY4XY.js +0 -4054
  134. package/dist/chunk-Q42ZDLPG.js +0 -510
  135. package/dist/chunk-QFCXJAOM.js +0 -50
  136. package/dist/chunk-QZAXYX3X.cjs +0 -7601
  137. package/dist/chunk-R6ZWDCX4.cjs +0 -28
  138. package/dist/chunk-RNYNEYJ5.js +0 -451
  139. package/dist/chunk-SCFUDB74.cjs +0 -49
  140. package/dist/chunk-YDVJJTKY.js +0 -34067
  141. package/dist/chunk-Z555MBWN.cjs +0 -84
  142. package/dist/chunk-ZIUQG4HD.js +0 -6
  143. package/dist/chunk-ZXAQ4Y3X.cjs +0 -95
  144. package/dist/dist-UYAH2J3L.js +0 -17570
  145. package/dist/dist-WP6JBNT4.cjs +0 -17571
  146. package/dist/esm-F37IKPYG.cjs +0 -1716
  147. package/dist/esm-SQV6ELTR.js +0 -1716
  148. package/dist/execa-4HBUJBFQ.js +0 -2424
  149. package/dist/execa-K2JB3BB4.cjs +0 -2424
  150. package/dist/json5-PPMIEYQR.cjs +0 -10
  151. package/dist/json5-WTSMELC2.js +0 -10
  152. package/dist/jsonc-B7SFZJW2.js +0 -15
  153. package/dist/jsonc-X7JKFW4T.cjs +0 -15
  154. package/dist/multipart-parser-JIRREWFU.cjs +0 -187
  155. package/dist/multipart-parser-TFNERLJV.js +0 -187
  156. package/dist/toml-MTE5VHET.js +0 -10
  157. package/dist/toml-N2WLYE3T.cjs +0 -10
  158. package/dist/yaml-D6PQ2AEL.js +0 -10
  159. package/dist/yaml-LR2Y4V3W.cjs +0 -10
@@ -1,2645 +0,0 @@
1
- import {
2
- __commonJS,
3
- __name,
4
- __require,
5
- __toESM,
6
- init_esm_shims
7
- } from "./chunk-65NJ2BNV.js";
8
-
9
- // ../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
10
- var require_color_name = __commonJS({
11
- "../../node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports, module) {
12
- "use strict";
13
- init_esm_shims();
14
- module.exports = {
15
- "aliceblue": [
16
- 240,
17
- 248,
18
- 255
19
- ],
20
- "antiquewhite": [
21
- 250,
22
- 235,
23
- 215
24
- ],
25
- "aqua": [
26
- 0,
27
- 255,
28
- 255
29
- ],
30
- "aquamarine": [
31
- 127,
32
- 255,
33
- 212
34
- ],
35
- "azure": [
36
- 240,
37
- 255,
38
- 255
39
- ],
40
- "beige": [
41
- 245,
42
- 245,
43
- 220
44
- ],
45
- "bisque": [
46
- 255,
47
- 228,
48
- 196
49
- ],
50
- "black": [
51
- 0,
52
- 0,
53
- 0
54
- ],
55
- "blanchedalmond": [
56
- 255,
57
- 235,
58
- 205
59
- ],
60
- "blue": [
61
- 0,
62
- 0,
63
- 255
64
- ],
65
- "blueviolet": [
66
- 138,
67
- 43,
68
- 226
69
- ],
70
- "brown": [
71
- 165,
72
- 42,
73
- 42
74
- ],
75
- "burlywood": [
76
- 222,
77
- 184,
78
- 135
79
- ],
80
- "cadetblue": [
81
- 95,
82
- 158,
83
- 160
84
- ],
85
- "chartreuse": [
86
- 127,
87
- 255,
88
- 0
89
- ],
90
- "chocolate": [
91
- 210,
92
- 105,
93
- 30
94
- ],
95
- "coral": [
96
- 255,
97
- 127,
98
- 80
99
- ],
100
- "cornflowerblue": [
101
- 100,
102
- 149,
103
- 237
104
- ],
105
- "cornsilk": [
106
- 255,
107
- 248,
108
- 220
109
- ],
110
- "crimson": [
111
- 220,
112
- 20,
113
- 60
114
- ],
115
- "cyan": [
116
- 0,
117
- 255,
118
- 255
119
- ],
120
- "darkblue": [
121
- 0,
122
- 0,
123
- 139
124
- ],
125
- "darkcyan": [
126
- 0,
127
- 139,
128
- 139
129
- ],
130
- "darkgoldenrod": [
131
- 184,
132
- 134,
133
- 11
134
- ],
135
- "darkgray": [
136
- 169,
137
- 169,
138
- 169
139
- ],
140
- "darkgreen": [
141
- 0,
142
- 100,
143
- 0
144
- ],
145
- "darkgrey": [
146
- 169,
147
- 169,
148
- 169
149
- ],
150
- "darkkhaki": [
151
- 189,
152
- 183,
153
- 107
154
- ],
155
- "darkmagenta": [
156
- 139,
157
- 0,
158
- 139
159
- ],
160
- "darkolivegreen": [
161
- 85,
162
- 107,
163
- 47
164
- ],
165
- "darkorange": [
166
- 255,
167
- 140,
168
- 0
169
- ],
170
- "darkorchid": [
171
- 153,
172
- 50,
173
- 204
174
- ],
175
- "darkred": [
176
- 139,
177
- 0,
178
- 0
179
- ],
180
- "darksalmon": [
181
- 233,
182
- 150,
183
- 122
184
- ],
185
- "darkseagreen": [
186
- 143,
187
- 188,
188
- 143
189
- ],
190
- "darkslateblue": [
191
- 72,
192
- 61,
193
- 139
194
- ],
195
- "darkslategray": [
196
- 47,
197
- 79,
198
- 79
199
- ],
200
- "darkslategrey": [
201
- 47,
202
- 79,
203
- 79
204
- ],
205
- "darkturquoise": [
206
- 0,
207
- 206,
208
- 209
209
- ],
210
- "darkviolet": [
211
- 148,
212
- 0,
213
- 211
214
- ],
215
- "deeppink": [
216
- 255,
217
- 20,
218
- 147
219
- ],
220
- "deepskyblue": [
221
- 0,
222
- 191,
223
- 255
224
- ],
225
- "dimgray": [
226
- 105,
227
- 105,
228
- 105
229
- ],
230
- "dimgrey": [
231
- 105,
232
- 105,
233
- 105
234
- ],
235
- "dodgerblue": [
236
- 30,
237
- 144,
238
- 255
239
- ],
240
- "firebrick": [
241
- 178,
242
- 34,
243
- 34
244
- ],
245
- "floralwhite": [
246
- 255,
247
- 250,
248
- 240
249
- ],
250
- "forestgreen": [
251
- 34,
252
- 139,
253
- 34
254
- ],
255
- "fuchsia": [
256
- 255,
257
- 0,
258
- 255
259
- ],
260
- "gainsboro": [
261
- 220,
262
- 220,
263
- 220
264
- ],
265
- "ghostwhite": [
266
- 248,
267
- 248,
268
- 255
269
- ],
270
- "gold": [
271
- 255,
272
- 215,
273
- 0
274
- ],
275
- "goldenrod": [
276
- 218,
277
- 165,
278
- 32
279
- ],
280
- "gray": [
281
- 128,
282
- 128,
283
- 128
284
- ],
285
- "green": [
286
- 0,
287
- 128,
288
- 0
289
- ],
290
- "greenyellow": [
291
- 173,
292
- 255,
293
- 47
294
- ],
295
- "grey": [
296
- 128,
297
- 128,
298
- 128
299
- ],
300
- "honeydew": [
301
- 240,
302
- 255,
303
- 240
304
- ],
305
- "hotpink": [
306
- 255,
307
- 105,
308
- 180
309
- ],
310
- "indianred": [
311
- 205,
312
- 92,
313
- 92
314
- ],
315
- "indigo": [
316
- 75,
317
- 0,
318
- 130
319
- ],
320
- "ivory": [
321
- 255,
322
- 255,
323
- 240
324
- ],
325
- "khaki": [
326
- 240,
327
- 230,
328
- 140
329
- ],
330
- "lavender": [
331
- 230,
332
- 230,
333
- 250
334
- ],
335
- "lavenderblush": [
336
- 255,
337
- 240,
338
- 245
339
- ],
340
- "lawngreen": [
341
- 124,
342
- 252,
343
- 0
344
- ],
345
- "lemonchiffon": [
346
- 255,
347
- 250,
348
- 205
349
- ],
350
- "lightblue": [
351
- 173,
352
- 216,
353
- 230
354
- ],
355
- "lightcoral": [
356
- 240,
357
- 128,
358
- 128
359
- ],
360
- "lightcyan": [
361
- 224,
362
- 255,
363
- 255
364
- ],
365
- "lightgoldenrodyellow": [
366
- 250,
367
- 250,
368
- 210
369
- ],
370
- "lightgray": [
371
- 211,
372
- 211,
373
- 211
374
- ],
375
- "lightgreen": [
376
- 144,
377
- 238,
378
- 144
379
- ],
380
- "lightgrey": [
381
- 211,
382
- 211,
383
- 211
384
- ],
385
- "lightpink": [
386
- 255,
387
- 182,
388
- 193
389
- ],
390
- "lightsalmon": [
391
- 255,
392
- 160,
393
- 122
394
- ],
395
- "lightseagreen": [
396
- 32,
397
- 178,
398
- 170
399
- ],
400
- "lightskyblue": [
401
- 135,
402
- 206,
403
- 250
404
- ],
405
- "lightslategray": [
406
- 119,
407
- 136,
408
- 153
409
- ],
410
- "lightslategrey": [
411
- 119,
412
- 136,
413
- 153
414
- ],
415
- "lightsteelblue": [
416
- 176,
417
- 196,
418
- 222
419
- ],
420
- "lightyellow": [
421
- 255,
422
- 255,
423
- 224
424
- ],
425
- "lime": [
426
- 0,
427
- 255,
428
- 0
429
- ],
430
- "limegreen": [
431
- 50,
432
- 205,
433
- 50
434
- ],
435
- "linen": [
436
- 250,
437
- 240,
438
- 230
439
- ],
440
- "magenta": [
441
- 255,
442
- 0,
443
- 255
444
- ],
445
- "maroon": [
446
- 128,
447
- 0,
448
- 0
449
- ],
450
- "mediumaquamarine": [
451
- 102,
452
- 205,
453
- 170
454
- ],
455
- "mediumblue": [
456
- 0,
457
- 0,
458
- 205
459
- ],
460
- "mediumorchid": [
461
- 186,
462
- 85,
463
- 211
464
- ],
465
- "mediumpurple": [
466
- 147,
467
- 112,
468
- 219
469
- ],
470
- "mediumseagreen": [
471
- 60,
472
- 179,
473
- 113
474
- ],
475
- "mediumslateblue": [
476
- 123,
477
- 104,
478
- 238
479
- ],
480
- "mediumspringgreen": [
481
- 0,
482
- 250,
483
- 154
484
- ],
485
- "mediumturquoise": [
486
- 72,
487
- 209,
488
- 204
489
- ],
490
- "mediumvioletred": [
491
- 199,
492
- 21,
493
- 133
494
- ],
495
- "midnightblue": [
496
- 25,
497
- 25,
498
- 112
499
- ],
500
- "mintcream": [
501
- 245,
502
- 255,
503
- 250
504
- ],
505
- "mistyrose": [
506
- 255,
507
- 228,
508
- 225
509
- ],
510
- "moccasin": [
511
- 255,
512
- 228,
513
- 181
514
- ],
515
- "navajowhite": [
516
- 255,
517
- 222,
518
- 173
519
- ],
520
- "navy": [
521
- 0,
522
- 0,
523
- 128
524
- ],
525
- "oldlace": [
526
- 253,
527
- 245,
528
- 230
529
- ],
530
- "olive": [
531
- 128,
532
- 128,
533
- 0
534
- ],
535
- "olivedrab": [
536
- 107,
537
- 142,
538
- 35
539
- ],
540
- "orange": [
541
- 255,
542
- 165,
543
- 0
544
- ],
545
- "orangered": [
546
- 255,
547
- 69,
548
- 0
549
- ],
550
- "orchid": [
551
- 218,
552
- 112,
553
- 214
554
- ],
555
- "palegoldenrod": [
556
- 238,
557
- 232,
558
- 170
559
- ],
560
- "palegreen": [
561
- 152,
562
- 251,
563
- 152
564
- ],
565
- "paleturquoise": [
566
- 175,
567
- 238,
568
- 238
569
- ],
570
- "palevioletred": [
571
- 219,
572
- 112,
573
- 147
574
- ],
575
- "papayawhip": [
576
- 255,
577
- 239,
578
- 213
579
- ],
580
- "peachpuff": [
581
- 255,
582
- 218,
583
- 185
584
- ],
585
- "peru": [
586
- 205,
587
- 133,
588
- 63
589
- ],
590
- "pink": [
591
- 255,
592
- 192,
593
- 203
594
- ],
595
- "plum": [
596
- 221,
597
- 160,
598
- 221
599
- ],
600
- "powderblue": [
601
- 176,
602
- 224,
603
- 230
604
- ],
605
- "purple": [
606
- 128,
607
- 0,
608
- 128
609
- ],
610
- "rebeccapurple": [
611
- 102,
612
- 51,
613
- 153
614
- ],
615
- "red": [
616
- 255,
617
- 0,
618
- 0
619
- ],
620
- "rosybrown": [
621
- 188,
622
- 143,
623
- 143
624
- ],
625
- "royalblue": [
626
- 65,
627
- 105,
628
- 225
629
- ],
630
- "saddlebrown": [
631
- 139,
632
- 69,
633
- 19
634
- ],
635
- "salmon": [
636
- 250,
637
- 128,
638
- 114
639
- ],
640
- "sandybrown": [
641
- 244,
642
- 164,
643
- 96
644
- ],
645
- "seagreen": [
646
- 46,
647
- 139,
648
- 87
649
- ],
650
- "seashell": [
651
- 255,
652
- 245,
653
- 238
654
- ],
655
- "sienna": [
656
- 160,
657
- 82,
658
- 45
659
- ],
660
- "silver": [
661
- 192,
662
- 192,
663
- 192
664
- ],
665
- "skyblue": [
666
- 135,
667
- 206,
668
- 235
669
- ],
670
- "slateblue": [
671
- 106,
672
- 90,
673
- 205
674
- ],
675
- "slategray": [
676
- 112,
677
- 128,
678
- 144
679
- ],
680
- "slategrey": [
681
- 112,
682
- 128,
683
- 144
684
- ],
685
- "snow": [
686
- 255,
687
- 250,
688
- 250
689
- ],
690
- "springgreen": [
691
- 0,
692
- 255,
693
- 127
694
- ],
695
- "steelblue": [
696
- 70,
697
- 130,
698
- 180
699
- ],
700
- "tan": [
701
- 210,
702
- 180,
703
- 140
704
- ],
705
- "teal": [
706
- 0,
707
- 128,
708
- 128
709
- ],
710
- "thistle": [
711
- 216,
712
- 191,
713
- 216
714
- ],
715
- "tomato": [
716
- 255,
717
- 99,
718
- 71
719
- ],
720
- "turquoise": [
721
- 64,
722
- 224,
723
- 208
724
- ],
725
- "violet": [
726
- 238,
727
- 130,
728
- 238
729
- ],
730
- "wheat": [
731
- 245,
732
- 222,
733
- 179
734
- ],
735
- "white": [
736
- 255,
737
- 255,
738
- 255
739
- ],
740
- "whitesmoke": [
741
- 245,
742
- 245,
743
- 245
744
- ],
745
- "yellow": [
746
- 255,
747
- 255,
748
- 0
749
- ],
750
- "yellowgreen": [
751
- 154,
752
- 205,
753
- 50
754
- ]
755
- };
756
- }
757
- });
758
-
759
- // ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
760
- var require_conversions = __commonJS({
761
- "../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports, module) {
762
- init_esm_shims();
763
- var cssKeywords = require_color_name();
764
- var reverseKeywords = {};
765
- for (const key of Object.keys(cssKeywords)) {
766
- reverseKeywords[cssKeywords[key]] = key;
767
- }
768
- var convert = {
769
- rgb: {
770
- channels: 3,
771
- labels: "rgb"
772
- },
773
- hsl: {
774
- channels: 3,
775
- labels: "hsl"
776
- },
777
- hsv: {
778
- channels: 3,
779
- labels: "hsv"
780
- },
781
- hwb: {
782
- channels: 3,
783
- labels: "hwb"
784
- },
785
- cmyk: {
786
- channels: 4,
787
- labels: "cmyk"
788
- },
789
- xyz: {
790
- channels: 3,
791
- labels: "xyz"
792
- },
793
- lab: {
794
- channels: 3,
795
- labels: "lab"
796
- },
797
- lch: {
798
- channels: 3,
799
- labels: "lch"
800
- },
801
- hex: {
802
- channels: 1,
803
- labels: [
804
- "hex"
805
- ]
806
- },
807
- keyword: {
808
- channels: 1,
809
- labels: [
810
- "keyword"
811
- ]
812
- },
813
- ansi16: {
814
- channels: 1,
815
- labels: [
816
- "ansi16"
817
- ]
818
- },
819
- ansi256: {
820
- channels: 1,
821
- labels: [
822
- "ansi256"
823
- ]
824
- },
825
- hcg: {
826
- channels: 3,
827
- labels: [
828
- "h",
829
- "c",
830
- "g"
831
- ]
832
- },
833
- apple: {
834
- channels: 3,
835
- labels: [
836
- "r16",
837
- "g16",
838
- "b16"
839
- ]
840
- },
841
- gray: {
842
- channels: 1,
843
- labels: [
844
- "gray"
845
- ]
846
- }
847
- };
848
- module.exports = convert;
849
- for (const model of Object.keys(convert)) {
850
- if (!("channels" in convert[model])) {
851
- throw new Error("missing channels property: " + model);
852
- }
853
- if (!("labels" in convert[model])) {
854
- throw new Error("missing channel labels property: " + model);
855
- }
856
- if (convert[model].labels.length !== convert[model].channels) {
857
- throw new Error("channel and label counts mismatch: " + model);
858
- }
859
- const { channels, labels } = convert[model];
860
- delete convert[model].channels;
861
- delete convert[model].labels;
862
- Object.defineProperty(convert[model], "channels", {
863
- value: channels
864
- });
865
- Object.defineProperty(convert[model], "labels", {
866
- value: labels
867
- });
868
- }
869
- convert.rgb.hsl = function(rgb) {
870
- const r = rgb[0] / 255;
871
- const g = rgb[1] / 255;
872
- const b = rgb[2] / 255;
873
- const min = Math.min(r, g, b);
874
- const max = Math.max(r, g, b);
875
- const delta = max - min;
876
- let h;
877
- let s;
878
- if (max === min) {
879
- h = 0;
880
- } else if (r === max) {
881
- h = (g - b) / delta;
882
- } else if (g === max) {
883
- h = 2 + (b - r) / delta;
884
- } else if (b === max) {
885
- h = 4 + (r - g) / delta;
886
- }
887
- h = Math.min(h * 60, 360);
888
- if (h < 0) {
889
- h += 360;
890
- }
891
- const l = (min + max) / 2;
892
- if (max === min) {
893
- s = 0;
894
- } else if (l <= 0.5) {
895
- s = delta / (max + min);
896
- } else {
897
- s = delta / (2 - max - min);
898
- }
899
- return [
900
- h,
901
- s * 100,
902
- l * 100
903
- ];
904
- };
905
- convert.rgb.hsv = function(rgb) {
906
- let rdif;
907
- let gdif;
908
- let bdif;
909
- let h;
910
- let s;
911
- const r = rgb[0] / 255;
912
- const g = rgb[1] / 255;
913
- const b = rgb[2] / 255;
914
- const v = Math.max(r, g, b);
915
- const diff = v - Math.min(r, g, b);
916
- const diffc = /* @__PURE__ */ __name(function(c) {
917
- return (v - c) / 6 / diff + 1 / 2;
918
- }, "diffc");
919
- if (diff === 0) {
920
- h = 0;
921
- s = 0;
922
- } else {
923
- s = diff / v;
924
- rdif = diffc(r);
925
- gdif = diffc(g);
926
- bdif = diffc(b);
927
- if (r === v) {
928
- h = bdif - gdif;
929
- } else if (g === v) {
930
- h = 1 / 3 + rdif - bdif;
931
- } else if (b === v) {
932
- h = 2 / 3 + gdif - rdif;
933
- }
934
- if (h < 0) {
935
- h += 1;
936
- } else if (h > 1) {
937
- h -= 1;
938
- }
939
- }
940
- return [
941
- h * 360,
942
- s * 100,
943
- v * 100
944
- ];
945
- };
946
- convert.rgb.hwb = function(rgb) {
947
- const r = rgb[0];
948
- const g = rgb[1];
949
- let b = rgb[2];
950
- const h = convert.rgb.hsl(rgb)[0];
951
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
952
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
953
- return [
954
- h,
955
- w * 100,
956
- b * 100
957
- ];
958
- };
959
- convert.rgb.cmyk = function(rgb) {
960
- const r = rgb[0] / 255;
961
- const g = rgb[1] / 255;
962
- const b = rgb[2] / 255;
963
- const k = Math.min(1 - r, 1 - g, 1 - b);
964
- const c = (1 - r - k) / (1 - k) || 0;
965
- const m = (1 - g - k) / (1 - k) || 0;
966
- const y = (1 - b - k) / (1 - k) || 0;
967
- return [
968
- c * 100,
969
- m * 100,
970
- y * 100,
971
- k * 100
972
- ];
973
- };
974
- function comparativeDistance(x, y) {
975
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
976
- }
977
- __name(comparativeDistance, "comparativeDistance");
978
- convert.rgb.keyword = function(rgb) {
979
- const reversed = reverseKeywords[rgb];
980
- if (reversed) {
981
- return reversed;
982
- }
983
- let currentClosestDistance = Infinity;
984
- let currentClosestKeyword;
985
- for (const keyword of Object.keys(cssKeywords)) {
986
- const value = cssKeywords[keyword];
987
- const distance = comparativeDistance(rgb, value);
988
- if (distance < currentClosestDistance) {
989
- currentClosestDistance = distance;
990
- currentClosestKeyword = keyword;
991
- }
992
- }
993
- return currentClosestKeyword;
994
- };
995
- convert.keyword.rgb = function(keyword) {
996
- return cssKeywords[keyword];
997
- };
998
- convert.rgb.xyz = function(rgb) {
999
- let r = rgb[0] / 255;
1000
- let g = rgb[1] / 255;
1001
- let b = rgb[2] / 255;
1002
- r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
1003
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
1004
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
1005
- const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
1006
- const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
1007
- const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
1008
- return [
1009
- x * 100,
1010
- y * 100,
1011
- z * 100
1012
- ];
1013
- };
1014
- convert.rgb.lab = function(rgb) {
1015
- const xyz = convert.rgb.xyz(rgb);
1016
- let x = xyz[0];
1017
- let y = xyz[1];
1018
- let z = xyz[2];
1019
- x /= 95.047;
1020
- y /= 100;
1021
- z /= 108.883;
1022
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1023
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1024
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1025
- const l = 116 * y - 16;
1026
- const a = 500 * (x - y);
1027
- const b = 200 * (y - z);
1028
- return [
1029
- l,
1030
- a,
1031
- b
1032
- ];
1033
- };
1034
- convert.hsl.rgb = function(hsl) {
1035
- const h = hsl[0] / 360;
1036
- const s = hsl[1] / 100;
1037
- const l = hsl[2] / 100;
1038
- let t2;
1039
- let t3;
1040
- let val;
1041
- if (s === 0) {
1042
- val = l * 255;
1043
- return [
1044
- val,
1045
- val,
1046
- val
1047
- ];
1048
- }
1049
- if (l < 0.5) {
1050
- t2 = l * (1 + s);
1051
- } else {
1052
- t2 = l + s - l * s;
1053
- }
1054
- const t1 = 2 * l - t2;
1055
- const rgb = [
1056
- 0,
1057
- 0,
1058
- 0
1059
- ];
1060
- for (let i = 0; i < 3; i++) {
1061
- t3 = h + 1 / 3 * -(i - 1);
1062
- if (t3 < 0) {
1063
- t3++;
1064
- }
1065
- if (t3 > 1) {
1066
- t3--;
1067
- }
1068
- if (6 * t3 < 1) {
1069
- val = t1 + (t2 - t1) * 6 * t3;
1070
- } else if (2 * t3 < 1) {
1071
- val = t2;
1072
- } else if (3 * t3 < 2) {
1073
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1074
- } else {
1075
- val = t1;
1076
- }
1077
- rgb[i] = val * 255;
1078
- }
1079
- return rgb;
1080
- };
1081
- convert.hsl.hsv = function(hsl) {
1082
- const h = hsl[0];
1083
- let s = hsl[1] / 100;
1084
- let l = hsl[2] / 100;
1085
- let smin = s;
1086
- const lmin = Math.max(l, 0.01);
1087
- l *= 2;
1088
- s *= l <= 1 ? l : 2 - l;
1089
- smin *= lmin <= 1 ? lmin : 2 - lmin;
1090
- const v = (l + s) / 2;
1091
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
1092
- return [
1093
- h,
1094
- sv * 100,
1095
- v * 100
1096
- ];
1097
- };
1098
- convert.hsv.rgb = function(hsv) {
1099
- const h = hsv[0] / 60;
1100
- const s = hsv[1] / 100;
1101
- let v = hsv[2] / 100;
1102
- const hi = Math.floor(h) % 6;
1103
- const f = h - Math.floor(h);
1104
- const p = 255 * v * (1 - s);
1105
- const q = 255 * v * (1 - s * f);
1106
- const t = 255 * v * (1 - s * (1 - f));
1107
- v *= 255;
1108
- switch (hi) {
1109
- case 0:
1110
- return [
1111
- v,
1112
- t,
1113
- p
1114
- ];
1115
- case 1:
1116
- return [
1117
- q,
1118
- v,
1119
- p
1120
- ];
1121
- case 2:
1122
- return [
1123
- p,
1124
- v,
1125
- t
1126
- ];
1127
- case 3:
1128
- return [
1129
- p,
1130
- q,
1131
- v
1132
- ];
1133
- case 4:
1134
- return [
1135
- t,
1136
- p,
1137
- v
1138
- ];
1139
- case 5:
1140
- return [
1141
- v,
1142
- p,
1143
- q
1144
- ];
1145
- }
1146
- };
1147
- convert.hsv.hsl = function(hsv) {
1148
- const h = hsv[0];
1149
- const s = hsv[1] / 100;
1150
- const v = hsv[2] / 100;
1151
- const vmin = Math.max(v, 0.01);
1152
- let sl;
1153
- let l;
1154
- l = (2 - s) * v;
1155
- const lmin = (2 - s) * vmin;
1156
- sl = s * vmin;
1157
- sl /= lmin <= 1 ? lmin : 2 - lmin;
1158
- sl = sl || 0;
1159
- l /= 2;
1160
- return [
1161
- h,
1162
- sl * 100,
1163
- l * 100
1164
- ];
1165
- };
1166
- convert.hwb.rgb = function(hwb) {
1167
- const h = hwb[0] / 360;
1168
- let wh = hwb[1] / 100;
1169
- let bl = hwb[2] / 100;
1170
- const ratio = wh + bl;
1171
- let f;
1172
- if (ratio > 1) {
1173
- wh /= ratio;
1174
- bl /= ratio;
1175
- }
1176
- const i = Math.floor(6 * h);
1177
- const v = 1 - bl;
1178
- f = 6 * h - i;
1179
- if ((i & 1) !== 0) {
1180
- f = 1 - f;
1181
- }
1182
- const n = wh + f * (v - wh);
1183
- let r;
1184
- let g;
1185
- let b;
1186
- switch (i) {
1187
- default:
1188
- case 6:
1189
- case 0:
1190
- r = v;
1191
- g = n;
1192
- b = wh;
1193
- break;
1194
- case 1:
1195
- r = n;
1196
- g = v;
1197
- b = wh;
1198
- break;
1199
- case 2:
1200
- r = wh;
1201
- g = v;
1202
- b = n;
1203
- break;
1204
- case 3:
1205
- r = wh;
1206
- g = n;
1207
- b = v;
1208
- break;
1209
- case 4:
1210
- r = n;
1211
- g = wh;
1212
- b = v;
1213
- break;
1214
- case 5:
1215
- r = v;
1216
- g = wh;
1217
- b = n;
1218
- break;
1219
- }
1220
- return [
1221
- r * 255,
1222
- g * 255,
1223
- b * 255
1224
- ];
1225
- };
1226
- convert.cmyk.rgb = function(cmyk) {
1227
- const c = cmyk[0] / 100;
1228
- const m = cmyk[1] / 100;
1229
- const y = cmyk[2] / 100;
1230
- const k = cmyk[3] / 100;
1231
- const r = 1 - Math.min(1, c * (1 - k) + k);
1232
- const g = 1 - Math.min(1, m * (1 - k) + k);
1233
- const b = 1 - Math.min(1, y * (1 - k) + k);
1234
- return [
1235
- r * 255,
1236
- g * 255,
1237
- b * 255
1238
- ];
1239
- };
1240
- convert.xyz.rgb = function(xyz) {
1241
- const x = xyz[0] / 100;
1242
- const y = xyz[1] / 100;
1243
- const z = xyz[2] / 100;
1244
- let r;
1245
- let g;
1246
- let b;
1247
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
1248
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
1249
- b = x * 0.0557 + y * -0.204 + z * 1.057;
1250
- r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
1251
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
1252
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
1253
- r = Math.min(Math.max(0, r), 1);
1254
- g = Math.min(Math.max(0, g), 1);
1255
- b = Math.min(Math.max(0, b), 1);
1256
- return [
1257
- r * 255,
1258
- g * 255,
1259
- b * 255
1260
- ];
1261
- };
1262
- convert.xyz.lab = function(xyz) {
1263
- let x = xyz[0];
1264
- let y = xyz[1];
1265
- let z = xyz[2];
1266
- x /= 95.047;
1267
- y /= 100;
1268
- z /= 108.883;
1269
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1270
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1271
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1272
- const l = 116 * y - 16;
1273
- const a = 500 * (x - y);
1274
- const b = 200 * (y - z);
1275
- return [
1276
- l,
1277
- a,
1278
- b
1279
- ];
1280
- };
1281
- convert.lab.xyz = function(lab) {
1282
- const l = lab[0];
1283
- const a = lab[1];
1284
- const b = lab[2];
1285
- let x;
1286
- let y;
1287
- let z;
1288
- y = (l + 16) / 116;
1289
- x = a / 500 + y;
1290
- z = y - b / 200;
1291
- const y2 = y ** 3;
1292
- const x2 = x ** 3;
1293
- const z2 = z ** 3;
1294
- y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
1295
- x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
1296
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
1297
- x *= 95.047;
1298
- y *= 100;
1299
- z *= 108.883;
1300
- return [
1301
- x,
1302
- y,
1303
- z
1304
- ];
1305
- };
1306
- convert.lab.lch = function(lab) {
1307
- const l = lab[0];
1308
- const a = lab[1];
1309
- const b = lab[2];
1310
- let h;
1311
- const hr = Math.atan2(b, a);
1312
- h = hr * 360 / 2 / Math.PI;
1313
- if (h < 0) {
1314
- h += 360;
1315
- }
1316
- const c = Math.sqrt(a * a + b * b);
1317
- return [
1318
- l,
1319
- c,
1320
- h
1321
- ];
1322
- };
1323
- convert.lch.lab = function(lch) {
1324
- const l = lch[0];
1325
- const c = lch[1];
1326
- const h = lch[2];
1327
- const hr = h / 360 * 2 * Math.PI;
1328
- const a = c * Math.cos(hr);
1329
- const b = c * Math.sin(hr);
1330
- return [
1331
- l,
1332
- a,
1333
- b
1334
- ];
1335
- };
1336
- convert.rgb.ansi16 = function(args, saturation = null) {
1337
- const [r, g, b] = args;
1338
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
1339
- value = Math.round(value / 50);
1340
- if (value === 0) {
1341
- return 30;
1342
- }
1343
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
1344
- if (value === 2) {
1345
- ansi += 60;
1346
- }
1347
- return ansi;
1348
- };
1349
- convert.hsv.ansi16 = function(args) {
1350
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1351
- };
1352
- convert.rgb.ansi256 = function(args) {
1353
- const r = args[0];
1354
- const g = args[1];
1355
- const b = args[2];
1356
- if (r === g && g === b) {
1357
- if (r < 8) {
1358
- return 16;
1359
- }
1360
- if (r > 248) {
1361
- return 231;
1362
- }
1363
- return Math.round((r - 8) / 247 * 24) + 232;
1364
- }
1365
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
1366
- return ansi;
1367
- };
1368
- convert.ansi16.rgb = function(args) {
1369
- let color = args % 10;
1370
- if (color === 0 || color === 7) {
1371
- if (args > 50) {
1372
- color += 3.5;
1373
- }
1374
- color = color / 10.5 * 255;
1375
- return [
1376
- color,
1377
- color,
1378
- color
1379
- ];
1380
- }
1381
- const mult = (~~(args > 50) + 1) * 0.5;
1382
- const r = (color & 1) * mult * 255;
1383
- const g = (color >> 1 & 1) * mult * 255;
1384
- const b = (color >> 2 & 1) * mult * 255;
1385
- return [
1386
- r,
1387
- g,
1388
- b
1389
- ];
1390
- };
1391
- convert.ansi256.rgb = function(args) {
1392
- if (args >= 232) {
1393
- const c = (args - 232) * 10 + 8;
1394
- return [
1395
- c,
1396
- c,
1397
- c
1398
- ];
1399
- }
1400
- args -= 16;
1401
- let rem;
1402
- const r = Math.floor(args / 36) / 5 * 255;
1403
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1404
- const b = rem % 6 / 5 * 255;
1405
- return [
1406
- r,
1407
- g,
1408
- b
1409
- ];
1410
- };
1411
- convert.rgb.hex = function(args) {
1412
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
1413
- const string = integer.toString(16).toUpperCase();
1414
- return "000000".substring(string.length) + string;
1415
- };
1416
- convert.hex.rgb = function(args) {
1417
- const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1418
- if (!match) {
1419
- return [
1420
- 0,
1421
- 0,
1422
- 0
1423
- ];
1424
- }
1425
- let colorString = match[0];
1426
- if (match[0].length === 3) {
1427
- colorString = colorString.split("").map((char) => {
1428
- return char + char;
1429
- }).join("");
1430
- }
1431
- const integer = parseInt(colorString, 16);
1432
- const r = integer >> 16 & 255;
1433
- const g = integer >> 8 & 255;
1434
- const b = integer & 255;
1435
- return [
1436
- r,
1437
- g,
1438
- b
1439
- ];
1440
- };
1441
- convert.rgb.hcg = function(rgb) {
1442
- const r = rgb[0] / 255;
1443
- const g = rgb[1] / 255;
1444
- const b = rgb[2] / 255;
1445
- const max = Math.max(Math.max(r, g), b);
1446
- const min = Math.min(Math.min(r, g), b);
1447
- const chroma = max - min;
1448
- let grayscale;
1449
- let hue;
1450
- if (chroma < 1) {
1451
- grayscale = min / (1 - chroma);
1452
- } else {
1453
- grayscale = 0;
1454
- }
1455
- if (chroma <= 0) {
1456
- hue = 0;
1457
- } else if (max === r) {
1458
- hue = (g - b) / chroma % 6;
1459
- } else if (max === g) {
1460
- hue = 2 + (b - r) / chroma;
1461
- } else {
1462
- hue = 4 + (r - g) / chroma;
1463
- }
1464
- hue /= 6;
1465
- hue %= 1;
1466
- return [
1467
- hue * 360,
1468
- chroma * 100,
1469
- grayscale * 100
1470
- ];
1471
- };
1472
- convert.hsl.hcg = function(hsl) {
1473
- const s = hsl[1] / 100;
1474
- const l = hsl[2] / 100;
1475
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
1476
- let f = 0;
1477
- if (c < 1) {
1478
- f = (l - 0.5 * c) / (1 - c);
1479
- }
1480
- return [
1481
- hsl[0],
1482
- c * 100,
1483
- f * 100
1484
- ];
1485
- };
1486
- convert.hsv.hcg = function(hsv) {
1487
- const s = hsv[1] / 100;
1488
- const v = hsv[2] / 100;
1489
- const c = s * v;
1490
- let f = 0;
1491
- if (c < 1) {
1492
- f = (v - c) / (1 - c);
1493
- }
1494
- return [
1495
- hsv[0],
1496
- c * 100,
1497
- f * 100
1498
- ];
1499
- };
1500
- convert.hcg.rgb = function(hcg) {
1501
- const h = hcg[0] / 360;
1502
- const c = hcg[1] / 100;
1503
- const g = hcg[2] / 100;
1504
- if (c === 0) {
1505
- return [
1506
- g * 255,
1507
- g * 255,
1508
- g * 255
1509
- ];
1510
- }
1511
- const pure = [
1512
- 0,
1513
- 0,
1514
- 0
1515
- ];
1516
- const hi = h % 1 * 6;
1517
- const v = hi % 1;
1518
- const w = 1 - v;
1519
- let mg = 0;
1520
- switch (Math.floor(hi)) {
1521
- case 0:
1522
- pure[0] = 1;
1523
- pure[1] = v;
1524
- pure[2] = 0;
1525
- break;
1526
- case 1:
1527
- pure[0] = w;
1528
- pure[1] = 1;
1529
- pure[2] = 0;
1530
- break;
1531
- case 2:
1532
- pure[0] = 0;
1533
- pure[1] = 1;
1534
- pure[2] = v;
1535
- break;
1536
- case 3:
1537
- pure[0] = 0;
1538
- pure[1] = w;
1539
- pure[2] = 1;
1540
- break;
1541
- case 4:
1542
- pure[0] = v;
1543
- pure[1] = 0;
1544
- pure[2] = 1;
1545
- break;
1546
- default:
1547
- pure[0] = 1;
1548
- pure[1] = 0;
1549
- pure[2] = w;
1550
- }
1551
- mg = (1 - c) * g;
1552
- return [
1553
- (c * pure[0] + mg) * 255,
1554
- (c * pure[1] + mg) * 255,
1555
- (c * pure[2] + mg) * 255
1556
- ];
1557
- };
1558
- convert.hcg.hsv = function(hcg) {
1559
- const c = hcg[1] / 100;
1560
- const g = hcg[2] / 100;
1561
- const v = c + g * (1 - c);
1562
- let f = 0;
1563
- if (v > 0) {
1564
- f = c / v;
1565
- }
1566
- return [
1567
- hcg[0],
1568
- f * 100,
1569
- v * 100
1570
- ];
1571
- };
1572
- convert.hcg.hsl = function(hcg) {
1573
- const c = hcg[1] / 100;
1574
- const g = hcg[2] / 100;
1575
- const l = g * (1 - c) + 0.5 * c;
1576
- let s = 0;
1577
- if (l > 0 && l < 0.5) {
1578
- s = c / (2 * l);
1579
- } else if (l >= 0.5 && l < 1) {
1580
- s = c / (2 * (1 - l));
1581
- }
1582
- return [
1583
- hcg[0],
1584
- s * 100,
1585
- l * 100
1586
- ];
1587
- };
1588
- convert.hcg.hwb = function(hcg) {
1589
- const c = hcg[1] / 100;
1590
- const g = hcg[2] / 100;
1591
- const v = c + g * (1 - c);
1592
- return [
1593
- hcg[0],
1594
- (v - c) * 100,
1595
- (1 - v) * 100
1596
- ];
1597
- };
1598
- convert.hwb.hcg = function(hwb) {
1599
- const w = hwb[1] / 100;
1600
- const b = hwb[2] / 100;
1601
- const v = 1 - b;
1602
- const c = v - w;
1603
- let g = 0;
1604
- if (c < 1) {
1605
- g = (v - c) / (1 - c);
1606
- }
1607
- return [
1608
- hwb[0],
1609
- c * 100,
1610
- g * 100
1611
- ];
1612
- };
1613
- convert.apple.rgb = function(apple) {
1614
- return [
1615
- apple[0] / 65535 * 255,
1616
- apple[1] / 65535 * 255,
1617
- apple[2] / 65535 * 255
1618
- ];
1619
- };
1620
- convert.rgb.apple = function(rgb) {
1621
- return [
1622
- rgb[0] / 255 * 65535,
1623
- rgb[1] / 255 * 65535,
1624
- rgb[2] / 255 * 65535
1625
- ];
1626
- };
1627
- convert.gray.rgb = function(args) {
1628
- return [
1629
- args[0] / 100 * 255,
1630
- args[0] / 100 * 255,
1631
- args[0] / 100 * 255
1632
- ];
1633
- };
1634
- convert.gray.hsl = function(args) {
1635
- return [
1636
- 0,
1637
- 0,
1638
- args[0]
1639
- ];
1640
- };
1641
- convert.gray.hsv = convert.gray.hsl;
1642
- convert.gray.hwb = function(gray) {
1643
- return [
1644
- 0,
1645
- 100,
1646
- gray[0]
1647
- ];
1648
- };
1649
- convert.gray.cmyk = function(gray) {
1650
- return [
1651
- 0,
1652
- 0,
1653
- 0,
1654
- gray[0]
1655
- ];
1656
- };
1657
- convert.gray.lab = function(gray) {
1658
- return [
1659
- gray[0],
1660
- 0,
1661
- 0
1662
- ];
1663
- };
1664
- convert.gray.hex = function(gray) {
1665
- const val = Math.round(gray[0] / 100 * 255) & 255;
1666
- const integer = (val << 16) + (val << 8) + val;
1667
- const string = integer.toString(16).toUpperCase();
1668
- return "000000".substring(string.length) + string;
1669
- };
1670
- convert.rgb.gray = function(rgb) {
1671
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1672
- return [
1673
- val / 255 * 100
1674
- ];
1675
- };
1676
- }
1677
- });
1678
-
1679
- // ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
1680
- var require_route = __commonJS({
1681
- "../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports, module) {
1682
- init_esm_shims();
1683
- var conversions = require_conversions();
1684
- function buildGraph() {
1685
- const graph = {};
1686
- const models = Object.keys(conversions);
1687
- for (let len = models.length, i = 0; i < len; i++) {
1688
- graph[models[i]] = {
1689
- // http://jsperf.com/1-vs-infinity
1690
- // micro-opt, but this is simple.
1691
- distance: -1,
1692
- parent: null
1693
- };
1694
- }
1695
- return graph;
1696
- }
1697
- __name(buildGraph, "buildGraph");
1698
- function deriveBFS(fromModel) {
1699
- const graph = buildGraph();
1700
- const queue = [
1701
- fromModel
1702
- ];
1703
- graph[fromModel].distance = 0;
1704
- while (queue.length) {
1705
- const current = queue.pop();
1706
- const adjacents = Object.keys(conversions[current]);
1707
- for (let len = adjacents.length, i = 0; i < len; i++) {
1708
- const adjacent = adjacents[i];
1709
- const node = graph[adjacent];
1710
- if (node.distance === -1) {
1711
- node.distance = graph[current].distance + 1;
1712
- node.parent = current;
1713
- queue.unshift(adjacent);
1714
- }
1715
- }
1716
- }
1717
- return graph;
1718
- }
1719
- __name(deriveBFS, "deriveBFS");
1720
- function link(from, to) {
1721
- return function(args) {
1722
- return to(from(args));
1723
- };
1724
- }
1725
- __name(link, "link");
1726
- function wrapConversion(toModel, graph) {
1727
- const path = [
1728
- graph[toModel].parent,
1729
- toModel
1730
- ];
1731
- let fn = conversions[graph[toModel].parent][toModel];
1732
- let cur = graph[toModel].parent;
1733
- while (graph[cur].parent) {
1734
- path.unshift(graph[cur].parent);
1735
- fn = link(conversions[graph[cur].parent][cur], fn);
1736
- cur = graph[cur].parent;
1737
- }
1738
- fn.conversion = path;
1739
- return fn;
1740
- }
1741
- __name(wrapConversion, "wrapConversion");
1742
- module.exports = function(fromModel) {
1743
- const graph = deriveBFS(fromModel);
1744
- const conversion = {};
1745
- const models = Object.keys(graph);
1746
- for (let len = models.length, i = 0; i < len; i++) {
1747
- const toModel = models[i];
1748
- const node = graph[toModel];
1749
- if (node.parent === null) {
1750
- continue;
1751
- }
1752
- conversion[toModel] = wrapConversion(toModel, graph);
1753
- }
1754
- return conversion;
1755
- };
1756
- }
1757
- });
1758
-
1759
- // ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
1760
- var require_color_convert = __commonJS({
1761
- "../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports, module) {
1762
- init_esm_shims();
1763
- var conversions = require_conversions();
1764
- var route = require_route();
1765
- var convert = {};
1766
- var models = Object.keys(conversions);
1767
- function wrapRaw(fn) {
1768
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1769
- const arg0 = args[0];
1770
- if (arg0 === void 0 || arg0 === null) {
1771
- return arg0;
1772
- }
1773
- if (arg0.length > 1) {
1774
- args = arg0;
1775
- }
1776
- return fn(args);
1777
- }, "wrappedFn");
1778
- if ("conversion" in fn) {
1779
- wrappedFn.conversion = fn.conversion;
1780
- }
1781
- return wrappedFn;
1782
- }
1783
- __name(wrapRaw, "wrapRaw");
1784
- function wrapRounded(fn) {
1785
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1786
- const arg0 = args[0];
1787
- if (arg0 === void 0 || arg0 === null) {
1788
- return arg0;
1789
- }
1790
- if (arg0.length > 1) {
1791
- args = arg0;
1792
- }
1793
- const result = fn(args);
1794
- if (typeof result === "object") {
1795
- for (let len = result.length, i = 0; i < len; i++) {
1796
- result[i] = Math.round(result[i]);
1797
- }
1798
- }
1799
- return result;
1800
- }, "wrappedFn");
1801
- if ("conversion" in fn) {
1802
- wrappedFn.conversion = fn.conversion;
1803
- }
1804
- return wrappedFn;
1805
- }
1806
- __name(wrapRounded, "wrapRounded");
1807
- models.forEach((fromModel) => {
1808
- convert[fromModel] = {};
1809
- Object.defineProperty(convert[fromModel], "channels", {
1810
- value: conversions[fromModel].channels
1811
- });
1812
- Object.defineProperty(convert[fromModel], "labels", {
1813
- value: conversions[fromModel].labels
1814
- });
1815
- const routes = route(fromModel);
1816
- const routeModels = Object.keys(routes);
1817
- routeModels.forEach((toModel) => {
1818
- const fn = routes[toModel];
1819
- convert[fromModel][toModel] = wrapRounded(fn);
1820
- convert[fromModel][toModel].raw = wrapRaw(fn);
1821
- });
1822
- });
1823
- module.exports = convert;
1824
- }
1825
- });
1826
-
1827
- // ../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
1828
- var require_ansi_styles = __commonJS({
1829
- "../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports, module) {
1830
- "use strict";
1831
- init_esm_shims();
1832
- var wrapAnsi16 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1833
- const code = fn(...args);
1834
- return `\x1B[${code + offset}m`;
1835
- }, "wrapAnsi16");
1836
- var wrapAnsi256 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1837
- const code = fn(...args);
1838
- return `\x1B[${38 + offset};5;${code}m`;
1839
- }, "wrapAnsi256");
1840
- var wrapAnsi16m = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1841
- const rgb = fn(...args);
1842
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1843
- }, "wrapAnsi16m");
1844
- var ansi2ansi = /* @__PURE__ */ __name((n) => n, "ansi2ansi");
1845
- var rgb2rgb = /* @__PURE__ */ __name((r, g, b) => [
1846
- r,
1847
- g,
1848
- b
1849
- ], "rgb2rgb");
1850
- var setLazyProperty = /* @__PURE__ */ __name((object, property, get) => {
1851
- Object.defineProperty(object, property, {
1852
- get: /* @__PURE__ */ __name(() => {
1853
- const value = get();
1854
- Object.defineProperty(object, property, {
1855
- value,
1856
- enumerable: true,
1857
- configurable: true
1858
- });
1859
- return value;
1860
- }, "get"),
1861
- enumerable: true,
1862
- configurable: true
1863
- });
1864
- }, "setLazyProperty");
1865
- var colorConvert;
1866
- var makeDynamicStyles = /* @__PURE__ */ __name((wrap, targetSpace, identity, isBackground) => {
1867
- if (colorConvert === void 0) {
1868
- colorConvert = require_color_convert();
1869
- }
1870
- const offset = isBackground ? 10 : 0;
1871
- const styles = {};
1872
- for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
1873
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1874
- if (sourceSpace === targetSpace) {
1875
- styles[name] = wrap(identity, offset);
1876
- } else if (typeof suite === "object") {
1877
- styles[name] = wrap(suite[targetSpace], offset);
1878
- }
1879
- }
1880
- return styles;
1881
- }, "makeDynamicStyles");
1882
- function assembleStyles() {
1883
- const codes = /* @__PURE__ */ new Map();
1884
- const styles = {
1885
- modifier: {
1886
- reset: [
1887
- 0,
1888
- 0
1889
- ],
1890
- // 21 isn't widely supported and 22 does the same thing
1891
- bold: [
1892
- 1,
1893
- 22
1894
- ],
1895
- dim: [
1896
- 2,
1897
- 22
1898
- ],
1899
- italic: [
1900
- 3,
1901
- 23
1902
- ],
1903
- underline: [
1904
- 4,
1905
- 24
1906
- ],
1907
- inverse: [
1908
- 7,
1909
- 27
1910
- ],
1911
- hidden: [
1912
- 8,
1913
- 28
1914
- ],
1915
- strikethrough: [
1916
- 9,
1917
- 29
1918
- ]
1919
- },
1920
- color: {
1921
- black: [
1922
- 30,
1923
- 39
1924
- ],
1925
- red: [
1926
- 31,
1927
- 39
1928
- ],
1929
- green: [
1930
- 32,
1931
- 39
1932
- ],
1933
- yellow: [
1934
- 33,
1935
- 39
1936
- ],
1937
- blue: [
1938
- 34,
1939
- 39
1940
- ],
1941
- magenta: [
1942
- 35,
1943
- 39
1944
- ],
1945
- cyan: [
1946
- 36,
1947
- 39
1948
- ],
1949
- white: [
1950
- 37,
1951
- 39
1952
- ],
1953
- // Bright color
1954
- blackBright: [
1955
- 90,
1956
- 39
1957
- ],
1958
- redBright: [
1959
- 91,
1960
- 39
1961
- ],
1962
- greenBright: [
1963
- 92,
1964
- 39
1965
- ],
1966
- yellowBright: [
1967
- 93,
1968
- 39
1969
- ],
1970
- blueBright: [
1971
- 94,
1972
- 39
1973
- ],
1974
- magentaBright: [
1975
- 95,
1976
- 39
1977
- ],
1978
- cyanBright: [
1979
- 96,
1980
- 39
1981
- ],
1982
- whiteBright: [
1983
- 97,
1984
- 39
1985
- ]
1986
- },
1987
- bgColor: {
1988
- bgBlack: [
1989
- 40,
1990
- 49
1991
- ],
1992
- bgRed: [
1993
- 41,
1994
- 49
1995
- ],
1996
- bgGreen: [
1997
- 42,
1998
- 49
1999
- ],
2000
- bgYellow: [
2001
- 43,
2002
- 49
2003
- ],
2004
- bgBlue: [
2005
- 44,
2006
- 49
2007
- ],
2008
- bgMagenta: [
2009
- 45,
2010
- 49
2011
- ],
2012
- bgCyan: [
2013
- 46,
2014
- 49
2015
- ],
2016
- bgWhite: [
2017
- 47,
2018
- 49
2019
- ],
2020
- // Bright color
2021
- bgBlackBright: [
2022
- 100,
2023
- 49
2024
- ],
2025
- bgRedBright: [
2026
- 101,
2027
- 49
2028
- ],
2029
- bgGreenBright: [
2030
- 102,
2031
- 49
2032
- ],
2033
- bgYellowBright: [
2034
- 103,
2035
- 49
2036
- ],
2037
- bgBlueBright: [
2038
- 104,
2039
- 49
2040
- ],
2041
- bgMagentaBright: [
2042
- 105,
2043
- 49
2044
- ],
2045
- bgCyanBright: [
2046
- 106,
2047
- 49
2048
- ],
2049
- bgWhiteBright: [
2050
- 107,
2051
- 49
2052
- ]
2053
- }
2054
- };
2055
- styles.color.gray = styles.color.blackBright;
2056
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2057
- styles.color.grey = styles.color.blackBright;
2058
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2059
- for (const [groupName, group] of Object.entries(styles)) {
2060
- for (const [styleName, style] of Object.entries(group)) {
2061
- styles[styleName] = {
2062
- open: `\x1B[${style[0]}m`,
2063
- close: `\x1B[${style[1]}m`
2064
- };
2065
- group[styleName] = styles[styleName];
2066
- codes.set(style[0], style[1]);
2067
- }
2068
- Object.defineProperty(styles, groupName, {
2069
- value: group,
2070
- enumerable: false
2071
- });
2072
- }
2073
- Object.defineProperty(styles, "codes", {
2074
- value: codes,
2075
- enumerable: false
2076
- });
2077
- styles.color.close = "\x1B[39m";
2078
- styles.bgColor.close = "\x1B[49m";
2079
- setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
2080
- setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
2081
- setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
2082
- setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
2083
- setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
2084
- setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
2085
- return styles;
2086
- }
2087
- __name(assembleStyles, "assembleStyles");
2088
- Object.defineProperty(module, "exports", {
2089
- enumerable: true,
2090
- get: assembleStyles
2091
- });
2092
- }
2093
- });
2094
-
2095
- // ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
2096
- var require_has_flag = __commonJS({
2097
- "../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports, module) {
2098
- "use strict";
2099
- init_esm_shims();
2100
- module.exports = (flag, argv = process.argv) => {
2101
- const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
2102
- const position = argv.indexOf(prefix + flag);
2103
- const terminatorPosition = argv.indexOf("--");
2104
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
2105
- };
2106
- }
2107
- });
2108
-
2109
- // ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
2110
- var require_supports_color = __commonJS({
2111
- "../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports, module) {
2112
- "use strict";
2113
- init_esm_shims();
2114
- var os = __require("os");
2115
- var tty = __require("tty");
2116
- var hasFlag = require_has_flag();
2117
- var { env } = process;
2118
- var forceColor;
2119
- if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
2120
- forceColor = 0;
2121
- } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
2122
- forceColor = 1;
2123
- }
2124
- if ("FORCE_COLOR" in env) {
2125
- if (env.FORCE_COLOR === "true") {
2126
- forceColor = 1;
2127
- } else if (env.FORCE_COLOR === "false") {
2128
- forceColor = 0;
2129
- } else {
2130
- forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
2131
- }
2132
- }
2133
- function translateLevel(level) {
2134
- if (level === 0) {
2135
- return false;
2136
- }
2137
- return {
2138
- level,
2139
- hasBasic: true,
2140
- has256: level >= 2,
2141
- has16m: level >= 3
2142
- };
2143
- }
2144
- __name(translateLevel, "translateLevel");
2145
- function supportsColor(haveStream, streamIsTTY) {
2146
- if (forceColor === 0) {
2147
- return 0;
2148
- }
2149
- if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
2150
- return 3;
2151
- }
2152
- if (hasFlag("color=256")) {
2153
- return 2;
2154
- }
2155
- if (haveStream && !streamIsTTY && forceColor === void 0) {
2156
- return 0;
2157
- }
2158
- const min = forceColor || 0;
2159
- if (env.TERM === "dumb") {
2160
- return min;
2161
- }
2162
- if (process.platform === "win32") {
2163
- const osRelease = os.release().split(".");
2164
- if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
2165
- return Number(osRelease[2]) >= 14931 ? 3 : 2;
2166
- }
2167
- return 1;
2168
- }
2169
- if ("CI" in env) {
2170
- if ([
2171
- "TRAVIS",
2172
- "CIRCLECI",
2173
- "APPVEYOR",
2174
- "GITLAB_CI",
2175
- "GITHUB_ACTIONS",
2176
- "BUILDKITE"
2177
- ].some((sign) => sign in env) || env.CI_NAME === "codeship") {
2178
- return 1;
2179
- }
2180
- return min;
2181
- }
2182
- if ("TEAMCITY_VERSION" in env) {
2183
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
2184
- }
2185
- if (env.COLORTERM === "truecolor") {
2186
- return 3;
2187
- }
2188
- if ("TERM_PROGRAM" in env) {
2189
- const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
2190
- switch (env.TERM_PROGRAM) {
2191
- case "iTerm.app":
2192
- return version >= 3 ? 3 : 2;
2193
- case "Apple_Terminal":
2194
- return 2;
2195
- }
2196
- }
2197
- if (/-256(color)?$/i.test(env.TERM)) {
2198
- return 2;
2199
- }
2200
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
2201
- return 1;
2202
- }
2203
- if ("COLORTERM" in env) {
2204
- return 1;
2205
- }
2206
- return min;
2207
- }
2208
- __name(supportsColor, "supportsColor");
2209
- function getSupportLevel(stream) {
2210
- const level = supportsColor(stream, stream && stream.isTTY);
2211
- return translateLevel(level);
2212
- }
2213
- __name(getSupportLevel, "getSupportLevel");
2214
- module.exports = {
2215
- supportsColor: getSupportLevel,
2216
- stdout: translateLevel(supportsColor(true, tty.isatty(1))),
2217
- stderr: translateLevel(supportsColor(true, tty.isatty(2)))
2218
- };
2219
- }
2220
- });
2221
-
2222
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
2223
- var require_util = __commonJS({
2224
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports, module) {
2225
- "use strict";
2226
- init_esm_shims();
2227
- var stringReplaceAll = /* @__PURE__ */ __name((string, substring, replacer) => {
2228
- let index = string.indexOf(substring);
2229
- if (index === -1) {
2230
- return string;
2231
- }
2232
- const substringLength = substring.length;
2233
- let endIndex = 0;
2234
- let returnValue = "";
2235
- do {
2236
- returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
2237
- endIndex = index + substringLength;
2238
- index = string.indexOf(substring, endIndex);
2239
- } while (index !== -1);
2240
- returnValue += string.substr(endIndex);
2241
- return returnValue;
2242
- }, "stringReplaceAll");
2243
- var stringEncaseCRLFWithFirstIndex = /* @__PURE__ */ __name((string, prefix, postfix, index) => {
2244
- let endIndex = 0;
2245
- let returnValue = "";
2246
- do {
2247
- const gotCR = string[index - 1] === "\r";
2248
- returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
2249
- endIndex = index + 1;
2250
- index = string.indexOf("\n", endIndex);
2251
- } while (index !== -1);
2252
- returnValue += string.substr(endIndex);
2253
- return returnValue;
2254
- }, "stringEncaseCRLFWithFirstIndex");
2255
- module.exports = {
2256
- stringReplaceAll,
2257
- stringEncaseCRLFWithFirstIndex
2258
- };
2259
- }
2260
- });
2261
-
2262
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
2263
- var require_templates = __commonJS({
2264
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports, module) {
2265
- "use strict";
2266
- init_esm_shims();
2267
- var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
2268
- var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
2269
- var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
2270
- var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
2271
- var ESCAPES = /* @__PURE__ */ new Map([
2272
- [
2273
- "n",
2274
- "\n"
2275
- ],
2276
- [
2277
- "r",
2278
- "\r"
2279
- ],
2280
- [
2281
- "t",
2282
- " "
2283
- ],
2284
- [
2285
- "b",
2286
- "\b"
2287
- ],
2288
- [
2289
- "f",
2290
- "\f"
2291
- ],
2292
- [
2293
- "v",
2294
- "\v"
2295
- ],
2296
- [
2297
- "0",
2298
- "\0"
2299
- ],
2300
- [
2301
- "\\",
2302
- "\\"
2303
- ],
2304
- [
2305
- "e",
2306
- "\x1B"
2307
- ],
2308
- [
2309
- "a",
2310
- "\x07"
2311
- ]
2312
- ]);
2313
- function unescape(c) {
2314
- const u = c[0] === "u";
2315
- const bracket = c[1] === "{";
2316
- if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
2317
- return String.fromCharCode(parseInt(c.slice(1), 16));
2318
- }
2319
- if (u && bracket) {
2320
- return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
2321
- }
2322
- return ESCAPES.get(c) || c;
2323
- }
2324
- __name(unescape, "unescape");
2325
- function parseArguments(name, arguments_) {
2326
- const results = [];
2327
- const chunks = arguments_.trim().split(/\s*,\s*/g);
2328
- let matches;
2329
- for (const chunk of chunks) {
2330
- const number = Number(chunk);
2331
- if (!Number.isNaN(number)) {
2332
- results.push(number);
2333
- } else if (matches = chunk.match(STRING_REGEX)) {
2334
- results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
2335
- } else {
2336
- throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
2337
- }
2338
- }
2339
- return results;
2340
- }
2341
- __name(parseArguments, "parseArguments");
2342
- function parseStyle(style) {
2343
- STYLE_REGEX.lastIndex = 0;
2344
- const results = [];
2345
- let matches;
2346
- while ((matches = STYLE_REGEX.exec(style)) !== null) {
2347
- const name = matches[1];
2348
- if (matches[2]) {
2349
- const args = parseArguments(name, matches[2]);
2350
- results.push([
2351
- name
2352
- ].concat(args));
2353
- } else {
2354
- results.push([
2355
- name
2356
- ]);
2357
- }
2358
- }
2359
- return results;
2360
- }
2361
- __name(parseStyle, "parseStyle");
2362
- function buildStyle(chalk2, styles) {
2363
- const enabled = {};
2364
- for (const layer of styles) {
2365
- for (const style of layer.styles) {
2366
- enabled[style[0]] = layer.inverse ? null : style.slice(1);
2367
- }
2368
- }
2369
- let current = chalk2;
2370
- for (const [styleName, styles2] of Object.entries(enabled)) {
2371
- if (!Array.isArray(styles2)) {
2372
- continue;
2373
- }
2374
- if (!(styleName in current)) {
2375
- throw new Error(`Unknown Chalk style: ${styleName}`);
2376
- }
2377
- current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
2378
- }
2379
- return current;
2380
- }
2381
- __name(buildStyle, "buildStyle");
2382
- module.exports = (chalk2, temporary) => {
2383
- const styles = [];
2384
- const chunks = [];
2385
- let chunk = [];
2386
- temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
2387
- if (escapeCharacter) {
2388
- chunk.push(unescape(escapeCharacter));
2389
- } else if (style) {
2390
- const string = chunk.join("");
2391
- chunk = [];
2392
- chunks.push(styles.length === 0 ? string : buildStyle(chalk2, styles)(string));
2393
- styles.push({
2394
- inverse,
2395
- styles: parseStyle(style)
2396
- });
2397
- } else if (close) {
2398
- if (styles.length === 0) {
2399
- throw new Error("Found extraneous } in Chalk template literal");
2400
- }
2401
- chunks.push(buildStyle(chalk2, styles)(chunk.join("")));
2402
- chunk = [];
2403
- styles.pop();
2404
- } else {
2405
- chunk.push(character);
2406
- }
2407
- });
2408
- chunks.push(chunk.join(""));
2409
- if (styles.length > 0) {
2410
- const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
2411
- throw new Error(errMessage);
2412
- }
2413
- return chunks.join("");
2414
- };
2415
- }
2416
- });
2417
-
2418
- // ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
2419
- var require_source = __commonJS({
2420
- "../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports, module) {
2421
- "use strict";
2422
- init_esm_shims();
2423
- var ansiStyles = require_ansi_styles();
2424
- var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
2425
- var { stringReplaceAll, stringEncaseCRLFWithFirstIndex } = require_util();
2426
- var { isArray } = Array;
2427
- var levelMapping = [
2428
- "ansi",
2429
- "ansi",
2430
- "ansi256",
2431
- "ansi16m"
2432
- ];
2433
- var styles = /* @__PURE__ */ Object.create(null);
2434
- var applyOptions = /* @__PURE__ */ __name((object, options = {}) => {
2435
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
2436
- throw new Error("The `level` option should be an integer from 0 to 3");
2437
- }
2438
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
2439
- object.level = options.level === void 0 ? colorLevel : options.level;
2440
- }, "applyOptions");
2441
- var ChalkClass = class ChalkClass {
2442
- static {
2443
- __name(this, "ChalkClass");
2444
- }
2445
- constructor(options) {
2446
- return chalkFactory(options);
2447
- }
2448
- };
2449
- var chalkFactory = /* @__PURE__ */ __name((options) => {
2450
- const chalk3 = {};
2451
- applyOptions(chalk3, options);
2452
- chalk3.template = (...arguments_) => chalkTag(chalk3.template, ...arguments_);
2453
- Object.setPrototypeOf(chalk3, Chalk.prototype);
2454
- Object.setPrototypeOf(chalk3.template, chalk3);
2455
- chalk3.template.constructor = () => {
2456
- throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
2457
- };
2458
- chalk3.template.Instance = ChalkClass;
2459
- return chalk3.template;
2460
- }, "chalkFactory");
2461
- function Chalk(options) {
2462
- return chalkFactory(options);
2463
- }
2464
- __name(Chalk, "Chalk");
2465
- for (const [styleName, style] of Object.entries(ansiStyles)) {
2466
- styles[styleName] = {
2467
- get() {
2468
- const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
2469
- Object.defineProperty(this, styleName, {
2470
- value: builder
2471
- });
2472
- return builder;
2473
- }
2474
- };
2475
- }
2476
- styles.visible = {
2477
- get() {
2478
- const builder = createBuilder(this, this._styler, true);
2479
- Object.defineProperty(this, "visible", {
2480
- value: builder
2481
- });
2482
- return builder;
2483
- }
2484
- };
2485
- var usedModels = [
2486
- "rgb",
2487
- "hex",
2488
- "keyword",
2489
- "hsl",
2490
- "hsv",
2491
- "hwb",
2492
- "ansi",
2493
- "ansi256"
2494
- ];
2495
- for (const model of usedModels) {
2496
- styles[model] = {
2497
- get() {
2498
- const { level } = this;
2499
- return function(...arguments_) {
2500
- const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
2501
- return createBuilder(this, styler, this._isEmpty);
2502
- };
2503
- }
2504
- };
2505
- }
2506
- for (const model of usedModels) {
2507
- const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
2508
- styles[bgModel] = {
2509
- get() {
2510
- const { level } = this;
2511
- return function(...arguments_) {
2512
- const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
2513
- return createBuilder(this, styler, this._isEmpty);
2514
- };
2515
- }
2516
- };
2517
- }
2518
- var proto = Object.defineProperties(() => {
2519
- }, {
2520
- ...styles,
2521
- level: {
2522
- enumerable: true,
2523
- get() {
2524
- return this._generator.level;
2525
- },
2526
- set(level) {
2527
- this._generator.level = level;
2528
- }
2529
- }
2530
- });
2531
- var createStyler = /* @__PURE__ */ __name((open, close, parent) => {
2532
- let openAll;
2533
- let closeAll;
2534
- if (parent === void 0) {
2535
- openAll = open;
2536
- closeAll = close;
2537
- } else {
2538
- openAll = parent.openAll + open;
2539
- closeAll = close + parent.closeAll;
2540
- }
2541
- return {
2542
- open,
2543
- close,
2544
- openAll,
2545
- closeAll,
2546
- parent
2547
- };
2548
- }, "createStyler");
2549
- var createBuilder = /* @__PURE__ */ __name((self, _styler, _isEmpty) => {
2550
- const builder = /* @__PURE__ */ __name((...arguments_) => {
2551
- if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
2552
- return applyStyle(builder, chalkTag(builder, ...arguments_));
2553
- }
2554
- return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
2555
- }, "builder");
2556
- Object.setPrototypeOf(builder, proto);
2557
- builder._generator = self;
2558
- builder._styler = _styler;
2559
- builder._isEmpty = _isEmpty;
2560
- return builder;
2561
- }, "createBuilder");
2562
- var applyStyle = /* @__PURE__ */ __name((self, string) => {
2563
- if (self.level <= 0 || !string) {
2564
- return self._isEmpty ? "" : string;
2565
- }
2566
- let styler = self._styler;
2567
- if (styler === void 0) {
2568
- return string;
2569
- }
2570
- const { openAll, closeAll } = styler;
2571
- if (string.indexOf("\x1B") !== -1) {
2572
- while (styler !== void 0) {
2573
- string = stringReplaceAll(string, styler.close, styler.open);
2574
- styler = styler.parent;
2575
- }
2576
- }
2577
- const lfIndex = string.indexOf("\n");
2578
- if (lfIndex !== -1) {
2579
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
2580
- }
2581
- return openAll + string + closeAll;
2582
- }, "applyStyle");
2583
- var template;
2584
- var chalkTag = /* @__PURE__ */ __name((chalk3, ...strings) => {
2585
- const [firstString] = strings;
2586
- if (!isArray(firstString) || !isArray(firstString.raw)) {
2587
- return strings.join(" ");
2588
- }
2589
- const arguments_ = strings.slice(1);
2590
- const parts = [
2591
- firstString.raw[0]
2592
- ];
2593
- for (let i = 1; i < firstString.length; i++) {
2594
- parts.push(String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"), String(firstString.raw[i]));
2595
- }
2596
- if (template === void 0) {
2597
- template = require_templates();
2598
- }
2599
- return template(chalk3, parts.join(""));
2600
- }, "chalkTag");
2601
- Object.defineProperties(Chalk.prototype, styles);
2602
- var chalk2 = Chalk();
2603
- chalk2.supportsColor = stdoutColor;
2604
- chalk2.stderr = Chalk({
2605
- level: stderrColor ? stderrColor.level : 0
2606
- });
2607
- chalk2.stderr.supportsColor = stderrColor;
2608
- module.exports = chalk2;
2609
- }
2610
- });
2611
-
2612
- // src/logger/chalk.ts
2613
- init_esm_shims();
2614
- var import_chalk = __toESM(require_source(), 1);
2615
- var chalkDefault = {
2616
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
2617
- bgHex: /* @__PURE__ */ __name((_) => ({
2618
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
2619
- }), "bgHex"),
2620
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
2621
- gray: /* @__PURE__ */ __name((message) => message, "gray"),
2622
- bold: {
2623
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
2624
- bgHex: /* @__PURE__ */ __name((_) => ({
2625
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
2626
- }), "bgHex"),
2627
- whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
2628
- },
2629
- dim: {
2630
- hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
2631
- gray: /* @__PURE__ */ __name((message) => message, "gray")
2632
- }
2633
- };
2634
- var getChalk = /* @__PURE__ */ __name(() => {
2635
- let _chalk = import_chalk.default;
2636
- if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
2637
- _chalk = chalkDefault;
2638
- }
2639
- return _chalk;
2640
- }, "getChalk");
2641
-
2642
- export {
2643
- require_source,
2644
- getChalk
2645
- };