@flock/wirespec 0.19.6 → 0.19.7

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 (35) hide show
  1. package/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1265 -1265
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +406 -406
  5. package/kotlin-kotlin-stdlib.mjs +6 -6
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +9383 -9383
  8. package/kotlin-rgxgen.mjs +1757 -1757
  9. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1708 -1708
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1449 -1449
  12. package/mordant-mordant.mjs +1097 -1097
  13. package/package.json +2 -2
  14. package/wirespec-src-compiler-core.mjs +973 -968
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +416 -416
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +295 -295
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +381 -381
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +377 -377
  23. package/wirespec-src-compiler-emitters-scala.mjs +153 -153
  24. package/wirespec-src-compiler-emitters-typescript.mjs +400 -400
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +89 -79
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-ir.mjs +3425 -3425
  28. package/wirespec-src-compiler-lib.mjs +343 -343
  29. package/wirespec-src-converter-avro.mjs +499 -499
  30. package/wirespec-src-converter-openapi.mjs +555 -555
  31. package/wirespec-src-ide-lsp.mjs +1350 -1350
  32. package/wirespec-src-plugin-arguments.mjs +121 -121
  33. package/wirespec-src-plugin-cli.mjs +91 -91
  34. package/wirespec-src-plugin-npm.mjs +26 -26
  35. package/wirespec-src-tools-generator.mjs +23 -23
@@ -188,10 +188,10 @@ import {
188
188
  //endregion
189
189
  //region block: pre-declaration
190
190
  function emit_3(type, module_0) {
191
- var tmp = this.nr(type.lp_1);
192
- var tmp_0 = this.lq(type.mp_1);
191
+ var tmp = this.or(type.mp_1);
192
+ var tmp_0 = this.mq(type.np_1);
193
193
  // Inline function 'kotlin.run' call
194
- var $this$run = type.np_1;
194
+ var $this$run = type.op_1;
195
195
  var tmp_1;
196
196
  if ($this$run.r()) {
197
197
  tmp_1 = '';
@@ -202,23 +202,23 @@ function emit_3(type, module_0) {
202
202
  return trimMargin('\n |public record ' + tmp + ' (\n |' + tmp_0 + '\n |)' + tmp$ret$1 + ' {\n |};\n |\n ');
203
203
  }
204
204
  function emit_4(_this__u8e3s4) {
205
- return dropLast_0(joinToString(_this__u8e3s4.ip_1, '\n', VOID, VOID, VOID, VOID, JavaTypeDefinitionEmitter$emit$lambda_0(this)), 1);
205
+ return dropLast_0(joinToString(_this__u8e3s4.jp_1, '\n', VOID, VOID, VOID, VOID, JavaTypeDefinitionEmitter$emit$lambda_0(this)), 1);
206
206
  }
207
207
  function emit_5(_this__u8e3s4) {
208
- return this.nq(_this__u8e3s4.rp_1) + ' ' + this.nr(_this__u8e3s4.qp_1);
208
+ return this.oq(_this__u8e3s4.sp_1) + ' ' + this.or(_this__u8e3s4.rp_1);
209
209
  }
210
210
  function emit_6(_this__u8e3s4) {
211
211
  // Inline function 'kotlin.let' call
212
212
  var it = emitType(this, _this__u8e3s4);
213
- return _this__u8e3s4.tu() ? 'java.util.Optional<' + it + '>' : it;
213
+ return _this__u8e3s4.uu() ? 'java.util.Optional<' + it + '>' : it;
214
214
  }
215
215
  function emitRoot(_this__u8e3s4, void_0) {
216
216
  var tmp;
217
217
  if (_this__u8e3s4 instanceof Dict) {
218
- tmp = this.x1w(_this__u8e3s4.so_1);
218
+ tmp = this.y1w(_this__u8e3s4.so_1);
219
219
  } else {
220
220
  if (_this__u8e3s4 instanceof Iterable) {
221
- tmp = this.x1w(_this__u8e3s4.po_1);
221
+ tmp = this.y1w(_this__u8e3s4.po_1);
222
222
  } else {
223
223
  if (_this__u8e3s4 instanceof Unit) {
224
224
  tmp = void_0;
@@ -247,15 +247,15 @@ function emitRoot(_this__u8e3s4, void_0) {
247
247
  }
248
248
  function emitRoot$default(_this__u8e3s4, void_0, $super) {
249
249
  void_0 = void_0 === VOID ? 'void' : void_0;
250
- return $super === VOID ? this.y1w(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
250
+ return $super === VOID ? this.z1w(_this__u8e3s4, void_0) : emitRoot(_this__u8e3s4, void_0);
251
251
  }
252
252
  function emit_7(_this__u8e3s4) {
253
253
  var tmp;
254
254
  if (_this__u8e3s4 instanceof RegExp_0) {
255
- tmp = 'return java.util.regex.Pattern.compile("' + replace(this.pq(_this__u8e3s4.pt_1), '\\', '\\\\') + '").matcher(value).find();';
255
+ tmp = 'return java.util.regex.Pattern.compile("' + replace(this.qq(_this__u8e3s4.qt_1), '\\', '\\\\') + '").matcher(value).find();';
256
256
  } else {
257
257
  if (_this__u8e3s4 instanceof Bound) {
258
- var tmp1_safe_receiver = _this__u8e3s4.fu_1;
258
+ var tmp1_safe_receiver = _this__u8e3s4.gu_1;
259
259
  var tmp_0;
260
260
  if (tmp1_safe_receiver == null) {
261
261
  tmp_0 = null;
@@ -264,7 +264,7 @@ function emit_7(_this__u8e3s4) {
264
264
  tmp_0 = tmp1_safe_receiver + ' < value';
265
265
  }
266
266
  var minCheck = tmp_0;
267
- var tmp2_safe_receiver = _this__u8e3s4.gu_1;
267
+ var tmp2_safe_receiver = _this__u8e3s4.hu_1;
268
268
  var tmp_1;
269
269
  if (tmp2_safe_receiver == null) {
270
270
  tmp_1 = null;
@@ -290,60 +290,16 @@ function emit_7(_this__u8e3s4) {
290
290
  }
291
291
  initMetadataForInterface(JavaTypeDefinitionEmitter, 'JavaTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter]);
292
292
  function emit_8(channel) {
293
- return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.nr(channel.cp_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.dp_1) + this.x1w(channel.dp_1) + ' message);\n |}\n |\n ');
293
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |@FunctionalInterface\n |public interface ' + this.or(channel.dp_1) + ' {\n | void invoke(' + emitFullyQualified(this, channel, channel.ep_1) + this.y1w(channel.ep_1) + ' message);\n |}\n |\n ');
294
294
  }
295
295
  initMetadataForInterface(JavaChannelDefinitionEmitter, 'JavaChannelDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
296
- function emit_9(refined) {
297
- return trimMargin('\n |public record ' + this.nr(refined.sr_1) + ' (' + this.nq(refined.tr_1) + ' value) implements Wirespec.Refined<' + this.nq(refined.tr_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public Boolean validate() {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.bs(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.nq(refined.tr_1) + ' value() { return value; }\n |}\n |\n ');
298
- }
299
- function emitValidator(_this__u8e3s4) {
300
- var defaultReturn = 'return true;';
301
- var type = _this__u8e3s4.tr_1.fv_1;
302
- var tmp;
303
- if (type instanceof Integer) {
304
- var tmp0_safe_receiver = type.ku_1;
305
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
306
- tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
307
- } else {
308
- if (type instanceof Number_0) {
309
- var tmp2_safe_receiver = type.nu_1;
310
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
311
- tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
312
- } else {
313
- if (type instanceof String_0) {
314
- var tmp4_safe_receiver = type.hu_1;
315
- var tmp_0;
316
- var tmp_1 = tmp4_safe_receiver;
317
- if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
318
- tmp_0 = null;
319
- } else {
320
- tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
321
- }
322
- var tmp5_elvis_lhs = tmp_0;
323
- tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
324
- } else {
325
- if (equals(type, Boolean_instance)) {
326
- tmp = defaultReturn;
327
- } else {
328
- if (equals(type, Bytes_instance)) {
329
- tmp = defaultReturn;
330
- } else {
331
- noWhenBranchMatchedException();
332
- }
333
- }
334
- }
335
- }
336
- }
337
- return tmp;
338
- }
339
- initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
340
- function emit_10(identifier) {
296
+ function emit_9(identifier) {
341
297
  var tmp;
342
298
  if (identifier instanceof DefinitionIdentifier) {
343
- tmp = this.i1x(identifier.l1());
299
+ tmp = this.j1x(identifier.l1());
344
300
  } else {
345
301
  if (identifier instanceof FieldIdentifier) {
346
- tmp = this.m1x(this.i1x(identifier.l1()));
302
+ tmp = this.n1x(this.j1x(identifier.l1()));
347
303
  } else {
348
304
  noWhenBranchMatchedException();
349
305
  }
@@ -361,11 +317,11 @@ function sanitizeSymbol(_this__u8e3s4) {
361
317
  var item = _iterator__ex2g4s.v();
362
318
  var _unary__edvuaz = index;
363
319
  index = _unary__edvuaz + 1 | 0;
364
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
320
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.fr(item) : item;
365
321
  destination.x(tmp$ret$0);
366
322
  }
367
323
  var tmp = asSequence(joinToString(destination, ''));
368
- return this.l1x(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
324
+ return this.m1x(joinToString_0(filter(tmp, JavaIdentifierEmitter$sanitizeSymbol$lambda), ''));
369
325
  }
370
326
  function sanitizeFirstIsDigit(_this__u8e3s4) {
371
327
  var tmp;
@@ -385,64 +341,64 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
385
341
  return tmp;
386
342
  }
387
343
  function sanitizeKeywords(_this__u8e3s4) {
388
- return Companion_getInstance_0().o1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
344
+ return Companion_getInstance_0().p1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
389
345
  }
390
346
  initMetadataForInterface(JavaIdentifierEmitter, 'JavaIdentifierEmitter');
391
- function emit_11(union) {
392
- var tmp = this.nr(union.gp_1);
393
- return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.hp_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
347
+ function emit_10(union) {
348
+ var tmp = this.or(union.hp_1);
349
+ return trimMargin('\n |public sealed interface ' + tmp + ' permits ' + joinToString(union.ip_1, VOID, VOID, VOID, VOID, VOID, JavaUnionDefinitionEmitter$emit$lambda) + ' {}\n |\n ');
394
350
  }
395
351
  initMetadataForInterface(JavaUnionDefinitionEmitter, 'JavaUnionDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
396
- function emit_12(endpoint) {
352
+ function emit_11(endpoint) {
397
353
  var tmp = emitImports_0(this, endpoint);
398
- var tmp_0 = this.nr(endpoint.up_1);
354
+ var tmp_0 = this.or(endpoint.vp_1);
399
355
  var tmp_1 = get_pathParams(endpoint);
400
356
  var tmp_2 = emitObject(this, tmp_1, 'Path', 'Wirespec.Path', JavaEndpointDefinitionEmitter$emit$lambda(this));
401
- var tmp_3 = emitObject(this, endpoint.xp_1, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
402
- var tmp_4 = emitObject(this, endpoint.yp_1, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
403
- var tmp_5 = this.j1x(first_0(endpoint.zp_1), endpoint);
357
+ var tmp_3 = emitObject(this, endpoint.yp_1, 'Queries', 'Wirespec.Queries', JavaEndpointDefinitionEmitter$emit$lambda_0(this));
358
+ var tmp_4 = emitObject(this, endpoint.zp_1, 'RequestHeaders', 'Wirespec.Request.Headers', JavaEndpointDefinitionEmitter$emit$lambda_1(this));
359
+ var tmp_5 = this.k1x(first_0(endpoint.aq_1), endpoint);
404
360
  var tmp_6 = Spacer_instance.toString();
405
361
  var tmp_7 = emitStatusInterfaces(this, endpoint);
406
362
  var tmp_8 = emitResponseInterfaces(this, endpoint);
407
- var tmp_9 = distinctByStatus(endpoint.aq_1);
363
+ var tmp_9 = distinctByStatus(endpoint.bq_1);
408
364
  var tmp_10 = joinToString(tmp_9, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_2(this));
409
365
  var tmp_11 = Spacer_instance.toString();
410
- var tmp_12 = emitRequestFunctions(this, first_0(endpoint.zp_1), endpoint);
411
- var tmp_13 = Spacer_instance.hs(2);
412
- var tmp_14 = distinctByStatus(endpoint.aq_1);
366
+ var tmp_12 = emitRequestFunctions(this, first_0(endpoint.aq_1), endpoint);
367
+ var tmp_13 = Spacer_instance.is(2);
368
+ var tmp_14 = distinctByStatus(endpoint.bq_1);
413
369
  var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_3(this));
414
- var tmp_16 = Spacer_instance.hs(3);
415
- var tmp_17 = Spacer_instance.hs(2);
416
- var tmp_18 = Spacer_instance.hs(2);
370
+ var tmp_16 = Spacer_instance.is(3);
371
+ var tmp_17 = Spacer_instance.is(2);
372
+ var tmp_18 = Spacer_instance.is(2);
417
373
  var tmp_19 = emitFromResponse(this, endpoint);
418
- var tmp_20 = Spacer_instance.hs(2);
419
- var tmp_21 = Spacer_instance.hs(2);
420
- var tmp_22 = this.n1x(endpoint);
421
- var tmp_23 = Spacer_instance.hs(2);
422
- var tmp_24 = Spacer_instance.hs(3);
423
- return trimMargin('\n |' + tmp + '\n |\n |public interface ' + tmp_0 + ' extends Wirespec.Endpoint {\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_7 + '\n |' + tmp_8 + '\n |\n |' + tmp_10 + '\n |\n |' + tmp_11 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_12 + '\n |\n |' + tmp_13 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.status());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + '\n |' + tmp_20 + '}\n |\n |' + tmp_21 + tmp_22 + '\n |' + tmp_23 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_24 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.hs(3) + '@Override public String getMethod() { return "' + endpoint.vp_1.toString() + '"; }\n |' + Spacer_instance.hs(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.hs(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.hs(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.hs(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.hs(4) + '};\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.hs(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.hs(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.hs(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.hs(4) + '};\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
374
+ var tmp_20 = Spacer_instance.is(2);
375
+ var tmp_21 = Spacer_instance.is(2);
376
+ var tmp_22 = this.o1x(endpoint);
377
+ var tmp_23 = Spacer_instance.is(2);
378
+ var tmp_24 = Spacer_instance.is(3);
379
+ return trimMargin('\n |' + tmp + '\n |\n |public interface ' + tmp_0 + ' extends Wirespec.Endpoint {\n |' + tmp_2 + '\n |\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + 'sealed interface Response<T> extends Wirespec.Response<T> {}\n |' + tmp_7 + '\n |' + tmp_8 + '\n |\n |' + tmp_10 + '\n |\n |' + tmp_11 + 'interface Handler extends Wirespec.Handler {\n |\n |' + tmp_12 + '\n |\n |' + tmp_13 + 'static Wirespec.RawResponse toResponse(Wirespec.Serializer serialization, Response<?> response) {\n |' + tmp_15 + '\n |' + tmp_16 + 'else { throw new IllegalStateException("Cannot match response with status: " + response.status());}\n |' + tmp_17 + '}\n |\n |' + tmp_18 + 'static Response<?> fromResponse(Wirespec.Deserializer serialization, Wirespec.RawResponse response) {\n |' + tmp_19 + '\n |' + tmp_20 + '}\n |\n |' + tmp_21 + tmp_22 + '\n |' + tmp_23 + 'class Handlers implements Wirespec.Server<Request, Response<?>>, Wirespec.Client<Request, Response<?>> {\n |' + tmp_24 + '@Override public String getPathTemplate() { return "/' + joinToString(endpoint.xp_1, '/', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_4) + '"; }\n |' + Spacer_instance.is(3) + '@Override public String getMethod() { return "' + endpoint.wp_1.toString() + '"; }\n |' + Spacer_instance.is(3) + '@Override public Wirespec.ServerEdge<Request, Response<?>> getServer(Wirespec.Serialization serialization) {\n |' + Spacer_instance.is(4) + 'return new Wirespec.ServerEdge<>() {\n |' + Spacer_instance.is(5) + '@Override public Request from(Wirespec.RawRequest request) { return fromRequest(serialization, request); }\n |' + Spacer_instance.is(5) + '@Override public Wirespec.RawResponse to(Response<?> response) { return toResponse(serialization, response); }\n |' + Spacer_instance.is(4) + '};\n |' + Spacer_instance.is(3) + '}\n |' + Spacer_instance.is(3) + '@Override public Wirespec.ClientEdge<Request, Response<?>> getClient(Wirespec.Serialization serialization) {\n |' + Spacer_instance.is(4) + 'return new Wirespec.ClientEdge<>() {\n |' + Spacer_instance.is(5) + '@Override public Wirespec.RawRequest to(Request request) { return toRequest(serialization, request); }\n |' + Spacer_instance.is(5) + '@Override public Response<?> from(Wirespec.RawResponse response) { return fromResponse(serialization, response); }\n |' + Spacer_instance.is(4) + '};\n |' + Spacer_instance.is(3) + '}\n |' + Spacer_instance.is(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
424
380
  }
425
381
  function emitHandleFunction(endpoint) {
426
- return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.fr(this.nr(endpoint.up_1)) + '(Request request);';
382
+ return 'java.util.concurrent.CompletableFuture<Response<?>> ' + Companion_instance_1.gr(this.or(endpoint.vp_1)) + '(Request request);';
427
383
  }
428
- function emit_13(_this__u8e3s4, endpoint) {
429
- return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.hs(2) + 'Path path,\n |' + Spacer_instance.hs(2) + 'Wirespec.Method method,\n |' + Spacer_instance.hs(2) + 'Queries queries,\n |' + Spacer_instance.hs(2) + 'RequestHeaders headers,\n |' + Spacer_instance.hs(2) + emit_16(this, _this__u8e3s4.dq_1) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_16(this, _this__u8e3s4.dq_1) + '> {\n |' + Spacer_instance.hs(2) + emitConstructor(this, _this__u8e3s4, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
384
+ function emit_12(_this__u8e3s4, endpoint) {
385
+ return trimMargin('\n |' + Spacer_instance.toString() + 'record Request (\n |' + Spacer_instance.is(2) + 'Path path,\n |' + Spacer_instance.is(2) + 'Wirespec.Method method,\n |' + Spacer_instance.is(2) + 'Queries queries,\n |' + Spacer_instance.is(2) + 'RequestHeaders headers,\n |' + Spacer_instance.is(2) + emit_16(this, _this__u8e3s4.eq_1) + ' body\n |' + Spacer_instance.toString() + ') implements Wirespec.Request<' + emit_16(this, _this__u8e3s4.eq_1) + '> {\n |' + Spacer_instance.is(2) + emitConstructor(this, _this__u8e3s4, endpoint) + '\n |' + Spacer_instance.toString() + '}\n ');
430
386
  }
431
- function emit_14(_this__u8e3s4) {
387
+ function emit_13(_this__u8e3s4) {
432
388
  var tmp = Spacer_instance.toString();
433
- var tmp_0 = Companion_instance_1.er(_this__u8e3s4.gq_1);
434
- var tmp_1 = Spacer_instance.hs(2);
435
- var tmp_2 = Spacer_instance.hs(2);
436
- var tmp_3 = Spacer_instance.hs(2);
437
- var tmp_4 = emit_16(this, _this__u8e3s4.iq_1);
389
+ var tmp_0 = Companion_instance_1.fr(_this__u8e3s4.hq_1);
390
+ var tmp_1 = Spacer_instance.is(2);
391
+ var tmp_2 = Spacer_instance.is(2);
392
+ var tmp_3 = Spacer_instance.is(2);
393
+ var tmp_4 = emit_16(this, _this__u8e3s4.jq_1);
438
394
  var tmp_5 = Spacer_instance.toString();
439
- var tmp_6 = toString_0(first(_this__u8e3s4.gq_1));
440
- var tmp_7 = emit_16(this, _this__u8e3s4.iq_1);
441
- var tmp_8 = concatGenerics(emit_16(this, _this__u8e3s4.iq_1));
442
- var tmp_9 = Spacer_instance.hs(2);
443
- var tmp_10 = Companion_instance_1.er(_this__u8e3s4.gq_1);
444
- var tmp_11 = orNull(joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_5(this)));
445
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
395
+ var tmp_6 = toString_0(first(_this__u8e3s4.hq_1));
396
+ var tmp_7 = emit_16(this, _this__u8e3s4.jq_1);
397
+ var tmp_8 = concatGenerics(emit_16(this, _this__u8e3s4.jq_1));
398
+ var tmp_9 = Spacer_instance.is(2);
399
+ var tmp_10 = Companion_instance_1.fr(_this__u8e3s4.hq_1);
400
+ var tmp_11 = orNull(joinToString(_this__u8e3s4.iq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_5(this)));
401
+ var tmp0_safe_receiver = _this__u8e3s4.jq_1;
446
402
  var tmp_12;
447
403
  if (tmp0_safe_receiver == null) {
448
404
  tmp_12 = null;
@@ -451,22 +407,66 @@ function emit_14(_this__u8e3s4) {
451
407
  tmp_12 = emit_16(this, tmp0_safe_receiver) + ' body';
452
408
  }
453
409
  var tmp_13 = joinToString(listOfNotNull([tmp_11, tmp_12]));
454
- var tmp_14 = Spacer_instance.hs(3);
455
- var tmp_15 = fixStatus(_this__u8e3s4.gq_1);
410
+ var tmp_14 = Spacer_instance.is(3);
411
+ var tmp_15 = fixStatus(_this__u8e3s4.hq_1);
456
412
  // Inline function 'kotlin.let' call
457
- var tmp_16 = 'new Headers(' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_6(this)) + ')';
458
- var tmp_17 = _this__u8e3s4.iq_1 == null ? 'null' : 'body';
459
- var tmp_18 = Spacer_instance.hs(2);
460
- var tmp_19 = Spacer_instance.hs(1);
461
- return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'Integer status,\n |' + tmp_2 + 'Headers headers,\n |' + tmp_3 + tmp_4 + ' body\n |' + tmp_5 + ') implements Response' + tmp_6 + 'XX<' + tmp_7 + '>, Response' + tmp_8 + ' {\n |' + tmp_9 + 'public Response' + tmp_10 + '(' + tmp_13 + ') {\n |' + tmp_14 + 'this(' + tmp_15 + ', ' + tmp_16 + ', ' + tmp_17 + ');\n |' + tmp_18 + '}\n |' + tmp_19 + emitObject(this, _this__u8e3s4.hq_1, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
413
+ var tmp_16 = 'new Headers(' + joinToString(_this__u8e3s4.iq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emit$lambda_6(this)) + ')';
414
+ var tmp_17 = _this__u8e3s4.jq_1 == null ? 'null' : 'body';
415
+ var tmp_18 = Spacer_instance.is(2);
416
+ var tmp_19 = Spacer_instance.is(1);
417
+ return trimMargin('\n |' + tmp + 'record Response' + tmp_0 + '(\n |' + tmp_1 + 'Integer status,\n |' + tmp_2 + 'Headers headers,\n |' + tmp_3 + tmp_4 + ' body\n |' + tmp_5 + ') implements Response' + tmp_6 + 'XX<' + tmp_7 + '>, Response' + tmp_8 + ' {\n |' + tmp_9 + 'public Response' + tmp_10 + '(' + tmp_13 + ') {\n |' + tmp_14 + 'this(' + tmp_15 + ', ' + tmp_16 + ', ' + tmp_17 + ');\n |' + tmp_18 + '}\n |' + tmp_19 + emitObject(this, _this__u8e3s4.iq_1, 'Headers', 'Wirespec.Response.Headers', JavaEndpointDefinitionEmitter$emit$lambda_7(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
462
418
  }
463
419
  initMetadataForInterface(JavaEndpointDefinitionEmitter, 'JavaEndpointDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
464
- function emit_15(enum_0, module_0) {
465
- var tmp = this.nr(enum_0.xr_1);
466
- return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.yr_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.nr(enum_0.xr_1) + '(String label) {\n |' + Spacer_instance.hs(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.hs(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.hs(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
420
+ function emit_14(enum_0, module_0) {
421
+ var tmp = this.or(enum_0.yr_1);
422
+ return trimMargin('\n |public enum ' + tmp + ' implements Wirespec.Enum {\n |' + spacer(joinToString(enum_0.zr_1, ',\n', VOID, VOID, VOID, VOID, JavaEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'public final String label;\n |' + Spacer_instance.toString() + this.or(enum_0.yr_1) + '(String label) {\n |' + Spacer_instance.is(2) + 'this.label = label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() {\n |' + Spacer_instance.is(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String label() {\n |' + Spacer_instance.is(2) + 'return label;\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
467
423
  }
468
424
  initMetadataForInterface(JavaEnumDefinitionEmitter, 'JavaEnumDefinitionEmitter', VOID, VOID, [JavaIdentifierEmitter]);
469
- initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaRefinedTypeDefinitionEmitter, JavaChannelDefinitionEmitter, JavaUnionDefinitionEmitter, JavaEndpointDefinitionEmitter, JavaEnumDefinitionEmitter, JavaTypeDefinitionEmitter, JavaIdentifierEmitter, LanguageEmitter]);
425
+ function emit_15(refined) {
426
+ return trimMargin('\n |public record ' + this.or(refined.tr_1) + ' (' + this.oq(refined.ur_1) + ' value) implements Wirespec.Refined<' + this.oq(refined.ur_1) + '> {\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public String toString() { return value.toString(); }\n |' + Spacer_instance.toString() + 'public Boolean validate() {\n |' + Spacer_instance.toString() + Spacer_instance.toString() + this.cs(refined) + '\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + '@Override\n |' + Spacer_instance.toString() + 'public ' + this.oq(refined.ur_1) + ' value() { return value; }\n |}\n |\n ');
427
+ }
428
+ function emitValidator(_this__u8e3s4) {
429
+ var defaultReturn = 'return true;';
430
+ var type = _this__u8e3s4.ur_1.gv_1;
431
+ var tmp;
432
+ if (type instanceof Integer) {
433
+ var tmp0_safe_receiver = type.lu_1;
434
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.pq(tmp0_safe_receiver);
435
+ tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
436
+ } else {
437
+ if (type instanceof Number_0) {
438
+ var tmp2_safe_receiver = type.ou_1;
439
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.pq(tmp2_safe_receiver);
440
+ tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
441
+ } else {
442
+ if (type instanceof String_0) {
443
+ var tmp4_safe_receiver = type.iu_1;
444
+ var tmp_0;
445
+ var tmp_1 = tmp4_safe_receiver;
446
+ if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
447
+ tmp_0 = null;
448
+ } else {
449
+ tmp_0 = this.pq(new RegExp_0(tmp4_safe_receiver));
450
+ }
451
+ var tmp5_elvis_lhs = tmp_0;
452
+ tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
453
+ } else {
454
+ if (equals(type, Boolean_instance)) {
455
+ tmp = defaultReturn;
456
+ } else {
457
+ if (equals(type, Bytes_instance)) {
458
+ tmp = defaultReturn;
459
+ } else {
460
+ noWhenBranchMatchedException();
461
+ }
462
+ }
463
+ }
464
+ }
465
+ }
466
+ return tmp;
467
+ }
468
+ initMetadataForInterface(JavaRefinedTypeDefinitionEmitter, 'JavaRefinedTypeDefinitionEmitter', VOID, VOID, [JavaTypeDefinitionEmitter]);
469
+ initMetadataForClass(JavaEmitter, 'JavaEmitter', JavaEmitter, LanguageEmitter, [JavaChannelDefinitionEmitter, JavaTypeDefinitionEmitter, JavaIdentifierEmitter, JavaUnionDefinitionEmitter, JavaEndpointDefinitionEmitter, JavaEnumDefinitionEmitter, JavaRefinedTypeDefinitionEmitter, LanguageEmitter]);
470
470
  initMetadataForCompanion(Companion);
471
471
  initMetadataForCompanion(Companion_0);
472
472
  initMetadataForClass(JavaIrEmitter, 'JavaIrEmitter', JavaIrEmitter, VOID, [IrEmitter]);
@@ -480,7 +480,7 @@ function emitImports($this, _this__u8e3s4) {
480
480
  var _iterator__ex2g4s = tmp0.t();
481
481
  while (_iterator__ex2g4s.u()) {
482
482
  var element = _iterator__ex2g4s.v();
483
- if (!(_this__u8e3s4.mr().l1() === element.bv_1)) {
483
+ if (!(_this__u8e3s4.nr().l1() === element.cv_1)) {
484
484
  destination.x(element);
485
485
  }
486
486
  }
@@ -490,7 +490,7 @@ function emitImports($this, _this__u8e3s4) {
490
490
  var _iterator__ex2g4s_0 = destination.t();
491
491
  while (_iterator__ex2g4s_0.u()) {
492
492
  var item = _iterator__ex2g4s_0.v();
493
- var tmp$ret$3 = 'import ' + $this.w1w().ds_1 + '.model.' + item.bv_1 + ';';
493
+ var tmp$ret$3 = 'import ' + $this.x1w().es_1 + '.model.' + item.cv_1 + ';';
494
494
  destination_0.x(tmp$ret$3);
495
495
  }
496
496
  var tmp = destination_0;
@@ -498,8 +498,8 @@ function emitImports($this, _this__u8e3s4) {
498
498
  }
499
499
  function emitFullyQualified($this, _this__u8e3s4, reference) {
500
500
  var tmp;
501
- if (_this__u8e3s4.mr().l1() === reference.l1()) {
502
- tmp = $this.w1w().ds_1 + '.model.';
501
+ if (_this__u8e3s4.nr().l1() === reference.l1()) {
502
+ tmp = $this.x1w().es_1 + '.model.';
503
503
  } else {
504
504
  tmp = '';
505
505
  }
@@ -512,49 +512,49 @@ function JavaChannelDefinitionEmitter$emitImports$lambda(it) {
512
512
  function JavaChannelDefinitionEmitter() {
513
513
  }
514
514
  function JavaEmitter(packageName, emitShared) {
515
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
515
+ packageName = packageName === VOID ? Companion_instance.ds('community.flock.wirespec.generated') : packageName;
516
516
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
517
517
  LanguageEmitter.call(this);
518
- this.z1w_1 = packageName;
519
- this.a1x_1 = emitShared;
520
- this.b1x_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
521
- this.c1x_1 = FileExtension_Java_getInstance();
522
- this.d1x_1 = JavaShared_getInstance();
523
- this.e1x_1 = '//';
524
- }
525
- protoOf(JavaEmitter).w1w = function () {
526
- return this.z1w_1;
527
- };
528
- protoOf(JavaEmitter).uq = function () {
529
- return this.c1x_1;
518
+ this.a1x_1 = packageName;
519
+ this.b1x_1 = emitShared;
520
+ this.c1x_1 = '\nimport community.flock.wirespec.java.Wirespec;\n';
521
+ this.d1x_1 = FileExtension_Java_getInstance();
522
+ this.e1x_1 = JavaShared_getInstance();
523
+ this.f1x_1 = '//';
524
+ }
525
+ protoOf(JavaEmitter).x1w = function () {
526
+ return this.a1x_1;
530
527
  };
531
- protoOf(JavaEmitter).f1x = function () {
528
+ protoOf(JavaEmitter).vq = function () {
532
529
  return this.d1x_1;
533
530
  };
534
- protoOf(JavaEmitter).vq = function () {
531
+ protoOf(JavaEmitter).g1x = function () {
535
532
  return this.e1x_1;
536
533
  };
537
- protoOf(JavaEmitter).kr = function (module_0, logger) {
534
+ protoOf(JavaEmitter).wq = function () {
535
+ return this.f1x_1;
536
+ };
537
+ protoOf(JavaEmitter).lr = function (module_0, logger) {
538
538
  // Inline function 'kotlin.let' call
539
- var it = protoOf(LanguageEmitter).kr.call(this, module_0, logger);
540
- return this.a1x_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.cs('community.flock.wirespec.java').fs() + 'Wirespec', this.f1x().h1x_1)) : it;
539
+ var it = protoOf(LanguageEmitter).lr.call(this, module_0, logger);
540
+ return this.b1x_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.ds('community.flock.wirespec.java').gs() + 'Wirespec', this.g1x().i1x_1)) : it;
541
541
  };
542
- protoOf(JavaEmitter).lr = function (definition, module_0, logger) {
542
+ protoOf(JavaEmitter).mr = function (definition, module_0, logger) {
543
543
  // Inline function 'kotlin.let' call
544
- var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
545
- var subPackageName = plus(this.w1w(), definition);
546
- var tmp = subPackageName.fs() + this.i1x(it.yo_1);
544
+ var it = protoOf(LanguageEmitter).mr.call(this, definition, module_0, logger);
545
+ var subPackageName = plus(this.x1w(), definition);
546
+ var tmp = subPackageName.gs() + this.j1x(it.yo_1);
547
547
  // Inline function 'kotlin.text.trimStart' call
548
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.gr(module_0) ? this.b1x_1 : '') + '\n |' + it.zo_1 + '\n ');
548
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + ';\n |' + (Companion_instance_1.hr(module_0) ? this.c1x_1 : '') + '\n |' + it.zo_1 + '\n ');
549
549
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
550
550
  return new Emitted(tmp, tmp$ret$0);
551
551
  };
552
552
  function emitGetType($this, _this__u8e3s4) {
553
- return 'Wirespec.getType(' + $this.y1w(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
553
+ return 'Wirespec.getType(' + $this.z1w(_this__u8e3s4, 'Void') + '.class, ' + emitGetTypeRaw($this, _this__u8e3s4) + ')';
554
554
  }
555
555
  function emitGetTypeRaw($this, _this__u8e3s4) {
556
556
  var tmp;
557
- var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : _this__u8e3s4.tu();
557
+ var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : _this__u8e3s4.uu();
558
558
  if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
559
559
  tmp = 'java.util.Optional.class';
560
560
  } else {
@@ -569,9 +569,9 @@ function emitGetTypeRaw($this, _this__u8e3s4) {
569
569
  function emitConstructor($this, _this__u8e3s4, endpoint) {
570
570
  var tmp = get_pathParams(endpoint);
571
571
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda($this)));
572
- var tmp_1 = orNull(joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
573
- var tmp_2 = orNull(joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
574
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
572
+ var tmp_1 = orNull(joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
573
+ var tmp_2 = orNull(joinToString(endpoint.zp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
574
+ var tmp0_safe_receiver = _this__u8e3s4.eq_1;
575
575
  var tmp_3;
576
576
  if (tmp0_safe_receiver == null) {
577
577
  tmp_3 = null;
@@ -580,112 +580,112 @@ function emitConstructor($this, _this__u8e3s4, endpoint) {
580
580
  tmp_3 = emit_16($this, tmp0_safe_receiver) + ' body';
581
581
  }
582
582
  var tmp_4 = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]));
583
- var tmp_5 = Spacer_instance.hs(3);
583
+ var tmp_5 = Spacer_instance.is(3);
584
584
  var tmp_6 = get_pathParams(endpoint);
585
585
  // Inline function 'kotlin.let' call
586
586
  var tmp$ret$3 = 'new Path(' + joinToString(tmp_6, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_2($this)) + ')';
587
587
  var tmp1_elvis_lhs = orNull(tmp$ret$3);
588
588
  var tmp_7 = tmp1_elvis_lhs == null ? 'new Path()' : tmp1_elvis_lhs;
589
- var tmp_8 = 'Wirespec.Method.' + endpoint.vp_1.a3_1;
589
+ var tmp_8 = 'Wirespec.Method.' + endpoint.wp_1.a3_1;
590
590
  // Inline function 'kotlin.let' call
591
- var tmp$ret$5 = 'new Queries(' + joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_3($this)) + ')';
591
+ var tmp$ret$5 = 'new Queries(' + joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_3($this)) + ')';
592
592
  var tmp2_elvis_lhs = orNull(tmp$ret$5);
593
593
  var tmp_9 = tmp2_elvis_lhs == null ? 'new Queries()' : tmp2_elvis_lhs;
594
594
  // Inline function 'kotlin.let' call
595
- var tmp$ret$7 = 'new RequestHeaders(' + joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_4($this)) + ')';
595
+ var tmp$ret$7 = 'new RequestHeaders(' + joinToString(endpoint.zp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitConstructor$lambda_4($this)) + ')';
596
596
  var tmp3_elvis_lhs = orNull(tmp$ret$7);
597
597
  var tmp_10 = tmp3_elvis_lhs == null ? 'new RequestHeaders()' : tmp3_elvis_lhs;
598
598
  var tmp_11;
599
- if (_this__u8e3s4.dq_1 == null) {
599
+ if (_this__u8e3s4.eq_1 == null) {
600
600
  tmp_11 = null;
601
601
  } else {
602
602
  // Inline function 'kotlin.let' call
603
603
  tmp_11 = 'body';
604
604
  }
605
605
  var tmp5_elvis_lhs = tmp_11;
606
- return 'public Request(' + tmp_4 + ') {\n' + tmp_5 + 'this(' + joinToString(listOfNotNull([tmp_7, tmp_8, tmp_9, tmp_10, tmp5_elvis_lhs == null ? 'null' : tmp5_elvis_lhs])) + ');\n' + Spacer_instance.hs(2) + '}';
606
+ return 'public Request(' + tmp_4 + ') {\n' + tmp_5 + 'this(' + joinToString(listOfNotNull([tmp_7, tmp_8, tmp_9, tmp_10, tmp5_elvis_lhs == null ? 'null' : tmp5_elvis_lhs])) + ');\n' + Spacer_instance.is(2) + '}';
607
607
  }
608
608
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
609
609
  var tmp = get_indexedPathParams(endpoint);
610
610
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
611
- var tmp_1 = orNull(joinToString(endpoint.xp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
612
- var tmp_2 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
613
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
611
+ var tmp_1 = orNull(joinToString(endpoint.yp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
612
+ var tmp_2 = orNull(joinToString(endpoint.zp_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
613
+ var tmp0_safe_receiver = _this__u8e3s4.eq_1;
614
614
  var tmp_3;
615
615
  if (tmp0_safe_receiver == null) {
616
616
  tmp_3 = null;
617
617
  } else {
618
618
  // Inline function 'kotlin.let' call
619
- tmp_3 = Spacer_instance.hs(4) + 'request.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.fq_1) + ')).orElse(null)';
619
+ tmp_3 = Spacer_instance.is(4) + 'request.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.gq_1) + ')).orElse(null)';
620
620
  }
621
621
  // Inline function 'kotlin.let' call
622
622
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
623
- return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.hs(3);
623
+ return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.is(3);
624
624
  }
625
625
  function emitDeserializedParams_0($this, _this__u8e3s4) {
626
- var tmp = orNull(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2($this)));
627
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
626
+ var tmp = orNull(joinToString(_this__u8e3s4.iq_1, ',\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2($this)));
627
+ var tmp0_safe_receiver = _this__u8e3s4.jq_1;
628
628
  var tmp_0;
629
629
  if (tmp0_safe_receiver == null) {
630
630
  tmp_0 = null;
631
631
  } else {
632
632
  // Inline function 'kotlin.let' call
633
- tmp_0 = Spacer_instance.hs(5) + 'response.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.fq_1) + ')).orElse(null)';
633
+ tmp_0 = Spacer_instance.is(5) + 'response.body().<' + emit_16($this, tmp0_safe_receiver) + '>map(body -> serialization.deserializeBody(body, ' + emitGetType($this, tmp0_safe_receiver.gq_1) + ')).orElse(null)';
634
634
  }
635
635
  // Inline function 'kotlin.let' call
636
636
  var it = joinToString(listOfNotNull([tmp, tmp_0]), ',\n');
637
- return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.hs(4);
637
+ return isBlank(it) ? '' : '\n' + it + '\n' + Spacer_instance.is(4);
638
638
  }
639
639
  function emitSerialized($this, _this__u8e3s4) {
640
640
  var tmp;
641
- if (!(_this__u8e3s4.iq_1 == null)) {
642
- tmp = 'java.util.Optional.ofNullable(serialization.serializeBody(r.body, ' + emitGetType($this, ensureNotNull(_this__u8e3s4.iq_1).fq_1) + '))';
641
+ if (!(_this__u8e3s4.jq_1 == null)) {
642
+ tmp = 'java.util.Optional.ofNullable(serialization.serializeBody(r.body, ' + emitGetType($this, ensureNotNull(_this__u8e3s4.jq_1).gq_1) + '))';
643
643
  } else {
644
644
  tmp = 'java.util.Optional.empty()';
645
645
  }
646
646
  var body = tmp;
647
647
  var tmp_0;
648
648
  // Inline function 'kotlin.collections.isNotEmpty' call
649
- if (!_this__u8e3s4.hq_1.r()) {
650
- tmp_0 = 'java.util.Map.ofEntries(' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitSerialized$lambda($this)) + ')';
649
+ if (!_this__u8e3s4.iq_1.r()) {
650
+ tmp_0 = 'java.util.Map.ofEntries(' + joinToString(_this__u8e3s4.iq_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitSerialized$lambda($this)) + ')';
651
651
  } else {
652
652
  tmp_0 = 'java.util.Collections.emptyMap()';
653
653
  }
654
654
  var headers = tmp_0;
655
- return Spacer_instance.hs(3) + 'if (response instanceof Response' + Companion_instance_1.er(_this__u8e3s4.gq_1) + ' r) { return new Wirespec.RawResponse(r.status(), ' + headers + ', ' + body + '); }';
655
+ return Spacer_instance.is(3) + 'if (response instanceof Response' + Companion_instance_1.fr(_this__u8e3s4.hq_1) + ' r) { return new Wirespec.RawResponse(r.status(), ' + headers + ', ' + body + '); }';
656
656
  }
657
657
  function emitDeserialized($this, _this__u8e3s4) {
658
- return Spacer_instance.hs(4) + 'case ' + _this__u8e3s4.gq_1 + ' -> new Response' + Companion_instance_1.er(_this__u8e3s4.gq_1) + '(' + emitDeserializedParams_0($this, _this__u8e3s4) + ');';
658
+ return Spacer_instance.is(4) + 'case ' + _this__u8e3s4.hq_1 + ' -> new Response' + Companion_instance_1.fr(_this__u8e3s4.hq_1) + '(' + emitDeserializedParams_0($this, _this__u8e3s4) + ');';
659
659
  }
660
660
  function emitSerializedParams($this, _this__u8e3s4, fields) {
661
- return 'java.util.Map.entry("' + _this__u8e3s4.qp_1.l1() + '", serialization.serializeParam(request.' + (fields === 'queries' ? 'queries' : 'headers') + '().' + $this.nr(_this__u8e3s4.qp_1) + '(), ' + emitGetType($this, _this__u8e3s4.rp_1) + '))';
661
+ return 'java.util.Map.entry("' + _this__u8e3s4.rp_1.l1() + '", serialization.serializeParam(request.' + (fields === 'queries' ? 'queries' : 'headers') + '().' + $this.or(_this__u8e3s4.rp_1) + '(), ' + emitGetType($this, _this__u8e3s4.sp_1) + '))';
662
662
  }
663
663
  function emitDeserialized_0($this, _this__u8e3s4) {
664
- return Spacer_instance.hs(4) + 'serialization.deserializePath(request.path().get(' + _this__u8e3s4.te_1 + '), ' + emitGetType($this, _this__u8e3s4.ue_1.cq_1) + ')';
664
+ return Spacer_instance.is(4) + 'serialization.deserializePath(request.path().get(' + _this__u8e3s4.te_1 + '), ' + emitGetType($this, _this__u8e3s4.ue_1.dq_1) + ')';
665
665
  }
666
666
  function emitDeserializedParams_1($this, _this__u8e3s4, fields, caseSensitive) {
667
667
  var tmp;
668
668
  if (caseSensitive) {
669
- tmp = 'request.' + fields + '().getOrDefault("' + _this__u8e3s4.qp_1.l1() + '", java.util.Collections.emptyList())';
669
+ tmp = 'request.' + fields + '().getOrDefault("' + _this__u8e3s4.rp_1.l1() + '", java.util.Collections.emptyList())';
670
670
  } else {
671
- tmp = 'request.' + fields + '().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + _this__u8e3s4.qp_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList())';
671
+ tmp = 'request.' + fields + '().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + _this__u8e3s4.rp_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList())';
672
672
  }
673
673
  var valuesFromField = tmp;
674
- return Spacer_instance.hs(4) + 'serialization.<' + $this.nq(_this__u8e3s4.rp_1) + '>deserializeParam(' + valuesFromField + ', ' + emitGetType($this, _this__u8e3s4.rp_1) + ')';
674
+ return Spacer_instance.is(4) + 'serialization.<' + $this.oq(_this__u8e3s4.sp_1) + '>deserializeParam(' + valuesFromField + ', ' + emitGetType($this, _this__u8e3s4.sp_1) + ')';
675
675
  }
676
676
  function emitSerializedHeader($this, _this__u8e3s4) {
677
- return 'java.util.Map.entry("' + _this__u8e3s4.qp_1.l1() + '", serialization.<' + $this.nq(_this__u8e3s4.rp_1) + '>serializeParam(r.headers().' + $this.nr(_this__u8e3s4.qp_1) + '(), ' + emitGetType($this, _this__u8e3s4.rp_1) + '))';
677
+ return 'java.util.Map.entry("' + _this__u8e3s4.rp_1.l1() + '", serialization.<' + $this.oq(_this__u8e3s4.sp_1) + '>serializeParam(r.headers().' + $this.or(_this__u8e3s4.rp_1) + '(), ' + emitGetType($this, _this__u8e3s4.sp_1) + '))';
678
678
  }
679
679
  function emitIdentifier($this, _this__u8e3s4) {
680
- return 'serialization.serializePath(request.path().' + Companion_instance_1.fr($this.nr(_this__u8e3s4.bq_1)) + '(), ' + emitGetType($this, _this__u8e3s4.cq_1) + ')';
680
+ return 'serialization.serializePath(request.path().' + Companion_instance_1.gr($this.or(_this__u8e3s4.cq_1)) + '(), ' + emitGetType($this, _this__u8e3s4.dq_1) + ')';
681
681
  }
682
682
  function emit_16($this, _this__u8e3s4) {
683
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.fq_1;
684
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
683
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.gq_1;
684
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.oq(tmp1_safe_receiver);
685
685
  return tmp2_elvis_lhs == null ? 'Void' : tmp2_elvis_lhs;
686
686
  }
687
687
  function emit_17($this, _this__u8e3s4) {
688
- return $this.nq(_this__u8e3s4.cq_1) + ' ' + $this.nr(_this__u8e3s4.bq_1);
688
+ return $this.oq(_this__u8e3s4.dq_1) + ' ' + $this.or(_this__u8e3s4.cq_1);
689
689
  }
690
690
  function emitImports_0($this, _this__u8e3s4) {
691
691
  // Inline function 'kotlin.collections.filter' call
@@ -695,7 +695,7 @@ function emitImports_0($this, _this__u8e3s4) {
695
695
  var _iterator__ex2g4s = tmp0.t();
696
696
  while (_iterator__ex2g4s.u()) {
697
697
  var element = _iterator__ex2g4s.v();
698
- if (!(_this__u8e3s4.mr().l1() === element.bv_1)) {
698
+ if (!(_this__u8e3s4.nr().l1() === element.cv_1)) {
699
699
  destination.x(element);
700
700
  }
701
701
  }
@@ -705,46 +705,46 @@ function emitImports_0($this, _this__u8e3s4) {
705
705
  var _iterator__ex2g4s_0 = destination.t();
706
706
  while (_iterator__ex2g4s_0.u()) {
707
707
  var item = _iterator__ex2g4s_0.v();
708
- var tmp$ret$3 = 'import ' + $this.w1w().ds_1 + '.model.' + item.bv_1 + ';';
708
+ var tmp$ret$3 = 'import ' + $this.x1w().es_1 + '.model.' + item.cv_1 + ';';
709
709
  destination_0.x(tmp$ret$3);
710
710
  }
711
711
  var tmp = destination_0;
712
712
  return joinToString(tmp, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitImports$lambda);
713
713
  }
714
714
  function emitRequestFunctions($this, _this__u8e3s4, endpoint) {
715
- var tmp = Spacer_instance.hs(2);
716
- var tmp_0 = Spacer_instance.hs(3);
717
- var tmp_1 = Spacer_instance.hs(4);
718
- var tmp_2 = Spacer_instance.hs(4);
719
- var tmp_3 = joinToString(endpoint.wp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda($this));
720
- var tmp_4 = Spacer_instance.hs(4);
715
+ var tmp = Spacer_instance.is(2);
716
+ var tmp_0 = Spacer_instance.is(3);
717
+ var tmp_1 = Spacer_instance.is(4);
718
+ var tmp_2 = Spacer_instance.is(4);
719
+ var tmp_3 = joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda($this));
720
+ var tmp_4 = Spacer_instance.is(4);
721
721
  var tmp_5;
722
722
  // Inline function 'kotlin.collections.isNotEmpty' call
723
- if (!endpoint.xp_1.r()) {
724
- tmp_5 = 'java.util.Map.ofEntries(' + joinToString(endpoint.xp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_0($this)) + ')';
723
+ if (!endpoint.yp_1.r()) {
724
+ tmp_5 = 'java.util.Map.ofEntries(' + joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_0($this)) + ')';
725
725
  } else {
726
726
  tmp_5 = 'java.util.Collections.emptyMap()';
727
727
  }
728
728
  var tmp_6 = tmp_5;
729
- var tmp_7 = Spacer_instance.hs(4);
729
+ var tmp_7 = Spacer_instance.is(4);
730
730
  var tmp_8;
731
731
  // Inline function 'kotlin.collections.isNotEmpty' call
732
- if (!endpoint.yp_1.r()) {
733
- tmp_8 = 'java.util.Map.ofEntries(' + joinToString(endpoint.yp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1($this)) + ')';
732
+ if (!endpoint.zp_1.r()) {
733
+ tmp_8 = 'java.util.Map.ofEntries(' + joinToString(endpoint.zp_1, VOID, VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1($this)) + ')';
734
734
  } else {
735
735
  tmp_8 = 'java.util.Collections.emptyMap()';
736
736
  }
737
737
  var tmp_9 = tmp_8;
738
- var tmp_10 = Spacer_instance.hs(4);
738
+ var tmp_10 = Spacer_instance.is(4);
739
739
  var tmp_11;
740
- if (!(_this__u8e3s4.dq_1 == null)) {
741
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
742
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
740
+ if (!(_this__u8e3s4.eq_1 == null)) {
741
+ var tmp0_safe_receiver = _this__u8e3s4.eq_1;
742
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gq_1;
743
743
  tmp_11 = 'java.util.Optional.ofNullable(serialization.serializeBody(request.body(), ' + (tmp1_safe_receiver == null ? null : emitGetType($this, tmp1_safe_receiver)) + '))';
744
744
  } else {
745
745
  tmp_11 = 'java.util.Optional.empty()';
746
746
  }
747
- return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer serialization, Request request) {\n |' + tmp_0 + 'return new Wirespec.RawRequest(\n |' + tmp_1 + 'request.method().name(),\n |' + tmp_2 + 'java.util.List.of(' + tmp_3 + '),\n |' + tmp_4 + tmp_6 + ',\n |' + tmp_7 + tmp_9 + ',\n |' + tmp_10 + tmp_11 + '\n |' + Spacer_instance.hs(3) + ');\n |' + Spacer_instance.hs(2) + '}\n |\n |' + Spacer_instance.hs(2) + 'static Request fromRequest(Wirespec.Deserializer serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.hs(3) + 'return new Request(' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + ');\n |' + Spacer_instance.hs(2) + '}\n ');
747
+ return trimMargin('\n |' + tmp + 'static Wirespec.RawRequest toRequest(Wirespec.Serializer serialization, Request request) {\n |' + tmp_0 + 'return new Wirespec.RawRequest(\n |' + tmp_1 + 'request.method().name(),\n |' + tmp_2 + 'java.util.List.of(' + tmp_3 + '),\n |' + tmp_4 + tmp_6 + ',\n |' + tmp_7 + tmp_9 + ',\n |' + tmp_10 + tmp_11 + '\n |' + Spacer_instance.is(3) + ');\n |' + Spacer_instance.is(2) + '}\n |\n |' + Spacer_instance.is(2) + 'static Request fromRequest(Wirespec.Deserializer serialization, Wirespec.RawRequest request) {\n |' + Spacer_instance.is(3) + 'return new Request(' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + ');\n |' + Spacer_instance.is(2) + '}\n ');
748
748
  }
749
749
  function emitObject($this, _this__u8e3s4, name, extends_0, block) {
750
750
  var tmp;
@@ -758,13 +758,13 @@ function emitObject($this, _this__u8e3s4, name, extends_0, block) {
758
758
  }
759
759
  function emitResponseInterfaces($this, _this__u8e3s4) {
760
760
  // Inline function 'kotlin.collections.map' call
761
- var this_0 = distinctByStatus(_this__u8e3s4.aq_1);
761
+ var this_0 = distinctByStatus(_this__u8e3s4.bq_1);
762
762
  // Inline function 'kotlin.collections.mapTo' call
763
763
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
764
764
  var _iterator__ex2g4s = this_0.t();
765
765
  while (_iterator__ex2g4s.u()) {
766
766
  var item = _iterator__ex2g4s.v();
767
- var tmp$ret$0 = emit_16($this, item.iq_1);
767
+ var tmp$ret$0 = emit_16($this, item.jq_1);
768
768
  destination.x(tmp$ret$0);
769
769
  }
770
770
  var tmp = distinct(destination);
@@ -772,13 +772,13 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
772
772
  }
773
773
  function emitStatusInterfaces($this, _this__u8e3s4) {
774
774
  // Inline function 'kotlin.collections.map' call
775
- var this_0 = _this__u8e3s4.aq_1;
775
+ var this_0 = _this__u8e3s4.bq_1;
776
776
  // Inline function 'kotlin.collections.mapTo' call
777
777
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
778
778
  var _iterator__ex2g4s = this_0.t();
779
779
  while (_iterator__ex2g4s.u()) {
780
780
  var item = _iterator__ex2g4s.v();
781
- var tmp$ret$0 = new Char(first(item.gq_1));
781
+ var tmp$ret$0 = new Char(first(item.hq_1));
782
782
  destination.x(tmp$ret$0);
783
783
  }
784
784
  var tmp = distinct(destination);
@@ -786,26 +786,26 @@ function emitStatusInterfaces($this, _this__u8e3s4) {
786
786
  }
787
787
  function emitFromResponse($this, _this__u8e3s4) {
788
788
  // Inline function 'kotlin.collections.filter' call
789
- var tmp0 = distinctByStatus(_this__u8e3s4.aq_1);
789
+ var tmp0 = distinctByStatus(_this__u8e3s4.bq_1);
790
790
  // Inline function 'kotlin.collections.filterTo' call
791
791
  var destination = ArrayList_init_$Create$();
792
792
  var _iterator__ex2g4s = tmp0.t();
793
793
  while (_iterator__ex2g4s.u()) {
794
794
  var element = _iterator__ex2g4s.v();
795
- if (Companion_instance_1.ir(element.gq_1)) {
795
+ if (Companion_instance_1.jr(element.hq_1)) {
796
796
  destination.x(element);
797
797
  }
798
798
  }
799
799
  var statusResponses = destination;
800
800
  var tmp;
801
801
  if (statusResponses.r()) {
802
- tmp = trimMargin('\n |' + Spacer_instance.hs(3) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n ');
802
+ tmp = trimMargin('\n |' + Spacer_instance.is(3) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n ');
803
803
  } else if (statusResponses.a1() === 1) {
804
804
  var response = first_0(statusResponses);
805
- tmp = trimMargin('\n |' + Spacer_instance.hs(3) + 'if (response.statusCode() == ' + response.gq_1 + ') {\n |' + Spacer_instance.hs(4) + 'return new Response' + Companion_instance_1.er(response.gq_1) + '(' + emitDeserializedParams_0($this, response) + ');\n |' + Spacer_instance.hs(3) + '} else {\n |' + Spacer_instance.hs(4) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.hs(3) + '}\n ');
805
+ tmp = trimMargin('\n |' + Spacer_instance.is(3) + 'if (response.statusCode() == ' + response.hq_1 + ') {\n |' + Spacer_instance.is(4) + 'return new Response' + Companion_instance_1.fr(response.hq_1) + '(' + emitDeserializedParams_0($this, response) + ');\n |' + Spacer_instance.is(3) + '} else {\n |' + Spacer_instance.is(4) + 'throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.is(3) + '}\n ');
806
806
  } else {
807
- var tmp_0 = Spacer_instance.hs(3);
808
- tmp = trimMargin('\n |' + tmp_0 + 'return switch (response.statusCode()) {\n |' + joinToString(statusResponses, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitFromResponse$lambda($this)) + '\n |' + Spacer_instance.hs(4) + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.hs(3) + '};\n ');
807
+ var tmp_0 = Spacer_instance.is(3);
808
+ tmp = trimMargin('\n |' + tmp_0 + 'return switch (response.statusCode()) {\n |' + joinToString(statusResponses, '\n', VOID, VOID, VOID, VOID, JavaEndpointDefinitionEmitter$emitFromResponse$lambda($this)) + '\n |' + Spacer_instance.is(4) + 'default -> throw new IllegalStateException("Cannot match response with status: " + response.statusCode());\n |' + Spacer_instance.is(3) + '};\n ');
809
809
  }
810
810
  return tmp;
811
811
  }
@@ -816,17 +816,17 @@ function JavaEndpointDefinitionEmitter$emit$lambda(this$0) {
816
816
  }
817
817
  function JavaEndpointDefinitionEmitter$emit$lambda_0(this$0) {
818
818
  return function (it) {
819
- return this$0.mq(it);
819
+ return this$0.nq(it);
820
820
  };
821
821
  }
822
822
  function JavaEndpointDefinitionEmitter$emit$lambda_1(this$0) {
823
823
  return function (it) {
824
- return this$0.mq(it);
824
+ return this$0.nq(it);
825
825
  };
826
826
  }
827
827
  function JavaEndpointDefinitionEmitter$emit$lambda_2(this$0) {
828
828
  return function (it) {
829
- return this$0.k1x(it);
829
+ return this$0.l1x(it);
830
830
  };
831
831
  }
832
832
  function JavaEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -844,27 +844,27 @@ function JavaEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
844
844
  }
845
845
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
846
846
  return function (it) {
847
- return this$0.mq(it);
847
+ return this$0.nq(it);
848
848
  };
849
849
  }
850
850
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
851
851
  return function (it) {
852
- return this$0.mq(it);
852
+ return this$0.nq(it);
853
853
  };
854
854
  }
855
855
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_2(this$0) {
856
856
  return function (it) {
857
- return this$0.nr(it.bq_1);
857
+ return this$0.or(it.cq_1);
858
858
  };
859
859
  }
860
860
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_3(this$0) {
861
861
  return function (it) {
862
- return this$0.nr(it.qp_1);
862
+ return this$0.or(it.rp_1);
863
863
  };
864
864
  }
865
865
  function JavaEndpointDefinitionEmitter$emitConstructor$lambda_4(this$0) {
866
866
  return function (it) {
867
- return this$0.nr(it.qp_1);
867
+ return this$0.or(it.rp_1);
868
868
  };
869
869
  }
870
870
  function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
@@ -884,22 +884,22 @@ function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0) {
884
884
  }
885
885
  function JavaEndpointDefinitionEmitter$emit$lambda_5(this$0) {
886
886
  return function (it) {
887
- return this$0.mq(it);
887
+ return this$0.nq(it);
888
888
  };
889
889
  }
890
890
  function JavaEndpointDefinitionEmitter$emit$lambda_6(this$0) {
891
891
  return function (it) {
892
- return this$0.nr(it.qp_1);
892
+ return this$0.or(it.rp_1);
893
893
  };
894
894
  }
895
895
  function JavaEndpointDefinitionEmitter$emit$lambda_7(this$0) {
896
896
  return function (it) {
897
- return this$0.mq(it);
897
+ return this$0.nq(it);
898
898
  };
899
899
  }
900
900
  function JavaEndpointDefinitionEmitter$emitDeserializedParams$lambda_2(this$0) {
901
901
  return function (it) {
902
- return Spacer_instance.hs(5) + 'serialization.<' + this$0.nq(it.rp_1) + '>deserializeParam(response.headers().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + it.qp_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList()), ' + emitGetType(this$0, it.rp_1) + ')';
902
+ return Spacer_instance.is(5) + 'serialization.<' + this$0.oq(it.sp_1) + '>deserializeParam(response.headers().entrySet().stream().filter(e -> e.getKey().equalsIgnoreCase("' + it.rp_1.l1() + '")).findFirst().map(java.util.Map.Entry::getValue).orElse(java.util.Collections.emptyList()), ' + emitGetType(this$0, it.sp_1) + ')';
903
903
  };
904
904
  }
905
905
  function JavaEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
@@ -915,7 +915,7 @@ function JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda(this$0) {
915
915
  return function (it) {
916
916
  var tmp;
917
917
  if (it instanceof Literal) {
918
- tmp = '"' + it.xq_1 + '"';
918
+ tmp = '"' + it.yq_1 + '"';
919
919
  } else {
920
920
  if (it instanceof Param) {
921
921
  tmp = emitIdentifier(this$0, it);
@@ -938,7 +938,7 @@ function JavaEndpointDefinitionEmitter$emitRequestFunctions$lambda_1(this$0) {
938
938
  }
939
939
  function JavaEndpointDefinitionEmitter$emitObject$lambda($block) {
940
940
  return function (it) {
941
- return Spacer_instance.hs(2) + $block(it);
941
+ return Spacer_instance.is(2) + $block(it);
942
942
  };
943
943
  }
944
944
  function JavaEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
@@ -958,7 +958,7 @@ function sanitizeNegative($this, _this__u8e3s4) {
958
958
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
959
959
  }
960
960
  function sanitizeEnum($this, _this__u8e3s4) {
961
- return $this.m1x($this.l1x(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
961
+ return $this.n1x($this.m1x(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_')));
962
962
  }
963
963
  function JavaEnumDefinitionEmitter$emit$lambda(this$0) {
964
964
  return function (it) {
@@ -969,7 +969,7 @@ function JavaEnumDefinitionEmitter() {
969
969
  }
970
970
  function Companion() {
971
971
  Companion_instance_2 = this;
972
- this.o1x_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
972
+ this.p1x_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
973
973
  }
974
974
  var Companion_instance_2;
975
975
  function Companion_getInstance_0() {
@@ -993,7 +993,7 @@ function sanitizeSymbol_0($this, _this__u8e3s4) {
993
993
  var item = _iterator__ex2g4s.v();
994
994
  var _unary__edvuaz = index;
995
995
  index = _unary__edvuaz + 1 | 0;
996
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.er(item) : item;
996
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.fr(item) : item;
997
997
  destination.x(tmp$ret$0);
998
998
  }
999
999
  // Inline function 'kotlin.text.filter' call
@@ -1033,14 +1033,14 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
1033
1033
  return tmp;
1034
1034
  }
1035
1035
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1036
- return Companion_getInstance_1().p1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1036
+ return Companion_getInstance_1().q1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1037
1037
  }
1038
1038
  function sanitizeEnum_0($this, _this__u8e3s4) {
1039
1039
  return sanitizeKeywords_0($this, sanitizeFirstIsDigit_0($this, joinToString(split(_this__u8e3s4, ['-', ', ', '.', ' ', '//']), '_')));
1040
1040
  }
1041
1041
  function Companion_0() {
1042
1042
  Companion_instance_3 = this;
1043
- this.p1x_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
1043
+ this.q1x_1 = setOf(['abstract', 'continue', 'for', 'new', 'switch', 'assert', 'default', 'goto', 'package', 'synchronized', 'boolean', 'do', 'if', 'private', 'this', 'break', 'double', 'implements', 'protected', 'throw', 'byte', 'else', 'import', 'public', 'throws', 'case', 'enum', 'instanceof', 'return', 'transient', 'catch', 'extends', 'int', 'short', 'try', 'char', 'final', 'interface', 'static', 'void', 'class', 'finally', 'long', 'strictfp', 'volatile', 'const', 'float', 'native', 'super', 'while', 'true', 'false']);
1044
1044
  }
1045
1045
  var Companion_instance_3;
1046
1046
  function Companion_getInstance_1() {
@@ -1052,10 +1052,10 @@ function JavaIrEmitter$sanitizationConfig$lambda(it) {
1052
1052
  return '_' + it;
1053
1053
  }
1054
1054
  function JavaIrEmitter$sanitizationConfig$lambda_0(name) {
1055
- return name.p1h_1.a1() > 1 ? new Name(listOf(name.t1m())) : name;
1055
+ return name.q1h_1.a1() > 1 ? new Name(listOf(name.u1m())) : name;
1056
1056
  }
1057
1057
  function JavaIrEmitter$sanitizationConfig$lambda_1(name) {
1058
- return new Name(listOf(name.t1m()));
1058
+ return new Name(listOf(name.u1m()));
1059
1059
  }
1060
1060
  function JavaIrEmitter$sanitizationConfig$lambda_2(this$0) {
1061
1061
  return function (it) {
@@ -1066,23 +1066,23 @@ function JavaIrEmitter$sanitizationConfig$lambda_3(stmt, tr) {
1066
1066
  var tmp;
1067
1067
  var tmp_0;
1068
1068
  if (stmt instanceof FunctionCall) {
1069
- tmp_0 = stmt.d1n_1.n1j() === 'validate';
1069
+ tmp_0 = stmt.e1n_1.o1j() === 'validate';
1070
1070
  } else {
1071
1071
  tmp_0 = false;
1072
1072
  }
1073
1073
  if (tmp_0) {
1074
- tmp = transformChildren(stmt.h1n(VOID, emptyList()), tr);
1074
+ tmp = transformChildren(stmt.i1n(VOID, emptyList()), tr);
1075
1075
  } else {
1076
1076
  tmp = transformChildren(stmt, tr);
1077
1077
  }
1078
1078
  return tmp;
1079
1079
  }
1080
1080
  function JavaIrEmitter$emitShared$lambda(name) {
1081
- switch (name.n1j()) {
1081
+ switch (name.o1j()) {
1082
1082
  case 'client':
1083
- return Companion_getInstance().r1h('getClient');
1083
+ return Companion_getInstance().s1h('getClient');
1084
1084
  case 'server':
1085
- return Companion_getInstance().r1h('getServer');
1085
+ return Companion_getInstance().s1h('getServer');
1086
1086
  default:
1087
1087
  return null;
1088
1088
  }
@@ -1092,7 +1092,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1092
1092
  var tmp;
1093
1093
  if (element instanceof File) {
1094
1094
  // Inline function 'kotlin.collections.partition' call
1095
- var this_0 = element.z1n_1;
1095
+ var this_0 = element.a1o_1;
1096
1096
  var first = ArrayList_init_$Create$();
1097
1097
  var second = ArrayList_init_$Create$();
1098
1098
  var _iterator__ex2g4s = this_0.t();
@@ -1107,7 +1107,7 @@ function JavaIrEmitter$emitShared$lambda_0($imports) {
1107
1107
  var _destruct__k2r9zo = new Pair(first, second);
1108
1108
  var packageElements = _destruct__k2r9zo.ve();
1109
1109
  var rest = _destruct__k2r9zo.we();
1110
- tmp = element.c1o(VOID, plus_1(plus_1(packageElements, $imports), rest));
1110
+ tmp = element.d1o(VOID, plus_1(plus_1(packageElements, $imports), rest));
1111
1111
  } else {
1112
1112
  tmp = element;
1113
1113
  }
@@ -1119,11 +1119,11 @@ function JavaIrEmitter$emitShared$lambda_1($clientServer) {
1119
1119
  return function (element, transformer) {
1120
1120
  var tmp;
1121
1121
  if (element instanceof Namespace) {
1122
- var injected = element.e1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? $clientServer : emptyList();
1122
+ var injected = element.f1o_1.equals(Companion_getInstance().s1h('Wirespec')) ? $clientServer : emptyList();
1123
1123
  var tmp_0;
1124
1124
  // Inline function 'kotlin.collections.isNotEmpty' call
1125
1125
  if (!injected.r()) {
1126
- tmp_0 = withElements(element, plus_1(element.a1o(), injected));
1126
+ tmp_0 = withElements(element, plus_1(element.b1o(), injected));
1127
1127
  } else {
1128
1128
  tmp_0 = element;
1129
1129
  }
@@ -1148,7 +1148,7 @@ function JavaIrEmitter$emitGenerator$lambda_1(it) {
1148
1148
  }
1149
1149
  function JavaIrEmitter$emitGenerator$lambda_2(this$0) {
1150
1150
  return function (it) {
1151
- return import_0(this$0.w1w().ds_1 + '.model', it);
1151
+ return import_0(this$0.x1w().es_1 + '.model', it);
1152
1152
  };
1153
1153
  }
1154
1154
  function JavaIrEmitter$emit$lambda(this$0) {
@@ -1160,38 +1160,38 @@ function JavaIrEmitter$emit$lambda_0(it) {
1160
1160
  return listOf(function_0('label', VOID, VOID, JavaIrEmitter$emit$lambda$lambda));
1161
1161
  }
1162
1162
  function JavaIrEmitter$emit$lambda$lambda($this$function) {
1163
- $this$function.f1i(String_instance);
1164
- $this$function.g1i(new VariableReference(Companion_getInstance().r1h('label')));
1163
+ $this$function.g1i(String_instance);
1164
+ $this$function.h1i(new VariableReference(Companion_getInstance().s1h('label')));
1165
1165
  return Unit_instance;
1166
1166
  }
1167
1167
  function JavaIrEmitter(packageName, emitShared) {
1168
1168
  Companion_getInstance_1();
1169
- packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
1169
+ packageName = packageName === VOID ? Companion_instance.ds('community.flock.wirespec.generated') : packageName;
1170
1170
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
1171
- this.q1x_1 = packageName;
1172
- this.r1x_1 = emitShared;
1173
- this.s1x_1 = JavaGenerator_getInstance();
1174
- this.t1x_1 = FileExtension_Java_getInstance();
1175
- this.u1x_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1171
+ this.r1x_1 = packageName;
1172
+ this.s1x_1 = emitShared;
1173
+ this.t1x_1 = JavaGenerator_getInstance();
1174
+ this.u1x_1 = FileExtension_Java_getInstance();
1175
+ this.v1x_1 = listOf(import_0('community.flock.wirespec.java', 'Wirespec'));
1176
1176
  var tmp = this;
1177
- var tmp_0 = Companion_getInstance_1().p1x_1;
1177
+ var tmp_0 = Companion_getInstance_1().q1x_1;
1178
1178
  var tmp_1 = JavaIrEmitter$sanitizationConfig$lambda;
1179
1179
  var tmp_2 = JavaIrEmitter$sanitizationConfig$lambda_0;
1180
1180
  var tmp_3 = JavaIrEmitter$sanitizationConfig$lambda_1;
1181
1181
  var tmp_4 = JavaIrEmitter$sanitizationConfig$lambda_2(this);
1182
- tmp.v1x_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1182
+ tmp.w1x_1 = new SanitizationConfig(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, JavaIrEmitter$sanitizationConfig$lambda_3);
1183
1183
  }
1184
- protoOf(JavaIrEmitter).w1w = function () {
1185
- return this.q1x_1;
1186
- };
1187
- protoOf(JavaIrEmitter).v1v = function () {
1188
- return this.s1x_1;
1184
+ protoOf(JavaIrEmitter).x1w = function () {
1185
+ return this.r1x_1;
1189
1186
  };
1190
- protoOf(JavaIrEmitter).uq = function () {
1187
+ protoOf(JavaIrEmitter).w1v = function () {
1191
1188
  return this.t1x_1;
1192
1189
  };
1193
- protoOf(JavaIrEmitter).z1v = function () {
1194
- var packageName = Companion_instance.cs('community.flock.wirespec.java');
1190
+ protoOf(JavaIrEmitter).vq = function () {
1191
+ return this.u1x_1;
1192
+ };
1193
+ protoOf(JavaIrEmitter).a1w = function () {
1194
+ var packageName = Companion_instance.ds('community.flock.wirespec.java');
1195
1195
  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')]);
1196
1196
  // Inline function 'kotlin.collections.map' call
1197
1197
  var this_0 = convertClientServer(packageName);
@@ -1210,49 +1210,49 @@ protoOf(JavaIrEmitter).z1v = function () {
1210
1210
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1211
1211
  var tmp = scope;
1212
1212
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1213
- var this_2 = scope.i1v_1;
1213
+ var this_2 = scope.j1v_1;
1214
1214
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1215
1215
  // Inline function 'kotlin.apply' call
1216
1216
  var this_3 = new TransformerBuilder();
1217
- this_3.b1j(JavaIrEmitter$emitShared$lambda_0(imports));
1218
- var tmp$ret$5 = this_3.c1j();
1219
- tmp.i1v_1 = transform(this_2, tmp$ret$5);
1217
+ this_3.c1j(JavaIrEmitter$emitShared$lambda_0(imports));
1218
+ var tmp$ret$5 = this_3.d1j();
1219
+ tmp.j1v_1 = transform(this_2, tmp$ret$5);
1220
1220
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1221
1221
  var tmp_0 = scope;
1222
1222
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1223
1223
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1224
- var this_4 = scope.i1v_1;
1224
+ var this_4 = scope.j1v_1;
1225
1225
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1226
1226
  // Inline function 'kotlin.apply' call
1227
1227
  var this_5 = new TransformerBuilder();
1228
- this_5.b1j(JavaIrEmitter$emitShared$lambda_1(clientServer));
1229
- var tmp$ret$10 = this_5.c1j();
1230
- tmp_0.i1v_1 = transform(this_4, tmp$ret$10);
1231
- var tmp_1 = scope.i1v_1;
1228
+ this_5.c1j(JavaIrEmitter$emitShared$lambda_1(clientServer));
1229
+ var tmp$ret$10 = this_5.d1j();
1230
+ tmp_0.j1v_1 = transform(this_4, tmp$ret$10);
1231
+ var tmp_1 = scope.j1v_1;
1232
1232
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1233
1233
  var tmp_2;
1234
- if (this.r1x_1.xo_1) {
1234
+ if (this.s1x_1.xo_1) {
1235
1235
  tmp_2 = wirespecShared;
1236
1236
  } else {
1237
1237
  tmp_2 = null;
1238
1238
  }
1239
1239
  return tmp_2;
1240
1240
  };
1241
- protoOf(JavaIrEmitter).lr = function (definition, module_0, logger) {
1241
+ protoOf(JavaIrEmitter).mr = function (definition, module_0, logger) {
1242
1242
  var file = emit_0.call(this, definition, module_0, logger);
1243
- var tmp = file.c1o(Companion_getInstance().r1h(sanitizeSymbol_0(this, file.y1n_1.s1h())));
1243
+ var tmp = file.d1o(Companion_getInstance().s1h(sanitizeSymbol_0(this, file.z1n_1.t1h())));
1244
1244
  // Inline function 'kotlin.takeIf' call
1245
- var this_0 = this.u1x_1;
1245
+ var this_0 = this.v1x_1;
1246
1246
  var tmp_0;
1247
- if (Companion_instance_1.hr(module_0)) {
1247
+ if (Companion_instance_1.ir(module_0)) {
1248
1248
  tmp_0 = this_0;
1249
1249
  } else {
1250
1250
  tmp_0 = null;
1251
1251
  }
1252
1252
  var tmp$ret$1 = tmp_0;
1253
- return placeInPackage(prependImports(tmp, tmp$ret$1), this.w1w(), definition);
1253
+ return placeInPackage(prependImports(tmp, tmp$ret$1), this.x1w(), definition);
1254
1254
  };
1255
- protoOf(JavaIrEmitter).e1w = function (definition, module_0) {
1255
+ protoOf(JavaIrEmitter).f1w = function (definition, module_0) {
1256
1256
  var tmp;
1257
1257
  if (definition instanceof Type) {
1258
1258
  tmp = convertToGenerator_2(definition, module_0);
@@ -1272,33 +1272,33 @@ protoOf(JavaIrEmitter).e1w = function (definition, module_0) {
1272
1272
  }
1273
1273
  }
1274
1274
  var generatorFile = tmp;
1275
- var sanitized = sanitizeNames(generatorFile, this.v1x_1);
1276
- var generatorOwnName = definition.mr().l1() + 'Generator';
1275
+ var sanitized = sanitizeNames(generatorFile, this.w1x_1);
1276
+ var generatorOwnName = definition.nr().l1() + 'Generator';
1277
1277
  var tmp_0 = asSequence_0(collectCustomTypeNames(sanitized));
1278
1278
  var tmp_1 = filterNot(tmp_0, JavaIrEmitter$emitGenerator$lambda);
1279
1279
  var tmp_2 = filterNot(tmp_1, JavaIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1280
1280
  var tmp_3 = distinct_0(map(tmp_2, JavaIrEmitter$emitGenerator$lambda_1));
1281
1281
  var modelImports = toList(map(tmp_3, JavaIrEmitter$emitGenerator$lambda_2(this)));
1282
- return placeInPackage_0(prependImports(sanitized, plus_1(this.u1x_1, modelImports)), this.w1w(), 'generator');
1282
+ return placeInPackage_0(prependImports(sanitized, plus_1(this.v1x_1, modelImports)), this.x1w(), 'generator');
1283
1283
  };
1284
- protoOf(JavaIrEmitter).kq = function (type, module_0) {
1285
- return sanitizeNames(convertWithValidation(type, module_0), this.v1x_1);
1284
+ protoOf(JavaIrEmitter).lq = function (type, module_0) {
1285
+ return sanitizeNames(convertWithValidation(type, module_0), this.w1x_1);
1286
1286
  };
1287
- protoOf(JavaIrEmitter).zr = function (enum_0, module_0) {
1287
+ protoOf(JavaIrEmitter).as = function (enum_0, module_0) {
1288
1288
  var tmp = convert_0(enum_0);
1289
1289
  var tmp_0 = JavaIrEmitter$emit$lambda(this);
1290
- return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.v1x_1);
1290
+ return sanitizeNames(injectEnumLabelField(tmp, tmp_0, JavaIrEmitter$emit$lambda_0), this.w1x_1);
1291
1291
  };
1292
- protoOf(JavaIrEmitter).pr = function (union) {
1293
- return sanitizeNames(convert_1(union), this.v1x_1);
1292
+ protoOf(JavaIrEmitter).qr = function (union) {
1293
+ return sanitizeNames(convert_1(union), this.w1x_1);
1294
1294
  };
1295
- protoOf(JavaIrEmitter).ur = function (refined) {
1296
- return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.v1x_1);
1295
+ protoOf(JavaIrEmitter).vr = function (refined) {
1296
+ return sanitizeNames(applyRefinedStructShape(convert_2(refined), refined), this.w1x_1);
1297
1297
  };
1298
- protoOf(JavaIrEmitter).as = function (endpoint) {
1299
- var tmp = sanitizeNames(transformTypeDescriptors(injectApiField(injectHandleFunction(convert_3(endpoint), endpoint))), this.v1x_1);
1298
+ protoOf(JavaIrEmitter).bs = function (endpoint) {
1299
+ var tmp = sanitizeNames(transformTypeDescriptors(injectApiField(injectHandleFunction(convert_3(endpoint), endpoint))), this.w1x_1);
1300
1300
  // Inline function 'kotlin.takeIf' call
1301
- var this_0 = buildModelImports(endpoint, this.w1w());
1301
+ var this_0 = buildModelImports(endpoint, this.x1w());
1302
1302
  var tmp_0;
1303
1303
  // Inline function 'kotlin.collections.isNotEmpty' call
1304
1304
  if (!this_0.r()) {
@@ -1309,25 +1309,25 @@ protoOf(JavaIrEmitter).as = function (endpoint) {
1309
1309
  var tmp$ret$2 = tmp_0;
1310
1310
  return prependImports(tmp, tmp$ret$2);
1311
1311
  };
1312
- protoOf(JavaIrEmitter).or = function (channel) {
1312
+ protoOf(JavaIrEmitter).pr = function (channel) {
1313
1313
  var tmp;
1314
- if (channel.cp_1.l1() === channel.dp_1.l1()) {
1315
- tmp = this.w1w().ds_1 + '.model.';
1314
+ if (channel.dp_1.l1() === channel.ep_1.l1()) {
1315
+ tmp = this.x1w().es_1 + '.model.';
1316
1316
  } else {
1317
1317
  tmp = '';
1318
1318
  }
1319
1319
  var fullyQualifiedPrefix = tmp;
1320
- return qualifyChannelReferences(sanitizeNames(convert_4(channel), this.v1x_1), fullyQualifiedPrefix);
1320
+ return qualifyChannelReferences(sanitizeNames(convert_4(channel), this.w1x_1), fullyQualifiedPrefix);
1321
1321
  };
1322
- protoOf(JavaIrEmitter).d1w = function (endpoint) {
1323
- var imports = buildModelImports(endpoint, this.w1w());
1324
- var endpointImport = import_0(this.w1w().ds_1 + '.endpoint', endpoint.up_1.l1());
1325
- var endpointName = endpoint.up_1.l1();
1326
- var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.v1x_1)), endpointName);
1327
- var subPackageName = plus_0(this.w1w(), 'client');
1328
- return new File(Companion_getInstance().r1h(subPackageName.fs() + sanitizeSymbol_0(this, file.y1n_1.s1h())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.ds_1)), this.u1x_1), imports), listOf(endpointImport)), file.z1n_1));
1322
+ protoOf(JavaIrEmitter).e1w = function (endpoint) {
1323
+ var imports = buildModelImports(endpoint, this.x1w());
1324
+ var endpointImport = import_0(this.x1w().es_1 + '.endpoint', endpoint.vp_1.l1());
1325
+ var endpointName = endpoint.vp_1.l1();
1326
+ var file = wrapAsyncReturnInThenApply(transformTypeDescriptors(sanitizeNames(emitEndpointClient.call(this, endpoint), this.w1x_1)), endpointName);
1327
+ var subPackageName = plus_0(this.x1w(), 'client');
1328
+ return new File(Companion_getInstance().s1h(subPackageName.gs() + sanitizeSymbol_0(this, file.z1n_1.t1h())), plus_1(plus_1(plus_1(plus_1(listOf(new Package(subPackageName.es_1)), this.v1x_1), imports), listOf(endpointImport)), file.a1o_1));
1329
1329
  };
1330
- protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1330
+ protoOf(JavaIrEmitter).b1w = function (endpoints, logger) {
1331
1331
  // Inline function 'kotlin.collections.flatMap' call
1332
1332
  // Inline function 'kotlin.collections.flatMapTo' call
1333
1333
  var destination = ArrayList_init_$Create$();
@@ -1343,7 +1343,7 @@ protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1343
1343
  var _iterator__ex2g4s_0 = destination.t();
1344
1344
  while (_iterator__ex2g4s_0.u()) {
1345
1345
  var e = _iterator__ex2g4s_0.v();
1346
- var key = e.bv_1;
1346
+ var key = e.cv_1;
1347
1347
  if (set.x(key)) {
1348
1348
  list_0.x(e);
1349
1349
  }
@@ -1370,7 +1370,7 @@ protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1370
1370
  var _iterator__ex2g4s_2 = endpoints.t();
1371
1371
  while (_iterator__ex2g4s_2.u()) {
1372
1372
  var element_1 = _iterator__ex2g4s_2.v();
1373
- if (element_1.up_1.l1() === element_0.bv_1) {
1373
+ if (element_1.vp_1.l1() === element_0.cv_1) {
1374
1374
  tmp$ret$5 = false;
1375
1375
  break $l$block_0;
1376
1376
  }
@@ -1387,7 +1387,7 @@ protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1387
1387
  var _iterator__ex2g4s_3 = destination_0.t();
1388
1388
  while (_iterator__ex2g4s_3.u()) {
1389
1389
  var item = _iterator__ex2g4s_3.v();
1390
- var tmp$ret$10 = import_0(this.w1w().ds_1 + '.model', item.bv_1);
1390
+ var tmp$ret$10 = import_0(this.x1w().es_1 + '.model', item.cv_1);
1391
1391
  destination_1.x(tmp$ret$10);
1392
1392
  }
1393
1393
  var imports = destination_1;
@@ -1397,7 +1397,7 @@ protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1397
1397
  var _iterator__ex2g4s_4 = endpoints.t();
1398
1398
  while (_iterator__ex2g4s_4.u()) {
1399
1399
  var item_0 = _iterator__ex2g4s_4.v();
1400
- var tmp$ret$13 = import_0(this.w1w().ds_1 + '.endpoint', item_0.up_1.l1());
1400
+ var tmp$ret$13 = import_0(this.x1w().es_1 + '.endpoint', item_0.vp_1.l1());
1401
1401
  destination_2.x(tmp$ret$13);
1402
1402
  }
1403
1403
  var endpointImports = destination_2;
@@ -1407,19 +1407,19 @@ protoOf(JavaIrEmitter).a1w = function (endpoints, logger) {
1407
1407
  var _iterator__ex2g4s_5 = endpoints.t();
1408
1408
  while (_iterator__ex2g4s_5.u()) {
1409
1409
  var item_1 = _iterator__ex2g4s_5.v();
1410
- var tmp$ret$16 = import_0(this.w1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
1410
+ var tmp$ret$16 = import_0(this.x1w().es_1 + '.client', item_1.vp_1.l1() + 'Client');
1411
1411
  destination_3.x(tmp$ret$16);
1412
1412
  }
1413
1413
  var clientImports = destination_3;
1414
1414
  var allImports = plus_1(plus_1(imports, endpointImports), clientImports);
1415
- var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.v1x_1);
1416
- return new File(Companion_getInstance().r1h(this.w1w().fs() + sanitizeSymbol_0(this, file.y1n_1.s1h())), plus_1(plus_1(plus_1(listOf(new Package(this.w1w().ds_1)), this.u1x_1), allImports), file.z1n_1));
1415
+ var file = sanitizeNames(emitClient.call(this, endpoints, logger), this.w1x_1);
1416
+ return new File(Companion_getInstance().s1h(this.x1w().gs() + sanitizeSymbol_0(this, file.z1n_1.t1h())), plus_1(plus_1(plus_1(listOf(new Package(this.x1w().es_1)), this.v1x_1), allImports), file.a1o_1));
1417
1417
  };
1418
1418
  function transformTypeDescriptors(_this__u8e3s4) {
1419
1419
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1420
1420
  var scope = new TransformScope(_this__u8e3s4);
1421
- scope.r1v(transformTypeDescriptors$lambda);
1422
- var tmp = scope.i1v_1;
1421
+ scope.s1v(transformTypeDescriptors$lambda);
1422
+ var tmp = scope.j1v_1;
1423
1423
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1424
1424
  }
1425
1425
  function applyRefinedStructShape(_this__u8e3s4, refined) {
@@ -1428,14 +1428,14 @@ function applyRefinedStructShape(_this__u8e3s4, refined) {
1428
1428
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1429
1429
  var tmp = scope;
1430
1430
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1431
- var this_0 = scope.i1v_1;
1431
+ var this_0 = scope.j1v_1;
1432
1432
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1433
1433
  // Inline function 'kotlin.apply' call
1434
1434
  var this_1 = new TransformerBuilder();
1435
- this_1.b1j(applyRefinedStructShape$lambda(refined));
1436
- var tmp$ret$2 = this_1.c1j();
1437
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1438
- var tmp_0 = scope.i1v_1;
1435
+ this_1.c1j(applyRefinedStructShape$lambda(refined));
1436
+ var tmp$ret$2 = this_1.d1j();
1437
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1438
+ var tmp_0 = scope.j1v_1;
1439
1439
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1440
1440
  }
1441
1441
  function injectApiField(_this__u8e3s4) {
@@ -1445,14 +1445,14 @@ function injectApiField(_this__u8e3s4) {
1445
1445
  var tmp = scope;
1446
1446
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1447
1447
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1448
- var this_0 = scope.i1v_1;
1448
+ var this_0 = scope.j1v_1;
1449
1449
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1450
1450
  // Inline function 'kotlin.apply' call
1451
1451
  var this_1 = new TransformerBuilder();
1452
- this_1.b1j(injectApiField$lambda);
1453
- var tmp$ret$2 = this_1.c1j();
1454
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1455
- var tmp_0 = scope.i1v_1;
1452
+ this_1.c1j(injectApiField$lambda);
1453
+ var tmp$ret$2 = this_1.d1j();
1454
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1455
+ var tmp_0 = scope.j1v_1;
1456
1456
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1457
1457
  }
1458
1458
  function injectHandleFunction(_this__u8e3s4, endpoint) {
@@ -1462,14 +1462,14 @@ function injectHandleFunction(_this__u8e3s4, endpoint) {
1462
1462
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1463
1463
  var tmp = scope;
1464
1464
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1465
- var this_0 = scope.i1v_1;
1465
+ var this_0 = scope.j1v_1;
1466
1466
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1467
1467
  // Inline function 'kotlin.apply' call
1468
1468
  var this_1 = new TransformerBuilder();
1469
- this_1.b1j(injectHandleFunction$lambda(handlersStruct));
1470
- var tmp$ret$2 = this_1.c1j();
1471
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1472
- var tmp_0 = scope.i1v_1;
1469
+ this_1.c1j(injectHandleFunction$lambda(handlersStruct));
1470
+ var tmp$ret$2 = this_1.d1j();
1471
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1472
+ var tmp_0 = scope.j1v_1;
1473
1473
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1474
1474
  }
1475
1475
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -1480,7 +1480,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1480
1480
  var _iterator__ex2g4s = tmp0.t();
1481
1481
  while (_iterator__ex2g4s.u()) {
1482
1482
  var element = _iterator__ex2g4s.v();
1483
- if (!(_this__u8e3s4.mr().l1() === element.bv_1)) {
1483
+ if (!(_this__u8e3s4.nr().l1() === element.cv_1)) {
1484
1484
  destination.x(element);
1485
1485
  }
1486
1486
  }
@@ -1490,7 +1490,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1490
1490
  var _iterator__ex2g4s_0 = destination.t();
1491
1491
  while (_iterator__ex2g4s_0.u()) {
1492
1492
  var item = _iterator__ex2g4s_0.v();
1493
- var tmp$ret$3 = import_0(packageName.ds_1 + '.model', Companion_getInstance().r1h(item.bv_1).s1h());
1493
+ var tmp$ret$3 = import_0(packageName.es_1 + '.model', Companion_getInstance().s1h(item.cv_1).t1h());
1494
1494
  destination_0.x(tmp$ret$3);
1495
1495
  }
1496
1496
  return destination_0;
@@ -1501,14 +1501,14 @@ function qualifyChannelReferences(_this__u8e3s4, fullyQualifiedPrefix) {
1501
1501
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1502
1502
  var tmp = scope;
1503
1503
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1504
- var this_0 = scope.i1v_1;
1504
+ var this_0 = scope.j1v_1;
1505
1505
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1506
1506
  // Inline function 'kotlin.apply' call
1507
1507
  var this_1 = new TransformerBuilder();
1508
- this_1.b1j(qualifyChannelReferences$lambda(fullyQualifiedPrefix));
1509
- var tmp$ret$2 = this_1.c1j();
1510
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1511
- var tmp_0 = scope.i1v_1;
1508
+ this_1.c1j(qualifyChannelReferences$lambda(fullyQualifiedPrefix));
1509
+ var tmp$ret$2 = this_1.d1j();
1510
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1511
+ var tmp_0 = scope.j1v_1;
1512
1512
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1513
1513
  }
1514
1514
  function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
@@ -1517,26 +1517,26 @@ function wrapAsyncReturnInThenApply(_this__u8e3s4, endpointName) {
1517
1517
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1518
1518
  var tmp = scope;
1519
1519
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1520
- var this_0 = scope.i1v_1;
1520
+ var this_0 = scope.j1v_1;
1521
1521
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1522
1522
  // Inline function 'kotlin.apply' call
1523
1523
  var this_1 = new TransformerBuilder();
1524
- this_1.b1j(wrapAsyncReturnInThenApply$lambda(endpointName));
1525
- var tmp$ret$2 = this_1.c1j();
1526
- tmp.i1v_1 = transform(this_0, tmp$ret$2);
1527
- var tmp_0 = scope.i1v_1;
1524
+ this_1.c1j(wrapAsyncReturnInThenApply$lambda(endpointName));
1525
+ var tmp$ret$2 = this_1.d1j();
1526
+ tmp.j1v_1 = transform(this_0, tmp$ret$2);
1527
+ var tmp_0 = scope.j1v_1;
1528
1528
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1529
1529
  }
1530
1530
  function findRoot(_this__u8e3s4) {
1531
1531
  var tmp;
1532
1532
  if (_this__u8e3s4 instanceof Nullable) {
1533
- tmp = findRoot(_this__u8e3s4.j1j_1);
1533
+ tmp = findRoot(_this__u8e3s4.k1j_1);
1534
1534
  } else {
1535
1535
  if (_this__u8e3s4 instanceof Array_0) {
1536
- tmp = findRoot(_this__u8e3s4.k1j_1);
1536
+ tmp = findRoot(_this__u8e3s4.l1j_1);
1537
1537
  } else {
1538
1538
  if (_this__u8e3s4 instanceof Dict_0) {
1539
- tmp = findRoot(_this__u8e3s4.m1n_1);
1539
+ tmp = findRoot(_this__u8e3s4.n1n_1);
1540
1540
  } else {
1541
1541
  tmp = _this__u8e3s4;
1542
1542
  }
@@ -1565,7 +1565,7 @@ function toJavaName(_this__u8e3s4) {
1565
1565
  var tmp;
1566
1566
  if (_this__u8e3s4 instanceof Integer_0) {
1567
1567
  var tmp_0;
1568
- switch (_this__u8e3s4.i1n_1.b3_1) {
1568
+ switch (_this__u8e3s4.j1n_1.b3_1) {
1569
1569
  case 0:
1570
1570
  tmp_0 = 'Integer';
1571
1571
  break;
@@ -1580,7 +1580,7 @@ function toJavaName(_this__u8e3s4) {
1580
1580
  } else {
1581
1581
  if (_this__u8e3s4 instanceof Number_1) {
1582
1582
  var tmp_1;
1583
- switch (_this__u8e3s4.j1n_1.b3_1) {
1583
+ switch (_this__u8e3s4.k1n_1.b3_1) {
1584
1584
  case 0:
1585
1585
  tmp_1 = 'Float';
1586
1586
  break;
@@ -1609,7 +1609,7 @@ function toJavaName(_this__u8e3s4) {
1609
1609
  tmp = 'Void';
1610
1610
  } else {
1611
1611
  if (_this__u8e3s4 instanceof Custom_0) {
1612
- tmp = _this__u8e3s4.l1j_1.s1h();
1612
+ tmp = _this__u8e3s4.m1j_1.t1h();
1613
1613
  } else {
1614
1614
  tmp = 'Object';
1615
1615
  }
@@ -1623,7 +1623,7 @@ function toJavaName(_this__u8e3s4) {
1623
1623
  return tmp;
1624
1624
  }
1625
1625
  function buildHandlersStruct(_this__u8e3s4) {
1626
- var pathTemplate = '/' + joinToString(_this__u8e3s4.wp_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
1626
+ var pathTemplate = '/' + joinToString(_this__u8e3s4.xp_1, '/', VOID, VOID, VOID, VOID, buildHandlersStruct$lambda);
1627
1627
  return struct('Handlers', buildHandlersStruct$lambda_0(pathTemplate, _this__u8e3s4));
1628
1628
  }
1629
1629
  function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
@@ -1635,14 +1635,14 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1635
1635
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matching' call
1636
1636
  var tmp_0 = scope;
1637
1637
  // Inline function 'community.flock.wirespec.ir.core.transformMatching' call
1638
- var this_0 = scope.i1v_1;
1638
+ var this_0 = scope.j1v_1;
1639
1639
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1640
1640
  // Inline function 'kotlin.apply' call
1641
1641
  var this_1 = new TransformerBuilder();
1642
- this_1.o1v(withFullyQualifiedPrefix$lambda(prefix));
1643
- var tmp$ret$3 = this_1.c1j();
1644
- tmp_0.i1v_1 = transform(this_0, tmp$ret$3);
1645
- var tmp_1 = scope.i1v_1;
1642
+ this_1.p1v(withFullyQualifiedPrefix$lambda(prefix));
1643
+ var tmp$ret$3 = this_1.d1j();
1644
+ tmp_0.j1v_1 = transform(this_0, tmp$ret$3);
1645
+ var tmp_1 = scope.j1v_1;
1646
1646
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1647
1647
  } else {
1648
1648
  tmp = _this__u8e3s4;
@@ -1652,8 +1652,8 @@ function withFullyQualifiedPrefix(_this__u8e3s4, prefix) {
1652
1652
  function transformTypeDescriptors$lambda(stmt, tr) {
1653
1653
  var tmp;
1654
1654
  if (stmt instanceof TypeDescriptor) {
1655
- var rootType = findRoot(stmt.o1p_1);
1656
- var containerStr = rawContainerClass(stmt.o1p_1);
1655
+ var rootType = findRoot(stmt.p1p_1);
1656
+ var containerStr = rawContainerClass(stmt.p1p_1);
1657
1657
  var rootStr = toJavaName(rootType) + '.class';
1658
1658
  var tmp_0;
1659
1659
  if (containerStr == null) {
@@ -1672,8 +1672,8 @@ function transformTypeDescriptors$lambda(stmt, tr) {
1672
1672
  }
1673
1673
  function applyRefinedStructShape$lambda$lambda($refined) {
1674
1674
  return function ($this$function) {
1675
- $this$function.f1i(convert_5($refined.tr_1));
1676
- $this$function.g1i(new VariableReference(Companion_getInstance().r1h('value')));
1675
+ $this$function.g1i(convert_5($refined.ur_1));
1676
+ $this$function.h1i(new VariableReference(Companion_getInstance().s1h('value')));
1677
1677
  return Unit_instance;
1678
1678
  };
1679
1679
  }
@@ -1683,18 +1683,18 @@ function applyRefinedStructShape$lambda($refined) {
1683
1683
  if (element instanceof Struct) {
1684
1684
  var tmp_0 = listOf(Custom_init_$Create$('Wirespec.Refined'));
1685
1685
  // Inline function 'kotlin.collections.map' call
1686
- var this_0 = element.n1o_1;
1686
+ var this_0 = element.o1o_1;
1687
1687
  // Inline function 'kotlin.collections.mapTo' call
1688
1688
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1689
1689
  var _iterator__ex2g4s = this_0.t();
1690
1690
  while (_iterator__ex2g4s.u()) {
1691
1691
  var item = _iterator__ex2g4s.v();
1692
1692
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1693
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1693
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1l(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true);
1694
1694
  var tmp$ret$0 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1695
1695
  destination.x(tmp$ret$0);
1696
1696
  }
1697
- var tmp_1 = element.q1o(VOID, VOID, VOID, tmp_0, destination);
1697
+ var tmp_1 = element.r1o(VOID, VOID, VOID, tmp_0, destination);
1698
1698
  tmp = plus_3(tmp_1, function_0('value', VOID, true, applyRefinedStructShape$lambda$lambda($refined)));
1699
1699
  } else {
1700
1700
  tmp = element;
@@ -1710,7 +1710,7 @@ function injectApiField$lambda(element, transformer) {
1710
1710
  var tmp_0;
1711
1711
  // Inline function 'kotlin.collections.isNotEmpty' call
1712
1712
  if (!injected.r()) {
1713
- tmp_0 = withElements(element, plus_1(element.a1o(), injected));
1713
+ tmp_0 = withElements(element, plus_1(element.b1o(), injected));
1714
1714
  } else {
1715
1715
  tmp_0 = element;
1716
1716
  }
@@ -1729,7 +1729,7 @@ function injectHandleFunction$lambda$lambda($handlersStruct) {
1729
1729
  var tmp_0;
1730
1730
  // Inline function 'kotlin.collections.isNotEmpty' call
1731
1731
  if (!injected.r()) {
1732
- tmp_0 = withElements(element, plus_1(element.a1o(), injected));
1732
+ tmp_0 = withElements(element, plus_1(element.b1o(), injected));
1733
1733
  } else {
1734
1734
  tmp_0 = element;
1735
1735
  }
@@ -1746,21 +1746,21 @@ function injectHandleFunction$lambda($handlersStruct) {
1746
1746
  var tmp;
1747
1747
  if (element instanceof Interface) {
1748
1748
  var tmp_0;
1749
- if (element.s1o_1.equals(Companion_getInstance().r1h('Handler'))) {
1749
+ if (element.t1o_1.equals(Companion_getInstance().s1h('Handler'))) {
1750
1750
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1751
1751
  var scope = new TransformScope(element);
1752
1752
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1753
1753
  var tmp_1 = scope;
1754
1754
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1755
1755
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1756
- var this_0 = scope.i1v_1;
1756
+ var this_0 = scope.j1v_1;
1757
1757
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1758
1758
  // Inline function 'kotlin.apply' call
1759
1759
  var this_1 = new TransformerBuilder();
1760
- this_1.b1j(injectHandleFunction$lambda$lambda($handlersStruct));
1761
- var tmp$ret$2 = this_1.c1j();
1762
- tmp_1.i1v_1 = transform(this_0, tmp$ret$2);
1763
- var tmp_2 = scope.i1v_1;
1760
+ this_1.c1j(injectHandleFunction$lambda$lambda($handlersStruct));
1761
+ var tmp$ret$2 = this_1.d1j();
1762
+ tmp_1.j1v_1 = transform(this_0, tmp$ret$2);
1763
+ var tmp_2 = scope.j1v_1;
1764
1764
  tmp_0 = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1765
1765
  } else {
1766
1766
  tmp_0 = element;
@@ -1791,11 +1791,11 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1791
1791
  if (element instanceof Function) {
1792
1792
  var tmp$ret$0;
1793
1793
  $l$block_1: {
1794
- if (!element.m1l_1 || element.l1l_1.a1() < 2) {
1794
+ if (!element.n1l_1 || element.m1l_1.a1() < 2) {
1795
1795
  tmp$ret$0 = element;
1796
1796
  break $l$block_1;
1797
1797
  }
1798
- var tmp_0 = element.l1l_1.b1(element.l1l_1.a1() - 2 | 0);
1798
+ var tmp_0 = element.m1l_1.b1(element.m1l_1.a1() - 2 | 0);
1799
1799
  var tmp0_elvis_lhs = tmp_0 instanceof Assignment ? tmp_0 : null;
1800
1800
  var tmp_1;
1801
1801
  if (tmp0_elvis_lhs == null) {
@@ -1805,16 +1805,16 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1805
1805
  tmp_1 = tmp0_elvis_lhs;
1806
1806
  }
1807
1807
  var transportAssign = tmp_1;
1808
- var tmp_2 = last(element.l1l_1);
1808
+ var tmp_2 = last(element.m1l_1);
1809
1809
  if (!(tmp_2 instanceof ReturnStatement)) {
1810
1810
  tmp$ret$0 = element;
1811
1811
  break $l$block_1;
1812
1812
  }
1813
- var tmp_3 = dropLast(element.l1l_1, 2);
1814
- var tmp1_name = Companion_getInstance().r1h('thenApply');
1815
- var tmp2_receiver = transportAssign.r1p_1;
1816
- var tmp3_arguments = mapOf(to(Companion_getInstance().r1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1817
- tmp$ret$0 = element.p1l(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1813
+ var tmp_3 = dropLast(element.m1l_1, 2);
1814
+ var tmp1_name = Companion_getInstance().s1h('thenApply');
1815
+ var tmp2_receiver = transportAssign.s1p_1;
1816
+ var tmp3_arguments = mapOf(to(Companion_getInstance().s1h('mapper'), new RawExpression('rawResponse -> ' + $endpointName + '.fromRawResponse(serialization(), rawResponse)')));
1817
+ tmp$ret$0 = element.q1l(VOID, VOID, VOID, VOID, plus_2(tmp_3, new ReturnStatement(new FunctionCall(tmp2_receiver, VOID, tmp1_name, tmp3_arguments))));
1818
1818
  }
1819
1819
  tmp = tmp$ret$0;
1820
1820
  } else {
@@ -1827,10 +1827,10 @@ function wrapAsyncReturnInThenApply$lambda($endpointName) {
1827
1827
  function buildHandlersStruct$lambda(it) {
1828
1828
  var tmp;
1829
1829
  if (it instanceof Literal) {
1830
- tmp = it.xq_1;
1830
+ tmp = it.yq_1;
1831
1831
  } else {
1832
1832
  if (it instanceof Param) {
1833
- tmp = '{' + it.bq_1.l1() + '}';
1833
+ tmp = '{' + it.cq_1.l1() + '}';
1834
1834
  } else {
1835
1835
  noWhenBranchMatchedException();
1836
1836
  }
@@ -1839,38 +1839,38 @@ function buildHandlersStruct$lambda(it) {
1839
1839
  }
1840
1840
  function buildHandlersStruct$lambda$lambda($pathTemplate) {
1841
1841
  return function ($this$function) {
1842
- $this$function.f1i(String_instance);
1843
- $this$function.g1i($this$function.o1u($pathTemplate));
1842
+ $this$function.g1i(String_instance);
1843
+ $this$function.h1i($this$function.p1u($pathTemplate));
1844
1844
  return Unit_instance;
1845
1845
  };
1846
1846
  }
1847
1847
  function buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct) {
1848
1848
  return function ($this$function) {
1849
- $this$function.f1i(String_instance);
1850
- $this$function.g1i($this$function.o1u($this_buildHandlersStruct.vp_1.a3_1));
1849
+ $this$function.g1i(String_instance);
1850
+ $this$function.h1i($this$function.p1u($this_buildHandlersStruct.wp_1.a3_1));
1851
1851
  return Unit_instance;
1852
1852
  };
1853
1853
  }
1854
1854
  function buildHandlersStruct$lambda$lambda_1($this$function) {
1855
- $this$function.f1i($this$function.t1h('Wirespec.ServerEdge', [$this$function.t1h('Request', []), $this$function.t1h('Response', [Wildcard_instance])]));
1856
- $this$function.c1i('serialization', $this$function.t1h('Wirespec.Serialization', []));
1857
- $this$function.g1i(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}'));
1855
+ $this$function.g1i($this$function.u1h('Wirespec.ServerEdge', [$this$function.u1h('Request', []), $this$function.u1h('Response', [Wildcard_instance])]));
1856
+ $this$function.d1i('serialization', $this$function.u1h('Wirespec.Serialization', []));
1857
+ $this$function.h1i(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}'));
1858
1858
  return Unit_instance;
1859
1859
  }
1860
1860
  function buildHandlersStruct$lambda$lambda_2($this$function) {
1861
- $this$function.f1i($this$function.t1h('Wirespec.ClientEdge', [$this$function.t1h('Request', []), $this$function.t1h('Response', [Wildcard_instance])]));
1862
- $this$function.c1i('serialization', $this$function.t1h('Wirespec.Serialization', []));
1863
- $this$function.g1i(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}'));
1861
+ $this$function.g1i($this$function.u1h('Wirespec.ClientEdge', [$this$function.u1h('Request', []), $this$function.u1h('Response', [Wildcard_instance])]));
1862
+ $this$function.d1i('serialization', $this$function.u1h('Wirespec.Serialization', []));
1863
+ $this$function.h1i(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}'));
1864
1864
  return Unit_instance;
1865
1865
  }
1866
1866
  function buildHandlersStruct$lambda_0($pathTemplate, $this_buildHandlersStruct) {
1867
1867
  return function ($this$struct) {
1868
- $this$struct.y1k($this$struct.t1h('Wirespec.Server', [$this$struct.t1h('Request', []), $this$struct.t1h('Response', [Wildcard_instance])]));
1869
- $this$struct.y1k($this$struct.t1h('Wirespec.Client', [$this$struct.t1h('Request', []), $this$struct.t1h('Response', [Wildcard_instance])]));
1870
- $this$struct.h1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1871
- $this$struct.h1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1872
- $this$struct.h1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1873
- $this$struct.h1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1868
+ $this$struct.z1k($this$struct.u1h('Wirespec.Server', [$this$struct.u1h('Request', []), $this$struct.u1h('Response', [Wildcard_instance])]));
1869
+ $this$struct.z1k($this$struct.u1h('Wirespec.Client', [$this$struct.u1h('Request', []), $this$struct.u1h('Response', [Wildcard_instance])]));
1870
+ $this$struct.i1i('getPathTemplate', VOID, true, buildHandlersStruct$lambda$lambda($pathTemplate));
1871
+ $this$struct.i1i('getMethod', VOID, true, buildHandlersStruct$lambda$lambda_0($this_buildHandlersStruct));
1872
+ $this$struct.i1i('getServer', VOID, true, buildHandlersStruct$lambda$lambda_1);
1873
+ $this$struct.i1i('getClient', VOID, true, buildHandlersStruct$lambda$lambda_2);
1874
1874
  return Unit_instance;
1875
1875
  };
1876
1876
  }
@@ -1878,7 +1878,7 @@ function withFullyQualifiedPrefix$lambda($prefix) {
1878
1878
  return function (type, transformer) {
1879
1879
  var tmp;
1880
1880
  if (type instanceof Custom_0) {
1881
- tmp = type.p1n(new Name(listOf($prefix + type.l1j_1.s1h())));
1881
+ tmp = type.q1n(new Name(listOf($prefix + type.m1j_1.t1h())));
1882
1882
  } else {
1883
1883
  tmp = type;
1884
1884
  }
@@ -1890,8 +1890,8 @@ function JavaRefinedTypeDefinitionEmitter() {
1890
1890
  }
1891
1891
  function JavaShared() {
1892
1892
  JavaShared_instance = this;
1893
- this.g1x_1 = 'community.flock.wirespec.java';
1894
- this.h1x_1 = trimMargin('\n |package ' + this.g1x_1 + ';\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |import java.util.List;\n |import java.util.Map;\n |import java.util.Optional;\n |\n |public interface Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { String label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\n |' + Spacer_instance.toString() + 'interface Path {}\n |' + Spacer_instance.toString() + 'interface Queries {}\n |' + Spacer_instance.toString() + 'interface Headers {}\n |' + Spacer_instance.toString() + 'interface Handler {}\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.hs(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.hs(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.hs(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.hs(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.hs(2) + 'String getPathTemplate();\n |' + Spacer_instance.hs(2) + 'String getMethod();\n |' + Spacer_instance.hs(2) + 'ClientEdge<Req, Res> getClient(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.hs(2) + 'String getPathTemplate();\n |' + Spacer_instance.hs(2) + 'String getMethod();\n |' + Spacer_instance.hs(2) + 'ServerEdge<Req, Res> getServer(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T> { Path path(); Method method(); Queries queries(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { Integer status(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Serialization extends Serializer, Deserializer {}\n |' + Spacer_instance.toString() + 'interface Serializer extends BodySerializer, PathSerializer, ParamSerializer {}\n |' + Spacer_instance.toString() + 'interface Deserializer extends BodyDeserializer, PathDeserializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerialization extends BodySerializer, BodyDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerializer { <T> byte[] serializeBody(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { <T> T deserializeBody(byte[] raw, Type type); }\n |' + Spacer_instance.toString() + 'interface PathSerialization extends PathSerializer, PathDeserializer {}\n |' + Spacer_instance.toString() + 'interface PathSerializer { <T> String serializePath(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { <T> T deserializePath(String raw, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.hs(2) + 'if(rawType != null) {\n |' + Spacer_instance.hs(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.hs(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.hs(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.hs(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.hs(3) + '};\n |' + Spacer_instance.hs(2) + '}\n |' + Spacer_instance.hs(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1893
+ this.h1x_1 = 'community.flock.wirespec.java';
1894
+ this.i1x_1 = trimMargin('\n |package ' + this.h1x_1 + ';\n |\n |import java.lang.reflect.Type;\n |import java.lang.reflect.ParameterizedType;\n |import java.util.List;\n |import java.util.Map;\n |import java.util.Optional;\n |\n |public interface Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { String label(); }\n |' + Spacer_instance.toString() + 'interface Endpoint {}\n |' + Spacer_instance.toString() + 'interface Refined<T> { T value(); }\n |' + Spacer_instance.toString() + 'interface Path {}\n |' + Spacer_instance.toString() + 'interface Queries {}\n |' + Spacer_instance.toString() + 'interface Headers {}\n |' + Spacer_instance.toString() + 'interface Handler {}\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.is(2) + 'Req from(RawRequest request);\n |' + Spacer_instance.is(2) + 'RawResponse to(Res response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.is(2) + 'RawRequest to(Req request);\n |' + Spacer_instance.is(2) + 'Res from(RawResponse response);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.is(2) + 'String getPathTemplate();\n |' + Spacer_instance.is(2) + 'String getMethod();\n |' + Spacer_instance.is(2) + 'ClientEdge<Req, Res> getClient(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req extends Request<?>, Res extends Response<?>> {\n |' + Spacer_instance.is(2) + 'String getPathTemplate();\n |' + Spacer_instance.is(2) + 'String getMethod();\n |' + Spacer_instance.is(2) + 'ServerEdge<Req, Res> getServer(Serialization serialization);\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T> { Path path(); Method method(); Queries queries(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Response<T> { Integer status(); Headers headers(); T body(); interface Headers extends Wirespec.Headers {} }\n |' + Spacer_instance.toString() + 'interface Serialization extends Serializer, Deserializer {}\n |' + Spacer_instance.toString() + 'interface Serializer extends BodySerializer, PathSerializer, ParamSerializer {}\n |' + Spacer_instance.toString() + 'interface Deserializer extends BodyDeserializer, PathDeserializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerialization extends BodySerializer, BodyDeserializer {}\n |' + Spacer_instance.toString() + 'interface BodySerializer { <T> byte[] serializeBody(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { <T> T deserializeBody(byte[] raw, Type type); }\n |' + Spacer_instance.toString() + 'interface PathSerialization extends PathSerializer, PathDeserializer {}\n |' + Spacer_instance.toString() + 'interface PathSerializer { <T> String serializePath(T t, Type type); }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { <T> T deserializePath(String raw, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamSerialization extends ParamSerializer, ParamDeserializer {}\n |' + Spacer_instance.toString() + 'interface ParamSerializer { <T> List<String> serializeParam(T value, Type type); }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { <T> T deserializeParam(List<String> values, Type type); }\n |' + Spacer_instance.toString() + 'record RawRequest(String method, List<String> path, Map<String, List<String>> queries, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'record RawResponse(int statusCode, Map<String, List<String>> headers, Optional<byte[]> body) {}\n |' + Spacer_instance.toString() + 'static Type getType(final Class<?> actualTypeArguments, final Class<?> rawType) {\n |' + Spacer_instance.is(2) + 'if(rawType != null) {\n |' + Spacer_instance.is(3) + 'return new ParameterizedType() {\n |' + Spacer_instance.is(4) + 'public Type getRawType() { return rawType; }\n |' + Spacer_instance.is(4) + 'public Type[] getActualTypeArguments() { return new Class<?>[]{actualTypeArguments}; }\n |' + Spacer_instance.is(4) + 'public Type getOwnerType() { return null; }\n |' + Spacer_instance.is(3) + '};\n |' + Spacer_instance.is(2) + '}\n |' + Spacer_instance.is(2) + 'else { return actualTypeArguments; }\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
1895
1895
  }
1896
1896
  protoOf(JavaShared).toString = function () {
1897
1897
  return 'JavaShared';
@@ -1915,10 +1915,10 @@ function JavaShared_getInstance() {
1915
1915
  function emitType($this, _this__u8e3s4) {
1916
1916
  var tmp;
1917
1917
  if (_this__u8e3s4 instanceof Dict) {
1918
- tmp = 'java.util.Map<String, ' + $this.nq(_this__u8e3s4.so_1) + '>';
1918
+ tmp = 'java.util.Map<String, ' + $this.oq(_this__u8e3s4.so_1) + '>';
1919
1919
  } else {
1920
1920
  if (_this__u8e3s4 instanceof Iterable) {
1921
- tmp = 'java.util.List<' + $this.nq(_this__u8e3s4.po_1) + '>';
1921
+ tmp = 'java.util.List<' + $this.oq(_this__u8e3s4.po_1) + '>';
1922
1922
  } else {
1923
1923
  if (_this__u8e3s4 instanceof Unit) {
1924
1924
  tmp = 'void';
@@ -1927,7 +1927,7 @@ function emitType($this, _this__u8e3s4) {
1927
1927
  tmp = 'Object';
1928
1928
  } else {
1929
1929
  if (_this__u8e3s4 instanceof Custom) {
1930
- tmp = _this__u8e3s4.bv_1;
1930
+ tmp = _this__u8e3s4.cv_1;
1931
1931
  } else {
1932
1932
  if (_this__u8e3s4 instanceof Primitive) {
1933
1933
  tmp = emit_18($this, _this__u8e3s4);
@@ -1942,14 +1942,14 @@ function emitType($this, _this__u8e3s4) {
1942
1942
  return tmp;
1943
1943
  }
1944
1944
  function emit_18($this, _this__u8e3s4) {
1945
- var t = _this__u8e3s4.fv_1;
1945
+ var t = _this__u8e3s4.gv_1;
1946
1946
  var tmp;
1947
1947
  if (t instanceof String_0) {
1948
1948
  tmp = 'String';
1949
1949
  } else {
1950
1950
  if (t instanceof Integer) {
1951
1951
  var tmp_0;
1952
- switch (t.ju_1.b3_1) {
1952
+ switch (t.ku_1.b3_1) {
1953
1953
  case 0:
1954
1954
  tmp_0 = 'Integer';
1955
1955
  break;
@@ -1964,7 +1964,7 @@ function emit_18($this, _this__u8e3s4) {
1964
1964
  } else {
1965
1965
  if (t instanceof Number_0) {
1966
1966
  var tmp_1;
1967
- switch (t.mu_1.b3_1) {
1967
+ switch (t.nu_1.b3_1) {
1968
1968
  case 0:
1969
1969
  tmp_1 = 'Float';
1970
1970
  break;
@@ -1993,12 +1993,12 @@ function emit_18($this, _this__u8e3s4) {
1993
1993
  }
1994
1994
  function JavaTypeDefinitionEmitter$emit$lambda(this$0) {
1995
1995
  return function (it) {
1996
- return this$0.nq(it);
1996
+ return this$0.oq(it);
1997
1997
  };
1998
1998
  }
1999
1999
  function JavaTypeDefinitionEmitter$emit$lambda_0(this$0) {
2000
2000
  return function (it) {
2001
- return Spacer_instance.toString() + this$0.mq(it) + ',';
2001
+ return Spacer_instance.toString() + this$0.nq(it) + ',';
2002
2002
  };
2003
2003
  }
2004
2004
  function JavaTypeDefinitionEmitter() {
@@ -2009,30 +2009,30 @@ function JavaUnionDefinitionEmitter$emit$lambda(it) {
2009
2009
  function JavaUnionDefinitionEmitter() {
2010
2010
  }
2011
2011
  //region block: post-declaration
2012
- protoOf(JavaEmitter).nr = emit_10;
2013
- protoOf(JavaEmitter).kq = emit_3;
2014
- protoOf(JavaEmitter).lq = emit_4;
2015
- protoOf(JavaEmitter).mq = emit_5;
2016
- protoOf(JavaEmitter).nq = emit_6;
2017
- protoOf(JavaEmitter).oq = emit_7;
2018
- protoOf(JavaEmitter).as = emit_12;
2019
- protoOf(JavaEmitter).j1x = emit_13;
2020
- protoOf(JavaEmitter).k1x = emit_14;
2021
- protoOf(JavaEmitter).or = emit_8;
2022
- protoOf(JavaEmitter).zr = emit_15;
2023
- protoOf(JavaEmitter).pr = emit_11;
2024
- protoOf(JavaEmitter).ur = emit_9;
2025
- protoOf(JavaEmitter).i1x = sanitizeSymbol;
2026
- protoOf(JavaEmitter).l1x = sanitizeFirstIsDigit;
2027
- protoOf(JavaEmitter).m1x = sanitizeKeywords;
2028
- protoOf(JavaEmitter).y1w = emitRoot;
2029
- protoOf(JavaEmitter).x1w = emitRoot$default;
2030
- protoOf(JavaEmitter).n1x = emitHandleFunction;
2031
- protoOf(JavaEmitter).bs = emitValidator;
2032
- protoOf(JavaIrEmitter).x1v = get_extensions;
2012
+ protoOf(JavaEmitter).or = emit_9;
2013
+ protoOf(JavaEmitter).lq = emit_3;
2014
+ protoOf(JavaEmitter).mq = emit_4;
2015
+ protoOf(JavaEmitter).nq = emit_5;
2016
+ protoOf(JavaEmitter).oq = emit_6;
2017
+ protoOf(JavaEmitter).pq = emit_7;
2018
+ protoOf(JavaEmitter).bs = emit_11;
2019
+ protoOf(JavaEmitter).k1x = emit_12;
2020
+ protoOf(JavaEmitter).l1x = emit_13;
2021
+ protoOf(JavaEmitter).pr = emit_8;
2022
+ protoOf(JavaEmitter).as = emit_14;
2023
+ protoOf(JavaEmitter).qr = emit_10;
2024
+ protoOf(JavaEmitter).vr = emit_15;
2025
+ protoOf(JavaEmitter).j1x = sanitizeSymbol;
2026
+ protoOf(JavaEmitter).m1x = sanitizeFirstIsDigit;
2027
+ protoOf(JavaEmitter).n1x = sanitizeKeywords;
2028
+ protoOf(JavaEmitter).z1w = emitRoot;
2029
+ protoOf(JavaEmitter).y1w = emitRoot$default;
2030
+ protoOf(JavaEmitter).o1x = emitHandleFunction;
2031
+ protoOf(JavaEmitter).cs = emitValidator;
2032
+ protoOf(JavaIrEmitter).y1v = get_extensions;
2033
2033
  protoOf(JavaIrEmitter).eo = emit_1;
2034
- protoOf(JavaIrEmitter).y1v = emit_2;
2035
- protoOf(JavaIrEmitter).c1w = beforeGenerate;
2034
+ protoOf(JavaIrEmitter).z1v = emit_2;
2035
+ protoOf(JavaIrEmitter).d1w = beforeGenerate;
2036
2036
  //endregion
2037
2037
  //region block: exports
2038
2038
  export {