@flock/wirespec 0.10.26 → 0.11.0

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.
@@ -0,0 +1,1372 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
6
+ else {
7
+ if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
8
+ throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-avro'.");
9
+ }
10
+ if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
11
+ throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-avro'.");
12
+ }
13
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
14
+ throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'wirespec-src-converter-avro'.");
15
+ }
16
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
17
+ throw new Error("Error loading module 'wirespec-src-converter-avro'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'wirespec-src-converter-avro'.");
18
+ }
19
+ globalThis['wirespec-src-converter-avro'] = factory(typeof globalThis['wirespec-src-converter-avro'] === 'undefined' ? {} : globalThis['wirespec-src-converter-avro'], globalThis['wirespec-src-compiler-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
20
+ }
21
+ }(function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
22
+ 'use strict';
23
+ //region block: imports
24
+ var imul = Math.imul;
25
+ var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.j2;
26
+ var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
27
+ var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
28
+ var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
29
+ var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
30
+ var Bytes_instance = kotlin_community_flock_wirespec_compiler_core.$_$.k2;
31
+ var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.l2;
32
+ var NotImplementedError = kotlin_kotlin.$_$.ef;
33
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
34
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.y;
35
+ var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
36
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
37
+ var VOID = kotlin_kotlin.$_$.g;
38
+ var minus = kotlin_kotlin.$_$.k7;
39
+ var Collection = kotlin_kotlin.$_$.k4;
40
+ var isInterface = kotlin_kotlin.$_$.ma;
41
+ var checkCountOverflow = kotlin_kotlin.$_$.g5;
42
+ var Unit_instance = kotlin_kotlin.$_$.g4;
43
+ var first = kotlin_kotlin.$_$.h6;
44
+ var toString = kotlin_kotlin.$_$.cb;
45
+ var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
46
+ var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
47
+ var emptyList = kotlin_kotlin.$_$.b6;
48
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
49
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
50
+ var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
51
+ var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
52
+ var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
53
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
54
+ var toSet = kotlin_kotlin.$_$.q8;
55
+ var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
56
+ var listOf = kotlin_kotlin.$_$.g7;
57
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
58
+ var addAll = kotlin_kotlin.$_$.y4;
59
+ var plus = kotlin_kotlin.$_$.s7;
60
+ var protoOf = kotlin_kotlin.$_$.ya;
61
+ var initMetadataForObject = kotlin_kotlin.$_$.da;
62
+ var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
63
+ var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
64
+ var THROW_CCE = kotlin_kotlin.$_$.jf;
65
+ var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c;
66
+ var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
67
+ var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r1;
68
+ var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s1;
69
+ var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
70
+ var objectCreate = kotlin_kotlin.$_$.xa;
71
+ var initMetadataForCompanion = kotlin_kotlin.$_$.z9;
72
+ var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
73
+ var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p1;
74
+ var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
75
+ var getStringHashCode = kotlin_kotlin.$_$.w9;
76
+ var initMetadataForClass = kotlin_kotlin.$_$.y9;
77
+ var AbstractList = kotlin_kotlin.$_$.h4;
78
+ var toList = kotlin_kotlin.$_$.m8;
79
+ var initMetadataForInterface = kotlin_kotlin.$_$.ba;
80
+ var hashCode = kotlin_kotlin.$_$.x9;
81
+ var equals = kotlin_kotlin.$_$.r9;
82
+ var SEALED_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
83
+ var buildSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g1;
84
+ var ListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
85
+ var JsonDecoder = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
86
+ var SerializationException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b;
87
+ var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.g;
88
+ var copyToArray = kotlin_kotlin.$_$.x5;
89
+ var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
90
+ var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.k;
91
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
92
+ var StringCompanionObject_instance = kotlin_kotlin.$_$.u3;
93
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
94
+ var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
95
+ var getKClass = kotlin_kotlin.$_$.e;
96
+ var arrayOf = kotlin_kotlin.$_$.wf;
97
+ var createKType = kotlin_kotlin.$_$.b;
98
+ var serializer_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
99
+ var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
100
+ var plus_0 = kotlin_kotlin.$_$.t7;
101
+ //endregion
102
+ //region block: pre-declaration
103
+ initMetadataForObject(AvroConverter, 'AvroConverter');
104
+ initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
105
+ initMetadataForCompanion(Companion);
106
+ initMetadataForCompanion(Companion_0, VOID, [SerializerFactory]);
107
+ initMetadataForCompanion(Companion_1);
108
+ initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
109
+ initMetadataForCompanion(Companion_2);
110
+ initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
111
+ initMetadataForCompanion(Companion_3);
112
+ initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
113
+ initMetadataForCompanion(Companion_4);
114
+ initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
115
+ initMetadataForCompanion(Companion_5);
116
+ initMetadataForObject($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
117
+ initMetadataForClass(Field_0, 'Field', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
118
+ initMetadataForClass(TypeList, 'TypeList', VOID, AbstractList, VOID, VOID, VOID, {0: TypeListSerializer_getInstance});
119
+ initMetadataForInterface(Type_0, 'Type', VOID, VOID, VOID, VOID, VOID, {0: TypeSerializer_getInstance});
120
+ initMetadataForClass(SimpleType, 'SimpleType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_0});
121
+ initMetadataForClass(RecordType, 'RecordType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_1});
122
+ initMetadataForClass(ArrayType, 'ArrayType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_2});
123
+ initMetadataForClass(EnumType, 'EnumType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_3});
124
+ initMetadataForClass(LogicalType, 'LogicalType', VOID, VOID, [Type_0], VOID, VOID, {0: $serializer_getInstance_4});
125
+ initMetadataForObject(TypeListSerializer, 'TypeListSerializer', VOID, VOID, [KSerializer]);
126
+ initMetadataForObject(TypeSerializer, 'TypeSerializer', VOID, VOID, [KSerializer]);
127
+ initMetadataForObject(AvroParser, 'AvroParser');
128
+ //endregion
129
+ function isNullable(_this__u8e3s4, $this) {
130
+ return _this__u8e3s4.p1($this.x2c_1);
131
+ }
132
+ function toPrimitive(_this__u8e3s4, $this) {
133
+ var tmp;
134
+ switch (_this__u8e3s4.y2c_1) {
135
+ case 'boolean':
136
+ tmp = Boolean_instance;
137
+ break;
138
+ case 'int':
139
+ tmp = new Integer(Precision_P32_getInstance());
140
+ break;
141
+ case 'long':
142
+ tmp = new Integer(Precision_P64_getInstance());
143
+ break;
144
+ case 'float':
145
+ tmp = new Number_0(Precision_P32_getInstance());
146
+ break;
147
+ case 'double':
148
+ tmp = new Number_0(Precision_P64_getInstance());
149
+ break;
150
+ case 'bytes':
151
+ tmp = Bytes_instance;
152
+ break;
153
+ case 'string':
154
+ tmp = String_instance;
155
+ break;
156
+ default:
157
+ var reason = 'primitive not mapped ' + _this__u8e3s4.y2c_1;
158
+ throw new NotImplementedError('An operation is not implemented: ' + reason);
159
+ }
160
+ return tmp;
161
+ }
162
+ function toReference(_this__u8e3s4, $this, isIterable) {
163
+ var tmp;
164
+ if (_this__u8e3s4 instanceof SimpleType) {
165
+ switch (_this__u8e3s4.y2c_1) {
166
+ case 'null':
167
+ tmp = new Unit(isIterable, false);
168
+ break;
169
+ case 'boolean':
170
+ case 'int':
171
+ case 'long':
172
+ case 'float':
173
+ case 'double':
174
+ case 'bytes':
175
+ case 'string':
176
+ tmp = new Primitive(toPrimitive(_this__u8e3s4, $this), isIterable, false);
177
+ break;
178
+ default:
179
+ tmp = new Custom(_this__u8e3s4.y2c_1, isIterable, false);
180
+ break;
181
+ }
182
+ } else {
183
+ if (_this__u8e3s4 instanceof ArrayType) {
184
+ tmp = toReference(_this__u8e3s4.n2d_1, $this, true);
185
+ } else {
186
+ if (_this__u8e3s4 instanceof RecordType) {
187
+ tmp = new Custom(_this__u8e3s4.i2d_1, isIterable, false);
188
+ } else {
189
+ if (_this__u8e3s4 instanceof EnumType) {
190
+ tmp = new Custom(_this__u8e3s4.e2d_1, isIterable, false);
191
+ } else {
192
+ if (_this__u8e3s4 instanceof LogicalType) {
193
+ tmp = toReference$default(new SimpleType(_this__u8e3s4.z2c_1), $this);
194
+ } else {
195
+ noWhenBranchMatchedException();
196
+ }
197
+ }
198
+ }
199
+ }
200
+ }
201
+ return tmp;
202
+ }
203
+ function toReference$default(_this__u8e3s4, $this, isIterable, $super) {
204
+ isIterable = isIterable === VOID ? false : isIterable;
205
+ return toReference(_this__u8e3s4, $this, isIterable);
206
+ }
207
+ function toReference_0(_this__u8e3s4, $this) {
208
+ var list = minus(_this__u8e3s4, $this.x2c_1);
209
+ var tmp;
210
+ if (list.j() === 1) {
211
+ tmp = toReference$default(first(list), $this);
212
+ } else {
213
+ var tmp$ret$0;
214
+ $l$block: {
215
+ // Inline function 'kotlin.collections.count' call
216
+ var tmp_0;
217
+ if (isInterface(list, Collection)) {
218
+ tmp_0 = list.l();
219
+ } else {
220
+ tmp_0 = false;
221
+ }
222
+ if (tmp_0) {
223
+ tmp$ret$0 = 0;
224
+ break $l$block;
225
+ }
226
+ var count = 0;
227
+ var tmp0_iterator = list.g();
228
+ while (tmp0_iterator.h()) {
229
+ var element = tmp0_iterator.i();
230
+ // Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toReference.<anonymous>' call
231
+ if (element instanceof SimpleType) {
232
+ count = count + 1 | 0;
233
+ checkCountOverflow(count);
234
+ }
235
+ }
236
+ tmp$ret$0 = count;
237
+ }
238
+ if (tmp$ret$0 > 1) {
239
+ var message = 'Cannot have multiple SimpleTypes in Union';
240
+ throw IllegalStateException_init_$Create$(toString(message));
241
+ } else {
242
+ tmp = toReference$default(first(list), $this);
243
+ }
244
+ }
245
+ return tmp;
246
+ }
247
+ function toType(_this__u8e3s4, $this) {
248
+ var tmp0_identifier = new DefinitionIdentifier(_this__u8e3s4.i2d_1);
249
+ var tmp1_extends = emptyList();
250
+ // Inline function 'kotlin.collections.map' call
251
+ var this_0 = _this__u8e3s4.k2d_1;
252
+ // Inline function 'kotlin.collections.mapTo' call
253
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
254
+ var tmp0_iterator = this_0.g();
255
+ while (tmp0_iterator.h()) {
256
+ var item = tmp0_iterator.i();
257
+ // Inline function 'community.flock.wirespec.converter.avro.AvroConverter.toType.<anonymous>' call
258
+ var tmp$ret$0 = new Field(new FieldIdentifier(item.o2d_1), toReference_0(item.p2d_1, AvroConverter_getInstance()), isNullable(item.p2d_1, AvroConverter_getInstance()));
259
+ destination.e(tmp$ret$0);
260
+ }
261
+ var tmp2_shape = new Shape(destination);
262
+ return new Type(null, tmp0_identifier, tmp2_shape, tmp1_extends);
263
+ }
264
+ function toEnum(_this__u8e3s4, $this) {
265
+ return new Enum(null, new DefinitionIdentifier(_this__u8e3s4.e2d_1), toSet(_this__u8e3s4.g2d_1));
266
+ }
267
+ function AvroConverter() {
268
+ AvroConverter_instance = this;
269
+ this.x2c_1 = new SimpleType('null');
270
+ }
271
+ protoOf(AvroConverter).s2d = function (_this__u8e3s4) {
272
+ var tmp;
273
+ if (_this__u8e3s4 instanceof SimpleType) {
274
+ tmp = emptyList();
275
+ } else {
276
+ if (_this__u8e3s4 instanceof RecordType) {
277
+ var tmp_0 = listOf(toType(_this__u8e3s4, this));
278
+ // Inline function 'kotlin.collections.flatMap' call
279
+ // Inline function 'kotlin.collections.flatMapTo' call
280
+ var this_0 = _this__u8e3s4.k2d_1;
281
+ var destination = ArrayList_init_$Create$_0();
282
+ var tmp0_iterator = this_0.g();
283
+ while (tmp0_iterator.h()) {
284
+ var element = tmp0_iterator.i();
285
+ // Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>' call
286
+ // Inline function 'kotlin.collections.flatMap' call
287
+ // Inline function 'kotlin.collections.flatMapTo' call
288
+ var this_1 = element.p2d_1;
289
+ var destination_0 = ArrayList_init_$Create$_0();
290
+ var tmp0_iterator_0 = this_1.g();
291
+ while (tmp0_iterator_0.h()) {
292
+ var element_0 = tmp0_iterator_0.i();
293
+ // Inline function 'community.flock.wirespec.converter.avro.AvroConverter.flatten.<anonymous>.<anonymous>' call
294
+ var list = AvroConverter_getInstance().s2d(element_0);
295
+ addAll(destination_0, list);
296
+ }
297
+ var list_0 = destination_0;
298
+ addAll(destination, list_0);
299
+ }
300
+ tmp = plus(tmp_0, destination);
301
+ } else {
302
+ if (_this__u8e3s4 instanceof ArrayType) {
303
+ tmp = this.s2d(_this__u8e3s4.n2d_1);
304
+ } else {
305
+ if (_this__u8e3s4 instanceof EnumType) {
306
+ tmp = listOf(toEnum(_this__u8e3s4, this));
307
+ } else {
308
+ if (_this__u8e3s4 instanceof LogicalType) {
309
+ tmp = emptyList();
310
+ } else {
311
+ noWhenBranchMatchedException();
312
+ }
313
+ }
314
+ }
315
+ }
316
+ }
317
+ return tmp;
318
+ };
319
+ var AvroConverter_instance;
320
+ function AvroConverter_getInstance() {
321
+ if (AvroConverter_instance == null)
322
+ new AvroConverter();
323
+ return AvroConverter_instance;
324
+ }
325
+ function $serializer() {
326
+ $serializer_instance = this;
327
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.Field', this, 4);
328
+ tmp0_serialDesc.hv('name', false);
329
+ tmp0_serialDesc.hv('type', false);
330
+ tmp0_serialDesc.hv('doc', true);
331
+ tmp0_serialDesc.hv('default', true);
332
+ this.t2d_1 = tmp0_serialDesc;
333
+ }
334
+ protoOf($serializer).u2d = function (encoder, value) {
335
+ var tmp0_desc = this.t2d_1;
336
+ var tmp1_output = encoder.xn(tmp0_desc);
337
+ tmp1_output.mp(tmp0_desc, 0, value.o2d_1);
338
+ tmp1_output.op(tmp0_desc, 1, TypeListSerializer_getInstance(), value.p2d_1);
339
+ if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.q2d_1 == null)) {
340
+ tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.q2d_1);
341
+ }
342
+ if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.r2d_1 == null)) {
343
+ tmp1_output.qp(tmp0_desc, 3, StringSerializer_getInstance(), value.r2d_1);
344
+ }
345
+ tmp1_output.yn(tmp0_desc);
346
+ };
347
+ protoOf($serializer).xk = function (encoder, value) {
348
+ return this.u2d(encoder, value instanceof Field_0 ? value : THROW_CCE());
349
+ };
350
+ protoOf($serializer).yk = function (decoder) {
351
+ var tmp0_desc = this.t2d_1;
352
+ var tmp1_flag = true;
353
+ var tmp2_index = 0;
354
+ var tmp3_bitMask0 = 0;
355
+ var tmp4_local0 = null;
356
+ var tmp5_local1 = null;
357
+ var tmp6_local2 = null;
358
+ var tmp7_local3 = null;
359
+ var tmp8_input = decoder.xn(tmp0_desc);
360
+ if (tmp8_input.no()) {
361
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
362
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
363
+ tmp5_local1 = tmp8_input.jo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
364
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
365
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
366
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
367
+ tmp7_local3 = tmp8_input.lo(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
368
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
369
+ } else
370
+ while (tmp1_flag) {
371
+ tmp2_index = tmp8_input.oo(tmp0_desc);
372
+ switch (tmp2_index) {
373
+ case -1:
374
+ tmp1_flag = false;
375
+ break;
376
+ case 0:
377
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
378
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
379
+ break;
380
+ case 1:
381
+ tmp5_local1 = tmp8_input.jo(tmp0_desc, 1, TypeListSerializer_getInstance(), tmp5_local1);
382
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
383
+ break;
384
+ case 2:
385
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
386
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
387
+ break;
388
+ case 3:
389
+ tmp7_local3 = tmp8_input.lo(tmp0_desc, 3, StringSerializer_getInstance(), tmp7_local3);
390
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
391
+ break;
392
+ default:
393
+ throw UnknownFieldException_init_$Create$(tmp2_index);
394
+ }
395
+ }
396
+ tmp8_input.yn(tmp0_desc);
397
+ return Field_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
398
+ };
399
+ protoOf($serializer).wk = function () {
400
+ return this.t2d_1;
401
+ };
402
+ protoOf($serializer).aw = function () {
403
+ // Inline function 'kotlin.arrayOf' call
404
+ // Inline function 'kotlin.js.unsafeCast' call
405
+ // Inline function 'kotlin.js.asDynamic' call
406
+ return [StringSerializer_getInstance(), TypeListSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
407
+ };
408
+ var $serializer_instance;
409
+ function $serializer_getInstance() {
410
+ if ($serializer_instance == null)
411
+ new $serializer();
412
+ return $serializer_instance;
413
+ }
414
+ function Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, $this) {
415
+ if (!(3 === (3 & seen0))) {
416
+ throwMissingFieldException(seen0, 3, $serializer_getInstance().t2d_1);
417
+ }
418
+ $this.o2d_1 = name;
419
+ $this.p2d_1 = type;
420
+ if (0 === (seen0 & 4))
421
+ $this.q2d_1 = null;
422
+ else
423
+ $this.q2d_1 = doc;
424
+ if (0 === (seen0 & 8))
425
+ $this.r2d_1 = null;
426
+ else
427
+ $this.r2d_1 = default_0;
428
+ return $this;
429
+ }
430
+ function Field_init_$Create$(seen0, name, type, doc, default_0, serializationConstructorMarker) {
431
+ return Field_init_$Init$(seen0, name, type, doc, default_0, serializationConstructorMarker, objectCreate(protoOf(Field_0)));
432
+ }
433
+ function Companion() {
434
+ }
435
+ var Companion_instance;
436
+ function Companion_getInstance() {
437
+ return Companion_instance;
438
+ }
439
+ function Companion_0() {
440
+ }
441
+ protoOf(Companion_0).n17 = function () {
442
+ return TypeSerializer_getInstance();
443
+ };
444
+ protoOf(Companion_0).nw = function (typeParamsSerializers) {
445
+ return this.n17();
446
+ };
447
+ var Companion_instance_0;
448
+ function Companion_getInstance_0() {
449
+ return Companion_instance_0;
450
+ }
451
+ function Companion_1() {
452
+ }
453
+ var Companion_instance_1;
454
+ function Companion_getInstance_1() {
455
+ return Companion_instance_1;
456
+ }
457
+ function $serializer_0() {
458
+ $serializer_instance_0 = this;
459
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.SimpleType', this, 1);
460
+ tmp0_serialDesc.hv('value', false);
461
+ this.v2d_1 = tmp0_serialDesc;
462
+ }
463
+ protoOf($serializer_0).w2d = function (encoder, value) {
464
+ var tmp0_desc = this.v2d_1;
465
+ var tmp1_output = encoder.xn(tmp0_desc);
466
+ tmp1_output.mp(tmp0_desc, 0, value.y2c_1);
467
+ tmp1_output.yn(tmp0_desc);
468
+ };
469
+ protoOf($serializer_0).xk = function (encoder, value) {
470
+ return this.w2d(encoder, value instanceof SimpleType ? value : THROW_CCE());
471
+ };
472
+ protoOf($serializer_0).yk = function (decoder) {
473
+ var tmp0_desc = this.v2d_1;
474
+ var tmp1_flag = true;
475
+ var tmp2_index = 0;
476
+ var tmp3_bitMask0 = 0;
477
+ var tmp4_local0 = null;
478
+ var tmp5_input = decoder.xn(tmp0_desc);
479
+ if (tmp5_input.no()) {
480
+ tmp4_local0 = tmp5_input.ho(tmp0_desc, 0);
481
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
482
+ } else
483
+ while (tmp1_flag) {
484
+ tmp2_index = tmp5_input.oo(tmp0_desc);
485
+ switch (tmp2_index) {
486
+ case -1:
487
+ tmp1_flag = false;
488
+ break;
489
+ case 0:
490
+ tmp4_local0 = tmp5_input.ho(tmp0_desc, 0);
491
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
492
+ break;
493
+ default:
494
+ throw UnknownFieldException_init_$Create$(tmp2_index);
495
+ }
496
+ }
497
+ tmp5_input.yn(tmp0_desc);
498
+ return SimpleType_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
499
+ };
500
+ protoOf($serializer_0).wk = function () {
501
+ return this.v2d_1;
502
+ };
503
+ protoOf($serializer_0).aw = function () {
504
+ // Inline function 'kotlin.arrayOf' call
505
+ // Inline function 'kotlin.js.unsafeCast' call
506
+ // Inline function 'kotlin.js.asDynamic' call
507
+ return [StringSerializer_getInstance()];
508
+ };
509
+ var $serializer_instance_0;
510
+ function $serializer_getInstance_0() {
511
+ if ($serializer_instance_0 == null)
512
+ new $serializer_0();
513
+ return $serializer_instance_0;
514
+ }
515
+ function SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, $this) {
516
+ if (!(1 === (1 & seen0))) {
517
+ throwMissingFieldException(seen0, 1, $serializer_getInstance_0().v2d_1);
518
+ }
519
+ $this.y2c_1 = value;
520
+ return $this;
521
+ }
522
+ function SimpleType_init_$Create$(seen0, value, serializationConstructorMarker) {
523
+ return SimpleType_init_$Init$(seen0, value, serializationConstructorMarker, objectCreate(protoOf(SimpleType)));
524
+ }
525
+ function Companion_2() {
526
+ Companion_instance_2 = this;
527
+ var tmp = this;
528
+ // Inline function 'kotlin.arrayOf' call
529
+ // Inline function 'kotlin.js.unsafeCast' call
530
+ // Inline function 'kotlin.js.asDynamic' call
531
+ tmp.x2d_1 = [null, null, null, new ArrayListSerializer($serializer_getInstance()), null];
532
+ }
533
+ protoOf(Companion_2).n17 = function () {
534
+ return $serializer_getInstance_1();
535
+ };
536
+ var Companion_instance_2;
537
+ function Companion_getInstance_2() {
538
+ if (Companion_instance_2 == null)
539
+ new Companion_2();
540
+ return Companion_instance_2;
541
+ }
542
+ function $serializer_1() {
543
+ $serializer_instance_1 = this;
544
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.RecordType', this, 5);
545
+ tmp0_serialDesc.hv('type', false);
546
+ tmp0_serialDesc.hv('name', false);
547
+ tmp0_serialDesc.hv('namespace', true);
548
+ tmp0_serialDesc.hv('fields', false);
549
+ tmp0_serialDesc.hv('doc', true);
550
+ this.y2d_1 = tmp0_serialDesc;
551
+ }
552
+ protoOf($serializer_1).z2d = function (encoder, value) {
553
+ var tmp0_desc = this.y2d_1;
554
+ var tmp1_output = encoder.xn(tmp0_desc);
555
+ var tmp2_cached = Companion_getInstance_2().x2d_1;
556
+ tmp1_output.mp(tmp0_desc, 0, value.h2d_1);
557
+ tmp1_output.mp(tmp0_desc, 1, value.i2d_1);
558
+ if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.j2d_1 == null)) {
559
+ tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.j2d_1);
560
+ }
561
+ tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.k2d_1);
562
+ if (tmp1_output.up(tmp0_desc, 4) ? true : !(value.l2d_1 == null)) {
563
+ tmp1_output.qp(tmp0_desc, 4, StringSerializer_getInstance(), value.l2d_1);
564
+ }
565
+ tmp1_output.yn(tmp0_desc);
566
+ };
567
+ protoOf($serializer_1).xk = function (encoder, value) {
568
+ return this.z2d(encoder, value instanceof RecordType ? value : THROW_CCE());
569
+ };
570
+ protoOf($serializer_1).yk = function (decoder) {
571
+ var tmp0_desc = this.y2d_1;
572
+ var tmp1_flag = true;
573
+ var tmp2_index = 0;
574
+ var tmp3_bitMask0 = 0;
575
+ var tmp4_local0 = null;
576
+ var tmp5_local1 = null;
577
+ var tmp6_local2 = null;
578
+ var tmp7_local3 = null;
579
+ var tmp8_local4 = null;
580
+ var tmp9_input = decoder.xn(tmp0_desc);
581
+ var tmp10_cached = Companion_getInstance_2().x2d_1;
582
+ if (tmp9_input.no()) {
583
+ tmp4_local0 = tmp9_input.ho(tmp0_desc, 0);
584
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
585
+ tmp5_local1 = tmp9_input.ho(tmp0_desc, 1);
586
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
587
+ tmp6_local2 = tmp9_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
588
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
589
+ tmp7_local3 = tmp9_input.jo(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
590
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
591
+ tmp8_local4 = tmp9_input.lo(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
592
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
593
+ } else
594
+ while (tmp1_flag) {
595
+ tmp2_index = tmp9_input.oo(tmp0_desc);
596
+ switch (tmp2_index) {
597
+ case -1:
598
+ tmp1_flag = false;
599
+ break;
600
+ case 0:
601
+ tmp4_local0 = tmp9_input.ho(tmp0_desc, 0);
602
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
603
+ break;
604
+ case 1:
605
+ tmp5_local1 = tmp9_input.ho(tmp0_desc, 1);
606
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
607
+ break;
608
+ case 2:
609
+ tmp6_local2 = tmp9_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
610
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
611
+ break;
612
+ case 3:
613
+ tmp7_local3 = tmp9_input.jo(tmp0_desc, 3, tmp10_cached[3], tmp7_local3);
614
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
615
+ break;
616
+ case 4:
617
+ tmp8_local4 = tmp9_input.lo(tmp0_desc, 4, StringSerializer_getInstance(), tmp8_local4);
618
+ tmp3_bitMask0 = tmp3_bitMask0 | 16;
619
+ break;
620
+ default:
621
+ throw UnknownFieldException_init_$Create$(tmp2_index);
622
+ }
623
+ }
624
+ tmp9_input.yn(tmp0_desc);
625
+ return RecordType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, null);
626
+ };
627
+ protoOf($serializer_1).wk = function () {
628
+ return this.y2d_1;
629
+ };
630
+ protoOf($serializer_1).aw = function () {
631
+ var tmp0_cached = Companion_getInstance_2().x2d_1;
632
+ // Inline function 'kotlin.arrayOf' call
633
+ // Inline function 'kotlin.js.unsafeCast' call
634
+ // Inline function 'kotlin.js.asDynamic' call
635
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3], get_nullable(StringSerializer_getInstance())];
636
+ };
637
+ var $serializer_instance_1;
638
+ function $serializer_getInstance_1() {
639
+ if ($serializer_instance_1 == null)
640
+ new $serializer_1();
641
+ return $serializer_instance_1;
642
+ }
643
+ function RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, $this) {
644
+ if (!(11 === (11 & seen0))) {
645
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_1().y2d_1);
646
+ }
647
+ $this.h2d_1 = type;
648
+ $this.i2d_1 = name;
649
+ if (0 === (seen0 & 4))
650
+ $this.j2d_1 = null;
651
+ else
652
+ $this.j2d_1 = namespace;
653
+ $this.k2d_1 = fields;
654
+ if (0 === (seen0 & 16))
655
+ $this.l2d_1 = null;
656
+ else
657
+ $this.l2d_1 = doc;
658
+ return $this;
659
+ }
660
+ function RecordType_init_$Create$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker) {
661
+ return RecordType_init_$Init$(seen0, type, name, namespace, fields, doc, serializationConstructorMarker, objectCreate(protoOf(RecordType)));
662
+ }
663
+ function Companion_3() {
664
+ }
665
+ protoOf(Companion_3).n17 = function () {
666
+ return $serializer_getInstance_2();
667
+ };
668
+ var Companion_instance_3;
669
+ function Companion_getInstance_3() {
670
+ return Companion_instance_3;
671
+ }
672
+ function $serializer_2() {
673
+ $serializer_instance_2 = this;
674
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.ArrayType', this, 2);
675
+ tmp0_serialDesc.hv('type', false);
676
+ tmp0_serialDesc.hv('items', false);
677
+ this.a2e_1 = tmp0_serialDesc;
678
+ }
679
+ protoOf($serializer_2).b2e = function (encoder, value) {
680
+ var tmp0_desc = this.a2e_1;
681
+ var tmp1_output = encoder.xn(tmp0_desc);
682
+ tmp1_output.mp(tmp0_desc, 0, value.m2d_1);
683
+ tmp1_output.op(tmp0_desc, 1, TypeSerializer_getInstance(), value.n2d_1);
684
+ tmp1_output.yn(tmp0_desc);
685
+ };
686
+ protoOf($serializer_2).xk = function (encoder, value) {
687
+ return this.b2e(encoder, value instanceof ArrayType ? value : THROW_CCE());
688
+ };
689
+ protoOf($serializer_2).yk = function (decoder) {
690
+ var tmp0_desc = this.a2e_1;
691
+ var tmp1_flag = true;
692
+ var tmp2_index = 0;
693
+ var tmp3_bitMask0 = 0;
694
+ var tmp4_local0 = null;
695
+ var tmp5_local1 = null;
696
+ var tmp6_input = decoder.xn(tmp0_desc);
697
+ if (tmp6_input.no()) {
698
+ tmp4_local0 = tmp6_input.ho(tmp0_desc, 0);
699
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
700
+ tmp5_local1 = tmp6_input.jo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
701
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
702
+ } else
703
+ while (tmp1_flag) {
704
+ tmp2_index = tmp6_input.oo(tmp0_desc);
705
+ switch (tmp2_index) {
706
+ case -1:
707
+ tmp1_flag = false;
708
+ break;
709
+ case 0:
710
+ tmp4_local0 = tmp6_input.ho(tmp0_desc, 0);
711
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
712
+ break;
713
+ case 1:
714
+ tmp5_local1 = tmp6_input.jo(tmp0_desc, 1, TypeSerializer_getInstance(), tmp5_local1);
715
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
716
+ break;
717
+ default:
718
+ throw UnknownFieldException_init_$Create$(tmp2_index);
719
+ }
720
+ }
721
+ tmp6_input.yn(tmp0_desc);
722
+ return ArrayType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
723
+ };
724
+ protoOf($serializer_2).wk = function () {
725
+ return this.a2e_1;
726
+ };
727
+ protoOf($serializer_2).aw = function () {
728
+ // Inline function 'kotlin.arrayOf' call
729
+ // Inline function 'kotlin.js.unsafeCast' call
730
+ // Inline function 'kotlin.js.asDynamic' call
731
+ return [StringSerializer_getInstance(), TypeSerializer_getInstance()];
732
+ };
733
+ var $serializer_instance_2;
734
+ function $serializer_getInstance_2() {
735
+ if ($serializer_instance_2 == null)
736
+ new $serializer_2();
737
+ return $serializer_instance_2;
738
+ }
739
+ function ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, $this) {
740
+ if (!(3 === (3 & seen0))) {
741
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_2().a2e_1);
742
+ }
743
+ $this.m2d_1 = type;
744
+ $this.n2d_1 = items;
745
+ return $this;
746
+ }
747
+ function ArrayType_init_$Create$(seen0, type, items, serializationConstructorMarker) {
748
+ return ArrayType_init_$Init$(seen0, type, items, serializationConstructorMarker, objectCreate(protoOf(ArrayType)));
749
+ }
750
+ function Companion_4() {
751
+ Companion_instance_4 = this;
752
+ var tmp = this;
753
+ // Inline function 'kotlin.arrayOf' call
754
+ // Inline function 'kotlin.js.unsafeCast' call
755
+ // Inline function 'kotlin.js.asDynamic' call
756
+ tmp.c2e_1 = [null, null, null, new ArrayListSerializer(StringSerializer_getInstance())];
757
+ }
758
+ protoOf(Companion_4).n17 = function () {
759
+ return $serializer_getInstance_3();
760
+ };
761
+ var Companion_instance_4;
762
+ function Companion_getInstance_4() {
763
+ if (Companion_instance_4 == null)
764
+ new Companion_4();
765
+ return Companion_instance_4;
766
+ }
767
+ function $serializer_3() {
768
+ $serializer_instance_3 = this;
769
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.EnumType', this, 4);
770
+ tmp0_serialDesc.hv('type', false);
771
+ tmp0_serialDesc.hv('name', false);
772
+ tmp0_serialDesc.hv('doc', true);
773
+ tmp0_serialDesc.hv('symbols', false);
774
+ this.d2e_1 = tmp0_serialDesc;
775
+ }
776
+ protoOf($serializer_3).e2e = function (encoder, value) {
777
+ var tmp0_desc = this.d2e_1;
778
+ var tmp1_output = encoder.xn(tmp0_desc);
779
+ var tmp2_cached = Companion_getInstance_4().c2e_1;
780
+ tmp1_output.mp(tmp0_desc, 0, value.d2d_1);
781
+ tmp1_output.mp(tmp0_desc, 1, value.e2d_1);
782
+ if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.f2d_1 == null)) {
783
+ tmp1_output.qp(tmp0_desc, 2, StringSerializer_getInstance(), value.f2d_1);
784
+ }
785
+ tmp1_output.op(tmp0_desc, 3, tmp2_cached[3], value.g2d_1);
786
+ tmp1_output.yn(tmp0_desc);
787
+ };
788
+ protoOf($serializer_3).xk = function (encoder, value) {
789
+ return this.e2e(encoder, value instanceof EnumType ? value : THROW_CCE());
790
+ };
791
+ protoOf($serializer_3).yk = function (decoder) {
792
+ var tmp0_desc = this.d2e_1;
793
+ var tmp1_flag = true;
794
+ var tmp2_index = 0;
795
+ var tmp3_bitMask0 = 0;
796
+ var tmp4_local0 = null;
797
+ var tmp5_local1 = null;
798
+ var tmp6_local2 = null;
799
+ var tmp7_local3 = null;
800
+ var tmp8_input = decoder.xn(tmp0_desc);
801
+ var tmp9_cached = Companion_getInstance_4().c2e_1;
802
+ if (tmp8_input.no()) {
803
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
804
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
805
+ tmp5_local1 = tmp8_input.ho(tmp0_desc, 1);
806
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
807
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
808
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
809
+ tmp7_local3 = tmp8_input.jo(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
810
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
811
+ } else
812
+ while (tmp1_flag) {
813
+ tmp2_index = tmp8_input.oo(tmp0_desc);
814
+ switch (tmp2_index) {
815
+ case -1:
816
+ tmp1_flag = false;
817
+ break;
818
+ case 0:
819
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
820
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
821
+ break;
822
+ case 1:
823
+ tmp5_local1 = tmp8_input.ho(tmp0_desc, 1);
824
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
825
+ break;
826
+ case 2:
827
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
828
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
829
+ break;
830
+ case 3:
831
+ tmp7_local3 = tmp8_input.jo(tmp0_desc, 3, tmp9_cached[3], tmp7_local3);
832
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
833
+ break;
834
+ default:
835
+ throw UnknownFieldException_init_$Create$(tmp2_index);
836
+ }
837
+ }
838
+ tmp8_input.yn(tmp0_desc);
839
+ return EnumType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
840
+ };
841
+ protoOf($serializer_3).wk = function () {
842
+ return this.d2e_1;
843
+ };
844
+ protoOf($serializer_3).aw = function () {
845
+ var tmp0_cached = Companion_getInstance_4().c2e_1;
846
+ // Inline function 'kotlin.arrayOf' call
847
+ // Inline function 'kotlin.js.unsafeCast' call
848
+ // Inline function 'kotlin.js.asDynamic' call
849
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), tmp0_cached[3]];
850
+ };
851
+ var $serializer_instance_3;
852
+ function $serializer_getInstance_3() {
853
+ if ($serializer_instance_3 == null)
854
+ new $serializer_3();
855
+ return $serializer_instance_3;
856
+ }
857
+ function EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, $this) {
858
+ if (!(11 === (11 & seen0))) {
859
+ throwMissingFieldException(seen0, 11, $serializer_getInstance_3().d2e_1);
860
+ }
861
+ $this.d2d_1 = type;
862
+ $this.e2d_1 = name;
863
+ if (0 === (seen0 & 4))
864
+ $this.f2d_1 = null;
865
+ else
866
+ $this.f2d_1 = doc;
867
+ $this.g2d_1 = symbols;
868
+ return $this;
869
+ }
870
+ function EnumType_init_$Create$(seen0, type, name, doc, symbols, serializationConstructorMarker) {
871
+ return EnumType_init_$Init$(seen0, type, name, doc, symbols, serializationConstructorMarker, objectCreate(protoOf(EnumType)));
872
+ }
873
+ function Companion_5() {
874
+ }
875
+ protoOf(Companion_5).n17 = function () {
876
+ return $serializer_getInstance_4();
877
+ };
878
+ var Companion_instance_5;
879
+ function Companion_getInstance_5() {
880
+ return Companion_instance_5;
881
+ }
882
+ function $serializer_4() {
883
+ $serializer_instance_4 = this;
884
+ var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('community.flock.wirespec.converter.avro.AvroModel.LogicalType', this, 4);
885
+ tmp0_serialDesc.hv('type', false);
886
+ tmp0_serialDesc.hv('logicalType', false);
887
+ tmp0_serialDesc.hv('precision', true);
888
+ tmp0_serialDesc.hv('scale', true);
889
+ this.f2e_1 = tmp0_serialDesc;
890
+ }
891
+ protoOf($serializer_4).g2e = function (encoder, value) {
892
+ var tmp0_desc = this.f2e_1;
893
+ var tmp1_output = encoder.xn(tmp0_desc);
894
+ tmp1_output.mp(tmp0_desc, 0, value.z2c_1);
895
+ tmp1_output.mp(tmp0_desc, 1, value.a2d_1);
896
+ if (tmp1_output.up(tmp0_desc, 2) ? true : !(value.b2d_1 == null)) {
897
+ tmp1_output.qp(tmp0_desc, 2, IntSerializer_getInstance(), value.b2d_1);
898
+ }
899
+ if (tmp1_output.up(tmp0_desc, 3) ? true : !(value.c2d_1 == null)) {
900
+ tmp1_output.qp(tmp0_desc, 3, IntSerializer_getInstance(), value.c2d_1);
901
+ }
902
+ tmp1_output.yn(tmp0_desc);
903
+ };
904
+ protoOf($serializer_4).xk = function (encoder, value) {
905
+ return this.g2e(encoder, value instanceof LogicalType ? value : THROW_CCE());
906
+ };
907
+ protoOf($serializer_4).yk = function (decoder) {
908
+ var tmp0_desc = this.f2e_1;
909
+ var tmp1_flag = true;
910
+ var tmp2_index = 0;
911
+ var tmp3_bitMask0 = 0;
912
+ var tmp4_local0 = null;
913
+ var tmp5_local1 = null;
914
+ var tmp6_local2 = null;
915
+ var tmp7_local3 = null;
916
+ var tmp8_input = decoder.xn(tmp0_desc);
917
+ if (tmp8_input.no()) {
918
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
919
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
920
+ tmp5_local1 = tmp8_input.ho(tmp0_desc, 1);
921
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
922
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
923
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
924
+ tmp7_local3 = tmp8_input.lo(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
925
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
926
+ } else
927
+ while (tmp1_flag) {
928
+ tmp2_index = tmp8_input.oo(tmp0_desc);
929
+ switch (tmp2_index) {
930
+ case -1:
931
+ tmp1_flag = false;
932
+ break;
933
+ case 0:
934
+ tmp4_local0 = tmp8_input.ho(tmp0_desc, 0);
935
+ tmp3_bitMask0 = tmp3_bitMask0 | 1;
936
+ break;
937
+ case 1:
938
+ tmp5_local1 = tmp8_input.ho(tmp0_desc, 1);
939
+ tmp3_bitMask0 = tmp3_bitMask0 | 2;
940
+ break;
941
+ case 2:
942
+ tmp6_local2 = tmp8_input.lo(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
943
+ tmp3_bitMask0 = tmp3_bitMask0 | 4;
944
+ break;
945
+ case 3:
946
+ tmp7_local3 = tmp8_input.lo(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
947
+ tmp3_bitMask0 = tmp3_bitMask0 | 8;
948
+ break;
949
+ default:
950
+ throw UnknownFieldException_init_$Create$(tmp2_index);
951
+ }
952
+ }
953
+ tmp8_input.yn(tmp0_desc);
954
+ return LogicalType_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
955
+ };
956
+ protoOf($serializer_4).wk = function () {
957
+ return this.f2e_1;
958
+ };
959
+ protoOf($serializer_4).aw = function () {
960
+ // Inline function 'kotlin.arrayOf' call
961
+ // Inline function 'kotlin.js.unsafeCast' call
962
+ // Inline function 'kotlin.js.asDynamic' call
963
+ return [StringSerializer_getInstance(), StringSerializer_getInstance(), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
964
+ };
965
+ var $serializer_instance_4;
966
+ function $serializer_getInstance_4() {
967
+ if ($serializer_instance_4 == null)
968
+ new $serializer_4();
969
+ return $serializer_instance_4;
970
+ }
971
+ function LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, $this) {
972
+ if (!(3 === (3 & seen0))) {
973
+ throwMissingFieldException(seen0, 3, $serializer_getInstance_4().f2e_1);
974
+ }
975
+ $this.z2c_1 = type;
976
+ $this.a2d_1 = logicalType;
977
+ if (0 === (seen0 & 4))
978
+ $this.b2d_1 = null;
979
+ else
980
+ $this.b2d_1 = precision;
981
+ if (0 === (seen0 & 8))
982
+ $this.c2d_1 = null;
983
+ else
984
+ $this.c2d_1 = scale;
985
+ return $this;
986
+ }
987
+ function LogicalType_init_$Create$(seen0, type, logicalType, precision, scale, serializationConstructorMarker) {
988
+ return LogicalType_init_$Init$(seen0, type, logicalType, precision, scale, serializationConstructorMarker, objectCreate(protoOf(LogicalType)));
989
+ }
990
+ function Field_0() {
991
+ }
992
+ protoOf(Field_0).toString = function () {
993
+ return 'Field(name=' + this.o2d_1 + ', type=' + this.p2d_1.toString() + ', doc=' + this.q2d_1 + ', default=' + this.r2d_1 + ')';
994
+ };
995
+ protoOf(Field_0).hashCode = function () {
996
+ var result = getStringHashCode(this.o2d_1);
997
+ result = imul(result, 31) + this.p2d_1.hashCode() | 0;
998
+ result = imul(result, 31) + (this.q2d_1 == null ? 0 : getStringHashCode(this.q2d_1)) | 0;
999
+ result = imul(result, 31) + (this.r2d_1 == null ? 0 : getStringHashCode(this.r2d_1)) | 0;
1000
+ return result;
1001
+ };
1002
+ protoOf(Field_0).equals = function (other) {
1003
+ if (this === other)
1004
+ return true;
1005
+ if (!(other instanceof Field_0))
1006
+ return false;
1007
+ var tmp0_other_with_cast = other instanceof Field_0 ? other : THROW_CCE();
1008
+ if (!(this.o2d_1 === tmp0_other_with_cast.o2d_1))
1009
+ return false;
1010
+ if (!this.p2d_1.equals(tmp0_other_with_cast.p2d_1))
1011
+ return false;
1012
+ if (!(this.q2d_1 == tmp0_other_with_cast.q2d_1))
1013
+ return false;
1014
+ if (!(this.r2d_1 == tmp0_other_with_cast.r2d_1))
1015
+ return false;
1016
+ return true;
1017
+ };
1018
+ function TypeList(type) {
1019
+ AbstractList.call(this);
1020
+ this.h2e_1 = toList(type);
1021
+ this.i2e_1 = this.h2e_1.j();
1022
+ }
1023
+ protoOf(TypeList).j = function () {
1024
+ return this.i2e_1;
1025
+ };
1026
+ protoOf(TypeList).k = function (index) {
1027
+ return this.h2e_1.k(index);
1028
+ };
1029
+ function Type_0() {
1030
+ }
1031
+ function SimpleType(value) {
1032
+ this.y2c_1 = value;
1033
+ }
1034
+ protoOf(SimpleType).toString = function () {
1035
+ return 'SimpleType(value=' + this.y2c_1 + ')';
1036
+ };
1037
+ protoOf(SimpleType).hashCode = function () {
1038
+ return getStringHashCode(this.y2c_1);
1039
+ };
1040
+ protoOf(SimpleType).equals = function (other) {
1041
+ if (this === other)
1042
+ return true;
1043
+ if (!(other instanceof SimpleType))
1044
+ return false;
1045
+ var tmp0_other_with_cast = other instanceof SimpleType ? other : THROW_CCE();
1046
+ if (!(this.y2c_1 === tmp0_other_with_cast.y2c_1))
1047
+ return false;
1048
+ return true;
1049
+ };
1050
+ function RecordType() {
1051
+ }
1052
+ protoOf(RecordType).toString = function () {
1053
+ return 'RecordType(type=' + this.h2d_1 + ', name=' + this.i2d_1 + ', namespace=' + this.j2d_1 + ', fields=' + toString(this.k2d_1) + ', doc=' + this.l2d_1 + ')';
1054
+ };
1055
+ protoOf(RecordType).hashCode = function () {
1056
+ var result = getStringHashCode(this.h2d_1);
1057
+ result = imul(result, 31) + getStringHashCode(this.i2d_1) | 0;
1058
+ result = imul(result, 31) + (this.j2d_1 == null ? 0 : getStringHashCode(this.j2d_1)) | 0;
1059
+ result = imul(result, 31) + hashCode(this.k2d_1) | 0;
1060
+ result = imul(result, 31) + (this.l2d_1 == null ? 0 : getStringHashCode(this.l2d_1)) | 0;
1061
+ return result;
1062
+ };
1063
+ protoOf(RecordType).equals = function (other) {
1064
+ if (this === other)
1065
+ return true;
1066
+ if (!(other instanceof RecordType))
1067
+ return false;
1068
+ var tmp0_other_with_cast = other instanceof RecordType ? other : THROW_CCE();
1069
+ if (!(this.h2d_1 === tmp0_other_with_cast.h2d_1))
1070
+ return false;
1071
+ if (!(this.i2d_1 === tmp0_other_with_cast.i2d_1))
1072
+ return false;
1073
+ if (!(this.j2d_1 == tmp0_other_with_cast.j2d_1))
1074
+ return false;
1075
+ if (!equals(this.k2d_1, tmp0_other_with_cast.k2d_1))
1076
+ return false;
1077
+ if (!(this.l2d_1 == tmp0_other_with_cast.l2d_1))
1078
+ return false;
1079
+ return true;
1080
+ };
1081
+ function ArrayType() {
1082
+ }
1083
+ protoOf(ArrayType).toString = function () {
1084
+ return 'ArrayType(type=' + this.m2d_1 + ', items=' + toString(this.n2d_1) + ')';
1085
+ };
1086
+ protoOf(ArrayType).hashCode = function () {
1087
+ var result = getStringHashCode(this.m2d_1);
1088
+ result = imul(result, 31) + hashCode(this.n2d_1) | 0;
1089
+ return result;
1090
+ };
1091
+ protoOf(ArrayType).equals = function (other) {
1092
+ if (this === other)
1093
+ return true;
1094
+ if (!(other instanceof ArrayType))
1095
+ return false;
1096
+ var tmp0_other_with_cast = other instanceof ArrayType ? other : THROW_CCE();
1097
+ if (!(this.m2d_1 === tmp0_other_with_cast.m2d_1))
1098
+ return false;
1099
+ if (!equals(this.n2d_1, tmp0_other_with_cast.n2d_1))
1100
+ return false;
1101
+ return true;
1102
+ };
1103
+ function EnumType() {
1104
+ }
1105
+ protoOf(EnumType).toString = function () {
1106
+ return 'EnumType(type=' + this.d2d_1 + ', name=' + this.e2d_1 + ', doc=' + this.f2d_1 + ', symbols=' + toString(this.g2d_1) + ')';
1107
+ };
1108
+ protoOf(EnumType).hashCode = function () {
1109
+ var result = getStringHashCode(this.d2d_1);
1110
+ result = imul(result, 31) + getStringHashCode(this.e2d_1) | 0;
1111
+ result = imul(result, 31) + (this.f2d_1 == null ? 0 : getStringHashCode(this.f2d_1)) | 0;
1112
+ result = imul(result, 31) + hashCode(this.g2d_1) | 0;
1113
+ return result;
1114
+ };
1115
+ protoOf(EnumType).equals = function (other) {
1116
+ if (this === other)
1117
+ return true;
1118
+ if (!(other instanceof EnumType))
1119
+ return false;
1120
+ var tmp0_other_with_cast = other instanceof EnumType ? other : THROW_CCE();
1121
+ if (!(this.d2d_1 === tmp0_other_with_cast.d2d_1))
1122
+ return false;
1123
+ if (!(this.e2d_1 === tmp0_other_with_cast.e2d_1))
1124
+ return false;
1125
+ if (!(this.f2d_1 == tmp0_other_with_cast.f2d_1))
1126
+ return false;
1127
+ if (!equals(this.g2d_1, tmp0_other_with_cast.g2d_1))
1128
+ return false;
1129
+ return true;
1130
+ };
1131
+ function LogicalType() {
1132
+ }
1133
+ protoOf(LogicalType).toString = function () {
1134
+ return 'LogicalType(type=' + this.z2c_1 + ', logicalType=' + this.a2d_1 + ', precision=' + this.b2d_1 + ', scale=' + this.c2d_1 + ')';
1135
+ };
1136
+ protoOf(LogicalType).hashCode = function () {
1137
+ var result = getStringHashCode(this.z2c_1);
1138
+ result = imul(result, 31) + getStringHashCode(this.a2d_1) | 0;
1139
+ result = imul(result, 31) + (this.b2d_1 == null ? 0 : this.b2d_1) | 0;
1140
+ result = imul(result, 31) + (this.c2d_1 == null ? 0 : this.c2d_1) | 0;
1141
+ return result;
1142
+ };
1143
+ protoOf(LogicalType).equals = function (other) {
1144
+ if (this === other)
1145
+ return true;
1146
+ if (!(other instanceof LogicalType))
1147
+ return false;
1148
+ var tmp0_other_with_cast = other instanceof LogicalType ? other : THROW_CCE();
1149
+ if (!(this.z2c_1 === tmp0_other_with_cast.z2c_1))
1150
+ return false;
1151
+ if (!(this.a2d_1 === tmp0_other_with_cast.a2d_1))
1152
+ return false;
1153
+ if (!(this.b2d_1 == tmp0_other_with_cast.b2d_1))
1154
+ return false;
1155
+ if (!(this.c2d_1 == tmp0_other_with_cast.c2d_1))
1156
+ return false;
1157
+ return true;
1158
+ };
1159
+ function TypeListSerializer() {
1160
+ TypeListSerializer_instance = this;
1161
+ this.j2e_1 = buildSerialDescriptor('TypeListSerializer', SEALED_getInstance(), []);
1162
+ }
1163
+ protoOf(TypeListSerializer).wk = function () {
1164
+ return this.j2e_1;
1165
+ };
1166
+ protoOf(TypeListSerializer).k2e = function (encoder, value) {
1167
+ if (value.i2e_1 > 1) {
1168
+ encoder.pp(ListSerializer(Companion_instance_0.n17()), value);
1169
+ } else {
1170
+ encoder.pp(Companion_instance_0.n17(), first(value));
1171
+ }
1172
+ };
1173
+ protoOf(TypeListSerializer).xk = function (encoder, value) {
1174
+ return this.k2e(encoder, value instanceof TypeList ? value : THROW_CCE());
1175
+ };
1176
+ protoOf(TypeListSerializer).yk = function (decoder) {
1177
+ var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1178
+ var tmp;
1179
+ if (tmp0_elvis_lhs == null) {
1180
+ throw SerializationException_init_$Create$('This class can be loaded only by Json');
1181
+ } else {
1182
+ tmp = tmp0_elvis_lhs;
1183
+ }
1184
+ var input = tmp;
1185
+ var element = input.e17();
1186
+ var tmp_0;
1187
+ if (element instanceof JsonPrimitive) {
1188
+ tmp_0 = new TypeList([input.d17().d15(Companion_instance_0.n17(), element)]);
1189
+ } else {
1190
+ if (element instanceof JsonArray) {
1191
+ // Inline function 'kotlin.collections.toTypedArray' call
1192
+ // Inline function 'kotlin.collections.map' call
1193
+ // Inline function 'kotlin.collections.mapTo' call
1194
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(element, 10));
1195
+ var tmp0_iterator = element.g();
1196
+ while (tmp0_iterator.h()) {
1197
+ var item = tmp0_iterator.i();
1198
+ // Inline function 'community.flock.wirespec.converter.avro.TypeListSerializer.deserialize.<anonymous>' call
1199
+ var tmp$ret$0 = input.d17().d15(Companion_instance_0.n17(), item);
1200
+ destination.e(tmp$ret$0);
1201
+ }
1202
+ var tmp$ret$3 = copyToArray(destination);
1203
+ tmp_0 = new TypeList(tmp$ret$3.slice());
1204
+ } else {
1205
+ if (element instanceof JsonObject) {
1206
+ tmp_0 = new TypeList([input.d17().d15(Companion_instance_0.n17(), element)]);
1207
+ } else {
1208
+ noWhenBranchMatchedException();
1209
+ }
1210
+ }
1211
+ }
1212
+ return tmp_0;
1213
+ };
1214
+ var TypeListSerializer_instance;
1215
+ function TypeListSerializer_getInstance() {
1216
+ if (TypeListSerializer_instance == null)
1217
+ new TypeListSerializer();
1218
+ return TypeListSerializer_instance;
1219
+ }
1220
+ function TypeSerializer() {
1221
+ TypeSerializer_instance = this;
1222
+ this.l2e_1 = buildSerialDescriptor('TypeSerializer', SEALED_getInstance(), []);
1223
+ }
1224
+ protoOf(TypeSerializer).wk = function () {
1225
+ return this.l2e_1;
1226
+ };
1227
+ protoOf(TypeSerializer).m2e = function (encoder, value) {
1228
+ if (value instanceof SimpleType) {
1229
+ encoder.pp(serializer(StringCompanionObject_instance), value.y2c_1);
1230
+ } else {
1231
+ if (value instanceof RecordType) {
1232
+ encoder.pp(Companion_getInstance_2().n17(), value);
1233
+ } else {
1234
+ if (value instanceof ArrayType) {
1235
+ encoder.pp(Companion_instance_3.n17(), value);
1236
+ } else {
1237
+ if (value instanceof EnumType) {
1238
+ encoder.pp(Companion_getInstance_4().n17(), value);
1239
+ } else {
1240
+ if (value instanceof LogicalType) {
1241
+ // Inline function 'kotlin.TODO' call
1242
+ throw new NotImplementedError();
1243
+ } else {
1244
+ noWhenBranchMatchedException();
1245
+ }
1246
+ }
1247
+ }
1248
+ }
1249
+ }
1250
+ };
1251
+ protoOf(TypeSerializer).xk = function (encoder, value) {
1252
+ return this.m2e(encoder, (!(value == null) ? isInterface(value, Type_0) : false) ? value : THROW_CCE());
1253
+ };
1254
+ protoOf(TypeSerializer).yk = function (decoder) {
1255
+ var tmp0_elvis_lhs = isInterface(decoder, JsonDecoder) ? decoder : null;
1256
+ var tmp;
1257
+ if (tmp0_elvis_lhs == null) {
1258
+ throw SerializationException_init_$Create$('This class can be loaded only by Json');
1259
+ } else {
1260
+ tmp = tmp0_elvis_lhs;
1261
+ }
1262
+ var input = tmp;
1263
+ var element = input.e17();
1264
+ var tmp_0;
1265
+ if (element instanceof JsonObject) {
1266
+ var tmp_1;
1267
+ if (element.h17('items')) {
1268
+ tmp_1 = input.d17().d15(Companion_instance_3.n17(), element);
1269
+ } else if (element.h17('fields')) {
1270
+ tmp_1 = input.d17().d15(Companion_getInstance_2().n17(), element);
1271
+ } else if (element.h17('symbols')) {
1272
+ tmp_1 = input.d17().d15(Companion_getInstance_4().n17(), element);
1273
+ } else if (element.h17('logicalType')) {
1274
+ tmp_1 = input.d17().d15(Companion_instance_5.n17(), element);
1275
+ } else {
1276
+ var reason = 'Unknown object type: ' + element.toString();
1277
+ throw new NotImplementedError('An operation is not implemented: ' + reason);
1278
+ }
1279
+ tmp_0 = tmp_1;
1280
+ } else {
1281
+ if (element instanceof JsonPrimitive) {
1282
+ tmp_0 = new SimpleType(element.f17());
1283
+ } else {
1284
+ if (element instanceof JsonArray) {
1285
+ var reason_0 = 'Type can never be an array';
1286
+ throw new NotImplementedError('An operation is not implemented: ' + reason_0);
1287
+ } else {
1288
+ noWhenBranchMatchedException();
1289
+ }
1290
+ }
1291
+ }
1292
+ return tmp_0;
1293
+ };
1294
+ var TypeSerializer_instance;
1295
+ function TypeSerializer_getInstance() {
1296
+ if (TypeSerializer_instance == null)
1297
+ new TypeSerializer();
1298
+ return TypeSerializer_instance;
1299
+ }
1300
+ function AvroParser$parse$lambda($this$Json) {
1301
+ $this$Json.v15_1 = true;
1302
+ $this$Json.w15_1 = true;
1303
+ return Unit_instance;
1304
+ }
1305
+ function AvroParser() {
1306
+ }
1307
+ protoOf(AvroParser).e2b = function (schemaContent, strict) {
1308
+ var json = Json(VOID, AvroParser$parse$lambda);
1309
+ // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
1310
+ // Inline function 'kotlinx.serialization.serializer' call
1311
+ var this_0 = json.mo();
1312
+ // Inline function 'kotlinx.serialization.internal.cast' call
1313
+ var this_1 = serializer_0(this_0, createKType(getKClass(Type_0), arrayOf([]), false));
1314
+ var tmp$ret$1 = isInterface(this_1, KSerializer) ? this_1 : THROW_CCE();
1315
+ var avro = json.c15(tmp$ret$1, schemaContent);
1316
+ var tmp = AvroConverter_getInstance().s2d(avro);
1317
+ var tmp_0;
1318
+ if (avro instanceof RecordType) {
1319
+ tmp_0 = new Channel(null, new DefinitionIdentifier(avro.i2d_1), false, new Custom(avro.i2d_1, false, false));
1320
+ } else {
1321
+ if (avro instanceof ArrayType) {
1322
+ throw new NotImplementedError();
1323
+ } else {
1324
+ if (avro instanceof EnumType) {
1325
+ throw new NotImplementedError();
1326
+ } else {
1327
+ if (avro instanceof SimpleType) {
1328
+ throw new NotImplementedError();
1329
+ } else {
1330
+ if (avro instanceof LogicalType) {
1331
+ throw new NotImplementedError();
1332
+ } else {
1333
+ noWhenBranchMatchedException();
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ }
1339
+ return plus_0(tmp, tmp_0);
1340
+ };
1341
+ protoOf(AvroParser).n2e = function (schemaContent, strict, $super) {
1342
+ strict = strict === VOID ? true : strict;
1343
+ return $super === VOID ? this.e2b(schemaContent, strict) : $super.e2b.call(this, schemaContent, strict);
1344
+ };
1345
+ var AvroParser_instance;
1346
+ function AvroParser_getInstance() {
1347
+ return AvroParser_instance;
1348
+ }
1349
+ //region block: post-declaration
1350
+ protoOf($serializer).bw = typeParametersSerializers;
1351
+ protoOf($serializer_0).bw = typeParametersSerializers;
1352
+ protoOf($serializer_1).bw = typeParametersSerializers;
1353
+ protoOf($serializer_2).bw = typeParametersSerializers;
1354
+ protoOf($serializer_3).bw = typeParametersSerializers;
1355
+ protoOf($serializer_4).bw = typeParametersSerializers;
1356
+ //endregion
1357
+ //region block: init
1358
+ Companion_instance = new Companion();
1359
+ Companion_instance_0 = new Companion_0();
1360
+ Companion_instance_1 = new Companion_1();
1361
+ Companion_instance_3 = new Companion_3();
1362
+ Companion_instance_5 = new Companion_5();
1363
+ AvroParser_instance = new AvroParser();
1364
+ //endregion
1365
+ //region block: exports
1366
+ _.$_$ = _.$_$ || {};
1367
+ _.$_$.a = AvroParser_instance;
1368
+ //endregion
1369
+ return _;
1370
+ }));
1371
+
1372
+ //# sourceMappingURL=wirespec-src-converter-avro.js.map