git-digger 1.5.39 → 1.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs +5119 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/kotlin/bin/digger +0 -0
- package/kotlin/clikt-clikt-mordant.mjs +310 -0
- package/kotlin/clikt-clikt-mordant.mjs.map +1 -0
- package/kotlin/clikt-clikt.mjs +6663 -0
- package/kotlin/clikt-clikt.mjs.map +1 -0
- package/kotlin/colormath-root-colormath.mjs +1675 -0
- package/kotlin/colormath-root-colormath.mjs.map +1 -0
- package/kotlin/command-line-tools-digger-cli.mjs +498 -0
- package/kotlin/command-line-tools-digger-cli.mjs.map +1 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs +11790 -0
- package/kotlin/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/kotlin/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs +3640 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs +1140 -0
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/kotlin/mordant-mordant-omnibus.mjs +4 -0
- package/kotlin/{mordant-mordant-omnibus.js.map → mordant-mordant-omnibus.mjs.map} +1 -1
- package/kotlin/mordant-mordant.mjs +10332 -0
- package/kotlin/mordant-mordant.mjs.map +1 -0
- package/kotlin/tools-cli-tools.mjs +30 -0
- package/kotlin/tools-cli-tools.mjs.map +1 -0
- package/kotlin/tools-digger-core.mjs +666 -0
- package/kotlin/tools-digger-core.mjs.map +1 -0
- package/kotlin/tools-digger-json.mjs +263 -0
- package/kotlin/tools-digger-json.mjs.map +1 -0
- package/kotlin/tools-digger-model.mjs +109 -0
- package/kotlin/tools-digger-model.mjs.map +1 -0
- package/kotlin/tools-git-adapter.mjs +261 -0
- package/kotlin/tools-git-adapter.mjs.map +1 -0
- package/package.json +2 -2
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +0 -5104
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js.map +0 -1
- package/kotlin/clikt-clikt-mordant.js +0 -303
- package/kotlin/clikt-clikt-mordant.js.map +0 -1
- package/kotlin/clikt-clikt.js +0 -6742
- package/kotlin/clikt-clikt.js.map +0 -1
- package/kotlin/colormath-root-colormath.js +0 -1627
- package/kotlin/colormath-root-colormath.js.map +0 -1
- package/kotlin/command-line-tools-digger-cli.js +0 -563
- package/kotlin/command-line-tools-digger-cli.js.map +0 -1
- package/kotlin/kotlin-kotlin-stdlib.js +0 -11651
- package/kotlin/kotlin-kotlin-stdlib.js.map +0 -1
- package/kotlin/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -8
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +0 -3509
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +0 -1118
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
- package/kotlin/mordant-mordant-omnibus.js +0 -8
- package/kotlin/mordant-mordant.js +0 -10271
- package/kotlin/mordant-mordant.js.map +0 -1
- package/kotlin/tools-cli-tools.js +0 -55
- package/kotlin/tools-cli-tools.js.map +0 -1
- package/kotlin/tools-digger-core.js +0 -659
- package/kotlin/tools-digger-core.js.map +0 -1
- package/kotlin/tools-digger-json.js +0 -256
- package/kotlin/tools-digger-json.js.map +0 -1
- package/kotlin/tools-digger-model.js +0 -107
- package/kotlin/tools-digger-model.js.map +0 -1
- package/kotlin/tools-git-adapter.js +0 -269
- package/kotlin/tools-git-adapter.js.map +0 -1
|
@@ -0,0 +1,1140 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EmptySerializersModule991ju6pz9b79 as EmptySerializersModule,
|
|
3
|
+
serializer1x79l67jvwntn as serializer,
|
|
4
|
+
InlinePrimitiveDescriptor3i6ccn1a4fw94 as InlinePrimitiveDescriptor,
|
|
5
|
+
SerializationExceptioneqrdve3ts2n9 as SerializationException,
|
|
6
|
+
CLASS_getInstance277avqnuimd98 as CLASS_getInstance,
|
|
7
|
+
SealedClassSerializeriwipiibk55zc as SealedClassSerializer,
|
|
8
|
+
jsonCachedSerialNameslxufy2gu43jt as jsonCachedSerialNames,
|
|
9
|
+
ENUMlmq49cvwy4ow as ENUM,
|
|
10
|
+
PrimitiveKindndgbuh6is7ze as PrimitiveKind,
|
|
11
|
+
PolymorphicKindla9gurooefwb as PolymorphicKind,
|
|
12
|
+
AbstractEncoder2gxtu3xmy3f8j as AbstractEncoder,
|
|
13
|
+
AbstractPolymorphicSerializer1ccxwp48nfy58 as AbstractPolymorphicSerializer,
|
|
14
|
+
OBJECT_getInstanceb5uv07b4zkes as OBJECT_getInstance,
|
|
15
|
+
findPolymorphicSerializerk638ixyjovk5 as findPolymorphicSerializer,
|
|
16
|
+
SerializationStrategyh6ouydnm6hci as SerializationStrategy,
|
|
17
|
+
CompositeEncoderknecpkexzn3v as CompositeEncoder,
|
|
18
|
+
Encoderqvmrpqtq8hnu as Encoder,
|
|
19
|
+
serializer3ikrxnm8b29d6 as serializer_0,
|
|
20
|
+
serializer2lw83vwvpnyms as serializer_1,
|
|
21
|
+
serializer36584sjyg5661 as serializer_2,
|
|
22
|
+
serializer1q7c5q67ysppr as serializer_3,
|
|
23
|
+
ENUM_getInstance2pzy56ztbjm7u as ENUM_getInstance,
|
|
24
|
+
MAP_getInstance1g2gf9ptr5kcu as MAP_getInstance,
|
|
25
|
+
LIST_getInstance33zrks0ni9s1a as LIST_getInstance,
|
|
26
|
+
getContextualDescriptor2n1gf3b895yb8 as getContextualDescriptor,
|
|
27
|
+
CONTEXTUAL_getInstance27x7ixba5zfl1 as CONTEXTUAL_getInstance,
|
|
28
|
+
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
29
|
+
import {
|
|
30
|
+
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
31
|
+
VOID7hggqo3abtya as VOID,
|
|
32
|
+
Unit_instance14hm69wy3kr8u as Unit_instance,
|
|
33
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
34
|
+
toString30pk9tzaqopn as toString,
|
|
35
|
+
Enum3alwj03lh1n41 as Enum,
|
|
36
|
+
StringCompanionObject_instance2iflbktk67pca as StringCompanionObject_instance,
|
|
37
|
+
toLongw1zpgk99d84b as toLong,
|
|
38
|
+
_UInt___init__impl__l7qpdl2x2ja0qtrydmg as _UInt___init__impl__l7qpdl,
|
|
39
|
+
UInt__toString_impl_dbgl21zkdo3skdvztx as UInt__toString_impl_dbgl21,
|
|
40
|
+
_ULong___init__impl__c78o9k1neui78jb9mlg as _ULong___init__impl__c78o9k,
|
|
41
|
+
ULong__toString_impl_f9au7k260qy52yi92xo as ULong__toString_impl_f9au7k,
|
|
42
|
+
_UByte___init__impl__g9hnc43i8t7wecfr79w as _UByte___init__impl__g9hnc4,
|
|
43
|
+
UByte__toString_impl_v72jg3ruswpcjtpyk as UByte__toString_impl_v72jg,
|
|
44
|
+
_UShort___init__impl__jigrne18f2wrm3i4dpy as _UShort___init__impl__jigrne,
|
|
45
|
+
UShort__toString_impl_edaoee32kikxrf4p0yn as UShort__toString_impl_edaoee,
|
|
46
|
+
_Char___init__impl__6a9atx367vrx0avsvbg as _Char___init__impl__6a9atx,
|
|
47
|
+
captureStack1fzi4aczwc4hg as captureStack,
|
|
48
|
+
toString1pkumu07cwy4m as toString_0,
|
|
49
|
+
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
50
|
+
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
51
|
+
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
52
|
+
coerceAtMost322komnqp70ag as coerceAtMost,
|
|
53
|
+
equals2au1ep9vhcato as equals,
|
|
54
|
+
fillArrayVali8eppxapiek4 as fillArrayVal,
|
|
55
|
+
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
56
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
57
|
+
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
58
|
+
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
59
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
60
|
+
isFinite1tx0gn65nl9tj as isFinite,
|
|
61
|
+
isFinite2t9l5a275mxm6 as isFinite_0,
|
|
62
|
+
toString14fd7g605f91p as toString_1,
|
|
63
|
+
Companion_getInstance13gx1njt9e9uj as Companion_getInstance,
|
|
64
|
+
Companion_getInstance1mvktysd7mugj as Companion_getInstance_0,
|
|
65
|
+
Companion_getInstance2ojplvvf2x2v2 as Companion_getInstance_1,
|
|
66
|
+
Companion_getInstance12z43b8xpc5ug as Companion_getInstance_2,
|
|
67
|
+
setOf45ia9pnfhe90 as setOf,
|
|
68
|
+
Char__toInt_impl_vasixd17daqndsyg0ov as Char__toInt_impl_vasixd,
|
|
69
|
+
numberToChar93r9buh19yek as numberToChar,
|
|
70
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
71
|
+
toByte4i43936u611k as toByte,
|
|
72
|
+
enumEntries20mr21zbe3az4 as enumEntries,
|
|
73
|
+
StringBuildermazzzhj6kkai as StringBuilder,
|
|
74
|
+
HashMap1a0ld5kgwhmhv as HashMap,
|
|
75
|
+
} from './kotlin-kotlin-stdlib.mjs';
|
|
76
|
+
//region block: imports
|
|
77
|
+
//endregion
|
|
78
|
+
//region block: pre-declaration
|
|
79
|
+
class Json {
|
|
80
|
+
constructor(configuration, serializersModule) {
|
|
81
|
+
Default_getInstance();
|
|
82
|
+
this.d1h_1 = configuration;
|
|
83
|
+
this.e1h_1 = serializersModule;
|
|
84
|
+
this.f1h_1 = new DescriptorSchemaCache();
|
|
85
|
+
}
|
|
86
|
+
ur() {
|
|
87
|
+
return this.e1h_1;
|
|
88
|
+
}
|
|
89
|
+
g1h(serializer, value) {
|
|
90
|
+
var result = new JsonToStringWriter();
|
|
91
|
+
try {
|
|
92
|
+
encodeByWriter(this, result, serializer, value);
|
|
93
|
+
return result.toString();
|
|
94
|
+
}finally {
|
|
95
|
+
result.i1h();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
class Default extends Json {
|
|
100
|
+
constructor() {
|
|
101
|
+
Default_instance = null;
|
|
102
|
+
super(new JsonConfiguration(), EmptySerializersModule());
|
|
103
|
+
Default_instance = this;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class JsonClassDiscriminator {}
|
|
107
|
+
class JsonConfiguration {
|
|
108
|
+
constructor(encodeDefaults, ignoreUnknownKeys, isLenient, allowStructuredMapKeys, prettyPrint, explicitNulls, prettyPrintIndent, coerceInputValues, useArrayPolymorphism, classDiscriminator, allowSpecialFloatingPointValues, useAlternativeNames, namingStrategy, decodeEnumsCaseInsensitive, allowTrailingComma, allowComments, classDiscriminatorMode) {
|
|
109
|
+
encodeDefaults = encodeDefaults === VOID ? false : encodeDefaults;
|
|
110
|
+
ignoreUnknownKeys = ignoreUnknownKeys === VOID ? false : ignoreUnknownKeys;
|
|
111
|
+
isLenient = isLenient === VOID ? false : isLenient;
|
|
112
|
+
allowStructuredMapKeys = allowStructuredMapKeys === VOID ? false : allowStructuredMapKeys;
|
|
113
|
+
prettyPrint = prettyPrint === VOID ? false : prettyPrint;
|
|
114
|
+
explicitNulls = explicitNulls === VOID ? true : explicitNulls;
|
|
115
|
+
prettyPrintIndent = prettyPrintIndent === VOID ? ' ' : prettyPrintIndent;
|
|
116
|
+
coerceInputValues = coerceInputValues === VOID ? false : coerceInputValues;
|
|
117
|
+
useArrayPolymorphism = useArrayPolymorphism === VOID ? false : useArrayPolymorphism;
|
|
118
|
+
classDiscriminator = classDiscriminator === VOID ? 'type' : classDiscriminator;
|
|
119
|
+
allowSpecialFloatingPointValues = allowSpecialFloatingPointValues === VOID ? false : allowSpecialFloatingPointValues;
|
|
120
|
+
useAlternativeNames = useAlternativeNames === VOID ? true : useAlternativeNames;
|
|
121
|
+
namingStrategy = namingStrategy === VOID ? null : namingStrategy;
|
|
122
|
+
decodeEnumsCaseInsensitive = decodeEnumsCaseInsensitive === VOID ? false : decodeEnumsCaseInsensitive;
|
|
123
|
+
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
124
|
+
allowComments = allowComments === VOID ? false : allowComments;
|
|
125
|
+
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
126
|
+
this.j1h_1 = encodeDefaults;
|
|
127
|
+
this.k1h_1 = ignoreUnknownKeys;
|
|
128
|
+
this.l1h_1 = isLenient;
|
|
129
|
+
this.m1h_1 = allowStructuredMapKeys;
|
|
130
|
+
this.n1h_1 = prettyPrint;
|
|
131
|
+
this.o1h_1 = explicitNulls;
|
|
132
|
+
this.p1h_1 = prettyPrintIndent;
|
|
133
|
+
this.q1h_1 = coerceInputValues;
|
|
134
|
+
this.r1h_1 = useArrayPolymorphism;
|
|
135
|
+
this.s1h_1 = classDiscriminator;
|
|
136
|
+
this.t1h_1 = allowSpecialFloatingPointValues;
|
|
137
|
+
this.u1h_1 = useAlternativeNames;
|
|
138
|
+
this.v1h_1 = namingStrategy;
|
|
139
|
+
this.w1h_1 = decodeEnumsCaseInsensitive;
|
|
140
|
+
this.x1h_1 = allowTrailingComma;
|
|
141
|
+
this.y1h_1 = allowComments;
|
|
142
|
+
this.z1h_1 = classDiscriminatorMode;
|
|
143
|
+
}
|
|
144
|
+
toString() {
|
|
145
|
+
return 'JsonConfiguration(encodeDefaults=' + this.j1h_1 + ', ignoreUnknownKeys=' + this.k1h_1 + ', isLenient=' + this.l1h_1 + ', ' + ('allowStructuredMapKeys=' + this.m1h_1 + ', prettyPrint=' + this.n1h_1 + ', explicitNulls=' + this.o1h_1 + ', ') + ("prettyPrintIndent='" + this.p1h_1 + "', coerceInputValues=" + this.q1h_1 + ', useArrayPolymorphism=' + this.r1h_1 + ', ') + ("classDiscriminator='" + this.s1h_1 + "', allowSpecialFloatingPointValues=" + this.t1h_1 + ', ') + ('useAlternativeNames=' + this.u1h_1 + ', namingStrategy=' + toString(this.v1h_1) + ', decodeEnumsCaseInsensitive=' + this.w1h_1 + ', ') + ('allowTrailingComma=' + this.x1h_1 + ', allowComments=' + this.y1h_1 + ', classDiscriminatorMode=' + this.z1h_1.toString() + ')');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class ClassDiscriminatorMode extends Enum {}
|
|
149
|
+
class Composer {
|
|
150
|
+
constructor(writer) {
|
|
151
|
+
this.a1i_1 = writer;
|
|
152
|
+
this.b1i_1 = true;
|
|
153
|
+
}
|
|
154
|
+
c1i() {
|
|
155
|
+
this.b1i_1 = true;
|
|
156
|
+
}
|
|
157
|
+
d1i() {
|
|
158
|
+
return Unit_instance;
|
|
159
|
+
}
|
|
160
|
+
e1i() {
|
|
161
|
+
this.b1i_1 = false;
|
|
162
|
+
}
|
|
163
|
+
f1i() {
|
|
164
|
+
this.b1i_1 = false;
|
|
165
|
+
}
|
|
166
|
+
g1i() {
|
|
167
|
+
return Unit_instance;
|
|
168
|
+
}
|
|
169
|
+
h1i(v) {
|
|
170
|
+
return this.a1i_1.i1i(v);
|
|
171
|
+
}
|
|
172
|
+
j1i(v) {
|
|
173
|
+
return this.a1i_1.k1i(v);
|
|
174
|
+
}
|
|
175
|
+
l1i(v) {
|
|
176
|
+
return this.a1i_1.k1i(v.toString());
|
|
177
|
+
}
|
|
178
|
+
m1i(v) {
|
|
179
|
+
return this.a1i_1.k1i(v.toString());
|
|
180
|
+
}
|
|
181
|
+
n1i(v) {
|
|
182
|
+
return this.a1i_1.o1i(toLong(v));
|
|
183
|
+
}
|
|
184
|
+
p1i(v) {
|
|
185
|
+
return this.a1i_1.o1i(toLong(v));
|
|
186
|
+
}
|
|
187
|
+
q1i(v) {
|
|
188
|
+
return this.a1i_1.o1i(toLong(v));
|
|
189
|
+
}
|
|
190
|
+
r1i(v) {
|
|
191
|
+
return this.a1i_1.o1i(v);
|
|
192
|
+
}
|
|
193
|
+
s1i(v) {
|
|
194
|
+
return this.a1i_1.k1i(v.toString());
|
|
195
|
+
}
|
|
196
|
+
t1i(value) {
|
|
197
|
+
return this.a1i_1.u1i(value);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
class ComposerForUnsignedNumbers extends Composer {
|
|
201
|
+
constructor(writer, forceQuoting) {
|
|
202
|
+
super(writer);
|
|
203
|
+
this.x1i_1 = forceQuoting;
|
|
204
|
+
}
|
|
205
|
+
q1i(v) {
|
|
206
|
+
if (this.x1i_1) {
|
|
207
|
+
// Inline function 'kotlin.toUInt' call
|
|
208
|
+
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
209
|
+
this.t1i(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
210
|
+
} else {
|
|
211
|
+
// Inline function 'kotlin.toUInt' call
|
|
212
|
+
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
213
|
+
this.j1i(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
r1i(v) {
|
|
217
|
+
if (this.x1i_1) {
|
|
218
|
+
// Inline function 'kotlin.toULong' call
|
|
219
|
+
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
220
|
+
this.t1i(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
221
|
+
} else {
|
|
222
|
+
// Inline function 'kotlin.toULong' call
|
|
223
|
+
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
224
|
+
this.j1i(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
n1i(v) {
|
|
228
|
+
if (this.x1i_1) {
|
|
229
|
+
// Inline function 'kotlin.toUByte' call
|
|
230
|
+
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
231
|
+
this.t1i(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
232
|
+
} else {
|
|
233
|
+
// Inline function 'kotlin.toUByte' call
|
|
234
|
+
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
235
|
+
this.j1i(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
p1i(v) {
|
|
239
|
+
if (this.x1i_1) {
|
|
240
|
+
// Inline function 'kotlin.toUShort' call
|
|
241
|
+
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
242
|
+
this.t1i(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
243
|
+
} else {
|
|
244
|
+
// Inline function 'kotlin.toUShort' call
|
|
245
|
+
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
246
|
+
this.j1i(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class ComposerForUnquotedLiterals extends Composer {
|
|
251
|
+
constructor(writer, forceQuoting) {
|
|
252
|
+
super(writer);
|
|
253
|
+
this.a1j_1 = forceQuoting;
|
|
254
|
+
}
|
|
255
|
+
t1i(value) {
|
|
256
|
+
if (this.a1j_1) {
|
|
257
|
+
super.t1i(value);
|
|
258
|
+
} else {
|
|
259
|
+
super.j1i(value);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
class ComposerWithPrettyPrint extends Composer {
|
|
264
|
+
constructor(writer, json) {
|
|
265
|
+
super(writer);
|
|
266
|
+
this.d1j_1 = json;
|
|
267
|
+
this.e1j_1 = 0;
|
|
268
|
+
}
|
|
269
|
+
c1i() {
|
|
270
|
+
this.b1i_1 = true;
|
|
271
|
+
this.e1j_1 = this.e1j_1 + 1 | 0;
|
|
272
|
+
}
|
|
273
|
+
d1i() {
|
|
274
|
+
this.e1j_1 = this.e1j_1 - 1 | 0;
|
|
275
|
+
}
|
|
276
|
+
e1i() {
|
|
277
|
+
this.b1i_1 = false;
|
|
278
|
+
this.j1i('\n');
|
|
279
|
+
// Inline function 'kotlin.repeat' call
|
|
280
|
+
var times = this.e1j_1;
|
|
281
|
+
var inductionVariable = 0;
|
|
282
|
+
if (inductionVariable < times)
|
|
283
|
+
do {
|
|
284
|
+
var index = inductionVariable;
|
|
285
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
286
|
+
// Inline function 'kotlinx.serialization.json.internal.ComposerWithPrettyPrint.nextItem.<anonymous>' call
|
|
287
|
+
this.j1i(this.d1j_1.d1h_1.p1h_1);
|
|
288
|
+
}
|
|
289
|
+
while (inductionVariable < times);
|
|
290
|
+
}
|
|
291
|
+
f1i() {
|
|
292
|
+
if (this.b1i_1)
|
|
293
|
+
this.b1i_1 = false;
|
|
294
|
+
else {
|
|
295
|
+
this.e1i();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
g1i() {
|
|
299
|
+
this.h1i(_Char___init__impl__6a9atx(32));
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
class JsonException extends SerializationException {
|
|
303
|
+
static r1j(message) {
|
|
304
|
+
var $this = this.fp(message);
|
|
305
|
+
captureStack($this, $this.q1j_1);
|
|
306
|
+
return $this;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
class JsonEncodingException extends JsonException {
|
|
310
|
+
static l1j(message) {
|
|
311
|
+
var $this = this.r1j(message);
|
|
312
|
+
captureStack($this, $this.k1j_1);
|
|
313
|
+
return $this;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
class Key {}
|
|
317
|
+
class DescriptorSchemaCache {
|
|
318
|
+
constructor() {
|
|
319
|
+
this.s1j_1 = createMapForCache(16);
|
|
320
|
+
}
|
|
321
|
+
g1k(descriptor, key, value) {
|
|
322
|
+
// Inline function 'kotlin.collections.getOrPut' call
|
|
323
|
+
var this_0 = this.s1j_1;
|
|
324
|
+
var value_0 = this_0.p2(descriptor);
|
|
325
|
+
var tmp;
|
|
326
|
+
if (value_0 == null) {
|
|
327
|
+
// Inline function 'kotlinx.serialization.json.internal.DescriptorSchemaCache.set.<anonymous>' call
|
|
328
|
+
var answer = createMapForCache(2);
|
|
329
|
+
this_0.x2(descriptor, answer);
|
|
330
|
+
tmp = answer;
|
|
331
|
+
} else {
|
|
332
|
+
tmp = value_0;
|
|
333
|
+
}
|
|
334
|
+
var tmp2 = tmp;
|
|
335
|
+
var tmp3 = key instanceof Key ? key : THROW_CCE();
|
|
336
|
+
// Inline function 'kotlin.collections.set' call
|
|
337
|
+
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
338
|
+
tmp2.x2(tmp3, value_1);
|
|
339
|
+
}
|
|
340
|
+
t1j(descriptor, key, defaultValue) {
|
|
341
|
+
var tmp0_safe_receiver = this.h1k(descriptor, key);
|
|
342
|
+
if (tmp0_safe_receiver == null)
|
|
343
|
+
null;
|
|
344
|
+
else {
|
|
345
|
+
// Inline function 'kotlin.let' call
|
|
346
|
+
return tmp0_safe_receiver;
|
|
347
|
+
}
|
|
348
|
+
var value = defaultValue();
|
|
349
|
+
this.g1k(descriptor, key, value);
|
|
350
|
+
return value;
|
|
351
|
+
}
|
|
352
|
+
h1k(descriptor, key) {
|
|
353
|
+
var tmp0_safe_receiver = this.s1j_1.p2(descriptor);
|
|
354
|
+
var tmp;
|
|
355
|
+
if (tmp0_safe_receiver == null) {
|
|
356
|
+
tmp = null;
|
|
357
|
+
} else {
|
|
358
|
+
tmp = tmp0_safe_receiver.p2(key instanceof Key ? key : THROW_CCE());
|
|
359
|
+
}
|
|
360
|
+
var tmp_0 = tmp;
|
|
361
|
+
return !(tmp_0 == null) ? tmp_0 : null;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
class StreamingJsonEncoder extends AbstractEncoder {
|
|
365
|
+
static i1k(composer, json, mode, modeReuseCache) {
|
|
366
|
+
var $this = this.qq();
|
|
367
|
+
$this.v1j_1 = composer;
|
|
368
|
+
$this.w1j_1 = json;
|
|
369
|
+
$this.x1j_1 = mode;
|
|
370
|
+
$this.y1j_1 = modeReuseCache;
|
|
371
|
+
$this.z1j_1 = $this.w1j_1.ur();
|
|
372
|
+
$this.a1k_1 = $this.w1j_1.d1h_1;
|
|
373
|
+
$this.b1k_1 = false;
|
|
374
|
+
$this.c1k_1 = null;
|
|
375
|
+
$this.d1k_1 = null;
|
|
376
|
+
var i = $this.x1j_1.b3_1;
|
|
377
|
+
if (!($this.y1j_1 == null)) {
|
|
378
|
+
if (!($this.y1j_1[i] === null) || !($this.y1j_1[i] === $this)) {
|
|
379
|
+
$this.y1j_1[i] = $this;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return $this;
|
|
383
|
+
}
|
|
384
|
+
j1k() {
|
|
385
|
+
return this.w1j_1;
|
|
386
|
+
}
|
|
387
|
+
static e1k(output, json, mode, modeReuseCache) {
|
|
388
|
+
return this.i1k(Composer_0(output, json), json, mode, modeReuseCache);
|
|
389
|
+
}
|
|
390
|
+
ur() {
|
|
391
|
+
return this.z1j_1;
|
|
392
|
+
}
|
|
393
|
+
xr(descriptor, index) {
|
|
394
|
+
return this.a1k_1.j1h_1;
|
|
395
|
+
}
|
|
396
|
+
rr(serializer, value) {
|
|
397
|
+
$l$block: {
|
|
398
|
+
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically' call
|
|
399
|
+
if (this.j1k().d1h_1.r1h_1) {
|
|
400
|
+
serializer.jo(this, value);
|
|
401
|
+
break $l$block;
|
|
402
|
+
}
|
|
403
|
+
var isPolymorphicSerializer = serializer instanceof AbstractPolymorphicSerializer;
|
|
404
|
+
var tmp;
|
|
405
|
+
if (isPolymorphicSerializer) {
|
|
406
|
+
tmp = !this.j1k().d1h_1.z1h_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
407
|
+
} else {
|
|
408
|
+
var tmp_0;
|
|
409
|
+
switch (this.j1k().d1h_1.z1h_1.b3_1) {
|
|
410
|
+
case 0:
|
|
411
|
+
case 2:
|
|
412
|
+
tmp_0 = false;
|
|
413
|
+
break;
|
|
414
|
+
case 1:
|
|
415
|
+
// Inline function 'kotlin.let' call
|
|
416
|
+
|
|
417
|
+
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
|
|
418
|
+
|
|
419
|
+
var it = serializer.io().qp();
|
|
420
|
+
tmp_0 = equals(it, CLASS_getInstance()) || equals(it, OBJECT_getInstance());
|
|
421
|
+
break;
|
|
422
|
+
default:
|
|
423
|
+
noWhenBranchMatchedException();
|
|
424
|
+
break;
|
|
425
|
+
}
|
|
426
|
+
tmp = tmp_0;
|
|
427
|
+
}
|
|
428
|
+
var needDiscriminator = tmp;
|
|
429
|
+
var baseClassDiscriminator = needDiscriminator ? classDiscriminator(serializer.io(), this.j1k()) : null;
|
|
430
|
+
var tmp_1;
|
|
431
|
+
if (isPolymorphicSerializer) {
|
|
432
|
+
var casted = serializer instanceof AbstractPolymorphicSerializer ? serializer : THROW_CCE();
|
|
433
|
+
$l$block_0: {
|
|
434
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
435
|
+
if (value == null) {
|
|
436
|
+
// Inline function 'kotlinx.serialization.json.internal.encodePolymorphically.<anonymous>' call
|
|
437
|
+
var message = 'Value for serializer ' + toString_0(serializer.io()) + ' should always be non-null. Please report issue to the kotlinx.serialization tracker.';
|
|
438
|
+
throw IllegalArgumentException.s(toString_0(message));
|
|
439
|
+
} else {
|
|
440
|
+
break $l$block_0;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
var actual = findPolymorphicSerializer(casted, this, value);
|
|
444
|
+
if (!(baseClassDiscriminator == null)) {
|
|
445
|
+
access$validateIfSealed$tPolymorphicKt(serializer, actual, baseClassDiscriminator);
|
|
446
|
+
}
|
|
447
|
+
checkKind(actual.io().qp());
|
|
448
|
+
tmp_1 = isInterface(actual, SerializationStrategy) ? actual : THROW_CCE();
|
|
449
|
+
} else {
|
|
450
|
+
tmp_1 = serializer;
|
|
451
|
+
}
|
|
452
|
+
var actualSerializer = tmp_1;
|
|
453
|
+
if (!(baseClassDiscriminator == null)) {
|
|
454
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeSerializableValue.<anonymous>' call
|
|
455
|
+
var serialName = actualSerializer.io().pp();
|
|
456
|
+
this.c1k_1 = baseClassDiscriminator;
|
|
457
|
+
this.d1k_1 = serialName;
|
|
458
|
+
}
|
|
459
|
+
actualSerializer.jo(this, value);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
rq(descriptor) {
|
|
463
|
+
var newMode = switchMode(this.w1j_1, descriptor);
|
|
464
|
+
if (!(newMode.m1k_1 === _Char___init__impl__6a9atx(0))) {
|
|
465
|
+
this.v1j_1.h1i(newMode.m1k_1);
|
|
466
|
+
this.v1j_1.c1i();
|
|
467
|
+
}
|
|
468
|
+
var discriminator = this.c1k_1;
|
|
469
|
+
if (!(discriminator == null)) {
|
|
470
|
+
var tmp0_elvis_lhs = this.d1k_1;
|
|
471
|
+
encodeTypeInfo(this, discriminator, tmp0_elvis_lhs == null ? descriptor.pp() : tmp0_elvis_lhs);
|
|
472
|
+
this.c1k_1 = null;
|
|
473
|
+
this.d1k_1 = null;
|
|
474
|
+
}
|
|
475
|
+
if (this.x1j_1.equals(newMode)) {
|
|
476
|
+
return this;
|
|
477
|
+
}
|
|
478
|
+
var tmp1_safe_receiver = this.y1j_1;
|
|
479
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver[newMode.b3_1];
|
|
480
|
+
return tmp2_elvis_lhs == null ? StreamingJsonEncoder.i1k(this.v1j_1, this.w1j_1, newMode, this.y1j_1) : tmp2_elvis_lhs;
|
|
481
|
+
}
|
|
482
|
+
sq(descriptor) {
|
|
483
|
+
if (!(this.x1j_1.n1k_1 === _Char___init__impl__6a9atx(0))) {
|
|
484
|
+
this.v1j_1.d1i();
|
|
485
|
+
this.v1j_1.f1i();
|
|
486
|
+
this.v1j_1.h1i(this.x1j_1.n1k_1);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
tq(descriptor, index) {
|
|
490
|
+
switch (this.x1j_1.b3_1) {
|
|
491
|
+
case 1:
|
|
492
|
+
if (!this.v1j_1.b1i_1) {
|
|
493
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(44));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
this.v1j_1.e1i();
|
|
497
|
+
break;
|
|
498
|
+
case 2:
|
|
499
|
+
if (!this.v1j_1.b1i_1) {
|
|
500
|
+
var tmp = this;
|
|
501
|
+
var tmp_0;
|
|
502
|
+
if ((index % 2 | 0) === 0) {
|
|
503
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(44));
|
|
504
|
+
this.v1j_1.e1i();
|
|
505
|
+
tmp_0 = true;
|
|
506
|
+
} else {
|
|
507
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(58));
|
|
508
|
+
this.v1j_1.g1i();
|
|
509
|
+
tmp_0 = false;
|
|
510
|
+
}
|
|
511
|
+
tmp.b1k_1 = tmp_0;
|
|
512
|
+
} else {
|
|
513
|
+
this.b1k_1 = true;
|
|
514
|
+
this.v1j_1.e1i();
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
break;
|
|
518
|
+
case 3:
|
|
519
|
+
if (index === 0)
|
|
520
|
+
this.b1k_1 = true;
|
|
521
|
+
if (index === 1) {
|
|
522
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(44));
|
|
523
|
+
this.v1j_1.g1i();
|
|
524
|
+
this.b1k_1 = false;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
break;
|
|
528
|
+
default:
|
|
529
|
+
if (!this.v1j_1.b1i_1) {
|
|
530
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(44));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
this.v1j_1.e1i();
|
|
534
|
+
this.er(getJsonElementName(descriptor, this.w1j_1, index));
|
|
535
|
+
this.v1j_1.h1i(_Char___init__impl__6a9atx(58));
|
|
536
|
+
this.v1j_1.g1i();
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
return true;
|
|
540
|
+
}
|
|
541
|
+
sr(descriptor, index, serializer, value) {
|
|
542
|
+
if (!(value == null) || this.a1k_1.o1h_1) {
|
|
543
|
+
super.sr(descriptor, index, serializer, value);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
fr(descriptor) {
|
|
547
|
+
var tmp;
|
|
548
|
+
if (get_isUnsignedNumber(descriptor)) {
|
|
549
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
550
|
+
var tmp_0;
|
|
551
|
+
var tmp_1 = this.v1j_1;
|
|
552
|
+
if (tmp_1 instanceof ComposerForUnsignedNumbers) {
|
|
553
|
+
tmp_0 = this.v1j_1;
|
|
554
|
+
} else {
|
|
555
|
+
var tmp1 = this.v1j_1.a1i_1;
|
|
556
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.stub_for_inlining' call
|
|
557
|
+
var p1 = this.b1k_1;
|
|
558
|
+
tmp_0 = new ComposerForUnsignedNumbers(tmp1, p1);
|
|
559
|
+
}
|
|
560
|
+
var tmp$ret$1 = tmp_0;
|
|
561
|
+
tmp = StreamingJsonEncoder.i1k(tmp$ret$1, this.w1j_1, this.x1j_1, null);
|
|
562
|
+
} else if (get_isUnquotedLiteral(descriptor)) {
|
|
563
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.composerAs' call
|
|
564
|
+
var tmp_2;
|
|
565
|
+
var tmp_3 = this.v1j_1;
|
|
566
|
+
if (tmp_3 instanceof ComposerForUnquotedLiterals) {
|
|
567
|
+
tmp_2 = this.v1j_1;
|
|
568
|
+
} else {
|
|
569
|
+
var tmp4 = this.v1j_1.a1i_1;
|
|
570
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.stub_for_inlining' call
|
|
571
|
+
var p1_0 = this.b1k_1;
|
|
572
|
+
tmp_2 = new ComposerForUnquotedLiterals(tmp4, p1_0);
|
|
573
|
+
}
|
|
574
|
+
var tmp$ret$3 = tmp_2;
|
|
575
|
+
tmp = StreamingJsonEncoder.i1k(tmp$ret$3, this.w1j_1, this.x1j_1, null);
|
|
576
|
+
} else if (!(this.c1k_1 == null)) {
|
|
577
|
+
// Inline function 'kotlin.apply' call
|
|
578
|
+
// Inline function 'kotlinx.serialization.json.internal.StreamingJsonEncoder.encodeInline.<anonymous>' call
|
|
579
|
+
this.d1k_1 = descriptor.pp();
|
|
580
|
+
tmp = this;
|
|
581
|
+
} else {
|
|
582
|
+
tmp = super.fr(descriptor);
|
|
583
|
+
}
|
|
584
|
+
return tmp;
|
|
585
|
+
}
|
|
586
|
+
vq() {
|
|
587
|
+
this.v1j_1.j1i('null');
|
|
588
|
+
}
|
|
589
|
+
wq(value) {
|
|
590
|
+
if (this.b1k_1) {
|
|
591
|
+
this.er(value.toString());
|
|
592
|
+
} else {
|
|
593
|
+
this.v1j_1.s1i(value);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
xq(value) {
|
|
597
|
+
if (this.b1k_1) {
|
|
598
|
+
this.er(value.toString());
|
|
599
|
+
} else {
|
|
600
|
+
this.v1j_1.n1i(value);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
yq(value) {
|
|
604
|
+
if (this.b1k_1) {
|
|
605
|
+
this.er(value.toString());
|
|
606
|
+
} else {
|
|
607
|
+
this.v1j_1.p1i(value);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
zq(value) {
|
|
611
|
+
if (this.b1k_1) {
|
|
612
|
+
this.er(value.toString());
|
|
613
|
+
} else {
|
|
614
|
+
this.v1j_1.q1i(value);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
ar(value) {
|
|
618
|
+
if (this.b1k_1) {
|
|
619
|
+
this.er(value.toString());
|
|
620
|
+
} else {
|
|
621
|
+
this.v1j_1.r1i(value);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
br(value) {
|
|
625
|
+
if (this.b1k_1) {
|
|
626
|
+
this.er(value.toString());
|
|
627
|
+
} else {
|
|
628
|
+
this.v1j_1.l1i(value);
|
|
629
|
+
}
|
|
630
|
+
if (!this.a1k_1.t1h_1 && !isFinite(value)) {
|
|
631
|
+
throw InvalidFloatingPointEncoded(value, toString_0(this.v1j_1.a1i_1));
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
cr(value) {
|
|
635
|
+
if (this.b1k_1) {
|
|
636
|
+
this.er(value.toString());
|
|
637
|
+
} else {
|
|
638
|
+
this.v1j_1.m1i(value);
|
|
639
|
+
}
|
|
640
|
+
if (!this.a1k_1.t1h_1 && !isFinite_0(value)) {
|
|
641
|
+
throw InvalidFloatingPointEncoded(value, toString_0(this.v1j_1.a1i_1));
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
dr(value) {
|
|
645
|
+
this.er(toString_1(value));
|
|
646
|
+
}
|
|
647
|
+
er(value) {
|
|
648
|
+
return this.v1j_1.t1i(value);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
class WriteMode extends Enum {
|
|
652
|
+
constructor(name, ordinal, begin, end) {
|
|
653
|
+
super(name, ordinal);
|
|
654
|
+
this.m1k_1 = begin;
|
|
655
|
+
this.n1k_1 = end;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
class JsonToStringWriter {
|
|
659
|
+
constructor() {
|
|
660
|
+
this.h1h_1 = StringBuilder.za(128);
|
|
661
|
+
}
|
|
662
|
+
o1i(value) {
|
|
663
|
+
this.h1h_1.wf(value);
|
|
664
|
+
}
|
|
665
|
+
i1i(char) {
|
|
666
|
+
this.h1h_1.wa(char);
|
|
667
|
+
}
|
|
668
|
+
k1i(text) {
|
|
669
|
+
this.h1h_1.va(text);
|
|
670
|
+
}
|
|
671
|
+
u1i(text) {
|
|
672
|
+
printQuoted(this.h1h_1, text);
|
|
673
|
+
}
|
|
674
|
+
i1h() {
|
|
675
|
+
this.h1h_1.yf();
|
|
676
|
+
}
|
|
677
|
+
toString() {
|
|
678
|
+
return this.h1h_1.toString();
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
//endregion
|
|
682
|
+
var Default_instance;
|
|
683
|
+
function Default_getInstance() {
|
|
684
|
+
if (Default_instance === VOID)
|
|
685
|
+
new Default();
|
|
686
|
+
return Default_instance;
|
|
687
|
+
}
|
|
688
|
+
var ClassDiscriminatorMode_NONE_instance;
|
|
689
|
+
var ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance;
|
|
690
|
+
var ClassDiscriminatorMode_POLYMORPHIC_instance;
|
|
691
|
+
var ClassDiscriminatorMode_entriesInitialized;
|
|
692
|
+
function ClassDiscriminatorMode_initEntries() {
|
|
693
|
+
if (ClassDiscriminatorMode_entriesInitialized)
|
|
694
|
+
return Unit_instance;
|
|
695
|
+
ClassDiscriminatorMode_entriesInitialized = true;
|
|
696
|
+
ClassDiscriminatorMode_NONE_instance = new ClassDiscriminatorMode('NONE', 0);
|
|
697
|
+
ClassDiscriminatorMode_ALL_JSON_OBJECTS_instance = new ClassDiscriminatorMode('ALL_JSON_OBJECTS', 1);
|
|
698
|
+
ClassDiscriminatorMode_POLYMORPHIC_instance = new ClassDiscriminatorMode('POLYMORPHIC', 2);
|
|
699
|
+
}
|
|
700
|
+
function ClassDiscriminatorMode_NONE_getInstance() {
|
|
701
|
+
ClassDiscriminatorMode_initEntries();
|
|
702
|
+
return ClassDiscriminatorMode_NONE_instance;
|
|
703
|
+
}
|
|
704
|
+
function ClassDiscriminatorMode_POLYMORPHIC_getInstance() {
|
|
705
|
+
ClassDiscriminatorMode_initEntries();
|
|
706
|
+
return ClassDiscriminatorMode_POLYMORPHIC_instance;
|
|
707
|
+
}
|
|
708
|
+
function get_jsonUnquotedLiteralDescriptor() {
|
|
709
|
+
_init_properties_JsonElement_kt__7cbdc2();
|
|
710
|
+
return jsonUnquotedLiteralDescriptor;
|
|
711
|
+
}
|
|
712
|
+
var jsonUnquotedLiteralDescriptor;
|
|
713
|
+
var properties_initialized_JsonElement_kt_abxy8s;
|
|
714
|
+
function _init_properties_JsonElement_kt__7cbdc2() {
|
|
715
|
+
if (!properties_initialized_JsonElement_kt_abxy8s) {
|
|
716
|
+
properties_initialized_JsonElement_kt_abxy8s = true;
|
|
717
|
+
jsonUnquotedLiteralDescriptor = InlinePrimitiveDescriptor('kotlinx.serialization.json.JsonUnquotedLiteral', serializer(StringCompanionObject_instance));
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
function Composer_0(sb, json) {
|
|
721
|
+
return json.d1h_1.n1h_1 ? new ComposerWithPrettyPrint(sb, json) : new Composer(sb);
|
|
722
|
+
}
|
|
723
|
+
function InvalidKeyKindException(keyDescriptor) {
|
|
724
|
+
return JsonEncodingException.l1j("Value of type '" + keyDescriptor.pp() + "' 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.qp().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
|
|
725
|
+
}
|
|
726
|
+
function InvalidFloatingPointEncoded(value, output) {
|
|
727
|
+
return JsonEncodingException.l1j('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))));
|
|
728
|
+
}
|
|
729
|
+
function minify(_this__u8e3s4, offset) {
|
|
730
|
+
offset = offset === VOID ? -1 : offset;
|
|
731
|
+
if (charSequenceLength(_this__u8e3s4) < 200)
|
|
732
|
+
return _this__u8e3s4;
|
|
733
|
+
if (offset === -1) {
|
|
734
|
+
var start = charSequenceLength(_this__u8e3s4) - 60 | 0;
|
|
735
|
+
if (start <= 0)
|
|
736
|
+
return _this__u8e3s4;
|
|
737
|
+
// Inline function 'kotlin.text.substring' call
|
|
738
|
+
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
739
|
+
return '.....' + toString_0(charSequenceSubSequence(_this__u8e3s4, start, endIndex));
|
|
740
|
+
}
|
|
741
|
+
var start_0 = offset - 30 | 0;
|
|
742
|
+
var end = offset + 30 | 0;
|
|
743
|
+
var prefix = start_0 <= 0 ? '' : '.....';
|
|
744
|
+
var suffix = end >= charSequenceLength(_this__u8e3s4) ? '' : '.....';
|
|
745
|
+
var tmp4 = coerceAtLeast(start_0, 0);
|
|
746
|
+
// Inline function 'kotlin.text.substring' call
|
|
747
|
+
var endIndex_0 = coerceAtMost(end, charSequenceLength(_this__u8e3s4));
|
|
748
|
+
return prefix + toString_0(charSequenceSubSequence(_this__u8e3s4, tmp4, endIndex_0)) + suffix;
|
|
749
|
+
}
|
|
750
|
+
var JsonDeserializationNamesKey;
|
|
751
|
+
function get_JsonSerializationNamesKey() {
|
|
752
|
+
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
753
|
+
return JsonSerializationNamesKey;
|
|
754
|
+
}
|
|
755
|
+
var JsonSerializationNamesKey;
|
|
756
|
+
function getJsonElementName(_this__u8e3s4, json, index) {
|
|
757
|
+
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
758
|
+
var strategy = namingStrategy(_this__u8e3s4, json);
|
|
759
|
+
return strategy == null ? _this__u8e3s4.up(index) : serializationNamesIndices(_this__u8e3s4, json, strategy)[index];
|
|
760
|
+
}
|
|
761
|
+
function namingStrategy(_this__u8e3s4, json) {
|
|
762
|
+
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
763
|
+
return equals(_this__u8e3s4.qp(), CLASS_getInstance()) ? json.d1h_1.v1h_1 : null;
|
|
764
|
+
}
|
|
765
|
+
function serializationNamesIndices(_this__u8e3s4, json, strategy) {
|
|
766
|
+
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
767
|
+
var tmp = get_schemaCache(json);
|
|
768
|
+
var tmp_0 = get_JsonSerializationNamesKey();
|
|
769
|
+
return tmp.t1j(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
770
|
+
}
|
|
771
|
+
function serializationNamesIndices$lambda($this_serializationNamesIndices, $strategy) {
|
|
772
|
+
return () => {
|
|
773
|
+
var tmp = 0;
|
|
774
|
+
var tmp_0 = $this_serializationNamesIndices.sp();
|
|
775
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
776
|
+
var tmp_1 = fillArrayVal(Array(tmp_0), null);
|
|
777
|
+
while (tmp < tmp_0) {
|
|
778
|
+
var tmp_2 = tmp;
|
|
779
|
+
var baseName = $this_serializationNamesIndices.up(tmp_2);
|
|
780
|
+
tmp_1[tmp_2] = $strategy.u1j($this_serializationNamesIndices, tmp_2, baseName);
|
|
781
|
+
tmp = tmp + 1 | 0;
|
|
782
|
+
}
|
|
783
|
+
return tmp_1;
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
var properties_initialized_JsonNamesMap_kt_ljpf42;
|
|
787
|
+
function _init_properties_JsonNamesMap_kt__cbbp0k() {
|
|
788
|
+
if (!properties_initialized_JsonNamesMap_kt_ljpf42) {
|
|
789
|
+
properties_initialized_JsonNamesMap_kt_ljpf42 = true;
|
|
790
|
+
JsonDeserializationNamesKey = new Key();
|
|
791
|
+
JsonSerializationNamesKey = new Key();
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function encodeByWriter(json, writer, serializer, value) {
|
|
795
|
+
var tmp = WriteMode_OBJ_getInstance();
|
|
796
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
797
|
+
var size = get_entries().i1();
|
|
798
|
+
var tmp$ret$0 = fillArrayVal(Array(size), null);
|
|
799
|
+
var encoder = StreamingJsonEncoder.e1k(writer, json, tmp, tmp$ret$0);
|
|
800
|
+
encoder.rr(serializer, value);
|
|
801
|
+
}
|
|
802
|
+
function classDiscriminator(_this__u8e3s4, json) {
|
|
803
|
+
var _iterator__ex2g4s = _this__u8e3s4.tp().d1();
|
|
804
|
+
while (_iterator__ex2g4s.e1()) {
|
|
805
|
+
var annotation = _iterator__ex2g4s.f1();
|
|
806
|
+
if (annotation instanceof JsonClassDiscriminator)
|
|
807
|
+
return annotation.f1k_1;
|
|
808
|
+
}
|
|
809
|
+
return json.d1h_1.s1h_1;
|
|
810
|
+
}
|
|
811
|
+
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
812
|
+
if (!(serializer instanceof SealedClassSerializer))
|
|
813
|
+
return Unit_instance;
|
|
814
|
+
if (jsonCachedSerialNames(actualSerializer.io()).w1(classDiscriminator)) {
|
|
815
|
+
var baseName = serializer.io().pp();
|
|
816
|
+
var actualName = actualSerializer.io().pp();
|
|
817
|
+
// Inline function 'kotlin.error' call
|
|
818
|
+
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';
|
|
819
|
+
throw IllegalStateException.e4(toString_0(message));
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
function checkKind(kind) {
|
|
823
|
+
if (kind instanceof ENUM) {
|
|
824
|
+
// Inline function 'kotlin.error' call
|
|
825
|
+
var message = "Enums cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
|
|
826
|
+
throw IllegalStateException.e4(toString_0(message));
|
|
827
|
+
}
|
|
828
|
+
if (kind instanceof PrimitiveKind) {
|
|
829
|
+
// Inline function 'kotlin.error' call
|
|
830
|
+
var message_0 = "Primitives cannot be serialized polymorphically with 'type' parameter. You can use 'JsonBuilder.useArrayPolymorphism' instead";
|
|
831
|
+
throw IllegalStateException.e4(toString_0(message_0));
|
|
832
|
+
}
|
|
833
|
+
if (kind instanceof PolymorphicKind) {
|
|
834
|
+
// Inline function 'kotlin.error' call
|
|
835
|
+
var message_1 = 'Actual serializer for polymorphic cannot be polymorphic itself';
|
|
836
|
+
throw IllegalStateException.e4(toString_0(message_1));
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
function access$validateIfSealed$tPolymorphicKt(serializer, actualSerializer, classDiscriminator) {
|
|
840
|
+
return validateIfSealed(serializer, actualSerializer, classDiscriminator);
|
|
841
|
+
}
|
|
842
|
+
function get_unsignedNumberDescriptors() {
|
|
843
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
844
|
+
return unsignedNumberDescriptors;
|
|
845
|
+
}
|
|
846
|
+
var unsignedNumberDescriptors;
|
|
847
|
+
function encodeTypeInfo($this, discriminator, serialName) {
|
|
848
|
+
$this.v1j_1.e1i();
|
|
849
|
+
$this.er(discriminator);
|
|
850
|
+
$this.v1j_1.h1i(_Char___init__impl__6a9atx(58));
|
|
851
|
+
$this.v1j_1.g1i();
|
|
852
|
+
$this.er(serialName);
|
|
853
|
+
}
|
|
854
|
+
function get_isUnsignedNumber(_this__u8e3s4) {
|
|
855
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
856
|
+
return _this__u8e3s4.rp() && get_unsignedNumberDescriptors().w1(_this__u8e3s4);
|
|
857
|
+
}
|
|
858
|
+
function get_isUnquotedLiteral(_this__u8e3s4) {
|
|
859
|
+
_init_properties_StreamingJsonEncoder_kt__pn1bsi();
|
|
860
|
+
return _this__u8e3s4.rp() && equals(_this__u8e3s4, get_jsonUnquotedLiteralDescriptor());
|
|
861
|
+
}
|
|
862
|
+
var properties_initialized_StreamingJsonEncoder_kt_6ifwwk;
|
|
863
|
+
function _init_properties_StreamingJsonEncoder_kt__pn1bsi() {
|
|
864
|
+
if (!properties_initialized_StreamingJsonEncoder_kt_6ifwwk) {
|
|
865
|
+
properties_initialized_StreamingJsonEncoder_kt_6ifwwk = true;
|
|
866
|
+
unsignedNumberDescriptors = setOf([serializer_0(Companion_getInstance()).io(), serializer_1(Companion_getInstance_0()).io(), serializer_2(Companion_getInstance_1()).io(), serializer_3(Companion_getInstance_2()).io()]);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
function get_ESCAPE_STRINGS() {
|
|
870
|
+
_init_properties_StringOps_kt__fcy1db();
|
|
871
|
+
return ESCAPE_STRINGS;
|
|
872
|
+
}
|
|
873
|
+
var ESCAPE_STRINGS;
|
|
874
|
+
var ESCAPE_MARKERS;
|
|
875
|
+
function toHexChar(i) {
|
|
876
|
+
_init_properties_StringOps_kt__fcy1db();
|
|
877
|
+
var d = i & 15;
|
|
878
|
+
var tmp;
|
|
879
|
+
if (d < 10) {
|
|
880
|
+
// Inline function 'kotlin.code' call
|
|
881
|
+
var this_0 = _Char___init__impl__6a9atx(48);
|
|
882
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
883
|
+
tmp = numberToChar(d + tmp$ret$0 | 0);
|
|
884
|
+
} else {
|
|
885
|
+
var tmp_0 = d - 10 | 0;
|
|
886
|
+
// Inline function 'kotlin.code' call
|
|
887
|
+
var this_1 = _Char___init__impl__6a9atx(97);
|
|
888
|
+
var tmp$ret$1 = Char__toInt_impl_vasixd(this_1);
|
|
889
|
+
tmp = numberToChar(tmp_0 + tmp$ret$1 | 0);
|
|
890
|
+
}
|
|
891
|
+
return tmp;
|
|
892
|
+
}
|
|
893
|
+
function printQuoted(_this__u8e3s4, value) {
|
|
894
|
+
_init_properties_StringOps_kt__fcy1db();
|
|
895
|
+
_this__u8e3s4.wa(_Char___init__impl__6a9atx(34));
|
|
896
|
+
var lastPos = 0;
|
|
897
|
+
var inductionVariable = 0;
|
|
898
|
+
var last = charSequenceLength(value) - 1 | 0;
|
|
899
|
+
if (inductionVariable <= last)
|
|
900
|
+
do {
|
|
901
|
+
var i = inductionVariable;
|
|
902
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
903
|
+
// Inline function 'kotlin.code' call
|
|
904
|
+
var this_0 = charSequenceGet(value, i);
|
|
905
|
+
var c = Char__toInt_impl_vasixd(this_0);
|
|
906
|
+
if (c < get_ESCAPE_STRINGS().length && !(get_ESCAPE_STRINGS()[c] == null)) {
|
|
907
|
+
_this__u8e3s4.tf(value, lastPos, i);
|
|
908
|
+
_this__u8e3s4.va(get_ESCAPE_STRINGS()[c]);
|
|
909
|
+
lastPos = i + 1 | 0;
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
while (inductionVariable <= last);
|
|
913
|
+
if (!(lastPos === 0))
|
|
914
|
+
_this__u8e3s4.tf(value, lastPos, value.length);
|
|
915
|
+
else
|
|
916
|
+
_this__u8e3s4.va(value);
|
|
917
|
+
_this__u8e3s4.wa(_Char___init__impl__6a9atx(34));
|
|
918
|
+
}
|
|
919
|
+
var properties_initialized_StringOps_kt_wzaea7;
|
|
920
|
+
function _init_properties_StringOps_kt__fcy1db() {
|
|
921
|
+
if (!properties_initialized_StringOps_kt_wzaea7) {
|
|
922
|
+
properties_initialized_StringOps_kt_wzaea7 = true;
|
|
923
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
924
|
+
// Inline function 'kotlin.apply' call
|
|
925
|
+
var this_0 = fillArrayVal(Array(93), null);
|
|
926
|
+
// Inline function 'kotlinx.serialization.json.internal.ESCAPE_STRINGS.<anonymous>' call
|
|
927
|
+
var inductionVariable = 0;
|
|
928
|
+
if (inductionVariable <= 31)
|
|
929
|
+
do {
|
|
930
|
+
var c = inductionVariable;
|
|
931
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
932
|
+
var c1 = toHexChar(c >> 12);
|
|
933
|
+
var c2 = toHexChar(c >> 8);
|
|
934
|
+
var c3 = toHexChar(c >> 4);
|
|
935
|
+
var c4 = toHexChar(c);
|
|
936
|
+
this_0[c] = '\\u' + toString_1(c1) + toString_1(c2) + toString_1(c3) + toString_1(c4);
|
|
937
|
+
}
|
|
938
|
+
while (inductionVariable <= 31);
|
|
939
|
+
// Inline function 'kotlin.code' call
|
|
940
|
+
var this_1 = _Char___init__impl__6a9atx(34);
|
|
941
|
+
this_0[Char__toInt_impl_vasixd(this_1)] = '\\"';
|
|
942
|
+
// Inline function 'kotlin.code' call
|
|
943
|
+
var this_2 = _Char___init__impl__6a9atx(92);
|
|
944
|
+
this_0[Char__toInt_impl_vasixd(this_2)] = '\\\\';
|
|
945
|
+
// Inline function 'kotlin.code' call
|
|
946
|
+
var this_3 = _Char___init__impl__6a9atx(9);
|
|
947
|
+
this_0[Char__toInt_impl_vasixd(this_3)] = '\\t';
|
|
948
|
+
// Inline function 'kotlin.code' call
|
|
949
|
+
var this_4 = _Char___init__impl__6a9atx(8);
|
|
950
|
+
this_0[Char__toInt_impl_vasixd(this_4)] = '\\b';
|
|
951
|
+
// Inline function 'kotlin.code' call
|
|
952
|
+
var this_5 = _Char___init__impl__6a9atx(10);
|
|
953
|
+
this_0[Char__toInt_impl_vasixd(this_5)] = '\\n';
|
|
954
|
+
// Inline function 'kotlin.code' call
|
|
955
|
+
var this_6 = _Char___init__impl__6a9atx(13);
|
|
956
|
+
this_0[Char__toInt_impl_vasixd(this_6)] = '\\r';
|
|
957
|
+
this_0[12] = '\\f';
|
|
958
|
+
ESCAPE_STRINGS = this_0;
|
|
959
|
+
// Inline function 'kotlin.apply' call
|
|
960
|
+
var this_7 = new Int8Array(93);
|
|
961
|
+
// Inline function 'kotlinx.serialization.json.internal.ESCAPE_MARKERS.<anonymous>' call
|
|
962
|
+
var inductionVariable_0 = 0;
|
|
963
|
+
if (inductionVariable_0 <= 31)
|
|
964
|
+
do {
|
|
965
|
+
var c_0 = inductionVariable_0;
|
|
966
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
967
|
+
this_7[c_0] = 1;
|
|
968
|
+
}
|
|
969
|
+
while (inductionVariable_0 <= 31);
|
|
970
|
+
// Inline function 'kotlin.code' call
|
|
971
|
+
var this_8 = _Char___init__impl__6a9atx(34);
|
|
972
|
+
var tmp = Char__toInt_impl_vasixd(this_8);
|
|
973
|
+
// Inline function 'kotlin.code' call
|
|
974
|
+
var this_9 = _Char___init__impl__6a9atx(34);
|
|
975
|
+
var tmp$ret$1 = Char__toInt_impl_vasixd(this_9);
|
|
976
|
+
this_7[tmp] = toByte(tmp$ret$1);
|
|
977
|
+
// Inline function 'kotlin.code' call
|
|
978
|
+
var this_10 = _Char___init__impl__6a9atx(92);
|
|
979
|
+
var tmp_0 = Char__toInt_impl_vasixd(this_10);
|
|
980
|
+
// Inline function 'kotlin.code' call
|
|
981
|
+
var this_11 = _Char___init__impl__6a9atx(92);
|
|
982
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_11);
|
|
983
|
+
this_7[tmp_0] = toByte(tmp$ret$3);
|
|
984
|
+
// Inline function 'kotlin.code' call
|
|
985
|
+
var this_12 = _Char___init__impl__6a9atx(9);
|
|
986
|
+
var tmp_1 = Char__toInt_impl_vasixd(this_12);
|
|
987
|
+
// Inline function 'kotlin.code' call
|
|
988
|
+
var this_13 = _Char___init__impl__6a9atx(116);
|
|
989
|
+
var tmp$ret$5 = Char__toInt_impl_vasixd(this_13);
|
|
990
|
+
this_7[tmp_1] = toByte(tmp$ret$5);
|
|
991
|
+
// Inline function 'kotlin.code' call
|
|
992
|
+
var this_14 = _Char___init__impl__6a9atx(8);
|
|
993
|
+
var tmp_2 = Char__toInt_impl_vasixd(this_14);
|
|
994
|
+
// Inline function 'kotlin.code' call
|
|
995
|
+
var this_15 = _Char___init__impl__6a9atx(98);
|
|
996
|
+
var tmp$ret$7 = Char__toInt_impl_vasixd(this_15);
|
|
997
|
+
this_7[tmp_2] = toByte(tmp$ret$7);
|
|
998
|
+
// Inline function 'kotlin.code' call
|
|
999
|
+
var this_16 = _Char___init__impl__6a9atx(10);
|
|
1000
|
+
var tmp_3 = Char__toInt_impl_vasixd(this_16);
|
|
1001
|
+
// Inline function 'kotlin.code' call
|
|
1002
|
+
var this_17 = _Char___init__impl__6a9atx(110);
|
|
1003
|
+
var tmp$ret$9 = Char__toInt_impl_vasixd(this_17);
|
|
1004
|
+
this_7[tmp_3] = toByte(tmp$ret$9);
|
|
1005
|
+
// Inline function 'kotlin.code' call
|
|
1006
|
+
var this_18 = _Char___init__impl__6a9atx(13);
|
|
1007
|
+
var tmp_4 = Char__toInt_impl_vasixd(this_18);
|
|
1008
|
+
// Inline function 'kotlin.code' call
|
|
1009
|
+
var this_19 = _Char___init__impl__6a9atx(114);
|
|
1010
|
+
var tmp$ret$11 = Char__toInt_impl_vasixd(this_19);
|
|
1011
|
+
this_7[tmp_4] = toByte(tmp$ret$11);
|
|
1012
|
+
// Inline function 'kotlin.code' call
|
|
1013
|
+
var this_20 = _Char___init__impl__6a9atx(102);
|
|
1014
|
+
var tmp$ret$12 = Char__toInt_impl_vasixd(this_20);
|
|
1015
|
+
this_7[12] = toByte(tmp$ret$12);
|
|
1016
|
+
ESCAPE_MARKERS = this_7;
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
var WriteMode_OBJ_instance;
|
|
1020
|
+
var WriteMode_LIST_instance;
|
|
1021
|
+
var WriteMode_MAP_instance;
|
|
1022
|
+
var WriteMode_POLY_OBJ_instance;
|
|
1023
|
+
function values() {
|
|
1024
|
+
return [WriteMode_OBJ_getInstance(), WriteMode_LIST_getInstance(), WriteMode_MAP_getInstance(), WriteMode_POLY_OBJ_getInstance()];
|
|
1025
|
+
}
|
|
1026
|
+
function get_entries() {
|
|
1027
|
+
if ($ENTRIES == null)
|
|
1028
|
+
$ENTRIES = enumEntries(values());
|
|
1029
|
+
return $ENTRIES;
|
|
1030
|
+
}
|
|
1031
|
+
var WriteMode_entriesInitialized;
|
|
1032
|
+
function WriteMode_initEntries() {
|
|
1033
|
+
if (WriteMode_entriesInitialized)
|
|
1034
|
+
return Unit_instance;
|
|
1035
|
+
WriteMode_entriesInitialized = true;
|
|
1036
|
+
WriteMode_OBJ_instance = new WriteMode('OBJ', 0, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
|
|
1037
|
+
WriteMode_LIST_instance = new WriteMode('LIST', 1, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
|
|
1038
|
+
WriteMode_MAP_instance = new WriteMode('MAP', 2, _Char___init__impl__6a9atx(123), _Char___init__impl__6a9atx(125));
|
|
1039
|
+
WriteMode_POLY_OBJ_instance = new WriteMode('POLY_OBJ', 3, _Char___init__impl__6a9atx(91), _Char___init__impl__6a9atx(93));
|
|
1040
|
+
}
|
|
1041
|
+
var $ENTRIES;
|
|
1042
|
+
function switchMode(_this__u8e3s4, desc) {
|
|
1043
|
+
var tmp0_subject = desc.qp();
|
|
1044
|
+
var tmp;
|
|
1045
|
+
if (tmp0_subject instanceof PolymorphicKind) {
|
|
1046
|
+
tmp = WriteMode_POLY_OBJ_getInstance();
|
|
1047
|
+
} else {
|
|
1048
|
+
if (equals(tmp0_subject, LIST_getInstance())) {
|
|
1049
|
+
tmp = WriteMode_LIST_getInstance();
|
|
1050
|
+
} else {
|
|
1051
|
+
if (equals(tmp0_subject, MAP_getInstance())) {
|
|
1052
|
+
// Inline function 'kotlinx.serialization.json.internal.selectMapMode' call
|
|
1053
|
+
var keyDescriptor = carrierDescriptor(desc.vp(0), _this__u8e3s4.ur());
|
|
1054
|
+
var keyKind = keyDescriptor.qp();
|
|
1055
|
+
var tmp_0;
|
|
1056
|
+
var tmp_1;
|
|
1057
|
+
if (keyKind instanceof PrimitiveKind) {
|
|
1058
|
+
tmp_1 = true;
|
|
1059
|
+
} else {
|
|
1060
|
+
tmp_1 = equals(keyKind, ENUM_getInstance());
|
|
1061
|
+
}
|
|
1062
|
+
if (tmp_1) {
|
|
1063
|
+
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1064
|
+
tmp_0 = WriteMode_MAP_getInstance();
|
|
1065
|
+
} else {
|
|
1066
|
+
if (_this__u8e3s4.d1h_1.m1h_1) {
|
|
1067
|
+
// Inline function 'kotlinx.serialization.json.internal.switchMode.<anonymous>' call
|
|
1068
|
+
tmp_0 = WriteMode_LIST_getInstance();
|
|
1069
|
+
} else {
|
|
1070
|
+
throw InvalidKeyKindException(keyDescriptor);
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
tmp = tmp_0;
|
|
1074
|
+
} else {
|
|
1075
|
+
tmp = WriteMode_OBJ_getInstance();
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
return tmp;
|
|
1080
|
+
}
|
|
1081
|
+
function carrierDescriptor(_this__u8e3s4, module_0) {
|
|
1082
|
+
var tmp;
|
|
1083
|
+
if (equals(_this__u8e3s4.qp(), CONTEXTUAL_getInstance())) {
|
|
1084
|
+
var tmp0_safe_receiver = getContextualDescriptor(module_0, _this__u8e3s4);
|
|
1085
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : carrierDescriptor(tmp0_safe_receiver, module_0);
|
|
1086
|
+
tmp = tmp1_elvis_lhs == null ? _this__u8e3s4 : tmp1_elvis_lhs;
|
|
1087
|
+
} else if (_this__u8e3s4.rp()) {
|
|
1088
|
+
tmp = carrierDescriptor(_this__u8e3s4.vp(0), module_0);
|
|
1089
|
+
} else {
|
|
1090
|
+
tmp = _this__u8e3s4;
|
|
1091
|
+
}
|
|
1092
|
+
return tmp;
|
|
1093
|
+
}
|
|
1094
|
+
function WriteMode_OBJ_getInstance() {
|
|
1095
|
+
WriteMode_initEntries();
|
|
1096
|
+
return WriteMode_OBJ_instance;
|
|
1097
|
+
}
|
|
1098
|
+
function WriteMode_LIST_getInstance() {
|
|
1099
|
+
WriteMode_initEntries();
|
|
1100
|
+
return WriteMode_LIST_instance;
|
|
1101
|
+
}
|
|
1102
|
+
function WriteMode_MAP_getInstance() {
|
|
1103
|
+
WriteMode_initEntries();
|
|
1104
|
+
return WriteMode_MAP_instance;
|
|
1105
|
+
}
|
|
1106
|
+
function WriteMode_POLY_OBJ_getInstance() {
|
|
1107
|
+
WriteMode_initEntries();
|
|
1108
|
+
return WriteMode_POLY_OBJ_instance;
|
|
1109
|
+
}
|
|
1110
|
+
function get_schemaCache(_this__u8e3s4) {
|
|
1111
|
+
return _this__u8e3s4.f1h_1;
|
|
1112
|
+
}
|
|
1113
|
+
function createMapForCache(initialCapacity) {
|
|
1114
|
+
return HashMap.b8(initialCapacity);
|
|
1115
|
+
}
|
|
1116
|
+
//region block: post-declaration
|
|
1117
|
+
initMetadataForClass(Json, 'Json');
|
|
1118
|
+
initMetadataForObject(Default, 'Default');
|
|
1119
|
+
initMetadataForClass(JsonClassDiscriminator, 'JsonClassDiscriminator');
|
|
1120
|
+
initMetadataForClass(JsonConfiguration, 'JsonConfiguration');
|
|
1121
|
+
initMetadataForClass(ClassDiscriminatorMode, 'ClassDiscriminatorMode');
|
|
1122
|
+
initMetadataForClass(Composer, 'Composer');
|
|
1123
|
+
initMetadataForClass(ComposerForUnsignedNumbers, 'ComposerForUnsignedNumbers');
|
|
1124
|
+
initMetadataForClass(ComposerForUnquotedLiterals, 'ComposerForUnquotedLiterals');
|
|
1125
|
+
initMetadataForClass(ComposerWithPrettyPrint, 'ComposerWithPrettyPrint');
|
|
1126
|
+
initMetadataForClass(JsonException, 'JsonException');
|
|
1127
|
+
initMetadataForClass(JsonEncodingException, 'JsonEncodingException');
|
|
1128
|
+
initMetadataForClass(Key, 'Key', Key);
|
|
1129
|
+
initMetadataForClass(DescriptorSchemaCache, 'DescriptorSchemaCache', DescriptorSchemaCache);
|
|
1130
|
+
initMetadataForClass(StreamingJsonEncoder, 'StreamingJsonEncoder', VOID, VOID, [CompositeEncoder, Encoder, AbstractEncoder]);
|
|
1131
|
+
initMetadataForClass(WriteMode, 'WriteMode');
|
|
1132
|
+
initMetadataForClass(JsonToStringWriter, 'JsonToStringWriter', JsonToStringWriter);
|
|
1133
|
+
//endregion
|
|
1134
|
+
//region block: exports
|
|
1135
|
+
export {
|
|
1136
|
+
Default_getInstance as Default_getInstance2p0knxgw5u8xj,
|
|
1137
|
+
};
|
|
1138
|
+
//endregion
|
|
1139
|
+
|
|
1140
|
+
//# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-json.mjs.map
|