@html-validate/commitlint-config 3.0.29 → 3.1.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.
@@ -0,0 +1,1668 @@
1
+ "use strict";
2
+ var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __commonJS = (cb, mod) => function __require() {
4
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5
+ };
6
+
7
+ // node_modules/@commitlint/format/node_modules/color-name/index.js
8
+ var require_color_name = __commonJS({
9
+ "node_modules/@commitlint/format/node_modules/color-name/index.js"(exports2, module2) {
10
+ "use strict";
11
+ module2.exports = {
12
+ "aliceblue": [240, 248, 255],
13
+ "antiquewhite": [250, 235, 215],
14
+ "aqua": [0, 255, 255],
15
+ "aquamarine": [127, 255, 212],
16
+ "azure": [240, 255, 255],
17
+ "beige": [245, 245, 220],
18
+ "bisque": [255, 228, 196],
19
+ "black": [0, 0, 0],
20
+ "blanchedalmond": [255, 235, 205],
21
+ "blue": [0, 0, 255],
22
+ "blueviolet": [138, 43, 226],
23
+ "brown": [165, 42, 42],
24
+ "burlywood": [222, 184, 135],
25
+ "cadetblue": [95, 158, 160],
26
+ "chartreuse": [127, 255, 0],
27
+ "chocolate": [210, 105, 30],
28
+ "coral": [255, 127, 80],
29
+ "cornflowerblue": [100, 149, 237],
30
+ "cornsilk": [255, 248, 220],
31
+ "crimson": [220, 20, 60],
32
+ "cyan": [0, 255, 255],
33
+ "darkblue": [0, 0, 139],
34
+ "darkcyan": [0, 139, 139],
35
+ "darkgoldenrod": [184, 134, 11],
36
+ "darkgray": [169, 169, 169],
37
+ "darkgreen": [0, 100, 0],
38
+ "darkgrey": [169, 169, 169],
39
+ "darkkhaki": [189, 183, 107],
40
+ "darkmagenta": [139, 0, 139],
41
+ "darkolivegreen": [85, 107, 47],
42
+ "darkorange": [255, 140, 0],
43
+ "darkorchid": [153, 50, 204],
44
+ "darkred": [139, 0, 0],
45
+ "darksalmon": [233, 150, 122],
46
+ "darkseagreen": [143, 188, 143],
47
+ "darkslateblue": [72, 61, 139],
48
+ "darkslategray": [47, 79, 79],
49
+ "darkslategrey": [47, 79, 79],
50
+ "darkturquoise": [0, 206, 209],
51
+ "darkviolet": [148, 0, 211],
52
+ "deeppink": [255, 20, 147],
53
+ "deepskyblue": [0, 191, 255],
54
+ "dimgray": [105, 105, 105],
55
+ "dimgrey": [105, 105, 105],
56
+ "dodgerblue": [30, 144, 255],
57
+ "firebrick": [178, 34, 34],
58
+ "floralwhite": [255, 250, 240],
59
+ "forestgreen": [34, 139, 34],
60
+ "fuchsia": [255, 0, 255],
61
+ "gainsboro": [220, 220, 220],
62
+ "ghostwhite": [248, 248, 255],
63
+ "gold": [255, 215, 0],
64
+ "goldenrod": [218, 165, 32],
65
+ "gray": [128, 128, 128],
66
+ "green": [0, 128, 0],
67
+ "greenyellow": [173, 255, 47],
68
+ "grey": [128, 128, 128],
69
+ "honeydew": [240, 255, 240],
70
+ "hotpink": [255, 105, 180],
71
+ "indianred": [205, 92, 92],
72
+ "indigo": [75, 0, 130],
73
+ "ivory": [255, 255, 240],
74
+ "khaki": [240, 230, 140],
75
+ "lavender": [230, 230, 250],
76
+ "lavenderblush": [255, 240, 245],
77
+ "lawngreen": [124, 252, 0],
78
+ "lemonchiffon": [255, 250, 205],
79
+ "lightblue": [173, 216, 230],
80
+ "lightcoral": [240, 128, 128],
81
+ "lightcyan": [224, 255, 255],
82
+ "lightgoldenrodyellow": [250, 250, 210],
83
+ "lightgray": [211, 211, 211],
84
+ "lightgreen": [144, 238, 144],
85
+ "lightgrey": [211, 211, 211],
86
+ "lightpink": [255, 182, 193],
87
+ "lightsalmon": [255, 160, 122],
88
+ "lightseagreen": [32, 178, 170],
89
+ "lightskyblue": [135, 206, 250],
90
+ "lightslategray": [119, 136, 153],
91
+ "lightslategrey": [119, 136, 153],
92
+ "lightsteelblue": [176, 196, 222],
93
+ "lightyellow": [255, 255, 224],
94
+ "lime": [0, 255, 0],
95
+ "limegreen": [50, 205, 50],
96
+ "linen": [250, 240, 230],
97
+ "magenta": [255, 0, 255],
98
+ "maroon": [128, 0, 0],
99
+ "mediumaquamarine": [102, 205, 170],
100
+ "mediumblue": [0, 0, 205],
101
+ "mediumorchid": [186, 85, 211],
102
+ "mediumpurple": [147, 112, 219],
103
+ "mediumseagreen": [60, 179, 113],
104
+ "mediumslateblue": [123, 104, 238],
105
+ "mediumspringgreen": [0, 250, 154],
106
+ "mediumturquoise": [72, 209, 204],
107
+ "mediumvioletred": [199, 21, 133],
108
+ "midnightblue": [25, 25, 112],
109
+ "mintcream": [245, 255, 250],
110
+ "mistyrose": [255, 228, 225],
111
+ "moccasin": [255, 228, 181],
112
+ "navajowhite": [255, 222, 173],
113
+ "navy": [0, 0, 128],
114
+ "oldlace": [253, 245, 230],
115
+ "olive": [128, 128, 0],
116
+ "olivedrab": [107, 142, 35],
117
+ "orange": [255, 165, 0],
118
+ "orangered": [255, 69, 0],
119
+ "orchid": [218, 112, 214],
120
+ "palegoldenrod": [238, 232, 170],
121
+ "palegreen": [152, 251, 152],
122
+ "paleturquoise": [175, 238, 238],
123
+ "palevioletred": [219, 112, 147],
124
+ "papayawhip": [255, 239, 213],
125
+ "peachpuff": [255, 218, 185],
126
+ "peru": [205, 133, 63],
127
+ "pink": [255, 192, 203],
128
+ "plum": [221, 160, 221],
129
+ "powderblue": [176, 224, 230],
130
+ "purple": [128, 0, 128],
131
+ "rebeccapurple": [102, 51, 153],
132
+ "red": [255, 0, 0],
133
+ "rosybrown": [188, 143, 143],
134
+ "royalblue": [65, 105, 225],
135
+ "saddlebrown": [139, 69, 19],
136
+ "salmon": [250, 128, 114],
137
+ "sandybrown": [244, 164, 96],
138
+ "seagreen": [46, 139, 87],
139
+ "seashell": [255, 245, 238],
140
+ "sienna": [160, 82, 45],
141
+ "silver": [192, 192, 192],
142
+ "skyblue": [135, 206, 235],
143
+ "slateblue": [106, 90, 205],
144
+ "slategray": [112, 128, 144],
145
+ "slategrey": [112, 128, 144],
146
+ "snow": [255, 250, 250],
147
+ "springgreen": [0, 255, 127],
148
+ "steelblue": [70, 130, 180],
149
+ "tan": [210, 180, 140],
150
+ "teal": [0, 128, 128],
151
+ "thistle": [216, 191, 216],
152
+ "tomato": [255, 99, 71],
153
+ "turquoise": [64, 224, 208],
154
+ "violet": [238, 130, 238],
155
+ "wheat": [245, 222, 179],
156
+ "white": [255, 255, 255],
157
+ "whitesmoke": [245, 245, 245],
158
+ "yellow": [255, 255, 0],
159
+ "yellowgreen": [154, 205, 50]
160
+ };
161
+ }
162
+ });
163
+
164
+ // node_modules/@commitlint/format/node_modules/color-convert/conversions.js
165
+ var require_conversions = __commonJS({
166
+ "node_modules/@commitlint/format/node_modules/color-convert/conversions.js"(exports2, module2) {
167
+ var cssKeywords = require_color_name();
168
+ var reverseKeywords = {};
169
+ for (const key of Object.keys(cssKeywords)) {
170
+ reverseKeywords[cssKeywords[key]] = key;
171
+ }
172
+ var convert = {
173
+ rgb: { channels: 3, labels: "rgb" },
174
+ hsl: { channels: 3, labels: "hsl" },
175
+ hsv: { channels: 3, labels: "hsv" },
176
+ hwb: { channels: 3, labels: "hwb" },
177
+ cmyk: { channels: 4, labels: "cmyk" },
178
+ xyz: { channels: 3, labels: "xyz" },
179
+ lab: { channels: 3, labels: "lab" },
180
+ lch: { channels: 3, labels: "lch" },
181
+ hex: { channels: 1, labels: ["hex"] },
182
+ keyword: { channels: 1, labels: ["keyword"] },
183
+ ansi16: { channels: 1, labels: ["ansi16"] },
184
+ ansi256: { channels: 1, labels: ["ansi256"] },
185
+ hcg: { channels: 3, labels: ["h", "c", "g"] },
186
+ apple: { channels: 3, labels: ["r16", "g16", "b16"] },
187
+ gray: { channels: 1, labels: ["gray"] }
188
+ };
189
+ module2.exports = convert;
190
+ for (const model of Object.keys(convert)) {
191
+ if (!("channels" in convert[model])) {
192
+ throw new Error("missing channels property: " + model);
193
+ }
194
+ if (!("labels" in convert[model])) {
195
+ throw new Error("missing channel labels property: " + model);
196
+ }
197
+ if (convert[model].labels.length !== convert[model].channels) {
198
+ throw new Error("channel and label counts mismatch: " + model);
199
+ }
200
+ const { channels, labels } = convert[model];
201
+ delete convert[model].channels;
202
+ delete convert[model].labels;
203
+ Object.defineProperty(convert[model], "channels", { value: channels });
204
+ Object.defineProperty(convert[model], "labels", { value: labels });
205
+ }
206
+ convert.rgb.hsl = function(rgb) {
207
+ const r = rgb[0] / 255;
208
+ const g = rgb[1] / 255;
209
+ const b = rgb[2] / 255;
210
+ const min = Math.min(r, g, b);
211
+ const max = Math.max(r, g, b);
212
+ const delta = max - min;
213
+ let h;
214
+ let s;
215
+ if (max === min) {
216
+ h = 0;
217
+ } else if (r === max) {
218
+ h = (g - b) / delta;
219
+ } else if (g === max) {
220
+ h = 2 + (b - r) / delta;
221
+ } else if (b === max) {
222
+ h = 4 + (r - g) / delta;
223
+ }
224
+ h = Math.min(h * 60, 360);
225
+ if (h < 0) {
226
+ h += 360;
227
+ }
228
+ const l = (min + max) / 2;
229
+ if (max === min) {
230
+ s = 0;
231
+ } else if (l <= 0.5) {
232
+ s = delta / (max + min);
233
+ } else {
234
+ s = delta / (2 - max - min);
235
+ }
236
+ return [h, s * 100, l * 100];
237
+ };
238
+ convert.rgb.hsv = function(rgb) {
239
+ let rdif;
240
+ let gdif;
241
+ let bdif;
242
+ let h;
243
+ let s;
244
+ const r = rgb[0] / 255;
245
+ const g = rgb[1] / 255;
246
+ const b = rgb[2] / 255;
247
+ const v = Math.max(r, g, b);
248
+ const diff = v - Math.min(r, g, b);
249
+ const diffc = function(c) {
250
+ return (v - c) / 6 / diff + 1 / 2;
251
+ };
252
+ if (diff === 0) {
253
+ h = 0;
254
+ s = 0;
255
+ } else {
256
+ s = diff / v;
257
+ rdif = diffc(r);
258
+ gdif = diffc(g);
259
+ bdif = diffc(b);
260
+ if (r === v) {
261
+ h = bdif - gdif;
262
+ } else if (g === v) {
263
+ h = 1 / 3 + rdif - bdif;
264
+ } else if (b === v) {
265
+ h = 2 / 3 + gdif - rdif;
266
+ }
267
+ if (h < 0) {
268
+ h += 1;
269
+ } else if (h > 1) {
270
+ h -= 1;
271
+ }
272
+ }
273
+ return [
274
+ h * 360,
275
+ s * 100,
276
+ v * 100
277
+ ];
278
+ };
279
+ convert.rgb.hwb = function(rgb) {
280
+ const r = rgb[0];
281
+ const g = rgb[1];
282
+ let b = rgb[2];
283
+ const h = convert.rgb.hsl(rgb)[0];
284
+ const w = 1 / 255 * Math.min(r, Math.min(g, b));
285
+ b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
286
+ return [h, w * 100, b * 100];
287
+ };
288
+ convert.rgb.cmyk = function(rgb) {
289
+ const r = rgb[0] / 255;
290
+ const g = rgb[1] / 255;
291
+ const b = rgb[2] / 255;
292
+ const k = Math.min(1 - r, 1 - g, 1 - b);
293
+ const c = (1 - r - k) / (1 - k) || 0;
294
+ const m = (1 - g - k) / (1 - k) || 0;
295
+ const y = (1 - b - k) / (1 - k) || 0;
296
+ return [c * 100, m * 100, y * 100, k * 100];
297
+ };
298
+ function comparativeDistance(x, y) {
299
+ return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
300
+ }
301
+ convert.rgb.keyword = function(rgb) {
302
+ const reversed = reverseKeywords[rgb];
303
+ if (reversed) {
304
+ return reversed;
305
+ }
306
+ let currentClosestDistance = Infinity;
307
+ let currentClosestKeyword;
308
+ for (const keyword of Object.keys(cssKeywords)) {
309
+ const value = cssKeywords[keyword];
310
+ const distance = comparativeDistance(rgb, value);
311
+ if (distance < currentClosestDistance) {
312
+ currentClosestDistance = distance;
313
+ currentClosestKeyword = keyword;
314
+ }
315
+ }
316
+ return currentClosestKeyword;
317
+ };
318
+ convert.keyword.rgb = function(keyword) {
319
+ return cssKeywords[keyword];
320
+ };
321
+ convert.rgb.xyz = function(rgb) {
322
+ let r = rgb[0] / 255;
323
+ let g = rgb[1] / 255;
324
+ let b = rgb[2] / 255;
325
+ r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
326
+ g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
327
+ b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
328
+ const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
329
+ const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
330
+ const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
331
+ return [x * 100, y * 100, z * 100];
332
+ };
333
+ convert.rgb.lab = function(rgb) {
334
+ const xyz = convert.rgb.xyz(rgb);
335
+ let x = xyz[0];
336
+ let y = xyz[1];
337
+ let z = xyz[2];
338
+ x /= 95.047;
339
+ y /= 100;
340
+ z /= 108.883;
341
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
342
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
343
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
344
+ const l = 116 * y - 16;
345
+ const a = 500 * (x - y);
346
+ const b = 200 * (y - z);
347
+ return [l, a, b];
348
+ };
349
+ convert.hsl.rgb = function(hsl) {
350
+ const h = hsl[0] / 360;
351
+ const s = hsl[1] / 100;
352
+ const l = hsl[2] / 100;
353
+ let t2;
354
+ let t3;
355
+ let val;
356
+ if (s === 0) {
357
+ val = l * 255;
358
+ return [val, val, val];
359
+ }
360
+ if (l < 0.5) {
361
+ t2 = l * (1 + s);
362
+ } else {
363
+ t2 = l + s - l * s;
364
+ }
365
+ const t1 = 2 * l - t2;
366
+ const rgb = [0, 0, 0];
367
+ for (let i = 0; i < 3; i++) {
368
+ t3 = h + 1 / 3 * -(i - 1);
369
+ if (t3 < 0) {
370
+ t3++;
371
+ }
372
+ if (t3 > 1) {
373
+ t3--;
374
+ }
375
+ if (6 * t3 < 1) {
376
+ val = t1 + (t2 - t1) * 6 * t3;
377
+ } else if (2 * t3 < 1) {
378
+ val = t2;
379
+ } else if (3 * t3 < 2) {
380
+ val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
381
+ } else {
382
+ val = t1;
383
+ }
384
+ rgb[i] = val * 255;
385
+ }
386
+ return rgb;
387
+ };
388
+ convert.hsl.hsv = function(hsl) {
389
+ const h = hsl[0];
390
+ let s = hsl[1] / 100;
391
+ let l = hsl[2] / 100;
392
+ let smin = s;
393
+ const lmin = Math.max(l, 0.01);
394
+ l *= 2;
395
+ s *= l <= 1 ? l : 2 - l;
396
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
397
+ const v = (l + s) / 2;
398
+ const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
399
+ return [h, sv * 100, v * 100];
400
+ };
401
+ convert.hsv.rgb = function(hsv) {
402
+ const h = hsv[0] / 60;
403
+ const s = hsv[1] / 100;
404
+ let v = hsv[2] / 100;
405
+ const hi = Math.floor(h) % 6;
406
+ const f = h - Math.floor(h);
407
+ const p = 255 * v * (1 - s);
408
+ const q = 255 * v * (1 - s * f);
409
+ const t = 255 * v * (1 - s * (1 - f));
410
+ v *= 255;
411
+ switch (hi) {
412
+ case 0:
413
+ return [v, t, p];
414
+ case 1:
415
+ return [q, v, p];
416
+ case 2:
417
+ return [p, v, t];
418
+ case 3:
419
+ return [p, q, v];
420
+ case 4:
421
+ return [t, p, v];
422
+ case 5:
423
+ return [v, p, q];
424
+ }
425
+ };
426
+ convert.hsv.hsl = function(hsv) {
427
+ const h = hsv[0];
428
+ const s = hsv[1] / 100;
429
+ const v = hsv[2] / 100;
430
+ const vmin = Math.max(v, 0.01);
431
+ let sl;
432
+ let l;
433
+ l = (2 - s) * v;
434
+ const lmin = (2 - s) * vmin;
435
+ sl = s * vmin;
436
+ sl /= lmin <= 1 ? lmin : 2 - lmin;
437
+ sl = sl || 0;
438
+ l /= 2;
439
+ return [h, sl * 100, l * 100];
440
+ };
441
+ convert.hwb.rgb = function(hwb) {
442
+ const h = hwb[0] / 360;
443
+ let wh = hwb[1] / 100;
444
+ let bl = hwb[2] / 100;
445
+ const ratio = wh + bl;
446
+ let f;
447
+ if (ratio > 1) {
448
+ wh /= ratio;
449
+ bl /= ratio;
450
+ }
451
+ const i = Math.floor(6 * h);
452
+ const v = 1 - bl;
453
+ f = 6 * h - i;
454
+ if ((i & 1) !== 0) {
455
+ f = 1 - f;
456
+ }
457
+ const n = wh + f * (v - wh);
458
+ let r;
459
+ let g;
460
+ let b;
461
+ switch (i) {
462
+ default:
463
+ case 6:
464
+ case 0:
465
+ r = v;
466
+ g = n;
467
+ b = wh;
468
+ break;
469
+ case 1:
470
+ r = n;
471
+ g = v;
472
+ b = wh;
473
+ break;
474
+ case 2:
475
+ r = wh;
476
+ g = v;
477
+ b = n;
478
+ break;
479
+ case 3:
480
+ r = wh;
481
+ g = n;
482
+ b = v;
483
+ break;
484
+ case 4:
485
+ r = n;
486
+ g = wh;
487
+ b = v;
488
+ break;
489
+ case 5:
490
+ r = v;
491
+ g = wh;
492
+ b = n;
493
+ break;
494
+ }
495
+ return [r * 255, g * 255, b * 255];
496
+ };
497
+ convert.cmyk.rgb = function(cmyk) {
498
+ const c = cmyk[0] / 100;
499
+ const m = cmyk[1] / 100;
500
+ const y = cmyk[2] / 100;
501
+ const k = cmyk[3] / 100;
502
+ const r = 1 - Math.min(1, c * (1 - k) + k);
503
+ const g = 1 - Math.min(1, m * (1 - k) + k);
504
+ const b = 1 - Math.min(1, y * (1 - k) + k);
505
+ return [r * 255, g * 255, b * 255];
506
+ };
507
+ convert.xyz.rgb = function(xyz) {
508
+ const x = xyz[0] / 100;
509
+ const y = xyz[1] / 100;
510
+ const z = xyz[2] / 100;
511
+ let r;
512
+ let g;
513
+ let b;
514
+ r = x * 3.2406 + y * -1.5372 + z * -0.4986;
515
+ g = x * -0.9689 + y * 1.8758 + z * 0.0415;
516
+ b = x * 0.0557 + y * -0.204 + z * 1.057;
517
+ r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
518
+ g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
519
+ b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
520
+ r = Math.min(Math.max(0, r), 1);
521
+ g = Math.min(Math.max(0, g), 1);
522
+ b = Math.min(Math.max(0, b), 1);
523
+ return [r * 255, g * 255, b * 255];
524
+ };
525
+ convert.xyz.lab = function(xyz) {
526
+ let x = xyz[0];
527
+ let y = xyz[1];
528
+ let z = xyz[2];
529
+ x /= 95.047;
530
+ y /= 100;
531
+ z /= 108.883;
532
+ x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
533
+ y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
534
+ z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
535
+ const l = 116 * y - 16;
536
+ const a = 500 * (x - y);
537
+ const b = 200 * (y - z);
538
+ return [l, a, b];
539
+ };
540
+ convert.lab.xyz = function(lab) {
541
+ const l = lab[0];
542
+ const a = lab[1];
543
+ const b = lab[2];
544
+ let x;
545
+ let y;
546
+ let z;
547
+ y = (l + 16) / 116;
548
+ x = a / 500 + y;
549
+ z = y - b / 200;
550
+ const y2 = y ** 3;
551
+ const x2 = x ** 3;
552
+ const z2 = z ** 3;
553
+ y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
554
+ x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
555
+ z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
556
+ x *= 95.047;
557
+ y *= 100;
558
+ z *= 108.883;
559
+ return [x, y, z];
560
+ };
561
+ convert.lab.lch = function(lab) {
562
+ const l = lab[0];
563
+ const a = lab[1];
564
+ const b = lab[2];
565
+ let h;
566
+ const hr = Math.atan2(b, a);
567
+ h = hr * 360 / 2 / Math.PI;
568
+ if (h < 0) {
569
+ h += 360;
570
+ }
571
+ const c = Math.sqrt(a * a + b * b);
572
+ return [l, c, h];
573
+ };
574
+ convert.lch.lab = function(lch) {
575
+ const l = lch[0];
576
+ const c = lch[1];
577
+ const h = lch[2];
578
+ const hr = h / 360 * 2 * Math.PI;
579
+ const a = c * Math.cos(hr);
580
+ const b = c * Math.sin(hr);
581
+ return [l, a, b];
582
+ };
583
+ convert.rgb.ansi16 = function(args, saturation = null) {
584
+ const [r, g, b] = args;
585
+ let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
586
+ value = Math.round(value / 50);
587
+ if (value === 0) {
588
+ return 30;
589
+ }
590
+ let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
591
+ if (value === 2) {
592
+ ansi += 60;
593
+ }
594
+ return ansi;
595
+ };
596
+ convert.hsv.ansi16 = function(args) {
597
+ return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
598
+ };
599
+ convert.rgb.ansi256 = function(args) {
600
+ const r = args[0];
601
+ const g = args[1];
602
+ const b = args[2];
603
+ if (r === g && g === b) {
604
+ if (r < 8) {
605
+ return 16;
606
+ }
607
+ if (r > 248) {
608
+ return 231;
609
+ }
610
+ return Math.round((r - 8) / 247 * 24) + 232;
611
+ }
612
+ const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
613
+ return ansi;
614
+ };
615
+ convert.ansi16.rgb = function(args) {
616
+ let color = args % 10;
617
+ if (color === 0 || color === 7) {
618
+ if (args > 50) {
619
+ color += 3.5;
620
+ }
621
+ color = color / 10.5 * 255;
622
+ return [color, color, color];
623
+ }
624
+ const mult = (~~(args > 50) + 1) * 0.5;
625
+ const r = (color & 1) * mult * 255;
626
+ const g = (color >> 1 & 1) * mult * 255;
627
+ const b = (color >> 2 & 1) * mult * 255;
628
+ return [r, g, b];
629
+ };
630
+ convert.ansi256.rgb = function(args) {
631
+ if (args >= 232) {
632
+ const c = (args - 232) * 10 + 8;
633
+ return [c, c, c];
634
+ }
635
+ args -= 16;
636
+ let rem;
637
+ const r = Math.floor(args / 36) / 5 * 255;
638
+ const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
639
+ const b = rem % 6 / 5 * 255;
640
+ return [r, g, b];
641
+ };
642
+ convert.rgb.hex = function(args) {
643
+ const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
644
+ const string = integer.toString(16).toUpperCase();
645
+ return "000000".substring(string.length) + string;
646
+ };
647
+ convert.hex.rgb = function(args) {
648
+ const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
649
+ if (!match) {
650
+ return [0, 0, 0];
651
+ }
652
+ let colorString = match[0];
653
+ if (match[0].length === 3) {
654
+ colorString = colorString.split("").map((char) => {
655
+ return char + char;
656
+ }).join("");
657
+ }
658
+ const integer = parseInt(colorString, 16);
659
+ const r = integer >> 16 & 255;
660
+ const g = integer >> 8 & 255;
661
+ const b = integer & 255;
662
+ return [r, g, b];
663
+ };
664
+ convert.rgb.hcg = function(rgb) {
665
+ const r = rgb[0] / 255;
666
+ const g = rgb[1] / 255;
667
+ const b = rgb[2] / 255;
668
+ const max = Math.max(Math.max(r, g), b);
669
+ const min = Math.min(Math.min(r, g), b);
670
+ const chroma = max - min;
671
+ let grayscale;
672
+ let hue;
673
+ if (chroma < 1) {
674
+ grayscale = min / (1 - chroma);
675
+ } else {
676
+ grayscale = 0;
677
+ }
678
+ if (chroma <= 0) {
679
+ hue = 0;
680
+ } else if (max === r) {
681
+ hue = (g - b) / chroma % 6;
682
+ } else if (max === g) {
683
+ hue = 2 + (b - r) / chroma;
684
+ } else {
685
+ hue = 4 + (r - g) / chroma;
686
+ }
687
+ hue /= 6;
688
+ hue %= 1;
689
+ return [hue * 360, chroma * 100, grayscale * 100];
690
+ };
691
+ convert.hsl.hcg = function(hsl) {
692
+ const s = hsl[1] / 100;
693
+ const l = hsl[2] / 100;
694
+ const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
695
+ let f = 0;
696
+ if (c < 1) {
697
+ f = (l - 0.5 * c) / (1 - c);
698
+ }
699
+ return [hsl[0], c * 100, f * 100];
700
+ };
701
+ convert.hsv.hcg = function(hsv) {
702
+ const s = hsv[1] / 100;
703
+ const v = hsv[2] / 100;
704
+ const c = s * v;
705
+ let f = 0;
706
+ if (c < 1) {
707
+ f = (v - c) / (1 - c);
708
+ }
709
+ return [hsv[0], c * 100, f * 100];
710
+ };
711
+ convert.hcg.rgb = function(hcg) {
712
+ const h = hcg[0] / 360;
713
+ const c = hcg[1] / 100;
714
+ const g = hcg[2] / 100;
715
+ if (c === 0) {
716
+ return [g * 255, g * 255, g * 255];
717
+ }
718
+ const pure = [0, 0, 0];
719
+ const hi = h % 1 * 6;
720
+ const v = hi % 1;
721
+ const w = 1 - v;
722
+ let mg = 0;
723
+ switch (Math.floor(hi)) {
724
+ case 0:
725
+ pure[0] = 1;
726
+ pure[1] = v;
727
+ pure[2] = 0;
728
+ break;
729
+ case 1:
730
+ pure[0] = w;
731
+ pure[1] = 1;
732
+ pure[2] = 0;
733
+ break;
734
+ case 2:
735
+ pure[0] = 0;
736
+ pure[1] = 1;
737
+ pure[2] = v;
738
+ break;
739
+ case 3:
740
+ pure[0] = 0;
741
+ pure[1] = w;
742
+ pure[2] = 1;
743
+ break;
744
+ case 4:
745
+ pure[0] = v;
746
+ pure[1] = 0;
747
+ pure[2] = 1;
748
+ break;
749
+ default:
750
+ pure[0] = 1;
751
+ pure[1] = 0;
752
+ pure[2] = w;
753
+ }
754
+ mg = (1 - c) * g;
755
+ return [
756
+ (c * pure[0] + mg) * 255,
757
+ (c * pure[1] + mg) * 255,
758
+ (c * pure[2] + mg) * 255
759
+ ];
760
+ };
761
+ convert.hcg.hsv = function(hcg) {
762
+ const c = hcg[1] / 100;
763
+ const g = hcg[2] / 100;
764
+ const v = c + g * (1 - c);
765
+ let f = 0;
766
+ if (v > 0) {
767
+ f = c / v;
768
+ }
769
+ return [hcg[0], f * 100, v * 100];
770
+ };
771
+ convert.hcg.hsl = function(hcg) {
772
+ const c = hcg[1] / 100;
773
+ const g = hcg[2] / 100;
774
+ const l = g * (1 - c) + 0.5 * c;
775
+ let s = 0;
776
+ if (l > 0 && l < 0.5) {
777
+ s = c / (2 * l);
778
+ } else if (l >= 0.5 && l < 1) {
779
+ s = c / (2 * (1 - l));
780
+ }
781
+ return [hcg[0], s * 100, l * 100];
782
+ };
783
+ convert.hcg.hwb = function(hcg) {
784
+ const c = hcg[1] / 100;
785
+ const g = hcg[2] / 100;
786
+ const v = c + g * (1 - c);
787
+ return [hcg[0], (v - c) * 100, (1 - v) * 100];
788
+ };
789
+ convert.hwb.hcg = function(hwb) {
790
+ const w = hwb[1] / 100;
791
+ const b = hwb[2] / 100;
792
+ const v = 1 - b;
793
+ const c = v - w;
794
+ let g = 0;
795
+ if (c < 1) {
796
+ g = (v - c) / (1 - c);
797
+ }
798
+ return [hwb[0], c * 100, g * 100];
799
+ };
800
+ convert.apple.rgb = function(apple) {
801
+ return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
802
+ };
803
+ convert.rgb.apple = function(rgb) {
804
+ return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
805
+ };
806
+ convert.gray.rgb = function(args) {
807
+ return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
808
+ };
809
+ convert.gray.hsl = function(args) {
810
+ return [0, 0, args[0]];
811
+ };
812
+ convert.gray.hsv = convert.gray.hsl;
813
+ convert.gray.hwb = function(gray) {
814
+ return [0, 100, gray[0]];
815
+ };
816
+ convert.gray.cmyk = function(gray) {
817
+ return [0, 0, 0, gray[0]];
818
+ };
819
+ convert.gray.lab = function(gray) {
820
+ return [gray[0], 0, 0];
821
+ };
822
+ convert.gray.hex = function(gray) {
823
+ const val = Math.round(gray[0] / 100 * 255) & 255;
824
+ const integer = (val << 16) + (val << 8) + val;
825
+ const string = integer.toString(16).toUpperCase();
826
+ return "000000".substring(string.length) + string;
827
+ };
828
+ convert.rgb.gray = function(rgb) {
829
+ const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
830
+ return [val / 255 * 100];
831
+ };
832
+ }
833
+ });
834
+
835
+ // node_modules/@commitlint/format/node_modules/color-convert/route.js
836
+ var require_route = __commonJS({
837
+ "node_modules/@commitlint/format/node_modules/color-convert/route.js"(exports2, module2) {
838
+ var conversions = require_conversions();
839
+ function buildGraph() {
840
+ const graph = {};
841
+ const models = Object.keys(conversions);
842
+ for (let len = models.length, i = 0; i < len; i++) {
843
+ graph[models[i]] = {
844
+ // http://jsperf.com/1-vs-infinity
845
+ // micro-opt, but this is simple.
846
+ distance: -1,
847
+ parent: null
848
+ };
849
+ }
850
+ return graph;
851
+ }
852
+ function deriveBFS(fromModel) {
853
+ const graph = buildGraph();
854
+ const queue = [fromModel];
855
+ graph[fromModel].distance = 0;
856
+ while (queue.length) {
857
+ const current = queue.pop();
858
+ const adjacents = Object.keys(conversions[current]);
859
+ for (let len = adjacents.length, i = 0; i < len; i++) {
860
+ const adjacent = adjacents[i];
861
+ const node = graph[adjacent];
862
+ if (node.distance === -1) {
863
+ node.distance = graph[current].distance + 1;
864
+ node.parent = current;
865
+ queue.unshift(adjacent);
866
+ }
867
+ }
868
+ }
869
+ return graph;
870
+ }
871
+ function link(from, to) {
872
+ return function(args) {
873
+ return to(from(args));
874
+ };
875
+ }
876
+ function wrapConversion(toModel, graph) {
877
+ const path = [graph[toModel].parent, toModel];
878
+ let fn = conversions[graph[toModel].parent][toModel];
879
+ let cur = graph[toModel].parent;
880
+ while (graph[cur].parent) {
881
+ path.unshift(graph[cur].parent);
882
+ fn = link(conversions[graph[cur].parent][cur], fn);
883
+ cur = graph[cur].parent;
884
+ }
885
+ fn.conversion = path;
886
+ return fn;
887
+ }
888
+ module2.exports = function(fromModel) {
889
+ const graph = deriveBFS(fromModel);
890
+ const conversion = {};
891
+ const models = Object.keys(graph);
892
+ for (let len = models.length, i = 0; i < len; i++) {
893
+ const toModel = models[i];
894
+ const node = graph[toModel];
895
+ if (node.parent === null) {
896
+ continue;
897
+ }
898
+ conversion[toModel] = wrapConversion(toModel, graph);
899
+ }
900
+ return conversion;
901
+ };
902
+ }
903
+ });
904
+
905
+ // node_modules/@commitlint/format/node_modules/color-convert/index.js
906
+ var require_color_convert = __commonJS({
907
+ "node_modules/@commitlint/format/node_modules/color-convert/index.js"(exports2, module2) {
908
+ var conversions = require_conversions();
909
+ var route = require_route();
910
+ var convert = {};
911
+ var models = Object.keys(conversions);
912
+ function wrapRaw(fn) {
913
+ const wrappedFn = function(...args) {
914
+ const arg0 = args[0];
915
+ if (arg0 === void 0 || arg0 === null) {
916
+ return arg0;
917
+ }
918
+ if (arg0.length > 1) {
919
+ args = arg0;
920
+ }
921
+ return fn(args);
922
+ };
923
+ if ("conversion" in fn) {
924
+ wrappedFn.conversion = fn.conversion;
925
+ }
926
+ return wrappedFn;
927
+ }
928
+ function wrapRounded(fn) {
929
+ const wrappedFn = function(...args) {
930
+ const arg0 = args[0];
931
+ if (arg0 === void 0 || arg0 === null) {
932
+ return arg0;
933
+ }
934
+ if (arg0.length > 1) {
935
+ args = arg0;
936
+ }
937
+ const result = fn(args);
938
+ if (typeof result === "object") {
939
+ for (let len = result.length, i = 0; i < len; i++) {
940
+ result[i] = Math.round(result[i]);
941
+ }
942
+ }
943
+ return result;
944
+ };
945
+ if ("conversion" in fn) {
946
+ wrappedFn.conversion = fn.conversion;
947
+ }
948
+ return wrappedFn;
949
+ }
950
+ models.forEach((fromModel) => {
951
+ convert[fromModel] = {};
952
+ Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
953
+ Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
954
+ const routes = route(fromModel);
955
+ const routeModels = Object.keys(routes);
956
+ routeModels.forEach((toModel) => {
957
+ const fn = routes[toModel];
958
+ convert[fromModel][toModel] = wrapRounded(fn);
959
+ convert[fromModel][toModel].raw = wrapRaw(fn);
960
+ });
961
+ });
962
+ module2.exports = convert;
963
+ }
964
+ });
965
+
966
+ // node_modules/@commitlint/format/node_modules/ansi-styles/index.js
967
+ var require_ansi_styles = __commonJS({
968
+ "node_modules/@commitlint/format/node_modules/ansi-styles/index.js"(exports2, module2) {
969
+ "use strict";
970
+ var wrapAnsi16 = (fn, offset) => (...args) => {
971
+ const code = fn(...args);
972
+ return `\x1B[${code + offset}m`;
973
+ };
974
+ var wrapAnsi256 = (fn, offset) => (...args) => {
975
+ const code = fn(...args);
976
+ return `\x1B[${38 + offset};5;${code}m`;
977
+ };
978
+ var wrapAnsi16m = (fn, offset) => (...args) => {
979
+ const rgb = fn(...args);
980
+ return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
981
+ };
982
+ var ansi2ansi = (n) => n;
983
+ var rgb2rgb = (r, g, b) => [r, g, b];
984
+ var setLazyProperty = (object, property, get) => {
985
+ Object.defineProperty(object, property, {
986
+ get: () => {
987
+ const value = get();
988
+ Object.defineProperty(object, property, {
989
+ value,
990
+ enumerable: true,
991
+ configurable: true
992
+ });
993
+ return value;
994
+ },
995
+ enumerable: true,
996
+ configurable: true
997
+ });
998
+ };
999
+ var colorConvert;
1000
+ var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
1001
+ if (colorConvert === void 0) {
1002
+ colorConvert = require_color_convert();
1003
+ }
1004
+ const offset = isBackground ? 10 : 0;
1005
+ const styles = {};
1006
+ for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
1007
+ const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
1008
+ if (sourceSpace === targetSpace) {
1009
+ styles[name] = wrap(identity, offset);
1010
+ } else if (typeof suite === "object") {
1011
+ styles[name] = wrap(suite[targetSpace], offset);
1012
+ }
1013
+ }
1014
+ return styles;
1015
+ };
1016
+ function assembleStyles() {
1017
+ const codes = /* @__PURE__ */ new Map();
1018
+ const styles = {
1019
+ modifier: {
1020
+ reset: [0, 0],
1021
+ // 21 isn't widely supported and 22 does the same thing
1022
+ bold: [1, 22],
1023
+ dim: [2, 22],
1024
+ italic: [3, 23],
1025
+ underline: [4, 24],
1026
+ inverse: [7, 27],
1027
+ hidden: [8, 28],
1028
+ strikethrough: [9, 29]
1029
+ },
1030
+ color: {
1031
+ black: [30, 39],
1032
+ red: [31, 39],
1033
+ green: [32, 39],
1034
+ yellow: [33, 39],
1035
+ blue: [34, 39],
1036
+ magenta: [35, 39],
1037
+ cyan: [36, 39],
1038
+ white: [37, 39],
1039
+ // Bright color
1040
+ blackBright: [90, 39],
1041
+ redBright: [91, 39],
1042
+ greenBright: [92, 39],
1043
+ yellowBright: [93, 39],
1044
+ blueBright: [94, 39],
1045
+ magentaBright: [95, 39],
1046
+ cyanBright: [96, 39],
1047
+ whiteBright: [97, 39]
1048
+ },
1049
+ bgColor: {
1050
+ bgBlack: [40, 49],
1051
+ bgRed: [41, 49],
1052
+ bgGreen: [42, 49],
1053
+ bgYellow: [43, 49],
1054
+ bgBlue: [44, 49],
1055
+ bgMagenta: [45, 49],
1056
+ bgCyan: [46, 49],
1057
+ bgWhite: [47, 49],
1058
+ // Bright color
1059
+ bgBlackBright: [100, 49],
1060
+ bgRedBright: [101, 49],
1061
+ bgGreenBright: [102, 49],
1062
+ bgYellowBright: [103, 49],
1063
+ bgBlueBright: [104, 49],
1064
+ bgMagentaBright: [105, 49],
1065
+ bgCyanBright: [106, 49],
1066
+ bgWhiteBright: [107, 49]
1067
+ }
1068
+ };
1069
+ styles.color.gray = styles.color.blackBright;
1070
+ styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
1071
+ styles.color.grey = styles.color.blackBright;
1072
+ styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
1073
+ for (const [groupName, group] of Object.entries(styles)) {
1074
+ for (const [styleName, style] of Object.entries(group)) {
1075
+ styles[styleName] = {
1076
+ open: `\x1B[${style[0]}m`,
1077
+ close: `\x1B[${style[1]}m`
1078
+ };
1079
+ group[styleName] = styles[styleName];
1080
+ codes.set(style[0], style[1]);
1081
+ }
1082
+ Object.defineProperty(styles, groupName, {
1083
+ value: group,
1084
+ enumerable: false
1085
+ });
1086
+ }
1087
+ Object.defineProperty(styles, "codes", {
1088
+ value: codes,
1089
+ enumerable: false
1090
+ });
1091
+ styles.color.close = "\x1B[39m";
1092
+ styles.bgColor.close = "\x1B[49m";
1093
+ setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
1094
+ setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
1095
+ setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
1096
+ setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
1097
+ setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
1098
+ setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
1099
+ return styles;
1100
+ }
1101
+ Object.defineProperty(module2, "exports", {
1102
+ enumerable: true,
1103
+ get: assembleStyles
1104
+ });
1105
+ }
1106
+ });
1107
+
1108
+ // node_modules/@commitlint/format/node_modules/has-flag/index.js
1109
+ var require_has_flag = __commonJS({
1110
+ "node_modules/@commitlint/format/node_modules/has-flag/index.js"(exports2, module2) {
1111
+ "use strict";
1112
+ module2.exports = (flag, argv = process.argv) => {
1113
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
1114
+ const position = argv.indexOf(prefix + flag);
1115
+ const terminatorPosition = argv.indexOf("--");
1116
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
1117
+ };
1118
+ }
1119
+ });
1120
+
1121
+ // node_modules/@commitlint/format/node_modules/supports-color/index.js
1122
+ var require_supports_color = __commonJS({
1123
+ "node_modules/@commitlint/format/node_modules/supports-color/index.js"(exports2, module2) {
1124
+ "use strict";
1125
+ var os = require("os");
1126
+ var tty = require("tty");
1127
+ var hasFlag = require_has_flag();
1128
+ var { env } = process;
1129
+ var forceColor;
1130
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
1131
+ forceColor = 0;
1132
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
1133
+ forceColor = 1;
1134
+ }
1135
+ if ("FORCE_COLOR" in env) {
1136
+ if (env.FORCE_COLOR === "true") {
1137
+ forceColor = 1;
1138
+ } else if (env.FORCE_COLOR === "false") {
1139
+ forceColor = 0;
1140
+ } else {
1141
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
1142
+ }
1143
+ }
1144
+ function translateLevel(level) {
1145
+ if (level === 0) {
1146
+ return false;
1147
+ }
1148
+ return {
1149
+ level,
1150
+ hasBasic: true,
1151
+ has256: level >= 2,
1152
+ has16m: level >= 3
1153
+ };
1154
+ }
1155
+ function supportsColor(haveStream, streamIsTTY) {
1156
+ if (forceColor === 0) {
1157
+ return 0;
1158
+ }
1159
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
1160
+ return 3;
1161
+ }
1162
+ if (hasFlag("color=256")) {
1163
+ return 2;
1164
+ }
1165
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
1166
+ return 0;
1167
+ }
1168
+ const min = forceColor || 0;
1169
+ if (env.TERM === "dumb") {
1170
+ return min;
1171
+ }
1172
+ if (process.platform === "win32") {
1173
+ const osRelease = os.release().split(".");
1174
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
1175
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
1176
+ }
1177
+ return 1;
1178
+ }
1179
+ if ("CI" in env) {
1180
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
1181
+ return 1;
1182
+ }
1183
+ return min;
1184
+ }
1185
+ if ("TEAMCITY_VERSION" in env) {
1186
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
1187
+ }
1188
+ if (env.COLORTERM === "truecolor") {
1189
+ return 3;
1190
+ }
1191
+ if ("TERM_PROGRAM" in env) {
1192
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
1193
+ switch (env.TERM_PROGRAM) {
1194
+ case "iTerm.app":
1195
+ return version >= 3 ? 3 : 2;
1196
+ case "Apple_Terminal":
1197
+ return 2;
1198
+ }
1199
+ }
1200
+ if (/-256(color)?$/i.test(env.TERM)) {
1201
+ return 2;
1202
+ }
1203
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
1204
+ return 1;
1205
+ }
1206
+ if ("COLORTERM" in env) {
1207
+ return 1;
1208
+ }
1209
+ return min;
1210
+ }
1211
+ function getSupportLevel(stream) {
1212
+ const level = supportsColor(stream, stream && stream.isTTY);
1213
+ return translateLevel(level);
1214
+ }
1215
+ module2.exports = {
1216
+ supportsColor: getSupportLevel,
1217
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
1218
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
1219
+ };
1220
+ }
1221
+ });
1222
+
1223
+ // node_modules/@commitlint/format/node_modules/chalk/source/util.js
1224
+ var require_util = __commonJS({
1225
+ "node_modules/@commitlint/format/node_modules/chalk/source/util.js"(exports2, module2) {
1226
+ "use strict";
1227
+ var stringReplaceAll = (string, substring, replacer) => {
1228
+ let index = string.indexOf(substring);
1229
+ if (index === -1) {
1230
+ return string;
1231
+ }
1232
+ const substringLength = substring.length;
1233
+ let endIndex = 0;
1234
+ let returnValue = "";
1235
+ do {
1236
+ returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
1237
+ endIndex = index + substringLength;
1238
+ index = string.indexOf(substring, endIndex);
1239
+ } while (index !== -1);
1240
+ returnValue += string.substr(endIndex);
1241
+ return returnValue;
1242
+ };
1243
+ var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
1244
+ let endIndex = 0;
1245
+ let returnValue = "";
1246
+ do {
1247
+ const gotCR = string[index - 1] === "\r";
1248
+ returnValue += string.substr(endIndex, (gotCR ? index - 1 : index) - endIndex) + prefix + (gotCR ? "\r\n" : "\n") + postfix;
1249
+ endIndex = index + 1;
1250
+ index = string.indexOf("\n", endIndex);
1251
+ } while (index !== -1);
1252
+ returnValue += string.substr(endIndex);
1253
+ return returnValue;
1254
+ };
1255
+ module2.exports = {
1256
+ stringReplaceAll,
1257
+ stringEncaseCRLFWithFirstIndex
1258
+ };
1259
+ }
1260
+ });
1261
+
1262
+ // node_modules/@commitlint/format/node_modules/chalk/source/templates.js
1263
+ var require_templates = __commonJS({
1264
+ "node_modules/@commitlint/format/node_modules/chalk/source/templates.js"(exports2, module2) {
1265
+ "use strict";
1266
+ 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;
1267
+ var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
1268
+ var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
1269
+ var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
1270
+ var ESCAPES = /* @__PURE__ */ new Map([
1271
+ ["n", "\n"],
1272
+ ["r", "\r"],
1273
+ ["t", " "],
1274
+ ["b", "\b"],
1275
+ ["f", "\f"],
1276
+ ["v", "\v"],
1277
+ ["0", "\0"],
1278
+ ["\\", "\\"],
1279
+ ["e", "\x1B"],
1280
+ ["a", "\x07"]
1281
+ ]);
1282
+ function unescape(c) {
1283
+ const u = c[0] === "u";
1284
+ const bracket = c[1] === "{";
1285
+ if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
1286
+ return String.fromCharCode(parseInt(c.slice(1), 16));
1287
+ }
1288
+ if (u && bracket) {
1289
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
1290
+ }
1291
+ return ESCAPES.get(c) || c;
1292
+ }
1293
+ function parseArguments(name, arguments_) {
1294
+ const results = [];
1295
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
1296
+ let matches;
1297
+ for (const chunk of chunks) {
1298
+ const number = Number(chunk);
1299
+ if (!Number.isNaN(number)) {
1300
+ results.push(number);
1301
+ } else if (matches = chunk.match(STRING_REGEX)) {
1302
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
1303
+ } else {
1304
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
1305
+ }
1306
+ }
1307
+ return results;
1308
+ }
1309
+ function parseStyle(style) {
1310
+ STYLE_REGEX.lastIndex = 0;
1311
+ const results = [];
1312
+ let matches;
1313
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
1314
+ const name = matches[1];
1315
+ if (matches[2]) {
1316
+ const args = parseArguments(name, matches[2]);
1317
+ results.push([name].concat(args));
1318
+ } else {
1319
+ results.push([name]);
1320
+ }
1321
+ }
1322
+ return results;
1323
+ }
1324
+ function buildStyle(chalk, styles) {
1325
+ const enabled = {};
1326
+ for (const layer of styles) {
1327
+ for (const style of layer.styles) {
1328
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
1329
+ }
1330
+ }
1331
+ let current = chalk;
1332
+ for (const [styleName, styles2] of Object.entries(enabled)) {
1333
+ if (!Array.isArray(styles2)) {
1334
+ continue;
1335
+ }
1336
+ if (!(styleName in current)) {
1337
+ throw new Error(`Unknown Chalk style: ${styleName}`);
1338
+ }
1339
+ current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
1340
+ }
1341
+ return current;
1342
+ }
1343
+ module2.exports = (chalk, temporary) => {
1344
+ const styles = [];
1345
+ const chunks = [];
1346
+ let chunk = [];
1347
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
1348
+ if (escapeCharacter) {
1349
+ chunk.push(unescape(escapeCharacter));
1350
+ } else if (style) {
1351
+ const string = chunk.join("");
1352
+ chunk = [];
1353
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
1354
+ styles.push({ inverse, styles: parseStyle(style) });
1355
+ } else if (close) {
1356
+ if (styles.length === 0) {
1357
+ throw new Error("Found extraneous } in Chalk template literal");
1358
+ }
1359
+ chunks.push(buildStyle(chalk, styles)(chunk.join("")));
1360
+ chunk = [];
1361
+ styles.pop();
1362
+ } else {
1363
+ chunk.push(character);
1364
+ }
1365
+ });
1366
+ chunks.push(chunk.join(""));
1367
+ if (styles.length > 0) {
1368
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
1369
+ throw new Error(errMessage);
1370
+ }
1371
+ return chunks.join("");
1372
+ };
1373
+ }
1374
+ });
1375
+
1376
+ // node_modules/@commitlint/format/node_modules/chalk/source/index.js
1377
+ var require_source = __commonJS({
1378
+ "node_modules/@commitlint/format/node_modules/chalk/source/index.js"(exports2, module2) {
1379
+ "use strict";
1380
+ var ansiStyles = require_ansi_styles();
1381
+ var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
1382
+ var {
1383
+ stringReplaceAll,
1384
+ stringEncaseCRLFWithFirstIndex
1385
+ } = require_util();
1386
+ var { isArray } = Array;
1387
+ var levelMapping = [
1388
+ "ansi",
1389
+ "ansi",
1390
+ "ansi256",
1391
+ "ansi16m"
1392
+ ];
1393
+ var styles = /* @__PURE__ */ Object.create(null);
1394
+ var applyOptions = (object, options = {}) => {
1395
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
1396
+ throw new Error("The `level` option should be an integer from 0 to 3");
1397
+ }
1398
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
1399
+ object.level = options.level === void 0 ? colorLevel : options.level;
1400
+ };
1401
+ var ChalkClass = class {
1402
+ constructor(options) {
1403
+ return chalkFactory(options);
1404
+ }
1405
+ };
1406
+ var chalkFactory = (options) => {
1407
+ const chalk2 = {};
1408
+ applyOptions(chalk2, options);
1409
+ chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
1410
+ Object.setPrototypeOf(chalk2, Chalk.prototype);
1411
+ Object.setPrototypeOf(chalk2.template, chalk2);
1412
+ chalk2.template.constructor = () => {
1413
+ throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
1414
+ };
1415
+ chalk2.template.Instance = ChalkClass;
1416
+ return chalk2.template;
1417
+ };
1418
+ function Chalk(options) {
1419
+ return chalkFactory(options);
1420
+ }
1421
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
1422
+ styles[styleName] = {
1423
+ get() {
1424
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
1425
+ Object.defineProperty(this, styleName, { value: builder });
1426
+ return builder;
1427
+ }
1428
+ };
1429
+ }
1430
+ styles.visible = {
1431
+ get() {
1432
+ const builder = createBuilder(this, this._styler, true);
1433
+ Object.defineProperty(this, "visible", { value: builder });
1434
+ return builder;
1435
+ }
1436
+ };
1437
+ var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
1438
+ for (const model of usedModels) {
1439
+ styles[model] = {
1440
+ get() {
1441
+ const { level } = this;
1442
+ return function(...arguments_) {
1443
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
1444
+ return createBuilder(this, styler, this._isEmpty);
1445
+ };
1446
+ }
1447
+ };
1448
+ }
1449
+ for (const model of usedModels) {
1450
+ const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
1451
+ styles[bgModel] = {
1452
+ get() {
1453
+ const { level } = this;
1454
+ return function(...arguments_) {
1455
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
1456
+ return createBuilder(this, styler, this._isEmpty);
1457
+ };
1458
+ }
1459
+ };
1460
+ }
1461
+ var proto = Object.defineProperties(() => {
1462
+ }, {
1463
+ ...styles,
1464
+ level: {
1465
+ enumerable: true,
1466
+ get() {
1467
+ return this._generator.level;
1468
+ },
1469
+ set(level) {
1470
+ this._generator.level = level;
1471
+ }
1472
+ }
1473
+ });
1474
+ var createStyler = (open, close, parent) => {
1475
+ let openAll;
1476
+ let closeAll;
1477
+ if (parent === void 0) {
1478
+ openAll = open;
1479
+ closeAll = close;
1480
+ } else {
1481
+ openAll = parent.openAll + open;
1482
+ closeAll = close + parent.closeAll;
1483
+ }
1484
+ return {
1485
+ open,
1486
+ close,
1487
+ openAll,
1488
+ closeAll,
1489
+ parent
1490
+ };
1491
+ };
1492
+ var createBuilder = (self, _styler, _isEmpty) => {
1493
+ const builder = (...arguments_) => {
1494
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
1495
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
1496
+ }
1497
+ return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
1498
+ };
1499
+ Object.setPrototypeOf(builder, proto);
1500
+ builder._generator = self;
1501
+ builder._styler = _styler;
1502
+ builder._isEmpty = _isEmpty;
1503
+ return builder;
1504
+ };
1505
+ var applyStyle = (self, string) => {
1506
+ if (self.level <= 0 || !string) {
1507
+ return self._isEmpty ? "" : string;
1508
+ }
1509
+ let styler = self._styler;
1510
+ if (styler === void 0) {
1511
+ return string;
1512
+ }
1513
+ const { openAll, closeAll } = styler;
1514
+ if (string.indexOf("\x1B") !== -1) {
1515
+ while (styler !== void 0) {
1516
+ string = stringReplaceAll(string, styler.close, styler.open);
1517
+ styler = styler.parent;
1518
+ }
1519
+ }
1520
+ const lfIndex = string.indexOf("\n");
1521
+ if (lfIndex !== -1) {
1522
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
1523
+ }
1524
+ return openAll + string + closeAll;
1525
+ };
1526
+ var template;
1527
+ var chalkTag = (chalk2, ...strings) => {
1528
+ const [firstString] = strings;
1529
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
1530
+ return strings.join(" ");
1531
+ }
1532
+ const arguments_ = strings.slice(1);
1533
+ const parts = [firstString.raw[0]];
1534
+ for (let i = 1; i < firstString.length; i++) {
1535
+ parts.push(
1536
+ String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
1537
+ String(firstString.raw[i])
1538
+ );
1539
+ }
1540
+ if (template === void 0) {
1541
+ template = require_templates();
1542
+ }
1543
+ return template(chalk2, parts.join(""));
1544
+ };
1545
+ Object.defineProperties(Chalk.prototype, styles);
1546
+ var chalk = Chalk();
1547
+ chalk.supportsColor = stdoutColor;
1548
+ chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
1549
+ chalk.stderr.supportsColor = stderrColor;
1550
+ module2.exports = chalk;
1551
+ }
1552
+ });
1553
+
1554
+ // node_modules/@commitlint/format/lib/format.js
1555
+ var require_format = __commonJS({
1556
+ "node_modules/@commitlint/format/lib/format.js"(exports2) {
1557
+ "use strict";
1558
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
1559
+ return mod && mod.__esModule ? mod : { "default": mod };
1560
+ };
1561
+ Object.defineProperty(exports2, "__esModule", { value: true });
1562
+ exports2.formatResult = exports2.format = void 0;
1563
+ var chalk_1 = __importDefault(require_source());
1564
+ var DEFAULT_SIGNS = [" ", "\u26A0", "\u2716"];
1565
+ var DEFAULT_COLORS = ["white", "yellow", "red"];
1566
+ function format(report = {}, options = {}) {
1567
+ const { results = [] } = report;
1568
+ const fi = (result) => formatInput(result, options);
1569
+ const fr = (result) => formatResult(result, options);
1570
+ return results.filter((r) => Array.isArray(r.warnings) || Array.isArray(r.errors)).map((result) => [...fi(result), ...fr(result)]).reduce((acc, item) => Array.isArray(item) ? [...acc, ...item] : [...acc, item], []).join("\n");
1571
+ }
1572
+ exports2.format = format;
1573
+ function formatInput(result, options = {}) {
1574
+ const { color: enabled = true } = options;
1575
+ const { errors = [], warnings = [], input = "" } = result;
1576
+ if (!input) {
1577
+ return [""];
1578
+ }
1579
+ const sign = "\u29D7";
1580
+ const decoration = enabled ? chalk_1.default.gray(sign) : sign;
1581
+ const commitText = errors.length > 0 ? input : input.split("\n")[0];
1582
+ const decoratedInput = enabled ? chalk_1.default.bold(commitText) : commitText;
1583
+ const hasProblems = errors.length > 0 || warnings.length > 0;
1584
+ return options.verbose || hasProblems ? [`${decoration} input: ${decoratedInput}`] : [];
1585
+ }
1586
+ function formatResult(result = {}, options = {}) {
1587
+ const { signs = DEFAULT_SIGNS, colors = DEFAULT_COLORS, color: enabled = true } = options;
1588
+ const { errors = [], warnings = [] } = result;
1589
+ const problems = [...errors, ...warnings].map((problem) => {
1590
+ const sign2 = signs[problem.level] || "";
1591
+ const color2 = colors[problem.level] || "white";
1592
+ const decoration = enabled ? chalk_1.default[color2](sign2) : sign2;
1593
+ const name = enabled ? chalk_1.default.grey(`[${problem.name}]`) : `[${problem.name}]`;
1594
+ return `${decoration} ${problem.message} ${name}`;
1595
+ });
1596
+ const sign = selectSign(result);
1597
+ const color = selectColor(result);
1598
+ const deco = enabled ? chalk_1.default[color](sign) : sign;
1599
+ const el = errors.length;
1600
+ const wl = warnings.length;
1601
+ const hasProblems = problems.length > 0;
1602
+ const summary = options.verbose || hasProblems ? `${deco} found ${el} problems, ${wl} warnings` : void 0;
1603
+ const fmtSummary = enabled && typeof summary === "string" ? chalk_1.default.bold(summary) : summary;
1604
+ const help = hasProblems && options.helpUrl ? `\u24D8 Get help: ${options.helpUrl}` : void 0;
1605
+ return [
1606
+ ...problems,
1607
+ hasProblems ? "" : void 0,
1608
+ fmtSummary,
1609
+ help,
1610
+ hasProblems ? "" : void 0
1611
+ ].filter((line) => typeof line === "string");
1612
+ }
1613
+ exports2.formatResult = formatResult;
1614
+ exports2.default = format;
1615
+ function selectSign(result) {
1616
+ if ((result.errors || []).length > 0) {
1617
+ return "\u2716";
1618
+ }
1619
+ return (result.warnings || []).length ? "\u26A0" : "\u2714";
1620
+ }
1621
+ function selectColor(result) {
1622
+ if ((result.errors || []).length > 0) {
1623
+ return "red";
1624
+ }
1625
+ return (result.warnings || []).length ? "yellow" : "green";
1626
+ }
1627
+ }
1628
+ });
1629
+
1630
+ // node_modules/@commitlint/format/lib/index.js
1631
+ var require_lib = __commonJS({
1632
+ "node_modules/@commitlint/format/lib/index.js"(exports2) {
1633
+ "use strict";
1634
+ var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
1635
+ if (k2 === void 0)
1636
+ k2 = k;
1637
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1638
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1639
+ desc = { enumerable: true, get: function() {
1640
+ return m[k];
1641
+ } };
1642
+ }
1643
+ Object.defineProperty(o, k2, desc);
1644
+ } : function(o, m, k, k2) {
1645
+ if (k2 === void 0)
1646
+ k2 = k;
1647
+ o[k2] = m[k];
1648
+ });
1649
+ var __exportStar = exports2 && exports2.__exportStar || function(m, exports3) {
1650
+ for (var p in m)
1651
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p))
1652
+ __createBinding(exports3, m, p);
1653
+ };
1654
+ var __importDefault = exports2 && exports2.__importDefault || function(mod) {
1655
+ return mod && mod.__esModule ? mod : { "default": mod };
1656
+ };
1657
+ Object.defineProperty(exports2, "__esModule", { value: true });
1658
+ exports2.default = void 0;
1659
+ var format_1 = require_format();
1660
+ Object.defineProperty(exports2, "default", { enumerable: true, get: function() {
1661
+ return __importDefault(format_1).default;
1662
+ } });
1663
+ __exportStar(require_format(), exports2);
1664
+ }
1665
+ });
1666
+
1667
+ // src/formatter.ts
1668
+ module.exports = require_lib();