@flock/wirespec 0.19.5 → 0.19.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/clikt-clikt-mordant.mjs +38 -38
  2. package/colormath-root-colormath.mjs +426 -426
  3. package/kotlin-kotlin-stdlib.mjs +83 -82
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +9624 -9624
  6. package/kotlin-rgxgen.mjs +1757 -1757
  7. package/kotlinx-io-kotlinx-io-core.mjs +403 -403
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1729 -1729
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1454 -1454
  10. package/mordant-mordant.mjs +1157 -1157
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-core.mjs +13 -1
  13. package/wirespec-src-compiler-core.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-java.mjs +213 -242
  15. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-kotlin.mjs +133 -133
  17. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-python.mjs +189 -181
  19. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-rust.mjs +249 -249
  21. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-scala.mjs +101 -101
  23. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-typescript.mjs +165 -165
  25. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-wirespec.mjs +9 -9
  27. package/wirespec-src-compiler-ir.mjs +2546 -2422
  28. package/wirespec-src-compiler-ir.mjs.map +1 -1
  29. package/wirespec-src-converter-avro.mjs +472 -472
  30. package/wirespec-src-converter-openapi.mjs +335 -335
  31. package/wirespec-src-ide-lsp.mjs +1346 -1346
  32. package/wirespec-src-plugin-arguments.mjs +128 -128
  33. package/wirespec-src-plugin-cli.mjs +84 -84
  34. package/wirespec-src-plugin-npm.mjs +18 -18
  35. package/wirespec-src-tools-generator.mjs +2 -2
@@ -199,7 +199,7 @@ function emit_2(identifier) {
199
199
  }
200
200
  initMetadataForInterface(TypeScriptIdentifierEmitter, 'TypeScriptIdentifierEmitter');
201
201
  function sanitizeSymbol(_this__u8e3s4) {
202
- return this.k1x(_this__u8e3s4.l1());
202
+ return this.i1x(_this__u8e3s4.l1());
203
203
  }
204
204
  function sanitizeSymbol_0(_this__u8e3s4) {
205
205
  var tmp = asSequence_0(_this__u8e3s4);
@@ -228,7 +228,7 @@ function emit_3(type, module_0) {
228
228
  destination.x(tmp$ret$2);
229
229
  }
230
230
  var tmp = destination;
231
- return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.u20(type.lp_1) + ' = {\n |' + this.lq(type.mp_1) + '\n |}\n |\n ');
231
+ return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.s20(type.lp_1) + ' = {\n |' + this.lq(type.mp_1) + '\n |}\n |\n ');
232
232
  }
233
233
  function emit_4(_this__u8e3s4) {
234
234
  var tmp;
@@ -245,10 +245,10 @@ function emit_4(_this__u8e3s4) {
245
245
  tmp = 'any';
246
246
  } else {
247
247
  if (_this__u8e3s4 instanceof Custom) {
248
- tmp = this.k1x(_this__u8e3s4.bv_1);
248
+ tmp = this.i1x(_this__u8e3s4.bv_1);
249
249
  } else {
250
250
  if (_this__u8e3s4 instanceof Primitive) {
251
- tmp = this.v20(_this__u8e3s4);
251
+ tmp = this.t20(_this__u8e3s4);
252
252
  } else {
253
253
  noWhenBranchMatchedException();
254
254
  }
@@ -379,12 +379,7 @@ function emitClient(ast) {
379
379
  return new Emitted(tmp, trimMargin('\n |import {Wirespec} from "./Wirespec"\n |\n |' + tmp_1 + '\n |\n |' + tmp_3 + '\n |\n |type RawHandler = (req: Wirespec.RawRequest) => Promise<Wirespec.RawResponse>\n |\n |export const client = (serialization: Wirespec.Serialization, handler: RawHandler) => ({\n |' + spacer(joinToString(tmp_4, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_1(this)), 1) + '\n |})\n |\n '));
380
380
  }
381
381
  initMetadataForInterface(TypeScriptClientEmitter, 'TypeScriptClientEmitter', VOID, VOID, [ClientEmitter, TypeScriptTypeDefinitionEmitter]);
382
- function emit_8(enum_0, module_0) {
383
- var tmp = this.u20(enum_0.xr_1);
384
- return 'export type ' + tmp + ' = ' + joinToString(enum_0.yr_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
385
- }
386
- initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
387
- function emit_9(endpoint) {
382
+ function emit_8(endpoint) {
388
383
  // Inline function 'kotlin.collections.distinctBy' call
389
384
  var this_0 = importReferences(endpoint);
390
385
  var set = HashSet_init_$Create$();
@@ -408,7 +403,7 @@ function emit_9(endpoint) {
408
403
  }
409
404
  var tmp = destination;
410
405
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
411
- var tmp_1 = this.u20(endpoint.up_1);
406
+ var tmp_1 = this.s20(endpoint.up_1);
412
407
  var tmp_2 = get_pathParams(endpoint);
413
408
  var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
414
409
  var tmp_4 = emitType(this, endpoint.xp_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
@@ -430,14 +425,19 @@ function emit_9(endpoint) {
430
425
  var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.hs(1));
431
426
  var tmp_21 = Spacer_instance.toString();
432
427
  var tmp_22 = Spacer_instance.hs(2);
433
- var tmp_23 = Companion_instance_0.fr(this.u20(endpoint.up_1));
428
+ var tmp_23 = Companion_instance_0.fr(this.s20(endpoint.up_1));
434
429
  var tmp_24 = Spacer_instance.hs(2);
435
430
  var tmp_25 = Spacer_instance.hs(2);
436
431
  return trimMargin('\n |' + tmp_0 + '\n |export namespace ' + tmp_1 + ' {\n |' + tmp_3 + '\n |' + tmp_4 + '\n |' + tmp_5 + '\n |' + tmp_6 + '\n |' + tmp_8 + '\n |' + tmp_9 + 'export type Response = ' + tmp_11 + '\n |' + tmp_12 + '\n |' + tmp_14 + '\n |' + tmp_15 + 'export type Handler = {\n |' + tmp_16 + tmp_17 + '\n |' + tmp_18 + '}\n |' + tmp_19 + '\n |' + tmp_20 + '\n |' + tmp_21 + 'export const api = {\n |' + tmp_22 + 'name: "' + tmp_23 + '",\n |' + tmp_24 + 'method: "' + endpoint.vp_1.a3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.hs(2) + 'server,\n |' + Spacer_instance.hs(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
437
432
  }
438
433
  initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
434
+ function emit_9(enum_0, module_0) {
435
+ var tmp = this.s20(enum_0.xr_1);
436
+ return 'export type ' + tmp + ' = ' + joinToString(enum_0.yr_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
437
+ }
438
+ initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
439
439
  function emit_10(refined) {
440
- return trimMargin('\n |export type ' + this.u20(refined.sr_1) + ' = ' + this.nq(refined.tr_1) + ';\n |export const validate' + refined.sr_1.l1() + ' = (value: ' + this.nq(refined.tr_1) + '): value is ' + this.u20(refined.sr_1) + ' => {\n |' + this.bs(refined) + '\n |}\n |\n ');
440
+ return trimMargin('\n |export type ' + this.s20(refined.sr_1) + ' = ' + this.nq(refined.tr_1) + ';\n |export const validate' + refined.sr_1.l1() + ' = (value: ' + this.nq(refined.tr_1) + '): value is ' + this.s20(refined.sr_1) + ' => {\n |' + this.bs(refined) + '\n |}\n |\n ');
441
441
  }
442
442
  function emitValidator(_this__u8e3s4) {
443
443
  var defaultReturn = Spacer_instance.toString() + 'return true;';
@@ -480,7 +480,7 @@ function emitValidator(_this__u8e3s4) {
480
480
  return tmp;
481
481
  }
482
482
  initMetadataForInterface(TypeScriptRefinedTypeDefinitionEmitter, 'TypeScriptRefinedTypeDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
483
- initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptIdentifierEmitter, TypeScriptClientEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptTypeDefinitionEmitter]);
483
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptClientEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter]);
484
484
  initMetadataForClass(EndpointParam, 'EndpointParam');
485
485
  initMetadataForCompanion(Companion);
486
486
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
@@ -576,25 +576,25 @@ function TypeScriptEmitter$emit$lambda_1(this$0) {
576
576
  }
577
577
  function TypeScriptEmitter() {
578
578
  LanguageEmitter.call(this);
579
- this.w20_1 = FileExtension_TypeScript_getInstance();
580
- this.x20_1 = TypeScriptShared_getInstance();
581
- this.y20_1 = '//';
579
+ this.u20_1 = FileExtension_TypeScript_getInstance();
580
+ this.v20_1 = TypeScriptShared_getInstance();
581
+ this.w20_1 = '//';
582
582
  }
583
583
  protoOf(TypeScriptEmitter).uq = function () {
584
- return this.w20_1;
584
+ return this.u20_1;
585
585
  };
586
- protoOf(TypeScriptEmitter).h1x = function () {
587
- return this.x20_1;
586
+ protoOf(TypeScriptEmitter).f1x = function () {
587
+ return this.v20_1;
588
588
  };
589
589
  protoOf(TypeScriptEmitter).vq = function () {
590
- return this.y20_1;
590
+ return this.w20_1;
591
591
  };
592
592
  protoOf(TypeScriptEmitter).eo = function (ast, logger) {
593
593
  // Inline function 'kotlin.run' call
594
594
  var $this$run = protoOf(LanguageEmitter).eo.call(this, ast, logger);
595
595
  var tmp;
596
596
  if (hasEndpoints(ast)) {
597
- tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.t20(ast));
597
+ tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.r20(ast));
598
598
  } else {
599
599
  tmp = $this$run;
600
600
  }
@@ -653,13 +653,13 @@ protoOf(TypeScriptEmitter).eo = function (ast, logger) {
653
653
  protoOf(TypeScriptEmitter).kr = function (module_0, logger) {
654
654
  // Inline function 'kotlin.let' call
655
655
  var it = protoOf(LanguageEmitter).kr.call(this, module_0, logger);
656
- return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.h1x().a21_1));
656
+ return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.f1x().y20_1));
657
657
  };
658
658
  protoOf(TypeScriptEmitter).lr = function (definition, module_0, logger) {
659
659
  // Inline function 'kotlin.let' call
660
660
  var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
661
661
  var subPackageName = plus(Companion_instance.cs(''), definition);
662
- return new Emitted(subPackageName.fs() + this.k1x(it.yo_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.zo_1 + '\n '));
662
+ return new Emitted(subPackageName.fs() + this.i1x(it.yo_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.zo_1 + '\n '));
663
663
  };
664
664
  protoOf(TypeScriptEmitter).pr = function (union) {
665
665
  // Inline function 'kotlin.collections.distinctBy' call
@@ -685,7 +685,7 @@ protoOf(TypeScriptEmitter).pr = function (union) {
685
685
  }
686
686
  var tmp = destination;
687
687
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0);
688
- var tmp_1 = this.u20(union.gp_1);
688
+ var tmp_1 = this.s20(union.gp_1);
689
689
  return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.hp_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
690
690
  };
691
691
  protoOf(TypeScriptEmitter).or = function (channel) {
@@ -912,7 +912,7 @@ function joinToObject($this, _this__u8e3s4, transform) {
912
912
  return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
913
913
  }
914
914
  function emitHandleFunction($this, endpoint) {
915
- return Companion_instance_0.fr($this.u20(endpoint.up_1)) + ': (request:Request) => Promise<Response>';
915
+ return Companion_instance_0.fr($this.s20(endpoint.up_1)) + ': (request:Request) => Promise<Response>';
916
916
  }
917
917
  function lowercase($this, _this__u8e3s4) {
918
918
  // Inline function 'kotlin.text.lowercase' call
@@ -1069,14 +1069,14 @@ function TypeScriptEnumDefinitionEmitter() {
1069
1069
  function TypeScriptIdentifierEmitter() {
1070
1070
  }
1071
1071
  function _get_sanitizationConfig__sns434($this) {
1072
- var tmp0 = $this.d21_1;
1072
+ var tmp0 = $this.b21_1;
1073
1073
  var tmp = KProperty1;
1074
1074
  // Inline function 'kotlin.getValue' call
1075
1075
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
1076
1076
  return tmp0.l1();
1077
1077
  }
1078
1078
  function _get_modelSanitizationConfig__vgg831($this) {
1079
- var tmp0 = $this.e21_1;
1079
+ var tmp0 = $this.c21_1;
1080
1080
  var tmp = KProperty1;
1081
1081
  // Inline function 'kotlin.getValue' call
1082
1082
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88(), null);
@@ -1104,7 +1104,7 @@ function sanitizeSymbol_1($this, _this__u8e3s4) {
1104
1104
  return destination.toString();
1105
1105
  }
1106
1106
  function sanitizeKeywords($this, _this__u8e3s4) {
1107
- return Companion_getInstance_0().g21_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1107
+ return Companion_getInstance_0().e21_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1108
1108
  }
1109
1109
  function firstToLower($this, _this__u8e3s4) {
1110
1110
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1138,7 +1138,7 @@ function sanitizeParamName($this, identifier) {
1138
1138
  }
1139
1139
  }
1140
1140
  var parts = destination;
1141
- var name = parts.a1() > 1 ? (new Name(parts)).u1m() : identifier.l1();
1141
+ var name = parts.a1() > 1 ? (new Name(parts)).t1m() : identifier.l1();
1142
1142
  return sanitizeKeywords($this, sanitizeSymbol_1($this, name));
1143
1143
  }
1144
1144
  function buildEndpointParams($this, endpoint) {
@@ -1238,17 +1238,17 @@ function emitTypeScriptReference($this, ref) {
1238
1238
  return tmp + (ref.tu() ? ' | undefined' : '');
1239
1239
  }
1240
1240
  function EndpointParam(name, type, nullable) {
1241
- this.h21_1 = name;
1242
- this.i21_1 = type;
1243
- this.j21_1 = nullable;
1241
+ this.f21_1 = name;
1242
+ this.g21_1 = type;
1243
+ this.h21_1 = nullable;
1244
1244
  }
1245
1245
  protoOf(EndpointParam).toString = function () {
1246
- return 'EndpointParam(name=' + this.h21_1 + ', type=' + this.i21_1 + ', nullable=' + this.j21_1 + ')';
1246
+ return 'EndpointParam(name=' + this.f21_1 + ', type=' + this.g21_1 + ', nullable=' + this.h21_1 + ')';
1247
1247
  };
1248
1248
  protoOf(EndpointParam).hashCode = function () {
1249
- var result = getStringHashCode(this.h21_1);
1250
- result = imul(result, 31) + getStringHashCode(this.i21_1) | 0;
1251
- result = imul(result, 31) + getBooleanHashCode(this.j21_1) | 0;
1249
+ var result = getStringHashCode(this.f21_1);
1250
+ result = imul(result, 31) + getStringHashCode(this.g21_1) | 0;
1251
+ result = imul(result, 31) + getBooleanHashCode(this.h21_1) | 0;
1252
1252
  return result;
1253
1253
  };
1254
1254
  protoOf(EndpointParam).equals = function (other) {
@@ -1256,11 +1256,11 @@ protoOf(EndpointParam).equals = function (other) {
1256
1256
  return true;
1257
1257
  if (!(other instanceof EndpointParam))
1258
1258
  return false;
1259
- if (!(this.h21_1 === other.h21_1))
1259
+ if (!(this.f21_1 === other.f21_1))
1260
1260
  return false;
1261
- if (!(this.i21_1 === other.i21_1))
1261
+ if (!(this.g21_1 === other.g21_1))
1262
1262
  return false;
1263
- if (!(this.j21_1 === other.j21_1))
1263
+ if (!(this.h21_1 === other.h21_1))
1264
1264
  return false;
1265
1265
  return true;
1266
1266
  };
@@ -1279,8 +1279,8 @@ function Companion() {
1279
1279
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
1280
1280
  result.s2(element, tmp$ret$2);
1281
1281
  }
1282
- tmp.f21_1 = result;
1283
- this.g21_1 = setOf(['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'class', 'const', 'enum', 'export', 'extends', 'import', 'super', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield', 'type', 'async', 'await']);
1282
+ tmp.d21_1 = result;
1283
+ this.e21_1 = setOf(['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with', 'class', 'const', 'enum', 'export', 'extends', 'import', 'super', 'implements', 'interface', 'let', 'package', 'private', 'protected', 'public', 'static', 'yield', 'type', 'async', 'await']);
1284
1284
  }
1285
1285
  var Companion_instance_1;
1286
1286
  function Companion_getInstance_0() {
@@ -1293,13 +1293,13 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1293
1293
  }
1294
1294
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1295
1295
  return function (name) {
1296
- var sanitized = name.p1h_1.a1() > 1 ? name.u1m() : sanitizeSymbol_1(this$0, name.n1j());
1296
+ var sanitized = name.p1h_1.a1() > 1 ? name.t1m() : sanitizeSymbol_1(this$0, name.n1j());
1297
1297
  return new Name(listOf_0(sanitized));
1298
1298
  };
1299
1299
  }
1300
1300
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1301
1301
  return function (name) {
1302
- var sanitized = name.p1h_1.a1() > 1 ? name.u1m() : sanitizeSymbol_1(this$0, name.n1j());
1302
+ var sanitized = name.p1h_1.a1() > 1 ? name.t1m() : sanitizeSymbol_1(this$0, name.n1j());
1303
1303
  return new Name(listOf_0(sanitized));
1304
1304
  };
1305
1305
  }
@@ -1325,12 +1325,12 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1325
1325
  return function (stmt, tr) {
1326
1326
  var tmp;
1327
1327
  if (stmt instanceof VariableReference) {
1328
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.o1p_1));
1328
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.n1p_1));
1329
1329
  } else {
1330
1330
  if (stmt instanceof ConstructorStatement) {
1331
- var tmp_0 = tr.c1v(stmt.w1n_1);
1331
+ var tmp_0 = tr.a1v(stmt.v1n_1);
1332
1332
  // Inline function 'kotlin.collections.map' call
1333
- var this_0 = stmt.x1n_1;
1333
+ var this_0 = stmt.w1n_1;
1334
1334
  // Inline function 'kotlin.collections.mapTo' call
1335
1335
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1336
1336
  // Inline function 'kotlin.collections.iterator' call
@@ -1341,13 +1341,13 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1341
1341
  var key = item.k1();
1342
1342
  // Inline function 'kotlin.collections.component2' call
1343
1343
  var value = item.l1();
1344
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.f1v(value));
1344
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.d1v(value));
1345
1345
  destination.x(tmp$ret$3);
1346
1346
  }
1347
1347
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
1348
1348
  } else {
1349
1349
  if (stmt instanceof Assignment) {
1350
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.r1p_1), tr.f1v(stmt.s1p_1), stmt.t1p_1);
1350
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.q1p_1), tr.d1v(stmt.r1p_1), stmt.s1p_1);
1351
1351
  } else {
1352
1352
  tmp = transformChildren(stmt, tr);
1353
1353
  }
@@ -1358,7 +1358,7 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1358
1358
  }
1359
1359
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1360
1360
  return function () {
1361
- var tmp0_reservedKeywords = Companion_getInstance_0().g21_1;
1361
+ var tmp0_reservedKeywords = Companion_getInstance_0().e21_1;
1362
1362
  var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1363
1363
  var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1364
1364
  var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1381,7 +1381,7 @@ function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
1381
1381
  return function () {
1382
1382
  var tmp = _get_sanitizationConfig__sns434(this$0);
1383
1383
  var tmp_0 = TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
1384
- return tmp.x1w(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
1384
+ return tmp.v1w(VOID, VOID, tmp_0, VOID, TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0);
1385
1385
  };
1386
1386
  }
1387
1387
  function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
@@ -1392,11 +1392,11 @@ function TypeScriptIrEmitter$_get_modelSanitizationConfig_$ref_ar2t88() {
1392
1392
  function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
1393
1393
  var tmp;
1394
1394
  if (element instanceof Namespace) {
1395
- var injected = element.f1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1395
+ var injected = element.e1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1396
1396
  var tmp_0;
1397
1397
  // Inline function 'kotlin.collections.isNotEmpty' call
1398
1398
  if (!injected.r()) {
1399
- tmp_0 = withElements(element, plus_1(injected, element.b1o()));
1399
+ tmp_0 = withElements(element, plus_1(injected, element.a1o()));
1400
1400
  } else {
1401
1401
  tmp_0 = element;
1402
1402
  }
@@ -1411,11 +1411,11 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1411
1411
  return function (element, transformer) {
1412
1412
  var tmp;
1413
1413
  if (element instanceof Namespace) {
1414
- var injected = element.f1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1414
+ var injected = element.e1o_1.equals(Companion_getInstance().r1h('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1415
1415
  var tmp_0;
1416
1416
  // Inline function 'kotlin.collections.isNotEmpty' call
1417
1417
  if (!injected.r()) {
1418
- tmp_0 = withElements(element, plus_1(element.b1o(), injected));
1418
+ tmp_0 = withElements(element, plus_1(element.a1o(), injected));
1419
1419
  } else {
1420
1420
  tmp_0 = element;
1421
1421
  }
@@ -1430,13 +1430,13 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1430
1430
  function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1431
1431
  var tmp;
1432
1432
  if (element instanceof Struct) {
1433
- var tmp0_safe_receiver = Companion_getInstance_0().f21_1.p2(element.k1o_1.n1j());
1433
+ var tmp0_safe_receiver = Companion_getInstance_0().d21_1.p2(element.j1o_1.n1j());
1434
1434
  var tmp_0;
1435
1435
  if (tmp0_safe_receiver == null) {
1436
1436
  tmp_0 = null;
1437
1437
  } else {
1438
1438
  // Inline function 'kotlin.let' call
1439
- tmp_0 = element.r1o(VOID, plus_1(listOf_0(new Field(Companion_getInstance().r1h('kind'), new StringLiteral(tmp0_safe_receiver))), element.l1o_1));
1439
+ tmp_0 = element.q1o(VOID, plus_1(listOf_0(new Field(Companion_getInstance().r1h('kind'), new StringLiteral(tmp0_safe_receiver))), element.k1o_1));
1440
1440
  }
1441
1441
  var tmp1_elvis_lhs = tmp_0;
1442
1442
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -1456,24 +1456,24 @@ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1456
1456
  var tmp_1;
1457
1457
  var tmp_2;
1458
1458
  if (expr instanceof FunctionCall) {
1459
- var tmp_3 = expr.c1n_1;
1459
+ var tmp_3 = expr.b1n_1;
1460
1460
  tmp_2 = tmp_3 instanceof RawExpression;
1461
1461
  } else {
1462
1462
  tmp_2 = false;
1463
1463
  }
1464
1464
  if (tmp_2) {
1465
- var tmp_4 = expr.c1n_1;
1466
- tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).q1p_1 === $definition.xr_1.l1();
1465
+ var tmp_4 = expr.b1n_1;
1466
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).p1p_1 === $definition.xr_1.l1();
1467
1467
  } else {
1468
1468
  tmp_1 = false;
1469
1469
  }
1470
1470
  if (tmp_1) {
1471
- tmp_0 = expr.e1n_1.equals(Companion_getInstance().r1h('valueOf'));
1471
+ tmp_0 = expr.d1n_1.equals(Companion_getInstance().r1h('valueOf'));
1472
1472
  } else {
1473
1473
  tmp_0 = false;
1474
1474
  }
1475
1475
  if (tmp_0) {
1476
- var tmp0_elvis_lhs = expr.f1n_1.p2(Companion_getInstance().r1h('label'));
1476
+ var tmp0_elvis_lhs = expr.e1n_1.p2(Companion_getInstance().r1h('label'));
1477
1477
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1478
1478
  } else {
1479
1479
  tmp = transformChildren_1(expr, t);
@@ -1486,12 +1486,12 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1486
1486
  var tmp;
1487
1487
  var tmp_0;
1488
1488
  if (expr instanceof ConstructorStatement) {
1489
- tmp_0 = equals(expr.w1n_1, Custom_init_$Create$($definition.sr_1.l1()));
1489
+ tmp_0 = equals(expr.v1n_1, Custom_init_$Create$($definition.sr_1.l1()));
1490
1490
  } else {
1491
1491
  tmp_0 = false;
1492
1492
  }
1493
1493
  if (tmp_0) {
1494
- var tmp0_elvis_lhs = expr.x1n_1.p2(Companion_getInstance().r1h('value'));
1494
+ var tmp0_elvis_lhs = expr.w1n_1.p2(Companion_getInstance().r1h('value'));
1495
1495
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1496
1496
  } else {
1497
1497
  tmp = transformChildren_1(expr, t);
@@ -1502,7 +1502,7 @@ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1502
1502
  function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1503
1503
  var tmp;
1504
1504
  if (expr instanceof ConstructorStatement) {
1505
- var tmp_0 = expr.w1n_1;
1505
+ var tmp_0 = expr.v1n_1;
1506
1506
  var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
1507
1507
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1j_1;
1508
1508
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1j();
@@ -1512,14 +1512,14 @@ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1512
1512
  tmp_1 = null;
1513
1513
  } else {
1514
1514
  // Inline function 'kotlin.let' call
1515
- tmp_1 = Companion_getInstance_0().f21_1.p2(typeName);
1515
+ tmp_1 = Companion_getInstance_0().d21_1.p2(typeName);
1516
1516
  }
1517
1517
  var kind = tmp_1;
1518
1518
  var tmp_2;
1519
1519
  if (!(kind == null)) {
1520
1520
  var tmp_3 = mapOf(to(Companion_getInstance().r1h('kind'), new Literal_0(kind, String_instance)));
1521
1521
  // Inline function 'kotlin.collections.mapValues' call
1522
- var this_0 = expr.x1n_1;
1522
+ var this_0 = expr.w1n_1;
1523
1523
  // Inline function 'kotlin.collections.mapValuesTo' call
1524
1524
  var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.a1()));
1525
1525
  // Inline function 'kotlin.collections.associateByTo' call
@@ -1529,10 +1529,10 @@ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1529
1529
  var tmp_4 = element.k1();
1530
1530
  // Inline function 'kotlin.collections.component2' call
1531
1531
  var v = element.l1();
1532
- var tmp$ret$4 = t.f1v(v);
1532
+ var tmp$ret$4 = t.d1v(v);
1533
1533
  destination.s2(tmp_4, tmp$ret$4);
1534
1534
  }
1535
- tmp_2 = new ConstructorStatement(expr.w1n_1, plus_2(tmp_3, destination));
1535
+ tmp_2 = new ConstructorStatement(expr.v1n_1, plus_2(tmp_3, destination));
1536
1536
  } else {
1537
1537
  tmp_2 = transformChildren(expr, t);
1538
1538
  }
@@ -1559,17 +1559,17 @@ function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generato
1559
1559
  var tmp_0;
1560
1560
  var tmp_1;
1561
1561
  if (expr instanceof RawExpression) {
1562
- tmp_1 = endsWith(expr.q1p_1, 'Generator');
1562
+ tmp_1 = endsWith(expr.p1p_1, 'Generator');
1563
1563
  } else {
1564
1564
  tmp_1 = false;
1565
1565
  }
1566
1566
  if (tmp_1) {
1567
- tmp_0 = !(expr.q1p_1 === $generatorOwnName);
1567
+ tmp_0 = !(expr.p1p_1 === $generatorOwnName);
1568
1568
  } else {
1569
1569
  tmp_0 = false;
1570
1570
  }
1571
1571
  if (tmp_0) {
1572
- $generatorRefs.x(expr.q1p_1);
1572
+ $generatorRefs.x(expr.p1p_1);
1573
1573
  tmp = Unit_instance;
1574
1574
  }
1575
1575
  return transformChildren_1(expr, t);
@@ -1583,7 +1583,7 @@ function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
1583
1583
  var tmp_0;
1584
1584
  // Inline function 'kotlin.collections.isNotEmpty' call
1585
1585
  if (!injected.r()) {
1586
- tmp_0 = withElements(element, plus_1(element.b1o(), injected));
1586
+ tmp_0 = withElements(element, plus_1(element.a1o(), injected));
1587
1587
  } else {
1588
1588
  tmp_0 = element;
1589
1589
  }
@@ -1602,14 +1602,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
1602
1602
  var tmp = scope;
1603
1603
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1604
1604
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1605
- var this_0 = scope.k1v_1;
1605
+ var this_0 = scope.i1v_1;
1606
1606
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1607
1607
  // Inline function 'kotlin.apply' call
1608
1608
  var this_1 = new TransformerBuilder();
1609
1609
  this_1.b1j(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1610
1610
  var tmp$ret$2 = this_1.c1j();
1611
- tmp.k1v_1 = transform(this_0, tmp$ret$2);
1612
- var tmp_0 = scope.k1v_1;
1611
+ tmp.i1v_1 = transform(this_0, tmp$ret$2);
1612
+ var tmp_0 = scope.i1v_1;
1613
1613
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1614
1614
  }
1615
1615
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -1623,20 +1623,20 @@ function TypeScriptIrEmitter$emitClient$lambda(this$0) {
1623
1623
  }
1624
1624
  function TypeScriptIrEmitter() {
1625
1625
  Companion_getInstance_0();
1626
- this.b21_1 = TypeScriptGenerator_getInstance();
1627
- this.c21_1 = FileExtension_TypeScript_getInstance();
1626
+ this.z20_1 = TypeScriptGenerator_getInstance();
1627
+ this.a21_1 = FileExtension_TypeScript_getInstance();
1628
1628
  var tmp = this;
1629
- tmp.d21_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1629
+ tmp.b21_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1630
1630
  var tmp_0 = this;
1631
- tmp_0.e21_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1631
+ tmp_0.c21_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1632
1632
  }
1633
- protoOf(TypeScriptIrEmitter).x1v = function () {
1634
- return this.b21_1;
1633
+ protoOf(TypeScriptIrEmitter).v1v = function () {
1634
+ return this.z20_1;
1635
1635
  };
1636
1636
  protoOf(TypeScriptIrEmitter).uq = function () {
1637
- return this.c21_1;
1637
+ return this.a21_1;
1638
1638
  };
1639
- protoOf(TypeScriptIrEmitter).b1w = function () {
1639
+ protoOf(TypeScriptIrEmitter).z1v = function () {
1640
1640
  var packageName = Companion_instance.cs('community.flock.wirespec');
1641
1641
  var api = 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n to: (request: REQ) => RawRequest;\n from: (response: RawResponse) => RES\n}\nexport type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => {\n from: (request: RawRequest) => REQ;\n to: (response: RES) => RawResponse\n}\nexport type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = {\n name: string;\n method: Method,\n path: string,\n client: Client<REQ, RES>;\n server: Server<REQ, RES>\n}';
1642
1642
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1646,35 +1646,35 @@ protoOf(TypeScriptIrEmitter).b1w = function () {
1646
1646
  var tmp = scope;
1647
1647
  // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
1648
1648
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1649
- var this_1 = scope.k1v_1;
1649
+ var this_1 = scope.i1v_1;
1650
1650
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1651
1651
  // Inline function 'kotlin.apply' call
1652
1652
  var this_2 = new TransformerBuilder();
1653
1653
  this_2.b1j(TypeScriptIrEmitter$emitShared$lambda);
1654
1654
  var tmp$ret$2 = this_2.c1j();
1655
- tmp.k1v_1 = transform(this_1, tmp$ret$2);
1655
+ tmp.i1v_1 = transform(this_1, tmp$ret$2);
1656
1656
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1657
1657
  var tmp_0 = scope;
1658
1658
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1659
1659
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1660
- var this_3 = scope.k1v_1;
1660
+ var this_3 = scope.i1v_1;
1661
1661
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1662
1662
  // Inline function 'kotlin.apply' call
1663
1663
  var this_4 = new TransformerBuilder();
1664
1664
  this_4.b1j(TypeScriptIrEmitter$emitShared$lambda_0(api));
1665
1665
  var tmp$ret$8 = this_4.c1j();
1666
- tmp_0.k1v_1 = transform(this_3, tmp$ret$8);
1666
+ tmp_0.i1v_1 = transform(this_3, tmp$ret$8);
1667
1667
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1668
1668
  var tmp_1 = scope;
1669
1669
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1670
- var this_5 = scope.k1v_1;
1670
+ var this_5 = scope.i1v_1;
1671
1671
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1672
1672
  // Inline function 'kotlin.apply' call
1673
1673
  var this_6 = new TransformerBuilder();
1674
1674
  this_6.b1j(TypeScriptIrEmitter$emitShared$lambda_1);
1675
1675
  var tmp$ret$14 = this_6.c1j();
1676
- tmp_1.k1v_1 = transform(this_5, tmp$ret$14);
1677
- var tmp_2 = scope.k1v_1;
1676
+ tmp_1.i1v_1 = transform(this_5, tmp$ret$14);
1677
+ var tmp_2 = scope.i1v_1;
1678
1678
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1679
1679
  };
1680
1680
  protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
@@ -1733,9 +1733,9 @@ protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
1733
1733
  protoOf(TypeScriptIrEmitter).lr = function (definition, module_0, logger) {
1734
1734
  var file = emit_0.call(this, definition, module_0, logger);
1735
1735
  var subPackageName = plus(Companion_instance.cs(''), definition);
1736
- return new File(Companion_getInstance().r1h(subPackageName.fs() + sanitizeSymbol_1(this, file.z1n_1.s1h())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.a1o_1));
1736
+ return new File(Companion_getInstance().r1h(subPackageName.fs() + sanitizeSymbol_1(this, file.y1n_1.s1h())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.z1n_1));
1737
1737
  };
1738
- protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1738
+ protoOf(TypeScriptIrEmitter).e1w = function (definition, module_0) {
1739
1739
  var tmp;
1740
1740
  if (definition instanceof Type) {
1741
1741
  tmp = convertToGenerator_2(definition, module_0);
@@ -1744,16 +1744,16 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1744
1744
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1745
1745
  var this_0 = convertToGenerator_1(definition);
1746
1746
  var scope = new TransformScope(this_0);
1747
- scope.s1v(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1748
- var tmp_0 = scope.k1v_1;
1747
+ scope.q1v(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1748
+ var tmp_0 = scope.i1v_1;
1749
1749
  tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1750
1750
  } else {
1751
1751
  if (definition instanceof Refined) {
1752
1752
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1753
1753
  var this_1 = convertToGenerator_0(definition);
1754
1754
  var scope_0 = new TransformScope(this_1);
1755
- scope_0.s1v(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1756
- var tmp_1 = scope_0.k1v_1;
1755
+ scope_0.q1v(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1756
+ var tmp_1 = scope_0.i1v_1;
1757
1757
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1758
1758
  } else {
1759
1759
  if (definition instanceof Union) {
@@ -1767,8 +1767,8 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1767
1767
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1768
1768
  var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
1769
1769
  var scope_1 = new TransformScope(this_2);
1770
- scope_1.s1v(TypeScriptIrEmitter$emitGenerator$lambda_1);
1771
- var tmp_2 = scope_1.k1v_1;
1770
+ scope_1.q1v(TypeScriptIrEmitter$emitGenerator$lambda_1);
1771
+ var tmp_2 = scope_1.i1v_1;
1772
1772
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1773
1773
  var generatorOwnName = definition.mr().l1() + 'Generator';
1774
1774
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
@@ -1779,8 +1779,8 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1779
1779
  var generatorRefs = LinkedHashSet_init_$Create$();
1780
1780
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1781
1781
  var scope_2 = new TransformScope(generatorFile);
1782
- scope_2.s1v(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1783
- var tmp_6 = scope_2.k1v_1;
1782
+ scope_2.q1v(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1783
+ var tmp_6 = scope_2.i1v_1;
1784
1784
  isInterface(tmp_6, Element) || THROW_CCE();
1785
1785
  // Inline function 'kotlin.collections.filter' call
1786
1786
  // Inline function 'kotlin.collections.filterTo' call
@@ -1824,7 +1824,7 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1824
1824
  }
1825
1825
  var modelImports = destination_2;
1826
1826
  var subPackageName = plus_0(Companion_instance.cs(''), 'generator');
1827
- return new File(Companion_getInstance().r1h(subPackageName.fs() + sanitizeSymbol_1(this, generatorFile.z1n_1.s1h())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.a1o_1));
1827
+ return new File(Companion_getInstance().r1h(subPackageName.fs() + sanitizeSymbol_1(this, generatorFile.y1n_1.s1h())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.z1n_1));
1828
1828
  };
1829
1829
  protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1830
1830
  var fieldValidations = classifyValidatableFields(type, module_0);
@@ -1896,7 +1896,7 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1896
1896
  var tmp;
1897
1897
  // Inline function 'kotlin.collections.isNotEmpty' call
1898
1898
  if (!allImports.r()) {
1899
- tmp = file.d1o(VOID, plus_1(allImports, file.a1o_1));
1899
+ tmp = file.c1o(VOID, plus_1(allImports, file.z1n_1));
1900
1900
  } else {
1901
1901
  tmp = file;
1902
1902
  }
@@ -1932,7 +1932,7 @@ protoOf(TypeScriptIrEmitter).pr = function (union) {
1932
1932
  var tmp;
1933
1933
  // Inline function 'kotlin.collections.isNotEmpty' call
1934
1934
  if (!imports.r()) {
1935
- tmp = file.d1o(VOID, plus_1(imports, file.a1o_1));
1935
+ tmp = file.c1o(VOID, plus_1(imports, file.z1n_1));
1936
1936
  } else {
1937
1937
  tmp = file;
1938
1938
  }
@@ -1941,8 +1941,8 @@ protoOf(TypeScriptIrEmitter).pr = function (union) {
1941
1941
  protoOf(TypeScriptIrEmitter).ur = function (refined) {
1942
1942
  var converted = convert_2(refined);
1943
1943
  var constraintExpr = convertConstraint(refined.tr_1, new VariableReference(Companion_getInstance().r1h('value')));
1944
- var validatorStr = TypeScriptGenerator_getInstance().o1w(constraintExpr);
1945
- return new File(converted.z1n_1, listOf([new RawElement('export type ' + converted.z1n_1.s1h() + ' = ' + emitTypeScriptReference(this, refined.tr_1) + ';'), new RawElement('export const validate' + refined.sr_1.l1() + ' = (value: ' + emitTypeScriptReference(this, refined.tr_1) + ') =>\n ' + validatorStr + ';')]));
1944
+ var validatorStr = TypeScriptGenerator_getInstance().m1w(constraintExpr);
1945
+ return new File(converted.y1n_1, listOf([new RawElement('export type ' + converted.y1n_1.s1h() + ' = ' + emitTypeScriptReference(this, refined.tr_1) + ';'), new RawElement('export const validate' + refined.sr_1.l1() + ' = (value: ' + emitTypeScriptReference(this, refined.tr_1) + ') =>\n ' + validatorStr + ';')]));
1946
1946
  };
1947
1947
  protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1948
1948
  // Inline function 'kotlin.collections.distinctBy' call
@@ -1972,15 +1972,15 @@ protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1972
1972
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1973
1973
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1974
1974
  var scope = new TransformScope(this_1);
1975
- scope.p1v(transformPatternSwitchToValueSwitch());
1976
- var tmp = scope.k1v_1;
1975
+ scope.n1v(transformPatternSwitchToValueSwitch());
1976
+ var tmp = scope.i1v_1;
1977
1977
  var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1978
1978
  // Inline function 'kotlin.let' call
1979
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).d1o(Companion_getInstance().r1h(sanitize(this, endpoint.up_1))), _get_sanitizationConfig__sns434(this));
1979
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).c1o(Companion_getInstance().r1h(sanitize(this, endpoint.up_1))), _get_sanitizationConfig__sns434(this));
1980
1980
  var tmp_0;
1981
1981
  // Inline function 'kotlin.collections.isNotEmpty' call
1982
1982
  if (!imports.r()) {
1983
- tmp_0 = it.d1o(VOID, plus_1(imports, it.a1o_1));
1983
+ tmp_0 = it.c1o(VOID, plus_1(imports, it.z1n_1));
1984
1984
  } else {
1985
1985
  tmp_0 = it;
1986
1986
  }
@@ -1989,7 +1989,7 @@ protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1989
1989
  protoOf(TypeScriptIrEmitter).or = function (channel) {
1990
1990
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1991
1991
  };
1992
- protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
1992
+ protoOf(TypeScriptIrEmitter).d1w = function (endpoint) {
1993
1993
  var endpointName = endpoint.up_1.l1();
1994
1994
  var methodName = firstToLower(this, endpointName);
1995
1995
  // Inline function 'kotlin.collections.distinctBy' call
@@ -2044,7 +2044,7 @@ protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
2044
2044
  var tmp$ret$10 = this_1.o5();
2045
2045
  return new File(tmp_1, tmp$ret$10);
2046
2046
  };
2047
- protoOf(TypeScriptIrEmitter).c1w = function (endpoints, logger) {
2047
+ protoOf(TypeScriptIrEmitter).a1w = function (endpoints, logger) {
2048
2048
  logger.jr('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2049
2049
  // Inline function 'kotlin.collections.map' call
2050
2050
  // Inline function 'kotlin.collections.mapTo' call
@@ -2074,7 +2074,7 @@ function transformPatternSwitchToValueSwitch() {
2074
2074
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2075
2075
  // Inline function 'kotlin.apply' call
2076
2076
  var this_0 = new TransformerBuilder();
2077
- this_0.r1v(transformPatternSwitchToValueSwitch$lambda);
2077
+ this_0.p1v(transformPatternSwitchToValueSwitch$lambda);
2078
2078
  return this_0.c1j();
2079
2079
  }
2080
2080
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
@@ -2083,14 +2083,14 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
2083
2083
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2084
2084
  var tmp = scope;
2085
2085
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2086
- var this_0 = scope.k1v_1;
2086
+ var this_0 = scope.i1v_1;
2087
2087
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2088
2088
  // Inline function 'kotlin.apply' call
2089
2089
  var this_1 = new TransformerBuilder();
2090
2090
  this_1.b1j(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2091
2091
  var tmp$ret$2 = this_1.c1j();
2092
- tmp.k1v_1 = transform(this_0, tmp$ret$2);
2093
- var tmp_0 = scope.k1v_1;
2092
+ tmp.i1v_1 = transform(this_0, tmp$ret$2);
2093
+ var tmp_0 = scope.i1v_1;
2094
2094
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2095
2095
  }
2096
2096
  function buildApiConst(endpoint) {
@@ -2119,21 +2119,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
2119
2119
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
2120
2120
  var tmp = scope;
2121
2121
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
2122
- var this_0 = scope.k1v_1;
2122
+ var this_0 = scope.i1v_1;
2123
2123
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
2124
2124
  // Inline function 'kotlin.apply' call
2125
2125
  var this_1 = new TransformerBuilder();
2126
2126
  this_1.b1j(bindCallToRequestParams$lambda);
2127
2127
  var tmp$ret$2 = this_1.c1j();
2128
- tmp.k1v_1 = transform(this_0, tmp$ret$2);
2129
- var tmp_0 = scope.k1v_1;
2128
+ tmp.i1v_1 = transform(this_0, tmp$ret$2);
2129
+ var tmp_0 = scope.i1v_1;
2130
2130
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2131
2131
  }
2132
2132
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
2133
2133
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2134
2134
  var scope = new TransformScope(_this__u8e3s4);
2135
- scope.r1v(stripTrailingSpaceFromErrorMessage$lambda);
2136
- var tmp = scope.k1v_1;
2135
+ scope.p1v(stripTrailingSpaceFromErrorMessage$lambda);
2136
+ var tmp = scope.i1v_1;
2137
2137
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
2138
2138
  }
2139
2139
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -2141,7 +2141,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2141
2141
  if (!(stmt instanceof Switch)) {
2142
2142
  tmp = true;
2143
2143
  } else {
2144
- var tmp0 = stmt.m1q_1;
2144
+ var tmp0 = stmt.h1q_1;
2145
2145
  var tmp$ret$0;
2146
2146
  $l$block_0: {
2147
2147
  // Inline function 'kotlin.collections.none' call
@@ -2158,7 +2158,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2158
2158
  var _iterator__ex2g4s = tmp0.t();
2159
2159
  while (_iterator__ex2g4s.u()) {
2160
2160
  var element = _iterator__ex2g4s.v();
2161
- if (!(element.t1q_1 == null)) {
2161
+ if (!(element.o1q_1 == null)) {
2162
2162
  tmp$ret$0 = false;
2163
2163
  break $l$block_0;
2164
2164
  }
@@ -2169,11 +2169,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2169
2169
  }
2170
2170
  if (tmp)
2171
2171
  return transformChildren(stmt, tr);
2172
- var tmp0_safe_receiver = stmt.o1q_1;
2173
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u1m();
2172
+ var tmp0_safe_receiver = stmt.j1q_1;
2173
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t1m();
2174
2174
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
2175
2175
  // Inline function 'kotlin.collections.map' call
2176
- var this_0 = stmt.m1q_1;
2176
+ var this_0 = stmt.h1q_1;
2177
2177
  // Inline function 'kotlin.collections.mapTo' call
2178
2178
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2179
2179
  var _iterator__ex2g4s_0 = this_0.t();
@@ -2181,7 +2181,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2181
2181
  var item = _iterator__ex2g4s_0.v();
2182
2182
  var tmp$ret$5;
2183
2183
  $l$block_1: {
2184
- var tmp_1 = item.t1q_1;
2184
+ var tmp_1 = item.o1q_1;
2185
2185
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
2186
2186
  var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.l1j_1;
2187
2187
  var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1h();
@@ -2190,30 +2190,30 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2190
2190
  var statusNum = tmp4_safe_receiver == null ? null : toIntOrNull(tmp4_safe_receiver);
2191
2191
  if (statusNum == null || typeName == null) {
2192
2192
  // Inline function 'kotlin.collections.map' call
2193
- var this_1 = item.s1q_1;
2193
+ var this_1 = item.n1q_1;
2194
2194
  // Inline function 'kotlin.collections.mapTo' call
2195
2195
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
2196
2196
  var _iterator__ex2g4s_1 = this_1.t();
2197
2197
  while (_iterator__ex2g4s_1.u()) {
2198
2198
  var item_0 = _iterator__ex2g4s_1.v();
2199
- var tmp$ret$2 = tr.e1v(item_0);
2199
+ var tmp$ret$2 = tr.c1v(item_0);
2200
2200
  destination_0.x(tmp$ret$2);
2201
2201
  }
2202
- tmp$ret$5 = item.v1q(VOID, destination_0);
2202
+ tmp$ret$5 = item.q1q(VOID, destination_0);
2203
2203
  break $l$block_1;
2204
2204
  }
2205
- var exprCode = TypeScriptGenerator_getInstance().o1w(tr.f1v(stmt.l1q_1));
2205
+ var exprCode = TypeScriptGenerator_getInstance().m1w(tr.d1v(stmt.g1q_1));
2206
2206
  var castAssignment = new Assignment(Companion_getInstance().r1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2207
2207
  var tmp_2 = new Literal_0(statusNum, new Integer_0());
2208
2208
  var tmp_3 = listOf_0(castAssignment);
2209
2209
  // Inline function 'kotlin.collections.map' call
2210
- var this_2 = item.s1q_1;
2210
+ var this_2 = item.n1q_1;
2211
2211
  // Inline function 'kotlin.collections.mapTo' call
2212
2212
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
2213
2213
  var _iterator__ex2g4s_2 = this_2.t();
2214
2214
  while (_iterator__ex2g4s_2.u()) {
2215
2215
  var item_1 = _iterator__ex2g4s_2.v();
2216
- var tmp$ret$6 = tr.e1v(item_1);
2216
+ var tmp$ret$6 = tr.c1v(item_1);
2217
2217
  destination_1.x(tmp$ret$6);
2218
2218
  }
2219
2219
  tmp$ret$5 = new Case(tmp_2, plus_1(tmp_3, destination_1), null);
@@ -2221,8 +2221,8 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2221
2221
  destination.x(tmp$ret$5);
2222
2222
  }
2223
2223
  var transformedCases = destination;
2224
- var tmp_4 = new FieldCall(tr.f1v(stmt.l1q_1), Companion_getInstance().r1h('status'));
2225
- var tmp2_safe_receiver = stmt.n1q_1;
2224
+ var tmp_4 = new FieldCall(tr.d1v(stmt.g1q_1), Companion_getInstance().r1h('status'));
2225
+ var tmp2_safe_receiver = stmt.i1q_1;
2226
2226
  var tmp_5;
2227
2227
  if (tmp2_safe_receiver == null) {
2228
2228
  tmp_5 = null;
@@ -2233,7 +2233,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
2233
2233
  var _iterator__ex2g4s_3 = tmp2_safe_receiver.t();
2234
2234
  while (_iterator__ex2g4s_3.u()) {
2235
2235
  var item_2 = _iterator__ex2g4s_3.v();
2236
- var tmp$ret$11 = tr.e1v(item_2);
2236
+ var tmp$ret$11 = tr.c1v(item_2);
2237
2237
  destination_2.x(tmp$ret$11);
2238
2238
  }
2239
2239
  tmp_5 = destination_2;
@@ -2247,43 +2247,43 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
2247
2247
  var tmp_1;
2248
2248
  var tmp_2;
2249
2249
  if (s instanceof FunctionCall) {
2250
- tmp_2 = s.e1n_1.equals(Companion_getInstance().r1h('validate'));
2250
+ tmp_2 = s.d1n_1.equals(Companion_getInstance().r1h('validate'));
2251
2251
  } else {
2252
2252
  tmp_2 = false;
2253
2253
  }
2254
2254
  if (tmp_2) {
2255
- tmp_1 = !(s.c1n_1 == null);
2255
+ tmp_1 = !(s.b1n_1 == null);
2256
2256
  } else {
2257
2257
  tmp_1 = false;
2258
2258
  }
2259
2259
  if (tmp_1) {
2260
2260
  // Inline function 'kotlin.collections.isNotEmpty' call
2261
- tmp_0 = !s.d1n_1.r();
2261
+ tmp_0 = !s.c1n_1.r();
2262
2262
  } else {
2263
2263
  tmp_0 = false;
2264
2264
  }
2265
2265
  if (tmp_0) {
2266
- var tmp_3 = first(s.d1n_1);
2266
+ var tmp_3 = first(s.c1n_1);
2267
2267
  var tmp0_safe_receiver = tmp_3 instanceof Custom_0 ? tmp_3 : null;
2268
2268
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1j_1;
2269
2269
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1h();
2270
2270
  var tn = tmp2_elvis_lhs == null ? '' : tmp2_elvis_lhs;
2271
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().r1h('validate' + tn), mapOf(to(Companion_getInstance().r1h('obj'), t.f1v(ensureNotNull(s.c1n_1)))));
2271
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().r1h('validate' + tn), mapOf(to(Companion_getInstance().r1h('obj'), t.d1v(ensureNotNull(s.b1n_1)))));
2272
2272
  } else {
2273
2273
  var tmp_4;
2274
2274
  var tmp_5;
2275
2275
  if (s instanceof FieldCall) {
2276
- tmp_5 = s.w1q_1 == null;
2276
+ tmp_5 = s.r1q_1 == null;
2277
2277
  } else {
2278
2278
  tmp_5 = false;
2279
2279
  }
2280
2280
  if (tmp_5) {
2281
- tmp_4 = $fieldNames.u1(s.x1q_1.u1m());
2281
+ tmp_4 = $fieldNames.u1(s.s1q_1.t1m());
2282
2282
  } else {
2283
2283
  tmp_4 = false;
2284
2284
  }
2285
2285
  if (tmp_4) {
2286
- tmp = new FieldCall(new VariableReference(Companion_getInstance().r1h('obj')), s.x1q_1);
2286
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().r1h('obj')), s.s1q_1);
2287
2287
  } else {
2288
2288
  tmp = transformChildren(s, t);
2289
2289
  }
@@ -2304,8 +2304,8 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2304
2304
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2305
2305
  var this_0 = element.p1l(Companion_getInstance().r1h('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().r1h('obj'), Custom_init_$Create$($typeName))));
2306
2306
  var scope = new TransformScope(this_0);
2307
- scope.t1v(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2308
- var tmp_0 = scope.k1v_1;
2307
+ scope.r1v(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2308
+ var tmp_0 = scope.i1v_1;
2309
2309
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2310
2310
  }
2311
2311
  tmp = tmp$ret$0;
@@ -2334,12 +2334,12 @@ function bindCallToRequestParams$lambda(element, transformer) {
2334
2334
  if (element instanceof Interface) {
2335
2335
  var tmp$ret$0;
2336
2336
  $l$block: {
2337
- if (!element.t1o_1.equals(Companion_getInstance().r1h('Call'))) {
2337
+ if (!element.s1o_1.equals(Companion_getInstance().r1h('Call'))) {
2338
2338
  tmp$ret$0 = element;
2339
2339
  break $l$block;
2340
2340
  }
2341
2341
  // Inline function 'kotlin.collections.map' call
2342
- var this_0 = element.u1o_1;
2342
+ var this_0 = element.t1o_1;
2343
2343
  // Inline function 'kotlin.collections.mapTo' call
2344
2344
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2345
2345
  var _iterator__ex2g4s = this_0.t();
@@ -2350,7 +2350,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
2350
2350
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2351
2351
  destination.x(tmp$ret$1);
2352
2352
  }
2353
- tmp$ret$0 = element.a1p(VOID, destination);
2353
+ tmp$ret$0 = element.z1o(VOID, destination);
2354
2354
  }
2355
2355
  tmp = tmp$ret$0;
2356
2356
  } else {
@@ -2362,7 +2362,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
2362
2362
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2363
2363
  var tmp;
2364
2364
  if (stmt instanceof Switch) {
2365
- var tmp1_safe_receiver = stmt.n1q_1;
2365
+ var tmp1_safe_receiver = stmt.i1q_1;
2366
2366
  var tmp_0;
2367
2367
  if (tmp1_safe_receiver == null) {
2368
2368
  tmp_0 = null;
@@ -2384,7 +2384,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2384
2384
  tmp_1 = tmp0_elvis_lhs;
2385
2385
  }
2386
2386
  var errorStmt = tmp_1;
2387
- var tmp_2 = errorStmt.a1r_1;
2387
+ var tmp_2 = errorStmt.z1q_1;
2388
2388
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
2389
2389
  var tmp_3;
2390
2390
  if (tmp1_elvis_lhs == null) {
@@ -2394,7 +2394,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2394
2394
  tmp_3 = tmp1_elvis_lhs;
2395
2395
  }
2396
2396
  var binary = tmp_3;
2397
- var tmp_4 = binary.b1r_1;
2397
+ var tmp_4 = binary.a1r_1;
2398
2398
  var tmp2_elvis_lhs = tmp_4 instanceof Literal_0 ? tmp_4 : null;
2399
2399
  var tmp_5;
2400
2400
  if (tmp2_elvis_lhs == null) {
@@ -2404,13 +2404,13 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2404
2404
  tmp_5 = tmp2_elvis_lhs;
2405
2405
  }
2406
2406
  var literal = tmp_5;
2407
- tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.y1p_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.z1p_1));
2407
+ tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.x1p_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.y1p_1));
2408
2408
  }
2409
2409
  destination.x(tmp$ret$0);
2410
2410
  }
2411
2411
  tmp_0 = destination;
2412
2412
  }
2413
- tmp = transformChildren(stmt.q1q(VOID, VOID, tmp_0), transformer);
2413
+ tmp = transformChildren(stmt.l1q(VOID, VOID, tmp_0), transformer);
2414
2414
  } else {
2415
2415
  tmp = transformChildren(stmt, transformer);
2416
2416
  }
@@ -2420,8 +2420,8 @@ function TypeScriptRefinedTypeDefinitionEmitter() {
2420
2420
  }
2421
2421
  function TypeScriptShared() {
2422
2422
  TypeScriptShared_instance = this;
2423
- this.z20_1 = 'community.flock.wirespec';
2424
- this.a21_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, queries?: Record<string, unknown>, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
2423
+ this.x20_1 = 'community.flock.wirespec';
2424
+ this.y20_1 = trimMargin('\n |export namespace Wirespec {\n |' + Spacer_instance.toString() + 'export type Method = "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE"\n |' + Spacer_instance.toString() + 'export type RawRequest = { method: Method, path: string[], queries: Record<string, string>, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type RawResponse = { status: number, headers: Record<string, string>, body?: string }\n |' + Spacer_instance.toString() + 'export type Request<T> = { path: Record<string, unknown>, method: Method, queries?: Record<string, unknown>, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Response<T> = { status:number, headers?: Record<string, unknown>, body?:T }\n |' + Spacer_instance.toString() + 'export type Serialization = { serialize: <T>(type: T) => string; deserialize: <T>(raw: string | undefined) => T }\n |' + Spacer_instance.toString() + 'export type Client<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { to: (request: REQ) => RawRequest; from: (response: RawResponse) => RES }\n |' + Spacer_instance.toString() + 'export type Server<REQ extends Request<unknown>, RES extends Response<unknown>> = (serialization: Serialization) => { from: (request: RawRequest) => REQ; to: (response: RES) => RawResponse }\n |' + Spacer_instance.toString() + 'export type Api<REQ extends Request<unknown>, RES extends Response<unknown>> = { name: string; method: Method, path: string, client: Client<REQ, RES>; server: Server<REQ, RES> }\n |}\n ');
2425
2425
  }
2426
2426
  protoOf(TypeScriptShared).toString = function () {
2427
2427
  return 'TypeScriptShared';
@@ -2462,19 +2462,19 @@ protoOf(TypeScriptEmitter).lq = emit_6;
2462
2462
  protoOf(TypeScriptEmitter).mq = emit_7;
2463
2463
  protoOf(TypeScriptEmitter).nq = emit_4;
2464
2464
  protoOf(TypeScriptEmitter).oq = emit_5;
2465
- protoOf(TypeScriptEmitter).zr = emit_8;
2465
+ protoOf(TypeScriptEmitter).zr = emit_9;
2466
2466
  protoOf(TypeScriptEmitter).ur = emit_10;
2467
- protoOf(TypeScriptEmitter).as = emit_9;
2467
+ protoOf(TypeScriptEmitter).as = emit_8;
2468
2468
  protoOf(TypeScriptEmitter).nr = emit_2;
2469
2469
  protoOf(TypeScriptEmitter).bs = emitValidator;
2470
- protoOf(TypeScriptEmitter).u20 = sanitizeSymbol;
2471
- protoOf(TypeScriptEmitter).k1x = sanitizeSymbol_0;
2472
- protoOf(TypeScriptEmitter).v20 = emitPrimitive;
2473
- protoOf(TypeScriptEmitter).t20 = emitClient;
2470
+ protoOf(TypeScriptEmitter).s20 = sanitizeSymbol;
2471
+ protoOf(TypeScriptEmitter).i1x = sanitizeSymbol_0;
2472
+ protoOf(TypeScriptEmitter).t20 = emitPrimitive;
2473
+ protoOf(TypeScriptEmitter).r20 = emitClient;
2474
2474
  protoOf(TypeScriptEmitter).qq = emitClientEndpointRequest;
2475
- protoOf(TypeScriptIrEmitter).z1v = get_extensions;
2476
- protoOf(TypeScriptIrEmitter).a1w = emit_1;
2477
- protoOf(TypeScriptIrEmitter).e1w = beforeGenerate;
2475
+ protoOf(TypeScriptIrEmitter).x1v = get_extensions;
2476
+ protoOf(TypeScriptIrEmitter).y1v = emit_1;
2477
+ protoOf(TypeScriptIrEmitter).c1w = beforeGenerate;
2478
2478
  //endregion
2479
2479
  //region block: exports
2480
2480
  export {