@batijs/cli 0.0.422 → 0.0.423
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.
- package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
- package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +4 -4
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hattip/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/panda-css/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +2 -2
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
- package/dist/{chunk-QZ2ZW2DW.js → chunk-Q4C7XXZZ.js} +29773 -29751
- package/dist/index.js +332 -329
- package/dist/{prompt-KUNVMQLQ.js → prompt-AQUZNUSD.js} +230 -229
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -3,13 +3,13 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
Dit,
|
|
7
|
+
U5e,
|
|
8
|
+
_Ts,
|
|
9
|
+
aQr,
|
|
9
10
|
export_which,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./chunk-QZ2ZW2DW.js";
|
|
11
|
+
tps
|
|
12
|
+
} from "./chunk-Q4C7XXZZ.js";
|
|
13
13
|
import "./chunk-QY4H25CP.js";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -440,21 +440,21 @@ var require_conversions = __commonJS({
|
|
|
440
440
|
}
|
|
441
441
|
convert.rgb.hsl = function(rgb) {
|
|
442
442
|
const r2 = rgb[0] / 255;
|
|
443
|
-
const
|
|
444
|
-
const
|
|
445
|
-
const min = Math.min(r2,
|
|
446
|
-
const max = Math.max(r2,
|
|
443
|
+
const g2 = rgb[1] / 255;
|
|
444
|
+
const b2 = rgb[2] / 255;
|
|
445
|
+
const min = Math.min(r2, g2, b2);
|
|
446
|
+
const max = Math.max(r2, g2, b2);
|
|
447
447
|
const delta = max - min;
|
|
448
448
|
let h;
|
|
449
449
|
let s2;
|
|
450
450
|
if (max === min) {
|
|
451
451
|
h = 0;
|
|
452
452
|
} else if (r2 === max) {
|
|
453
|
-
h = (
|
|
454
|
-
} else if (
|
|
455
|
-
h = 2 + (
|
|
456
|
-
} else if (
|
|
457
|
-
h = 4 + (r2 -
|
|
453
|
+
h = (g2 - b2) / delta;
|
|
454
|
+
} else if (g2 === max) {
|
|
455
|
+
h = 2 + (b2 - r2) / delta;
|
|
456
|
+
} else if (b2 === max) {
|
|
457
|
+
h = 4 + (r2 - g2) / delta;
|
|
458
458
|
}
|
|
459
459
|
h = Math.min(h * 60, 360);
|
|
460
460
|
if (h < 0) {
|
|
@@ -477,10 +477,10 @@ var require_conversions = __commonJS({
|
|
|
477
477
|
let h;
|
|
478
478
|
let s2;
|
|
479
479
|
const r2 = rgb[0] / 255;
|
|
480
|
-
const
|
|
481
|
-
const
|
|
482
|
-
const v = Math.max(r2,
|
|
483
|
-
const diff = v - Math.min(r2,
|
|
480
|
+
const g2 = rgb[1] / 255;
|
|
481
|
+
const b2 = rgb[2] / 255;
|
|
482
|
+
const v = Math.max(r2, g2, b2);
|
|
483
|
+
const diff = v - Math.min(r2, g2, b2);
|
|
484
484
|
const diffc = function(c2) {
|
|
485
485
|
return (v - c2) / 6 / diff + 1 / 2;
|
|
486
486
|
};
|
|
@@ -490,13 +490,13 @@ var require_conversions = __commonJS({
|
|
|
490
490
|
} else {
|
|
491
491
|
s2 = diff / v;
|
|
492
492
|
rdif = diffc(r2);
|
|
493
|
-
gdif = diffc(
|
|
494
|
-
bdif = diffc(
|
|
493
|
+
gdif = diffc(g2);
|
|
494
|
+
bdif = diffc(b2);
|
|
495
495
|
if (r2 === v) {
|
|
496
496
|
h = bdif - gdif;
|
|
497
|
-
} else if (
|
|
497
|
+
} else if (g2 === v) {
|
|
498
498
|
h = 1 / 3 + rdif - bdif;
|
|
499
|
-
} else if (
|
|
499
|
+
} else if (b2 === v) {
|
|
500
500
|
h = 2 / 3 + gdif - rdif;
|
|
501
501
|
}
|
|
502
502
|
if (h < 0) {
|
|
@@ -513,21 +513,21 @@ var require_conversions = __commonJS({
|
|
|
513
513
|
};
|
|
514
514
|
convert.rgb.hwb = function(rgb) {
|
|
515
515
|
const r2 = rgb[0];
|
|
516
|
-
const
|
|
517
|
-
let
|
|
516
|
+
const g2 = rgb[1];
|
|
517
|
+
let b2 = rgb[2];
|
|
518
518
|
const h = convert.rgb.hsl(rgb)[0];
|
|
519
|
-
const w = 1 / 255 * Math.min(r2, Math.min(
|
|
520
|
-
|
|
521
|
-
return [h, w * 100,
|
|
519
|
+
const w = 1 / 255 * Math.min(r2, Math.min(g2, b2));
|
|
520
|
+
b2 = 1 - 1 / 255 * Math.max(r2, Math.max(g2, b2));
|
|
521
|
+
return [h, w * 100, b2 * 100];
|
|
522
522
|
};
|
|
523
523
|
convert.rgb.cmyk = function(rgb) {
|
|
524
524
|
const r2 = rgb[0] / 255;
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
const k = Math.min(1 - r2, 1 -
|
|
525
|
+
const g2 = rgb[1] / 255;
|
|
526
|
+
const b2 = rgb[2] / 255;
|
|
527
|
+
const k = Math.min(1 - r2, 1 - g2, 1 - b2);
|
|
528
528
|
const c2 = (1 - r2 - k) / (1 - k) || 0;
|
|
529
|
-
const m = (1 -
|
|
530
|
-
const y2 = (1 -
|
|
529
|
+
const m = (1 - g2 - k) / (1 - k) || 0;
|
|
530
|
+
const y2 = (1 - b2 - k) / (1 - k) || 0;
|
|
531
531
|
return [c2 * 100, m * 100, y2 * 100, k * 100];
|
|
532
532
|
};
|
|
533
533
|
function comparativeDistance(x, y2) {
|
|
@@ -555,14 +555,14 @@ var require_conversions = __commonJS({
|
|
|
555
555
|
};
|
|
556
556
|
convert.rgb.xyz = function(rgb) {
|
|
557
557
|
let r2 = rgb[0] / 255;
|
|
558
|
-
let
|
|
559
|
-
let
|
|
558
|
+
let g2 = rgb[1] / 255;
|
|
559
|
+
let b2 = rgb[2] / 255;
|
|
560
560
|
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
const x = r2 * 0.4124 +
|
|
564
|
-
const y2 = r2 * 0.2126 +
|
|
565
|
-
const z = r2 * 0.0193 +
|
|
561
|
+
g2 = g2 > 0.04045 ? ((g2 + 0.055) / 1.055) ** 2.4 : g2 / 12.92;
|
|
562
|
+
b2 = b2 > 0.04045 ? ((b2 + 0.055) / 1.055) ** 2.4 : b2 / 12.92;
|
|
563
|
+
const x = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805;
|
|
564
|
+
const y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722;
|
|
565
|
+
const z = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
|
|
566
566
|
return [x * 100, y2 * 100, z * 100];
|
|
567
567
|
};
|
|
568
568
|
convert.rgb.lab = function(rgb) {
|
|
@@ -578,8 +578,8 @@ var require_conversions = __commonJS({
|
|
|
578
578
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
579
579
|
const l2 = 116 * y2 - 16;
|
|
580
580
|
const a2 = 500 * (x - y2);
|
|
581
|
-
const
|
|
582
|
-
return [l2, a2,
|
|
581
|
+
const b2 = 200 * (y2 - z);
|
|
582
|
+
return [l2, a2, b2];
|
|
583
583
|
};
|
|
584
584
|
convert.hsl.rgb = function(hsl) {
|
|
585
585
|
const h = hsl[0] / 360;
|
|
@@ -638,24 +638,24 @@ var require_conversions = __commonJS({
|
|
|
638
638
|
const s2 = hsv[1] / 100;
|
|
639
639
|
let v = hsv[2] / 100;
|
|
640
640
|
const hi = Math.floor(h) % 6;
|
|
641
|
-
const
|
|
642
|
-
const
|
|
643
|
-
const q = 255 * v * (1 - s2 *
|
|
644
|
-
const t2 = 255 * v * (1 - s2 * (1 -
|
|
641
|
+
const f2 = h - Math.floor(h);
|
|
642
|
+
const p = 255 * v * (1 - s2);
|
|
643
|
+
const q = 255 * v * (1 - s2 * f2);
|
|
644
|
+
const t2 = 255 * v * (1 - s2 * (1 - f2));
|
|
645
645
|
v *= 255;
|
|
646
646
|
switch (hi) {
|
|
647
647
|
case 0:
|
|
648
|
-
return [v, t2,
|
|
648
|
+
return [v, t2, p];
|
|
649
649
|
case 1:
|
|
650
|
-
return [q, v,
|
|
650
|
+
return [q, v, p];
|
|
651
651
|
case 2:
|
|
652
|
-
return [
|
|
652
|
+
return [p, v, t2];
|
|
653
653
|
case 3:
|
|
654
|
-
return [
|
|
654
|
+
return [p, q, v];
|
|
655
655
|
case 4:
|
|
656
|
-
return [t2,
|
|
656
|
+
return [t2, p, v];
|
|
657
657
|
case 5:
|
|
658
|
-
return [v,
|
|
658
|
+
return [v, p, q];
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
convert.hsv.hsl = function(hsv) {
|
|
@@ -678,56 +678,56 @@ var require_conversions = __commonJS({
|
|
|
678
678
|
let wh = hwb[1] / 100;
|
|
679
679
|
let bl = hwb[2] / 100;
|
|
680
680
|
const ratio = wh + bl;
|
|
681
|
-
let
|
|
681
|
+
let f2;
|
|
682
682
|
if (ratio > 1) {
|
|
683
683
|
wh /= ratio;
|
|
684
684
|
bl /= ratio;
|
|
685
685
|
}
|
|
686
686
|
const i2 = Math.floor(6 * h);
|
|
687
687
|
const v = 1 - bl;
|
|
688
|
-
|
|
688
|
+
f2 = 6 * h - i2;
|
|
689
689
|
if ((i2 & 1) !== 0) {
|
|
690
|
-
|
|
690
|
+
f2 = 1 - f2;
|
|
691
691
|
}
|
|
692
|
-
const n2 = wh +
|
|
692
|
+
const n2 = wh + f2 * (v - wh);
|
|
693
693
|
let r2;
|
|
694
|
-
let
|
|
695
|
-
let
|
|
694
|
+
let g2;
|
|
695
|
+
let b2;
|
|
696
696
|
switch (i2) {
|
|
697
697
|
default:
|
|
698
698
|
case 6:
|
|
699
699
|
case 0:
|
|
700
700
|
r2 = v;
|
|
701
|
-
|
|
702
|
-
|
|
701
|
+
g2 = n2;
|
|
702
|
+
b2 = wh;
|
|
703
703
|
break;
|
|
704
704
|
case 1:
|
|
705
705
|
r2 = n2;
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
g2 = v;
|
|
707
|
+
b2 = wh;
|
|
708
708
|
break;
|
|
709
709
|
case 2:
|
|
710
710
|
r2 = wh;
|
|
711
|
-
|
|
712
|
-
|
|
711
|
+
g2 = v;
|
|
712
|
+
b2 = n2;
|
|
713
713
|
break;
|
|
714
714
|
case 3:
|
|
715
715
|
r2 = wh;
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
g2 = n2;
|
|
717
|
+
b2 = v;
|
|
718
718
|
break;
|
|
719
719
|
case 4:
|
|
720
720
|
r2 = n2;
|
|
721
|
-
|
|
722
|
-
|
|
721
|
+
g2 = wh;
|
|
722
|
+
b2 = v;
|
|
723
723
|
break;
|
|
724
724
|
case 5:
|
|
725
725
|
r2 = v;
|
|
726
|
-
|
|
727
|
-
|
|
726
|
+
g2 = wh;
|
|
727
|
+
b2 = n2;
|
|
728
728
|
break;
|
|
729
729
|
}
|
|
730
|
-
return [r2 * 255,
|
|
730
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
731
731
|
};
|
|
732
732
|
convert.cmyk.rgb = function(cmyk) {
|
|
733
733
|
const c2 = cmyk[0] / 100;
|
|
@@ -735,27 +735,27 @@ var require_conversions = __commonJS({
|
|
|
735
735
|
const y2 = cmyk[2] / 100;
|
|
736
736
|
const k = cmyk[3] / 100;
|
|
737
737
|
const r2 = 1 - Math.min(1, c2 * (1 - k) + k);
|
|
738
|
-
const
|
|
739
|
-
const
|
|
740
|
-
return [r2 * 255,
|
|
738
|
+
const g2 = 1 - Math.min(1, m * (1 - k) + k);
|
|
739
|
+
const b2 = 1 - Math.min(1, y2 * (1 - k) + k);
|
|
740
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
741
741
|
};
|
|
742
742
|
convert.xyz.rgb = function(xyz) {
|
|
743
743
|
const x = xyz[0] / 100;
|
|
744
744
|
const y2 = xyz[1] / 100;
|
|
745
745
|
const z = xyz[2] / 100;
|
|
746
746
|
let r2;
|
|
747
|
-
let
|
|
748
|
-
let
|
|
747
|
+
let g2;
|
|
748
|
+
let b2;
|
|
749
749
|
r2 = x * 3.2406 + y2 * -1.5372 + z * -0.4986;
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
g2 = x * -0.9689 + y2 * 1.8758 + z * 0.0415;
|
|
751
|
+
b2 = x * 0.0557 + y2 * -0.204 + z * 1.057;
|
|
752
752
|
r2 = r2 > 31308e-7 ? 1.055 * r2 ** (1 / 2.4) - 0.055 : r2 * 12.92;
|
|
753
|
-
|
|
754
|
-
|
|
753
|
+
g2 = g2 > 31308e-7 ? 1.055 * g2 ** (1 / 2.4) - 0.055 : g2 * 12.92;
|
|
754
|
+
b2 = b2 > 31308e-7 ? 1.055 * b2 ** (1 / 2.4) - 0.055 : b2 * 12.92;
|
|
755
755
|
r2 = Math.min(Math.max(0, r2), 1);
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
return [r2 * 255,
|
|
756
|
+
g2 = Math.min(Math.max(0, g2), 1);
|
|
757
|
+
b2 = Math.min(Math.max(0, b2), 1);
|
|
758
|
+
return [r2 * 255, g2 * 255, b2 * 255];
|
|
759
759
|
};
|
|
760
760
|
convert.xyz.lab = function(xyz) {
|
|
761
761
|
let x = xyz[0];
|
|
@@ -769,19 +769,19 @@ var require_conversions = __commonJS({
|
|
|
769
769
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
770
770
|
const l2 = 116 * y2 - 16;
|
|
771
771
|
const a2 = 500 * (x - y2);
|
|
772
|
-
const
|
|
773
|
-
return [l2, a2,
|
|
772
|
+
const b2 = 200 * (y2 - z);
|
|
773
|
+
return [l2, a2, b2];
|
|
774
774
|
};
|
|
775
775
|
convert.lab.xyz = function(lab) {
|
|
776
776
|
const l2 = lab[0];
|
|
777
777
|
const a2 = lab[1];
|
|
778
|
-
const
|
|
778
|
+
const b2 = lab[2];
|
|
779
779
|
let x;
|
|
780
780
|
let y2;
|
|
781
781
|
let z;
|
|
782
782
|
y2 = (l2 + 16) / 116;
|
|
783
783
|
x = a2 / 500 + y2;
|
|
784
|
-
z = y2 -
|
|
784
|
+
z = y2 - b2 / 200;
|
|
785
785
|
const y22 = y2 ** 3;
|
|
786
786
|
const x2 = x ** 3;
|
|
787
787
|
const z2 = z ** 3;
|
|
@@ -796,14 +796,14 @@ var require_conversions = __commonJS({
|
|
|
796
796
|
convert.lab.lch = function(lab) {
|
|
797
797
|
const l2 = lab[0];
|
|
798
798
|
const a2 = lab[1];
|
|
799
|
-
const
|
|
799
|
+
const b2 = lab[2];
|
|
800
800
|
let h;
|
|
801
|
-
const hr = Math.atan2(
|
|
801
|
+
const hr = Math.atan2(b2, a2);
|
|
802
802
|
h = hr * 360 / 2 / Math.PI;
|
|
803
803
|
if (h < 0) {
|
|
804
804
|
h += 360;
|
|
805
805
|
}
|
|
806
|
-
const c2 = Math.sqrt(a2 * a2 +
|
|
806
|
+
const c2 = Math.sqrt(a2 * a2 + b2 * b2);
|
|
807
807
|
return [l2, c2, h];
|
|
808
808
|
};
|
|
809
809
|
convert.lch.lab = function(lch) {
|
|
@@ -812,17 +812,17 @@ var require_conversions = __commonJS({
|
|
|
812
812
|
const h = lch[2];
|
|
813
813
|
const hr = h / 360 * 2 * Math.PI;
|
|
814
814
|
const a2 = c2 * Math.cos(hr);
|
|
815
|
-
const
|
|
816
|
-
return [l2, a2,
|
|
815
|
+
const b2 = c2 * Math.sin(hr);
|
|
816
|
+
return [l2, a2, b2];
|
|
817
817
|
};
|
|
818
818
|
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
819
|
-
const [r2,
|
|
819
|
+
const [r2, g2, b2] = args;
|
|
820
820
|
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
821
821
|
value = Math.round(value / 50);
|
|
822
822
|
if (value === 0) {
|
|
823
823
|
return 30;
|
|
824
824
|
}
|
|
825
|
-
let ansi = 30 + (Math.round(
|
|
825
|
+
let ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
|
|
826
826
|
if (value === 2) {
|
|
827
827
|
ansi += 60;
|
|
828
828
|
}
|
|
@@ -833,9 +833,9 @@ var require_conversions = __commonJS({
|
|
|
833
833
|
};
|
|
834
834
|
convert.rgb.ansi256 = function(args) {
|
|
835
835
|
const r2 = args[0];
|
|
836
|
-
const
|
|
837
|
-
const
|
|
838
|
-
if (r2 ===
|
|
836
|
+
const g2 = args[1];
|
|
837
|
+
const b2 = args[2];
|
|
838
|
+
if (r2 === g2 && g2 === b2) {
|
|
839
839
|
if (r2 < 8) {
|
|
840
840
|
return 16;
|
|
841
841
|
}
|
|
@@ -844,7 +844,7 @@ var require_conversions = __commonJS({
|
|
|
844
844
|
}
|
|
845
845
|
return Math.round((r2 - 8) / 247 * 24) + 232;
|
|
846
846
|
}
|
|
847
|
-
const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(
|
|
847
|
+
const ansi = 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
|
|
848
848
|
return ansi;
|
|
849
849
|
};
|
|
850
850
|
convert.ansi16.rgb = function(args) {
|
|
@@ -858,9 +858,9 @@ var require_conversions = __commonJS({
|
|
|
858
858
|
}
|
|
859
859
|
const mult = (~~(args > 50) + 1) * 0.5;
|
|
860
860
|
const r2 = (color & 1) * mult * 255;
|
|
861
|
-
const
|
|
862
|
-
const
|
|
863
|
-
return [r2,
|
|
861
|
+
const g2 = (color >> 1 & 1) * mult * 255;
|
|
862
|
+
const b2 = (color >> 2 & 1) * mult * 255;
|
|
863
|
+
return [r2, g2, b2];
|
|
864
864
|
};
|
|
865
865
|
convert.ansi256.rgb = function(args) {
|
|
866
866
|
if (args >= 232) {
|
|
@@ -870,9 +870,9 @@ var require_conversions = __commonJS({
|
|
|
870
870
|
args -= 16;
|
|
871
871
|
let rem;
|
|
872
872
|
const r2 = Math.floor(args / 36) / 5 * 255;
|
|
873
|
-
const
|
|
874
|
-
const
|
|
875
|
-
return [r2,
|
|
873
|
+
const g2 = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
874
|
+
const b2 = rem % 6 / 5 * 255;
|
|
875
|
+
return [r2, g2, b2];
|
|
876
876
|
};
|
|
877
877
|
convert.rgb.hex = function(args) {
|
|
878
878
|
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
@@ -892,16 +892,16 @@ var require_conversions = __commonJS({
|
|
|
892
892
|
}
|
|
893
893
|
const integer = parseInt(colorString, 16);
|
|
894
894
|
const r2 = integer >> 16 & 255;
|
|
895
|
-
const
|
|
896
|
-
const
|
|
897
|
-
return [r2,
|
|
895
|
+
const g2 = integer >> 8 & 255;
|
|
896
|
+
const b2 = integer & 255;
|
|
897
|
+
return [r2, g2, b2];
|
|
898
898
|
};
|
|
899
899
|
convert.rgb.hcg = function(rgb) {
|
|
900
900
|
const r2 = rgb[0] / 255;
|
|
901
|
-
const
|
|
902
|
-
const
|
|
903
|
-
const max = Math.max(Math.max(r2,
|
|
904
|
-
const min = Math.min(Math.min(r2,
|
|
901
|
+
const g2 = rgb[1] / 255;
|
|
902
|
+
const b2 = rgb[2] / 255;
|
|
903
|
+
const max = Math.max(Math.max(r2, g2), b2);
|
|
904
|
+
const min = Math.min(Math.min(r2, g2), b2);
|
|
905
905
|
const chroma = max - min;
|
|
906
906
|
let grayscale;
|
|
907
907
|
let hue;
|
|
@@ -913,11 +913,11 @@ var require_conversions = __commonJS({
|
|
|
913
913
|
if (chroma <= 0) {
|
|
914
914
|
hue = 0;
|
|
915
915
|
} else if (max === r2) {
|
|
916
|
-
hue = (
|
|
917
|
-
} else if (max ===
|
|
918
|
-
hue = 2 + (
|
|
916
|
+
hue = (g2 - b2) / chroma % 6;
|
|
917
|
+
} else if (max === g2) {
|
|
918
|
+
hue = 2 + (b2 - r2) / chroma;
|
|
919
919
|
} else {
|
|
920
|
-
hue = 4 + (r2 -
|
|
920
|
+
hue = 4 + (r2 - g2) / chroma;
|
|
921
921
|
}
|
|
922
922
|
hue /= 6;
|
|
923
923
|
hue %= 1;
|
|
@@ -927,28 +927,28 @@ var require_conversions = __commonJS({
|
|
|
927
927
|
const s2 = hsl[1] / 100;
|
|
928
928
|
const l2 = hsl[2] / 100;
|
|
929
929
|
const c2 = l2 < 0.5 ? 2 * s2 * l2 : 2 * s2 * (1 - l2);
|
|
930
|
-
let
|
|
930
|
+
let f2 = 0;
|
|
931
931
|
if (c2 < 1) {
|
|
932
|
-
|
|
932
|
+
f2 = (l2 - 0.5 * c2) / (1 - c2);
|
|
933
933
|
}
|
|
934
|
-
return [hsl[0], c2 * 100,
|
|
934
|
+
return [hsl[0], c2 * 100, f2 * 100];
|
|
935
935
|
};
|
|
936
936
|
convert.hsv.hcg = function(hsv) {
|
|
937
937
|
const s2 = hsv[1] / 100;
|
|
938
938
|
const v = hsv[2] / 100;
|
|
939
939
|
const c2 = s2 * v;
|
|
940
|
-
let
|
|
940
|
+
let f2 = 0;
|
|
941
941
|
if (c2 < 1) {
|
|
942
|
-
|
|
942
|
+
f2 = (v - c2) / (1 - c2);
|
|
943
943
|
}
|
|
944
|
-
return [hsv[0], c2 * 100,
|
|
944
|
+
return [hsv[0], c2 * 100, f2 * 100];
|
|
945
945
|
};
|
|
946
946
|
convert.hcg.rgb = function(hcg) {
|
|
947
947
|
const h = hcg[0] / 360;
|
|
948
948
|
const c2 = hcg[1] / 100;
|
|
949
|
-
const
|
|
949
|
+
const g2 = hcg[2] / 100;
|
|
950
950
|
if (c2 === 0) {
|
|
951
|
-
return [
|
|
951
|
+
return [g2 * 255, g2 * 255, g2 * 255];
|
|
952
952
|
}
|
|
953
953
|
const pure = [0, 0, 0];
|
|
954
954
|
const hi = h % 1 * 6;
|
|
@@ -986,7 +986,7 @@ var require_conversions = __commonJS({
|
|
|
986
986
|
pure[1] = 0;
|
|
987
987
|
pure[2] = w;
|
|
988
988
|
}
|
|
989
|
-
mg = (1 - c2) *
|
|
989
|
+
mg = (1 - c2) * g2;
|
|
990
990
|
return [
|
|
991
991
|
(c2 * pure[0] + mg) * 255,
|
|
992
992
|
(c2 * pure[1] + mg) * 255,
|
|
@@ -995,18 +995,18 @@ var require_conversions = __commonJS({
|
|
|
995
995
|
};
|
|
996
996
|
convert.hcg.hsv = function(hcg) {
|
|
997
997
|
const c2 = hcg[1] / 100;
|
|
998
|
-
const
|
|
999
|
-
const v = c2 +
|
|
1000
|
-
let
|
|
998
|
+
const g2 = hcg[2] / 100;
|
|
999
|
+
const v = c2 + g2 * (1 - c2);
|
|
1000
|
+
let f2 = 0;
|
|
1001
1001
|
if (v > 0) {
|
|
1002
|
-
|
|
1002
|
+
f2 = c2 / v;
|
|
1003
1003
|
}
|
|
1004
|
-
return [hcg[0],
|
|
1004
|
+
return [hcg[0], f2 * 100, v * 100];
|
|
1005
1005
|
};
|
|
1006
1006
|
convert.hcg.hsl = function(hcg) {
|
|
1007
1007
|
const c2 = hcg[1] / 100;
|
|
1008
|
-
const
|
|
1009
|
-
const l2 =
|
|
1008
|
+
const g2 = hcg[2] / 100;
|
|
1009
|
+
const l2 = g2 * (1 - c2) + 0.5 * c2;
|
|
1010
1010
|
let s2 = 0;
|
|
1011
1011
|
if (l2 > 0 && l2 < 0.5) {
|
|
1012
1012
|
s2 = c2 / (2 * l2);
|
|
@@ -1017,20 +1017,20 @@ var require_conversions = __commonJS({
|
|
|
1017
1017
|
};
|
|
1018
1018
|
convert.hcg.hwb = function(hcg) {
|
|
1019
1019
|
const c2 = hcg[1] / 100;
|
|
1020
|
-
const
|
|
1021
|
-
const v = c2 +
|
|
1020
|
+
const g2 = hcg[2] / 100;
|
|
1021
|
+
const v = c2 + g2 * (1 - c2);
|
|
1022
1022
|
return [hcg[0], (v - c2) * 100, (1 - v) * 100];
|
|
1023
1023
|
};
|
|
1024
1024
|
convert.hwb.hcg = function(hwb) {
|
|
1025
1025
|
const w = hwb[1] / 100;
|
|
1026
|
-
const
|
|
1027
|
-
const v = 1 -
|
|
1026
|
+
const b2 = hwb[2] / 100;
|
|
1027
|
+
const v = 1 - b2;
|
|
1028
1028
|
const c2 = v - w;
|
|
1029
|
-
let
|
|
1029
|
+
let g2 = 0;
|
|
1030
1030
|
if (c2 < 1) {
|
|
1031
|
-
|
|
1031
|
+
g2 = (v - c2) / (1 - c2);
|
|
1032
1032
|
}
|
|
1033
|
-
return [hwb[0], c2 * 100,
|
|
1033
|
+
return [hwb[0], c2 * 100, g2 * 100];
|
|
1034
1034
|
};
|
|
1035
1035
|
convert.apple.rgb = function(apple) {
|
|
1036
1036
|
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
@@ -1217,7 +1217,7 @@ var require_ansi_styles = __commonJS({
|
|
|
1217
1217
|
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
1218
1218
|
};
|
|
1219
1219
|
var ansi2ansi = (n2) => n2;
|
|
1220
|
-
var rgb2rgb = (r2,
|
|
1220
|
+
var rgb2rgb = (r2, g2, b2) => [r2, g2, b2];
|
|
1221
1221
|
var setLazyProperty = (object, property, get) => {
|
|
1222
1222
|
Object.defineProperty(object, property, {
|
|
1223
1223
|
get: () => {
|
|
@@ -1752,14 +1752,14 @@ var require_utf8 = __commonJS({
|
|
|
1752
1752
|
hasBOM = true;
|
|
1753
1753
|
}
|
|
1754
1754
|
for (var i2 = 0; i2 < det.fRawLength; i2++) {
|
|
1755
|
-
var
|
|
1756
|
-
if ((
|
|
1755
|
+
var b2 = input[i2];
|
|
1756
|
+
if ((b2 & 128) == 0)
|
|
1757
1757
|
continue;
|
|
1758
|
-
if ((
|
|
1758
|
+
if ((b2 & 224) == 192) {
|
|
1759
1759
|
trailBytes = 1;
|
|
1760
|
-
} else if ((
|
|
1760
|
+
} else if ((b2 & 240) == 224) {
|
|
1761
1761
|
trailBytes = 2;
|
|
1762
|
-
} else if ((
|
|
1762
|
+
} else if ((b2 & 248) == 240) {
|
|
1763
1763
|
trailBytes = 3;
|
|
1764
1764
|
} else {
|
|
1765
1765
|
numInvalid++;
|
|
@@ -2642,8 +2642,8 @@ var require_sbcs = __commonJS({
|
|
|
2642
2642
|
this.hitCount += 1;
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
|
-
this.addByte = function(
|
|
2646
|
-
this.ngram = (this.ngram << 8) + (
|
|
2645
|
+
this.addByte = function(b2) {
|
|
2646
|
+
this.ngram = (this.ngram << 8) + (b2 & 255) & N_GRAM_MASK;
|
|
2647
2647
|
this.lookup(this.ngram);
|
|
2648
2648
|
};
|
|
2649
2649
|
this.nextByte = function(det) {
|
|
@@ -2652,10 +2652,10 @@ var require_sbcs = __commonJS({
|
|
|
2652
2652
|
return det.fInputBytes[this.byteIndex++] & 255;
|
|
2653
2653
|
};
|
|
2654
2654
|
this.parse = function(det, spaceCh) {
|
|
2655
|
-
var
|
|
2655
|
+
var b2, ignoreSpace = false;
|
|
2656
2656
|
this.spaceChar = spaceCh;
|
|
2657
|
-
while ((
|
|
2658
|
-
var mb = this.byteMap[
|
|
2657
|
+
while ((b2 = this.nextByte(det)) >= 0) {
|
|
2658
|
+
var mb = this.byteMap[b2];
|
|
2659
2659
|
if (mb != 0) {
|
|
2660
2660
|
if (!(mb == this.spaceChar && ignoreSpace)) {
|
|
2661
2661
|
this.addByte(mb);
|
|
@@ -7113,8 +7113,8 @@ var require_chardet = __commonJS({
|
|
|
7113
7113
|
return rec.match(context);
|
|
7114
7114
|
}).filter(function(match) {
|
|
7115
7115
|
return !!match;
|
|
7116
|
-
}).sort(function(a2,
|
|
7117
|
-
return
|
|
7116
|
+
}).sort(function(a2, b2) {
|
|
7117
|
+
return b2.confidence - a2.confidence;
|
|
7118
7118
|
});
|
|
7119
7119
|
if (opts && opts.returnAllMatches === true) {
|
|
7120
7120
|
return matches;
|
|
@@ -10907,20 +10907,20 @@ var require_CreateFileError = __commonJS({
|
|
|
10907
10907
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/CreateFileError.js"(exports) {
|
|
10908
10908
|
"use strict";
|
|
10909
10909
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
10910
|
-
var extendStatics2 = function(d,
|
|
10911
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
10912
|
-
d2.__proto__ =
|
|
10913
|
-
} || function(d2,
|
|
10914
|
-
for (var
|
|
10910
|
+
var extendStatics2 = function(d, b2) {
|
|
10911
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
10912
|
+
d2.__proto__ = b3;
|
|
10913
|
+
} || function(d2, b3) {
|
|
10914
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
10915
10915
|
};
|
|
10916
|
-
return extendStatics2(d,
|
|
10916
|
+
return extendStatics2(d, b2);
|
|
10917
10917
|
};
|
|
10918
|
-
return function(d,
|
|
10919
|
-
extendStatics2(d,
|
|
10918
|
+
return function(d, b2) {
|
|
10919
|
+
extendStatics2(d, b2);
|
|
10920
10920
|
function __() {
|
|
10921
10921
|
this.constructor = d;
|
|
10922
10922
|
}
|
|
10923
|
-
d.prototype =
|
|
10923
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10924
10924
|
};
|
|
10925
10925
|
}();
|
|
10926
10926
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10952,20 +10952,20 @@ var require_LaunchEditorError = __commonJS({
|
|
|
10952
10952
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/LaunchEditorError.js"(exports) {
|
|
10953
10953
|
"use strict";
|
|
10954
10954
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
10955
|
-
var extendStatics2 = function(d,
|
|
10956
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
10957
|
-
d2.__proto__ =
|
|
10958
|
-
} || function(d2,
|
|
10959
|
-
for (var
|
|
10955
|
+
var extendStatics2 = function(d, b2) {
|
|
10956
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
10957
|
+
d2.__proto__ = b3;
|
|
10958
|
+
} || function(d2, b3) {
|
|
10959
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
10960
10960
|
};
|
|
10961
|
-
return extendStatics2(d,
|
|
10961
|
+
return extendStatics2(d, b2);
|
|
10962
10962
|
};
|
|
10963
|
-
return function(d,
|
|
10964
|
-
extendStatics2(d,
|
|
10963
|
+
return function(d, b2) {
|
|
10964
|
+
extendStatics2(d, b2);
|
|
10965
10965
|
function __() {
|
|
10966
10966
|
this.constructor = d;
|
|
10967
10967
|
}
|
|
10968
|
-
d.prototype =
|
|
10968
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
10969
10969
|
};
|
|
10970
10970
|
}();
|
|
10971
10971
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10997,20 +10997,20 @@ var require_ReadFileError = __commonJS({
|
|
|
10997
10997
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/ReadFileError.js"(exports) {
|
|
10998
10998
|
"use strict";
|
|
10999
10999
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
11000
|
-
var extendStatics2 = function(d,
|
|
11001
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
11002
|
-
d2.__proto__ =
|
|
11003
|
-
} || function(d2,
|
|
11004
|
-
for (var
|
|
11000
|
+
var extendStatics2 = function(d, b2) {
|
|
11001
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
11002
|
+
d2.__proto__ = b3;
|
|
11003
|
+
} || function(d2, b3) {
|
|
11004
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
11005
11005
|
};
|
|
11006
|
-
return extendStatics2(d,
|
|
11006
|
+
return extendStatics2(d, b2);
|
|
11007
11007
|
};
|
|
11008
|
-
return function(d,
|
|
11009
|
-
extendStatics2(d,
|
|
11008
|
+
return function(d, b2) {
|
|
11009
|
+
extendStatics2(d, b2);
|
|
11010
11010
|
function __() {
|
|
11011
11011
|
this.constructor = d;
|
|
11012
11012
|
}
|
|
11013
|
-
d.prototype =
|
|
11013
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
11014
11014
|
};
|
|
11015
11015
|
}();
|
|
11016
11016
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -11042,20 +11042,20 @@ var require_RemoveFileError = __commonJS({
|
|
|
11042
11042
|
"../../node_modules/.pnpm/external-editor@3.1.0/node_modules/external-editor/main/errors/RemoveFileError.js"(exports) {
|
|
11043
11043
|
"use strict";
|
|
11044
11044
|
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
|
11045
|
-
var extendStatics2 = function(d,
|
|
11046
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
11047
|
-
d2.__proto__ =
|
|
11048
|
-
} || function(d2,
|
|
11049
|
-
for (var
|
|
11045
|
+
var extendStatics2 = function(d, b2) {
|
|
11046
|
+
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
11047
|
+
d2.__proto__ = b3;
|
|
11048
|
+
} || function(d2, b3) {
|
|
11049
|
+
for (var p in b3) if (b3.hasOwnProperty(p)) d2[p] = b3[p];
|
|
11050
11050
|
};
|
|
11051
|
-
return extendStatics2(d,
|
|
11051
|
+
return extendStatics2(d, b2);
|
|
11052
11052
|
};
|
|
11053
|
-
return function(d,
|
|
11054
|
-
extendStatics2(d,
|
|
11053
|
+
return function(d, b2) {
|
|
11054
|
+
extendStatics2(d, b2);
|
|
11055
11055
|
function __() {
|
|
11056
11056
|
this.constructor = d;
|
|
11057
11057
|
}
|
|
11058
|
-
d.prototype =
|
|
11058
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
11059
11059
|
};
|
|
11060
11060
|
}();
|
|
11061
11061
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -12097,9 +12097,9 @@ var SignalExit = class extends SignalExitBase {
|
|
|
12097
12097
|
this.#sigListeners[sig] = () => {
|
|
12098
12098
|
const listeners = this.#process.listeners(sig);
|
|
12099
12099
|
let { count } = this.#emitter;
|
|
12100
|
-
const
|
|
12101
|
-
if (typeof
|
|
12102
|
-
count +=
|
|
12100
|
+
const p = process4;
|
|
12101
|
+
if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
|
|
12102
|
+
count += p.__signal_exit_emitter__.count;
|
|
12103
12103
|
}
|
|
12104
12104
|
if (listeners.length === count) {
|
|
12105
12105
|
this.unload();
|
|
@@ -13394,8 +13394,8 @@ async function mergeDts({
|
|
|
13394
13394
|
filepath,
|
|
13395
13395
|
meta
|
|
13396
13396
|
}) {
|
|
13397
|
-
const previousAst =
|
|
13398
|
-
const currentAst =
|
|
13397
|
+
const previousAst = U5e(previousContent);
|
|
13398
|
+
const currentAst = U5e(fileContent);
|
|
13399
13399
|
for (const imp of previousAst.imports.$items) {
|
|
13400
13400
|
currentAst.imports[imp.local] = imp;
|
|
13401
13401
|
}
|
|
@@ -13412,7 +13412,7 @@ async function mergeDts({
|
|
|
13412
13412
|
currentAst.$ast.body.splice(index, 0, node);
|
|
13413
13413
|
}
|
|
13414
13414
|
}
|
|
13415
|
-
const res = await
|
|
13415
|
+
const res = await tps(currentAst.generate().code, meta, {
|
|
13416
13416
|
filepath
|
|
13417
13417
|
});
|
|
13418
13418
|
return clearExports(res.code, meta);
|
|
@@ -13433,7 +13433,7 @@ async function executeOperationFile(op, {
|
|
|
13433
13433
|
}) {
|
|
13434
13434
|
const code = await readFile(op.sourceAbsolute, { encoding: "utf-8" });
|
|
13435
13435
|
const filepath = relative(op.source, op.sourceAbsolute);
|
|
13436
|
-
const result = await
|
|
13436
|
+
const result = await tps(code, meta, {
|
|
13437
13437
|
filepath
|
|
13438
13438
|
});
|
|
13439
13439
|
let fileContent = result.code;
|
|
@@ -13471,7 +13471,7 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
13471
13471
|
case ".js":
|
|
13472
13472
|
case ".tsx":
|
|
13473
13473
|
case ".jsx":
|
|
13474
|
-
return
|
|
13474
|
+
return Dit(fileContent, {
|
|
13475
13475
|
filepath
|
|
13476
13476
|
});
|
|
13477
13477
|
case ".env":
|
|
@@ -13497,10 +13497,10 @@ async function transformFileAfterExec(filepath, fileContent) {
|
|
|
13497
13497
|
}
|
|
13498
13498
|
throw new Error(`Unsupported file extension ${parsed.base} (${filepath})`);
|
|
13499
13499
|
}
|
|
13500
|
-
async function importTransformer(
|
|
13501
|
-
const importFile = isWin ? "file://" +
|
|
13502
|
-
const
|
|
13503
|
-
return
|
|
13500
|
+
async function importTransformer(p) {
|
|
13501
|
+
const importFile = isWin ? "file://" + p : p;
|
|
13502
|
+
const f2 = await import(importFile);
|
|
13503
|
+
return f2.default;
|
|
13504
13504
|
}
|
|
13505
13505
|
async function executeOperationTransform(op, {
|
|
13506
13506
|
meta,
|
|
@@ -13522,9 +13522,9 @@ async function executeOperationTransform(op, {
|
|
|
13522
13522
|
};
|
|
13523
13523
|
}
|
|
13524
13524
|
function orderBy(array, getter) {
|
|
13525
|
-
return array.slice().sort((a2,
|
|
13525
|
+
return array.slice().sort((a2, b2) => {
|
|
13526
13526
|
const valueA = getter(a2);
|
|
13527
|
-
const valueB = getter(
|
|
13527
|
+
const valueB = getter(b2);
|
|
13528
13528
|
if (valueA < valueB) return -1;
|
|
13529
13529
|
if (valueA > valueB) return 1;
|
|
13530
13530
|
return 0;
|
|
@@ -13693,21 +13693,21 @@ async function main(options, meta) {
|
|
|
13693
13693
|
}
|
|
13694
13694
|
const rearranger = new OperationsRearranger();
|
|
13695
13695
|
for (const source of sources) {
|
|
13696
|
-
for await (const
|
|
13697
|
-
const target = toDist(
|
|
13696
|
+
for await (const p of walk(source)) {
|
|
13697
|
+
const target = toDist(p, source, options.dist);
|
|
13698
13698
|
const targetAbsolute = path.isAbsolute(target) ? target : path.resolve(target);
|
|
13699
|
-
const parsed = path.parse(
|
|
13699
|
+
const parsed = path.parse(p);
|
|
13700
13700
|
if (parsed.name.match(reIgnoreFile)) {
|
|
13701
13701
|
continue;
|
|
13702
13702
|
} else if (parsed.name.startsWith("$") && parsed.ext.match(/\.tsx?$/)) {
|
|
13703
13703
|
throw new Error(
|
|
13704
|
-
`Typescript file needs to be compiled before it can be executed: '${
|
|
13704
|
+
`Typescript file needs to be compiled before it can be executed: '${p}'.
|
|
13705
13705
|
Please report this issue to https://github.com/vikejs/bati`
|
|
13706
13706
|
);
|
|
13707
13707
|
} else if ((parsed.name.startsWith("!$") || parsed.name.startsWith("$")) && parsed.ext.match(/\.jsx?$/)) {
|
|
13708
13708
|
rearranger.addFile({
|
|
13709
13709
|
source,
|
|
13710
|
-
sourceAbsolute:
|
|
13710
|
+
sourceAbsolute: p,
|
|
13711
13711
|
destination: target,
|
|
13712
13712
|
destinationAbsolute: targetAbsolute,
|
|
13713
13713
|
kind: "transform",
|
|
@@ -13717,7 +13717,7 @@ Please report this issue to https://github.com/vikejs/bati`
|
|
|
13717
13717
|
} else {
|
|
13718
13718
|
rearranger.addFile({
|
|
13719
13719
|
source,
|
|
13720
|
-
sourceAbsolute:
|
|
13720
|
+
sourceAbsolute: p,
|
|
13721
13721
|
destination: target,
|
|
13722
13722
|
destinationAbsolute: targetAbsolute,
|
|
13723
13723
|
kind: "file",
|
|
@@ -14380,8 +14380,8 @@ var features = [
|
|
|
14380
14380
|
disabled: true
|
|
14381
14381
|
}
|
|
14382
14382
|
];
|
|
14383
|
-
var flags = features.map((
|
|
14384
|
-
var cliFlags = features.filter((
|
|
14383
|
+
var flags = features.map((f2) => f2.flag);
|
|
14384
|
+
var cliFlags = features.filter((f2) => !f2.invisibleCli).map((f2) => f2.flag);
|
|
14385
14385
|
|
|
14386
14386
|
// ../features/dist/index.js
|
|
14387
14387
|
var BatiSet = class extends Set {
|
|
@@ -14390,8 +14390,8 @@ var BatiSet = class extends Set {
|
|
|
14390
14390
|
#databases;
|
|
14391
14391
|
constructor(flags2, allFeatures) {
|
|
14392
14392
|
super(flags2);
|
|
14393
|
-
this.#servers = new Set(allFeatures.filter((
|
|
14394
|
-
this.#databases = new Set(allFeatures.filter((
|
|
14393
|
+
this.#servers = new Set(allFeatures.filter((f2) => f2.category === "Server").map((f2) => f2.flag));
|
|
14394
|
+
this.#databases = new Set(allFeatures.filter((f2) => f2.category === "Database").map((f2) => f2.flag));
|
|
14395
14395
|
}
|
|
14396
14396
|
hasOneOf(a2) {
|
|
14397
14397
|
for (const x of this) if (a2.has(x)) return true;
|
|
@@ -14436,11 +14436,11 @@ function filter(message, callback) {
|
|
|
14436
14436
|
}
|
|
14437
14437
|
function prepare(fts) {
|
|
14438
14438
|
const s2 = /* @__PURE__ */ new Set();
|
|
14439
|
-
for (const
|
|
14440
|
-
if (flags.includes(
|
|
14441
|
-
s2.add(features.find((feat) => feat.flag ===
|
|
14439
|
+
for (const f2 of fts) {
|
|
14440
|
+
if (flags.includes(f2)) {
|
|
14441
|
+
s2.add(features.find((feat) => feat.flag === f2).category);
|
|
14442
14442
|
}
|
|
14443
|
-
s2.add(
|
|
14443
|
+
s2.add(f2);
|
|
14444
14444
|
}
|
|
14445
14445
|
return s2;
|
|
14446
14446
|
}
|
|
@@ -14512,7 +14512,7 @@ function execRules(fts, rulesMessages2) {
|
|
|
14512
14512
|
return messages;
|
|
14513
14513
|
}
|
|
14514
14514
|
|
|
14515
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
14515
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
14516
14516
|
var LogLevels = {
|
|
14517
14517
|
silent: Number.NEGATIVE_INFINITY,
|
|
14518
14518
|
fatal: 0,
|
|
@@ -14631,7 +14631,7 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
14631
14631
|
function createDefu(merger) {
|
|
14632
14632
|
return (...arguments_) => (
|
|
14633
14633
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
14634
|
-
arguments_.reduce((
|
|
14634
|
+
arguments_.reduce((p, c2) => _defu(p, c2, "", merger), {})
|
|
14635
14635
|
);
|
|
14636
14636
|
}
|
|
14637
14637
|
var defu = createDefu();
|
|
@@ -15020,12 +15020,12 @@ function createConsola(options = {}) {
|
|
|
15020
15020
|
return new Consola(options);
|
|
15021
15021
|
}
|
|
15022
15022
|
|
|
15023
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15023
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs
|
|
15024
15024
|
import { formatWithOptions } from "node:util";
|
|
15025
15025
|
import { sep } from "node:path";
|
|
15026
|
-
function parseStack(stack) {
|
|
15026
|
+
function parseStack(stack, message) {
|
|
15027
15027
|
const cwd = process.cwd() + sep;
|
|
15028
|
-
const lines2 = stack.split("\n").splice(
|
|
15028
|
+
const lines2 = stack.split("\n").splice(message.split("\n").length).map((l2) => l2.trim().replace("file://", "").replace(cwd, ""));
|
|
15029
15029
|
return lines2;
|
|
15030
15030
|
}
|
|
15031
15031
|
function writeStream(data, stream) {
|
|
@@ -15034,14 +15034,14 @@ function writeStream(data, stream) {
|
|
|
15034
15034
|
}
|
|
15035
15035
|
var bracket = (x) => x ? `[${x}]` : "";
|
|
15036
15036
|
var BasicReporter = class {
|
|
15037
|
-
formatStack(stack, opts) {
|
|
15037
|
+
formatStack(stack, message, opts) {
|
|
15038
15038
|
const indent = " ".repeat((opts?.errorLevel || 0) + 1);
|
|
15039
|
-
return indent + parseStack(stack).join(`
|
|
15039
|
+
return indent + parseStack(stack, message).join(`
|
|
15040
15040
|
${indent}`);
|
|
15041
15041
|
}
|
|
15042
15042
|
formatError(err, opts) {
|
|
15043
15043
|
const message = err.message ?? formatWithOptions(opts, err);
|
|
15044
|
-
const stack = err.stack ? this.formatStack(err.stack, opts) : "";
|
|
15044
|
+
const stack = err.stack ? this.formatStack(err.stack, message, opts) : "";
|
|
15045
15045
|
const level = opts?.errorLevel || 0;
|
|
15046
15046
|
const causedPrefix = level > 0 ? `${" ".repeat(level)}[cause]: ` : "";
|
|
15047
15047
|
const causedError = err.cause ? "\n\n" + this.formatError(err.cause, { ...opts, errorLevel: level + 1 }) : "";
|
|
@@ -15089,10 +15089,10 @@ ${indent}`);
|
|
|
15089
15089
|
}
|
|
15090
15090
|
};
|
|
15091
15091
|
|
|
15092
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15093
|
-
import
|
|
15092
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15093
|
+
import g$1 from "node:process";
|
|
15094
15094
|
|
|
15095
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15095
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs
|
|
15096
15096
|
import * as tty from "node:tty";
|
|
15097
15097
|
var {
|
|
15098
15098
|
env = {},
|
|
@@ -15279,7 +15279,10 @@ function box(text, _opts = {}) {
|
|
|
15279
15279
|
}
|
|
15280
15280
|
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
15281
15281
|
const height2 = textLines.length + paddingOffset;
|
|
15282
|
-
const width = Math.max(
|
|
15282
|
+
const width = Math.max(
|
|
15283
|
+
...textLines.map((line) => stripAnsi(line).length),
|
|
15284
|
+
opts.title ? stripAnsi(opts.title).length : 0
|
|
15285
|
+
) + paddingOffset;
|
|
15283
15286
|
const widthOffset = width + paddingOffset;
|
|
15284
15287
|
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
15285
15288
|
if (opts.style.marginTop > 0) {
|
|
@@ -15325,70 +15328,70 @@ function box(text, _opts = {}) {
|
|
|
15325
15328
|
return boxLines.join("\n");
|
|
15326
15329
|
}
|
|
15327
15330
|
|
|
15328
|
-
// ../../node_modules/.pnpm/consola@3.4.
|
|
15331
|
+
// ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/index.mjs
|
|
15329
15332
|
var r = /* @__PURE__ */ Object.create(null);
|
|
15330
15333
|
var i = (e) => globalThis.process?.env || import.meta.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e ? r : globalThis);
|
|
15331
|
-
var
|
|
15332
|
-
return i()[
|
|
15333
|
-
}, has(e,
|
|
15334
|
+
var o = new Proxy(r, { get(e, s2) {
|
|
15335
|
+
return i()[s2] ?? r[s2];
|
|
15336
|
+
}, has(e, s2) {
|
|
15334
15337
|
const E = i();
|
|
15335
|
-
return
|
|
15336
|
-
}, set(e,
|
|
15337
|
-
const
|
|
15338
|
-
return
|
|
15339
|
-
}, deleteProperty(e,
|
|
15340
|
-
if (!
|
|
15338
|
+
return s2 in E || s2 in r;
|
|
15339
|
+
}, set(e, s2, E) {
|
|
15340
|
+
const B = i(true);
|
|
15341
|
+
return B[s2] = E, true;
|
|
15342
|
+
}, deleteProperty(e, s2) {
|
|
15343
|
+
if (!s2) return false;
|
|
15341
15344
|
const E = i(true);
|
|
15342
|
-
return delete E[
|
|
15345
|
+
return delete E[s2], true;
|
|
15343
15346
|
}, ownKeys() {
|
|
15344
15347
|
const e = i(true);
|
|
15345
15348
|
return Object.keys(e);
|
|
15346
15349
|
} });
|
|
15347
15350
|
var t = typeof process < "u" && process.env && process.env.NODE_ENV || "";
|
|
15348
|
-
var
|
|
15349
|
-
function
|
|
15350
|
-
if (globalThis.process?.env) for (const e of
|
|
15351
|
-
const
|
|
15352
|
-
if (globalThis.process?.env[
|
|
15351
|
+
var f = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
|
|
15352
|
+
function b() {
|
|
15353
|
+
if (globalThis.process?.env) for (const e of f) {
|
|
15354
|
+
const s2 = e[1] || e[0];
|
|
15355
|
+
if (globalThis.process?.env[s2]) return { name: e[0].toLowerCase(), ...e[2] };
|
|
15353
15356
|
}
|
|
15354
15357
|
return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
|
|
15355
15358
|
}
|
|
15356
|
-
var l =
|
|
15359
|
+
var l = b();
|
|
15357
15360
|
l.name;
|
|
15358
15361
|
function n(e) {
|
|
15359
15362
|
return e ? e !== "false" : false;
|
|
15360
15363
|
}
|
|
15361
15364
|
var I = globalThis.process?.platform || "";
|
|
15362
|
-
var T = n(
|
|
15363
|
-
var
|
|
15364
|
-
var
|
|
15365
|
-
var
|
|
15366
|
-
n(
|
|
15367
|
-
var
|
|
15368
|
-
!n(
|
|
15365
|
+
var T = n(o.CI) || l.ci !== false;
|
|
15366
|
+
var a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY);
|
|
15367
|
+
var g = n(o.DEBUG);
|
|
15368
|
+
var R = t === "test" || n(o.TEST);
|
|
15369
|
+
n(o.MINIMAL) || T || R || !a;
|
|
15370
|
+
var A = /^win/i.test(I);
|
|
15371
|
+
!n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM !== "dumb" || T);
|
|
15369
15372
|
var C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
|
|
15370
15373
|
Number(C?.split(".")[0]) || null;
|
|
15371
15374
|
var y = globalThis.process || /* @__PURE__ */ Object.create(null);
|
|
15372
|
-
var
|
|
15373
|
-
new Proxy(y, { get(e,
|
|
15374
|
-
if (
|
|
15375
|
-
if (
|
|
15376
|
-
if (
|
|
15375
|
+
var _ = { versions: {} };
|
|
15376
|
+
new Proxy(y, { get(e, s2) {
|
|
15377
|
+
if (s2 === "env") return o;
|
|
15378
|
+
if (s2 in e) return e[s2];
|
|
15379
|
+
if (s2 in _) return _[s2];
|
|
15377
15380
|
} });
|
|
15378
|
-
var
|
|
15379
|
-
var
|
|
15381
|
+
var c = globalThis.process?.release?.name === "node";
|
|
15382
|
+
var O = !!globalThis.Bun || !!globalThis.process?.versions?.bun;
|
|
15380
15383
|
var D = !!globalThis.Deno;
|
|
15381
|
-
var
|
|
15384
|
+
var L = !!globalThis.fastly;
|
|
15382
15385
|
var S = !!globalThis.Netlify;
|
|
15383
|
-
var
|
|
15384
|
-
var
|
|
15385
|
-
var F = [[S, "netlify"], [
|
|
15386
|
+
var u = !!globalThis.EdgeRuntime;
|
|
15387
|
+
var N = globalThis.navigator?.userAgent === "Cloudflare-Workers";
|
|
15388
|
+
var F = [[S, "netlify"], [u, "edge-light"], [N, "workerd"], [L, "fastly"], [D, "deno"], [O, "bun"], [c, "node"]];
|
|
15386
15389
|
function G() {
|
|
15387
|
-
const e = F.find((
|
|
15390
|
+
const e = F.find((s2) => s2[0]);
|
|
15388
15391
|
if (e) return { name: e[1] };
|
|
15389
15392
|
}
|
|
15390
|
-
var
|
|
15391
|
-
|
|
15393
|
+
var P = G();
|
|
15394
|
+
P?.name || "";
|
|
15392
15395
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
15393
15396
|
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
15394
15397
|
const pattern = [
|
|
@@ -15475,9 +15478,9 @@ function stringWidth$1(string, options = {}) {
|
|
|
15475
15478
|
return width;
|
|
15476
15479
|
}
|
|
15477
15480
|
function isUnicodeSupported2() {
|
|
15478
|
-
const { env: env3 } =
|
|
15481
|
+
const { env: env3 } = g$1;
|
|
15479
15482
|
const { TERM, TERM_PROGRAM } = env3;
|
|
15480
|
-
if (
|
|
15483
|
+
if (g$1.platform !== "win32") {
|
|
15481
15484
|
return TERM !== "linux";
|
|
15482
15485
|
}
|
|
15483
15486
|
return Boolean(env3.WT_SESSION) || Boolean(env3.TERMINUS_SUBLIME) || env3.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env3.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
@@ -15516,10 +15519,10 @@ function stringWidth(str) {
|
|
|
15516
15519
|
return stringWidth$1(str);
|
|
15517
15520
|
}
|
|
15518
15521
|
var FancyReporter = class extends BasicReporter {
|
|
15519
|
-
formatStack(stack, opts) {
|
|
15522
|
+
formatStack(stack, message, opts) {
|
|
15520
15523
|
const indent = " ".repeat((opts?.errorLevel || 0) + 1);
|
|
15521
15524
|
return `
|
|
15522
|
-
${indent}` + parseStack(stack).map(
|
|
15525
|
+
${indent}` + parseStack(stack, message).map(
|
|
15523
15526
|
(line) => " " + line.replace(/^at +/, (m) => colors8.gray(m)).replace(/\((.+)\)/, (_2, m) => `(${colors8.cyan(m)})`)
|
|
15524
15527
|
).join(`
|
|
15525
15528
|
${indent}`);
|
|
@@ -15564,7 +15567,7 @@ ${indent}`);
|
|
|
15564
15567
|
);
|
|
15565
15568
|
if (logObj.type === "trace") {
|
|
15566
15569
|
const _err = new Error("Trace: " + logObj.message);
|
|
15567
|
-
line += this.formatStack(_err.stack || "");
|
|
15570
|
+
line += this.formatStack(_err.stack || "", _err.message);
|
|
15568
15571
|
}
|
|
15569
15572
|
return isBadge ? "\n" + line + "\n" : line;
|
|
15570
15573
|
}
|
|
@@ -15588,19 +15591,19 @@ function createConsola2(options = {}) {
|
|
|
15588
15591
|
defaults: { level },
|
|
15589
15592
|
stdout: process.stdout,
|
|
15590
15593
|
stderr: process.stderr,
|
|
15591
|
-
prompt: (...args) => import("./prompt-
|
|
15594
|
+
prompt: (...args) => import("./prompt-AQUZNUSD.js").then((m) => m.prompt(...args)),
|
|
15592
15595
|
reporters: options.reporters || [
|
|
15593
|
-
options.fancy ?? !(T ||
|
|
15596
|
+
options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
|
|
15594
15597
|
],
|
|
15595
15598
|
...options
|
|
15596
15599
|
});
|
|
15597
15600
|
return consola2;
|
|
15598
15601
|
}
|
|
15599
15602
|
function _getDefaultLogLevel() {
|
|
15600
|
-
if (
|
|
15603
|
+
if (g) {
|
|
15601
15604
|
return LogLevels.debug;
|
|
15602
15605
|
}
|
|
15603
|
-
if (
|
|
15606
|
+
if (R) {
|
|
15604
15607
|
return LogLevels.warn;
|
|
15605
15608
|
}
|
|
15606
15609
|
return LogLevels.info;
|
|
@@ -15692,13 +15695,13 @@ function lowerFirst(str) {
|
|
|
15692
15695
|
return str ? str[0].toLowerCase() + str.slice(1) : "";
|
|
15693
15696
|
}
|
|
15694
15697
|
function pascalCase(str, opts) {
|
|
15695
|
-
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((
|
|
15698
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
|
|
15696
15699
|
}
|
|
15697
15700
|
function camelCase(str, opts) {
|
|
15698
15701
|
return lowerFirst(pascalCase(str || "", opts));
|
|
15699
15702
|
}
|
|
15700
15703
|
function kebabCase(str, joiner) {
|
|
15701
|
-
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((
|
|
15704
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
|
|
15702
15705
|
}
|
|
15703
15706
|
function toArr(any) {
|
|
15704
15707
|
return any == void 0 ? [] : Array.isArray(any) ? any : [any];
|
|
@@ -16174,22 +16177,22 @@ var {
|
|
|
16174
16177
|
} = createColors2();
|
|
16175
16178
|
|
|
16176
16179
|
// ../../node_modules/.pnpm/sift@17.1.3/node_modules/sift/es5m/index.js
|
|
16177
|
-
var extendStatics = function(d,
|
|
16178
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2,
|
|
16179
|
-
d2.__proto__ =
|
|
16180
|
-
} || function(d2,
|
|
16181
|
-
for (var
|
|
16180
|
+
var extendStatics = function(d, b2) {
|
|
16181
|
+
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
|
16182
|
+
d2.__proto__ = b3;
|
|
16183
|
+
} || function(d2, b3) {
|
|
16184
|
+
for (var p in b3) if (Object.prototype.hasOwnProperty.call(b3, p)) d2[p] = b3[p];
|
|
16182
16185
|
};
|
|
16183
|
-
return extendStatics(d,
|
|
16186
|
+
return extendStatics(d, b2);
|
|
16184
16187
|
};
|
|
16185
|
-
function __extends(d,
|
|
16186
|
-
if (typeof
|
|
16187
|
-
throw new TypeError("Class extends value " + String(
|
|
16188
|
-
extendStatics(d,
|
|
16188
|
+
function __extends(d, b2) {
|
|
16189
|
+
if (typeof b2 !== "function" && b2 !== null)
|
|
16190
|
+
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
16191
|
+
extendStatics(d, b2);
|
|
16189
16192
|
function __() {
|
|
16190
16193
|
this.constructor = d;
|
|
16191
16194
|
}
|
|
16192
|
-
d.prototype =
|
|
16195
|
+
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
16193
16196
|
}
|
|
16194
16197
|
var typeChecker = function(type) {
|
|
16195
16198
|
var typeString = "[object " + type + "]";
|
|
@@ -16222,31 +16225,31 @@ var isProperty = function(item, key) {
|
|
|
16222
16225
|
var isVanillaObject = function(value) {
|
|
16223
16226
|
return value && (value.constructor === Object || value.constructor === Array || value.constructor.toString() === "function Object() { [native code] }" || value.constructor.toString() === "function Array() { [native code] }") && !value.toJSON;
|
|
16224
16227
|
};
|
|
16225
|
-
var equals = function(a2,
|
|
16226
|
-
if (a2 == null && a2 ==
|
|
16228
|
+
var equals = function(a2, b2) {
|
|
16229
|
+
if (a2 == null && a2 == b2) {
|
|
16227
16230
|
return true;
|
|
16228
16231
|
}
|
|
16229
|
-
if (a2 ===
|
|
16232
|
+
if (a2 === b2) {
|
|
16230
16233
|
return true;
|
|
16231
16234
|
}
|
|
16232
|
-
if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(
|
|
16235
|
+
if (Object.prototype.toString.call(a2) !== Object.prototype.toString.call(b2)) {
|
|
16233
16236
|
return false;
|
|
16234
16237
|
}
|
|
16235
16238
|
if (isArray(a2)) {
|
|
16236
|
-
if (a2.length !==
|
|
16239
|
+
if (a2.length !== b2.length) {
|
|
16237
16240
|
return false;
|
|
16238
16241
|
}
|
|
16239
16242
|
for (var i2 = 0, length_1 = a2.length; i2 < length_1; i2++) {
|
|
16240
|
-
if (!equals(a2[i2],
|
|
16243
|
+
if (!equals(a2[i2], b2[i2]))
|
|
16241
16244
|
return false;
|
|
16242
16245
|
}
|
|
16243
16246
|
return true;
|
|
16244
16247
|
} else if (isObject(a2)) {
|
|
16245
|
-
if (Object.keys(a2).length !== Object.keys(
|
|
16248
|
+
if (Object.keys(a2).length !== Object.keys(b2).length) {
|
|
16246
16249
|
return false;
|
|
16247
16250
|
}
|
|
16248
16251
|
for (var key in a2) {
|
|
16249
|
-
if (!equals(a2[key],
|
|
16252
|
+
if (!equals(a2[key], b2[key]))
|
|
16250
16253
|
return false;
|
|
16251
16254
|
}
|
|
16252
16255
|
return true;
|
|
@@ -16379,15 +16382,15 @@ var createTester = function(a2, compare) {
|
|
|
16379
16382
|
return a2;
|
|
16380
16383
|
}
|
|
16381
16384
|
if (a2 instanceof RegExp) {
|
|
16382
|
-
return function(
|
|
16383
|
-
var result = typeof
|
|
16385
|
+
return function(b2) {
|
|
16386
|
+
var result = typeof b2 === "string" && a2.test(b2);
|
|
16384
16387
|
a2.lastIndex = 0;
|
|
16385
16388
|
return result;
|
|
16386
16389
|
};
|
|
16387
16390
|
}
|
|
16388
16391
|
var comparableA = comparable(a2);
|
|
16389
|
-
return function(
|
|
16390
|
-
return compare(comparableA, comparable(
|
|
16392
|
+
return function(b2) {
|
|
16393
|
+
return compare(comparableA, comparable(b2));
|
|
16391
16394
|
};
|
|
16392
16395
|
};
|
|
16393
16396
|
var EqualsOperation = (
|
|
@@ -16422,8 +16425,8 @@ var numericalOperation = function(createTester2) {
|
|
|
16422
16425
|
return numericalOperationCreator(function(params, owneryQuery, options, name) {
|
|
16423
16426
|
var typeofParams = typeof comparable(params);
|
|
16424
16427
|
var test = createTester2(params);
|
|
16425
|
-
return new EqualsOperation(function(
|
|
16426
|
-
var actualValue = coercePotentiallyNull(
|
|
16428
|
+
return new EqualsOperation(function(b2) {
|
|
16429
|
+
var actualValue = coercePotentiallyNull(b2);
|
|
16427
16430
|
return typeof comparable(actualValue) === typeofParams && test(actualValue);
|
|
16428
16431
|
}, owneryQuery, options, name);
|
|
16429
16432
|
});
|
|
@@ -16823,29 +16826,29 @@ var $in = function(params, owneryQuery, options, name) {
|
|
|
16823
16826
|
return new $In(params, owneryQuery, options, name);
|
|
16824
16827
|
};
|
|
16825
16828
|
var $lt = numericalOperation(function(params) {
|
|
16826
|
-
return function(
|
|
16827
|
-
return
|
|
16829
|
+
return function(b2) {
|
|
16830
|
+
return b2 != null && b2 < params;
|
|
16828
16831
|
};
|
|
16829
16832
|
});
|
|
16830
16833
|
var $lte = numericalOperation(function(params) {
|
|
16831
|
-
return function(
|
|
16832
|
-
return
|
|
16834
|
+
return function(b2) {
|
|
16835
|
+
return b2 === params || b2 <= params;
|
|
16833
16836
|
};
|
|
16834
16837
|
});
|
|
16835
16838
|
var $gt = numericalOperation(function(params) {
|
|
16836
|
-
return function(
|
|
16837
|
-
return
|
|
16839
|
+
return function(b2) {
|
|
16840
|
+
return b2 != null && b2 > params;
|
|
16838
16841
|
};
|
|
16839
16842
|
});
|
|
16840
16843
|
var $gte = numericalOperation(function(params) {
|
|
16841
|
-
return function(
|
|
16842
|
-
return
|
|
16844
|
+
return function(b2) {
|
|
16845
|
+
return b2 === params || b2 >= params;
|
|
16843
16846
|
};
|
|
16844
16847
|
});
|
|
16845
16848
|
var $mod = function(_a, owneryQuery, options) {
|
|
16846
16849
|
var mod = _a[0], equalsValue = _a[1];
|
|
16847
|
-
return new EqualsOperation(function(
|
|
16848
|
-
return comparable(
|
|
16850
|
+
return new EqualsOperation(function(b2) {
|
|
16851
|
+
return comparable(b2) % mod === equalsValue;
|
|
16849
16852
|
}, owneryQuery, options);
|
|
16850
16853
|
};
|
|
16851
16854
|
var $exists = function(params, owneryQuery, options, name) {
|
|
@@ -16878,14 +16881,14 @@ var typeAliases = {
|
|
|
16878
16881
|
}
|
|
16879
16882
|
};
|
|
16880
16883
|
var $type = function(clazz, owneryQuery, options) {
|
|
16881
|
-
return new EqualsOperation(function(
|
|
16884
|
+
return new EqualsOperation(function(b2) {
|
|
16882
16885
|
if (typeof clazz === "string") {
|
|
16883
16886
|
if (!typeAliases[clazz]) {
|
|
16884
16887
|
throw new Error("Type alias does not exist");
|
|
16885
16888
|
}
|
|
16886
|
-
return typeAliases[clazz](
|
|
16889
|
+
return typeAliases[clazz](b2);
|
|
16887
16890
|
}
|
|
16888
|
-
return
|
|
16891
|
+
return b2 != null ? b2 instanceof clazz || b2.constructor === clazz : false;
|
|
16889
16892
|
}, owneryQuery, options);
|
|
16890
16893
|
};
|
|
16891
16894
|
var $and = function(params, ownerQuery, options, name) {
|
|
@@ -16909,8 +16912,8 @@ var $where = function(params, ownerQuery, options) {
|
|
|
16909
16912
|
} else {
|
|
16910
16913
|
throw new Error('In CSP mode, sift does not support strings in "$where" condition');
|
|
16911
16914
|
}
|
|
16912
|
-
return new EqualsOperation(function(
|
|
16913
|
-
return test.bind(
|
|
16915
|
+
return new EqualsOperation(function(b2) {
|
|
16916
|
+
return test.bind(b2)(b2);
|
|
16914
16917
|
}, ownerQuery, options);
|
|
16915
16918
|
};
|
|
16916
16919
|
var defaultOperations = /* @__PURE__ */ Object.freeze({
|
|
@@ -16956,7 +16959,7 @@ var createDefaultQueryTester = function(query, options) {
|
|
|
16956
16959
|
// package.json
|
|
16957
16960
|
var package_default = {
|
|
16958
16961
|
name: "@batijs/cli",
|
|
16959
|
-
version: "0.0.
|
|
16962
|
+
version: "0.0.423",
|
|
16960
16963
|
type: "module",
|
|
16961
16964
|
scripts: {
|
|
16962
16965
|
"check-types": "tsc --noEmit",
|
|
@@ -16977,7 +16980,7 @@ var package_default = {
|
|
|
16977
16980
|
"@types/which": "^3.0.4",
|
|
16978
16981
|
citty: "^0.1.6",
|
|
16979
16982
|
colorette: "^2.0.20",
|
|
16980
|
-
esbuild: "^0.25.
|
|
16983
|
+
esbuild: "^0.25.2",
|
|
16981
16984
|
execa: "^9.5.2",
|
|
16982
16985
|
rimraf: "^6.0.1",
|
|
16983
16986
|
sift: "^17.1.3",
|
|
@@ -17061,7 +17064,7 @@ Choose one of them, or simply remove selected Server`
|
|
|
17061
17064
|
var __filename = fileURLToPath(import.meta.url);
|
|
17062
17065
|
var __dirname = dirname(__filename);
|
|
17063
17066
|
var isWin2 = process.platform === "win32";
|
|
17064
|
-
var pm =
|
|
17067
|
+
var pm = _Ts();
|
|
17065
17068
|
function boilerplatesDir() {
|
|
17066
17069
|
if (existsSync2(join(__dirname, "boilerplates", "boilerplates.json"))) {
|
|
17067
17070
|
return join(__dirname, "boilerplates");
|
|
@@ -17084,7 +17087,7 @@ function toArg(flag, description) {
|
|
|
17084
17087
|
};
|
|
17085
17088
|
}
|
|
17086
17089
|
function findDescription(key) {
|
|
17087
|
-
const feat = features.find((
|
|
17090
|
+
const feat = features.find((f2) => f2.flag === key);
|
|
17088
17091
|
if (!feat) return;
|
|
17089
17092
|
if (feat.description) {
|
|
17090
17093
|
return feat.description;
|
|
@@ -17095,14 +17098,14 @@ function findDescription(key) {
|
|
|
17095
17098
|
}
|
|
17096
17099
|
}
|
|
17097
17100
|
function printOK(dist, flags2) {
|
|
17098
|
-
const arrow0 =
|
|
17099
|
-
const book0 =
|
|
17100
|
-
const list3 =
|
|
17101
|
-
const cmd3 =
|
|
17101
|
+
const arrow0 = aQr("\u2192", blueBright);
|
|
17102
|
+
const book0 = aQr("\u{1F4DA}", blueBright);
|
|
17103
|
+
const list3 = aQr("-", void 0, 3);
|
|
17104
|
+
const cmd3 = aQr("$", gray, 3);
|
|
17102
17105
|
console.log(bold(`${green("\u2713")} Project created at ${cyan(dist)} with:`));
|
|
17103
17106
|
console.log(list3(green("Vike")));
|
|
17104
17107
|
for (const key of flags2) {
|
|
17105
|
-
const feature = features.find((
|
|
17108
|
+
const feature = features.find((f2) => f2.flag === key);
|
|
17106
17109
|
if (!feature || !feature.label) continue;
|
|
17107
17110
|
console.log(list3(green(feature.label)));
|
|
17108
17111
|
}
|
|
@@ -17240,7 +17243,7 @@ function colorFirstLetter(choice) {
|
|
|
17240
17243
|
}
|
|
17241
17244
|
async function checkFlagsIncludesUiFramework(flags2) {
|
|
17242
17245
|
const uiFlags = features.filter((fs) => fs.category === "UI Framework").map((fs) => fs.flag);
|
|
17243
|
-
const uiFlagFound = flags2.some((
|
|
17246
|
+
const uiFlagFound = flags2.some((f2) => uiFlags.includes(f2));
|
|
17244
17247
|
if (!uiFlagFound) {
|
|
17245
17248
|
console.warn(
|
|
17246
17249
|
`${yellow("\u{1F6C8} You are scaffolding a barebone app.")} Go to ${underline("https://vike.dev/new")} to scaffold a full-fledged app with tools such as Tailwind, authentication, RPC, database, deployment, ...
|
|
@@ -17266,7 +17269,7 @@ async function checkFlagsIncludesUiFramework(flags2) {
|
|
|
17266
17269
|
}
|
|
17267
17270
|
function checkFlagsExist(flags2) {
|
|
17268
17271
|
const inValidOptions = flags2.reduce((acc, flag) => {
|
|
17269
|
-
if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((
|
|
17272
|
+
if (!Object.prototype.hasOwnProperty.call(defaultDef, flag) && !features.some((f2) => f2.flag === flag)) {
|
|
17270
17273
|
acc.push(flag);
|
|
17271
17274
|
}
|
|
17272
17275
|
return acc;
|
|
@@ -17326,7 +17329,7 @@ async function retrieveHooks(hooks) {
|
|
|
17326
17329
|
}
|
|
17327
17330
|
function testFlags(flags2, bl) {
|
|
17328
17331
|
if (bl.config.if) {
|
|
17329
|
-
return createDefaultQueryTester(bl.config.if)(flags2.map((
|
|
17332
|
+
return createDefaultQueryTester(bl.config.if)(flags2.map((f2) => ({ flag: f2 })));
|
|
17330
17333
|
}
|
|
17331
17334
|
return true;
|
|
17332
17335
|
}
|
|
@@ -17376,7 +17379,7 @@ async function run() {
|
|
|
17376
17379
|
...new Set(
|
|
17377
17380
|
Object.entries(args).filter(([, val]) => val === true).map(([key]) => {
|
|
17378
17381
|
const flag = [key];
|
|
17379
|
-
const dependsOn = features.find((
|
|
17382
|
+
const dependsOn = features.find((f2) => f2.flag === key)?.dependsOn;
|
|
17380
17383
|
if (dependsOn) {
|
|
17381
17384
|
flag.push(...dependsOn);
|
|
17382
17385
|
}
|