@flock/wirespec 0.18.5 → 0.19.0-RC.2

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 (77) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/arrow-arrow-atomic.mjs +12 -12
  4. package/arrow-arrow-core.mjs +163 -163
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1574 -1574
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +444 -444
  10. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  12. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  13. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  14. package/kotest-kotest-common.mjs +56 -0
  15. package/kotest-kotest-common.mjs.map +1 -0
  16. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  17. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  18. package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
  19. package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
  20. package/kotest-kotest-property.mjs +3230 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +482 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5618 -2436
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4931 -4931
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1819 -1819
  29. package/kotlinx-coroutines-test.mjs +4 -0
  30. package/kotlinx-coroutines-test.mjs.map +1 -0
  31. package/kotlinx-io-kotlinx-io-core.mjs +453 -453
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +2017 -1983
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1395 -1395
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1364 -1364
  38. package/package.json +9 -2
  39. package/wirespec-generator.d.ts +52 -0
  40. package/wirespec-generator.mjs +9 -0
  41. package/wirespec-src-compiler-core.mjs +1542 -1541
  42. package/wirespec-src-compiler-emitters-java.mjs +476 -413
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +359 -296
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +560 -362
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +754 -443
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -164
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +709 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6676 -4858
  57. package/wirespec-src-compiler-ir.mjs.map +1 -1
  58. package/wirespec-src-compiler-lib.mjs +418 -418
  59. package/wirespec-src-compiler-lib.mjs.map +1 -1
  60. package/wirespec-src-converter-avro.mjs +512 -512
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +772 -772
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1537 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +185 -185
  67. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  68. package/wirespec-src-plugin-cli.mjs +106 -106
  69. package/wirespec-src-plugin-npm.d.mts +11 -0
  70. package/wirespec-src-plugin-npm.mjs +41 -41
  71. package/wirespec-src-plugin-npm.mjs.map +1 -1
  72. package/wirespec-src-tools-generator.mjs +53 -53
  73. package/wirespec-src-tools-generator.mjs.map +1 -1
  74. package/xmlutil-core.mjs +4 -0
  75. package/xmlutil-core.mjs.map +1 -0
  76. package/xmlutil-serialization.mjs +4 -0
  77. package/xmlutil-serialization.mjs.map +1 -0
@@ -32,6 +32,11 @@ import {
32
32
  Unit2z95clvxm08vr as Unit,
33
33
  Iterable29qbzfup67wqp as Iterable,
34
34
  Dict3g7w5wia7rncj as Dict,
35
+ Unionccsavx6nrdr2 as Union,
36
+ Refined1lkzc0dg6wey7 as Refined,
37
+ Enum3l2iuc342kle6 as Enum,
38
+ Type12n1gx16iqtcu as Type,
39
+ plus14o24vdaiongg as plus_0,
35
40
  Bytes_instance1o9u095wd3kx6 as Bytes_instance,
36
41
  Boolean_instance237vwt01w3hs8 as Boolean_instance,
37
42
  RegExpiyof7szm5zfu as RegExp_0,
@@ -73,30 +78,43 @@ import {
73
78
  Regex_init_$Create$9xrx4twz2i6q as Regex_init_$Create$,
74
79
  getStringHashCode26igk1bx568vk as getStringHashCode,
75
80
  getBooleanHashCode1bbj3u6b3v0a7 as getBooleanHashCode,
81
+ listOf1jh22dvmctj1r as listOf,
82
+ mapCapacity1h45rc3eh9p2l as mapCapacity,
83
+ coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
84
+ LinkedHashMap_init_$Create$1s75e1k23v4xj as LinkedHashMap_init_$Create$_0,
85
+ removePrefix279df90bhrqqg as removePrefix,
76
86
  setOf45ia9pnfhe90 as setOf,
77
87
  initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
78
- listOfvhqybd2zx248 as listOf,
88
+ listOfvhqybd2zx248 as listOf_0,
79
89
  to2cs3ny02qtbcb as to,
80
90
  toMap1vec9topfei08 as toMap,
81
91
  emptyList1g2z5xcrvp2zy as emptyList,
82
- plus310ted5e4i90h as plus_0,
92
+ plus310ted5e4i90h as plus_1,
93
+ equals2au1ep9vhcato as equals,
94
+ mapOf2zpbbmyqk8xpf as mapOf,
95
+ plus2m1vv33moko5t as plus_2,
96
+ startsWith26w8qjqapeeq6 as startsWith,
97
+ substringBefore3n7kj60w69hju as substringBefore,
98
+ endsWith3cq61xxngobwh as endsWith,
83
99
  isInterface3d6p8outrmvmk as isInterface,
84
100
  lazy2hsh8ze7j6ikd as lazy,
85
- distinct10qe1scfdvu5k as distinct,
101
+ asSequence2phdjljfh9jhx as asSequence,
102
+ filterNot56uwv8hfomaa as filterNot,
103
+ mapsbvh18eqox7a as map,
104
+ distinct17vua5ffe1cfv as distinct,
105
+ toListx6x8nvfmvvht as toList,
106
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
107
+ distinct10qe1scfdvu5k as distinct_0,
86
108
  toSet2orjxp16sotqu as toSet,
87
- listOf1jh22dvmctj1r as listOf_0,
88
109
  Collection1k04j3hzsbod0 as Collection,
89
110
  substringAfterLastuw9v7gfiiihe as substringAfterLast,
90
- removePrefix279df90bhrqqg as removePrefix,
91
111
  toIntOrNull3w2d066r9pvwm as toIntOrNull,
92
112
  ensureNotNull1e947j3ixpazm as ensureNotNull,
93
- mapOf2zpbbmyqk8xpf as mapOf,
94
113
  charArrayOf27f4r3dozbrk1 as charArrayOf,
95
114
  trimEndvvzjdhan75g as trimEnd,
96
- equals2au1ep9vhcato as equals,
97
115
  initMetadataForObject1cxne3s9w65el as initMetadataForObject,
98
116
  Char19o2r8palgjof as Char,
99
- asSequence3lsvgkvyzox0q as asSequence,
117
+ asSequence3lsvgkvyzox0q as asSequence_0,
100
118
  filter184huxd00uyfg as filter,
101
119
  joinToStringooja5rkatz3u as joinToString_0,
102
120
  listOfNotNull2woi2boe01ub4 as listOfNotNull,
@@ -122,6 +140,15 @@ import {
122
140
  withElements2toq84v08e72 as withElements,
123
141
  Namespace345pal554qu3j as Namespace,
124
142
  transformChildrend9p91tpcqdkx as transformChildren_0,
143
+ StringLiteral3ffeojfhsbsmg as StringLiteral,
144
+ Field354s1ceh5pvhf as Field,
145
+ Struct39wf79cwtn4ty as Struct,
146
+ RawExpression2bo7ldfrptjia as RawExpression,
147
+ FunctionCall30872kpnbr7op as FunctionCall,
148
+ transformChildren3n5cjwmxlhwx9 as transformChildren_1,
149
+ Custom2si7lto3wompr as Custom_0,
150
+ String_instance3uxvo48ki208u as String_instance,
151
+ Literal50s1y3607cdv as Literal_0,
125
152
  TransformScopeyrd3lf4zrk76 as TransformScope,
126
153
  TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
127
154
  transform3eti8i2bqvifx as transform,
@@ -132,9 +159,14 @@ import {
132
159
  emitn3eihixilqyh as emit_0,
133
160
  import5uhkz67bd8tt as import_0,
134
161
  File3dimy4iqmuock as File,
162
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
163
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
164
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
165
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
166
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
167
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
135
168
  classifyValidatableFields11bv88x0ho39r as classifyValidatableFields,
136
169
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
137
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
138
170
  convert11ert2po54h1y as convert_0,
139
171
  convert37aabdzvtv9vg as convert_1,
140
172
  convert17zcptkz4mhr4 as convert_2,
@@ -143,16 +175,13 @@ import {
143
175
  convert32tuiui3czihh as convert_3,
144
176
  convert1cn4bolzoed8c as convert_4,
145
177
  emit3bzdcd0f6nwtj as emit_1,
178
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
146
179
  IrEmitterh2m93ojzvkep as IrEmitter,
147
180
  rawttvqxl50flj9 as raw,
148
181
  Switch3a1zi3na98deu as Switch,
149
- Custom2si7lto3wompr as Custom_0,
150
- RawExpression2bo7ldfrptjia as RawExpression,
151
182
  Integer1uwg1wvo5lp6z as Integer_0,
152
- Literal50s1y3607cdv as Literal_0,
153
183
  Case2i7oahw4alz6h as Case,
154
184
  FieldCall1iz7z2fx2xo4p as FieldCall,
155
- FunctionCall30872kpnbr7op as FunctionCall,
156
185
  Parameteruqoxd4rzw7ga as Parameter,
157
186
  Function21cuq8qizkin7 as Function,
158
187
  Interface3pn84xq686t2r as Interface,
@@ -164,14 +193,14 @@ var imul = Math.imul;
164
193
  //endregion
165
194
  //region block: pre-declaration
166
195
  function emit_2(identifier) {
167
- return '"' + identifier.l1() + '"';
196
+ return '"' + identifier.n1() + '"';
168
197
  }
169
198
  initMetadataForInterface(TypeScriptIdentifierEmitter, 'TypeScriptIdentifierEmitter');
170
199
  function sanitizeSymbol(_this__u8e3s4) {
171
- return this.o1v(_this__u8e3s4.l1());
200
+ return this.z20(_this__u8e3s4.n1());
172
201
  }
173
202
  function sanitizeSymbol_0(_this__u8e3s4) {
174
- var tmp = asSequence(_this__u8e3s4);
203
+ var tmp = asSequence_0(_this__u8e3s4);
175
204
  return joinToString_0(filter(tmp, TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda), '');
176
205
  }
177
206
  function emit_3(type, module_0) {
@@ -182,7 +211,7 @@ function emit_3(type, module_0) {
182
211
  var _iterator__ex2g4s = this_0.t();
183
212
  while (_iterator__ex2g4s.u()) {
184
213
  var e = _iterator__ex2g4s.v();
185
- var key = e.ku_1;
214
+ var key = e.az_1;
186
215
  if (set.x(key)) {
187
216
  list.x(e);
188
217
  }
@@ -193,19 +222,19 @@ function emit_3(type, module_0) {
193
222
  var _iterator__ex2g4s_0 = list.t();
194
223
  while (_iterator__ex2g4s_0.u()) {
195
224
  var item = _iterator__ex2g4s_0.v();
196
- var tmp$ret$2 = 'import {' + item.ku_1 + "} from './" + item.ku_1 + "'";
225
+ var tmp$ret$2 = 'import {' + item.az_1 + "} from './" + item.az_1 + "'";
197
226
  destination.x(tmp$ret$2);
198
227
  }
199
228
  var tmp = destination;
200
- return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.w1y(type.vo_1) + ' = {\n |' + this.vp(type.wo_1) + '\n |}\n |\n ');
229
+ return trimMargin('\n |' + joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda) + '\n |export type ' + this.i24(type.lt_1) + ' = {\n |' + this.lu(type.mt_1) + '\n |}\n |\n ');
201
230
  }
202
231
  function emit_4(_this__u8e3s4) {
203
232
  var tmp;
204
233
  if (_this__u8e3s4 instanceof Dict) {
205
- tmp = 'Record<string, ' + this.xp(_this__u8e3s4.co_1) + '>';
234
+ tmp = 'Record<string, ' + this.nu(_this__u8e3s4.ss_1) + '>';
206
235
  } else {
207
236
  if (_this__u8e3s4 instanceof Iterable) {
208
- tmp = this.xp(_this__u8e3s4.zn_1) + '[]';
237
+ tmp = this.nu(_this__u8e3s4.ps_1) + '[]';
209
238
  } else {
210
239
  if (_this__u8e3s4 instanceof Unit) {
211
240
  tmp = 'void';
@@ -214,10 +243,10 @@ function emit_4(_this__u8e3s4) {
214
243
  tmp = 'any';
215
244
  } else {
216
245
  if (_this__u8e3s4 instanceof Custom) {
217
- tmp = this.o1v(_this__u8e3s4.ku_1);
246
+ tmp = this.z20(_this__u8e3s4.az_1);
218
247
  } else {
219
248
  if (_this__u8e3s4 instanceof Primitive) {
220
- tmp = this.x1y(_this__u8e3s4);
249
+ tmp = this.j24(_this__u8e3s4);
221
250
  } else {
222
251
  noWhenBranchMatchedException();
223
252
  }
@@ -227,10 +256,10 @@ function emit_4(_this__u8e3s4) {
227
256
  }
228
257
  }
229
258
  // Inline function 'kotlin.let' call
230
- return tmp + (_this__u8e3s4.cu() ? ' | undefined' : '');
259
+ return tmp + (_this__u8e3s4.sy() ? ' | undefined' : '');
231
260
  }
232
261
  function emitPrimitive(_this__u8e3s4) {
233
- var tmp0_subject = _this__u8e3s4.ou_1;
262
+ var tmp0_subject = _this__u8e3s4.ez_1;
234
263
  var tmp;
235
264
  if (tmp0_subject instanceof String_0) {
236
265
  tmp = 'string';
@@ -258,10 +287,10 @@ function emitPrimitive(_this__u8e3s4) {
258
287
  function emit_5(_this__u8e3s4) {
259
288
  var tmp;
260
289
  if (_this__u8e3s4 instanceof RegExp_0) {
261
- tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '.test(value);';
290
+ tmp = Spacer_instance.toString() + 'return ' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ox_1) + '.test(value);';
262
291
  } else {
263
292
  if (_this__u8e3s4 instanceof Bound) {
264
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
293
+ var tmp1_safe_receiver = _this__u8e3s4.ey_1;
265
294
  var tmp_0;
266
295
  if (tmp1_safe_receiver == null) {
267
296
  tmp_0 = null;
@@ -270,7 +299,7 @@ function emit_5(_this__u8e3s4) {
270
299
  tmp_0 = tmp1_safe_receiver + ' < value';
271
300
  }
272
301
  var minCheck = tmp_0;
273
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
302
+ var tmp2_safe_receiver = _this__u8e3s4.fy_1;
274
303
  var tmp_1;
275
304
  if (tmp2_safe_receiver == null) {
276
305
  tmp_1 = null;
@@ -298,18 +327,18 @@ function emit_5(_this__u8e3s4) {
298
327
  return tmp;
299
328
  }
300
329
  function emit_6(_this__u8e3s4) {
301
- return joinToString(_this__u8e3s4.so_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
330
+ return joinToString(_this__u8e3s4.it_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptTypeDefinitionEmitter$emit$lambda_0(this));
302
331
  }
303
332
  function emit_7(_this__u8e3s4) {
304
- return Spacer_instance.toString() + this.wq(_this__u8e3s4.ap_1) + ': ' + this.xp(_this__u8e3s4.bp_1);
333
+ return Spacer_instance.toString() + this.mv(_this__u8e3s4.qt_1) + ': ' + this.nu(_this__u8e3s4.rt_1);
305
334
  }
306
335
  initMetadataForInterface(TypeScriptTypeDefinitionEmitter, 'TypeScriptTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, TypeScriptIdentifierEmitter]);
307
336
  function emitClient(ast) {
308
- var tmp = 'client.' + this.eq().nq_1;
309
- var tmp_0 = this.aq(ast);
337
+ var tmp = 'client.' + this.uu().dv_1;
338
+ var tmp_0 = this.qu(ast);
310
339
  var tmp_1 = joinToString(tmp_0, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda);
311
340
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
312
- var this_0 = ast.bq_1;
341
+ var this_0 = ast.ru_1;
313
342
  // Inline function 'kotlin.collections.flatMap' call
314
343
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
315
344
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -317,7 +346,7 @@ function emitClient(ast) {
317
346
  var _iterator__ex2g4s = tmp0.t();
318
347
  while (_iterator__ex2g4s.u()) {
319
348
  var element = _iterator__ex2g4s.v();
320
- var list = new NonEmptyList(element.dq_1);
349
+ var list = new NonEmptyList(element.tu_1);
321
350
  addAll(destination, list);
322
351
  }
323
352
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -337,42 +366,47 @@ function emitClient(ast) {
337
366
  var _iterator__ex2g4s_1 = destination_0.t();
338
367
  while (_iterator__ex2g4s_1.u()) {
339
368
  var e = _iterator__ex2g4s_1.v();
340
- var key = e.ku_1;
369
+ var key = e.az_1;
341
370
  if (set.x(key)) {
342
371
  list_1.x(e);
343
372
  }
344
373
  }
345
374
  var tmp_2 = list_1;
346
375
  var tmp_3 = joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, TypeScriptClientEmitter$emitClient$lambda_0);
347
- var tmp_4 = this.aq(ast);
376
+ var tmp_4 = this.qu(ast);
348
377
  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 '));
349
378
  }
350
379
  initMetadataForInterface(TypeScriptClientEmitter, 'TypeScriptClientEmitter', VOID, VOID, [ClientEmitter, TypeScriptTypeDefinitionEmitter]);
351
- function emit_8(refined) {
352
- return trimMargin('\n |export type ' + this.w1y(refined.br_1) + ' = ' + this.xp(refined.cr_1) + ';\n |export const validate' + refined.br_1.l1() + ' = (value: ' + this.xp(refined.cr_1) + '): value is ' + this.w1y(refined.br_1) + ' => {\n |' + this.kr(refined) + '\n |}\n |\n ');
380
+ function emit_8(enum_0, module_0) {
381
+ var tmp = this.i24(enum_0.wv_1);
382
+ return 'export type ' + tmp + ' = ' + joinToString(enum_0.xv_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
383
+ }
384
+ initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
385
+ function emit_9(refined) {
386
+ return trimMargin('\n |export type ' + this.i24(refined.rv_1) + ' = ' + this.nu(refined.sv_1) + ';\n |export const validate' + refined.rv_1.n1() + ' = (value: ' + this.nu(refined.sv_1) + '): value is ' + this.i24(refined.rv_1) + ' => {\n |' + this.aw(refined) + '\n |}\n |\n ');
353
387
  }
354
388
  function emitValidator(_this__u8e3s4) {
355
389
  var defaultReturn = Spacer_instance.toString() + 'return true;';
356
- var type = _this__u8e3s4.cr_1.ou_1;
390
+ var type = _this__u8e3s4.sv_1.ez_1;
357
391
  var tmp;
358
392
  if (type instanceof Integer) {
359
- var tmp0_safe_receiver = type.tt_1;
360
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
393
+ var tmp0_safe_receiver = type.jy_1;
394
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.ou(tmp0_safe_receiver);
361
395
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
362
396
  } else {
363
397
  if (type instanceof Number_0) {
364
- var tmp2_safe_receiver = type.wt_1;
365
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
398
+ var tmp2_safe_receiver = type.my_1;
399
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.ou(tmp2_safe_receiver);
366
400
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
367
401
  } else {
368
402
  if (type instanceof String_0) {
369
- var tmp4_safe_receiver = type.qt_1;
403
+ var tmp4_safe_receiver = type.gy_1;
370
404
  var tmp_0;
371
405
  var tmp_1 = tmp4_safe_receiver;
372
406
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
373
407
  tmp_0 = null;
374
408
  } else {
375
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
409
+ tmp_0 = this.ou(new RegExp_0(tmp4_safe_receiver));
376
410
  }
377
411
  var tmp5_elvis_lhs = tmp_0;
378
412
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -392,7 +426,7 @@ function emitValidator(_this__u8e3s4) {
392
426
  return tmp;
393
427
  }
394
428
  initMetadataForInterface(TypeScriptRefinedTypeDefinitionEmitter, 'TypeScriptRefinedTypeDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
395
- function emit_9(endpoint) {
429
+ function emit_10(endpoint) {
396
430
  // Inline function 'kotlin.collections.distinctBy' call
397
431
  var this_0 = importReferences(endpoint);
398
432
  var set = HashSet_init_$Create$();
@@ -400,7 +434,7 @@ function emit_9(endpoint) {
400
434
  var _iterator__ex2g4s = this_0.t();
401
435
  while (_iterator__ex2g4s.u()) {
402
436
  var e = _iterator__ex2g4s.v();
403
- var key = e.ku_1;
437
+ var key = e.az_1;
404
438
  if (set.x(key)) {
405
439
  list.x(e);
406
440
  }
@@ -411,45 +445,40 @@ function emit_9(endpoint) {
411
445
  var _iterator__ex2g4s_0 = list.t();
412
446
  while (_iterator__ex2g4s_0.u()) {
413
447
  var item = _iterator__ex2g4s_0.v();
414
- var tmp$ret$2 = 'import {type ' + item.ku_1 + "} from '../model'";
448
+ var tmp$ret$2 = 'import {type ' + item.az_1 + "} from '../model'";
415
449
  destination.x(tmp$ret$2);
416
450
  }
417
451
  var tmp = destination;
418
452
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda);
419
- var tmp_1 = this.w1y(endpoint.ep_1);
453
+ var tmp_1 = this.i24(endpoint.ut_1);
420
454
  var tmp_2 = get_pathParams(endpoint);
421
455
  var tmp_3 = emitType(this, tmp_2, 'Path', TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this));
422
- var tmp_4 = emitType(this, endpoint.hp_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
423
- var tmp_5 = emitType(this, endpoint.ip_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
424
- var tmp_6 = emitType_1(this, first(endpoint.jp_1), endpoint);
425
- var tmp_7 = distinctByStatus(endpoint.kp_1);
456
+ var tmp_4 = emitType(this, endpoint.xt_1, 'Queries', TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this));
457
+ var tmp_5 = emitType(this, endpoint.yt_1, 'Headers', TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this));
458
+ var tmp_6 = emitType_1(this, first(endpoint.zt_1), endpoint);
459
+ var tmp_7 = distinctByStatus(endpoint.au_1);
426
460
  var tmp_8 = joinToString(tmp_7, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this));
427
461
  var tmp_9 = Spacer_instance.toString();
428
- var tmp_10 = distinctByStatus(endpoint.kp_1);
462
+ var tmp_10 = distinctByStatus(endpoint.au_1);
429
463
  var tmp_11 = joinToString(tmp_10, ' | ', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_4(this));
430
- var tmp_12 = emitFunction_0(this, first(endpoint.jp_1), endpoint);
431
- var tmp_13 = distinctByStatus(endpoint.kp_1);
464
+ var tmp_12 = emitFunction_0(this, first(endpoint.zt_1), endpoint);
465
+ var tmp_13 = distinctByStatus(endpoint.au_1);
432
466
  var tmp_14 = joinToString(tmp_13, '\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_5(this));
433
467
  var tmp_15 = Spacer_instance.toString();
434
- var tmp_16 = Spacer_instance.qr(2);
468
+ var tmp_16 = Spacer_instance.gw(2);
435
469
  var tmp_17 = emitHandleFunction(this, endpoint);
436
470
  var tmp_18 = Spacer_instance.toString();
437
- var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.qr(1));
438
- var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.qr(1));
471
+ var tmp_19 = prependIndent(emitClient_0(this, endpoint), Spacer_instance.gw(1));
472
+ var tmp_20 = prependIndent(emitServer(this, endpoint), Spacer_instance.gw(1));
439
473
  var tmp_21 = Spacer_instance.toString();
440
- var tmp_22 = Spacer_instance.qr(2);
441
- var tmp_23 = Companion_instance_0.pq(this.w1y(endpoint.ep_1));
442
- var tmp_24 = Spacer_instance.qr(2);
443
- var tmp_25 = Spacer_instance.qr(2);
444
- 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.fp_1.a3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.qr(2) + 'server,\n |' + Spacer_instance.qr(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
474
+ var tmp_22 = Spacer_instance.gw(2);
475
+ var tmp_23 = Companion_instance_0.fv(this.i24(endpoint.ut_1));
476
+ var tmp_24 = Spacer_instance.gw(2);
477
+ var tmp_25 = Spacer_instance.gw(2);
478
+ 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.vt_1.g3_1 + '",\n |' + tmp_25 + 'path: "' + joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emit$lambda_6(this)) + '",\n |' + Spacer_instance.gw(2) + 'server,\n |' + Spacer_instance.gw(2) + 'client\n |' + Spacer_instance.toString() + '} as const\n |}\n |\n ');
445
479
  }
446
480
  initMetadataForInterface(TypeScriptEndpointDefinitionEmitter, 'TypeScriptEndpointDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
447
- function emit_10(enum_0, module_0) {
448
- var tmp = this.w1y(enum_0.gr_1);
449
- return 'export type ' + tmp + ' = ' + joinToString(enum_0.hr_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEnumDefinitionEmitter$emit$lambda) + '\n';
450
- }
451
- initMetadataForInterface(TypeScriptEnumDefinitionEmitter, 'TypeScriptEnumDefinitionEmitter', VOID, VOID, [TypeScriptTypeDefinitionEmitter]);
452
- initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEndpointDefinitionEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptClientEmitter]);
481
+ initMetadataForClass(TypeScriptEmitter, 'TypeScriptEmitter', TypeScriptEmitter, LanguageEmitter, [LanguageEmitter, TypeScriptClientEmitter, TypeScriptEnumDefinitionEmitter, TypeScriptRefinedTypeDefinitionEmitter, TypeScriptIdentifierEmitter, TypeScriptTypeDefinitionEmitter, TypeScriptEndpointDefinitionEmitter]);
453
482
  initMetadataForClass(EndpointParam, 'EndpointParam');
454
483
  initMetadataForCompanion(Companion);
455
484
  initMetadataForClass(TypeScriptIrEmitter, 'TypeScriptIrEmitter', TypeScriptIrEmitter, VOID, [IrEmitter]);
@@ -485,10 +514,10 @@ function emitClientInterface($this, _this__u8e3s4, endpoint) {
485
514
  return tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
486
515
  }
487
516
  function emitFunction($this, endpoint, request) {
488
- var tmp = endpoint.ep_1.l1();
517
+ var tmp = endpoint.ut_1.n1();
489
518
  var tmp_0 = emitClientInterface($this, request, endpoint);
490
519
  var tmp_1 = Spacer_instance.toString();
491
- var tmp_2 = endpoint.ep_1.l1();
520
+ var tmp_2 = endpoint.ut_1.n1();
492
521
  // Inline function 'kotlin.takeIf' call
493
522
  var this_0 = paramList(request, endpoint);
494
523
  var tmp_3;
@@ -508,31 +537,31 @@ function emitFunction($this, endpoint, request) {
508
537
  // Inline function 'kotlin.text.orEmpty' call
509
538
  var tmp0_elvis_lhs = tmp_4;
510
539
  var tmp$ret$5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
511
- 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.ep_1.l1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ep_1.l1() + '.client(serialization).from(rawResponse)\n |},\n ');
540
+ 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.ut_1.n1() + '.client(serialization).to(req)\n |' + Spacer_instance.toString() + 'const rawResponse = await handler(rawRequest)\n |' + Spacer_instance.toString() + 'return ' + endpoint.ut_1.n1() + '.client(serialization).from(rawResponse)\n |},\n ');
512
541
  }
513
542
  function TypeScriptClientEmitter$emitClient$lambda(_destruct__k2r9zo) {
514
- var endpoint = _destruct__k2r9zo.ne();
515
- return 'import {' + endpoint.ep_1.l1() + '} from "./endpoint/' + endpoint.ep_1.l1() + '"';
543
+ var endpoint = _destruct__k2r9zo.pf();
544
+ return 'import {' + endpoint.ut_1.n1() + '} from "./endpoint/' + endpoint.ut_1.n1() + '"';
516
545
  }
517
546
  function TypeScriptClientEmitter$emitClient$lambda_0(it) {
518
- return 'import {type ' + it.ku_1 + '} from "./model/' + it.ku_1 + '"';
547
+ return 'import {type ' + it.az_1 + '} from "./model/' + it.az_1 + '"';
519
548
  }
520
549
  function TypeScriptClientEmitter$emitClient$lambda_1(this$0) {
521
550
  return function (_destruct__k2r9zo) {
522
- var endpoint = _destruct__k2r9zo.ne();
523
- var request = _destruct__k2r9zo.oe();
551
+ var endpoint = _destruct__k2r9zo.pf();
552
+ var request = _destruct__k2r9zo.qf();
524
553
  return emitFunction(this$0, endpoint, request);
525
554
  };
526
555
  }
527
556
  function TypeScriptClientEmitter$emitClientInterface$lambda(this$0) {
528
557
  return function (it) {
529
- return this$0.wq(it.jq_1) + ': ' + this$0.xp(it.kq_1);
558
+ return this$0.mv(it.zu_1) + ': ' + this$0.nu(it.av_1);
530
559
  };
531
560
  }
532
561
  function TypeScriptClientEmitter() {
533
562
  }
534
563
  function TypeScriptEmitter$emit$lambda(it) {
535
- return 'export {' + it.vq().l1() + "} from './" + it.vq().l1() + "'";
564
+ return 'export {' + it.lv().n1() + "} from './" + it.lv().n1() + "'";
536
565
  }
537
566
  function TypeScriptEmitter$emit$lambda_0(it) {
538
567
  // Inline function 'kotlin.text.trimStart' call
@@ -540,36 +569,36 @@ function TypeScriptEmitter$emit$lambda_0(it) {
540
569
  }
541
570
  function TypeScriptEmitter$emit$lambda_1(this$0) {
542
571
  return function (it) {
543
- return this$0.xp(it);
572
+ return this$0.nu(it);
544
573
  };
545
574
  }
546
575
  function TypeScriptEmitter() {
547
576
  LanguageEmitter.call(this);
548
- this.y1y_1 = FileExtension_TypeScript_getInstance();
549
- this.z1y_1 = TypeScriptShared_getInstance();
550
- this.a1z_1 = '//';
577
+ this.k24_1 = FileExtension_TypeScript_getInstance();
578
+ this.l24_1 = TypeScriptShared_getInstance();
579
+ this.m24_1 = '//';
551
580
  }
552
- protoOf(TypeScriptEmitter).eq = function () {
553
- return this.y1y_1;
581
+ protoOf(TypeScriptEmitter).uu = function () {
582
+ return this.k24_1;
554
583
  };
555
- protoOf(TypeScriptEmitter).l1v = function () {
556
- return this.z1y_1;
584
+ protoOf(TypeScriptEmitter).w20 = function () {
585
+ return this.l24_1;
557
586
  };
558
- protoOf(TypeScriptEmitter).fq = function () {
559
- return this.a1z_1;
587
+ protoOf(TypeScriptEmitter).vu = function () {
588
+ return this.m24_1;
560
589
  };
561
- protoOf(TypeScriptEmitter).on = function (ast, logger) {
590
+ protoOf(TypeScriptEmitter).es = function (ast, logger) {
562
591
  // Inline function 'kotlin.run' call
563
- var $this$run = protoOf(LanguageEmitter).on.call(this, ast, logger);
592
+ var $this$run = protoOf(LanguageEmitter).es.call(this, ast, logger);
564
593
  var tmp;
565
594
  if (hasEndpoints(ast)) {
566
- tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.v1y(ast));
595
+ tmp = NonEmptyList__plus_impl_xqmb9($this$run, this.h24(ast));
567
596
  } else {
568
597
  tmp = $this$run;
569
598
  }
570
599
  var tmp_0 = tmp;
571
600
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
572
- var this_0 = ast.bq_1;
601
+ var this_0 = ast.ru_1;
573
602
  // Inline function 'kotlin.collections.flatMap' call
574
603
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
575
604
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -577,7 +606,7 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
577
606
  var _iterator__ex2g4s = tmp0.t();
578
607
  while (_iterator__ex2g4s.u()) {
579
608
  var element = _iterator__ex2g4s.v();
580
- var list = new NonEmptyList(element.dq_1);
609
+ var list = new NonEmptyList(element.tu_1);
581
610
  addAll(destination, list);
582
611
  }
583
612
  var tmp$ret$5 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -590,11 +619,11 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
590
619
  var element_0 = _iterator__ex2g4s_0.v();
591
620
  var key = namespace(element_0);
592
621
  // Inline function 'kotlin.collections.getOrPut' call
593
- var value = destination_0.p2(key);
622
+ var value = destination_0.v2(key);
594
623
  var tmp_1;
595
624
  if (value == null) {
596
625
  var answer = ArrayList_init_$Create$();
597
- destination_0.w2(key, answer);
626
+ destination_0.d3(key, answer);
598
627
  tmp_1 = answer;
599
628
  } else {
600
629
  tmp_1 = value;
@@ -604,33 +633,33 @@ protoOf(TypeScriptEmitter).on = function (ast, logger) {
604
633
  }
605
634
  // Inline function 'kotlin.collections.map' call
606
635
  // Inline function 'kotlin.collections.mapTo' call
607
- var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
636
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
608
637
  // Inline function 'kotlin.collections.iterator' call
609
- var _iterator__ex2g4s_1 = destination_0.j1().t();
638
+ var _iterator__ex2g4s_1 = destination_0.l1().t();
610
639
  while (_iterator__ex2g4s_1.u()) {
611
640
  var item = _iterator__ex2g4s_1.v();
612
641
  // Inline function 'kotlin.collections.component1' call
613
- var ns = item.k1();
642
+ var ns = item.m1();
614
643
  // Inline function 'kotlin.collections.component2' call
615
- var defs = item.l1();
616
- var tmp_2 = ns + '/index.' + this.eq().nq_1;
644
+ var defs = item.n1();
645
+ var tmp_2 = ns + '/index.' + this.uu().dv_1;
617
646
  var tmp$ret$14 = new Emitted(tmp_2, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda));
618
647
  destination_1.x(tmp$ret$14);
619
648
  }
620
649
  return NonEmptyList__plus_impl_xqmb9_0(tmp_0, destination_1);
621
650
  };
622
- protoOf(TypeScriptEmitter).tq = function (module_0, logger) {
651
+ protoOf(TypeScriptEmitter).jv = function (module_0, logger) {
623
652
  // Inline function 'kotlin.let' call
624
- var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
625
- return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.l1v().c1z_1));
653
+ var it = protoOf(LanguageEmitter).jv.call(this, module_0, logger);
654
+ return NonEmptyList__plus_impl_xqmb9(it, new Emitted('Wirespec', this.w20().o24_1));
626
655
  };
627
- protoOf(TypeScriptEmitter).uq = function (definition, module_0, logger) {
656
+ protoOf(TypeScriptEmitter).kv = function (definition, module_0, logger) {
628
657
  // Inline function 'kotlin.let' call
629
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
630
- var subPackageName = plus(Companion_instance.lr(''), definition);
631
- return new Emitted(subPackageName.or() + this.o1v(it.io_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.jo_1 + '\n '));
658
+ var it = protoOf(LanguageEmitter).kv.call(this, definition, module_0, logger);
659
+ var subPackageName = plus(Companion_instance.bw(''), definition);
660
+ return new Emitted(subPackageName.ew() + this.z20(it.ys_1), trimMargin("\n |import {Wirespec} from '../Wirespec'\n |\n |" + it.zs_1 + '\n '));
632
661
  };
633
- protoOf(TypeScriptEmitter).yq = function (union) {
662
+ protoOf(TypeScriptEmitter).ov = function (union) {
634
663
  // Inline function 'kotlin.collections.distinctBy' call
635
664
  var this_0 = importReferences(union);
636
665
  var set = HashSet_init_$Create$();
@@ -638,7 +667,7 @@ protoOf(TypeScriptEmitter).yq = function (union) {
638
667
  var _iterator__ex2g4s = this_0.t();
639
668
  while (_iterator__ex2g4s.u()) {
640
669
  var e = _iterator__ex2g4s.v();
641
- var key = e.ku_1;
670
+ var key = e.az_1;
642
671
  if (set.x(key)) {
643
672
  list.x(e);
644
673
  }
@@ -649,24 +678,24 @@ protoOf(TypeScriptEmitter).yq = function (union) {
649
678
  var _iterator__ex2g4s_0 = list.t();
650
679
  while (_iterator__ex2g4s_0.u()) {
651
680
  var item = _iterator__ex2g4s_0.v();
652
- var tmp$ret$2 = 'import {type ' + item.ku_1 + "} from '../model'";
681
+ var tmp$ret$2 = 'import {type ' + item.az_1 + "} from '../model'";
653
682
  destination.x(tmp$ret$2);
654
683
  }
655
684
  var tmp = destination;
656
685
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_0);
657
- var tmp_1 = this.w1y(union.qo_1);
658
- return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ro_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
686
+ var tmp_1 = this.i24(union.gt_1);
687
+ return trimMargin('\n |' + tmp_0 + '\n |export type ' + tmp_1 + ' = ' + joinToString(union.ht_1, ' | ', VOID, VOID, VOID, VOID, TypeScriptEmitter$emit$lambda_1(this)) + '\n |\n ');
659
688
  };
660
- protoOf(TypeScriptEmitter).xq = function (channel) {
661
- return this.gq();
689
+ protoOf(TypeScriptEmitter).nv = function (channel) {
690
+ return this.wu();
662
691
  };
663
692
  function emit_11($this, _this__u8e3s4) {
664
693
  var tmp;
665
694
  if (_this__u8e3s4 instanceof Literal) {
666
- tmp = _this__u8e3s4.hq_1;
695
+ tmp = _this__u8e3s4.xu_1;
667
696
  } else {
668
697
  if (_this__u8e3s4 instanceof Param) {
669
- tmp = ':' + _this__u8e3s4.lp_1.l1();
698
+ tmp = ':' + _this__u8e3s4.bu_1.n1();
670
699
  } else {
671
700
  noWhenBranchMatchedException();
672
701
  }
@@ -674,64 +703,64 @@ function emit_11($this, _this__u8e3s4) {
674
703
  return tmp;
675
704
  }
676
705
  function emitClient_0($this, _this__u8e3s4) {
677
- return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.qr(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.qr(1)) + '\n |})\n ');
706
+ return trimMargin('\n |export const client: Wirespec.Client<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitClientTo($this, _this__u8e3s4), Spacer_instance.gw(1)) + ',\n |' + prependIndent(emitClientFrom($this, _this__u8e3s4), Spacer_instance.gw(1)) + '\n |})\n ');
678
707
  }
679
708
  function emitClientTo($this, _this__u8e3s4) {
680
- var tmp = Spacer_instance.qr(1);
709
+ var tmp = Spacer_instance.gw(1);
681
710
  // Inline function 'kotlin.text.uppercase' call
682
711
  // Inline function 'kotlin.js.asDynamic' call
683
- var tmp_0 = _this__u8e3s4.fp_1.a3_1.toUpperCase();
684
- var tmp_1 = Spacer_instance.qr(1);
712
+ var tmp_0 = _this__u8e3s4.vt_1.g3_1.toUpperCase();
713
+ var tmp_1 = Spacer_instance.gw(1);
685
714
  var tmp_2 = emitPathArray($this, _this__u8e3s4);
686
- var tmp_3 = Spacer_instance.qr(1);
687
- var tmp_4 = joinToString(_this__u8e3s4.hp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
688
- var tmp_5 = Spacer_instance.qr(1);
689
- 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.ip_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.qr(1) + 'body: serialization.serialize(it.body)\n |})\n ');
715
+ var tmp_3 = Spacer_instance.gw(1);
716
+ var tmp_4 = joinToString(_this__u8e3s4.xt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda($this));
717
+ var tmp_5 = Spacer_instance.gw(1);
718
+ 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.yt_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientTo$lambda_0($this)) + '},\n |' + Spacer_instance.gw(1) + 'body: serialization.serialize(it.body)\n |})\n ');
690
719
  }
691
720
  function emitClientFrom($this, _this__u8e3s4) {
692
- var tmp = Spacer_instance.qr(1);
693
- var tmp_0 = distinctByStatus(_this__u8e3s4.kp_1);
694
- 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.qr(2)) + '\n |' + Spacer_instance.qr(2) + 'default:\n |' + Spacer_instance.qr(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
721
+ var tmp = Spacer_instance.gw(1);
722
+ var tmp_0 = distinctByStatus(_this__u8e3s4.au_1);
723
+ 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.gw(2)) + '\n |' + Spacer_instance.gw(2) + 'default:\n |' + Spacer_instance.gw(3) + 'throw new Error(`Cannot internalize response with status: ${it.status}`);\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
695
724
  }
696
725
  function emitClientFromResponse($this, _this__u8e3s4) {
697
- var tmp = fixStatus(_this__u8e3s4.qp_1);
698
- var tmp_0 = Spacer_instance.qr(1);
699
- var tmp_1 = Spacer_instance.qr(2);
700
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
701
- var tmp_3 = Spacer_instance.qr(2);
702
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.qr(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.qr(1) + '};\n ');
726
+ var tmp = fixStatus(_this__u8e3s4.gu_1);
727
+ var tmp_0 = Spacer_instance.gw(1);
728
+ var tmp_1 = Spacer_instance.gw(2);
729
+ var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
730
+ var tmp_3 = Spacer_instance.gw(2);
731
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitClientFromResponse$lambda($this)) + '},\n |' + Spacer_instance.gw(2) + 'body: serialization.deserialize<' + emitReference($this, _this__u8e3s4) + '>(it.body)\n |' + Spacer_instance.gw(1) + '};\n ');
703
732
  }
704
733
  function emitServer($this, _this__u8e3s4) {
705
- return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.qr(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.qr(1)) + '\n |})\n ');
734
+ return trimMargin('\n |export const server:Wirespec.Server<Request, Response> = (serialization: Wirespec.Serialization) => ({\n |' + prependIndent(emitServerFrom($this, _this__u8e3s4), Spacer_instance.gw(1)) + ',\n |' + prependIndent(emitServerTo($this, _this__u8e3s4), Spacer_instance.gw(1)) + '\n |})\n ');
706
735
  }
707
736
  function emitServerFrom($this, _this__u8e3s4) {
708
- var tmp = Spacer_instance.qr(1);
709
- var tmp_0 = Spacer_instance.qr(2);
737
+ var tmp = Spacer_instance.gw(1);
738
+ var tmp_0 = Spacer_instance.gw(2);
710
739
  // Inline function 'kotlin.text.uppercase' call
711
740
  // Inline function 'kotlin.js.asDynamic' call
712
- var tmp_1 = _this__u8e3s4.fp_1.a3_1.toUpperCase();
713
- var tmp_2 = Spacer_instance.qr(2);
741
+ var tmp_1 = _this__u8e3s4.vt_1.g3_1.toUpperCase();
742
+ var tmp_2 = Spacer_instance.gw(2);
714
743
  var tmp_3 = get_indexedPathParams(_this__u8e3s4);
715
- var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.qr(3));
716
- var tmp_5 = Spacer_instance.qr(2);
717
- var tmp_6 = Spacer_instance.qr(2);
718
- var tmp_7 = joinToString(_this__u8e3s4.hp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
719
- var tmp_8 = Spacer_instance.qr(2);
720
- var tmp_9 = Spacer_instance.qr(2);
721
- 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.ip_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.qr(2) + '},\n |' + Spacer_instance.qr(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
744
+ var tmp_4 = prependIndent(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda($this)), Spacer_instance.gw(3));
745
+ var tmp_5 = Spacer_instance.gw(2);
746
+ var tmp_6 = Spacer_instance.gw(2);
747
+ var tmp_7 = joinToString(_this__u8e3s4.xt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0($this));
748
+ var tmp_8 = Spacer_instance.gw(2);
749
+ var tmp_9 = Spacer_instance.gw(2);
750
+ 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.yt_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1($this)) + '\n |' + Spacer_instance.gw(2) + '},\n |' + Spacer_instance.gw(2) + 'body: serialization.deserialize(it.body)\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
722
751
  }
723
752
  function emitServerTo($this, _this__u8e3s4) {
724
- var tmp = Spacer_instance.qr(1);
725
- var tmp_0 = distinctByStatus(_this__u8e3s4.kp_1);
726
- 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.qr(2)) + '\n |' + Spacer_instance.qr(1) + '}\n |}\n ');
753
+ var tmp = Spacer_instance.gw(1);
754
+ var tmp_0 = distinctByStatus(_this__u8e3s4.au_1);
755
+ 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.gw(2)) + '\n |' + Spacer_instance.gw(1) + '}\n |}\n ');
727
756
  }
728
757
  function emitServerToResponse($this, _this__u8e3s4) {
729
- var tmp = fixStatus(_this__u8e3s4.qp_1);
730
- var tmp_0 = Spacer_instance.qr(1);
731
- var tmp_1 = Spacer_instance.qr(2);
732
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
733
- var tmp_3 = Spacer_instance.qr(2);
734
- return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.qr(3)) + '\n |' + Spacer_instance.qr(2) + '} as Record<string, string>,\n |' + Spacer_instance.qr(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.qr(1) + '};\n ');
758
+ var tmp = fixStatus(_this__u8e3s4.gu_1);
759
+ var tmp_0 = Spacer_instance.gw(1);
760
+ var tmp_1 = Spacer_instance.gw(2);
761
+ var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
762
+ var tmp_3 = Spacer_instance.gw(2);
763
+ return trimMargin('\n |case ' + tmp + ':\n |' + tmp_0 + 'return {\n |' + tmp_1 + 'status: ' + tmp_2 + ',\n |' + tmp_3 + 'headers: {\n |' + prependIndent(joinToString(_this__u8e3s4.hu_1, ',\n', VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda($this)), Spacer_instance.gw(3)) + '\n |' + Spacer_instance.gw(2) + '} as Record<string, string>,\n |' + Spacer_instance.gw(2) + 'body: serialization.serialize(it.body),\n |' + Spacer_instance.gw(1) + '};\n ');
735
764
  }
736
765
  function emitType($this, _this__u8e3s4, name, block) {
737
766
  var tmp;
@@ -744,7 +773,7 @@ function emitType($this, _this__u8e3s4, name, block) {
744
773
  return tmp;
745
774
  }
746
775
  function emitName($this, _this__u8e3s4) {
747
- return 'Response' + Companion_instance_0.oq(_this__u8e3s4.qp_1);
776
+ return 'Response' + Companion_instance_0.ev(_this__u8e3s4.gu_1);
748
777
  }
749
778
  function emitFunction_0($this, _this__u8e3s4, endpoint) {
750
779
  var tmp = Spacer_instance.toString();
@@ -770,18 +799,18 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
770
799
  // Inline function 'kotlin.text.orEmpty' call
771
800
  var tmp0_elvis_lhs = tmp_4;
772
801
  var tmp_5 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
773
- var tmp_6 = Spacer_instance.qr(2);
802
+ var tmp_6 = Spacer_instance.gw(2);
774
803
  var tmp_7 = get_pathParams(endpoint);
775
804
  var tmp_8 = joinToObject($this, tmp_7, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0($this));
776
- var tmp_9 = Spacer_instance.qr(2);
777
- var tmp_10 = endpoint.fp_1.toString();
778
- var tmp_11 = Spacer_instance.qr(2);
779
- var tmp_12 = joinToObject($this, endpoint.hp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
780
- var tmp_13 = Spacer_instance.qr(2);
781
- var tmp_14 = joinToObject($this, endpoint.ip_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
782
- var tmp_15 = Spacer_instance.qr(2);
805
+ var tmp_9 = Spacer_instance.gw(2);
806
+ var tmp_10 = endpoint.vt_1.toString();
807
+ var tmp_11 = Spacer_instance.gw(2);
808
+ var tmp_12 = joinToObject($this, endpoint.xt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1($this));
809
+ var tmp_13 = Spacer_instance.gw(2);
810
+ var tmp_14 = joinToObject($this, endpoint.yt_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2($this));
811
+ var tmp_15 = Spacer_instance.gw(2);
783
812
  var tmp_16;
784
- if (_this__u8e3s4.np_1 == null) {
813
+ if (_this__u8e3s4.du_1 == null) {
785
814
  tmp_16 = null;
786
815
  } else {
787
816
  // Inline function 'kotlin.let' call
@@ -792,11 +821,11 @@ function emitFunction_0($this, _this__u8e3s4, endpoint) {
792
821
  }
793
822
  function emitFunction_1($this, _this__u8e3s4) {
794
823
  var tmp = Spacer_instance.toString();
795
- var tmp_0 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
824
+ var tmp_0 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
796
825
  var tmp_1 = paramList_0(_this__u8e3s4);
797
826
  var tmp_2 = joinToObject($this, tmp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3($this));
798
827
  var tmp_3 = Spacer_instance.toString();
799
- var tmp_4 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
828
+ var tmp_4 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
800
829
  // Inline function 'kotlin.takeIf' call
801
830
  var this_0 = paramList_0(_this__u8e3s4);
802
831
  var tmp_5;
@@ -811,19 +840,19 @@ function emitFunction_1($this, _this__u8e3s4) {
811
840
  tmp_6 = null;
812
841
  } else {
813
842
  // Inline function 'kotlin.run' call
814
- tmp_6 = 'params: Response' + Companion_instance_0.oq(_this__u8e3s4.qp_1) + 'Params';
843
+ tmp_6 = 'params: Response' + Companion_instance_0.ev(_this__u8e3s4.gu_1) + 'Params';
815
844
  }
816
845
  // Inline function 'kotlin.text.orEmpty' call
817
846
  var tmp0_elvis_lhs = tmp_6;
818
847
  var tmp_7 = tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs;
819
- var tmp_8 = Companion_instance_0.oq(_this__u8e3s4.qp_1);
820
- var tmp_9 = Spacer_instance.qr(2);
821
- var tmp_10 = fixStatus(_this__u8e3s4.qp_1);
822
- var tmp_11 = Spacer_instance.qr(2);
823
- var tmp_12 = joinToObject($this, _this__u8e3s4.rp_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
824
- var tmp_13 = Spacer_instance.qr(2);
848
+ var tmp_8 = Companion_instance_0.ev(_this__u8e3s4.gu_1);
849
+ var tmp_9 = Spacer_instance.gw(2);
850
+ var tmp_10 = fixStatus(_this__u8e3s4.gu_1);
851
+ var tmp_11 = Spacer_instance.gw(2);
852
+ var tmp_12 = joinToObject($this, _this__u8e3s4.hu_1, TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4($this));
853
+ var tmp_13 = Spacer_instance.gw(2);
825
854
  var tmp_14;
826
- if (_this__u8e3s4.sp_1 == null) {
855
+ if (_this__u8e3s4.iu_1 == null) {
827
856
  tmp_14 = null;
828
857
  } else {
829
858
  // Inline function 'kotlin.let' call
@@ -833,60 +862,60 @@ function emitFunction_1($this, _this__u8e3s4) {
833
862
  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 ');
834
863
  }
835
864
  function emitReference($this, _this__u8e3s4) {
836
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
837
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
838
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
865
+ var tmp0_safe_receiver = _this__u8e3s4.iu_1;
866
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fu_1;
867
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
839
868
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
840
869
  }
841
870
  function emitPathArray($this, _this__u8e3s4) {
842
- return joinToString(_this__u8e3s4.gp_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
871
+ return joinToString(_this__u8e3s4.wt_1, ', ', '[', ']', VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda($this));
843
872
  }
844
873
  function emitType_0($this, _this__u8e3s4) {
845
874
  var tmp = Spacer_instance.toString();
846
875
  var tmp_0 = emitName($this, _this__u8e3s4);
847
- var tmp_1 = Spacer_instance.qr(2);
848
- var tmp_2 = fixStatus(_this__u8e3s4.qp_1);
849
- var tmp_3 = Spacer_instance.qr(2);
850
- return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.qr(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
876
+ var tmp_1 = Spacer_instance.gw(2);
877
+ var tmp_2 = fixStatus(_this__u8e3s4.gu_1);
878
+ var tmp_3 = Spacer_instance.gw(2);
879
+ return trimMargin('\n |' + tmp + 'export type ' + tmp_0 + ' = {\n |' + tmp_1 + 'status: ' + tmp_2 + '\n |' + tmp_3 + 'headers: {' + joinToString(_this__u8e3s4.hu_1, VOID, VOID, VOID, VOID, VOID, TypeScriptEndpointDefinitionEmitter$emitType$lambda_0($this)) + '}\n |' + Spacer_instance.gw(2) + 'body: ' + emitReference($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
851
880
  }
852
881
  function emitReference_0($this, _this__u8e3s4) {
853
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
854
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
855
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
882
+ var tmp0_safe_receiver = _this__u8e3s4.du_1;
883
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.fu_1;
884
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.nu(tmp1_safe_receiver);
856
885
  return tmp2_elvis_lhs == null ? 'undefined' : tmp2_elvis_lhs;
857
886
  }
858
887
  function emitType_1($this, _this__u8e3s4, endpoint) {
859
- return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.qr(2) + 'path: Path\n |' + Spacer_instance.qr(2) + 'method: "' + endpoint.fp_1.toString() + '"\n |' + Spacer_instance.qr(2) + 'queries: Queries\n |' + Spacer_instance.qr(2) + 'headers: Headers\n |' + Spacer_instance.qr(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
888
+ return trimMargin('\n |' + Spacer_instance.toString() + 'export type Request = {\n |' + Spacer_instance.gw(2) + 'path: Path\n |' + Spacer_instance.gw(2) + 'method: "' + endpoint.vt_1.toString() + '"\n |' + Spacer_instance.gw(2) + 'queries: Queries\n |' + Spacer_instance.gw(2) + 'headers: Headers\n |' + Spacer_instance.gw(2) + 'body: ' + emitReference_0($this, _this__u8e3s4) + '\n |' + Spacer_instance.toString() + '}\n ');
860
889
  }
861
890
  function emit_12($this, _this__u8e3s4) {
862
- return Spacer_instance.toString() + $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
891
+ return Spacer_instance.toString() + $this.mv(_this__u8e3s4.bu_1) + ': ' + $this.nu(_this__u8e3s4.cu_1);
863
892
  }
864
893
  function emit_13($this, _this__u8e3s4) {
865
- return $this.wq(_this__u8e3s4.jq_1) + (_this__u8e3s4.kq_1.cu() ? '?' : '') + ': ' + $this.xp(_this__u8e3s4.kq_1.eu(false));
894
+ return $this.mv(_this__u8e3s4.zu_1) + (_this__u8e3s4.av_1.sy() ? '?' : '') + ': ' + $this.nu(_this__u8e3s4.av_1.uy(false));
866
895
  }
867
896
  function emitDeserialize($this, _this__u8e3s4) {
868
- return $this.wq(_this__u8e3s4.me_1.lp_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.le_1 + '])';
897
+ return $this.mv(_this__u8e3s4.of_1.bu_1) + ': serialization.deserialize(it.path[' + _this__u8e3s4.nf_1 + '])';
869
898
  }
870
899
  function emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive) {
871
- return caseSensitive ? $this.wq(_this__u8e3s4.ap_1) + ': serialization.deserialize(it.' + fields + '[' + $this.wq(_this__u8e3s4.ap_1) + '])' : $this.wq(_this__u8e3s4.ap_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.wq(lowercase($this, _this__u8e3s4.ap_1)) + ')?.[1])';
900
+ return caseSensitive ? $this.mv(_this__u8e3s4.qt_1) + ': serialization.deserialize(it.' + fields + '[' + $this.mv(_this__u8e3s4.qt_1) + '])' : $this.mv(_this__u8e3s4.qt_1) + ': serialization.deserialize(Object.entries(it.' + fields + ').find(([key]) => key.toLowerCase() === ' + $this.mv(lowercase($this, _this__u8e3s4.qt_1)) + ')?.[1])';
872
901
  }
873
902
  function emitDeserialize$default($this, _this__u8e3s4, fields, caseSensitive, $super) {
874
903
  caseSensitive = caseSensitive === VOID ? true : caseSensitive;
875
904
  return emitDeserialize_0($this, _this__u8e3s4, fields, caseSensitive);
876
905
  }
877
906
  function emitSerialize($this, _this__u8e3s4, fields) {
878
- return $this.wq(_this__u8e3s4.ap_1) + ': serialization.serialize(it.' + fields + '[' + $this.wq(_this__u8e3s4.ap_1) + '])';
907
+ return $this.mv(_this__u8e3s4.qt_1) + ': serialization.serialize(it.' + fields + '[' + $this.mv(_this__u8e3s4.qt_1) + '])';
879
908
  }
880
909
  function joinToObject($this, _this__u8e3s4, transform) {
881
910
  return joinToString(_this__u8e3s4, ', ', '{', '}', VOID, VOID, transform);
882
911
  }
883
912
  function emitHandleFunction($this, endpoint) {
884
- return Companion_instance_0.pq($this.w1y(endpoint.ep_1)) + ': (request:Request) => Promise<Response>';
913
+ return Companion_instance_0.fv($this.i24(endpoint.ut_1)) + ': (request:Request) => Promise<Response>';
885
914
  }
886
915
  function lowercase($this, _this__u8e3s4) {
887
916
  // Inline function 'kotlin.text.lowercase' call
888
917
  // Inline function 'kotlin.js.asDynamic' call
889
- var tmp$ret$1 = _this__u8e3s4.l1().toLowerCase();
918
+ var tmp$ret$1 = _this__u8e3s4.n1().toLowerCase();
890
919
  return new FieldIdentifier(tmp$ret$1);
891
920
  }
892
921
  function TypeScriptEndpointDefinitionEmitter$emit$lambda(it) {
@@ -900,12 +929,12 @@ function TypeScriptEndpointDefinitionEmitter$emit$lambda_0(this$0) {
900
929
  }
901
930
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_1(this$0) {
902
931
  return function (it) {
903
- return this$0.wp(it);
932
+ return this$0.mu(it);
904
933
  };
905
934
  }
906
935
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_2(this$0) {
907
936
  return function (it) {
908
- return this$0.wp(it);
937
+ return this$0.mu(it);
909
938
  };
910
939
  }
911
940
  function TypeScriptEndpointDefinitionEmitter$emit$lambda_3(this$0) {
@@ -955,12 +984,12 @@ function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda(this$0) {
955
984
  }
956
985
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_0(this$0) {
957
986
  return function (it) {
958
- return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.qr(3));
987
+ return prependIndent(emitDeserialize$default(this$0, it, 'queries'), Spacer_instance.gw(3));
959
988
  };
960
989
  }
961
990
  function TypeScriptEndpointDefinitionEmitter$emitServerFrom$lambda_1(this$0) {
962
991
  return function (it) {
963
- return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.qr(3));
992
+ return prependIndent(emitDeserialize_0(this$0, it, 'headers', false), Spacer_instance.gw(3));
964
993
  };
965
994
  }
966
995
  function TypeScriptEndpointDefinitionEmitter$emitServerTo$lambda(this$0) {
@@ -975,7 +1004,7 @@ function TypeScriptEndpointDefinitionEmitter$emitServerToResponse$lambda(this$0)
975
1004
  }
976
1005
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda($block) {
977
1006
  return function (it) {
978
- return Spacer_instance.qr(1) + $block(it);
1007
+ return Spacer_instance.gw(1) + $block(it);
979
1008
  };
980
1009
  }
981
1010
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
@@ -985,17 +1014,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda(this$0) {
985
1014
  }
986
1015
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_0(this$0) {
987
1016
  return function (it) {
988
- return this$0.wq(it.lp_1) + ': params[' + this$0.wq(it.lp_1) + ']';
1017
+ return this$0.mv(it.bu_1) + ': params[' + this$0.mv(it.bu_1) + ']';
989
1018
  };
990
1019
  }
991
1020
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_1(this$0) {
992
1021
  return function (it) {
993
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1022
+ return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
994
1023
  };
995
1024
  }
996
1025
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_2(this$0) {
997
1026
  return function (it) {
998
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1027
+ return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
999
1028
  };
1000
1029
  }
1001
1030
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
@@ -1005,17 +1034,17 @@ function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_3(this$0) {
1005
1034
  }
1006
1035
  function TypeScriptEndpointDefinitionEmitter$emitFunction$lambda_4(this$0) {
1007
1036
  return function (it) {
1008
- return this$0.wq(it.ap_1) + ': params[' + this$0.wq(it.ap_1) + ']';
1037
+ return this$0.mv(it.qt_1) + ': params[' + this$0.mv(it.qt_1) + ']';
1009
1038
  };
1010
1039
  }
1011
1040
  function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1012
1041
  return function (it) {
1013
1042
  var tmp;
1014
1043
  if (it instanceof Literal) {
1015
- tmp = '"' + it.hq_1 + '"';
1044
+ tmp = '"' + it.xu_1 + '"';
1016
1045
  } else {
1017
1046
  if (it instanceof Param) {
1018
- tmp = 'serialization.serialize(it.path[' + this$0.wq(it.lp_1) + '])';
1047
+ tmp = 'serialization.serialize(it.path[' + this$0.mv(it.bu_1) + '])';
1019
1048
  } else {
1020
1049
  noWhenBranchMatchedException();
1021
1050
  }
@@ -1025,7 +1054,7 @@ function TypeScriptEndpointDefinitionEmitter$emitPathArray$lambda(this$0) {
1025
1054
  }
1026
1055
  function TypeScriptEndpointDefinitionEmitter$emitType$lambda_0(this$0) {
1027
1056
  return function (it) {
1028
- return this$0.wq(it.ap_1) + ': ' + this$0.xp(it.bp_1);
1057
+ return this$0.mv(it.qt_1) + ': ' + this$0.nu(it.rt_1);
1029
1058
  };
1030
1059
  }
1031
1060
  function TypeScriptEndpointDefinitionEmitter() {
@@ -1038,14 +1067,14 @@ function TypeScriptEnumDefinitionEmitter() {
1038
1067
  function TypeScriptIdentifierEmitter() {
1039
1068
  }
1040
1069
  function _get_sanitizationConfig__sns434($this) {
1041
- var tmp0 = $this.f1z_1;
1070
+ var tmp0 = $this.r24_1;
1042
1071
  var tmp = KProperty1;
1043
1072
  // Inline function 'kotlin.getValue' call
1044
1073
  getPropertyCallableRef('sanitizationConfig', 1, tmp, TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh(), null);
1045
- return tmp0.l1();
1074
+ return tmp0.n1();
1046
1075
  }
1047
1076
  function sanitize($this, _this__u8e3s4) {
1048
- return '"' + _this__u8e3s4.l1() + '"';
1077
+ return '"' + _this__u8e3s4.n1() + '"';
1049
1078
  }
1050
1079
  function sanitizeSymbol_1($this, _this__u8e3s4) {
1051
1080
  // Inline function 'kotlin.text.filter' call
@@ -1066,7 +1095,7 @@ function sanitizeSymbol_1($this, _this__u8e3s4) {
1066
1095
  return destination.toString();
1067
1096
  }
1068
1097
  function sanitizeKeywords($this, _this__u8e3s4) {
1069
- return Companion_getInstance_0().g1z_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1098
+ return Companion_getInstance_0().t24_1.a2(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1070
1099
  }
1071
1100
  function firstToLower($this, _this__u8e3s4) {
1072
1101
  // Inline function 'kotlin.text.replaceFirstChar' call
@@ -1085,10 +1114,10 @@ function firstToLower($this, _this__u8e3s4) {
1085
1114
  return tmp;
1086
1115
  }
1087
1116
  function sanitizeParamName($this, identifier) {
1088
- var tmp0 = identifier.l1();
1117
+ var tmp0 = identifier.n1();
1089
1118
  // Inline function 'kotlin.text.split' call
1090
1119
  // Inline function 'kotlin.collections.filter' call
1091
- var tmp0_0 = Regex_init_$Create$('[.\\s-]+').xc(tmp0, 0);
1120
+ var tmp0_0 = Regex_init_$Create$('[.\\s-]+').ed(tmp0, 0);
1092
1121
  // Inline function 'kotlin.collections.filterTo' call
1093
1122
  var destination = ArrayList_init_$Create$();
1094
1123
  var _iterator__ex2g4s = tmp0_0.t();
@@ -1100,7 +1129,7 @@ function sanitizeParamName($this, identifier) {
1100
1129
  }
1101
1130
  }
1102
1131
  var parts = destination;
1103
- var name = parts.a1() > 1 ? (new Name(parts)).q1l() : identifier.l1();
1132
+ var name = parts.b1() > 1 ? (new Name(parts)).n1q() : identifier.n1();
1104
1133
  return sanitizeKeywords($this, sanitizeSymbol_1($this, name));
1105
1134
  }
1106
1135
  function buildEndpointParams($this, endpoint) {
@@ -1109,7 +1138,7 @@ function buildEndpointParams($this, endpoint) {
1109
1138
  // Inline function 'kotlin.apply' call
1110
1139
  var this_0 = ArrayList_init_$Create$();
1111
1140
  // Inline function 'kotlin.collections.filterIsInstance' call
1112
- var tmp0 = endpoint.gp_1;
1141
+ var tmp0 = endpoint.wt_1;
1113
1142
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1114
1143
  var destination = ArrayList_init_$Create$();
1115
1144
  var _iterator__ex2g4s = tmp0.t();
@@ -1123,36 +1152,36 @@ function buildEndpointParams($this, endpoint) {
1123
1152
  var _iterator__ex2g4s_0 = destination.t();
1124
1153
  while (_iterator__ex2g4s_0.u()) {
1125
1154
  var element_0 = _iterator__ex2g4s_0.v();
1126
- this_0.x(new EndpointParam(sanitizeParamName($this, element_0.lp_1), emitTypeScriptReference($this, element_0.mp_1.eu(false)), element_0.mp_1.cu()));
1155
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_0.bu_1), emitTypeScriptReference($this, element_0.cu_1.uy(false)), element_0.cu_1.sy()));
1127
1156
  }
1128
1157
  // Inline function 'kotlin.collections.forEach' call
1129
- var _iterator__ex2g4s_1 = endpoint.hp_1.t();
1158
+ var _iterator__ex2g4s_1 = endpoint.xt_1.t();
1130
1159
  while (_iterator__ex2g4s_1.u()) {
1131
1160
  var element_1 = _iterator__ex2g4s_1.v();
1132
- this_0.x(new EndpointParam(sanitizeParamName($this, element_1.ap_1), emitTypeScriptReference($this, element_1.bp_1.eu(false)), element_1.bp_1.cu()));
1161
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_1.qt_1), emitTypeScriptReference($this, element_1.rt_1.uy(false)), element_1.rt_1.sy()));
1133
1162
  }
1134
1163
  // Inline function 'kotlin.collections.forEach' call
1135
- var _iterator__ex2g4s_2 = endpoint.ip_1.t();
1164
+ var _iterator__ex2g4s_2 = endpoint.yt_1.t();
1136
1165
  while (_iterator__ex2g4s_2.u()) {
1137
1166
  var element_2 = _iterator__ex2g4s_2.v();
1138
- this_0.x(new EndpointParam(sanitizeParamName($this, element_2.ap_1), emitTypeScriptReference($this, element_2.bp_1.eu(false)), element_2.bp_1.cu()));
1167
+ this_0.x(new EndpointParam(sanitizeParamName($this, element_2.qt_1), emitTypeScriptReference($this, element_2.rt_1.uy(false)), element_2.rt_1.sy()));
1139
1168
  }
1140
- var tmp0_safe_receiver = first(endpoint.jp_1).np_1;
1169
+ var tmp0_safe_receiver = first(endpoint.zt_1).du_1;
1141
1170
  if (tmp0_safe_receiver == null)
1142
1171
  null;
1143
1172
  else {
1144
1173
  // Inline function 'kotlin.let' call
1145
- this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.pp_1.eu(false)), tmp0_safe_receiver.pp_1.cu()));
1174
+ this_0.x(new EndpointParam('body', emitTypeScriptReference($this, tmp0_safe_receiver.fu_1.uy(false)), tmp0_safe_receiver.fu_1.sy()));
1146
1175
  }
1147
- return this_0.o5();
1176
+ return this_0.u5();
1148
1177
  }
1149
1178
  function emitTypeScriptReference($this, ref) {
1150
1179
  var tmp;
1151
1180
  if (ref instanceof Dict) {
1152
- tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.co_1) + '>';
1181
+ tmp = 'Record<string, ' + emitTypeScriptReference($this, ref.ss_1) + '>';
1153
1182
  } else {
1154
1183
  if (ref instanceof Iterable) {
1155
- tmp = emitTypeScriptReference($this, ref.zn_1) + '[]';
1184
+ tmp = emitTypeScriptReference($this, ref.ps_1) + '[]';
1156
1185
  } else {
1157
1186
  if (ref instanceof Unit) {
1158
1187
  tmp = 'undefined';
@@ -1161,10 +1190,10 @@ function emitTypeScriptReference($this, ref) {
1161
1190
  tmp = 'any';
1162
1191
  } else {
1163
1192
  if (ref instanceof Custom) {
1164
- tmp = sanitizeSymbol_1($this, ref.ku_1);
1193
+ tmp = sanitizeSymbol_1($this, ref.az_1);
1165
1194
  } else {
1166
1195
  if (ref instanceof Primitive) {
1167
- var tmp1_subject = ref.ou_1;
1196
+ var tmp1_subject = ref.ez_1;
1168
1197
  var tmp_0;
1169
1198
  if (tmp1_subject instanceof String_0) {
1170
1199
  tmp_0 = 'string';
@@ -1197,20 +1226,20 @@ function emitTypeScriptReference($this, ref) {
1197
1226
  }
1198
1227
  }
1199
1228
  // Inline function 'kotlin.let' call
1200
- return tmp + (ref.cu() ? ' | undefined' : '');
1229
+ return tmp + (ref.sy() ? ' | undefined' : '');
1201
1230
  }
1202
1231
  function EndpointParam(name, type, nullable) {
1203
- this.h1z_1 = name;
1204
- this.i1z_1 = type;
1205
- this.j1z_1 = nullable;
1232
+ this.u24_1 = name;
1233
+ this.v24_1 = type;
1234
+ this.w24_1 = nullable;
1206
1235
  }
1207
1236
  protoOf(EndpointParam).toString = function () {
1208
- return 'EndpointParam(name=' + this.h1z_1 + ', type=' + this.i1z_1 + ', nullable=' + this.j1z_1 + ')';
1237
+ return 'EndpointParam(name=' + this.u24_1 + ', type=' + this.v24_1 + ', nullable=' + this.w24_1 + ')';
1209
1238
  };
1210
1239
  protoOf(EndpointParam).hashCode = function () {
1211
- var result = getStringHashCode(this.h1z_1);
1212
- result = imul(result, 31) + getStringHashCode(this.i1z_1) | 0;
1213
- result = imul(result, 31) + getBooleanHashCode(this.j1z_1) | 0;
1240
+ var result = getStringHashCode(this.u24_1);
1241
+ result = imul(result, 31) + getStringHashCode(this.v24_1) | 0;
1242
+ result = imul(result, 31) + getBooleanHashCode(this.w24_1) | 0;
1214
1243
  return result;
1215
1244
  };
1216
1245
  protoOf(EndpointParam).equals = function (other) {
@@ -1218,17 +1247,31 @@ protoOf(EndpointParam).equals = function (other) {
1218
1247
  return true;
1219
1248
  if (!(other instanceof EndpointParam))
1220
1249
  return false;
1221
- if (!(this.h1z_1 === other.h1z_1))
1250
+ if (!(this.u24_1 === other.u24_1))
1222
1251
  return false;
1223
- if (!(this.i1z_1 === other.i1z_1))
1252
+ if (!(this.v24_1 === other.v24_1))
1224
1253
  return false;
1225
- if (!(this.j1z_1 === other.j1z_1))
1254
+ if (!(this.w24_1 === other.w24_1))
1226
1255
  return false;
1227
1256
  return true;
1228
1257
  };
1229
1258
  function Companion() {
1230
1259
  Companion_instance_1 = this;
1231
- this.g1z_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']);
1260
+ var tmp = this;
1261
+ // Inline function 'kotlin.collections.associateWith' call
1262
+ var this_0 = listOf(['GeneratorFieldString', 'GeneratorFieldInteger64', 'GeneratorFieldInteger32', 'GeneratorFieldNumber64', 'GeneratorFieldNumber32', 'GeneratorFieldBoolean', 'GeneratorFieldBytes', 'GeneratorFieldEnum', 'GeneratorFieldUnion', 'GeneratorFieldArray', 'GeneratorFieldNullable', 'GeneratorFieldShape', 'GeneratorFieldDict']);
1263
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16));
1264
+ // Inline function 'kotlin.collections.associateWithTo' call
1265
+ var _iterator__ex2g4s = this_0.t();
1266
+ while (_iterator__ex2g4s.u()) {
1267
+ var element = _iterator__ex2g4s.v();
1268
+ // Inline function 'kotlin.text.lowercase' call
1269
+ // Inline function 'kotlin.js.asDynamic' call
1270
+ var tmp$ret$2 = removePrefix(element, 'GeneratorField').toLowerCase();
1271
+ result.d3(element, tmp$ret$2);
1272
+ }
1273
+ tmp.s24_1 = result;
1274
+ this.t24_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']);
1232
1275
  }
1233
1276
  var Companion_instance_1;
1234
1277
  function Companion_getInstance_0() {
@@ -1241,14 +1284,14 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1241
1284
  }
1242
1285
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1243
1286
  return function (name) {
1244
- var sanitized = name.m1h_1.a1() > 1 ? name.q1l() : sanitizeSymbol_1(this$0, name.r1h());
1245
- return new Name(listOf(sanitized));
1287
+ var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol_1(this$0, name.h1n());
1288
+ return new Name(listOf_0(sanitized));
1246
1289
  };
1247
1290
  }
1248
1291
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1249
1292
  return function (name) {
1250
- var sanitized = name.m1h_1.a1() > 1 ? name.q1l() : sanitizeSymbol_1(this$0, name.r1h());
1251
- return new Name(listOf(sanitized));
1293
+ var sanitized = name.k1l_1.b1() > 1 ? name.n1q() : sanitizeSymbol_1(this$0, name.h1n());
1294
+ return new Name(listOf_0(sanitized));
1252
1295
  };
1253
1296
  }
1254
1297
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
@@ -1273,29 +1316,29 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1273
1316
  return function (stmt, tr) {
1274
1317
  var tmp;
1275
1318
  if (stmt instanceof VariableReference) {
1276
- tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.f1o_1));
1319
+ tmp = new VariableReference(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.h1t_1));
1277
1320
  } else {
1278
1321
  if (stmt instanceof ConstructorStatement) {
1279
- var tmp_0 = tr.o1t(stmt.o1m_1);
1322
+ var tmp_0 = tr.v1y(stmt.p1r_1);
1280
1323
  // Inline function 'kotlin.collections.map' call
1281
- var this_0 = stmt.p1m_1;
1324
+ var this_0 = stmt.q1r_1;
1282
1325
  // Inline function 'kotlin.collections.mapTo' call
1283
- var destination = ArrayList_init_$Create$_0(this_0.a1());
1326
+ var destination = ArrayList_init_$Create$_0(this_0.b1());
1284
1327
  // Inline function 'kotlin.collections.iterator' call
1285
- var _iterator__ex2g4s = this_0.j1().t();
1328
+ var _iterator__ex2g4s = this_0.l1().t();
1286
1329
  while (_iterator__ex2g4s.u()) {
1287
1330
  var item = _iterator__ex2g4s.v();
1288
1331
  // Inline function 'kotlin.collections.component1' call
1289
- var key = item.k1();
1332
+ var key = item.m1();
1290
1333
  // Inline function 'kotlin.collections.component2' call
1291
- var value = item.l1();
1292
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.r1t(value));
1334
+ var value = item.n1();
1335
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), key), tr.y1y(value));
1293
1336
  destination.x(tmp$ret$3);
1294
1337
  }
1295
1338
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
1296
1339
  } else {
1297
1340
  if (stmt instanceof Assignment) {
1298
- tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.i1o_1), tr.r1t(stmt.j1o_1), stmt.k1o_1);
1341
+ tmp = new Assignment(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), stmt.k1t_1), tr.y1y(stmt.l1t_1), stmt.m1t_1);
1299
1342
  } else {
1300
1343
  tmp = transformChildren(stmt, tr);
1301
1344
  }
@@ -1306,7 +1349,7 @@ function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0)
1306
1349
  }
1307
1350
  function TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1308
1351
  return function () {
1309
- var tmp0_reservedKeywords = Companion_getInstance_0().g1z_1;
1352
+ var tmp0_reservedKeywords = Companion_getInstance_0().t24_1;
1310
1353
  var tmp = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1311
1354
  var tmp_0 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1312
1355
  var tmp_1 = TypeScriptIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1322,11 +1365,11 @@ function TypeScriptIrEmitter$_get_sanitizationConfig_$ref_f6f0bh() {
1322
1365
  function TypeScriptIrEmitter$emitShared$lambda(element, transformer) {
1323
1366
  var tmp;
1324
1367
  if (element instanceof Namespace) {
1325
- var injected = element.x1m_1.equals(Companion_getInstance().l1h('Wirespec')) ? listOf(new RawElement('export type Type = string')) : emptyList();
1368
+ var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? listOf_0(new RawElement('export type Type = string')) : emptyList();
1326
1369
  var tmp_0;
1327
1370
  // Inline function 'kotlin.collections.isNotEmpty' call
1328
1371
  if (!injected.r()) {
1329
- tmp_0 = withElements(element, plus_0(injected, element.t1m()));
1372
+ tmp_0 = withElements(element, plus_1(injected, element.u1r()));
1330
1373
  } else {
1331
1374
  tmp_0 = element;
1332
1375
  }
@@ -1341,11 +1384,11 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1341
1384
  return function (element, transformer) {
1342
1385
  var tmp;
1343
1386
  if (element instanceof Namespace) {
1344
- var injected = element.x1m_1.equals(Companion_getInstance().l1h('Wirespec')) ? listOf(new RawElement($api)) : emptyList();
1387
+ var injected = element.y1r_1.equals(Companion_getInstance().m1l('Wirespec')) ? listOf_0(new RawElement($api)) : emptyList();
1345
1388
  var tmp_0;
1346
1389
  // Inline function 'kotlin.collections.isNotEmpty' call
1347
1390
  if (!injected.r()) {
1348
- tmp_0 = withElements(element, plus_0(element.t1m(), injected));
1391
+ tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1349
1392
  } else {
1350
1393
  tmp_0 = element;
1351
1394
  }
@@ -1357,18 +1400,162 @@ function TypeScriptIrEmitter$emitShared$lambda_0($api) {
1357
1400
  return transformChildren_0(transformed, transformer);
1358
1401
  };
1359
1402
  }
1403
+ function TypeScriptIrEmitter$emitShared$lambda_1(element, transformer) {
1404
+ var tmp;
1405
+ if (element instanceof Struct) {
1406
+ var tmp0_safe_receiver = Companion_getInstance_0().s24_1.v2(element.d1s_1.h1n());
1407
+ var tmp_0;
1408
+ if (tmp0_safe_receiver == null) {
1409
+ tmp_0 = null;
1410
+ } else {
1411
+ // Inline function 'kotlin.let' call
1412
+ tmp_0 = element.k1s(VOID, plus_1(listOf_0(new Field(Companion_getInstance().m1l('kind'), new StringLiteral(tmp0_safe_receiver))), element.e1s_1));
1413
+ }
1414
+ var tmp1_elvis_lhs = tmp_0;
1415
+ tmp = tmp1_elvis_lhs == null ? element : tmp1_elvis_lhs;
1416
+ } else {
1417
+ tmp = element;
1418
+ }
1419
+ var transformed = tmp;
1420
+ return transformChildren_0(transformed, transformer);
1421
+ }
1360
1422
  function TypeScriptIrEmitter$emit$lambda(it) {
1361
- return 'export {' + it.vq().l1() + "} from './" + it.vq().l1() + "'";
1423
+ return 'export {' + it.lv().n1() + "} from './" + it.lv().n1() + "'";
1424
+ }
1425
+ function TypeScriptIrEmitter$emitGenerator$lambda($definition) {
1426
+ return function (expr, t) {
1427
+ var tmp;
1428
+ var tmp_0;
1429
+ var tmp_1;
1430
+ var tmp_2;
1431
+ if (expr instanceof FunctionCall) {
1432
+ var tmp_3 = expr.v1q_1;
1433
+ tmp_2 = tmp_3 instanceof RawExpression;
1434
+ } else {
1435
+ tmp_2 = false;
1436
+ }
1437
+ if (tmp_2) {
1438
+ var tmp_4 = expr.v1q_1;
1439
+ tmp_1 = (tmp_4 instanceof RawExpression ? tmp_4 : THROW_CCE()).j1t_1 === $definition.wv_1.n1();
1440
+ } else {
1441
+ tmp_1 = false;
1442
+ }
1443
+ if (tmp_1) {
1444
+ tmp_0 = expr.x1q_1.equals(Companion_getInstance().m1l('valueOf'));
1445
+ } else {
1446
+ tmp_0 = false;
1447
+ }
1448
+ if (tmp_0) {
1449
+ var tmp0_elvis_lhs = expr.y1q_1.v2(Companion_getInstance().m1l('label'));
1450
+ tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1451
+ } else {
1452
+ tmp = transformChildren_1(expr, t);
1453
+ }
1454
+ return tmp;
1455
+ };
1456
+ }
1457
+ function TypeScriptIrEmitter$emitGenerator$lambda_0($definition) {
1458
+ return function (expr, t) {
1459
+ var tmp;
1460
+ var tmp_0;
1461
+ if (expr instanceof ConstructorStatement) {
1462
+ tmp_0 = equals(expr.p1r_1, new Custom_0($definition.rv_1.n1()));
1463
+ } else {
1464
+ tmp_0 = false;
1465
+ }
1466
+ if (tmp_0) {
1467
+ var tmp0_elvis_lhs = expr.q1r_1.v2(Companion_getInstance().m1l('value'));
1468
+ tmp = tmp0_elvis_lhs == null ? expr : tmp0_elvis_lhs;
1469
+ } else {
1470
+ tmp = transformChildren_1(expr, t);
1471
+ }
1472
+ return tmp;
1473
+ };
1474
+ }
1475
+ function TypeScriptIrEmitter$emitGenerator$lambda_1(expr, t) {
1476
+ var tmp;
1477
+ if (expr instanceof ConstructorStatement) {
1478
+ var tmp_0 = expr.p1r_1;
1479
+ var tmp0_safe_receiver = tmp_0 instanceof Custom_0 ? tmp_0 : null;
1480
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1n_1;
1481
+ var typeName = tmp1_safe_receiver == null ? null : removePrefix(tmp1_safe_receiver, 'Wirespec.');
1482
+ var tmp_1;
1483
+ if (typeName == null) {
1484
+ tmp_1 = null;
1485
+ } else {
1486
+ // Inline function 'kotlin.let' call
1487
+ tmp_1 = Companion_getInstance_0().s24_1.v2(typeName);
1488
+ }
1489
+ var kind = tmp_1;
1490
+ var tmp_2;
1491
+ if (!(kind == null)) {
1492
+ var tmp_3 = mapOf(to(Companion_getInstance().m1l('kind'), new Literal_0(kind, String_instance)));
1493
+ // Inline function 'kotlin.collections.mapValues' call
1494
+ var this_0 = expr.q1r_1;
1495
+ // Inline function 'kotlin.collections.mapValuesTo' call
1496
+ var destination = LinkedHashMap_init_$Create$_0(mapCapacity(this_0.b1()));
1497
+ // Inline function 'kotlin.collections.associateByTo' call
1498
+ var _iterator__ex2g4s = this_0.l1().t();
1499
+ while (_iterator__ex2g4s.u()) {
1500
+ var element = _iterator__ex2g4s.v();
1501
+ var tmp_4 = element.m1();
1502
+ // Inline function 'kotlin.collections.component2' call
1503
+ var v = element.n1();
1504
+ var tmp$ret$4 = t.y1y(v);
1505
+ destination.d3(tmp_4, tmp$ret$4);
1506
+ }
1507
+ tmp_2 = new ConstructorStatement(expr.p1r_1, plus_2(tmp_3, destination));
1508
+ } else {
1509
+ tmp_2 = transformChildren(expr, t);
1510
+ }
1511
+ tmp = tmp_2;
1512
+ } else {
1513
+ tmp = transformChildren_1(expr, t);
1514
+ }
1515
+ return tmp;
1516
+ }
1517
+ function TypeScriptIrEmitter$emitGenerator$lambda_2(it) {
1518
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
1519
+ }
1520
+ function TypeScriptIrEmitter$emitGenerator$lambda_3($generatorOwnName) {
1521
+ return function (it) {
1522
+ return it === $generatorOwnName;
1523
+ };
1524
+ }
1525
+ function TypeScriptIrEmitter$emitGenerator$lambda_4(it) {
1526
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
1527
+ }
1528
+ function TypeScriptIrEmitter$emitGenerator$lambda_5($generatorOwnName, $generatorRefs) {
1529
+ return function (expr, t) {
1530
+ var tmp;
1531
+ var tmp_0;
1532
+ var tmp_1;
1533
+ if (expr instanceof RawExpression) {
1534
+ tmp_1 = endsWith(expr.j1t_1, 'Generator');
1535
+ } else {
1536
+ tmp_1 = false;
1537
+ }
1538
+ if (tmp_1) {
1539
+ tmp_0 = !(expr.j1t_1 === $generatorOwnName);
1540
+ } else {
1541
+ tmp_0 = false;
1542
+ }
1543
+ if (tmp_0) {
1544
+ $generatorRefs.x(expr.j1t_1);
1545
+ tmp = Unit_instance;
1546
+ }
1547
+ return transformChildren_1(expr, t);
1548
+ };
1362
1549
  }
1363
1550
  function TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint) {
1364
1551
  return function (element, transformer) {
1365
1552
  var tmp;
1366
1553
  if (element instanceof Namespace) {
1367
- var injected = listOf(buildApiConst($endpoint));
1554
+ var injected = listOf_0(buildApiConst($endpoint));
1368
1555
  var tmp_0;
1369
1556
  // Inline function 'kotlin.collections.isNotEmpty' call
1370
1557
  if (!injected.r()) {
1371
- tmp_0 = withElements(element, plus_0(element.t1m(), injected));
1558
+ tmp_0 = withElements(element, plus_1(element.u1r(), injected));
1372
1559
  } else {
1373
1560
  tmp_0 = element;
1374
1561
  }
@@ -1387,14 +1574,14 @@ function emit$injectApiConst(_this__u8e3s4, $endpoint) {
1387
1574
  var tmp = scope;
1388
1575
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1389
1576
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1390
- var this_0 = scope.w1t_1;
1577
+ var this_0 = scope.d1z_1;
1391
1578
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1392
1579
  // Inline function 'kotlin.apply' call
1393
1580
  var this_1 = new TransformerBuilder();
1394
- this_1.c1h(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1395
- var tmp$ret$2 = this_1.d1h();
1396
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1397
- var tmp_0 = scope.w1t_1;
1581
+ this_1.v1m(TypeScriptIrEmitter$emit$injectApiConst$lambda($endpoint));
1582
+ var tmp$ret$2 = this_1.w1m();
1583
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
1584
+ var tmp_0 = scope.d1z_1;
1398
1585
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1399
1586
  }
1400
1587
  function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
@@ -1402,25 +1589,25 @@ function emit$applyCallParamsIfNeeded(_this__u8e3s4, hasRequestParams) {
1402
1589
  }
1403
1590
  function TypeScriptIrEmitter$emitClient$lambda(this$0) {
1404
1591
  return function (it) {
1405
- var methodName = firstToLower(this$0, it.ep_1.l1());
1592
+ var methodName = firstToLower(this$0, it.ut_1.n1());
1406
1593
  return ' ...' + methodName + 'Client(serialization, transportation),';
1407
1594
  };
1408
1595
  }
1409
1596
  function TypeScriptIrEmitter() {
1410
1597
  Companion_getInstance_0();
1411
- this.d1z_1 = TypeScriptGenerator_getInstance();
1412
- this.e1z_1 = FileExtension_TypeScript_getInstance();
1598
+ this.p24_1 = TypeScriptGenerator_getInstance();
1599
+ this.q24_1 = FileExtension_TypeScript_getInstance();
1413
1600
  var tmp = this;
1414
- tmp.f1z_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1601
+ tmp.r24_1 = lazy(TypeScriptIrEmitter$sanitizationConfig$delegate$lambda(this));
1415
1602
  }
1416
- protoOf(TypeScriptIrEmitter).j1u = function () {
1417
- return this.d1z_1;
1603
+ protoOf(TypeScriptIrEmitter).q1z = function () {
1604
+ return this.p24_1;
1418
1605
  };
1419
- protoOf(TypeScriptIrEmitter).eq = function () {
1420
- return this.e1z_1;
1606
+ protoOf(TypeScriptIrEmitter).uu = function () {
1607
+ return this.q24_1;
1421
1608
  };
1422
- protoOf(TypeScriptIrEmitter).m1u = function () {
1423
- var packageName = Companion_instance.lr('community.flock.wirespec');
1609
+ protoOf(TypeScriptIrEmitter).t1z = function () {
1610
+ var packageName = Companion_instance.bw('community.flock.wirespec');
1424
1611
  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}';
1425
1612
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1426
1613
  var this_0 = convert(packageName);
@@ -1429,31 +1616,41 @@ protoOf(TypeScriptIrEmitter).m1u = function () {
1429
1616
  var tmp = scope;
1430
1617
  // Inline function 'community.flock.wirespec.ir.core.injectBefore' call
1431
1618
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1432
- var this_1 = scope.w1t_1;
1619
+ var this_1 = scope.d1z_1;
1433
1620
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1434
1621
  // Inline function 'kotlin.apply' call
1435
1622
  var this_2 = new TransformerBuilder();
1436
- this_2.c1h(TypeScriptIrEmitter$emitShared$lambda);
1437
- var tmp$ret$2 = this_2.d1h();
1438
- tmp.w1t_1 = transform(this_1, tmp$ret$2);
1623
+ this_2.v1m(TypeScriptIrEmitter$emitShared$lambda);
1624
+ var tmp$ret$2 = this_2.w1m();
1625
+ tmp.d1z_1 = transform(this_1, tmp$ret$2);
1439
1626
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1440
1627
  var tmp_0 = scope;
1441
1628
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1442
1629
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1443
- var this_3 = scope.w1t_1;
1630
+ var this_3 = scope.d1z_1;
1444
1631
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1445
1632
  // Inline function 'kotlin.apply' call
1446
1633
  var this_4 = new TransformerBuilder();
1447
- this_4.c1h(TypeScriptIrEmitter$emitShared$lambda_0(api));
1448
- var tmp$ret$8 = this_4.d1h();
1449
- tmp_0.w1t_1 = transform(this_3, tmp$ret$8);
1450
- var tmp_1 = scope.w1t_1;
1451
- return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1634
+ this_4.v1m(TypeScriptIrEmitter$emitShared$lambda_0(api));
1635
+ var tmp$ret$8 = this_4.w1m();
1636
+ tmp_0.d1z_1 = transform(this_3, tmp$ret$8);
1637
+ // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1638
+ var tmp_1 = scope;
1639
+ // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1640
+ var this_5 = scope.d1z_1;
1641
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
1642
+ // Inline function 'kotlin.apply' call
1643
+ var this_6 = new TransformerBuilder();
1644
+ this_6.v1m(TypeScriptIrEmitter$emitShared$lambda_1);
1645
+ var tmp$ret$14 = this_6.w1m();
1646
+ tmp_1.d1z_1 = transform(this_5, tmp$ret$14);
1647
+ var tmp_2 = scope.d1z_1;
1648
+ return isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1452
1649
  };
1453
- protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1650
+ protoOf(TypeScriptIrEmitter).es = function (ast, logger) {
1454
1651
  var tmp = emit.call(this, ast, logger);
1455
1652
  // Inline function 'arrow.core.NonEmptyList.flatMap' call
1456
- var this_0 = ast.bq_1;
1653
+ var this_0 = ast.ru_1;
1457
1654
  // Inline function 'kotlin.collections.flatMap' call
1458
1655
  var tmp0 = _NonEmptyList___get_all__impl__pmf509(this_0);
1459
1656
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -1461,7 +1658,7 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1461
1658
  var _iterator__ex2g4s = tmp0.t();
1462
1659
  while (_iterator__ex2g4s.u()) {
1463
1660
  var element = _iterator__ex2g4s.v();
1464
- var list = new NonEmptyList(element.dq_1);
1661
+ var list = new NonEmptyList(element.tu_1);
1465
1662
  addAll(destination, list);
1466
1663
  }
1467
1664
  var tmp$ret$3 = _NonEmptyList___init__impl__fxd0xp(destination);
@@ -1474,11 +1671,11 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1474
1671
  var element_0 = _iterator__ex2g4s_0.v();
1475
1672
  var key = namespace(element_0);
1476
1673
  // Inline function 'kotlin.collections.getOrPut' call
1477
- var value = destination_0.p2(key);
1674
+ var value = destination_0.v2(key);
1478
1675
  var tmp_0;
1479
1676
  if (value == null) {
1480
1677
  var answer = ArrayList_init_$Create$();
1481
- destination_0.w2(key, answer);
1678
+ destination_0.d3(key, answer);
1482
1679
  tmp_0 = answer;
1483
1680
  } else {
1484
1681
  tmp_0 = value;
@@ -1488,27 +1685,118 @@ protoOf(TypeScriptIrEmitter).on = function (ast, logger) {
1488
1685
  }
1489
1686
  // Inline function 'kotlin.collections.map' call
1490
1687
  // Inline function 'kotlin.collections.mapTo' call
1491
- var destination_1 = ArrayList_init_$Create$_0(destination_0.a1());
1688
+ var destination_1 = ArrayList_init_$Create$_0(destination_0.b1());
1492
1689
  // Inline function 'kotlin.collections.iterator' call
1493
- var _iterator__ex2g4s_1 = destination_0.j1().t();
1690
+ var _iterator__ex2g4s_1 = destination_0.l1().t();
1494
1691
  while (_iterator__ex2g4s_1.u()) {
1495
1692
  var item = _iterator__ex2g4s_1.v();
1496
1693
  // Inline function 'kotlin.collections.component1' call
1497
- var ns = item.k1();
1694
+ var ns = item.m1();
1498
1695
  // Inline function 'kotlin.collections.component2' call
1499
- var defs = item.l1();
1500
- var tmp_1 = ns + '/index.' + this.eq().nq_1;
1696
+ var defs = item.n1();
1697
+ var tmp_1 = ns + '/index.' + this.uu().dv_1;
1501
1698
  var tmp$ret$12 = new Emitted(tmp_1, joinToString(defs, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emit$lambda));
1502
1699
  destination_1.x(tmp$ret$12);
1503
1700
  }
1504
1701
  return NonEmptyList__plus_impl_xqmb9_0(tmp, destination_1);
1505
1702
  };
1506
- protoOf(TypeScriptIrEmitter).uq = function (definition, module_0, logger) {
1703
+ protoOf(TypeScriptIrEmitter).kv = function (definition, module_0, logger) {
1507
1704
  var file = emit_0.call(this, definition, module_0, logger);
1508
- var subPackageName = plus(Companion_instance.lr(''), definition);
1509
- return new File(Companion_getInstance().l1h(subPackageName.or() + sanitizeSymbol_1(this, file.r1m_1.w1l())), plus_0(listOf(import_0('../Wirespec', 'Wirespec')), file.s1m_1));
1705
+ var subPackageName = plus(Companion_instance.bw(''), definition);
1706
+ return new File(Companion_getInstance().m1l(subPackageName.ew() + sanitizeSymbol_1(this, file.s1r_1.t1q())), plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), file.t1r_1));
1707
+ };
1708
+ protoOf(TypeScriptIrEmitter).x1z = function (definition, module_0) {
1709
+ var tmp;
1710
+ if (definition instanceof Type) {
1711
+ tmp = convertToGenerator_2(definition, module_0);
1712
+ } else {
1713
+ if (definition instanceof Enum) {
1714
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1715
+ var this_0 = convertToGenerator_1(definition);
1716
+ var scope = new TransformScope(this_0);
1717
+ scope.l1z(TypeScriptIrEmitter$emitGenerator$lambda(definition));
1718
+ var tmp_0 = scope.d1z_1;
1719
+ tmp = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1720
+ } else {
1721
+ if (definition instanceof Refined) {
1722
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1723
+ var this_1 = convertToGenerator_0(definition);
1724
+ var scope_0 = new TransformScope(this_1);
1725
+ scope_0.l1z(TypeScriptIrEmitter$emitGenerator$lambda_0(definition));
1726
+ var tmp_1 = scope_0.d1z_1;
1727
+ tmp = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1728
+ } else {
1729
+ if (definition instanceof Union) {
1730
+ tmp = convertToGenerator(definition);
1731
+ } else {
1732
+ return null;
1733
+ }
1734
+ }
1735
+ }
1736
+ }
1737
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1738
+ var this_2 = sanitizeNames(tmp, _get_sanitizationConfig__sns434(this));
1739
+ var scope_1 = new TransformScope(this_2);
1740
+ scope_1.l1z(TypeScriptIrEmitter$emitGenerator$lambda_1);
1741
+ var tmp_2 = scope_1.d1z_1;
1742
+ var generatorFile = isInterface(tmp_2, Element) ? tmp_2 : THROW_CCE();
1743
+ var generatorOwnName = definition.lv().n1() + 'Generator';
1744
+ var tmp_3 = asSequence(collectCustomTypeNames(generatorFile));
1745
+ var tmp_4 = filterNot(tmp_3, TypeScriptIrEmitter$emitGenerator$lambda_2);
1746
+ var tmp_5 = filterNot(tmp_4, TypeScriptIrEmitter$emitGenerator$lambda_3(generatorOwnName));
1747
+ var customNames = toList(distinct(map(tmp_5, TypeScriptIrEmitter$emitGenerator$lambda_4)));
1748
+ // Inline function 'kotlin.collections.mutableSetOf' call
1749
+ var generatorRefs = LinkedHashSet_init_$Create$();
1750
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1751
+ var scope_2 = new TransformScope(generatorFile);
1752
+ scope_2.l1z(TypeScriptIrEmitter$emitGenerator$lambda_5(generatorOwnName, generatorRefs));
1753
+ var tmp_6 = scope_2.d1z_1;
1754
+ isInterface(tmp_6, Element) || THROW_CCE();
1755
+ // Inline function 'kotlin.collections.filter' call
1756
+ // Inline function 'kotlin.collections.filterTo' call
1757
+ var destination = ArrayList_init_$Create$();
1758
+ var _iterator__ex2g4s = customNames.t();
1759
+ while (_iterator__ex2g4s.u()) {
1760
+ var element = _iterator__ex2g4s.v();
1761
+ if (endsWith(element, 'Generator')) {
1762
+ destination.x(element);
1763
+ }
1764
+ }
1765
+ // Inline function 'kotlin.collections.map' call
1766
+ var this_3 = distinct_0(plus_1(destination, generatorRefs));
1767
+ // Inline function 'kotlin.collections.mapTo' call
1768
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_3, 10));
1769
+ var _iterator__ex2g4s_0 = this_3.t();
1770
+ while (_iterator__ex2g4s_0.u()) {
1771
+ var item = _iterator__ex2g4s_0.v();
1772
+ var tmp$ret$12 = import_0('./' + item, item);
1773
+ destination_0.x(tmp$ret$12);
1774
+ }
1775
+ var generatorImports = destination_0;
1776
+ // Inline function 'kotlin.collections.filterNot' call
1777
+ // Inline function 'kotlin.collections.filterNotTo' call
1778
+ var destination_1 = ArrayList_init_$Create$();
1779
+ var _iterator__ex2g4s_1 = customNames.t();
1780
+ while (_iterator__ex2g4s_1.u()) {
1781
+ var element_0 = _iterator__ex2g4s_1.v();
1782
+ if (!endsWith(element_0, 'Generator')) {
1783
+ destination_1.x(element_0);
1784
+ }
1785
+ }
1786
+ // Inline function 'kotlin.collections.map' call
1787
+ // Inline function 'kotlin.collections.mapTo' call
1788
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1789
+ var _iterator__ex2g4s_2 = destination_1.t();
1790
+ while (_iterator__ex2g4s_2.u()) {
1791
+ var item_0 = _iterator__ex2g4s_2.v();
1792
+ var tmp$ret$18 = import_0('../model/' + item_0, item_0);
1793
+ destination_2.x(tmp$ret$18);
1794
+ }
1795
+ var modelImports = destination_2;
1796
+ var subPackageName = plus_0(Companion_instance.bw(''), 'generator');
1797
+ return new File(Companion_getInstance().m1l(subPackageName.ew() + sanitizeSymbol_1(this, generatorFile.s1r_1.t1q())), plus_1(plus_1(plus_1(listOf_0(import_0('../Wirespec', 'Wirespec')), modelImports), generatorImports), generatorFile.t1r_1));
1510
1798
  };
1511
- protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1799
+ protoOf(TypeScriptIrEmitter).ku = function (type, module_0) {
1512
1800
  var fieldValidations = classifyValidatableFields(type, module_0);
1513
1801
  // Inline function 'kotlin.collections.distinctBy' call
1514
1802
  var this_0 = importReferences(type);
@@ -1517,7 +1805,7 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1517
1805
  var _iterator__ex2g4s = this_0.t();
1518
1806
  while (_iterator__ex2g4s.u()) {
1519
1807
  var e = _iterator__ex2g4s.v();
1520
- var key = e.ku_1;
1808
+ var key = e.az_1;
1521
1809
  if (set.x(key)) {
1522
1810
  list.x(e);
1523
1811
  }
@@ -1528,7 +1816,7 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1528
1816
  var _iterator__ex2g4s_0 = list.t();
1529
1817
  while (_iterator__ex2g4s_0.u()) {
1530
1818
  var item = _iterator__ex2g4s_0.v();
1531
- var tmp$ret$2 = import_0('./' + item.ku_1, item.ku_1);
1819
+ var tmp$ret$2 = import_0('./' + item.az_1, item.az_1);
1532
1820
  destination.x(tmp$ret$2);
1533
1821
  }
1534
1822
  var typeImports = destination;
@@ -1538,17 +1826,17 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1538
1826
  var _iterator__ex2g4s_1 = fieldValidations.t();
1539
1827
  while (_iterator__ex2g4s_1.u()) {
1540
1828
  var item_0 = _iterator__ex2g4s_1.v();
1541
- var tmp$ret$5 = item_0.i1h_1;
1829
+ var tmp$ret$5 = item_0.b1n_1;
1542
1830
  destination_0.x(tmp$ret$5);
1543
1831
  }
1544
1832
  // Inline function 'kotlin.collections.filter' call
1545
- var tmp0 = distinct(destination_0);
1833
+ var tmp0 = distinct_0(destination_0);
1546
1834
  // Inline function 'kotlin.collections.filterTo' call
1547
1835
  var destination_1 = ArrayList_init_$Create$();
1548
1836
  var _iterator__ex2g4s_2 = tmp0.t();
1549
1837
  while (_iterator__ex2g4s_2.u()) {
1550
1838
  var element = _iterator__ex2g4s_2.v();
1551
- if (!(element === type.vo_1.l1())) {
1839
+ if (!(element === type.lt_1.n1())) {
1552
1840
  destination_1.x(element);
1553
1841
  }
1554
1842
  }
@@ -1562,32 +1850,32 @@ protoOf(TypeScriptIrEmitter).up = function (type, module_0) {
1562
1850
  destination_2.x(tmp$ret$11);
1563
1851
  }
1564
1852
  var validateImports = destination_2;
1565
- var allImports = plus_0(typeImports, validateImports);
1853
+ var allImports = plus_1(typeImports, validateImports);
1566
1854
  // Inline function 'kotlin.collections.map' call
1567
- var this_1 = type.wo_1.so_1;
1855
+ var this_1 = type.mt_1.it_1;
1568
1856
  // Inline function 'kotlin.collections.mapTo' call
1569
1857
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1570
1858
  var _iterator__ex2g4s_4 = this_1.t();
1571
1859
  while (_iterator__ex2g4s_4.u()) {
1572
1860
  var item_2 = _iterator__ex2g4s_4.v();
1573
- var tmp$ret$14 = item_2.ap_1.l1();
1861
+ var tmp$ret$14 = item_2.qt_1.n1();
1574
1862
  destination_3.x(tmp$ret$14);
1575
1863
  }
1576
1864
  var fieldNames = toSet(destination_3);
1577
- var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)), type.vo_1.l1(), fieldNames);
1865
+ var file = renameValidateAndBindObjReceiver(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)), type.lt_1.n1(), fieldNames);
1578
1866
  var tmp;
1579
1867
  // Inline function 'kotlin.collections.isNotEmpty' call
1580
1868
  if (!allImports.r()) {
1581
- tmp = file.v1m(VOID, plus_0(allImports, file.s1m_1));
1869
+ tmp = file.w1r(VOID, plus_1(allImports, file.t1r_1));
1582
1870
  } else {
1583
1871
  tmp = file;
1584
1872
  }
1585
1873
  return tmp;
1586
1874
  };
1587
- protoOf(TypeScriptIrEmitter).ir = function (enum_0, module_0) {
1875
+ protoOf(TypeScriptIrEmitter).yv = function (enum_0, module_0) {
1588
1876
  return sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1589
1877
  };
1590
- protoOf(TypeScriptIrEmitter).yq = function (union) {
1878
+ protoOf(TypeScriptIrEmitter).ov = function (union) {
1591
1879
  // Inline function 'kotlin.collections.distinctBy' call
1592
1880
  var this_0 = importReferences(union);
1593
1881
  var set = HashSet_init_$Create$();
@@ -1595,7 +1883,7 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1595
1883
  var _iterator__ex2g4s = this_0.t();
1596
1884
  while (_iterator__ex2g4s.u()) {
1597
1885
  var e = _iterator__ex2g4s.v();
1598
- var key = e.ku_1;
1886
+ var key = e.az_1;
1599
1887
  if (set.x(key)) {
1600
1888
  list.x(e);
1601
1889
  }
@@ -1606,7 +1894,7 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1606
1894
  var _iterator__ex2g4s_0 = list.t();
1607
1895
  while (_iterator__ex2g4s_0.u()) {
1608
1896
  var item = _iterator__ex2g4s_0.v();
1609
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1897
+ var tmp$ret$2 = import_0('../model', item.az_1, true);
1610
1898
  destination.x(tmp$ret$2);
1611
1899
  }
1612
1900
  var imports = destination;
@@ -1614,19 +1902,19 @@ protoOf(TypeScriptIrEmitter).yq = function (union) {
1614
1902
  var tmp;
1615
1903
  // Inline function 'kotlin.collections.isNotEmpty' call
1616
1904
  if (!imports.r()) {
1617
- tmp = file.v1m(VOID, plus_0(imports, file.s1m_1));
1905
+ tmp = file.w1r(VOID, plus_1(imports, file.t1r_1));
1618
1906
  } else {
1619
1907
  tmp = file;
1620
1908
  }
1621
1909
  return tmp;
1622
1910
  };
1623
- protoOf(TypeScriptIrEmitter).dr = function (refined) {
1911
+ protoOf(TypeScriptIrEmitter).tv = function (refined) {
1624
1912
  var converted = convert_2(refined);
1625
- var constraintExpr = convertConstraint(refined.cr_1, new VariableReference(Companion_getInstance().l1h('value')));
1626
- var validatorStr = TypeScriptGenerator_getInstance().u1u(constraintExpr);
1627
- return new File(converted.r1m_1, listOf_0([new RawElement('export type ' + converted.r1m_1.w1l() + ' = ' + emitTypeScriptReference(this, refined.cr_1) + ';'), new RawElement('export const validate' + refined.br_1.l1() + ' = (value: ' + emitTypeScriptReference(this, refined.cr_1) + ') =>\n ' + validatorStr + ';')]));
1913
+ var constraintExpr = convertConstraint(refined.sv_1, new VariableReference(Companion_getInstance().m1l('value')));
1914
+ var validatorStr = TypeScriptGenerator_getInstance().f20(constraintExpr);
1915
+ return new File(converted.s1r_1, listOf([new RawElement('export type ' + converted.s1r_1.t1q() + ' = ' + emitTypeScriptReference(this, refined.sv_1) + ';'), new RawElement('export const validate' + refined.rv_1.n1() + ' = (value: ' + emitTypeScriptReference(this, refined.sv_1) + ') =>\n ' + validatorStr + ';')]));
1628
1916
  };
1629
- protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1917
+ protoOf(TypeScriptIrEmitter).zv = function (endpoint) {
1630
1918
  // Inline function 'kotlin.collections.distinctBy' call
1631
1919
  var this_0 = importReferences(endpoint);
1632
1920
  var set = HashSet_init_$Create$();
@@ -1634,7 +1922,7 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1634
1922
  var _iterator__ex2g4s = this_0.t();
1635
1923
  while (_iterator__ex2g4s.u()) {
1636
1924
  var e = _iterator__ex2g4s.v();
1637
- var key = e.ku_1;
1925
+ var key = e.az_1;
1638
1926
  if (set.x(key)) {
1639
1927
  list.x(e);
1640
1928
  }
@@ -1645,7 +1933,7 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1645
1933
  var _iterator__ex2g4s_0 = list.t();
1646
1934
  while (_iterator__ex2g4s_0.u()) {
1647
1935
  var item = _iterator__ex2g4s_0.v();
1648
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1936
+ var tmp$ret$2 = import_0('../model', item.az_1, true);
1649
1937
  destination.x(tmp$ret$2);
1650
1938
  }
1651
1939
  var imports = destination;
@@ -1654,25 +1942,25 @@ protoOf(TypeScriptIrEmitter).jr = function (endpoint) {
1654
1942
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1655
1943
  var this_1 = stripTrailingSpaceFromErrorMessage(convert_3(endpoint));
1656
1944
  var scope = new TransformScope(this_1);
1657
- scope.b1u(transformPatternSwitchToValueSwitch());
1658
- var tmp = scope.w1t_1;
1945
+ scope.i1z(transformPatternSwitchToValueSwitch());
1946
+ var tmp = scope.d1z_1;
1659
1947
  var tmp$ret$7 = isInterface(tmp, Element) ? tmp : THROW_CCE();
1660
1948
  // Inline function 'kotlin.let' call
1661
- var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).v1m(Companion_getInstance().l1h(sanitize(this, endpoint.ep_1))), _get_sanitizationConfig__sns434(this));
1949
+ var it = sanitizeNames(emit$injectApiConst(emit$applyCallParamsIfNeeded(tmp$ret$7, hasRequestParams), endpoint).w1r(Companion_getInstance().m1l(sanitize(this, endpoint.ut_1))), _get_sanitizationConfig__sns434(this));
1662
1950
  var tmp_0;
1663
1951
  // Inline function 'kotlin.collections.isNotEmpty' call
1664
1952
  if (!imports.r()) {
1665
- tmp_0 = it.v1m(VOID, plus_0(imports, it.s1m_1));
1953
+ tmp_0 = it.w1r(VOID, plus_1(imports, it.t1r_1));
1666
1954
  } else {
1667
1955
  tmp_0 = it;
1668
1956
  }
1669
1957
  return tmp_0;
1670
1958
  };
1671
- protoOf(TypeScriptIrEmitter).xq = function (channel) {
1959
+ protoOf(TypeScriptIrEmitter).nv = function (channel) {
1672
1960
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1673
1961
  };
1674
- protoOf(TypeScriptIrEmitter).o1u = function (endpoint) {
1675
- var endpointName = endpoint.ep_1.l1();
1962
+ protoOf(TypeScriptIrEmitter).w1z = function (endpoint) {
1963
+ var endpointName = endpoint.ut_1.n1();
1676
1964
  var methodName = firstToLower(this, endpointName);
1677
1965
  // Inline function 'kotlin.collections.distinctBy' call
1678
1966
  var this_0 = importReferences(endpoint);
@@ -1681,7 +1969,7 @@ protoOf(TypeScriptIrEmitter).o1u = function (endpoint) {
1681
1969
  var _iterator__ex2g4s = this_0.t();
1682
1970
  while (_iterator__ex2g4s.u()) {
1683
1971
  var e = _iterator__ex2g4s.v();
1684
- var key = e.ku_1;
1972
+ var key = e.az_1;
1685
1973
  if (set.x(key)) {
1686
1974
  list.x(e);
1687
1975
  }
@@ -1692,7 +1980,7 @@ protoOf(TypeScriptIrEmitter).o1u = function (endpoint) {
1692
1980
  var _iterator__ex2g4s_0 = list.t();
1693
1981
  while (_iterator__ex2g4s_0.u()) {
1694
1982
  var item = _iterator__ex2g4s_0.v();
1695
- var tmp$ret$2 = import_0('../model', item.ku_1, true);
1983
+ var tmp$ret$2 = import_0('../model', item.az_1, true);
1696
1984
  destination.x(tmp$ret$2);
1697
1985
  }
1698
1986
  var imports = destination;
@@ -1714,50 +2002,50 @@ protoOf(TypeScriptIrEmitter).o1u = function (endpoint) {
1714
2002
  }
1715
2003
  var requestArgs = tmp_0;
1716
2004
  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 ');
1717
- var tmp_1 = Companion_getInstance().l1h('client/' + endpointName + 'Client');
2005
+ var tmp_1 = Companion_getInstance().m1l('client/' + endpointName + 'Client');
1718
2006
  // Inline function 'kotlin.collections.buildList' call
1719
2007
  // Inline function 'kotlin.collections.buildListInternal' call
1720
2008
  // Inline function 'kotlin.apply' call
1721
2009
  var this_1 = ArrayList_init_$Create$();
1722
2010
  this_1.x(import_0('../Wirespec', 'Wirespec'));
1723
2011
  this_1.x(import_0('../endpoint/' + endpointName, endpointName));
1724
- this_1.e1(imports);
2012
+ this_1.f1(imports);
1725
2013
  this_1.x(new RawElement(code));
1726
- var tmp$ret$10 = this_1.o5();
2014
+ var tmp$ret$10 = this_1.u5();
1727
2015
  return new File(tmp_1, tmp$ret$10);
1728
2016
  };
1729
- protoOf(TypeScriptIrEmitter).n1u = function (endpoints, logger) {
1730
- logger.sq('Emitting main Client for ' + endpoints.a1() + ' endpoints');
2017
+ protoOf(TypeScriptIrEmitter).u1z = function (endpoints, logger) {
2018
+ logger.iv('Emitting main Client for ' + endpoints.b1() + ' endpoints');
1731
2019
  // Inline function 'kotlin.collections.map' call
1732
2020
  // Inline function 'kotlin.collections.mapTo' call
1733
2021
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(endpoints, 10));
1734
2022
  var _iterator__ex2g4s = endpoints.t();
1735
2023
  while (_iterator__ex2g4s.u()) {
1736
2024
  var item = _iterator__ex2g4s.v();
1737
- var methodName = firstToLower(this, item.ep_1.l1());
1738
- var tmp$ret$0 = import_0('./client/' + item.ep_1.l1() + 'Client', methodName + 'Client');
2025
+ var methodName = firstToLower(this, item.ut_1.n1());
2026
+ var tmp$ret$0 = import_0('./client/' + item.ut_1.n1() + 'Client', methodName + 'Client');
1739
2027
  destination.x(tmp$ret$0);
1740
2028
  }
1741
2029
  var clientImports = destination;
1742
2030
  var spreadEntries = joinToString(endpoints, '\n', VOID, VOID, VOID, VOID, TypeScriptIrEmitter$emitClient$lambda(this));
1743
2031
  var code = trimMargin('\n |export const client = (serialization: Wirespec.Serialization, transportation: Wirespec.Transportation) => ({\n |' + spreadEntries + '\n |})\n ');
1744
- var tmp = Companion_getInstance().l1h('Client');
2032
+ var tmp = Companion_getInstance().m1l('Client');
1745
2033
  // Inline function 'kotlin.collections.buildList' call
1746
2034
  // Inline function 'kotlin.collections.buildListInternal' call
1747
2035
  // Inline function 'kotlin.apply' call
1748
2036
  var this_0 = ArrayList_init_$Create$();
1749
2037
  this_0.x(import_0('./Wirespec', 'Wirespec'));
1750
- this_0.e1(clientImports);
2038
+ this_0.f1(clientImports);
1751
2039
  this_0.x(new RawElement(code));
1752
- var tmp$ret$6 = this_0.o5();
2040
+ var tmp$ret$6 = this_0.u5();
1753
2041
  return new File(tmp, tmp$ret$6);
1754
2042
  };
1755
2043
  function transformPatternSwitchToValueSwitch() {
1756
2044
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1757
2045
  // Inline function 'kotlin.apply' call
1758
2046
  var this_0 = new TransformerBuilder();
1759
- this_0.d1u(transformPatternSwitchToValueSwitch$lambda);
1760
- return this_0.d1h();
2047
+ this_0.k1z(transformPatternSwitchToValueSwitch$lambda);
2048
+ return this_0.w1m();
1761
2049
  }
1762
2050
  function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1763
2051
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1765,19 +2053,19 @@ function renameValidateAndBindObjReceiver(_this__u8e3s4, typeName, fieldNames) {
1765
2053
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1766
2054
  var tmp = scope;
1767
2055
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1768
- var this_0 = scope.w1t_1;
2056
+ var this_0 = scope.d1z_1;
1769
2057
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1770
2058
  // Inline function 'kotlin.apply' call
1771
2059
  var this_1 = new TransformerBuilder();
1772
- this_1.c1h(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
1773
- var tmp$ret$2 = this_1.d1h();
1774
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1775
- var tmp_0 = scope.w1t_1;
2060
+ this_1.v1m(renameValidateAndBindObjReceiver$lambda(typeName, fieldNames));
2061
+ var tmp$ret$2 = this_1.w1m();
2062
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
2063
+ var tmp_0 = scope.d1z_1;
1776
2064
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1777
2065
  }
1778
2066
  function buildApiConst(endpoint) {
1779
2067
  // Inline function 'kotlin.text.replaceFirstChar' call
1780
- var this_0 = endpoint.ep_1.l1();
2068
+ var this_0 = endpoint.ut_1.n1();
1781
2069
  var tmp;
1782
2070
  // Inline function 'kotlin.text.isNotEmpty' call
1783
2071
  if (charSequenceLength(this_0) > 0) {
@@ -1791,8 +2079,8 @@ function buildApiConst(endpoint) {
1791
2079
  tmp = this_0;
1792
2080
  }
1793
2081
  var apiName = tmp;
1794
- var method = endpoint.fp_1.a3_1;
1795
- var pathString = joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
2082
+ var method = endpoint.vt_1.g3_1;
2083
+ var pathString = joinToString(endpoint.wt_1, '/', VOID, VOID, VOID, VOID, buildApiConst$lambda);
1796
2084
  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 '));
1797
2085
  }
1798
2086
  function bindCallToRequestParams(_this__u8e3s4) {
@@ -1801,21 +2089,21 @@ function bindCallToRequestParams(_this__u8e3s4) {
1801
2089
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1802
2090
  var tmp = scope;
1803
2091
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1804
- var this_0 = scope.w1t_1;
2092
+ var this_0 = scope.d1z_1;
1805
2093
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1806
2094
  // Inline function 'kotlin.apply' call
1807
2095
  var this_1 = new TransformerBuilder();
1808
- this_1.c1h(bindCallToRequestParams$lambda);
1809
- var tmp$ret$2 = this_1.d1h();
1810
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1811
- var tmp_0 = scope.w1t_1;
2096
+ this_1.v1m(bindCallToRequestParams$lambda);
2097
+ var tmp$ret$2 = this_1.w1m();
2098
+ tmp.d1z_1 = transform(this_0, tmp$ret$2);
2099
+ var tmp_0 = scope.d1z_1;
1812
2100
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1813
2101
  }
1814
2102
  function stripTrailingSpaceFromErrorMessage(_this__u8e3s4) {
1815
2103
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1816
2104
  var scope = new TransformScope(_this__u8e3s4);
1817
- scope.d1u(stripTrailingSpaceFromErrorMessage$lambda);
1818
- var tmp = scope.w1t_1;
2105
+ scope.k1z(stripTrailingSpaceFromErrorMessage$lambda);
2106
+ var tmp = scope.d1z_1;
1819
2107
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1820
2108
  }
1821
2109
  function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
@@ -1823,7 +2111,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1823
2111
  if (!(stmt instanceof Switch)) {
1824
2112
  tmp = true;
1825
2113
  } else {
1826
- var tmp0 = stmt.y1o_1;
2114
+ var tmp0 = stmt.f1u_1;
1827
2115
  var tmp$ret$0;
1828
2116
  $l$block_0: {
1829
2117
  // Inline function 'kotlin.collections.none' call
@@ -1840,7 +2128,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1840
2128
  var _iterator__ex2g4s = tmp0.t();
1841
2129
  while (_iterator__ex2g4s.u()) {
1842
2130
  var element = _iterator__ex2g4s.v();
1843
- if (!(element.f1p_1 == null)) {
2131
+ if (!(element.m1u_1 == null)) {
1844
2132
  tmp$ret$0 = false;
1845
2133
  break $l$block_0;
1846
2134
  }
@@ -1851,11 +2139,11 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1851
2139
  }
1852
2140
  if (tmp)
1853
2141
  return transformChildren(stmt, tr);
1854
- var tmp0_safe_receiver = stmt.a1p_1;
1855
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q1l();
2142
+ var tmp0_safe_receiver = stmt.h1u_1;
2143
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1q();
1856
2144
  var varName = tmp1_elvis_lhs == null ? 'r' : tmp1_elvis_lhs;
1857
2145
  // Inline function 'kotlin.collections.map' call
1858
- var this_0 = stmt.y1o_1;
2146
+ var this_0 = stmt.f1u_1;
1859
2147
  // Inline function 'kotlin.collections.mapTo' call
1860
2148
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1861
2149
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1863,47 +2151,47 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1863
2151
  var item = _iterator__ex2g4s_0.v();
1864
2152
  var tmp$ret$5;
1865
2153
  $l$block_1: {
1866
- var tmp_1 = item.f1p_1;
2154
+ var tmp_1 = item.m1u_1;
1867
2155
  var tmp0_safe_receiver_0 = tmp_1 instanceof Custom_0 ? tmp_1 : null;
1868
- var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.p1h_1;
2156
+ var typeName = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.f1n_1;
1869
2157
  var tmp2_safe_receiver = typeName == null ? null : substringAfterLast(typeName, '.');
1870
2158
  var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : removePrefix(tmp2_safe_receiver, 'Response');
1871
2159
  var statusNum = tmp3_safe_receiver == null ? null : toIntOrNull(tmp3_safe_receiver);
1872
2160
  if (statusNum == null || typeName == null) {
1873
2161
  // Inline function 'kotlin.collections.map' call
1874
- var this_1 = item.e1p_1;
2162
+ var this_1 = item.l1u_1;
1875
2163
  // Inline function 'kotlin.collections.mapTo' call
1876
2164
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1877
2165
  var _iterator__ex2g4s_1 = this_1.t();
1878
2166
  while (_iterator__ex2g4s_1.u()) {
1879
2167
  var item_0 = _iterator__ex2g4s_1.v();
1880
- var tmp$ret$2 = tr.q1t(item_0);
2168
+ var tmp$ret$2 = tr.x1y(item_0);
1881
2169
  destination_0.x(tmp$ret$2);
1882
2170
  }
1883
- tmp$ret$5 = item.h1p(VOID, destination_0);
2171
+ tmp$ret$5 = item.o1u(VOID, destination_0);
1884
2172
  break $l$block_1;
1885
2173
  }
1886
- var exprCode = TypeScriptGenerator_getInstance().u1u(tr.r1t(stmt.x1o_1));
1887
- var castAssignment = new Assignment(Companion_getInstance().l1h(varName), new RawExpression(exprCode + ' as ' + typeName), false);
2174
+ var exprCode = TypeScriptGenerator_getInstance().f20(tr.y1y(stmt.e1u_1));
2175
+ var castAssignment = new Assignment(Companion_getInstance().m1l(varName), new RawExpression(exprCode + ' as ' + typeName), false);
1888
2176
  var tmp_2 = new Literal_0(statusNum, new Integer_0());
1889
- var tmp_3 = listOf(castAssignment);
2177
+ var tmp_3 = listOf_0(castAssignment);
1890
2178
  // Inline function 'kotlin.collections.map' call
1891
- var this_2 = item.e1p_1;
2179
+ var this_2 = item.l1u_1;
1892
2180
  // Inline function 'kotlin.collections.mapTo' call
1893
2181
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
1894
2182
  var _iterator__ex2g4s_2 = this_2.t();
1895
2183
  while (_iterator__ex2g4s_2.u()) {
1896
2184
  var item_1 = _iterator__ex2g4s_2.v();
1897
- var tmp$ret$6 = tr.q1t(item_1);
2185
+ var tmp$ret$6 = tr.x1y(item_1);
1898
2186
  destination_1.x(tmp$ret$6);
1899
2187
  }
1900
- tmp$ret$5 = new Case(tmp_2, plus_0(tmp_3, destination_1), null);
2188
+ tmp$ret$5 = new Case(tmp_2, plus_1(tmp_3, destination_1), null);
1901
2189
  }
1902
2190
  destination.x(tmp$ret$5);
1903
2191
  }
1904
2192
  var transformedCases = destination;
1905
- var tmp_4 = new FieldCall(tr.r1t(stmt.x1o_1), Companion_getInstance().l1h('status'));
1906
- var tmp2_safe_receiver_0 = stmt.z1o_1;
2193
+ var tmp_4 = new FieldCall(tr.y1y(stmt.e1u_1), Companion_getInstance().m1l('status'));
2194
+ var tmp2_safe_receiver_0 = stmt.g1u_1;
1907
2195
  var tmp_5;
1908
2196
  if (tmp2_safe_receiver_0 == null) {
1909
2197
  tmp_5 = null;
@@ -1914,7 +2202,7 @@ function transformPatternSwitchToValueSwitch$lambda(stmt, tr) {
1914
2202
  var _iterator__ex2g4s_3 = tmp2_safe_receiver_0.t();
1915
2203
  while (_iterator__ex2g4s_3.u()) {
1916
2204
  var item_2 = _iterator__ex2g4s_3.v();
1917
- var tmp$ret$11 = tr.q1t(item_2);
2205
+ var tmp$ret$11 = tr.x1y(item_2);
1918
2206
  destination_2.x(tmp$ret$11);
1919
2207
  }
1920
2208
  tmp_5 = destination_2;
@@ -1928,42 +2216,42 @@ function renameValidateAndBindObjReceiver$lambda$lambda($fieldNames) {
1928
2216
  var tmp_1;
1929
2217
  var tmp_2;
1930
2218
  if (s instanceof FunctionCall) {
1931
- tmp_2 = s.a1m_1.equals(Companion_getInstance().l1h('validate'));
2219
+ tmp_2 = s.x1q_1.equals(Companion_getInstance().m1l('validate'));
1932
2220
  } else {
1933
2221
  tmp_2 = false;
1934
2222
  }
1935
2223
  if (tmp_2) {
1936
- tmp_1 = !(s.y1l_1 == null);
2224
+ tmp_1 = !(s.v1q_1 == null);
1937
2225
  } else {
1938
2226
  tmp_1 = false;
1939
2227
  }
1940
2228
  if (tmp_1) {
1941
2229
  // Inline function 'kotlin.collections.isNotEmpty' call
1942
- tmp_0 = !s.z1l_1.r();
2230
+ tmp_0 = !s.w1q_1.r();
1943
2231
  } else {
1944
2232
  tmp_0 = false;
1945
2233
  }
1946
2234
  if (tmp_0) {
1947
- var tmp_3 = first(s.z1l_1);
2235
+ var tmp_3 = first(s.w1q_1);
1948
2236
  var tmp0_safe_receiver = tmp_3 instanceof Custom_0 ? tmp_3 : null;
1949
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1h_1;
2237
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1n_1;
1950
2238
  var tn = tmp1_elvis_lhs == null ? '' : tmp1_elvis_lhs;
1951
- tmp = new FunctionCall(VOID, VOID, Companion_getInstance().l1h('validate' + tn), mapOf(to(Companion_getInstance().l1h('obj'), t.r1t(ensureNotNull(s.y1l_1)))));
2239
+ tmp = new FunctionCall(VOID, VOID, Companion_getInstance().m1l('validate' + tn), mapOf(to(Companion_getInstance().m1l('obj'), t.y1y(ensureNotNull(s.v1q_1)))));
1952
2240
  } else {
1953
2241
  var tmp_4;
1954
2242
  var tmp_5;
1955
2243
  if (s instanceof FieldCall) {
1956
- tmp_5 = s.i1p_1 == null;
2244
+ tmp_5 = s.p1u_1 == null;
1957
2245
  } else {
1958
2246
  tmp_5 = false;
1959
2247
  }
1960
2248
  if (tmp_5) {
1961
- tmp_4 = $fieldNames.u1(s.j1p_1.q1l());
2249
+ tmp_4 = $fieldNames.a2(s.q1u_1.n1q());
1962
2250
  } else {
1963
2251
  tmp_4 = false;
1964
2252
  }
1965
2253
  if (tmp_4) {
1966
- tmp = new FieldCall(new VariableReference(Companion_getInstance().l1h('obj')), s.j1p_1);
2254
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().m1l('obj')), s.q1u_1);
1967
2255
  } else {
1968
2256
  tmp = transformChildren(s, t);
1969
2257
  }
@@ -1977,15 +2265,15 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1977
2265
  if (element instanceof Function) {
1978
2266
  var tmp$ret$0;
1979
2267
  $l$block: {
1980
- if (!element.s1j_1.equals(Companion_getInstance().l1h('validate'))) {
2268
+ if (!element.b1p_1.equals(Companion_getInstance().m1l('validate'))) {
1981
2269
  tmp$ret$0 = element;
1982
2270
  break $l$block;
1983
2271
  }
1984
2272
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1985
- var this_0 = element.a1k(Companion_getInstance().l1h('validate' + $typeName), VOID, listOf(new Parameter(Companion_getInstance().l1h('obj'), new Custom_0($typeName))));
2273
+ var this_0 = element.j1p(Companion_getInstance().m1l('validate' + $typeName), VOID, listOf_0(new Parameter(Companion_getInstance().m1l('obj'), new Custom_0($typeName))));
1986
2274
  var scope = new TransformScope(this_0);
1987
- scope.f1u(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
1988
- var tmp_0 = scope.w1t_1;
2275
+ scope.m1z(renameValidateAndBindObjReceiver$lambda$lambda($fieldNames));
2276
+ var tmp_0 = scope.d1z_1;
1989
2277
  tmp$ret$0 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1990
2278
  }
1991
2279
  tmp = tmp$ret$0;
@@ -1999,10 +2287,10 @@ function renameValidateAndBindObjReceiver$lambda($typeName, $fieldNames) {
1999
2287
  function buildApiConst$lambda(it) {
2000
2288
  var tmp;
2001
2289
  if (it instanceof Literal) {
2002
- tmp = it.hq_1;
2290
+ tmp = it.xu_1;
2003
2291
  } else {
2004
2292
  if (it instanceof Param) {
2005
- tmp = '{' + it.lp_1.l1() + '}';
2293
+ tmp = '{' + it.bu_1.n1() + '}';
2006
2294
  } else {
2007
2295
  noWhenBranchMatchedException();
2008
2296
  }
@@ -2014,23 +2302,23 @@ function bindCallToRequestParams$lambda(element, transformer) {
2014
2302
  if (element instanceof Interface) {
2015
2303
  var tmp$ret$0;
2016
2304
  $l$block: {
2017
- if (!element.j1n_1.equals(Companion_getInstance().l1h('Call'))) {
2305
+ if (!element.l1s_1.equals(Companion_getInstance().m1l('Call'))) {
2018
2306
  tmp$ret$0 = element;
2019
2307
  break $l$block;
2020
2308
  }
2021
2309
  // Inline function 'kotlin.collections.map' call
2022
- var this_0 = element.k1n_1;
2310
+ var this_0 = element.m1s_1;
2023
2311
  // Inline function 'kotlin.collections.mapTo' call
2024
2312
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2025
2313
  var _iterator__ex2g4s = this_0.t();
2026
2314
  while (_iterator__ex2g4s.u()) {
2027
2315
  var item = _iterator__ex2g4s.v();
2028
2316
  var tmp0_safe_receiver = item instanceof Function ? item : null;
2029
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1k(VOID, VOID, listOf(new Parameter(Companion_getInstance().l1h('params'), new Custom_0('RequestParams'))));
2317
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1p(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().m1l('params'), new Custom_0('RequestParams'))));
2030
2318
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
2031
2319
  destination.x(tmp$ret$1);
2032
2320
  }
2033
- tmp$ret$0 = element.q1n(VOID, destination);
2321
+ tmp$ret$0 = element.s1s(VOID, destination);
2034
2322
  }
2035
2323
  tmp = tmp$ret$0;
2036
2324
  } else {
@@ -2042,7 +2330,7 @@ function bindCallToRequestParams$lambda(element, transformer) {
2042
2330
  function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2043
2331
  var tmp;
2044
2332
  if (stmt instanceof Switch) {
2045
- var tmp1_safe_receiver = stmt.z1o_1;
2333
+ var tmp1_safe_receiver = stmt.g1u_1;
2046
2334
  var tmp_0;
2047
2335
  if (tmp1_safe_receiver == null) {
2048
2336
  tmp_0 = null;
@@ -2064,7 +2352,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2064
2352
  tmp_1 = tmp0_elvis_lhs;
2065
2353
  }
2066
2354
  var errorStmt = tmp_1;
2067
- var tmp_2 = errorStmt.m1p_1;
2355
+ var tmp_2 = errorStmt.t1u_1;
2068
2356
  var tmp1_elvis_lhs = tmp_2 instanceof BinaryOp ? tmp_2 : null;
2069
2357
  var tmp_3;
2070
2358
  if (tmp1_elvis_lhs == null) {
@@ -2074,7 +2362,7 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2074
2362
  tmp_3 = tmp1_elvis_lhs;
2075
2363
  }
2076
2364
  var binary = tmp_3;
2077
- var tmp_4 = binary.n1p_1;
2365
+ var tmp_4 = binary.u1u_1;
2078
2366
  var tmp2_elvis_lhs = tmp_4 instanceof Literal_0 ? tmp_4 : null;
2079
2367
  var tmp_5;
2080
2368
  if (tmp2_elvis_lhs == null) {
@@ -2084,13 +2372,13 @@ function stripTrailingSpaceFromErrorMessage$lambda(stmt, transformer) {
2084
2372
  tmp_5 = tmp2_elvis_lhs;
2085
2373
  }
2086
2374
  var literal = tmp_5;
2087
- tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.p1o_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.q1o_1));
2375
+ tmp$ret$0 = new ErrorStatement(new Literal_0(trimEnd(toString(literal.r1t_1), charArrayOf([_Char___init__impl__6a9atx(32)])), literal.s1t_1));
2088
2376
  }
2089
2377
  destination.x(tmp$ret$0);
2090
2378
  }
2091
2379
  tmp_0 = destination;
2092
2380
  }
2093
- tmp = transformChildren(stmt.c1p(VOID, VOID, tmp_0), transformer);
2381
+ tmp = transformChildren(stmt.j1u(VOID, VOID, tmp_0), transformer);
2094
2382
  } else {
2095
2383
  tmp = transformChildren(stmt, transformer);
2096
2384
  }
@@ -2100,8 +2388,8 @@ function TypeScriptRefinedTypeDefinitionEmitter() {
2100
2388
  }
2101
2389
  function TypeScriptShared() {
2102
2390
  TypeScriptShared_instance = this;
2103
- this.b1z_1 = 'community.flock.wirespec';
2104
- this.c1z_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 ');
2391
+ this.n24_1 = 'community.flock.wirespec';
2392
+ this.o24_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 ');
2105
2393
  }
2106
2394
  protoOf(TypeScriptShared).toString = function () {
2107
2395
  return 'TypeScriptShared';
@@ -2123,7 +2411,7 @@ function TypeScriptShared_getInstance() {
2123
2411
  return TypeScriptShared_instance;
2124
2412
  }
2125
2413
  function TypeScriptTypeDefinitionEmitter$sanitizeSymbol$lambda(it) {
2126
- return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
2414
+ return isLetterOrDigit(it.i1_1) || listOf_0(new Char(_Char___init__impl__6a9atx(95))).a2(it);
2127
2415
  }
2128
2416
  function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2129
2417
  // Inline function 'kotlin.text.trimStart' call
@@ -2131,28 +2419,29 @@ function TypeScriptTypeDefinitionEmitter$emit$lambda(it) {
2131
2419
  }
2132
2420
  function TypeScriptTypeDefinitionEmitter$emit$lambda_0(this$0) {
2133
2421
  return function (it) {
2134
- return this$0.wp(it);
2422
+ return this$0.mu(it);
2135
2423
  };
2136
2424
  }
2137
2425
  function TypeScriptTypeDefinitionEmitter() {
2138
2426
  }
2139
2427
  //region block: post-declaration
2140
- protoOf(TypeScriptEmitter).up = emit_3;
2141
- protoOf(TypeScriptEmitter).vp = emit_6;
2142
- protoOf(TypeScriptEmitter).wp = emit_7;
2143
- protoOf(TypeScriptEmitter).xp = emit_4;
2144
- protoOf(TypeScriptEmitter).yp = emit_5;
2145
- protoOf(TypeScriptEmitter).ir = emit_10;
2146
- protoOf(TypeScriptEmitter).dr = emit_8;
2147
- protoOf(TypeScriptEmitter).jr = emit_9;
2148
- protoOf(TypeScriptEmitter).wq = emit_2;
2149
- protoOf(TypeScriptEmitter).kr = emitValidator;
2150
- protoOf(TypeScriptEmitter).w1y = sanitizeSymbol;
2151
- protoOf(TypeScriptEmitter).o1v = sanitizeSymbol_0;
2152
- protoOf(TypeScriptEmitter).x1y = emitPrimitive;
2153
- protoOf(TypeScriptEmitter).v1y = emitClient;
2154
- protoOf(TypeScriptEmitter).aq = emitClientEndpointRequest;
2155
- protoOf(TypeScriptIrEmitter).l1u = emit_1;
2428
+ protoOf(TypeScriptEmitter).ku = emit_3;
2429
+ protoOf(TypeScriptEmitter).lu = emit_6;
2430
+ protoOf(TypeScriptEmitter).mu = emit_7;
2431
+ protoOf(TypeScriptEmitter).nu = emit_4;
2432
+ protoOf(TypeScriptEmitter).ou = emit_5;
2433
+ protoOf(TypeScriptEmitter).yv = emit_8;
2434
+ protoOf(TypeScriptEmitter).tv = emit_9;
2435
+ protoOf(TypeScriptEmitter).zv = emit_10;
2436
+ protoOf(TypeScriptEmitter).mv = emit_2;
2437
+ protoOf(TypeScriptEmitter).aw = emitValidator;
2438
+ protoOf(TypeScriptEmitter).i24 = sanitizeSymbol;
2439
+ protoOf(TypeScriptEmitter).z20 = sanitizeSymbol_0;
2440
+ protoOf(TypeScriptEmitter).j24 = emitPrimitive;
2441
+ protoOf(TypeScriptEmitter).h24 = emitClient;
2442
+ protoOf(TypeScriptEmitter).qu = emitClientEndpointRequest;
2443
+ protoOf(TypeScriptIrEmitter).s1z = emit_1;
2444
+ protoOf(TypeScriptIrEmitter).v1z = beforeGenerate;
2156
2445
  //endregion
2157
2446
  //region block: exports
2158
2447
  export {