vite-plus 0.1.22 → 0.1.23

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 (62) hide show
  1. package/binding/index.cjs +119 -52
  2. package/binding/index.d.cts +3222 -2
  3. package/dist/agent-aSGY0osq.js +2461 -0
  4. package/dist/bin.js +6 -5
  5. package/dist/cli-truncate-CWsmbK3p.js +867 -0
  6. package/dist/{compat-OlmU9EQz.js → compat-DXZgnEyq.js} +1 -1
  7. package/dist/config/bin.js +18 -5
  8. package/dist/{constants-kDaYqyWd.js → constants-DCBWlNrn.js} +7 -2
  9. package/dist/create/bin.js +135 -64
  10. package/dist/{define-config-IMCGDS2K.d.ts → define-config-COdn-tsn.d.ts} +7 -5
  11. package/dist/define-config.cjs +1 -1
  12. package/dist/define-config.d.ts +1 -1
  13. package/dist/define-config.js +1 -1
  14. package/dist/dist-Bapm49IR.js +3 -0
  15. package/dist/{dist-owlRxmBM.js → dist-BgQuvbtq.js} +136 -110
  16. package/dist/fmt.d.ts +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/is-fullwidth-code-point-BUNlIICg.js +8 -0
  21. package/dist/lint.d.ts +1 -1
  22. package/dist/{log-update-NRrY6krx.js → log-update-lyIiuflf.js} +111 -24
  23. package/dist/migration/bin.js +71 -30
  24. package/dist/{oxlint-plugin-config-BkQeR4FR.js → oxlint-plugin-config-B89iKTKN.js} +1 -1
  25. package/dist/oxlint-plugin.d.ts +2 -4
  26. package/dist/oxlint-plugin.js +1 -1
  27. package/dist/pack-bin.js +1 -1
  28. package/dist/pack.d.ts +1 -1
  29. package/dist/{package-BoLLED6j.js → package-PmBUZ-ve.js} +2 -2
  30. package/dist/staged/bin.js +10 -10
  31. package/dist/strip-ansi-C3wrWz9t.js +853 -0
  32. package/dist/{agent-BWLe0i9g.js → tsconfig-DlUVXT3J.js} +648 -2089
  33. package/dist/version.js +5 -5
  34. package/dist/versions.js +6 -6
  35. package/dist/{workspace-Bi_9spVt.js → workspace-DElv730L.js} +13 -12
  36. package/dist/wrap-ansi-CeQuiQ31.js +2 -0
  37. package/dist/{wrap-ansi-DtUeUCjE.js → wrap-ansi-k7Dn4VtV.js} +1 -1
  38. package/docs/config/run.md +39 -4
  39. package/docs/guide/cache.md +10 -1
  40. package/docs/guide/env.md +3 -0
  41. package/docs/guide/ide-integration.md +2 -2
  42. package/docs/guide/install.md +2 -0
  43. package/docs/guide/run.md +2 -0
  44. package/docs/guide/troubleshooting.md +5 -2
  45. package/package.json +18 -18
  46. package/templates/monorepo/_gitignore +1 -0
  47. package/dist/cli-truncate-B62YnW2m.js +0 -138
  48. package/dist/dist-DZfItHAr.js +0 -3
  49. package/dist/slice-ansi-e4todZeH.js +0 -113
  50. package/dist/strip-ansi-D-eYYcD2.js +0 -198
  51. package/dist/tsconfig-BVyzXJ_o.js +0 -517
  52. package/dist/wrap-ansi-3S3qJ7j8.js +0 -2
  53. /package/dist/{chunk-q7NCDQ7-.js → chunk-DnnnRqeS.js} +0 -0
  54. /package/dist/{define-config-GqLoRwH9.cjs → define-config-BR1Y88zz.cjs} +0 -0
  55. /package/dist/{define-config-CzWdQTt2.js → define-config-BRC7qPNE.js} +0 -0
  56. /package/dist/{help-DK5wuu34.js → help-YP84FSEz.js} +0 -0
  57. /package/dist/{lib-DpwyUJWo.js → lib-L3DWSRQp.js} +0 -0
  58. /package/dist/{main-DhsO6ndq.js → main-DpJl3LoU.js} +0 -0
  59. /package/dist/{pack-K7H72Cum.d.ts → pack-Ciiho0Tq.d.ts} +0 -0
  60. /package/dist/{report-CYPv1VK1.js → report-DgSBQUdz.js} +0 -0
  61. /package/dist/{resolve-vite-config-C5AjksTj.js → resolve-vite-config-TTvhycU1.js} +0 -0
  62. /package/dist/{terminal-D_Kg-AA6.js → terminal-uTv0ZaMr.js} +0 -0
@@ -0,0 +1,853 @@
1
+ //#region ../../node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
2
+ const ANSI_BACKGROUND_OFFSET = 10;
3
+ const wrapAnsi16 = (offset = 0) => (code) => `\u001B[${code + offset}m`;
4
+ const wrapAnsi256 = (offset = 0) => (code) => `\u001B[${38 + offset};5;${code}m`;
5
+ const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
6
+ const styles = {
7
+ modifier: {
8
+ reset: [0, 0],
9
+ bold: [1, 22],
10
+ dim: [2, 22],
11
+ italic: [3, 23],
12
+ underline: [4, 24],
13
+ overline: [53, 55],
14
+ inverse: [7, 27],
15
+ hidden: [8, 28],
16
+ strikethrough: [9, 29]
17
+ },
18
+ color: {
19
+ black: [30, 39],
20
+ red: [31, 39],
21
+ green: [32, 39],
22
+ yellow: [33, 39],
23
+ blue: [34, 39],
24
+ magenta: [35, 39],
25
+ cyan: [36, 39],
26
+ white: [37, 39],
27
+ blackBright: [90, 39],
28
+ gray: [90, 39],
29
+ grey: [90, 39],
30
+ redBright: [91, 39],
31
+ greenBright: [92, 39],
32
+ yellowBright: [93, 39],
33
+ blueBright: [94, 39],
34
+ magentaBright: [95, 39],
35
+ cyanBright: [96, 39],
36
+ whiteBright: [97, 39]
37
+ },
38
+ bgColor: {
39
+ bgBlack: [40, 49],
40
+ bgRed: [41, 49],
41
+ bgGreen: [42, 49],
42
+ bgYellow: [43, 49],
43
+ bgBlue: [44, 49],
44
+ bgMagenta: [45, 49],
45
+ bgCyan: [46, 49],
46
+ bgWhite: [47, 49],
47
+ bgBlackBright: [100, 49],
48
+ bgGray: [100, 49],
49
+ bgGrey: [100, 49],
50
+ bgRedBright: [101, 49],
51
+ bgGreenBright: [102, 49],
52
+ bgYellowBright: [103, 49],
53
+ bgBlueBright: [104, 49],
54
+ bgMagentaBright: [105, 49],
55
+ bgCyanBright: [106, 49],
56
+ bgWhiteBright: [107, 49]
57
+ }
58
+ };
59
+ Object.keys(styles.modifier);
60
+ const foregroundColorNames = Object.keys(styles.color);
61
+ const backgroundColorNames = Object.keys(styles.bgColor);
62
+ [...foregroundColorNames, ...backgroundColorNames];
63
+ function assembleStyles() {
64
+ const codes = /* @__PURE__ */ new Map();
65
+ for (const [groupName, group] of Object.entries(styles)) {
66
+ for (const [styleName, style] of Object.entries(group)) {
67
+ styles[styleName] = {
68
+ open: `\u001B[${style[0]}m`,
69
+ close: `\u001B[${style[1]}m`
70
+ };
71
+ group[styleName] = styles[styleName];
72
+ codes.set(style[0], style[1]);
73
+ }
74
+ Object.defineProperty(styles, groupName, {
75
+ value: group,
76
+ enumerable: false
77
+ });
78
+ }
79
+ Object.defineProperty(styles, "codes", {
80
+ value: codes,
81
+ enumerable: false
82
+ });
83
+ styles.color.close = "\x1B[39m";
84
+ styles.bgColor.close = "\x1B[49m";
85
+ styles.color.ansi = wrapAnsi16();
86
+ styles.color.ansi256 = wrapAnsi256();
87
+ styles.color.ansi16m = wrapAnsi16m();
88
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
89
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
90
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
91
+ Object.defineProperties(styles, {
92
+ rgbToAnsi256: {
93
+ value(red, green, blue) {
94
+ if (red === green && green === blue) {
95
+ if (red < 8) return 16;
96
+ if (red > 248) return 231;
97
+ return Math.round((red - 8) / 247 * 24) + 232;
98
+ }
99
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
100
+ },
101
+ enumerable: false
102
+ },
103
+ hexToRgb: {
104
+ value(hex) {
105
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
106
+ if (!matches) return [
107
+ 0,
108
+ 0,
109
+ 0
110
+ ];
111
+ let [colorString] = matches;
112
+ if (colorString.length === 3) colorString = [...colorString].map((character) => character + character).join("");
113
+ const integer = Number.parseInt(colorString, 16);
114
+ return [
115
+ integer >> 16 & 255,
116
+ integer >> 8 & 255,
117
+ integer & 255
118
+ ];
119
+ },
120
+ enumerable: false
121
+ },
122
+ hexToAnsi256: {
123
+ value: (hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
124
+ enumerable: false
125
+ },
126
+ ansi256ToAnsi: {
127
+ value(code) {
128
+ if (code < 8) return 30 + code;
129
+ if (code < 16) return 90 + (code - 8);
130
+ let red;
131
+ let green;
132
+ let blue;
133
+ if (code >= 232) {
134
+ red = ((code - 232) * 10 + 8) / 255;
135
+ green = red;
136
+ blue = red;
137
+ } else {
138
+ code -= 16;
139
+ const remainder = code % 36;
140
+ red = Math.floor(code / 36) / 5;
141
+ green = Math.floor(remainder / 6) / 5;
142
+ blue = remainder % 6 / 5;
143
+ }
144
+ const value = Math.max(red, green, blue) * 2;
145
+ if (value === 0) return 30;
146
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
147
+ if (value === 2) result += 60;
148
+ return result;
149
+ },
150
+ enumerable: false
151
+ },
152
+ rgbToAnsi: {
153
+ value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
154
+ enumerable: false
155
+ },
156
+ hexToAnsi: {
157
+ value: (hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
158
+ enumerable: false
159
+ }
160
+ });
161
+ return styles;
162
+ }
163
+ const ansiStyles = assembleStyles();
164
+ const ambiguousRanges = [
165
+ 161,
166
+ 161,
167
+ 164,
168
+ 164,
169
+ 167,
170
+ 168,
171
+ 170,
172
+ 170,
173
+ 173,
174
+ 174,
175
+ 176,
176
+ 180,
177
+ 182,
178
+ 186,
179
+ 188,
180
+ 191,
181
+ 198,
182
+ 198,
183
+ 208,
184
+ 208,
185
+ 215,
186
+ 216,
187
+ 222,
188
+ 225,
189
+ 230,
190
+ 230,
191
+ 232,
192
+ 234,
193
+ 236,
194
+ 237,
195
+ 240,
196
+ 240,
197
+ 242,
198
+ 243,
199
+ 247,
200
+ 250,
201
+ 252,
202
+ 252,
203
+ 254,
204
+ 254,
205
+ 257,
206
+ 257,
207
+ 273,
208
+ 273,
209
+ 275,
210
+ 275,
211
+ 283,
212
+ 283,
213
+ 294,
214
+ 295,
215
+ 299,
216
+ 299,
217
+ 305,
218
+ 307,
219
+ 312,
220
+ 312,
221
+ 319,
222
+ 322,
223
+ 324,
224
+ 324,
225
+ 328,
226
+ 331,
227
+ 333,
228
+ 333,
229
+ 338,
230
+ 339,
231
+ 358,
232
+ 359,
233
+ 363,
234
+ 363,
235
+ 462,
236
+ 462,
237
+ 464,
238
+ 464,
239
+ 466,
240
+ 466,
241
+ 468,
242
+ 468,
243
+ 470,
244
+ 470,
245
+ 472,
246
+ 472,
247
+ 474,
248
+ 474,
249
+ 476,
250
+ 476,
251
+ 593,
252
+ 593,
253
+ 609,
254
+ 609,
255
+ 708,
256
+ 708,
257
+ 711,
258
+ 711,
259
+ 713,
260
+ 715,
261
+ 717,
262
+ 717,
263
+ 720,
264
+ 720,
265
+ 728,
266
+ 731,
267
+ 733,
268
+ 733,
269
+ 735,
270
+ 735,
271
+ 768,
272
+ 879,
273
+ 913,
274
+ 929,
275
+ 931,
276
+ 937,
277
+ 945,
278
+ 961,
279
+ 963,
280
+ 969,
281
+ 1025,
282
+ 1025,
283
+ 1040,
284
+ 1103,
285
+ 1105,
286
+ 1105,
287
+ 8208,
288
+ 8208,
289
+ 8211,
290
+ 8214,
291
+ 8216,
292
+ 8217,
293
+ 8220,
294
+ 8221,
295
+ 8224,
296
+ 8226,
297
+ 8228,
298
+ 8231,
299
+ 8240,
300
+ 8240,
301
+ 8242,
302
+ 8243,
303
+ 8245,
304
+ 8245,
305
+ 8251,
306
+ 8251,
307
+ 8254,
308
+ 8254,
309
+ 8308,
310
+ 8308,
311
+ 8319,
312
+ 8319,
313
+ 8321,
314
+ 8324,
315
+ 8364,
316
+ 8364,
317
+ 8451,
318
+ 8451,
319
+ 8453,
320
+ 8453,
321
+ 8457,
322
+ 8457,
323
+ 8467,
324
+ 8467,
325
+ 8470,
326
+ 8470,
327
+ 8481,
328
+ 8482,
329
+ 8486,
330
+ 8486,
331
+ 8491,
332
+ 8491,
333
+ 8531,
334
+ 8532,
335
+ 8539,
336
+ 8542,
337
+ 8544,
338
+ 8555,
339
+ 8560,
340
+ 8569,
341
+ 8585,
342
+ 8585,
343
+ 8592,
344
+ 8601,
345
+ 8632,
346
+ 8633,
347
+ 8658,
348
+ 8658,
349
+ 8660,
350
+ 8660,
351
+ 8679,
352
+ 8679,
353
+ 8704,
354
+ 8704,
355
+ 8706,
356
+ 8707,
357
+ 8711,
358
+ 8712,
359
+ 8715,
360
+ 8715,
361
+ 8719,
362
+ 8719,
363
+ 8721,
364
+ 8721,
365
+ 8725,
366
+ 8725,
367
+ 8730,
368
+ 8730,
369
+ 8733,
370
+ 8736,
371
+ 8739,
372
+ 8739,
373
+ 8741,
374
+ 8741,
375
+ 8743,
376
+ 8748,
377
+ 8750,
378
+ 8750,
379
+ 8756,
380
+ 8759,
381
+ 8764,
382
+ 8765,
383
+ 8776,
384
+ 8776,
385
+ 8780,
386
+ 8780,
387
+ 8786,
388
+ 8786,
389
+ 8800,
390
+ 8801,
391
+ 8804,
392
+ 8807,
393
+ 8810,
394
+ 8811,
395
+ 8814,
396
+ 8815,
397
+ 8834,
398
+ 8835,
399
+ 8838,
400
+ 8839,
401
+ 8853,
402
+ 8853,
403
+ 8857,
404
+ 8857,
405
+ 8869,
406
+ 8869,
407
+ 8895,
408
+ 8895,
409
+ 8978,
410
+ 8978,
411
+ 9312,
412
+ 9449,
413
+ 9451,
414
+ 9547,
415
+ 9552,
416
+ 9587,
417
+ 9600,
418
+ 9615,
419
+ 9618,
420
+ 9621,
421
+ 9632,
422
+ 9633,
423
+ 9635,
424
+ 9641,
425
+ 9650,
426
+ 9651,
427
+ 9654,
428
+ 9655,
429
+ 9660,
430
+ 9661,
431
+ 9664,
432
+ 9665,
433
+ 9670,
434
+ 9672,
435
+ 9675,
436
+ 9675,
437
+ 9678,
438
+ 9681,
439
+ 9698,
440
+ 9701,
441
+ 9711,
442
+ 9711,
443
+ 9733,
444
+ 9734,
445
+ 9737,
446
+ 9737,
447
+ 9742,
448
+ 9743,
449
+ 9756,
450
+ 9756,
451
+ 9758,
452
+ 9758,
453
+ 9792,
454
+ 9792,
455
+ 9794,
456
+ 9794,
457
+ 9824,
458
+ 9825,
459
+ 9827,
460
+ 9829,
461
+ 9831,
462
+ 9834,
463
+ 9836,
464
+ 9837,
465
+ 9839,
466
+ 9839,
467
+ 9886,
468
+ 9887,
469
+ 9919,
470
+ 9919,
471
+ 9926,
472
+ 9933,
473
+ 9935,
474
+ 9939,
475
+ 9941,
476
+ 9953,
477
+ 9955,
478
+ 9955,
479
+ 9960,
480
+ 9961,
481
+ 9963,
482
+ 9969,
483
+ 9972,
484
+ 9972,
485
+ 9974,
486
+ 9977,
487
+ 9979,
488
+ 9980,
489
+ 9982,
490
+ 9983,
491
+ 10045,
492
+ 10045,
493
+ 10102,
494
+ 10111,
495
+ 11094,
496
+ 11097,
497
+ 12872,
498
+ 12879,
499
+ 57344,
500
+ 63743,
501
+ 65024,
502
+ 65039,
503
+ 65533,
504
+ 65533,
505
+ 127232,
506
+ 127242,
507
+ 127248,
508
+ 127277,
509
+ 127280,
510
+ 127337,
511
+ 127344,
512
+ 127373,
513
+ 127375,
514
+ 127376,
515
+ 127387,
516
+ 127404,
517
+ 917760,
518
+ 917999,
519
+ 983040,
520
+ 1048573,
521
+ 1048576,
522
+ 1114109
523
+ ];
524
+ const fullwidthRanges = [
525
+ 12288,
526
+ 12288,
527
+ 65281,
528
+ 65376,
529
+ 65504,
530
+ 65510
531
+ ];
532
+ const wideRanges = [
533
+ 4352,
534
+ 4447,
535
+ 8986,
536
+ 8987,
537
+ 9001,
538
+ 9002,
539
+ 9193,
540
+ 9196,
541
+ 9200,
542
+ 9200,
543
+ 9203,
544
+ 9203,
545
+ 9725,
546
+ 9726,
547
+ 9748,
548
+ 9749,
549
+ 9776,
550
+ 9783,
551
+ 9800,
552
+ 9811,
553
+ 9855,
554
+ 9855,
555
+ 9866,
556
+ 9871,
557
+ 9875,
558
+ 9875,
559
+ 9889,
560
+ 9889,
561
+ 9898,
562
+ 9899,
563
+ 9917,
564
+ 9918,
565
+ 9924,
566
+ 9925,
567
+ 9934,
568
+ 9934,
569
+ 9940,
570
+ 9940,
571
+ 9962,
572
+ 9962,
573
+ 9970,
574
+ 9971,
575
+ 9973,
576
+ 9973,
577
+ 9978,
578
+ 9978,
579
+ 9981,
580
+ 9981,
581
+ 9989,
582
+ 9989,
583
+ 9994,
584
+ 9995,
585
+ 10024,
586
+ 10024,
587
+ 10060,
588
+ 10060,
589
+ 10062,
590
+ 10062,
591
+ 10067,
592
+ 10069,
593
+ 10071,
594
+ 10071,
595
+ 10133,
596
+ 10135,
597
+ 10160,
598
+ 10160,
599
+ 10175,
600
+ 10175,
601
+ 11035,
602
+ 11036,
603
+ 11088,
604
+ 11088,
605
+ 11093,
606
+ 11093,
607
+ 11904,
608
+ 11929,
609
+ 11931,
610
+ 12019,
611
+ 12032,
612
+ 12245,
613
+ 12272,
614
+ 12287,
615
+ 12289,
616
+ 12350,
617
+ 12353,
618
+ 12438,
619
+ 12441,
620
+ 12543,
621
+ 12549,
622
+ 12591,
623
+ 12593,
624
+ 12686,
625
+ 12688,
626
+ 12773,
627
+ 12783,
628
+ 12830,
629
+ 12832,
630
+ 12871,
631
+ 12880,
632
+ 42124,
633
+ 42128,
634
+ 42182,
635
+ 43360,
636
+ 43388,
637
+ 44032,
638
+ 55203,
639
+ 63744,
640
+ 64255,
641
+ 65040,
642
+ 65049,
643
+ 65072,
644
+ 65106,
645
+ 65108,
646
+ 65126,
647
+ 65128,
648
+ 65131,
649
+ 94176,
650
+ 94180,
651
+ 94192,
652
+ 94198,
653
+ 94208,
654
+ 101589,
655
+ 101631,
656
+ 101662,
657
+ 101760,
658
+ 101874,
659
+ 110576,
660
+ 110579,
661
+ 110581,
662
+ 110587,
663
+ 110589,
664
+ 110590,
665
+ 110592,
666
+ 110882,
667
+ 110898,
668
+ 110898,
669
+ 110928,
670
+ 110930,
671
+ 110933,
672
+ 110933,
673
+ 110948,
674
+ 110951,
675
+ 110960,
676
+ 111355,
677
+ 119552,
678
+ 119638,
679
+ 119648,
680
+ 119670,
681
+ 126980,
682
+ 126980,
683
+ 127183,
684
+ 127183,
685
+ 127374,
686
+ 127374,
687
+ 127377,
688
+ 127386,
689
+ 127488,
690
+ 127490,
691
+ 127504,
692
+ 127547,
693
+ 127552,
694
+ 127560,
695
+ 127568,
696
+ 127569,
697
+ 127584,
698
+ 127589,
699
+ 127744,
700
+ 127776,
701
+ 127789,
702
+ 127797,
703
+ 127799,
704
+ 127868,
705
+ 127870,
706
+ 127891,
707
+ 127904,
708
+ 127946,
709
+ 127951,
710
+ 127955,
711
+ 127968,
712
+ 127984,
713
+ 127988,
714
+ 127988,
715
+ 127992,
716
+ 128062,
717
+ 128064,
718
+ 128064,
719
+ 128066,
720
+ 128252,
721
+ 128255,
722
+ 128317,
723
+ 128331,
724
+ 128334,
725
+ 128336,
726
+ 128359,
727
+ 128378,
728
+ 128378,
729
+ 128405,
730
+ 128406,
731
+ 128420,
732
+ 128420,
733
+ 128507,
734
+ 128591,
735
+ 128640,
736
+ 128709,
737
+ 128716,
738
+ 128716,
739
+ 128720,
740
+ 128722,
741
+ 128725,
742
+ 128728,
743
+ 128732,
744
+ 128735,
745
+ 128747,
746
+ 128748,
747
+ 128756,
748
+ 128764,
749
+ 128992,
750
+ 129003,
751
+ 129008,
752
+ 129008,
753
+ 129292,
754
+ 129338,
755
+ 129340,
756
+ 129349,
757
+ 129351,
758
+ 129535,
759
+ 129648,
760
+ 129660,
761
+ 129664,
762
+ 129674,
763
+ 129678,
764
+ 129734,
765
+ 129736,
766
+ 129736,
767
+ 129741,
768
+ 129756,
769
+ 129759,
770
+ 129770,
771
+ 129775,
772
+ 129784,
773
+ 131072,
774
+ 196605,
775
+ 196608,
776
+ 262141
777
+ ];
778
+ //#endregion
779
+ //#region ../../node_modules/.pnpm/get-east-asian-width@1.6.0/node_modules/get-east-asian-width/utilities.js
780
+ /**
781
+ Binary search on a sorted flat array of [start, end] pairs.
782
+
783
+ @param {number[]} ranges - Flat array of inclusive [start, end] range pairs, e.g. [0, 5, 10, 20].
784
+ @param {number} codePoint - The value to search for.
785
+ @returns {boolean} Whether the value falls within any of the ranges.
786
+ */
787
+ const isInRange = (ranges, codePoint) => {
788
+ let low = 0;
789
+ let high = Math.floor(ranges.length / 2) - 1;
790
+ while (low <= high) {
791
+ const mid = Math.floor((low + high) / 2);
792
+ const i = mid * 2;
793
+ if (codePoint < ranges[i]) high = mid - 1;
794
+ else if (codePoint > ranges[i + 1]) low = mid + 1;
795
+ else return true;
796
+ }
797
+ return false;
798
+ };
799
+ //#endregion
800
+ //#region ../../node_modules/.pnpm/get-east-asian-width@1.6.0/node_modules/get-east-asian-width/lookup.js
801
+ const commonCjkCodePoint = 19968;
802
+ const [wideFastPathStart, wideFastPathEnd] = /* #__PURE__ */ findWideFastPathRange(wideRanges);
803
+ function findWideFastPathRange(ranges) {
804
+ let fastPathStart = ranges[0];
805
+ let fastPathEnd = ranges[1];
806
+ for (let index = 0; index < ranges.length; index += 2) {
807
+ const start = ranges[index];
808
+ const end = ranges[index + 1];
809
+ if (commonCjkCodePoint >= start && commonCjkCodePoint <= end) return [start, end];
810
+ if (end - start > fastPathEnd - fastPathStart) {
811
+ fastPathStart = start;
812
+ fastPathEnd = end;
813
+ }
814
+ }
815
+ return [fastPathStart, fastPathEnd];
816
+ }
817
+ const isAmbiguous = (codePoint) => {
818
+ if (codePoint < 161 || codePoint > 1114109) return false;
819
+ return isInRange(ambiguousRanges, codePoint);
820
+ };
821
+ const isFullWidth = (codePoint) => {
822
+ if (codePoint < 12288 || codePoint > 65510) return false;
823
+ return isInRange(fullwidthRanges, codePoint);
824
+ };
825
+ const isWide = (codePoint) => {
826
+ if (codePoint >= wideFastPathStart && codePoint <= wideFastPathEnd) return true;
827
+ if (codePoint < 4352 || codePoint > 262141) return false;
828
+ return isInRange(wideRanges, codePoint);
829
+ };
830
+ //#endregion
831
+ //#region ../../node_modules/.pnpm/get-east-asian-width@1.6.0/node_modules/get-east-asian-width/index.js
832
+ function validate(codePoint) {
833
+ if (!Number.isSafeInteger(codePoint)) throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
834
+ }
835
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
836
+ validate(codePoint);
837
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) return 2;
838
+ return 1;
839
+ }
840
+ //#endregion
841
+ //#region ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
842
+ function ansiRegex({ onlyFirst = false } = {}) {
843
+ return new RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`, onlyFirst ? void 0 : "g");
844
+ }
845
+ //#endregion
846
+ //#region ../../node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
847
+ const regex = ansiRegex();
848
+ function stripAnsi(string) {
849
+ if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
850
+ return string.replace(regex, "");
851
+ }
852
+ //#endregion
853
+ export { ansiStyles as a, isWide as i, eastAsianWidth as n, isFullWidth as r, stripAnsi as t };