@zenwave360/dsl 1.11.0-next.13.1 → 1.11.0-next.18.1

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.
@@ -1,4 +1,1694 @@
1
+ import {
2
+ EmptySerializersModule991ju6pz9b79 as EmptySerializersModule,
3
+ serializer1x79l67jvwntn as serializer,
4
+ InlinePrimitiveDescriptor3i6ccn1a4fw94 as InlinePrimitiveDescriptor,
5
+ SEALED_getInstance1vxvpfzfxmg5m as SEALED_getInstance,
6
+ buildSerialDescriptor2873qmkp8r2ib as buildSerialDescriptor,
7
+ KSerializerzf77vz1967fq as KSerializer,
8
+ ENUM_getInstance2btpo8dvnibj3 as ENUM_getInstance,
9
+ MapSerializer11kmegt3g5c1g as MapSerializer,
10
+ SerialDescriptor2pelqekb5ic3a as SerialDescriptor,
11
+ ListSerializer1hxuk9dx5n9du as ListSerializer,
12
+ STRING_getInstance2dgfp43qdvxn4 as STRING_getInstance,
13
+ PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
14
+ serializer2lw83vwvpnyms as serializer_0,
15
+ get_isInline5x26qrhi9qs6 as get_isInline,
16
+ get_annotationshjxdbdcl8kmv as get_annotations,
17
+ Encoderqvmrpqtq8hnu as Encoder,
18
+ SerializationExceptioneqrdve3ts2n9 as SerializationException,
19
+ SerializationException_init_$Init$34gro45mfrpoa as SerializationException_init_$Init$,
20
+ CLASS_getInstance3v12utpo53nyi as CLASS_getInstance,
21
+ SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
22
+ jsonCachedSerialNameslxufy2gu43jt as jsonCachedSerialNames,
23
+ ENUMlmq49cvwy4ow as ENUM,
24
+ PrimitiveKindndgbuh6is7ze as PrimitiveKind,
25
+ PolymorphicKindla9gurooefwb as PolymorphicKind,
26
+ AbstractEncoder2gxtu3xmy3f8j as AbstractEncoder,
27
+ AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer,
28
+ OBJECT_getInstance1yzfkijr6copj as OBJECT_getInstance,
29
+ findPolymorphicSerializerk638ixyjovk5 as findPolymorphicSerializer,
30
+ SerializationStrategyh6ouydnm6hci as SerializationStrategy,
31
+ serializer3ikrxnm8b29d6 as serializer_1,
32
+ serializer36584sjyg5661 as serializer_2,
33
+ serializer1q7c5q67ysppr as serializer_3,
34
+ MAP_getInstanceoecfbvb4e1b6 as MAP_getInstance,
35
+ LIST_getInstance1utapkkkw66ts as LIST_getInstance,
36
+ getContextualDescriptor2n1gf3b895yb8 as getContextualDescriptor,
37
+ CONTEXTUAL_getInstancelbs8qycmp7lg as CONTEXTUAL_getInstance,
38
+ } from './kotlinx-serialization-kotlinx-serialization-core.mjs';
39
+ import {
40
+ protoOf180f3jzyo7rfj as protoOf,
41
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
42
+ VOID3gxj6tk5isa35 as VOID,
43
+ Unit_instance28fytmsmm6r23 as Unit_instance,
44
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
45
+ toString30pk9tzaqopn as toString,
46
+ Enum3alwj03lh1n41 as Enum,
47
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
48
+ LazyThreadSafetyMode_PUBLICATION_getInstance1vspt3xrdob1a as LazyThreadSafetyMode_PUBLICATION_getInstance,
49
+ lazy1261dae0bgscp as lazy,
50
+ StringBuilder_init_$Create$322n630qt3r8c as StringBuilder_init_$Create$,
51
+ _Char___init__impl__6a9atx1csff5kwtduxl as _Char___init__impl__6a9atx,
52
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
53
+ equals2au1ep9vhcato as equals,
54
+ hashCodeq5arwsb9dgti as hashCode,
55
+ joinToString1cxrrlmo0chqs as joinToString,
56
+ KtMap140uvy3s5zad8 as KtMap,
57
+ KtList3hktaavzmj137 as KtList,
58
+ toString1pkumu07cwy4m as toString_0,
59
+ IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
60
+ getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
61
+ getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
62
+ getStringHashCode26igk1bx568vk as getStringHashCode,
63
+ StringCompanionObject_instance3sox3h548pjra as StringCompanionObject_instance,
64
+ toLongOrNullutqivezb0wx1 as toLongOrNull,
65
+ toULongOrNullojoyxi0i9tgj as toULongOrNull,
66
+ ULong3f9k7s38t3rfp as ULong,
67
+ Companion_getInstance3sq3iu5mj6qnr as Companion_getInstance,
68
+ _ULong___get_data__impl__fggpzb3nuonax14svlz as _ULong___get_data__impl__fggpzb,
69
+ toDoubleOrNullkxwozihadygj as toDoubleOrNull,
70
+ toBooleanStrictOrNull2j0md398tkvbj as toBooleanStrictOrNull,
71
+ isInterface3d6p8outrmvmk as isInterface,
72
+ IllegalStateException_init_$Create$2429fvs1h56dm as IllegalStateException_init_$Create$,
73
+ KProperty1ca4yb4wlo496 as KProperty1,
74
+ getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
75
+ lazy2hsh8ze7j6ikd as lazy_0,
76
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
77
+ fromInt1lka3ktyu79a4 as fromInt,
78
+ _UInt___init__impl__l7qpdl3eewek7byy9h9 as _UInt___init__impl__l7qpdl,
79
+ UInt__toString_impl_dbgl211y5918yopqyzq as UInt__toString_impl_dbgl21,
80
+ _ULong___init__impl__c78o9k2ace6d5rqjy3k as _ULong___init__impl__c78o9k,
81
+ ULong__toString_impl_f9au7k2d1ziqe8sg5kj as ULong__toString_impl_f9au7k,
82
+ _UByte___init__impl__g9hnc418b8pq346rvu4 as _UByte___init__impl__g9hnc4,
83
+ UByte__toString_impl_v72jg29gpkfdk52uly as UByte__toString_impl_v72jg,
84
+ _UShort___init__impl__jigrne3qim87o3qpsbl as _UShort___init__impl__jigrne,
85
+ UShort__toString_impl_edaoee770kqykt9las as UShort__toString_impl_edaoee,
86
+ captureStack1fzi4aczwc4hg as captureStack,
87
+ charSequenceLength3278n89t01tmv as charSequenceLength,
88
+ charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
89
+ coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
90
+ coerceAtMost322komnqp70ag as coerceAtMost,
91
+ objectCreate1ve4bgxiu4x98 as objectCreate,
92
+ ensureNotNull1e947j3ixpazm as ensureNotNull,
93
+ noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
94
+ isFinite1tx0gn65nl9tj as isFinite,
95
+ isFinite2t9l5a275mxm6 as isFinite_0,
96
+ toString3dhdjl9yf50de as toString_1,
97
+ Companion_getInstance18m03xf6clkk8 as Companion_getInstance_0,
98
+ Companion_getInstance3jsnccejczksw as Companion_getInstance_1,
99
+ Companion_getInstance29d4047m08ot as Companion_getInstance_2,
100
+ setOf45ia9pnfhe90 as setOf,
101
+ Char__toInt_impl_vasixd3jl92hthlhyn7 as Char__toInt_impl_vasixd,
102
+ numberToChar93r9buh19yek as numberToChar,
103
+ charCodeAt1yspne1d8erbm as charCodeAt,
104
+ toByte4i43936u611k as toByte,
105
+ enumEntries20mr21zbe3az4 as enumEntries,
106
+ StringBuilder_init_$Create$39ouzl6b47q8d as StringBuilder_init_$Create$_0,
107
+ HashMap_init_$Create$1du0qgfgs3por as HashMap_init_$Create$,
108
+ } from './kotlin-kotlin-stdlib.mjs';
109
+ //region block: imports
110
+ var imul = Math.imul;
111
+ //endregion
1
112
  //region block: pre-declaration
113
+ initMetadataForClass(Json, 'Json');
114
+ initMetadataForObject(Default, 'Default', VOID, Json);
115
+ initMetadataForClass(JsonClassDiscriminator, 'JsonClassDiscriminator');
116
+ initMetadataForClass(JsonConfiguration, 'JsonConfiguration');
117
+ initMetadataForClass(ClassDiscriminatorMode, 'ClassDiscriminatorMode', VOID, Enum);
118
+ initMetadataForCompanion(Companion);
119
+ initMetadataForClass(JsonElement, 'JsonElement', VOID, VOID, VOID, VOID, VOID, {0: JsonElementSerializer_getInstance});
120
+ initMetadataForClass(JsonPrimitive, 'JsonPrimitive', VOID, JsonElement, VOID, VOID, VOID, {0: JsonPrimitiveSerializer_getInstance});
121
+ initMetadataForObject(JsonNull, 'JsonNull', VOID, JsonPrimitive, VOID, VOID, VOID, {0: JsonNull_getInstance});
122
+ initMetadataForCompanion(Companion_0);
123
+ initMetadataForClass(JsonObject, 'JsonObject', VOID, JsonElement, [JsonElement, KtMap], VOID, VOID, {0: JsonObjectSerializer_getInstance});
124
+ initMetadataForCompanion(Companion_1);
125
+ initMetadataForClass(JsonArray, 'JsonArray', VOID, JsonElement, [JsonElement, KtList], VOID, VOID, {0: JsonArraySerializer_getInstance});
126
+ initMetadataForCompanion(Companion_2);
127
+ initMetadataForClass(JsonLiteral, 'JsonLiteral', VOID, JsonPrimitive);
128
+ initMetadataForObject(JsonElementSerializer, 'JsonElementSerializer', VOID, VOID, [KSerializer]);
129
+ initMetadataForObject(JsonNullSerializer, 'JsonNullSerializer', VOID, VOID, [KSerializer]);
130
+ initMetadataForObject(JsonObjectDescriptor, 'JsonObjectDescriptor', VOID, VOID, [SerialDescriptor]);
131
+ initMetadataForObject(JsonObjectSerializer, 'JsonObjectSerializer', VOID, VOID, [KSerializer]);
132
+ initMetadataForObject(JsonArrayDescriptor, 'JsonArrayDescriptor', VOID, VOID, [SerialDescriptor]);
133
+ initMetadataForObject(JsonArraySerializer, 'JsonArraySerializer', VOID, VOID, [KSerializer]);
134
+ initMetadataForObject(JsonPrimitiveSerializer, 'JsonPrimitiveSerializer', VOID, VOID, [KSerializer]);
135
+ initMetadataForObject(JsonLiteralSerializer, 'JsonLiteralSerializer', VOID, VOID, [KSerializer]);
136
+ initMetadataForClass(defer$1, VOID, VOID, VOID, [SerialDescriptor]);
137
+ initMetadataForInterface(JsonEncoder, 'JsonEncoder', VOID, VOID, [Encoder]);
138
+ initMetadataForClass(Composer, 'Composer');
139
+ initMetadataForClass(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers', VOID, Composer);
140
+ initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals', VOID, Composer);
141
+ initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint', VOID, Composer);
142
+ initMetadataForClass(JsonException, 'JsonException', VOID, SerializationException);
143
+ initMetadataForClass(JsonEncodingException, 'JsonEncodingException', VOID, JsonException);
144
+ initMetadataForClass(Key, 'Key', Key);
145
+ initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
146
+ initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, AbstractEncoder, [JsonEncoder, AbstractEncoder]);
147
+ initMetadataForClass(WriteMode, 'WriteMode', VOID, Enum);
148
+ initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
149
+ //endregion
150
+ function Default() {
151
+ Default_instance = this;
152
+ Json.call(this, new JsonConfiguration(), EmptySerializersModule());
153
+ }
154
+ var Default_instance;
155
+ function Default_getInstance() {
156
+ if (Default_instance == null)
157
+ new Default();
158
+ return Default_instance;
159
+ }
160
+ function Json(configuration, serializersModule) {
161
+ Default_getInstance();
162
+ this.cr_1 = configuration;
163
+ this.dr_1 = serializersModule;
164
+ this.er_1 = new DescriptorSchemaCache();
165
+ }
166
+ protoOf(Json).yk = function () {
167
+ return this.dr_1;
168
+ };
169
+ protoOf(Json).fr = function (serializer, value) {
170
+ var result = new JsonToStringWriter();
171
+ try {
172
+ encodeByWriter(this, result, serializer, value);
173
+ return result.toString();
174
+ }finally {
175
+ result.hr();
176
+ }
177
+ };
178
+ function JsonClassDiscriminator() {
179
+ }
180
+ function JsonConfiguration(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma, classDiscriminatorMode) {
181
+ encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
182
+ ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
183
+ isLenient = isLenient === VOID ? false : isLenient;
184
+ allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
185
+ prettyPrint = prettyPrint === VOID ? false : prettyPrint;
186
+ explicitNulls = explicitNulls === VOID ? true : explicitNulls;
187
+ prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
188
+ coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
189
+ useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
190
+ classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
191
+ allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
192
+ useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
193
+ namingStrategy = namingStrategy === VOID ? null : namingStrategy;
194
+ decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
195
+ allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
196
+ classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
197
+ this.ir_1 = encodeDefaults;
198
+ this.jr_1 = ignoreUnknownKeys;
199
+ this.kr_1 = isLenient;
200
+ this.lr_1 = allowStructuredMapKeys;
201
+ this.mr_1 = prettyPrint;
202
+ this.nr_1 = explicitNulls;
203
+ this.or_1 = prettyPrintIndent;
204
+ this.pr_1 = coerceInputValues;
205
+ this.qr_1 = useArrayPolymorphism;
206
+ this.rr_1 = classDiscriminator;
207
+ this.sr_1 = allowSpecialFloatingPointValues;
208
+ this.tr_1 = useAlternativeNames;
209
+ this.ur_1 = namingStrategy;
210
+ this.vr_1 = decodeEnumsCaseInsensitive;
211
+ this.wr_1 = allowTrailingComma;
212
+ this.xr_1 = classDiscriminatorMode;
213
+ }
214
+ protoOf(JsonConfiguration).toString = function () {
215
+ return 'JsonConfiguration(encodeDefaults=' + this.ir_1 + ', ignoreUnknownKeys=' + this.jr_1 + ', isLenient=' + this.kr_1 + ', ' + ('allowStructuredMapKeys=' + this.lr_1 + ', prettyPrint=' + this.mr_1 + ', explicitNulls=' + this.nr_1 + ', ') + ("prettyPrintIndent='" + this.or_1 + "', coerceInputValues=" + this.pr_1 + ', useArrayPolymorphism=' + this.qr_1 + ', ') + ("classDiscriminator='" + this.rr_1 + "', allowSpecialFloatingPointValues=" + this.sr_1 + ', ') + ('useAlternativeNames=' + this.tr_1 + ', namingStrategy=' + toString(this.ur_1) + ', decodeEnumsCaseInsensitive=' + this.vr_1 + ', ') + ('allowTrailingComma=' + this.wr_1 + ', classDiscriminatorMode=' + this.xr_1.toString() + ')');
216
+ };
217
+ var ClassDiscriminatorMode_NONE_instance;
218
+ var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
219
+ var ClassDiscriminatorMode_POLYMORPHIC_instance;
220
+ var ClassDiscriminatorMode_entriesInitialized;
221
+ function ClassDiscriminatorMode_initEntries() {
222
+ if (ClassDiscriminatorMode_entriesInitialized)
223
+ return Unit_instance;
224
+ ClassDiscriminatorMode_entriesInitialized = true;
225
+ ClassDiscriminatorMode_NONE_instance = new ClassDiscriminatorMode('NONE', 0);
226
+ ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance = new ClassDiscriminatorMode('ALL_JSON_OBJECTS', 1);
227
+ ClassDiscriminatorMode_POLYMORPHIC_instance = new ClassDiscriminatorMode('POLYMORPHIC', 2);
228
+ }
229
+ function ClassDiscriminatorMode(name, ordinal) {
230
+ Enum.call(this, name, ordinal);
231
+ }
232
+ function ClassDiscriminatorMode_NONE_getInstance() {
233
+ ClassDiscriminatorMode_initEntries();
234
+ return ClassDiscriminatorMode_NONE_instance;
235
+ }
236
+ function ClassDiscriminatorMode_POLYMORPHIC_getInstance() {
237
+ ClassDiscriminatorMode_initEntries();
238
+ return ClassDiscriminatorMode_POLYMORPHIC_instance;
239
+ }
240
+ function get_jsonUnquotedLiteralDescriptor() {
241
+ _init_properties_JsonElement_kt__7cbdc2();
242
+ return jsonUnquotedLiteralDescriptor;
243
+ }
244
+ var jsonUnquotedLiteralDescriptor;
245
+ function Companion() {
246
+ }
247
+ protoOf(Companion).yr = function () {
248
+ return JsonElementSerializer_getInstance();
249
+ };
250
+ var Companion_instance;
251
+ function Companion_getInstance_3() {
252
+ return Companion_instance;
253
+ }
254
+ function JsonElement() {
255
+ }
256
+ function JsonNull$_anonymous__enib48() {
257
+ return JsonNullSerializer_getInstance();
258
+ }
259
+ function JsonNull() {
260
+ JsonNull_instance = this;
261
+ JsonPrimitive.call(this);
262
+ this.zr_1 = 'null';
263
+ var tmp = this;
264
+ var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
265
+ tmp.as_1 = lazy(tmp_0, JsonNull$_anonymous__enib48);
266
+ }
267
+ protoOf(JsonNull).bs = function () {
268
+ return this.zr_1;
269
+ };
270
+ var JsonNull_instance;
271
+ function JsonNull_getInstance() {
272
+ if (JsonNull_instance == null)
273
+ new JsonNull();
274
+ return JsonNull_instance;
275
+ }
276
+ function Companion_0() {
277
+ }
278
+ var Companion_instance_0;
279
+ function Companion_getInstance_4() {
280
+ return Companion_instance_0;
281
+ }
282
+ function JsonObject$toString$lambda(_name_for_destructuring_parameter_0__wldtmu) {
283
+ // Inline function 'kotlin.collections.component1' call
284
+ var k = _name_for_destructuring_parameter_0__wldtmu.n1();
285
+ // Inline function 'kotlin.collections.component2' call
286
+ var v = _name_for_destructuring_parameter_0__wldtmu.o1();
287
+ // Inline function 'kotlin.text.buildString' call
288
+ // Inline function 'kotlin.apply' call
289
+ var this_0 = StringBuilder_init_$Create$();
290
+ printQuoted(this_0, k);
291
+ this_0.h7(_Char___init__impl__6a9atx(58));
292
+ this_0.f7(v);
293
+ return this_0.toString();
294
+ }
295
+ function JsonObject(content) {
296
+ JsonElement.call(this);
297
+ this.cs_1 = content;
298
+ }
299
+ protoOf(JsonObject).u1 = function () {
300
+ return this.cs_1.u1();
301
+ };
302
+ protoOf(JsonObject).s1 = function () {
303
+ return this.cs_1.s1();
304
+ };
305
+ protoOf(JsonObject).l = function () {
306
+ return this.cs_1.l();
307
+ };
308
+ protoOf(JsonObject).t1 = function () {
309
+ return this.cs_1.t1();
310
+ };
311
+ protoOf(JsonObject).ds = function (key) {
312
+ return this.cs_1.p1(key);
313
+ };
314
+ protoOf(JsonObject).p1 = function (key) {
315
+ if (!(!(key == null) ? typeof key === 'string' : false))
316
+ return false;
317
+ return this.ds((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
318
+ };
319
+ protoOf(JsonObject).ia = function (key) {
320
+ return this.cs_1.r1(key);
321
+ };
322
+ protoOf(JsonObject).r1 = function (key) {
323
+ if (!(!(key == null) ? typeof key === 'string' : false))
324
+ return null;
325
+ return this.ia((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
326
+ };
327
+ protoOf(JsonObject).n = function () {
328
+ return this.cs_1.n();
329
+ };
330
+ protoOf(JsonObject).equals = function (other) {
331
+ return equals(this.cs_1, other);
332
+ };
333
+ protoOf(JsonObject).hashCode = function () {
334
+ return hashCode(this.cs_1);
335
+ };
336
+ protoOf(JsonObject).toString = function () {
337
+ var tmp = this.cs_1.u1();
338
+ return joinToString(tmp, ',', '{', '}', VOID, VOID, JsonObject$toString$lambda);
339
+ };
340
+ function Companion_1() {
341
+ }
342
+ var Companion_instance_1;
343
+ function Companion_getInstance_5() {
344
+ return Companion_instance_1;
345
+ }
346
+ function JsonArray(content) {
347
+ JsonElement.call(this);
348
+ this.es_1 = content;
349
+ }
350
+ protoOf(JsonArray).l = function () {
351
+ return this.es_1.l();
352
+ };
353
+ protoOf(JsonArray).fs = function (element) {
354
+ return this.es_1.l1(element);
355
+ };
356
+ protoOf(JsonArray).l1 = function (element) {
357
+ if (!(element instanceof JsonElement))
358
+ return false;
359
+ return this.fs(element instanceof JsonElement ? element : THROW_CCE());
360
+ };
361
+ protoOf(JsonArray).gs = function (elements) {
362
+ return this.es_1.m1(elements);
363
+ };
364
+ protoOf(JsonArray).m1 = function (elements) {
365
+ return this.gs(elements);
366
+ };
367
+ protoOf(JsonArray).m = function (index) {
368
+ return this.es_1.m(index);
369
+ };
370
+ protoOf(JsonArray).n = function () {
371
+ return this.es_1.n();
372
+ };
373
+ protoOf(JsonArray).i = function () {
374
+ return this.es_1.i();
375
+ };
376
+ protoOf(JsonArray).s = function (index) {
377
+ return this.es_1.s(index);
378
+ };
379
+ protoOf(JsonArray).equals = function (other) {
380
+ return equals(this.es_1, other);
381
+ };
382
+ protoOf(JsonArray).hashCode = function () {
383
+ return hashCode(this.es_1);
384
+ };
385
+ protoOf(JsonArray).toString = function () {
386
+ return joinToString(this.es_1, ',', '[', ']');
387
+ };
388
+ function Companion_2() {
389
+ }
390
+ var Companion_instance_2;
391
+ function Companion_getInstance_6() {
392
+ return Companion_instance_2;
393
+ }
394
+ function JsonPrimitive() {
395
+ JsonElement.call(this);
396
+ }
397
+ protoOf(JsonPrimitive).toString = function () {
398
+ return this.bs();
399
+ };
400
+ function JsonPrimitive_0(value) {
401
+ _init_properties_JsonElement_kt__7cbdc2();
402
+ if (value == null)
403
+ return JsonNull_getInstance();
404
+ return new JsonLiteral(value, false);
405
+ }
406
+ function JsonPrimitive_1(value) {
407
+ _init_properties_JsonElement_kt__7cbdc2();
408
+ if (value == null)
409
+ return JsonNull_getInstance();
410
+ return new JsonLiteral(value, false);
411
+ }
412
+ function JsonPrimitive_2(value) {
413
+ _init_properties_JsonElement_kt__7cbdc2();
414
+ if (value == null)
415
+ return JsonNull_getInstance();
416
+ return new JsonLiteral(value, true);
417
+ }
418
+ function JsonLiteral(body, isString, coerceToInlineType) {
419
+ coerceToInlineType = coerceToInlineType === VOID ? null : coerceToInlineType;
420
+ JsonPrimitive.call(this);
421
+ this.hs_1 = isString;
422
+ this.is_1 = coerceToInlineType;
423
+ this.js_1 = toString_0(body);
424
+ if (!(this.is_1 == null)) {
425
+ // Inline function 'kotlin.require' call
426
+ // Inline function 'kotlin.require' call
427
+ if (!this.is_1.ti()) {
428
+ var message = 'Failed requirement.';
429
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
430
+ }
431
+ }
432
+ }
433
+ protoOf(JsonLiteral).bs = function () {
434
+ return this.js_1;
435
+ };
436
+ protoOf(JsonLiteral).toString = function () {
437
+ var tmp;
438
+ if (this.hs_1) {
439
+ // Inline function 'kotlin.text.buildString' call
440
+ // Inline function 'kotlin.apply' call
441
+ var this_0 = StringBuilder_init_$Create$();
442
+ printQuoted(this_0, this.js_1);
443
+ tmp = this_0.toString();
444
+ } else {
445
+ tmp = this.js_1;
446
+ }
447
+ return tmp;
448
+ };
449
+ protoOf(JsonLiteral).equals = function (other) {
450
+ if (this === other)
451
+ return true;
452
+ if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
453
+ return false;
454
+ if (!(other instanceof JsonLiteral))
455
+ THROW_CCE();
456
+ if (!(this.hs_1 === other.hs_1))
457
+ return false;
458
+ if (!(this.js_1 === other.js_1))
459
+ return false;
460
+ return true;
461
+ };
462
+ protoOf(JsonLiteral).hashCode = function () {
463
+ var result = getBooleanHashCode(this.hs_1);
464
+ result = imul(31, result) + getStringHashCode(this.js_1) | 0;
465
+ return result;
466
+ };
467
+ var properties_initialized_JsonElement_kt_abxy8s;
468
+ function _init_properties_JsonElement_kt__7cbdc2() {
469
+ if (!properties_initialized_JsonElement_kt_abxy8s) {
470
+ properties_initialized_JsonElement_kt_abxy8s = true;
471
+ jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
472
+ }
473
+ }
474
+ function JsonElementSerializer$descriptor$lambda($this$buildSerialDescriptor) {
475
+ $this$buildSerialDescriptor.kj('JsonPrimitive', defer(JsonElementSerializer$descriptor$lambda$lambda));
476
+ $this$buildSerialDescriptor.kj('JsonNull', defer(JsonElementSerializer$descriptor$lambda$lambda_0));
477
+ $this$buildSerialDescriptor.kj('JsonLiteral', defer(JsonElementSerializer$descriptor$lambda$lambda_1));
478
+ $this$buildSerialDescriptor.kj('JsonObject', defer(JsonElementSerializer$descriptor$lambda$lambda_2));
479
+ $this$buildSerialDescriptor.kj('JsonArray', defer(JsonElementSerializer$descriptor$lambda$lambda_3));
480
+ return Unit_instance;
481
+ }
482
+ function JsonElementSerializer$descriptor$lambda$lambda() {
483
+ return JsonPrimitiveSerializer_getInstance().ks_1;
484
+ }
485
+ function JsonElementSerializer$descriptor$lambda$lambda_0() {
486
+ return JsonNullSerializer_getInstance().ls_1;
487
+ }
488
+ function JsonElementSerializer$descriptor$lambda$lambda_1() {
489
+ return JsonLiteralSerializer_getInstance().ms_1;
490
+ }
491
+ function JsonElementSerializer$descriptor$lambda$lambda_2() {
492
+ return JsonObjectSerializer_getInstance().ns_1;
493
+ }
494
+ function JsonElementSerializer$descriptor$lambda$lambda_3() {
495
+ return JsonArraySerializer_getInstance().os_1;
496
+ }
497
+ function JsonElementSerializer() {
498
+ JsonElementSerializer_instance = this;
499
+ var tmp = this;
500
+ var tmp_0 = SEALED_getInstance();
501
+ tmp.ps_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonElement', tmp_0, [], JsonElementSerializer$descriptor$lambda);
502
+ }
503
+ protoOf(JsonElementSerializer).ki = function () {
504
+ return this.ps_1;
505
+ };
506
+ protoOf(JsonElementSerializer).qs = function (encoder, value) {
507
+ verify(encoder);
508
+ if (value instanceof JsonPrimitive) {
509
+ encoder.xk(JsonPrimitiveSerializer_getInstance(), value);
510
+ } else {
511
+ if (value instanceof JsonObject) {
512
+ encoder.xk(JsonObjectSerializer_getInstance(), value);
513
+ } else {
514
+ if (value instanceof JsonArray) {
515
+ encoder.xk(JsonArraySerializer_getInstance(), value);
516
+ }
517
+ }
518
+ }
519
+ };
520
+ protoOf(JsonElementSerializer).li = function (encoder, value) {
521
+ return this.qs(encoder, value instanceof JsonElement ? value : THROW_CCE());
522
+ };
523
+ var JsonElementSerializer_instance;
524
+ function JsonElementSerializer_getInstance() {
525
+ if (JsonElementSerializer_instance == null)
526
+ new JsonElementSerializer();
527
+ return JsonElementSerializer_instance;
528
+ }
529
+ function JsonNullSerializer() {
530
+ JsonNullSerializer_instance = this;
531
+ this.ls_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonNull', ENUM_getInstance(), []);
532
+ }
533
+ protoOf(JsonNullSerializer).ki = function () {
534
+ return this.ls_1;
535
+ };
536
+ protoOf(JsonNullSerializer).rs = function (encoder, value) {
537
+ verify(encoder);
538
+ encoder.ck();
539
+ };
540
+ protoOf(JsonNullSerializer).li = function (encoder, value) {
541
+ return this.rs(encoder, value instanceof JsonNull ? value : THROW_CCE());
542
+ };
543
+ var JsonNullSerializer_instance;
544
+ function JsonNullSerializer_getInstance() {
545
+ if (JsonNullSerializer_instance == null)
546
+ new JsonNullSerializer();
547
+ return JsonNullSerializer_instance;
548
+ }
549
+ function JsonObjectDescriptor() {
550
+ JsonObjectDescriptor_instance = this;
551
+ this.ss_1 = MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).ki();
552
+ this.ts_1 = 'kotlinx.serialization.json.JsonObject';
553
+ }
554
+ protoOf(JsonObjectDescriptor).vi = function () {
555
+ return this.ss_1.vi();
556
+ };
557
+ protoOf(JsonObjectDescriptor).ui = function () {
558
+ return this.ss_1.ui();
559
+ };
560
+ protoOf(JsonObjectDescriptor).ti = function () {
561
+ return this.ss_1.ti();
562
+ };
563
+ protoOf(JsonObjectDescriptor).si = function () {
564
+ return this.ss_1.si();
565
+ };
566
+ protoOf(JsonObjectDescriptor).xi = function (index) {
567
+ return this.ss_1.xi(index);
568
+ };
569
+ protoOf(JsonObjectDescriptor).wi = function (index) {
570
+ return this.ss_1.wi(index);
571
+ };
572
+ protoOf(JsonObjectDescriptor).ri = function () {
573
+ return this.ts_1;
574
+ };
575
+ var JsonObjectDescriptor_instance;
576
+ function JsonObjectDescriptor_getInstance() {
577
+ if (JsonObjectDescriptor_instance == null)
578
+ new JsonObjectDescriptor();
579
+ return JsonObjectDescriptor_instance;
580
+ }
581
+ function JsonObjectSerializer() {
582
+ JsonObjectSerializer_instance = this;
583
+ this.ns_1 = JsonObjectDescriptor_getInstance();
584
+ }
585
+ protoOf(JsonObjectSerializer).ki = function () {
586
+ return this.ns_1;
587
+ };
588
+ protoOf(JsonObjectSerializer).us = function (encoder, value) {
589
+ verify(encoder);
590
+ MapSerializer(serializer(StringCompanionObject_instance), JsonElementSerializer_getInstance()).li(encoder, value);
591
+ };
592
+ protoOf(JsonObjectSerializer).li = function (encoder, value) {
593
+ return this.us(encoder, value instanceof JsonObject ? value : THROW_CCE());
594
+ };
595
+ var JsonObjectSerializer_instance;
596
+ function JsonObjectSerializer_getInstance() {
597
+ if (JsonObjectSerializer_instance == null)
598
+ new JsonObjectSerializer();
599
+ return JsonObjectSerializer_instance;
600
+ }
601
+ function JsonArrayDescriptor() {
602
+ JsonArrayDescriptor_instance = this;
603
+ this.vs_1 = ListSerializer(JsonElementSerializer_getInstance()).ki();
604
+ this.ws_1 = 'kotlinx.serialization.json.JsonArray';
605
+ }
606
+ protoOf(JsonArrayDescriptor).vi = function () {
607
+ return this.vs_1.vi();
608
+ };
609
+ protoOf(JsonArrayDescriptor).ui = function () {
610
+ return this.vs_1.ui();
611
+ };
612
+ protoOf(JsonArrayDescriptor).ti = function () {
613
+ return this.vs_1.ti();
614
+ };
615
+ protoOf(JsonArrayDescriptor).si = function () {
616
+ return this.vs_1.si();
617
+ };
618
+ protoOf(JsonArrayDescriptor).xi = function (index) {
619
+ return this.vs_1.xi(index);
620
+ };
621
+ protoOf(JsonArrayDescriptor).wi = function (index) {
622
+ return this.vs_1.wi(index);
623
+ };
624
+ protoOf(JsonArrayDescriptor).ri = function () {
625
+ return this.ws_1;
626
+ };
627
+ var JsonArrayDescriptor_instance;
628
+ function JsonArrayDescriptor_getInstance() {
629
+ if (JsonArrayDescriptor_instance == null)
630
+ new JsonArrayDescriptor();
631
+ return JsonArrayDescriptor_instance;
632
+ }
633
+ function JsonArraySerializer() {
634
+ JsonArraySerializer_instance = this;
635
+ this.os_1 = JsonArrayDescriptor_getInstance();
636
+ }
637
+ protoOf(JsonArraySerializer).ki = function () {
638
+ return this.os_1;
639
+ };
640
+ protoOf(JsonArraySerializer).xs = function (encoder, value) {
641
+ verify(encoder);
642
+ ListSerializer(JsonElementSerializer_getInstance()).li(encoder, value);
643
+ };
644
+ protoOf(JsonArraySerializer).li = function (encoder, value) {
645
+ return this.xs(encoder, value instanceof JsonArray ? value : THROW_CCE());
646
+ };
647
+ var JsonArraySerializer_instance;
648
+ function JsonArraySerializer_getInstance() {
649
+ if (JsonArraySerializer_instance == null)
650
+ new JsonArraySerializer();
651
+ return JsonArraySerializer_instance;
652
+ }
653
+ function JsonPrimitiveSerializer() {
654
+ JsonPrimitiveSerializer_instance = this;
655
+ this.ks_1 = buildSerialDescriptor('kotlinx.serialization.json.JsonPrimitive', STRING_getInstance(), []);
656
+ }
657
+ protoOf(JsonPrimitiveSerializer).ki = function () {
658
+ return this.ks_1;
659
+ };
660
+ protoOf(JsonPrimitiveSerializer).ys = function (encoder, value) {
661
+ verify(encoder);
662
+ var tmp;
663
+ if (value instanceof JsonNull) {
664
+ encoder.xk(JsonNullSerializer_getInstance(), JsonNull_getInstance());
665
+ tmp = Unit_instance;
666
+ } else {
667
+ var tmp_0 = JsonLiteralSerializer_getInstance();
668
+ encoder.xk(tmp_0, value instanceof JsonLiteral ? value : THROW_CCE());
669
+ tmp = Unit_instance;
670
+ }
671
+ return tmp;
672
+ };
673
+ protoOf(JsonPrimitiveSerializer).li = function (encoder, value) {
674
+ return this.ys(encoder, value instanceof JsonPrimitive ? value : THROW_CCE());
675
+ };
676
+ var JsonPrimitiveSerializer_instance;
677
+ function JsonPrimitiveSerializer_getInstance() {
678
+ if (JsonPrimitiveSerializer_instance == null)
679
+ new JsonPrimitiveSerializer();
680
+ return JsonPrimitiveSerializer_instance;
681
+ }
682
+ function defer(deferred) {
683
+ return new defer$1(deferred);
684
+ }
685
+ function JsonLiteralSerializer() {
686
+ JsonLiteralSerializer_instance = this;
687
+ this.ms_1 = PrimitiveSerialDescriptor('kotlinx.serialization.json.JsonLiteral', STRING_getInstance());
688
+ }
689
+ protoOf(JsonLiteralSerializer).ki = function () {
690
+ return this.ms_1;
691
+ };
692
+ protoOf(JsonLiteralSerializer).zs = function (encoder, value) {
693
+ verify(encoder);
694
+ if (value.hs_1) {
695
+ return encoder.lk(value.js_1);
696
+ }
697
+ if (!(value.is_1 == null)) {
698
+ return encoder.mk(value.is_1).lk(value.js_1);
699
+ }
700
+ var tmp0_safe_receiver = toLongOrNull(value.js_1);
701
+ if (tmp0_safe_receiver == null)
702
+ null;
703
+ else {
704
+ // Inline function 'kotlin.let' call
705
+ return encoder.hk(tmp0_safe_receiver);
706
+ }
707
+ var tmp1_safe_receiver = toULongOrNull(value.js_1);
708
+ var tmp = tmp1_safe_receiver;
709
+ if ((tmp == null ? null : new ULong(tmp)) == null)
710
+ null;
711
+ else {
712
+ var tmp_0 = tmp1_safe_receiver;
713
+ // Inline function 'kotlin.let' call
714
+ var it = (tmp_0 == null ? null : new ULong(tmp_0)).sh_1;
715
+ var tmp_1 = encoder.mk(serializer_0(Companion_getInstance()).ki());
716
+ // Inline function 'kotlin.ULong.toLong' call
717
+ var tmp$ret$1 = _ULong___get_data__impl__fggpzb(it);
718
+ tmp_1.hk(tmp$ret$1);
719
+ return Unit_instance;
720
+ }
721
+ var tmp2_safe_receiver = toDoubleOrNull(value.js_1);
722
+ if (tmp2_safe_receiver == null)
723
+ null;
724
+ else {
725
+ // Inline function 'kotlin.let' call
726
+ return encoder.jk(tmp2_safe_receiver);
727
+ }
728
+ var tmp3_safe_receiver = toBooleanStrictOrNull(value.js_1);
729
+ if (tmp3_safe_receiver == null)
730
+ null;
731
+ else {
732
+ // Inline function 'kotlin.let' call
733
+ return encoder.dk(tmp3_safe_receiver);
734
+ }
735
+ encoder.lk(value.js_1);
736
+ };
737
+ protoOf(JsonLiteralSerializer).li = function (encoder, value) {
738
+ return this.zs(encoder, value instanceof JsonLiteral ? value : THROW_CCE());
739
+ };
740
+ var JsonLiteralSerializer_instance;
741
+ function JsonLiteralSerializer_getInstance() {
742
+ if (JsonLiteralSerializer_instance == null)
743
+ new JsonLiteralSerializer();
744
+ return JsonLiteralSerializer_instance;
745
+ }
746
+ function verify(encoder) {
747
+ asJsonEncoder(encoder);
748
+ }
749
+ function asJsonEncoder(_this__u8e3s4) {
750
+ var tmp0_elvis_lhs = isInterface(_this__u8e3s4, JsonEncoder) ? _this__u8e3s4 : null;
751
+ var tmp;
752
+ if (tmp0_elvis_lhs == null) {
753
+ throw IllegalStateException_init_$Create$('This serializer can be used only with Json format.' + ('Expected Encoder to be JsonEncoder, got ' + toString_0(getKClassFromExpression(_this__u8e3s4))));
754
+ } else {
755
+ tmp = tmp0_elvis_lhs;
756
+ }
757
+ return tmp;
758
+ }
759
+ function _get_original__l7ku1m($this) {
760
+ var tmp0 = $this.at_1;
761
+ var tmp = KProperty1;
762
+ // Inline function 'kotlin.getValue' call
763
+ getPropertyCallableRef('original', 1, tmp, defer$o$_get_original_$ref_3cje7k(), null);
764
+ return tmp0.o1();
765
+ }
766
+ function defer$o$_get_original_$ref_3cje7k() {
767
+ return function (p0) {
768
+ return _get_original__l7ku1m(p0);
769
+ };
770
+ }
771
+ function defer$1($deferred) {
772
+ this.at_1 = lazy_0($deferred);
773
+ }
774
+ protoOf(defer$1).ri = function () {
775
+ return _get_original__l7ku1m(this).ri();
776
+ };
777
+ protoOf(defer$1).si = function () {
778
+ return _get_original__l7ku1m(this).si();
779
+ };
780
+ protoOf(defer$1).ui = function () {
781
+ return _get_original__l7ku1m(this).ui();
782
+ };
783
+ protoOf(defer$1).wi = function (index) {
784
+ return _get_original__l7ku1m(this).wi(index);
785
+ };
786
+ protoOf(defer$1).xi = function (index) {
787
+ return _get_original__l7ku1m(this).xi(index);
788
+ };
789
+ function JsonEncoder() {
790
+ }
791
+ function Composer(writer) {
792
+ this.ct_1 = writer;
793
+ this.dt_1 = true;
794
+ }
795
+ protoOf(Composer).et = function () {
796
+ this.dt_1 = true;
797
+ };
798
+ protoOf(Composer).ft = function () {
799
+ return Unit_instance;
800
+ };
801
+ protoOf(Composer).gt = function () {
802
+ this.dt_1 = false;
803
+ };
804
+ protoOf(Composer).ht = function () {
805
+ this.dt_1 = false;
806
+ };
807
+ protoOf(Composer).it = function () {
808
+ return Unit_instance;
809
+ };
810
+ protoOf(Composer).jt = function (v) {
811
+ return this.ct_1.kt(v);
812
+ };
813
+ protoOf(Composer).lt = function (v) {
814
+ return this.ct_1.mt(v);
815
+ };
816
+ protoOf(Composer).nt = function (v) {
817
+ return this.ct_1.mt(v.toString());
818
+ };
819
+ protoOf(Composer).ot = function (v) {
820
+ return this.ct_1.mt(v.toString());
821
+ };
822
+ protoOf(Composer).pt = function (v) {
823
+ return this.ct_1.qt(fromInt(v));
824
+ };
825
+ protoOf(Composer).rt = function (v) {
826
+ return this.ct_1.qt(fromInt(v));
827
+ };
828
+ protoOf(Composer).st = function (v) {
829
+ return this.ct_1.qt(fromInt(v));
830
+ };
831
+ protoOf(Composer).tt = function (v) {
832
+ return this.ct_1.qt(v);
833
+ };
834
+ protoOf(Composer).ut = function (v) {
835
+ return this.ct_1.mt(v.toString());
836
+ };
837
+ protoOf(Composer).vt = function (value) {
838
+ return this.ct_1.wt(value);
839
+ };
840
+ function Composer_0(sb, json) {
841
+ return json.cr_1.mr_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
842
+ }
843
+ function ComposerForUnsignedNumbers(writer, forceQuoting) {
844
+ Composer.call(this, writer);
845
+ this.zt_1 = forceQuoting;
846
+ }
847
+ protoOf(ComposerForUnsignedNumbers).st = function (v) {
848
+ if (this.zt_1) {
849
+ // Inline function 'kotlin.toUInt' call
850
+ var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
851
+ this.vt(UInt__toString_impl_dbgl21(tmp$ret$0));
852
+ } else {
853
+ // Inline function 'kotlin.toUInt' call
854
+ var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
855
+ this.lt(UInt__toString_impl_dbgl21(tmp$ret$1));
856
+ }
857
+ };
858
+ protoOf(ComposerForUnsignedNumbers).tt = function (v) {
859
+ if (this.zt_1) {
860
+ // Inline function 'kotlin.toULong' call
861
+ var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
862
+ this.vt(ULong__toString_impl_f9au7k(tmp$ret$0));
863
+ } else {
864
+ // Inline function 'kotlin.toULong' call
865
+ var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
866
+ this.lt(ULong__toString_impl_f9au7k(tmp$ret$1));
867
+ }
868
+ };
869
+ protoOf(ComposerForUnsignedNumbers).pt = function (v) {
870
+ if (this.zt_1) {
871
+ // Inline function 'kotlin.toUByte' call
872
+ var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
873
+ this.vt(UByte__toString_impl_v72jg(tmp$ret$0));
874
+ } else {
875
+ // Inline function 'kotlin.toUByte' call
876
+ var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
877
+ this.lt(UByte__toString_impl_v72jg(tmp$ret$1));
878
+ }
879
+ };
880
+ protoOf(ComposerForUnsignedNumbers).rt = function (v) {
881
+ if (this.zt_1) {
882
+ // Inline function 'kotlin.toUShort' call
883
+ var tmp$ret$0 = _UShort___init__impl__jigrne(v);
884
+ this.vt(UShort__toString_impl_edaoee(tmp$ret$0));
885
+ } else {
886
+ // Inline function 'kotlin.toUShort' call
887
+ var tmp$ret$1 = _UShort___init__impl__jigrne(v);
888
+ this.lt(UShort__toString_impl_edaoee(tmp$ret$1));
889
+ }
890
+ };
891
+ function ComposerForUnquotedLiterals(writer, forceQuoting) {
892
+ Composer.call(this, writer);
893
+ this.cu_1 = forceQuoting;
894
+ }
895
+ protoOf(ComposerForUnquotedLiterals).vt = function (value) {
896
+ if (this.cu_1) {
897
+ protoOf(Composer).vt.call(this, value);
898
+ } else {
899
+ protoOf(Composer).lt.call(this, value);
900
+ }
901
+ };
902
+ function ComposerWithPrettyPrint(writer, json) {
903
+ Composer.call(this, writer);
904
+ this.fu_1 = json;
905
+ this.gu_1 = 0;
906
+ }
907
+ protoOf(ComposerWithPrettyPrint).et = function () {
908
+ this.dt_1 = true;
909
+ this.gu_1 = this.gu_1 + 1 | 0;
910
+ };
911
+ protoOf(ComposerWithPrettyPrint).ft = function () {
912
+ this.gu_1 = this.gu_1 - 1 | 0;
913
+ };
914
+ protoOf(ComposerWithPrettyPrint).gt = function () {
915
+ this.dt_1 = false;
916
+ this.lt('\n');
917
+ // Inline function 'kotlin.repeat' call
918
+ var times = this.gu_1;
919
+ var inductionVariable = 0;
920
+ if (inductionVariable < times)
921
+ do {
922
+ var index = inductionVariable;
923
+ inductionVariable = inductionVariable + 1 | 0;
924
+ this.lt(this.fu_1.cr_1.or_1);
925
+ }
926
+ while (inductionVariable < times);
927
+ };
928
+ protoOf(ComposerWithPrettyPrint).ht = function () {
929
+ if (this.dt_1)
930
+ this.dt_1 = false;
931
+ else {
932
+ this.gt();
933
+ }
934
+ };
935
+ protoOf(ComposerWithPrettyPrint).it = function () {
936
+ this.jt(_Char___init__impl__6a9atx(32));
937
+ };
938
+ function JsonEncodingException(message) {
939
+ JsonException.call(this, message);
940
+ captureStack(this, JsonEncodingException);
941
+ }
942
+ function InvalidKeyKindException(keyDescriptor) {
943
+ return new JsonEncodingException("Value of type '" + keyDescriptor.ri() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.si().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
944
+ }
945
+ function InvalidFloatingPointEncoded(value, output) {
946
+ return new JsonEncodingException('Unexpected special floating-point value ' + toString_0(value) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification. ' + "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString_0(minify(output))));
947
+ }
948
+ function JsonException(message) {
949
+ SerializationException_init_$Init$(message, this);
950
+ captureStack(this, JsonException);
951
+ }
952
+ function minify(_this__u8e3s4, offset) {
953
+ offset = offset === VOID ? -1 : offset;
954
+ if (charSequenceLength(_this__u8e3s4) < 200)
955
+ return _this__u8e3s4;
956
+ if (offset === -1) {
957
+ var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
958
+ if (start <= 0)
959
+ return _this__u8e3s4;
960
+ // Inline function 'kotlin.text.substring' call
961
+ var endIndex = charSequenceLength(_this__u8e3s4);
962
+ return '.....' + toString_0(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
963
+ }
964
+ var start_0 = offset - 30 | 0;
965
+ var end = offset + 30 | 0;
966
+ var prefix = start_0 <= 0 ? '' : '.....';
967
+ var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
968
+ var tmp2 = coerceAtLeast(start_0, 0);
969
+ // Inline function 'kotlin.text.substring' call
970
+ var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
971
+ return prefix + toString_0(charSequenceSubSequence(_this__u8e3s4, tmp2, endIndex_0)) + suffix;
972
+ }
973
+ var JsonDeserializationNamesKey;
974
+ function get_JsonSerializationNamesKey() {
975
+ _init_properties_JsonNamesMap_kt__cbbp0k();
976
+ return JsonSerializationNamesKey;
977
+ }
978
+ var JsonSerializationNamesKey;
979
+ function getJsonElementName(_this__u8e3s4, json, index) {
980
+ _init_properties_JsonNamesMap_kt__cbbp0k();
981
+ var strategy = namingStrategy(_this__u8e3s4, json);
982
+ return strategy == null ? _this__u8e3s4.wi(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
983
+ }
984
+ function namingStrategy(_this__u8e3s4, json) {
985
+ _init_properties_JsonNamesMap_kt__cbbp0k();
986
+ return equals(_this__u8e3s4.si(), CLASS_getInstance()) ? json.cr_1.ur_1 : null;
987
+ }
988
+ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
989
+ _init_properties_JsonNamesMap_kt__cbbp0k();
990
+ var tmp = get_schemaCache(json);
991
+ var tmp_0 = get_JsonSerializationNamesKey();
992
+ return tmp.iu(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
993
+ }
994
+ function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
995
+ return function () {
996
+ var tmp = 0;
997
+ var tmp_0 = $this_serializationNamesIndices.ui();
998
+ // Inline function 'kotlin.arrayOfNulls' call
999
+ var tmp_1 = Array(tmp_0);
1000
+ while (tmp < tmp_0) {
1001
+ var tmp_2 = tmp;
1002
+ var baseName = $this_serializationNamesIndices.wi(tmp_2);
1003
+ tmp_1[tmp_2] = $strategy.ju($this_serializationNamesIndices, tmp_2, baseName);
1004
+ tmp = tmp + 1 | 0;
1005
+ }
1006
+ return tmp_1;
1007
+ };
1008
+ }
1009
+ var properties_initialized_JsonNamesMap_kt_ljpf42;
1010
+ function _init_properties_JsonNamesMap_kt__cbbp0k() {
1011
+ if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
1012
+ properties_initialized_JsonNamesMap_kt_ljpf42 = true;
1013
+ JsonDeserializationNamesKey = new Key();
1014
+ JsonSerializationNamesKey = new Key();
1015
+ }
1016
+ }
1017
+ function encodeByWriter(json, writer, serializer, value) {
1018
+ var tmp = WriteMode_OBJ_getInstance();
1019
+ // Inline function 'kotlin.arrayOfNulls' call
1020
+ var size = get_entries().l();
1021
+ var tmp$ret$0 = Array(size);
1022
+ var encoder = StreamingJsonEncoder_init_$Create$(writer, json, tmp, tmp$ret$0);
1023
+ encoder.xk(serializer, value);
1024
+ }
1025
+ function classDiscriminator(_this__u8e3s4, json) {
1026
+ var tmp0_iterator = _this__u8e3s4.vi().i();
1027
+ while (tmp0_iterator.j()) {
1028
+ var annotation = tmp0_iterator.k();
1029
+ if (annotation instanceof JsonClassDiscriminator)
1030
+ return annotation.su_1;
1031
+ }
1032
+ return json.cr_1.rr_1;
1033
+ }
1034
+ function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
1035
+ if (!(serializer instanceof SealedClassSerializer))
1036
+ return Unit_instance;
1037
+ if (jsonCachedSerialNames(actualSerializer.ki()).l1(classDiscriminator)) {
1038
+ var baseName = serializer.ki().ri();
1039
+ var actualName = actualSerializer.ki().ri();
1040
+ // Inline function 'kotlin.error' call
1041
+ var message = "Sealed class '" + actualName + "' cannot be serialized as base class '" + baseName + "' because" + (" it has property name that conflicts with JSON class discriminator '" + classDiscriminator + "'. ") + 'You can either change class discriminator in JsonConfiguration, ' + 'rename property with @SerialName annotation or fall back to array polymorphism';
1042
+ throw IllegalStateException_init_$Create$(toString_0(message));
1043
+ }
1044
+ }
1045
+ function checkKind(kind) {
1046
+ if (kind instanceof ENUM) {
1047
+ // Inline function 'kotlin.error' call
1048
+ var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
1049
+ throw IllegalStateException_init_$Create$(toString_0(message));
1050
+ }
1051
+ if (kind instanceof PrimitiveKind) {
1052
+ // Inline function 'kotlin.error' call
1053
+ var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
1054
+ throw IllegalStateException_init_$Create$(toString_0(message_0));
1055
+ }
1056
+ if (kind instanceof PolymorphicKind) {
1057
+ // Inline function 'kotlin.error' call
1058
+ var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
1059
+ throw IllegalStateException_init_$Create$(toString_0(message_1));
1060
+ }
1061
+ }
1062
+ function access$validateIfSealed$tPolymorphicKt(serializer, actualSerializer, classDiscriminator) {
1063
+ return validateIfSealed(serializer, actualSerializer, classDiscriminator);
1064
+ }
1065
+ function Key() {
1066
+ }
1067
+ function DescriptorSchemaCache() {
1068
+ this.hu_1 = createMapForCache(16);
1069
+ }
1070
+ protoOf(DescriptorSchemaCache).tu = function (descriptor, key, value) {
1071
+ // Inline function 'kotlin.collections.getOrPut' call
1072
+ var this_0 = this.hu_1;
1073
+ var value_0 = this_0.r1(descriptor);
1074
+ var tmp;
1075
+ if (value_0 == null) {
1076
+ var answer = createMapForCache(2);
1077
+ this_0.v1(descriptor, answer);
1078
+ tmp = answer;
1079
+ } else {
1080
+ tmp = value_0;
1081
+ }
1082
+ var tmp0 = tmp;
1083
+ var tmp2 = key instanceof Key ? key : THROW_CCE();
1084
+ // Inline function 'kotlin.collections.set' call
1085
+ var value_1 = !(value == null) ? value : THROW_CCE();
1086
+ tmp0.v1(tmp2, value_1);
1087
+ };
1088
+ protoOf(DescriptorSchemaCache).iu = function (descriptor, key, defaultValue) {
1089
+ var tmp0_safe_receiver = this.uu(descriptor, key);
1090
+ if (tmp0_safe_receiver == null)
1091
+ null;
1092
+ else {
1093
+ // Inline function 'kotlin.let' call
1094
+ return tmp0_safe_receiver;
1095
+ }
1096
+ var value = defaultValue();
1097
+ this.tu(descriptor, key, value);
1098
+ return value;
1099
+ };
1100
+ protoOf(DescriptorSchemaCache).uu = function (descriptor, key) {
1101
+ var tmp0_safe_receiver = this.hu_1.r1(descriptor);
1102
+ var tmp;
1103
+ if (tmp0_safe_receiver == null) {
1104
+ tmp = null;
1105
+ } else {
1106
+ tmp = tmp0_safe_receiver.r1(key instanceof Key ? key : THROW_CCE());
1107
+ }
1108
+ var tmp_0 = tmp;
1109
+ return !(tmp_0 == null) ? tmp_0 : null;
1110
+ };
1111
+ function get_unsignedNumberDescriptors() {
1112
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
1113
+ return unsignedNumberDescriptors;
1114
+ }
1115
+ var unsignedNumberDescriptors;
1116
+ function StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, $this) {
1117
+ StreamingJsonEncoder.call($this, Composer_0(output, json), json, mode, modeReuseCache);
1118
+ return $this;
1119
+ }
1120
+ function StreamingJsonEncoder_init_$Create$(output, json, mode, modeReuseCache) {
1121
+ return StreamingJsonEncoder_init_$Init$(output, json, mode, modeReuseCache, objectCreate(protoOf(StreamingJsonEncoder)));
1122
+ }
1123
+ function encodeTypeInfo($this, descriptor) {
1124
+ $this.ku_1.gt();
1125
+ $this.lk(ensureNotNull($this.ru_1));
1126
+ $this.ku_1.jt(_Char___init__impl__6a9atx(58));
1127
+ $this.ku_1.it();
1128
+ $this.lk(descriptor.ri());
1129
+ }
1130
+ function StreamingJsonEncoder(composer, json, mode, modeReuseCache) {
1131
+ AbstractEncoder.call(this);
1132
+ this.ku_1 = composer;
1133
+ this.lu_1 = json;
1134
+ this.mu_1 = mode;
1135
+ this.nu_1 = modeReuseCache;
1136
+ this.ou_1 = this.lu_1.yk();
1137
+ this.pu_1 = this.lu_1.cr_1;
1138
+ this.qu_1 = false;
1139
+ this.ru_1 = null;
1140
+ var i = this.mu_1.e2_1;
1141
+ if (!(this.nu_1 == null)) {
1142
+ if (!(this.nu_1[i] === null) || !(this.nu_1[i] === this)) {
1143
+ this.nu_1[i] = this;
1144
+ }
1145
+ }
1146
+ }
1147
+ protoOf(StreamingJsonEncoder).bt = function () {
1148
+ return this.lu_1;
1149
+ };
1150
+ protoOf(StreamingJsonEncoder).yk = function () {
1151
+ return this.ou_1;
1152
+ };
1153
+ protoOf(StreamingJsonEncoder).xk = function (serializer, value) {
1154
+ $l$block: {
1155
+ // Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
1156
+ if (this.bt().cr_1.qr_1) {
1157
+ serializer.li(this, value);
1158
+ break $l$block;
1159
+ }
1160
+ var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
1161
+ var tmp;
1162
+ if (isPolymorphicSerializer) {
1163
+ tmp = !this.bt().cr_1.xr_1.equals(ClassDiscriminatorMode_NONE_getInstance());
1164
+ } else {
1165
+ var tmp_0;
1166
+ switch (this.bt().cr_1.xr_1.e2_1) {
1167
+ case 0:
1168
+ case 2:
1169
+ tmp_0 = false;
1170
+ break;
1171
+ case 1:
1172
+ // Inline function 'kotlin.let' call
1173
+
1174
+ var it = serializer.ki().si();
1175
+ tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
1176
+ break;
1177
+ default:
1178
+ noWhenBranchMatchedException();
1179
+ break;
1180
+ }
1181
+ tmp = tmp_0;
1182
+ }
1183
+ var needDiscriminator = tmp;
1184
+ var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.ki(), this.bt()) : null;
1185
+ var tmp_1;
1186
+ if (isPolymorphicSerializer) {
1187
+ var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
1188
+ $l$block_0: {
1189
+ // Inline function 'kotlin.requireNotNull' call
1190
+ if (value == null) {
1191
+ var message = 'Value for serializer ' + toString_0(serializer.ki()) + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
1192
+ throw IllegalArgumentException_init_$Create$(toString_0(message));
1193
+ } else {
1194
+ break $l$block_0;
1195
+ }
1196
+ }
1197
+ var actual = findPolymorphicSerializer(casted, this, value);
1198
+ if (!(baseClassDiscriminator == null)) {
1199
+ access$validateIfSealed$tPolymorphicKt(serializer, actual, baseClassDiscriminator);
1200
+ }
1201
+ checkKind(actual.ki().si());
1202
+ tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
1203
+ } else {
1204
+ tmp_1 = serializer;
1205
+ }
1206
+ var actualSerializer = tmp_1;
1207
+ if (!(baseClassDiscriminator == null)) {
1208
+ this.ru_1 = baseClassDiscriminator;
1209
+ }
1210
+ actualSerializer.li(this, value);
1211
+ }
1212
+ };
1213
+ protoOf(StreamingJsonEncoder).yj = function (descriptor) {
1214
+ var newMode = switchMode(this.lu_1, descriptor);
1215
+ if (!(newMode.xu_1 === _Char___init__impl__6a9atx(0))) {
1216
+ this.ku_1.jt(newMode.xu_1);
1217
+ this.ku_1.et();
1218
+ }
1219
+ if (!(this.ru_1 == null)) {
1220
+ encodeTypeInfo(this, descriptor);
1221
+ this.ru_1 = null;
1222
+ }
1223
+ if (this.mu_1.equals(newMode)) {
1224
+ return this;
1225
+ }
1226
+ var tmp0_safe_receiver = this.nu_1;
1227
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver[newMode.e2_1];
1228
+ return tmp1_elvis_lhs == null ? new StreamingJsonEncoder(this.ku_1, this.lu_1, newMode, this.nu_1) : tmp1_elvis_lhs;
1229
+ };
1230
+ protoOf(StreamingJsonEncoder).zj = function (descriptor) {
1231
+ if (!(this.mu_1.yu_1 === _Char___init__impl__6a9atx(0))) {
1232
+ this.ku_1.ft();
1233
+ this.ku_1.ht();
1234
+ this.ku_1.jt(this.mu_1.yu_1);
1235
+ }
1236
+ };
1237
+ protoOf(StreamingJsonEncoder).ak = function (descriptor, index) {
1238
+ switch (this.mu_1.e2_1) {
1239
+ case 1:
1240
+ if (!this.ku_1.dt_1) {
1241
+ this.ku_1.jt(_Char___init__impl__6a9atx(44));
1242
+ }
1243
+
1244
+ this.ku_1.gt();
1245
+ break;
1246
+ case 2:
1247
+ if (!this.ku_1.dt_1) {
1248
+ var tmp = this;
1249
+ var tmp_0;
1250
+ if ((index % 2 | 0) === 0) {
1251
+ this.ku_1.jt(_Char___init__impl__6a9atx(44));
1252
+ this.ku_1.gt();
1253
+ tmp_0 = true;
1254
+ } else {
1255
+ this.ku_1.jt(_Char___init__impl__6a9atx(58));
1256
+ this.ku_1.it();
1257
+ tmp_0 = false;
1258
+ }
1259
+ tmp.qu_1 = tmp_0;
1260
+ } else {
1261
+ this.qu_1 = true;
1262
+ this.ku_1.gt();
1263
+ }
1264
+
1265
+ break;
1266
+ case 3:
1267
+ if (index === 0)
1268
+ this.qu_1 = true;
1269
+ if (index === 1) {
1270
+ this.ku_1.jt(_Char___init__impl__6a9atx(44));
1271
+ this.ku_1.it();
1272
+ this.qu_1 = false;
1273
+ }
1274
+
1275
+ break;
1276
+ default:
1277
+ if (!this.ku_1.dt_1) {
1278
+ this.ku_1.jt(_Char___init__impl__6a9atx(44));
1279
+ }
1280
+
1281
+ this.ku_1.gt();
1282
+ this.lk(getJsonElementName(descriptor, this.lu_1, index));
1283
+ this.ku_1.jt(_Char___init__impl__6a9atx(58));
1284
+ this.ku_1.it();
1285
+ break;
1286
+ }
1287
+ return true;
1288
+ };
1289
+ protoOf(StreamingJsonEncoder).mk = function (descriptor) {
1290
+ var tmp;
1291
+ if (get_isUnsignedNumber(descriptor)) {
1292
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
1293
+ var tmp_0;
1294
+ var tmp_1 = this.ku_1;
1295
+ if (tmp_1 instanceof ComposerForUnsignedNumbers) {
1296
+ tmp_0 = this.ku_1;
1297
+ } else {
1298
+ var tmp0 = this.ku_1.ct_1;
1299
+ var p1 = this.qu_1;
1300
+ tmp_0 = new ComposerForUnsignedNumbers(tmp0, p1);
1301
+ }
1302
+ var tmp$ret$1 = tmp_0;
1303
+ tmp = new StreamingJsonEncoder(tmp$ret$1, this.lu_1, this.mu_1, null);
1304
+ } else if (get_isUnquotedLiteral(descriptor)) {
1305
+ // Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
1306
+ var tmp_2;
1307
+ var tmp_3 = this.ku_1;
1308
+ if (tmp_3 instanceof ComposerForUnquotedLiterals) {
1309
+ tmp_2 = this.ku_1;
1310
+ } else {
1311
+ var tmp0_0 = this.ku_1.ct_1;
1312
+ var p1_0 = this.qu_1;
1313
+ tmp_2 = new ComposerForUnquotedLiterals(tmp0_0, p1_0);
1314
+ }
1315
+ var tmp$ret$3 = tmp_2;
1316
+ tmp = new StreamingJsonEncoder(tmp$ret$3, this.lu_1, this.mu_1, null);
1317
+ } else {
1318
+ tmp = protoOf(AbstractEncoder).mk.call(this, descriptor);
1319
+ }
1320
+ return tmp;
1321
+ };
1322
+ protoOf(StreamingJsonEncoder).ck = function () {
1323
+ this.ku_1.lt('null');
1324
+ };
1325
+ protoOf(StreamingJsonEncoder).dk = function (value) {
1326
+ if (this.qu_1) {
1327
+ this.lk(value.toString());
1328
+ } else {
1329
+ this.ku_1.ut(value);
1330
+ }
1331
+ };
1332
+ protoOf(StreamingJsonEncoder).ek = function (value) {
1333
+ if (this.qu_1) {
1334
+ this.lk(value.toString());
1335
+ } else {
1336
+ this.ku_1.pt(value);
1337
+ }
1338
+ };
1339
+ protoOf(StreamingJsonEncoder).fk = function (value) {
1340
+ if (this.qu_1) {
1341
+ this.lk(value.toString());
1342
+ } else {
1343
+ this.ku_1.rt(value);
1344
+ }
1345
+ };
1346
+ protoOf(StreamingJsonEncoder).gk = function (value) {
1347
+ if (this.qu_1) {
1348
+ this.lk(value.toString());
1349
+ } else {
1350
+ this.ku_1.st(value);
1351
+ }
1352
+ };
1353
+ protoOf(StreamingJsonEncoder).hk = function (value) {
1354
+ if (this.qu_1) {
1355
+ this.lk(value.toString());
1356
+ } else {
1357
+ this.ku_1.tt(value);
1358
+ }
1359
+ };
1360
+ protoOf(StreamingJsonEncoder).ik = function (value) {
1361
+ if (this.qu_1) {
1362
+ this.lk(value.toString());
1363
+ } else {
1364
+ this.ku_1.nt(value);
1365
+ }
1366
+ if (!this.pu_1.sr_1 && !isFinite(value)) {
1367
+ throw InvalidFloatingPointEncoded(value, toString_0(this.ku_1.ct_1));
1368
+ }
1369
+ };
1370
+ protoOf(StreamingJsonEncoder).jk = function (value) {
1371
+ if (this.qu_1) {
1372
+ this.lk(value.toString());
1373
+ } else {
1374
+ this.ku_1.ot(value);
1375
+ }
1376
+ if (!this.pu_1.sr_1 && !isFinite_0(value)) {
1377
+ throw InvalidFloatingPointEncoded(value, toString_0(this.ku_1.ct_1));
1378
+ }
1379
+ };
1380
+ protoOf(StreamingJsonEncoder).kk = function (value) {
1381
+ this.lk(toString_1(value));
1382
+ };
1383
+ protoOf(StreamingJsonEncoder).lk = function (value) {
1384
+ return this.ku_1.vt(value);
1385
+ };
1386
+ function get_isUnsignedNumber(_this__u8e3s4) {
1387
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
1388
+ return _this__u8e3s4.ti() && get_unsignedNumberDescriptors().l1(_this__u8e3s4);
1389
+ }
1390
+ function get_isUnquotedLiteral(_this__u8e3s4) {
1391
+ _init_properties_StreamingJsonEncoder_kt__pn1bsi();
1392
+ return _this__u8e3s4.ti() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
1393
+ }
1394
+ var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
1395
+ function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
1396
+ if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
1397
+ properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
1398
+ unsignedNumberDescriptors = setOf([serializer_1(Companion_getInstance_0()).ki(), serializer_0(Companion_getInstance()).ki(), serializer_2(Companion_getInstance_1()).ki(), serializer_3(Companion_getInstance_2()).ki()]);
1399
+ }
1400
+ }
1401
+ function get_ESCAPE_STRINGS() {
1402
+ _init_properties_StringOps_kt__fcy1db();
1403
+ return ESCAPE_STRINGS;
1404
+ }
1405
+ var ESCAPE_STRINGS;
1406
+ var ESCAPE_MARKERS;
1407
+ function toHexChar(i) {
1408
+ _init_properties_StringOps_kt__fcy1db();
1409
+ var d = i & 15;
1410
+ var tmp;
1411
+ if (d < 10) {
1412
+ // Inline function 'kotlin.code' call
1413
+ var this_0 = _Char___init__impl__6a9atx(48);
1414
+ var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
1415
+ tmp = numberToChar(d + tmp$ret$0 | 0);
1416
+ } else {
1417
+ var tmp_0 = d - 10 | 0;
1418
+ // Inline function 'kotlin.code' call
1419
+ var this_1 = _Char___init__impl__6a9atx(97);
1420
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
1421
+ tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
1422
+ }
1423
+ return tmp;
1424
+ }
1425
+ function printQuoted(_this__u8e3s4, value) {
1426
+ _init_properties_StringOps_kt__fcy1db();
1427
+ _this__u8e3s4.h7(_Char___init__impl__6a9atx(34));
1428
+ var lastPos = 0;
1429
+ var inductionVariable = 0;
1430
+ var last = charSequenceLength(value) - 1 | 0;
1431
+ if (inductionVariable <= last)
1432
+ do {
1433
+ var i = inductionVariable;
1434
+ inductionVariable = inductionVariable + 1 | 0;
1435
+ // Inline function 'kotlin.code' call
1436
+ var this_0 = charCodeAt(value, i);
1437
+ var c = Char__toInt_impl_vasixd(this_0);
1438
+ if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
1439
+ _this__u8e3s4.a9(value, lastPos, i);
1440
+ _this__u8e3s4.g7(get_ESCAPE_STRINGS()[c]);
1441
+ lastPos = i + 1 | 0;
1442
+ }
1443
+ }
1444
+ while (inductionVariable <= last);
1445
+ if (!(lastPos === 0)) {
1446
+ _this__u8e3s4.a9(value, lastPos, value.length);
1447
+ } else {
1448
+ _this__u8e3s4.g7(value);
1449
+ }
1450
+ _this__u8e3s4.h7(_Char___init__impl__6a9atx(34));
1451
+ }
1452
+ var properties_initialized_StringOps_kt_wzaea7;
1453
+ function _init_properties_StringOps_kt__fcy1db() {
1454
+ if (!properties_initialized_StringOps_kt_wzaea7) {
1455
+ properties_initialized_StringOps_kt_wzaea7 = true;
1456
+ // Inline function 'kotlin.arrayOfNulls' call
1457
+ // Inline function 'kotlin.apply' call
1458
+ var this_0 = Array(93);
1459
+ var inductionVariable = 0;
1460
+ if (inductionVariable <= 31)
1461
+ do {
1462
+ var c = inductionVariable;
1463
+ inductionVariable = inductionVariable + 1 | 0;
1464
+ var c1 = toHexChar(c >> 12);
1465
+ var c2 = toHexChar(c >> 8);
1466
+ var c3 = toHexChar(c >> 4);
1467
+ var c4 = toHexChar(c);
1468
+ this_0[c] = '\\u' + toString_1(c1) + toString_1(c2) + toString_1(c3) + toString_1(c4);
1469
+ }
1470
+ while (inductionVariable <= 31);
1471
+ // Inline function 'kotlin.code' call
1472
+ var this_1 = _Char___init__impl__6a9atx(34);
1473
+ this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
1474
+ // Inline function 'kotlin.code' call
1475
+ var this_2 = _Char___init__impl__6a9atx(92);
1476
+ this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
1477
+ // Inline function 'kotlin.code' call
1478
+ var this_3 = _Char___init__impl__6a9atx(9);
1479
+ this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
1480
+ // Inline function 'kotlin.code' call
1481
+ var this_4 = _Char___init__impl__6a9atx(8);
1482
+ this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
1483
+ // Inline function 'kotlin.code' call
1484
+ var this_5 = _Char___init__impl__6a9atx(10);
1485
+ this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
1486
+ // Inline function 'kotlin.code' call
1487
+ var this_6 = _Char___init__impl__6a9atx(13);
1488
+ this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
1489
+ this_0[12] = '\\f';
1490
+ ESCAPE_STRINGS = this_0;
1491
+ // Inline function 'kotlin.apply' call
1492
+ var this_7 = new Int8Array(93);
1493
+ var inductionVariable_0 = 0;
1494
+ if (inductionVariable_0 <= 31)
1495
+ do {
1496
+ var c_0 = inductionVariable_0;
1497
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
1498
+ this_7[c_0] = 1;
1499
+ }
1500
+ while (inductionVariable_0 <= 31);
1501
+ // Inline function 'kotlin.code' call
1502
+ var this_8 = _Char___init__impl__6a9atx(34);
1503
+ var tmp = Char__toInt_impl_vasixd(this_8);
1504
+ // Inline function 'kotlin.code' call
1505
+ var this_9 = _Char___init__impl__6a9atx(34);
1506
+ var tmp$ret$1 = Char__toInt_impl_vasixd(this_9);
1507
+ this_7[tmp] = toByte(tmp$ret$1);
1508
+ // Inline function 'kotlin.code' call
1509
+ var this_10 = _Char___init__impl__6a9atx(92);
1510
+ var tmp_0 = Char__toInt_impl_vasixd(this_10);
1511
+ // Inline function 'kotlin.code' call
1512
+ var this_11 = _Char___init__impl__6a9atx(92);
1513
+ var tmp$ret$3 = Char__toInt_impl_vasixd(this_11);
1514
+ this_7[tmp_0] = toByte(tmp$ret$3);
1515
+ // Inline function 'kotlin.code' call
1516
+ var this_12 = _Char___init__impl__6a9atx(9);
1517
+ var tmp_1 = Char__toInt_impl_vasixd(this_12);
1518
+ // Inline function 'kotlin.code' call
1519
+ var this_13 = _Char___init__impl__6a9atx(116);
1520
+ var tmp$ret$5 = Char__toInt_impl_vasixd(this_13);
1521
+ this_7[tmp_1] = toByte(tmp$ret$5);
1522
+ // Inline function 'kotlin.code' call
1523
+ var this_14 = _Char___init__impl__6a9atx(8);
1524
+ var tmp_2 = Char__toInt_impl_vasixd(this_14);
1525
+ // Inline function 'kotlin.code' call
1526
+ var this_15 = _Char___init__impl__6a9atx(98);
1527
+ var tmp$ret$7 = Char__toInt_impl_vasixd(this_15);
1528
+ this_7[tmp_2] = toByte(tmp$ret$7);
1529
+ // Inline function 'kotlin.code' call
1530
+ var this_16 = _Char___init__impl__6a9atx(10);
1531
+ var tmp_3 = Char__toInt_impl_vasixd(this_16);
1532
+ // Inline function 'kotlin.code' call
1533
+ var this_17 = _Char___init__impl__6a9atx(110);
1534
+ var tmp$ret$9 = Char__toInt_impl_vasixd(this_17);
1535
+ this_7[tmp_3] = toByte(tmp$ret$9);
1536
+ // Inline function 'kotlin.code' call
1537
+ var this_18 = _Char___init__impl__6a9atx(13);
1538
+ var tmp_4 = Char__toInt_impl_vasixd(this_18);
1539
+ // Inline function 'kotlin.code' call
1540
+ var this_19 = _Char___init__impl__6a9atx(114);
1541
+ var tmp$ret$11 = Char__toInt_impl_vasixd(this_19);
1542
+ this_7[tmp_4] = toByte(tmp$ret$11);
1543
+ // Inline function 'kotlin.code' call
1544
+ var this_20 = _Char___init__impl__6a9atx(102);
1545
+ var tmp$ret$12 = Char__toInt_impl_vasixd(this_20);
1546
+ this_7[12] = toByte(tmp$ret$12);
1547
+ ESCAPE_MARKERS = this_7;
1548
+ }
1549
+ }
1550
+ var WriteMode_OBJ_instance;
1551
+ var WriteMode_LIST_instance;
1552
+ var WriteMode_MAP_instance;
1553
+ var WriteMode_POLY_OBJ_instance;
1554
+ function values() {
1555
+ return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
1556
+ }
1557
+ function get_entries() {
1558
+ if ($ENTRIES == null)
1559
+ $ENTRIES = enumEntries(values());
1560
+ return $ENTRIES;
1561
+ }
1562
+ var WriteMode_entriesInitialized;
1563
+ function WriteMode_initEntries() {
1564
+ if (WriteMode_entriesInitialized)
1565
+ return Unit_instance;
1566
+ WriteMode_entriesInitialized = true;
1567
+ WriteMode_OBJ_instance = new WriteMode('OBJ', 0, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
1568
+ WriteMode_LIST_instance = new WriteMode('LIST', 1, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
1569
+ WriteMode_MAP_instance = new WriteMode('MAP', 2, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
1570
+ WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
1571
+ }
1572
+ var $ENTRIES;
1573
+ function WriteMode(name, ordinal, begin, end) {
1574
+ Enum.call(this, name, ordinal);
1575
+ this.xu_1 = begin;
1576
+ this.yu_1 = end;
1577
+ }
1578
+ function switchMode(_this__u8e3s4, desc) {
1579
+ var tmp0_subject = desc.si();
1580
+ var tmp;
1581
+ if (tmp0_subject instanceof PolymorphicKind) {
1582
+ tmp = WriteMode_POLY_OBJ_getInstance();
1583
+ } else {
1584
+ if (equals(tmp0_subject, LIST_getInstance())) {
1585
+ tmp = WriteMode_LIST_getInstance();
1586
+ } else {
1587
+ if (equals(tmp0_subject, MAP_getInstance())) {
1588
+ // Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
1589
+ var keyDescriptor = carrierDescriptor(desc.xi(0), _this__u8e3s4.yk());
1590
+ var keyKind = keyDescriptor.si();
1591
+ var tmp_0;
1592
+ var tmp_1;
1593
+ if (keyKind instanceof PrimitiveKind) {
1594
+ tmp_1 = true;
1595
+ } else {
1596
+ tmp_1 = equals(keyKind, ENUM_getInstance());
1597
+ }
1598
+ if (tmp_1) {
1599
+ tmp_0 = WriteMode_MAP_getInstance();
1600
+ } else {
1601
+ if (_this__u8e3s4.cr_1.lr_1) {
1602
+ tmp_0 = WriteMode_LIST_getInstance();
1603
+ } else {
1604
+ throw InvalidKeyKindException(keyDescriptor);
1605
+ }
1606
+ }
1607
+ tmp = tmp_0;
1608
+ } else {
1609
+ tmp = WriteMode_OBJ_getInstance();
1610
+ }
1611
+ }
1612
+ }
1613
+ return tmp;
1614
+ }
1615
+ function carrierDescriptor(_this__u8e3s4, module_0) {
1616
+ var tmp;
1617
+ if (equals(_this__u8e3s4.si(), CONTEXTUAL_getInstance())) {
1618
+ var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
1619
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
1620
+ tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
1621
+ } else if (_this__u8e3s4.ti()) {
1622
+ tmp = carrierDescriptor(_this__u8e3s4.xi(0), module_0);
1623
+ } else {
1624
+ tmp = _this__u8e3s4;
1625
+ }
1626
+ return tmp;
1627
+ }
1628
+ function WriteMode_OBJ_getInstance() {
1629
+ WriteMode_initEntries();
1630
+ return WriteMode_OBJ_instance;
1631
+ }
1632
+ function WriteMode_LIST_getInstance() {
1633
+ WriteMode_initEntries();
1634
+ return WriteMode_LIST_instance;
1635
+ }
1636
+ function WriteMode_MAP_getInstance() {
1637
+ WriteMode_initEntries();
1638
+ return WriteMode_MAP_instance;
1639
+ }
1640
+ function WriteMode_POLY_OBJ_getInstance() {
1641
+ WriteMode_initEntries();
1642
+ return WriteMode_POLY_OBJ_instance;
1643
+ }
1644
+ function get_schemaCache(_this__u8e3s4) {
1645
+ return _this__u8e3s4.er_1;
1646
+ }
1647
+ function JsonToStringWriter() {
1648
+ this.gr_1 = StringBuilder_init_$Create$_0(128);
1649
+ }
1650
+ protoOf(JsonToStringWriter).qt = function (value) {
1651
+ this.gr_1.e9(value);
1652
+ };
1653
+ protoOf(JsonToStringWriter).kt = function (char) {
1654
+ this.gr_1.h7(char);
1655
+ };
1656
+ protoOf(JsonToStringWriter).mt = function (text) {
1657
+ this.gr_1.g7(text);
1658
+ };
1659
+ protoOf(JsonToStringWriter).wt = function (text) {
1660
+ printQuoted(this.gr_1, text);
1661
+ };
1662
+ protoOf(JsonToStringWriter).hr = function () {
1663
+ this.gr_1.g9();
1664
+ };
1665
+ protoOf(JsonToStringWriter).toString = function () {
1666
+ return this.gr_1.toString();
1667
+ };
1668
+ function createMapForCache(initialCapacity) {
1669
+ return HashMap_init_$Create$(initialCapacity);
1670
+ }
1671
+ //region block: post-declaration
1672
+ protoOf(defer$1).ti = get_isInline;
1673
+ protoOf(defer$1).vi = get_annotations;
1674
+ //endregion
1675
+ //region block: init
1676
+ Companion_instance = new Companion();
1677
+ Companion_instance_0 = new Companion_0();
1678
+ Companion_instance_1 = new Companion_1();
1679
+ Companion_instance_2 = new Companion_2();
1680
+ //endregion
1681
+ //region block: exports
1682
+ export {
1683
+ Default_getInstance as Default_getInstancejkv49nkel8hp,
1684
+ Companion_instance as Companion_instance2ikyq4bbz6wqt,
1685
+ JsonNull_getInstance as JsonNull_getInstance3cean630pgfyb,
1686
+ JsonArray as JsonArray2urf8ey7u44sd,
1687
+ JsonObject as JsonObjectee06ihoeeiqj,
1688
+ JsonPrimitive_2 as JsonPrimitiveolttw629wj53,
1689
+ JsonPrimitive_1 as JsonPrimitive2fp8648nd60dn,
1690
+ JsonPrimitive_0 as JsonPrimitive1xkjzc5d7ihuv,
1691
+ };
2
1692
  //endregion
3
1693
 
4
1694
  //# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.mjs.map