@flock/wirespec 0.22.5 → 0.22.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/arrow-arrow-core.mjs +8 -8
  2. package/clikt-clikt-mordant.mjs +79 -79
  3. package/clikt-clikt.mjs +1364 -1363
  4. package/clikt-clikt.mjs.map +1 -1
  5. package/colormath-root-colormath.mjs +436 -436
  6. package/kotlin-kotlin-stdlib.mjs +192 -191
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10204 -10204
  9. package/kotlin-rgxgen.mjs +1771 -1771
  10. package/kotlinx-io-kotlinx-io-core.mjs +425 -425
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1824 -1824
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1509 -1509
  13. package/mordant-mordant.mjs +1246 -1246
  14. package/package.json +1 -1
  15. package/wirespec-src-compiler-core.mjs +5661 -5333
  16. package/wirespec-src-compiler-core.mjs.map +1 -1
  17. package/wirespec-src-compiler-emitters-java.mjs +171 -187
  18. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-kotlin.mjs +138 -149
  20. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-python.mjs +147 -160
  22. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-rust.mjs +356 -370
  24. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-scala.mjs +165 -175
  26. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  27. package/wirespec-src-compiler-emitters-typescript.mjs +187 -313
  28. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  29. package/wirespec-src-compiler-emitters-wirespec.mjs +79 -79
  30. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  31. package/wirespec-src-compiler-lib.mjs +194 -194
  32. package/wirespec-src-converter-asyncapi.mjs +545 -545
  33. package/wirespec-src-converter-avro.mjs +544 -544
  34. package/wirespec-src-converter-common.mjs +11 -11
  35. package/wirespec-src-converter-graphql.mjs +942 -942
  36. package/wirespec-src-converter-openapi.mjs +453 -453
  37. package/wirespec-src-ide-lsp.mjs +1359 -1359
  38. package/wirespec-src-plugin-arguments.mjs +153 -157
  39. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  40. package/wirespec-src-plugin-cli.mjs +139 -142
  41. package/wirespec-src-plugin-cli.mjs.map +1 -1
  42. package/wirespec-src-plugin-extensions.mjs +1631 -1114
  43. package/wirespec-src-plugin-extensions.mjs.map +1 -1
  44. package/wirespec-src-plugin-npm.mjs +27 -27
  45. package/wirespec-src-tools-generator.mjs +17 -17
@@ -56,10 +56,8 @@ import {
56
56
  trim6jpmwojjgb3l as trim_0,
57
57
  mapOf2zpbbmyqk8xpf as mapOf,
58
58
  mapOf1xd03cq9cnmy8 as mapOf_0,
59
- emptySetcxexqki71qfa as emptySet,
60
59
  getStringHashCode26igk1bx568vk as getStringHashCode,
61
60
  hashCodeq5arwsb9dgti as hashCode,
62
- trimEnd17pt8cbotbalj as trimEnd,
63
61
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
64
62
  charSequenceLength3278n89t01tmv as charSequenceLength,
65
63
  charCodeAt1yspne1d8erbm as charCodeAt,
@@ -68,18 +66,23 @@ import {
68
66
  toString22rbkbhdb5cl2 as toString_0,
69
67
  StringBuilder_init_$Create$3ds9zx2kx9u4d as StringBuilder_init_$Create$,
70
68
  toSet2orjxp16sotqu as toSet_0,
71
- getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
72
- listOfNotNull1v4ggfackvuny as listOfNotNull,
73
- KtMap140uvy3s5zad8 as KtMap,
69
+ trimEnd17pt8cbotbalj as trimEnd,
74
70
  toString30pk9tzaqopn as toString_1,
71
+ getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
75
72
  firstOrNull1982767dljvdy as firstOrNull_0,
76
73
  charSequenceGet1vxk1y5n17t1z as charSequenceGet,
77
74
  HashSet_init_$Create$2w31ptb4ree5i as HashSet_init_$Create$,
78
75
  distinct10qe1scfdvu5k as distinct,
79
- plus18eogev54fmsa as plus_1,
76
+ KtMap140uvy3s5zad8 as KtMap,
77
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
78
+ single3ds7xj9roxi5z as single,
79
+ plus2lr02ok6jhhxu as plus_1,
80
+ getValue48kllevslyh6 as getValue,
81
+ listOfNotNull2woi2boe01ub4 as listOfNotNull,
82
+ singleo93pzdgfc557 as single_0,
80
83
  trimStart5ewg8zf6cs5u as trimStart,
81
84
  startsWith26w8qjqapeeq6 as startsWith,
82
- getValue48kllevslyh6 as getValue,
85
+ listOfNotNull1v4ggfackvuny as listOfNotNull_0,
83
86
  } from './kotlin-kotlin-stdlib.mjs';
84
87
  import {
85
88
  NonEmptyList3ak25ihy2gcvs as NonEmptyList,
@@ -151,15 +154,19 @@ import {
151
154
  Array2vay9bq78aua1 as Array_0,
152
155
  Paramvfwnys2w6aj1 as Param,
153
156
  struct1gzvysjt73bn4 as struct,
157
+ Field2nwjpxu9j2svq as Field_0,
158
+ convertToGenerator1arvbkvdv4bro as convertToGenerator,
159
+ forEachElement2kk527cjhfon1 as forEachElement,
160
+ Shape2rkbve9uak0g8 as Shape,
154
161
  Package1a6hdgk3p4frd as Package,
155
162
  raw1mm1rmqheq474 as raw,
156
163
  Refined1lkzc0dg6wey7 as Refined,
157
164
  Endpoint1jsq06yr3xdhp as Endpoint,
158
165
  Channel2fhxi4a4pwb64 as Channel,
166
+ Rpc1w89psy5tk702 as Rpc,
159
167
  Enumoqsp4e7al89r as Enum_1,
160
168
  HasName33ghsv8lnn7sd as HasName,
161
169
  Unionccsavx6nrdr2 as Union_0,
162
- forEachElement2kk527cjhfon1 as forEachElement,
163
170
  TransformScope3fhztkr2eyk36 as TransformScope,
164
171
  TransformerBuilder26pbjl5nmg6wa as TransformerBuilder,
165
172
  transformhd96z3w1u5uc as transform,
@@ -206,19 +213,55 @@ initMetadataForObject(ChannelDslFile, 'ChannelDslFile');
206
213
  initMetadataForClass(Slot, 'Slot');
207
214
  initMetadataForObject(EndpointDslFile, 'EndpointDslFile');
208
215
  initMetadataForClass(Primitive_0, 'Primitive');
209
- initMetadataForClass(NestedObject, 'NestedObject');
210
- initMetadataForClass(NestedList, 'NestedList');
216
+ initMetadataForClass(Nested, 'Nested');
211
217
  initMetadataForClass(NamedTypedField, 'NamedTypedField');
212
218
  initMetadataForClass(ResponseVariantShape, 'ResponseVariantShape');
213
219
  initMetadataForClass(BodyKind, 'BodyKind', VOID, Enum);
214
220
  initMetadataForCompanion(Companion_2);
215
221
  initMetadataForClass(EndpointShape, 'EndpointShape');
216
222
  initMetadataForObject(RecordBuilder, 'RecordBuilder');
217
- initMetadataForObject(TypeDslFile, 'TypeDslFile');
218
223
  initMetadataForCompanion(Companion_3);
224
+ initMetadataForClass(RecordRef, 'RecordRef');
225
+ function wrap(expr, depth) {
226
+ var v = 'v' + depth;
227
+ var call = this.ot() ? '?.' : '.';
228
+ var tmp;
229
+ if (this instanceof Wrap) {
230
+ tmp = this.q35_1 ? expr + '?.let { ' + v + ' -> ' + this.p35_1 + '(' + v + ') }' : this.p35_1 + '(' + expr + ')';
231
+ } else {
232
+ if (this instanceof Each) {
233
+ tmp = expr + call + 'map { ' + v + ' -> ' + this.s35_1.r35(v, depth + 1 | 0) + ' }';
234
+ } else {
235
+ if (this instanceof Values) {
236
+ tmp = expr + call + 'mapValues { (_, ' + v + ') -> ' + this.u35_1.r35(v, depth + 1 | 0) + ' }';
237
+ } else {
238
+ noWhenBranchMatchedException();
239
+ }
240
+ }
241
+ }
242
+ return tmp;
243
+ }
244
+ function wrap$default(expr, depth, $super) {
245
+ depth = depth === VOID ? 0 : depth;
246
+ return $super === VOID ? this.r35(expr, depth) : wrap(expr, depth);
247
+ }
248
+ initMetadataForInterface(Refinement, 'Refinement');
249
+ initMetadataForClass(Wrap, 'Wrap', VOID, VOID, [Refinement]);
250
+ initMetadataForClass(Each, 'Each', VOID, VOID, [Refinement]);
251
+ initMetadataForClass(Values, 'Values', VOID, VOID, [Refinement]);
252
+ initMetadataForCompanion(Companion_4);
253
+ initMetadataForObject(RpcDslFile, 'RpcDslFile');
254
+ initMetadataForClass(Request, 'Request');
255
+ initMetadataForClass(Value, 'Value');
256
+ initMetadataForCompanion(Companion_5);
257
+ initMetadataForClass(Outcome, 'Outcome');
258
+ initMetadataForCompanion(Companion_6);
259
+ initMetadataForClass(RpcShape, 'RpcShape');
260
+ initMetadataForObject(TypeDslFile, 'TypeDslFile');
261
+ initMetadataForCompanion(Companion_7);
219
262
  initMetadataForClass(TypeShape, 'TypeShape');
220
263
  initMetadataForClass(KotestDslExtension, 'KotestDslExtension');
221
- initMetadataForCompanion(Companion_4);
264
+ initMetadataForCompanion(Companion_8);
222
265
  initMetadataForClass(KotlinxSerializationExtension, 'KotlinxSerializationExtension', KotlinxSerializationExtension);
223
266
  initMetadataForClass(SpringMappingAnnotationsExtension, 'SpringMappingAnnotationsExtension');
224
267
  initMetadataForClass(SpringNativeHintsExtension, 'SpringNativeHintsExtension');
@@ -244,9 +287,9 @@ function AvroExtension(packageName, language) {
244
287
  var message = 'AvroExtension supports Java and Kotlin targets only, got ' + toString(language);
245
288
  throw IllegalStateException_init_$Create$(toString(message));
246
289
  }
247
- tmp.d32_1 = tmp_0;
290
+ tmp.c33_1 = tmp_0;
248
291
  }
249
- protoOf(AvroExtension).b1b = function (ir, ast) {
292
+ protoOf(AvroExtension).f1b = function (ir, ast) {
250
293
  // Inline function 'kotlin.collections.buildList' call
251
294
  // Inline function 'kotlin.collections.buildListInternal' call
252
295
  // Inline function 'kotlin.apply' call
@@ -259,7 +302,7 @@ protoOf(AvroExtension).b1b = function (ir, ast) {
259
302
  var _iterator__ex2g4s_0 = (new NonEmptyList(element.gp_1)).t();
260
303
  while (_iterator__ex2g4s_0.u()) {
261
304
  var element_0 = _iterator__ex2g4s_0.v();
262
- this_0.g1(this.d32_1.e32(element_0, element));
305
+ this_0.g1(this.c33_1.d33(element_0, element));
263
306
  }
264
307
  }
265
308
  var avroFiles = this_0.q5();
@@ -282,7 +325,7 @@ function emit($this, identifier) {
282
325
  if (identifier instanceof FieldIdentifier) {
283
326
  // Inline function 'kotlin.let' call
284
327
  var it = sanitizeSymbol($this, identifier.o1());
285
- tmp = JavaGenerator_getInstance().j1b_1.i1(it) ? '_' + it : it;
328
+ tmp = JavaGenerator_getInstance().i1c_1.i1(it) ? '_' + it : it;
286
329
  } else {
287
330
  noWhenBranchMatchedException();
288
331
  }
@@ -342,17 +385,17 @@ function emitType($this, $receiver) {
342
385
  tmp = 'Object';
343
386
  } else {
344
387
  if ($receiver instanceof Custom) {
345
- tmp = $receiver.n19_1;
388
+ tmp = $receiver.x19_1;
346
389
  } else {
347
390
  if ($receiver instanceof Primitive) {
348
- var t = $receiver.p19_1;
391
+ var t = $receiver.z19_1;
349
392
  var tmp_0;
350
393
  if (t instanceof String_0) {
351
394
  tmp_0 = 'String';
352
395
  } else {
353
396
  if (t instanceof Integer) {
354
397
  var tmp_1;
355
- switch (t.x19_1.e3_1) {
398
+ switch (t.h1a_1.e3_1) {
356
399
  case 0:
357
400
  tmp_1 = 'Integer';
358
401
  break;
@@ -367,7 +410,7 @@ function emitType($this, $receiver) {
367
410
  } else {
368
411
  if (t instanceof Number_0) {
369
412
  var tmp_2;
370
- switch (t.s19_1.e3_1) {
413
+ switch (t.c1a_1.e3_1) {
371
414
  case 0:
372
415
  tmp_2 = 'Float';
373
416
  break;
@@ -421,7 +464,7 @@ function emitRoot($this, $receiver) {
421
464
  return tmp;
422
465
  }
423
466
  function schemaField($this, definition, module_0) {
424
- return trimMargin('\n |public static final org.apache.avro.Schema SCHEMA =\n | new org.apache.avro.Schema.Parser().parse("' + schema($this.f32_1, definition, module_0) + '");\n |\n ');
467
+ return trimMargin('\n |public static final org.apache.avro.Schema SCHEMA =\n | new org.apache.avro.Schema.Parser().parse("' + schema($this.e33_1, definition, module_0) + '");\n |\n ');
425
468
  }
426
469
  function toValue($this, field) {
427
470
  var reference = field.pp_1;
@@ -434,10 +477,10 @@ function toValue($this, field) {
434
477
  } else {
435
478
  if (reference instanceof Primitive) {
436
479
  var tmp_0;
437
- if (reference.p19_1 instanceof Bytes) {
480
+ if (reference.z19_1 instanceof Bytes) {
438
481
  tmp_0 = 'java.nio.ByteBuffer.wrap(data.' + emit($this, field.op_1) + '())';
439
482
  } else {
440
- tmp_0 = 'data.' + emit($this, field.op_1) + '()' + (reference.q19_1 ? '.orElse(null)' : '');
483
+ tmp_0 = 'data.' + emit($this, field.op_1) + '()' + (reference.a1a_1 ? '.orElse(null)' : '');
441
484
  }
442
485
  tmp = tmp_0;
443
486
  } else {
@@ -462,10 +505,10 @@ function JavaAvroSource$fromValue$lambda(this$0, $module) {
462
505
  tmp = '((java.util.List<org.apache.avro.generic.GenericData.Record>) record.get(' + index + ')).stream().map(it -> ' + avroClass(emitRoot(this$0, reference.yp_1)) + '.from(it)).toList()';
463
506
  } else {
464
507
  if (reference instanceof Custom) {
465
- tmp = reference.o19_1 ? '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.pp_1) + ') record.get(' + index + '))' : isEnum(reference, $module) ? avroClass(emit_0(this$0, field.pp_1)) + '.from((org.apache.avro.generic.GenericData.EnumSymbol) record.get(' + index + '))' : avroClass(emit_0(this$0, field.pp_1)) + '.from((org.apache.avro.generic.GenericData.Record) record.get(' + index + '))';
508
+ tmp = reference.y19_1 ? '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.pp_1) + ') record.get(' + index + '))' : isEnum(reference, $module) ? avroClass(emit_0(this$0, field.pp_1)) + '.from((org.apache.avro.generic.GenericData.EnumSymbol) record.get(' + index + '))' : avroClass(emit_0(this$0, field.pp_1)) + '.from((org.apache.avro.generic.GenericData.Record) record.get(' + index + '))';
466
509
  } else {
467
510
  if (reference instanceof Primitive) {
468
- tmp = reference.q19_1 ? '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.pp_1) + ') record.get(' + index + '))' : equals(reference.p19_1, Bytes_instance) ? '(' + emit_0(this$0, reference) + ') ((java.nio.ByteBuffer) record.get(' + index + ')).array()' : equals(reference.p19_1, new String_0(null)) ? '(' + emit_0(this$0, reference) + ') record.get(' + index + ').toString()' : '(' + emit_0(this$0, reference) + ') record.get(' + index + ')';
511
+ tmp = reference.a1a_1 ? '(' + emit_0(this$0, reference) + ') java.util.Optional.ofNullable((' + emitRoot(this$0, field.pp_1) + ') record.get(' + index + '))' : equals(reference.z19_1, Bytes_instance) ? '(' + emit_0(this$0, reference) + ') ((java.nio.ByteBuffer) record.get(' + index + ')).array()' : equals(reference.z19_1, new String_0(null)) ? '(' + emit_0(this$0, reference) + ') record.get(' + index + ').toString()' : '(' + emit_0(this$0, reference) + ') record.get(' + index + ')';
469
512
  } else {
470
513
  tmp = '(' + emit_0(this$0, reference) + ') record.get(' + index + ')';
471
514
  }
@@ -475,9 +518,9 @@ function JavaAvroSource$fromValue$lambda(this$0, $module) {
475
518
  };
476
519
  }
477
520
  function JavaAvroSource(packageName) {
478
- this.f32_1 = packageName;
521
+ this.e33_1 = packageName;
479
522
  }
480
- protoOf(JavaAvroSource).e32 = function (definition, module_0) {
523
+ protoOf(JavaAvroSource).d33 = function (definition, module_0) {
481
524
  var tmp;
482
525
  if (definition instanceof Type) {
483
526
  var tmp_0 = emit(this, definition.kp_1);
@@ -510,10 +553,10 @@ protoOf(JavaAvroSource).e32 = function (definition, module_0) {
510
553
  var tmp$ret$5 = 'record.put(' + checkIndexOverflow(_unary__edvuaz_0) + ', ' + toValue(this, item_0) + ')';
511
554
  destination_0.x(tmp$ret$5);
512
555
  }
513
- tmp = listOf(typeAvroFile(this.f32_1, tmp_0, tmp_1, 'new org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
556
+ tmp = listOf(typeAvroFile(this.e33_1, tmp_0, tmp_1, 'new org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
514
557
  } else {
515
558
  if (definition instanceof Enum_0) {
516
- tmp = listOf(enumAvroFile(this.f32_1, emit(this, definition.qs_1), schemaField(this, definition, module_0), emit(this, definition.qs_1) + '.valueOf(record.toString())', 'new org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name())'));
559
+ tmp = listOf(enumAvroFile(this.e33_1, emit(this, definition.qs_1), schemaField(this, definition, module_0), emit(this, definition.qs_1) + '.valueOf(record.toString())', 'new org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name())'));
517
560
  } else {
518
561
  tmp = emptyList();
519
562
  }
@@ -528,7 +571,7 @@ function emit_1($this, identifier) {
528
571
  if (identifier instanceof FieldIdentifier) {
529
572
  // Inline function 'kotlin.let' call
530
573
  var it = sanitize($this, identifier);
531
- tmp = KotlinGenerator_getInstance().l1b_1.i1(it) ? addBackticks(it) : it;
574
+ tmp = KotlinGenerator_getInstance().k1c_1.i1(it) ? addBackticks(it) : it;
532
575
  } else {
533
576
  noWhenBranchMatchedException();
534
577
  }
@@ -583,17 +626,17 @@ function emit_2($this, $receiver) {
583
626
  tmp = 'Any';
584
627
  } else {
585
628
  if ($receiver instanceof Custom) {
586
- tmp = $receiver.n19_1;
629
+ tmp = $receiver.x19_1;
587
630
  } else {
588
631
  if ($receiver instanceof Primitive) {
589
- var t = $receiver.p19_1;
632
+ var t = $receiver.z19_1;
590
633
  var tmp_0;
591
634
  if (t instanceof String_0) {
592
635
  tmp_0 = 'String';
593
636
  } else {
594
637
  if (t instanceof Integer) {
595
638
  var tmp_1;
596
- switch (t.x19_1.e3_1) {
639
+ switch (t.h1a_1.e3_1) {
597
640
  case 0:
598
641
  tmp_1 = 'Int';
599
642
  break;
@@ -608,7 +651,7 @@ function emit_2($this, $receiver) {
608
651
  } else {
609
652
  if (t instanceof Number_0) {
610
653
  var tmp_2;
611
- switch (t.s19_1.e3_1) {
654
+ switch (t.c1a_1.e3_1) {
612
655
  case 0:
613
656
  tmp_2 = 'Float';
614
657
  break;
@@ -647,11 +690,11 @@ function emit_2($this, $receiver) {
647
690
  return $receiver.ot() ? it + '?' : it;
648
691
  }
649
692
  function avroObject($this, reference) {
650
- return avroClass(emit_2($this, reference.p1a(false)));
693
+ return avroClass(emit_2($this, reference.t1a(false)));
651
694
  }
652
695
  function schemaField_0($this, definition, module_0, explicitType) {
653
696
  var declaration = explicitType ? 'val SCHEMA: org.apache.avro.Schema' : 'val SCHEMA';
654
- return declaration + ' = org.apache.avro.Schema.Parser().parse("' + schema($this.g32_1, definition, module_0) + '")';
697
+ return declaration + ' = org.apache.avro.Schema.Parser().parse("' + schema($this.f33_1, definition, module_0) + '")';
655
698
  }
656
699
  function toValue_0($this, field) {
657
700
  var value = 'data.' + emit_1($this, field.op_1);
@@ -680,7 +723,7 @@ function toValue_0($this, field) {
680
723
  tmp = field.pp_1.ot() ? access + '.let{' + avroObject($this, reference) + '.to(it)}' : avroObject($this, reference) + '.to(' + value + ')';
681
724
  } else {
682
725
  if (reference instanceof Primitive) {
683
- tmp = equals(reference.p19_1, Bytes_instance) && reference.q19_1 ? access + '.let{java.nio.ByteBuffer.wrap(it)}' : equals(reference.p19_1, Bytes_instance) ? 'java.nio.ByteBuffer.wrap(' + value + ')' : value;
726
+ tmp = equals(reference.z19_1, Bytes_instance) && reference.a1a_1 ? access + '.let{java.nio.ByteBuffer.wrap(it)}' : equals(reference.z19_1, Bytes_instance) ? 'java.nio.ByteBuffer.wrap(' + value + ')' : value;
684
727
  } else {
685
728
  // Inline function 'kotlin.error' call
686
729
  var message = 'Cannot emit Avro: ' + toString(reference);
@@ -701,7 +744,7 @@ function element($this, module_0, reference, value) {
701
744
  } else {
702
745
  if (reference instanceof Primitive) {
703
746
  var tmp_0;
704
- if (reference.p19_1 instanceof String_0) {
747
+ if (reference.z19_1 instanceof String_0) {
705
748
  tmp_0 = value + '.toString()';
706
749
  } else {
707
750
  tmp_0 = value + ' as ' + emit_2($this, reference);
@@ -732,10 +775,10 @@ function KotlinAvroSource$fromValue$lambda(this$0, $module) {
732
775
  } else {
733
776
  if (reference instanceof Custom) {
734
777
  var carrier = isEnum(reference, $module) ? 'org.apache.avro.generic.GenericData.EnumSymbol' : 'org.apache.avro.generic.GenericData.Record';
735
- tmp = reference.o19_1 ? '(' + get + ' as ' + carrier + '?)?.let{' + avroObject(this$0, reference) + '.from(it)}' : element(this$0, $module, reference, get);
778
+ tmp = reference.y19_1 ? '(' + get + ' as ' + carrier + '?)?.let{' + avroObject(this$0, reference) + '.from(it)}' : element(this$0, $module, reference, get);
736
779
  } else {
737
780
  if (reference instanceof Primitive) {
738
- var tmp1_subject = reference.p19_1;
781
+ var tmp1_subject = reference.z19_1;
739
782
  var tmp_0;
740
783
  if (tmp1_subject instanceof Bytes) {
741
784
  tmp_0 = '(' + get + ' as java.nio.ByteBuffer' + orNull + ')' + orNull + '.array()';
@@ -759,9 +802,9 @@ function KotlinAvroSource$fromValue$lambda(this$0, $module) {
759
802
  };
760
803
  }
761
804
  function KotlinAvroSource(packageName) {
762
- this.g32_1 = packageName;
805
+ this.f33_1 = packageName;
763
806
  }
764
- protoOf(KotlinAvroSource).e32 = function (definition, module_0) {
807
+ protoOf(KotlinAvroSource).d33 = function (definition, module_0) {
765
808
  var tmp;
766
809
  if (definition instanceof Type) {
767
810
  var tmp_0 = emit_1(this, definition.kp_1);
@@ -794,10 +837,10 @@ protoOf(KotlinAvroSource).e32 = function (definition, module_0) {
794
837
  var tmp$ret$5 = 'record.put(' + checkIndexOverflow(_unary__edvuaz_0) + ', ' + toValue_0(this, item_0) + ')';
795
838
  destination_0.x(tmp$ret$5);
796
839
  }
797
- tmp = listOf(typeAvroFile(this.g32_1, tmp_0, tmp_1, 'org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
840
+ tmp = listOf(typeAvroFile(this.f33_1, tmp_0, tmp_1, 'org.apache.avro.generic.GenericData.Record(SCHEMA)', tmp_2, destination_0));
798
841
  } else {
799
842
  if (definition instanceof Enum_0) {
800
- tmp = listOf(enumAvroFile(this.g32_1, emit_1(this, definition.qs_1), schemaField_0(this, definition, module_0, true), emit_1(this, definition.qs_1) + '.valueOf(record.toString())', 'org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name)'));
843
+ tmp = listOf(enumAvroFile(this.f33_1, emit_1(this, definition.qs_1), schemaField_0(this, definition, module_0, true), emit_1(this, definition.qs_1) + '.valueOf(record.toString())', 'org.apache.avro.generic.GenericData.EnumSymbol(SCHEMA, data.name)'));
801
844
  } else {
802
845
  tmp = emptyList();
803
846
  }
@@ -877,10 +920,10 @@ function emitAvroSchema(packageName, definition, module_0) {
877
920
  var $this$with = AvroJsonEmitter_getInstance();
878
921
  var tmp;
879
922
  if (definition instanceof Type) {
880
- tmp = $this$with.o30(definition, module_0, mutableListOf([definition.kp_1.o1()])).n31(VOID, VOID, packageName.bt_1);
923
+ tmp = $this$with.n31(definition, module_0, mutableListOf([definition.kp_1.o1()])).m32(VOID, VOID, packageName.bt_1);
881
924
  } else {
882
925
  if (definition instanceof Enum_0) {
883
- tmp = $this$with.l30(definition);
926
+ tmp = $this$with.k31(definition);
884
927
  } else {
885
928
  tmp = null;
886
929
  }
@@ -903,11 +946,11 @@ function emitAvroSchema(packageName, definition, module_0) {
903
946
  // Inline function 'kotlinx.serialization.encodeToString' call
904
947
  var this_0 = Default_getInstance();
905
948
  // Inline function 'kotlinx.serialization.serializer' call
906
- var this_1 = this_0.h24();
949
+ var this_1 = this_0.g25();
907
950
  // Inline function 'kotlinx.serialization.internal.cast' call
908
951
  var this_2 = serializer(this_1, createKType(getKClass(Type_0), arrayOf([]), false));
909
952
  var tmp$ret$6 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
910
- tmp_1 = this_0.m2l(tmp$ret$6, tmp1_safe_receiver);
953
+ tmp_1 = this_0.l2m(tmp$ret$6, tmp1_safe_receiver);
911
954
  }
912
955
  var tmp2_safe_receiver = tmp_1;
913
956
  return tmp2_safe_receiver == null ? null : escaped(tmp2_safe_receiver);
@@ -916,16 +959,16 @@ function flatten(_this__u8e3s4, defined) {
916
959
  _init_properties_AvroExtension_kt__50nkjp();
917
960
  var tmp;
918
961
  if (_this__u8e3s4 instanceof RecordType) {
919
- defined.x(_this__u8e3s4.r2z_1);
962
+ defined.x(_this__u8e3s4.q30_1);
920
963
  // Inline function 'kotlin.collections.map' call
921
- var this_0 = _this__u8e3s4.t2z_1;
964
+ var this_0 = _this__u8e3s4.s30_1;
922
965
  // Inline function 'kotlin.collections.mapTo' call
923
966
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
924
967
  var _iterator__ex2g4s = this_0.t();
925
968
  while (_iterator__ex2g4s.u()) {
926
969
  var item = _iterator__ex2g4s.v();
927
970
  // Inline function 'kotlin.collections.map' call
928
- var this_1 = item.y2z_1;
971
+ var this_1 = item.x30_1;
929
972
  // Inline function 'kotlin.collections.mapTo' call
930
973
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
931
974
  var _iterator__ex2g4s_0 = this_1.t();
@@ -934,17 +977,17 @@ function flatten(_this__u8e3s4, defined) {
934
977
  var tmp$ret$5 = flatten(item_0, defined);
935
978
  destination_0.x(tmp$ret$5);
936
979
  }
937
- var tmp$ret$2 = item.i31(VOID, TypeList_init_$Create$(destination_0));
980
+ var tmp$ret$2 = item.h32(VOID, TypeList_init_$Create$(destination_0));
938
981
  destination.x(tmp$ret$2);
939
982
  }
940
- tmp = _this__u8e3s4.n31(VOID, VOID, VOID, destination);
983
+ tmp = _this__u8e3s4.m32(VOID, VOID, VOID, destination);
941
984
  } else {
942
985
  if (_this__u8e3s4 instanceof ArrayType) {
943
- tmp = _this__u8e3s4.p31(VOID, flatten(_this__u8e3s4.w2z_1, defined));
986
+ tmp = _this__u8e3s4.o32(VOID, flatten(_this__u8e3s4.v30_1, defined));
944
987
  } else {
945
988
  if (_this__u8e3s4 instanceof EnumType) {
946
989
  // Inline function 'kotlin.also' call
947
- defined.x(_this__u8e3s4.n2z_1);
990
+ defined.x(_this__u8e3s4.m30_1);
948
991
  tmp = _this__u8e3s4;
949
992
  } else {
950
993
  if (_this__u8e3s4 instanceof LogicalType) {
@@ -952,20 +995,20 @@ function flatten(_this__u8e3s4, defined) {
952
995
  } else {
953
996
  if (_this__u8e3s4 instanceof SimpleType) {
954
997
  var tmp_0;
955
- if (get_AVRO_PRIMITIVES().i1(_this__u8e3s4.d2z_1) || defined.i1(_this__u8e3s4.d2z_1)) {
998
+ if (get_AVRO_PRIMITIVES().i1(_this__u8e3s4.c30_1) || defined.i1(_this__u8e3s4.c30_1)) {
956
999
  tmp_0 = _this__u8e3s4;
957
1000
  } else {
958
- defined.x(_this__u8e3s4.d2z_1);
959
- tmp_0 = _this__u8e3s4.l31('<<<<<' + _this__u8e3s4.d2z_1 + '>>>>>');
1001
+ defined.x(_this__u8e3s4.c30_1);
1002
+ tmp_0 = _this__u8e3s4.k32('<<<<<' + _this__u8e3s4.c30_1 + '>>>>>');
960
1003
  }
961
1004
  tmp = tmp_0;
962
1005
  } else {
963
1006
  if (_this__u8e3s4 instanceof MapType) {
964
- tmp = _this__u8e3s4.q31(VOID, flatten(_this__u8e3s4.h2z_1, defined));
1007
+ tmp = _this__u8e3s4.p32(VOID, flatten(_this__u8e3s4.g30_1, defined));
965
1008
  } else {
966
1009
  if (_this__u8e3s4 instanceof UnionType) {
967
1010
  // Inline function 'kotlin.collections.map' call
968
- var this_2 = _this__u8e3s4.f2z_1;
1011
+ var this_2 = _this__u8e3s4.e30_1;
969
1012
  // Inline function 'kotlin.collections.mapTo' call
970
1013
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
971
1014
  var _iterator__ex2g4s_1 = this_2.t();
@@ -974,7 +1017,7 @@ function flatten(_this__u8e3s4, defined) {
974
1017
  var tmp$ret$10 = flatten(item_1, defined);
975
1018
  destination_1.x(tmp$ret$10);
976
1019
  }
977
- tmp = _this__u8e3s4.s31(VOID, TypeList_init_$Create$(destination_1));
1020
+ tmp = _this__u8e3s4.r32(VOID, TypeList_init_$Create$(destination_1));
978
1021
  } else {
979
1022
  noWhenBranchMatchedException();
980
1023
  }
@@ -988,9 +1031,9 @@ function flatten(_this__u8e3s4, defined) {
988
1031
  }
989
1032
  function typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs) {
990
1033
  return function ($this$function) {
991
- $this$function.m13('record', $this$function.q14('org.apache.avro.generic.GenericData.Record', []));
992
- $this$function.j13($this$function.q14($typeName, []));
993
- var tmp = $this$function.q14($typeName, []);
1034
+ $this$function.w13('record', $this$function.a15('org.apache.avro.generic.GenericData.Record', []));
1035
+ $this$function.t13($this$function.a15($typeName, []));
1036
+ var tmp = $this$function.a15($typeName, []);
994
1037
  // Inline function 'kotlin.collections.associate' call
995
1038
  var this_0 = $fromArgs;
996
1039
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
@@ -1007,72 +1050,72 @@ function typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs) {
1007
1050
  var pair = to(tmp_0, isInterface(tmp_1, Expression) ? tmp_1 : THROW_CCE());
1008
1051
  destination.v2(pair.ff_1, pair.gf_1);
1009
1052
  }
1010
- $this$function.p13(new ConstructorStatement(tmp, destination));
1053
+ $this$function.z13(new ConstructorStatement(tmp, destination));
1011
1054
  return Unit_instance;
1012
1055
  };
1013
1056
  }
1014
1057
  function typeAvroFile$lambda$lambda$lambda_0($typeName, $recordConstructor, $toPuts) {
1015
1058
  return function ($this$function) {
1016
- $this$function.m13('data', $this$function.q14($typeName, []));
1017
- $this$function.j13($this$function.q14('org.apache.avro.generic.GenericData.Record', []));
1018
- $this$function.q13('record', new RawExpression($recordConstructor));
1059
+ $this$function.w13('data', $this$function.a15($typeName, []));
1060
+ $this$function.t13($this$function.a15('org.apache.avro.generic.GenericData.Record', []));
1061
+ $this$function.a14('record', new RawExpression($recordConstructor));
1019
1062
  // Inline function 'kotlin.collections.forEach' call
1020
1063
  var _iterator__ex2g4s = $toPuts.t();
1021
1064
  while (_iterator__ex2g4s.u()) {
1022
1065
  var element = _iterator__ex2g4s.v();
1023
- $this$function.i14(element);
1066
+ $this$function.s14(element);
1024
1067
  }
1025
- $this$function.p13(new VariableReference(Companion_getInstance().wt('record')));
1068
+ $this$function.z13(new VariableReference(Companion_getInstance().wt('record')));
1026
1069
  return Unit_instance;
1027
1070
  };
1028
1071
  }
1029
1072
  function typeAvroFile$lambda$lambda($schemaField, $typeName, $fromArgs, $recordConstructor, $toPuts) {
1030
1073
  return function ($this$namespace) {
1031
- $this$namespace.i14($schemaField);
1032
- $this$namespace.w15('from', true, VOID, typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs));
1033
- $this$namespace.w15('to', true, VOID, typeAvroFile$lambda$lambda$lambda_0($typeName, $recordConstructor, $toPuts));
1074
+ $this$namespace.s14($schemaField);
1075
+ $this$namespace.g16('from', true, VOID, typeAvroFile$lambda$lambda$lambda($typeName, $fromArgs));
1076
+ $this$namespace.g16('to', true, VOID, typeAvroFile$lambda$lambda$lambda_0($typeName, $recordConstructor, $toPuts));
1034
1077
  return Unit_instance;
1035
1078
  };
1036
1079
  }
1037
1080
  function typeAvroFile$lambda($packageName, $typeName, $schemaField, $fromArgs, $recordConstructor, $toPuts) {
1038
1081
  return function ($this$file) {
1039
- $this$file.e17($packageName.bt_1 + '.avro');
1040
- $this$file.s15($packageName.bt_1 + '.model', $typeName);
1082
+ $this$file.o17($packageName.bt_1 + '.avro');
1083
+ $this$file.c16($packageName.bt_1 + '.model', $typeName);
1041
1084
  var tmp = $typeName + 'Avro';
1042
- $this$file.e16(tmp, VOID, typeAvroFile$lambda$lambda($schemaField, $typeName, $fromArgs, $recordConstructor, $toPuts));
1085
+ $this$file.o16(tmp, VOID, typeAvroFile$lambda$lambda($schemaField, $typeName, $fromArgs, $recordConstructor, $toPuts));
1043
1086
  return Unit_instance;
1044
1087
  };
1045
1088
  }
1046
1089
  function enumAvroFile$lambda$lambda$lambda($enumName, $fromExpr) {
1047
1090
  return function ($this$function) {
1048
- $this$function.m13('record', $this$function.q14('org.apache.avro.generic.GenericData.EnumSymbol', []));
1049
- $this$function.j13($this$function.q14($enumName, []));
1050
- $this$function.p13(new RawExpression($fromExpr));
1091
+ $this$function.w13('record', $this$function.a15('org.apache.avro.generic.GenericData.EnumSymbol', []));
1092
+ $this$function.t13($this$function.a15($enumName, []));
1093
+ $this$function.z13(new RawExpression($fromExpr));
1051
1094
  return Unit_instance;
1052
1095
  };
1053
1096
  }
1054
1097
  function enumAvroFile$lambda$lambda$lambda_0($enumName, $toExpr) {
1055
1098
  return function ($this$function) {
1056
- $this$function.m13('data', $this$function.q14($enumName, []));
1057
- $this$function.j13($this$function.q14('org.apache.avro.generic.GenericData.EnumSymbol', []));
1058
- $this$function.p13(new RawExpression($toExpr));
1099
+ $this$function.w13('data', $this$function.a15($enumName, []));
1100
+ $this$function.t13($this$function.a15('org.apache.avro.generic.GenericData.EnumSymbol', []));
1101
+ $this$function.z13(new RawExpression($toExpr));
1059
1102
  return Unit_instance;
1060
1103
  };
1061
1104
  }
1062
1105
  function enumAvroFile$lambda$lambda($schemaField, $enumName, $fromExpr, $toExpr) {
1063
1106
  return function ($this$namespace) {
1064
- $this$namespace.i14($schemaField);
1065
- $this$namespace.w15('from', true, VOID, enumAvroFile$lambda$lambda$lambda($enumName, $fromExpr));
1066
- $this$namespace.w15('to', true, VOID, enumAvroFile$lambda$lambda$lambda_0($enumName, $toExpr));
1107
+ $this$namespace.s14($schemaField);
1108
+ $this$namespace.g16('from', true, VOID, enumAvroFile$lambda$lambda$lambda($enumName, $fromExpr));
1109
+ $this$namespace.g16('to', true, VOID, enumAvroFile$lambda$lambda$lambda_0($enumName, $toExpr));
1067
1110
  return Unit_instance;
1068
1111
  };
1069
1112
  }
1070
1113
  function enumAvroFile$lambda($packageName, $enumName, $schemaField, $fromExpr, $toExpr) {
1071
1114
  return function ($this$file) {
1072
- $this$file.e17($packageName.bt_1 + '.avro');
1073
- $this$file.s15($packageName.bt_1 + '.model', $enumName);
1115
+ $this$file.o17($packageName.bt_1 + '.avro');
1116
+ $this$file.c16($packageName.bt_1 + '.model', $enumName);
1074
1117
  var tmp = $enumName + 'Avro';
1075
- $this$file.e16(tmp, VOID, enumAvroFile$lambda$lambda($schemaField, $enumName, $fromExpr, $toExpr));
1118
+ $this$file.o16(tmp, VOID, enumAvroFile$lambda$lambda($schemaField, $enumName, $fromExpr, $toExpr));
1076
1119
  return Unit_instance;
1077
1120
  };
1078
1121
  }
@@ -1085,7 +1128,7 @@ function _init_properties_AvroExtension_kt__50nkjp() {
1085
1128
  }
1086
1129
  function annotate($this, $receiver, recordNames, unionMemberNames) {
1087
1130
  // Inline function 'kotlin.collections.flatMap' call
1088
- var tmp0 = $receiver.iv_1;
1131
+ var tmp0 = $receiver.cv_1;
1089
1132
  // Inline function 'kotlin.collections.flatMapTo' call
1090
1133
  var destination = ArrayList_init_$Create$();
1091
1134
  var _iterator__ex2g4s = tmp0.t();
@@ -1093,11 +1136,11 @@ function annotate($this, $receiver, recordNames, unionMemberNames) {
1093
1136
  var element = _iterator__ex2g4s.v();
1094
1137
  var tmp;
1095
1138
  if (element instanceof Union) {
1096
- tmp = listOf_0([Companion_getInstance_0().i32_1, element]);
1139
+ tmp = listOf_0([Companion_getInstance_0().h33_1, element]);
1097
1140
  } else {
1098
1141
  if (element instanceof Struct) {
1099
- var pascal = element.hx_1.zt();
1100
- tmp = !recordNames.i1(pascal) ? listOf(element) : unionMemberNames.i1(pascal) ? listOf_0([Companion_getInstance_0().j32(pascal), annotateFields($this, element)]) : listOf(annotateFields($this, element));
1142
+ var pascal = element.bx_1.zt();
1143
+ tmp = !recordNames.i1(pascal) ? listOf(element) : unionMemberNames.i1(pascal) ? listOf_0([Companion_getInstance_0().i33(pascal), annotateFields($this, element)]) : listOf(annotateFields($this, element));
1101
1144
  } else {
1102
1145
  tmp = listOf(element);
1103
1146
  }
@@ -1105,11 +1148,11 @@ function annotate($this, $receiver, recordNames, unionMemberNames) {
1105
1148
  var list = tmp;
1106
1149
  addAll(destination, list);
1107
1150
  }
1108
- return $receiver.lv(VOID, destination);
1151
+ return $receiver.fv(VOID, destination);
1109
1152
  }
1110
1153
  function annotateFields($this, $receiver) {
1111
1154
  // Inline function 'kotlin.collections.flatMap' call
1112
- var tmp0 = $receiver.ix_1;
1155
+ var tmp0 = $receiver.cx_1;
1113
1156
  // Inline function 'kotlin.collections.flatMapTo' call
1114
1157
  var destination = ArrayList_init_$Create$();
1115
1158
  var _iterator__ex2g4s = tmp0.t();
@@ -1117,24 +1160,24 @@ function annotateFields($this, $receiver) {
1117
1160
  var element = _iterator__ex2g4s.v();
1118
1161
  var tmp;
1119
1162
  if (element instanceof Field) {
1120
- tmp = listOf_0([Companion_getInstance_0().k32(element.cw_1.xt()), element]);
1163
+ tmp = listOf_0([Companion_getInstance_0().j33(element.wv_1.xt()), element]);
1121
1164
  } else {
1122
1165
  tmp = listOf(element);
1123
1166
  }
1124
1167
  var list = tmp;
1125
1168
  addAll(destination, list);
1126
1169
  }
1127
- return $receiver.sx(VOID, destination);
1170
+ return $receiver.mx(VOID, destination);
1128
1171
  }
1129
1172
  function Companion() {
1130
1173
  Companion_instance_1 = this;
1131
- this.h32_1 = 'com.fasterxml.jackson.annotation';
1132
- this.i32_1 = new RawElement('@com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type")\n');
1174
+ this.g33_1 = 'com.fasterxml.jackson.annotation';
1175
+ this.h33_1 = new RawElement('@com.fasterxml.jackson.annotation.JsonTypeInfo(use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type")\n');
1133
1176
  }
1134
- protoOf(Companion).k32 = function (name) {
1177
+ protoOf(Companion).j33 = function (name) {
1135
1178
  return new RawElement('@com.fasterxml.jackson.annotation.JsonProperty("' + name + '")');
1136
1179
  };
1137
- protoOf(Companion).j32 = function (name) {
1180
+ protoOf(Companion).i33 = function (name) {
1138
1181
  return new RawElement('@com.fasterxml.jackson.annotation.JsonTypeName("' + name + '")\n');
1139
1182
  };
1140
1183
  var Companion_instance_1;
@@ -1166,21 +1209,21 @@ function JacksonExtension$extend$lambda_3(it) {
1166
1209
  return it instanceof File;
1167
1210
  }
1168
1211
  function JacksonExtension$extend$lambda_4(it) {
1169
- return it.iv_1;
1212
+ return it.cv_1;
1170
1213
  }
1171
1214
  function JacksonExtension$extend$lambda_5(it) {
1172
1215
  return it instanceof Union;
1173
1216
  }
1174
1217
  function JacksonExtension$extend$lambda_6(it) {
1175
- return it.pw_1;
1218
+ return it.jw_1;
1176
1219
  }
1177
1220
  function JacksonExtension$extend$lambda_7(it) {
1178
- return it.qu_1.zt();
1221
+ return it.nu_1.zt();
1179
1222
  }
1180
1223
  function JacksonExtension() {
1181
1224
  Companion_getInstance_0();
1182
1225
  }
1183
- protoOf(JacksonExtension).b1b = function (ir, ast) {
1226
+ protoOf(JacksonExtension).f1b = function (ir, ast) {
1184
1227
  var tmp = asSequence_0(new NonEmptyList(ast.ep_1));
1185
1228
  // Inline function 'kotlin.sequences.filterIsInstance' call
1186
1229
  var this_0 = flatMap(tmp, JacksonExtension$extend$lambda);
@@ -1230,13 +1273,13 @@ function Target(name, ordinal) {
1230
1273
  Enum.call(this, name, ordinal);
1231
1274
  }
1232
1275
  function Model_0(type, builder, fields) {
1233
- this.l32_1 = type;
1234
- this.m32_1 = builder;
1235
- this.n32_1 = fields;
1276
+ this.k33_1 = type;
1277
+ this.l33_1 = builder;
1278
+ this.m33_1 = fields;
1236
1279
  }
1237
1280
  function withBuilders($this, $receiver, target, recordNames) {
1238
1281
  // Inline function 'kotlin.collections.flatMap' call
1239
- var tmp0 = $receiver.iv_1;
1282
+ var tmp0 = $receiver.cv_1;
1240
1283
  // Inline function 'kotlin.collections.flatMapTo' call
1241
1284
  var destination = ArrayList_init_$Create$();
1242
1285
  var _iterator__ex2g4s = tmp0.t();
@@ -1261,19 +1304,19 @@ function withBuilders($this, $receiver, target, recordNames) {
1261
1304
  var list = tmp2_elvis_lhs == null ? listOf(element) : tmp2_elvis_lhs;
1262
1305
  addAll(destination, list);
1263
1306
  }
1264
- return $receiver.lv(VOID, destination);
1307
+ return $receiver.fv(VOID, destination);
1265
1308
  }
1266
1309
  function isRecord($this, $receiver, recordNames) {
1267
1310
  var tmp;
1268
1311
  var tmp_0;
1269
- if (recordNames.i1($receiver.hx_1.zt())) {
1312
+ if (recordNames.i1($receiver.bx_1.zt())) {
1270
1313
  // Inline function 'kotlin.collections.isNotEmpty' call
1271
1314
  tmp_0 = !fieldList($receiver).r();
1272
1315
  } else {
1273
1316
  tmp_0 = false;
1274
1317
  }
1275
1318
  if (tmp_0) {
1276
- var tmp0 = $receiver.lx_1;
1319
+ var tmp0 = $receiver.fx_1;
1277
1320
  var tmp$ret$1;
1278
1321
  $l$block_0: {
1279
1322
  // Inline function 'kotlin.collections.none' call
@@ -1292,7 +1335,7 @@ function isRecord($this, $receiver, recordNames) {
1292
1335
  var element = _iterator__ex2g4s.v();
1293
1336
  var tmp_2;
1294
1337
  if (element instanceof Struct) {
1295
- tmp_2 = element.hx_1.equals(Companion_getInstance_1().o32_1);
1338
+ tmp_2 = element.bx_1.equals(Companion_getInstance_1().n33_1);
1296
1339
  } else {
1297
1340
  tmp_2 = false;
1298
1341
  }
@@ -1311,15 +1354,15 @@ function isRecord($this, $receiver, recordNames) {
1311
1354
  }
1312
1355
  function withBuilder($this, $receiver, target) {
1313
1356
  // Inline function 'kotlin.let' call
1314
- var pascal = $receiver.hx_1.zt();
1357
+ var pascal = $receiver.bx_1.zt();
1315
1358
  var tmp;
1316
1359
  switch (target.e3_1) {
1317
1360
  case 0:
1318
1361
  case 1:
1319
- tmp = Custom_init_$Create$(Companion_getInstance_1().o32_1.xt());
1362
+ tmp = Custom_init_$Create$(Companion_getInstance_1().n33_1.xt());
1320
1363
  break;
1321
1364
  case 2:
1322
- tmp = Custom_init_$Create$(pascal + '.' + Companion_getInstance_1().o32_1.xt());
1365
+ tmp = Custom_init_$Create$(pascal + '.' + Companion_getInstance_1().n33_1.xt());
1323
1366
  break;
1324
1367
  default:
1325
1368
  noWhenBranchMatchedException();
@@ -1330,12 +1373,12 @@ function withBuilder($this, $receiver, target) {
1330
1373
  var tmp_0;
1331
1374
  switch (target.e3_1) {
1332
1375
  case 0:
1333
- tmp_0 = listOf($receiver.sx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0($receiver.lx_1, entryPoint($this, model)), toBuilder($this, model)), builder($this, model, target))));
1376
+ tmp_0 = listOf($receiver.mx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0($receiver.fx_1, entryPoint($this, model)), toBuilder($this, model)), builder($this, model, target))));
1334
1377
  break;
1335
1378
  case 1:
1336
1379
  // Inline function 'kotlin.collections.filterNot' call
1337
1380
 
1338
- var tmp0 = $receiver.lx_1;
1381
+ var tmp0 = $receiver.fx_1;
1339
1382
  // Inline function 'kotlin.collections.filterNotTo' call
1340
1383
 
1341
1384
  var destination = ArrayList_init_$Create$();
@@ -1345,7 +1388,7 @@ function withBuilder($this, $receiver, target) {
1345
1388
  var tmp_1;
1346
1389
  if (element instanceof RawElement) {
1347
1390
  // Inline function 'kotlin.text.trim' call
1348
- var this_0 = element.gy_1;
1391
+ var this_0 = element.ay_1;
1349
1392
  tmp_1 = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE())) === 'companion object';
1350
1393
  } else {
1351
1394
  tmp_1 = false;
@@ -1355,10 +1398,10 @@ function withBuilder($this, $receiver, target) {
1355
1398
  }
1356
1399
  }
1357
1400
 
1358
- tmp_0 = listOf($receiver.sx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0(destination, Companion_getInstance_1().q32_1), toBuilder($this, model)), builder($this, model, target))));
1401
+ tmp_0 = listOf($receiver.mx(VOID, VOID, VOID, VOID, plus_0(plus_0(plus_0(destination, Companion_getInstance_1().p33_1), toBuilder($this, model)), builder($this, model, target))));
1359
1402
  break;
1360
1403
  case 2:
1361
- tmp_0 = listOf_0([$receiver.sx(VOID, VOID, VOID, VOID, plus_0($receiver.lx_1, toBuilder($this, model))), new Namespace($receiver.hx_1, listOf_0([entryPoint($this, model), builder($this, model, target)]))]);
1404
+ tmp_0 = listOf_0([$receiver.mx(VOID, VOID, VOID, VOID, plus_0($receiver.fx_1, toBuilder($this, model))), new Namespace($receiver.bx_1, listOf_0([entryPoint($this, model), builder($this, model, target)]))]);
1362
1405
  break;
1363
1406
  default:
1364
1407
  noWhenBranchMatchedException();
@@ -1370,7 +1413,7 @@ function entryPoint($this, $receiver) {
1370
1413
  var tmp = Companion_getInstance().wt('builder');
1371
1414
  var tmp_0 = emptyList();
1372
1415
  // Inline function 'kotlin.collections.associate' call
1373
- var this_0 = $receiver.n32_1;
1416
+ var this_0 = $receiver.m33_1;
1374
1417
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
1375
1418
  // Inline function 'kotlin.collections.associateTo' call
1376
1419
  var destination = LinkedHashMap_init_$Create$(capacity);
@@ -1378,16 +1421,16 @@ function entryPoint($this, $receiver) {
1378
1421
  while (_iterator__ex2g4s.u()) {
1379
1422
  var element = _iterator__ex2g4s.v();
1380
1423
  // Inline function 'kotlin.collections.plusAssign' call
1381
- var pair = to(element.cw_1, NullableEmpty_instance);
1424
+ var pair = to(element.wv_1, NullableEmpty_instance);
1382
1425
  destination.v2(pair.ff_1, pair.gf_1);
1383
1426
  }
1384
- return new Function(tmp, VOID, tmp_0, $receiver.m32_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.m32_1, destination))), VOID, true);
1427
+ return new Function(tmp, VOID, tmp_0, $receiver.l33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.l33_1, destination))), VOID, true);
1385
1428
  }
1386
1429
  function toBuilder($this, $receiver) {
1387
1430
  var tmp = Companion_getInstance().wt('toBuilder');
1388
1431
  var tmp_0 = emptyList();
1389
1432
  // Inline function 'kotlin.collections.associate' call
1390
- var this_0 = $receiver.n32_1;
1433
+ var this_0 = $receiver.m33_1;
1391
1434
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
1392
1435
  // Inline function 'kotlin.collections.associateTo' call
1393
1436
  var destination = LinkedHashMap_init_$Create$(capacity);
@@ -1397,7 +1440,7 @@ function toBuilder($this, $receiver) {
1397
1440
  // Inline function 'kotlin.let' call
1398
1441
  var self_1 = self_0($this, element);
1399
1442
  var tmp_1;
1400
- var tmp_2 = element.dw_1;
1443
+ var tmp_2 = element.xv_1;
1401
1444
  if (tmp_2 instanceof Nullable) {
1402
1445
  tmp_1 = self_1;
1403
1446
  } else {
@@ -1405,26 +1448,26 @@ function toBuilder($this, $receiver) {
1405
1448
  }
1406
1449
  var tmp$ret$3 = tmp_1;
1407
1450
  // Inline function 'kotlin.collections.plusAssign' call
1408
- var pair = to(element.cw_1, tmp$ret$3);
1451
+ var pair = to(element.wv_1, tmp$ret$3);
1409
1452
  destination.v2(pair.ff_1, pair.gf_1);
1410
1453
  }
1411
- return new Function(tmp, VOID, tmp_0, $receiver.m32_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.m32_1, destination))));
1454
+ return new Function(tmp, VOID, tmp_0, $receiver.l33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.l33_1, destination))));
1412
1455
  }
1413
1456
  function builder($this, $receiver, target) {
1414
- var tmp = Companion_getInstance_1().o32_1;
1457
+ var tmp = Companion_getInstance_1().n33_1;
1415
1458
  // Inline function 'kotlin.collections.map' call
1416
- var this_0 = $receiver.n32_1;
1459
+ var this_0 = $receiver.m33_1;
1417
1460
  // Inline function 'kotlin.collections.mapTo' call
1418
1461
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1419
1462
  var _iterator__ex2g4s = this_0.t();
1420
1463
  while (_iterator__ex2g4s.u()) {
1421
1464
  var item = _iterator__ex2g4s.v();
1422
- var tmp$ret$2 = new Field(item.cw_1, optional($this, item.dw_1), VOID, VOID, VOID, VOID, VOID, NullableEmpty_instance);
1465
+ var tmp$ret$2 = new Field(item.wv_1, optional($this, item.xv_1), VOID, VOID, VOID, VOID, VOID, NullableEmpty_instance);
1423
1466
  destination.x(tmp$ret$2);
1424
1467
  }
1425
1468
  var tmp_0 = destination;
1426
1469
  // Inline function 'kotlin.collections.map' call
1427
- var this_1 = $receiver.n32_1;
1470
+ var this_1 = $receiver.m33_1;
1428
1471
  // Inline function 'kotlin.collections.mapTo' call
1429
1472
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1430
1473
  var _iterator__ex2g4s_0 = this_1.t();
@@ -1436,10 +1479,10 @@ function builder($this, $receiver, target) {
1436
1479
  return new Struct(tmp, tmp_0, VOID, VOID, plus_0(destination_0, build($this, $receiver, target)), VOID, Visibility_PUBLIC_getInstance());
1437
1480
  }
1438
1481
  function wither($this, $receiver, field) {
1439
- var tmp = new Name(plus(listOf('with'), Companion_getInstance().wt(field.cw_1.xt()).ut_1));
1440
- var tmp_0 = listOf(new Parameter(Companion_getInstance_1().p32_1, required($this, field.dw_1)));
1482
+ var tmp = new Name(plus(listOf('with'), Companion_getInstance().wt(field.wv_1.xt()).ut_1));
1483
+ var tmp_0 = listOf(new Parameter(Companion_getInstance_1().o33_1, required($this, field.xv_1)));
1441
1484
  // Inline function 'kotlin.collections.associate' call
1442
- var this_0 = $receiver.n32_1;
1485
+ var this_0 = $receiver.m33_1;
1443
1486
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
1444
1487
  // Inline function 'kotlin.collections.associateTo' call
1445
1488
  var destination = LinkedHashMap_init_$Create$(capacity);
@@ -1447,16 +1490,16 @@ function wither($this, $receiver, field) {
1447
1490
  while (_iterator__ex2g4s.u()) {
1448
1491
  var element = _iterator__ex2g4s.v();
1449
1492
  // Inline function 'kotlin.collections.plusAssign' call
1450
- var pair = to(element.cw_1, element.cw_1.equals(field.cw_1) ? new NullableOf(new VariableReference(Companion_getInstance_1().p32_1)) : self_0($this, element));
1493
+ var pair = to(element.wv_1, element.wv_1.equals(field.wv_1) ? new NullableOf(new VariableReference(Companion_getInstance_1().o33_1)) : self_0($this, element));
1451
1494
  destination.v2(pair.ff_1, pair.gf_1);
1452
1495
  }
1453
- return new Function(tmp, VOID, tmp_0, $receiver.m32_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.m32_1, destination))));
1496
+ return new Function(tmp, VOID, tmp_0, $receiver.l33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.l33_1, destination))));
1454
1497
  }
1455
1498
  function build($this, $receiver, target) {
1456
1499
  var tmp = Companion_getInstance().wt('build');
1457
1500
  var tmp_0 = emptyList();
1458
1501
  // Inline function 'kotlin.collections.associate' call
1459
- var this_0 = $receiver.n32_1;
1502
+ var this_0 = $receiver.m33_1;
1460
1503
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
1461
1504
  // Inline function 'kotlin.collections.associateTo' call
1462
1505
  var destination = LinkedHashMap_init_$Create$(capacity);
@@ -1464,28 +1507,28 @@ function build($this, $receiver, target) {
1464
1507
  while (_iterator__ex2g4s.u()) {
1465
1508
  var element = _iterator__ex2g4s.v();
1466
1509
  var tmp_1;
1467
- var tmp_2 = element.dw_1;
1510
+ var tmp_2 = element.xv_1;
1468
1511
  if (tmp_2 instanceof Nullable) {
1469
1512
  tmp_1 = self_0($this, element);
1470
1513
  } else {
1471
- tmp_1 = require_0($this, element, target, $receiver.l32_1);
1514
+ tmp_1 = require_0($this, element, target, $receiver.k33_1);
1472
1515
  }
1473
1516
  // Inline function 'kotlin.collections.plusAssign' call
1474
- var pair = to(element.cw_1, tmp_1);
1517
+ var pair = to(element.wv_1, tmp_1);
1475
1518
  destination.v2(pair.ff_1, pair.gf_1);
1476
1519
  }
1477
- return new Function(tmp, VOID, tmp_0, $receiver.l32_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.l32_1, destination))));
1520
+ return new Function(tmp, VOID, tmp_0, $receiver.k33_1, listOf(new ReturnStatement(new ConstructorStatement($receiver.k33_1, destination))));
1478
1521
  }
1479
1522
  function require_0($this, $receiver, target, model) {
1480
1523
  // Inline function 'kotlin.let' call
1481
- var message = model.qu_1.zt() + '.' + trim_0($receiver.cw_1.xt(), charArrayOf([_Char___init__impl__6a9atx(96)])) + ' is required';
1524
+ var message = model.nu_1.zt() + '.' + trim_0($receiver.wv_1.xt(), charArrayOf([_Char___init__impl__6a9atx(96)])) + ' is required';
1482
1525
  var tmp;
1483
1526
  switch (target.e3_1) {
1484
1527
  case 0:
1485
1528
  tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().wt('orElseThrow'), mapOf(to(Companion_getInstance().wt('exceptionSupplier'), new RawExpression('() -> new IllegalStateException("' + message + '")'))));
1486
1529
  break;
1487
1530
  case 1:
1488
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().wt('checkNotNull'), mapOf_0([to(Companion_getInstance_1().p32_1, self_0($this, $receiver)), to(Companion_getInstance().wt('lazyMessage'), new RawExpression('{ "' + message + '" }'))]));
1531
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().wt('checkNotNull'), mapOf_0([to(Companion_getInstance_1().o33_1, self_0($this, $receiver)), to(Companion_getInstance().wt('lazyMessage'), new RawExpression('{ "' + message + '" }'))]));
1489
1532
  break;
1490
1533
  case 2:
1491
1534
  tmp = new FunctionCall(self_0($this, $receiver), VOID, Companion_getInstance().wt('getOrElse'), mapOf(to(Companion_getInstance().wt('default'), new RawExpression('throw new IllegalStateException("' + message + '")'))));
@@ -1497,7 +1540,7 @@ function require_0($this, $receiver, target, model) {
1497
1540
  return tmp;
1498
1541
  }
1499
1542
  function self_0($this, $receiver) {
1500
- return new FieldCall(new RawExpression('this'), $receiver.cw_1);
1543
+ return new FieldCall(new RawExpression('this'), $receiver.wv_1);
1501
1544
  }
1502
1545
  function optional($this, $receiver) {
1503
1546
  var tmp0_elvis_lhs = $receiver instanceof Nullable ? $receiver : null;
@@ -1505,14 +1548,14 @@ function optional($this, $receiver) {
1505
1548
  }
1506
1549
  function required($this, $receiver) {
1507
1550
  var tmp0_safe_receiver = $receiver instanceof Nullable ? $receiver : null;
1508
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.uu_1;
1551
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ru_1;
1509
1552
  return tmp1_elvis_lhs == null ? $receiver : tmp1_elvis_lhs;
1510
1553
  }
1511
1554
  function Companion_0() {
1512
1555
  Companion_instance_2 = this;
1513
- this.o32_1 = Companion_getInstance().wt('Builder');
1514
- this.p32_1 = Companion_getInstance().wt('value');
1515
- this.q32_1 = new RawElement('companion object {\n fun builder(): Builder = Builder()\n}');
1556
+ this.n33_1 = Companion_getInstance().wt('Builder');
1557
+ this.o33_1 = Companion_getInstance().wt('value');
1558
+ this.p33_1 = new RawElement('companion object {\n fun builder(): Builder = Builder()\n}');
1516
1559
  }
1517
1560
  var Companion_instance_2;
1518
1561
  function Companion_getInstance_1() {
@@ -1543,10 +1586,10 @@ function Target_Scala_getInstance() {
1543
1586
  }
1544
1587
  function JvmBuilderExtension(language) {
1545
1588
  Companion_getInstance_1();
1546
- this.r32_1 = language;
1589
+ this.q33_1 = language;
1547
1590
  var tmp = this;
1548
1591
  var tmp_0;
1549
- switch (this.r32_1.e3_1) {
1592
+ switch (this.q33_1.e3_1) {
1550
1593
  case 0:
1551
1594
  tmp_0 = Target_Java_getInstance();
1552
1595
  break;
@@ -1571,10 +1614,10 @@ function JvmBuilderExtension(language) {
1571
1614
  noWhenBranchMatchedException();
1572
1615
  break;
1573
1616
  }
1574
- tmp.s32_1 = tmp_0;
1617
+ tmp.r33_1 = tmp_0;
1575
1618
  }
1576
- protoOf(JvmBuilderExtension).b1b = function (ir, ast) {
1577
- var tmp0_safe_receiver = this.s32_1;
1619
+ protoOf(JvmBuilderExtension).f1b = function (ir, ast) {
1620
+ var tmp0_safe_receiver = this.r33_1;
1578
1621
  var tmp;
1579
1622
  if (tmp0_safe_receiver == null) {
1580
1623
  tmp = null;
@@ -1613,67 +1656,39 @@ protoOf(JvmBuilderExtension).b1b = function (ir, ast) {
1613
1656
  };
1614
1657
  function Companion_1() {
1615
1658
  }
1616
- protoOf(Companion_1).t32 = function (channel, types, refined) {
1659
+ protoOf(Companion_1).s33 = function (channel, types, refined) {
1617
1660
  var payloadRef = channel.yq_1;
1618
- var payloadType = KotlinGenerator_getInstance().m1b(convert(payloadRef));
1661
+ var payloadType = KotlinGenerator_getInstance().l1c(convert(payloadRef));
1619
1662
  var payloadCustom = payloadRef instanceof Custom ? payloadRef : null;
1620
1663
  var tmp;
1621
1664
  if (payloadCustom == null) {
1622
1665
  tmp = null;
1623
1666
  } else {
1624
1667
  // Inline function 'kotlin.let' call
1625
- tmp = Companion_instance_4.u32(payloadCustom.n19_1, types, refined, emptySet());
1668
+ tmp = Companion_instance_4.t33(payloadCustom.x19_1, types, refined);
1626
1669
  }
1627
1670
  var tmp1_elvis_lhs = tmp;
1628
1671
  var payloadFieldShapes = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
1629
- var tmp_0;
1630
- if (payloadCustom == null) {
1631
- tmp_0 = null;
1632
- } else {
1633
- // Inline function 'kotlin.let' call
1634
- tmp_0 = types.s2(payloadCustom.n19_1);
1635
- }
1636
- var tmp3_safe_receiver = tmp_0;
1637
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.lp_1;
1638
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : get_fields(tmp4_safe_receiver);
1639
- var tmp_1;
1640
- if (tmp5_safe_receiver == null) {
1641
- tmp_1 = null;
1642
- } else {
1643
- // Inline function 'kotlin.collections.map' call
1644
- // Inline function 'kotlin.collections.mapTo' call
1645
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_safe_receiver, 10));
1646
- var _iterator__ex2g4s = tmp5_safe_receiver.t();
1647
- while (_iterator__ex2g4s.u()) {
1648
- var item = _iterator__ex2g4s.v();
1649
- var tmp$ret$6 = item.pp_1;
1650
- destination.x(tmp$ret$6);
1651
- }
1652
- tmp_1 = destination;
1653
- }
1654
- var tmp6_elvis_lhs = tmp_1;
1655
- var directRefs = tmp6_elvis_lhs == null ? emptyList() : tmp6_elvis_lhs;
1656
- var modelImports = Companion_instance_4.v32(plus(listOf(payloadRef), directRefs), payloadFieldShapes, types);
1657
- return new ChannelShape(Companion_getInstance().wt(channel.xq_1.o1()).zt(), payloadType, payloadFieldShapes, modelImports);
1672
+ return new ChannelShape(Companion_getInstance().wt(channel.xq_1.o1()).zt(), payloadType, payloadFieldShapes, Companion_instance_4.u33(listOf(payloadRef)));
1658
1673
  };
1659
1674
  var Companion_instance_3;
1660
1675
  function Companion_getInstance_2() {
1661
1676
  return Companion_instance_3;
1662
1677
  }
1663
1678
  function ChannelShape(name, payloadType, payloadFieldShapes, modelImports) {
1664
- this.w32_1 = name;
1665
- this.x32_1 = payloadType;
1666
- this.y32_1 = payloadFieldShapes;
1667
- this.z32_1 = modelImports;
1679
+ this.v33_1 = name;
1680
+ this.w33_1 = payloadType;
1681
+ this.x33_1 = payloadFieldShapes;
1682
+ this.y33_1 = modelImports;
1668
1683
  }
1669
1684
  protoOf(ChannelShape).toString = function () {
1670
- return 'ChannelShape(name=' + this.w32_1 + ', payloadType=' + this.x32_1 + ', payloadFieldShapes=' + toString(this.y32_1) + ', modelImports=' + toString(this.z32_1) + ')';
1685
+ return 'ChannelShape(name=' + this.v33_1 + ', payloadType=' + this.w33_1 + ', payloadFieldShapes=' + toString(this.x33_1) + ', modelImports=' + toString(this.y33_1) + ')';
1671
1686
  };
1672
1687
  protoOf(ChannelShape).hashCode = function () {
1673
- var result = getStringHashCode(this.w32_1);
1674
- result = imul(result, 31) + getStringHashCode(this.x32_1) | 0;
1675
- result = imul(result, 31) + hashCode(this.y32_1) | 0;
1676
- result = imul(result, 31) + hashCode(this.z32_1) | 0;
1688
+ var result = getStringHashCode(this.v33_1);
1689
+ result = imul(result, 31) + getStringHashCode(this.w33_1) | 0;
1690
+ result = imul(result, 31) + hashCode(this.x33_1) | 0;
1691
+ result = imul(result, 31) + hashCode(this.y33_1) | 0;
1677
1692
  return result;
1678
1693
  };
1679
1694
  protoOf(ChannelShape).equals = function (other) {
@@ -1681,52 +1696,46 @@ protoOf(ChannelShape).equals = function (other) {
1681
1696
  return true;
1682
1697
  if (!(other instanceof ChannelShape))
1683
1698
  return false;
1684
- if (!(this.w32_1 === other.w32_1))
1699
+ if (!(this.v33_1 === other.v33_1))
1685
1700
  return false;
1686
- if (!(this.x32_1 === other.x32_1))
1701
+ if (!(this.w33_1 === other.w33_1))
1687
1702
  return false;
1688
- if (!equals(this.y32_1, other.y32_1))
1703
+ if (!equals(this.x33_1, other.x33_1))
1689
1704
  return false;
1690
- if (!equals(this.z32_1, other.z32_1))
1705
+ if (!equals(this.y33_1, other.y33_1))
1691
1706
  return false;
1692
1707
  return true;
1693
1708
  };
1694
- function ChannelDslFile$build$lambda$lambda$lambda($builder, $arbPayload, $payload, $shape) {
1709
+ function ChannelDslFile$build$lambda$lambda$lambda($builder, $arbPayload, $payload) {
1695
1710
  return function ($this$function) {
1696
- $this$function.l13(Visibility_PUBLIC_getInstance());
1697
- $this$function.o13('block', $this$function.s14(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.t14('{}'));
1698
- $this$function.j13($arbPayload);
1699
- $this$function.i14('val builder = ' + $builder + '().apply(block)');
1700
- $this$function.i14('return channelCall<' + $payload + '>(' + $shape.w32_1 + '::class).messageGen {');
1701
- // Inline function 'kotlin.text.trimEnd' call
1702
- var this_0 = RecordBuilder_instance.a33($shape.y32_1, 'builder', emptyList(), ' ');
1703
- var tmp$ret$0 = toString(trimEnd(isCharSequence(this_0) ? this_0 : THROW_CCE()));
1704
- $this$function.i14(tmp$ret$0);
1705
- $this$function.i14('}');
1711
+ $this$function.v13(Visibility_PUBLIC_getInstance());
1712
+ $this$function.y13('block', $this$function.c15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.d15('{}'));
1713
+ $this$function.t13($arbPayload);
1714
+ $this$function.s14('val builder = ' + $builder + '().apply(block)');
1715
+ $this$function.s14('return generatedGen { generator, rs -> builder.applyTo(' + $payload + 'Generator.generate(generator, emptyList()), rs) }');
1706
1716
  return Unit_instance;
1707
1717
  };
1708
1718
  }
1709
1719
  function ChannelDslFile$build$lambda$lambda$lambda_0($arbPayload, $payload, $shape) {
1710
1720
  return function ($this$function) {
1711
- $this$function.l13(Visibility_PUBLIC_getInstance());
1712
- $this$function.j13($arbPayload);
1713
- $this$function.p13($this$function.t14('channelCall<' + $payload + '>(' + $shape.w32_1 + '::class).messageGen()'));
1721
+ $this$function.v13(Visibility_PUBLIC_getInstance());
1722
+ $this$function.t13($arbPayload);
1723
+ $this$function.z13($this$function.d15('channelCall<' + $payload + '>(' + $shape.v33_1 + '::class).messageGen()'));
1714
1724
  return Unit_instance;
1715
1725
  };
1716
1726
  }
1717
- function ChannelDslFile$build$lambda$lambda($shape, $payload, $arbPayload) {
1727
+ function ChannelDslFile$build$lambda$lambda($isRecord, $payload, $arbPayload, $shape) {
1718
1728
  return function ($this$struct) {
1719
- $this$struct.h15();
1720
- $this$struct.l13(Visibility_PUBLIC_getInstance());
1721
- $this$struct.i15(Visibility_INTERNAL_getInstance());
1729
+ $this$struct.r15();
1730
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
1731
+ $this$struct.s15(Visibility_INTERNAL_getInstance());
1722
1732
  var tmp;
1723
- // Inline function 'kotlin.collections.isNotEmpty' call
1724
- if (!$shape.y32_1.r()) {
1725
- var builder = RecordBuilder_instance.b33($payload);
1726
- $this$struct.w15('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda(builder, $arbPayload, $payload, $shape));
1733
+ if ($isRecord) {
1734
+ var builder = RecordBuilder_instance.z33($payload);
1735
+ $this$struct.g16('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda(builder, $arbPayload, $payload));
1727
1736
  tmp = Unit_instance;
1728
1737
  } else {
1729
- $this$struct.w15('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda_0($arbPayload, $payload, $shape));
1738
+ $this$struct.g16('message', VOID, VOID, ChannelDslFile$build$lambda$lambda$lambda_0($arbPayload, $payload, $shape));
1730
1739
  tmp = Unit_instance;
1731
1740
  }
1732
1741
  return Unit_instance;
@@ -1734,72 +1743,84 @@ function ChannelDslFile$build$lambda$lambda($shape, $payload, $arbPayload) {
1734
1743
  }
1735
1744
  function ChannelDslFile$build$lambda$lambda_0($genPayload, $payload, $shape) {
1736
1745
  return function ($this$asyncFunction) {
1737
- $this$asyncFunction.l13(Visibility_PUBLIC_getInstance());
1738
- $this$asyncFunction.k13($genPayload);
1739
- $this$asyncFunction.o13('topic', new Nullable(String_instance), $this$asyncFunction.t14('null'));
1740
- $this$asyncFunction.o13('key', new Nullable(String_instance), $this$asyncFunction.t14('null'));
1741
- $this$asyncFunction.j13(Custom_init_$Create$($payload));
1742
- $this$asyncFunction.i14('val call = channelCall<' + $payload + '>(' + $shape.w32_1 + '::class)');
1743
- $this$asyncFunction.i14('topic?.let { call.topic(it) }');
1744
- $this$asyncFunction.i14('key?.let { call.key(it) }');
1745
- $this$asyncFunction.p13($this$asyncFunction.t14('call.send(this)'));
1746
+ $this$asyncFunction.v13(Visibility_PUBLIC_getInstance());
1747
+ $this$asyncFunction.u13($genPayload);
1748
+ $this$asyncFunction.y13('topic', new Nullable(String_instance), $this$asyncFunction.d15('null'));
1749
+ $this$asyncFunction.y13('key', new Nullable(String_instance), $this$asyncFunction.d15('null'));
1750
+ $this$asyncFunction.t13(Custom_init_$Create$($payload));
1751
+ $this$asyncFunction.s14('val call = channelCall<' + $payload + '>(' + $shape.v33_1 + '::class)');
1752
+ $this$asyncFunction.s14('topic?.let { call.topic(it) }');
1753
+ $this$asyncFunction.s14('key?.let { call.key(it) }');
1754
+ $this$asyncFunction.z13($this$asyncFunction.d15('call.send(this)'));
1746
1755
  return Unit_instance;
1747
1756
  };
1748
1757
  }
1749
- function ChannelDslFile$build$lambda($kotestPkg, $channelPkg, $shape, $modelPkg, $emitSend, $payload, $arbPayload, $genPayload) {
1758
+ function ChannelDslFile$build$lambda($kotestPkg, $shape, $emitSend, $packageName, $payload, $channelPkg, $modelPkg, $arbPayload, $genPayload) {
1750
1759
  return function ($this$file) {
1751
- $this$file.e17($kotestPkg);
1752
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'channelCall');
1753
- $this$file.s15('io.kotest.property', 'Arb');
1754
- $this$file.s15('io.kotest.property', 'Gen');
1755
- $this$file.s15($channelPkg, $shape.w32_1);
1760
+ $this$file.o17($kotestPkg);
1761
+ // Inline function 'kotlin.collections.isNotEmpty' call
1762
+ var isRecord = !$shape.x33_1.r();
1763
+ var tmp;
1764
+ if ($emitSend || !isRecord) {
1765
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'channelCall');
1766
+ tmp = Unit_instance;
1767
+ }
1768
+ var tmp_0;
1769
+ if (isRecord) {
1770
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
1771
+ $this$file.c16($packageName.bt_1 + '.generator', $payload + 'Generator');
1772
+ tmp_0 = Unit_instance;
1773
+ }
1774
+ $this$file.c16('io.kotest.property', 'Arb');
1775
+ $this$file.c16('io.kotest.property', 'Gen');
1776
+ $this$file.c16($channelPkg, $shape.v33_1);
1756
1777
  // Inline function 'kotlin.collections.forEach' call
1757
- var _iterator__ex2g4s = $shape.z32_1.t();
1778
+ var _iterator__ex2g4s = $shape.y33_1.t();
1758
1779
  while (_iterator__ex2g4s.u()) {
1759
1780
  var element = _iterator__ex2g4s.v();
1760
- $this$file.s15($modelPkg, Companion_getInstance().wt(element).zt());
1781
+ $this$file.c16($modelPkg, Companion_getInstance().wt(element).zt());
1761
1782
  }
1762
- var tmp = $shape.w32_1 + 'Generate';
1763
- $this$file.f17(tmp, ChannelDslFile$build$lambda$lambda($shape, $payload, $arbPayload));
1764
- $this$file.u15('generate', Custom_init_$Create$($shape.w32_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.w32_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.w32_1 + 'Generate')));
1765
- var tmp_0;
1783
+ var tmp_1 = $shape.v33_1 + 'Generate';
1784
+ $this$file.p17(tmp_1, ChannelDslFile$build$lambda$lambda(isRecord, $payload, $arbPayload, $shape));
1785
+ $this$file.e16('generate', Custom_init_$Create$($shape.v33_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.v33_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.v33_1 + 'Generate')));
1786
+ var tmp_2;
1766
1787
  if ($emitSend) {
1767
- $this$file.a16('send', VOID, VOID, ChannelDslFile$build$lambda$lambda_0($genPayload, $payload, $shape));
1768
- tmp_0 = Unit_instance;
1788
+ $this$file.k16('send', VOID, VOID, ChannelDslFile$build$lambda$lambda_0($genPayload, $payload, $shape));
1789
+ tmp_2 = Unit_instance;
1769
1790
  }
1770
1791
  return Unit_instance;
1771
1792
  };
1772
1793
  }
1773
1794
  function ChannelDslFile() {
1774
1795
  }
1775
- protoOf(ChannelDslFile).c33 = function (channel, packageName, types, refined, emitSend) {
1776
- var shape = Companion_instance_3.t32(channel, types, refined);
1796
+ protoOf(ChannelDslFile).a34 = function (channel, packageName, types, refined, emitSend) {
1797
+ var shape = Companion_instance_3.s33(channel, types, refined);
1777
1798
  var kotestPkg = packageName.bt_1 + '.kotest';
1778
1799
  var channelPkg = packageName.bt_1 + '.channel';
1779
1800
  var modelPkg = packageName.bt_1 + '.model';
1780
- var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.w32_1 + 'Dsl');
1781
- var payload = shape.x32_1;
1801
+ var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.v33_1 + 'Dsl');
1802
+ var payload = shape.w33_1;
1782
1803
  var genPayload = Custom_init_$Create$('Gen', listOf(Custom_init_$Create$(payload)));
1783
1804
  var arbPayload = Custom_init_$Create$('Arb', listOf(Custom_init_$Create$(payload)));
1784
1805
  var tmp = Companion_getInstance().wt(fileName);
1785
- return file(tmp, ChannelDslFile$build$lambda(kotestPkg, channelPkg, shape, modelPkg, emitSend, payload, arbPayload, genPayload));
1806
+ return file(tmp, ChannelDslFile$build$lambda(kotestPkg, shape, emitSend, packageName, payload, channelPkg, modelPkg, arbPayload, genPayload));
1786
1807
  };
1787
1808
  var ChannelDslFile_instance;
1788
1809
  function ChannelDslFile_getInstance() {
1789
1810
  return ChannelDslFile_instance;
1790
1811
  }
1791
1812
  function Slot(name, genFn, fields) {
1792
- this.d33_1 = name;
1793
- this.e33_1 = genFn;
1794
- this.f33_1 = fields;
1813
+ this.b34_1 = name;
1814
+ this.c34_1 = genFn;
1815
+ this.d34_1 = fields;
1795
1816
  }
1796
1817
  protoOf(Slot).toString = function () {
1797
- return 'Slot(name=' + this.d33_1 + ', genFn=' + this.e33_1 + ', fields=' + toString(this.f33_1) + ')';
1818
+ return 'Slot(name=' + this.b34_1 + ', genFn=' + this.c34_1 + ', fields=' + toString(this.d34_1) + ')';
1798
1819
  };
1799
1820
  protoOf(Slot).hashCode = function () {
1800
- var result = getStringHashCode(this.d33_1);
1801
- result = imul(result, 31) + getStringHashCode(this.e33_1) | 0;
1802
- result = imul(result, 31) + hashCode(this.f33_1) | 0;
1821
+ var result = getStringHashCode(this.b34_1);
1822
+ result = imul(result, 31) + getStringHashCode(this.c34_1) | 0;
1823
+ result = imul(result, 31) + hashCode(this.d34_1) | 0;
1803
1824
  return result;
1804
1825
  };
1805
1826
  protoOf(Slot).equals = function (other) {
@@ -1807,24 +1828,24 @@ protoOf(Slot).equals = function (other) {
1807
1828
  return true;
1808
1829
  if (!(other instanceof Slot))
1809
1830
  return false;
1810
- if (!(this.d33_1 === other.d33_1))
1831
+ if (!(this.b34_1 === other.b34_1))
1811
1832
  return false;
1812
- if (!(this.e33_1 === other.e33_1))
1833
+ if (!(this.c34_1 === other.c34_1))
1813
1834
  return false;
1814
- if (!equals(this.f33_1, other.f33_1))
1835
+ if (!equals(this.d34_1, other.d34_1))
1815
1836
  return false;
1816
1837
  return true;
1817
1838
  };
1818
1839
  function presentSlots($this, shape) {
1819
1840
  // Inline function 'kotlin.collections.filter' call
1820
- var tmp0 = listOf_0([new Slot('path', 'pathGen', shape.h33_1), new Slot('query', 'queryGen', shape.i33_1), new Slot('header', 'headerGen', shape.j33_1)]);
1841
+ var tmp0 = listOf_0([new Slot('path', 'pathGen', shape.f34_1), new Slot('query', 'queryGen', shape.g34_1), new Slot('header', 'headerGen', shape.h34_1)]);
1821
1842
  // Inline function 'kotlin.collections.filterTo' call
1822
1843
  var destination = ArrayList_init_$Create$();
1823
1844
  var _iterator__ex2g4s = tmp0.t();
1824
1845
  while (_iterator__ex2g4s.u()) {
1825
1846
  var element = _iterator__ex2g4s.v();
1826
1847
  // Inline function 'kotlin.collections.isNotEmpty' call
1827
- if (!element.f33_1.r()) {
1848
+ if (!element.d34_1.r()) {
1828
1849
  destination.x(element);
1829
1850
  }
1830
1851
  }
@@ -1838,7 +1859,7 @@ function requiredSlots($this, shape) {
1838
1859
  var _iterator__ex2g4s = tmp0.t();
1839
1860
  while (_iterator__ex2g4s.u()) {
1840
1861
  var element = _iterator__ex2g4s.v();
1841
- var tmp0_0 = element.f33_1;
1862
+ var tmp0_0 = element.d34_1;
1842
1863
  var tmp$ret$3;
1843
1864
  $l$block_0: {
1844
1865
  // Inline function 'kotlin.collections.any' call
@@ -1855,7 +1876,7 @@ function requiredSlots($this, shape) {
1855
1876
  var _iterator__ex2g4s_0 = tmp0_0.t();
1856
1877
  while (_iterator__ex2g4s_0.u()) {
1857
1878
  var element_0 = _iterator__ex2g4s_0.v();
1858
- if (!element_0.s33_1) {
1879
+ if (!element_0.q34_1) {
1859
1880
  tmp$ret$3 = true;
1860
1881
  break $l$block_0;
1861
1882
  }
@@ -1884,7 +1905,7 @@ function cap($this, name) {
1884
1905
  return tmp;
1885
1906
  }
1886
1907
  function slotBuilderName($this, shape, slot) {
1887
- return shape.g33_1 + cap($this, slot.d33_1) + 'Builder';
1908
+ return shape.e34_1 + cap($this, slot.b34_1) + 'Builder';
1888
1909
  }
1889
1910
  function genOf($this, inner) {
1890
1911
  return Custom_init_$Create$('Gen', listOf(inner));
@@ -1908,26 +1929,26 @@ function suspendScopeType($this, scope) {
1908
1929
  return new Function_0(emptyList(), Unit_instance_0, Custom_init_$Create$(scope), true);
1909
1930
  }
1910
1931
  function buildGenerateWrapper($this, $receiver, shape) {
1911
- var tmp = shape.g33_1 + 'Generate';
1912
- $receiver.f17(tmp, EndpointDslFile$buildGenerateWrapper$lambda(shape));
1932
+ var tmp = shape.e34_1 + 'Generate';
1933
+ $receiver.p17(tmp, EndpointDslFile$buildGenerateWrapper$lambda(shape));
1913
1934
  }
1914
1935
  function buildRequestCall($this, $receiver, shape) {
1915
- $receiver.a16('call', VOID, VOID, EndpointDslFile$buildRequestCall$lambda(shape));
1936
+ $receiver.k16('call', VOID, VOID, EndpointDslFile$buildRequestCall$lambda(shape));
1916
1937
  }
1917
1938
  function buildResponseMock($this, $receiver, shape) {
1918
- $receiver.a16('mock', VOID, VOID, EndpointDslFile$buildResponseMock$lambda(shape));
1939
+ $receiver.k16('mock', VOID, VOID, EndpointDslFile$buildResponseMock$lambda(shape));
1919
1940
  }
1920
1941
  function buildResponseScope($this, $receiver, shape, variant) {
1921
- var scopeName = shape.g33_1 + variant.u33_1 + 'Scope';
1922
- var variantType = shape.g33_1 + '.' + variant.u33_1;
1923
- var tmp0_safe_receiver = variant.w33_1;
1942
+ var scopeName = shape.e34_1 + variant.s34_1 + 'Scope';
1943
+ var variantType = shape.e34_1 + '.' + variant.s34_1;
1944
+ var tmp0_safe_receiver = variant.u34_1;
1924
1945
  var tmp;
1925
1946
  if (tmp0_safe_receiver == null) {
1926
1947
  tmp = null;
1927
1948
  } else {
1928
1949
  // Inline function 'kotlin.takeIf' call
1929
1950
  var tmp_0;
1930
- if (!variant.v33_1.equals(BodyKind_None_getInstance())) {
1951
+ if (!variant.t34_1.equals(BodyKind_None_getInstance())) {
1931
1952
  tmp_0 = tmp0_safe_receiver;
1932
1953
  } else {
1933
1954
  tmp_0 = null;
@@ -1935,11 +1956,11 @@ function buildResponseScope($this, $receiver, shape, variant) {
1935
1956
  tmp = tmp_0;
1936
1957
  }
1937
1958
  var bodyType = tmp;
1938
- $receiver.f17(scopeName, EndpointDslFile$buildResponseScope$lambda(shape, variantType, bodyType, variant));
1959
+ $receiver.p17(scopeName, EndpointDslFile$buildResponseScope$lambda(shape, variantType, bodyType, variant));
1939
1960
  }
1940
1961
  function buildScopeClass($this, $receiver, shape, present, required) {
1941
- var tmp = shape.g33_1 + 'Scope';
1942
- $receiver.f17(tmp, EndpointDslFile$buildScopeClass$lambda(shape, present, required));
1962
+ var tmp = shape.e34_1 + 'Scope';
1963
+ $receiver.p17(tmp, EndpointDslFile$buildScopeClass$lambda(shape, present, required));
1943
1964
  }
1944
1965
  function renderFlushBody($this, shape, present, required) {
1945
1966
  // Inline function 'kotlin.text.buildString' call
@@ -1951,7 +1972,7 @@ function renderFlushBody($this, shape, present, required) {
1951
1972
  var _iterator__ex2g4s = required.t();
1952
1973
  while (_iterator__ex2g4s.u()) {
1953
1974
  var item = _iterator__ex2g4s.v();
1954
- var tmp$ret$5 = item.d33_1;
1975
+ var tmp$ret$5 = item.b34_1;
1955
1976
  destination.x(tmp$ret$5);
1956
1977
  }
1957
1978
  var requiredNames = toSet_0(destination);
@@ -1968,14 +1989,14 @@ function renderFlushBody($this, shape, present, required) {
1968
1989
  while (_iterator__ex2g4s_0.u()) {
1969
1990
  var element = _iterator__ex2g4s_0.v();
1970
1991
  var builderClass = slotBuilderName(EndpointDslFile_instance, shape, element);
1971
- var builderVar = element.d33_1 + 'Builder';
1972
- if (requiredNames.i1(element.d33_1)) {
1992
+ var builderVar = element.b34_1 + 'Builder';
1993
+ if (requiredNames.i1(element.b34_1)) {
1973
1994
  // Inline function 'kotlin.text.appendLine' call
1974
- var value_1 = 'val ' + builderVar + ' = ' + builderClass + '().apply(' + element.d33_1 + ' ?: error("' + shape.g33_1 + ': required `' + element.d33_1 + '` block is missing"))';
1995
+ var value_1 = 'val ' + builderVar + ' = ' + builderClass + '().apply(' + element.b34_1 + ' ?: error("' + shape.e34_1 + ': required `' + element.b34_1 + '` block is missing"))';
1975
1996
  // Inline function 'kotlin.text.appendLine' call
1976
1997
  this_0.q(value_1).s(_Char___init__impl__6a9atx(10));
1977
1998
  // Inline function 'kotlin.collections.forEach' call
1978
- var _iterator__ex2g4s_1 = element.f33_1.t();
1999
+ var _iterator__ex2g4s_1 = element.d34_1.t();
1979
2000
  while (_iterator__ex2g4s_1.u()) {
1980
2001
  var element_0 = _iterator__ex2g4s_1.v();
1981
2002
  // Inline function 'kotlin.text.appendLine' call
@@ -1985,11 +2006,11 @@ function renderFlushBody($this, shape, present, required) {
1985
2006
  }
1986
2007
  } else {
1987
2008
  // Inline function 'kotlin.text.appendLine' call
1988
- var value_3 = 'val ' + builderVar + ' = ' + element.d33_1 + '?.let { block -> ' + builderClass + '().apply(block) }';
2009
+ var value_3 = 'val ' + builderVar + ' = ' + element.b34_1 + '?.let { block -> ' + builderClass + '().apply(block) }';
1989
2010
  // Inline function 'kotlin.text.appendLine' call
1990
2011
  this_0.q(value_3).s(_Char___init__impl__6a9atx(10));
1991
2012
  // Inline function 'kotlin.collections.forEach' call
1992
- var _iterator__ex2g4s_2 = element.f33_1.t();
2013
+ var _iterator__ex2g4s_2 = element.d34_1.t();
1993
2014
  while (_iterator__ex2g4s_2.u()) {
1994
2015
  var element_1 = _iterator__ex2g4s_2.v();
1995
2016
  // Inline function 'kotlin.text.appendLine' call
@@ -2000,16 +2021,16 @@ function renderFlushBody($this, shape, present, required) {
2000
2021
  }
2001
2022
  }
2002
2023
  // Inline function 'kotlin.collections.isNotEmpty' call
2003
- if (!shape.n33_1.r()) {
2004
- var builderName = RecordBuilder_instance.b33(requireBodyElementType(EndpointDslFile_instance, shape));
2005
- var isList = shape.k33_1.equals(BodyKind_List_getInstance());
2006
- var elementType = shape.l33_1;
2024
+ if (!shape.l34_1.r()) {
2025
+ var elementType = requireBodyElementType(EndpointDslFile_instance, shape);
2026
+ var isList = shape.i34_1.equals(BodyKind_List_getInstance());
2027
+ var body = new RecordRef(elementType, isList, false, false);
2007
2028
  // Inline function 'kotlin.text.appendLine' call
2008
2029
  var value_5 = 'body?.let { block ->';
2009
2030
  // Inline function 'kotlin.text.appendLine' call
2010
2031
  this_0.q(value_5).s(_Char___init__impl__6a9atx(10));
2011
2032
  // Inline function 'kotlin.text.appendLine' call
2012
- var value_6 = ' val builder = ' + builderName + '().apply(block)';
2033
+ var value_6 = ' val builder = ' + RecordBuilder_instance.z33(elementType) + '().apply(block)';
2013
2034
  // Inline function 'kotlin.text.appendLine' call
2014
2035
  this_0.q(value_6).s(_Char___init__impl__6a9atx(10));
2015
2036
  if (isList) {
@@ -2019,46 +2040,22 @@ function renderFlushBody($this, shape, present, required) {
2019
2040
  this_0.q(value_7).s(_Char___init__impl__6a9atx(10));
2020
2041
  }
2021
2042
  // Inline function 'kotlin.text.appendLine' call
2022
- var value_8 = ' inner.bodyTransform { rawBase, rs ->';
2043
+ var value_8 = ' inner.bodyTransform { base, rs -> ' + body.b35('base', 'builder') + ' }';
2023
2044
  // Inline function 'kotlin.text.appendLine' call
2024
2045
  this_0.q(value_8).s(_Char___init__impl__6a9atx(10));
2025
- if (isList) {
2026
- // Inline function 'kotlin.text.appendLine' call
2027
- var value_9 = ' @Suppress("UNCHECKED_CAST")';
2028
- // Inline function 'kotlin.text.appendLine' call
2029
- this_0.q(value_9).s(_Char___init__impl__6a9atx(10));
2030
- // Inline function 'kotlin.text.appendLine' call
2031
- var value_10 = ' (rawBase as List<' + elementType + '>).map { base ->';
2032
- // Inline function 'kotlin.text.appendLine' call
2033
- this_0.q(value_10).s(_Char___init__impl__6a9atx(10));
2034
- appendBodyCopy(EndpointDslFile_instance, this_0, 'base', 'builder', shape, ' ');
2035
- // Inline function 'kotlin.text.appendLine' call
2036
- var value_11 = ' }';
2037
- // Inline function 'kotlin.text.appendLine' call
2038
- this_0.q(value_11).s(_Char___init__impl__6a9atx(10));
2039
- } else {
2040
- // Inline function 'kotlin.text.appendLine' call
2041
- var value_12 = ' val base = rawBase as ' + elementType;
2042
- // Inline function 'kotlin.text.appendLine' call
2043
- this_0.q(value_12).s(_Char___init__impl__6a9atx(10));
2044
- appendBodyCopy(EndpointDslFile_instance, this_0, 'base', 'builder', shape, ' ');
2045
- }
2046
- // Inline function 'kotlin.text.appendLine' call
2047
- // Inline function 'kotlin.text.appendLine' call
2048
- this_0.q(' }').s(_Char___init__impl__6a9atx(10));
2049
2046
  // Inline function 'kotlin.text.appendLine' call
2050
2047
  // Inline function 'kotlin.text.appendLine' call
2051
2048
  this_0.q('}').s(_Char___init__impl__6a9atx(10));
2052
2049
  }
2053
- if (shape.k33_1.equals(BodyKind_Primitive_getInstance())) {
2050
+ if (shape.i34_1.equals(BodyKind_Primitive_getInstance())) {
2054
2051
  // Inline function 'kotlin.text.appendLine' call
2055
- var value_13 = 'body?.let { gen ->';
2052
+ var value_9 = 'body?.let { gen ->';
2056
2053
  // Inline function 'kotlin.text.appendLine' call
2057
- this_0.q(value_13).s(_Char___init__impl__6a9atx(10));
2054
+ this_0.q(value_9).s(_Char___init__impl__6a9atx(10));
2058
2055
  // Inline function 'kotlin.text.appendLine' call
2059
- var value_14 = ' inner.bodyTransform { _, rs -> gen.draw(rs) }';
2056
+ var value_10 = ' inner.bodyTransform { _, rs -> gen.draw(rs) }';
2060
2057
  // Inline function 'kotlin.text.appendLine' call
2061
- this_0.q(value_14).s(_Char___init__impl__6a9atx(10));
2058
+ this_0.q(value_10).s(_Char___init__impl__6a9atx(10));
2062
2059
  // Inline function 'kotlin.text.appendLine' call
2063
2060
  // Inline function 'kotlin.text.appendLine' call
2064
2061
  this_0.q('}').s(_Char___init__impl__6a9atx(10));
@@ -2068,86 +2065,26 @@ function renderFlushBody($this, shape, present, required) {
2068
2065
  function registerLine($this, shape, slot, builderVar, field, indent, nullableBuilder) {
2069
2066
  nullableBuilder = nullableBuilder === VOID ? false : nullableBuilder;
2070
2067
  var access = nullableBuilder ? '?.' : '.';
2071
- var ref = builderVar + access + escapeKotlinIdentifier(field.q33_1);
2068
+ var ref = builderVar + access + escapeKotlinIdentifier(field.o34_1);
2072
2069
  var tmp;
2073
- if (field.s33_1) {
2070
+ if (field.q34_1) {
2074
2071
  tmp = 'Arb.constant(null)';
2075
2072
  } else {
2076
- tmp = 'error("' + shape.g33_1 + '.' + slot.d33_1 + ': required `' + field.q33_1 + '` is missing")';
2073
+ tmp = 'error("' + shape.e34_1 + '.' + slot.b34_1 + ': required `' + field.o34_1 + '` is missing")';
2077
2074
  }
2078
2075
  var fallback = tmp;
2079
- return indent + 'inner.' + slot.e33_1 + '("' + field.q33_1 + '", ' + ref + ' ?: ' + fallback + ')';
2076
+ return indent + 'inner.' + slot.c34_1 + '("' + field.o34_1 + '", ' + ref + ' ?: ' + fallback + ')';
2080
2077
  }
2081
2078
  function buildSlotBuilder($this, $receiver, shape, slot) {
2082
2079
  var tmp = slotBuilderName($this, shape, slot);
2083
- $receiver.f17(tmp, EndpointDslFile$buildSlotBuilder$lambda(slot));
2084
- }
2085
- function appendBodyCopy($this, $receiver, baseExpr, receiver, shape, indent) {
2086
- // Inline function 'kotlin.text.appendLine' call
2087
- var value = indent + baseExpr + '.copy(';
2088
- // Inline function 'kotlin.text.appendLine' call
2089
- $receiver.q(value).s(_Char___init__impl__6a9atx(10));
2090
- // Inline function 'kotlin.collections.forEach' call
2091
- var _iterator__ex2g4s = shape.n33_1.t();
2092
- while (_iterator__ex2g4s.u()) {
2093
- var element = _iterator__ex2g4s.v();
2094
- // Inline function 'kotlin.text.appendLine' call
2095
- var value_0 = indent + ' ' + escapeKotlinIdentifier(element.m()) + ' = ' + copyValueExpr(EndpointDslFile_instance, element, baseExpr, receiver) + ',';
2096
- // Inline function 'kotlin.text.appendLine' call
2097
- $receiver.q(value_0).s(_Char___init__impl__6a9atx(10));
2098
- }
2099
- // Inline function 'kotlin.text.appendLine' call
2100
- var value_1 = indent + ')';
2101
- // Inline function 'kotlin.text.appendLine' call
2102
- $receiver.q(value_1).s(_Char___init__impl__6a9atx(10));
2103
- }
2104
- function copyValueExpr($this, field, baseExpr, receiver) {
2105
- var fieldRef = escapeKotlinIdentifier(field.m());
2106
- var baseField = baseExpr + '.' + fieldRef;
2107
- var tmp;
2108
- if (field instanceof Primitive_0) {
2109
- tmp = receiver + '.' + fieldRef + '.let { gen -> if (gen == null) ' + baseField + ' else ' + wrapDrawn($this, 'gen.draw(rs)', field) + ' }';
2110
- } else {
2111
- if (field instanceof NestedObject) {
2112
- tmp = nestedCopyExpr($this, field.c34_1, field.d34_1, field.e34_1, baseExpr, receiver, false);
2113
- } else {
2114
- if (field instanceof NestedList) {
2115
- tmp = nestedCopyExpr($this, field.z33_1, field.a34_1, field.b34_1, baseExpr, receiver, true);
2116
- } else {
2117
- noWhenBranchMatchedException();
2118
- }
2119
- }
2120
- }
2121
- return tmp;
2122
- }
2123
- function nestedCopyExpr($this, fieldName, nestedTypeName, fields, baseExpr, receiver, isList) {
2124
- var fieldRef = escapeKotlinIdentifier(fieldName);
2125
- var blockRef = escapeKotlinIdentifier('_' + fieldName + 'Block');
2126
- var baseField = baseExpr + '.' + fieldRef;
2127
- var nestedBuilder = RecordBuilder_instance.b33(nestedTypeName);
2128
- var nestedVar = escapeKotlinIdentifier('nested_' + fieldName);
2129
- var elemVar = escapeKotlinIdentifier((isList ? 'elem' : 'base') + '_' + fieldName);
2130
- var overBase = isList ? '?.map' : '?.let';
2131
- var subs = joinToString(fields, ', ', VOID, VOID, VOID, VOID, EndpointDslFile$nestedCopyExpr$lambda(elemVar, nestedVar));
2132
- return receiver + '.' + fieldRef + '.let { gen -> if (gen != null) gen.draw(rs) else ' + (receiver + '.' + blockRef + '?.let { block -> val ' + nestedVar + ' = ' + nestedBuilder + '().apply(block); ') + (baseField + overBase + ' { ' + elemVar + ' -> ' + elemVar + '.copy(' + subs + ') } } ?: ' + baseField + ' }');
2133
- }
2134
- function wrapDrawn($this, drawn, field) {
2135
- var tmp0_elvis_lhs = field.h34_1;
2136
- var tmp;
2137
- if (tmp0_elvis_lhs == null) {
2138
- return drawn;
2139
- } else {
2140
- tmp = tmp0_elvis_lhs;
2141
- }
2142
- var refined = tmp;
2143
- return field.i34_1 && field.j34_1 ? drawn + '?.map { ' + refined + '(it) }' : field.i34_1 ? drawn + '.map { ' + refined + '(it) }' : field.j34_1 ? drawn + '?.let { ' + refined + '(it) }' : refined + '(' + drawn + ')';
2080
+ $receiver.p17(tmp, EndpointDslFile$buildSlotBuilder$lambda(slot));
2144
2081
  }
2145
2082
  function requireBodyElementType($this, $receiver) {
2146
- var tmp0_elvis_lhs = $receiver.l33_1;
2083
+ var tmp0_elvis_lhs = $receiver.j34_1;
2147
2084
  var tmp;
2148
2085
  if (tmp0_elvis_lhs == null) {
2149
2086
  // Inline function 'kotlin.error' call
2150
- var message = 'bodyFieldShapes present but no bodyElementType for ' + $receiver.g33_1;
2087
+ var message = 'bodyFieldShapes present but no bodyElementType for ' + $receiver.e34_1;
2151
2088
  throw IllegalStateException_init_$Create$(toString(message));
2152
2089
  } else {
2153
2090
  tmp = tmp0_elvis_lhs;
@@ -2155,11 +2092,11 @@ function requireBodyElementType($this, $receiver) {
2155
2092
  return tmp;
2156
2093
  }
2157
2094
  function requireBodyPrimitiveType($this, $receiver) {
2158
- var tmp0_elvis_lhs = $receiver.m33_1;
2095
+ var tmp0_elvis_lhs = $receiver.k34_1;
2159
2096
  var tmp;
2160
2097
  if (tmp0_elvis_lhs == null) {
2161
2098
  // Inline function 'kotlin.error' call
2162
- var message = 'BodyKind.Primitive but no bodyPrimitiveType for ' + $receiver.g33_1;
2099
+ var message = 'BodyKind.Primitive but no bodyPrimitiveType for ' + $receiver.e34_1;
2163
2100
  throw IllegalStateException_init_$Create$(toString(message));
2164
2101
  } else {
2165
2102
  tmp = tmp0_elvis_lhs;
@@ -2168,136 +2105,129 @@ function requireBodyPrimitiveType($this, $receiver) {
2168
2105
  }
2169
2106
  function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present, $modelPkg, $required) {
2170
2107
  return function ($this$file) {
2171
- $this$file.e17($kotestPkg);
2172
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'endpointCall');
2173
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'requestCall');
2174
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
2108
+ $this$file.o17($kotestPkg);
2109
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'endpointCall');
2110
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'requestCall');
2111
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
2175
2112
  var tmp;
2176
2113
  // Inline function 'kotlin.collections.isNotEmpty' call
2177
- if (!$shape.o33_1.r()) {
2178
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'responseCall');
2179
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'responseMock');
2114
+ if (!$shape.m34_1.r()) {
2115
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'responseCall');
2116
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'responseMock');
2180
2117
  tmp = Unit_instance;
2181
2118
  }
2182
2119
  var tmp_0;
2183
- var tmp_1;
2184
- // Inline function 'kotlin.collections.isNotEmpty' call
2185
- if (!$shape.n33_1.r()) {
2186
- tmp_1 = true;
2187
- } else {
2188
- tmp_1 = $shape.k33_1.equals(BodyKind_Primitive_getInstance());
2189
- }
2190
- if (tmp_1) {
2191
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'draw');
2120
+ if ($shape.i34_1.equals(BodyKind_Primitive_getInstance())) {
2121
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'draw');
2192
2122
  tmp_0 = Unit_instance;
2193
2123
  }
2194
- $this$file.s15($endpointPkg, $shape.g33_1);
2195
- $this$file.s15('io.kotest.property', 'Gen');
2196
- $this$file.s15('io.kotest.property', 'Arb');
2197
- var isListBody = $shape.k33_1.equals(BodyKind_List_getInstance());
2124
+ $this$file.c16($endpointPkg, $shape.e34_1);
2125
+ $this$file.c16('io.kotest.property', 'Gen');
2126
+ $this$file.c16('io.kotest.property', 'Arb');
2127
+ var isListBody = $shape.i34_1.equals(BodyKind_List_getInstance());
2128
+ var tmp_1;
2198
2129
  var tmp_2;
2199
2130
  var tmp_3;
2200
- var tmp_4;
2201
- var tmp0 = plus(plus($shape.h33_1, $shape.i33_1), $shape.j33_1);
2202
- var tmp$ret$2;
2131
+ var tmp0 = plus(plus($shape.f34_1, $shape.g34_1), $shape.h34_1);
2132
+ var tmp$ret$1;
2203
2133
  $l$block_0: {
2204
2134
  // Inline function 'kotlin.collections.any' call
2205
- var tmp_5;
2135
+ var tmp_4;
2206
2136
  if (isInterface(tmp0, Collection)) {
2207
- tmp_5 = tmp0.r();
2137
+ tmp_4 = tmp0.r();
2208
2138
  } else {
2209
- tmp_5 = false;
2139
+ tmp_4 = false;
2210
2140
  }
2211
- if (tmp_5) {
2212
- tmp$ret$2 = false;
2141
+ if (tmp_4) {
2142
+ tmp$ret$1 = false;
2213
2143
  break $l$block_0;
2214
2144
  }
2215
2145
  var _iterator__ex2g4s = tmp0.t();
2216
2146
  while (_iterator__ex2g4s.u()) {
2217
2147
  var element = _iterator__ex2g4s.v();
2218
- if (element.s33_1) {
2219
- tmp$ret$2 = true;
2148
+ if (element.q34_1) {
2149
+ tmp$ret$1 = true;
2220
2150
  break $l$block_0;
2221
2151
  }
2222
2152
  }
2223
- tmp$ret$2 = false;
2224
- }
2225
- if (tmp$ret$2) {
2226
- tmp_4 = true;
2227
- } else {
2228
- // Inline function 'kotlin.collections.isNotEmpty' call
2229
- tmp_4 = !$present.r();
2153
+ tmp$ret$1 = false;
2230
2154
  }
2231
- if (tmp_4) {
2155
+ if (tmp$ret$1) {
2232
2156
  tmp_3 = true;
2233
2157
  } else {
2234
- tmp_3 = $shape.k33_1.equals(BodyKind_Primitive_getInstance());
2158
+ // Inline function 'kotlin.collections.isNotEmpty' call
2159
+ tmp_3 = !$present.r();
2235
2160
  }
2236
2161
  if (tmp_3) {
2237
2162
  tmp_2 = true;
2238
2163
  } else {
2239
- var tmp0_0 = $shape.o33_1;
2240
- var tmp$ret$5;
2164
+ tmp_2 = $shape.i34_1.equals(BodyKind_Primitive_getInstance());
2165
+ }
2166
+ if (tmp_2) {
2167
+ tmp_1 = true;
2168
+ } else {
2169
+ var tmp0_0 = $shape.m34_1;
2170
+ var tmp$ret$4;
2241
2171
  $l$block_2: {
2242
2172
  // Inline function 'kotlin.collections.any' call
2243
- var tmp_6;
2173
+ var tmp_5;
2244
2174
  if (isInterface(tmp0_0, Collection)) {
2245
- tmp_6 = tmp0_0.r();
2175
+ tmp_5 = tmp0_0.r();
2246
2176
  } else {
2247
- tmp_6 = false;
2177
+ tmp_5 = false;
2248
2178
  }
2249
- if (tmp_6) {
2250
- tmp$ret$5 = false;
2179
+ if (tmp_5) {
2180
+ tmp$ret$4 = false;
2251
2181
  break $l$block_2;
2252
2182
  }
2253
2183
  var _iterator__ex2g4s_0 = tmp0_0.t();
2254
2184
  while (_iterator__ex2g4s_0.u()) {
2255
2185
  var element_0 = _iterator__ex2g4s_0.v();
2256
- var tmp_7;
2257
- if (!(element_0.w33_1 == null)) {
2258
- tmp_7 = true;
2186
+ var tmp_6;
2187
+ if (!(element_0.u34_1 == null)) {
2188
+ tmp_6 = true;
2259
2189
  } else {
2260
2190
  // Inline function 'kotlin.collections.isNotEmpty' call
2261
- tmp_7 = !element_0.y33_1.r();
2191
+ tmp_6 = !element_0.w34_1.r();
2262
2192
  }
2263
- if (tmp_7) {
2264
- tmp$ret$5 = true;
2193
+ if (tmp_6) {
2194
+ tmp$ret$4 = true;
2265
2195
  break $l$block_2;
2266
2196
  }
2267
2197
  }
2268
- tmp$ret$5 = false;
2198
+ tmp$ret$4 = false;
2269
2199
  }
2270
- tmp_2 = tmp$ret$5;
2200
+ tmp_1 = tmp$ret$4;
2271
2201
  }
2272
- var needsArbConstant = tmp_2;
2273
- var tmp_8;
2202
+ var needsArbConstant = tmp_1;
2203
+ var tmp_7;
2274
2204
  if (isListBody) {
2275
- $this$file.s15('io.kotest.property.arbitrary', 'int');
2276
- tmp_8 = Unit_instance;
2205
+ $this$file.c16('io.kotest.property.arbitrary', 'int');
2206
+ tmp_7 = Unit_instance;
2277
2207
  }
2278
- var tmp_9;
2208
+ var tmp_8;
2279
2209
  if (needsArbConstant) {
2280
- $this$file.s15('io.kotest.property.arbitrary', 'constant');
2281
- tmp_9 = Unit_instance;
2210
+ $this$file.c16('io.kotest.property.arbitrary', 'constant');
2211
+ tmp_8 = Unit_instance;
2282
2212
  }
2283
2213
  // Inline function 'kotlin.collections.forEach' call
2284
- var _iterator__ex2g4s_1 = $shape.p33_1.t();
2214
+ var _iterator__ex2g4s_1 = $shape.n34_1.t();
2285
2215
  while (_iterator__ex2g4s_1.u()) {
2286
2216
  var element_1 = _iterator__ex2g4s_1.v();
2287
- $this$file.s15($modelPkg, Companion_getInstance().wt(element_1).zt());
2217
+ $this$file.c16($modelPkg, Companion_getInstance().wt(element_1).zt());
2288
2218
  }
2289
2219
  buildGenerateWrapper(EndpointDslFile_instance, $this$file, $shape);
2290
- $this$file.u15('generate', Custom_init_$Create$($shape.g33_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.g33_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.g33_1 + 'Generate')));
2220
+ $this$file.e16('generate', Custom_init_$Create$($shape.e34_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.e34_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.e34_1 + 'Generate')));
2291
2221
  buildRequestCall(EndpointDslFile_instance, $this$file, $shape);
2292
- var tmp_10;
2222
+ var tmp_9;
2293
2223
  // Inline function 'kotlin.collections.isNotEmpty' call
2294
- if (!$shape.o33_1.r()) {
2224
+ if (!$shape.m34_1.r()) {
2295
2225
  buildResponseMock(EndpointDslFile_instance, $this$file, $shape);
2296
- tmp_10 = Unit_instance;
2226
+ tmp_9 = Unit_instance;
2297
2227
  }
2298
2228
  buildScopeClass(EndpointDslFile_instance, $this$file, $shape, $present, $required);
2299
2229
  // Inline function 'kotlin.collections.forEach' call
2300
- var _iterator__ex2g4s_2 = $shape.o33_1.t();
2230
+ var _iterator__ex2g4s_2 = $shape.m34_1.t();
2301
2231
  while (_iterator__ex2g4s_2.u()) {
2302
2232
  var element_2 = _iterator__ex2g4s_2.v();
2303
2233
  buildResponseScope(EndpointDslFile_instance, $this$file, $shape, element_2);
@@ -2313,210 +2243,205 @@ function EndpointDslFile$build$lambda($kotestPkg, $shape, $endpointPkg, $present
2313
2243
  }
2314
2244
  function EndpointDslFile$buildGenerateWrapper$lambda$lambda($shape) {
2315
2245
  return function ($this$asyncFunction) {
2316
- $this$asyncFunction.l13(Visibility_PUBLIC_getInstance());
2317
- $this$asyncFunction.m13('block', suspendScopeType(EndpointDslFile_instance, $shape.g33_1 + 'Scope'));
2318
- $this$asyncFunction.j13(arbOf_0(EndpointDslFile_instance, $shape.g33_1 + '.Request'));
2319
- $this$asyncFunction.q13('scope', new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.g33_1 + 'Scope')));
2320
- $this$asyncFunction.a14('block', VariableReference_init_$Create$('scope'));
2321
- $this$asyncFunction.p13(new FunctionCall(VariableReference_init_$Create$('scope'), VOID, Companion_getInstance().wt('buildRequest')));
2246
+ $this$asyncFunction.v13(Visibility_PUBLIC_getInstance());
2247
+ $this$asyncFunction.w13('block', suspendScopeType(EndpointDslFile_instance, $shape.e34_1 + 'Scope'));
2248
+ $this$asyncFunction.t13(arbOf_0(EndpointDslFile_instance, $shape.e34_1 + '.Request'));
2249
+ $this$asyncFunction.a14('scope', new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.e34_1 + 'Scope')));
2250
+ $this$asyncFunction.k14('block', VariableReference_init_$Create$('scope'));
2251
+ $this$asyncFunction.z13(new FunctionCall(VariableReference_init_$Create$('scope'), VOID, Companion_getInstance().wt('buildRequest')));
2322
2252
  return Unit_instance;
2323
2253
  };
2324
2254
  }
2325
2255
  function EndpointDslFile$buildGenerateWrapper$lambda$lambda_0($scopeName, $shape, $variant) {
2326
2256
  return function ($this$function) {
2327
- $this$function.l13(Visibility_PUBLIC_getInstance());
2328
- $this$function.o13('block', blockType(EndpointDslFile_instance, $scopeName), $this$function.t14('{}'));
2329
- $this$function.j13(arbOf_0(EndpointDslFile_instance, $shape.g33_1 + '.' + $variant.u33_1));
2330
- $this$function.p13($this$function.t14($scopeName + '().apply(block).build()'));
2257
+ $this$function.v13(Visibility_PUBLIC_getInstance());
2258
+ $this$function.y13('block', blockType(EndpointDslFile_instance, $scopeName), $this$function.d15('{}'));
2259
+ $this$function.t13(arbOf_0(EndpointDslFile_instance, $shape.e34_1 + '.' + $variant.s34_1));
2260
+ $this$function.z13($this$function.d15($scopeName + '().apply(block).build()'));
2331
2261
  return Unit_instance;
2332
2262
  };
2333
2263
  }
2334
2264
  function EndpointDslFile$buildGenerateWrapper$lambda($shape) {
2335
2265
  return function ($this$struct) {
2336
- $this$struct.h15();
2337
- $this$struct.l13(Visibility_PUBLIC_getInstance());
2338
- $this$struct.i15(Visibility_INTERNAL_getInstance());
2339
- $this$struct.a16('request', VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda($shape));
2266
+ $this$struct.r15();
2267
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
2268
+ $this$struct.s15(Visibility_INTERNAL_getInstance());
2269
+ $this$struct.k16('request', VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda($shape));
2340
2270
  // Inline function 'kotlin.collections.forEach' call
2341
- var _iterator__ex2g4s = $shape.o33_1.t();
2271
+ var _iterator__ex2g4s = $shape.m34_1.t();
2342
2272
  while (_iterator__ex2g4s.u()) {
2343
2273
  var element = _iterator__ex2g4s.v();
2344
- var scopeName = $shape.g33_1 + element.u33_1 + 'Scope';
2345
- var tmp = 'response' + element.t33_1;
2346
- $this$struct.w15(tmp, VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda_0(scopeName, $shape, element));
2274
+ var scopeName = $shape.e34_1 + element.s34_1 + 'Scope';
2275
+ var tmp = 'response' + element.r34_1;
2276
+ $this$struct.g16(tmp, VOID, VOID, EndpointDslFile$buildGenerateWrapper$lambda$lambda_0(scopeName, $shape, element));
2347
2277
  }
2348
2278
  return Unit_instance;
2349
2279
  };
2350
2280
  }
2351
2281
  function EndpointDslFile$buildRequestCall$lambda($shape) {
2352
2282
  return function ($this$asyncFunction) {
2353
- $this$asyncFunction.l13(Visibility_PUBLIC_getInstance());
2354
- $this$asyncFunction.k13(genOf_0(EndpointDslFile_instance, $shape.g33_1 + '.Request'));
2355
- $this$asyncFunction.j13(Custom_init_$Create$($shape.g33_1 + '.Response<*>'));
2356
- $this$asyncFunction.p13($this$asyncFunction.t14('requestCall(' + $shape.g33_1 + '.api, ' + $shape.g33_1 + ', this)'));
2283
+ $this$asyncFunction.v13(Visibility_PUBLIC_getInstance());
2284
+ $this$asyncFunction.u13(genOf_0(EndpointDslFile_instance, $shape.e34_1 + '.Request'));
2285
+ $this$asyncFunction.t13(Custom_init_$Create$($shape.e34_1 + '.Response<*>'));
2286
+ $this$asyncFunction.z13($this$asyncFunction.d15('requestCall(' + $shape.e34_1 + '.api, ' + $shape.e34_1 + ', this)'));
2357
2287
  return Unit_instance;
2358
2288
  };
2359
2289
  }
2360
2290
  function EndpointDslFile$buildResponseMock$lambda($shape) {
2361
2291
  return function ($this$asyncFunction) {
2362
- $this$asyncFunction.l13(Visibility_PUBLIC_getInstance());
2363
- $this$asyncFunction.k13(genOf_0(EndpointDslFile_instance, $shape.g33_1 + '.Response<*>'));
2364
- $this$asyncFunction.m13('predicate', new Function_0(listOf(Custom_init_$Create$($shape.g33_1 + '.Request')), Boolean_instance));
2365
- $this$asyncFunction.j13(Unit_instance_0);
2366
- $this$asyncFunction.p13($this$asyncFunction.t14('responseMock(' + $shape.g33_1 + '.api, this, predicate)'));
2292
+ $this$asyncFunction.v13(Visibility_PUBLIC_getInstance());
2293
+ $this$asyncFunction.u13(genOf_0(EndpointDslFile_instance, $shape.e34_1 + '.Response<*>'));
2294
+ $this$asyncFunction.w13('predicate', new Function_0(listOf(Custom_init_$Create$($shape.e34_1 + '.Request')), Boolean_instance));
2295
+ $this$asyncFunction.t13(Unit_instance_0);
2296
+ $this$asyncFunction.z13($this$asyncFunction.d15('responseMock(' + $shape.e34_1 + '.api, this, predicate)'));
2367
2297
  return Unit_instance;
2368
2298
  };
2369
2299
  }
2370
2300
  function EndpointDslFile$buildResponseScope$lambda$lambda($variantType, $bodyType, $variant) {
2371
2301
  return function ($this$function) {
2372
- $this$function.l13(Visibility_PUBLIC_getInstance());
2373
- $this$function.j13(arbOf_0(EndpointDslFile_instance, $variantType));
2302
+ $this$function.v13(Visibility_PUBLIC_getInstance());
2303
+ $this$function.t13(arbOf_0(EndpointDslFile_instance, $variantType));
2374
2304
  var tmp;
2375
2305
  if (!($bodyType == null)) {
2376
- $this$function.i14('body?.let { inner.body(it) }');
2306
+ $this$function.s14('body?.let { inner.body(it) }');
2377
2307
  tmp = Unit_instance;
2378
2308
  }
2379
2309
  // Inline function 'kotlin.collections.forEach' call
2380
- var _iterator__ex2g4s = $variant.y33_1.t();
2310
+ var _iterator__ex2g4s = $variant.w34_1.t();
2381
2311
  while (_iterator__ex2g4s.u()) {
2382
2312
  var element = _iterator__ex2g4s.v();
2383
- $this$function.i14(escapeKotlinIdentifier(element.q33_1) + '?.let { inner.headerGen("' + element.q33_1 + '", it) }');
2313
+ $this$function.s14(escapeKotlinIdentifier(element.o34_1) + '?.let { inner.headerGen("' + element.o34_1 + '", it) }');
2384
2314
  }
2385
- $this$function.i14('@Suppress("UNCHECKED_CAST")');
2386
- $this$function.p13($this$function.v14(new FunctionCall(VariableReference_init_$Create$('inner'), VOID, Companion_getInstance().wt('buildGen')), arbOf_0(EndpointDslFile_instance, $variantType)));
2315
+ $this$function.s14('@Suppress("UNCHECKED_CAST")');
2316
+ $this$function.z13($this$function.f15(new FunctionCall(VariableReference_init_$Create$('inner'), VOID, Companion_getInstance().wt('buildGen')), arbOf_0(EndpointDslFile_instance, $variantType)));
2387
2317
  return Unit_instance;
2388
2318
  };
2389
2319
  }
2390
2320
  function EndpointDslFile$buildResponseScope$lambda($shape, $variantType, $bodyType, $variant) {
2391
2321
  return function ($this$struct) {
2392
- $this$struct.h15();
2393
- $this$struct.g15('@WirespecScenarioDsl');
2394
- $this$struct.l13(Visibility_PUBLIC_getInstance());
2395
- $this$struct.i15(Visibility_INTERNAL_getInstance());
2396
- $this$struct.i14('private val inner = responseCall(' + $shape.g33_1 + ', ' + $variantType + '::class)');
2322
+ $this$struct.r15();
2323
+ $this$struct.q15('@WirespecScenarioDsl');
2324
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
2325
+ $this$struct.s15(Visibility_INTERNAL_getInstance());
2326
+ $this$struct.s14('private val inner = responseCall(' + $shape.e34_1 + ', ' + $variantType + '::class)');
2397
2327
  var tmp;
2398
2328
  if (!($bodyType == null)) {
2399
- $this$struct.u15('body', genNullableOf(EndpointDslFile_instance, $bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('null'));
2329
+ $this$struct.e16('body', genNullableOf(EndpointDslFile_instance, $bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('null'));
2400
2330
  valueSetter($this$struct, 'body', $bodyType);
2401
2331
  tmp = Unit_instance;
2402
2332
  }
2403
2333
  // Inline function 'kotlin.collections.forEach' call
2404
- var _iterator__ex2g4s = $variant.y33_1.t();
2334
+ var _iterator__ex2g4s = $variant.w34_1.t();
2405
2335
  while (_iterator__ex2g4s.u()) {
2406
2336
  var element = _iterator__ex2g4s.v();
2407
- $this$struct.u15(element.q33_1, genNullableOf(EndpointDslFile_instance, element.r33_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('null'));
2408
- valueSetter($this$struct, element.q33_1, element.r33_1);
2337
+ $this$struct.e16(element.o34_1, genNullableOf(EndpointDslFile_instance, element.p34_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('null'));
2338
+ valueSetter($this$struct, element.o34_1, element.p34_1);
2409
2339
  }
2410
- $this$struct.w15('build', VOID, VOID, EndpointDslFile$buildResponseScope$lambda$lambda($variantType, $bodyType, $variant));
2340
+ $this$struct.g16('build', VOID, VOID, EndpointDslFile$buildResponseScope$lambda$lambda($variantType, $bodyType, $variant));
2411
2341
  return Unit_instance;
2412
2342
  };
2413
2343
  }
2414
2344
  function EndpointDslFile$buildScopeClass$lambda$lambda($builderClass, $slot) {
2415
2345
  return function ($this$function) {
2416
- $this$function.l13(Visibility_PUBLIC_getInstance());
2417
- $this$function.m13('block', blockType(EndpointDslFile_instance, $builderClass));
2418
- $this$function.i14('this.' + $slot.d33_1 + ' = block');
2346
+ $this$function.v13(Visibility_PUBLIC_getInstance());
2347
+ $this$function.w13('block', blockType(EndpointDslFile_instance, $builderClass));
2348
+ $this$function.s14('this.' + $slot.b34_1 + ' = block');
2419
2349
  return Unit_instance;
2420
2350
  };
2421
2351
  }
2422
2352
  function EndpointDslFile$buildScopeClass$lambda$lambda_0($builderName) {
2423
2353
  return function ($this$function) {
2424
- $this$function.l13(Visibility_PUBLIC_getInstance());
2425
- $this$function.m13('block', blockType(EndpointDslFile_instance, $builderName));
2426
- $this$function.i14('this.body = block');
2354
+ $this$function.v13(Visibility_PUBLIC_getInstance());
2355
+ $this$function.w13('block', blockType(EndpointDslFile_instance, $builderName));
2356
+ $this$function.s14('this.body = block');
2427
2357
  return Unit_instance;
2428
2358
  };
2429
2359
  }
2430
2360
  function EndpointDslFile$buildScopeClass$lambda$lambda_1($shape, $present, $required) {
2431
2361
  return function ($this$function) {
2432
- $this$function.l13(Visibility_PRIVATE_getInstance());
2362
+ $this$function.v13(Visibility_PRIVATE_getInstance());
2433
2363
  // Inline function 'kotlin.text.trimEnd' call
2434
2364
  var this_0 = renderFlushBody(EndpointDslFile_instance, $shape, $present, $required);
2435
2365
  var tmp$ret$0 = toString(trimEnd(isCharSequence(this_0) ? this_0 : THROW_CCE()));
2436
- $this$function.i14(tmp$ret$0);
2366
+ $this$function.s14(tmp$ret$0);
2437
2367
  return Unit_instance;
2438
2368
  };
2439
2369
  }
2440
2370
  function EndpointDslFile$buildScopeClass$lambda$lambda_2($shape) {
2441
2371
  return function ($this$function) {
2442
- $this$function.l13(Visibility_PUBLIC_getInstance());
2443
- $this$function.j13(arbOf_0(EndpointDslFile_instance, $shape.g33_1 + '.Request'));
2444
- $this$function.i14('flush()');
2445
- $this$function.p13($this$function.t14('inner.buildRequestGen()'));
2372
+ $this$function.v13(Visibility_PUBLIC_getInstance());
2373
+ $this$function.t13(arbOf_0(EndpointDslFile_instance, $shape.e34_1 + '.Request'));
2374
+ $this$function.s14('flush()');
2375
+ $this$function.z13($this$function.d15('inner.buildRequestGen()'));
2446
2376
  return Unit_instance;
2447
2377
  };
2448
2378
  }
2449
2379
  function EndpointDslFile$buildScopeClass$lambda($shape, $present, $required) {
2450
2380
  return function ($this$struct) {
2451
- $this$struct.h15();
2452
- $this$struct.g15('@WirespecScenarioDsl');
2453
- $this$struct.l13(Visibility_PUBLIC_getInstance());
2454
- $this$struct.i15(Visibility_INTERNAL_getInstance());
2455
- $this$struct.i14('private val inner = endpointCall(' + $shape.g33_1 + '.api, ' + $shape.g33_1 + ')');
2381
+ $this$struct.r15();
2382
+ $this$struct.q15('@WirespecScenarioDsl');
2383
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
2384
+ $this$struct.s15(Visibility_INTERNAL_getInstance());
2385
+ $this$struct.s14('private val inner = endpointCall(' + $shape.e34_1 + '.api, ' + $shape.e34_1 + ')');
2456
2386
  // Inline function 'kotlin.collections.forEach' call
2457
2387
  var _iterator__ex2g4s = $present.t();
2458
2388
  while (_iterator__ex2g4s.u()) {
2459
2389
  var element = _iterator__ex2g4s.v();
2460
2390
  var builderClass = slotBuilderName(EndpointDslFile_instance, $shape, element);
2461
- $this$struct.u15(element.d33_1, new Nullable(blockType(EndpointDslFile_instance, builderClass)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.t14('null'));
2462
- $this$struct.w15(element.d33_1, VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda(builderClass, element));
2391
+ $this$struct.e16(element.b34_1, new Nullable(blockType(EndpointDslFile_instance, builderClass)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.d15('null'));
2392
+ $this$struct.g16(element.b34_1, VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda(builderClass, element));
2463
2393
  }
2464
2394
  var tmp;
2465
2395
  // Inline function 'kotlin.collections.isNotEmpty' call
2466
- if (!$shape.n33_1.r()) {
2467
- var builderName = RecordBuilder_instance.b33(requireBodyElementType(EndpointDslFile_instance, $shape));
2468
- $this$struct.u15('body', new Nullable(blockType(EndpointDslFile_instance, builderName)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.t14('null'));
2469
- $this$struct.w15('body', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_0(builderName));
2396
+ if (!$shape.l34_1.r()) {
2397
+ var builderName = RecordBuilder_instance.z33(requireBodyElementType(EndpointDslFile_instance, $shape));
2398
+ $this$struct.e16('body', new Nullable(blockType(EndpointDslFile_instance, builderName)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.d15('null'));
2399
+ $this$struct.g16('body', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_0(builderName));
2470
2400
  var tmp_0;
2471
- if ($shape.k33_1.equals(BodyKind_List_getInstance())) {
2472
- $this$struct.u15('bodyCount', Custom_init_$Create$('IntRange'), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('1..3'));
2401
+ if ($shape.i34_1.equals(BodyKind_List_getInstance())) {
2402
+ $this$struct.e16('bodyCount', Custom_init_$Create$('IntRange'), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('1..3'));
2473
2403
  tmp_0 = Unit_instance;
2474
2404
  }
2475
2405
  tmp = tmp_0;
2476
2406
  }
2477
2407
  var tmp_1;
2478
- if ($shape.k33_1.equals(BodyKind_Primitive_getInstance())) {
2408
+ if ($shape.i34_1.equals(BodyKind_Primitive_getInstance())) {
2479
2409
  var bodyType = requireBodyPrimitiveType(EndpointDslFile_instance, $shape);
2480
- $this$struct.u15('body', genNullableOf(EndpointDslFile_instance, bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('null'));
2410
+ $this$struct.e16('body', genNullableOf(EndpointDslFile_instance, bodyType), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('null'));
2481
2411
  valueSetter($this$struct, 'body', bodyType);
2482
2412
  tmp_1 = Unit_instance;
2483
2413
  }
2484
- $this$struct.u15('flushed', Boolean_instance, true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.t14('false'));
2485
- $this$struct.w15('flush', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_1($shape, $present, $required));
2486
- $this$struct.w15('buildRequest', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_2($shape));
2414
+ $this$struct.e16('flushed', Boolean_instance, true, Visibility_PRIVATE_getInstance(), VOID, VOID, $this$struct.d15('false'));
2415
+ $this$struct.g16('flush', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_1($shape, $present, $required));
2416
+ $this$struct.g16('buildRequest', VOID, VOID, EndpointDslFile$buildScopeClass$lambda$lambda_2($shape));
2487
2417
  return Unit_instance;
2488
2418
  };
2489
2419
  }
2490
2420
  function EndpointDslFile$buildSlotBuilder$lambda($slot) {
2491
2421
  return function ($this$struct) {
2492
- $this$struct.h15();
2493
- $this$struct.g15('@WirespecScenarioDsl');
2494
- $this$struct.l13(Visibility_PUBLIC_getInstance());
2422
+ $this$struct.r15();
2423
+ $this$struct.q15('@WirespecScenarioDsl');
2424
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
2495
2425
  // Inline function 'kotlin.collections.forEach' call
2496
- var _iterator__ex2g4s = $slot.f33_1.t();
2426
+ var _iterator__ex2g4s = $slot.d34_1.t();
2497
2427
  while (_iterator__ex2g4s.u()) {
2498
2428
  var element = _iterator__ex2g4s.v();
2499
- $this$struct.u15(element.q33_1, genNullableOf(EndpointDslFile_instance, element.r33_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('null'));
2500
- valueSetter($this$struct, element.q33_1, element.r33_1);
2429
+ $this$struct.e16(element.o34_1, genNullableOf(EndpointDslFile_instance, element.p34_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('null'));
2430
+ valueSetter($this$struct, element.o34_1, element.p34_1);
2501
2431
  }
2502
2432
  return Unit_instance;
2503
2433
  };
2504
2434
  }
2505
- function EndpointDslFile$nestedCopyExpr$lambda($elemVar, $nestedVar) {
2506
- return function (it) {
2507
- return escapeKotlinIdentifier(it.m()) + ' = ' + copyValueExpr(EndpointDslFile_instance, it, $elemVar, $nestedVar);
2508
- };
2509
- }
2510
2435
  function EndpointDslFile() {
2511
2436
  }
2512
- protoOf(EndpointDslFile).k34 = function (endpoint, packageName, types, refined) {
2513
- var shape = Companion_instance_4.l34(endpoint, types, refined);
2437
+ protoOf(EndpointDslFile).c35 = function (endpoint, packageName, types, refined) {
2438
+ var shape = Companion_instance_4.d35(endpoint, types, refined);
2514
2439
  var present = presentSlots(this, shape);
2515
2440
  var required = requiredSlots(this, shape);
2516
2441
  var kotestPkg = packageName.bt_1 + '.kotest';
2517
2442
  var endpointPkg = packageName.bt_1 + '.endpoint';
2518
2443
  var modelPkg = packageName.bt_1 + '.model';
2519
- var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.g33_1 + 'Dsl');
2444
+ var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.e34_1 + 'Dsl');
2520
2445
  var tmp = Companion_getInstance().wt(fileName);
2521
2446
  return file(tmp, EndpointDslFile$build$lambda(kotestPkg, shape, endpointPkg, present, modelPkg, required));
2522
2447
  };
@@ -2538,28 +2463,21 @@ function BodyKind_initEntries() {
2538
2463
  BodyKind_List_instance = new BodyKind('List', 2);
2539
2464
  BodyKind_Primitive_instance = new BodyKind('Primitive', 3);
2540
2465
  }
2541
- function Primitive_0(name, type, refinedTypeName, isList, isNullable) {
2542
- refinedTypeName = refinedTypeName === VOID ? null : refinedTypeName;
2543
- isList = isList === VOID ? false : isList;
2544
- isNullable = isNullable === VOID ? false : isNullable;
2545
- this.f34_1 = name;
2546
- this.g34_1 = type;
2547
- this.h34_1 = refinedTypeName;
2548
- this.i34_1 = isList;
2549
- this.j34_1 = isNullable;
2466
+ function Primitive_0(name, type, refinement) {
2467
+ this.e35_1 = name;
2468
+ this.f35_1 = type;
2469
+ this.g35_1 = refinement;
2550
2470
  }
2551
2471
  protoOf(Primitive_0).m = function () {
2552
- return this.f34_1;
2472
+ return this.e35_1;
2553
2473
  };
2554
2474
  protoOf(Primitive_0).toString = function () {
2555
- return 'Primitive(name=' + this.f34_1 + ', type=' + toString(this.g34_1) + ', refinedTypeName=' + this.h34_1 + ', isList=' + this.i34_1 + ', isNullable=' + this.j34_1 + ')';
2475
+ return 'Primitive(name=' + this.e35_1 + ', type=' + toString(this.f35_1) + ', refinement=' + toString_1(this.g35_1) + ')';
2556
2476
  };
2557
2477
  protoOf(Primitive_0).hashCode = function () {
2558
- var result = getStringHashCode(this.f34_1);
2559
- result = imul(result, 31) + hashCode(this.g34_1) | 0;
2560
- result = imul(result, 31) + (this.h34_1 == null ? 0 : getStringHashCode(this.h34_1)) | 0;
2561
- result = imul(result, 31) + getBooleanHashCode(this.i34_1) | 0;
2562
- result = imul(result, 31) + getBooleanHashCode(this.j34_1) | 0;
2478
+ var result = getStringHashCode(this.e35_1);
2479
+ result = imul(result, 31) + hashCode(this.f35_1) | 0;
2480
+ result = imul(result, 31) + (this.g35_1 == null ? 0 : hashCode(this.g35_1)) | 0;
2563
2481
  return result;
2564
2482
  };
2565
2483
  protoOf(Primitive_0).equals = function (other) {
@@ -2567,75 +2485,37 @@ protoOf(Primitive_0).equals = function (other) {
2567
2485
  return true;
2568
2486
  if (!(other instanceof Primitive_0))
2569
2487
  return false;
2570
- if (!(this.f34_1 === other.f34_1))
2571
- return false;
2572
- if (!equals(this.g34_1, other.g34_1))
2573
- return false;
2574
- if (!(this.h34_1 == other.h34_1))
2575
- return false;
2576
- if (!(this.i34_1 === other.i34_1))
2577
- return false;
2578
- if (!(this.j34_1 === other.j34_1))
2579
- return false;
2580
- return true;
2581
- };
2582
- function NestedObject(name, typeName, fields) {
2583
- this.c34_1 = name;
2584
- this.d34_1 = typeName;
2585
- this.e34_1 = fields;
2586
- }
2587
- protoOf(NestedObject).m = function () {
2588
- return this.c34_1;
2589
- };
2590
- protoOf(NestedObject).toString = function () {
2591
- return 'NestedObject(name=' + this.c34_1 + ', typeName=' + this.d34_1 + ', fields=' + toString(this.e34_1) + ')';
2592
- };
2593
- protoOf(NestedObject).hashCode = function () {
2594
- var result = getStringHashCode(this.c34_1);
2595
- result = imul(result, 31) + getStringHashCode(this.d34_1) | 0;
2596
- result = imul(result, 31) + hashCode(this.e34_1) | 0;
2597
- return result;
2598
- };
2599
- protoOf(NestedObject).equals = function (other) {
2600
- if (this === other)
2601
- return true;
2602
- if (!(other instanceof NestedObject))
2603
- return false;
2604
- if (!(this.c34_1 === other.c34_1))
2488
+ if (!(this.e35_1 === other.e35_1))
2605
2489
  return false;
2606
- if (!(this.d34_1 === other.d34_1))
2490
+ if (!equals(this.f35_1, other.f35_1))
2607
2491
  return false;
2608
- if (!equals(this.e34_1, other.e34_1))
2492
+ if (!equals(this.g35_1, other.g35_1))
2609
2493
  return false;
2610
2494
  return true;
2611
2495
  };
2612
- function NestedList(name, elementTypeName, fields) {
2613
- this.z33_1 = name;
2614
- this.a34_1 = elementTypeName;
2615
- this.b34_1 = fields;
2496
+ function Nested(name, record) {
2497
+ this.h35_1 = name;
2498
+ this.i35_1 = record;
2616
2499
  }
2617
- protoOf(NestedList).m = function () {
2618
- return this.z33_1;
2500
+ protoOf(Nested).m = function () {
2501
+ return this.h35_1;
2619
2502
  };
2620
- protoOf(NestedList).toString = function () {
2621
- return 'NestedList(name=' + this.z33_1 + ', elementTypeName=' + this.a34_1 + ', fields=' + toString(this.b34_1) + ')';
2503
+ protoOf(Nested).toString = function () {
2504
+ return 'Nested(name=' + this.h35_1 + ', record=' + this.i35_1.toString() + ')';
2622
2505
  };
2623
- protoOf(NestedList).hashCode = function () {
2624
- var result = getStringHashCode(this.z33_1);
2625
- result = imul(result, 31) + getStringHashCode(this.a34_1) | 0;
2626
- result = imul(result, 31) + hashCode(this.b34_1) | 0;
2506
+ protoOf(Nested).hashCode = function () {
2507
+ var result = getStringHashCode(this.h35_1);
2508
+ result = imul(result, 31) + this.i35_1.hashCode() | 0;
2627
2509
  return result;
2628
2510
  };
2629
- protoOf(NestedList).equals = function (other) {
2511
+ protoOf(Nested).equals = function (other) {
2630
2512
  if (this === other)
2631
2513
  return true;
2632
- if (!(other instanceof NestedList))
2633
- return false;
2634
- if (!(this.z33_1 === other.z33_1))
2514
+ if (!(other instanceof Nested))
2635
2515
  return false;
2636
- if (!(this.a34_1 === other.a34_1))
2516
+ if (!(this.h35_1 === other.h35_1))
2637
2517
  return false;
2638
- if (!equals(this.b34_1, other.b34_1))
2518
+ if (!this.i35_1.equals(other.i35_1))
2639
2519
  return false;
2640
2520
  return true;
2641
2521
  };
@@ -2651,7 +2531,7 @@ function classifyBody($this, reference) {
2651
2531
  tmp = to(BodyKind_None_getInstance(), null);
2652
2532
  } else {
2653
2533
  if (reference instanceof Custom) {
2654
- tmp = to(BodyKind_Object_getInstance(), reference.n19_1);
2534
+ tmp = to(BodyKind_Object_getInstance(), reference.x19_1);
2655
2535
  } else {
2656
2536
  if (reference instanceof Iterable) {
2657
2537
  var tmp_1 = reference.yp_1;
@@ -2661,7 +2541,7 @@ function classifyBody($this, reference) {
2661
2541
  tmp_2 = null;
2662
2542
  } else {
2663
2543
  // Inline function 'kotlin.let' call
2664
- tmp_2 = to(BodyKind_List_getInstance(), tmp1_safe_receiver.n19_1);
2544
+ tmp_2 = to(BodyKind_List_getInstance(), tmp1_safe_receiver.x19_1);
2665
2545
  }
2666
2546
  var tmp2_elvis_lhs = tmp_2;
2667
2547
  tmp = tmp2_elvis_lhs == null ? to(BodyKind_None_getInstance(), null) : tmp2_elvis_lhs;
@@ -2676,156 +2556,12 @@ function classifyBody($this, reference) {
2676
2556
  }
2677
2557
  return tmp;
2678
2558
  }
2679
- function collectCustomNames($this, reference) {
2680
- var tmp;
2681
- if (reference instanceof Custom) {
2682
- tmp = listOf(reference.n19_1);
2683
- } else {
2684
- if (reference instanceof Iterable) {
2685
- tmp = collectCustomNames($this, reference.yp_1);
2686
- } else {
2687
- if (reference instanceof Dict) {
2688
- tmp = collectCustomNames($this, reference.bq_1);
2689
- } else {
2690
- tmp = emptyList();
2691
- }
2692
- }
2693
- }
2694
- return tmp;
2695
- }
2696
- function _get_nestedTypeName__7gbrsh($this, $receiver) {
2697
- var tmp;
2698
- if ($receiver instanceof NestedObject) {
2699
- tmp = $receiver.d34_1;
2700
- } else {
2701
- if ($receiver instanceof NestedList) {
2702
- tmp = $receiver.a34_1;
2703
- } else {
2704
- if ($receiver instanceof Primitive_0) {
2705
- tmp = null;
2706
- } else {
2707
- noWhenBranchMatchedException();
2708
- }
2709
- }
2710
- }
2711
- return tmp;
2712
- }
2713
- function _get_childFields__pje2ws($this, $receiver) {
2714
- var tmp;
2715
- if ($receiver instanceof NestedObject) {
2716
- tmp = $receiver.e34_1;
2717
- } else {
2718
- if ($receiver instanceof NestedList) {
2719
- tmp = $receiver.b34_1;
2720
- } else {
2721
- if ($receiver instanceof Primitive_0) {
2722
- tmp = emptyList();
2723
- } else {
2724
- noWhenBranchMatchedException();
2725
- }
2726
- }
2727
- }
2728
- return tmp;
2729
- }
2730
- function collectNestedTypeNames($this, fields) {
2731
- // Inline function 'kotlin.collections.flatMap' call
2732
- // Inline function 'kotlin.collections.flatMapTo' call
2733
- var destination = ArrayList_init_$Create$();
2734
- var _iterator__ex2g4s = fields.t();
2735
- while (_iterator__ex2g4s.u()) {
2736
- var element = _iterator__ex2g4s.v();
2737
- var list = plus(listOfNotNull(_get_nestedTypeName__7gbrsh(Companion_instance_4, element)), collectNestedTypeNames(Companion_instance_4, _get_childFields__pje2ws(Companion_instance_4, element)));
2738
- addAll(destination, list);
2739
- }
2740
- return destination;
2741
- }
2742
- function collectFieldTypeNames($this, fields, types) {
2743
- // Inline function 'kotlin.collections.flatMap' call
2744
- // Inline function 'kotlin.collections.flatMapTo' call
2745
- var destination = ArrayList_init_$Create$();
2746
- var _iterator__ex2g4s = fields.t();
2747
- while (_iterator__ex2g4s.u()) {
2748
- var element = _iterator__ex2g4s.v();
2749
- var tmp0_safe_receiver = _get_nestedTypeName__7gbrsh(Companion_instance_4, element);
2750
- var tmp;
2751
- if (tmp0_safe_receiver == null) {
2752
- tmp = null;
2753
- } else {
2754
- // Inline function 'kotlin.let' call
2755
- var tmp0_safe_receiver_0 = types.s2(tmp0_safe_receiver);
2756
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.lp_1;
2757
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : get_fields(tmp1_safe_receiver);
2758
- var tmp_0;
2759
- if (tmp2_safe_receiver == null) {
2760
- tmp_0 = null;
2761
- } else {
2762
- // Inline function 'kotlin.collections.flatMap' call
2763
- // Inline function 'kotlin.collections.flatMapTo' call
2764
- var destination_0 = ArrayList_init_$Create$();
2765
- var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
2766
- while (_iterator__ex2g4s_0.u()) {
2767
- var element_0 = _iterator__ex2g4s_0.v();
2768
- var list = collectCustomNames(Companion_instance_4, element_0.pp_1);
2769
- addAll(destination_0, list);
2770
- }
2771
- tmp_0 = destination_0;
2772
- }
2773
- tmp = tmp_0;
2774
- }
2775
- var tmp1_elvis_lhs = tmp;
2776
- var nestedFieldRefs = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2777
- var list_0 = plus(nestedFieldRefs, collectFieldTypeNames(Companion_instance_4, _get_childFields__pje2ws(Companion_instance_4, element), types));
2778
- addAll(destination, list_0);
2779
- }
2780
- return destination;
2781
- }
2782
- function primitiveOf($this, name, ref, refined) {
2783
- var tmp;
2784
- var tmp_0;
2785
- if (ref instanceof Custom) {
2786
- // Inline function 'kotlin.collections.contains' call
2787
- // Inline function 'kotlin.collections.containsKey' call
2788
- var key = ref.n19_1;
2789
- tmp_0 = (isInterface(refined, KtMap) ? refined : THROW_CCE()).q2(key);
2790
- } else {
2791
- tmp_0 = false;
2792
- }
2793
- if (tmp_0) {
2794
- tmp = to(ref.n19_1, false);
2795
- } else {
2796
- if (ref instanceof Iterable) {
2797
- var inner = ref.yp_1;
2798
- var tmp_1;
2799
- var tmp_2;
2800
- if (inner instanceof Custom) {
2801
- // Inline function 'kotlin.collections.contains' call
2802
- // Inline function 'kotlin.collections.containsKey' call
2803
- var key_0 = inner.n19_1;
2804
- tmp_2 = (isInterface(refined, KtMap) ? refined : THROW_CCE()).q2(key_0);
2805
- } else {
2806
- tmp_2 = false;
2807
- }
2808
- if (tmp_2) {
2809
- tmp_1 = to(inner.n19_1, true);
2810
- } else {
2811
- tmp_1 = to(null, false);
2812
- }
2813
- tmp = tmp_1;
2814
- } else {
2815
- tmp = to(null, false);
2816
- }
2817
- }
2818
- var _destruct__k2r9zo = tmp;
2819
- var refinedTypeName = _destruct__k2r9zo.ze();
2820
- var isList = _destruct__k2r9zo.af();
2821
- return new Primitive_0(name, mapWithRefinedUnwrap($this, ref, refined), refinedTypeName, isList, ref.ot());
2822
- }
2823
2559
  function mapWithRefinedUnwrap($this, reference, refined) {
2824
2560
  var tmp;
2825
2561
  if (reference instanceof Custom) {
2826
- var tmp1_safe_receiver = refined.s2(reference.n19_1);
2562
+ var tmp1_safe_receiver = refined.s2(reference.x19_1);
2827
2563
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.ms_1;
2828
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.v1e(VOID, reference.o19_1);
2564
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.u1f(VOID, reference.y19_1);
2829
2565
  var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : convert(tmp3_safe_receiver);
2830
2566
  tmp = tmp4_elvis_lhs == null ? convert(reference) : tmp4_elvis_lhs;
2831
2567
  } else {
@@ -2847,17 +2583,17 @@ function mapWithRefinedUnwrap($this, reference, refined) {
2847
2583
  }
2848
2584
  function NamedTypedField(name, type, isNullable) {
2849
2585
  isNullable = isNullable === VOID ? false : isNullable;
2850
- this.q33_1 = name;
2851
- this.r33_1 = type;
2852
- this.s33_1 = isNullable;
2586
+ this.o34_1 = name;
2587
+ this.p34_1 = type;
2588
+ this.q34_1 = isNullable;
2853
2589
  }
2854
2590
  protoOf(NamedTypedField).toString = function () {
2855
- return 'NamedTypedField(name=' + this.q33_1 + ', type=' + toString(this.r33_1) + ', isNullable=' + this.s33_1 + ')';
2591
+ return 'NamedTypedField(name=' + this.o34_1 + ', type=' + toString(this.p34_1) + ', isNullable=' + this.q34_1 + ')';
2856
2592
  };
2857
2593
  protoOf(NamedTypedField).hashCode = function () {
2858
- var result = getStringHashCode(this.q33_1);
2859
- result = imul(result, 31) + hashCode(this.r33_1) | 0;
2860
- result = imul(result, 31) + getBooleanHashCode(this.s33_1) | 0;
2594
+ var result = getStringHashCode(this.o34_1);
2595
+ result = imul(result, 31) + hashCode(this.p34_1) | 0;
2596
+ result = imul(result, 31) + getBooleanHashCode(this.q34_1) | 0;
2861
2597
  return result;
2862
2598
  };
2863
2599
  protoOf(NamedTypedField).equals = function (other) {
@@ -2865,32 +2601,32 @@ protoOf(NamedTypedField).equals = function (other) {
2865
2601
  return true;
2866
2602
  if (!(other instanceof NamedTypedField))
2867
2603
  return false;
2868
- if (!(this.q33_1 === other.q33_1))
2604
+ if (!(this.o34_1 === other.o34_1))
2869
2605
  return false;
2870
- if (!equals(this.r33_1, other.r33_1))
2606
+ if (!equals(this.p34_1, other.p34_1))
2871
2607
  return false;
2872
- if (!(this.s33_1 === other.s33_1))
2608
+ if (!(this.q34_1 === other.q34_1))
2873
2609
  return false;
2874
2610
  return true;
2875
2611
  };
2876
2612
  function ResponseVariantShape(status, className, bodyKind, bodyType, bodyElementType, headerFields) {
2877
- this.t33_1 = status;
2878
- this.u33_1 = className;
2879
- this.v33_1 = bodyKind;
2880
- this.w33_1 = bodyType;
2881
- this.x33_1 = bodyElementType;
2882
- this.y33_1 = headerFields;
2613
+ this.r34_1 = status;
2614
+ this.s34_1 = className;
2615
+ this.t34_1 = bodyKind;
2616
+ this.u34_1 = bodyType;
2617
+ this.v34_1 = bodyElementType;
2618
+ this.w34_1 = headerFields;
2883
2619
  }
2884
2620
  protoOf(ResponseVariantShape).toString = function () {
2885
- return 'ResponseVariantShape(status=' + this.t33_1 + ', className=' + this.u33_1 + ', bodyKind=' + this.v33_1.toString() + ', bodyType=' + toString_1(this.w33_1) + ', bodyElementType=' + this.x33_1 + ', headerFields=' + toString(this.y33_1) + ')';
2621
+ return 'ResponseVariantShape(status=' + this.r34_1 + ', className=' + this.s34_1 + ', bodyKind=' + this.t34_1.toString() + ', bodyType=' + toString_1(this.u34_1) + ', bodyElementType=' + this.v34_1 + ', headerFields=' + toString(this.w34_1) + ')';
2886
2622
  };
2887
2623
  protoOf(ResponseVariantShape).hashCode = function () {
2888
- var result = getStringHashCode(this.t33_1);
2889
- result = imul(result, 31) + getStringHashCode(this.u33_1) | 0;
2890
- result = imul(result, 31) + this.v33_1.hashCode() | 0;
2891
- result = imul(result, 31) + (this.w33_1 == null ? 0 : hashCode(this.w33_1)) | 0;
2892
- result = imul(result, 31) + (this.x33_1 == null ? 0 : getStringHashCode(this.x33_1)) | 0;
2893
- result = imul(result, 31) + hashCode(this.y33_1) | 0;
2624
+ var result = getStringHashCode(this.r34_1);
2625
+ result = imul(result, 31) + getStringHashCode(this.s34_1) | 0;
2626
+ result = imul(result, 31) + this.t34_1.hashCode() | 0;
2627
+ result = imul(result, 31) + (this.u34_1 == null ? 0 : hashCode(this.u34_1)) | 0;
2628
+ result = imul(result, 31) + (this.v34_1 == null ? 0 : getStringHashCode(this.v34_1)) | 0;
2629
+ result = imul(result, 31) + hashCode(this.w34_1) | 0;
2894
2630
  return result;
2895
2631
  };
2896
2632
  protoOf(ResponseVariantShape).equals = function (other) {
@@ -2898,17 +2634,17 @@ protoOf(ResponseVariantShape).equals = function (other) {
2898
2634
  return true;
2899
2635
  if (!(other instanceof ResponseVariantShape))
2900
2636
  return false;
2901
- if (!(this.t33_1 === other.t33_1))
2637
+ if (!(this.r34_1 === other.r34_1))
2902
2638
  return false;
2903
- if (!(this.u33_1 === other.u33_1))
2639
+ if (!(this.s34_1 === other.s34_1))
2904
2640
  return false;
2905
- if (!this.v33_1.equals(other.v33_1))
2641
+ if (!this.t34_1.equals(other.t34_1))
2906
2642
  return false;
2907
- if (!equals(this.w33_1, other.w33_1))
2643
+ if (!equals(this.u34_1, other.u34_1))
2908
2644
  return false;
2909
- if (!(this.x33_1 == other.x33_1))
2645
+ if (!(this.v34_1 == other.v34_1))
2910
2646
  return false;
2911
- if (!equals(this.y33_1, other.y33_1))
2647
+ if (!equals(this.w34_1, other.w34_1))
2912
2648
  return false;
2913
2649
  return true;
2914
2650
  };
@@ -2917,7 +2653,7 @@ function BodyKind(name, ordinal) {
2917
2653
  }
2918
2654
  function Companion_2() {
2919
2655
  }
2920
- protoOf(Companion_2).l34 = function (endpoint, types, refined) {
2656
+ protoOf(Companion_2).d35 = function (endpoint, types, refined) {
2921
2657
  // Inline function 'kotlin.collections.filterIsInstance' call
2922
2658
  var tmp0 = endpoint.hr_1;
2923
2659
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
@@ -2989,7 +2725,7 @@ protoOf(Companion_2).l34 = function (endpoint, types, refined) {
2989
2725
  // Inline function 'kotlin.let' call
2990
2726
  var tmp_2;
2991
2727
  if (tmp4_safe_receiver instanceof Nullable) {
2992
- tmp_2 = tmp4_safe_receiver.uu_1;
2728
+ tmp_2 = tmp4_safe_receiver.ru_1;
2993
2729
  } else {
2994
2730
  tmp_2 = tmp4_safe_receiver;
2995
2731
  }
@@ -3001,7 +2737,7 @@ protoOf(Companion_2).l34 = function (endpoint, types, refined) {
3001
2737
  tmp_3 = null;
3002
2738
  } else {
3003
2739
  // Inline function 'kotlin.let' call
3004
- tmp_3 = Companion_instance_4.u32(bodyElementType, types, refined, emptySet());
2740
+ tmp_3 = Companion_instance_4.t33(bodyElementType, types, refined);
3005
2741
  }
3006
2742
  var tmp6_elvis_lhs = tmp_3;
3007
2743
  var bodyFieldShapes = tmp6_elvis_lhs == null ? emptyList() : tmp6_elvis_lhs;
@@ -3092,7 +2828,7 @@ protoOf(Companion_2).l34 = function (endpoint, types, refined) {
3092
2828
  var _iterator__ex2g4s_5 = destination_3.t();
3093
2829
  while (_iterator__ex2g4s_5.u()) {
3094
2830
  var e = _iterator__ex2g4s_5.v();
3095
- var key = e.t33_1;
2831
+ var key = e.r34_1;
3096
2832
  if (set.x(key)) {
3097
2833
  list.x(e);
3098
2834
  }
@@ -3154,106 +2890,61 @@ protoOf(Companion_2).l34 = function (endpoint, types, refined) {
3154
2890
  }
3155
2891
  }
3156
2892
  var refs = this_4.q5();
3157
- var tmp_9;
3158
- if (bodyElementType == null) {
3159
- tmp_9 = null;
3160
- } else {
3161
- // Inline function 'kotlin.let' call
3162
- tmp_9 = types.s2(bodyElementType);
3163
- }
3164
- var tmp8_safe_receiver = tmp_9;
3165
- var tmp9_safe_receiver = tmp8_safe_receiver == null ? null : tmp8_safe_receiver.lp_1;
3166
- var tmp10_safe_receiver = tmp9_safe_receiver == null ? null : get_fields(tmp9_safe_receiver);
3167
- var tmp_10;
3168
- if (tmp10_safe_receiver == null) {
3169
- tmp_10 = null;
3170
- } else {
3171
- // Inline function 'kotlin.collections.map' call
3172
- // Inline function 'kotlin.collections.mapTo' call
3173
- var destination_6 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp10_safe_receiver, 10));
3174
- var _iterator__ex2g4s_12 = tmp10_safe_receiver.t();
3175
- while (_iterator__ex2g4s_12.u()) {
3176
- var item_3 = _iterator__ex2g4s_12.v();
3177
- var tmp$ret$57 = item_3.pp_1;
3178
- destination_6.x(tmp$ret$57);
3179
- }
3180
- tmp_10 = destination_6;
3181
- }
3182
- var tmp11_elvis_lhs = tmp_10;
3183
- var bodyFieldRefs = tmp11_elvis_lhs == null ? emptyList() : tmp11_elvis_lhs;
3184
- var modelImports = this.v32(plus(refs, bodyFieldRefs), bodyFieldShapes, types);
2893
+ var modelImports = this.u33(refs);
3185
2894
  return new EndpointShape(Companion_getInstance().wt(endpoint.fr_1.o1()).zt(), pathFields, queryFields, headerFields, bodyKind, bodyElementType, bodyPrimitiveType, bodyFieldShapes, responseVariants, modelImports);
3186
2895
  };
3187
- protoOf(Companion_2).v32 = function (refs, fieldShapes, types) {
2896
+ protoOf(Companion_2).u33 = function (refs) {
3188
2897
  // Inline function 'kotlin.collections.flatMap' call
3189
2898
  // Inline function 'kotlin.collections.flatMapTo' call
3190
2899
  var destination = ArrayList_init_$Create$();
3191
2900
  var _iterator__ex2g4s = refs.t();
3192
2901
  while (_iterator__ex2g4s.u()) {
3193
2902
  var element = _iterator__ex2g4s.v();
3194
- var list = collectCustomNames(this, element);
2903
+ var list = this.j35(element);
3195
2904
  addAll(destination, list);
3196
2905
  }
3197
- return distinct(plus(plus(destination, collectNestedTypeNames(this, fieldShapes)), collectFieldTypeNames(this, fieldShapes, types)));
2906
+ return distinct(destination);
3198
2907
  };
3199
- protoOf(Companion_2).u32 = function (typeName, types, refined, visited) {
3200
- if (visited.i1(typeName))
3201
- return emptyList();
3202
- var tmp0_elvis_lhs = types.s2(typeName);
2908
+ protoOf(Companion_2).j35 = function (reference) {
3203
2909
  var tmp;
3204
- if (tmp0_elvis_lhs == null) {
3205
- return emptyList();
2910
+ if (reference instanceof Custom) {
2911
+ tmp = listOf(reference.x19_1);
3206
2912
  } else {
3207
- tmp = tmp0_elvis_lhs;
3208
- }
3209
- var type = tmp;
3210
- var nextVisited = plus_1(visited, typeName);
3211
- // Inline function 'kotlin.collections.map' call
3212
- var this_0 = get_fields(type.lp_1);
2913
+ if (reference instanceof Iterable) {
2914
+ tmp = this.j35(reference.yp_1);
2915
+ } else {
2916
+ if (reference instanceof Dict) {
2917
+ tmp = this.j35(reference.bq_1);
2918
+ } else {
2919
+ tmp = emptyList();
2920
+ }
2921
+ }
2922
+ }
2923
+ return tmp;
2924
+ };
2925
+ protoOf(Companion_2).t33 = function (typeName, types, refined) {
2926
+ var tmp0_safe_receiver = types.s2(typeName);
2927
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.lp_1;
2928
+ // Inline function 'kotlin.collections.orEmpty' call
2929
+ var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : get_fields(tmp1_safe_receiver);
2930
+ // Inline function 'kotlin.collections.map' call
2931
+ var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
3213
2932
  // Inline function 'kotlin.collections.mapTo' call
3214
2933
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3215
2934
  var _iterator__ex2g4s = this_0.t();
3216
2935
  while (_iterator__ex2g4s.u()) {
3217
2936
  var item = _iterator__ex2g4s.v();
3218
- var name = item.op_1.o1();
3219
- var ref = item.pp_1;
3220
- var tmp_0;
3221
- if (ref instanceof Custom) {
3222
- var tmp_1;
3223
- // Inline function 'kotlin.collections.contains' call
3224
- // Inline function 'kotlin.collections.containsKey' call
3225
- var key = ref.n19_1;
3226
- if ((isInterface(types, KtMap) ? types : THROW_CCE()).q2(key)) {
3227
- tmp_1 = new NestedObject(name, ref.n19_1, Companion_instance_4.u32(ref.n19_1, types, refined, nextVisited));
3228
- } else {
3229
- tmp_1 = primitiveOf(Companion_instance_4, name, ref, refined);
3230
- }
3231
- tmp_0 = tmp_1;
2937
+ var tmp0_safe_receiver_0 = Companion_instance_5.k35(item.pp_1, types);
2938
+ var tmp;
2939
+ if (tmp0_safe_receiver_0 == null) {
2940
+ tmp = null;
3232
2941
  } else {
3233
- if (ref instanceof Iterable) {
3234
- var inner = ref.yp_1;
3235
- var tmp_2;
3236
- var tmp_3;
3237
- if (inner instanceof Custom) {
3238
- // Inline function 'kotlin.collections.contains' call
3239
- // Inline function 'kotlin.collections.containsKey' call
3240
- var key_0 = inner.n19_1;
3241
- tmp_3 = (isInterface(types, KtMap) ? types : THROW_CCE()).q2(key_0);
3242
- } else {
3243
- tmp_3 = false;
3244
- }
3245
- if (tmp_3) {
3246
- tmp_2 = new NestedList(name, inner.n19_1, Companion_instance_4.u32(inner.n19_1, types, refined, nextVisited));
3247
- } else {
3248
- tmp_2 = primitiveOf(Companion_instance_4, name, ref, refined);
3249
- }
3250
- tmp_0 = tmp_2;
3251
- } else {
3252
- tmp_0 = primitiveOf(Companion_instance_4, name, ref, refined);
3253
- }
2942
+ // Inline function 'kotlin.let' call
2943
+ tmp = new Nested(item.op_1.o1(), tmp0_safe_receiver_0);
3254
2944
  }
3255
- var tmp$ret$2 = tmp_0;
3256
- destination.x(tmp$ret$2);
2945
+ var tmp1_elvis_lhs = tmp;
2946
+ var tmp$ret$3 = tmp1_elvis_lhs == null ? new Primitive_0(item.op_1.o1(), mapWithRefinedUnwrap(Companion_instance_4, item.pp_1, refined), Companion_instance_6.l35(item.pp_1, refined)) : tmp1_elvis_lhs;
2947
+ destination.x(tmp$ret$3);
3257
2948
  }
3258
2949
  return destination;
3259
2950
  };
@@ -3278,31 +2969,31 @@ function BodyKind_Primitive_getInstance() {
3278
2969
  return BodyKind_Primitive_instance;
3279
2970
  }
3280
2971
  function EndpointShape(name, pathFields, queryFields, headerFields, bodyKind, bodyElementType, bodyPrimitiveType, bodyFieldShapes, responseVariants, modelImports) {
3281
- this.g33_1 = name;
3282
- this.h33_1 = pathFields;
3283
- this.i33_1 = queryFields;
3284
- this.j33_1 = headerFields;
3285
- this.k33_1 = bodyKind;
3286
- this.l33_1 = bodyElementType;
3287
- this.m33_1 = bodyPrimitiveType;
3288
- this.n33_1 = bodyFieldShapes;
3289
- this.o33_1 = responseVariants;
3290
- this.p33_1 = modelImports;
2972
+ this.e34_1 = name;
2973
+ this.f34_1 = pathFields;
2974
+ this.g34_1 = queryFields;
2975
+ this.h34_1 = headerFields;
2976
+ this.i34_1 = bodyKind;
2977
+ this.j34_1 = bodyElementType;
2978
+ this.k34_1 = bodyPrimitiveType;
2979
+ this.l34_1 = bodyFieldShapes;
2980
+ this.m34_1 = responseVariants;
2981
+ this.n34_1 = modelImports;
3291
2982
  }
3292
2983
  protoOf(EndpointShape).toString = function () {
3293
- return 'EndpointShape(name=' + this.g33_1 + ', pathFields=' + toString(this.h33_1) + ', queryFields=' + toString(this.i33_1) + ', headerFields=' + toString(this.j33_1) + ', bodyKind=' + this.k33_1.toString() + ', bodyElementType=' + this.l33_1 + ', bodyPrimitiveType=' + toString_1(this.m33_1) + ', bodyFieldShapes=' + toString(this.n33_1) + ', responseVariants=' + toString(this.o33_1) + ', modelImports=' + toString(this.p33_1) + ')';
2984
+ return 'EndpointShape(name=' + this.e34_1 + ', pathFields=' + toString(this.f34_1) + ', queryFields=' + toString(this.g34_1) + ', headerFields=' + toString(this.h34_1) + ', bodyKind=' + this.i34_1.toString() + ', bodyElementType=' + this.j34_1 + ', bodyPrimitiveType=' + toString_1(this.k34_1) + ', bodyFieldShapes=' + toString(this.l34_1) + ', responseVariants=' + toString(this.m34_1) + ', modelImports=' + toString(this.n34_1) + ')';
3294
2985
  };
3295
2986
  protoOf(EndpointShape).hashCode = function () {
3296
- var result = getStringHashCode(this.g33_1);
3297
- result = imul(result, 31) + hashCode(this.h33_1) | 0;
3298
- result = imul(result, 31) + hashCode(this.i33_1) | 0;
3299
- result = imul(result, 31) + hashCode(this.j33_1) | 0;
3300
- result = imul(result, 31) + this.k33_1.hashCode() | 0;
3301
- result = imul(result, 31) + (this.l33_1 == null ? 0 : getStringHashCode(this.l33_1)) | 0;
3302
- result = imul(result, 31) + (this.m33_1 == null ? 0 : hashCode(this.m33_1)) | 0;
3303
- result = imul(result, 31) + hashCode(this.n33_1) | 0;
3304
- result = imul(result, 31) + hashCode(this.o33_1) | 0;
3305
- result = imul(result, 31) + hashCode(this.p33_1) | 0;
2987
+ var result = getStringHashCode(this.e34_1);
2988
+ result = imul(result, 31) + hashCode(this.f34_1) | 0;
2989
+ result = imul(result, 31) + hashCode(this.g34_1) | 0;
2990
+ result = imul(result, 31) + hashCode(this.h34_1) | 0;
2991
+ result = imul(result, 31) + this.i34_1.hashCode() | 0;
2992
+ result = imul(result, 31) + (this.j34_1 == null ? 0 : getStringHashCode(this.j34_1)) | 0;
2993
+ result = imul(result, 31) + (this.k34_1 == null ? 0 : hashCode(this.k34_1)) | 0;
2994
+ result = imul(result, 31) + hashCode(this.l34_1) | 0;
2995
+ result = imul(result, 31) + hashCode(this.m34_1) | 0;
2996
+ result = imul(result, 31) + hashCode(this.n34_1) | 0;
3306
2997
  return result;
3307
2998
  };
3308
2999
  protoOf(EndpointShape).equals = function (other) {
@@ -3310,25 +3001,25 @@ protoOf(EndpointShape).equals = function (other) {
3310
3001
  return true;
3311
3002
  if (!(other instanceof EndpointShape))
3312
3003
  return false;
3313
- if (!(this.g33_1 === other.g33_1))
3004
+ if (!(this.e34_1 === other.e34_1))
3314
3005
  return false;
3315
- if (!equals(this.h33_1, other.h33_1))
3006
+ if (!equals(this.f34_1, other.f34_1))
3316
3007
  return false;
3317
- if (!equals(this.i33_1, other.i33_1))
3008
+ if (!equals(this.g34_1, other.g34_1))
3318
3009
  return false;
3319
- if (!equals(this.j33_1, other.j33_1))
3010
+ if (!equals(this.h34_1, other.h34_1))
3320
3011
  return false;
3321
- if (!this.k33_1.equals(other.k33_1))
3012
+ if (!this.i34_1.equals(other.i34_1))
3322
3013
  return false;
3323
- if (!(this.l33_1 == other.l33_1))
3014
+ if (!(this.j34_1 == other.j34_1))
3324
3015
  return false;
3325
- if (!equals(this.m33_1, other.m33_1))
3016
+ if (!equals(this.k34_1, other.k34_1))
3326
3017
  return false;
3327
- if (!equals(this.n33_1, other.n33_1))
3018
+ if (!equals(this.l34_1, other.l34_1))
3328
3019
  return false;
3329
- if (!equals(this.o33_1, other.o33_1))
3020
+ if (!equals(this.m34_1, other.m34_1))
3330
3021
  return false;
3331
- if (!equals(this.p33_1, other.p33_1))
3022
+ if (!equals(this.n34_1, other.n34_1))
3332
3023
  return false;
3333
3024
  return true;
3334
3025
  };
@@ -3338,174 +3029,958 @@ function genNullable($this, element) {
3338
3029
  function blockType_0($this, nested) {
3339
3030
  return new Function_0(emptyList(), Unit_instance_0, Custom_init_$Create$(nested));
3340
3031
  }
3341
- function nestedBlock($this, $receiver, fieldName, nestedTypeName, genType, valueType) {
3342
- var nested = $this.b33(nestedTypeName);
3343
- $receiver.u15(fieldName, genType, true, Visibility_PUBLIC_getInstance(), VOID, VOID, $receiver.t14('null'));
3344
- valueSetter($receiver, fieldName, valueType);
3345
- $receiver.u15('_' + fieldName + 'Block', new Nullable(blockType_0($this, nested)), true, Visibility_INTERNAL_getInstance(), VOID, listOf('@PublishedApi'), $receiver.t14('null'));
3032
+ function blockField($this, fieldName) {
3033
+ return escapeKotlinIdentifier('_' + fieldName + 'Block');
3034
+ }
3035
+ function nestedBlock($this, $receiver, fieldName, record) {
3036
+ var nested = $this.z33(record.x34_1);
3037
+ $receiver.e16(fieldName, genNullable($this, record.m35()), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $receiver.d15('null'));
3038
+ valueSetter($receiver, fieldName, record.m35());
3039
+ $receiver.e16('_' + fieldName + 'Block', new Nullable(blockType_0($this, nested)), true, Visibility_PRIVATE_getInstance(), VOID, VOID, $receiver.d15('null'));
3346
3040
  var tmp = fieldName + 'Block';
3347
- $receiver.w15(tmp, VOID, VOID, RecordBuilder$nestedBlock$lambda(nested, fieldName));
3041
+ $receiver.g16(tmp, VOID, VOID, RecordBuilder$nestedBlock$lambda(nested, fieldName));
3348
3042
  }
3349
- function appendNestedBlock($this, $receiver, fieldName, nestedTypeName, fields, receiver, path, indent, listSegment) {
3350
- var blockRef = receiver + '.' + escapeKotlinIdentifier('_' + fieldName + 'Block');
3351
- var nestedVar = escapeKotlinIdentifier('nested_' + fieldName);
3352
- var nextPath = listSegment ? plus_0(plus_0(path, fieldName), '*') : plus_0(path, fieldName);
3353
- // Inline function 'kotlin.text.appendLine' call
3354
- var value = indent + blockRef + '?.let { block ->';
3355
- // Inline function 'kotlin.text.appendLine' call
3356
- $receiver.q(value).s(_Char___init__impl__6a9atx(10));
3357
- // Inline function 'kotlin.text.appendLine' call
3358
- var value_0 = indent + ' val ' + nestedVar + ' = ' + $this.b33(nestedTypeName) + '().apply(block)';
3359
- // Inline function 'kotlin.text.appendLine' call
3360
- $receiver.q(value_0).s(_Char___init__impl__6a9atx(10));
3361
- $receiver.q($this.a33(fields, nestedVar, nextPath, indent + ' '));
3362
- // Inline function 'kotlin.text.appendLine' call
3363
- var value_1 = indent + '}';
3364
- // Inline function 'kotlin.text.appendLine' call
3365
- $receiver.q(value_1).s(_Char___init__impl__6a9atx(10));
3043
+ function copyExpr($this, fields) {
3044
+ return joinToString(fields, ',\n', 'base.copy(\n', ',\n)', VOID, VOID, RecordBuilder$copyExpr$lambda);
3045
+ }
3046
+ function RecordBuilder$buildBuilderClass$lambda$lambda($model, $fields) {
3047
+ return function ($this$function) {
3048
+ $this$function.v13(Visibility_INTERNAL_getInstance());
3049
+ $this$function.w13('base', $model);
3050
+ $this$function.w13('rs', Custom_init_$Create$('RandomSource'));
3051
+ $this$function.t13($model);
3052
+ // Inline function 'kotlin.takeIf' call
3053
+ var this_0 = $fields;
3054
+ var tmp;
3055
+ // Inline function 'kotlin.collections.isNotEmpty' call
3056
+ if (!this_0.r()) {
3057
+ tmp = this_0;
3058
+ } else {
3059
+ tmp = null;
3060
+ }
3061
+ var tmp0_safe_receiver = tmp;
3062
+ var tmp_0;
3063
+ if (tmp0_safe_receiver == null) {
3064
+ tmp_0 = null;
3065
+ } else {
3066
+ // Inline function 'kotlin.let' call
3067
+ tmp_0 = copyExpr(RecordBuilder_instance, tmp0_safe_receiver);
3068
+ }
3069
+ var tmp1_elvis_lhs = tmp_0;
3070
+ $this$function.z13($this$function.d15(tmp1_elvis_lhs == null ? 'base' : tmp1_elvis_lhs));
3071
+ return Unit_instance;
3072
+ };
3366
3073
  }
3367
- function RecordBuilder$buildBuilderClass$lambda($fields) {
3074
+ function RecordBuilder$buildBuilderClass$lambda($fields, $typeName) {
3368
3075
  return function ($this$struct) {
3369
- $this$struct.h15();
3370
- $this$struct.g15('@WirespecScenarioDsl');
3371
- $this$struct.l13(Visibility_PUBLIC_getInstance());
3076
+ $this$struct.r15();
3077
+ $this$struct.q15('@WirespecScenarioDsl');
3078
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
3372
3079
  // Inline function 'kotlin.collections.forEach' call
3373
3080
  var _iterator__ex2g4s = $fields.t();
3374
3081
  while (_iterator__ex2g4s.u()) {
3375
3082
  var element = _iterator__ex2g4s.v();
3376
3083
  if (element instanceof Primitive_0) {
3377
- $this$struct.u15(element.f34_1, genNullable(RecordBuilder_instance, element.g34_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.t14('null'));
3378
- valueSetter($this$struct, element.f34_1, element.g34_1);
3084
+ $this$struct.e16(element.e35_1, genNullable(RecordBuilder_instance, element.f35_1), true, Visibility_PUBLIC_getInstance(), VOID, VOID, $this$struct.d15('null'));
3085
+ valueSetter($this$struct, element.e35_1, element.f35_1);
3379
3086
  } else {
3380
- if (element instanceof NestedObject) {
3381
- nestedBlock(RecordBuilder_instance, $this$struct, element.c34_1, element.d34_1, genNullable(RecordBuilder_instance, Custom_init_$Create$(element.d34_1)), Custom_init_$Create$(element.d34_1));
3087
+ if (element instanceof Nested) {
3088
+ nestedBlock(RecordBuilder_instance, $this$struct, element.h35_1, element.i35_1);
3382
3089
  } else {
3383
- if (element instanceof NestedList) {
3384
- nestedBlock(RecordBuilder_instance, $this$struct, element.z33_1, element.a34_1, genNullable(RecordBuilder_instance, new Array_0(Custom_init_$Create$(element.a34_1))), new Array_0(Custom_init_$Create$(element.a34_1)));
3385
- } else {
3386
- noWhenBranchMatchedException();
3387
- }
3090
+ noWhenBranchMatchedException();
3388
3091
  }
3389
3092
  }
3390
3093
  }
3094
+ var model = Custom_init_$Create$(Companion_getInstance().wt($typeName).zt());
3095
+ $this$struct.g16('applyTo', VOID, VOID, RecordBuilder$buildBuilderClass$lambda$lambda(model, $fields));
3391
3096
  return Unit_instance;
3392
3097
  };
3393
3098
  }
3394
3099
  function RecordBuilder$nestedBlock$lambda($nested, $fieldName) {
3395
3100
  return function ($this$function) {
3396
- $this$function.l13(Visibility_PUBLIC_getInstance());
3397
- $this$function.m13('block', blockType_0(RecordBuilder_instance, $nested));
3398
- $this$function.i14(escapeKotlinIdentifier('_' + $fieldName + 'Block') + ' = block');
3101
+ $this$function.v13(Visibility_PUBLIC_getInstance());
3102
+ $this$function.w13('block', blockType_0(RecordBuilder_instance, $nested));
3103
+ $this$function.s14(blockField(RecordBuilder_instance, $fieldName) + ' = block');
3399
3104
  return Unit_instance;
3400
3105
  };
3401
3106
  }
3402
- function RecordBuilder$renderRegistration$lambda(it) {
3403
- return '"' + it + '"';
3107
+ function RecordBuilder$copyExpr$lambda(f) {
3108
+ var name = escapeKotlinIdentifier(f.m());
3109
+ var pinned = 'this.' + name;
3110
+ var base = 'base.' + name;
3111
+ var tmp;
3112
+ if (f instanceof Primitive_0) {
3113
+ var tmp1_safe_receiver = f.g35_1;
3114
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n35('gen.draw(rs)');
3115
+ tmp = pinned + '.let { gen -> if (gen == null) ' + base + ' else ' + (tmp2_elvis_lhs == null ? 'gen.draw(rs)' : tmp2_elvis_lhs) + ' }';
3116
+ } else {
3117
+ if (f instanceof Nested) {
3118
+ var nested = RecordBuilder_instance.z33(f.i35_1.x34_1) + '().apply(block)';
3119
+ var tmp_0;
3120
+ if (f.i35_1.y34_1) {
3121
+ tmp_0 = '?.let { block -> ' + nested + ' }?.let { nested -> ' + f.i35_1.b35(base, 'nested') + ' }';
3122
+ } else {
3123
+ tmp_0 = '?.let { block -> ' + f.i35_1.b35(base, nested) + ' }';
3124
+ }
3125
+ var viaBlock = tmp_0;
3126
+ tmp = pinned + '?.draw(rs) ?: this.' + blockField(RecordBuilder_instance, f.h35_1) + viaBlock + ' ?: ' + base;
3127
+ } else {
3128
+ noWhenBranchMatchedException();
3129
+ }
3130
+ }
3131
+ var value = tmp;
3132
+ return ' ' + name + ' = ' + value;
3404
3133
  }
3405
3134
  function RecordBuilder() {
3406
3135
  }
3407
- protoOf(RecordBuilder).b33 = function (typeName) {
3136
+ protoOf(RecordBuilder).z33 = function (typeName) {
3408
3137
  return Companion_getInstance().wt(typeName).zt() + 'Builder';
3409
3138
  };
3410
- protoOf(RecordBuilder).m34 = function (typeName, fields) {
3411
- var tmp = this.b33(typeName);
3412
- return struct(tmp, RecordBuilder$buildBuilderClass$lambda(fields));
3139
+ protoOf(RecordBuilder).o35 = function (typeName, fields) {
3140
+ var tmp = this.z33(typeName);
3141
+ return struct(tmp, RecordBuilder$buildBuilderClass$lambda(fields, typeName));
3413
3142
  };
3414
- protoOf(RecordBuilder).a33 = function (fields, receiver, path, indent) {
3415
- // Inline function 'kotlin.text.buildString' call
3416
- // Inline function 'kotlin.apply' call
3417
- var this_0 = StringBuilder_init_$Create$();
3418
- // Inline function 'kotlin.collections.forEach' call
3419
- var _iterator__ex2g4s = fields.t();
3420
- while (_iterator__ex2g4s.u()) {
3421
- var element = _iterator__ex2g4s.v();
3422
- var fieldRef = receiver + '.' + escapeKotlinIdentifier(element.m());
3423
- var tmp = plus_0(path, element.m());
3424
- var segs = joinToString(tmp, ', ', VOID, VOID, VOID, VOID, RecordBuilder$renderRegistration$lambda);
3425
- // Inline function 'kotlin.text.appendLine' call
3426
- var value = indent + fieldRef + '?.let { registerPath(' + segs + ') { it } }';
3427
- // Inline function 'kotlin.text.appendLine' call
3428
- this_0.q(value).s(_Char___init__impl__6a9atx(10));
3429
- if (!(element instanceof Primitive_0)) {
3430
- if (element instanceof NestedObject) {
3431
- appendNestedBlock(RecordBuilder_instance, this_0, element.c34_1, element.d34_1, element.e34_1, receiver, path, indent, false);
3143
+ var RecordBuilder_instance;
3144
+ function RecordBuilder_getInstance() {
3145
+ return RecordBuilder_instance;
3146
+ }
3147
+ function Companion_3() {
3148
+ }
3149
+ protoOf(Companion_3).k35 = function (reference, types) {
3150
+ var tmp;
3151
+ if (reference instanceof Custom) {
3152
+ // Inline function 'kotlin.takeIf' call
3153
+ var tmp_0;
3154
+ // Inline function 'kotlin.collections.contains' call
3155
+ // Inline function 'kotlin.collections.containsKey' call
3156
+ var key = reference.x19_1;
3157
+ if ((isInterface(types, KtMap) ? types : THROW_CCE()).q2(key)) {
3158
+ tmp_0 = reference;
3159
+ } else {
3160
+ tmp_0 = null;
3161
+ }
3162
+ var tmp1_safe_receiver = tmp_0;
3163
+ var tmp_1;
3164
+ if (tmp1_safe_receiver == null) {
3165
+ tmp_1 = null;
3166
+ } else {
3167
+ // Inline function 'kotlin.let' call
3168
+ tmp_1 = new RecordRef(tmp1_safe_receiver.x19_1, false, tmp1_safe_receiver.y19_1, false);
3169
+ }
3170
+ tmp = tmp_1;
3171
+ } else {
3172
+ if (reference instanceof Iterable) {
3173
+ var tmp_2 = reference.yp_1;
3174
+ var tmp2_safe_receiver = tmp_2 instanceof Custom ? tmp_2 : null;
3175
+ var tmp_3;
3176
+ if (tmp2_safe_receiver == null) {
3177
+ tmp_3 = null;
3432
3178
  } else {
3433
- if (element instanceof NestedList) {
3434
- appendNestedBlock(RecordBuilder_instance, this_0, element.z33_1, element.a34_1, element.b34_1, receiver, path, indent, true);
3179
+ // Inline function 'kotlin.takeIf' call
3180
+ var tmp_4;
3181
+ // Inline function 'kotlin.collections.contains' call
3182
+ // Inline function 'kotlin.collections.containsKey' call
3183
+ var key_0 = tmp2_safe_receiver.x19_1;
3184
+ if ((isInterface(types, KtMap) ? types : THROW_CCE()).q2(key_0)) {
3185
+ tmp_4 = tmp2_safe_receiver;
3435
3186
  } else {
3436
- noWhenBranchMatchedException();
3187
+ tmp_4 = null;
3437
3188
  }
3189
+ tmp_3 = tmp_4;
3190
+ }
3191
+ var tmp3_safe_receiver = tmp_3;
3192
+ var tmp_5;
3193
+ if (tmp3_safe_receiver == null) {
3194
+ tmp_5 = null;
3195
+ } else {
3196
+ // Inline function 'kotlin.let' call
3197
+ tmp_5 = new RecordRef(tmp3_safe_receiver.x19_1, true, reference.zp_1, tmp3_safe_receiver.y19_1);
3438
3198
  }
3199
+ tmp = tmp_5;
3200
+ } else {
3201
+ tmp = null;
3439
3202
  }
3440
3203
  }
3441
- return this_0.toString();
3204
+ return tmp;
3442
3205
  };
3443
- var RecordBuilder_instance;
3444
- function RecordBuilder_getInstance() {
3445
- return RecordBuilder_instance;
3206
+ var Companion_instance_5;
3207
+ function Companion_getInstance_4() {
3208
+ return Companion_instance_5;
3209
+ }
3210
+ function RecordRef(typeName, isList, isNullable, isElementNullable) {
3211
+ this.x34_1 = typeName;
3212
+ this.y34_1 = isList;
3213
+ this.z34_1 = isNullable;
3214
+ this.a35_1 = isElementNullable;
3215
+ }
3216
+ protoOf(RecordRef).m35 = function () {
3217
+ // Inline function 'kotlin.let' call
3218
+ var it = Custom_init_$Create$(this.x34_1);
3219
+ return this.y34_1 ? new Array_0(it) : it;
3220
+ };
3221
+ protoOf(RecordRef).b35 = function (value, builder) {
3222
+ return this.y34_1 ? value + (this.z34_1 ? '?.' : '.') + 'map { e -> ' + ((this.a35_1 ? 'e?.let { ' + builder + '.applyTo(it, rs) }' : builder + '.applyTo(e, rs)') + ' }') : this.z34_1 ? value + '?.let { ' + builder + '.applyTo(it, rs) }' : builder + '.applyTo(' + value + ', rs)';
3223
+ };
3224
+ protoOf(RecordRef).toString = function () {
3225
+ return 'RecordRef(typeName=' + this.x34_1 + ', isList=' + this.y34_1 + ', isNullable=' + this.z34_1 + ', isElementNullable=' + this.a35_1 + ')';
3226
+ };
3227
+ protoOf(RecordRef).hashCode = function () {
3228
+ var result = getStringHashCode(this.x34_1);
3229
+ result = imul(result, 31) + getBooleanHashCode(this.y34_1) | 0;
3230
+ result = imul(result, 31) + getBooleanHashCode(this.z34_1) | 0;
3231
+ result = imul(result, 31) + getBooleanHashCode(this.a35_1) | 0;
3232
+ return result;
3233
+ };
3234
+ protoOf(RecordRef).equals = function (other) {
3235
+ if (this === other)
3236
+ return true;
3237
+ if (!(other instanceof RecordRef))
3238
+ return false;
3239
+ if (!(this.x34_1 === other.x34_1))
3240
+ return false;
3241
+ if (!(this.y34_1 === other.y34_1))
3242
+ return false;
3243
+ if (!(this.z34_1 === other.z34_1))
3244
+ return false;
3245
+ if (!(this.a35_1 === other.a35_1))
3246
+ return false;
3247
+ return true;
3248
+ };
3249
+ function Wrap(typeName, isNullable) {
3250
+ this.p35_1 = typeName;
3251
+ this.q35_1 = isNullable;
3252
+ }
3253
+ protoOf(Wrap).ot = function () {
3254
+ return this.q35_1;
3255
+ };
3256
+ protoOf(Wrap).toString = function () {
3257
+ return 'Wrap(typeName=' + this.p35_1 + ', isNullable=' + this.q35_1 + ')';
3258
+ };
3259
+ protoOf(Wrap).hashCode = function () {
3260
+ var result = getStringHashCode(this.p35_1);
3261
+ result = imul(result, 31) + getBooleanHashCode(this.q35_1) | 0;
3262
+ return result;
3263
+ };
3264
+ protoOf(Wrap).equals = function (other) {
3265
+ if (this === other)
3266
+ return true;
3267
+ if (!(other instanceof Wrap))
3268
+ return false;
3269
+ if (!(this.p35_1 === other.p35_1))
3270
+ return false;
3271
+ if (!(this.q35_1 === other.q35_1))
3272
+ return false;
3273
+ return true;
3274
+ };
3275
+ function Each(element, isNullable) {
3276
+ this.s35_1 = element;
3277
+ this.t35_1 = isNullable;
3278
+ }
3279
+ protoOf(Each).ot = function () {
3280
+ return this.t35_1;
3281
+ };
3282
+ protoOf(Each).toString = function () {
3283
+ return 'Each(element=' + toString(this.s35_1) + ', isNullable=' + this.t35_1 + ')';
3284
+ };
3285
+ protoOf(Each).hashCode = function () {
3286
+ var result = hashCode(this.s35_1);
3287
+ result = imul(result, 31) + getBooleanHashCode(this.t35_1) | 0;
3288
+ return result;
3289
+ };
3290
+ protoOf(Each).equals = function (other) {
3291
+ if (this === other)
3292
+ return true;
3293
+ if (!(other instanceof Each))
3294
+ return false;
3295
+ if (!equals(this.s35_1, other.s35_1))
3296
+ return false;
3297
+ if (!(this.t35_1 === other.t35_1))
3298
+ return false;
3299
+ return true;
3300
+ };
3301
+ function Values(value, isNullable) {
3302
+ this.u35_1 = value;
3303
+ this.v35_1 = isNullable;
3304
+ }
3305
+ protoOf(Values).ot = function () {
3306
+ return this.v35_1;
3307
+ };
3308
+ protoOf(Values).toString = function () {
3309
+ return 'Values(value=' + toString(this.u35_1) + ', isNullable=' + this.v35_1 + ')';
3310
+ };
3311
+ protoOf(Values).hashCode = function () {
3312
+ var result = hashCode(this.u35_1);
3313
+ result = imul(result, 31) + getBooleanHashCode(this.v35_1) | 0;
3314
+ return result;
3315
+ };
3316
+ protoOf(Values).equals = function (other) {
3317
+ if (this === other)
3318
+ return true;
3319
+ if (!(other instanceof Values))
3320
+ return false;
3321
+ if (!equals(this.u35_1, other.u35_1))
3322
+ return false;
3323
+ if (!(this.v35_1 === other.v35_1))
3324
+ return false;
3325
+ return true;
3326
+ };
3327
+ function Companion_4() {
3328
+ }
3329
+ protoOf(Companion_4).l35 = function (reference, refined) {
3330
+ var tmp;
3331
+ if (reference instanceof Custom) {
3332
+ // Inline function 'kotlin.takeIf' call
3333
+ var this_0 = new Wrap(Companion_getInstance().wt(reference.x19_1).zt(), reference.y19_1);
3334
+ var tmp_0;
3335
+ // Inline function 'kotlin.collections.contains' call
3336
+ // Inline function 'kotlin.collections.containsKey' call
3337
+ var key = reference.x19_1;
3338
+ if ((isInterface(refined, KtMap) ? refined : THROW_CCE()).q2(key)) {
3339
+ tmp_0 = this_0;
3340
+ } else {
3341
+ tmp_0 = null;
3342
+ }
3343
+ tmp = tmp_0;
3344
+ } else {
3345
+ if (reference instanceof Iterable) {
3346
+ var tmp1_safe_receiver = this.l35(reference.yp_1, refined);
3347
+ var tmp_1;
3348
+ if (tmp1_safe_receiver == null) {
3349
+ tmp_1 = null;
3350
+ } else {
3351
+ // Inline function 'kotlin.let' call
3352
+ tmp_1 = new Each(tmp1_safe_receiver, reference.zp_1);
3353
+ }
3354
+ tmp = tmp_1;
3355
+ } else {
3356
+ if (reference instanceof Dict) {
3357
+ var tmp2_safe_receiver = this.l35(reference.bq_1, refined);
3358
+ var tmp_2;
3359
+ if (tmp2_safe_receiver == null) {
3360
+ tmp_2 = null;
3361
+ } else {
3362
+ // Inline function 'kotlin.let' call
3363
+ tmp_2 = new Values(tmp2_safe_receiver, reference.cq_1);
3364
+ }
3365
+ tmp = tmp_2;
3366
+ } else {
3367
+ tmp = null;
3368
+ }
3369
+ }
3370
+ }
3371
+ return tmp;
3372
+ };
3373
+ var Companion_instance_6;
3374
+ function Companion_getInstance_5() {
3375
+ return Companion_instance_6;
3376
+ }
3377
+ function Refinement() {
3378
+ }
3379
+ function buildRequestClass($this, $receiver, shape) {
3380
+ $receiver.p17(shape.y35_1, RpcDslFile$buildRequestClass$lambda(shape));
3381
+ }
3382
+ function buildGenerateWrapper_0($this, $receiver, shape) {
3383
+ var tmp = shape.w35_1 + 'Generate';
3384
+ $receiver.p17(tmp, RpcDslFile$buildGenerateWrapper$lambda(shape));
3385
+ }
3386
+ function outcomeFunction($this, $receiver, name, outcome) {
3387
+ var tmp0_safe_receiver = outcome.i36_1;
3388
+ var tmp;
3389
+ if (tmp0_safe_receiver == null) {
3390
+ tmp = null;
3391
+ } else {
3392
+ // Inline function 'kotlin.let' call
3393
+ tmp = Companion_instance_7.n36(tmp0_safe_receiver.k36_1);
3394
+ }
3395
+ var value = tmp;
3396
+ var wrap = RpcDslFile$outcomeFunction$lambda(outcome);
3397
+ var record = outcome.j36_1;
3398
+ $receiver.g16(name, VOID, VOID, RpcDslFile$outcomeFunction$lambda_0(outcome, value, wrap, record));
3399
+ }
3400
+ function buildCall($this, $receiver, shape) {
3401
+ var args = joinToString(shape.z35_1, ', ', VOID, VOID, VOID, VOID, RpcDslFile$buildCall$lambda);
3402
+ var request = shape.z35_1.r() ? '_' : 'request';
3403
+ $receiver.k16('call', VOID, VOID, RpcDslFile$buildCall$lambda_0(shape, request, args));
3404
+ }
3405
+ function buildValueGenerator($this, $receiver, value, module_0) {
3406
+ var tmp = Companion_instance_7.o36(value.m());
3407
+ $receiver.g16(tmp, VOID, VOID, RpcDslFile$buildValueGenerator$lambda(value, module_0));
3408
+ }
3409
+ function RpcDslFile$build$lambda($kotestPkg, $shape, $packageName, $module) {
3410
+ return function ($this$file) {
3411
+ $this$file.o17($kotestPkg);
3412
+ var tmp;
3413
+ // Inline function 'kotlin.collections.isNotEmpty' call
3414
+ if (!$shape.p36().r()) {
3415
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
3416
+ $this$file.c16('community.flock.wirespec.kotlin', 'Wirespec');
3417
+ tmp = Unit_instance;
3418
+ }
3419
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'rpcCall');
3420
+ var tmp_0;
3421
+ // Inline function 'kotlin.collections.isNotEmpty' call
3422
+ if (!$shape.a36_1.r()) {
3423
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
3424
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'draw');
3425
+ $this$file.c16('io.kotest.property', 'RandomSource');
3426
+ tmp_0 = Unit_instance;
3427
+ }
3428
+ $this$file.c16('io.kotest.property.arbitrary', 'constant');
3429
+ var tmp_1;
3430
+ // Inline function 'kotlin.collections.isNotEmpty' call
3431
+ if (!$shape.f36_1.r()) {
3432
+ $this$file.c16('kotlin.reflect', 'typeOf');
3433
+ tmp_1 = Unit_instance;
3434
+ }
3435
+ $this$file.c16('io.kotest.property', 'Arb');
3436
+ $this$file.c16('io.kotest.property', 'Gen');
3437
+ $this$file.c16($packageName.bt_1 + '.rpc', $shape.w35_1);
3438
+ // Inline function 'kotlin.collections.forEach' call
3439
+ var _iterator__ex2g4s = $shape.e36_1.t();
3440
+ while (_iterator__ex2g4s.u()) {
3441
+ var element = _iterator__ex2g4s.v();
3442
+ $this$file.c16($packageName.bt_1 + '.model', Companion_getInstance().wt(element).zt());
3443
+ }
3444
+ // Inline function 'kotlin.collections.forEach' call
3445
+ var _iterator__ex2g4s_0 = $shape.f36_1.t();
3446
+ while (_iterator__ex2g4s_0.u()) {
3447
+ var element_0 = _iterator__ex2g4s_0.v();
3448
+ $this$file.c16($packageName.bt_1 + '.generator', Companion_getInstance().wt(element_0).zt() + 'Generator');
3449
+ }
3450
+ buildRequestClass(RpcDslFile_instance, $this$file, $shape);
3451
+ buildGenerateWrapper_0(RpcDslFile_instance, $this$file, $shape);
3452
+ $this$file.e16('generate', Custom_init_$Create$($shape.w35_1 + 'Generate'), VOID, Visibility_PUBLIC_getInstance(), Custom_init_$Create$($shape.w35_1), VOID, VOID, new FunctionCall(VOID, VOID, Companion_getInstance().wt($shape.w35_1 + 'Generate')));
3453
+ buildCall(RpcDslFile_instance, $this$file, $shape);
3454
+ var tmp_2;
3455
+ // Inline function 'kotlin.collections.isNotEmpty' call
3456
+ if (!$shape.a36_1.r()) {
3457
+ $this$file.n17_1.x(RecordBuilder_instance.o35($shape.y35_1, $shape.a36_1));
3458
+ tmp_2 = Unit_instance;
3459
+ }
3460
+ // Inline function 'kotlin.collections.forEach' call
3461
+ var _iterator__ex2g4s_1 = $shape.p36().t();
3462
+ while (_iterator__ex2g4s_1.u()) {
3463
+ var element_1 = _iterator__ex2g4s_1.v();
3464
+ buildValueGenerator(RpcDslFile_instance, $this$file, element_1, $module);
3465
+ }
3466
+ return Unit_instance;
3467
+ };
3468
+ }
3469
+ function RpcDslFile$buildRequestClass$lambda$lambda($this$constructo) {
3470
+ return Unit_instance;
3471
+ }
3472
+ function RpcDslFile$buildRequestClass$lambda($shape) {
3473
+ return function ($this$struct) {
3474
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
3475
+ // Inline function 'kotlin.collections.forEach' call
3476
+ var _iterator__ex2g4s = $shape.z35_1.t();
3477
+ while (_iterator__ex2g4s.u()) {
3478
+ var element = _iterator__ex2g4s.v();
3479
+ $this$struct.x15(new Name(listOf(escapeKotlinIdentifier(element.op_1.o1()))), convert(element.pp_1));
3480
+ }
3481
+ var tmp;
3482
+ if ($shape.z35_1.r()) {
3483
+ $this$struct.y15(RpcDslFile$buildRequestClass$lambda$lambda);
3484
+ tmp = Unit_instance;
3485
+ }
3486
+ return Unit_instance;
3487
+ };
3446
3488
  }
3447
- function TypeDslFile$build$lambda$lambda($receiver, $builder, $model, $shape) {
3489
+ function RpcDslFile$buildGenerateWrapper$lambda$lambda($builder, $requestArb, $shape) {
3448
3490
  return function ($this$function) {
3449
- $this$function.l13(Visibility_PUBLIC_getInstance());
3450
- $this$function.k13(Custom_init_$Create$($receiver));
3451
- $this$function.o13('block', $this$function.s14(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.t14('{}'));
3452
- $this$function.j13(Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($model))));
3453
- $this$function.i14('val builder = ' + $builder + '().apply(block)');
3454
- $this$function.i14('return recordGen<' + $model + '> {');
3455
- // Inline function 'kotlin.text.trimEnd' call
3456
- var this_0 = RecordBuilder_instance.a33($shape.o34_1, 'builder', emptyList(), ' ');
3457
- var tmp$ret$0 = toString(trimEnd(isCharSequence(this_0) ? this_0 : THROW_CCE()));
3458
- $this$function.i14(tmp$ret$0);
3459
- $this$function.i14('}');
3491
+ $this$function.v13(Visibility_PUBLIC_getInstance());
3492
+ $this$function.y13('block', $this$function.c15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.d15('{}'));
3493
+ $this$function.t13($requestArb);
3494
+ $this$function.s14('val builder = ' + $builder + '().apply(block)');
3495
+ $this$function.s14('return generatedGen { generator, rs -> builder.applyTo(' + Companion_instance_7.n36($shape.y35_1) + ', rs) }');
3496
+ return Unit_instance;
3497
+ };
3498
+ }
3499
+ function RpcDslFile$buildGenerateWrapper$lambda$lambda_0($requestArb, $shape) {
3500
+ return function ($this$function) {
3501
+ $this$function.v13(Visibility_PUBLIC_getInstance());
3502
+ $this$function.t13($requestArb);
3503
+ $this$function.z13($this$function.d15('Arb.constant(' + $shape.y35_1 + ')'));
3504
+ return Unit_instance;
3505
+ };
3506
+ }
3507
+ function RpcDslFile$buildGenerateWrapper$lambda($shape) {
3508
+ return function ($this$struct) {
3509
+ $this$struct.r15();
3510
+ $this$struct.v13(Visibility_PUBLIC_getInstance());
3511
+ $this$struct.s15(Visibility_INTERNAL_getInstance());
3512
+ var requestArb = Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($shape.y35_1)));
3513
+ var tmp;
3514
+ // Inline function 'kotlin.collections.isNotEmpty' call
3515
+ if (!$shape.a36_1.r()) {
3516
+ var builder = RecordBuilder_instance.z33($shape.y35_1);
3517
+ $this$struct.g16('request', VOID, VOID, RpcDslFile$buildGenerateWrapper$lambda$lambda(builder, requestArb, $shape));
3518
+ tmp = Unit_instance;
3519
+ } else {
3520
+ $this$struct.g16('request', VOID, VOID, RpcDslFile$buildGenerateWrapper$lambda$lambda_0(requestArb, $shape));
3521
+ tmp = Unit_instance;
3522
+ }
3523
+ outcomeFunction(RpcDslFile_instance, $this$struct, 'result', $shape.b36_1);
3524
+ var tmp0_safe_receiver = $shape.c36_1;
3525
+ if (tmp0_safe_receiver == null)
3526
+ null;
3527
+ else {
3528
+ // Inline function 'kotlin.let' call
3529
+ outcomeFunction(RpcDslFile_instance, $this$struct, 'error', tmp0_safe_receiver);
3530
+ }
3531
+ return Unit_instance;
3532
+ };
3533
+ }
3534
+ function RpcDslFile$outcomeFunction$lambda($outcome) {
3535
+ return function (drawn) {
3536
+ var tmp0_safe_receiver = $outcome.h36_1;
3537
+ var tmp;
3538
+ if (tmp0_safe_receiver == null) {
3539
+ tmp = null;
3540
+ } else {
3541
+ // Inline function 'kotlin.let' call
3542
+ tmp = tmp0_safe_receiver + '(' + drawn + ')';
3543
+ }
3544
+ var tmp1_elvis_lhs = tmp;
3545
+ return tmp1_elvis_lhs == null ? drawn : tmp1_elvis_lhs;
3546
+ };
3547
+ }
3548
+ function RpcDslFile$outcomeFunction$lambda_0($outcome, $value, $wrap, $record) {
3549
+ return function ($this$function) {
3550
+ $this$function.v13(Visibility_PUBLIC_getInstance());
3551
+ $this$function.t13(Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($outcome.g36_1))));
3552
+ var tmp;
3553
+ if ($value == null) {
3554
+ $this$function.z13($this$function.d15('Arb.constant(' + $wrap('Unit') + ')'));
3555
+ tmp = Unit_instance;
3556
+ } else if ($record == null) {
3557
+ $this$function.z13($this$function.d15('generatedGen { generator, _ -> ' + $wrap($value) + ' }'));
3558
+ tmp = Unit_instance;
3559
+ } else {
3560
+ var builder = RecordBuilder_instance.z33($record.x34_1);
3561
+ $this$function.y13('block', $this$function.c15(Unit_instance_0, Custom_init_$Create$(builder)), $this$function.d15('{}'));
3562
+ $this$function.s14('val builder = ' + builder + '().apply(block)');
3563
+ $this$function.s14('return generatedGen { generator, rs -> ' + $wrap($record.b35($value, 'builder')) + ' }');
3564
+ tmp = Unit_instance;
3565
+ }
3566
+ return Unit_instance;
3567
+ };
3568
+ }
3569
+ function RpcDslFile$buildCall$lambda(it) {
3570
+ return 'request.' + escapeKotlinIdentifier(it.op_1.o1());
3571
+ }
3572
+ function RpcDslFile$buildCall$lambda_0($shape, $request, $args) {
3573
+ return function ($this$asyncFunction) {
3574
+ $this$asyncFunction.v13(Visibility_PUBLIC_getInstance());
3575
+ $this$asyncFunction.u13(Custom_init_$Create$('Gen', listOf(Custom_init_$Create$($shape.y35_1))));
3576
+ $this$asyncFunction.t13(Custom_init_$Create$($shape.d36_1));
3577
+ $this$asyncFunction.z13($this$asyncFunction.d15('rpcCall(' + $shape.w35_1 + '.Service::class, this) { service, ' + $request + ' -> service.' + $shape.x35_1 + '(' + $args + ') }'));
3578
+ return Unit_instance;
3579
+ };
3580
+ }
3581
+ function RpcDslFile$buildValueGenerator$lambda($value, $module) {
3582
+ return function ($this$function) {
3583
+ $this$function.v13(Visibility_PRIVATE_getInstance());
3584
+ $this$function.w13('generator', Custom_init_$Create$('Wirespec.Generator'));
3585
+ $this$function.w13('path', new Array_0(String_instance));
3586
+ $this$function.t13(Custom_init_$Create$($value.b1i()));
3587
+ $this$function.z13($value.q36($module));
3588
+ return Unit_instance;
3589
+ };
3590
+ }
3591
+ function RpcDslFile() {
3592
+ }
3593
+ protoOf(RpcDslFile).r36 = function (rpc, packageName, module_0, types, refined) {
3594
+ var shape = Companion_instance_8.s36(rpc, types, refined);
3595
+ var kotestPkg = packageName.bt_1 + '.kotest';
3596
+ var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.w35_1 + 'Dsl');
3597
+ var tmp = Companion_getInstance().wt(fileName);
3598
+ return file(tmp, RpcDslFile$build$lambda(kotestPkg, shape, packageName, module_0));
3599
+ };
3600
+ var RpcDslFile_instance;
3601
+ function RpcDslFile_getInstance() {
3602
+ return RpcDslFile_instance;
3603
+ }
3604
+ function Request(name, parameters) {
3605
+ this.t36_1 = name;
3606
+ this.u36_1 = parameters;
3607
+ this.v36_1 = this.t36_1;
3608
+ }
3609
+ protoOf(Request).m = function () {
3610
+ return this.t36_1;
3611
+ };
3612
+ protoOf(Request).b1i = function () {
3613
+ return this.v36_1;
3614
+ };
3615
+ protoOf(Request).q36 = function (module_0) {
3616
+ // Inline function 'kotlin.let' call
3617
+ var constructed = generatorConstructor(this.t36_1, this.u36_1, module_0);
3618
+ // Inline function 'kotlin.collections.mapKeys' call
3619
+ var this_0 = constructed.du_1;
3620
+ // Inline function 'kotlin.collections.mapKeysTo' call
3621
+ var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.c1()));
3622
+ // Inline function 'kotlin.collections.associateByTo' call
3623
+ var _iterator__ex2g4s = this_0.m1().t();
3624
+ while (_iterator__ex2g4s.u()) {
3625
+ var element = _iterator__ex2g4s.v();
3626
+ // Inline function 'kotlin.collections.component1' call
3627
+ var key = element.n1();
3628
+ var tmp = new Name(listOf(escapeKotlinIdentifier(key.xt())));
3629
+ var tmp$ret$7 = element.o1();
3630
+ destination.v2(tmp, tmp$ret$7);
3631
+ }
3632
+ return constructed.fu(VOID, destination);
3633
+ };
3634
+ protoOf(Request).toString = function () {
3635
+ return 'Request(name=' + this.t36_1 + ', parameters=' + toString(this.u36_1) + ')';
3636
+ };
3637
+ protoOf(Request).hashCode = function () {
3638
+ var result = getStringHashCode(this.t36_1);
3639
+ result = imul(result, 31) + hashCode(this.u36_1) | 0;
3640
+ return result;
3641
+ };
3642
+ protoOf(Request).equals = function (other) {
3643
+ if (this === other)
3644
+ return true;
3645
+ if (!(other instanceof Request))
3646
+ return false;
3647
+ if (!(this.t36_1 === other.t36_1))
3648
+ return false;
3649
+ if (!equals(this.u36_1, other.u36_1))
3650
+ return false;
3651
+ return true;
3652
+ };
3653
+ function Value(name, type, reference) {
3654
+ this.k36_1 = name;
3655
+ this.l36_1 = type;
3656
+ this.m36_1 = reference;
3657
+ }
3658
+ protoOf(Value).m = function () {
3659
+ return this.k36_1;
3660
+ };
3661
+ protoOf(Value).b1i = function () {
3662
+ return this.l36_1;
3663
+ };
3664
+ protoOf(Value).q36 = function (module_0) {
3665
+ var tmp = single(generatorConstructor(this.k36_1, listOf(new Field_0(emptyList(), new FieldIdentifier('value'), this.m36_1)), module_0).du_1.u2());
3666
+ // Inline function 'kotlin.let' call
3667
+ var it = tmp instanceof FunctionCall ? tmp : THROW_CCE();
3668
+ return it.qy(VOID, VOID, VOID, plus_1(it.ny_1, to(Companion_getInstance().wt('path'), new VariableReference(Companion_getInstance().wt('path')))));
3669
+ };
3670
+ protoOf(Value).toString = function () {
3671
+ return 'Value(name=' + this.k36_1 + ', type=' + this.l36_1 + ', reference=' + toString(this.m36_1) + ')';
3672
+ };
3673
+ protoOf(Value).hashCode = function () {
3674
+ var result = getStringHashCode(this.k36_1);
3675
+ result = imul(result, 31) + getStringHashCode(this.l36_1) | 0;
3676
+ result = imul(result, 31) + hashCode(this.m36_1) | 0;
3677
+ return result;
3678
+ };
3679
+ protoOf(Value).equals = function (other) {
3680
+ if (this === other)
3681
+ return true;
3682
+ if (!(other instanceof Value))
3683
+ return false;
3684
+ if (!(this.k36_1 === other.k36_1))
3685
+ return false;
3686
+ if (!(this.l36_1 === other.l36_1))
3687
+ return false;
3688
+ if (!equals(this.m36_1, other.m36_1))
3689
+ return false;
3690
+ return true;
3691
+ };
3692
+ function Companion_5() {
3693
+ }
3694
+ protoOf(Companion_5).o36 = function (name) {
3695
+ return 'generate' + name;
3696
+ };
3697
+ protoOf(Companion_5).n36 = function (name) {
3698
+ return this.o36(name) + '(generator, emptyList())';
3699
+ };
3700
+ var Companion_instance_7;
3701
+ function Companion_getInstance_6() {
3702
+ return Companion_instance_7;
3703
+ }
3704
+ function outcome($this, rpcName, kind, reference, wrapped, types) {
3705
+ var valueType = KotlinGenerator_getInstance().l1c(convert(reference));
3706
+ var tmp = wrapped ? rpcName + '.' + kind : valueType;
3707
+ // Inline function 'kotlin.takeIf' call
3708
+ var this_0 = rpcName + '.' + kind;
3709
+ var tmp_0;
3710
+ if (wrapped) {
3711
+ tmp_0 = this_0;
3712
+ } else {
3713
+ tmp_0 = null;
3714
+ }
3715
+ var tmp_1 = tmp_0;
3716
+ // Inline function 'kotlin.takeIf' call
3717
+ var this_1 = new Value(rpcName + kind, valueType, reference);
3718
+ var tmp_2;
3719
+ if (!(reference instanceof Unit)) {
3720
+ tmp_2 = this_1;
3721
+ } else {
3722
+ tmp_2 = null;
3723
+ }
3724
+ var tmp_3 = tmp_2;
3725
+ var tmp0_safe_receiver = Companion_instance_5.k35(reference, types);
3726
+ var tmp_4;
3727
+ if (tmp0_safe_receiver == null) {
3728
+ tmp_4 = null;
3729
+ } else {
3730
+ // Inline function 'kotlin.takeIf' call
3731
+ var tmp_5;
3732
+ // Inline function 'kotlin.collections.isNotEmpty' call
3733
+ if (!get_fields(getValue(types, tmp0_safe_receiver.x34_1).lp_1).r()) {
3734
+ tmp_5 = tmp0_safe_receiver;
3735
+ } else {
3736
+ tmp_5 = null;
3737
+ }
3738
+ tmp_4 = tmp_5;
3739
+ }
3740
+ return new Outcome(tmp, tmp_1, tmp_3, tmp_4);
3741
+ }
3742
+ function Outcome(type, wrapper, generated, record) {
3743
+ this.g36_1 = type;
3744
+ this.h36_1 = wrapper;
3745
+ this.i36_1 = generated;
3746
+ this.j36_1 = record;
3747
+ }
3748
+ protoOf(Outcome).toString = function () {
3749
+ return 'Outcome(type=' + this.g36_1 + ', wrapper=' + this.h36_1 + ', generated=' + toString_1(this.i36_1) + ', record=' + toString_1(this.j36_1) + ')';
3750
+ };
3751
+ protoOf(Outcome).hashCode = function () {
3752
+ var result = getStringHashCode(this.g36_1);
3753
+ result = imul(result, 31) + (this.h36_1 == null ? 0 : getStringHashCode(this.h36_1)) | 0;
3754
+ result = imul(result, 31) + (this.i36_1 == null ? 0 : this.i36_1.hashCode()) | 0;
3755
+ result = imul(result, 31) + (this.j36_1 == null ? 0 : this.j36_1.hashCode()) | 0;
3756
+ return result;
3757
+ };
3758
+ protoOf(Outcome).equals = function (other) {
3759
+ if (this === other)
3760
+ return true;
3761
+ if (!(other instanceof Outcome))
3762
+ return false;
3763
+ if (!(this.g36_1 === other.g36_1))
3764
+ return false;
3765
+ if (!(this.h36_1 == other.h36_1))
3766
+ return false;
3767
+ if (!equals(this.i36_1, other.i36_1))
3768
+ return false;
3769
+ if (!equals(this.j36_1, other.j36_1))
3770
+ return false;
3771
+ return true;
3772
+ };
3773
+ function Companion_6() {
3774
+ }
3775
+ protoOf(Companion_6).s36 = function (rpc, types, refined) {
3776
+ var name = Companion_getInstance().wt(rpc.rq_1.o1()).zt();
3777
+ var requestName = name + 'Request';
3778
+ var parameters = get_fields(rpc.sq_1);
3779
+ var requestFields = Companion_instance_4.t33(requestName, plus_1(types, to(requestName, syntheticType(requestName, parameters))), refined);
3780
+ var result = outcome(this, name, 'Result', rpc.tq_1, !(rpc.uq_1 == null), types);
3781
+ // Inline function 'kotlin.collections.map' call
3782
+ // Inline function 'kotlin.collections.mapTo' call
3783
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(parameters, 10));
3784
+ var _iterator__ex2g4s = parameters.t();
3785
+ while (_iterator__ex2g4s.u()) {
3786
+ var item = _iterator__ex2g4s.v();
3787
+ var tmp$ret$2 = item.pp_1;
3788
+ destination.x(tmp$ret$2);
3789
+ }
3790
+ var references = plus(destination, listOfNotNull([rpc.tq_1, rpc.uq_1]));
3791
+ var tmp = escapeKotlinIdentifier(Companion_getInstance().wt(rpc.rq_1.o1()).yt());
3792
+ var tmp0_safe_receiver = rpc.uq_1;
3793
+ var tmp_0;
3794
+ if (tmp0_safe_receiver == null) {
3795
+ tmp_0 = null;
3796
+ } else {
3797
+ // Inline function 'kotlin.let' call
3798
+ tmp_0 = outcome(Companion_instance_8, name, 'Error', tmp0_safe_receiver, true, types);
3799
+ }
3800
+ var tmp_1 = tmp_0;
3801
+ var tmp_2 = !(rpc.uq_1 == null) ? name + '.Response' : result.g36_1;
3802
+ var tmp_3 = Companion_instance_4.u33(references);
3803
+ // Inline function 'kotlin.collections.flatMap' call
3804
+ // Inline function 'kotlin.collections.flatMapTo' call
3805
+ var destination_0 = ArrayList_init_$Create$();
3806
+ var _iterator__ex2g4s_0 = references.t();
3807
+ while (_iterator__ex2g4s_0.u()) {
3808
+ var element = _iterator__ex2g4s_0.v();
3809
+ var list = Companion_instance_4.j35(element);
3810
+ addAll(destination_0, list);
3811
+ }
3812
+ return new RpcShape(name, tmp, requestName, parameters, requestFields, result, tmp_1, tmp_2, tmp_3, distinct(destination_0));
3813
+ };
3814
+ var Companion_instance_8;
3815
+ function Companion_getInstance_7() {
3816
+ return Companion_instance_8;
3817
+ }
3818
+ function RpcShape(name, functionName, requestName, parameters, requestFields, result, error, callReturnType, modelImports, generatorImports) {
3819
+ this.w35_1 = name;
3820
+ this.x35_1 = functionName;
3821
+ this.y35_1 = requestName;
3822
+ this.z35_1 = parameters;
3823
+ this.a36_1 = requestFields;
3824
+ this.b36_1 = result;
3825
+ this.c36_1 = error;
3826
+ this.d36_1 = callReturnType;
3827
+ this.e36_1 = modelImports;
3828
+ this.f36_1 = generatorImports;
3829
+ }
3830
+ protoOf(RpcShape).p36 = function () {
3831
+ // Inline function 'kotlin.takeIf' call
3832
+ var this_0 = new Request(this.y35_1, this.z35_1);
3833
+ var tmp;
3834
+ // Inline function 'kotlin.collections.isNotEmpty' call
3835
+ if (!this.z35_1.r()) {
3836
+ tmp = this_0;
3837
+ } else {
3838
+ tmp = null;
3839
+ }
3840
+ var tmp_0 = tmp;
3841
+ var tmp0_safe_receiver = this.c36_1;
3842
+ return listOfNotNull([tmp_0, this.b36_1.i36_1, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i36_1]);
3843
+ };
3844
+ protoOf(RpcShape).toString = function () {
3845
+ return 'RpcShape(name=' + this.w35_1 + ', functionName=' + this.x35_1 + ', requestName=' + this.y35_1 + ', parameters=' + toString(this.z35_1) + ', requestFields=' + toString(this.a36_1) + ', result=' + this.b36_1.toString() + ', error=' + toString_1(this.c36_1) + ', callReturnType=' + this.d36_1 + ', modelImports=' + toString(this.e36_1) + ', generatorImports=' + toString(this.f36_1) + ')';
3846
+ };
3847
+ protoOf(RpcShape).hashCode = function () {
3848
+ var result = getStringHashCode(this.w35_1);
3849
+ result = imul(result, 31) + getStringHashCode(this.x35_1) | 0;
3850
+ result = imul(result, 31) + getStringHashCode(this.y35_1) | 0;
3851
+ result = imul(result, 31) + hashCode(this.z35_1) | 0;
3852
+ result = imul(result, 31) + hashCode(this.a36_1) | 0;
3853
+ result = imul(result, 31) + this.b36_1.hashCode() | 0;
3854
+ result = imul(result, 31) + (this.c36_1 == null ? 0 : this.c36_1.hashCode()) | 0;
3855
+ result = imul(result, 31) + getStringHashCode(this.d36_1) | 0;
3856
+ result = imul(result, 31) + hashCode(this.e36_1) | 0;
3857
+ result = imul(result, 31) + hashCode(this.f36_1) | 0;
3858
+ return result;
3859
+ };
3860
+ protoOf(RpcShape).equals = function (other) {
3861
+ if (this === other)
3862
+ return true;
3863
+ if (!(other instanceof RpcShape))
3864
+ return false;
3865
+ if (!(this.w35_1 === other.w35_1))
3866
+ return false;
3867
+ if (!(this.x35_1 === other.x35_1))
3868
+ return false;
3869
+ if (!(this.y35_1 === other.y35_1))
3870
+ return false;
3871
+ if (!equals(this.z35_1, other.z35_1))
3872
+ return false;
3873
+ if (!equals(this.a36_1, other.a36_1))
3874
+ return false;
3875
+ if (!this.b36_1.equals(other.b36_1))
3876
+ return false;
3877
+ if (!equals(this.c36_1, other.c36_1))
3878
+ return false;
3879
+ if (!(this.d36_1 === other.d36_1))
3880
+ return false;
3881
+ if (!equals(this.e36_1, other.e36_1))
3882
+ return false;
3883
+ if (!equals(this.f36_1, other.f36_1))
3884
+ return false;
3885
+ return true;
3886
+ };
3887
+ function generatorConstructor(name, fields, module_0) {
3888
+ // Inline function 'community.flock.wirespec.compiler.core.ir.findAll' call
3889
+ var this_0 = convertToGenerator(syntheticType(name, fields), module_0);
3890
+ // Inline function 'kotlin.collections.buildList' call
3891
+ // Inline function 'kotlin.collections.buildListInternal' call
3892
+ // Inline function 'kotlin.apply' call
3893
+ var this_1 = ArrayList_init_$Create$();
3894
+ forEachElement(this_0, generatorConstructor$lambda(this_1));
3895
+ var tmp$ret$0 = this_1.q5();
3896
+ // Inline function 'kotlin.collections.filterIsInstance' call
3897
+ var tmp0 = single_0(tmp$ret$0).rx_1;
3898
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
3899
+ var destination = ArrayList_init_$Create$();
3900
+ var _iterator__ex2g4s = tmp0.t();
3901
+ while (_iterator__ex2g4s.u()) {
3902
+ var element = _iterator__ex2g4s.v();
3903
+ if (element instanceof ReturnStatement) {
3904
+ destination.x(element);
3905
+ }
3906
+ }
3907
+ var tmp = single_0(destination).iy_1;
3908
+ return tmp instanceof ConstructorStatement ? tmp : THROW_CCE();
3909
+ }
3910
+ function syntheticType(name, fields) {
3911
+ return new Type(null, emptyList(), new DefinitionIdentifier(name), new Shape(fields), emptyList());
3912
+ }
3913
+ function generatorConstructor$lambda($$this$buildList) {
3914
+ return function (element) {
3915
+ var tmp;
3916
+ if (element instanceof Function) {
3917
+ $$this$buildList.x(element);
3918
+ tmp = Unit_instance;
3919
+ }
3460
3920
  return Unit_instance;
3461
3921
  };
3462
3922
  }
3463
- function TypeDslFile$build$lambda($kotestPkg, $shape, $modelPkg, $receiver, $builder, $model) {
3923
+ function TypeDslFile$build$lambda$lambda($receiver, $builder, $model) {
3924
+ return function ($this$function) {
3925
+ $this$function.v13(Visibility_PUBLIC_getInstance());
3926
+ $this$function.u13(Custom_init_$Create$($receiver));
3927
+ $this$function.y13('block', $this$function.c15(Unit_instance_0, Custom_init_$Create$($builder)), $this$function.d15('{}'));
3928
+ $this$function.t13(Custom_init_$Create$('Arb', listOf(Custom_init_$Create$($model))));
3929
+ $this$function.s14('val builder = ' + $builder + '().apply(block)');
3930
+ $this$function.s14('return generatedGen { generator, rs -> builder.applyTo(' + $model + 'Generator.generate(generator, emptyList()), rs) }');
3931
+ return Unit_instance;
3932
+ };
3933
+ }
3934
+ function TypeDslFile$build$lambda($kotestPkg, $shape, $modelPkg, $packageName, $model, $receiver, $builder) {
3464
3935
  return function ($this$file) {
3465
- $this$file.e17($kotestPkg);
3466
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'recordGen');
3467
- $this$file.s15('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
3468
- $this$file.s15('io.kotest.property', 'Arb');
3936
+ $this$file.o17($kotestPkg);
3937
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'generatedGen');
3938
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'WirespecScenarioDsl');
3939
+ $this$file.c16('io.kotest.property', 'Arb');
3940
+ $this$file.c16('io.kotest.property', 'RandomSource');
3469
3941
  var tmp;
3470
3942
  // Inline function 'kotlin.collections.isNotEmpty' call
3471
- if (!$shape.o34_1.r()) {
3472
- $this$file.s15('io.kotest.property', 'Gen');
3473
- $this$file.s15('io.kotest.property.arbitrary', 'constant');
3943
+ if (!$shape.x36_1.r()) {
3944
+ $this$file.c16('community.flock.wirespec.integration.kotest.dsl', 'draw');
3945
+ $this$file.c16('io.kotest.property', 'Gen');
3946
+ $this$file.c16('io.kotest.property.arbitrary', 'constant');
3474
3947
  tmp = Unit_instance;
3475
3948
  }
3476
3949
  // Inline function 'kotlin.collections.forEach' call
3477
- var _iterator__ex2g4s = distinct(plus(listOf($shape.n34_1), $shape.p34_1)).t();
3950
+ var _iterator__ex2g4s = distinct(plus(listOf($shape.w36_1), $shape.y36_1)).t();
3478
3951
  while (_iterator__ex2g4s.u()) {
3479
3952
  var element = _iterator__ex2g4s.v();
3480
- $this$file.s15($modelPkg, Companion_getInstance().wt(element).zt());
3953
+ $this$file.c16($modelPkg, Companion_getInstance().wt(element).zt());
3481
3954
  }
3482
- $this$file.w15('generate', VOID, VOID, TypeDslFile$build$lambda$lambda($receiver, $builder, $model, $shape));
3483
- $this$file.d17_1.x(RecordBuilder_instance.m34($shape.n34_1, $shape.o34_1));
3955
+ $this$file.c16($packageName.bt_1 + '.generator', $model + 'Generator');
3956
+ $this$file.g16('generate', VOID, VOID, TypeDslFile$build$lambda$lambda($receiver, $builder, $model));
3957
+ $this$file.n17_1.x(RecordBuilder_instance.o35($shape.w36_1, $shape.x36_1));
3484
3958
  return Unit_instance;
3485
3959
  };
3486
3960
  }
3487
3961
  function TypeDslFile() {
3488
3962
  }
3489
- protoOf(TypeDslFile).q34 = function (type, packageName, types, refined) {
3490
- var shape = Companion_instance_5.r34(type, types, refined);
3963
+ protoOf(TypeDslFile).z36 = function (type, packageName, types, refined) {
3964
+ var shape = Companion_instance_9.a37(type, types, refined);
3491
3965
  var kotestPkg = packageName.bt_1 + '.kotest';
3492
3966
  var modelPkg = packageName.bt_1 + '.model';
3493
- var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.n34_1 + 'Dsl');
3494
- var model = Companion_getInstance().wt(shape.n34_1).zt();
3495
- var builder = RecordBuilder_instance.b33(shape.n34_1);
3496
- var receiver = shape.o34_1.r() ? model : model + '.Companion';
3967
+ var fileName = Companion_instance_0.at(kotestPkg).dt() + (shape.w36_1 + 'Dsl');
3968
+ var model = Companion_getInstance().wt(shape.w36_1).zt();
3969
+ var builder = RecordBuilder_instance.z33(shape.w36_1);
3970
+ var receiver = shape.x36_1.r() ? model : model + '.Companion';
3497
3971
  var tmp = Companion_getInstance().wt(fileName);
3498
- return file(tmp, TypeDslFile$build$lambda(kotestPkg, shape, modelPkg, receiver, builder, model));
3972
+ return file(tmp, TypeDslFile$build$lambda(kotestPkg, shape, modelPkg, packageName, model, receiver, builder));
3499
3973
  };
3500
3974
  var TypeDslFile_instance;
3501
3975
  function TypeDslFile_getInstance() {
3502
3976
  return TypeDslFile_instance;
3503
3977
  }
3504
- function Companion_3() {
3978
+ function Companion_7() {
3505
3979
  }
3506
- protoOf(Companion_3).r34 = function (type, types, refined) {
3980
+ protoOf(Companion_7).a37 = function (type, types, refined) {
3507
3981
  var name = type.kp_1.o1();
3508
- var fields = Companion_instance_4.u32(name, types, refined, emptySet());
3982
+ var fields = Companion_instance_4.t33(name, types, refined);
3983
+ var tmp = Companion_instance_4;
3509
3984
  // Inline function 'kotlin.collections.map' call
3510
3985
  var this_0 = get_fields(type.lp_1);
3511
3986
  // Inline function 'kotlin.collections.mapTo' call
@@ -3516,26 +3991,25 @@ protoOf(Companion_3).r34 = function (type, types, refined) {
3516
3991
  var tmp$ret$2 = item.pp_1;
3517
3992
  destination.x(tmp$ret$2);
3518
3993
  }
3519
- var directRefs = destination;
3520
- var modelImports = Companion_instance_4.v32(directRefs, fields, types);
3994
+ var modelImports = tmp.u33(destination);
3521
3995
  return new TypeShape(name, fields, modelImports);
3522
3996
  };
3523
- var Companion_instance_5;
3524
- function Companion_getInstance_4() {
3525
- return Companion_instance_5;
3997
+ var Companion_instance_9;
3998
+ function Companion_getInstance_8() {
3999
+ return Companion_instance_9;
3526
4000
  }
3527
4001
  function TypeShape(name, fields, modelImports) {
3528
- this.n34_1 = name;
3529
- this.o34_1 = fields;
3530
- this.p34_1 = modelImports;
4002
+ this.w36_1 = name;
4003
+ this.x36_1 = fields;
4004
+ this.y36_1 = modelImports;
3531
4005
  }
3532
4006
  protoOf(TypeShape).toString = function () {
3533
- return 'TypeShape(name=' + this.n34_1 + ', fields=' + toString(this.o34_1) + ', modelImports=' + toString(this.p34_1) + ')';
4007
+ return 'TypeShape(name=' + this.w36_1 + ', fields=' + toString(this.x36_1) + ', modelImports=' + toString(this.y36_1) + ')';
3534
4008
  };
3535
4009
  protoOf(TypeShape).hashCode = function () {
3536
- var result = getStringHashCode(this.n34_1);
3537
- result = imul(result, 31) + hashCode(this.o34_1) | 0;
3538
- result = imul(result, 31) + hashCode(this.p34_1) | 0;
4010
+ var result = getStringHashCode(this.w36_1);
4011
+ result = imul(result, 31) + hashCode(this.x36_1) | 0;
4012
+ result = imul(result, 31) + hashCode(this.y36_1) | 0;
3539
4013
  return result;
3540
4014
  };
3541
4015
  protoOf(TypeShape).equals = function (other) {
@@ -3543,23 +4017,23 @@ protoOf(TypeShape).equals = function (other) {
3543
4017
  return true;
3544
4018
  if (!(other instanceof TypeShape))
3545
4019
  return false;
3546
- if (!(this.n34_1 === other.n34_1))
4020
+ if (!(this.w36_1 === other.w36_1))
3547
4021
  return false;
3548
- if (!equals(this.o34_1, other.o34_1))
4022
+ if (!equals(this.x36_1, other.x36_1))
3549
4023
  return false;
3550
- if (!equals(this.p34_1, other.p34_1))
4024
+ if (!equals(this.y36_1, other.y36_1))
3551
4025
  return false;
3552
4026
  return true;
3553
4027
  };
3554
4028
  function valueSetter(_this__u8e3s4, fieldName, type) {
3555
4029
  var escaped = escapeKotlinIdentifier(fieldName);
3556
- _this__u8e3s4.w15(fieldName, VOID, VOID, valueSetter$lambda(type, escaped));
4030
+ _this__u8e3s4.g16(fieldName, VOID, VOID, valueSetter$lambda(type, escaped));
3557
4031
  }
3558
4032
  function valueSetter$lambda($type, $escaped) {
3559
4033
  return function ($this$function) {
3560
- $this$function.l13(Visibility_PUBLIC_getInstance());
3561
- $this$function.m13('value', $type);
3562
- $this$function.i14('this.' + $escaped + ' = Arb.constant(value)');
4034
+ $this$function.v13(Visibility_PUBLIC_getInstance());
4035
+ $this$function.w13('value', $type);
4036
+ $this$function.s14('this.' + $escaped + ' = Arb.constant(value)');
3563
4037
  return Unit_instance;
3564
4038
  };
3565
4039
  }
@@ -3567,7 +4041,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
3567
4041
  var tmp;
3568
4042
  var tmp_0;
3569
4043
  if ($receiver instanceof File) {
3570
- var tmp0 = $receiver.iv_1;
4044
+ var tmp0 = $receiver.cv_1;
3571
4045
  var tmp$ret$0;
3572
4046
  $l$block_0: {
3573
4047
  // Inline function 'kotlin.collections.any' call
@@ -3586,7 +4060,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
3586
4060
  var element = _iterator__ex2g4s.v();
3587
4061
  var tmp_2;
3588
4062
  if (element instanceof Package) {
3589
- tmp_2 = element.mv_1 === modelPkg;
4063
+ tmp_2 = element.gv_1 === modelPkg;
3590
4064
  } else {
3591
4065
  tmp_2 = false;
3592
4066
  }
@@ -3603,7 +4077,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
3603
4077
  }
3604
4078
  if (tmp_0) {
3605
4079
  // Inline function 'kotlin.collections.map' call
3606
- var this_0 = $receiver.iv_1;
4080
+ var this_0 = $receiver.cv_1;
3607
4081
  // Inline function 'kotlin.collections.mapTo' call
3608
4082
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
3609
4083
  var _iterator__ex2g4s_0 = this_0.t();
@@ -3614,7 +4088,7 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
3614
4088
  var tmp_5;
3615
4089
  var tmp_6;
3616
4090
  if (item instanceof Struct) {
3617
- tmp_6 = recordNames.i1(item.hx_1.zt());
4091
+ tmp_6 = recordNames.i1(item.bx_1.zt());
3618
4092
  } else {
3619
4093
  tmp_6 = false;
3620
4094
  }
@@ -3630,21 +4104,21 @@ function injectRecordCompanion($this, $receiver, recordNames, modelPkg) {
3630
4104
  tmp_4 = false;
3631
4105
  }
3632
4106
  if (tmp_4) {
3633
- tmp_3 = item.sx(VOID, VOID, VOID, VOID, plus_0(item.lx_1, raw('companion object')));
4107
+ tmp_3 = item.mx(VOID, VOID, VOID, VOID, plus_0(item.fx_1, raw('companion object')));
3634
4108
  } else {
3635
4109
  tmp_3 = item;
3636
4110
  }
3637
4111
  var tmp$ret$4 = tmp_3;
3638
4112
  destination.x(tmp$ret$4);
3639
4113
  }
3640
- tmp = $receiver.lv(VOID, destination);
4114
+ tmp = $receiver.fv(VOID, destination);
3641
4115
  } else {
3642
4116
  tmp = $receiver;
3643
4117
  }
3644
4118
  return tmp;
3645
4119
  }
3646
4120
  function hasCompanion($this, $receiver) {
3647
- var tmp0 = $receiver.lx_1;
4121
+ var tmp0 = $receiver.fx_1;
3648
4122
  var tmp$ret$0;
3649
4123
  $l$block_0: {
3650
4124
  // Inline function 'kotlin.collections.any' call
@@ -3664,7 +4138,7 @@ function hasCompanion($this, $receiver) {
3664
4138
  var tmp_0;
3665
4139
  if (element instanceof RawElement) {
3666
4140
  // Inline function 'kotlin.text.trimStart' call
3667
- var this_0 = element.gy_1;
4141
+ var this_0 = element.ay_1;
3668
4142
  var tmp$ret$2 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
3669
4143
  tmp_0 = startsWith(tmp$ret$2, 'companion object');
3670
4144
  } else {
@@ -3680,9 +4154,9 @@ function hasCompanion($this, $receiver) {
3680
4154
  return tmp$ret$0;
3681
4155
  }
3682
4156
  function KotestDslExtension(packageName) {
3683
- this.s34_1 = packageName;
4157
+ this.b37_1 = packageName;
3684
4158
  }
3685
- protoOf(KotestDslExtension).b1b = function (ir, ast) {
4159
+ protoOf(KotestDslExtension).f1b = function (ir, ast) {
3686
4160
  var modules = NonEmptyList__toList_impl_t5xcy2(ast.ep_1);
3687
4161
  // Inline function 'kotlin.collections.flatMap' call
3688
4162
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -3765,7 +4239,7 @@ protoOf(KotestDslExtension).b1b = function (ir, ast) {
3765
4239
  var _iterator__ex2g4s_6 = this_0.t();
3766
4240
  while (_iterator__ex2g4s_6.u()) {
3767
4241
  var item = _iterator__ex2g4s_6.v();
3768
- var tmp$ret$19 = TypeDslFile_instance.q34(item, this.s34_1, types, refined);
4242
+ var tmp$ret$19 = TypeDslFile_instance.z36(item, this.b37_1, types, refined);
3769
4243
  destination_6.x(tmp$ret$19);
3770
4244
  }
3771
4245
  var typeDsl = destination_6;
@@ -3775,7 +4249,7 @@ protoOf(KotestDslExtension).b1b = function (ir, ast) {
3775
4249
  var _iterator__ex2g4s_7 = endpoints.t();
3776
4250
  while (_iterator__ex2g4s_7.u()) {
3777
4251
  var item_0 = _iterator__ex2g4s_7.v();
3778
- var tmp$ret$22 = EndpointDslFile_instance.k34(item_0, this.s34_1, types, refined);
4252
+ var tmp$ret$22 = EndpointDslFile_instance.c35(item_0, this.b37_1, types, refined);
3779
4253
  destination_7.x(tmp$ret$22);
3780
4254
  }
3781
4255
  var endpointDsl = destination_7;
@@ -3787,41 +4261,71 @@ protoOf(KotestDslExtension).b1b = function (ir, ast) {
3787
4261
  var _iterator__ex2g4s_8 = channels.t();
3788
4262
  while (_iterator__ex2g4s_8.u()) {
3789
4263
  var item_1 = _iterator__ex2g4s_8.v();
3790
- var payload = Companion_instance_3.t32(item_1, types, refined).x32_1;
3791
- var tmp$ret$26 = ChannelDslFile_instance.c33(item_1, this.s34_1, types, refined, sendPayloads.x(payload));
4264
+ var payload = Companion_instance_3.s33(item_1, types, refined).w33_1;
4265
+ var tmp$ret$26 = ChannelDslFile_instance.a34(item_1, this.b37_1, types, refined, sendPayloads.x(payload));
3792
4266
  destination_8.x(tmp$ret$26);
3793
4267
  }
3794
4268
  var channelDsl = destination_8;
3795
- var extra = plus(plus(typeDsl, endpointDsl), channelDsl);
4269
+ // Inline function 'kotlin.collections.flatMap' call
4270
+ // Inline function 'kotlin.collections.flatMapTo' call
4271
+ var destination_9 = ArrayList_init_$Create$();
4272
+ var _iterator__ex2g4s_9 = modules.t();
4273
+ while (_iterator__ex2g4s_9.u()) {
4274
+ var element_6 = _iterator__ex2g4s_9.v();
4275
+ // Inline function 'kotlin.collections.filterIsInstance' call
4276
+ var tmp0 = new NonEmptyList(element_6.gp_1);
4277
+ // Inline function 'kotlin.collections.filterIsInstanceTo' call
4278
+ var destination_10 = ArrayList_init_$Create$();
4279
+ var _iterator__ex2g4s_10 = tmp0.t();
4280
+ while (_iterator__ex2g4s_10.u()) {
4281
+ var element_7 = _iterator__ex2g4s_10.v();
4282
+ if (element_7 instanceof Rpc) {
4283
+ destination_10.x(element_7);
4284
+ }
4285
+ }
4286
+ // Inline function 'kotlin.collections.map' call
4287
+ // Inline function 'kotlin.collections.mapTo' call
4288
+ var destination_11 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_10, 10));
4289
+ var _iterator__ex2g4s_11 = destination_10.t();
4290
+ while (_iterator__ex2g4s_11.u()) {
4291
+ var item_2 = _iterator__ex2g4s_11.v();
4292
+ var tmp$ret$34 = RpcDslFile_instance.r36(item_2, this.b37_1, element_6, types, refined);
4293
+ destination_11.x(tmp$ret$34);
4294
+ }
4295
+ var list_0 = destination_11;
4296
+ addAll(destination_9, list_0);
4297
+ }
4298
+ var rpcDsl = destination_9;
4299
+ var extra = plus(plus(plus(typeDsl, endpointDsl), channelDsl), rpcDsl);
3796
4300
  // Inline function 'kotlin.collections.map' call
3797
4301
  var this_1 = types.u2();
3798
4302
  // Inline function 'kotlin.collections.mapTo' call
3799
- var destination_9 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
3800
- var _iterator__ex2g4s_9 = this_1.t();
3801
- while (_iterator__ex2g4s_9.u()) {
3802
- var item_2 = _iterator__ex2g4s_9.v();
3803
- var tmp$ret$29 = Companion_getInstance().wt(item_2.kp_1.o1()).zt();
3804
- destination_9.x(tmp$ret$29);
3805
- }
3806
- var recordNames = toSet_0(destination_9);
3807
- var modelPkg = this.s34_1.bt_1 + '.model';
4303
+ var destination_12 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
4304
+ var _iterator__ex2g4s_12 = this_1.t();
4305
+ while (_iterator__ex2g4s_12.u()) {
4306
+ var item_3 = _iterator__ex2g4s_12.v();
4307
+ var tmp$ret$37 = Companion_getInstance().wt(item_3.kp_1.o1()).zt();
4308
+ destination_12.x(tmp$ret$37);
4309
+ }
4310
+ var recordNames = toSet_0(destination_12);
4311
+ var modelPkg = this.b37_1.bt_1 + '.model';
3808
4312
  // Inline function 'arrow.core.NonEmptyList.map' call
3809
4313
  // Inline function 'kotlin.collections.map' call
3810
4314
  var this_2 = _NonEmptyList___get_all__impl__pmf509(ir);
3811
4315
  // Inline function 'kotlin.collections.mapTo' call
3812
- var destination_10 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
3813
- var _iterator__ex2g4s_10 = this_2.t();
3814
- while (_iterator__ex2g4s_10.u()) {
3815
- var item_3 = _iterator__ex2g4s_10.v();
3816
- var tmp$ret$33 = injectRecordCompanion(this, item_3, recordNames, modelPkg);
3817
- destination_10.x(tmp$ret$33);
3818
- }
3819
- var withCompanions = _NonEmptyList___init__impl__fxd0xp(destination_10);
4316
+ var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
4317
+ var _iterator__ex2g4s_13 = this_2.t();
4318
+ while (_iterator__ex2g4s_13.u()) {
4319
+ var item_4 = _iterator__ex2g4s_13.v();
4320
+ var tmp$ret$41 = injectRecordCompanion(this, item_4, recordNames, modelPkg);
4321
+ destination_13.x(tmp$ret$41);
4322
+ }
4323
+ var withCompanions = _NonEmptyList___init__impl__fxd0xp(destination_13);
3820
4324
  return NonEmptyList__plus_impl_xqmb9(withCompanions, extra);
3821
4325
  };
3822
4326
  function annotateSerializable($this, $receiver, serialNames, serializableOnlyNames) {
3823
4327
  // Inline function 'kotlin.collections.flatMap' call
3824
- var tmp0 = $receiver.iv_1;
4328
+ var tmp0 = $receiver.cv_1;
3825
4329
  // Inline function 'kotlin.collections.flatMapTo' call
3826
4330
  var destination = ArrayList_init_$Create$();
3827
4331
  var _iterator__ex2g4s = tmp0.t();
@@ -3832,13 +4336,13 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
3832
4336
  if (element instanceof Struct) {
3833
4337
  // Inline function 'kotlin.collections.contains' call
3834
4338
  // Inline function 'kotlin.collections.containsKey' call
3835
- var key = element.hx_1.zt();
4339
+ var key = element.bx_1.zt();
3836
4340
  tmp_0 = (isInterface(serialNames, KtMap) ? serialNames : THROW_CCE()).q2(key);
3837
4341
  } else {
3838
4342
  tmp_0 = false;
3839
4343
  }
3840
4344
  if (tmp_0) {
3841
- tmp = listOf_0([Companion_getInstance_5().t34_1, Companion_getInstance_5().u34(getValue(serialNames, element.hx_1.zt())), element]);
4345
+ tmp = listOf_0([Companion_getInstance_9().c37_1, Companion_getInstance_9().d37(getValue(serialNames, element.bx_1.zt())), element]);
3842
4346
  } else {
3843
4347
  var tmp_1;
3844
4348
  var tmp_2;
@@ -3859,7 +4363,7 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
3859
4363
  tmp_1 = false;
3860
4364
  }
3861
4365
  if (tmp_1) {
3862
- tmp = listOf_0([Companion_getInstance_5().t34_1, element]);
4366
+ tmp = listOf_0([Companion_getInstance_9().c37_1, element]);
3863
4367
  } else {
3864
4368
  tmp = listOf(element);
3865
4369
  }
@@ -3867,25 +4371,25 @@ function annotateSerializable($this, $receiver, serialNames, serializableOnlyNam
3867
4371
  var list = tmp;
3868
4372
  addAll(destination, list);
3869
4373
  }
3870
- return $receiver.lv(VOID, destination);
4374
+ return $receiver.fv(VOID, destination);
3871
4375
  }
3872
- function Companion_4() {
3873
- Companion_instance_6 = this;
3874
- this.t34_1 = new RawElement('@kotlinx.serialization.Serializable');
4376
+ function Companion_8() {
4377
+ Companion_instance_10 = this;
4378
+ this.c37_1 = new RawElement('@kotlinx.serialization.Serializable');
3875
4379
  }
3876
- protoOf(Companion_4).u34 = function (name) {
4380
+ protoOf(Companion_8).d37 = function (name) {
3877
4381
  return new RawElement('@kotlinx.serialization.SerialName("' + name + '")');
3878
4382
  };
3879
- var Companion_instance_6;
3880
- function Companion_getInstance_5() {
3881
- if (Companion_instance_6 == null)
3882
- new Companion_4();
3883
- return Companion_instance_6;
4383
+ var Companion_instance_10;
4384
+ function Companion_getInstance_9() {
4385
+ if (Companion_instance_10 == null)
4386
+ new Companion_8();
4387
+ return Companion_instance_10;
3884
4388
  }
3885
4389
  function KotlinxSerializationExtension() {
3886
- Companion_getInstance_5();
4390
+ Companion_getInstance_9();
3887
4391
  }
3888
- protoOf(KotlinxSerializationExtension).b1b = function (ir, ast) {
4392
+ protoOf(KotlinxSerializationExtension).f1b = function (ir, ast) {
3889
4393
  // Inline function 'kotlin.collections.flatMap' call
3890
4394
  var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.ep_1);
3891
4395
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -3993,7 +4497,7 @@ function annotateEndpointHandler($this, $receiver, endpoints) {
3993
4497
  tmp = tmp0_elvis_lhs;
3994
4498
  }
3995
4499
  var endpoint = tmp;
3996
- return injectSpringAnnotationBeforeHandler($receiver, springAnnotation(endpoint, $this.v34_1));
4500
+ return injectSpringAnnotationBeforeHandler($receiver, springAnnotation(endpoint, $this.e37_1));
3997
4501
  }
3998
4502
  function containsEndpointNamespace($this, $receiver, endpoint) {
3999
4503
  // Inline function 'community.flock.wirespec.compiler.core.ir.findAll' call
@@ -4020,10 +4524,10 @@ function containsEndpointNamespace($this, $receiver, endpoint) {
4020
4524
  while (_iterator__ex2g4s.u()) {
4021
4525
  var element = _iterator__ex2g4s.v();
4022
4526
  var tmp_0;
4023
- var tmp0_safe_receiver = element.pv_1;
4024
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qu_1;
4527
+ var tmp0_safe_receiver = element.jv_1;
4528
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nu_1;
4025
4529
  if ((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.xt()) === 'Wirespec.Endpoint') {
4026
- tmp_0 = element.nv_1.zt() === Companion_getInstance().wt(endpoint.fr_1.o1()).zt();
4530
+ tmp_0 = element.hv_1.zt() === Companion_getInstance().wt(endpoint.fr_1.o1()).zt();
4027
4531
  } else {
4028
4532
  tmp_0 = false;
4029
4533
  }
@@ -4047,9 +4551,9 @@ function SpringMappingAnnotationsExtension$containsEndpointNamespace$lambda($$th
4047
4551
  };
4048
4552
  }
4049
4553
  function SpringMappingAnnotationsExtension(language) {
4050
- this.v34_1 = language;
4554
+ this.e37_1 = language;
4051
4555
  }
4052
- protoOf(SpringMappingAnnotationsExtension).b1b = function (ir, ast) {
4556
+ protoOf(SpringMappingAnnotationsExtension).f1b = function (ir, ast) {
4053
4557
  // Inline function 'kotlin.collections.flatMap' call
4054
4558
  var tmp0 = NonEmptyList__toList_impl_t5xcy2(ast.ep_1);
4055
4559
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -4097,14 +4601,14 @@ function injectSpringAnnotationBeforeHandler(_this__u8e3s4, annotation) {
4097
4601
  var tmp = scope;
4098
4602
  // Inline function 'community.flock.wirespec.compiler.core.ir.injectBefore' call
4099
4603
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformMatchingElements' call
4100
- var this_0 = scope.q18_1;
4604
+ var this_0 = scope.a19_1;
4101
4605
  // Inline function 'community.flock.wirespec.compiler.core.ir.transformer' call
4102
4606
  // Inline function 'kotlin.apply' call
4103
4607
  var this_1 = new TransformerBuilder();
4104
- this_1.k19(injectSpringAnnotationBeforeHandler$lambda(annotation));
4105
- var tmp$ret$5 = this_1.f19();
4106
- tmp.q18_1 = transform(this_0, tmp$ret$5);
4107
- var tmp_0 = scope.q18_1;
4608
+ this_1.u19(injectSpringAnnotationBeforeHandler$lambda(annotation));
4609
+ var tmp$ret$5 = this_1.p19();
4610
+ tmp.a19_1 = transform(this_0, tmp$ret$5);
4611
+ var tmp_0 = scope.a19_1;
4108
4612
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
4109
4613
  }
4110
4614
  function springAnnotation(_this__u8e3s4, language) {
@@ -4146,27 +4650,27 @@ function injectSpringAnnotationBeforeHandler$lambda($annotation) {
4146
4650
  return function (element, transformer) {
4147
4651
  var tmp;
4148
4652
  if (element instanceof Interface) {
4149
- var injected = element.tv_1.equals(Companion_getInstance().wt('Handler')) ? listOf(new RawElement($annotation)) : emptyList();
4653
+ var injected = element.nv_1.equals(Companion_getInstance().wt('Handler')) ? listOf(new RawElement($annotation)) : emptyList();
4150
4654
  var tmp_0;
4151
4655
  // Inline function 'kotlin.collections.isNotEmpty' call
4152
4656
  if (!injected.r()) {
4153
4657
  // Inline function 'community.flock.wirespec.compiler.core.ir.withElements' call
4154
- var elements = plus(injected, element.jv());
4658
+ var elements = plus(injected, element.dv());
4155
4659
  var tmp_1;
4156
4660
  if (element instanceof File) {
4157
- tmp_1 = element.lv(VOID, elements);
4661
+ tmp_1 = element.fv(VOID, elements);
4158
4662
  } else {
4159
4663
  if (element instanceof Struct) {
4160
- tmp_1 = element.sx(VOID, VOID, VOID, VOID, elements);
4664
+ tmp_1 = element.mx(VOID, VOID, VOID, VOID, elements);
4161
4665
  } else {
4162
4666
  if (element instanceof Namespace) {
4163
- tmp_1 = element.sv(VOID, elements);
4667
+ tmp_1 = element.mv(VOID, elements);
4164
4668
  } else {
4165
4669
  if (element instanceof Interface) {
4166
- tmp_1 = element.bw(VOID, elements);
4670
+ tmp_1 = element.vv(VOID, elements);
4167
4671
  } else {
4168
4672
  if (element instanceof Enum_1) {
4169
- tmp_1 = element.gx(VOID, VOID, VOID, VOID, VOID, elements);
4673
+ tmp_1 = element.ax(VOID, VOID, VOID, VOID, VOID, elements);
4170
4674
  } else {
4171
4675
  if (element instanceof Main) {
4172
4676
  tmp_1 = element;
@@ -4194,7 +4698,7 @@ function injectSpringAnnotationBeforeHandler$lambda($annotation) {
4194
4698
  function springAnnotation$lambda(it) {
4195
4699
  var tmp;
4196
4700
  if (it instanceof Literal) {
4197
- tmp = it.w1a_1;
4701
+ tmp = it.a1b_1;
4198
4702
  } else {
4199
4703
  if (it instanceof Param) {
4200
4704
  tmp = '{' + it.mr_1.o1() + '}';
@@ -4267,13 +4771,13 @@ function nativeHintsFile($this, ast) {
4267
4771
  var endpointNames = destination_3;
4268
4772
  if (modelNames.r() && endpointNames.r())
4269
4773
  return null;
4270
- var pkg = $this.w34_1.bt_1;
4271
- var tmp_0 = Companion_getInstance().wt($this.w34_1.dt() + 'WirespecNativeHints');
4774
+ var pkg = $this.f37_1.bt_1;
4775
+ var tmp_0 = Companion_getInstance().wt($this.f37_1.dt() + 'WirespecNativeHints');
4272
4776
  return file(tmp_0, SpringNativeHintsExtension$nativeHintsFile$lambda(pkg, modelNames, endpointNames, $this));
4273
4777
  }
4274
4778
  function nativeHintsClassBody($this, names) {
4275
4779
  var tmp;
4276
- switch ($this.x34_1.e3_1) {
4780
+ switch ($this.g37_1.e3_1) {
4277
4781
  case 1:
4278
4782
  tmp = kotlinNativeHintsClassBody($this, names);
4279
4783
  break;
@@ -4283,7 +4787,7 @@ function nativeHintsClassBody($this, names) {
4283
4787
  default:
4284
4788
  // Inline function 'kotlin.error' call
4285
4789
 
4286
- var message = 'SpringNativeHintsExtension supports Kotlin and Java targets only, got ' + toString($this.x34_1);
4790
+ var message = 'SpringNativeHintsExtension supports Kotlin and Java targets only, got ' + toString($this.g37_1);
4287
4791
  throw IllegalStateException_init_$Create$(toString(message));
4288
4792
  }
4289
4793
  return tmp;
@@ -4298,25 +4802,25 @@ function javaNativeHintsClassBody($this, names) {
4298
4802
  }
4299
4803
  function SpringNativeHintsExtension$nativeHintsFile$lambda($pkg, $modelNames, $endpointNames, this$0) {
4300
4804
  return function ($this$file) {
4301
- $this$file.e17($pkg);
4805
+ $this$file.o17($pkg);
4302
4806
  // Inline function 'kotlin.collections.forEach' call
4303
4807
  var _iterator__ex2g4s = $modelNames.t();
4304
4808
  while (_iterator__ex2g4s.u()) {
4305
4809
  var element = _iterator__ex2g4s.v();
4306
- $this$file.s15($pkg + '.model', element);
4810
+ $this$file.c16($pkg + '.model', element);
4307
4811
  }
4308
4812
  // Inline function 'kotlin.collections.forEach' call
4309
4813
  var _iterator__ex2g4s_0 = $endpointNames.t();
4310
4814
  while (_iterator__ex2g4s_0.u()) {
4311
4815
  var element_0 = _iterator__ex2g4s_0.v();
4312
- $this$file.s15($pkg + '.endpoint', element_0);
4313
- }
4314
- $this$file.s15('org.springframework.aot.hint', 'MemberCategory');
4315
- $this$file.s15('org.springframework.aot.hint', 'RuntimeHints');
4316
- $this$file.s15('org.springframework.aot.hint', 'RuntimeHintsRegistrar');
4317
- $this$file.s15('org.springframework.context.annotation', 'Configuration');
4318
- $this$file.s15('org.springframework.context.annotation', 'ImportRuntimeHints');
4319
- $this$file.i14(nativeHintsClassBody(this$0, plus($modelNames, $endpointNames)));
4816
+ $this$file.c16($pkg + '.endpoint', element_0);
4817
+ }
4818
+ $this$file.c16('org.springframework.aot.hint', 'MemberCategory');
4819
+ $this$file.c16('org.springframework.aot.hint', 'RuntimeHints');
4820
+ $this$file.c16('org.springframework.aot.hint', 'RuntimeHintsRegistrar');
4821
+ $this$file.c16('org.springframework.context.annotation', 'Configuration');
4822
+ $this$file.c16('org.springframework.context.annotation', 'ImportRuntimeHints');
4823
+ $this$file.s14(nativeHintsClassBody(this$0, plus($modelNames, $endpointNames)));
4320
4824
  return Unit_instance;
4321
4825
  };
4322
4826
  }
@@ -4327,20 +4831,33 @@ function SpringNativeHintsExtension$javaNativeHintsClassBody$lambda(it) {
4327
4831
  return ' registerWithInnerClasses(hints, ' + it + '.class, allMembers);';
4328
4832
  }
4329
4833
  function SpringNativeHintsExtension(packageName, language) {
4330
- this.w34_1 = packageName;
4331
- this.x34_1 = language;
4834
+ this.f37_1 = packageName;
4835
+ this.g37_1 = language;
4332
4836
  }
4333
- protoOf(SpringNativeHintsExtension).b1b = function (ir, ast) {
4334
- return NonEmptyList__plus_impl_xqmb9(ir, listOfNotNull(nativeHintsFile(this, ast)));
4837
+ protoOf(SpringNativeHintsExtension).f1b = function (ir, ast) {
4838
+ return NonEmptyList__plus_impl_xqmb9(ir, listOfNotNull_0(nativeHintsFile(this, ast)));
4335
4839
  };
4840
+ //region block: post-declaration
4841
+ protoOf(Wrap).r35 = wrap;
4842
+ protoOf(Wrap).n35 = wrap$default;
4843
+ protoOf(Each).r35 = wrap;
4844
+ protoOf(Each).n35 = wrap$default;
4845
+ protoOf(Values).r35 = wrap;
4846
+ protoOf(Values).n35 = wrap$default;
4847
+ //endregion
4336
4848
  //region block: init
4337
4849
  Companion_instance_3 = new Companion_1();
4338
4850
  ChannelDslFile_instance = new ChannelDslFile();
4339
4851
  EndpointDslFile_instance = new EndpointDslFile();
4340
4852
  Companion_instance_4 = new Companion_2();
4341
4853
  RecordBuilder_instance = new RecordBuilder();
4342
- TypeDslFile_instance = new TypeDslFile();
4343
4854
  Companion_instance_5 = new Companion_3();
4855
+ Companion_instance_6 = new Companion_4();
4856
+ RpcDslFile_instance = new RpcDslFile();
4857
+ Companion_instance_7 = new Companion_5();
4858
+ Companion_instance_8 = new Companion_6();
4859
+ TypeDslFile_instance = new TypeDslFile();
4860
+ Companion_instance_9 = new Companion_7();
4344
4861
  //endregion
4345
4862
  //region block: exports
4346
4863
  export {