@flock/wirespec 0.18.6 → 0.19.0-RC.3

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 +154 -154
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1549 -1549
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +441 -441
  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 +2400 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +4 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5198 -2276
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4933 -4933
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1802 -1802
  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 +432 -432
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1993 -1959
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1388 -1388
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1321 -1321
  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 +1538 -1537
  42. package/wirespec-src-compiler-emitters-java.mjs +451 -389
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +364 -301
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +556 -359
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +758 -458
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -165
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +706 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6639 -4861
  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 +509 -509
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +753 -753
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1455 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +182 -182
  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
@@ -46,14 +46,23 @@ import {
46
46
  listOfvhqybd2zx248 as listOf_0,
47
47
  to2cs3ny02qtbcb as to,
48
48
  toMap1vec9topfei08 as toMap,
49
+ substringBefore3n7kj60w69hju as substringBefore,
50
+ endsWith3cq61xxngobwh as endsWith,
49
51
  lazy2hsh8ze7j6ikd as lazy,
50
52
  Collection1k04j3hzsbod0 as Collection,
51
53
  emptyList1g2z5xcrvp2zy as emptyList,
52
54
  dropLast1vpiyky649o34 as dropLast,
53
55
  drop3na99dw9feawf as drop,
56
+ asSequence2phdjljfh9jhx as asSequence,
57
+ filterNot56uwv8hfomaa as filterNot,
58
+ mapsbvh18eqox7a as map,
59
+ distinct17vua5ffe1cfv as distinct,
60
+ toListx6x8nvfmvvht as toList,
61
+ LinkedHashSet_init_$Create$2lru2gvxodydo as LinkedHashSet_init_$Create$,
62
+ plus310ted5e4i90h as plus,
63
+ distinct10qe1scfdvu5k as distinct_0,
54
64
  HashSet_init_$Create$33p49hmosnvr4 as HashSet_init_$Create$,
55
65
  toSet2orjxp16sotqu as toSet,
56
- plus310ted5e4i90h as plus,
57
66
  addAll1k27qatfgp3k5 as addAll,
58
67
  firstOrNull1982767dljvdy as firstOrNull_0,
59
68
  Paire9pteg33gng7 as Pair,
@@ -129,6 +138,8 @@ import {
129
138
  ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
130
139
  SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
131
140
  sortKey2uc13shubz5xy as sortKey,
141
+ RawExpression2bo7ldfrptjia as RawExpression,
142
+ transformChildren3n5cjwmxlhwx9 as transformChildren_0,
132
143
  PythonGenerator_instance3bpw212sztsap as PythonGenerator_instance,
133
144
  convertnty9x0e63d0u as convert,
134
145
  Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
@@ -138,9 +149,17 @@ import {
138
149
  emitn3eihixilqyh as emit_0,
139
150
  prependImports32gcj3yb8voha as prependImports,
140
151
  placeInModule10pilwex0h8tn as placeInModule,
152
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
153
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
154
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
155
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
156
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
157
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
158
+ TransformScopeyrd3lf4zrk76 as TransformScope,
159
+ Elementitq62jg6fid3 as Element,
160
+ placeInModuleewt2r4ic2m6a as placeInModule_0,
141
161
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
142
162
  injectSelfReceiverToValidate4xgr9r5gl5n3 as injectSelfReceiverToValidate,
143
- sanitizeNames2wqmyf8vafp9x as sanitizeNames,
144
163
  convert11ert2po54h1y as convert_0,
145
164
  sanitizeEnumEntries3pphrvzq8r9fn as sanitizeEnumEntries,
146
165
  convert37aabdzvtv9vg as convert_1,
@@ -150,27 +169,29 @@ import {
150
169
  emitEndpointClient1meajc90wf3el as emitEndpointClient,
151
170
  emitClient32kfwzg2hm5vj as emitClient,
152
171
  emit1oxjujel6f3jb as emit_1,
172
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
153
173
  IrEmitterh2m93ojzvkep as IrEmitter,
154
- TransformScopeyrd3lf4zrk76 as TransformScope,
155
174
  TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
156
175
  transform3eti8i2bqvifx as transform,
157
- Elementitq62jg6fid3 as Element,
158
176
  Namespace345pal554qu3j as Namespace,
159
177
  flattenNestedStructs2956rxx8q2zxl as flattenNestedStructs,
160
178
  Union38f3pecvfcpxh as Union_0,
161
179
  Struct39wf79cwtn4ty as Struct,
162
- Custom_init_$Create$2enn7oyj71j1t as Custom_init_$Create$,
180
+ Dict22iqrhoo0g8et as Dict_0,
181
+ Array2goj74t0aak7b as Array_0,
182
+ Nullable3wjn6l6q3h6o as Nullable,
183
+ Any_instance2998xag3cdzh3 as Any_instance,
184
+ Custom2si7lto3wompr as Custom_0,
185
+ Reflect_instance3i17lxiopj78t as Reflect_instance,
186
+ transformChildrend9p91tpcqdkx as transformChildren_1,
163
187
  Boolean_instance27opaqtiiiysz as Boolean_instance_0,
164
188
  String_instance3uxvo48ki208u as String_instance,
165
- RawExpression2bo7ldfrptjia as RawExpression,
166
189
  Function21cuq8qizkin7 as Function,
167
190
  function12vu2kapzno4w as function_0,
168
191
  VariableReference2vlynnhaw1i64 as VariableReference,
169
192
  FieldCall1iz7z2fx2xo4p as FieldCall,
170
193
  convertConstraintkgpvomct0x0s as convertConstraint,
171
- transformChildrend9p91tpcqdkx as transformChildren_0,
172
194
  Interface3pn84xq686t2r as Interface,
173
- Custom2si7lto3wompr as Custom_0,
174
195
  Parameteruqoxd4rzw7ga as Parameter,
175
196
  FunctionCall30872kpnbr7op as FunctionCall,
176
197
  } from './wirespec-src-compiler-ir.mjs';
@@ -185,10 +206,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
185
206
  function emit_3(identifier) {
186
207
  var tmp;
187
208
  if (identifier instanceof DefinitionIdentifier) {
188
- tmp = this.d1w(identifier);
209
+ tmp = this.v20(identifier);
189
210
  } else {
190
211
  if (identifier instanceof FieldIdentifier) {
191
- tmp = this.t1v(this.d1w(identifier));
212
+ tmp = this.l20(this.v20(identifier));
192
213
  } else {
193
214
  noWhenBranchMatchedException();
194
215
  }
@@ -197,7 +218,7 @@ function emit_3(identifier) {
197
218
  }
198
219
  function sanitize(_this__u8e3s4) {
199
220
  // Inline function 'kotlin.collections.mapIndexed' call
200
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
221
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
201
222
  // Inline function 'kotlin.collections.mapIndexedTo' call
202
223
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
203
224
  var index = 0;
@@ -206,7 +227,7 @@ function sanitize(_this__u8e3s4) {
206
227
  var item = _iterator__ex2g4s.v();
207
228
  var _unary__edvuaz = index;
208
229
  index = _unary__edvuaz + 1 | 0;
209
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
230
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.mu(item) : item;
210
231
  destination.x(tmp$ret$0);
211
232
  }
212
233
  // Inline function 'kotlin.text.filter' call
@@ -244,42 +265,42 @@ function sanitize(_this__u8e3s4) {
244
265
  return tmp;
245
266
  }
246
267
  function sanitizeKeywords(_this__u8e3s4) {
247
- return Companion_getInstance_0().m1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
268
+ return Companion_getInstance_0().e22_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
248
269
  }
249
270
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
250
271
  function emit_4(type, module_0) {
251
272
  var tmp;
252
- if (type.wo_1.so_1.r()) {
253
- var tmp_0 = this.wq(type.vo_1);
273
+ if (type.us_1.qs_1.r()) {
274
+ var tmp_0 = this.uu(type.ts_1);
254
275
  var tmp_1 = Spacer_instance.toString();
255
276
  var tmp_2 = importReferences(type);
256
277
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_0 + ':\n |' + tmp_1 + 'pass\n |\n |' + joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda(this)) + '\n |\n ');
257
278
  } else {
258
- var tmp_3 = this.wq(type.vo_1);
259
- var tmp_4 = this.vp(type.wo_1);
279
+ var tmp_3 = this.uu(type.ts_1);
280
+ var tmp_4 = this.tt(type.us_1);
260
281
  var tmp_5 = importReferences(type);
261
282
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_3 + ':\n |' + tmp_4 + '\n |\n |' + joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_0(this)) + '\n ');
262
283
  }
263
284
  return tmp;
264
285
  }
265
286
  function emit_5(_this__u8e3s4) {
266
- return joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
287
+ return joinToString(_this__u8e3s4.qs_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
267
288
  }
268
289
  function emit_6(_this__u8e3s4) {
269
- return this.wq(_this__u8e3s4.ap_1) + ": '" + this.xp(_this__u8e3s4.bp_1) + "'";
290
+ return this.uu(_this__u8e3s4.ys_1) + ": '" + this.vt(_this__u8e3s4.zs_1) + "'";
270
291
  }
271
292
  function emit_7(_this__u8e3s4) {
272
293
  // Inline function 'kotlin.let' call
273
- var it = this.k1x(_this__u8e3s4);
274
- return _this__u8e3s4.cu() ? 'Optional[' + it + ']' : it;
294
+ var it = this.c22(_this__u8e3s4);
295
+ return _this__u8e3s4.ay() ? 'Optional[' + it + ']' : it;
275
296
  }
276
297
  function emitType(_this__u8e3s4) {
277
298
  var tmp;
278
299
  if (_this__u8e3s4 instanceof Dict) {
279
- tmp = 'Dict[str, ' + this.xp(_this__u8e3s4.co_1) + ']';
300
+ tmp = 'Dict[str, ' + this.vt(_this__u8e3s4.as_1) + ']';
280
301
  } else {
281
302
  if (_this__u8e3s4 instanceof Iterable) {
282
- tmp = 'List[' + this.xp(_this__u8e3s4.zn_1) + ']';
303
+ tmp = 'List[' + this.vt(_this__u8e3s4.xr_1) + ']';
283
304
  } else {
284
305
  if (_this__u8e3s4 instanceof Unit) {
285
306
  tmp = 'None';
@@ -288,10 +309,10 @@ function emitType(_this__u8e3s4) {
288
309
  tmp = 'Any';
289
310
  } else {
290
311
  if (_this__u8e3s4 instanceof Custom) {
291
- tmp = _this__u8e3s4.ku_1;
312
+ tmp = _this__u8e3s4.iy_1;
292
313
  } else {
293
314
  if (_this__u8e3s4 instanceof Primitive) {
294
- tmp = this.i1x(_this__u8e3s4.ou_1);
315
+ tmp = this.a22(_this__u8e3s4.my_1);
295
316
  } else {
296
317
  noWhenBranchMatchedException();
297
318
  }
@@ -330,10 +351,10 @@ function emit_8(_this__u8e3s4) {
330
351
  function emit_9(_this__u8e3s4) {
331
352
  var tmp;
332
353
  if (_this__u8e3s4 instanceof RegExp_0) {
333
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '", self.value))';
354
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ww_1) + '", self.value))';
334
355
  } else {
335
356
  if (_this__u8e3s4 instanceof Bound) {
336
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
357
+ var tmp1_safe_receiver = _this__u8e3s4.mx_1;
337
358
  var tmp_0;
338
359
  if (tmp1_safe_receiver == null) {
339
360
  tmp_0 = null;
@@ -342,7 +363,7 @@ function emit_9(_this__u8e3s4) {
342
363
  tmp_0 = tmp1_safe_receiver + ' < self.value';
343
364
  }
344
365
  var minCheck = tmp_0;
345
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
366
+ var tmp2_safe_receiver = _this__u8e3s4.nx_1;
346
367
  var tmp_1;
347
368
  if (tmp2_safe_receiver == null) {
348
369
  tmp_1 = null;
@@ -368,26 +389,26 @@ function emit_9(_this__u8e3s4) {
368
389
  return tmp;
369
390
  }
370
391
  function emitReferenceCustomImports(_this__u8e3s4) {
371
- return 'from ..model.' + _this__u8e3s4.ku_1 + ' import ' + _this__u8e3s4.ku_1;
392
+ return 'from ..model.' + _this__u8e3s4.iy_1 + ' import ' + _this__u8e3s4.iy_1;
372
393
  }
373
394
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
374
395
  function emit_10(endpoint) {
375
396
  var tmp = importReferences(endpoint);
376
397
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
377
- var tmp_1 = this.wq(endpoint.ep_1);
378
- var tmp_2 = spacer(this.q1v(first(endpoint.jp_1), endpoint), 1);
379
- var tmp_3 = distinctByStatus(endpoint.kp_1);
398
+ var tmp_1 = this.uu(endpoint.ct_1);
399
+ var tmp_2 = spacer(this.i20(first(endpoint.ht_1), endpoint), 1);
400
+ var tmp_3 = distinctByStatus(endpoint.it_1);
380
401
  return trimMargin('\n |' + tmp_0 + '\n |\n |class ' + tmp_1 + ' (Wirespec.Endpoint):\n |' + tmp_2 + '\n |' + spacer(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_0(this, endpoint)), 1) + '\n |' + spacer(emitResponseUnion(this, endpoint), 1) + '\n |' + spacer(emitHandleClass(this, endpoint), 1) + '\n |' + spacer(emitConvertClass(this, endpoint), 1) + '\n |\n ');
381
402
  }
382
403
  function emit_11(_this__u8e3s4, endpoint) {
383
- var tmp = emit_18(this, _this__u8e3s4.np_1);
404
+ var tmp = emit_18(this, _this__u8e3s4.lt_1);
384
405
  var tmp_0 = get_pathParams(endpoint);
385
406
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
386
- var tmp_2 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
387
- var tmp_3 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
407
+ var tmp_2 = emitObject$default(this, endpoint.ft_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
408
+ var tmp_3 = emitObject$default(this, endpoint.gt_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
388
409
  var tmp_4 = Spacer_instance.toString();
389
410
  var tmp_5 = Spacer_instance.toString();
390
- var tmp_6 = emit_18(this, _this__u8e3s4.np_1);
411
+ var tmp_6 = emit_18(this, _this__u8e3s4.lt_1);
391
412
  var tmp_7 = Spacer_instance.toString();
392
413
  var tmp_8 = Spacer_instance.toString();
393
414
  var tmp_9 = Spacer_instance.toString();
@@ -403,70 +424,61 @@ function emit_11(_this__u8e3s4, endpoint) {
403
424
  var tmp_19 = Spacer_instance.toString();
404
425
  var tmp_20 = Spacer_instance.toString();
405
426
  var tmp_21 = Spacer_instance.toString();
406
- var tmp_22 = emit_18(this, _this__u8e3s4.np_1);
427
+ var tmp_22 = emit_18(this, _this__u8e3s4.lt_1);
407
428
  var tmp_23 = Spacer_instance.toString();
408
429
  var tmp_24 = Spacer_instance.toString();
409
430
  var tmp_25 = Spacer_instance.toString();
410
431
  var tmp_26 = Spacer_instance.toString();
411
432
  var tmp_27 = Spacer_instance.toString();
412
433
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
413
- return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.fp_1.a3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
434
+ return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.dt_1.b3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
414
435
  }
415
436
  function emit_12(_this__u8e3s4, endpoint) {
416
- var tmp = emit_18(this, _this__u8e3s4.sp_1);
417
- var tmp_0 = emitObject$default(this, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
437
+ var tmp = emit_18(this, _this__u8e3s4.qt_1);
438
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.pt_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
418
439
  var tmp_1 = Spacer_instance.toString();
419
440
  var tmp_2 = Spacer_instance.toString();
420
441
  var tmp_3 = Spacer_instance.toString();
421
442
  var tmp_4 = Spacer_instance.toString();
422
443
  var tmp_5 = Spacer_instance.toString();
423
444
  var tmp_6 = Spacer_instance.toString();
424
- var tmp_7 = emit_18(this, _this__u8e3s4.sp_1);
445
+ var tmp_7 = emit_18(this, _this__u8e3s4.qt_1);
425
446
  var tmp_8 = Spacer_instance.toString();
426
447
  var tmp_9 = Spacer_instance.toString();
427
448
  var tmp_10 = Spacer_instance.toString();
428
- var tmp_11 = emit_18(this, _this__u8e3s4.sp_1);
449
+ var tmp_11 = emit_18(this, _this__u8e3s4.qt_1);
429
450
  var tmp_12 = Spacer_instance.toString();
430
451
  var tmp_13 = Spacer_instance.toString();
431
452
  var tmp_14 = Spacer_instance.toString();
432
453
  var tmp_15 = paramList_0(_this__u8e3s4);
433
- return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.qp_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.qp_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
454
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.ot_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.ot_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
434
455
  }
435
456
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
436
- function emit_13(union) {
437
- return trimMargin('\n |class ' + this.wq(union.qo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
438
- }
439
- initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
440
- function emit_14(enum_0, module_0) {
441
- var tmp = this.d1w(enum_0.gr_1);
442
- return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.hr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.qr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return self.value\n ');
443
- }
444
- initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
445
- function emit_15(refined) {
446
- return trimMargin('\n |@dataclass\n |class ' + this.d1w(refined.br_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.k1x(refined.cr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.qr(2) + 'return ' + this.kr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return str(self.value)\n |\n ');
457
+ function emit_13(refined) {
458
+ return trimMargin('\n |@dataclass\n |class ' + this.v20(refined.zu_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.c22(refined.av_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.ov(2) + 'return ' + this.iv(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.ov(2) + 'return str(self.value)\n |\n ');
447
459
  }
448
460
  function emitValidator(_this__u8e3s4) {
449
461
  var defaultReturn = 'True';
450
- var type = _this__u8e3s4.cr_1.ou_1;
462
+ var type = _this__u8e3s4.av_1.my_1;
451
463
  var tmp;
452
464
  if (type instanceof Integer) {
453
- var tmp0_safe_receiver = type.tt_1;
454
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
465
+ var tmp0_safe_receiver = type.rx_1;
466
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.wt(tmp0_safe_receiver);
455
467
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
456
468
  } else {
457
469
  if (type instanceof Number_0) {
458
- var tmp2_safe_receiver = type.wt_1;
459
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
470
+ var tmp2_safe_receiver = type.ux_1;
471
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.wt(tmp2_safe_receiver);
460
472
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
461
473
  } else {
462
474
  if (type instanceof String_0) {
463
- var tmp4_safe_receiver = type.qt_1;
475
+ var tmp4_safe_receiver = type.ox_1;
464
476
  var tmp_0;
465
477
  var tmp_1 = tmp4_safe_receiver;
466
478
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
467
479
  tmp_0 = null;
468
480
  } else {
469
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
481
+ tmp_0 = this.wt(new RegExp_0(tmp4_safe_receiver));
470
482
  }
471
483
  var tmp5_elvis_lhs = tmp_0;
472
484
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -486,7 +498,16 @@ function emitValidator(_this__u8e3s4) {
486
498
  return tmp;
487
499
  }
488
500
  initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
489
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonEndpointDefinitionEmitter, PythonChannelDefinitionEmitter, PythonTypeDefinitionEmitter, PythonUnionDefinitionEmitter, PythonEnumDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonIdentifierEmitter]);
501
+ function emit_14(union) {
502
+ return trimMargin('\n |class ' + this.uu(union.os_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
503
+ }
504
+ initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
505
+ function emit_15(enum_0, module_0) {
506
+ var tmp = this.v20(enum_0.ev_1);
507
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.fv_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.ov(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.ov(2) + 'return self.value\n ');
508
+ }
509
+ initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
510
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonIdentifierEmitter, PythonEndpointDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonTypeDefinitionEmitter, PythonChannelDefinitionEmitter, PythonUnionDefinitionEmitter, PythonEnumDefinitionEmitter]);
490
511
  initMetadataForCompanion(Companion);
491
512
  initMetadataForCompanion(Companion_0);
492
513
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -496,23 +517,23 @@ initMetadataForObject(PythonShared, 'PythonShared');
496
517
  function PythonChannelDefinitionEmitter() {
497
518
  }
498
519
  function sam$kotlin_Comparator$0(function_0) {
499
- this.y1w_1 = function_0;
520
+ this.q21_1 = function_0;
500
521
  }
501
- protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
502
- return this.y1w_1(a, b);
522
+ protoOf(sam$kotlin_Comparator$0).sd = function (a, b) {
523
+ return this.q21_1(a, b);
503
524
  };
504
525
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
505
- return this.qd(a, b);
526
+ return this.sd(a, b);
506
527
  };
507
- protoOf(sam$kotlin_Comparator$0).l3 = function () {
508
- return this.y1w_1;
528
+ protoOf(sam$kotlin_Comparator$0).m3 = function () {
529
+ return this.q21_1;
509
530
  };
510
531
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
511
532
  var tmp;
512
533
  if (!(other == null) ? isInterface(other, Comparator) : false) {
513
534
  var tmp_0;
514
535
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
515
- tmp_0 = equals(this.l3(), other.l3());
536
+ tmp_0 = equals(this.m3(), other.m3());
516
537
  } else {
517
538
  tmp_0 = false;
518
539
  }
@@ -523,40 +544,40 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
523
544
  return tmp;
524
545
  };
525
546
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
526
- return hashCode(this.l3());
547
+ return hashCode(this.m3());
527
548
  };
528
549
  function PythonEmitter$emit$lambda(this$0) {
529
550
  return function (a, b) {
530
551
  // Inline function 'kotlin.comparisons.compareValuesBy' call
531
- var tmp = this$0.f1x(a);
532
- var tmp$ret$1 = this$0.f1x(b);
552
+ var tmp = this$0.x21(a);
553
+ var tmp$ret$1 = this$0.x21(b);
533
554
  return compareValues(tmp, tmp$ret$1);
534
555
  };
535
556
  }
536
557
  function emit$emitInit(this$0, def) {
537
- return 'from .' + this$0.wq(def.vq()) + ' import ' + this$0.wq(def.vq());
558
+ return 'from .' + this$0.uu(def.tu()) + ' import ' + this$0.uu(def.tu());
538
559
  }
539
560
  function PythonEmitter(packageName, emitShared) {
540
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
541
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
561
+ packageName = packageName === VOID ? Companion_instance.jv('community.flock.wirespec.generated') : packageName;
562
+ emitShared = emitShared === VOID ? Companion_instance_0.es() : emitShared;
542
563
  LanguageEmitter.call(this);
543
- this.z1w_1 = packageName;
544
- this.a1x_1 = emitShared;
545
- this.b1x_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
546
- this.c1x_1 = FileExtension_Python_getInstance();
547
- this.d1x_1 = PythonShared_instance;
548
- this.e1x_1 = '#';
549
- }
550
- protoOf(PythonEmitter).eq = function () {
551
- return this.c1x_1;
564
+ this.r21_1 = packageName;
565
+ this.s21_1 = emitShared;
566
+ this.t21_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
567
+ this.u21_1 = FileExtension_Python_getInstance();
568
+ this.v21_1 = PythonShared_instance;
569
+ this.w21_1 = '#';
570
+ }
571
+ protoOf(PythonEmitter).cu = function () {
572
+ return this.u21_1;
552
573
  };
553
- protoOf(PythonEmitter).m1v = function () {
554
- return this.d1x_1;
574
+ protoOf(PythonEmitter).e20 = function () {
575
+ return this.v21_1;
555
576
  };
556
- protoOf(PythonEmitter).fq = function () {
557
- return this.e1x_1;
577
+ protoOf(PythonEmitter).du = function () {
578
+ return this.w21_1;
558
579
  };
559
- protoOf(PythonEmitter).f1x = function (definition) {
580
+ protoOf(PythonEmitter).x21 = function (definition) {
560
581
  var tmp;
561
582
  if (definition instanceof Enum) {
562
583
  tmp = 1;
@@ -585,21 +606,21 @@ protoOf(PythonEmitter).f1x = function (definition) {
585
606
  }
586
607
  return tmp;
587
608
  };
588
- protoOf(PythonEmitter).tq = function (module_0, logger) {
609
+ protoOf(PythonEmitter).ru = function (module_0, logger) {
589
610
  // Inline function 'kotlin.collections.sortedBy' call
590
- var this_0 = new NonEmptyList(module_0.dq_1);
611
+ var this_0 = new NonEmptyList(module_0.bu_1);
591
612
  // Inline function 'kotlin.comparisons.compareBy' call
592
613
  var tmp = PythonEmitter$emit$lambda(this);
593
614
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
594
615
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
595
616
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
596
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
617
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).wp_1;
597
618
  // Inline function 'kotlin.let' call
598
- var it = protoOf(LanguageEmitter).tq.call(this, module_0.vu(VOID, statements), logger);
599
- var init = new Emitted(this.z1w_1.or() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
600
- var tmp_1 = this.z1w_1.or() + 'endpoint/' + '__init__';
619
+ var it = protoOf(LanguageEmitter).ru.call(this, module_0.ty(VOID, statements), logger);
620
+ var init = new Emitted(this.r21_1.mv() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
621
+ var tmp_1 = this.r21_1.mv() + 'endpoint/' + '__init__';
601
622
  // Inline function 'kotlin.collections.filter' call
602
- var tmp0 = new NonEmptyList(module_0.dq_1);
623
+ var tmp0 = new NonEmptyList(module_0.bu_1);
603
624
  // Inline function 'kotlin.collections.filterTo' call
604
625
  var destination = ArrayList_init_$Create$();
605
626
  var _iterator__ex2g4s = tmp0.t();
@@ -619,9 +640,9 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
619
640
  destination_0.x(tmp$ret$5);
620
641
  }
621
642
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
622
- var tmp_2 = this.z1w_1.or() + 'model/' + '__init__';
643
+ var tmp_2 = this.r21_1.mv() + 'model/' + '__init__';
623
644
  // Inline function 'kotlin.collections.filter' call
624
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
645
+ var tmp0_0 = new NonEmptyList(module_0.bu_1);
625
646
  // Inline function 'kotlin.collections.filterTo' call
626
647
  var destination_1 = ArrayList_init_$Create$();
627
648
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -641,33 +662,33 @@ protoOf(PythonEmitter).tq = function (module_0, logger) {
641
662
  destination_2.x(tmp$ret$11);
642
663
  }
643
664
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
644
- var shared = new Emitted(this.z1w_1.or() + 'wirespec', this.m1v().h1x_1);
645
- return this.a1x_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
665
+ var shared = new Emitted(this.r21_1.mv() + 'wirespec', this.e20().z21_1);
666
+ return this.s21_1.fs_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
646
667
  };
647
- protoOf(PythonEmitter).uq = function (definition, module_0, logger) {
648
- var subPackageName = plus_1(this.z1w_1, definition);
668
+ protoOf(PythonEmitter).su = function (definition, module_0, logger) {
669
+ var subPackageName = plus_1(this.r21_1, definition);
649
670
  // Inline function 'kotlin.let' call
650
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
651
- var tmp = subPackageName.or() + it.io_1;
671
+ var it = protoOf(LanguageEmitter).su.call(this, definition, module_0, logger);
672
+ var tmp = subPackageName.mv() + it.gs_1;
652
673
  // Inline function 'kotlin.text.trimStart' call
653
- var this_0 = trimMargin('\n |' + this.b1x_1 + '\n |' + it.jo_1 + '\n ');
674
+ var this_0 = trimMargin('\n |' + this.t21_1 + '\n |' + it.hs_1 + '\n ');
654
675
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
655
676
  return new Emitted(tmp, tmp$ret$0);
656
677
  };
657
678
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
658
- var tmp = $this.wq(endpoint.ep_1);
679
+ var tmp = $this.uu(endpoint.ct_1);
659
680
  var tmp_0 = Spacer_instance.toString();
660
681
  var tmp_1 = Spacer_instance.toString();
661
682
  var tmp_2 = Spacer_instance.toString();
662
- var tmp_3 = joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
683
+ var tmp_3 = joinToString(endpoint.et_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
663
684
  var tmp_4 = Spacer_instance.toString();
664
685
  var tmp_5 = Spacer_instance.toString();
665
686
  var tmp_6 = Spacer_instance.toString();
666
687
  var tmp_7 = Spacer_instance.toString();
667
688
  var tmp_8;
668
689
  // Inline function 'kotlin.collections.isNotEmpty' call
669
- if (!endpoint.hp_1.r()) {
670
- tmp_8 = prependIndent(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.qr(3));
690
+ if (!endpoint.ft_1.r()) {
691
+ tmp_8 = prependIndent(joinToString(endpoint.ft_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.ov(3));
671
692
  } else {
672
693
  tmp_8 = '';
673
694
  }
@@ -678,8 +699,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
678
699
  var tmp_13 = Spacer_instance.toString();
679
700
  var tmp_14;
680
701
  // Inline function 'kotlin.collections.isNotEmpty' call
681
- if (!endpoint.ip_1.r()) {
682
- tmp_14 = prependIndent(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.qr(3));
702
+ if (!endpoint.gt_1.r()) {
703
+ tmp_14 = prependIndent(joinToString(endpoint.gt_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.ov(3));
683
704
  } else {
684
705
  tmp_14 = '';
685
706
  }
@@ -688,48 +709,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
688
709
  var tmp_17 = Spacer_instance.toString();
689
710
  var tmp_18 = Spacer_instance.toString();
690
711
  var tmp_19 = Spacer_instance.toString();
691
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
692
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
693
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.k1x(tmp1_safe_receiver);
712
+ var tmp0_safe_receiver = _this__u8e3s4.lt_1;
713
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nt_1;
714
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.c22(tmp1_safe_receiver);
694
715
  return trimMargin("\n |@staticmethod\n |def to_raw_request(serialization: Wirespec.Serializer, request: '" + tmp + ".Request') -> Wirespec.RawRequest:\n |" + tmp_0 + 'return Wirespec.RawRequest(\n |' + tmp_1 + tmp_2 + 'path = [' + tmp_3 + '],\n |' + tmp_4 + tmp_5 + 'method = request.method.value,\n |' + tmp_6 + tmp_7 + 'queries = {\n |' + tmp_9 + '\n |' + tmp_10 + tmp_11 + '},\n |' + tmp_12 + tmp_13 + 'headers = {\n |' + tmp_15 + '\n |' + tmp_16 + tmp_17 + '},\n |' + tmp_18 + tmp_19 + 'body = serialization.serialize(request.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),\n |' + Spacer_instance.toString() + ')\n |\n ');
695
716
  }
696
717
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
697
- return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.wq(endpoint.ep_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
718
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.uu(endpoint.ct_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.uu(endpoint.ct_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
698
719
  }
699
720
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
700
721
  var tmp = get_indexedPathParams(endpoint);
701
722
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
702
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
703
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
704
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
723
+ var tmp_1 = orNull(joinToString(endpoint.ft_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
724
+ var tmp_2 = orNull(joinToString(endpoint.gt_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
725
+ var tmp0_safe_receiver = _this__u8e3s4.lt_1;
705
726
  var tmp_3;
706
727
  if (tmp0_safe_receiver == null) {
707
728
  tmp_3 = null;
708
729
  } else {
709
730
  // Inline function 'kotlin.let' call
710
- tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserialize(request.body, ' + $this.k1x(tmp0_safe_receiver.pp_1) + '),';
731
+ tmp_3 = Spacer_instance.ov(3) + 'body = serialization.deserialize(request.body, ' + $this.c22(tmp0_safe_receiver.nt_1) + '),';
711
732
  }
712
733
  // Inline function 'kotlin.let' call
713
734
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
714
735
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
715
736
  }
716
737
  function emitResponseUnion($this, _this__u8e3s4) {
717
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.kp_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
738
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.it_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
718
739
  }
719
740
  function emitHandleClass($this, _this__u8e3s4) {
720
- return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ep_1.l1() + "(self, req: '" + $this.wq(_this__u8e3s4.ep_1) + ".Request') -> '" + $this.wq(_this__u8e3s4.ep_1) + ".Response': pass\n |\n ");
741
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ct_1.m1() + "(self, req: '" + $this.uu(_this__u8e3s4.ct_1) + ".Request') -> '" + $this.uu(_this__u8e3s4.ct_1) + ".Response': pass\n |\n ");
721
742
  }
722
743
  function emitConvertClass($this, _this__u8e3s4) {
723
- return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
744
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.ht_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.ht_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
724
745
  }
725
746
  function emit_16($this, _this__u8e3s4) {
726
- return $this.wq(_this__u8e3s4.jq_1) + ': ' + $this.xp(_this__u8e3s4.kq_1);
747
+ return $this.uu(_this__u8e3s4.hu_1) + ': ' + $this.vt(_this__u8e3s4.iu_1);
727
748
  }
728
749
  function emitAssignSelf($this, _this__u8e3s4) {
729
- return $this.wq(_this__u8e3s4.jq_1) + ' = ' + $this.wq(_this__u8e3s4.jq_1);
750
+ return $this.uu(_this__u8e3s4.hu_1) + ' = ' + $this.uu(_this__u8e3s4.hu_1);
730
751
  }
731
752
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
732
- var tmp = $this.wq(endpoint.ep_1);
753
+ var tmp = $this.uu(endpoint.ct_1);
733
754
  // Inline function 'kotlin.collections.filter' call
734
755
  var tmp0 = paramList(_this__u8e3s4, endpoint);
735
756
  // Inline function 'kotlin.collections.filterTo' call
@@ -737,13 +758,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
737
758
  var _iterator__ex2g4s = tmp0.t();
738
759
  while (_iterator__ex2g4s.u()) {
739
760
  var element = _iterator__ex2g4s.v();
740
- if (element.iq_1.equals(ParamType_PATH_getInstance())) {
761
+ if (element.gu_1.equals(ParamType_PATH_getInstance())) {
741
762
  destination.x(element);
742
763
  }
743
764
  }
744
765
  var tmp_0 = destination;
745
766
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
746
- var tmp_2 = $this.wq(endpoint.ep_1);
767
+ var tmp_2 = $this.uu(endpoint.ct_1);
747
768
  // Inline function 'kotlin.collections.filter' call
748
769
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
749
770
  // Inline function 'kotlin.collections.filterTo' call
@@ -751,13 +772,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
751
772
  var _iterator__ex2g4s_0 = tmp0_0.t();
752
773
  while (_iterator__ex2g4s_0.u()) {
753
774
  var element_0 = _iterator__ex2g4s_0.v();
754
- if (element_0.iq_1.equals(ParamType_QUERY_getInstance())) {
775
+ if (element_0.gu_1.equals(ParamType_QUERY_getInstance())) {
755
776
  destination_0.x(element_0);
756
777
  }
757
778
  }
758
779
  var tmp_3 = destination_0;
759
780
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
760
- var tmp_5 = $this.wq(endpoint.ep_1);
781
+ var tmp_5 = $this.uu(endpoint.ct_1);
761
782
  // Inline function 'kotlin.collections.filter' call
762
783
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
763
784
  // Inline function 'kotlin.collections.filterTo' call
@@ -765,14 +786,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
765
786
  var _iterator__ex2g4s_1 = tmp0_1.t();
766
787
  while (_iterator__ex2g4s_1.u()) {
767
788
  var element_1 = _iterator__ex2g4s_1.v();
768
- if (element_1.iq_1.equals(ParamType_HEADER_getInstance())) {
789
+ if (element_1.gu_1.equals(ParamType_HEADER_getInstance())) {
769
790
  destination_1.x(element_1);
770
791
  }
771
792
  }
772
793
  var tmp_6 = destination_1;
773
794
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
774
795
  var tmp_8;
775
- if (_this__u8e3s4.np_1 == null) {
796
+ if (_this__u8e3s4.lt_1 == null) {
776
797
  tmp_8 = null;
777
798
  } else {
778
799
  // Inline function 'kotlin.let' call
@@ -782,7 +803,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
782
803
  return trimMargin('\n |self._path = ' + tmp + '.Request.Path(' + tmp_1 + ')\n |self._queries =' + tmp_2 + '.Request.Queries(' + tmp_4 + ')\n |self._headers = ' + tmp_5 + '.Request.Headers(' + tmp_7 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
783
804
  }
784
805
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
785
- var tmp = $this.wq(endpoint.ep_1);
806
+ var tmp = $this.uu(endpoint.ct_1);
786
807
  // Inline function 'kotlin.collections.filter' call
787
808
  var tmp0 = paramList_0(_this__u8e3s4);
788
809
  // Inline function 'kotlin.collections.filterTo' call
@@ -790,35 +811,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
790
811
  var _iterator__ex2g4s = tmp0.t();
791
812
  while (_iterator__ex2g4s.u()) {
792
813
  var element = _iterator__ex2g4s.v();
793
- if (element.iq_1.equals(ParamType_HEADER_getInstance())) {
814
+ if (element.gu_1.equals(ParamType_HEADER_getInstance())) {
794
815
  destination.x(element);
795
816
  }
796
817
  }
797
818
  var tmp_0 = destination;
798
819
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
799
820
  var tmp_2;
800
- if (_this__u8e3s4.sp_1 == null) {
821
+ if (_this__u8e3s4.qt_1 == null) {
801
822
  tmp_2 = null;
802
823
  } else {
803
824
  // Inline function 'kotlin.let' call
804
825
  tmp_2 = 'body';
805
826
  }
806
827
  var tmp1_elvis_lhs = tmp_2;
807
- return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.qp_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
828
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.ot_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
808
829
  }
809
830
  function emitDeserialized($this, _this__u8e3s4) {
810
- return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.le_1 + '], ' + $this.k1x(_this__u8e3s4.me_1.mp_1) + ')';
831
+ return Spacer_instance.ov(3) + $this.uu(_this__u8e3s4.jf_1.jt_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.if_1 + '], ' + $this.c22(_this__u8e3s4.jf_1.kt_1) + ')';
811
832
  }
812
833
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
813
834
  var tmp;
814
835
  if (caseSensitive) {
815
- tmp = Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ap_1.l1() + '"), ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
836
+ tmp = Spacer_instance.ov(spaces) + $this.uu(_this__u8e3s4.ys_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ys_1.m1() + '"), ' + $this.c22(_this__u8e3s4.zs_1) + ')';
816
837
  } else {
817
- var tmp_0 = Spacer_instance.qr(spaces);
818
- var tmp_1 = $this.wq(_this__u8e3s4.ap_1);
838
+ var tmp_0 = Spacer_instance.ov(spaces);
839
+ var tmp_1 = $this.uu(_this__u8e3s4.ys_1);
819
840
  // Inline function 'kotlin.text.lowercase' call
820
841
  // Inline function 'kotlin.js.asDynamic' call
821
- tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ap_1.l1().toLowerCase() + '"), None), ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
842
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ys_1.m1().toLowerCase() + '"), None), ' + $this.c22(_this__u8e3s4.zs_1) + ')';
822
843
  }
823
844
  return tmp;
824
845
  }
@@ -828,73 +849,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
828
849
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
829
850
  }
830
851
  function emitToRawResponse($this, _this__u8e3s4) {
831
- var tmp = $this.wq(_this__u8e3s4.ep_1);
852
+ var tmp = $this.uu(_this__u8e3s4.ct_1);
832
853
  var tmp_0 = Spacer_instance.toString();
833
- var tmp_1 = distinctByStatus(_this__u8e3s4.kp_1);
854
+ var tmp_1 = distinctByStatus(_this__u8e3s4.it_1);
834
855
  return trimMargin("\n |@staticmethod\n |def to_raw_response(serialization: Wirespec.Serializer, response: '" + tmp + ".Response') -> Wirespec.RawResponse:\n |" + tmp_0 + 'match response:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.toString() + Spacer_instance.toString() + 'case _:\n |' + Spacer_instance.toString() + Spacer_instance.toString() + Spacer_instance.toString() + 'raise Exception("Cannot match response with status: " + str(response.status))\n ');
835
856
  }
836
857
  function emitFromRawResponse($this, _this__u8e3s4) {
837
- var tmp = $this.wq(_this__u8e3s4.ep_1);
858
+ var tmp = $this.uu(_this__u8e3s4.ct_1);
838
859
  var tmp_0 = Spacer_instance.toString();
839
860
  // Inline function 'kotlin.collections.filter' call
840
- var tmp0 = distinctByStatus(_this__u8e3s4.kp_1);
861
+ var tmp0 = distinctByStatus(_this__u8e3s4.it_1);
841
862
  // Inline function 'kotlin.collections.filterTo' call
842
863
  var destination = ArrayList_init_$Create$();
843
864
  var _iterator__ex2g4s = tmp0.t();
844
865
  while (_iterator__ex2g4s.u()) {
845
866
  var element = _iterator__ex2g4s.v();
846
- if (Companion_instance_1.rq(element.qp_1)) {
867
+ if (Companion_instance_1.pu(element.ot_1)) {
847
868
  destination.x(element);
848
869
  }
849
870
  }
850
871
  var tmp_1 = destination;
851
- return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.qr(2) + 'case _:\n |' + Spacer_instance.qr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
872
+ return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.ov(2) + 'case _:\n |' + Spacer_instance.ov(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
852
873
  }
853
874
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
854
- var tmp = 'case ' + _this__u8e3s4.qp_1 + ':';
855
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Response' + _this__u8e3s4.qp_1 + '(';
856
- var tmp_1 = Spacer_instance.qr(2);
857
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
858
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
859
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.k1x(tmp1_safe_receiver);
875
+ var tmp = 'case ' + _this__u8e3s4.ot_1 + ':';
876
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.uu(endpoint.ct_1) + '.Response' + _this__u8e3s4.ot_1 + '(';
877
+ var tmp_1 = Spacer_instance.ov(2);
878
+ var tmp0_safe_receiver = _this__u8e3s4.qt_1;
879
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.nt_1;
880
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.c22(tmp1_safe_receiver);
860
881
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
861
- return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
882
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.pt_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
862
883
  }
863
884
  function emitSerialized($this, _this__u8e3s4, endpoint) {
864
- var tmp = $this.wq(endpoint.ep_1);
865
- var tmp_0 = Spacer_instance.qr(1);
866
- var tmp_1 = Spacer_instance.qr(2);
867
- var tmp_2 = Spacer_instance.qr(2);
885
+ var tmp = $this.uu(endpoint.ct_1);
886
+ var tmp_0 = Spacer_instance.ov(1);
887
+ var tmp_1 = Spacer_instance.ov(2);
888
+ var tmp_2 = Spacer_instance.ov(2);
868
889
  var tmp_3;
869
890
  // Inline function 'kotlin.collections.isNotEmpty' call
870
- if (!_this__u8e3s4.rp_1.r()) {
871
- tmp_3 = joinToString(_this__u8e3s4.rp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
891
+ if (!_this__u8e3s4.pt_1.r()) {
892
+ tmp_3 = joinToString(_this__u8e3s4.pt_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
872
893
  } else {
873
894
  tmp_3 = '{}';
874
895
  }
875
896
  var tmp_4 = tmp_3;
876
- var tmp_5 = Spacer_instance.qr(2);
877
- var tmp0_safe_receiver = _this__u8e3s4.sp_1;
897
+ var tmp_5 = Spacer_instance.ov(2);
898
+ var tmp0_safe_receiver = _this__u8e3s4.qt_1;
878
899
  var tmp_6;
879
900
  if (tmp0_safe_receiver == null) {
880
901
  tmp_6 = null;
881
902
  } else {
882
903
  // Inline function 'kotlin.let' call
883
- tmp_6 = 'serialization.serialize(response.body, ' + $this.k1x(tmp0_safe_receiver.pp_1) + ')';
904
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.c22(tmp0_safe_receiver.nt_1) + ')';
884
905
  }
885
906
  var tmp1_elvis_lhs = tmp_6;
886
- return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.qp_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.qr(1) + ')\n ');
907
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.ot_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.ov(1) + ')\n ');
887
908
  }
888
909
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
889
- return '"' + _this__u8e3s4.ap_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + ', ' + $this.k1x(_this__u8e3s4.bp_1) + ')';
910
+ return '"' + _this__u8e3s4.ys_1.m1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.uu(_this__u8e3s4.ys_1) + ', ' + $this.c22(_this__u8e3s4.zs_1) + ')';
890
911
  }
891
912
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
892
913
  var tmp;
893
914
  if (_this__u8e3s4.r()) {
894
- tmp = trimMargin('\n |' + Spacer_instance.qr(spaces) + '@dataclass\n |' + Spacer_instance.qr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
915
+ tmp = trimMargin('\n |' + Spacer_instance.ov(spaces) + '@dataclass\n |' + Spacer_instance.ov(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
895
916
  } else {
896
- var tmp_0 = Spacer_instance.qr(spaces);
897
- var tmp_1 = Spacer_instance.qr(spaces);
917
+ var tmp_0 = Spacer_instance.ov(spaces);
918
+ var tmp_1 = Spacer_instance.ov(spaces);
898
919
  tmp = trimMargin('\n |' + tmp_0 + '@dataclass\n |' + tmp_1 + 'class ' + name + ' (' + extends_0 + '):\n |' + joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + '\n ');
899
920
  }
900
921
  return tmp;
@@ -904,21 +925,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
904
925
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
905
926
  }
906
927
  function emit_17($this, _this__u8e3s4) {
907
- return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
928
+ return $this.uu(_this__u8e3s4.jt_1) + ': ' + $this.vt(_this__u8e3s4.kt_1);
908
929
  }
909
930
  function emit_18($this, _this__u8e3s4) {
910
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
911
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
931
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.nt_1;
932
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.vt(tmp1_safe_receiver);
912
933
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
913
934
  }
914
935
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
915
936
  return function (it) {
916
- return this$0.l1x(it);
937
+ return this$0.d22(it);
917
938
  };
918
939
  }
919
940
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
920
941
  return function (it) {
921
- return this$0.j1x(it, $endpoint);
942
+ return this$0.b22(it, $endpoint);
922
943
  };
923
944
  }
924
945
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -928,12 +949,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
928
949
  }
929
950
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
930
951
  return function (it) {
931
- return this$0.wp(it);
952
+ return this$0.ut(it);
932
953
  };
933
954
  }
934
955
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
935
956
  return function (it) {
936
- return this$0.wp(it);
957
+ return this$0.ut(it);
937
958
  };
938
959
  }
939
960
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -945,10 +966,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
945
966
  return function (it) {
946
967
  var tmp;
947
968
  if (it instanceof Literal) {
948
- tmp = '"' + it.hq_1 + '"';
969
+ tmp = '"' + it.fu_1 + '"';
949
970
  } else {
950
971
  if (it instanceof Param) {
951
- tmp = 'str(request.path.' + this$0.wq(it.lp_1) + ')';
972
+ tmp = 'str(request.path.' + this$0.uu(it.jt_1) + ')';
952
973
  } else {
953
974
  noWhenBranchMatchedException();
954
975
  }
@@ -982,7 +1003,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
982
1003
  };
983
1004
  }
984
1005
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
985
- return 'Response' + it.qp_1;
1006
+ return 'Response' + it.ot_1;
986
1007
  }
987
1008
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
988
1009
  return function (it) {
@@ -1006,7 +1027,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1006
1027
  }
1007
1028
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1008
1029
  return function (it) {
1009
- return this$0.wp(it);
1030
+ return this$0.ut(it);
1010
1031
  };
1011
1032
  }
1012
1033
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1036,7 +1057,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1036
1057
  }
1037
1058
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1038
1059
  return function (it) {
1039
- return Spacer_instance.qr($spaces + 2 | 0) + $block(it);
1060
+ return Spacer_instance.ov($spaces + 2 | 0) + $block(it);
1040
1061
  };
1041
1062
  }
1042
1063
  function PythonEndpointDefinitionEmitter() {
@@ -1065,14 +1086,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1065
1086
  }
1066
1087
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1067
1088
  return function (it) {
1068
- return Spacer_instance.toString() + this$0.t1v(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1089
+ return Spacer_instance.toString() + this$0.l20(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1069
1090
  };
1070
1091
  }
1071
1092
  function PythonEnumDefinitionEmitter() {
1072
1093
  }
1073
1094
  function Companion() {
1074
1095
  Companion_instance_2 = this;
1075
- this.m1x_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1096
+ this.e22_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1076
1097
  }
1077
1098
  var Companion_instance_2;
1078
1099
  function Companion_getInstance_0() {
@@ -1083,15 +1104,15 @@ function Companion_getInstance_0() {
1083
1104
  function PythonIdentifierEmitter() {
1084
1105
  }
1085
1106
  function _get_sanitizationConfig__sns434($this) {
1086
- var tmp0 = $this.r1x_1;
1107
+ var tmp0 = $this.j22_1;
1087
1108
  var tmp = KProperty1;
1088
1109
  // Inline function 'kotlin.getValue' call
1089
1110
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
1090
- return tmp0.l1();
1111
+ return tmp0.m1();
1091
1112
  }
1092
1113
  function sanitize_0($this, _this__u8e3s4) {
1093
1114
  // Inline function 'kotlin.collections.mapIndexed' call
1094
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
1115
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
1095
1116
  // Inline function 'kotlin.collections.mapIndexedTo' call
1096
1117
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1097
1118
  var index = 0;
@@ -1100,7 +1121,7 @@ function sanitize_0($this, _this__u8e3s4) {
1100
1121
  var item = _iterator__ex2g4s.v();
1101
1122
  var _unary__edvuaz = index;
1102
1123
  index = _unary__edvuaz + 1 | 0;
1103
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
1124
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.mu(item) : item;
1104
1125
  destination.x(tmp$ret$0);
1105
1126
  }
1106
1127
  // Inline function 'kotlin.text.filter' call
@@ -1146,7 +1167,7 @@ function sanitize_0($this, _this__u8e3s4) {
1146
1167
  return tmp_2;
1147
1168
  }
1148
1169
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1149
- return Companion_getInstance_1().t1x_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1170
+ return Companion_getInstance_1().l22_1.v1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1150
1171
  }
1151
1172
  function sanitizeEnum_0($this, _this__u8e3s4) {
1152
1173
  // Inline function 'kotlin.let' call
@@ -1172,7 +1193,7 @@ function buildImports($this, wirespecPath) {
1172
1193
  }
1173
1194
  function Companion_0() {
1174
1195
  Companion_instance_3 = this;
1175
- this.t1x_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1196
+ this.l22_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1176
1197
  }
1177
1198
  var Companion_instance_3;
1178
1199
  function Companion_getInstance_1() {
@@ -1181,23 +1202,23 @@ function Companion_getInstance_1() {
1181
1202
  return Companion_instance_3;
1182
1203
  }
1183
1204
  function sam$kotlin_Comparator$0_0(function_0) {
1184
- this.u1x_1 = function_0;
1205
+ this.m22_1 = function_0;
1185
1206
  }
1186
- protoOf(sam$kotlin_Comparator$0_0).qd = function (a, b) {
1187
- return this.u1x_1(a, b);
1207
+ protoOf(sam$kotlin_Comparator$0_0).sd = function (a, b) {
1208
+ return this.m22_1(a, b);
1188
1209
  };
1189
1210
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1190
- return this.qd(a, b);
1211
+ return this.sd(a, b);
1191
1212
  };
1192
- protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1193
- return this.u1x_1;
1213
+ protoOf(sam$kotlin_Comparator$0_0).m3 = function () {
1214
+ return this.m22_1;
1194
1215
  };
1195
1216
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1196
1217
  var tmp;
1197
1218
  if (!(other == null) ? isInterface(other, Comparator) : false) {
1198
1219
  var tmp_0;
1199
1220
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1200
- tmp_0 = equals(this.l3(), other.l3());
1221
+ tmp_0 = equals(this.m3(), other.m3());
1201
1222
  } else {
1202
1223
  tmp_0 = false;
1203
1224
  }
@@ -1208,17 +1229,17 @@ protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1208
1229
  return tmp;
1209
1230
  };
1210
1231
  protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
1211
- return hashCode(this.l3());
1232
+ return hashCode(this.m3());
1212
1233
  };
1213
1234
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1214
1235
  return '_' + it;
1215
1236
  }
1216
1237
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1217
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : name.s1h();
1238
+ var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : name.p1m();
1218
1239
  return new Name(listOf_0(sanitized));
1219
1240
  }
1220
1241
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1221
- return new Name(listOf_0(name.s1l()));
1242
+ return new Name(listOf_0(name.v1p()));
1222
1243
  }
1223
1244
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1224
1245
  return it;
@@ -1227,20 +1248,20 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1227
1248
  return function (stmt, tr) {
1228
1249
  var tmp;
1229
1250
  if (stmt instanceof ConstructorStatement) {
1230
- var tmp_0 = tr.p1t(stmt.p1m_1);
1251
+ var tmp_0 = tr.d1y(stmt.x1q_1);
1231
1252
  // Inline function 'kotlin.collections.map' call
1232
- var this_0 = stmt.q1m_1;
1253
+ var this_0 = stmt.y1q_1;
1233
1254
  // Inline function 'kotlin.collections.mapTo' call
1234
1255
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1235
1256
  // Inline function 'kotlin.collections.iterator' call
1236
- var _iterator__ex2g4s = this_0.j1().t();
1257
+ var _iterator__ex2g4s = this_0.k1().t();
1237
1258
  while (_iterator__ex2g4s.u()) {
1238
1259
  var item = _iterator__ex2g4s.v();
1239
1260
  // Inline function 'kotlin.collections.component1' call
1240
- var k = item.k1();
1261
+ var k = item.l1();
1241
1262
  // Inline function 'kotlin.collections.component2' call
1242
- var v = item.l1();
1243
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.s1t(v));
1263
+ var v = item.m1();
1264
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.g1y(v));
1244
1265
  destination.x(tmp$ret$3);
1245
1266
  }
1246
1267
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1252,7 +1273,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1252
1273
  }
1253
1274
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1254
1275
  return function () {
1255
- var tmp = Companion_getInstance_1().t1x_1;
1276
+ var tmp = Companion_getInstance_1().l22_1;
1256
1277
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1257
1278
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1258
1279
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1272,7 +1293,40 @@ function PythonIrEmitter$emit$lambda(a, b) {
1272
1293
  return compareValues(tmp, tmp$ret$1);
1273
1294
  }
1274
1295
  function emit$emitInitImport(this$0, def) {
1275
- return import_0('.' + sanitize_0(this$0, def.vq()), sanitize_0(this$0, def.vq()));
1296
+ return import_0('.' + sanitize_0(this$0, def.tu()), sanitize_0(this$0, def.tu()));
1297
+ }
1298
+ function PythonIrEmitter$emitGenerator$lambda(it) {
1299
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
1300
+ }
1301
+ function PythonIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
1302
+ return function (it) {
1303
+ return it === $generatorOwnName;
1304
+ };
1305
+ }
1306
+ function PythonIrEmitter$emitGenerator$lambda_1(it) {
1307
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
1308
+ }
1309
+ function PythonIrEmitter$emitGenerator$lambda_2($generatorOwnName, $generatorRefs) {
1310
+ return function (expr, t) {
1311
+ var tmp;
1312
+ var tmp_0;
1313
+ var tmp_1;
1314
+ if (expr instanceof RawExpression) {
1315
+ tmp_1 = endsWith(expr.r1s_1, 'Generator');
1316
+ } else {
1317
+ tmp_1 = false;
1318
+ }
1319
+ if (tmp_1) {
1320
+ tmp_0 = !(expr.r1s_1 === $generatorOwnName);
1321
+ } else {
1322
+ tmp_0 = false;
1323
+ }
1324
+ if (tmp_0) {
1325
+ $generatorRefs.x(expr.r1s_1);
1326
+ tmp = Unit_instance;
1327
+ }
1328
+ return transformChildren_0(expr, t);
1329
+ };
1276
1330
  }
1277
1331
  function PythonIrEmitter$emit$lambda_0(this$0) {
1278
1332
  return function (it) {
@@ -1281,43 +1335,43 @@ function PythonIrEmitter$emit$lambda_0(this$0) {
1281
1335
  }
1282
1336
  function PythonIrEmitter(packageName, emitShared) {
1283
1337
  Companion_getInstance_1();
1284
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1285
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1286
- this.n1x_1 = packageName;
1287
- this.o1x_1 = emitShared;
1288
- this.p1x_1 = PythonGenerator_instance;
1289
- this.q1x_1 = FileExtension_Python_getInstance();
1338
+ packageName = packageName === VOID ? Companion_instance.jv('community.flock.wirespec.generated') : packageName;
1339
+ emitShared = emitShared === VOID ? Companion_instance_0.es() : emitShared;
1340
+ this.f22_1 = packageName;
1341
+ this.g22_1 = emitShared;
1342
+ this.h22_1 = PythonGenerator_instance;
1343
+ this.i22_1 = FileExtension_Python_getInstance();
1290
1344
  var tmp = this;
1291
- tmp.r1x_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1292
- this.s1x_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1345
+ tmp.j22_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1346
+ this.k22_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Callable, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\nV = TypeVar('V')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1293
1347
  }
1294
- protoOf(PythonIrEmitter).k1u = function () {
1295
- return this.p1x_1;
1348
+ protoOf(PythonIrEmitter).y1y = function () {
1349
+ return this.h22_1;
1296
1350
  };
1297
- protoOf(PythonIrEmitter).eq = function () {
1298
- return this.q1x_1;
1351
+ protoOf(PythonIrEmitter).cu = function () {
1352
+ return this.i22_1;
1299
1353
  };
1300
- protoOf(PythonIrEmitter).n1u = function () {
1301
- var source = convert(Companion_instance.lr('shared'));
1354
+ protoOf(PythonIrEmitter).b1z = function () {
1355
+ var source = replaceReflectInNonGenericStructFields(convert(Companion_instance.jv('shared')));
1302
1356
  var tmp;
1303
- if (this.o1x_1.ho_1) {
1304
- tmp = new File(Companion_getInstance().f1h(this.n1x_1.or() + 'wirespec'), listOf_0(raw(this.s1x_1 + PythonGenerator_instance.l1u(source))));
1357
+ if (this.g22_1.fs_1) {
1358
+ tmp = new File(Companion_getInstance().u1k(this.f22_1.mv() + 'wirespec'), listOf_0(raw(this.k22_1 + PythonGenerator_instance.z1y(source))));
1305
1359
  } else {
1306
1360
  tmp = null;
1307
1361
  }
1308
1362
  return tmp;
1309
1363
  };
1310
- protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1364
+ protoOf(PythonIrEmitter).a1z = function (module_0, logger) {
1311
1365
  // Inline function 'kotlin.collections.sortedBy' call
1312
- var this_0 = new NonEmptyList(module_0.dq_1);
1366
+ var this_0 = new NonEmptyList(module_0.bu_1);
1313
1367
  // Inline function 'kotlin.comparisons.compareBy' call
1314
1368
  var tmp = PythonIrEmitter$emit$lambda;
1315
1369
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1316
1370
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1317
1371
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1318
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1319
- var emitted = emit.call(this, module_0.vu(VOID, statements), logger);
1320
- var tmp0 = new NonEmptyList(module_0.dq_1);
1372
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).wp_1;
1373
+ var emitted = emit.call(this, module_0.ty(VOID, statements), logger);
1374
+ var tmp0 = new NonEmptyList(module_0.bu_1);
1321
1375
  var tmp$ret$2;
1322
1376
  $l$block_0: {
1323
1377
  // Inline function 'kotlin.collections.any' call
@@ -1342,7 +1396,7 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1342
1396
  tmp$ret$2 = false;
1343
1397
  }
1344
1398
  var hasEndpoints = tmp$ret$2;
1345
- var tmp_2 = Companion_getInstance().f1h(this.n1x_1.or() + '__init__');
1399
+ var tmp_2 = Companion_getInstance().u1k(this.f22_1.mv() + '__init__');
1346
1400
  // Inline function 'kotlin.collections.buildList' call
1347
1401
  // Inline function 'kotlin.collections.buildListInternal' call
1348
1402
  // Inline function 'kotlin.apply' call
@@ -1353,11 +1407,11 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1353
1407
  this_1.x(import_0('.', 'client'));
1354
1408
  }
1355
1409
  this_1.x(import_0('.', 'wirespec'));
1356
- var tmp$ret$7 = this_1.o5();
1410
+ var tmp$ret$7 = this_1.p5();
1357
1411
  var init = new File(tmp_2, tmp$ret$7);
1358
- var tmp_3 = Companion_getInstance().f1h(this.n1x_1.or() + 'endpoint/' + '__init__');
1412
+ var tmp_3 = Companion_getInstance().u1k(this.f22_1.mv() + 'endpoint/' + '__init__');
1359
1413
  // Inline function 'kotlin.collections.filterIsInstance' call
1360
- var tmp0_0 = new NonEmptyList(module_0.dq_1);
1414
+ var tmp0_0 = new NonEmptyList(module_0.bu_1);
1361
1415
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1362
1416
  var destination = ArrayList_init_$Create$();
1363
1417
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1377,9 +1431,9 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1377
1431
  destination_0.x(tmp$ret$10);
1378
1432
  }
1379
1433
  var initEndpoint = new File(tmp_3, destination_0);
1380
- var tmp_4 = Companion_getInstance().f1h(this.n1x_1.or() + 'model/' + '__init__');
1434
+ var tmp_4 = Companion_getInstance().u1k(this.f22_1.mv() + 'model/' + '__init__');
1381
1435
  // Inline function 'kotlin.collections.filterIsInstance' call
1382
- var tmp0_1 = new NonEmptyList(module_0.dq_1);
1436
+ var tmp0_1 = new NonEmptyList(module_0.bu_1);
1383
1437
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1384
1438
  var destination_1 = ArrayList_init_$Create$();
1385
1439
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1399,8 +1453,8 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1399
1453
  destination_2.x(tmp$ret$15);
1400
1454
  }
1401
1455
  var initModel = new File(tmp_4, destination_2);
1402
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().f1h(this.n1x_1.or() + 'client/' + '__init__'), emptyList())) : emptyList();
1403
- var tmp0_2 = dropLast(split(this.n1x_1.mr_1, ['.']), 1);
1456
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().u1k(this.f22_1.mv() + 'client/' + '__init__'), emptyList())) : emptyList();
1457
+ var tmp0_2 = dropLast(split(this.f22_1.kv_1, ['.']), 1);
1404
1458
  var tmp$ret$18;
1405
1459
  $l$block_1: {
1406
1460
  // Inline function 'kotlin.collections.runningFold' call
@@ -1437,17 +1491,93 @@ protoOf(PythonIrEmitter).m1u = function (module_0, logger) {
1437
1491
  var _iterator__ex2g4s_5 = this_3.t();
1438
1492
  while (_iterator__ex2g4s_5.u()) {
1439
1493
  var item_1 = _iterator__ex2g4s_5.v();
1440
- var tmp$ret$23 = new File(Companion_getInstance().f1h(item_1 + '/__init__'), emptyList());
1494
+ var tmp$ret$23 = new File(Companion_getInstance().u1k(item_1 + '/__init__'), emptyList());
1441
1495
  destination_3.x(tmp$ret$23);
1442
1496
  }
1443
1497
  var parentInits = destination_3;
1444
- return this.o1x_1.ho_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1498
+ return this.g22_1.fs_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(emitted, init), initEndpoint), initModel), initClient), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(emitted, init), parentInits);
1445
1499
  };
1446
- protoOf(PythonIrEmitter).uq = function (definition, module_0, logger) {
1500
+ protoOf(PythonIrEmitter).su = function (definition, module_0, logger) {
1447
1501
  var file = emit_0.call(this, definition, module_0, logger);
1448
- return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.n1x_1, definition);
1502
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.f22_1, definition);
1503
+ };
1504
+ protoOf(PythonIrEmitter).f1z = function (definition, module_0) {
1505
+ var tmp;
1506
+ if (definition instanceof Type) {
1507
+ tmp = convertToGenerator_2(definition, module_0);
1508
+ } else {
1509
+ if (definition instanceof Enum) {
1510
+ tmp = convertToGenerator_1(definition);
1511
+ } else {
1512
+ if (definition instanceof Refined) {
1513
+ tmp = convertToGenerator_0(definition);
1514
+ } else {
1515
+ if (definition instanceof Union) {
1516
+ tmp = convertToGenerator(definition);
1517
+ } else {
1518
+ return null;
1519
+ }
1520
+ }
1521
+ }
1522
+ }
1523
+ var generatorFile = tmp;
1524
+ var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
1525
+ var generatorOwnName = definition.tu().m1() + 'Generator';
1526
+ var tmp_0 = asSequence(collectCustomTypeNames(sanitized));
1527
+ var tmp_1 = filterNot(tmp_0, PythonIrEmitter$emitGenerator$lambda);
1528
+ var tmp_2 = filterNot(tmp_1, PythonIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1529
+ var customNames = toList(distinct(map(tmp_2, PythonIrEmitter$emitGenerator$lambda_1)));
1530
+ // Inline function 'kotlin.collections.mutableSetOf' call
1531
+ var generatorRefs = LinkedHashSet_init_$Create$();
1532
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1533
+ var scope = new TransformScope(sanitized);
1534
+ scope.t1y(PythonIrEmitter$emitGenerator$lambda_2(generatorOwnName, generatorRefs));
1535
+ var tmp_3 = scope.l1y_1;
1536
+ isInterface(tmp_3, Element) || THROW_CCE();
1537
+ // Inline function 'kotlin.collections.filter' call
1538
+ // Inline function 'kotlin.collections.filterTo' call
1539
+ var destination = ArrayList_init_$Create$();
1540
+ var _iterator__ex2g4s = customNames.t();
1541
+ while (_iterator__ex2g4s.u()) {
1542
+ var element = _iterator__ex2g4s.v();
1543
+ if (endsWith(element, 'Generator')) {
1544
+ destination.x(element);
1545
+ }
1546
+ }
1547
+ // Inline function 'kotlin.collections.map' call
1548
+ var this_0 = distinct_0(plus(destination, generatorRefs));
1549
+ // Inline function 'kotlin.collections.mapTo' call
1550
+ var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1551
+ var _iterator__ex2g4s_0 = this_0.t();
1552
+ while (_iterator__ex2g4s_0.u()) {
1553
+ var item = _iterator__ex2g4s_0.v();
1554
+ var tmp$ret$6 = import_0('.' + item, item);
1555
+ destination_0.x(tmp$ret$6);
1556
+ }
1557
+ var generatorImports = destination_0;
1558
+ // Inline function 'kotlin.collections.filterNot' call
1559
+ // Inline function 'kotlin.collections.filterNotTo' call
1560
+ var destination_1 = ArrayList_init_$Create$();
1561
+ var _iterator__ex2g4s_1 = customNames.t();
1562
+ while (_iterator__ex2g4s_1.u()) {
1563
+ var element_0 = _iterator__ex2g4s_1.v();
1564
+ if (!endsWith(element_0, 'Generator')) {
1565
+ destination_1.x(element_0);
1566
+ }
1567
+ }
1568
+ // Inline function 'kotlin.collections.map' call
1569
+ // Inline function 'kotlin.collections.mapTo' call
1570
+ var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(destination_1, 10));
1571
+ var _iterator__ex2g4s_2 = destination_1.t();
1572
+ while (_iterator__ex2g4s_2.u()) {
1573
+ var item_0 = _iterator__ex2g4s_2.v();
1574
+ var tmp$ret$12 = import_0('..model.' + item_0, item_0);
1575
+ destination_2.x(tmp$ret$12);
1576
+ }
1577
+ var modelImports = destination_2;
1578
+ return placeInModule_0(prependImports(sanitized, plus(plus(buildImports(this, '..wirespec'), modelImports), generatorImports)), this.f22_1, 'generator');
1449
1579
  };
1450
- protoOf(PythonIrEmitter).up = function (type, module_0) {
1580
+ protoOf(PythonIrEmitter).st = function (type, module_0) {
1451
1581
  // Inline function 'kotlin.collections.distinctBy' call
1452
1582
  var this_0 = importReferences(type);
1453
1583
  var set = HashSet_init_$Create$();
@@ -1455,7 +1585,7 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1455
1585
  var _iterator__ex2g4s = this_0.t();
1456
1586
  while (_iterator__ex2g4s.u()) {
1457
1587
  var e = _iterator__ex2g4s.v();
1458
- var key = e.ku_1;
1588
+ var key = e.iy_1;
1459
1589
  if (set.x(key)) {
1460
1590
  list.x(e);
1461
1591
  }
@@ -1466,18 +1596,18 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1466
1596
  var _iterator__ex2g4s_0 = list.t();
1467
1597
  while (_iterator__ex2g4s_0.u()) {
1468
1598
  var item = _iterator__ex2g4s_0.v();
1469
- var tmp$ret$2 = import_0('.' + item.ku_1, item.ku_1);
1599
+ var tmp$ret$2 = import_0('.' + item.iy_1, item.iy_1);
1470
1600
  destination.x(tmp$ret$2);
1471
1601
  }
1472
1602
  var typeImports = destination;
1473
1603
  // Inline function 'kotlin.collections.map' call
1474
- var this_1 = type.wo_1.so_1;
1604
+ var this_1 = type.us_1.qs_1;
1475
1605
  // Inline function 'kotlin.collections.mapTo' call
1476
1606
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1477
1607
  var _iterator__ex2g4s_1 = this_1.t();
1478
1608
  while (_iterator__ex2g4s_1.u()) {
1479
1609
  var item_0 = _iterator__ex2g4s_1.v();
1480
- var tmp$ret$5 = item_0.ap_1.l1();
1610
+ var tmp$ret$5 = item_0.ys_1.m1();
1481
1611
  destination_0.x(tmp$ret$5);
1482
1612
  }
1483
1613
  var fieldNames = toSet(destination_0);
@@ -1493,17 +1623,17 @@ protoOf(PythonIrEmitter).up = function (type, module_0) {
1493
1623
  var tmp$ret$10 = tmp_0;
1494
1624
  return prependImports(tmp, tmp$ret$10);
1495
1625
  };
1496
- protoOf(PythonIrEmitter).ir = function (enum_0, module_0) {
1626
+ protoOf(PythonIrEmitter).gv = function (enum_0, module_0) {
1497
1627
  var tmp = convert_0(enum_0);
1498
1628
  return sanitizeNames(sanitizeEnumEntries(tmp, PythonIrEmitter$emit$lambda_0(this)), _get_sanitizationConfig__sns434(this));
1499
1629
  };
1500
- protoOf(PythonIrEmitter).yq = function (union) {
1630
+ protoOf(PythonIrEmitter).wu = function (union) {
1501
1631
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1502
1632
  };
1503
- protoOf(PythonIrEmitter).dr = function (refined) {
1633
+ protoOf(PythonIrEmitter).bv = function (refined) {
1504
1634
  return sanitizeNames(replaceRefinedFunctions(convert_2(refined), refined), _get_sanitizationConfig__sns434(this));
1505
1635
  };
1506
- protoOf(PythonIrEmitter).jr = function (endpoint) {
1636
+ protoOf(PythonIrEmitter).hv = function (endpoint) {
1507
1637
  // Inline function 'kotlin.collections.distinctBy' call
1508
1638
  var this_0 = importReferences(endpoint);
1509
1639
  var set = HashSet_init_$Create$();
@@ -1511,7 +1641,7 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1511
1641
  var _iterator__ex2g4s = this_0.t();
1512
1642
  while (_iterator__ex2g4s.u()) {
1513
1643
  var e = _iterator__ex2g4s.v();
1514
- var key = e.ku_1;
1644
+ var key = e.iy_1;
1515
1645
  if (set.x(key)) {
1516
1646
  list.x(e);
1517
1647
  }
@@ -1522,19 +1652,19 @@ protoOf(PythonIrEmitter).jr = function (endpoint) {
1522
1652
  var _iterator__ex2g4s_0 = list.t();
1523
1653
  while (_iterator__ex2g4s_0.u()) {
1524
1654
  var item = _iterator__ex2g4s_0.v();
1525
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1655
+ var tmp$ret$2 = import_0('..model.' + item.iy_1, item.iy_1);
1526
1656
  destination.x(tmp$ret$2);
1527
1657
  }
1528
1658
  var endpointImports = destination;
1529
1659
  // Inline function 'kotlin.let' call
1530
1660
  var it = splitEndpointStructsToModuleLevel(convert_3(endpoint));
1531
- var tmp$ret$6 = it.w1m(VOID, plus(endpointImports, it.t1m_1));
1661
+ var tmp$ret$6 = it.e1r(VOID, plus(endpointImports, it.b1r_1));
1532
1662
  return sanitizeNames(snakeCaseHandlerAndCallMethods(tmp$ret$6), _get_sanitizationConfig__sns434(this));
1533
1663
  };
1534
- protoOf(PythonIrEmitter).xq = function (channel) {
1664
+ protoOf(PythonIrEmitter).vu = function (channel) {
1535
1665
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1536
1666
  };
1537
- protoOf(PythonIrEmitter).p1u = function (endpoint) {
1667
+ protoOf(PythonIrEmitter).e1z = function (endpoint) {
1538
1668
  // Inline function 'kotlin.collections.distinctBy' call
1539
1669
  var this_0 = importReferences(endpoint);
1540
1670
  var set = HashSet_init_$Create$();
@@ -1542,7 +1672,7 @@ protoOf(PythonIrEmitter).p1u = function (endpoint) {
1542
1672
  var _iterator__ex2g4s = this_0.t();
1543
1673
  while (_iterator__ex2g4s.u()) {
1544
1674
  var e = _iterator__ex2g4s.v();
1545
- var key = e.ku_1;
1675
+ var key = e.iy_1;
1546
1676
  if (set.x(key)) {
1547
1677
  list.x(e);
1548
1678
  }
@@ -1553,17 +1683,17 @@ protoOf(PythonIrEmitter).p1u = function (endpoint) {
1553
1683
  var _iterator__ex2g4s_0 = list.t();
1554
1684
  while (_iterator__ex2g4s_0.u()) {
1555
1685
  var item = _iterator__ex2g4s_0.v();
1556
- var tmp$ret$2 = import_0('..model.' + item.ku_1, item.ku_1);
1686
+ var tmp$ret$2 = import_0('..model.' + item.iy_1, item.iy_1);
1557
1687
  destination.x(tmp$ret$2);
1558
1688
  }
1559
1689
  var modelImports = destination;
1560
- var endpointImport = import_0('..endpoint.' + endpoint.ep_1.l1(), '*');
1561
- var endpointName = endpoint.ep_1.l1();
1690
+ var endpointImport = import_0('..endpoint.' + endpoint.ct_1.m1(), '*');
1691
+ var endpointName = endpoint.ct_1.m1();
1562
1692
  var file = flattenEndpointTypeRefs(snakeCaseClientFunctions(addSelfReceiverToClientFields(sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
1563
- var subPackageName = plus_2(this.n1x_1, 'client');
1564
- return new File(Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.t1m_1));
1693
+ var subPackageName = plus_2(this.f22_1, 'client');
1694
+ return new File(Companion_getInstance().u1k(subPackageName.mv() + file.a1r_1.b1q()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.b1r_1));
1565
1695
  };
1566
- protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1696
+ protoOf(PythonIrEmitter).c1z = function (endpoints, logger) {
1567
1697
  // Inline function 'kotlin.collections.flatMap' call
1568
1698
  // Inline function 'kotlin.collections.flatMapTo' call
1569
1699
  var destination = ArrayList_init_$Create$();
@@ -1579,7 +1709,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1579
1709
  var _iterator__ex2g4s_0 = destination.t();
1580
1710
  while (_iterator__ex2g4s_0.u()) {
1581
1711
  var e = _iterator__ex2g4s_0.v();
1582
- var key = e.ku_1;
1712
+ var key = e.iy_1;
1583
1713
  if (set.x(key)) {
1584
1714
  list_0.x(e);
1585
1715
  }
@@ -1590,7 +1720,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1590
1720
  var _iterator__ex2g4s_1 = list_0.t();
1591
1721
  while (_iterator__ex2g4s_1.u()) {
1592
1722
  var item = _iterator__ex2g4s_1.v();
1593
- var tmp$ret$5 = import_0('.model.' + item.ku_1, item.ku_1);
1723
+ var tmp$ret$5 = import_0('.model.' + item.iy_1, item.iy_1);
1594
1724
  destination_0.x(tmp$ret$5);
1595
1725
  }
1596
1726
  var modelImports = destination_0;
@@ -1600,7 +1730,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1600
1730
  var _iterator__ex2g4s_2 = endpoints.t();
1601
1731
  while (_iterator__ex2g4s_2.u()) {
1602
1732
  var item_0 = _iterator__ex2g4s_2.v();
1603
- var tmp$ret$8 = import_0('.endpoint.' + item_0.ep_1.l1(), '*');
1733
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.ct_1.m1(), '*');
1604
1734
  destination_1.x(tmp$ret$8);
1605
1735
  }
1606
1736
  var endpointImports = destination_1;
@@ -1610,7 +1740,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1610
1740
  var _iterator__ex2g4s_3 = endpoints.t();
1611
1741
  while (_iterator__ex2g4s_3.u()) {
1612
1742
  var item_1 = _iterator__ex2g4s_3.v();
1613
- var tmp$ret$11 = import_0('.client.' + item_1.ep_1.l1() + 'Client', item_1.ep_1.l1() + 'Client');
1743
+ var tmp$ret$11 = import_0('.client.' + item_1.ct_1.m1() + 'Client', item_1.ct_1.m1() + 'Client');
1614
1744
  destination_2.x(tmp$ret$11);
1615
1745
  }
1616
1746
  var clientImports = destination_2;
@@ -1621,7 +1751,7 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1621
1751
  var _iterator__ex2g4s_4 = endpoints.t();
1622
1752
  while (_iterator__ex2g4s_4.u()) {
1623
1753
  var item_2 = _iterator__ex2g4s_4.v();
1624
- var tmp$ret$14 = item_2.ep_1.l1();
1754
+ var tmp$ret$14 = item_2.ct_1.m1();
1625
1755
  destination_3.x(tmp$ret$14);
1626
1756
  }
1627
1757
  var endpointNames = destination_3;
@@ -1635,22 +1765,38 @@ protoOf(PythonIrEmitter).o1u = function (endpoints, logger) {
1635
1765
  accumulator = flattenEndpointTypeRefs(acc, element_0);
1636
1766
  }
1637
1767
  var file = accumulator;
1638
- return new File(Companion_getInstance().f1h(this.n1x_1.or() + file.s1m_1.h1h()), plus(plus(buildImports(this, '.wirespec'), allImports), file.t1m_1));
1768
+ return new File(Companion_getInstance().u1k(this.f22_1.mv() + file.a1r_1.b1q()), plus(plus(buildImports(this, '.wirespec'), allImports), file.b1r_1));
1639
1769
  };
1770
+ function replaceReflectInNonGenericStructFields(_this__u8e3s4) {
1771
+ // Inline function 'community.flock.wirespec.ir.core.transform' call
1772
+ var scope = new TransformScope(_this__u8e3s4);
1773
+ // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1774
+ var tmp = scope;
1775
+ // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1776
+ var this_0 = scope.l1y_1;
1777
+ // Inline function 'community.flock.wirespec.ir.core.transformer' call
1778
+ // Inline function 'kotlin.apply' call
1779
+ var this_1 = new TransformerBuilder();
1780
+ this_1.d1m(replaceReflectInNonGenericStructFields$lambda);
1781
+ var tmp$ret$2 = this_1.e1m();
1782
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1783
+ var tmp_0 = scope.l1y_1;
1784
+ return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1785
+ }
1640
1786
  function replaceRefinedFunctions(_this__u8e3s4, refined) {
1641
1787
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1642
1788
  var scope = new TransformScope(_this__u8e3s4);
1643
1789
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1644
1790
  var tmp = scope;
1645
1791
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1646
- var this_0 = scope.x1t_1;
1792
+ var this_0 = scope.l1y_1;
1647
1793
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1648
1794
  // Inline function 'kotlin.apply' call
1649
1795
  var this_1 = new TransformerBuilder();
1650
- this_1.c1h(replaceRefinedFunctions$lambda(refined));
1651
- var tmp$ret$2 = this_1.d1h();
1652
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1653
- var tmp_0 = scope.x1t_1;
1796
+ this_1.d1m(replaceRefinedFunctions$lambda(refined));
1797
+ var tmp$ret$2 = this_1.e1m();
1798
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1799
+ var tmp_0 = scope.l1y_1;
1654
1800
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1655
1801
  }
1656
1802
  function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
@@ -1659,20 +1805,20 @@ function snakeCaseHandlerAndCallMethods(_this__u8e3s4) {
1659
1805
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1660
1806
  var tmp = scope;
1661
1807
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1662
- var this_0 = scope.x1t_1;
1808
+ var this_0 = scope.l1y_1;
1663
1809
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1664
1810
  // Inline function 'kotlin.apply' call
1665
1811
  var this_1 = new TransformerBuilder();
1666
- this_1.c1h(snakeCaseHandlerAndCallMethods$lambda);
1667
- var tmp$ret$2 = this_1.d1h();
1668
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1669
- var tmp_0 = scope.x1t_1;
1812
+ this_1.d1m(snakeCaseHandlerAndCallMethods$lambda);
1813
+ var tmp$ret$2 = this_1.e1m();
1814
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1815
+ var tmp_0 = scope.l1y_1;
1670
1816
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1671
1817
  }
1672
1818
  function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1673
1819
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1674
1820
  // Inline function 'kotlin.collections.filterIsInstance' call
1675
- var tmp0 = _this__u8e3s4.u1m();
1821
+ var tmp0 = _this__u8e3s4.c1r();
1676
1822
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1677
1823
  var destination = ArrayList_init_$Create$();
1678
1824
  var _iterator__ex2g4s = tmp0.t();
@@ -1686,7 +1832,7 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1686
1832
  var namespace = ensureNotNull(tmp$ret$2);
1687
1833
  var flattened = flattenNestedStructs(namespace);
1688
1834
  // Inline function 'kotlin.collections.partition' call
1689
- var this_0 = flattened.z1m_1;
1835
+ var this_0 = flattened.h1r_1;
1690
1836
  var first = ArrayList_init_$Create$();
1691
1837
  var second = ArrayList_init_$Create$();
1692
1838
  var _iterator__ex2g4s_0 = this_0.t();
@@ -1705,16 +1851,16 @@ function splitEndpointStructsToModuleLevel(_this__u8e3s4) {
1705
1851
  }
1706
1852
  }
1707
1853
  var _destruct__k2r9zo = new Pair(first, second);
1708
- var moduleElements = _destruct__k2r9zo.ne();
1709
- var classElements = _destruct__k2r9zo.oe();
1710
- var endpointClass = new Namespace(namespace.y1m_1, classElements, namespace.a1n_1);
1711
- return new File(namespace.y1m_1, plus_0(moduleElements, endpointClass));
1854
+ var moduleElements = _destruct__k2r9zo.kf();
1855
+ var classElements = _destruct__k2r9zo.lf();
1856
+ var endpointClass = new Namespace(namespace.g1r_1, classElements, namespace.i1r_1);
1857
+ return new File(namespace.g1r_1, plus_0(moduleElements, endpointClass));
1712
1858
  }
1713
1859
  function flattenEndpointTypeRefs(_this__u8e3s4, endpointName) {
1714
1860
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1715
1861
  var scope = new TransformScope(_this__u8e3s4);
1716
- scope.d1u(flattenEndpointTypeRefs$lambda(endpointName));
1717
- var tmp = scope.x1t_1;
1862
+ scope.r1y(flattenEndpointTypeRefs$lambda(endpointName));
1863
+ var tmp = scope.l1y_1;
1718
1864
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1719
1865
  }
1720
1866
  function snakeCaseClientFunctions(_this__u8e3s4) {
@@ -1723,15 +1869,15 @@ function snakeCaseClientFunctions(_this__u8e3s4) {
1723
1869
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1724
1870
  var tmp = scope;
1725
1871
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1726
- var this_0 = scope.x1t_1;
1872
+ var this_0 = scope.l1y_1;
1727
1873
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1728
1874
  // Inline function 'kotlin.apply' call
1729
1875
  var this_1 = new TransformerBuilder();
1730
- this_1.c1h(snakeCaseClientFunctions$lambda);
1731
- var tmp$ret$2 = this_1.d1h();
1732
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1733
- scope.g1u(snakeCaseClientFunctions$lambda_0);
1734
- var tmp_0 = scope.x1t_1;
1876
+ this_1.d1m(snakeCaseClientFunctions$lambda);
1877
+ var tmp$ret$2 = this_1.e1m();
1878
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1879
+ scope.u1y(snakeCaseClientFunctions$lambda_0);
1880
+ var tmp_0 = scope.l1y_1;
1735
1881
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1736
1882
  }
1737
1883
  function addSelfReceiverToClientFields(_this__u8e3s4) {
@@ -1742,7 +1888,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1742
1888
  } else {
1743
1889
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1744
1890
  // Inline function 'kotlin.collections.filterIsInstance' call
1745
- var tmp0 = tmp0_safe_receiver.u1m();
1891
+ var tmp0 = tmp0_safe_receiver.c1r();
1746
1892
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1747
1893
  var destination = ArrayList_init_$Create$();
1748
1894
  var _iterator__ex2g4s = tmp0.t();
@@ -1755,7 +1901,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1755
1901
  tmp = firstOrNull_0(destination);
1756
1902
  }
1757
1903
  var struct = tmp;
1758
- var tmp2_safe_receiver = struct == null ? null : struct.e1n_1;
1904
+ var tmp2_safe_receiver = struct == null ? null : struct.m1r_1;
1759
1905
  var tmp_0;
1760
1906
  if (tmp2_safe_receiver == null) {
1761
1907
  tmp_0 = null;
@@ -1766,7 +1912,7 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1766
1912
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1767
1913
  while (_iterator__ex2g4s_0.u()) {
1768
1914
  var item = _iterator__ex2g4s_0.v();
1769
- var tmp$ret$3 = item.z1p_1.s1h();
1915
+ var tmp$ret$3 = item.h1t_1.p1m();
1770
1916
  destination_0.x(tmp$ret$3);
1771
1917
  }
1772
1918
  tmp_0 = destination_0;
@@ -1778,23 +1924,73 @@ function addSelfReceiverToClientFields(_this__u8e3s4) {
1778
1924
  return _this__u8e3s4;
1779
1925
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1780
1926
  var scope = new TransformScope(_this__u8e3s4);
1781
- scope.g1u(addSelfReceiverToClientFields$lambda(fieldNames));
1782
- var tmp_1 = scope.x1t_1;
1927
+ scope.u1y(addSelfReceiverToClientFields$lambda(fieldNames));
1928
+ var tmp_1 = scope.l1y_1;
1783
1929
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1784
1930
  }
1931
+ function replaceReflectAsTypeAny(_this__u8e3s4) {
1932
+ var tmp;
1933
+ if (equals(_this__u8e3s4, Reflect_instance)) {
1934
+ tmp = new Custom_0('type', listOf_0(Any_instance));
1935
+ } else {
1936
+ if (_this__u8e3s4 instanceof Nullable) {
1937
+ tmp = _this__u8e3s4.m1q(replaceReflectAsTypeAny(_this__u8e3s4.l1m_1));
1938
+ } else {
1939
+ if (_this__u8e3s4 instanceof Array_0) {
1940
+ tmp = _this__u8e3s4.m1q(replaceReflectAsTypeAny(_this__u8e3s4.m1m_1));
1941
+ } else {
1942
+ if (_this__u8e3s4 instanceof Dict_0) {
1943
+ tmp = _this__u8e3s4.p1q(replaceReflectAsTypeAny(_this__u8e3s4.n1q_1), replaceReflectAsTypeAny(_this__u8e3s4.o1q_1));
1944
+ } else {
1945
+ tmp = _this__u8e3s4;
1946
+ }
1947
+ }
1948
+ }
1949
+ }
1950
+ return tmp;
1951
+ }
1952
+ function replaceReflectInNonGenericStructFields$lambda(element, transformer) {
1953
+ var tmp;
1954
+ if (element instanceof Struct) {
1955
+ var tmp$ret$1;
1956
+ $l$block: {
1957
+ // Inline function 'kotlin.collections.isNotEmpty' call
1958
+ if (!element.q1r_1.r()) {
1959
+ tmp$ret$1 = element;
1960
+ break $l$block;
1961
+ }
1962
+ // Inline function 'kotlin.collections.map' call
1963
+ var this_0 = element.m1r_1;
1964
+ // Inline function 'kotlin.collections.mapTo' call
1965
+ var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1966
+ var _iterator__ex2g4s = this_0.t();
1967
+ while (_iterator__ex2g4s.u()) {
1968
+ var item = _iterator__ex2g4s.v();
1969
+ var tmp$ret$2 = item.l1t(VOID, replaceReflectAsTypeAny(item.i1t_1));
1970
+ destination.x(tmp$ret$2);
1971
+ }
1972
+ tmp$ret$1 = element.s1r(VOID, destination);
1973
+ }
1974
+ tmp = tmp$ret$1;
1975
+ } else {
1976
+ tmp = element;
1977
+ }
1978
+ var transformed = tmp;
1979
+ return transformChildren_1(transformed, transformer);
1980
+ }
1785
1981
  function replaceRefinedFunctions$lambda$lambda($constraintExpr) {
1786
1982
  return function ($this$function) {
1787
- $this$function.l1i('self', Custom_init_$Create$(''));
1788
- $this$function.k1i(Boolean_instance_0);
1789
- $this$function.j1k($constraintExpr);
1983
+ $this$function.e1l('self', new Custom_0(''));
1984
+ $this$function.h1l(Boolean_instance_0);
1985
+ $this$function.i1l($constraintExpr);
1790
1986
  return Unit_instance;
1791
1987
  };
1792
1988
  }
1793
1989
  function replaceRefinedFunctions$lambda$lambda_0($toStringExpr) {
1794
1990
  return function ($this$function) {
1795
- $this$function.l1i('self', Custom_init_$Create$(''));
1796
- $this$function.k1i(String_instance);
1797
- $this$function.j1k(new RawExpression($toStringExpr));
1991
+ $this$function.e1l('self', new Custom_0(''));
1992
+ $this$function.h1l(String_instance);
1993
+ $this$function.i1l(new RawExpression($toStringExpr));
1798
1994
  return Unit_instance;
1799
1995
  };
1800
1996
  }
@@ -1803,7 +1999,7 @@ function replaceRefinedFunctions$lambda($refined) {
1803
1999
  var tmp;
1804
2000
  if (element instanceof Struct) {
1805
2001
  // Inline function 'kotlin.collections.mapNotNull' call
1806
- var tmp0 = element.h1n_1;
2002
+ var tmp0 = element.p1r_1;
1807
2003
  // Inline function 'kotlin.collections.mapNotNullTo' call
1808
2004
  var destination = ArrayList_init_$Create$();
1809
2005
  // Inline function 'kotlin.collections.forEach' call
@@ -1813,23 +2009,23 @@ function replaceRefinedFunctions$lambda($refined) {
1813
2009
  var tmp_0;
1814
2010
  var tmp_1;
1815
2011
  if (element_0 instanceof Function) {
1816
- tmp_1 = element_0.t1j_1.equals(Companion_getInstance().f1h('validate'));
2012
+ tmp_1 = element_0.j1o_1.equals(Companion_getInstance().u1k('validate'));
1817
2013
  } else {
1818
2014
  tmp_1 = false;
1819
2015
  }
1820
2016
  if (tmp_1) {
1821
- var constraintExpr = convertConstraint($refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().f1h('self')), Companion_getInstance().f1h('value')));
2017
+ var constraintExpr = convertConstraint($refined.av_1, new FieldCall(new VariableReference(Companion_getInstance().u1k('self')), Companion_getInstance().u1k('value')));
1822
2018
  tmp_0 = function_0('validate', VOID, VOID, replaceRefinedFunctions$lambda$lambda(constraintExpr));
1823
2019
  } else {
1824
2020
  var tmp_2;
1825
2021
  if (element_0 instanceof Function) {
1826
- tmp_2 = element_0.t1j_1.equals(Companion_getInstance().f1h('toString'));
2022
+ tmp_2 = element_0.j1o_1.equals(Companion_getInstance().u1k('toString'));
1827
2023
  } else {
1828
2024
  tmp_2 = false;
1829
2025
  }
1830
2026
  if (tmp_2) {
1831
2027
  var tmp_3;
1832
- if ($refined.cr_1.ou_1 instanceof String_0) {
2028
+ if ($refined.av_1.my_1 instanceof String_0) {
1833
2029
  tmp_3 = 'self.value';
1834
2030
  } else {
1835
2031
  tmp_3 = 'str(self.value)';
@@ -1848,12 +2044,12 @@ function replaceRefinedFunctions$lambda($refined) {
1848
2044
  destination.x(tmp0_safe_receiver);
1849
2045
  }
1850
2046
  }
1851
- tmp = element.j1n(VOID, VOID, VOID, VOID, destination);
2047
+ tmp = element.s1r(VOID, VOID, VOID, VOID, destination);
1852
2048
  } else {
1853
2049
  tmp = element;
1854
2050
  }
1855
2051
  var transformed = tmp;
1856
- return transformChildren_0(transformed, transformer);
2052
+ return transformChildren_1(transformed, transformer);
1857
2053
  };
1858
2054
  }
1859
2055
  function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
@@ -1861,30 +2057,30 @@ function snakeCaseHandlerAndCallMethods$lambda(element, transformer) {
1861
2057
  if (element instanceof Interface) {
1862
2058
  var tmp$ret$0;
1863
2059
  $l$block: {
1864
- if (!element.k1n_1.equals(Companion_getInstance().f1h('Handler')) && !element.k1n_1.equals(Companion_getInstance().f1h('Call'))) {
2060
+ if (!element.t1r_1.equals(Companion_getInstance().u1k('Handler')) && !element.t1r_1.equals(Companion_getInstance().u1k('Call'))) {
1865
2061
  tmp$ret$0 = element;
1866
2062
  break $l$block;
1867
2063
  }
1868
2064
  // Inline function 'kotlin.collections.map' call
1869
- var this_0 = element.l1n_1;
2065
+ var this_0 = element.u1r_1;
1870
2066
  // Inline function 'kotlin.collections.mapTo' call
1871
2067
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1872
2068
  var _iterator__ex2g4s = this_0.t();
1873
2069
  while (_iterator__ex2g4s.u()) {
1874
2070
  var item = _iterator__ex2g4s.v();
1875
2071
  var tmp0_safe_receiver = item instanceof Function ? item : null;
1876
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1k(Companion_getInstance().f1h(item.t1j_1.y1l()));
2072
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r1o(Companion_getInstance().u1k(item.j1o_1.c1q()));
1877
2073
  var tmp$ret$1 = tmp1_elvis_lhs == null ? item : tmp1_elvis_lhs;
1878
2074
  destination.x(tmp$ret$1);
1879
2075
  }
1880
- tmp$ret$0 = element.r1n(VOID, destination);
2076
+ tmp$ret$0 = element.a1s(VOID, destination);
1881
2077
  }
1882
2078
  tmp = tmp$ret$0;
1883
2079
  } else {
1884
2080
  tmp = element;
1885
2081
  }
1886
2082
  var transformed = tmp;
1887
- return transformChildren_0(transformed, transformer);
2083
+ return transformChildren_1(transformed, transformer);
1888
2084
  }
1889
2085
  function flattenEndpointTypeRefs$lambda($endpointName) {
1890
2086
  return function (type, _unused_var__etf5q3) {
@@ -1892,17 +2088,17 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1892
2088
  if (!(type instanceof Custom_0)) {
1893
2089
  tmp = type;
1894
2090
  } else {
1895
- if (!startsWith(type.q1h_1.h1h(), $endpointName + '.')) {
2091
+ if (!startsWith(type.n1m_1, $endpointName + '.')) {
1896
2092
  tmp = type;
1897
2093
  } else {
1898
- var suffix = removePrefix(type.q1h_1.h1h(), $endpointName + '.');
2094
+ var suffix = removePrefix(type.n1m_1, $endpointName + '.');
1899
2095
  switch (suffix) {
1900
2096
  case 'Call':
1901
2097
  case 'Handler':
1902
2098
  tmp = type;
1903
2099
  break;
1904
2100
  default:
1905
- tmp = type.n1m(Companion_getInstance().f1h(suffix));
2101
+ tmp = type.r1q(suffix);
1906
2102
  break;
1907
2103
  }
1908
2104
  }
@@ -1913,42 +2109,42 @@ function flattenEndpointTypeRefs$lambda($endpointName) {
1913
2109
  function snakeCaseClientFunctions$lambda(element, transformer) {
1914
2110
  var tmp;
1915
2111
  if (element instanceof Function) {
1916
- tmp = element.b1k(Companion_getInstance().f1h(element.t1j_1.y1l()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().f1h('self'), Custom_init_$Create$(''))), element.v1j_1));
2112
+ tmp = element.r1o(Companion_getInstance().u1k(element.j1o_1.c1q()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().u1k('self'), new Custom_0(''))), element.l1o_1));
1917
2113
  } else {
1918
2114
  tmp = element;
1919
2115
  }
1920
2116
  var transformed = tmp;
1921
- return transformChildren_0(transformed, transformer);
2117
+ return transformChildren_1(transformed, transformer);
1922
2118
  }
1923
2119
  function snakeCaseClientFunctions$lambda_0(stmt, tr) {
1924
2120
  var tmp;
1925
2121
  if (stmt instanceof FunctionCall) {
1926
- var nameStr = stmt.b1m_1.s1h();
1927
- var newName = contains(nameStr, '.') ? stmt.b1m_1 : Companion_getInstance().f1h(Companion_getInstance().f1h(nameStr).y1l());
1928
- var tmp1_safe_receiver = stmt.z1l_1;
2122
+ var nameStr = stmt.f1q_1.p1m();
2123
+ var newName = contains(nameStr, '.') ? stmt.f1q_1 : Companion_getInstance().u1k(Companion_getInstance().u1k(nameStr).c1q());
2124
+ var tmp1_safe_receiver = stmt.d1q_1;
1929
2125
  var tmp_0;
1930
2126
  if (tmp1_safe_receiver == null) {
1931
2127
  tmp_0 = null;
1932
2128
  } else {
1933
2129
  // Inline function 'kotlin.let' call
1934
- tmp_0 = tr.s1t(tmp1_safe_receiver);
2130
+ tmp_0 = tr.g1y(tmp1_safe_receiver);
1935
2131
  }
1936
2132
  var tmp2_receiver = tmp_0;
1937
2133
  // Inline function 'kotlin.collections.mapValues' call
1938
- var this_0 = stmt.c1m_1;
2134
+ var this_0 = stmt.g1q_1;
1939
2135
  // Inline function 'kotlin.collections.mapValuesTo' call
1940
2136
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1941
2137
  // Inline function 'kotlin.collections.associateByTo' call
1942
- var _iterator__ex2g4s = this_0.j1().t();
2138
+ var _iterator__ex2g4s = this_0.k1().t();
1943
2139
  while (_iterator__ex2g4s.u()) {
1944
2140
  var element = _iterator__ex2g4s.v();
1945
- var tmp_1 = element.k1();
2141
+ var tmp_1 = element.l1();
1946
2142
  // Inline function 'kotlin.collections.component2' call
1947
- var v = element.l1();
1948
- var tmp$ret$4 = tr.s1t(v);
1949
- destination.w2(tmp_1, tmp$ret$4);
2143
+ var v = element.m1();
2144
+ var tmp$ret$4 = tr.g1y(v);
2145
+ destination.y2(tmp_1, tmp$ret$4);
1950
2146
  }
1951
- var tmp4_isAwait = !(stmt.z1l_1 == null);
2147
+ var tmp4_isAwait = !(stmt.d1q_1 == null);
1952
2148
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
1953
2149
  } else {
1954
2150
  tmp = transformChildren(stmt, tr);
@@ -1961,28 +2157,28 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1961
2157
  var tmp_0;
1962
2158
  var tmp_1;
1963
2159
  if (stmt instanceof FieldCall) {
1964
- tmp_1 = stmt.j1p_1 == null;
2160
+ tmp_1 = stmt.x1t_1 == null;
1965
2161
  } else {
1966
2162
  tmp_1 = false;
1967
2163
  }
1968
2164
  if (tmp_1) {
1969
- tmp_0 = $fieldNames.u1(stmt.k1p_1.s1h());
2165
+ tmp_0 = $fieldNames.v1(stmt.y1t_1.p1m());
1970
2166
  } else {
1971
2167
  tmp_0 = false;
1972
2168
  }
1973
2169
  if (tmp_0) {
1974
- tmp = new FieldCall(new VariableReference(Companion_getInstance().f1h('self')), stmt.k1p_1);
2170
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().u1k('self')), stmt.y1t_1);
1975
2171
  } else {
1976
2172
  if (stmt instanceof FieldCall) {
1977
- var tmp0_safe_receiver = stmt.j1p_1;
2173
+ var tmp0_safe_receiver = stmt.x1t_1;
1978
2174
  var tmp_2;
1979
2175
  if (tmp0_safe_receiver == null) {
1980
2176
  tmp_2 = null;
1981
2177
  } else {
1982
2178
  // Inline function 'kotlin.let' call
1983
- tmp_2 = tr.s1t(tmp0_safe_receiver);
2179
+ tmp_2 = tr.g1y(tmp0_safe_receiver);
1984
2180
  }
1985
- tmp = new FieldCall(tmp_2, stmt.k1p_1);
2181
+ tmp = new FieldCall(tmp_2, stmt.y1t_1);
1986
2182
  } else {
1987
2183
  tmp = transformChildren(stmt, tr);
1988
2184
  }
@@ -1993,8 +2189,8 @@ function addSelfReceiverToClientFields$lambda($fieldNames) {
1993
2189
  function PythonRefinedTypeDefinitionEmitter() {
1994
2190
  }
1995
2191
  function PythonShared() {
1996
- this.g1x_1 = 'shared';
1997
- this.h1x_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2192
+ this.y21_1 = 'shared';
2193
+ this.z21_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
1998
2194
  }
1999
2195
  protoOf(PythonShared).toString = function () {
2000
2196
  return 'PythonShared';
@@ -2015,17 +2211,17 @@ function PythonShared_getInstance() {
2015
2211
  }
2016
2212
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2017
2213
  return function (it) {
2018
- return this$0.l1x(it);
2214
+ return this$0.d22(it);
2019
2215
  };
2020
2216
  }
2021
2217
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2022
2218
  return function (it) {
2023
- return this$0.l1x(it);
2219
+ return this$0.d22(it);
2024
2220
  };
2025
2221
  }
2026
2222
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2027
2223
  return function (it) {
2028
- return Spacer_instance.toString() + this$0.wp(it);
2224
+ return Spacer_instance.toString() + this$0.ut(it);
2029
2225
  };
2030
2226
  }
2031
2227
  function PythonTypeDefinitionEmitter() {
@@ -2033,26 +2229,27 @@ function PythonTypeDefinitionEmitter() {
2033
2229
  function PythonUnionDefinitionEmitter() {
2034
2230
  }
2035
2231
  //region block: post-declaration
2036
- protoOf(PythonEmitter).up = emit_4;
2037
- protoOf(PythonEmitter).vp = emit_5;
2038
- protoOf(PythonEmitter).wp = emit_6;
2039
- protoOf(PythonEmitter).xp = emit_7;
2040
- protoOf(PythonEmitter).yp = emit_9;
2041
- protoOf(PythonEmitter).ir = emit_14;
2042
- protoOf(PythonEmitter).dr = emit_15;
2043
- protoOf(PythonEmitter).jr = emit_10;
2044
- protoOf(PythonEmitter).yq = emit_13;
2045
- protoOf(PythonEmitter).wq = emit_3;
2046
- protoOf(PythonEmitter).xq = emit_2;
2047
- protoOf(PythonEmitter).i1x = emit_8;
2048
- protoOf(PythonEmitter).q1v = emit_11;
2049
- protoOf(PythonEmitter).j1x = emit_12;
2050
- protoOf(PythonEmitter).kr = emitValidator;
2051
- protoOf(PythonEmitter).d1w = sanitize;
2052
- protoOf(PythonEmitter).t1v = sanitizeKeywords;
2053
- protoOf(PythonEmitter).k1x = emitType;
2054
- protoOf(PythonEmitter).l1x = emitReferenceCustomImports;
2055
- protoOf(PythonIrEmitter).on = emit_1;
2232
+ protoOf(PythonEmitter).st = emit_4;
2233
+ protoOf(PythonEmitter).tt = emit_5;
2234
+ protoOf(PythonEmitter).ut = emit_6;
2235
+ protoOf(PythonEmitter).vt = emit_7;
2236
+ protoOf(PythonEmitter).wt = emit_9;
2237
+ protoOf(PythonEmitter).gv = emit_15;
2238
+ protoOf(PythonEmitter).bv = emit_13;
2239
+ protoOf(PythonEmitter).hv = emit_10;
2240
+ protoOf(PythonEmitter).wu = emit_14;
2241
+ protoOf(PythonEmitter).uu = emit_3;
2242
+ protoOf(PythonEmitter).vu = emit_2;
2243
+ protoOf(PythonEmitter).a22 = emit_8;
2244
+ protoOf(PythonEmitter).i20 = emit_11;
2245
+ protoOf(PythonEmitter).b22 = emit_12;
2246
+ protoOf(PythonEmitter).iv = emitValidator;
2247
+ protoOf(PythonEmitter).v20 = sanitize;
2248
+ protoOf(PythonEmitter).l20 = sanitizeKeywords;
2249
+ protoOf(PythonEmitter).c22 = emitType;
2250
+ protoOf(PythonEmitter).d22 = emitReferenceCustomImports;
2251
+ protoOf(PythonIrEmitter).mr = emit_1;
2252
+ protoOf(PythonIrEmitter).d1z = beforeGenerate;
2056
2253
  //endregion
2057
2254
  //region block: init
2058
2255
  PythonShared_instance = new PythonShared();