@solibo/home-api 1.1.9 → 1.1.10

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 (113) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3601 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/MultiplatformSettings-multiplatform-settings-no-arg.mjs +4 -0
  4. package/{MultiplatformSettings-multiplatform-settings.js.map → MultiplatformSettings-multiplatform-settings-no-arg.mjs.map} +1 -1
  5. package/MultiplatformSettings-multiplatform-settings.mjs +4 -0
  6. package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → MultiplatformSettings-multiplatform-settings.mjs.map} +1 -1
  7. package/kotlin-kotlin-stdlib.mjs +17369 -0
  8. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  9. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  10. package/{kotlinx-serialization-kotlinx-serialization-json-io.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  11. package/kotlinx-atomicfu.mjs +250 -0
  12. package/kotlinx-atomicfu.mjs.map +1 -0
  13. package/kotlinx-browser.mjs +8 -0
  14. package/{kotlinx-browser.js.map → kotlinx-browser.mjs.map} +1 -1
  15. package/kotlinx-coroutines-core.mjs +8888 -0
  16. package/kotlinx-coroutines-core.mjs.map +1 -0
  17. package/kotlinx-io-kotlinx-io-bytestring.mjs +202 -0
  18. package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
  19. package/kotlinx-io-kotlinx-io-core.mjs +2020 -0
  20. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  21. package/kotlinx-serialization-kotlinx-serialization-core.mjs +6045 -0
  22. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  23. package/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
  24. package/{MultiplatformSettings-multiplatform-settings-no-arg.js.map → kotlinx-serialization-kotlinx-serialization-json-io.mjs.map} +1 -1
  25. package/kotlinx-serialization-kotlinx-serialization-json.mjs +5061 -0
  26. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  27. package/ktor-ktor-client-auth.mjs +4 -0
  28. package/ktor-ktor-client-auth.mjs.map +1 -0
  29. package/ktor-ktor-client-content-negotiation.mjs +750 -0
  30. package/ktor-ktor-client-content-negotiation.mjs.map +1 -0
  31. package/ktor-ktor-client-core.mjs +9810 -0
  32. package/ktor-ktor-client-core.mjs.map +1 -0
  33. package/ktor-ktor-client-logging.mjs +4 -0
  34. package/ktor-ktor-client-logging.mjs.map +1 -0
  35. package/ktor-ktor-events.mjs +81 -0
  36. package/ktor-ktor-events.mjs.map +1 -0
  37. package/ktor-ktor-http-cio.mjs +2254 -0
  38. package/ktor-ktor-http-cio.mjs.map +1 -0
  39. package/ktor-ktor-http.mjs +3238 -0
  40. package/ktor-ktor-http.mjs.map +1 -0
  41. package/ktor-ktor-io.mjs +3536 -0
  42. package/ktor-ktor-io.mjs.map +1 -0
  43. package/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
  44. package/{ktor-ktor-serialization-kotlinx-json.js.map → ktor-ktor-serialization-kotlinx-json.mjs.map} +1 -1
  45. package/ktor-ktor-serialization-kotlinx.mjs +843 -0
  46. package/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
  47. package/ktor-ktor-serialization.mjs +364 -0
  48. package/ktor-ktor-serialization.mjs.map +1 -0
  49. package/ktor-ktor-sse.mjs +4 -0
  50. package/ktor-ktor-sse.mjs.map +1 -0
  51. package/ktor-ktor-utils.mjs +2620 -0
  52. package/ktor-ktor-utils.mjs.map +1 -0
  53. package/ktor-ktor-websocket-serialization.mjs +4 -0
  54. package/ktor-ktor-websocket-serialization.mjs.map +1 -0
  55. package/ktor-ktor-websockets.mjs +2535 -0
  56. package/ktor-ktor-websockets.mjs.map +1 -0
  57. package/package.json +2 -3
  58. package/solibo-sdk-sdk-home-api.d.mts +13419 -0
  59. package/solibo-sdk-sdk-home-api.mjs +199394 -0
  60. package/solibo-sdk-sdk-home-api.mjs.map +1 -0
  61. package/Kotlin-DateTime-library-kotlinx-datetime.js +0 -3614
  62. package/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
  63. package/MultiplatformSettings-multiplatform-settings-no-arg.js +0 -15
  64. package/MultiplatformSettings-multiplatform-settings.js +0 -15
  65. package/kotlin-kotlin-stdlib.js +0 -17392
  66. package/kotlin-kotlin-stdlib.js.map +0 -1
  67. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
  68. package/kotlinx-atomicfu.js +0 -262
  69. package/kotlinx-atomicfu.js.map +0 -1
  70. package/kotlinx-browser.js +0 -19
  71. package/kotlinx-coroutines-core.js +0 -8901
  72. package/kotlinx-coroutines-core.js.map +0 -1
  73. package/kotlinx-io-kotlinx-io-bytestring.js +0 -214
  74. package/kotlinx-io-kotlinx-io-bytestring.js.map +0 -1
  75. package/kotlinx-io-kotlinx-io-core.js +0 -2035
  76. package/kotlinx-io-kotlinx-io-core.js.map +0 -1
  77. package/kotlinx-serialization-kotlinx-serialization-core.js +0 -6057
  78. package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  79. package/kotlinx-serialization-kotlinx-serialization-json-io.js +0 -15
  80. package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5074
  81. package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  82. package/ktor-ktor-client-auth.js +0 -15
  83. package/ktor-ktor-client-auth.js.map +0 -1
  84. package/ktor-ktor-client-content-negotiation.js +0 -767
  85. package/ktor-ktor-client-content-negotiation.js.map +0 -1
  86. package/ktor-ktor-client-core.js +0 -9839
  87. package/ktor-ktor-client-core.js.map +0 -1
  88. package/ktor-ktor-client-logging.js +0 -15
  89. package/ktor-ktor-client-logging.js.map +0 -1
  90. package/ktor-ktor-events.js +0 -94
  91. package/ktor-ktor-events.js.map +0 -1
  92. package/ktor-ktor-http-cio.js +0 -2271
  93. package/ktor-ktor-http-cio.js.map +0 -1
  94. package/ktor-ktor-http.js +0 -3253
  95. package/ktor-ktor-http.js.map +0 -1
  96. package/ktor-ktor-io.js +0 -3556
  97. package/ktor-ktor-io.js.map +0 -1
  98. package/ktor-ktor-serialization-kotlinx-json.js +0 -67
  99. package/ktor-ktor-serialization-kotlinx.js +0 -865
  100. package/ktor-ktor-serialization-kotlinx.js.map +0 -1
  101. package/ktor-ktor-serialization.js +0 -379
  102. package/ktor-ktor-serialization.js.map +0 -1
  103. package/ktor-ktor-sse.js +0 -15
  104. package/ktor-ktor-sse.js.map +0 -1
  105. package/ktor-ktor-utils.js +0 -2639
  106. package/ktor-ktor-utils.js.map +0 -1
  107. package/ktor-ktor-websocket-serialization.js +0 -15
  108. package/ktor-ktor-websocket-serialization.js.map +0 -1
  109. package/ktor-ktor-websockets.js +0 -2552
  110. package/ktor-ktor-websockets.js.map +0 -1
  111. package/solibo-sdk-sdk-home-api.d.ts +0 -12624
  112. package/solibo-sdk-sdk-home-api.js +0 -203510
  113. package/solibo-sdk-sdk-home-api.js.map +0 -1
@@ -0,0 +1,3601 @@
1
+ import {
2
+ protoOf180f3jzyo7rfj as protoOf,
3
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
4
+ toString1pkumu07cwy4m as toString,
5
+ IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
6
+ Unit_instance28fytmsmm6r23 as Unit_instance,
7
+ fromInt2ii0rejb1w62w as fromInt,
8
+ modulooi4g1kq3dmtt as modulo,
9
+ dividelr0uqtdj497z as divide,
10
+ convertToInty04h231mmjoh as convertToInt,
11
+ shiftRight2gqph14wydb8s as shiftRight,
12
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
13
+ VOID3gxj6tk5isa35 as VOID,
14
+ enumEntries20mr21zbe3az4 as enumEntries,
15
+ Enum3alwj03lh1n41 as Enum,
16
+ IllegalArgumentException_init_$Init$2okypt6yqrxs0 as IllegalArgumentException_init_$Init$,
17
+ objectCreate1ve4bgxiu4x98 as objectCreate,
18
+ captureStack1fzi4aczwc4hg as captureStack,
19
+ IllegalArgumentException_init_$Init$36j4g3r1a2ezi as IllegalArgumentException_init_$Init$_0,
20
+ IllegalArgumentException_init_$Init$1p7w1dj600dvq as IllegalArgumentException_init_$Init$_1,
21
+ IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
22
+ RuntimeException_init_$Init$1acxq2g1g5gzr as RuntimeException_init_$Init$,
23
+ RuntimeException_init_$Init$p7pf7j2lj7nl as RuntimeException_init_$Init$_0,
24
+ RuntimeException1r3t0zl97011n as RuntimeException,
25
+ StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
26
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
27
+ toString3dhdjl9yf50de as toString_0,
28
+ KProperty02ce7r476m8633 as KProperty0,
29
+ getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
30
+ hashCodeq5arwsb9dgti as hashCode,
31
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
32
+ KMutableProperty11e8g1gb0ecb9j as KMutableProperty1,
33
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
34
+ _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
35
+ lazy2hsh8ze7j6ikd as lazy,
36
+ getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
37
+ ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$,
38
+ noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
39
+ isInterface3d6p8outrmvmk as isInterface,
40
+ equals2au1ep9vhcato as equals,
41
+ IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
42
+ toString30pk9tzaqopn as toString_1,
43
+ getStringHashCode26igk1bx568vk as getStringHashCode,
44
+ charSequenceLength3278n89t01tmv as charSequenceLength,
45
+ charCodeAt1yspne1d8erbm as charCodeAt,
46
+ substringiqarkczpya5m as substring,
47
+ listOfvhqybd2zx248 as listOf,
48
+ substring3saq8ornu0luv as substring_0,
49
+ get_lastIndexld83bqhfgcdd as get_lastIndex,
50
+ emptyList1g2z5xcrvp2zy as emptyList,
51
+ joinToString1cxrrlmo0chqs as joinToString,
52
+ collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
53
+ ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$_0,
54
+ singleo93pzdgfc557 as single,
55
+ abs1kdzbjes1idip as abs,
56
+ charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
57
+ numberRangeToNumber25vse2rgp6rs8 as numberRangeToNumber,
58
+ charSequenceGet1vxk1y5n17t1z as charSequenceGet,
59
+ mutableListOf6oorvk2mtdmp as mutableListOf,
60
+ removeLastOrNull3odnlbetbttd4 as removeLastOrNull,
61
+ sortWith4fnm6b3vw03s as sortWith,
62
+ FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
63
+ Comparator2b3maoeh98xtg as Comparator,
64
+ compareValues1n2ayl87ihzfk as compareValues,
65
+ Exceptiondt2hlxn7j7vw as Exception,
66
+ Exception_init_$Init$2jymvyiuv5u42 as Exception_init_$Init$,
67
+ StringBuilder_init_$Create$39ouzl6b47q8d as StringBuilder_init_$Create$_0,
68
+ joinTo3lkanfaxbzac2 as joinTo,
69
+ plus310ted5e4i90h as plus,
70
+ toMutableList20rdgwi7d3cwi as toMutableList,
71
+ addAll1k27qatfgp3k5 as addAll,
72
+ Collection1k04j3hzsbod0 as Collection,
73
+ firstOrNull1982767dljvdy as firstOrNull,
74
+ drop3na99dw9feawf as drop,
75
+ listOf1jh22dvmctj1r as listOf_0,
76
+ repeat2w4c6j8zoq09o as repeat,
77
+ checkCountOverflow1ro2fe1r4xvgf as checkCountOverflow,
78
+ Char__minus_impl_a2frrh1dka2ec6zg6dk as Char__minus_impl_a2frrh,
79
+ PrimitiveClasses_getInstance6p7zmos9nw3c as PrimitiveClasses_getInstance,
80
+ arrayOf1akklvh2at202 as arrayOf,
81
+ createKType31ecntyyaay3k as createKType,
82
+ LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
83
+ lazy1261dae0bgscp as lazy_0,
84
+ KProperty1ca4yb4wlo496 as KProperty1,
85
+ getKClass3t8tygqu4lcxf as getKClass,
86
+ add2suhfggl4zvkk as add,
87
+ subtract2orl8z9upxd9l as subtract,
88
+ multiply2k9eolhnz1bjv as multiply,
89
+ negate13xrbakfwasjy as negate,
90
+ numberToLong2pakxeg38estk as numberToLong,
91
+ get_ONEazvfdh9ju3d4 as get_ONE,
92
+ compareTo3ankvs086tmwq as compareTo,
93
+ ClosedRangehokgr73im9z3 as ClosedRange,
94
+ contains2c50nlxg7en7o as contains,
95
+ Comparable198qfk8pnblz0 as Comparable,
96
+ ArithmeticException18dajwq7kbp38 as ArithmeticException,
97
+ compareValuesBy2ycqeh37x2wfm as compareValuesBy,
98
+ ArithmeticException_init_$Create$cn5qj1knrk0v as ArithmeticException_init_$Create$,
99
+ } from './kotlin-kotlin-stdlib.mjs';
100
+ import {
101
+ buildClassSerialDescriptors2a6xdp6mrtw as buildClassSerialDescriptor,
102
+ serializer1hwzc6m64v1op as serializer,
103
+ KSerializerzf77vz1967fq as KSerializer,
104
+ MissingFieldException_init_$Create$1jct868unfeq5 as MissingFieldException_init_$Create$,
105
+ SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
106
+ AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer,
107
+ SerializationException_init_$Create$2gf2fbfh3gfxm as SerializationException_init_$Create$,
108
+ STRING_getInstance2dgfp43qdvxn4 as STRING_getInstance,
109
+ PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
110
+ } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
111
+ //region block: imports
112
+ var imul = Math.imul;
113
+ //endregion
114
+ //region block: pre-declaration
115
+ initMetadataForCompanion(Companion);
116
+ initMetadataForCompanion(Companion_0);
117
+ initMetadataForCompanion(Companion_1);
118
+ initMetadataForCompanion(Companion_2);
119
+ initMetadataForClass(DateTimeUnit, 'DateTimeUnit', VOID, VOID, VOID, VOID, VOID, {0: DateTimeUnitSerializer_getInstance});
120
+ initMetadataForClass(TimeBased, 'TimeBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: TimeBasedDateTimeUnitSerializer_getInstance});
121
+ initMetadataForClass(DateBased, 'DateBased', VOID, DateTimeUnit, VOID, VOID, VOID, {0: DateBasedDateTimeUnitSerializer_getInstance});
122
+ initMetadataForClass(DayBased, 'DayBased', VOID, DateBased, VOID, VOID, VOID, {0: DayBasedDateTimeUnitSerializer_getInstance});
123
+ initMetadataForClass(MonthBased, 'MonthBased', VOID, DateBased, VOID, VOID, VOID, {0: MonthBasedDateTimeUnitSerializer_getInstance});
124
+ initMetadataForCompanion(Companion_3);
125
+ initMetadataForClass(DayOfWeek, 'DayOfWeek', VOID, Enum);
126
+ initMetadataForClass(DateTimeFormatException, 'DateTimeFormatException', DateTimeFormatException_init_$Create$, IllegalArgumentException);
127
+ initMetadataForClass(DateTimeArithmeticException, 'DateTimeArithmeticException', DateTimeArithmeticException_init_$Create$, RuntimeException);
128
+ initMetadataForClass(Month, 'Month', VOID, Enum);
129
+ initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
130
+ initMetadataForClass(Padding, 'Padding', VOID, Enum);
131
+ function year$default(padding, $super) {
132
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
133
+ var tmp;
134
+ if ($super === VOID) {
135
+ this.z54(padding);
136
+ tmp = Unit_instance;
137
+ } else {
138
+ tmp = $super.z54.call(this, padding);
139
+ }
140
+ return tmp;
141
+ }
142
+ function monthNumber$default(padding, $super) {
143
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
144
+ var tmp;
145
+ if ($super === VOID) {
146
+ this.b55(padding);
147
+ tmp = Unit_instance;
148
+ } else {
149
+ tmp = $super.b55.call(this, padding);
150
+ }
151
+ return tmp;
152
+ }
153
+ initMetadataForInterface(WithYearMonth, 'WithYearMonth');
154
+ function day$default(padding, $super) {
155
+ padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
156
+ var tmp;
157
+ if ($super === VOID) {
158
+ this.e55(padding);
159
+ tmp = Unit_instance;
160
+ } else {
161
+ tmp = $super.e55.call(this, padding);
162
+ }
163
+ return tmp;
164
+ }
165
+ initMetadataForInterface(WithDate, 'WithDate', VOID, VOID, [WithYearMonth]);
166
+ function chars(value) {
167
+ return this.g55().i55(new ConstantFormatStructure(value));
168
+ }
169
+ function build() {
170
+ return new CachedFormatStructure(this.g55().i2l().j55_1);
171
+ }
172
+ initMetadataForInterface(AbstractDateTimeFormatBuilder, 'AbstractDateTimeFormatBuilder');
173
+ initMetadataForClass(IncompleteLocalDate, 'IncompleteLocalDate', IncompleteLocalDate);
174
+ initMetadataForCompanion(Companion_4);
175
+ function year(padding) {
176
+ return this.k56(new BasicFormatStructure(new YearDirective(padding)));
177
+ }
178
+ function monthNumber(padding) {
179
+ return this.k56(new BasicFormatStructure(new MonthDirective(padding)));
180
+ }
181
+ initMetadataForInterface(AbstractWithYearMonthBuilder, 'AbstractWithYearMonthBuilder', VOID, VOID, [WithYearMonth]);
182
+ function addFormatStructureForYearMonth(structure) {
183
+ this.j56(structure);
184
+ }
185
+ function day(padding) {
186
+ return this.j56(new BasicFormatStructure(new DayDirective(padding)));
187
+ }
188
+ initMetadataForInterface(AbstractWithDateBuilder, 'AbstractWithDateBuilder', VOID, VOID, [AbstractWithYearMonthBuilder, WithDate]);
189
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateBuilder]);
190
+ initMetadataForClass(LocalDateFormat, 'LocalDateFormat', VOID, AbstractDateTimeFormat);
191
+ initMetadataForClass(UnsignedIntFieldFormatDirective, 'UnsignedIntFieldFormatDirective');
192
+ initMetadataForClass(DayDirective, 'DayDirective', VOID, UnsignedIntFieldFormatDirective);
193
+ initMetadataForObject(DateFields, 'DateFields');
194
+ initMetadataForClass(IncompleteYearMonth, 'IncompleteYearMonth', IncompleteYearMonth);
195
+ initMetadataForCompanion(Companion_5);
196
+ initMetadataForClass(Builder_0, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithYearMonthBuilder]);
197
+ initMetadataForClass(YearMonthFormat, 'YearMonthFormat', VOID, AbstractDateTimeFormat);
198
+ initMetadataForClass(SignedIntFieldFormatDirective, 'SignedIntFieldFormatDirective');
199
+ initMetadataForClass(YearDirective, 'YearDirective', VOID, SignedIntFieldFormatDirective);
200
+ initMetadataForClass(MonthDirective, 'MonthDirective', VOID, UnsignedIntFieldFormatDirective);
201
+ initMetadataForObject(YearMonthFields, 'YearMonthFields');
202
+ initMetadataForClass(AppendableFormatStructure, 'AppendableFormatStructure', AppendableFormatStructure);
203
+ initMetadataForClass(AbstractFieldSpec, 'AbstractFieldSpec');
204
+ initMetadataForClass(GenericFieldSpec, 'GenericFieldSpec', VOID, AbstractFieldSpec);
205
+ function getterNotNull(container) {
206
+ var tmp0_elvis_lhs = this.u58(container);
207
+ var tmp;
208
+ if (tmp0_elvis_lhs == null) {
209
+ throw IllegalStateException_init_$Create$('Field ' + this.m() + ' is not set');
210
+ } else {
211
+ tmp = tmp0_elvis_lhs;
212
+ }
213
+ return tmp;
214
+ }
215
+ initMetadataForInterface(Accessor, 'Accessor');
216
+ initMetadataForClass(PropertyAccessor, 'PropertyAccessor', VOID, VOID, [Accessor]);
217
+ initMetadataForClass(UnsignedFieldSpec, 'UnsignedFieldSpec', VOID, AbstractFieldSpec);
218
+ initMetadataForClass(ConcatenatedFormatStructure, 'ConcatenatedFormatStructure');
219
+ initMetadataForClass(CachedFormatStructure, 'CachedFormatStructure', VOID, ConcatenatedFormatStructure);
220
+ initMetadataForInterface(NonConcatenatedFormatStructure, 'NonConcatenatedFormatStructure');
221
+ initMetadataForClass(BasicFormatStructure, 'BasicFormatStructure', VOID, VOID, [NonConcatenatedFormatStructure]);
222
+ initMetadataForClass(ConstantFormatStructure, 'ConstantFormatStructure', VOID, VOID, [NonConcatenatedFormatStructure]);
223
+ function format$default(obj, builder, minusNotRequired, $super) {
224
+ minusNotRequired = minusNotRequired === VOID ? false : minusNotRequired;
225
+ var tmp;
226
+ if ($super === VOID) {
227
+ this.x58(obj, builder, minusNotRequired);
228
+ tmp = Unit_instance;
229
+ } else {
230
+ tmp = $super.x58.call(this, obj, builder, minusNotRequired);
231
+ }
232
+ return tmp;
233
+ }
234
+ initMetadataForInterface(FormatterStructure, 'FormatterStructure');
235
+ initMetadataForClass(SpacePaddedFormatter, 'SpacePaddedFormatter', VOID, VOID, [FormatterStructure]);
236
+ initMetadataForClass(ConcatenatedFormatter, 'ConcatenatedFormatter', VOID, VOID, [FormatterStructure]);
237
+ initMetadataForClass(UnsignedIntFormatterStructure, 'UnsignedIntFormatterStructure', VOID, VOID, [FormatterStructure]);
238
+ initMetadataForClass(SignedIntFormatterStructure, 'SignedIntFormatterStructure', VOID, VOID, [FormatterStructure]);
239
+ initMetadataForClass(ConstantStringFormatterStructure, 'ConstantStringFormatterStructure', VOID, VOID, [FormatterStructure]);
240
+ initMetadataForClass(NumberConsumer, 'NumberConsumer');
241
+ initMetadataForClass(ConstantNumberConsumer, 'ConstantNumberConsumer', VOID, NumberConsumer);
242
+ initMetadataForObject(ExpectedInt, 'ExpectedInt');
243
+ initMetadataForClass(TooManyDigits, 'TooManyDigits');
244
+ initMetadataForClass(TooFewDigits, 'TooFewDigits');
245
+ initMetadataForClass(WrongConstant, 'WrongConstant');
246
+ initMetadataForClass(Conflicting, 'Conflicting');
247
+ initMetadataForClass(UnsignedIntConsumer, 'UnsignedIntConsumer', VOID, NumberConsumer);
248
+ initMetadataForClass(ParseError, 'ParseError');
249
+ initMetadataForCompanion(Companion_6);
250
+ initMetadataForClass(ParserState, 'ParserState');
251
+ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
252
+ initMetadataForClass(Parser, 'Parser');
253
+ initMetadataForClass(ParserStructure, 'ParserStructure');
254
+ initMetadataForClass(ParseException, 'ParseException', VOID, Exception);
255
+ initMetadataForClass(NumberSpanParserOperation, 'NumberSpanParserOperation');
256
+ initMetadataForClass(PlainStringParserOperation, 'PlainStringParserOperation');
257
+ initMetadataForClass(UnconditionalModification, 'UnconditionalModification');
258
+ initMetadataForObject(TimeBasedDateTimeUnitSerializer, 'TimeBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
259
+ initMetadataForObject(DateBasedDateTimeUnitSerializer, 'DateBasedDateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
260
+ initMetadataForObject(DayBasedDateTimeUnitSerializer, 'DayBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
261
+ initMetadataForObject(MonthBasedDateTimeUnitSerializer, 'MonthBasedDateTimeUnitSerializer', VOID, VOID, [KSerializer]);
262
+ initMetadataForObject(DateTimeUnitSerializer, 'DateTimeUnitSerializer', VOID, AbstractPolymorphicSerializer);
263
+ initMetadataForObject(LocalDateSerializer, 'LocalDateSerializer', VOID, VOID, [KSerializer]);
264
+ initMetadataForObject(YearMonthSerializer, 'YearMonthSerializer', VOID, VOID, [KSerializer]);
265
+ initMetadataForCompanion(Companion_7);
266
+ initMetadataForObject(Formats, 'Formats');
267
+ initMetadataForClass(LocalDate, 'LocalDate', VOID, VOID, [Comparable], VOID, VOID, {0: LocalDateSerializer_getInstance});
268
+ initMetadataForCompanion(Companion_8);
269
+ initMetadataForObject(Formats_0, 'Formats');
270
+ initMetadataForClass(YearMonth, 'YearMonth', VOID, VOID, [Comparable], VOID, VOID, {0: YearMonthSerializer_getInstance});
271
+ //endregion
272
+ function Companion() {
273
+ }
274
+ var Companion_instance;
275
+ function Companion_getInstance() {
276
+ return Companion_instance;
277
+ }
278
+ function Companion_0() {
279
+ }
280
+ var Companion_instance_0;
281
+ function Companion_getInstance_0() {
282
+ return Companion_instance_0;
283
+ }
284
+ function Companion_1() {
285
+ }
286
+ var Companion_instance_1;
287
+ function Companion_getInstance_1() {
288
+ return Companion_instance_1;
289
+ }
290
+ function Companion_2() {
291
+ }
292
+ var Companion_instance_2;
293
+ function Companion_getInstance_2() {
294
+ return Companion_instance_2;
295
+ }
296
+ function TimeBased(nanoseconds) {
297
+ DateTimeUnit.call(this);
298
+ this.s53_1 = nanoseconds;
299
+ // Inline function 'kotlin.require' call
300
+ if (!(this.s53_1 > 0n)) {
301
+ var message = 'Unit duration must be positive, but was ' + this.s53_1.toString() + ' ns.';
302
+ throw IllegalArgumentException_init_$Create$(toString(message));
303
+ }
304
+ if (modulo(this.s53_1, 3600000000000n) === 0n) {
305
+ this.t53_1 = 'HOUR';
306
+ this.u53_1 = divide(this.s53_1, 3600000000000n);
307
+ } else {
308
+ if (modulo(this.s53_1, 60000000000n) === 0n) {
309
+ this.t53_1 = 'MINUTE';
310
+ this.u53_1 = divide(this.s53_1, 60000000000n);
311
+ } else {
312
+ var tmp0 = this.s53_1;
313
+ // Inline function 'kotlin.Long.rem' call
314
+ var other = 1000000000;
315
+ if (modulo(tmp0, fromInt(other)) === 0n) {
316
+ this.t53_1 = 'SECOND';
317
+ var tmp = this;
318
+ var tmp0_0 = this.s53_1;
319
+ // Inline function 'kotlin.Long.div' call
320
+ var other_0 = 1000000000;
321
+ tmp.u53_1 = divide(tmp0_0, fromInt(other_0));
322
+ } else {
323
+ // Inline function 'kotlin.Long.rem' call
324
+ var this_0 = this.s53_1;
325
+ if (modulo(this_0, fromInt(1000000)) === 0n) {
326
+ this.t53_1 = 'MILLISECOND';
327
+ var tmp_0 = this;
328
+ // Inline function 'kotlin.Long.div' call
329
+ var this_1 = this.s53_1;
330
+ tmp_0.u53_1 = divide(this_1, fromInt(1000000));
331
+ } else {
332
+ // Inline function 'kotlin.Long.rem' call
333
+ var this_2 = this.s53_1;
334
+ if (modulo(this_2, fromInt(1000)) === 0n) {
335
+ this.t53_1 = 'MICROSECOND';
336
+ var tmp_1 = this;
337
+ // Inline function 'kotlin.Long.div' call
338
+ var this_3 = this.s53_1;
339
+ tmp_1.u53_1 = divide(this_3, fromInt(1000));
340
+ } else {
341
+ this.t53_1 = 'NANOSECOND';
342
+ this.u53_1 = this.s53_1;
343
+ }
344
+ }
345
+ }
346
+ }
347
+ }
348
+ }
349
+ protoOf(TimeBased).v53 = function (scalar) {
350
+ return new TimeBased(safeMultiply(this.s53_1, fromInt(scalar)));
351
+ };
352
+ protoOf(TimeBased).equals = function (other) {
353
+ var tmp;
354
+ if (this === other) {
355
+ tmp = true;
356
+ } else {
357
+ var tmp_0;
358
+ if (other instanceof TimeBased) {
359
+ tmp_0 = this.s53_1 === other.s53_1;
360
+ } else {
361
+ tmp_0 = false;
362
+ }
363
+ tmp = tmp_0;
364
+ }
365
+ return tmp;
366
+ };
367
+ protoOf(TimeBased).hashCode = function () {
368
+ return convertToInt(this.s53_1) ^ convertToInt(shiftRight(this.s53_1, 32));
369
+ };
370
+ protoOf(TimeBased).toString = function () {
371
+ return this.w53(this.u53_1, this.t53_1);
372
+ };
373
+ function DateBased() {
374
+ DateTimeUnit.call(this);
375
+ }
376
+ function DayBased(days) {
377
+ DateBased.call(this);
378
+ this.y53_1 = days;
379
+ // Inline function 'kotlin.require' call
380
+ if (!(this.y53_1 > 0)) {
381
+ var message = 'Unit duration must be positive, but was ' + this.y53_1 + ' days.';
382
+ throw IllegalArgumentException_init_$Create$(toString(message));
383
+ }
384
+ }
385
+ protoOf(DayBased).v53 = function (scalar) {
386
+ return new DayBased(safeMultiply_0(this.y53_1, scalar));
387
+ };
388
+ protoOf(DayBased).equals = function (other) {
389
+ var tmp;
390
+ if (this === other) {
391
+ tmp = true;
392
+ } else {
393
+ var tmp_0;
394
+ if (other instanceof DayBased) {
395
+ tmp_0 = this.y53_1 === other.y53_1;
396
+ } else {
397
+ tmp_0 = false;
398
+ }
399
+ tmp = tmp_0;
400
+ }
401
+ return tmp;
402
+ };
403
+ protoOf(DayBased).hashCode = function () {
404
+ return this.y53_1 ^ 65536;
405
+ };
406
+ protoOf(DayBased).toString = function () {
407
+ return (this.y53_1 % 7 | 0) === 0 ? this.x53(this.y53_1 / 7 | 0, 'WEEK') : this.x53(this.y53_1, 'DAY');
408
+ };
409
+ function MonthBased(months) {
410
+ DateBased.call(this);
411
+ this.z53_1 = months;
412
+ // Inline function 'kotlin.require' call
413
+ if (!(this.z53_1 > 0)) {
414
+ var message = 'Unit duration must be positive, but was ' + this.z53_1 + ' months.';
415
+ throw IllegalArgumentException_init_$Create$(toString(message));
416
+ }
417
+ }
418
+ protoOf(MonthBased).v53 = function (scalar) {
419
+ return new MonthBased(safeMultiply_0(this.z53_1, scalar));
420
+ };
421
+ protoOf(MonthBased).equals = function (other) {
422
+ var tmp;
423
+ if (this === other) {
424
+ tmp = true;
425
+ } else {
426
+ var tmp_0;
427
+ if (other instanceof MonthBased) {
428
+ tmp_0 = this.z53_1 === other.z53_1;
429
+ } else {
430
+ tmp_0 = false;
431
+ }
432
+ tmp = tmp_0;
433
+ }
434
+ return tmp;
435
+ };
436
+ protoOf(MonthBased).hashCode = function () {
437
+ return this.z53_1 ^ 131072;
438
+ };
439
+ protoOf(MonthBased).toString = function () {
440
+ return (this.z53_1 % 1200 | 0) === 0 ? this.x53(this.z53_1 / 1200 | 0, 'CENTURY') : (this.z53_1 % 12 | 0) === 0 ? this.x53(this.z53_1 / 12 | 0, 'YEAR') : (this.z53_1 % 3 | 0) === 0 ? this.x53(this.z53_1 / 3 | 0, 'QUARTER') : this.x53(this.z53_1, 'MONTH');
441
+ };
442
+ function Companion_3() {
443
+ Companion_instance_3 = this;
444
+ this.a54_1 = new TimeBased(1n);
445
+ this.b54_1 = this.a54_1.v53(1000);
446
+ this.c54_1 = this.b54_1.v53(1000);
447
+ this.d54_1 = this.c54_1.v53(1000);
448
+ this.e54_1 = this.d54_1.v53(60);
449
+ this.f54_1 = this.e54_1.v53(60);
450
+ this.g54_1 = new DayBased(1);
451
+ this.h54_1 = this.g54_1.v53(7);
452
+ this.i54_1 = new MonthBased(1);
453
+ this.j54_1 = this.i54_1.v53(3);
454
+ this.k54_1 = this.i54_1.v53(12);
455
+ this.l54_1 = this.k54_1.v53(100);
456
+ }
457
+ var Companion_instance_3;
458
+ function Companion_getInstance_3() {
459
+ if (Companion_instance_3 == null)
460
+ new Companion_3();
461
+ return Companion_instance_3;
462
+ }
463
+ function DateTimeUnit() {
464
+ Companion_getInstance_3();
465
+ }
466
+ protoOf(DateTimeUnit).x53 = function (value, unit) {
467
+ return value === 1 ? unit : '' + value + '-' + unit;
468
+ };
469
+ protoOf(DateTimeUnit).w53 = function (value, unit) {
470
+ return value === 1n ? unit : value.toString() + '-' + unit;
471
+ };
472
+ function get_isoDayNumber(_this__u8e3s4) {
473
+ return _this__u8e3s4.a1_1 + 1 | 0;
474
+ }
475
+ var DayOfWeek_MONDAY_instance;
476
+ var DayOfWeek_TUESDAY_instance;
477
+ var DayOfWeek_WEDNESDAY_instance;
478
+ var DayOfWeek_THURSDAY_instance;
479
+ var DayOfWeek_FRIDAY_instance;
480
+ var DayOfWeek_SATURDAY_instance;
481
+ var DayOfWeek_SUNDAY_instance;
482
+ function values() {
483
+ return [DayOfWeek_MONDAY_getInstance(), DayOfWeek_TUESDAY_getInstance(), DayOfWeek_WEDNESDAY_getInstance(), DayOfWeek_THURSDAY_getInstance(), DayOfWeek_FRIDAY_getInstance(), DayOfWeek_SATURDAY_getInstance(), DayOfWeek_SUNDAY_getInstance()];
484
+ }
485
+ function get_entries() {
486
+ if ($ENTRIES == null)
487
+ $ENTRIES = enumEntries(values());
488
+ return $ENTRIES;
489
+ }
490
+ var DayOfWeek_entriesInitialized;
491
+ function DayOfWeek_initEntries() {
492
+ if (DayOfWeek_entriesInitialized)
493
+ return Unit_instance;
494
+ DayOfWeek_entriesInitialized = true;
495
+ DayOfWeek_MONDAY_instance = new DayOfWeek('MONDAY', 0);
496
+ DayOfWeek_TUESDAY_instance = new DayOfWeek('TUESDAY', 1);
497
+ DayOfWeek_WEDNESDAY_instance = new DayOfWeek('WEDNESDAY', 2);
498
+ DayOfWeek_THURSDAY_instance = new DayOfWeek('THURSDAY', 3);
499
+ DayOfWeek_FRIDAY_instance = new DayOfWeek('FRIDAY', 4);
500
+ DayOfWeek_SATURDAY_instance = new DayOfWeek('SATURDAY', 5);
501
+ DayOfWeek_SUNDAY_instance = new DayOfWeek('SUNDAY', 6);
502
+ }
503
+ var $ENTRIES;
504
+ function DayOfWeek(name, ordinal) {
505
+ Enum.call(this, name, ordinal);
506
+ }
507
+ function DayOfWeek_0(isoDayNumber) {
508
+ // Inline function 'kotlin.require' call
509
+ if (!(1 <= isoDayNumber ? isoDayNumber <= 7 : false)) {
510
+ var message = 'Expected ISO day-of-week number in 1..7, got ' + isoDayNumber;
511
+ throw IllegalArgumentException_init_$Create$(toString(message));
512
+ }
513
+ return get_entries().h1(isoDayNumber - 1 | 0);
514
+ }
515
+ function DayOfWeek_MONDAY_getInstance() {
516
+ DayOfWeek_initEntries();
517
+ return DayOfWeek_MONDAY_instance;
518
+ }
519
+ function DayOfWeek_TUESDAY_getInstance() {
520
+ DayOfWeek_initEntries();
521
+ return DayOfWeek_TUESDAY_instance;
522
+ }
523
+ function DayOfWeek_WEDNESDAY_getInstance() {
524
+ DayOfWeek_initEntries();
525
+ return DayOfWeek_WEDNESDAY_instance;
526
+ }
527
+ function DayOfWeek_THURSDAY_getInstance() {
528
+ DayOfWeek_initEntries();
529
+ return DayOfWeek_THURSDAY_instance;
530
+ }
531
+ function DayOfWeek_FRIDAY_getInstance() {
532
+ DayOfWeek_initEntries();
533
+ return DayOfWeek_FRIDAY_instance;
534
+ }
535
+ function DayOfWeek_SATURDAY_getInstance() {
536
+ DayOfWeek_initEntries();
537
+ return DayOfWeek_SATURDAY_instance;
538
+ }
539
+ function DayOfWeek_SUNDAY_getInstance() {
540
+ DayOfWeek_initEntries();
541
+ return DayOfWeek_SUNDAY_instance;
542
+ }
543
+ function DateTimeFormatException_init_$Init$($this) {
544
+ IllegalArgumentException_init_$Init$($this);
545
+ DateTimeFormatException.call($this);
546
+ return $this;
547
+ }
548
+ function DateTimeFormatException_init_$Create$() {
549
+ var tmp = DateTimeFormatException_init_$Init$(objectCreate(protoOf(DateTimeFormatException)));
550
+ captureStack(tmp, DateTimeFormatException_init_$Create$);
551
+ return tmp;
552
+ }
553
+ function DateTimeFormatException_init_$Init$_0(message, $this) {
554
+ IllegalArgumentException_init_$Init$_0(message, $this);
555
+ DateTimeFormatException.call($this);
556
+ return $this;
557
+ }
558
+ function DateTimeFormatException_init_$Create$_0(message) {
559
+ var tmp = DateTimeFormatException_init_$Init$_0(message, objectCreate(protoOf(DateTimeFormatException)));
560
+ captureStack(tmp, DateTimeFormatException_init_$Create$_0);
561
+ return tmp;
562
+ }
563
+ function DateTimeFormatException_init_$Init$_1(message, cause, $this) {
564
+ IllegalArgumentException_init_$Init$_1(message, cause, $this);
565
+ DateTimeFormatException.call($this);
566
+ return $this;
567
+ }
568
+ function DateTimeFormatException_init_$Create$_1(message, cause) {
569
+ var tmp = DateTimeFormatException_init_$Init$_1(message, cause, objectCreate(protoOf(DateTimeFormatException)));
570
+ captureStack(tmp, DateTimeFormatException_init_$Create$_1);
571
+ return tmp;
572
+ }
573
+ function DateTimeFormatException() {
574
+ captureStack(this, DateTimeFormatException);
575
+ }
576
+ function DateTimeArithmeticException_init_$Init$($this) {
577
+ RuntimeException_init_$Init$($this);
578
+ DateTimeArithmeticException.call($this);
579
+ return $this;
580
+ }
581
+ function DateTimeArithmeticException_init_$Create$() {
582
+ var tmp = DateTimeArithmeticException_init_$Init$(objectCreate(protoOf(DateTimeArithmeticException)));
583
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$);
584
+ return tmp;
585
+ }
586
+ function DateTimeArithmeticException_init_$Init$_0(message, cause, $this) {
587
+ RuntimeException_init_$Init$_0(message, cause, $this);
588
+ DateTimeArithmeticException.call($this);
589
+ return $this;
590
+ }
591
+ function DateTimeArithmeticException_init_$Create$_0(message, cause) {
592
+ var tmp = DateTimeArithmeticException_init_$Init$_0(message, cause, objectCreate(protoOf(DateTimeArithmeticException)));
593
+ captureStack(tmp, DateTimeArithmeticException_init_$Create$_0);
594
+ return tmp;
595
+ }
596
+ function DateTimeArithmeticException() {
597
+ captureStack(this, DateTimeArithmeticException);
598
+ }
599
+ function plus_0(_this__u8e3s4, value, unit) {
600
+ return plus_1(_this__u8e3s4, fromInt(value), unit);
601
+ }
602
+ function getIsoDateFormat() {
603
+ return Formats_getInstance().n54();
604
+ }
605
+ function format(_this__u8e3s4, format) {
606
+ return format.o54(_this__u8e3s4);
607
+ }
608
+ function get_number(_this__u8e3s4) {
609
+ return _this__u8e3s4.a1_1 + 1 | 0;
610
+ }
611
+ var Month_JANUARY_instance;
612
+ var Month_FEBRUARY_instance;
613
+ var Month_MARCH_instance;
614
+ var Month_APRIL_instance;
615
+ var Month_MAY_instance;
616
+ var Month_JUNE_instance;
617
+ var Month_JULY_instance;
618
+ var Month_AUGUST_instance;
619
+ var Month_SEPTEMBER_instance;
620
+ var Month_OCTOBER_instance;
621
+ var Month_NOVEMBER_instance;
622
+ var Month_DECEMBER_instance;
623
+ function values_0() {
624
+ return [Month_JANUARY_getInstance(), Month_FEBRUARY_getInstance(), Month_MARCH_getInstance(), Month_APRIL_getInstance(), Month_MAY_getInstance(), Month_JUNE_getInstance(), Month_JULY_getInstance(), Month_AUGUST_getInstance(), Month_SEPTEMBER_getInstance(), Month_OCTOBER_getInstance(), Month_NOVEMBER_getInstance(), Month_DECEMBER_getInstance()];
625
+ }
626
+ function get_entries_0() {
627
+ if ($ENTRIES_0 == null)
628
+ $ENTRIES_0 = enumEntries(values_0());
629
+ return $ENTRIES_0;
630
+ }
631
+ var Month_entriesInitialized;
632
+ function Month_initEntries() {
633
+ if (Month_entriesInitialized)
634
+ return Unit_instance;
635
+ Month_entriesInitialized = true;
636
+ Month_JANUARY_instance = new Month('JANUARY', 0);
637
+ Month_FEBRUARY_instance = new Month('FEBRUARY', 1);
638
+ Month_MARCH_instance = new Month('MARCH', 2);
639
+ Month_APRIL_instance = new Month('APRIL', 3);
640
+ Month_MAY_instance = new Month('MAY', 4);
641
+ Month_JUNE_instance = new Month('JUNE', 5);
642
+ Month_JULY_instance = new Month('JULY', 6);
643
+ Month_AUGUST_instance = new Month('AUGUST', 7);
644
+ Month_SEPTEMBER_instance = new Month('SEPTEMBER', 8);
645
+ Month_OCTOBER_instance = new Month('OCTOBER', 9);
646
+ Month_NOVEMBER_instance = new Month('NOVEMBER', 10);
647
+ Month_DECEMBER_instance = new Month('DECEMBER', 11);
648
+ }
649
+ var $ENTRIES_0;
650
+ function Month(name, ordinal) {
651
+ Enum.call(this, name, ordinal);
652
+ }
653
+ function Month_0(number) {
654
+ // Inline function 'kotlin.require' call
655
+ // Inline function 'kotlin.require' call
656
+ if (!(1 <= number ? number <= 12 : false)) {
657
+ var message = 'Failed requirement.';
658
+ throw IllegalArgumentException_init_$Create$(toString(message));
659
+ }
660
+ return get_entries_0().h1(number - 1 | 0);
661
+ }
662
+ function Month_JANUARY_getInstance() {
663
+ Month_initEntries();
664
+ return Month_JANUARY_instance;
665
+ }
666
+ function Month_FEBRUARY_getInstance() {
667
+ Month_initEntries();
668
+ return Month_FEBRUARY_instance;
669
+ }
670
+ function Month_MARCH_getInstance() {
671
+ Month_initEntries();
672
+ return Month_MARCH_instance;
673
+ }
674
+ function Month_APRIL_getInstance() {
675
+ Month_initEntries();
676
+ return Month_APRIL_instance;
677
+ }
678
+ function Month_MAY_getInstance() {
679
+ Month_initEntries();
680
+ return Month_MAY_instance;
681
+ }
682
+ function Month_JUNE_getInstance() {
683
+ Month_initEntries();
684
+ return Month_JUNE_instance;
685
+ }
686
+ function Month_JULY_getInstance() {
687
+ Month_initEntries();
688
+ return Month_JULY_instance;
689
+ }
690
+ function Month_AUGUST_getInstance() {
691
+ Month_initEntries();
692
+ return Month_AUGUST_instance;
693
+ }
694
+ function Month_SEPTEMBER_getInstance() {
695
+ Month_initEntries();
696
+ return Month_SEPTEMBER_instance;
697
+ }
698
+ function Month_OCTOBER_getInstance() {
699
+ Month_initEntries();
700
+ return Month_OCTOBER_instance;
701
+ }
702
+ function Month_NOVEMBER_getInstance() {
703
+ Month_initEntries();
704
+ return Month_NOVEMBER_instance;
705
+ }
706
+ function Month_DECEMBER_getInstance() {
707
+ Month_initEntries();
708
+ return Month_DECEMBER_instance;
709
+ }
710
+ function AbstractDateTimeFormat() {
711
+ }
712
+ protoOf(AbstractDateTimeFormat).o54 = function (value) {
713
+ // Inline function 'kotlin.also' call
714
+ var this_0 = StringBuilder_init_$Create$();
715
+ this.p54().w54().x54(this.q54(value), this_0);
716
+ return this_0.toString();
717
+ };
718
+ protoOf(AbstractDateTimeFormat).al = function (input) {
719
+ var tmp;
720
+ try {
721
+ tmp = Parser__match$default_impl_x2xlti(_Parser___init__impl__gdyfby(this.p54().y54()), input, this.s54());
722
+ } catch ($p) {
723
+ var tmp_0;
724
+ if ($p instanceof ParseException) {
725
+ var e = $p;
726
+ throw DateTimeFormatException_init_$Create$_1("Failed to parse value from '" + toString(input) + "'", e);
727
+ } else {
728
+ throw $p;
729
+ }
730
+ }
731
+ var matched = tmp;
732
+ try {
733
+ return this.r54(matched);
734
+ } catch ($p) {
735
+ if ($p instanceof IllegalArgumentException) {
736
+ var e_0 = $p;
737
+ var message = e_0.message;
738
+ throw DateTimeFormatException_init_$Create$_1(message == null ? "The value parsed from '" + toString(input) + "' is invalid" : '' + message + " (when parsing '" + toString(input) + "')", e_0);
739
+ } else {
740
+ throw $p;
741
+ }
742
+ }
743
+ };
744
+ var Padding_NONE_instance;
745
+ var Padding_ZERO_instance;
746
+ var Padding_SPACE_instance;
747
+ var Padding_entriesInitialized;
748
+ function Padding_initEntries() {
749
+ if (Padding_entriesInitialized)
750
+ return Unit_instance;
751
+ Padding_entriesInitialized = true;
752
+ Padding_NONE_instance = new Padding('NONE', 0);
753
+ Padding_ZERO_instance = new Padding('ZERO', 1);
754
+ Padding_SPACE_instance = new Padding('SPACE', 2);
755
+ }
756
+ function Padding(name, ordinal) {
757
+ Enum.call(this, name, ordinal);
758
+ }
759
+ function Padding_ZERO_getInstance() {
760
+ Padding_initEntries();
761
+ return Padding_ZERO_instance;
762
+ }
763
+ function Padding_SPACE_getInstance() {
764
+ Padding_initEntries();
765
+ return Padding_SPACE_instance;
766
+ }
767
+ function WithYearMonth() {
768
+ }
769
+ function WithDate() {
770
+ }
771
+ function char(_this__u8e3s4, value) {
772
+ return _this__u8e3s4.d55(toString_0(value));
773
+ }
774
+ function AbstractDateTimeFormatBuilder() {
775
+ }
776
+ function get_ISO_DATE() {
777
+ _init_properties_LocalDateFormat_kt__k1uk9u();
778
+ var tmp0 = ISO_DATE$delegate;
779
+ var tmp = KProperty0;
780
+ // Inline function 'kotlin.getValue' call
781
+ getPropertyCallableRef('ISO_DATE', 0, tmp, _get_ISO_DATE_$ref_powsum(), null);
782
+ return tmp0.m1();
783
+ }
784
+ var ISO_DATE$delegate;
785
+ function get_ISO_DATE_BASIC() {
786
+ _init_properties_LocalDateFormat_kt__k1uk9u();
787
+ var tmp0 = ISO_DATE_BASIC$delegate;
788
+ var tmp = KProperty0;
789
+ // Inline function 'kotlin.getValue' call
790
+ getPropertyCallableRef('ISO_DATE_BASIC', 0, tmp, _get_ISO_DATE_BASIC_$ref_3fs8eb(), null);
791
+ return tmp0.m1();
792
+ }
793
+ var ISO_DATE_BASIC$delegate;
794
+ function get_emptyIncompleteLocalDate() {
795
+ _init_properties_LocalDateFormat_kt__k1uk9u();
796
+ return emptyIncompleteLocalDate;
797
+ }
798
+ var emptyIncompleteLocalDate;
799
+ function IncompleteLocalDate(yearMonth, day, dayOfWeek, dayOfYear) {
800
+ yearMonth = yearMonth === VOID ? new IncompleteYearMonth() : yearMonth;
801
+ day = day === VOID ? null : day;
802
+ dayOfWeek = dayOfWeek === VOID ? null : dayOfWeek;
803
+ dayOfYear = dayOfYear === VOID ? null : dayOfYear;
804
+ this.k55_1 = yearMonth;
805
+ this.l55_1 = day;
806
+ this.m55_1 = dayOfWeek;
807
+ this.n55_1 = dayOfYear;
808
+ }
809
+ protoOf(IncompleteLocalDate).o55 = function (_set____db54di) {
810
+ this.l55_1 = _set____db54di;
811
+ };
812
+ protoOf(IncompleteLocalDate).p55 = function () {
813
+ return this.l55_1;
814
+ };
815
+ protoOf(IncompleteLocalDate).q55 = function (_set____db54di) {
816
+ this.m55_1 = _set____db54di;
817
+ };
818
+ protoOf(IncompleteLocalDate).r55 = function () {
819
+ return this.m55_1;
820
+ };
821
+ protoOf(IncompleteLocalDate).s55 = function (_set____db54di) {
822
+ this.n55_1 = _set____db54di;
823
+ };
824
+ protoOf(IncompleteLocalDate).t55 = function () {
825
+ return this.n55_1;
826
+ };
827
+ protoOf(IncompleteLocalDate).u55 = function () {
828
+ var year = requireParsedField(this.v55(), 'year');
829
+ var dayOfYear = this.n55_1;
830
+ var tmp;
831
+ if (dayOfYear == null) {
832
+ tmp = new LocalDate(year, requireParsedField(this.a56(), 'monthNumber'), requireParsedField(this.l55_1, 'day'));
833
+ } else {
834
+ // Inline function 'kotlin.also' call
835
+ var this_0 = plus_0(new LocalDate(year, 1, 1), dayOfYear - 1 | 0, Companion_getInstance_3().g54_1);
836
+ if (!(this_0.w55_1 === year)) {
837
+ 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));
838
+ }
839
+ if (!(this.a56() == null) && !(get_number(this_0.z55()) === this.a56())) {
840
+ throw DateTimeFormatException_init_$Create$_0('Can not create a LocalDate from the given input: ' + ('the day of year is ' + dayOfYear + ', which is ' + this_0.z55().toString() + ', ') + ('but ' + this.a56() + ' was specified as the month number'));
841
+ }
842
+ if (!(this.l55_1 == null) && !(this_0.x55_1 === this.l55_1)) {
843
+ 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.x55_1 + ' of ' + this_0.z55().toString() + ', ') + ('but ' + this.l55_1 + ' was specified as the day of month'));
844
+ }
845
+ tmp = this_0;
846
+ }
847
+ var date = tmp;
848
+ var tmp0_safe_receiver = this.m55_1;
849
+ if (tmp0_safe_receiver == null)
850
+ null;
851
+ else {
852
+ // Inline function 'kotlin.let' call
853
+ if (!(tmp0_safe_receiver === get_isoDayNumber(date.r55()))) {
854
+ 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.r55().toString()));
855
+ }
856
+ }
857
+ return date;
858
+ };
859
+ protoOf(IncompleteLocalDate).b56 = function (date) {
860
+ this.c56(date.w55_1);
861
+ this.d56(get_number(date.z55()));
862
+ this.l55_1 = date.x55_1;
863
+ this.m55_1 = get_isoDayNumber(date.r55());
864
+ this.n55_1 = date.t55();
865
+ };
866
+ protoOf(IncompleteLocalDate).e56 = function () {
867
+ return new IncompleteLocalDate(this.k55_1.e56(), this.l55_1, this.m55_1, this.n55_1);
868
+ };
869
+ protoOf(IncompleteLocalDate).equals = function (other) {
870
+ var tmp;
871
+ var tmp_0;
872
+ var tmp_1;
873
+ var tmp_2;
874
+ if (other instanceof IncompleteLocalDate) {
875
+ tmp_2 = this.k55_1.equals(other.k55_1);
876
+ } else {
877
+ tmp_2 = false;
878
+ }
879
+ if (tmp_2) {
880
+ tmp_1 = this.l55_1 == other.l55_1;
881
+ } else {
882
+ tmp_1 = false;
883
+ }
884
+ if (tmp_1) {
885
+ tmp_0 = this.m55_1 == other.m55_1;
886
+ } else {
887
+ tmp_0 = false;
888
+ }
889
+ if (tmp_0) {
890
+ tmp = this.n55_1 == other.n55_1;
891
+ } else {
892
+ tmp = false;
893
+ }
894
+ return tmp;
895
+ };
896
+ protoOf(IncompleteLocalDate).hashCode = function () {
897
+ var tmp = imul(this.k55_1.hashCode(), 29791);
898
+ // Inline function 'kotlin.hashCode' call
899
+ var tmp0_safe_receiver = this.l55_1;
900
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
901
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
902
+ var tmp_0 = tmp + imul(tmp$ret$0, 961) | 0;
903
+ // Inline function 'kotlin.hashCode' call
904
+ var tmp0_safe_receiver_0 = this.m55_1;
905
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
906
+ var tmp$ret$1 = tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0;
907
+ var tmp_1 = tmp_0 + imul(tmp$ret$1, 31) | 0;
908
+ // Inline function 'kotlin.hashCode' call
909
+ var tmp0_safe_receiver_1 = this.n55_1;
910
+ var tmp1_elvis_lhs_1 = tmp0_safe_receiver_1 == null ? null : hashCode(tmp0_safe_receiver_1);
911
+ return tmp_1 + (tmp1_elvis_lhs_1 == null ? 0 : tmp1_elvis_lhs_1) | 0;
912
+ };
913
+ protoOf(IncompleteLocalDate).toString = function () {
914
+ var tmp;
915
+ if (this.n55_1 == null) {
916
+ var tmp_0 = this.k55_1.toString();
917
+ var tmp0_elvis_lhs = this.l55_1;
918
+ var tmp_1 = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
919
+ var tmp1_elvis_lhs = this.m55_1;
920
+ tmp = tmp_0 + '-' + tmp_1 + ' (day of week is ' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs) + ')';
921
+ } else if (this.l55_1 == null && this.a56() == null) {
922
+ var tmp2_elvis_lhs = this.k55_1.f56_1;
923
+ var tmp_2 = toString(tmp2_elvis_lhs == null ? '??' : tmp2_elvis_lhs);
924
+ var tmp_3 = this.n55_1;
925
+ var tmp3_elvis_lhs = this.m55_1;
926
+ tmp = '(' + tmp_2 + ')-' + tmp_3 + ' (day of week is ' + toString(tmp3_elvis_lhs == null ? '??' : tmp3_elvis_lhs) + ')';
927
+ } else {
928
+ var tmp_4 = this.k55_1.toString();
929
+ var tmp4_elvis_lhs = this.l55_1;
930
+ var tmp_5 = toString(tmp4_elvis_lhs == null ? '??' : tmp4_elvis_lhs);
931
+ var tmp5_elvis_lhs = this.m55_1;
932
+ tmp = tmp_4 + '-' + tmp_5 + ' (day of week is ' + toString(tmp5_elvis_lhs == null ? '??' : tmp5_elvis_lhs) + ', day of year is ' + this.n55_1 + ')';
933
+ }
934
+ return tmp;
935
+ };
936
+ protoOf(IncompleteLocalDate).c56 = function (_set____db54di) {
937
+ this.k55_1.f56_1 = _set____db54di;
938
+ };
939
+ protoOf(IncompleteLocalDate).v55 = function () {
940
+ return this.k55_1.f56_1;
941
+ };
942
+ protoOf(IncompleteLocalDate).d56 = function (_set____db54di) {
943
+ this.k55_1.g56_1 = _set____db54di;
944
+ };
945
+ protoOf(IncompleteLocalDate).a56 = function () {
946
+ return this.k55_1.g56_1;
947
+ };
948
+ function Companion_4() {
949
+ }
950
+ protoOf(Companion_4).h56 = function (block) {
951
+ var builder = new Builder(new AppendableFormatStructure());
952
+ block(builder);
953
+ return new LocalDateFormat(builder.i2l());
954
+ };
955
+ var Companion_instance_4;
956
+ function Companion_getInstance_4() {
957
+ return Companion_instance_4;
958
+ }
959
+ function Builder(actualBuilder) {
960
+ this.i56_1 = actualBuilder;
961
+ }
962
+ protoOf(Builder).g55 = function () {
963
+ return this.i56_1;
964
+ };
965
+ protoOf(Builder).j56 = function (structure) {
966
+ return this.i56_1.i55(structure);
967
+ };
968
+ function LocalDateFormat(actualFormat) {
969
+ AbstractDateTimeFormat.call(this);
970
+ this.l56_1 = actualFormat;
971
+ }
972
+ protoOf(LocalDateFormat).p54 = function () {
973
+ return this.l56_1;
974
+ };
975
+ protoOf(LocalDateFormat).m56 = function (value) {
976
+ // Inline function 'kotlin.apply' call
977
+ var this_0 = new IncompleteLocalDate();
978
+ this_0.b56(value);
979
+ return this_0;
980
+ };
981
+ protoOf(LocalDateFormat).q54 = function (value) {
982
+ return this.m56(value instanceof LocalDate ? value : THROW_CCE());
983
+ };
984
+ protoOf(LocalDateFormat).n56 = function (intermediate) {
985
+ return intermediate.u55();
986
+ };
987
+ protoOf(LocalDateFormat).r54 = function (intermediate) {
988
+ return this.n56(intermediate instanceof IncompleteLocalDate ? intermediate : THROW_CCE());
989
+ };
990
+ protoOf(LocalDateFormat).s54 = function () {
991
+ return get_emptyIncompleteLocalDate();
992
+ };
993
+ function AbstractWithDateBuilder() {
994
+ }
995
+ function DayDirective(padding) {
996
+ var tmp = DateFields_getInstance().o56_1;
997
+ // Inline function 'kotlinx.datetime.format.minDigits' call
998
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
999
+ // Inline function 'kotlinx.datetime.format.spaces' call
1000
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
1001
+ UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
1002
+ this.v56_1 = padding;
1003
+ }
1004
+ protoOf(DayDirective).equals = function (other) {
1005
+ var tmp;
1006
+ if (other instanceof DayDirective) {
1007
+ tmp = this.v56_1.equals(other.v56_1);
1008
+ } else {
1009
+ tmp = false;
1010
+ }
1011
+ return tmp;
1012
+ };
1013
+ protoOf(DayDirective).hashCode = function () {
1014
+ return this.v56_1.hashCode();
1015
+ };
1016
+ function DateFieldContainer$_get_day_$ref_2ebhxx() {
1017
+ return function (p0) {
1018
+ return p0.p55();
1019
+ };
1020
+ }
1021
+ function DateFieldContainer$_set_day_$ref_s0jsax() {
1022
+ return function (p0, p1) {
1023
+ p0.o55(p1);
1024
+ return Unit_instance;
1025
+ };
1026
+ }
1027
+ function DateFieldContainer$_get_dayOfWeek_$ref_thwqom() {
1028
+ return function (p0) {
1029
+ return p0.r55();
1030
+ };
1031
+ }
1032
+ function DateFieldContainer$_set_dayOfWeek_$ref_ea586a() {
1033
+ return function (p0, p1) {
1034
+ p0.q55(p1);
1035
+ return Unit_instance;
1036
+ };
1037
+ }
1038
+ function DateFieldContainer$_get_dayOfYear_$ref_2m6gfz() {
1039
+ return function (p0) {
1040
+ return p0.t55();
1041
+ };
1042
+ }
1043
+ function DateFieldContainer$_set_dayOfYear_$ref_cll22d() {
1044
+ return function (p0, p1) {
1045
+ p0.s55(p1);
1046
+ return Unit_instance;
1047
+ };
1048
+ }
1049
+ function DateFields() {
1050
+ DateFields_instance = this;
1051
+ var tmp = this;
1052
+ var tmp_0 = KMutableProperty1;
1053
+ var tmp_1 = DateFieldContainer$_get_day_$ref_2ebhxx();
1054
+ tmp.o56_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('day', 1, tmp_0, tmp_1, DateFieldContainer$_set_day_$ref_s0jsax())), 1, 31);
1055
+ var tmp_2 = this;
1056
+ var tmp_3 = KMutableProperty1;
1057
+ var tmp_4 = DateFieldContainer$_get_dayOfWeek_$ref_thwqom();
1058
+ tmp_2.p56_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfWeek', 1, tmp_3, tmp_4, DateFieldContainer$_set_dayOfWeek_$ref_ea586a())), 1, 7);
1059
+ var tmp_5 = this;
1060
+ var tmp_6 = KMutableProperty1;
1061
+ var tmp_7 = DateFieldContainer$_get_dayOfYear_$ref_2m6gfz();
1062
+ tmp_5.q56_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('dayOfYear', 1, tmp_6, tmp_7, DateFieldContainer$_set_dayOfYear_$ref_cll22d())), 1, 366);
1063
+ }
1064
+ var DateFields_instance;
1065
+ function DateFields_getInstance() {
1066
+ if (DateFields_instance == null)
1067
+ new DateFields();
1068
+ return DateFields_instance;
1069
+ }
1070
+ function ISO_DATE$delegate$lambda() {
1071
+ _init_properties_LocalDateFormat_kt__k1uk9u();
1072
+ var tmp = Companion_instance_4;
1073
+ return tmp.h56(ISO_DATE$delegate$lambda$lambda);
1074
+ }
1075
+ function ISO_DATE$delegate$lambda$lambda($this$build) {
1076
+ _init_properties_LocalDateFormat_kt__k1uk9u();
1077
+ $this$build.a55();
1078
+ char($this$build, _Char___init__impl__6a9atx(45));
1079
+ $this$build.c55();
1080
+ char($this$build, _Char___init__impl__6a9atx(45));
1081
+ $this$build.f55();
1082
+ return Unit_instance;
1083
+ }
1084
+ function _get_ISO_DATE_$ref_powsum() {
1085
+ return function () {
1086
+ return get_ISO_DATE();
1087
+ };
1088
+ }
1089
+ function ISO_DATE_BASIC$delegate$lambda() {
1090
+ _init_properties_LocalDateFormat_kt__k1uk9u();
1091
+ var tmp = Companion_instance_4;
1092
+ return tmp.h56(ISO_DATE_BASIC$delegate$lambda$lambda);
1093
+ }
1094
+ function ISO_DATE_BASIC$delegate$lambda$lambda($this$build) {
1095
+ _init_properties_LocalDateFormat_kt__k1uk9u();
1096
+ $this$build.a55();
1097
+ $this$build.c55();
1098
+ $this$build.f55();
1099
+ return Unit_instance;
1100
+ }
1101
+ function _get_ISO_DATE_BASIC_$ref_3fs8eb() {
1102
+ return function () {
1103
+ return get_ISO_DATE_BASIC();
1104
+ };
1105
+ }
1106
+ var properties_initialized_LocalDateFormat_kt_fmnlhc;
1107
+ function _init_properties_LocalDateFormat_kt__k1uk9u() {
1108
+ if (!properties_initialized_LocalDateFormat_kt_fmnlhc) {
1109
+ properties_initialized_LocalDateFormat_kt_fmnlhc = true;
1110
+ ISO_DATE$delegate = lazy(ISO_DATE$delegate$lambda);
1111
+ ISO_DATE_BASIC$delegate = lazy(ISO_DATE_BASIC$delegate$lambda);
1112
+ emptyIncompleteLocalDate = new IncompleteLocalDate();
1113
+ }
1114
+ }
1115
+ function get_emptyIncompleteYearMonth() {
1116
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1117
+ return emptyIncompleteYearMonth;
1118
+ }
1119
+ var emptyIncompleteYearMonth;
1120
+ function get_ISO_YEAR_MONTH() {
1121
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1122
+ var tmp0 = ISO_YEAR_MONTH$delegate;
1123
+ var tmp = KProperty0;
1124
+ // Inline function 'kotlin.getValue' call
1125
+ getPropertyCallableRef('ISO_YEAR_MONTH', 0, tmp, _get_ISO_YEAR_MONTH_$ref_y3tv9a(), null);
1126
+ return tmp0.m1();
1127
+ }
1128
+ var ISO_YEAR_MONTH$delegate;
1129
+ function IncompleteYearMonth(year, monthNumber) {
1130
+ year = year === VOID ? null : year;
1131
+ monthNumber = monthNumber === VOID ? null : monthNumber;
1132
+ this.f56_1 = year;
1133
+ this.g56_1 = monthNumber;
1134
+ }
1135
+ protoOf(IncompleteYearMonth).c56 = function (_set____db54di) {
1136
+ this.f56_1 = _set____db54di;
1137
+ };
1138
+ protoOf(IncompleteYearMonth).v55 = function () {
1139
+ return this.f56_1;
1140
+ };
1141
+ protoOf(IncompleteYearMonth).d56 = function (_set____db54di) {
1142
+ this.g56_1 = _set____db54di;
1143
+ };
1144
+ protoOf(IncompleteYearMonth).a56 = function () {
1145
+ return this.g56_1;
1146
+ };
1147
+ protoOf(IncompleteYearMonth).a57 = function () {
1148
+ var year = requireParsedField(this.f56_1, 'year');
1149
+ var month = requireParsedField(this.g56_1, 'monthNumber');
1150
+ return new YearMonth(year, month);
1151
+ };
1152
+ protoOf(IncompleteYearMonth).b57 = function (yearMonth) {
1153
+ this.f56_1 = yearMonth.c57_1;
1154
+ this.g56_1 = get_number(yearMonth.z55());
1155
+ };
1156
+ protoOf(IncompleteYearMonth).e56 = function () {
1157
+ return new IncompleteYearMonth(this.f56_1, this.g56_1);
1158
+ };
1159
+ protoOf(IncompleteYearMonth).equals = function (other) {
1160
+ var tmp;
1161
+ var tmp_0;
1162
+ if (other instanceof IncompleteYearMonth) {
1163
+ tmp_0 = this.f56_1 == other.f56_1;
1164
+ } else {
1165
+ tmp_0 = false;
1166
+ }
1167
+ if (tmp_0) {
1168
+ tmp = this.g56_1 == other.g56_1;
1169
+ } else {
1170
+ tmp = false;
1171
+ }
1172
+ return tmp;
1173
+ };
1174
+ protoOf(IncompleteYearMonth).hashCode = function () {
1175
+ // Inline function 'kotlin.hashCode' call
1176
+ var tmp0_safe_receiver = this.f56_1;
1177
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
1178
+ var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
1179
+ var tmp = imul(tmp$ret$0, 31);
1180
+ // Inline function 'kotlin.hashCode' call
1181
+ var tmp0_safe_receiver_0 = this.g56_1;
1182
+ var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
1183
+ return tmp + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
1184
+ };
1185
+ protoOf(IncompleteYearMonth).toString = function () {
1186
+ var tmp0_elvis_lhs = this.f56_1;
1187
+ var tmp = toString(tmp0_elvis_lhs == null ? '??' : tmp0_elvis_lhs);
1188
+ var tmp1_elvis_lhs = this.g56_1;
1189
+ return tmp + '-' + toString(tmp1_elvis_lhs == null ? '??' : tmp1_elvis_lhs);
1190
+ };
1191
+ function requireParsedField(field, name) {
1192
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1193
+ if (field == null) {
1194
+ throw DateTimeFormatException_init_$Create$_0('Can not create a ' + name + ' from the given input: the field ' + name + ' is missing');
1195
+ }
1196
+ return field;
1197
+ }
1198
+ function AbstractWithYearMonthBuilder() {
1199
+ }
1200
+ function Companion_5() {
1201
+ }
1202
+ protoOf(Companion_5).e57 = function (block) {
1203
+ var builder = new Builder_0(new AppendableFormatStructure());
1204
+ block(builder);
1205
+ return new YearMonthFormat(builder.i2l());
1206
+ };
1207
+ var Companion_instance_5;
1208
+ function Companion_getInstance_5() {
1209
+ return Companion_instance_5;
1210
+ }
1211
+ function Builder_0(actualBuilder) {
1212
+ this.f57_1 = actualBuilder;
1213
+ }
1214
+ protoOf(Builder_0).g55 = function () {
1215
+ return this.f57_1;
1216
+ };
1217
+ protoOf(Builder_0).k56 = function (structure) {
1218
+ return this.f57_1.i55(structure);
1219
+ };
1220
+ function YearMonthFormat(actualFormat) {
1221
+ AbstractDateTimeFormat.call(this);
1222
+ this.g57_1 = actualFormat;
1223
+ }
1224
+ protoOf(YearMonthFormat).p54 = function () {
1225
+ return this.g57_1;
1226
+ };
1227
+ protoOf(YearMonthFormat).h57 = function (value) {
1228
+ // Inline function 'kotlin.apply' call
1229
+ var this_0 = new IncompleteYearMonth();
1230
+ this_0.b57(value);
1231
+ return this_0;
1232
+ };
1233
+ protoOf(YearMonthFormat).q54 = function (value) {
1234
+ return this.h57(value instanceof YearMonth ? value : THROW_CCE());
1235
+ };
1236
+ protoOf(YearMonthFormat).i57 = function (intermediate) {
1237
+ return intermediate.a57();
1238
+ };
1239
+ protoOf(YearMonthFormat).r54 = function (intermediate) {
1240
+ return this.i57(intermediate instanceof IncompleteYearMonth ? intermediate : THROW_CCE());
1241
+ };
1242
+ protoOf(YearMonthFormat).s54 = function () {
1243
+ return get_emptyIncompleteYearMonth();
1244
+ };
1245
+ function YearDirective(padding, isYearOfEra) {
1246
+ isYearOfEra = isYearOfEra === VOID ? false : isYearOfEra;
1247
+ var tmp = YearMonthFields_getInstance().j57_1;
1248
+ // Inline function 'kotlinx.datetime.format.minDigits' call
1249
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 4 : 1;
1250
+ // Inline function 'kotlinx.datetime.format.spaces' call
1251
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 4 : null;
1252
+ SignedIntFieldFormatDirective.call(this, tmp, tmp_0, null, tmp$ret$1, 4);
1253
+ this.q57_1 = padding;
1254
+ this.r57_1 = isYearOfEra;
1255
+ }
1256
+ protoOf(YearDirective).equals = function (other) {
1257
+ var tmp;
1258
+ var tmp_0;
1259
+ if (other instanceof YearDirective) {
1260
+ tmp_0 = this.q57_1.equals(other.q57_1);
1261
+ } else {
1262
+ tmp_0 = false;
1263
+ }
1264
+ if (tmp_0) {
1265
+ tmp = this.r57_1 === other.r57_1;
1266
+ } else {
1267
+ tmp = false;
1268
+ }
1269
+ return tmp;
1270
+ };
1271
+ protoOf(YearDirective).hashCode = function () {
1272
+ return imul(this.q57_1.hashCode(), 31) + getBooleanHashCode(this.r57_1) | 0;
1273
+ };
1274
+ function MonthDirective(padding) {
1275
+ var tmp = YearMonthFields_getInstance().k57_1;
1276
+ // Inline function 'kotlinx.datetime.format.minDigits' call
1277
+ var tmp_0 = padding.equals(Padding_ZERO_getInstance()) ? 2 : 1;
1278
+ // Inline function 'kotlinx.datetime.format.spaces' call
1279
+ var tmp$ret$1 = padding.equals(Padding_SPACE_getInstance()) ? 2 : null;
1280
+ UnsignedIntFieldFormatDirective.call(this, tmp, tmp_0, tmp$ret$1);
1281
+ this.b58_1 = padding;
1282
+ }
1283
+ protoOf(MonthDirective).equals = function (other) {
1284
+ var tmp;
1285
+ if (other instanceof MonthDirective) {
1286
+ tmp = this.b58_1.equals(other.b58_1);
1287
+ } else {
1288
+ tmp = false;
1289
+ }
1290
+ return tmp;
1291
+ };
1292
+ protoOf(MonthDirective).hashCode = function () {
1293
+ return this.b58_1.hashCode();
1294
+ };
1295
+ function YearMonthFieldContainer$_get_year_$ref_7j3zdj() {
1296
+ return function (p0) {
1297
+ return p0.v55();
1298
+ };
1299
+ }
1300
+ function YearMonthFieldContainer$_set_year_$ref_kc0aub() {
1301
+ return function (p0, p1) {
1302
+ p0.c56(p1);
1303
+ return Unit_instance;
1304
+ };
1305
+ }
1306
+ function YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5() {
1307
+ return function (p0) {
1308
+ return p0.a56();
1309
+ };
1310
+ }
1311
+ function YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl() {
1312
+ return function (p0, p1) {
1313
+ p0.d56(p1);
1314
+ return Unit_instance;
1315
+ };
1316
+ }
1317
+ function YearMonthFields() {
1318
+ YearMonthFields_instance = this;
1319
+ var tmp = this;
1320
+ var tmp_0 = KMutableProperty1;
1321
+ var tmp_1 = YearMonthFieldContainer$_get_year_$ref_7j3zdj();
1322
+ tmp.j57_1 = new GenericFieldSpec(new PropertyAccessor(getPropertyCallableRef('year', 1, tmp_0, tmp_1, YearMonthFieldContainer$_set_year_$ref_kc0aub())));
1323
+ var tmp_2 = this;
1324
+ var tmp_3 = KMutableProperty1;
1325
+ var tmp_4 = YearMonthFieldContainer$_get_monthNumber_$ref_pn0wu5();
1326
+ tmp_2.k57_1 = new UnsignedFieldSpec(new PropertyAccessor(getPropertyCallableRef('monthNumber', 1, tmp_3, tmp_4, YearMonthFieldContainer$_set_monthNumber_$ref_fjapbl())), 1, 12);
1327
+ }
1328
+ var YearMonthFields_instance;
1329
+ function YearMonthFields_getInstance() {
1330
+ if (YearMonthFields_instance == null)
1331
+ new YearMonthFields();
1332
+ return YearMonthFields_instance;
1333
+ }
1334
+ function ISO_YEAR_MONTH$delegate$lambda() {
1335
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1336
+ var tmp = Companion_instance_5;
1337
+ return tmp.e57(ISO_YEAR_MONTH$delegate$lambda$lambda);
1338
+ }
1339
+ function ISO_YEAR_MONTH$delegate$lambda$lambda($this$build) {
1340
+ _init_properties_YearMonthFormat_kt__i0mmu0();
1341
+ $this$build.a55();
1342
+ char($this$build, _Char___init__impl__6a9atx(45));
1343
+ $this$build.c55();
1344
+ return Unit_instance;
1345
+ }
1346
+ function _get_ISO_YEAR_MONTH_$ref_y3tv9a() {
1347
+ return function () {
1348
+ return get_ISO_YEAR_MONTH();
1349
+ };
1350
+ }
1351
+ var properties_initialized_YearMonthFormat_kt_fp0mk6;
1352
+ function _init_properties_YearMonthFormat_kt__i0mmu0() {
1353
+ if (!properties_initialized_YearMonthFormat_kt_fp0mk6) {
1354
+ properties_initialized_YearMonthFormat_kt_fp0mk6 = true;
1355
+ emptyIncompleteYearMonth = new IncompleteYearMonth();
1356
+ ISO_YEAR_MONTH$delegate = lazy(ISO_YEAR_MONTH$delegate$lambda);
1357
+ }
1358
+ }
1359
+ function monthLength(_this__u8e3s4, isLeapYear) {
1360
+ switch (_this__u8e3s4) {
1361
+ case 2:
1362
+ return isLeapYear ? 29 : 28;
1363
+ case 4:
1364
+ case 6:
1365
+ case 9:
1366
+ case 11:
1367
+ return 30;
1368
+ default:
1369
+ return 31;
1370
+ }
1371
+ }
1372
+ function isLeapYear(year) {
1373
+ var prolepticYear = fromInt(year);
1374
+ var tmp;
1375
+ if ((prolepticYear & 3n) === 0n) {
1376
+ var tmp_0;
1377
+ // Inline function 'kotlin.Long.rem' call
1378
+ if (!(modulo(prolepticYear, fromInt(100)) === 0n)) {
1379
+ tmp_0 = true;
1380
+ } else {
1381
+ // Inline function 'kotlin.Long.rem' call
1382
+ tmp_0 = modulo(prolepticYear, fromInt(400)) === 0n;
1383
+ }
1384
+ tmp = tmp_0;
1385
+ } else {
1386
+ tmp = false;
1387
+ }
1388
+ return tmp;
1389
+ }
1390
+ function AppendableFormatStructure() {
1391
+ var tmp = this;
1392
+ // Inline function 'kotlin.collections.mutableListOf' call
1393
+ tmp.h55_1 = ArrayList_init_$Create$();
1394
+ }
1395
+ protoOf(AppendableFormatStructure).i2l = function () {
1396
+ return new ConcatenatedFormatStructure(this.h55_1);
1397
+ };
1398
+ protoOf(AppendableFormatStructure).i55 = function (format) {
1399
+ if (isInterface(format, NonConcatenatedFormatStructure))
1400
+ this.h55_1.e1(format);
1401
+ else {
1402
+ if (format instanceof ConcatenatedFormatStructure) {
1403
+ // Inline function 'kotlin.collections.forEach' call
1404
+ var _iterator__ex2g4s = format.j55_1.t();
1405
+ while (_iterator__ex2g4s.u()) {
1406
+ var element = _iterator__ex2g4s.v();
1407
+ this.h55_1.e1(element);
1408
+ }
1409
+ } else {
1410
+ noWhenBranchMatchedException();
1411
+ }
1412
+ }
1413
+ };
1414
+ function Accessor$getterNotNull$ref(p0) {
1415
+ var l = function (_this__u8e3s4) {
1416
+ return p0.c58(_this__u8e3s4);
1417
+ };
1418
+ l.callableName = 'getterNotNull';
1419
+ return l;
1420
+ }
1421
+ function UnsignedIntFieldFormatDirective(field, minDigits, spacePadding) {
1422
+ this.w56_1 = field;
1423
+ this.x56_1 = minDigits;
1424
+ this.y56_1 = spacePadding;
1425
+ this.z56_1 = this.w56_1.j58_1;
1426
+ // Inline function 'kotlin.require' call
1427
+ if (!(this.x56_1 >= 0)) {
1428
+ var message = 'The minimum number of digits (' + this.x56_1 + ') is negative';
1429
+ throw IllegalArgumentException_init_$Create$(toString(message));
1430
+ }
1431
+ // Inline function 'kotlin.require' call
1432
+ if (!(this.z56_1 >= this.x56_1)) {
1433
+ var message_0 = 'The maximum number of digits (' + this.z56_1 + ') is less than the minimum number of digits (' + this.x56_1 + ')';
1434
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1435
+ }
1436
+ if (!(this.y56_1 == null)) {
1437
+ // Inline function 'kotlin.require' call
1438
+ if (!(this.y56_1 > this.x56_1)) {
1439
+ var message_1 = 'The space padding (' + this.y56_1 + ') should be more than the minimum number of digits (' + this.x56_1 + ')';
1440
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1441
+ }
1442
+ }
1443
+ }
1444
+ protoOf(UnsignedIntFieldFormatDirective).w54 = function () {
1445
+ var formatter = new UnsignedIntFormatterStructure(Accessor$getterNotNull$ref(this.w56_1.d58_1), this.x56_1);
1446
+ return !(this.y56_1 == null) ? new SpacePaddedFormatter(formatter, this.y56_1) : formatter;
1447
+ };
1448
+ protoOf(UnsignedIntFieldFormatDirective).y54 = function () {
1449
+ return spaceAndZeroPaddedUnsignedInt(this.x56_1, this.z56_1, this.y56_1, this.w56_1.d58_1, this.w56_1.g58_1);
1450
+ };
1451
+ function Accessor$getterNotNull$ref_0(p0) {
1452
+ var l = function (_this__u8e3s4) {
1453
+ return p0.c58(_this__u8e3s4);
1454
+ };
1455
+ l.callableName = 'getterNotNull';
1456
+ return l;
1457
+ }
1458
+ function SignedIntFieldFormatDirective(field, minDigits, maxDigits, spacePadding, outputPlusOnExceededWidth) {
1459
+ this.s57_1 = field;
1460
+ this.t57_1 = minDigits;
1461
+ this.u57_1 = maxDigits;
1462
+ this.v57_1 = spacePadding;
1463
+ this.w57_1 = outputPlusOnExceededWidth;
1464
+ // Inline function 'kotlin.require' call
1465
+ if (!(this.t57_1 == null || this.t57_1 >= 0)) {
1466
+ var message = 'The minimum number of digits (' + this.t57_1 + ') is negative';
1467
+ throw IllegalArgumentException_init_$Create$(toString(message));
1468
+ }
1469
+ // Inline function 'kotlin.require' call
1470
+ if (!(this.u57_1 == null || this.t57_1 == null || this.u57_1 >= this.t57_1)) {
1471
+ var message_0 = 'The maximum number of digits (' + this.u57_1 + ') is less than the minimum number of digits (' + this.t57_1 + ')';
1472
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1473
+ }
1474
+ }
1475
+ protoOf(SignedIntFieldFormatDirective).w54 = function () {
1476
+ var tmp = Accessor$getterNotNull$ref_0(this.s57_1.k58());
1477
+ var tmp0_elvis_lhs = this.t57_1;
1478
+ var formatter = new SignedIntFormatterStructure(tmp, tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs, this.w57_1);
1479
+ return !(this.v57_1 == null) ? new SpacePaddedFormatter(formatter, this.v57_1) : formatter;
1480
+ };
1481
+ protoOf(SignedIntFieldFormatDirective).y54 = function () {
1482
+ return SignedIntParser(this.t57_1, this.u57_1, this.v57_1, this.s57_1.k58(), this.s57_1.m(), this.w57_1);
1483
+ };
1484
+ function GenericFieldSpec(accessor, name, defaultValue, sign) {
1485
+ name = name === VOID ? accessor.m() : name;
1486
+ defaultValue = defaultValue === VOID ? null : defaultValue;
1487
+ sign = sign === VOID ? null : sign;
1488
+ AbstractFieldSpec.call(this);
1489
+ this.l58_1 = accessor;
1490
+ this.m58_1 = name;
1491
+ this.n58_1 = defaultValue;
1492
+ this.o58_1 = sign;
1493
+ }
1494
+ protoOf(GenericFieldSpec).k58 = function () {
1495
+ return this.l58_1;
1496
+ };
1497
+ protoOf(GenericFieldSpec).m = function () {
1498
+ return this.m58_1;
1499
+ };
1500
+ protoOf(GenericFieldSpec).p58 = function () {
1501
+ return this.n58_1;
1502
+ };
1503
+ function PropertyAccessor(property, name) {
1504
+ name = name === VOID ? property.callableName : name;
1505
+ this.q58_1 = property;
1506
+ this.r58_1 = name;
1507
+ }
1508
+ protoOf(PropertyAccessor).m = function () {
1509
+ return this.r58_1;
1510
+ };
1511
+ protoOf(PropertyAccessor).s58 = function (container, newValue) {
1512
+ var oldValue = this.q58_1.get(container);
1513
+ var tmp;
1514
+ if (oldValue === null) {
1515
+ this.q58_1.set(container, newValue);
1516
+ tmp = null;
1517
+ } else if (equals(oldValue, newValue)) {
1518
+ tmp = null;
1519
+ } else {
1520
+ tmp = oldValue;
1521
+ }
1522
+ return tmp;
1523
+ };
1524
+ protoOf(PropertyAccessor).t58 = function (container, newValue) {
1525
+ var tmp = (container == null ? true : !(container == null)) ? container : THROW_CCE();
1526
+ return this.s58(tmp, (newValue == null ? true : !(newValue == null)) ? newValue : THROW_CCE());
1527
+ };
1528
+ protoOf(PropertyAccessor).u58 = function (container) {
1529
+ return this.q58_1.get(container);
1530
+ };
1531
+ function UnsignedFieldSpec(accessor, minValue, maxValue, name, defaultValue, sign) {
1532
+ name = name === VOID ? accessor.m() : name;
1533
+ defaultValue = defaultValue === VOID ? null : defaultValue;
1534
+ sign = sign === VOID ? null : sign;
1535
+ AbstractFieldSpec.call(this);
1536
+ this.d58_1 = accessor;
1537
+ this.e58_1 = minValue;
1538
+ this.f58_1 = maxValue;
1539
+ this.g58_1 = name;
1540
+ this.h58_1 = defaultValue;
1541
+ this.i58_1 = sign;
1542
+ var tmp = this;
1543
+ var tmp_0;
1544
+ if (this.f58_1 < 10) {
1545
+ tmp_0 = 1;
1546
+ } else if (this.f58_1 < 100) {
1547
+ tmp_0 = 2;
1548
+ } else if (this.f58_1 < 1000) {
1549
+ tmp_0 = 3;
1550
+ } else {
1551
+ throw IllegalArgumentException_init_$Create$('Max value ' + this.f58_1 + ' is too large');
1552
+ }
1553
+ tmp.j58_1 = tmp_0;
1554
+ }
1555
+ protoOf(UnsignedFieldSpec).k58 = function () {
1556
+ return this.d58_1;
1557
+ };
1558
+ protoOf(UnsignedFieldSpec).m = function () {
1559
+ return this.g58_1;
1560
+ };
1561
+ protoOf(UnsignedFieldSpec).p58 = function () {
1562
+ return this.h58_1;
1563
+ };
1564
+ function Accessor() {
1565
+ }
1566
+ function AbstractFieldSpec() {
1567
+ }
1568
+ protoOf(AbstractFieldSpec).toString = function () {
1569
+ return 'The field ' + this.m() + ' (default value is ' + toString_1(this.p58()) + ')';
1570
+ };
1571
+ function CachedFormatStructure(formats) {
1572
+ ConcatenatedFormatStructure.call(this, formats);
1573
+ this.u54_1 = protoOf(ConcatenatedFormatStructure).w54.call(this);
1574
+ this.v54_1 = protoOf(ConcatenatedFormatStructure).y54.call(this);
1575
+ }
1576
+ protoOf(CachedFormatStructure).w54 = function () {
1577
+ return this.u54_1;
1578
+ };
1579
+ protoOf(CachedFormatStructure).y54 = function () {
1580
+ return this.v54_1;
1581
+ };
1582
+ function BasicFormatStructure(directive) {
1583
+ this.v58_1 = directive;
1584
+ }
1585
+ protoOf(BasicFormatStructure).toString = function () {
1586
+ return 'BasicFormatStructure(' + toString(this.v58_1) + ')';
1587
+ };
1588
+ protoOf(BasicFormatStructure).equals = function (other) {
1589
+ var tmp;
1590
+ if (other instanceof BasicFormatStructure) {
1591
+ tmp = equals(this.v58_1, other.v58_1);
1592
+ } else {
1593
+ tmp = false;
1594
+ }
1595
+ return tmp;
1596
+ };
1597
+ protoOf(BasicFormatStructure).hashCode = function () {
1598
+ return hashCode(this.v58_1);
1599
+ };
1600
+ protoOf(BasicFormatStructure).y54 = function () {
1601
+ return this.v58_1.y54();
1602
+ };
1603
+ protoOf(BasicFormatStructure).w54 = function () {
1604
+ return this.v58_1.w54();
1605
+ };
1606
+ function ConstantFormatStructure(string) {
1607
+ this.w58_1 = string;
1608
+ }
1609
+ protoOf(ConstantFormatStructure).toString = function () {
1610
+ return 'ConstantFormatStructure(' + this.w58_1 + ')';
1611
+ };
1612
+ protoOf(ConstantFormatStructure).equals = function (other) {
1613
+ var tmp;
1614
+ if (other instanceof ConstantFormatStructure) {
1615
+ tmp = this.w58_1 === other.w58_1;
1616
+ } else {
1617
+ tmp = false;
1618
+ }
1619
+ return tmp;
1620
+ };
1621
+ protoOf(ConstantFormatStructure).hashCode = function () {
1622
+ return getStringHashCode(this.w58_1);
1623
+ };
1624
+ protoOf(ConstantFormatStructure).y54 = function () {
1625
+ var tmp;
1626
+ // Inline function 'kotlin.text.isEmpty' call
1627
+ var this_0 = this.w58_1;
1628
+ if (charSequenceLength(this_0) === 0) {
1629
+ tmp = emptyList();
1630
+ } else {
1631
+ // Inline function 'kotlin.collections.buildList' call
1632
+ // Inline function 'kotlin.collections.buildListInternal' call
1633
+ // Inline function 'kotlin.apply' call
1634
+ var this_1 = ArrayList_init_$Create$();
1635
+ var tmp_0;
1636
+ if (isAsciiDigit(charCodeAt(this.w58_1, 0))) {
1637
+ var tmp0 = this.w58_1;
1638
+ var tmp$ret$2;
1639
+ $l$block: {
1640
+ // Inline function 'kotlin.text.takeWhile' call
1641
+ var inductionVariable = 0;
1642
+ var last = tmp0.length;
1643
+ if (inductionVariable < last)
1644
+ do {
1645
+ var index = inductionVariable;
1646
+ inductionVariable = inductionVariable + 1 | 0;
1647
+ var it = charCodeAt(tmp0, index);
1648
+ if (!isAsciiDigit(it)) {
1649
+ tmp$ret$2 = substring(tmp0, 0, index);
1650
+ break $l$block;
1651
+ }
1652
+ }
1653
+ while (inductionVariable < last);
1654
+ tmp$ret$2 = tmp0;
1655
+ }
1656
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$2))));
1657
+ var tmp0_0 = this.w58_1;
1658
+ var tmp$ret$4;
1659
+ $l$block_0: {
1660
+ // Inline function 'kotlin.text.dropWhile' call
1661
+ var inductionVariable_0 = 0;
1662
+ var last_0 = charSequenceLength(tmp0_0) - 1 | 0;
1663
+ if (inductionVariable_0 <= last_0)
1664
+ do {
1665
+ var index_0 = inductionVariable_0;
1666
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1667
+ var it_0 = charCodeAt(tmp0_0, index_0);
1668
+ if (!isAsciiDigit(it_0)) {
1669
+ tmp$ret$4 = substring_0(tmp0_0, index_0);
1670
+ break $l$block_0;
1671
+ }
1672
+ }
1673
+ while (inductionVariable_0 <= last_0);
1674
+ tmp$ret$4 = '';
1675
+ }
1676
+ tmp_0 = tmp$ret$4;
1677
+ } else {
1678
+ tmp_0 = this.w58_1;
1679
+ }
1680
+ var suffix = tmp_0;
1681
+ // Inline function 'kotlin.text.isNotEmpty' call
1682
+ if (charSequenceLength(suffix) > 0) {
1683
+ if (isAsciiDigit(charCodeAt(suffix, suffix.length - 1 | 0))) {
1684
+ var tmp$ret$7;
1685
+ $l$block_1: {
1686
+ // Inline function 'kotlin.text.dropLastWhile' call
1687
+ var inductionVariable_1 = get_lastIndex(suffix);
1688
+ if (0 <= inductionVariable_1)
1689
+ do {
1690
+ var index_1 = inductionVariable_1;
1691
+ inductionVariable_1 = inductionVariable_1 + -1 | 0;
1692
+ var it_1 = charCodeAt(suffix, index_1);
1693
+ if (!isAsciiDigit(it_1)) {
1694
+ tmp$ret$7 = substring(suffix, 0, index_1 + 1 | 0);
1695
+ break $l$block_1;
1696
+ }
1697
+ }
1698
+ while (0 <= inductionVariable_1);
1699
+ tmp$ret$7 = '';
1700
+ }
1701
+ this_1.e1(new PlainStringParserOperation(tmp$ret$7));
1702
+ var tmp$ret$9;
1703
+ $l$block_2: {
1704
+ // Inline function 'kotlin.text.takeLastWhile' call
1705
+ var inductionVariable_2 = get_lastIndex(suffix);
1706
+ if (0 <= inductionVariable_2)
1707
+ do {
1708
+ var index_2 = inductionVariable_2;
1709
+ inductionVariable_2 = inductionVariable_2 + -1 | 0;
1710
+ var it_2 = charCodeAt(suffix, index_2);
1711
+ if (!isAsciiDigit(it_2)) {
1712
+ tmp$ret$9 = substring_0(suffix, index_2 + 1 | 0);
1713
+ break $l$block_2;
1714
+ }
1715
+ }
1716
+ while (0 <= inductionVariable_2);
1717
+ tmp$ret$9 = suffix;
1718
+ }
1719
+ this_1.e1(new NumberSpanParserOperation(listOf(new ConstantNumberConsumer(tmp$ret$9))));
1720
+ } else {
1721
+ this_1.e1(new PlainStringParserOperation(suffix));
1722
+ }
1723
+ }
1724
+ tmp = this_1.j3();
1725
+ }
1726
+ return new ParserStructure(tmp, emptyList());
1727
+ };
1728
+ protoOf(ConstantFormatStructure).w54 = function () {
1729
+ return new ConstantStringFormatterStructure(this.w58_1);
1730
+ };
1731
+ function ConcatenatedFormatStructure(formats) {
1732
+ this.j55_1 = formats;
1733
+ }
1734
+ protoOf(ConcatenatedFormatStructure).toString = function () {
1735
+ return 'ConcatenatedFormatStructure(' + joinToString(this.j55_1, ', ') + ')';
1736
+ };
1737
+ protoOf(ConcatenatedFormatStructure).equals = function (other) {
1738
+ var tmp;
1739
+ if (other instanceof ConcatenatedFormatStructure) {
1740
+ tmp = equals(this.j55_1, other.j55_1);
1741
+ } else {
1742
+ tmp = false;
1743
+ }
1744
+ return tmp;
1745
+ };
1746
+ protoOf(ConcatenatedFormatStructure).hashCode = function () {
1747
+ return hashCode(this.j55_1);
1748
+ };
1749
+ protoOf(ConcatenatedFormatStructure).y54 = function () {
1750
+ // Inline function 'kotlin.collections.map' call
1751
+ var this_0 = this.j55_1;
1752
+ // Inline function 'kotlin.collections.mapTo' call
1753
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1754
+ var _iterator__ex2g4s = this_0.t();
1755
+ while (_iterator__ex2g4s.u()) {
1756
+ var item = _iterator__ex2g4s.v();
1757
+ var tmp$ret$0 = item.y54();
1758
+ destination.e1(tmp$ret$0);
1759
+ }
1760
+ return concat(destination);
1761
+ };
1762
+ protoOf(ConcatenatedFormatStructure).w54 = function () {
1763
+ // Inline function 'kotlin.collections.map' call
1764
+ var this_0 = this.j55_1;
1765
+ // Inline function 'kotlin.collections.mapTo' call
1766
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1767
+ var _iterator__ex2g4s = this_0.t();
1768
+ while (_iterator__ex2g4s.u()) {
1769
+ var item = _iterator__ex2g4s.v();
1770
+ var tmp$ret$0 = item.w54();
1771
+ destination.e1(tmp$ret$0);
1772
+ }
1773
+ var formatters = destination;
1774
+ var tmp;
1775
+ if (formatters.g1() === 1) {
1776
+ tmp = single(formatters);
1777
+ } else {
1778
+ tmp = new ConcatenatedFormatter(formatters);
1779
+ }
1780
+ return tmp;
1781
+ };
1782
+ function NonConcatenatedFormatStructure() {
1783
+ }
1784
+ function FormatterStructure() {
1785
+ }
1786
+ function SpacePaddedFormatter(formatter, padding) {
1787
+ this.y58_1 = formatter;
1788
+ this.z58_1 = padding;
1789
+ }
1790
+ protoOf(SpacePaddedFormatter).x58 = function (obj, builder, minusNotRequired) {
1791
+ // Inline function 'kotlin.let' call
1792
+ var it = StringBuilder_init_$Create$();
1793
+ this.y58_1.x58(obj, it, minusNotRequired);
1794
+ var string = it.toString();
1795
+ // Inline function 'kotlin.repeat' call
1796
+ var times = this.z58_1 - string.length | 0;
1797
+ var inductionVariable = 0;
1798
+ if (inductionVariable < times)
1799
+ do {
1800
+ var index = inductionVariable;
1801
+ inductionVariable = inductionVariable + 1 | 0;
1802
+ builder.s(_Char___init__impl__6a9atx(32));
1803
+ }
1804
+ while (inductionVariable < times);
1805
+ builder.f1(string);
1806
+ };
1807
+ function ConcatenatedFormatter(formatters) {
1808
+ this.a59_1 = formatters;
1809
+ }
1810
+ protoOf(ConcatenatedFormatter).x58 = function (obj, builder, minusNotRequired) {
1811
+ var _iterator__ex2g4s = this.a59_1.t();
1812
+ while (_iterator__ex2g4s.u()) {
1813
+ var formatter = _iterator__ex2g4s.v();
1814
+ formatter.x58(obj, builder, minusNotRequired);
1815
+ }
1816
+ };
1817
+ function UnsignedIntFormatterStructure(number, zeroPadding) {
1818
+ this.b59_1 = number;
1819
+ this.c59_1 = zeroPadding;
1820
+ // Inline function 'kotlin.require' call
1821
+ if (!(this.c59_1 >= 0)) {
1822
+ var message = 'The minimum number of digits (' + this.c59_1 + ') is negative';
1823
+ throw IllegalArgumentException_init_$Create$(toString(message));
1824
+ }
1825
+ // Inline function 'kotlin.require' call
1826
+ if (!(this.c59_1 <= 9)) {
1827
+ var message_0 = 'The minimum number of digits (' + this.c59_1 + ') exceeds the length of an Int';
1828
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1829
+ }
1830
+ }
1831
+ protoOf(UnsignedIntFormatterStructure).x58 = function (obj, builder, minusNotRequired) {
1832
+ var num = this.b59_1(obj);
1833
+ var numberStr = num.toString();
1834
+ // Inline function 'kotlin.repeat' call
1835
+ var times = this.c59_1 - numberStr.length | 0;
1836
+ var inductionVariable = 0;
1837
+ if (inductionVariable < times)
1838
+ do {
1839
+ var index = inductionVariable;
1840
+ inductionVariable = inductionVariable + 1 | 0;
1841
+ builder.s(_Char___init__impl__6a9atx(48));
1842
+ }
1843
+ while (inductionVariable < times);
1844
+ builder.f1(numberStr);
1845
+ };
1846
+ function SignedIntFormatterStructure(number, zeroPadding, outputPlusOnExceededWidth) {
1847
+ this.d59_1 = number;
1848
+ this.e59_1 = zeroPadding;
1849
+ this.f59_1 = outputPlusOnExceededWidth;
1850
+ // Inline function 'kotlin.require' call
1851
+ if (!(this.e59_1 >= 0)) {
1852
+ var message = 'The minimum number of digits (' + this.e59_1 + ') is negative';
1853
+ throw IllegalArgumentException_init_$Create$(toString(message));
1854
+ }
1855
+ // Inline function 'kotlin.require' call
1856
+ if (!(this.e59_1 <= 9)) {
1857
+ var message_0 = 'The minimum number of digits (' + this.e59_1 + ') exceeds the length of an Int';
1858
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1859
+ }
1860
+ }
1861
+ protoOf(SignedIntFormatterStructure).x58 = function (obj, builder, minusNotRequired) {
1862
+ var innerBuilder = StringBuilder_init_$Create$();
1863
+ // Inline function 'kotlin.let' call
1864
+ var it = this.d59_1(obj);
1865
+ var number = minusNotRequired && it < 0 ? -it | 0 : it;
1866
+ if (!(this.f59_1 == null) && number >= get_POWERS_OF_TEN()[this.f59_1]) {
1867
+ innerBuilder.s(_Char___init__impl__6a9atx(43));
1868
+ }
1869
+ // Inline function 'kotlin.math.absoluteValue' call
1870
+ if (abs(number) < get_POWERS_OF_TEN()[this.e59_1 - 1 | 0]) {
1871
+ if (number >= 0) {
1872
+ innerBuilder.zb(number + get_POWERS_OF_TEN()[this.e59_1] | 0).ec(0);
1873
+ } else {
1874
+ innerBuilder.zb(number - get_POWERS_OF_TEN()[this.e59_1] | 0).ec(1);
1875
+ }
1876
+ } else {
1877
+ innerBuilder.zb(number);
1878
+ }
1879
+ builder.f1(innerBuilder);
1880
+ };
1881
+ function ConstantStringFormatterStructure(string) {
1882
+ this.g59_1 = string;
1883
+ }
1884
+ protoOf(ConstantStringFormatterStructure).x58 = function (obj, builder, minusNotRequired) {
1885
+ builder.f1(this.g59_1);
1886
+ };
1887
+ function ConstantNumberConsumer(expected) {
1888
+ NumberConsumer.call(this, expected.length, 'the predefined string ' + expected);
1889
+ this.j59_1 = expected;
1890
+ }
1891
+ protoOf(ConstantNumberConsumer).k59 = function (storage, input, start, end) {
1892
+ var tmp;
1893
+ // Inline function 'kotlin.text.substring' call
1894
+ if (toString(charSequenceSubSequence(input, start, end)) === this.j59_1) {
1895
+ tmp = null;
1896
+ } else {
1897
+ tmp = new WrongConstant(this.j59_1);
1898
+ }
1899
+ return tmp;
1900
+ };
1901
+ function NumberConsumer(length, whatThisExpects) {
1902
+ this.l59_1 = length;
1903
+ this.m59_1 = whatThisExpects;
1904
+ }
1905
+ protoOf(NumberConsumer).a = function () {
1906
+ return this.l59_1;
1907
+ };
1908
+ function ExpectedInt() {
1909
+ }
1910
+ protoOf(ExpectedInt).n59 = function () {
1911
+ return 'expected an Int value';
1912
+ };
1913
+ var ExpectedInt_instance;
1914
+ function ExpectedInt_getInstance() {
1915
+ return ExpectedInt_instance;
1916
+ }
1917
+ function TooManyDigits(maxDigits) {
1918
+ this.o59_1 = maxDigits;
1919
+ }
1920
+ protoOf(TooManyDigits).n59 = function () {
1921
+ return 'expected at most ' + this.o59_1 + ' digits';
1922
+ };
1923
+ function TooFewDigits(minDigits) {
1924
+ this.p59_1 = minDigits;
1925
+ }
1926
+ protoOf(TooFewDigits).n59 = function () {
1927
+ return 'expected at least ' + this.p59_1 + ' digits';
1928
+ };
1929
+ function WrongConstant(expected) {
1930
+ this.q59_1 = expected;
1931
+ }
1932
+ protoOf(WrongConstant).n59 = function () {
1933
+ return "expected '" + this.q59_1 + "'";
1934
+ };
1935
+ function Conflicting(conflicting) {
1936
+ this.r59_1 = conflicting;
1937
+ }
1938
+ protoOf(Conflicting).n59 = function () {
1939
+ return "attempted to overwrite the existing value '" + toString(this.r59_1) + "'";
1940
+ };
1941
+ function setWithoutReassigning(_this__u8e3s4, receiver, value) {
1942
+ var tmp0_elvis_lhs = _this__u8e3s4.t58(receiver, value);
1943
+ var tmp;
1944
+ if (tmp0_elvis_lhs == null) {
1945
+ return null;
1946
+ } else {
1947
+ tmp = tmp0_elvis_lhs;
1948
+ }
1949
+ var conflictingValue = tmp;
1950
+ return new Conflicting(conflictingValue);
1951
+ }
1952
+ function UnsignedIntConsumer(minLength, maxLength, setter, name, multiplyByMinus1) {
1953
+ multiplyByMinus1 = multiplyByMinus1 === VOID ? false : multiplyByMinus1;
1954
+ NumberConsumer.call(this, minLength == maxLength ? minLength : null, name);
1955
+ this.u59_1 = minLength;
1956
+ this.v59_1 = maxLength;
1957
+ this.w59_1 = setter;
1958
+ this.x59_1 = multiplyByMinus1;
1959
+ // Inline function 'kotlin.require' call
1960
+ if (!(this.a() == null || numberRangeToNumber(1, 9).vh(this.a()))) {
1961
+ var message = 'Invalid length for field ' + this.m59_1 + ': ' + this.a();
1962
+ throw IllegalArgumentException_init_$Create$(toString(message));
1963
+ }
1964
+ }
1965
+ protoOf(UnsignedIntConsumer).k59 = function (storage, input, start, end) {
1966
+ var tmp;
1967
+ if (!(this.v59_1 == null) && (end - start | 0) > this.v59_1) {
1968
+ tmp = new TooManyDigits(this.v59_1);
1969
+ } else if (!(this.u59_1 == null) && (end - start | 0) < this.u59_1) {
1970
+ tmp = new TooFewDigits(this.u59_1);
1971
+ } else {
1972
+ var result = parseAsciiIntOrNull(input, start, end);
1973
+ tmp = result == null ? ExpectedInt_instance : setWithoutReassigning(this.w59_1, storage, this.x59_1 ? -result | 0 : result);
1974
+ }
1975
+ return tmp;
1976
+ };
1977
+ function parseAsciiIntOrNull(_this__u8e3s4, start, end) {
1978
+ var result = 0;
1979
+ var inductionVariable = start;
1980
+ if (inductionVariable < end)
1981
+ do {
1982
+ var i = inductionVariable;
1983
+ inductionVariable = inductionVariable + 1 | 0;
1984
+ var digit = charSequenceGet(_this__u8e3s4, i);
1985
+ result = imul(result, 10) + asciiDigitToInt(digit) | 0;
1986
+ if (result < 0)
1987
+ return null;
1988
+ }
1989
+ while (inductionVariable < end);
1990
+ return result;
1991
+ }
1992
+ function ParseError(position, message) {
1993
+ this.y59_1 = position;
1994
+ this.z59_1 = message;
1995
+ }
1996
+ function _ParseResult___init__impl__gvz3cn(value) {
1997
+ return value;
1998
+ }
1999
+ function _ParseResult___get_value__impl__86mnxf($this) {
2000
+ return $this;
2001
+ }
2002
+ function Companion_6() {
2003
+ }
2004
+ protoOf(Companion_6).a5a = function (indexOfNextUnparsed) {
2005
+ return _ParseResult___init__impl__gvz3cn(indexOfNextUnparsed);
2006
+ };
2007
+ protoOf(Companion_6).b5a = function (position, message) {
2008
+ return _ParseResult___init__impl__gvz3cn(new ParseError(position, message));
2009
+ };
2010
+ var Companion_instance_6;
2011
+ function Companion_getInstance_6() {
2012
+ return Companion_instance_6;
2013
+ }
2014
+ function _Parser___init__impl__gdyfby(commands) {
2015
+ return commands;
2016
+ }
2017
+ function _get_commands__a20n1($this) {
2018
+ return $this;
2019
+ }
2020
+ function Parser__match_impl_nzt83d($this, input, initialContainer, startIndex) {
2021
+ // Inline function 'kotlin.collections.mutableListOf' call
2022
+ var errors = ArrayList_init_$Create$();
2023
+ // Inline function 'kotlinx.datetime.internal.format.parser.Parser.parse' call
2024
+ var parseOptions = mutableListOf([new ParserState(initialContainer, _get_commands__a20n1($this), startIndex)]);
2025
+ iterate_over_alternatives: while (true) {
2026
+ var tmp0_elvis_lhs = removeLastOrNull(parseOptions);
2027
+ var tmp;
2028
+ if (tmp0_elvis_lhs == null) {
2029
+ break iterate_over_alternatives;
2030
+ } else {
2031
+ tmp = tmp0_elvis_lhs;
2032
+ }
2033
+ var state = tmp;
2034
+ var output = state.c5a_1.e56();
2035
+ var inputPosition = state.e5a_1;
2036
+ var parserStructure = state.d5a_1;
2037
+ // Inline function 'kotlin.run' call
2038
+ $l$block: {
2039
+ var inductionVariable = 0;
2040
+ var last = parserStructure.g5a_1.g1() - 1 | 0;
2041
+ if (inductionVariable <= last)
2042
+ do {
2043
+ var ix = inductionVariable;
2044
+ inductionVariable = inductionVariable + 1 | 0;
2045
+ // Inline function 'kotlinx.datetime.internal.format.parser.ParseResult.match' call
2046
+ var this_0 = parserStructure.g5a_1.h1(ix).i5a(output, input, inputPosition);
2047
+ var tmp0_subject = _ParseResult___get_value__impl__86mnxf(this_0);
2048
+ if (typeof tmp0_subject === 'number') {
2049
+ inputPosition = _ParseResult___get_value__impl__86mnxf(this_0);
2050
+ } else {
2051
+ if (tmp0_subject instanceof ParseError) {
2052
+ var it = _ParseResult___get_value__impl__86mnxf(this_0);
2053
+ errors.e1(it);
2054
+ break $l$block;
2055
+ } else {
2056
+ // Inline function 'kotlin.error' call
2057
+ var message = 'Unexpected parse result: ' + toString(_ParseResult___get_value__impl__86mnxf(this_0));
2058
+ throw IllegalStateException_init_$Create$(toString(message));
2059
+ }
2060
+ }
2061
+ }
2062
+ while (inductionVariable <= last);
2063
+ if (parserStructure.h5a_1.r()) {
2064
+ if (false || inputPosition === charSequenceLength(input)) {
2065
+ return output;
2066
+ } else {
2067
+ var tmp_0 = inputPosition;
2068
+ var it_0 = new ParseError(tmp_0, Parser$match$lambda);
2069
+ errors.e1(it_0);
2070
+ }
2071
+ } else {
2072
+ var inductionVariable_0 = parserStructure.h5a_1.g1() - 1 | 0;
2073
+ if (0 <= inductionVariable_0)
2074
+ do {
2075
+ var ix_0 = inductionVariable_0;
2076
+ inductionVariable_0 = inductionVariable_0 + -1 | 0;
2077
+ parseOptions.e1(new ParserState(output, parserStructure.h5a_1.h1(ix_0), inputPosition));
2078
+ }
2079
+ while (0 <= inductionVariable_0);
2080
+ }
2081
+ }
2082
+ }
2083
+ // Inline function 'kotlin.collections.sortByDescending' call
2084
+ if (errors.g1() > 1) {
2085
+ // Inline function 'kotlin.comparisons.compareByDescending' call
2086
+ var tmp_1 = Parser$match$lambda_0;
2087
+ var tmp$ret$8 = new sam$kotlin_Comparator$0(tmp_1);
2088
+ sortWith(errors, tmp$ret$8);
2089
+ }
2090
+ throw new ParseException(errors);
2091
+ }
2092
+ function Parser__match$default_impl_x2xlti($this, input, initialContainer, startIndex, $super) {
2093
+ startIndex = startIndex === VOID ? 0 : startIndex;
2094
+ var tmp;
2095
+ if ($super === VOID) {
2096
+ tmp = Parser__match_impl_nzt83d($this, input, initialContainer, startIndex);
2097
+ } else {
2098
+ var tmp_0 = $super;
2099
+ tmp = (tmp_0 == null ? null : new Parser(tmp_0)).j5a.call(new Parser($this), input, initialContainer, startIndex);
2100
+ }
2101
+ return tmp;
2102
+ }
2103
+ function ParserState(output, parserStructure, inputPosition) {
2104
+ this.c5a_1 = output;
2105
+ this.d5a_1 = parserStructure;
2106
+ this.e5a_1 = inputPosition;
2107
+ }
2108
+ function Parser__toString_impl_x33iea($this) {
2109
+ return 'Parser(commands=' + $this.toString() + ')';
2110
+ }
2111
+ function Parser__hashCode_impl_bbxllf($this) {
2112
+ return hashCode($this);
2113
+ }
2114
+ function Parser__equals_impl_djxokv($this, other) {
2115
+ if (!(other instanceof Parser))
2116
+ return false;
2117
+ var tmp0_other_with_cast = other instanceof Parser ? other.f5a_1 : THROW_CCE();
2118
+ if (!equals($this, tmp0_other_with_cast))
2119
+ return false;
2120
+ return true;
2121
+ }
2122
+ function sam$kotlin_Comparator$0(function_0) {
2123
+ this.k5a_1 = function_0;
2124
+ }
2125
+ protoOf(sam$kotlin_Comparator$0).mc = function (a, b) {
2126
+ return this.k5a_1(a, b);
2127
+ };
2128
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
2129
+ return this.mc(a, b);
2130
+ };
2131
+ protoOf(sam$kotlin_Comparator$0).g3 = function () {
2132
+ return this.k5a_1;
2133
+ };
2134
+ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
2135
+ var tmp;
2136
+ if (!(other == null) ? isInterface(other, Comparator) : false) {
2137
+ var tmp_0;
2138
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
2139
+ tmp_0 = equals(this.g3(), other.g3());
2140
+ } else {
2141
+ tmp_0 = false;
2142
+ }
2143
+ tmp = tmp_0;
2144
+ } else {
2145
+ tmp = false;
2146
+ }
2147
+ return tmp;
2148
+ };
2149
+ protoOf(sam$kotlin_Comparator$0).hashCode = function () {
2150
+ return hashCode(this.g3());
2151
+ };
2152
+ function Parser$match$lambda() {
2153
+ return 'There is more input to consume';
2154
+ }
2155
+ function Parser$match$lambda_0(a, b) {
2156
+ // Inline function 'kotlin.comparisons.compareValuesBy' call
2157
+ var tmp = b.y59_1;
2158
+ var tmp$ret$1 = a.y59_1;
2159
+ return compareValues(tmp, tmp$ret$1);
2160
+ }
2161
+ function Parser(commands) {
2162
+ this.f5a_1 = commands;
2163
+ }
2164
+ protoOf(Parser).toString = function () {
2165
+ return Parser__toString_impl_x33iea(this.f5a_1);
2166
+ };
2167
+ protoOf(Parser).hashCode = function () {
2168
+ return Parser__hashCode_impl_bbxllf(this.f5a_1);
2169
+ };
2170
+ protoOf(Parser).equals = function (other) {
2171
+ return Parser__equals_impl_djxokv(this.f5a_1, other);
2172
+ };
2173
+ function ParserStructure(operations, followedBy) {
2174
+ this.g5a_1 = operations;
2175
+ this.h5a_1 = followedBy;
2176
+ }
2177
+ protoOf(ParserStructure).toString = function () {
2178
+ return joinToString(this.g5a_1, ', ') + '(' + joinToString(this.h5a_1, ';') + ')';
2179
+ };
2180
+ function ParseException(errors) {
2181
+ Exception_init_$Init$(formatError(errors), this);
2182
+ captureStack(this, ParseException);
2183
+ }
2184
+ function concat(_this__u8e3s4) {
2185
+ // Inline function 'kotlin.collections.foldRight' call
2186
+ var accumulator = new ParserStructure(emptyList(), emptyList());
2187
+ if (!_this__u8e3s4.r()) {
2188
+ var iterator = _this__u8e3s4.i1(_this__u8e3s4.g1());
2189
+ while (iterator.v4()) {
2190
+ var tmp0 = iterator.x4();
2191
+ var acc = accumulator;
2192
+ accumulator = concat$append(tmp0, acc);
2193
+ }
2194
+ }
2195
+ var naiveParser = accumulator;
2196
+ return concat$simplify(naiveParser, emptyList());
2197
+ }
2198
+ function formatError(errors) {
2199
+ if (errors.g1() === 1) {
2200
+ return 'Position ' + errors.h1(0).y59_1 + ': ' + errors.h1(0).z59_1();
2201
+ }
2202
+ var averageMessageLength = 33;
2203
+ var tmp0_buffer = StringBuilder_init_$Create$_0(imul(averageMessageLength, errors.g1()));
2204
+ return joinTo(errors, tmp0_buffer, ', ', 'Errors: ', VOID, VOID, VOID, formatError$lambda).toString();
2205
+ }
2206
+ function concat$append(_this__u8e3s4, other) {
2207
+ var tmp;
2208
+ if (_this__u8e3s4.h5a_1.r()) {
2209
+ tmp = new ParserStructure(plus(_this__u8e3s4.g5a_1, other.g5a_1), other.h5a_1);
2210
+ } else {
2211
+ // Inline function 'kotlin.collections.map' call
2212
+ var this_0 = _this__u8e3s4.h5a_1;
2213
+ // Inline function 'kotlin.collections.mapTo' call
2214
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2215
+ var _iterator__ex2g4s = this_0.t();
2216
+ while (_iterator__ex2g4s.u()) {
2217
+ var item = _iterator__ex2g4s.v();
2218
+ var tmp$ret$0 = concat$append(item, other);
2219
+ destination.e1(tmp$ret$0);
2220
+ }
2221
+ tmp = new ParserStructure(_this__u8e3s4.g5a_1, destination);
2222
+ }
2223
+ return tmp;
2224
+ }
2225
+ function concat$simplify(_this__u8e3s4, unconditionalModifications) {
2226
+ // Inline function 'kotlin.collections.mutableListOf' call
2227
+ var newOperations = ArrayList_init_$Create$();
2228
+ var currentNumberSpan = null;
2229
+ var unconditionalModificationsForTails = toMutableList(unconditionalModifications);
2230
+ var _iterator__ex2g4s = _this__u8e3s4.g5a_1.t();
2231
+ while (_iterator__ex2g4s.u()) {
2232
+ var op = _iterator__ex2g4s.v();
2233
+ if (op instanceof NumberSpanParserOperation) {
2234
+ if (!(currentNumberSpan == null)) {
2235
+ currentNumberSpan.j1(op.l5a_1);
2236
+ } else {
2237
+ currentNumberSpan = toMutableList(op.l5a_1);
2238
+ }
2239
+ } else {
2240
+ if (op instanceof UnconditionalModification) {
2241
+ unconditionalModificationsForTails.e1(op);
2242
+ } else {
2243
+ if (!(currentNumberSpan == null)) {
2244
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
2245
+ currentNumberSpan = null;
2246
+ }
2247
+ newOperations.e1(op);
2248
+ }
2249
+ }
2250
+ }
2251
+ // Inline function 'kotlin.collections.flatMap' call
2252
+ var tmp0 = _this__u8e3s4.h5a_1;
2253
+ // Inline function 'kotlin.collections.flatMapTo' call
2254
+ var destination = ArrayList_init_$Create$();
2255
+ var _iterator__ex2g4s_0 = tmp0.t();
2256
+ while (_iterator__ex2g4s_0.u()) {
2257
+ var element = _iterator__ex2g4s_0.v();
2258
+ var simplified = concat$simplify(element, unconditionalModificationsForTails);
2259
+ var tmp;
2260
+ if (simplified.g5a_1.r()) {
2261
+ // Inline function 'kotlin.collections.ifEmpty' call
2262
+ var this_0 = simplified.h5a_1;
2263
+ var tmp_0;
2264
+ if (this_0.r()) {
2265
+ tmp_0 = listOf(simplified);
2266
+ } else {
2267
+ tmp_0 = this_0;
2268
+ }
2269
+ tmp = tmp_0;
2270
+ } else {
2271
+ tmp = listOf(simplified);
2272
+ }
2273
+ var list = tmp;
2274
+ addAll(destination, list);
2275
+ }
2276
+ // Inline function 'kotlin.collections.ifEmpty' call
2277
+ var tmp_1;
2278
+ if (destination.r()) {
2279
+ tmp_1 = listOf(new ParserStructure(unconditionalModificationsForTails, emptyList()));
2280
+ } else {
2281
+ tmp_1 = destination;
2282
+ }
2283
+ var mergedTails = tmp_1;
2284
+ var tmp_2;
2285
+ if (currentNumberSpan == null) {
2286
+ tmp_2 = new ParserStructure(newOperations, mergedTails);
2287
+ } else {
2288
+ var tmp$ret$8;
2289
+ $l$block_0: {
2290
+ // Inline function 'kotlin.collections.none' call
2291
+ var tmp_3;
2292
+ if (isInterface(mergedTails, Collection)) {
2293
+ tmp_3 = mergedTails.r();
2294
+ } else {
2295
+ tmp_3 = false;
2296
+ }
2297
+ if (tmp_3) {
2298
+ tmp$ret$8 = true;
2299
+ break $l$block_0;
2300
+ }
2301
+ var _iterator__ex2g4s_1 = mergedTails.t();
2302
+ while (_iterator__ex2g4s_1.u()) {
2303
+ var element_0 = _iterator__ex2g4s_1.v();
2304
+ var tmp0_safe_receiver = firstOrNull(element_0.g5a_1);
2305
+ var tmp_4;
2306
+ if (tmp0_safe_receiver == null) {
2307
+ tmp_4 = null;
2308
+ } else {
2309
+ // Inline function 'kotlin.let' call
2310
+ tmp_4 = tmp0_safe_receiver instanceof NumberSpanParserOperation;
2311
+ }
2312
+ if (tmp_4 === true) {
2313
+ tmp$ret$8 = false;
2314
+ break $l$block_0;
2315
+ }
2316
+ }
2317
+ tmp$ret$8 = true;
2318
+ }
2319
+ if (tmp$ret$8) {
2320
+ newOperations.e1(new NumberSpanParserOperation(currentNumberSpan));
2321
+ tmp_2 = new ParserStructure(newOperations, mergedTails);
2322
+ } else {
2323
+ // Inline function 'kotlin.collections.map' call
2324
+ // Inline function 'kotlin.collections.mapTo' call
2325
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(mergedTails, 10));
2326
+ var _iterator__ex2g4s_2 = mergedTails.t();
2327
+ while (_iterator__ex2g4s_2.u()) {
2328
+ var item = _iterator__ex2g4s_2.v();
2329
+ var firstOperation = firstOrNull(item.g5a_1);
2330
+ var tmp_5;
2331
+ if (firstOperation instanceof NumberSpanParserOperation) {
2332
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(plus(currentNumberSpan, firstOperation.l5a_1))), drop(item.g5a_1, 1)), item.h5a_1);
2333
+ } else {
2334
+ if (firstOperation == null) {
2335
+ tmp_5 = new ParserStructure(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.h5a_1);
2336
+ } else {
2337
+ tmp_5 = new ParserStructure(plus(listOf(new NumberSpanParserOperation(currentNumberSpan)), item.g5a_1), item.h5a_1);
2338
+ }
2339
+ }
2340
+ var tmp$ret$12 = tmp_5;
2341
+ destination_0.e1(tmp$ret$12);
2342
+ }
2343
+ var newTails = destination_0;
2344
+ tmp_2 = new ParserStructure(newOperations, newTails);
2345
+ }
2346
+ }
2347
+ return tmp_2;
2348
+ }
2349
+ function formatError$lambda(it) {
2350
+ return 'position ' + it.y59_1 + ": '" + it.z59_1() + "'";
2351
+ }
2352
+ function spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, withMinus) {
2353
+ withMinus = withMinus === VOID ? false : withMinus;
2354
+ var minNumberLength = (minDigits == null ? 1 : minDigits) + (withMinus ? 1 : 0) | 0;
2355
+ var tmp;
2356
+ if (maxDigits == null) {
2357
+ tmp = null;
2358
+ } else {
2359
+ // Inline function 'kotlin.let' call
2360
+ tmp = withMinus ? maxDigits + 1 | 0 : maxDigits;
2361
+ }
2362
+ var tmp2_elvis_lhs = tmp;
2363
+ var maxNumberLength = tmp2_elvis_lhs == null ? 2147483647 : tmp2_elvis_lhs;
2364
+ var spacePadding_0 = spacePadding == null ? 0 : spacePadding;
2365
+ // Inline function 'kotlin.comparisons.minOf' call
2366
+ var maxPaddedNumberLength = Math.min(maxNumberLength, spacePadding_0);
2367
+ if (minNumberLength >= maxPaddedNumberLength)
2368
+ return spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, minNumberLength, maxNumberLength);
2369
+ var accumulated = spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, minNumberLength, minNumberLength);
2370
+ var inductionVariable = minNumberLength;
2371
+ if (inductionVariable < maxPaddedNumberLength)
2372
+ do {
2373
+ var accumulatedWidth = inductionVariable;
2374
+ inductionVariable = inductionVariable + 1 | 0;
2375
+ accumulated = new ParserStructure(emptyList(), listOf_0([spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, accumulatedWidth + 1 | 0, accumulatedWidth + 1 | 0), concat(listOf_0([new ParserStructure(listOf(new PlainStringParserOperation(' ')), emptyList()), accumulated]))]));
2376
+ }
2377
+ while (inductionVariable < maxPaddedNumberLength);
2378
+ var tmp_0;
2379
+ if (spacePadding_0 > maxNumberLength) {
2380
+ var prepadding = new PlainStringParserOperation(repeat(' ', spacePadding_0 - maxNumberLength | 0));
2381
+ tmp_0 = concat(listOf_0([new ParserStructure(listOf(prepadding), emptyList()), accumulated]));
2382
+ } else if (spacePadding_0 === maxNumberLength) {
2383
+ tmp_0 = accumulated;
2384
+ } else {
2385
+ var r = new ParserStructure(emptyList(), listOf_0([spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths(withMinus, setter, name, spacePadding_0 + 1 | 0, maxNumberLength), accumulated]));
2386
+ tmp_0 = r;
2387
+ }
2388
+ return tmp_0;
2389
+ }
2390
+ function _get_whatThisExpects__4pg11j($this) {
2391
+ // Inline function 'kotlin.collections.map' call
2392
+ var this_0 = $this.l5a_1;
2393
+ // Inline function 'kotlin.collections.mapTo' call
2394
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2395
+ var _iterator__ex2g4s = this_0.t();
2396
+ while (_iterator__ex2g4s.u()) {
2397
+ var item = _iterator__ex2g4s.v();
2398
+ var length = item.a();
2399
+ var tmp$ret$0 = (length == null ? 'at least one digit' : '' + length + ' digits') + (' for ' + item.m59_1);
2400
+ destination.e1(tmp$ret$0);
2401
+ }
2402
+ var consumerLengths = destination;
2403
+ var tmp;
2404
+ if ($this.n5a_1) {
2405
+ tmp = 'a number with at least ' + $this.m5a_1 + ' digits: ' + toString(consumerLengths);
2406
+ } else {
2407
+ tmp = 'a number with exactly ' + $this.m5a_1 + ' digits: ' + toString(consumerLengths);
2408
+ }
2409
+ return tmp;
2410
+ }
2411
+ function NumberSpanParserOperation$consume$lambda(this$0) {
2412
+ return function () {
2413
+ return 'Unexpected end of input: yet to parse ' + _get_whatThisExpects__4pg11j(this$0);
2414
+ };
2415
+ }
2416
+ function NumberSpanParserOperation$consume$lambda_0($digitsInRow, this$0) {
2417
+ return function () {
2418
+ return 'Only found ' + $digitsInRow._v + ' digits in a row, but need to parse ' + _get_whatThisExpects__4pg11j(this$0);
2419
+ };
2420
+ }
2421
+ function NumberSpanParserOperation$consume$lambda_1($numberString, this$0, $i, $error) {
2422
+ return function () {
2423
+ return "Can not interpret the string '" + $numberString + "' as " + this$0.l5a_1.h1($i).m59_1 + ': ' + $error.n59();
2424
+ };
2425
+ }
2426
+ function NumberSpanParserOperation(consumers) {
2427
+ this.l5a_1 = consumers;
2428
+ var tmp = this;
2429
+ // Inline function 'kotlin.collections.sumOf' call
2430
+ var sum = 0;
2431
+ var _iterator__ex2g4s = this.l5a_1.t();
2432
+ while (_iterator__ex2g4s.u()) {
2433
+ var element = _iterator__ex2g4s.v();
2434
+ var tmp_0 = sum;
2435
+ var tmp0_elvis_lhs = element.a();
2436
+ sum = tmp_0 + (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
2437
+ }
2438
+ tmp.m5a_1 = sum;
2439
+ var tmp_1 = this;
2440
+ var tmp0 = this.l5a_1;
2441
+ var tmp$ret$2;
2442
+ $l$block_0: {
2443
+ // Inline function 'kotlin.collections.any' call
2444
+ var tmp_2;
2445
+ if (isInterface(tmp0, Collection)) {
2446
+ tmp_2 = tmp0.r();
2447
+ } else {
2448
+ tmp_2 = false;
2449
+ }
2450
+ if (tmp_2) {
2451
+ tmp$ret$2 = false;
2452
+ break $l$block_0;
2453
+ }
2454
+ var _iterator__ex2g4s_0 = tmp0.t();
2455
+ while (_iterator__ex2g4s_0.u()) {
2456
+ var element_0 = _iterator__ex2g4s_0.v();
2457
+ if (element_0.a() == null) {
2458
+ tmp$ret$2 = true;
2459
+ break $l$block_0;
2460
+ }
2461
+ }
2462
+ tmp$ret$2 = false;
2463
+ }
2464
+ tmp_1.n5a_1 = tmp$ret$2;
2465
+ var tmp0_0 = this.l5a_1;
2466
+ var tmp$ret$4;
2467
+ $l$block_2: {
2468
+ // Inline function 'kotlin.collections.all' call
2469
+ var tmp_3;
2470
+ if (isInterface(tmp0_0, Collection)) {
2471
+ tmp_3 = tmp0_0.r();
2472
+ } else {
2473
+ tmp_3 = false;
2474
+ }
2475
+ if (tmp_3) {
2476
+ tmp$ret$4 = true;
2477
+ break $l$block_2;
2478
+ }
2479
+ var _iterator__ex2g4s_1 = tmp0_0.t();
2480
+ while (_iterator__ex2g4s_1.u()) {
2481
+ var element_1 = _iterator__ex2g4s_1.v();
2482
+ var tmp0_elvis_lhs_0 = element_1.a();
2483
+ if (!((tmp0_elvis_lhs_0 == null ? 2147483647 : tmp0_elvis_lhs_0) > 0)) {
2484
+ tmp$ret$4 = false;
2485
+ break $l$block_2;
2486
+ }
2487
+ }
2488
+ tmp$ret$4 = true;
2489
+ }
2490
+ // Inline function 'kotlin.require' call
2491
+ // Inline function 'kotlin.require' call
2492
+ if (!tmp$ret$4) {
2493
+ var message = 'Failed requirement.';
2494
+ throw IllegalArgumentException_init_$Create$(toString(message));
2495
+ }
2496
+ var tmp0_1 = this.l5a_1;
2497
+ var tmp$ret$9;
2498
+ $l$block_3: {
2499
+ // Inline function 'kotlin.collections.count' call
2500
+ var tmp_4;
2501
+ if (isInterface(tmp0_1, Collection)) {
2502
+ tmp_4 = tmp0_1.r();
2503
+ } else {
2504
+ tmp_4 = false;
2505
+ }
2506
+ if (tmp_4) {
2507
+ tmp$ret$9 = 0;
2508
+ break $l$block_3;
2509
+ }
2510
+ var count = 0;
2511
+ var _iterator__ex2g4s_2 = tmp0_1.t();
2512
+ while (_iterator__ex2g4s_2.u()) {
2513
+ var element_2 = _iterator__ex2g4s_2.v();
2514
+ if (element_2.a() == null) {
2515
+ count = count + 1 | 0;
2516
+ checkCountOverflow(count);
2517
+ }
2518
+ }
2519
+ tmp$ret$9 = count;
2520
+ }
2521
+ // Inline function 'kotlin.require' call
2522
+ if (!(tmp$ret$9 <= 1)) {
2523
+ // Inline function 'kotlin.collections.filter' call
2524
+ var tmp0_2 = this.l5a_1;
2525
+ // Inline function 'kotlin.collections.filterTo' call
2526
+ var destination = ArrayList_init_$Create$();
2527
+ var _iterator__ex2g4s_3 = tmp0_2.t();
2528
+ while (_iterator__ex2g4s_3.u()) {
2529
+ var element_3 = _iterator__ex2g4s_3.v();
2530
+ if (element_3.a() == null) {
2531
+ destination.e1(element_3);
2532
+ }
2533
+ }
2534
+ // Inline function 'kotlin.collections.map' call
2535
+ // Inline function 'kotlin.collections.mapTo' call
2536
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination, 10));
2537
+ var _iterator__ex2g4s_4 = destination.t();
2538
+ while (_iterator__ex2g4s_4.u()) {
2539
+ var item = _iterator__ex2g4s_4.v();
2540
+ var tmp$ret$14 = item.m59_1;
2541
+ destination_0.e1(tmp$ret$14);
2542
+ }
2543
+ var fieldNames = destination_0;
2544
+ 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.";
2545
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2546
+ }
2547
+ }
2548
+ protoOf(NumberSpanParserOperation).i5a = function (storage, input, startIndex) {
2549
+ if ((startIndex + this.m5a_1 | 0) > charSequenceLength(input)) {
2550
+ var tmp = Companion_instance_6;
2551
+ return tmp.b5a(startIndex, NumberSpanParserOperation$consume$lambda(this));
2552
+ }
2553
+ var digitsInRow = {_v: 0};
2554
+ while ((startIndex + digitsInRow._v | 0) < charSequenceLength(input) && isAsciiDigit(charSequenceGet(input, startIndex + digitsInRow._v | 0))) {
2555
+ digitsInRow._v = digitsInRow._v + 1 | 0;
2556
+ digitsInRow._v;
2557
+ }
2558
+ if (digitsInRow._v < this.m5a_1) {
2559
+ var tmp_0 = Companion_instance_6;
2560
+ return tmp_0.b5a(startIndex, NumberSpanParserOperation$consume$lambda_0(digitsInRow, this));
2561
+ }
2562
+ var index = startIndex;
2563
+ var inductionVariable = 0;
2564
+ var last = this.l5a_1.g1() - 1 | 0;
2565
+ if (inductionVariable <= last)
2566
+ do {
2567
+ var i = inductionVariable;
2568
+ inductionVariable = inductionVariable + 1 | 0;
2569
+ var tmp0_elvis_lhs = this.l5a_1.h1(i).a();
2570
+ var length = tmp0_elvis_lhs == null ? (digitsInRow._v - this.m5a_1 | 0) + 1 | 0 : tmp0_elvis_lhs;
2571
+ var error = this.l5a_1.h1(i).k59(storage, input, index, index + length | 0);
2572
+ if (!(error == null)) {
2573
+ var tmp2 = index;
2574
+ // Inline function 'kotlin.text.substring' call
2575
+ var endIndex = index + length | 0;
2576
+ var numberString = toString(charSequenceSubSequence(input, tmp2, endIndex));
2577
+ var tmp_1 = Companion_instance_6;
2578
+ var tmp_2 = index;
2579
+ return tmp_1.b5a(tmp_2, NumberSpanParserOperation$consume$lambda_1(numberString, this, i, error));
2580
+ }
2581
+ index = index + length | 0;
2582
+ }
2583
+ while (inductionVariable <= last);
2584
+ return Companion_instance_6.a5a(index);
2585
+ };
2586
+ protoOf(NumberSpanParserOperation).toString = function () {
2587
+ return _get_whatThisExpects__4pg11j(this);
2588
+ };
2589
+ function SignedIntParser(minDigits, maxDigits, spacePadding, setter, name, plusOnExceedsWidth) {
2590
+ var parsers = mutableListOf([spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name, true)]);
2591
+ if (!(plusOnExceedsWidth == null)) {
2592
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, plusOnExceedsWidth, spacePadding, setter, name));
2593
+ parsers.e1(new ParserStructure(listOf_0([new PlainStringParserOperation('+'), new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(plusOnExceedsWidth + 1 | 0, maxDigits, setter, name, false)))]), emptyList()));
2594
+ } else {
2595
+ parsers.e1(spaceAndZeroPaddedUnsignedInt(minDigits, maxDigits, spacePadding, setter, name));
2596
+ }
2597
+ return new ParserStructure(emptyList(), parsers);
2598
+ }
2599
+ function PlainStringParserOperation$consume$lambda(this$0) {
2600
+ return function () {
2601
+ return "Unexpected end of input: yet to parse '" + this$0.o5a_1 + "'";
2602
+ };
2603
+ }
2604
+ function PlainStringParserOperation$consume$lambda_0(this$0, $input, $startIndex, $i) {
2605
+ return function () {
2606
+ var tmp0 = $input;
2607
+ var tmp2 = $startIndex;
2608
+ // Inline function 'kotlin.text.substring' call
2609
+ var endIndex = ($startIndex + $i | 0) + 1 | 0;
2610
+ var tmp$ret$0 = toString(charSequenceSubSequence(tmp0, tmp2, endIndex));
2611
+ return 'Expected ' + this$0.o5a_1 + ' but got ' + tmp$ret$0;
2612
+ };
2613
+ }
2614
+ function PlainStringParserOperation(string) {
2615
+ this.o5a_1 = string;
2616
+ // Inline function 'kotlin.text.isNotEmpty' call
2617
+ var this_0 = this.o5a_1;
2618
+ // Inline function 'kotlin.require' call
2619
+ if (!(charSequenceLength(this_0) > 0)) {
2620
+ var message = 'Empty string is not allowed';
2621
+ throw IllegalArgumentException_init_$Create$(toString(message));
2622
+ }
2623
+ // Inline function 'kotlin.require' call
2624
+ if (!!isAsciiDigit(charCodeAt(this.o5a_1, 0))) {
2625
+ var message_0 = "String '" + this.o5a_1 + "' starts with a digit";
2626
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2627
+ }
2628
+ // Inline function 'kotlin.require' call
2629
+ if (!!isAsciiDigit(charCodeAt(this.o5a_1, this.o5a_1.length - 1 | 0))) {
2630
+ var message_1 = "String '" + this.o5a_1 + "' ends with a digit";
2631
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
2632
+ }
2633
+ }
2634
+ protoOf(PlainStringParserOperation).i5a = function (storage, input, startIndex) {
2635
+ if ((startIndex + this.o5a_1.length | 0) > charSequenceLength(input)) {
2636
+ var tmp = Companion_instance_6;
2637
+ return tmp.b5a(startIndex, PlainStringParserOperation$consume$lambda(this));
2638
+ }
2639
+ var inductionVariable = 0;
2640
+ var last = charSequenceLength(this.o5a_1) - 1 | 0;
2641
+ if (inductionVariable <= last)
2642
+ do {
2643
+ var i = inductionVariable;
2644
+ inductionVariable = inductionVariable + 1 | 0;
2645
+ if (!(charSequenceGet(input, startIndex + i | 0) === charCodeAt(this.o5a_1, i))) {
2646
+ var tmp_0 = Companion_instance_6;
2647
+ return tmp_0.b5a(startIndex, PlainStringParserOperation$consume$lambda_0(this, input, startIndex, i));
2648
+ }
2649
+ }
2650
+ while (inductionVariable <= last);
2651
+ return Companion_instance_6.a5a(startIndex + this.o5a_1.length | 0);
2652
+ };
2653
+ protoOf(PlainStringParserOperation).toString = function () {
2654
+ return "'" + this.o5a_1 + "'";
2655
+ };
2656
+ function UnconditionalModification() {
2657
+ }
2658
+ function spaceAndZeroPaddedUnsignedInt$numberOfRequiredLengths($withMinus, $setter, $name, minNumberLength, maxNumberLength) {
2659
+ // Inline function 'kotlin.check' call
2660
+ if (!(maxNumberLength >= (1 + ($withMinus ? 1 : 0) | 0))) {
2661
+ throw IllegalStateException_init_$Create$('Check failed.');
2662
+ }
2663
+ // Inline function 'kotlin.collections.buildList' call
2664
+ // Inline function 'kotlin.collections.buildListInternal' call
2665
+ // Inline function 'kotlin.apply' call
2666
+ var this_0 = ArrayList_init_$Create$();
2667
+ if ($withMinus) {
2668
+ this_0.e1(new PlainStringParserOperation('-'));
2669
+ }
2670
+ this_0.e1(new NumberSpanParserOperation(listOf(new UnsignedIntConsumer(minNumberLength - ($withMinus ? 1 : 0) | 0, maxNumberLength - ($withMinus ? 1 : 0) | 0, $setter, $name, $withMinus))));
2671
+ var tmp$ret$4 = this_0.j3();
2672
+ return new ParserStructure(tmp$ret$4, emptyList());
2673
+ }
2674
+ function get_POWERS_OF_TEN() {
2675
+ _init_properties_math_kt__tgcmt4();
2676
+ return POWERS_OF_TEN;
2677
+ }
2678
+ var POWERS_OF_TEN;
2679
+ var properties_initialized_math_kt_amm9wq;
2680
+ function _init_properties_math_kt__tgcmt4() {
2681
+ if (!properties_initialized_math_kt_amm9wq) {
2682
+ properties_initialized_math_kt_amm9wq = true;
2683
+ // Inline function 'kotlin.intArrayOf' call
2684
+ POWERS_OF_TEN = new Int32Array([1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]);
2685
+ }
2686
+ }
2687
+ function isAsciiDigit(_this__u8e3s4) {
2688
+ return _Char___init__impl__6a9atx(48) <= _this__u8e3s4 ? _this__u8e3s4 <= _Char___init__impl__6a9atx(57) : false;
2689
+ }
2690
+ function asciiDigitToInt(_this__u8e3s4) {
2691
+ return Char__minus_impl_a2frrh(_this__u8e3s4, _Char___init__impl__6a9atx(48));
2692
+ }
2693
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2694
+ return buildClassSerialDescriptor('kotlinx.datetime.TimeBased', [], TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2695
+ }
2696
+ function TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2697
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2698
+ var elementName = 'nanoseconds';
2699
+ var annotations = emptyList();
2700
+ // Inline function 'kotlinx.serialization.serializer' call
2701
+ // Inline function 'kotlinx.serialization.internal.cast' call
2702
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().jb(), arrayOf([]), false));
2703
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).z1r();
2704
+ $this$buildClassSerialDescriptor.j1u(elementName, descriptor, annotations, false);
2705
+ return Unit_instance;
2706
+ }
2707
+ function TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw() {
2708
+ return function (p0) {
2709
+ return p0.z1r();
2710
+ };
2711
+ }
2712
+ function TimeBasedDateTimeUnitSerializer() {
2713
+ TimeBasedDateTimeUnitSerializer_instance = this;
2714
+ var tmp = this;
2715
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2716
+ tmp.p5a_1 = lazy_0(tmp_0, TimeBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2717
+ }
2718
+ protoOf(TimeBasedDateTimeUnitSerializer).z1r = function () {
2719
+ var tmp0 = this.p5a_1;
2720
+ var tmp = KProperty1;
2721
+ // Inline function 'kotlin.getValue' call
2722
+ getPropertyCallableRef('descriptor', 1, tmp, TimeBasedDateTimeUnitSerializer$_get_descriptor_$ref_ezonyw(), null);
2723
+ return tmp0.m1();
2724
+ };
2725
+ protoOf(TimeBasedDateTimeUnitSerializer).q5a = function (encoder, value) {
2726
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2727
+ var descriptor = this.z1r();
2728
+ var composite = encoder.n1v(descriptor);
2729
+ composite.y1w(TimeBasedDateTimeUnitSerializer_getInstance().z1r(), 0, value.s53_1);
2730
+ composite.o1v(descriptor);
2731
+ };
2732
+ protoOf(TimeBasedDateTimeUnitSerializer).a1s = function (encoder, value) {
2733
+ return this.q5a(encoder, value instanceof TimeBased ? value : THROW_CCE());
2734
+ };
2735
+ protoOf(TimeBasedDateTimeUnitSerializer).b1s = function (decoder) {
2736
+ var seen = {_v: false};
2737
+ var nanoseconds = {_v: 0n};
2738
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2739
+ var descriptor = this.z1r();
2740
+ var composite = decoder.n1v(descriptor);
2741
+ if (composite.d1w()) {
2742
+ nanoseconds._v = composite.t1v(TimeBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2743
+ seen._v = true;
2744
+ } else {
2745
+ loop: while (true) {
2746
+ var elementIndex = composite.e1w(TimeBasedDateTimeUnitSerializer_getInstance().z1r());
2747
+ switch (elementIndex) {
2748
+ case 0:
2749
+ nanoseconds._v = composite.t1v(TimeBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2750
+ seen._v = true;
2751
+ break;
2752
+ case -1:
2753
+ break loop;
2754
+ default:
2755
+ throwUnknownIndexException(elementIndex);
2756
+ break;
2757
+ }
2758
+ }
2759
+ }
2760
+ var result = Unit_instance;
2761
+ composite.o1v(descriptor);
2762
+ if (!seen._v)
2763
+ throw MissingFieldException_init_$Create$('nanoseconds', this.z1r().a1t());
2764
+ return new TimeBased(nanoseconds._v);
2765
+ };
2766
+ var TimeBasedDateTimeUnitSerializer_instance;
2767
+ function TimeBasedDateTimeUnitSerializer_getInstance() {
2768
+ if (TimeBasedDateTimeUnitSerializer_instance == null)
2769
+ new TimeBasedDateTimeUnitSerializer();
2770
+ return TimeBasedDateTimeUnitSerializer_instance;
2771
+ }
2772
+ function _get_impl__d88w17($this) {
2773
+ var tmp0 = $this.r5a_1;
2774
+ var tmp = KProperty1;
2775
+ // Inline function 'kotlin.getValue' call
2776
+ getPropertyCallableRef('impl', 1, tmp, DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs(), null);
2777
+ return tmp0.m1();
2778
+ }
2779
+ function DateBasedDateTimeUnitSerializer$impl$delegate$lambda() {
2780
+ var tmp = getKClass(DateBased);
2781
+ // Inline function 'kotlin.arrayOf' call
2782
+ // Inline function 'kotlin.js.unsafeCast' call
2783
+ // Inline function 'kotlin.js.asDynamic' call
2784
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased)];
2785
+ // Inline function 'kotlin.arrayOf' call
2786
+ // Inline function 'kotlin.js.unsafeCast' call
2787
+ // Inline function 'kotlin.js.asDynamic' call
2788
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance()];
2789
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit.DateBased', tmp, tmp_0, tmp$ret$5);
2790
+ }
2791
+ function DateBasedDateTimeUnitSerializer$_get_impl_$ref_m860rs() {
2792
+ return function (p0) {
2793
+ return _get_impl__d88w17(p0);
2794
+ };
2795
+ }
2796
+ function DateBasedDateTimeUnitSerializer() {
2797
+ DateBasedDateTimeUnitSerializer_instance = this;
2798
+ AbstractPolymorphicSerializer.call(this);
2799
+ var tmp = this;
2800
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2801
+ tmp.r5a_1 = lazy_0(tmp_0, DateBasedDateTimeUnitSerializer$impl$delegate$lambda);
2802
+ }
2803
+ protoOf(DateBasedDateTimeUnitSerializer).c1s = function (decoder, klassName) {
2804
+ return _get_impl__d88w17(this).c1s(decoder, klassName);
2805
+ };
2806
+ protoOf(DateBasedDateTimeUnitSerializer).s5a = function (encoder, value) {
2807
+ return _get_impl__d88w17(this).e1s(encoder, value);
2808
+ };
2809
+ protoOf(DateBasedDateTimeUnitSerializer).e1s = function (encoder, value) {
2810
+ return this.s5a(encoder, value instanceof DateBased ? value : THROW_CCE());
2811
+ };
2812
+ protoOf(DateBasedDateTimeUnitSerializer).d1s = function () {
2813
+ return getKClass(DateBased);
2814
+ };
2815
+ protoOf(DateBasedDateTimeUnitSerializer).z1r = function () {
2816
+ return _get_impl__d88w17(this).z1r();
2817
+ };
2818
+ var DateBasedDateTimeUnitSerializer_instance;
2819
+ function DateBasedDateTimeUnitSerializer_getInstance() {
2820
+ if (DateBasedDateTimeUnitSerializer_instance == null)
2821
+ new DateBasedDateTimeUnitSerializer();
2822
+ return DateBasedDateTimeUnitSerializer_instance;
2823
+ }
2824
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2825
+ return buildClassSerialDescriptor('kotlinx.datetime.DayBased', [], DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2826
+ }
2827
+ function DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2828
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2829
+ var annotations = emptyList();
2830
+ // Inline function 'kotlinx.serialization.serializer' call
2831
+ // Inline function 'kotlinx.serialization.internal.cast' call
2832
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().ib(), arrayOf([]), false));
2833
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).z1r();
2834
+ $this$buildClassSerialDescriptor.j1u('days', descriptor, annotations, false);
2835
+ return Unit_instance;
2836
+ }
2837
+ function DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3() {
2838
+ return function (p0) {
2839
+ return p0.z1r();
2840
+ };
2841
+ }
2842
+ function DayBasedDateTimeUnitSerializer() {
2843
+ DayBasedDateTimeUnitSerializer_instance = this;
2844
+ var tmp = this;
2845
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2846
+ tmp.t5a_1 = lazy_0(tmp_0, DayBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2847
+ }
2848
+ protoOf(DayBasedDateTimeUnitSerializer).z1r = function () {
2849
+ var tmp0 = this.t5a_1;
2850
+ var tmp = KProperty1;
2851
+ // Inline function 'kotlin.getValue' call
2852
+ getPropertyCallableRef('descriptor', 1, tmp, DayBasedDateTimeUnitSerializer$_get_descriptor_$ref_2ycvl3(), null);
2853
+ return tmp0.m1();
2854
+ };
2855
+ protoOf(DayBasedDateTimeUnitSerializer).u5a = function (encoder, value) {
2856
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2857
+ var descriptor = this.z1r();
2858
+ var composite = encoder.n1v(descriptor);
2859
+ composite.x1w(DayBasedDateTimeUnitSerializer_getInstance().z1r(), 0, value.y53_1);
2860
+ composite.o1v(descriptor);
2861
+ };
2862
+ protoOf(DayBasedDateTimeUnitSerializer).a1s = function (encoder, value) {
2863
+ return this.u5a(encoder, value instanceof DayBased ? value : THROW_CCE());
2864
+ };
2865
+ protoOf(DayBasedDateTimeUnitSerializer).b1s = function (decoder) {
2866
+ var seen = {_v: false};
2867
+ var days = {_v: 0};
2868
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2869
+ var descriptor = this.z1r();
2870
+ var composite = decoder.n1v(descriptor);
2871
+ if (composite.d1w()) {
2872
+ days._v = composite.s1v(DayBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2873
+ seen._v = true;
2874
+ } else {
2875
+ loop: while (true) {
2876
+ var elementIndex = composite.e1w(DayBasedDateTimeUnitSerializer_getInstance().z1r());
2877
+ switch (elementIndex) {
2878
+ case 0:
2879
+ days._v = composite.s1v(DayBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2880
+ seen._v = true;
2881
+ break;
2882
+ case -1:
2883
+ break loop;
2884
+ default:
2885
+ throwUnknownIndexException(elementIndex);
2886
+ break;
2887
+ }
2888
+ }
2889
+ }
2890
+ var result = Unit_instance;
2891
+ composite.o1v(descriptor);
2892
+ if (!seen._v)
2893
+ throw MissingFieldException_init_$Create$('days', this.z1r().a1t());
2894
+ return new DayBased(days._v);
2895
+ };
2896
+ var DayBasedDateTimeUnitSerializer_instance;
2897
+ function DayBasedDateTimeUnitSerializer_getInstance() {
2898
+ if (DayBasedDateTimeUnitSerializer_instance == null)
2899
+ new DayBasedDateTimeUnitSerializer();
2900
+ return DayBasedDateTimeUnitSerializer_instance;
2901
+ }
2902
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda() {
2903
+ return buildClassSerialDescriptor('kotlinx.datetime.MonthBased', [], MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda);
2904
+ }
2905
+ function MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda$lambda($this$buildClassSerialDescriptor) {
2906
+ // Inline function 'kotlinx.serialization.descriptors.element' call
2907
+ var annotations = emptyList();
2908
+ // Inline function 'kotlinx.serialization.serializer' call
2909
+ // Inline function 'kotlinx.serialization.internal.cast' call
2910
+ var this_0 = serializer(createKType(PrimitiveClasses_getInstance().ib(), arrayOf([]), false));
2911
+ var descriptor = (isInterface(this_0, KSerializer) ? this_0 : THROW_CCE()).z1r();
2912
+ $this$buildClassSerialDescriptor.j1u('months', descriptor, annotations, false);
2913
+ return Unit_instance;
2914
+ }
2915
+ function MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn() {
2916
+ return function (p0) {
2917
+ return p0.z1r();
2918
+ };
2919
+ }
2920
+ function MonthBasedDateTimeUnitSerializer() {
2921
+ MonthBasedDateTimeUnitSerializer_instance = this;
2922
+ var tmp = this;
2923
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
2924
+ tmp.v5a_1 = lazy_0(tmp_0, MonthBasedDateTimeUnitSerializer$descriptor$delegate$lambda);
2925
+ }
2926
+ protoOf(MonthBasedDateTimeUnitSerializer).z1r = function () {
2927
+ var tmp0 = this.v5a_1;
2928
+ var tmp = KProperty1;
2929
+ // Inline function 'kotlin.getValue' call
2930
+ getPropertyCallableRef('descriptor', 1, tmp, MonthBasedDateTimeUnitSerializer$_get_descriptor_$ref_vroatn(), null);
2931
+ return tmp0.m1();
2932
+ };
2933
+ protoOf(MonthBasedDateTimeUnitSerializer).w5a = function (encoder, value) {
2934
+ // Inline function 'kotlinx.serialization.encoding.encodeStructure' call
2935
+ var descriptor = this.z1r();
2936
+ var composite = encoder.n1v(descriptor);
2937
+ composite.x1w(MonthBasedDateTimeUnitSerializer_getInstance().z1r(), 0, value.z53_1);
2938
+ composite.o1v(descriptor);
2939
+ };
2940
+ protoOf(MonthBasedDateTimeUnitSerializer).a1s = function (encoder, value) {
2941
+ return this.w5a(encoder, value instanceof MonthBased ? value : THROW_CCE());
2942
+ };
2943
+ protoOf(MonthBasedDateTimeUnitSerializer).b1s = function (decoder) {
2944
+ var seen = {_v: false};
2945
+ var months = {_v: 0};
2946
+ // Inline function 'kotlinx.serialization.encoding.decodeStructure' call
2947
+ var descriptor = this.z1r();
2948
+ var composite = decoder.n1v(descriptor);
2949
+ if (composite.d1w()) {
2950
+ months._v = composite.s1v(MonthBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2951
+ seen._v = true;
2952
+ } else {
2953
+ loop: while (true) {
2954
+ var elementIndex = composite.e1w(MonthBasedDateTimeUnitSerializer_getInstance().z1r());
2955
+ switch (elementIndex) {
2956
+ case 0:
2957
+ months._v = composite.s1v(MonthBasedDateTimeUnitSerializer_getInstance().z1r(), 0);
2958
+ seen._v = true;
2959
+ break;
2960
+ case -1:
2961
+ break loop;
2962
+ default:
2963
+ throwUnknownIndexException(elementIndex);
2964
+ break;
2965
+ }
2966
+ }
2967
+ }
2968
+ var result = Unit_instance;
2969
+ composite.o1v(descriptor);
2970
+ if (!seen._v)
2971
+ throw MissingFieldException_init_$Create$('months', this.z1r().a1t());
2972
+ return new MonthBased(months._v);
2973
+ };
2974
+ var MonthBasedDateTimeUnitSerializer_instance;
2975
+ function MonthBasedDateTimeUnitSerializer_getInstance() {
2976
+ if (MonthBasedDateTimeUnitSerializer_instance == null)
2977
+ new MonthBasedDateTimeUnitSerializer();
2978
+ return MonthBasedDateTimeUnitSerializer_instance;
2979
+ }
2980
+ function _get_impl__d88w17_0($this) {
2981
+ var tmp0 = $this.x5a_1;
2982
+ var tmp = KProperty1;
2983
+ // Inline function 'kotlin.getValue' call
2984
+ getPropertyCallableRef('impl', 1, tmp, DateTimeUnitSerializer$_get_impl_$ref_2y1hvx(), null);
2985
+ return tmp0.m1();
2986
+ }
2987
+ function DateTimeUnitSerializer$impl$delegate$lambda() {
2988
+ var tmp = getKClass(DateTimeUnit);
2989
+ // Inline function 'kotlin.arrayOf' call
2990
+ // Inline function 'kotlin.js.unsafeCast' call
2991
+ // Inline function 'kotlin.js.asDynamic' call
2992
+ var tmp_0 = [getKClass(DayBased), getKClass(MonthBased), getKClass(TimeBased)];
2993
+ // Inline function 'kotlin.arrayOf' call
2994
+ // Inline function 'kotlin.js.unsafeCast' call
2995
+ // Inline function 'kotlin.js.asDynamic' call
2996
+ var tmp$ret$5 = [DayBasedDateTimeUnitSerializer_getInstance(), MonthBasedDateTimeUnitSerializer_getInstance(), TimeBasedDateTimeUnitSerializer_getInstance()];
2997
+ return new SealedClassSerializer('kotlinx.datetime.DateTimeUnit', tmp, tmp_0, tmp$ret$5);
2998
+ }
2999
+ function DateTimeUnitSerializer$_get_impl_$ref_2y1hvx() {
3000
+ return function (p0) {
3001
+ return _get_impl__d88w17_0(p0);
3002
+ };
3003
+ }
3004
+ function DateTimeUnitSerializer() {
3005
+ DateTimeUnitSerializer_instance = this;
3006
+ AbstractPolymorphicSerializer.call(this);
3007
+ var tmp = this;
3008
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
3009
+ tmp.x5a_1 = lazy_0(tmp_0, DateTimeUnitSerializer$impl$delegate$lambda);
3010
+ }
3011
+ protoOf(DateTimeUnitSerializer).c1s = function (decoder, klassName) {
3012
+ return _get_impl__d88w17_0(this).c1s(decoder, klassName);
3013
+ };
3014
+ protoOf(DateTimeUnitSerializer).y5a = function (encoder, value) {
3015
+ return _get_impl__d88w17_0(this).e1s(encoder, value);
3016
+ };
3017
+ protoOf(DateTimeUnitSerializer).e1s = function (encoder, value) {
3018
+ return this.y5a(encoder, value instanceof DateTimeUnit ? value : THROW_CCE());
3019
+ };
3020
+ protoOf(DateTimeUnitSerializer).d1s = function () {
3021
+ return getKClass(DateTimeUnit);
3022
+ };
3023
+ protoOf(DateTimeUnitSerializer).z1r = function () {
3024
+ return _get_impl__d88w17_0(this).z1r();
3025
+ };
3026
+ var DateTimeUnitSerializer_instance;
3027
+ function DateTimeUnitSerializer_getInstance() {
3028
+ if (DateTimeUnitSerializer_instance == null)
3029
+ new DateTimeUnitSerializer();
3030
+ return DateTimeUnitSerializer_instance;
3031
+ }
3032
+ function throwUnknownIndexException(index) {
3033
+ throw SerializationException_init_$Create$('An unknown field for index ' + index);
3034
+ }
3035
+ function LocalDateSerializer() {
3036
+ LocalDateSerializer_instance = this;
3037
+ this.z5a_1 = PrimitiveSerialDescriptor('kotlinx.datetime.LocalDate', STRING_getInstance());
3038
+ }
3039
+ protoOf(LocalDateSerializer).z1r = function () {
3040
+ return this.z5a_1;
3041
+ };
3042
+ protoOf(LocalDateSerializer).b1s = function (decoder) {
3043
+ return Companion_getInstance_7().e5b(decoder.i1v());
3044
+ };
3045
+ protoOf(LocalDateSerializer).f5b = function (encoder, value) {
3046
+ encoder.r1w(value.toString());
3047
+ };
3048
+ protoOf(LocalDateSerializer).a1s = function (encoder, value) {
3049
+ return this.f5b(encoder, value instanceof LocalDate ? value : THROW_CCE());
3050
+ };
3051
+ var LocalDateSerializer_instance;
3052
+ function LocalDateSerializer_getInstance() {
3053
+ if (LocalDateSerializer_instance == null)
3054
+ new LocalDateSerializer();
3055
+ return LocalDateSerializer_instance;
3056
+ }
3057
+ function YearMonthSerializer() {
3058
+ YearMonthSerializer_instance = this;
3059
+ this.g5b_1 = PrimitiveSerialDescriptor('kotlinx.datetime.YearMonth', STRING_getInstance());
3060
+ }
3061
+ protoOf(YearMonthSerializer).z1r = function () {
3062
+ return this.g5b_1;
3063
+ };
3064
+ protoOf(YearMonthSerializer).b1s = function (decoder) {
3065
+ return Companion_instance_8.h5b(decoder.i1v());
3066
+ };
3067
+ protoOf(YearMonthSerializer).i5b = function (encoder, value) {
3068
+ encoder.r1w(value.toString());
3069
+ };
3070
+ protoOf(YearMonthSerializer).a1s = function (encoder, value) {
3071
+ return this.i5b(encoder, value instanceof YearMonth ? value : THROW_CCE());
3072
+ };
3073
+ var YearMonthSerializer_instance;
3074
+ function YearMonthSerializer_getInstance() {
3075
+ if (YearMonthSerializer_instance == null)
3076
+ new YearMonthSerializer();
3077
+ return YearMonthSerializer_instance;
3078
+ }
3079
+ function Companion_7() {
3080
+ Companion_instance_7 = this;
3081
+ this.a5b_1 = new LocalDate(-999999999, 1, 1);
3082
+ this.b5b_1 = new LocalDate(999999999, 12, 31);
3083
+ this.c5b_1 = -365243219162n;
3084
+ this.d5b_1 = 365241780471n;
3085
+ }
3086
+ protoOf(Companion_7).j5b = function (input, format) {
3087
+ return format.al(input);
3088
+ };
3089
+ protoOf(Companion_7).e5b = function (input, format, $super) {
3090
+ format = format === VOID ? getIsoDateFormat() : format;
3091
+ return $super === VOID ? this.j5b(input, format) : $super.j5b.call(this, input, format);
3092
+ };
3093
+ protoOf(Companion_7).k5b = function (epochDays) {
3094
+ // Inline function 'kotlin.require' call
3095
+ if (!(-365243219162n <= epochDays ? epochDays <= 365241780471n : false)) {
3096
+ var message = 'Invalid date: epoch day ' + epochDays.toString() + ' is outside the boundaries of LocalDate';
3097
+ throw IllegalArgumentException_init_$Create$(toString(message));
3098
+ }
3099
+ // Inline function 'kotlin.Long.plus' call
3100
+ var zeroDay = add(epochDays, fromInt(719528));
3101
+ // Inline function 'kotlin.Long.minus' call
3102
+ var this_0 = zeroDay;
3103
+ zeroDay = subtract(this_0, fromInt(60));
3104
+ var adjust = 0n;
3105
+ if (zeroDay < 0n) {
3106
+ // Inline function 'kotlin.Long.plus' call
3107
+ var this_1 = zeroDay;
3108
+ // Inline function 'kotlin.Long.div' call
3109
+ var this_2 = add(this_1, fromInt(1));
3110
+ // Inline function 'kotlin.Long.minus' call
3111
+ var this_3 = divide(this_2, fromInt(146097));
3112
+ var adjustCycles = subtract(this_3, fromInt(1));
3113
+ // Inline function 'kotlin.Long.times' call
3114
+ adjust = multiply(adjustCycles, fromInt(400));
3115
+ var tmp = zeroDay;
3116
+ // Inline function 'kotlin.Long.times' call
3117
+ var this_4 = negate(adjustCycles);
3118
+ var tmp$ret$8 = multiply(this_4, fromInt(146097));
3119
+ zeroDay = add(tmp, tmp$ret$8);
3120
+ }
3121
+ // Inline function 'kotlin.Long.plus' call
3122
+ var this_5 = multiply(numberToLong(400), zeroDay);
3123
+ // Inline function 'kotlin.Long.div' call
3124
+ var this_6 = add(this_5, fromInt(591));
3125
+ var yearEst = divide(this_6, fromInt(146097));
3126
+ var tmp_0 = zeroDay;
3127
+ var tmp_1 = multiply(numberToLong(365), yearEst);
3128
+ // Inline function 'kotlin.Long.div' call
3129
+ var this_7 = yearEst;
3130
+ var tmp$ret$11 = divide(this_7, fromInt(4));
3131
+ var tmp_2 = add(tmp_1, tmp$ret$11);
3132
+ // Inline function 'kotlin.Long.div' call
3133
+ var this_8 = yearEst;
3134
+ var tmp$ret$12 = divide(this_8, fromInt(100));
3135
+ var tmp_3 = subtract(tmp_2, tmp$ret$12);
3136
+ // Inline function 'kotlin.Long.div' call
3137
+ var this_9 = yearEst;
3138
+ var tmp$ret$13 = divide(this_9, fromInt(400));
3139
+ var doyEst = subtract(tmp_0, add(tmp_3, tmp$ret$13));
3140
+ if (doyEst < 0n) {
3141
+ var _unary__edvuaz = yearEst;
3142
+ yearEst = subtract(_unary__edvuaz, get_ONE());
3143
+ var tmp_4 = zeroDay;
3144
+ var tmp_5 = multiply(numberToLong(365), yearEst);
3145
+ // Inline function 'kotlin.Long.div' call
3146
+ var this_10 = yearEst;
3147
+ var tmp$ret$14 = divide(this_10, fromInt(4));
3148
+ var tmp_6 = add(tmp_5, tmp$ret$14);
3149
+ // Inline function 'kotlin.Long.div' call
3150
+ var this_11 = yearEst;
3151
+ var tmp$ret$15 = divide(this_11, fromInt(100));
3152
+ var tmp_7 = subtract(tmp_6, tmp$ret$15);
3153
+ // Inline function 'kotlin.Long.div' call
3154
+ var this_12 = yearEst;
3155
+ var tmp$ret$16 = divide(this_12, fromInt(400));
3156
+ doyEst = subtract(tmp_4, add(tmp_7, tmp$ret$16));
3157
+ }
3158
+ yearEst = add(yearEst, adjust);
3159
+ var marchDoy0 = convertToInt(doyEst);
3160
+ var marchMonth0 = (imul(marchDoy0, 5) + 2 | 0) / 153 | 0;
3161
+ var month = ((marchMonth0 + 2 | 0) % 12 | 0) + 1 | 0;
3162
+ var dom = (marchDoy0 - ((imul(marchMonth0, 306) + 5 | 0) / 10 | 0) | 0) + 1 | 0;
3163
+ var tmp0 = yearEst;
3164
+ // Inline function 'kotlin.Long.plus' call
3165
+ var other = marchMonth0 / 10 | 0;
3166
+ yearEst = add(tmp0, fromInt(other));
3167
+ return new LocalDate(convertToInt(yearEst), month, dom);
3168
+ };
3169
+ var Companion_instance_7;
3170
+ function Companion_getInstance_7() {
3171
+ if (Companion_instance_7 == null)
3172
+ new Companion_7();
3173
+ return Companion_instance_7;
3174
+ }
3175
+ function Formats() {
3176
+ Formats_instance = this;
3177
+ this.m54_1 = get_ISO_DATE_BASIC();
3178
+ }
3179
+ protoOf(Formats).n54 = function () {
3180
+ return get_ISO_DATE();
3181
+ };
3182
+ var Formats_instance;
3183
+ function Formats_getInstance() {
3184
+ if (Formats_instance == null)
3185
+ new Formats();
3186
+ return Formats_instance;
3187
+ }
3188
+ function resolvePreviousValid($this, year, month, day) {
3189
+ // Inline function 'kotlin.math.min' call
3190
+ var b = monthLength(month, isLeapYear(year));
3191
+ var newDay = Math.min(day, b);
3192
+ return new LocalDate(year, month, newDay);
3193
+ }
3194
+ function LocalDate(year, month, day) {
3195
+ Companion_getInstance_7();
3196
+ this.w55_1 = year;
3197
+ this.x55_1 = day;
3198
+ this.y55_1 = month;
3199
+ // Inline function 'kotlin.require' call
3200
+ if (!isValidYear(this.w55_1)) {
3201
+ var message = 'Invalid date: the year is out of range';
3202
+ throw IllegalArgumentException_init_$Create$(toString(message));
3203
+ }
3204
+ var containsArg = this.y55_1;
3205
+ // Inline function 'kotlin.require' call
3206
+ if (!(1 <= containsArg ? containsArg <= 12 : false)) {
3207
+ var message_0 = 'Invalid date: month must be a number between 1 and 12, got ' + this.y55_1;
3208
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
3209
+ }
3210
+ var containsArg_0 = this.x55_1;
3211
+ // Inline function 'kotlin.require' call
3212
+ if (!(1 <= containsArg_0 ? containsArg_0 <= 31 : false)) {
3213
+ var message_1 = 'Invalid date: day of month must be a number between 1 and 31, got ' + this.x55_1;
3214
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
3215
+ }
3216
+ if (this.x55_1 > 28 && this.x55_1 > monthLength(this.y55_1, isLeapYear(this.w55_1))) {
3217
+ if (this.x55_1 === 29) {
3218
+ throw IllegalArgumentException_init_$Create$("Invalid date 'February 29' as '" + this.w55_1 + "' is not a leap year");
3219
+ } else {
3220
+ throw IllegalArgumentException_init_$Create$("Invalid date '" + Month_0(month).toString() + ' ' + this.x55_1 + "'");
3221
+ }
3222
+ }
3223
+ }
3224
+ protoOf(LocalDate).l5b = function () {
3225
+ var y = fromInt(this.w55_1);
3226
+ var m = fromInt(this.y55_1);
3227
+ var total = 0n;
3228
+ total = add(total, multiply(numberToLong(365), y));
3229
+ if (y >= 0n) {
3230
+ var tmp = total;
3231
+ // Inline function 'kotlin.Long.plus' call
3232
+ // Inline function 'kotlin.Long.div' call
3233
+ var this_0 = add(y, fromInt(3));
3234
+ var tmp_0 = divide(this_0, fromInt(4));
3235
+ // Inline function 'kotlin.Long.plus' call
3236
+ // Inline function 'kotlin.Long.div' call
3237
+ var this_1 = add(y, fromInt(99));
3238
+ var tmp$ret$3 = divide(this_1, fromInt(100));
3239
+ var tmp_1 = subtract(tmp_0, tmp$ret$3);
3240
+ // Inline function 'kotlin.Long.plus' call
3241
+ // Inline function 'kotlin.Long.div' call
3242
+ var this_2 = add(y, fromInt(399));
3243
+ var tmp$ret$5 = divide(this_2, fromInt(400));
3244
+ total = add(tmp, add(tmp_1, tmp$ret$5));
3245
+ } else {
3246
+ var tmp_2 = total;
3247
+ // Inline function 'kotlin.Long.div' call
3248
+ var tmp_3 = divide(y, fromInt(-4));
3249
+ // Inline function 'kotlin.Long.div' call
3250
+ var tmp$ret$7 = divide(y, fromInt(-100));
3251
+ var tmp_4 = subtract(tmp_3, tmp$ret$7);
3252
+ // Inline function 'kotlin.Long.div' call
3253
+ var tmp$ret$8 = divide(y, fromInt(-400));
3254
+ total = subtract(tmp_2, add(tmp_4, tmp$ret$8));
3255
+ }
3256
+ var tmp_5 = total;
3257
+ // Inline function 'kotlin.Long.minus' call
3258
+ var this_3 = multiply(numberToLong(367), m);
3259
+ // Inline function 'kotlin.Long.div' call
3260
+ var this_4 = subtract(this_3, fromInt(362));
3261
+ var tmp$ret$10 = divide(this_4, fromInt(12));
3262
+ total = add(tmp_5, tmp$ret$10);
3263
+ var tmp0 = total;
3264
+ // Inline function 'kotlin.Long.plus' call
3265
+ var other = this.x55_1 - 1 | 0;
3266
+ total = add(tmp0, fromInt(other));
3267
+ if (m > 2n) {
3268
+ var _unary__edvuaz = total;
3269
+ total = subtract(_unary__edvuaz, get_ONE());
3270
+ if (!isLeapYear(this.w55_1)) {
3271
+ var _unary__edvuaz_0 = total;
3272
+ total = subtract(_unary__edvuaz_0, get_ONE());
3273
+ }
3274
+ }
3275
+ // Inline function 'kotlin.Long.minus' call
3276
+ var this_5 = total;
3277
+ return subtract(this_5, fromInt(719528));
3278
+ };
3279
+ protoOf(LocalDate).z55 = function () {
3280
+ return Month_0(this.y55_1);
3281
+ };
3282
+ protoOf(LocalDate).r55 = function () {
3283
+ // Inline function 'kotlin.Long.plus' call
3284
+ var this_0 = this.l5b();
3285
+ // Inline function 'kotlin.mod' call
3286
+ var tmp0 = add(this_0, fromInt(3));
3287
+ // Inline function 'kotlin.mod' call
3288
+ var other = fromInt(7);
3289
+ var r = modulo(tmp0, other);
3290
+ var tmp$ret$1 = add(r, other & shiftRight((r ^ other) & (r | negate(r)), 63));
3291
+ var dow0 = convertToInt(tmp$ret$1);
3292
+ return DayOfWeek_0(dow0 + 1 | 0);
3293
+ };
3294
+ protoOf(LocalDate).t55 = function () {
3295
+ return (firstDayOfYear(this.z55(), isLeapYear(this.w55_1)) + this.x55_1 | 0) - 1 | 0;
3296
+ };
3297
+ protoOf(LocalDate).m5b = function (other) {
3298
+ var y = compareTo(this.w55_1, other.w55_1);
3299
+ if (!(y === 0)) {
3300
+ return y;
3301
+ }
3302
+ var m = compareTo(this.y55_1, other.y55_1);
3303
+ if (!(m === 0)) {
3304
+ return m;
3305
+ }
3306
+ return compareTo(this.x55_1, other.x55_1);
3307
+ };
3308
+ protoOf(LocalDate).d = function (other) {
3309
+ return this.m5b(other instanceof LocalDate ? other : THROW_CCE());
3310
+ };
3311
+ protoOf(LocalDate).n5b = function (monthsToAdd) {
3312
+ if (monthsToAdd === 0n) {
3313
+ return this;
3314
+ }
3315
+ var tmp0 = multiply(numberToLong(this.w55_1), 12n);
3316
+ // Inline function 'kotlin.Long.plus' call
3317
+ var other = this.y55_1 - 1 | 0;
3318
+ var monthCount = add(tmp0, fromInt(other));
3319
+ var calcMonths = safeAdd(monthCount, monthsToAdd);
3320
+ // Inline function 'kotlin.floorDiv' call
3321
+ // Inline function 'kotlin.floorDiv' call
3322
+ var other_0 = fromInt(12);
3323
+ var q = divide(calcMonths, other_0);
3324
+ if ((calcMonths ^ other_0) < 0n && !(multiply(q, other_0) === calcMonths)) {
3325
+ var _unary__edvuaz = q;
3326
+ q = subtract(_unary__edvuaz, get_ONE());
3327
+ }
3328
+ var newYear = q;
3329
+ // Inline function 'kotlin.ranges.contains' call
3330
+ var this_0 = numberRangeToNumber(-999999999, 999999999);
3331
+ if (!contains(isInterface(this_0, ClosedRange) ? this_0 : THROW_CCE(), newYear)) {
3332
+ throw IllegalArgumentException_init_$Create$('The result of adding ' + monthsToAdd.toString() + ' months to ' + this.toString() + ' is out of LocalDate range.');
3333
+ }
3334
+ // Inline function 'kotlin.mod' call
3335
+ // Inline function 'kotlin.mod' call
3336
+ var other_1 = fromInt(12);
3337
+ var r = modulo(calcMonths, other_1);
3338
+ var tmp$ret$4 = add(r, other_1 & shiftRight((r ^ other_1) & (r | negate(r)), 63));
3339
+ var newMonth = convertToInt(tmp$ret$4) + 1 | 0;
3340
+ return resolvePreviousValid(this, convertToInt(newYear), newMonth, this.x55_1);
3341
+ };
3342
+ protoOf(LocalDate).o5b = function (daysToAdd) {
3343
+ return daysToAdd === 0n ? this : Companion_getInstance_7().k5b(safeAdd(this.l5b(), daysToAdd));
3344
+ };
3345
+ protoOf(LocalDate).equals = function (other) {
3346
+ var tmp;
3347
+ if (this === other) {
3348
+ tmp = true;
3349
+ } else {
3350
+ var tmp_0;
3351
+ if (other instanceof LocalDate) {
3352
+ tmp_0 = this.m5b(other) === 0;
3353
+ } else {
3354
+ tmp_0 = false;
3355
+ }
3356
+ tmp = tmp_0;
3357
+ }
3358
+ return tmp;
3359
+ };
3360
+ protoOf(LocalDate).hashCode = function () {
3361
+ var yearValue = this.w55_1;
3362
+ var monthValue = this.y55_1;
3363
+ var dayValue = this.x55_1;
3364
+ return yearValue & -2048 ^ (((yearValue << 11) + (monthValue << 6) | 0) + dayValue | 0);
3365
+ };
3366
+ protoOf(LocalDate).toString = function () {
3367
+ return format(this, Formats_getInstance().n54());
3368
+ };
3369
+ function isValidYear(year) {
3370
+ return year >= -999999999 && year <= 999999999;
3371
+ }
3372
+ function plus_1(_this__u8e3s4, value, unit) {
3373
+ var tmp;
3374
+ try {
3375
+ var tmp_0;
3376
+ if (unit instanceof DayBased) {
3377
+ tmp_0 = _this__u8e3s4.o5b(safeMultiply(value, fromInt(unit.y53_1)));
3378
+ } else {
3379
+ if (unit instanceof MonthBased) {
3380
+ tmp_0 = _this__u8e3s4.n5b(safeMultiply(value, fromInt(unit.z53_1)));
3381
+ } else {
3382
+ noWhenBranchMatchedException();
3383
+ }
3384
+ }
3385
+ tmp = tmp_0;
3386
+ } catch ($p) {
3387
+ var tmp_1;
3388
+ if ($p instanceof ArithmeticException) {
3389
+ var e = $p;
3390
+ throw DateTimeArithmeticException_init_$Create$_0('Arithmetic overflow when adding a value to a date', e);
3391
+ } else {
3392
+ if ($p instanceof IllegalArgumentException) {
3393
+ var e_0 = $p;
3394
+ throw DateTimeArithmeticException_init_$Create$_0('Boundaries of LocalDate exceeded when adding a value', e_0);
3395
+ } else {
3396
+ throw $p;
3397
+ }
3398
+ }
3399
+ }
3400
+ return tmp;
3401
+ }
3402
+ function firstDayOfYear(_this__u8e3s4, leapYear) {
3403
+ var leap = leapYear ? 1 : 0;
3404
+ var tmp;
3405
+ switch (_this__u8e3s4.a1_1) {
3406
+ case 0:
3407
+ tmp = 1;
3408
+ break;
3409
+ case 1:
3410
+ tmp = 32;
3411
+ break;
3412
+ case 2:
3413
+ tmp = 60 + leap | 0;
3414
+ break;
3415
+ case 3:
3416
+ tmp = 91 + leap | 0;
3417
+ break;
3418
+ case 4:
3419
+ tmp = 121 + leap | 0;
3420
+ break;
3421
+ case 5:
3422
+ tmp = 152 + leap | 0;
3423
+ break;
3424
+ case 6:
3425
+ tmp = 182 + leap | 0;
3426
+ break;
3427
+ case 7:
3428
+ tmp = 213 + leap | 0;
3429
+ break;
3430
+ case 8:
3431
+ tmp = 244 + leap | 0;
3432
+ break;
3433
+ case 9:
3434
+ tmp = 274 + leap | 0;
3435
+ break;
3436
+ case 10:
3437
+ tmp = 305 + leap | 0;
3438
+ break;
3439
+ case 11:
3440
+ tmp = 335 + leap | 0;
3441
+ break;
3442
+ default:
3443
+ noWhenBranchMatchedException();
3444
+ break;
3445
+ }
3446
+ return tmp;
3447
+ }
3448
+ function Companion_8() {
3449
+ }
3450
+ protoOf(Companion_8).p5b = function (input, format) {
3451
+ return format.al(input);
3452
+ };
3453
+ protoOf(Companion_8).h5b = function (input, format, $super) {
3454
+ format = format === VOID ? Formats_instance_0.n54() : format;
3455
+ return $super === VOID ? this.p5b(input, format) : $super.p5b.call(this, input, format);
3456
+ };
3457
+ var Companion_instance_8;
3458
+ function Companion_getInstance_8() {
3459
+ return Companion_instance_8;
3460
+ }
3461
+ function Formats_0() {
3462
+ }
3463
+ protoOf(Formats_0).n54 = function () {
3464
+ return get_ISO_YEAR_MONTH();
3465
+ };
3466
+ var Formats_instance_0;
3467
+ function Formats_getInstance_0() {
3468
+ return Formats_instance_0;
3469
+ }
3470
+ function YearMonth$_get_year_$ref_chp4n6() {
3471
+ return function (p0) {
3472
+ return p0.c57_1;
3473
+ };
3474
+ }
3475
+ function YearMonth$_get_month_$ref_9rphhd() {
3476
+ return function (p0) {
3477
+ return p0.z55();
3478
+ };
3479
+ }
3480
+ function YearMonth(year, month) {
3481
+ this.c57_1 = year;
3482
+ this.d57_1 = month;
3483
+ // Inline function 'kotlin.require' call
3484
+ if (!(1 <= month ? month <= 12 : false)) {
3485
+ var message = 'Month must be in 1..12, but was ' + month;
3486
+ throw IllegalArgumentException_init_$Create$(toString(message));
3487
+ }
3488
+ var containsLower = Companion_getInstance_7().a5b_1.w55_1;
3489
+ var containsUpper = Companion_getInstance_7().b5b_1.w55_1;
3490
+ var containsArg = this.c57_1;
3491
+ // Inline function 'kotlin.require' call
3492
+ if (!(containsLower <= containsArg ? containsArg <= containsUpper : false)) {
3493
+ var message_0 = 'Year ' + this.c57_1 + ' is out of range: ' + Companion_getInstance_7().a5b_1.w55_1 + '..' + Companion_getInstance_7().b5b_1.w55_1;
3494
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
3495
+ }
3496
+ }
3497
+ protoOf(YearMonth).z55 = function () {
3498
+ return Month_0(this.d57_1);
3499
+ };
3500
+ protoOf(YearMonth).q5b = function (other) {
3501
+ var tmp = KProperty1;
3502
+ var tmp_0 = getPropertyCallableRef('year', 1, tmp, YearMonth$_get_year_$ref_chp4n6(), null);
3503
+ var tmp_1 = KProperty1;
3504
+ return compareValuesBy(this, other, [tmp_0, getPropertyCallableRef('month', 1, tmp_1, YearMonth$_get_month_$ref_9rphhd(), null)]);
3505
+ };
3506
+ protoOf(YearMonth).d = function (other) {
3507
+ return this.q5b(other instanceof YearMonth ? other : THROW_CCE());
3508
+ };
3509
+ protoOf(YearMonth).toString = function () {
3510
+ return Formats_instance_0.n54().o54(this);
3511
+ };
3512
+ protoOf(YearMonth).equals = function (other) {
3513
+ var tmp;
3514
+ var tmp_0;
3515
+ if (other instanceof YearMonth) {
3516
+ tmp_0 = this.c57_1 === other.c57_1;
3517
+ } else {
3518
+ tmp_0 = false;
3519
+ }
3520
+ if (tmp_0) {
3521
+ tmp = this.z55().equals(other.z55());
3522
+ } else {
3523
+ tmp = false;
3524
+ }
3525
+ return tmp;
3526
+ };
3527
+ protoOf(YearMonth).hashCode = function () {
3528
+ return imul(this.c57_1, 31) + this.z55().hashCode() | 0;
3529
+ };
3530
+ function safeAdd(a, b) {
3531
+ var sum = add(a, b);
3532
+ if ((a ^ sum) < 0n && (a ^ b) >= 0n) {
3533
+ throw ArithmeticException_init_$Create$('Addition overflows a long: ' + a.toString() + ' + ' + b.toString());
3534
+ }
3535
+ return sum;
3536
+ }
3537
+ function safeMultiply(a, b) {
3538
+ if (b === 1n) {
3539
+ return a;
3540
+ }
3541
+ if (a === 1n) {
3542
+ return b;
3543
+ }
3544
+ if (a === 0n || b === 0n) {
3545
+ return 0n;
3546
+ }
3547
+ var total = multiply(a, b);
3548
+ if (!(divide(total, b) === a) || (a === -9223372036854775808n && b === -1n) || (b === -9223372036854775808n && a === -1n)) {
3549
+ throw ArithmeticException_init_$Create$('Multiplication overflows a long: ' + a.toString() + ' * ' + b.toString());
3550
+ }
3551
+ return total;
3552
+ }
3553
+ function safeMultiply_0(a, b) {
3554
+ var total = multiply(fromInt(a), fromInt(b));
3555
+ if (total < -2147483648n || total > 2147483647n) {
3556
+ throw ArithmeticException_init_$Create$('Multiplication overflows an int: ' + a + ' * ' + b);
3557
+ }
3558
+ return convertToInt(total);
3559
+ }
3560
+ //region block: post-declaration
3561
+ protoOf(Builder).d55 = chars;
3562
+ protoOf(Builder).i2l = build;
3563
+ protoOf(Builder).k56 = addFormatStructureForYearMonth;
3564
+ protoOf(Builder).e55 = day;
3565
+ protoOf(Builder).f55 = day$default;
3566
+ protoOf(Builder).z54 = year;
3567
+ protoOf(Builder).a55 = year$default;
3568
+ protoOf(Builder).b55 = monthNumber;
3569
+ protoOf(Builder).c55 = monthNumber$default;
3570
+ protoOf(Builder_0).d55 = chars;
3571
+ protoOf(Builder_0).i2l = build;
3572
+ protoOf(Builder_0).z54 = year;
3573
+ protoOf(Builder_0).a55 = year$default;
3574
+ protoOf(Builder_0).b55 = monthNumber;
3575
+ protoOf(Builder_0).c55 = monthNumber$default;
3576
+ protoOf(PropertyAccessor).c58 = getterNotNull;
3577
+ protoOf(SpacePaddedFormatter).x54 = format$default;
3578
+ protoOf(ConcatenatedFormatter).x54 = format$default;
3579
+ protoOf(UnsignedIntFormatterStructure).x54 = format$default;
3580
+ protoOf(SignedIntFormatterStructure).x54 = format$default;
3581
+ protoOf(ConstantStringFormatterStructure).x54 = format$default;
3582
+ //endregion
3583
+ //region block: init
3584
+ Companion_instance = new Companion();
3585
+ Companion_instance_0 = new Companion_0();
3586
+ Companion_instance_1 = new Companion_1();
3587
+ Companion_instance_2 = new Companion_2();
3588
+ Companion_instance_4 = new Companion_4();
3589
+ Companion_instance_5 = new Companion_5();
3590
+ ExpectedInt_instance = new ExpectedInt();
3591
+ Companion_instance_6 = new Companion_6();
3592
+ Companion_instance_8 = new Companion_8();
3593
+ Formats_instance_0 = new Formats_0();
3594
+ //endregion
3595
+ //region block: exports
3596
+ export {
3597
+ LocalDateSerializer_getInstance as LocalDateSerializer_getInstance2mk9vo4hqcyvz,
3598
+ };
3599
+ //endregion
3600
+
3601
+ //# sourceMappingURL=Kotlin-DateTime-library-kotlinx-datetime.mjs.map