git-digger 1.2.26 → 1.2.28
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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +143 -108
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/kotlin/clikt-clikt.js +120 -120
- package/kotlin/colormath-root-colormath.js +31 -31
- package/kotlin/kotlin-kotlin-stdlib.js +313 -312
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +119 -119
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +41 -41
- package/kotlin/markdown.js +80 -80
- package/kotlin/mordant-mordant.js +98 -98
- package/kotlin/tools-digger-cli.js +12 -12
- package/kotlin/tools-digger-core.js +56 -56
- package/kotlin/tools-digger-json.js +13 -13
- package/kotlin/tools-digger-model.js +7 -7
- package/package.json +1 -1
|
@@ -8,96 +8,95 @@
|
|
|
8
8
|
var ZoneOffset = $module$_js_joda_core_gcv2k.ZoneOffset;
|
|
9
9
|
var DateTimeFormatterBuilder = $module$_js_joda_core_gcv2k.DateTimeFormatterBuilder;
|
|
10
10
|
var ResolverStyle = $module$_js_joda_core_gcv2k.ResolverStyle;
|
|
11
|
-
var toString = kotlin_kotlin.$_$.
|
|
11
|
+
var toString = kotlin_kotlin.$_$.b9;
|
|
12
12
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.f1;
|
|
13
13
|
var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.d1;
|
|
14
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
15
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
16
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
14
|
+
var protoOf = kotlin_kotlin.$_$.y8;
|
|
15
|
+
var objectCreate = kotlin_kotlin.$_$.w8;
|
|
16
|
+
var captureStack = kotlin_kotlin.$_$.o7;
|
|
17
17
|
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.e1;
|
|
18
18
|
var IllegalArgumentException_init_$Init$_1 = kotlin_kotlin.$_$.g1;
|
|
19
|
-
var IllegalArgumentException = kotlin_kotlin.$_$.
|
|
20
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
21
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
19
|
+
var IllegalArgumentException = kotlin_kotlin.$_$.dc;
|
|
20
|
+
var classMeta = kotlin_kotlin.$_$.u7;
|
|
21
|
+
var setMetadataFor = kotlin_kotlin.$_$.z8;
|
|
22
22
|
var VOID = kotlin_kotlin.$_$.g;
|
|
23
|
-
var Long = kotlin_kotlin.$_$.
|
|
24
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
23
|
+
var Long = kotlin_kotlin.$_$.fc;
|
|
24
|
+
var getStringHashCode = kotlin_kotlin.$_$.b8;
|
|
25
25
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.s1;
|
|
26
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
27
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
28
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
29
|
-
var toLong = kotlin_kotlin.$_$.
|
|
30
|
-
var ArithmeticException = kotlin_kotlin.$_$.
|
|
31
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
32
|
-
var KMutableProperty1 = kotlin_kotlin.$_$.
|
|
33
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
34
|
-
var KMutableProperty0 = kotlin_kotlin.$_$.
|
|
35
|
-
var Enum = kotlin_kotlin.$_$.
|
|
36
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
37
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
26
|
+
var Unit_instance = kotlin_kotlin.$_$.l3;
|
|
27
|
+
var objectMeta = kotlin_kotlin.$_$.x8;
|
|
28
|
+
var ensureNotNull = kotlin_kotlin.$_$.xc;
|
|
29
|
+
var toLong = kotlin_kotlin.$_$.a9;
|
|
30
|
+
var ArithmeticException = kotlin_kotlin.$_$.wb;
|
|
31
|
+
var THROW_CCE = kotlin_kotlin.$_$.jc;
|
|
32
|
+
var KMutableProperty1 = kotlin_kotlin.$_$.o9;
|
|
33
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.a8;
|
|
34
|
+
var KMutableProperty0 = kotlin_kotlin.$_$.n9;
|
|
35
|
+
var Enum = kotlin_kotlin.$_$.bc;
|
|
36
|
+
var interfaceMeta = kotlin_kotlin.$_$.d8;
|
|
37
|
+
var toString_0 = kotlin_kotlin.$_$.w1;
|
|
38
38
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
39
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
40
|
-
var isArray = kotlin_kotlin.$_$.
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.m8;
|
|
40
|
+
var isArray = kotlin_kotlin.$_$.e8;
|
|
41
41
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
|
|
42
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
43
|
-
var listOf = kotlin_kotlin.$_$.
|
|
44
|
-
var get_indices = kotlin_kotlin.$_$.
|
|
45
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
46
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
47
|
-
var equals = kotlin_kotlin.$_$.
|
|
48
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
49
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
50
|
-
var lazy = kotlin_kotlin.$_$.
|
|
51
|
-
var padStart = kotlin_kotlin.$_$.
|
|
42
|
+
var hashCode = kotlin_kotlin.$_$.c8;
|
|
43
|
+
var listOf = kotlin_kotlin.$_$.t5;
|
|
44
|
+
var get_indices = kotlin_kotlin.$_$.g5;
|
|
45
|
+
var charSequenceLength = kotlin_kotlin.$_$.s7;
|
|
46
|
+
var joinToString = kotlin_kotlin.$_$.h5;
|
|
47
|
+
var equals = kotlin_kotlin.$_$.w7;
|
|
48
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.y7;
|
|
49
|
+
var KProperty0 = kotlin_kotlin.$_$.p9;
|
|
50
|
+
var lazy = kotlin_kotlin.$_$.bd;
|
|
51
|
+
var padStart = kotlin_kotlin.$_$.xa;
|
|
52
52
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
|
|
53
|
-
var getOrNull = kotlin_kotlin.$_$.
|
|
54
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
56
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var Exception = kotlin_kotlin.$_$.bc;
|
|
53
|
+
var getOrNull = kotlin_kotlin.$_$.c5;
|
|
54
|
+
var listOf_0 = kotlin_kotlin.$_$.s5;
|
|
55
|
+
var emptyList = kotlin_kotlin.$_$.u4;
|
|
56
|
+
var charSequenceGet = kotlin_kotlin.$_$.r7;
|
|
57
|
+
var get_lastIndex = kotlin_kotlin.$_$.ua;
|
|
58
|
+
var toSet = kotlin_kotlin.$_$.b7;
|
|
59
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.i4;
|
|
60
|
+
var distinct = kotlin_kotlin.$_$.r4;
|
|
61
|
+
var to = kotlin_kotlin.$_$.ed;
|
|
62
|
+
var single = kotlin_kotlin.$_$.j6;
|
|
63
|
+
var Collection = kotlin_kotlin.$_$.n3;
|
|
64
|
+
var charSequenceSubSequence = kotlin_kotlin.$_$.t7;
|
|
65
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.r8;
|
|
66
|
+
var mutableListOf = kotlin_kotlin.$_$.y5;
|
|
67
|
+
var removeLastOrNull = kotlin_kotlin.$_$.e6;
|
|
68
|
+
var sortWith = kotlin_kotlin.$_$.m6;
|
|
69
|
+
var Comparator = kotlin_kotlin.$_$.ac;
|
|
70
|
+
var compareValues = kotlin_kotlin.$_$.h7;
|
|
71
|
+
var Exception = kotlin_kotlin.$_$.cc;
|
|
73
72
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.b1;
|
|
74
73
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
75
|
-
var joinTo = kotlin_kotlin.$_$.
|
|
76
|
-
var plus = kotlin_kotlin.$_$.
|
|
77
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
78
|
-
var addAll = kotlin_kotlin.$_$.
|
|
79
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
80
|
-
var drop = kotlin_kotlin.$_$.
|
|
81
|
-
var IntCompanionObject_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var repeat = kotlin_kotlin.$_$.
|
|
83
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
84
|
-
var
|
|
85
|
-
var
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var compareTo = kotlin_kotlin.$_$.u7;
|
|
74
|
+
var joinTo = kotlin_kotlin.$_$.i5;
|
|
75
|
+
var plus = kotlin_kotlin.$_$.c6;
|
|
76
|
+
var toMutableList = kotlin_kotlin.$_$.z6;
|
|
77
|
+
var addAll = kotlin_kotlin.$_$.z3;
|
|
78
|
+
var firstOrNull = kotlin_kotlin.$_$.y4;
|
|
79
|
+
var drop = kotlin_kotlin.$_$.t4;
|
|
80
|
+
var IntCompanionObject_instance = kotlin_kotlin.$_$.z2;
|
|
81
|
+
var repeat = kotlin_kotlin.$_$.cb;
|
|
82
|
+
var sortedWith = kotlin_kotlin.$_$.n6;
|
|
83
|
+
var binarySearch = kotlin_kotlin.$_$.e4;
|
|
84
|
+
var startsWith = kotlin_kotlin.$_$.kb;
|
|
85
|
+
var checkCountOverflow = kotlin_kotlin.$_$.g4;
|
|
86
|
+
var compareTo = kotlin_kotlin.$_$.v7;
|
|
89
87
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.x;
|
|
90
|
-
var removePrefix = kotlin_kotlin.$_$.
|
|
88
|
+
var removePrefix = kotlin_kotlin.$_$.za;
|
|
91
89
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
92
|
-
var Comparable = kotlin_kotlin.$_$.
|
|
90
|
+
var Comparable = kotlin_kotlin.$_$.zb;
|
|
91
|
+
var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.u1;
|
|
93
92
|
var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
|
|
94
93
|
var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
95
94
|
var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
|
|
96
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
97
|
-
var numberToLong = kotlin_kotlin.$_$.
|
|
95
|
+
var enumEntries = kotlin_kotlin.$_$.i7;
|
|
96
|
+
var numberToLong = kotlin_kotlin.$_$.v8;
|
|
98
97
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.c1;
|
|
99
|
-
var numberToInt = kotlin_kotlin.$_$.
|
|
100
|
-
var Companion_getInstance = kotlin_kotlin.$_$.
|
|
98
|
+
var numberToInt = kotlin_kotlin.$_$.u8;
|
|
99
|
+
var Companion_getInstance = kotlin_kotlin.$_$.f3;
|
|
101
100
|
var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
102
101
|
//endregion
|
|
103
102
|
//region block: pre-declaration
|
|
@@ -331,7 +330,7 @@
|
|
|
331
330
|
return tmp;
|
|
332
331
|
}
|
|
333
332
|
setMetadataFor(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', interfaceMeta, VOID, [WithUtcOffset]);
|
|
334
|
-
setMetadataFor(Builder, 'Builder', classMeta, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder,
|
|
333
|
+
setMetadataFor(Builder, 'Builder', classMeta, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithUtcOffset, WithDate]);
|
|
335
334
|
setMetadataFor(AbstractDateTimeFormat, 'AbstractDateTimeFormat', classMeta);
|
|
336
335
|
setMetadataFor(DateTimeComponentsFormat, 'DateTimeComponentsFormat', classMeta, AbstractDateTimeFormat);
|
|
337
336
|
setMetadataFor(TwoDigitNumber, 'TwoDigitNumber', classMeta);
|
|
@@ -2784,7 +2783,7 @@
|
|
|
2784
2783
|
// Inline function 'kotlin.contracts.contract' call
|
|
2785
2784
|
// Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>' call
|
|
2786
2785
|
var tmp_0;
|
|
2787
|
-
if (
|
|
2786
|
+
if (isAsciiDigit(charSequenceGet(this.v12_1, 0))) {
|
|
2788
2787
|
var tmp$ret$4;
|
|
2789
2788
|
$l$block: {
|
|
2790
2789
|
// Inline function 'kotlin.text.takeWhile' call
|
|
@@ -2797,7 +2796,7 @@
|
|
|
2797
2796
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2798
2797
|
// Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
|
|
2799
2798
|
var it = charSequenceGet(this_2, index);
|
|
2800
|
-
if (!
|
|
2799
|
+
if (!isAsciiDigit(it)) {
|
|
2801
2800
|
// Inline function 'kotlin.text.substring' call
|
|
2802
2801
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2803
2802
|
tmp$ret$4 = this_2.substring(0, index);
|
|
@@ -2820,7 +2819,7 @@
|
|
|
2820
2819
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2821
2820
|
// Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
|
|
2822
2821
|
var it_0 = charSequenceGet(this_3, index_0);
|
|
2823
|
-
if (!
|
|
2822
|
+
if (!isAsciiDigit(it_0)) {
|
|
2824
2823
|
// Inline function 'kotlin.text.substring' call
|
|
2825
2824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2826
2825
|
tmp$ret$8 = this_3.substring(index_0);
|
|
@@ -2837,7 +2836,7 @@
|
|
|
2837
2836
|
var suffix = tmp_0;
|
|
2838
2837
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2839
2838
|
if (charSequenceLength(suffix) > 0) {
|
|
2840
|
-
if (
|
|
2839
|
+
if (isAsciiDigit(charSequenceGet(suffix, suffix.length - 1 | 0))) {
|
|
2841
2840
|
var tmp$ret$13;
|
|
2842
2841
|
$l$block_1: {
|
|
2843
2842
|
// Inline function 'kotlin.text.dropLastWhile' call
|
|
@@ -2848,7 +2847,7 @@
|
|
|
2848
2847
|
inductionVariable_1 = inductionVariable_1 + -1 | 0;
|
|
2849
2848
|
// Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
|
|
2850
2849
|
var it_1 = charSequenceGet(suffix, index_1);
|
|
2851
|
-
if (!
|
|
2850
|
+
if (!isAsciiDigit(it_1)) {
|
|
2852
2851
|
// Inline function 'kotlin.text.substring' call
|
|
2853
2852
|
var endIndex = index_1 + 1 | 0;
|
|
2854
2853
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2870,7 +2869,7 @@
|
|
|
2870
2869
|
inductionVariable_2 = inductionVariable_2 + -1 | 0;
|
|
2871
2870
|
// Inline function 'kotlinx.datetime.internal.format.ConstantFormatStructure.parser.<anonymous>.<anonymous>' call
|
|
2872
2871
|
var it_2 = charSequenceGet(suffix, index_2);
|
|
2873
|
-
if (!
|
|
2872
|
+
if (!isAsciiDigit(it_2)) {
|
|
2874
2873
|
// Inline function 'kotlin.text.substring' call
|
|
2875
2874
|
var startIndex = index_2 + 1 | 0;
|
|
2876
2875
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -3407,37 +3406,39 @@
|
|
|
3407
3406
|
this.d14_1 = string;
|
|
3408
3407
|
}
|
|
3409
3408
|
function FractionPartConsumer(minLength, maxLength, setter, name) {
|
|
3410
|
-
NumberConsumer.call(this, minLength
|
|
3409
|
+
NumberConsumer.call(this, minLength === maxLength ? minLength : null, name);
|
|
3411
3410
|
this.g14_1 = minLength;
|
|
3412
3411
|
this.h14_1 = maxLength;
|
|
3413
3412
|
this.i14_1 = setter;
|
|
3414
3413
|
// Inline function 'kotlin.require' call
|
|
3414
|
+
var containsArg = this.g14_1;
|
|
3415
3415
|
// Inline function 'kotlin.contracts.contract' call
|
|
3416
|
-
if (!(
|
|
3416
|
+
if (!(1 <= containsArg ? containsArg <= 9 : false)) {
|
|
3417
3417
|
// Inline function 'kotlinx.datetime.internal.format.parser.FractionPartConsumer.<anonymous>' call
|
|
3418
|
-
var message = 'Invalid length for field ' + this.k14_1 + ': '
|
|
3418
|
+
var message = 'Invalid minimum length ' + this.g14_1 + ' for field ' + this.k14_1 + ': expected 1..9';
|
|
3419
3419
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3420
3420
|
}
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
var
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
var numerator = toIntOrNull(input);
|
|
3430
|
-
tmp = numerator == null ? new TooManyDigits(9) : setWithoutReassigning(this.i14_1, storage, new DecimalFraction(numerator, input.length));
|
|
3421
|
+
// Inline function 'kotlin.require' call
|
|
3422
|
+
var containsLower = this.g14_1;
|
|
3423
|
+
var containsArg_0 = this.h14_1;
|
|
3424
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3425
|
+
if (!(containsLower <= containsArg_0 ? containsArg_0 <= 9 : false)) {
|
|
3426
|
+
// Inline function 'kotlinx.datetime.internal.format.parser.FractionPartConsumer.<anonymous>' call
|
|
3427
|
+
var message_0 = 'Invalid maximum length ' + this.h14_1 + ' for field ' + this.k14_1 + ': expected ' + this.g14_1 + '..9';
|
|
3428
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
3431
3429
|
}
|
|
3432
|
-
|
|
3430
|
+
}
|
|
3431
|
+
protoOf(FractionPartConsumer).l14 = function (storage, input, start, end) {
|
|
3432
|
+
return (end - start | 0) < this.g14_1 ? new TooFewDigits(this.g14_1) : (end - start | 0) > this.h14_1 ? new TooManyDigits(this.h14_1) : setWithoutReassigning(this.i14_1, storage, new DecimalFraction(parseAsciiInt(input, start, end), end - start | 0));
|
|
3433
3433
|
};
|
|
3434
3434
|
function ConstantNumberConsumer(expected) {
|
|
3435
3435
|
NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
|
|
3436
3436
|
this.o14_1 = expected;
|
|
3437
3437
|
}
|
|
3438
|
-
protoOf(ConstantNumberConsumer).l14 = function (storage, input) {
|
|
3438
|
+
protoOf(ConstantNumberConsumer).l14 = function (storage, input, start, end) {
|
|
3439
3439
|
var tmp;
|
|
3440
|
-
|
|
3440
|
+
// Inline function 'kotlin.text.substring' call
|
|
3441
|
+
if (toString(charSequenceSubSequence(input, start, end)) === this.o14_1) {
|
|
3441
3442
|
tmp = null;
|
|
3442
3443
|
} else {
|
|
3443
3444
|
tmp = new WrongConstant(this.o14_1);
|
|
@@ -3495,6 +3496,19 @@
|
|
|
3495
3496
|
var conflictingValue = tmp;
|
|
3496
3497
|
return new Conflicting(conflictingValue);
|
|
3497
3498
|
}
|
|
3499
|
+
function parseAsciiInt(_this__u8e3s4, start, end) {
|
|
3500
|
+
var result = 0;
|
|
3501
|
+
var inductionVariable = start;
|
|
3502
|
+
if (inductionVariable < end)
|
|
3503
|
+
do {
|
|
3504
|
+
var i = inductionVariable;
|
|
3505
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3506
|
+
var digit = charSequenceGet(_this__u8e3s4, i);
|
|
3507
|
+
result = imul(result, 10) + asciiDigitToInt(digit) | 0;
|
|
3508
|
+
}
|
|
3509
|
+
while (inductionVariable < end);
|
|
3510
|
+
return result;
|
|
3511
|
+
}
|
|
3498
3512
|
function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
|
|
3499
3513
|
multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
|
|
3500
3514
|
NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
|
|
@@ -3510,18 +3524,33 @@
|
|
|
3510
3524
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3511
3525
|
}
|
|
3512
3526
|
}
|
|
3513
|
-
protoOf(UnsignedIntConsumer).l14 = function (storage, input) {
|
|
3527
|
+
protoOf(UnsignedIntConsumer).l14 = function (storage, input, start, end) {
|
|
3514
3528
|
var tmp;
|
|
3515
|
-
if (!(this.x14_1 == null) ?
|
|
3529
|
+
if (!(this.x14_1 == null) ? (end - start | 0) > this.x14_1 : false) {
|
|
3516
3530
|
tmp = new TooManyDigits(this.x14_1);
|
|
3517
|
-
} else if (!(this.w14_1 == null) ?
|
|
3531
|
+
} else if (!(this.w14_1 == null) ? (end - start | 0) < this.w14_1 : false) {
|
|
3518
3532
|
tmp = new TooFewDigits(this.w14_1);
|
|
3519
3533
|
} else {
|
|
3520
|
-
var result =
|
|
3534
|
+
var result = parseAsciiIntOrNull(input, start, end);
|
|
3521
3535
|
tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.y14_1, storage, this.z14_1 ? -result | 0 : result);
|
|
3522
3536
|
}
|
|
3523
3537
|
return tmp;
|
|
3524
3538
|
};
|
|
3539
|
+
function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
|
|
3540
|
+
var result = 0;
|
|
3541
|
+
var inductionVariable = start;
|
|
3542
|
+
if (inductionVariable < end)
|
|
3543
|
+
do {
|
|
3544
|
+
var i = inductionVariable;
|
|
3545
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3546
|
+
var digit = charSequenceGet(_this__u8e3s4, i);
|
|
3547
|
+
result = imul(result, 10) + asciiDigitToInt(digit) | 0;
|
|
3548
|
+
if (result < 0)
|
|
3549
|
+
return null;
|
|
3550
|
+
}
|
|
3551
|
+
while (inductionVariable < end);
|
|
3552
|
+
return result;
|
|
3553
|
+
}
|
|
3525
3554
|
function ParseError(position, message) {
|
|
3526
3555
|
this.a15_1 = position;
|
|
3527
3556
|
this.b15_1 = message;
|
|
@@ -4265,7 +4294,7 @@
|
|
|
4265
4294
|
return tmp.d15(startIndex, NumberSpanParserOperation$consume$lambda(this));
|
|
4266
4295
|
}
|
|
4267
4296
|
var digitsInRow = {_v: 0};
|
|
4268
|
-
while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) ?
|
|
4297
|
+
while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) ? isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0)) : false) {
|
|
4269
4298
|
digitsInRow._v = digitsInRow._v + 1 | 0;
|
|
4270
4299
|
digitsInRow._v;
|
|
4271
4300
|
}
|
|
@@ -4282,12 +4311,12 @@
|
|
|
4282
4311
|
inductionVariable = inductionVariable + 1 | 0;
|
|
4283
4312
|
var tmp1_elvis_lhs = this.n15_1.c1(i).a();
|
|
4284
4313
|
var length = tmp1_elvis_lhs == null ? (digitsInRow._v - this.o15_1 | 0) + 1 | 0 : tmp1_elvis_lhs;
|
|
4285
|
-
|
|
4286
|
-
var startIndex_0 = index;
|
|
4287
|
-
var endIndex = index + length | 0;
|
|
4288
|
-
var numberString = toString(charSequenceSubSequence(input, startIndex_0, endIndex));
|
|
4289
|
-
var error = this.n15_1.c1(i).l14(storage, numberString);
|
|
4314
|
+
var error = this.n15_1.c1(i).l14(storage, input, index, index + length | 0);
|
|
4290
4315
|
if (!(error == null)) {
|
|
4316
|
+
// Inline function 'kotlin.text.substring' call
|
|
4317
|
+
var startIndex_0 = index;
|
|
4318
|
+
var endIndex = index + length | 0;
|
|
4319
|
+
var numberString = toString(charSequenceSubSequence(input, startIndex_0, endIndex));
|
|
4291
4320
|
var tmp_1 = Companion_instance_6;
|
|
4292
4321
|
var tmp_2 = index;
|
|
4293
4322
|
return tmp_1.d15(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
|
|
@@ -4328,14 +4357,14 @@
|
|
|
4328
4357
|
}
|
|
4329
4358
|
// Inline function 'kotlin.require' call
|
|
4330
4359
|
// Inline function 'kotlin.contracts.contract' call
|
|
4331
|
-
if (!!
|
|
4360
|
+
if (!!isAsciiDigit(charSequenceGet(this.w15_1, 0))) {
|
|
4332
4361
|
// Inline function 'kotlinx.datetime.internal.format.parser.PlainStringParserOperation.<anonymous>' call
|
|
4333
4362
|
var message_0 = "String '" + this.w15_1 + "' starts with a digit";
|
|
4334
4363
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
4335
4364
|
}
|
|
4336
4365
|
// Inline function 'kotlin.require' call
|
|
4337
4366
|
// Inline function 'kotlin.contracts.contract' call
|
|
4338
|
-
if (!!
|
|
4367
|
+
if (!!isAsciiDigit(charSequenceGet(this.w15_1, this.w15_1.length - 1 | 0))) {
|
|
4339
4368
|
// Inline function 'kotlinx.datetime.internal.format.parser.PlainStringParserOperation.<anonymous>' call
|
|
4340
4369
|
var message_1 = "String '" + this.w15_1 + "' ends with a digit";
|
|
4341
4370
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
@@ -4503,6 +4532,12 @@
|
|
|
4503
4532
|
POWERS_OF_TEN = new Int32Array([1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]);
|
|
4504
4533
|
}
|
|
4505
4534
|
}
|
|
4535
|
+
function isAsciiDigit(_this__u8e3s4) {
|
|
4536
|
+
return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
|
|
4537
|
+
}
|
|
4538
|
+
function asciiDigitToInt(_this__u8e3s4) {
|
|
4539
|
+
return Char__minus_impl_a2frrh(_this__u8e3s4, _Char___init__impl__6a9atx(48));
|
|
4540
|
+
}
|
|
4506
4541
|
function InstantIso8601Serializer() {
|
|
4507
4542
|
InstantIso8601Serializer_instance = this;
|
|
4508
4543
|
this.c16_1 = PrimitiveSerialDescriptor('kotlinx.datetime.Instant', STRING_getInstance());
|