@flock/wirespec 0.20.2 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1329 -1329
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +433 -433
  5. package/kotlin-kotlin-stdlib.mjs +6 -6
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +10144 -10144
  8. package/kotlin-rgxgen.mjs +1760 -1760
  9. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
  12. package/mordant-mordant.mjs +1198 -1198
  13. package/package.json +1 -1
  14. package/wirespec-src-compiler-core.mjs +1652 -1139
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +206 -191
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +182 -153
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +439 -379
  23. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-scala.mjs +175 -160
  25. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
  27. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-wirespec.mjs +98 -77
  29. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  30. package/wirespec-src-compiler-ir.mjs +3704 -3619
  31. package/wirespec-src-compiler-ir.mjs.map +1 -1
  32. package/wirespec-src-compiler-lib.mjs +308 -227
  33. package/wirespec-src-compiler-lib.mjs.map +1 -1
  34. package/wirespec-src-converter-avro.mjs +503 -503
  35. package/wirespec-src-converter-openapi.mjs +581 -569
  36. package/wirespec-src-converter-openapi.mjs.map +1 -1
  37. package/wirespec-src-ide-lsp.mjs +1352 -1352
  38. package/wirespec-src-plugin-arguments.mjs +136 -136
  39. package/wirespec-src-plugin-cli.mjs +85 -85
  40. package/wirespec-src-plugin-npm.d.mts +15 -0
  41. package/wirespec-src-plugin-npm.mjs +26 -26
  42. package/wirespec-src-tools-generator.mjs +29 -24
  43. package/wirespec-src-tools-generator.mjs.map +1 -1
@@ -101,6 +101,7 @@ import {
101
101
  convert17zcptkz4mhr4 as convert_2,
102
102
  convert32tuiui3czihh as convert_3,
103
103
  convert1cn4bolzoed8c as convert_4,
104
+ convert3ewo9inue7gua as convert_5,
104
105
  emitEndpointClient1meajc90wf3el as emitEndpointClient,
105
106
  emitClient32kfwzg2hm5vj as emitClient,
106
107
  get_extensions31c4or738wbxz as get_extensions,
@@ -121,7 +122,7 @@ import {
121
122
  structo1silz79n3nu as struct,
122
123
  RawExpression2bo7ldfrptjia as RawExpression,
123
124
  TypeDescriptor1hvcpxrtxcqsx as TypeDescriptor,
124
- convert2loxpwk8n2r8c as convert_5,
125
+ convert2loxpwk8n2r8c as convert_6,
125
126
  Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
126
127
  Function21cuq8qizkin7 as Function,
127
128
  RawElement2yts1x2rbem1g as RawElement,
@@ -147,7 +148,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
147
148
  var item = _iterator__ex2g4s.v();
148
149
  var _unary__edvuaz = index;
149
150
  index = _unary__edvuaz + 1 | 0;
150
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.xq(item) : item;
151
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance.dr(item) : item;
151
152
  destination.x(tmp$ret$0);
152
153
  }
153
154
  // Inline function 'kotlin.text.filter' call
@@ -187,17 +188,17 @@ function sanitizeFirstIsDigit($this, _this__u8e3s4) {
187
188
  return tmp;
188
189
  }
189
190
  function sanitizeKeywords($this, _this__u8e3s4) {
190
- return Companion_getInstance_0().l1x().v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
191
+ return Companion_getInstance_0().v1x().v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
191
192
  }
192
193
  function sanitizeEnum($this, _this__u8e3s4) {
193
194
  return sanitizeKeywords($this, sanitizeFirstIsDigit($this, joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_')));
194
195
  }
195
196
  function Companion() {
196
197
  Companion_instance_2 = this;
197
- this.k1x_1 = JavaGenerator_getInstance();
198
+ this.u1x_1 = JavaGenerator_getInstance();
198
199
  }
199
- protoOf(Companion).l1x = function () {
200
- return this.k1x_1.n1w_1;
200
+ protoOf(Companion).v1x = function () {
201
+ return this.u1x_1.x1w_1;
201
202
  };
202
203
  var Companion_instance_2;
203
204
  function Companion_getInstance_0() {
@@ -209,10 +210,10 @@ function JavaIrEmitter$sanitizationConfig$lambda(it) {
209
210
  return '_' + it;
210
211
  }
211
212
  function JavaIrEmitter$sanitizationConfig$lambda_0(name) {
212
- return name.v1g_1.b1() > 1 ? new Name(listOf(name.j1m())) : name;
213
+ return name.f1h_1.b1() > 1 ? new Name(listOf(name.t1m())) : name;
213
214
  }
214
215
  function JavaIrEmitter$sanitizationConfig$lambda_1(name) {
215
- return new Name(listOf(name.j1m()));
216
+ return new Name(listOf(name.t1m()));
216
217
  }
217
218
  function JavaIrEmitter$sanitizationConfig$lambda_2(this$0) {
218
219
  return function (it) {
@@ -223,23 +224,23 @@ function JavaIrEmitter$sanitizationConfig$lambda_3(stmt, tr) {
223
224
  var tmp;
224
225
  var tmp_0;
225
226
  if (stmt instanceof FunctionCall) {
226
- tmp_0 = stmt.t1m_1.w1i() === 'validate';
227
+ tmp_0 = stmt.d1n_1.g1j() === 'validate';
227
228
  } else {
228
229
  tmp_0 = false;
229
230
  }
230
231
  if (tmp_0) {
231
- tmp = transformChildren(stmt.x1m(VOID, emptyList()), tr);
232
+ tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
232
233
  } else {
233
234
  tmp = transformChildren(stmt, tr);
234
235
  }
235
236
  return tmp;
236
237
  }
237
238
  function JavaIrEmitter$emitShared$lambda(name) {
238
- switch (name.w1i()) {
239
+ switch (name.g1j()) {
239
240
  case 'client':
240
- return Companion_getInstance().x1g('getClient');
241
+ return Companion_getInstance().h1h('getClient');
241
242
  case 'server':
242
- return Companion_getInstance().x1g('getServer');
243
+ return Companion_getInstance().h1h('getServer');
243
244
  default:
244
245
  return null;
245
246
  }
@@ -249,7 +250,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
249
250
  var tmp;
250
251
  if (element instanceof File) {
251
252
  // Inline function 'kotlin.collections.partition' call
252
- var this_0 = element.t1n_1;
253
+ var this_0 = element.d1o_1;
253
254
  var first = ArrayList_init_$Create$_0();
254
255
  var second = ArrayList_init_$Create$_0();
255
256
  var _iterator__ex2g4s = this_0.t();
@@ -264,7 +265,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
264
265
  var _destruct__k2r9zo = new Pair(first, second);
265
266
  var packageElements = _destruct__k2r9zo.we();
266
267
  var rest = _destruct__k2r9zo.xe();
267
- tmp = element.w1n(VOID, plus(plus(packageElements, $imports), rest));
268
+ tmp = element.g1o(VOID, plus(plus(packageElements, $imports), rest));
268
269
  } else {
269
270
  tmp = element;
270
271
  }
@@ -276,27 +277,27 @@ function JavaIrEmitter$emitShared$lambda_1($clientServer) {
276
277
  return function (element, transformer) {
277
278
  var tmp;
278
279
  if (element instanceof Namespace) {
279
- var injected = element.y1n_1.equals(Companion_getInstance().x1g('Wirespec')) ? $clientServer : emptyList();
280
+ var injected = element.i1o_1.equals(Companion_getInstance().h1h('Wirespec')) ? $clientServer : emptyList();
280
281
  var tmp_0;
281
282
  // Inline function 'kotlin.collections.isNotEmpty' call
282
283
  if (!injected.r()) {
283
284
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
284
- var elements = plus(element.u1n(), injected);
285
+ var elements = plus(element.e1o(), injected);
285
286
  var tmp_1;
286
287
  if (element instanceof File) {
287
- tmp_1 = element.w1n(VOID, elements);
288
+ tmp_1 = element.g1o(VOID, elements);
288
289
  } else {
289
290
  if (element instanceof Struct) {
290
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
291
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
291
292
  } else {
292
293
  if (element instanceof Namespace) {
293
- tmp_1 = element.d1o(VOID, elements);
294
+ tmp_1 = element.n1o(VOID, elements);
294
295
  } else {
295
296
  if (element instanceof Interface) {
296
- tmp_1 = element.m1o(VOID, elements);
297
+ tmp_1 = element.w1o(VOID, elements);
297
298
  } else {
298
299
  if (element instanceof Enum_0) {
299
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
300
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
300
301
  } else {
301
302
  if (element instanceof Main) {
302
303
  tmp_1 = element;
@@ -334,7 +335,7 @@ function JavaIrEmitter$emitGenerator$lambda_1(it) {
334
335
  }
335
336
  function JavaIrEmitter$emitGenerator$lambda_2(this$0) {
336
337
  return function (it) {
337
- return import_0(this$0.s1x().cs_1 + '.model', it);
338
+ return import_0(this$0.c1y().js_1 + '.model', it);
338
339
  };
339
340
  }
340
341
  function JavaIrEmitter$emit$lambda(this$0) {
@@ -346,38 +347,38 @@ function JavaIrEmitter$emit$lambda_0(it) {
346
347
  return listOf(function_0('label', VOID, VOID, JavaIrEmitter$emit$lambda$lambda));
347
348
  }
348
349
  function JavaIrEmitter$emit$lambda$lambda($this$function) {
349
- $this$function.o1h(String_instance);
350
- $this$function.p1h(new VariableReference(Companion_getInstance().x1g('label')));
350
+ $this$function.y1h(String_instance);
351
+ $this$function.z1h(new VariableReference(Companion_getInstance().h1h('label')));
351
352
  return Unit_instance;
352
353
  }
353
354
  function JavaIrEmitter(packageName, emitShared) {
354
355
  Companion_getInstance_0();
355
- packageName = packageName === VOID ? Companion_instance_0.bs('community.flock.wirespec.generated') : packageName;
356
+ packageName = packageName === VOID ? Companion_instance_0.is('community.flock.wirespec.generated') : packageName;
356
357
  emitShared = emitShared === VOID ? Companion_instance_1.fp() : emitShared;
357
- this.m1x_1 = packageName;
358
- this.n1x_1 = emitShared;
359
- this.o1x_1 = JavaGenerator_getInstance();
360
- this.p1x_1 = FileExtension_Java_getInstance();
361
- this.q1x_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
358
+ this.w1x_1 = packageName;
359
+ this.x1x_1 = emitShared;
360
+ this.y1x_1 = JavaGenerator_getInstance();
361
+ this.z1x_1 = FileExtension_Java_getInstance();
362
+ this.a1y_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
362
363
  var tmp = this;
363
- var tmp_0 = Companion_getInstance_0().l1x();
364
+ var tmp_0 = Companion_getInstance_0().v1x();
364
365
  var tmp_1 = JavaIrEmitter$sanitizationConfig$lambda;
365
366
  var tmp_2 = JavaIrEmitter$sanitizationConfig$lambda_0;
366
367
  var tmp_3 = JavaIrEmitter$sanitizationConfig$lambda_1;
367
368
  var tmp_4 = JavaIrEmitter$sanitizationConfig$lambda_2(this);
368
- tmp.r1x_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
369
+ tmp.b1y_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
369
370
  }
370
- protoOf(JavaIrEmitter).s1x = function () {
371
- return this.m1x_1;
371
+ protoOf(JavaIrEmitter).c1y = function () {
372
+ return this.w1x_1;
372
373
  };
373
- protoOf(JavaIrEmitter).d1w = function () {
374
- return this.o1x_1;
374
+ protoOf(JavaIrEmitter).n1w = function () {
375
+ return this.y1x_1;
375
376
  };
376
- protoOf(JavaIrEmitter).er = function () {
377
- return this.p1x_1;
377
+ protoOf(JavaIrEmitter).kr = function () {
378
+ return this.z1x_1;
378
379
  };
379
- protoOf(JavaIrEmitter).h1w = function () {
380
- var packageName = Companion_instance_0.bs('community.flock.wirespec.java');
380
+ protoOf(JavaIrEmitter).r1w = function () {
381
+ var packageName = Companion_instance_0.is('community.flock.wirespec.java');
381
382
  var imports = listOf_0([import_0('java.lang.reflect', 'Type'), import_0('java.lang.reflect', 'ParameterizedType'), import_0('java.util', 'List'), import_0('java.util', 'Map')]);
382
383
  // Inline function 'kotlin.collections.map' call
383
384
  var this_0 = convertClientServer();
@@ -396,49 +397,49 @@ protoOf(JavaIrEmitter).h1w = function () {
396
397
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
397
398
  var tmp = scope;
398
399
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
399
- var this_2 = scope.q1v_1;
400
+ var this_2 = scope.a1w_1;
400
401
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
401
402
  // Inline function 'kotlin.apply' call
402
403
  var this_3 = new TransformerBuilder();
403
- this_3.k1i(JavaIrEmitter$emitShared$lambda_0(imports));
404
- var tmp$ret$5 = this_3.l1i();
405
- tmp.q1v_1 = transform(this_2, tmp$ret$5);
404
+ this_3.u1i(JavaIrEmitter$emitShared$lambda_0(imports));
405
+ var tmp$ret$5 = this_3.v1i();
406
+ tmp.a1w_1 = transform(this_2, tmp$ret$5);
406
407
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
407
408
  var tmp_0 = scope;
408
409
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
409
410
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
410
- var this_4 = scope.q1v_1;
411
+ var this_4 = scope.a1w_1;
411
412
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
412
413
  // Inline function 'kotlin.apply' call
413
414
  var this_5 = new TransformerBuilder();
414
- this_5.k1i(JavaIrEmitter$emitShared$lambda_1(clientServer));
415
- var tmp$ret$10 = this_5.l1i();
416
- tmp_0.q1v_1 = transform(this_4, tmp$ret$10);
417
- var tmp_1 = scope.q1v_1;
415
+ this_5.u1i(JavaIrEmitter$emitShared$lambda_1(clientServer));
416
+ var tmp$ret$10 = this_5.v1i();
417
+ tmp_0.a1w_1 = transform(this_4, tmp$ret$10);
418
+ var tmp_1 = scope.a1w_1;
418
419
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
419
420
  var tmp_2;
420
- if (this.n1x_1.gp_1) {
421
+ if (this.x1x_1.gp_1) {
421
422
  tmp_2 = wirespecShared;
422
423
  } else {
423
424
  tmp_2 = null;
424
425
  }
425
426
  return tmp_2;
426
427
  };
427
- protoOf(JavaIrEmitter).fr = function (definition, module_0, logger) {
428
+ protoOf(JavaIrEmitter).lr = function (definition, module_0, logger) {
428
429
  var file = emit.call(this, definition, module_0, logger);
429
- var tmp = file.w1n(Companion_getInstance().x1g(sanitizeSymbol(this, file.s1n_1.y1g())));
430
+ var tmp = file.g1o(Companion_getInstance().h1h(sanitizeSymbol(this, file.c1o_1.i1h())));
430
431
  // Inline function 'kotlin.takeIf' call
431
- var this_0 = this.q1x_1;
432
+ var this_0 = this.a1y_1;
432
433
  var tmp_0;
433
- if (Companion_instance.yq(module_0)) {
434
+ if (Companion_instance.er(module_0)) {
434
435
  tmp_0 = this_0;
435
436
  } else {
436
437
  tmp_0 = null;
437
438
  }
438
439
  var tmp$ret$1 = tmp_0;
439
- return placeInPackage(prependImports(tmp, tmp$ret$1), this.s1x(), definition);
440
+ return placeInPackage(prependImports(tmp, tmp$ret$1), this.c1y(), definition);
440
441
  };
441
- protoOf(JavaIrEmitter).m1w = function (definition, module_0) {
442
+ protoOf(JavaIrEmitter).w1w = function (definition, module_0) {
442
443
  var tmp;
443
444
  if (definition instanceof Type) {
444
445
  tmp = convertToGenerator_2(definition, module_0);
@@ -458,33 +459,33 @@ protoOf(JavaIrEmitter).m1w = function (definition, module_0) {
458
459
  }
459
460
  }
460
461
  var generatorFile = tmp;
461
- var sanitized = sanitizeNames(generatorFile, this.r1x_1);
462
- var generatorOwnName = definition.gr().m1() + 'Generator';
462
+ var sanitized = sanitizeNames(generatorFile, this.b1y_1);
463
+ var generatorOwnName = definition.mr().m1() + 'Generator';
463
464
  var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
464
465
  var tmp_1 = filterNot(tmp_0, JavaIrEmitter$emitGenerator$lambda);
465
466
  var tmp_2 = filterNot(tmp_1, JavaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
466
467
  var tmp_3 = distinct(map(tmp_2, JavaIrEmitter$emitGenerator$lambda_1));
467
468
  var modelImports = toList(map(tmp_3, JavaIrEmitter$emitGenerator$lambda_2(this)));
468
- return placeInPackage_0(prependImports(sanitized, plus(this.q1x_1, modelImports)), this.s1x(), 'generator');
469
+ return placeInPackage_0(prependImports(sanitized, plus(this.a1y_1, modelImports)), this.c1y(), 'generator');
469
470
  };
470
- protoOf(JavaIrEmitter).vr = function (type, module_0) {
471
- return sanitizeNames(convertWithValidation(type, module_0), this.r1x_1);
471
+ protoOf(JavaIrEmitter).cs = function (type, module_0) {
472
+ return sanitizeNames(convertWithValidation(type, module_0), this.b1y_1);
472
473
  };
473
- protoOf(JavaIrEmitter).tr = function (enum_0, module_0) {
474
+ protoOf(JavaIrEmitter).as = function (enum_0, module_0) {
474
475
  var tmp = convert_0(enum_0);
475
476
  var tmp_0 = JavaIrEmitter$emit$lambda(this);
476
- return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.r1x_1);
477
+ return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.b1y_1);
477
478
  };
478
- protoOf(JavaIrEmitter).jr = function (union) {
479
- return sanitizeNames(convert_1(union), this.r1x_1);
479
+ protoOf(JavaIrEmitter).qr = function (union) {
480
+ return sanitizeNames(convert_1(union), this.b1y_1);
480
481
  };
481
- protoOf(JavaIrEmitter).or = function (refined) {
482
- return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.r1x_1);
482
+ protoOf(JavaIrEmitter).vr = function (refined) {
483
+ return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.b1y_1);
483
484
  };
484
- protoOf(JavaIrEmitter).ur = function (endpoint) {
485
- var tmp = sanitizeNames(transformTypeDescriptors(injectApiField(injectHandleFunction(convert_3(endpoint), endpoint))), this.r1x_1);
485
+ protoOf(JavaIrEmitter).bs = function (endpoint) {
486
+ var tmp = sanitizeNames(transformTypeDescriptors(injectApiField(injectHandleFunction(convert_3(endpoint), endpoint))), this.b1y_1);
486
487
  // Inline function 'kotlin.takeIf' call
487
- var this_0 = buildModelImports(endpoint, this.s1x());
488
+ var this_0 = buildModelImports(endpoint, this.c1y());
488
489
  var tmp_0;
489
490
  // Inline function 'kotlin.collections.isNotEmpty' call
490
491
  if (!this_0.r()) {
@@ -495,25 +496,39 @@ protoOf(JavaIrEmitter).ur = function (endpoint) {
495
496
  var tmp$ret$2 = tmp_0;
496
497
  return prependImports(tmp, tmp$ret$2);
497
498
  };
498
- protoOf(JavaIrEmitter).ir = function (channel) {
499
+ protoOf(JavaIrEmitter).pr = function (channel) {
499
500
  var tmp;
500
- if (channel.mp_1.m1() === channel.np_1.m1()) {
501
- tmp = this.s1x().cs_1 + '.model.';
501
+ if (channel.wp_1.m1() === channel.xp_1.m1()) {
502
+ tmp = this.c1y().js_1 + '.model.';
502
503
  } else {
503
504
  tmp = '';
504
505
  }
505
506
  var fullyQualifiedPrefix = tmp;
506
- return qualifyChannelReferences(sanitizeNames(convert_4(channel), this.r1x_1), fullyQualifiedPrefix);
507
+ return qualifyChannelReferences(sanitizeNames(convert_4(channel), this.b1y_1), fullyQualifiedPrefix);
507
508
  };
508
- protoOf(JavaIrEmitter).l1w = function (endpoint) {
509
- var imports = buildModelImports(endpoint, this.s1x());
510
- var endpointImport = import_0(this.s1x().cs_1 + '.endpoint', endpoint.eq_1.m1());
511
- var endpointName = endpoint.eq_1.m1();
512
- var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.r1x_1)), endpointName);
513
- var subPackageName = plus_1(this.s1x(), 'client');
514
- return new File(Companion_getInstance().x1g(subPackageName.es() + sanitizeSymbol(this, file.s1n_1.y1g())), plus(plus(plus(plus(listOf(new Package(subPackageName.cs_1)), this.q1x_1), imports), listOf(endpointImport)), file.t1n_1));
509
+ protoOf(JavaIrEmitter).or = function (rpc) {
510
+ var tmp = sanitizeNames(convert_5(rpc), this.b1y_1);
511
+ // Inline function 'kotlin.takeIf' call
512
+ var this_0 = buildModelImports(rpc, this.c1y());
513
+ var tmp_0;
514
+ // Inline function 'kotlin.collections.isNotEmpty' call
515
+ if (!this_0.r()) {
516
+ tmp_0 = this_0;
517
+ } else {
518
+ tmp_0 = null;
519
+ }
520
+ var tmp$ret$2 = tmp_0;
521
+ return prependImports(tmp, tmp$ret$2);
522
+ };
523
+ protoOf(JavaIrEmitter).v1w = function (endpoint) {
524
+ var imports = buildModelImports(endpoint, this.c1y());
525
+ var endpointImport = import_0(this.c1y().js_1 + '.endpoint', endpoint.kq_1.m1());
526
+ var endpointName = endpoint.kq_1.m1();
527
+ var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.b1y_1)), endpointName);
528
+ var subPackageName = plus_1(this.c1y(), 'client');
529
+ return new File(Companion_getInstance().h1h(subPackageName.ls() + sanitizeSymbol(this, file.c1o_1.i1h())), plus(plus(plus(plus(listOf(new Package(subPackageName.js_1)), this.a1y_1), imports), listOf(endpointImport)), file.d1o_1));
515
530
  };
516
- protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
531
+ protoOf(JavaIrEmitter).s1w = function (endpoints, logger) {
517
532
  // Inline function 'kotlin.collections.flatMap' call
518
533
  // Inline function 'kotlin.collections.flatMapTo' call
519
534
  var destination = ArrayList_init_$Create$_0();
@@ -529,7 +544,7 @@ protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
529
544
  var _iterator__ex2g4s_0 = destination.t();
530
545
  while (_iterator__ex2g4s_0.u()) {
531
546
  var e = _iterator__ex2g4s_0.v();
532
- var key = e.dv_1;
547
+ var key = e.lv_1;
533
548
  if (set.x(key)) {
534
549
  list_0.x(e);
535
550
  }
@@ -556,7 +571,7 @@ protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
556
571
  var _iterator__ex2g4s_2 = endpoints.t();
557
572
  while (_iterator__ex2g4s_2.u()) {
558
573
  var element_1 = _iterator__ex2g4s_2.v();
559
- if (element_1.eq_1.m1() === element_0.dv_1) {
574
+ if (element_1.kq_1.m1() === element_0.lv_1) {
560
575
  tmp$ret$5 = false;
561
576
  break $l$block_0;
562
577
  }
@@ -573,7 +588,7 @@ protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
573
588
  var _iterator__ex2g4s_3 = destination_0.t();
574
589
  while (_iterator__ex2g4s_3.u()) {
575
590
  var item = _iterator__ex2g4s_3.v();
576
- var tmp$ret$10 = import_0(this.s1x().cs_1 + '.model', item.dv_1);
591
+ var tmp$ret$10 = import_0(this.c1y().js_1 + '.model', item.lv_1);
577
592
  destination_1.x(tmp$ret$10);
578
593
  }
579
594
  var imports = destination_1;
@@ -583,7 +598,7 @@ protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
583
598
  var _iterator__ex2g4s_4 = endpoints.t();
584
599
  while (_iterator__ex2g4s_4.u()) {
585
600
  var item_0 = _iterator__ex2g4s_4.v();
586
- var tmp$ret$13 = import_0(this.s1x().cs_1 + '.endpoint', item_0.eq_1.m1());
601
+ var tmp$ret$13 = import_0(this.c1y().js_1 + '.endpoint', item_0.kq_1.m1());
587
602
  destination_2.x(tmp$ret$13);
588
603
  }
589
604
  var endpointImports = destination_2;
@@ -593,19 +608,19 @@ protoOf(JavaIrEmitter).i1w = function (endpoints, logger) {
593
608
  var _iterator__ex2g4s_5 = endpoints.t();
594
609
  while (_iterator__ex2g4s_5.u()) {
595
610
  var item_1 = _iterator__ex2g4s_5.v();
596
- var tmp$ret$16 = import_0(this.s1x().cs_1 + '.client', item_1.eq_1.m1() + 'Client');
611
+ var tmp$ret$16 = import_0(this.c1y().js_1 + '.client', item_1.kq_1.m1() + 'Client');
597
612
  destination_3.x(tmp$ret$16);
598
613
  }
599
614
  var clientImports = destination_3;
600
615
  var allImports = plus(plus(imports, endpointImports), clientImports);
601
- var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.r1x_1);
602
- return new File(Companion_getInstance().x1g(this.s1x().es() + sanitizeSymbol(this, file.s1n_1.y1g())), plus(plus(plus(listOf(new Package(this.s1x().cs_1)), this.q1x_1), allImports), file.t1n_1));
616
+ var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.b1y_1);
617
+ return new File(Companion_getInstance().h1h(this.c1y().ls() + sanitizeSymbol(this, file.c1o_1.i1h())), plus(plus(plus(listOf(new Package(this.c1y().js_1)), this.a1y_1), allImports), file.d1o_1));
603
618
  };
604
619
  function transformTypeDescriptors(_this__u8e3s4) {
605
620
  // Inline function 'community.flock.wirespec.ir.core.transform' call
606
621
  var scope = new TransformScope(_this__u8e3s4);
607
- scope.z1v(transformTypeDescriptors$lambda);
608
- var tmp = scope.q1v_1;
622
+ scope.j1w(transformTypeDescriptors$lambda);
623
+ var tmp = scope.a1w_1;
609
624
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
610
625
  }
611
626
  function applyRefinedStructShape(_this__u8e3s4, refined) {
@@ -614,14 +629,14 @@ function applyRefinedStructShape(_this__u8e3s4, refined) {
614
629
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
615
630
  var tmp = scope;
616
631
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
617
- var this_0 = scope.q1v_1;
632
+ var this_0 = scope.a1w_1;
618
633
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
619
634
  // Inline function 'kotlin.apply' call
620
635
  var this_1 = new TransformerBuilder();
621
- this_1.k1i(applyRefinedStructShape$lambda(refined));
622
- var tmp$ret$2 = this_1.l1i();
623
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
624
- var tmp_0 = scope.q1v_1;
636
+ this_1.u1i(applyRefinedStructShape$lambda(refined));
637
+ var tmp$ret$2 = this_1.v1i();
638
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
639
+ var tmp_0 = scope.a1w_1;
625
640
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
626
641
  }
627
642
  function injectApiField(_this__u8e3s4) {
@@ -631,14 +646,14 @@ function injectApiField(_this__u8e3s4) {
631
646
  var tmp = scope;
632
647
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
633
648
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
634
- var this_0 = scope.q1v_1;
649
+ var this_0 = scope.a1w_1;
635
650
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
636
651
  // Inline function 'kotlin.apply' call
637
652
  var this_1 = new TransformerBuilder();
638
- this_1.k1i(injectApiField$lambda);
639
- var tmp$ret$2 = this_1.l1i();
640
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
641
- var tmp_0 = scope.q1v_1;
653
+ this_1.u1i(injectApiField$lambda);
654
+ var tmp$ret$2 = this_1.v1i();
655
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
656
+ var tmp_0 = scope.a1w_1;
642
657
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
643
658
  }
644
659
  function injectHandleFunction(_this__u8e3s4, endpoint) {
@@ -648,14 +663,14 @@ function injectHandleFunction(_this__u8e3s4, endpoint) {
648
663
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
649
664
  var tmp = scope;
650
665
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
651
- var this_0 = scope.q1v_1;
666
+ var this_0 = scope.a1w_1;
652
667
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
653
668
  // Inline function 'kotlin.apply' call
654
669
  var this_1 = new TransformerBuilder();
655
- this_1.k1i(injectHandleFunction$lambda(handlersStruct));
656
- var tmp$ret$2 = this_1.l1i();
657
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
658
- var tmp_0 = scope.q1v_1;
670
+ this_1.u1i(injectHandleFunction$lambda(handlersStruct));
671
+ var tmp$ret$2 = this_1.v1i();
672
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
673
+ var tmp_0 = scope.a1w_1;
659
674
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
660
675
  }
661
676
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -666,7 +681,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
666
681
  var _iterator__ex2g4s = tmp0.t();
667
682
  while (_iterator__ex2g4s.u()) {
668
683
  var element = _iterator__ex2g4s.v();
669
- if (!(_this__u8e3s4.gr().m1() === element.dv_1)) {
684
+ if (!(_this__u8e3s4.mr().m1() === element.lv_1)) {
670
685
  destination.x(element);
671
686
  }
672
687
  }
@@ -676,7 +691,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
676
691
  var _iterator__ex2g4s_0 = destination.t();
677
692
  while (_iterator__ex2g4s_0.u()) {
678
693
  var item = _iterator__ex2g4s_0.v();
679
- var tmp$ret$3 = import_0(packageName.cs_1 + '.model', Companion_getInstance().x1g(item.dv_1).y1g());
694
+ var tmp$ret$3 = import_0(packageName.js_1 + '.model', Companion_getInstance().h1h(item.lv_1).i1h());
680
695
  destination_0.x(tmp$ret$3);
681
696
  }
682
697
  return destination_0;
@@ -687,14 +702,14 @@ function qualifyChannelReferences(_this__u8e3s4, fullyQualifiedPrefix) {
687
702
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
688
703
  var tmp = scope;
689
704
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
690
- var this_0 = scope.q1v_1;
705
+ var this_0 = scope.a1w_1;
691
706
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
692
707
  // Inline function 'kotlin.apply' call
693
708
  var this_1 = new TransformerBuilder();
694
- this_1.k1i(qualifyChannelReferences$lambda(fullyQualifiedPrefix));
695
- var tmp$ret$2 = this_1.l1i();
696
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
697
- var tmp_0 = scope.q1v_1;
709
+ this_1.u1i(qualifyChannelReferences$lambda(fullyQualifiedPrefix));
710
+ var tmp$ret$2 = this_1.v1i();
711
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
712
+ var tmp_0 = scope.a1w_1;
698
713
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
699
714
  }
700
715
  function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
@@ -703,26 +718,26 @@ function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
703
718
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
704
719
  var tmp = scope;
705
720
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
706
- var this_0 = scope.q1v_1;
721
+ var this_0 = scope.a1w_1;
707
722
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
708
723
  // Inline function 'kotlin.apply' call
709
724
  var this_1 = new TransformerBuilder();
710
- this_1.k1i(wrapAsyncReturnInThenApply$lambda(endpointName));
711
- var tmp$ret$2 = this_1.l1i();
712
- tmp.q1v_1 = transform(this_0, tmp$ret$2);
713
- var tmp_0 = scope.q1v_1;
725
+ this_1.u1i(wrapAsyncReturnInThenApply$lambda(endpointName));
726
+ var tmp$ret$2 = this_1.v1i();
727
+ tmp.a1w_1 = transform(this_0, tmp$ret$2);
728
+ var tmp_0 = scope.a1w_1;
714
729
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
715
730
  }
716
731
  function findRoot(_this__u8e3s4) {
717
732
  var tmp;
718
733
  if (_this__u8e3s4 instanceof Nullable) {
719
- tmp = findRoot(_this__u8e3s4.s1i_1);
734
+ tmp = findRoot(_this__u8e3s4.c1j_1);
720
735
  } else {
721
736
  if (_this__u8e3s4 instanceof Array_0) {
722
- tmp = findRoot(_this__u8e3s4.t1i_1);
737
+ tmp = findRoot(_this__u8e3s4.d1j_1);
723
738
  } else {
724
739
  if (_this__u8e3s4 instanceof Dict) {
725
- tmp = findRoot(_this__u8e3s4.c1n_1);
740
+ tmp = findRoot(_this__u8e3s4.m1n_1);
726
741
  } else {
727
742
  tmp = _this__u8e3s4;
728
743
  }
@@ -751,7 +766,7 @@ function toJavaName(_this__u8e3s4) {
751
766
  var tmp;
752
767
  if (_this__u8e3s4 instanceof Integer) {
753
768
  var tmp_0;
754
- switch (_this__u8e3s4.y1m_1.c3_1) {
769
+ switch (_this__u8e3s4.i1n_1.c3_1) {
755
770
  case 0:
756
771
  tmp_0 = 'Integer';
757
772
  break;
@@ -766,7 +781,7 @@ function toJavaName(_this__u8e3s4) {
766
781
  } else {
767
782
  if (_this__u8e3s4 instanceof Number_0) {
768
783
  var tmp_1;
769
- switch (_this__u8e3s4.z1m_1.c3_1) {
784
+ switch (_this__u8e3s4.j1n_1.c3_1) {
770
785
  case 0:
771
786
  tmp_1 = 'Float';
772
787
  break;
@@ -795,7 +810,7 @@ function toJavaName(_this__u8e3s4) {
795
810
  tmp = 'Void';
796
811
  } else {
797
812
  if (_this__u8e3s4 instanceof Custom) {
798
- tmp = _this__u8e3s4.u1i_1.y1g();
813
+ tmp = _this__u8e3s4.e1j_1.i1h();
799
814
  } else {
800
815
  tmp = 'Object';
801
816
  }
@@ -809,7 +824,7 @@ function toJavaName(_this__u8e3s4) {
809
824
  return tmp;
810
825
  }
811
826
  function buildHandlersStruct(_this__u8e3s4) {
812
- var pathTemplate = '/' + joinToString(_this__u8e3s4.gq_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
827
+ var pathTemplate = '/' + joinToString(_this__u8e3s4.mq_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
813
828
  return struct('Handlers', buildHandlersStruct$lambda_0(pathTemplate, _this__u8e3s4));
814
829
  }
815
830
  function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
@@ -821,14 +836,14 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
821
836
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
822
837
  var tmp_0 = scope;
823
838
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
824
- var this_0 = scope.q1v_1;
839
+ var this_0 = scope.a1w_1;
825
840
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
826
841
  // Inline function 'kotlin.apply' call
827
842
  var this_1 = new TransformerBuilder();
828
- this_1.w1v(withFullyQualifiedPrefix$lambda(prefix));
829
- var tmp$ret$3 = this_1.l1i();
830
- tmp_0.q1v_1 = transform(this_0, tmp$ret$3);
831
- var tmp_1 = scope.q1v_1;
843
+ this_1.g1w(withFullyQualifiedPrefix$lambda(prefix));
844
+ var tmp$ret$3 = this_1.v1i();
845
+ tmp_0.a1w_1 = transform(this_0, tmp$ret$3);
846
+ var tmp_1 = scope.a1w_1;
832
847
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
833
848
  } else {
834
849
  tmp = _this__u8e3s4;
@@ -838,8 +853,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
838
853
  function transformTypeDescriptors$lambda(stmt, tr) {
839
854
  var tmp;
840
855
  if (stmt instanceof TypeDescriptor) {
841
- var rootType = findRoot(stmt.g1q_1);
842
- var containerStr = rawContainerClass(stmt.g1q_1);
856
+ var rootType = findRoot(stmt.q1q_1);
857
+ var containerStr = rawContainerClass(stmt.q1q_1);
843
858
  var rootStr = toJavaName(rootType) + '.class';
844
859
  var tmp_0;
845
860
  if (containerStr == null) {
@@ -858,8 +873,8 @@ function transformTypeDescriptors$lambda(stmt, tr) {
858
873
  }
859
874
  function applyRefinedStructShape$lambda$lambda($refined) {
860
875
  return function ($this$function) {
861
- $this$function.o1h(convert_5($refined.nr_1));
862
- $this$function.p1h(new VariableReference(Companion_getInstance().x1g('value')));
876
+ $this$function.y1h(convert_6($refined.ur_1));
877
+ $this$function.z1h(new VariableReference(Companion_getInstance().h1h('value')));
863
878
  return Unit_instance;
864
879
  };
865
880
  }
@@ -869,39 +884,39 @@ function applyRefinedStructShape$lambda($refined) {
869
884
  if (element instanceof Struct) {
870
885
  var tmp_0 = listOf(Custom_init_$Create$('Wirespec.Refined'));
871
886
  // Inline function 'kotlin.collections.map' call
872
- var this_0 = element.w1p_1;
887
+ var this_0 = element.g1q_1;
873
888
  // Inline function 'kotlin.collections.mapTo' call
874
889
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
875
890
  var _iterator__ex2g4s = this_0.t();
876
891
  while (_iterator__ex2g4s.u()) {
877
892
  var item = _iterator__ex2g4s.v();
878
893
  var tmp0_safe_receiver = item instanceof Function ? item : null;
879
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1l(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
894
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
880
895
  var tmp$ret$0 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
881
896
  destination.x(tmp$ret$0);
882
897
  }
883
- var tmp0 = element.d1q(VOID, VOID, VOID, tmp_0, destination);
898
+ var tmp0 = element.n1q(VOID, VOID, VOID, tmp_0, destination);
884
899
  // Inline function 'community.flock.wirespec.ir.core.plus' call
885
900
  var element_0 = function_0('value', VOID, true, applyRefinedStructShape$lambda$lambda($refined));
886
901
  var tmp_1;
887
902
  if (tmp0 instanceof File) {
888
- var tmp_2 = tmp0.w1n(VOID, plus_0(tmp0.t1n_1, element_0));
903
+ var tmp_2 = tmp0.g1o(VOID, plus_0(tmp0.d1o_1, element_0));
889
904
  tmp_1 = tmp_2 instanceof Struct ? tmp_2 : THROW_CCE();
890
905
  } else {
891
906
  if (tmp0 instanceof Struct) {
892
- var tmp_3 = tmp0.d1q(VOID, VOID, VOID, VOID, plus_0(tmp0.w1p_1, element_0));
907
+ var tmp_3 = tmp0.n1q(VOID, VOID, VOID, VOID, plus_0(tmp0.g1q_1, element_0));
893
908
  tmp_1 = tmp_3 instanceof Struct ? tmp_3 : THROW_CCE();
894
909
  } else {
895
910
  if (tmp0 instanceof Namespace) {
896
- var tmp_4 = tmp0.d1o(VOID, plus_0(tmp0.z1n_1, element_0));
911
+ var tmp_4 = tmp0.n1o(VOID, plus_0(tmp0.j1o_1, element_0));
897
912
  tmp_1 = tmp_4 instanceof Struct ? tmp_4 : THROW_CCE();
898
913
  } else {
899
914
  if (tmp0 instanceof Interface) {
900
- var tmp_5 = tmp0.m1o(VOID, plus_0(tmp0.f1o_1, element_0));
915
+ var tmp_5 = tmp0.w1o(VOID, plus_0(tmp0.p1o_1, element_0));
901
916
  tmp_1 = tmp_5 instanceof Struct ? tmp_5 : THROW_CCE();
902
917
  } else {
903
918
  if (tmp0 instanceof Enum_0) {
904
- var tmp_6 = tmp0.r1p(VOID, VOID, VOID, VOID, VOID, plus_0(tmp0.o1p_1, element_0));
919
+ var tmp_6 = tmp0.b1q(VOID, VOID, VOID, VOID, VOID, plus_0(tmp0.y1p_1, element_0));
905
920
  tmp_1 = tmp_6 instanceof Struct ? tmp_6 : THROW_CCE();
906
921
  } else {
907
922
  noWhenBranchMatchedException();
@@ -926,22 +941,22 @@ function injectApiField$lambda(element, transformer) {
926
941
  // Inline function 'kotlin.collections.isNotEmpty' call
927
942
  if (!injected.r()) {
928
943
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
929
- var elements = plus(element.u1n(), injected);
944
+ var elements = plus(element.e1o(), injected);
930
945
  var tmp_1;
931
946
  if (element instanceof File) {
932
- tmp_1 = element.w1n(VOID, elements);
947
+ tmp_1 = element.g1o(VOID, elements);
933
948
  } else {
934
949
  if (element instanceof Struct) {
935
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
950
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
936
951
  } else {
937
952
  if (element instanceof Namespace) {
938
- tmp_1 = element.d1o(VOID, elements);
953
+ tmp_1 = element.n1o(VOID, elements);
939
954
  } else {
940
955
  if (element instanceof Interface) {
941
- tmp_1 = element.m1o(VOID, elements);
956
+ tmp_1 = element.w1o(VOID, elements);
942
957
  } else {
943
958
  if (element instanceof Enum_0) {
944
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
959
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
945
960
  } else {
946
961
  if (element instanceof Main) {
947
962
  tmp_1 = element;
@@ -974,22 +989,22 @@ function injectHandleFunction$lambda$lambda($handlersStruct) {
974
989
  // Inline function 'kotlin.collections.isNotEmpty' call
975
990
  if (!injected.r()) {
976
991
  // Inline function 'community.flock.wirespec.ir.core.withElements' call
977
- var elements = plus(element.u1n(), injected);
992
+ var elements = plus(element.e1o(), injected);
978
993
  var tmp_1;
979
994
  if (element instanceof File) {
980
- tmp_1 = element.w1n(VOID, elements);
995
+ tmp_1 = element.g1o(VOID, elements);
981
996
  } else {
982
997
  if (element instanceof Struct) {
983
- tmp_1 = element.d1q(VOID, VOID, VOID, VOID, elements);
998
+ tmp_1 = element.n1q(VOID, VOID, VOID, VOID, elements);
984
999
  } else {
985
1000
  if (element instanceof Namespace) {
986
- tmp_1 = element.d1o(VOID, elements);
1001
+ tmp_1 = element.n1o(VOID, elements);
987
1002
  } else {
988
1003
  if (element instanceof Interface) {
989
- tmp_1 = element.m1o(VOID, elements);
1004
+ tmp_1 = element.w1o(VOID, elements);
990
1005
  } else {
991
1006
  if (element instanceof Enum_0) {
992
- tmp_1 = element.r1p(VOID, VOID, VOID, VOID, VOID, elements);
1007
+ tmp_1 = element.b1q(VOID, VOID, VOID, VOID, VOID, elements);
993
1008
  } else {
994
1009
  if (element instanceof Main) {
995
1010
  tmp_1 = element;
@@ -1019,21 +1034,21 @@ function injectHandleFunction$lambda($handlersStruct) {
1019
1034
  var tmp;
1020
1035
  if (element instanceof Interface) {
1021
1036
  var tmp_0;
1022
- if (element.e1o_1.equals(Companion_getInstance().x1g('Handler'))) {
1037
+ if (element.o1o_1.equals(Companion_getInstance().h1h('Handler'))) {
1023
1038
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1024
1039
  var scope = new TransformScope(element);
1025
1040
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1026
1041
  var tmp_1 = scope;
1027
1042
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1028
1043
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1029
- var this_0 = scope.q1v_1;
1044
+ var this_0 = scope.a1w_1;
1030
1045
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1031
1046
  // Inline function 'kotlin.apply' call
1032
1047
  var this_1 = new TransformerBuilder();
1033
- this_1.k1i(injectHandleFunction$lambda$lambda($handlersStruct));
1034
- var tmp$ret$2 = this_1.l1i();
1035
- tmp_1.q1v_1 = transform(this_0, tmp$ret$2);
1036
- var tmp_2 = scope.q1v_1;
1048
+ this_1.u1i(injectHandleFunction$lambda$lambda($handlersStruct));
1049
+ var tmp$ret$2 = this_1.v1i();
1050
+ tmp_1.a1w_1 = transform(this_0, tmp$ret$2);
1051
+ var tmp_2 = scope.a1w_1;
1037
1052
  tmp_0 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1038
1053
  } else {
1039
1054
  tmp_0 = element;
@@ -1064,11 +1079,11 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1064
1079
  if (element instanceof Function) {
1065
1080
  var tmp$ret$0;
1066
1081
  $l$block_1: {
1067
- if (!element.z1k_1 || element.y1k_1.b1() < 2) {
1082
+ if (!element.j1l_1 || element.i1l_1.b1() < 2) {
1068
1083
  tmp$ret$0 = element;
1069
1084
  break $l$block_1;
1070
1085
  }
1071
- var tmp_0 = element.y1k_1.c1(element.y1k_1.b1() - 2 | 0);
1086
+ var tmp_0 = element.i1l_1.c1(element.i1l_1.b1() - 2 | 0);
1072
1087
  var tmp0_elvis_lhs = tmp_0 instanceof Assignment ? tmp_0 : null;
1073
1088
  var tmp_1;
1074
1089
  if (tmp0_elvis_lhs == null) {
@@ -1078,16 +1093,16 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1078
1093
  tmp_1 = tmp0_elvis_lhs;
1079
1094
  }
1080
1095
  var transportAssign = tmp_1;
1081
- var tmp_2 = last(element.y1k_1);
1096
+ var tmp_2 = last(element.i1l_1);
1082
1097
  if (!(tmp_2 instanceof ReturnStatement)) {
1083
1098
  tmp$ret$0 = element;
1084
1099
  break $l$block_1;
1085
1100
  }
1086
- var tmp_3 = dropLast(element.y1k_1, 2);
1087
- var tmp1_name = Companion_getInstance().x1g('thenApply');
1088
- var tmp2_receiver = transportAssign.j1q_1;
1089
- var tmp3_arguments = mapOf(to(Companion_getInstance().x1g('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1090
- tmp$ret$0 = element.f1l(VOID, VOID, VOID, VOID, plus_0(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1101
+ var tmp_3 = dropLast(element.i1l_1, 2);
1102
+ var tmp1_name = Companion_getInstance().h1h('thenApply');
1103
+ var tmp2_receiver = transportAssign.t1q_1;
1104
+ var tmp3_arguments = mapOf(to(Companion_getInstance().h1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1105
+ tmp$ret$0 = element.p1l(VOID, VOID, VOID, VOID, plus_0(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1091
1106
  }
1092
1107
  tmp = tmp$ret$0;
1093
1108
  } else {
@@ -1100,10 +1115,10 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1100
1115
  function buildHandlersStruct$lambda(it) {
1101
1116
  var tmp;
1102
1117
  if (it instanceof Literal) {
1103
- tmp = it.tt_1;
1118
+ tmp = it.bu_1;
1104
1119
  } else {
1105
1120
  if (it instanceof Param) {
1106
- tmp = '{' + it.lq_1.m1() + '}';
1121
+ tmp = '{' + it.rq_1.m1() + '}';
1107
1122
  } else {
1108
1123
  noWhenBranchMatchedException();
1109
1124
  }
@@ -1112,38 +1127,38 @@ function buildHandlersStruct$lambda(it) {
1112
1127
  }
1113
1128
  function buildHandlersStruct$lambda$lambda($pathTemplate) {
1114
1129
  return function ($this$function) {
1115
- $this$function.o1h(String_instance);
1116
- $this$function.p1h($this$function.w1u($pathTemplate));
1130
+ $this$function.y1h(String_instance);
1131
+ $this$function.z1h($this$function.g1v($pathTemplate));
1117
1132
  return Unit_instance;
1118
1133
  };
1119
1134
  }
1120
1135
  function buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct) {
1121
1136
  return function ($this$function) {
1122
- $this$function.o1h(String_instance);
1123
- $this$function.p1h($this$function.w1u($this_buildHandlersStruct.fq_1.b3_1));
1137
+ $this$function.y1h(String_instance);
1138
+ $this$function.z1h($this$function.g1v($this_buildHandlersStruct.lq_1.b3_1));
1124
1139
  return Unit_instance;
1125
1140
  };
1126
1141
  }
1127
1142
  function buildHandlersStruct$lambda$lambda_1($this$function) {
1128
- $this$function.o1h($this$function.z1g('Wirespec.ServerEdge', [$this$function.z1g('Request', []), $this$function.z1g('Response', [Wildcard_instance])]));
1129
- $this$function.l1h('serialization', $this$function.z1g('Wirespec.Serialization', []));
1130
- $this$function.p1h(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1143
+ $this$function.y1h($this$function.j1h('Wirespec.ServerEdge', [$this$function.j1h('Request', []), $this$function.j1h('Response', [Wildcard_instance])]));
1144
+ $this$function.v1h('serialization', $this$function.j1h('Wirespec.Serialization', []));
1145
+ $this$function.z1h(new RawExpression('new Wirespec.ServerEdge<>() {\n@Override public Request from(Wirespec.RawRequest request) {\n return fromRawRequest(serialization, request);\n}\n@Override public Wirespec.RawResponse to(Response<?> response) {\n return toRawResponse(serialization, response);\n}\n}'));
1131
1146
  return Unit_instance;
1132
1147
  }
1133
1148
  function buildHandlersStruct$lambda$lambda_2($this$function) {
1134
- $this$function.o1h($this$function.z1g('Wirespec.ClientEdge', [$this$function.z1g('Request', []), $this$function.z1g('Response', [Wildcard_instance])]));
1135
- $this$function.l1h('serialization', $this$function.z1g('Wirespec.Serialization', []));
1136
- $this$function.p1h(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1149
+ $this$function.y1h($this$function.j1h('Wirespec.ClientEdge', [$this$function.j1h('Request', []), $this$function.j1h('Response', [Wildcard_instance])]));
1150
+ $this$function.v1h('serialization', $this$function.j1h('Wirespec.Serialization', []));
1151
+ $this$function.z1h(new RawExpression('new Wirespec.ClientEdge<>() {\n@Override public Wirespec.RawRequest to(Request request) {\n return toRawRequest(serialization, request);\n}\n@Override public Response<?> from(Wirespec.RawResponse response) {\n return fromRawResponse(serialization, response);\n}\n}'));
1137
1152
  return Unit_instance;
1138
1153
  }
1139
1154
  function buildHandlersStruct$lambda_0($pathTemplate, $this_buildHandlersStruct) {
1140
1155
  return function ($this$struct) {
1141
- $this$struct.l1k($this$struct.z1g('Wirespec.Server', [$this$struct.z1g('Request', []), $this$struct.z1g('Response', [Wildcard_instance])]));
1142
- $this$struct.l1k($this$struct.z1g('Wirespec.Client', [$this$struct.z1g('Request', []), $this$struct.z1g('Response', [Wildcard_instance])]));
1143
- $this$struct.q1h('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1144
- $this$struct.q1h('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1145
- $this$struct.q1h('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1146
- $this$struct.q1h('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1156
+ $this$struct.v1k($this$struct.j1h('Wirespec.Server', [$this$struct.j1h('Request', []), $this$struct.j1h('Response', [Wildcard_instance])]));
1157
+ $this$struct.v1k($this$struct.j1h('Wirespec.Client', [$this$struct.j1h('Request', []), $this$struct.j1h('Response', [Wildcard_instance])]));
1158
+ $this$struct.a1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1159
+ $this$struct.a1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1160
+ $this$struct.a1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1161
+ $this$struct.a1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1147
1162
  return Unit_instance;
1148
1163
  };
1149
1164
  }
@@ -1151,7 +1166,7 @@ function withFullyQualifiedPrefix$lambda($prefix) {
1151
1166
  return function (type, transformer) {
1152
1167
  var tmp;
1153
1168
  if (type instanceof Custom) {
1154
- tmp = type.f1n(new Name(listOf($prefix + type.u1i_1.y1g())));
1169
+ tmp = type.p1n(new Name(listOf($prefix + type.e1j_1.i1h())));
1155
1170
  } else {
1156
1171
  tmp = type;
1157
1172
  }
@@ -1160,10 +1175,10 @@ function withFullyQualifiedPrefix$lambda($prefix) {
1160
1175
  };
1161
1176
  }
1162
1177
  //region block: post-declaration
1163
- protoOf(JavaIrEmitter).f1w = get_extensions;
1178
+ protoOf(JavaIrEmitter).p1w = get_extensions;
1164
1179
  protoOf(JavaIrEmitter).no = emit_0;
1165
- protoOf(JavaIrEmitter).g1w = emit_1;
1166
- protoOf(JavaIrEmitter).k1w = beforeGenerate;
1180
+ protoOf(JavaIrEmitter).q1w = emit_1;
1181
+ protoOf(JavaIrEmitter).u1w = beforeGenerate;
1167
1182
  //endregion
1168
1183
  //region block: exports
1169
1184
  export {