@solibo/home-api 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.js +2112 -563
  2. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
  3. package/kotlin-kotlin-stdlib.js +5406 -2806
  4. package/kotlin-kotlin-stdlib.js.map +1 -1
  5. package/kotlinx-atomicfu.js +22 -22
  6. package/kotlinx-coroutines-core.js +2057 -2057
  7. package/kotlinx-coroutines-core.js.map +1 -1
  8. package/kotlinx-io-kotlinx-io-bytestring.js +69 -69
  9. package/kotlinx-io-kotlinx-io-core.js +534 -534
  10. package/kotlinx-serialization-kotlinx-serialization-core.js +4592 -609
  11. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  12. package/kotlinx-serialization-kotlinx-serialization-json.js +5065 -5
  13. package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
  14. package/ktor-ktor-client-content-negotiation.js +304 -253
  15. package/ktor-ktor-client-content-negotiation.js.map +1 -1
  16. package/ktor-ktor-client-core.js +3179 -3179
  17. package/ktor-ktor-client-core.js.map +1 -1
  18. package/ktor-ktor-events.js +13 -13
  19. package/ktor-ktor-http-cio.js +612 -612
  20. package/ktor-ktor-http-cio.js.map +1 -1
  21. package/ktor-ktor-http.js +1020 -953
  22. package/ktor-ktor-http.js.map +1 -1
  23. package/ktor-ktor-io.js +1159 -1153
  24. package/ktor-ktor-io.js.map +1 -1
  25. package/ktor-ktor-serialization-kotlinx-json.js +57 -5
  26. package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
  27. package/ktor-ktor-serialization-kotlinx.js +855 -5
  28. package/ktor-ktor-serialization-kotlinx.js.map +1 -1
  29. package/ktor-ktor-serialization.js +159 -126
  30. package/ktor-ktor-serialization.js.map +1 -1
  31. package/ktor-ktor-utils.js +824 -672
  32. package/ktor-ktor-utils.js.map +1 -1
  33. package/ktor-ktor-websockets.js +826 -826
  34. package/ktor-ktor-websockets.js.map +1 -1
  35. package/package.json +1 -1
  36. package/solibo-sdk-sdk-home-api.d.ts +7748 -8553
  37. package/solibo-sdk-sdk-home-api.js +173899 -109918
  38. package/solibo-sdk-sdk-home-api.js.map +1 -1
@@ -16,76 +16,127 @@
16
16
  'use strict';
17
17
  //region block: imports
18
18
  var imul = Math.imul;
19
- var enumEntries = kotlin_kotlin.$_$.m6;
20
- var Unit_instance = kotlin_kotlin.$_$.e3;
21
- var Enum = kotlin_kotlin.$_$.fb;
22
- var protoOf = kotlin_kotlin.$_$.m8;
23
- var initMetadataForClass = kotlin_kotlin.$_$.w7;
24
- var VOID = kotlin_kotlin.$_$.a;
25
- var toString = kotlin_kotlin.$_$.p8;
26
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.e1;
27
- var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.v;
28
- var initMetadataForInterface = kotlin_kotlin.$_$.a8;
29
- var toString_0 = kotlin_kotlin.$_$.b2;
30
- var KProperty0 = kotlin_kotlin.$_$.d9;
31
- var getPropertyCallableRef = kotlin_kotlin.$_$.t7;
32
- var hashCode = kotlin_kotlin.$_$.v7;
33
- var initMetadataForCompanion = kotlin_kotlin.$_$.x7;
34
- var THROW_CCE = kotlin_kotlin.$_$.nb;
35
- var KMutableProperty1 = kotlin_kotlin.$_$.c9;
36
- var initMetadataForObject = kotlin_kotlin.$_$.c8;
37
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.u1;
38
- var lazy = kotlin_kotlin.$_$.gc;
39
- var getBooleanHashCode = kotlin_kotlin.$_$.r7;
40
- var fromInt = kotlin_kotlin.$_$.s6;
41
- var modulo = kotlin_kotlin.$_$.u6;
42
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
43
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.hc;
44
- var isInterface = kotlin_kotlin.$_$.g8;
45
- var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.h1;
46
- var toString_1 = kotlin_kotlin.$_$.jc;
47
- var equals = kotlin_kotlin.$_$.o7;
48
- var getStringHashCode = kotlin_kotlin.$_$.u7;
49
- var charSequenceLength = kotlin_kotlin.$_$.k7;
50
- var charCodeAt = kotlin_kotlin.$_$.i7;
51
- var substring = kotlin_kotlin.$_$.ja;
52
- var listOf = kotlin_kotlin.$_$.p4;
53
- var substring_0 = kotlin_kotlin.$_$.ia;
54
- var get_lastIndex = kotlin_kotlin.$_$.x9;
55
- var emptyList = kotlin_kotlin.$_$.c4;
56
- var joinToString = kotlin_kotlin.$_$.l4;
57
- var collectionSizeOrDefault = kotlin_kotlin.$_$.t3;
58
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
59
- var single = kotlin_kotlin.$_$.c5;
60
- var abs = kotlin_kotlin.$_$.q8;
61
- var numberRangeToNumber = kotlin_kotlin.$_$.j8;
62
- var plus = kotlin_kotlin.$_$.w4;
63
- var toMutableList = kotlin_kotlin.$_$.m5;
64
- var addAll = kotlin_kotlin.$_$.p3;
65
- var Collection = kotlin_kotlin.$_$.g3;
66
- var firstOrNull = kotlin_kotlin.$_$.g4;
67
- var drop = kotlin_kotlin.$_$.b4;
68
- var listOf_0 = kotlin_kotlin.$_$.q4;
69
- var repeat = kotlin_kotlin.$_$.z9;
70
- var checkCountOverflow = kotlin_kotlin.$_$.s3;
71
- var mutableListOf = kotlin_kotlin.$_$.t4;
72
- var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a;
73
- var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j;
74
- var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
75
- var numberToLong = kotlin_kotlin.$_$.x6;
76
- var multiply = kotlin_kotlin.$_$.v6;
77
- var add = kotlin_kotlin.$_$.p6;
78
- var divide = kotlin_kotlin.$_$.r6;
79
- var subtract = kotlin_kotlin.$_$.a7;
80
- var get_ONE = kotlin_kotlin.$_$.o6;
81
- var negate = kotlin_kotlin.$_$.w6;
82
- var shiftRight = kotlin_kotlin.$_$.z6;
83
- var convertToInt = kotlin_kotlin.$_$.q6;
84
- var compareTo = kotlin_kotlin.$_$.m7;
85
- var Comparable = kotlin_kotlin.$_$.db;
19
+ var protoOf = kotlin_kotlin.$_$.tb;
20
+ var initMetadataForCompanion = kotlin_kotlin.$_$.xa;
21
+ var toString = kotlin_kotlin.$_$.wb;
22
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
23
+ var Unit_instance = kotlin_kotlin.$_$.y4;
24
+ var fromInt = kotlin_kotlin.$_$.p9;
25
+ var modulo = kotlin_kotlin.$_$.s9;
26
+ var divide = kotlin_kotlin.$_$.o9;
27
+ var convertToInt = kotlin_kotlin.$_$.m9;
28
+ var shiftRight = kotlin_kotlin.$_$.x9;
29
+ var initMetadataForClass = kotlin_kotlin.$_$.wa;
30
+ var VOID = kotlin_kotlin.$_$.b;
31
+ var enumEntries = kotlin_kotlin.$_$.h9;
32
+ var Enum = kotlin_kotlin.$_$.jf;
33
+ var IllegalArgumentException_init_$Init$ = kotlin_kotlin.$_$.k1;
34
+ var objectCreate = kotlin_kotlin.$_$.sb;
35
+ var captureStack = kotlin_kotlin.$_$.ea;
36
+ var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.m1;
37
+ var IllegalArgumentException_init_$Init$_1 = kotlin_kotlin.$_$.o1;
38
+ var IllegalArgumentException = kotlin_kotlin.$_$.mf;
39
+ var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.z1;
40
+ var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.b2;
41
+ var RuntimeException = kotlin_kotlin.$_$.rf;
42
+ var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.c1;
43
+ var initMetadataForInterface = kotlin_kotlin.$_$.ab;
44
+ var toString_0 = kotlin_kotlin.$_$.n2;
45
+ var KProperty0 = kotlin_kotlin.$_$.pc;
46
+ var getPropertyCallableRef = kotlin_kotlin.$_$.ta;
47
+ var hashCode = kotlin_kotlin.$_$.va;
48
+ var THROW_CCE = kotlin_kotlin.$_$.sf;
49
+ var KMutableProperty1 = kotlin_kotlin.$_$.oc;
50
+ var initMetadataForObject = kotlin_kotlin.$_$.cb;
51
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
52
+ var lazy = kotlin_kotlin.$_$.qg;
53
+ var getBooleanHashCode = kotlin_kotlin.$_$.qa;
54
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.j;
55
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rg;
56
+ var isInterface = kotlin_kotlin.$_$.lb;
57
+ var equals = kotlin_kotlin.$_$.na;
58
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
59
+ var toString_1 = kotlin_kotlin.$_$.ug;
60
+ var getStringHashCode = kotlin_kotlin.$_$.ua;
61
+ var charSequenceLength = kotlin_kotlin.$_$.ja;
62
+ var charCodeAt = kotlin_kotlin.$_$.ha;
63
+ var substring = kotlin_kotlin.$_$.ce;
64
+ var listOf = kotlin_kotlin.$_$.e7;
65
+ var substring_0 = kotlin_kotlin.$_$.be;
66
+ var get_lastIndex = kotlin_kotlin.$_$.ld;
67
+ var emptyList = kotlin_kotlin.$_$.k6;
68
+ var joinToString = kotlin_kotlin.$_$.y6;
69
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.r5;
70
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.i;
71
+ var single = kotlin_kotlin.$_$.u7;
72
+ var abs = kotlin_kotlin.$_$.xb;
73
+ var charSequenceSubSequence = kotlin_kotlin.$_$.ka;
74
+ var numberRangeToNumber = kotlin_kotlin.$_$.qb;
75
+ var charSequenceGet = kotlin_kotlin.$_$.ia;
76
+ var mutableListOf = kotlin_kotlin.$_$.i7;
77
+ var removeLastOrNull = kotlin_kotlin.$_$.o7;
78
+ var sortWith = kotlin_kotlin.$_$.v7;
79
+ var FunctionAdapter = kotlin_kotlin.$_$.aa;
80
+ var Comparator = kotlin_kotlin.$_$.gf;
81
+ var compareValues = kotlin_kotlin.$_$.m8;
82
+ var Exception = kotlin_kotlin.$_$.lf;
83
+ var Exception_init_$Init$ = kotlin_kotlin.$_$.h1;
84
+ var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.b1;
85
+ var joinTo = kotlin_kotlin.$_$.z6;
86
+ var plus = kotlin_kotlin.$_$.l7;
87
+ var toMutableList = kotlin_kotlin.$_$.f8;
88
+ var addAll = kotlin_kotlin.$_$.n5;
89
+ var Collection = kotlin_kotlin.$_$.a5;
90
+ var firstOrNull = kotlin_kotlin.$_$.p6;
91
+ var drop = kotlin_kotlin.$_$.j6;
92
+ var listOf_0 = kotlin_kotlin.$_$.f7;
93
+ var repeat = kotlin_kotlin.$_$.pd;
94
+ var checkCountOverflow = kotlin_kotlin.$_$.q5;
95
+ var Char__minus_impl_a2frrh = kotlin_kotlin.$_$.i2;
96
+ var buildClassSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.l1;
97
+ var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.n4;
98
+ var arrayOf = kotlin_kotlin.$_$.gg;
99
+ var createKType = kotlin_kotlin.$_$.jc;
100
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x2;
101
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
102
+ var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
103
+ var lazy_0 = kotlin_kotlin.$_$.pg;
104
+ var KProperty1 = kotlin_kotlin.$_$.qc;
105
+ var MissingFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
106
+ var getKClass = kotlin_kotlin.$_$.lc;
107
+ var SealedClassSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q2;
108
+ var AbstractPolymorphicSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
109
+ var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e;
110
+ var STRING_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h;
111
+ var PrimitiveSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f1;
112
+ var add = kotlin_kotlin.$_$.k9;
113
+ var subtract = kotlin_kotlin.$_$.y9;
114
+ var multiply = kotlin_kotlin.$_$.t9;
115
+ var negate = kotlin_kotlin.$_$.u9;
116
+ var numberToLong = kotlin_kotlin.$_$.v9;
117
+ var get_ONE = kotlin_kotlin.$_$.j9;
118
+ var compareTo = kotlin_kotlin.$_$.la;
119
+ var ClosedRange = kotlin_kotlin.$_$.ac;
120
+ var contains = kotlin_kotlin.$_$.ec;
121
+ var Comparable = kotlin_kotlin.$_$.ff;
122
+ var ArithmeticException = kotlin_kotlin.$_$.bf;
123
+ var compareValuesBy = kotlin_kotlin.$_$.l8;
124
+ var ArithmeticException_init_$Create$ = kotlin_kotlin.$_$.d1;
86
125
  //endregion
87
126
  //region block: pre-declaration
127
+ initMetadataForCompanion(Companion);
128
+ initMetadataForCompanion(Companion_0);
129
+ initMetadataForCompanion(Companion_1);
130
+ initMetadataForCompanion(Companion_2);
131
+ initMetadataForClass(DateTimeUnit, 'DateTimeUnit', VOID, VOID, VOID, VOID, VOID, {0: DateTimeUnitSerializer_getInstance});
132
+ initMetadataForClass(TimeBased, 'TimeBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: TimeBasedDateTimeUnitSerializer_getInstance});
133
+ initMetadataForClass(DateBased, 'DateBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: DateBasedDateTimeUnitSerializer_getInstance});
134
+ initMetadataForClass(DayBased, 'DayBased', VOID, DateBased, VOID, VOID, VOID, {0: DayBasedDateTimeUnitSerializer_getInstance});
135
+ initMetadataForClass(MonthBased, 'MonthBased', VOID, DateBased, VOID, VOID, VOID, {0: MonthBasedDateTimeUnitSerializer_getInstance});
136
+ initMetadataForCompanion(Companion_3);
88
137
  initMetadataForClass(DayOfWeek, 'DayOfWeek', VOID, Enum);
138
+ initMetadataForClass(DateTimeFormatException, 'DateTimeFormatException', DateTimeFormatException_init_$Create$, IllegalArgumentException);
139
+ initMetadataForClass(DateTimeArithmeticException, 'DateTimeArithmeticException', DateTimeArithmeticException_init_$Create$, RuntimeException);
89
140
  initMetadataForClass(Month, 'Month', VOID, Enum);
90
141
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
91
142
  initMetadataForClass(Padding, 'Padding', VOID, Enum);
@@ -93,10 +144,10 @@
93
144
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
94
145
  var tmp;
95
146
  if ($super === VOID) {
96
- this.v45(padding);
147
+ this.g53(padding);
97
148
  tmp = Unit_instance;
98
149
  } else {
99
- tmp = $super.v45.call(this, padding);
150
+ tmp = $super.g53.call(this, padding);
100
151
  }
101
152
  return tmp;
102
153
  }
@@ -104,10 +155,10 @@
104
155
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
105
156
  var tmp;
106
157
  if ($super === VOID) {
107
- this.x45(padding);
158
+ this.i53(padding);
108
159
  tmp = Unit_instance;
109
160
  } else {
110
- tmp = $super.x45.call(this, padding);
161
+ tmp = $super.i53.call(this, padding);
111
162
  }
112
163
  return tmp;
113
164
  }
@@ -116,35 +167,35 @@
116
167
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
117
168
  var tmp;
118
169
  if ($super === VOID) {
119
- this.a46(padding);
170
+ this.l53(padding);
120
171
  tmp = Unit_instance;
121
172
  } else {
122
- tmp = $super.a46.call(this, padding);
173
+ tmp = $super.l53.call(this, padding);
123
174
  }
124
175
  return tmp;
125
176
  }
126
177
  initMetadataForInterface(WithDate, 'WithDate', VOID, VOID, [WithYearMonth]);
127
178
  function chars(value) {
128
- return this.c46().e46(new ConstantFormatStructure(value));
179
+ return this.n53().p53(new ConstantFormatStructure(value));
129
180
  }
130
181
  function build() {
131
- return new CachedFormatStructure(this.c46().i23().f46_1);
182
+ return new CachedFormatStructure(this.n53().a2k().q53_1);
132
183
  }
133
184
  initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
134
185
  initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
135
- initMetadataForCompanion(Companion);
186
+ initMetadataForCompanion(Companion_4);
136
187
  function year(padding) {
137
- return this.e47(new BasicFormatStructure(new YearDirective(padding)));
188
+ return this.r54(new BasicFormatStructure(new YearDirective(padding)));
138
189
  }
139
190
  function monthNumber(padding) {
140
- return this.e47(new BasicFormatStructure(new MonthDirective(padding)));
191
+ return this.r54(new BasicFormatStructure(new MonthDirective(padding)));
141
192
  }
142
193
  initMetadataForInterface(AbstractWithYearMonthBuilder, 'AbstractWithYearMonthBuilder', VOID, VOID, [WithYearMonth]);
143
194
  function addFormatStructureForYearMonth(structure) {
144
- this.d47(structure);
195
+ this.q54(structure);
145
196
  }
146
197
  function day(padding) {
147
- return this.d47(new BasicFormatStructure(new DayDirective(padding)));
198
+ return this.q54(new BasicFormatStructure(new DayDirective(padding)));
148
199
  }
149
200
  initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [AbstractWithYearMonthBuilder, WithDate]);
150
201
  initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
@@ -153,6 +204,9 @@
153
204
  initMetadataForClass(DayDirective, 'DayDirective', VOID, UnsignedIntFieldFormatDirective);
154
205
  initMetadataForObject(DateFields, 'DateFields');
155
206
  initMetadataForClass(IncompleteYearMonth, 'IncompleteYearMonth', IncompleteYearMonth);
207
+ initMetadataForCompanion(Companion_5);
208
+ initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithYearMonthBuilder]);
209
+ initMetadataForClass(YearMonthFormat, 'YearMonthFormat', VOID, AbstractDateTimeFormat);
156
210
  initMetadataForClass(SignedIntFieldFormatDirective, 'SignedIntFieldFormatDirective');
157
211
  initMetadataForClass(YearDirective, 'YearDirective', VOID, SignedIntFieldFormatDirective);
158
212
  initMetadataForClass(MonthDirective, 'MonthDirective', VOID, UnsignedIntFieldFormatDirective);
@@ -161,10 +215,10 @@
161
215
  initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
162
216
  initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
163
217
  function getterNotNull(container) {
164
- var tmp0_elvis_lhs = this.d49(container);
218
+ var tmp0_elvis_lhs = this.b57(container);
165
219
  var tmp;
166
220
  if (tmp0_elvis_lhs == null) {
167
- throw IllegalStateException_init_$Create$('Field ' + this.k() + ' is not set');
221
+ throw IllegalStateException_init_$Create$('Field ' + this.m() + ' is not set');
168
222
  } else {
169
223
  tmp = tmp0_elvis_lhs;
170
224
  }
@@ -182,10 +236,10 @@
182
236
  minusNotRequired = minusNotRequired === VOID ? false : minusNotRequired;
183
237
  var tmp;
184
238
  if ($super === VOID) {
185
- this.g49(obj, builder, minusNotRequired);
239
+ this.e57(obj, builder, minusNotRequired);
186
240
  tmp = Unit_instance;
187
241
  } else {
188
- tmp = $super.g49.call(this, obj, builder, minusNotRequired);
242
+ tmp = $super.e57.call(this, obj, builder, minusNotRequired);
189
243
  }
190
244
  return tmp;
191
245
  }
@@ -197,18 +251,238 @@
197
251
  initMetadataForClass(ConstantStringFormatterStructure, 'ConstantStringFormatterStructure', VOID, VOID, [FormatterStructure]);
198
252
  initMetadataForClass(NumberConsumer, 'NumberConsumer');
199
253
  initMetadataForClass(ConstantNumberConsumer, 'ConstantNumberConsumer', VOID, NumberConsumer);
254
+ initMetadataForObject(ExpectedInt, 'ExpectedInt');
255
+ initMetadataForClass(TooManyDigits, 'TooManyDigits');
256
+ initMetadataForClass(TooFewDigits, 'TooFewDigits');
257
+ initMetadataForClass(WrongConstant, 'WrongConstant');
258
+ initMetadataForClass(Conflicting, 'Conflicting');
200
259
  initMetadataForClass(UnsignedIntConsumer, 'UnsignedIntConsumer', VOID, NumberConsumer);
260
+ initMetadataForClass(ParseError, 'ParseError');
261
+ initMetadataForCompanion(Companion_6);
262
+ initMetadataForClass(ParserState, 'ParserState');
263
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
264
+ initMetadataForClass(Parser, 'Parser');
201
265
  initMetadataForClass(ParserStructure, 'ParserStructure');
266
+ initMetadataForClass(ParseException, 'ParseException', VOID, Exception);
202
267
  initMetadataForClass(NumberSpanParserOperation, 'NumberSpanParserOperation');
203
268
  initMetadataForClass(PlainStringParserOperation, 'PlainStringParserOperation');
204
269
  initMetadataForClass(UnconditionalModification, 'UnconditionalModification');
270
+ initMetadataForObject(TimeBasedDateTimeUnitSerializer, 'TimeBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
271
+ initMetadataForObject(DateBasedDateTimeUnitSerializer, 'DateBasedDateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
272
+ initMetadataForObject(DayBasedDateTimeUnitSerializer, 'DayBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
273
+ initMetadataForObject(MonthBasedDateTimeUnitSerializer, 'MonthBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
274
+ initMetadataForObject(DateTimeUnitSerializer, 'DateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
205
275
  initMetadataForObject(LocalDateSerializer, 'LocalDateSerializer', VOID, VOID, [KSerializer]);
206
- initMetadataForCompanion(Companion_0);
276
+ initMetadataForObject(YearMonthSerializer, 'YearMonthSerializer', VOID, VOID, [KSerializer]);
277
+ initMetadataForCompanion(Companion_7);
207
278
  initMetadataForObject(Formats, 'Formats');
208
279
  initMetadataForClass(LocalDate, 'LocalDate', VOID, VOID, [Comparable], VOID, VOID, {0: LocalDateSerializer_getInstance});
280
+ initMetadataForCompanion(Companion_8);
281
+ initMetadataForObject(Formats_0, 'Formats');
282
+ initMetadataForClass(YearMonth, 'YearMonth', VOID, VOID, [Comparable], VOID, VOID, {0: YearMonthSerializer_getInstance});
209
283
  //endregion
284
+ function Companion() {
285
+ }
286
+ var Companion_instance;
287
+ function Companion_getInstance() {
288
+ return Companion_instance;
289
+ }
290
+ function Companion_0() {
291
+ }
292
+ var Companion_instance_0;
293
+ function Companion_getInstance_0() {
294
+ return Companion_instance_0;
295
+ }
296
+ function Companion_1() {
297
+ }
298
+ var Companion_instance_1;
299
+ function Companion_getInstance_1() {
300
+ return Companion_instance_1;
301
+ }
302
+ function Companion_2() {
303
+ }
304
+ var Companion_instance_2;
305
+ function Companion_getInstance_2() {
306
+ return Companion_instance_2;
307
+ }
308
+ function TimeBased(nanoseconds) {
309
+ DateTimeUnit.call(this);
310
+ this.z51_1 = nanoseconds;
311
+ // Inline function 'kotlin.require' call
312
+ if (!(this.z51_1 > 0n)) {
313
+ var message = 'Unit duration must be positive, but was ' + this.z51_1.toString() + ' ns.';
314
+ throw IllegalArgumentException_init_$Create$(toString(message));
315
+ }
316
+ if (modulo(this.z51_1, 3600000000000n) === 0n) {
317
+ this.a52_1 = 'HOUR';
318
+ this.b52_1 = divide(this.z51_1, 3600000000000n);
319
+ } else {
320
+ if (modulo(this.z51_1, 60000000000n) === 0n) {
321
+ this.a52_1 = 'MINUTE';
322
+ this.b52_1 = divide(this.z51_1, 60000000000n);
323
+ } else {
324
+ var tmp0 = this.z51_1;
325
+ // Inline function 'kotlin.Long.rem' call
326
+ var other = 1000000000;
327
+ if (modulo(tmp0, fromInt(other)) === 0n) {
328
+ this.a52_1 = 'SECOND';
329
+ var tmp = this;
330
+ var tmp0_0 = this.z51_1;
331
+ // Inline function 'kotlin.Long.div' call
332
+ var other_0 = 1000000000;
333
+ tmp.b52_1 = divide(tmp0_0, fromInt(other_0));
334
+ } else {
335
+ // Inline function 'kotlin.Long.rem' call
336
+ var this_0 = this.z51_1;
337
+ if (modulo(this_0, fromInt(1000000)) === 0n) {
338
+ this.a52_1 = 'MILLISECOND';
339
+ var tmp_0 = this;
340
+ // Inline function 'kotlin.Long.div' call
341
+ var this_1 = this.z51_1;
342
+ tmp_0.b52_1 = divide(this_1, fromInt(1000000));
343
+ } else {
344
+ // Inline function 'kotlin.Long.rem' call
345
+ var this_2 = this.z51_1;
346
+ if (modulo(this_2, fromInt(1000)) === 0n) {
347
+ this.a52_1 = 'MICROSECOND';
348
+ var tmp_1 = this;
349
+ // Inline function 'kotlin.Long.div' call
350
+ var this_3 = this.z51_1;
351
+ tmp_1.b52_1 = divide(this_3, fromInt(1000));
352
+ } else {
353
+ this.a52_1 = 'NANOSECOND';
354
+ this.b52_1 = this.z51_1;
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ }
361
+ protoOf(TimeBased).c52 = function (scalar) {
362
+ return new TimeBased(safeMultiply(this.z51_1, fromInt(scalar)));
363
+ };
364
+ protoOf(TimeBased).equals = function (other) {
365
+ var tmp;
366
+ if (this === other) {
367
+ tmp = true;
368
+ } else {
369
+ var tmp_0;
370
+ if (other instanceof TimeBased) {
371
+ tmp_0 = this.z51_1 === other.z51_1;
372
+ } else {
373
+ tmp_0 = false;
374
+ }
375
+ tmp = tmp_0;
376
+ }
377
+ return tmp;
378
+ };
379
+ protoOf(TimeBased).hashCode = function () {
380
+ return convertToInt(this.z51_1) ^ convertToInt(shiftRight(this.z51_1, 32));
381
+ };
382
+ protoOf(TimeBased).toString = function () {
383
+ return this.d52(this.b52_1, this.a52_1);
384
+ };
385
+ function DateBased() {
386
+ DateTimeUnit.call(this);
387
+ }
388
+ function DayBased(days) {
389
+ DateBased.call(this);
390
+ this.f52_1 = days;
391
+ // Inline function 'kotlin.require' call
392
+ if (!(this.f52_1 > 0)) {
393
+ var message = 'Unit duration must be positive, but was ' + this.f52_1 + ' days.';
394
+ throw IllegalArgumentException_init_$Create$(toString(message));
395
+ }
396
+ }
397
+ protoOf(DayBased).c52 = function (scalar) {
398
+ return new DayBased(safeMultiply_0(this.f52_1, scalar));
399
+ };
400
+ protoOf(DayBased).equals = function (other) {
401
+ var tmp;
402
+ if (this === other) {
403
+ tmp = true;
404
+ } else {
405
+ var tmp_0;
406
+ if (other instanceof DayBased) {
407
+ tmp_0 = this.f52_1 === other.f52_1;
408
+ } else {
409
+ tmp_0 = false;
410
+ }
411
+ tmp = tmp_0;
412
+ }
413
+ return tmp;
414
+ };
415
+ protoOf(DayBased).hashCode = function () {
416
+ return this.f52_1 ^ 65536;
417
+ };
418
+ protoOf(DayBased).toString = function () {
419
+ return (this.f52_1 % 7 | 0) === 0 ? this.e52(this.f52_1 / 7 | 0, 'WEEK') : this.e52(this.f52_1, 'DAY');
420
+ };
421
+ function MonthBased(months) {
422
+ DateBased.call(this);
423
+ this.g52_1 = months;
424
+ // Inline function 'kotlin.require' call
425
+ if (!(this.g52_1 > 0)) {
426
+ var message = 'Unit duration must be positive, but was ' + this.g52_1 + ' months.';
427
+ throw IllegalArgumentException_init_$Create$(toString(message));
428
+ }
429
+ }
430
+ protoOf(MonthBased).c52 = function (scalar) {
431
+ return new MonthBased(safeMultiply_0(this.g52_1, scalar));
432
+ };
433
+ protoOf(MonthBased).equals = function (other) {
434
+ var tmp;
435
+ if (this === other) {
436
+ tmp = true;
437
+ } else {
438
+ var tmp_0;
439
+ if (other instanceof MonthBased) {
440
+ tmp_0 = this.g52_1 === other.g52_1;
441
+ } else {
442
+ tmp_0 = false;
443
+ }
444
+ tmp = tmp_0;
445
+ }
446
+ return tmp;
447
+ };
448
+ protoOf(MonthBased).hashCode = function () {
449
+ return this.g52_1 ^ 131072;
450
+ };
451
+ protoOf(MonthBased).toString = function () {
452
+ return (this.g52_1 % 1200 | 0) === 0 ? this.e52(this.g52_1 / 1200 | 0, 'CENTURY') : (this.g52_1 % 12 | 0) === 0 ? this.e52(this.g52_1 / 12 | 0, 'YEAR') : (this.g52_1 % 3 | 0) === 0 ? this.e52(this.g52_1 / 3 | 0, 'QUARTER') : this.e52(this.g52_1, 'MONTH');
453
+ };
454
+ function Companion_3() {
455
+ Companion_instance_3 = this;
456
+ this.h52_1 = new TimeBased(1n);
457
+ this.i52_1 = this.h52_1.c52(1000);
458
+ this.j52_1 = this.i52_1.c52(1000);
459
+ this.k52_1 = this.j52_1.c52(1000);
460
+ this.l52_1 = this.k52_1.c52(60);
461
+ this.m52_1 = this.l52_1.c52(60);
462
+ this.n52_1 = new DayBased(1);
463
+ this.o52_1 = this.n52_1.c52(7);
464
+ this.p52_1 = new MonthBased(1);
465
+ this.q52_1 = this.p52_1.c52(3);
466
+ this.r52_1 = this.p52_1.c52(12);
467
+ this.s52_1 = this.r52_1.c52(100);
468
+ }
469
+ var Companion_instance_3;
470
+ function Companion_getInstance_3() {
471
+ if (Companion_instance_3 == null)
472
+ new Companion_3();
473
+ return Companion_instance_3;
474
+ }
475
+ function DateTimeUnit() {
476
+ Companion_getInstance_3();
477
+ }
478
+ protoOf(DateTimeUnit).e52 = function (value, unit) {
479
+ return value === 1 ? unit : '' + value + '-' + unit;
480
+ };
481
+ protoOf(DateTimeUnit).d52 = function (value, unit) {
482
+ return value === 1n ? unit : value.toString() + '-' + unit;
483
+ };
210
484
  function get_isoDayNumber(_this__u8e3s4) {
211
- return _this__u8e3s4.y_1 + 1 | 0;
485
+ return _this__u8e3s4.a1_1 + 1 | 0;
212
486
  }
213
487
  var DayOfWeek_MONDAY_instance;
214
488
  var DayOfWeek_TUESDAY_instance;
@@ -248,7 +522,7 @@
248
522
  var message = 'Expected ISO day-of-week number in 1..7, got ' + isoDayNumber;
249
523
  throw IllegalArgumentException_init_$Create$(toString(message));
250
524
  }
251
- return get_entries().c1(isoDayNumber - 1 | 0);
525
+ return get_entries().h1(isoDayNumber - 1 | 0);
252
526
  }
253
527
  function DayOfWeek_MONDAY_getInstance() {
254
528
  DayOfWeek_initEntries();
@@ -278,11 +552,73 @@
278
552
  DayOfWeek_initEntries();
279
553
  return DayOfWeek_SUNDAY_instance;
280
554
  }
555
+ function DateTimeFormatException_init_$Init$($this) {
556
+ IllegalArgumentException_init_$Init$($this);
557
+ DateTimeFormatException.call($this);
558
+ return $this;
559
+ }
560
+ function DateTimeFormatException_init_$Create$() {
561
+ var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
562
+ captureStack(tmp, DateTimeFormatException_init_$Create$);
563
+ return tmp;
564
+ }
565
+ function DateTimeFormatException_init_$Init$_0(message, $this) {
566
+ IllegalArgumentException_init_$Init$_0(message, $this);
567
+ DateTimeFormatException.call($this);
568
+ return $this;
569
+ }
570
+ function DateTimeFormatException_init_$Create$_0(message) {
571
+ var tmp = DateTimeFormatException_init_$Init$_0(message, objectCreate(protoOf(DateTimeFormatException)));
572
+ captureStack(tmp, DateTimeFormatException_init_$Create$_0);
573
+ return tmp;
574
+ }
575
+ function DateTimeFormatException_init_$Init$_1(message, cause, $this) {
576
+ IllegalArgumentException_init_$Init$_1(message, cause, $this);
577
+ DateTimeFormatException.call($this);
578
+ return $this;
579
+ }
580
+ function DateTimeFormatException_init_$Create$_1(message, cause) {
581
+ var tmp = DateTimeFormatException_init_$Init$_1(message, cause, objectCreate(protoOf(DateTimeFormatException)));
582
+ captureStack(tmp, DateTimeFormatException_init_$Create$_1);
583
+ return tmp;
584
+ }
585
+ function DateTimeFormatException() {
586
+ captureStack(this, DateTimeFormatException);
587
+ }
588
+ function DateTimeArithmeticException_init_$Init$($this) {
589
+ RuntimeException_init_$Init$($this);
590
+ DateTimeArithmeticException.call($this);
591
+ return $this;
592
+ }
593
+ function DateTimeArithmeticException_init_$Create$() {
594
+ var tmp = DateTimeArithmeticException_init_$Init$(objectCreate(protoOf(DateTimeArithmeticException)));
595
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$);
596
+ return tmp;
597
+ }
598
+ function DateTimeArithmeticException_init_$Init$_0(message, cause, $this) {
599
+ RuntimeException_init_$Init$_0(message, cause, $this);
600
+ DateTimeArithmeticException.call($this);
601
+ return $this;
602
+ }
603
+ function DateTimeArithmeticException_init_$Create$_0(message, cause) {
604
+ var tmp = DateTimeArithmeticException_init_$Init$_0(message, cause, objectCreate(protoOf(DateTimeArithmeticException)));
605
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
606
+ return tmp;
607
+ }
608
+ function DateTimeArithmeticException() {
609
+ captureStack(this, DateTimeArithmeticException);
610
+ }
611
+ function plus_0(_this__u8e3s4, value, unit) {
612
+ return plus_1(_this__u8e3s4, fromInt(value), unit);
613
+ }
614
+ function getIsoDateFormat() {
615
+ return Formats_getInstance().u52();
616
+ }
281
617
  function format(_this__u8e3s4, format) {
282
- return format.n45(_this__u8e3s4);
618
+ return format.v52(_this__u8e3s4);
283
619
  }
284
620
  function get_number(_this__u8e3s4) {
285
- return _this__u8e3s4.y_1 + 1 | 0;
621
+ return _this__u8e3s4.a1_1 + 1 | 0;
286
622
  }
287
623
  var Month_JANUARY_instance;
288
624
  var Month_FEBRUARY_instance;
@@ -333,7 +669,7 @@
333
669
  var message = 'Failed requirement.';
334
670
  throw IllegalArgumentException_init_$Create$(toString(message));
335
671
  }
336
- return get_entries_0().c1(number - 1 | 0);
672
+ return get_entries_0().h1(number - 1 | 0);
337
673
  }
338
674
  function Month_JANUARY_getInstance() {
339
675
  Month_initEntries();
@@ -385,12 +721,38 @@
385
721
  }
386
722
  function AbstractDateTimeFormat() {
387
723
  }
388
- protoOf(AbstractDateTimeFormat).n45 = function (value) {
724
+ protoOf(AbstractDateTimeFormat).v52 = function (value) {
389
725
  // Inline function 'kotlin.also' call
390
726
  var this_0 = StringBuilder_init_$Create$();
391
- this.o45().t45().u45(this.p45(value), this_0);
727
+ this.w52().d53().e53(this.x52(value), this_0);
392
728
  return this_0.toString();
393
729
  };
730
+ protoOf(AbstractDateTimeFormat).sj = function (input) {
731
+ var tmp;
732
+ try {
733
+ tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.w52().f53()), input, this.z52());
734
+ } catch ($p) {
735
+ var tmp_0;
736
+ if ($p instanceof ParseException) {
737
+ var e = $p;
738
+ throw DateTimeFormatException_init_$Create$_1("Failed to parse value from '" + toString(input) + "'", e);
739
+ } else {
740
+ throw $p;
741
+ }
742
+ }
743
+ var matched = tmp;
744
+ try {
745
+ return this.y52(matched);
746
+ } catch ($p) {
747
+ if ($p instanceof IllegalArgumentException) {
748
+ var e_0 = $p;
749
+ var message = e_0.message;
750
+ throw DateTimeFormatException_init_$Create$_1(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0);
751
+ } else {
752
+ throw $p;
753
+ }
754
+ }
755
+ };
394
756
  var Padding_NONE_instance;
395
757
  var Padding_ZERO_instance;
396
758
  var Padding_SPACE_instance;
@@ -419,7 +781,7 @@
419
781
  function WithDate() {
420
782
  }
421
783
  function char(_this__u8e3s4, value) {
422
- return _this__u8e3s4.z45(toString_0(value));
784
+ return _this__u8e3s4.k53(toString_0(value));
423
785
  }
424
786
  function AbstractDateTimeFormatBuilder() {
425
787
  }
@@ -429,7 +791,7 @@
429
791
  var tmp = KProperty0;
430
792
  // Inline function 'kotlin.getValue' call
431
793
  getPropertyCallableRef('ISO_DATE', 0, tmp, _get_ISO_DATE_$ref_powsum(), null);
432
- return tmp0.k1();
794
+ return tmp0.m1();
433
795
  }
434
796
  var ISO_DATE$delegate;
435
797
  function get_ISO_DATE_BASIC() {
@@ -438,44 +800,83 @@
438
800
  var tmp = KProperty0;
439
801
  // Inline function 'kotlin.getValue' call
440
802
  getPropertyCallableRef('ISO_DATE_BASIC', 0, tmp, _get_ISO_DATE_BASIC_$ref_3fs8eb(), null);
441
- return tmp0.k1();
803
+ return tmp0.m1();
442
804
  }
443
805
  var ISO_DATE_BASIC$delegate;
806
+ function get_emptyIncompleteLocalDate() {
807
+ _init_properties_LocalDateFormat_kt__k1uk9u();
808
+ return emptyIncompleteLocalDate;
809
+ }
444
810
  var emptyIncompleteLocalDate;
445
811
  function IncompleteLocalDate(yearMonth, day, dayOfWeek, dayOfYear) {
446
812
  yearMonth = yearMonth === VOID ? new IncompleteYearMonth() : yearMonth;
447
813
  day = day === VOID ? null : day;
448
814
  dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek;
449
815
  dayOfYear = dayOfYear === VOID ? null : dayOfYear;
450
- this.g46_1 = yearMonth;
451
- this.h46_1 = day;
452
- this.i46_1 = dayOfWeek;
453
- this.j46_1 = dayOfYear;
816
+ this.r53_1 = yearMonth;
817
+ this.s53_1 = day;
818
+ this.t53_1 = dayOfWeek;
819
+ this.u53_1 = dayOfYear;
454
820
  }
455
- protoOf(IncompleteLocalDate).k46 = function (_set____db54di) {
456
- this.h46_1 = _set____db54di;
821
+ protoOf(IncompleteLocalDate).v53 = function (_set____db54di) {
822
+ this.s53_1 = _set____db54di;
457
823
  };
458
- protoOf(IncompleteLocalDate).l46 = function () {
459
- return this.h46_1;
824
+ protoOf(IncompleteLocalDate).w53 = function () {
825
+ return this.s53_1;
460
826
  };
461
- protoOf(IncompleteLocalDate).m46 = function (_set____db54di) {
462
- this.i46_1 = _set____db54di;
827
+ protoOf(IncompleteLocalDate).x53 = function (_set____db54di) {
828
+ this.t53_1 = _set____db54di;
463
829
  };
464
- protoOf(IncompleteLocalDate).n46 = function () {
465
- return this.i46_1;
830
+ protoOf(IncompleteLocalDate).y53 = function () {
831
+ return this.t53_1;
466
832
  };
467
- protoOf(IncompleteLocalDate).o46 = function (_set____db54di) {
468
- this.j46_1 = _set____db54di;
833
+ protoOf(IncompleteLocalDate).z53 = function (_set____db54di) {
834
+ this.u53_1 = _set____db54di;
469
835
  };
470
- protoOf(IncompleteLocalDate).p46 = function () {
471
- return this.j46_1;
836
+ protoOf(IncompleteLocalDate).a54 = function () {
837
+ return this.u53_1;
472
838
  };
473
- protoOf(IncompleteLocalDate).q46 = function (date) {
474
- this.u46(date.r46_1);
475
- this.w46(get_number(date.v46()));
476
- this.h46_1 = date.s46_1;
477
- this.i46_1 = get_isoDayNumber(date.n46());
478
- this.j46_1 = date.p46();
839
+ protoOf(IncompleteLocalDate).b54 = function () {
840
+ var year = requireParsedField(this.c54(), 'year');
841
+ var dayOfYear = this.u53_1;
842
+ var tmp;
843
+ if (dayOfYear == null) {
844
+ tmp = new LocalDate(year, requireParsedField(this.h54(), 'monthNumber'), requireParsedField(this.s53_1, 'day'));
845
+ } else {
846
+ // Inline function 'kotlin.also' call
847
+ var this_0 = plus_0(new LocalDate(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().n52_1);
848
+ if (!(this_0.d54_1 === year)) {
849
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is not a valid day of year for the year ' + year));
850
+ }
851
+ if (!(this.h54() == null) && !(get_number(this_0.g54()) === this.h54())) {
852
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.g54().toString() + ', ') + ('but ' + this.h54() + ' was specified as the month number'));
853
+ }
854
+ if (!(this.s53_1 == null) && !(this_0.e54_1 === this.s53_1)) {
855
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is the day ' + this_0.e54_1 + ' of ' + this_0.g54().toString() + ', ') + ('but ' + this.s53_1 + ' was specified as the day of month'));
856
+ }
857
+ tmp = this_0;
858
+ }
859
+ var date = tmp;
860
+ var tmp0_safe_receiver = this.t53_1;
861
+ if (tmp0_safe_receiver == null)
862
+ null;
863
+ else {
864
+ // Inline function 'kotlin.let' call
865
+ if (!(tmp0_safe_receiver === get_isoDayNumber(date.y53()))) {
866
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of week is ' + DayOfWeek_0(tmp0_safe_receiver).toString() + ' but the date is ' + date.toString() + ', which is a ' + date.y53().toString()));
867
+ }
868
+ }
869
+ return date;
870
+ };
871
+ protoOf(IncompleteLocalDate).i54 = function (date) {
872
+ this.j54(date.d54_1);
873
+ this.k54(get_number(date.g54()));
874
+ this.s53_1 = date.e54_1;
875
+ this.t53_1 = get_isoDayNumber(date.y53());
876
+ this.u53_1 = date.a54();
877
+ };
878
+ protoOf(IncompleteLocalDate).l54 = function () {
879
+ return new IncompleteLocalDate(this.r53_1.l54(), this.s53_1, this.t53_1, this.u53_1);
479
880
  };
480
881
  protoOf(IncompleteLocalDate).equals = function (other) {
481
882
  var tmp;
@@ -483,168 +884,177 @@
483
884
  var tmp_1;
484
885
  var tmp_2;
485
886
  if (other instanceof IncompleteLocalDate) {
486
- tmp_2 = this.g46_1.equals(other.g46_1);
887
+ tmp_2 = this.r53_1.equals(other.r53_1);
487
888
  } else {
488
889
  tmp_2 = false;
489
890
  }
490
891
  if (tmp_2) {
491
- tmp_1 = this.h46_1 == other.h46_1;
892
+ tmp_1 = this.s53_1 == other.s53_1;
492
893
  } else {
493
894
  tmp_1 = false;
494
895
  }
495
896
  if (tmp_1) {
496
- tmp_0 = this.i46_1 == other.i46_1;
897
+ tmp_0 = this.t53_1 == other.t53_1;
497
898
  } else {
498
899
  tmp_0 = false;
499
900
  }
500
901
  if (tmp_0) {
501
- tmp = this.j46_1 == other.j46_1;
902
+ tmp = this.u53_1 == other.u53_1;
502
903
  } else {
503
904
  tmp = false;
504
905
  }
505
906
  return tmp;
506
907
  };
507
908
  protoOf(IncompleteLocalDate).hashCode = function () {
508
- var tmp = imul(this.g46_1.hashCode(), 29791);
909
+ var tmp = imul(this.r53_1.hashCode(), 29791);
509
910
  // Inline function 'kotlin.hashCode' call
510
- var tmp0_safe_receiver = this.h46_1;
911
+ var tmp0_safe_receiver = this.s53_1;
511
912
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
512
913
  var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
513
914
  var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0;
514
915
  // Inline function 'kotlin.hashCode' call
515
- var tmp0_safe_receiver_0 = this.i46_1;
916
+ var tmp0_safe_receiver_0 = this.t53_1;
516
917
  var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
517
918
  var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
518
919
  var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0;
519
920
  // Inline function 'kotlin.hashCode' call
520
- var tmp0_safe_receiver_1 = this.j46_1;
921
+ var tmp0_safe_receiver_1 = this.u53_1;
521
922
  var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
522
923
  return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
523
924
  };
524
925
  protoOf(IncompleteLocalDate).toString = function () {
525
926
  var tmp;
526
- if (this.j46_1 == null) {
527
- var tmp_0 = this.g46_1.toString();
528
- var tmp0_elvis_lhs = this.h46_1;
927
+ if (this.u53_1 == null) {
928
+ var tmp_0 = this.r53_1.toString();
929
+ var tmp0_elvis_lhs = this.s53_1;
529
930
  var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
530
- var tmp1_elvis_lhs = this.i46_1;
931
+ var tmp1_elvis_lhs = this.t53_1;
531
932
  tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')';
532
- } else if (this.h46_1 == null && this.z46() == null) {
533
- var tmp2_elvis_lhs = this.g46_1.x46_1;
933
+ } else if (this.s53_1 == null && this.h54() == null) {
934
+ var tmp2_elvis_lhs = this.r53_1.m54_1;
534
935
  var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
535
- var tmp_3 = this.j46_1;
536
- var tmp3_elvis_lhs = this.i46_1;
936
+ var tmp_3 = this.u53_1;
937
+ var tmp3_elvis_lhs = this.t53_1;
537
938
  tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
538
939
  } else {
539
- var tmp_4 = this.g46_1.toString();
540
- var tmp4_elvis_lhs = this.h46_1;
940
+ var tmp_4 = this.r53_1.toString();
941
+ var tmp4_elvis_lhs = this.s53_1;
541
942
  var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs);
542
- var tmp5_elvis_lhs = this.i46_1;
543
- tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.j46_1 + ')';
943
+ var tmp5_elvis_lhs = this.t53_1;
944
+ tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.u53_1 + ')';
544
945
  }
545
946
  return tmp;
546
947
  };
547
- protoOf(IncompleteLocalDate).u46 = function (_set____db54di) {
548
- this.g46_1.x46_1 = _set____db54di;
948
+ protoOf(IncompleteLocalDate).j54 = function (_set____db54di) {
949
+ this.r53_1.m54_1 = _set____db54di;
549
950
  };
550
- protoOf(IncompleteLocalDate).a47 = function () {
551
- return this.g46_1.x46_1;
951
+ protoOf(IncompleteLocalDate).c54 = function () {
952
+ return this.r53_1.m54_1;
552
953
  };
553
- protoOf(IncompleteLocalDate).w46 = function (_set____db54di) {
554
- this.g46_1.y46_1 = _set____db54di;
954
+ protoOf(IncompleteLocalDate).k54 = function (_set____db54di) {
955
+ this.r53_1.n54_1 = _set____db54di;
555
956
  };
556
- protoOf(IncompleteLocalDate).z46 = function () {
557
- return this.g46_1.y46_1;
957
+ protoOf(IncompleteLocalDate).h54 = function () {
958
+ return this.r53_1.n54_1;
558
959
  };
559
- function Companion() {
960
+ function Companion_4() {
560
961
  }
561
- protoOf(Companion).b47 = function (block) {
962
+ protoOf(Companion_4).o54 = function (block) {
562
963
  var builder = new Builder(new AppendableFormatStructure());
563
964
  block(builder);
564
- return new LocalDateFormat(builder.i23());
965
+ return new LocalDateFormat(builder.a2k());
565
966
  };
566
- var Companion_instance;
567
- function Companion_getInstance() {
568
- return Companion_instance;
967
+ var Companion_instance_4;
968
+ function Companion_getInstance_4() {
969
+ return Companion_instance_4;
569
970
  }
570
971
  function Builder(actualBuilder) {
571
- this.c47_1 = actualBuilder;
972
+ this.p54_1 = actualBuilder;
572
973
  }
573
- protoOf(Builder).c46 = function () {
574
- return this.c47_1;
974
+ protoOf(Builder).n53 = function () {
975
+ return this.p54_1;
575
976
  };
576
- protoOf(Builder).d47 = function (structure) {
577
- return this.c47_1.e46(structure);
977
+ protoOf(Builder).q54 = function (structure) {
978
+ return this.p54_1.p53(structure);
578
979
  };
579
980
  function LocalDateFormat(actualFormat) {
580
981
  AbstractDateTimeFormat.call(this);
581
- this.f47_1 = actualFormat;
982
+ this.s54_1 = actualFormat;
582
983
  }
583
- protoOf(LocalDateFormat).o45 = function () {
584
- return this.f47_1;
984
+ protoOf(LocalDateFormat).w52 = function () {
985
+ return this.s54_1;
585
986
  };
586
- protoOf(LocalDateFormat).g47 = function (value) {
987
+ protoOf(LocalDateFormat).t54 = function (value) {
587
988
  // Inline function 'kotlin.apply' call
588
989
  var this_0 = new IncompleteLocalDate();
589
- this_0.q46(value);
990
+ this_0.i54(value);
590
991
  return this_0;
591
992
  };
592
- protoOf(LocalDateFormat).p45 = function (value) {
593
- return this.g47(value instanceof LocalDate ? value : THROW_CCE());
993
+ protoOf(LocalDateFormat).x52 = function (value) {
994
+ return this.t54(value instanceof LocalDate ? value : THROW_CCE());
995
+ };
996
+ protoOf(LocalDateFormat).u54 = function (intermediate) {
997
+ return intermediate.b54();
998
+ };
999
+ protoOf(LocalDateFormat).y52 = function (intermediate) {
1000
+ return this.u54(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
1001
+ };
1002
+ protoOf(LocalDateFormat).z52 = function () {
1003
+ return get_emptyIncompleteLocalDate();
594
1004
  };
595
1005
  function AbstractWithDateBuilder() {
596
1006
  }
597
1007
  function DayDirective(padding) {
598
- var tmp = DateFields_getInstance().h47_1;
1008
+ var tmp = DateFields_getInstance().v54_1;
599
1009
  // Inline function 'kotlinx.datetime.format.minDigits' call
600
1010
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
601
1011
  // Inline function 'kotlinx.datetime.format.spaces' call
602
1012
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
603
1013
  UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
604
- this.o47_1 = padding;
1014
+ this.c55_1 = padding;
605
1015
  }
606
1016
  protoOf(DayDirective).equals = function (other) {
607
1017
  var tmp;
608
1018
  if (other instanceof DayDirective) {
609
- tmp = this.o47_1.equals(other.o47_1);
1019
+ tmp = this.c55_1.equals(other.c55_1);
610
1020
  } else {
611
1021
  tmp = false;
612
1022
  }
613
1023
  return tmp;
614
1024
  };
615
1025
  protoOf(DayDirective).hashCode = function () {
616
- return this.o47_1.hashCode();
1026
+ return this.c55_1.hashCode();
617
1027
  };
618
1028
  function DateFieldContainer$_get_day_$ref_2ebhxx() {
619
1029
  return function (p0) {
620
- return p0.l46();
1030
+ return p0.w53();
621
1031
  };
622
1032
  }
623
1033
  function DateFieldContainer$_set_day_$ref_s0jsax() {
624
1034
  return function (p0, p1) {
625
- p0.k46(p1);
1035
+ p0.v53(p1);
626
1036
  return Unit_instance;
627
1037
  };
628
1038
  }
629
1039
  function DateFieldContainer$_get_dayOfWeek_$ref_thwqom() {
630
1040
  return function (p0) {
631
- return p0.n46();
1041
+ return p0.y53();
632
1042
  };
633
1043
  }
634
1044
  function DateFieldContainer$_set_dayOfWeek_$ref_ea586a() {
635
1045
  return function (p0, p1) {
636
- p0.m46(p1);
1046
+ p0.x53(p1);
637
1047
  return Unit_instance;
638
1048
  };
639
1049
  }
640
1050
  function DateFieldContainer$_get_dayOfYear_$ref_2m6gfz() {
641
1051
  return function (p0) {
642
- return p0.p46();
1052
+ return p0.a54();
643
1053
  };
644
1054
  }
645
1055
  function DateFieldContainer$_set_dayOfYear_$ref_cll22d() {
646
1056
  return function (p0, p1) {
647
- p0.o46(p1);
1057
+ p0.z53(p1);
648
1058
  return Unit_instance;
649
1059
  };
650
1060
  }
@@ -653,15 +1063,15 @@
653
1063
  var tmp = this;
654
1064
  var tmp_0 = KMutableProperty1;
655
1065
  var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx();
656
- tmp.h47_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
1066
+ tmp.v54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
657
1067
  var tmp_2 = this;
658
1068
  var tmp_3 = KMutableProperty1;
659
1069
  var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom();
660
- tmp_2.i47_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
1070
+ tmp_2.w54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
661
1071
  var tmp_5 = this;
662
1072
  var tmp_6 = KMutableProperty1;
663
1073
  var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz();
664
- tmp_5.j47_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
1074
+ tmp_5.x54_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
665
1075
  }
666
1076
  var DateFields_instance;
667
1077
  function DateFields_getInstance() {
@@ -671,16 +1081,16 @@
671
1081
  }
672
1082
  function ISO_DATE$delegate$lambda() {
673
1083
  _init_properties_LocalDateFormat_kt__k1uk9u();
674
- var tmp = Companion_instance;
675
- return tmp.b47(ISO_DATE$delegate$lambda$lambda);
1084
+ var tmp = Companion_instance_4;
1085
+ return tmp.o54(ISO_DATE$delegate$lambda$lambda);
676
1086
  }
677
1087
  function ISO_DATE$delegate$lambda$lambda($this$build) {
678
1088
  _init_properties_LocalDateFormat_kt__k1uk9u();
679
- $this$build.w45();
1089
+ $this$build.h53();
680
1090
  char($this$build, _Char___init__impl__6a9atx(45));
681
- $this$build.y45();
1091
+ $this$build.j53();
682
1092
  char($this$build, _Char___init__impl__6a9atx(45));
683
- $this$build.b46();
1093
+ $this$build.m53();
684
1094
  return Unit_instance;
685
1095
  }
686
1096
  function _get_ISO_DATE_$ref_powsum() {
@@ -690,14 +1100,14 @@
690
1100
  }
691
1101
  function ISO_DATE_BASIC$delegate$lambda() {
692
1102
  _init_properties_LocalDateFormat_kt__k1uk9u();
693
- var tmp = Companion_instance;
694
- return tmp.b47(ISO_DATE_BASIC$delegate$lambda$lambda);
1103
+ var tmp = Companion_instance_4;
1104
+ return tmp.o54(ISO_DATE_BASIC$delegate$lambda$lambda);
695
1105
  }
696
1106
  function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
697
1107
  _init_properties_LocalDateFormat_kt__k1uk9u();
698
- $this$build.w45();
699
- $this$build.y45();
700
- $this$build.b46();
1108
+ $this$build.h53();
1109
+ $this$build.j53();
1110
+ $this$build.m53();
701
1111
  return Unit_instance;
702
1112
  }
703
1113
  function _get_ISO_DATE_BASIC_$ref_3fs8eb() {
@@ -714,34 +1124,60 @@
714
1124
  emptyIncompleteLocalDate = new IncompleteLocalDate();
715
1125
  }
716
1126
  }
1127
+ function get_emptyIncompleteYearMonth() {
1128
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1129
+ return emptyIncompleteYearMonth;
1130
+ }
1131
+ var emptyIncompleteYearMonth;
1132
+ function get_ISO_YEAR_MONTH() {
1133
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1134
+ var tmp0 = ISO_YEAR_MONTH$delegate;
1135
+ var tmp = KProperty0;
1136
+ // Inline function 'kotlin.getValue' call
1137
+ getPropertyCallableRef('ISO_YEAR_MONTH', 0, tmp, _get_ISO_YEAR_MONTH_$ref_y3tv9a(), null);
1138
+ return tmp0.m1();
1139
+ }
1140
+ var ISO_YEAR_MONTH$delegate;
717
1141
  function IncompleteYearMonth(year, monthNumber) {
718
1142
  year = year === VOID ? null : year;
719
1143
  monthNumber = monthNumber === VOID ? null : monthNumber;
720
- this.x46_1 = year;
721
- this.y46_1 = monthNumber;
1144
+ this.m54_1 = year;
1145
+ this.n54_1 = monthNumber;
722
1146
  }
723
- protoOf(IncompleteYearMonth).u46 = function (_set____db54di) {
724
- this.x46_1 = _set____db54di;
1147
+ protoOf(IncompleteYearMonth).j54 = function (_set____db54di) {
1148
+ this.m54_1 = _set____db54di;
725
1149
  };
726
- protoOf(IncompleteYearMonth).a47 = function () {
727
- return this.x46_1;
1150
+ protoOf(IncompleteYearMonth).c54 = function () {
1151
+ return this.m54_1;
728
1152
  };
729
- protoOf(IncompleteYearMonth).w46 = function (_set____db54di) {
730
- this.y46_1 = _set____db54di;
1153
+ protoOf(IncompleteYearMonth).k54 = function (_set____db54di) {
1154
+ this.n54_1 = _set____db54di;
731
1155
  };
732
- protoOf(IncompleteYearMonth).z46 = function () {
733
- return this.y46_1;
1156
+ protoOf(IncompleteYearMonth).h54 = function () {
1157
+ return this.n54_1;
1158
+ };
1159
+ protoOf(IncompleteYearMonth).h55 = function () {
1160
+ var year = requireParsedField(this.m54_1, 'year');
1161
+ var month = requireParsedField(this.n54_1, 'monthNumber');
1162
+ return new YearMonth(year, month);
1163
+ };
1164
+ protoOf(IncompleteYearMonth).i55 = function (yearMonth) {
1165
+ this.m54_1 = yearMonth.j55_1;
1166
+ this.n54_1 = get_number(yearMonth.g54());
1167
+ };
1168
+ protoOf(IncompleteYearMonth).l54 = function () {
1169
+ return new IncompleteYearMonth(this.m54_1, this.n54_1);
734
1170
  };
735
1171
  protoOf(IncompleteYearMonth).equals = function (other) {
736
1172
  var tmp;
737
1173
  var tmp_0;
738
1174
  if (other instanceof IncompleteYearMonth) {
739
- tmp_0 = this.x46_1 == other.x46_1;
1175
+ tmp_0 = this.m54_1 == other.m54_1;
740
1176
  } else {
741
1177
  tmp_0 = false;
742
1178
  }
743
1179
  if (tmp_0) {
744
- tmp = this.y46_1 == other.y46_1;
1180
+ tmp = this.n54_1 == other.n54_1;
745
1181
  } else {
746
1182
  tmp = false;
747
1183
  }
@@ -749,92 +1185,144 @@
749
1185
  };
750
1186
  protoOf(IncompleteYearMonth).hashCode = function () {
751
1187
  // Inline function 'kotlin.hashCode' call
752
- var tmp0_safe_receiver = this.x46_1;
1188
+ var tmp0_safe_receiver = this.m54_1;
753
1189
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
754
1190
  var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
755
1191
  var tmp = imul(tmp$ret$0, 31);
756
1192
  // Inline function 'kotlin.hashCode' call
757
- var tmp0_safe_receiver_0 = this.y46_1;
1193
+ var tmp0_safe_receiver_0 = this.n54_1;
758
1194
  var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
759
1195
  return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
760
1196
  };
761
1197
  protoOf(IncompleteYearMonth).toString = function () {
762
- var tmp0_elvis_lhs = this.x46_1;
1198
+ var tmp0_elvis_lhs = this.m54_1;
763
1199
  var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
764
- var tmp1_elvis_lhs = this.y46_1;
1200
+ var tmp1_elvis_lhs = this.n54_1;
765
1201
  return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
766
1202
  };
1203
+ function requireParsedField(field, name) {
1204
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1205
+ if (field == null) {
1206
+ throw DateTimeFormatException_init_$Create$_0('Can not create a ' + name + ' from the given input: the field ' + name + ' is missing');
1207
+ }
1208
+ return field;
1209
+ }
767
1210
  function AbstractWithYearMonthBuilder() {
768
1211
  }
1212
+ function Companion_5() {
1213
+ }
1214
+ protoOf(Companion_5).l55 = function (block) {
1215
+ var builder = new Builder_0(new AppendableFormatStructure());
1216
+ block(builder);
1217
+ return new YearMonthFormat(builder.a2k());
1218
+ };
1219
+ var Companion_instance_5;
1220
+ function Companion_getInstance_5() {
1221
+ return Companion_instance_5;
1222
+ }
1223
+ function Builder_0(actualBuilder) {
1224
+ this.m55_1 = actualBuilder;
1225
+ }
1226
+ protoOf(Builder_0).n53 = function () {
1227
+ return this.m55_1;
1228
+ };
1229
+ protoOf(Builder_0).r54 = function (structure) {
1230
+ return this.m55_1.p53(structure);
1231
+ };
1232
+ function YearMonthFormat(actualFormat) {
1233
+ AbstractDateTimeFormat.call(this);
1234
+ this.n55_1 = actualFormat;
1235
+ }
1236
+ protoOf(YearMonthFormat).w52 = function () {
1237
+ return this.n55_1;
1238
+ };
1239
+ protoOf(YearMonthFormat).o55 = function (value) {
1240
+ // Inline function 'kotlin.apply' call
1241
+ var this_0 = new IncompleteYearMonth();
1242
+ this_0.i55(value);
1243
+ return this_0;
1244
+ };
1245
+ protoOf(YearMonthFormat).x52 = function (value) {
1246
+ return this.o55(value instanceof YearMonth ? value : THROW_CCE());
1247
+ };
1248
+ protoOf(YearMonthFormat).p55 = function (intermediate) {
1249
+ return intermediate.h55();
1250
+ };
1251
+ protoOf(YearMonthFormat).y52 = function (intermediate) {
1252
+ return this.p55(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE());
1253
+ };
1254
+ protoOf(YearMonthFormat).z52 = function () {
1255
+ return get_emptyIncompleteYearMonth();
1256
+ };
769
1257
  function YearDirective(padding, isYearOfEra) {
770
1258
  isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
771
- var tmp = YearMonthFields_getInstance().u47_1;
1259
+ var tmp = YearMonthFields_getInstance().q55_1;
772
1260
  // Inline function 'kotlinx.datetime.format.minDigits' call
773
1261
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
774
1262
  // Inline function 'kotlinx.datetime.format.spaces' call
775
1263
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
776
1264
  SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
777
- this.b48_1 = padding;
778
- this.c48_1 = isYearOfEra;
1265
+ this.x55_1 = padding;
1266
+ this.y55_1 = isYearOfEra;
779
1267
  }
780
1268
  protoOf(YearDirective).equals = function (other) {
781
1269
  var tmp;
782
1270
  var tmp_0;
783
1271
  if (other instanceof YearDirective) {
784
- tmp_0 = this.b48_1.equals(other.b48_1);
1272
+ tmp_0 = this.x55_1.equals(other.x55_1);
785
1273
  } else {
786
1274
  tmp_0 = false;
787
1275
  }
788
1276
  if (tmp_0) {
789
- tmp = this.c48_1 === other.c48_1;
1277
+ tmp = this.y55_1 === other.y55_1;
790
1278
  } else {
791
1279
  tmp = false;
792
1280
  }
793
1281
  return tmp;
794
1282
  };
795
1283
  protoOf(YearDirective).hashCode = function () {
796
- return imul(this.b48_1.hashCode(), 31) + getBooleanHashCode(this.c48_1) | 0;
1284
+ return imul(this.x55_1.hashCode(), 31) + getBooleanHashCode(this.y55_1) | 0;
797
1285
  };
798
1286
  function MonthDirective(padding) {
799
- var tmp = YearMonthFields_getInstance().v47_1;
1287
+ var tmp = YearMonthFields_getInstance().r55_1;
800
1288
  // Inline function 'kotlinx.datetime.format.minDigits' call
801
1289
  var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
802
1290
  // Inline function 'kotlinx.datetime.format.spaces' call
803
1291
  var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
804
1292
  UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
805
- this.m48_1 = padding;
1293
+ this.i56_1 = padding;
806
1294
  }
807
1295
  protoOf(MonthDirective).equals = function (other) {
808
1296
  var tmp;
809
1297
  if (other instanceof MonthDirective) {
810
- tmp = this.m48_1.equals(other.m48_1);
1298
+ tmp = this.i56_1.equals(other.i56_1);
811
1299
  } else {
812
1300
  tmp = false;
813
1301
  }
814
1302
  return tmp;
815
1303
  };
816
1304
  protoOf(MonthDirective).hashCode = function () {
817
- return this.m48_1.hashCode();
1305
+ return this.i56_1.hashCode();
818
1306
  };
819
1307
  function YearMonthFieldContainer$_get_year_$ref_7j3zdj() {
820
1308
  return function (p0) {
821
- return p0.a47();
1309
+ return p0.c54();
822
1310
  };
823
1311
  }
824
1312
  function YearMonthFieldContainer$_set_year_$ref_kc0aub() {
825
1313
  return function (p0, p1) {
826
- p0.u46(p1);
1314
+ p0.j54(p1);
827
1315
  return Unit_instance;
828
1316
  };
829
1317
  }
830
1318
  function YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5() {
831
1319
  return function (p0) {
832
- return p0.z46();
1320
+ return p0.h54();
833
1321
  };
834
1322
  }
835
1323
  function YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl() {
836
1324
  return function (p0, p1) {
837
- p0.w46(p1);
1325
+ p0.k54(p1);
838
1326
  return Unit_instance;
839
1327
  };
840
1328
  }
@@ -843,11 +1331,11 @@
843
1331
  var tmp = this;
844
1332
  var tmp_0 = KMutableProperty1;
845
1333
  var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj();
846
- tmp.u47_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
1334
+ tmp.q55_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
847
1335
  var tmp_2 = this;
848
1336
  var tmp_3 = KMutableProperty1;
849
1337
  var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5();
850
- tmp_2.v47_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
1338
+ tmp_2.r55_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
851
1339
  }
852
1340
  var YearMonthFields_instance;
853
1341
  function YearMonthFields_getInstance() {
@@ -855,6 +1343,31 @@
855
1343
  new YearMonthFields();
856
1344
  return YearMonthFields_instance;
857
1345
  }
1346
+ function ISO_YEAR_MONTH$delegate$lambda() {
1347
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1348
+ var tmp = Companion_instance_5;
1349
+ return tmp.l55(ISO_YEAR_MONTH$delegate$lambda$lambda);
1350
+ }
1351
+ function ISO_YEAR_MONTH$delegate$lambda$lambda($this$build) {
1352
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1353
+ $this$build.h53();
1354
+ char($this$build, _Char___init__impl__6a9atx(45));
1355
+ $this$build.j53();
1356
+ return Unit_instance;
1357
+ }
1358
+ function _get_ISO_YEAR_MONTH_$ref_y3tv9a() {
1359
+ return function () {
1360
+ return get_ISO_YEAR_MONTH();
1361
+ };
1362
+ }
1363
+ var properties_initialized_YearMonthFormat_kt_fp0mk6;
1364
+ function _init_properties_YearMonthFormat_kt__i0mmu0() {
1365
+ if (!properties_initialized_YearMonthFormat_kt_fp0mk6) {
1366
+ properties_initialized_YearMonthFormat_kt_fp0mk6 = true;
1367
+ emptyIncompleteYearMonth = new IncompleteYearMonth();
1368
+ ISO_YEAR_MONTH$delegate = lazy(ISO_YEAR_MONTH$delegate$lambda);
1369
+ }
1370
+ }
858
1371
  function monthLength(_this__u8e3s4, isLeapYear) {
859
1372
  switch (_this__u8e3s4) {
860
1373
  case 2:
@@ -889,21 +1402,21 @@
889
1402
  function AppendableFormatStructure() {
890
1403
  var tmp = this;
891
1404
  // Inline function 'kotlin.collections.mutableListOf' call
892
- tmp.d46_1 = ArrayList_init_$Create$();
1405
+ tmp.o53_1 = ArrayList_init_$Create$();
893
1406
  }
894
- protoOf(AppendableFormatStructure).i23 = function () {
895
- return new ConcatenatedFormatStructure(this.d46_1);
1407
+ protoOf(AppendableFormatStructure).a2k = function () {
1408
+ return new ConcatenatedFormatStructure(this.o53_1);
896
1409
  };
897
- protoOf(AppendableFormatStructure).e46 = function (format) {
1410
+ protoOf(AppendableFormatStructure).p53 = function (format) {
898
1411
  if (isInterface(format, NonConcatenatedFormatStructure))
899
- this.d46_1.z(format);
1412
+ this.o53_1.e1(format);
900
1413
  else {
901
1414
  if (format instanceof ConcatenatedFormatStructure) {
902
1415
  // Inline function 'kotlin.collections.forEach' call
903
- var _iterator__ex2g4s = format.f46_1.r();
904
- while (_iterator__ex2g4s.s()) {
905
- var element = _iterator__ex2g4s.t();
906
- this.d46_1.z(element);
1416
+ var _iterator__ex2g4s = format.q53_1.t();
1417
+ while (_iterator__ex2g4s.u()) {
1418
+ var element = _iterator__ex2g4s.v();
1419
+ this.o53_1.e1(element);
907
1420
  }
908
1421
  } else {
909
1422
  noWhenBranchMatchedException();
@@ -912,201 +1425,218 @@
912
1425
  };
913
1426
  function Accessor$getterNotNull$ref(p0) {
914
1427
  var l = function (_this__u8e3s4) {
915
- return p0.n48(_this__u8e3s4);
1428
+ return p0.j56(_this__u8e3s4);
916
1429
  };
917
1430
  l.callableName = 'getterNotNull';
918
1431
  return l;
919
1432
  }
920
1433
  function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
921
- this.p47_1 = field;
922
- this.q47_1 = minDigits;
923
- this.r47_1 = spacePadding;
924
- this.s47_1 = this.p47_1.u48_1;
1434
+ this.d55_1 = field;
1435
+ this.e55_1 = minDigits;
1436
+ this.f55_1 = spacePadding;
1437
+ this.g55_1 = this.d55_1.q56_1;
925
1438
  // Inline function 'kotlin.require' call
926
- if (!(this.q47_1 >= 0)) {
927
- var message = 'The minimum number of digits (' + this.q47_1 + ') is negative';
1439
+ if (!(this.e55_1 >= 0)) {
1440
+ var message = 'The minimum number of digits (' + this.e55_1 + ') is negative';
928
1441
  throw IllegalArgumentException_init_$Create$(toString(message));
929
1442
  }
930
1443
  // Inline function 'kotlin.require' call
931
- if (!(this.s47_1 >= this.q47_1)) {
932
- var message_0 = 'The maximum number of digits (' + this.s47_1 + ') is less than the minimum number of digits (' + this.q47_1 + ')';
1444
+ if (!(this.g55_1 >= this.e55_1)) {
1445
+ var message_0 = 'The maximum number of digits (' + this.g55_1 + ') is less than the minimum number of digits (' + this.e55_1 + ')';
933
1446
  throw IllegalArgumentException_init_$Create$(toString(message_0));
934
1447
  }
935
- if (!(this.r47_1 == null)) {
1448
+ if (!(this.f55_1 == null)) {
936
1449
  // Inline function 'kotlin.require' call
937
- if (!(this.r47_1 > this.q47_1)) {
938
- var message_1 = 'The space padding (' + this.r47_1 + ') should be more than the minimum number of digits (' + this.q47_1 + ')';
1450
+ if (!(this.f55_1 > this.e55_1)) {
1451
+ var message_1 = 'The space padding (' + this.f55_1 + ') should be more than the minimum number of digits (' + this.e55_1 + ')';
939
1452
  throw IllegalArgumentException_init_$Create$(toString(message_1));
940
1453
  }
941
1454
  }
942
1455
  }
943
- protoOf(UnsignedIntFieldFormatDirective).t45 = function () {
944
- var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.p47_1.o48_1), this.q47_1);
945
- return !(this.r47_1 == null) ? new SpacePaddedFormatter(formatter, this.r47_1) : formatter;
1456
+ protoOf(UnsignedIntFieldFormatDirective).d53 = function () {
1457
+ var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.d55_1.k56_1), this.e55_1);
1458
+ return !(this.f55_1 == null) ? new SpacePaddedFormatter(formatter, this.f55_1) : formatter;
946
1459
  };
947
- protoOf(UnsignedIntFieldFormatDirective).t47 = function () {
948
- return spaceAndZeroPaddedUnsignedInt(this.q47_1, this.s47_1, this.r47_1, this.p47_1.o48_1, this.p47_1.r48_1);
1460
+ protoOf(UnsignedIntFieldFormatDirective).f53 = function () {
1461
+ return spaceAndZeroPaddedUnsignedInt(this.e55_1, this.g55_1, this.f55_1, this.d55_1.k56_1, this.d55_1.n56_1);
949
1462
  };
950
1463
  function Accessor$getterNotNull$ref_0(p0) {
951
1464
  var l = function (_this__u8e3s4) {
952
- return p0.n48(_this__u8e3s4);
1465
+ return p0.j56(_this__u8e3s4);
953
1466
  };
954
1467
  l.callableName = 'getterNotNull';
955
1468
  return l;
956
1469
  }
957
1470
  function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
958
- this.d48_1 = field;
959
- this.e48_1 = minDigits;
960
- this.f48_1 = maxDigits;
961
- this.g48_1 = spacePadding;
962
- this.h48_1 = outputPlusOnExceededWidth;
1471
+ this.z55_1 = field;
1472
+ this.a56_1 = minDigits;
1473
+ this.b56_1 = maxDigits;
1474
+ this.c56_1 = spacePadding;
1475
+ this.d56_1 = outputPlusOnExceededWidth;
963
1476
  // Inline function 'kotlin.require' call
964
- if (!(this.e48_1 == null || this.e48_1 >= 0)) {
965
- var message = 'The minimum number of digits (' + this.e48_1 + ') is negative';
1477
+ if (!(this.a56_1 == null || this.a56_1 >= 0)) {
1478
+ var message = 'The minimum number of digits (' + this.a56_1 + ') is negative';
966
1479
  throw IllegalArgumentException_init_$Create$(toString(message));
967
1480
  }
968
1481
  // Inline function 'kotlin.require' call
969
- if (!(this.f48_1 == null || this.e48_1 == null || this.f48_1 >= this.e48_1)) {
970
- var message_0 = 'The maximum number of digits (' + this.f48_1 + ') is less than the minimum number of digits (' + this.e48_1 + ')';
1482
+ if (!(this.b56_1 == null || this.a56_1 == null || this.b56_1 >= this.a56_1)) {
1483
+ var message_0 = 'The maximum number of digits (' + this.b56_1 + ') is less than the minimum number of digits (' + this.a56_1 + ')';
971
1484
  throw IllegalArgumentException_init_$Create$(toString(message_0));
972
1485
  }
973
1486
  }
974
- protoOf(SignedIntFieldFormatDirective).t45 = function () {
975
- var tmp = Accessor$getterNotNull$ref_0(this.d48_1.v48());
976
- var tmp0_elvis_lhs = this.e48_1;
977
- var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.h48_1);
978
- return !(this.g48_1 == null) ? new SpacePaddedFormatter(formatter, this.g48_1) : formatter;
1487
+ protoOf(SignedIntFieldFormatDirective).d53 = function () {
1488
+ var tmp = Accessor$getterNotNull$ref_0(this.z55_1.r56());
1489
+ var tmp0_elvis_lhs = this.a56_1;
1490
+ var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.d56_1);
1491
+ return !(this.c56_1 == null) ? new SpacePaddedFormatter(formatter, this.c56_1) : formatter;
979
1492
  };
980
- protoOf(SignedIntFieldFormatDirective).t47 = function () {
981
- return SignedIntParser(this.e48_1, this.f48_1, this.g48_1, this.d48_1.v48(), this.d48_1.k(), this.h48_1);
1493
+ protoOf(SignedIntFieldFormatDirective).f53 = function () {
1494
+ return SignedIntParser(this.a56_1, this.b56_1, this.c56_1, this.z55_1.r56(), this.z55_1.m(), this.d56_1);
982
1495
  };
983
1496
  function GenericFieldSpec(accessor, name, defaultValue, sign) {
984
- name = name === VOID ? accessor.k() : name;
1497
+ name = name === VOID ? accessor.m() : name;
985
1498
  defaultValue = defaultValue === VOID ? null : defaultValue;
986
1499
  sign = sign === VOID ? null : sign;
987
1500
  AbstractFieldSpec.call(this);
988
- this.w48_1 = accessor;
989
- this.x48_1 = name;
990
- this.y48_1 = defaultValue;
991
- this.z48_1 = sign;
1501
+ this.s56_1 = accessor;
1502
+ this.t56_1 = name;
1503
+ this.u56_1 = defaultValue;
1504
+ this.v56_1 = sign;
992
1505
  }
993
- protoOf(GenericFieldSpec).v48 = function () {
994
- return this.w48_1;
1506
+ protoOf(GenericFieldSpec).r56 = function () {
1507
+ return this.s56_1;
995
1508
  };
996
- protoOf(GenericFieldSpec).k = function () {
997
- return this.x48_1;
1509
+ protoOf(GenericFieldSpec).m = function () {
1510
+ return this.t56_1;
998
1511
  };
999
- protoOf(GenericFieldSpec).a49 = function () {
1000
- return this.y48_1;
1512
+ protoOf(GenericFieldSpec).w56 = function () {
1513
+ return this.u56_1;
1001
1514
  };
1002
1515
  function PropertyAccessor(property, name) {
1003
1516
  name = name === VOID ? property.callableName : name;
1004
- this.b49_1 = property;
1005
- this.c49_1 = name;
1517
+ this.x56_1 = property;
1518
+ this.y56_1 = name;
1006
1519
  }
1007
- protoOf(PropertyAccessor).k = function () {
1008
- return this.c49_1;
1520
+ protoOf(PropertyAccessor).m = function () {
1521
+ return this.y56_1;
1009
1522
  };
1010
- protoOf(PropertyAccessor).d49 = function (container) {
1011
- return this.b49_1.get(container);
1523
+ protoOf(PropertyAccessor).z56 = function (container, newValue) {
1524
+ var oldValue = this.x56_1.get(container);
1525
+ var tmp;
1526
+ if (oldValue === null) {
1527
+ this.x56_1.set(container, newValue);
1528
+ tmp = null;
1529
+ } else if (equals(oldValue, newValue)) {
1530
+ tmp = null;
1531
+ } else {
1532
+ tmp = oldValue;
1533
+ }
1534
+ return tmp;
1535
+ };
1536
+ protoOf(PropertyAccessor).a57 = function (container, newValue) {
1537
+ var tmp = (container == null ? true : !(container == null)) ? container : THROW_CCE();
1538
+ return this.z56(tmp, (newValue == null ? true : !(newValue == null)) ? newValue : THROW_CCE());
1539
+ };
1540
+ protoOf(PropertyAccessor).b57 = function (container) {
1541
+ return this.x56_1.get(container);
1012
1542
  };
1013
1543
  function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
1014
- name = name === VOID ? accessor.k() : name;
1544
+ name = name === VOID ? accessor.m() : name;
1015
1545
  defaultValue = defaultValue === VOID ? null : defaultValue;
1016
1546
  sign = sign === VOID ? null : sign;
1017
1547
  AbstractFieldSpec.call(this);
1018
- this.o48_1 = accessor;
1019
- this.p48_1 = minValue;
1020
- this.q48_1 = maxValue;
1021
- this.r48_1 = name;
1022
- this.s48_1 = defaultValue;
1023
- this.t48_1 = sign;
1548
+ this.k56_1 = accessor;
1549
+ this.l56_1 = minValue;
1550
+ this.m56_1 = maxValue;
1551
+ this.n56_1 = name;
1552
+ this.o56_1 = defaultValue;
1553
+ this.p56_1 = sign;
1024
1554
  var tmp = this;
1025
1555
  var tmp_0;
1026
- if (this.q48_1 < 10) {
1556
+ if (this.m56_1 < 10) {
1027
1557
  tmp_0 = 1;
1028
- } else if (this.q48_1 < 100) {
1558
+ } else if (this.m56_1 < 100) {
1029
1559
  tmp_0 = 2;
1030
- } else if (this.q48_1 < 1000) {
1560
+ } else if (this.m56_1 < 1000) {
1031
1561
  tmp_0 = 3;
1032
1562
  } else {
1033
- throw IllegalArgumentException_init_$Create$('Max value ' + this.q48_1 + ' is too large');
1563
+ throw IllegalArgumentException_init_$Create$('Max value ' + this.m56_1 + ' is too large');
1034
1564
  }
1035
- tmp.u48_1 = tmp_0;
1565
+ tmp.q56_1 = tmp_0;
1036
1566
  }
1037
- protoOf(UnsignedFieldSpec).v48 = function () {
1038
- return this.o48_1;
1567
+ protoOf(UnsignedFieldSpec).r56 = function () {
1568
+ return this.k56_1;
1039
1569
  };
1040
- protoOf(UnsignedFieldSpec).k = function () {
1041
- return this.r48_1;
1570
+ protoOf(UnsignedFieldSpec).m = function () {
1571
+ return this.n56_1;
1042
1572
  };
1043
- protoOf(UnsignedFieldSpec).a49 = function () {
1044
- return this.s48_1;
1573
+ protoOf(UnsignedFieldSpec).w56 = function () {
1574
+ return this.o56_1;
1045
1575
  };
1046
1576
  function Accessor() {
1047
1577
  }
1048
1578
  function AbstractFieldSpec() {
1049
1579
  }
1050
1580
  protoOf(AbstractFieldSpec).toString = function () {
1051
- return 'The field ' + this.k() + ' (default value is ' + toString_1(this.a49()) + ')';
1581
+ return 'The field ' + this.m() + ' (default value is ' + toString_1(this.w56()) + ')';
1052
1582
  };
1053
1583
  function CachedFormatStructure(formats) {
1054
1584
  ConcatenatedFormatStructure.call(this, formats);
1055
- this.r45_1 = protoOf(ConcatenatedFormatStructure).t45.call(this);
1056
- this.s45_1 = protoOf(ConcatenatedFormatStructure).t47.call(this);
1585
+ this.b53_1 = protoOf(ConcatenatedFormatStructure).d53.call(this);
1586
+ this.c53_1 = protoOf(ConcatenatedFormatStructure).f53.call(this);
1057
1587
  }
1058
- protoOf(CachedFormatStructure).t45 = function () {
1059
- return this.r45_1;
1588
+ protoOf(CachedFormatStructure).d53 = function () {
1589
+ return this.b53_1;
1060
1590
  };
1061
- protoOf(CachedFormatStructure).t47 = function () {
1062
- return this.s45_1;
1591
+ protoOf(CachedFormatStructure).f53 = function () {
1592
+ return this.c53_1;
1063
1593
  };
1064
1594
  function BasicFormatStructure(directive) {
1065
- this.e49_1 = directive;
1595
+ this.c57_1 = directive;
1066
1596
  }
1067
1597
  protoOf(BasicFormatStructure).toString = function () {
1068
- return 'BasicFormatStructure(' + toString(this.e49_1) + ')';
1598
+ return 'BasicFormatStructure(' + toString(this.c57_1) + ')';
1069
1599
  };
1070
1600
  protoOf(BasicFormatStructure).equals = function (other) {
1071
1601
  var tmp;
1072
1602
  if (other instanceof BasicFormatStructure) {
1073
- tmp = equals(this.e49_1, other.e49_1);
1603
+ tmp = equals(this.c57_1, other.c57_1);
1074
1604
  } else {
1075
1605
  tmp = false;
1076
1606
  }
1077
1607
  return tmp;
1078
1608
  };
1079
1609
  protoOf(BasicFormatStructure).hashCode = function () {
1080
- return hashCode(this.e49_1);
1610
+ return hashCode(this.c57_1);
1081
1611
  };
1082
- protoOf(BasicFormatStructure).t47 = function () {
1083
- return this.e49_1.t47();
1612
+ protoOf(BasicFormatStructure).f53 = function () {
1613
+ return this.c57_1.f53();
1084
1614
  };
1085
- protoOf(BasicFormatStructure).t45 = function () {
1086
- return this.e49_1.t45();
1615
+ protoOf(BasicFormatStructure).d53 = function () {
1616
+ return this.c57_1.d53();
1087
1617
  };
1088
1618
  function ConstantFormatStructure(string) {
1089
- this.f49_1 = string;
1619
+ this.d57_1 = string;
1090
1620
  }
1091
1621
  protoOf(ConstantFormatStructure).toString = function () {
1092
- return 'ConstantFormatStructure(' + this.f49_1 + ')';
1622
+ return 'ConstantFormatStructure(' + this.d57_1 + ')';
1093
1623
  };
1094
1624
  protoOf(ConstantFormatStructure).equals = function (other) {
1095
1625
  var tmp;
1096
1626
  if (other instanceof ConstantFormatStructure) {
1097
- tmp = this.f49_1 === other.f49_1;
1627
+ tmp = this.d57_1 === other.d57_1;
1098
1628
  } else {
1099
1629
  tmp = false;
1100
1630
  }
1101
1631
  return tmp;
1102
1632
  };
1103
1633
  protoOf(ConstantFormatStructure).hashCode = function () {
1104
- return getStringHashCode(this.f49_1);
1634
+ return getStringHashCode(this.d57_1);
1105
1635
  };
1106
- protoOf(ConstantFormatStructure).t47 = function () {
1636
+ protoOf(ConstantFormatStructure).f53 = function () {
1107
1637
  var tmp;
1108
1638
  // Inline function 'kotlin.text.isEmpty' call
1109
- var this_0 = this.f49_1;
1639
+ var this_0 = this.d57_1;
1110
1640
  if (charSequenceLength(this_0) === 0) {
1111
1641
  tmp = emptyList();
1112
1642
  } else {
@@ -1115,8 +1645,8 @@
1115
1645
  // Inline function 'kotlin.apply' call
1116
1646
  var this_1 = ArrayList_init_$Create$();
1117
1647
  var tmp_0;
1118
- if (isAsciiDigit(charCodeAt(this.f49_1, 0))) {
1119
- var tmp0 = this.f49_1;
1648
+ if (isAsciiDigit(charCodeAt(this.d57_1, 0))) {
1649
+ var tmp0 = this.d57_1;
1120
1650
  var tmp$ret$2;
1121
1651
  $l$block: {
1122
1652
  // Inline function 'kotlin.text.takeWhile' call
@@ -1135,8 +1665,8 @@
1135
1665
  while (inductionVariable < last);
1136
1666
  tmp$ret$2 = tmp0;
1137
1667
  }
1138
- this_1.z(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$2))));
1139
- var tmp0_0 = this.f49_1;
1668
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$2))));
1669
+ var tmp0_0 = this.d57_1;
1140
1670
  var tmp$ret$4;
1141
1671
  $l$block_0: {
1142
1672
  // Inline function 'kotlin.text.dropWhile' call
@@ -1157,7 +1687,7 @@
1157
1687
  }
1158
1688
  tmp_0 = tmp$ret$4;
1159
1689
  } else {
1160
- tmp_0 = this.f49_1;
1690
+ tmp_0 = this.d57_1;
1161
1691
  }
1162
1692
  var suffix = tmp_0;
1163
1693
  // Inline function 'kotlin.text.isNotEmpty' call
@@ -1180,7 +1710,7 @@
1180
1710
  while (0 <= inductionVariable_1);
1181
1711
  tmp$ret$7 = '';
1182
1712
  }
1183
- this_1.z(new PlainStringParserOperation(tmp$ret$7));
1713
+ this_1.e1(new PlainStringParserOperation(tmp$ret$7));
1184
1714
  var tmp$ret$9;
1185
1715
  $l$block_2: {
1186
1716
  // Inline function 'kotlin.text.takeLastWhile' call
@@ -1198,63 +1728,63 @@
1198
1728
  while (0 <= inductionVariable_2);
1199
1729
  tmp$ret$9 = suffix;
1200
1730
  }
1201
- this_1.z(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$9))));
1731
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$9))));
1202
1732
  } else {
1203
- this_1.z(new PlainStringParserOperation(suffix));
1733
+ this_1.e1(new PlainStringParserOperation(suffix));
1204
1734
  }
1205
1735
  }
1206
- tmp = this_1.d3();
1736
+ tmp = this_1.j3();
1207
1737
  }
1208
1738
  return new ParserStructure(tmp, emptyList());
1209
1739
  };
1210
- protoOf(ConstantFormatStructure).t45 = function () {
1211
- return new ConstantStringFormatterStructure(this.f49_1);
1740
+ protoOf(ConstantFormatStructure).d53 = function () {
1741
+ return new ConstantStringFormatterStructure(this.d57_1);
1212
1742
  };
1213
1743
  function ConcatenatedFormatStructure(formats) {
1214
- this.f46_1 = formats;
1744
+ this.q53_1 = formats;
1215
1745
  }
1216
1746
  protoOf(ConcatenatedFormatStructure).toString = function () {
1217
- return 'ConcatenatedFormatStructure(' + joinToString(this.f46_1, ', ') + ')';
1747
+ return 'ConcatenatedFormatStructure(' + joinToString(this.q53_1, ', ') + ')';
1218
1748
  };
1219
1749
  protoOf(ConcatenatedFormatStructure).equals = function (other) {
1220
1750
  var tmp;
1221
1751
  if (other instanceof ConcatenatedFormatStructure) {
1222
- tmp = equals(this.f46_1, other.f46_1);
1752
+ tmp = equals(this.q53_1, other.q53_1);
1223
1753
  } else {
1224
1754
  tmp = false;
1225
1755
  }
1226
1756
  return tmp;
1227
1757
  };
1228
1758
  protoOf(ConcatenatedFormatStructure).hashCode = function () {
1229
- return hashCode(this.f46_1);
1759
+ return hashCode(this.q53_1);
1230
1760
  };
1231
- protoOf(ConcatenatedFormatStructure).t47 = function () {
1761
+ protoOf(ConcatenatedFormatStructure).f53 = function () {
1232
1762
  // Inline function 'kotlin.collections.map' call
1233
- var this_0 = this.f46_1;
1763
+ var this_0 = this.q53_1;
1234
1764
  // Inline function 'kotlin.collections.mapTo' call
1235
1765
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1236
- var _iterator__ex2g4s = this_0.r();
1237
- while (_iterator__ex2g4s.s()) {
1238
- var item = _iterator__ex2g4s.t();
1239
- var tmp$ret$0 = item.t47();
1240
- destination.z(tmp$ret$0);
1766
+ var _iterator__ex2g4s = this_0.t();
1767
+ while (_iterator__ex2g4s.u()) {
1768
+ var item = _iterator__ex2g4s.v();
1769
+ var tmp$ret$0 = item.f53();
1770
+ destination.e1(tmp$ret$0);
1241
1771
  }
1242
1772
  return concat(destination);
1243
1773
  };
1244
- protoOf(ConcatenatedFormatStructure).t45 = function () {
1774
+ protoOf(ConcatenatedFormatStructure).d53 = function () {
1245
1775
  // Inline function 'kotlin.collections.map' call
1246
- var this_0 = this.f46_1;
1776
+ var this_0 = this.q53_1;
1247
1777
  // Inline function 'kotlin.collections.mapTo' call
1248
1778
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1249
- var _iterator__ex2g4s = this_0.r();
1250
- while (_iterator__ex2g4s.s()) {
1251
- var item = _iterator__ex2g4s.t();
1252
- var tmp$ret$0 = item.t45();
1253
- destination.z(tmp$ret$0);
1779
+ var _iterator__ex2g4s = this_0.t();
1780
+ while (_iterator__ex2g4s.u()) {
1781
+ var item = _iterator__ex2g4s.v();
1782
+ var tmp$ret$0 = item.d53();
1783
+ destination.e1(tmp$ret$0);
1254
1784
  }
1255
1785
  var formatters = destination;
1256
1786
  var tmp;
1257
- if (formatters.b1() === 1) {
1787
+ if (formatters.g1() === 1) {
1258
1788
  tmp = single(formatters);
1259
1789
  } else {
1260
1790
  tmp = new ConcatenatedFormatter(formatters);
@@ -1266,142 +1796,408 @@
1266
1796
  function FormatterStructure() {
1267
1797
  }
1268
1798
  function SpacePaddedFormatter(formatter, padding) {
1269
- this.h49_1 = formatter;
1270
- this.i49_1 = padding;
1799
+ this.f57_1 = formatter;
1800
+ this.g57_1 = padding;
1271
1801
  }
1272
- protoOf(SpacePaddedFormatter).g49 = function (obj, builder, minusNotRequired) {
1802
+ protoOf(SpacePaddedFormatter).e57 = function (obj, builder, minusNotRequired) {
1273
1803
  // Inline function 'kotlin.let' call
1274
1804
  var it = StringBuilder_init_$Create$();
1275
- this.h49_1.g49(obj, it, minusNotRequired);
1805
+ this.f57_1.e57(obj, it, minusNotRequired);
1276
1806
  var string = it.toString();
1277
1807
  // Inline function 'kotlin.repeat' call
1278
- var times = this.i49_1 - string.length | 0;
1808
+ var times = this.g57_1 - string.length | 0;
1279
1809
  var inductionVariable = 0;
1280
1810
  if (inductionVariable < times)
1281
1811
  do {
1282
1812
  var index = inductionVariable;
1283
1813
  inductionVariable = inductionVariable + 1 | 0;
1284
- builder.q(_Char___init__impl__6a9atx(32));
1814
+ builder.s(_Char___init__impl__6a9atx(32));
1285
1815
  }
1286
1816
  while (inductionVariable < times);
1287
- builder.a1(string);
1817
+ builder.f1(string);
1288
1818
  };
1289
1819
  function ConcatenatedFormatter(formatters) {
1290
- this.j49_1 = formatters;
1820
+ this.h57_1 = formatters;
1291
1821
  }
1292
- protoOf(ConcatenatedFormatter).g49 = function (obj, builder, minusNotRequired) {
1293
- var _iterator__ex2g4s = this.j49_1.r();
1294
- while (_iterator__ex2g4s.s()) {
1295
- var formatter = _iterator__ex2g4s.t();
1296
- formatter.g49(obj, builder, minusNotRequired);
1822
+ protoOf(ConcatenatedFormatter).e57 = function (obj, builder, minusNotRequired) {
1823
+ var _iterator__ex2g4s = this.h57_1.t();
1824
+ while (_iterator__ex2g4s.u()) {
1825
+ var formatter = _iterator__ex2g4s.v();
1826
+ formatter.e57(obj, builder, minusNotRequired);
1297
1827
  }
1298
1828
  };
1299
1829
  function UnsignedIntFormatterStructure(number, zeroPadding) {
1300
- this.k49_1 = number;
1301
- this.l49_1 = zeroPadding;
1830
+ this.i57_1 = number;
1831
+ this.j57_1 = zeroPadding;
1302
1832
  // Inline function 'kotlin.require' call
1303
- if (!(this.l49_1 >= 0)) {
1304
- var message = 'The minimum number of digits (' + this.l49_1 + ') is negative';
1833
+ if (!(this.j57_1 >= 0)) {
1834
+ var message = 'The minimum number of digits (' + this.j57_1 + ') is negative';
1305
1835
  throw IllegalArgumentException_init_$Create$(toString(message));
1306
1836
  }
1307
1837
  // Inline function 'kotlin.require' call
1308
- if (!(this.l49_1 <= 9)) {
1309
- var message_0 = 'The minimum number of digits (' + this.l49_1 + ') exceeds the length of an Int';
1838
+ if (!(this.j57_1 <= 9)) {
1839
+ var message_0 = 'The minimum number of digits (' + this.j57_1 + ') exceeds the length of an Int';
1310
1840
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1311
1841
  }
1312
1842
  }
1313
- protoOf(UnsignedIntFormatterStructure).g49 = function (obj, builder, minusNotRequired) {
1314
- var num = this.k49_1(obj);
1843
+ protoOf(UnsignedIntFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1844
+ var num = this.i57_1(obj);
1315
1845
  var numberStr = num.toString();
1316
1846
  // Inline function 'kotlin.repeat' call
1317
- var times = this.l49_1 - numberStr.length | 0;
1847
+ var times = this.j57_1 - numberStr.length | 0;
1318
1848
  var inductionVariable = 0;
1319
1849
  if (inductionVariable < times)
1320
1850
  do {
1321
1851
  var index = inductionVariable;
1322
1852
  inductionVariable = inductionVariable + 1 | 0;
1323
- builder.q(_Char___init__impl__6a9atx(48));
1853
+ builder.s(_Char___init__impl__6a9atx(48));
1324
1854
  }
1325
1855
  while (inductionVariable < times);
1326
- builder.a1(numberStr);
1856
+ builder.f1(numberStr);
1327
1857
  };
1328
1858
  function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
1329
- this.m49_1 = number;
1330
- this.n49_1 = zeroPadding;
1331
- this.o49_1 = outputPlusOnExceededWidth;
1859
+ this.k57_1 = number;
1860
+ this.l57_1 = zeroPadding;
1861
+ this.m57_1 = outputPlusOnExceededWidth;
1332
1862
  // Inline function 'kotlin.require' call
1333
- if (!(this.n49_1 >= 0)) {
1334
- var message = 'The minimum number of digits (' + this.n49_1 + ') is negative';
1863
+ if (!(this.l57_1 >= 0)) {
1864
+ var message = 'The minimum number of digits (' + this.l57_1 + ') is negative';
1335
1865
  throw IllegalArgumentException_init_$Create$(toString(message));
1336
1866
  }
1337
1867
  // Inline function 'kotlin.require' call
1338
- if (!(this.n49_1 <= 9)) {
1339
- var message_0 = 'The minimum number of digits (' + this.n49_1 + ') exceeds the length of an Int';
1868
+ if (!(this.l57_1 <= 9)) {
1869
+ var message_0 = 'The minimum number of digits (' + this.l57_1 + ') exceeds the length of an Int';
1340
1870
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1341
1871
  }
1342
1872
  }
1343
- protoOf(SignedIntFormatterStructure).g49 = function (obj, builder, minusNotRequired) {
1873
+ protoOf(SignedIntFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1344
1874
  var innerBuilder = StringBuilder_init_$Create$();
1345
1875
  // Inline function 'kotlin.let' call
1346
- var it = this.m49_1(obj);
1876
+ var it = this.k57_1(obj);
1347
1877
  var number = minusNotRequired && it < 0 ? -it | 0 : it;
1348
- if (!(this.o49_1 == null) && number >= get_POWERS_OF_TEN()[this.o49_1]) {
1349
- innerBuilder.q(_Char___init__impl__6a9atx(43));
1878
+ if (!(this.m57_1 == null) && number >= get_POWERS_OF_TEN()[this.m57_1]) {
1879
+ innerBuilder.s(_Char___init__impl__6a9atx(43));
1350
1880
  }
1351
1881
  // Inline function 'kotlin.math.absoluteValue' call
1352
- if (abs(number) < get_POWERS_OF_TEN()[this.n49_1 - 1 | 0]) {
1882
+ if (abs(number) < get_POWERS_OF_TEN()[this.l57_1 - 1 | 0]) {
1353
1883
  if (number >= 0) {
1354
- innerBuilder.ob(number + get_POWERS_OF_TEN()[this.n49_1] | 0).rb(0);
1884
+ innerBuilder.vb(number + get_POWERS_OF_TEN()[this.l57_1] | 0).ac(0);
1355
1885
  } else {
1356
- innerBuilder.ob(number - get_POWERS_OF_TEN()[this.n49_1] | 0).rb(1);
1886
+ innerBuilder.vb(number - get_POWERS_OF_TEN()[this.l57_1] | 0).ac(1);
1357
1887
  }
1358
1888
  } else {
1359
- innerBuilder.ob(number);
1889
+ innerBuilder.vb(number);
1360
1890
  }
1361
- builder.a1(innerBuilder);
1891
+ builder.f1(innerBuilder);
1362
1892
  };
1363
1893
  function ConstantStringFormatterStructure(string) {
1364
- this.p49_1 = string;
1894
+ this.n57_1 = string;
1365
1895
  }
1366
- protoOf(ConstantStringFormatterStructure).g49 = function (obj, builder, minusNotRequired) {
1367
- builder.a1(this.p49_1);
1896
+ protoOf(ConstantStringFormatterStructure).e57 = function (obj, builder, minusNotRequired) {
1897
+ builder.f1(this.n57_1);
1368
1898
  };
1369
1899
  function ConstantNumberConsumer(expected) {
1370
1900
  NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
1371
- this.s49_1 = expected;
1901
+ this.q57_1 = expected;
1372
1902
  }
1903
+ protoOf(ConstantNumberConsumer).r57 = function (storage, input, start, end) {
1904
+ var tmp;
1905
+ // Inline function 'kotlin.text.substring' call
1906
+ if (toString(charSequenceSubSequence(input, start, end)) === this.q57_1) {
1907
+ tmp = null;
1908
+ } else {
1909
+ tmp = new WrongConstant(this.q57_1);
1910
+ }
1911
+ return tmp;
1912
+ };
1373
1913
  function NumberConsumer(length, whatThisExpects) {
1374
- this.t49_1 = length;
1375
- this.u49_1 = whatThisExpects;
1914
+ this.s57_1 = length;
1915
+ this.t57_1 = whatThisExpects;
1376
1916
  }
1377
1917
  protoOf(NumberConsumer).a = function () {
1378
- return this.t49_1;
1918
+ return this.s57_1;
1919
+ };
1920
+ function ExpectedInt() {
1921
+ }
1922
+ protoOf(ExpectedInt).u57 = function () {
1923
+ return 'expected an Int value';
1379
1924
  };
1925
+ var ExpectedInt_instance;
1926
+ function ExpectedInt_getInstance() {
1927
+ return ExpectedInt_instance;
1928
+ }
1929
+ function TooManyDigits(maxDigits) {
1930
+ this.v57_1 = maxDigits;
1931
+ }
1932
+ protoOf(TooManyDigits).u57 = function () {
1933
+ return 'expected at most ' + this.v57_1 + ' digits';
1934
+ };
1935
+ function TooFewDigits(minDigits) {
1936
+ this.w57_1 = minDigits;
1937
+ }
1938
+ protoOf(TooFewDigits).u57 = function () {
1939
+ return 'expected at least ' + this.w57_1 + ' digits';
1940
+ };
1941
+ function WrongConstant(expected) {
1942
+ this.x57_1 = expected;
1943
+ }
1944
+ protoOf(WrongConstant).u57 = function () {
1945
+ return "expected '" + this.x57_1 + "'";
1946
+ };
1947
+ function Conflicting(conflicting) {
1948
+ this.y57_1 = conflicting;
1949
+ }
1950
+ protoOf(Conflicting).u57 = function () {
1951
+ return "attempted to overwrite the existing value '" + toString(this.y57_1) + "'";
1952
+ };
1953
+ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
1954
+ var tmp0_elvis_lhs = _this__u8e3s4.a57(receiver, value);
1955
+ var tmp;
1956
+ if (tmp0_elvis_lhs == null) {
1957
+ return null;
1958
+ } else {
1959
+ tmp = tmp0_elvis_lhs;
1960
+ }
1961
+ var conflictingValue = tmp;
1962
+ return new Conflicting(conflictingValue);
1963
+ }
1380
1964
  function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
1381
1965
  multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
1382
1966
  NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
1383
- this.x49_1 = minLength;
1384
- this.y49_1 = maxLength;
1385
- this.z49_1 = setter;
1386
- this.a4a_1 = multiplyByMinus1;
1967
+ this.b58_1 = minLength;
1968
+ this.c58_1 = maxLength;
1969
+ this.d58_1 = setter;
1970
+ this.e58_1 = multiplyByMinus1;
1387
1971
  // Inline function 'kotlin.require' call
1388
- if (!(this.a() == null || numberRangeToNumber(1, 9).ah(this.a()))) {
1389
- var message = 'Invalid length for field ' + this.u49_1 + ': ' + this.a();
1972
+ if (!(this.a() == null || numberRangeToNumber(1, 9).lh(this.a()))) {
1973
+ var message = 'Invalid length for field ' + this.t57_1 + ': ' + this.a();
1390
1974
  throw IllegalArgumentException_init_$Create$(toString(message));
1391
1975
  }
1392
1976
  }
1977
+ protoOf(UnsignedIntConsumer).r57 = function (storage, input, start, end) {
1978
+ var tmp;
1979
+ if (!(this.c58_1 == null) && (end - start | 0) > this.c58_1) {
1980
+ tmp = new TooManyDigits(this.c58_1);
1981
+ } else if (!(this.b58_1 == null) && (end - start | 0) < this.b58_1) {
1982
+ tmp = new TooFewDigits(this.b58_1);
1983
+ } else {
1984
+ var result = parseAsciiIntOrNull(input, start, end);
1985
+ tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.d58_1, storage, this.e58_1 ? -result | 0 : result);
1986
+ }
1987
+ return tmp;
1988
+ };
1989
+ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
1990
+ var result = 0;
1991
+ var inductionVariable = start;
1992
+ if (inductionVariable < end)
1993
+ do {
1994
+ var i = inductionVariable;
1995
+ inductionVariable = inductionVariable + 1 | 0;
1996
+ var digit = charSequenceGet(_this__u8e3s4, i);
1997
+ result = imul(result, 10) + asciiDigitToInt(digit) | 0;
1998
+ if (result < 0)
1999
+ return null;
2000
+ }
2001
+ while (inductionVariable < end);
2002
+ return result;
2003
+ }
2004
+ function ParseError(position, message) {
2005
+ this.f58_1 = position;
2006
+ this.g58_1 = message;
2007
+ }
2008
+ function _ParseResult___init__impl__gvz3cn(value) {
2009
+ return value;
2010
+ }
2011
+ function _ParseResult___get_value__impl__86mnxf($this) {
2012
+ return $this;
2013
+ }
2014
+ function Companion_6() {
2015
+ }
2016
+ protoOf(Companion_6).h58 = function (indexOfNextUnparsed) {
2017
+ return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
2018
+ };
2019
+ protoOf(Companion_6).i58 = function (position, message) {
2020
+ return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
2021
+ };
2022
+ var Companion_instance_6;
2023
+ function Companion_getInstance_6() {
2024
+ return Companion_instance_6;
2025
+ }
2026
+ function _Parser___init__impl__gdyfby(commands) {
2027
+ return commands;
2028
+ }
2029
+ function _get_commands__a20n1($this) {
2030
+ return $this;
2031
+ }
2032
+ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
2033
+ // Inline function 'kotlin.collections.mutableListOf' call
2034
+ var errors = ArrayList_init_$Create$();
2035
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.parse' call
2036
+ var parseOptions = mutableListOf([new ParserState(initialContainer, _get_commands__a20n1($this), startIndex)]);
2037
+ iterate_over_alternatives: while (true) {
2038
+ var tmp0_elvis_lhs = removeLastOrNull(parseOptions);
2039
+ var tmp;
2040
+ if (tmp0_elvis_lhs == null) {
2041
+ break iterate_over_alternatives;
2042
+ } else {
2043
+ tmp = tmp0_elvis_lhs;
2044
+ }
2045
+ var state = tmp;
2046
+ var output = state.j58_1.l54();
2047
+ var inputPosition = state.l58_1;
2048
+ var parserStructure = state.k58_1;
2049
+ // Inline function 'kotlin.run' call
2050
+ $l$block: {
2051
+ var inductionVariable = 0;
2052
+ var last = parserStructure.n58_1.g1() - 1 | 0;
2053
+ if (inductionVariable <= last)
2054
+ do {
2055
+ var ix = inductionVariable;
2056
+ inductionVariable = inductionVariable + 1 | 0;
2057
+ // Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
2058
+ var this_0 = parserStructure.n58_1.h1(ix).p58(output, input, inputPosition);
2059
+ var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_0);
2060
+ if (typeof tmp0_subject === 'number') {
2061
+ inputPosition = _ParseResult___get_value__impl__86mnxf(this_0);
2062
+ } else {
2063
+ if (tmp0_subject instanceof ParseError) {
2064
+ var it = _ParseResult___get_value__impl__86mnxf(this_0);
2065
+ errors.e1(it);
2066
+ break $l$block;
2067
+ } else {
2068
+ // Inline function 'kotlin.error' call
2069
+ var message = 'Unexpected parse result: ' + toString(_ParseResult___get_value__impl__86mnxf(this_0));
2070
+ throw IllegalStateException_init_$Create$(toString(message));
2071
+ }
2072
+ }
2073
+ }
2074
+ while (inductionVariable <= last);
2075
+ if (parserStructure.o58_1.r()) {
2076
+ if (false || inputPosition === charSequenceLength(input)) {
2077
+ return output;
2078
+ } else {
2079
+ var tmp_0 = inputPosition;
2080
+ var it_0 = new ParseError(tmp_0, Parser$match$lambda);
2081
+ errors.e1(it_0);
2082
+ }
2083
+ } else {
2084
+ var inductionVariable_0 = parserStructure.o58_1.g1() - 1 | 0;
2085
+ if (0 <= inductionVariable_0)
2086
+ do {
2087
+ var ix_0 = inductionVariable_0;
2088
+ inductionVariable_0 = inductionVariable_0 + -1 | 0;
2089
+ parseOptions.e1(new ParserState(output, parserStructure.o58_1.h1(ix_0), inputPosition));
2090
+ }
2091
+ while (0 <= inductionVariable_0);
2092
+ }
2093
+ }
2094
+ }
2095
+ // Inline function 'kotlin.collections.sortByDescending' call
2096
+ if (errors.g1() > 1) {
2097
+ // Inline function 'kotlin.comparisons.compareByDescending' call
2098
+ var tmp_1 = Parser$match$lambda_0;
2099
+ var tmp$ret$8 = new sam$kotlin_Comparator$0(tmp_1);
2100
+ sortWith(errors, tmp$ret$8);
2101
+ }
2102
+ throw new ParseException(errors);
2103
+ }
2104
+ function Parser__match$default_impl_x2xlti($this, input, initialContainer, startIndex, $super) {
2105
+ startIndex = startIndex === VOID ? 0 : startIndex;
2106
+ var tmp;
2107
+ if ($super === VOID) {
2108
+ tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
2109
+ } else {
2110
+ var tmp_0 = $super;
2111
+ tmp = (tmp_0 == null ? null : new Parser(tmp_0)).q58.call(new Parser($this), input, initialContainer, startIndex);
2112
+ }
2113
+ return tmp;
2114
+ }
2115
+ function ParserState(output, parserStructure, inputPosition) {
2116
+ this.j58_1 = output;
2117
+ this.k58_1 = parserStructure;
2118
+ this.l58_1 = inputPosition;
2119
+ }
2120
+ function Parser__toString_impl_x33iea($this) {
2121
+ return 'Parser(commands=' + $this.toString() + ')';
2122
+ }
2123
+ function Parser__hashCode_impl_bbxllf($this) {
2124
+ return hashCode($this);
2125
+ }
2126
+ function Parser__equals_impl_djxokv($this, other) {
2127
+ if (!(other instanceof Parser))
2128
+ return false;
2129
+ var tmp0_other_with_cast = other instanceof Parser ? other.m58_1 : THROW_CCE();
2130
+ if (!equals($this, tmp0_other_with_cast))
2131
+ return false;
2132
+ return true;
2133
+ }
2134
+ function sam$kotlin_Comparator$0(function_0) {
2135
+ this.r58_1 = function_0;
2136
+ }
2137
+ protoOf(sam$kotlin_Comparator$0).ic = function (a, b) {
2138
+ return this.r58_1(a, b);
2139
+ };
2140
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
2141
+ return this.ic(a, b);
2142
+ };
2143
+ protoOf(sam$kotlin_Comparator$0).g3 = function () {
2144
+ return this.r58_1;
2145
+ };
2146
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
2147
+ var tmp;
2148
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
2149
+ var tmp_0;
2150
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
2151
+ tmp_0 = equals(this.g3(), other.g3());
2152
+ } else {
2153
+ tmp_0 = false;
2154
+ }
2155
+ tmp = tmp_0;
2156
+ } else {
2157
+ tmp = false;
2158
+ }
2159
+ return tmp;
2160
+ };
2161
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
2162
+ return hashCode(this.g3());
2163
+ };
2164
+ function Parser$match$lambda() {
2165
+ return 'There is more input to consume';
2166
+ }
2167
+ function Parser$match$lambda_0(a, b) {
2168
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
2169
+ var tmp = b.f58_1;
2170
+ var tmp$ret$1 = a.f58_1;
2171
+ return compareValues(tmp, tmp$ret$1);
2172
+ }
2173
+ function Parser(commands) {
2174
+ this.m58_1 = commands;
2175
+ }
2176
+ protoOf(Parser).toString = function () {
2177
+ return Parser__toString_impl_x33iea(this.m58_1);
2178
+ };
2179
+ protoOf(Parser).hashCode = function () {
2180
+ return Parser__hashCode_impl_bbxllf(this.m58_1);
2181
+ };
2182
+ protoOf(Parser).equals = function (other) {
2183
+ return Parser__equals_impl_djxokv(this.m58_1, other);
2184
+ };
1393
2185
  function ParserStructure(operations, followedBy) {
1394
- this.b4a_1 = operations;
1395
- this.c4a_1 = followedBy;
2186
+ this.n58_1 = operations;
2187
+ this.o58_1 = followedBy;
1396
2188
  }
1397
2189
  protoOf(ParserStructure).toString = function () {
1398
- return joinToString(this.b4a_1, ', ') + '(' + joinToString(this.c4a_1, ';') + ')';
2190
+ return joinToString(this.n58_1, ', ') + '(' + joinToString(this.o58_1, ';') + ')';
1399
2191
  };
2192
+ function ParseException(errors) {
2193
+ Exception_init_$Init$(formatError(errors), this);
2194
+ captureStack(this, ParseException);
2195
+ }
1400
2196
  function concat(_this__u8e3s4) {
1401
2197
  // Inline function 'kotlin.collections.foldRight' call
1402
2198
  var accumulator = new ParserStructure(emptyList(), emptyList());
1403
- if (!_this__u8e3s4.p()) {
1404
- var iterator = _this__u8e3s4.d1(_this__u8e3s4.b1());
2199
+ if (!_this__u8e3s4.r()) {
2200
+ var iterator = _this__u8e3s4.i1(_this__u8e3s4.g1());
1405
2201
  while (iterator.m4()) {
1406
2202
  var tmp0 = iterator.o4();
1407
2203
  var acc = accumulator;
@@ -1411,22 +2207,30 @@
1411
2207
  var naiveParser = accumulator;
1412
2208
  return concat$simplify(naiveParser, emptyList());
1413
2209
  }
2210
+ function formatError(errors) {
2211
+ if (errors.g1() === 1) {
2212
+ return 'Position ' + errors.h1(0).f58_1 + ': ' + errors.h1(0).g58_1();
2213
+ }
2214
+ var averageMessageLength = 33;
2215
+ var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.g1()));
2216
+ return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
2217
+ }
1414
2218
  function concat$append(_this__u8e3s4, other) {
1415
2219
  var tmp;
1416
- if (_this__u8e3s4.c4a_1.p()) {
1417
- tmp = new ParserStructure(plus(_this__u8e3s4.b4a_1, other.b4a_1), other.c4a_1);
2220
+ if (_this__u8e3s4.o58_1.r()) {
2221
+ tmp = new ParserStructure(plus(_this__u8e3s4.n58_1, other.n58_1), other.o58_1);
1418
2222
  } else {
1419
2223
  // Inline function 'kotlin.collections.map' call
1420
- var this_0 = _this__u8e3s4.c4a_1;
2224
+ var this_0 = _this__u8e3s4.o58_1;
1421
2225
  // Inline function 'kotlin.collections.mapTo' call
1422
2226
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1423
- var _iterator__ex2g4s = this_0.r();
1424
- while (_iterator__ex2g4s.s()) {
1425
- var item = _iterator__ex2g4s.t();
2227
+ var _iterator__ex2g4s = this_0.t();
2228
+ while (_iterator__ex2g4s.u()) {
2229
+ var item = _iterator__ex2g4s.v();
1426
2230
  var tmp$ret$0 = concat$append(item, other);
1427
- destination.z(tmp$ret$0);
2231
+ destination.e1(tmp$ret$0);
1428
2232
  }
1429
- tmp = new ParserStructure(_this__u8e3s4.b4a_1, destination);
2233
+ tmp = new ParserStructure(_this__u8e3s4.n58_1, destination);
1430
2234
  }
1431
2235
  return tmp;
1432
2236
  }
@@ -1435,41 +2239,41 @@
1435
2239
  var newOperations = ArrayList_init_$Create$();
1436
2240
  var currentNumberSpan = null;
1437
2241
  var unconditionalModificationsForTails = toMutableList(unconditionalModifications);
1438
- var _iterator__ex2g4s = _this__u8e3s4.b4a_1.r();
1439
- while (_iterator__ex2g4s.s()) {
1440
- var op = _iterator__ex2g4s.t();
2242
+ var _iterator__ex2g4s = _this__u8e3s4.n58_1.t();
2243
+ while (_iterator__ex2g4s.u()) {
2244
+ var op = _iterator__ex2g4s.v();
1441
2245
  if (op instanceof NumberSpanParserOperation) {
1442
2246
  if (!(currentNumberSpan == null)) {
1443
- currentNumberSpan.h1(op.d4a_1);
2247
+ currentNumberSpan.j1(op.s58_1);
1444
2248
  } else {
1445
- currentNumberSpan = toMutableList(op.d4a_1);
2249
+ currentNumberSpan = toMutableList(op.s58_1);
1446
2250
  }
1447
2251
  } else {
1448
2252
  if (op instanceof UnconditionalModification) {
1449
- unconditionalModificationsForTails.z(op);
2253
+ unconditionalModificationsForTails.e1(op);
1450
2254
  } else {
1451
2255
  if (!(currentNumberSpan == null)) {
1452
- newOperations.z(new NumberSpanParserOperation(currentNumberSpan));
2256
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
1453
2257
  currentNumberSpan = null;
1454
2258
  }
1455
- newOperations.z(op);
2259
+ newOperations.e1(op);
1456
2260
  }
1457
2261
  }
1458
2262
  }
1459
2263
  // Inline function 'kotlin.collections.flatMap' call
1460
- var tmp0 = _this__u8e3s4.c4a_1;
2264
+ var tmp0 = _this__u8e3s4.o58_1;
1461
2265
  // Inline function 'kotlin.collections.flatMapTo' call
1462
2266
  var destination = ArrayList_init_$Create$();
1463
- var _iterator__ex2g4s_0 = tmp0.r();
1464
- while (_iterator__ex2g4s_0.s()) {
1465
- var element = _iterator__ex2g4s_0.t();
2267
+ var _iterator__ex2g4s_0 = tmp0.t();
2268
+ while (_iterator__ex2g4s_0.u()) {
2269
+ var element = _iterator__ex2g4s_0.v();
1466
2270
  var simplified = concat$simplify(element, unconditionalModificationsForTails);
1467
2271
  var tmp;
1468
- if (simplified.b4a_1.p()) {
2272
+ if (simplified.n58_1.r()) {
1469
2273
  // Inline function 'kotlin.collections.ifEmpty' call
1470
- var this_0 = simplified.c4a_1;
2274
+ var this_0 = simplified.o58_1;
1471
2275
  var tmp_0;
1472
- if (this_0.p()) {
2276
+ if (this_0.r()) {
1473
2277
  tmp_0 = listOf(simplified);
1474
2278
  } else {
1475
2279
  tmp_0 = this_0;
@@ -1483,7 +2287,7 @@
1483
2287
  }
1484
2288
  // Inline function 'kotlin.collections.ifEmpty' call
1485
2289
  var tmp_1;
1486
- if (destination.p()) {
2290
+ if (destination.r()) {
1487
2291
  tmp_1 = listOf(new ParserStructure(unconditionalModificationsForTails, emptyList()));
1488
2292
  } else {
1489
2293
  tmp_1 = destination;
@@ -1498,7 +2302,7 @@
1498
2302
  // Inline function 'kotlin.collections.none' call
1499
2303
  var tmp_3;
1500
2304
  if (isInterface(mergedTails, Collection)) {
1501
- tmp_3 = mergedTails.p();
2305
+ tmp_3 = mergedTails.r();
1502
2306
  } else {
1503
2307
  tmp_3 = false;
1504
2308
  }
@@ -1506,10 +2310,10 @@
1506
2310
  tmp$ret$8 = true;
1507
2311
  break $l$block_0;
1508
2312
  }
1509
- var _iterator__ex2g4s_1 = mergedTails.r();
1510
- while (_iterator__ex2g4s_1.s()) {
1511
- var element_0 = _iterator__ex2g4s_1.t();
1512
- var tmp0_safe_receiver = firstOrNull(element_0.b4a_1);
2313
+ var _iterator__ex2g4s_1 = mergedTails.t();
2314
+ while (_iterator__ex2g4s_1.u()) {
2315
+ var element_0 = _iterator__ex2g4s_1.v();
2316
+ var tmp0_safe_receiver = firstOrNull(element_0.n58_1);
1513
2317
  var tmp_4;
1514
2318
  if (tmp0_safe_receiver == null) {
1515
2319
  tmp_4 = null;
@@ -1525,28 +2329,28 @@
1525
2329
  tmp$ret$8 = true;
1526
2330
  }
1527
2331
  if (tmp$ret$8) {
1528
- newOperations.z(new NumberSpanParserOperation(currentNumberSpan));
2332
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
1529
2333
  tmp_2 = new ParserStructure(newOperations, mergedTails);
1530
2334
  } else {
1531
2335
  // Inline function 'kotlin.collections.map' call
1532
2336
  // Inline function 'kotlin.collections.mapTo' call
1533
2337
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
1534
- var _iterator__ex2g4s_2 = mergedTails.r();
1535
- while (_iterator__ex2g4s_2.s()) {
1536
- var item = _iterator__ex2g4s_2.t();
1537
- var firstOperation = firstOrNull(item.b4a_1);
2338
+ var _iterator__ex2g4s_2 = mergedTails.t();
2339
+ while (_iterator__ex2g4s_2.u()) {
2340
+ var item = _iterator__ex2g4s_2.v();
2341
+ var firstOperation = firstOrNull(item.n58_1);
1538
2342
  var tmp_5;
1539
2343
  if (firstOperation instanceof NumberSpanParserOperation) {
1540
- tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.d4a_1))), drop(item.b4a_1, 1)), item.c4a_1);
2344
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.s58_1))), drop(item.n58_1, 1)), item.o58_1);
1541
2345
  } else {
1542
2346
  if (firstOperation == null) {
1543
- tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.c4a_1);
2347
+ tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.o58_1);
1544
2348
  } else {
1545
- tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.b4a_1), item.c4a_1);
2349
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.n58_1), item.o58_1);
1546
2350
  }
1547
2351
  }
1548
2352
  var tmp$ret$12 = tmp_5;
1549
- destination_0.z(tmp$ret$12);
2353
+ destination_0.e1(tmp$ret$12);
1550
2354
  }
1551
2355
  var newTails = destination_0;
1552
2356
  tmp_2 = new ParserStructure(newOperations, newTails);
@@ -1554,6 +2358,9 @@
1554
2358
  }
1555
2359
  return tmp_2;
1556
2360
  }
2361
+ function formatError$lambda(it) {
2362
+ return 'position ' + it.f58_1 + ": '" + it.g58_1() + "'";
2363
+ }
1557
2364
  function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
1558
2365
  withMinus = withMinus === VOID ? false : withMinus;
1559
2366
  var minNumberLength = (minDigits == null ? 1 : minDigits) + (withMinus ? 1 : 0) | 0;
@@ -1594,46 +2401,61 @@
1594
2401
  }
1595
2402
  function _get_whatThisExpects__4pg11j($this) {
1596
2403
  // Inline function 'kotlin.collections.map' call
1597
- var this_0 = $this.d4a_1;
2404
+ var this_0 = $this.s58_1;
1598
2405
  // Inline function 'kotlin.collections.mapTo' call
1599
2406
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1600
- var _iterator__ex2g4s = this_0.r();
1601
- while (_iterator__ex2g4s.s()) {
1602
- var item = _iterator__ex2g4s.t();
2407
+ var _iterator__ex2g4s = this_0.t();
2408
+ while (_iterator__ex2g4s.u()) {
2409
+ var item = _iterator__ex2g4s.v();
1603
2410
  var length = item.a();
1604
- var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.u49_1);
1605
- destination.z(tmp$ret$0);
2411
+ var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.t57_1);
2412
+ destination.e1(tmp$ret$0);
1606
2413
  }
1607
2414
  var consumerLengths = destination;
1608
2415
  var tmp;
1609
- if ($this.f4a_1) {
1610
- tmp = 'a number with at least ' + $this.e4a_1 + ' digits: ' + toString(consumerLengths);
2416
+ if ($this.u58_1) {
2417
+ tmp = 'a number with at least ' + $this.t58_1 + ' digits: ' + toString(consumerLengths);
1611
2418
  } else {
1612
- tmp = 'a number with exactly ' + $this.e4a_1 + ' digits: ' + toString(consumerLengths);
2419
+ tmp = 'a number with exactly ' + $this.t58_1 + ' digits: ' + toString(consumerLengths);
1613
2420
  }
1614
2421
  return tmp;
1615
2422
  }
2423
+ function NumberSpanParserOperation$consume$lambda(this$0) {
2424
+ return function () {
2425
+ return 'Unexpected end of input: yet to parse ' + _get_whatThisExpects__4pg11j(this$0);
2426
+ };
2427
+ }
2428
+ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
2429
+ return function () {
2430
+ return 'Only found ' + $digitsInRow._v + ' digits in a row, but need to parse ' + _get_whatThisExpects__4pg11j(this$0);
2431
+ };
2432
+ }
2433
+ function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
2434
+ return function () {
2435
+ return "Can not interpret the string '" + $numberString + "' as " + this$0.s58_1.h1($i).t57_1 + ': ' + $error.u57();
2436
+ };
2437
+ }
1616
2438
  function NumberSpanParserOperation(consumers) {
1617
- this.d4a_1 = consumers;
2439
+ this.s58_1 = consumers;
1618
2440
  var tmp = this;
1619
2441
  // Inline function 'kotlin.collections.sumOf' call
1620
2442
  var sum = 0;
1621
- var _iterator__ex2g4s = this.d4a_1.r();
1622
- while (_iterator__ex2g4s.s()) {
1623
- var element = _iterator__ex2g4s.t();
2443
+ var _iterator__ex2g4s = this.s58_1.t();
2444
+ while (_iterator__ex2g4s.u()) {
2445
+ var element = _iterator__ex2g4s.v();
1624
2446
  var tmp_0 = sum;
1625
2447
  var tmp0_elvis_lhs = element.a();
1626
2448
  sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
1627
2449
  }
1628
- tmp.e4a_1 = sum;
2450
+ tmp.t58_1 = sum;
1629
2451
  var tmp_1 = this;
1630
- var tmp0 = this.d4a_1;
2452
+ var tmp0 = this.s58_1;
1631
2453
  var tmp$ret$2;
1632
2454
  $l$block_0: {
1633
2455
  // Inline function 'kotlin.collections.any' call
1634
2456
  var tmp_2;
1635
2457
  if (isInterface(tmp0, Collection)) {
1636
- tmp_2 = tmp0.p();
2458
+ tmp_2 = tmp0.r();
1637
2459
  } else {
1638
2460
  tmp_2 = false;
1639
2461
  }
@@ -1641,9 +2463,9 @@
1641
2463
  tmp$ret$2 = false;
1642
2464
  break $l$block_0;
1643
2465
  }
1644
- var _iterator__ex2g4s_0 = tmp0.r();
1645
- while (_iterator__ex2g4s_0.s()) {
1646
- var element_0 = _iterator__ex2g4s_0.t();
2466
+ var _iterator__ex2g4s_0 = tmp0.t();
2467
+ while (_iterator__ex2g4s_0.u()) {
2468
+ var element_0 = _iterator__ex2g4s_0.v();
1647
2469
  if (element_0.a() == null) {
1648
2470
  tmp$ret$2 = true;
1649
2471
  break $l$block_0;
@@ -1651,14 +2473,14 @@
1651
2473
  }
1652
2474
  tmp$ret$2 = false;
1653
2475
  }
1654
- tmp_1.f4a_1 = tmp$ret$2;
1655
- var tmp0_0 = this.d4a_1;
2476
+ tmp_1.u58_1 = tmp$ret$2;
2477
+ var tmp0_0 = this.s58_1;
1656
2478
  var tmp$ret$4;
1657
2479
  $l$block_2: {
1658
2480
  // Inline function 'kotlin.collections.all' call
1659
2481
  var tmp_3;
1660
2482
  if (isInterface(tmp0_0, Collection)) {
1661
- tmp_3 = tmp0_0.p();
2483
+ tmp_3 = tmp0_0.r();
1662
2484
  } else {
1663
2485
  tmp_3 = false;
1664
2486
  }
@@ -1666,9 +2488,9 @@
1666
2488
  tmp$ret$4 = true;
1667
2489
  break $l$block_2;
1668
2490
  }
1669
- var _iterator__ex2g4s_1 = tmp0_0.r();
1670
- while (_iterator__ex2g4s_1.s()) {
1671
- var element_1 = _iterator__ex2g4s_1.t();
2491
+ var _iterator__ex2g4s_1 = tmp0_0.t();
2492
+ while (_iterator__ex2g4s_1.u()) {
2493
+ var element_1 = _iterator__ex2g4s_1.v();
1672
2494
  var tmp0_elvis_lhs_0 = element_1.a();
1673
2495
  if (!((tmp0_elvis_lhs_0 == null ? 2147483647 : tmp0_elvis_lhs_0) > 0)) {
1674
2496
  tmp$ret$4 = false;
@@ -1683,13 +2505,13 @@
1683
2505
  var message = 'Failed requirement.';
1684
2506
  throw IllegalArgumentException_init_$Create$(toString(message));
1685
2507
  }
1686
- var tmp0_1 = this.d4a_1;
2508
+ var tmp0_1 = this.s58_1;
1687
2509
  var tmp$ret$9;
1688
2510
  $l$block_3: {
1689
2511
  // Inline function 'kotlin.collections.count' call
1690
2512
  var tmp_4;
1691
2513
  if (isInterface(tmp0_1, Collection)) {
1692
- tmp_4 = tmp0_1.p();
2514
+ tmp_4 = tmp0_1.r();
1693
2515
  } else {
1694
2516
  tmp_4 = false;
1695
2517
  }
@@ -1698,9 +2520,9 @@
1698
2520
  break $l$block_3;
1699
2521
  }
1700
2522
  var count = 0;
1701
- var _iterator__ex2g4s_2 = tmp0_1.r();
1702
- while (_iterator__ex2g4s_2.s()) {
1703
- var element_2 = _iterator__ex2g4s_2.t();
2523
+ var _iterator__ex2g4s_2 = tmp0_1.t();
2524
+ while (_iterator__ex2g4s_2.u()) {
2525
+ var element_2 = _iterator__ex2g4s_2.v();
1704
2526
  if (element_2.a() == null) {
1705
2527
  count = count + 1 | 0;
1706
2528
  checkCountOverflow(count);
@@ -1711,65 +2533,137 @@
1711
2533
  // Inline function 'kotlin.require' call
1712
2534
  if (!(tmp$ret$9 <= 1)) {
1713
2535
  // Inline function 'kotlin.collections.filter' call
1714
- var tmp0_2 = this.d4a_1;
2536
+ var tmp0_2 = this.s58_1;
1715
2537
  // Inline function 'kotlin.collections.filterTo' call
1716
2538
  var destination = ArrayList_init_$Create$();
1717
- var _iterator__ex2g4s_3 = tmp0_2.r();
1718
- while (_iterator__ex2g4s_3.s()) {
1719
- var element_3 = _iterator__ex2g4s_3.t();
2539
+ var _iterator__ex2g4s_3 = tmp0_2.t();
2540
+ while (_iterator__ex2g4s_3.u()) {
2541
+ var element_3 = _iterator__ex2g4s_3.v();
1720
2542
  if (element_3.a() == null) {
1721
- destination.z(element_3);
2543
+ destination.e1(element_3);
1722
2544
  }
1723
2545
  }
1724
2546
  // Inline function 'kotlin.collections.map' call
1725
2547
  // Inline function 'kotlin.collections.mapTo' call
1726
2548
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
1727
- var _iterator__ex2g4s_4 = destination.r();
1728
- while (_iterator__ex2g4s_4.s()) {
1729
- var item = _iterator__ex2g4s_4.t();
1730
- var tmp$ret$14 = item.u49_1;
1731
- destination_0.z(tmp$ret$14);
2549
+ var _iterator__ex2g4s_4 = destination.t();
2550
+ while (_iterator__ex2g4s_4.u()) {
2551
+ var item = _iterator__ex2g4s_4.v();
2552
+ var tmp$ret$14 = item.t57_1;
2553
+ destination_0.e1(tmp$ret$14);
1732
2554
  }
1733
2555
  var fieldNames = destination_0;
1734
2556
  var message_0 = 'At most one variable-length numeric field in a row is allowed, but got several: ' + toString(fieldNames) + '. ' + "Parsing is undefined: for example, with variable-length month number and variable-length day of month, '111' can be parsed as Jan 11th or Nov 1st.";
1735
2557
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1736
2558
  }
1737
2559
  }
2560
+ protoOf(NumberSpanParserOperation).p58 = function (storage, input, startIndex) {
2561
+ if ((startIndex + this.t58_1 | 0) > charSequenceLength(input)) {
2562
+ var tmp = Companion_instance_6;
2563
+ return tmp.i58(startIndex, NumberSpanParserOperation$consume$lambda(this));
2564
+ }
2565
+ var digitsInRow = {_v: 0};
2566
+ while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
2567
+ digitsInRow._v = digitsInRow._v + 1 | 0;
2568
+ digitsInRow._v;
2569
+ }
2570
+ if (digitsInRow._v < this.t58_1) {
2571
+ var tmp_0 = Companion_instance_6;
2572
+ return tmp_0.i58(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
2573
+ }
2574
+ var index = startIndex;
2575
+ var inductionVariable = 0;
2576
+ var last = this.s58_1.g1() - 1 | 0;
2577
+ if (inductionVariable <= last)
2578
+ do {
2579
+ var i = inductionVariable;
2580
+ inductionVariable = inductionVariable + 1 | 0;
2581
+ var tmp0_elvis_lhs = this.s58_1.h1(i).a();
2582
+ var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.t58_1 | 0) + 1 | 0 : tmp0_elvis_lhs;
2583
+ var error = this.s58_1.h1(i).r57(storage, input, index, index + length | 0);
2584
+ if (!(error == null)) {
2585
+ var tmp2 = index;
2586
+ // Inline function 'kotlin.text.substring' call
2587
+ var endIndex = index + length | 0;
2588
+ var numberString = toString(charSequenceSubSequence(input, tmp2, endIndex));
2589
+ var tmp_1 = Companion_instance_6;
2590
+ var tmp_2 = index;
2591
+ return tmp_1.i58(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
2592
+ }
2593
+ index = index + length | 0;
2594
+ }
2595
+ while (inductionVariable <= last);
2596
+ return Companion_instance_6.h58(index);
2597
+ };
1738
2598
  protoOf(NumberSpanParserOperation).toString = function () {
1739
2599
  return _get_whatThisExpects__4pg11j(this);
1740
2600
  };
1741
2601
  function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusOnExceedsWidth) {
1742
2602
  var parsers = mutableListOf([spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, true)]);
1743
2603
  if (!(plusOnExceedsWidth == null)) {
1744
- parsers.z(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
1745
- parsers.z(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
2604
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
2605
+ parsers.e1(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
1746
2606
  } else {
1747
- parsers.z(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
2607
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
1748
2608
  }
1749
2609
  return new ParserStructure(emptyList(), parsers);
1750
2610
  }
2611
+ function PlainStringParserOperation$consume$lambda(this$0) {
2612
+ return function () {
2613
+ return "Unexpected end of input: yet to parse '" + this$0.v58_1 + "'";
2614
+ };
2615
+ }
2616
+ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
2617
+ return function () {
2618
+ var tmp0 = $input;
2619
+ var tmp2 = $startIndex;
2620
+ // Inline function 'kotlin.text.substring' call
2621
+ var endIndex = ($startIndex + $i | 0) + 1 | 0;
2622
+ var tmp$ret$0 = toString(charSequenceSubSequence(tmp0, tmp2, endIndex));
2623
+ return 'Expected ' + this$0.v58_1 + ' but got ' + tmp$ret$0;
2624
+ };
2625
+ }
1751
2626
  function PlainStringParserOperation(string) {
1752
- this.g4a_1 = string;
2627
+ this.v58_1 = string;
1753
2628
  // Inline function 'kotlin.text.isNotEmpty' call
1754
- var this_0 = this.g4a_1;
2629
+ var this_0 = this.v58_1;
1755
2630
  // Inline function 'kotlin.require' call
1756
2631
  if (!(charSequenceLength(this_0) > 0)) {
1757
2632
  var message = 'Empty string is not allowed';
1758
2633
  throw IllegalArgumentException_init_$Create$(toString(message));
1759
2634
  }
1760
2635
  // Inline function 'kotlin.require' call
1761
- if (!!isAsciiDigit(charCodeAt(this.g4a_1, 0))) {
1762
- var message_0 = "String '" + this.g4a_1 + "' starts with a digit";
2636
+ if (!!isAsciiDigit(charCodeAt(this.v58_1, 0))) {
2637
+ var message_0 = "String '" + this.v58_1 + "' starts with a digit";
1763
2638
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1764
2639
  }
1765
2640
  // Inline function 'kotlin.require' call
1766
- if (!!isAsciiDigit(charCodeAt(this.g4a_1, this.g4a_1.length - 1 | 0))) {
1767
- var message_1 = "String '" + this.g4a_1 + "' ends with a digit";
2641
+ if (!!isAsciiDigit(charCodeAt(this.v58_1, this.v58_1.length - 1 | 0))) {
2642
+ var message_1 = "String '" + this.v58_1 + "' ends with a digit";
1768
2643
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1769
2644
  }
1770
2645
  }
2646
+ protoOf(PlainStringParserOperation).p58 = function (storage, input, startIndex) {
2647
+ if ((startIndex + this.v58_1.length | 0) > charSequenceLength(input)) {
2648
+ var tmp = Companion_instance_6;
2649
+ return tmp.i58(startIndex, PlainStringParserOperation$consume$lambda(this));
2650
+ }
2651
+ var inductionVariable = 0;
2652
+ var last = charSequenceLength(this.v58_1) - 1 | 0;
2653
+ if (inductionVariable <= last)
2654
+ do {
2655
+ var i = inductionVariable;
2656
+ inductionVariable = inductionVariable + 1 | 0;
2657
+ if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.v58_1, i))) {
2658
+ var tmp_0 = Companion_instance_6;
2659
+ return tmp_0.i58(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
2660
+ }
2661
+ }
2662
+ while (inductionVariable <= last);
2663
+ return Companion_instance_6.h58(startIndex + this.v58_1.length | 0);
2664
+ };
1771
2665
  protoOf(PlainStringParserOperation).toString = function () {
1772
- return "'" + this.g4a_1 + "'";
2666
+ return "'" + this.v58_1 + "'";
1773
2667
  };
1774
2668
  function UnconditionalModification() {
1775
2669
  }
@@ -1783,10 +2677,10 @@
1783
2677
  // Inline function 'kotlin.apply' call
1784
2678
  var this_0 = ArrayList_init_$Create$();
1785
2679
  if ($withMinus) {
1786
- this_0.z(new PlainStringParserOperation('-'));
2680
+ this_0.e1(new PlainStringParserOperation('-'));
1787
2681
  }
1788
- this_0.z(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
1789
- var tmp$ret$4 = this_0.d3();
2682
+ this_0.e1(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
2683
+ var tmp$ret$4 = this_0.j3();
1790
2684
  return new ParserStructure(tmp$ret$4, emptyList());
1791
2685
  }
1792
2686
  function get_POWERS_OF_TEN() {
@@ -1805,12 +2699,366 @@
1805
2699
  function isAsciiDigit(_this__u8e3s4) {
1806
2700
  return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
1807
2701
  }
2702
+ function asciiDigitToInt(_this__u8e3s4) {
2703
+ return Char__minus_impl_a2frrh(_this__u8e3s4, _Char___init__impl__6a9atx(48));
2704
+ }
2705
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2706
+ return buildClassSerialDescriptor('kotlinx.datetime.TimeBased', [], TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2707
+ }
2708
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2709
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2710
+ var elementName = 'nanoseconds';
2711
+ var annotations = emptyList();
2712
+ // Inline function 'kotlinx.serialization.serializer' call
2713
+ // Inline function 'kotlinx.serialization.internal.cast' call
2714
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().gb(), arrayOf([]), false));
2715
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2716
+ $this$buildClassSerialDescriptor.b1t(elementName, descriptor, annotations, false);
2717
+ return Unit_instance;
2718
+ }
2719
+ function TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw() {
2720
+ return function (p0) {
2721
+ return p0.r1q();
2722
+ };
2723
+ }
2724
+ function TimeBasedDateTimeUnitSerializer() {
2725
+ TimeBasedDateTimeUnitSerializer_instance = this;
2726
+ var tmp = this;
2727
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2728
+ tmp.w58_1 = lazy_0(tmp_0, TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2729
+ }
2730
+ protoOf(TimeBasedDateTimeUnitSerializer).r1q = function () {
2731
+ var tmp0 = this.w58_1;
2732
+ var tmp = KProperty1;
2733
+ // Inline function 'kotlin.getValue' call
2734
+ getPropertyCallableRef('descriptor', 1, tmp, TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw(), null);
2735
+ return tmp0.m1();
2736
+ };
2737
+ protoOf(TimeBasedDateTimeUnitSerializer).x58 = function (encoder, value) {
2738
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2739
+ var descriptor = this.r1q();
2740
+ var composite = encoder.f1u(descriptor);
2741
+ composite.q1v(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.z51_1);
2742
+ composite.g1u(descriptor);
2743
+ };
2744
+ protoOf(TimeBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2745
+ return this.x58(encoder, value instanceof TimeBased ? value : THROW_CCE());
2746
+ };
2747
+ protoOf(TimeBasedDateTimeUnitSerializer).t1q = function (decoder) {
2748
+ var seen = {_v: false};
2749
+ var nanoseconds = {_v: 0n};
2750
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2751
+ var descriptor = this.r1q();
2752
+ var composite = decoder.f1u(descriptor);
2753
+ if (composite.v1u()) {
2754
+ nanoseconds._v = composite.l1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2755
+ seen._v = true;
2756
+ } else {
2757
+ loop: while (true) {
2758
+ var elementIndex = composite.w1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q());
2759
+ switch (elementIndex) {
2760
+ case 0:
2761
+ nanoseconds._v = composite.l1u(TimeBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2762
+ seen._v = true;
2763
+ break;
2764
+ case -1:
2765
+ break loop;
2766
+ default:
2767
+ throwUnknownIndexException(elementIndex);
2768
+ break;
2769
+ }
2770
+ }
2771
+ }
2772
+ var result = Unit_instance;
2773
+ composite.g1u(descriptor);
2774
+ if (!seen._v)
2775
+ throw MissingFieldException_init_$Create$('nanoseconds', this.r1q().s1r());
2776
+ return new TimeBased(nanoseconds._v);
2777
+ };
2778
+ var TimeBasedDateTimeUnitSerializer_instance;
2779
+ function TimeBasedDateTimeUnitSerializer_getInstance() {
2780
+ if (TimeBasedDateTimeUnitSerializer_instance == null)
2781
+ new TimeBasedDateTimeUnitSerializer();
2782
+ return TimeBasedDateTimeUnitSerializer_instance;
2783
+ }
2784
+ function _get_impl__d88w17($this) {
2785
+ var tmp0 = $this.y58_1;
2786
+ var tmp = KProperty1;
2787
+ // Inline function 'kotlin.getValue' call
2788
+ getPropertyCallableRef('impl', 1, tmp, DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs(), null);
2789
+ return tmp0.m1();
2790
+ }
2791
+ function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
2792
+ var tmp = getKClass(DateBased);
2793
+ // Inline function 'kotlin.arrayOf' call
2794
+ // Inline function 'kotlin.js.unsafeCast' call
2795
+ // Inline function 'kotlin.js.asDynamic' call
2796
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased)];
2797
+ // Inline function 'kotlin.arrayOf' call
2798
+ // Inline function 'kotlin.js.unsafeCast' call
2799
+ // Inline function 'kotlin.js.asDynamic' call
2800
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance()];
2801
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit.DateBased', tmp, tmp_0, tmp$ret$5);
2802
+ }
2803
+ function DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs() {
2804
+ return function (p0) {
2805
+ return _get_impl__d88w17(p0);
2806
+ };
2807
+ }
2808
+ function DateBasedDateTimeUnitSerializer() {
2809
+ DateBasedDateTimeUnitSerializer_instance = this;
2810
+ AbstractPolymorphicSerializer.call(this);
2811
+ var tmp = this;
2812
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2813
+ tmp.y58_1 = lazy_0(tmp_0, DateBasedDateTimeUnitSerializer$impl$delegate$lambda);
2814
+ }
2815
+ protoOf(DateBasedDateTimeUnitSerializer).u1q = function (decoder, klassName) {
2816
+ return _get_impl__d88w17(this).u1q(decoder, klassName);
2817
+ };
2818
+ protoOf(DateBasedDateTimeUnitSerializer).z58 = function (encoder, value) {
2819
+ return _get_impl__d88w17(this).w1q(encoder, value);
2820
+ };
2821
+ protoOf(DateBasedDateTimeUnitSerializer).w1q = function (encoder, value) {
2822
+ return this.z58(encoder, value instanceof DateBased ? value : THROW_CCE());
2823
+ };
2824
+ protoOf(DateBasedDateTimeUnitSerializer).v1q = function () {
2825
+ return getKClass(DateBased);
2826
+ };
2827
+ protoOf(DateBasedDateTimeUnitSerializer).r1q = function () {
2828
+ return _get_impl__d88w17(this).r1q();
2829
+ };
2830
+ var DateBasedDateTimeUnitSerializer_instance;
2831
+ function DateBasedDateTimeUnitSerializer_getInstance() {
2832
+ if (DateBasedDateTimeUnitSerializer_instance == null)
2833
+ new DateBasedDateTimeUnitSerializer();
2834
+ return DateBasedDateTimeUnitSerializer_instance;
2835
+ }
2836
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2837
+ return buildClassSerialDescriptor('kotlinx.datetime.DayBased', [], DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2838
+ }
2839
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2840
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2841
+ var annotations = emptyList();
2842
+ // Inline function 'kotlinx.serialization.serializer' call
2843
+ // Inline function 'kotlinx.serialization.internal.cast' call
2844
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().fb(), arrayOf([]), false));
2845
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2846
+ $this$buildClassSerialDescriptor.b1t('days', descriptor, annotations, false);
2847
+ return Unit_instance;
2848
+ }
2849
+ function DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3() {
2850
+ return function (p0) {
2851
+ return p0.r1q();
2852
+ };
2853
+ }
2854
+ function DayBasedDateTimeUnitSerializer() {
2855
+ DayBasedDateTimeUnitSerializer_instance = this;
2856
+ var tmp = this;
2857
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2858
+ tmp.a59_1 = lazy_0(tmp_0, DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2859
+ }
2860
+ protoOf(DayBasedDateTimeUnitSerializer).r1q = function () {
2861
+ var tmp0 = this.a59_1;
2862
+ var tmp = KProperty1;
2863
+ // Inline function 'kotlin.getValue' call
2864
+ getPropertyCallableRef('descriptor', 1, tmp, DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3(), null);
2865
+ return tmp0.m1();
2866
+ };
2867
+ protoOf(DayBasedDateTimeUnitSerializer).b59 = function (encoder, value) {
2868
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2869
+ var descriptor = this.r1q();
2870
+ var composite = encoder.f1u(descriptor);
2871
+ composite.p1v(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.f52_1);
2872
+ composite.g1u(descriptor);
2873
+ };
2874
+ protoOf(DayBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2875
+ return this.b59(encoder, value instanceof DayBased ? value : THROW_CCE());
2876
+ };
2877
+ protoOf(DayBasedDateTimeUnitSerializer).t1q = function (decoder) {
2878
+ var seen = {_v: false};
2879
+ var days = {_v: 0};
2880
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2881
+ var descriptor = this.r1q();
2882
+ var composite = decoder.f1u(descriptor);
2883
+ if (composite.v1u()) {
2884
+ days._v = composite.k1u(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2885
+ seen._v = true;
2886
+ } else {
2887
+ loop: while (true) {
2888
+ var elementIndex = composite.w1u(DayBasedDateTimeUnitSerializer_getInstance().r1q());
2889
+ switch (elementIndex) {
2890
+ case 0:
2891
+ days._v = composite.k1u(DayBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2892
+ seen._v = true;
2893
+ break;
2894
+ case -1:
2895
+ break loop;
2896
+ default:
2897
+ throwUnknownIndexException(elementIndex);
2898
+ break;
2899
+ }
2900
+ }
2901
+ }
2902
+ var result = Unit_instance;
2903
+ composite.g1u(descriptor);
2904
+ if (!seen._v)
2905
+ throw MissingFieldException_init_$Create$('days', this.r1q().s1r());
2906
+ return new DayBased(days._v);
2907
+ };
2908
+ var DayBasedDateTimeUnitSerializer_instance;
2909
+ function DayBasedDateTimeUnitSerializer_getInstance() {
2910
+ if (DayBasedDateTimeUnitSerializer_instance == null)
2911
+ new DayBasedDateTimeUnitSerializer();
2912
+ return DayBasedDateTimeUnitSerializer_instance;
2913
+ }
2914
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2915
+ return buildClassSerialDescriptor('kotlinx.datetime.MonthBased', [], MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2916
+ }
2917
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2918
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2919
+ var annotations = emptyList();
2920
+ // Inline function 'kotlinx.serialization.serializer' call
2921
+ // Inline function 'kotlinx.serialization.internal.cast' call
2922
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().fb(), arrayOf([]), false));
2923
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).r1q();
2924
+ $this$buildClassSerialDescriptor.b1t('months', descriptor, annotations, false);
2925
+ return Unit_instance;
2926
+ }
2927
+ function MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn() {
2928
+ return function (p0) {
2929
+ return p0.r1q();
2930
+ };
2931
+ }
2932
+ function MonthBasedDateTimeUnitSerializer() {
2933
+ MonthBasedDateTimeUnitSerializer_instance = this;
2934
+ var tmp = this;
2935
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2936
+ tmp.c59_1 = lazy_0(tmp_0, MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2937
+ }
2938
+ protoOf(MonthBasedDateTimeUnitSerializer).r1q = function () {
2939
+ var tmp0 = this.c59_1;
2940
+ var tmp = KProperty1;
2941
+ // Inline function 'kotlin.getValue' call
2942
+ getPropertyCallableRef('descriptor', 1, tmp, MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn(), null);
2943
+ return tmp0.m1();
2944
+ };
2945
+ protoOf(MonthBasedDateTimeUnitSerializer).d59 = function (encoder, value) {
2946
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2947
+ var descriptor = this.r1q();
2948
+ var composite = encoder.f1u(descriptor);
2949
+ composite.p1v(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0, value.g52_1);
2950
+ composite.g1u(descriptor);
2951
+ };
2952
+ protoOf(MonthBasedDateTimeUnitSerializer).s1q = function (encoder, value) {
2953
+ return this.d59(encoder, value instanceof MonthBased ? value : THROW_CCE());
2954
+ };
2955
+ protoOf(MonthBasedDateTimeUnitSerializer).t1q = function (decoder) {
2956
+ var seen = {_v: false};
2957
+ var months = {_v: 0};
2958
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2959
+ var descriptor = this.r1q();
2960
+ var composite = decoder.f1u(descriptor);
2961
+ if (composite.v1u()) {
2962
+ months._v = composite.k1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2963
+ seen._v = true;
2964
+ } else {
2965
+ loop: while (true) {
2966
+ var elementIndex = composite.w1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q());
2967
+ switch (elementIndex) {
2968
+ case 0:
2969
+ months._v = composite.k1u(MonthBasedDateTimeUnitSerializer_getInstance().r1q(), 0);
2970
+ seen._v = true;
2971
+ break;
2972
+ case -1:
2973
+ break loop;
2974
+ default:
2975
+ throwUnknownIndexException(elementIndex);
2976
+ break;
2977
+ }
2978
+ }
2979
+ }
2980
+ var result = Unit_instance;
2981
+ composite.g1u(descriptor);
2982
+ if (!seen._v)
2983
+ throw MissingFieldException_init_$Create$('months', this.r1q().s1r());
2984
+ return new MonthBased(months._v);
2985
+ };
2986
+ var MonthBasedDateTimeUnitSerializer_instance;
2987
+ function MonthBasedDateTimeUnitSerializer_getInstance() {
2988
+ if (MonthBasedDateTimeUnitSerializer_instance == null)
2989
+ new MonthBasedDateTimeUnitSerializer();
2990
+ return MonthBasedDateTimeUnitSerializer_instance;
2991
+ }
2992
+ function _get_impl__d88w17_0($this) {
2993
+ var tmp0 = $this.e59_1;
2994
+ var tmp = KProperty1;
2995
+ // Inline function 'kotlin.getValue' call
2996
+ getPropertyCallableRef('impl', 1, tmp, DateTimeUnitSerializer$_get_impl_$ref_2y1hvx(), null);
2997
+ return tmp0.m1();
2998
+ }
2999
+ function DateTimeUnitSerializer$impl$delegate$lambda() {
3000
+ var tmp = getKClass(DateTimeUnit);
3001
+ // Inline function 'kotlin.arrayOf' call
3002
+ // Inline function 'kotlin.js.unsafeCast' call
3003
+ // Inline function 'kotlin.js.asDynamic' call
3004
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased), getKClass(TimeBased)];
3005
+ // Inline function 'kotlin.arrayOf' call
3006
+ // Inline function 'kotlin.js.unsafeCast' call
3007
+ // Inline function 'kotlin.js.asDynamic' call
3008
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance(), TimeBasedDateTimeUnitSerializer_getInstance()];
3009
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit', tmp, tmp_0, tmp$ret$5);
3010
+ }
3011
+ function DateTimeUnitSerializer$_get_impl_$ref_2y1hvx() {
3012
+ return function (p0) {
3013
+ return _get_impl__d88w17_0(p0);
3014
+ };
3015
+ }
3016
+ function DateTimeUnitSerializer() {
3017
+ DateTimeUnitSerializer_instance = this;
3018
+ AbstractPolymorphicSerializer.call(this);
3019
+ var tmp = this;
3020
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3021
+ tmp.e59_1 = lazy_0(tmp_0, DateTimeUnitSerializer$impl$delegate$lambda);
3022
+ }
3023
+ protoOf(DateTimeUnitSerializer).u1q = function (decoder, klassName) {
3024
+ return _get_impl__d88w17_0(this).u1q(decoder, klassName);
3025
+ };
3026
+ protoOf(DateTimeUnitSerializer).f59 = function (encoder, value) {
3027
+ return _get_impl__d88w17_0(this).w1q(encoder, value);
3028
+ };
3029
+ protoOf(DateTimeUnitSerializer).w1q = function (encoder, value) {
3030
+ return this.f59(encoder, value instanceof DateTimeUnit ? value : THROW_CCE());
3031
+ };
3032
+ protoOf(DateTimeUnitSerializer).v1q = function () {
3033
+ return getKClass(DateTimeUnit);
3034
+ };
3035
+ protoOf(DateTimeUnitSerializer).r1q = function () {
3036
+ return _get_impl__d88w17_0(this).r1q();
3037
+ };
3038
+ var DateTimeUnitSerializer_instance;
3039
+ function DateTimeUnitSerializer_getInstance() {
3040
+ if (DateTimeUnitSerializer_instance == null)
3041
+ new DateTimeUnitSerializer();
3042
+ return DateTimeUnitSerializer_instance;
3043
+ }
3044
+ function throwUnknownIndexException(index) {
3045
+ throw SerializationException_init_$Create$('An unknown field for index ' + index);
3046
+ }
1808
3047
  function LocalDateSerializer() {
1809
3048
  LocalDateSerializer_instance = this;
1810
- this.h4a_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
3049
+ this.g59_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
1811
3050
  }
1812
- protoOf(LocalDateSerializer).j1p = function () {
1813
- return this.h4a_1;
3051
+ protoOf(LocalDateSerializer).r1q = function () {
3052
+ return this.g59_1;
3053
+ };
3054
+ protoOf(LocalDateSerializer).t1q = function (decoder) {
3055
+ return Companion_getInstance_7().l59(decoder.a1u());
3056
+ };
3057
+ protoOf(LocalDateSerializer).m59 = function (encoder, value) {
3058
+ encoder.j1v(value.toString());
3059
+ };
3060
+ protoOf(LocalDateSerializer).s1q = function (encoder, value) {
3061
+ return this.m59(encoder, value instanceof LocalDate ? value : THROW_CCE());
1814
3062
  };
1815
3063
  var LocalDateSerializer_instance;
1816
3064
  function LocalDateSerializer_getInstance() {
@@ -1818,24 +3066,129 @@
1818
3066
  new LocalDateSerializer();
1819
3067
  return LocalDateSerializer_instance;
1820
3068
  }
1821
- function Companion_0() {
1822
- Companion_instance_0 = this;
1823
- this.i4a_1 = new LocalDate(-999999999, 1, 1);
1824
- this.j4a_1 = new LocalDate(999999999, 12, 31);
1825
- this.k4a_1 = -365243219162n;
1826
- this.l4a_1 = 365241780471n;
3069
+ function YearMonthSerializer() {
3070
+ YearMonthSerializer_instance = this;
3071
+ this.n59_1 = PrimitiveSerialDescriptor('kotlinx.datetime.YearMonth', STRING_getInstance());
1827
3072
  }
1828
- var Companion_instance_0;
1829
- function Companion_getInstance_0() {
1830
- if (Companion_instance_0 == null)
1831
- new Companion_0();
1832
- return Companion_instance_0;
3073
+ protoOf(YearMonthSerializer).r1q = function () {
3074
+ return this.n59_1;
3075
+ };
3076
+ protoOf(YearMonthSerializer).t1q = function (decoder) {
3077
+ return Companion_instance_8.o59(decoder.a1u());
3078
+ };
3079
+ protoOf(YearMonthSerializer).p59 = function (encoder, value) {
3080
+ encoder.j1v(value.toString());
3081
+ };
3082
+ protoOf(YearMonthSerializer).s1q = function (encoder, value) {
3083
+ return this.p59(encoder, value instanceof YearMonth ? value : THROW_CCE());
3084
+ };
3085
+ var YearMonthSerializer_instance;
3086
+ function YearMonthSerializer_getInstance() {
3087
+ if (YearMonthSerializer_instance == null)
3088
+ new YearMonthSerializer();
3089
+ return YearMonthSerializer_instance;
3090
+ }
3091
+ function Companion_7() {
3092
+ Companion_instance_7 = this;
3093
+ this.h59_1 = new LocalDate(-999999999, 1, 1);
3094
+ this.i59_1 = new LocalDate(999999999, 12, 31);
3095
+ this.j59_1 = -365243219162n;
3096
+ this.k59_1 = 365241780471n;
3097
+ }
3098
+ protoOf(Companion_7).q59 = function (input, format) {
3099
+ return format.sj(input);
3100
+ };
3101
+ protoOf(Companion_7).l59 = function (input, format, $super) {
3102
+ format = format === VOID ? getIsoDateFormat() : format;
3103
+ return $super === VOID ? this.q59(input, format) : $super.q59.call(this, input, format);
3104
+ };
3105
+ protoOf(Companion_7).r59 = function (epochDays) {
3106
+ // Inline function 'kotlin.require' call
3107
+ if (!(-365243219162n <= epochDays ? epochDays <= 365241780471n : false)) {
3108
+ var message = 'Invalid date: epoch day ' + epochDays.toString() + ' is outside the boundaries of LocalDate';
3109
+ throw IllegalArgumentException_init_$Create$(toString(message));
3110
+ }
3111
+ // Inline function 'kotlin.Long.plus' call
3112
+ var zeroDay = add(epochDays, fromInt(719528));
3113
+ // Inline function 'kotlin.Long.minus' call
3114
+ var this_0 = zeroDay;
3115
+ zeroDay = subtract(this_0, fromInt(60));
3116
+ var adjust = 0n;
3117
+ if (zeroDay < 0n) {
3118
+ // Inline function 'kotlin.Long.plus' call
3119
+ var this_1 = zeroDay;
3120
+ // Inline function 'kotlin.Long.div' call
3121
+ var this_2 = add(this_1, fromInt(1));
3122
+ // Inline function 'kotlin.Long.minus' call
3123
+ var this_3 = divide(this_2, fromInt(146097));
3124
+ var adjustCycles = subtract(this_3, fromInt(1));
3125
+ // Inline function 'kotlin.Long.times' call
3126
+ adjust = multiply(adjustCycles, fromInt(400));
3127
+ var tmp = zeroDay;
3128
+ // Inline function 'kotlin.Long.times' call
3129
+ var this_4 = negate(adjustCycles);
3130
+ var tmp$ret$8 = multiply(this_4, fromInt(146097));
3131
+ zeroDay = add(tmp, tmp$ret$8);
3132
+ }
3133
+ // Inline function 'kotlin.Long.plus' call
3134
+ var this_5 = multiply(numberToLong(400), zeroDay);
3135
+ // Inline function 'kotlin.Long.div' call
3136
+ var this_6 = add(this_5, fromInt(591));
3137
+ var yearEst = divide(this_6, fromInt(146097));
3138
+ var tmp_0 = zeroDay;
3139
+ var tmp_1 = multiply(numberToLong(365), yearEst);
3140
+ // Inline function 'kotlin.Long.div' call
3141
+ var this_7 = yearEst;
3142
+ var tmp$ret$11 = divide(this_7, fromInt(4));
3143
+ var tmp_2 = add(tmp_1, tmp$ret$11);
3144
+ // Inline function 'kotlin.Long.div' call
3145
+ var this_8 = yearEst;
3146
+ var tmp$ret$12 = divide(this_8, fromInt(100));
3147
+ var tmp_3 = subtract(tmp_2, tmp$ret$12);
3148
+ // Inline function 'kotlin.Long.div' call
3149
+ var this_9 = yearEst;
3150
+ var tmp$ret$13 = divide(this_9, fromInt(400));
3151
+ var doyEst = subtract(tmp_0, add(tmp_3, tmp$ret$13));
3152
+ if (doyEst < 0n) {
3153
+ var _unary__edvuaz = yearEst;
3154
+ yearEst = subtract(_unary__edvuaz, get_ONE());
3155
+ var tmp_4 = zeroDay;
3156
+ var tmp_5 = multiply(numberToLong(365), yearEst);
3157
+ // Inline function 'kotlin.Long.div' call
3158
+ var this_10 = yearEst;
3159
+ var tmp$ret$14 = divide(this_10, fromInt(4));
3160
+ var tmp_6 = add(tmp_5, tmp$ret$14);
3161
+ // Inline function 'kotlin.Long.div' call
3162
+ var this_11 = yearEst;
3163
+ var tmp$ret$15 = divide(this_11, fromInt(100));
3164
+ var tmp_7 = subtract(tmp_6, tmp$ret$15);
3165
+ // Inline function 'kotlin.Long.div' call
3166
+ var this_12 = yearEst;
3167
+ var tmp$ret$16 = divide(this_12, fromInt(400));
3168
+ doyEst = subtract(tmp_4, add(tmp_7, tmp$ret$16));
3169
+ }
3170
+ yearEst = add(yearEst, adjust);
3171
+ var marchDoy0 = convertToInt(doyEst);
3172
+ var marchMonth0 = (imul(marchDoy0, 5) + 2 | 0) / 153 | 0;
3173
+ var month = ((marchMonth0 + 2 | 0) % 12 | 0) + 1 | 0;
3174
+ var dom = (marchDoy0 - ((imul(marchMonth0, 306) + 5 | 0) / 10 | 0) | 0) + 1 | 0;
3175
+ var tmp0 = yearEst;
3176
+ // Inline function 'kotlin.Long.plus' call
3177
+ var other = marchMonth0 / 10 | 0;
3178
+ yearEst = add(tmp0, fromInt(other));
3179
+ return new LocalDate(convertToInt(yearEst), month, dom);
3180
+ };
3181
+ var Companion_instance_7;
3182
+ function Companion_getInstance_7() {
3183
+ if (Companion_instance_7 == null)
3184
+ new Companion_7();
3185
+ return Companion_instance_7;
1833
3186
  }
1834
3187
  function Formats() {
1835
3188
  Formats_instance = this;
1836
- this.m4a_1 = get_ISO_DATE_BASIC();
3189
+ this.t52_1 = get_ISO_DATE_BASIC();
1837
3190
  }
1838
- protoOf(Formats).n4a = function () {
3191
+ protoOf(Formats).u52 = function () {
1839
3192
  return get_ISO_DATE();
1840
3193
  };
1841
3194
  var Formats_instance;
@@ -1844,39 +3197,45 @@
1844
3197
  new Formats();
1845
3198
  return Formats_instance;
1846
3199
  }
3200
+ function resolvePreviousValid($this, year, month, day) {
3201
+ // Inline function 'kotlin.math.min' call
3202
+ var b = monthLength(month, isLeapYear(year));
3203
+ var newDay = Math.min(day, b);
3204
+ return new LocalDate(year, month, newDay);
3205
+ }
1847
3206
  function LocalDate(year, month, day) {
1848
- Companion_getInstance_0();
1849
- this.r46_1 = year;
1850
- this.s46_1 = day;
1851
- this.t46_1 = month;
3207
+ Companion_getInstance_7();
3208
+ this.d54_1 = year;
3209
+ this.e54_1 = day;
3210
+ this.f54_1 = month;
1852
3211
  // Inline function 'kotlin.require' call
1853
- if (!isValidYear(this.r46_1)) {
3212
+ if (!isValidYear(this.d54_1)) {
1854
3213
  var message = 'Invalid date: the year is out of range';
1855
3214
  throw IllegalArgumentException_init_$Create$(toString(message));
1856
3215
  }
1857
- var containsArg = this.t46_1;
3216
+ var containsArg = this.f54_1;
1858
3217
  // Inline function 'kotlin.require' call
1859
3218
  if (!(1 <= containsArg ? containsArg <= 12 : false)) {
1860
- var message_0 = 'Invalid date: month must be a number between 1 and 12, got ' + this.t46_1;
3219
+ var message_0 = 'Invalid date: month must be a number between 1 and 12, got ' + this.f54_1;
1861
3220
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1862
3221
  }
1863
- var containsArg_0 = this.s46_1;
3222
+ var containsArg_0 = this.e54_1;
1864
3223
  // Inline function 'kotlin.require' call
1865
3224
  if (!(1 <= containsArg_0 ? containsArg_0 <= 31 : false)) {
1866
- var message_1 = 'Invalid date: day of month must be a number between 1 and 31, got ' + this.s46_1;
3225
+ var message_1 = 'Invalid date: day of month must be a number between 1 and 31, got ' + this.e54_1;
1867
3226
  throw IllegalArgumentException_init_$Create$(toString(message_1));
1868
3227
  }
1869
- if (this.s46_1 > 28 && this.s46_1 > monthLength(this.t46_1, isLeapYear(this.r46_1))) {
1870
- if (this.s46_1 === 29) {
1871
- throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + this.r46_1 + "' is not a leap year");
3228
+ if (this.e54_1 > 28 && this.e54_1 > monthLength(this.f54_1, isLeapYear(this.d54_1))) {
3229
+ if (this.e54_1 === 29) {
3230
+ throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + this.d54_1 + "' is not a leap year");
1872
3231
  } else {
1873
- throw IllegalArgumentException_init_$Create$("Invalid date '" + Month_0(month).toString() + ' ' + this.s46_1 + "'");
3232
+ throw IllegalArgumentException_init_$Create$("Invalid date '" + Month_0(month).toString() + ' ' + this.e54_1 + "'");
1874
3233
  }
1875
3234
  }
1876
3235
  }
1877
- protoOf(LocalDate).o4a = function () {
1878
- var y = fromInt(this.r46_1);
1879
- var m = fromInt(this.t46_1);
3236
+ protoOf(LocalDate).s59 = function () {
3237
+ var y = fromInt(this.d54_1);
3238
+ var m = fromInt(this.f54_1);
1880
3239
  var total = 0n;
1881
3240
  total = add(total, multiply(numberToLong(365), y));
1882
3241
  if (y >= 0n) {
@@ -1915,12 +3274,12 @@
1915
3274
  total = add(tmp_5, tmp$ret$10);
1916
3275
  var tmp0 = total;
1917
3276
  // Inline function 'kotlin.Long.plus' call
1918
- var other = this.s46_1 - 1 | 0;
3277
+ var other = this.e54_1 - 1 | 0;
1919
3278
  total = add(tmp0, fromInt(other));
1920
3279
  if (m > 2n) {
1921
3280
  var _unary__edvuaz = total;
1922
3281
  total = subtract(_unary__edvuaz, get_ONE());
1923
- if (!isLeapYear(this.r46_1)) {
3282
+ if (!isLeapYear(this.d54_1)) {
1924
3283
  var _unary__edvuaz_0 = total;
1925
3284
  total = subtract(_unary__edvuaz_0, get_ONE());
1926
3285
  }
@@ -1929,12 +3288,12 @@
1929
3288
  var this_5 = total;
1930
3289
  return subtract(this_5, fromInt(719528));
1931
3290
  };
1932
- protoOf(LocalDate).v46 = function () {
1933
- return Month_0(this.t46_1);
3291
+ protoOf(LocalDate).g54 = function () {
3292
+ return Month_0(this.f54_1);
1934
3293
  };
1935
- protoOf(LocalDate).n46 = function () {
3294
+ protoOf(LocalDate).y53 = function () {
1936
3295
  // Inline function 'kotlin.Long.plus' call
1937
- var this_0 = this.o4a();
3296
+ var this_0 = this.s59();
1938
3297
  // Inline function 'kotlin.mod' call
1939
3298
  var tmp0 = add(this_0, fromInt(3));
1940
3299
  // Inline function 'kotlin.mod' call
@@ -1944,22 +3303,56 @@
1944
3303
  var dow0 = convertToInt(tmp$ret$1);
1945
3304
  return DayOfWeek_0(dow0 + 1 | 0);
1946
3305
  };
1947
- protoOf(LocalDate).p46 = function () {
1948
- return (firstDayOfYear(this.v46(), isLeapYear(this.r46_1)) + this.s46_1 | 0) - 1 | 0;
3306
+ protoOf(LocalDate).a54 = function () {
3307
+ return (firstDayOfYear(this.g54(), isLeapYear(this.d54_1)) + this.e54_1 | 0) - 1 | 0;
1949
3308
  };
1950
- protoOf(LocalDate).p4a = function (other) {
1951
- var y = compareTo(this.r46_1, other.r46_1);
3309
+ protoOf(LocalDate).t59 = function (other) {
3310
+ var y = compareTo(this.d54_1, other.d54_1);
1952
3311
  if (!(y === 0)) {
1953
3312
  return y;
1954
3313
  }
1955
- var m = compareTo(this.t46_1, other.t46_1);
3314
+ var m = compareTo(this.f54_1, other.f54_1);
1956
3315
  if (!(m === 0)) {
1957
3316
  return m;
1958
3317
  }
1959
- return compareTo(this.s46_1, other.s46_1);
3318
+ return compareTo(this.e54_1, other.e54_1);
1960
3319
  };
1961
3320
  protoOf(LocalDate).d = function (other) {
1962
- return this.p4a(other instanceof LocalDate ? other : THROW_CCE());
3321
+ return this.t59(other instanceof LocalDate ? other : THROW_CCE());
3322
+ };
3323
+ protoOf(LocalDate).u59 = function (monthsToAdd) {
3324
+ if (monthsToAdd === 0n) {
3325
+ return this;
3326
+ }
3327
+ var tmp0 = multiply(numberToLong(this.d54_1), 12n);
3328
+ // Inline function 'kotlin.Long.plus' call
3329
+ var other = this.f54_1 - 1 | 0;
3330
+ var monthCount = add(tmp0, fromInt(other));
3331
+ var calcMonths = safeAdd(monthCount, monthsToAdd);
3332
+ // Inline function 'kotlin.floorDiv' call
3333
+ // Inline function 'kotlin.floorDiv' call
3334
+ var other_0 = fromInt(12);
3335
+ var q = divide(calcMonths, other_0);
3336
+ if ((calcMonths ^ other_0) < 0n && !(multiply(q, other_0) === calcMonths)) {
3337
+ var _unary__edvuaz = q;
3338
+ q = subtract(_unary__edvuaz, get_ONE());
3339
+ }
3340
+ var newYear = q;
3341
+ // Inline function 'kotlin.ranges.contains' call
3342
+ var this_0 = numberRangeToNumber(-999999999, 999999999);
3343
+ if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), newYear)) {
3344
+ throw IllegalArgumentException_init_$Create$('The result of adding ' + monthsToAdd.toString() + ' months to ' + this.toString() + ' is out of LocalDate range.');
3345
+ }
3346
+ // Inline function 'kotlin.mod' call
3347
+ // Inline function 'kotlin.mod' call
3348
+ var other_1 = fromInt(12);
3349
+ var r = modulo(calcMonths, other_1);
3350
+ var tmp$ret$4 = add(r, other_1 & shiftRight((r ^ other_1) & (r | negate(r)), 63));
3351
+ var newMonth = convertToInt(tmp$ret$4) + 1 | 0;
3352
+ return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.e54_1);
3353
+ };
3354
+ protoOf(LocalDate).v59 = function (daysToAdd) {
3355
+ return daysToAdd === 0n ? this : Companion_getInstance_7().r59(safeAdd(this.s59(), daysToAdd));
1963
3356
  };
1964
3357
  protoOf(LocalDate).equals = function (other) {
1965
3358
  var tmp;
@@ -1968,7 +3361,7 @@
1968
3361
  } else {
1969
3362
  var tmp_0;
1970
3363
  if (other instanceof LocalDate) {
1971
- tmp_0 = this.p4a(other) === 0;
3364
+ tmp_0 = this.t59(other) === 0;
1972
3365
  } else {
1973
3366
  tmp_0 = false;
1974
3367
  }
@@ -1977,21 +3370,51 @@
1977
3370
  return tmp;
1978
3371
  };
1979
3372
  protoOf(LocalDate).hashCode = function () {
1980
- var yearValue = this.r46_1;
1981
- var monthValue = this.t46_1;
1982
- var dayValue = this.s46_1;
3373
+ var yearValue = this.d54_1;
3374
+ var monthValue = this.f54_1;
3375
+ var dayValue = this.e54_1;
1983
3376
  return yearValue & -2048 ^ (((yearValue << 11) + (monthValue << 6) | 0) + dayValue | 0);
1984
3377
  };
1985
3378
  protoOf(LocalDate).toString = function () {
1986
- return format(this, Formats_getInstance().n4a());
3379
+ return format(this, Formats_getInstance().u52());
1987
3380
  };
1988
3381
  function isValidYear(year) {
1989
3382
  return year >= -999999999 && year <= 999999999;
1990
3383
  }
3384
+ function plus_1(_this__u8e3s4, value, unit) {
3385
+ var tmp;
3386
+ try {
3387
+ var tmp_0;
3388
+ if (unit instanceof DayBased) {
3389
+ tmp_0 = _this__u8e3s4.v59(safeMultiply(value, fromInt(unit.f52_1)));
3390
+ } else {
3391
+ if (unit instanceof MonthBased) {
3392
+ tmp_0 = _this__u8e3s4.u59(safeMultiply(value, fromInt(unit.g52_1)));
3393
+ } else {
3394
+ noWhenBranchMatchedException();
3395
+ }
3396
+ }
3397
+ tmp = tmp_0;
3398
+ } catch ($p) {
3399
+ var tmp_1;
3400
+ if ($p instanceof ArithmeticException) {
3401
+ var e = $p;
3402
+ throw DateTimeArithmeticException_init_$Create$_0('Arithmetic overflow when adding a value to a date', e);
3403
+ } else {
3404
+ if ($p instanceof IllegalArgumentException) {
3405
+ var e_0 = $p;
3406
+ throw DateTimeArithmeticException_init_$Create$_0('Boundaries of LocalDate exceeded when adding a value', e_0);
3407
+ } else {
3408
+ throw $p;
3409
+ }
3410
+ }
3411
+ }
3412
+ return tmp;
3413
+ }
1991
3414
  function firstDayOfYear(_this__u8e3s4, leapYear) {
1992
3415
  var leap = leapYear ? 1 : 0;
1993
3416
  var tmp;
1994
- switch (_this__u8e3s4.y_1) {
3417
+ switch (_this__u8e3s4.a1_1) {
1995
3418
  case 0:
1996
3419
  tmp = 1;
1997
3420
  break;
@@ -2034,30 +3457,156 @@
2034
3457
  }
2035
3458
  return tmp;
2036
3459
  }
3460
+ function Companion_8() {
3461
+ }
3462
+ protoOf(Companion_8).w59 = function (input, format) {
3463
+ return format.sj(input);
3464
+ };
3465
+ protoOf(Companion_8).o59 = function (input, format, $super) {
3466
+ format = format === VOID ? Formats_instance_0.u52() : format;
3467
+ return $super === VOID ? this.w59(input, format) : $super.w59.call(this, input, format);
3468
+ };
3469
+ var Companion_instance_8;
3470
+ function Companion_getInstance_8() {
3471
+ return Companion_instance_8;
3472
+ }
3473
+ function Formats_0() {
3474
+ }
3475
+ protoOf(Formats_0).u52 = function () {
3476
+ return get_ISO_YEAR_MONTH();
3477
+ };
3478
+ var Formats_instance_0;
3479
+ function Formats_getInstance_0() {
3480
+ return Formats_instance_0;
3481
+ }
3482
+ function YearMonth$_get_year_$ref_chp4n6() {
3483
+ return function (p0) {
3484
+ return p0.j55_1;
3485
+ };
3486
+ }
3487
+ function YearMonth$_get_month_$ref_9rphhd() {
3488
+ return function (p0) {
3489
+ return p0.g54();
3490
+ };
3491
+ }
3492
+ function YearMonth(year, month) {
3493
+ this.j55_1 = year;
3494
+ this.k55_1 = month;
3495
+ // Inline function 'kotlin.require' call
3496
+ if (!(1 <= month ? month <= 12 : false)) {
3497
+ var message = 'Month must be in 1..12, but was ' + month;
3498
+ throw IllegalArgumentException_init_$Create$(toString(message));
3499
+ }
3500
+ var containsLower = Companion_getInstance_7().h59_1.d54_1;
3501
+ var containsUpper = Companion_getInstance_7().i59_1.d54_1;
3502
+ var containsArg = this.j55_1;
3503
+ // Inline function 'kotlin.require' call
3504
+ if (!(containsLower <= containsArg ? containsArg <= containsUpper : false)) {
3505
+ var message_0 = 'Year ' + this.j55_1 + ' is out of range: ' + Companion_getInstance_7().h59_1.d54_1 + '..' + Companion_getInstance_7().i59_1.d54_1;
3506
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
3507
+ }
3508
+ }
3509
+ protoOf(YearMonth).g54 = function () {
3510
+ return Month_0(this.k55_1);
3511
+ };
3512
+ protoOf(YearMonth).x59 = function (other) {
3513
+ var tmp = KProperty1;
3514
+ var tmp_0 = getPropertyCallableRef('year', 1, tmp, YearMonth$_get_year_$ref_chp4n6(), null);
3515
+ var tmp_1 = KProperty1;
3516
+ return compareValuesBy(this, other, [tmp_0, getPropertyCallableRef('month', 1, tmp_1, YearMonth$_get_month_$ref_9rphhd(), null)]);
3517
+ };
3518
+ protoOf(YearMonth).d = function (other) {
3519
+ return this.x59(other instanceof YearMonth ? other : THROW_CCE());
3520
+ };
3521
+ protoOf(YearMonth).toString = function () {
3522
+ return Formats_instance_0.u52().v52(this);
3523
+ };
3524
+ protoOf(YearMonth).equals = function (other) {
3525
+ var tmp;
3526
+ var tmp_0;
3527
+ if (other instanceof YearMonth) {
3528
+ tmp_0 = this.j55_1 === other.j55_1;
3529
+ } else {
3530
+ tmp_0 = false;
3531
+ }
3532
+ if (tmp_0) {
3533
+ tmp = this.g54().equals(other.g54());
3534
+ } else {
3535
+ tmp = false;
3536
+ }
3537
+ return tmp;
3538
+ };
3539
+ protoOf(YearMonth).hashCode = function () {
3540
+ return imul(this.j55_1, 31) + this.g54().hashCode() | 0;
3541
+ };
3542
+ function safeAdd(a, b) {
3543
+ var sum = add(a, b);
3544
+ if ((a ^ sum) < 0n && (a ^ b) >= 0n) {
3545
+ throw ArithmeticException_init_$Create$('Addition overflows a long: ' + a.toString() + ' + ' + b.toString());
3546
+ }
3547
+ return sum;
3548
+ }
3549
+ function safeMultiply(a, b) {
3550
+ if (b === 1n) {
3551
+ return a;
3552
+ }
3553
+ if (a === 1n) {
3554
+ return b;
3555
+ }
3556
+ if (a === 0n || b === 0n) {
3557
+ return 0n;
3558
+ }
3559
+ var total = multiply(a, b);
3560
+ if (!(divide(total, b) === a) || (a === -9223372036854775808n && b === -1n) || (b === -9223372036854775808n && a === -1n)) {
3561
+ throw ArithmeticException_init_$Create$('Multiplication overflows a long: ' + a.toString() + ' * ' + b.toString());
3562
+ }
3563
+ return total;
3564
+ }
3565
+ function safeMultiply_0(a, b) {
3566
+ var total = multiply(fromInt(a), fromInt(b));
3567
+ if (total < -2147483648n || total > 2147483647n) {
3568
+ throw ArithmeticException_init_$Create$('Multiplication overflows an int: ' + a + ' * ' + b);
3569
+ }
3570
+ return convertToInt(total);
3571
+ }
2037
3572
  //region block: post-declaration
2038
- protoOf(Builder).z45 = chars;
2039
- protoOf(Builder).i23 = build;
2040
- protoOf(Builder).e47 = addFormatStructureForYearMonth;
2041
- protoOf(Builder).a46 = day;
2042
- protoOf(Builder).b46 = day$default;
2043
- protoOf(Builder).v45 = year;
2044
- protoOf(Builder).w45 = year$default;
2045
- protoOf(Builder).x45 = monthNumber;
2046
- protoOf(Builder).y45 = monthNumber$default;
2047
- protoOf(PropertyAccessor).n48 = getterNotNull;
2048
- protoOf(SpacePaddedFormatter).u45 = format$default;
2049
- protoOf(ConcatenatedFormatter).u45 = format$default;
2050
- protoOf(UnsignedIntFormatterStructure).u45 = format$default;
2051
- protoOf(SignedIntFormatterStructure).u45 = format$default;
2052
- protoOf(ConstantStringFormatterStructure).u45 = format$default;
3573
+ protoOf(Builder).k53 = chars;
3574
+ protoOf(Builder).a2k = build;
3575
+ protoOf(Builder).r54 = addFormatStructureForYearMonth;
3576
+ protoOf(Builder).l53 = day;
3577
+ protoOf(Builder).m53 = day$default;
3578
+ protoOf(Builder).g53 = year;
3579
+ protoOf(Builder).h53 = year$default;
3580
+ protoOf(Builder).i53 = monthNumber;
3581
+ protoOf(Builder).j53 = monthNumber$default;
3582
+ protoOf(Builder_0).k53 = chars;
3583
+ protoOf(Builder_0).a2k = build;
3584
+ protoOf(Builder_0).g53 = year;
3585
+ protoOf(Builder_0).h53 = year$default;
3586
+ protoOf(Builder_0).i53 = monthNumber;
3587
+ protoOf(Builder_0).j53 = monthNumber$default;
3588
+ protoOf(PropertyAccessor).j56 = getterNotNull;
3589
+ protoOf(SpacePaddedFormatter).e53 = format$default;
3590
+ protoOf(ConcatenatedFormatter).e53 = format$default;
3591
+ protoOf(UnsignedIntFormatterStructure).e53 = format$default;
3592
+ protoOf(SignedIntFormatterStructure).e53 = format$default;
3593
+ protoOf(ConstantStringFormatterStructure).e53 = format$default;
2053
3594
  //endregion
2054
3595
  //region block: init
2055
3596
  Companion_instance = new Companion();
3597
+ Companion_instance_0 = new Companion_0();
3598
+ Companion_instance_1 = new Companion_1();
3599
+ Companion_instance_2 = new Companion_2();
3600
+ Companion_instance_4 = new Companion_4();
3601
+ Companion_instance_5 = new Companion_5();
3602
+ ExpectedInt_instance = new ExpectedInt();
3603
+ Companion_instance_6 = new Companion_6();
3604
+ Companion_instance_8 = new Companion_8();
3605
+ Formats_instance_0 = new Formats_0();
2056
3606
  //endregion
2057
3607
  //region block: exports
2058
3608
  _.$_$ = _.$_$ || {};
2059
3609
  _.$_$.a = LocalDateSerializer_getInstance;
2060
- _.$_$.b = LocalDate;
2061
3610
  //endregion
2062
3611
  return _;
2063
3612
  }));