@flock/wirespec 0.19.5 → 0.20.0-RC.1

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 (72) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +167 -167
  3. package/clikt-clikt-mordant.mjs +81 -81
  4. package/clikt-clikt-mordant.mjs.map +1 -1
  5. package/clikt-clikt.mjs +1636 -1636
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +448 -448
  8. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  9. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  10. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  12. package/kotest-kotest-common.mjs +56 -0
  13. package/kotest-kotest-common.mjs.map +1 -0
  14. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  15. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  16. package/kotest-kotest-property.mjs +2501 -0
  17. package/kotest-kotest-property.mjs.map +1 -0
  18. package/kotlin-kotlin-stdlib.mjs +5263 -2481
  19. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  20. package/kotlin-openapi-bindings.mjs +10243 -10243
  21. package/kotlin-openapi-bindings.mjs.map +1 -1
  22. package/kotlin-rgxgen.mjs +1846 -1846
  23. package/kotlin-rgxgen.mjs.map +1 -1
  24. package/kotlinx-coroutines-test.mjs +4 -0
  25. package/kotlinx-coroutines-test.mjs.map +1 -0
  26. package/kotlinx-io-kotlinx-io-core.mjs +455 -455
  27. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  28. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2135 -2101
  29. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  30. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1579 -1579
  31. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  32. package/mordant-mordant.mjs +1435 -1435
  33. package/package.json +5 -1
  34. package/wirespec-generator.d.ts +51 -0
  35. package/wirespec-generator.mjs +9 -0
  36. package/wirespec-src-compiler-core.mjs +1598 -1598
  37. package/wirespec-src-compiler-emitters-java.mjs +445 -445
  38. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  39. package/wirespec-src-compiler-emitters-kotlin.mjs +343 -343
  40. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  41. package/wirespec-src-compiler-emitters-python.mjs +429 -429
  42. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  43. package/wirespec-src-compiler-emitters-rust.mjs +482 -482
  44. package/wirespec-src-compiler-emitters-scala.mjs +194 -194
  45. package/wirespec-src-compiler-emitters-typescript.mjs +530 -530
  46. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  47. package/wirespec-src-compiler-emitters-wirespec.mjs +87 -87
  48. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  49. package/wirespec-src-compiler-ir.mjs +3887 -3863
  50. package/wirespec-src-compiler-ir.mjs.map +1 -1
  51. package/wirespec-src-compiler-lib.mjs +457 -457
  52. package/wirespec-src-compiler-lib.mjs.map +1 -1
  53. package/wirespec-src-converter-avro.mjs +521 -521
  54. package/wirespec-src-converter-avro.mjs.map +1 -1
  55. package/wirespec-src-converter-openapi.mjs +859 -859
  56. package/wirespec-src-converter-openapi.mjs.map +1 -1
  57. package/wirespec-src-ide-lsp.mjs +1387 -1387
  58. package/wirespec-src-ide-lsp.mjs.map +1 -1
  59. package/wirespec-src-integration-kotest.mjs +1647 -0
  60. package/wirespec-src-integration-kotest.mjs.map +1 -0
  61. package/wirespec-src-plugin-arguments.mjs +192 -192
  62. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  63. package/wirespec-src-plugin-cli.mjs +109 -109
  64. package/wirespec-src-plugin-npm.d.mts +21 -0
  65. package/wirespec-src-plugin-npm.mjs +43 -43
  66. package/wirespec-src-plugin-npm.mjs.map +1 -1
  67. package/wirespec-src-tools-generator.mjs +35 -35
  68. package/wirespec-src-tools-generator.mjs.map +1 -1
  69. package/xmlutil-core.mjs +4 -0
  70. package/xmlutil-core.mjs.map +1 -0
  71. package/xmlutil-serialization.mjs +4 -0
  72. package/xmlutil-serialization.mjs.map +1 -0
@@ -195,11 +195,11 @@ var imul = Math.imul;
195
195
  //endregion
196
196
  //region block: pre-declaration
197
197
  function emit_2(identifier) {
198
- return '"' + identifier.l1() + '"';
198
+ return '"' + identifier.m1() + '"';
199
199
  }
200
200
  initMetadataForInterface(TypeScriptIdentifierEmitter, 'TypeScriptIdentifierEmitter');
201
201
  function sanitizeSymbol(_this__u8e3s4) {
202
- return this.k1x(_this__u8e3s4.l1());
202
+ return this.v20(_this__u8e3s4.m1());
203
203
  }
204
204
  function sanitizeSymbol_0(_this__u8e3s4) {
205
205
  var tmp = asSequence_0(_this__u8e3s4);
@@ -213,9 +213,9 @@ function emit_3(type, module_0) {
213
213
  var _iterator__ex2g4s = this_0.t();
214
214
  while (_iterator__ex2g4s.u()) {
215
215
  var e = _iterator__ex2g4s.v();
216
- var key = e.bv_1;
217
- if (set.x(key)) {
218
- list.x(e);
216
+ var key = e.my_1;
217
+ if (set.y(key)) {
218
+ list.y(e);
219
219
  }
220
220
  }
221
221
  // Inline function 'kotlin.collections.map' call
@@ -224,19 +224,19 @@ function emit_3(type, module_0) {
224
224
  var _iterator__ex2g4s_0 = list.t();
225
225
  while (_iterator__ex2g4s_0.u()) {
226
226
  var item = _iterator__ex2g4s_0.v();
227
- var tmp$ret$2 = 'import {' + item.bv_1 + "} from './" + item.bv_1 + "'";
228
- destination.x(tmp$ret$2);
227
+ var tmp$ret$2 = 'import {' + item.my_1 + "} from './" + item.my_1 + "'";
228
+ destination.y(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.f24(type.ws_1) + ' = {\n |' + this.wt(type.xs_1) + '\n |}\n |\n ');
232
232
  }
233
233
  function emit_4(_this__u8e3s4) {
234
234
  var tmp;
235
235
  if (_this__u8e3s4 instanceof Dict) {
236
- tmp = 'Record<string, ' + this.nq(_this__u8e3s4.so_1) + '>';
236
+ tmp = 'Record<string, ' + this.yt(_this__u8e3s4.ds_1) + '>';
237
237
  } else {
238
238
  if (_this__u8e3s4 instanceof Iterable) {
239
- tmp = this.nq(_this__u8e3s4.po_1) + '[]';
239
+ tmp = this.yt(_this__u8e3s4.as_1) + '[]';
240
240
  } else {
241
241
  if (_this__u8e3s4 instanceof Unit) {
242
242
  tmp = 'void';
@@ -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.v20(_this__u8e3s4.my_1);
249
249
  } else {
250
250
  if (_this__u8e3s4 instanceof Primitive) {
251
- tmp = this.v20(_this__u8e3s4);
251
+ tmp = this.g24(_this__u8e3s4);
252
252
  } else {
253
253
  noWhenBranchMatchedException();
254
254
  }
@@ -258,10 +258,10 @@ function emit_4(_this__u8e3s4) {
258
258
  }
259
259
  }
260
260
  // Inline function 'kotlin.let' call
261
- return tmp + (_this__u8e3s4.tu() ? ' | undefined' : '');
261
+ return tmp + (_this__u8e3s4.ey() ? ' | undefined' : '');
262
262
  }
263
263
  function emitPrimitive(_this__u8e3s4) {
264
- var tmp0_subject = _this__u8e3s4.fv_1;
264
+ var tmp0_subject = _this__u8e3s4.qy_1;
265
265
  var tmp;
266
266
  if (tmp0_subject instanceof String_0) {
267
267
  tmp = 'string';
@@ -289,10 +289,10 @@ function emitPrimitive(_this__u8e3s4) {
289
289
  function emit_5(_this__u8e3s4) {
290
290
  var tmp;
291
291
  if (_this__u8e3s4 instanceof RegExp_0) {
292
- tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.pt_1) + '.test(value);';
292
+ tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ax_1) + '.test(value);';
293
293
  } else {
294
294
  if (_this__u8e3s4 instanceof Bound) {
295
- var tmp1_safe_receiver = _this__u8e3s4.fu_1;
295
+ var tmp1_safe_receiver = _this__u8e3s4.qx_1;
296
296
  var tmp_0;
297
297
  if (tmp1_safe_receiver == null) {
298
298
  tmp_0 = null;
@@ -301,7 +301,7 @@ function emit_5(_this__u8e3s4) {
301
301
  tmp_0 = tmp1_safe_receiver + ' < value';
302
302
  }
303
303
  var minCheck = tmp_0;
304
- var tmp2_safe_receiver = _this__u8e3s4.gu_1;
304
+ var tmp2_safe_receiver = _this__u8e3s4.rx_1;
305
305
  var tmp_1;
306
306
  if (tmp2_safe_receiver == null) {
307
307
  tmp_1 = null;
@@ -329,18 +329,18 @@ function emit_5(_this__u8e3s4) {
329
329
  return tmp;
330
330
  }
331
331
  function emit_6(_this__u8e3s4) {
332
- return joinToString(_this__u8e3s4.ip_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
332
+ return joinToString(_this__u8e3s4.ts_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
333
333
  }
334
334
  function emit_7(_this__u8e3s4) {
335
- return Spacer_instance.toString() + this.nr(_this__u8e3s4.qp_1) + ': ' + this.nq(_this__u8e3s4.rp_1);
335
+ return Spacer_instance.toString() + this.yu(_this__u8e3s4.bt_1) + ': ' + this.yt(_this__u8e3s4.ct_1);
336
336
  }
337
337
  initMetadataForInterface(TypeScriptTypeDefinitionEmitter, 'TypeScriptTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, TypeScriptIdentifierEmitter]);
338
338
  function emitClient(ast) {
339
- var tmp = 'client.' + this.uq().dr_1;
340
- var tmp_0 = this.qq(ast);
339
+ var tmp = 'client.' + this.fu().ou_1;
340
+ var tmp_0 = this.bu(ast);
341
341
  var tmp_1 = joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda);
342
342
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
343
- var this_0 = ast.rq_1;
343
+ var this_0 = ast.cu_1;
344
344
  // Inline function 'kotlin.collections.flatMap' call
345
345
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
346
346
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -348,7 +348,7 @@ function emitClient(ast) {
348
348
  var _iterator__ex2g4s = tmp0.t();
349
349
  while (_iterator__ex2g4s.u()) {
350
350
  var element = _iterator__ex2g4s.v();
351
- var list = new NonEmptyList(element.tq_1);
351
+ var list = new NonEmptyList(element.eu_1);
352
352
  addAll(destination, list);
353
353
  }
354
354
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -368,99 +368,42 @@ function emitClient(ast) {
368
368
  var _iterator__ex2g4s_1 = destination_0.t();
369
369
  while (_iterator__ex2g4s_1.u()) {
370
370
  var e = _iterator__ex2g4s_1.v();
371
- var key = e.bv_1;
372
- if (set.x(key)) {
373
- list_1.x(e);
371
+ var key = e.my_1;
372
+ if (set.y(key)) {
373
+ list_1.y(e);
374
374
  }
375
375
  }
376
376
  var tmp_2 = list_1;
377
377
  var tmp_3 = joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_0);
378
- var tmp_4 = this.qq(ast);
378
+ var tmp_4 = this.bu(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) {
388
- // Inline function 'kotlin.collections.distinctBy' call
389
- var this_0 = importReferences(endpoint);
390
- var set = HashSet_init_$Create$();
391
- var list = ArrayList_init_$Create$();
392
- var _iterator__ex2g4s = this_0.t();
393
- while (_iterator__ex2g4s.u()) {
394
- var e = _iterator__ex2g4s.v();
395
- var key = e.bv_1;
396
- if (set.x(key)) {
397
- list.x(e);
398
- }
399
- }
400
- // Inline function 'kotlin.collections.map' call
401
- // Inline function 'kotlin.collections.mapTo' call
402
- var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
403
- var _iterator__ex2g4s_0 = list.t();
404
- while (_iterator__ex2g4s_0.u()) {
405
- var item = _iterator__ex2g4s_0.v();
406
- var tmp$ret$2 = 'import {type ' + item.bv_1 + "} from '../model'";
407
- destination.x(tmp$ret$2);
408
- }
409
- var tmp = destination;
410
- var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
411
- var tmp_1 = this.u20(endpoint.up_1);
412
- var tmp_2 = get_pathParams(endpoint);
413
- var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
414
- var tmp_4 = emitType(this, endpoint.xp_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
415
- var tmp_5 = emitType(this, endpoint.yp_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
416
- var tmp_6 = emitType_1(this, first(endpoint.zp_1), endpoint);
417
- var tmp_7 = distinctByStatus(endpoint.aq_1);
418
- var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
419
- var tmp_9 = Spacer_instance.toString();
420
- var tmp_10 = distinctByStatus(endpoint.aq_1);
421
- var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
422
- var tmp_12 = emitFunction_0(this, first(endpoint.zp_1), endpoint);
423
- var tmp_13 = distinctByStatus(endpoint.aq_1);
424
- var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
425
- var tmp_15 = Spacer_instance.toString();
426
- var tmp_16 = Spacer_instance.hs(2);
427
- var tmp_17 = emitHandleFunction(this, endpoint);
428
- var tmp_18 = Spacer_instance.toString();
429
- var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.hs(1));
430
- var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.hs(1));
431
- var tmp_21 = Spacer_instance.toString();
432
- var tmp_22 = Spacer_instance.hs(2);
433
- var tmp_23 = Companion_instance_0.fr(this.u20(endpoint.up_1));
434
- var tmp_24 = Spacer_instance.hs(2);
435
- var tmp_25 = Spacer_instance.hs(2);
436
- 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
- }
438
- initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
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 ');
382
+ function emit_8(refined) {
383
+ return trimMargin('\n |export type ' + this.f24(refined.dv_1) + ' = ' + this.yt(refined.ev_1) + ';\n |export const validate' + refined.dv_1.m1() + ' = (value: ' + this.yt(refined.ev_1) + '): value is ' + this.f24(refined.dv_1) + ' => {\n |' + this.mv(refined) + '\n |}\n |\n ');
441
384
  }
442
385
  function emitValidator(_this__u8e3s4) {
443
386
  var defaultReturn = Spacer_instance.toString() + 'return true;';
444
- var type = _this__u8e3s4.tr_1.fv_1;
387
+ var type = _this__u8e3s4.ev_1.qy_1;
445
388
  var tmp;
446
389
  if (type instanceof Integer) {
447
- var tmp0_safe_receiver = type.ku_1;
448
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.oq(tmp0_safe_receiver);
390
+ var tmp0_safe_receiver = type.vx_1;
391
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.zt(tmp0_safe_receiver);
449
392
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
450
393
  } else {
451
394
  if (type instanceof Number_0) {
452
- var tmp2_safe_receiver = type.nu_1;
453
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.oq(tmp2_safe_receiver);
395
+ var tmp2_safe_receiver = type.yx_1;
396
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.zt(tmp2_safe_receiver);
454
397
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
455
398
  } else {
456
399
  if (type instanceof String_0) {
457
- var tmp4_safe_receiver = type.hu_1;
400
+ var tmp4_safe_receiver = type.sx_1;
458
401
  var tmp_0;
459
402
  var tmp_1 = tmp4_safe_receiver;
460
403
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
461
404
  tmp_0 = null;
462
405
  } else {
463
- tmp_0 = this.oq(new RegExp_0(tmp4_safe_receiver));
406
+ tmp_0 = this.zt(new RegExp_0(tmp4_safe_receiver));
464
407
  }
465
408
  var tmp5_elvis_lhs = tmp_0;
466
409
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -480,7 +423,64 @@ function emitValidator(_this__u8e3s4) {
480
423
  return tmp;
481
424
  }
482
425
  initMetadataForInterface(TypeScriptRefinedTypeDefinitionEmitter, 'TypeScriptRefinedTypeDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
483
- initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptIdentifierEmitter, TypeScriptClientEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptTypeDefinitionEmitter]);
426
+ function emit_9(enum_0, module_0) {
427
+ var tmp = this.f24(enum_0.iv_1);
428
+ return 'export type ' + tmp + ' = ' + joinToString(enum_0.jv_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
429
+ }
430
+ initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
431
+ function emit_10(endpoint) {
432
+ // Inline function 'kotlin.collections.distinctBy' call
433
+ var this_0 = importReferences(endpoint);
434
+ var set = HashSet_init_$Create$();
435
+ var list = ArrayList_init_$Create$();
436
+ var _iterator__ex2g4s = this_0.t();
437
+ while (_iterator__ex2g4s.u()) {
438
+ var e = _iterator__ex2g4s.v();
439
+ var key = e.my_1;
440
+ if (set.y(key)) {
441
+ list.y(e);
442
+ }
443
+ }
444
+ // Inline function 'kotlin.collections.map' call
445
+ // Inline function 'kotlin.collections.mapTo' call
446
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(list, 10));
447
+ var _iterator__ex2g4s_0 = list.t();
448
+ while (_iterator__ex2g4s_0.u()) {
449
+ var item = _iterator__ex2g4s_0.v();
450
+ var tmp$ret$2 = 'import {type ' + item.my_1 + "} from '../model'";
451
+ destination.y(tmp$ret$2);
452
+ }
453
+ var tmp = destination;
454
+ var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
455
+ var tmp_1 = this.f24(endpoint.ft_1);
456
+ var tmp_2 = get_pathParams(endpoint);
457
+ var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
458
+ var tmp_4 = emitType(this, endpoint.it_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
459
+ var tmp_5 = emitType(this, endpoint.jt_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
460
+ var tmp_6 = emitType_1(this, first(endpoint.kt_1), endpoint);
461
+ var tmp_7 = distinctByStatus(endpoint.lt_1);
462
+ var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
463
+ var tmp_9 = Spacer_instance.toString();
464
+ var tmp_10 = distinctByStatus(endpoint.lt_1);
465
+ var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
466
+ var tmp_12 = emitFunction_0(this, first(endpoint.kt_1), endpoint);
467
+ var tmp_13 = distinctByStatus(endpoint.lt_1);
468
+ var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
469
+ var tmp_15 = Spacer_instance.toString();
470
+ var tmp_16 = Spacer_instance.sv(2);
471
+ var tmp_17 = emitHandleFunction(this, endpoint);
472
+ var tmp_18 = Spacer_instance.toString();
473
+ var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.sv(1));
474
+ var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.sv(1));
475
+ var tmp_21 = Spacer_instance.toString();
476
+ var tmp_22 = Spacer_instance.sv(2);
477
+ var tmp_23 = Companion_instance_0.qu(this.f24(endpoint.ft_1));
478
+ var tmp_24 = Spacer_instance.sv(2);
479
+ var tmp_25 = Spacer_instance.sv(2);
480
+ 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.gt_1.b3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.ht_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.sv(2) + 'server,\n |' + Spacer_instance.sv(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
481
+ }
482
+ initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
483
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptClientEmitter]);
484
484
  initMetadataForClass(EndpointParam, 'EndpointParam');
485
485
  initMetadataForCompanion(Companion);
486
486
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
@@ -516,10 +516,10 @@ function emitClientInterface($this, _this__u8e3s4, endpoint) {
516
516
  return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
517
517
  }
518
518
  function emitFunction($this, endpoint, request) {
519
- var tmp = endpoint.up_1.l1();
519
+ var tmp = endpoint.ft_1.m1();
520
520
  var tmp_0 = emitClientInterface($this, request, endpoint);
521
521
  var tmp_1 = Spacer_instance.toString();
522
- var tmp_2 = endpoint.up_1.l1();
522
+ var tmp_2 = endpoint.ft_1.m1();
523
523
  // Inline function 'kotlin.takeIf' call
524
524
  var this_0 = paramList(request, endpoint);
525
525
  var tmp_3;
@@ -539,31 +539,31 @@ function emitFunction($this, endpoint, request) {
539
539
  // Inline function 'kotlin.text.orEmpty' call
540
540
  var tmp0_elvis_lhs = tmp_4;
541
541
  var tmp$ret$5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
542
- return trimMargin('\n |' + tmp + ': async (' + tmp_0 + ') => {\n |' + tmp_1 + 'const req = ' + tmp_2 + '.request(' + tmp$ret$5 + ')\n |' + Spacer_instance.toString() + 'const rawRequest = ' + endpoint.up_1.l1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.up_1.l1() + '.client(serialization).from(rawResponse)\n |},\n ');
542
+ return trimMargin('\n |' + tmp + ': async (' + tmp_0 + ') => {\n |' + tmp_1 + 'const req = ' + tmp_2 + '.request(' + tmp$ret$5 + ')\n |' + Spacer_instance.toString() + 'const rawRequest = ' + endpoint.ft_1.m1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ft_1.m1() + '.client(serialization).from(rawResponse)\n |},\n ');
543
543
  }
544
544
  function TypeScriptClientEmitter$emitClient$lambda(_destruct__k2r9zo) {
545
- var endpoint = _destruct__k2r9zo.ve();
546
- return 'import {' + endpoint.up_1.l1() + '} from "./endpoint/' + endpoint.up_1.l1() + '"';
545
+ var endpoint = _destruct__k2r9zo.mf();
546
+ return 'import {' + endpoint.ft_1.m1() + '} from "./endpoint/' + endpoint.ft_1.m1() + '"';
547
547
  }
548
548
  function TypeScriptClientEmitter$emitClient$lambda_0(it) {
549
- return 'import {type ' + it.bv_1 + '} from "./model/' + it.bv_1 + '"';
549
+ return 'import {type ' + it.my_1 + '} from "./model/' + it.my_1 + '"';
550
550
  }
551
551
  function TypeScriptClientEmitter$emitClient$lambda_1(this$0) {
552
552
  return function (_destruct__k2r9zo) {
553
- var endpoint = _destruct__k2r9zo.ve();
554
- var request = _destruct__k2r9zo.we();
553
+ var endpoint = _destruct__k2r9zo.mf();
554
+ var request = _destruct__k2r9zo.nf();
555
555
  return emitFunction(this$0, endpoint, request);
556
556
  };
557
557
  }
558
558
  function TypeScriptClientEmitter$emitClientInterface$lambda(this$0) {
559
559
  return function (it) {
560
- return this$0.nr(it.zq_1) + ': ' + this$0.nq(it.ar_1);
560
+ return this$0.yu(it.ku_1) + ': ' + this$0.yt(it.lu_1);
561
561
  };
562
562
  }
563
563
  function TypeScriptClientEmitter() {
564
564
  }
565
565
  function TypeScriptEmitter$emit$lambda(it) {
566
- return 'export {' + it.mr().l1() + "} from './" + it.mr().l1() + "'";
566
+ return 'export {' + it.xu().m1() + "} from './" + it.xu().m1() + "'";
567
567
  }
568
568
  function TypeScriptEmitter$emit$lambda_0(it) {
569
569
  // Inline function 'kotlin.text.trimStart' call
@@ -571,36 +571,36 @@ function TypeScriptEmitter$emit$lambda_0(it) {
571
571
  }
572
572
  function TypeScriptEmitter$emit$lambda_1(this$0) {
573
573
  return function (it) {
574
- return this$0.nq(it);
574
+ return this$0.yt(it);
575
575
  };
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.h24_1 = FileExtension_TypeScript_getInstance();
580
+ this.i24_1 = TypeScriptShared_getInstance();
581
+ this.j24_1 = '//';
582
582
  }
583
- protoOf(TypeScriptEmitter).uq = function () {
584
- return this.w20_1;
583
+ protoOf(TypeScriptEmitter).fu = function () {
584
+ return this.h24_1;
585
585
  };
586
- protoOf(TypeScriptEmitter).h1x = function () {
587
- return this.x20_1;
586
+ protoOf(TypeScriptEmitter).s20 = function () {
587
+ return this.i24_1;
588
588
  };
589
- protoOf(TypeScriptEmitter).vq = function () {
590
- return this.y20_1;
589
+ protoOf(TypeScriptEmitter).gu = function () {
590
+ return this.j24_1;
591
591
  };
592
- protoOf(TypeScriptEmitter).eo = function (ast, logger) {
592
+ protoOf(TypeScriptEmitter).pr = function (ast, logger) {
593
593
  // Inline function 'kotlin.run' call
594
- var $this$run = protoOf(LanguageEmitter).eo.call(this, ast, logger);
594
+ var $this$run = protoOf(LanguageEmitter).pr.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.e24(ast));
598
598
  } else {
599
599
  tmp = $this$run;
600
600
  }
601
601
  var tmp_0 = tmp;
602
602
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
603
- var this_0 = ast.rq_1;
603
+ var this_0 = ast.cu_1;
604
604
  // Inline function 'kotlin.collections.flatMap' call
605
605
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
606
606
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -608,7 +608,7 @@ protoOf(TypeScriptEmitter).eo = function (ast, logger) {
608
608
  var _iterator__ex2g4s = tmp0.t();
609
609
  while (_iterator__ex2g4s.u()) {
610
610
  var element = _iterator__ex2g4s.v();
611
- var list = new NonEmptyList(element.tq_1);
611
+ var list = new NonEmptyList(element.eu_1);
612
612
  addAll(destination, list);
613
613
  }
614
614
  var tmp$ret$5 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -621,47 +621,47 @@ protoOf(TypeScriptEmitter).eo = function (ast, logger) {
621
621
  var element_0 = _iterator__ex2g4s_0.v();
622
622
  var key = namespace(element_0);
623
623
  // Inline function 'kotlin.collections.getOrPut' call
624
- var value = destination_0.p2(key);
624
+ var value = destination_0.q2(key);
625
625
  var tmp_1;
626
626
  if (value == null) {
627
627
  var answer = ArrayList_init_$Create$();
628
- destination_0.s2(key, answer);
628
+ destination_0.t2(key, answer);
629
629
  tmp_1 = answer;
630
630
  } else {
631
631
  tmp_1 = value;
632
632
  }
633
633
  var list_0 = tmp_1;
634
- list_0.x(element_0);
634
+ list_0.y(element_0);
635
635
  }
636
636
  // Inline function 'kotlin.collections.map' call
637
637
  // Inline function 'kotlin.collections.mapTo' call
638
- var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
638
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
639
639
  // Inline function 'kotlin.collections.iterator' call
640
- var _iterator__ex2g4s_1 = destination_0.j1().t();
640
+ var _iterator__ex2g4s_1 = destination_0.k1().t();
641
641
  while (_iterator__ex2g4s_1.u()) {
642
642
  var item = _iterator__ex2g4s_1.v();
643
643
  // Inline function 'kotlin.collections.component1' call
644
- var ns = item.k1();
644
+ var ns = item.l1();
645
645
  // Inline function 'kotlin.collections.component2' call
646
- var defs = item.l1();
647
- var tmp_2 = ns + '/index.' + this.uq().dr_1;
646
+ var defs = item.m1();
647
+ var tmp_2 = ns + '/index.' + this.fu().ou_1;
648
648
  var tmp$ret$14 = new Emitted(tmp_2, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
649
- destination_1.x(tmp$ret$14);
649
+ destination_1.y(tmp$ret$14);
650
650
  }
651
651
  return NonEmptyList__plus_impl_xqmb9_0(tmp_0, destination_1);
652
652
  };
653
- protoOf(TypeScriptEmitter).kr = function (module_0, logger) {
653
+ protoOf(TypeScriptEmitter).vu = function (module_0, logger) {
654
654
  // Inline function 'kotlin.let' call
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));
655
+ var it = protoOf(LanguageEmitter).vu.call(this, module_0, logger);
656
+ return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.s20().l24_1));
657
657
  };
658
- protoOf(TypeScriptEmitter).lr = function (definition, module_0, logger) {
658
+ protoOf(TypeScriptEmitter).wu = function (definition, module_0, logger) {
659
659
  // Inline function 'kotlin.let' call
660
- var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
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 '));
660
+ var it = protoOf(LanguageEmitter).wu.call(this, definition, module_0, logger);
661
+ var subPackageName = plus(Companion_instance.nv(''), definition);
662
+ return new Emitted(subPackageName.qv() + this.v20(it.js_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.ks_1 + '\n '));
663
663
  };
664
- protoOf(TypeScriptEmitter).pr = function (union) {
664
+ protoOf(TypeScriptEmitter).av = function (union) {
665
665
  // Inline function 'kotlin.collections.distinctBy' call
666
666
  var this_0 = importReferences(union);
667
667
  var set = HashSet_init_$Create$();
@@ -669,9 +669,9 @@ protoOf(TypeScriptEmitter).pr = function (union) {
669
669
  var _iterator__ex2g4s = this_0.t();
670
670
  while (_iterator__ex2g4s.u()) {
671
671
  var e = _iterator__ex2g4s.v();
672
- var key = e.bv_1;
673
- if (set.x(key)) {
674
- list.x(e);
672
+ var key = e.my_1;
673
+ if (set.y(key)) {
674
+ list.y(e);
675
675
  }
676
676
  }
677
677
  // Inline function 'kotlin.collections.map' call
@@ -680,24 +680,24 @@ protoOf(TypeScriptEmitter).pr = function (union) {
680
680
  var _iterator__ex2g4s_0 = list.t();
681
681
  while (_iterator__ex2g4s_0.u()) {
682
682
  var item = _iterator__ex2g4s_0.v();
683
- var tmp$ret$2 = 'import {type ' + item.bv_1 + "} from '../model'";
684
- destination.x(tmp$ret$2);
683
+ var tmp$ret$2 = 'import {type ' + item.my_1 + "} from '../model'";
684
+ destination.y(tmp$ret$2);
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);
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 ');
688
+ var tmp_1 = this.f24(union.rs_1);
689
+ return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ss_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
690
690
  };
691
- protoOf(TypeScriptEmitter).or = function (channel) {
692
- return this.wq();
691
+ protoOf(TypeScriptEmitter).zu = function (channel) {
692
+ return this.hu();
693
693
  };
694
694
  function emit_11($this, _this__u8e3s4) {
695
695
  var tmp;
696
696
  if (_this__u8e3s4 instanceof Literal) {
697
- tmp = _this__u8e3s4.xq_1;
697
+ tmp = _this__u8e3s4.iu_1;
698
698
  } else {
699
699
  if (_this__u8e3s4 instanceof Param) {
700
- tmp = ':' + _this__u8e3s4.bq_1.l1();
700
+ tmp = ':' + _this__u8e3s4.mt_1.m1();
701
701
  } else {
702
702
  noWhenBranchMatchedException();
703
703
  }
@@ -705,64 +705,64 @@ function emit_11($this, _this__u8e3s4) {
705
705
  return tmp;
706
706
  }
707
707
  function emitClient_0($this, _this__u8e3s4) {
708
- return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.hs(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.hs(1)) + '\n |})\n ');
708
+ return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.sv(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.sv(1)) + '\n |})\n ');
709
709
  }
710
710
  function emitClientTo($this, _this__u8e3s4) {
711
- var tmp = Spacer_instance.hs(1);
711
+ var tmp = Spacer_instance.sv(1);
712
712
  // Inline function 'kotlin.text.uppercase' call
713
713
  // Inline function 'kotlin.js.asDynamic' call
714
- var tmp_0 = _this__u8e3s4.vp_1.a3_1.toUpperCase();
715
- var tmp_1 = Spacer_instance.hs(1);
714
+ var tmp_0 = _this__u8e3s4.gt_1.b3_1.toUpperCase();
715
+ var tmp_1 = Spacer_instance.sv(1);
716
716
  var tmp_2 = emitPathArray($this, _this__u8e3s4);
717
- var tmp_3 = Spacer_instance.hs(1);
718
- var tmp_4 = joinToString(_this__u8e3s4.xp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
719
- var tmp_5 = Spacer_instance.hs(1);
720
- return trimMargin('\n |to: (it) => ({\n |' + tmp + 'method: "' + tmp_0 + '",\n |' + tmp_1 + 'path: ' + tmp_2 + ',\n |' + tmp_3 + 'queries: {' + tmp_4 + '},\n |' + tmp_5 + 'headers: {' + joinToString(_this__u8e3s4.yp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.hs(1) + 'body: serialization.serialize(it.body)\n |})\n ');
717
+ var tmp_3 = Spacer_instance.sv(1);
718
+ var tmp_4 = joinToString(_this__u8e3s4.it_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
719
+ var tmp_5 = Spacer_instance.sv(1);
720
+ return trimMargin('\n |to: (it) => ({\n |' + tmp + 'method: "' + tmp_0 + '",\n |' + tmp_1 + 'path: ' + tmp_2 + ',\n |' + tmp_3 + 'queries: {' + tmp_4 + '},\n |' + tmp_5 + 'headers: {' + joinToString(_this__u8e3s4.jt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.sv(1) + 'body: serialization.serialize(it.body)\n |})\n ');
721
721
  }
722
722
  function emitClientFrom($this, _this__u8e3s4) {
723
- var tmp = Spacer_instance.hs(1);
724
- var tmp_0 = distinctByStatus(_this__u8e3s4.aq_1);
725
- return trimMargin('\n |from: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFrom$lambda($this)), Spacer_instance.hs(2)) + '\n |' + Spacer_instance.hs(2) + 'default:\n |' + Spacer_instance.hs(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
723
+ var tmp = Spacer_instance.sv(1);
724
+ var tmp_0 = distinctByStatus(_this__u8e3s4.lt_1);
725
+ return trimMargin('\n |from: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFrom$lambda($this)), Spacer_instance.sv(2)) + '\n |' + Spacer_instance.sv(2) + 'default:\n |' + Spacer_instance.sv(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.sv(1) + '}\n |}\n ');
726
726
  }
727
727
  function emitClientFromResponse($this, _this__u8e3s4) {
728
- var tmp = fixStatus(_this__u8e3s4.gq_1);
729
- var tmp_0 = Spacer_instance.hs(1);
730
- var tmp_1 = Spacer_instance.hs(2);
731
- var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
732
- var tmp_3 = Spacer_instance.hs(2);
733
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.hs(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.hs(1) + '};\n ');
728
+ var tmp = fixStatus(_this__u8e3s4.rt_1);
729
+ var tmp_0 = Spacer_instance.sv(1);
730
+ var tmp_1 = Spacer_instance.sv(2);
731
+ var tmp_2 = fixStatus(_this__u8e3s4.rt_1);
732
+ var tmp_3 = Spacer_instance.sv(2);
733
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.st_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.sv(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.sv(1) + '};\n ');
734
734
  }
735
735
  function emitServer($this, _this__u8e3s4) {
736
- return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.hs(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.hs(1)) + '\n |})\n ');
736
+ return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.sv(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.sv(1)) + '\n |})\n ');
737
737
  }
738
738
  function emitServerFrom($this, _this__u8e3s4) {
739
- var tmp = Spacer_instance.hs(1);
740
- var tmp_0 = Spacer_instance.hs(2);
739
+ var tmp = Spacer_instance.sv(1);
740
+ var tmp_0 = Spacer_instance.sv(2);
741
741
  // Inline function 'kotlin.text.uppercase' call
742
742
  // Inline function 'kotlin.js.asDynamic' call
743
- var tmp_1 = _this__u8e3s4.vp_1.a3_1.toUpperCase();
744
- var tmp_2 = Spacer_instance.hs(2);
743
+ var tmp_1 = _this__u8e3s4.gt_1.b3_1.toUpperCase();
744
+ var tmp_2 = Spacer_instance.sv(2);
745
745
  var tmp_3 = get_indexedPathParams(_this__u8e3s4);
746
- var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.hs(3));
747
- var tmp_5 = Spacer_instance.hs(2);
748
- var tmp_6 = Spacer_instance.hs(2);
749
- var tmp_7 = joinToString(_this__u8e3s4.xp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
750
- var tmp_8 = Spacer_instance.hs(2);
751
- var tmp_9 = Spacer_instance.hs(2);
752
- return trimMargin('\n |from: (it) => {\n |' + tmp + 'return {\n |' + tmp_0 + 'method: "' + tmp_1 + '",\n |' + tmp_2 + 'path: {\n |' + tmp_4 + '\n |' + tmp_5 + '},\n |' + tmp_6 + 'queries: {\n |' + tmp_7 + '\n |' + tmp_8 + '},\n |' + tmp_9 + 'headers: {\n |' + joinToString(_this__u8e3s4.yp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.hs(2) + '},\n |' + Spacer_instance.hs(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
746
+ var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.sv(3));
747
+ var tmp_5 = Spacer_instance.sv(2);
748
+ var tmp_6 = Spacer_instance.sv(2);
749
+ var tmp_7 = joinToString(_this__u8e3s4.it_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
750
+ var tmp_8 = Spacer_instance.sv(2);
751
+ var tmp_9 = Spacer_instance.sv(2);
752
+ return trimMargin('\n |from: (it) => {\n |' + tmp + 'return {\n |' + tmp_0 + 'method: "' + tmp_1 + '",\n |' + tmp_2 + 'path: {\n |' + tmp_4 + '\n |' + tmp_5 + '},\n |' + tmp_6 + 'queries: {\n |' + tmp_7 + '\n |' + tmp_8 + '},\n |' + tmp_9 + 'headers: {\n |' + joinToString(_this__u8e3s4.jt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.sv(2) + '},\n |' + Spacer_instance.sv(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.sv(1) + '}\n |}\n ');
753
753
  }
754
754
  function emitServerTo($this, _this__u8e3s4) {
755
- var tmp = Spacer_instance.hs(1);
756
- var tmp_0 = distinctByStatus(_this__u8e3s4.aq_1);
757
- return trimMargin('\n |to: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda($this)), Spacer_instance.hs(2)) + '\n |' + Spacer_instance.hs(1) + '}\n |}\n ');
755
+ var tmp = Spacer_instance.sv(1);
756
+ var tmp_0 = distinctByStatus(_this__u8e3s4.lt_1);
757
+ return trimMargin('\n |to: (it) => {\n |' + tmp + 'switch (it.status) {\n |' + prependIndent(joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda($this)), Spacer_instance.sv(2)) + '\n |' + Spacer_instance.sv(1) + '}\n |}\n ');
758
758
  }
759
759
  function emitServerToResponse($this, _this__u8e3s4) {
760
- var tmp = fixStatus(_this__u8e3s4.gq_1);
761
- var tmp_0 = Spacer_instance.hs(1);
762
- var tmp_1 = Spacer_instance.hs(2);
763
- var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
764
- var tmp_3 = Spacer_instance.hs(2);
765
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.hq_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.hs(3)) + '\n |' + Spacer_instance.hs(2) + '} as Record<string, string>,\n |' + Spacer_instance.hs(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.hs(1) + '};\n ');
760
+ var tmp = fixStatus(_this__u8e3s4.rt_1);
761
+ var tmp_0 = Spacer_instance.sv(1);
762
+ var tmp_1 = Spacer_instance.sv(2);
763
+ var tmp_2 = fixStatus(_this__u8e3s4.rt_1);
764
+ var tmp_3 = Spacer_instance.sv(2);
765
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.st_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.sv(3)) + '\n |' + Spacer_instance.sv(2) + '} as Record<string, string>,\n |' + Spacer_instance.sv(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.sv(1) + '};\n ');
766
766
  }
767
767
  function emitType($this, _this__u8e3s4, name, block) {
768
768
  var tmp;
@@ -775,7 +775,7 @@ function emitType($this, _this__u8e3s4, name, block) {
775
775
  return tmp;
776
776
  }
777
777
  function emitName($this, _this__u8e3s4) {
778
- return 'Response' + Companion_instance_0.er(_this__u8e3s4.gq_1);
778
+ return 'Response' + Companion_instance_0.pu(_this__u8e3s4.rt_1);
779
779
  }
780
780
  function emitFunction_0($this, _this__u8e3s4, endpoint) {
781
781
  var tmp = Spacer_instance.toString();
@@ -801,18 +801,18 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
801
801
  // Inline function 'kotlin.text.orEmpty' call
802
802
  var tmp0_elvis_lhs = tmp_4;
803
803
  var tmp_5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
804
- var tmp_6 = Spacer_instance.hs(2);
804
+ var tmp_6 = Spacer_instance.sv(2);
805
805
  var tmp_7 = get_pathParams(endpoint);
806
806
  var tmp_8 = joinToObject($this, tmp_7, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0($this));
807
- var tmp_9 = Spacer_instance.hs(2);
808
- var tmp_10 = endpoint.vp_1.toString();
809
- var tmp_11 = Spacer_instance.hs(2);
810
- var tmp_12 = joinToObject($this, endpoint.xp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
811
- var tmp_13 = Spacer_instance.hs(2);
812
- var tmp_14 = joinToObject($this, endpoint.yp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
813
- var tmp_15 = Spacer_instance.hs(2);
807
+ var tmp_9 = Spacer_instance.sv(2);
808
+ var tmp_10 = endpoint.gt_1.toString();
809
+ var tmp_11 = Spacer_instance.sv(2);
810
+ var tmp_12 = joinToObject($this, endpoint.it_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
811
+ var tmp_13 = Spacer_instance.sv(2);
812
+ var tmp_14 = joinToObject($this, endpoint.jt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
813
+ var tmp_15 = Spacer_instance.sv(2);
814
814
  var tmp_16;
815
- if (_this__u8e3s4.dq_1 == null) {
815
+ if (_this__u8e3s4.ot_1 == null) {
816
816
  tmp_16 = null;
817
817
  } else {
818
818
  // Inline function 'kotlin.let' call
@@ -823,11 +823,11 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
823
823
  }
824
824
  function emitFunction_1($this, _this__u8e3s4) {
825
825
  var tmp = Spacer_instance.toString();
826
- var tmp_0 = Companion_instance_0.er(_this__u8e3s4.gq_1);
826
+ var tmp_0 = Companion_instance_0.pu(_this__u8e3s4.rt_1);
827
827
  var tmp_1 = paramList_0(_this__u8e3s4);
828
828
  var tmp_2 = joinToObject($this, tmp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3($this));
829
829
  var tmp_3 = Spacer_instance.toString();
830
- var tmp_4 = Companion_instance_0.er(_this__u8e3s4.gq_1);
830
+ var tmp_4 = Companion_instance_0.pu(_this__u8e3s4.rt_1);
831
831
  // Inline function 'kotlin.takeIf' call
832
832
  var this_0 = paramList_0(_this__u8e3s4);
833
833
  var tmp_5;
@@ -842,19 +842,19 @@ function emitFunction_1($this, _this__u8e3s4) {
842
842
  tmp_6 = null;
843
843
  } else {
844
844
  // Inline function 'kotlin.run' call
845
- tmp_6 = 'params: Response' + Companion_instance_0.er(_this__u8e3s4.gq_1) + 'Params';
845
+ tmp_6 = 'params: Response' + Companion_instance_0.pu(_this__u8e3s4.rt_1) + 'Params';
846
846
  }
847
847
  // Inline function 'kotlin.text.orEmpty' call
848
848
  var tmp0_elvis_lhs = tmp_6;
849
849
  var tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
850
- var tmp_8 = Companion_instance_0.er(_this__u8e3s4.gq_1);
851
- var tmp_9 = Spacer_instance.hs(2);
852
- var tmp_10 = fixStatus(_this__u8e3s4.gq_1);
853
- var tmp_11 = Spacer_instance.hs(2);
854
- var tmp_12 = joinToObject($this, _this__u8e3s4.hq_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
855
- var tmp_13 = Spacer_instance.hs(2);
850
+ var tmp_8 = Companion_instance_0.pu(_this__u8e3s4.rt_1);
851
+ var tmp_9 = Spacer_instance.sv(2);
852
+ var tmp_10 = fixStatus(_this__u8e3s4.rt_1);
853
+ var tmp_11 = Spacer_instance.sv(2);
854
+ var tmp_12 = joinToObject($this, _this__u8e3s4.st_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
855
+ var tmp_13 = Spacer_instance.sv(2);
856
856
  var tmp_14;
857
- if (_this__u8e3s4.iq_1 == null) {
857
+ if (_this__u8e3s4.tt_1 == null) {
858
858
  tmp_14 = null;
859
859
  } else {
860
860
  // Inline function 'kotlin.let' call
@@ -864,60 +864,60 @@ function emitFunction_1($this, _this__u8e3s4) {
864
864
  return trimMargin('\n |' + tmp + 'export type Response' + tmp_0 + 'Params = ' + tmp_2 + '\n |' + tmp_3 + 'export const response' + tmp_4 + ' = (' + tmp_7 + '): Response' + tmp_8 + ' => ({\n |' + tmp_9 + 'status: ' + tmp_10 + ',\n |' + tmp_11 + 'headers: ' + tmp_12 + ',\n |' + tmp_13 + 'body: ' + (tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs) + ',\n |' + Spacer_instance.toString() + '})\n ');
865
865
  }
866
866
  function emitReference($this, _this__u8e3s4) {
867
- var tmp0_safe_receiver = _this__u8e3s4.iq_1;
868
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
869
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
867
+ var tmp0_safe_receiver = _this__u8e3s4.tt_1;
868
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qt_1;
869
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.yt(tmp1_safe_receiver);
870
870
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
871
871
  }
872
872
  function emitPathArray($this, _this__u8e3s4) {
873
- return joinToString(_this__u8e3s4.wp_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
873
+ return joinToString(_this__u8e3s4.ht_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
874
874
  }
875
875
  function emitType_0($this, _this__u8e3s4) {
876
876
  var tmp = Spacer_instance.toString();
877
877
  var tmp_0 = emitName($this, _this__u8e3s4);
878
- var tmp_1 = Spacer_instance.hs(2);
879
- var tmp_2 = fixStatus(_this__u8e3s4.gq_1);
880
- var tmp_3 = Spacer_instance.hs(2);
881
- return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hq_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.hs(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
878
+ var tmp_1 = Spacer_instance.sv(2);
879
+ var tmp_2 = fixStatus(_this__u8e3s4.rt_1);
880
+ var tmp_3 = Spacer_instance.sv(2);
881
+ return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.st_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.sv(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
882
882
  }
883
883
  function emitReference_0($this, _this__u8e3s4) {
884
- var tmp0_safe_receiver = _this__u8e3s4.dq_1;
885
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fq_1;
886
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nq(tmp1_safe_receiver);
884
+ var tmp0_safe_receiver = _this__u8e3s4.ot_1;
885
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.qt_1;
886
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.yt(tmp1_safe_receiver);
887
887
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
888
888
  }
889
889
  function emitType_1($this, _this__u8e3s4, endpoint) {
890
- return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.hs(2) + 'path: Path\n |' + Spacer_instance.hs(2) + 'method: "' + endpoint.vp_1.toString() + '"\n |' + Spacer_instance.hs(2) + 'queries: Queries\n |' + Spacer_instance.hs(2) + 'headers: Headers\n |' + Spacer_instance.hs(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
890
+ return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.sv(2) + 'path: Path\n |' + Spacer_instance.sv(2) + 'method: "' + endpoint.gt_1.toString() + '"\n |' + Spacer_instance.sv(2) + 'queries: Queries\n |' + Spacer_instance.sv(2) + 'headers: Headers\n |' + Spacer_instance.sv(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
891
891
  }
892
892
  function emit_12($this, _this__u8e3s4) {
893
- return Spacer_instance.toString() + $this.nr(_this__u8e3s4.bq_1) + ': ' + $this.nq(_this__u8e3s4.cq_1);
893
+ return Spacer_instance.toString() + $this.yu(_this__u8e3s4.mt_1) + ': ' + $this.yt(_this__u8e3s4.nt_1);
894
894
  }
895
895
  function emit_13($this, _this__u8e3s4) {
896
- return $this.nr(_this__u8e3s4.zq_1) + (_this__u8e3s4.ar_1.tu() ? '?' : '') + ': ' + $this.nq(_this__u8e3s4.ar_1.vu(false));
896
+ return $this.yu(_this__u8e3s4.ku_1) + (_this__u8e3s4.lu_1.ey() ? '?' : '') + ': ' + $this.yt(_this__u8e3s4.lu_1.gy(false));
897
897
  }
898
898
  function emitDeserialize($this, _this__u8e3s4) {
899
- return $this.nr(_this__u8e3s4.ue_1.bq_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.te_1 + '])';
899
+ return $this.yu(_this__u8e3s4.lf_1.mt_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.kf_1 + '])';
900
900
  }
901
901
  function emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive) {
902
- return caseSensitive ? $this.nr(_this__u8e3s4.qp_1) + ': serialization.deserialize(it.' + fields + '[' + $this.nr(_this__u8e3s4.qp_1) + '])' : $this.nr(_this__u8e3s4.qp_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.nr(lowercase($this, _this__u8e3s4.qp_1)) + ')?.[1])';
902
+ return caseSensitive ? $this.yu(_this__u8e3s4.bt_1) + ': serialization.deserialize(it.' + fields + '[' + $this.yu(_this__u8e3s4.bt_1) + '])' : $this.yu(_this__u8e3s4.bt_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.yu(lowercase($this, _this__u8e3s4.bt_1)) + ')?.[1])';
903
903
  }
904
904
  function emitDeserialize$default($this, _this__u8e3s4, fields, caseSensitive, $super) {
905
905
  caseSensitive = caseSensitive === VOID ? true : caseSensitive;
906
906
  return emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive);
907
907
  }
908
908
  function emitSerialize($this, _this__u8e3s4, fields) {
909
- return $this.nr(_this__u8e3s4.qp_1) + ': serialization.serialize(it.' + fields + '[' + $this.nr(_this__u8e3s4.qp_1) + '])';
909
+ return $this.yu(_this__u8e3s4.bt_1) + ': serialization.serialize(it.' + fields + '[' + $this.yu(_this__u8e3s4.bt_1) + '])';
910
910
  }
911
911
  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.qu($this.f24(endpoint.ft_1)) + ': (request:Request) => Promise<Response>';
916
916
  }
917
917
  function lowercase($this, _this__u8e3s4) {
918
918
  // Inline function 'kotlin.text.lowercase' call
919
919
  // Inline function 'kotlin.js.asDynamic' call
920
- var tmp$ret$1 = _this__u8e3s4.l1().toLowerCase();
920
+ var tmp$ret$1 = _this__u8e3s4.m1().toLowerCase();
921
921
  return new FieldIdentifier(tmp$ret$1);
922
922
  }
923
923
  function TypeScriptEndpointDefinitionEmitter$emit$lambda(it) {
@@ -931,12 +931,12 @@ function TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this$0) {
931
931
  }
932
932
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this$0) {
933
933
  return function (it) {
934
- return this$0.mq(it);
934
+ return this$0.xt(it);
935
935
  };
936
936
  }
937
937
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this$0) {
938
938
  return function (it) {
939
- return this$0.mq(it);
939
+ return this$0.xt(it);
940
940
  };
941
941
  }
942
942
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -986,12 +986,12 @@ function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda(this$0) {
986
986
  }
987
987
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0(this$0) {
988
988
  return function (it) {
989
- return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.hs(3));
989
+ return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.sv(3));
990
990
  };
991
991
  }
992
992
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1(this$0) {
993
993
  return function (it) {
994
- return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.hs(3));
994
+ return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.sv(3));
995
995
  };
996
996
  }
997
997
  function TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda(this$0) {
@@ -1006,7 +1006,7 @@ function TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda(this$0)
1006
1006
  }
1007
1007
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda($block) {
1008
1008
  return function (it) {
1009
- return Spacer_instance.hs(1) + $block(it);
1009
+ return Spacer_instance.sv(1) + $block(it);
1010
1010
  };
1011
1011
  }
1012
1012
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
@@ -1016,17 +1016,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
1016
1016
  }
1017
1017
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0(this$0) {
1018
1018
  return function (it) {
1019
- return this$0.nr(it.bq_1) + ': params[' + this$0.nr(it.bq_1) + ']';
1019
+ return this$0.yu(it.mt_1) + ': params[' + this$0.yu(it.mt_1) + ']';
1020
1020
  };
1021
1021
  }
1022
1022
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1(this$0) {
1023
1023
  return function (it) {
1024
- return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1024
+ return this$0.yu(it.bt_1) + ': params[' + this$0.yu(it.bt_1) + ']';
1025
1025
  };
1026
1026
  }
1027
1027
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2(this$0) {
1028
1028
  return function (it) {
1029
- return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1029
+ return this$0.yu(it.bt_1) + ': params[' + this$0.yu(it.bt_1) + ']';
1030
1030
  };
1031
1031
  }
1032
1032
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
@@ -1036,17 +1036,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
1036
1036
  }
1037
1037
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4(this$0) {
1038
1038
  return function (it) {
1039
- return this$0.nr(it.qp_1) + ': params[' + this$0.nr(it.qp_1) + ']';
1039
+ return this$0.yu(it.bt_1) + ': params[' + this$0.yu(it.bt_1) + ']';
1040
1040
  };
1041
1041
  }
1042
1042
  function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1043
1043
  return function (it) {
1044
1044
  var tmp;
1045
1045
  if (it instanceof Literal) {
1046
- tmp = '"' + it.xq_1 + '"';
1046
+ tmp = '"' + it.iu_1 + '"';
1047
1047
  } else {
1048
1048
  if (it instanceof Param) {
1049
- tmp = 'serialization.serialize(it.path[' + this$0.nr(it.bq_1) + '])';
1049
+ tmp = 'serialization.serialize(it.path[' + this$0.yu(it.mt_1) + '])';
1050
1050
  } else {
1051
1051
  noWhenBranchMatchedException();
1052
1052
  }
@@ -1056,7 +1056,7 @@ function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1056
1056
  }
1057
1057
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda_0(this$0) {
1058
1058
  return function (it) {
1059
- return this$0.nr(it.qp_1) + ': ' + this$0.nq(it.rp_1);
1059
+ return this$0.yu(it.bt_1) + ': ' + this$0.yt(it.ct_1);
1060
1060
  };
1061
1061
  }
1062
1062
  function TypeScriptEndpointDefinitionEmitter() {
@@ -1069,21 +1069,21 @@ 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.o24_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
- return tmp0.l1();
1076
+ return tmp0.m1();
1077
1077
  }
1078
1078
  function _get_modelSanitizationConfig__vgg831($this) {
1079
- var tmp0 = $this.e21_1;
1079
+ var tmp0 = $this.p24_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);
1083
- return tmp0.l1();
1083
+ return tmp0.m1();
1084
1084
  }
1085
1085
  function sanitize($this, _this__u8e3s4) {
1086
- return '"' + _this__u8e3s4.l1() + '"';
1086
+ return '"' + _this__u8e3s4.m1() + '"';
1087
1087
  }
1088
1088
  function sanitizeSymbol_1($this, _this__u8e3s4) {
1089
1089
  // Inline function 'kotlin.text.filter' call
@@ -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().r24_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1108
1108
  }
1109
1109
  function firstToLower($this, _this__u8e3s4) {
1110
1110
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1123,10 +1123,10 @@ function firstToLower($this, _this__u8e3s4) {
1123
1123
  return tmp;
1124
1124
  }
1125
1125
  function sanitizeParamName($this, identifier) {
1126
- var tmp0 = identifier.l1();
1126
+ var tmp0 = identifier.m1();
1127
1127
  // Inline function 'kotlin.text.split' call
1128
1128
  // Inline function 'kotlin.collections.filter' call
1129
- var tmp0_0 = Regex_init_$Create$('[.\\s-]+').zc(tmp0, 0);
1129
+ var tmp0_0 = Regex_init_$Create$('[.\\s-]+').ad(tmp0, 0);
1130
1130
  // Inline function 'kotlin.collections.filterTo' call
1131
1131
  var destination = ArrayList_init_$Create$();
1132
1132
  var _iterator__ex2g4s = tmp0_0.t();
@@ -1134,11 +1134,11 @@ function sanitizeParamName($this, identifier) {
1134
1134
  var element = _iterator__ex2g4s.v();
1135
1135
  // Inline function 'kotlin.text.isNotEmpty' call
1136
1136
  if (charSequenceLength(element) > 0) {
1137
- destination.x(element);
1137
+ destination.y(element);
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.b1() > 1 ? (new Name(parts)).f1q() : identifier.m1();
1142
1142
  return sanitizeKeywords($this, sanitizeSymbol_1($this, name));
1143
1143
  }
1144
1144
  function buildEndpointParams($this, endpoint) {
@@ -1147,50 +1147,50 @@ function buildEndpointParams($this, endpoint) {
1147
1147
  // Inline function 'kotlin.apply' call
1148
1148
  var this_0 = ArrayList_init_$Create$();
1149
1149
  // Inline function 'kotlin.collections.filterIsInstance' call
1150
- var tmp0 = endpoint.wp_1;
1150
+ var tmp0 = endpoint.ht_1;
1151
1151
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1152
1152
  var destination = ArrayList_init_$Create$();
1153
1153
  var _iterator__ex2g4s = tmp0.t();
1154
1154
  while (_iterator__ex2g4s.u()) {
1155
1155
  var element = _iterator__ex2g4s.v();
1156
1156
  if (element instanceof Param) {
1157
- destination.x(element);
1157
+ destination.y(element);
1158
1158
  }
1159
1159
  }
1160
1160
  // Inline function 'kotlin.collections.forEach' call
1161
1161
  var _iterator__ex2g4s_0 = destination.t();
1162
1162
  while (_iterator__ex2g4s_0.u()) {
1163
1163
  var element_0 = _iterator__ex2g4s_0.v();
1164
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.bq_1), emitTypeScriptReference($this, element_0.cq_1.vu(false)), element_0.cq_1.tu()));
1164
+ this_0.y(new EndpointParam(sanitizeParamName($this, element_0.mt_1), emitTypeScriptReference($this, element_0.nt_1.gy(false)), element_0.nt_1.ey()));
1165
1165
  }
1166
1166
  // Inline function 'kotlin.collections.forEach' call
1167
- var _iterator__ex2g4s_1 = endpoint.xp_1.t();
1167
+ var _iterator__ex2g4s_1 = endpoint.it_1.t();
1168
1168
  while (_iterator__ex2g4s_1.u()) {
1169
1169
  var element_1 = _iterator__ex2g4s_1.v();
1170
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.qp_1), emitTypeScriptReference($this, element_1.rp_1.vu(false)), element_1.rp_1.tu()));
1170
+ this_0.y(new EndpointParam(sanitizeParamName($this, element_1.bt_1), emitTypeScriptReference($this, element_1.ct_1.gy(false)), element_1.ct_1.ey()));
1171
1171
  }
1172
1172
  // Inline function 'kotlin.collections.forEach' call
1173
- var _iterator__ex2g4s_2 = endpoint.yp_1.t();
1173
+ var _iterator__ex2g4s_2 = endpoint.jt_1.t();
1174
1174
  while (_iterator__ex2g4s_2.u()) {
1175
1175
  var element_2 = _iterator__ex2g4s_2.v();
1176
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.qp_1), emitTypeScriptReference($this, element_2.rp_1.vu(false)), element_2.rp_1.tu()));
1176
+ this_0.y(new EndpointParam(sanitizeParamName($this, element_2.bt_1), emitTypeScriptReference($this, element_2.ct_1.gy(false)), element_2.ct_1.ey()));
1177
1177
  }
1178
- var tmp0_safe_receiver = first(endpoint.zp_1).dq_1;
1178
+ var tmp0_safe_receiver = first(endpoint.kt_1).ot_1;
1179
1179
  if (tmp0_safe_receiver == null)
1180
1180
  null;
1181
1181
  else {
1182
1182
  // Inline function 'kotlin.let' call
1183
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.fq_1.vu(false)), tmp0_safe_receiver.fq_1.tu()));
1183
+ this_0.y(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.qt_1.gy(false)), tmp0_safe_receiver.qt_1.ey()));
1184
1184
  }
1185
- return this_0.o5();
1185
+ return this_0.p5();
1186
1186
  }
1187
1187
  function emitTypeScriptReference($this, ref) {
1188
1188
  var tmp;
1189
1189
  if (ref instanceof Dict) {
1190
- tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.so_1) + '>';
1190
+ tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.ds_1) + '>';
1191
1191
  } else {
1192
1192
  if (ref instanceof Iterable) {
1193
- tmp = emitTypeScriptReference($this, ref.po_1) + '[]';
1193
+ tmp = emitTypeScriptReference($this, ref.as_1) + '[]';
1194
1194
  } else {
1195
1195
  if (ref instanceof Unit) {
1196
1196
  tmp = 'undefined';
@@ -1199,10 +1199,10 @@ function emitTypeScriptReference($this, ref) {
1199
1199
  tmp = 'any';
1200
1200
  } else {
1201
1201
  if (ref instanceof Custom) {
1202
- tmp = sanitizeSymbol_1($this, ref.bv_1);
1202
+ tmp = sanitizeSymbol_1($this, ref.my_1);
1203
1203
  } else {
1204
1204
  if (ref instanceof Primitive) {
1205
- var tmp1_subject = ref.fv_1;
1205
+ var tmp1_subject = ref.qy_1;
1206
1206
  var tmp_0;
1207
1207
  if (tmp1_subject instanceof String_0) {
1208
1208
  tmp_0 = 'string';
@@ -1235,20 +1235,20 @@ function emitTypeScriptReference($this, ref) {
1235
1235
  }
1236
1236
  }
1237
1237
  // Inline function 'kotlin.let' call
1238
- return tmp + (ref.tu() ? ' | undefined' : '');
1238
+ return tmp + (ref.ey() ? ' | 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.s24_1 = name;
1242
+ this.t24_1 = type;
1243
+ this.u24_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.s24_1 + ', type=' + this.t24_1 + ', nullable=' + this.u24_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.s24_1);
1250
+ result = imul(result, 31) + getStringHashCode(this.t24_1) | 0;
1251
+ result = imul(result, 31) + getBooleanHashCode(this.u24_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.s24_1 === other.s24_1))
1260
1260
  return false;
1261
- if (!(this.i21_1 === other.i21_1))
1261
+ if (!(this.t24_1 === other.t24_1))
1262
1262
  return false;
1263
- if (!(this.j21_1 === other.j21_1))
1263
+ if (!(this.u24_1 === other.u24_1))
1264
1264
  return false;
1265
1265
  return true;
1266
1266
  };
@@ -1277,10 +1277,10 @@ function Companion() {
1277
1277
  // Inline function 'kotlin.text.lowercase' call
1278
1278
  // Inline function 'kotlin.js.asDynamic' call
1279
1279
  var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
1280
- result.s2(element, tmp$ret$2);
1280
+ result.t2(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.q24_1 = result;
1283
+ this.r24_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.a1l_1.b1() > 1 ? name.f1q() : sanitizeSymbol_1(this$0, name.y1m());
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.a1l_1.b1() > 1 ? name.f1q() : sanitizeSymbol_1(this$0, name.y1m());
1303
1303
  return new Name(listOf_0(sanitized));
1304
1304
  };
1305
1305
  }
@@ -1325,29 +1325,29 @@ 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.z1s_1));
1329
1329
  } else {
1330
1330
  if (stmt instanceof ConstructorStatement) {
1331
- var tmp_0 = tr.c1v(stmt.w1n_1);
1331
+ var tmp_0 = tr.n1y(stmt.h1r_1);
1332
1332
  // Inline function 'kotlin.collections.map' call
1333
- var this_0 = stmt.x1n_1;
1333
+ var this_0 = stmt.i1r_1;
1334
1334
  // Inline function 'kotlin.collections.mapTo' call
1335
- var destination = ArrayList_init_$Create$_0(this_0.a1());
1335
+ var destination = ArrayList_init_$Create$_0(this_0.b1());
1336
1336
  // Inline function 'kotlin.collections.iterator' call
1337
- var _iterator__ex2g4s = this_0.j1().t();
1337
+ var _iterator__ex2g4s = this_0.k1().t();
1338
1338
  while (_iterator__ex2g4s.u()) {
1339
1339
  var item = _iterator__ex2g4s.v();
1340
1340
  // Inline function 'kotlin.collections.component1' call
1341
- var key = item.k1();
1341
+ var key = item.l1();
1342
1342
  // Inline function 'kotlin.collections.component2' call
1343
- var value = item.l1();
1344
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.f1v(value));
1345
- destination.x(tmp$ret$3);
1343
+ var value = item.m1();
1344
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.q1y(value));
1345
+ destination.y(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.c1t_1), tr.q1y(stmt.d1t_1), stmt.e1t_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().r24_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);
@@ -1372,7 +1372,7 @@ function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
1372
1372
  };
1373
1373
  }
1374
1374
  function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda(name) {
1375
- return new Name(listOf_0(name.n1j()));
1375
+ return new Name(listOf_0(name.y1m()));
1376
1376
  }
1377
1377
  function TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(it) {
1378
1378
  return it;
@@ -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.i20(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.q1r_1.equals(Companion_getInstance().c1l('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.m1r()));
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.q1r_1.equals(Companion_getInstance().c1l('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.m1r(), 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().q24_1.q2(element.v1r_1.y1m());
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.c1s(VOID, plus_1(listOf_0(new Field(Companion_getInstance().c1l('kind'), new StringLiteral(tmp0_safe_receiver))), element.w1r_1));
1440
1440
  }
1441
1441
  var tmp1_elvis_lhs = tmp_0;
1442
1442
  tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
@@ -1447,7 +1447,7 @@ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1447
1447
  return transformChildren_0(transformed, transformer);
1448
1448
  }
1449
1449
  function TypeScriptIrEmitter$emit$lambda(it) {
1450
- return 'export {' + it.mr().l1() + "} from './" + it.mr().l1() + "'";
1450
+ return 'export {' + it.xu().m1() + "} from './" + it.xu().m1() + "'";
1451
1451
  }
1452
1452
  function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1453
1453
  return function (expr, t) {
@@ -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.n1q_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.n1q_1;
1466
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).b1t_1 === $definition.iv_1.m1();
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.p1q_1.equals(Companion_getInstance().c1l('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.q1q_1.q2(Companion_getInstance().c1l('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.h1r_1, Custom_init_$Create$($definition.dv_1.m1()));
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.i1r_1.q2(Companion_getInstance().c1l('value'));
1495
1495
  tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1496
1496
  } else {
1497
1497
  tmp = transformChildren_1(expr, t);
@@ -1502,37 +1502,37 @@ 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.h1r_1;
1506
1506
  var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
1507
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1j_1;
1508
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1j();
1507
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1m_1;
1508
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.y1m();
1509
1509
  var typeName = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Wirespec.');
1510
1510
  var tmp_1;
1511
1511
  if (typeName == null) {
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().q24_1.q2(typeName);
1516
1516
  }
1517
1517
  var kind = tmp_1;
1518
1518
  var tmp_2;
1519
1519
  if (!(kind == null)) {
1520
- var tmp_3 = mapOf(to(Companion_getInstance().r1h('kind'), new Literal_0(kind, String_instance)));
1520
+ var tmp_3 = mapOf(to(Companion_getInstance().c1l('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.i1r_1;
1523
1523
  // Inline function 'kotlin.collections.mapValuesTo' call
1524
- var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.a1()));
1524
+ var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.b1()));
1525
1525
  // Inline function 'kotlin.collections.associateByTo' call
1526
- var _iterator__ex2g4s = this_0.j1().t();
1526
+ var _iterator__ex2g4s = this_0.k1().t();
1527
1527
  while (_iterator__ex2g4s.u()) {
1528
1528
  var element = _iterator__ex2g4s.v();
1529
- var tmp_4 = element.k1();
1529
+ var tmp_4 = element.l1();
1530
1530
  // Inline function 'kotlin.collections.component2' call
1531
- var v = element.l1();
1532
- var tmp$ret$4 = t.f1v(v);
1533
- destination.s2(tmp_4, tmp$ret$4);
1531
+ var v = element.m1();
1532
+ var tmp$ret$4 = t.q1y(v);
1533
+ destination.t2(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.h1r_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.b1t_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.b1t_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.y(expr.b1t_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.m1r(), 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.v1y_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
- this_1.b1j(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
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;
1609
+ this_1.m1m(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1610
+ var tmp$ret$2 = this_1.n1m();
1611
+ tmp.v1y_1 = transform(this_0, tmp$ret$2);
1612
+ var tmp_0 = scope.v1y_1;
1613
1613
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1614
1614
  }
1615
1615
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -1617,27 +1617,27 @@ function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
1617
1617
  }
1618
1618
  function TypeScriptIrEmitter$emitClient$lambda(this$0) {
1619
1619
  return function (it) {
1620
- var methodName = firstToLower(this$0, it.up_1.l1());
1620
+ var methodName = firstToLower(this$0, it.ft_1.m1());
1621
1621
  return ' ...' + methodName + 'Client(serialization, transportation),';
1622
1622
  };
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.m24_1 = TypeScriptGenerator_getInstance();
1627
+ this.n24_1 = FileExtension_TypeScript_getInstance();
1628
1628
  var tmp = this;
1629
- tmp.d21_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1629
+ tmp.o24_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.p24_1 = lazy(TypeScriptIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1632
1632
  }
1633
- protoOf(TypeScriptIrEmitter).x1v = function () {
1634
- return this.b21_1;
1633
+ protoOf(TypeScriptIrEmitter).i1z = function () {
1634
+ return this.m24_1;
1635
1635
  };
1636
- protoOf(TypeScriptIrEmitter).uq = function () {
1637
- return this.c21_1;
1636
+ protoOf(TypeScriptIrEmitter).fu = function () {
1637
+ return this.n24_1;
1638
1638
  };
1639
- protoOf(TypeScriptIrEmitter).b1w = function () {
1640
- var packageName = Companion_instance.cs('community.flock.wirespec');
1639
+ protoOf(TypeScriptIrEmitter).m1z = function () {
1640
+ var packageName = Companion_instance.nv('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
1643
1643
  var this_0 = convert(packageName);
@@ -1646,41 +1646,41 @@ 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.v1y_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
- this_2.b1j(TypeScriptIrEmitter$emitShared$lambda);
1654
- var tmp$ret$2 = this_2.c1j();
1655
- tmp.k1v_1 = transform(this_1, tmp$ret$2);
1653
+ this_2.m1m(TypeScriptIrEmitter$emitShared$lambda);
1654
+ var tmp$ret$2 = this_2.n1m();
1655
+ tmp.v1y_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.v1y_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
- this_4.b1j(TypeScriptIrEmitter$emitShared$lambda_0(api));
1665
- var tmp$ret$8 = this_4.c1j();
1666
- tmp_0.k1v_1 = transform(this_3, tmp$ret$8);
1664
+ this_4.m1m(TypeScriptIrEmitter$emitShared$lambda_0(api));
1665
+ var tmp$ret$8 = this_4.n1m();
1666
+ tmp_0.v1y_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.v1y_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
- this_6.b1j(TypeScriptIrEmitter$emitShared$lambda_1);
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;
1674
+ this_6.m1m(TypeScriptIrEmitter$emitShared$lambda_1);
1675
+ var tmp$ret$14 = this_6.n1m();
1676
+ tmp_1.v1y_1 = transform(this_5, tmp$ret$14);
1677
+ var tmp_2 = scope.v1y_1;
1678
1678
  return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1679
1679
  };
1680
- protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
1680
+ protoOf(TypeScriptIrEmitter).pr = function (ast, logger) {
1681
1681
  var tmp = emit.call(this, ast, logger);
1682
1682
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
1683
- var this_0 = ast.rq_1;
1683
+ var this_0 = ast.cu_1;
1684
1684
  // Inline function 'kotlin.collections.flatMap' call
1685
1685
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
1686
1686
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -1688,7 +1688,7 @@ protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
1688
1688
  var _iterator__ex2g4s = tmp0.t();
1689
1689
  while (_iterator__ex2g4s.u()) {
1690
1690
  var element = _iterator__ex2g4s.v();
1691
- var list = new NonEmptyList(element.tq_1);
1691
+ var list = new NonEmptyList(element.eu_1);
1692
1692
  addAll(destination, list);
1693
1693
  }
1694
1694
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -1701,41 +1701,41 @@ protoOf(TypeScriptIrEmitter).eo = function (ast, logger) {
1701
1701
  var element_0 = _iterator__ex2g4s_0.v();
1702
1702
  var key = namespace(element_0);
1703
1703
  // Inline function 'kotlin.collections.getOrPut' call
1704
- var value = destination_0.p2(key);
1704
+ var value = destination_0.q2(key);
1705
1705
  var tmp_0;
1706
1706
  if (value == null) {
1707
1707
  var answer = ArrayList_init_$Create$();
1708
- destination_0.s2(key, answer);
1708
+ destination_0.t2(key, answer);
1709
1709
  tmp_0 = answer;
1710
1710
  } else {
1711
1711
  tmp_0 = value;
1712
1712
  }
1713
1713
  var list_0 = tmp_0;
1714
- list_0.x(element_0);
1714
+ list_0.y(element_0);
1715
1715
  }
1716
1716
  // Inline function 'kotlin.collections.map' call
1717
1717
  // Inline function 'kotlin.collections.mapTo' call
1718
- var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
1718
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
1719
1719
  // Inline function 'kotlin.collections.iterator' call
1720
- var _iterator__ex2g4s_1 = destination_0.j1().t();
1720
+ var _iterator__ex2g4s_1 = destination_0.k1().t();
1721
1721
  while (_iterator__ex2g4s_1.u()) {
1722
1722
  var item = _iterator__ex2g4s_1.v();
1723
1723
  // Inline function 'kotlin.collections.component1' call
1724
- var ns = item.k1();
1724
+ var ns = item.l1();
1725
1725
  // Inline function 'kotlin.collections.component2' call
1726
- var defs = item.l1();
1727
- var tmp_1 = ns + '/index.' + this.uq().dr_1;
1726
+ var defs = item.m1();
1727
+ var tmp_1 = ns + '/index.' + this.fu().ou_1;
1728
1728
  var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
1729
- destination_1.x(tmp$ret$12);
1729
+ destination_1.y(tmp$ret$12);
1730
1730
  }
1731
1731
  return NonEmptyList__plus_impl_xqmb9_0(tmp, destination_1);
1732
1732
  };
1733
- protoOf(TypeScriptIrEmitter).lr = function (definition, module_0, logger) {
1733
+ protoOf(TypeScriptIrEmitter).wu = function (definition, module_0, logger) {
1734
1734
  var file = emit_0.call(this, definition, module_0, logger);
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));
1735
+ var subPackageName = plus(Companion_instance.nv(''), definition);
1736
+ return new File(Companion_getInstance().c1l(subPackageName.qv() + sanitizeSymbol_1(this, file.k1r_1.d1l())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.l1r_1));
1737
1737
  };
1738
- protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1738
+ protoOf(TypeScriptIrEmitter).r1z = 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.d1z(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1748
+ var tmp_0 = scope.v1y_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.d1z(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1756
+ var tmp_1 = scope_0.v1y_1;
1757
1757
  tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1758
1758
  } else {
1759
1759
  if (definition instanceof Union) {
@@ -1767,10 +1767,10 @@ 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.d1z(TypeScriptIrEmitter$emitGenerator$lambda_1);
1771
+ var tmp_2 = scope_1.v1y_1;
1772
1772
  var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1773
- var generatorOwnName = definition.mr().l1() + 'Generator';
1773
+ var generatorOwnName = definition.xu().m1() + 'Generator';
1774
1774
  var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
1775
1775
  var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
1776
1776
  var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
@@ -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.d1z(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1783
+ var tmp_6 = scope_2.v1y_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
@@ -1789,7 +1789,7 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1789
1789
  while (_iterator__ex2g4s.u()) {
1790
1790
  var element = _iterator__ex2g4s.v();
1791
1791
  if (endsWith(element, 'Generator')) {
1792
- destination.x(element);
1792
+ destination.y(element);
1793
1793
  }
1794
1794
  }
1795
1795
  // Inline function 'kotlin.collections.map' call
@@ -1800,7 +1800,7 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1800
1800
  while (_iterator__ex2g4s_0.u()) {
1801
1801
  var item = _iterator__ex2g4s_0.v();
1802
1802
  var tmp$ret$12 = import_0('./' + item, item);
1803
- destination_0.x(tmp$ret$12);
1803
+ destination_0.y(tmp$ret$12);
1804
1804
  }
1805
1805
  var generatorImports = destination_0;
1806
1806
  // Inline function 'kotlin.collections.filterNot' call
@@ -1810,7 +1810,7 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1810
1810
  while (_iterator__ex2g4s_1.u()) {
1811
1811
  var element_0 = _iterator__ex2g4s_1.v();
1812
1812
  if (!endsWith(element_0, 'Generator')) {
1813
- destination_1.x(element_0);
1813
+ destination_1.y(element_0);
1814
1814
  }
1815
1815
  }
1816
1816
  // Inline function 'kotlin.collections.map' call
@@ -1820,13 +1820,13 @@ protoOf(TypeScriptIrEmitter).g1w = function (definition, module_0) {
1820
1820
  while (_iterator__ex2g4s_2.u()) {
1821
1821
  var item_0 = _iterator__ex2g4s_2.v();
1822
1822
  var tmp$ret$18 = import_0('../model/' + item_0, item_0);
1823
- destination_2.x(tmp$ret$18);
1823
+ destination_2.y(tmp$ret$18);
1824
1824
  }
1825
1825
  var modelImports = destination_2;
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));
1826
+ var subPackageName = plus_0(Companion_instance.nv(''), 'generator');
1827
+ return new File(Companion_getInstance().c1l(subPackageName.qv() + sanitizeSymbol_1(this, generatorFile.k1r_1.d1l())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.l1r_1));
1828
1828
  };
1829
- protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1829
+ protoOf(TypeScriptIrEmitter).vt = function (type, module_0) {
1830
1830
  var fieldValidations = classifyValidatableFields(type, module_0);
1831
1831
  // Inline function 'kotlin.collections.distinctBy' call
1832
1832
  var this_0 = importReferences(type);
@@ -1835,9 +1835,9 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1835
1835
  var _iterator__ex2g4s = this_0.t();
1836
1836
  while (_iterator__ex2g4s.u()) {
1837
1837
  var e = _iterator__ex2g4s.v();
1838
- var key = e.bv_1;
1839
- if (set.x(key)) {
1840
- list.x(e);
1838
+ var key = e.my_1;
1839
+ if (set.y(key)) {
1840
+ list.y(e);
1841
1841
  }
1842
1842
  }
1843
1843
  // Inline function 'kotlin.collections.map' call
@@ -1846,8 +1846,8 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1846
1846
  var _iterator__ex2g4s_0 = list.t();
1847
1847
  while (_iterator__ex2g4s_0.u()) {
1848
1848
  var item = _iterator__ex2g4s_0.v();
1849
- var tmp$ret$2 = import_0('./' + item.bv_1, item.bv_1);
1850
- destination.x(tmp$ret$2);
1849
+ var tmp$ret$2 = import_0('./' + item.my_1, item.my_1);
1850
+ destination.y(tmp$ret$2);
1851
1851
  }
1852
1852
  var typeImports = destination;
1853
1853
  // Inline function 'kotlin.collections.map' call
@@ -1856,8 +1856,8 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1856
1856
  var _iterator__ex2g4s_1 = fieldValidations.t();
1857
1857
  while (_iterator__ex2g4s_1.u()) {
1858
1858
  var item_0 = _iterator__ex2g4s_1.v();
1859
- var tmp$ret$5 = item_0.h1j_1;
1860
- destination_0.x(tmp$ret$5);
1859
+ var tmp$ret$5 = item_0.s1m_1;
1860
+ destination_0.y(tmp$ret$5);
1861
1861
  }
1862
1862
  // Inline function 'kotlin.collections.filter' call
1863
1863
  var tmp0 = distinct_0(destination_0);
@@ -1866,8 +1866,8 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1866
1866
  var _iterator__ex2g4s_2 = tmp0.t();
1867
1867
  while (_iterator__ex2g4s_2.u()) {
1868
1868
  var element = _iterator__ex2g4s_2.v();
1869
- if (!(element === type.lp_1.l1())) {
1870
- destination_1.x(element);
1869
+ if (!(element === type.ws_1.m1())) {
1870
+ destination_1.y(element);
1871
1871
  }
1872
1872
  }
1873
1873
  // Inline function 'kotlin.collections.map' call
@@ -1877,35 +1877,35 @@ protoOf(TypeScriptIrEmitter).kq = function (type, module_0) {
1877
1877
  while (_iterator__ex2g4s_3.u()) {
1878
1878
  var item_1 = _iterator__ex2g4s_3.v();
1879
1879
  var tmp$ret$11 = import_0('./' + item_1, 'validate' + item_1);
1880
- destination_2.x(tmp$ret$11);
1880
+ destination_2.y(tmp$ret$11);
1881
1881
  }
1882
1882
  var validateImports = destination_2;
1883
1883
  var allImports = plus_1(typeImports, validateImports);
1884
1884
  // Inline function 'kotlin.collections.map' call
1885
- var this_1 = type.mp_1.ip_1;
1885
+ var this_1 = type.xs_1.ts_1;
1886
1886
  // Inline function 'kotlin.collections.mapTo' call
1887
1887
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1888
1888
  var _iterator__ex2g4s_4 = this_1.t();
1889
1889
  while (_iterator__ex2g4s_4.u()) {
1890
1890
  var item_2 = _iterator__ex2g4s_4.v();
1891
- var tmp$ret$14 = item_2.qp_1.l1();
1892
- destination_3.x(tmp$ret$14);
1891
+ var tmp$ret$14 = item_2.bt_1.m1();
1892
+ destination_3.y(tmp$ret$14);
1893
1893
  }
1894
1894
  var fieldNames = toSet(destination_3);
1895
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.lp_1.l1(), fieldNames);
1895
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)), type.ws_1.m1(), fieldNames);
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.o1r(VOID, plus_1(allImports, file.l1r_1));
1900
1900
  } else {
1901
1901
  tmp = file;
1902
1902
  }
1903
1903
  return tmp;
1904
1904
  };
1905
- protoOf(TypeScriptIrEmitter).zr = function (enum_0, module_0) {
1905
+ protoOf(TypeScriptIrEmitter).kv = function (enum_0, module_0) {
1906
1906
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1907
1907
  };
1908
- protoOf(TypeScriptIrEmitter).pr = function (union) {
1908
+ protoOf(TypeScriptIrEmitter).av = function (union) {
1909
1909
  // Inline function 'kotlin.collections.distinctBy' call
1910
1910
  var this_0 = importReferences(union);
1911
1911
  var set = HashSet_init_$Create$();
@@ -1913,9 +1913,9 @@ protoOf(TypeScriptIrEmitter).pr = function (union) {
1913
1913
  var _iterator__ex2g4s = this_0.t();
1914
1914
  while (_iterator__ex2g4s.u()) {
1915
1915
  var e = _iterator__ex2g4s.v();
1916
- var key = e.bv_1;
1917
- if (set.x(key)) {
1918
- list.x(e);
1916
+ var key = e.my_1;
1917
+ if (set.y(key)) {
1918
+ list.y(e);
1919
1919
  }
1920
1920
  }
1921
1921
  // Inline function 'kotlin.collections.map' call
@@ -1924,27 +1924,27 @@ protoOf(TypeScriptIrEmitter).pr = function (union) {
1924
1924
  var _iterator__ex2g4s_0 = list.t();
1925
1925
  while (_iterator__ex2g4s_0.u()) {
1926
1926
  var item = _iterator__ex2g4s_0.v();
1927
- var tmp$ret$2 = import_0('../model', item.bv_1, true);
1928
- destination.x(tmp$ret$2);
1927
+ var tmp$ret$2 = import_0('../model', item.my_1, true);
1928
+ destination.y(tmp$ret$2);
1929
1929
  }
1930
1930
  var imports = destination;
1931
1931
  var file = sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
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.o1r(VOID, plus_1(imports, file.l1r_1));
1936
1936
  } else {
1937
1937
  tmp = file;
1938
1938
  }
1939
1939
  return tmp;
1940
1940
  };
1941
- protoOf(TypeScriptIrEmitter).ur = function (refined) {
1941
+ protoOf(TypeScriptIrEmitter).fv = function (refined) {
1942
1942
  var converted = convert_2(refined);
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 + ';')]));
1943
+ var constraintExpr = convertConstraint(refined.ev_1, new VariableReference(Companion_getInstance().c1l('value')));
1944
+ var validatorStr = TypeScriptGenerator_getInstance().z1z(constraintExpr);
1945
+ return new File(converted.k1r_1, listOf([new RawElement('export type ' + converted.k1r_1.d1l() + ' = ' + emitTypeScriptReference(this, refined.ev_1) + ';'), new RawElement('export const validate' + refined.dv_1.m1() + ' = (value: ' + emitTypeScriptReference(this, refined.ev_1) + ') =>\n ' + validatorStr + ';')]));
1946
1946
  };
1947
- protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1947
+ protoOf(TypeScriptIrEmitter).lv = function (endpoint) {
1948
1948
  // Inline function 'kotlin.collections.distinctBy' call
1949
1949
  var this_0 = importReferences(endpoint);
1950
1950
  var set = HashSet_init_$Create$();
@@ -1952,9 +1952,9 @@ protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1952
1952
  var _iterator__ex2g4s = this_0.t();
1953
1953
  while (_iterator__ex2g4s.u()) {
1954
1954
  var e = _iterator__ex2g4s.v();
1955
- var key = e.bv_1;
1956
- if (set.x(key)) {
1957
- list.x(e);
1955
+ var key = e.my_1;
1956
+ if (set.y(key)) {
1957
+ list.y(e);
1958
1958
  }
1959
1959
  }
1960
1960
  // Inline function 'kotlin.collections.map' call
@@ -1963,8 +1963,8 @@ protoOf(TypeScriptIrEmitter).as = function (endpoint) {
1963
1963
  var _iterator__ex2g4s_0 = list.t();
1964
1964
  while (_iterator__ex2g4s_0.u()) {
1965
1965
  var item = _iterator__ex2g4s_0.v();
1966
- var tmp$ret$2 = import_0('../model', item.bv_1, true);
1967
- destination.x(tmp$ret$2);
1966
+ var tmp$ret$2 = import_0('../model', item.my_1, true);
1967
+ destination.y(tmp$ret$2);
1968
1968
  }
1969
1969
  var imports = destination;
1970
1970
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -1972,25 +1972,25 @@ 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.a1z(transformPatternSwitchToValueSwitch());
1976
+ var tmp = scope.v1y_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).o1r(Companion_getInstance().c1l(sanitize(this, endpoint.ft_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.o1r(VOID, plus_1(imports, it.l1r_1));
1984
1984
  } else {
1985
1985
  tmp_0 = it;
1986
1986
  }
1987
1987
  return tmp_0;
1988
1988
  };
1989
- protoOf(TypeScriptIrEmitter).or = function (channel) {
1989
+ protoOf(TypeScriptIrEmitter).zu = function (channel) {
1990
1990
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1991
1991
  };
1992
- protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
1993
- var endpointName = endpoint.up_1.l1();
1992
+ protoOf(TypeScriptIrEmitter).q1z = function (endpoint) {
1993
+ var endpointName = endpoint.ft_1.m1();
1994
1994
  var methodName = firstToLower(this, endpointName);
1995
1995
  // Inline function 'kotlin.collections.distinctBy' call
1996
1996
  var this_0 = importReferences(endpoint);
@@ -1999,9 +1999,9 @@ protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
1999
1999
  var _iterator__ex2g4s = this_0.t();
2000
2000
  while (_iterator__ex2g4s.u()) {
2001
2001
  var e = _iterator__ex2g4s.v();
2002
- var key = e.bv_1;
2003
- if (set.x(key)) {
2004
- list.x(e);
2002
+ var key = e.my_1;
2003
+ if (set.y(key)) {
2004
+ list.y(e);
2005
2005
  }
2006
2006
  }
2007
2007
  // Inline function 'kotlin.collections.map' call
@@ -2010,8 +2010,8 @@ protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
2010
2010
  var _iterator__ex2g4s_0 = list.t();
2011
2011
  while (_iterator__ex2g4s_0.u()) {
2012
2012
  var item = _iterator__ex2g4s_0.v();
2013
- var tmp$ret$2 = import_0('../model', item.bv_1, true);
2014
- destination.x(tmp$ret$2);
2013
+ var tmp$ret$2 = import_0('../model', item.my_1, true);
2014
+ destination.y(tmp$ret$2);
2015
2015
  }
2016
2016
  var imports = destination;
2017
2017
  var params = buildEndpointParams(this, endpoint);
@@ -2032,50 +2032,50 @@ protoOf(TypeScriptIrEmitter).f1w = function (endpoint) {
2032
2032
  }
2033
2033
  var requestArgs = tmp_0;
2034
2034
  var code = trimMargin('\n |export const ' + methodName + 'Client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n | ' + methodName + ': async (' + paramList + '): Promise<' + endpointName + '.Response<unknown>> => {\n | const request: ' + endpointName + '.Request = ' + requestArgs + ';\n | const rawRequest = ' + endpointName + '.toRawRequest(serialization, request);\n | const rawResponse = await transportation.transport(rawRequest);\n | return ' + endpointName + '.fromRawResponse(serialization, rawResponse);\n | }\n |})\n ');
2035
- var tmp_1 = Companion_getInstance().r1h('client/' + endpointName + 'Client');
2035
+ var tmp_1 = Companion_getInstance().c1l('client/' + endpointName + 'Client');
2036
2036
  // Inline function 'kotlin.collections.buildList' call
2037
2037
  // Inline function 'kotlin.collections.buildListInternal' call
2038
2038
  // Inline function 'kotlin.apply' call
2039
2039
  var this_1 = ArrayList_init_$Create$();
2040
- this_1.x(import_0('../Wirespec', 'Wirespec'));
2041
- this_1.x(import_0('../endpoint/' + endpointName, endpointName));
2042
- this_1.f1(imports);
2043
- this_1.x(new RawElement(code));
2044
- var tmp$ret$10 = this_1.o5();
2040
+ this_1.y(import_0('../Wirespec', 'Wirespec'));
2041
+ this_1.y(import_0('../endpoint/' + endpointName, endpointName));
2042
+ this_1.g1(imports);
2043
+ this_1.y(new RawElement(code));
2044
+ var tmp$ret$10 = this_1.p5();
2045
2045
  return new File(tmp_1, tmp$ret$10);
2046
2046
  };
2047
- protoOf(TypeScriptIrEmitter).c1w = function (endpoints, logger) {
2048
- logger.jr('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2047
+ protoOf(TypeScriptIrEmitter).n1z = function (endpoints, logger) {
2048
+ logger.uu('Emitting main Client for ' + endpoints.b1() + ' endpoints');
2049
2049
  // Inline function 'kotlin.collections.map' call
2050
2050
  // Inline function 'kotlin.collections.mapTo' call
2051
2051
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
2052
2052
  var _iterator__ex2g4s = endpoints.t();
2053
2053
  while (_iterator__ex2g4s.u()) {
2054
2054
  var item = _iterator__ex2g4s.v();
2055
- var methodName = firstToLower(this, item.up_1.l1());
2056
- var tmp$ret$0 = import_0('./client/' + item.up_1.l1() + 'Client', methodName + 'Client');
2057
- destination.x(tmp$ret$0);
2055
+ var methodName = firstToLower(this, item.ft_1.m1());
2056
+ var tmp$ret$0 = import_0('./client/' + item.ft_1.m1() + 'Client', methodName + 'Client');
2057
+ destination.y(tmp$ret$0);
2058
2058
  }
2059
2059
  var clientImports = destination;
2060
2060
  var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
2061
2061
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
2062
- var tmp = Companion_getInstance().r1h('Client');
2062
+ var tmp = Companion_getInstance().c1l('Client');
2063
2063
  // Inline function 'kotlin.collections.buildList' call
2064
2064
  // Inline function 'kotlin.collections.buildListInternal' call
2065
2065
  // Inline function 'kotlin.apply' call
2066
2066
  var this_0 = ArrayList_init_$Create$();
2067
- this_0.x(import_0('./Wirespec', 'Wirespec'));
2068
- this_0.f1(clientImports);
2069
- this_0.x(new RawElement(code));
2070
- var tmp$ret$6 = this_0.o5();
2067
+ this_0.y(import_0('./Wirespec', 'Wirespec'));
2068
+ this_0.g1(clientImports);
2069
+ this_0.y(new RawElement(code));
2070
+ var tmp$ret$6 = this_0.p5();
2071
2071
  return new File(tmp, tmp$ret$6);
2072
2072
  };
2073
2073
  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);
2078
- return this_0.c1j();
2077
+ this_0.c1z(transformPatternSwitchToValueSwitch$lambda);
2078
+ return this_0.n1m();
2079
2079
  }
2080
2080
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
2081
2081
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -2083,19 +2083,19 @@ 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.v1y_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
- this_1.b1j(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
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;
2090
+ this_1.m1m(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2091
+ var tmp$ret$2 = this_1.n1m();
2092
+ tmp.v1y_1 = transform(this_0, tmp$ret$2);
2093
+ var tmp_0 = scope.v1y_1;
2094
2094
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2095
2095
  }
2096
2096
  function buildApiConst(endpoint) {
2097
2097
  // Inline function 'kotlin.text.replaceFirstChar' call
2098
- var this_0 = endpoint.up_1.l1();
2098
+ var this_0 = endpoint.ft_1.m1();
2099
2099
  var tmp;
2100
2100
  // Inline function 'kotlin.text.isNotEmpty' call
2101
2101
  if (charSequenceLength(this_0) > 0) {
@@ -2109,8 +2109,8 @@ function buildApiConst(endpoint) {
2109
2109
  tmp = this_0;
2110
2110
  }
2111
2111
  var apiName = tmp;
2112
- var method = endpoint.vp_1.a3_1;
2113
- var pathString = joinToString(endpoint.wp_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2112
+ var method = endpoint.gt_1.b3_1;
2113
+ var pathString = joinToString(endpoint.ht_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2114
2114
  return raw(trimMargin('\n |export const client:Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawResponse(serialization, it),\n | to: (it) => toRawRequest(serialization, it)\n |})\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n | from: (it) => fromRawRequest(serialization, it),\n | to: (it) => toRawResponse(serialization, it)\n |})\n |export const api = {\n | name: "' + apiName + '",\n | method: "' + method + '",\n | path: "' + pathString + '",\n | server,\n | client\n |} as const\n '));
2115
2115
  }
2116
2116
  function bindCallToRequestParams(_this__u8e3s4) {
@@ -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.v1y_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
- this_1.b1j(bindCallToRequestParams$lambda);
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;
2126
+ this_1.m1m(bindCallToRequestParams$lambda);
2127
+ var tmp$ret$2 = this_1.n1m();
2128
+ tmp.v1y_1 = transform(this_0, tmp$ret$2);
2129
+ var tmp_0 = scope.v1y_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.c1z(stripTrailingSpaceFromErrorMessage$lambda);
2136
+ var tmp = scope.v1y_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.x1t_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.e1u_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.z1t_1;
2173
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1q();
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.x1t_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,48 +2181,48 @@ 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.e1u_1;
2185
2185
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
2186
- var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.l1j_1;
2187
- var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1h();
2186
+ var tmp1_safe_receiver = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.w1m_1;
2187
+ var typeName = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d1l();
2188
2188
  var tmp3_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
2189
2189
  var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : removePrefix(tmp3_safe_receiver, 'Response');
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.d1u_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);
2200
- destination_0.x(tmp$ret$2);
2199
+ var tmp$ret$2 = tr.p1y(item_0);
2200
+ destination_0.y(tmp$ret$2);
2201
2201
  }
2202
- tmp$ret$5 = item.v1q(VOID, destination_0);
2202
+ tmp$ret$5 = item.g1u(VOID, destination_0);
2203
2203
  break $l$block_1;
2204
2204
  }
2205
- var exprCode = TypeScriptGenerator_getInstance().o1w(tr.f1v(stmt.l1q_1));
2206
- var castAssignment = new Assignment(Companion_getInstance().r1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2205
+ var exprCode = TypeScriptGenerator_getInstance().z1z(tr.q1y(stmt.w1t_1));
2206
+ var castAssignment = new Assignment(Companion_getInstance().c1l(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.d1u_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);
2217
- destination_1.x(tmp$ret$6);
2216
+ var tmp$ret$6 = tr.p1y(item_1);
2217
+ destination_1.y(tmp$ret$6);
2218
2218
  }
2219
2219
  tmp$ret$5 = new Case(tmp_2, plus_1(tmp_3, destination_1), null);
2220
2220
  }
2221
- destination.x(tmp$ret$5);
2221
+ destination.y(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.q1y(stmt.w1t_1), Companion_getInstance().c1l('status'));
2225
+ var tmp2_safe_receiver = stmt.y1t_1;
2226
2226
  var tmp_5;
2227
2227
  if (tmp2_safe_receiver == null) {
2228
2228
  tmp_5 = null;
@@ -2233,8 +2233,8 @@ 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);
2237
- destination_2.x(tmp$ret$11);
2236
+ var tmp$ret$11 = tr.p1y(item_2);
2237
+ destination_2.y(tmp$ret$11);
2238
2238
  }
2239
2239
  tmp_5 = destination_2;
2240
2240
  }
@@ -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.p1q_1.equals(Companion_getInstance().c1l('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.n1q_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.o1q_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.o1q_1);
2267
2267
  var tmp0_safe_receiver = tmp_3 instanceof Custom_0 ? tmp_3 : null;
2268
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.l1j_1;
2269
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1h();
2268
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w1m_1;
2269
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.d1l();
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().c1l('validate' + tn), mapOf(to(Companion_getInstance().c1l('obj'), t.q1y(ensureNotNull(s.n1q_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.h1u_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.v1(s.i1u_1.f1q());
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().c1l('obj')), s.i1u_1);
2287
2287
  } else {
2288
2288
  tmp = transformChildren(s, t);
2289
2289
  }
@@ -2297,15 +2297,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2297
2297
  if (element instanceof Function) {
2298
2298
  var tmp$ret$0;
2299
2299
  $l$block: {
2300
- if (!element.h1l_1.equals(Companion_getInstance().r1h('validate'))) {
2300
+ if (!element.s1o_1.equals(Companion_getInstance().c1l('validate'))) {
2301
2301
  tmp$ret$0 = element;
2302
2302
  break $l$block;
2303
2303
  }
2304
2304
  // Inline function 'community.flock.wirespec.ir.core.transform' call
2305
- var this_0 = element.p1l(Companion_getInstance().r1h('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().r1h('obj'), Custom_init_$Create$($typeName))));
2305
+ var this_0 = element.a1p(Companion_getInstance().c1l('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().c1l('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.e1z(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2308
+ var tmp_0 = scope.v1y_1;
2309
2309
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
2310
2310
  }
2311
2311
  tmp = tmp$ret$0;
@@ -2319,10 +2319,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
2319
2319
  function buildApiConst$lambda(it) {
2320
2320
  var tmp;
2321
2321
  if (it instanceof Literal) {
2322
- tmp = it.xq_1;
2322
+ tmp = it.iu_1;
2323
2323
  } else {
2324
2324
  if (it instanceof Param) {
2325
- tmp = '{' + it.bq_1.l1() + '}';
2325
+ tmp = '{' + it.mt_1.m1() + '}';
2326
2326
  } else {
2327
2327
  noWhenBranchMatchedException();
2328
2328
  }
@@ -2334,23 +2334,23 @@ 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.e1s_1.equals(Companion_getInstance().c1l('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.f1s_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();
2346
2346
  while (_iterator__ex2g4s.u()) {
2347
2347
  var item = _iterator__ex2g4s.v();
2348
2348
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2349
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1l(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().r1h('params'), Custom_init_$Create$('RequestParams'))));
2349
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1p(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().c1l('params'), Custom_init_$Create$('RequestParams'))));
2350
2350
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2351
- destination.x(tmp$ret$1);
2351
+ destination.y(tmp$ret$1);
2352
2352
  }
2353
- tmp$ret$0 = element.a1p(VOID, destination);
2353
+ tmp$ret$0 = element.l1s(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.y1t_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.l1u_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.m1u_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.j1t_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.k1t_1));
2408
2408
  }
2409
- destination.x(tmp$ret$0);
2409
+ destination.y(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.b1u(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.k24_1 = 'community.flock.wirespec';
2424
+ this.l24_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';
@@ -2443,7 +2443,7 @@ function TypeScriptShared_getInstance() {
2443
2443
  return TypeScriptShared_instance;
2444
2444
  }
2445
2445
  function TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda(it) {
2446
- return isLetterOrDigit(it.h1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).u1(it);
2446
+ return isLetterOrDigit(it.i1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).v1(it);
2447
2447
  }
2448
2448
  function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2449
2449
  // Inline function 'kotlin.text.trimStart' call
@@ -2451,30 +2451,30 @@ function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2451
2451
  }
2452
2452
  function TypeScriptTypeDefinitionEmitter$emit$lambda_0(this$0) {
2453
2453
  return function (it) {
2454
- return this$0.mq(it);
2454
+ return this$0.xt(it);
2455
2455
  };
2456
2456
  }
2457
2457
  function TypeScriptTypeDefinitionEmitter() {
2458
2458
  }
2459
2459
  //region block: post-declaration
2460
- protoOf(TypeScriptEmitter).kq = emit_3;
2461
- protoOf(TypeScriptEmitter).lq = emit_6;
2462
- protoOf(TypeScriptEmitter).mq = emit_7;
2463
- protoOf(TypeScriptEmitter).nq = emit_4;
2464
- protoOf(TypeScriptEmitter).oq = emit_5;
2465
- protoOf(TypeScriptEmitter).zr = emit_8;
2466
- protoOf(TypeScriptEmitter).ur = emit_10;
2467
- protoOf(TypeScriptEmitter).as = emit_9;
2468
- protoOf(TypeScriptEmitter).nr = emit_2;
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;
2474
- protoOf(TypeScriptEmitter).qq = emitClientEndpointRequest;
2475
- protoOf(TypeScriptIrEmitter).z1v = get_extensions;
2476
- protoOf(TypeScriptIrEmitter).a1w = emit_1;
2477
- protoOf(TypeScriptIrEmitter).e1w = beforeGenerate;
2460
+ protoOf(TypeScriptEmitter).vt = emit_3;
2461
+ protoOf(TypeScriptEmitter).wt = emit_6;
2462
+ protoOf(TypeScriptEmitter).xt = emit_7;
2463
+ protoOf(TypeScriptEmitter).yt = emit_4;
2464
+ protoOf(TypeScriptEmitter).zt = emit_5;
2465
+ protoOf(TypeScriptEmitter).kv = emit_9;
2466
+ protoOf(TypeScriptEmitter).fv = emit_8;
2467
+ protoOf(TypeScriptEmitter).lv = emit_10;
2468
+ protoOf(TypeScriptEmitter).yu = emit_2;
2469
+ protoOf(TypeScriptEmitter).mv = emitValidator;
2470
+ protoOf(TypeScriptEmitter).f24 = sanitizeSymbol;
2471
+ protoOf(TypeScriptEmitter).v20 = sanitizeSymbol_0;
2472
+ protoOf(TypeScriptEmitter).g24 = emitPrimitive;
2473
+ protoOf(TypeScriptEmitter).e24 = emitClient;
2474
+ protoOf(TypeScriptEmitter).bu = emitClientEndpointRequest;
2475
+ protoOf(TypeScriptIrEmitter).k1z = get_extensions;
2476
+ protoOf(TypeScriptIrEmitter).l1z = emit_1;
2477
+ protoOf(TypeScriptIrEmitter).p1z = beforeGenerate;
2478
2478
  //endregion
2479
2479
  //region block: exports
2480
2480
  export {