@varlock/nextjs-integration 1.1.1 → 1.1.2
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/next-env-compat.js +828 -414
- package/dist/next-env-compat.js.map +1 -1
- package/package.json +3 -3
package/dist/next-env-compat.js
CHANGED
|
@@ -3282,14 +3282,14 @@ var init_dist_ZBZ52DPW = __esm({
|
|
|
3282
3282
|
}
|
|
3283
3283
|
});
|
|
3284
3284
|
|
|
3285
|
-
// ../../varlock/dist/config-item-
|
|
3286
|
-
var
|
|
3287
|
-
__export(
|
|
3285
|
+
// ../../varlock/dist/config-item-HMRJLPJY.js
|
|
3286
|
+
var config_item_HMRJLPJY_exports = {};
|
|
3287
|
+
__export(config_item_HMRJLPJY_exports, {
|
|
3288
3288
|
ConfigItem: () => ConfigItem
|
|
3289
3289
|
});
|
|
3290
|
-
var
|
|
3291
|
-
"../../varlock/dist/config-item-
|
|
3292
|
-
|
|
3290
|
+
var init_config_item_HMRJLPJY = __esm({
|
|
3291
|
+
"../../varlock/dist/config-item-HMRJLPJY.js"() {
|
|
3292
|
+
init_chunk_PBWMMYWL();
|
|
3293
3293
|
init_chunk_O3WTD6L4();
|
|
3294
3294
|
init_chunk_IRXBCLL2();
|
|
3295
3295
|
init_chunk_FA5SNEKN();
|
|
@@ -3594,22 +3594,24 @@ function peg$parse(input, options) {
|
|
|
3594
3594
|
const peg$r0 = /^[a-zA-Z_]/;
|
|
3595
3595
|
const peg$r1 = /^[a-zA-Z0-9_.\-]/;
|
|
3596
3596
|
const peg$r2 = /^[^\n]/;
|
|
3597
|
-
const peg$r3 = /^[
|
|
3598
|
-
const peg$r4 = /^[^ \t
|
|
3599
|
-
const peg$r5 = /^[
|
|
3600
|
-
const peg$r6 = /^[ \t]/;
|
|
3601
|
-
const peg$r7 = /^[
|
|
3602
|
-
const peg$r8 = /^[ \t
|
|
3603
|
-
const peg$r9 = /^[
|
|
3604
|
-
const peg$r10 = /^[
|
|
3605
|
-
const peg$r11 = /^[
|
|
3606
|
-
const peg$r12 = /^[
|
|
3607
|
-
const peg$r13 = /^[
|
|
3608
|
-
const peg$r14 = /^[
|
|
3609
|
-
const peg$r15 = /^[
|
|
3610
|
-
const peg$r16 = /^[^
|
|
3611
|
-
const peg$r17 = /^[
|
|
3612
|
-
const peg$r18 = /^[
|
|
3597
|
+
const peg$r3 = /^[^ \t@#\n]/;
|
|
3598
|
+
const peg$r4 = /^[^ \t@\n]/;
|
|
3599
|
+
const peg$r5 = /^[a-zA-Z]/;
|
|
3600
|
+
const peg$r6 = /^[^ \t\n=()#@]/;
|
|
3601
|
+
const peg$r7 = /^[^ \n,)]/;
|
|
3602
|
+
const peg$r8 = /^[ \t]/;
|
|
3603
|
+
const peg$r9 = /^[a-zA-Z0-9_]/;
|
|
3604
|
+
const peg$r10 = /^[ \t\n]/;
|
|
3605
|
+
const peg$r11 = /^[\-=*#]/;
|
|
3606
|
+
const peg$r12 = /^['"`]/;
|
|
3607
|
+
const peg$r13 = /^[^#\n]/;
|
|
3608
|
+
const peg$r14 = /^[^# \n]/;
|
|
3609
|
+
const peg$r15 = /^["]/;
|
|
3610
|
+
const peg$r16 = /^[^"\n]/;
|
|
3611
|
+
const peg$r17 = /^[']/;
|
|
3612
|
+
const peg$r18 = /^[^'\n]/;
|
|
3613
|
+
const peg$r19 = /^[`]/;
|
|
3614
|
+
const peg$r20 = /^[^`\n]/;
|
|
3613
3615
|
const peg$e0 = peg$literalExpectation("\n", false);
|
|
3614
3616
|
const peg$e1 = peg$literalExpectation("export ", false);
|
|
3615
3617
|
const peg$e2 = peg$literalExpectation("=", false);
|
|
@@ -3618,33 +3620,35 @@ function peg$parse(input, options) {
|
|
|
3618
3620
|
const peg$e5 = peg$literalExpectation("#", false);
|
|
3619
3621
|
const peg$e6 = peg$literalExpectation("@", false);
|
|
3620
3622
|
const peg$e7 = peg$classExpectation(["\n"], true, false, false);
|
|
3621
|
-
const peg$e8 = peg$classExpectation([
|
|
3622
|
-
const peg$e9 = peg$classExpectation([" ", " ", "
|
|
3623
|
-
const peg$e10 = peg$
|
|
3624
|
-
const peg$e11 = peg$
|
|
3625
|
-
const peg$e12 = peg$literalExpectation("
|
|
3626
|
-
const peg$e13 = peg$
|
|
3627
|
-
const peg$e14 = peg$
|
|
3628
|
-
const peg$e15 = peg$classExpectation([
|
|
3629
|
-
const peg$e16 = peg$classExpectation([" ", " "
|
|
3630
|
-
const peg$e17 = peg$classExpectation(["
|
|
3631
|
-
const peg$e18 = peg$classExpectation(["
|
|
3632
|
-
const peg$e19 = peg$classExpectation(["
|
|
3633
|
-
const peg$e20 = peg$classExpectation(["
|
|
3634
|
-
const peg$e21 = peg$classExpectation([
|
|
3635
|
-
const peg$e22 = peg$
|
|
3636
|
-
const peg$e23 = peg$classExpectation(['"'
|
|
3637
|
-
const peg$e24 = peg$
|
|
3638
|
-
const peg$e25 = peg$
|
|
3639
|
-
const peg$e26 = peg$classExpectation(["'"
|
|
3640
|
-
const peg$e27 = peg$
|
|
3641
|
-
const peg$e28 = peg$
|
|
3642
|
-
const peg$e29 = peg$classExpectation(["`"
|
|
3643
|
-
const peg$e30 = peg$literalExpectation(
|
|
3644
|
-
const peg$e31 = peg$
|
|
3645
|
-
const peg$e32 = peg$literalExpectation("
|
|
3646
|
-
const peg$e33 = peg$literalExpectation("
|
|
3647
|
-
const peg$e34 = peg$
|
|
3623
|
+
const peg$e8 = peg$classExpectation([" ", " ", "@", "#", "\n"], true, false, false);
|
|
3624
|
+
const peg$e9 = peg$classExpectation([" ", " ", "@", "\n"], true, false, false);
|
|
3625
|
+
const peg$e10 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
3626
|
+
const peg$e11 = peg$classExpectation([" ", " ", "\n", "=", "(", ")", "#", "@"], true, false, false);
|
|
3627
|
+
const peg$e12 = peg$literalExpectation("(", false);
|
|
3628
|
+
const peg$e13 = peg$literalExpectation(",", false);
|
|
3629
|
+
const peg$e14 = peg$literalExpectation(")", false);
|
|
3630
|
+
const peg$e15 = peg$classExpectation([" ", "\n", ",", ")"], true, false, false);
|
|
3631
|
+
const peg$e16 = peg$classExpectation([" ", " "], false, false, false);
|
|
3632
|
+
const peg$e17 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
3633
|
+
const peg$e18 = peg$classExpectation([" ", " ", "\n"], false, false, false);
|
|
3634
|
+
const peg$e19 = peg$classExpectation(["-", "=", "*", "#"], false, false, false);
|
|
3635
|
+
const peg$e20 = peg$classExpectation(["'", '"', "`"], false, false, false);
|
|
3636
|
+
const peg$e21 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
3637
|
+
const peg$e22 = peg$classExpectation(["#", " ", "\n"], true, false, false);
|
|
3638
|
+
const peg$e23 = peg$classExpectation(['"'], false, false, false);
|
|
3639
|
+
const peg$e24 = peg$literalExpectation('\\"', false);
|
|
3640
|
+
const peg$e25 = peg$classExpectation(['"', "\n"], true, false, false);
|
|
3641
|
+
const peg$e26 = peg$classExpectation(["'"], false, false, false);
|
|
3642
|
+
const peg$e27 = peg$literalExpectation("\\'", false);
|
|
3643
|
+
const peg$e28 = peg$classExpectation(["'", "\n"], true, false, false);
|
|
3644
|
+
const peg$e29 = peg$classExpectation(["`"], false, false, false);
|
|
3645
|
+
const peg$e30 = peg$literalExpectation("\\`", false);
|
|
3646
|
+
const peg$e31 = peg$classExpectation(["`", "\n"], true, false, false);
|
|
3647
|
+
const peg$e32 = peg$literalExpectation('"""', false);
|
|
3648
|
+
const peg$e33 = peg$literalExpectation('\\"""', false);
|
|
3649
|
+
const peg$e34 = peg$literalExpectation("```", false);
|
|
3650
|
+
const peg$e35 = peg$literalExpectation("\\```", false);
|
|
3651
|
+
const peg$e36 = peg$anyExpectation();
|
|
3648
3652
|
function peg$f0() {
|
|
3649
3653
|
return new ParsedEnvSpecBlankLine({ _location: location() });
|
|
3650
3654
|
}
|
|
@@ -3684,16 +3688,15 @@ function peg$parse(input, options) {
|
|
|
3684
3688
|
}
|
|
3685
3689
|
__name(peg$f4, "peg$f4");
|
|
3686
3690
|
__name2(peg$f4, "peg$f4");
|
|
3687
|
-
function peg$f5(leadingSpace, first, rest,
|
|
3688
|
-
const allDecorators = [first
|
|
3689
|
-
let
|
|
3690
|
-
|
|
3691
|
-
if (
|
|
3692
|
-
|
|
3691
|
+
function peg$f5(leadingSpace, first, rest, postComment) {
|
|
3692
|
+
const allDecorators = [first];
|
|
3693
|
+
let lastDecorator = first;
|
|
3694
|
+
for (const item of rest) {
|
|
3695
|
+
if (item instanceof ParsedEnvSpecDecorator) {
|
|
3696
|
+
allDecorators.push(item);
|
|
3697
|
+
lastDecorator = item;
|
|
3693
3698
|
} else {
|
|
3694
|
-
|
|
3695
|
-
lastDec.data.warning = `Unexpected trailing text after @${lastDec.name}`;
|
|
3696
|
-
postComment = trailingText;
|
|
3699
|
+
lastDecorator.data.strayText = item;
|
|
3697
3700
|
}
|
|
3698
3701
|
}
|
|
3699
3702
|
return new ParsedEnvSpecDecoratorComment({
|
|
@@ -3705,7 +3708,12 @@ function peg$parse(input, options) {
|
|
|
3705
3708
|
}
|
|
3706
3709
|
__name(peg$f5, "peg$f5");
|
|
3707
3710
|
__name2(peg$f5, "peg$f5");
|
|
3708
|
-
function peg$f6(
|
|
3711
|
+
function peg$f6(first, rest) {
|
|
3712
|
+
return [first, ...rest].join(" ");
|
|
3713
|
+
}
|
|
3714
|
+
__name(peg$f6, "peg$f6");
|
|
3715
|
+
__name2(peg$f6, "peg$f6");
|
|
3716
|
+
function peg$f7(name, val) {
|
|
3709
3717
|
return new ParsedEnvSpecDecorator({
|
|
3710
3718
|
name,
|
|
3711
3719
|
value: Array.isArray(val) ? val[1] : val,
|
|
@@ -3713,74 +3721,69 @@ function peg$parse(input, options) {
|
|
|
3713
3721
|
_location: location()
|
|
3714
3722
|
});
|
|
3715
3723
|
}
|
|
3716
|
-
__name(peg$
|
|
3717
|
-
__name2(peg$
|
|
3718
|
-
function peg$
|
|
3724
|
+
__name(peg$f7, "peg$f7");
|
|
3725
|
+
__name2(peg$f7, "peg$f7");
|
|
3726
|
+
function peg$f8(name, args) {
|
|
3719
3727
|
return new ParsedEnvSpecFunctionCall({
|
|
3720
3728
|
name,
|
|
3721
3729
|
args,
|
|
3722
3730
|
_location: location()
|
|
3723
3731
|
});
|
|
3724
3732
|
}
|
|
3725
|
-
__name(peg$f7, "peg$f7");
|
|
3726
|
-
__name2(peg$f7, "peg$f7");
|
|
3727
|
-
function peg$f8(key, val) {
|
|
3728
|
-
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
3729
|
-
}
|
|
3730
3733
|
__name(peg$f8, "peg$f8");
|
|
3731
3734
|
__name2(peg$f8, "peg$f8");
|
|
3732
|
-
function peg$f9(
|
|
3735
|
+
function peg$f9(key, val) {
|
|
3736
|
+
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
3737
|
+
}
|
|
3738
|
+
__name(peg$f9, "peg$f9");
|
|
3739
|
+
__name2(peg$f9, "peg$f9");
|
|
3740
|
+
function peg$f10(values) {
|
|
3733
3741
|
return new ParsedEnvSpecFunctionArgs({
|
|
3734
3742
|
values: values || [],
|
|
3735
3743
|
_location: location()
|
|
3736
3744
|
});
|
|
3737
3745
|
}
|
|
3738
|
-
__name(peg$f9, "peg$f9");
|
|
3739
|
-
__name2(peg$f9, "peg$f9");
|
|
3740
|
-
function peg$f10() {
|
|
3741
|
-
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3742
|
-
}
|
|
3743
3746
|
__name(peg$f10, "peg$f10");
|
|
3744
3747
|
__name2(peg$f10, "peg$f10");
|
|
3745
|
-
function peg$f11(
|
|
3748
|
+
function peg$f11() {
|
|
3749
|
+
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3750
|
+
}
|
|
3751
|
+
__name(peg$f11, "peg$f11");
|
|
3752
|
+
__name2(peg$f11, "peg$f11");
|
|
3753
|
+
function peg$f12(name, args) {
|
|
3746
3754
|
return new ParsedEnvSpecFunctionCall({
|
|
3747
3755
|
name,
|
|
3748
3756
|
args,
|
|
3749
3757
|
_location: location()
|
|
3750
3758
|
});
|
|
3751
3759
|
}
|
|
3752
|
-
__name(peg$f11, "peg$f11");
|
|
3753
|
-
__name2(peg$f11, "peg$f11");
|
|
3754
|
-
function peg$f12(key, val) {
|
|
3755
|
-
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
3756
|
-
}
|
|
3757
3760
|
__name(peg$f12, "peg$f12");
|
|
3758
3761
|
__name2(peg$f12, "peg$f12");
|
|
3759
|
-
function peg$f13(
|
|
3762
|
+
function peg$f13(key, val) {
|
|
3763
|
+
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
3764
|
+
}
|
|
3765
|
+
__name(peg$f13, "peg$f13");
|
|
3766
|
+
__name2(peg$f13, "peg$f13");
|
|
3767
|
+
function peg$f14(values) {
|
|
3760
3768
|
return new ParsedEnvSpecFunctionArgs({
|
|
3761
3769
|
values: values || [],
|
|
3762
3770
|
_location: location()
|
|
3763
3771
|
});
|
|
3764
3772
|
}
|
|
3765
|
-
__name(peg$f13, "peg$f13");
|
|
3766
|
-
__name2(peg$f13, "peg$f13");
|
|
3767
|
-
function peg$f14() {
|
|
3768
|
-
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3769
|
-
}
|
|
3770
3773
|
__name(peg$f14, "peg$f14");
|
|
3771
3774
|
__name2(peg$f14, "peg$f14");
|
|
3772
|
-
function peg$f15(
|
|
3775
|
+
function peg$f15() {
|
|
3776
|
+
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3777
|
+
}
|
|
3778
|
+
__name(peg$f15, "peg$f15");
|
|
3779
|
+
__name2(peg$f15, "peg$f15");
|
|
3780
|
+
function peg$f16(leadingSpace, contents) {
|
|
3773
3781
|
return new ParsedEnvSpecDivider({
|
|
3774
3782
|
contents,
|
|
3775
3783
|
leadingSpace,
|
|
3776
3784
|
_location: location()
|
|
3777
3785
|
});
|
|
3778
3786
|
}
|
|
3779
|
-
__name(peg$f15, "peg$f15");
|
|
3780
|
-
__name2(peg$f15, "peg$f15");
|
|
3781
|
-
function peg$f16() {
|
|
3782
|
-
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3783
|
-
}
|
|
3784
3787
|
__name(peg$f16, "peg$f16");
|
|
3785
3788
|
__name2(peg$f16, "peg$f16");
|
|
3786
3789
|
function peg$f17() {
|
|
@@ -3788,8 +3791,8 @@ function peg$parse(input, options) {
|
|
|
3788
3791
|
}
|
|
3789
3792
|
__name(peg$f17, "peg$f17");
|
|
3790
3793
|
__name2(peg$f17, "peg$f17");
|
|
3791
|
-
function peg$f18(
|
|
3792
|
-
return new ParsedEnvSpecStaticValue({
|
|
3794
|
+
function peg$f18() {
|
|
3795
|
+
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
3793
3796
|
}
|
|
3794
3797
|
__name(peg$f18, "peg$f18");
|
|
3795
3798
|
__name2(peg$f18, "peg$f18");
|
|
@@ -3804,7 +3807,7 @@ function peg$parse(input, options) {
|
|
|
3804
3807
|
__name(peg$f20, "peg$f20");
|
|
3805
3808
|
__name2(peg$f20, "peg$f20");
|
|
3806
3809
|
function peg$f21(quote) {
|
|
3807
|
-
return new ParsedEnvSpecStaticValue({ quote,
|
|
3810
|
+
return new ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
3808
3811
|
}
|
|
3809
3812
|
__name(peg$f21, "peg$f21");
|
|
3810
3813
|
__name2(peg$f21, "peg$f21");
|
|
@@ -3823,6 +3826,11 @@ function peg$parse(input, options) {
|
|
|
3823
3826
|
}
|
|
3824
3827
|
__name(peg$f24, "peg$f24");
|
|
3825
3828
|
__name2(peg$f24, "peg$f24");
|
|
3829
|
+
function peg$f25(quote) {
|
|
3830
|
+
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
3831
|
+
}
|
|
3832
|
+
__name(peg$f25, "peg$f25");
|
|
3833
|
+
__name2(peg$f25, "peg$f25");
|
|
3826
3834
|
let peg$currPos = options.peg$currPos | 0;
|
|
3827
3835
|
let peg$savedPos = peg$currPos;
|
|
3828
3836
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -4417,7 +4425,7 @@ function peg$parse(input, options) {
|
|
|
4417
4425
|
__name(peg$parseComment, "peg$parseComment");
|
|
4418
4426
|
__name2(peg$parseComment, "peg$parseComment");
|
|
4419
4427
|
function peg$parseDecoratorComment() {
|
|
4420
|
-
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
4428
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11;
|
|
4421
4429
|
s0 = peg$currPos;
|
|
4422
4430
|
if (input.charCodeAt(peg$currPos) === 35) {
|
|
4423
4431
|
s1 = peg$c3;
|
|
@@ -4438,7 +4446,7 @@ function peg$parse(input, options) {
|
|
|
4438
4446
|
s5 = peg$currPos;
|
|
4439
4447
|
s6 = peg$parse__();
|
|
4440
4448
|
if (s6 !== peg$FAILED) {
|
|
4441
|
-
s7 = peg$
|
|
4449
|
+
s7 = peg$parseDecoratorOrText();
|
|
4442
4450
|
if (s7 !== peg$FAILED) {
|
|
4443
4451
|
s5 = s7;
|
|
4444
4452
|
} else {
|
|
@@ -4454,7 +4462,7 @@ function peg$parse(input, options) {
|
|
|
4454
4462
|
s5 = peg$currPos;
|
|
4455
4463
|
s6 = peg$parse__();
|
|
4456
4464
|
if (s6 !== peg$FAILED) {
|
|
4457
|
-
s7 = peg$
|
|
4465
|
+
s7 = peg$parseDecoratorOrText();
|
|
4458
4466
|
if (s7 !== peg$FAILED) {
|
|
4459
4467
|
s5 = s7;
|
|
4460
4468
|
} else {
|
|
@@ -4467,122 +4475,258 @@ function peg$parse(input, options) {
|
|
|
4467
4475
|
}
|
|
4468
4476
|
}
|
|
4469
4477
|
s5 = peg$currPos;
|
|
4470
|
-
s6 = peg$
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
s9 =
|
|
4475
|
-
|
|
4478
|
+
s6 = peg$parse_();
|
|
4479
|
+
s7 = peg$currPos;
|
|
4480
|
+
s8 = peg$currPos;
|
|
4481
|
+
if (input.charCodeAt(peg$currPos) === 35) {
|
|
4482
|
+
s9 = peg$c3;
|
|
4483
|
+
peg$currPos++;
|
|
4484
|
+
} else {
|
|
4485
|
+
s9 = peg$FAILED;
|
|
4486
|
+
if (peg$silentFails === 0) {
|
|
4487
|
+
peg$fail(peg$e5);
|
|
4488
|
+
}
|
|
4489
|
+
}
|
|
4490
|
+
if (s9 !== peg$FAILED) {
|
|
4491
|
+
s10 = [];
|
|
4492
|
+
s11 = input.charAt(peg$currPos);
|
|
4493
|
+
if (peg$r2.test(s11)) {
|
|
4476
4494
|
peg$currPos++;
|
|
4477
4495
|
} else {
|
|
4478
|
-
|
|
4496
|
+
s11 = peg$FAILED;
|
|
4479
4497
|
if (peg$silentFails === 0) {
|
|
4480
4498
|
peg$fail(peg$e7);
|
|
4481
4499
|
}
|
|
4482
4500
|
}
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
peg$fail(peg$e7);
|
|
4493
|
-
}
|
|
4501
|
+
while (s11 !== peg$FAILED) {
|
|
4502
|
+
s10.push(s11);
|
|
4503
|
+
s11 = input.charAt(peg$currPos);
|
|
4504
|
+
if (peg$r2.test(s11)) {
|
|
4505
|
+
peg$currPos++;
|
|
4506
|
+
} else {
|
|
4507
|
+
s11 = peg$FAILED;
|
|
4508
|
+
if (peg$silentFails === 0) {
|
|
4509
|
+
peg$fail(peg$e7);
|
|
4494
4510
|
}
|
|
4495
4511
|
}
|
|
4496
|
-
} else {
|
|
4497
|
-
s8 = peg$FAILED;
|
|
4498
|
-
}
|
|
4499
|
-
if (s8 !== peg$FAILED) {
|
|
4500
|
-
s7 = input.substring(s7, peg$currPos);
|
|
4501
|
-
} else {
|
|
4502
|
-
s7 = s8;
|
|
4503
|
-
}
|
|
4504
|
-
if (s7 !== peg$FAILED) {
|
|
4505
|
-
s5 = s7;
|
|
4506
|
-
} else {
|
|
4507
|
-
peg$currPos = s5;
|
|
4508
|
-
s5 = peg$FAILED;
|
|
4509
4512
|
}
|
|
4513
|
+
s9 = [s9, s10];
|
|
4514
|
+
s8 = s9;
|
|
4515
|
+
} else {
|
|
4516
|
+
peg$currPos = s8;
|
|
4517
|
+
s8 = peg$FAILED;
|
|
4518
|
+
}
|
|
4519
|
+
if (s8 !== peg$FAILED) {
|
|
4520
|
+
s7 = input.substring(s7, peg$currPos);
|
|
4521
|
+
} else {
|
|
4522
|
+
s7 = s8;
|
|
4523
|
+
}
|
|
4524
|
+
if (s7 !== peg$FAILED) {
|
|
4525
|
+
s5 = s7;
|
|
4510
4526
|
} else {
|
|
4511
4527
|
peg$currPos = s5;
|
|
4512
4528
|
s5 = peg$FAILED;
|
|
4513
4529
|
}
|
|
4514
4530
|
if (s5 === peg$FAILED) {
|
|
4531
|
+
s5 = null;
|
|
4532
|
+
}
|
|
4533
|
+
s6 = peg$parse_();
|
|
4534
|
+
peg$savedPos = s0;
|
|
4535
|
+
s0 = peg$f5(s2, s3, s4, s5);
|
|
4536
|
+
} else {
|
|
4537
|
+
peg$currPos = s0;
|
|
4538
|
+
s0 = peg$FAILED;
|
|
4539
|
+
}
|
|
4540
|
+
} else {
|
|
4541
|
+
peg$currPos = s0;
|
|
4542
|
+
s0 = peg$FAILED;
|
|
4543
|
+
}
|
|
4544
|
+
return s0;
|
|
4545
|
+
}
|
|
4546
|
+
__name(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
4547
|
+
__name2(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
4548
|
+
function peg$parseDecoratorOrText() {
|
|
4549
|
+
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
4550
|
+
s0 = peg$parseDecorator();
|
|
4551
|
+
if (s0 === peg$FAILED) {
|
|
4552
|
+
s0 = peg$currPos;
|
|
4553
|
+
s1 = peg$currPos;
|
|
4554
|
+
s2 = peg$currPos;
|
|
4555
|
+
s3 = input.charAt(peg$currPos);
|
|
4556
|
+
if (peg$r3.test(s3)) {
|
|
4557
|
+
peg$currPos++;
|
|
4558
|
+
} else {
|
|
4559
|
+
s3 = peg$FAILED;
|
|
4560
|
+
if (peg$silentFails === 0) {
|
|
4561
|
+
peg$fail(peg$e8);
|
|
4562
|
+
}
|
|
4563
|
+
}
|
|
4564
|
+
if (s3 !== peg$FAILED) {
|
|
4565
|
+
s4 = [];
|
|
4566
|
+
s5 = input.charAt(peg$currPos);
|
|
4567
|
+
if (peg$r4.test(s5)) {
|
|
4568
|
+
peg$currPos++;
|
|
4569
|
+
} else {
|
|
4570
|
+
s5 = peg$FAILED;
|
|
4571
|
+
if (peg$silentFails === 0) {
|
|
4572
|
+
peg$fail(peg$e9);
|
|
4573
|
+
}
|
|
4574
|
+
}
|
|
4575
|
+
while (s5 !== peg$FAILED) {
|
|
4576
|
+
s4.push(s5);
|
|
4577
|
+
s5 = input.charAt(peg$currPos);
|
|
4578
|
+
if (peg$r4.test(s5)) {
|
|
4579
|
+
peg$currPos++;
|
|
4580
|
+
} else {
|
|
4581
|
+
s5 = peg$FAILED;
|
|
4582
|
+
if (peg$silentFails === 0) {
|
|
4583
|
+
peg$fail(peg$e9);
|
|
4584
|
+
}
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
s3 = [s3, s4];
|
|
4588
|
+
s2 = s3;
|
|
4589
|
+
} else {
|
|
4590
|
+
peg$currPos = s2;
|
|
4591
|
+
s2 = peg$FAILED;
|
|
4592
|
+
}
|
|
4593
|
+
if (s2 !== peg$FAILED) {
|
|
4594
|
+
s1 = input.substring(s1, peg$currPos);
|
|
4595
|
+
} else {
|
|
4596
|
+
s1 = s2;
|
|
4597
|
+
}
|
|
4598
|
+
if (s1 !== peg$FAILED) {
|
|
4599
|
+
s2 = [];
|
|
4600
|
+
s3 = peg$currPos;
|
|
4601
|
+
s4 = peg$parse__();
|
|
4602
|
+
if (s4 !== peg$FAILED) {
|
|
4515
4603
|
s5 = peg$currPos;
|
|
4516
4604
|
s6 = peg$currPos;
|
|
4517
|
-
s7 = peg$currPos;
|
|
4518
|
-
if (
|
|
4519
|
-
s8 = peg$c3;
|
|
4605
|
+
s7 = input.charAt(peg$currPos);
|
|
4606
|
+
if (peg$r3.test(s7)) {
|
|
4520
4607
|
peg$currPos++;
|
|
4521
4608
|
} else {
|
|
4522
|
-
|
|
4609
|
+
s7 = peg$FAILED;
|
|
4523
4610
|
if (peg$silentFails === 0) {
|
|
4524
|
-
peg$fail(peg$
|
|
4611
|
+
peg$fail(peg$e8);
|
|
4525
4612
|
}
|
|
4526
4613
|
}
|
|
4527
|
-
if (
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
if (peg$
|
|
4614
|
+
if (s7 !== peg$FAILED) {
|
|
4615
|
+
s8 = [];
|
|
4616
|
+
s9 = input.charAt(peg$currPos);
|
|
4617
|
+
if (peg$r4.test(s9)) {
|
|
4531
4618
|
peg$currPos++;
|
|
4532
4619
|
} else {
|
|
4533
|
-
|
|
4620
|
+
s9 = peg$FAILED;
|
|
4534
4621
|
if (peg$silentFails === 0) {
|
|
4535
|
-
peg$fail(peg$
|
|
4622
|
+
peg$fail(peg$e9);
|
|
4536
4623
|
}
|
|
4537
4624
|
}
|
|
4538
|
-
while (
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
if (peg$
|
|
4625
|
+
while (s9 !== peg$FAILED) {
|
|
4626
|
+
s8.push(s9);
|
|
4627
|
+
s9 = input.charAt(peg$currPos);
|
|
4628
|
+
if (peg$r4.test(s9)) {
|
|
4542
4629
|
peg$currPos++;
|
|
4543
4630
|
} else {
|
|
4544
|
-
|
|
4631
|
+
s9 = peg$FAILED;
|
|
4545
4632
|
if (peg$silentFails === 0) {
|
|
4546
|
-
peg$fail(peg$
|
|
4633
|
+
peg$fail(peg$e9);
|
|
4547
4634
|
}
|
|
4548
4635
|
}
|
|
4549
4636
|
}
|
|
4550
|
-
|
|
4551
|
-
s7 = s8;
|
|
4552
|
-
} else {
|
|
4553
|
-
peg$currPos = s7;
|
|
4554
|
-
s7 = peg$FAILED;
|
|
4555
|
-
}
|
|
4556
|
-
if (s7 !== peg$FAILED) {
|
|
4557
|
-
s6 = input.substring(s6, peg$currPos);
|
|
4558
|
-
} else {
|
|
4637
|
+
s7 = [s7, s8];
|
|
4559
4638
|
s6 = s7;
|
|
4639
|
+
} else {
|
|
4640
|
+
peg$currPos = s6;
|
|
4641
|
+
s6 = peg$FAILED;
|
|
4560
4642
|
}
|
|
4561
4643
|
if (s6 !== peg$FAILED) {
|
|
4644
|
+
s5 = input.substring(s5, peg$currPos);
|
|
4645
|
+
} else {
|
|
4562
4646
|
s5 = s6;
|
|
4647
|
+
}
|
|
4648
|
+
if (s5 !== peg$FAILED) {
|
|
4649
|
+
s3 = s5;
|
|
4563
4650
|
} else {
|
|
4564
|
-
peg$currPos =
|
|
4565
|
-
|
|
4651
|
+
peg$currPos = s3;
|
|
4652
|
+
s3 = peg$FAILED;
|
|
4566
4653
|
}
|
|
4654
|
+
} else {
|
|
4655
|
+
peg$currPos = s3;
|
|
4656
|
+
s3 = peg$FAILED;
|
|
4567
4657
|
}
|
|
4568
|
-
|
|
4569
|
-
|
|
4658
|
+
while (s3 !== peg$FAILED) {
|
|
4659
|
+
s2.push(s3);
|
|
4660
|
+
s3 = peg$currPos;
|
|
4661
|
+
s4 = peg$parse__();
|
|
4662
|
+
if (s4 !== peg$FAILED) {
|
|
4663
|
+
s5 = peg$currPos;
|
|
4664
|
+
s6 = peg$currPos;
|
|
4665
|
+
s7 = input.charAt(peg$currPos);
|
|
4666
|
+
if (peg$r3.test(s7)) {
|
|
4667
|
+
peg$currPos++;
|
|
4668
|
+
} else {
|
|
4669
|
+
s7 = peg$FAILED;
|
|
4670
|
+
if (peg$silentFails === 0) {
|
|
4671
|
+
peg$fail(peg$e8);
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
if (s7 !== peg$FAILED) {
|
|
4675
|
+
s8 = [];
|
|
4676
|
+
s9 = input.charAt(peg$currPos);
|
|
4677
|
+
if (peg$r4.test(s9)) {
|
|
4678
|
+
peg$currPos++;
|
|
4679
|
+
} else {
|
|
4680
|
+
s9 = peg$FAILED;
|
|
4681
|
+
if (peg$silentFails === 0) {
|
|
4682
|
+
peg$fail(peg$e9);
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
while (s9 !== peg$FAILED) {
|
|
4686
|
+
s8.push(s9);
|
|
4687
|
+
s9 = input.charAt(peg$currPos);
|
|
4688
|
+
if (peg$r4.test(s9)) {
|
|
4689
|
+
peg$currPos++;
|
|
4690
|
+
} else {
|
|
4691
|
+
s9 = peg$FAILED;
|
|
4692
|
+
if (peg$silentFails === 0) {
|
|
4693
|
+
peg$fail(peg$e9);
|
|
4694
|
+
}
|
|
4695
|
+
}
|
|
4696
|
+
}
|
|
4697
|
+
s7 = [s7, s8];
|
|
4698
|
+
s6 = s7;
|
|
4699
|
+
} else {
|
|
4700
|
+
peg$currPos = s6;
|
|
4701
|
+
s6 = peg$FAILED;
|
|
4702
|
+
}
|
|
4703
|
+
if (s6 !== peg$FAILED) {
|
|
4704
|
+
s5 = input.substring(s5, peg$currPos);
|
|
4705
|
+
} else {
|
|
4706
|
+
s5 = s6;
|
|
4707
|
+
}
|
|
4708
|
+
if (s5 !== peg$FAILED) {
|
|
4709
|
+
s3 = s5;
|
|
4710
|
+
} else {
|
|
4711
|
+
peg$currPos = s3;
|
|
4712
|
+
s3 = peg$FAILED;
|
|
4713
|
+
}
|
|
4714
|
+
} else {
|
|
4715
|
+
peg$currPos = s3;
|
|
4716
|
+
s3 = peg$FAILED;
|
|
4717
|
+
}
|
|
4570
4718
|
}
|
|
4571
|
-
s6 = peg$parse_();
|
|
4572
4719
|
peg$savedPos = s0;
|
|
4573
|
-
s0 = peg$
|
|
4720
|
+
s0 = peg$f6(s1, s2);
|
|
4574
4721
|
} else {
|
|
4575
4722
|
peg$currPos = s0;
|
|
4576
4723
|
s0 = peg$FAILED;
|
|
4577
4724
|
}
|
|
4578
|
-
} else {
|
|
4579
|
-
peg$currPos = s0;
|
|
4580
|
-
s0 = peg$FAILED;
|
|
4581
4725
|
}
|
|
4582
4726
|
return s0;
|
|
4583
4727
|
}
|
|
4584
|
-
__name(peg$
|
|
4585
|
-
__name2(peg$
|
|
4728
|
+
__name(peg$parseDecoratorOrText, "peg$parseDecoratorOrText");
|
|
4729
|
+
__name2(peg$parseDecoratorOrText, "peg$parseDecoratorOrText");
|
|
4586
4730
|
function peg$parseDecorator() {
|
|
4587
4731
|
let s0, s1, s2, s3, s4, s5;
|
|
4588
4732
|
s0 = peg$currPos;
|
|
@@ -4628,7 +4772,7 @@ function peg$parse(input, options) {
|
|
|
4628
4772
|
s3 = null;
|
|
4629
4773
|
}
|
|
4630
4774
|
peg$savedPos = s0;
|
|
4631
|
-
s0 = peg$
|
|
4775
|
+
s0 = peg$f7(s2, s3);
|
|
4632
4776
|
} else {
|
|
4633
4777
|
peg$currPos = s0;
|
|
4634
4778
|
s0 = peg$FAILED;
|
|
@@ -4646,34 +4790,34 @@ function peg$parse(input, options) {
|
|
|
4646
4790
|
s0 = peg$currPos;
|
|
4647
4791
|
s1 = peg$currPos;
|
|
4648
4792
|
s2 = input.charAt(peg$currPos);
|
|
4649
|
-
if (peg$
|
|
4793
|
+
if (peg$r5.test(s2)) {
|
|
4650
4794
|
peg$currPos++;
|
|
4651
4795
|
} else {
|
|
4652
4796
|
s2 = peg$FAILED;
|
|
4653
4797
|
if (peg$silentFails === 0) {
|
|
4654
|
-
peg$fail(peg$
|
|
4798
|
+
peg$fail(peg$e10);
|
|
4655
4799
|
}
|
|
4656
4800
|
}
|
|
4657
4801
|
if (s2 !== peg$FAILED) {
|
|
4658
4802
|
s3 = [];
|
|
4659
4803
|
s4 = input.charAt(peg$currPos);
|
|
4660
|
-
if (peg$
|
|
4804
|
+
if (peg$r6.test(s4)) {
|
|
4661
4805
|
peg$currPos++;
|
|
4662
4806
|
} else {
|
|
4663
4807
|
s4 = peg$FAILED;
|
|
4664
4808
|
if (peg$silentFails === 0) {
|
|
4665
|
-
peg$fail(peg$
|
|
4809
|
+
peg$fail(peg$e11);
|
|
4666
4810
|
}
|
|
4667
4811
|
}
|
|
4668
4812
|
while (s4 !== peg$FAILED) {
|
|
4669
4813
|
s3.push(s4);
|
|
4670
4814
|
s4 = input.charAt(peg$currPos);
|
|
4671
|
-
if (peg$
|
|
4815
|
+
if (peg$r6.test(s4)) {
|
|
4672
4816
|
peg$currPos++;
|
|
4673
4817
|
} else {
|
|
4674
4818
|
s4 = peg$FAILED;
|
|
4675
4819
|
if (peg$silentFails === 0) {
|
|
4676
|
-
peg$fail(peg$
|
|
4820
|
+
peg$fail(peg$e11);
|
|
4677
4821
|
}
|
|
4678
4822
|
}
|
|
4679
4823
|
}
|
|
@@ -4713,7 +4857,7 @@ function peg$parse(input, options) {
|
|
|
4713
4857
|
s2 = peg$parseDecoratorFunctionArgs();
|
|
4714
4858
|
if (s2 !== peg$FAILED) {
|
|
4715
4859
|
peg$savedPos = s0;
|
|
4716
|
-
s0 = peg$
|
|
4860
|
+
s0 = peg$f8(s1, s2);
|
|
4717
4861
|
} else {
|
|
4718
4862
|
peg$currPos = s0;
|
|
4719
4863
|
s0 = peg$FAILED;
|
|
@@ -4735,7 +4879,7 @@ function peg$parse(input, options) {
|
|
|
4735
4879
|
} else {
|
|
4736
4880
|
s1 = peg$FAILED;
|
|
4737
4881
|
if (peg$silentFails === 0) {
|
|
4738
|
-
peg$fail(peg$
|
|
4882
|
+
peg$fail(peg$e12);
|
|
4739
4883
|
}
|
|
4740
4884
|
}
|
|
4741
4885
|
if (s1 !== peg$FAILED) {
|
|
@@ -4758,7 +4902,7 @@ function peg$parse(input, options) {
|
|
|
4758
4902
|
s8 = peg$parseDecoratorFunctionArgValue();
|
|
4759
4903
|
if (s8 !== peg$FAILED) {
|
|
4760
4904
|
peg$savedPos = s5;
|
|
4761
|
-
s5 = peg$
|
|
4905
|
+
s5 = peg$f9(s6, s8);
|
|
4762
4906
|
} else {
|
|
4763
4907
|
peg$currPos = s5;
|
|
4764
4908
|
s5 = peg$FAILED;
|
|
@@ -4785,7 +4929,7 @@ function peg$parse(input, options) {
|
|
|
4785
4929
|
} else {
|
|
4786
4930
|
s8 = peg$FAILED;
|
|
4787
4931
|
if (peg$silentFails === 0) {
|
|
4788
|
-
peg$fail(peg$
|
|
4932
|
+
peg$fail(peg$e13);
|
|
4789
4933
|
}
|
|
4790
4934
|
}
|
|
4791
4935
|
if (s8 !== peg$FAILED) {
|
|
@@ -4813,7 +4957,7 @@ function peg$parse(input, options) {
|
|
|
4813
4957
|
s9 = peg$parseDecoratorFunctionArgValue();
|
|
4814
4958
|
if (s9 !== peg$FAILED) {
|
|
4815
4959
|
peg$savedPos = s6;
|
|
4816
|
-
s6 = peg$
|
|
4960
|
+
s6 = peg$f9(s7, s9);
|
|
4817
4961
|
} else {
|
|
4818
4962
|
peg$currPos = s6;
|
|
4819
4963
|
s6 = peg$FAILED;
|
|
@@ -4856,7 +5000,7 @@ function peg$parse(input, options) {
|
|
|
4856
5000
|
} else {
|
|
4857
5001
|
s6 = peg$FAILED;
|
|
4858
5002
|
if (peg$silentFails === 0) {
|
|
4859
|
-
peg$fail(peg$
|
|
5003
|
+
peg$fail(peg$e13);
|
|
4860
5004
|
}
|
|
4861
5005
|
}
|
|
4862
5006
|
if (s6 !== peg$FAILED) {
|
|
@@ -4876,12 +5020,12 @@ function peg$parse(input, options) {
|
|
|
4876
5020
|
} else {
|
|
4877
5021
|
s6 = peg$FAILED;
|
|
4878
5022
|
if (peg$silentFails === 0) {
|
|
4879
|
-
peg$fail(peg$
|
|
5023
|
+
peg$fail(peg$e14);
|
|
4880
5024
|
}
|
|
4881
5025
|
}
|
|
4882
5026
|
if (s6 !== peg$FAILED) {
|
|
4883
5027
|
peg$savedPos = s0;
|
|
4884
|
-
s0 = peg$
|
|
5028
|
+
s0 = peg$f10(s3);
|
|
4885
5029
|
} else {
|
|
4886
5030
|
peg$currPos = s0;
|
|
4887
5031
|
s0 = peg$FAILED;
|
|
@@ -4904,24 +5048,24 @@ function peg$parse(input, options) {
|
|
|
4904
5048
|
s1 = peg$currPos;
|
|
4905
5049
|
s2 = [];
|
|
4906
5050
|
s3 = input.charAt(peg$currPos);
|
|
4907
|
-
if (peg$
|
|
5051
|
+
if (peg$r7.test(s3)) {
|
|
4908
5052
|
peg$currPos++;
|
|
4909
5053
|
} else {
|
|
4910
5054
|
s3 = peg$FAILED;
|
|
4911
5055
|
if (peg$silentFails === 0) {
|
|
4912
|
-
peg$fail(peg$
|
|
5056
|
+
peg$fail(peg$e15);
|
|
4913
5057
|
}
|
|
4914
5058
|
}
|
|
4915
5059
|
if (s3 !== peg$FAILED) {
|
|
4916
5060
|
while (s3 !== peg$FAILED) {
|
|
4917
5061
|
s2.push(s3);
|
|
4918
5062
|
s3 = input.charAt(peg$currPos);
|
|
4919
|
-
if (peg$
|
|
5063
|
+
if (peg$r7.test(s3)) {
|
|
4920
5064
|
peg$currPos++;
|
|
4921
5065
|
} else {
|
|
4922
5066
|
s3 = peg$FAILED;
|
|
4923
5067
|
if (peg$silentFails === 0) {
|
|
4924
|
-
peg$fail(peg$
|
|
5068
|
+
peg$fail(peg$e15);
|
|
4925
5069
|
}
|
|
4926
5070
|
}
|
|
4927
5071
|
}
|
|
@@ -4935,7 +5079,7 @@ function peg$parse(input, options) {
|
|
|
4935
5079
|
}
|
|
4936
5080
|
if (s1 !== peg$FAILED) {
|
|
4937
5081
|
peg$savedPos = s0;
|
|
4938
|
-
s1 = peg$
|
|
5082
|
+
s1 = peg$f11();
|
|
4939
5083
|
}
|
|
4940
5084
|
s0 = s1;
|
|
4941
5085
|
}
|
|
@@ -4948,12 +5092,12 @@ function peg$parse(input, options) {
|
|
|
4948
5092
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
4949
5093
|
s0 = [];
|
|
4950
5094
|
s1 = input.charAt(peg$currPos);
|
|
4951
|
-
if (peg$
|
|
5095
|
+
if (peg$r8.test(s1)) {
|
|
4952
5096
|
peg$currPos++;
|
|
4953
5097
|
} else {
|
|
4954
5098
|
s1 = peg$FAILED;
|
|
4955
5099
|
if (peg$silentFails === 0) {
|
|
4956
|
-
peg$fail(peg$
|
|
5100
|
+
peg$fail(peg$e16);
|
|
4957
5101
|
}
|
|
4958
5102
|
}
|
|
4959
5103
|
if (s1 === peg$FAILED) {
|
|
@@ -4970,23 +5114,23 @@ function peg$parse(input, options) {
|
|
|
4970
5114
|
if (s2 !== peg$FAILED) {
|
|
4971
5115
|
s3 = [];
|
|
4972
5116
|
s4 = input.charAt(peg$currPos);
|
|
4973
|
-
if (peg$
|
|
5117
|
+
if (peg$r8.test(s4)) {
|
|
4974
5118
|
peg$currPos++;
|
|
4975
5119
|
} else {
|
|
4976
5120
|
s4 = peg$FAILED;
|
|
4977
5121
|
if (peg$silentFails === 0) {
|
|
4978
|
-
peg$fail(peg$
|
|
5122
|
+
peg$fail(peg$e16);
|
|
4979
5123
|
}
|
|
4980
5124
|
}
|
|
4981
5125
|
while (s4 !== peg$FAILED) {
|
|
4982
5126
|
s3.push(s4);
|
|
4983
5127
|
s4 = input.charAt(peg$currPos);
|
|
4984
|
-
if (peg$
|
|
5128
|
+
if (peg$r8.test(s4)) {
|
|
4985
5129
|
peg$currPos++;
|
|
4986
5130
|
} else {
|
|
4987
5131
|
s4 = peg$FAILED;
|
|
4988
5132
|
if (peg$silentFails === 0) {
|
|
4989
|
-
peg$fail(peg$
|
|
5133
|
+
peg$fail(peg$e16);
|
|
4990
5134
|
}
|
|
4991
5135
|
}
|
|
4992
5136
|
}
|
|
@@ -5002,23 +5146,23 @@ function peg$parse(input, options) {
|
|
|
5002
5146
|
if (s4 !== peg$FAILED) {
|
|
5003
5147
|
s5 = [];
|
|
5004
5148
|
s6 = input.charAt(peg$currPos);
|
|
5005
|
-
if (peg$
|
|
5149
|
+
if (peg$r8.test(s6)) {
|
|
5006
5150
|
peg$currPos++;
|
|
5007
5151
|
} else {
|
|
5008
5152
|
s6 = peg$FAILED;
|
|
5009
5153
|
if (peg$silentFails === 0) {
|
|
5010
|
-
peg$fail(peg$
|
|
5154
|
+
peg$fail(peg$e16);
|
|
5011
5155
|
}
|
|
5012
5156
|
}
|
|
5013
5157
|
while (s6 !== peg$FAILED) {
|
|
5014
5158
|
s5.push(s6);
|
|
5015
5159
|
s6 = input.charAt(peg$currPos);
|
|
5016
|
-
if (peg$
|
|
5160
|
+
if (peg$r8.test(s6)) {
|
|
5017
5161
|
peg$currPos++;
|
|
5018
5162
|
} else {
|
|
5019
5163
|
s6 = peg$FAILED;
|
|
5020
5164
|
if (peg$silentFails === 0) {
|
|
5021
|
-
peg$fail(peg$
|
|
5165
|
+
peg$fail(peg$e16);
|
|
5022
5166
|
}
|
|
5023
5167
|
}
|
|
5024
5168
|
}
|
|
@@ -5036,12 +5180,12 @@ function peg$parse(input, options) {
|
|
|
5036
5180
|
while (s1 !== peg$FAILED) {
|
|
5037
5181
|
s0.push(s1);
|
|
5038
5182
|
s1 = input.charAt(peg$currPos);
|
|
5039
|
-
if (peg$
|
|
5183
|
+
if (peg$r8.test(s1)) {
|
|
5040
5184
|
peg$currPos++;
|
|
5041
5185
|
} else {
|
|
5042
5186
|
s1 = peg$FAILED;
|
|
5043
5187
|
if (peg$silentFails === 0) {
|
|
5044
|
-
peg$fail(peg$
|
|
5188
|
+
peg$fail(peg$e16);
|
|
5045
5189
|
}
|
|
5046
5190
|
}
|
|
5047
5191
|
if (s1 === peg$FAILED) {
|
|
@@ -5058,23 +5202,23 @@ function peg$parse(input, options) {
|
|
|
5058
5202
|
if (s2 !== peg$FAILED) {
|
|
5059
5203
|
s3 = [];
|
|
5060
5204
|
s4 = input.charAt(peg$currPos);
|
|
5061
|
-
if (peg$
|
|
5205
|
+
if (peg$r8.test(s4)) {
|
|
5062
5206
|
peg$currPos++;
|
|
5063
5207
|
} else {
|
|
5064
5208
|
s4 = peg$FAILED;
|
|
5065
5209
|
if (peg$silentFails === 0) {
|
|
5066
|
-
peg$fail(peg$
|
|
5210
|
+
peg$fail(peg$e16);
|
|
5067
5211
|
}
|
|
5068
5212
|
}
|
|
5069
5213
|
while (s4 !== peg$FAILED) {
|
|
5070
5214
|
s3.push(s4);
|
|
5071
5215
|
s4 = input.charAt(peg$currPos);
|
|
5072
|
-
if (peg$
|
|
5216
|
+
if (peg$r8.test(s4)) {
|
|
5073
5217
|
peg$currPos++;
|
|
5074
5218
|
} else {
|
|
5075
5219
|
s4 = peg$FAILED;
|
|
5076
5220
|
if (peg$silentFails === 0) {
|
|
5077
|
-
peg$fail(peg$
|
|
5221
|
+
peg$fail(peg$e16);
|
|
5078
5222
|
}
|
|
5079
5223
|
}
|
|
5080
5224
|
}
|
|
@@ -5090,23 +5234,23 @@ function peg$parse(input, options) {
|
|
|
5090
5234
|
if (s4 !== peg$FAILED) {
|
|
5091
5235
|
s5 = [];
|
|
5092
5236
|
s6 = input.charAt(peg$currPos);
|
|
5093
|
-
if (peg$
|
|
5237
|
+
if (peg$r8.test(s6)) {
|
|
5094
5238
|
peg$currPos++;
|
|
5095
5239
|
} else {
|
|
5096
5240
|
s6 = peg$FAILED;
|
|
5097
5241
|
if (peg$silentFails === 0) {
|
|
5098
|
-
peg$fail(peg$
|
|
5242
|
+
peg$fail(peg$e16);
|
|
5099
5243
|
}
|
|
5100
5244
|
}
|
|
5101
5245
|
while (s6 !== peg$FAILED) {
|
|
5102
5246
|
s5.push(s6);
|
|
5103
5247
|
s6 = input.charAt(peg$currPos);
|
|
5104
|
-
if (peg$
|
|
5248
|
+
if (peg$r8.test(s6)) {
|
|
5105
5249
|
peg$currPos++;
|
|
5106
5250
|
} else {
|
|
5107
5251
|
s6 = peg$FAILED;
|
|
5108
5252
|
if (peg$silentFails === 0) {
|
|
5109
|
-
peg$fail(peg$
|
|
5253
|
+
peg$fail(peg$e16);
|
|
5110
5254
|
}
|
|
5111
5255
|
}
|
|
5112
5256
|
}
|
|
@@ -5134,7 +5278,7 @@ function peg$parse(input, options) {
|
|
|
5134
5278
|
s2 = peg$parseFunctionArgs();
|
|
5135
5279
|
if (s2 !== peg$FAILED) {
|
|
5136
5280
|
peg$savedPos = s0;
|
|
5137
|
-
s0 = peg$
|
|
5281
|
+
s0 = peg$f12(s1, s2);
|
|
5138
5282
|
} else {
|
|
5139
5283
|
peg$currPos = s0;
|
|
5140
5284
|
s0 = peg$FAILED;
|
|
@@ -5152,34 +5296,34 @@ function peg$parse(input, options) {
|
|
|
5152
5296
|
s0 = peg$currPos;
|
|
5153
5297
|
s1 = peg$currPos;
|
|
5154
5298
|
s2 = input.charAt(peg$currPos);
|
|
5155
|
-
if (peg$
|
|
5299
|
+
if (peg$r5.test(s2)) {
|
|
5156
5300
|
peg$currPos++;
|
|
5157
5301
|
} else {
|
|
5158
5302
|
s2 = peg$FAILED;
|
|
5159
5303
|
if (peg$silentFails === 0) {
|
|
5160
|
-
peg$fail(peg$
|
|
5304
|
+
peg$fail(peg$e10);
|
|
5161
5305
|
}
|
|
5162
5306
|
}
|
|
5163
5307
|
if (s2 !== peg$FAILED) {
|
|
5164
5308
|
s3 = [];
|
|
5165
5309
|
s4 = input.charAt(peg$currPos);
|
|
5166
|
-
if (peg$
|
|
5310
|
+
if (peg$r9.test(s4)) {
|
|
5167
5311
|
peg$currPos++;
|
|
5168
5312
|
} else {
|
|
5169
5313
|
s4 = peg$FAILED;
|
|
5170
5314
|
if (peg$silentFails === 0) {
|
|
5171
|
-
peg$fail(peg$
|
|
5315
|
+
peg$fail(peg$e17);
|
|
5172
5316
|
}
|
|
5173
5317
|
}
|
|
5174
5318
|
while (s4 !== peg$FAILED) {
|
|
5175
5319
|
s3.push(s4);
|
|
5176
5320
|
s4 = input.charAt(peg$currPos);
|
|
5177
|
-
if (peg$
|
|
5321
|
+
if (peg$r9.test(s4)) {
|
|
5178
5322
|
peg$currPos++;
|
|
5179
5323
|
} else {
|
|
5180
5324
|
s4 = peg$FAILED;
|
|
5181
5325
|
if (peg$silentFails === 0) {
|
|
5182
|
-
peg$fail(peg$
|
|
5326
|
+
peg$fail(peg$e17);
|
|
5183
5327
|
}
|
|
5184
5328
|
}
|
|
5185
5329
|
}
|
|
@@ -5207,7 +5351,7 @@ function peg$parse(input, options) {
|
|
|
5207
5351
|
} else {
|
|
5208
5352
|
s1 = peg$FAILED;
|
|
5209
5353
|
if (peg$silentFails === 0) {
|
|
5210
|
-
peg$fail(peg$
|
|
5354
|
+
peg$fail(peg$e12);
|
|
5211
5355
|
}
|
|
5212
5356
|
}
|
|
5213
5357
|
if (s1 !== peg$FAILED) {
|
|
@@ -5230,7 +5374,7 @@ function peg$parse(input, options) {
|
|
|
5230
5374
|
s8 = peg$parseFunctionArgValue();
|
|
5231
5375
|
if (s8 !== peg$FAILED) {
|
|
5232
5376
|
peg$savedPos = s5;
|
|
5233
|
-
s5 = peg$
|
|
5377
|
+
s5 = peg$f13(s6, s8);
|
|
5234
5378
|
} else {
|
|
5235
5379
|
peg$currPos = s5;
|
|
5236
5380
|
s5 = peg$FAILED;
|
|
@@ -5257,7 +5401,7 @@ function peg$parse(input, options) {
|
|
|
5257
5401
|
} else {
|
|
5258
5402
|
s8 = peg$FAILED;
|
|
5259
5403
|
if (peg$silentFails === 0) {
|
|
5260
|
-
peg$fail(peg$
|
|
5404
|
+
peg$fail(peg$e13);
|
|
5261
5405
|
}
|
|
5262
5406
|
}
|
|
5263
5407
|
if (s8 !== peg$FAILED) {
|
|
@@ -5285,7 +5429,7 @@ function peg$parse(input, options) {
|
|
|
5285
5429
|
s9 = peg$parseFunctionArgValue();
|
|
5286
5430
|
if (s9 !== peg$FAILED) {
|
|
5287
5431
|
peg$savedPos = s6;
|
|
5288
|
-
s6 = peg$
|
|
5432
|
+
s6 = peg$f13(s7, s9);
|
|
5289
5433
|
} else {
|
|
5290
5434
|
peg$currPos = s6;
|
|
5291
5435
|
s6 = peg$FAILED;
|
|
@@ -5328,7 +5472,7 @@ function peg$parse(input, options) {
|
|
|
5328
5472
|
} else {
|
|
5329
5473
|
s6 = peg$FAILED;
|
|
5330
5474
|
if (peg$silentFails === 0) {
|
|
5331
|
-
peg$fail(peg$
|
|
5475
|
+
peg$fail(peg$e13);
|
|
5332
5476
|
}
|
|
5333
5477
|
}
|
|
5334
5478
|
if (s6 !== peg$FAILED) {
|
|
@@ -5348,12 +5492,12 @@ function peg$parse(input, options) {
|
|
|
5348
5492
|
} else {
|
|
5349
5493
|
s6 = peg$FAILED;
|
|
5350
5494
|
if (peg$silentFails === 0) {
|
|
5351
|
-
peg$fail(peg$
|
|
5495
|
+
peg$fail(peg$e14);
|
|
5352
5496
|
}
|
|
5353
5497
|
}
|
|
5354
5498
|
if (s6 !== peg$FAILED) {
|
|
5355
5499
|
peg$savedPos = s0;
|
|
5356
|
-
s0 = peg$
|
|
5500
|
+
s0 = peg$f14(s3);
|
|
5357
5501
|
} else {
|
|
5358
5502
|
peg$currPos = s0;
|
|
5359
5503
|
s0 = peg$FAILED;
|
|
@@ -5371,34 +5515,34 @@ function peg$parse(input, options) {
|
|
|
5371
5515
|
s0 = peg$currPos;
|
|
5372
5516
|
s1 = peg$currPos;
|
|
5373
5517
|
s2 = input.charAt(peg$currPos);
|
|
5374
|
-
if (peg$
|
|
5518
|
+
if (peg$r5.test(s2)) {
|
|
5375
5519
|
peg$currPos++;
|
|
5376
5520
|
} else {
|
|
5377
5521
|
s2 = peg$FAILED;
|
|
5378
5522
|
if (peg$silentFails === 0) {
|
|
5379
|
-
peg$fail(peg$
|
|
5523
|
+
peg$fail(peg$e10);
|
|
5380
5524
|
}
|
|
5381
5525
|
}
|
|
5382
5526
|
if (s2 !== peg$FAILED) {
|
|
5383
5527
|
s3 = [];
|
|
5384
5528
|
s4 = input.charAt(peg$currPos);
|
|
5385
|
-
if (peg$
|
|
5529
|
+
if (peg$r9.test(s4)) {
|
|
5386
5530
|
peg$currPos++;
|
|
5387
5531
|
} else {
|
|
5388
5532
|
s4 = peg$FAILED;
|
|
5389
5533
|
if (peg$silentFails === 0) {
|
|
5390
|
-
peg$fail(peg$
|
|
5534
|
+
peg$fail(peg$e17);
|
|
5391
5535
|
}
|
|
5392
5536
|
}
|
|
5393
5537
|
while (s4 !== peg$FAILED) {
|
|
5394
5538
|
s3.push(s4);
|
|
5395
5539
|
s4 = input.charAt(peg$currPos);
|
|
5396
|
-
if (peg$
|
|
5540
|
+
if (peg$r9.test(s4)) {
|
|
5397
5541
|
peg$currPos++;
|
|
5398
5542
|
} else {
|
|
5399
5543
|
s4 = peg$FAILED;
|
|
5400
5544
|
if (peg$silentFails === 0) {
|
|
5401
|
-
peg$fail(peg$
|
|
5545
|
+
peg$fail(peg$e17);
|
|
5402
5546
|
}
|
|
5403
5547
|
}
|
|
5404
5548
|
}
|
|
@@ -5427,24 +5571,24 @@ function peg$parse(input, options) {
|
|
|
5427
5571
|
s1 = peg$currPos;
|
|
5428
5572
|
s2 = [];
|
|
5429
5573
|
s3 = input.charAt(peg$currPos);
|
|
5430
|
-
if (peg$
|
|
5574
|
+
if (peg$r7.test(s3)) {
|
|
5431
5575
|
peg$currPos++;
|
|
5432
5576
|
} else {
|
|
5433
5577
|
s3 = peg$FAILED;
|
|
5434
5578
|
if (peg$silentFails === 0) {
|
|
5435
|
-
peg$fail(peg$
|
|
5579
|
+
peg$fail(peg$e15);
|
|
5436
5580
|
}
|
|
5437
5581
|
}
|
|
5438
5582
|
if (s3 !== peg$FAILED) {
|
|
5439
5583
|
while (s3 !== peg$FAILED) {
|
|
5440
5584
|
s2.push(s3);
|
|
5441
5585
|
s3 = input.charAt(peg$currPos);
|
|
5442
|
-
if (peg$
|
|
5586
|
+
if (peg$r7.test(s3)) {
|
|
5443
5587
|
peg$currPos++;
|
|
5444
5588
|
} else {
|
|
5445
5589
|
s3 = peg$FAILED;
|
|
5446
5590
|
if (peg$silentFails === 0) {
|
|
5447
|
-
peg$fail(peg$
|
|
5591
|
+
peg$fail(peg$e15);
|
|
5448
5592
|
}
|
|
5449
5593
|
}
|
|
5450
5594
|
}
|
|
@@ -5458,7 +5602,7 @@ function peg$parse(input, options) {
|
|
|
5458
5602
|
}
|
|
5459
5603
|
if (s1 !== peg$FAILED) {
|
|
5460
5604
|
peg$savedPos = s0;
|
|
5461
|
-
s1 = peg$
|
|
5605
|
+
s1 = peg$f15();
|
|
5462
5606
|
}
|
|
5463
5607
|
s0 = s1;
|
|
5464
5608
|
}
|
|
@@ -5471,23 +5615,23 @@ function peg$parse(input, options) {
|
|
|
5471
5615
|
let s0, s1;
|
|
5472
5616
|
s0 = [];
|
|
5473
5617
|
s1 = input.charAt(peg$currPos);
|
|
5474
|
-
if (peg$
|
|
5618
|
+
if (peg$r10.test(s1)) {
|
|
5475
5619
|
peg$currPos++;
|
|
5476
5620
|
} else {
|
|
5477
5621
|
s1 = peg$FAILED;
|
|
5478
5622
|
if (peg$silentFails === 0) {
|
|
5479
|
-
peg$fail(peg$
|
|
5623
|
+
peg$fail(peg$e18);
|
|
5480
5624
|
}
|
|
5481
5625
|
}
|
|
5482
5626
|
while (s1 !== peg$FAILED) {
|
|
5483
5627
|
s0.push(s1);
|
|
5484
5628
|
s1 = input.charAt(peg$currPos);
|
|
5485
|
-
if (peg$
|
|
5629
|
+
if (peg$r10.test(s1)) {
|
|
5486
5630
|
peg$currPos++;
|
|
5487
5631
|
} else {
|
|
5488
5632
|
s1 = peg$FAILED;
|
|
5489
5633
|
if (peg$silentFails === 0) {
|
|
5490
|
-
peg$fail(peg$
|
|
5634
|
+
peg$fail(peg$e18);
|
|
5491
5635
|
}
|
|
5492
5636
|
}
|
|
5493
5637
|
}
|
|
@@ -5516,23 +5660,23 @@ function peg$parse(input, options) {
|
|
|
5516
5660
|
s5 = peg$currPos;
|
|
5517
5661
|
s6 = [];
|
|
5518
5662
|
s7 = input.charAt(peg$currPos);
|
|
5519
|
-
if (peg$
|
|
5663
|
+
if (peg$r11.test(s7)) {
|
|
5520
5664
|
peg$currPos++;
|
|
5521
5665
|
} else {
|
|
5522
5666
|
s7 = peg$FAILED;
|
|
5523
5667
|
if (peg$silentFails === 0) {
|
|
5524
|
-
peg$fail(peg$
|
|
5668
|
+
peg$fail(peg$e19);
|
|
5525
5669
|
}
|
|
5526
5670
|
}
|
|
5527
5671
|
while (s7 !== peg$FAILED) {
|
|
5528
5672
|
s6.push(s7);
|
|
5529
5673
|
s7 = input.charAt(peg$currPos);
|
|
5530
|
-
if (peg$
|
|
5674
|
+
if (peg$r11.test(s7)) {
|
|
5531
5675
|
peg$currPos++;
|
|
5532
5676
|
} else {
|
|
5533
5677
|
s7 = peg$FAILED;
|
|
5534
5678
|
if (peg$silentFails === 0) {
|
|
5535
|
-
peg$fail(peg$
|
|
5679
|
+
peg$fail(peg$e19);
|
|
5536
5680
|
}
|
|
5537
5681
|
}
|
|
5538
5682
|
}
|
|
@@ -5580,7 +5724,7 @@ function peg$parse(input, options) {
|
|
|
5580
5724
|
s4 = peg$parse_n();
|
|
5581
5725
|
if (s4 !== peg$FAILED) {
|
|
5582
5726
|
peg$savedPos = s0;
|
|
5583
|
-
s0 = peg$
|
|
5727
|
+
s0 = peg$f16(s2, s3);
|
|
5584
5728
|
} else {
|
|
5585
5729
|
peg$currPos = s0;
|
|
5586
5730
|
s0 = peg$FAILED;
|
|
@@ -5606,12 +5750,12 @@ function peg$parse(input, options) {
|
|
|
5606
5750
|
s4 = peg$currPos;
|
|
5607
5751
|
peg$silentFails++;
|
|
5608
5752
|
s5 = input.charAt(peg$currPos);
|
|
5609
|
-
if (peg$
|
|
5753
|
+
if (peg$r12.test(s5)) {
|
|
5610
5754
|
peg$currPos++;
|
|
5611
5755
|
} else {
|
|
5612
5756
|
s5 = peg$FAILED;
|
|
5613
5757
|
if (peg$silentFails === 0) {
|
|
5614
|
-
peg$fail(peg$
|
|
5758
|
+
peg$fail(peg$e20);
|
|
5615
5759
|
}
|
|
5616
5760
|
}
|
|
5617
5761
|
peg$silentFails--;
|
|
@@ -5624,24 +5768,24 @@ function peg$parse(input, options) {
|
|
|
5624
5768
|
if (s4 !== peg$FAILED) {
|
|
5625
5769
|
s5 = [];
|
|
5626
5770
|
s6 = input.charAt(peg$currPos);
|
|
5627
|
-
if (peg$
|
|
5771
|
+
if (peg$r13.test(s6)) {
|
|
5628
5772
|
peg$currPos++;
|
|
5629
5773
|
} else {
|
|
5630
5774
|
s6 = peg$FAILED;
|
|
5631
5775
|
if (peg$silentFails === 0) {
|
|
5632
|
-
peg$fail(peg$
|
|
5776
|
+
peg$fail(peg$e21);
|
|
5633
5777
|
}
|
|
5634
5778
|
}
|
|
5635
5779
|
if (s6 !== peg$FAILED) {
|
|
5636
5780
|
while (s6 !== peg$FAILED) {
|
|
5637
5781
|
s5.push(s6);
|
|
5638
5782
|
s6 = input.charAt(peg$currPos);
|
|
5639
|
-
if (peg$
|
|
5783
|
+
if (peg$r13.test(s6)) {
|
|
5640
5784
|
peg$currPos++;
|
|
5641
5785
|
} else {
|
|
5642
5786
|
s6 = peg$FAILED;
|
|
5643
5787
|
if (peg$silentFails === 0) {
|
|
5644
|
-
peg$fail(peg$
|
|
5788
|
+
peg$fail(peg$e21);
|
|
5645
5789
|
}
|
|
5646
5790
|
}
|
|
5647
5791
|
}
|
|
@@ -5666,7 +5810,7 @@ function peg$parse(input, options) {
|
|
|
5666
5810
|
}
|
|
5667
5811
|
if (s1 !== peg$FAILED) {
|
|
5668
5812
|
peg$savedPos = s0;
|
|
5669
|
-
s1 = peg$
|
|
5813
|
+
s1 = peg$f17();
|
|
5670
5814
|
}
|
|
5671
5815
|
s0 = s1;
|
|
5672
5816
|
return s0;
|
|
@@ -5681,12 +5825,12 @@ function peg$parse(input, options) {
|
|
|
5681
5825
|
s3 = peg$currPos;
|
|
5682
5826
|
peg$silentFails++;
|
|
5683
5827
|
s4 = input.charAt(peg$currPos);
|
|
5684
|
-
if (peg$
|
|
5828
|
+
if (peg$r12.test(s4)) {
|
|
5685
5829
|
peg$currPos++;
|
|
5686
5830
|
} else {
|
|
5687
5831
|
s4 = peg$FAILED;
|
|
5688
5832
|
if (peg$silentFails === 0) {
|
|
5689
|
-
peg$fail(peg$
|
|
5833
|
+
peg$fail(peg$e20);
|
|
5690
5834
|
}
|
|
5691
5835
|
}
|
|
5692
5836
|
peg$silentFails--;
|
|
@@ -5699,24 +5843,24 @@ function peg$parse(input, options) {
|
|
|
5699
5843
|
if (s3 !== peg$FAILED) {
|
|
5700
5844
|
s4 = [];
|
|
5701
5845
|
s5 = input.charAt(peg$currPos);
|
|
5702
|
-
if (peg$
|
|
5846
|
+
if (peg$r14.test(s5)) {
|
|
5703
5847
|
peg$currPos++;
|
|
5704
5848
|
} else {
|
|
5705
5849
|
s5 = peg$FAILED;
|
|
5706
5850
|
if (peg$silentFails === 0) {
|
|
5707
|
-
peg$fail(peg$
|
|
5851
|
+
peg$fail(peg$e22);
|
|
5708
5852
|
}
|
|
5709
5853
|
}
|
|
5710
5854
|
if (s5 !== peg$FAILED) {
|
|
5711
5855
|
while (s5 !== peg$FAILED) {
|
|
5712
5856
|
s4.push(s5);
|
|
5713
5857
|
s5 = input.charAt(peg$currPos);
|
|
5714
|
-
if (peg$
|
|
5858
|
+
if (peg$r14.test(s5)) {
|
|
5715
5859
|
peg$currPos++;
|
|
5716
5860
|
} else {
|
|
5717
5861
|
s5 = peg$FAILED;
|
|
5718
5862
|
if (peg$silentFails === 0) {
|
|
5719
|
-
peg$fail(peg$
|
|
5863
|
+
peg$fail(peg$e22);
|
|
5720
5864
|
}
|
|
5721
5865
|
}
|
|
5722
5866
|
}
|
|
@@ -5741,7 +5885,7 @@ function peg$parse(input, options) {
|
|
|
5741
5885
|
}
|
|
5742
5886
|
if (s1 !== peg$FAILED) {
|
|
5743
5887
|
peg$savedPos = s0;
|
|
5744
|
-
s1 = peg$
|
|
5888
|
+
s1 = peg$f18();
|
|
5745
5889
|
}
|
|
5746
5890
|
s0 = s1;
|
|
5747
5891
|
return s0;
|
|
@@ -5765,12 +5909,12 @@ function peg$parse(input, options) {
|
|
|
5765
5909
|
let s0, s1, s2, s3;
|
|
5766
5910
|
s0 = peg$currPos;
|
|
5767
5911
|
s1 = input.charAt(peg$currPos);
|
|
5768
|
-
if (peg$
|
|
5912
|
+
if (peg$r15.test(s1)) {
|
|
5769
5913
|
peg$currPos++;
|
|
5770
5914
|
} else {
|
|
5771
5915
|
s1 = peg$FAILED;
|
|
5772
5916
|
if (peg$silentFails === 0) {
|
|
5773
|
-
peg$fail(peg$
|
|
5917
|
+
peg$fail(peg$e23);
|
|
5774
5918
|
}
|
|
5775
5919
|
}
|
|
5776
5920
|
if (s1 !== peg$FAILED) {
|
|
@@ -5781,17 +5925,17 @@ function peg$parse(input, options) {
|
|
|
5781
5925
|
} else {
|
|
5782
5926
|
s3 = peg$FAILED;
|
|
5783
5927
|
if (peg$silentFails === 0) {
|
|
5784
|
-
peg$fail(peg$
|
|
5928
|
+
peg$fail(peg$e24);
|
|
5785
5929
|
}
|
|
5786
5930
|
}
|
|
5787
5931
|
if (s3 === peg$FAILED) {
|
|
5788
5932
|
s3 = input.charAt(peg$currPos);
|
|
5789
|
-
if (peg$
|
|
5933
|
+
if (peg$r16.test(s3)) {
|
|
5790
5934
|
peg$currPos++;
|
|
5791
5935
|
} else {
|
|
5792
5936
|
s3 = peg$FAILED;
|
|
5793
5937
|
if (peg$silentFails === 0) {
|
|
5794
|
-
peg$fail(peg$
|
|
5938
|
+
peg$fail(peg$e25);
|
|
5795
5939
|
}
|
|
5796
5940
|
}
|
|
5797
5941
|
}
|
|
@@ -5803,33 +5947,33 @@ function peg$parse(input, options) {
|
|
|
5803
5947
|
} else {
|
|
5804
5948
|
s3 = peg$FAILED;
|
|
5805
5949
|
if (peg$silentFails === 0) {
|
|
5806
|
-
peg$fail(peg$
|
|
5950
|
+
peg$fail(peg$e24);
|
|
5807
5951
|
}
|
|
5808
5952
|
}
|
|
5809
5953
|
if (s3 === peg$FAILED) {
|
|
5810
5954
|
s3 = input.charAt(peg$currPos);
|
|
5811
|
-
if (peg$
|
|
5955
|
+
if (peg$r16.test(s3)) {
|
|
5812
5956
|
peg$currPos++;
|
|
5813
5957
|
} else {
|
|
5814
5958
|
s3 = peg$FAILED;
|
|
5815
5959
|
if (peg$silentFails === 0) {
|
|
5816
|
-
peg$fail(peg$
|
|
5960
|
+
peg$fail(peg$e25);
|
|
5817
5961
|
}
|
|
5818
5962
|
}
|
|
5819
5963
|
}
|
|
5820
5964
|
}
|
|
5821
5965
|
s3 = input.charAt(peg$currPos);
|
|
5822
|
-
if (peg$
|
|
5966
|
+
if (peg$r15.test(s3)) {
|
|
5823
5967
|
peg$currPos++;
|
|
5824
5968
|
} else {
|
|
5825
5969
|
s3 = peg$FAILED;
|
|
5826
5970
|
if (peg$silentFails === 0) {
|
|
5827
|
-
peg$fail(peg$
|
|
5971
|
+
peg$fail(peg$e23);
|
|
5828
5972
|
}
|
|
5829
5973
|
}
|
|
5830
5974
|
if (s3 !== peg$FAILED) {
|
|
5831
5975
|
peg$savedPos = s0;
|
|
5832
|
-
s0 = peg$
|
|
5976
|
+
s0 = peg$f19(s1);
|
|
5833
5977
|
} else {
|
|
5834
5978
|
peg$currPos = s0;
|
|
5835
5979
|
s0 = peg$FAILED;
|
|
@@ -5846,12 +5990,12 @@ function peg$parse(input, options) {
|
|
|
5846
5990
|
let s0, s1, s2, s3;
|
|
5847
5991
|
s0 = peg$currPos;
|
|
5848
5992
|
s1 = input.charAt(peg$currPos);
|
|
5849
|
-
if (peg$
|
|
5993
|
+
if (peg$r17.test(s1)) {
|
|
5850
5994
|
peg$currPos++;
|
|
5851
5995
|
} else {
|
|
5852
5996
|
s1 = peg$FAILED;
|
|
5853
5997
|
if (peg$silentFails === 0) {
|
|
5854
|
-
peg$fail(peg$
|
|
5998
|
+
peg$fail(peg$e26);
|
|
5855
5999
|
}
|
|
5856
6000
|
}
|
|
5857
6001
|
if (s1 !== peg$FAILED) {
|
|
@@ -5862,17 +6006,17 @@ function peg$parse(input, options) {
|
|
|
5862
6006
|
} else {
|
|
5863
6007
|
s3 = peg$FAILED;
|
|
5864
6008
|
if (peg$silentFails === 0) {
|
|
5865
|
-
peg$fail(peg$
|
|
6009
|
+
peg$fail(peg$e27);
|
|
5866
6010
|
}
|
|
5867
6011
|
}
|
|
5868
6012
|
if (s3 === peg$FAILED) {
|
|
5869
6013
|
s3 = input.charAt(peg$currPos);
|
|
5870
|
-
if (peg$
|
|
6014
|
+
if (peg$r18.test(s3)) {
|
|
5871
6015
|
peg$currPos++;
|
|
5872
6016
|
} else {
|
|
5873
6017
|
s3 = peg$FAILED;
|
|
5874
6018
|
if (peg$silentFails === 0) {
|
|
5875
|
-
peg$fail(peg$
|
|
6019
|
+
peg$fail(peg$e28);
|
|
5876
6020
|
}
|
|
5877
6021
|
}
|
|
5878
6022
|
}
|
|
@@ -5884,33 +6028,33 @@ function peg$parse(input, options) {
|
|
|
5884
6028
|
} else {
|
|
5885
6029
|
s3 = peg$FAILED;
|
|
5886
6030
|
if (peg$silentFails === 0) {
|
|
5887
|
-
peg$fail(peg$
|
|
6031
|
+
peg$fail(peg$e27);
|
|
5888
6032
|
}
|
|
5889
6033
|
}
|
|
5890
6034
|
if (s3 === peg$FAILED) {
|
|
5891
6035
|
s3 = input.charAt(peg$currPos);
|
|
5892
|
-
if (peg$
|
|
6036
|
+
if (peg$r18.test(s3)) {
|
|
5893
6037
|
peg$currPos++;
|
|
5894
6038
|
} else {
|
|
5895
6039
|
s3 = peg$FAILED;
|
|
5896
6040
|
if (peg$silentFails === 0) {
|
|
5897
|
-
peg$fail(peg$
|
|
6041
|
+
peg$fail(peg$e28);
|
|
5898
6042
|
}
|
|
5899
6043
|
}
|
|
5900
6044
|
}
|
|
5901
6045
|
}
|
|
5902
6046
|
s3 = input.charAt(peg$currPos);
|
|
5903
|
-
if (peg$
|
|
6047
|
+
if (peg$r17.test(s3)) {
|
|
5904
6048
|
peg$currPos++;
|
|
5905
6049
|
} else {
|
|
5906
6050
|
s3 = peg$FAILED;
|
|
5907
6051
|
if (peg$silentFails === 0) {
|
|
5908
|
-
peg$fail(peg$
|
|
6052
|
+
peg$fail(peg$e26);
|
|
5909
6053
|
}
|
|
5910
6054
|
}
|
|
5911
6055
|
if (s3 !== peg$FAILED) {
|
|
5912
6056
|
peg$savedPos = s0;
|
|
5913
|
-
s0 = peg$
|
|
6057
|
+
s0 = peg$f20(s1);
|
|
5914
6058
|
} else {
|
|
5915
6059
|
peg$currPos = s0;
|
|
5916
6060
|
s0 = peg$FAILED;
|
|
@@ -5927,12 +6071,12 @@ function peg$parse(input, options) {
|
|
|
5927
6071
|
let s0, s1, s2, s3;
|
|
5928
6072
|
s0 = peg$currPos;
|
|
5929
6073
|
s1 = input.charAt(peg$currPos);
|
|
5930
|
-
if (peg$
|
|
6074
|
+
if (peg$r19.test(s1)) {
|
|
5931
6075
|
peg$currPos++;
|
|
5932
6076
|
} else {
|
|
5933
6077
|
s1 = peg$FAILED;
|
|
5934
6078
|
if (peg$silentFails === 0) {
|
|
5935
|
-
peg$fail(peg$
|
|
6079
|
+
peg$fail(peg$e29);
|
|
5936
6080
|
}
|
|
5937
6081
|
}
|
|
5938
6082
|
if (s1 !== peg$FAILED) {
|
|
@@ -5943,17 +6087,17 @@ function peg$parse(input, options) {
|
|
|
5943
6087
|
} else {
|
|
5944
6088
|
s3 = peg$FAILED;
|
|
5945
6089
|
if (peg$silentFails === 0) {
|
|
5946
|
-
peg$fail(peg$
|
|
6090
|
+
peg$fail(peg$e30);
|
|
5947
6091
|
}
|
|
5948
6092
|
}
|
|
5949
6093
|
if (s3 === peg$FAILED) {
|
|
5950
6094
|
s3 = input.charAt(peg$currPos);
|
|
5951
|
-
if (peg$
|
|
6095
|
+
if (peg$r20.test(s3)) {
|
|
5952
6096
|
peg$currPos++;
|
|
5953
6097
|
} else {
|
|
5954
6098
|
s3 = peg$FAILED;
|
|
5955
6099
|
if (peg$silentFails === 0) {
|
|
5956
|
-
peg$fail(peg$
|
|
6100
|
+
peg$fail(peg$e31);
|
|
5957
6101
|
}
|
|
5958
6102
|
}
|
|
5959
6103
|
}
|
|
@@ -5965,33 +6109,33 @@ function peg$parse(input, options) {
|
|
|
5965
6109
|
} else {
|
|
5966
6110
|
s3 = peg$FAILED;
|
|
5967
6111
|
if (peg$silentFails === 0) {
|
|
5968
|
-
peg$fail(peg$
|
|
6112
|
+
peg$fail(peg$e30);
|
|
5969
6113
|
}
|
|
5970
6114
|
}
|
|
5971
6115
|
if (s3 === peg$FAILED) {
|
|
5972
6116
|
s3 = input.charAt(peg$currPos);
|
|
5973
|
-
if (peg$
|
|
6117
|
+
if (peg$r20.test(s3)) {
|
|
5974
6118
|
peg$currPos++;
|
|
5975
6119
|
} else {
|
|
5976
6120
|
s3 = peg$FAILED;
|
|
5977
6121
|
if (peg$silentFails === 0) {
|
|
5978
|
-
peg$fail(peg$
|
|
6122
|
+
peg$fail(peg$e31);
|
|
5979
6123
|
}
|
|
5980
6124
|
}
|
|
5981
6125
|
}
|
|
5982
6126
|
}
|
|
5983
6127
|
s3 = input.charAt(peg$currPos);
|
|
5984
|
-
if (peg$
|
|
6128
|
+
if (peg$r19.test(s3)) {
|
|
5985
6129
|
peg$currPos++;
|
|
5986
6130
|
} else {
|
|
5987
6131
|
s3 = peg$FAILED;
|
|
5988
6132
|
if (peg$silentFails === 0) {
|
|
5989
|
-
peg$fail(peg$
|
|
6133
|
+
peg$fail(peg$e29);
|
|
5990
6134
|
}
|
|
5991
6135
|
}
|
|
5992
6136
|
if (s3 !== peg$FAILED) {
|
|
5993
6137
|
peg$savedPos = s0;
|
|
5994
|
-
s0 = peg$
|
|
6138
|
+
s0 = peg$f21(s1);
|
|
5995
6139
|
} else {
|
|
5996
6140
|
peg$currPos = s0;
|
|
5997
6141
|
s0 = peg$FAILED;
|
|
@@ -6024,12 +6168,12 @@ function peg$parse(input, options) {
|
|
|
6024
6168
|
let s0, s1, s2, s3, s4, s5;
|
|
6025
6169
|
s0 = peg$currPos;
|
|
6026
6170
|
s1 = input.charAt(peg$currPos);
|
|
6027
|
-
if (peg$
|
|
6171
|
+
if (peg$r17.test(s1)) {
|
|
6028
6172
|
peg$currPos++;
|
|
6029
6173
|
} else {
|
|
6030
6174
|
s1 = peg$FAILED;
|
|
6031
6175
|
if (peg$silentFails === 0) {
|
|
6032
|
-
peg$fail(peg$
|
|
6176
|
+
peg$fail(peg$e26);
|
|
6033
6177
|
}
|
|
6034
6178
|
}
|
|
6035
6179
|
if (s1 !== peg$FAILED) {
|
|
@@ -6042,17 +6186,17 @@ function peg$parse(input, options) {
|
|
|
6042
6186
|
} else {
|
|
6043
6187
|
s5 = peg$FAILED;
|
|
6044
6188
|
if (peg$silentFails === 0) {
|
|
6045
|
-
peg$fail(peg$
|
|
6189
|
+
peg$fail(peg$e27);
|
|
6046
6190
|
}
|
|
6047
6191
|
}
|
|
6048
6192
|
if (s5 === peg$FAILED) {
|
|
6049
6193
|
s5 = input.charAt(peg$currPos);
|
|
6050
|
-
if (peg$
|
|
6194
|
+
if (peg$r18.test(s5)) {
|
|
6051
6195
|
peg$currPos++;
|
|
6052
6196
|
} else {
|
|
6053
6197
|
s5 = peg$FAILED;
|
|
6054
6198
|
if (peg$silentFails === 0) {
|
|
6055
|
-
peg$fail(peg$
|
|
6199
|
+
peg$fail(peg$e28);
|
|
6056
6200
|
}
|
|
6057
6201
|
}
|
|
6058
6202
|
}
|
|
@@ -6064,17 +6208,17 @@ function peg$parse(input, options) {
|
|
|
6064
6208
|
} else {
|
|
6065
6209
|
s5 = peg$FAILED;
|
|
6066
6210
|
if (peg$silentFails === 0) {
|
|
6067
|
-
peg$fail(peg$
|
|
6211
|
+
peg$fail(peg$e27);
|
|
6068
6212
|
}
|
|
6069
6213
|
}
|
|
6070
6214
|
if (s5 === peg$FAILED) {
|
|
6071
6215
|
s5 = input.charAt(peg$currPos);
|
|
6072
|
-
if (peg$
|
|
6216
|
+
if (peg$r18.test(s5)) {
|
|
6073
6217
|
peg$currPos++;
|
|
6074
6218
|
} else {
|
|
6075
6219
|
s5 = peg$FAILED;
|
|
6076
6220
|
if (peg$silentFails === 0) {
|
|
6077
|
-
peg$fail(peg$
|
|
6221
|
+
peg$fail(peg$e28);
|
|
6078
6222
|
}
|
|
6079
6223
|
}
|
|
6080
6224
|
}
|
|
@@ -6106,17 +6250,17 @@ function peg$parse(input, options) {
|
|
|
6106
6250
|
} else {
|
|
6107
6251
|
s5 = peg$FAILED;
|
|
6108
6252
|
if (peg$silentFails === 0) {
|
|
6109
|
-
peg$fail(peg$
|
|
6253
|
+
peg$fail(peg$e27);
|
|
6110
6254
|
}
|
|
6111
6255
|
}
|
|
6112
6256
|
if (s5 === peg$FAILED) {
|
|
6113
6257
|
s5 = input.charAt(peg$currPos);
|
|
6114
|
-
if (peg$
|
|
6258
|
+
if (peg$r18.test(s5)) {
|
|
6115
6259
|
peg$currPos++;
|
|
6116
6260
|
} else {
|
|
6117
6261
|
s5 = peg$FAILED;
|
|
6118
6262
|
if (peg$silentFails === 0) {
|
|
6119
|
-
peg$fail(peg$
|
|
6263
|
+
peg$fail(peg$e28);
|
|
6120
6264
|
}
|
|
6121
6265
|
}
|
|
6122
6266
|
}
|
|
@@ -6128,17 +6272,17 @@ function peg$parse(input, options) {
|
|
|
6128
6272
|
} else {
|
|
6129
6273
|
s5 = peg$FAILED;
|
|
6130
6274
|
if (peg$silentFails === 0) {
|
|
6131
|
-
peg$fail(peg$
|
|
6275
|
+
peg$fail(peg$e27);
|
|
6132
6276
|
}
|
|
6133
6277
|
}
|
|
6134
6278
|
if (s5 === peg$FAILED) {
|
|
6135
6279
|
s5 = input.charAt(peg$currPos);
|
|
6136
|
-
if (peg$
|
|
6280
|
+
if (peg$r18.test(s5)) {
|
|
6137
6281
|
peg$currPos++;
|
|
6138
6282
|
} else {
|
|
6139
6283
|
s5 = peg$FAILED;
|
|
6140
6284
|
if (peg$silentFails === 0) {
|
|
6141
|
-
peg$fail(peg$
|
|
6285
|
+
peg$fail(peg$e28);
|
|
6142
6286
|
}
|
|
6143
6287
|
}
|
|
6144
6288
|
}
|
|
@@ -6171,17 +6315,17 @@ function peg$parse(input, options) {
|
|
|
6171
6315
|
} else {
|
|
6172
6316
|
s4 = peg$FAILED;
|
|
6173
6317
|
if (peg$silentFails === 0) {
|
|
6174
|
-
peg$fail(peg$
|
|
6318
|
+
peg$fail(peg$e27);
|
|
6175
6319
|
}
|
|
6176
6320
|
}
|
|
6177
6321
|
if (s4 === peg$FAILED) {
|
|
6178
6322
|
s4 = input.charAt(peg$currPos);
|
|
6179
|
-
if (peg$
|
|
6323
|
+
if (peg$r18.test(s4)) {
|
|
6180
6324
|
peg$currPos++;
|
|
6181
6325
|
} else {
|
|
6182
6326
|
s4 = peg$FAILED;
|
|
6183
6327
|
if (peg$silentFails === 0) {
|
|
6184
|
-
peg$fail(peg$
|
|
6328
|
+
peg$fail(peg$e28);
|
|
6185
6329
|
}
|
|
6186
6330
|
}
|
|
6187
6331
|
}
|
|
@@ -6193,33 +6337,33 @@ function peg$parse(input, options) {
|
|
|
6193
6337
|
} else {
|
|
6194
6338
|
s4 = peg$FAILED;
|
|
6195
6339
|
if (peg$silentFails === 0) {
|
|
6196
|
-
peg$fail(peg$
|
|
6340
|
+
peg$fail(peg$e27);
|
|
6197
6341
|
}
|
|
6198
6342
|
}
|
|
6199
6343
|
if (s4 === peg$FAILED) {
|
|
6200
6344
|
s4 = input.charAt(peg$currPos);
|
|
6201
|
-
if (peg$
|
|
6345
|
+
if (peg$r18.test(s4)) {
|
|
6202
6346
|
peg$currPos++;
|
|
6203
6347
|
} else {
|
|
6204
6348
|
s4 = peg$FAILED;
|
|
6205
6349
|
if (peg$silentFails === 0) {
|
|
6206
|
-
peg$fail(peg$
|
|
6350
|
+
peg$fail(peg$e28);
|
|
6207
6351
|
}
|
|
6208
6352
|
}
|
|
6209
6353
|
}
|
|
6210
6354
|
}
|
|
6211
6355
|
s4 = input.charAt(peg$currPos);
|
|
6212
|
-
if (peg$
|
|
6356
|
+
if (peg$r17.test(s4)) {
|
|
6213
6357
|
peg$currPos++;
|
|
6214
6358
|
} else {
|
|
6215
6359
|
s4 = peg$FAILED;
|
|
6216
6360
|
if (peg$silentFails === 0) {
|
|
6217
|
-
peg$fail(peg$
|
|
6361
|
+
peg$fail(peg$e26);
|
|
6218
6362
|
}
|
|
6219
6363
|
}
|
|
6220
6364
|
if (s4 !== peg$FAILED) {
|
|
6221
6365
|
peg$savedPos = s0;
|
|
6222
|
-
s0 = peg$
|
|
6366
|
+
s0 = peg$f22(s1);
|
|
6223
6367
|
} else {
|
|
6224
6368
|
peg$currPos = s0;
|
|
6225
6369
|
s0 = peg$FAILED;
|
|
@@ -6240,12 +6384,12 @@ function peg$parse(input, options) {
|
|
|
6240
6384
|
let s0, s1, s2, s3, s4, s5;
|
|
6241
6385
|
s0 = peg$currPos;
|
|
6242
6386
|
s1 = input.charAt(peg$currPos);
|
|
6243
|
-
if (peg$
|
|
6387
|
+
if (peg$r15.test(s1)) {
|
|
6244
6388
|
peg$currPos++;
|
|
6245
6389
|
} else {
|
|
6246
6390
|
s1 = peg$FAILED;
|
|
6247
6391
|
if (peg$silentFails === 0) {
|
|
6248
|
-
peg$fail(peg$
|
|
6392
|
+
peg$fail(peg$e23);
|
|
6249
6393
|
}
|
|
6250
6394
|
}
|
|
6251
6395
|
if (s1 !== peg$FAILED) {
|
|
@@ -6258,17 +6402,17 @@ function peg$parse(input, options) {
|
|
|
6258
6402
|
} else {
|
|
6259
6403
|
s5 = peg$FAILED;
|
|
6260
6404
|
if (peg$silentFails === 0) {
|
|
6261
|
-
peg$fail(peg$
|
|
6405
|
+
peg$fail(peg$e24);
|
|
6262
6406
|
}
|
|
6263
6407
|
}
|
|
6264
6408
|
if (s5 === peg$FAILED) {
|
|
6265
6409
|
s5 = input.charAt(peg$currPos);
|
|
6266
|
-
if (peg$
|
|
6410
|
+
if (peg$r16.test(s5)) {
|
|
6267
6411
|
peg$currPos++;
|
|
6268
6412
|
} else {
|
|
6269
6413
|
s5 = peg$FAILED;
|
|
6270
6414
|
if (peg$silentFails === 0) {
|
|
6271
|
-
peg$fail(peg$
|
|
6415
|
+
peg$fail(peg$e25);
|
|
6272
6416
|
}
|
|
6273
6417
|
}
|
|
6274
6418
|
}
|
|
@@ -6280,17 +6424,17 @@ function peg$parse(input, options) {
|
|
|
6280
6424
|
} else {
|
|
6281
6425
|
s5 = peg$FAILED;
|
|
6282
6426
|
if (peg$silentFails === 0) {
|
|
6283
|
-
peg$fail(peg$
|
|
6427
|
+
peg$fail(peg$e24);
|
|
6284
6428
|
}
|
|
6285
6429
|
}
|
|
6286
6430
|
if (s5 === peg$FAILED) {
|
|
6287
6431
|
s5 = input.charAt(peg$currPos);
|
|
6288
|
-
if (peg$
|
|
6432
|
+
if (peg$r16.test(s5)) {
|
|
6289
6433
|
peg$currPos++;
|
|
6290
6434
|
} else {
|
|
6291
6435
|
s5 = peg$FAILED;
|
|
6292
6436
|
if (peg$silentFails === 0) {
|
|
6293
|
-
peg$fail(peg$
|
|
6437
|
+
peg$fail(peg$e25);
|
|
6294
6438
|
}
|
|
6295
6439
|
}
|
|
6296
6440
|
}
|
|
@@ -6322,17 +6466,17 @@ function peg$parse(input, options) {
|
|
|
6322
6466
|
} else {
|
|
6323
6467
|
s5 = peg$FAILED;
|
|
6324
6468
|
if (peg$silentFails === 0) {
|
|
6325
|
-
peg$fail(peg$
|
|
6469
|
+
peg$fail(peg$e24);
|
|
6326
6470
|
}
|
|
6327
6471
|
}
|
|
6328
6472
|
if (s5 === peg$FAILED) {
|
|
6329
6473
|
s5 = input.charAt(peg$currPos);
|
|
6330
|
-
if (peg$
|
|
6474
|
+
if (peg$r16.test(s5)) {
|
|
6331
6475
|
peg$currPos++;
|
|
6332
6476
|
} else {
|
|
6333
6477
|
s5 = peg$FAILED;
|
|
6334
6478
|
if (peg$silentFails === 0) {
|
|
6335
|
-
peg$fail(peg$
|
|
6479
|
+
peg$fail(peg$e25);
|
|
6336
6480
|
}
|
|
6337
6481
|
}
|
|
6338
6482
|
}
|
|
@@ -6344,17 +6488,17 @@ function peg$parse(input, options) {
|
|
|
6344
6488
|
} else {
|
|
6345
6489
|
s5 = peg$FAILED;
|
|
6346
6490
|
if (peg$silentFails === 0) {
|
|
6347
|
-
peg$fail(peg$
|
|
6491
|
+
peg$fail(peg$e24);
|
|
6348
6492
|
}
|
|
6349
6493
|
}
|
|
6350
6494
|
if (s5 === peg$FAILED) {
|
|
6351
6495
|
s5 = input.charAt(peg$currPos);
|
|
6352
|
-
if (peg$
|
|
6496
|
+
if (peg$r16.test(s5)) {
|
|
6353
6497
|
peg$currPos++;
|
|
6354
6498
|
} else {
|
|
6355
6499
|
s5 = peg$FAILED;
|
|
6356
6500
|
if (peg$silentFails === 0) {
|
|
6357
|
-
peg$fail(peg$
|
|
6501
|
+
peg$fail(peg$e25);
|
|
6358
6502
|
}
|
|
6359
6503
|
}
|
|
6360
6504
|
}
|
|
@@ -6387,17 +6531,17 @@ function peg$parse(input, options) {
|
|
|
6387
6531
|
} else {
|
|
6388
6532
|
s4 = peg$FAILED;
|
|
6389
6533
|
if (peg$silentFails === 0) {
|
|
6390
|
-
peg$fail(peg$
|
|
6534
|
+
peg$fail(peg$e24);
|
|
6391
6535
|
}
|
|
6392
6536
|
}
|
|
6393
6537
|
if (s4 === peg$FAILED) {
|
|
6394
6538
|
s4 = input.charAt(peg$currPos);
|
|
6395
|
-
if (peg$
|
|
6539
|
+
if (peg$r16.test(s4)) {
|
|
6396
6540
|
peg$currPos++;
|
|
6397
6541
|
} else {
|
|
6398
6542
|
s4 = peg$FAILED;
|
|
6399
6543
|
if (peg$silentFails === 0) {
|
|
6400
|
-
peg$fail(peg$
|
|
6544
|
+
peg$fail(peg$e25);
|
|
6401
6545
|
}
|
|
6402
6546
|
}
|
|
6403
6547
|
}
|
|
@@ -6409,33 +6553,33 @@ function peg$parse(input, options) {
|
|
|
6409
6553
|
} else {
|
|
6410
6554
|
s4 = peg$FAILED;
|
|
6411
6555
|
if (peg$silentFails === 0) {
|
|
6412
|
-
peg$fail(peg$
|
|
6556
|
+
peg$fail(peg$e24);
|
|
6413
6557
|
}
|
|
6414
6558
|
}
|
|
6415
6559
|
if (s4 === peg$FAILED) {
|
|
6416
6560
|
s4 = input.charAt(peg$currPos);
|
|
6417
|
-
if (peg$
|
|
6561
|
+
if (peg$r16.test(s4)) {
|
|
6418
6562
|
peg$currPos++;
|
|
6419
6563
|
} else {
|
|
6420
6564
|
s4 = peg$FAILED;
|
|
6421
6565
|
if (peg$silentFails === 0) {
|
|
6422
|
-
peg$fail(peg$
|
|
6566
|
+
peg$fail(peg$e25);
|
|
6423
6567
|
}
|
|
6424
6568
|
}
|
|
6425
6569
|
}
|
|
6426
6570
|
}
|
|
6427
6571
|
s4 = input.charAt(peg$currPos);
|
|
6428
|
-
if (peg$
|
|
6572
|
+
if (peg$r15.test(s4)) {
|
|
6429
6573
|
peg$currPos++;
|
|
6430
6574
|
} else {
|
|
6431
6575
|
s4 = peg$FAILED;
|
|
6432
6576
|
if (peg$silentFails === 0) {
|
|
6433
|
-
peg$fail(peg$
|
|
6577
|
+
peg$fail(peg$e23);
|
|
6434
6578
|
}
|
|
6435
6579
|
}
|
|
6436
6580
|
if (s4 !== peg$FAILED) {
|
|
6437
6581
|
peg$savedPos = s0;
|
|
6438
|
-
s0 = peg$
|
|
6582
|
+
s0 = peg$f23(s1);
|
|
6439
6583
|
} else {
|
|
6440
6584
|
peg$currPos = s0;
|
|
6441
6585
|
s0 = peg$FAILED;
|
|
@@ -6461,7 +6605,7 @@ function peg$parse(input, options) {
|
|
|
6461
6605
|
} else {
|
|
6462
6606
|
s1 = peg$FAILED;
|
|
6463
6607
|
if (peg$silentFails === 0) {
|
|
6464
|
-
peg$fail(peg$
|
|
6608
|
+
peg$fail(peg$e32);
|
|
6465
6609
|
}
|
|
6466
6610
|
}
|
|
6467
6611
|
if (s1 !== peg$FAILED) {
|
|
@@ -6474,7 +6618,7 @@ function peg$parse(input, options) {
|
|
|
6474
6618
|
} else {
|
|
6475
6619
|
s5 = peg$FAILED;
|
|
6476
6620
|
if (peg$silentFails === 0) {
|
|
6477
|
-
peg$fail(peg$
|
|
6621
|
+
peg$fail(peg$e33);
|
|
6478
6622
|
}
|
|
6479
6623
|
}
|
|
6480
6624
|
if (s5 === peg$FAILED) {
|
|
@@ -6487,7 +6631,7 @@ function peg$parse(input, options) {
|
|
|
6487
6631
|
} else {
|
|
6488
6632
|
s7 = peg$FAILED;
|
|
6489
6633
|
if (peg$silentFails === 0) {
|
|
6490
|
-
peg$fail(peg$
|
|
6634
|
+
peg$fail(peg$e32);
|
|
6491
6635
|
}
|
|
6492
6636
|
}
|
|
6493
6637
|
peg$silentFails--;
|
|
@@ -6527,7 +6671,7 @@ function peg$parse(input, options) {
|
|
|
6527
6671
|
} else {
|
|
6528
6672
|
s5 = peg$FAILED;
|
|
6529
6673
|
if (peg$silentFails === 0) {
|
|
6530
|
-
peg$fail(peg$
|
|
6674
|
+
peg$fail(peg$e33);
|
|
6531
6675
|
}
|
|
6532
6676
|
}
|
|
6533
6677
|
if (s5 === peg$FAILED) {
|
|
@@ -6540,7 +6684,7 @@ function peg$parse(input, options) {
|
|
|
6540
6684
|
} else {
|
|
6541
6685
|
s7 = peg$FAILED;
|
|
6542
6686
|
if (peg$silentFails === 0) {
|
|
6543
|
-
peg$fail(peg$
|
|
6687
|
+
peg$fail(peg$e32);
|
|
6544
6688
|
}
|
|
6545
6689
|
}
|
|
6546
6690
|
peg$silentFails--;
|
|
@@ -6600,7 +6744,7 @@ function peg$parse(input, options) {
|
|
|
6600
6744
|
} else {
|
|
6601
6745
|
s5 = peg$FAILED;
|
|
6602
6746
|
if (peg$silentFails === 0) {
|
|
6603
|
-
peg$fail(peg$
|
|
6747
|
+
peg$fail(peg$e33);
|
|
6604
6748
|
}
|
|
6605
6749
|
}
|
|
6606
6750
|
if (s5 === peg$FAILED) {
|
|
@@ -6613,7 +6757,7 @@ function peg$parse(input, options) {
|
|
|
6613
6757
|
} else {
|
|
6614
6758
|
s7 = peg$FAILED;
|
|
6615
6759
|
if (peg$silentFails === 0) {
|
|
6616
|
-
peg$fail(peg$
|
|
6760
|
+
peg$fail(peg$e32);
|
|
6617
6761
|
}
|
|
6618
6762
|
}
|
|
6619
6763
|
peg$silentFails--;
|
|
@@ -6653,7 +6797,7 @@ function peg$parse(input, options) {
|
|
|
6653
6797
|
} else {
|
|
6654
6798
|
s5 = peg$FAILED;
|
|
6655
6799
|
if (peg$silentFails === 0) {
|
|
6656
|
-
peg$fail(peg$
|
|
6800
|
+
peg$fail(peg$e33);
|
|
6657
6801
|
}
|
|
6658
6802
|
}
|
|
6659
6803
|
if (s5 === peg$FAILED) {
|
|
@@ -6666,7 +6810,7 @@ function peg$parse(input, options) {
|
|
|
6666
6810
|
} else {
|
|
6667
6811
|
s7 = peg$FAILED;
|
|
6668
6812
|
if (peg$silentFails === 0) {
|
|
6669
|
-
peg$fail(peg$
|
|
6813
|
+
peg$fail(peg$e32);
|
|
6670
6814
|
}
|
|
6671
6815
|
}
|
|
6672
6816
|
peg$silentFails--;
|
|
@@ -6727,7 +6871,7 @@ function peg$parse(input, options) {
|
|
|
6727
6871
|
} else {
|
|
6728
6872
|
s4 = peg$FAILED;
|
|
6729
6873
|
if (peg$silentFails === 0) {
|
|
6730
|
-
peg$fail(peg$
|
|
6874
|
+
peg$fail(peg$e33);
|
|
6731
6875
|
}
|
|
6732
6876
|
}
|
|
6733
6877
|
if (s4 === peg$FAILED) {
|
|
@@ -6740,7 +6884,7 @@ function peg$parse(input, options) {
|
|
|
6740
6884
|
} else {
|
|
6741
6885
|
s6 = peg$FAILED;
|
|
6742
6886
|
if (peg$silentFails === 0) {
|
|
6743
|
-
peg$fail(peg$
|
|
6887
|
+
peg$fail(peg$e32);
|
|
6744
6888
|
}
|
|
6745
6889
|
}
|
|
6746
6890
|
peg$silentFails--;
|
|
@@ -6780,7 +6924,7 @@ function peg$parse(input, options) {
|
|
|
6780
6924
|
} else {
|
|
6781
6925
|
s4 = peg$FAILED;
|
|
6782
6926
|
if (peg$silentFails === 0) {
|
|
6783
|
-
peg$fail(peg$
|
|
6927
|
+
peg$fail(peg$e33);
|
|
6784
6928
|
}
|
|
6785
6929
|
}
|
|
6786
6930
|
if (s4 === peg$FAILED) {
|
|
@@ -6793,7 +6937,7 @@ function peg$parse(input, options) {
|
|
|
6793
6937
|
} else {
|
|
6794
6938
|
s6 = peg$FAILED;
|
|
6795
6939
|
if (peg$silentFails === 0) {
|
|
6796
|
-
peg$fail(peg$
|
|
6940
|
+
peg$fail(peg$e32);
|
|
6797
6941
|
}
|
|
6798
6942
|
}
|
|
6799
6943
|
peg$silentFails--;
|
|
@@ -6832,12 +6976,12 @@ function peg$parse(input, options) {
|
|
|
6832
6976
|
} else {
|
|
6833
6977
|
s4 = peg$FAILED;
|
|
6834
6978
|
if (peg$silentFails === 0) {
|
|
6835
|
-
peg$fail(peg$
|
|
6979
|
+
peg$fail(peg$e32);
|
|
6836
6980
|
}
|
|
6837
6981
|
}
|
|
6838
6982
|
if (s4 !== peg$FAILED) {
|
|
6839
6983
|
peg$savedPos = s0;
|
|
6840
|
-
s0 = peg$
|
|
6984
|
+
s0 = peg$f24(s1);
|
|
6841
6985
|
} else {
|
|
6842
6986
|
peg$currPos = s0;
|
|
6843
6987
|
s0 = peg$FAILED;
|
|
@@ -6863,7 +7007,7 @@ function peg$parse(input, options) {
|
|
|
6863
7007
|
} else {
|
|
6864
7008
|
s1 = peg$FAILED;
|
|
6865
7009
|
if (peg$silentFails === 0) {
|
|
6866
|
-
peg$fail(peg$
|
|
7010
|
+
peg$fail(peg$e34);
|
|
6867
7011
|
}
|
|
6868
7012
|
}
|
|
6869
7013
|
if (s1 !== peg$FAILED) {
|
|
@@ -6876,7 +7020,7 @@ function peg$parse(input, options) {
|
|
|
6876
7020
|
} else {
|
|
6877
7021
|
s5 = peg$FAILED;
|
|
6878
7022
|
if (peg$silentFails === 0) {
|
|
6879
|
-
peg$fail(peg$
|
|
7023
|
+
peg$fail(peg$e35);
|
|
6880
7024
|
}
|
|
6881
7025
|
}
|
|
6882
7026
|
if (s5 === peg$FAILED) {
|
|
@@ -6889,7 +7033,7 @@ function peg$parse(input, options) {
|
|
|
6889
7033
|
} else {
|
|
6890
7034
|
s7 = peg$FAILED;
|
|
6891
7035
|
if (peg$silentFails === 0) {
|
|
6892
|
-
peg$fail(peg$
|
|
7036
|
+
peg$fail(peg$e34);
|
|
6893
7037
|
}
|
|
6894
7038
|
}
|
|
6895
7039
|
peg$silentFails--;
|
|
@@ -6929,7 +7073,7 @@ function peg$parse(input, options) {
|
|
|
6929
7073
|
} else {
|
|
6930
7074
|
s5 = peg$FAILED;
|
|
6931
7075
|
if (peg$silentFails === 0) {
|
|
6932
|
-
peg$fail(peg$
|
|
7076
|
+
peg$fail(peg$e35);
|
|
6933
7077
|
}
|
|
6934
7078
|
}
|
|
6935
7079
|
if (s5 === peg$FAILED) {
|
|
@@ -6942,7 +7086,7 @@ function peg$parse(input, options) {
|
|
|
6942
7086
|
} else {
|
|
6943
7087
|
s7 = peg$FAILED;
|
|
6944
7088
|
if (peg$silentFails === 0) {
|
|
6945
|
-
peg$fail(peg$
|
|
7089
|
+
peg$fail(peg$e34);
|
|
6946
7090
|
}
|
|
6947
7091
|
}
|
|
6948
7092
|
peg$silentFails--;
|
|
@@ -7002,7 +7146,7 @@ function peg$parse(input, options) {
|
|
|
7002
7146
|
} else {
|
|
7003
7147
|
s5 = peg$FAILED;
|
|
7004
7148
|
if (peg$silentFails === 0) {
|
|
7005
|
-
peg$fail(peg$
|
|
7149
|
+
peg$fail(peg$e35);
|
|
7006
7150
|
}
|
|
7007
7151
|
}
|
|
7008
7152
|
if (s5 === peg$FAILED) {
|
|
@@ -7015,7 +7159,7 @@ function peg$parse(input, options) {
|
|
|
7015
7159
|
} else {
|
|
7016
7160
|
s7 = peg$FAILED;
|
|
7017
7161
|
if (peg$silentFails === 0) {
|
|
7018
|
-
peg$fail(peg$
|
|
7162
|
+
peg$fail(peg$e34);
|
|
7019
7163
|
}
|
|
7020
7164
|
}
|
|
7021
7165
|
peg$silentFails--;
|
|
@@ -7055,7 +7199,7 @@ function peg$parse(input, options) {
|
|
|
7055
7199
|
} else {
|
|
7056
7200
|
s5 = peg$FAILED;
|
|
7057
7201
|
if (peg$silentFails === 0) {
|
|
7058
|
-
peg$fail(peg$
|
|
7202
|
+
peg$fail(peg$e35);
|
|
7059
7203
|
}
|
|
7060
7204
|
}
|
|
7061
7205
|
if (s5 === peg$FAILED) {
|
|
@@ -7068,7 +7212,7 @@ function peg$parse(input, options) {
|
|
|
7068
7212
|
} else {
|
|
7069
7213
|
s7 = peg$FAILED;
|
|
7070
7214
|
if (peg$silentFails === 0) {
|
|
7071
|
-
peg$fail(peg$
|
|
7215
|
+
peg$fail(peg$e34);
|
|
7072
7216
|
}
|
|
7073
7217
|
}
|
|
7074
7218
|
peg$silentFails--;
|
|
@@ -7129,7 +7273,7 @@ function peg$parse(input, options) {
|
|
|
7129
7273
|
} else {
|
|
7130
7274
|
s4 = peg$FAILED;
|
|
7131
7275
|
if (peg$silentFails === 0) {
|
|
7132
|
-
peg$fail(peg$
|
|
7276
|
+
peg$fail(peg$e35);
|
|
7133
7277
|
}
|
|
7134
7278
|
}
|
|
7135
7279
|
if (s4 === peg$FAILED) {
|
|
@@ -7142,7 +7286,7 @@ function peg$parse(input, options) {
|
|
|
7142
7286
|
} else {
|
|
7143
7287
|
s6 = peg$FAILED;
|
|
7144
7288
|
if (peg$silentFails === 0) {
|
|
7145
|
-
peg$fail(peg$
|
|
7289
|
+
peg$fail(peg$e34);
|
|
7146
7290
|
}
|
|
7147
7291
|
}
|
|
7148
7292
|
peg$silentFails--;
|
|
@@ -7182,7 +7326,7 @@ function peg$parse(input, options) {
|
|
|
7182
7326
|
} else {
|
|
7183
7327
|
s4 = peg$FAILED;
|
|
7184
7328
|
if (peg$silentFails === 0) {
|
|
7185
|
-
peg$fail(peg$
|
|
7329
|
+
peg$fail(peg$e35);
|
|
7186
7330
|
}
|
|
7187
7331
|
}
|
|
7188
7332
|
if (s4 === peg$FAILED) {
|
|
@@ -7195,7 +7339,7 @@ function peg$parse(input, options) {
|
|
|
7195
7339
|
} else {
|
|
7196
7340
|
s6 = peg$FAILED;
|
|
7197
7341
|
if (peg$silentFails === 0) {
|
|
7198
|
-
peg$fail(peg$
|
|
7342
|
+
peg$fail(peg$e34);
|
|
7199
7343
|
}
|
|
7200
7344
|
}
|
|
7201
7345
|
peg$silentFails--;
|
|
@@ -7234,12 +7378,12 @@ function peg$parse(input, options) {
|
|
|
7234
7378
|
} else {
|
|
7235
7379
|
s4 = peg$FAILED;
|
|
7236
7380
|
if (peg$silentFails === 0) {
|
|
7237
|
-
peg$fail(peg$
|
|
7381
|
+
peg$fail(peg$e34);
|
|
7238
7382
|
}
|
|
7239
7383
|
}
|
|
7240
7384
|
if (s4 !== peg$FAILED) {
|
|
7241
7385
|
peg$savedPos = s0;
|
|
7242
|
-
s0 = peg$
|
|
7386
|
+
s0 = peg$f25(s1);
|
|
7243
7387
|
} else {
|
|
7244
7388
|
peg$currPos = s0;
|
|
7245
7389
|
s0 = peg$FAILED;
|
|
@@ -7276,7 +7420,7 @@ function peg$parse(input, options) {
|
|
|
7276
7420
|
} else {
|
|
7277
7421
|
s1 = peg$FAILED;
|
|
7278
7422
|
if (peg$silentFails === 0) {
|
|
7279
|
-
peg$fail(peg$
|
|
7423
|
+
peg$fail(peg$e36);
|
|
7280
7424
|
}
|
|
7281
7425
|
}
|
|
7282
7426
|
peg$silentFails--;
|
|
@@ -7295,23 +7439,23 @@ function peg$parse(input, options) {
|
|
|
7295
7439
|
let s0, s1;
|
|
7296
7440
|
s0 = [];
|
|
7297
7441
|
s1 = input.charAt(peg$currPos);
|
|
7298
|
-
if (peg$
|
|
7442
|
+
if (peg$r8.test(s1)) {
|
|
7299
7443
|
peg$currPos++;
|
|
7300
7444
|
} else {
|
|
7301
7445
|
s1 = peg$FAILED;
|
|
7302
7446
|
if (peg$silentFails === 0) {
|
|
7303
|
-
peg$fail(peg$
|
|
7447
|
+
peg$fail(peg$e16);
|
|
7304
7448
|
}
|
|
7305
7449
|
}
|
|
7306
7450
|
while (s1 !== peg$FAILED) {
|
|
7307
7451
|
s0.push(s1);
|
|
7308
7452
|
s1 = input.charAt(peg$currPos);
|
|
7309
|
-
if (peg$
|
|
7453
|
+
if (peg$r8.test(s1)) {
|
|
7310
7454
|
peg$currPos++;
|
|
7311
7455
|
} else {
|
|
7312
7456
|
s1 = peg$FAILED;
|
|
7313
7457
|
if (peg$silentFails === 0) {
|
|
7314
|
-
peg$fail(peg$
|
|
7458
|
+
peg$fail(peg$e16);
|
|
7315
7459
|
}
|
|
7316
7460
|
}
|
|
7317
7461
|
}
|
|
@@ -7323,24 +7467,24 @@ function peg$parse(input, options) {
|
|
|
7323
7467
|
let s0, s1;
|
|
7324
7468
|
s0 = [];
|
|
7325
7469
|
s1 = input.charAt(peg$currPos);
|
|
7326
|
-
if (peg$
|
|
7470
|
+
if (peg$r8.test(s1)) {
|
|
7327
7471
|
peg$currPos++;
|
|
7328
7472
|
} else {
|
|
7329
7473
|
s1 = peg$FAILED;
|
|
7330
7474
|
if (peg$silentFails === 0) {
|
|
7331
|
-
peg$fail(peg$
|
|
7475
|
+
peg$fail(peg$e16);
|
|
7332
7476
|
}
|
|
7333
7477
|
}
|
|
7334
7478
|
if (s1 !== peg$FAILED) {
|
|
7335
7479
|
while (s1 !== peg$FAILED) {
|
|
7336
7480
|
s0.push(s1);
|
|
7337
7481
|
s1 = input.charAt(peg$currPos);
|
|
7338
|
-
if (peg$
|
|
7482
|
+
if (peg$r8.test(s1)) {
|
|
7339
7483
|
peg$currPos++;
|
|
7340
7484
|
} else {
|
|
7341
7485
|
s1 = peg$FAILED;
|
|
7342
7486
|
if (peg$silentFails === 0) {
|
|
7343
|
-
peg$fail(peg$
|
|
7487
|
+
peg$fail(peg$e16);
|
|
7344
7488
|
}
|
|
7345
7489
|
}
|
|
7346
7490
|
}
|
|
@@ -8467,8 +8611,8 @@ function coerceToNumber(rawVal) {
|
|
|
8467
8611
|
return numVal;
|
|
8468
8612
|
}
|
|
8469
8613
|
var require_ansis, require_constants, require_debug, require_re, require_parse_options, require_identifiers, require_semver, require_parse, require_valid, require_clean, require_inc, require_diff, require_major, require_minor, require_patch, require_prerelease, require_compare, require_rcompare, require_compare_loose, require_compare_build, require_sort, require_rsort, require_gt, require_lt, require_eq, require_neq, require_gte, require_lte, require_cmp, require_coerce, require_lrucache, require_range, require_comparator, require_satisfies, require_to_comparators, require_max_satisfying, require_min_satisfying, require_min_version, require_valid2, require_outside, require_gtr, require_ltr, require_intersects, require_simplify, require_subset, require_semver2, __defProp3, __name2, VALID_NUMBER_REGEX, ParsedEnvSpecDivider, ParsedEnvSpecStaticValue, ParsedEnvSpecKeyValuePair, ParsedEnvSpecFunctionArgs, ParsedEnvSpecFunctionCall, ParsedEnvSpecDecorator, ParsedEnvSpecComment, ParsedEnvSpecDecoratorComment, ParsedEnvSpecCommentBlock, ParsedEnvSpecBlankLine, ParsedEnvSpecConfigItem, ParsedEnvSpecFile, EXPAND_VAR_BRACKETED_REGEX, EXPAND_VAR_SIMPLE_REGEX, EXPAND_EXEC_REGEX, peg$SyntaxError, SimpleQueue, AUTOGENERATED_FILE_BANNER, ICON_SIZE, iconCacheFolderInit, iconInMemoryCache, PLATFORMS, VALID_ENVIRONMENTS, ExecError, asyncExec, BUILTIN_VARS, processExists2, originalProcessEnv2, EnvGraph, import_index, ansis_default, Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible, bold, dim, italic, underline, strikethrough, black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, bgGray, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright, import_semver, unicode, unicodeOr, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR, S_BAR_END, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, S_PASSWORD_MASK, symbol, limitOptions, confirm, select, multiselect, password, prompts, prompts_default, debug2, JS_PACKAGE_MANAGERS, workspaceInfoStorage, importedPluginModulePaths, _cryptoShimApplied, isBunRuntime, varlockPluginLibExports, VarlockPlugin, DATA_SOURCE_TYPES, EnvGraphDataSource2, ImportAliasSource, FileBasedDataSource, DotEnvFileDataSource, DirectoryDataSource, MultiplePathsContainerDataSource, DecoratorInstance, ItemDecoratorInstance, RootDecoratorInstance2, builtInRootDecorators, builtInItemDecorators, execAsync, REGEX_LIKE_STRING, Resolver, StaticValueResolver, FunctionArgsResolver, ErrorResolver, ConcatResolver, FallbackResolver, execQueue, ExecResolver, RefResolver, RegexResolver, RemapResolver, ForEnvResolver, EqResolver, IfResolver, IfsResolver, NotResolver, IsEmptyResolver, InferFromPrefixResolver, BaseResolvers, EnvGraphDataType, StringDataType, NumberDataType, BooleanDataType, UrlDataType, SimpleObjectDataType, EnumDataType, EMAIL_REGEX, EmailDataType, IP_V4_ADDRESS_REGEX, IP_V6_ADDRESS_REGEX, IpAddressDataType, PortDataType, SEMVER_REGEX, SemverDataType, ISO_DATE_REGEX, IsoDateDataType, UUID_REGEX, UuidDataType, MD5_REGEX, Md5DataType, BaseDataTypes, ConfigItem;
|
|
8470
|
-
var
|
|
8471
|
-
"../../varlock/dist/chunk-
|
|
8614
|
+
var init_chunk_PBWMMYWL = __esm({
|
|
8615
|
+
"../../varlock/dist/chunk-PBWMMYWL.js"() {
|
|
8472
8616
|
init_chunk_O3WTD6L4();
|
|
8473
8617
|
init_chunk_IRXBCLL2();
|
|
8474
8618
|
init_chunk_FA5SNEKN();
|
|
@@ -10519,8 +10663,8 @@ var init_chunk_GKN3UJNE = __esm({
|
|
|
10519
10663
|
get hasInvalidName() {
|
|
10520
10664
|
return !_ParsedEnvSpecDecorator.VALID_NAME_RE.test(this.data.name);
|
|
10521
10665
|
}
|
|
10522
|
-
get
|
|
10523
|
-
return this.data.
|
|
10666
|
+
get strayText() {
|
|
10667
|
+
return this.data.strayText;
|
|
10524
10668
|
}
|
|
10525
10669
|
get isBareFnCall() {
|
|
10526
10670
|
return !!this.data.isBareFnCall;
|
|
@@ -13172,8 +13316,11 @@ ${ansis_default.cyan(S_BAR_END)}
|
|
|
13172
13316
|
}
|
|
13173
13317
|
throw new SchemaError(`Unknown decorator: @${this.name}`);
|
|
13174
13318
|
}
|
|
13175
|
-
if (this.parsedDecorator.
|
|
13176
|
-
this._errors.push(new SchemaError(
|
|
13319
|
+
if (this.parsedDecorator.strayText) {
|
|
13320
|
+
this._errors.push(new SchemaError(
|
|
13321
|
+
`Unexpected text "${this.parsedDecorator.strayText}" after @${this.name} - use another # for trailing comments`,
|
|
13322
|
+
{ isWarning: true }
|
|
13323
|
+
));
|
|
13177
13324
|
}
|
|
13178
13325
|
if (this.decoratorDef.isFunction && !this.isFunctionCall) {
|
|
13179
13326
|
throw new SchemaError(
|
|
@@ -13383,7 +13530,7 @@ ${ansis_default.cyan(S_BAR_END)}
|
|
|
13383
13530
|
} else {
|
|
13384
13531
|
entries = parseEnvBulkValues(dataString);
|
|
13385
13532
|
}
|
|
13386
|
-
const { ConfigItem: ConfigItem2 } = await Promise.resolve().then(() => (
|
|
13533
|
+
const { ConfigItem: ConfigItem2 } = await Promise.resolve().then(() => (init_config_item_HMRJLPJY(), config_item_HMRJLPJY_exports));
|
|
13387
13534
|
for (const [key, entry] of Object.entries(entries)) {
|
|
13388
13535
|
const existsInSchema = key in graph.configSchema;
|
|
13389
13536
|
if (!existsInSchema && !createMissing) {
|
|
@@ -15391,8 +15538,8 @@ function patchGlobalServerResponse(opts) {
|
|
|
15391
15538
|
}
|
|
15392
15539
|
__name(patchGlobalServerResponse, "patchGlobalServerResponse");
|
|
15393
15540
|
|
|
15394
|
-
// ../../varlock/dist/chunk-
|
|
15395
|
-
|
|
15541
|
+
// ../../varlock/dist/chunk-7VERU3F7.js
|
|
15542
|
+
init_chunk_PBWMMYWL();
|
|
15396
15543
|
init_chunk_6PEHRAEP();
|
|
15397
15544
|
var import_semver2 = __toESM(require_semver2(), 1);
|
|
15398
15545
|
var MIN_BUN_VERSION = "1.3.3";
|
|
@@ -15409,8 +15556,8 @@ Bun ${MIN_BUN_VERSION} introduced the \`--no-env-file\` flag which is required t
|
|
|
15409
15556
|
}
|
|
15410
15557
|
__name(checkBunVersion, "checkBunVersion");
|
|
15411
15558
|
|
|
15412
|
-
// ../../varlock/dist/chunk-
|
|
15413
|
-
|
|
15559
|
+
// ../../varlock/dist/chunk-SX2NUZCL.js
|
|
15560
|
+
init_chunk_PBWMMYWL();
|
|
15414
15561
|
init_chunk_FA5SNEKN();
|
|
15415
15562
|
init_chunk_6PEHRAEP();
|
|
15416
15563
|
async function loadEnvGraph(opts) {
|
|
@@ -15567,8 +15714,8 @@ var CliExitError = class extends Error {
|
|
|
15567
15714
|
}
|
|
15568
15715
|
};
|
|
15569
15716
|
|
|
15570
|
-
// ../../varlock/dist/chunk-
|
|
15571
|
-
|
|
15717
|
+
// ../../varlock/dist/chunk-NHNQJTPB.js
|
|
15718
|
+
init_chunk_PBWMMYWL();
|
|
15572
15719
|
init_chunk_FA5SNEKN();
|
|
15573
15720
|
init_chunk_6PEHRAEP();
|
|
15574
15721
|
function showErrorLocationDetails(err) {
|
|
@@ -15733,7 +15880,7 @@ function checkForConfigErrors(envGraph, opts) {
|
|
|
15733
15880
|
}
|
|
15734
15881
|
__name(checkForConfigErrors, "checkForConfigErrors");
|
|
15735
15882
|
|
|
15736
|
-
// ../../varlock/dist/chunk-
|
|
15883
|
+
// ../../varlock/dist/chunk-P4HNABAM.js
|
|
15737
15884
|
init_chunk_O3WTD6L4();
|
|
15738
15885
|
init_chunk_6PEHRAEP();
|
|
15739
15886
|
var __dirname$1 = path3__namespace.default.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('next-env-compat.js', document.baseURI).href))));
|
|
@@ -16583,13 +16730,88 @@ function debug32(msg) {
|
|
|
16583
16730
|
}
|
|
16584
16731
|
}
|
|
16585
16732
|
__name(debug32, "debug");
|
|
16586
|
-
var
|
|
16587
|
-
|
|
16588
|
-
|
|
16733
|
+
var SHELL_RUNNER_NAMES = /* @__PURE__ */ new Set(["sh", "bash", "zsh", "dash", "fish", "ksh", "csh", "tcsh"]);
|
|
16734
|
+
var VARLOCK_LAUNCHER_NAMES = /* @__PURE__ */ new Set(["varlock", "varlock.exe", "varlock.cmd"]);
|
|
16735
|
+
var PACKAGE_MANAGER_RUNNER_NAMES = /* @__PURE__ */ new Set(["bun", "node", "npm", "npx", "pnpm", "pnpx", "yarn", "yarnpkg"]);
|
|
16736
|
+
var NO_TTY_SESSION_ENV_KEYS = [
|
|
16737
|
+
"CODEX_THREAD_ID",
|
|
16738
|
+
"CLAUDE_CODE_SESSION_ID",
|
|
16739
|
+
"CLAUDE_SESSION_ID"
|
|
16740
|
+
];
|
|
16741
|
+
function getProcessName(pid) {
|
|
16742
|
+
try {
|
|
16743
|
+
const exePath = fs5__namespace.default.readlinkSync(`/proc/${pid}/exe`);
|
|
16744
|
+
return exePath.split("/").pop()?.toLowerCase();
|
|
16745
|
+
} catch {
|
|
16746
|
+
}
|
|
16747
|
+
try {
|
|
16748
|
+
return fs5__namespace.default.readFileSync(`/proc/${pid}/comm`, "utf-8").trim().toLowerCase();
|
|
16749
|
+
} catch {
|
|
16750
|
+
return void 0;
|
|
16751
|
+
}
|
|
16752
|
+
}
|
|
16753
|
+
__name(getProcessName, "getProcessName");
|
|
16754
|
+
function getProcessArgs(pid) {
|
|
16755
|
+
try {
|
|
16756
|
+
return fs5__namespace.default.readFileSync(`/proc/${pid}/cmdline`, "utf-8").split("\0").filter(Boolean);
|
|
16757
|
+
} catch {
|
|
16758
|
+
return [];
|
|
16759
|
+
}
|
|
16760
|
+
}
|
|
16761
|
+
__name(getProcessArgs, "getProcessArgs");
|
|
16762
|
+
function processCommandLineLaunchesVarlock(pid) {
|
|
16763
|
+
return getProcessArgs(pid).some((arg) => {
|
|
16764
|
+
const name = arg.split("/").pop()?.toLowerCase();
|
|
16765
|
+
return Boolean(
|
|
16766
|
+
name && VARLOCK_LAUNCHER_NAMES.has(name) || arg.includes("/node_modules/.bin/varlock") || arg.includes("/varlock/bin/cli.js") || arg.includes("/packages/varlock/bin/cli.js")
|
|
16767
|
+
);
|
|
16768
|
+
});
|
|
16769
|
+
}
|
|
16770
|
+
__name(processCommandLineLaunchesVarlock, "processCommandLineLaunchesVarlock");
|
|
16771
|
+
function isEphemeralRunner(pid) {
|
|
16772
|
+
const name = getProcessName(pid);
|
|
16773
|
+
if (!name) return false;
|
|
16774
|
+
if (SHELL_RUNNER_NAMES.has(name) || VARLOCK_LAUNCHER_NAMES.has(name)) return true;
|
|
16775
|
+
return PACKAGE_MANAGER_RUNNER_NAMES.has(name) && processCommandLineLaunchesVarlock(pid);
|
|
16776
|
+
}
|
|
16777
|
+
__name(isEphemeralRunner, "isEphemeralRunner");
|
|
16778
|
+
function selectScopePidFromChain(chain) {
|
|
16779
|
+
if (chain.length < 2) return void 0;
|
|
16780
|
+
if (chain.length >= 4) {
|
|
16781
|
+
let scopePid = chain[chain.length - 3];
|
|
16782
|
+
if (isEphemeralRunner(scopePid)) {
|
|
16783
|
+
const fallback = chain[chain.length - 2];
|
|
16784
|
+
scopePid = isEphemeralRunner(fallback) ? chain[chain.length - 1] : fallback;
|
|
16785
|
+
}
|
|
16786
|
+
return scopePid;
|
|
16787
|
+
}
|
|
16788
|
+
return chain[chain.length - 1];
|
|
16789
|
+
}
|
|
16790
|
+
__name(selectScopePidFromChain, "selectScopePidFromChain");
|
|
16791
|
+
function getProcessStartTime(pid) {
|
|
16792
|
+
try {
|
|
16793
|
+
const scopeStat = fs5__namespace.default.readFileSync(`/proc/${pid}/stat`, "utf-8");
|
|
16794
|
+
const scopeFields = scopeStat.split(") ");
|
|
16795
|
+
if (scopeFields.length >= 2) {
|
|
16796
|
+
return parseInt(scopeFields[1].split(" ")[19], 10) || 0;
|
|
16797
|
+
}
|
|
16798
|
+
} catch {
|
|
16799
|
+
}
|
|
16800
|
+
return 0;
|
|
16801
|
+
}
|
|
16802
|
+
__name(getProcessStartTime, "getProcessStartTime");
|
|
16803
|
+
function getNoTtySessionIdFromEnv() {
|
|
16804
|
+
for (const key of NO_TTY_SESSION_ENV_KEYS) {
|
|
16805
|
+
const value = process.env[key]?.trim();
|
|
16806
|
+
if (value) return `env:${key}:${value}`;
|
|
16807
|
+
}
|
|
16808
|
+
return void 0;
|
|
16809
|
+
}
|
|
16810
|
+
__name(getNoTtySessionIdFromEnv, "getNoTtySessionIdFromEnv");
|
|
16811
|
+
function getParentSessionId() {
|
|
16589
16812
|
try {
|
|
16590
16813
|
const ttyPath = fs5__namespace.default.readlinkSync("/proc/self/fd/0");
|
|
16591
16814
|
if (ttyPath && ttyPath.startsWith("/dev/")) {
|
|
16592
|
-
_cachedSessionId = ttyPath;
|
|
16593
16815
|
return ttyPath;
|
|
16594
16816
|
}
|
|
16595
16817
|
} catch {
|
|
@@ -16606,23 +16828,26 @@ function getSelfSessionId() {
|
|
|
16606
16828
|
chain.push(ppid);
|
|
16607
16829
|
current = ppid;
|
|
16608
16830
|
}
|
|
16609
|
-
|
|
16610
|
-
|
|
16611
|
-
|
|
16612
|
-
|
|
16613
|
-
const scopeStat = fs5__namespace.default.readFileSync(`/proc/${scopePid}/stat`, "utf-8");
|
|
16614
|
-
const scopeFields = scopeStat.split(") ");
|
|
16615
|
-
if (scopeFields.length >= 2) {
|
|
16616
|
-
startTime = parseInt(scopeFields[1].split(" ")[19], 10) || 0;
|
|
16617
|
-
}
|
|
16618
|
-
} catch {
|
|
16619
|
-
}
|
|
16620
|
-
_cachedSessionId = `ptree:${scopePid}:${startTime}`;
|
|
16621
|
-
return _cachedSessionId;
|
|
16831
|
+
const scopePid = selectScopePidFromChain(chain);
|
|
16832
|
+
if (scopePid !== void 0) {
|
|
16833
|
+
const startTime = getProcessStartTime(scopePid);
|
|
16834
|
+
return `ptree:${scopePid}:${startTime}`;
|
|
16622
16835
|
}
|
|
16623
16836
|
} catch {
|
|
16624
16837
|
}
|
|
16625
|
-
|
|
16838
|
+
return `pid:${process.pid}`;
|
|
16839
|
+
}
|
|
16840
|
+
__name(getParentSessionId, "getParentSessionId");
|
|
16841
|
+
var _cachedSessionId;
|
|
16842
|
+
function getSelfSessionId() {
|
|
16843
|
+
if (_cachedSessionId) return _cachedSessionId;
|
|
16844
|
+
const parentSessionId = getParentSessionId();
|
|
16845
|
+
const envSessionId = getNoTtySessionIdFromEnv();
|
|
16846
|
+
if (envSessionId) {
|
|
16847
|
+
_cachedSessionId = `${envSessionId}|${parentSessionId}`;
|
|
16848
|
+
return _cachedSessionId;
|
|
16849
|
+
}
|
|
16850
|
+
_cachedSessionId = parentSessionId;
|
|
16626
16851
|
return _cachedSessionId;
|
|
16627
16852
|
}
|
|
16628
16853
|
__name(getSelfSessionId, "getSelfSessionId");
|
|
@@ -16927,8 +17152,8 @@ async function lockSession() {
|
|
|
16927
17152
|
}
|
|
16928
17153
|
__name(lockSession, "lockSession");
|
|
16929
17154
|
|
|
16930
|
-
// ../../varlock/dist/chunk-
|
|
16931
|
-
|
|
17155
|
+
// ../../varlock/dist/chunk-Q4I7MXFB.js
|
|
17156
|
+
init_chunk_PBWMMYWL();
|
|
16932
17157
|
init_chunk_FA5SNEKN();
|
|
16933
17158
|
init_chunk_6PEHRAEP();
|
|
16934
17159
|
function writeBackValue(itemKey, newValueStr, sourceFilePath) {
|
|
@@ -17341,7 +17566,7 @@ function loadVarlockEnvGraph(opts) {
|
|
|
17341
17566
|
__name(loadVarlockEnvGraph, "loadVarlockEnvGraph");
|
|
17342
17567
|
|
|
17343
17568
|
// ../../varlock/dist/index.js
|
|
17344
|
-
|
|
17569
|
+
init_chunk_PBWMMYWL();
|
|
17345
17570
|
init_chunk_O3WTD6L4();
|
|
17346
17571
|
init_chunk_IRXBCLL2();
|
|
17347
17572
|
init_chunk_FA5SNEKN();
|
|
@@ -17522,6 +17747,7 @@ var lastReloadAt;
|
|
|
17522
17747
|
var varlockLoadedEnv;
|
|
17523
17748
|
var combinedEnv;
|
|
17524
17749
|
var parsedEnv;
|
|
17750
|
+
var lastLoadedSourceStateHash;
|
|
17525
17751
|
var loadedEnvFiles = [];
|
|
17526
17752
|
var rootDir;
|
|
17527
17753
|
function getVarlockSourcesAsLoadedEnvFiles() {
|
|
@@ -17545,8 +17771,86 @@ function debug5(...args) {
|
|
|
17545
17771
|
);
|
|
17546
17772
|
}
|
|
17547
17773
|
debug5("\u2728 LOADED @next/env module!");
|
|
17774
|
+
var lastUserLogSignature;
|
|
17775
|
+
var lastUserLogAt = 0;
|
|
17776
|
+
var USER_LOG_DEDUPE_MS = 1500;
|
|
17777
|
+
function logUserInfo(message) {
|
|
17778
|
+
const now = Date.now();
|
|
17779
|
+
const signature = `info:${message}`;
|
|
17780
|
+
if (lastUserLogSignature === signature && now - lastUserLogAt < USER_LOG_DEDUPE_MS) return;
|
|
17781
|
+
lastUserLogSignature = signature;
|
|
17782
|
+
lastUserLogAt = now;
|
|
17783
|
+
console.log(message);
|
|
17784
|
+
}
|
|
17785
|
+
function logUserError(message) {
|
|
17786
|
+
const now = Date.now();
|
|
17787
|
+
const signature = `error:${message}`;
|
|
17788
|
+
if (lastUserLogSignature === signature && now - lastUserLogAt < USER_LOG_DEDUPE_MS) return;
|
|
17789
|
+
lastUserLogSignature = signature;
|
|
17790
|
+
lastUserLogAt = now;
|
|
17791
|
+
console.error(message);
|
|
17792
|
+
}
|
|
17793
|
+
function debugHash(hash) {
|
|
17794
|
+
if (hash === void 0) return "(missing)";
|
|
17795
|
+
return hash.slice(0, 10);
|
|
17796
|
+
}
|
|
17797
|
+
function readFileHash(filePath) {
|
|
17798
|
+
try {
|
|
17799
|
+
if (!fs5__namespace.existsSync(filePath)) return void 0;
|
|
17800
|
+
const contents = fs5__namespace.readFileSync(filePath, "utf-8");
|
|
17801
|
+
const hash = crypto2.createHash("sha256");
|
|
17802
|
+
hash.update(contents, "utf8");
|
|
17803
|
+
return hash.digest("hex");
|
|
17804
|
+
} catch {
|
|
17805
|
+
return void 0;
|
|
17806
|
+
}
|
|
17807
|
+
}
|
|
17808
|
+
function getTrackedSourcePaths(sources, basePath) {
|
|
17809
|
+
if (!rootDir) return [];
|
|
17810
|
+
const tracked = /* @__PURE__ */ new Set();
|
|
17811
|
+
for (const source of sources) {
|
|
17812
|
+
if (!source.enabled || !source.path) continue;
|
|
17813
|
+
const absPath = basePath ? path3__namespace.resolve(basePath, source.path) : path3__namespace.resolve(rootDir, source.path);
|
|
17814
|
+
tracked.add(absPath);
|
|
17815
|
+
}
|
|
17816
|
+
tracked.add(path3__namespace.join(rootDir, ".env.schema"));
|
|
17817
|
+
return [...tracked].sort();
|
|
17818
|
+
}
|
|
17819
|
+
function computeSourceStateHash(sources, basePath) {
|
|
17820
|
+
const trackedPaths = getTrackedSourcePaths(sources, basePath);
|
|
17821
|
+
if (!trackedPaths.length) return void 0;
|
|
17822
|
+
const hash = crypto2.createHash("sha256");
|
|
17823
|
+
for (const filePath of trackedPaths) {
|
|
17824
|
+
const fileHash = readFileHash(filePath) || "(missing)";
|
|
17825
|
+
hash.update(`${filePath}:${fileHash}
|
|
17826
|
+
`);
|
|
17827
|
+
}
|
|
17828
|
+
return hash.digest("hex");
|
|
17829
|
+
}
|
|
17548
17830
|
var NEXT_WATCHED_ENV_FILES = [".env", ".env.local", ".env.development", ".env.development.local"];
|
|
17549
17831
|
var watchedExtraFiles = /* @__PURE__ */ new Set();
|
|
17832
|
+
var pendingReloadFiles = /* @__PURE__ */ new Set();
|
|
17833
|
+
function formatChangedFilesSummary(paths) {
|
|
17834
|
+
if (!paths.length) return "no files";
|
|
17835
|
+
const displayPaths = paths.map((filePath) => {
|
|
17836
|
+
if (!rootDir) return filePath;
|
|
17837
|
+
const rel = path3__namespace.relative(rootDir, filePath);
|
|
17838
|
+
return rel || filePath;
|
|
17839
|
+
});
|
|
17840
|
+
if (displayPaths.length === 1) return displayPaths[0];
|
|
17841
|
+
if (displayPaths.length <= 3) return displayPaths.join(", ");
|
|
17842
|
+
return `${displayPaths.slice(0, 3).join(", ")} +${displayPaths.length - 3} more`;
|
|
17843
|
+
}
|
|
17844
|
+
function consumePendingReloadSummary() {
|
|
17845
|
+
const files = [...pendingReloadFiles];
|
|
17846
|
+
pendingReloadFiles.clear();
|
|
17847
|
+
if (!files.length) return void 0;
|
|
17848
|
+
return formatChangedFilesSummary(files);
|
|
17849
|
+
}
|
|
17850
|
+
function getEnvFromNextCommand(dev) {
|
|
17851
|
+
if (process.env.NODE_ENV === "test") return "test";
|
|
17852
|
+
return dev ? "development" : "production";
|
|
17853
|
+
}
|
|
17550
17854
|
function enableExtraFileWatchers(sources, basePath) {
|
|
17551
17855
|
if (IS_WORKER || !rootDir) return;
|
|
17552
17856
|
const nextWatchedAbsolute = new Set(NEXT_WATCHED_ENV_FILES.map((f) => path3__namespace.join(rootDir, f)));
|
|
@@ -17573,8 +17877,54 @@ function enableExtraFileWatchers(sources, basePath) {
|
|
|
17573
17877
|
}
|
|
17574
17878
|
const mustDestroyTriggerFile = !triggerFilePath;
|
|
17575
17879
|
triggerFilePath ||= path3__namespace.join(rootDir, ".env");
|
|
17576
|
-
|
|
17577
|
-
|
|
17880
|
+
const pendingWatchChanges = /* @__PURE__ */ new Set();
|
|
17881
|
+
const watchedFileHashes = /* @__PURE__ */ new Map();
|
|
17882
|
+
const watchStabilityRetries = /* @__PURE__ */ new Map();
|
|
17883
|
+
let debounceTimeout;
|
|
17884
|
+
const DEBOUNCE_MS = 300;
|
|
17885
|
+
const MAX_STABILITY_RETRIES = 5;
|
|
17886
|
+
function processPendingWatchChanges() {
|
|
17887
|
+
const changedPaths = [...pendingWatchChanges];
|
|
17888
|
+
pendingWatchChanges.clear();
|
|
17889
|
+
if (!changedPaths.length) return;
|
|
17890
|
+
debug5("processing watch changes", changedPaths);
|
|
17891
|
+
const changedByContent = [];
|
|
17892
|
+
const unstablePaths = [];
|
|
17893
|
+
for (const filePath of changedPaths) {
|
|
17894
|
+
const prev = watchedFileHashes.get(filePath);
|
|
17895
|
+
const next = readFileHash(filePath);
|
|
17896
|
+
debug5(
|
|
17897
|
+
"watch hash compare",
|
|
17898
|
+
filePath,
|
|
17899
|
+
`prev=${debugHash(prev)}`,
|
|
17900
|
+
`next=${debugHash(next)}`
|
|
17901
|
+
);
|
|
17902
|
+
if (next === void 0 && prev !== void 0) {
|
|
17903
|
+
const retryCount = (watchStabilityRetries.get(filePath) || 0) + 1;
|
|
17904
|
+
if (retryCount <= MAX_STABILITY_RETRIES) {
|
|
17905
|
+
watchStabilityRetries.set(filePath, retryCount);
|
|
17906
|
+
unstablePaths.push(filePath);
|
|
17907
|
+
debug5("watch state unstable, retrying", filePath, `(attempt ${retryCount}/${MAX_STABILITY_RETRIES})`);
|
|
17908
|
+
continue;
|
|
17909
|
+
}
|
|
17910
|
+
}
|
|
17911
|
+
watchStabilityRetries.delete(filePath);
|
|
17912
|
+
watchedFileHashes.set(filePath, next);
|
|
17913
|
+
if (next !== prev) changedByContent.push(filePath);
|
|
17914
|
+
}
|
|
17915
|
+
if (unstablePaths.length) {
|
|
17916
|
+
for (const filePath of unstablePaths) pendingWatchChanges.add(filePath);
|
|
17917
|
+
if (debounceTimeout) clearTimeout(debounceTimeout);
|
|
17918
|
+
debounceTimeout = setTimeout(processPendingWatchChanges, DEBOUNCE_MS);
|
|
17919
|
+
}
|
|
17920
|
+
if (!changedByContent.length) {
|
|
17921
|
+
if (unstablePaths.length === changedPaths.length) return;
|
|
17922
|
+
const summary = formatChangedFilesSummary(changedPaths);
|
|
17923
|
+
logUserInfo(`\u2139\uFE0F [varlock] change detected in ${summary}; file contents unchanged, skipping next reload.`);
|
|
17924
|
+
return;
|
|
17925
|
+
}
|
|
17926
|
+
for (const changed of changedByContent) pendingReloadFiles.add(changed);
|
|
17927
|
+
debug5("extra file changed, triggering reload:", changedByContent);
|
|
17578
17928
|
if (mustDestroyTriggerFile) {
|
|
17579
17929
|
fs5__namespace.writeFileSync(triggerFilePath, [
|
|
17580
17930
|
"# This file was created by @varlock/nextjs-integration",
|
|
@@ -17594,9 +17944,16 @@ function enableExtraFileWatchers(sources, basePath) {
|
|
|
17594
17944
|
fs5__namespace.writeFileSync(triggerFilePath, currentContents, "utf-8");
|
|
17595
17945
|
}
|
|
17596
17946
|
}
|
|
17947
|
+
function triggerNextReload(changedPath) {
|
|
17948
|
+
debug5("watch event", changedPath);
|
|
17949
|
+
pendingWatchChanges.add(changedPath);
|
|
17950
|
+
if (debounceTimeout) clearTimeout(debounceTimeout);
|
|
17951
|
+
debounceTimeout = setTimeout(processPendingWatchChanges, DEBOUNCE_MS);
|
|
17952
|
+
}
|
|
17597
17953
|
debug5("setting up extra file watchers for:", extraFilePaths);
|
|
17598
17954
|
for (const filePath of extraFilePaths) {
|
|
17599
17955
|
watchedExtraFiles.add(filePath);
|
|
17956
|
+
watchedFileHashes.set(filePath, readFileHash(filePath));
|
|
17600
17957
|
fs5__namespace.watchFile(filePath, { interval: 500 }, () => {
|
|
17601
17958
|
triggerNextReload(filePath);
|
|
17602
17959
|
});
|
|
@@ -17632,18 +17989,50 @@ function resetEnv() {
|
|
|
17632
17989
|
}
|
|
17633
17990
|
}
|
|
17634
17991
|
var loadCount = 0;
|
|
17992
|
+
var suppressSkipLogUntil = 0;
|
|
17635
17993
|
function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload) {
|
|
17636
17994
|
exports.initialEnv ||= { ...process.env };
|
|
17637
17995
|
loadCount++;
|
|
17638
|
-
debug5("loadEnvConfig!",
|
|
17996
|
+
debug5("loadEnvConfig!", { forceReload, loadCount, dev });
|
|
17997
|
+
const reloadSummary = forceReload ? consumePendingReloadSummary() : void 0;
|
|
17998
|
+
const effectiveReloadSummary = forceReload ? reloadSummary || "an env source file" : void 0;
|
|
17639
17999
|
rootDir ||= dir;
|
|
17640
18000
|
if (rootDir !== dir) throw new Error("root directory changed");
|
|
17641
18001
|
if (dev) enableExtraFileWatchers([], void 0);
|
|
18002
|
+
if (!varlockLoadedEnv && process.env.__VARLOCK_ENV) {
|
|
18003
|
+
try {
|
|
18004
|
+
varlockLoadedEnv = JSON.parse(process.env.__VARLOCK_ENV);
|
|
18005
|
+
} catch {
|
|
18006
|
+
}
|
|
18007
|
+
}
|
|
18008
|
+
if (!lastLoadedSourceStateHash && varlockLoadedEnv) {
|
|
18009
|
+
lastLoadedSourceStateHash = computeSourceStateHash(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
18010
|
+
}
|
|
17642
18011
|
let useCachedEnv = !!process.env.__VARLOCK_ENV;
|
|
17643
18012
|
if (forceReload) {
|
|
17644
18013
|
if (!lastReloadAt || lastReloadAt.getTime() < Date.now() - 1e3) {
|
|
17645
18014
|
lastReloadAt = /* @__PURE__ */ new Date();
|
|
17646
18015
|
useCachedEnv = false;
|
|
18016
|
+
} else {
|
|
18017
|
+
debug5("forceReload requested but throttled (within 1s window)");
|
|
18018
|
+
}
|
|
18019
|
+
}
|
|
18020
|
+
if (forceReload && varlockLoadedEnv && lastLoadedSourceStateHash) {
|
|
18021
|
+
const currentSourceStateHash = computeSourceStateHash(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
18022
|
+
debug5(
|
|
18023
|
+
"source state hash compare",
|
|
18024
|
+
`prev=${debugHash(lastLoadedSourceStateHash)}`,
|
|
18025
|
+
`next=${debugHash(currentSourceStateHash)}`
|
|
18026
|
+
);
|
|
18027
|
+
if (currentSourceStateHash && currentSourceStateHash === lastLoadedSourceStateHash) {
|
|
18028
|
+
useCachedEnv = true;
|
|
18029
|
+
if (loadCount >= 2 && effectiveReloadSummary) {
|
|
18030
|
+
if (Date.now() >= suppressSkipLogUntil) {
|
|
18031
|
+
logUserInfo(`\u2139\uFE0F [varlock] change detected in ${effectiveReloadSummary}; file contents unchanged, skipping reload.`);
|
|
18032
|
+
} else {
|
|
18033
|
+
debug5("suppressing immediate follow-up skip log");
|
|
18034
|
+
}
|
|
18035
|
+
}
|
|
17647
18036
|
}
|
|
17648
18037
|
}
|
|
17649
18038
|
if (useCachedEnv) {
|
|
@@ -17655,6 +18044,7 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
17655
18044
|
resetRedactionMap(varlockLoadedEnv);
|
|
17656
18045
|
debug5("patching console with varlock redactor");
|
|
17657
18046
|
patchGlobalConsole();
|
|
18047
|
+
lastLoadedSourceStateHash = computeSourceStateHash(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
17658
18048
|
}
|
|
17659
18049
|
combinedEnv = { ...exports.initialEnv, ...parsedEnv };
|
|
17660
18050
|
if (dev) enableExtraFileWatchers(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
@@ -17662,10 +18052,10 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
17662
18052
|
return { combinedEnv, parsedEnv, loadedEnvFiles };
|
|
17663
18053
|
}
|
|
17664
18054
|
lastReloadAt = /* @__PURE__ */ new Date();
|
|
18055
|
+
const previousSerializedEnv = process.env.__VARLOCK_ENV;
|
|
17665
18056
|
debug5(">> RELOADING ENV");
|
|
17666
18057
|
replaceProcessEnv(exports.initialEnv);
|
|
17667
|
-
|
|
17668
|
-
if (process.env.NODE_ENV === "test") envFromNextCommand = "test";
|
|
18058
|
+
const envFromNextCommand = getEnvFromNextCommand(!!dev);
|
|
17669
18059
|
debug5("Inferred env mode (to match @next/env):", envFromNextCommand);
|
|
17670
18060
|
try {
|
|
17671
18061
|
const cleanEnv = { ...exports.initialEnv };
|
|
@@ -17674,8 +18064,26 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
17674
18064
|
fullResult: true,
|
|
17675
18065
|
env: cleanEnv
|
|
17676
18066
|
});
|
|
17677
|
-
if (loadCount >= 2) {
|
|
17678
|
-
|
|
18067
|
+
if (loadCount >= 2 && forceReload) {
|
|
18068
|
+
const envChanged = stdout2 !== previousSerializedEnv;
|
|
18069
|
+
if (effectiveReloadSummary) {
|
|
18070
|
+
if (envChanged) {
|
|
18071
|
+
suppressSkipLogUntil = Date.now() + 1200;
|
|
18072
|
+
logUserInfo(`\u2705 [varlock] change detected in ${effectiveReloadSummary}; reloaded env, changes found.`);
|
|
18073
|
+
} else {
|
|
18074
|
+
suppressSkipLogUntil = Date.now() + 1200;
|
|
18075
|
+
logUserInfo(`\u2705 [varlock] change detected in ${effectiveReloadSummary}; reloaded env, no changes found.`);
|
|
18076
|
+
}
|
|
18077
|
+
}
|
|
18078
|
+
} else if (loadCount >= 2) {
|
|
18079
|
+
debug5("reload occurred without forceReload (likely Next-triggered reload path)");
|
|
18080
|
+
debug5("emitting success banner", {
|
|
18081
|
+
pid: process.pid,
|
|
18082
|
+
loadCount,
|
|
18083
|
+
forceReload,
|
|
18084
|
+
isWorker: IS_WORKER
|
|
18085
|
+
});
|
|
18086
|
+
logUserInfo("\u2705 [varlock] env reloaded and validated");
|
|
17679
18087
|
}
|
|
17680
18088
|
varlockLoadedEnv = JSON.parse(stdout2);
|
|
17681
18089
|
} catch (err) {
|
|
@@ -17702,7 +18110,12 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
17702
18110
|
}
|
|
17703
18111
|
}
|
|
17704
18112
|
}
|
|
17705
|
-
|
|
18113
|
+
if (forceReload) {
|
|
18114
|
+
const summary = effectiveReloadSummary || "an env source file";
|
|
18115
|
+
logUserError(`
|
|
18116
|
+
[varlock] change detected in ${summary}; reload failed.`);
|
|
18117
|
+
}
|
|
18118
|
+
logUserError("\n[varlock] \u26A0\uFE0F fix the error(s) above and save to reload\n");
|
|
17706
18119
|
if (!dev) {
|
|
17707
18120
|
process.exit(err.exitCode ?? 1);
|
|
17708
18121
|
}
|
|
@@ -17730,6 +18143,7 @@ function loadEnvConfig(dir, dev, _log = console, forceReload = false, _onReload)
|
|
|
17730
18143
|
patchGlobalConsole();
|
|
17731
18144
|
combinedEnv = { ...exports.initialEnv, ...parsedEnv };
|
|
17732
18145
|
loadedEnvFiles = getVarlockSourcesAsLoadedEnvFiles();
|
|
18146
|
+
lastLoadedSourceStateHash = computeSourceStateHash(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
17733
18147
|
if (dev) enableExtraFileWatchers(varlockLoadedEnv.sources, varlockLoadedEnv.basePath);
|
|
17734
18148
|
return { combinedEnv, parsedEnv, loadedEnvFiles };
|
|
17735
18149
|
}
|